Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | html: layout: Ensure all object types are reflowed if appropriate | Michael Drake | 2023-11-25 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SVGTiny content handler uses the reflow method to set the content width/height. The when the content first broadcasts "done", the HTML handler checks if there had already been a layout. If there has, it calls the SVG's content reflow method with the box dimensions. If not, it calls the reflow method with width/height zero. Since the layout code was only reflowing objects if they were HTML, these SVG contents were never getting their actual dimensions. The result of this was that when we came to plot these SVGs we were dividing by zero in the building of the transformation matrix: transform[0] = (float) width / (float) c->width; ... transform[3] = (float) height / (float) c->height; These divided the plot size by the content size. The result of this on the GTK front end was infinities in the transformation matrix passed to Cairo, and the turning of the whole nsgtk window into a glitchy ruin while the SVG was on screen. It may have affected other front ends too; these divide by zeros were happening in the core, and passed to the front ends' plotters. This issue only affected SVGs on HTML pages, and not when viewed directly. Also the SVGs had to be completely fetched and converted before the document had undergone layout. This was the case with SVGs at the top of both Wikipedia and The Register. In both cases the glitching window would be fixed by scrolling down the page past the SVG. | ||||
* | Avoid integer types with platform dependent size | DeltaVonNeumann | 2023-06-17 | 1 | -2/+2 |
| | |||||
* | html: layout: Remove duplicate typedefs | Michael Drake | 2022-10-29 | 1 | -9/+0 |
| | |||||
* | html: layout: Initial implementation of display: flex | Michael Drake | 2022-10-29 | 1 | -30/+91 |
| | |||||
* | layout: minmax pass: Improve handling of {min|max}_width properties | Michael Drake | 2022-10-29 | 1 | -32/+59 |
| | |||||
* | layout: minmax table: Change logging level to error | Michael Drake | 2022-10-29 | 1 | -1/+1 |
| | |||||
* | html: layout: Improve block container assertions | Michael Drake | 2022-10-29 | 1 | -3/+3 |
| | |||||
* | html: layout: Split out common helpers | Michael Drake | 2022-10-29 | 1 | -527/+15 |
| | |||||
* | layout: Constify box through layout_find_dimensions() | Michael Drake | 2022-10-29 | 1 | -1/+1 |
| | |||||
* | layout: Constify box through layout_handle_box_sizing() | Michael Drake | 2022-10-29 | 1 | -1/+1 |
| | |||||
* | layout: Add helpers for various box type checks | Michael Drake | 2022-10-29 | 1 | -31/+55 |
| | |||||
* | layout: Add helper for checking if a style has a border on a side | Michael Drake | 2022-10-29 | 1 | -2/+9 |
| | |||||
* | layout: Drop redundant else block | Michael Drake | 2022-10-29 | 1 | -2/+0 |
| | |||||
* | Switch to new libcss API for unit conversion. | Michael Drake | 2021-05-30 | 1 | -197/+233 |
| | |||||
* | html: layout: Cleanup dom node tag name getting with helper. | Michael Drake | 2021-02-20 | 1 | -14/+32 |
| | |||||
* | html: layout: Fix to ignore non-element children of lists. | Michael Drake | 2021-02-20 | 1 | -3/+10 |
| | |||||
* | layout: Add support for OL reversed attribute. | Michael Drake | 2021-02-10 | 1 | -1/+102 |
| | |||||
* | layout: list handling: Scope reduce some variables in the recursive call. | Michael Drake | 2021-02-10 | 1 | -3/+3 |
| | |||||
* | html: layout: Change list value step to variable. | Michael Drake | 2021-02-10 | 1 | -1/+2 |
| | |||||
* | html: Add support for OL start attribute. | Michael Drake | 2021-02-10 | 1 | -13/+49 |
| | | | | | | | | Note: Added new box member because rows was unsigned, and it was naughty to use something meant for tables. Note: Now numbers <= 0 can be generated, but LibCSS needs updated to support that. | ||||
* | layout: Add support for list item value attribute. | Michael Drake | 2021-02-09 | 1 | -1/+52 |
| | |||||
* | html: Do list item counting at layout time. | Michael Drake | 2021-02-09 | 1 | -0/+79 |
| | |||||
* | layout: Pass content into list layout function. | Michael Drake | 2021-02-09 | 1 | -10/+12 |
| | |||||
* | layout: Add counting for list items to layout. | Michael Drake | 2021-02-09 | 1 | -0/+97 |
| | |||||
* | improve content header usage | Vincent Sanders | 2020-05-07 | 1 | -0/+1 |
| | |||||
* | clean up content headers and documentation comments | Vincent Sanders | 2020-05-06 | 1 | -0/+1 |
| | | | | pure formatting and documentation changes, no code difference | ||||
* | improve html content handler private headers | Vincent Sanders | 2020-05-02 | 1 | -1/+1 |
| | |||||
* | split html box processing code | Vincent Sanders | 2020-04-29 | 1 | -0/+1 |
| | | | | | | | reduce the module size of the html box handling code by splitting into smaller sections. No functional code change. | ||||
* | Layout: Apply min/max width to replaced elements when width is given. | Michael Drake | 2019-07-30 | 1 | -0/+5 |
| | |||||
* | Layout: Add debug logging to show viewport dimensions passed into layout. | Michael Drake | 2019-02-17 | 1 | -0/+4 |
| | | | | Signed-off-by: Michael Drake <michael.drake@codethink.co.uk> | ||||
* | fix size_t format specifiers | Vincent Sanders | 2018-08-18 | 1 | -3/+4 |
| | |||||
* | Layout: Use box helper for first child checks.glenwalker/bug_0002428 | Michael Drake | 2018-06-29 | 1 | -2/+2 |
| | |||||
* | Layout: Tidy condition so it can be read. | Michael Drake | 2018-06-29 | 1 | -7/+6 |
| | |||||
* | clean up html content handler header use | Vincent Sanders | 2018-05-11 | 1 | -1/+3 |
| | | | | Improve header use in preperation for making browser window a corewindow | ||||
* | move html and text content handlers where they belong | Vincent Sanders | 2018-05-10 | 1 | -0/+5432 |