[webkit-changes] [WebKit/WebKit] eb04a8: Render double borders via BorderShape

Simon Fraser noreply at github.com
Mon Feb 24 19:50:58 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: eb04a8c40d7f3ea54e4699962e3484991e1ca10d
      https://github.com/WebKit/WebKit/commit/eb04a8c40d7f3ea54e4699962e3484991e1ca10d
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

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

  Log Message:
  -----------
  Render double borders via BorderShape
https://bugs.webkit.org/show_bug.cgi?id=288392
rdar://145500006

Reviewed by Alan Baradlay.

There's a fast-path function for rendering uniform-color double borders, but
it wasn't used for rounded double borders. Fix that in order to hit this code
path for future corner-shapes.

Add BorderShape::shapeWithBorderWidths() so that we can make a copy of an existing
BorderShapes with custom border widths, and use it to create the paths we need for
clipping to the outer- and inner-third parts of the double border.

* Source/WebCore/rendering/BorderPainter.cpp:
(WebCore::BorderPainter::paintSides const):
* Source/WebCore/rendering/BorderShape.cpp:
(WebCore::BorderShape::shapeWithBorderWidths const):
* Source/WebCore/rendering/BorderShape.h:

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



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


More information about the webkit-changes mailing list