+27
−9
layout/base/AutoResizeReflowSquasher.cpp
0 → 100644
+60
−0
layout/base/AutoResizeReflowSquasher.h
0 → 100644
+40
−0
+2
−0
Loading
Bug 1645954 - Ensure we update both the content viewer and widget sizes before doing a reflow. r=tnikkel The existing comment in BrowserChild::RecvUpdateDimensions may have been accurate at some point in the past, but I'm seeing cases where setting the content viewer size itself triggers a reflow. Since the widget size hasn't been updated yet, the reflow uses some stale values and produces incorrect outcomes. This patch ensures both the content viewer and widget get their sizes updated first, and only then do we do the reflow. Differential Revision: https://phabricator.services.mozilla.com/D79885