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

Side by Side Diff: Source/core/rendering/RenderLayerScrollableArea.cpp

Issue 208143003: Issue trace events to gather repaint information. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
« no previous file with comments | « Source/core/rendering/RenderLayerRepainter.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerRepainter.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698