| 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
|
|
|