Commit 6bd0742a authored by rob.buis@samsung.com's avatar rob.buis@samsung.com

Remove some SVG API

This code is not in use anymore, mostly because of bindings changes.

Review URL: https://codereview.chromium.org/183973036

git-svn-id: svn://svn.chromium.org/blink/trunk@168594 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b7306708
...@@ -91,8 +91,6 @@ private: ...@@ -91,8 +91,6 @@ private:
FilterMap m_filter; FilterMap m_filter;
HashSet<RenderObject*> m_objects; HashSet<RenderObject*> m_objects;
static bool s_deferredFilterRendering;
}; };
DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter()); DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter());
......
...@@ -396,14 +396,6 @@ void SVGRenderSupport::applyStrokeStyleToStrokeData(StrokeData* strokeData, cons ...@@ -396,14 +396,6 @@ void SVGRenderSupport::applyStrokeStyleToStrokeData(StrokeData* strokeData, cons
strokeData->setLineDash(dashArray, svgStyle->strokeDashOffset()->value(lengthContext)); strokeData->setLineDash(dashArray, svgStyle->strokeDashOffset()->value(lengthContext));
} }
bool SVGRenderSupport::isEmptySVGInlineText(const RenderObject* object)
{
// RenderSVGInlineText performs whitespace filtering in order to support xml:space
// (http://www.w3.org/TR/SVG/struct.html#LangSpaceAttrs), and can end up with an empty string
// even when its original constructor argument is non-empty.
return object->isSVGInlineText() && toRenderSVGInlineText(object)->hasEmptyText();
}
bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object)
{ {
ASSERT(object->isText()); ASSERT(object->isText());
......
...@@ -81,9 +81,6 @@ public: ...@@ -81,9 +81,6 @@ public:
// FIXME: These methods do not belong here. // FIXME: These methods do not belong here.
static const RenderSVGRoot* findTreeRootObject(const RenderObject*); static const RenderSVGRoot* findTreeRootObject(const RenderObject*);
// Helper method for determining whether an RenderSVGInlineText object has zero length text.
static bool isEmptySVGInlineText(const RenderObject*);
// Helper method for determining if a RenderObject marked as text (isText()== true) // Helper method for determining if a RenderObject marked as text (isText()== true)
// can/will be rendered as part of a <text>. // can/will be rendered as part of a <text>.
static bool isRenderableTextNode(const RenderObject*); static bool isRenderableTextNode(const RenderObject*);
......
...@@ -41,11 +41,6 @@ SVGColor::SVGColor(ClassType classType, const SVGColorType& colorType) ...@@ -41,11 +41,6 @@ SVGColor::SVGColor(ClassType classType, const SVGColorType& colorType)
{ {
} }
PassRefPtrWillBeRawPtr<RGBColor> SVGColor::rgbColor() const
{
return RGBColor::create(m_color.rgb());
}
StyleColor SVGColor::colorFromRGBColorString(const String& colorString) StyleColor SVGColor::colorFromRGBColorString(const String& colorString)
{ {
// FIXME: Rework css parser so it is more SVG aware. // FIXME: Rework css parser so it is more SVG aware.
...@@ -56,23 +51,6 @@ StyleColor SVGColor::colorFromRGBColorString(const String& colorString) ...@@ -56,23 +51,6 @@ StyleColor SVGColor::colorFromRGBColorString(const String& colorString)
return StyleColor::currentColor(); return StyleColor::currentColor();
} }
void SVGColor::setRGBColor(const String&, ExceptionState& exceptionState)
{
// The whole SVGColor interface is deprecated in SVG 1.1 (2nd edition).
// The setters are the most problematic part so we remove the support for those first.
exceptionState.throwDOMException(NoModificationAllowedError, ExceptionMessages::readOnly());
}
void SVGColor::setRGBColorICCColor(const String&, const String&, ExceptionState& exceptionState)
{
exceptionState.throwDOMException(NoModificationAllowedError, ExceptionMessages::readOnly());
}
void SVGColor::setColor(unsigned short, const String&, const String&, ExceptionState& exceptionState)
{
exceptionState.throwDOMException(NoModificationAllowedError, ExceptionMessages::readOnly());
}
String SVGColor::customCSSText() const String SVGColor::customCSSText() const
{ {
switch (m_colorType) { switch (m_colorType) {
......
...@@ -64,14 +64,9 @@ public: ...@@ -64,14 +64,9 @@ public:
const Color& color() const { return m_color; } const Color& color() const { return m_color; }
const SVGColorType& colorType() const { return m_colorType; } const SVGColorType& colorType() const { return m_colorType; }
PassRefPtrWillBeRawPtr<RGBColor> rgbColor() const;
static StyleColor colorFromRGBColorString(const String&); static StyleColor colorFromRGBColorString(const String&);
void setRGBColor(const String& rgbColor, ExceptionState&);
void setRGBColorICCColor(const String& rgbColor, const String& iccColor, ExceptionState&);
void setColor(unsigned short colorType, const String& rgbColor, const String& iccColor, ExceptionState&);
String customCSSText() const; String customCSSText() const;
~SVGColor() { } ~SVGColor() { }
......
...@@ -57,17 +57,6 @@ SVGPaint::SVGPaint(const SVGPaintType& paintType, const String& uri) ...@@ -57,17 +57,6 @@ SVGPaint::SVGPaint(const SVGPaintType& paintType, const String& uri)
{ {
} }
void SVGPaint::setUri(const String&)
{
// The whole SVGPaint interface is deprecated in SVG 1.1 (2nd edition).
// The setters are the most problematic part so we remove the support for those first.
}
void SVGPaint::setPaint(unsigned short, const String&, const String&, const String&, ExceptionState& exceptionState)
{
exceptionState.throwDOMException(NoModificationAllowedError, ExceptionMessages::readOnly());
}
String SVGPaint::customCSSText() const String SVGPaint::customCSSText() const
{ {
switch (m_paintType) { switch (m_paintType) {
......
...@@ -95,9 +95,6 @@ public: ...@@ -95,9 +95,6 @@ public:
const SVGPaintType& paintType() const { return m_paintType; } const SVGPaintType& paintType() const { return m_paintType; }
String uri() const { return m_uri; } String uri() const { return m_uri; }
void setUri(const String&);
void setPaint(unsigned short paintType, const String& uri, const String& rgbColor, const String& iccColor, ExceptionState&);
String customCSSText() const; String customCSSText() const;
PassRefPtrWillBeRawPtr<SVGPaint> cloneForCSSOM() const; PassRefPtrWillBeRawPtr<SVGPaint> cloneForCSSOM() const;
......
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