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

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

Issue 2036893003: [CSS Typed OM] Rename StyleValue -> CSSStyleValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update order of core.gypi Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 StyleValue_h 5 #ifndef CSSStyleValue_h
6 #define StyleValue_h 6 #define CSSStyleValue_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/CSSValue.h" 10 #include "core/css/CSSValue.h"
11 #include "core/css/CSSValuePool.h" 11 #include "core/css/CSSValuePool.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class ExceptionState; 15 class ExceptionState;
16 class ScriptState; 16 class ScriptState;
17 class ScriptValue; 17 class ScriptValue;
18 18
19 class CORE_EXPORT StyleValue : public GarbageCollectedFinalized<StyleValue>, pub lic ScriptWrappable { 19 class CORE_EXPORT CSSStyleValue : public GarbageCollectedFinalized<CSSStyleValue >, public ScriptWrappable {
20 WTF_MAKE_NONCOPYABLE(StyleValue); 20 WTF_MAKE_NONCOPYABLE(CSSStyleValue);
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 public: 22 public:
23 enum StyleValueType { 23 enum StyleValueType {
24 AngleType, 24 AngleType,
25 CalcLengthType, 25 CalcLengthType,
26 KeywordType, 26 KeywordType,
27 NumberType, 27 NumberType,
28 PositionType, 28 PositionType,
29 SimpleLengthType, 29 SimpleLengthType,
30 TransformValueType, 30 TransformValueType,
31 }; 31 };
32 32
33 virtual ~StyleValue() { } 33 virtual ~CSSStyleValue() { }
34 34
35 virtual StyleValueType type() const = 0; 35 virtual StyleValueType type() const = 0;
36 36
37 static ScriptValue parse(ScriptState*, const String& propertyName, const Str ing& value, ExceptionState&); 37 static ScriptValue parse(ScriptState*, const String& propertyName, const Str ing& value, ExceptionState&);
38 38
39 virtual CSSValue* toCSSValue() const = 0; 39 virtual CSSValue* toCSSValue() const = 0;
40 virtual String cssString() const 40 virtual String cssString() const
41 { 41 {
42 return toCSSValue()->cssText(); 42 return toCSSValue()->cssText();
43 } 43 }
44 44
45 DEFINE_INLINE_VIRTUAL_TRACE() { } 45 DEFINE_INLINE_VIRTUAL_TRACE() { }
46 46
47 protected: 47 protected:
48 StyleValue() {} 48 CSSStyleValue() {}
49 }; 49 };
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif 53 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698