summaryrefslogtreecommitdiff
path: root/gtk/gtkcssboxesimplprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* widget: Make width, height and transform be widget-relativeBenjamin Otte2019-02-151-3/+5
| | | | | | Previously, those numbers stored the values relative to the margin box of the widget. Now they store values relative to the content box, thereby getting rid of the last remains of weird coordinate systems.
* cssboxes: IntroduceBenjamin Otte2019-02-151-0/+493
Split out the code for computing CSS boxes from given variables from the background render code. This way, it can be shared between different codebases. Also, make that code completely be contained of static inline functions. That ensures that it can be 100% inlined in cases where only parts of the rectangle are needed (like in gtk_widget_get_width() in the future). This will require some more patches to actually work, but those will follow.