|
LayoutBox::scrollRectToVisible doesn't respect overflow:hidden property.
Previously, we would scrollRectIntoView despite of the overflow:hidden property.
This makes sense for programmatic scrolls but not user scrolls. For example,
a scroll initiated from Element::scrollIntoView should in fact scroll even if
the element has overflow:hidden. The problem is that user scrolls (autoscroll)
and programmatic scrolls have the same codepath.
This patch takes the type of scroll as a param (defaulted to programmatic scroll),
and only scrolls if it's a programmatic scroll, or a user scroll
on a LayoutBox which does not have overflow:hidden set. The default value of the
param ensures that only the "autoscroll" and "FindText" codepath is affected.
May need to set this flag to false for other cases in the future.
This patch also updates the tests that fail because of adding
input::-webkit-scrollbar {
display:none;
}
to the default style sheet used to render HTML.
BUG= 531525
Committed: https://crrev.com/24936947c5a7019a20e269e523dd338e39588c95
Cr-Commit-Position: refs/heads/master@{#352355}
Total comments: 3
Total comments: 12
Total comments: 8
Total comments: 10
Total comments: 3
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+237 lines, -34 lines) |
Patch |
 |
A |
third_party/WebKit/LayoutTests/fast/events/autoscroll-upwards-propagation-no-scroll-iframe.html
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
third_party/WebKit/LayoutTests/fast/events/autoscroll-upwards-propagation-no-scroll-iframe-expected.txt
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/events/autoscroll-upwards-propagation-overflow-hidden-body.html
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/events/autoscroll-upwards-propagation-overflow-hidden-body-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/events/autoscroll-upwards-propagation-overflow-hidden-iframe-body.html
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/events/autoscroll-upwards-propagation-overflow-hidden-iframe-body-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/events/resources/page-with-scrollable-div.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/editing/Editor.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/FrameView.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/FrameView.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/RootFrameViewport.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/LayoutBox.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/LayoutObject.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scroll/ScrollableArea.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/TextFinder.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 39 (8 generated)
|