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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // We don't update compositing layers, because we need to do a deep update f
rom the compositing ancestor. | 382 // We don't update compositing layers, because we need to do a deep update f
rom the compositing ancestor. |
383 if (!frameView->isInPerformLayout()) { | 383 if (!frameView->isInPerformLayout()) { |
384 // If we're in the middle of layout, we'll just update layers once layou
t has finished. | 384 // If we're in the middle of layout, we'll just update layers once layou
t has finished. |
385 layer()->updateLayerPositionsAfterOverflowScroll(); | 385 layer()->updateLayerPositionsAfterOverflowScroll(); |
386 // Update regions, scrolling may change the clip of a particular region. | 386 // Update regions, scrolling may change the clip of a particular region. |
387 frameView->updateAnnotatedRegions(); | 387 frameView->updateAnnotatedRegions(); |
388 frameView->setNeedsUpdateWidgetPositions(); | 388 frameView->setNeedsUpdateWidgetPositions(); |
389 updateCompositingLayersAfterScroll(); | 389 updateCompositingLayersAfterScroll(); |
390 } | 390 } |
391 | 391 |
392 const LayoutLayerModelObject* paintInvalidationContainer = box().containerFo
rPaintInvalidation(); | 392 const LayoutBoxModelObject* paintInvalidationContainer = box().containerForP
aintInvalidation(); |
393 // The caret rect needs to be invalidated after scrolling | 393 // The caret rect needs to be invalidated after scrolling |
394 frame->selection().setCaretRectNeedsUpdate(); | 394 frame->selection().setCaretRectNeedsUpdate(); |
395 | 395 |
396 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->renderer()->previou
sPaintInvalidationRect()); | 396 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->renderer()->previou
sPaintInvalidationRect()); |
397 | 397 |
398 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad(
quadForFakeMouseMoveEvent); | 398 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad(
quadForFakeMouseMoveEvent); |
399 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM
oveEvent); | 399 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM
oveEvent); |
400 | 400 |
401 bool requiresPaintInvalidation = true; | 401 bool requiresPaintInvalidation = true; |
402 | 402 |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) | 1382 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) |
1383 { | 1383 { |
1384 // We only want to track the topmost scroll child for scrollable areas with | 1384 // We only want to track the topmost scroll child for scrollable areas with |
1385 // overlay scrollbars. | 1385 // overlay scrollbars. |
1386 if (!hasOverlayScrollbars()) | 1386 if (!hasOverlayScrollbars()) |
1387 return; | 1387 return; |
1388 m_nextTopmostScrollChild = scrollChild; | 1388 m_nextTopmostScrollChild = scrollChild; |
1389 } | 1389 } |
1390 | 1390 |
1391 } // namespace blink | 1391 } // namespace blink |
OLD | NEW |