| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 STACK_ALLOCATED(); | 67 STACK_ALLOCATED(); |
| 68 public: | 68 public: |
| 69 static void appendAttributeValue(StringBuilder&, const String&, bool); | 69 static void appendAttributeValue(StringBuilder&, const String&, bool); |
| 70 static void appendCDATASection(StringBuilder&, const String&); | 70 static void appendCDATASection(StringBuilder&, const String&); |
| 71 static void appendCharactersReplacingEntities(StringBuilder&, const String&,
unsigned, unsigned, EntityMask); | 71 static void appendCharactersReplacingEntities(StringBuilder&, const String&,
unsigned, unsigned, EntityMask); |
| 72 static void appendComment(StringBuilder&, const String&); | 72 static void appendComment(StringBuilder&, const String&); |
| 73 static void appendDocumentType(StringBuilder&, const DocumentType&); | 73 static void appendDocumentType(StringBuilder&, const DocumentType&); |
| 74 static void appendNamespace(StringBuilder&, const AtomicString& prefix, cons
t AtomicString& namespaceURI, Namespaces&); | 74 static void appendNamespace(StringBuilder&, const AtomicString& prefix, cons
t AtomicString& namespaceURI, Namespaces&); |
| 75 static void appendProcessingInstruction(StringBuilder&, const String& target
, const String& data); | 75 static void appendProcessingInstruction(StringBuilder&, const String& target
, const String& data); |
| 76 static void appendXMLDeclaration(StringBuilder&, const Document&); | 76 static void appendXMLDeclaration(StringBuilder&, const Document&); |
| 77 static size_t totalLength(const Vector<String>&); | |
| 78 | 77 |
| 79 MarkupFormatter(EAbsoluteURLs, SerializationType = SerializationType::AsOwne
rDocument); | 78 MarkupFormatter(EAbsoluteURLs, SerializationType = SerializationType::AsOwne
rDocument); |
| 80 ~MarkupFormatter(); | 79 ~MarkupFormatter(); |
| 81 | 80 |
| 82 void appendStartMarkup(StringBuilder&, const Node&, Namespaces*); | 81 void appendStartMarkup(StringBuilder&, const Node&, Namespaces*); |
| 83 void appendEndMarkup(StringBuilder&, const Element&); | 82 void appendEndMarkup(StringBuilder&, const Element&); |
| 84 | 83 |
| 85 bool serializeAsHTMLDocument(const Node&) const; | 84 bool serializeAsHTMLDocument(const Node&) const; |
| 86 | 85 |
| 87 void appendText(StringBuilder&, Text&); | 86 void appendText(StringBuilder&, Text&); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 98 String resolveURLIfNeeded(const Element&, const String&) const; | 97 String resolveURLIfNeeded(const Element&, const String&) const; |
| 99 void appendQuotedURLAttributeValue(StringBuilder&, const Element&, const Att
ribute&); | 98 void appendQuotedURLAttributeValue(StringBuilder&, const Element&, const Att
ribute&); |
| 100 | 99 |
| 101 const EAbsoluteURLs m_resolveURLsMethod; | 100 const EAbsoluteURLs m_resolveURLsMethod; |
| 102 SerializationType m_serializationType; | 101 SerializationType m_serializationType; |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } | 104 } |
| 106 | 105 |
| 107 #endif | 106 #endif |
| OLD | NEW |