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

Unified Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 21182002: Allow "bulk editing" of the CssStyleDeclaration objects in an ElementList as well (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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: tools/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
index 29533d85e51edf400246ddabfac96794c71a764f..6e932875f22e26c2b130f8e68b94dfac28b76937 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -176,6 +176,9 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
/** Replace the classes with `value` for every element in this list. */
set classes(Iterable<String> value);
+ /** The union of all styles associated with the [Element]s in this list. */
+ CssStyleDeclarationSet get style;
+
/**
* Access dimensions and position of the Elements in this list.
*
@@ -271,6 +274,9 @@ class _FrozenElementList<T extends Element> extends ListBase<T> implements Eleme
CssClassSet get classes => new _MultiElementCssClassSet(_elementList);
+ CssStyleDeclarationSet get style =>
+ new CssStyleDeclarationSet._(_elementList);
+
void set classes(Iterable<String> value) {
_elementList.forEach((e) => e.classes = value);
}

Powered by Google App Engine
This is Rietveld 408576698