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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 m_cachedUAStyle = CachedUAStyle::create(style()); | 107 m_cachedUAStyle = CachedUAStyle::create(style()); |
108 } | 108 } |
109 | 109 |
110 const CachedUAStyle* cachedUAStyle() const | 110 const CachedUAStyle* cachedUAStyle() const |
111 { | 111 { |
112 return m_cachedUAStyle.get(); | 112 return m_cachedUAStyle.get(); |
113 } | 113 } |
114 | 114 |
115 ElementStyleResources& elementStyleResources() { return m_elementStyleResour
ces; } | 115 ElementStyleResources& elementStyleResources() { return m_elementStyleResour
ces; } |
116 const CSSToStyleMap& styleMap() const { return m_styleMap; } | |
117 CSSToStyleMap& styleMap() { return m_styleMap; } | |
118 | 116 |
119 // FIXME: Once styleImage can be made to not take a StyleResolverState | 117 // FIXME: Once styleImage can be made to not take a StyleResolverState |
120 // this convenience function should be removed. As-is, without this, call | 118 // this convenience function should be removed. As-is, without this, call |
121 // sites are extremely verbose. | 119 // sites are extremely verbose. |
122 PassRefPtr<StyleImage> styleImage(CSSPropertyID propertyId, CSSValue* value) | 120 PassRefPtr<StyleImage> styleImage(CSSPropertyID propertyId, CSSValue* value) |
123 { | 121 { |
124 return m_elementStyleResources.styleImage(document(), document().textLin
kColors(), style()->color(), propertyId, value); | 122 return m_elementStyleResources.styleImage(document(), document().textLin
kColors(), style()->color(), propertyId, value); |
125 } | 123 } |
126 | 124 |
127 FontBuilder& fontBuilder() { return m_fontBuilder; } | 125 FontBuilder& fontBuilder() { return m_fontBuilder; } |
(...skipping 24 matching lines...) Expand all Loading... |
152 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate; | 150 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate; |
153 | 151 |
154 bool m_applyPropertyToRegularStyle; | 152 bool m_applyPropertyToRegularStyle; |
155 bool m_applyPropertyToVisitedLinkStyle; | 153 bool m_applyPropertyToVisitedLinkStyle; |
156 | 154 |
157 FontBuilder m_fontBuilder; | 155 FontBuilder m_fontBuilder; |
158 | 156 |
159 OwnPtr<CachedUAStyle> m_cachedUAStyle; | 157 OwnPtr<CachedUAStyle> m_cachedUAStyle; |
160 | 158 |
161 ElementStyleResources m_elementStyleResources; | 159 ElementStyleResources m_elementStyleResources; |
162 // CSSToStyleMap is a pure-logic class and only contains | |
163 // a back-pointer to this object. | |
164 CSSToStyleMap m_styleMap; | |
165 Vector<AtomicString> m_contentAttrValues; | 160 Vector<AtomicString> m_contentAttrValues; |
166 }; | 161 }; |
167 | 162 |
168 } // namespace blink | 163 } // namespace blink |
169 | 164 |
170 #endif // StyleResolverState_h | 165 #endif // StyleResolverState_h |
OLD | NEW |