| 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/FilteredComputedStylePropertyMap.h" | 5 #include "core/css/cssom/FilteredComputedStylePropertyMap.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 namespace cssom { |
| 8 | 9 |
| 9 FilteredComputedStylePropertyMap::FilteredComputedStylePropertyMap(CSSComputedSt
yleDeclaration* computedStyleDeclaration, const Vector<CSSPropertyID>& nativePro
perties, const Vector<AtomicString>& customProperties) | 10 FilteredComputedStylePropertyMap::FilteredComputedStylePropertyMap(CSSComputedSt
yleDeclaration* computedStyleDeclaration, const Vector<CSSPropertyID>& nativePro
perties, const Vector<AtomicString>& customProperties) |
| 10 : ComputedStylePropertyMap(computedStyleDeclaration) | 11 : ComputedStylePropertyMap(computedStyleDeclaration) |
| 11 { | 12 { |
| 12 for (const auto& nativeProperty : nativeProperties) { | 13 for (const auto& nativeProperty : nativeProperties) { |
| 13 m_nativeProperties.add(nativeProperty); | 14 m_nativeProperties.add(nativeProperty); |
| 14 } | 15 } |
| 15 | 16 |
| 16 for (const auto& customProperty: customProperties) { | 17 for (const auto& customProperty: customProperties) { |
| 17 m_customProperties.add(customProperty); | 18 m_customProperties.add(customProperty); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 result.append(getPropertyNameString(nativeProperty)); | 76 result.append(getPropertyNameString(nativeProperty)); |
| 76 } | 77 } |
| 77 | 78 |
| 78 for (const auto& customProperty : m_customProperties) { | 79 for (const auto& customProperty : m_customProperties) { |
| 79 result.append(customProperty); | 80 result.append(customProperty); |
| 80 } | 81 } |
| 81 | 82 |
| 82 return result; | 83 return result; |
| 83 } | 84 } |
| 84 | 85 |
| 86 } // namespace cssom |
| 85 } // namespace blink | 87 } // namespace blink |
| 88 |
| OLD | NEW |