| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 if (usesCompositedScrolling() || onlyScrolledCompositedLayers) | 401 if (usesCompositedScrolling() || onlyScrolledCompositedLayers) |
| 402 requiresRepaint = false; | 402 requiresRepaint = false; |
| 403 } | 403 } |
| 404 | 404 |
| 405 // Just schedule a full repaint of our object. | 405 // Just schedule a full repaint of our object. |
| 406 if (requiresRepaint) { | 406 if (requiresRepaint) { |
| 407 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) { | 407 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) { |
| 408 if (m_box->frameView()->isInPerformLayout()) | 408 if (m_box->frameView()->isInPerformLayout()) |
| 409 m_box->setShouldDoFullRepaintAfterLayout(true); | 409 m_box->setShouldDoFullRepaintAfterLayout(true); |
| 410 else | 410 else |
| 411 m_box->repaintUsingContainer(repaintContainer, pixelSnappedIntRe
ct(layer()->renderer()->newRepaintRect())); | 411 m_box->repaintUsingContainer(repaintContainer, pixelSnappedIntRe
ct(layer()->renderer()->newRepaintRect()), InvalidationScroll); |
| 412 } else { | 412 } else { |
| 413 m_box->repaintUsingContainer(repaintContainer, pixelSnappedIntRect(l
ayer()->repainter().repaintRect())); | 413 m_box->repaintUsingContainer(repaintContainer, pixelSnappedIntRect(l
ayer()->repainter().repaintRect()), InvalidationScroll); |
| 414 } | 414 } |
| 415 } | 415 } |
| 416 | 416 |
| 417 // Schedule the scroll DOM event. | 417 // Schedule the scroll DOM event. |
| 418 if (m_box->node()) | 418 if (m_box->node()) |
| 419 m_box->node()->document().enqueueScrollEventForNode(m_box->node()); | 419 m_box->node()->document().enqueueScrollEventForNode(m_box->node()); |
| 420 | 420 |
| 421 if (AXObjectCache* cache = m_box->document().existingAXObjectCache()) | 421 if (AXObjectCache* cache = m_box->document().existingAXObjectCache()) |
| 422 cache->handleScrollPositionChanged(m_box); | 422 cache->handleScrollPositionChanged(m_box); |
| 423 | 423 |
| (...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1545 void RenderLayerScrollableArea::setForceNeedsCompositedScrolling(ForceNeedsCompo
sitedScrollingMode mode) | 1545 void RenderLayerScrollableArea::setForceNeedsCompositedScrolling(ForceNeedsCompo
sitedScrollingMode mode) |
| 1546 { | 1546 { |
| 1547 if (m_forceNeedsCompositedScrolling == mode) | 1547 if (m_forceNeedsCompositedScrolling == mode) |
| 1548 return; | 1548 return; |
| 1549 | 1549 |
| 1550 m_forceNeedsCompositedScrolling = mode; | 1550 m_forceNeedsCompositedScrolling = mode; |
| 1551 layer()->didUpdateNeedsCompositedScrolling(); | 1551 layer()->didUpdateNeedsCompositedScrolling(); |
| 1552 } | 1552 } |
| 1553 | 1553 |
| 1554 } // Namespace WebCore | 1554 } // Namespace WebCore |
| OLD | NEW |