| 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/page/Page.h" | 28 #include "core/page/Page.h" |
| 29 | 29 |
| 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_regionForStyling(0) | 33 : m_regionForStyling(0) |
| 34 , m_applyPropertyToRegularStyle(true) | 34 , m_applyPropertyToRegularStyle(true) |
| 35 , m_applyPropertyToVisitedLinkStyle(false) | 35 , m_applyPropertyToVisitedLinkStyle(false) |
| 36 , m_lineHeightValue(0) | 36 , m_lineHeightValue(0) |
| 37 , m_styleMap(*this, m_elementStyleResources) | 37 , m_styleMap(*this, m_elementStyleResources) |
| 38 , m_currentRule(0) |
| 38 { | 39 { |
| 39 if (element) { | 40 if (element) { |
| 40 m_elementContext = ElementResolveContext(element); | 41 m_elementContext = ElementResolveContext(element); |
| 41 m_document = m_elementContext.document(); | 42 m_document = m_elementContext.document(); |
| 42 } else { | 43 } else { |
| 43 m_elementContext = ElementResolveContext(); | 44 m_elementContext = ElementResolveContext(); |
| 44 m_document = document; | 45 m_document = document; |
| 45 } | 46 } |
| 46 | 47 |
| 47 m_regionForStyling = regionForStyling; | 48 m_regionForStyling = regionForStyling; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 70 { | 71 { |
| 71 m_elementContext = ElementResolveContext(); | 72 m_elementContext = ElementResolveContext(); |
| 72 m_style = 0; | 73 m_style = 0; |
| 73 m_parentStyle = 0; | 74 m_parentStyle = 0; |
| 74 m_regionForStyling = 0; | 75 m_regionForStyling = 0; |
| 75 m_elementStyleResources.clear(); | 76 m_elementStyleResources.clear(); |
| 76 m_fontBuilder.clear(); | 77 m_fontBuilder.clear(); |
| 77 } | 78 } |
| 78 | 79 |
| 79 } // namespace WebCore | 80 } // namespace WebCore |
| OLD | NEW |