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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 } | 147 } |
148 void setTextOrientation(TextOrientation textOrientation) | 148 void setTextOrientation(TextOrientation textOrientation) |
149 { | 149 { |
150 if (m_style->setTextOrientation(textOrientation)) | 150 if (m_style->setTextOrientation(textOrientation)) |
151 m_fontBuilder.didChangeTextOrientation(); | 151 m_fontBuilder.didChangeTextOrientation(); |
152 } | 152 } |
153 | 153 |
154 void setHasDirAutoAttribute(bool value) { m_hasDirAutoAttribute = value; } | 154 void setHasDirAutoAttribute(bool value) { m_hasDirAutoAttribute = value; } |
155 bool hasDirAutoAttribute() const { return m_hasDirAutoAttribute; } | 155 bool hasDirAutoAttribute() const { return m_hasDirAutoAttribute; } |
156 | 156 |
| 157 bool documentUsesCSSVariables() const; |
| 158 |
157 private: | 159 private: |
158 ElementResolveContext m_elementContext; | 160 ElementResolveContext m_elementContext; |
159 RawPtrWillBeMember<Document> m_document; | 161 RawPtrWillBeMember<Document> m_document; |
160 | 162 |
161 // m_style is the primary output for each element's style resolve. | 163 // m_style is the primary output for each element's style resolve. |
162 RefPtr<ComputedStyle> m_style; | 164 RefPtr<ComputedStyle> m_style; |
163 | 165 |
164 CSSToLengthConversionData m_cssToLengthConversionData; | 166 CSSToLengthConversionData m_cssToLengthConversionData; |
165 | 167 |
166 // m_parentStyle is not always just ElementResolveContext::parentStyle, | 168 // m_parentStyle is not always just ElementResolveContext::parentStyle, |
167 // so we keep it separate. | 169 // so we keep it separate. |
168 RefPtr<ComputedStyle> m_parentStyle; | 170 RefPtr<ComputedStyle> m_parentStyle; |
169 | 171 |
170 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate; | 172 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate; |
171 | 173 |
172 bool m_applyPropertyToRegularStyle; | 174 bool m_applyPropertyToRegularStyle; |
173 bool m_applyPropertyToVisitedLinkStyle; | 175 bool m_applyPropertyToVisitedLinkStyle; |
174 bool m_hasDirAutoAttribute; | 176 bool m_hasDirAutoAttribute; |
175 | 177 |
176 FontBuilder m_fontBuilder; | 178 FontBuilder m_fontBuilder; |
177 | 179 |
178 OwnPtr<CachedUAStyle> m_cachedUAStyle; | 180 OwnPtr<CachedUAStyle> m_cachedUAStyle; |
179 | 181 |
180 ElementStyleResources m_elementStyleResources; | 182 ElementStyleResources m_elementStyleResources; |
181 }; | 183 }; |
182 | 184 |
183 } // namespace blink | 185 } // namespace blink |
184 | 186 |
185 #endif // StyleResolverState_h | 187 #endif // StyleResolverState_h |
OLD | NEW |