Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: eb04a8c40d7f3ea54e4699962e3484991e1ca10d
https://github.com/WebKit/WebKit/commit/eb04a8c40d7f3ea54e4699962e3484991e1ca10d
Author: Simon Fraser <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes