| 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 isAnimationInterpolationMapReady() const { |
| 104 return m_isAnimationInterpolationMapReady; |
| 105 } |
| 106 void setIsAnimationInterpolationMapReady() { |
| 107 m_isAnimationInterpolationMapReady = true; |
| 108 } |
| 109 |
| 110 bool isAnimatingCustomProperties() const { |
| 111 return m_isAnimatingCustomProperties; |
| 112 } |
| 113 void setIsAnimatingCustomProperties(bool value) { |
| 114 m_isAnimatingCustomProperties = value; |
| 115 } |
| 116 |
| 103 void setParentStyle(PassRefPtr<ComputedStyle> parentStyle) { | 117 void setParentStyle(PassRefPtr<ComputedStyle> parentStyle) { |
| 104 m_parentStyle = parentStyle; | 118 m_parentStyle = parentStyle; |
| 105 } | 119 } |
| 106 const ComputedStyle* parentStyle() const { return m_parentStyle.get(); } | 120 const ComputedStyle* parentStyle() const { return m_parentStyle.get(); } |
| 107 ComputedStyle* parentStyle() { return m_parentStyle.get(); } | 121 ComputedStyle* parentStyle() { return m_parentStyle.get(); } |
| 108 | 122 |
| 109 // FIXME: These are effectively side-channel "out parameters" for the various | 123 // 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 | 124 // 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 | 125 // 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 | 126 // 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. | 208 // m_style is the primary output for each element's style resolve. |
| 195 RefPtr<ComputedStyle> m_style; | 209 RefPtr<ComputedStyle> m_style; |
| 196 | 210 |
| 197 CSSToLengthConversionData m_cssToLengthConversionData; | 211 CSSToLengthConversionData m_cssToLengthConversionData; |
| 198 | 212 |
| 199 // m_parentStyle is not always just ElementResolveContext::parentStyle, | 213 // m_parentStyle is not always just ElementResolveContext::parentStyle, |
| 200 // so we keep it separate. | 214 // so we keep it separate. |
| 201 RefPtr<ComputedStyle> m_parentStyle; | 215 RefPtr<ComputedStyle> m_parentStyle; |
| 202 | 216 |
| 203 CSSAnimationUpdate m_animationUpdate; | 217 CSSAnimationUpdate m_animationUpdate; |
| 218 bool m_isAnimationInterpolationMapReady; |
| 219 bool m_isAnimatingCustomProperties; |
| 204 | 220 |
| 205 bool m_applyPropertyToRegularStyle; | 221 bool m_applyPropertyToRegularStyle; |
| 206 bool m_applyPropertyToVisitedLinkStyle; | 222 bool m_applyPropertyToVisitedLinkStyle; |
| 207 bool m_hasDirAutoAttribute; | 223 bool m_hasDirAutoAttribute; |
| 208 | 224 |
| 209 FontBuilder m_fontBuilder; | 225 FontBuilder m_fontBuilder; |
| 210 | 226 |
| 211 std::unique_ptr<CachedUAStyle> m_cachedUAStyle; | 227 std::unique_ptr<CachedUAStyle> m_cachedUAStyle; |
| 212 | 228 |
| 213 ElementStyleResources m_elementStyleResources; | 229 ElementStyleResources m_elementStyleResources; |
| 214 | 230 |
| 215 HeapHashMap<String, Member<StylePropertySet>> | 231 HeapHashMap<String, Member<StylePropertySet>> |
| 216 m_customPropertySetsForApplyAtRule; | 232 m_customPropertySetsForApplyAtRule; |
| 217 | 233 |
| 218 mutable HeapHashMap< | 234 mutable HeapHashMap< |
| 219 Member<const CSSPendingSubstitutionValue>, | 235 Member<const CSSPendingSubstitutionValue>, |
| 220 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> | 236 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> |
| 221 m_parsedPropertiesForPendingSubstitutionCache; | 237 m_parsedPropertiesForPendingSubstitutionCache; |
| 222 }; | 238 }; |
| 223 | 239 |
| 224 } // namespace blink | 240 } // namespace blink |
| 225 | 241 |
| 226 #endif // StyleResolverState_h | 242 #endif // StyleResolverState_h |
| OLD | NEW |