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

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

Issue 951213004: Make CSSRuleSourceData use the CSSRule Type enum (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use StyleRule::Type Created 5 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 | « 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 e2c96835803fdfcddeb765cdeb2d02d5ec79038d..79b0da33c2f3ce56c46e36124a610e44dce847fa 100644
--- a/Source/core/css/StyleRule.cpp
+++ b/Source/core/css/StyleRule.cpp
@@ -86,6 +86,8 @@ DEFINE_TRACE(StyleRuleBase)
case Viewport:
toStyleRuleViewport(this)->traceAfterDispatch(visitor);
return;
+ case Unknown:
+ break;
}
ASSERT_NOT_REACHED();
}
@@ -123,6 +125,8 @@ void StyleRuleBase::finalizeGarbageCollectedObject()
case Viewport:
toStyleRuleViewport(this)->~StyleRuleViewport();
return;
+ case Unknown:
+ return;
}
ASSERT_NOT_REACHED();
}
@@ -160,6 +164,8 @@ void StyleRuleBase::destroy()
case Viewport:
delete toStyleRuleViewport(this);
return;
+ case Unknown:
+ return;
}
ASSERT_NOT_REACHED();
}
@@ -187,6 +193,7 @@ PassRefPtrWillBeRawPtr<StyleRuleBase> StyleRuleBase::copy() const
return toStyleRuleViewport(this)->copy();
case Keyframe:
case Namespace:
+ case Unknown:
ASSERT_NOT_REACHED();
return nullptr;
}
@@ -225,6 +232,7 @@ PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet*
break;
case Keyframe:
case Namespace:
+ case Unknown:
ASSERT_NOT_REACHED();
return nullptr;
}
« 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