Changeset 73735 in webkit
- Timestamp:
- Dec 10, 2010 9:16:17 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r73732 r73735 1 2010-12-10 Joone Hur <joone@kldp.org> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Unskipping some test cases in userscripts dependent on addUserStyleSheet 6 https://bugs.webkit.org/show_bug.cgi?id=50808 7 8 Unskipping the following test cases: 9 userscripts/mixed-case-stylesheet.html 10 userscripts/simple-stylesheet.html 11 userscripts/user-style-all-frames.html 12 13 * platform/gtk/Skipped: 14 1 15 2010-12-10 Mario Sanchez Prada <msanchez@igalia.com> 2 16 -
trunk/LayoutTests/platform/gtk/Skipped
r73732 r73735 4702 4702 4703 4703 # No User Scripts 4704 userscripts 4704 userscripts/script-not-run-for-fragments.html 4705 userscripts/script-run-at-end.html 4706 userscripts/script-run-at-start.html 4707 userscripts/user-script-all-frames.html 4708 userscripts/user-script-audio-document.html 4709 userscripts/user-script-image-document.html 4710 userscripts/user-script-plugin-document.html 4711 userscripts/user-script-top-frame-only.html 4712 userscripts/user-script-video-document.html 4713 userscripts/user-style-top-frame-only.html 4705 4714 4706 4715 # XHR sends sometimes yield null bytes sent instead of 0. -
trunk/WebKit/gtk/ChangeLog
r73727 r73735 10 10 11 11 * WebCoreSupport/DumpRenderTreeSupportGtk.h: Do it. 12 13 2010-12-10 Joone Hur <joone@kldp.org> 14 15 Reviewed by Xan Lopez. 16 17 [GTK] Unskipping some test cases in /userscripts dependent on addUserStyleSheet 18 https://bugs.webkit.org/show_bug.cgi?id=50808 19 20 Unskipping the following test cases: 21 userscripts/mixed-case-stylesheet.html 22 userscripts/simple-stylesheet.html 23 userscripts/user-style-all-frames.html 24 25 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: 26 (DumpRenderTreeSupportGtk::addUserStyleSheet): Added "bool allFrames" parameter. 27 * WebCoreSupport/DumpRenderTreeSupportGtk.h: 12 28 13 29 2010-12-10 Joone Hur <joone@kldp.org> -
trunk/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp
r73714 r73735 310 310 * 311 311 */ 312 void DumpRenderTreeSupportGtk::addUserStyleSheet(WebKitWebFrame* frame, const char* sourceCode )312 void DumpRenderTreeSupportGtk::addUserStyleSheet(WebKitWebFrame* frame, const char* sourceCode, bool allFrames) 313 313 { 314 314 g_return_if_fail(WEBKIT_IS_WEB_FRAME(frame)); … … 320 320 WebKitWebView* webView = getViewFromFrame(frame); 321 321 Page* page = core(webView); 322 page->group().addUserStyleSheetToWorld(mainThreadNormalWorld(), sourceCode, KURL(), 0, 0, WebCore::InjectInAllFrames);322 page->group().addUserStyleSheetToWorld(mainThreadNormalWorld(), sourceCode, KURL(), 0, 0, allFrames ? InjectInAllFrames : InjectInTopFrameOnly); 323 323 } 324 324 -
trunk/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.h
r73727 r73735 54 54 static bool isPageBoxVisible(WebKitWebFrame*, int pageNumber); 55 55 static WTF::CString pageSizeAndMarginsInPixels(WebKitWebFrame*, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft); 56 static void addUserStyleSheet(WebKitWebFrame*, const char* sourceCode );56 static void addUserStyleSheet(WebKitWebFrame*, const char* sourceCode, bool allFrames); 57 57 static guint getPendingUnloadEventCount(WebKitWebFrame*); 58 58 static bool pauseAnimation(WebKitWebFrame*, const char* name, double time, const char* element); -
trunk/WebKitTools/ChangeLog
r73733 r73735 41 41 * WebKitTestRunner/qt/PlatformWebViewQt.cpp: 42 42 (WTR::WebView::WebView): 43 44 2010-12-10 Joone Hur <joone@kldp.org> 45 46 Reviewed by Xan Lopez. 47 48 [GTK] Unskipping some test cases in userscripts dependent on addUserStyleSheet 49 https://bugs.webkit.org/show_bug.cgi?id=50808 50 51 Unskipping the following test cases: 52 userscripts/mixed-case-stylesheet.html 53 userscripts/simple-stylesheet.html 54 userscripts/user-style-all-frames.html 55 56 * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: 57 (LayoutTestController::addUserStyleSheet): 43 58 44 59 2010-12-10 Joone Hur <joone@kldp.org> -
trunk/WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp
r73714 r73735 717 717 { 718 718 GOwnPtr<gchar> sourceCode(JSStringCopyUTF8CString(source)); 719 DumpRenderTreeSupportGtk::addUserStyleSheet(mainFrame, sourceCode.get()); 719 DumpRenderTreeSupportGtk::addUserStyleSheet(mainFrame, sourceCode.get(), allFrames); 720 // FIXME: needs more investigation why userscripts/user-style-top-frame-only.html fails when allFrames is false. 721 720 722 } 721 723
Note: See TracChangeset
for help on using the changeset viewer.