OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011-2018 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011-2018 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 bool TiledCoreAnimationDrawingArea::flushLayers() | 413 bool TiledCoreAnimationDrawingArea::flushLayers() |
414 { | 414 { |
415 ASSERT(!m_layerTreeStateIsFrozen); | 415 ASSERT(!m_layerTreeStateIsFrozen); |
416 | 416 |
417 @autoreleasepool { | 417 @autoreleasepool { |
418 scaleViewToFitDocumentIfNeeded(); | 418 scaleViewToFitDocumentIfNeeded(); |
419 | 419 |
420 m_webPage.layoutIfNeeded(); | 420 m_webPage.layoutIfNeeded(); |
421 m_webPage.flushPendingEditorStateUpdate(); | 421 m_webPage.flushPendingEditorStateUpdate(); |
422 | 422 |
| 423 #if ENABLE(INTERSECTION_OBSERVER) |
| 424 m_webPage.updateIntersectionObservations(); |
| 425 #endif |
| 426 |
423 updateIntrinsicContentSizeIfNeeded(); | 427 updateIntrinsicContentSizeIfNeeded(); |
424 | 428 |
425 if (m_pendingRootLayer) { | 429 if (m_pendingRootLayer) { |
426 setRootCompositingLayer(m_pendingRootLayer.get()); | 430 setRootCompositingLayer(m_pendingRootLayer.get()); |
427 m_pendingRootLayer = nullptr; | 431 m_pendingRootLayer = nullptr; |
428 } | 432 } |
429 | 433 |
430 FloatRect visibleRect = [m_hostingLayer frame]; | 434 FloatRect visibleRect = [m_hostingLayer frame]; |
431 if (m_scrolledViewExposedRect) | 435 if (m_scrolledViewExposedRect) |
432 visibleRect.intersect(m_scrolledViewExposedRect.value()); | 436 visibleRect.intersect(m_scrolledViewExposedRect.value()); |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 | 885 |
882 bool TiledCoreAnimationDrawingArea::dispatchDidReachLayoutMilestone(WebCore::Lay
outMilestones layoutMilestones) | 886 bool TiledCoreAnimationDrawingArea::dispatchDidReachLayoutMilestone(WebCore::Lay
outMilestones layoutMilestones) |
883 { | 887 { |
884 m_pendingNewlyReachedLayoutMilestones |= layoutMilestones; | 888 m_pendingNewlyReachedLayoutMilestones |= layoutMilestones; |
885 return true; | 889 return true; |
886 } | 890 } |
887 | 891 |
888 } // namespace WebKit | 892 } // namespace WebKit |
889 | 893 |
890 #endif // !PLATFORM(IOS) | 894 #endif // !PLATFORM(IOS) |
OLD | NEW |