Skip to content

Commit 46b0fd5

Browse files
Remove the ACCELERATED_COMPOSITING flag
https://bugs.webkit.org/show_bug.cgi?id=127833 Reviewed by Antti Koivisto. Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC mandatory. Source/WebCore: Tests: No new tests, no functional change. * css/MediaQueryEvaluator.cpp: (WebCore::transform_3dMediaFeatureEval): * css/StyleResolver.cpp: (WebCore::StyleResolver::canShareStyleWithElement): * dom/Document.cpp: (WebCore::Document::setVisualUpdatesAllowed): (WebCore::Document::recalcStyle): (WebCore::Document::createRenderTree): (WebCore::Document::documentWillBecomeInactive): (WebCore::Document::documentDidResumeFromPageCache): (WebCore::Document::windowScreenDidChange): * dom/PseudoElement.cpp: (WebCore::PseudoElement::~PseudoElement): * history/CachedFrame.cpp: (WebCore::CachedFrameBase::CachedFrameBase): (WebCore::CachedFrameBase::restore): (WebCore::CachedFrame::CachedFrame): * history/CachedFrame.h: * history/CachedPage.cpp: (WebCore::CachedPage::restore): * history/CachedPage.h: * history/PageCache.cpp: (WebCore::PageCache::PageCache): (WebCore::PageCache::markPagesForDeviceScaleChanged): * history/PageCache.h: * html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::getContext): (WebCore::HTMLCanvasElement::reset): (WebCore::HTMLCanvasElement::paintsIntoCanvasBuffer): (WebCore::HTMLCanvasElement::createImageBuffer): * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::parseAttribute): * html/HTMLMediaElement.h: * html/canvas/CanvasRenderingContext.h: * html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::didDraw): * html/canvas/CanvasRenderingContext2D.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::markContextChanged): (WebCore::WebGLRenderingContext::reshape): (WebCore::WebGLRenderingContext::platformLayer): * html/canvas/WebGLRenderingContext.h: * inspector/InspectorController.cpp: (WebCore::InspectorController::InspectorController): * inspector/InspectorInstrumentation.cpp: (WebCore::InspectorInstrumentation::didCommitLoadImpl): (WebCore::InspectorInstrumentation::pseudoElementDestroyedImpl): * inspector/InspectorInstrumentation.h: (WebCore::InspectorInstrumentation::pseudoElementDestroyed): * inspector/InspectorLayerTreeAgent.cpp: * inspector/InstrumentingAgents.cpp: (WebCore::InstrumentingAgents::InstrumentingAgents): (WebCore::InstrumentingAgents::reset): * inspector/InstrumentingAgents.h: * loader/EmptyClients.h: * page/ChromeClient.h: * page/Frame.cpp: (WebCore::Frame::layerTreeAsText): (WebCore::Frame::deviceOrPageScaleFactorChanged): * page/Frame.h: * page/FrameView.cpp: (WebCore::FrameView::setFrameRect): (WebCore::FrameView::scheduleLayerFlushAllowingThrottling): (WebCore::FrameView::hasCompositedContent): (WebCore::FrameView::hasCompositedContentIncludingDescendants): (WebCore::FrameView::hasCompositingAncestor): (WebCore::FrameView::enterCompositingMode): (WebCore::FrameView::isEnclosedInCompositingLayer): (WebCore::FrameView::flushCompositingStateIncludingSubframes): (WebCore::FrameView::isSoftwareRenderable): (WebCore::FrameView::layout): (WebCore::FrameView::contentsInCompositedLayer): (WebCore::FrameView::scrollContentsFastPath): (WebCore::FrameView::scrollContentsSlowPath): (WebCore::FrameView::setIsOverlapped): (WebCore::FrameView::delegatesScrollingDidChange): (WebCore::FrameView::scrollPositionChanged): (WebCore::FrameView::updateCompositingLayersAfterScrolling): (WebCore::FrameView::visibleContentsResized): (WebCore::FrameView::addedOrRemovedScrollbar): (WebCore::FrameView::disableLayerFlushThrottlingTemporarilyForInteraction): (WebCore::FrameView::updateLayerFlushThrottlingInAllFrames): (WebCore::FrameView::adjustTiledBackingCoverage): (WebCore::FrameView::hasExtendedBackground): (WebCore::FrameView::extendedBackgroundRect): (WebCore::FrameView::setBackgroundExtendsBeyondPage): (WebCore::FrameView::performPostLayoutTasks): (WebCore::FrameView::paintContents): (WebCore::FrameView::setTracksRepaints): (WebCore::FrameView::resetTrackedRepaints): (WebCore::FrameView::setScrollingPerformanceLoggingEnabled): (WebCore::FrameView::setExposedRect): * page/FrameView.h: * page/Page.cpp: (WebCore::Page::setPageScaleFactor): (WebCore::Page::setDeviceScaleFactor): * page/Settings.cpp: (WebCore::Settings::setBackgroundShouldExtendBeyondPage): * page/animation/AnimationBase.cpp: (WebCore::AnimationBase::freezeAtTime): * page/animation/AnimationController.cpp: (WebCore::AnimationController::supportsAcceleratedAnimationOfProperty): * page/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): (WebCore::CSSPropertyAnimation::blendProperties): (WebCore::CSSPropertyAnimation::animationOfPropertyIsAccelerated): * page/animation/CSSPropertyAnimation.h: * page/animation/CompositeAnimation.cpp: (WebCore::CompositeAnimation::updateTransitions): * page/animation/ImplicitAnimation.cpp: (WebCore::ImplicitAnimation::animate): (WebCore::ImplicitAnimation::startAnimation): (WebCore::ImplicitAnimation::pauseAnimation): (WebCore::ImplicitAnimation::endAnimation): (WebCore::ImplicitAnimation::timeToNextService): * page/animation/KeyframeAnimation.cpp: (WebCore::KeyframeAnimation::animate): (WebCore::KeyframeAnimation::startAnimation): (WebCore::KeyframeAnimation::pauseAnimation): (WebCore::KeyframeAnimation::endAnimation): (WebCore::KeyframeAnimation::timeToNextService): * page/ios/FrameIOS.mm: (WebCore::Frame::viewportOffsetChanged): (WebCore::Frame::containsTiledBackingLayers): * page/scrolling/AsyncScrollingCoordinator.cpp: (WebCore::AsyncScrollingCoordinator::updateScrollPositionAfterAsyncScroll): * page/scrolling/ScrollingCoordinator.cpp: (WebCore::ScrollingCoordinator::coordinatesScrollingForFrameView): (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion): (WebCore::ScrollingCoordinator::verticalScrollbarLayerForScrollableArea): (WebCore::ScrollingCoordinator::scrollLayerForFrameView): (WebCore::ScrollingCoordinator::headerLayerForFrameView): (WebCore::ScrollingCoordinator::footerLayerForFrameView): (WebCore::ScrollingCoordinator::counterScrollingLayerForFrameView): (WebCore::ScrollingCoordinator::hasVisibleSlowRepaintViewportConstrainedObjects): * page/scrolling/ScrollingCoordinator.h: * platform/ScrollView.cpp: (WebCore::positionScrollCornerLayer): (WebCore::ScrollView::positionScrollbarLayers): (WebCore::ScrollView::paintScrollbars): (WebCore::ScrollView::paint): * platform/ScrollableArea.cpp: (WebCore::ScrollableArea::invalidateScrollbar): (WebCore::ScrollableArea::invalidateScrollCorner): (WebCore::ScrollableArea::horizontalScrollbarLayerDidChange): (WebCore::ScrollableArea::hasLayerForHorizontalScrollbar): (WebCore::ScrollableArea::hasLayerForVerticalScrollbar): (WebCore::ScrollableArea::hasLayerForScrollCorner): * platform/ScrollableArea.h: * platform/ScrollbarTheme.h: * platform/efl/EflScreenUtilities.cpp: (WebCore::applyFallbackCursor): * platform/graphics/GraphicsContext3D.h: * platform/graphics/GraphicsContext3DPrivate.cpp: (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate): (WebCore::GraphicsContext3DPrivate::paintToTextureMapper): * platform/graphics/GraphicsContext3DPrivate.h: * platform/graphics/GraphicsLayer.cpp: * platform/graphics/GraphicsLayer.h: * platform/graphics/GraphicsLayerAnimation.cpp: * platform/graphics/GraphicsLayerAnimation.h: * platform/graphics/GraphicsLayerClient.h: * platform/graphics/GraphicsLayerFactory.h: * platform/graphics/GraphicsLayerUpdater.cpp: * platform/graphics/GraphicsLayerUpdater.h: * platform/graphics/ImageBuffer.cpp: * platform/graphics/ImageBuffer.h: * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::platformLayer): (WebCore::MediaPlayer::supportsAcceleratedRendering): * platform/graphics/MediaPlayer.h: * platform/graphics/MediaPlayerPrivate.h: * platform/graphics/PlatformLayer.h: * platform/graphics/TextTrackRepresentation.cpp: * platform/graphics/TextTrackRepresentation.h: * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: (WebCore::MediaPlayerPrivateAVFoundation::currentRenderingMode): (WebCore::MediaPlayerPrivateAVFoundation::preferredRenderingMode): (WebCore::MediaPlayerPrivateAVFoundation::setUpVideoRendering): (WebCore::MediaPlayerPrivateAVFoundation::tearDownVideoRendering): * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::platformLayer): (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::acceleratedRenderingStateChanged): * platform/graphics/ca/GraphicsLayerCA.cpp: * platform/graphics/ca/GraphicsLayerCA.h: * platform/graphics/ca/LayerFlushScheduler.cpp: * platform/graphics/ca/LayerFlushScheduler.h: * platform/graphics/ca/LayerFlushSchedulerClient.h: * platform/graphics/ca/PlatformCAAnimation.h: * platform/graphics/ca/PlatformCAFilters.h: * platform/graphics/ca/PlatformCALayer.h: * platform/graphics/ca/PlatformCALayerClient.h: * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp: * platform/graphics/ca/mac/PlatformCAAnimationMac.mm: (PlatformCAAnimation::copyTimingFunctionsFrom): * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: * platform/graphics/ca/mac/PlatformCALayerMac.h: * platform/graphics/ca/mac/PlatformCALayerMac.mm: (PlatformCALayerMac::enumerateRectsBeingDrawn): * platform/graphics/ca/win/AbstractCACFLayerTreeHost.h: * platform/graphics/ca/win/CACFLayerTreeHost.cpp: * platform/graphics/ca/win/CACFLayerTreeHost.h: * platform/graphics/ca/win/CACFLayerTreeHostClient.h: * platform/graphics/ca/win/LayerChangesFlusher.cpp: * platform/graphics/ca/win/LayerChangesFlusher.h: * platform/graphics/ca/win/LegacyCACFLayerTreeHost.cpp: * platform/graphics/ca/win/LegacyCACFLayerTreeHost.h: * platform/graphics/ca/win/PlatformCAAnimationWin.cpp: (PlatformCAAnimation::copyTimingFunctionsFrom): * platform/graphics/ca/win/PlatformCAFiltersWin.cpp: * platform/graphics/ca/win/PlatformCALayerWin.cpp: (PlatformCALayerWin::createCompatibleLayer): * platform/graphics/ca/win/PlatformCALayerWin.h: * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: (PlatformCALayerWinInternal::drawTile): * platform/graphics/ca/win/PlatformCALayerWinInternal.h: * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp: * platform/graphics/ca/win/WKCACFViewLayerTreeHost.h: * platform/graphics/cairo/DrawingBufferCairo.cpp: (WebCore::DrawingBuffer::paintCompositedResultsToCanvas): * platform/graphics/cairo/GraphicsContext3DCairo.cpp: (WebCore::GraphicsContext3D::platformLayer): * platform/graphics/cairo/ImageBufferCairo.cpp: (WebCore::ImageBuffer::platformLayer): * platform/graphics/efl/GraphicsContext3DEfl.cpp: (WebCore::GraphicsContext3D::platformLayer): * platform/graphics/efl/GraphicsContext3DPrivate.cpp: * platform/graphics/efl/GraphicsContext3DPrivate.h: * platform/graphics/gpu/DrawingBuffer.h: * platform/graphics/gpu/LoopBlinnMathUtils.cpp: * platform/graphics/gpu/TilingData.cpp: * platform/graphics/gpu/mac/DrawingBufferMac.mm: (WebCore::DrawingBuffer::frontColorBuffer): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: (WebCore::MediaPlayerPrivateGStreamerBase::triggerRepaint): (WebCore::MediaPlayerPrivateGStreamerBase::paint): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h: * platform/graphics/ios/MediaPlayerPrivateIOS.h: * platform/graphics/ios/MediaPlayerPrivateIOS.mm: (WebCore::MediaPlayerPrivateIOS::supportsAcceleratedRendering): * platform/graphics/mac/MediaPlayerPrivateQTKit.h: * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::MediaPlayerPrivateQTKit::createQTMovieLayer): (WebCore::MediaPlayerPrivateQTKit::destroyQTMovieLayer): (WebCore::MediaPlayerPrivateQTKit::preferredRenderingMode): (WebCore::MediaPlayerPrivateQTKit::platformLayer): (WebCore::MediaPlayerPrivateQTKit::setClosedCaptionsVisible): (WebCore::MediaPlayerPrivateQTKit::layerHostChanged): (WebCore::MediaPlayerPrivateQTKit::acceleratedRenderingStateChanged): (-[WebCoreMovieObserver layerHostChanged:]): * platform/graphics/mac/WebGLLayer.h: * platform/graphics/mac/WebGLLayer.mm: * platform/graphics/mac/WebLayer.h: * platform/graphics/mac/WebLayer.mm: * platform/graphics/mac/WebTiledLayer.h: * platform/graphics/mac/WebTiledLayer.mm: * platform/graphics/opengl/GLDefs.h: * platform/graphics/opengl/GLPlatformContext.cpp: * platform/graphics/opengl/GLPlatformContext.h: * platform/graphics/opengl/GLPlatformSurface.cpp: * platform/graphics/opengl/GLPlatformSurface.h: * platform/graphics/surfaces/GLTransportSurface.cpp: * platform/graphics/surfaces/GLTransportSurface.h: * platform/graphics/surfaces/glx/GLXConfigSelector.h: * platform/graphics/surfaces/glx/GLXContext.cpp: * platform/graphics/surfaces/glx/GLXContext.h: * platform/graphics/surfaces/glx/GLXSurface.cpp: * platform/graphics/surfaces/glx/GLXSurface.h: * platform/graphics/texmap/TextureMapper.cpp: * platform/graphics/texmap/TextureMapper.h: * platform/graphics/texmap/TextureMapperBackingStore.cpp: * platform/graphics/texmap/TextureMapperBackingStore.h: * platform/graphics/texmap/TextureMapperFPSCounter.cpp: * platform/graphics/texmap/TextureMapperFPSCounter.h: * platform/graphics/texmap/TextureMapperGL.cpp: * platform/graphics/texmap/TextureMapperGL.h: * platform/graphics/texmap/TextureMapperLayer.cpp: * platform/graphics/texmap/TextureMapperLayer.h: * platform/graphics/texmap/TextureMapperShaderProgram.cpp: * platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp: * platform/graphics/texmap/TextureMapperSurfaceBackingStore.h: * platform/graphics/texmap/TextureMapperTile.cpp: * platform/graphics/texmap/TextureMapperTile.h: * platform/graphics/texmap/TextureMapperTiledBackingStore.cpp: * platform/graphics/texmap/TextureMapperTiledBackingStore.h: * platform/graphics/win/GraphicsContext3DWin.cpp: (WebCore::GraphicsContext3D::platformLayer): * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp: (WebCore::MediaPlayerPrivateFullscreenWindow::createWindow): (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc): * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h: * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::supportsFullscreen): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformLayer): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::naturalSize): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::paint): (WebCore::CreateCGImageFromPixelBuffer): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::currentRenderingMode): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::preferredRenderingMode): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setUpVideoRendering): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::tearDownVideoRendering): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::hasSetUpVideoRendering): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveAndResetMovieTransform): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::destroyLayerForMovie): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setPrivateBrowsingMode): * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h: * platform/graphics/win/WKCAImageQueue.cpp: * platform/graphics/win/WKCAImageQueue.h: * platform/mac/ScrollbarThemeMac.h: * platform/mac/ScrollbarThemeMac.mm: * plugins/PluginViewBase.h: * rendering/FlowThreadController.cpp: (WebCore::FlowThreadController::updateRenderFlowThreadLayersIfNeeded): * rendering/FlowThreadController.h: * rendering/RenderBox.cpp: (WebCore::RenderBox::styleWillChange): (WebCore::isCandidateForOpaquenessTest): (WebCore::layersUseImage): (WebCore::RenderBox::imageChanged): * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::suspendAnimations): (WebCore::RenderBoxModelObject::fixedBackgroundPaintsInLocalCoordinates): * rendering/RenderBoxModelObject.h: * rendering/RenderElement.cpp: (WebCore::RenderElement::adjustStyleDifference): (WebCore::RenderElement::setStyle): (WebCore::RenderElement::styleWillChange): * rendering/RenderEmbeddedObject.cpp: (WebCore::RenderEmbeddedObject::allowsAcceleratedCompositing): * rendering/RenderEmbeddedObject.h: * rendering/RenderFlowThread.cpp: (WebCore::RenderFlowThread::RenderFlowThread): (WebCore::RenderFlowThread::layout): (WebCore::RenderFlowThread::updateAllLayerToRegionMappings): * rendering/RenderFlowThread.h: * rendering/RenderFullScreen.cpp: * rendering/RenderImage.cpp: (WebCore::RenderImage::imageDimensionsChanged): (WebCore::RenderImage::notifyFinished): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::RenderLayer): (WebCore::RenderLayer::~RenderLayer): (WebCore::RenderLayer::canRender3DTransforms): (WebCore::RenderLayer::paintsWithFilters): (WebCore::RenderLayer::updateLayerPositions): (WebCore::RenderLayer::updateDescendantsAreContiguousInStackingOrderRecursive): (WebCore::RenderLayer::currentTransform): (WebCore::RenderLayer::updateDescendantDependentFlags): (WebCore::RenderLayer::checkIfDescendantClippingContextNeedsUpdate): (WebCore::RenderLayer::shouldRepaintAfterLayout): (WebCore::RenderLayer::enclosingFilterRepaintLayer): (WebCore::RenderLayer::setFilterBackendNeedsRepaintingInRect): (WebCore::RenderLayer::clippingRootForPainting): (WebCore::RenderLayer::addChild): (WebCore::RenderLayer::removeChild): (WebCore::RenderLayer::removeOnlyThisLayer): (WebCore::RenderLayer::scrollTo): (WebCore::RenderLayer::updateCompositingLayersAfterScroll): (WebCore::RenderLayer::invalidateScrollbarRect): (WebCore::RenderLayer::invalidateScrollCornerRect): (WebCore::RenderLayer::positionOverflowControls): (WebCore::RenderLayer::updateScrollInfoAfterLayout): (WebCore::RenderLayer::paintOverflowControls): (WebCore::shouldDoSoftwarePaint): (WebCore::RenderLayer::paintLayer): (WebCore::RenderLayer::calculateClipRects): * rendering/RenderLayer.h: * rendering/RenderLayerBacking.cpp: * rendering/RenderLayerBacking.h: * rendering/RenderLayerCompositor.cpp: * rendering/RenderLayerCompositor.h: * rendering/RenderNamedFlowThread.cpp: (WebCore::RenderNamedFlowThread::collectsGraphicsLayersUnderRegions): * rendering/RenderNamedFlowThread.h: * rendering/RenderObject.cpp: (WebCore::RenderObject::containerForRepaint): (WebCore::RenderObject::repaintUsingContainer): * rendering/RenderTreeAsText.cpp: (WebCore::write): * rendering/RenderVideo.cpp: (WebCore::RenderVideo::updatePlayer): (WebCore::RenderVideo::acceleratedRenderingStateChanged): * rendering/RenderVideo.h: * rendering/RenderView.cpp: (WebCore::RenderView::paintBoxDecorations): (WebCore::RenderView::repaintRootContents): (WebCore::RenderView::repaintRectangleInViewAndCompositedLayers): (WebCore::RenderView::repaintViewAndCompositedLayers): (WebCore::RenderView::setMaximalOutlineSize): (WebCore::RenderView::compositor): (WebCore::RenderView::setIsInWindow): * rendering/RenderView.h: * rendering/RenderWidget.cpp: (WebCore::RenderWidget::setWidgetGeometry): (WebCore::RenderWidget::requiresAcceleratedCompositing): * rendering/RenderWidget.h: * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayout): (WebCore::RenderStyle::changeRequiresLayerRepaint): (WebCore::RenderStyle::changeRequiresRecompositeLayer): (WebCore::RenderStyle::diff): * rendering/style/RenderStyle.h: * rendering/style/RenderStyleConstants.h: * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): * rendering/style/StyleRareNonInheritedData.h: * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): (WebCore::Internals::setHeaderHeight): (WebCore::Internals::setFooterHeight): Source/WebKit/efl: Another patch will be required to remove the flag support from the EFL build system. * WebCoreSupport/AcceleratedCompositingContextEfl.cpp: * WebCoreSupport/AcceleratedCompositingContextEfl.h: * WebCoreSupport/ChromeClientEfl.cpp: (WebCore::ChromeClientEfl::allowedCompositingTriggers): * WebCoreSupport/ChromeClientEfl.h: * WebCoreSupport/PageClientEfl.cpp: (PageClientEfl::acceleratedCompositingContext): * WebCoreSupport/PageClientEfl.h: * ewk/ewk_private.h: * ewk/ewk_view.cpp: (_ewk_view_priv_new): (_ewk_view_priv_del): (ewk_view_mark_for_sync): * ewk/ewk_view_private.h: Source/WebKit/gtk: Another patch will be required to remove the flag support from the GTK build system. * WebCoreSupport/AcceleratedCompositingContext.h: * WebCoreSupport/AcceleratedCompositingContextGL.cpp: * WebCoreSupport/ChromeClientGtk.cpp: (WebKit::ChromeClient::widgetSizeChanged): (WebKit::ChromeClient::forcePaint): (WebKit::ChromeClient::invalidateContentsAndRootView): (WebKit::ChromeClient::invalidateContentsForSlowScroll): (WebKit::ChromeClient::scroll): (WebKit::ChromeClient::allowedCompositingTriggers): * WebCoreSupport/ChromeClientGtk.h: * webkit/webkitwebview.cpp: (webkit_web_view_update_settings): (webkit_web_view_settings_notify): (webkit_web_view_init): * webkit/webkitwebviewprivate.h: Source/WebKit/ios: * WebCoreSupport/WebChromeClientIOS.h: * WebCoreSupport/WebChromeClientIOS.mm: (WebChromeClientIOS::attachRootGraphicsLayer): * WebView/WebUIKitDelegate.h: Source/WebKit/mac: * Plugins/Hosted/WebHostedNetscapePluginView.mm: (-[WebHostedNetscapePluginView createPlugin]): (-[WebHostedNetscapePluginView createPluginLayer]): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView createPlugin]): (-[WebNetscapePluginView getVariable:value:]): * Plugins/WebPluginController.mm: (-[WebPluginController superlayerForPluginView:]): * WebCoreSupport/WebChromeClient.h: (WebChromeClient::allowedCompositingTriggers): * WebCoreSupport/WebChromeClient.mm: * WebCoreSupport/WebFrameLoaderClient.mm: (PluginWidgetIOS::detachPluginLayer): (NetscapePluginWidget::platformLayer): * WebView/WebClipView.mm: (-[WebClipView _immediateScrollToPoint:]): * WebView/WebHTMLView.mm: (setNeedsDisplayInRect): (+[WebHTMLViewPrivate initialize]): (-[WebHTMLViewPrivate clear]): (-[WebHTMLView _setAsideSubviews]): (-[WebHTMLView hitTest:]): (-[WebHTMLView _isUsingAcceleratedCompositing]): (-[WebHTMLView _compositingLayersHostingView]): (-[WebHTMLView viewDidMoveToSuperview]): (-[WebHTMLView drawRect:]): * WebView/WebHTMLViewInternal.h: * WebView/WebRenderLayer.mm: (+[WebRenderLayer compositingInfoForLayer:]): * WebView/WebView.mm: (-[WebView _close]): (-[WebView _setMediaLayer:forPluginView:]): (-[WebView _postsAcceleratedCompositingNotifications]): (-[WebView _setPostsAcceleratedCompositingNotifications:]): (-[WebView _isUsingAcceleratedCompositing]): (-[WebView _isSoftwareRenderable]): (-[WebView close]): * WebView/WebViewData.h: * WebView/WebViewData.mm: (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler): * WebView/WebViewInternal.h: Source/WebKit/win: Another patch will be required to remove the flag support from the Win build system. * FullscreenVideoController.cpp: (FullscreenVideoController::LayerClient::platformCALayerLayoutSublayersOfLayer): (FullscreenVideoController::FullscreenVideoController): (FullscreenVideoController::~FullscreenVideoController): (FullscreenVideoController::enterFullscreen): * FullscreenVideoController.h: * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::scheduleCompositingLayerFlush): * WebCoreSupport/WebChromeClient.h: (WebChromeClient::setNeedsOneShotDrawingSynchronization): * WebPreferences.cpp: (WebPreferences::acceleratedCompositingEnabled): * WebView.cpp: (WebView::WebView): (WebView::~WebView): (WebView::close): (WebView::repaint): (WebView::addToDirtyRegion): (WebView::scrollBackingStore): (WebView::sizeChanged): (WebView::updateBackingStore): (WebView::paint): (WebView::setShouldInvertColors): (WebView::WebViewWndProc): (WebView::notifyPreferencesChanged): (WebView::setAcceleratedCompositing): * WebView.h: Source/WebKit/wince: Another patch will be required to remove the flag support from the WinCE build system. * WebCoreSupport/ChromeClientWinCE.cpp: (WebKit::ChromeClientWinCE::scheduleCompositingLayerFlush): * WebCoreSupport/ChromeClientWinCE.h: Source/WebKit2: * PluginProcess/PluginControllerProxy.cpp: (WebKit::PluginControllerProxy::PluginControllerProxy): * PluginProcess/PluginCreationParameters.cpp: (WebKit::PluginCreationParameters::PluginCreationParameters): (WebKit::PluginCreationParameters::encode): (WebKit::PluginCreationParameters::decode): * PluginProcess/PluginCreationParameters.h: * PluginProcess/PluginProcess.h: * Shared/WebRenderLayer.cpp: (WebKit::WebRenderLayer::WebRenderLayer): * Shared/mac/RemoteLayerBackingStore.h: * Shared/mac/RemoteLayerBackingStore.mm: (RemoteLayerBackingStore::enumerateRectsBeingDrawn): * UIProcess/API/efl/EvasGLContext.cpp: * UIProcess/API/efl/EvasGLContext.h: * UIProcess/API/efl/EvasGLSurface.cpp: * UIProcess/API/efl/EvasGLSurface.h: * UIProcess/API/efl/EwkView.cpp: (EwkView::EwkView): (EwkView::displayTimerFired): (EwkView::createGLSurface): (EwkView::handleEvasObjectCalculate): (EwkView::handleEvasObjectShow): (EwkView::takeSnapshot): * UIProcess/API/efl/EwkView.h: * UIProcess/API/efl/SnapshotImageGL.cpp: (getImageSurfaceFromFrameBuffer): * UIProcess/API/efl/SnapshotImageGL.h: * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp: (EWK2UnitTest::EWK2UnitTestBase::SetUp): * UIProcess/API/gtk/PageClientImpl.cpp: (WebKit::PageClientImpl::updateAcceleratedCompositingMode): * UIProcess/API/gtk/PageClientImpl.h: * UIProcess/API/ios/PageClientImplIOS.h: * UIProcess/API/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::acceleratedCompositingRootLayer): * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp: (WebKit::CoordinatedDrawingAreaProxy::~CoordinatedDrawingAreaProxy): (WebKit::CoordinatedDrawingAreaProxy::visibilityDidChange): (WebKit::CoordinatedDrawingAreaProxy::didUpdateBackingStoreState): (WebKit::CoordinatedDrawingAreaProxy::enterAcceleratedCompositingMode): (WebKit::CoordinatedDrawingAreaProxy::exitAcceleratedCompositingMode): (WebKit::CoordinatedDrawingAreaProxy::updateAcceleratedCompositingMode): (WebKit::CoordinatedDrawingAreaProxy::sendUpdateBackingStoreState): (WebKit::CoordinatedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState): * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h: * UIProcess/CoordinatedGraphics/PageViewportController.cpp: * UIProcess/CoordinatedGraphics/PageViewportController.h: * UIProcess/CoordinatedGraphics/WebView.cpp: (WebKit::WebView::setVisible): * UIProcess/DrawingAreaProxy.h: * UIProcess/DrawingAreaProxy.messages.in: * UIProcess/DrawingAreaProxyImpl.cpp: (WebKit::DrawingAreaProxyImpl::~DrawingAreaProxyImpl): (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState): (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode): (WebKit::DrawingAreaProxyImpl::exitAcceleratedCompositingMode): (WebKit::DrawingAreaProxyImpl::updateAcceleratedCompositingMode): (WebKit::DrawingAreaProxyImpl::sendUpdateBackingStoreState): (WebKit::DrawingAreaProxyImpl::waitForAndDispatchDidUpdateBackingStoreState): * UIProcess/DrawingAreaProxyImpl.h: * UIProcess/PageClient.h: * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: (WebKit::PluginProcessProxy::platformInitializePluginProcess): * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::updateAcceleratedCompositingMode): * UIProcess/WebPageProxy.h: * UIProcess/efl/PageLoadClientEfl.cpp: (WebKit::PageLoadClientEfl::didCommitLoadForFrame): * UIProcess/efl/PageViewportControllerClientEfl.cpp: * UIProcess/efl/ViewClientEfl.cpp: (WebKit::ViewClientEfl::didChangeContentsSize): (WebKit::ViewClientEfl::didChangeContentsPosition): (WebKit::ViewClientEfl::didRenderFrame): (WebKit::ViewClientEfl::didCompletePageTransition): (WebKit::ViewClientEfl::didChangeViewportAttributes): * UIProcess/mac/WebContextMac.mm: (WebKit::WebContext::platformInitializeWebProcess): * WebProcess/FullScreen/WebFullScreenManager.cpp: (WebKit::screenRectOfContents): * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: (WebKit::NetscapePlugin::isAcceleratedCompositingEnabled): * WebProcess/Plugins/PluginController.h: * WebProcess/Plugins/PluginProxy.cpp: (WebKit::PluginProxy::initialize): * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::layerTreeStateIsFrozen): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp: (WebKit::CoordinatedDrawingArea::layerHostDidFlushLayers): (WebKit::CoordinatedDrawingArea::scheduleCompositingLayerFlush): * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h: * WebProcess/WebPage/DrawingArea.h: * WebProcess/WebPage/DrawingAreaImpl.cpp: (WebKit::DrawingAreaImpl::layerHostDidFlushLayers): (WebKit::DrawingAreaImpl::scheduleCompositingLayerFlush): (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode): * WebProcess/WebPage/DrawingAreaImpl.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::exitAcceleratedCompositingMode): (WebKit::WebPage::mainFrameDidLayout): (WebKit::WebPage::didReceiveMessage): * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp: * WebProcess/WebPage/mac/GraphicsLayerCARemote.h: * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp: (PlatformCALayerRemote::hostingContextID): * WebProcess/WebPage/mac/PlatformCALayerRemote.h: * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.h: * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm: (PlatformCALayerRemoteCustom::hostingContextID): * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.cpp: (PlatformCALayerRemoteTiledBacking::setBorderColor): * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::WebProcess): * WebProcess/WebProcess.h: Source/WTF: * wtf/OwnPtrCommon.h: * wtf/Platform.h: * wtf/efl/OwnPtrEfl.cpp: (WTF::deleteOwnedPtr): Tools: * DumpRenderTree/efl/DumpRenderTree.cpp: (initEcoreEvas): * EWebLauncher/main.c: (windowCreate): * MiniBrowser/efl/main.c: (elm_main): * TestWebKitAPI/efl/PlatformWebView.cpp: (TestWebKitAPI::initEcoreEvas): * WebKitTestRunner/cairo/TestInvocationCairo.cpp: (WTR::TestInvocation::dumpPixelsAndCompareWithExpected): * WebKitTestRunner/efl/PlatformWebViewEfl.cpp: (WTR::initEcoreEvas): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 4014560 commit 46b0fd5

