Bug 247698

Summary: Simplify paint rect calculations in RenderReplaced::shouldPaint
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-11-09 14:14:01 PST
Hi Team,

I was going through Chromium / Blink commit history and found this simplification and we are still having old code:

Blink Commit - https://src.chromium.org/viewvc/blink?revision=198240&view=revision

It does not have any test case but it is just optimizing code via refactoring.

Webkit GitHub - https://github.com/WebKit/WebKit/blob/097123389da2454304dbbd9e85129eae13ea307c/Source/WebCore/rendering/RenderReplaced.cpp#L324

This is just a bug to merge the change, which will refactor and optimize this codepath.

Thanks!
Comment 1 EWS 2022-11-09 19:51:18 PST
Committed 256521@main (d30c0aeee94b): <https://commits.webkit.org/256521@main>

Reviewed commits have been landed. Closing PR #6318 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2022-11-09 19:52:20 PST
<rdar://problem/102173487>