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

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

Issue 23819019: Refactor fixed layout mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 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 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 !!fixedRootBackgroundLayer() 1286 !!fixedRootBackgroundLayer()
1287 ? ScrolledMainFrameWithAcceleratedFixedRootBackground 1287 ? ScrolledMainFrameWithAcceleratedFixedRootBackground
1288 : ScrolledMainFrameWithUnacceleratedFixedRootBackground, 1288 : ScrolledMainFrameWithUnacceleratedFixedRootBackground,
1289 AcceleratedFixedRootBackgroundHistogramMax); 1289 AcceleratedFixedRootBackgroundHistogramMax);
1290 } 1290 }
1291 1291
1292 void RenderLayerCompositor::frameViewDidLayout() 1292 void RenderLayerCompositor::frameViewDidLayout()
1293 { 1293 {
1294 } 1294 }
1295 1295
1296 void RenderLayerCompositor::frameViewScrollbarsExistenceDidChange()
1297 {
1298 if (m_containerLayer)
1299 updateOverflowControlsLayers();
1300 }
1301
1296 void RenderLayerCompositor::rootFixedBackgroundsChanged() 1302 void RenderLayerCompositor::rootFixedBackgroundsChanged()
1297 { 1303 {
1298 if (!supportsFixedRootBackgroundCompositing()) 1304 if (!supportsFixedRootBackgroundCompositing())
1299 return; 1305 return;
1300 1306
1301 // To avoid having to make the fixed root background layer fixed positioned to 1307 // To avoid having to make the fixed root background layer fixed positioned to
1302 // stay put, we position it in the layer tree as follows: 1308 // stay put, we position it in the layer tree as follows:
1303 // 1309 //
1304 // + Overflow controls host 1310 // + Overflow controls host
1305 // + Frame clip 1311 // + Frame clip
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 } else if (graphicsLayer == m_scrollLayer.get()) { 2794 } else if (graphicsLayer == m_scrollLayer.get()) {
2789 name = "Frame Scrolling Layer"; 2795 name = "Frame Scrolling Layer";
2790 } else { 2796 } else {
2791 ASSERT_NOT_REACHED(); 2797 ASSERT_NOT_REACHED();
2792 } 2798 }
2793 2799
2794 return name; 2800 return name;
2795 } 2801 }
2796 2802
2797 } // namespace WebCore 2803 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.h ('k') | Source/core/rendering/RenderLayerScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698