| Index: Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
| diff --git a/Source/core/dom/ShadowTreeStyleSheetCollection.cpp b/Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
| index 2fe7c945efa7d2fbe0acc54d8f5573210a34a258..b1dcf3dfb0320ca23e765c383f383f92f67b5460 100644
|
| --- a/Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
| +++ b/Source/core/dom/ShadowTreeStyleSheetCollection.cpp
|
| @@ -110,10 +110,11 @@ bool ShadowTreeStyleSheetCollection::updateActiveStyleSheets(StyleEngine* collec
|
| // We should not destroy StyleResolver when we find any stylesheet update in a shadow tree.
|
| // In this case, we will reset rulesets created from style elements in the shadow tree.
|
| resetAllRuleSetsInTreeScope(styleResolver);
|
| - styleResolver->appendAuthorStyleSheets(0, activeCSSStyleSheets);
|
| + styleResolver->removePendingAuthorStyleSheets(m_activeAuthorStyleSheets);
|
| + styleResolver->lazyAppendAuthorStyleSheets(0, activeCSSStyleSheets);
|
| } else {
|
| ASSERT(styleResolverUpdateType == Additive);
|
| - styleResolver->appendAuthorStyleSheets(m_activeAuthorStyleSheets.size(), activeCSSStyleSheets);
|
| + styleResolver->lazyAppendAuthorStyleSheets(m_activeAuthorStyleSheets.size(), activeCSSStyleSheets);
|
| }
|
| }
|
| if (requiresFullStyleRecalc)
|
|
|