| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) |
| 65 return; | 65 return; |
| 66 | 66 |
| 67 MessageLevel level; | 67 MessageLevel level; |
| 68 switch (error->level) { | 68 switch (error->level) { |
| 69 case XML_ERR_NONE: | 69 case XML_ERR_NONE: |
| 70 level = DebugMessageLevel; | 70 level = VerboseMessageLevel; |
| 71 break; | 71 break; |
| 72 case XML_ERR_WARNING: | 72 case XML_ERR_WARNING: |
| 73 level = WarningMessageLevel; | 73 level = WarningMessageLevel; |
| 74 break; | 74 break; |
| 75 case XML_ERR_ERROR: | 75 case XML_ERR_ERROR: |
| 76 case XML_ERR_FATAL: | 76 case XML_ERR_FATAL: |
| 77 default: | 77 default: |
| 78 level = ErrorMessageLevel; | 78 level = ErrorMessageLevel; |
| 79 break; | 79 break; |
| 80 } | 80 } |
| (...skipping 306 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 |