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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 394 |
395 if (usesCompositedScrolling() || onlyScrolledCompositedLayers) | 395 if (usesCompositedScrolling() || onlyScrolledCompositedLayers) |
396 requiresRepaint = false; | 396 requiresRepaint = false; |
397 } | 397 } |
398 | 398 |
399 // Just schedule a full repaint of our object. | 399 // Just schedule a full repaint of our object. |
400 if (requiresRepaint) { | 400 if (requiresRepaint) { |
401 if (box().frameView()->isInPerformLayout()) | 401 if (box().frameView()->isInPerformLayout()) |
402 box().setShouldDoFullPaintInvalidationAfterLayout(true); | 402 box().setShouldDoFullPaintInvalidationAfterLayout(true); |
403 else | 403 else |
404 box().invalidatePaintUsingContainer(repaintContainer, pixelSnappedIn
tRect(layer()->renderer()->previousPaintInvalidationRect()), InvalidationScroll)
; | 404 box().invalidatePaintUsingContainer(repaintContainer, layer()->rende
rer()->previousPaintInvalidationRect(), InvalidationScroll); |
405 } | 405 } |
406 | 406 |
407 // Schedule the scroll DOM event. | 407 // Schedule the scroll DOM event. |
408 if (box().node()) | 408 if (box().node()) |
409 box().node()->document().enqueueScrollEventForNode(box().node()); | 409 box().node()->document().enqueueScrollEventForNode(box().node()); |
410 | 410 |
411 if (AXObjectCache* cache = box().document().existingAXObjectCache()) | 411 if (AXObjectCache* cache = box().document().existingAXObjectCache()) |
412 cache->handleScrollPositionChanged(&box()); | 412 cache->handleScrollPositionChanged(&box()); |
413 | 413 |
414 InspectorInstrumentation::didScrollLayer(&box()); | 414 InspectorInstrumentation::didScrollLayer(&box()); |
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 DisableCompositingQueryAsserts disabler; | 1439 DisableCompositingQueryAsserts disabler; |
1440 return layer()->hasCompositedLayerMapping() && layer()->compositedLayerMappi
ng()->scrollingLayer(); | 1440 return layer()->hasCompositedLayerMapping() && layer()->compositedLayerMappi
ng()->scrollingLayer(); |
1441 } | 1441 } |
1442 | 1442 |
1443 bool RenderLayerScrollableArea::needsCompositedScrolling() const | 1443 bool RenderLayerScrollableArea::needsCompositedScrolling() const |
1444 { | 1444 { |
1445 return scrollsOverflow() && box().view()->compositor()->acceleratedCompositi
ngForOverflowScrollEnabled(); | 1445 return scrollsOverflow() && box().view()->compositor()->acceleratedCompositi
ngForOverflowScrollEnabled(); |
1446 } | 1446 } |
1447 | 1447 |
1448 } // Namespace WebCore | 1448 } // Namespace WebCore |
OLD | NEW |