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

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

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 620
621 bool RenderLayerStackingNode::setNeedsToBeStackingContainer(bool needsToBeStacki ngContainer) 621 bool RenderLayerStackingNode::setNeedsToBeStackingContainer(bool needsToBeStacki ngContainer)
622 { 622 {
623 if (this->needsToBeStackingContainer() == needsToBeStackingContainer) 623 if (this->needsToBeStackingContainer() == needsToBeStackingContainer)
624 return false; 624 return false;
625 625
626 // Count the total number of RenderLayers which need to be stacking 626 // Count the total number of RenderLayers which need to be stacking
627 // containers some point. This should be recorded at most once per 627 // containers some point. This should be recorded at most once per
628 // RenderLayer, so we check m_needsToBeStackingContainerHasBeenRecorded. 628 // RenderLayer, so we check m_needsToBeStackingContainerHasBeenRecorded.
629 if (layer()->acceleratedCompositingForOverflowScrollEnabled() && !m_needsToB eStackingContainerHasBeenRecorded) { 629 if (layer()->acceleratedCompositingForOverflowScrollEnabled() && !m_needsToB eStackingContainerHasBeenRecorded) {
630 WebKit::Platform::current()->histogramEnumeration("Renderer.CompositedSc rolling", RenderLayer::NeedsToBeStackingContainerBucket, RenderLayer::Composited ScrollingHistogramMax); 630 blink::Platform::current()->histogramEnumeration("Renderer.CompositedScr olling", RenderLayer::NeedsToBeStackingContainerBucket, RenderLayer::CompositedS crollingHistogramMax);
631 m_needsToBeStackingContainerHasBeenRecorded = true; 631 m_needsToBeStackingContainerHasBeenRecorded = true;
632 } 632 }
633 633
634 m_needsToBeStackingContainer = needsToBeStackingContainer; 634 m_needsToBeStackingContainer = needsToBeStackingContainer;
635 635
636 return true; 636 return true;
637 } 637 }
638 638
639 RenderLayerStackingNode* RenderLayerStackingNode::ancestorStackingContainerNode( ) const 639 RenderLayerStackingNode* RenderLayerStackingNode::ancestorStackingContainerNode( ) const
640 { 640 {
(...skipping 14 matching lines...) Expand all
655 return ancestor->stackingNode(); 655 return ancestor->stackingNode();
656 return 0; 656 return 0;
657 } 657 }
658 658
659 RenderLayerModelObject* RenderLayerStackingNode::renderer() const 659 RenderLayerModelObject* RenderLayerStackingNode::renderer() const
660 { 660 {
661 return m_layer->renderer(); 661 return m_layer->renderer();
662 } 662 }
663 663
664 } // namespace WebCore 664 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerScrollableArea.cpp ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698