label: Don't clip text shadows

Desktop / GNOME / GTK - Benjamin Otte [redhat.com] - 31 July 2014 10:50 UTC

The previous code for computing the clip rectangle forgot to respect the text-shadow CSS property. This is usually not very visible because text shadows usually don't extend the ink rectangle by very much.

See attached testcase for an example.

a3d1db6 label: Don't clip text shadows
gtk/gtklabel.c | 14 ++++++---
testsuite/reftests/Makefile.am | 2 ++
.../reftests/label-text-shadow-clipping.ref.ui | 18 +++++++++++
testsuite/reftests/label-text-shadow-clipping.ui | 32 ++++++++++++++++++++
4 files changed, 62 insertions(+), 4 deletions(-)

Upstream: git.gnome.org


  • Share