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

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

Issue 2867883003: [CSS Typed OM] Delete obsolete number and length classes from Typed OM (Closed)
Patch Set: rebase Created 3 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/CSSNumberValue.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSNumberValue.h b/third_party/WebKit/Source/core/css/cssom/CSSNumberValue.h
deleted file mode 100644
index 1e3976f3a4cc2c2a515a00a5bbc70b41e871401d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/cssom/CSSNumberValue.h
+++ /dev/null
@@ -1,44 +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 CSSNumberValue_h
-#define CSSNumberValue_h
-
-#include "core/CoreExport.h"
-#include "core/css/CSSPrimitiveValue.h"
-#include "core/css/cssom/CSSStyleValue.h"
-#include "platform/bindings/ScriptWrappable.h"
-#include "platform/wtf/text/WTFString.h"
-
-namespace blink {
-
-class CORE_EXPORT CSSNumberValue final : public CSSStyleValue {
- WTF_MAKE_NONCOPYABLE(CSSNumberValue);
- DEFINE_WRAPPERTYPEINFO();
-
- public:
- static CSSNumberValue* Create(double value) {
- return new CSSNumberValue(value);
- }
-
- double value() const { return value_; }
-
- CSSValue* ToCSSValue() const override {
- return CSSPrimitiveValue::Create(value_,
- CSSPrimitiveValue::UnitType::kNumber);
- }
-
- StyleValueType GetType() const override {
- return StyleValueType::kNumberType;
- }
-
- private:
- CSSNumberValue(double value) : value_(value) {}
-
- double value_;
-};
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698