RESOLVED FIXED 106946
Sticky-position elements can jump around/hide on rubber-banding
https://bugs.webkit.org/show_bug.cgi?id=106946
Summary Sticky-position elements can jump around/hide on rubber-banding
Simon Fraser (smfr)
Reported 2013-01-15 14:47:12 PST
Sticky-postion elements behave oddly on rubber-banding. For example, the bug review bar on https://bugs.webkit.org/attachment.cgi?id=179870&action=review jumps around and disappear when you rubber-band at the top of the document.
Attachments
Patch (5.13 KB, patch)
2013-01-18 17:56 PST, Beth Dakin
simon.fraser: review-
Patch (8.20 KB, patch)
2013-01-18 18:17 PST, Beth Dakin
simon.fraser: review+
Radar WebKit Bug Importer
Comment 1 2013-01-15 14:47:35 PST
Beth Dakin
Comment 2 2013-01-18 17:27:20 PST
I think I know how to fix this.
Beth Dakin
Comment 3 2013-01-18 17:56:03 PST
Simon Fraser (smfr)
Comment 4 2013-01-18 18:03:08 PST
Comment on attachment 183585 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=183585&action=review > Source/WebCore/rendering/RenderBoxModelObject.cpp:513 > LayoutRect viewportRect = view()->frameView()->visibleContentRect(); > + viewportRect.setLocation(toPoint(view()->frameView()->scrollOffsetForFixedPosition())); We do this in so many places that I think it's time to add something to FrameView for this. Maybe viewportConstrainedObjectRect() ?
Beth Dakin
Comment 5 2013-01-18 18:17:13 PST
Simon Fraser (smfr)
Comment 6 2013-01-18 18:18:57 PST
Comment on attachment 183588 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=183588&action=review > Source/WebCore/page/FrameView.h:194 > + LayoutRect viewportConstrainedVisibleContentRect() const; I think this deserves a comment saying how it's different from visibleContentRect() (rubber-banding and zooming).
Beth Dakin
Comment 7 2013-01-18 18:24:23 PST
Thank you! I added a comment http://trac.webkit.org/changeset/140229
Benjamin Poulain
Comment 8 2013-01-18 19:33:05 PST
It looks like this caused a regression on fast/css/sticky/sticky-top-zoomed.html: http://build.webkit.org/results/Apple%20MountainLion%20Release%20WK2%20(Tests)/r140230%20(4996)/results.html
Simon Fraser (smfr)
Comment 9 2013-01-18 20:58:40 PST
I think that change is expected, since this commit made sticky take zooming into account. We'll have to fix the ref test.
Jer Noble
Comment 10 2013-01-18 21:51:23 PST
Filed https://bugs.webkit.org/show_bug.cgi?id=107356, tracking the test failure. Test was added to TestExpectations in <http://trac.webkit.org/changeset/140234>.
Note You need to log in before you can comment on or make changes to this bug.