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

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: Ready for review 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 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);
}

Powered by Google App Engine
This is Rietveld 408576698