Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: third_party/WebKit/Source/core/xml/XSLTProcessorLibxslt.cpp

Issue 2016123002: Remove ScriptCallStack. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2006893004
Patch Set: rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "bindings/core/v8/SourceLocation.h"
25 #include "core/dom/Document.h" 26 #include "core/dom/Document.h"
26 #include "core/dom/TransformSource.h" 27 #include "core/dom/TransformSource.h"
27 #include "core/editing/serializers/Serialization.h" 28 #include "core/editing/serializers/Serialization.h"
28 #include "core/fetch/FetchInitiatorTypeNames.h" 29 #include "core/fetch/FetchInitiatorTypeNames.h"
29 #include "core/fetch/RawResource.h" 30 #include "core/fetch/RawResource.h"
30 #include "core/fetch/Resource.h" 31 #include "core/fetch/Resource.h"
31 #include "core/fetch/ResourceFetcher.h" 32 #include "core/fetch/ResourceFetcher.h"
32 #include "core/frame/FrameConsole.h" 33 #include "core/frame/FrameConsole.h"
33 #include "core/frame/FrameHost.h" 34 #include "core/frame/FrameHost.h"
34 #include "core/frame/LocalFrame.h" 35 #include "core/frame/LocalFrame.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 case XML_ERR_WARNING: 74 case XML_ERR_WARNING:
74 level = WarningMessageLevel; 75 level = WarningMessageLevel;
75 break; 76 break;
76 case XML_ERR_ERROR: 77 case XML_ERR_ERROR:
77 case XML_ERR_FATAL: 78 case XML_ERR_FATAL:
78 default: 79 default:
79 level = ErrorMessageLevel; 80 level = ErrorMessageLevel;
80 break; 81 break;
81 } 82 }
82 83
83 console->addMessage(ConsoleMessage::create(XMLMessageSource, level, error->m essage, error->file, error->line, 0)); 84 console->addMessage(ConsoleMessage::create(XMLMessageSource, level, error->m essage, SourceLocation::create(error->file, error->line, 0, nullptr)));
84 } 85 }
85 86
86 // FIXME: There seems to be no way to control the ctxt pointer for loading here, thus we have globals. 87 // FIXME: There seems to be no way to control the ctxt pointer for loading here, thus we have globals.
87 static XSLTProcessor* globalProcessor = nullptr; 88 static XSLTProcessor* globalProcessor = nullptr;
88 static ResourceFetcher* globalResourceFetcher = nullptr; 89 static ResourceFetcher* globalResourceFetcher = nullptr;
89 90
90 static xmlDocPtr docLoaderFunc( 91 static xmlDocPtr docLoaderFunc(
91 const xmlChar* uri, xmlDictPtr, int options, void* ctxt, xsltLoadType type) 92 const xmlChar* uri, xmlDictPtr, int options, void* ctxt, xsltLoadType type)
92 { 93 {
93 if (!globalProcessor) 94 if (!globalProcessor)
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 354
354 sheet->method = origMethod; 355 sheet->method = origMethod;
355 setXSLTLoadCallBack(0, 0, 0); 356 setXSLTLoadCallBack(0, 0, 0);
356 xsltFreeStylesheet(sheet); 357 xsltFreeStylesheet(sheet);
357 m_stylesheet = nullptr; 358 m_stylesheet = nullptr;
358 359
359 return success; 360 return success;
360 } 361 }
361 362
362 } // namespace blink 363 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698