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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11308206: Cleaning up some unused code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library html; 1 library html;
2 2
3 import 'dart:isolate'; 3 import 'dart:isolate';
4 import 'dart:json'; 4 import 'dart:json';
5 import 'dart:svg' as svg; 5 import 'dart:svg' as svg;
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 7 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 8 // BSD-style license that can be found in the LICENSE file.
9 9
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 7408 matching lines...) Expand 10 before | Expand all | Expand 10 after
7419 } 7419 }
7420 return s; 7420 return s;
7421 } 7421 }
7422 7422
7423 void writeClasses(Set<String> s) { 7423 void writeClasses(Set<String> s) {
7424 List list = new List.from(s); 7424 List list = new List.from(s);
7425 _element.$dom_className = Strings.join(list, ' '); 7425 _element.$dom_className = Strings.join(list, ' ');
7426 } 7426 }
7427 } 7427 }
7428 7428
7429 class _SimpleClientRect implements ClientRect {
7430 final num left;
7431 final num top;
7432 final num width;
7433 final num height;
7434 num get right => left + width;
7435 num get bottom => top + height;
7436
7437 const _SimpleClientRect(this.left, this.top, this.width, this.height);
7438
7439 bool operator ==(ClientRect other) {
7440 return other != null && left == other.left && top == other.top
7441 && width == other.width && height == other.height;
7442 }
7443
7444 String toString() => "($left, $top, $width, $height)";
7445 }
7446
7447 abstract class Element extends Node implements ElementTraversal native "*Element " { 7429 abstract class Element extends Node implements ElementTraversal native "*Element " {
7448 7430
7449 factory Element.html(String html) => 7431 factory Element.html(String html) =>
7450 _ElementFactoryProvider.createElement_html(html); 7432 _ElementFactoryProvider.createElement_html(html);
7451 factory Element.tag(String tag) => 7433 factory Element.tag(String tag) =>
7452 _ElementFactoryProvider.createElement_tag(tag); 7434 _ElementFactoryProvider.createElement_tag(tag);
7453 7435
7454 /** 7436 /**
7455 * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute, 7437 * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute,
7456 * Element.removeAttribute 7438 * Element.removeAttribute
(...skipping 14603 matching lines...) Expand 10 before | Expand all | Expand 10 after
22060 return length == 0; 22042 return length == 0;
22061 } 22043 }
22062 22044
22063 /** 22045 /**
22064 * Checks to see if the node should be included in this map. 22046 * Checks to see if the node should be included in this map.
22065 */ 22047 */
22066 bool _matches(Node node); 22048 bool _matches(Node node);
22067 } 22049 }
22068 22050
22069 /** 22051 /**
22070 * Wrapper to expose Element.attributes as a typed map. 22052 * Wrapper to expose [Element.attributes] as a typed map.
Emily Fortuna 2012/11/26 22:16:26 why take out the [] link here?
blois 2012/11/27 01:02:03 Adding it in- was from an earlier CL that I forgot
22071 */ 22053 */
22072 class _ElementAttributeMap extends _AttributeMap { 22054 class _ElementAttributeMap extends _AttributeMap {
22073 22055
22074 final Element _element; 22056 final Element _element;
22075 22057
22076 _ElementAttributeMap(this._element); 22058 _ElementAttributeMap(this._element);
22077 22059
22078 bool containsKey(String key) { 22060 bool containsKey(String key) {
22079 return _element.$dom_hasAttribute(key); 22061 return _element.$dom_hasAttribute(key);
22080 } 22062 }
(...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after
25151 if (length < 0) throw new ArgumentError('length'); 25133 if (length < 0) throw new ArgumentError('length');
25152 if (start < 0) throw new RangeError.value(start); 25134 if (start < 0) throw new RangeError.value(start);
25153 int end = start + length; 25135 int end = start + length;
25154 if (end > a.length) throw new RangeError.value(end); 25136 if (end > a.length) throw new RangeError.value(end);
25155 for (int i = start; i < end; i++) { 25137 for (int i = start; i < end; i++) {
25156 accumulator.add(a[i]); 25138 accumulator.add(a[i]);
25157 } 25139 }
25158 return accumulator; 25140 return accumulator;
25159 } 25141 }
25160 } 25142 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698