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

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

Issue 844023003: Delete InvalidationReason. (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
« no previous file with comments | « sky/engine/core/rendering/RenderView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderView.cpp
diff --git a/sky/engine/core/rendering/RenderView.cpp b/sky/engine/core/rendering/RenderView.cpp
index 7582b998d21d34a7746e3dd9bfce38bfc1388b19..fa97d8d79d578ea426740cb78e4b37ab0156b1b7 100644
--- a/sky/engine/core/rendering/RenderView.cpp
+++ b/sky/engine/core/rendering/RenderView.cpp
@@ -364,28 +364,6 @@ IntRect RenderView::selectionBounds(bool clipToVisibleContent) const
return pixelSnappedIntRect(selRect);
}
-void RenderView::invalidatePaintForSelection() const
-{
- HashSet<RenderBlock*> processedBlocks;
-
- RenderObject* end = rendererAfterPosition(m_selectionEnd, m_selectionEndPos);
- for (RenderObject* o = m_selectionStart; o && o != end; o = o->nextInPreOrder()) {
- if (!o->canBeSelectionLeaf() && o != m_selectionStart && o != m_selectionEnd)
- continue;
- if (o->selectionState() == SelectionNone)
- continue;
-
- RenderSelectionInfo(o, true).invalidatePaint();
-
- // Blocks are responsible for painting line gaps and margin gaps. They must be examined as well.
- for (RenderBlock* block = o->containingBlock(); block && !block->isRenderView(); block = block->containingBlock()) {
- if (!processedBlocks.add(block).isNewEntry)
- break;
- RenderSelectionInfo(block, true).invalidatePaint();
- }
- }
-}
-
// When exploring the RenderTree looking for the nodes involved in the Selection, sometimes it's
// required to change the traversing direction because the "start" position is below the "end" one.
static inline RenderObject* getNextOrPrevRenderObjectBasedOnDirection(const RenderObject* o, const RenderObject* stop, bool& continueExploring, bool& exploringBackwards)
« no previous file with comments | « sky/engine/core/rendering/RenderView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698