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

Side by Side Diff: pkg/third_party/html5lib/lib/src/treebuilder.dart

Issue 421503004: Switch transformers over to source_span (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/third_party/html5lib/lib/src/tokenizer.dart ('k') | pkg/third_party/html5lib/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// Internals to the tree builders. 1 /// Internals to the tree builders.
2 library treebuilder; 2 library treebuilder;
3 3
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'package:html5lib/dom.dart'; 5 import 'package:html5lib/dom.dart';
6 import 'package:html5lib/parser.dart' show getElementNameTuple; 6 import 'package:html5lib/parser.dart' show getElementNameTuple;
7 import 'package:source_maps/span.dart' show FileSpan; 7 import 'package:source_span/source_span.dart';
8 import 'constants.dart'; 8 import 'constants.dart';
9 import 'list_proxy.dart'; 9 import 'list_proxy.dart';
10 import 'token.dart'; 10 import 'token.dart';
11 import 'utils.dart'; 11 import 'utils.dart';
12 12
13 // The scope markers are inserted when entering object elements, 13 // The scope markers are inserted when entering object elements,
14 // marquees, table cells, and table captions, and are used to prevent formatting 14 // marquees, table cells, and table captions, and are used to prevent formatting
15 // from "leaking" into tables, object elements, and marquees. 15 // from "leaking" into tables, object elements, and marquees.
16 const Node Marker = null; 16 const Node Marker = null;
17 17
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 Document getDocument() => document; 385 Document getDocument() => document;
386 386
387 /// Return the final fragment. 387 /// Return the final fragment.
388 DocumentFragment getFragment() { 388 DocumentFragment getFragment() {
389 //XXX assert innerHTML 389 //XXX assert innerHTML
390 var fragment = new DocumentFragment(); 390 var fragment = new DocumentFragment();
391 openElements[0].reparentChildren(fragment); 391 openElements[0].reparentChildren(fragment);
392 return fragment; 392 return fragment;
393 } 393 }
394 } 394 }
OLDNEW
« no previous file with comments | « pkg/third_party/html5lib/lib/src/tokenizer.dart ('k') | pkg/third_party/html5lib/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698