Bug 231955

Summary: Improve intrinsic aspect ratio detection
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bfulgham, rbuis, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=231952

Sergio Villar Senin
Reported 2021-10-19 08:23:15 PDT
The current implementation of RenderObject::hasIntrinsicAspectRatio() performs a very basic test to check whether a renderer has intrinsic aspect ratio. It does not cover however the cases of many SVGs which have intrinsic aspect ratios but no intrinsic dimensions. We should consider make it virtual returning false by default. Then RenderReplaced will overwrite it with the current implementation plus a call to computeIntrinsicRatioInformation() that will tell us for sure whether or not we have an intrinsic aspect ratio.
Attachments
Radar WebKit Bug Importer
Comment 1 2021-10-26 08:24:15 PDT
Note You need to log in before you can comment on or make changes to this bug.