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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 years, 7 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
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
index 0566f7cff8f0cf19bda506d358d9109eee305fde..8caa09c85df01008433fa9cb2b22ebca0b237255 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -229,7 +229,7 @@ void DocumentMarkerController::AddMarker(Node* node,
// repaint the affected node
if (node->GetLayoutObject()) {
node->GetLayoutObject()->SetShouldDoFullPaintInvalidation(
- kPaintInvalidationDocumentMarkerChange);
+ PaintInvalidationReason::kDocumentMarker);
}
}
@@ -272,7 +272,7 @@ void DocumentMarkerController::MoveMarkers(Node* src_node,
// repaint the affected node
if (doc_dirty && dst_node->GetLayoutObject()) {
dst_node->GetLayoutObject()->SetShouldDoFullPaintInvalidation(
- kPaintInvalidationDocumentMarkerChange);
+ PaintInvalidationReason::kDocumentMarker);
}
}
@@ -323,7 +323,7 @@ void DocumentMarkerController::RemoveMarkersInternal(
// repaint the affected node
if (doc_dirty && node->GetLayoutObject()) {
node->GetLayoutObject()->SetShouldDoFullPaintInvalidation(
- kPaintInvalidationDocumentMarkerChange);
+ PaintInvalidationReason::kDocumentMarker);
}
}
@@ -576,7 +576,7 @@ void DocumentMarkerController::RemoveMarkersFromList(
const Node& node = *iterator->key;
if (LayoutObject* layout_object = node.GetLayoutObject()) {
layout_object->SetShouldDoFullPaintInvalidation(
- kPaintInvalidationDocumentMarkerChange);
+ PaintInvalidationReason::kDocumentMarker);
}
InvalidatePaintForTickmarks(node);
}
@@ -609,7 +609,7 @@ void DocumentMarkerController::RepaintMarkers(
// cause the node to be redrawn
if (LayoutObject* layout_object = node->GetLayoutObject()) {
layout_object->SetShouldDoFullPaintInvalidation(
- kPaintInvalidationDocumentMarkerChange);
+ PaintInvalidationReason::kDocumentMarker);
break;
}
}
@@ -680,7 +680,7 @@ bool DocumentMarkerController::SetMarkersActive(Node* node,
// repaint the affected node
if (doc_dirty && node->GetLayoutObject()) {
node->GetLayoutObject()->SetShouldDoFullPaintInvalidation(
- kPaintInvalidationDocumentMarkerChange);
+ PaintInvalidationReason::kDocumentMarker);
}
return doc_dirty;
}

Powered by Google App Engine
This is Rietveld 408576698