Bug 250884

Summary: Potential Reduce calls to LayoutUnit(int)
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: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2023-01-19 18:02:34 PST
Hi Team,

While going through Blink's commit, I came across another potential performance optimization in reducing CPU load but it does not have test case to confirm so would like to get input.

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/e3d125383e6023dccb9f052237751f1c9a8098ec

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderBox.h#382 & https://searchfox.org/wubkat/source/Source/WebCore/platform/graphics/LayoutSize.h#67

Just wanted to raise it to get input.

Thanks!
Comment 2 zalan 2023-01-19 19:01:08 PST
yeah, we should do this regardless of any potential perf improvement (but it's a nice addition)
Comment 3 EWS 2023-01-21 15:42:39 PST
Committed 259177@main (42948cd0674a): <https://commits.webkit.org/259177@main>

Reviewed commits have been landed. Closing PR #8872 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2023-01-21 15:43:18 PST
<rdar://problem/104516718>