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

Unified Diff: sky/engine/core/css/StyleRule.cpp

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
Index: sky/engine/core/css/StyleRule.cpp
diff --git a/sky/engine/core/css/StyleRule.cpp b/sky/engine/core/css/StyleRule.cpp
index 54518bc65b61eec359a0a89c24b6fe47d8989e98..e9e4f9662f4e3e644707d5d3bb3bfb9b2b46a6c3 100644
--- a/sky/engine/core/css/StyleRule.cpp
+++ b/sky/engine/core/css/StyleRule.cpp
@@ -28,7 +28,6 @@
#include "core/css/CSSMediaRule.h"
#include "core/css/CSSStyleRule.h"
#include "core/css/CSSSupportsRule.h"
-#include "core/css/CSSViewportRule.h"
#include "core/css/StylePropertySet.h"
namespace blink {
@@ -67,9 +66,6 @@ void StyleRuleBase::trace(Visitor* visitor)
case Keyframes:
toStyleRuleKeyframes(this)->traceAfterDispatch(visitor);
return;
- case Viewport:
- toStyleRuleViewport(this)->traceAfterDispatch(visitor);
- return;
case Filter:
toStyleRuleFilter(this)->traceAfterDispatch(visitor);
return;
@@ -99,9 +95,6 @@ void StyleRuleBase::finalizeGarbageCollectedObject()
case Keyframes:
toStyleRuleKeyframes(this)->~StyleRuleKeyframes();
return;
- case Viewport:
- toStyleRuleViewport(this)->~StyleRuleViewport();
- return;
case Filter:
toStyleRuleFilter(this)->~StyleRuleFilter();
return;
@@ -131,9 +124,6 @@ void StyleRuleBase::destroy()
case Keyframes:
delete toStyleRuleKeyframes(this);
return;
- case Viewport:
- delete toStyleRuleViewport(this);
- return;
case Filter:
delete toStyleRuleFilter(this);
return;
@@ -158,8 +148,6 @@ PassRefPtrWillBeRawPtr<StyleRuleBase> StyleRuleBase::copy() const
return toStyleRuleSupports(this)->copy();
case Keyframes:
return toStyleRuleKeyframes(this)->copy();
- case Viewport:
- return toStyleRuleViewport(this)->copy();
case Filter:
return toStyleRuleFilter(this)->copy();
case Unknown:
@@ -191,9 +179,6 @@ PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet*
case Keyframes:
rule = CSSKeyframesRule::create(toStyleRuleKeyframes(self), parentSheet);
break;
- case Viewport:
- rule = CSSViewportRule::create(toStyleRuleViewport(self), parentSheet);
- break;
case Filter:
rule = CSSFilterRule::create(toStyleRuleFilter(self), parentSheet);
break;
@@ -342,39 +327,6 @@ StyleRuleSupports::StyleRuleSupports(const StyleRuleSupports& o)
{
}
-StyleRuleViewport::StyleRuleViewport()
- : StyleRuleBase(Viewport)
-{
-}
-
-StyleRuleViewport::StyleRuleViewport(const StyleRuleViewport& o)
- : StyleRuleBase(o)
- , m_properties(o.m_properties->mutableCopy())
-{
-}
-
-StyleRuleViewport::~StyleRuleViewport()
-{
-}
-
-MutableStylePropertySet& StyleRuleViewport::mutableProperties()
-{
- if (!m_properties->isMutable())
- m_properties = m_properties->mutableCopy();
- return *toMutableStylePropertySet(m_properties);
-}
-
-void StyleRuleViewport::setProperties(PassRefPtrWillBeRawPtr<StylePropertySet> properties)
-{
- m_properties = properties;
-}
-
-void StyleRuleViewport::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_properties);
- StyleRuleBase::traceAfterDispatch(visitor);
-}
-
StyleRuleFilter::StyleRuleFilter(const String& filterName)
: StyleRuleBase(Filter)
, m_filterName(filterName)

Powered by Google App Engine
This is Rietveld 408576698