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

Unified Diff: utils/apidoc/apidoc.dart

Issue 11398002: Splitting SVG types out of dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minifying. Created 8 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 | « tools/create_sdk.py ('k') | utils/apidoc/html_diff.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/apidoc.dart
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart
index 065d84ac109cf2826fa755cb22d829b1c7f9c631..58ff91ad46c260e6240b2fd5b79c72b2eb1709c2 100644
--- a/utils/apidoc/apidoc.dart
+++ b/utils/apidoc/apidoc.dart
@@ -186,7 +186,7 @@ class Htmldoc extends doc.Dartdoc {
}
doc.DocComment getRecordedLibraryComment(LibraryMirror library) {
- if (doc.displayName(library) == HTML_LIBRARY_NAME) {
+ if (HTML_LIBRARY_NAMES.contains(doc.displayName(library))) {
return libraryComment;
}
return null;
@@ -391,7 +391,7 @@ class Apidoc extends doc.Dartdoc {
}
doc.DocComment getLibraryComment(LibraryMirror library) {
- if (doc.displayName(library) == HTML_LIBRARY_NAME) {
+ if (HTML_LIBRARY_NAMES.contains(doc.displayName(library))) {
return htmldoc.libraryComment;
}
return super.getLibraryComment(library);
@@ -471,7 +471,7 @@ class Apidoc extends doc.Dartdoc {
}
var typeString = '';
- if (doc.displayName(type.library) == HTML_LIBRARY_NAME) {
+ if (HTML_LIBRARY_NAMES.contains(doc.displayName(type.library))) {
// If it's an HTML type, try to map it to a base DOM type so we can find
// the MDN docs.
final domTypes = _diff.htmlTypesToDom[type.qualifiedName];
@@ -505,7 +505,7 @@ class Apidoc extends doc.Dartdoc {
MdnComment includeMdnMemberComment(MemberMirror member) {
var library = findLibrary(member);
var memberString = '';
- if (doc.displayName(library) == HTML_LIBRARY_NAME) {
+ if (HTML_LIBRARY_NAMES.contains(doc.displayName(library))) {
// If it's an HTML type, try to map it to a DOM type name so we can find
// the MDN docs.
final domMembers = _diff.htmlToDom[member.qualifiedName];
« no previous file with comments | « tools/create_sdk.py ('k') | utils/apidoc/html_diff.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698