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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSAngleValue.h

Issue 2528263004: Remove unused ExceptionState argument from CSSAngleValue constructor (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSAngleValue_h 5 #ifndef CSSAngleValue_h
6 #define CSSAngleValue_h 6 #define CSSAngleValue_h
7 7
8 #include "core/css/CSSPrimitiveValue.h" 8 #include "core/css/CSSPrimitiveValue.h"
9 #include "core/css/cssom/CSSStyleValue.h" 9 #include "core/css/cssom/CSSStyleValue.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class CORE_EXPORT CSSAngleValue final : public CSSStyleValue { 13 class CORE_EXPORT CSSAngleValue final : public CSSStyleValue {
14 WTF_MAKE_NONCOPYABLE(CSSAngleValue); 14 WTF_MAKE_NONCOPYABLE(CSSAngleValue);
15 DEFINE_WRAPPERTYPEINFO(); 15 DEFINE_WRAPPERTYPEINFO();
16 16
17 public: 17 public:
18 static CSSAngleValue* create(double value, 18 static CSSAngleValue* create(double value, const String& unit);
19 const String& unit,
20 ExceptionState&);
21 19
22 StyleValueType type() const override { return AngleType; } 20 StyleValueType type() const override { return AngleType; }
23 21
24 double degrees() const; 22 double degrees() const;
25 double radians() const; 23 double radians() const;
26 double gradians() const; 24 double gradians() const;
27 double turns() const; 25 double turns() const;
28 26
29 double value() const { return m_value; } 27 double value() const { return m_value; }
30 CSSPrimitiveValue::UnitType unit() const { return m_unit; } 28 CSSPrimitiveValue::UnitType unit() const { return m_unit; }
31 CSSValue* toCSSValue() const override; 29 CSSValue* toCSSValue() const override;
32 30
33 private: 31 private:
34 CSSAngleValue(double value, CSSPrimitiveValue::UnitType unit) 32 CSSAngleValue(double value, CSSPrimitiveValue::UnitType unit)
35 : m_value(value), m_unit(unit) {} 33 : m_value(value), m_unit(unit) {}
36 34
37 double m_value; 35 double m_value;
38 CSSPrimitiveValue::UnitType m_unit; 36 CSSPrimitiveValue::UnitType m_unit;
39 }; 37 };
40 } 38 }
41 39
42 #endif // CSSAngleValue_h 40 #endif // CSSAngleValue_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/cssom/CSSAngleValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698