Fixes coding style for two utility getters.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Apr 2008 21:45:01 +0000 (21:45 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Apr 2008 21:45:01 +0000 (21:45 +0000)
* page/inspector/utilities.js: Fix coding style for the
totalOffsetLeft and totalOffsetTop getters.

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

WebCore/ChangeLog
WebCore/page/inspector/utilities.js

index 77ea2fa..d88c7c0 100644 (file)
@@ -1,3 +1,10 @@
+2008-04-07  Timothy Hatcher  <timothy@apple.com>
+
+        Fixes coding style for two utility getters.
+
+        * page/inspector/utilities.js: Fix coding style for the
+        totalOffsetLeft and totalOffsetTop getters.
+
 2008-04-07  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Dave Hyatt.
index 00b4e3e..5d4850b 100644 (file)
@@ -175,14 +175,16 @@ Element.prototype.isInsertionCaretInside = function()
     return selectionRange.startContainer === this || selectionRange.startContainer.isDescendant(this);
 }
 
-Element.prototype.__defineGetter__("totalOffsetLeft", function() {
+Element.prototype.__defineGetter__("totalOffsetLeft", function()
+{
     var total = 0;
     for (var element = this; element; element = element.offsetParent)
         total += element.offsetLeft;
     return total;
 });
 
-Element.prototype.__defineGetter__("totalOffsetTop", function() {
+Element.prototype.__defineGetter__("totalOffsetTop", function()
+{
     var total = 0;
     for (var element = this; element; element = element.offsetParent)
         total += element.offsetTop;