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

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

Issue 77863002: Update styleRecalc so that it traverses shadow insertion points in 2 pass algorithms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: Source/core/dom/shadow/InsertionPoint.cpp
diff --git a/Source/core/dom/shadow/InsertionPoint.cpp b/Source/core/dom/shadow/InsertionPoint.cpp
index f671b910a2c68d3f4990f3ce3b8d938f228dfe9f..762db5f5c3fcdbf064a2b026b53d70278ec42cb7 100644
--- a/Source/core/dom/shadow/InsertionPoint.cpp
+++ b/Source/core/dom/shadow/InsertionPoint.cpp
@@ -124,8 +124,11 @@ void InsertionPoint::willRecalcStyle(StyleRecalcChange change)
{
if (change < Inherit)
return;
- for (size_t i = 0; i < m_distribution.size(); ++i)
- m_distribution.at(i)->setNeedsStyleRecalc(LocalStyleChange);
+ for (size_t i = 0; i < m_distribution.size(); ++i) {
+ Node* node = m_distribution.at(i).get();
+ if (isShadowHost(node->parentElement()))
+ node->setNeedsStyleRecalc(LocalStyleChange);
+ }
}
bool InsertionPoint::shouldUseFallbackElements() const

Powered by Google App Engine
This is Rietveld 408576698