[Webkit-unassigned] [Bug 20277] implement window.scrollByPages and window.scrollByLines

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 17 03:22:51 PDT 2008


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





------- Comment #19 from arenevier at fdn.fr  2008-09-17 03:22 PDT -------
> Huh? That doesn't make sense. That's not what the updateLayout function is for,
> so there must be some misunderstanding here.

At first, I used this function because it used in 
DOMWindow::scrollBy. Then I noticed that it's necessary to call it; otherwise,
view is not scrolled.

> Isn't the scroll() method on ScrollView usable for this? That method is
> cross-platform.

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.
For example, in gtk port.

bool ScrollView::scroll(ScrollDirection direction, ScrollGranularity
granularity)
{
...
        if (m_data->vBar)
            return m_data->vBar->scroll(direction, granularity);

m_data->vBar is null if calling from FrameView::scrollByLines

I think window port behaves the same way.


I've made some attempts toward code sharing. See comment 7, and attachment
23086 and attachment 23087 


-- 
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