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

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

Issue 9148015: Example showing alternate async measurement solution (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final version Created 8 years, 11 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/CssClassSet.dart
diff --git a/client/html/src/CssClassSet.dart b/client/html/src/CssClassSet.dart
index 6fc3451b7a828587cb0f0363502ef05cf9d0bb2d..c9ba102b5bb1dbec371a540864c68a6303897b0b 100644
--- a/client/html/src/CssClassSet.dart
+++ b/client/html/src/CssClassSet.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -105,6 +105,7 @@ class _CssClassSet implements Set<String> {
* className property of this element.
*/
void _modify( f(Set<String> s)) {
+ assert(!_inMeasurementFrame || !_nodeInDocument(_element));
Set<String> s = _read();
f(s);
_write(s);
@@ -137,6 +138,7 @@ class _CssClassSet implements Set<String> {
* back to the element.
*/
void _write(Set s) {
+ assert(!_inMeasurementFrame || !_nodeInDocument(_element));
_element.className = _formatSet(s);
}

Powered by Google App Engine
This is Rietveld 408576698