|
Block the HTML parser on external stylesheets
**** Not yet ready for commit - Initial/experimental test ****
Closed in favor of https://codereview.chromium.org/1903803002/
By blocking the main parser on external stylesheets Chrome can allow
rendering to continue for styles and the part of the DOM tree that has
already been built without needing to worry about content referenced
after the style. This mirror's The Edge/IE behavior.
Behind an experimental blink feature flag:
- Pending CSS will not block render
- Background parser breaks chunks after style/link tags so the main
parser can cleanly pause parsing if either triggered a stylesheet to
load.
- Main parser pauses parsing while blocking stylesheets are pending
(keeping the existing logic for tracking pending blocking stylesheets).
- Parsing is resumed when the pending sheet(s) have loaded.
BUG= 481122
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+136 lines, -71 lines) |
Patch |
|
M |
third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import.html
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import.html
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-onload.html
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-onload-before-page-load.html
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import.html
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/events/hit-test-cache-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/events/hit-test-counts-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/html/imports/import-events-inline.html
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/html/imports/import-ignore-document-write.html
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/html/imports/import-script.html
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/html/imports/import-style-link.html
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/html/imports/import-style-link-block.html
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/html/imports/resources/script-prototype-test.html
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/html/imports/sub-imports-onload.html
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/htmlimports/import-blocking-child-blocks-child.html
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/htmlimports/import-blocking-nested-child-blocks-child.html
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/htmlimports/import-blocking-nested-child-blocks-nested-child.html
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/resources/js-test.js
|
View
|
1
2
3
4
|
3 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/Document.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/Document.cpp
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
|
View
|
1
2
3
4
5
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
View
|
1
2
3
4
5
|
18 chunks |
+62 lines, -37 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/DocumentLoadingRenderingTest.cpp
|
View
|
1
2
3
4
|
5 chunks |
+7 lines, -11 lines |
0 comments
|
Download
|
Total messages: 24 (10 generated)
|