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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2702233003: Remove unused processedBlocks variable. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 } 599 }
600 } 600 }
601 601
602 os = os->nextInPreOrder(); 602 os = os->nextInPreOrder();
603 } 603 }
604 604
605 return pixelSnappedIntRect(selRect); 605 return pixelSnappedIntRect(selRect);
606 } 606 }
607 607
608 void LayoutView::invalidatePaintForSelection() { 608 void LayoutView::invalidatePaintForSelection() {
609 HashSet<LayoutBlock*> processedBlocks;
610
611 LayoutObject* end = 609 LayoutObject* end =
612 layoutObjectAfterPosition(m_selectionEnd, m_selectionEndPos); 610 layoutObjectAfterPosition(m_selectionEnd, m_selectionEndPos);
613 for (LayoutObject* o = m_selectionStart; o && o != end; 611 for (LayoutObject* o = m_selectionStart; o && o != end;
614 o = o->nextInPreOrder()) { 612 o = o->nextInPreOrder()) {
615 if (!o->canBeSelectionLeaf() && o != m_selectionStart && 613 if (!o->canBeSelectionLeaf() && o != m_selectionStart &&
616 o != m_selectionEnd) 614 o != m_selectionEnd)
617 continue; 615 continue;
618 if (o->getSelectionState() == SelectionNone) 616 if (o->getSelectionState() == SelectionNone)
619 continue; 617 continue;
620 618
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 bool LayoutView::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { 1047 bool LayoutView::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
1050 // Frame scroll corner is painted using LayoutView as the display item client. 1048 // Frame scroll corner is painted using LayoutView as the display item client.
1051 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() && 1049 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() &&
1052 (frameView()->horizontalScrollbar() || frameView()->verticalScrollbar())) 1050 (frameView()->horizontalScrollbar() || frameView()->verticalScrollbar()))
1053 return false; 1051 return false;
1054 1052
1055 return LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize(); 1053 return LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize();
1056 } 1054 }
1057 1055
1058 } // namespace blink 1056 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698