Change 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}
2 files changed