| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 if (!params) | 212 if (!params) |
| 213 return; | 213 return; |
| 214 | 214 |
| 215 while (*temp) { | 215 while (*temp) { |
| 216 fastFree((void*)*(temp++)); | 216 fastFree((void*)*(temp++)); |
| 217 fastFree((void*)*(temp++)); | 217 fastFree((void*)*(temp++)); |
| 218 } | 218 } |
| 219 fastFree(params); | 219 fastFree(params); |
| 220 } | 220 } |
| 221 | 221 |
| 222 static xsltStylesheetPtr xsltStylesheetPointer(RefPtr<XSLStyleSheet>& cachedStyl
esheet, Node* stylesheetRootNode) | 222 static xsltStylesheetPtr xsltStylesheetPointer(RefPtrWillBeMember<XSLStyleSheet>
& cachedStylesheet, Node* stylesheetRootNode) |
| 223 { | 223 { |
| 224 if (!cachedStylesheet && stylesheetRootNode) { | 224 if (!cachedStylesheet && stylesheetRootNode) { |
| 225 cachedStylesheet = XSLStyleSheet::createForXSLTProcessor(stylesheetRootN
ode->parentNode() ? stylesheetRootNode->parentNode() : stylesheetRootNode, | 225 cachedStylesheet = XSLStyleSheet::createForXSLTProcessor(stylesheetRootN
ode->parentNode() ? stylesheetRootNode->parentNode() : stylesheetRootNode, |
| 226 stylesheetRootNode->document().url().string(), | 226 stylesheetRootNode->document().url().string(), |
| 227 stylesheetRootNode->document().url()); // FIXME: Should we use baseU
RL here? | 227 stylesheetRootNode->document().url()); // FIXME: Should we use baseU
RL here? |
| 228 | 228 |
| 229 // According to Mozilla documentation, the node must be a Document node,
an xsl:stylesheet or xsl:transform element. | 229 // According to Mozilla documentation, the node must be a Document node,
an xsl:stylesheet or xsl:transform element. |
| 230 // But we just use text content regardless of node type. | 230 // But we just use text content regardless of node type. |
| 231 cachedStylesheet->parseString(createMarkup(stylesheetRootNode)); | 231 cachedStylesheet->parseString(createMarkup(stylesheetRootNode)); |
| 232 } | 232 } |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 338 |
| 339 sheet->method = origMethod; | 339 sheet->method = origMethod; |
| 340 setXSLTLoadCallBack(0, 0, 0); | 340 setXSLTLoadCallBack(0, 0, 0); |
| 341 xsltFreeStylesheet(sheet); | 341 xsltFreeStylesheet(sheet); |
| 342 m_stylesheet = nullptr; | 342 m_stylesheet = nullptr; |
| 343 | 343 |
| 344 return success; | 344 return success; |
| 345 } | 345 } |
| 346 | 346 |
| 347 } // namespace WebCore | 347 } // namespace WebCore |
| OLD | NEW |