• Hiroyuki Ikezoe's avatar
    Bug 1640223 - Expand the given size in ExpandHeightForViewportUnits by... · 935fac58
    Hiroyuki Ikezoe authored
    Bug 1640223 - Expand the given size in ExpandHeightForViewportUnits by multiplying the 'vh value / visible area height'. r=botond
    
    The viewport units size doesn't match the aspect ratio of the screen size in
    some cases.
    
    For example, in the case of the reftest in this commit, the meta viewport is
    "width=1600, height=device-height" and the screen size during reftest is
    "800x1000". Thus the viewport units size will be "1600x1000". In such cases
    with the old way ExpandHeightForViewportUnits shrinks the given size
    "1600x1800" to "1600x1000" with 100px dynamic toolbar max height (and the
    MOZ_ASSERT in the function happens on debug builds).
    
    Differential Revision: https://phabricator.services.mozilla.com/D77176
    935fac58