| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleImport) | 63 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleImport) |
| 64 { | 64 { |
| 65 visitor->trace(m_styleSheetClient); | 65 visitor->trace(m_styleSheetClient); |
| 66 visitor->trace(m_parentStyleSheet); | 66 visitor->trace(m_parentStyleSheet); |
| 67 visitor->trace(m_mediaQueries); | 67 visitor->trace(m_mediaQueries); |
| 68 visitor->trace(m_styleSheet); | 68 visitor->trace(m_styleSheet); |
| 69 visitor->trace(m_resource); | 69 visitor->trace(m_resource); |
| 70 StyleRuleBase::traceAfterDispatch(visitor); | 70 StyleRuleBase::traceAfterDispatch(visitor); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void StyleRuleImport::setCSSStyleSheet(const String& href, const KURL& baseURL,
const String& charset, const CSSStyleSheetResource* cachedStyleSheet) | 73 void StyleRuleImport::setCSSStyleSheet(const String& href, const KURL& baseURL,
const String& charset, CSSStyleSheetResource* cachedStyleSheet) |
| 74 { | 74 { |
| 75 if (m_styleSheet) | 75 if (m_styleSheet) |
| 76 m_styleSheet->clearOwnerRule(); | 76 m_styleSheet->clearOwnerRule(); |
| 77 | 77 |
| 78 CSSParserContext context = m_parentStyleSheet ? m_parentStyleSheet->parserCo
ntext() : strictCSSParserContext(); | 78 CSSParserContext context = m_parentStyleSheet ? m_parentStyleSheet->parserCo
ntext() : strictCSSParserContext(); |
| 79 context.setCharset(charset); | 79 context.setCharset(charset); |
| 80 Document* document = m_parentStyleSheet ? m_parentStyleSheet->singleOwnerDoc
ument() : nullptr; | 80 Document* document = m_parentStyleSheet ? m_parentStyleSheet->singleOwnerDoc
ument() : nullptr; |
| 81 if (!baseURL.isNull()) { | 81 if (!baseURL.isNull()) { |
| 82 context.setBaseURL(baseURL); | 82 context.setBaseURL(baseURL); |
| 83 if (document) | 83 if (document) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // removed from the pending sheet count, so let the doc know | 138 // removed from the pending sheet count, so let the doc know |
| 139 // the sheet being imported is pending. | 139 // the sheet being imported is pending. |
| 140 if (m_parentStyleSheet && m_parentStyleSheet->loadCompleted() && rootShe
et == m_parentStyleSheet) | 140 if (m_parentStyleSheet && m_parentStyleSheet->loadCompleted() && rootShe
et == m_parentStyleSheet) |
| 141 m_parentStyleSheet->startLoadingDynamicSheet(); | 141 m_parentStyleSheet->startLoadingDynamicSheet(); |
| 142 m_loading = true; | 142 m_loading = true; |
| 143 m_resource->addClient(m_styleSheetClient); | 143 m_resource->addClient(m_styleSheetClient); |
| 144 } | 144 } |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace blink | 147 } // namespace blink |
| OLD | NEW |