[webkit-changes] [WebKit/WebKit] 1eb3d3: Add a paint behavior to force borders to black

Simon Fraser noreply at github.com
Tue Aug 6 19:35:08 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1eb3d3c62988cec3384f56094157c3f3baa72911
      https://github.com/WebKit/WebKit/commit/1eb3d3c62988cec3384f56094157c3f3baa72911
  Author: Simon Fraser <simon.fraser at 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


More information about the webkit-changes mailing list