[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198
andersca at apple.com
andersca at apple.com
Mon Feb 21 00:39:49 UTC 2011
The following commit has been merged in the webkit-1.3 branch:
commit d33e4675a34c806960e034441bf44f2f1a89fbec
Author: andersca at apple.com <andersca at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Feb 2 21:01:34 2011 +0000
Fix build.
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::pinnedInDirection):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 8d3bad6..c21e5ba 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,10 @@
+2011-02-02 Anders Carlsson <andersca at apple.com>
+
+ Fix build.
+
+ * platform/mac/ScrollAnimatorMac.mm:
+ (WebCore::ScrollAnimatorMac::pinnedInDirection):
+
2011-02-02 David Hyatt <hyatt at apple.com>
Reviewed by Dan Bernstein.
diff --git a/Source/WebCore/platform/mac/ScrollAnimatorMac.mm b/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
index b16f761..cd37cbc 100644
--- a/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
+++ b/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
@@ -615,7 +615,7 @@ bool ScrollAnimatorMac::pinnedInDirection(float deltaX, float deltaY)
limitDelta.setHeight(m_scrollableArea->visibleContentRect().y());
} else {
// We are trying to scroll down. Make sure we are not pinned to the bottom
- limitDelta.setHeight(m_scrollableArea->contentsSize().height() - m_scrollableArea->visibleContentRect().bottom());
+ limitDelta.setHeight(m_scrollableArea->contentsSize().height() - m_scrollableArea->visibleContentRect().maxY());
}
} else if (deltaX != 0) {
if (deltaX < 0) {
@@ -623,7 +623,7 @@ bool ScrollAnimatorMac::pinnedInDirection(float deltaX, float deltaY)
limitDelta.setWidth(m_scrollableArea->visibleContentRect().x());
} else {
// We are trying to scroll right. Make sure we are not pinned to the right
- limitDelta.setWidth(m_scrollableArea->contentsSize().width() - m_scrollableArea->visibleContentRect().right());
+ limitDelta.setWidth(m_scrollableArea->contentsSize().width() - m_scrollableArea->visibleContentRect().maxX());
}
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list