Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1eb3d3c62988cec3384f56094157c3f3baa72911
      
https://github.com/WebKit/WebKit/commit/1eb3d3c62988cec3384f56094157c3f3baa72911
  Author: Simon Fraser <simon.fra...@apple.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

  Changed paths:
    M Source/WebCore/rendering/BorderEdge.cpp
    M Source/WebCore/rendering/BorderEdge.h
    M Source/WebCore/rendering/BorderPainter.cpp
    M Source/WebCore/rendering/PaintPhase.h
    M Source/WebCore/rendering/RenderLayer.cpp

  Log Message:
  -----------
  Add a paint behavior to force borders to black
https://bugs.webkit.org/show_bug.cgi?id=277712
rdar://133328369

Reviewed by Darin Adler.

For `background-clip: border-area`, we'll need to sometimes paint a mask for 
the border clip.
To do this, we need to force the border colors to black when painting into the 
mask, so add a
paint behavior for this, much like the existing `ForceBlackText`.

The new behavior is not yet used.

* Source/WebCore/rendering/BorderEdge.cpp:
(WebCore::borderEdges):
* Source/WebCore/rendering/BorderEdge.h:
* Source/WebCore/rendering/BorderPainter.cpp:
(WebCore::BorderPainter::paintBorder):
* Source/WebCore/rendering/PaintPhase.h:
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::calculateClipRects const):

Canonical link: https://commits.webkit.org/281927@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