From 1a6144677a25fb1df4ceba6175e986d14a231652 Mon Sep 17 00:00:00 2001 From: longsonr Date: Thu, 8 Aug 2024 22:43:04 +0000 Subject: [PATCH] Bug 1912334 - Use kFallbackIntrinsicWidthInPixels and kFallbackIntrinsicHeightInPixels r=emilio Differential Revision: https://phabricator.services.mozilla.com/D218864 --- dom/svg/SVGGeometryProperty.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dom/svg/SVGGeometryProperty.h b/dom/svg/SVGGeometryProperty.h index 9349942acb2b..4a2b95d32e97 100644 --- a/dom/svg/SVGGeometryProperty.h +++ b/dom/svg/SVGGeometryProperty.h @@ -50,7 +50,7 @@ struct Width { static AspectRatio AspectRatioRelative(AspectRatio aAspectRatio) { return aAspectRatio.Inverted(); } - constexpr static uint32_t DefaultObjectSize = 300; + constexpr static uint32_t DefaultObjectSize = kFallbackIntrinsicWidthInPixels; using CounterPart = Height; }; struct Height { @@ -61,7 +61,8 @@ struct Height { static AspectRatio AspectRatioRelative(AspectRatio aAspectRatio) { return aAspectRatio; } - constexpr static uint32_t DefaultObjectSize = 150; + constexpr static uint32_t DefaultObjectSize = + kFallbackIntrinsicHeightInPixels; using CounterPart = Width; };