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

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

Issue 851593002: Delete RenderSelectionInfo and other selection rect paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/RenderLayer.cpp
diff --git a/sky/engine/core/rendering/RenderLayer.cpp b/sky/engine/core/rendering/RenderLayer.cpp
index 2ffe2e31e1722ba118d989c45f9808d335989809..b020b23408ff5b39a9c8d6151bca5f78baad63d8 100644
--- a/sky/engine/core/rendering/RenderLayer.cpp
+++ b/sky/engine/core/rendering/RenderLayer.cpp
@@ -1641,29 +1641,6 @@ RenderLayer* RenderLayer::hitTestChildren(ChildrenIteration childrentoVisit, Ren
return resultLayer;
}
-void RenderLayer::addBlockSelectionGapsBounds(const LayoutRect& bounds)
-{
- m_blockSelectionGapsBounds.unite(enclosingIntRect(bounds));
-}
-
-void RenderLayer::clearBlockSelectionGapsBounds()
-{
- m_blockSelectionGapsBounds = IntRect();
- for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
- child->clearBlockSelectionGapsBounds();
-}
-
-IntRect RenderLayer::blockSelectionGapsBounds() const
-{
- if (!renderer()->isRenderBlock())
- return IntRect();
-
- RenderBlock* renderBlock = toRenderBlock(renderer());
- LayoutRect gapRects = renderBlock->selectionGapRectsForPaintInvalidation(renderBlock);
-
- return pixelSnappedIntRect(gapRects);
-}
-
bool RenderLayer::intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& damageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot) const
{
// Always examine the canvas and the root.

Powered by Google App Engine
This is Rietveld 408576698