[Webkit-unassigned] [Bug 108281] [BlackBerry] Webpage was cut off after rotating to landscape and then rotating back to portrait on specific website

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 29 18:37:56 PST 2013


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





--- Comment #1 from Xiaobo Wang <xiaobo.wang at torchmobile.com.cn>  2013-01-29 18:39:55 PST ---
When rotating back to portrait, WebPagePrivate::overflowExceedsContentsSize()
was called. It will call setViewMode(), in which we will get fixedLayoutSize()
and compare with the fixedLayoutSize in the FrameView. But
WebPagePrivate::fixedLaoutSize() returned wrong size because the width was
reset to 0 and then fallback to defaultLayoutSize.width(). 
        if (m_pendingOrientation != -1 && !m_nestedLayoutFinishedCount)
            width = 0;
Can be fixed by adding a check of m_overflowExceedsContentsSize, only reset
width if m_overflowExceedsContentsSize is not true.

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