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

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

Issue 143873016: Implement style invalidation tree walk for targeted style recalc upon class change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed unused methods. Created 6 years, 11 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.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 1ace0bed9880f9c022326f392a725be48933ba54..e48a9e19f1a120aebb9777771c579da005edadf6 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -371,6 +371,11 @@ public:
void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistributionRecalc); }
void markAncestorsWithChildNeedsDistributionRecalc();
+ bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInvalidation); }
+ void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation); }
+ void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalidation); }
+ void markAncestorsWithChildNeedsStyleInvalidation();
+
void recalcDistribution();
bool shouldNotifyRendererWithIdenticalStyles() const { return getFlag(NotifyRendererWithIdenticalStyles); }
@@ -714,10 +719,12 @@ private:
CustomElement = 1 << 27,
CustomElementUpgraded = 1 << 28,
+ ChildNeedsStyleInvalidation = 1 << 29,
+
DefaultNodeFlags = IsParsingChildrenFinishedFlag | ChildNeedsStyleRecalcFlag | NeedsReattachStyleChange
};
- // 4 bits remaining.
+ // 2 bits remaining.
bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; }
void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); }

Powered by Google App Engine
This is Rietveld 408576698