| 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 16 matching lines...) Expand all Loading... |
| 27 #include "core/SVGNames.h" | 27 #include "core/SVGNames.h" |
| 28 #include "core/css/CSSImportRule.h" | 28 #include "core/css/CSSImportRule.h" |
| 29 #include "core/css/CSSRuleList.h" | 29 #include "core/css/CSSRuleList.h" |
| 30 #include "core/css/MediaList.h" | 30 #include "core/css/MediaList.h" |
| 31 #include "core/css/StyleRule.h" | 31 #include "core/css/StyleRule.h" |
| 32 #include "core/css/StyleSheetContents.h" | 32 #include "core/css/StyleSheetContents.h" |
| 33 #include "core/css/parser/CSSParser.h" | 33 #include "core/css/parser/CSSParser.h" |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/ExceptionCode.h" | 35 #include "core/dom/ExceptionCode.h" |
| 36 #include "core/dom/Node.h" | 36 #include "core/dom/Node.h" |
| 37 #include "core/dom/StyleEngine.h" |
| 37 #include "core/frame/Deprecation.h" | 38 #include "core/frame/Deprecation.h" |
| 38 #include "core/html/HTMLStyleElement.h" | 39 #include "core/html/HTMLStyleElement.h" |
| 39 #include "core/inspector/InspectorInstrumentation.h" | 40 #include "core/inspector/InspectorInstrumentation.h" |
| 40 #include "core/svg/SVGStyleElement.h" | 41 #include "core/svg/SVGStyleElement.h" |
| 41 #include "platform/weborigin/SecurityOrigin.h" | 42 #include "platform/weborigin/SecurityOrigin.h" |
| 42 #include "wtf/text/StringBuilder.h" | 43 #include "wtf/text/StringBuilder.h" |
| 43 | 44 |
| 44 namespace blink { | 45 namespace blink { |
| 45 | 46 |
| 46 class StyleSheetCSSRuleList final : public CSSRuleList { | 47 class StyleSheetCSSRuleList final : public CSSRuleList { |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 194 |
| 194 void CSSStyleSheet::didMutate(StyleSheetUpdateType updateType) | 195 void CSSStyleSheet::didMutate(StyleSheetUpdateType updateType) |
| 195 { | 196 { |
| 196 Document* owner = ownerDocument(); | 197 Document* owner = ownerDocument(); |
| 197 if (!owner) | 198 if (!owner) |
| 198 return; | 199 return; |
| 199 | 200 |
| 200 // Need FullStyleUpdate when insertRule or deleteRule, | 201 // Need FullStyleUpdate when insertRule or deleteRule, |
| 201 // because StyleSheetCollection::analyzeStyleSheetChange cannot detect parti
al rule update. | 202 // because StyleSheetCollection::analyzeStyleSheetChange cannot detect parti
al rule update. |
| 202 StyleResolverUpdateMode updateMode = updateType != PartialRuleUpdate ? Analy
zedStyleUpdate : FullStyleUpdate; | 203 StyleResolverUpdateMode updateMode = updateType != PartialRuleUpdate ? Analy
zedStyleUpdate : FullStyleUpdate; |
| 203 owner->modifiedStyleSheet(this, updateMode); | 204 owner->styleEngine().setNeedsActiveStyleUpdate(this, updateMode); |
| 204 } | 205 } |
| 205 | 206 |
| 206 void CSSStyleSheet::reattachChildRuleCSSOMWrappers() | 207 void CSSStyleSheet::reattachChildRuleCSSOMWrappers() |
| 207 { | 208 { |
| 208 for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { | 209 for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { |
| 209 if (!m_childRuleCSSOMWrappers[i]) | 210 if (!m_childRuleCSSOMWrappers[i]) |
| 210 continue; | 211 continue; |
| 211 m_childRuleCSSOMWrappers[i]->reattach(m_contents->ruleAt(i)); | 212 m_childRuleCSSOMWrappers[i]->reattach(m_contents->ruleAt(i)); |
| 212 } | 213 } |
| 213 } | 214 } |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 visitor->trace(m_mediaQueries); | 455 visitor->trace(m_mediaQueries); |
| 455 visitor->trace(m_ownerNode); | 456 visitor->trace(m_ownerNode); |
| 456 visitor->trace(m_ownerRule); | 457 visitor->trace(m_ownerRule); |
| 457 visitor->trace(m_mediaCSSOMWrapper); | 458 visitor->trace(m_mediaCSSOMWrapper); |
| 458 visitor->trace(m_childRuleCSSOMWrappers); | 459 visitor->trace(m_childRuleCSSOMWrappers); |
| 459 visitor->trace(m_ruleListCSSOMWrapper); | 460 visitor->trace(m_ruleListCSSOMWrapper); |
| 460 StyleSheet::trace(visitor); | 461 StyleSheet::trace(visitor); |
| 461 } | 462 } |
| 462 | 463 |
| 463 } // namespace blink | 464 } // namespace blink |
| OLD | NEW |