Fix for bug 11595. Autoscrolling of layers didn't really work at all...
Fix for bug 11595. Autoscrolling of layers didn't really work at all unless the layer was coincidentally in the root layer's coordinate space. The event point was an absolute position within the document, but the layer's rect was only local coords. This patch makes sure to use absolute bounds for the layer when comparing it with the point. This is covered by the scrollRevealButton test case already in the tree... the results change to be more correct. Reviewed by ggaren * rendering/RenderLayer.cpp: (WebCore::RenderLayer::scrollRectToVisible): git-svn-id: svn://svn.chromium.org/blink/trunk@18796 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment