Changeset 113719 in webkit


Ignore:
Timestamp:
Apr 10, 2012 8:35:37 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] LayoutTestController needs implementation of addUserStyleSheet
https://bugs.webkit.org/show_bug.cgi?id=82446

Source/WebKit/efl:

Add missing implementation addUserStyleSheet to EFL's
DumpRenderTreeSupport.

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-04-10
Reviewed by Antonio Gomes.

  • WebCoreSupport/DumpRenderTreeSupportEfl.cpp:

(DumpRenderTreeSupportEfl::addUserStyleSheet):

  • WebCoreSupport/DumpRenderTreeSupportEfl.h:

Tools:

Adding missing implementation addUserStyleSheet to EFL's LayoutTestController
so that we can unskip related tests from the skip list.

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-04-10
Reviewed by Antonio Gomes.

  • DumpRenderTree/efl/LayoutTestControllerEfl.cpp:

(LayoutTestController::addUserStyleSheet): Implemented.

LayoutTests:

Unskipping the following test cases:
userscripts/mixed-case-stylesheet.html
userscripts/user-style-all-frames.html
userscripts/simple-stylesheet.html
userscripts/script-run-at-end.html

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-04-10
Reviewed by Antonio Gomes.

  • platform/efl/Skipped:
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r113717 r113719  
     12012-04-10  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
     2
     3        [EFL] LayoutTestController needs implementation of addUserStyleSheet
     4        https://bugs.webkit.org/show_bug.cgi?id=82446
     5
     6        Unskipping the following test cases:
     7        userscripts/mixed-case-stylesheet.html
     8        userscripts/user-style-all-frames.html
     9        userscripts/simple-stylesheet.html
     10        userscripts/script-run-at-end.html
     11
     12        Reviewed by Antonio Gomes.
     13
     14        * platform/efl/Skipped:
     15
    1162012-04-10  Csaba Osztrogonác  <ossy@webkit.org>
    217
  • trunk/LayoutTests/platform/efl/Skipped

    r113704 r113719  
    633633
    634634# EFL's LayoutTestController does not implement addUserScript
    635 userscripts
    636 
    637 # EFL's LayoutTestController does not implement addUserStyleSheet
    638 #userscripts
    639 printing/page-rule-selection.html
     635userscripts/document-element-available-at-start.html
     636userscripts/script-not-run-for-fragments.html
     637userscripts/script-run-at-start.html
     638userscripts/user-script-all-frames.html
     639userscripts/user-script-audio-document.html
     640userscripts/user-script-image-document.html
     641userscripts/user-script-plugin-document.html
     642userscripts/user-script-top-frame-only.html
     643userscripts/user-script-video-document.html
     644userscripts/user-style-top-frame-only.html
     645userscripts/window-onerror-for-isolated-world-1.html
     646userscripts/window-onerror-for-isolated-world-2.html
    640647
    641648# EFL's LayoutTestController does not implement setAsynchronousSpellCheckingEnabled
  • trunk/Source/WebKit/efl/ChangeLog

    r113293 r113719  
     12012-04-10  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
     2
     3        [EFL] LayoutTestController needs implementation of addUserStyleSheet
     4        https://bugs.webkit.org/show_bug.cgi?id=82446
     5
     6        Add missing implementation addUserStyleSheet to EFL's
     7        DumpRenderTreeSupport.
     8
     9        Reviewed by Antonio Gomes.
     10
     11        * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
     12        (DumpRenderTreeSupportEfl::addUserStyleSheet):
     13        * WebCoreSupport/DumpRenderTreeSupportEfl.h:
     14
    1152012-04-04  Raphael Kubo da Costa  <rakuco@webkit.org>
    216
  • trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp

    r113198 r113719  
    3838#include <JSCSSStyleDeclaration.h>
    3939#include <JSElement.h>
     40#include <PageGroup.h>
    4041#include <PrintContext.h>
    4142#include <RenderTreeAsText.h>
     
    351352}
    352353
     354void DumpRenderTreeSupportEfl::addUserStyleSheet(const Evas_Object* ewkView, const char* sourceCode, bool allFrames)
     355{
     356    WebCore::Page* page = EWKPrivate::corePage(ewkView);
     357    if (!page)
     358        return;
     359
     360    page->group().addUserStyleSheetToWorld(WebCore::mainThreadNormalWorld(), sourceCode, WebCore::KURL(), nullptr, nullptr, allFrames ? WebCore::InjectInAllFrames : WebCore::InjectInTopFrameOnly);
     361}
     362
    353363bool DumpRenderTreeSupportEfl::findString(const Evas_Object* ewkView, const char* text, WebCore::FindOptions options)
    354364{
  • trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h

    r113198 r113719  
    6969    static void setDefersLoading(Evas_Object* ewkView, bool defers);
    7070
     71    static void addUserStyleSheet(const Evas_Object* ewkView, const char* sourceCode, bool allFrames);
    7172    static bool findString(const Evas_Object* ewkView, const char* text, WebCore::FindOptions);
    7273    static void setSmartInsertDeleteEnabled(Evas_Object* ewkView, bool enabled);
  • trunk/Tools/ChangeLog

    r113718 r113719  
     12012-04-10  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
     2
     3        [EFL] LayoutTestController needs implementation of addUserStyleSheet
     4        https://bugs.webkit.org/show_bug.cgi?id=82446
     5
     6        Adding missing implementation addUserStyleSheet to EFL's LayoutTestController
     7        so that we can unskip related tests from the skip list.
     8
     9        Reviewed by Antonio Gomes.
     10
     11        * DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
     12        (LayoutTestController::addUserStyleSheet): Implemented.
     13
    1142012-04-10  Philip Rogers  <pdr@google.com>
    215
  • trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp

    r113198 r113719  
    656656}
    657657
    658 void LayoutTestController::addUserStyleSheet(JSStringRef, bool)
    659 {
    660     // FIXME: needs more investigation why userscripts/user-style-top-frame-only.html fails when allFrames is false.
    661     notImplemented();
     658void LayoutTestController::addUserStyleSheet(JSStringRef source, bool allFrames)
     659{
     660    DumpRenderTreeSupportEfl::addUserStyleSheet(browser->mainView(), source->ustring().utf8().data(), allFrames);
    662661}
    663662
Note: See TracChangeset for help on using the changeset viewer.