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

Unified Diff: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp

Issue 2724673002: [WIP] Introduce ScriptResourceData
Patch Set: Fix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
index 8c1bb05ff59b11fe5223250e9877a69e3fb320d5..be0d8871614885810a98e3944e91f4491dfd08f7 100644
--- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -436,7 +436,7 @@ void XMLDocumentParser::InsertErrorMessageBlock() {
void XMLDocumentParser::NotifyFinished(Resource* unused_resource) {
DCHECK_EQ(unused_resource, pending_script_);
- ScriptSourceCode source_code(pending_script_.Get());
+ ScriptSourceCode source_code(pending_script_->ResourceData());
bool error_occurred = pending_script_->ErrorOccurred();
bool was_canceled = pending_script_->WasCanceled();
double script_parser_blocking_time =

Powered by Google App Engine
This is Rietveld 408576698