File tree

316 files changed

+970
-1769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+970
-1769
lines changed

Source/WTF/ChangeLog

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
2014-01-30 Andrei Bucur <[email protected]>
2+
3+
Remove the ACCELERATED_COMPOSITING flag
4+
https://bugs.webkit.org/show_bug.cgi?id=127833
5+
6+
Reviewed by Antti Koivisto.
7+
8+
Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
9+
mandatory.
10+
11+
* wtf/OwnPtrCommon.h:
12+
* wtf/Platform.h:
13+
* wtf/efl/OwnPtrEfl.cpp:
14+
(WTF::deleteOwnedPtr):
15+
116
2014-01-28 Michael Saboff <[email protected]>
217

318
Merge the jsCStack branch

Source/WTF/wtf/OwnPtrCommon.h

-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ typedef struct _Eo_Opaque Evas_Object;
3939
#else
4040
typedef struct _Evas_Object Evas_Object;
4141
#endif
42-
#if USE(ACCELERATED_COMPOSITING)
4342
typedef struct _Evas_GL Evas_GL;
4443
#endif
45-
#endif
4644

4745
namespace WTF {
4846

@@ -60,10 +58,8 @@ namespace WTF {
6058
WTF_EXPORT_PRIVATE void deleteOwnedPtr(Eina_Hash*);
6159
WTF_EXPORT_PRIVATE void deleteOwnedPtr(Eina_Module*);
6260
WTF_EXPORT_PRIVATE void deleteOwnedPtr(Evas_Object*);
63-
#if USE(ACCELERATED_COMPOSITING)
6461
WTF_EXPORT_PRIVATE void deleteOwnedPtr(Evas_GL*);
6562
#endif
66-
#endif
6763

6864
} // namespace WTF
6965

Source/WTF/wtf/Platform.h

+1-6
Original file line numberDiff line numberDiff line change
@@ -854,11 +854,6 @@
854854
#endif
855855
#endif
856856

857-
/* Accelerated compositing */
858-
#if PLATFORM(MAC) || PLATFORM(IOS) || (PLATFORM(WIN) && !USE(WINGDI) && !PLATFORM(WIN_CAIRO))
859-
#define WTF_USE_ACCELERATED_COMPOSITING 1
860-
#endif
861-
862857
#if ENABLE(WEBGL) && !defined(WTF_USE_3D_GRAPHICS)
863858
#define WTF_USE_3D_GRAPHICS 1
864859
#endif
@@ -875,7 +870,7 @@
875870
#define GST_API_VERSION_1 1
876871
#endif
877872

878-
#if USE(ACCELERATED_COMPOSITING) && PLATFORM(WIN_CAIRO)
873+
#if PLATFORM(WIN_CAIRO)
879874
#define WTF_USE_TEXTURE_MAPPER 1
880875
#endif
881876

Source/WTF/wtf/efl/OwnPtrEfl.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@
3232
#include <Ecore_IMF.h>
3333
#include <Eina.h>
3434
#include <Evas.h>
35-
36-
#if USE(ACCELERATED_COMPOSITING)
3735
#include <Evas_GL.h>
38-
#endif
3936

4037
namespace WTF {
4138

@@ -69,12 +66,10 @@ void deleteOwnedPtr(Ecore_IMF_Context* ptr)
6966
ecore_imf_context_del(ptr);
7067
}
7168

72-
#if USE(ACCELERATED_COMPOSITING)
7369
void deleteOwnedPtr(Evas_GL* ptr)
7470
{
7571
if (ptr)
7672
evas_gl_free(ptr);
7773
}
78-
#endif
7974

8075
}

