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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 return; | 93 return; |
94 } | 94 } |
95 | 95 |
96 ResourceLoaderOptions fetchOptions(ResourceFetcher::defaultResourceOptions()
); | 96 ResourceLoaderOptions fetchOptions(ResourceFetcher::defaultResourceOptions()
); |
97 FetchRequest request(ResourceRequest(ownerDocument->completeURL(absHref)), F
etchInitiatorTypeNames::xml, fetchOptions); | 97 FetchRequest request(ResourceRequest(ownerDocument->completeURL(absHref)), F
etchInitiatorTypeNames::xml, fetchOptions); |
98 request.setOriginRestriction(FetchRequest::RestrictToSameOrigin); | 98 request.setOriginRestriction(FetchRequest::RestrictToSameOrigin); |
99 XSLStyleSheetResource* resource = XSLStyleSheetResource::fetchSynchronously(
request, ownerDocument->fetcher()); | 99 XSLStyleSheetResource* resource = XSLStyleSheetResource::fetchSynchronously(
request, ownerDocument->fetcher()); |
100 if (!resource || !resource->sheet()) | 100 if (!resource || !resource->sheet()) |
101 return; | 101 return; |
102 | 102 |
103 ASSERT(!m_styleSheet); | 103 DCHECK(!m_styleSheet); |
104 setXSLStyleSheet(absHref, resource->response().url(), resource->sheet()); | 104 setXSLStyleSheet(absHref, resource->response().url(), resource->sheet()); |
105 } | 105 } |
106 | 106 |
107 DEFINE_TRACE(XSLImportRule) | 107 DEFINE_TRACE(XSLImportRule) |
108 { | 108 { |
109 visitor->trace(m_parentStyleSheet); | 109 visitor->trace(m_parentStyleSheet); |
110 visitor->trace(m_styleSheet); | 110 visitor->trace(m_styleSheet); |
111 } | 111 } |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
OLD | NEW |