| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 } | 139 } |
| 140 | 140 |
| 141 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>& StyleEngine::styleSheets
ForStyleSheetList(TreeScope& treeScope) | 141 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>& StyleEngine::styleSheets
ForStyleSheetList(TreeScope& treeScope) |
| 142 { | 142 { |
| 143 if (treeScope == m_document) | 143 if (treeScope == m_document) |
| 144 return documentStyleSheetCollection()->styleSheetsForStyleSheetList(); | 144 return documentStyleSheetCollection()->styleSheetsForStyleSheetList(); |
| 145 | 145 |
| 146 return ensureStyleSheetCollectionFor(treeScope)->styleSheetsForStyleSheetLis
t(); | 146 return ensureStyleSheetCollectionFor(treeScope)->styleSheetsForStyleSheetLis
t(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& StyleEngine::activeAu
thorStyleSheets() const | |
| 150 { | |
| 151 return documentStyleSheetCollection()->activeAuthorStyleSheets(); | |
| 152 } | |
| 153 | |
| 154 void StyleEngine::combineCSSFeatureFlags(const RuleFeatureSet& features) | 149 void StyleEngine::combineCSSFeatureFlags(const RuleFeatureSet& features) |
| 155 { | 150 { |
| 156 // Delay resetting the flags until after next style recalc since unapplying
the style may not work without these set (this is true at least with before/afte
r). | 151 // Delay resetting the flags until after next style recalc since unapplying
the style may not work without these set (this is true at least with before/afte
r). |
| 157 m_usesSiblingRules = m_usesSiblingRules || features.usesSiblingRules(); | 152 m_usesSiblingRules = m_usesSiblingRules || features.usesSiblingRules(); |
| 158 m_usesFirstLineRules = m_usesFirstLineRules || features.usesFirstLineRules()
; | 153 m_usesFirstLineRules = m_usesFirstLineRules || features.usesFirstLineRules()
; |
| 159 m_usesWindowInactiveSelector = m_usesWindowInactiveSelector || features.uses
WindowInactiveSelector(); | 154 m_usesWindowInactiveSelector = m_usesWindowInactiveSelector || features.uses
WindowInactiveSelector(); |
| 160 m_maxDirectAdjacentSelectors = max(m_maxDirectAdjacentSelectors, features.ma
xDirectAdjacentSelectors()); | 155 m_maxDirectAdjacentSelectors = max(m_maxDirectAdjacentSelectors, features.ma
xDirectAdjacentSelectors()); |
| 161 } | 156 } |
| 162 | 157 |
| 163 void StyleEngine::resetCSSFeatureFlags(const RuleFeatureSet& features) | 158 void StyleEngine::resetCSSFeatureFlags(const RuleFeatureSet& features) |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 visitor->trace(m_dirtyTreeScopes); | 719 visitor->trace(m_dirtyTreeScopes); |
| 725 visitor->trace(m_activeTreeScopes); | 720 visitor->trace(m_activeTreeScopes); |
| 726 visitor->trace(m_fontSelector); | 721 visitor->trace(m_fontSelector); |
| 727 visitor->trace(m_textToSheetCache); | 722 visitor->trace(m_textToSheetCache); |
| 728 visitor->trace(m_sheetToTextCache); | 723 visitor->trace(m_sheetToTextCache); |
| 729 #endif | 724 #endif |
| 730 CSSFontSelectorClient::trace(visitor); | 725 CSSFontSelectorClient::trace(visitor); |
| 731 } | 726 } |
| 732 | 727 |
| 733 } | 728 } |
| OLD | NEW |