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

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

Issue 1177733002: Merge page serializers [11/12] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust TODO comment style Created 5 years, 5 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/page/PageSerializer.h » ('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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool serializeAsHTMLDocument(const Node&) const; 56 bool serializeAsHTMLDocument(const Node&) const;
57 String toString() { return m_markup.toString(); } 57 String toString() { return m_markup.toString(); }
58 58
59 virtual void appendCustomAttributes(StringBuilder&, const Element&, Namespac es*); 59 virtual void appendCustomAttributes(StringBuilder&, const Element&, Namespac es*);
60 60
61 virtual void appendText(StringBuilder&, Text&); 61 virtual void appendText(StringBuilder&, Text&);
62 virtual bool shouldIgnoreAttribute(const Attribute&); 62 virtual bool shouldIgnoreAttribute(const Attribute&);
63 virtual void appendElement(StringBuilder&, Element&, Namespaces*); 63 virtual void appendElement(StringBuilder&, Element&, Namespaces*);
64 void appendOpenTag(StringBuilder&, const Element&, Namespaces*); 64 void appendOpenTag(StringBuilder&, const Element&, Namespaces*);
65 void appendCloseTag(StringBuilder&, const Element&); 65 void appendCloseTag(StringBuilder&, const Element&);
66 void appendAttribute(StringBuilder&, const Element&, const Attribute&, Names paces*); 66 virtual void appendAttribute(StringBuilder&, const Element&, const Attribute &, Namespaces*);
67 67
68 EntityMask entityMaskForText(const Text&) const; 68 EntityMask entityMaskForText(const Text&) const;
69 69
70 private: 70 private:
71 MarkupFormatter m_formatter; 71 MarkupFormatter m_formatter;
72 StringBuilder m_markup; 72 StringBuilder m_markup;
73 }; 73 };
74 74
75 template<typename Strategy> 75 template<typename Strategy>
76 String serializeNodes(MarkupAccumulator&, Node&, EChildrenOnly); 76 String serializeNodes(MarkupAccumulator&, Node&, EChildrenOnly);
77 77
78 extern template String serializeNodes<EditingStrategy>(MarkupAccumulator&, Node& , EChildrenOnly); 78 extern template String serializeNodes<EditingStrategy>(MarkupAccumulator&, Node& , EChildrenOnly);
79 79
80 } 80 }
81 81
82 #endif 82 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/PageSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698