Source/WebCore/ChangeLog

+431
Large diffs are not rendered by default.

Source/WebCore/css/MediaQueryEvaluator.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#include "StyleResolver.h"
5656
#include <wtf/HashMap.h>
5757

58-
#if ENABLE(3D_RENDERING) && USE(ACCELERATED_COMPOSITING)
58+
#if ENABLE(3D_RENDERING)
5959
#include "RenderLayerCompositor.h"
6060
#endif
6161

@@ -571,10 +571,8 @@ static bool transform_3dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* f
571571

572572
#if ENABLE(3D_RENDERING)
573573
bool threeDEnabled = false;
574-
#if USE(ACCELERATED_COMPOSITING)
575574
if (RenderView* view = frame->contentRenderer())
576575
threeDEnabled = view->compositor().canRender3DTransforms();
577-
#endif
578576

579577
returnValueIfNoParameter = threeDEnabled;
580578
have3dRendering = threeDEnabled ? 1 : 0;

Source/WebCore/css/StyleResolver.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ bool StyleResolver::canShareStyleWithElement(StyledElement* element) const
680680
if (style->transitions() || style->animations())
681681
return false;
682682

683-
#if USE(ACCELERATED_COMPOSITING)
684683
// Turn off style sharing for elements that can gain layers for reasons outside of the style system.
685684
// See comments in RenderObject::setStyle().
686685
if (element->hasTagName(iframeTag) || element->hasTagName(frameTag) || element->hasTagName(embedTag) || element->hasTagName(objectTag) || element->hasTagName(appletTag) || element->hasTagName(canvasTag))
@@ -690,8 +689,6 @@ bool StyleResolver::canShareStyleWithElement(StyledElement* element) const
690689
// With proxying, the media elements are backed by a RenderEmbeddedObject.
691690
if ((element->hasTagName(videoTag) || element->hasTagName(audioTag)) && toHTMLMediaElement(element)->shouldUseVideoPluginProxy())
692691
return false;
693-
#endif
694-
695692
#endif
696693

