| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class CSSValue; | 53 class CSSValue; |
| 54 class ContainerNode; | 54 class ContainerNode; |
| 55 class Document; | 55 class Document; |
| 56 class Element; | 56 class Element; |
| 57 class Interpolation; | 57 class Interpolation; |
| 58 class MediaQueryEvaluator; | 58 class MediaQueryEvaluator; |
| 59 class RuleData; | 59 class RuleData; |
| 60 class ScopedStyleResolver; | 60 class ScopedStyleResolver; |
| 61 class StylePropertySet; | 61 class StylePropertySet; |
| 62 class StyleRule; | 62 class StyleRule; |
| 63 class StyleRuleKeyframe; | |
| 64 class StyleRulePage; | 63 class StyleRulePage; |
| 65 class ViewportStyleResolver; | 64 class ViewportStyleResolver; |
| 66 | 65 |
| 67 class MatchResult; | 66 class MatchResult; |
| 68 | 67 |
| 69 enum StyleSharingBehavior { | 68 enum StyleSharingBehavior { |
| 70 AllowStyleSharing, | 69 AllowStyleSharing, |
| 71 DisallowStyleSharing, | 70 DisallowStyleSharing, |
| 72 }; | 71 }; |
| 73 | 72 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 90 // FIXME: StyleResolver should not be keeping tree-walk state. | 89 // FIXME: StyleResolver should not be keeping tree-walk state. |
| 91 // These should move to some global tree-walk state, or should be contained
in a | 90 // These should move to some global tree-walk state, or should be contained
in a |
| 92 // TreeWalkContext or similar which is passed in to StyleResolver methods wh
en available. | 91 // TreeWalkContext or similar which is passed in to StyleResolver methods wh
en available. |
| 93 // Using these during tree walk will allow style selector to optimize child
and descendant selector lookups. | 92 // Using these during tree walk will allow style selector to optimize child
and descendant selector lookups. |
| 94 void pushParentElement(Element&); | 93 void pushParentElement(Element&); |
| 95 void popParentElement(Element&); | 94 void popParentElement(Element&); |
| 96 | 95 |
| 97 PassRefPtr<ComputedStyle> styleForElement(Element*, const ComputedStyle* par
entStyle = 0, StyleSharingBehavior = AllowStyleSharing, | 96 PassRefPtr<ComputedStyle> styleForElement(Element*, const ComputedStyle* par
entStyle = 0, StyleSharingBehavior = AllowStyleSharing, |
| 98 RuleMatchingBehavior = MatchAllRules); | 97 RuleMatchingBehavior = MatchAllRules); |
| 99 | 98 |
| 100 PassRefPtr<ComputedStyle> styleForKeyframe(Element&, const ComputedStyle&, c
onst ComputedStyle* parentStyle, const StyleRuleKeyframe*, const AtomicString& a
nimationName); | |
| 101 static PassRefPtrWillBeRawPtr<AnimatableValue> createAnimatableValueSnapshot
(Element&, const ComputedStyle* baseStyle, CSSPropertyID, CSSValue*); | 99 static PassRefPtrWillBeRawPtr<AnimatableValue> createAnimatableValueSnapshot
(Element&, const ComputedStyle* baseStyle, CSSPropertyID, CSSValue*); |
| 102 static PassRefPtrWillBeRawPtr<AnimatableValue> createAnimatableValueSnapshot
(StyleResolverState&, CSSPropertyID, CSSValue*); | 100 static PassRefPtrWillBeRawPtr<AnimatableValue> createAnimatableValueSnapshot
(StyleResolverState&, CSSPropertyID, CSSValue*); |
| 103 | 101 |
| 104 PassRefPtr<ComputedStyle> pseudoStyleForElement(Element*, const PseudoStyleR
equest&, const ComputedStyle* parentStyle); | 102 PassRefPtr<ComputedStyle> pseudoStyleForElement(Element*, const PseudoStyleR
equest&, const ComputedStyle* parentStyle); |
| 105 | 103 |
| 106 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); | 104 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); |
| 107 PassRefPtr<ComputedStyle> styleForText(Text*); | 105 PassRefPtr<ComputedStyle> styleForText(Text*); |
| 108 | 106 |
| 109 static PassRefPtr<ComputedStyle> styleForDocument(Document&); | 107 static PassRefPtr<ComputedStyle> styleForDocument(Document&); |
| 110 | 108 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 273 |
| 276 OwnPtr<StyleResolverStats> m_styleResolverStats; | 274 OwnPtr<StyleResolverStats> m_styleResolverStats; |
| 277 | 275 |
| 278 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 276 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 279 unsigned m_accessCount; | 277 unsigned m_accessCount; |
| 280 }; | 278 }; |
| 281 | 279 |
| 282 } // namespace blink | 280 } // namespace blink |
| 283 | 281 |
| 284 #endif // StyleResolver_h | 282 #endif // StyleResolver_h |
| OLD | NEW |