mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2316 - Part 3: Clarify comment
This commit is contained in:
parent
1f7d8d3a36
commit
bdff76bad2
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