| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM
oveEvent); | 392 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM
oveEvent); |
| 393 | 393 |
| 394 bool requiresRepaint = true; | 394 bool requiresRepaint = true; |
| 395 | 395 |
| 396 if (box().view()->compositor()->inCompositingMode()) { | 396 if (box().view()->compositor()->inCompositingMode()) { |
| 397 // Hits in virtual/gpu/fast/canvas/canvas-scroll-path-into-view.html. | 397 // Hits in virtual/gpu/fast/canvas/canvas-scroll-path-into-view.html. |
| 398 DisableCompositingQueryAsserts disabler; | 398 DisableCompositingQueryAsserts disabler; |
| 399 bool onlyScrolledCompositedLayers = scrollsOverflow() | 399 bool onlyScrolledCompositedLayers = scrollsOverflow() |
| 400 && !layer()->hasVisibleNonLayerContent() | 400 && !layer()->hasVisibleNonLayerContent() |
| 401 && !layer()->hasNonCompositedChild() | 401 && !layer()->hasNonCompositedChild() |
| 402 && !layer()->hasBlockSelectionGapBounds() | 402 && layer()->hasBlockSelectionGapBounds() == RenderLayer::LayerDoesNo
tHaveBlockSelectionGaps |
| 403 && !box().isMarquee(); | 403 && !box().isMarquee(); |
| 404 | 404 |
| 405 if (usesCompositedScrolling() || onlyScrolledCompositedLayers) | 405 if (usesCompositedScrolling() || onlyScrolledCompositedLayers) |
| 406 requiresRepaint = false; | 406 requiresRepaint = false; |
| 407 } | 407 } |
| 408 | 408 |
| 409 // Just schedule a full repaint of our object. | 409 // Just schedule a full repaint of our object. |
| 410 if (requiresRepaint) { | 410 if (requiresRepaint) { |
| 411 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) { | 411 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) { |
| 412 if (box().frameView()->isInPerformLayout()) | 412 if (box().frameView()->isInPerformLayout()) |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 DisableCompositingQueryAsserts disabler; | 1490 DisableCompositingQueryAsserts disabler; |
| 1491 return box().hasCompositedLayerMapping() && box().compositedLayerMapping()->
scrollingLayer(); | 1491 return box().hasCompositedLayerMapping() && box().compositedLayerMapping()->
scrollingLayer(); |
| 1492 } | 1492 } |
| 1493 | 1493 |
| 1494 bool RenderLayerScrollableArea::needsCompositedScrolling() const | 1494 bool RenderLayerScrollableArea::needsCompositedScrolling() const |
| 1495 { | 1495 { |
| 1496 return scrollsOverflow() && box().view()->compositor()->acceleratedCompositi
ngForOverflowScrollEnabled(); | 1496 return scrollsOverflow() && box().view()->compositor()->acceleratedCompositi
ngForOverflowScrollEnabled(); |
| 1497 } | 1497 } |
| 1498 | 1498 |
| 1499 } // Namespace WebCore | 1499 } // Namespace WebCore |
| OLD | NEW |