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

Issue 2266353004: Make Document::styleForElementIgnoringPendingStyleSheets() be aware of a flat tree structure (Closed)

Created:
4 years, 4 months ago by hayato
Modified:
4 years, 3 months ago
Reviewers:
jfernandez, kochi, rune
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sofeykov, Timothy Loh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Document::styleForElementIgnoringPendingStyleSheets() be aware of a flat tree structure Document::styleForElementIgnoringPendingStyleSheets() is wrongly using parentNode(), where LayoutTreeBuilderTraversal::parent() should be used instead. BUG=639776 Committed: https://crrev.com/661a03d007da761088f30689eba00acd524b3e15 Cr-Commit-Position: refs/heads/master@{#414649}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 9

Patch Set 3 : update the tests #

Total comments: 1

Patch Set 4 : update the test #

Total comments: 1

Messages

Total messages: 52 (23 generated)
hayato
fix
4 years, 4 months ago (2016-08-23 11:45:44 UTC) #3
hayato
PTAL https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html File third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html (left): https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html#oldcode31 third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html:31: shouldBe('getColorProperty("span-child")', '"rgb(255, 0, 0)"'); This is a bug ...
4 years, 4 months ago (2016-08-23 11:50:26 UTC) #8
rune
https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html File third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html (left): https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html#oldcode31 third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html:31: shouldBe('getColorProperty("span-child")', '"rgb(255, 0, 0)"'); On 2016/08/23 11:50:26, hayato wrote: ...
4 years, 4 months ago (2016-08-23 12:36:13 UTC) #10
hayato
Looks there are failing tests. Let me fix that, and upload a new patch set. ...
4 years, 4 months ago (2016-08-24 03:34:59 UTC) #13
hayato
update the tests
4 years, 4 months ago (2016-08-24 04:13:40 UTC) #14
hayato
Adding jfernandez@igalia.com to a reviewer since I have updated parse-alignment-of-root-elements.html. jfernandez@, could you check it?
4 years, 4 months ago (2016-08-24 04:16:29 UTC) #18
jfernandez
On 2016/08/24 04:16:29, hayato wrote: > Adding mailto:jfernandez@igalia.com to a reviewer since I have updated ...
4 years, 4 months ago (2016-08-24 07:43:32 UTC) #21
hayato
Alignment specification should not be affected by this change. This CL affects only on how ...
4 years, 4 months ago (2016-08-24 09:45:25 UTC) #22
jfernandez
On 2016/08/24 09:45:25, hayato wrote: > Alignment specification should not be affected by this change. ...
4 years, 4 months ago (2016-08-24 10:34:16 UTC) #23
hayato
1. "Parent element" refers to the element tree; it doesn't care about box-tree structure. (And ...
4 years, 4 months ago (2016-08-24 10:46:08 UTC) #25
hayato
https://codereview.chromium.org/2266353004/diff/40001/third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements.html File third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements.html (right): https://codereview.chromium.org/2266353004/diff/40001/third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements.html#newcode215 third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements.html:215: }, "Check out how align-self uses the 'slot' element's ...
4 years, 4 months ago (2016-08-24 10:57:20 UTC) #26
jfernandez
On 2016/08/24 10:57:20, hayato wrote: > https://codereview.chromium.org/2266353004/diff/40001/third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements.html > File > third_party/WebKit/LayoutTests/fast/alignment/parse-alignment-of-root-elements.html > (right): > > ...
4 years, 4 months ago (2016-08-24 11:09:01 UTC) #27
hayato
On 2016/08/24 at 11:09:01, jfernandez wrote: > I just needed to understand which was the ...
4 years, 4 months ago (2016-08-24 11:18:42 UTC) #28
hayato
As long as we use StyleResolver, for any purpose, that means we have decided to ...
4 years, 4 months ago (2016-08-24 11:26:35 UTC) #29
jfernandez
On 2016/08/24 11:18:42, hayato wrote: > On 2016/08/24 at 11:09:01, jfernandez wrote: > > > ...
4 years, 4 months ago (2016-08-24 11:37:34 UTC) #30
hayato
I understand your confusion. :) Let me use the example. HTML: <shadow-host> <child1 slot=s1></child1> <child2 ...
4 years, 4 months ago (2016-08-24 11:49:24 UTC) #31
jfernandez
Ok, I understand now :) non-owner LGTM for the alignment related change. I'd still have ...
4 years, 4 months ago (2016-08-24 12:19:47 UTC) #32
rune
https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html File third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html (left): https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html#oldcode31 third_party/WebKit/LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html:31: shouldBe('getColorProperty("span-child")', '"rgb(255, 0, 0)"'); On 2016/08/24 03:34:58, hayato wrote: ...
4 years, 4 months ago (2016-08-24 12:38:44 UTC) #33
hayato
> Then shouldn't it return the empty string for computed style like we do for ...
4 years, 4 months ago (2016-08-25 02:01:19 UTC) #34
rune
https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html File third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html (right): https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html#newcode38 third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html:38: 'An element which is assigned to a slot should ...
4 years, 4 months ago (2016-08-25 07:49:39 UTC) #35
rune
On 2016/08/25 02:01:19, hayato wrote: > > Then shouldn't it return the empty string for ...
4 years, 4 months ago (2016-08-25 07:50:53 UTC) #36
hayato
On 2016/08/25 at 07:49:39, rune wrote: > https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html > File third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html (right): > > https://codereview.chromium.org/2266353004/diff/20001/third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html#newcode38 ...
4 years, 4 months ago (2016-08-25 08:08:49 UTC) #37
hayato
update the test
4 years, 4 months ago (2016-08-25 08:14:34 UTC) #38
hayato
I have updated the test. https://codereview.chromium.org/2266353004/diff/60001/third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html File third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html (right): https://codereview.chromium.org/2266353004/diff/60001/third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html#newcode25 third_party/WebKit/LayoutTests/shadow-dom/css-style-inherit.html:25: <span id="span0" slot="unassigned"></span> I ...
4 years, 4 months ago (2016-08-25 08:15:56 UTC) #41
rune
lgtm
4 years, 4 months ago (2016-08-25 08:50:44 UTC) #42
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/2266353004/60001
4 years, 3 months ago (2016-08-26 02:41:31 UTC) #47
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-26 04:17:22 UTC) #49
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/661a03d007da761088f30689eba00acd524b3e15 Cr-Commit-Position: refs/heads/master@{#414649}
4 years, 3 months ago (2016-08-26 04:19:01 UTC) #51
jfernandez
4 years, 3 months ago (2016-08-31 11:17:51 UTC) #52
Message was sent while issue was closed.
On 2016/08/24 12:19:47, jfernandez wrote:
> Ok, I understand now :) non-owner LGTM for the alignment related change. I'd
> still have to redefine some if the tests cases based on what we have discussed
> here. Thanks for that.
> 
> BTW, I've asked the CSS WG about the possible changes in the Alignment spec
> regarding the flat-tree concept. Let's see whether they clarify the issues or
> change the spec somehow.

Just for the record, here is Tab's reply to my question regarding the "Parent
element"
concept and the "flat-tree": 

https://lists.w3.org/Archives/Public/www-style/2016Aug/0085.html

Powered by Google App Engine
This is Rietveld 408576698