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

Unified Diff: WebCore/platform/win/PopupMenuWin.cpp

Issue 3364013: Merge 67001 - 2010-09-08 Peter Kasting <pkasting@google.com>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 | « WebCore/platform/win/PopupMenuWin.h ('k') | WebCore/rendering/RenderDataGrid.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/platform/win/PopupMenuWin.cpp
===================================================================
--- WebCore/platform/win/PopupMenuWin.cpp (revision 67003)
+++ WebCore/platform/win/PopupMenuWin.cpp (working copy)
@@ -664,6 +664,17 @@
::ReleaseDC(m_popup, localDC);
}
+int PopupMenuWin::scrollSize(ScrollbarOrientation orientation) const
+{
+ return ((orientation == VerticallScrollbar) && m_scrollbar) ? (m_scrollbar->totalSize() - m_scrollbar->visibleSize()) : 0;
+}
+
+void PopupMenuWin::setScrollOffsetFromAnimation(const IntPoint& offset)
+{
+ if (m_scrollbar)
+ m_scrollbar->setValue(offset.y(), Scrollbar::FromScrollAnimator);
+}
+
void PopupMenuWin::valueChanged(Scrollbar* scrollBar)
{
ASSERT(m_scrollbar);
« no previous file with comments | « WebCore/platform/win/PopupMenuWin.h ('k') | WebCore/rendering/RenderDataGrid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698