Commit Graph

14864 Commits

Author SHA1 Message Date
Michael Drake
094eb9ae48 layout: flex: Squash main is usually a function warning 2022-10-29 22:15:58 +01:00
Michael Drake
8615964c3f html: layout: Initial implementation of display: flex 2022-10-29 20:30:48 +01:00
Michael Drake
06eee4636f html: box_dump: Indicate descendant bounding box values 2022-10-29 20:30:48 +01:00
Michael Drake
6da0bf5b84 layout: minmax pass: Improve handling of {min|max}_width properties 2022-10-29 20:30:48 +01:00
Michael Drake
145d6dfc6c layout: minmax table: Change logging level to error 2022-10-29 20:30:48 +01:00
Michael Drake
63412372b2 layout: calculate_mbp_width: Preserve percentage values 2022-10-29 20:30:48 +01:00
Michael Drake
15b23e1e3c log: Add flex logging catagory 2022-10-29 20:30:48 +01:00
Michael Drake
ab877e680b html: layout: Improve block container assertions 2022-10-29 20:30:48 +01:00
Michael Drake
399f0063ba html: layout: Split out common helpers 2022-10-29 20:30:48 +01:00
Michael Drake
16252bb9f5 css: Fix dump of display: inline-flex 2022-10-29 20:30:48 +01:00
Michael Drake
84d3d1bf7a layout: Constify box through layout_find_dimensions() 2022-10-29 20:30:48 +01:00
Michael Drake
ae57029f83 layout: Constify box through layout_handle_box_sizing() 2022-10-29 20:30:48 +01:00
Michael Drake
86afb06496 layout: Add helpers for various box type checks 2022-10-29 20:30:48 +01:00
Michael Drake
2f98e96c95 layout: Add helper for checking if a style has a border on a side 2022-10-29 20:30:48 +01:00
Michael Drake
f1dbd523b4 layout: Drop redundant else block 2022-10-29 20:30:48 +01:00
Michael Drake
7d833537aa css: Update display property helper for grid 2022-10-29 18:24:38 +01:00
Michael Drake
bbb9b4ab72 GitHub CI: Add monkey short-internet test 2022-10-23 17:22:56 +01:00
Michael Drake
922abd7bff GitHub CI: Add linux build and unit test job 2022-10-23 17:22:56 +01:00
Michael Drake
dfcdf8d17d GitHub CI: Add static analysis. 2022-10-23 17:22:56 +01:00
Michael Drake
d1610a1cdb env.sh: Add NetSurf clone skip and shallow clone switches. 2022-10-23 17:22:56 +01:00
Michael Drake
ce6a2c87da content: image cache: Avoid int overflow before size_t conversion 2022-10-23 17:22:56 +01:00
Michael Drake
6c4343a742 utils: ssl_certs: Fix potential snprintf overflow 2022-10-23 17:22:56 +01:00
Michael Drake
ef00567b02 utils: file: Use fstatat and unlinkat 2022-10-23 17:22:56 +01:00
Michael Drake
5fed462e88 urldb: Handle snprintf error 2022-10-23 17:22:56 +01:00
Michael Drake
836b5b6126 gtk: toolbar: Handle snprintf error 2022-10-23 17:22:56 +01:00
Michael Drake
a584c6bb3b gtk: pixbuf creation: Avoid int overflow before size_t conversion 2022-10-23 17:22:56 +01:00
Michael Drake
743817c205 js: console: Fix argument type for formatting function 2022-10-23 17:22:56 +01:00
Michael Drake
cb5d63768c js: image data: Avoid int overflow before size_t conversion 2022-10-23 17:22:56 +01:00
Michael Drake
c50f4bab09 Test: Add prefer_dark_mode to reference choices data 2022-10-23 17:22:56 +01:00
Michael Drake
cd3b4487c7 RISC OS: Image: Don't override sprite mode for opaque plot type
This fixes local history thumbnails, which are opaque, when plotted
on a version of RISC OS that supports alpha sprites, and Tinct is
being avoided.
2022-10-05 18:10:23 +01:00
Vincent Sanders
40acd620b5 Ensure image cache logging does not cause division by zero at exit 2022-09-11 13:50:55 +01:00
John-Mark Bell
c6eea438ac RISC OS: Allow text selection in URL bar (RO5.28 onwards) 2022-09-04 09:29:07 +01:00
Michael Drake
7c89bc0d53 RISC OS: Dragging favicon drag-saves URL 2022-08-28 22:03:57 +01:00
Michael Drake
37b6233fff RISC OS: Image: Fix EX0 EY0 plot when avoiding Tinct 2022-08-25 22:30:36 +01:00
Chris Young
703734c389 Amiga: Fix page theme current selection 2022-08-05 13:05:21 +01:00
Chris Young
79baf60fa5 Amiga: Add page theme toggle 2022-08-03 15:14:01 +01:00
Michael Drake
d082717ea6 HTML: CSS media spec: Pass in dark mode preference. 2022-07-30 21:32:37 +01:00
Michael Drake
64d90e014b Core: Options: Add user preference for dark mode colours 2022-07-30 21:28:41 +01:00
Michael Drake
8b7bbb4158 Bitmap: Remove misleading format documentation. 2022-06-14 09:45:57 +01:00
John-Mark Bell
1577d00050 RISC OS: fix awrender glue for EABI
The only hand-written asm is the glue to Artworks Render. Update
it to be ABI compliant when building for EABI and force the
alignment of the data in the .bss section (as unaligned rotated
loads are really not a thing).

