Bug 137336

Summary: REGRESSION(r173785): Previous page scroll position isn't restored correctly on EFL since r173785
Product: WebKit Reporter: Gyuyoung Kim <gyuyoung.kim>
Component: XMLAssignee: Gyuyoung Kim <gyuyoung.kim>
Status: RESOLVED WORKSFORME    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 136917    
Bug Blocks:    
Attachments:
Description Flags
WIP
none
WIP(not include test case yet)
none
WIP none

Description Gyuyoung Kim 2014-10-02 01:13:03 PDT
When user back to previous page using backward button on MiniBrowser, previous page's scroll position isn't restored. RenderLayer::scrollRectToVisible() causes this problem because r173785 supports requestScrollPositionUpdate() for EFL port.


void RenderLayer::scrollRectToVisible(const LayoutRect& rect, const ScrollAlignment& alignX, const ScrollAlignment& alignY)
{
   ...
        } else {
#if !PLATFORM(IOS)
            LayoutRect viewRect = frameView.visibleContentRect();
            LayoutRect visibleRectRelativeToDocument = viewRect;
            IntSize documentScrollOffsetRelativeToScrollableAreaOrigin = frameView.documentScrollOffsetRelativeToScrollableAreaOrigin();
            visibleRectRelativeToDocument.setLocation(IntPoint(documentScrollOffsetRelativeToScrollableAreaOrigin.width(), documentScrollOffsetRelativeToScrollableAreaOrigin.height()));
#else
            LayoutRect viewRect = frameView.unobscuredContentRect();
            LayoutRect visibleRectRelativeToDocument = viewRect;
#endif

            LayoutRect r = getRectToExpose(viewRect, visibleRectRelativeToDocument, rect, alignX, alignY);
                
            frameView.setScrollPosition(roundedIntPoint(r.location()));
   ...
}
Comment 1 Gyuyoung Kim 2014-10-07 01:48:14 PDT
Created attachment 239402 [details]
WIP
Comment 2 Gyuyoung Kim 2014-11-02 21:57:53 PST
Created attachment 240827 [details]
WIP(not include test case yet)
Comment 3 Gyuyoung Kim 2014-11-02 23:58:14 PST
It looks this is normal behavior.
Comment 4 Gyuyoung Kim 2014-11-02 23:59:50 PST
Reopening to attach new patch.
Comment 5 Gyuyoung Kim 2014-11-02 23:59:53 PST
Created attachment 240830 [details]
WIP