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

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

Issue 153883003: [SVG] SVGAnimatedTransform{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove m_zoomAndPan Created 6 years, 10 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/SVGTransformTearOff.cpp ('k') | Source/core/svg/SVGViewSpec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGViewSpec.h
diff --git a/Source/core/svg/SVGViewSpec.h b/Source/core/svg/SVGViewSpec.h
index a3e94732b17450f77ea41807f9bd1674135bc153..d71f214680f4c7ada3233dd7e405933608a3975b 100644
--- a/Source/core/svg/SVGViewSpec.h
+++ b/Source/core/svg/SVGViewSpec.h
@@ -23,14 +23,11 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/svg/SVGFitToViewBox.h"
#include "core/svg/SVGSVGElement.h"
-#include "core/svg/SVGTransformList.h"
#include "core/svg/SVGZoomAndPan.h"
#include "wtf/WeakPtr.h"
namespace WebCore {
-class SVGTransformListPropertyTearOff;
-
class SVGViewSpec FINAL : public RefCounted<SVGViewSpec>, public ScriptWrappable, public SVGZoomAndPan, public SVGFitToViewBox {
public:
using RefCounted<SVGViewSpec>::ref;
@@ -49,34 +46,24 @@ public:
String preserveAspectRatioString() const;
- void setTransformString(const String&);
String transformString() const;
-
- void setViewTargetString(const String& string) { m_viewTargetString = string; }
String viewTargetString() const { return m_viewTargetString; }
SVGElement* contextElement() const { return m_contextElement; }
void detachContextElement();
- // Custom non-animated 'transform' property.
- SVGTransformListPropertyTearOff* transform();
- SVGTransformList transformBaseValue() const { return m_transform; }
+ SVGTransformList* transform() { return m_transform ? m_transform->baseValue() : 0; }
+ PassRefPtr<SVGTransformListTearOff> transformFromJavascript() { return m_transform ? m_transform->baseVal() : 0; }
private:
explicit SVGViewSpec(SVGSVGElement*);
- static const SVGPropertyInfo* transformPropertyInfo();
-
- static const AtomicString& transformIdentifier();
-
- static PassRefPtr<SVGAnimatedProperty> lookupOrCreateTransformWrapper(SVGViewSpec* contextElement);
-
template<typename CharType>
bool parseViewSpecInternal(const CharType* ptr, const CharType* end);
// FIXME(oilpan): This is back-ptr to be cleared from contextElement.
SVGSVGElement* m_contextElement;
- SVGTransformList m_transform;
+ RefPtr<SVGAnimatedTransformList> m_transform;
String m_viewTargetString;
};
« no previous file with comments | « Source/core/svg/SVGTransformTearOff.cpp ('k') | Source/core/svg/SVGViewSpec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698