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