Title: [163472] trunk/Source/WebCore
Revision
163472
Author
bfulg...@apple.com
Date
2014-02-05 13:29:47 -0800 (Wed, 05 Feb 2014)

Log Message

[Mac] Correct copy/paste error in scrolling code.
https://bugs.webkit.org/show_bug.cgi?id=128258

Reviewed by Anders Carlsson.

* page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
(WebCore::ScrollingTreeScrollingNodeMac::pinnedInDirection): Use
'setWidth' when dealing with width metrics.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (163471 => 163472)


--- trunk/Source/WebCore/ChangeLog	2014-02-05 21:27:13 UTC (rev 163471)
+++ trunk/Source/WebCore/ChangeLog	2014-02-05 21:29:47 UTC (rev 163472)
@@ -1,3 +1,14 @@
+2014-02-05  Brent Fulgham  <bfulg...@apple.com>
+
+        [Mac] Correct copy/paste error in scrolling code.
+        https://bugs.webkit.org/show_bug.cgi?id=128258
+
+        Reviewed by Anders Carlsson.
+
+        * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
+        (WebCore::ScrollingTreeScrollingNodeMac::pinnedInDirection): Use
+        'setWidth' when dealing with width metrics.
+
 2014-02-05  Yuki Sekiguchi  <yuki.sekigu...@access-company.com>
 
         Ruby base oddly justify its text when the text is ideograph and it contains <br> on Mac.

Modified: trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm (163471 => 163472)


--- trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm	2014-02-05 21:27:13 UTC (rev 163471)
+++ trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm	2014-02-05 21:29:47 UTC (rev 163472)
@@ -207,10 +207,10 @@
     } else if (delta.width()) {
         if (delta.width() < 0) {
             // We are trying to scroll left.  Make sure we are not pinned to the left
-            limitDelta.setHeight(scrollPosition().x() - minimumScrollPosition().x());
+            limitDelta.setWidth(scrollPosition().x() - minimumScrollPosition().x());
         } else {
             // We are trying to scroll right.  Make sure we are not pinned to the right
-            limitDelta.setHeight(maximumScrollPosition().x() - scrollPosition().x());
+            limitDelta.setWidth(maximumScrollPosition().x() - scrollPosition().x());
         }
     }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to