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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSourceElement.h

Issue 2480523003: Remove EventSender from HTMLSourceElement (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/html/HTMLSourceElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLSourceElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLSourceElement.h b/third_party/WebKit/Source/core/html/HTMLSourceElement.h
index d7d92e365d75c381cc9371770416ca834107f98f..ff13cb61c9fe6addcc220a208a874903a053a3d2 100644
--- a/third_party/WebKit/Source/core/html/HTMLSourceElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLSourceElement.h
@@ -32,10 +32,6 @@
namespace blink {
-template <typename T>
-class EventSender;
-using SourceEventSender = EventSender<HTMLSourceElement>;
-
class HTMLSourceElement final : public HTMLElement {
DEFINE_WRAPPERTYPEINFO();
@@ -52,8 +48,6 @@ class HTMLSourceElement final : public HTMLElement {
void scheduleErrorEvent();
void cancelPendingErrorEvent();
- void dispatchPendingEvent(SourceEventSender*);
-
bool mediaQueryMatches() const;
void removeMediaQueryListListener();
@@ -64,6 +58,8 @@ class HTMLSourceElement final : public HTMLElement {
private:
explicit HTMLSourceElement(Document&);
+ void dispatchPendingEvent();
+
void didMoveToNewDocument(Document& oldDocument) override;
InsertionNotificationRequest insertedInto(ContainerNode*) override;
@@ -78,6 +74,7 @@ class HTMLSourceElement final : public HTMLElement {
Member<MediaQueryList> m_mediaQueryList;
Member<Listener> m_listener;
+ TaskHandle m_pendingErrorEvent;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLSourceElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698