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

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: Passing dartc. 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
Index: utils/apidoc/apidoc.dart
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart
index 793cd68ab74ed69a7a5c391ce10a89cc718d59b2..7c2133a6cfd8351b062458c4ab470978760c6863 100644
--- a/utils/apidoc/apidoc.dart
+++ b/utils/apidoc/apidoc.dart
@@ -184,7 +184,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;
@@ -389,7 +389,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);
@@ -469,7 +469,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];
@@ -503,7 +503,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];

Powered by Google App Engine
This is Rietveld 408576698