Changeset 59163 in webkit


Ignore:
Timestamp:
May 11, 2010 12:20:22 PM (14 years ago)
Author:
tonikitoo@webkit.org
Message:

[Qt] emit initialLayoutCompleted signal from FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout
https://bugs.webkit.org/show_bug.cgi?id=38921

Reviewed by Kenneth Christiansen.
Patch by Antonio Gomes <tonikitoo@webkit.org>

Emit initialLayoutCompleted signal from FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout
instead of FrameLoaderClientQt::dispatchDidFirstLayout , because the former ensures that a
visual content layed out on the frame.

It matches to QWebFrame::initialLayoutCompleted signal documentation at:

"... This is the first time you will see contents displayed on the frame ..."

  • WebCoreSupport/FrameLoaderClientQt.cpp:

(WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
(WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):

Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r59152 r59163  
     12010-05-11  Antonio Gomes  <tonikitoo@webkit.org>
     2
     3        Reviewed by Kenneth Christiansen.
     4
     5        [Qt] emit initialLayoutCompleted signal from FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout
     6        https://bugs.webkit.org/show_bug.cgi?id=38921
     7
     8        Emit initialLayoutCompleted signal from FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout
     9        instead of FrameLoaderClientQt::dispatchDidFirstLayout , because the former ensures that a
     10        visual content layed out on the frame.
     11
     12        It matches to QWebFrame::initialLayoutCompleted signal documentation at:
     13
     14        "... This is the first time you will see contents displayed on the frame ..."
     15
     16        * WebCoreSupport/FrameLoaderClientQt.cpp:
     17        (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
     18        (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
     19
    1202010-05-11  Jesus Sanchez-Palencia  <jesus@webkit.org>
    221
  • trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp

    r58523 r59163  
    447447void FrameLoaderClientQt::dispatchDidFirstLayout()
    448448{
     449    notImplemented();
     450}
     451
     452void FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout()
     453{
    449454    if (m_webFrame)
    450455        emit m_webFrame->initialLayoutCompleted();
    451 }
    452 
    453 void FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout()
    454 {
    455     notImplemented();
    456456}
    457457
Note: See TracChangeset for help on using the changeset viewer.