OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |