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

Unified Diff: third_party/WebKit/Source/core/html/ClassList.h

Issue 2895903002: DOMTokenList: Update serialization algorithm on add()/remove() (Closed)
Patch Set: Apply review comments Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/ClassList.h
diff --git a/third_party/WebKit/Source/core/html/ClassList.h b/third_party/WebKit/Source/core/html/ClassList.h
index 79d3f20a8e77e6346b559e5345d9b2875b832dfc..3dcc1df572a20e071f27b56b5a9fac882f78f991 100644
--- a/third_party/WebKit/Source/core/html/ClassList.h
+++ b/third_party/WebKit/Source/core/html/ClassList.h
@@ -53,16 +53,19 @@ class ClassList final : public DOMTokenList {
bool ContainsInternal(const AtomicString&) const override;
const SpaceSplitString& ClassNames() const;
+ SpaceSplitString& MutableSet() override;
const AtomicString& value() const override {
return element_->getAttribute(HTMLNames::classAttr);
}
void setValue(const AtomicString& value) override {
element_->setAttribute(HTMLNames::classAttr, value);
+ mutable_set_.Clear();
}
Member<Element> element_;
mutable std::unique_ptr<SpaceSplitString> class_names_for_quirks_mode_;
+ SpaceSplitString mutable_set_;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/SpaceSplitString.cpp ('k') | third_party/WebKit/Source/core/html/ClassList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698