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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2899633002: Make EImageRendering an enum class. (Closed)
Patch Set: Rebase 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/html/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index 2647b5046d9e6054f03db6c191ec9837e6625205..7b0449110c4de4ed2b76f1126c511ecf848046d4 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -534,7 +534,7 @@ void HTMLCanvasElement::Paint(GraphicsContext& context, const LayoutRect& r) {
const ComputedStyle* style = EnsureComputedStyle();
SkFilterQuality filter_quality =
- (style && style->ImageRendering() == kImageRenderingPixelated)
+ (style && style->ImageRendering() == EImageRendering::kPixelated)
? kNone_SkFilterQuality
: kLow_SkFilterQuality;

Powered by Google App Engine
This is Rietveld 408576698