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

Issue 21006006: Add forEach() to CSSVariablesMap (Closed)

Created:
7 years, 4 months ago by alancutter (OOO until 2018)
Modified:
7 years, 2 months ago
CC:
blink-reviews, kojih, jsbell+bindings_chromium.org, eae+blinkwatch, marja+watch_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, Nate Chapin, do-not-use
Visibility:
Public.

Description

Add forEach() to CSSVariablesMap This adds an implementation of forEach from WebIDL MapClass to CSSVariablesMap. Specification: http://dev.w3.org/2006/webapi/WebIDL/#MapClass http://dev.w3.org/csswg/css-variables/#the-CSSVariablesMap-interface BUG=231791 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158524

Patch Set 1 #

Total comments: 14

Patch Set 2 : Test fixes and rebased onto Python IDL generator #

Total comments: 9

Patch Set 3 : Python code generator changes #

Total comments: 10

Patch Set 4 : More generator changes #

Total comments: 5

Patch Set 5 : Generator nits #

Patch Set 6 : Reverted .tmpl rename #

Total comments: 8

Patch Set 7 : Generator & test nits #

Total comments: 2

Patch Set 8 : Python generators in Python generators #

Patch Set 9 : Rebased onto IDL generator refactor #

Patch Set 10 : Rebased onto callback change #

Total comments: 21

Patch Set 11 : Removed static map #

Patch Set 12 : Updated read, computed style and update tests #

Patch Set 13 : Updated forEach tests #

Patch Set 14 : Corrected test expectations #

Total comments: 6

