Commit 41c167cb authored by Fredrik Söderqvist's avatar Fredrik Söderqvist Committed by Commit Bot

Remove redundant IsSVGForeignObject() call

The DynamicTo<LayoutSVGForeignObject>(...) is sufficient.

Change-Id: If73029df141d61efab8271e6d980e12dc954a858
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2109772
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751731}
parent c4700d89
...@@ -83,8 +83,7 @@ void SVGContainerPainter::Paint(const PaintInfo& paint_info) { ...@@ -83,8 +83,7 @@ void SVGContainerPainter::Paint(const PaintInfo& paint_info) {
if (continue_rendering) { if (continue_rendering) {
for (LayoutObject* child = layout_svg_container_.FirstChild(); child; for (LayoutObject* child = layout_svg_container_.FirstChild(); child;
child = child->NextSibling()) { child = child->NextSibling()) {
auto* foreign_object = DynamicTo<LayoutSVGForeignObject>(*child); if (auto* foreign_object = DynamicTo<LayoutSVGForeignObject>(*child)) {
if (child->IsSVGForeignObject()) {
SVGForeignObjectPainter(*foreign_object) SVGForeignObjectPainter(*foreign_object)
.PaintLayer(paint_state.GetPaintInfo()); .PaintLayer(paint_state.GetPaintInfo());
} else { } else {
......
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