|
|
Don't expose DocumentWriter to embedding layer
Currently, several classes that need to build up a fake frame do so by getting direct access to a DocumentWriter and sending the document contents directly into the parsing system. This works, but it looks like a terrible layering violation, particularly since it involves reusing whatever DocumentLoader happens to be the committed DocumentLoader (generally the DocumentLoader for the initial empty document).
This patch re-routes these cases to use SubstituteData and go through the normal FrameLoader::load() codepath. This involves re-introducing the concept of a SubstituteData load that is forced to be synchronous, but that seems like less of a hack than the current system.
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164624
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+175 lines, -207 lines) |
Patch |
 |
M |
Source/core/fetch/Resource.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/Resource.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceFetcher.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorOverlay.cpp
|
View
|
1
2
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentLoader.h
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentLoader.cpp
|
View
|
1
2
3
4
|
6 chunks |
+4 lines, -33 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/SubstituteData.h
|
View
|
1
2
3
4
|
1 chunk |
+32 lines, -21 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/PagePopupClient.h
|
View
|
|
2 chunks |
+13 lines, -14 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/PagePopupClient.cpp
|
View
|
|
2 chunks |
+40 lines, -40 lines |
0 comments
|
Download
|
 |
M |
Source/core/svg/graphics/SVGImage.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/MockPagePopupDriver.cpp
|
View
|
1
2
|
2 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
Source/web/ColorChooserPopupUIController.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/ColorChooserPopupUIController.cpp
|
View
|
1
|
2 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/web/DateTimeChooserImpl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/DateTimeChooserImpl.cpp
|
View
|
|
3 chunks |
+37 lines, -37 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebHelperPluginImpl.cpp
|
View
|
1
2
3
|
3 chunks |
+10 lines, -21 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebPagePopupImpl.cpp
|
View
|
1
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/WebViewTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|