Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(895)

Unified Diff: Source/core/layout/compositing/LayerCompositor.cpp

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/compositing/LayerCompositor.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/compositing/LayerCompositor.cpp
diff --git a/Source/core/layout/compositing/LayerCompositor.cpp b/Source/core/layout/compositing/LayerCompositor.cpp
index ce0916a0f361f47d82b55d8a50055b72fd9c5a98..90ddf4813b519bda6125586ec1564e4c7b698d73 100644
--- a/Source/core/layout/compositing/LayerCompositor.cpp
+++ b/Source/core/layout/compositing/LayerCompositor.cpp
@@ -39,6 +39,7 @@
#include "core/inspector/InspectorNodeIds.h"
#include "core/layout/LayerStackingNode.h"
#include "core/layout/LayerStackingNodeIterator.h"
+#include "core/layout/LayoutPart.h"
#include "core/layout/LayoutVideo.h"
#include "core/layout/compositing/CompositedLayerMapping.h"
#include "core/layout/compositing/CompositingInputsUpdater.h"
@@ -54,7 +55,6 @@
#include "core/paint/FramePainter.h"
#include "core/paint/TransformRecorder.h"
#include "core/rendering/RenderEmbeddedObject.h"
-#include "core/rendering/RenderPart.h"
#include "core/rendering/RenderView.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/ScriptForbiddenScope.h"
@@ -107,10 +107,10 @@ void LayerCompositor::setCompositingModeEnabled(bool enable)
m_compositing = enable;
- // RenderPart::requiresAcceleratedCompositing is used to determine self-paintingness
+ // LayoutPart::requiresAcceleratedCompositing is used to determine self-paintingness
// and bases it's return value for frames on the m_compositing bit here.
if (HTMLFrameOwnerElement* ownerElement = m_renderView.document().ownerElement()) {
- if (RenderPart* renderer = ownerElement->renderPart())
+ if (LayoutPart* renderer = ownerElement->layoutPart())
renderer->layer()->updateSelfPaintingLayer();
}
@@ -465,8 +465,8 @@ bool LayerCompositor::allocateOrClearCompositedLayerMapping(Layer* layer, const
break;
}
- if (compositedLayerMappingChanged && layer->renderer()->isRenderPart()) {
- LayerCompositor* innerCompositor = frameContentsCompositor(toRenderPart(layer->renderer()));
+ if (compositedLayerMappingChanged && layer->renderer()->isLayoutPart()) {
+ LayerCompositor* innerCompositor = frameContentsCompositor(toLayoutPart(layer->renderer()));
if (innerCompositor && innerCompositor->staleInCompositingMode())
innerCompositor->updateRootLayerAttachment();
}
@@ -614,7 +614,7 @@ String LayerCompositor::layerTreeAsText(LayerTreeFlags flags)
return layerTreeText;
}
-LayerCompositor* LayerCompositor::frameContentsCompositor(RenderPart* renderer)
+LayerCompositor* LayerCompositor::frameContentsCompositor(LayoutPart* renderer)
{
if (!renderer->node()->isFrameOwnerElement())
return 0;
@@ -628,7 +628,7 @@ LayerCompositor* LayerCompositor::frameContentsCompositor(RenderPart* renderer)
}
// FIXME: What does this function do? It needs a clearer name.
-bool LayerCompositor::parentFrameContentLayers(RenderPart* renderer)
+bool LayerCompositor::parentFrameContentLayers(LayoutPart* renderer)
{
LayerCompositor* innerCompositor = frameContentsCompositor(renderer);
if (!innerCompositor || !innerCompositor->staleInCompositingMode() || innerCompositor->rootLayerAttachment() != RootLayerAttachedViaEnclosingFrame)
« no previous file with comments | « Source/core/layout/compositing/LayerCompositor.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698