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

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

Issue 1180623004: Refactoring: Move MarkupFormatter::totalLength to StyledMarkupAccumulator.cpp as an annonymous func… (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/editing/MarkupFormatter.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/MarkupFormatter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698