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

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

Issue 2706553002: Remove force-update when visual rects change (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 // 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 PaintInvalidatorContext::ForcedSubtreeSVGResourceChange; 427 PaintInvalidatorContext::ForcedSubtreeSVGResourceChange;
428 break; 428 break;
429 default: 429 default:
430 break; 430 break;
431 } 431 }
432 432
433 if (context.oldLocation != context.newLocation) { 433 if (context.oldLocation != context.newLocation) {
434 context.forcedSubtreeInvalidationFlags |= 434 context.forcedSubtreeInvalidationFlags |=
435 PaintInvalidatorContext::ForcedSubtreeInvalidationChecking; 435 PaintInvalidatorContext::ForcedSubtreeInvalidationChecking;
436 } 436 }
437
438 // TODO(crbug.com/490725): This is a workaround for the bug, to force
439 // descendant to update visual rects on clipping change.
440 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() &&
441 context.oldVisualRect != context.newVisualRect
442 // Note that isLayoutView() below becomes unnecessary after the launch of
443 // root layer scrolling.
444 && (object.hasOverflowClip() || object.isLayoutView()) &&
445 !toLayoutBox(object).usesCompositedScrolling())
446 context.forcedSubtreeInvalidationFlags |=
447 PaintInvalidatorContext::ForcedSubtreeInvalidationRectUpdate;
Xianzhu 2017/02/21 19:31:00 We still need to set the flag on ancestor clip cha
chrishtr 2017/02/27 21:15:36 Is this test exhibiting a case where the paint inv
448 } 437 }
449 438
450 void PaintInvalidator::processPendingDelayedPaintInvalidations() { 439 void PaintInvalidator::processPendingDelayedPaintInvalidations() {
451 for (auto target : m_pendingDelayedPaintInvalidations) 440 for (auto target : m_pendingDelayedPaintInvalidations)
452 target->getMutableForPainting().setShouldDoFullPaintInvalidation( 441 target->getMutableForPainting().setShouldDoFullPaintInvalidation(
453 PaintInvalidationDelayedFull); 442 PaintInvalidationDelayedFull);
454 } 443 }
455 444
456 } // namespace blink 445 } // 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