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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptLoader.cpp

Issue 2715533007: Use ScriptLoader::errorOccurred() instead of Resource in ScriptLoader (Closed)
Patch Set: Use ScriptLoader::errorOccurred() Created 3 years, 10 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/dom/ScriptLoader.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
index e32b4516f1b353bdf0e889e6dcee3554dd61e551..3f5c8297c8c12246acf6b2510707efb4069c5ca0 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
@@ -854,7 +854,7 @@ void ScriptLoader::pendingScriptFinished(PendingScript* pendingScript) {
DCHECK_EQ(pendingScript->resource(), m_resource);
sof 2017/02/24 07:29:22 Given the DCHECK_EQ() at the start of this method,
hiroshige 2017/02/24 18:16:57 The DCHECK_EQ() at the start of this method checks
sof 2017/02/24 18:26:43 If you really think that's valuable, then move it
hiroshige 2017/02/25 00:31:50 Done.
- if (m_resource->errorOccurred()) {
+ if (errorOccurred()) {
contextDocument->scriptRunner()->notifyScriptLoadError(this,
m_asyncExecType);
detachPendingScript();

Powered by Google App Engine
This is Rietveld 408576698