| 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/frame/ContentSecurityPolicy.h" | 30 #include "core/frame/ContentSecurityPolicy.h" |
| 31 #include "core/frame/DOMWindow.h" | 31 #include "core/frame/DOMWindow.h" |
| 32 #include "core/frame/Frame.h" | 32 #include "core/frame/Frame.h" |
| 33 #include "core/frame/FrameView.h" | 33 #include "core/frame/FrameView.h" |
| 34 #include "platform/weborigin/SecurityOrigin.h" | 34 #include "platform/weborigin/SecurityOrigin.h" |
| 35 #include "wtf/Assertions.h" | 35 #include "wtf/Assertions.h" |
| 36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 DEFINE_GC_INFO(XSLTProcessor); |
| 41 |
| 40 static inline void transformTextStringToXHTMLDocumentString(String& text) | 42 static inline void transformTextStringToXHTMLDocumentString(String& text) |
| 41 { | 43 { |
| 42 // Modify the output so that it is a well-formed XHTML document with a <pre>
tag enclosing the text. | 44 // Modify the output so that it is a well-formed XHTML document with a <pre>
tag enclosing the text. |
| 43 text.replaceWithLiteral('&', "&"); | 45 text.replaceWithLiteral('&', "&"); |
| 44 text.replaceWithLiteral('<', "<"); | 46 text.replaceWithLiteral('<', "<"); |
| 45 text = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" | 47 text = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" |
| 46 "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www
.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" | 48 "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www
.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" |
| 47 "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" | 49 "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" |
| 48 "<head><title/></head>\n" | 50 "<head><title/></head>\n" |
| 49 "<body>\n" | 51 "<body>\n" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 } | 153 } |
| 152 | 154 |
| 153 void XSLTProcessor::reset() | 155 void XSLTProcessor::reset() |
| 154 { | 156 { |
| 155 m_stylesheet.clear(); | 157 m_stylesheet.clear(); |
| 156 m_stylesheetRootNode.clear(); | 158 m_stylesheetRootNode.clear(); |
| 157 m_parameters.clear(); | 159 m_parameters.clear(); |
| 158 } | 160 } |
| 159 | 161 |
| 160 } // namespace WebCore | 162 } // namespace WebCore |
| OLD | NEW |