[Webkit-unassigned] [Bug 20277] implement window.scrollByPages and window.scrollByLines
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 6 12:03:27 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20277
------- Comment #1 from arenevier at fdn.fr 2008-08-06 12:03 PDT -------
Created an attachment (id=22686)
--> (https://bugs.webkit.org/attachment.cgi?id=22686&action=view)
window.scrollByLines + window.scrollByPages
Here is a patch proposal. It's possibly naive, as I don't know webkit well. I'm
not aware of difficulties with all platforms. Anyway, it seems to work fine on
my system (webkit gtk).
To get line height, I used lineSpacing defaulting to 12pt in case it was
impossible to compute. From other parts of webkit, I had the feeling that using
was not possible with qt, (see WebCore/platform/graphics/Font.h) but I don't
know why.
For page height, I used mozilla algorithm:
the size of the page minus the smaller of 10% of the size or 2 lines.
I'd be happy to have feedback on my first proposal to work again on it if
needed.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list