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

Side by Side Diff: Source/core/editing/MarkupAccumulator.cpp

Issue 282823004: Remove internalSubset from DocumentType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove corresponding use counter Created 6 years, 7 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
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 if (!n.systemId().isEmpty()) { 360 if (!n.systemId().isEmpty()) {
361 result.appendLiteral(" \""); 361 result.appendLiteral(" \"");
362 result.append(n.systemId()); 362 result.append(n.systemId());
363 result.append('"'); 363 result.append('"');
364 } 364 }
365 } else if (!n.systemId().isEmpty()) { 365 } else if (!n.systemId().isEmpty()) {
366 result.appendLiteral(" SYSTEM \""); 366 result.appendLiteral(" SYSTEM \"");
367 result.append(n.systemId()); 367 result.append(n.systemId());
368 result.append('"'); 368 result.append('"');
369 } 369 }
370 if (!n.internalSubset().isEmpty()) {
371 result.appendLiteral(" [");
372 result.append(n.internalSubset());
373 result.append(']');
374 }
375 result.append('>'); 370 result.append('>');
376 } 371 }
377 372
378 void MarkupAccumulator::appendProcessingInstruction(StringBuilder& result, const String& target, const String& data) 373 void MarkupAccumulator::appendProcessingInstruction(StringBuilder& result, const String& target, const String& data)
379 { 374 {
380 // FIXME: PI data is not escaped, but XMLSerializer (and possibly other call ers) this should raise an exception if it includes "?>". 375 // FIXME: PI data is not escaped, but XMLSerializer (and possibly other call ers) this should raise an exception if it includes "?>".
381 result.appendLiteral("<?"); 376 result.appendLiteral("<?");
382 result.append(target); 377 result.append(target);
383 result.append(' '); 378 result.append(' ');
384 result.append(data); 379 result.append(data);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 } 559 }
565 560
566 bool MarkupAccumulator::serializeAsHTMLDocument(const Node& node) const 561 bool MarkupAccumulator::serializeAsHTMLDocument(const Node& node) const
567 { 562 {
568 if (m_serializationType == ForcedXML) 563 if (m_serializationType == ForcedXML)
569 return false; 564 return false;
570 return node.document().isHTMLDocument(); 565 return node.document().isHTMLDocument();
571 } 566 }
572 567
573 } 568 }
OLDNEW
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698