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

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

Issue 1999463002: Cleanup ConsoleMessage interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-message-callstack-in-constructor
Patch Set: PassRefPtr + win Created 4 years, 7 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.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 case XML_ERR_WARNING: 73 case XML_ERR_WARNING:
74 level = WarningMessageLevel; 74 level = WarningMessageLevel;
75 break; 75 break;
76 case XML_ERR_ERROR: 76 case XML_ERR_ERROR:
77 case XML_ERR_FATAL: 77 case XML_ERR_FATAL:
78 default: 78 default:
79 level = ErrorMessageLevel; 79 level = ErrorMessageLevel;
80 break; 80 break;
81 } 81 }
82 82
83 console->addMessage(ConsoleMessage::create(XMLMessageSource, level, error->m essage, error->file, error->line)); 83 console->addMessage(ConsoleMessage::create(XMLMessageSource, level, error->m essage, error->file, error->line, 0));
84 } 84 }
85 85
86 // FIXME: There seems to be no way to control the ctxt pointer for loading here, thus we have globals. 86 // FIXME: There seems to be no way to control the ctxt pointer for loading here, thus we have globals.
87 static XSLTProcessor* globalProcessor = nullptr; 87 static XSLTProcessor* globalProcessor = nullptr;
88 static ResourceFetcher* globalResourceFetcher = nullptr; 88 static ResourceFetcher* globalResourceFetcher = nullptr;
89 89
90 static xmlDocPtr docLoaderFunc( 90 static xmlDocPtr docLoaderFunc(
91 const xmlChar* uri, xmlDictPtr, int options, void* ctxt, xsltLoadType type) 91 const xmlChar* uri, xmlDictPtr, int options, void* ctxt, xsltLoadType type)
92 { 92 {
93 if (!globalProcessor) 93 if (!globalProcessor)
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 sheet->method = origMethod; 354 sheet->method = origMethod;
355 setXSLTLoadCallBack(0, 0, 0); 355 setXSLTLoadCallBack(0, 0, 0);
356 xsltFreeStylesheet(sheet); 356 xsltFreeStylesheet(sheet);
357 m_stylesheet = nullptr; 357 m_stylesheet = nullptr;
358 358
359 return success; 359 return success;
360 } 360 }
361 361
362 } // namespace blink 362 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698