| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 RelList_h | 5 #ifndef RelList_h |
| 6 #define RelList_h | 6 #define RelList_h |
| 7 | 7 |
| 8 #include "core/HTMLNames.h" | 8 #include "core/HTMLNames.h" |
| 9 #include "core/dom/DOMTokenList.h" | 9 #include "core/dom/DOMTokenList.h" |
| 10 #include "core/dom/Element.h" | 10 #include "core/dom/Element.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 void SetRelValues(const AtomicString&); | 22 void SetRelValues(const AtomicString&); |
| 23 | 23 |
| 24 DECLARE_VIRTUAL_TRACE(); | 24 DECLARE_VIRTUAL_TRACE(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 explicit RelList(Element*); | 27 explicit RelList(Element*); |
| 28 | 28 |
| 29 bool ContainsInternal(const AtomicString&) const override; | 29 bool ContainsInternal(const AtomicString&) const override; |
| 30 | 30 |
| 31 SpaceSplitString& MutableSet() override { return rel_values_; } |
| 31 const AtomicString& value() const override { | 32 const AtomicString& value() const override { |
| 32 return element_->getAttribute(HTMLNames::relAttr); | 33 return element_->getAttribute(HTMLNames::relAttr); |
| 33 } | 34 } |
| 34 void setValue(const AtomicString& value) override { | 35 void setValue(const AtomicString& value) override { |
| 35 element_->setAttribute(HTMLNames::relAttr, value); | 36 element_->setAttribute(HTMLNames::relAttr, value); |
| 36 } | 37 } |
| 37 | 38 |
| 38 bool ValidateTokenValue(const AtomicString&, ExceptionState&) const override; | 39 bool ValidateTokenValue(const AtomicString&, ExceptionState&) const override; |
| 39 | 40 |
| 40 Member<Element> element_; | 41 Member<Element> element_; |
| 41 SpaceSplitString rel_values_; | 42 SpaceSplitString rel_values_; |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 } // namespace blink | 45 } // namespace blink |
| 45 | 46 |
| 46 #endif // RelList_h | 47 #endif // RelList_h |
| OLD | NEW |