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

Issue 2766933002: Unify logic for properties and nonproperties in computed_style_base.py (Closed)

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

Description

Unify logic for properties and nonproperties in computed_style_base.py As nonproperty fields get more complex, the logic to create nonproperty fields becomes very similar to property fields. This patch merges the two code paths so that properties and nonproperties share as much logic as possible. BUG=628043 Review-Url: https://codereview.chromium.org/2766933002 Cr-Commit-Position: refs/heads/master@{#459231} Committed: https://chromium.googlesource.com/chromium/src/+/bc0808a25d54a0138ce2d61e838191a5b1f4f3e0

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 23

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -69 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 3 9 chunks +68 lines, -69 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
shend
Hi Alan, PTAL
3 years, 9 months ago (2017-03-22 00:53:12 UTC) #2
alancutter (OOO until 2018)
https://codereview.chromium.org/2766933002/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/2766933002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode90 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:90: self.is_nonproperty = field_role == 'nonproperty' We should aim to ...
3 years, 9 months ago (2017-03-22 07:01:44 UTC) #7
shend
Replied to some comments. https://codereview.chromium.org/2766933002/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/2766933002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode94 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:94: if self.is_property or self.is_nonproperty: On ...
3 years, 9 months ago (2017-03-22 22:29:19 UTC) #8
shend
https://codereview.chromium.org/2766933002/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/2766933002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode202 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:202: Create ComputedStyle fields from properties or nonproperties and return ...
3 years, 9 months ago (2017-03-23 00:05:29 UTC) #9
alancutter (OOO until 2018)
https://codereview.chromium.org/2766933002/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/2766933002/diff/20001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode202 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:202: Create ComputedStyle fields from properties or nonproperties and return ...
3 years, 9 months ago (2017-03-23 02:13:41 UTC) #10
shend
Addressed comments. Regarding nonproperties vs properties, I'll overhaul that part in a later patch since ...
3 years, 9 months ago (2017-03-23 02:54:50 UTC) #11
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2766933002/diff/40001/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/2766933002/diff/40001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode311 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:311: self._property_values = property_values This member is now unused ...
3 years, 9 months ago (2017-03-23 03:02:47 UTC) #14
shend
https://codereview.chromium.org/2766933002/diff/40001/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/2766933002/diff/40001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode311 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:311: self._property_values = property_values On 2017/03/23 at 03:02:47, alancutter wrote: ...
3 years, 9 months ago (2017-03-23 04:52:07 UTC) #20
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/2766933002/60001
3 years, 9 months ago (2017-03-23 04:52:41 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304359)
3 years, 9 months ago (2017-03-23 05:07:05 UTC) #25
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/2766933002/60001
3 years, 9 months ago (2017-03-23 05:51:50 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304439)
3 years, 9 months ago (2017-03-23 06:05:44 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/2766933002/60001
3 years, 9 months ago (2017-03-23 21:14:59 UTC) #31
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 21:35:48 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/bc0808a25d54a0138ce2d61e8381...

Powered by Google App Engine
This is Rietveld 408576698