Patch Set 15 : Rebase and review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+748 lines, -202 lines) Patch
M LayoutTests/fast/css/variables/cssom-computed-style.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -59 lines 0 comments Download
M LayoutTests/fast/css/variables/cssom-computed-style-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +26 lines, -13 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-foreach.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-foreach-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +24 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-foreach-update.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +203 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-foreach-update-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +72 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/variables/cssom-read.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +12 lines, -33 lines 0 comments Download
M LayoutTests/fast/css/variables/cssom-read-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -16 lines 0 comments Download
M LayoutTests/fast/css/variables/cssom-update.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -14 lines 0 comments Download
D LayoutTests/fast/css/variables/cssom-update-expected.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -8 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-update-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +18 lines, -0 lines 0 comments Download
A + LayoutTests/fast/css/variables/cssom-update-style.html View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/fast/css/variables/cssom-update-style-expected.html View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/unstable/v8_callback_interface.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +9 lines, -4 lines 0 comments Download
M Source/bindings/scripts/unstable/v8_utilities.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +15 lines, -0 lines 0 comments Download
M Source/bindings/templates/callback_interface.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestCallback.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -2 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +33 lines, -2 lines 0 comments Download
M Source/core/css/CSSStyleDeclaration.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
A + Source/core/css/CSSVariablesIterator.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -10 lines 0 comments Download
M Source/core/css/CSSVariablesMap.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -3 lines 0 comments Download
M Source/core/css/CSSVariablesMap.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +54 lines, -9 lines 0 comments Download
M Source/core/css/CSSVariablesMap.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
A + Source/core/css/CSSVariablesMapForEachCallback.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -13 lines 0 comments Download
A + Source/core/css/CSSVariablesMapForEachCallback.idl View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/css/PropertySetCSSStyleDeclaration.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/css/PropertySetCSSStyleDeclaration.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +9 lines, -2 lines 0 comments Download
M Source/core/css/StylePropertySet.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +24 lines, -0 lines 0 comments Download
M Source/core/css/StylePropertySet.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +58 lines, -5 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
alancutter (OOO until 2018)
Hi Levi, would you be able to review this change? +arv for CSSOM API change.
7 years, 4 months ago (2013-07-29 09:31:02 UTC) #1
arv (Not doing code reviews)
Is there a test somewhere that asserts that `style.var === style.var`? https://chromiumcodereview.appspot.com/21006006/diff/1/LayoutTests/fast/css/variables/cssom-computed-style.html File LayoutTests/fast/css/variables/cssom-computed-style.html (right): ...
7 years, 4 months ago (2013-07-31 16:45:24 UTC) #2
alancutter (OOO until 2018)
+darktears. Could you please review the changes to core/css? +haraken. Could you please review the ...
7 years, 4 months ago (2013-08-05 09:33:49 UTC) #3
haraken
Sorry for nit-picking. I do want to keep the new code generator clean. Thanks for ...
7 years, 4 months ago (2013-08-05 10:52:41 UTC) #4
alancutter (OOO until 2018)
> Sorry for nit-picking. I do want to keep the new code generator clean. Thanks ...
7 years, 4 months ago (2013-08-06 04:47:13 UTC) #5
haraken
https://codereview.chromium.org/21006006/diff/17001/Source/bindings/templates/callback_interface.cpp.tmpl File Source/bindings/templates/callback_interface.cpp.tmpl (right): https://codereview.chromium.org/21006006/diff/17001/Source/bindings/templates/callback_interface.cpp.tmpl#newcode58 Source/bindings/templates/callback_interface.cpp.tmpl:58: {{method.return_cpp_type}} {{v8_class_name}}::{{method.name}}({{this_value_param}}{{method.argument_declaration}}) How about putting 'ScriptValue thisValue, ' into ...
7 years, 4 months ago (2013-08-06 05:02:03 UTC) #6
Nils Barth (inactive)
Hi Alan, Sorry for arriving late; just noticed that there was something for me to ...
7 years, 4 months ago (2013-08-06 05:45:17 UTC) #7
alancutter (OOO until 2018)
> Sorry for arriving late; just noticed that there was something for me to add ...
7 years, 4 months ago (2013-08-07 00:40:23 UTC) #8
haraken
LGTM for the code generator changes. Thank you very much for improving the half-baked generator! ...
7 years, 4 months ago (2013-08-07 00:55:54 UTC) #9
alancutter (OOO until 2018)
> Thank you very much for improving the half-baked generator! No problem! I'm glad to ...
7 years, 4 months ago (2013-08-07 01:12:47 UTC) #10
Nils Barth (inactive)
On 2013/08/07 00:40:23, alancutter wrote: > > Sorry for arriving late; just noticed that there ...
7 years, 4 months ago (2013-08-07 01:43:50 UTC) #11
Nils Barth (inactive)
https://codereview.chromium.org/21006006/diff/30001/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/21006006/diff/30001/Source/bindings/scripts/code_generator_v8.py#newcode216 Source/bindings/scripts/code_generator_v8.py:216: def extended_attribute_values(extended_attributes, key): On 2013/08/07 01:12:48, alancutter wrote: > ...
7 years, 4 months ago (2013-08-07 01:50:34 UTC) #12
alancutter (OOO until 2018)
On 2013/08/07 01:43:50, Nils Barth wrote: > OIC – thanks, great catch! > > I've ...
7 years, 4 months ago (2013-08-07 02:53:45 UTC) #13
alancutter (OOO until 2018)
Reverted template rename. IDL generator changes have received LGTM. darktears: Could you please review the ...
7 years, 4 months ago (2013-08-07 07:50:38 UTC) #14
haraken
Sorry for nit-picking: I noticed that template files in core/scripts/templates/ have names like foo.h.tmpl and ...
7 years, 4 months ago (2013-08-07 12:28:36 UTC) #15
arv (Not doing code reviews)
https://codereview.chromium.org/21006006/diff/42001/LayoutTests/fast/css/variables/cssom-computed-style.html File LayoutTests/fast/css/variables/cssom-computed-style.html (right): https://codereview.chromium.org/21006006/diff/42001/LayoutTests/fast/css/variables/cssom-computed-style.html#newcode46 LayoutTests/fast/css/variables/cssom-computed-style.html:46: varList.sort(); I'm still kind of concerned about this sort. ...
7 years, 4 months ago (2013-08-07 14:16:22 UTC) #16
alancutter (OOO until 2018)
> Sorry for nit-picking: I noticed that template files in core/scripts/templates/ have names like foo.h.tmpl ...
7 years, 4 months ago (2013-08-08 01:50:57 UTC) #17
Nils Barth (inactive)
On 2013/08/07 12:28:36, haraken wrote: >> Sorry for nit-picking: I noticed that template files in ...
7 years, 4 months ago (2013-08-08 02:07:17 UTC) #18
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/21006006/diff/56001/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/21006006/diff/56001/Source/bindings/scripts/code_generator_v8.py#newcode347 Source/bindings/scripts/code_generator_v8.py:347: argument_declaration = ', '.join([generate_argument_declaration(argument) for argument in operation.arguments]) ...
7 years, 4 months ago (2013-08-08 14:24:50 UTC) #19
alancutter (OOO until 2018)
Thanks for the review. https://codereview.chromium.org/21006006/diff/56001/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/21006006/diff/56001/Source/bindings/scripts/code_generator_v8.py#newcode347 Source/bindings/scripts/code_generator_v8.py:347: argument_declaration = ', '.join([generate_argument_declaration(argument) for ...
7 years, 4 months ago (2013-08-09 05:33:26 UTC) #20
alancutter (OOO until 2018)
Patch review status: This patch still needs a review for the changes to core/css before ...
7 years, 4 months ago (2013-08-09 05:35:12 UTC) #21
alancutter (OOO until 2018)
On 2013/08/09 05:35:12, alancutter wrote: > Patch review status: > This patch still needs a ...
7 years, 4 months ago (2013-08-19 07:08:04 UTC) #22
alancutter (OOO until 2018)
esprehn: Would you be able to review the CSS changes in this patch?
7 years, 4 months ago (2013-08-23 08:33:15 UTC) #23
alancutter (OOO until 2018)
Poke.
7 years, 3 months ago (2013-09-02 01:07:29 UTC) #24
abarth-chromium
On 2013/09/02 01:07:29, alancutter wrote: > Poke. From your previous comment, it looks like you're ...
7 years, 3 months ago (2013-09-02 03:25:15 UTC) #25
esprehn
On 2013/09/02 03:25:15, abarth wrote: > On 2013/09/02 01:07:29, alancutter wrote: > > Poke. > ...
7 years, 3 months ago (2013-09-02 07:22:09 UTC) #26
alancutter (OOO until 2018)
On 2013/09/02 07:22:09, esprehn wrote: > On 2013/09/02 03:25:15, abarth wrote: > > On 2013/09/02 ...
7 years, 3 months ago (2013-09-02 23:53:05 UTC) #27
alancutter (OOO until 2018)
esprehn: Poke.
7 years, 3 months ago (2013-09-10 02:13:42 UTC) #28
Nils Barth (inactive)
On 2013/09/10 02:13:42, alancutter wrote: > esprehn: Poke. I believe the new term of art ...
7 years, 3 months ago (2013-09-10 02:16:46 UTC) #29
esprehn
I'll review tonight, sorry the Rietveld extension I use to do reviews fast has started ...
7 years, 3 months ago (2013-09-10 02:25:17 UTC) #30
alancutter (OOO until 2018)
On 2013/09/10 02:25:17, esprehn wrote: > I'll review tonight, sorry the Rietveld extension I use ...
7 years, 3 months ago (2013-09-12 00:56:11 UTC) #31
esprehn
I'm not very comfortable with the static map, was that so we don't grow the ...
7 years, 3 months ago (2013-09-12 01:13:41 UTC) #32
alancutter (OOO until 2018)
On 2013/09/12 01:13:41, esprehn wrote: > I'm not very comfortable with the static map, was ...
7 years, 3 months ago (2013-09-12 03:45:50 UTC) #33
alancutter (OOO until 2018)
esprehn: ptal https://codereview.chromium.org/21006006/diff/87001/LayoutTests/fast/css/variables/cssom-computed-style.html File LayoutTests/fast/css/variables/cssom-computed-style.html (right): https://codereview.chromium.org/21006006/diff/87001/LayoutTests/fast/css/variables/cssom-computed-style.html#newcode25 LayoutTests/fast/css/variables/cssom-computed-style.html:25: pre.innerText += ((preStyle.var === preStyle.var) ? "pass": ...
7 years, 3 months ago (2013-09-13 03:06:13 UTC) #34
alancutter (OOO until 2018)
esprehn: Poke.
7 years, 3 months ago (2013-09-19 03:59:08 UTC) #35
esprehn
lgtm. In general you shouldn't access private vars like this, your constructor should take the ...
7 years, 2 months ago (2013-09-28 00:44:36 UTC) #36
alancutter (OOO until 2018)
Thanks for reviewing esprehn. :) https://codereview.chromium.org/21006006/diff/108001/Source/bindings/scripts/v8_utilities.py File Source/bindings/scripts/v8_utilities.py (right): https://codereview.chromium.org/21006006/diff/108001/Source/bindings/scripts/v8_utilities.py#newcode97 Source/bindings/scripts/v8_utilities.py:97: return re.split('[|&]', values_string) On ...
7 years, 2 months ago (2013-09-30 02:54:51 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/21006006/115001
7 years, 2 months ago (2013-09-30 07:48:37 UTC) #38
commit-bot: I haz the power
7 years, 2 months ago (2013-09-30 08:47:21 UTC) #39
Message was sent while issue was closed.
Change committed as 158524

Powered by Google App Engine
This is Rietveld 408576698