1. 13 Jan, 2017 1 commit
    • Benjamin Otte's avatar
      cssimage: Scale images to contain, not cover · 2e7d5c08
      Benjamin Otte authored
      Images with just an aspect ratio, but without a size, should be scaled
      to be fully visible in the given area.
      But we scaled them to completely cover the given area, which made them
      partially invisible.
      
      Reftest included.
      2e7d5c08
  2. 30 Jan, 2016 1 commit
  3. 14 Jan, 2016 1 commit
  4. 04 Jan, 2016 1 commit
  5. 21 Nov, 2015 1 commit
  6. 02 Aug, 2015 1 commit
  7. 18 Mar, 2015 1 commit
  8. 06 Feb, 2015 1 commit
  9. 07 Jan, 2015 1 commit
  10. 23 Jul, 2014 1 commit
  11. 14 May, 2014 1 commit
    • Benjamin Otte's avatar
      css: Add support for -gtk-icontheme("icon-name") · 633ec818
      Benjamin Otte authored
      This allows using icons from the icontheme as images in CSS. The
      reasoning is that this allows to give the image control about how it's
      scaled (by using the icon theme's scaling method. So we can get crisp
      images at different resolutions.
      633ec818
  12. 06 Sep, 2013 1 commit
  13. 05 Sep, 2013 1 commit
  14. 05 Aug, 2013 1 commit
  15. 03 Jul, 2013 2 commits
  16. 31 Oct, 2012 2 commits
  17. 02 Oct, 2012 3 commits
  18. 28 Sep, 2012 1 commit
    • Benjamin Otte's avatar
      css: Huge refactoring to avoid computing wrong values · 1454ba15
      Benjamin Otte authored
      Here's the shortest description of the bug I can come up with:
      When computing values, we have 3 kinds of dependencies:
      (1) other properties ("currentColor" or em values)
      (2) inherited properties ("inherit")
      (3) generic things from the theme (@keyframes or @define-color)
      Previously, we passed the GtkStyleContext as an argument, because it
      provided these 3 things using:
      (1) _gtk_style_context_peek_property()
      (2) _gtk_style_context_peek_property(gtk_style_context_get_parent())
      (3) context->priv->cascade
      
      However, this makes it impossible to lookup values other than the ones
      accessible via _gtk_style_context_peek_property(). And this is exactly
      what we are doing in gtk_style_context_update_cache(). So when the cache
      updates encountered case (1), they were looking up the values from the
      wrong style data.
      
      So this large patch essentially does nothing but replace the
      context argument in all compute functions with new arguments for the 3
      cases above:
      (1) values
      (2) parent_values
      (3) provider
      
      We apparently have a lot of computing code.
      1454ba15
  19. 28 Aug, 2012 2 commits
    • Benjamin Otte's avatar
      e1a1432b
    • 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
  20. 11 May, 2012 1 commit
  21. 17 Apr, 2012 1 commit
  22. 27 Feb, 2012 1 commit
  23. 02 Feb, 2012 2 commits
  24. 09 Jan, 2012 7 commits