• Morten Stenshorne's avatar
    Correct scroll compensation when printing in vertical writing-modes. · 4e5257d2
    Morten Stenshorne authored
    We have code that compensates for the scroll offset on screen when
    printing, but this didn't work correctly in vertical writing modes.
    
    When printing, we set a rectangle for each page in logical coordinates,
    and then transpose it to physical coordinates if writing mode is
    vertical. The scroll offset, however, is already in physical
    coordinates, so we have to apply this after transposing.
    
    Pagination in vertical writing modes is very broken (crbug.com/881727),
    but before we can even get to that problem, we need to make sure that
    scrolling doesn't cause problems.
    
    Bug: 1123706, 881727
    Change-Id: Ie0370bcd5c0856afe2e1ca8f85ecaa1ce752f92d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386735Reviewed-by: default avatarStefan Zager <szager@chromium.org>
    Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#803387}
    4e5257d2
scrolled-vertical-lr-expected.html 262 Bytes