| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 | 550 |
| 551 // Invalidate the overhang areas if they are visible. | 551 // Invalidate the overhang areas if they are visible. |
| 552 updateOverhangAreas(); | 552 updateOverhangAreas(); |
| 553 | 553 |
| 554 // This call will move children with native widgets (plugins) and invalidate
them as well. | 554 // This call will move children with native widgets (plugins) and invalidate
them as well. |
| 555 frameRectsChanged(); | 555 frameRectsChanged(); |
| 556 } | 556 } |
| 557 | 557 |
| 558 bool ScrollView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect) | 558 bool ScrollView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect) |
| 559 { | 559 { |
| 560 hostWindow()->scroll(scrollDelta, rectToScroll, clipRect); | 560 hostWindow()->scroll(clipRect); |
| 561 return true; | 561 return true; |
| 562 } | 562 } |
| 563 | 563 |
| 564 void ScrollView::scrollContentsSlowPath(const IntRect& updateRect) | 564 void ScrollView::scrollContentsSlowPath(const IntRect& updateRect) |
| 565 { | 565 { |
| 566 hostWindow()->invalidateContentsForSlowScroll(updateRect); | 566 hostWindow()->invalidateContentsForSlowScroll(updateRect); |
| 567 } | 567 } |
| 568 | 568 |
| 569 IntPoint ScrollView::rootViewToContents(const IntPoint& rootViewPoint) const | 569 IntPoint ScrollView::rootViewToContents(const IntPoint& rootViewPoint) const |
| 570 { | 570 { |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 return; | 1117 return; |
| 1118 | 1118 |
| 1119 ScrollableArea::setScrollOrigin(origin); | 1119 ScrollableArea::setScrollOrigin(origin); |
| 1120 | 1120 |
| 1121 // Update if the scroll origin changes, since our position will be different
if the content size did not change. | 1121 // Update if the scroll origin changes, since our position will be different
if the content size did not change. |
| 1122 if (updatePositionAtAll && updatePositionSynchronously) | 1122 if (updatePositionAtAll && updatePositionSynchronously) |
| 1123 updateScrollbars(scrollOffset()); | 1123 updateScrollbars(scrollOffset()); |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 } // namespace WebCore | 1126 } // namespace WebCore |
| OLD | NEW |