Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Issue 2339653003: Enable the scroll of empty elements by setting the rect's size to 1. (Closed)

Created:
4 years, 3 months ago by sunyunjia
Modified:
4 years, 3 months ago
Reviewers:
bokan
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable the scroll of empty elements by setting the rect's size to 1. LayoutBox::scrollRectToVisible will return if the new rect to be scrolled is empty after clipped by layerBounds. However, the rect to be scrolled might be an empty rect originally. A common case is empty <a> elements used as named anchors for navigation. This patch sets the size of the empty rect to 1 so that it can still be scrolled. BUG=646738 Committed: https://crrev.com/6d73ab5ed5d9b00bc48da255dc6599e90e72f599 Cr-Commit-Position: refs/heads/master@{#418856}

Patch Set 1 #

Patch Set 2 : Rebase and format #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -5 lines) Patch
A third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html View 1 chunk +23 lines, -0 lines 3 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
sunyunjia
PTAL, thanks!
4 years, 3 months ago (2016-09-14 18:20:09 UTC) #5
bokan
https://codereview.chromium.org/2339653003/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html File third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html (right): https://codereview.chromium.org/2339653003/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html#newcode4 third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html:4: <div style="overflow-x:hidden"> Is this div needed?
4 years, 3 months ago (2016-09-14 21:43:15 UTC) #13
sunyunjia
https://codereview.chromium.org/2339653003/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html File third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html (right): https://codereview.chromium.org/2339653003/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html#newcode4 third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html:4: <div style="overflow-x:hidden"> On 2016/09/14 21:43:15, bokan wrote: > Is ...
4 years, 3 months ago (2016-09-14 23:58:39 UTC) #14
bokan
lgtm https://codereview.chromium.org/2339653003/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html File third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html (right): https://codereview.chromium.org/2339653003/diff/20001/third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html#newcode4 third_party/WebKit/LayoutTests/fast/scrolling/hashtag-autoscroll.html:4: <div style="overflow-x:hidden"> On 2016/09/14 23:58:39, sunyunjia wrote: > ...
4 years, 3 months ago (2016-09-15 13:15:21 UTC) #15
bokan
Please make sure your commit title is < 80 chars. Also, it might be nice ...
4 years, 3 months ago (2016-09-15 13:19:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2339653003/20001
4 years, 3 months ago (2016-09-15 13:32:22 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-15 13:36:54 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 13:39:27 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6d73ab5ed5d9b00bc48da255dc6599e90e72f599
Cr-Commit-Position: refs/heads/master@{#418856}

Powered by Google App Engine
This is Rietveld 408576698