697694
if (elementHasDirectionAuto(element))

Source/WebCore/dom/Document.cpp

+1-16
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
#include "PointerLockController.h"
115115
#include "PopStateEvent.h"
116116
#include "ProcessingInstruction.h"
117+
#include "RenderLayerCompositor.h"
117118
#include "RenderView.h"
118119
#include "RenderWidget.h"
119120
#include "ResourceLoadScheduler.h"
@@ -152,10 +153,6 @@
152153
#include <wtf/TemporaryChange.h>
153154
#include <wtf/text/StringBuffer.h>
154155

155-
#if USE(ACCELERATED_COMPOSITING)
156-
#include "RenderLayerCompositor.h"
157-
#endif
158-
159156
#if ENABLE(SHARED_WORKERS)
160157
#include "SharedWorkerRepository.h"
161158
#endif
@@ -1242,10 +1239,8 @@ void Document::setVisualUpdatesAllowed(bool visualUpdatesAllowed)
12421239
}
12431240
}
12441241

1245-
#if USE(ACCELERATED_COMPOSITING)
12461242
if (view())
12471243
view()->updateCompositingLayersAfterLayout();
1248-
#endif
12491244

12501245
if (RenderView* renderView = this->renderView())
12511246
renderView->repaintViewAndCompositedLayers();
@@ -1751,9 +1746,7 @@ void Document::recalcStyle(Style::Change change)
17511746

