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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.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/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index 41faa2662a826ee248b43067cc8304c4300be1c5..627b727a26b8959f2586f624bd617bce33334ab9 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -34,7 +34,6 @@
#include "core/animation/InterpolationEnvironment.h"
#include "core/animation/InvalidatableInterpolation.h"
#include "core/animation/SVGInterpolationTypesMap.h"
-#include "core/css/CSSCursorImageValue.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/Document.h"
#include "core/dom/ElementTraversal.h"
@@ -44,7 +43,6 @@
#include "core/html/HTMLElement.h"
#include "core/layout/LayoutObject.h"
#include "core/layout/svg/LayoutSVGResourceContainer.h"
-#include "core/svg/SVGCursorElement.h"
#include "core/svg/SVGDocumentExtensions.h"
#include "core/svg/SVGElementRareData.h"
#include "core/svg/SVGGraphicsElement.h"
@@ -642,21 +640,6 @@ const HeapHashSet<WeakMember<SVGElement>>& SVGElement::instancesForElement()
return svgRareData()->elementInstances();
}
-void SVGElement::setCursorElement(SVGCursorElement* cursorElement) {
- SVGElementRareData* rareData = ensureSVGRareData();
- if (SVGCursorElement* oldCursorElement = rareData->cursorElement()) {
- if (cursorElement == oldCursorElement)
- return;
- oldCursorElement->removeReferencedElement(this);
- }
- rareData->setCursorElement(cursorElement);
-}
-
-void SVGElement::setCursorImageValue(
- const CSSCursorImageValue* cursorImageValue) {
- ensureSVGRareData()->setCursorImageValue(cursorImageValue);
-}
-
SVGElement* SVGElement::correspondingElement() const {
ASSERT(!hasSVGRareData() || !svgRareData()->correspondingElement() ||
containingShadowRoot());
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | third_party/WebKit/Source/core/svg/SVGElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698