1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 05:27:40 +00:00
Commit graph

38353 commits

Author SHA1 Message Date
Linus Groh
9bc7912f84 LibWeb: Paint the focus outline using Painter::draw_focus_rect()
Now it actually looks like a classic focus outline and not some
misplaced border :^)
2022-03-26 01:35:39 +00:00
Linus Groh
642491fc74 LibWeb: Paint the focus outline actually *outside* the element
Instead of using the absolute_rect(), use absolute_border_box_rect() -
at least for PaintableBox - and inflate it by 2px on each side.

This looks much nicer for text input elements, especially when they have
padding, which would be applied outside the focus rect previously.
2022-03-26 01:35:39 +00:00
kleines Filmröllchen
faf7331999 SoundPlayer: Don't crash when the reported buffer is unexpected
It seems like this happens in quite some valid situations, so my
initially sensible failsafe doesn't make sense. As the buffer system is
hopefully gone soon, it won't be an issue in the future either way.
2022-03-25 18:34:30 -07:00
kleines Filmröllchen
9cca9f5204 SoundPlayer: Fix jump to slider behavior for playback slider
This was regressed at some point though I never saw it working.
Basically, while jump to slider works correctly it doesn't even get
actioned. While the user is clicking the slider it's very likely that a
buffer finishes playing and the callback for that changes the slider
value. This means that the user click just gets lost. There's some
additional weird behavior where values are lost in even more cases, so
an additional fix that is needed is to store the slider value in the
AutoSlider while we're dragging and apply it on mouse up.
2022-03-25 18:34:30 -07:00
Andreas Kling
925c34cf43 LibWeb: Include floats in height:auto for BFC root with inline children
BFC roots with children_are_inline()==true can still have floating boxes
as well. children_are_inline() is only concerned with in-flow children.

For this reason, we have to always consider floats when calculating
height:auto for BFC roots.
2022-03-26 00:15:25 +01:00
Andreas Kling
618273b48d LibWeb: Include children-are-inline state in layout tree dumps
Sometimes it's really helpful to know if a box considers its children to
be inline or not.
2022-03-26 00:15:25 +01:00
Linus Groh
6b8358b1f1 Ports: Update Python to 3.10.3
Released on 2022-03-16.
https://www.python.org/downloads/release/python-3103/
2022-03-25 22:27:14 +00:00
Michiel Visser
37da5cb3b3 LibCrypto: Correctly add length to SHA384 and SHA512 hashes
The SHA384 and SHA512 hashes would produce incorrect results for data
where the length % 128 was in the range 112-119. This was because the
total number of bits in the hashed values was added at the end as a
64-bit number instead of a 128-bit number. In most cases this would not
cause any issues, as this space was padded with zeroes, however in the
case that the length % 128 was 112-119, some incorrect data ended up
where this 128-bit length value was expected.

This change fixes the problems in LibTLS where some websites would
result in a DecryptError on handshake.
2022-03-26 02:25:23 +04:30
Tobias Christiansen
acdb0860b1 Ports: Add cfunge
This adds the `cfunge` Befunge interpreter. An interpreter for the
esoteric programming language Befunge written in C.
2022-03-25 22:49:06 +01:00
James Bellamy
7ab62ecd16 LibWeb: When painting, reduce computation cost by using the reciprocal
Rather than dividing the rect width and high by the border lengths,
this change multiples those lengths by the reciprocal of the width
and height because this is a faster operation. When mousing around on
the html spec website, the profile showed that inline painting
went from ~15% to ~3%
2022-03-25 21:32:19 +01:00
Timothy Flynn
4f786a7f66 Base: Add U+00A0 (NBSP) to Roman Regular 10 font
The other Roman fonts already have this code point.
2022-03-25 20:09:31 +00:00
Timothy Flynn
e5db67d6dd LibWeb: Attach BackgroundAttachment::Fixed to the window view port
This fixes the placement of several background images on Acid2, most
notably the background of the eyes and the red rectangle near the bottom
of the head.
2022-03-25 20:11:04 +01:00
Linus Groh
a5ea066693 LibJS: Fix number types in GetISOPartsFromEpoch
This is an editorial change in the Temporal spec.

See: c5b645d

