css: Add initial support for calc()

Desktop / GNOME / GTK - Benjamin Otte [redhat.com] - 12 February 2016 21:49 UTC

So far, calc() only supports literals, ie it's completely useless.

cd6dc95 css: Add initial support for calc()
gtk/Makefile.am | 2 +
gtk/gtkcsscalcvalue.c | 152 ++++++++++++++++++++++++++++++
gtk/gtkcsscalcvalueprivate.h | 30 ++++++
gtk/gtkcssnumbervalue.c | 7 +-
testsuite/css/parser/Makefile.am | 2 +
testsuite/css/parser/calc-simple.css | 31 ++++++
testsuite/css/parser/calc-simple.ref.css | 41 ++++++++
7 files changed, 264 insertions(+), 1 deletion(-)

Upstream: git.gnome.org


  • Share