1. 27 Oct, 2021 1 commit
  2. 26 Oct, 2021 1 commit
    • Benjamin Otte's avatar
      css: Don't throw warnings on broken URL in image css · ac8c4245
      Benjamin Otte authored
      If a URL can't be loaded, we might end up with a NULL file. Handle that
      case properly by creating an invalid image instead and don't crash or
      complain to stderr when files are NULL.
      
      This was broken since 0886ade1
      
      A new reftest has been included. We need a reftest instead of a
      CSS parser test, because the error only becomes visible when
      compute()ing the actual image.
      
      Fixes #4373
      ac8c4245
  3. 24 Oct, 2021 3 commits
  4. 23 Oct, 2021 7 commits
  5. 22 Oct, 2021 1 commit
    • Benjamin Otte's avatar
      widget: adjust allocation even better · 1606a411
      Benjamin Otte authored
      This fixes fallout from 3742faba where
      we would no longer allocate widgets to their natural size when
      align flags where used.
      
      GtkPicture wants to be allocated at 100% in that case, so a picture with
      a 100x100 image inside a 200x200 window should be allocated 100x100.
      
      The new adjustment code now does the following (for width-for-height
      instead of height-for-width, swap width and height in the following):
      
      1. query the minimum width for the allocated height
      2. query the natural width
      3. compute the maximum of (1) and (2)
      4. set the widget width to the minimum of (3) and the allocated
         width.
      5. compute the natural height for (4)
      6. set the widget height to the minimum of (5) and the allocated height.
      1606a411
  6. 21 Oct, 2021 1 commit
  7. 20 Oct, 2021 2 commits
    • Benjamin Otte's avatar
      css: Emit a special error for a common error · 350a5edb
      Benjamin Otte authored
      This CSS:
        calc(5px+3px)
      is wrong because it gets broken to:
        calc(  5px  +3px  )
      which is 2 numbers inside the calc, and what you want is:
        calc(  5px  +  3px  )
      but you need to add a space to get this, like so:
        calc(5px + 3px)
      which is the recommended way to write calc() statements.
      
      So whenever we encounter an error, check if the next token is a signed
      number and if so, include it in the error message.
      350a5edb
    • Benjamin Otte's avatar
      css: Split dimension token · c11bd574
      Benjamin Otte authored
      Add a signed and an unsigned version.
      
      This will become useful real soon.
      c11bd574
  8. 18 Oct, 2021 5 commits
  9. 17 Oct, 2021 4 commits
  10. 13 Oct, 2021 1 commit
    • Chun-wei Fan's avatar
      gtk: Fix version resource on for Windows 11 SDK · 3481ebda
      Chun-wei Fan authored
      The rc.exe that comes with the Windows 11 SDK does not allow one to include
      winuser.h directly in the .rc scripts, so make sure that it is not included
      by gtk-win32.rc.body.in, but instead include windows.h with WIN32_LEAN_AND_MEAN
      defined.
      3481ebda
  11. 12 Oct, 2021 4 commits
  12. 10 Oct, 2021 1 commit
  13. 08 Oct, 2021 1 commit
  14. 07 Oct, 2021 5 commits
  15. 06 Oct, 2021 3 commits