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 #include "core/css/cssom/StylePropertyMap.h" | 5 #include "core/css/cssom/StylePropertyMap.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "core/css/CSSValueList.h" | 8 #include "core/css/CSSValueList.h" |
9 #include "core/css/cssom/CSSSimpleLength.h" | 9 #include "core/css/cssom/CSSSimpleLength.h" |
10 #include "core/css/cssom/CSSStyleValue.h" | 10 #include "core/css/cssom/CSSStyleValue.h" |
11 #include "core/css/cssom/StyleValueFactory.h" | 11 #include "core/css/cssom/StyleValueFactory.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
| 14 namespace cssom { |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 class StylePropertyMapIterationSource final : public PairIterable<String, CSSSty
leValueOrCSSStyleValueSequence>::IterationSource { | 18 class StylePropertyMapIterationSource final : public PairIterable<String, CSSSty
leValueOrCSSStyleValueSequence>::IterationSource { |
18 public: | 19 public: |
19 explicit StylePropertyMapIterationSource(HeapVector<StylePropertyMap::StyleP
ropertyMapEntry> values) | 20 explicit StylePropertyMapIterationSource(HeapVector<StylePropertyMap::StyleP
ropertyMapEntry> values) |
20 : m_index(0) | 21 : m_index(0) |
21 , m_values(values) | 22 , m_values(values) |
22 { | 23 { |
23 } | 24 } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 116 } |
116 // TODO(meade): Handle custom properties here. | 117 // TODO(meade): Handle custom properties here. |
117 exceptionState.throwTypeError("Invalid propertyName: " + propertyName); | 118 exceptionState.throwTypeError("Invalid propertyName: " + propertyName); |
118 } | 119 } |
119 | 120 |
120 StylePropertyMap::IterationSource* StylePropertyMap::startIteration(ScriptState*
, ExceptionState&) | 121 StylePropertyMap::IterationSource* StylePropertyMap::startIteration(ScriptState*
, ExceptionState&) |
121 { | 122 { |
122 return new StylePropertyMapIterationSource(getIterationEntries()); | 123 return new StylePropertyMapIterationSource(getIterationEntries()); |
123 } | 124 } |
124 | 125 |
| 126 } // namespace cssom |
125 } // namespace blink | 127 } // namespace blink |
| 128 |
OLD | NEW |