| 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 28 matching lines...) Expand all Loading... |
| 39 , m_applyPropertyToVisitedLinkStyle(false) | 39 , m_applyPropertyToVisitedLinkStyle(false) |
| 40 , m_lineHeightValue(0) | 40 , m_lineHeightValue(0) |
| 41 , m_styleMap(*this, m_elementStyleResources) | 41 , m_styleMap(*this, m_elementStyleResources) |
| 42 , m_currentRule(0) | 42 , m_currentRule(0) |
| 43 { | 43 { |
| 44 if (m_elementContext.resetStyleInheritance()) | 44 if (m_elementContext.resetStyleInheritance()) |
| 45 m_parentStyle = 0; | 45 m_parentStyle = 0; |
| 46 else if (!parentStyle && m_elementContext.parentNode()) | 46 else if (!parentStyle && m_elementContext.parentNode()) |
| 47 m_parentStyle = m_elementContext.parentNode()->renderStyle(); | 47 m_parentStyle = m_elementContext.parentNode()->renderStyle(); |
| 48 | 48 |
| 49 m_cssToLengthConversionData.setRootStyle(rootElementStyle()); |
| 50 |
| 49 // FIXME: How can we not have a page here? | 51 // FIXME: How can we not have a page here? |
| 50 if (Page* page = document.page()) | 52 if (Page* page = document.page()) |
| 51 m_elementStyleResources.setDeviceScaleFactor(page->deviceScaleFactor()); | 53 m_elementStyleResources.setDeviceScaleFactor(page->deviceScaleFactor()); |
| 52 } | 54 } |
| 53 | 55 |
| 54 } // namespace WebCore | 56 } // namespace WebCore |
| OLD | NEW |