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

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

Issue 2689213004: *** NOT FOR LANDING *** Paint investigations for bug 667370 (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
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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 PaintInvalidatorContext::ForcedSubtreeInvalidationChecking; 435 PaintInvalidatorContext::ForcedSubtreeInvalidationChecking;
436 } 436 }
437 437
438 // TODO(crbug.com/490725): This is a workaround for the bug, to force 438 // TODO(crbug.com/490725): This is a workaround for the bug, to force
439 // descendant to update visual rects on clipping change. 439 // descendant to update visual rects on clipping change.
440 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && 440 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() &&
441 context.oldVisualRect != context.newVisualRect 441 context.oldVisualRect != context.newVisualRect
442 // Note that isLayoutView() below becomes unnecessary after the launch of 442 // Note that isLayoutView() below becomes unnecessary after the launch of
443 // root layer scrolling. 443 // root layer scrolling.
444 && (object.hasOverflowClip() || object.isLayoutView()) && 444 && (object.hasOverflowClip() || object.isLayoutView()) &&
445 !toLayoutBox(object).usesCompositedScrolling()) 445 !toLayoutBox(object).usesCompositedScrolling()) {
446 context.forcedSubtreeInvalidationFlags |= 446 // context.forcedSubtreeInvalidationFlags |=
447 PaintInvalidatorContext::ForcedSubtreeInvalidationRectUpdate; 447 // PaintInvalidatorContext::ForcedSubtreeInvalidationRectUpdate;
448 }
448 } 449 }
449 450
450 void PaintInvalidator::processPendingDelayedPaintInvalidations() { 451 void PaintInvalidator::processPendingDelayedPaintInvalidations() {
451 for (auto target : m_pendingDelayedPaintInvalidations) 452 for (auto target : m_pendingDelayedPaintInvalidations)
452 target->getMutableForPainting().setShouldDoFullPaintInvalidation( 453 target->getMutableForPainting().setShouldDoFullPaintInvalidation(
453 PaintInvalidationDelayedFull); 454 PaintInvalidationDelayedFull);
454 } 455 }
455 456
456 } // namespace blink 457 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698