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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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/frame/Frame.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 292ab83a238eeb5de539a80a92d665646e848033..bd1df4b60215af676b1de481c767ee8f6aa7c087 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -47,11 +47,12 @@
#include "core/html/parser/TextResourceDecoder.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/InspectorTraceEvents.h"
+#include "core/layout/Layer.h"
#include "core/layout/LayoutCounter.h"
#include "core/layout/LayoutTheme.h"
#include "core/layout/compositing/CompositedLayerMapping.h"
#include "core/layout/compositing/CompositedSelectionBound.h"
-#include "core/layout/compositing/RenderLayerCompositor.h"
+#include "core/layout/compositing/LayerCompositor.h"
#include "core/loader/FrameLoader.h"
#include "core/loader/FrameLoaderClient.h"
#include "core/page/Chrome.h"
@@ -63,7 +64,6 @@
#include "core/page/scrolling/ScrollingCoordinator.h"
#include "core/paint/FramePainter.h"
#include "core/rendering/RenderEmbeddedObject.h"
-#include "core/rendering/RenderLayer.h"
#include "core/rendering/RenderListBox.h"
#include "core/rendering/RenderPart.h"
#include "core/rendering/RenderScrollbar.h"
@@ -385,7 +385,7 @@ bool FrameView::didFirstLayout() const
void FrameView::invalidateRect(const IntRect& rect)
{
- // For querying RenderLayer::compositingState() when invalidating scrollbars.
+ // For querying Layer::compositingState() when invalidating scrollbars.
// FIXME: do all scrollbar invalidations after layout of all frames is complete. It's currently not recursively true.
DisableCompositingQueryAsserts disabler;
if (!parent()) {
@@ -941,7 +941,7 @@ void FrameView::layout(bool allowSubtree)
}
FontCachePurgePreventer fontCachePurgePreventer;
- RenderLayer* layer;
+ Layer* layer;
{
TemporaryChange<bool> changeSchedulingEnabled(m_layoutSchedulingEnabled, false);
@@ -1340,11 +1340,11 @@ void FrameView::scrollContentsIfNeededRecursive()
}
// FIXME: If we had a flag to force invalidations in a whole subtree, we could get rid of this function (crbug.com/410097).
-static void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(const RenderLayer* layer)
+static void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(const Layer* layer)
{
layer->renderer()->setShouldDoFullPaintInvalidation();
- for (RenderLayer* child = layer->firstChild(); child; child = child->nextSibling()) {
+ for (Layer* child = layer->firstChild(); child; child = child->nextSibling()) {
// Don't include paint invalidation rects for composited child layers; they will paint themselves and have a different origin.
if (child->isPaintInvalidationContainer())
continue;
@@ -1367,7 +1367,7 @@ bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta)
RenderObject* renderer = viewportConstrainedObject;
ASSERT(renderer->style()->hasViewportConstrainedPosition());
ASSERT(renderer->hasLayer());
- RenderLayer* layer = toRenderBoxModelObject(renderer)->layer();
+ Layer* layer = toRenderBoxModelObject(renderer)->layer();
if (layer->isPaintInvalidationContainer())
continue;
@@ -2221,7 +2221,7 @@ IntRect FrameView::windowClipRectForFrameOwner(const HTMLFrameOwnerElement* owne
return windowClipRect();
// If we have no layer, just return our window clip rect.
- const RenderLayer* enclosingLayer = ownerElement->renderer()->enclosingLayer();
+ const Layer* enclosingLayer = ownerElement->renderer()->enclosingLayer();
if (!enclosingLayer)
return windowClipRect();
« no previous file with comments | « Source/core/frame/Frame.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698