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

Unified Diff: Source/core/css/StyleRule.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.h ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleRule.cpp
diff --git a/Source/core/css/StyleRule.cpp b/Source/core/css/StyleRule.cpp
index 299f7a2300de6c5d35881949cf769bdc3f3de127..45ae48fd0fce131d9e81a57342e85f63f4578ba6 100644
--- a/Source/core/css/StyleRule.cpp
+++ b/Source/core/css/StyleRule.cpp
@@ -29,7 +29,6 @@
#include "core/css/CSSKeyframesRule.h"
#include "core/css/CSSMediaRule.h"
#include "core/css/CSSPageRule.h"
-#include "core/css/CSSRegionRule.h"
#include "core/css/CSSStyleRule.h"
#include "core/css/CSSSupportsRule.h"
#include "core/css/CSSViewportRule.h"
@@ -72,9 +71,6 @@ void StyleRuleBase::destroy()
case Supports:
delete toStyleRuleSupports(this);
return;
- case Region:
- delete toStyleRuleRegion(this);
- return;
case Import:
delete toStyleRuleImport(this);
return;
@@ -109,8 +105,6 @@ PassRefPtr<StyleRuleBase> StyleRuleBase::copy() const
return toStyleRuleMedia(this)->copy();
case Supports:
return toStyleRuleSupports(this)->copy();
- case Region:
- return toStyleRuleRegion(this)->copy();
case Import:
// FIXME: Copy import rules.
ASSERT_NOT_REACHED();
@@ -151,9 +145,6 @@ PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
case Supports:
rule = CSSSupportsRule::create(toStyleRuleSupports(self), parentSheet);
break;
- case Region:
- rule = CSSRegionRule::create(toStyleRuleRegion(self), parentSheet);
- break;
case Import:
rule = CSSImportRule::create(toStyleRuleImport(self), parentSheet);
break;
@@ -316,20 +307,6 @@ StyleRuleSupports::StyleRuleSupports(const StyleRuleSupports& o)
{
}
-StyleRuleRegion::StyleRuleRegion(Vector<OwnPtr<CSSParserSelector> >* selectors, Vector<RefPtr<StyleRuleBase> >& adoptRules)
- : StyleRuleGroup(Region, adoptRules)
-{
- ASSERT(RuntimeEnabledFeatures::cssRegionsEnabled());
- m_selectorList.adoptSelectorVector(*selectors);
-}
-
-StyleRuleRegion::StyleRuleRegion(const StyleRuleRegion& o)
- : StyleRuleGroup(o)
- , m_selectorList(o.m_selectorList)
-{
- ASSERT(RuntimeEnabledFeatures::cssRegionsEnabled());
-}
-
StyleRuleViewport::StyleRuleViewport()
: StyleRuleBase(Viewport)
{
« no previous file with comments | « Source/core/css/StyleRule.h ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698