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

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

Issue 739433003: Remove CDATASection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Text.cpp ('k') | Source/core/editing/MarkupAccumulator.cpp » ('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 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
90 void appendNamespace(StringBuilder&, const AtomicString& prefix, const Atomi cString& namespaceURI, Namespaces&); 90 void appendNamespace(StringBuilder&, const AtomicString& prefix, const Atomi cString& namespaceURI, Namespaces&);
91 EntityMask entityMaskForText(const Text&) const; 91 EntityMask entityMaskForText(const Text&) const;
92 virtual void appendText(StringBuilder&, Text&); 92 virtual void appendText(StringBuilder&, Text&);
93 void appendXMLDeclaration(StringBuilder&, const Document&); 93 void appendXMLDeclaration(StringBuilder&, const Document&);
94 void appendDocumentType(StringBuilder&, const DocumentType&); 94 void appendDocumentType(StringBuilder&, const DocumentType&);
95 void appendProcessingInstruction(StringBuilder&, const String& target, const String& data); 95 void appendProcessingInstruction(StringBuilder&, const String& target, const String& data);
96 virtual void appendElement(StringBuilder&, Element&, Namespaces*); 96 virtual void appendElement(StringBuilder&, Element&, Namespaces*);
97 void appendOpenTag(StringBuilder&, const Element&, Namespaces*); 97 void appendOpenTag(StringBuilder&, const Element&, Namespaces*);
98 void appendCloseTag(StringBuilder&, const Element&); 98 void appendCloseTag(StringBuilder&, const Element&);
99 void appendAttribute(StringBuilder&, const Element&, const Attribute&, Names paces*); 99 void appendAttribute(StringBuilder&, const Element&, const Attribute&, Names paces*);
100 void appendCDATASection(StringBuilder&, const String&);
101 void appendStartMarkup(StringBuilder&, Node&, Namespaces*); 100 void appendStartMarkup(StringBuilder&, Node&, Namespaces*);
102 bool shouldSelfClose(const Element&); 101 bool shouldSelfClose(const Element&);
103 bool elementCannotHaveEndTag(const Node&); 102 bool elementCannotHaveEndTag(const Node&);
104 void appendEndMarkup(StringBuilder&, const Element&); 103 void appendEndMarkup(StringBuilder&, const Element&);
105 104
106 RawPtrWillBeMember<WillBeHeapVector<RawPtrWillBeMember<Node>>> const m_nodes ; 105 RawPtrWillBeMember<WillBeHeapVector<RawPtrWillBeMember<Node>>> const m_nodes ;
107 RawPtrWillBeMember<const Range> const m_range; 106 RawPtrWillBeMember<const Range> const m_range;
108 107
109 private: 108 private:
110 String resolveURLIfNeeded(const Element&, const String&) const; 109 String resolveURLIfNeeded(const Element&, const String&) const;
111 void appendQuotedURLAttributeValue(StringBuilder&, const Element&, const Att ribute&); 110 void appendQuotedURLAttributeValue(StringBuilder&, const Element&, const Att ribute&);
112 void serializeNodesWithNamespaces(Node& targetNode, EChildrenOnly, const Nam espaces*); 111 void serializeNodesWithNamespaces(Node& targetNode, EChildrenOnly, const Nam espaces*);
113 bool serializeAsHTMLDocument(const Node&) const; 112 bool serializeAsHTMLDocument(const Node&) const;
114 113
115 StringBuilder m_markup; 114 StringBuilder m_markup;
116 const EAbsoluteURLs m_resolveURLsMethod; 115 const EAbsoluteURLs m_resolveURLsMethod;
117 SerializationType m_serializationType; 116 SerializationType m_serializationType;
118 }; 117 };
119 118
120 } 119 }
121 120
122 #endif 121 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Text.cpp ('k') | Source/core/editing/MarkupAccumulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698