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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.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/resolver/StyleBuilderCustom.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
index 53461857a4600ceb080b06d85780a3a7e9e6b938..ffbdf4189a0a9d57bc6ca37530e831ee2b708482 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -69,7 +69,6 @@
#include "core/style/CounterContent.h"
#include "core/style/ComputedStyle.h"
#include "core/style/ComputedStyleConstants.h"
-#include "core/style/PathStyleMotionPath.h"
#include "core/style/QuotesData.h"
#include "core/style/SVGComputedStyle.h"
#include "core/style/StyleGeneratedImage.h"
@@ -433,31 +432,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyTransform(StyleResolverState& s
state.style()->setTransform(operations);
}
-void StyleBuilderFunctions::applyInheritCSSPropertyMotionPath(StyleResolverState& state)
-{
- if (state.parentStyle()->motionPath())
- state.style()->setMotionPath(state.parentStyle()->motionPath());
- else
- state.style()->resetMotionPath();
-}
-
-void StyleBuilderFunctions::applyValueCSSPropertyMotionPath(StyleResolverState& state, CSSValue* value)
-{
- if (value->isPathValue()) {
- const String& pathString = toCSSPathValue(value)->pathString();
- state.style()->setMotionPath(PathStyleMotionPath::create(pathString));
- return;
- }
-
- ASSERT(value->isPrimitiveValue() && toCSSPrimitiveValue(value)->getValueID() == CSSValueNone);
- state.style()->resetMotionPath();
-}
-
-void StyleBuilderFunctions::applyInitialCSSPropertyMotionPath(StyleResolverState& state)
-{
- state.style()->resetMotionPath();
-}
-
void StyleBuilderFunctions::applyInheritCSSPropertyVerticalAlign(StyleResolverState& state)
{
EVerticalAlign verticalAlign = state.parentStyle()->verticalAlign();

Powered by Google App Engine
This is Rietveld 408576698