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

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

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: NeedsRebaseline 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/ObjectPaintInvalidator.h" 5 #include "core/paint/ObjectPaintInvalidator.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/layout/LayoutView.h" 9 #include "core/layout/LayoutView.h"
10 #include "core/layout/api/LayoutPartItem.h" 10 #include "core/layout/api/LayoutPartItem.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // here. It is already taken into account. 311 // here. It is already taken into account.
312 squashingLayer->setNeedsDisplayInRect(enclosingIntRect(rect), reason, 312 squashingLayer->setNeedsDisplayInRect(enclosingIntRect(rect), reason,
313 m_object); 313 m_object);
314 } 314 }
315 } else if (m_object.compositedScrollsWithRespectTo( 315 } else if (m_object.compositedScrollsWithRespectTo(
316 paintInvalidationContainer)) { 316 paintInvalidationContainer)) {
317 layer.compositedLayerMapping()->setScrollingContentsNeedDisplayInRect( 317 layer.compositedLayerMapping()->setScrollingContentsNeedDisplayInRect(
318 rect, reason, m_object); 318 rect, reason, m_object);
319 } else if (paintInvalidationContainer.usesCompositedScrolling()) { 319 } else if (paintInvalidationContainer.usesCompositedScrolling()) {
320 DCHECK(m_object == paintInvalidationContainer); 320 DCHECK(m_object == paintInvalidationContainer);
321 if (reason == PaintInvalidationBackgroundOnScrollingContentsLayer) { 321 if (reason == PaintInvalidationBackgroundOnScrollingContentsLayer ||
322 reason == PaintInvalidationCaret) {
322 layer.compositedLayerMapping()->setScrollingContentsNeedDisplayInRect( 323 layer.compositedLayerMapping()->setScrollingContentsNeedDisplayInRect(
323 rect, reason, m_object); 324 rect, reason, m_object);
324 } else { 325 } else {
325 layer.compositedLayerMapping()->setNonScrollingContentsNeedDisplayInRect( 326 layer.compositedLayerMapping()->setNonScrollingContentsNeedDisplayInRect(
326 rect, reason, m_object); 327 rect, reason, m_object);
327 } 328 }
328 } else { 329 } else {
329 // Otherwise invalidate everything. 330 // Otherwise invalidate everything.
330 layer.compositedLayerMapping()->setContentsNeedDisplayInRect(rect, reason, 331 layer.compositedLayerMapping()->setContentsNeedDisplayInRect(rect, reason,
331 m_object); 332 m_object);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 605
605 m_context.paintingLayer->setNeedsRepaint(); 606 m_context.paintingLayer->setNeedsRepaint();
606 m_object.invalidateDisplayItemClients(reason); 607 m_object.invalidateDisplayItemClients(reason);
607 return reason; 608 return reason;
608 } 609 }
609 610
610 DisablePaintInvalidationStateAsserts::DisablePaintInvalidationStateAsserts() 611 DisablePaintInvalidationStateAsserts::DisablePaintInvalidationStateAsserts()
611 : m_disabler(&gDisablePaintInvalidationStateAsserts, true) {} 612 : m_disabler(&gDisablePaintInvalidationStateAsserts, true) {}
612 613
613 } // namespace blink 614 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/BlockPainter.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698