| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 PassRefPtr<ComputedStyle> takeStyle() { return m_style.release(); } | 72 PassRefPtr<ComputedStyle> takeStyle() { return m_style.release(); } |
| 73 | 73 |
| 74 ComputedStyle& mutableStyleRef() const { return *m_style; } | 74 ComputedStyle& mutableStyleRef() const { return *m_style; } |
| 75 const ComputedStyle& styleRef() const { return mutableStyleRef(); } | 75 const ComputedStyle& styleRef() const { return mutableStyleRef(); } |
| 76 | 76 |
| 77 const CSSToLengthConversionData& cssToLengthConversionData() const { return
m_cssToLengthConversionData; } | 77 const CSSToLengthConversionData& cssToLengthConversionData() const { return
m_cssToLengthConversionData; } |
| 78 | 78 |
| 79 void setConversionFontSizes(const CSSToLengthConversionData::FontSizes& font
Sizes) { m_cssToLengthConversionData.setFontSizes(fontSizes); } | 79 void setConversionFontSizes(const CSSToLengthConversionData::FontSizes& font
Sizes) { m_cssToLengthConversionData.setFontSizes(fontSizes); } |
| 80 void setConversionZoom(float zoom) { m_cssToLengthConversionData.setZoom(zoo
m); } | 80 void setConversionZoom(float zoom) { m_cssToLengthConversionData.setZoom(zoo
m); } |
| 81 | 81 |
| 82 void setAnimationUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate>); | 82 void setAnimationUpdate(CSSAnimationUpdate*); |
| 83 const CSSAnimationUpdate* animationUpdate() { return m_animationUpdate.get()
; } | 83 const CSSAnimationUpdate* animationUpdate() { return m_animationUpdate.get()
; } |
| 84 PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> takeAnimationUpdate(); | 84 CSSAnimationUpdate* takeAnimationUpdate(); |
| 85 | 85 |
| 86 void setParentStyle(PassRefPtr<ComputedStyle> parentStyle) { m_parentStyle =
parentStyle; } | 86 void setParentStyle(PassRefPtr<ComputedStyle> parentStyle) { m_parentStyle =
parentStyle; } |
| 87 const ComputedStyle* parentStyle() const { return m_parentStyle.get(); } | 87 const ComputedStyle* parentStyle() const { return m_parentStyle.get(); } |
| 88 ComputedStyle* parentStyle() { return m_parentStyle.get(); } | 88 ComputedStyle* parentStyle() { return m_parentStyle.get(); } |
| 89 | 89 |
| 90 // FIXME: These are effectively side-channel "out parameters" for the variou
s | 90 // FIXME: These are effectively side-channel "out parameters" for the variou
s |
| 91 // map functions. When we map from CSS to style objects we use this state ob
ject | 91 // map functions. When we map from CSS to style objects we use this state ob
ject |
| 92 // to track various meta-data about that mapping (e.g. if it's cache-able). | 92 // to track various meta-data about that mapping (e.g. if it's cache-able). |
| 93 // We need to move this data off of StyleResolverState and closer to the | 93 // We need to move this data off of StyleResolverState and closer to the |
| 94 // objects it applies to. Possibly separating (immutable) inputs from (mutab
le) outputs. | 94 // objects it applies to. Possibly separating (immutable) inputs from (mutab
le) outputs. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 // m_style is the primary output for each element's style resolve. | 161 // m_style is the primary output for each element's style resolve. |
| 162 RefPtr<ComputedStyle> m_style; | 162 RefPtr<ComputedStyle> m_style; |
| 163 | 163 |
| 164 CSSToLengthConversionData m_cssToLengthConversionData; | 164 CSSToLengthConversionData m_cssToLengthConversionData; |
| 165 | 165 |
| 166 // m_parentStyle is not always just ElementResolveContext::parentStyle, | 166 // m_parentStyle is not always just ElementResolveContext::parentStyle, |
| 167 // so we keep it separate. | 167 // so we keep it separate. |
| 168 RefPtr<ComputedStyle> m_parentStyle; | 168 RefPtr<ComputedStyle> m_parentStyle; |
| 169 | 169 |
| 170 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate; | 170 PersistentWillBeMember<CSSAnimationUpdate> m_animationUpdate; |
| 171 | 171 |
| 172 bool m_applyPropertyToRegularStyle; | 172 bool m_applyPropertyToRegularStyle; |
| 173 bool m_applyPropertyToVisitedLinkStyle; | 173 bool m_applyPropertyToVisitedLinkStyle; |
| 174 bool m_hasDirAutoAttribute; | 174 bool m_hasDirAutoAttribute; |
| 175 | 175 |
| 176 FontBuilder m_fontBuilder; | 176 FontBuilder m_fontBuilder; |
| 177 | 177 |
| 178 OwnPtr<CachedUAStyle> m_cachedUAStyle; | 178 OwnPtr<CachedUAStyle> m_cachedUAStyle; |
| 179 | 179 |
| 180 ElementStyleResources m_elementStyleResources; | 180 ElementStyleResources m_elementStyleResources; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } // namespace blink | 183 } // namespace blink |
| 184 | 184 |
| 185 #endif // StyleResolverState_h | 185 #endif // StyleResolverState_h |
| OLD | NEW |