OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 bottomLayer = layer; | 1129 bottomLayer = layer; |
1130 } | 1130 } |
1131 }; | 1131 }; |
1132 | 1132 |
1133 updateBottomLayer(m_childTransformLayer.get()); | 1133 updateBottomLayer(m_childTransformLayer.get()); |
1134 updateBottomLayer(m_childContainmentLayer.get()); | 1134 updateBottomLayer(m_childContainmentLayer.get()); |
1135 updateBottomLayer(m_scrollingLayer.get()); | 1135 updateBottomLayer(m_scrollingLayer.get()); |
1136 | 1136 |
1137 // Now constructing the subtree for the overflow controls. | 1137 // Now constructing the subtree for the overflow controls. |
1138 bottomLayer = m_graphicsLayer.get(); | 1138 bottomLayer = m_graphicsLayer.get(); |
1139 if (m_isMainFrameLayoutViewLayer) | 1139 // TODO(pdr): Ensure painting uses the correct GraphicsLayer when root layer
scrolls is enabled. |
| 1140 // crbug.com/638719 |
| 1141 if (m_isMainFrameLayoutViewLayer && !RuntimeEnabledFeatures::slimmingPaintV2
Enabled()) |
1140 bottomLayer = layoutObject()->frame()->page()->frameHost().visualViewpor
t().containerLayer(); | 1142 bottomLayer = layoutObject()->frame()->page()->frameHost().visualViewpor
t().containerLayer(); |
1141 updateBottomLayer(m_overflowControlsAncestorClippingLayer.get()); | 1143 updateBottomLayer(m_overflowControlsAncestorClippingLayer.get()); |
1142 updateBottomLayer(m_overflowControlsHostLayer.get()); | 1144 updateBottomLayer(m_overflowControlsHostLayer.get()); |
1143 if (m_layerForHorizontalScrollbar) | 1145 if (m_layerForHorizontalScrollbar) |
1144 m_overflowControlsHostLayer->addChild(m_layerForHorizontalScrollbar.get(
)); | 1146 m_overflowControlsHostLayer->addChild(m_layerForHorizontalScrollbar.get(
)); |
1145 if (m_layerForVerticalScrollbar) | 1147 if (m_layerForVerticalScrollbar) |
1146 m_overflowControlsHostLayer->addChild(m_layerForVerticalScrollbar.get())
; | 1148 m_overflowControlsHostLayer->addChild(m_layerForVerticalScrollbar.get())
; |
1147 if (m_layerForScrollCorner) | 1149 if (m_layerForScrollCorner) |
1148 m_overflowControlsHostLayer->addChild(m_layerForScrollCorner.get()); | 1150 m_overflowControlsHostLayer->addChild(m_layerForScrollCorner.get()); |
1149 | 1151 |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2691 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 2693 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
2692 name = "Scrolling Contents Layer"; | 2694 name = "Scrolling Contents Layer"; |
2693 } else { | 2695 } else { |
2694 ASSERT_NOT_REACHED(); | 2696 ASSERT_NOT_REACHED(); |
2695 } | 2697 } |
2696 | 2698 |
2697 return name; | 2699 return name; |
2698 } | 2700 } |
2699 | 2701 |
2700 } // namespace blink | 2702 } // namespace blink |
OLD | NEW |