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

Issue 2454913003: MainFrame scrollbars should work with RFV instead of FV (Closed)

Created:
4 years, 1 month ago by ymalik
Modified:
4 years, 1 month ago
Reviewers:
bokan, skobes, jbroman, sky
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MainFrame scrollbars should work with RFV instead of FV This CL does the following things: - FV::updateScrollbarGeometry and part of FV::computeScrollbarExistence is moved into scrollbar manager. - For MainFrame, the scroller that the scrollbars works with is changed to be RFV from FV - To accommodate for this, a bunch of methods in Scrollbar that used to call into FV now call into RFV, which in turn calls the corresponding methods on its layout viewport. An exception to this is Tickmarks. Tickmarks for MainFrame are now stored in RFV. - The isOverlayScrollbar method was needlessly implemented in FV. This CL removes this. BUG=456861 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/322db3d6f1f9eb4b9cd6a0054999718c24b1f076 Cr-Commit-Position: refs/heads/master@{#431683}

Patch Set 1 #

Patch Set 2 : Add overrides in RFV #

Patch Set 3 : add test + rebase #

Total comments: 6

Patch Set 4 : Remove needsScrollbar as the change broke tests #

Patch Set 5 : rebase with dependency #

Patch Set 6 : VV TODO comment #

Patch Set 7 : rebase dependency #

Patch Set 8 : Fix VisualViewportTest #

Total comments: 12

Patch Set 9 : Rebase and fix merge conflicts #

Total comments: 6

Patch Set 10 : rebase and Fix more tests #

Patch Set 11 : Add TODOs #

Total comments: 11

Patch Set 12 : Address review comments #

Patch Set 13 : Mark svg test as failing #

Patch Set 14 : Remove traces from bad merge #

Patch Set 15 : Make VisualViewportTest parameterized #

Patch Set 16 : Fix failing test #

Total comments: 2

Patch Set 17 : nit #

Patch Set 18 : rebase master #

Patch Set 19 : Fix broken chromeos bot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -194 lines) Patch
M chrome/renderer/autofill/page_click_tracker_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/scale-and-scroll-iframe-window.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/window-resize-centered-inline-under-fixed-pos-expected.txt View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/window-resize-vertical-writing-mode-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/window-resize-vertical-writing-mode-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/window-resize-vertical-writing-mode-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +65 lines, -53 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +28 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +85 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ScrollbarManager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ScrollbarManager.cpp View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +21 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 2 3 4 5 6 7 8 9 12 13 14 15 16 17 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 55 chunks +122 lines, -63 lines 0 comments Download

Messages

