|
@@ -23,9 +23,9 @@ Layout::SVGBox const& SVGPaintable::layout_box() const
|
|
CSSPixelRect SVGPaintable::compute_absolute_rect() const
|
|
CSSPixelRect SVGPaintable::compute_absolute_rect() const
|
|
{
|
|
{
|
|
if (auto* svg_svg_box = layout_box().first_ancestor_of_type<Layout::SVGSVGBox>()) {
|
|
if (auto* svg_svg_box = layout_box().first_ancestor_of_type<Layout::SVGSVGBox>()) {
|
|
- CSSPixelRect rect { effective_offset(), content_size() };
|
|
|
|
|
|
+ CSSPixelRect rect { offset(), content_size() };
|
|
for (Layout::Box const* ancestor = svg_svg_box; ancestor && ancestor->paintable(); ancestor = ancestor->paintable()->containing_block())
|
|
for (Layout::Box const* ancestor = svg_svg_box; ancestor && ancestor->paintable(); ancestor = ancestor->paintable()->containing_block())
|
|
- rect.translate_by(ancestor->paintable_box()->effective_offset());
|
|
|
|
|
|
+ rect.translate_by(ancestor->paintable_box()->offset());
|
|
return rect;
|
|
return rect;
|
|
}
|
|
}
|
|
return PaintableBox::compute_absolute_rect();
|
|
return PaintableBox::compute_absolute_rect();
|