Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: Source/core/css/resolver/StyleResolverState.cpp

Issue 64293008: Wrap CSS length conversion arguments in an object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: erm.. use DEFINE_STATIC_REF Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698