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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2730573003: Moved FrameHost::m_visualViewport to Page (Closed)
Patch Set: Fixed some compile errors on mac and android Created 3 years, 9 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
OLDNEW
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 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 1583
1584 updateBottomLayer(m_childTransformLayer.get()); 1584 updateBottomLayer(m_childTransformLayer.get());
1585 updateBottomLayer(m_childContainmentLayer.get()); 1585 updateBottomLayer(m_childContainmentLayer.get());
1586 updateBottomLayer(m_scrollingLayer.get()); 1586 updateBottomLayer(m_scrollingLayer.get());
1587 1587
1588 // Now constructing the subtree for the overflow controls. 1588 // Now constructing the subtree for the overflow controls.
1589 bottomLayer = m_graphicsLayer.get(); 1589 bottomLayer = m_graphicsLayer.get();
1590 // TODO(pdr): Ensure painting uses the correct GraphicsLayer when root layer 1590 // TODO(pdr): Ensure painting uses the correct GraphicsLayer when root layer
1591 // scrolls is enabled. crbug.com/638719 1591 // scrolls is enabled. crbug.com/638719
1592 if (m_isMainFrameLayoutViewLayer && 1592 if (m_isMainFrameLayoutViewLayer &&
1593 !RuntimeEnabledFeatures::slimmingPaintV2Enabled()) 1593 !RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
1594 bottomLayer = layoutObject() 1594 bottomLayer =
1595 .frame() 1595 layoutObject().frame()->page()->visualViewport().containerLayer();
1596 ->page() 1596 }
1597 ->frameHost()
1598 .visualViewport()
1599 .containerLayer();
1600 updateBottomLayer(m_overflowControlsAncestorClippingLayer.get()); 1597 updateBottomLayer(m_overflowControlsAncestorClippingLayer.get());
1601 updateBottomLayer(m_overflowControlsHostLayer.get()); 1598 updateBottomLayer(m_overflowControlsHostLayer.get());
1602 if (m_layerForHorizontalScrollbar) 1599 if (m_layerForHorizontalScrollbar)
1603 m_overflowControlsHostLayer->addChild(m_layerForHorizontalScrollbar.get()); 1600 m_overflowControlsHostLayer->addChild(m_layerForHorizontalScrollbar.get());
1604 if (m_layerForVerticalScrollbar) 1601 if (m_layerForVerticalScrollbar)
1605 m_overflowControlsHostLayer->addChild(m_layerForVerticalScrollbar.get()); 1602 m_overflowControlsHostLayer->addChild(m_layerForVerticalScrollbar.get());
1606 if (m_layerForScrollCorner) 1603 if (m_layerForScrollCorner)
1607 m_overflowControlsHostLayer->addChild(m_layerForScrollCorner.get()); 1604 m_overflowControlsHostLayer->addChild(m_layerForScrollCorner.get());
1608 1605
1609 // Now add the DecorationOutlineLayer as a subtree to GraphicsLayer 1606 // Now add the DecorationOutlineLayer as a subtree to GraphicsLayer
(...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after
3512 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { 3509 } else if (graphicsLayer == m_decorationOutlineLayer.get()) {
3513 name = "Decoration Layer"; 3510 name = "Decoration Layer";
3514 } else { 3511 } else {
3515 ASSERT_NOT_REACHED(); 3512 ASSERT_NOT_REACHED();
3516 } 3513 }
3517 3514
3518 return name; 3515 return name;
3519 } 3516 }
3520 3517
3521 } // namespace blink 3518 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698