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

Side by Side Diff: Source/core/css/CSSLengthFunctions.h

Issue 122973002: Refactor the length functions to remove passing around the extra bool parameter for rounding behavi… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try again Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/core/css/CSSLengthFunctions.cpp » ('j') | 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) 1999 Lars Knoll (knoll@kde.org) 2 Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com) 4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com)
5 Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 5 Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
6 Copyright (C) 2012 Motorola Mobility, Inc. All rights reserved. 6 Copyright (C) 2012 Motorola Mobility, Inc. All rights reserved.
7 Copyright (C) 2013 Google, Inc. All rights reserved. 7 Copyright (C) 2013 Google, Inc. All rights reserved.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 14 matching lines...) Expand all
25 #ifndef CSSLengthFunctions_h 25 #ifndef CSSLengthFunctions_h
26 #define CSSLengthFunctions_h 26 #define CSSLengthFunctions_h
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 class LayoutUnit; 30 class LayoutUnit;
31 class Length; 31 class Length;
32 class RenderView; 32 class RenderView;
33 33
34 // FIXME: Move these to platform/LengthFunctions.h 34 // FIXME: Move these to platform/LengthFunctions.h
35 int minimumIntValueForLength(const Length&, LayoutUnit maximumValue, bool roundP ercentages = false); 35 int minimumIntValueForLength(const Length&, LayoutUnit maximumValue);
36 int intValueForLength(const Length&, LayoutUnit maximumValue, bool roundPercenta ges = false); 36 int intValueForLength(const Length&, LayoutUnit maximumValue);
37 LayoutUnit minimumValueForLength(const Length&, LayoutUnit maximumValue, bool ro undPercentages = false); 37 LayoutUnit minimumValueForLength(const Length&, LayoutUnit maximumValue);
38 LayoutUnit valueForLength(const Length&, LayoutUnit maximumValue, bool roundPerc entages = false); 38 LayoutUnit roundedMinimumValueForLength(const Length&, LayoutUnit maximumValue);
39 LayoutUnit valueForLength(const Length&, LayoutUnit maximumValue);
39 40
40 } // namespace WebCore 41 } // namespace WebCore
41 42
42 #endif // CSSLengthFunctions_h 43 #endif // CSSLengthFunctions_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSLengthFunctions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698