summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
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;