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

Unified Diff: Source/core/platform/ScrollView.h

Issue 14659008: Include scrollbar size in @media width/height (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | « Source/core/css/MediaQueryEvaluator.cpp ('k') | Source/core/platform/ScrollView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/ScrollView.h
diff --git a/Source/core/platform/ScrollView.h b/Source/core/platform/ScrollView.h
index b8f97a38e32c714fb500c26de4bb8173bb321d14..1964dd3ef2235ffae9e9aa5276d8157836f2d799 100644
--- a/Source/core/platform/ScrollView.h
+++ b/Source/core/platform/ScrollView.h
@@ -146,7 +146,12 @@ public:
void setFixedLayoutSize(const IntSize&);
bool useFixedLayout() const;
void setUseFixedLayout(bool enable);
-
+
+ // Similar to layoutSize functions, but don't exclude the scrollbars. For CSS @media width/height MQ rules.
+ IntSize mediaSize() const;
jamesr 2013/05/06 22:52:03 is this the same as calling visibleContentRect(Inc
Xianzhu 2013/05/06 22:55:44 They are the same for non-fixed-layout mode. For f
jamesr 2013/05/06 23:38:49 Can we instead give layoutSize() the Includes/Excl
+ int mediaWidth() const { return mediaSize().width(); }
+ int mediaHeight() const { return mediaSize().height(); }
+
// Functions for getting/setting the size of the document contained inside the ScrollView (as an IntSize or as individual width and height
// values).
virtual IntSize contentsSize() const OVERRIDE; // Always at least as big as the visibleWidth()/visibleHeight().
« no previous file with comments | « Source/core/css/MediaQueryEvaluator.cpp ('k') | Source/core/platform/ScrollView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698