Changeset 107135 in webkit


Ignore:
Timestamp:
Feb 8, 2012 2:44:00 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Dispatch updateViewportArguments(), when Document is finished
restoring from page cache.

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

Patch by Zalan Bujtas <zbujtas@gmail.com> on 2012-02-08
Reviewed by Kenneth Rohde Christiansen.

Move updateViewportArguments() call from setPageInCache() to
documentDidResumeFromPageCache() to ensure, that the Document is
fully resumed from the page cache and attached to the mainframe,
when the viewport arguments are updated.

No tests. No change in behaviour.

  • dom/Document.cpp:

(WebCore::Document::setInPageCache):
(WebCore::Document::documentDidResumeFromPageCache):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107130 r107135  
     12012-02-08  Zalan Bujtas  <zbujtas@gmail.com>
     2
     3        Dispatch updateViewportArguments(), when Document is finished
     4        restoring from page cache.
     5
     6        https://bugs.webkit.org/show_bug.cgi?id=77943
     7
     8        Reviewed by Kenneth Rohde Christiansen.
     9
     10        Move updateViewportArguments() call from setPageInCache() to
     11        documentDidResumeFromPageCache() to ensure, that the Document is
     12        fully resumed from the page cache and attached to the mainframe,
     13        when the viewport arguments are updated.
     14
     15        No tests. No change in behaviour.
     16
     17        * dom/Document.cpp:
     18        (WebCore::Document::setInPageCache):
     19        (WebCore::Document::documentDidResumeFromPageCache):
     20
    1212012-02-08  Shawn Singh  <shawnsingh@chromium.org>
    222
  • trunk/Source/WebCore/dom/Document.cpp

    r107057 r107135  
    40864086        m_savedRenderer = 0;
    40874087
    4088         updateViewportArguments();
    4089 
    40904088        if (childNeedsStyleRecalc())
    40914089            scheduleStyleRecalc();
     
    41284126    ASSERT(m_frame);
    41294127    m_frame->loader()->client()->dispatchDidBecomeFrameset(isFrameSet());
     4128
     4129    updateViewportArguments();
    41304130}
    41314131
Note: See TracChangeset for help on using the changeset viewer.