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, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2002, 2005, 2006, 2012 Apple Computer, Inc. |
5 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) | 5 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 CSSMediaRule::CSSMediaRule(StyleRuleMedia* mediaRule, CSSStyleSheet* parent) | 31 CSSMediaRule::CSSMediaRule(StyleRuleMedia* mediaRule, CSSStyleSheet* parent) |
32 : CSSGroupingRule(mediaRule, parent) | 32 : CSSGroupingRule(mediaRule, parent) |
33 { | 33 { |
34 } | 34 } |
35 | 35 |
36 CSSMediaRule::~CSSMediaRule() | 36 CSSMediaRule::~CSSMediaRule() |
37 { | 37 { |
| 38 #if !ENABLE(OILPAN) |
38 if (m_mediaCSSOMWrapper) | 39 if (m_mediaCSSOMWrapper) |
39 m_mediaCSSOMWrapper->clearParentRule(); | 40 m_mediaCSSOMWrapper->clearParentRule(); |
| 41 #endif |
40 } | 42 } |
41 | 43 |
42 MediaQuerySet* CSSMediaRule::mediaQueries() const | 44 MediaQuerySet* CSSMediaRule::mediaQueries() const |
43 { | 45 { |
44 return toStyleRuleMedia(m_groupRule.get())->mediaQueries(); | 46 return toStyleRuleMedia(m_groupRule.get())->mediaQueries(); |
45 } | 47 } |
46 | 48 |
47 String CSSMediaRule::cssText() const | 49 String CSSMediaRule::cssText() const |
48 { | 50 { |
49 StringBuilder result; | 51 StringBuilder result; |
(...skipping 17 matching lines...) Expand all Loading... |
67 return m_mediaCSSOMWrapper.get(); | 69 return m_mediaCSSOMWrapper.get(); |
68 } | 70 } |
69 | 71 |
70 void CSSMediaRule::reattach(StyleRuleBase* rule) | 72 void CSSMediaRule::reattach(StyleRuleBase* rule) |
71 { | 73 { |
72 CSSGroupingRule::reattach(rule); | 74 CSSGroupingRule::reattach(rule); |
73 if (m_mediaCSSOMWrapper && mediaQueries()) | 75 if (m_mediaCSSOMWrapper && mediaQueries()) |
74 m_mediaCSSOMWrapper->reattach(mediaQueries()); | 76 m_mediaCSSOMWrapper->reattach(mediaQueries()); |
75 } | 77 } |
76 | 78 |
| 79 void CSSMediaRule::trace(Visitor* visitor) |
| 80 { |
| 81 visitor->trace(m_mediaCSSOMWrapper); |
| 82 CSSGroupingRule::trace(visitor); |
| 83 } |
77 } // namespace WebCore | 84 } // namespace WebCore |
OLD | NEW |