| 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |