DescriptionFix 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 #
Messages
Total messages: 8 (0 generated)
|