DescriptionChange ContentData::operator== to iterate through whole list.
ContentData is a class that has a linked list structure. To compare two
ContentDatas, ComputedStyle iterates through the two lists and checks
that each element is equal using operator==, which calls through to
ContentData::Equals.
Instead of leaving the iteration logic in ComputedStyle, this patch
moves it to operator==, so that operator== iterates through the two
linked lists and compares each element using ContentData::Equals. This
allows ComputedStyle to just use operator== on ContentData.
This transformation causes no behavioural changes as ContentData's
operator== was only used by ComputedStyle.
BUG=628043
Review-Url: https://codereview.chromium.org/2904723002
Cr-Commit-Position: refs/heads/master@{#474408}
Committed: https://chromium.googlesource.com/chromium/src/+/e452a38ed13a4b9c472196221494d228a8be7f30
Patch Set 1 #Patch Set 2 : Rebase #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 17 (13 generated)
|