• Benjamin Otte's avatar
    css: Pass property_id to compute function · 9b4ed662
    Benjamin Otte authored
    This is a reorganization of how value computing should be done.
    Previously the GtkCssStyleProperty.compute vfunc was supposed to take
    care of special cases when it needed those for computation. However,
    this proved to be very complicated in cases where values were nested and
    only the last value (of a common type) needed to be special cased.
    
    A common example for this was the fallback handling for unresolvable
    colors.
    
    Now, we pass the property's ID along with all compute functions so we
    can do the special casing where it's necessary.
    Note that no actual changes happen in this commit. This will happen in
    follow-ups.
    9b4ed662
gtkcssshadowsvalue.c 7.1 KB