[Webkit-unassigned] [Bug 31103] [GTK] editing/selection/shrink-selection-after-shift-pagedown.html failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 4 14:58:12 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31103





--- Comment #5 from Chang Shu <Chang.Shu at nokia.com>  2009-11-04 14:58:11 PDT ---
I did some research and found the pagedown scroll amount is platform-dependent.
See the following funciton in EditorCommand.cpp:
static int verticalScrollDistance(Frame* frame)
{
...
    int height = toRenderBox(renderer)->clientHeight();
    return max((height + 1) / 2, height - cAmountToKeepWhenPaging);
}

I believe height itself depends on the font size. However,
cAmountToKeepWhenPaging is hardcoded to 40. Thus, the pagedown event does not
guarantee the scroll amount to be the multiplication of line height.
Unfortunately, on Qt and GTK, it selected one more line and the test case
failed.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list