17521747
Style::resolveTree(*this, change);
17531748

1754-
#if USE(ACCELERATED_COMPOSITING)
17551749
frameView.updateCompositingLayersAfterStyleChange();
1756-
#endif
17571750

17581751
clearNeedsStyleRecalc();
17591752
clearChildNeedsStyleRecalc();
@@ -1956,9 +1949,7 @@ void Document::createRenderTree()
19561949
m_renderView = createRenderer<RenderView>(*this, RenderStyle::create());
19571950
Node::setRenderer(m_renderView.get());
19581951

1959-
#if USE(ACCELERATED_COMPOSITING)
19601952
renderView()->setIsInWindow(true);
1961-
#endif
19621953

19631954
recalcStyle(Style::Force);
19641955
}
@@ -4077,10 +4068,8 @@ void Document::setInPageCache(bool flag)
40774068

40784069
void Document::documentWillBecomeInactive()
40794070
{
4080-
#if USE(ACCELERATED_COMPOSITING)
40814071
if (renderView())
40824072
renderView()->setIsInWindow(false);
4083-
#endif
40844073
}
40854074

40864075
void Document::documentWillSuspendForPageCache()
@@ -4106,10 +4095,8 @@ void Document::documentDidResumeFromPageCache()
41064095
for (Vector<Element*>::iterator i = elements.begin(); i != end; ++i)
41074096
(*i)->documentDidResumeFromPageCache();
41084097

