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

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

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/SVGLength.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLength.cpp b/third_party/WebKit/Source/core/svg/SVGLength.cpp
index 0a2b699aca7f04b97bf6ae767f3f2483113f373c..91b9d283c38c2fbb1dba07cb7b8f6289d2926165 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLength.cpp
@@ -67,7 +67,7 @@ bool SVGLength::operator==(const SVGLength& other) const {
float SVGLength::value(const SVGLengthContext& context) const {
if (isCalculated())
- return context.resolveValue(*asCSSPrimitiveValue(), unitMode());
+ return context.resolveValue(asCSSPrimitiveValue(), unitMode());
return context.convertValueToUserUnits(m_value->getFloatValue(), unitMode(),
m_value->typeWithCalcResolved());
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLength.h ('k') | third_party/WebKit/Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698