[webkit-changes] [WebKit/WebKit] b2f962: Fix break with LAYER_BASED_SVG_ENGINE disabled aft...

ykimot noreply at github.com
Thu Oct 19 02:56:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b2f96217de848269bb771621e1c49a3323e65974
      https://github.com/WebKit/WebKit/commit/b2f96217de848269bb771621e1c49a3323e65974
  Author: Yousuke Kimoto <yousuke.kimoto at sony.com>
  Date:   2023-10-19 (Thu, 19 Oct 2023)

  Changed paths:
    M Source/WebCore/rendering/svg/SVGRenderSupport.cpp

  Log Message:
  -----------
  Fix break with LAYER_BASED_SVG_ENGINE disabled after 269492 at main
https://bugs.webkit.org/show_bug.cgi?id=263362

Reviewed by Ross Kirsling.

When LAYER_BASED_SVG_ENGINE is disabled, RenderSVGShape is used in
SVGRenderSupport::calculateApproximateStrokeBoundingBox() and the class
is defined with LAYER_BASED_SVG_ENGINE enabled. Also an inline error
occurs in SVGRenderSupport.cpp.

To fix the build break, it needs to add a conditional code for
LAYER_BASED_SVG_ENGINE and add include a header file to refer RenderSVGShape.

* Source/WebCore/rendering/svg/SVGRenderSupport.cpp: Add include LegacyRenderSVGShapeInlines.h
(WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox): Add a condtional macro for LAYER_BASED_SVG_ENGINE

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




More information about the webkit-changes mailing list