Changeset 84721 in webkit


Ignore:
Timestamp:
Apr 22, 2011 6:14:15 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-22 Chang Shu <cshu@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
https://bugs.webkit.org/show_bug.cgi?id=42536

Unskip passed tests.

  • platform/mac-wk2/Skipped:
  • platform/qt-wk2/Skipped:

2011-04-22 Chang Shu <cshu@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
https://bugs.webkit.org/show_bug.cgi?id=42536

  • WebProcess/InjectedBundle/API/c/WKBundle.cpp: (WKBundleSetFrameFlatteningEnabled):
  • WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  • WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::setFrameFlatteningEnabled):
  • WebProcess/InjectedBundle/InjectedBundle.h:

2011-04-22 Chang Shu <cshu@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
https://bugs.webkit.org/show_bug.cgi?id=42536

  • WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
  • WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: (WTR::LayoutTestController::setFrameFlatteningEnabled):
  • WebKitTestRunner/InjectedBundle/LayoutTestController.h:
Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r84720 r84721  
     12011-04-22  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
     6        https://bugs.webkit.org/show_bug.cgi?id=42536
     7
     8        Unskip passed tests.
     9
     10        * platform/mac-wk2/Skipped:
     11        * platform/qt-wk2/Skipped:
     12
    1132011-04-22  Xiaomei Ji  <xji@chromium.org>
    214
  • trunk/LayoutTests/platform/mac-wk2/Skipped

    r84715 r84721  
    11521152platform/mac/editing/deleting/deletionUI-successful-deletion.html
    11531153
    1154 # WebKitTestRunner needs to support layoutTestController.setFrameFlatteningEnabled
    1155 # <https://bugs.webkit.org/show_bug.cgi?id=42536>
    1156 fast/frames/flattening/iframe-flattening-crash.html
    1157 fast/frames/flattening/iframe-flattening-selection-crash.html
    1158 fast/frames/flattening/frameset-flattening-advanced.html
    1159 fast/frames/flattening/frameset-flattening-grid.html
    1160 fast/frames/flattening/frameset-flattening-simple.html
    1161 fast/frames/flattening/frameset-flattening-subframe-resize.html
    1162 fast/frames/flattening/frameset-flattening-subframesets.html
    1163 fast/frames/flattening/iframe-flattening-fixed-height.html
    1164 fast/frames/flattening/iframe-flattening-fixed-width-and-height.html
    1165 fast/frames/flattening/iframe-flattening-fixed-width-and-height-no-scrolling.html
    1166 fast/frames/flattening/iframe-flattening-fixed-width.html
    1167 fast/frames/flattening/iframe-flattening-offscreen.html
    1168 fast/frames/flattening/iframe-flattening-simple.html
    1169 
    11701154# WebKitTestRunner needs layoutTestController.dumpDatabaseCallbacks
    11711155# <https://bugs.webkit.org/show_bug.cgi?id=57570>
  • trunk/LayoutTests/platform/qt-wk2/Skipped

    r84715 r84721  
    16071607editing/deleting/5408255.html
    16081608editing/deleting/deletionUI-single-instance.html
    1609 
    1610 # WebKitTestRunner needs to support layoutTestController.setFrameFlatteningEnabled
    1611 # <https://bugs.webkit.org/show_bug.cgi?id=42536>
    1612 fast/frames/flattening/frameset-flattening-advanced.html
    1613 fast/frames/flattening/frameset-flattening-grid.html
    1614 fast/frames/flattening/frameset-flattening-simple.html
    1615 fast/frames/flattening/frameset-flattening-subframe-resize.html
    1616 fast/frames/flattening/frameset-flattening-subframesets.html
    1617 fast/frames/flattening/iframe-flattening-fixed-height.html
    1618 fast/frames/flattening/iframe-flattening-fixed-width-and-height.html
    1619 fast/frames/flattening/iframe-flattening-fixed-width-and-height-no-scrolling.html
    1620 fast/frames/flattening/iframe-flattening-fixed-width.html
    1621 fast/frames/flattening/iframe-flattening-offscreen.html
    1622 fast/frames/flattening/iframe-flattening-simple.html
    16231609
    16241610# WebKitTestRunner needs layoutTestController.dumpResourceResponseMIMETypes
  • trunk/Source/WebKit2/ChangeLog

    r84712 r84721  
     12011-04-22  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
     6        https://bugs.webkit.org/show_bug.cgi?id=42536
     7
     8        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
     9        (WKBundleSetFrameFlatteningEnabled):
     10        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
     11        * WebProcess/InjectedBundle/InjectedBundle.cpp:
     12        (WebKit::InjectedBundle::setFrameFlatteningEnabled):
     13        * WebProcess/InjectedBundle/InjectedBundle.h:
     14
    1152011-04-22  Alejandro G. Castro  <alex@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
    216
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp

    r83195 r84721  
    139139}
    140140
     141void WKBundleSetFrameFlatteningEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)
     142{
     143    toImpl(bundleRef)->setFrameFlatteningEnabled(toImpl(pageGroupRef), enabled);
     144}
     145
    141146void WKBundleReportException(JSContextRef context, JSValueRef exception)
    142147{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h

    r83195 r84721  
    6868WK_EXPORT void WKBundleOverrideAllowUniversalAccessFromFileURLsForTestRunner(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
    6969WK_EXPORT void WKBundleSetAllowFileAccessFromFileURLs(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
     70WK_EXPORT void WKBundleSetFrameFlatteningEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
    7071WK_EXPORT void WKBundleClearAllDatabases(WKBundleRef bundle);
    7172WK_EXPORT void WKBundleSetDatabaseQuota(WKBundleRef bundle, uint64_t);
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp

    r83195 r84721  
    136136}
    137137
     138void InjectedBundle::setFrameFlatteningEnabled(WebPageGroupProxy* pageGroup, bool enabled)
     139{
     140    const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages();
     141    for (HashSet<Page*>::iterator iter = pages.begin(); iter != pages.end(); ++iter)
     142        (*iter)->settings()->setFrameFlatteningEnabled(enabled);
     143}
     144
    138145void InjectedBundle::clearAllDatabases()
    139146{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h

    r83195 r84721  
    9494    void overrideAllowUniversalAccessFromFileURLsForTestRunner(WebPageGroupProxy*, bool);
    9595    void setAllowFileAccessFromFileURLs(WebPageGroupProxy*, bool);
     96    void setFrameFlatteningEnabled(WebPageGroupProxy*, bool);
    9697    int numberOfPages(WebFrame*, double, double);
    9798    int pageNumberForElementById(WebFrame*, const String&, double, double);
  • trunk/Tools/ChangeLog

    r84704 r84721  
     12011-04-22  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        WebKitTestRunner needs layoutTestController.setFrameFlatteningEnabled
     6        https://bugs.webkit.org/show_bug.cgi?id=42536
     7
     8        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
     9        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
     10        (WTR::LayoutTestController::setFrameFlatteningEnabled):
     11        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
     12
    1132011-04-22  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl

    r84472 r84721  
    5050        void setAllowUniversalAccessFromFileURLs(in boolean value);
    5151        void setAllowFileAccessFromFileURLs(in boolean value);
     52        void setFrameFlatteningEnabled(in boolean value);
    5253
    5354        // Special DOM functions.
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp

    r84472 r84721  
    327327}
    328328
     329void LayoutTestController::setFrameFlatteningEnabled(bool enabled)
     330{
     331    WKBundleSetFrameFlatteningEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled);
     332}
     333
    329334int LayoutTestController::numberOfPages(double pageWidthInPixels, double pageHeightInPixels)
    330335{
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h

    r84472 r84721  
    7878    void setAllowUniversalAccessFromFileURLs(bool);
    7979    void setAllowFileAccessFromFileURLs(bool);
     80    void setFrameFlatteningEnabled(bool);
    8081
    8182    // Special DOM functions.
Note: See TracChangeset for help on using the changeset viewer.