Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 1498593004: Remove unused activeAuthorStyleSheets method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698