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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedLength.h

Issue 2549563002: Only communicate CSSPrimitiveValue references from SVGLength (Closed)
Patch Set: Created 4 years 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/SVGAnimatedLength.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h b/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
index 35db4007773a0332ec523df1f7c32fb223710d95..5dd38ee9b64ffb4ffa2953cf70b883fe102d0901 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
@@ -54,6 +54,10 @@ class SVGAnimatedLength : public SVGAnimatedProperty<SVGLength>,
void setDefaultValueAsString(const String&);
SVGParsingError setBaseValueAsString(const String&) override;
+ const CSSValue* cssValue() const {
+ return &currentValue()->asCSSPrimitiveValue();
+ }
+
DECLARE_VIRTUAL_TRACE_WRAPPERS();
protected:

Powered by Google App Engine
This is Rietveld 408576698