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

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

Issue 2478603003: Remove EventSender in HTMLDetailsElement (Closed)
Patch Set: cancel by move-in 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/HTMLDetailsElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLDetailsElement.h b/third_party/WebKit/Source/core/html/HTMLDetailsElement.h
index 23823fae58aa0f921c01bdcff52ba99170ebd161..228f6a7ba49d7b6b1ba5a0365a7f21d3cf87566d 100644
--- a/third_party/WebKit/Source/core/html/HTMLDetailsElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLDetailsElement.h
@@ -25,10 +25,6 @@
namespace blink {
-template <typename T>
-class EventSender;
-using DetailsEventSender = EventSender<HTMLDetailsElement>;
-
class HTMLDetailsElement final : public HTMLElement {
DEFINE_WRAPPERTYPEINFO();
@@ -37,13 +33,13 @@ class HTMLDetailsElement final : public HTMLElement {
void toggleOpen();
~HTMLDetailsElement() override;
- void dispatchPendingEvent(DetailsEventSender*);
-
Element* findMainSummary() const;
private:
explicit HTMLDetailsElement(Document&);
+ void dispatchPendingEvent();
+
LayoutObject* createLayoutObject(const ComputedStyle&) override;
void parseAttribute(const QualifiedName&,
const AtomicString&,
@@ -52,6 +48,7 @@ class HTMLDetailsElement final : public HTMLElement {
bool isInteractiveContent() const override;
bool m_isOpen;
+ TaskHandle m_pendingEvent;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698