| 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, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 loadChildSheet(String::fromUTF8((const char*)uriRef)); | 216 loadChildSheet(String::fromUTF8((const char*)uriRef)); |
| 217 xmlFree(uriRef); | 217 xmlFree(uriRef); |
| 218 } | 218 } |
| 219 curr = curr->next; | 219 curr = curr->next; |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 } | 222 } |
| 223 | 223 |
| 224 void XSLStyleSheet::loadChildSheet(const String& href) { | 224 void XSLStyleSheet::loadChildSheet(const String& href) { |
| 225 XSLImportRule* childRule = XSLImportRule::create(this, href); | 225 XSLImportRule* childRule = XSLImportRule::create(this, href); |
| 226 m_children.append(childRule); | 226 m_children.push_back(childRule); |
| 227 childRule->loadSheet(); | 227 childRule->loadSheet(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 xsltStylesheetPtr XSLStyleSheet::compileStyleSheet() { | 230 xsltStylesheetPtr XSLStyleSheet::compileStyleSheet() { |
| 231 // FIXME: Hook up error reporting for the stylesheet compilation process. | 231 // FIXME: Hook up error reporting for the stylesheet compilation process. |
| 232 if (m_embedded) | 232 if (m_embedded) |
| 233 return xsltLoadStylesheetPI(document()); | 233 return xsltLoadStylesheetPI(document()); |
| 234 | 234 |
| 235 // Certain libxslt versions are corrupting the xmlDoc on compilation | 235 // Certain libxslt versions are corrupting the xmlDoc on compilation |
| 236 // failures - hence attempting to recompile after a failure is unsafe. | 236 // failures - hence attempting to recompile after a failure is unsafe. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 310 |
| 311 DEFINE_TRACE(XSLStyleSheet) { | 311 DEFINE_TRACE(XSLStyleSheet) { |
| 312 visitor->trace(m_ownerNode); | 312 visitor->trace(m_ownerNode); |
| 313 visitor->trace(m_children); | 313 visitor->trace(m_children); |
| 314 visitor->trace(m_parentStyleSheet); | 314 visitor->trace(m_parentStyleSheet); |
| 315 visitor->trace(m_ownerDocument); | 315 visitor->trace(m_ownerDocument); |
| 316 StyleSheet::trace(visitor); | 316 StyleSheet::trace(visitor); |
| 317 } | 317 } |
| 318 | 318 |
| 319 } // namespace blink | 319 } // namespace blink |
| OLD | NEW |