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

Issue 799803004: Demistify DocumentParser::append (Closed)

Created:
6 years ago by kbalazs
Modified:
6 years ago
Reviewers:
kouhei (in TOK)
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, aandrey+blink_chromium.org, rwlbuis, caseq+blink_chromium.org, malch+blink_chromium.org, blink-reviews-html_chromium.org, yurys+blink_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, devtools-reviews_chromium.org, loislo+blink_chromium.org, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, Nate Chapin, tyoshino+watch_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Demistify DocumentParser::append Today it takes a PassRefptr<StringImpl> as argument. This supposed to express that the input string is passed in a destructive manner. However this is no longer the case. It was needed by the background parser but this code has been refactored and now append is only used on the synchronous parsing path. Also remove outdated comment that it should not be public. Both DocumentWriter and DOMPatchSupport uses it and there is nothing particularly wrong with that. R=kouhei@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187561

Patch Set 1 #

Total comments: 7

Patch Set 2 : const SegmentedString #

Patch Set 3 : resurrect fixme #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -27 lines) Patch
M Source/core/dom/DecodedDataDocumentParser.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/dom/DecodedDataDocumentParser.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DocumentParser.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M Source/core/dom/RawDataDocumentParser.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/parser/HTMLViewSourceParser.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/HTMLViewSourceParser.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/inspector/DOMPatchSupport.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/DocumentWriter.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
kouhei (in TOK)
https://codereview.chromium.org/799803004/diff/1/Source/core/dom/DocumentParser.h File Source/core/dom/DocumentParser.h (left): https://codereview.chromium.org/799803004/diff/1/Source/core/dom/DocumentParser.h#oldcode59 Source/core/dom/DocumentParser.h:59: // FIXME: append() should be private, but DocumentLoader::replaceDocumentWhileExecutingJavaScriptURL uses ...
6 years ago (2014-12-18 04:34:36 UTC) #1
kbalazs
https://codereview.chromium.org/799803004/diff/1/Source/core/dom/DocumentParser.h File Source/core/dom/DocumentParser.h (left): https://codereview.chromium.org/799803004/diff/1/Source/core/dom/DocumentParser.h#oldcode59 Source/core/dom/DocumentParser.h:59: // FIXME: append() should be private, but DocumentLoader::replaceDocumentWhileExecutingJavaScriptURL uses ...
6 years ago (2014-12-18 23:28:28 UTC) #2
kbalazs
fyi chromium trybot fail is unrelated
6 years ago (2014-12-19 01:07:14 UTC) #3
kouhei (in TOK)
lgtm % removing the fixme. https://codereview.chromium.org/799803004/diff/1/Source/core/dom/DocumentParser.h File Source/core/dom/DocumentParser.h (left): https://codereview.chromium.org/799803004/diff/1/Source/core/dom/DocumentParser.h#oldcode59 Source/core/dom/DocumentParser.h:59: // FIXME: append() should ...
6 years ago (2014-12-19 04:44:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799803004/40001
6 years ago (2014-12-19 18:11:44 UTC) #6
commit-bot: I haz the power
6 years ago (2014-12-19 20:47:32 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187561

Powered by Google App Engine
This is Rietveld 408576698