Changeset 117592 in webkit


Ignore:
Timestamp:
May 18, 2012 7:38:14 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt][WK2] fast/events/page-visibility-iframe-move-test.html fails
https://bugs.webkit.org/show_bug.cgi?id=86731

Patch by Hugo Parente Lima <Hugo Parente Lima> on 2012-05-18
Reviewed by Simon Hausmann.

Source/WebKit2:

Set the page visibility on a single page instead of on all pages
from the page group.

  • WebProcess/InjectedBundle/API/c/WKBundle.cpp:

(WKBundleSetPageVisibilityState):

  • WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  • WebProcess/InjectedBundle/InjectedBundle.cpp:

(WebKit::InjectedBundle::setPageVisibilityState):

  • WebProcess/InjectedBundle/InjectedBundle.h:

(InjectedBundle):

Tools:

Set the page visibility on a single page instead of on all pages
from the page group.

  • WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:

(WTR::LayoutTestController::setPageVisibility):
(WTR::LayoutTestController::resetPageVisibility):

LayoutTests:

Unskip fast/events/page-visibility-iframe-move-test.html.

  • platform/qt-5.0-wk2/Skipped:
Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r117591 r117592  
     12012-05-18  Hugo Parente Lima  <hugo.lima@openbossa.org>
     2
     3        [Qt][WK2] fast/events/page-visibility-iframe-move-test.html fails
     4        https://bugs.webkit.org/show_bug.cgi?id=86731
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Unskip fast/events/page-visibility-iframe-move-test.html.
     9
     10        * platform/qt-5.0-wk2/Skipped:
     11
    1122012-05-18  Raphael Kubo da Costa  <rakuco@webkit.org>
    213
  • trunk/LayoutTests/platform/qt-5.0-wk2/Skipped

    r117580 r117592  
    7474fast/loader/policy-delegate-action-hit-test-zoomed.html
    7575
    76 # Still failing after implementing layoutTestController.setPageVisibility()
    77 # https://bugs.webkit.org/show_bug.cgi?id=83263
    78 fast/events/page-visibility-iframe-move-test.html
    79 
    8076svg/custom/use-events-crash.svg
    8177
  • trunk/Source/WebKit2/ChangeLog

    r117578 r117592  
     12012-05-18  Hugo Parente Lima  <hugo.lima@openbossa.org>
     2
     3        [Qt][WK2] fast/events/page-visibility-iframe-move-test.html fails
     4        https://bugs.webkit.org/show_bug.cgi?id=86731
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Set the page visibility on a single page instead of on all pages
     9        from the page group.
     10
     11        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
     12        (WKBundleSetPageVisibilityState):
     13        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
     14        * WebProcess/InjectedBundle/InjectedBundle.cpp:
     15        (WebKit::InjectedBundle::setPageVisibilityState):
     16        * WebProcess/InjectedBundle/InjectedBundle.h:
     17        (InjectedBundle):
     18
    1192012-05-18  MORITA Hajime  <morrita@google.com>
    220
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp

    r113235 r117592  
    242242}
    243243
    244 void WKBundleSetPageVisibilityState(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, int state, bool isInitialState)
    245 {
    246     toImpl(bundleRef)->setPageVisibilityState(toImpl(pageGroupRef), state, isInitialState);
    247 }
     244void WKBundleSetPageVisibilityState(WKBundleRef bundleRef, WKBundlePageRef pageRef, int state, bool isInitialState)
     245{
     246    toImpl(bundleRef)->setPageVisibilityState(toImpl(pageRef), state, isInitialState);
     247}
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h

    r113235 r117592  
    9191WK_EXPORT void WKBundleSwitchNetworkLoaderToNewTestingSession(WKBundleRef bundle);
    9292
    93 WK_EXPORT void WKBundleSetPageVisibilityState(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, int state, bool isInitialState);
     93WK_EXPORT void WKBundleSetPageVisibilityState(WKBundleRef bundle, WKBundlePageRef page, int state, bool isInitialState);
    9494
    9595#ifdef __cplusplus
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp

    r117248 r117592  
    459459}
    460460
    461 void InjectedBundle::setPageVisibilityState(WebPageGroupProxy* pageGroup, int state, bool isInitialState)
     461void InjectedBundle::setPageVisibilityState(WebPage* page, int state, bool isInitialState)
    462462{
    463463#if ENABLE(PAGE_VISIBILITY_API)
    464     const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages();
    465     for (HashSet<Page*>::iterator iter = pages.begin(); iter != pages.end(); ++iter)
    466         (*iter)->setVisibilityState(static_cast<PageVisibilityState>(state), isInitialState);
     464    page->corePage()->setVisibilityState(static_cast<PageVisibilityState>(state), isInitialState);
    467465#endif
    468466}
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h

    r113235 r117592  
    157157    static bool isProcessingUserGesture();
    158158
    159     void setPageVisibilityState(WebPageGroupProxy*, int state, bool isInitialState);
     159    void setPageVisibilityState(WebPage*, int state, bool isInitialState);
    160160
    161161private:
  • trunk/Tools/ChangeLog

    r117590 r117592  
     12012-05-18  Hugo Parente Lima  <hugo.lima@openbossa.org>
     2
     3        [Qt][WK2] fast/events/page-visibility-iframe-move-test.html fails
     4        https://bugs.webkit.org/show_bug.cgi?id=86731
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Set the page visibility on a single page instead of on all pages
     9        from the page group.
     10
     11        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
     12        (WTR::LayoutTestController::setPageVisibility):
     13        (WTR::LayoutTestController::resetPageVisibility):
     14
    1152012-05-18  Yi Shen  <yi.4.shen@nokia.com>
    216
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp

    r117435 r117592  
    555555        visibilityState = WebCore::PageVisibilityStatePreview;
    556556
    557     WKBundleSetPageVisibilityState(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), visibilityState, /* isInitialState */ false);
     557    WKBundleSetPageVisibilityState(InjectedBundle::shared().bundle(), InjectedBundle::shared().page()->page(), visibilityState, /* isInitialState */ false);
    558558}
    559559
    560560void LayoutTestController::resetPageVisibility()
    561561{
    562     WKBundleSetPageVisibilityState(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), WebCore::PageVisibilityStateVisible, /* isInitialState */ true);
     562    WKBundleSetPageVisibilityState(InjectedBundle::shared().bundle(), InjectedBundle::shared().page()->page(), WebCore::PageVisibilityStateVisible, /* isInitialState */ true);
    563563}
    564564
Note: See TracChangeset for help on using the changeset viewer.