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

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

Issue 214513011: HTMLLinkElement should not run script inside ::insertedInto (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « LayoutTests/fast/html/imports/import-events-inline.html ('k') | Source/core/html/imports/LinkImport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.cpp
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
index 984ab8a74100bbf2d31f277fabe79d89aa483411..88eb3153294a2626b80f893111ef2134e4ec70c0 100644
--- a/Source/core/html/HTMLLinkElement.cpp
+++ b/Source/core/html/HTMLLinkElement.cpp
@@ -352,11 +352,6 @@ void HTMLLinkElement::dispatchPendingEvent(LinkEventSender* eventSender)
{
ASSERT_UNUSED(eventSender, eventSender == &linkLoadEventSender());
ASSERT(m_link);
- dispatchEventImmediately();
-}
-
-void HTMLLinkElement::dispatchEventImmediately()
-{
if (m_link->hasLoaded())
linkLoaded();
else
« no previous file with comments | « LayoutTests/fast/html/imports/import-events-inline.html ('k') | Source/core/html/imports/LinkImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698