Bug 1547261 - Fix a typo in GetIntrinsicImageSize(). r=emilio
authorTing-Yu Lin <tlin@mozilla.com>
Sat, 27 Apr 2019 09:07:44 +0000
changeset 530458 429ab41a30c4284e2db090abf28353536b44f862
parent 530457 e3c4d443832518c7fa8e90172f2474c82bca3eff
child 530459 ecc8397871fb7b4e5640f38fa81670f1da352a5a
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1547261
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1547261 - Fix a typo in GetIntrinsicImageSize(). r=emilio Differential Revision: https://phabricator.services.mozilla.com/D29077
layout/generic/nsImageFrame.cpp
--- a/layout/generic/nsImageFrame.cpp
+++ b/layout/generic/nsImageFrame.cpp
@@ -2405,17 +2405,17 @@ nsIFrame::LogicalSides nsImageFrame::Get
   }
   if (nullptr != GetNextInFlow()) {
     skip |= eLogicalSideBitsBEnd;
   }
   return skip;
 }
 
 nsresult nsImageFrame::GetIntrinsicImageSize(nsSize& aSize) {
-  if (mIntrinsicSize.width && mIntrinsicSize.width) {
+  if (mIntrinsicSize.width && mIntrinsicSize.height) {
     aSize.SizeTo(*mIntrinsicSize.width, *mIntrinsicSize.height);
     return NS_OK;
   }
 
   return NS_ERROR_FAILURE;
 }
 
 nsresult nsImageFrame::LoadIcon(const nsAString& aSpec,