Commit a306236a authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

Remove unused Create() from core/svg 2/3

As advised in [1], after porting all uses of Foo::Create() to
MakeGarbageCollected<Foo>() in //third_party/blink/renderer/core/svg,
this CL removes the unused factory methods.

[1] https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/iJ1bawbxbWs/vEdfT5QtBgAJ

Bug: 939691
Change-Id: I5e98359a98907fadb56915c5a23bada3e633fc3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574804
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653585}
parent c48e746a
......@@ -104,10 +104,6 @@ const SVGEnumerationMap& GetEnumerationMap();
template <typename Enum>
class SVGEnumeration : public SVGEnumerationBase {
public:
static SVGEnumeration<Enum>* Create(Enum new_value) {
return MakeGarbageCollected<SVGEnumeration<Enum>>(new_value);
}
explicit SVGEnumeration(Enum new_value)
: SVGEnumerationBase(new_value, GetEnumerationMap<Enum>()) {}
~SVGEnumeration() override = default;
......
......@@ -101,8 +101,6 @@ void SVGFEBlendElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEBlendElement)
bool SVGFEBlendElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -53,7 +53,6 @@ class SVGFEBlendElement final : public SVGFilterPrimitiveStandardAttributes {
explicit SVGFEBlendElement(Document&);
DECLARE_NODE_FACTORY(SVGFEBlendElement);
SVGAnimatedString* in1() { return in1_.Get(); }
SVGAnimatedString* in2() { return in2_.Get(); }
SVGAnimatedEnumeration<Mode>* mode() { return mode_.Get(); }
......
......@@ -62,8 +62,6 @@ void SVGFEColorMatrixElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEColorMatrixElement)
bool SVGFEColorMatrixElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -36,8 +36,6 @@ class SVGFEColorMatrixElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEColorMatrixElement);
explicit SVGFEColorMatrixElement(Document&);
SVGAnimatedNumberList* values() { return values_.Get(); }
......
......@@ -44,8 +44,6 @@ void SVGFEComponentTransferElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEComponentTransferElement)
void SVGFEComponentTransferElement::SvgAttributeChanged(
const QualifiedName& attr_name) {
if (attr_name == svg_names::kInAttr) {
......
......@@ -31,8 +31,6 @@ class SVGFEComponentTransferElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEComponentTransferElement);
explicit SVGFEComponentTransferElement(Document&);
SVGAnimatedString* in1() { return in1_.Get(); }
......
......@@ -85,8 +85,6 @@ void SVGFECompositeElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFECompositeElement)
bool SVGFECompositeElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -36,8 +36,6 @@ class SVGFECompositeElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFECompositeElement);
explicit SVGFECompositeElement(Document&);
SVGAnimatedNumber* k1() { return k1_.Get(); }
......
......@@ -42,10 +42,6 @@ const SVGEnumerationMap& GetEnumerationMap<EdgeModeType>() {
class SVGAnimatedOrder : public SVGAnimatedIntegerOptionalInteger {
public:
static SVGAnimatedOrder* Create(SVGElement* context_element) {
return MakeGarbageCollected<SVGAnimatedOrder>(context_element);
}
SVGAnimatedOrder(SVGElement* context_element)
: SVGAnimatedIntegerOptionalInteger(context_element,
svg_names::kOrderAttr,
......@@ -134,8 +130,6 @@ void SVGFEConvolveMatrixElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEConvolveMatrixElement)
IntSize SVGFEConvolveMatrixElement::MatrixOrder() const {
if (!order_->IsSpecified())
return IntSize(3, 3);
......
......@@ -40,8 +40,6 @@ class SVGFEConvolveMatrixElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEConvolveMatrixElement);
explicit SVGFEConvolveMatrixElement(Document&);
SVGAnimatedBoolean* preserveAlpha() { return preserve_alpha_.Get(); }
......
......@@ -58,8 +58,6 @@ void SVGFEDiffuseLightingElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEDiffuseLightingElement)
bool SVGFEDiffuseLightingElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -34,8 +34,6 @@ class SVGFEDiffuseLightingElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEDiffuseLightingElement);
explicit SVGFEDiffuseLightingElement(Document&);
void LightElementAttributeChanged(const SVGFELightElement*,
......
......@@ -69,8 +69,6 @@ void SVGFEDisplacementMapElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEDisplacementMapElement)
bool SVGFEDisplacementMapElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -35,8 +35,6 @@ class SVGFEDisplacementMapElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEDisplacementMapElement);
explicit SVGFEDisplacementMapElement(Document&);
static ChannelSelectorType StringToChannel(const String&);
......
......@@ -27,8 +27,6 @@ namespace blink {
SVGFEDistantLightElement::SVGFEDistantLightElement(Document& document)
: SVGFELightElement(svg_names::kFEDistantLightTag, document) {}
DEFINE_NODE_FACTORY(SVGFEDistantLightElement)
scoped_refptr<LightSource> SVGFEDistantLightElement::GetLightSource(
Filter* filter) const {
return DistantLightSource::Create(azimuth()->CurrentValue()->Value(),
......
......@@ -28,8 +28,6 @@ class SVGFEDistantLightElement final : public SVGFELightElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEDistantLightElement);
explicit SVGFEDistantLightElement(Document&);
private:
......
......@@ -53,8 +53,6 @@ void SVGFEDropShadowElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEDropShadowElement)
void SVGFEDropShadowElement::setStdDeviation(float x, float y) {
stdDeviationX()->BaseValue()->SetValue(x);
stdDeviationY()->BaseValue()->SetValue(y);
......
......@@ -32,8 +32,6 @@ class SVGFEDropShadowElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEDropShadowElement);
explicit SVGFEDropShadowElement(Document&);
void setStdDeviation(float std_deviation_x, float std_deviation_y);
......
......@@ -32,8 +32,6 @@ namespace blink {
SVGFEFloodElement::SVGFEFloodElement(Document& document)
: SVGFilterPrimitiveStandardAttributes(svg_names::kFEFloodTag, document) {}
DEFINE_NODE_FACTORY(SVGFEFloodElement)
bool SVGFEFloodElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -29,8 +29,6 @@ class SVGFEFloodElement final : public SVGFilterPrimitiveStandardAttributes {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEFloodElement);
explicit SVGFEFloodElement(Document&);
private:
......
......@@ -24,6 +24,4 @@ namespace blink {
SVGFEFuncAElement::SVGFEFuncAElement(Document& document)
: SVGComponentTransferFunctionElement(svg_names::kFEFuncATag, document) {}
DEFINE_NODE_FACTORY(SVGFEFuncAElement)
}
......@@ -29,8 +29,6 @@ class SVGFEFuncAElement final : public SVGComponentTransferFunctionElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEFuncAElement);
explicit SVGFEFuncAElement(Document&);
};
......
......@@ -24,6 +24,4 @@ namespace blink {
SVGFEFuncBElement::SVGFEFuncBElement(Document& document)
: SVGComponentTransferFunctionElement(svg_names::kFEFuncBTag, document) {}
DEFINE_NODE_FACTORY(SVGFEFuncBElement)
}
......@@ -29,8 +29,6 @@ class SVGFEFuncBElement final : public SVGComponentTransferFunctionElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEFuncBElement);
explicit SVGFEFuncBElement(Document&);
};
......
......@@ -24,6 +24,4 @@ namespace blink {
SVGFEFuncGElement::SVGFEFuncGElement(Document& document)
: SVGComponentTransferFunctionElement(svg_names::kFEFuncGTag, document) {}
DEFINE_NODE_FACTORY(SVGFEFuncGElement)
}
......@@ -29,8 +29,6 @@ class SVGFEFuncGElement final : public SVGComponentTransferFunctionElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEFuncGElement);
explicit SVGFEFuncGElement(Document&);
};
......
......@@ -24,6 +24,4 @@ namespace blink {
SVGFEFuncRElement::SVGFEFuncRElement(Document& document)
: SVGComponentTransferFunctionElement(svg_names::kFEFuncRTag, document) {}
DEFINE_NODE_FACTORY(SVGFEFuncRElement)
}
......@@ -29,8 +29,6 @@ class SVGFEFuncRElement final : public SVGComponentTransferFunctionElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEFuncRElement);
explicit SVGFEFuncRElement(Document&);
};
......
......@@ -45,8 +45,6 @@ void SVGFEGaussianBlurElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEGaussianBlurElement)
void SVGFEGaussianBlurElement::setStdDeviation(float x, float y) {
stdDeviationX()->BaseValue()->SetValue(x);
stdDeviationY()->BaseValue()->SetValue(y);
......
......@@ -32,8 +32,6 @@ class SVGFEGaussianBlurElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEGaussianBlurElement);
explicit SVGFEGaussianBlurElement(Document&);
void setStdDeviation(float std_deviation_x, float std_deviation_y);
......
......@@ -45,8 +45,6 @@ SVGFEImageElement::SVGFEImageElement(Document& document)
AddToPropertyMap(preserve_aspect_ratio_);
}
DEFINE_NODE_FACTORY(SVGFEImageElement)
SVGFEImageElement::~SVGFEImageElement() {
ClearImageResource();
}
......
......@@ -38,8 +38,6 @@ class SVGFEImageElement final : public SVGFilterPrimitiveStandardAttributes,
USING_GARBAGE_COLLECTED_MIXIN(SVGFEImageElement);
public:
DECLARE_NODE_FACTORY(SVGFEImageElement);
bool CurrentFrameHasSingleSecurityOrigin() const;
explicit SVGFEImageElement(Document&);
......
......@@ -31,8 +31,6 @@ namespace blink {
SVGFEMergeElement::SVGFEMergeElement(Document& document)
: SVGFilterPrimitiveStandardAttributes(svg_names::kFEMergeTag, document) {}
DEFINE_NODE_FACTORY(SVGFEMergeElement)
FilterEffect* SVGFEMergeElement::Build(SVGFilterBuilder* filter_builder,
Filter* filter) {
FilterEffect* effect = MakeGarbageCollected<FEMerge>(filter);
......
......@@ -29,8 +29,6 @@ class SVGFEMergeElement final : public SVGFilterPrimitiveStandardAttributes {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEMergeElement);
explicit SVGFEMergeElement(Document&);
private:
......
......@@ -36,8 +36,6 @@ void SVGFEMergeNodeElement::Trace(blink::Visitor* visitor) {
SVGElement::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEMergeNodeElement)
void SVGFEMergeNodeElement::SvgAttributeChanged(
const QualifiedName& attr_name) {
if (attr_name == svg_names::kInAttr) {
......
......@@ -31,8 +31,6 @@ class SVGFEMergeNodeElement final : public SVGElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEMergeNodeElement);
explicit SVGFEMergeNodeElement(Document&);
SVGAnimatedString* in1() { return in1_.Get(); }
......
......@@ -61,8 +61,6 @@ void SVGFEMorphologyElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEMorphologyElement)
bool SVGFEMorphologyElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -35,8 +35,6 @@ class SVGFEMorphologyElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEMorphologyElement);
explicit SVGFEMorphologyElement(Document&);
SVGAnimatedNumber* radiusX() { return radius_->FirstNumber(); }
......
......@@ -48,8 +48,6 @@ void SVGFEOffsetElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFEOffsetElement)
void SVGFEOffsetElement::SvgAttributeChanged(const QualifiedName& attr_name) {
if (attr_name == svg_names::kInAttr || attr_name == svg_names::kDxAttr ||
attr_name == svg_names::kDyAttr) {
......
......@@ -31,8 +31,6 @@ class SVGFEOffsetElement final : public SVGFilterPrimitiveStandardAttributes {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEOffsetElement);
explicit SVGFEOffsetElement(Document&);
SVGAnimatedNumber* dx() { return dx_.Get(); }
......
......@@ -28,8 +28,6 @@ namespace blink {
SVGFEPointLightElement::SVGFEPointLightElement(Document& document)
: SVGFELightElement(svg_names::kFEPointLightTag, document) {}
DEFINE_NODE_FACTORY(SVGFEPointLightElement)
scoped_refptr<LightSource> SVGFEPointLightElement::GetLightSource(
Filter* filter) const {
return PointLightSource::Create(filter->Resolve3dPoint(GetPosition()));
......
......@@ -28,8 +28,6 @@ class SVGFEPointLightElement final : public SVGFELightElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFEPointLightElement);
explicit SVGFEPointLightElement(Document&);
private:
......
......@@ -66,8 +66,6 @@ void SVGFESpecularLightingElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFESpecularLightingElement)
bool SVGFESpecularLightingElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -35,8 +35,6 @@ class SVGFESpecularLightingElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFESpecularLightingElement);
explicit SVGFESpecularLightingElement(Document&);
void LightElementAttributeChanged(const SVGFELightElement*,
......
......@@ -28,8 +28,6 @@ namespace blink {
SVGFESpotLightElement::SVGFESpotLightElement(Document& document)
: SVGFELightElement(svg_names::kFESpotLightTag, document) {}
DEFINE_NODE_FACTORY(SVGFESpotLightElement)
scoped_refptr<LightSource> SVGFESpotLightElement::GetLightSource(
Filter* filter) const {
return SpotLightSource::Create(filter->Resolve3dPoint(GetPosition()),
......
......@@ -28,8 +28,6 @@ class SVGFESpotLightElement final : public SVGFELightElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFESpotLightElement);
explicit SVGFESpotLightElement(Document&);
private:
......
......@@ -38,8 +38,6 @@ void SVGFETileElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFETileElement)
void SVGFETileElement::SvgAttributeChanged(const QualifiedName& attr_name) {
if (attr_name == svg_names::kInAttr) {
SVGElement::InvalidationGuard invalidation_guard(this);
......
......@@ -30,8 +30,6 @@ class SVGFETileElement final : public SVGFilterPrimitiveStandardAttributes {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFETileElement);
explicit SVGFETileElement(Document&);
SVGAnimatedString* in1() { return in1_.Get(); }
......
......@@ -84,8 +84,6 @@ void SVGFETurbulenceElement::Trace(blink::Visitor* visitor) {
SVGFilterPrimitiveStandardAttributes::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGFETurbulenceElement)
bool SVGFETurbulenceElement::SetFilterEffectAttribute(
FilterEffect* effect,
const QualifiedName& attr_name) {
......
......@@ -45,8 +45,6 @@ class SVGFETurbulenceElement final
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGFETurbulenceElement);
explicit SVGFETurbulenceElement(Document&);
SVGAnimatedNumber* baseFrequencyX() { return base_frequency_->FirstNumber(); }
......
......@@ -77,8 +77,6 @@ SVGFilterElement::SVGFilterElement(Document& document)
SVGFilterElement::~SVGFilterElement() = default;
DEFINE_NODE_FACTORY(SVGFilterElement)
void SVGFilterElement::Trace(blink::Visitor* visitor) {
visitor->Trace(x_);
visitor->Trace(y_);
......
......@@ -42,7 +42,6 @@ class CORE_EXPORT SVGFilterElement final : public SVGElement,
USING_GARBAGE_COLLECTED_MIXIN(SVGFilterElement);
public:
DECLARE_NODE_FACTORY(SVGFilterElement);
void Trace(blink::Visitor*) override;
explicit SVGFilterElement(Document&);
......
......@@ -32,10 +32,6 @@ namespace blink {
class SVGAnimatedViewBoxRect : public SVGAnimatedRect {
public:
static SVGAnimatedRect* Create(SVGElement* context_element) {
return MakeGarbageCollected<SVGAnimatedViewBoxRect>(context_element);
}
SVGAnimatedViewBoxRect(SVGElement* context_element)
: SVGAnimatedRect(context_element, svg_names::kViewBoxAttr) {}
......
......@@ -71,8 +71,6 @@ void SVGForeignObjectElement::Trace(blink::Visitor* visitor) {
SVGGraphicsElement::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGForeignObjectElement)
void SVGForeignObjectElement::CollectStyleForPresentationAttribute(
const QualifiedName& name,
const AtomicString& value,
......
......@@ -30,8 +30,6 @@ class SVGForeignObjectElement final : public SVGGraphicsElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGForeignObjectElement);
explicit SVGForeignObjectElement(Document&);
SVGAnimatedLength* x() const { return x_.Get(); }
......
......@@ -29,8 +29,6 @@ namespace blink {
SVGGElement::SVGGElement(Document& document, ConstructionType construction_type)
: SVGGraphicsElement(svg_names::kGTag, document, construction_type) {}
DEFINE_NODE_FACTORY(SVGGElement)
LayoutObject* SVGGElement::CreateLayoutObject(const ComputedStyle& style,
LegacyLayout) {
// SVG 1.1 testsuite explicitly uses constructs like
......
......@@ -29,8 +29,6 @@ class CORE_EXPORT SVGGElement final : public SVGGraphicsElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGGElement);
explicit SVGGElement(Document&, ConstructionType = kCreateSVGElement);
protected:
......
......@@ -43,10 +43,6 @@ namespace blink {
class SVGAnimatedPathLength final : public SVGAnimatedNumber {
public:
static SVGAnimatedPathLength* Create(SVGGeometryElement* context_element) {
return MakeGarbageCollected<SVGAnimatedPathLength>(context_element);
}
explicit SVGAnimatedPathLength(SVGGeometryElement* context_element)
: SVGAnimatedNumber(context_element,
svg_names::kPathLengthAttr,
......
......@@ -82,8 +82,6 @@ SVGImageElement::SVGImageElement(Document& document)
}
}
DEFINE_NODE_FACTORY(SVGImageElement)
void SVGImageElement::Trace(blink::Visitor* visitor) {
visitor->Trace(x_);
visitor->Trace(y_);
......
......@@ -41,8 +41,6 @@ class CORE_EXPORT SVGImageElement final
USING_GARBAGE_COLLECTED_MIXIN(SVGImageElement);
public:
DECLARE_NODE_FACTORY(SVGImageElement);
explicit SVGImageElement(Document&);
void Trace(blink::Visitor*) override;
......
......@@ -28,10 +28,6 @@ class SVGImageElement;
class SVGImageLoader final : public ImageLoader {
public:
static SVGImageLoader* Create(SVGImageElement* element) {
return MakeGarbageCollected<SVGImageLoader>(element);
}
explicit SVGImageLoader(SVGImageElement*);
private:
......
......@@ -41,10 +41,6 @@ class SVGInteger final : public SVGPropertyHelper<SVGInteger> {
typedef void TearOffType;
typedef int PrimitiveType;
static SVGInteger* Create(int value = 0) {
return MakeGarbageCollected<SVGInteger>(value);
}
explicit SVGInteger(int = 0);
virtual SVGInteger* Clone() const;
......
......@@ -43,12 +43,6 @@ class SVGIntegerOptionalInteger final : public SVGPropertyBase {
typedef void TearOffType;
typedef void PrimitiveType;
static SVGIntegerOptionalInteger* Create(SVGInteger* first_integer,
SVGInteger* second_integer) {
return MakeGarbageCollected<SVGIntegerOptionalInteger>(first_integer,
second_integer);
}
SVGIntegerOptionalInteger(SVGInteger* first_integer,
SVGInteger* second_integer);
......
......@@ -37,10 +37,6 @@ class SVGLength final : public SVGPropertyBase {
public:
typedef SVGLengthTearOff TearOffType;
static SVGLength* Create(SVGLengthMode mode = SVGLengthMode::kOther) {
return MakeGarbageCollected<SVGLength>(mode);
}
// Initial values for SVGLength properties. If adding a new initial value,
// keep the list sorted within the same unit. The table containing the actual
// values are in the .cc file.
......@@ -55,7 +51,6 @@ class SVGLength final : public SVGPropertyBase {
kNumValues
};
static constexpr int kInitialValueBits = 3;
static SVGLength* Create(Initial, SVGLengthMode);
explicit SVGLength(SVGLengthMode = SVGLengthMode::kOther);
SVGLength(Initial, SVGLengthMode);
......
......@@ -44,10 +44,6 @@ class SVGLengthList final
public:
typedef SVGLengthListTearOff TearOffType;
static SVGLengthList* Create(SVGLengthMode mode = SVGLengthMode::kOther) {
return MakeGarbageCollected<SVGLengthList>(mode);
}
explicit SVGLengthList(SVGLengthMode = SVGLengthMode::kOther);
~SVGLengthList() override;
......
......@@ -41,14 +41,6 @@ class SVGLengthListTearOff final
DEFINE_WRAPPERTYPEINFO();
public:
static SVGLengthListTearOff* Create(
SVGLengthList* target,
SVGAnimatedPropertyBase* binding,
PropertyIsAnimValType property_is_anim_val) {
return MakeGarbageCollected<SVGLengthListTearOff>(target, binding,
property_is_anim_val);
}
SVGLengthListTearOff(SVGLengthList* target,
SVGAnimatedPropertyBase* binding,
PropertyIsAnimValType property_is_anim_val)
......
......@@ -55,12 +55,6 @@ class SVGLengthTearOff final : public SVGPropertyTearOff<SVGLength> {
kSvgLengthtypePc = 10
};
static SVGLengthTearOff* Create(SVGLength* target,
SVGAnimatedPropertyBase* binding,
PropertyIsAnimValType property_is_anim_val) {
return MakeGarbageCollected<SVGLengthTearOff>(target, binding,
property_is_anim_val);
}
static SVGLengthTearOff* CreateDetached();
SVGLengthTearOff(SVGLength*,
......
......@@ -62,8 +62,6 @@ void SVGLineElement::Trace(blink::Visitor* visitor) {
SVGGeometryElement::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGLineElement)
Path SVGLineElement::AsPath() const {
Path path;
......
......@@ -31,8 +31,6 @@ class SVGLineElement final : public SVGGeometryElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGLineElement);
explicit SVGLineElement(Document&);
Path AsPath() const override;
......
......@@ -70,8 +70,6 @@ void SVGLinearGradientElement::Trace(blink::Visitor* visitor) {
SVGGradientElement::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGLinearGradientElement)
void SVGLinearGradientElement::SvgAttributeChanged(
const QualifiedName& attr_name) {
if (attr_name == svg_names::kX1Attr || attr_name == svg_names::kX2Attr ||
......
......@@ -33,8 +33,6 @@ class SVGLinearGradientElement final : public SVGGradientElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGLinearGradientElement);
explicit SVGLinearGradientElement(Document&);
bool CollectGradientAttributes(LinearGradientAttributes&);
......
......@@ -90,8 +90,6 @@ void SVGMarkerElement::Trace(blink::Visitor* visitor) {
SVGFitToViewBox::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGMarkerElement)
AffineTransform SVGMarkerElement::ViewBoxToViewTransform(
float view_width,
float view_height) const {
......
......@@ -56,8 +56,6 @@ class SVGMarkerElement final : public SVGElement, public SVGFitToViewBox {
kSvgMarkerOrientAngle = kSVGMarkerOrientAngle
};
DECLARE_NODE_FACTORY(SVGMarkerElement);
explicit SVGMarkerElement(Document&);
AffineTransform ViewBoxToViewTransform(float view_width,
......
......@@ -89,8 +89,6 @@ void SVGMaskElement::Trace(blink::Visitor* visitor) {
SVGTests::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGMaskElement)
void SVGMaskElement::CollectStyleForPresentationAttribute(
const QualifiedName& name,
const AtomicString& value,
......
......@@ -34,8 +34,6 @@ class SVGMaskElement final : public SVGElement, public SVGTests {
USING_GARBAGE_COLLECTED_MIXIN(SVGMaskElement);
public:
DECLARE_NODE_FACTORY(SVGMaskElement);
explicit SVGMaskElement(Document&);
SVGAnimatedLength* x() const { return x_.Get(); }
......
......@@ -49,14 +49,6 @@ class CORE_EXPORT SVGMatrixTearOff final : public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
static SVGMatrixTearOff* Create(const AffineTransform& value) {
return MakeGarbageCollected<SVGMatrixTearOff>(value);
}
static SVGMatrixTearOff* Create(SVGTransformTearOff* target) {
return MakeGarbageCollected<SVGMatrixTearOff>(target);
}
explicit SVGMatrixTearOff(const AffineTransform&);
explicit SVGMatrixTearOff(SVGTransformTearOff*);
......
......@@ -26,6 +26,4 @@ namespace blink {
SVGMetadataElement::SVGMetadataElement(Document& document)
: SVGElement(svg_names::kMetadataTag, document) {}
DEFINE_NODE_FACTORY(SVGMetadataElement)
}
......@@ -29,8 +29,6 @@ class SVGMetadataElement final : public SVGElement {
DEFINE_WRAPPERTYPEINFO();
public:
DECLARE_NODE_FACTORY(SVGMetadataElement);
explicit SVGMetadataElement(Document&);
private:
......
......@@ -36,8 +36,6 @@ void SVGMPathElement::Trace(blink::Visitor* visitor) {
SVGURIReference::Trace(visitor);
}
DEFINE_NODE_FACTORY(SVGMPathElement)
SVGMPathElement::~SVGMPathElement() = default;
void SVGMPathElement::BuildPendingResource() {
......
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