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

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

Issue 842113005: Delete a bunch of noop paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix comment 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
« no previous file with comments | « sky/engine/core/rendering/RenderLayerScrollableArea.h ('k') | sky/engine/platform/HostWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderLayerScrollableArea.cpp
diff --git a/sky/engine/core/rendering/RenderLayerScrollableArea.cpp b/sky/engine/core/rendering/RenderLayerScrollableArea.cpp
index afe3fced9991b8f19b12e955b0289539d161bf13..37bf7b37d2abfaacb81f4a88fd5ae96f8ffb51ab 100644
--- a/sky/engine/core/rendering/RenderLayerScrollableArea.cpp
+++ b/sky/engine/core/rendering/RenderLayerScrollableArea.cpp
@@ -106,28 +106,6 @@ HostWindow* RenderLayerScrollableArea::hostWindow() const
return nullptr;
}
-// FIXME(sky): Remove
-void RenderLayerScrollableArea::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
-{
- IntRect scrollRect = rect;
- // If we are not yet inserted into the tree, there is no need to issue paint invaldiations.
- if (!box().parent())
- return;
-
- if (scrollbar == m_vBar.get())
- scrollRect.move(verticalScrollbarStart(0, box().width()), box().borderTop());
- else
- scrollRect.move(horizontalScrollbarStart(0), box().height() - box().borderBottom() - scrollbar->height());
-
- if (scrollRect.isEmpty())
- return;
-
- IntRect intRect = pixelSnappedIntRect(scrollRect);
-
- if (box().frameView()->isInPerformLayout())
- addScrollbarDamage(scrollbar, intRect);
-}
-
bool RenderLayerScrollableArea::isActive() const
{
Page* page = box().frame()->page();
« no previous file with comments | « sky/engine/core/rendering/RenderLayerScrollableArea.h ('k') | sky/engine/platform/HostWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698