OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 unsigned accessCount() const { return m_accessCount; } | 193 unsigned accessCount() const { return m_accessCount; } |
194 void didAccess() { ++m_accessCount; } | 194 void didAccess() { ++m_accessCount; } |
195 | 195 |
196 void increaseStyleSharingDepth() { ++m_styleSharingDepth; } | 196 void increaseStyleSharingDepth() { ++m_styleSharingDepth; } |
197 void decreaseStyleSharingDepth() { --m_styleSharingDepth; } | 197 void decreaseStyleSharingDepth() { --m_styleSharingDepth; } |
198 | 198 |
199 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElementIfNeeded(Element& p
arent, PseudoId); | 199 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElementIfNeeded(Element& p
arent, PseudoId); |
200 | 200 |
201 void trace(Visitor*); | 201 void trace(Visitor*); |
202 | 202 |
| 203 void addTreeBoundaryCrossingScope(ContainerNode& scope); |
| 204 |
203 private: | 205 private: |
204 void initWatchedSelectorRules(const WillBeHeapVector<RefPtrWillBeMember<Styl
eRule> >& watchedSelectors); | 206 void initWatchedSelectorRules(const WillBeHeapVector<RefPtrWillBeMember<Styl
eRule> >& watchedSelectors); |
205 | 207 |
206 // FIXME: This should probably go away, folded into FontBuilder. | 208 // FIXME: This should probably go away, folded into FontBuilder. |
207 void updateFont(StyleResolverState&); | 209 void updateFont(StyleResolverState&); |
208 | 210 |
209 void loadPendingResources(StyleResolverState&); | 211 void loadPendingResources(StyleResolverState&); |
210 void adjustLayoutStyle(StyleResolverState&, Element*); | 212 void adjustLayoutStyle(StyleResolverState&, Element*); |
211 | 213 |
212 void appendCSSStyleSheet(CSSStyleSheet&); | 214 void appendCSSStyleSheet(CSSStyleSheet&); |
213 void addRulesFromSheet(CSSStyleSheet&, TreeScope*, unsigned); | 215 void addRulesFromSheet(CSSStyleSheet&, TreeScope*, unsigned); |
214 void processScopedRules(const RuleSet& authorRules, CSSStyleSheet*, unsigned
sheetIndex, ContainerNode& scope); | |
215 | 216 |
216 void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId,
unsigned rulesToInclude); | 217 void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId,
unsigned rulesToInclude); |
217 void matchRuleSet(ElementRuleCollector&, RuleSet*); | 218 void matchRuleSet(ElementRuleCollector&, RuleSet*); |
218 void matchUARules(ElementRuleCollector&); | 219 void matchUARules(ElementRuleCollector&); |
219 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule
s); | 220 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule
s); |
220 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS
MILProperties); | 221 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS
MILProperties); |
221 void collectFeatures(); | 222 void collectFeatures(); |
222 void resetRuleFeatures(); | 223 void resetRuleFeatures(); |
223 | 224 |
224 bool fastRejectSelector(const RuleData&) const; | 225 bool fastRejectSelector(const RuleData&) const; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 288 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
288 unsigned m_styleResolverStatsSequence; | 289 unsigned m_styleResolverStatsSequence; |
289 | 290 |
290 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 291 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
291 unsigned m_accessCount; | 292 unsigned m_accessCount; |
292 }; | 293 }; |
293 | 294 |
294 } // namespace blink | 295 } // namespace blink |
295 | 296 |
296 #endif // StyleResolver_h | 297 #endif // StyleResolver_h |
OLD | NEW |