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

Issue 343623003: Fix RenderLayer::scrollsWithRespectTo(). (Closed)

Created:
6 years, 6 months ago by hartmanng
Modified:
6 years, 6 months ago
Reviewers:
Ian Vollick, chrishtr
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, blink-layers+watch_chromium.org, jchaffraix+rendering, pdr., rune+blink
Project:
blink
Visibility:
Public.

Description

Fix RenderLayer::scrollsWithRespectTo(). scrollsWithRespectTo() currently tries to match up containing blocks by keeping track of RenderObjects. However, when it goes to check if a containing block is a scrolling div, it actually checks the enclosing RenderLayer. It doesn't make sense to do this since RenderLayers and RenderObjects don't line up one-to-one. Since this function only cares about scrollability, and the RenderLayer is the object that handles an elements overflow-scrollability, it makes more sense to keep track of containing blocks by storing the enclosingLayer() instead of the RenderObject itself. BUG=384642 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176452

Patch Set 1 #

Total comments: 8

Patch Set 2 : efficiency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -15 lines) Patch
M LayoutTests/compositing/overflow/scrolls-with-respect-to-expected.txt View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 1 chunk +7 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
hartmanng
Ian, Chris, please take a look. https://codereview.chromium.org/343623003/diff/1/LayoutTests/compositing/overflow/scrolls-with-respect-to-expected.txt File LayoutTests/compositing/overflow/scrolls-with-respect-to-expected.txt (left): https://codereview.chromium.org/343623003/diff/1/LayoutTests/compositing/overflow/scrolls-with-respect-to-expected.txt#oldcode39 LayoutTests/compositing/overflow/scrolls-with-respect-to-expected.txt:39: scrolled2 scrolls with ...
6 years, 6 months ago (2014-06-18 17:54:01 UTC) #1
Ian Vollick
This is really exciting. I just have one question about killing the early-out. https://codereview.chromium.org/343623003/diff/1/Source/core/rendering/RenderLayer.cpp File ...
6 years, 6 months ago (2014-06-18 18:28:31 UTC) #2
hartmanng
https://codereview.chromium.org/343623003/diff/1/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (left): https://codereview.chromium.org/343623003/diff/1/Source/core/rendering/RenderLayer.cpp#oldcode381 Source/core/rendering/RenderLayer.cpp:381: if (containingBlock->enclosingLayer() == other) { On 2014/06/18 18:28:30, Ian ...
6 years, 6 months ago (2014-06-18 18:46:12 UTC) #3
Ian Vollick
lgtm. https://codereview.chromium.org/343623003/diff/1/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (left): https://codereview.chromium.org/343623003/diff/1/Source/core/rendering/RenderLayer.cpp#oldcode396 Source/core/rendering/RenderLayer.cpp:396: // The other layer scrolls with respect to ...
6 years, 6 months ago (2014-06-18 20:40:02 UTC) #4
hartmanng
thanks!
6 years, 6 months ago (2014-06-18 20:45:50 UTC) #5
hartmanng
The CQ bit was checked by hartmanng@chromium.org
6 years, 6 months ago (2014-06-18 20:46:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hartmanng@chromium.org/343623003/20001
6 years, 6 months ago (2014-06-18 20:47:15 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 20:51:28 UTC) #8
Message was sent while issue was closed.
Change committed as 176452

Powered by Google App Engine
This is Rietveld 408576698