| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 // FIXME: This invalidation will be unnecessary in slimming paint phase 2. | 428 // FIXME: This invalidation will be unnecessary in slimming paint phase 2. |
| 429 if (requiresPaintInvalidation) | 429 if (requiresPaintInvalidation) |
| 430 box().setShouldDoFullPaintInvalidation(); | 430 box().setShouldDoFullPaintInvalidation(); |
| 431 | 431 |
| 432 // Schedule the scroll DOM event. | 432 // Schedule the scroll DOM event. |
| 433 if (box().node()) | 433 if (box().node()) |
| 434 box().node()->document().enqueueScrollEventForNode(box().node()); | 434 box().node()->document().enqueueScrollEventForNode(box().node()); |
| 435 | 435 |
| 436 if (AXObjectCache* cache = box().document().existingAXObjectCache()) | 436 if (AXObjectCache* cache = box().document().existingAXObjectCache()) |
| 437 cache->handleScrollPositionChanged(&box()); | 437 cache->handleScrollPositionChanged(&box()); |
| 438 box().view()->clearHitTestCache(); |
| 438 } | 439 } |
| 439 | 440 |
| 440 IntPoint DeprecatedPaintLayerScrollableArea::scrollPosition() const | 441 IntPoint DeprecatedPaintLayerScrollableArea::scrollPosition() const |
| 441 { | 442 { |
| 442 return IntPoint(flooredIntSize(m_scrollOffset)); | 443 return IntPoint(flooredIntSize(m_scrollOffset)); |
| 443 } | 444 } |
| 444 | 445 |
| 445 DoublePoint DeprecatedPaintLayerScrollableArea::scrollPositionDouble() const | 446 DoublePoint DeprecatedPaintLayerScrollableArea::scrollPositionDouble() const |
| 446 { | 447 { |
| 447 return DoublePoint(m_scrollOffset); | 448 return DoublePoint(m_scrollOffset); |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa
yer* scrollChild) | 1399 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa
yer* scrollChild) |
| 1399 { | 1400 { |
| 1400 // We only want to track the topmost scroll child for scrollable areas with | 1401 // We only want to track the topmost scroll child for scrollable areas with |
| 1401 // overlay scrollbars. | 1402 // overlay scrollbars. |
| 1402 if (!hasOverlayScrollbars()) | 1403 if (!hasOverlayScrollbars()) |
| 1403 return; | 1404 return; |
| 1404 m_nextTopmostScrollChild = scrollChild; | 1405 m_nextTopmostScrollChild = scrollChild; |
| 1405 } | 1406 } |
| 1406 | 1407 |
| 1407 } // namespace blink | 1408 } // namespace blink |
| OLD | NEW |