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

Issue 2791193004: [Typed CSSOM] New design for computed styles which includes custom properties (Closed)

Created:
3 years, 8 months ago by rjwright
Modified:
3 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Typed CSSOM]New design for computed styles which includes custom properties Adds support for getting computed style values for custom properties from Typed CSSOM. Changes the way we get computed styles for normal CSS properties in Typed CSSOM. Previously we hand-rolled CSStyleValues using values retrieved from ComputedStyle. Now we are getting computed style values via ComputedStyleCSSValueMapping::get (which apparently returns raw computed style values when passed a nullptr LayoutObject) and turning them into CSSStyleValues via StyleValueFactory. Small tidy-up in StylePropertyMapReadOnly. This CL has two outstanding test failures that will be resolved in followup CLs. Custom property behavior in InlineStylePropertyMap also needs tests, which will be added in a followup CL. BUG=648495 Review-Url: https://codereview.chromium.org/2791193004 Cr-Commit-Position: refs/heads/master@{#471251} Committed: https://chromium.googlesource.com/chromium/src/+/7f86224d3bc34aa39ea8cdd21ec590b6e2954806

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : tidy up #

Total comments: 11

Patch Set 4 : the big rename #

Patch Set 5 : rebase #

Patch Set 6 : comment #

Patch Set 7 : remove unneccesary return after throw. test actual property for unsupported properties. #

Patch Set 8 : fix display none test #

Patch Set 9 : replace node check with dcheck #

Total comments: 3

Patch Set 10 : nits #

Patch Set 11 : change number line-height test to check for CSSSimpleLength #

Total comments: 2

Patch Set 12 : update comment for failing test #

Patch Set 13 : remove pseudoel comment #

Patch Set 14 : remove unneeded arg in test calls #

Total comments: 12

Patch Set 15 : small cleanup #

Patch Set 16 : Make UpdateStyle non-const #

Messages

Total messages: 41 (22 generated)
rjwright
3 years, 8 months ago (2017-04-05 02:45:19 UTC) #4
alancutter (OOO until 2018)
Seem fine overall, will wait for final patch. https://codereview.chromium.org/2791193004/diff/40001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp File third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp (right): https://codereview.chromium.org/2791193004/diff/40001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp#newcode9 third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp:9: #include ...
3 years, 8 months ago (2017-04-05 04:54:09 UTC) #5
alancutter (OOO until 2018)
https://codereview.chromium.org/2791193004/diff/40001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html File third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html (right): https://codereview.chromium.org/2791193004/diff/40001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html#newcode45 third_party/WebKit/LayoutTests/typedcssom/computedstyle/computedStylePropertyMap.html:45: }, 'has() return false for an unsupported property.'); max-zoom ...
3 years, 8 months ago (2017-04-05 05:00:16 UTC) #6
meade_UTC10
https://codereview.chromium.org/2791193004/diff/40001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html File third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html (right): https://codereview.chromium.org/2791193004/diff/40001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html#newcode58 third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html:58: </style> Can this be above the script element, and ...
3 years, 8 months ago (2017-04-06 03:47:32 UTC) #7
rjwright
OK folks, I think I have addressed all the comments. I have re-instated the custom ...
3 years, 7 months ago (2017-05-09 01:24:04 UTC) #12
rjwright
3 years, 7 months ago (2017-05-09 01:24:15 UTC) #13
rjwright
On 2017/05/09 01:24:15, rjwright wrote: Eddy and Alan, please take another look. Naina would you ...
3 years, 7 months ago (2017-05-09 04:40:29 UTC) #14
meade_UTC10
lgtm with nits on my side. https://codereview.chromium.org/2791193004/diff/160001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp File third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp (right): https://codereview.chromium.org/2791193004/diff/160001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp#newcode34 third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp:34: // This could ...
3 years, 7 months ago (2017-05-09 04:59:36 UTC) #15
rjwright
Nits done, Eddy. I just went and looked at the "failing" line height test, where ...
3 years, 7 months ago (2017-05-09 05:25:37 UTC) #16
nainar
ComputedStylePropertyMap lgtm https://codereview.chromium.org/2791193004/diff/200001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html File third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html (right): https://codereview.chromium.org/2791193004/diff/200001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html#newcode81 third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html:81: // FIXME(rjwright): This test currently fails. Need ...
3 years, 7 months ago (2017-05-09 06:07:28 UTC) #19
rjwright
Thanks Naina. Done.
3 years, 7 months ago (2017-05-09 06:34:07 UTC) #20
alancutter (OOO until 2018)
https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html File third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html (right): https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html#newcode59 third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html:59: // properties. This might get fixed by: https://codereview.chromium.org/2873943002 https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp ...
3 years, 7 months ago (2017-05-11 04:34:04 UTC) #25
rjwright
Thanks heaps Alan https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html File third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html (right): https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html#newcode59 third_party/WebKit/LayoutTests/typedcssom/computedstyle/custom-properties.html:59: // properties. On 2017/05/11 04:34:03, alancutter ...
3 years, 7 months ago (2017-05-12 04:47:34 UTC) #29
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp File third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp (right): https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp#newcode33 third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp:33: // CSSComputedStyleDeclaration::GetPropertyCSSValue. On 2017/05/12 at 04:47:34, rjwright wrote: ...
3 years, 7 months ago (2017-05-12 04:53:16 UTC) #30
rjwright
> https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h > File third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h > (right): > > https://codereview.chromium.org/2791193004/diff/260001/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h#newcode58 > third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h:58: const > ComputedStyle* ...
3 years, 7 months ago (2017-05-12 05:05:50 UTC) #31
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/2791193004/300001
3 years, 7 months ago (2017-05-12 05:28:16 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/382772)
3 years, 7 months ago (2017-05-12 06:26:28 UTC) #36
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/2791193004/300001
3 years, 7 months ago (2017-05-12 06:30:31 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 08:41:40 UTC) #41
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/7f86224d3bc34aa39ea8cdd21ec5...

Powered by Google App Engine
This is Rietveld 408576698