kleines Filmröllchen
e6fe66594e
LibGUI: Register LazyWidget
2022-04-03 12:21:05 +02:00
kleines Filmröllchen
7e34b88ed4
LibGUI: Fully support TabWidget in GML
...
TabWidgets couldn't be used in GML properly, as the GML creation
routines didn't actually call the necessary functions in the TabWidget
to get a new tab added. This commit fixes that by making the name of the
tab a normal property, the previously introduced "title", which can be
trivially set from GML. Therefore, try_add_widget() loses an argument
(while try_add_tab doesn't, because it newly constructs the widget).
This allows us to get rid of the silly "fixing my widget tree after the
fact" code in Help and will make it super easy to use TabWidget in
future GML. :^)
2022-04-03 12:21:05 +02:00
kleines Filmröllchen
0410414455
LibGUI: Add a title to all Widgets
...
This title is a generic user-facing name for the widget. For now, it's
only used by TabWidget for tab names.
2022-04-03 12:21:05 +02:00
Linus Groh
83e8dfae38
LibJS: Use AK::Time in system_utc_epoch_nanoseconds()
...
This also uses <time.h> APIs internally, but wraps them in a much nicer
interface.
2022-04-03 01:10:31 +01:00
Simon Wanner
ea9857a423
LibWeb: Add the requestIdleCallback/cancelIdleCallback API
2022-04-02 23:52:25 +01:00
Simon Wanner
836d2ff259
LibWeb: Implement the infrastructure necessary for requestIdleCallback
...
This includes a bug fix for the event loop processing steps which has
not been merged yet: https://github.com/whatwg/html/pull/7768
2022-04-02 23:52:25 +01:00
Simon Wanner
73da139cd7
LibWeb: Expose IdleDeadline on the window object
2022-04-02 23:52:25 +01:00
Olivier De Cannière
1b7850f511
LibGUI: Add TabWidget::activate_last_tab()
2022-04-02 23:38:32 +02:00
Ben Maxwell
8fa0409ae1
LibGfx: Add list_installed_system_themes() to SystemTheme
2022-04-02 21:50:41 +02:00
Ben Maxwell
3fbefb82ac
LibGUI+Applications: Move abstract ThemeEditor preview to LibGUI
...
This allows most of the theme preview code to be reused by similar
theme preview widgets.
2022-04-02 21:50:41 +02:00
Enver Balalic
747f347b75
LibWeb: Implement flex reverse layouts
...
This builds on the work done by implementing the flex order CSS
property and implements flex reverse layouts by just reversing
the order and the items within each order bucket.
2022-04-02 19:01:14 +02:00
GeekFiftyFive
737f5b26b7
AK+LibHTTP: Ensure plus signs are percent encoded in query string
...
Adds a new optional parameter 'reserved_chars' to
AK::URL::percent_encode. This new optional parameter allows the caller
to specify custom characters to be percent encoded. This is then used
to percent encode plus signs by HttpRequest::to_raw_request.
2022-04-02 18:43:15 +02:00
Enver Balalic
58398b1e12
LibWeb: Implement the flex order CSS property
...
Adds support for the flex order property and a test page for it
on the browser welcome page.
2022-04-02 18:40:32 +02:00
Hendiadyoin1
b7a8cfdde9
LibX86: Correctly name CVTTSS2SI_r32_xmm2m32
...
This was previously erroneously called CVTTPS2PI_r32_xmm2m32, while
the mnemonic was correctly CVTTSS2SI.
2022-04-02 18:37:38 +02:00
Hendiadyoin1
1432b6ab0a
LibX86: Use the correct code for UNPCKLS
...
We were accidentally using 0x15, which was immediately overridden by
UNPCKHS
2022-04-02 18:37:38 +02:00
Hendiadyoin1
3cae69a6c2
LibX86: Correctly name the first xmm argument
...
We were accidentally calling it a mm-register
2022-04-02 18:37:38 +02:00
Hendiadyoin1
f951849fd5
LibX86: Don't print repz prefix for SSE instructions
2022-04-02 18:37:38 +02:00
Hendiadyoin1
d03a6cc6c6
LibGfx: Use AK's rsqrt and cast to floats earlier
2022-04-02 18:37:38 +02:00
Sam Atkins
b07659d00c
Meta+LibWeb: Port PropertyID.h/cpp generators to invoke_generator()
2022-04-02 09:18:07 -04:00
Sam Atkins
fc81d6c9f3
Meta+LibWeb: Port ValueID.h/cpp generators to invoke_generator()
2022-04-02 09:18:07 -04:00
Sam Atkins
cb406e79f4
Meta+LibWeb: Port MediaFeatureID.h/cpp generators to invoke_generator()
2022-04-02 09:18:07 -04:00
Idan Horowitz
59080f441e
LibJS: Normalize NaN values in Sets and Maps
...
This ensures that different NaN types (e.g. 0/0, 0 * Infinity, etc) are
mapped to the same Set/Map entry.
2022-04-02 14:15:43 +01:00
Idan Horowitz
6f7cab91a7
LibWeb: Use the specification defined types in IntersectionObserverInit
2022-04-02 13:13:37 +03:00
Idan Horowitz
61fc3c31c6
LibWeb: Add the ResizeObserverBoxOptions IDL enum
2022-04-02 13:13:37 +03:00
Idan Horowitz
f744c31a6f
LibWeb: Use OnErrorEventHandler in WorkerGlobalScope IDL
2022-04-02 12:22:48 +04:30
Idan Horowitz
d25bd2dbd8
LibWeb: Add the GlobalEventHandlers IDL mixin
2022-04-02 12:22:48 +04:30
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Jelle Raaijmakers
7334636933
LibGfx: Return kerning values as a float instead of int
...
This allows for a more precise rounding of glyph positions.
2022-04-01 12:58:03 +02:00
Jelle Raaijmakers
ee9a2e0715
LibGfx: Implement font kerning for Painter::draw_text_run
2022-04-01 12:58:03 +02:00
Enver Balalic
7be57c322e
LibWeb: Flex fix minimum main size in min/max violations calculation
...
While calculating the minimum size for main min/max size violations
we were flooring the min size to 0 if the item doesn't have a min
main size. Instead of that determine the intrinsic min main size
of that element.
This fixes the flex: 80% 0 4/1/0 test case in the flex.html
test page.
This case was missed in a previous commit that added the
determine_min_main_size_of_child function
2022-03-31 21:09:41 +02:00
Itamar
9cd27d1e15
LanguageServers/Cpp: Add SemanticType::PreprocessorMacro
...
This adds a new semantic token type, PreprocessorMacro.
Calls to preprocessor macros will now be highlighted when semantic
highlighting is enabled in Hack Studio.
2022-03-31 19:10:15 +02:00
Itamar
597ca68e2d
LibCpp: Fix parsing of macro calls
...
Previously, macro calls with 0 arguments where incorrectly parsed as
calls to a macro with a single argument that doesn't contain any tokens.
2022-03-31 19:10:15 +02:00
Itamar
53c6c36fba
LibGUI: Add AutocompleteProvider::TokenInfo::type_to_string()
2022-03-31 19:10:15 +02:00
Andreas Kling
7047a5ca59
LibJS: Allow JS::make_handle(T*) to be called with nullptr
...
Instead of asserting, just return an empty Handle.
2022-03-31 18:25:06 +02:00
Ali Mohammad Pur
7ea095feb0
LibJS: Don't assume that for-in/of target is a variable on LHS::Assign
...
e.g. `for ([foo.bar] in ...)` is actually a binding pattern.
2022-03-31 18:11:08 +02:00
Ali Mohammad Pur
56c0fdc1c4
LibJS: Implement codegen for MemberExpression binding patterns
2022-03-31 18:11:08 +02:00
Ali Mohammad Pur
007ffcd763
LibJS: Implement bytecode generation for all ObjectExpression properties
2022-03-31 18:11:08 +02:00
Matthew Olsson
b69488031b
LibPDF: Fix mismatched class/struct declaration
2022-03-31 18:10:45 +02:00
Matthew Olsson
468ceb1b48
LibPDF: Rename Command to Operator
...
This is the correct name, according to the spec
2022-03-31 18:10:45 +02:00
Matthew Olsson
49cb040c27
LibPDF: Fix some base-encoding-related crashes
2022-03-31 18:10:45 +02:00
Matthew Olsson
4d0f74a15c
LibPDF: Add Type0 and TrueType fonts
2022-03-31 18:10:45 +02:00
Matthew Olsson
e831c374f4
LibPDF: Abstract Type1 font data
...
TTF font types will use the same data
2022-03-31 18:10:45 +02:00
Matthew Olsson
058cf5f7f7
LibPDF: Accept font size in PDFFont::get_char_width
...
This will be required for TTF fonts
2022-03-31 18:10:45 +02:00
Matthew Olsson
5f9d35909d
LibPDF: Move font files into their own directory
2022-03-31 18:10:45 +02:00
Matthew Olsson
d2771eafc5
LibPDF: Use Font /Widths array to derive character widths
...
This makes the spacing between chars _much_ better!
2022-03-31 18:10:45 +02:00
Matthew Olsson
130846f337
LibPDF: Use AntiAliasingPainter in Renderer when possible
2022-03-31 18:10:45 +02:00
Matthew Olsson
8224ca6150
LibPDF: Fix more bad Renderer text positioning calculations
2022-03-31 18:10:45 +02:00
Matthew Olsson
34efc668d2
LibPDF: Handle SCN and scn operators
2022-03-31 18:10:45 +02:00
Matthew Olsson
e1115cfe48
LibPDF: Add basic ICCBased color space handling
2022-03-31 18:10:45 +02:00
Matthew Olsson
1238e65d30
LibPDF: Move color space creation from Renderer to ColorSpace
2022-03-31 18:10:45 +02:00