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

Side by Side Diff: third_party/libxml/src/HTMLtree.c

Issue 1752223002: Roll libxml to 2.9.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-cherry-pick fprintf formatting fix. Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * HTMLtree.c : implementation of access function for an HTML tree. 2 * HTMLtree.c : implementation of access function for an HTML tree.
3 * 3 *
4 * See Copyright for the status of this software. 4 * See Copyright for the status of this software.
5 * 5 *
6 * daniel@veillard.com 6 * daniel@veillard.com
7 */ 7 */
8 8
9 9
10 #define IN_LIBXML 10 #define IN_LIBXML
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 } 661 }
662 xmlOutputBufferWriteString(buf, "<!DOCTYPE "); 662 xmlOutputBufferWriteString(buf, "<!DOCTYPE ");
663 xmlOutputBufferWriteString(buf, (const char *)cur->name); 663 xmlOutputBufferWriteString(buf, (const char *)cur->name);
664 if (cur->ExternalID != NULL) { 664 if (cur->ExternalID != NULL) {
665 xmlOutputBufferWriteString(buf, " PUBLIC "); 665 xmlOutputBufferWriteString(buf, " PUBLIC ");
666 xmlBufWriteQuotedString(buf->buffer, cur->ExternalID); 666 xmlBufWriteQuotedString(buf->buffer, cur->ExternalID);
667 if (cur->SystemID != NULL) { 667 if (cur->SystemID != NULL) {
668 xmlOutputBufferWriteString(buf, " "); 668 xmlOutputBufferWriteString(buf, " ");
669 xmlBufWriteQuotedString(buf->buffer, cur->SystemID); 669 xmlBufWriteQuotedString(buf->buffer, cur->SystemID);
670 } 670 }
671 } else if (cur->SystemID != NULL) { 671 } else if (cur->SystemID != NULL &&
672 » xmlStrcmp(cur->SystemID, BAD_CAST "about:legacy-compat")) {
672 xmlOutputBufferWriteString(buf, " SYSTEM "); 673 xmlOutputBufferWriteString(buf, " SYSTEM ");
673 xmlBufWriteQuotedString(buf->buffer, cur->SystemID); 674 xmlBufWriteQuotedString(buf->buffer, cur->SystemID);
674 } 675 }
675 xmlOutputBufferWriteString(buf, ">\n"); 676 xmlOutputBufferWriteString(buf, ">\n");
676 } 677 }
677 678
678 /** 679 /**
679 * htmlAttrDumpOutput: 680 * htmlAttrDumpOutput:
680 * @buf: the HTML buffer output 681 * @buf: the HTML buffer output
681 * @doc: the document 682 * @doc: the document
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 int 1272 int
1272 htmlSaveFileEnc(const char *filename, xmlDocPtr cur, const char *encoding) { 1273 htmlSaveFileEnc(const char *filename, xmlDocPtr cur, const char *encoding) {
1273 return(htmlSaveFileFormat(filename, cur, encoding, 1)); 1274 return(htmlSaveFileFormat(filename, cur, encoding, 1));
1274 } 1275 }
1275 1276
1276 #endif /* LIBXML_OUTPUT_ENABLED */ 1277 #endif /* LIBXML_OUTPUT_ENABLED */
1277 1278
1278 #define bottom_HTMLtree 1279 #define bottom_HTMLtree
1279 #include "elfgcchack.h" 1280 #include "elfgcchack.h"
1280 #endif /* LIBXML_HTML_ENABLED */ 1281 #endif /* LIBXML_HTML_ENABLED */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698