OLD | NEW |
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 // position to handle whatever the scroll coordinator isn't handling. | 391 // position to handle whatever the scroll coordinator isn't handling. |
392 // The minimum scroll position is non-zero for RTL pages with overflow. | 392 // The minimum scroll position is non-zero for RTL pages with overflow. |
393 m_scrollLayer->setPosition(-scrollPosition); | 393 m_scrollLayer->setPosition(-scrollPosition); |
394 | 394 |
395 | 395 |
396 Platform::current()->histogramEnumeration("Renderer.AcceleratedFixedRootBack
ground", | 396 Platform::current()->histogramEnumeration("Renderer.AcceleratedFixedRootBack
ground", |
397 ScrolledMainFrameBucket, | 397 ScrolledMainFrameBucket, |
398 AcceleratedFixedRootBackgroundHistogramMax); | 398 AcceleratedFixedRootBackgroundHistogramMax); |
399 } | 399 } |
400 | 400 |
401 void RenderLayerCompositor::frameViewScrollbarsExistenceDidChange() | |
402 { | |
403 if (m_containerLayer) | |
404 updateOverflowControlsLayers(); | |
405 } | |
406 | |
407 void RenderLayerCompositor::rootFixedBackgroundsChanged() | 401 void RenderLayerCompositor::rootFixedBackgroundsChanged() |
408 { | 402 { |
409 if (!supportsFixedRootBackgroundCompositing()) | 403 if (!supportsFixedRootBackgroundCompositing()) |
410 return; | 404 return; |
411 | 405 |
412 // To avoid having to make the fixed root background layer fixed positioned
to | 406 // To avoid having to make the fixed root background layer fixed positioned
to |
413 // stay put, we position it in the layer tree as follows: | 407 // stay put, we position it in the layer tree as follows: |
414 // | 408 // |
415 // + Overflow controls host | 409 // + Overflow controls host |
416 // + LocalFrame clip | 410 // + LocalFrame clip |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 } else if (graphicsLayer == m_scrollLayer.get()) { | 885 } else if (graphicsLayer == m_scrollLayer.get()) { |
892 name = "LocalFrame Scrolling Layer"; | 886 name = "LocalFrame Scrolling Layer"; |
893 } else { | 887 } else { |
894 ASSERT_NOT_REACHED(); | 888 ASSERT_NOT_REACHED(); |
895 } | 889 } |
896 | 890 |
897 return name; | 891 return name; |
898 } | 892 } |
899 | 893 |
900 } // namespace blink | 894 } // namespace blink |
OLD | NEW |