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

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

Issue 713073003: remove updateTouchEventTargetRectsIfNeeded (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: moar Created 6 years, 1 month 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/RenderLayerModelObject.cpp
diff --git a/sky/engine/core/rendering/RenderLayerModelObject.cpp b/sky/engine/core/rendering/RenderLayerModelObject.cpp
index 17c9b473f0ef253c23a5ddcd0367aa66058ccfc1..e602e8d7c49451b1b3ca2138d4cab9f2665616f2 100644
--- a/sky/engine/core/rendering/RenderLayerModelObject.cpp
+++ b/sky/engine/core/rendering/RenderLayerModelObject.cpp
@@ -120,24 +120,6 @@ void RenderLayerModelObject::styleDidChange(StyleDifference diff, const RenderSt
}
}
-void RenderLayerModelObject::addLayerHitTestRects(LayerHitTestRects& rects, const RenderLayer* currentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) const
-{
- if (hasLayer()) {
- if (isRenderView()) {
- // RenderView is handled with a special fast-path, but it needs to know the current layer.
- RenderObject::addLayerHitTestRects(rects, layer(), LayoutPoint(), LayoutRect());
- } else {
- // Since a RenderObject never lives outside it's container RenderLayer, we can switch
- // to marking entire layers instead. This may sometimes mark more than necessary (when
- // a layer is made of disjoint objects) but in practice is a significant performance
- // savings.
- layer()->addLayerHitTestRects(rects);
- }
- } else {
- RenderObject::addLayerHitTestRects(rects, currentLayer, layerOffset, containerRect);
- }
-}
-
InvalidationReason RenderLayerModelObject::invalidatePaintIfNeeded(const PaintInvalidationState& paintInvalidationState, const RenderLayerModelObject& newPaintInvalidationContainer)
{
const LayoutRect oldPaintInvalidationRect = previousPaintInvalidationRect();

Powered by Google App Engine
This is Rietveld 408576698