Bug 195792

Summary: REGRESSION(cairo-1.17.2) GraphicsContext::clipRoundedRect clips everything
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: don.olmstead
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
repro
none
simple cairo clipping program none

Description Fujii Hironori 2019-03-14 20:40:42 PDT
Created attachment 364766 [details]
repro

[WinCairo] Texts are not drawn in blocks with border-radius and overflow-x:auto

Testing with WinCairo port trunk@242984 WK1 and WK2 BrowerWindow.
It seems that GTK port doesn't have this issue.
Comment 2 Don Olmstead 2019-03-17 20:52:30 PDT
Does it work with the previous cairo?
Comment 3 Fujii Hironori 2019-03-17 21:10:57 PDT
This issue can be fixed by replacing with cairo.dll of WinCairoRequirements v2018.11.27 (Cairo 1.16.0).
Comment 4 Fujii Hironori 2019-03-17 21:13:00 PDT
GraphicsContext::clipRoundedRect doesn't work as expected.
Comment 5 Fujii Hironori 2019-03-18 00:33:22 PDT
Created attachment 365003 [details]
simple cairo clipping program
Comment 6 Fujii Hironori 2019-03-18 01:10:37 PDT Comment hidden (obsolete)
Comment 7 Fujii Hironori 2019-03-18 03:24:29 PDT
I tested the repro with the latest vcpkg.

cairo 1.16.0 + pixman 0.38.0 (x86-windows): OK
cairo 1.17.2 + pixman 0.38.0 (x86-windows): NG
Comment 8 Fujii Hironori 2019-03-18 18:24:12 PDT
I had a mistake in comment#6. I redid the experiment on Linux.
I've confirmed this issue can be reproduced on Linux with cairo-1.17.2.tar.xz.
Comment 9 Fujii Hironori 2019-03-18 18:53:20 PDT
The upstream Cairo master branch has fixed this issue.
This is the commit.
https://gitlab.freedesktop.org/cairo/cairo/commit/2d1a137f3d27b60538c58b25e867288c7b0b61bc
Comment 10 Fujii Hironori 2019-03-28 18:49:15 PDT
https://github.com/WebKitForWindows/WinCairoRequirements/releases/tag/v2019.03.28

> Downgrades cairo to a previous version due to instability of the developer snapshot.

Fixed.