Commit 63e49f58 authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Remove unnecessary attribute synchronization

All attribute accesses here use the underlying object model, so there's
no need to synchronize the attributes.

Bug: 109212
Change-Id: I14448b23fe61eedbf0e8de3479c8b48331830371
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2066750
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@{#743574}
parent 89351e39
...@@ -91,7 +91,6 @@ LayoutObject* SVGLinearGradientElement::CreateLayoutObject(const ComputedStyle&, ...@@ -91,7 +91,6 @@ LayoutObject* SVGLinearGradientElement::CreateLayoutObject(const ComputedStyle&,
static void SetGradientAttributes(const SVGGradientElement& element, static void SetGradientAttributes(const SVGGradientElement& element,
LinearGradientAttributes& attributes, LinearGradientAttributes& attributes,
bool is_linear) { bool is_linear) {
element.SynchronizeAnimatedSVGAttribute(AnyQName());
element.CollectCommonAttributes(attributes); element.CollectCommonAttributes(attributes);
if (!is_linear) if (!is_linear)
......
...@@ -205,8 +205,6 @@ LayoutObject* SVGPatternElement::CreateLayoutObject(const ComputedStyle&, ...@@ -205,8 +205,6 @@ LayoutObject* SVGPatternElement::CreateLayoutObject(const ComputedStyle&,
static void SetPatternAttributes(const SVGPatternElement& element, static void SetPatternAttributes(const SVGPatternElement& element,
PatternAttributes& attributes) { PatternAttributes& attributes) {
element.SynchronizeAnimatedSVGAttribute(AnyQName());
if (!attributes.HasX() && element.x()->IsSpecified()) if (!attributes.HasX() && element.x()->IsSpecified())
attributes.SetX(element.x()->CurrentValue()); attributes.SetX(element.x()->CurrentValue());
......
...@@ -105,7 +105,6 @@ LayoutObject* SVGRadialGradientElement::CreateLayoutObject(const ComputedStyle&, ...@@ -105,7 +105,6 @@ LayoutObject* SVGRadialGradientElement::CreateLayoutObject(const ComputedStyle&,
static void SetGradientAttributes(const SVGGradientElement& element, static void SetGradientAttributes(const SVGGradientElement& element,
RadialGradientAttributes& attributes, RadialGradientAttributes& attributes,
bool is_radial) { bool is_radial) {
element.SynchronizeAnimatedSVGAttribute(AnyQName());
element.CollectCommonAttributes(attributes); element.CollectCommonAttributes(attributes);
if (!is_radial) if (!is_radial)
......
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