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

Unified Diff: third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp

Issue 2616863002: Remove TransformOperation::None (Closed)
Patch Set: address comments Created 3 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 | « no previous file | third_party/WebKit/Source/platform/animation/AnimationTranslationUtil.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp b/third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp
index 95c4d2d6ffbaf980bd853b7d07ea971e20e235e4..ad887b340c610805921112b092eee62ed433f95b 100644
--- a/third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp
@@ -53,6 +53,8 @@ static Length convertToFloatLength(
static TransformOperation::OperationType getTransformOperationType(
CSSValueID type) {
switch (type) {
+ default:
+ NOTREACHED();
case CSSValueScale:
return TransformOperation::Scale;
case CSSValueScaleX:
@@ -95,10 +97,6 @@ static TransformOperation::OperationType getTransformOperationType(
return TransformOperation::Matrix3D;
case CSSValuePerspective:
return TransformOperation::Perspective;
- default:
- ASSERT_NOT_REACHED();
- // FIXME: We shouldn't have a type None since we never create them
- return TransformOperation::None;
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/animation/AnimationTranslationUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698