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

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

Issue 2398293003: Move Layout Tree Construction code into Element::rebuildLayoutTree() (Closed)
Patch Set: Run git cl format third_party/WebKit Created 4 years, 2 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: third_party/WebKit/Source/core/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index bca9099e9d7a2fd8d88317f11fce9d5f4798a158..b26639b4b825c6ac17c2493fd7603e8c3e3c8876 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -427,6 +427,23 @@ class CORE_EXPORT Node : public EventTarget {
void setNeedsStyleRecalc(StyleChangeType, const StyleChangeReasonForTracing&);
void clearNeedsStyleRecalc();
+ bool needsReattachLayoutTree() { return getFlag(NeedsReattachLayoutTree); }
+ bool childNeedsReattachLayoutTree() {
+ return getFlag(ChildNeedsReattachLayoutTree);
+ }
+
+ void setNeedsReattachLayoutTree();
+ void setChildNeedsReattachLayoutTree() {
+ setFlag(ChildNeedsReattachLayoutTree);
+ }
+
+ void clearNeedsReattachLayoutTree() { clearFlag(NeedsReattachLayoutTree); }
+ void clearChildNeedsReattachLayoutTree() {
+ clearFlag(ChildNeedsReattachLayoutTree);
+ }
+
+ void markAncestorsWithChildNeedsReattachLayoutTree();
+
bool needsDistributionRecalc() const;
bool childNeedsDistributionRecalc() const {

Powered by Google App Engine
This is Rietveld 408576698