Tim Schumacher
d6ccee4089
AK: Differ between long and long long formats
2022-04-14 03:12:56 +04:30
Tim Schumacher
fbfa378e74
AK: Deduplicate formatting hexadecimal values
...
Both calls essentially only differ in one boolean, which dictates
whether to print the value in uppercase or lowercase.
Move the long function call into a new function and pass in the
"uppercase" boolean seperately to avoid having to write everything
twice.
2022-04-14 03:12:56 +04:30
Tim Schumacher
0d5098fdc0
AK: Merge print_i64 into print_signed_number
...
Those functions only differ by the input type of `number`. No other
wrapper does this, as they rely on adjusting the type of the argument on
the caller side instead.
Avoid specializing too much by just doing the same for signed numbers.
2022-04-14 03:12:56 +04:30
SimonFJ20
399202f1d3
LibGUI: Make class final and seperate from GML Playground
2022-04-13 21:24:48 +02:00
SimonFJ20
791e881892
LibGUI: Rename function to make intention clearer
2022-04-13 21:24:48 +02:00
SimonFJ20
50ca1b3d87
LibGUI+GMLPlayground: Reset cursor to end of text after replace
2022-04-13 21:24:48 +02:00
SimonFJ20
661e7d691e
LibGUI+GMLPlayground: Replace text using ReplaceAllTextCommand
2022-04-13 21:24:48 +02:00
Andreas Kling
343d699627
LibJS: Add missing Vector::in_reverse() in ensure_property_table()
...
Regressed with 35fcb028e9
.
2022-04-13 21:02:37 +02:00
Andreas Kling
32bff52c25
LibWeb: Use Vector::in_reverse() in DOM::EventDispatcher
2022-04-13 19:52:25 +02:00
Andreas Kling
35fcb028e9
LibJS: Tidy up Shape::ensure_property_table() a little bit
...
- Use a vector or references for the transition chain since null shapes
are not allowed in the chain.
- Use Vector::in_reverse() for iterating the chain backwards.
2022-04-13 19:52:25 +02:00
Andreas Kling
b0008c0934
LibWeb: Use Vector::in_reverse() in HTML::StackOfOpenElements
2022-04-13 19:52:25 +02:00
Andreas Kling
83082b12b7
LibWeb: Make reverse iterators work for const NonnullPtrVectors
2022-04-13 19:52:25 +02:00
Andreas Kling
6712bbc0ee
LibWeb: Tidy up Layout::TreeBuilder ancestor stack a little bit
...
- Make it a vector of references since we never put null pointers on
the ancestor stack.
- Use Vector::in_reverse() to iterate backwards.
2022-04-13 19:52:25 +02:00
Idan Horowitz
118d381091
LibArchive: Stop null-terminating StringView tar file header fields
...
Since 8209c2b570
was added the requires
check for copy_characters_to_buffer matched StringViews as well, which
caused unexpected null bytes to be inserted for non null-terminated
fields.
2022-04-13 19:51:57 +02:00
Luke Wilde
a9a90b1b58
Ports: Add mGBA
2022-04-13 18:32:25 +01:00
Andreas Kling
5d6c5571c4
LibWeb: Map <pre wrap> presentational hint to CSS white-space:pre-wrap
2022-04-13 16:40:46 +02:00
Andreas Kling
de5de4d99a
LibWeb: Fix typo in CSS::Display::is_outside_and_inside() name
2022-04-13 16:40:46 +02:00
Olivier De Canniere
be4913c1fb
PixelPaint: Add exporting to the QOI image format
2022-04-13 15:21:27 +01:00
Olivier De Canniere
44a5558525
LibGfx: Add a QOI image format encoder
...
Previously only a QOI image decoder was available on the system. This
commit adds an encoder as well.
For now it only handles images with 4 channels (RGBA).
2022-04-13 15:21:27 +01:00
EWouters
2f8afcccfd
Ports: Add port libyaml version 0.2.5
2022-04-13 15:14:50 +01:00
Timothy Flynn
4d0315099f
LibJS: Allow TypeArray to become detached in TypedArray.prototype.set
...
This is a normative change in the ECMA-262 spec. See:
https://github.com/tc39/ecma262/commit/4d570c4
2022-04-13 16:02:01 +02:00
Sam Atkins
f92312e778
Utilities/unzip: Use Core::Directory to create output directory
2022-04-13 16:00:17 +02:00
Sam Atkins
72893b4f9e
LibCore: Add an optional permissions mask to Directory::create()
...
Being able to pass a mask is the one feature `mkdir()` had that this
didn't. Adding it here means everyone can use the nicer Directory API.
2022-04-13 16:00:17 +02:00
Sam Atkins
6967d37678
LibCore: Prevent infinite recursion in Directory::ensure_directory()
...
If a relative path was passed in, then repeatedly asking for its parent
will never reach `/`. The top-level path in that case is `.`.
2022-04-13 16:00:17 +02:00
Lady Gegga
3426592ee7
Base: Add some Bamum Supplement to font Katica Regular 10
...
16810, 16817, 16818, 16854, 16815, 16822, 1684B, 1684C, 1682E,
1687A-1687F, 1689E, 1684F, 16848, 16847, 16869, 1686A, 1688A,
168A7
https://www.unicode.org/charts/PDF/U16800.pdf
2022-04-13 12:23:50 +02:00
Lady Gegga
ef6dc1a16e
Base: Add Hanunoo to font Katica Regular 10
...
1720-1736 https://www.unicode.org/charts/PDF/U1720.pdf
2022-04-13 12:23:50 +02:00
Lady Gegga
c958b6504e
Base: Add Ogham to font Katica Regular 10
...
1680-169C https://www.unicode.org/charts/PDF/U1680.pdf
2022-04-13 12:23:50 +02:00
martinfalisse
daaa8a57f0
LibGUI: Disable editing cell when ctrl key is pressed
...
Disable cell editing when the ctrl key is pressed. This fixes a bug
where when doing ctrl+z (undo) and there are no more undo actions
on the undo_stack, then a "z" is entered into the cell.
2022-04-13 09:26:44 +04:30
martinfalisse
356eca7e33
Spreadsheet: Implement undo functionality where missing
...
Implement undo/redo functionality in the Spreadsheet application
for the "extend" function, the drag-and-drop function, and when
copying and pasting.
2022-04-13 09:26:44 +04:30
martinfalisse
22575c9370
Spreadsheet: Make undo operation handle multiple cells at a time
...
Instead of having the undo operation only be able to undo one cell
for a given undo, make it able to handle multiple cells at a time.
Please enter the commit message for your changes. Lines starting
2022-04-13 09:26:44 +04:30
stelar7
7bd0ebb1ab
LibCrypto: Add ChaCha20
2022-04-13 09:13:17 +04:30
Linus Groh
5397278bfc
LibJS: Update spec comments to use ToZeroPaddedDecimalString AO
...
This is an editorial change in the ECMA-262 and Temporal specs.
See:
- https://github.com/tc39/ecma262/commit/843d8b8
- https://github.com/tc39/proposal-temporal/commit/f9211d9
Note that we don't actually need to implement the AO as we already have
String::formatted() for this, and use unified format strings instead of
zero-padding in individual steps in many cases anyway.
2022-04-12 23:43:29 +01:00
Sam Atkins
431a9938a8
LibWeb: Rename StyleRule -> Rule
...
This name is what's used in the spec, and is a little less confusing.
2022-04-12 23:03:46 +02:00
Sam Atkins
cf24dc2e0c
LibWeb: Break friendship between CSS StyleRule and Parser
...
As before, this requires deviating from the spec slightly to create the
StyleRule fully-formed instead of creating it empty and then modifying
its internals.
2022-04-12 23:03:46 +02:00
Sam Atkins
4bdfc2bb32
LibWeb: Make StyleRule.m_at_rule_name a FlyString
2022-04-12 23:03:46 +02:00
Sam Atkins
d67e817d8e
LibWeb: Break friendship between CSS Function and Parser
...
Again, this means deviating from the spec by creating a complete
Function in one go instead of creating it empty and then poking at its
internals.
2022-04-12 23:03:46 +02:00
Sam Atkins
7d67e428a6
LibWeb: Make Function.m_name a FlyString
2022-04-12 23:03:46 +02:00
Sam Atkins
128d08ecef
LibWeb: Empend instead of Appending DeclarationOrAtRules
2022-04-12 23:03:46 +02:00
Sam Atkins
782cdd6b91
LibWeb: Break friendship between CSS DeclarationOrAtRule and Parser
...
This actually wasn't needed for anything, hooray!
2022-04-12 23:03:46 +02:00
Sam Atkins
269810b954
LibWeb: Break friendship between CSS Declaration and Parser
...
This means deviating slightly from the spec in order to construct a
fully-initialized Declaration instead of creating an empty one and then
poking at its internals.
DeclarationOrAtRule should probably use a Variant, but for now, making
its Declaration member optional is quick and easy.
2022-04-12 23:03:46 +02:00
Sam Atkins
69496f4afd
LibWeb: Make Declaration.m_name a FlyString
2022-04-12 23:03:46 +02:00
Sam Atkins
f235da27d9
LibWeb: Break friendship between CSS Block and Parser
...
This means deviating a little from the spec, so that we create a
complete Block in one go instead of creating an empty one and then
poking at its internals.
2022-04-12 23:03:46 +02:00
Sam Atkins
7128e8e2e6
LibWeb: Break friendship between CSS Number and Tokenizer
2022-04-12 23:03:46 +02:00
Sam Atkins
bf786d66b1
LibWeb: Move Token and Tokenizer into Parser namespace
2022-04-12 23:03:46 +02:00
Sam Atkins
7272997b1b
LibWeb: Move StyleRule to Parser namespace
2022-04-12 23:03:46 +02:00
Sam Atkins
add6babef4
LibWeb: Move Declaration and DeclarationOrAtRule into Parser namespace
2022-04-12 23:03:46 +02:00
Sam Atkins
5f316cffba
LibWeb: Rename StyleRules.cpp -> StyleRule.cpp and tidy up
...
`append_with_to_string()` is no longer needed now that ComponentValue
has a Formatter.
2022-04-12 23:03:46 +02:00
Sam Atkins
ba7149a27d
LibWeb: Move DeclarationOrAtRule code into DeclarationOrAtRule.cpp
2022-04-12 23:03:46 +02:00
Sam Atkins
92320f3000
LibWeb: Add missing include to ComponentValue.h
2022-04-12 23:03:46 +02:00
Sam Atkins
6848a0ef05
LibWeb: Move Declaration code into Declaration.cpp
2022-04-12 23:03:46 +02:00