Reviewed by Mark Rowe.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2007 03:32:18 +0000 (03:32 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2007 03:32:18 +0000 (03:32 +0000)
        Fix typos and rename InspectorController::moveByUnrestricted to InspectorController::moveWindowBy.

        * page/InspectorController.cpp:
        (WebCore::moveByUnrestricted):
        (WebCore::InspectorController::windowScriptObjectAvailable):
        (WebCore::InspectorController::moveWindowBy):
        * page/InspectorController.h:
        * page/inspector/inspector.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28708 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/InspectorController.cpp
WebCore/page/InspectorController.h
WebCore/page/inspector/inspector.js

index fff5b1c..b07bc92 100644 (file)
@@ -1,3 +1,16 @@
+2007-12-13  Sam Weinig  <sam@webkit.org>
+
+        Reviewed by Mark Rowe.
+
+        Fix typos and rename InspectorController::moveByUnrestricted to InspectorController::moveWindowBy.
+
+        * page/InspectorController.cpp:
+        (WebCore::moveByUnrestricted):
+        (WebCore::InspectorController::windowScriptObjectAvailable):
+        (WebCore::InspectorController::moveWindowBy):
+        * page/InspectorController.h:
+        * page/inspector/inspector.js:
+
 2007-12-13  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Dave Hyatt.
index 1f3f8bf..a58cb3d 100644 (file)
@@ -578,10 +578,10 @@ static JSValueRef moveByUnrestricted(JSContextRef ctx, JSObjectRef /*function*/,
     if (!controller)
         return JSValueMakeUndefined(ctx);
 
-    if (argumentCount < 2 )
+    if (argumentCount < 2)
         return JSValueMakeUndefined(ctx);
 
-    controller->moveByUnrestricted(narrowPrecisionToFloat(JSValueToNumber(ctx, arguments[0], 0)), narrowPrecisionToFloat(JSValueToNumber(ctx, arguments[1], 0)));
+    controller->moveWindowBy(narrowPrecisionToFloat(JSValueToNumber(ctx, arguments[0], 0)), narrowPrecisionToFloat(JSValueToNumber(ctx, arguments[1], 0)));
 
     return JSValueMakeUndefined(ctx);
 }
@@ -763,22 +763,22 @@ void InspectorController::windowScriptObjectAvailable()
     ASSERT(global);
 
     static JSStaticFunction staticFunctions[] = {
-        { "addSourceToFrame", WebCore::addSourceToFrame, kJSPropertyAttributeNone },
-        { "getResourceDocumentNode", WebCore::getResourceDocumentNode, kJSPropertyAttributeNone },
-        { "highlightDOMNode", WebCore::highlightDOMNode, kJSPropertyAttributeNone },
-        { "hideDOMNodeHighlight", WebCore::hideDOMNodeHighlight, kJSPropertyAttributeNone },
-        { "loaded", WebCore::loaded, kJSPropertyAttributeNone },
-        { "windowUnloading", WebCore::unloading, kJSPropertyAttributeNone },
-        { "attach", WebCore::attach, kJSPropertyAttributeNone },
-        { "detach", WebCore::detach, kJSPropertyAttributeNone },
-        { "search", WebCore::search, kJSPropertyAttributeNone },
+        { "addSourceToFrame", addSourceToFrame, kJSPropertyAttributeNone },
+        { "getResourceDocumentNode", getResourceDocumentNode, kJSPropertyAttributeNone },
+        { "highlightDOMNode", highlightDOMNode, kJSPropertyAttributeNone },
+        { "hideDOMNodeHighlight", hideDOMNodeHighlight, kJSPropertyAttributeNone },
+        { "loaded", loaded, kJSPropertyAttributeNone },
+        { "windowUnloading", unloading, kJSPropertyAttributeNone },
+        { "attach", attach, kJSPropertyAttributeNone },
+        { "detach", detach, kJSPropertyAttributeNone },
+        { "search", search, kJSPropertyAttributeNone },
 #if ENABLE(DATABASE)
-        { "databaseTableNames", WebCore::databaseTableNames, kJSPropertyAttributeNone },
+        { "databaseTableNames", databaseTableNames, kJSPropertyAttributeNone },
 #endif
-        { "inspectedWindow", WebCore::inspectedWindow, kJSPropertyAttributeNone },
-        { "localizedStringsURL", WebCore::localizedStrings, kJSPropertyAttributeNone },
-        { "platform", WebCore::platform, kJSPropertyAttributeNone },
-        { "moveByUnrestricted", WebCore::moveByUnrestricted, kJSPropertyAttributeNone },
+        { "inspectedWindow", inspectedWindow, kJSPropertyAttributeNone },
+        { "localizedStringsURL", localizedStrings, kJSPropertyAttributeNone },
+        { "platform", platform, kJSPropertyAttributeNone },
+        { "moveByUnrestricted", moveByUnrestricted, kJSPropertyAttributeNone },
         { 0, 0, 0 }
     };
 
@@ -1621,7 +1621,7 @@ void InspectorController::didOpenDatabase(Database* database, const String& doma
 }
 #endif
 
-void InspectorController::moveByUnrestricted(float x, float y) const
+void InspectorController::moveWindowBy(float x, float y) const
 {
     if (!m_page || !enabled())
         return;
index 35c955e..ff1de93 100644 (file)
@@ -117,7 +117,7 @@ public:
 
     const ResourcesMap& resources() const { return m_resources; }
 
-    void moveByUnrestricted(float x, float y) const;
+    void moveWindowBy(float x, float y) const;
 
 private:
     void focusNode();
index 1c6b900..dbd4c0b 100644 (file)
@@ -583,7 +583,7 @@ WebInspector.toolbarDrag = function(event)
     toolbar.lastScreenX = event.screenX;
     toolbar.lastScreenY = event.screenY;
 
-    // We cannot call window.moveBy here becuase it restricts the movement of the window
+    // We cannot call window.moveBy here because it restricts the movement of the window
     // at the edges.
     InspectorController.moveByUnrestricted(x, y);