OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 m_sheet = XSLStyleSheet::createEmbedded(this, finalURL); | 158 m_sheet = XSLStyleSheet::createEmbedded(this, finalURL); |
159 m_loading = false; | 159 m_loading = false; |
160 } | 160 } |
161 return; | 161 return; |
162 } | 162 } |
163 | 163 |
164 clearResource(); | 164 clearResource(); |
165 | 165 |
166 String url = document().completeURL(href).string(); | 166 String url = document().completeURL(href).string(); |
167 | 167 |
168 ResourcePtr<StyleSheetResource> resource; | 168 RefPtrWillBeRawPtr<StyleSheetResource> resource = nullptr; |
169 FetchRequest request(ResourceRequest(document().completeURL(href)), FetchIni
tiatorTypeNames::processinginstruction); | 169 FetchRequest request(ResourceRequest(document().completeURL(href)), FetchIni
tiatorTypeNames::processinginstruction); |
170 if (m_isXSL) { | 170 if (m_isXSL) { |
171 if (RuntimeEnabledFeatures::xsltEnabled()) | 171 if (RuntimeEnabledFeatures::xsltEnabled()) |
172 resource = XSLStyleSheetResource::fetch(request, document().fetcher(
)); | 172 resource = XSLStyleSheetResource::fetch(request, document().fetcher(
)); |
173 } else { | 173 } else { |
174 request.setCharset(charset.isEmpty() ? document().characterSet() : chars
et); | 174 request.setCharset(charset.isEmpty() ? document().characterSet() : chars
et); |
175 resource = CSSStyleSheetResource::fetch(request, document().fetcher()); | 175 resource = CSSStyleSheetResource::fetch(request, document().fetcher()); |
176 } | 176 } |
177 | 177 |
178 if (resource) { | 178 if (resource) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 307 |
308 DEFINE_TRACE(ProcessingInstruction) | 308 DEFINE_TRACE(ProcessingInstruction) |
309 { | 309 { |
310 visitor->trace(m_sheet); | 310 visitor->trace(m_sheet); |
311 visitor->trace(m_listenerForXSLT); | 311 visitor->trace(m_listenerForXSLT); |
312 CharacterData::trace(visitor); | 312 CharacterData::trace(visitor); |
313 ResourceOwner<StyleSheetResource>::trace(visitor); | 313 ResourceOwner<StyleSheetResource>::trace(visitor); |
314 } | 314 } |
315 | 315 |
316 } // namespace blink | 316 } // namespace blink |
OLD | NEW |