| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 { | 505 { |
| 506 FrameView* frameView = m_renderView.frameView(); | 506 FrameView* frameView = m_renderView.frameView(); |
| 507 IntPoint scrollPosition = frameView->scrollPosition(); | 507 IntPoint scrollPosition = frameView->scrollPosition(); |
| 508 | 508 |
| 509 if (!m_scrollLayer) | 509 if (!m_scrollLayer) |
| 510 return; | 510 return; |
| 511 | 511 |
| 512 bool scrollingCoordinatorHandlesOffset = false; | 512 bool scrollingCoordinatorHandlesOffset = false; |
| 513 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator(
)) { | 513 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator(
)) { |
| 514 if (Settings* settings = m_renderView.document().settings()) { | 514 if (Settings* settings = m_renderView.document().settings()) { |
| 515 if (m_renderView.frame()->isLocalRoot() || settings->compositedScrol
lingForFramesEnabled()) | 515 if (m_renderView.frame()->isLocalRoot() || settings->preferCompositi
ngToLCDTextEnabled()) |
| 516 scrollingCoordinatorHandlesOffset = scrollingCoordinator->scroll
ableAreaScrollLayerDidChange(frameView); | 516 scrollingCoordinatorHandlesOffset = scrollingCoordinator->scroll
ableAreaScrollLayerDidChange(frameView); |
| 517 } | 517 } |
| 518 } | 518 } |
| 519 | 519 |
| 520 // Scroll position = scroll minimum + scroll offset. Adjust the layer's | 520 // Scroll position = scroll minimum + scroll offset. Adjust the layer's |
| 521 // position to handle whatever the scroll coordinator isn't handling. | 521 // position to handle whatever the scroll coordinator isn't handling. |
| 522 // The minimum scroll position is non-zero for RTL pages with overflow. | 522 // The minimum scroll position is non-zero for RTL pages with overflow. |
| 523 if (scrollingCoordinatorHandlesOffset) | 523 if (scrollingCoordinatorHandlesOffset) |
| 524 m_scrollLayer->setPosition(-frameView->minimumScrollPosition()); | 524 m_scrollLayer->setPosition(-frameView->minimumScrollPosition()); |
| 525 else | 525 else |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1166 } else if (graphicsLayer == m_scrollLayer.get()) { | 1166 } else if (graphicsLayer == m_scrollLayer.get()) { |
| 1167 name = "LocalFrame Scrolling Layer"; | 1167 name = "LocalFrame Scrolling Layer"; |
| 1168 } else { | 1168 } else { |
| 1169 ASSERT_NOT_REACHED(); | 1169 ASSERT_NOT_REACHED(); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 return name; | 1172 return name; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 } // namespace blink | 1175 } // namespace blink |
| OLD | NEW |