Commit 98a22a9e authored by rwlbuis's avatar rwlbuis

Reviewed by Sam.

        http://bugs.webkit.org/show_bug.cgi?id=12196
        SVGPatternElement should not be locatable

        Replace SVGStyledLocatableElement derivation with
        SVGStyledElement.



git-svn-id: svn://svn.chromium.org/blink/trunk@18739 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 782ce6dd
2007-01-10 Rob Buis <buis@kde.org>
Reviewed by Sam.
http://bugs.webkit.org/show_bug.cgi?id=12196
SVGPatternElement should not be locatable
Replace SVGStyledLocatableElement derivation with
SVGStyledElement.
* ksvg2/svg/SVGPatternElement.cpp:
(WebCore::SVGPatternElement::SVGPatternElement):
* ksvg2/svg/SVGPatternElement.h:
2007-01-10 Nikolas Zimmermann <zimmermann@kde.org> 2007-01-10 Nikolas Zimmermann <zimmermann@kde.org>
Build fix, not reviewed. Build fix, not reviewed.
......
/* /*
Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
2004, 2005, 2006 Rob Buis <buis@kde.org> 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
This file is part of the KDE project This file is part of the KDE project
...@@ -48,7 +48,7 @@ using namespace std; ...@@ -48,7 +48,7 @@ using namespace std;
namespace WebCore { namespace WebCore {
SVGPatternElement::SVGPatternElement(const QualifiedName& tagName, Document* doc) SVGPatternElement::SVGPatternElement(const QualifiedName& tagName, Document* doc)
: SVGStyledLocatableElement(tagName, doc) : SVGStyledElement(tagName, doc)
, SVGURIReference() , SVGURIReference()
, SVGTests() , SVGTests()
, SVGLangSpace() , SVGLangSpace()
...@@ -219,14 +219,6 @@ void SVGPatternElement::insertedIntoDocument() ...@@ -219,14 +219,6 @@ void SVGPatternElement::insertedIntoDocument()
SVGResource::repaintClients(extensions->removePendingResource(resourceId)); SVGResource::repaintClients(extensions->removePendingResource(resourceId));
} }
AffineTransform SVGPatternElement::getCTM() const
{
AffineTransform mat;
AffineTransform viewBox = viewBoxToViewTransform(width().value(), height().value());
mat *= viewBox;
return mat;
}
PatternAttributes SVGPatternElement::collectPatternProperties() const PatternAttributes SVGPatternElement::collectPatternProperties() const
{ {
PatternAttributes attributes; PatternAttributes attributes;
......
/* /*
Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
2004, 2005, 2006 Rob Buis <buis@kde.org> 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
This file is part of the KDE project This file is part of the KDE project
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "SVGExternalResourcesRequired.h" #include "SVGExternalResourcesRequired.h"
#include "SVGFitToViewBox.h" #include "SVGFitToViewBox.h"
#include "SVGLangSpace.h" #include "SVGLangSpace.h"
#include "SVGStyledLocatableElement.h" #include "SVGStyledElement.h"
#include "SVGTests.h" #include "SVGTests.h"
#include "SVGURIReference.h" #include "SVGURIReference.h"
...@@ -42,7 +42,7 @@ namespace WebCore ...@@ -42,7 +42,7 @@ namespace WebCore
class SVGPatternElement; class SVGPatternElement;
class SVGTransformList; class SVGTransformList;
class SVGPatternElement : public SVGStyledLocatableElement, class SVGPatternElement : public SVGStyledElement,
public SVGURIReference, public SVGURIReference,
public SVGTests, public SVGTests,
public SVGLangSpace, public SVGLangSpace,
...@@ -66,9 +66,6 @@ namespace WebCore ...@@ -66,9 +66,6 @@ namespace WebCore
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
virtual SVGResource* canvasResource(); virtual SVGResource* canvasResource();
// 'virtual SVGLocatable' functions
virtual AffineTransform getCTM() const;
virtual void insertedIntoDocument(); virtual void insertedIntoDocument();
protected: protected:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment