Changeset 109892 in webkit
- Timestamp:
- Mar 6, 2012 2:56:25 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r109890 r109892 1 2012-03-06 Filip Pizlo <fpizlo@apple.com> 2 3 DumpRenderTree should support preciseTime() 4 https://bugs.webkit.org/show_bug.cgi?id=80397 5 6 Reviewed by Gavin Barraclough. 7 8 * DumpRenderTree/LayoutTestController.cpp: 9 (preciseTimeCallback): 10 (LayoutTestController::staticFunctions): 11 1 12 2012-03-06 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/Tools/DumpRenderTree/LayoutTestController.cpp
r107682 r109892 40 40 #include <stdio.h> 41 41 #include <wtf/Assertions.h> 42 #include <wtf/CurrentTime.h> 42 43 #include <wtf/MathExtras.h> 43 44 #include <wtf/OwnArrayPtr.h> … … 2203 2204 JSObjectCallAsFunction(context, JSValueToObject(context, arguments[1], 0), thisObject, 0, 0, 0); 2204 2205 return JSValueMakeUndefined(context); 2206 } 2207 2208 static JSValueRef preciseTimeCallback(JSContextRef context, JSObjectRef, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 2209 { 2210 return JSValueMakeNumber(context, WTF::currentTime()); 2205 2211 } 2206 2212 … … 2502 2508 { "focusWebView", focusWebViewCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2503 2509 { "setBackingScaleFactor", setBackingScaleFactorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2510 { "preciseTime", preciseTimeCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2504 2511 { 0, 0, 0 } 2505 2512 };
Note: See TracChangeset
for help on using the changeset viewer.