Total messages: 84 (29 generated)
ymalik
4 years, 1 month ago (2016-10-28 19:21:19 UTC) #4
ymalik
Please hold off on the review until I fix the bots.
4 years, 1 month ago (2016-10-31 15:19:14 UTC) #5
bokan
On 2016/10/31 15:19:14, ymalik wrote: > Please hold off on the review until I fix ...
4 years, 1 month ago (2016-10-31 15:25:09 UTC) #6
ymalik
@bokan PTAL, I'm still trying to figure out the svg test failure. https://codereview.chromium.org/2454913003/diff/40001/third_party/WebKit/Source/core/frame/RootFrameViewport.h File third_party/WebKit/Source/core/frame/RootFrameViewport.h ...
4 years, 1 month ago (2016-11-03 18:49:12 UTC) #7
bokan
https://codereview.chromium.org/2454913003/diff/140001/third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html File third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html (right): https://codereview.chromium.org/2454913003/diff/140001/third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html#newcode16 third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html:16: document.getElementById("result").innerText = internals.visualViewportScrollY() === 863 ? "PASS" : "FAIL ...
4 years, 1 month ago (2016-11-03 19:59:59 UTC) #8
ymalik
@bokan, PTAL! https://codereview.chromium.org/2454913003/diff/140001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2454913003/diff/140001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2442 third_party/WebKit/Source/core/frame/FrameView.cpp:2442: if (m_frame->isMainFrame()) On 2016/11/03 19:59:59, bokan wrote: ...
4 years, 1 month ago (2016-11-04 18:54:18 UTC) #9
ymalik
@skobes, PTAL :)
4 years, 1 month ago (2016-11-04 18:54:38 UTC) #10
bokan
https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt File third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt (right): https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt#newcode3 third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt:3: layer at (0,0) size 1600x600 On 2016/11/04 18:54:18, ymalik ...
4 years, 1 month ago (2016-11-04 19:23:59 UTC) #11
ymalik
https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt File third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt (right): https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt#newcode3 third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt:3: layer at (0,0) size 1600x600 On 2016/11/04 19:23:59, bokan ...
4 years, 1 month ago (2016-11-04 19:39:51 UTC) #12
bokan
https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt File third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt (right): https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt#newcode3 third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt:3: layer at (0,0) size 1600x600 On 2016/11/04 19:39:51, ymalik ...
4 years, 1 month ago (2016-11-04 20:00:37 UTC) #13
skobes
https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt File third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt (right): https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt#newcode3 third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt:3: layer at (0,0) size 1600x600 On 2016/11/04 19:23:59, bokan ...
4 years, 1 month ago (2016-11-04 21:33:21 UTC) #14
ymalik
@bokan/skobes, PTAL :) I keep running into merge conflicts and more failing tests. I'd like ...
4 years, 1 month ago (2016-11-08 00:11:13 UTC) #15
bokan
On 2016/11/08 00:11:13, ymalik wrote: > @bokan/skobes, PTAL :) > > I keep running into ...
4 years, 1 month ago (2016-11-08 18:35:34 UTC) #20
ymalik
On 2016/11/08 18:35:34, bokan wrote: > On 2016/11/08 00:11:13, ymalik wrote: > > @bokan/skobes, PTAL ...
4 years, 1 month ago (2016-11-08 21:48:17 UTC) #21
skobes
I'm a bit confused by this patch. If the scrollbars "work with" RFV, why don't ...
4 years, 1 month ago (2016-11-09 00:52:55 UTC) #22
skobes
Also there are a bunch of changes to test baselines in addition to the LayoutSVGRoot ...
4 years, 1 month ago (2016-11-09 00:54:42 UTC) #23
ymalik
On 2016/11/09 00:52:55, skobes wrote: > I'm a bit confused by this patch. > > ...
4 years, 1 month ago (2016-11-09 01:30:06 UTC) #24
ymalik
On 2016/11/09 00:52:55, skobes wrote: > I'm a bit confused by this patch. > > ...
4 years, 1 month ago (2016-11-09 01:30:08 UTC) #25
ymalik
On 2016/11/09 00:54:42, skobes wrote: > Also there are a bunch of changes to test ...
4 years, 1 month ago (2016-11-09 01:30:43 UTC) #26
skobes
On 2016/11/09 01:30:08, ymalik wrote: > On 2016/11/09 00:52:55, skobes wrote: > > I'm a ...
4 years, 1 month ago (2016-11-09 02:13:01 UTC) #27
bokan
On 2016/11/09 02:13:01, skobes wrote: > On 2016/11/09 01:30:08, ymalik wrote: > > On 2016/11/09 ...
4 years, 1 month ago (2016-11-09 15:50:14 UTC) #28
skobes
On 2016/11/09 15:50:14, bokan wrote: > I haven't put it into a longer more thought ...
4 years, 1 month ago (2016-11-09 18:04:25 UTC) #29
bokan
On 2016/11/09 18:04:25, skobes wrote: > On 2016/11/09 15:50:14, bokan wrote: > > I haven't ...
4 years, 1 month ago (2016-11-09 20:22:58 UTC) #30
bokan
On 2016/11/08 21:48:17, ymalik wrote: > On 2016/11/08 18:35:34, bokan wrote: > > On 2016/11/08 ...
4 years, 1 month ago (2016-11-09 20:30:26 UTC) #31
ymalik
On 2016/11/09 20:22:58, bokan wrote: > On 2016/11/09 18:04:25, skobes wrote: > > On 2016/11/09 ...
4 years, 1 month ago (2016-11-09 20:33:26 UTC) #32
ymalik
On 2016/11/09 20:30:26, bokan wrote: > On 2016/11/08 21:48:17, ymalik wrote: > > On 2016/11/08 ...
4 years, 1 month ago (2016-11-09 20:52:29 UTC) #33
bokan
On 2016/11/09 20:52:29, ymalik wrote: > On 2016/11/09 20:30:26, bokan wrote: > > On 2016/11/08 ...
4 years, 1 month ago (2016-11-09 21:07:01 UTC) #34
ymalik
On 2016/11/09 21:07:01, bokan wrote: > On 2016/11/09 20:52:29, ymalik wrote: > > On 2016/11/09 ...
4 years, 1 month ago (2016-11-09 21:15:15 UTC) #35
bokan
On 2016/11/09 21:15:15, ymalik wrote: > On 2016/11/09 21:07:01, bokan wrote: > > On 2016/11/09 ...
4 years, 1 month ago (2016-11-09 21:25:07 UTC) #36
ymalik
https://codereview.chromium.org/2454913003/diff/160001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt > > > > > > > > File > > > > > ...
4 years, 1 month ago (2016-11-09 21:30:58 UTC) #37
bokan
> Not quite cached. It's sort of an accident. This code calls contentResized if > ...
4 years, 1 month ago (2016-11-09 21:33:05 UTC) #38
skobes
On 2016/11/09 21:33:05, bokan wrote: > That's what kicks off the layout. But layout could ...
4 years, 1 month ago (2016-11-09 21:52:01 UTC) #39
bokan
On 2016/11/09 21:52:01, skobes wrote: > On 2016/11/09 21:33:05, bokan wrote: > > That's what ...
4 years, 1 month ago (2016-11-09 21:57:45 UTC) #40
ymalik
On 2016/11/09 21:57:45, bokan wrote: > On 2016/11/09 21:52:01, skobes wrote: > > On 2016/11/09 ...
4 years, 1 month ago (2016-11-09 22:03:35 UTC) #41
skobes
https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt File third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt (right): https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt#newcode7 third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt:7: LayoutSVGRect {rect} at (0,0) size 1600x600 [fill={[type=SOLID] [color=#FFFFFF]}] [x=0.00] ...
4 years, 1 month ago (2016-11-09 23:18:25 UTC) #44
bokan
https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp File third_party/WebKit/Source/web/tests/VisualViewportTest.cpp (right): https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp#newcode312 third_party/WebKit/Source/web/tests/VisualViewportTest.cpp:312: // TODO(ymalik): With root layer scrolling enabled, the scroller ...
4 years, 1 month ago (2016-11-10 15:16:57 UTC) #47
ymalik
https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt File third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt (right): https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt#newcode7 third_party/WebKit/LayoutTests/platform/linux/svg/custom/masking-clipping-hidpi-expected.txt:7: LayoutSVGRect {rect} at (0,0) size 1600x600 [fill={[type=SOLID] [color=#FFFFFF]}] [x=0.00] ...
4 years, 1 month ago (2016-11-10 17:58:04 UTC) #48
ymalik
@skobes, PTAL :)
4 years, 1 month ago (2016-11-10 17:58:21 UTC) #49
skobes
On 2016/11/10 17:58:04, ymalik wrote: > On 2016/11/10 15:16:57, bokan wrote: > > I asked ...
4 years, 1 month ago (2016-11-10 18:37:28 UTC) #52
bokan
On 2016/11/10 18:37:28, skobes wrote: > On 2016/11/10 17:58:04, ymalik wrote: > > On 2016/11/10 ...
4 years, 1 month ago (2016-11-10 18:41:10 UTC) #53
skobes
https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2463 third_party/WebKit/Source/core/frame/FrameView.cpp:2463: // Tickmarks for main frame are stored in RFV. ...
4 years, 1 month ago (2016-11-10 18:41:28 UTC) #54
bokan
On 2016/11/10 18:41:10, bokan wrote: > On 2016/11/10 18:37:28, skobes wrote: > > On 2016/11/10 ...
4 years, 1 month ago (2016-11-10 18:41:46 UTC) #55
skobes
On 2016/11/10 18:41:10, bokan wrote: > That's a good point. But if the test isn't ...
4 years, 1 month ago (2016-11-10 18:42:40 UTC) #56
ymalik
On 2016/11/10 18:42:40, skobes wrote: > On 2016/11/10 18:41:10, bokan wrote: > > That's a ...
4 years, 1 month ago (2016-11-10 21:05:03 UTC) #59
ymalik
@skobes, PTAL https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2454913003/diff/200001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2463 third_party/WebKit/Source/core/frame/FrameView.cpp:2463: // Tickmarks for main frame are stored ...
4 years, 1 month ago (2016-11-10 21:05:21 UTC) #60
skobes
lgtm % nit https://codereview.chromium.org/2454913003/diff/290001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2454913003/diff/290001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1769 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1769: if (LocalFrame* frame = box().frame()) I ...
4 years, 1 month ago (2016-11-10 21:10:47 UTC) #61
ymalik
+jbroman for Source/platform
4 years, 1 month ago (2016-11-10 21:13:36 UTC) #63
ymalik
https://codereview.chromium.org/2454913003/diff/290001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2454913003/diff/290001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1769 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1769: if (LocalFrame* frame = box().frame()) On 2016/11/10 21:10:47, skobes ...
4 years, 1 month ago (2016-11-10 21:22:48 UTC) #64
jbroman
rs lgtm
4 years, 1 month ago (2016-11-10 21:49:27 UTC) #67
ymalik
+sky for chrome/renderer
4 years, 1 month ago (2016-11-11 16:51:15 UTC) #71
sky
LGTM
4 years, 1 month ago (2016-11-11 19:17:02 UTC) #74
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/2454913003/350001
4 years, 1 month ago (2016-11-11 23:13:48 UTC) #79
commit-bot: I haz the power
Committed patchset #19 (id:350001)
4 years, 1 month ago (2016-11-11 23:20:31 UTC) #81
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/322db3d6f1f9eb4b9cd6a0054999718c24b1f076 Cr-Commit-Position: refs/heads/master@{#431683}
4 years, 1 month ago (2016-11-11 23:54:34 UTC) #83
ymalik
4 years, 1 month ago (2016-11-14 20:51:43 UTC) #84
Message was sent while issue was closed.
On 2016/11/11 23:54:34, commit-bot: I haz the power wrote:
> Patchset 19 (id:??) landed as
> https://crrev.com/322db3d6f1f9eb4b9cd6a0054999718c24b1f076
> Cr-Commit-Position: refs/heads/master@{#431683}

This CL was reverted in https://codereview.chromium.org/2501493002/ because it
resulted in a mac regression.

The main problem is that ScrollAnimatorMac does both painting and and scroll
animation, and now that the RFV is the scrollbar's scroller, we run into the
situation where the painting and animation logic work with different instances
of ScrollAnimationMac.
For example, when we add a scrollbar, FrameView::ScrollbarManager calls
m_scrollableArea->didAddScrollbar, which in turn calls
ScrollAnimatorMac::didAddScrollbar and initializes some paint specific variables
in RFV's instance of ScrollAnimatorMac. Then we have some painting code in RFV's
version that depends on variables being set on the ScrollAnimatorMac, but RFV
delegates its scroll animation to FV's ScrollAnimatorMac and not RFV's
ScrollAnimatorMac.

I spoke to @bokan offline and it seems like the bug that this CL fixes is not
really a launch blocker for MD scrollbars. It has been around for a while before
MD scrollbars, and its only marginally worse with MD scrollbars. Its also only a
problem for cases which don't have scroll extent to begin with. This will be
fixed by the suggested refactoring proposed in crbug.com/661236. Its probably
not worthwhile to add more hacks to fix this for Mac, so lets keep this in CL
reverted.

Powered by Google App Engine
This is Rietveld 408576698