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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.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/paint/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 6e0d754ae16c97c49dafa8957abfa1757cb74932..f37495ddf1aeb21d40622aff79435c18e642f371 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -490,16 +490,16 @@ void PaintInvalidator::InvalidatePaint(
PaintInvalidationReason reason = object.InvalidatePaint(context);
switch (reason) {
- case kPaintInvalidationDelayedFull:
+ case PaintInvalidationReason::kDelayedFull:
pending_delayed_paint_invalidations_.push_back(&object);
break;
- case kPaintInvalidationSubtree:
+ case PaintInvalidationReason::kSubtree:
context.forced_subtree_invalidation_flags |=
(PaintInvalidatorContext::kForcedSubtreeFullInvalidation |
PaintInvalidatorContext::
kForcedSubtreeFullInvalidationForStackedContents);
break;
- case kPaintInvalidationSVGResourceChange:
+ case PaintInvalidationReason::kSVGResource:
context.forced_subtree_invalidation_flags |=
PaintInvalidatorContext::kForcedSubtreeSVGResourceChange;
break;
@@ -531,7 +531,7 @@ void PaintInvalidator::ProcessPendingDelayedPaintInvalidations() {
for (auto target : pending_delayed_paint_invalidations_) {
target->GetMutableForPainting()
.SetShouldDoFullPaintInvalidationWithoutGeometryChange(
- kPaintInvalidationDelayedFull);
+ PaintInvalidationReason::kDelayedFull);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698