Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: Source/core/dom/Element.h

Issue 415243003: Drop slower Node::hasID() / Node::hasClass() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 37a662c17dc8b064c4f144671cc5528ee507c081..fc5f92347cc74d0fb104de9df4597d54cacbe911 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -788,17 +788,6 @@ inline UniqueElementData& Element::ensureUniqueElementData()
return toUniqueElementData(*m_elementData);
}
-// Put here to make them inline.
-inline bool Node::hasID() const
-{
- return isElementNode() && toElement(this)->hasID();
-}
-
-inline bool Node::hasClass() const
-{
- return isElementNode() && toElement(this)->hasClass();
-}
-
inline Node::InsertionNotificationRequest Node::insertedInto(ContainerNode* insertionPoint)
{
ASSERT(!childNeedsStyleInvalidation());
« no previous file with comments | « no previous file | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698