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

Issue 2670433002: Makes descriptors hold nullptr for properties not implemented in API. (Closed)

Created:
3 years, 10 months ago by aazzam
Modified:
3 years, 10 months ago
Reviewers:
sashab, ktyliu, gozzard
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

Makes descriptors hold nullptr for properties not implemented in API. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch modifies make_css_property_apis.py and CSSPropertyDescriptor.cpp.tmpl so that when the descriptors for a property are initialised, properties that are not implemented are set to nullptr. This removes the need for temporaryCanReadValue in the descriptor struct. The template is also changed so that it does not need to be modified when new methods are added to the API. BUG=668012 Review-Url: https://codereview.chromium.org/2670433002 Cr-Commit-Position: refs/heads/master@{#447984} Committed: https://chromium.googlesource.com/chromium/src/+/d3b69783512361d59dade39d8e7a0812c8a2b32a

Patch Set 1 #

Total comments: 5

Patch Set 2 : Some formatting and rebase #

Total comments: 1

Patch Set 3 : removed space #

Total comments: 17

Patch Set 4 : Neatened up code #

Messages

Total messages: 27 (13 generated)
aazzam
@sashab, let me know what you think, I personally really like this, because it makes ...
3 years, 10 months ago (2017-02-01 00:12:55 UTC) #3
aazzam
also sending to kevin, ptal :)
3 years, 10 months ago (2017-02-01 00:13:12 UTC) #5
ktyliu
cool! seems great to make adding a new API method much simpler, though will leave ...
3 years, 10 months ago (2017-02-01 00:32:29 UTC) #6
aazzam
done, sasha ptal! :) https://codereview.chromium.org/2670433002/diff/1/third_party/WebKit/Source/build/scripts/make_css_property_apis.py File third_party/WebKit/Source/build/scripts/make_css_property_apis.py (right): https://codereview.chromium.org/2670433002/diff/1/third_party/WebKit/Source/build/scripts/make_css_property_apis.py#newcode59 third_party/WebKit/Source/build/scripts/make_css_property_apis.py:59: 'valid_api_methods': self.json5_file.parameters["api_methods"]["valid_values"], On 2017/02/01 at ...
3 years, 10 months ago (2017-02-01 06:02:28 UTC) #7
ktyliu
lgtm
3 years, 10 months ago (2017-02-01 06:07:22 UTC) #8
aazzam
PTAL gozz :P
3 years, 10 months ago (2017-02-01 06:22:18 UTC) #10
aazzam
PTAL gozz :P
3 years, 10 months ago (2017-02-01 06:22:19 UTC) #12
gozzard
lgtm https://codereview.chromium.org/2670433002/diff/20001/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl (right): https://codereview.chromium.org/2670433002/diff/20001/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl#newcode28 third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl:28: {{api_class.classname}}:: {{api_method}}, nit: remove space after ::
3 years, 10 months ago (2017-02-01 06:37:49 UTC) #13
aazzam
On 2017/02/01 at 06:37:49, gozzard wrote: > lgtm > > https://codereview.chromium.org/2670433002/diff/20001/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl > File third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl (right): ...
3 years, 10 months ago (2017-02-01 06:38:32 UTC) #14
sashab
I thought you removed a dependency here, but you've just moved it -- the list ...
3 years, 10 months ago (2017-02-01 17:50:20 UTC) #15
aazzam
ptal sasha :) https://codereview.chromium.org/2670433002/diff/30006/third_party/WebKit/Source/build/scripts/make_css_property_apis.py File third_party/WebKit/Source/build/scripts/make_css_property_apis.py (right): https://codereview.chromium.org/2670433002/diff/30006/third_party/WebKit/Source/build/scripts/make_css_property_apis.py#newcode34 third_party/WebKit/Source/build/scripts/make_css_property_apis.py:34: api_methods_for_class = defaultdict(set) On 2017/02/01 at ...
3 years, 10 months ago (2017-02-01 22:33:16 UTC) #16
sashab
lgtm
3 years, 10 months ago (2017-02-03 05:18:18 UTC) #21
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/2670433002/50001
3 years, 10 months ago (2017-02-03 10:48:22 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 13:36:22 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:50001) as
https://chromium.googlesource.com/chromium/src/+/d3b69783512361d59dade39d8e7a...

Powered by Google App Engine
This is Rietveld 408576698