Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Issue 2852873002: Omit .Get() on calls to DataEquivalent in StyleRareInheritedData. (Closed)

Created:
3 years, 7 months ago by shend
Modified:
3 years, 7 months ago
Reviewers:
meade_UTC10, Bugs Nash
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/fa4d44124befc9b262884ea7af6e53b87f0baf03

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp View 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
shend
Hi Bugs, PTAL
3 years, 7 months ago (2017-05-01 00:17:14 UTC) #4
Bugs Nash
lgtm
3 years, 7 months ago (2017-05-01 23:00:17 UTC) #7
shend
Hi Eddy, PTAL :)
3 years, 7 months ago (2017-05-01 23:51:46 UTC) #9
meade_UTC10
lgtm
3 years, 7 months ago (2017-05-03 03:15:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2852873002/1
3 years, 7 months ago (2017-05-03 05:35:37 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 07:07:30 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/fa4d44124befc9b262884ea7af6e...

Powered by Google App Engine
This is Rietveld 408576698