| 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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2008 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 parent->checkLoaded(); | 65 parent->checkLoaded(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 bool XSLImportRule::isLoading() | 68 bool XSLImportRule::isLoading() |
| 69 { | 69 { |
| 70 return m_loading || (m_styleSheet && m_styleSheet->isLoading()); | 70 return m_loading || (m_styleSheet && m_styleSheet->isLoading()); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void XSLImportRule::loadSheet() | 73 void XSLImportRule::loadSheet() |
| 74 { | 74 { |
| 75 Document* ownerDocument = 0; | 75 Document* ownerDocument = nullptr; |
| 76 XSLStyleSheet* rootSheet = parentStyleSheet(); | 76 XSLStyleSheet* rootSheet = parentStyleSheet(); |
| 77 | 77 |
| 78 if (rootSheet) { | 78 if (rootSheet) { |
| 79 while (XSLStyleSheet* parentSheet = rootSheet->parentStyleSheet()) | 79 while (XSLStyleSheet* parentSheet = rootSheet->parentStyleSheet()) |
| 80 rootSheet = parentSheet; | 80 rootSheet = parentSheet; |
| 81 } | 81 } |
| 82 | 82 |
| 83 if (rootSheet) | 83 if (rootSheet) |
| 84 ownerDocument = rootSheet->ownerDocument(); | 84 ownerDocument = rootSheet->ownerDocument(); |
| 85 | 85 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 109 setXSLStyleSheet(absHref, resource->response().url(), UTF8Encoding().dec
ode(data->data(), data->size())); | 109 setXSLStyleSheet(absHref, resource->response().url(), UTF8Encoding().dec
ode(data->data(), data->size())); |
| 110 } | 110 } |
| 111 | 111 |
| 112 DEFINE_TRACE(XSLImportRule) | 112 DEFINE_TRACE(XSLImportRule) |
| 113 { | 113 { |
| 114 visitor->trace(m_parentStyleSheet); | 114 visitor->trace(m_parentStyleSheet); |
| 115 visitor->trace(m_styleSheet); | 115 visitor->trace(m_styleSheet); |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace blink | 118 } // namespace blink |
| OLD | NEW |