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

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

Issue 1481123002: Use SVGLength's wrapped CSSPrimitiveValue for pres.attr. style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 171cd286aa7514b5fbc16b5c07135170c4fda246..39bb57fdbec4749da32330bf05a82ad84891514f 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.h
+++ b/third_party/WebKit/Source/core/svg/SVGLength.h
@@ -53,10 +53,6 @@ public:
PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const String&) const override;
CSSPrimitiveValue::UnitType typeWithCalcResolved() const { return m_value->typeWithCalcResolved(); }
- CSSPrimitiveValue::UnitType cssUnitTypeQuirk() const
- {
- return m_value->typeWithCalcResolved();
- }
void setUnitType(CSSPrimitiveValue::UnitType);
SVGLengthMode unitMode() const { return static_cast<SVGLengthMode>(m_unitMode); }
@@ -72,6 +68,8 @@ public:
m_value = CSSPrimitiveValue::create(value, m_value->typeWithCalcResolved());
}
+ CSSPrimitiveValue* asCSSPrimitiveValue() const { return m_value.get(); }
+
// Resolves LengthTypePercentage into a normalized floating point number (full value is 1.0).
float valueAsPercentage() const;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGImageElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698