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

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

Issue 9145004: Revert "Example showing alternate async measurement solution" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « client/html/src/NodeWrappingImplementation.dart ('k') | client/html/src/TextWrappingImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/SVGElementWrappingImplementation.dart
diff --git a/client/html/src/SVGElementWrappingImplementation.dart b/client/html/src/SVGElementWrappingImplementation.dart
index c8415762382d532befa8f57c0e3d6e2eaa23126f..2e5861792a5473be3760531d45402162bd1e84f9 100644
--- a/client/html/src/SVGElementWrappingImplementation.dart
+++ b/client/html/src/SVGElementWrappingImplementation.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2011, 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.
@@ -44,10 +44,7 @@ class SVGElementWrappingImplementation extends ElementWrappingImplementation imp
String get id() { return _ptr.id; }
- void set id(String value) {
- assert(!_inMeasurementFrame || !_inDocument);
- _ptr.id = value;
- }
+ void set id(String value) { _ptr.id = value; }
SVGSVGElement get ownerSVGElement() { return LevelDom.wrapSVGSVGElement(_ptr.ownerSVGElement); }
@@ -55,10 +52,7 @@ class SVGElementWrappingImplementation extends ElementWrappingImplementation imp
String get xmlbase() { return _ptr.xmlbase; }
- void set xmlbase(String value) {
- assert(!_inMeasurementFrame || !_inDocument);
- _ptr.xmlbase = value;
- }
+ void set xmlbase(String value) { _ptr.xmlbase = value; }
ElementList get elements() {
if (_elements == null) {
@@ -69,7 +63,6 @@ class SVGElementWrappingImplementation extends ElementWrappingImplementation imp
// TODO: The type of value should be Collection<Element>. See http://b/5392897
void set elements(value) {
- assert(!_inMeasurementFrame || !_inDocument);
final elements = this.elements;
elements.clear();
elements.addAll(value);
@@ -88,7 +81,6 @@ class SVGElementWrappingImplementation extends ElementWrappingImplementation imp
}
void set innerHTML(String svg) {
- assert(!_inMeasurementFrame || !_inDocument);
var container = new Element.tag("div");
// Wrap the SVG string in <svg> so that SVGElements are created, rather than
// HTMLElements.
« no previous file with comments | « client/html/src/NodeWrappingImplementation.dart ('k') | client/html/src/TextWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698