| 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 4f321667275a6f5cfe8e00efe106feb5b83af72b..3403cf8a33463a9fe8237a128eb166b5c59c0459 100644
|
| --- a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
|
| @@ -122,10 +122,17 @@ void InsertionPoint::detachLayoutTree(const AttachContext& context)
|
|
|
| void InsertionPoint::willRecalcStyle(StyleRecalcChange change)
|
| {
|
| - if (change < IndependentInherit && getStyleChangeType() < SubtreeStyleChange)
|
| + StyleChangeType styleChangeType = NoStyleChange;
|
| +
|
| + if (change > Inherit || getStyleChangeType() > LocalStyleChange)
|
| + styleChangeType = SubtreeStyleChange;
|
| + else if (change > NoInherit)
|
| + styleChangeType = LocalStyleChange;
|
| + else
|
| return;
|
| +
|
| for (size_t i = 0; i < m_distributedNodes.size(); ++i)
|
| - m_distributedNodes.at(i)->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::PropagateInheritChangeToDistributedNodes));
|
| + m_distributedNodes.at(i)->setNeedsStyleRecalc(styleChangeType, StyleChangeReasonForTracing::create(StyleChangeReason::PropagateInheritChangeToDistributedNodes));
|
| }
|
|
|
| bool InsertionPoint::canBeActive() const
|
|
|