-
simon.fraser@apple.com authored
Reviewed by Dave Hyatt. Transformed elements inside position:fixed container are clipped incorrectly https://bugs.webkit.org/show_bug.cgi?id=29346 Fix clipping and hit testing on transformed elements inside a position:fixed element. Previously, the code used the overflowClipRect of the parent clip rects, but this is not correct for fixed postion elements. Instead, share code that is already present in calculateRects() to get the correct rect. Test: fast/overflow/position-fixed-transform-clipping.html * rendering/RenderLayer.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintLayer): (WebCore::RenderLayer::hitTestLayer): Call the new backgroundClipRect() to get the correct clipRect. (WebCore::RenderLayer::backgroundClipRect): New method, factored out of calculateRects(), that computes the clip rect, doing the right th...
3c99a321