| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the XSL implementation. | 2 * This file is part of the XSL implementation. |
| 3 * | 3 * |
| 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple, Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple, Inc. All rights reserved. |
| 5 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@webkit.org> |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "config.h" | 23 #include "config.h" |
| 24 #include "core/xml/XSLTProcessor.h" | 24 #include "core/xml/XSLTProcessor.h" |
| 25 | 25 |
| 26 #include "core/dom/DOMImplementation.h" | 26 #include "core/dom/DOMImplementation.h" |
| 27 #include "core/dom/DocumentFragment.h" | 27 #include "core/dom/DocumentFragment.h" |
| 28 #include "core/editing/markup.h" | 28 #include "core/editing/markup.h" |
| 29 #include "core/frame/ContentSecurityPolicy.h" | 29 #include "core/frame/ContentSecurityPolicy.h" |
| 30 #include "core/frame/DOMWindow.h" | 30 #include "core/frame/DOMWindow.h" |
| 31 #include "core/frame/Frame.h" | 31 #include "core/frame/Frame.h" |
| 32 #include "core/frame/FrameView.h" | 32 #include "core/frame/FrameView.h" |
| 33 #include "weborigin/SecurityOrigin.h" | 33 #include "platform/weborigin/SecurityOrigin.h" |
| 34 #include "wtf/Assertions.h" | 34 #include "wtf/Assertions.h" |
| 35 #include "wtf/Vector.h" | 35 #include "wtf/Vector.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 static inline void transformTextStringToXHTMLDocumentString(String& text) | 39 static inline void transformTextStringToXHTMLDocumentString(String& text) |
| 40 { | 40 { |
| 41 // Modify the output so that it is a well-formed XHTML document with a <pre>
tag enclosing the text. | 41 // Modify the output so that it is a well-formed XHTML document with a <pre>
tag enclosing the text. |
| 42 text.replaceWithLiteral('&', "&"); | 42 text.replaceWithLiteral('&', "&"); |
| 43 text.replaceWithLiteral('<', "<"); | 43 text.replaceWithLiteral('<', "<"); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 148 } |
| 149 | 149 |
| 150 void XSLTProcessor::reset() | 150 void XSLTProcessor::reset() |
| 151 { | 151 { |
| 152 m_stylesheet.clear(); | 152 m_stylesheet.clear(); |
| 153 m_stylesheetRootNode.clear(); | 153 m_stylesheetRootNode.clear(); |
| 154 m_parameters.clear(); | 154 m_parameters.clear(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace WebCore | 157 } // namespace WebCore |
| OLD | NEW |