| 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, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 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 19 matching lines...) Expand all Loading... |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 CSSFontFaceRule::CSSFontFaceRule(StyleRuleFontFace* fontFaceRule, CSSStyleSheet*
parent) | 32 CSSFontFaceRule::CSSFontFaceRule(StyleRuleFontFace* fontFaceRule, CSSStyleSheet*
parent) |
| 33 : CSSRule(parent) | 33 : CSSRule(parent) |
| 34 , m_fontFaceRule(fontFaceRule) | 34 , m_fontFaceRule(fontFaceRule) |
| 35 { | 35 { |
| 36 } | 36 } |
| 37 | 37 |
| 38 CSSFontFaceRule::~CSSFontFaceRule() | 38 CSSFontFaceRule::~CSSFontFaceRule() |
| 39 { | 39 { |
| 40 #if !ENABLE(OILPAN) |
| 40 if (m_propertiesCSSOMWrapper) | 41 if (m_propertiesCSSOMWrapper) |
| 41 m_propertiesCSSOMWrapper->clearParentRule(); | 42 m_propertiesCSSOMWrapper->clearParentRule(); |
| 43 #endif |
| 42 } | 44 } |
| 43 | 45 |
| 44 CSSStyleDeclaration* CSSFontFaceRule::style() const | 46 CSSStyleDeclaration* CSSFontFaceRule::style() const |
| 45 { | 47 { |
| 46 if (!m_propertiesCSSOMWrapper) | 48 if (!m_propertiesCSSOMWrapper) |
| 47 m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_fontFa
ceRule->mutableProperties(), const_cast<CSSFontFaceRule*>(this)); | 49 m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_fontFa
ceRule->mutableProperties(), const_cast<CSSFontFaceRule*>(this)); |
| 48 return m_propertiesCSSOMWrapper.get(); | 50 return m_propertiesCSSOMWrapper.get(); |
| 49 } | 51 } |
| 50 | 52 |
| 51 String CSSFontFaceRule::cssText() const | 53 String CSSFontFaceRule::cssText() const |
| (...skipping 12 matching lines...) Expand all Loading... |
| 64 { | 66 { |
| 65 ASSERT(rule); | 67 ASSERT(rule); |
| 66 m_fontFaceRule = toStyleRuleFontFace(rule); | 68 m_fontFaceRule = toStyleRuleFontFace(rule); |
| 67 if (m_propertiesCSSOMWrapper) | 69 if (m_propertiesCSSOMWrapper) |
| 68 m_propertiesCSSOMWrapper->reattach(m_fontFaceRule->mutableProperties()); | 70 m_propertiesCSSOMWrapper->reattach(m_fontFaceRule->mutableProperties()); |
| 69 } | 71 } |
| 70 | 72 |
| 71 void CSSFontFaceRule::trace(Visitor* visitor) | 73 void CSSFontFaceRule::trace(Visitor* visitor) |
| 72 { | 74 { |
| 73 visitor->trace(m_fontFaceRule); | 75 visitor->trace(m_fontFaceRule); |
| 76 visitor->trace(m_propertiesCSSOMWrapper); |
| 74 CSSRule::trace(visitor); | 77 CSSRule::trace(visitor); |
| 75 } | 78 } |
| 76 | 79 |
| 77 } // namespace WebCore | 80 } // namespace WebCore |
| OLD | NEW |