Chromium Code Reviews| Index: Source/core/dom/shadow/InsertionPoint.cpp |
| diff --git a/Source/core/dom/shadow/InsertionPoint.cpp b/Source/core/dom/shadow/InsertionPoint.cpp |
| index 80a1bfa418f16b37ac8dd6da9d08b6a8cc29402c..8641059b6f7bb324a6ecfc72428fdbcbbf913094 100644 |
| --- a/Source/core/dom/shadow/InsertionPoint.cpp |
| +++ b/Source/core/dom/shadow/InsertionPoint.cpp |
| @@ -120,7 +120,7 @@ void InsertionPoint::detach(const AttachContext& context) |
| void InsertionPoint::willRecalcStyle(StyleRecalcChange change) |
| { |
| - if (change < Inherit) |
| + if (change < Inherit && styleChangeType() < SubtreeStyleChange) |
|
chrishtr
2014/10/16 02:02:51
Is this part all that's needed to fix the attached
rune
2014/10/16 07:23:32
Yes. I started out to support invalidation for ::c
|
| return; |
| for (size_t i = 0; i < m_distribution.size(); ++i) |
| m_distribution.at(i)->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::PropagateInheritChangeToDistributedNodes)); |