[Webkit-unassigned] [Bug 106077] [Qt]=?UTF-8?Q?=20When=20frame=20flattening=EF=BC=8Cdrag=20scrollbar?=, then click link to goto next frame, the page scroll offset is preserved
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jan 6 23:47:13 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=106077
--- Comment #5 from Chen Zhixiang <chenzx at cn.fujitsu.com> 2013-01-06 23:49:09 PST ---
Try to patch FrameLoader::checkLoadCompleteForThisFrame()( which calls history()->restoreScrollPositionAndViewState() )also failed: (Doesn't know why not works):
// If the user had a scroll point, scroll to it, overriding the anchor point if any.
if (m_frame->page()) {
if (isBackForwardLoadType(m_loadType) || m_loadType == FrameLoadTypeReload || m_loadType == FrameLoadTypeReloadFromOrigin)
history()->restoreScrollPositionAndViewState();
+ else{
+ if (FrameView* view = m_frame->view()) {
+ if (!view->wasScrolledByUser()) {
+ view->setScrollPosition( IntPoint() );
+ }
+ }
+ }
}
--
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