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

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

Issue 1957213002: Typed CSSOM: Rename NumberValue to CSSNumberValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix inline style tests Created 4 years, 7 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
deleted file mode 100644
index 88d45ab4281227b7700f3265dd896b474e2acdf2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/cssom/NumberValue.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NumberValue_h
-#define NumberValue_h
-
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/CoreExport.h"
-#include "core/css/CSSPrimitiveValue.h"
-#include "core/css/cssom/StyleValue.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-class CORE_EXPORT NumberValue final : public StyleValue {
- WTF_MAKE_NONCOPYABLE(NumberValue);
- DEFINE_WRAPPERTYPEINFO();
-public:
- static NumberValue* create(double value)
- {
- return new NumberValue(value);
- }
-
- double value() const { return m_value; }
-
- CSSValue* toCSSValue() const override
- {
- return cssValuePool().createValue(m_value, CSSPrimitiveValue::UnitType::
-Number);
- }
-
- StyleValueType type() const override { return StyleValueType::NumberType; }
-private:
- NumberValue(double value) : m_value(value) {}
-
- double m_value;
-};
-
-} // namespace blink
-
-#endif
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSNumberValue.idl ('k') | third_party/WebKit/Source/core/css/cssom/NumberValue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698