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 77 matching lines...) Loading... |
88 // FIXME: These are effectively side-channel "out parameters" for the variou
s | 88 // FIXME: These are effectively side-channel "out parameters" for the variou
s |
89 // map functions. When we map from CSS to style objects we use this state ob
ject | 89 // map functions. When we map from CSS to style objects we use this state ob
ject |
90 // to track various meta-data about that mapping (e.g. if it's cache-able). | 90 // to track various meta-data about that mapping (e.g. if it's cache-able). |
91 // We need to move this data off of StyleResolverState and closer to the | 91 // We need to move this data off of StyleResolverState and closer to the |
92 // objects it applies to. Possibly separating (immutable) inputs from (mutab
le) outputs. | 92 // objects it applies to. Possibly separating (immutable) inputs from (mutab
le) outputs. |
93 void setApplyPropertyToRegularStyle(bool isApply) { m_applyPropertyToRegular
Style = isApply; } | 93 void setApplyPropertyToRegularStyle(bool isApply) { m_applyPropertyToRegular
Style = isApply; } |
94 void setApplyPropertyToVisitedLinkStyle(bool isApply) { m_applyPropertyToVis
itedLinkStyle = isApply; } | 94 void setApplyPropertyToVisitedLinkStyle(bool isApply) { m_applyPropertyToVis
itedLinkStyle = isApply; } |
95 bool applyPropertyToRegularStyle() const { return m_applyPropertyToRegularSt
yle; } | 95 bool applyPropertyToRegularStyle() const { return m_applyPropertyToRegularSt
yle; } |
96 bool applyPropertyToVisitedLinkStyle() const { return m_applyPropertyToVisit
edLinkStyle; } | 96 bool applyPropertyToVisitedLinkStyle() const { return m_applyPropertyToVisit
edLinkStyle; } |
97 | 97 |
98 // Holds all attribute names found while applying "content" properties that
contain an "attr()" value. | |
99 Vector<AtomicString>& contentAttrValues() { return m_contentAttrValues; } | |
100 | |
101 void cacheUserAgentBorderAndBackground() | 98 void cacheUserAgentBorderAndBackground() |
102 { | 99 { |
103 // RenderTheme only needs the cached style if it has an appearance, | 100 // RenderTheme only needs the cached style if it has an appearance, |
104 // and constructing it is expensive so we avoid it if possible. | 101 // and constructing it is expensive so we avoid it if possible. |
105 if (!style()->hasAppearance()) | 102 if (!style()->hasAppearance()) |
106 return; | 103 return; |
107 | 104 |
108 m_cachedUAStyle = CachedUAStyle::create(style()); | 105 m_cachedUAStyle = CachedUAStyle::create(style()); |
109 } | 106 } |
110 | 107 |
(...skipping 40 matching lines...) Loading... |
151 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate; | 148 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate; |
152 | 149 |
153 bool m_applyPropertyToRegularStyle; | 150 bool m_applyPropertyToRegularStyle; |
154 bool m_applyPropertyToVisitedLinkStyle; | 151 bool m_applyPropertyToVisitedLinkStyle; |
155 | 152 |
156 FontBuilder m_fontBuilder; | 153 FontBuilder m_fontBuilder; |
157 | 154 |
158 OwnPtr<CachedUAStyle> m_cachedUAStyle; | 155 OwnPtr<CachedUAStyle> m_cachedUAStyle; |
159 | 156 |
160 ElementStyleResources m_elementStyleResources; | 157 ElementStyleResources m_elementStyleResources; |
161 Vector<AtomicString> m_contentAttrValues; | |
162 }; | 158 }; |
163 | 159 |
164 } // namespace blink | 160 } // namespace blink |
165 | 161 |
166 #endif // StyleResolverState_h | 162 #endif // StyleResolverState_h |
OLD | NEW |