diff options
| author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
|---|---|---|
| committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
| commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
| tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/css/CSSImportRule.cpp | |
| parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
| download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz | |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/css/CSSImportRule.cpp')
| -rw-r--r-- | Source/WebCore/css/CSSImportRule.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/WebCore/css/CSSImportRule.cpp b/Source/WebCore/css/CSSImportRule.cpp index 77485e5ec..5e68cc72f 100644 --- a/Source/WebCore/css/CSSImportRule.cpp +++ b/Source/WebCore/css/CSSImportRule.cpp @@ -34,7 +34,7 @@ namespace WebCore { -CSSImportRule::CSSImportRule(StyleRuleImport& importRule, CSSStyleSheet* parent) +CSSImportRule::CSSImportRule(StyleRuleImport* importRule, CSSStyleSheet* parent) : CSSRule(parent) , m_importRule(importRule) { @@ -50,25 +50,25 @@ CSSImportRule::~CSSImportRule() String CSSImportRule::href() const { - return m_importRule.get().href(); + return m_importRule->href(); } -MediaList& CSSImportRule::media() const +MediaList* CSSImportRule::media() const { if (!m_mediaCSSOMWrapper) - m_mediaCSSOMWrapper = MediaList::create(m_importRule.get().mediaQueries(), const_cast<CSSImportRule*>(this)); - return *m_mediaCSSOMWrapper; + m_mediaCSSOMWrapper = MediaList::create(m_importRule->mediaQueries(), const_cast<CSSImportRule*>(this)); + return m_mediaCSSOMWrapper.get(); } String CSSImportRule::cssText() const { StringBuilder result; result.appendLiteral("@import url(\""); - result.append(m_importRule.get().href()); + result.append(m_importRule->href()); result.appendLiteral("\")"); - if (m_importRule.get().mediaQueries()) { - String mediaText = m_importRule.get().mediaQueries()->mediaText(); + if (m_importRule->mediaQueries()) { + String mediaText = m_importRule->mediaQueries()->mediaText(); if (!mediaText.isEmpty()) { result.append(' '); result.append(mediaText); @@ -81,15 +81,15 @@ String CSSImportRule::cssText() const CSSStyleSheet* CSSImportRule::styleSheet() const { - if (!m_importRule.get().styleSheet()) + if (!m_importRule->styleSheet()) return 0; if (!m_styleSheetCSSOMWrapper) - m_styleSheetCSSOMWrapper = CSSStyleSheet::create(*m_importRule.get().styleSheet(), const_cast<CSSImportRule*>(this)); + m_styleSheetCSSOMWrapper = CSSStyleSheet::create(*m_importRule->styleSheet(), const_cast<CSSImportRule*>(this)); return m_styleSheetCSSOMWrapper.get(); } -void CSSImportRule::reattach(StyleRuleBase&) +void CSSImportRule::reattach(StyleRuleBase*) { // FIXME: Implement when enabling caching for stylesheets with import rules. ASSERT_NOT_REACHED(); |
