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

Issue 2620233002: Add 'priority' key to CSSProperties.in (Closed)

Created:
3 years, 11 months ago by sashab
Modified:
3 years, 11 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 'priority' key to CSSProperties.in Add a 'priority' key to CSSProperties.in, rather than relying on the file order. This removes the requirement that properties defined in this file have to be in a certain order. BUG=677884 Review-Url: https://codereview.chromium.org/2620233002 Cr-Commit-Position: refs/heads/master@{#443845} Committed: https://chromium.googlesource.com/chromium/src/+/be6d3f418dca5f76954e3e04108364fb6ce3be29

Patch Set 1 #

Total comments: 2

Patch Set 2 : There goes most of my patch ;) #

Total comments: 4

Patch Set 3 : Review feedback #

Total comments: 2

Patch Set 4 : Added ordering comment #

Patch Set 5 : Added generating todo #

Patch Set 6 : Rebase #

Patch Set 7 : Removed version control conflict markers #

Patch Set 8 : Rebase #

Patch Set 9 : Small fix from bad rebsae #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -37 lines) Patch
M third_party/WebKit/Source/build/scripts/css_properties.py View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/CSSPropertyPriority.h View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (22 generated)
sashab
3 years, 11 months ago (2017-01-11 02:35:29 UTC) #4
ktyliu
lgtm https://codereview.chromium.org/2620233002/diff/1/third_party/WebKit/Source/build/scripts/css_properties.py File third_party/WebKit/Source/build/scripts/css_properties.py (right): https://codereview.chromium.org/2620233002/diff/1/third_party/WebKit/Source/build/scripts/css_properties.py#newcode68 third_party/WebKit/Source/build/scripts/css_properties.py:68: prioritised_properties = {0: [], 1: [], 2: []} ...
3 years, 11 months ago (2017-01-11 02:45:43 UTC) #5
sashab
alancutter@ ptal, patch reduced to very little now thanks to some magic python hAx0Rz from ...
3 years, 11 months ago (2017-01-11 02:50:46 UTC) #8
alancutter (OOO until 2018)
https://codereview.chromium.org/2620233002/diff/20001/third_party/WebKit/Source/build/scripts/css_properties.py File third_party/WebKit/Source/build/scripts/css_properties.py (right): https://codereview.chromium.org/2620233002/diff/20001/third_party/WebKit/Source/build/scripts/css_properties.py#newcode68 third_party/WebKit/Source/build/scripts/css_properties.py:68: properties.sort(key=lambda p: (int(p['priority']), name_utilities.strip_webkit_prefix(p['name']))) This sorting key has collisions ...
3 years, 11 months ago (2017-01-11 03:24:20 UTC) #10
sashab
Nice suggestions Alan. Added a 'sorting_key' field. PTAL https://codereview.chromium.org/2620233002/diff/20001/third_party/WebKit/Source/build/scripts/css_properties.py File third_party/WebKit/Source/build/scripts/css_properties.py (right): https://codereview.chromium.org/2620233002/diff/20001/third_party/WebKit/Source/build/scripts/css_properties.py#newcode68 third_party/WebKit/Source/build/scripts/css_properties.py:68: properties.sort(key=lambda ...
3 years, 11 months ago (2017-01-11 03:57:44 UTC) #11
alancutter (OOO until 2018)
lgtm. :D https://codereview.chromium.org/2620233002/diff/40001/third_party/WebKit/Source/build/scripts/css_properties.py File third_party/WebKit/Source/build/scripts/css_properties.py (right): https://codereview.chromium.org/2620233002/diff/40001/third_party/WebKit/Source/build/scripts/css_properties.py#newcode70 third_party/WebKit/Source/build/scripts/css_properties.py:70: priority_numbers = {'Animation': 0, 'High': 1, 'Low': ...
3 years, 11 months ago (2017-01-11 04:20:56 UTC) #12
sashab
https://codereview.chromium.org/2620233002/diff/40001/third_party/WebKit/Source/build/scripts/css_properties.py File third_party/WebKit/Source/build/scripts/css_properties.py (right): https://codereview.chromium.org/2620233002/diff/40001/third_party/WebKit/Source/build/scripts/css_properties.py#newcode70 third_party/WebKit/Source/build/scripts/css_properties.py:70: priority_numbers = {'Animation': 0, 'High': 1, 'Low': 2} On ...
3 years, 11 months ago (2017-01-11 23:28:52 UTC) #13
alancutter (OOO until 2018)
On 2017/01/11 at 23:28:52, sashab wrote: > https://codereview.chromium.org/2620233002/diff/40001/third_party/WebKit/Source/build/scripts/css_properties.py > File third_party/WebKit/Source/build/scripts/css_properties.py (right): > > https://codereview.chromium.org/2620233002/diff/40001/third_party/WebKit/Source/build/scripts/css_properties.py#newcode70 ...
3 years, 11 months ago (2017-01-11 23:31:16 UTC) #14
sashab
Ah, I misunderstood. Yes, we should definitely generate the methods in CSSPropertyPriority.h. Added TODO for ...
3 years, 11 months ago (2017-01-11 23:36:16 UTC) #15
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/2620233002/80001
3 years, 11 months ago (2017-01-11 23:37:16 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/134324) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-11 23:41:14 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/2620233002/100001
3 years, 11 months ago (2017-01-11 23:51:08 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/340148)
3 years, 11 months ago (2017-01-12 00:04:30 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/2620233002/120001
3 years, 11 months ago (2017-01-16 02:36:17 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/194738) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 11 months ago (2017-01-16 02:48:07 UTC) #30
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/2620233002/140001
3 years, 11 months ago (2017-01-16 02:54:39 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/337942)
3 years, 11 months ago (2017-01-16 03:02:59 UTC) #35
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/2620233002/160001
3 years, 11 months ago (2017-01-16 03:09:20 UTC) #38
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 04:33:24 UTC) #41
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/be6d3f418dca5f76954e3e041083...

Powered by Google App Engine
This is Rietveld 408576698