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

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

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/StyleRule.h ('k') | sky/engine/core/css/StyleSheet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleRule.cpp
diff --git a/sky/engine/core/css/StyleRule.cpp b/sky/engine/core/css/StyleRule.cpp
index e4ba4d86bf2ea93e300b20d3eb8446edd0d3d73f..47ba6233e950b3f1fd9308f4b6097deec6aa2d79 100644
--- a/sky/engine/core/css/StyleRule.cpp
+++ b/sky/engine/core/css/StyleRule.cpp
@@ -48,64 +48,6 @@ PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSRule* parentRule) const
return createCSSOMWrapper(0, parentRule);
}
-void StyleRuleBase::trace(Visitor* visitor)
-{
- switch (type()) {
- case Style:
- toStyleRule(this)->traceAfterDispatch(visitor);
- return;
- case FontFace:
- toStyleRuleFontFace(this)->traceAfterDispatch(visitor);
- return;
- case Media:
- toStyleRuleMedia(this)->traceAfterDispatch(visitor);
- return;
- case Supports:
- toStyleRuleSupports(this)->traceAfterDispatch(visitor);
- return;
- case Keyframes:
- toStyleRuleKeyframes(this)->traceAfterDispatch(visitor);
- return;
- case Filter:
- toStyleRuleFilter(this)->traceAfterDispatch(visitor);
- return;
- case Unknown:
- case Keyframe:
- ASSERT_NOT_REACHED();
- return;
- }
- ASSERT_NOT_REACHED();
-}
-
-void StyleRuleBase::finalizeGarbageCollectedObject()
-{
- switch (type()) {
- case Style:
- toStyleRule(this)->~StyleRule();
- return;
- case FontFace:
- toStyleRuleFontFace(this)->~StyleRuleFontFace();
- return;
- case Media:
- toStyleRuleMedia(this)->~StyleRuleMedia();
- return;
- case Supports:
- toStyleRuleSupports(this)->~StyleRuleSupports();
- return;
- case Keyframes:
- toStyleRuleKeyframes(this)->~StyleRuleKeyframes();
- return;
- case Filter:
- toStyleRuleFilter(this)->~StyleRuleFilter();
- return;
- case Unknown:
- case Keyframe:
- ASSERT_NOT_REACHED();
- return;
- }
- ASSERT_NOT_REACHED();
-}
-
void StyleRuleBase::destroy()
{
switch (type()) {
@@ -225,12 +167,6 @@ void StyleRule::setProperties(PassRefPtr<StylePropertySet> properties)
m_properties = properties;
}
-void StyleRule::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_properties);
- StyleRuleBase::traceAfterDispatch(visitor);
-}
-
StyleRuleFontFace::StyleRuleFontFace()
: StyleRuleBase(FontFace)
{
@@ -258,12 +194,6 @@ void StyleRuleFontFace::setProperties(PassRefPtr<StylePropertySet> properties)
m_properties = properties;
}
-void StyleRuleFontFace::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_properties);
- StyleRuleBase::traceAfterDispatch(visitor);
-}
-
StyleRuleGroup::StyleRuleGroup(Type type, Vector<RefPtr<StyleRuleBase> >& adoptRule)
: StyleRuleBase(type)
{
@@ -288,12 +218,6 @@ void StyleRuleGroup::wrapperRemoveRule(unsigned index)
m_childRules.remove(index);
}
-void StyleRuleGroup::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_childRules);
- StyleRuleBase::traceAfterDispatch(visitor);
-}
-
StyleRuleMedia::StyleRuleMedia(PassRefPtr<MediaQuerySet> media, Vector<RefPtr<StyleRuleBase> >& adoptRules)
: StyleRuleGroup(Media, adoptRules)
, m_mediaQueries(media)
@@ -307,12 +231,6 @@ StyleRuleMedia::StyleRuleMedia(const StyleRuleMedia& o)
m_mediaQueries = o.m_mediaQueries->copy();
}
-void StyleRuleMedia::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_mediaQueries);
- StyleRuleGroup::traceAfterDispatch(visitor);
-}
-
StyleRuleSupports::StyleRuleSupports(const String& conditionText, bool conditionIsSupported, Vector<RefPtr<StyleRuleBase> >& adoptRules)
: StyleRuleGroup(Supports, adoptRules)
, m_conditionText(conditionText)
@@ -356,10 +274,4 @@ void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties)
m_properties = properties;
}
-void StyleRuleFilter::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_properties);
- StyleRuleBase::traceAfterDispatch(visitor);
-}
-
} // namespace blink
« no previous file with comments | « sky/engine/core/css/StyleRule.h ('k') | sky/engine/core/css/StyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698