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

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

Issue 2455703003: [SPInvalidation] Call LayoutObject::adjustVisualRectForRasterEffects from PaintInvalidator (Closed)
Patch Set: - Created 4 years, 1 month 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 | « third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp ('k') | 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/PaintInvalidator.h" 5 #include "core/paint/PaintInvalidator.h"
6 6
7 #include "core/editing/FrameSelection.h" 7 #include "core/editing/FrameSelection.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool success = false; 117 bool success = false;
118 result.rect = LayoutRect(geometryMapper.mapToVisualRectInDestinationSpace( 118 result.rect = LayoutRect(geometryMapper.mapToVisualRectInDestinationSpace(
119 rect, currentTreeState, containerContentsProperties.propertyTreeState, 119 rect, currentTreeState, containerContentsProperties.propertyTreeState,
120 success)); 120 success));
121 DCHECK(success); 121 DCHECK(success);
122 122
123 // Convert the result to the container's contents space. 123 // Convert the result to the container's contents space.
124 result.rect.moveBy(-containerContentsProperties.paintOffset); 124 result.rect.moveBy(-containerContentsProperties.paintOffset);
125 } 125 }
126 126
127 if (object.adjustVisualRectForRasterEffects(result.rect))
128 result.coversExtraPixels = true;
129
127 if (context.paintInvalidationContainer->layer()->groupedMapping()) { 130 if (context.paintInvalidationContainer->layer()->groupedMapping()) {
128 PaintLayer::mapRectInPaintInvalidationContainerToBacking( 131 PaintLayer::mapRectInPaintInvalidationContainerToBacking(
129 *context.paintInvalidationContainer, result.rect); 132 *context.paintInvalidationContainer, result.rect);
130 } 133 }
131 return result; 134 return result;
132 } 135 }
133 136
134 void PaintInvalidatorContext::mapLocalRectToPaintInvalidationBacking( 137 void PaintInvalidatorContext::mapLocalRectToPaintInvalidationBacking(
135 const LayoutObject& object, 138 const LayoutObject& object,
136 LayoutRect& rect) const { 139 LayoutRect& rect) const {
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 object.getMutableForPainting().clearPaintInvalidationFlags(); 468 object.getMutableForPainting().clearPaintInvalidationFlags();
466 } 469 }
467 470
468 void PaintInvalidator::processPendingDelayedPaintInvalidations() { 471 void PaintInvalidator::processPendingDelayedPaintInvalidations() {
469 for (auto target : m_pendingDelayedPaintInvalidations) 472 for (auto target : m_pendingDelayedPaintInvalidations)
470 target->getMutableForPainting().setShouldDoFullPaintInvalidation( 473 target->getMutableForPainting().setShouldDoFullPaintInvalidation(
471 PaintInvalidationDelayedFull); 474 PaintInvalidationDelayedFull);
472 } 475 }
473 476
474 } // namespace blink 477 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698