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

Unified Diff: Source/core/dom/ViewportArguments.h

Issue 22549002: Recompute percentage based @viewport on resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698