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())); ... }
Created attachment 239402 [details] WIP
Created attachment 240827 [details] WIP(not include test case yet)
It looks this is normal behavior.
Reopening to attach new patch.
Created attachment 240830 [details] WIP