| 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 15 matching lines...) Expand all Loading... |
| 26 #include "core/dom/DOMImplementation.h" | 26 #include "core/dom/DOMImplementation.h" |
| 27 #include "core/dom/DocumentEncodingData.h" | 27 #include "core/dom/DocumentEncodingData.h" |
| 28 #include "core/dom/DocumentFragment.h" | 28 #include "core/dom/DocumentFragment.h" |
| 29 #include "core/editing/markup.h" | 29 #include "core/editing/markup.h" |
| 30 #include "core/frame/LocalDOMWindow.h" | 30 #include "core/frame/LocalDOMWindow.h" |
| 31 #include "core/frame/FrameView.h" | 31 #include "core/frame/FrameView.h" |
| 32 #include "core/frame/LocalFrame.h" | 32 #include "core/frame/LocalFrame.h" |
| 33 #include "core/frame/csp/ContentSecurityPolicy.h" | 33 #include "core/frame/csp/ContentSecurityPolicy.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" | |
| 37 | 36 |
| 38 namespace blink { | 37 namespace blink { |
| 39 | 38 |
| 40 static inline void transformTextStringToXHTMLDocumentString(String& text) | 39 static inline void transformTextStringToXHTMLDocumentString(String& text) |
| 41 { | 40 { |
| 42 // 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. |
| 43 text.replaceWithLiteral('&', "&"); | 42 text.replaceWithLiteral('&', "&"); |
| 44 text.replaceWithLiteral('<', "<"); | 43 text.replaceWithLiteral('<', "<"); |
| 45 text = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" | 44 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" | 45 "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www
.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 m_parameters.clear(); | 158 m_parameters.clear(); |
| 160 } | 159 } |
| 161 | 160 |
| 162 void XSLTProcessor::trace(Visitor* visitor) | 161 void XSLTProcessor::trace(Visitor* visitor) |
| 163 { | 162 { |
| 164 visitor->trace(m_stylesheet); | 163 visitor->trace(m_stylesheet); |
| 165 visitor->trace(m_stylesheetRootNode); | 164 visitor->trace(m_stylesheetRootNode); |
| 166 } | 165 } |
| 167 | 166 |
| 168 } // namespace blink | 167 } // namespace blink |
| OLD | NEW |