4109-
#if USE(ACCELERATED_COMPOSITING)
41104098
if (renderView())
41114099
renderView()->setIsInWindow(true);
4112-
#endif
41134100

41144101
ASSERT(page());
41154102
page()->lockAllOverlayScrollbarsToHidden(false);
@@ -5008,12 +4995,10 @@ void Document::windowScreenDidChange(PlatformDisplayID displayID)
50084995
m_scriptedAnimationController->windowScreenDidChange(displayID);
50094996
#endif
50104997

5011-
#if USE(ACCELERATED_COMPOSITING)
50124998
if (RenderView* view = renderView()) {
50134999
if (view->usesCompositing())
50145000
view->compositor().windowScreenDidChange(displayID);
50155001
}
5016-
#endif
50175002
}
50185003

50195004
String Document::displayStringModifiedByEncoding(const String& str) const

Source/WebCore/dom/PseudoElement.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ PseudoElement::PseudoElement(Element& host, PseudoId pseudoId)
6767
PseudoElement::~PseudoElement()
6868
{
6969
ASSERT(!m_hostElement);
70-
#if USE(ACCELERATED_COMPOSITING)
7170
InspectorInstrumentation::pseudoElementDestroyed(document().page(), this);
72-
#endif
7371
}
7472

7573
PassRefPtr<RenderStyle> PseudoElement::customStyleForRenderer()