This means we now have to pass a global object and construct a BigInt
object just for the assertion, but oh well. We might want to have an
assertion macro that's optimized away in release builds at a later
point, however.
2022-03-25 18:33:55 +00:00
Linus Groh
9950f06623 LibJS: Update spec comment in BuiltinTimeZoneGetPlainDateTimeFor
This is an editorial change in the Temporal spec from a long time ago.

See: e480d40
2022-03-25 18:30:33 +00:00
kleines Filmröllchen
8fe899e90d LibCore: Fix enum copy mistakes in REGISTER_TEXT_ALIGNMENT_PROPERTY 2022-03-25 08:17:28 -04:00
kleines Filmröllchen
e9a286f9e7 LibCore: Make EventLoop connect to InspectorServer if requested
I regressed this at some point by inverting the condition here.
2022-03-25 12:05:17 +01:00
Andreas Kling
bd44d9d641 LibWeb: Show correct element margin values in Inspector "Box Model" view
We were showing the margin-top value for all 4 margin values.
2022-03-25 11:57:30 +01:00
Andreas Kling
261cd1d4c7 LibWeb: Mark CSS properties as not affecting stacking context by default
We were mistakenly treating all CSS properties as if changing them
requires a rebuild of the stacking context tree.
2022-03-25 11:57:30 +01:00
Tim Schumacher
a763e68e73 Ports: Unignore the Ruby version helper script 2022-03-24 20:11:39 -07:00
Tim Schumacher
53b0078486 Ports: Unignore the OpenSSH port README 2022-03-24 20:11:39 -07:00
Tim Schumacher
25bc9c6054 Ports: Unignore the basic verification file of fio 2022-03-24 20:11:39 -07:00
Tim Schumacher
9ff2560123 Base: Unignore all files by default
Some of the .gitignore rules of the main directory were leaking into the
Base directory, causing inconsistencies between what is ignored and what
is already checked-in.

Resolve that by explicitly unignoring all files in the Base directory
unless overwritten by a .gitignore file in a subdirectory.
2022-03-24 20:11:39 -07:00
Tim Schumacher
fad1114d4d Meta: Remove obsolete HeaderCheck .gitignore
This appears to be a remnant from the earlier HeaderCheck revisions,
where CMakeLists.txt was automatically generated.

