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

Unified Diff: Source/core/dom/DocumentMarkerController.cpp

Issue 574913002: Revert of Revert of Temporarily let DocumentMakerController use invalidatePaintForWholeRenderer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentMarkerController.cpp
diff --git a/Source/core/dom/DocumentMarkerController.cpp b/Source/core/dom/DocumentMarkerController.cpp
index d7ebca2956ac1213eb96d322f10245bda214e52a..354d82a857fc1499f6d60a36896db5202f0f5dd0 100644
--- a/Source/core/dom/DocumentMarkerController.cpp
+++ b/Source/core/dom/DocumentMarkerController.cpp
@@ -235,7 +235,7 @@
// repaint the affected node
if (node->renderer())
- node->renderer()->setShouldDoFullPaintInvalidation(true);
+ node->renderer()->doNotUseInvalidatePaintForWholeRendererSynchronously();
}
void DocumentMarkerController::mergeOverlapping(MarkerList* list, DocumentMarker& toInsert)
@@ -296,7 +296,7 @@
// repaint the affected node
if (docDirty && dstNode->renderer())
- dstNode->renderer()->setShouldDoFullPaintInvalidation(true);
+ dstNode->renderer()->doNotUseInvalidatePaintForWholeRendererSynchronously();
}
void DocumentMarkerController::removeMarkers(Node* node, unsigned startOffset, int length, DocumentMarker::MarkerTypes markerTypes, RemovePartiallyOverlappingMarkerOrNot shouldRemovePartiallyOverlappingMarker)
@@ -377,7 +377,7 @@
// repaint the affected node
if (docDirty && node->renderer())
- node->renderer()->setShouldDoFullPaintInvalidation(true);
+ node->renderer()->doNotUseInvalidatePaintForWholeRendererSynchronously();
}
DocumentMarker* DocumentMarkerController::markerContainingPoint(const LayoutPoint& point, DocumentMarker::MarkerType markerType)
@@ -586,7 +586,7 @@
if (needsRepainting) {
if (RenderObject* renderer = iterator->key->renderer())
- renderer->setShouldDoFullPaintInvalidation(true);
+ renderer->doNotUseInvalidatePaintForWholeRendererSynchronously();
}
if (nodeCanBeRemoved) {
@@ -616,7 +616,7 @@
// cause the node to be redrawn
if (RenderObject* renderer = node->renderer()) {
- renderer->setShouldDoFullPaintInvalidation(true);
+ renderer->doNotUseInvalidatePaintForWholeRendererSynchronously();
break;
}
}
@@ -670,7 +670,7 @@
// repaint the affected node
if (docDirty && node->renderer())
- node->renderer()->setShouldDoFullPaintInvalidation(true);
+ node->renderer()->doNotUseInvalidatePaintForWholeRendererSynchronously();
}
void DocumentMarkerController::setMarkersActive(Range* range, bool active)
@@ -714,7 +714,7 @@
// repaint the affected node
if (docDirty && node->renderer())
- node->renderer()->setShouldDoFullPaintInvalidation(true);
+ node->renderer()->doNotUseInvalidatePaintForWholeRendererSynchronously();
}
bool DocumentMarkerController::hasMarkers(Range* range, DocumentMarker::MarkerTypes markerTypes)
« no previous file with comments | « no previous file | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698