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

Unified Diff: Source/core/editing/MarkupFormatter.h

Issue 1162113004: Refactoring: Change some functions in MarkupFormatter static (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/MarkupAccumulator.cpp ('k') | Source/core/editing/StyledMarkupAccumulator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/MarkupFormatter.h
diff --git a/Source/core/editing/MarkupFormatter.h b/Source/core/editing/MarkupFormatter.h
index a488674e20e30b1ccbb506e7a2b35a385de750f8..36b79ecc8dbb373391797b158b09f168ce84b6b3 100644
--- a/Source/core/editing/MarkupFormatter.h
+++ b/Source/core/editing/MarkupFormatter.h
@@ -66,8 +66,14 @@ class MarkupFormatter final {
WTF_MAKE_NONCOPYABLE(MarkupFormatter);
STACK_ALLOCATED();
public:
- static void appendComment(StringBuilder&, const String&);
+ static void appendAttributeValue(StringBuilder&, const String&, bool);
+ static void appendCDATASection(StringBuilder&, const String&);
static void appendCharactersReplacingEntities(StringBuilder&, const String&, unsigned, unsigned, EntityMask);
+ static void appendComment(StringBuilder&, const String&);
+ static void appendDocumentType(StringBuilder&, const DocumentType&);
+ static void appendNamespace(StringBuilder&, const AtomicString& prefix, const AtomicString& namespaceURI, Namespaces&);
+ static void appendProcessingInstruction(StringBuilder&, const String& target, const String& data);
+ static void appendXMLDeclaration(StringBuilder&, const Document&);
static size_t totalLength(const Vector<String>&);
MarkupFormatter(EAbsoluteURLs, SerializationType = SerializationType::AsOwnerDocument);
@@ -77,17 +83,10 @@ public:
bool serializeAsHTMLDocument(const Node&) const;
- void appendAttributeValue(StringBuilder&, const String&, bool);
-
- void appendNamespace(StringBuilder&, const AtomicString& prefix, const AtomicString& namespaceURI, Namespaces&);
void appendText(StringBuilder&, Text&);
- void appendXMLDeclaration(StringBuilder&, const Document&);
- void appendDocumentType(StringBuilder&, const DocumentType&);
- void appendProcessingInstruction(StringBuilder&, const String& target, const String& data);
void appendOpenTag(StringBuilder&, const Element&, Namespaces*);
void appendCloseTag(StringBuilder&, const Element&);
void appendAttribute(StringBuilder&, const Element&, const Attribute&, Namespaces*);
- void appendCDATASection(StringBuilder&, const String&);
bool shouldAddNamespaceElement(const Element&, Namespaces&) const;
bool shouldAddNamespaceAttribute(const Attribute&, const Element&) const;
« no previous file with comments | « Source/core/editing/MarkupAccumulator.cpp ('k') | Source/core/editing/StyledMarkupAccumulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698