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@gmail.com> | 9 * Christian Biesinger <cbiesinger@gmail.com> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 // Only the root layer can overlap non-composited fixed-position elements. | 387 // Only the root layer can overlap non-composited fixed-position elements. |
388 if (!requiresPaintInvalidation && layer()->isRootLayer() && frameView->hasVi
ewportConstrainedObjects()) { | 388 if (!requiresPaintInvalidation && layer()->isRootLayer() && frameView->hasVi
ewportConstrainedObjects()) { |
389 if (!frameView->invalidateViewportConstrainedObjects()) | 389 if (!frameView->invalidateViewportConstrainedObjects()) |
390 requiresPaintInvalidation = true; | 390 requiresPaintInvalidation = true; |
391 } | 391 } |
392 | 392 |
393 // Just schedule a full paint invalidation of our object. | 393 // Just schedule a full paint invalidation of our object. |
394 // FIXME: This invalidation will be unnecessary in slimming paint phase 2. | 394 // FIXME: This invalidation will be unnecessary in slimming paint phase 2. |
395 if (requiresPaintInvalidation) { | 395 if (requiresPaintInvalidation) { |
396 box().setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants
(); | 396 box().setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants
(); |
397 frameView->setFrameTimingRequestsDirty(true); | |
398 } | 397 } |
399 | 398 |
400 // Schedule the scroll DOM event. | 399 // Schedule the scroll DOM event. |
401 if (box().node()) | 400 if (box().node()) |
402 box().node()->document().enqueueScrollEventForNode(box().node()); | 401 box().node()->document().enqueueScrollEventForNode(box().node()); |
403 | 402 |
404 if (AXObjectCache* cache = box().document().existingAXObjectCache()) | 403 if (AXObjectCache* cache = box().document().existingAXObjectCache()) |
405 cache->handleScrollPositionChanged(&box()); | 404 cache->handleScrollPositionChanged(&box()); |
406 box().view()->clearHitTestCache(); | 405 box().view()->clearHitTestCache(); |
407 | 406 |
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 } | 1605 } |
1607 | 1606 |
1608 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager) | 1607 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager) |
1609 { | 1608 { |
1610 visitor->trace(m_scrollableArea); | 1609 visitor->trace(m_scrollableArea); |
1611 visitor->trace(m_hBar); | 1610 visitor->trace(m_hBar); |
1612 visitor->trace(m_vBar); | 1611 visitor->trace(m_vBar); |
1613 } | 1612 } |
1614 | 1613 |
1615 } // namespace blink | 1614 } // namespace blink |
OLD | NEW |