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

Issue 2830573002: Use generated getters/setters in ComputedStyle instead of directly accessing fields (Closed)

Created:
3 years, 8 months ago by nainar
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use generated getters/setters in ComputedStyle instead of directly accessing fields Use generated getters/setters from https://codereview.chromium.org/2786883002 in ComputedStyle instead of directly accessing fields. It also marks all generated fields as private to ensure no direct usage. BUG=628043 Review-Url: https://codereview.chromium.org/2830573002 Cr-Commit-Position: refs/heads/master@{#465973} Committed: https://chromium.googlesource.com/chromium/src/+/c8b65a9c8a99a53561f8fd337f98e0bf5ac98f96

Patch Set 1 #

Patch Set 2 : Make all generated fields private #

Total comments: 4

Patch Set 3 : Changes suggested by shend@ #

Total comments: 6

Patch Set 4 : nits #

Total comments: 12

Patch Set 5 : suzyh@'s comments #

Patch Set 6 : Comments #

Total comments: 2

Patch Set 7 : Grammatical nit #

Patch Set 8 : Grammatical nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -29 lines) Patch
M third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 5 6 7 5 chunks +14 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 5 11 chunks +14 lines, -13 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 44 (27 generated)
nainar
Darren, PTAL? Thanks!
3 years, 8 months ago (2017-04-19 04:38:35 UTC) #4
shend
https://codereview.chromium.org/2830573002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2830573002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode348 third_party/WebKit/Source/core/style/ComputedStyle.cpp:348: SetVerticalAlignInternal(other.VerticalAlignInternal()); This is an interesting case. Both the previous ...
3 years, 8 months ago (2017-04-19 06:17:30 UTC) #8
nainar
Made the changes you asked for, PTAL? https://codereview.chromium.org/2830573002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2830573002/diff/20001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode348 third_party/WebKit/Source/core/style/ComputedStyle.cpp:348: SetVerticalAlignInternal(other.VerticalAlignInternal()); On ...
3 years, 8 months ago (2017-04-19 06:31:14 UTC) #11
shend
lgtm with nits :) https://codereview.chromium.org/2830573002/diff/40001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2830573002/diff/40001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode483 third_party/WebKit/Source/core/style/ComputedStyle.cpp:483: VerticalAlignInternal() == Use public getter. ...
3 years, 8 months ago (2017-04-19 07:47:41 UTC) #12
nainar
Sending for OWNERS with shend@'s changes incorporated. https://codereview.chromium.org/2830573002/diff/40001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2830573002/diff/40001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode483 third_party/WebKit/Source/core/style/ComputedStyle.cpp:483: VerticalAlignInternal() == ...
3 years, 8 months ago (2017-04-19 08:53:10 UTC) #16
suzyh_UTC10 (ex-contributor)
https://codereview.chromium.org/2830573002/diff/60001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2830573002/diff/60001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode483 third_party/WebKit/Source/core/style/ComputedStyle.cpp:483: VerticalAlign() == other.VerticalAlign() && // Not generated in Was ...
3 years, 8 months ago (2017-04-20 00:30:47 UTC) #19
nainar
Suzy, Made the changes you asked for, PTAL? Thanks! https://codereview.chromium.org/2830573002/diff/60001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2830573002/diff/60001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode483 third_party/WebKit/Source/core/style/ComputedStyle.cpp:483: ...
3 years, 8 months ago (2017-04-20 03:06:16 UTC) #20
suzyh_UTC10 (ex-contributor)
Plus a typo in the CL headline: COmputedStyle (extra capitalisation). https://codereview.chromium.org/2830573002/diff/60001/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2830573002/diff/60001/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode3697 ...
3 years, 8 months ago (2017-04-20 03:40:26 UTC) #21
nainar
Made the changes you asked for, PTAL? https://codereview.chromium.org/2830573002/diff/60001/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2830573002/diff/60001/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode3697 third_party/WebKit/Source/core/style/ComputedStyle.h:3697: return PseudoBitsInternal(); ...
3 years, 8 months ago (2017-04-20 05:21:49 UTC) #24
suzyh_UTC10 (ex-contributor)
lgtm with one grammar nit https://codereview.chromium.org/2830573002/diff/100001/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2830573002/diff/100001/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode3705 third_party/WebKit/Source/core/style/ComputedStyle.h:3705: // TODO: Fix up ...
3 years, 8 months ago (2017-04-20 06:18:27 UTC) #28
nainar
Nit fixed. Landing now. https://codereview.chromium.org/2830573002/diff/100001/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2830573002/diff/100001/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode3705 third_party/WebKit/Source/core/style/ComputedStyle.h:3705: // TODO: Fix up this ...
3 years, 8 months ago (2017-04-20 06:47:12 UTC) #29
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/2830573002/120001
3 years, 8 months ago (2017-04-20 06:47:39 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/57721)
3 years, 8 months ago (2017-04-20 06:57:31 UTC) #34
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/2830573002/140001
3 years, 8 months ago (2017-04-20 07:04:08 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/435199)
3 years, 8 months ago (2017-04-20 08:24:44 UTC) #39
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/2830573002/140001
3 years, 8 months ago (2017-04-20 10:56:43 UTC) #41
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 11:37:18 UTC) #44
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/c8b65a9c8a99a53561f8fd337f98...

Powered by Google App Engine
This is Rietveld 408576698