• Denis Bessonov's avatar
    Fix 0,0-0x0 turning into PaintOp::kUnsetRect. · 0156c949
    Denis Bessonov authored
    When a paint chunk having 0,0-0x0 rect is processed inside an effect, an early
    return prevents the effect_bounds_stack_.back() update in a
    ConversionContext::UpdateEffectBounds call. This results in keeping default
    PaintOp::kUnsetRect in SaveLayerOp::bounds instead of 0,0-0x0 rect.
    
    This is probably a reason for a related bug 918240 (see bug thread Comment 4 for
    details). Application of this patch fixes the lagging print preview.
    
    R=fmalita@chromium.org, samans@chromium.org
    
    Bug: 918240
    Change-Id: I022ae01418e83184421cff7e22566228a2f7c6d3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1396958
    Commit-Queue: Denis Bessonov <dbessonov@yandex-team.ru>
    Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#714293}
    0156c949
display_item_list.h 9.13 KB