| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 bool ProcessingInstruction::sheetLoaded() | 184 bool ProcessingInstruction::sheetLoaded() |
| 185 { | 185 { |
| 186 if (!isLoading()) { | 186 if (!isLoading()) { |
| 187 if (!DocumentXSLT::sheetLoaded(document(), this)) | 187 if (!DocumentXSLT::sheetLoaded(document(), this)) |
| 188 document().styleEngine().removePendingSheet(this, m_styleEngineConte
xt); | 188 document().styleEngine().removePendingSheet(this, m_styleEngineConte
xt); |
| 189 return true; | 189 return true; |
| 190 } | 190 } |
| 191 return false; | 191 return false; |
| 192 } | 192 } |
| 193 | 193 |
| 194 void ProcessingInstruction::setCSSStyleSheet(const String& href, const KURL& bas
eURL, const String& charset, const CSSStyleSheetResource* sheet) | 194 void ProcessingInstruction::setCSSStyleSheet(const String& href, const KURL& bas
eURL, const String& charset, CSSStyleSheetResource* sheet) |
| 195 { | 195 { |
| 196 if (!isConnected()) { | 196 if (!isConnected()) { |
| 197 DCHECK(!m_sheet); | 197 DCHECK(!m_sheet); |
| 198 return; | 198 return; |
| 199 } | 199 } |
| 200 | 200 |
| 201 DCHECK(m_isCSS); | 201 DCHECK(m_isCSS); |
| 202 CSSParserContext parserContext(document(), nullptr, baseURL, charset); | 202 CSSParserContext parserContext(document(), nullptr, baseURL, charset); |
| 203 | 203 |
| 204 StyleSheetContents* newSheet = StyleSheetContents::create(href, parserContex
t); | 204 StyleSheetContents* newSheet = StyleSheetContents::create(href, parserContex
t); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 DEFINE_TRACE(ProcessingInstruction) | 298 DEFINE_TRACE(ProcessingInstruction) |
| 299 { | 299 { |
| 300 visitor->trace(m_sheet); | 300 visitor->trace(m_sheet); |
| 301 visitor->trace(m_listenerForXSLT); | 301 visitor->trace(m_listenerForXSLT); |
| 302 CharacterData::trace(visitor); | 302 CharacterData::trace(visitor); |
| 303 ResourceOwner<StyleSheetResource>::trace(visitor); | 303 ResourceOwner<StyleSheetResource>::trace(visitor); |
| 304 } | 304 } |
| 305 | 305 |
| 306 } // namespace blink | 306 } // namespace blink |
| OLD | NEW |