Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: client/samples/total/src/DomUtils.dart

Issue 8363040: Implement measurement using futures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove duplicated imports from html.dart Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/samples/swarm/Views.dart ('k') | client/samples/total/src/HtmlTable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
- 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.
*/
« no previous file with comments | « client/samples/swarm/Views.dart ('k') | client/samples/total/src/HtmlTable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698