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

Issue 124763002: Support IDL attributes limited to only known values. (Closed)

Created:
6 years, 11 months ago by sof
Modified:
6 years, 10 months ago
CC:
blink-reviews, kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Support IDL attributes limited to only known values. Provide the required binding layer support for IDL attributes that reflect an enumerated content attribute that is limited to a set of known values: http://www.whatwg.org/specs/web-apps/current-work/#limited-to-only-known-values That is, have the getter for such attributes check with respect to the known value set and perform the required filtering + canonicalization of the value returned. R=haraken BUG=331695 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164509

Patch Set 1 #

Total comments: 11

Patch Set 2 : Retire same-case optimization #

Patch Set 3 : Rebased + switched to using '|' as ReflectOnly separator #

Total comments: 5

Patch Set 4 : Flatten generated code block #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -1 line) Patch
M Source/bindings/IDLExtendedAttributes.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 3 chunks +43 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 2 chunks +120 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
sof
Please take a look when you next have a moment. If/when this change is accepted, ...
6 years, 11 months ago (2014-01-05 22:40:31 UTC) #1
haraken
On 2014/01/05 22:40:31, sof wrote: > Please take a look when you next have a ...
6 years, 11 months ago (2014-01-06 00:24:10 UTC) #2
sof
On 2014/01/06 00:24:10, haraken wrote: > On 2014/01/05 22:40:31, sof wrote: > > Please take ...
6 years, 11 months ago (2014-01-06 06:16:28 UTC) #3
haraken
On 2014/01/06 06:16:28, sof wrote: > On 2014/01/06 00:24:10, haraken wrote: > > On 2014/01/05 ...
6 years, 11 months ago (2014-01-06 06:23:43 UTC) #4
haraken
https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl File Source/bindings/tests/idls/TestObject.idl (right): https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl#newcode78 Source/bindings/tests/idls/TestObject.idl:78: [Reflect, ReflectOnly=Per Paal Espen] attribute DOMString limitedToOnlyAttribute; Shall we ...
6 years, 11 months ago (2014-01-06 06:23:53 UTC) #5
sof
https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl File Source/bindings/tests/idls/TestObject.idl (right): https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl#newcode78 Source/bindings/tests/idls/TestObject.idl:78: [Reflect, ReflectOnly=Per Paal Espen] attribute DOMString limitedToOnlyAttribute; On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 06:40:51 UTC) #6
Nils Barth (inactive)
https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl File Source/bindings/tests/idls/TestObject.idl (right): https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl#newcode78 Source/bindings/tests/idls/TestObject.idl:78: [Reflect, ReflectOnly=Per Paal Espen] attribute DOMString limitedToOnlyAttribute; On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 06:42:50 UTC) #7
haraken
https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/results/V8TestObject.cpp File Source/bindings/tests/results/V8TestObject.cpp (right): https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/results/V8TestObject.cpp#newcode883 Source/bindings/tests/results/V8TestObject.cpp:883: resultValue = "unique"; On 2014/01/06 06:40:51, sof wrote: > ...
6 years, 11 months ago (2014-01-06 07:00:36 UTC) #8
Nils Barth (inactive)
Parser bug is real, fix posted. https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl File Source/bindings/tests/idls/TestObject.idl (right): https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl#newcode78 Source/bindings/tests/idls/TestObject.idl:78: [Reflect, ReflectOnly=Per Paal ...
6 years, 11 months ago (2014-01-06 07:12:48 UTC) #9
sof
https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/results/V8TestObject.cpp File Source/bindings/tests/results/V8TestObject.cpp (right): https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/results/V8TestObject.cpp#newcode883 Source/bindings/tests/results/V8TestObject.cpp:883: resultValue = "unique"; On 2014/01/06 07:00:37, haraken wrote: > ...
6 years, 11 months ago (2014-01-06 07:22:29 UTC) #10
haraken
https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/results/V8TestObject.cpp File Source/bindings/tests/results/V8TestObject.cpp (right): https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/results/V8TestObject.cpp#newcode883 Source/bindings/tests/results/V8TestObject.cpp:883: resultValue = "unique"; ah, sorry, understood. However, I think ...
6 years, 11 months ago (2014-01-06 08:07:33 UTC) #11
sof
Will wait until the IDL parser fix lands & rebase + switch to using "|" ...
6 years, 11 months ago (2014-01-06 08:20:09 UTC) #12
sof
https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl File Source/bindings/tests/idls/TestObject.idl (right): https://codereview.chromium.org/124763002/diff/1/Source/bindings/tests/idls/TestObject.idl#newcode78 Source/bindings/tests/idls/TestObject.idl:78: [Reflect, ReflectOnly=Per Paal Espen] attribute DOMString limitedToOnlyAttribute; On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 10:59:18 UTC) #13
haraken
LGTM https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm#newcode6270 Source/bindings/scripts/code_generator_v8.pm:6270: AddToImplIncludes("wtf/text/WTFString.h"); This won't be needed. https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm#newcode6283 Source/bindings/scripts/code_generator_v8.pm:6283: ${indent}if ...
6 years, 11 months ago (2014-01-06 13:13:02 UTC) #14
sof
https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm#newcode6283 Source/bindings/scripts/code_generator_v8.pm:6283: ${indent}if (!resultValue.isEmpty()) { On 2014/01/06 13:13:02, haraken wrote: > ...
6 years, 11 months ago (2014-01-06 13:15:56 UTC) #15
haraken
On 2014/01/06 13:15:56, sof wrote: > https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm > File Source/bindings/scripts/code_generator_v8.pm (right): > > https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm#newcode6283 > ...
6 years, 11 months ago (2014-01-06 13:29:33 UTC) #16
sof
https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/124763002/diff/200001/Source/bindings/scripts/code_generator_v8.pm#newcode6270 Source/bindings/scripts/code_generator_v8.pm:6270: AddToImplIncludes("wtf/text/WTFString.h"); On 2014/01/06 13:13:02, haraken wrote: > > This ...
6 years, 11 months ago (2014-01-06 13:45:32 UTC) #17
haraken
LGTM, thanks!
6 years, 11 months ago (2014-01-06 13:48:41 UTC) #18
sof
On 2014/01/06 13:48:41, haraken wrote: > LGTM, thanks! Thank you. Sorry for the extra bother; ...
6 years, 11 months ago (2014-01-06 14:05:13 UTC) #19
haraken
On 2014/01/06 14:05:13, sof wrote: > On 2014/01/06 13:48:41, haraken wrote: > > LGTM, thanks! ...
6 years, 11 months ago (2014-01-06 14:07:06 UTC) #20
haraken
On 2014/01/06 14:07:06, haraken wrote: > On 2014/01/06 14:05:13, sof wrote: > > On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 14:07:51 UTC) #21
haraken
On 2014/01/06 14:07:51, haraken wrote: > On 2014/01/06 14:07:06, haraken wrote: > > On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 14:08:45 UTC) #22
sof
On 2014/01/06 14:08:45, haraken wrote: > On 2014/01/06 14:07:51, haraken wrote: > > On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 14:11:59 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/124763002/310001
6 years, 11 months ago (2014-01-06 14:12:25 UTC) #24
sof
On 2014/01/06 14:11:59, sof wrote: > On 2014/01/06 14:08:45, haraken wrote: > > On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 14:14:52 UTC) #25
sof
On 2014/01/06 14:14:52, sof wrote: > On 2014/01/06 14:11:59, sof wrote: > > On 2014/01/06 ...
6 years, 11 months ago (2014-01-06 14:25:39 UTC) #26
commit-bot: I haz the power
Change committed as 164509
6 years, 11 months ago (2014-01-06 15:23:37 UTC) #27
Nils Barth (inactive)
6 years, 10 months ago (2014-02-05 06:12:10 UTC) #28
Message was sent while issue was closed.
Python side is:
IDL compiler: [ReflectOnly]
https://codereview.chromium.org/145773004/

Powered by Google App Engine
This is Rietveld 408576698