| Index: third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp b/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
|
| index 9b213c7192b3f935d19321331363e8bd98625fd3..cda15ee40eab5d3b585081dde5cd97c85d98745e 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
|
| @@ -24,17 +24,12 @@
|
|
|
| #include "core/MediaTypeNames.h"
|
| #include "core/css/CSSStyleSheet.h"
|
| +#include "core/dom/TaskRunnerHelper.h"
|
| #include "core/events/Event.h"
|
| #include "wtf/StdLibExtras.h"
|
|
|
| namespace blink {
|
|
|
| -static SVGStyleEventSender& styleErrorEventSender()
|
| -{
|
| - DEFINE_STATIC_LOCAL(SVGStyleEventSender, sharedErrorEventSender, (SVGStyleEventSender::create(EventTypeNames::error)));
|
| - return sharedErrorEventSender;
|
| -}
|
| -
|
| inline SVGStyleElement::SVGStyleElement(Document& document, bool createdByParser)
|
| : SVGElement(SVGNames::styleTag, document)
|
| , StyleElement(&document, createdByParser)
|
| @@ -146,12 +141,11 @@ void SVGStyleElement::childrenChanged(const ChildrenChange& change)
|
| void SVGStyleElement::notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErrorStatus errorStatus)
|
| {
|
| if (errorStatus != NoErrorLoadingSubresource)
|
| - styleErrorEventSender().dispatchEventSoon(this);
|
| + TaskRunnerHelper::get(TaskType::DOMManipulation, &document())->postTask(BLINK_FROM_HERE, WTF::bind(&SVGStyleElement::dispatchPendingEvent, wrapPersistent(this)));
|
| }
|
|
|
| -void SVGStyleElement::dispatchPendingEvent(SVGStyleEventSender* eventSender)
|
| +void SVGStyleElement::dispatchPendingEvent()
|
| {
|
| - ASSERT_UNUSED(eventSender, eventSender == &styleErrorEventSender());
|
| dispatchEvent(Event::create(EventTypeNames::error));
|
| }
|
|
|
|
|