| 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, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2007, 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 void CSSStyleSheet::didMutate(StyleSheetUpdateType updateType) | 199 void CSSStyleSheet::didMutate(StyleSheetUpdateType updateType) |
| 200 { | 200 { |
| 201 Document* owner = ownerDocument(); | 201 Document* owner = ownerDocument(); |
| 202 if (!owner) | 202 if (!owner) |
| 203 return; | 203 return; |
| 204 | 204 |
| 205 // Need FullStyleUpdate when insertRule or deleteRule, | 205 // Need FullStyleUpdate when insertRule or deleteRule, |
| 206 // because StyleSheetCollection::analyzeStyleSheetChange cannot detect parti
al rule update. | 206 // because StyleSheetCollection::analyzeStyleSheetChange cannot detect parti
al rule update. |
| 207 StyleResolverUpdateMode updateMode = updateType != PartialRuleUpdate ? Analy
zedStyleUpdate : FullStyleUpdate; | 207 StyleResolverUpdateMode updateMode = updateType != PartialRuleUpdate ? Analy
zedStyleUpdate : FullStyleUpdate; |
| 208 owner->modifiedStyleSheet(this, RecalcStyleDeferred, updateMode); | 208 owner->modifiedStyleSheet(this, updateMode); |
| 209 } | 209 } |
| 210 | 210 |
| 211 void CSSStyleSheet::reattachChildRuleCSSOMWrappers() | 211 void CSSStyleSheet::reattachChildRuleCSSOMWrappers() |
| 212 { | 212 { |
| 213 for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { | 213 for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { |
| 214 if (!m_childRuleCSSOMWrappers[i]) | 214 if (!m_childRuleCSSOMWrappers[i]) |
| 215 continue; | 215 continue; |
| 216 m_childRuleCSSOMWrappers[i]->reattach(m_contents->ruleAt(i)); | 216 m_childRuleCSSOMWrappers[i]->reattach(m_contents->ruleAt(i)); |
| 217 } | 217 } |
| 218 } | 218 } |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 visitor->trace(m_mediaQueries); | 460 visitor->trace(m_mediaQueries); |
| 461 visitor->trace(m_ownerNode); | 461 visitor->trace(m_ownerNode); |
| 462 visitor->trace(m_ownerRule); | 462 visitor->trace(m_ownerRule); |
| 463 visitor->trace(m_mediaCSSOMWrapper); | 463 visitor->trace(m_mediaCSSOMWrapper); |
| 464 visitor->trace(m_childRuleCSSOMWrappers); | 464 visitor->trace(m_childRuleCSSOMWrappers); |
| 465 visitor->trace(m_ruleListCSSOMWrapper); | 465 visitor->trace(m_ruleListCSSOMWrapper); |
| 466 StyleSheet::trace(visitor); | 466 StyleSheet::trace(visitor); |
| 467 } | 467 } |
| 468 | 468 |
| 469 } | 469 } |
| OLD | NEW |