• Fredrik Söderqvist's avatar
    Don't include clip/mask/filter bounds in SVG visual rects during layout · 023c33f1
    Fredrik Söderqvist authored
    This should bring us closer to how other elements are handled. The
    filter bounds are now applied when needed (if needed). The primary
    change is removing SVGLayoutSupport::AdjustVisualRectWithResources calls
    in the various layout paths.
    
    This restores the tighter visual rects that was previously computed.
    Since the visual rects propagated during layout no longer includes
    clipping and masking, outlines are no longer clipped for containers.
    
    Since we now no longer need to do any reading of other LayoutObject's
    bounds during layout, it should be possible to clean up quite a bit of
    hairy code in future CLs.
    
    Bug: 109224, 1028061, 1131068, 1131105
    Change-Id: I502d72a5bfb3aa9149306b6c4143c69781709792
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2050382Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
    Commit-Queue: Fredrik Söderquist <fs@opera.com>
    Cr-Commit-Position: refs/heads/master@{#812109}
    023c33f1