Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: third_party/WebKit/Source/core/html/RelList.h

Issue 2895903002: DOMTokenList: Update serialization algorithm on add()/remove() (Closed)
Patch Set: Apply review comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/ClassList.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/ClassList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698