Now that a (static) copy of CMakeLists.txt is checked in, this file
doesn't have any effect anymore.
2022-03-24 20:11:39 -07:00
Tim Schumacher
35e7ccb65b Ports: Explicitly unignore glib meson configuration files 2022-03-24 20:11:39 -07:00
Lenny Maiorani
f268a91227 Utilities: Use default constructors/destructors
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-03-24 20:09:26 -07:00
Lenny Maiorani
dd05934539 Shell: Use default constructors/destructors
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-03-24 20:09:26 -07:00
Lenny Maiorani
0b7baa7e5a Services: Use default constructors/destructors
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-03-24 20:09:26 -07:00
Daniel Bertalan
5550905c00 Toolchain: Update gdb to 11.2 2022-03-24 20:08:08 -07:00
Ben Wiederhake
d13283f952 LibVT: Fix tooltip condition, properly reset when tooltip not available 2022-03-25 02:33:23 +01:00
Lady Gegga
16e4f9d9da Base: Add Supplemental Arrows-C glyphs to font tengchaH Regular 12
1F800-1F807, 1F810-1F813, 1F820-1F823, 1F850-1F859, 1F860-1F867,
1F880-1F887
https://www.unicode.org/charts/PDF/U1F800.pdf
2022-03-24 23:38:00 +00:00
Lady Gegga
14b5db2864 Base: Add Transport and Map Symbols to font tengchaH Regular 12
1F6C8 https://www.unicode.org/charts/PDF/U1F680.pdf
2022-03-24 23:38:00 +00:00
Lady Gegga
d71dab4cd4 Base: Add Miscellaneous Symbols and Pictographs to font tengchaH
1F5DA, 1F5DB, 1F4A3, 1F4A4
https://www.unicode.org/charts/PDF/U1F300.pdf
2022-03-24 23:38:00 +00:00
Lady Gegga
8919d5c7db Base: Add Dingbats to font tengchaH Regular 12
2700, 2702, 2710-2712, 2714, 2716, 275B-2761, 2772, 2773
https://www.unicode.org/charts/PDF/U2700.pdf
2022-03-24 23:38:00 +00:00
Lady Gegga
a015d538ea Base: Add Control Pictures to font tengchaH Regular 12
2400-2426 https://www.unicode.org/charts/PDF/U2400.pdf
2022-03-24 23:38:00 +00:00
Lady Gegga
2ee4ea84db Base: Add General Punctuation characters to font tengchaH Regular 12
2012-2015, 2018-201F, 2030, 2031, 203C, 203D, 2042, 2045-2049, 2051,
204B-204F, 2055
https://www.unicode.org/charts/PDF/U2000.pdf
2022-03-24 23:38:00 +00:00
Lady Gegga
935816d17b Base: Add Georgian characters to font tengchaH Regular 12
10B2-10BE https://www.unicode.org/charts/PDF/U10A0.pdf
2022-03-24 23:38:00 +00:00
Lady Gegga
bd697a24b7 Base: Add Latin Extended-A characters to font tengchaH Regular 12
0100-0101, 010C, 010D, 0126, 0132, 0133, 0141-0144, 0160, 0161,
0179, 017B, 017D, 017F
https://www.unicode.org/charts/PDF/U0100.pdf
2022-03-24 23:38:00 +00:00
Lady Gegga
82e6c2d43c Base: Add C1 Controls and Latin-1 Supplement chars to font tengchaH
00B5, 00B6, 00B8, 00BC-00BE, 00C7, 00CA-00CF, 00D1-00D5, 00D9-00E3,
00E7-00EA, 00EC-00EF, 00F0-00F5, 00F8-00FB, 00FE
https://www.unicode.org/charts/PDF/U0080.pdf
2022-03-24 23:38:00 +00:00
Idan Horowitz
45c5fcf5cb Meta: Disable KASLR when debugging the kernel with GDB
This lets GDB resolve the kernel symbols correctly.
2022-03-24 23:36:56 +00:00
Idan Horowitz
f9c6f37bac Kernel: Add a 'disable_kaslr' kernel command line parameter
This parameter can be used to disable the KASLR mechanism.
2022-03-24 23:36:56 +00:00
Idan Horowitz
54a12d34eb Kernel: Move {strnlen, strcmp, memcmp, strncmp, strstr} to MiniStdLib
This lets the Prekernel also use these simple (and standalone)
C functions.
2022-03-24 23:36:56 +00:00
Andreas Kling
c02e6f991a LibWeb: Improve vertical margin collapse between adjacent blocks
Collect all the preceding block-level siblings whose vertical margins
are collapsible. Both margin-top and margin-bottom now (previously,
we only considered the margin-bottom of siblings.)

Use the right margin in part-negative and all-negative situations.
2022-03-25 00:10:09 +01:00
circl
aac4382cd1 Ports: Add icon to The Powder Toy port 2022-03-24 22:31:02 +00:00
circl
f1c28ea3e0 Ports: Add required Meson cross-files to The Powder Toy port
Previously the port would not build, as these files were mistakenly
ignored by Git.
2022-03-24 22:31:02 +00:00
Andreas Kling
c2d7ef057d WebContent: Remove accidentally committed unveil() call 2022-03-24 23:17:49 +01:00
Andreas Kling
6cffabef03 LibWeb: Support CSS vertical-align values "top" and "bottom" 2022-03-24 22:57:01 +01:00
Andreas Kling
195ef5e26f LibWeb: Bring CSS line-height implementation closer to spec
We now distribute the line-height evenly between the space above and
below inline-level boxes. This noticeably improves our baseline
alignment in many cases.

Note that the "vertical-align: <length>" case is quite awkward, as the
extra height added by the offset baseline must count towards the line
box height.

There's a lot of room for improvement here, but this makes the buckets
container on Acid3 show up in the right place, with the right size.
2022-03-24 22:52:44 +01:00
Timothy Flynn
430559ea51 LibWeb: Weakly store a reference to the Window object in timer tasks
This prevents a crash when refreshing or navigating away from the Acid3
test page while it is actively running.
2022-03-24 21:37:58 +01:00
Idan Horowitz
02004b7055 LibWeb: Handle XML MIME types in HTMLObjectElement 2022-03-24 21:37:49 +01:00
Idan Horowitz
215432c3e8 LibWeb: Discard ObjectElement's nested browsing context on image load 2022-03-24 21:37:49 +01:00