| 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(); | |
| 439 } | 438 } |
| 440 | 439 |
| 441 IntPoint DeprecatedPaintLayerScrollableArea::scrollPosition() const | 440 IntPoint DeprecatedPaintLayerScrollableArea::scrollPosition() const |
| 442 { | 441 { |
| 443 return IntPoint(flooredIntSize(m_scrollOffset)); | 442 return IntPoint(flooredIntSize(m_scrollOffset)); |
| 444 } | 443 } |
| 445 | 444 |
| 446 DoublePoint DeprecatedPaintLayerScrollableArea::scrollPositionDouble() const | 445 DoublePoint DeprecatedPaintLayerScrollableArea::scrollPositionDouble() const |
| 447 { | 446 { |
| 448 return DoublePoint(m_scrollOffset); | 447 return DoublePoint(m_scrollOffset); |
| (...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa
yer* scrollChild) | 1393 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa
yer* scrollChild) |
| 1395 { | 1394 { |
| 1396 // We only want to track the topmost scroll child for scrollable areas with | 1395 // We only want to track the topmost scroll child for scrollable areas with |
| 1397 // overlay scrollbars. | 1396 // overlay scrollbars. |
| 1398 if (!hasOverlayScrollbars()) | 1397 if (!hasOverlayScrollbars()) |
| 1399 return; | 1398 return; |
| 1400 m_nextTopmostScrollChild = scrollChild; | 1399 m_nextTopmostScrollChild = scrollChild; |
| 1401 } | 1400 } |
| 1402 | 1401 |
| 1403 } // namespace blink | 1402 } // namespace blink |
| OLD | NEW |