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

Issue 16425002: Moved StyleElement::insertedIntoDocument into didNotifySubtreeInsertions. (Closed)

Created:
7 years, 6 months ago by tasak
Modified:
7 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, adamk+blink_chromium.org, dfreedm1
Visibility:
Public.

Description

Moved StyleElement::insertedIntoDocument into didNotifySubtreeInsertions. We should avoid style-recalc during subtree insertions. If invoke style-recalc, we might invoke createRenderer for elements that have not been inserted into document yet. (i.e. the elements' inDocument flags are false). The recalc also clears needsStyleRecalc flag. This blocks correct style-recalc. TESTS=fast/dom/shadow/remove-and-insert-style.html BUG=246300 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151825

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -4 lines) Patch
A LayoutTests/fast/dom/shadow/remove-and-insert-style.html View 1 1 chunk +64 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/remove-and-insert-style-expected.txt View 1 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/dom/StyleElement.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/StyleElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLStyleElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLStyleElement.cpp View 1 2 chunks +6 lines, -1 line 0 comments Download
M Source/core/svg/SVGStyleElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGStyleElement.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
tasak
7 years, 6 months ago (2013-06-05 05:51:36 UTC) #1
Hajime Morrita
https://codereview.chromium.org/16425002/diff/1/LayoutTests/fast/dom/shadow/remove-and-insert-style.html File LayoutTests/fast/dom/shadow/remove-and-insert-style.html (right): https://codereview.chromium.org/16425002/diff/1/LayoutTests/fast/dom/shadow/remove-and-insert-style.html#newcode7 LayoutTests/fast/dom/shadow/remove-and-insert-style.html:7: testRunner.waitUntilDone(); You can just set window.jsTestIsAsync = true. No ...
7 years, 6 months ago (2013-06-05 07:21:06 UTC) #2
tasak
Thank you for reviewing. https://codereview.chromium.org/16425002/diff/1/LayoutTests/fast/dom/shadow/remove-and-insert-style.html File LayoutTests/fast/dom/shadow/remove-and-insert-style.html (right): https://codereview.chromium.org/16425002/diff/1/LayoutTests/fast/dom/shadow/remove-and-insert-style.html#newcode7 LayoutTests/fast/dom/shadow/remove-and-insert-style.html:7: testRunner.waitUntilDone(); On 2013/06/05 07:21:06, morrita1 ...
7 years, 6 months ago (2013-06-05 08:30:52 UTC) #3
Hajime Morrita
OK, lgtm.
7 years, 6 months ago (2013-06-05 09:34:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/16425002/7001
7 years, 6 months ago (2013-06-05 09:50:30 UTC) #5
tasak
On 2013/06/05 09:34:19, morrita1 wrote: > OK, lgtm. Thank you. I will try to commit ...
7 years, 6 months ago (2013-06-05 09:50:35 UTC) #6
commit-bot: I haz the power
7 years, 6 months ago (2013-06-05 10:54:41 UTC) #7
Message was sent while issue was closed.
Change committed as 151825

Powered by Google App Engine
This is Rietveld 408576698