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

Unified Diff: dart/samples/swarm/SwarmViews.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
« no previous file with comments | « dart/samples/swarm/App.dart ('k') | dart/samples/swarm/Views.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/samples/swarm/SwarmViews.dart
===================================================================
--- dart/samples/swarm/SwarmViews.dart (revision 30098)
+++ dart/samples/swarm/SwarmViews.dart (working copy)
@@ -734,7 +734,7 @@
// Remove the snippet entirely if it's empty. This keeps it from taking up
// space and pushing the padding down.
if ((item.textBody == null) || (item.textBody.trim() == '')) {
- node.query('.snippet').remove();
+ node.querySelector('.snippet').remove();
}
return node;
@@ -850,7 +850,7 @@
Element render() {
final storyContent = new Element.html(
'<div class="story-content">${item.htmlBody}</div>');
- for (Element element in storyContent.queryAll(
+ for (Element element in storyContent.querySelectorAll(
"iframe, script, style, object, embed, frameset, frame")) {
element.remove();
}
@@ -859,7 +859,7 @@
// Modify all links to open in new windows....
// TODO(jacobr): would it be better to add an event listener on click that
// intercepts these instead?
- for (AnchorElement anchor in storyContent.queryAll('a')) {
+ for (AnchorElement anchor in storyContent.querySelectorAll('a')) {
anchor.target = '_blank';
}
@@ -880,7 +880,7 @@
</div>
</div>''');
- container.query('.paged-story').replaceWith(_pagedStory.node);
+ container.querySelector('.paged-story').replaceWith(_pagedStory.node);
return container;
}
« no previous file with comments | « dart/samples/swarm/App.dart ('k') | dart/samples/swarm/Views.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698