Omit .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}
Showing
Please register or sign in to comment