c00cb1d...
by
Bret Sepulveda <email address hidden>
Fix the mobile emulator to use the correct device scale when disabled.
The mobile emulator was triggering a layout before it had reapplied the
original viewport parameters when it was being disabled, which with
use-zoom-for-dsf enabled was causing the wrong viewport size to be given
to various components, like plugins and scrollbars.
2809f5d...
by
Kurt Horimoto <email address hidden>
Defer effects of HandleViewed/HandleClosed until prefs are loaded again.
This CL changes NotificationPromo's HandleViewed/HandleClosed methods to
not update the current instance variables and just save the updated
values to prefs. This is needed because HandleViewed can be called
in the middle of the chain of CanShow calls made during layout of the
NTP, causing some CanShow calls to return true while others to return
false during the same layout. By not saving the updated values to the
current instance variables, the CanShow calls will remain consistent
during the same layout. To facilitate this change, this CL also changes
the return type of HandleViewed to void since the return value is never
used.
[merge to m53] Fix getComputedStyle for non-box-layout elements
This fixes a crash introduced by https://codereview.chromium.org/1826423003/
Code that treated a layout object as a Box layout were not properly
guarded by isBox. This caused a crash when calling getComputedStyle on
positioned non-box elements, e.g. <ruby>.