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

Unified Diff: dart/samples/logo/logo.dart

Issue 66253002: Version 0.8.10.9 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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: dart/samples/logo/logo.dart
===================================================================
--- dart/samples/logo/logo.dart (revision 30098)
+++ dart/samples/logo/logo.dart (working copy)
@@ -98,7 +98,7 @@
final saturationMod = int.parse(saturation.value)/100;
final lightnessMod = int.parse(lightness.value)/100;
- logo.queryAll("path").forEach((p) {
+ logo.querySelectorAll("path").forEach((p) {
final color = defaultColors[p.id].dup();
color.hue += hueDelta;
@@ -160,19 +160,19 @@
</svg>
""");
- query("#icon").children.add(logo);
- logo.queryAll("path").forEach((p) {
+ querySelector("#icon").children.add(logo);
+ logo.querySelectorAll("path").forEach((p) {
defaultColors[p.id] = new Color.fromHex(p.style.getPropertyValue('fill'));
});
- hue = document.query("input[name=hue]");
+ hue = document.querySelector("input[name=hue]");
hue.onChange.listen(onSliderChange);
- saturation = document.query("input[name=saturation]");
+ saturation = document.querySelector("input[name=saturation]");
saturation.onChange.listen(onSliderChange);
- lightness = document.query("input[name=lightness]");
+ lightness = document.querySelector("input[name=lightness]");
lightness.onChange.listen(onSliderChange);
- document.query("input[name=invert]").onChange.listen((Event e) {
+ document.querySelector("input[name=invert]").onChange.listen((Event e) {
InputElement invert = e.target;
if (invert.checked) {
logo.classes = ['inverse'];

Powered by Google App Engine
This is Rietveld 408576698