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

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

Issue 2163213007: Deprecate currentView, useCurrentView properties of SVGSVGElement and SVGViewSpec interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/Source/core/svg/SVGViewSpec.h
diff --git a/third_party/WebKit/Source/core/svg/SVGViewSpec.h b/third_party/WebKit/Source/core/svg/SVGViewSpec.h
index 5cace7c4bfd86644105c3aa3e08dbaf04fa20ab2..8627a0d64b54c537d3635cf3405809ed61d0df89 100644
--- a/third_party/WebKit/Source/core/svg/SVGViewSpec.h
+++ b/third_party/WebKit/Source/core/svg/SVGViewSpec.h
@@ -16,20 +16,16 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
-
#ifndef SVGViewSpec_h
#define SVGViewSpec_h
-#include "bindings/core/v8/ScriptWrappable.h"
#include "core/svg/SVGFitToViewBox.h"
#include "core/svg/SVGSVGElement.h"
#include "core/svg/SVGZoomAndPan.h"
-#include "platform/heap/Handle.h"
namespace blink {
-class SVGViewSpec final : public GarbageCollectedFinalized<SVGViewSpec>, public ScriptWrappable, public SVGZoomAndPan, public SVGFitToViewBox {
- DEFINE_WRAPPERTYPEINFO();
+class SVGViewSpec final : public GarbageCollectedFinalized<SVGViewSpec>, public SVGZoomAndPan, public SVGFitToViewBox {
USING_GARBAGE_COLLECTED_MIXIN(SVGViewSpec);
public:
static SVGViewSpec* create(SVGSVGElement* contextElement)
@@ -37,20 +33,8 @@ public:
return new SVGViewSpec(contextElement);
}
- bool parseViewSpec(const String&);
void reset();
- void detachContextElement();
template<typename T> void inheritViewAttributesFromElement(T*);
-
- // JS API
- SVGTransformList* transform() { return m_transform ? m_transform->baseValue() : 0; }
- SVGTransformListTearOff* transformFromJavascript() { return m_transform ? m_transform->baseVal() : 0; }
- SVGElement* viewTarget() const;
- String viewBoxString() const;
- String preserveAspectRatioString() const;
- String transformString() const;
- String viewTargetString() const { return m_viewTargetString; }
- // override SVGZoomAndPan.setZoomAndPan so can throw exception on write
void setZoomAndPan(unsigned short value) { } // read only
void setZoomAndPan(unsigned short value, ExceptionState&);
@@ -58,17 +42,9 @@ public:
DECLARE_VIRTUAL_TRACE_WRAPPERS();
- SVGSVGElement* contextElement() { return m_contextElement.get(); }
-
private:
explicit SVGViewSpec(SVGSVGElement*);
-
- template<typename CharType>
- bool parseViewSpecInternal(const CharType* ptr, const CharType* end);
-
Member<SVGSVGElement> m_contextElement;
- Member<SVGAnimatedTransformList> m_transform;
- String m_viewTargetString;
};
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698