Currently we use a heuristic to determine whether a fixed position element is at the bottom or top of the screen. We check if the top edge of the layer is in the bottom or top half of the screen. A better heuristic would be to check if the midpoint of the layer is in the top or bottom half.
Created attachment 179985 [details] Patch
Comment on attachment 179985 [details] Patch LGTM.
Comment on attachment 179985 [details] Patch Rejecting attachment 179985 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: commit-queue Parsed 2 diffs from patch file(s). patching file Source/WebCore/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Source/WebCore/platform/graphics/blackberry/LayerRenderer.cpp Hunk #1 FAILED at 731. 1 out of 1 hunk FAILED -- saving rejects to file Source/WebCore/platform/graphics/blackberry/LayerRenderer.cpp.rej Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Rob Buis']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue Full output: http://queues.webkit.org/results/15401273
Created attachment 179998 [details] Patch
Comment on attachment 179998 [details] Patch Another try.
Comment on attachment 179998 [details] Patch Clearing flags on attachment: 179998 Committed r138056: <http://trac.webkit.org/changeset/138056>
All reviewed patches have been landed. Closing bug.