Bug 1490685 - Adjust an assertion. r=dholbert
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 12 Sep 2018 17:25:15 +0200
changeset 436066 643ffcb9063dfb9395c76d81665ed4cd03c0dff3
parent 436065 f105be1abab0e32cb0344d28d364430b20e96f1c
child 436067 588fe70e5905480ebc60225b4b093ff276df72d2
push id34625
push userdvarga@mozilla.com
push dateThu, 13 Sep 2018 02:31:40 +0000
treeherdermozilla-central@51e9e9660b3e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1490685
milestone64.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 1490685 - Adjust an assertion. r=dholbert Differential Revision: https://phabricator.services.mozilla.com/D5676
layout/generic/nsImageFrame.cpp
--- a/layout/generic/nsImageFrame.cpp
+++ b/layout/generic/nsImageFrame.cpp
@@ -403,17 +403,17 @@ ScaleIntrinsicSizeForDensity(nsIContent&
   }
 
   ResponsiveImageSelector* selector = image->GetResponsiveImageSelector();
   if (!selector) {
     return;
   }
 
   double density = selector->GetSelectedImageDensity();
-  MOZ_ASSERT(density > 0.0);
+  MOZ_ASSERT(density >= 0.0);
   if (density == 1.0) {
     return;
   }
 
   if (aSize.width != -1) {
     aSize.width = NSToCoordRound(double(aSize.width) / density);
   }
   if (aSize.height != -1) {