| OLD | NEW |
| 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 CSSStyleValue_h | 5 #ifndef CSSStyleValue_h |
| 6 #define CSSStyleValue_h | 6 #define CSSStyleValue_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/CSSPropertyNames.h" | 9 #include "core/CSSPropertyNames.h" |
| 10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 virtual StyleValueType type() const = 0; | 36 virtual StyleValueType type() const = 0; |
| 37 | 37 |
| 38 static ScriptValue parse(ScriptState*, const String& propertyName, const Str
ing& value, ExceptionState&); | 38 static ScriptValue parse(ScriptState*, const String& propertyName, const Str
ing& value, ExceptionState&); |
| 39 | 39 |
| 40 virtual CSSValue* toCSSValue() const = 0; | 40 virtual CSSValue* toCSSValue() const = 0; |
| 41 virtual CSSValue* toCSSValueWithProperty(CSSPropertyID) const | 41 virtual CSSValue* toCSSValueWithProperty(CSSPropertyID) const |
| 42 { | 42 { |
| 43 return toCSSValue(); | 43 return toCSSValue(); |
| 44 } | 44 } |
| 45 virtual String cssString() const | 45 virtual String cssText() const |
| 46 { | 46 { |
| 47 return toCSSValue()->cssText(); | 47 return toCSSValue()->cssText(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 DEFINE_INLINE_VIRTUAL_TRACE() { } | 50 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 CSSStyleValue() {} | 53 CSSStyleValue() {} |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 typedef HeapVector<Member<CSSStyleValue>> CSSStyleValueVector; | 56 typedef HeapVector<Member<CSSStyleValue>> CSSStyleValueVector; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif | 60 #endif |
| OLD | NEW |