Issue #1755 - Add smooth, high-quality and pixelated to CSS image-rendering

This commit is contained in:
Moonchild 2021-03-28 10:55:28 +00:00 committed by roytam1
commit be539ad8fc
2 changed files with 5 additions and 0 deletions

View file

@ -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)

View file

@ -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 }
};