diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-08-30 10:22:43 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-08-30 12:36:28 +0000 |
commit | 271a6c3487a14599023a9106329505597638d793 (patch) | |
tree | e040d58ffc86c1480b79ca8528020ca9ec919bf8 /chromium/third_party/blink/renderer/core/svg/svg_gradient_element.cc | |
parent | 7b2ffa587235a47d4094787d72f38102089f402a (diff) | |
download | qtwebengine-chromium-271a6c3487a14599023a9106329505597638d793.tar.gz |
BASELINE: Update Chromium to 77.0.3865.59
Change-Id: I1e89a5f3b009a9519a6705102ad65c92fe736f21
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/svg_gradient_element.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/svg/svg_gradient_element.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/svg_gradient_element.cc b/chromium/third_party/blink/renderer/core/svg/svg_gradient_element.cc index 3b684b46ec8..c05a4394725 100644 --- a/chromium/third_party/blink/renderer/core/svg/svg_gradient_element.cc +++ b/chromium/third_party/blink/renderer/core/svg/svg_gradient_element.cc @@ -81,7 +81,7 @@ void SVGGradientElement::BuildPendingResource() { if (!isConnected()) return; Element* target = ObserveTarget(target_id_observer_, *this); - if (auto* gradient = ToSVGGradientElementOrNull(target)) + if (auto* gradient = DynamicTo<SVGGradientElement>(target)) AddReferenceTo(gradient); InvalidateGradient(layout_invalidation_reason::kSvgResourceInvalidated); @@ -160,7 +160,7 @@ void SVGGradientElement::InvalidateGradient( void SVGGradientElement::InvalidateDependentGradients() { NotifyIncomingReferences([](SVGElement& element) { - if (auto* gradient = ToSVGGradientElementOrNull(element)) { + if (auto* gradient = DynamicTo<SVGGradientElement>(element)) { gradient->InvalidateGradient( layout_invalidation_reason::kSvgResourceInvalidated); } @@ -190,7 +190,7 @@ void SVGGradientElement::CollectCommonAttributes( const SVGGradientElement* SVGGradientElement::ReferencedElement() const { // Respect xlink:href, take attributes from referenced element. - return ToSVGGradientElementOrNull( + return DynamicTo<SVGGradientElement>( TargetElementFromIRIString(HrefString(), GetTreeScope())); } |