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

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

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Commit the renames Created 4 years, 1 month 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/InsertionPoint.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
index da2cae918d1a05759b8d286e9176479a5e5ef5e7..d7c51703745eadddeeb0368f72c9b5f7f367d891 100644
--- a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
@@ -106,7 +106,7 @@ void InsertionPoint::attachLayoutTree(const AttachContext& context) {
// cause them to be inserted in the wrong place later. This also lets
// distributed nodes benefit from the n^2 protection.
for (size_t i = 0; i < m_distributedNodes.size(); ++i) {
- if (m_distributedNodes.at(i)->needsAttach())
+ if (m_distributedNodes.at(i)->needsReattachLayoutTree())
m_distributedNodes.at(i)->attachLayoutTree(context);
}

Powered by Google App Engine
This is Rietveld 408576698