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

Unified Diff: client/html/src/DOMWrapperBase.dart

Issue 8416010: Further code review changes for issue 8341027. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove html/html.dart munging. Created 9 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:
View side-by-side diff with in-line comments
Download patch
Index: client/html/src/DOMWrapperBase.dart
diff --git a/client/html/src/DOMWrapperBase.dart b/client/html/src/DOMWrapperBase.dart
index c25786327b874acf736f809e154245ef4c883cb2..faf09519d76c6603afa0bb5af665d12242a11439 100644
--- a/client/html/src/DOMWrapperBase.dart
+++ b/client/html/src/DOMWrapperBase.dart
@@ -5,10 +5,12 @@
class DOMWrapperBase {
final _ptr;
+ const DOMWrapperBase._empty() : this._ptr = null;
+
DOMWrapperBase._wrap(this._ptr) {
- // We should never be creating duplicate wrappers.
- assert(_ptr.dartObjectLocalStorage === null);
- _ptr.dartObjectLocalStorage = this;
+ // We should never be creating duplicate wrappers.
+ assert(_ptr.dartObjectLocalStorage === null);
+ _ptr.dartObjectLocalStorage = this;
}
}

Powered by Google App Engine
This is Rietveld 408576698