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

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

Issue 82083002: Move viewport unit resolution to style recalc time (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rename browser zoom to page zoom 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 | « Source/core/css/CSSGradientValue.cpp ('k') | 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 13 matching lines...) Expand all
24 24
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 int minimumIntValueForLength(const Length&, LayoutUnit maximumValue, RenderView* = 0, bool roundPercentages = false); 34 // FIXME: Move these to platform/LengthFunctions.h
35 int intValueForLength(const Length&, LayoutUnit maximumValue, RenderView* = 0, b ool roundPercentages = false); 35 int minimumIntValueForLength(const Length&, LayoutUnit maximumValue, bool roundP ercentages = false);
36 LayoutUnit minimumValueForLength(const Length&, LayoutUnit maximumValue, RenderV iew* = 0, bool roundPercentages = false); 36 int intValueForLength(const Length&, LayoutUnit maximumValue, bool roundPercenta ges = false);
37 LayoutUnit valueForLength(const Length&, LayoutUnit maximumValue, RenderView* = 0, bool roundPercentages = false); 37 LayoutUnit minimumValueForLength(const Length&, LayoutUnit maximumValue, bool ro undPercentages = false);
38 float floatValueForLength(const Length&, float maximumValue, RenderView*); 38 LayoutUnit valueForLength(const Length&, LayoutUnit maximumValue, bool roundPerc entages = false);
39 39
40 } // namespace WebCore 40 } // namespace WebCore
41 41
42 #endif // CSSLengthFunctions_h 42 #endif // CSSLengthFunctions_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSGradientValue.cpp ('k') | Source/core/css/CSSLengthFunctions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698