OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ImmutableStylePropertyMap_h |
| 6 #define ImmutableStylePropertyMap_h |
| 7 |
| 8 #include "core/css/cssom/StylePropertyMap.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class CORE_EXPORT ImmutableStylePropertyMap : public StylePropertyMap { |
| 13 WTF_MAKE_NONCOPYABLE(ImmutableStylePropertyMap); |
| 14 public: |
| 15 void set(CSSPropertyID, StyleValueOrStyleValueSequenceOrString&, ExceptionSt
ate& exceptionState) override |
| 16 { |
| 17 exceptionState.throwTypeError("This StylePropertyMap is immutable."); |
| 18 } |
| 19 |
| 20 void append(CSSPropertyID, StyleValueOrStyleValueSequenceOrString&, Exceptio
nState& exceptionState) override |
| 21 { |
| 22 exceptionState.throwTypeError("This StylePropertyMap is immutable."); |
| 23 } |
| 24 |
| 25 void remove(CSSPropertyID, ExceptionState& exceptionState) override |
| 26 { |
| 27 exceptionState.throwTypeError("This StylePropertyMap is immutable."); |
| 28 } |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif |
OLD | NEW |