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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp

Issue 2405633002: Reformat comments in core/layout (Closed)
Patch Set: Created 4 years, 2 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) 2007 Apple Inc. 2 * Copyright (C) 2007 Apple Inc.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Collabora Ltd. 4 * Copyright (C) 2008 Collabora Ltd.
5 * Copyright (C) 2008, 2009 Google Inc. 5 * Copyright (C) 2008, 2009 Google Inc.
6 * Copyright (C) 2009 Kenneth Rohde Christiansen 6 * Copyright (C) 2009 Kenneth Rohde Christiansen
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 style.setMinWidth(Length(size.width() * zoomLevel, Fixed)); 224 style.setMinWidth(Length(size.width() * zoomLevel, Fixed));
225 } 225 }
226 226
227 bool LayoutThemeDefault::shouldOpenPickerWithF4Key() const { 227 bool LayoutThemeDefault::shouldOpenPickerWithF4Key() const {
228 return true; 228 return true;
229 } 229 }
230 230
231 bool LayoutThemeDefault::shouldUseFallbackTheme( 231 bool LayoutThemeDefault::shouldUseFallbackTheme(
232 const ComputedStyle& style) const { 232 const ComputedStyle& style) const {
233 if (useMockTheme()) { 233 if (useMockTheme()) {
234 // The mock theme can't handle zoomed controls, so we fall back to the "fall back" theme. 234 // The mock theme can't handle zoomed controls, so we fall back to the
235 // "fallback" theme.
235 ControlPart part = style.appearance(); 236 ControlPart part = style.appearance();
236 if (part == CheckboxPart || part == RadioPart) 237 if (part == CheckboxPart || part == RadioPart)
237 return style.effectiveZoom() != 1; 238 return style.effectiveZoom() != 1;
238 } 239 }
239 return LayoutTheme::shouldUseFallbackTheme(style); 240 return LayoutTheme::shouldUseFallbackTheme(style);
240 } 241 }
241 242
242 bool LayoutThemeDefault::supportsHover(const ComputedStyle& style) const { 243 bool LayoutThemeDefault::supportsHover(const ComputedStyle& style) const {
243 return true; 244 return true;
244 } 245 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 double LayoutThemeDefault::animationRepeatIntervalForProgressBar() const { 360 double LayoutThemeDefault::animationRepeatIntervalForProgressBar() const {
360 return progressAnimationInterval; 361 return progressAnimationInterval;
361 } 362 }
362 363
363 double LayoutThemeDefault::animationDurationForProgressBar() const { 364 double LayoutThemeDefault::animationDurationForProgressBar() const {
364 return progressAnimationInterval * progressAnimationFrames * 365 return progressAnimationInterval * progressAnimationFrames *
365 2; // "2" for back and forth 366 2; // "2" for back and forth
366 } 367 }
367 368
368 } // namespace blink 369 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutThemeMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698