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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 1401233002: Fixed wrap_jso recursive calls - now rely on Utils_constructor_create to call setDartHtmlWrapper pr… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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:
Download patch
« no previous file with comments | « no previous file | tools/deps/dartium.deps/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 71db91da247c7dc451784fb2210988405a99c90f..46d9e394e0b3553e482ec80459a61ada8a25d381 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -1204,24 +1204,8 @@ wrap_jso(jsObject) {
}
var wrapper = js.getDartHtmlWrapperFor(jsObject);
- // if we have a wrapper and and it's an upgraded custom element return the Dart instance.
+ // if we have a wrapper return the Dart instance.
if (wrapper != null) {
- if (wrapper.runtimeType == HtmlElement && !wrapper._isBadUpgrade) {
- // We're a Dart instance but we need to upgrade.
- var customElementClass = _getCustomElementType(wrapper);
- if (customElementClass != null) {
- var dartClass_instance;
- try {
- dartClass_instance = _blink.Blink_Utils.constructElement(customElementClass, jsObject);
- } finally {
- dartClass_instance.blink_jsObject = jsObject;
- jsObject['dart_class'] = dartClass_instance;
- js.setDartHtmlWrapperFor(jsObject, dartClass_instance);
- return dartClass_instance;
- }
- }
- }
-
return wrapper;
}
« no previous file with comments | « no previous file | tools/deps/dartium.deps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698