| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 419 } |
| 420 | 420 |
| 421 // Only the root layer can overlap non-composited fixed-position elements. | 421 // Only the root layer can overlap non-composited fixed-position elements. |
| 422 if (!requiresPaintInvalidation && layer()->isRootLayer() && frameView->hasVi
ewportConstrainedObjects()) { | 422 if (!requiresPaintInvalidation && layer()->isRootLayer() && frameView->hasVi
ewportConstrainedObjects()) { |
| 423 if (!frameView->invalidateViewportConstrainedObjects()) | 423 if (!frameView->invalidateViewportConstrainedObjects()) |
| 424 requiresPaintInvalidation = true; | 424 requiresPaintInvalidation = true; |
| 425 } | 425 } |
| 426 | 426 |
| 427 // Just schedule a full paint invalidation of our object. | 427 // Just schedule a full paint invalidation of our object. |
| 428 // FIXME: This invalidation will be unnecessary in slimming paint phase 2. | 428 // FIXME: This invalidation will be unnecessary in slimming paint phase 2. |
| 429 if (requiresPaintInvalidation) | 429 if (requiresPaintInvalidation) { |
| 430 box().setShouldDoFullPaintInvalidation(); | 430 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) |
| 431 box().setShouldDoFullPaintInvalidationIncludingNonCompositingDescend
ants(); |
| 432 else |
| 433 box().setShouldDoFullPaintInvalidation(); |
| 434 } |
| 431 | 435 |
| 432 // Schedule the scroll DOM event. | 436 // Schedule the scroll DOM event. |
| 433 if (box().node()) | 437 if (box().node()) |
| 434 box().node()->document().enqueueScrollEventForNode(box().node()); | 438 box().node()->document().enqueueScrollEventForNode(box().node()); |
| 435 | 439 |
| 436 if (AXObjectCache* cache = box().document().existingAXObjectCache()) | 440 if (AXObjectCache* cache = box().document().existingAXObjectCache()) |
| 437 cache->handleScrollPositionChanged(&box()); | 441 cache->handleScrollPositionChanged(&box()); |
| 438 box().view()->clearHitTestCache(); | 442 box().view()->clearHitTestCache(); |
| 439 } | 443 } |
| 440 | 444 |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa
yer* scrollChild) | 1395 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa
yer* scrollChild) |
| 1392 { | 1396 { |
| 1393 // We only want to track the topmost scroll child for scrollable areas with | 1397 // We only want to track the topmost scroll child for scrollable areas with |
| 1394 // overlay scrollbars. | 1398 // overlay scrollbars. |
| 1395 if (!hasOverlayScrollbars()) | 1399 if (!hasOverlayScrollbars()) |
| 1396 return; | 1400 return; |
| 1397 m_nextTopmostScrollChild = scrollChild; | 1401 m_nextTopmostScrollChild = scrollChild; |
| 1398 } | 1402 } |
| 1399 | 1403 |
| 1400 } // namespace blink | 1404 } // namespace blink |
| OLD | NEW |