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

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

Issue 111443014: Use default argument value instead of overloading for MarkupAccumulator::serializeNodes() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@dom_WATCHLIST
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/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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 EntityMask mask; 63 EntityMask mask;
64 }; 64 };
65 65
66 class MarkupAccumulator { 66 class MarkupAccumulator {
67 WTF_MAKE_NONCOPYABLE(MarkupAccumulator); 67 WTF_MAKE_NONCOPYABLE(MarkupAccumulator);
68 68
69 public: 69 public:
70 MarkupAccumulator(Vector<Node*>*, EAbsoluteURLs, const Range* = 0); 70 MarkupAccumulator(Vector<Node*>*, EAbsoluteURLs, const Range* = 0);
71 virtual ~MarkupAccumulator(); 71 virtual ~MarkupAccumulator();
72 72
73 String serializeNodes(Node* targetNode, EChildrenOnly); 73 String serializeNodes(Node* targetNode, EChildrenOnly, Vector<QualifiedName> * tagNamesToSkip = 0);
74 String serializeNodes(Node* targetNode, EChildrenOnly, Vector<QualifiedName> * tagNamesToSkip);
75 74
76 static void appendComment(StringBuilder&, const String&); 75 static void appendComment(StringBuilder&, const String&);
77 76
78 static void appendCharactersReplacingEntities(StringBuilder&, const String&, unsigned, unsigned, EntityMask); 77 static void appendCharactersReplacingEntities(StringBuilder&, const String&, unsigned, unsigned, EntityMask);
79 78
80 protected: 79 protected:
81 virtual void appendString(const String&); 80 virtual void appendString(const String&);
82 void appendStartTag(Node*, Namespaces* = 0); 81 void appendStartTag(Node*, Namespaces* = 0);
83 virtual void appendEndTag(Node*); 82 virtual void appendEndTag(Node*);
84 static size_t totalLength(const Vector<String>&); 83 static size_t totalLength(const Vector<String>&);
(...skipping 28 matching lines...) Expand all
113 void appendQuotedURLAttributeValue(StringBuilder&, const Element*, const Att ribute&); 112 void appendQuotedURLAttributeValue(StringBuilder&, const Element*, const Att ribute&);
114 void serializeNodesWithNamespaces(Node* targetNode, EChildrenOnly, const Nam espaces*, Vector<QualifiedName>* tagNamesToSkip); 113 void serializeNodesWithNamespaces(Node* targetNode, EChildrenOnly, const Nam espaces*, Vector<QualifiedName>* tagNamesToSkip);
115 114
116 StringBuilder m_markup; 115 StringBuilder m_markup;
117 const EAbsoluteURLs m_resolveURLsMethod; 116 const EAbsoluteURLs m_resolveURLsMethod;
118 }; 117 };
119 118
120 } 119 }
121 120
122 #endif 121 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/MarkupAccumulator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698