Index: client/html/src/CssClassSet.dart |
diff --git a/client/html/src/CssClassSet.dart b/client/html/src/CssClassSet.dart |
index 62408bcab8eaf51b34d6cfec7b736ad556567071..2ec730986472496a41014b9514e15436d5b80699 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. |
@@ -101,6 +101,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); |
@@ -127,6 +128,7 @@ class _CssClassSet implements Set<String> { |
* back to the element. |
*/ |
void _write(Set s) { |
+ assert(!_inMeasurementFrame || !_nodeInDocument(_element)); |
_element.className = _formatSet(s); |
} |