Commit 3975f271 authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Remove SVGElement::IsPresentationAttributeWithSVGDOM

It is no longer used.

Change-Id: Ie73e71cd135f4005b2d66c80fc4fa8d90c349243
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1912200
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714690}
parent a2738e0d
...@@ -728,12 +728,6 @@ bool SVGElement::IsPresentationAttribute(const QualifiedName& name) const { ...@@ -728,12 +728,6 @@ bool SVGElement::IsPresentationAttribute(const QualifiedName& name) const {
return CssPropertyIdForSVGAttributeName(name) > CSSPropertyID::kInvalid; return CssPropertyIdForSVGAttributeName(name) > CSSPropertyID::kInvalid;
} }
bool SVGElement::IsPresentationAttributeWithSVGDOM(
const QualifiedName& name) const {
const SVGAnimatedPropertyBase* property = PropertyFromAttribute(name);
return property && property->HasPresentationAttributeMapping();
}
void SVGElement::CollectStyleForPresentationAttribute( void SVGElement::CollectStyleForPresentationAttribute(
const QualifiedName& name, const QualifiedName& name,
const AtomicString& value, const AtomicString& value,
......
...@@ -211,7 +211,6 @@ class CORE_EXPORT SVGElement : public Element { ...@@ -211,7 +211,6 @@ class CORE_EXPORT SVGElement : public Element {
static const AtomicString& EventParameterName(); static const AtomicString& EventParameterName();
bool IsPresentationAttribute(const QualifiedName&) const override; bool IsPresentationAttribute(const QualifiedName&) const override;
virtual bool IsPresentationAttributeWithSVGDOM(const QualifiedName&) const;
bool HasSVGParent() const; bool HasSVGParent() const;
......
...@@ -202,13 +202,6 @@ bool SVGSVGElement::IsPresentationAttribute(const QualifiedName& name) const { ...@@ -202,13 +202,6 @@ bool SVGSVGElement::IsPresentationAttribute(const QualifiedName& name) const {
return SVGGraphicsElement::IsPresentationAttribute(name); return SVGGraphicsElement::IsPresentationAttribute(name);
} }
bool SVGSVGElement::IsPresentationAttributeWithSVGDOM(
const QualifiedName& attr_name) const {
if (attr_name == svg_names::kWidthAttr || attr_name == svg_names::kHeightAttr)
return false;
return SVGGraphicsElement::IsPresentationAttributeWithSVGDOM(attr_name);
}
void SVGSVGElement::CollectStyleForPresentationAttribute( void SVGSVGElement::CollectStyleForPresentationAttribute(
const QualifiedName& name, const QualifiedName& name,
const AtomicString& value, const AtomicString& value,
......
...@@ -118,7 +118,6 @@ class SVGSVGElement final : public SVGGraphicsElement, ...@@ -118,7 +118,6 @@ class SVGSVGElement final : public SVGGraphicsElement,
void ParseAttribute(const AttributeModificationParams&) override; void ParseAttribute(const AttributeModificationParams&) override;
bool IsPresentationAttribute(const QualifiedName&) const override; bool IsPresentationAttribute(const QualifiedName&) const override;
bool IsPresentationAttributeWithSVGDOM(const QualifiedName&) const override;
void CollectStyleForPresentationAttribute( void CollectStyleForPresentationAttribute(
const QualifiedName&, const QualifiedName&,
const AtomicString&, const AtomicString&,
......
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