Andreas Kling
2a607e9ebc
LibWeb: Rename FFC::specified_axis_size() to inner_axis_size()
...
"Specified" means something else in CSS, so let's not use this
overloaded word here. These helpers return the inner main/cross size of
a given box, so let's say "inner" instead.
2023-03-09 21:54:59 +01:00
Andreas Kling
0315ba5e06
LibWeb: Use FlexItem& item
consistenly in FlexFormattingContext
...
There was a pointless mix of `FlexItem*` vs `FlexItem&` as well as
`flex_item` vs `item`. Let's pick one and be consistent.
2023-03-09 21:54:59 +01:00
Andreas Kling
9eb8025463
LibWeb: Always include shadow roots in DOM debug dumps
2023-03-09 21:54:59 +01:00
Andreas Kling
d517e7fb3a
AK: Make FlyString::hash() use the cached hash in StringData if possible
...
This avoids rehashing the string every time.
2023-03-09 21:54:59 +01:00
Andreas Kling
e6fc7b3ff7
Kernel: Switch LockRefPtr<Inode> to RefPtr<Inode>
...
The main place where this is a little iffy is in RAMFS where inodes
have a LockWeakPtr to their parent inode. I've left that as a
LockWeakPtr for now.
2023-03-09 21:54:59 +01:00
Sam Atkins
067d0689c5
AK: Replace C-style casts
2023-03-09 21:43:54 +01:00
Lucas CHOLLET
7d6908d9a5
Applets/Keymap: Repaint applet on keymap change
2023-03-09 21:42:23 +01:00
Tim Ledbetter
4fd12b6b79
PixelPaint: Add list of recently opened files to the file menu
2023-03-09 21:21:18 +01:00
Tim Ledbetter
4accc6a61f
PixelPaint: Propagate errors from menu initialization
2023-03-09 21:21:18 +01:00
Dan Klishch
b170b46aa5
LibTest: Add option to run each benchmark several times
...
This allows to print statistical information (minimum, average, maximum
execution time) about benchmark execution.
2023-03-09 21:20:44 +01:00
Linus Groh
e76394d96c
AK: Remove infallible version of StringBuilder::to_byte_buffer
...
Also drop the try_ prefix from the fallible function, as it is no longer
needed to distinguish the two.
2023-03-09 15:51:00 +00:00
Linus Groh
ad5e8f2742
WebServer+LibGUI: Use fallible version of StringBuilder::to_byte_buffer
...
...and simply ignore the errors for now. This allows us to remove the
infallible function and avoid accumulating more callers of it.
2023-03-09 15:50:45 +00:00
Linus Groh
ac9c39fa17
CrashReporter: Handle backtrace OOM errors
2023-03-09 15:50:45 +00:00
Linus Groh
077f7d1577
LibGemini: Propagate OOM errors from GeminiRequest::to_raw_request()
2023-03-09 14:51:48 +00:00
Linus Groh
d0ecd81888
LibHTTP: Propagate OOM errors from HttpRequest::to_raw_request()
2023-03-09 14:51:20 +00:00
Linus Groh
f068ddb79f
LibIMAP: Propagate OOM errors from decode_quoted_printable()
2023-03-09 14:47:45 +00:00
Karol Baraniecki
7d412983a8
WebServer: Use fallible version of StringBuilder::to_byte_buffer
2023-03-09 12:59:57 +00:00
Karol Baraniecki
fc4d37eea5
LibGL: Use fallible version of StringBuilder::to_byte_buffer
2023-03-09 12:59:57 +00:00
Karol Baraniecki
058cc00837
TelnetServer: Use fallible version of StringBuilder::to_byte_buffer
2023-03-09 12:59:57 +00:00
Karol Baraniecki
cd4804ed1c
LibWeb: Use fallible version of StringBuilder::to_byte_buffer
2023-03-09 12:59:57 +00:00
Karol Baraniecki
f8e94f2862
LibCore: Use fallible versions of StringBuilder::append in MimeData
2023-03-09 12:59:57 +00:00
Karol Baraniecki
68d3f348d9
LibCore: Use fallible version of StringBuilder::to_byte_buffer
...
... in MimeData.
This function isn't used anywhere, not sure if it's useful?
2023-03-09 12:59:57 +00:00
Karol Baraniecki
63c4bdf5dc
BrowserSettings: Use fallible version of StringBuilder::to_byte_buffer
2023-03-09 12:59:57 +00:00
Karol Baraniecki
b4b283670d
AK: Introduce a fallible version of StringBuilder::to_byte_buffer
...
Name it StringBuilder::try_to_byte_buffer accordingly :^)
2023-03-09 12:59:57 +00:00
Sam Atkins
8b8e91d4da
Base: Give CMakeCache.txt files a CMake icon
2023-03-09 12:37:40 +00:00
Seal Sealy
0f5cd3ea68
Ports: Add hexedit port
2023-03-09 09:14:58 +00:00
Lucas CHOLLET
8faed20603
LibGUI: Use the global setting to show dotfiles in FilePicker
...
`FilePicker` will now look at the global setting at startup. Note that
changing this parameter inside `FilePicker` won't affect the global
parameter.
2023-03-09 09:12:00 +00:00
Lucas CHOLLET
af8b715aac
LibGUI: Add "New Directory" to the contextual menu in FilePicker
2023-03-09 09:12:00 +00:00
Aliaksandr Kalenik
b51090e83e
Ladybird: Send window size and position to WebContent process
2023-03-08 23:15:31 +01:00
Sam Atkins
24d5bf8173
HackStudio: Store correct address in ClassViewModel's ModelIndices
...
When 359d6e7b0b
happened, the return value
of `children[row]` went from being `ClassViewNode&` to
`NonnullOwnPtr<ClassViewNode>&`, so we were putting the wrong address
into the ModelIndex's data.
2023-03-08 23:14:21 +01:00
Timothy Flynn
1393ed2000
AK+LibUnicode: Implement String::equals_ignoring_case without allocating
...
We currently fully casefold the left- and right-hand sides to compare
two strings with case-insensitivity. Now, we casefold one code point at
a time, storing the result in a view for comparison, until we exhaust
both strings.
2023-03-08 18:57:53 +00:00
Timothy Flynn
4aee4e80bd
AK: Add a Utf32View::substring_view overload to take only an offset
...
This is for convenience, and matches our other UTF-N views.
2023-03-08 18:57:53 +00:00
Kenneth Myhra
beba05471c
Base: Use string interpolation for all log outputs in formdata.html
2023-03-08 18:57:36 +00:00
Kenneth Myhra
e5a396ce28
Base: Show of iterating over FormData.{keys(),values(),entries()}
2023-03-08 18:57:36 +00:00
Kenneth Myhra
be52e7171a
LibWeb: Add FormDataIterator implementation
...
This adds the FormDataIterator implementation so we can iterate over
FormData.{keys(),values(),entries()}.
2023-03-08 18:57:36 +00:00
Kenneth Myhra
680e970597
LibWeb: Move generated #include statement for iterators out of loop
...
When an IDL file has #imports and the IDL interface exposes an iterator,
the bindings generator would generate #include statements missing the
class name of the iterator in the form 'LibWeb/{namespace}/Iterator'.
This change only generates the iterator #include statement for the top
interface that is the iterator.
2023-03-08 18:57:36 +00:00
Linus Groh
1ef03c9cc5
Ladybird: Add ccache to nativeBuildInputs in nix-shell script
2023-03-08 18:24:30 +00:00
Aliaksandr Kalenik
63b8b37bd4
WebContent: Wait for navigation to complete in WebDriver
...
Implements https://w3c.github.io/webdriver/#dfn-waiting-for-the-navigation-to-complete .
2023-03-08 13:08:04 -05:00
Aliaksandr Kalenik
9d03b57c96
LibWeb: Add readiness()
getter in Document
...
This getter returns the same readiness state of document as
`ready_state()` getter that is already present returns but without
allocating string.
2023-03-08 13:08:04 -05:00
Sam Atkins
b1ce852c37
HackStudio: Enable CMakeCache.txt highlighting
2023-03-08 14:21:37 +00:00
Sam Atkins
c6a2e8eb08
TextEditor: Enable CMakeCache.txt highlighting
2023-03-08 14:21:37 +00:00
Sam Atkins
676d75603b
LibCMake+LibSyntax: Add a CMakeCache.txt syntax highlighter
2023-03-08 14:21:37 +00:00
Sam Atkins
bb07d678ac
LibCMake: Add a lexer for CMakeCache.txt
...
This is a totally different syntax than for regular CMake files, and
also is undocumented and subject to change, but it's also nice and
simple. :^)
2023-03-08 14:21:37 +00:00
Timothy Flynn
515fca4f7a
AK: Make String::contains(code_point) handle non-ASCII
...
We currently only accept a char, instead of a full code point.
2023-03-08 14:16:47 +00:00
Timothy Flynn
f882581e91
AK: Make String::{starts,ends}_with(code_point) handle non-ASCII
...
We currently pass the code point to StringView::{starts,ends}_with,
which actually accepts a single char, thus cannot handle non-ASCII
code points.
2023-03-08 14:16:47 +00:00
Marco Cutecchia
f61e65a609
Kernel: Add missing include that broke the AARCH64 build
2023-03-08 14:20:29 +01:00
Marco Cutecchia
a7144a47ab
Kernel: Fix mispellings of AARCH64 that broke the build
2023-03-08 14:20:29 +01:00
Andreas Kling
72569bca1c
LibWeb: Implement the CSS rule cache optimization for UA style as well
...
We were already sorting the author style selectors into buckets.
Now we do it for the built-in UA style as well.
This means less work for the selector engine everywhere :^)
2023-03-08 13:19:15 +01:00
Andreas Kling
2042993997
LibWeb: Convert DOM::Element::m_classes to the new AK::FlyString
...
This makes selector matching significantly faster by not forcing us to
convert from FlyString to DeprecatedFlyString when matching class
selectors. :^)
2023-03-08 13:19:15 +01:00
Andreas Kling
629b6462dc
AK: Add FlyString::equals_ignoring_ascii_case()
...
This is similar to equals_ignoring_case() but only cares about ASCII
case insensitivity.
2023-03-08 13:19:15 +01:00