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

Unified Diff: third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.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/HTMLCanvasPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.cpp
index 2b50d3a2ede74225616ce0ee1384a967aeb31202..a1b6443ca437d32c6bf975e0d262f403c74acdf8 100644
--- a/third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.cpp
@@ -18,8 +18,8 @@ PaintInvalidationReason HTMLCanvasPaintInvalidator::InvalidatePaint() {
HTMLCanvasElement* element = toHTMLCanvasElement(html_canvas_.GetNode());
if (element->IsDirty()) {
element->DoDeferredPaintInvalidation();
- if (reason < kPaintInvalidationRectangle)
- reason = kPaintInvalidationRectangle;
+ if (reason < PaintInvalidationReason::kRectangle)
+ reason = PaintInvalidationReason::kRectangle;
}
return reason;

Powered by Google App Engine
This is Rietveld 408576698