Changeset 52611 in webkit


Ignore:
Timestamp:
Dec 29, 2009 12:18:35 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-29 Robert Hogan <robert@roberthogan.net>

Reviewed by Eric Seidel.

[Qt] fix fast/dom/Window/window-onFocus.html


Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
window.onblur was getting dispatched twice from QtWebKit.


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

  • Api/qwebpage.cpp: (QWebPagePrivate::focusOutEvent):

2009-12-29 Robert Hogan <robert@roberthogan.net>

Reviewed by Eric Seidel.

[Qt] fix fast/dom/Window/window-onFocus.html


Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
window.onblur was getting dispatched twice from QtWebKit.


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

  • platform/qt/Skipped:

2009-12-29 Robert Hogan <robert@roberthogan.net>

Reviewed by Eric Seidel.

[Qt] fix fast/dom/Window/window-onFocus.html


Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
window.onblur was getting dispatched twice from QtWebKit.


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

  • DumpRenderTree/qt/DumpRenderTreeQt.cpp: (WebCore::DumpRenderTree::DumpRenderTree): (WebCore::DumpRenderTree::switchFocus):
  • DumpRenderTree/qt/DumpRenderTreeQt.h:
  • DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::setWindowIsKey): (LayoutTestController::setMainFrameIsFirstResponder):
  • DumpRenderTree/qt/LayoutTestControllerQt.h:
Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r52609 r52611  
     12009-12-29  Robert Hogan  <robert@roberthogan.net>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [Qt] fix fast/dom/Window/window-onFocus.html
     6       
     7        Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
     8        window.onblur was getting dispatched twice from QtWebKit.
     9       
     10        https://bugs.webkit.org/show_bug.cgi?id=32990
     11
     12        * platform/qt/Skipped:
     13
    1142009-12-28  Charles Wei  <charles.wei@torchmobile.com.cn>
    215
  • trunk/LayoutTests/platform/qt/Skipped

    r52608 r52611  
    431431fast/dom/object-embed-plugin-scripting.html
    432432fast/dom/replaceChild.html
    433 fast/dom/Window/window-onFocus.html
    434433fast/dynamic/layer-hit-test-crash.html
    435434# seems to trigger some bugs/missing features in QTextCodec
  • trunk/WebKit/qt/Api/qwebpage.cpp

    r52452 r52611  
    10691069    // focusInEvent() we can re-activate the frame.
    10701070    FocusController *focusController = page->focusController();
     1071    // Call setFocused first so that window.onblur doesn't get called twice
     1072    focusController->setFocused(false);
    10711073    focusController->setActive(false);
    1072     focusController->setFocused(false);
    10731074}
    10741075
  • trunk/WebKit/qt/ChangeLog

    r52552 r52611  
     12009-12-29  Robert Hogan  <robert@roberthogan.net>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [Qt] fix fast/dom/Window/window-onFocus.html
     6       
     7        Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
     8        window.onblur was getting dispatched twice from QtWebKit.
     9       
     10        https://bugs.webkit.org/show_bug.cgi?id=32990
     11
     12        * Api/qwebpage.cpp:
     13        (QWebPagePrivate::focusOutEvent):
     14
    1152009-12-24  Girish Ramakrishnan  <girish@forwardbias.in>
    216
  • trunk/WebKitTools/ChangeLog

    r52608 r52611  
     12009-12-29  Robert Hogan  <robert@roberthogan.net>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [Qt] fix fast/dom/Window/window-onFocus.html
     6       
     7        Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
     8        window.onblur was getting dispatched twice from QtWebKit.
     9       
     10        https://bugs.webkit.org/show_bug.cgi?id=32990
     11
     12        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
     13        (WebCore::DumpRenderTree::DumpRenderTree):
     14        (WebCore::DumpRenderTree::switchFocus):
     15        * DumpRenderTree/qt/DumpRenderTreeQt.h:
     16        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
     17        (LayoutTestController::setWindowIsKey):
     18        (LayoutTestController::setMainFrameIsFirstResponder):
     19        * DumpRenderTree/qt/LayoutTestControllerQt.h:
     20
    1212009-12-28  Kinuko Yasuda  <kinuko@chromium.org>
    222
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp

    r52601 r52611  
    319319    m_mainView->setPage(m_page);
    320320
    321     // create out controllers. This has to be done before connectFrame,
     321    // create our controllers. This has to be done before connectFrame,
    322322    // as it exports there to the JavaScript DOM window.
    323323    m_controller = new LayoutTestController(this);
     
    757757}
    758758
     759void DumpRenderTree::switchFocus(bool focused)
     760{
     761    QFocusEvent event((focused) ? QEvent::FocusIn : QEvent::FocusOut, Qt::ActiveWindowFocusReason);
     762    QApplication::sendEvent(m_mainView, &event);
     763}
     764
    759765#if defined(Q_WS_X11)
    760766void DumpRenderTree::initializeFonts()
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.h

    r52150 r52611  
    8989    QWebPage *createWindow();
    9090    int windowCount() const;
     91
     92    void switchFocus(bool focused);
    9193
    9294    WebPage *webPage() const { return m_page; }
  • trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp

    r52601 r52611  
    288288}
    289289
     290void LayoutTestController::setWindowIsKey(bool isKey)
     291{
     292    m_drt->switchFocus(isKey);
     293}
     294
     295void LayoutTestController::setMainFrameIsFirstResponder(bool isFirst)
     296{
     297    //FIXME: only need this for the moment: https://bugs.webkit.org/show_bug.cgi?id=32990
     298}
     299
    290300bool LayoutTestController::pauseAnimationAtTimeOnElementWithId(const QString& animationName,
    291301                                                               double time,
  • trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h

    r52118 r52611  
    114114    void setPOSIXLocale(const QString& locale);
    115115    void resetLoadFinished() { m_loadFinished = false; }
     116    void setWindowIsKey(bool isKey);
     117    void setMainFrameIsFirstResponder(bool isFirst);
    116118
    117119    bool pauseAnimationAtTimeOnElementWithId(const QString& animationName, double time, const QString& elementId);
Note: See TracChangeset for help on using the changeset viewer.