summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-09-26 15:21:34 +0200
committerMoonchild <moonchild@palemoon.org>2023-09-26 15:21:34 +0200
commitfcb74a0fb6466b611e2ec00b5f225dbdf9673c98 (patch)
treede0c658f06e5b82196cf0d42d2c9fe201d8d87e2 /layout
parentbfda40bce9d8aeed5bea22ceb4d9ddae3a51a57c (diff)
downloaduxp-fcb74a0fb6466b611e2ec00b5f225dbdf9673c98.tar.gz
Issue #2316 - Part 3: Clarify comment
Diffstat (limited to 'layout')
-rw-r--r--layout/base/nsLayoutUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp
index 4d4b4eab62..b770e69fcb 100644
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -7164,9 +7164,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;