Chromium Code Reviews| Index: Source/core/dom/ViewportArguments.h |
| diff --git a/Source/core/dom/ViewportArguments.h b/Source/core/dom/ViewportArguments.h |
| index 5afacfede3e71085c323951ee40cadd45abbf0d5..2515baf398e0904d441e383567780bbdc65fab8b 100644 |
| --- a/Source/core/dom/ViewportArguments.h |
| +++ b/Source/core/dom/ViewportArguments.h |
| @@ -29,6 +29,7 @@ |
| #define ViewportArguments_h |
| #include "core/page/PageScaleConstraints.h" |
| +#include "core/platform/Length.h" |
| #include "core/platform/graphics/FloatSize.h" |
| #include "wtf/Forward.h" |
| @@ -72,11 +73,7 @@ struct ViewportArguments { |
| ViewportArguments(Type type = Implicit) |
| : type(type) |
| , width(ValueAuto) |
| - , minWidth(ValueAuto) |
| - , maxWidth(ValueAuto) |
| , height(ValueAuto) |
| - , minHeight(ValueAuto) |
| - , maxHeight(ValueAuto) |
| , zoom(ValueAuto) |
| , minZoom(ValueAuto) |
| , maxZoom(ValueAuto) |
| @@ -90,11 +87,11 @@ struct ViewportArguments { |
| PageScaleConstraints resolve(const FloatSize& initialViewportSize, const FloatSize& deviceSize, int defaultWidth) const; |
| float width; |
|
kenneth.r.christiansen
2013/08/07 08:33:00
Guess it would be nice to get this be to a Length
|
| - float minWidth; |
| - float maxWidth; |
| + Length minWidth; |
| + Length maxWidth; |
| float height; |
| - float minHeight; |
| - float maxHeight; |
| + Length minHeight; |
| + Length maxHeight; |
| float zoom; |
| float minZoom; |
| float maxZoom; |