|
|
Chromium Code Reviews
Description[SPInvalidation ] Fix scroll offset issue of vertical-rl contents
When calculating scroll offset of contents, we should use LayoutBox::
scrolledContentOffset() instead of ScrollableArea::scrollOffeset().
The former is aware of scrollbar offset in a vertical-rl container.
This fixes paint/invalidation/vertical-overflow-parent.html and
paint/invalidation/vertical-overflow-same.html in slimmingPaintInvalidation
mode.
BUG=650843
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/9f4b2b6143b8eb2facf147471330879932c22944
Cr-Commit-Position: refs/heads/master@{#421581}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : - #Messages
Total messages: 23 (17 generated)
Description was changed from ========== [SPInvalidation ] Fix scroll offset issue of vertical-rl contents When calculating scroll offset of contents, we should use LayoutBox:: scrolledContentOffset() instead of ScrollableArea::scrollOffeset(). The former is aware of scrollbar offset in a vertical-rl container. This fixes paint/invalidation/vertical-overflow-parent.html and paint/invalidation/vertical-overflow-same.html in slimmingPaintInvalidation mode. BUG=658043 ========== to ========== [SPInvalidation ] Fix scroll offset issue of vertical-rl contents When calculating scroll offset of contents, we should use LayoutBox:: scrolledContentOffset() instead of ScrollableArea::scrollOffeset(). The former is aware of scrollbar offset in a vertical-rl container. This fixes paint/invalidation/vertical-overflow-parent.html and paint/invalidation/vertical-overflow-same.html in slimmingPaintInvalidation mode. BUG=658043 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
The CQ bit was checked by wangxianzhu@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by wangxianzhu@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by wangxianzhu@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
wangxianzhu@chromium.org changed reviewers: + pdr@chromium.org
LGTM We use FrameView::scrollOffset for the non-root-layer-scrolls codepath (PaintPropertyTreeBuilder::buildTreeNodes(frameview, ...)). Do we need to change that too? vertical-rl at the root is a little strange so I'm not sure. This change is good regardless.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/09/28 18:04:40, pdr. wrote: > LGTM > > We use FrameView::scrollOffset for the non-root-layer-scrolls codepath > (PaintPropertyTreeBuilder::buildTreeNodes(frameview, ...)). Do we need to change > that too? vertical-rl at the root is a little strange so I'm not sure. This > change is good regardless. I think that doesn't matter. For vertical-rl box case, the box's geometry includes the scrollbar, so we need a special offset to shift the origin (the physical top-right corner) of the children. For FrameView on-root-layer-scrolls path, the scrollbar is not a part of the layout space of the LayoutView.
The CQ bit was checked by wangxianzhu@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== [SPInvalidation ] Fix scroll offset issue of vertical-rl contents When calculating scroll offset of contents, we should use LayoutBox:: scrolledContentOffset() instead of ScrollableArea::scrollOffeset(). The former is aware of scrollbar offset in a vertical-rl container. This fixes paint/invalidation/vertical-overflow-parent.html and paint/invalidation/vertical-overflow-same.html in slimmingPaintInvalidation mode. BUG=658043 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== [SPInvalidation ] Fix scroll offset issue of vertical-rl contents When calculating scroll offset of contents, we should use LayoutBox:: scrolledContentOffset() instead of ScrollableArea::scrollOffeset(). The former is aware of scrollbar offset in a vertical-rl container. This fixes paint/invalidation/vertical-overflow-parent.html and paint/invalidation/vertical-overflow-same.html in slimmingPaintInvalidation mode. BUG=658043 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/9f4b2b6143b8eb2facf147471330879932c22944 Cr-Commit-Position: refs/heads/master@{#421581} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/9f4b2b6143b8eb2facf147471330879932c22944 Cr-Commit-Position: refs/heads/master@{#421581}
Message was sent while issue was closed.
Description was changed from ========== [SPInvalidation ] Fix scroll offset issue of vertical-rl contents When calculating scroll offset of contents, we should use LayoutBox:: scrolledContentOffset() instead of ScrollableArea::scrollOffeset(). The former is aware of scrollbar offset in a vertical-rl container. This fixes paint/invalidation/vertical-overflow-parent.html and paint/invalidation/vertical-overflow-same.html in slimmingPaintInvalidation mode. BUG=658043 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/9f4b2b6143b8eb2facf147471330879932c22944 Cr-Commit-Position: refs/heads/master@{#421581} ========== to ========== [SPInvalidation ] Fix scroll offset issue of vertical-rl contents When calculating scroll offset of contents, we should use LayoutBox:: scrolledContentOffset() instead of ScrollableArea::scrollOffeset(). The former is aware of scrollbar offset in a vertical-rl container. This fixes paint/invalidation/vertical-overflow-parent.html and paint/invalidation/vertical-overflow-same.html in slimmingPaintInvalidation mode. BUG=650843 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/9f4b2b6143b8eb2facf147471330879932c22944 Cr-Commit-Position: refs/heads/master@{#421581} ========== |
