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

Side by Side Diff: Source/core/dom/ViewportDescription.h

Issue 219123002: Read the default min-width value from the UA style sheets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/dom/Document.cpp ('k') | Source/core/dom/ViewportDescription.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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 , zoom(ValueAuto) 63 , zoom(ValueAuto)
64 , minZoom(ValueAuto) 64 , minZoom(ValueAuto)
65 , maxZoom(ValueAuto) 65 , maxZoom(ValueAuto)
66 , userZoom(ValueAuto) 66 , userZoom(ValueAuto)
67 , orientation(ValueAuto) 67 , orientation(ValueAuto)
68 , deprecatedTargetDensityDPI(ValueAuto) 68 , deprecatedTargetDensityDPI(ValueAuto)
69 { 69 {
70 } 70 }
71 71
72 // All arguments are in CSS units. 72 // All arguments are in CSS units.
73 PageScaleConstraints resolve(const FloatSize& initialViewportSize) const; 73 PageScaleConstraints resolve(const FloatSize& initialViewportSize, Length le gacyFallbackWidth) const;
74 74
75 Length minWidth; 75 Length minWidth;
76 Length maxWidth; 76 Length maxWidth;
77 Length minHeight; 77 Length minHeight;
78 Length maxHeight; 78 Length maxHeight;
79 float zoom; 79 float zoom;
80 float minZoom; 80 float minZoom;
81 float maxZoom; 81 float maxZoom;
82 float userZoom; 82 float userZoom;
83 float orientation; 83 float orientation;
(...skipping 25 matching lines...) Expand all
109 bool isSpecifiedByAuthor() const { return type != UserAgentStyleSheet; } 109 bool isSpecifiedByAuthor() const { return type != UserAgentStyleSheet; }
110 110
111 private: 111 private:
112 enum Direction { Horizontal, Vertical }; 112 enum Direction { Horizontal, Vertical };
113 static float resolveViewportLength(const Length&, const FloatSize& initialVi ewportSize, Direction); 113 static float resolveViewportLength(const Length&, const FloatSize& initialVi ewportSize, Direction);
114 }; 114 };
115 115
116 } // namespace WebCore 116 } // namespace WebCore
117 117
118 #endif // ViewportDescription_h 118 #endif // ViewportDescription_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/ViewportDescription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698