Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index b55f881592fa19f746858bdee0200ed158dc1cb6..283b1c82b2e471ea99417c66c24ff7a260ca1120 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -5747,8 +5747,6 @@ class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType> |
return _Lists.lastIndexOf(this, element, start); |
} |
- DOMMimeType get first => this[0]; |
- |
DOMMimeType get last => this[length - 1]; |
DOMMimeType removeLast() { |
@@ -5888,8 +5886,6 @@ class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> nati |
return _Lists.lastIndexOf(this, element, start); |
} |
- DOMPlugin get first => this[0]; |
- |
DOMPlugin get last => this[length - 1]; |
DOMPlugin removeLast() { |
@@ -7239,11 +7235,6 @@ class _ChildrenElementList implements List { |
return result; |
} |
- Element get first { |
- return _element.$dom_firstElementChild; |
- } |
- |
- |
Element get last { |
return _element.$dom_lastElementChild; |
} |
@@ -7258,6 +7249,10 @@ class _FrozenElementList implements List { |
_FrozenElementList._wrap(this._nodeList); |
+ Element get first { |
+ return _nodeList[0]; |
+ } |
+ |
bool contains(Element element) { |
for (Element el in this) { |
if (el == element) return true; |
@@ -7366,8 +7361,6 @@ class _FrozenElementList implements List { |
throw new UnsupportedError(''); |
} |
- Element get first => _nodeList.first; |
- |
Element get last => _nodeList.last; |
} |
@@ -9022,8 +9015,6 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior |
return _Lists.lastIndexOf(this, element, start); |
} |
- num get first => this[0]; |
- |
num get last => this[length - 1]; |
num removeLast() { |
@@ -9133,8 +9124,6 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior |
return _Lists.lastIndexOf(this, element, start); |
} |
- num get first => this[0]; |
- |
num get last => this[length - 1]; |
num removeLast() { |
@@ -9501,8 +9490,6 @@ class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native |
return _Lists.lastIndexOf(this, element, start); |
} |
- Node get first => this[0]; |
- |
Node get last => this[length - 1]; |
Node removeLast() { |
@@ -9606,8 +9593,6 @@ class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "* |
return _Lists.lastIndexOf(this, element, start); |
} |
- Node get first => this[0]; |
- |
Node get last => this[length - 1]; |
Node removeLast() { |
@@ -11260,8 +11245,6 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
return _Lists.lastIndexOf(this, element, start); |
} |
- int get first => this[0]; |
- |
int get last => this[length - 1]; |
int removeLast() { |
@@ -11371,8 +11354,6 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
return _Lists.lastIndexOf(this, element, start); |
} |
- int get first => this[0]; |
- |
int get last => this[length - 1]; |
int removeLast() { |
@@ -11482,8 +11463,6 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L |
return _Lists.lastIndexOf(this, element, start); |
} |
- int get first => this[0]; |
- |
int get last => this[length - 1]; |
int removeLast() { |
@@ -13628,8 +13607,6 @@ class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na |
return _Lists.lastIndexOf(this, element, start); |
} |
- Node get first => this[0]; |
- |
Node get last => this[length - 1]; |
Node removeLast() { |
@@ -14166,8 +14143,6 @@ class _ListWrapper<E> implements List<E> { |
E removeLast() => _list.removeLast(); |
- E get first => _list.first; |
- |
E get last => _list.last; |
List<E> getRange(int start, int rangeLength) => |
@@ -14181,6 +14156,8 @@ class _ListWrapper<E> implements List<E> { |
void insertRange(int start, int rangeLength, [E initialValue = null]) => |
_list.insertRange(start, rangeLength, initialValue); |
+ |
+ E get first => _list[0]; |
} |
/** |
@@ -15946,8 +15923,6 @@ class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ |
return _Lists.lastIndexOf(this, element, start); |
} |
- Map get first => this[0]; |
- |
Map get last => this[length - 1]; |
Map removeLast() { |
@@ -16462,8 +16437,6 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior |
return _Lists.lastIndexOf(this, element, start); |
} |
- SourceBuffer get first => this[0]; |
- |
SourceBuffer get last => this[length - 1]; |
SourceBuffer removeLast() { |
@@ -16617,8 +16590,6 @@ class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma |
return _Lists.lastIndexOf(this, element, start); |
} |
- SpeechGrammar get first => this[0]; |
- |
SpeechGrammar get last => this[length - 1]; |
SpeechGrammar removeLast() { |
@@ -17638,8 +17609,6 @@ class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior |
return _Lists.lastIndexOf(this, element, start); |
} |
- TextTrackCue get first => this[0]; |
- |
TextTrackCue get last => this[length - 1]; |
TextTrackCue removeLast() { |
@@ -17746,8 +17715,6 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L |
return _Lists.lastIndexOf(this, element, start); |
} |
- TextTrack get first => this[0]; |
- |
TextTrack get last => this[length - 1]; |
TextTrack removeLast() { |
@@ -17972,8 +17939,6 @@ class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc |
return _Lists.lastIndexOf(this, element, start); |
} |
- Touch get first => this[0]; |
- |
Touch get last => this[length - 1]; |
Touch removeLast() { |
@@ -18248,8 +18213,6 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
return _Lists.lastIndexOf(this, element, start); |
} |
- int get first => this[0]; |
- |
int get last => this[length - 1]; |
int removeLast() { |
@@ -18359,8 +18322,6 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
return _Lists.lastIndexOf(this, element, start); |
} |
- int get first => this[0]; |
- |
int get last => this[length - 1]; |
int removeLast() { |
@@ -18470,8 +18431,6 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
return _Lists.lastIndexOf(this, element, start); |
} |
- int get first => this[0]; |
- |
int get last => this[length - 1]; |
int removeLast() { |
@@ -20658,8 +20617,6 @@ class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native " |
return _Lists.lastIndexOf(this, element, start); |
} |
- CSSRule get first => this[0]; |
- |
CSSRule get last => this[length - 1]; |
CSSRule removeLast() { |
@@ -20757,8 +20714,6 @@ class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi |
return _Lists.lastIndexOf(this, element, start); |
} |
- CSSValue get first => this[0]; |
- |
CSSValue get last => this[length - 1]; |
CSSValue removeLast() { |
@@ -20856,8 +20811,6 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na |
return _Lists.lastIndexOf(this, element, start); |
} |
- ClientRect get first => this[0]; |
- |
ClientRect get last => this[length - 1]; |
ClientRect removeLast() { |
@@ -20964,8 +20917,6 @@ class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native |
return _Lists.lastIndexOf(this, element, start); |
} |
- String get first => this[0]; |
- |
String get last => this[length - 1]; |
String removeLast() { |
@@ -21388,8 +21339,6 @@ class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En |
return _Lists.lastIndexOf(this, element, start); |
} |
- Entry get first => this[0]; |
- |
Entry get last => this[length - 1]; |
Entry removeLast() { |
@@ -21487,8 +21436,6 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat |
return _Lists.lastIndexOf(this, element, start); |
} |
- EntrySync get first => this[0]; |
- |
EntrySync get last => this[length - 1]; |
EntrySync removeLast() { |
@@ -21595,8 +21542,6 @@ class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL |
return _Lists.lastIndexOf(this, element, start); |
} |
- File get first => this[0]; |
- |
File get last => this[length - 1]; |
File removeLast() { |
@@ -21723,8 +21668,6 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " |
return _Lists.lastIndexOf(this, element, start); |
} |
- Gamepad get first => this[0]; |
- |
Gamepad get last => this[length - 1]; |
Gamepad removeLast() { |
@@ -21875,8 +21818,6 @@ class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream> |
return _Lists.lastIndexOf(this, element, start); |
} |
- MediaStream get first => this[0]; |
- |
MediaStream get last => this[length - 1]; |
MediaStream removeLast() { |
@@ -22137,8 +22078,6 @@ class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI |
return _Lists.lastIndexOf(this, element, start); |
} |
- SpeechInputResult get first => this[0]; |
- |
SpeechInputResult get last => this[length - 1]; |
SpeechInputResult removeLast() { |
@@ -22245,8 +22184,6 @@ class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S |
return _Lists.lastIndexOf(this, element, start); |
} |
- SpeechRecognitionResult get first => this[0]; |
- |
SpeechRecognitionResult get last => this[length - 1]; |
SpeechRecognitionResult removeLast() { |
@@ -22344,8 +22281,6 @@ class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na |
return _Lists.lastIndexOf(this, element, start); |
} |
- StyleSheet get first => this[0]; |
- |
StyleSheet get last => this[length - 1]; |
StyleSheet removeLast() { |
@@ -22467,8 +22402,6 @@ class _WebKitAnimationList implements JavaScriptIndexingBehavior, List<Animation |
return _Lists.lastIndexOf(this, element, start); |
} |
- Animation get first => this[0]; |
- |
Animation get last => this[length - 1]; |
Animation removeLast() { |
@@ -22845,8 +22778,6 @@ class FilteredElementList implements List { |
return _filtered.lastIndexOf(element, start); |
} |
- Element get first => _filtered.first; |
- |
Element get last => _filtered.last; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |