mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
a91c1b01cc
1 changed files with 2 additions and 2 deletions
|
|
@ -7172,9 +7172,9 @@ nsLayoutUtils::SurfaceFromElement(nsIImageLoadingContent* aElement,
|
|||
imgWidth = element->Width();
|
||||
imgHeight = element->Height();
|
||||
} else {
|
||||
// No size declared by SVG, so use the image container size.
|
||||
// No size declared by the image element, so use the image size.
|
||||
// As stated in css-sizing-3 Intrinsic Sizes, use the fallback size
|
||||
// of 300 x 150 for the width and height as-needed.
|
||||
// of 300 x 150 for unspecified width and height as-needed.
|
||||
rv = imgContainer->GetWidth(&imgWidth);
|
||||
if (NS_FAILED(rv)) {
|
||||
imgWidth = REPLACED_ELEM_FALLBACK_PX_WIDTH;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue