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

Unified Diff: Source/core/svg/SVGUseElement.h

Issue 1150623003: Revamp asynchronous (load) event dispatching for SVG elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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: Source/core/svg/SVGUseElement.h
diff --git a/Source/core/svg/SVGUseElement.h b/Source/core/svg/SVGUseElement.h
index 390fa9c76a8e876a07bb4781738400c8e260d511..88f3537941989ef5e6577921cd4ddb4107c23f2d 100644
--- a/Source/core/svg/SVGUseElement.h
+++ b/Source/core/svg/SVGUseElement.h
@@ -21,9 +21,8 @@
#ifndef SVGUseElement_h
#define SVGUseElement_h
-#include "core/SVGNames.h"
+#include "core/events/EventSender.h"
#include "core/fetch/DocumentResource.h"
-#include "core/svg/SVGAnimatedBoolean.h"
#include "core/svg/SVGAnimatedLength.h"
#include "core/svg/SVGGraphicsElement.h"
#include "core/svg/SVGURIReference.h"
@@ -31,7 +30,7 @@
namespace blink {
-class DocumentResource;
+typedef EventSender<SVGUseElement> SVGUseEventSender;
class SVGUseElement final : public SVGGraphicsElement,
public SVGURIReference,
@@ -53,6 +52,8 @@ public:
virtual void buildPendingResource() override;
+ void dispatchPendingEvent(SVGUseEventSender*);
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -97,8 +98,6 @@ private:
TreeScope* referencedScope() const;
void setDocumentResource(ResourcePtr<DocumentResource>);
- virtual Timer<SVGElement>* svgLoadEventTimer() override { return &m_svgLoadEventTimer; }
-
RefPtrWillBeMember<SVGAnimatedLength> m_x;
RefPtrWillBeMember<SVGAnimatedLength> m_y;
RefPtrWillBeMember<SVGAnimatedLength> m_width;
@@ -108,7 +107,6 @@ private:
bool m_needsShadowTreeRecreation;
RefPtrWillBeMember<SVGElement> m_targetElementInstance;
ResourcePtr<DocumentResource> m_resource;
- Timer<SVGElement> m_svgLoadEventTimer;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698