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

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

Issue 2487433002: Revert of Remove EventSender from HTMLStyleElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: third_party/WebKit/Source/core/html/HTMLStyleElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLStyleElement.h b/third_party/WebKit/Source/core/html/HTMLStyleElement.h
index 12f117f3f2c307164a34f901979232acfca252b3..f9e74d71a2ac7c7a92cbe1d01da19115784911bf 100644
--- a/third_party/WebKit/Source/core/html/HTMLStyleElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLStyleElement.h
@@ -23,12 +23,16 @@
#ifndef HTMLStyleElement_h
#define HTMLStyleElement_h
-#include "core/dom/IncrementLoadEventDelayCount.h"
#include "core/dom/StyleElement.h"
#include "core/html/HTMLElement.h"
-#include <memory>
namespace blink {
+
+class HTMLStyleElement;
+
+template <typename T>
+class EventSender;
+using StyleEventSender = EventSender<HTMLStyleElement>;
class CORE_EXPORT HTMLStyleElement final : public HTMLElement,
private StyleElement {
@@ -44,7 +48,8 @@
bool disabled() const;
void setDisabled(bool);
- void dispatchPendingEvent(std::unique_ptr<IncrementLoadEventDelayCount>);
+ void dispatchPendingEvent(StyleEventSender*);
+ static void dispatchPendingLoadEvents();
DECLARE_VIRTUAL_TRACE();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698