| 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> applyAndSnapshotAnimatableVal
ue(Element&, CSSPropertyID, CSSValue*, RenderStyle* mutableStyle = 0); |
| 123 | 123 |
| 124 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); | 124 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); |
| 125 | 125 |
| 126 PassRefPtr<RenderStyle> styleForPage(int pageIndex); | 126 PassRefPtr<RenderStyle> styleForPage(int pageIndex); |
| 127 PassRefPtr<RenderStyle> defaultStyleForElement(); | 127 PassRefPtr<RenderStyle> defaultStyleForElement(); |
| 128 PassRefPtr<RenderStyle> styleForText(Text*); | 128 PassRefPtr<RenderStyle> styleForText(Text*); |
| 129 | 129 |
| 130 static PassRefPtr<RenderStyle> styleForDocument(Document&); | 130 static PassRefPtr<RenderStyle> styleForDocument(Document&); |
| 131 | 131 |
| 132 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about | 132 // 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; | 330 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
| 331 unsigned m_styleResolverStatsSequence; | 331 unsigned m_styleResolverStatsSequence; |
| 332 | 332 |
| 333 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 333 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 334 unsigned m_accessCount; | 334 unsigned m_accessCount; |
| 335 }; | 335 }; |
| 336 | 336 |
| 337 } // namespace WebCore | 337 } // namespace WebCore |
| 338 | 338 |
| 339 #endif // StyleResolver_h | 339 #endif // StyleResolver_h |
| OLD | NEW |