Skip to content
  • kenneth@webkit.org's avatar
    Make use-fixed-layout work reliable · 1c331706
    kenneth@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=72511
    
    Reviewed by Simon Hausmann.
    
    Source/WebCore:
    
    Always send a viewport update per page load as we depend on that,
    to reset all viewport handling before doing layout.
    
    * page/Page.cpp:
    (WebCore::Page::updateViewportArguments):
    
    Source/WebKit2:
    
    The code handling use-fixed-layout wasn't 100% reliable. The code
    was changed to make sure the value is always correct.
    
    It also doesn't set the value by looking at the previous FrameView,
    as that wouldn't work in cases, such as when the web process has
    crashes.
    
    * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
    (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
    * WebProcess/WebPage/WebPage.cpp:
    (WebKit::WebPage::WebPage):
    (WebKit::WebPage::setResizesToContentsUsingLayoutSize):
    (WebKit::WebPage::setUseFixedLayout):
    * WebProcess/WebPage/WebPage.h:
    (WebKit::WebPage::useFixedLayout):
    
        Store the state as m_useFixedLayout so that it can be used
        from the WebFrameLoaderClient.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1c331706