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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElementRareData.cpp

Issue 2522443002: Remove SVGCursorElement (Closed)
Patch Set: Rebase Created 4 years 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/svg/SVGElementRareData.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp b/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
index 5f14b8057441bc4f589b59f368d2b942fda03997..0b06a729d24c287698a45b920295c5ba7d0884d4 100644
--- a/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElementRareData.cpp
@@ -4,10 +4,8 @@
#include "core/svg/SVGElementRareData.h"
-#include "core/css/CSSCursorImageValue.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/Document.h"
-#include "core/svg/SVGCursorElement.h"
#include "core/svg/SVGElementProxy.h"
namespace blink {
@@ -48,27 +46,6 @@ DEFINE_TRACE(SVGElementRareData) {
visitor->trace(m_elementInstances);
visitor->trace(m_correspondingElement);
visitor->trace(m_owner);
- visitor->template registerWeakMembers<
- SVGElementRareData, &SVGElementRareData::processWeakMembers>(this);
-}
-
-void SVGElementRareData::processWeakMembers(Visitor* visitor) {
- ASSERT(m_owner);
- if (!ThreadHeap::isHeapObjectAlive(m_cursorElement))
- m_cursorElement = nullptr;
-
- if (!ThreadHeap::isHeapObjectAlive(m_cursorImageValue)) {
- // The owning SVGElement is still alive and if it is pointing to an
- // SVGCursorElement we unregister it when the CSSCursorImageValue dies.
- if (m_cursorElement) {
- m_cursorElement->removeReferencedElement(m_owner);
- m_cursorElement = nullptr;
- }
- m_cursorImageValue = nullptr;
- }
- ASSERT(!m_cursorElement || ThreadHeap::isHeapObjectAlive(m_cursorElement));
- ASSERT(!m_cursorImageValue ||
- ThreadHeap::isHeapObjectAlive(m_cursorImageValue));
}
AffineTransform* SVGElementRareData::animateMotionTransform() {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElementRareData.h ('k') | third_party/WebKit/Source/core/svg/SVGTagNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698