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

Issue 18298016: updateStyleForNodeIfNeeded should be Shadow DOM aware (Closed)

Created:
7 years, 5 months ago by esprehn
Modified:
7 years, 5 months ago
Reviewers:
eseidel, tonyg, ojan
CC:
blink-reviews, aandrey+blink_chromium.org, dglazkov+blink, Rik, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

updateStyleForNodeIfNeeded should be Shadow DOM aware updateStyleForNodeIfNeeded was not traversing through shadow hosts and was being used as a fast path for Element::offsetWidth which meant that a style change on your host or any of their ancestors would not get applied in some cases if requiresLayoutToDetermineWidth was false. This was a regression caused by http://src.chromium.org/viewvc/blink?revision=153074&view=revision R=tonyg@chromium.org,eseidel@chromium.org,ojan@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154203

Patch Set 1 #

Patch Set 2 : Add a test #

Patch Set 3 : Var names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -2 lines) Patch
A LayoutTests/fast/dom/shadow/offsetWidth-host-style-change.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/offsetWidth-host-style-change-expected.txt View 1 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
esprehn
7 years, 5 months ago (2013-07-15 05:00:00 UTC) #1
ojan
lgtm On Sun, Jul 14, 2013 at 10:00 PM, <esprehn@chromium.org> wrote: > Reviewers: tonyg, eseidel, ...
7 years, 5 months ago (2013-07-15 05:24:32 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/18298016/1001
7 years, 5 months ago (2013-07-15 05:31:02 UTC) #3
commit-bot: I haz the power
Failed to trigger a try job on linux_layout_rel HTTP Error 400: Bad Request
7 years, 5 months ago (2013-07-15 05:48:17 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/18298016/12001
7 years, 5 months ago (2013-07-15 05:48:31 UTC) #5
commit-bot: I haz the power
Change committed as 154203
7 years, 5 months ago (2013-07-15 07:08:10 UTC) #6
tonyg
7 years, 5 months ago (2013-07-15 15:43:20 UTC) #7
Message was sent while issue was closed.
On 2013/07/15 07:08:10, I haz the power (commit-bot) wrote:
> Change committed as 154203

lgtm -- thanks for the fix!

Powered by Google App Engine
This is Rietveld 408576698