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

Unified Diff: sky/engine/core/rendering/RenderView.cpp

Issue 686653002: Remove a bunch of fixed position dead code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
Index: sky/engine/core/rendering/RenderView.cpp
diff --git a/sky/engine/core/rendering/RenderView.cpp b/sky/engine/core/rendering/RenderView.cpp
index 237b5f927c0a37c1ebd33cc4a958ce6b8ccae808..c7b4805438f0e4974eb02235ece5e2b75fd34de0 100644
--- a/sky/engine/core/rendering/RenderView.cpp
+++ b/sky/engine/core/rendering/RenderView.cpp
@@ -191,10 +191,8 @@ void RenderView::layout()
clearNeedsLayout();
}
-void RenderView::mapLocalToContainer(const RenderLayerModelObject* paintInvalidationContainer, TransformState& transformState, MapCoordinatesFlags mode, bool* wasFixed, const PaintInvalidationState* paintInvalidationState) const
+void RenderView::mapLocalToContainer(const RenderLayerModelObject* paintInvalidationContainer, TransformState& transformState, MapCoordinatesFlags mode, const PaintInvalidationState* paintInvalidationState) const
{
- ASSERT_UNUSED(wasFixed, !wasFixed || *wasFixed == static_cast<bool>(mode & IsFixed));
-
if (!paintInvalidationContainer && mode & UseTransforms && shouldUseTransformFromContainer(0)) {
TransformationMatrix t;
getTransformFromContainer(0, LayoutSize(), t);
@@ -369,10 +367,8 @@ void RenderView::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumu
rects.append(pixelSnappedIntRect(accumulatedOffset, layer()->size()));
}
-void RenderView::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const
+void RenderView::absoluteQuads(Vector<FloatQuad>& quads) const
{
- if (wasFixed)
- *wasFixed = false;
quads.append(FloatRect(FloatPoint(), layer()->size()));
}
« no previous file with comments | « sky/engine/core/rendering/RenderView.h ('k') | sky/engine/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698