[Webkit-unassigned] [Bug 20277] implement window.scrollByPages and window.scrollByLines
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 5 11:41:06 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20277
------- Comment #26 from arenevier at fdn.fr 2008-10-05 11:41 PDT -------
>> I had tried to use it, but did not succeed. It seems that it can only be used
>> when scrolling within a region with scrollbars, but not to scroll whole
>> document.
> Maybe I am not understanding something here.
When trying to implement
DOMWindow::scrollByPages as follow (it's for testing purpose, I known for a
real implementation, I should add a parameter to scroll
{
if (!m_frame)
return;
FrameView* view = m_frame->view();
if (!view)
return;
int i = 0;
for (i = 0; i < lines; i++) {
view->scroll(ScrollUp, ScrollByLine);
}
}
it does nothing. That's because m_verticalScrollbar is null in
ScrollView::scroll. Do I call scroll in a wrong way ? Is that a bug in gtk
backend ? Is that intended behaviour ?
--
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