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

Unified Diff: Source/core/svg/SVGScriptElement.cpp

Issue 1141683003: Don't dispatch two 'load' events for external SVGScriptElement loads (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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: Source/core/svg/SVGScriptElement.cpp
diff --git a/Source/core/svg/SVGScriptElement.cpp b/Source/core/svg/SVGScriptElement.cpp
index 2fde30895e2c5f3855a23b3c95c0fd1b00db23d2..af89b9737c8a0b09497a087397109a0d86ca115b 100644
--- a/Source/core/svg/SVGScriptElement.cpp
+++ b/Source/core/svg/SVGScriptElement.cpp
@@ -35,7 +35,6 @@ namespace blink {
inline SVGScriptElement::SVGScriptElement(Document& document, bool wasInsertedByParser, bool alreadyStarted)
: SVGElement(SVGNames::scriptTag, document)
, SVGURIReference(this)
- , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired)
, m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted))
{
}
@@ -74,10 +73,8 @@ void SVGScriptElement::didNotifySubtreeInsertionsToDocument()
{
m_loader->didNotifySubtreeInsertionsToDocument();
- if (!m_loader->isParserInserted()) {
+ if (!m_loader->isParserInserted())
m_loader->setHaveFiredLoadEvent(true);
- sendSVGLoadEventIfPossibleAsynchronously();
- }
}
void SVGScriptElement::childrenChanged(const ChildrenChange& change)

Powered by Google App Engine
This is Rietveld 408576698