Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
index 14b67805a4fb7a23082def456c4fc666593d9f2e..e7a504a3bc5b833ac04969f48befc83b6957c51e 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -93,6 +93,7 @@ |
#include "core/page/scrolling/RootScrollerUtil.h" |
#include "core/page/scrolling/ScrollingCoordinator.h" |
#include "core/page/scrolling/TopDocumentRootScrollerController.h" |
+#include "core/paint/BlockPaintInvalidator.h" |
#include "core/paint/FramePainter.h" |
#include "core/paint/PaintLayer.h" |
#include "core/paint/PaintTiming.h" |
@@ -1340,8 +1341,6 @@ void FrameView::invalidatePaintIfNeeded( |
RELEASE_ASSERT(!layoutViewItem().isNull()); |
if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled()) |
invalidatePaintOfScrollControlsIfNeeded(paintInvalidationState); |
- |
- m_frame->selection().invalidateCaretRect(); |
} |
void FrameView::setNeedsPaintPropertyUpdate() { |
@@ -3027,6 +3026,8 @@ void FrameView::prePaint() { |
TRACE_EVENT0("blink", "FrameView::prePaint"); |
SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PrePaint.UpdateTime"); |
+ BlockPaintInvalidator::setMayNeedPaintInvalidationForCaretsIfNeeded(frame()); |
chrishtr
2017/01/31 22:51:04
Why is this needed?
|
+ |
if (!m_paintController) |
m_paintController = PaintController::create(); |
@@ -3252,6 +3253,8 @@ void FrameView::invalidateTreeIfNeededRecursive() { |
{ |
// For comparison to SlimmingPaintInvalidation. |
SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PrePaint.UpdateTime"); |
+ BlockPaintInvalidator::setMayNeedPaintInvalidationForCaretsIfNeeded( |
chrishtr
2017/01/31 22:51:04
Same quesiton.
|
+ frame()); |
invalidateTreeIfNeededRecursiveInternal(); |
} |
} |
@@ -3264,8 +3267,7 @@ void FrameView::invalidateTreeIfNeededRecursiveInternal() { |
// throttled even though we are (e.g., it didn't compute its visibility yet). |
if (shouldThrottleRendering()) |
return; |
- TRACE_EVENT1("blink", "FrameView::invalidateTreeIfNeededRecursive", "root", |
- layoutView()->debugName().ascii()); |
+ TRACE_EVENT0("blink", "FrameView::invalidateTreeIfNeededRecursiveInternal"); |
Vector<const LayoutObject*> pendingDelayedPaintInvalidations; |
PaintInvalidationState rootPaintInvalidationState( |
@@ -3278,8 +3280,8 @@ void FrameView::invalidateTreeIfNeededRecursiveInternal() { |
// because |
// - the frame is a detached frame; or |
// - it didn't need paint invalidation. |
- // We need to call invalidateTreeIfNeededRecursive() for such frames to finish |
- // required paint invalidation and advance their life cycle state. |
+ // We need to call invalidateTreeIfNeededRecursiveInternal() for such frames |
+ // to finish required paint invalidation and advance their life cycle state. |
for (Frame* child = m_frame->tree().firstChild(); child; |
child = child->tree().nextSibling()) { |
if (child->isLocalFrame()) { |