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

Issue 2785343002: Use getters for StyleSurroundData members in ComputedStyle.cpp (Closed)

Created:
3 years, 8 months ago by shend
Modified:
3 years, 8 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

Use getters for StyleSurroundData members in ComputedStyle.cpp In ComputedStyle, we directly access StyleSurroundData members via the m_surround pointer (e.g. m_surround->m_border), but this assumes that these members will always be stored in StyleSurroundData. As part of clockwork, we may change where these members are stored, so this patch uses getter methods instead, which are independent of where these members are stored. Places not affected by this patch: - Getters/setters, since these will be eventually generated. - When the surround pointer is used directly (e.g. for fast comparisons), since these are unavoidable. - Modifying variables via m_surround.access(), since they're setters not getters. Setters will be refactored in a separate patch. BUG=628043 Review-Url: https://codereview.chromium.org/2785343002 Cr-Commit-Position: refs/heads/master@{#465119} Committed: https://chromium.googlesource.com/chromium/src/+/20be06ee11375df67a4bcdb0e9716fbb343f2e48

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Fix typo #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -48 lines) Patch
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 chunks +24 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 7 chunks +12 lines, -14 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (30 generated)
shend
Hi Bugs, PTAL :)
3 years, 8 months ago (2017-03-31 00:26:56 UTC) #2
Bugs Nash
Good stuff, this is better code anyways There are more instances of m_surround members being ...
3 years, 8 months ago (2017-04-03 00:12:48 UTC) #3
shend
> There are more instances of m_surround members being accessed in ComputedStyle.h and .cpp files ...
3 years, 8 months ago (2017-04-03 00:58:48 UTC) #6
Bugs Nash
On 2017/04/03 at 00:58:48, shend wrote: > > There are more instances of m_surround members ...
3 years, 8 months ago (2017-04-03 03:54:37 UTC) #7
Bugs Nash
On 2017/04/03 at 03:54:37, Bugs Nash wrote: > On 2017/04/03 at 00:58:48, shend wrote: > ...
3 years, 8 months ago (2017-04-03 04:04:55 UTC) #10
shend
On 2017/04/03 at 03:54:37, bugsnash wrote: > On 2017/04/03 at 00:58:48, shend wrote: > > ...
3 years, 8 months ago (2017-04-03 04:05:11 UTC) #11
shend
Hi Eddy, PTAL
3 years, 8 months ago (2017-04-03 23:37:37 UTC) #17
shend
Hi Eddy, PTAL
3 years, 8 months ago (2017-04-03 23:37:37 UTC) #18
meade_UTC10
lgtm
3 years, 8 months ago (2017-04-04 01:06:33 UTC) #22
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/2785343002/60001
3 years, 8 months ago (2017-04-18 02:50:29 UTC) #38
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 02:54:04 UTC) #41
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/20be06ee11375df67a4bcdb0e971...

Powered by Google App Engine
This is Rietveld 408576698