Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 272edbae9c8b2782f15789d69afc369851f1cda1
      
https://github.com/WebKit/WebKit/commit/272edbae9c8b2782f15789d69afc369851f1cda1
  Author: Rob Buis <[email protected]>
  Date:   2026-02-20 (Fri, 20 Feb 2026)

  Changed paths:
    M LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations
    M 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/imported/w3c/web-platform-tests/svg/types/scripted/SVGGraphicsElement.getBBox-01-expected.txt
    M Source/WebCore/rendering/svg/RenderSVGForeignObject.h
    M Source/WebCore/rendering/svg/RenderSVGImage.h
    M Source/WebCore/rendering/svg/SVGBoundingBoxComputation.cpp
    M Source/WebCore/svg/SVGLocatable.cpp

  Log Message:
  -----------
  [LBSE] Fix some getBBox issues
https://bugs.webkit.org/show_bug.cgi?id=308212

Reviewed by Nikolas Zimmermann.

Fix some getBBox issues by checking more carefully whether child bounding boxes
are valid in container bbox calculations. Also add some logic to always make
getBBox return the empty rectangle for hidden containers (defs/symbol etc.).

* LayoutTests/platform/mac-tahoe-wk2-lbse-text/TestExpectations:
* 
LayoutTests/platform/mac-tahoe-wk2-lbse-text/imported/w3c/web-platform-tests/svg/types/scripted/SVGGraphicsElement.getBBox-01-expected.txt:
* Source/WebCore/rendering/svg/RenderSVGForeignObject.h:
* Source/WebCore/rendering/svg/RenderSVGImage.h:
* Source/WebCore/rendering/svg/SVGBoundingBoxComputation.cpp:
(WebCore::SVGBoundingBoxComputation::handleRootOrContainer const):
* Source/WebCore/svg/SVGLocatable.cpp:
(WebCore::SVGLocatable::getBBox):

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



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

Reply via email to