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

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

Issue 266063002: Store SVGElement instead of SVGElementInstance for instancesForElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix nits Created 6 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 | « Source/core/svg/SVGElementInstance.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElementRareData.h
diff --git a/Source/core/svg/SVGElementRareData.h b/Source/core/svg/SVGElementRareData.h
index 209fa986baa85202fe7aa4a4fd951ae2f39a6c0a..6032de54c832c940f26d2c633c02440eccff9640 100644
--- a/Source/core/svg/SVGElementRareData.h
+++ b/Source/core/svg/SVGElementRareData.h
@@ -31,7 +31,6 @@ namespace WebCore {
class CSSCursorImageValue;
class SVGCursorElement;
class SVGElement;
-class SVGElementInstance;
class SVGElementRareData : public NoBaseWillBeGarbageCollectedFinalized<SVGElementRareData> {
WTF_MAKE_NONCOPYABLE(SVGElementRareData); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
@@ -65,8 +64,8 @@ public:
return rareDataMap().get(element);
}
- HashSet<SVGElementInstance*>& elementInstances() { return m_elementInstances; }
- const HashSet<SVGElementInstance*>& elementInstances() const { return m_elementInstances; }
+ HashSet<SVGElement*>& elementInstances() { return m_elementInstances; }
+ const HashSet<SVGElement*>& elementInstances() const { return m_elementInstances; }
bool instanceUpdatesBlocked() const { return m_instancesUpdatesBlocked; }
void setInstanceUpdatesBlocked(bool value) { m_instancesUpdatesBlocked = value; }
@@ -146,7 +145,7 @@ public:
private:
RawPtrWillBeWeakMember<SVGElement> m_owner;
- HashSet<SVGElementInstance*> m_elementInstances;
+ HashSet<SVGElement*> m_elementInstances;
RawPtrWillBeWeakMember<SVGCursorElement> m_cursorElement;
RawPtrWillBeWeakMember<CSSCursorImageValue> m_cursorImageValue;
SVGElement* m_correspondingElement;
« no previous file with comments | « Source/core/svg/SVGElementInstance.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698