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

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

Issue 15492007: Make SVG objects ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix indent Created 7 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
« no previous file with comments | « no previous file | Source/core/svg/SVGElementInstance.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElementInstance.h
diff --git a/Source/core/svg/SVGElementInstance.h b/Source/core/svg/SVGElementInstance.h
index e73f91fdb2ff1788ca2d57ff8fae399edfe55403..7f84692e179e4a106f01e40fdb695d33a6223c95 100644
--- a/Source/core/svg/SVGElementInstance.h
+++ b/Source/core/svg/SVGElementInstance.h
@@ -21,6 +21,7 @@
#ifndef SVGElementInstance_h
#define SVGElementInstance_h
+#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/EventTarget.h"
#include "core/platform/TreeShared.h"
#include "core/svg/SVGElement.h"
@@ -37,7 +38,7 @@ class SVGElementInstanceList;
class SVGStyledElement;
// SVGElementInstance mimics Node, but without providing all its functionality
-class SVGElementInstance : public EventTarget, public TreeShared<SVGElementInstance> {
+class SVGElementInstance : public EventTarget, public ScriptWrappable, public TreeShared<SVGElementInstance> {
public:
static PassRefPtr<SVGElementInstance> create(SVGUseElement* correspondingUseElement, SVGUseElement* directUseElement, PassRefPtr<SVGElement> originalElement)
{
@@ -78,7 +79,7 @@ public:
class InvalidationGuard {
WTF_MAKE_NONCOPYABLE(InvalidationGuard);
- public:
+ public:
InvalidationGuard(SVGElement* element) : m_element(element) { }
~InvalidationGuard() { SVGElementInstance::invalidateAllInstancesOfElement(m_element); }
private:
@@ -94,7 +95,7 @@ public:
private:
SVGStyledElement* m_targetElement;
};
-
+
static void invalidateAllInstancesOfElement(SVGElement*);
using TreeShared<SVGElementInstance>::ref;
@@ -171,7 +172,7 @@ private:
void setLastChild(SVGElementInstance* child) { m_lastChild = child; }
void setNextSibling(SVGElementInstance* sibling) { m_nextSibling = sibling; }
- void setPreviousSibling(SVGElementInstance* sibling) { m_previousSibling = sibling; }
+ void setPreviousSibling(SVGElementInstance* sibling) { m_previousSibling = sibling; }
virtual void refEventTarget() { ref(); }
virtual void derefEventTarget() { deref(); }
« no previous file with comments | « no previous file | Source/core/svg/SVGElementInstance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698