Nico Weber
819a602ee1
MacPDF: Actually show contents of opened PDFs
...
xib change: connected _pdfView outlet to LagomPDFView instance.
2023-09-30 08:08:11 +02:00
Nico Weber
0a01a2c82b
MacPDF: Start converting to document architecture
...
Cmd-O now produces an Open... dialog, and opening a PDF file reads it
(and then creates the old LagomPDFView object, which then reads
a hardcoded PDF again and displays that. One thing at a time.)
"Open Recent>" is also populated and seems to work.
See the guide:
https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/DocBasedAppProgrammingGuideForOSX/Introduction/Introduction.html
2023-09-30 08:08:11 +02:00
Nico Weber
77b311f00a
MacPDF: FixedPoint hack fix courtesy of trflynn
...
Also some minor cleanups, and pick a different default document.
2023-09-30 08:08:11 +02:00
Nico Weber
ef91ced481
MacPDF: Change current page with arrow left/right
2023-09-30 08:08:11 +02:00
Nico Weber
c4c4ead9d2
MacPDF: Highdpi!
2023-09-30 08:08:11 +02:00
Nico Weber
6e0dea3a12
MacPDF: Style tweaks; one less leak
2023-09-30 08:08:11 +02:00
Nico Weber
4d9233dacc
MacPDF: Fewer leaks; cache bitmap; refactor a bit
2023-09-30 08:08:11 +02:00
Nico Weber
2831654b00
MacPDF: Initial commit
...
This is mostly the output of the Xcode new app wizard.
2023-09-30 08:08:11 +02:00
Aliaksandr Kalenik
e79d4f3462
LibJS: Early reject pointers outside of allocated blocks range in GC
...
This change adds a check to discard pointers that are lower than the
minimum address of all allocated blocks or higher than the maximum
address of all blocks. By doing this we avoid executing plenty of set()
operations on the HashMap in the add_possible_value().
With this change gather_conservative_roots() run 10x times faster in
Speedometer React-Redux-TodoMVC test.
2023-09-30 08:07:12 +02:00
Hendiadyoin1
29292bbdbf
Kernel/USB: Add a crude USB MassStorage driver :^)
2023-09-29 16:14:47 -06:00
Hendiadyoin1
c230a0d96f
Kernel: Avoid some copies during USBInterface enumeration/creation
2023-09-29 16:14:47 -06:00
Hendiadyoin1
b857c6b92f
Kernel/USB: Make USBControllers pseudo StorageControllers
...
This will be needed in the next commit to generate valid LUNs
2023-09-29 16:14:47 -06:00
Hendiadyoin1
4b327bdc95
Kernel/USB: Add UKBuffer variants of certain BulkPipe/Transfer functions
...
These will be useful for directly accessing the source/destination
buffers, without going through a third buffer first.
2023-09-29 16:14:47 -06:00
Hendiadyoin1
8335803045
Kernel/USB: Explicitely copy descriptor.hub_characteristics for printing
...
This field is in a packed struct, which makes it possibly misaligned.
This knowledge is lost when invoking `dbgln` triggering an unaligned
access to it, aka UB. By explicitely copying it we avoid this issue.
2023-09-29 16:14:47 -06:00
Hendiadyoin1
c9a4ab9987
Kernel/USB: Add missing include in USBInterface.h
2023-09-29 16:14:47 -06:00
Hendiadyoin1
d39acfb908
Kernel/USB: Copy device configurations when copying devices
2023-09-29 16:14:47 -06:00
Hendiadyoin1
4f46fb9891
Kernel: Allow adding storage devices after init
2023-09-29 16:14:47 -06:00
Hendiadyoin1
0b649878a5
Kernel: Remove UNMAP_ATER_INIT from StorageDeviceSysFSDirectory
...
We will need these when plugging in USB drives
2023-09-29 16:14:47 -06:00
Andrew Kaster
4fd915b005
Ladybird/Android: Add EditText for URL bar and attach to native WebView
2023-09-29 15:58:55 -06:00
Andrew Kaster
a93507231c
Ladybird/Android: Move JavaEnvironment helper to Ladybird namespace
2023-09-29 15:58:55 -06:00
Sam Atkins
b8ede72107
LibWeb: Add a test for getComputedStyle()
...
Print out the value of each property in the computed-style of the body
element. This is by no means a thorough test that we're serializing
every property's value correctly in every configuration, (and in fact,
some are definitely wrong,) but it does give us a nice baseline.
2023-09-29 20:20:55 +02:00
Sam Atkins
a3a5af3fd1
LibWeb: Implement length
and item()
for ResolvedCSSStyleDeclaration
2023-09-29 20:20:55 +02:00
Sam Atkins
08cf35cf9a
LibWeb: Allow indexing into CSSStyleDeclaration by number
...
The `item(unsigned long index)` method is marked as a getter in IDL, so
let's treat it as such.
2023-09-29 20:20:55 +02:00
Sam Atkins
33e4a35d2d
LibWeb: Resolve style for box-shadow and text-shadow
2023-09-29 15:12:09 +01:00
Sam Atkins
44836cd8ed
LibWeb: Resolve style for logical-side length properties
...
For now, we just hard-code the logical sides to physical ones, but at
least the hard-coding is all in one place. :^)
2023-09-29 15:12:09 +01:00
Sam Atkins
2fa1df2ec4
LibWeb: Implement resolved style for line-height
2023-09-29 15:12:09 +01:00
Sam Atkins
30e31d83b6
LibWeb: Construct resolved shorthands from resolved longhands
...
Recursively call `style_value_for_property()` for the longhands, instead
of duplicating the logic to construct them.
2023-09-29 15:12:09 +01:00
Sam Atkins
737cccec70
LibWeb: Remove manual construction of resolved sided-border values
...
The automatic shorthand code will handle these just fine.
2023-09-29 15:12:09 +01:00
Sam Atkins
77fb85d27a
LibWeb: Add spec comments to style_value_for_property()
...
Also, re-order things to match. No behaviour changes.
This reveals quite a few properties that are missing here, or which we
implement somewhat incorrectly.
2023-09-29 15:12:09 +01:00
Niklas Poslovski
485ae28ba7
AK: Add support for backtraces on Haiku
2023-09-29 15:11:52 +01:00
Karol Kosek
9ce2682ce6
Userland: Port lists of mime types to String
2023-09-29 14:40:21 +01:00
Karol Kosek
e75d694974
Userland: Compare event MIME type list with a StringView
...
The following commit will port MIME types to String. Traits<String>
- used in Vector::contains_slow - can't compare String type with char*,
so we need to use StringView instead.
2023-09-29 14:40:21 +01:00
Karol Kosek
2f35348104
Userland: Store MIME keys as String in Core::MimeData
2023-09-29 14:40:21 +01:00
Karol Kosek
4f638d3af2
Userland: Take StringView in MimeData::data() and has_{format,text,urls}
2023-09-29 14:40:21 +01:00
Tim Ledbetter
d054116012
Documentation: Replace TRY()
example in Patterns.md
...
The `Menubar::add_menu()` call used in the previous code snippet no
longer returns `ErrorOr`, which defeats the purpose of the example.
2023-09-29 14:05:46 +01:00
Sam Atkins
dcf3bdcb9a
LibWeb: Use correct realm when focusing HTMLTextAreaElement
...
This matches HTMLInputElement, and fixes the crash when focusing a
textarea.
2023-09-29 07:21:43 -04:00
Bastiaan van der Plaat
b32b277192
Ladybird/AppKit: Move frameAutosaveName inside if block
2023-09-29 07:21:31 -04:00
Bastiaan van der Plaat
0ce9dc4c8e
Ladybird/AppKit: Add color picker support
2023-09-29 06:27:05 -04:00
Oskar Skog
ebee480bcc
Ports/python3: Update patch for configure
...
- Dropped modifications to `configure.ac`
- "Merged" `0007-Set-name-of-shared-libpython.patch` into
`0002-Tweak-configure.patch`
- Use `CCSHARED=fPIC`
2023-09-29 09:55:48 +02:00
Andre Herbst
14d8403a7b
Ports/zig: Bump zig version to 0.12.0-dev.141+ddf5859c2
...
Fixes build error
```
error "It looks like you're trying to enable vendor availability
markup, but you haven't defined the corresponding macros yet!"
```
while trying to #include <__availability> header without having
the necessary preprocessor directive
`_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS` set
2023-09-29 00:58:17 +02:00
Sam Atkins
ca16a1ed08
LibWeb: Store GridSize values as a Variant
...
A GridSize can't hold both a LengthPercentage and a Flex at the same
time, so let's limit that.
2023-09-28 20:33:20 +01:00
Sam Atkins
b66ff21379
LibWeb: Add missing check for flexible grid tracks
...
Previously this didn't cause issues because the default flex-factor is
0, but once we only store a flex-factor for FlexibleLength-type
GridSizes, this causes a crash.
2023-09-28 20:33:20 +01:00
Sam Atkins
127bfd64a8
LibWeb: Use Flex type in GridSize
2023-09-28 20:33:20 +01:00
Sam Atkins
dfd3d9a72d
LibWeb: Support flex in typed attr()
2023-09-28 20:33:20 +01:00
Sam Atkins
b0317bb3a1
LibWeb: Implement Flex and FlexStyleValue types
2023-09-28 20:33:20 +01:00
Sam Atkins
f1d7ea67c0
LibWeb: Add missing check for frequency values
2023-09-28 20:33:20 +01:00
Aliaksandr Kalenik
66b7da4fc7
LibJS: Remove unused make_super_property_reference()
...
This function is no longer used anywhere after we removed AST
interpreter.
2023-09-28 20:34:47 +02:00
Héctor Molinero Fernández
b7676d3bad
Ports: Generate OpenSSH host keys using a service
2023-09-28 20:26:38 +02:00
Nico Weber
563bb9d20c
ICC: Implement Profile::to_pcs() for grayscale colors
...
There's probably a nicer way of doing this where we don't need to expand
the gray value into a full Vector3, but for now this is good enough.
Makes PDFs written by macOS 13.5.2's "Save as PDF..." feature show up.
2023-09-28 16:57:31 +01:00
Nico Weber
6b4da8680d
ICC: Move a lambda up a bit
...
No behavior change.
2023-09-28 16:57:31 +01:00