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); } |