NEW 231955
Improve intrinsic aspect ratio detection
https://bugs.webkit.org/show_bug.cgi?id=231955
Summary Improve intrinsic aspect ratio detection
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.