Set VisualViewport size from SVG images
SVG images are hosted from their own Page object which has its own VisualViewport. Currently, we don't set the size on the VisualViewport in this configuration which breaks some functaionality in the class, for example, the maximum scroll offset is wrong since the size is empty but the FrameView's (the visual viewport's scrollable contents) isn't. This doesn't cause issues at the moment because the visual viewport isn't consulted in painting the SVG. However, with blink-gen-property-trees turned on, the visual viewport will add its own paint property nodes which can cause problems if the viewport's state is inconsistent. Bug: 840017 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: If62c0e18fa9a6eb9cfe7f059ff5604f262af82fd Reviewed-on: https://chromium-review.googlesource.com/1096010 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#566385}
Showing
Please register or sign in to comment