Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b1557d139977f0d8cd2885cbf9d828ac6639078f
      
https://github.com/WebKit/WebKit/commit/b1557d139977f0d8cd2885cbf9d828ac6639078f
  Author: Sam Weinig <[email protected]>
  Date:   2025-12-25 (Thu, 25 Dec 2025)

  Changed paths:
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    A Source/WebCore/platform/graphics/FloatPointGraph.cpp
    A Source/WebCore/platform/graphics/FloatPointGraph.h
    M Source/WebCore/platform/graphics/PathUtilities.cpp
    M Source/WebCore/platform/graphics/PathUtilities.h
    M Source/WebCore/rendering/OutlinePainter.cpp
    M Source/WebCore/rendering/OutlinePainter.h

  Log Message:
  -----------
  Fix layering violation in WebCore's PathUtilities.h
https://bugs.webkit.org/show_bug.cgi?id=304678

Reviewed by Alan Baradlay.

Fixes layering violation in WebCore's PathUtilities.h by moving
PathUtilities::pathWithShrinkWrappedRectsForOutline(...) to live
on OutlinePainter.

The issue was that `pathWithShrinkWrappedRectsForOutline` used
non-platform layer types `Style::BorderRadius` and `WritingMode`,
so, the function needed to live above the platform layer.

To make this possible, the `FloatPointGraph` that used to live
in PathUtilities.cpp was moved into its own files, along with
the `polygonsForRect` utility function.

* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/platform/graphics/FloatPointGraph.cpp: Added.
* Source/WebCore/platform/graphics/FloatPointGraph.h: Added.
* Source/WebCore/platform/graphics/PathUtilities.cpp:
* Source/WebCore/platform/graphics/PathUtilities.h:
* Source/WebCore/rendering/OutlinePainter.cpp:
* Source/WebCore/rendering/OutlinePainter.h:

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



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

Reply via email to