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