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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 : DoubleSize()) {} 77 : DoubleSize()) {}
78 78
79 CSSToLengthConversionData::CSSToLengthConversionData( 79 CSSToLengthConversionData::CSSToLengthConversionData(
80 const ComputedStyle* style, 80 const ComputedStyle* style,
81 const FontSizes& fontSizes, 81 const FontSizes& fontSizes,
82 const ViewportSize& viewportSize, 82 const ViewportSize& viewportSize,
83 float zoom) 83 float zoom)
84 : m_style(style), 84 : m_style(style),
85 m_fontSizes(fontSizes), 85 m_fontSizes(fontSizes),
86 m_viewportSize(viewportSize), 86 m_viewportSize(viewportSize),
87 m_zoom(clampTo<float>(zoom, std::numeric_limits<float>::denorm_min())) { 87 m_zoom(clampTo<float>(zoom, std::numeric_limits<float>::denorm_min())) {}
88 }
89 88
90 CSSToLengthConversionData::CSSToLengthConversionData( 89 CSSToLengthConversionData::CSSToLengthConversionData(
91 const ComputedStyle* style, 90 const ComputedStyle* style,
92 const ComputedStyle* rootStyle, 91 const ComputedStyle* rootStyle,
93 const LayoutViewItem& layoutViewItem, 92 const LayoutViewItem& layoutViewItem,
94 float zoom) 93 float zoom)
95 : CSSToLengthConversionData(style, 94 : CSSToLengthConversionData(style,
96 FontSizes(style, rootStyle), 95 FontSizes(style, rootStyle),
97 ViewportSize(layoutViewItem), 96 ViewportSize(layoutViewItem),
98 zoom) {} 97 zoom) {}
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 case CSSPrimitiveValue::UnitType::Chs: 174 case CSSPrimitiveValue::UnitType::Chs:
176 return value * chFontSize(); 175 return value * chFontSize();
177 176
178 default: 177 default:
179 ASSERT_NOT_REACHED(); 178 ASSERT_NOT_REACHED();
180 return 0; 179 return 0;
181 } 180 }
182 } 181 }
183 182
184 } // namespace blink 183 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSToLengthConversionData.h ('k') | third_party/WebKit/Source/core/css/DragUpdateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698