Chromium Code Reviews| Index: client/samples/total/src/DomUtils.dart |
| diff --git a/client/samples/total/src/DomUtils.dart b/client/samples/total/src/DomUtils.dart |
| index 57692dff6b57cb6b633c05048ca542e50844d5e1..4ac632e3e39d74f723009278c1bb84f912495dc7 100644 |
| --- a/client/samples/total/src/DomUtils.dart |
| +++ b/client/samples/total/src/DomUtils.dart |
| @@ -6,51 +6,6 @@ |
| * Utilities for [Element]s. |
| */ |
| class DomUtils { |
| - |
| - /** |
| - * Returns an element's absolute bottom coordinate in the document's coordinate system. |
| - */ |
| - static int getAbsoluteBottom(Element elem) => getAbsoluteTop(elem) + elem.offsetHeight; |
| - |
| - /** |
| - * Returns an element's absolute left coordinate in the document's coordinate system. |
| - */ |
| - static int getAbsoluteLeft(Element elem) { |
| - int left = 0; |
| - Element curr = elem; |
| - while (curr.offsetParent != null) { |
|
arv (Not doing code reviews)
2011/10/27 05:50:24
It is good that we can rid of this buggy code.
Jacob
2011/10/27 20:59:25
Agreed. This code wasn't used and would be very pa
|
| - left -= curr.scrollLeft; |
| - curr = curr.parent; |
| - } |
| - while (elem != null) { |
| - left += elem.offsetLeft; |
| - elem = elem.offsetParent; |
| - } |
| - return left; |
| - } |
| - |
| - /** |
| - * Returns an element's absolute right coordinate in the document's coordinate system. |
| - */ |
| - static int getAbsoluteRight(Element elem) => getAbsoluteLeft(elem) + elem.offsetWidth; |
| - |
| - /** |
| - * Returns an element's absolute top coordinate in the document's coordinate system. |
| - */ |
| - static int getAbsoluteTop(Element elem) { |
| - int top = 0; |
| - Element curr = elem; |
| - while (curr.offsetParent != null) { |
| - top -= curr.scrollTop; |
| - curr = curr.parent; |
| - } |
| - while (elem != null) { |
| - top += elem.offsetTop; |
| - elem = elem.offsetParent; |
| - } |
| - return top; |
| - } |
| - |
| /** |
| * Removes a property on the given element's style. |
| */ |