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

Issue 1849653003: Implement ComputedStylePropertyMap for Typed OM. (Closed)

Created:
4 years, 8 months ago by meade_UTC10
Modified:
4 years, 6 months ago
Reviewers:
Timothy Loh, shans
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@maps-inline
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement ComputedStylePropertyMap for Typed OM. Spec: https://drafts.css-houdini.org/css-typed-om/#computed-stylepropertymap-objects Uses a partial IDL interface to attach a getComputedStyleMap method to window. Implements the getAll and getProperties. Moved has() up into the base class from InlineStylePropertyMap. Not implemented: iteration BUG=545318 Committed: https://crrev.com/adbd6389292d7443b39dab6accb1581db3788465 Cr-Commit-Position: refs/heads/master@{#397992}

Patch Set 1 #

Patch Set 2 : Add layout test #

Patch Set 3 : Add more tests #

Patch Set 4 : Update test #

Patch Set 5 : Update global-interface-listing #

Total comments: 5

Patch Set 6 : Remove WillBe types, add test for pseudo elements, address comments #

Patch Set 7 : Fix bad merge, update to HEAD #

Patch Set 8 : Update to HEAD and fix test assert arg order #

Patch Set 9 : Fix branch parenting #

Patch Set 10 : Revert spurious changes #

Patch Set 11 : Fix compilation #

Total comments: 20

Patch Set 12 : Tidy up some code style stuff #

Patch Set 13 : Address CL comments #

Patch Set 14 : Reparent branch #

Patch Set 15 : sync to head #

Total comments: 2

Patch Set 16 : Use the base class version of has() for all StylePropertymaps #

Patch Set 17 : Update and add tests #

Patch Set 18 : Update test, avoid NPE #

Patch Set 19 : Sync to HEAD and replace ASSERT with DCHECK #

Patch Set 20 : Sync to head #

Patch Set 21 : Update LayoutTests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -9 lines) Patch
A third_party/WebKit/LayoutTests/typedcssom/computedstyle/border-top-width.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +52 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/typedcssom/computedstyle/pseudo-elements.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/typedcssom/computedstyle/width.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/ImmutableStylePropertyMap.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/StylePropertyMap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/css/cssom/WindowGetComputedStyle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/cssom/WindowGetComputedStyle.idl View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (13 generated)
meade_UTC10
4 years, 8 months ago (2016-03-31 05:05:26 UTC) #2
Timothy Loh
I just skimmed it really briefly (since I still need to look at the dependent ...
4 years, 8 months ago (2016-03-31 06:59:25 UTC) #3
meade_UTC10
Updated description and added test https://codereview.chromium.org/1849653003/diff/70001/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp File third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp (right): https://codereview.chromium.org/1849653003/diff/70001/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp#newcode37 third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp:37: return (!cssValue->isValueList() || toCSSValueList(cssValue)->length() ...
4 years, 8 months ago (2016-04-04 03:32:41 UTC) #6
Timothy Loh
https://codereview.chromium.org/1849653003/diff/70001/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp File third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp (right): https://codereview.chromium.org/1849653003/diff/70001/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp#newcode37 third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp:37: return (!cssValue->isValueList() || toCSSValueList(cssValue)->length() > 0); On 2016/04/04 03:32:41, ...
4 years, 8 months ago (2016-04-15 04:16:08 UTC) #7
meade_UTC10
I'll move the code that moved into a new CL, stay tuned... https://codereview.chromium.org/1849653003/diff/190001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/pseudo-elements.html File third_party/WebKit/LayoutTests/typedcssom/computedstyle/pseudo-elements.html ...
4 years, 8 months ago (2016-04-27 05:53:56 UTC) #8
meade_UTC10
Ping, now that the other CL is submitted.
4 years, 7 months ago (2016-05-09 04:51:16 UTC) #9
Timothy Loh
lgtm, but fix up the below comment https://codereview.chromium.org/1849653003/diff/270001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp File third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp (right): https://codereview.chromium.org/1849653003/diff/270001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp#newcode24 third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp:24: return (!cssValue->isValueList() ...
4 years, 7 months ago (2016-05-13 02:08:23 UTC) #10
Timothy Loh
Description needs to be updated too
4 years, 7 months ago (2016-05-13 02:11:16 UTC) #11
meade_UTC10
https://codereview.chromium.org/1849653003/diff/270001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp File third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp (right): https://codereview.chromium.org/1849653003/diff/270001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp#newcode24 third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp:24: return (!cssValue->isValueList() || toCSSValueList(cssValue)->length() > 0); On 2016/05/13 02:08:23, ...
4 years, 7 months ago (2016-05-13 05:05:32 UTC) #13
Timothy Loh
On 2016/05/13 05:05:32, Eddy wrote: > I changed this to use the base class version ...
4 years, 7 months ago (2016-05-13 05:07:45 UTC) #14
meade_UTC10
On 2016/05/13 05:07:45, Timothy Loh wrote: > On 2016/05/13 05:05:32, Eddy wrote: > > I ...
4 years, 7 months ago (2016-05-13 06:36:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849653003/350001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1849653003/350001
4 years, 6 months ago (2016-06-03 03:14:41 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/240656)
4 years, 6 months ago (2016-06-03 04:30:40 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849653003/350001
4 years, 6 months ago (2016-06-06 00:34:37 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/239279)
4 years, 6 months ago (2016-06-06 01:54:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1849653003/390001
4 years, 6 months ago (2016-06-06 06:52:21 UTC) #27
commit-bot: I haz the power
Committed patchset #21 (id:390001)
4 years, 6 months ago (2016-06-06 08:15:11 UTC) #29
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 08:16:06 UTC) #31
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/adbd6389292d7443b39dab6accb1581db3788465
Cr-Commit-Position: refs/heads/master@{#397992}

Powered by Google App Engine
This is Rietveld 408576698