[webkit-changes] [WebKit/WebKit] bf43c5: Cherry-pick 263943 at main (902804f38b45). https://bu...
Fujii Hironori
noreply at github.com
Tue May 16 07:37:13 PDT 2023
Branch: refs/heads/webkitglib/2.40
Home: https://github.com/WebKit/WebKit
Commit: bf43c512b6deed784c832a5056591ca9f6bba388
https://github.com/WebKit/WebKit/commit/bf43c512b6deed784c832a5056591ca9f6bba388
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=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
More information about the webkit-changes
mailing list