Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2716363002: Remove out-of-date comment about scoped style resolvers. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698