Chromium Code Reviews| 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(). |