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

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

Issue 1642473002: Revert "Update StyleValue.cssString() to use existing methods instead of rolling our… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure it compiles Created 4 years, 11 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/NumberValue.h
diff --git a/third_party/WebKit/Source/core/css/cssom/NumberValue.h b/third_party/WebKit/Source/core/css/cssom/NumberValue.h
index 142affb7fa963222ba09cddb65484efcb1fe8bd6..b4c281df33827f3f6eb4fd7929562e3afc3236f0 100644
--- a/third_party/WebKit/Source/core/css/cssom/NumberValue.h
+++ b/third_party/WebKit/Source/core/css/cssom/NumberValue.h
@@ -28,6 +28,8 @@ public:
m_value = value;
}
+ String cssString() const override { return String::number(m_value); }
+
PassRefPtrWillBeRawPtr<CSSValue> toCSSValue() const override
{
return cssValuePool().createValue(m_value, CSSPrimitiveValue::UnitType::
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/LengthValue.cpp ('k') | third_party/WebKit/Source/core/css/cssom/SimpleLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698