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

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

Issue 2275493002: Remove EventSender from HTMLLinkElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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: third_party/WebKit/Source/core/html/HTMLLinkElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.h b/third_party/WebKit/Source/core/html/HTMLLinkElement.h
index 8a0a2e3edc2e004165193e5a7f8329995037fa13..48606b3f43717fa18b4a31d4dc9535075f103e28 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.h
@@ -28,6 +28,7 @@
#include "core/css/CSSStyleSheet.h"
#include "core/dom/DOMTokenList.h"
#include "core/dom/IconURL.h"
+#include "core/dom/IncrementLoadEventDelayCount.h"
#include "core/dom/StyleEngineContext.h"
#include "core/fetch/ResourceOwner.h"
#include "core/fetch/StyleSheetResource.h"
@@ -38,6 +39,7 @@
#include "core/html/RelList.h"
#include "core/loader/LinkLoader.h"
#include "core/loader/LinkLoaderClient.h"
+#include <memory>
namespace blink {
@@ -45,9 +47,6 @@ class HTMLLinkElement;
class KURL;
class LinkImport;
-template<typename T> class EventSender;
-using LinkEventSender = EventSender<HTMLLinkElement>;
-
//
// LinkStyle handles dynamically change-able link resources, which is
// typically @rel="stylesheet".
@@ -166,10 +165,8 @@ public:
DOMTokenList* sizes() const;
- void dispatchPendingEvent(LinkEventSender*);
+ void dispatchPendingEvent(std::unique_ptr<IncrementLoadEventDelayCount>);
void scheduleEvent();
- void dispatchEventImmediately();
- static void dispatchPendingLoadEvents();
// From LinkLoaderClient
bool shouldLoadLink() override;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698