| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool m_isDisabled; | 135 bool m_isDisabled; |
| 136 String m_title; | 136 String m_title; |
| 137 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; | 137 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; |
| 138 | 138 |
| 139 RawPtrWillBeMember<Node> m_ownerNode; | 139 RawPtrWillBeMember<Node> m_ownerNode; |
| 140 RawPtrWillBeMember<CSSRule> m_ownerRule; | 140 RawPtrWillBeMember<CSSRule> m_ownerRule; |
| 141 | 141 |
| 142 TextPosition m_startPosition; | 142 TextPosition m_startPosition; |
| 143 bool m_loadCompleted; | 143 bool m_loadCompleted; |
| 144 mutable RefPtrWillBeMember<MediaList> m_mediaCSSOMWrapper; | 144 mutable RefPtrWillBeMember<MediaList> m_mediaCSSOMWrapper; |
| 145 mutable WillBeHeapVector<RefPtrWillBeMember<CSSRule> > m_childRuleCSSOMWrapp
ers; | 145 mutable WillBeHeapVector<RefPtrWillBeMember<CSSRule>> m_childRuleCSSOMWrappe
rs; |
| 146 mutable OwnPtrWillBeMember<CSSRuleList> m_ruleListCSSOMWrapper; | 146 mutable OwnPtrWillBeMember<CSSRuleList> m_ruleListCSSOMWrapper; |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 inline CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSStyleSheet* sheet) | 149 inline CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSStyleSheet* sheet) |
| 150 : m_styleSheet(sheet) | 150 : m_styleSheet(sheet) |
| 151 { | 151 { |
| 152 if (m_styleSheet) | 152 if (m_styleSheet) |
| 153 m_styleSheet->willMutateRules(); | 153 m_styleSheet->willMutateRules(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 inline CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSRule* rule) | 156 inline CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSRule* rule) |
| 157 : m_styleSheet(rule ? rule->parentStyleSheet() : 0) | 157 : m_styleSheet(rule ? rule->parentStyleSheet() : 0) |
| 158 { | 158 { |
| 159 if (m_styleSheet) | 159 if (m_styleSheet) |
| 160 m_styleSheet->willMutateRules(); | 160 m_styleSheet->willMutateRules(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() | 163 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() |
| 164 { | 164 { |
| 165 if (m_styleSheet) | 165 if (m_styleSheet) |
| 166 m_styleSheet->didMutateRules(); | 166 m_styleSheet->didMutateRules(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 169 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| 172 | 172 |
| 173 #endif | 173 #endif |
| OLD | NEW |