[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
Mon Jan 7 20:45:39 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=106077
--- Comment #9 from Chen Zhixiang <chenzx at cn.fujitsu.com> 2013-01-07 20:47:34 PST ---
The final fix:
void FrameLoaderClientQt::dispatchDidLoadMainResource(DocumentLoader* documentLoader)
{
Frame* frame = documentLoader->frame();
if( frame && frame->settings() && frame->settings()->frameFlatteningEnabled() ){
FrameLoader* frameLoader = documentLoader->frameLoader();
if( frameLoader && frameLoader->loadType()== FrameLoadTypeStandard ){
if( Frame* mainFrame = frame->page()->mainFrame() ){
FrameView* mainFrameView = mainFrame->view();
if( mainFrameView )
mainFrameView->setScrollPosition( IntPoint() );
}
}
}
}
The case that frame has fragment works OK, so i dont need to consider it. Thanks giving day!
--
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