| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool shouldAddNamespaceAttribute(const Attribute&, Namespaces&); | 90 bool shouldAddNamespaceAttribute(const Attribute&, Namespaces&); |
| 91 void appendNamespace(StringBuilder&, const AtomicString& prefix, const Atomi
cString& namespaceURI, Namespaces&); | 91 void appendNamespace(StringBuilder&, const AtomicString& prefix, const Atomi
cString& namespaceURI, Namespaces&); |
| 92 EntityMask entityMaskForText(Text*) const; | 92 EntityMask entityMaskForText(Text*) const; |
| 93 virtual void appendText(StringBuilder&, Text*); | 93 virtual void appendText(StringBuilder&, Text*); |
| 94 void appendXMLDeclaration(StringBuilder&, const Document*); | 94 void appendXMLDeclaration(StringBuilder&, const Document*); |
| 95 void appendDocumentType(StringBuilder&, const DocumentType*); | 95 void appendDocumentType(StringBuilder&, const DocumentType*); |
| 96 void appendProcessingInstruction(StringBuilder&, const String& target, const
String& data); | 96 void appendProcessingInstruction(StringBuilder&, const String& target, const
String& data); |
| 97 virtual void appendElement(StringBuilder&, Element*, Namespaces*); | 97 virtual void appendElement(StringBuilder&, Element*, Namespaces*); |
| 98 void appendOpenTag(StringBuilder&, Element*, Namespaces*); | 98 void appendOpenTag(StringBuilder&, Element*, Namespaces*); |
| 99 void appendCloseTag(StringBuilder&, Element*); | 99 void appendCloseTag(StringBuilder&, Element*); |
| 100 void appendAttribute(StringBuilder&, Element*, const Attribute&, Namespaces*
); | 100 virtual void appendAttribute(StringBuilder&, Element*, const Attribute&, Nam
espaces*); |
| 101 void appendCDATASection(StringBuilder&, const String&); | 101 void appendCDATASection(StringBuilder&, const String&); |
| 102 void appendStartMarkup(StringBuilder&, const Node*, Namespaces*); | 102 void appendStartMarkup(StringBuilder&, const Node*, Namespaces*); |
| 103 bool shouldSelfClose(const Node*); | 103 bool shouldSelfClose(const Node*); |
| 104 bool elementCannotHaveEndTag(const Node*); | 104 bool elementCannotHaveEndTag(const Node*); |
| 105 void appendEndMarkup(StringBuilder&, const Node*); | 105 void appendEndMarkup(StringBuilder&, const Node*); |
| 106 | 106 |
| 107 Vector<Node*>* const m_nodes; | 107 Vector<Node*>* const m_nodes; |
| 108 const Range* const m_range; | 108 const Range* const m_range; |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 String resolveURLIfNeeded(const Element*, const String&) const; | 111 String resolveURLIfNeeded(const Element*, const String&) const; |
| 112 void appendQuotedURLAttributeValue(StringBuilder&, const Element*, const Att
ribute&); | 112 void appendQuotedURLAttributeValue(StringBuilder&, const Element*, const Att
ribute&); |
| 113 void serializeNodesWithNamespaces(Node* targetNode, EChildrenOnly, const Nam
espaces*, Vector<QualifiedName>* tagNamesToSkip); | 113 void serializeNodesWithNamespaces(Node* targetNode, EChildrenOnly, const Nam
espaces*, Vector<QualifiedName>* tagNamesToSkip); |
| 114 | 114 |
| 115 StringBuilder m_markup; | 115 StringBuilder m_markup; |
| 116 const EAbsoluteURLs m_resolveURLsMethod; | 116 const EAbsoluteURLs m_resolveURLsMethod; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } | 119 } |
| 120 | 120 |
| 121 #endif | 121 #endif |
| OLD | NEW |