| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |