Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | css: Fix blocking of presentational hints for author_level_css=0 | Michael Drake | 2023-11-25 | 1 | -5/+7 |
| | |||||
* | 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. | ||||
* | css: Add option to ignore author level CSS | Michael Drake | 2023-11-25 | 3 | -5/+17 |
| | | | | | | | | | | | | This adds a new config option, `author_level_css`. When it is disabled, NetSurf will ignore all CSS from the web page. In this case only the default CSS rules from the browser and user CSS rules will be applied. It is enabled by default. Tested by running: ./nsgtk3 --author_level_css=0 | ||||
* | Clean up print format specifier usage | Michael Drake | 2023-06-17 | 2 | -5/+5 |
| | |||||
* | Avoid integer types with platform dependent size | DeltaVonNeumann | 2023-06-17 | 6 | -21/+25 |
| | |||||
* | html: layout: flex: Don't freeze already-frozen items | Michael Drake | 2022-12-16 | 1 | -0/+4 |
| | | | | This fixes an error in the used main size tracking. | ||||
* | html: layout: flex: shrink: Avoid rounding error accumulation | Michael Drake | 2022-12-16 | 1 | -4/+7 |
| | |||||
* | html: layout: flex: grow: Avoid rounding error accumulation | Michael Drake | 2022-12-16 | 1 | -3/+6 |
| | |||||
* | html: layout: flex: Handle auto margins in main direction | Michael Drake | 2022-12-15 | 1 | -5/+32 |
| | |||||
* | html: layout: flex: Track used size and count auto margins for main | Michael Drake | 2022-12-15 | 1 | -0/+16 |
| | |||||
* | html: layout: flex: Helper to get main margin end size | Michael Drake | 2022-12-15 | 1 | -16/+32 |
| | |||||
* | html: layout: flex: Support reversed main direction | Michael Drake | 2022-12-14 | 1 | -10/+38 |
| | |||||
* | html: layout: Helpers to get cross/main box size | Michael Drake | 2022-12-14 | 1 | -0/+14 |
| | |||||
* | html: layout: flex: Rename indirected box w/h functions | Michael Drake | 2022-12-14 | 2 | -5/+7 |
| | |||||
* | html: layout: flex: Scope reduce variables | Michael Drake | 2022-12-14 | 1 | -2/+2 |
| | |||||
* | html: layout: flex: Only distribute positive remaining cross space | Michael Drake | 2022-12-14 | 1 | -1/+1 |
| | |||||
* | html: layout: flex: Minor code style change | Michael Drake | 2022-12-14 | 1 | -6/+3 |
| | |||||
* | html: layout: flex: Add code documentation | Michael Drake | 2022-12-14 | 1 | -1/+126 |
| | |||||
* | html: layout: flex: Hoist item placement out of line resolver | Michael Drake | 2022-12-14 | 1 | -50/+50 |
| | |||||
* | html: layout: flex: Return NULL for pointer | Michael Drake | 2022-12-14 | 1 | -1/+1 |
| | |||||
* | html: layout: Helper for whether flex direction is reversed | Michael Drake | 2022-12-14 | 1 | -0/+13 |
| | |||||
* | rsvg246: Fix build against librsvg 2.48 | Michael Drake | 2022-12-13 | 1 | -0/+7 |
| | | | | The version of librsvg is used on Ubuntu 20.04TLS. | ||||
* | rsvg246: Split out width/height acquisition | Michael Drake | 2022-12-13 | 1 | -21/+29 |
| | |||||
* | add rsvg image decoder that uses the new API | Vincent Sanders | 2022-11-27 | 2 | -1/+266 |
| | |||||
* | (Element): Honour [SameObject] for ::classList getter | Daniel Silverstone | 2022-11-27 | 1 | -10/+20 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | DOMTokenList: Add support and testing for this | Daniel Silverstone | 2022-11-27 | 5 | -0/+248 |
| | | | | | | | | | | | | We add both DOMTokenList and DOMSettableTokenList and introduce polyfills for stringifying it until nsgenbind can do that. We also bring in a test to demonstrate all that we have. Note: This does not implement the extra methods that exist according to MDN, we may need a polyfill to bring that up to snuff. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | (duktape): Clear some warnings by adding base data to css rule and stylesheet | Daniel Silverstone | 2022-11-26 | 3 | -0/+48 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | gif: Ensure we never pass NSERROR_OK to error broadcast | Michael Drake | 2022-11-04 | 1 | -3/+0 |
| | |||||
* | gif: Mark gifs as complete after scanning source data | Michael Drake | 2022-11-04 | 1 | -2/+4 |
| | | | | | | This allows libnsgif to distinguish between awaiting more data, and a broken truncated GIF. In the latter case we can display what we have. | ||||
* | html: layout: flex: Disable verbose logging | Michael Drake | 2022-11-02 | 1 | -21/+23 |
| | |||||
* | html: layout: flex: Implement align-items and align-self | Michael Drake | 2022-11-02 | 2 | -34/+125 |
| | |||||
* | html: layout: flex: Implement wrap-reverse | Michael Drake | 2022-11-02 | 1 | -25/+48 |
| | |||||
* | html: layout: flex: Don't pass content around unnecessarily | Michael Drake | 2022-11-02 | 1 | -7/+4 |
| | |||||
* | html: layout: flex: Compare line main size with available main | Michael Drake | 2022-11-02 | 1 | -34/+35 |
| | | | | | | When deciding whether to use the grow or shrink flex factor we we using the available width, rather than the space available in the main direction. | ||||
* | html: layout: flex: Unify line item placement | Michael Drake | 2022-11-02 | 1 | -60/+43 |
| | |||||
* | html: layout helpers: Add helpers for width/height indirection | Michael Drake | 2022-11-02 | 1 | -0/+14 |
| | |||||
* | html: layout: Remove duplicate typedefs | Michael Drake | 2022-10-29 | 1 | -9/+0 |
| | |||||
* | layout: flex: Squash main is usually a function warning | Michael Drake | 2022-10-29 | 1 | -5/+5 |
| | |||||
* | html: layout: Initial implementation of display: flex | Michael Drake | 2022-10-29 | 12 | -92/+1329 |
| | |||||
* | html: box_dump: Indicate descendant bounding box values | Michael Drake | 2022-10-29 | 1 | -1/+1 |
| | |||||
* | 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 |
| | |||||
* | layout: calculate_mbp_width: Preserve percentage values | Michael Drake | 2022-10-29 | 1 | -2/+2 |
| | |||||
* | 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 | 2 | -527/+599 |
| | |||||
* | css: Fix dump of display: inline-flex | Michael Drake | 2022-10-29 | 1 | -0/+6 |
| | |||||
* | 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 |
| |