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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Using these during tree walk will allow style selector to optimize child
and descendant selector lookups. | 114 // Using these during tree walk will allow style selector to optimize child
and descendant selector lookups. |
115 void pushParentElement(Element&); | 115 void pushParentElement(Element&); |
116 void popParentElement(Element&); | 116 void popParentElement(Element&); |
117 void pushParentShadowRoot(const ShadowRoot&); | 117 void pushParentShadowRoot(const ShadowRoot&); |
118 void popParentShadowRoot(const ShadowRoot&); | 118 void popParentShadowRoot(const ShadowRoot&); |
119 | 119 |
120 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle =
0, StyleSharingBehavior = AllowStyleSharing, | 120 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle =
0, StyleSharingBehavior = AllowStyleSharing, |
121 RuleMatchingBehavior = MatchAllRules); | 121 RuleMatchingBehavior = MatchAllRules); |
122 | 122 |
123 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, Rende
rStyle* parentStyle, const StyleKeyframe*, const AtomicString& animationName); | 123 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, Rende
rStyle* parentStyle, const StyleKeyframe*, const AtomicString& animationName); |
124 static PassRefPtrWillBeRawPtr<AVKeyframeEffectModel> createKeyframeEffectMod
el(Element&, const Vector<RefPtr<MutableStylePropertySet> >&, AVKeyframeVector&)
; | 124 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(Element&, R
enderStyle&, CSSPropertyID, CSSValue*); |
125 | 125 |
126 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); | 126 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); |
127 | 127 |
128 PassRefPtr<RenderStyle> styleForPage(int pageIndex); | 128 PassRefPtr<RenderStyle> styleForPage(int pageIndex); |
129 PassRefPtr<RenderStyle> defaultStyleForElement(); | 129 PassRefPtr<RenderStyle> defaultStyleForElement(); |
130 PassRefPtr<RenderStyle> styleForText(Text*); | 130 PassRefPtr<RenderStyle> styleForText(Text*); |
131 | 131 |
132 static PassRefPtr<RenderStyle> styleForDocument(Document&, CSSFontSelector*
= 0); | 132 static PassRefPtr<RenderStyle> styleForDocument(Document&, CSSFontSelector*
= 0); |
133 | 133 |
134 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about | 134 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 324 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
325 unsigned m_styleResolverStatsSequence; | 325 unsigned m_styleResolverStatsSequence; |
326 | 326 |
327 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 327 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
328 unsigned m_accessCount; | 328 unsigned m_accessCount; |
329 }; | 329 }; |
330 | 330 |
331 } // namespace WebCore | 331 } // namespace WebCore |
332 | 332 |
333 #endif // StyleResolver_h | 333 #endif // StyleResolver_h |
OLD | NEW |