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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp

Issue 2766163002: Pass nextTextSibling to ::before layout rebuild. (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
index 17ff2f27d5cceb8e53f0b5d5ec21284fa05fd99b..40fcf03a04d549847b31f36d7190d31d86ee9046 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
@@ -155,14 +155,14 @@ void ShadowRoot::recalcStyle(StyleRecalcChange change) {
clearChildNeedsStyleRecalc();
}
-void ShadowRoot::rebuildLayoutTree() {
+void ShadowRoot::rebuildLayoutTree(Text*& nextTextSibling) {
// ShadowRoot doesn't support custom callbacks.
DCHECK(!hasCustomStyleCallbacks());
StyleSharingDepthScope sharingScope(*this);
clearNeedsReattachLayoutTree();
- rebuildChildrenLayoutTrees();
+ rebuildChildrenLayoutTrees(nextTextSibling);
clearChildNeedsReattachLayoutTree();
}

Powered by Google App Engine
This is Rietveld 408576698