summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp b/Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp
index d8c440b90..1e431b9a3 100644
--- a/Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp
+++ b/Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp
@@ -204,7 +204,7 @@ int ScrollbarThemeQStyle::trackPosition(ScrollbarThemeClient* scrollbar)
{
QStyleFacadeOption opt = initSliderStyleOption(scrollbar);
QRect track = m_qStyle->scrollBarSubControlRect(opt, QStyleFacade::SC_ScrollBarGroove);
- return scrollbar->orientation() == HorizontalScrollbar ? track.x() - scrollbar->x() : track.y() - scrollbar->y();
+ return scrollbar->orientation() == HorizontalScrollbar ? track.x() : track.y();
}
int ScrollbarThemeQStyle::trackLength(ScrollbarThemeClient* scrollbar)