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

Unified Diff: Source/core/dom/Node.cpp

Issue 208933003: Remove SiblingRuleHelper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 59a60dc30368c59a007a4977c004225c0132f7e4..768131c981f9a3bf7e179be4470bcb831bbabbf2 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -335,6 +335,22 @@ void Node::clearRareData()
clearFlag(HasRareDataFlag);
}
+bool Node::hasRestyleFlagInternal(DynamicRestyleFlags mask) const
+{
+ return rareData()->hasRestyleFlag(mask);
+}
+
+bool Node::hasRestyleFlagsInternal() const
+{
+ return rareData()->hasRestyleFlags();
+}
+
+void Node::setRestyleFlag(DynamicRestyleFlags mask)
+{
+ ASSERT(isElementNode() || isShadowRoot());
+ ensureRareData().setRestyleFlag(mask);
+}
+
Node* Node::toNode()
{
return this;

Powered by Google App Engine
This is Rietveld 408576698