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

Issue 69823002: Move ownership of the TextResourceDecoder to DecodedDataDocumentParser (Closed)

Created:
7 years, 1 month ago by oystein (OOO til 10th of July)
Modified:
7 years, 1 month ago
CC:
blink-reviews, zoltan1, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, adamk+blink_chromium.org, jchaffraix+rendering, Nate Chapin, gavinp+loader_chromium.org, jamesr
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Move ownership of the TextResourceDecoder to DecodedDataDocumentParser Continued from https://codereview.chromium.org/23455024/ This moves the Document's reference to the decoder to the parser. The parser informs the document of changes in the encoding as well as two bits indicating if the encoding was determined heuristically (to set up the decoder properly for child frames) and if the decoder has encountered any decoding errors (to generate errors for XML documents). R=abarth@chromium.org, japhet@chromium.org BUG=277886 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162079

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Moved DocumentEncodingData to its own header #

Total comments: 14

Patch Set 4 : Review fixes #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -58 lines) Patch
M Source/core/core.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/DecodedDataDocumentParser.h View 1 2 3 4 5 2 chunks +13 lines, -4 lines 0 comments Download
M Source/core/dom/DecodedDataDocumentParser.cpp View 1 2 3 4 5 5 chunks +30 lines, -6 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 4 chunks +6 lines, -7 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 7 chunks +17 lines, -22 lines 0 comments Download
A Source/core/dom/DocumentEncodingData.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M Source/core/dom/DocumentParser.h View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M Source/core/dom/DocumentParser.cpp View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M Source/core/fetch/TextResourceDecoder.h View 2 chunks +7 lines, -7 lines 0 comments Download
M Source/core/loader/DocumentLoader.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/loader/DocumentWriter.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/loader/DocumentWriter.cpp View 1 2 3 4 5 3 chunks +17 lines, -6 lines 0 comments Download
M Source/core/loader/TextResourceDecoderBuilder.cpp View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/xml/XSLTProcessor.cpp View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
oystein (OOO til 10th of July)
Picking this patch up from where jamesr@left off. Note that the Document::setEncodingData calls on each ...
7 years, 1 month ago (2013-11-12 01:30:44 UTC) #1
abarth-chromium
I remember this being valuable, but I'm going to have to wrap my mind around ...
7 years, 1 month ago (2013-11-12 07:26:36 UTC) #2
jamesr
The inner class is just a cheesey bit from my patch - I had not ...
7 years, 1 month ago (2013-11-12 07:42:40 UTC) #3
oystein (OOO til 10th of July)
On 2013/11/12 07:42:40, jamesr wrote: > The inner class is just a cheesey bit from ...
7 years, 1 month ago (2013-11-12 17:19:16 UTC) #4
oystein (OOO til 10th of July)
On 2013/11/12 17:19:16, Oystein wrote: > On 2013/11/12 07:42:40, jamesr wrote: > > The inner ...
7 years, 1 month ago (2013-11-14 01:59:50 UTC) #5
abarth-chromium
> please see description and comments there Please either move the description from that CL ...
7 years, 1 month ago (2013-11-14 06:51:55 UTC) #6
abarth-chromium
This looks like it's on the right track. A few questions below. https://codereview.chromium.org/69823002/diff/170001/Source/core/dom/DecodedDataDocumentParser.cpp File Source/core/dom/DecodedDataDocumentParser.cpp ...
7 years, 1 month ago (2013-11-14 07:04:32 UTC) #7
oystein (OOO til 10th of July)
Thanks :) https://codereview.chromium.org/69823002/diff/170001/Source/core/dom/DecodedDataDocumentParser.cpp File Source/core/dom/DecodedDataDocumentParser.cpp (right): https://codereview.chromium.org/69823002/diff/170001/Source/core/dom/DecodedDataDocumentParser.cpp#newcode102 Source/core/dom/DecodedDataDocumentParser.cpp:102: document()->setEncodingData(encodingData); On 2013/11/14 07:04:33, abarth wrote: > ...
7 years, 1 month ago (2013-11-14 19:02:29 UTC) #8
abarth-chromium
On 2013/11/14 19:02:29, Oystein wrote: > Should it be a separate CL, just the cleanup? ...
7 years, 1 month ago (2013-11-15 00:05:56 UTC) #9
abarth-chromium
LGTM https://codereview.chromium.org/69823002/diff/310001/Source/core/loader/DocumentWriter.cpp File Source/core/loader/DocumentWriter.cpp (right): https://codereview.chromium.org/69823002/diff/310001/Source/core/loader/DocumentWriter.cpp#newcode92 Source/core/loader/DocumentWriter.cpp:92: RefPtr<TextResourceDecoder> decoder = m_parser->getDecoder(); getDecoder -> decoder
7 years, 1 month ago (2013-11-15 00:08:39 UTC) #10
oystein (OOO til 10th of July)
On 2013/11/15 00:05:56, abarth wrote: > On 2013/11/14 19:02:29, Oystein wrote: > > Should it ...
7 years, 1 month ago (2013-11-15 00:16:35 UTC) #11
oystein (OOO til 10th of July)
Thanks :) Cleanup moved to https://codereview.chromium.org/71163007 https://codereview.chromium.org/69823002/diff/310001/Source/core/loader/DocumentWriter.cpp File Source/core/loader/DocumentWriter.cpp (right): https://codereview.chromium.org/69823002/diff/310001/Source/core/loader/DocumentWriter.cpp#newcode92 Source/core/loader/DocumentWriter.cpp:92: RefPtr<TextResourceDecoder> decoder = ...
7 years, 1 month ago (2013-11-15 00:17:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oysteine@chromium.org/69823002/370001
7 years, 1 month ago (2013-11-15 00:31:21 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-15 06:56:04 UTC) #14
Message was sent while issue was closed.
Change committed as 162079

Powered by Google App Engine
This is Rietveld 408576698