Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 11766c4dd818baeca3a62b4efd6e814c1bd04f52
      
https://github.com/WebKit/WebKit/commit/11766c4dd818baeca3a62b4efd6e814c1bd04f52
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-06-18 (Thu, 18 Jun 2026)

  Changed paths:
    M Source/WebCore/rendering/svg/RenderSVGContainer.h
    M Source/WebCore/rendering/svg/SVGBoundingBoxComputation.cpp

  Log Message:
  -----------
  [LBSE] Report a viewport-establishing SVG container's viewport as its 
untransformed bounding box
https://bugs.webkit.org/show_bug.cgi?id=317351

Reviewed by Rob Buis.

A viewport-establishing container (inner <svg>, <marker>) must contribute its
viewport rectangle, not its clipped descendant geometry, to an ancestor's
"without transformations" object bounding box.

This is a preparation for conditional SVG layer creation.

* Source/WebCore/rendering/svg/RenderSVGContainer.h:
(WebCore::RenderSVGContainer::overridenObjectBoundingBoxWithoutTransformations 
const):
(WebCore::RenderSVGContainer::updateLayoutSizeIfNeeded):
* Source/WebCore/rendering/svg/SVGBoundingBoxComputation.cpp:
(WebCore::SVGBoundingBoxComputation::computeDecoratedBoundingBox const):

Canonical link: https://commits.webkit.org/315464@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to