Index: tools/dom/src/dartium_CustomElementSupport.dart |
diff --git a/tools/dom/src/dartium_CustomElementSupport.dart b/tools/dom/src/dartium_CustomElementSupport.dart |
index c957145bae339af04774198e472440e238d2e49b..630d1e38c28231645d8a8adf47b23fcfe61fec9e 100644 |
--- a/tools/dom/src/dartium_CustomElementSupport.dart |
+++ b/tools/dom/src/dartium_CustomElementSupport.dart |
@@ -10,15 +10,14 @@ class _VMElementUpgrader implements ElementUpgrader { |
final Type _nativeType; |
final String _extendsTag; |
- _VMElementUpgrader(Document document, Type type, String extendsTag) : |
- _type = type, |
- _extendsTag = extendsTag, |
- _nativeType = _validateCustomType(type).reflectedType { |
- |
+ _VMElementUpgrader(Document document, Type type, String extendsTag) |
+ : _type = type, |
+ _extendsTag = extendsTag, |
+ _nativeType = _validateCustomType(type).reflectedType { |
if (extendsTag == null) { |
if (_nativeType != HtmlElement) { |
throw new UnsupportedError('Class must provide extendsTag if base ' |
- 'native class is not HtmlElement'); |
+ 'native class is not HtmlElement'); |
} |
} else { |
if (document.createElement(extendsTag).runtimeType != _nativeType) { |
@@ -78,7 +77,7 @@ ClassMirror _validateCustomType(Type type) { |
cls != null && cls.qualifiedName == elementName; |
ClassMirror superClass = cls.superclass; |
ClassMirror nativeClass = _isBuiltinType(superClass) ? superClass : null; |
- while(!isRoot(superClass) && !isElement(superClass)) { |
+ while (!isRoot(superClass) && !isElement(superClass)) { |
superClass = superClass.superclass; |
if (nativeClass == null && _isBuiltinType(superClass)) { |
nativeClass = superClass; |
@@ -87,7 +86,6 @@ ClassMirror _validateCustomType(Type type) { |
return nativeClass; |
} |
- |
bool _isBuiltinType(ClassMirror cls) { |
// TODO(vsm): Find a less hackish way to do this. |
LibraryMirror lib = cls.owner; |