| 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. |
| 11 * | 11 * |
| 12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
| 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 * Library General Public License for more details. | 15 * Library General Public License for more details. |
| 16 * | 16 * |
| 17 * You should have received a copy of the GNU Library General Public License | 17 * You should have received a copy of the GNU Library General Public License |
| 18 * along with this library; see the file COPYING.LIB. If not, write to | 18 * along with this library; see the file COPYING.LIB. If not, write to |
| 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 * Boston, MA 02110-1301, USA. | 20 * Boston, MA 02110-1301, USA. |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #include "config.h" | 23 #include "config.h" |
| 24 | |
| 25 #include "core/xml/XSLTProcessor.h" | 24 #include "core/xml/XSLTProcessor.h" |
| 26 | 25 |
| 27 #include <libxslt/imports.h> | |
| 28 #include <libxslt/security.h> | |
| 29 #include <libxslt/variables.h> | |
| 30 #include <libxslt/xsltutils.h> | |
| 31 #include <wtf/Assertions.h> | |
| 32 #include <wtf/text/CString.h> | |
| 33 #include <wtf/text/StringBuffer.h> | |
| 34 #include <wtf/unicode/UTF8.h> | |
| 35 #include <wtf/Vector.h> | |
| 36 #include "core/dom/Document.h" | 26 #include "core/dom/Document.h" |
| 37 #include "core/dom/TransformSource.h" | 27 #include "core/dom/TransformSource.h" |
| 38 #include "core/editing/markup.h" | 28 #include "core/editing/markup.h" |
| 39 #include "core/loader/cache/ResourceFetcher.h" | 29 #include "core/loader/cache/ResourceFetcher.h" |
| 40 #include "core/page/Frame.h" | 30 #include "core/page/Frame.h" |
| 41 #include "core/page/Page.h" | 31 #include "core/page/Page.h" |
| 42 #include "core/page/PageConsole.h" | 32 #include "core/page/PageConsole.h" |
| 43 #include "core/platform/network/ResourceError.h" | 33 #include "core/platform/network/ResourceError.h" |
| 44 #include "core/platform/network/ResourceRequest.h" | 34 #include "core/platform/network/ResourceRequest.h" |
| 45 #include "core/platform/network/ResourceResponse.h" | 35 #include "core/platform/network/ResourceResponse.h" |
| 46 #include "core/xml/XSLStyleSheet.h" | 36 #include "core/xml/XSLStyleSheet.h" |
| 47 #include "core/xml/XSLTExtensions.h" | 37 #include "core/xml/XSLTExtensions.h" |
| 48 #include "core/xml/XSLTUnicodeSort.h" | 38 #include "core/xml/XSLTUnicodeSort.h" |
| 49 #include "core/xml/parser/XMLDocumentParser.h" | 39 #include "core/xml/parser/XMLDocumentParser.h" |
| 50 #include "weborigin/SecurityOrigin.h" | 40 #include "weborigin/SecurityOrigin.h" |
| 41 #include "wtf/Assertions.h" |
| 42 #include "wtf/Vector.h" |
| 43 #include "wtf/text/CString.h" |
| 44 #include "wtf/text/StringBuffer.h" |
| 45 #include "wtf/unicode/UTF8.h" |
| 46 #include <libxslt/imports.h> |
| 47 #include <libxslt/security.h> |
| 48 #include <libxslt/variables.h> |
| 49 #include <libxslt/xsltutils.h> |
| 51 | 50 |
| 52 namespace WebCore { | 51 namespace WebCore { |
| 53 | 52 |
| 54 void XSLTProcessor::genericErrorFunc(void*, const char*, ...) | 53 void XSLTProcessor::genericErrorFunc(void*, const char*, ...) |
| 55 { | 54 { |
| 56 // It would be nice to do something with this error message. | 55 // It would be nice to do something with this error message. |
| 57 } | 56 } |
| 58 | 57 |
| 59 void XSLTProcessor::parseErrorFunc(void* userData, xmlError* error) | 58 void XSLTProcessor::parseErrorFunc(void* userData, xmlError* error) |
| 60 { | 59 { |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 341 |
| 343 sheet->method = origMethod; | 342 sheet->method = origMethod; |
| 344 setXSLTLoadCallBack(0, 0, 0); | 343 setXSLTLoadCallBack(0, 0, 0); |
| 345 xsltFreeStylesheet(sheet); | 344 xsltFreeStylesheet(sheet); |
| 346 m_stylesheet = 0; | 345 m_stylesheet = 0; |
| 347 | 346 |
| 348 return success; | 347 return success; |
| 349 } | 348 } |
| 350 | 349 |
| 351 } // namespace WebCore | 350 } // namespace WebCore |
| OLD | NEW |