Bug 257358

Summary: REGRESSION (264433@main): Drawing small images becomes slower
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=256620
https://bugs.webkit.org/show_bug.cgi?id=257722
https://bugs.webkit.org/show_bug.cgi?id=258092

Description Said Abou-Hallawa 2023-05-25 15:53:42 PDT
264433@main made RenderBoxModelObject::decodingModeForImageDraw() call RenderElement::imageVisibleInViewport() for all images including the small ones which do not require async image decoding unless the attribute decoding="async" is specified.

This regressed the score of the MotionMark Leaves sub-test by almost 2.5%.
Comment 1 Said Abou-Hallawa 2023-05-25 15:55:00 PDT
rdar://109810640
Comment 2 Said Abou-Hallawa 2023-05-25 17:09:50 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14376
Comment 3 EWS 2023-05-30 09:43:10 PDT
Committed 264679@main (efb71a57dadd): <https://commits.webkit.org/264679@main>

Reviewed commits have been landed. Closing PR #14376 and removing active labels.