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

Unified Diff: Source/WebKit/chromium/src/WebScrollbarImpl.cpp

Issue 7248010: Merge 89584 - 2011-06-23 John Abd-El-Malek <jam@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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/WebKit/chromium/src/WebScrollbarImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebScrollbarImpl.cpp
===================================================================
--- Source/WebKit/chromium/src/WebScrollbarImpl.cpp (revision 89585)
+++ Source/WebKit/chromium/src/WebScrollbarImpl.cpp (working copy)
@@ -314,4 +314,28 @@
return m_scrollbar->orientation() == VerticalScrollbar ? m_scrollbar.get() : 0;
}
+int WebScrollbarImpl::visibleHeight() const
+{
+ return m_scrollbar->height();
+}
+
+int WebScrollbarImpl::visibleWidth() const
+{
+ return m_scrollbar->width();
+}
+
+IntSize WebScrollbarImpl::contentsSize() const
+{
+ // This isn't technically correct, since we don't have the contentSize. However it's good enough
+ // to make the ScrollAnimator code happy.
+ int thickness = defaultThickness();
+ int length = m_scrollbar->totalSize();
+ return m_scrollbar->orientation() == VerticalScrollbar ? IntSize(thickness, length) : IntSize(length, thickness);
+}
+
+IntSize WebScrollbarImpl::overhangAmount() const
+{
+ return IntSize();
+}
+
} // namespace WebKit
« no previous file with comments | « Source/WebKit/chromium/src/WebScrollbarImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698