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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Using these during tree walk will allow style selector to optimize child
and descendant selector lookups. | 115 // Using these during tree walk will allow style selector to optimize child
and descendant selector lookups. |
116 void pushParentElement(Element&); | 116 void pushParentElement(Element&); |
117 void popParentElement(Element&); | 117 void popParentElement(Element&); |
118 void pushParentShadowRoot(const ShadowRoot&); | 118 void pushParentShadowRoot(const ShadowRoot&); |
119 void popParentShadowRoot(const ShadowRoot&); | 119 void popParentShadowRoot(const ShadowRoot&); |
120 | 120 |
121 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle =
0, StyleSharingBehavior = AllowStyleSharing, | 121 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle =
0, StyleSharingBehavior = AllowStyleSharing, |
122 RuleMatchingBehavior = MatchAllRules); | 122 RuleMatchingBehavior = MatchAllRules); |
123 | 123 |
124 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, Rende
rStyle* parentStyle, const StyleKeyframe*, const AtomicString& animationName); | 124 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, Rende
rStyle* parentStyle, const StyleKeyframe*, const AtomicString& animationName); |
125 static PassRefPtrWillBeRawPtr<KeyframeEffectModel> createKeyframeEffectModel
(Element&, const Vector<RefPtr<MutableStylePropertySet> >&, KeyframeEffectModel:
:KeyframeVector&); | 125 static PassRefPtrWillBeRawPtr<KeyframeEffectModel> createKeyframeEffectModel
(Element&, const WillBeHeapVector<RefPtrWillBeMember<MutableStylePropertySet> >&
, KeyframeEffectModel::KeyframeVector&); |
126 | 126 |
127 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); | 127 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); |
128 | 128 |
129 PassRefPtr<RenderStyle> styleForPage(int pageIndex); | 129 PassRefPtr<RenderStyle> styleForPage(int pageIndex); |
130 PassRefPtr<RenderStyle> defaultStyleForElement(); | 130 PassRefPtr<RenderStyle> defaultStyleForElement(); |
131 PassRefPtr<RenderStyle> styleForText(Text*); | 131 PassRefPtr<RenderStyle> styleForText(Text*); |
132 | 132 |
133 static PassRefPtr<RenderStyle> styleForDocument(Document&, CSSFontSelector*
= 0); | 133 static PassRefPtr<RenderStyle> styleForDocument(Document&, CSSFontSelector*
= 0); |
134 | 134 |
135 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about | 135 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 MatchedPropertiesCache m_matchedPropertiesCache; | 299 MatchedPropertiesCache m_matchedPropertiesCache; |
300 | 300 |
301 OwnPtr<MediaQueryEvaluator> m_medium; | 301 OwnPtr<MediaQueryEvaluator> m_medium; |
302 WillBePersistentMediaQueryResultList m_viewportDependentMediaQueryResults; | 302 WillBePersistentMediaQueryResultList m_viewportDependentMediaQueryResults; |
303 | 303 |
304 RefPtr<RenderStyle> m_rootDefaultStyle; | 304 RefPtr<RenderStyle> m_rootDefaultStyle; |
305 | 305 |
306 Document& m_document; | 306 Document& m_document; |
307 SelectorFilter m_selectorFilter; | 307 SelectorFilter m_selectorFilter; |
308 | 308 |
309 RefPtr<ViewportStyleResolver> m_viewportStyleResolver; | 309 RefPtrWillBePersistent<ViewportStyleResolver> m_viewportStyleResolver; |
310 | 310 |
311 // FIXME: Oilpan: This should be a WillBePersistentHeapListHashSet. | 311 // FIXME: Oilpan: This should be a WillBePersistentHeapListHashSet. |
312 // This is safe for now, but should be updated when we support | 312 // This is safe for now, but should be updated when we support |
313 // heap allocated ListHashSets. | 313 // heap allocated ListHashSets. |
314 ListHashSet<CSSStyleSheet*, 16> m_pendingStyleSheets; | 314 ListHashSet<CSSStyleSheet*, 16> m_pendingStyleSheets; |
315 | 315 |
316 ScopedStyleTree m_styleTree; | 316 ScopedStyleTree m_styleTree; |
317 | 317 |
318 // FIXME: The entire logic of collecting features on StyleResolver, as well
as transferring them | 318 // FIXME: The entire logic of collecting features on StyleResolver, as well
as transferring them |
319 // between various parts of machinery smells wrong. This needs to be better
somehow. | 319 // between various parts of machinery smells wrong. This needs to be better
somehow. |
(...skipping 15 matching lines...) Expand all Loading... |
335 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 335 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
336 unsigned m_styleResolverStatsSequence; | 336 unsigned m_styleResolverStatsSequence; |
337 | 337 |
338 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 338 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
339 unsigned m_accessCount; | 339 unsigned m_accessCount; |
340 }; | 340 }; |
341 | 341 |
342 } // namespace WebCore | 342 } // namespace WebCore |
343 | 343 |
344 #endif // StyleResolver_h | 344 #endif // StyleResolver_h |
OLD | NEW |