Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(954)

Side by Side Diff: Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp

Issue 1159113003: [SP] Don't invalidate the whole scrolled tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better solution Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 if (usesCompositedScrolling() || onlyScrolledCompositedLayers) 417 if (usesCompositedScrolling() || onlyScrolledCompositedLayers)
418 requiresPaintInvalidation = false; 418 requiresPaintInvalidation = false;
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 // For slimming paint we need to fully invalidate during scrolling.
428 if (requiresPaintInvalidation && RuntimeEnabledFeatures::slimmingPaintEnable d()) {
chrishtr 2015/06/03 18:46:08 Doesn't the culling code for scrolled content stil
Xianzhu 2015/06/03 19:06:59 Do you mean the 'if (paintInfo.rect.intersects())
429 DisablePaintInvalidationStateAsserts disabler;
430 box().invalidatePaintIncludingNonCompositingDescendants();
431 }
432
433 // 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.
434 if (requiresPaintInvalidation) 429 if (requiresPaintInvalidation)
435 box().setShouldDoFullPaintInvalidation(); 430 box().setShouldDoFullPaintInvalidation();
436 431
437 // Schedule the scroll DOM event. 432 // Schedule the scroll DOM event.
438 if (box().node()) 433 if (box().node())
439 box().node()->document().enqueueScrollEventForNode(box().node()); 434 box().node()->document().enqueueScrollEventForNode(box().node());
440 435
441 if (AXObjectCache* cache = box().document().existingAXObjectCache()) 436 if (AXObjectCache* cache = box().document().existingAXObjectCache())
442 cache->handleScrollPositionChanged(&box()); 437 cache->handleScrollPositionChanged(&box());
443 } 438 }
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa yer* scrollChild) 1398 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa yer* scrollChild)
1404 { 1399 {
1405 // We only want to track the topmost scroll child for scrollable areas with 1400 // We only want to track the topmost scroll child for scrollable areas with
1406 // overlay scrollbars. 1401 // overlay scrollbars.
1407 if (!hasOverlayScrollbars()) 1402 if (!hasOverlayScrollbars())
1408 return; 1403 return;
1409 m_nextTopmostScrollChild = scrollChild; 1404 m_nextTopmostScrollChild = scrollChild;
1410 } 1405 }
1411 1406
1412 } // namespace blink 1407 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698