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

Issue 2797963002: Generate ComputedStyle::hasViewportUnits and hasRemUnits. (Closed)

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

Generate ComputedStyle::hasViewportUnits and hasRemUnits. This patch moves hasViewportUnits and hasRemUnits to be generated in ComputedStyleBase. Both are noninherited nonproperties. hasRemUnits is generated as a monotonic_flag field, but hasViewportUnits needs to be a boolean flag field because there are places where it gets set to false. Since these are the two remaining noninherited fields stored directly in ComputedStyle, this patch also removes the NonInheritedData struct from ComputedStyle. Diff of generated files: https://gist.github.com/47fd74b4a54917d0413367227dcb962a/revisions BUG=628043 Review-Url: https://codereview.chromium.org/2797963002 Cr-Commit-Position: refs/heads/master@{#462377} Committed: https://chromium.googlesource.com/chromium/src/+/25809e1270b9eb4103f1efcc089c781df8465e39

Patch Set 1 #

Patch Set 2 : Not inherited! #

Total comments: 6

Patch Set 3 : Use primitive #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -75 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 3 2 chunks +0 lines, -52 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 chunks +17 lines, -23 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
shend
Hi Naina, PTAL :)
3 years, 8 months ago (2017-04-05 08:10:58 UTC) #5
nainar
lgtm with two small questions. https://codereview.chromium.org/2797963002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): https://codereview.chromium.org/2797963002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode55 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:55: {'name': 'HasViewportUnits', 'field_template': 'flag', ...
3 years, 8 months ago (2017-04-05 16:41:49 UTC) #6
shend
https://codereview.chromium.org/2797963002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): https://codereview.chromium.org/2797963002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode55 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:55: {'name': 'HasViewportUnits', 'field_template': 'flag', 'default_value': 'false', On 2017/04/05 at ...
3 years, 8 months ago (2017-04-05 22:32:37 UTC) #8
shend
Hi Alan, PTAL
3 years, 8 months ago (2017-04-05 22:33:44 UTC) #10
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2797963002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): https://codereview.chromium.org/2797963002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode55 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:55: {'name': 'HasViewportUnits', 'field_template': 'flag', 'default_value': 'false', On 2017/04/05 ...
3 years, 8 months ago (2017-04-06 04:18:49 UTC) #11
shend
On 2017/04/06 at 04:18:49, alancutter wrote: > lgtm > > https://codereview.chromium.org/2797963002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py > File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): ...
3 years, 8 months ago (2017-04-06 04:27:42 UTC) #14
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/2797963002/60001
3 years, 8 months ago (2017-04-06 06:47:27 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/25809e1270b9eb4103f1efcc089c781df8465e39
3 years, 8 months ago (2017-04-06 06:59:04 UTC) #33
shend
3 years, 8 months ago (2017-04-20 06:37:30 UTC) #34
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2828193002/ by shend@chromium.org.

The reason for reverting is: testing
https://bugs.chromium.org/p/chromium/issues/detail?id=713128.

Powered by Google App Engine
This is Rietveld 408576698