| OLD | NEW |
| 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 CSSUnparsedValue_h | 5 #ifndef CSSUnparsedValue_h |
| 6 #define CSSUnparsedValue_h | 6 #define CSSUnparsedValue_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Iterable.h" | 8 #include "bindings/core/v8/Iterable.h" |
| 9 #include "bindings/core/v8/StringOrCSSVariableReferenceValue.h" | 9 #include "bindings/core/v8/StringOrCSSVariableReferenceValue.h" |
| 10 #include "core/css/CSSVariableReferenceValue.h" | 10 #include "core/css/CSSVariableReferenceValue.h" |
| 11 #include "core/css/cssom/CSSStyleValue.h" | 11 #include "core/css/cssom/CSSStyleValue.h" |
| 12 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 namespace cssom { |
| 15 | 16 |
| 16 class CORE_EXPORT CSSUnparsedValue final : public CSSStyleValue, public ValueIte
rable<StringOrCSSVariableReferenceValue> { | 17 class CORE_EXPORT CSSUnparsedValue final : public CSSStyleValue, public ValueIte
rable<StringOrCSSVariableReferenceValue> { |
| 17 WTF_MAKE_NONCOPYABLE(CSSUnparsedValue); | 18 WTF_MAKE_NONCOPYABLE(CSSUnparsedValue); |
| 18 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 19 public: | 20 public: |
| 20 static CSSUnparsedValue* create(const HeapVector<StringOrCSSVariableReferenc
eValue>& fragments) | 21 static CSSUnparsedValue* create(const HeapVector<StringOrCSSVariableReferenc
eValue>& fragments) |
| 21 { | 22 { |
| 22 return new CSSUnparsedValue(fragments); | 23 return new CSSUnparsedValue(fragments); |
| 23 } | 24 } |
| 24 | 25 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 39 } | 40 } |
| 40 | 41 |
| 41 protected: | 42 protected: |
| 42 CSSUnparsedValue(const HeapVector<StringOrCSSVariableReferenceValue>& fragme
nts) | 43 CSSUnparsedValue(const HeapVector<StringOrCSSVariableReferenceValue>& fragme
nts) |
| 43 : CSSStyleValue() | 44 : CSSStyleValue() |
| 44 , m_fragments(fragments) | 45 , m_fragments(fragments) |
| 45 { | 46 { |
| 46 } | 47 } |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 IterationSource* startIteration(ScriptState*, ExceptionState&) override; | 50 IterationSource* startIteration(blink::ScriptState*, ExceptionState&) overri
de; |
| 50 | 51 |
| 51 HeapVector<StringOrCSSVariableReferenceValue> m_fragments; | 52 HeapVector<StringOrCSSVariableReferenceValue> m_fragments; |
| 52 }; | 53 }; |
| 53 | 54 |
| 55 } // namespace cssom |
| 54 } // namespace blink | 56 } // namespace blink |
| 55 | 57 |
| 58 |
| 56 #endif // CSSUnparsedValue_h | 59 #endif // CSSUnparsedValue_h |
| OLD | NEW |