| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 Document& document() const { return *m_document; } | 53 Document& document() const { return *m_document; } |
| 54 // These are all just pass-through methods to ElementResolveContext. | 54 // These are all just pass-through methods to ElementResolveContext. |
| 55 Element* element() const { return m_elementContext.element(); } | 55 Element* element() const { return m_elementContext.element(); } |
| 56 const ContainerNode* parentNode() const { return m_elementContext.parentNode
(); } | 56 const ContainerNode* parentNode() const { return m_elementContext.parentNode
(); } |
| 57 const RenderStyle* rootElementStyle() const { return m_elementContext.rootEl
ementStyle(); } | 57 const RenderStyle* rootElementStyle() const { return m_elementContext.rootEl
ementStyle(); } |
| 58 EInsideLink elementLinkState() const { return m_elementContext.elementLinkSt
ate(); } | 58 EInsideLink elementLinkState() const { return m_elementContext.elementLinkSt
ate(); } |
| 59 bool distributedToInsertionPoint() const { return m_elementContext.distribut
edToInsertionPoint(); } | 59 bool distributedToInsertionPoint() const { return m_elementContext.distribut
edToInsertionPoint(); } |
| 60 | 60 |
| 61 const ElementResolveContext& elementContext() const { return m_elementContex
t; } | 61 const ElementResolveContext& elementContext() const { return m_elementContex
t; } |
| 62 | 62 |
| 63 void setStyle(PassRefPtr<RenderStyle> style) { m_style = style; m_cssToLengt
hConversionData.setStyle(m_style.get()); } | 63 void setStyle(PassRefPtr<RenderStyle> style) |
| 64 { |
| 65 m_style = style; |
| 66 m_cssToLengthConversionData.setStyle(m_style.get()); |
| 67 m_fontBuilder.setStyle(m_style.get()); |
| 68 } |
| 64 const RenderStyle* style() const { return m_style.get(); } | 69 const RenderStyle* style() const { return m_style.get(); } |
| 65 RenderStyle* style() { return m_style.get(); } | 70 RenderStyle* style() { return m_style.get(); } |
| 66 PassRefPtr<RenderStyle> takeStyle() { return m_style.release(); } | 71 PassRefPtr<RenderStyle> takeStyle() { return m_style.release(); } |
| 67 | 72 |
| 68 const CSSToLengthConversionData& cssToLengthConversionData() const { return
m_cssToLengthConversionData; } | 73 const CSSToLengthConversionData& cssToLengthConversionData() const { return
m_cssToLengthConversionData; } |
| 69 | 74 |
| 70 void setAnimationUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate>); | 75 void setAnimationUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate>); |
| 71 const CSSAnimationUpdate* animationUpdate() { return m_animationUpdate.get()
; } | 76 const CSSAnimationUpdate* animationUpdate() { return m_animationUpdate.get()
; } |
| 72 PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> takeAnimationUpdate(); | 77 PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> takeAnimationUpdate(); |
| 73 | 78 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ElementStyleResources m_elementStyleResources; | 162 ElementStyleResources m_elementStyleResources; |
| 158 // CSSToStyleMap is a pure-logic class and only contains | 163 // CSSToStyleMap is a pure-logic class and only contains |
| 159 // a back-pointer to this object. | 164 // a back-pointer to this object. |
| 160 CSSToStyleMap m_styleMap; | 165 CSSToStyleMap m_styleMap; |
| 161 Vector<AtomicString> m_contentAttrValues; | 166 Vector<AtomicString> m_contentAttrValues; |
| 162 }; | 167 }; |
| 163 | 168 |
| 164 } // namespace blink | 169 } // namespace blink |
| 165 | 170 |
| 166 #endif // StyleResolverState_h | 171 #endif // StyleResolverState_h |
| OLD | NEW |