DescriptionOmit .Get() on calls to DataEquivalent in StyleRareInheritedData.
StyleRareInheritedData contains a few members stored as RefPtr<> or
Persistent<>. To compare these members, we can't use == because that
performs a pointer comparison, so instead we use a helper method called
DataEquivalent that checks both the pointer and the data itself.
For some members, DataEquivalent is being used like this:
DataEquivalent(foo.Get(), o.foo.Get())
However, DataEquivalent is overloaded for RefPtr and Persistent, so we
can do this instead:
DataEquivalent(foo, o.foo)
This patch removes .Get() calls on DataEquivalent to take advantage of
the overloads.
BUG=628043
Review-Url: https://codereview.chromium.org/2852873002
Cr-Commit-Position: refs/heads/master@{#468914}
Committed: https://chromium.googlesource.com/chromium/src/+/fa4d44124befc9b262884ea7af6e53b87f0baf03
Patch Set 1 #
Messages
Total messages: 15 (9 generated)
|