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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp

Issue 2708923011: Avoid duplicating the CSS property mapping for SVG pres. attrs. (Closed)
Patch Set: Created 3 years, 10 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/svg/SVGAnimatedPath.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp b/third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp
index a2821543077d97a2e6da48456b7f32f87296db10..1dd30a6a858156a8a7950c890411ac6e3cd8c63d 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp
@@ -30,6 +30,8 @@
#include "core/svg/SVGAnimatedPath.h"
+#include "core/css/CSSIdentifierValue.h"
+
namespace blink {
SVGAnimatedPath::SVGAnimatedPath(SVGElement* contextElement,
@@ -42,4 +44,11 @@ SVGAnimatedPath::SVGAnimatedPath(SVGElement* contextElement,
SVGAnimatedPath::~SVGAnimatedPath() {}
+const CSSValue* SVGAnimatedPath::cssValue() const {
+ const CSSPathValue* pathValue = currentValue()->pathValue();
+ if (pathValue->stylePath()->byteStream().isEmpty())
+ return CSSIdentifierValue::create(CSSValueNone);
+ return pathValue;
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedPath.h ('k') | third_party/WebKit/Source/core/svg/SVGCircleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698