summaryrefslogtreecommitdiff
path: root/layout/style
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-03-28 10:55:28 +0000
committerMoonchild <moonchild@palemoon.org>2021-03-28 10:55:28 +0000
commit2953a5b1a1f73cc6defe27e414069cd78befcaa0 (patch)
tree861ff401df675be95ce231afa02bf04fcebe010a /layout/style
parentb969ea3b9ced3eac51cd94c3390742ab57a4e520 (diff)
downloaduxp-2953a5b1a1f73cc6defe27e414069cd78befcaa0.tar.gz
Issue #1755 - Add smooth, high-quality and pixelated to CSS image-rendering
Diffstat (limited to 'layout/style')
-rw-r--r--layout/style/nsCSSKeywordList.h2
-rw-r--r--layout/style/nsCSSProps.cpp3
2 files changed, 5 insertions, 0 deletions
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 }
};