Changeset 55580 in webkit


Ignore:
Timestamp:
Mar 5, 2010 7:58:58 AM (14 years ago)
Author:
tonikitoo@webkit.org
Message:

[Qt] Add setSpatialNavigationEnabled method DRT
https://bugs.webkit.org/show_bug.cgi?id=33715

Reviewed by Simon Hausmann.
Patch by Antonio Gomes <tonikitoo@webkit.org>

Added setSpatialNavigationEnabled support to Qt DRT.

  • DumpRenderTree/qt/DumpRenderTreeQt.cpp:

(WebCore::WebPage::WebPage):
(WebCore::WebPage::resetSettings):

  • DumpRenderTree/qt/LayoutTestControllerQt.cpp:

(LayoutTestController::setSpatialNavigationEnabled):

  • DumpRenderTree/qt/LayoutTestControllerQt.h:

Unskipped fast/events/spatial-navigation/

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/platform/qt/Skipped

    r55577 r55580  
    50965096# Core functionality is tested in plugins/private-browsing-mode-2.html
    50975097plugins/private-browsing-mode.html
    5098 
    5099 # Need to add functionality to DumpRenderTree to handle enable/disable Spatial Navigation
    5100 fast/events/spatial-navigation
  • trunk/WebKitTools/ChangeLog

    r55565 r55580  
     12010-03-02  Antonio Gomes  <tonikitoo@webkit.org>
     2
     3        Reviewed by Simon Hausmann.
     4        Patch by Antonio Gomes <tonikitoo@webkit.org>
     5
     6        [Qt] Add setSpatialNavigationEnabled method DRT
     7        https://bugs.webkit.org/show_bug.cgi?id=33715
     8
     9        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
     10        (WebCore::WebPage::WebPage):
     11        (WebCore::WebPage::resetSettings):
     12        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
     13        (LayoutTestController::setSpatialNavigationEnabled):
     14        * DumpRenderTree/qt/LayoutTestControllerQt.h:
     15
     16        Unskipped fast/events/spatialnavigation/
     17
    1182010-03-04  Mark Rowe  <mrowe@apple.com>
    219
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp

    r55541 r55580  
    133133    globalSettings->setAttribute(QWebSettings::JavascriptEnabled, true);
    134134    globalSettings->setAttribute(QWebSettings::PrivateBrowsingEnabled, false);
     135    globalSettings->setAttribute(QWebSettings::SpatialNavigationEnabled, false);
    135136
    136137    connect(this, SIGNAL(geometryChangeRequested(const QRect &)),
     
    163164    settings()->resetAttribute(QWebSettings::JavascriptEnabled);
    164165    settings()->resetAttribute(QWebSettings::PrivateBrowsingEnabled);
     166    settings()->resetAttribute(QWebSettings::SpatialNavigationEnabled);
    165167    settings()->resetAttribute(QWebSettings::LinksIncludedInFocusChain);
    166168    settings()->resetAttribute(QWebSettings::OfflineWebApplicationCacheEnabled);
  • trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp

    r55280 r55580  
    345345}
    346346
     347void LayoutTestController::setSpatialNavigationEnabled(bool enable)
     348{
     349    m_drt->webPage()->settings()->setAttribute(QWebSettings::SpatialNavigationEnabled, enable);
     350}
     351
    347352void LayoutTestController::setPopupBlockingEnabled(bool enable)
    348353{
  • trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h

    r55280 r55580  
    129129    void setFixedContentsSize(int width, int height);
    130130    void setPrivateBrowsingEnabled(bool enable);
     131    void setSpatialNavigationEnabled(bool enabled);
    131132    void setPopupBlockingEnabled(bool enable);
    132133    void setPOSIXLocale(const QString& locale);
Note: See TracChangeset for help on using the changeset viewer.