| 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)
|
|
|