Changeset 163176 in webkit
- Timestamp:
- Jan 31, 2014, 10:25:34 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r163175 r163176 1 2014-01-30 Simon Fraser <simon.fraser@apple.com> 2 3 Make iOS fixed layer registration more like OS X 4 https://bugs.webkit.org/show_bug.cgi?id=127983 5 6 Reviewed by Antti Koivisto. 7 8 Remove some #if PLATFORM(IOS) in the code related to registering 9 viewport-constrained layers. The code behaves correctly now in WK1 10 and WK2 based on the presence of a ScrollingCoordinator. 11 12 * rendering/RenderLayerCompositor.cpp: 13 (WebCore::RenderLayerCompositor::flushPendingLayerChanges): 14 (WebCore::nearestScrollingCoordinatorAncestor): 15 (WebCore::RenderLayerCompositor::registerOrUpdateViewportConstrainedLayer): 16 (WebCore::RenderLayerCompositor::unregisterViewportConstrainedLayer): 17 1 18 2014-01-31 Commit Queue <commit-queue@webkit.org> 2 19 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r163158 r163176 438 438 if (client && isFlushRoot) 439 439 client->didFlushCompositingLayers(); 440 #else 440 #endif 441 441 442 for (auto it = m_viewportConstrainedLayersNeedingUpdate.begin(), end = m_viewportConstrainedLayersNeedingUpdate.end(); it != end; ++it) 442 443 registerOrUpdateViewportConstrainedLayer(**it); 444 443 445 m_viewportConstrainedLayersNeedingUpdate.clear(); 444 #endif445 446 startLayerFlushTimerIfNeeded(); 446 447 } … … 3429 3430 } 3430 3431 3431 #if !PLATFORM(IOS)3432 3432 static RenderLayerBacking* nearestScrollingCoordinatorAncestor(RenderLayer& layer) 3433 3433 { … … 3443 3443 return nullptr; 3444 3444 } 3445 #endif3446 3445 3447 3446 void RenderLayerCompositor::registerOrUpdateViewportConstrainedLayer(RenderLayer& layer) 3448 3447 { 3449 #if PLATFORM(IOS)3450 UNUSED_PARAM(layer);3451 // On iOS, we batch-update viewport-constrained layers in updateCustomLayersAfterFlush().3452 #else3453 3448 // FIXME: We should support sticky position here! And we should eventuall support fixed/sticky elements 3454 3449 // that are inside non-main frames once we get non-main frames scrolling with the ScrollingCoordinator. … … 3484 3479 else 3485 3480 scrollingCoordinator->updateViewportConstrainedNode(nodeID, computeFixedViewportConstraints(layer), backing->graphicsLayer()); 3486 #endif3487 3481 } 3488 3482 … … 3490 3484 { 3491 3485 ASSERT(m_viewportConstrainedLayers.contains(&layer)); 3492 #if PLATFORM(IOS) 3493 UNUSED_PARAM(layer); 3494 // On iOS, we batch-update viewport-constrained layers in updateCustomLayersAfterFlush(). 3495 #else 3486 3496 3487 if (RenderLayerBacking* backing = layer.backing()) 3497 3488 backing->detachFromScrollingCoordinator(); 3498 #endif3499 3489 } 3500 3490
Note:
See TracChangeset
for help on using the changeset viewer.