Source/WebCore/history/CachedFrame.cpp

+1-10
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include "Logging.h"
4444
#include "MainFrame.h"
4545
#include "Page.h"
46+
#include "PageCache.h"
4647
#include "PageTransitionEvent.h"
4748
#include "ScriptController.h"
4849
#include "SerializedScriptValue.h"
@@ -58,10 +59,6 @@
5859
#include "ChromeClient.h"
5960
#endif
6061

61-
#if USE(ACCELERATED_COMPOSITING)
62-
#include "PageCache.h"
63-
#endif
64-
6562
namespace WebCore {
6663

6764
DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, cachedFrameCounter, ("CachedFrame"));
@@ -73,9 +70,7 @@ CachedFrameBase::CachedFrameBase(Frame& frame)
7370
, m_mousePressNode(frame.eventHandler().mousePressNode())
7471
, m_url(http://github.com/frame.document()->url())
7572
, m_isMainFrame(!frame.tree().parent())
76-
#if USE(ACCELERATED_COMPOSITING)
7773
, m_isComposited(frame.view()->hasCompositedContent())
78-
#endif
7974
{
8075
}
8176

@@ -112,10 +107,8 @@ void CachedFrameBase::restore()
112107
// cached page.
113108
frame.script().updatePlatformScriptObjects();
114109

115-
#if USE(ACCELERATED_COMPOSITING)
116110
if (m_isComposited)
117111
frame.view()->restoreBackingStores();
118-
#endif
119112

120113
frame.loader().client().didRestoreFromPageCache();
121114

@@ -188,10 +181,8 @@ CachedFrame::CachedFrame(Frame& frame)
188181

189182
frame.loader().client().savePlatformDataToCachedFrame(this);
190183

191-
#if USE(ACCELERATED_COMPOSITING)
192184
if (m_isComposited && pageCache()->shouldClearBackingStores())
193185
frame.view()->clearBackingStores();
194-
#endif
195186

196187
// documentWillSuspendForPageCache() can set up a layout timer on the FrameView, so clear timers after that.
197188
frame.clearTimers();

Source/WebCore/history/CachedFrame.h

-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ class CachedFrameBase {
6161
std::unique_ptr<ScriptCachedFrameData> m_cachedFrameScriptData;
6262
std::unique_ptr<CachedFramePlatformData> m_cachedFramePlatformData;
6363
bool m_isMainFrame;
64-
#if USE(ACCELERATED_COMPOSITING)
6564
bool m_isComposited;
66-
#endif
6765

6866
Vector<std::unique_ptr<CachedFrame>> m_childFrames;
6967
};

Source/WebCore/history/CachedPage.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,9 @@ void CachedPage::restore(Page& page)
101101
frame->document()->visitedLinkState().invalidateStyleForAllLinks();
102102
}
103103

