Kenneth Myhra
dcbe927b48
LibWeb: Make factory method of Selection::Selection fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
ec0049441c
LibWeb: Make factory methods of Geometry::DOMRect fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
9b190b9509
LibWeb: Make factory method of Geometry::DOMRectList fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
459959b297
LibWeb: Make factory method of HTML::BrowsingContext fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
ff92324fa5
LibWeb: Make factory method of DOM::ElementFactory fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
1f48081ee4
LibWeb: Make factory methods of IDLEventListener and NodeFilter fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
587cf355ed
LibWeb: Make factory methods of UIEvents::UIEvent fallible
...
This affects calls to FocusEvent::create() since FocusEvent does not
implement its own create() method.
2023-02-22 09:55:33 +01:00
Kenneth Myhra
a401cff4e2
LibWeb: Make factory methods of UIEvents::KeyboardEvent fallible
2023-02-22 09:55:33 +01:00
Luke Wilde
2ca8cf49ca
LibWeb: Use browsing context creator URL for about:blank documents
...
In about:blank documents, we should use the browsing context's creator
URL as the base URL, if it exists and there is no <base> element.
This means that any about:blank frames will have URLs parse relative to
their parent frame's URL.
Fixes #17394 .
2023-02-21 18:52:46 +01:00
Andreas Kling
f11899f885
LibWeb+LibIDL: Fix (or paper over) various const-correctness issues
...
There's definitely stuff to iterate on here, but this takes care of
making the libraries compile with stricter RP and NNRP.
2023-02-21 00:54:04 +01:00
Jonah
29d724d95c
LibWeb: Serialize Accessible Name and Description for Accessibility Tree
...
These will get displayed in the DOM inspector.
2023-02-19 15:58:20 +01:00
Jonah
da5c9189b2
LibWeb: Implement Accessible Name and Description Calculation
...
This is an initial implementation of the accname standard. There is
still some of the algorithm left unimplemented that we will need
to implement in the future. However, as is, this implementation is
sufficient for basic pages.
2023-02-19 15:58:20 +01:00
Sam Atkins
2026ea557e
LibWeb: Use is_ascii_case_insensitive_match() where the spec says to
2023-02-19 00:46:47 +01:00
Kenneth Myhra
3e834636a6
LibWeb: Make factory method of HTML::Window fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
2f4db60c08
LibWeb: Make factory method of HTML::History fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
200d22c650
LibWeb: Make factory method of DOM::Text fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
2411dadc35
LibWeb: Make factory method of DOM::StaticNodeList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
d94b59263e
LibWeb: Make factory method of DOM::NodeIterator fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
0791195843
LibWeb: Make factory methods of DOM::Range fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
e3e281addd
LibWeb: Make factory method of DOM::NamedNodeMap fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
ce18dfc417
LibWeb: Make factory method of DOM::MutationRecord fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
7852915dd3
LibWeb: Make factory method of DOM::MutationObserver fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
24d7e688fc
LibWeb: Make factory method of DOM::LiveNodeList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
ff875d353b
LibWeb: Make factory method of DOM::HTMLCollection fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
c120c46acc
LibWeb: Make factory methods of DOM::Event fallible
...
Because of interdependencies between DOM::Event and UIEvents::MouseEvent
to template function fire_an_event() in WebDriverConnection.cpp, the
commit: 'LibWeb: Make factory methods of UIEvents::MouseEvent fallible'
have been squashed into this commit.
2023-02-18 00:52:47 +01:00
Kenneth Myhra
0d9076c9f5
LibWeb: Make factory methods of DOM::Document fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
552663a2ba
LibWeb: Make factory method of DOM::TreeWalker fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
251c063897
LibWeb: Make factory method of DOM::DOMTokenList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
1e03aa0ece
LibWeb: Make factory method of DOM::AccessibilityTreeNode fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
2c8a689390
LibWeb: Make factory methods of DOM::CustomEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
5ef9e02658
LibWeb: Make factory method of DOM::Comment fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
50c5f0d7da
LibWeb: Make factory method of DOM::Attr fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
b9c5828fe6
LibWeb: Make factory method of DOM::DOMImplementation fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
a5ad8b2959
LibWeb: Make factory method of DOM::AbortSignal fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
c4d559bd37
LibWeb: Make factory method of DOM::DocumentType fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
5f552ddc5c
LibWeb: Make factory method of DOM::AbortController fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
491c18a346
LibWeb: Make factory method of DOM::DocumentFragment fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
8fbd43cb27
LibWeb: Make factory method of CSS::ResolvedCSSStyleDeclaration fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
719839b882
LibWeb: Make factory method of CSS::StyleSheetList fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
c950d1904a
LibWeb: Make factory methods of CSS::CSSStyleDeclaration fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
7ec444047c
LibWeb: Make factory methods of HTML::MessageEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
fb3294863e
LibWeb: Return JS::NonnullGCPtr<StaticRange> instead of StaticRange*
2023-02-18 00:52:47 +01:00
Kenneth Myhra
6516329867
LibWeb: Propagate error in factory method of DOM::StaticRange
2023-02-18 00:52:47 +01:00
Sam Atkins
dca19b764b
LibWeb: Port CSS::Display to new Strings
2023-02-15 12:48:26 -05:00
Karol Kosek
4311fd2774
LibWeb: Implement Element.attachShadow and Element.shadowRoot :^)
2023-02-02 14:43:29 +01:00
Karol Kosek
9ed4fe7049
LibWeb: Allow to set a root mode value when constructing a ShadowRoot
2023-02-02 14:43:29 +01:00
Karol Kosek
01e2cc5330
LibWeb: Add a helper function for checking if element is a shadow host
2023-02-02 14:43:29 +01:00
Karol Kosek
2cc108a15e
LibWeb: Rename DOM::shadow_root() to shadow_root_internal()
...
The shadowRoot property getter that will be added in subsequent commits
has an additional check that checks whether the shadow root is opened.
I didn't update the function logic to match with the IDL interface,
because it's very likely we don't want that check in the existing code,
so that for example closed shadow root elements can still be updated.
2023-02-02 14:43:29 +01:00
Karol Kosek
9a7f786262
LibWeb: Make ShadowRoot.mode return ShadowRootMode instead of String
2023-02-02 14:43:29 +01:00
Karol Kosek
34913c48d3
LibWeb: Actually initialize ShadowRoot bindings
...
`mode` and `host` attributes were always undefined.
2023-02-02 14:43:29 +01:00