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

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

Issue 2037323002: Make SVGLength store a const CSSValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_parser_addProperty_take_const
Patch Set: Rebase Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 91ce36d105c12ae1e5ef30c0cc8400a4381c7e0e..089e8f8f1af11673dc44bbc561833d47806c4ba2 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.h
+++ b/third_party/WebKit/Source/core/svg/SVGLength.h
@@ -63,7 +63,7 @@ public:
m_value = CSSPrimitiveValue::create(value, m_value->typeWithCalcResolved());
}
- CSSPrimitiveValue* asCSSPrimitiveValue() const { return m_value.get(); }
+ const CSSPrimitiveValue* asCSSPrimitiveValue() const { return m_value.get(); }
// Resolves LengthTypePercentage into a normalized floating point number (full value is 1.0).
float valueAsPercentage() const;
@@ -102,7 +102,7 @@ private:
SVGLength(SVGLengthMode);
SVGLength(const SVGLength&);
- Member<CSSPrimitiveValue> m_value;
+ Member<const CSSPrimitiveValue> m_value;
unsigned m_unitMode : 2;
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698