Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 1cb3270

Browse files
mheveryjbdeboer
authored andcommitted
chore(shadowless): remove noSuchMethod which improves dart2js size by about 100k
1 parent 4421710 commit 1cb3270

File tree

1 file changed

+60
-7
lines changed

1 file changed

+60
-7
lines changed
Lines changed: 60 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,65 @@
11
part of angular.core.dom_internal;
2-
3-
@proxy
42
class ShadowlessShadowRoot implements dom.ShadowRoot {
53
dom.Element _element;
6-
74
ShadowlessShadowRoot(this._element);
8-
9-
noSuchMethod(Invocation invocation) {
10-
throw new UnimplementedError("Not yet implemented in ShadowlessShadowRoot.");
11-
}
5+
_notSupported() { throw new UnsupportedError("Not supported"); }
6+
dom.Element get activeElement => _notSupported();
7+
dom.Element get host => _notSupported();
8+
String get innerHtml => _notSupported();
9+
void set innerHtml(String value) => _notSupported();
10+
dom.ShadowRoot get olderShadowRoot => _notSupported();
11+
bool get _resetStyleInheritance => _notSupported();
12+
void set _resetStyleInheritance(bool value) => _notSupported();
13+
List<dom.StyleSheet> get styleSheets => _notSupported();
14+
dom.Node clone(bool deep) => _notSupported();
15+
dom.Element elementFromPoint(int x, int y) => _notSupported();
16+
dom.Element getElementById(String elementId) => _notSupported();
17+
List<dom.Node> getElementsByClassName(String className) => _notSupported();
18+
List<dom.Node> getElementsByTagName(String tagName) => _notSupported();
19+
dom.Selection getSelection() => _notSupported();
20+
bool get resetStyleInheritance { _notSupported(); }
21+
void set resetStyleInheritance(bool value) { _notSupported(); }
22+
bool get applyAuthorStyles { _notSupported(); }
23+
void set applyAuthorStyles(bool value) { _notSupported(); }
24+
List<dom.Element> get children => _notSupported();
25+
void set children(List<dom.Element> value) { _notSupported(); }
26+
dom.ElementList querySelectorAll(String selectors) => _notSupported();
27+
void setInnerHtml(String html, {dom.NodeValidator validator, dom.NodeTreeSanitizer treeSanitizer}) { _notSupported(); }
28+
void appendText(String text) { _notSupported(); }
29+
void appendHtml(String text) { _notSupported(); }
30+
dom.Element query(String relativeSelectors) { _notSupported(); }
31+
dom.ElementList queryAll(String relativeSelectors) { _notSupported(); }
32+
dom.Element querySelector(String selectors) => _notSupported();
33+
List<dom.Node> get nodes => _notSupported();
34+
void set nodes(Iterable<dom.Node> value) { _notSupported(); }
35+
void remove() { _notSupported(); }
36+
dom.Node replaceWith(dom.Node otherNode) { _notSupported(); }
37+
dom.Node insertAllBefore(Iterable<dom.Node> newNodes, dom.Node refChild) { _notSupported(); }
38+
void _clearChildren() { _notSupported(); }
39+
String get baseUri => _notSupported();
40+
List<dom.Node> get childNodes => _notSupported();
41+
dom.Node get firstChild => _notSupported();
42+
dom.Node get lastChild => _notSupported();
43+
String get _localName => _notSupported();
44+
String get _namespaceUri => _notSupported();
45+
dom.Node get nextNode => _notSupported();
46+
String get nodeName => _notSupported();
47+
int get nodeType => _notSupported();
48+
String get nodeValue => _notSupported();
49+
dom.Document get ownerDocument => _notSupported();
50+
dom.Element get parent => _notSupported();
51+
dom.Node get parentNode => _notSupported();
52+
dom.Node get previousNode => _notSupported();
53+
String get text => _notSupported();
54+
void set text(String value) => _notSupported();
55+
dom.Node append(dom.Node newChild) => _notSupported();
56+
bool contains(dom.Node other) => _notSupported();
57+
bool hasChildNodes() => _notSupported();
58+
dom.Node insertBefore(dom.Node newChild, dom.Node refChild) => _notSupported();
59+
dom.Node _removeChild(dom.Node oldChild) => _notSupported();
60+
dom.Node _replaceChild(dom.Node newChild, dom.Node oldChild) => _notSupported();
61+
dom.Events get on => _notSupported();
62+
void addEventListener(String type, dom.EventListener listener, [bool useCapture]) => _notSupported();
63+
bool dispatchEvent(dom.Event event) => _notSupported();
64+
void removeEventListener(String type, dom.EventListener listener, [bool useCapture]) => _notSupported();
1265
}

0 commit comments

Comments
 (0)