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

Side by Side Diff: Source/core/layout/LayoutThemeMac.mm

Issue 952593003: Remove argument to progress bar timing methods on LayoutTheme. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutThemeMac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Google, Inc. 3 * Copyright (C) 2008, 2009 Google, Inc.
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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 { 0, 0, 1, 0 }, 970 { 0, 0, 1, 0 },
971 }; 971 };
972 return margins[controlSize]; 972 return margins[controlSize];
973 } 973 }
974 974
975 int LayoutThemeMac::minimumProgressBarHeight(const LayoutStyle& style) const 975 int LayoutThemeMac::minimumProgressBarHeight(const LayoutStyle& style) const
976 { 976 {
977 return sizeForSystemFont(style, progressBarSizes()).height(); 977 return sizeForSystemFont(style, progressBarSizes()).height();
978 } 978 }
979 979
980 double LayoutThemeMac::animationRepeatIntervalForProgressBar(LayoutProgress*) co nst 980 double LayoutThemeMac::animationRepeatIntervalForProgressBar() const
981 { 981 {
982 return progressAnimationFrameRate; 982 return progressAnimationFrameRate;
983 } 983 }
984 984
985 double LayoutThemeMac::animationDurationForProgressBar(LayoutProgress*) const 985 double LayoutThemeMac::animationDurationForProgressBar() const
986 { 986 {
987 return progressAnimationNumFrames * progressAnimationFrameRate; 987 return progressAnimationNumFrames * progressAnimationFrameRate;
988 } 988 }
989 989
990 bool LayoutThemeMac::paintProgressBar(LayoutObject* layoutObject, const PaintInf o& paintInfo, const IntRect& rect) 990 bool LayoutThemeMac::paintProgressBar(LayoutObject* layoutObject, const PaintInf o& paintInfo, const IntRect& rect)
991 { 991 {
992 if (!layoutObject->isProgress()) 992 if (!layoutObject->isProgress())
993 return true; 993 return true;
994 994
995 float zoomLevel = layoutObject->style()->effectiveZoom(); 995 float zoomLevel = layoutObject->style()->effectiveZoom();
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 1844
1845 bool LayoutThemeMac::shouldUseFallbackTheme(const LayoutStyle& style) const 1845 bool LayoutThemeMac::shouldUseFallbackTheme(const LayoutStyle& style) const
1846 { 1846 {
1847 ControlPart part = style.appearance(); 1847 ControlPart part = style.appearance();
1848 if (part == CheckboxPart || part == RadioPart) 1848 if (part == CheckboxPart || part == RadioPart)
1849 return style.effectiveZoom() != 1; 1849 return style.effectiveZoom() != 1;
1850 return false; 1850 return false;
1851 } 1851 }
1852 1852
1853 } // namespace blink 1853 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutThemeMac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698