Bug 1603995 - Remove dead assignments from nsFrame::BoxReflow. r=dbaron
authorAlex Henrie <alexhenrie24@gmail.com>
Sun, 15 Dec 2019 06:23:01 +0000
changeset 507036 9b7cd94eaf0a2385f53791c982e2210bd6b96818
parent 507035 a39d3ce80dff1f5993a4ce9de64ee02b4a49b16b
child 507037 273abf200022ad239b277942149e6268c4fec8b2
push id103226
push userdbaron@mozilla.com
push dateSun, 15 Dec 2019 06:28:49 +0000
treeherderautoland@9b7cd94eaf0a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1603995
milestone73.0a1
first release with
nightly linux32
9b7cd94eaf0a / 73.0a1 / 20191215094838 / files
nightly linux64
9b7cd94eaf0a / 73.0a1 / 20191215094838 / files
nightly mac
9b7cd94eaf0a / 73.0a1 / 20191215094838 / files
nightly win32
9b7cd94eaf0a / 73.0a1 / 20191215094838 / files
nightly win64
9b7cd94eaf0a / 73.0a1 / 20191215094838 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1603995 - Remove dead assignments from nsFrame::BoxReflow. r=dbaron Differential Revision: https://phabricator.services.mozilla.com/D57233
layout/generic/nsFrame.cpp
--- a/layout/generic/nsFrame.cpp
+++ b/layout/generic/nsFrame.cpp
@@ -10646,20 +10646,16 @@ void nsFrame::BoxReflow(nsBoxLayoutState
     printf("*****got taller!*****\n");
   }
   if (aWidth != NS_UNCONSTRAINEDSIZE && aDesiredSize.Width() != aWidth) {
     nsAdaptorAddIndents();
     printf("*****got wider!******\n");
   }
 #endif
 
-  if (aWidth == NS_UNCONSTRAINEDSIZE) aWidth = aDesiredSize.Width();
-
-  if (aHeight == NS_UNCONSTRAINEDSIZE) aHeight = aDesiredSize.Height();
-
   metrics->mLastSize.width = aDesiredSize.Width();
   metrics->mLastSize.height = aDesiredSize.Height();
 
 #ifdef DEBUG_REFLOW
   gIndent2--;
 #endif
 }