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

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

Issue 2485113002: Remove currentView, useCurrentView properties of SVGSVGElement and SVGViewSpec interface (Closed)
Patch Set: Created 4 years, 1 month 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/SVGViewSpec.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGViewSpec.cpp b/third_party/WebKit/Source/core/svg/SVGViewSpec.cpp
index 6e3d0d487ed0a9780805909fd67de1f8d7e30ba4..9dfef6e1f14167a9450a47f17620caef7629416a 100644
--- a/third_party/WebKit/Source/core/svg/SVGViewSpec.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGViewSpec.cpp
@@ -85,44 +85,6 @@ void SVGViewSpec::reset() {
m_viewTargetString = emptyString();
}
-void SVGViewSpec::detachContextElement() {
- m_transform = nullptr;
- clearViewBox();
- clearPreserveAspectRatio();
- m_contextElement = nullptr;
-}
-
-SVGElement* SVGViewSpec::viewTarget() const {
- if (!m_contextElement)
- return nullptr;
- Element* element = m_contextElement->treeScope().getElementById(
- AtomicString(m_viewTargetString));
- if (!element || !element->isSVGElement())
- return nullptr;
- return toSVGElement(element);
-}
-
-String SVGViewSpec::viewBoxString() const {
- if (!viewBox())
- return String();
-
- return viewBox()->currentValue()->valueAsString();
-}
-
-String SVGViewSpec::preserveAspectRatioString() const {
- if (!preserveAspectRatio())
- return String();
-
- return preserveAspectRatio()->baseValue()->valueAsString();
-}
-
-String SVGViewSpec::transformString() const {
- if (!m_transform)
- return String();
-
- return m_transform->baseValue()->valueAsString();
-}
-
void SVGViewSpec::setZoomAndPan(unsigned short,
ExceptionState& exceptionState) {
// SVGViewSpec and all of its content is read-only.

Powered by Google App Engine
This is Rietveld 408576698