Branch: refs/heads/webkitglib/2.40
  Home:   https://github.com/WebKit/WebKit
  Commit: bf43c512b6deed784c832a5056591ca9f6bba388
      
https://github.com/WebKit/WebKit/commit/bf43c512b6deed784c832a5056591ca9f6bba388
  Author: Fujii Hironori <[email protected]>
  Date:   2023-05-16 (Tue, 16 May 2023)

  Changed paths:
    M LayoutTests/platform/glib/TestExpectations
    M Source/WebCore/platform/graphics/cairo/CairoOperations.cpp

  Log Message:
  -----------
  Cherry-pick 263943@main (902804f38b45). 
https://bugs.webkit.org/show_bug.cgi?id=228920

    [cairo] Clamp the clip rect expanded to the infinity
    https://bugs.webkit.org/show_bug.cgi?id=228920

    Reviewed by Simon Fraser.

    If overflow-x is clip, RenderBox::overflowClipRect expands the clip
    rect in Y axis by using LayoutRect::expandToInfiniteY. Same for
    overflow-y. It uses values of LayoutUnit::nearlyMax. LayoutUnit is
    using 26.6 fixed point numbers while cairo is internally using 24.8
    fixed point. Such clip rects were causing overflow.

    * LayoutTests/platform/glib/TestExpectations:
    * Source/WebCore/platform/graphics/cairo/CairoOperations.cpp:
    (WebCore::Cairo::clampClipRect): Added.
    (WebCore::Cairo::clip): Clamp the passed clip rect.

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to