DescriptionMove attributes-related methods from ElementData to AttributeCollection
Move attributes-related methods from ElementData to AttributeCollection.
Now that we have a dedicated class for Element attributes, it seems odd for
the attributes-related API to be in Element / ElementData.
This CL does not change the Element API for attributes so that the patch
stays small. However, the idea would be to later move callers away from the
attributes API on Element and instead call Element::attributes() and then
interact directly with the returned AttributeCollection object.
Using AttributeCollection directly has the benefit of avoiding redundant
calls to ElementData::isUnique() and the caller can store AttributeCollection
object in a variable and then any later interaction with this object won't
require checking if ElementData is unique or not.
R=esprehn@chromium.org, adamk@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177041
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 3
Patch Set 3 : Take feedback into consideration #
Messages
Total messages: 9 (0 generated)
|