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

Unified Diff: third_party/WebKit/Source/core/animation/CSSPositionInterpolationType.h

Issue 2247773004: [WIP] CSS Motion Path: offset-anchor and offset-position Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offsetAnchor Created 4 years, 4 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/CSSPositionInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/CSSPositionInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSPositionInterpolationType.h
index 523542e0b575ea3fae5693fa19166742c32261a0..8ff2a7a2770ebbdefc3da858f6e406dbb254be29 100644
--- a/third_party/WebKit/Source/core/animation/CSSPositionInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/CSSPositionInterpolationType.h
@@ -22,6 +22,10 @@ public:
private:
InterpolationValue maybeConvertValue(const CSSValue& value, const StyleResolverState&, ConversionCheckers&) const final
{
+ if (value.isPrimitiveValue()) {
+ DCHECK(toCSSPrimitiveValue(value).getValueID() == CSSValueAuto);
+ return nullptr;
+ }
const CSSValuePair& pair = toCSSValuePair(value);
return ListInterpolationFunctions::createList(2, [&pair](size_t index) {
return CSSPositionAxisListInterpolationType::convertPositionAxisCSSValue(index == 0 ? pair.first() : pair.second());

Powered by Google App Engine
This is Rietveld 408576698