summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshorthandpropertyimpl.c
Commit message (Collapse)AuthorAgeFilesLines
* css: Add gtk_css_number_value_can_parse()Benjamin Otte2016-02-131-7/+7
| | | | | | Use it instead of _gtk_css_parser_has_number(). We need that once we introduce calc() support.
* cssnumbervalue: Remove gtk_css_number_value_get_unit()Benjamin Otte2016-02-131-1/+1
| | | | | | | This is in preparation for calc(), as calc(50% - 5px) is valid CSS but has 2 units. Instead, add a function to query a value's dimension (so we can differentiate lengths from numbers) and add a function to query if the value contains percentages.
* Trivial changesMatthias Clasen2015-12-221-7/+14
|
* Prefix outline radius CSS propertiesMatthias Clasen2015-12-221-1/+2
| | | | | These are not in any CSS specifications, so mark them as GTK+ additions by giving them a -gtk prefix. The old names still work.
* css: support text-decoration-stylePaolo Borelli2015-07-061-3/+9
| | | | | The support is limited to underline single, double and wavy, which is what pango has today.
* css: add shorthand text-decoration propertyPaolo Borelli2015-07-061-0/+39
| | | | | Note that for now we take into account only text-decoration-line and text-decoration-color
* Fix the buildMatthias Clasen2014-10-241-1/+1
| | | | Some forgotten include path adjustments.
* css: Implement font-stretchEmmanuele Bassi2014-08-281-2/+20
| | | | | | | | | | | | | | The font-stretch CSS property is defined in the Level 3 CSS Fonts module, available at: http://dev.w3.org/csswg/css-fonts/#propdef-font-stretch It allows defining a normal, condensed, or expanded face to the font description. Pango already supports it, so this is literally just the CSS parser machinery needed to bridge our CSS to the FontDescription API. https://bugzilla.gnome.org/show_bug.cgi?id=735593
* css: Fail animation shorthand parsing properlyBenjamin Otte2014-07-311-0/+3
| | | | | | | When a number is not a nubmer, don't just crash, exit properly with an error code. See attached testcase for an example.
* css: Don't infloop when parsing broken bordersBenjamin Otte2014-07-311-0/+7
| | | | | There was an infinite loop when parsing invalid text after having parsed a color in the border shorthand. See attached testcase for an example.
* css: Don't special-case fill-mode in 'animation'Benjamin Otte2014-07-071-9/+5
| | | | | | | I have no idea why it was special cased when parsing the 'animation' shorthand, but it caused crashes. So remove the special case.
* css: Implement "all" shorthandBenjamin Otte2014-05-111-0/+39
| | | | | | | | Here's the spec: http://dev.w3.org/csswg/css-cascade/#all-shorthand Also use it in the reset-to-defaults CSS where a bunch of properties had been missing.
* css: add properties for outline-radiusCosimo Cecchi2014-05-011-0/+8
| | | | | | Both a shorthand and individual properties. This is not officially part of the CSS standard, but there's precedence for it at least in Mozilla: https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-outline-radius
* Don't return prematurelyMatthias Clasen2012-11-291-3/+3
| | | | | This code was clearly meant to return _after_ the loop. Don't put the return inside the loop body, then.
* cssstyleproperty: Replace symbolic colors with GtkCssColorValueBenjamin Otte2012-11-081-5/+5
|
* Fix css parser testsMatthias Clasen2012-10-161-1/+1
| | | | | | | Parsing a shorthand background property was running into unexpected errors when trying position values where there were none. To fix this, introduce a try_parse variant of the position parse function that silently returns NULL.
* css: Implement 'animation' shorthand parsingBenjamin Otte2012-09-171-0/+126
|
* shorthand: implement multiple backgrounds for the background shorthandCosimo Cecchi2012-05-151-25/+83
|
* shorthand: add background-position and background-size to bg shorthandCosimo Cecchi2012-05-151-10/+25
|
* shorthand: use array values for shorthand properties parsingCosimo Cecchi2012-05-151-6/+15
| | | | Right now, just parse the first value in the array.
* cssshorthand: Don't pass base file anymoreBenjamin Otte2012-05-111-27/+14
| | | | It's part of the parser now.
* cssimage: No need to pass base file anymoreBenjamin Otte2012-05-111-2/+2
| | | | The file is now part of the GtkCssParser
* shorthand: Fix border query functionsBenjamin Otte2012-04-171-13/+16
| | | | | We haven't been using ints there for a while, I wonder why that never blew up...
* symboliccolor: Treat it as a CssValueBenjamin Otte2012-04-171-22/+8
| | | | .. now that it is one.
* symboliccolor: Parse 'currentColor' everywhereBenjamin Otte2012-04-171-10/+3
|
* css: Add a shorthand 'transition' propertyBenjamin Otte2012-04-171-0/+111
|
* shorthand: Add ',' to value_is_done_parsing()Benjamin Otte2012-04-171-0/+1
|
* cssvalue: Convert border-image-width to border valueBenjamin Otte2012-04-171-8/+8
|
* cssvalue: Add a border valueBenjamin Otte2012-04-171-6/+10
| | | | .. and parse border-image-slice with it.
* cssvalue: Add a custom value for repeatsBenjamin Otte2012-04-171-63/+50
| | | | | | In particular, that's background-repeat and border-image-repeat. Also, fix up the border-image shorthand to allow any order.
* cssvalue: Add a value for border-radius corner propertiesBenjamin Otte2012-04-171-42/+47
| | | | ... and convert those properties to this value.
* cssarrayvalue: Redo parsing arraysBenjamin Otte2012-04-171-2/+1
| | | | | | | Does 3 things: 1) Introduce a "none" array signleton 2) Get rid of memleaks in error paths 3) Reduce code in parse funcs
* cssvalue: Do a hacky conversion of font-size to a number valueBenjamin Otte2012-04-171-2/+2
| | | | | | Just store the value as px for now. The font-size property needs a complete makeover anyway.
* cssvalue: Convert 'font-family'Benjamin Otte2012-04-171-7/+5
| | | | It's now a CssArrayValue filled with CssStringValue
* cssvalue: Add GtkCssArea to the enum valuesBenjamin Otte2012-04-171-3/+6
| | | | | | | ... and get rid of its GType. This makes it non-queryable using gtk_style_context_get() but it used to be a private struct anyway.
* cssvalue: Add a cssvalue for imagesBenjamin Otte2012-04-171-2/+3
|
* cssvalue: Add enum values for the pango enumsBenjamin Otte2012-04-171-9/+6
| | | | And fix the parser to conform to the CSS spec while at it.
* cssvalue: Make border styles be their own valueBenjamin Otte2012-04-171-17/+8
| | | | | ... and add them via gtkcssenumvalue.[ch] which will be used for all enums.
* cssvalue: Split number values into their own classBenjamin Otte2012-04-171-27/+15
|
* styleproperty: Make _gtk_style_property_parse_value() return a CssValueBenjamin Otte2012-04-171-128/+106
| | | | Also split out initial/inherit handling into a custom GtkCssValue class.
* styleproperty: Make _gtk_style_property_query() take a GValueBenjamin Otte2012-04-171-21/+21
| | | | | ... and don't make it return a GtkCssValue. We want to use this for compat with the old GValue APIs after all...
* cssvalue: Constify a bunch of APIsBenjamin Otte2012-04-171-1/+1
|
* css: Use GtkCssValues instead of GValue in the css machineryAlexander Larsson2012-03-081-27/+27
| | | | | | Also, in places where we're computing a new CssValue based on an old one, make sure that if nothing changes we're returning a reference to the old one, rather than creating a new identical instance.
* Change FSF AddressJavier Jardón2012-02-271-2/+1
|
* css: Implement padding as numbersBenjamin Otte2012-02-021-38/+20
| | | | Also remove the now unused border parsing function for shorthands.
* css: Port margin properties to GtkCssNumberBenjamin Otte2012-02-021-8/+33
|
* css: Convert border-radius to GtkCssNumberBenjamin Otte2012-02-021-14/+19
| | | | We can do % now, wohoo!
* css: Make border-width a length propertyBenjamin Otte2012-02-021-15/+71
|
* css: Make the 'currentColor' keyword a symbolic colorBenjamin Otte2012-02-021-5/+5
| | | | | This is the first step on a quest to ensure that there is only ever one GType in use for GValues in every stage of the CSS resolving process.
* shorthand: fix parsing of currentColor for border-color shorthandCosimo Cecchi2012-01-111-6/+14
| | | | Code for border-color was missing the currentColor parsing.