| Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| index bf0ea0dc6fa95c8863be8c13b3be1fc163ad84f6..e90bb0502627dcab5c4fc5547b3f4f84c0fa5d42 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| @@ -246,7 +246,7 @@ void StyleEngine::clearMediaQueryRuleSetOnTreeScopeStyleSheets(UnorderedTreeScop
|
| {
|
| for (TreeScope* treeScope : treeScopes) {
|
| DCHECK(treeScope != m_document);
|
| - ShadowTreeStyleSheetCollection* collection = static_cast<ShadowTreeStyleSheetCollection*>(styleSheetCollectionFor(*treeScope));
|
| + ShadowTreeStyleSheetCollection* collection = toShadowTreeStyleSheetCollection(styleSheetCollectionFor(*treeScope));
|
| DCHECK(collection);
|
| collection->clearMediaQueryRuleSetStyleSheets();
|
| }
|
| @@ -271,7 +271,7 @@ void StyleEngine::updateStyleSheetsInImport(DocumentStyleSheetCollector& parentC
|
| void StyleEngine::updateActiveStyleSheetsInShadow(StyleResolverUpdateMode updateMode, TreeScope* treeScope, UnorderedTreeScopeSet& treeScopesRemoved)
|
| {
|
| DCHECK_NE(treeScope, m_document);
|
| - ShadowTreeStyleSheetCollection* collection = static_cast<ShadowTreeStyleSheetCollection*>(styleSheetCollectionFor(*treeScope));
|
| + ShadowTreeStyleSheetCollection* collection = toShadowTreeStyleSheetCollection(styleSheetCollectionFor(*treeScope));
|
| DCHECK(collection);
|
| collection->updateActiveStyleSheets(*this, updateMode);
|
| if (!collection->hasStyleSheetCandidateNodes()) {
|
|
|