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

Unified Diff: client/html/src/ElementWrappingImplementation.dart

Issue 8355019: Make DocumentFragment implement Element. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. 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/html/src/Element.dart ('k') | client/tests/client/client.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/ElementWrappingImplementation.dart
diff --git a/client/html/src/ElementWrappingImplementation.dart b/client/html/src/ElementWrappingImplementation.dart
index d1775766d2645c95e4376c5e706c3ed4980a2703..455b5818e58650d80706ea2dc15c37cb48d9dd8d 100644
--- a/client/html/src/ElementWrappingImplementation.dart
+++ b/client/html/src/ElementWrappingImplementation.dart
@@ -602,8 +602,13 @@ class ElementWrappingImplementation extends NodeWrappingImplementation implement
return LevelDom.wrapClientRect(_ptr.getBoundingClientRect());
}
- ClientRectList getClientRects() {
- return LevelDom.wrapClientRectList(_ptr.getClientRects());
+ List<ClientRect> getClientRects() {
+ var rects = LevelDom.wrapClientRectList(_ptr.getClientRects());
+ var out = new List(rects.length);
+ for (var i = 0; i < rects.length; i++) {
+ out.add(rects.item(i));
+ }
+ return out;
}
Element insertAdjacentElement([String where = null, Element element = null]) {
« no previous file with comments | « client/html/src/Element.dart ('k') | client/tests/client/client.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698