| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void setConversionFontSizes( | 93 void setConversionFontSizes( |
| 94 const CSSToLengthConversionData::FontSizes& fontSizes) { | 94 const CSSToLengthConversionData::FontSizes& fontSizes) { |
| 95 m_cssToLengthConversionData.setFontSizes(fontSizes); | 95 m_cssToLengthConversionData.setFontSizes(fontSizes); |
| 96 } | 96 } |
| 97 void setConversionZoom(float zoom) { | 97 void setConversionZoom(float zoom) { |
| 98 m_cssToLengthConversionData.setZoom(zoom); | 98 m_cssToLengthConversionData.setZoom(zoom); |
| 99 } | 99 } |
| 100 | 100 |
| 101 CSSAnimationUpdate& animationUpdate() { return m_animationUpdate; } | 101 CSSAnimationUpdate& animationUpdate() { return m_animationUpdate; } |
| 102 | 102 |
| 103 bool isAnimatingCustomProperties() const { |
| 104 return m_isAnimatingCustomProperties; |
| 105 } |
| 106 void setIsAnimatingCustomProperties(bool value) { |
| 107 m_isAnimatingCustomProperties = value; |
| 108 } |
| 109 |
| 103 void setParentStyle(PassRefPtr<ComputedStyle> parentStyle) { | 110 void setParentStyle(PassRefPtr<ComputedStyle> parentStyle) { |
| 104 m_parentStyle = parentStyle; | 111 m_parentStyle = parentStyle; |
| 105 } | 112 } |
| 106 const ComputedStyle* parentStyle() const { return m_parentStyle.get(); } | 113 const ComputedStyle* parentStyle() const { return m_parentStyle.get(); } |
| 107 ComputedStyle* parentStyle() { return m_parentStyle.get(); } | 114 ComputedStyle* parentStyle() { return m_parentStyle.get(); } |
| 108 | 115 |
| 109 // FIXME: These are effectively side-channel "out parameters" for the various | 116 // FIXME: These are effectively side-channel "out parameters" for the various |
| 110 // map functions. When we map from CSS to style objects we use this state | 117 // map functions. When we map from CSS to style objects we use this state |
| 111 // object to track various meta-data about that mapping (e.g. if it's | 118 // object to track various meta-data about that mapping (e.g. if it's |
| 112 // cache-able). We need to move this data off of StyleResolverState and | 119 // cache-able). We need to move this data off of StyleResolverState and |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // m_style is the primary output for each element's style resolve. | 201 // m_style is the primary output for each element's style resolve. |
| 195 RefPtr<ComputedStyle> m_style; | 202 RefPtr<ComputedStyle> m_style; |
| 196 | 203 |
| 197 CSSToLengthConversionData m_cssToLengthConversionData; | 204 CSSToLengthConversionData m_cssToLengthConversionData; |
| 198 | 205 |
| 199 // m_parentStyle is not always just ElementResolveContext::parentStyle, | 206 // m_parentStyle is not always just ElementResolveContext::parentStyle, |
| 200 // so we keep it separate. | 207 // so we keep it separate. |
| 201 RefPtr<ComputedStyle> m_parentStyle; | 208 RefPtr<ComputedStyle> m_parentStyle; |
| 202 | 209 |
| 203 CSSAnimationUpdate m_animationUpdate; | 210 CSSAnimationUpdate m_animationUpdate; |
| 211 bool m_isAnimatingCustomProperties; |
| 204 | 212 |
| 205 bool m_applyPropertyToRegularStyle; | 213 bool m_applyPropertyToRegularStyle; |
| 206 bool m_applyPropertyToVisitedLinkStyle; | 214 bool m_applyPropertyToVisitedLinkStyle; |
| 207 bool m_hasDirAutoAttribute; | 215 bool m_hasDirAutoAttribute; |
| 208 | 216 |
| 209 FontBuilder m_fontBuilder; | 217 FontBuilder m_fontBuilder; |
| 210 | 218 |
| 211 std::unique_ptr<CachedUAStyle> m_cachedUAStyle; | 219 std::unique_ptr<CachedUAStyle> m_cachedUAStyle; |
| 212 | 220 |
| 213 ElementStyleResources m_elementStyleResources; | 221 ElementStyleResources m_elementStyleResources; |
| 214 | 222 |
| 215 HeapHashMap<String, Member<StylePropertySet>> | 223 HeapHashMap<String, Member<StylePropertySet>> |
| 216 m_customPropertySetsForApplyAtRule; | 224 m_customPropertySetsForApplyAtRule; |
| 217 | 225 |
| 218 mutable HeapHashMap< | 226 mutable HeapHashMap< |
| 219 Member<const CSSPendingSubstitutionValue>, | 227 Member<const CSSPendingSubstitutionValue>, |
| 220 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> | 228 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> |
| 221 m_parsedPropertiesForPendingSubstitutionCache; | 229 m_parsedPropertiesForPendingSubstitutionCache; |
| 222 }; | 230 }; |
| 223 | 231 |
| 224 } // namespace blink | 232 } // namespace blink |
| 225 | 233 |
| 226 #endif // StyleResolverState_h | 234 #endif // StyleResolverState_h |
| OLD | NEW |