Changeset 49253 in webkit
- Timestamp:
- Oct 7, 2009 10:47:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r49230 r49253 1 2009-10-07 Evan Martin <evan@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Layout test for verifying that LC_NUMERIC setting doesn't affect 6 the way CSS properties are stringified. 7 https://bugs.webkit.org/show_bug.cgi?id=18994 8 9 * fast/css/opacity-float-expected.txt: Added. 10 * fast/css/opacity-float.html: Added. 11 1 12 2009-10-07 Xan Lopez <xlopez@igalia.com> 2 13 -
trunk/WebKitTools/ChangeLog
r49246 r49253 1 2009-10-07 Evan Martin <evan@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Add API to LayoutTestController for re/setting the system locale. 6 https://bugs.webkit.org/show_bug.cgi?id=18994 7 8 * DumpRenderTree/LayoutTestController.cpp: 9 (setLocaleCallback): 10 (LayoutTestController::staticFunctions): 11 (LayoutTestController::setLocale): 12 * DumpRenderTree/LayoutTestController.h: 13 1 14 2009-10-06 Shinichiro Hamaji <hamaji@chromium.org> 2 15 -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.cpp
r49091 r49253 721 721 LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject)); 722 722 controller->setHandlesAuthenticationChallenges(JSValueToBoolean(context, arguments[0])); 723 724 return JSValueMakeUndefined(context); 725 } 726 727 static JSValueRef setPOSIXLocaleCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 728 { 729 if (argumentCount < 1) 730 return JSValueMakeUndefined(context); 731 732 LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject)); 733 JSRetainPtr<JSStringRef> locale(Adopt, JSValueToStringCopy(context, arguments[0], exception)); 734 ASSERT(!*exception); 735 controller->setPOSIXLocale(locale.get()); 723 736 724 737 return JSValueMakeUndefined(context); … … 1196 1209 { "setGeolocationPermission", setGeolocationPermissionCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1197 1210 { "setHandlesAuthenticationChallenges", setHandlesAuthenticationChallengesCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1211 { "setPOSIXLocale", setPOSIXLocaleCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1198 1212 { "setIconDatabaseEnabled", setIconDatabaseEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1199 1213 { "setJavaScriptProfilingEnabled", setJavaScriptProfilingEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, … … 1282 1296 m_geolocationPermission = allow; 1283 1297 } 1298 1299 void LayoutTestController::setPOSIXLocale(JSStringRef locale) 1300 { 1301 char localeBuf[32]; 1302 JSStringGetUTF8CString(locale, localeBuf, sizeof(localeBuf)); 1303 setlocale(LC_ALL, localeBuf); 1304 } -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.h
r49091 r49253 208 208 void evaluateInWebInspector(long callId, JSStringRef script); 209 209 210 void setPOSIXLocale(JSStringRef locale); 211 210 212 private: 211 213 bool m_dumpAsPDF; -
trunk/WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp
r48791 r49253 335 335 336 336 webkit_reset_origin_access_white_lists(); 337 338 setlocale(LC_ALL, ""); 337 339 } 338 340 -
trunk/WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm
r48914 r49253 444 444 445 445 [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain]; 446 447 setlocale(LC_ALL, ""); 446 448 } 447 449 -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp
r49189 r49253 287 287 m_controller->reset(); 288 288 QWebSecurityOrigin::resetOriginAccessWhiteLists(); 289 290 setlocale(LC_ALL, ""); 289 291 } 290 292 -
trunk/WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp
r48861 r49253 744 744 } 745 745 setAlwaysAcceptCookies(false); 746 747 setlocale(LC_ALL, ""); 746 748 } 747 749
Note: See TracChangeset
for help on using the changeset viewer.