| 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 "core/xml/XSLTProcessor.h" | 23 #include "core/xml/XSLTProcessor.h" |
| 24 | 24 |
| 25 #include <libxslt/imports.h> |
| 26 #include <libxslt/security.h> |
| 27 #include <libxslt/variables.h> |
| 28 #include <libxslt/xsltutils.h> |
| 25 #include "bindings/core/v8/SourceLocation.h" | 29 #include "bindings/core/v8/SourceLocation.h" |
| 26 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 27 #include "core/dom/TransformSource.h" | 31 #include "core/dom/TransformSource.h" |
| 28 #include "core/editing/serializers/Serialization.h" | 32 #include "core/editing/serializers/Serialization.h" |
| 29 #include "core/frame/FrameConsole.h" | 33 #include "core/frame/FrameConsole.h" |
| 30 #include "core/frame/FrameHost.h" | 34 #include "core/frame/FrameHost.h" |
| 31 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 32 #include "core/inspector/ConsoleMessage.h" | 36 #include "core/inspector/ConsoleMessage.h" |
| 33 #include "core/xml/XSLStyleSheet.h" | 37 #include "core/xml/XSLStyleSheet.h" |
| 34 #include "core/xml/XSLTExtensions.h" | 38 #include "core/xml/XSLTExtensions.h" |
| 35 #include "core/xml/XSLTUnicodeSort.h" | 39 #include "core/xml/XSLTUnicodeSort.h" |
| 36 #include "core/xml/parser/XMLDocumentParser.h" | 40 #include "core/xml/parser/XMLDocumentParser.h" |
| 37 #include "platform/SharedBuffer.h" | 41 #include "platform/SharedBuffer.h" |
| 38 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" | 42 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" |
| 39 #include "platform/loader/fetch/RawResource.h" | 43 #include "platform/loader/fetch/RawResource.h" |
| 40 #include "platform/loader/fetch/Resource.h" | 44 #include "platform/loader/fetch/Resource.h" |
| 41 #include "platform/loader/fetch/ResourceFetcher.h" | 45 #include "platform/loader/fetch/ResourceFetcher.h" |
| 42 #include "platform/network/ResourceError.h" | 46 #include "platform/network/ResourceError.h" |
| 43 #include "platform/network/ResourceRequest.h" | 47 #include "platform/network/ResourceRequest.h" |
| 44 #include "platform/network/ResourceResponse.h" | 48 #include "platform/network/ResourceResponse.h" |
| 45 #include "platform/weborigin/SecurityOrigin.h" | 49 #include "platform/weborigin/SecurityOrigin.h" |
| 46 #include "wtf/Assertions.h" | 50 #include "wtf/Assertions.h" |
| 47 #include "wtf/allocator/Partitions.h" | 51 #include "wtf/allocator/Partitions.h" |
| 48 #include "wtf/text/CString.h" | 52 #include "wtf/text/CString.h" |
| 49 #include "wtf/text/StringBuffer.h" | 53 #include "wtf/text/StringBuffer.h" |
| 50 #include "wtf/text/UTF8.h" | 54 #include "wtf/text/UTF8.h" |
| 51 #include <libxslt/imports.h> | |
| 52 #include <libxslt/security.h> | |
| 53 #include <libxslt/variables.h> | |
| 54 #include <libxslt/xsltutils.h> | |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 void XSLTProcessor::genericErrorFunc(void*, const char*, ...) { | 58 void XSLTProcessor::genericErrorFunc(void*, const char*, ...) { |
| 59 // It would be nice to do something with this error message. | 59 // It would be nice to do something with this error message. |
| 60 } | 60 } |
| 61 | 61 |
| 62 void XSLTProcessor::parseErrorFunc(void* userData, xmlError* error) { | 62 void XSLTProcessor::parseErrorFunc(void* userData, xmlError* error) { |
| 63 FrameConsole* console = static_cast<FrameConsole*>(userData); | 63 FrameConsole* console = static_cast<FrameConsole*>(userData); |
| 64 if (!console) | 64 if (!console) |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 sheet->method = origMethod; | 388 sheet->method = origMethod; |
| 389 setXSLTLoadCallBack(0, 0, 0); | 389 setXSLTLoadCallBack(0, 0, 0); |
| 390 xsltFreeStylesheet(sheet); | 390 xsltFreeStylesheet(sheet); |
| 391 m_stylesheet = nullptr; | 391 m_stylesheet = nullptr; |
| 392 | 392 |
| 393 return success; | 393 return success; |
| 394 } | 394 } |
| 395 | 395 |
| 396 } // namespace blink | 396 } // namespace blink |
| OLD | NEW |