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

Unified Diff: WebKit/win/WebScrollBar.cpp

Issue 3357018: Merge 67018 - Not reviewed, build fix.... (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 | « WebKit/win/WebScrollBar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebKit/win/WebScrollBar.cpp
===================================================================
--- WebKit/win/WebScrollBar.cpp (revision 67018)
+++ WebKit/win/WebScrollBar.cpp (working copy)
@@ -143,7 +143,7 @@
HRESULT STDMETHODCALLTYPE WebScrollBar::setValue(
/* [in] */ int value)
{
- m_scrollBar->setValue(value);
+ m_scrollBar->setValue(value, Scrollbar::NotFromScrollAnimator);
return S_OK;
}
@@ -252,6 +252,16 @@
}
// ScrollbarClient -------------------------------------------------------
+int WebScrollBar::scrollSize(ScrollbarOrientation orientation) const
+{
+ return (orientation == m_scrollBar->orientation()) ? (m_scrollbar->totalSize() - m_scrollbar->visibleSize()) : 0;
+}
+
+void WebScrollBar::setScrollOffsetFromAnimation(const IntPoint&)
+{
+ m_scrollbar->setValue((m_scrollBar->orientation() == HorizontalScrollbar) ? offset.x() : offset.y(), Scrollbar::FromScrollAnimator);
+}
+
void WebScrollBar::valueChanged(Scrollbar* scrollBar)
{
if (m_scrollBar != scrollBar) {
« no previous file with comments | « WebKit/win/WebScrollBar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698