Bug 240721

Summary: RenderObject::containerForRepaint should be able to tell if a full repaint has already been scheduled.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, fred.wang, glenn, kondapallykalyan, mifenton, pdr, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 240728    
Attachments:
Description Flags
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch none

zalan
Reported 2022-05-20 10:39:07 PDT
so that we don't issue redundant repaints
Attachments
Patch (23.91 KB, patch)
2022-05-20 10:51 PDT, zalan
no flags
Patch (24.90 KB, patch)
2022-05-20 10:52 PDT, zalan
ews-feeder: commit-queue-
Patch (24.76 KB, patch)
2022-05-20 12:52 PDT, zalan
no flags
Patch (24.76 KB, patch)
2022-05-22 15:32 PDT, zalan
no flags
zalan
Comment 1 2022-05-20 10:51:21 PDT
zalan
Comment 2 2022-05-20 10:52:12 PDT
Simon Fraser (smfr)
Comment 3 2022-05-20 11:45:14 PDT
Comment on attachment 459621 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459621&action=review > Source/WebCore/rendering/RenderView.cpp:452 > repaintUsingContainer(repaintContainer, computeRectForRepaint(layoutOverflowRect(), repaintContainer)); Can repaintUsingContainer take a RenderElement& after this change?
zalan
Comment 4 2022-05-20 12:52:41 PDT
zalan
Comment 5 2022-05-20 14:19:03 PDT
(In reply to Simon Fraser (smfr) from comment #3) > Comment on attachment 459621 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=459621&action=review > > > Source/WebCore/rendering/RenderView.cpp:452 > > repaintUsingContainer(repaintContainer, computeRectForRepaint(layoutOverflowRect(), repaintContainer)); > > Can repaintUsingContainer take a RenderElement& after this change? Yeah, I've been considering that change for a while, but I don't think we are there yet. After https://bugs.webkit.org/attachment.cgi?id=459627&action=prettypatch, where both repaint and repaintRectangle start replacing null_ptr repaint container with the view(), I think it should be relatively easy to do.
zalan
Comment 6 2022-05-22 15:32:32 PDT
EWS
Comment 7 2022-05-23 17:01:06 PDT
Committed r294699 (250898@main): <https://commits.webkit.org/250898@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 459651 [details].
Radar WebKit Bug Importer
Comment 8 2022-05-23 17:02:15 PDT
Note You need to log in before you can comment on or make changes to this bug.