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

Unified Diff: Source/core/svg/SVGStyleElement.h

Issue 1049513003: Add error dispatch events to SVGStyleElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes Created 5 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 | « Source/core/svg/SVGElement.cpp ('k') | Source/core/svg/SVGStyleElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGStyleElement.h
diff --git a/Source/core/svg/SVGStyleElement.h b/Source/core/svg/SVGStyleElement.h
index a0e478c55762f04aaf7d31e31a98c2b2431ea1ee..f1786d1cf4e3a9927169097623d4ac6af2c74d7f 100644
--- a/Source/core/svg/SVGStyleElement.h
+++ b/Source/core/svg/SVGStyleElement.h
@@ -23,11 +23,15 @@
#include "core/SVGNames.h"
#include "core/dom/StyleElement.h"
+#include "core/events/EventSender.h"
#include "core/svg/SVGElement.h"
+#include "platform/Timer.h"
pdr. 2015/03/31 21:36:38 Nit: is this include needed?
jww 2015/04/01 16:26:57 Removed.
#include "platform/heap/Handle.h"
namespace blink {
+typedef EventSender<SVGStyleElement> SVGStyleEventSender;
+
class SVGStyleElement final : public SVGElement
, public StyleElement {
DEFINE_WRAPPERTYPEINFO();
@@ -50,6 +54,8 @@ public:
virtual String title() const override;
void setTitle(const AtomicString&);
+ void dispatchPendingEvent(SVGStyleEventSender*);
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -67,6 +73,7 @@ private:
virtual bool sheetLoaded() override { return StyleElement::sheetLoaded(document()); }
virtual void startLoadingDynamicSheet() override { StyleElement::startLoadingDynamicSheet(document()); }
virtual Timer<SVGElement>* svgLoadEventTimer() override { return &m_svgLoadEventTimer; }
+ void sendSVGErrorEventAsynchronously();
Timer<SVGElement> m_svgLoadEventTimer;
};
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | Source/core/svg/SVGStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698