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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h

Issue 2377243002: Add support for CSSValue->CSSSimpleLength when it is a percentage. (Closed)
Patch Set: Update test expectations Created 4 years, 3 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
Index: third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h b/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h
index 18ec13bf70114c288f8109c138e54d35f52d6340..1e3da092281d29b07d46d63546560129f37d178d 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.h
@@ -26,7 +26,7 @@ public:
bool containsPercent() const override;
double value() const { return m_value; }
- String unit() const { return String(CSSPrimitiveValue::unitTypeToString(m_unit)); }
+ String unit() const;
CSSPrimitiveValue::UnitType lengthUnit() const { return m_unit; }
StyleValueType type() const override { return StyleValueType::SimpleLengthType; }

Powered by Google App Engine
This is Rietveld 408576698