Fixes promos remaining hidden
crrev.com/c/2505739 makes the promos hidden by default until it is decided whether the promo can be shown or not. Promos now remain hidden until the promo loaded event or a window resize event is fired where visibility of the promo is recalculated externally based on whether or not it overlaps with the most-visited tiles. This change coordinates these two steps by firing the promo loaded event after the promo's visibility is determined internally. It also uses a consistent mechanism for controlling the promo's visibility internally and externally, i.e., 'hidden' attr aka 'display: none;' Fixed: 1144624, 1143366 Change-Id: I3b2d2d86e56e0baba3f8042077a07aa0b6ce20a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2514667Reviewed-by:Esmael Elmoslimany <aee@chromium.org> Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#823311}
Showing
Please register or sign in to comment