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. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
4 * All rights reserved. | 4 * All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 public: | 79 public: |
80 static StyleResolver* create(Document& document) { | 80 static StyleResolver* create(Document& document) { |
81 return new StyleResolver(document); | 81 return new StyleResolver(document); |
82 } | 82 } |
83 ~StyleResolver(); | 83 ~StyleResolver(); |
84 void dispose(); | 84 void dispose(); |
85 | 85 |
86 PassRefPtr<ComputedStyle> styleForElement( | 86 PassRefPtr<ComputedStyle> styleForElement( |
87 Element*, | 87 Element*, |
88 const ComputedStyle* parentStyle = 0, | 88 const ComputedStyle* parentStyle = 0, |
| 89 const ComputedStyle* layoutParentStyle = 0, |
89 StyleSharingBehavior = AllowStyleSharing, | 90 StyleSharingBehavior = AllowStyleSharing, |
90 RuleMatchingBehavior = MatchAllRules); | 91 RuleMatchingBehavior = MatchAllRules); |
91 | 92 |
92 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot( | 93 static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot( |
93 Element&, | 94 Element&, |
94 const ComputedStyle& baseStyle, | 95 const ComputedStyle& baseStyle, |
95 const ComputedStyle* parentStyle, | 96 const ComputedStyle* parentStyle, |
96 CSSPropertyID, | 97 CSSPropertyID, |
97 const CSSValue*); | 98 const CSSValue*); |
98 | 99 |
99 PassRefPtr<ComputedStyle> pseudoStyleForElement( | 100 PassRefPtr<ComputedStyle> pseudoStyleForElement( |
100 Element*, | 101 Element*, |
101 const PseudoStyleRequest&, | 102 const PseudoStyleRequest&, |
102 const ComputedStyle* parentStyle); | 103 const ComputedStyle* parentStyle, |
| 104 const ComputedStyle* layoutParentStyle); |
103 | 105 |
104 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); | 106 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); |
105 PassRefPtr<ComputedStyle> styleForText(Text*); | 107 PassRefPtr<ComputedStyle> styleForText(Text*); |
106 | 108 |
107 static PassRefPtr<ComputedStyle> styleForDocument(Document&); | 109 static PassRefPtr<ComputedStyle> styleForDocument(Document&); |
108 | 110 |
109 // FIXME: It could be better to call appendAuthorStyleSheets() directly after | 111 // FIXME: It could be better to call appendAuthorStyleSheets() directly after |
110 // we factor StyleResolver further. | 112 // we factor StyleResolver further. |
111 // https://bugs.webkit.org/show_bug.cgi?id=108890 | 113 // https://bugs.webkit.org/show_bug.cgi?id=108890 |
112 void appendAuthorStyleSheets(const HeapVector<Member<CSSStyleSheet>>&); | 114 void appendAuthorStyleSheets(const HeapVector<Member<CSSStyleSheet>>&); |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 bool m_printMediaType = false; | 285 bool m_printMediaType = false; |
284 | 286 |
285 unsigned m_styleSharingDepth = 0; | 287 unsigned m_styleSharingDepth = 0; |
286 HeapVector<Member<StyleSharingList>, styleSharingMaxDepth> | 288 HeapVector<Member<StyleSharingList>, styleSharingMaxDepth> |
287 m_styleSharingLists; | 289 m_styleSharingLists; |
288 }; | 290 }; |
289 | 291 |
290 } // namespace blink | 292 } // namespace blink |
291 | 293 |
292 #endif // StyleResolver_h | 294 #endif // StyleResolver_h |
OLD | NEW |