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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 1649003002: Use StylePath instead of (Path)StyleMotionPath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index a0fdcdc266e64286e31a7e7ddd9e1e74ee6c3e3a..3dd100b9bd7a972cf1520681a1dde1d32ea9c0b6 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -53,11 +53,9 @@
#include "core/layout/LayoutObject.h"
#include "core/style/ComputedStyle.h"
#include "core/style/ContentData.h"
-#include "core/style/PathStyleMotionPath.h"
#include "core/style/QuotesData.h"
#include "core/style/ShadowList.h"
#include "core/style/StyleVariableData.h"
-#include "core/svg/SVGPathUtilities.h"
#include "platform/LengthFunctions.h"
namespace blink {
@@ -2452,14 +2450,10 @@ PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(CSSPropertyID
case CSSPropertyMotion:
return valuesForShorthandProperty(motionShorthand(), style, layoutObject, styledNode, allowVisitedStyle);
- case CSSPropertyMotionPath: {
- const StyleMotionPath* styleMotionPath = style.motionPath();
- if (!styleMotionPath)
- return cssValuePool().createIdentifierValue(CSSValueNone);
-
- ASSERT(styleMotionPath->isPathStyleMotionPath());
- return CSSPathValue::create(toPathStyleMotionPath(styleMotionPath)->pathString());
- }
+ case CSSPropertyMotionPath:
+ if (const StylePath* styleMotionPath = style.motionPath())
+ return styleMotionPath->computedCSSValue();
+ return cssValuePool().createIdentifierValue(CSSValueNone);
case CSSPropertyMotionOffset:
return zoomAdjustedPixelValueForLength(style.motionOffset(), style);

Powered by Google App Engine
This is Rietveld 408576698