| 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 22 matching lines...) Expand all Loading... |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 | 34 |
| 35 CSSPageRule::CSSPageRule(StyleRulePage* pageRule, CSSStyleSheet* parent) | 35 CSSPageRule::CSSPageRule(StyleRulePage* pageRule, CSSStyleSheet* parent) |
| 36 : CSSRule(parent) | 36 : CSSRule(parent) |
| 37 , m_pageRule(pageRule) | 37 , m_pageRule(pageRule) |
| 38 { | 38 { |
| 39 } | 39 } |
| 40 | 40 |
| 41 CSSPageRule::~CSSPageRule() | 41 CSSPageRule::~CSSPageRule() |
| 42 { | 42 { |
| 43 #if !ENABLE(OILPAN) |
| 43 if (m_propertiesCSSOMWrapper) | 44 if (m_propertiesCSSOMWrapper) |
| 44 m_propertiesCSSOMWrapper->clearParentRule(); | 45 m_propertiesCSSOMWrapper->clearParentRule(); |
| 46 #endif |
| 45 } | 47 } |
| 46 | 48 |
| 47 CSSStyleDeclaration* CSSPageRule::style() const | 49 CSSStyleDeclaration* CSSPageRule::style() const |
| 48 { | 50 { |
| 49 if (!m_propertiesCSSOMWrapper) | 51 if (!m_propertiesCSSOMWrapper) |
| 50 m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_pageRu
le->mutableProperties(), const_cast<CSSPageRule*>(this)); | 52 m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_pageRu
le->mutableProperties(), const_cast<CSSPageRule*>(this)); |
| 51 return m_propertiesCSSOMWrapper.get(); | 53 return m_propertiesCSSOMWrapper.get(); |
| 52 } | 54 } |
| 53 | 55 |
| 54 String CSSPageRule::selectorText() const | 56 String CSSPageRule::selectorText() const |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 { | 99 { |
| 98 ASSERT(rule); | 100 ASSERT(rule); |
| 99 m_pageRule = toStyleRulePage(rule); | 101 m_pageRule = toStyleRulePage(rule); |
| 100 if (m_propertiesCSSOMWrapper) | 102 if (m_propertiesCSSOMWrapper) |
| 101 m_propertiesCSSOMWrapper->reattach(m_pageRule->mutableProperties()); | 103 m_propertiesCSSOMWrapper->reattach(m_pageRule->mutableProperties()); |
| 102 } | 104 } |
| 103 | 105 |
| 104 void CSSPageRule::trace(Visitor* visitor) | 106 void CSSPageRule::trace(Visitor* visitor) |
| 105 { | 107 { |
| 106 visitor->trace(m_pageRule); | 108 visitor->trace(m_pageRule); |
| 109 visitor->trace(m_propertiesCSSOMWrapper); |
| 107 CSSRule::trace(visitor); | 110 CSSRule::trace(visitor); |
| 108 } | 111 } |
| 109 | 112 |
| 110 } // namespace WebCore | 113 } // namespace WebCore |
| OLD | NEW |