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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 43a50f38e72e63e93ccdbaceed4dc926c299b7ea..c013d1968e46c6deab808021742887785907b331 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -961,12 +961,14 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
}
// image-rendering
- static EImageRendering InitialImageRendering() { return kImageRenderingAuto; }
+ static EImageRendering InitialImageRendering() {
+ return EImageRendering::kAuto;
+ }
EImageRendering ImageRendering() const {
return static_cast<EImageRendering>(rare_inherited_data_->image_rendering_);
}
void SetImageRendering(EImageRendering v) {
- SET_VAR(rare_inherited_data_, image_rendering_, v);
+ SET_VAR(rare_inherited_data_, image_rendering_, static_cast<unsigned>(v));
}
// isolation

Powered by Google App Engine
This is Rietveld 408576698