Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 332a2ebc09befa7b7f2c31c159b86a734616d894
      
https://github.com/WebKit/WebKit/commit/332a2ebc09befa7b7f2c31c159b86a734616d894
  Author: Simon Fraser <simon.fra...@apple.com>
  Date:   2025-03-01 (Sat, 01 Mar 2025)

  Changed paths:
    M Source/WebCore/rendering/BorderPainter.cpp
    M Source/WebCore/rendering/BorderPainter.h
    M Source/WebCore/rendering/BorderShape.h

  Log Message:
  -----------
  Adopt BorderShape for rendering ridge and groove borders
https://bugs.webkit.org/show_bug.cgi?id=288884
rdar://145888540

Reviewed by Alan Baradlay.

Change `BorderPainter::drawBoxSideFromPath()` to use BorderShape for computing 
the inner- and
outer-third edges that we need for double border rendering, and the mid-border 
edge we use for
ridge and groove.

This ensures that future non-rounded borders get the correct rendering.

* Source/WebCore/rendering/BorderPainter.cpp:
(WebCore::BorderPainter::paintBorderSides const):
(WebCore::BorderPainter::paintOneBorderSide const):
(WebCore::BorderPainter::drawBoxSideFromPath const):
(WebCore::borderWillArcInnerEdge): Deleted.
* Source/WebCore/rendering/BorderPainter.h:
* Source/WebCore/rendering/BorderShape.h:
(WebCore::BorderShape::innerEdgeRadii const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to