Andreas Kling
2d96a07b26
LibWeb: Don't assume backing store allocation succeeds on OOPWV resize
...
Backing store allocation can fail if the requested size is too small,
or too large. We should not crash when this happens.
Fixes #3986 .
2020-11-08 16:16:03 +01:00
Andreas Kling
aef56159a8
LibGUI: Add Widget focus policies
...
Every widget now has a GUI::FocusPolicy that determines how it can
receive focus:
- NoFocus: The widget is not focusable (default)
- TabFocus: The widget can be focused using the tab key.
- ClickFocus: The widget can be focused by clicking on it.
- StrongFocus: Both of the above.
For widgets that have a focus proxy, getting/setting the focus policy
will affect the proxy instead.
2020-10-30 17:03:28 +01:00
Andreas Kling
bf1ed34236
LibWeb: Don't send OOPWV repaint requests for views without backing
...
This fixes an assertion in TextEditor when changing the system theme,
since that would trigger a repaint request for the HTML preview widget
which may not have backing unless it's actually been used to perform
HTML (or Markdown) preview yet.
2020-10-24 12:30:21 +02:00
Linus Groh
e6709e3834
LibWeb: Handle theme change event in OutOfProcessWebView
2020-10-08 23:20:52 +02:00
Linus Groh
95a6019ff0
LibWeb: Add OutOfProcessWebView::load_empty_document()
...
This is cheating a little bit as we don't set the document to a nullptr
as in InProcessWebView, but the observable outcome is the same. :^)
2020-10-08 23:20:52 +02:00
Linus Groh
9f3789cdc7
LibWeb: Register the OutOfProcessWebView widget
2020-10-08 23:20:52 +02:00
Linus Groh
e40135fefd
LibWeb: Add OutOfProcessWebView::load_html()
2020-10-08 23:20:52 +02:00
Andreas Kling
d9e39cb82d
LibWeb: Support window.alert() in multi-process context
...
Alerts are now delegated to the embedding GUI process.
2020-09-12 14:49:29 +02:00
Andreas Kling
5872cb398c
LibWeb: Use widget override cursors
2020-09-11 14:28:05 +02:00
Andreas Kling
b4f307f982
LibGUI+WindowServer: Rename window "override cursor" to just "cursor"
...
Let's just say each window has a cursor, there's not really overriding
going on.
2020-09-11 14:26:37 +02:00
Andreas Kling
0f9be82826
LibGfx: Move StandardCursor enum to LibGfx
...
This enum existed both in LibGUI and WindowServer which was silly and
error-prone.
2020-09-10 19:25:13 +02:00
Ben Wiederhake
d8e22fedc3
Libraries: Unbreak building with extra debug macros
2020-08-30 09:43:49 +02:00
AnotherTest
682b2fdb75
LibWeb: Move OutOfProcessWebView into the Web namespace
2020-08-24 18:21:33 +02:00
Andreas Kling
b6e18133ae
LibWeb: Rename WebContentView => OutOfProcessWebView
2020-08-17 18:05:35 +02:00