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 75ef6439682fd73f348554b875df3b81aabd9ae2..711ae268ad185cefb730b0a11bb364f719638c11 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp |
@@ -572,11 +572,6 @@ void StyleEngine::collectScopedStyleFeaturesTo(RuleFeatureSet& features) const { |
document().scopedStyleResolver()->collectFeaturesTo( |
features, visitedSharedStyleSheetContents); |
for (TreeScope* treeScope : m_activeTreeScopes) { |
- // When creating StyleResolver, dirty treescopes might not be processed. |
- // So some active treescopes might not have a scoped style resolver. |
- // In this case, we should skip collectFeatures for the treescopes without |
- // scoped style resolvers. When invoking updateActiveStyleSheets, |
- // the treescope's features will be processed. |
if (ScopedStyleResolver* resolver = treeScope->scopedStyleResolver()) |
resolver->collectFeaturesTo(features, visitedSharedStyleSheetContents); |
} |