Andreas Kling
4c8dbc908c
LibWeb: Notify the PageClient when the children of <title> change
2020-12-17 02:02:00 +01:00
Andreas Kling
2a5877b02c
LibWeb: Fix shrink-to-fit layout for position:absolute
...
We were following the spec incorrectly. The comment was right, but the
code was wrong.
2020-12-17 01:47:42 +01:00
Andreas Kling
a5422a210f
LibWeb: Use the correct containing block for position:absolute width
2020-12-17 01:46:51 +01:00
Andreas Kling
f0a4a6bb11
LibWeb: Always break around inline-blocks in AllPossibleLineBreaks mode
2020-12-17 01:42:03 +01:00
Andreas Kling
f35f605a24
LibWeb: Make sure the ICB is at least as tall as the viewport
...
This is a hack until we implement a proper overflow mechanism. For now,
this allows us to right-click below the lowest content on the page.
2020-12-17 00:58:23 +01:00
Andreas Kling
598efa60a3
LibGUI: Table views with SelectRows should scroll entire rows into view
2020-12-17 00:54:58 +01:00
Andreas Kling
f0138fcb25
LibGUI: Move selection behavior from TableView up to AbstractView
...
Let's make SelectionBehavior a view concept where views can either
select individual items (row, index) or whole rows. Maybe some day
we'll do whole columns, but I don't think we need that now.
2020-12-17 00:54:58 +01:00
Brendan Coles
c8fb00fe4d
UserspaceEmulator: Implement geteuid, getegid, ptsname syscalls
2020-12-17 00:02:03 +01:00
Tom
c4176b0da1
Kernel: Fix Lock race causing infinite spinning between two threads
...
We need to account for how many shared lock instances the current
thread owns, so that we can properly release such references when
yielding execution.
We also need to release the process lock when donating.
2020-12-16 23:38:17 +01:00
Andreas Kling
56701f91f9
ln: Make the 'path' argument optional
...
If 'path' is omitted, we create a link with the basename of whatever
the target is. This matches what other systems do.
2020-12-16 23:26:35 +01:00
Linus Groh
3d7b8de64f
Shell: Don't run commands with failing redirections
...
Fixes #3423 .
2020-12-16 23:26:19 +01:00
Andreas Kling
5eacf62ba3
FileManager: Fix assertion when drag&dropping a file to the desktop
2020-12-16 19:40:24 +01:00
Andreas Kling
226ac8a47b
LibGUI: Don't fill IconView item text background unless actually wanted
...
We were always filling the rect behind item texts, even when the widget
had fill_with_background_color() == false.
2020-12-16 19:39:26 +01:00
Andreas Kling
4236127fb9
LibGUI: Make the IconView cursor rect show up on the desktop
...
It was getting lost in some bogus coordinate conversion math while
trying to constrain unusually long item texts.
2020-12-16 19:39:26 +01:00
Andreas Kling
50aab509ce
LibGUI: Add ScrollableWidget helpers for rect conversion
...
to_content_rect() and to_widget_rect() help you convert rects from one
coordinate space to the other.
2020-12-16 19:39:26 +01:00
Dan MacDonald
00dc615d53
Meta: Add Hardware Compatbility List
2020-12-16 17:30:09 +01:00
Brendan Coles
b9d99849ad
Userland: Add beep utility
2020-12-16 17:29:28 +01:00
Brendan Coles
3c9a3a9405
EchoServer: Add a simple echo server
2020-12-16 17:29:12 +01:00
Brendan Coles
a46e48089d
UserspaceEmulator: Implement beep syscall
2020-12-16 17:27:20 +01:00
Brendan Coles
3e72fd68b0
TelnetServer: replace getopt with LibCore ArgsParser
2020-12-16 17:26:55 +01:00
Brendan Coles
9d4a0ec50a
Games: Add Pong
2020-12-16 17:12:46 +01:00
Conrad Pankoff
bb4e4921c0
LibCore: Expose some Socket properties to make then inspectable
2020-12-16 17:12:13 +01:00
Conrad Pankoff
ee3056ba11
IRCClient: Remove unnecessary temporary variable from connect()
2020-12-16 17:11:52 +01:00
Andreas Kling
04bc654ae7
FileManager: Make symlink icons show up nicely in properties dialog
2020-12-16 16:09:27 +01:00
Andreas Kling
525509cfe6
LibWeb: The fallback 'color' value should be black, not transparent
...
Fixes #4425 .
2020-12-16 15:46:43 +01:00
Andreas Kling
2759d518b7
FileManager+LibGUI: Draw the item text for desktop icons with shadow
...
This makes it look nice regardless of wallpaper or background color.
2020-12-16 12:16:14 +01:00
Andreas Kling
0fef901513
LibGUI: Show app icons for executables with associated .af files
...
This is a rather ugly hack just to get app icons to show up in the
FileManager. It would be a lot nicer to embed icons in executables
instead but it's not obvious to me how to do that.
2020-12-16 12:08:55 +01:00
Andreas Kling
c44dbabda1
LibGUI: Generate nicer icons for symlinked files
...
Instead of symlinks showing up with the "filetype-symlink" icon, we now
generate a new icon by taking the target file's icon and slapping a
small arrow emblem on top of it.
This looks rather nice. :^)
2020-12-16 12:08:48 +01:00
Andreas Kling
3d5e30a1e6
LibGUI: Add GUI::Icon::sizes()
...
This gives you a Vector<int> with all the sizes contained in the Icon.
2020-12-16 11:53:23 +01:00
AnotherTest
eb7a943641
Meta: Set a 10 second timeout on Shell tests
...
Shell-backgrounding seems to be deadlocking at times, until that's
fixed, let's not take 5 hours to fail the build.
2020-12-15 20:58:32 +01:00
AnotherTest
4668dfa7c7
Shell: Make Subshell actually create a subshell
...
Previously, a "subshell" would just be executed in the parent shell.
2020-12-15 20:58:32 +01:00
Andreas Kling
72bd672da0
LibWeb: Remove use of specified_style() in Layout::ImageBox
2020-12-15 20:50:58 +01:00
Andreas Kling
613764b83c
LibWeb: Actually apply recomputed style to element's layout node
...
Otherwise fetching stuff via LayoutNode::style() will have stale values
since we were only updating the specified_style() here.
LayoutNode::specified_style() should eventually go away since there's
no need to carry those uncooked values around with the layout tree.
2020-12-15 20:49:11 +01:00
Andreas Kling
ef61430738
LibWeb: Update text-decoration hack to use text-decoration-line
...
We have a hack that propagates text-decoration-line through inheritance
even though it's not an inherited property. Once we implement the CSS
cascade properly we can stop doing this.
2020-12-15 20:48:16 +01:00
Andreas Kling
17c529e6c5
LibWeb: Generate the CSS::ValueID enum and its helper functions
2020-12-15 20:40:10 +01:00
Andreas Kling
92d8e559ba
LibWeb: Oops, not all length boxes should default to 'auto' values
...
Only the offset box (left/top/right/bottom) box defaults to 'auto'.
Both the padding and margin boxes default to '0' for all values.
2020-12-15 20:01:00 +01:00
Andreas Kling
30685a7714
LibWeb: Add equals() for LengthStyleValue and ColorStyleValue
...
The default equals() does to_string() on both sides which is pretty
silly when they are of the same type.
2020-12-15 19:40:06 +01:00
Andreas Kling
58bade25dd
LibWeb: Add hack to disable StyleInvalidator while parsing document
...
Running a StyleInvalidator for every attribute set in a new document
was making it impossible to load larger sites. :^)
2020-12-15 19:33:53 +01:00
Andreas Kling
23f70535e2
LibWeb: Dimension inline-block and replaced boxes during splitting
...
Don't wait until fragment layout to compute width/height of boxes on
the line, just do it while we're splitting into lines.
2020-12-15 19:33:53 +01:00
Andreas Kling
4a9dcd974a
LibWeb: Remove unused Element::set_attributes()
2020-12-15 19:33:53 +01:00
Andreas Kling
9c76c4f0cf
LibWeb: Use IdentifierStyleValue for CSS 'list-style-type'
2020-12-15 19:33:53 +01:00
Andreas Kling
c630ae517e
LibWeb: Put final foreground/background colors in LayoutStyle
...
This way we don't have to look them up in the CSS::StyleProperties
every time we want to paint with them.
2020-12-15 19:33:53 +01:00
Andreas Kling
78a51933ad
LibWeb: Use IdentifierStyleValue for CSS 'text-transform'
2020-12-15 19:33:53 +01:00
Andreas Kling
4d7ce81835
LibWeb: Use IdentifierStyleValue for CSS 'text-decoration-line'
...
Also 'text-decoration' is actually a shorthand, so treat it that way.
2020-12-15 19:33:53 +01:00
Andreas Kling
dd9a77099f
FileManager: Simplify breadcrumb bar hook callback
...
Now that we store each partial path with the segments, we can just
open up the path of the segment you clicked on.
2020-12-15 19:33:53 +01:00
Andreas Kling
7e78e4b232
LibWeb: Make CSS "background: none" work again
...
This broke since "none" is now always going to be an identifier value.
2020-12-15 19:33:53 +01:00
Brendan Coles
d8c533f588
Breakout: use pledge and unveil
2020-12-15 14:12:55 +01:00
Brendan Coles
e3114667bc
Breakout: randomize ball start trajectory and velocity
2020-12-15 14:12:37 +01:00
Andreas Kling
d410449d87
HackStudio: Don't take LexicalPath as argument
...
Also make use of LexicalPath::has_extension() in one place.
2020-12-15 11:58:47 +01:00
Andreas Kling
4befc2c282
Kernel: Avoid null dereference in sys$profiling_disable()
...
If we can't create a profiling coredump object, we shouldn't try to
call write() on it.
2020-12-15 11:25:51 +01:00