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

Issue 2333263002: Document::haveImportsLoaded() should return true when ignoring pending sheets (Closed)

Created:
4 years, 3 months ago by Xiaocheng
Modified:
4 years, 2 months ago
Reviewers:
esprehn, rune
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Document::haveImportsLoaded() should return true when ignoring pending sheets BUG=646323 TESTS=webkit_unit_tests DocumentLoadingRenderingTest.ShouldNotPerformRepeatedLayoutWithPendingImport DocumentLoadingRenderingTest.ShouldClearPlaceholderStyleWhenIgnoringPendingStylesheet Committed: https://crrev.com/cd626f11b0ddb8fc655ac2fd808ca3930e3e29cf Cr-Commit-Position: refs/heads/master@{#419067}

Patch Set 1 #

Patch Set 2 : haveImportsLoaded() should consider ignoring pending stylesheets #

Patch Set 3 : Tests added #

Patch Set 4 : Tests really added... #

Total comments: 3

Patch Set 5 : Remove EXPECT_FALSE(document().hasNodesWithPlaceholderStyle()) from test #

Patch Set 6 : Use StyleEngine::styleForElementCount #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -0 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (28 generated)
esprehn
That sucks we have poor test coverage here, this patch doesn't actually work unfortunately. This ...
4 years, 3 months ago (2016-09-13 17:40:19 UTC) #6
dglazkov
On 2016/09/13 at 17:40:19, esprehn wrote: > That sucks we have poor test coverage here, ...
4 years, 3 months ago (2016-09-13 17:41:34 UTC) #7
esprehn
On 2016/09/13 at 17:41:34, dglazkov wrote: > On 2016/09/13 at 17:40:19, esprehn wrote: > > ...
4 years, 3 months ago (2016-09-13 18:00:55 UTC) #8
esprehn
Also I would add this to DocumentLoadingRenderingTest, it's a SimTest that already tests other parts ...
4 years, 3 months ago (2016-09-13 18:01:51 UTC) #9
Xiaocheng
Updated the patch following the crbug discussion. Still working on test cases... I tried to ...
4 years, 3 months ago (2016-09-14 13:25:13 UTC) #15
Xiaocheng
PTAL. The patch is updated with two tests, one covering the code path that I ...
4 years, 3 months ago (2016-09-15 10:30:40 UTC) #23
rune
https://codereview.chromium.org/2333263002/diff/60001/third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp File third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp (right): https://codereview.chromium.org/2333263002/diff/60001/third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp#newcode375 third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp:375: // nodes with placeholder style. Not sure if I ...
4 years, 3 months ago (2016-09-15 10:48:26 UTC) #25
Xiaocheng
https://codereview.chromium.org/2333263002/diff/60001/third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp File third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp (right): https://codereview.chromium.org/2333263002/diff/60001/third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp#newcode375 third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp:375: // nodes with placeholder style. On 2016/09/15 at 10:48:26, ...
4 years, 3 months ago (2016-09-15 11:28:30 UTC) #26
Xiaocheng
Following rune@'s comment, the test has been updated to only check if the second updateStyleAndLayoutIgnorePendingStylesheet() ...
4 years, 3 months ago (2016-09-15 12:30:10 UTC) #29
rune
https://codereview.chromium.org/2333263002/diff/60001/third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp File third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp (right): https://codereview.chromium.org/2333263002/diff/60001/third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp#newcode375 third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp:375: // nodes with placeholder style. On 2016/09/15 11:28:30, Xiaocheng ...
4 years, 3 months ago (2016-09-15 12:37:54 UTC) #30
Xiaocheng
On 2016/09/15 at 12:37:54, rune wrote: > https://codereview.chromium.org/2333263002/diff/60001/third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp > File third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp (right): > > https://codereview.chromium.org/2333263002/diff/60001/third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp#newcode375 ...
4 years, 3 months ago (2016-09-15 14:00:24 UTC) #35
rune
lgtm
4 years, 3 months ago (2016-09-15 14:10:06 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/2333263002/100001
4 years, 3 months ago (2016-09-16 01:09:44 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-16 01:16:23 UTC) #41
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/cd626f11b0ddb8fc655ac2fd808ca3930e3e29cf Cr-Commit-Position: refs/heads/master@{#419067}
4 years, 3 months ago (2016-09-16 01:18:36 UTC) #43
Xiaocheng
4 years, 2 months ago (2016-09-28 14:13:28 UTC) #44
Message was sent while issue was closed.
This is a manual note that this patch has been reverted by
https://codereview.chromium.org/2353243002.

Powered by Google App Engine
This is Rietveld 408576698