[webkit-changes] [WebKit/WebKit] a4bc00: Cherry-pick 263943 at main (902804f38b45). https://bu...

Fujii Hironori noreply at github.com
Tue May 16 05:54:41 PDT 2023


  Branch: refs/heads/webkitglib/2.38
  Home:   https://github.com/WebKit/WebKit
  Commit: a4bc006f5d0a253c553f2702b36e5afffc44363f
      https://github.com/WebKit/WebKit/commit/a4bc006f5d0a253c553f2702b36e5afffc44363f
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  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 at main (902804f38b45). https://bugs.webkit.org/show_bug.cgi?id=256032

    [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




More information about the webkit-changes mailing list