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

Unified Diff: Source/core/css/StyleSheetContents.cpp

Issue 143323014: *** DO NOT LAND *** Attempt to understand Regions complexity Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | « Source/core/css/StyleRule.cpp ('k') | Source/core/css/WebKitCSSRegionRule.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleSheetContents.cpp
diff --git a/Source/core/css/StyleSheetContents.cpp b/Source/core/css/StyleSheetContents.cpp
index 366c399de80a85e64c81257a375d856d3a4850f9..b93576eee116f00b58c1c28c2a87cf3fc6c146b5 100644
--- a/Source/core/css/StyleSheetContents.cpp
+++ b/Source/core/css/StyleSheetContents.cpp
@@ -45,7 +45,7 @@ unsigned StyleSheetContents::estimatedSizeInBytes() const
// The assumption is that nearly all of of them are atomic and would exist anyway.
unsigned size = sizeof(*this);
- // FIXME: This ignores the children of media and region rules.
+ // FIXME: This ignores the children of media rules.
// Most rules are StyleRules.
size += ruleCount() * StyleRule::averageSizeInBytes();
@@ -478,10 +478,6 @@ static bool childRulesHaveFailedOrCanceledSubresources(const Vector<RefPtr<Style
if (childRulesHaveFailedOrCanceledSubresources(toStyleRuleMedia(rule)->childRules()))
return true;
break;
- case StyleRuleBase::Region:
- if (childRulesHaveFailedOrCanceledSubresources(toStyleRuleRegion(rule)->childRules()))
- return true;
- break;
case StyleRuleBase::Import:
ASSERT_NOT_REACHED();
case StyleRuleBase::Page:
« no previous file with comments | « Source/core/css/StyleRule.cpp ('k') | Source/core/css/WebKitCSSRegionRule.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698