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

Unified Diff: Source/core/svg/SVGGraphicsElement.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/SVGGradientElement.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGGraphicsElement.h
diff --git a/Source/core/svg/SVGGraphicsElement.h b/Source/core/svg/SVGGraphicsElement.h
index 8e1f31182bb96c224d70268fd00c250a1f7cb053..07529c5d1dfa0b39f8f0adcc9ff91e0eada55295 100644
--- a/Source/core/svg/SVGGraphicsElement.h
+++ b/Source/core/svg/SVGGraphicsElement.h
@@ -30,6 +30,7 @@ namespace WebCore {
class AffineTransform;
class Path;
+class SVGMatrixTearOff;
class SVGGraphicsElement : public SVGElement, public SVGTests {
public:
@@ -39,7 +40,11 @@ public:
AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate);
AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate);
- AffineTransform getTransformToElement(SVGElement*, ExceptionState&);
+ PassRefPtr<SVGMatrixTearOff> getCTMFromJavascript();
+ PassRefPtr<SVGMatrixTearOff> getScreenCTMFromJavascript();
+
+ PassRefPtr<SVGMatrixTearOff> getTransformToElement(SVGElement*, ExceptionState&);
+
SVGElement* nearestViewportElement() const;
SVGElement* farthestViewportElement() const;
@@ -56,6 +61,9 @@ public:
virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); }
+ SVGAnimatedTransformList* transform() { return m_transform.get(); }
+ const SVGAnimatedTransformList* transform() const { return m_transform.get(); }
+
protected:
SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElement);
@@ -63,8 +71,8 @@ protected:
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
+ RefPtr<SVGAnimatedTransformList> m_transform;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement)
- DECLARE_ANIMATED_TRANSFORM_LIST(Transform, transform)
END_DECLARE_ANIMATED_PROPERTIES
private:
« no previous file with comments | « Source/core/svg/SVGGradientElement.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698