From 2953a5b1a1f73cc6defe27e414069cd78befcaa0 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 28 Mar 2021 10:55:28 +0000 Subject: Issue #1755 - Add smooth, high-quality and pixelated to CSS image-rendering --- layout/style/nsCSSKeywordList.h | 2 ++ layout/style/nsCSSProps.cpp | 3 +++ 2 files changed, 5 insertions(+) (limited to 'layout/style') diff --git a/layout/style/nsCSSKeywordList.h b/layout/style/nsCSSKeywordList.h index be1691e629..2629127fae 100644 --- a/layout/style/nsCSSKeywordList.h +++ b/layout/style/nsCSSKeywordList.h @@ -305,6 +305,7 @@ CSS_KEY(hebrew, hebrew) CSS_KEY(help, help) CSS_KEY(hidden, hidden) CSS_KEY(hide, hide) +CSS_KEY(high-quality, high_quality) CSS_KEY(highlight, highlight) CSS_KEY(highlighttext, highlighttext) CSS_KEY(historical-forms, historical_forms) @@ -450,6 +451,7 @@ CSS_KEY(pc, pc) CSS_KEY(perspective, perspective) CSS_KEY(petite-caps, petite_caps) CSS_KEY(physical, physical) +CSS_KEY(pixelated, pixelated) CSS_KEY(plaintext, plaintext) CSS_KEY(pointer, pointer) CSS_KEY(polygon, polygon) diff --git a/layout/style/nsCSSProps.cpp b/layout/style/nsCSSProps.cpp index b6ffe7952a..461b3e3ee3 100644 --- a/layout/style/nsCSSProps.cpp +++ b/layout/style/nsCSSProps.cpp @@ -2398,8 +2398,11 @@ const KTableEntry nsCSSProps::kFilterFunctionKTable[] = { const KTableEntry nsCSSProps::kImageRenderingKTable[] = { { eCSSKeyword_auto, NS_STYLE_IMAGE_RENDERING_AUTO }, + { eCSSKeyword_high_quality, NS_STYLE_IMAGE_RENDERING_OPTIMIZEQUALITY }, { eCSSKeyword_optimizespeed, NS_STYLE_IMAGE_RENDERING_OPTIMIZESPEED }, { eCSSKeyword_optimizequality, NS_STYLE_IMAGE_RENDERING_OPTIMIZEQUALITY }, + { eCSSKeyword_pixelated, NS_STYLE_IMAGE_RENDERING_CRISPEDGES }, + { eCSSKeyword_smooth, NS_STYLE_IMAGE_RENDERING_OPTIMIZESPEED }, { eCSSKeyword__moz_crisp_edges, NS_STYLE_IMAGE_RENDERING_CRISPEDGES }, { eCSSKeyword_UNKNOWN, -1 } }; -- cgit v1.2.3