[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
morrita at google.com
morrita at google.com
Wed Dec 22 11:25:49 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 7e295efd07ee342e6fa55165c494e05944345ad6
Author: morrita at google.com <morrita at google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Jul 23 02:36:02 2010 +0000
2010-07-22 MORITA Hajime <morrita at google.com>
Reviewed by Ojan Vafai.
Autoscroll on selection should take scrollbars into account as outside of the content.
https://bugs.webkit.org/show_bug.cgi?id=40403
ScrollView's scroll-bar was considered as a part of content rect,
that prevents autoscroll to happen when the pointer is over the
scroll-bar. This change excluded scroll-bar region from scrolling
delta calculation.
Test: WebCore/manual-tests/autoscroll-over-scrollbar.html
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollRectToVisible):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 12690e9..22c102d 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,20 @@
+2010-07-22 MORITA Hajime <morrita at google.com>
+
+ Reviewed by Ojan Vafai.
+
+ Autoscroll on selection should take scrollbars into account as outside of the content.
+ https://bugs.webkit.org/show_bug.cgi?id=40403
+
+ ScrollView's scroll-bar was considered as a part of content rect,
+ that prevents autoscroll to happen when the pointer is over the
+ scroll-bar. This change excluded scroll-bar region from scrolling
+ delta calculation.
+
+ Test: WebCore/manual-tests/autoscroll-over-scrollbar.html
+
+ * rendering/RenderLayer.cpp:
+ (WebCore::RenderLayer::scrollRectToVisible):
+
2010-07-22 Kent Tamura <tkent at chromium.org>
Reviewed by Darin Adler.
diff --git a/WebCore/manual-tests/autoscroll-over-scrollbar.html b/WebCore/manual-tests/autoscroll-over-scrollbar.html
new file mode 100644
index 0000000..2330ed1
--- /dev/null
+++ b/WebCore/manual-tests/autoscroll-over-scrollbar.html
@@ -0,0 +1,8 @@
+<html>
+ <body>
+ <h1><a href="https://bugs.webkit.org/show_bug.cgi?id=40403">Bug 40403</a></h1>
+ <p>Click down somewhere in this text, then move the pointer over the scrollbar at the bottom of the window, stop there, holding the mouse button down.</p>
+ <div style="height:3000px; width:3000px;"></div>
+ <p>If the bug occurs, then this text won't be selected until you move the mouse slightly. If the bug does not occur, this text should be selected.</p>
+ </body>
+</html>
diff --git a/WebCore/rendering/RenderLayer.cpp b/WebCore/rendering/RenderLayer.cpp
index d6f5e8e..d40a6f8 100644
--- a/WebCore/rendering/RenderLayer.cpp
+++ b/WebCore/rendering/RenderLayer.cpp
@@ -1437,7 +1437,7 @@ void RenderLayer::scrollRectToVisible(const IntRect& rect, bool scrollToAnchor,
newRect.setX(rect.x() - frameView->scrollX() + frameView->x());
newRect.setY(rect.y() - frameView->scrollY() + frameView->y());
} else {
- IntRect viewRect = frameView->visibleContentRect(true);
+ IntRect viewRect = frameView->visibleContentRect();
IntRect r = getRectToExpose(viewRect, rect, alignX, alignY);
frameView->setScrollPosition(r.location());
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list