| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 if (m_style->setTextOrientation(textOrientation)) | 154 if (m_style->setTextOrientation(textOrientation)) |
| 155 m_fontBuilder.didChangeTextOrientation(); | 155 m_fontBuilder.didChangeTextOrientation(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void setHasDirAutoAttribute(bool value) { m_hasDirAutoAttribute = value; } | 158 void setHasDirAutoAttribute(bool value) { m_hasDirAutoAttribute = value; } |
| 159 bool hasDirAutoAttribute() const { return m_hasDirAutoAttribute; } | 159 bool hasDirAutoAttribute() const { return m_hasDirAutoAttribute; } |
| 160 | 160 |
| 161 void setCustomPropertySetForApplyAtRule(const String&, StylePropertySet*); | 161 void setCustomPropertySetForApplyAtRule(const String&, StylePropertySet*); |
| 162 StylePropertySet* customPropertySetForApplyAtRule(const String&); | 162 StylePropertySet* customPropertySetForApplyAtRule(const String&); |
| 163 | 163 |
| 164 HeapHashMap<CSSPropertyID, Member<const CSSValue>>& parsedPropertiesForPendi
ngSubstitution(const CSSPendingSubstitutionValue&); | 164 HeapHashMap<CSSPropertyID, Member<const CSSValue>>& parsedPropertiesForPendi
ngSubstitutionCache(const CSSPendingSubstitutionValue&) const; |
| 165 | 165 |
| 166 private: | 166 private: |
| 167 ElementResolveContext m_elementContext; | 167 ElementResolveContext m_elementContext; |
| 168 Member<Document> m_document; | 168 Member<Document> m_document; |
| 169 | 169 |
| 170 // m_style is the primary output for each element's style resolve. | 170 // m_style is the primary output for each element's style resolve. |
| 171 RefPtr<ComputedStyle> m_style; | 171 RefPtr<ComputedStyle> m_style; |
| 172 | 172 |
| 173 CSSToLengthConversionData m_cssToLengthConversionData; | 173 CSSToLengthConversionData m_cssToLengthConversionData; |
| 174 | 174 |
| 175 // m_parentStyle is not always just ElementResolveContext::parentStyle, | 175 // m_parentStyle is not always just ElementResolveContext::parentStyle, |
| 176 // so we keep it separate. | 176 // so we keep it separate. |
| 177 RefPtr<ComputedStyle> m_parentStyle; | 177 RefPtr<ComputedStyle> m_parentStyle; |
| 178 | 178 |
| 179 CSSAnimationUpdate m_animationUpdate; | 179 CSSAnimationUpdate m_animationUpdate; |
| 180 | 180 |
| 181 bool m_applyPropertyToRegularStyle; | 181 bool m_applyPropertyToRegularStyle; |
| 182 bool m_applyPropertyToVisitedLinkStyle; | 182 bool m_applyPropertyToVisitedLinkStyle; |
| 183 bool m_hasDirAutoAttribute; | 183 bool m_hasDirAutoAttribute; |
| 184 | 184 |
| 185 FontBuilder m_fontBuilder; | 185 FontBuilder m_fontBuilder; |
| 186 | 186 |
| 187 std::unique_ptr<CachedUAStyle> m_cachedUAStyle; | 187 std::unique_ptr<CachedUAStyle> m_cachedUAStyle; |
| 188 | 188 |
| 189 ElementStyleResources m_elementStyleResources; | 189 ElementStyleResources m_elementStyleResources; |
| 190 | 190 |
| 191 HeapHashMap<String, Member<StylePropertySet>> m_customPropertySetsForApplyAt
Rule; | 191 HeapHashMap<String, Member<StylePropertySet>> m_customPropertySetsForApplyAt
Rule; |
| 192 | 192 |
| 193 HeapHashMap<Member<const CSSPendingSubstitutionValue>, Member<HeapHashMap<CS
SPropertyID, Member<const CSSValue>>>> m_parsedPropertiesForPendingSubstitution; | 193 mutable HeapHashMap<Member<const CSSPendingSubstitutionValue>, Member<HeapHa
shMap<CSSPropertyID, Member<const CSSValue>>>> m_parsedPropertiesForPendingSubst
itutionCache; |
| 194 | 194 |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace blink | 197 } // namespace blink |
| 198 | 198 |
| 199 #endif // StyleResolverState_h | 199 #endif // StyleResolverState_h |
| OLD | NEW |