Changeset 54942 in webkit
- Timestamp:
- Feb 18, 2010 12:17:39 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r54934 r54942 65 65 * Scripts/webkitpy/style/filter_unittest.py: 66 66 - Updated to reflect the change from user_rules to _user_rules. 67 68 2010-02-17 Shinichiro Hamaji <hamaji@chromium.org> 69 70 Reviewed by Eric Seidel. 71 72 Share the DRT values maxViewWidth/Height among ports 73 https://bugs.webkit.org/show_bug.cgi?id=34474 74 75 * DumpRenderTree/LayoutTestController.cpp: 76 (pageNumberForElementByIdCallback): 77 * DumpRenderTree/LayoutTestController.h: 78 (LayoutTestController::maxViewWidth): 79 (LayoutTestController::maxViewHeight): 80 * DumpRenderTree/gtk/DumpRenderTree.cpp: 81 (runTest): 82 * DumpRenderTree/mac/DumpRenderTree.mm: 83 (createWebViewAndOffscreenWindow): 84 (sizeWebViewForCurrentTest): 85 * DumpRenderTree/win/DumpRenderTree.cpp: 86 (dump): 87 (createWebViewAndOffscreenWindow): 67 88 68 89 2010-02-17 Shinichiro Hamaji <hamaji@chromium.org> -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.cpp
r54873 r54942 468 468 static bool parsePageParameters(JSContextRef context, int argumentCount, const JSValueRef* arguments, JSValueRef* exception, float& pageWidthInPixels, float& pageHeightInPixels) 469 469 { 470 // FIXME: These values should sync with maxViewWidth/Height in 471 // DumpRenderTree.mm. Factor these values out to somewhere. 472 pageWidthInPixels = 800; 473 pageHeightInPixels = 600; 470 pageWidthInPixels = LayoutTestController::maxViewWidth; 471 pageHeightInPixels = LayoutTestController::maxViewHeight; 474 472 switch (argumentCount) { 475 473 case 2: … … 1506 1504 setlocale(LC_ALL, localeBuf); 1507 1505 } 1506 1507 const unsigned LayoutTestController::maxViewWidth = 800; 1508 const unsigned LayoutTestController::maxViewHeight = 600; -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.h
r54873 r54942 235 235 void setPOSIXLocale(JSStringRef locale); 236 236 237 static const unsigned maxViewWidth; 238 static const unsigned maxViewHeight; 239 237 240 private: 238 241 bool m_dumpAsPDF; -
trunk/WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp
r54900 r54942 95 95 static WebKitWebHistoryItem* prevTestBFItem = NULL; 96 96 97 const unsigned maxViewHeight = 600;98 const unsigned maxViewWidth = 800;99 97 const unsigned historyItemIndent = 8; 100 98 … … 480 478 GtkAllocation size; 481 479 size.x = size.y = 0; 482 size.width = isSVGW3CTest ? 480 : maxViewWidth;483 size.height = isSVGW3CTest ? 360 : maxViewHeight;480 size.width = isSVGW3CTest ? 480 : LayoutTestController::maxViewWidth; 481 size.height = isSVGW3CTest ? 360 : LayoutTestController::maxViewHeight; 484 482 gtk_window_resize(GTK_WINDOW(window), size.width, size.height); 485 483 gtk_widget_size_allocate(container, &size); -
trunk/WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm
r54873 r54942 135 135 static WebHistoryItem *prevTestBFItem = nil; // current b/f item at the end of the previous test 136 136 137 const unsigned maxViewHeight = 600;138 const unsigned maxViewWidth = 800;139 140 137 #if __OBJC2__ 141 138 static void swizzleAllMethods(Class imposter, Class original) … … 280 277 WebView *createWebViewAndOffscreenWindow() 281 278 { 282 NSRect rect = NSMakeRect(0, 0, maxViewWidth,maxViewHeight);279 NSRect rect = NSMakeRect(0, 0, LayoutTestController::maxViewWidth, LayoutTestController::maxViewHeight); 283 280 WebView *webView = [[WebView alloc] initWithFrame:rect frameName:nil groupName:@"org.webkit.DumpRenderTree"]; 284 281 … … 1022 1019 [[mainFrame webView] setFrameSize:NSMakeSize(480, 360)]; 1023 1020 else 1024 [[mainFrame webView] setFrameSize:NSMakeSize( maxViewWidth,maxViewHeight)];1021 [[mainFrame webView] setFrameSize:NSMakeSize(LayoutTestController::maxViewWidth, LayoutTestController::maxViewHeight)]; 1025 1022 } 1026 1023 -
trunk/WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp
r54873 r54942 107 107 108 108 UINT_PTR waitToDumpWatchdog = 0; 109 110 const unsigned maxViewWidth = 800;111 const unsigned maxViewHeight = 600;112 109 113 110 void setPersistentUserStyleSheetLocation(CFStringRef url) … … 668 665 height = 360; 669 666 } else { 670 width = maxViewWidth;671 height = maxViewHeight;667 width = LayoutTestController::maxViewWidth; 668 height = LayoutTestController::maxViewHeight; 672 669 } 673 670 … … 1099 1096 IWebView* createWebViewAndOffscreenWindow(HWND* webViewWindow) 1100 1097 { 1098 unsigned maxViewWidth = LayoutTestController::maxViewWidth; 1099 unsigned maxViewHeight = LayoutTestController::maxViewHeight; 1101 1100 HWND hostWindow = CreateWindowEx(WS_EX_TOOLWINDOW, kDumpRenderTreeClassName, TEXT("DumpRenderTree"), WS_POPUP, 1102 1101 -maxViewWidth, -maxViewHeight, maxViewWidth, maxViewHeight, 0, 0, GetModuleHandle(0), 0);
Note: See TracChangeset
for help on using the changeset viewer.