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

Issue 18311002: Partial implementation of CSSVariablesMap for CSS Variables CSSOM (Closed)

Created:
7 years, 5 months ago by alancutter (OOO until 2018)
Modified:
7 years, 5 months ago
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, do-not-use, darktears, abarth-chromium, csaavedra
Visibility:
Public.

Description

Partial implementation of CSSVariablesMap for CSS Variables CSSOM This is a partial implementation of the CSSVariablesMap specification. This provides Javascript access to CSS Custom Properties (variables). This implementation is missing the forEach() method which is to come in a later patch. Specification links: http://dev.w3.org/csswg/css-variables/#the-CSSVariablesMap-interface http://dev.w3.org/2006/webapi/WebIDL/#MapClass BUG=231791 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154472

Patch Set 1 #

Patch Set 2 : Removed unused IDL callback definition #

Total comments: 3

Patch Set 3 : Rebased webexposed tests #

Total comments: 6

Patch Set 4 : Remove unused parameter #

Patch Set 5 : Minor optimisation to clearVariables #

Total comments: 13

Patch Set 6 : Nits and persistent JS var map object #

Patch Set 7 : Rebased onto ToT, cleaned up includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+725 lines, -11 lines) Patch
A LayoutTests/fast/css/variables/cssom-computed-style.html View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-computed-style-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-create.html View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-create-expected.html View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-delete.html View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-delete-expected.html View 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-persistence.html View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-persistence-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-read.html View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-read-expected.txt View 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-update.html View 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/variables/cssom-update-expected.html View 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/css-properties-as-js-properties-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/webexposed/global-constructors-listing-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSStyleDeclaration.h View 1 2 3 4 5 6 4 chunks +11 lines, -2 lines 0 comments Download
A Source/core/css/CSSStyleDeclaration.cpp View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
M Source/core/css/CSSStyleDeclaration.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSValue.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/CSSVariableValue.h View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
A Source/core/css/CSSVariablesMap.h View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A Source/core/css/CSSVariablesMap.cpp View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
A Source/core/css/CSSVariablesMap.idl View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
M Source/core/css/PropertySetCSSStyleDeclaration.h View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/css/PropertySetCSSStyleDeclaration.cpp View 1 2 3 4 5 6 2 chunks +47 lines, -0 lines 0 comments Download
M Source/core/css/StylePropertySet.h View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M Source/core/css/StylePropertySet.cpp View 1 2 3 4 5 6 6 chunks +71 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
alancutter (OOO until 2018)
Most of the code I'm touching has been modified by Apple folks. Would you be ...
7 years, 5 months ago (2013-07-01 05:19:46 UTC) #1
arv (Not doing code reviews)
FYI https://codereview.chromium.org/18311002/diff/1001/Source/core/css/CSSVariablesMap.idl File Source/core/css/CSSVariablesMap.idl (right): https://codereview.chromium.org/18311002/diff/1001/Source/core/css/CSSVariablesMap.idl#newcode30 Source/core/css/CSSVariablesMap.idl:30: DOMString get(DOMString name); This needs to return undefined ...
7 years, 5 months ago (2013-07-01 13:59:46 UTC) #2
alancutter (OOO until 2018)
Thanks for the reviews arv! I didn't mention it in the previous patch but your ...
7 years, 5 months ago (2013-07-02 00:27:47 UTC) #3
arv (Not doing code reviews)
https://codereview.chromium.org/18311002/diff/1001/Source/core/css/CSSVariablesMap.idl File Source/core/css/CSSVariablesMap.idl (right): https://codereview.chromium.org/18311002/diff/1001/Source/core/css/CSSVariablesMap.idl#newcode30 Source/core/css/CSSVariablesMap.idl:30: DOMString get(DOMString name); On 2013/07/02 00:27:47, alancutter wrote: > ...
7 years, 5 months ago (2013-07-02 13:20:57 UTC) #4
arv (Not doing code reviews)
On 2013/07/02 13:20:57, arv wrote: > https://codereview.chromium.org/18311002/diff/1001/Source/core/css/CSSVariablesMap.idl > File Source/core/css/CSSVariablesMap.idl (right): > > https://codereview.chromium.org/18311002/diff/1001/Source/core/css/CSSVariablesMap.idl#newcode30 > ...
7 years, 5 months ago (2013-07-02 13:31:09 UTC) #5
alancutter (OOO until 2018)
On 2013/07/02 13:31:09, arv wrote: > On 2013/07/02 13:20:57, arv wrote: > > > https://codereview.chromium.org/18311002/diff/1001/Source/core/css/CSSVariablesMap.idl ...
7 years, 5 months ago (2013-07-03 00:36:21 UTC) #6
alancutter (OOO until 2018)
> entries, values and keys: These do not depend on generators. You can implement > ...
7 years, 5 months ago (2013-07-03 01:53:05 UTC) #7
esprehn
Still working through this patch since it's big... https://codereview.chromium.org/18311002/diff/14001/Source/core/css/StylePropertySet.cpp File Source/core/css/StylePropertySet.cpp (right): https://codereview.chromium.org/18311002/diff/14001/Source/core/css/StylePropertySet.cpp#newcode135 Source/core/css/StylePropertySet.cpp:135: unsigned ...
7 years, 5 months ago (2013-07-04 02:48:52 UTC) #8
alancutter (OOO until 2018)
Thanks for the review esprehn. (: https://codereview.chromium.org/18311002/diff/14001/Source/core/css/StylePropertySet.cpp File Source/core/css/StylePropertySet.cpp (right): https://codereview.chromium.org/18311002/diff/14001/Source/core/css/StylePropertySet.cpp#newcode135 Source/core/css/StylePropertySet.cpp:135: unsigned StylePropertySet::variableCount() const ...
7 years, 5 months ago (2013-07-04 06:18:14 UTC) #9
esprehn
https://codereview.chromium.org/18311002/diff/28001/Source/core/css/CSSComputedStyleDeclaration.h File Source/core/css/CSSComputedStyleDeclaration.h (right): https://codereview.chromium.org/18311002/diff/28001/Source/core/css/CSSComputedStyleDeclaration.h#newcode106 Source/core/css/CSSComputedStyleDeclaration.h:106: virtual PassRefPtr<CSSVariablesMap> var() OVERRIDE { return CSSVariablesMap::create(this); } This ...
7 years, 5 months ago (2013-07-10 02:42:10 UTC) #10
alancutter (OOO until 2018)
https://codereview.chromium.org/18311002/diff/28001/Source/core/css/CSSComputedStyleDeclaration.h File Source/core/css/CSSComputedStyleDeclaration.h (right): https://codereview.chromium.org/18311002/diff/28001/Source/core/css/CSSComputedStyleDeclaration.h#newcode106 Source/core/css/CSSComputedStyleDeclaration.h:106: virtual PassRefPtr<CSSVariablesMap> var() OVERRIDE { return CSSVariablesMap::create(this); } On ...
7 years, 5 months ago (2013-07-10 11:18:13 UTC) #11
esprehn
LGTM. It's sad to make these things use more memory but we can come up ...
7 years, 5 months ago (2013-07-17 14:06:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/18311002/45001
7 years, 5 months ago (2013-07-17 23:39:13 UTC) #13
commit-bot: I haz the power
Failed to apply patch for Source/core/css/CSSComputedStyleDeclaration.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-17 23:39:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/18311002/52001
7 years, 5 months ago (2013-07-18 00:28:05 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=13779
7 years, 5 months ago (2013-07-18 02:29:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/18311002/52001
7 years, 5 months ago (2013-07-18 06:38:16 UTC) #17
commit-bot: I haz the power
7 years, 5 months ago (2013-07-18 07:24:01 UTC) #18
Message was sent while issue was closed.
Change committed as 154472

Powered by Google App Engine
This is Rietveld 408576698