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 19 matching lines...) Expand all Loading... |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 StyleResolverState::StyleResolverState(Document& document, Element* element, Ren
derStyle* parentStyle, RenderRegion* regionForStyling) | 32 StyleResolverState::StyleResolverState(Document& document, Element* element, Ren
derStyle* parentStyle, RenderRegion* regionForStyling) |
33 : m_elementContext(element ? ElementResolveContext(element) : ElementResolve
Context()) | 33 : m_elementContext(element ? ElementResolveContext(element) : ElementResolve
Context()) |
34 , m_document(element ? m_elementContext.document() : document) | 34 , m_document(element ? m_elementContext.document() : document) |
35 , m_regionForStyling(0) | 35 , m_regionForStyling(0) |
36 , m_applyPropertyToRegularStyle(true) | 36 , m_applyPropertyToRegularStyle(true) |
37 , m_applyPropertyToVisitedLinkStyle(false) | 37 , m_applyPropertyToVisitedLinkStyle(false) |
38 , m_lineHeightValue(0) | 38 , m_lineHeightValue(0) |
39 , m_styleMap(*this, m_elementStyleResources) | 39 , m_styleMap(*this, m_elementStyleResources) |
| 40 , m_currentRule(0) |
40 { | 41 { |
41 m_regionForStyling = regionForStyling; | 42 m_regionForStyling = regionForStyling; |
42 | 43 |
43 if (m_elementContext.resetStyleInheritance()) | 44 if (m_elementContext.resetStyleInheritance()) |
44 m_parentStyle = 0; | 45 m_parentStyle = 0; |
45 else if (parentStyle) | 46 else if (parentStyle) |
46 m_parentStyle = parentStyle; | 47 m_parentStyle = parentStyle; |
47 else if (m_elementContext.parentNode()) | 48 else if (m_elementContext.parentNode()) |
48 m_parentStyle = m_elementContext.parentNode()->renderStyle(); | 49 m_parentStyle = m_elementContext.parentNode()->renderStyle(); |
49 else | 50 else |
(...skipping 14 matching lines...) Expand all Loading... |
64 { | 65 { |
65 m_elementContext = ElementResolveContext(); | 66 m_elementContext = ElementResolveContext(); |
66 m_style = 0; | 67 m_style = 0; |
67 m_parentStyle = 0; | 68 m_parentStyle = 0; |
68 m_regionForStyling = 0; | 69 m_regionForStyling = 0; |
69 m_elementStyleResources.clear(); | 70 m_elementStyleResources.clear(); |
70 m_fontBuilder.clear(); | 71 m_fontBuilder.clear(); |
71 } | 72 } |
72 | 73 |
73 } // namespace WebCore | 74 } // namespace WebCore |
OLD | NEW |