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

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

Issue 2398293003: Move Layout Tree Construction code into Element::rebuildLayoutTree() (Closed)
Patch Set: Final patch to land 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6bfe36cbb01af071b8949d8083c07ab584ee41f8..3770da8d8120b4b33c1c01aada97753cb17a88a4 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -208,6 +208,7 @@ class CORE_EXPORT Node : public EventTarget {
Node* firstChild() const;
Node* lastChild() const;
Node* getRootNode(const GetRootNodeOptions&) const;
+ Text* nextTextSibling() const;
Node& treeRoot() const;
Node& shadowIncludingRoot() const;
// closed-shadow-hidden is defined at
@@ -427,6 +428,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 {
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698