Lucas CHOLLET
e432a284d7
LibCore: Avoid some successive allocations in Stream::read_all()
...
For the general case, allocations will always have the size of a block.
In case of a smaller read a block will be filled entirely before another
allocation appends.
It also adds a specialization for Stream::File::read_all() that tries to
detect the size of the file with fstat to perform a single allocation.
2022-06-27 20:22:15 +01:00
Lucas CHOLLET
3843b8c0a1
AK: Perform a resize in ByteBuffer::get_bytes_for_writing()
...
ByteBuffer::get_bytes_for_writing() was only ensuring capacity before
this patch. The method needs to call resize to register the appended
data, otherwise it will be overwritten with next data addition.
2022-06-27 20:22:15 +01:00
Andrew Kaster
9d70f0383f
Browser: Remove GML formatting errors from BrowserSettingsWidget.gml
...
Regressed in commit 6571455499
This is supposed to be caught by the GML format lint in Azure, but it
looks like a :ninjamerge: occured instead :^)
2022-06-27 08:23:13 +01:00
Ali Mohammad Pur
db4a5aafc8
Spreadsheet: Display a detailed view of a cell error on hover
...
With this, Spreadsheet can now show an almost full stack trace for the
error (which is infintely better than just the error message).
2022-06-26 22:21:17 +01:00
Ali Mohammad Pur
64ef808aeb
Spreadsheet: Allow importing sheets into an existing workbook
2022-06-26 22:21:17 +01:00
Ali Mohammad Pur
135683795b
Spreadsheet: Throw if lookup value doesn't exist and no default is given
...
And explicitly state which value wasn't found and where in the error.
2022-06-26 22:21:17 +01:00
Ali Mohammad Pur
746b8ec8de
Spreadsheet: Make it possible to refer to ranges in other sheets
...
Now the range A0:C4 in a sheet named "foo" can be represented as:
R`sheet("foo"):A0:C4`
This makes it possible to do cross-sheet lookups and more.
2022-06-26 22:21:17 +01:00
Ali Mohammad Pur
2104e9a6e4
AK: Recognize __CLION_IDE__ as well as __CLION_IDE_
...
This used to be `__CLION_IDE_` before, but it seems to have been fixed
in the latest EAP.
2022-06-26 22:21:17 +01:00
Ali Mohammad Pur
0e2f4c50d3
Spreadsheet: Prevent OOB access to text editor buffer
...
For some reason LibGUI sends two events for each edit, and one of them
contains an OOB cursor if a character was deleted.
This works around that for now.
2022-06-26 22:21:17 +01:00
Xexxa
b691269912
Base+Browser+BrowserSettings: Add default page for new tab
2022-06-26 22:18:30 +01:00
Xexxa
6571455499
Browser+BrowserSettings: Add preference for new tab
2022-06-26 22:18:30 +01:00
Lenny Maiorani
ef46100fd3
LibGfx: Increase cache-friendliness in FastBoxBlurFilter
...
Change from 4 vectors of u8 to a single vector of a struct of 4
u8. Since all the accesses are on the same indicies into each vector
the cache pressure is decreased by co-locating the data.
When scrolling up and down in the `box-shadow` example page the
profile changes from about 75% of the function calls being in
`apply_single_pass()` to only about 70% on my machine.
2022-06-26 22:11:10 +01:00
MacDue
b652546a16
LibWeb: Fix parsing of background-size: contain/cover
...
The lack of the commit() before returning the x_value here meant,
that in parse_background_value() the token stream would be one token
behind after parsing the background-size. This led to it to returning
null, after it sees the unexpected 'second' contain / cover token.
With this change all of backgrounds.html is working again.
2022-06-26 22:04:20 +01:00
Linus Groh
93b4c3bb82
LibJS: Infer file extensions when resolving module paths
...
This allows `import "./foo"` to succeed, even if the file is actually
called `foo.js`. IDEs commonly exclude file extensions in auto-imports.
Closes #14364 .
2022-06-26 22:03:53 +01:00
Linus Groh
2b3dd87296
LibJS: Rename filepath to filename in module related code
...
This is already the parameter name of Core::File::open() and
VM::get_stored_module() - both of which this is passed to - as well as
the member name of the Module class.
2022-06-26 22:03:53 +01:00
Linus Groh
893978ea89
LibJS: Replace enumeration macro in typed_array_species_create()
...
Use the newly added TypedArrayBase::intrinsic_constructor() instead to
get the required constructor from the global object.
Also add spec comments while we're here.
2022-06-26 21:57:39 +01:00
Linus Groh
3885fa1d10
LibJS: Store fn pointer to its intrinsic constructor on TypedArrayBase
...
This represents "the intrinsic object listed in column one of Table X"
in the spec.
2022-06-26 21:57:39 +01:00
Liav A
e85b3fc750
Ports: Add edid-decode port
2022-06-25 12:10:04 +01:00
Liav A
e02da2ed41
LibC: Implement the getsubopt function
...
This is a LibC function that POSIX defines to help userspace programs
to get suboptions. An example of a suboption is the token "pixclk" from
a Shell command running "edid-decode --gtf w=1024,h=768,pixclk=48".
The function should be run in a while loop to acquire all suboptions
until the last one.
2022-06-25 12:10:04 +01:00
Liav A
410b2f5d29
Ports: Add GNU findutils utility suite
2022-06-25 12:08:43 +01:00
Liav A
e20706760f
Ports: Add GNU gzip utility port
2022-06-25 12:01:45 +01:00
Liav A
f8611ec7bd
Ports: Add GNU cpio archive utility port
2022-06-25 12:01:19 +01:00
Liav A
1cd610072a
Ports: Add lz4 compression utility
2022-06-25 11:59:42 +01:00
Liav A
cd115270fc
Kernel/Graphics: Move GenericDisplayConnector code to a new sub-folder
...
In the same fashion like in the Linux kernel, we support pre-initialized
framebuffers that were set up by either the BIOS or the bootloader.
These framebuffers can be backed by any kind of video hardware, and are
not tied to VGA hardware at all. Therefore, this code should be in a
separate sub-folder in the Graphics subsystem to indicate this.
2022-06-25 11:32:09 +01:00
Tim Schumacher
5b86698bb8
Ports/qt6-qtbase: Add md4c
as a dependency
2022-06-24 23:20:28 +01:00
Tim Schumacher
a50400072e
Ports: Add a port of md4c
2022-06-24 23:20:28 +01:00
Ali Mohammad Pur
d338d2b59b
Shell: Ignore SIGCHLD after a few unsuccessful attempts at handling it
...
As noted by the comment, a stray SIGCHLD can make the shell go into an
infinite loop, pretend the signal doesn't exist after trying 10 times in
5ms.
2022-06-24 22:53:16 +01:00
Xexxa
eb4ea45822
Base: Add Counting Rod Numerals to font Katica Regular 10
...
1D360–1D378 https://www.unicode.org/charts/PDF/U1D360.pdf
Co-authored-by: python-69 <102885151+python-69@users.noreply.github.com>
2022-06-24 22:50:13 +01:00
Xexxa
6cda017477
Base: Add Block Elements to font Katica Regular 10
...
2580–259F https://www.unicode.org/charts/PDF/U2580.pdf
Co-authored-by: python-69 <102885151+python-69@users.noreply.github.com>
2022-06-24 22:50:13 +01:00
Xexxa
f4c8c93119
Base: Add Buginese to font Katica Regular 10
...
1A00-1A1F https://www.unicode.org/charts/PDF/U1A00.pdf
Co-authored-by: python-69 <102885151+python-69@users.noreply.github.com>
2022-06-24 22:50:13 +01:00
Tim Schumacher
c0a7ac53cb
Ports/mbedtls: Update to Mbed TLS 3.1.0
2022-06-24 22:39:52 +01:00
Tim Schumacher
3c43ac9eb5
Ports/lua: Update to Lua 5.4
2022-06-24 22:38:55 +01:00
Linus Groh
3beb7fc42f
LibJS/Tests: Correct pluralSmallestPluralDisallowedOptions largestUnit
2022-06-24 22:12:03 +01:00
Linus Groh
ee0d5d6649
LibJS: Refactor common option reading into the GetDifferenceSettings AO
...
This is an editorial change in the Temporal spec.
See: 78abbb8
2022-06-24 22:12:03 +01:00
Linus Groh
05c5263ecc
LibJS: Mark CreateTemporalDate in AddDateTime as infallible
...
This is an editorial change in the Temporal spec.
See: cd356a6
2022-06-24 22:12:03 +01:00
Linus Groh
80663d9d3b
LibJS: Mark CreateTemporalDate in ToRelativeTemporalObject as fallible
...
This is an editorial change in the Temporal spec.
See: 09e9f9c
2022-06-24 22:12:03 +01:00
Linus Groh
3679f671b9
LibJS: Mark some calls of CreateTemporalDate as infallible
...
This is an editorial change in the Temporal spec.
See: 30344e8
2022-06-24 22:12:03 +01:00
Linus Groh
26990ab41c
LibJS: Mark PlainTime.prototype.round's CreateTemporalTime infallible
...
This is an editorial change in the Temporal spec.
See: 6b57938
2022-06-24 22:12:03 +01:00
Linus Groh
709e16004d
LibJS: Assert RoundISODateTime is called with values within the limits
...
This is an editorial change in the Temporal spec.
See: eaa7042
2022-06-24 22:12:03 +01:00
Linus Groh
f54ed48ef1
LibJS: Assert AddTime is called with a valid time
...
This is an editorial change in the Temporal spec.
See: 0ead23c
2022-06-24 22:12:03 +01:00
Linus Groh
416f94eb3b
LibJS: Add Number conversion in PrepareTemporalFields
...
This is an editorial change in the Temporal spec.
See: 687d06c
2022-06-24 22:12:03 +01:00
Linus Groh
78bfeca643
LibJS: Add Number conversion in ZonedDateTime.prototype.getISOFields()
...
This is an editorial change in the Temporal spec.
See: bc59d8d
2022-06-24 22:12:03 +01:00
Linus Groh
ea023ac62c
LibJS: Add Number conversion in AddDu/ToOrSubtractDu/FromPlainYearMonth
...
This is an editorial change in the Temporal spec.
See: 823300c
2022-06-24 22:12:03 +01:00
Linus Groh
98dc964649
LibJS: Add conversion to mathematical number in ToTemporalTimeRecord
...
This is an editorial change in the Temporal spec.
See: 9f37d10
2022-06-24 22:12:03 +01:00
Linus Groh
7138f10c30
LibJS: Check for invalid epoch ns in DisambiguatePossibleInstants
...
This is a normative change in the Temporal spec.
See: c12d20d
2022-06-24 22:12:03 +01:00
Linus Groh
7b5a7e7759
LibJS: Check for invalid epoch nanoseconds in NanosecondsToDays
...
This is a normative change in the Temporal spec.
See: f1f016e
2022-06-24 22:12:03 +01:00
Linus Groh
ddea6d451b
LibJS: Check for invalid epoch nanoseconds in InterpretISODateTimeOffset
...
This is a normative change in the Temporal spec.
See: cdfe4a5
2022-06-24 22:12:03 +01:00
Linus Groh
d10e0f0e3e
LibJS: Check for invalid epoch nanoseconds in getPossibleInstantsFor()
...
This is a normative change in the Temporal spec.
See: 439e6af
2022-06-24 22:12:03 +01:00
Linus Groh
61bdbe712e
LibJS: Remove duplicate steps for offset-only time zones
...
This is an editorial change in the Temporal spec.
See: 7813599
2022-06-24 22:12:03 +01:00
Linus Groh
34f02bed17
LibJS: Remove check for Instant range before subtracting UTC offset
...
This is a normative change in the Temporal spec.
See: 5e2fecb
2022-06-24 22:12:03 +01:00