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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLength.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/SVGLength.h
diff --git a/third_party/WebKit/Source/core/svg/SVGLength.h b/third_party/WebKit/Source/core/svg/SVGLength.h
index 1d6db092599894cec8ef477861d93111553565a4..6b04d8dca7c9e1498deb8f44baf81dfb2fb174ea 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.h
+++ b/third_party/WebKit/Source/core/svg/SVGLength.h
@@ -66,7 +66,7 @@ class SVGLength final : public SVGPropertyBase {
m_value = CSSPrimitiveValue::create(value, m_value->typeWithCalcResolved());
}
- const CSSPrimitiveValue* asCSSPrimitiveValue() const { return m_value.get(); }
+ const CSSPrimitiveValue& asCSSPrimitiveValue() const { return *m_value; }
// Resolves LengthTypePercentage into a normalized floating point number (full
// value is 1.0).
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGImageElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698