Move Node::hasID() and hasClass() to Element.
Created attachment 203481 [details] Patch
Comment on attachment 203481 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=203481&action=review > Source/WebCore/dom/LiveNodeList.cpp:114 > + if (!node->isElementNode()) > + continue; Only ChildNodeList contains non-element item so maybe we want to check that condition outside the loop instead. We don't need to do this in this patch though. > Source/WebCore/rendering/RenderLayer.cpp:283 > + if (Element* element = renderer()->node() && renderer()->node()->isElementNode() ? toElement(renderer()->node()) : 0) { Looks like we almost want renderer()->element().
Committed r151069: <http://trac.webkit.org/changeset/151069>