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

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

Issue 18053005: Introduce SVGGraphicsElement IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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: Source/core/svg/SVGGraphicsElement.h
diff --git a/Source/core/svg/SVGStyledTransformableElement.h b/Source/core/svg/SVGGraphicsElement.h
similarity index 77%
rename from Source/core/svg/SVGStyledTransformableElement.h
rename to Source/core/svg/SVGGraphicsElement.h
index d5a56706b5dcde6dc4b1ed27327f7084a384ce93..5b92cf471a5edd10821051e8bbb62eb41eae5345 100644
--- a/Source/core/svg/SVGStyledTransformableElement.h
+++ b/Source/core/svg/SVGGraphicsElement.h
@@ -18,11 +18,12 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGStyledTransformableElement_h
-#define SVGStyledTransformableElement_h
+#ifndef SVGGraphicsElement_h
+#define SVGGraphicsElement_h
#include "core/svg/SVGAnimatedTransformList.h"
#include "core/svg/SVGStyledLocatableElement.h"
+#include "core/svg/SVGTests.h"
#include "core/svg/SVGTransformable.h"
namespace WebCore {
@@ -30,10 +31,9 @@ namespace WebCore {
class AffineTransform;
class Path;
-class SVGStyledTransformableElement : public SVGStyledLocatableElement,
- public SVGTransformable {
+class SVGGraphicsElement : public SVGStyledLocatableElement, public SVGTransformable, public SVGTests {
Stephen Chennney 2013/06/27 16:18:49 You're planning to get rid of the StyledLocatableE
public:
- virtual ~SVGStyledTransformableElement();
+ virtual ~SVGGraphicsElement();
virtual AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate);
virtual AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate);
@@ -51,30 +51,30 @@ public:
virtual RenderObject* createRenderer(RenderStyle*);
protected:
- SVGStyledTransformableElement(const QualifiedName&, Document*, ConstructionType = CreateSVGElement);
+ SVGGraphicsElement(const QualifiedName&, Document*, ConstructionType = CreateSVGElement);
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&);
- BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGStyledTransformableElement)
+ BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement)
DECLARE_ANIMATED_TRANSFORM_LIST(Transform, transform)
END_DECLARE_ANIMATED_PROPERTIES
private:
- virtual bool isStyledTransformable() const OVERRIDE { return true; }
+ virtual bool isSVGGraphicsElement() const OVERRIDE { return true; }
// Used by <animateMotion>
OwnPtr<AffineTransform> m_supplementalTransform;
};
-inline SVGStyledTransformableElement* toSVGStyledTransformableElement(Node* node)
+inline SVGGraphicsElement* toSVGGraphicsElement(Node* node)
{
ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement());
- ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isStyledTransformable());
- return static_cast<SVGStyledTransformableElement*>(node);
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsElement());
+ return static_cast<SVGGraphicsElement*>(node);
}
} // namespace WebCore
-#endif // SVGStyledTransformableElement_h
+#endif // SVGGraphicsElement_h

Powered by Google App Engine
This is Rietveld 408576698