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

Unified Diff: third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp

Issue 2382653006: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Make check-webkit-style happy Created 4 years, 3 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: third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
index 08d947dd6fd3db042b698f2d015b2121f9a95c75..7fbd7541696888337e10bf2d25f0203704bd0de9 100644
--- a/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSFontSizeInterpolationType.cpp
@@ -5,7 +5,7 @@
#include "core/animation/CSSFontSizeInterpolationType.h"
#include "core/animation/LengthInterpolationFunctions.h"
-#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/CSSIdentifierValue.h"
#include "core/css/resolver/StyleResolverState.h"
#include "platform/LengthFunctions.h"
#include "platform/fonts/FontDescription.h"
@@ -119,10 +119,10 @@ InterpolationValue CSSFontSizeInterpolationType::maybeConvertValue(
if (result)
return InterpolationValue(std::move(result));
- if (!value.isPrimitiveValue() || !toCSSPrimitiveValue(value).isValueID())
+ if (!value.isIdentifierValue())
return nullptr;
- return maybeConvertKeyword(toCSSPrimitiveValue(value).getValueID(), state,
+ return maybeConvertKeyword(toCSSIdentifierValue(value).getValueID(), state,
conversionCheckers);
}

Powered by Google App Engine
This is Rietveld 408576698