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

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

Issue 121043005: Clean up virtual methods in MarkupAccumulator and subclasses (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/core/editing/markup.cpp » ('j') | Source/core/editing/markup.cpp » ('J')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual ~MarkupAccumulator(); 71 virtual ~MarkupAccumulator();
72 72
73 String serializeNodes(Node* targetNode, EChildrenOnly); 73 String serializeNodes(Node* targetNode, EChildrenOnly);
74 String serializeNodes(Node* targetNode, EChildrenOnly, Vector<QualifiedName> * tagNamesToSkip); 74 String serializeNodes(Node* targetNode, EChildrenOnly, Vector<QualifiedName> * tagNamesToSkip);
75 75
76 static void appendComment(StringBuilder&, const String&); 76 static void appendComment(StringBuilder&, const String&);
77 77
78 static void appendCharactersReplacingEntities(StringBuilder&, const String&, unsigned, unsigned, EntityMask); 78 static void appendCharactersReplacingEntities(StringBuilder&, const String&, unsigned, unsigned, EntityMask);
79 79
80 protected: 80 protected:
81 virtual void appendString(const String&); 81 void appendString(const String&);
82 void appendStartTag(Node*, Namespaces* = 0); 82 void appendStartTag(Node*, Namespaces* = 0);
83 virtual void appendEndTag(Node*); 83 virtual void appendEndTag(Node*);
84 static size_t totalLength(const Vector<String>&); 84 static size_t totalLength(const Vector<String>&);
85 size_t length() const { return m_markup.length(); } 85 size_t length() const { return m_markup.length(); }
86 void concatenateMarkup(StringBuilder&); 86 void concatenateMarkup(StringBuilder&);
87 void appendAttributeValue(StringBuilder&, const String&, bool); 87 void appendAttributeValue(StringBuilder&, const String&, bool);
88 virtual void appendCustomAttributes(StringBuilder&, Element*, Namespaces*); 88 virtual void appendCustomAttributes(StringBuilder&, Element*, Namespaces*);
89 void appendNodeValue(StringBuilder&, const Node*, const Range*, EntityMask); 89 void appendNodeValue(StringBuilder&, const Node*, const Range*, EntityMask);
90 bool shouldAddNamespaceElement(const Element*); 90 bool shouldAddNamespaceElement(const Element*);
91 bool shouldAddNamespaceAttribute(const Attribute&, Namespaces&); 91 bool shouldAddNamespaceAttribute(const Attribute&, Namespaces&);
(...skipping 21 matching lines...) Expand all
113 void appendQuotedURLAttributeValue(StringBuilder&, const Element*, const Att ribute&); 113 void appendQuotedURLAttributeValue(StringBuilder&, const Element*, const Att ribute&);
114 void serializeNodesWithNamespaces(Node* targetNode, EChildrenOnly, const Nam espaces*, Vector<QualifiedName>* tagNamesToSkip); 114 void serializeNodesWithNamespaces(Node* targetNode, EChildrenOnly, const Nam espaces*, Vector<QualifiedName>* tagNamesToSkip);
115 115
116 StringBuilder m_markup; 116 StringBuilder m_markup;
117 const EAbsoluteURLs m_resolveURLsMethod; 117 const EAbsoluteURLs m_resolveURLsMethod;
118 }; 118 };
119 119
120 } 120 }
121 121
122 #endif 122 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/markup.cpp » ('j') | Source/core/editing/markup.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698