| 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/InlineStylePropertyMap.h" | 5 #include "core/css/cssom/InlineStylePropertyMap.h" |
| 6 | 6 |
| 7 #include "core/CSSPropertyNames.h" | 7 #include "core/CSSPropertyNames.h" |
| 8 #include "core/css/CSSPrimitiveValue.h" | 8 #include "core/css/CSSPrimitiveValue.h" |
| 9 #include "core/css/CSSPropertyMetadata.h" | 9 #include "core/css/CSSPropertyMetadata.h" |
| 10 #include "core/css/CSSValueList.h" | 10 #include "core/css/CSSValueList.h" |
| 11 #include "core/css/StylePropertySet.h" | 11 #include "core/css/StylePropertySet.h" |
| 12 #include "core/css/cssom/CSSOMTypes.h" | 12 #include "core/css/cssom/CSSOMTypes.h" |
| 13 #include "core/css/cssom/SimpleLength.h" | 13 #include "core/css/cssom/CSSSimpleLength.h" |
| 14 #include "core/css/cssom/StyleValueFactory.h" | 14 #include "core/css/cssom/StyleValueFactory.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 StyleValue* InlineStylePropertyMap::get(CSSPropertyID propertyID) | 18 StyleValue* InlineStylePropertyMap::get(CSSPropertyID propertyID) |
| 19 { | 19 { |
| 20 StyleValueVector styleVector = getAll(propertyID); | 20 StyleValueVector styleVector = getAll(propertyID); |
| 21 if (styleVector.isEmpty()) | 21 if (styleVector.isEmpty()) |
| 22 return nullptr; | 22 return nullptr; |
| 23 | 23 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 m_ownerElement->setInlineStyleProperty(propertyID, cssValueList); | 143 m_ownerElement->setInlineStyleProperty(propertyID, cssValueList); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void InlineStylePropertyMap::remove(CSSPropertyID propertyID, ExceptionState& ex
ceptionState) | 146 void InlineStylePropertyMap::remove(CSSPropertyID propertyID, ExceptionState& ex
ceptionState) |
| 147 { | 147 { |
| 148 m_ownerElement->removeInlineStyleProperty(propertyID); | 148 m_ownerElement->removeInlineStyleProperty(propertyID); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| OLD | NEW |