No functional change for non-EABI builds but, as the stack framing
differs depending on the ABI in use, we can no longer reliably use
fp as the base pointer for on-stack function arguments to
awrender_render. Thus, this has been reworked to use ip as the
pointer instead and to also use r8/r9 to relieve excess register
pressure.
2022-06-05 23:33:12 +01:00
John-Mark Bell
cd76c45e9e Buildsystem: fix makefile snafu
99012dcd introduced a regression that caused builds for all
non-RISC OS platforms to fail. Fix this, ensuring that RISC OS
builds still do the things they need to.
2022-06-03 03:11:55 +01:00
John-Mark Bell
926c0985e3 RISC OS: fix type in awrender_init definition. 2022-06-03 02:43:01 +01:00
John-Mark Bell
e1d7928b3b RISC OS: fix snprintf usage
When computing throbber sprite names, ensure the current frame is
in range before using it.

Similarly ensure the buffer size for the temporary URL bar sprite
name is sized such that snprintf has space for the trailing NUL
when formatting it to the output buffer.
2022-06-03 02:41:23 +01:00
John-Mark Bell
617c6207bc RISC OS: fix up use of strncpy
Ensure that strings copied using strncpy are NUL terminated.

Additionally, replace use of strncpy entirely where we are writing
into non-indirected OS icon blocks (where an unterminated 12
character long string is perfectly valid).
2022-06-03 02:39:30 +01:00
John-Mark Bell
0d114e10b2 RISC OS: GCC 10 approved fall-through markers 2022-06-03 02:37:36 +01:00
John-Mark Bell
69adc31d07 inttypes: custom format for UnixLib ssize_t
UnixLib defines ssize_t to be a long int, which forces the
corresponding format string to need to be %ld to avoid compiler
warnings. Making this change uncovered a number of places where
we were using the wrong format specifier entirely (namely
PRIssizet where we meant PRIsizet). Fix these, too.
2022-06-03 02:34:22 +01:00
John-Mark Bell
bfce4632b8 env.sh: update for arm-riscos-gnueabihf 2022-06-03 00:45:13 +01:00
John-Mark Bell
99012dcdd4 Buildsystem: update for new RISC OS toolchain
The new toolchain has a different machine triplet, so update the
things that care about it to work either way.

Remove the expectation that ro-pkg-config exists (it's trivial
and the core buildsystem never used it, so let's have some
consistency).

Determine the location of the zip binary in Makefile.tools, just
like for all the other tooling and stop assuming where it's
installed in the netsurf.zip target.
2022-06-03 00:43:42 +01:00
Michael Drake
c90fb03e58 Duktape: Prevent clang static analysis. 2022-05-29 13:41:14 +01:00
Michael Drake
4e3d9127bf Duktape: Update to 2.7.0 release. 2022-05-29 13:40:24 +01:00