RESOLVED FIXED 241257
TextureMapper: if an element has both a mask image and reflection, the part of the reflection isn't painted
https://bugs.webkit.org/show_bug.cgi?id=241257
Summary TextureMapper: if an element has both a mask image and reflection, the part o...
Fujii Hironori
Reported Friday, June 3, 2022 7:28:01 AM UTC
Created attachment 459998 [details] test case TextureMapper: if a element has both mask image and reflection, the mask image should clip the reflection
Attachments
test case (938 bytes, text/html)
2022-06-02 23:28 PDT, Fujii Hironori
no flags
[screenshot] Safari Technology Preview 145 (95.51 KB, image/png)
2022-06-02 23:35 PDT, Fujii Hironori
no flags
[screenshot] WinCairo (24.07 KB, image/png)
2022-06-02 23:44 PDT, Fujii Hironori
no flags
[screenshot] AppleWin (50.02 KB, image/png)
2022-06-02 23:49 PDT, Fujii Hironori
no flags
WIP patch (6.47 KB, patch)
2022-06-06 17:39 PDT, Fujii Hironori
ews-feeder: commit-queue-
WIP patch (9.52 KB, patch)
2022-06-08 23:42 PDT, Fujii Hironori
no flags
Patch (14.45 KB, patch)
2022-06-09 15:09 PDT, Fujii Hironori
no flags
mask-and-reflection.html (1.09 KB, text/html)
2022-06-09 15:11 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 Friday, June 3, 2022 7:35:57 AM UTC
Created attachment 459999 [details] [screenshot] Safari Technology Preview 145
Fujii Hironori
Comment 2 Friday, June 3, 2022 7:44:57 AM UTC
Created attachment 460000 [details] [screenshot] WinCairo
Fujii Hironori
Comment 3 Friday, June 3, 2022 7:49:32 AM UTC
Created attachment 460001 [details] [screenshot] AppleWin
Fujii Hironori
Comment 4 Friday, June 3, 2022 7:51:19 AM UTC
AppleWin has a bug that it doesn't show the reflection on the first paint. Resizing window paints the reflection.
Fujii Hironori
Comment 5 Friday, June 3, 2022 7:51:25 AM UTC
Google Chrome doesn't paint the reflection in this case.
Fujii Hironori
Comment 6 Tuesday, June 7, 2022 1:39:43 AM UTC
Created attachment 460055 [details] WIP patch
Fujii Hironori
Comment 7 Thursday, June 9, 2022 7:42:33 AM UTC
Created attachment 460116 [details] WIP patch
Fujii Hironori
Comment 8 Thursday, June 9, 2022 11:09:58 PM UTC
Fujii Hironori
Comment 9 Thursday, June 9, 2022 11:11:48 PM UTC
Created attachment 460148 [details] mask-and-reflection.html
Radar WebKit Bug Importer
Comment 10 Friday, June 10, 2022 7:28:12 AM UTC
Don Olmstead
Comment 11 Tuesday, June 14, 2022 3:56:39 AM UTC
Comment on attachment 460146 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=460146&action=review > Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp:452 > + static const size_t OverlapRegionConsolidationThreshold = 4; Where'd this number come from?
Fujii Hironori
Comment 12 Tuesday, June 14, 2022 4:09:12 AM UTC
Comment on attachment 460146 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=460146&action=review Thank you for the review. >> Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp:452 >> + static const size_t OverlapRegionConsolidationThreshold = 4; > > Where'd this number come from? I just copied it from TextureMapperLayer::paintUsingOverlapRegions. It was added by 133852@main.
EWS
Comment 13 Tuesday, June 14, 2022 4:34:18 AM UTC
Committed r295514 (251519@main): <https://commits.webkit.org/251519@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 460146 [details].
Note You need to log in before you can comment on or make changes to this bug.