| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) | 63 void setStyle(PassRefPtr<RenderStyle> style) |
| 64 { | 64 { |
| 65 // FIXME: Improve RAII of StyleResolverState to remove this function. | 65 // FIXME: Improve RAII of StyleResolverState to remove this function. |
| 66 m_style = style; | 66 m_style = style; |
| 67 m_cssToLengthConversionData = CSSToLengthConversionData(m_style.get(), r
ootElementStyle(), document().renderView(), m_style->effectiveZoom()); | 67 m_cssToLengthConversionData = CSSToLengthConversionData(m_style.get(), r
ootElementStyle(), document().renderView(), m_style->effectiveZoom()); |
| 68 m_fontBuilder.setStyle(m_style.get()); | 68 m_fontBuilder.setFontDescription(m_style->fontDescription()); |
| 69 } | 69 } |
| 70 const RenderStyle* style() const { return m_style.get(); } | 70 const RenderStyle* style() const { return m_style.get(); } |
| 71 RenderStyle* style() { return m_style.get(); } | 71 RenderStyle* style() { return m_style.get(); } |
| 72 PassRefPtr<RenderStyle> takeStyle() { return m_style.release(); } | 72 PassRefPtr<RenderStyle> takeStyle() { return m_style.release(); } |
| 73 | 73 |
| 74 const CSSToLengthConversionData& cssToLengthConversionData() const { return
m_cssToLengthConversionData; } | 74 const CSSToLengthConversionData& cssToLengthConversionData() const { return
m_cssToLengthConversionData; } |
| 75 | 75 |
| 76 void setConversionFontSizes(const CSSToLengthConversionData::FontSizes& font
Sizes) { m_cssToLengthConversionData.setFontSizes(fontSizes); } | 76 void setConversionFontSizes(const CSSToLengthConversionData::FontSizes& font
Sizes) { m_cssToLengthConversionData.setFontSizes(fontSizes); } |
| 77 void setConversionZoom(float zoom) { m_cssToLengthConversionData.setZoom(zoo
m); } | 77 void setConversionZoom(float zoom) { m_cssToLengthConversionData.setZoom(zoo
m); } |
| 78 | 78 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 ElementStyleResources m_elementStyleResources; | 161 ElementStyleResources m_elementStyleResources; |
| 162 // CSSToStyleMap is a pure-logic class and only contains | 162 // CSSToStyleMap is a pure-logic class and only contains |
| 163 // a back-pointer to this object. | 163 // a back-pointer to this object. |
| 164 CSSToStyleMap m_styleMap; | 164 CSSToStyleMap m_styleMap; |
| 165 Vector<AtomicString> m_contentAttrValues; | 165 Vector<AtomicString> m_contentAttrValues; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace blink | 168 } // namespace blink |
| 169 | 169 |
| 170 #endif // StyleResolverState_h | 170 #endif // StyleResolverState_h |
| OLD | NEW |