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

Unified Diff: third_party/WebKit/Source/core/css/CSSToLengthConversionData.h

Issue 1612683002: Reland of Don't change layout size due to top control show/hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSToLengthConversionData.h
diff --git a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.h b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.h
index 8aa700281244c73fc86a82835c91a1a800a571ac..8e6ad9653ec4a383c7a7722a38ad55af7220cebb 100644
--- a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.h
+++ b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.h
@@ -33,6 +33,7 @@
#include "core/CoreExport.h"
#include "core/css/CSSPrimitiveValue.h"
+#include "platform/geometry/DoubleSize.h"
#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include "wtf/MathExtras.h"
@@ -68,15 +69,14 @@
class ViewportSize {
DISALLOW_NEW();
public:
- ViewportSize() : m_width(0), m_height(0) { }
- ViewportSize(double width, double height) : m_width(width), m_height(height) { }
+ ViewportSize() { }
+ ViewportSize(double width, double height) : m_size(width, height) { }
explicit ViewportSize(const LayoutView*);
- double width() const { return m_width; }
- double height() const { return m_height; }
+ double width() const { return m_size.width(); }
+ double height() const { return m_size.height(); }
private:
- double m_width;
- double m_height;
+ DoubleSize m_size;
};
CSSToLengthConversionData() { }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698