DescriptionDOMTokenList: Update serialization algorithm on add()/remove()
We should re-serialize the whole token list even if an operation didn't change
the list items.
* blink::ClassList
This class doesn't use DOMTokenList::tokens_, and usually uses
ElementData::class_names_. We can't update it before setAttribute(). So this class
creates SpaceSplitString for mutation on the fly.
* blink::RelList
This class doesn't use DOMTokenList::tokens_. MutableSet() should refer to
rel_values_ instead.
* blink::DOMTokenList
For other DOMTokenLists, we can mutate tokens_ directly.
BUG=600964
Review-Url: https://codereview.chromium.org/2895903002
Cr-Commit-Position: refs/heads/master@{#474229}
Committed: https://chromium.googlesource.com/chromium/src/+/1806913f25daa9da5ca69a0115fe74addaa35d32
Patch Set 1 #Patch Set 2 : Remove one -expected.txt #
Total comments: 6
Patch Set 3 : Apply review comments #Dependent Patchsets: Messages
Total messages: 25 (19 generated)
|