Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | add cyclic system to list style formatting | Vincent Sanders | 2021-02-08 | 1 | -2/+75 | |
| | ||||||
* | make roman numeral list style obey range limit and fix decimal fallback | Vincent Sanders | 2021-02-06 | 1 | -15/+31 | |
| | ||||||
* | make list stle structures const and fix initialisation for older compilers | Vincent Sanders | 2021-02-06 | 1 | -22/+25 | |
| | ||||||
* | add text formatting of values with list styles | Vincent Sanders | 2021-02-05 | 2 | -1/+543 | |
| | ||||||
* | select: Split out bytecode to unit conversion helper. | Michael Drake | 2020-12-04 | 4 | -43/+54 | |
| | ||||||
* | select: mq: Fix to convert parse unit types to public unit types. | Michael Drake | 2020-12-01 | 1 | -4/+9 | |
| | ||||||
* | select: computed: Squash use of uninitialised variable warning. | Michael Drake | 2020-11-13 | 1 | -1/+1 | |
| | ||||||
* | Computed styles: Check length pair getter type before using result. | Michael Drake | 2020-02-24 | 1 | -0/+4 | |
| | | | | Fixes use of garbage value scan-build issue. | |||||
* | Computed styles: Handle invalid width types. | Michael Drake | 2020-02-24 | 1 | -0/+2 | |
| | | | | Fixes scan-build use of garbage value. | |||||
* | Select hash: Simplify insertion at start of non-empty list. | Michael Drake | 2019-08-01 | 1 | -11/+10 | |
| | | | | This might help Coverity understand what's going on. | |||||
* | Media queries: Simplify parsed mq data structure slightly. | Michael Drake | 2019-06-11 | 1 | -7/+5 | |
| | ||||||
* | Computed styles: Remove last traces of extension blocks. | Michael Drake | 2019-05-12 | 8 | -722/+548 | |
| | ||||||
* | Computed styles: Drop uncommon extension blocks. | Michael Drake | 2019-05-12 | 24 | -2732/+2059 | |
| | | | | | | | | | | | | | | They were a space saving feature, but they became largely redundant with computed style sharing. They also made the code complex and buggy in many places. E.g. the cascade, inheritance / composition, and intial values all needed to behave corretly when they, or their parent, had or didn't have an uncommon block. Also, only the uncommon block was really used. Fixes: https://bugs.netsurf-browser.org/mantis/view.php?id=2641 | |||||
* | Media queries: Feature matching: Compare lengths in pixels. | Michael Drake | 2019-05-07 | 1 | -39/+141 | |
| | | | | | | | | Clients now provide viewport dimensions in pixels. LibCSS can now convert the units from the stylesheet to pixels. Client must also provide default font size and line height for handling viewport and root element relative sizes. | |||||
* | Media queries: Start implementing feature matching. | Michael Drake | 2019-05-06 | 1 | -5/+85 | |
| | | | | | | | | | | | | Currently we just look at: - width - height TODO: - Unit conversion - Use interned string comparison | |||||
* | Fix typo in assertion. | Michael Drake | 2019-05-05 | 1 | -1/+1 | |
| | ||||||
* | Media queries: Selection: Start implementing mq matching. | Michael Drake | 2019-05-05 | 1 | -8/+60 | |
| | ||||||
* | Media queries: Update selection API to support media queries. | Michael Drake | 2019-05-04 | 5 | -22/+44 | |
| | | | | | | | | | | | | | | | | | | | | | The API changes are: 1. When building a selection context, stylesheets added with `css_select_ctx_{append|insert}_sheet()` now have to have media strings associcated with them. Previously they took a simple bitfield for CSS media type. 2. When selecting for an element, the client needs to specify the current media requirements. Previously it only had to provide the bitfield for CSS media type. 3. Same for the css_select_font_faces API. The selection handling has been updated to handle the new API, however it is currently only looking at the media type when performing selection. Signed-off-by: Michael Drake <michael.drake@codethink.co.uk> | |||||
* | Media queries: Fix documentation typo. | Michael Drake | 2019-05-04 | 1 | -1/+1 | |
| | | | | Signed-off-by: Michael Drake <michael.drake@codethink.co.uk> | |||||
* | Media queries: Selection: For now, we just say the condition matches. | Michael Drake | 2019-05-04 | 1 | -1/+2 | |
| | | | | Signed-off-by: Michael Drake <michael.drake@codethink.co.uk> | |||||
* | Media Queries: Update stylesheet import for media query lists. | Michael Drake | 2019-03-10 | 1 | -2/+4 | |
| | ||||||
* | Media Queries: Update rule_good_for_media for new mq struct. | Michael Drake | 2019-03-10 | 1 | -6/+44 | |
| | | | | | Doesn't currently match media query conditions, only the media type. | |||||
* | Select generator: Squash undefined behaviour in generated code. | Michael Drake | 2018-07-28 | 4 | -603/+621 | |
| | | | | | | | uint8_t is promoted to int instead of unsigned, so it can't hold the values we try to store. Reran `make select_generator` to update generated code. | |||||
* | Selection: Unify rule good for media helper. | Michael Drake | 2018-07-27 | 3 | -62/+54 | |
| | ||||||
* | Build: Commit generated computed style access source code. | Michael Drake | 2018-01-06 | 5 | -3/+5247 | |
| | | | | | | | | This means python3 is not required to build libcss. To re-generate the compute style access code, e.g. when adding new CSS properties, developers must run `make select_generator` and commit the updated generated source code. | |||||
* | Selection: Autogenerated propset: Fix release of previous strings. | Michael Drake | 2017-11-25 | 1 | -2/+2 | |
| | ||||||
* | Selection: Content prop, use CSS_CONTENT_SET as condition for generator. | Michael Drake | 2017-11-25 | 1 | -1/+1 | |
| | ||||||
* | Select: Bug fixes in the generator.lcneves/select-autogen | Lucas Neves | 2017-11-19 | 2 | -18/+17 | |
| | ||||||
* | Add support for new length units. | Lucas Neves | 2017-11-13 | 1 | -0/+13 | |
| | ||||||
* | Select: include autogenerated content in header files. | Lucas Neves | 2017-11-13 | 3 | -5261/+3 | |
| | ||||||
* | Select: autogenerator for computed.h, propset.h and propget.h. | Lucas Neves | 2017-11-13 | 6 | -0/+1273 | |
| | ||||||
* | Squash GCC7 -Wimplicit-fallthrough warnings. | Michael Drake | 2017-10-22 | 1 | -2/+2 | |
| | ||||||
* | Selection: Logic for the flexbox properties. | Lucas Neves | 2017-10-21 | 15 | -4/+750 | |
| | ||||||
* | Selection: Add support for the flexbox properties. | Lucas Neves | 2017-10-21 | 5 | -48/+640 | |
| | ||||||
* | Strip trailing whitespace. | Michael Drake | 2017-09-04 | 121 | -497/+497 | |
| | ||||||
* | Fix: Read beyond allocated memory when removing sheet from selection context. | Michael Drake | 2017-06-27 | 1 | -2/+2 | |
| | | | | Thanks to 'effin' on #netsurf. | |||||
* | Interface: Add public API for getting box-sizing from computed style. | Michael Drake | 2017-04-27 | 1 | -0/+5 | |
| | ||||||
* | Selection: Add support for the CSS3 box-sizing property. | Michael Drake | 2017-04-27 | 4 | -15/+52 | |
| | ||||||
* | Parsing: Add support for parsing the CSS3 box-sizing property. | Michael Drake | 2017-04-27 | 4 | -0/+73 | |
| | ||||||
* | Select: Squash error-path leak. | Michael Drake | 2017-02-03 | 1 | -1/+0 | |
| | | | | | If we allocated a font-face array previously, and failed to extend it, then we failed to free it on the error path. | |||||
* | Selection: Inline styles prevent computed style sharing. | Michael Drake | 2016-11-29 | 2 | -12/+27 | |
| | ||||||
* | Selection: Try all previous sibling nodes for sharable styles. | Michael Drake | 2016-11-20 | 1 | -7/+8 | |
| | | | | Previously we would only consider the first candidate. | |||||
* | Selection: Turn off style sharing debug output. | Michael Drake | 2016-11-19 | 1 | -1/+0 | |
| | ||||||
* | Enable sharing where pseudo common pseudo classes are the same. | Michael Drake | 2016-11-19 | 2 | -8/+79 | |
| | ||||||
* | Selection: Abstract common node flags setting code into helper. | Michael Drake | 2016-11-19 | 1 | -44/+22 | |
| | ||||||
* | Debug for recording which nodes fail to share style and why. | Michael Drake | 2016-11-19 | 1 | -0/+50 | |
| | ||||||
* | Documentation: Function param comment fix. | Michael Drake | 2016-11-19 | 1 | -1/+0 | |
| | ||||||
* | Optimisation: Bypass selection by sharing previous sibling's style. | Michael Drake | 2016-11-19 | 2 | -15/+310 | |
| | ||||||
* | Selection: Split out selection state {initi|fin}alisation. | Michael Drake | 2016-11-19 | 1 | -95/+149 | |
| | ||||||
* | Make node data contain list of partial node styles. | Michael Drake | 2016-11-19 | 3 | -2/+29 | |
| |