104-
#if USE(ACCELERATED_COMPOSITING)
105104
if (m_needsDeviceScaleChanged) {
106105
page.mainFrame().deviceOrPageScaleFactorChanged();
107106
}
108-
#endif
109107

110108
if (m_needsFullStyleRecalc)
111109
page.setNeedsRecalcStyleInAllFrames();

Source/WebCore/history/CachedPage.h

-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ class CachedPage {
5656
void markForCaptionPreferencesChanged() { m_needsCaptionPreferencesChanged = true; }
5757
#endif
5858

59-
#if USE(ACCELERATED_COMPOSITING)
6059
void markForDeviceScaleChanged() { m_needsDeviceScaleChanged = true; }
61-
#endif
6260

6361
private:
6462
void destroy();

Source/WebCore/history/PageCache.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,7 @@ PageCache::PageCache()
306306
, m_size(0)
307307
, m_head(0)
308308
, m_tail(0)
309-
#if USE(ACCELERATED_COMPOSITING)
310309
, m_shouldClearBackingStores(false)
311-
#endif
312310
{
313311
}
314312

@@ -434,8 +432,6 @@ void PageCache::markPagesForFullStyleRecalc(Page* page)
434432
}
435433
}
436434

437-
438-
#if USE(ACCELERATED_COMPOSITING)
439435
void PageCache::markPagesForDeviceScaleChanged(Page* page)
440436
{
441437
for (HistoryItem* current = m_head; current; current = current->m_next) {
@@ -444,7 +440,6 @@ void PageCache::markPagesForDeviceScaleChanged(Page* page)
444440
cachedPage->markForDeviceScaleChanged();
445441
}
446442
}
447-
#endif
448443

449444
#if ENABLE(VIDEO_TRACK)
450445
void PageCache::markPagesForCaptionPreferencesChanged()

Source/WebCore/history/PageCache.h

-4
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@ namespace WebCore {
6868
void markPagesForCaptionPreferencesChanged();
6969
#endif
7070

71-
#if USE(ACCELERATED_COMPOSITING)
7271
bool shouldClearBackingStores() const { return m_shouldClearBackingStores; }
7372
void setShouldClearBackingStores(bool flag) { m_shouldClearBackingStores = flag; }
7473
void markPagesForDeviceScaleChanged(Page*);
75-
#endif
7674

7775
private:
7876
PageCache(); // Use pageCache() instead.
@@ -92,9 +90,7 @@ namespace WebCore {
9290
HistoryItem* m_head;
9391
HistoryItem* m_tail;
9492

95-
#if USE(ACCELERATED_COMPOSITING)
9693
bool m_shouldClearBackingStores;
97-
#endif
9894
};
9995

10096
// Function to obtain the global page cache.

Source/WebCore/html/HTMLCanvasElement.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ CanvasRenderingContext* HTMLCanvasElement::getContext(const String& type, Canvas
212212
usesDashbardCompatibilityMode = settings->usesDashboardBackwardCompatibilityMode();
213213
#endif
214214
m_context = CanvasRenderingContext2D::create(this, document().inQuirksMode(), usesDashbardCompatibilityMode);
215-
#if USE(IOSURFACE_CANVAS_BACKING_STORE) || (ENABLE(ACCELERATED_2D_CANVAS) && USE(ACCELERATED_COMPOSITING))
215+
#if USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS)
216216
// Need to make sure a RenderLayer and compositing layer get created for the Canvas
217217
setNeedsStyleRecalc(SyntheticStyleChange);
218218
#endif
@@ -356,10 +356,8 @@ void HTMLCanvasElement::reset()
356356
if (m_rendererIsCanvas) {
357357
if (oldSize != size()) {
358358
toRenderHTMLCanvas(renderer)->canvasSizeChanged();
359-
#if USE(ACCELERATED_COMPOSITING)
360359
if (renderBox() && renderBox()->hasAcceleratedCompositing())
361360
renderBox()->contentChanged(CanvasChanged);
362-
#endif
363361
}
364362
if (hadImageBuffer)
365363
renderer->repaint();
@@ -387,13 +385,12 @@ bool HTMLCanvasElement::paintsIntoCanvasBuffer() const
387385
return true;
388386
#endif
389387

390-
#if USE(ACCELERATED_COMPOSITING)
391388
if (!m_context->isAccelerated())
392389
return true;
393390

394391
if (renderBox() && renderBox()->hasAcceleratedCompositing())
395392
return false;
396-
#endif
393+
397394
return true;
398395
}
399396

@@ -616,7 +613,7 @@ void HTMLCanvasElement::createImageBuffer() const
616613
size_t numBytes = 4 * m_imageBuffer->internalSize().width() * m_imageBuffer->internalSize().height();
617614
scriptExecutionContext()->vm()->heap.reportExtraMemoryCost(numBytes);
618615

619-
#if USE(IOSURFACE_CANVAS_BACKING_STORE) || (ENABLE(ACCELERATED_2D_CANVAS) && USE(ACCELERATED_COMPOSITING))
616+
#if USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS)
620617
if (m_context && m_context->is2d())
621618
// Recalculate compositing requirements if acceleration state changed.
622619
const_cast<HTMLCanvasElement*>(this)->setNeedsStyleRecalc(SyntheticStyleChange);

0 commit comments

Comments
 (0)