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

Issue 779393002: Turn DocumentParser::pinToMainThread into a cleaner api (Closed)

Created:
6 years ago by kbalazs
Modified:
6 years ago
CC:
blink-reviews, webcomponents-bugzilla_chromium.org, 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
Project:
blink
Visibility:
Public.

Description

Turn DocumentParser::pinToMainThread into a cleaner api pinToMainThread makes the false impression that it can happen any time. In reality this has to be decided before the actual parsing is started. Better to express it with a cleaner api. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187078

Patch Set 1 #

Total comments: 5

Patch Set 2 : tests fix and use appenf for fragments #

Patch Set 3 : more fix #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -82 lines) Patch
M Source/core/dom/Document.h View 1 2 4 chunks +5 lines, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 6 chunks +5 lines, -8 lines 0 comments Download
M Source/core/dom/DocumentParser.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/html/TextDocument.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/imports/HTMLImportLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.h View 1 6 chunks +6 lines, -6 lines 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 6 chunks +7 lines, -26 lines 0 comments Download
A Source/core/html/parser/ParserSynchronizationPolicy.h View 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/html/parser/TextDocumentParser.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/parser/TextDocumentParser.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/inspector/DOMPatchSupport.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/loader/DocumentLoader.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 5 chunks +6 lines, -7 lines 0 comments Download
M Source/core/loader/DocumentWriter.h View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M Source/core/loader/DocumentWriter.cpp View 1 2 3 3 chunks +5 lines, -17 lines 0 comments Download
M Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (6 generated)
kbalazs
6 years ago (2014-12-05 23:24:58 UTC) #2
kbalazs
https://codereview.chromium.org/779393002/diff/1/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (left): https://codereview.chromium.org/779393002/diff/1/Source/core/dom/Document.cpp#oldcode1240 Source/core/dom/Document.cpp:1240: m_parser->pinToMainThread(); Note that this called XMLDocumentParser::pinToMainThread which is noop. ...
6 years ago (2014-12-05 23:37:58 UTC) #3
kbalazs
https://codereview.chromium.org/779393002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp File Source/core/html/parser/HTMLDocumentParser.cpp (left): https://codereview.chromium.org/779393002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp#oldcode804 Source/core/html/parser/HTMLDocumentParser.cpp:804: // from insert() so that only document.write() uses insert. ...
6 years ago (2014-12-05 23:42:04 UTC) #4
kouhei (in TOK)
Please address LayoutTests failures. https://codereview.chromium.org/779393002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp File Source/core/html/parser/HTMLDocumentParser.cpp (right): https://codereview.chromium.org/779393002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp#newcode991 Source/core/html/parser/HTMLDocumentParser.cpp:991: parser->insert(source); // Use insert() so ...
6 years ago (2014-12-08 01:35:28 UTC) #5
kbalazs
On 2014/12/08 01:35:28, kouhei wrote: > Please address LayoutTests failures. Done. In case a parser ...
6 years ago (2014-12-08 20:37:37 UTC) #6
kouhei (in TOK)
On 2014/12/08 20:37:37, kbalazs wrote: > On 2014/12/08 01:35:28, kouhei wrote: > > Please address ...
6 years ago (2014-12-09 01:34:05 UTC) #7
kbalazs
On 2014/12/09 01:34:05, kouhei wrote: > On 2014/12/08 20:37:37, kbalazs wrote: > > On 2014/12/08 ...
6 years ago (2014-12-09 01:50:16 UTC) #8
kbalazs
Apparently a TextDocument can also be created in sync mode, which I didn't consider before. ...
6 years ago (2014-12-09 21:41:25 UTC) #9
kbalazs
On 2014/12/09 21:41:25, kbalazs wrote: > Apparently a TextDocument can also be created in sync ...
6 years ago (2014-12-11 02:23:09 UTC) #10
kouhei (in TOK)
lgtm. Thanks for the clean up.
6 years ago (2014-12-11 02:24:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/779393002/40001
6 years ago (2014-12-11 16:28:18 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/19898)
6 years ago (2014-12-11 16:41:45 UTC) #15
kbalazs
On 2014/12/11 16:41:45, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years ago (2014-12-13 00:38:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/779393002/60001
6 years ago (2014-12-13 00:39:49 UTC) #20
commit-bot: I haz the power
6 years ago (2014-12-13 03:30:36 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187078

Powered by Google App Engine
This is Rietveld 408576698