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

Issue 279463002: HTML Imports: Fix yet another FOUC (Closed)

Created:
6 years, 7 months ago by Hajime Morrita
Modified:
6 years, 7 months ago
Reviewers:
esprehn, ojan
CC:
blink-reviews, blink-reviews-css, sof, eae+blinkwatch, ed+blinkwatch_opera.com, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Remove setNeedsRecalcStyle() in Document::didLoadAllImports(). r173248 added it but there is a performance concern. This change repalces it with a modest alternative that does same as what didRemoveAllPendingStylesheet() has been doing. This change also removed 500ms sleep from a test that was added at r173248. TEST=none R=ojan@chromium.org,esprehn@chromium.org BUG=367386 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173680

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -5 lines) Patch
M LayoutTests/fast/html/imports/import-element-removed-flag.html View 1 1 chunk +1 line, -1 line 2 comments Download
M LayoutTests/fast/html/imports/import-link-with-media-query.html View 1 2 1 chunk +5 lines, -1 line 1 comment Download
M Source/core/dom/Document.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 3 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Hajime Morrita
Elliott: PTAL? I'm reverting the oiriginal fix https://codereview.chromium.org/270623007/ This change consults StyleEngine to see how ...
6 years, 7 months ago (2014-05-08 01:23:15 UTC) #1
esprehn
lgtm, this looks much better!
6 years, 7 months ago (2014-05-08 01:38:43 UTC) #2
ojan
https://codereview.chromium.org/279463002/diff/1/LayoutTests/fast/html/imports/import-link-with-media-query.html File LayoutTests/fast/html/imports/import-link-with-media-query.html (right): https://codereview.chromium.org/279463002/diff/1/LayoutTests/fast/html/imports/import-link-with-media-query.html#newcode6 LayoutTests/fast/html/imports/import-link-with-media-query.html:6: setTimeout(function() { testRunner.notifyDone(); }, 500); Does this really need ...
6 years, 7 months ago (2014-05-08 03:57:06 UTC) #3
esprehn
https://codereview.chromium.org/279463002/diff/1/LayoutTests/fast/html/imports/import-link-with-media-query.html File LayoutTests/fast/html/imports/import-link-with-media-query.html (right): https://codereview.chromium.org/279463002/diff/1/LayoutTests/fast/html/imports/import-link-with-media-query.html#newcode6 LayoutTests/fast/html/imports/import-link-with-media-query.html:6: setTimeout(function() { testRunner.notifyDone(); }, 500); On 2014/05/08 03:57:06, ojan ...
6 years, 7 months ago (2014-05-08 05:17:34 UTC) #4
Hajime Morrita
OK, so as revert change has been stuck due to a test flakiness, I'd land ...
6 years, 7 months ago (2014-05-08 17:54:34 UTC) #5
esprehn
lgtm, few comments. https://codereview.chromium.org/279463002/diff/40001/LayoutTests/fast/html/imports/import-element-removed-flag.html File LayoutTests/fast/html/imports/import-element-removed-flag.html (right): https://codereview.chromium.org/279463002/diff/40001/LayoutTests/fast/html/imports/import-element-removed-flag.html#newcode72 LayoutTests/fast/html/imports/import-element-removed-flag.html:72: setTimeout(check, 0); What's this setTimeout waiting ...
6 years, 7 months ago (2014-05-08 19:13:29 UTC) #6
Hajime Morrita
https://codereview.chromium.org/279463002/diff/40001/LayoutTests/fast/html/imports/import-element-removed-flag.html File LayoutTests/fast/html/imports/import-element-removed-flag.html (right): https://codereview.chromium.org/279463002/diff/40001/LayoutTests/fast/html/imports/import-element-removed-flag.html#newcode72 LayoutTests/fast/html/imports/import-element-removed-flag.html:72: setTimeout(check, 0); On 2014/05/08 19:13:29, esprehn wrote: > What's ...
6 years, 7 months ago (2014-05-08 19:42:39 UTC) #7
Hajime Morrita
The CQ bit was checked by morrita@chromium.org
6 years, 7 months ago (2014-05-08 19:42:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/279463002/40001
6 years, 7 months ago (2014-05-08 19:44:06 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-08 21:02:48 UTC) #10
Message was sent while issue was closed.
Change committed as 173680

Powered by Google App Engine
This is Rietveld 408576698