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

Side by Side Diff: third_party/WebKit/Source/core/paint/BlockFlowPainter.cpp

Issue 1537133002: Renaming: distinguish ancestor, container and paintInvalidationContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SelectionInvalidation
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/BlockFlowPainter.h" 5 #include "core/paint/BlockFlowPainter.h"
6 6
7 #include "core/layout/FloatingObjects.h" 7 #include "core/layout/FloatingObjects.h"
8 #include "core/layout/LayoutBlockFlow.h" 8 #include "core/layout/LayoutBlockFlow.h"
9 #include "core/paint/ClipScope.h" 9 #include "core/paint/ClipScope.h"
10 #include "core/paint/LayoutObjectDrawingRecorder.h" 10 #include "core/paint/LayoutObjectDrawingRecorder.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 LayoutRect gapRectsBounds = m_layoutBlockFlow.selectionGaps(&m_layoutBlockFl ow, paintOffset, LayoutSize(), lastTop, lastLeft, lastRight, 72 LayoutRect gapRectsBounds = m_layoutBlockFlow.selectionGaps(&m_layoutBlockFl ow, paintOffset, LayoutSize(), lastTop, lastLeft, lastRight,
73 skipRecording ? nullptr : &paintInfo, 73 skipRecording ? nullptr : &paintInfo,
74 skipRecording ? nullptr : &(*clipScope)); 74 skipRecording ? nullptr : &(*clipScope));
75 // TODO(wkorman): Rework below to process paint invalidation rects during la yout rather than paint. 75 // TODO(wkorman): Rework below to process paint invalidation rects during la yout rather than paint.
76 if (!gapRectsBounds.isEmpty()) { 76 if (!gapRectsBounds.isEmpty()) {
77 PaintLayer* layer = m_layoutBlockFlow.enclosingLayer(); 77 PaintLayer* layer = m_layoutBlockFlow.enclosingLayer();
78 gapRectsBounds.moveBy(-paintOffset); 78 gapRectsBounds.moveBy(-paintOffset);
79 if (!m_layoutBlockFlow.hasLayer()) { 79 if (!m_layoutBlockFlow.hasLayer()) {
80 LayoutRect localBounds(gapRectsBounds); 80 LayoutRect localBounds(gapRectsBounds);
81 m_layoutBlockFlow.flipForWritingMode(localBounds); 81 m_layoutBlockFlow.flipForWritingMode(localBounds);
82 gapRectsBounds = LayoutRect(m_layoutBlockFlow.localToContainerQuad(F loatRect(localBounds), layer->layoutObject()).enclosingBoundingBox()); 82 gapRectsBounds = LayoutRect(m_layoutBlockFlow.localToAncestorQuad(Fl oatRect(localBounds), layer->layoutObject()).enclosingBoundingBox());
83 if (layer->layoutObject()->hasOverflowClip()) 83 if (layer->layoutObject()->hasOverflowClip())
84 gapRectsBounds.move(layer->layoutBox()->scrolledContentOffset()) ; 84 gapRectsBounds.move(layer->layoutBox()->scrolledContentOffset()) ;
85 } 85 }
86 layer->addBlockSelectionGapsBounds(gapRectsBounds); 86 layer->addBlockSelectionGapsBounds(gapRectsBounds);
87 } 87 }
88 } 88 }
89 89
90 } // namespace blink 90 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698