| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 request.setOriginRestriction(FetchRequest::RestrictToSameOrigin); | 102 request.setOriginRestriction(FetchRequest::RestrictToSameOrigin); |
| 103 ResourcePtr<Resource> resource = fetcher->fetchSynchronously(request); | 103 ResourcePtr<Resource> resource = fetcher->fetchSynchronously(request); |
| 104 if (!resource) | 104 if (!resource) |
| 105 return; | 105 return; |
| 106 | 106 |
| 107 ASSERT(!m_styleSheet); | 107 ASSERT(!m_styleSheet); |
| 108 if (SharedBuffer* data = resource->resourceBuffer()) | 108 if (SharedBuffer* data = resource->resourceBuffer()) |
| 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 void XSLImportRule::trace(Visitor* visitor) | 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 |