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

Unified Diff: Source/core/html/LinkImport.cpp

Issue 141143006: [import] Cleanup: get rid of ad-hoc state machine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT Created 6 years, 11 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
« no previous file with comments | « Source/core/html/HTMLLinkElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/LinkImport.cpp
diff --git a/Source/core/html/LinkImport.cpp b/Source/core/html/LinkImport.cpp
index bd682a910c7e8ece3c6fc320c47ad1d0b248ddd2..d4c59b6d46e4ed3a163f645f7b9a4724f7d51e5d 100644
--- a/Source/core/html/LinkImport.cpp
+++ b/Source/core/html/LinkImport.cpp
@@ -110,7 +110,9 @@ void LinkImport::didFinish()
{
if (!m_owner)
return;
- m_owner->scheduleEvent();
+ // Because didFinish() is called from import's own scheduler in HTMLImportsController,
+ // we don't need to scheduleEvent() here.
+ m_owner->dispatchEventImmediately();
}
void LinkImport::importChildWasDestroyed(HTMLImportChild* child)
« no previous file with comments | « Source/core/html/HTMLLinkElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698