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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2833733002: Avoid firing load events on style elements if there is no listeners for that (Closed)
Patch Set: fix style Created 3 years, 8 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 | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 9b0ab6e6ced219e4f512f65ba15156b7e9a98393..9152670f099f196a59bff8e775643de6d1f732d7 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -791,14 +791,15 @@ class CORE_EXPORT Document : public ContainerNode,
ANIMATIONSTART_LISTENER = 1 << 7,
ANIMATIONITERATION_LISTENER = 1 << 8,
TRANSITIONEND_LISTENER = 1 << 9,
- SCROLL_LISTENER = 1 << 10
- // 5 bits remaining
+ SCROLL_LISTENER = 1 << 10,
+ LOAD_LISTENER_AT_CAPTURE_PHASE_OR_AT_STYLE_ELEMENT = 1 << 11
+ // 4 bits remaining
tkent 2017/04/25 01:36:32 Oh, this enum wasn't renamed to kCamelCase.
hayato 2017/04/25 01:40:13 Ah, I didn't notice it. :) I can rename these in a
};
bool HasListenerType(ListenerType listener_type) const {
return (listener_types_ & listener_type);
}
- void AddListenerTypeIfNeeded(const AtomicString& event_type);
+ void AddListenerTypeIfNeeded(const AtomicString& event_type, EventTarget&);
bool HasMutationObserversOfType(MutationObserver::MutationType type) const {
return mutation_observer_types_ & type;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698