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

Issue 22909053: Store the Document's encoding on the Document (Closed)

Created:
7 years, 4 months ago by jamesr
Modified:
7 years, 3 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, kenneth.christiansen, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, adamk+blink_chromium.org, jchaffraix+rendering, Nate Chapin, gavinp+loader_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Store the Document's encoding on the Document This adds storage to a Document for its encoding as a prerequisite for moving ownership of the decoder from the Document to the parser. The encoding may be set explicit or by the decoder. This storage is temporarily redundant with the Document::m_decoder->m_encoding storage, but this will stop being redundant when the decoder moves. We'll have to store a few more pieces of information on the Document such as information about where the encoding came from in future patches. BUG=277886 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156813

Patch Set 1 #

Total comments: 2

Patch Set 2 : Set document encoding in DecodedDataDocumentParser instead of DocumentWriter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -29 lines) Patch
M Source/core/dom/DecodedDataDocumentParser.cpp View 1 5 chunks +5 lines, -3 lines 0 comments Download
M Source/core/dom/Document.h View 1 3 chunks +8 lines, -4 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 4 chunks +10 lines, -5 lines 0 comments Download
M Source/core/html/HTMLBaseElement.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/parser/XSSAuditor.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/FrameView.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/xml/XSLTProcessor.cpp View 2 chunks +1 line, -5 lines 0 comments Download
M Source/web/ContextMenuClientImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebDocument.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPageSerializerImpl.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
jamesr
I'm finding it a bit awkward to juggle the have-no-encoding-yet state. Most code was previously ...
7 years, 4 months ago (2013-08-23 21:44:51 UTC) #1
jamesr
Also, should running http/tests/ provide good coverage for these patches or are there other suites ...
7 years, 4 months ago (2013-08-23 21:45:47 UTC) #2
abarth-chromium
On 2013/08/23 21:45:47, jamesr wrote: > Also, should running http/tests/ provide good coverage for these ...
7 years, 4 months ago (2013-08-23 21:53:36 UTC) #3
abarth-chromium
lgtm https://codereview.chromium.org/22909053/diff/1/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/22909053/diff/1/Source/core/dom/Document.cpp#newcode1112 Source/core/dom/Document.cpp:1112: return AtomicString(m_encoding.domName()); This used to be able to ...
7 years, 4 months ago (2013-08-23 21:58:00 UTC) #4
jamesr
On 2013/08/23 21:58:00, abarth wrote: > https://codereview.chromium.org/22909053/diff/1/Source/core/html/parser/XSSAuditor.cpp > File Source/core/html/parser/XSSAuditor.cpp (right): > > https://codereview.chromium.org/22909053/diff/1/Source/core/html/parser/XSSAuditor.cpp#newcode261 > ...
7 years, 4 months ago (2013-08-23 22:05:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/22909053/1
7 years, 4 months ago (2013-08-23 22:05:40 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=3044
7 years, 4 months ago (2013-08-23 23:59:53 UTC) #7
jamesr
On 2013/08/23 23:59:53, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 3 months ago (2013-08-26 21:53:24 UTC) #8
jamesr
Patch set 1 broke these tests: fast/encoding/css-charset-default.xhtml fast/encoding/utf-32-big-endian-nobom.xml fast/encoding/utf-32-little-endian-nobom.xml http/tests/encoding/meta-switch-mid-parse-with-title.html I fixed them by moving ...
7 years, 3 months ago (2013-08-27 01:15:47 UTC) #9
jamesr
OK, I think I understand better now. Document::setEncoding() must be called before TitleEncodingFixer::fixTitleEncodingIfNeeded() for the ...
7 years, 3 months ago (2013-08-27 01:41:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/22909053/21001
7 years, 3 months ago (2013-08-27 23:04:36 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-08-28 03:26:30 UTC) #12
Message was sent while issue was closed.
Change committed as 156813

Powered by Google App Engine
This is Rietveld 408576698