summaryrefslogtreecommitdiff
path: root/Libraries
AgeCommit message (Collapse)Author
2020-12-10LibWeb: Use the surrounding text color as the caret colorAndreas Kling
This way you can always see the cursor as long (as you can see the text you are editing.)
2020-12-10LibWeb: Replace IDL 'void' return type with 'undefined'Linus Groh
From the Web IDL spec: https://heycam.github.io/webidl/#idl-undefined [...] undefined constant values in IDL are represented with the `undefined` token. [...] Note: This value was previously spelled `void`, and more limited in how it was allowed to be used.
2020-12-10LibWeb: Expect IDL namespace to end with semicolonLinus Groh
From the Web IDL spec: https://heycam.github.io/webidl/#prod-Namespace Namespace :: namespace identifier { NamespaceMembers } ;
2020-12-09LibC: Make getdelim() fail with EINVAL on null input pointersAndreas Kling
This matches some other libc's.
2020-12-09LibWeb: Apply suggested fixes.asynts
2020-12-09LibWeb: Expose DOM::Range to JavaScript.asynts
2020-12-09LibWeb: Make DOM::Range more suitable for JS.asynts
2020-12-09LibWeb: Join start and end after deleting selection.asynts
2020-12-09LibWeb: Implement deletion of more complex selections.asynts
2020-12-09LibWeb: Fix many bugs with the editing.asynts
2020-12-09LibWeb: Add support for cursor movement and delete.asynts
2020-12-09LibWeb: Support range delection accross nodes with shared parent.asynts
2020-12-09LibWeb: Add support for range deletion.asynts
2020-12-09LibWeb: Move editing stuff into EditEventHandler.asynts
2020-12-09IDL: Produce better error messages when parsing IDL files.asynts
2020-12-09LibGUI: Show action shortcut in ToolBarButton tooltipSahan Fernando
2020-12-09LibWeb: Don't allocate XMLHttpRequestConstructor twiceLinus Groh
add_constructor() will already allocate an XMLHttpRequestConstructor and update m_xhr_constructor accordingly, we don't have to do it ourselves. This is now in line with how all the LibJS constructors work. Also make the XHR constructor responsible for setting its "prototype" property itself, for consistency and fail-proofing. Previously we would only set it on the constructor we allocated manually but which was then thrown away, leading to the property never being set properly.
2020-12-09LibWeb: Disallow construction of XMLHttpRequest without 'new'Linus Groh
The XMLHttpRequest interface only has a constructor and isn't supposed to be callable as a function. https://xhr.spec.whatwg.org/#constructors
2020-12-08LibWeb: Build the DumpLayoutTree subdirectoryAndreas Kling
2020-12-08LibWeb: Add missing license header to DumpLayoutTreeAndreas Kling
2020-12-08LibWeb: Remove an empty line from OOPWVAndreas Kling
2020-12-08LibWeb: Add a simple DumpLayoutTree programAndreas Kling
This loads a page and, dumps the layout tree to stdout, and exits.
2020-12-08LibWeb: Allow dumping layout tree into a StringBuilderAndreas Kling
2020-12-08LibWeb+WebContent: Add on_load_finish hook to web viewsAndreas Kling
This isn't entirely symmetrical with on_load_start as it will also fire on reloads and back/forward navigations. However, it's good enough for some basic use cases, and we can do more sophisticated notifications later on when we need them.
2020-12-08LibJS: Add test for Math.asin()Andreas Kling
2020-12-08LibRegex: Add a basic Regex<...>::replace()AnotherTest
2020-12-08LibJS: Get rid of Argument and ArgumentVectorAndreas Kling
This was used for a feature where you could pass a vector of arguments to enter_scope(). Since that way of passing arguments was not GC-aware (as vectors use C++ heap storage), let's avoid using it and make sure everything that needs to stay alive is either on the stack or in traced storage instead.
2020-12-08LibJS: Create lexical scope for "catch" on the spot when throwingAndreas Kling
2020-12-08LibJS: Stop creating a redundant lexical scope on function callAndreas Kling
We were scoping the arguments twice, first in execute_function_body(), and then again in enter_scope().
2020-12-08LibWeb: <iframe src> same-origin check should be based on host documentAndreas Kling
We were basing the src attribute's cross-origin check on whatever was currently loaded in the iframe, instead of the surrounding document. Fixes #4236.
2020-12-08LibJS: Add Math.acos() and Math.asin()Andreas Kling
2020-12-08LibJS: Remove some unnecessary null checksAndreas Kling
It's okay to add nullptr to the conservative roots set. We'll just ignore it later on anyway.
2020-12-08LibJS: Use IndexedProperties::for_each_value() in update_function_name()Andreas Kling
This allows us to get rid of IndexedProperties::values_unordered().
2020-12-08LibJS: Make marking object indexed properties less allocation-heavyAndreas Kling
We were building up a vector with all the values in an object's indexed property storage, and then iterating over the vector to mark values. Instead of this, simply iterate over the property storage directly. :^)
2020-12-08LibJS: Make sure GlobalObject marks the Proxy constructorAndreas Kling
2020-12-08LibJS: Add Math.atan()Andreas Kling
2020-12-08LibGfx: SIMD optimized alpha blendingSahan Fernando
2020-12-08LibGfx: Simplify and refactor Gamma.hSahan Fernando
Remove ACCURATE_GAMMA_ADJUSTMENT, since it makes the implementation uglier, isn't guaranteed to make gamma adjustment accurate and is much slower. gamma_accurate_blend4 should either be always used or not exist based on compilation flags, so there is no need to have it in its own function. Finally, we should use AK/SIMD.h instead of defining our own f32x4 type.
2020-12-08LibM: Add implementation of ldexpfAlex Studer
2020-12-08Clipboard: Remove-unused bpp metadataBen Wiederhake
It's just more attack surface, and can be deduced from the format anyway.
2020-12-07LibWeb: Compute final line box width *after* placing all fragmentsAndreas Kling
We were doing this after every fragment instead of after every line.
2020-12-07LibWeb: When adding inline-block fragment to line, use border box widthAndreas Kling
We were only using the content box width for inline-block fragments, which caused them to not to claim the space needed for padding+border.
2020-12-07LibWeb: Uhh, scale back the default padding on <ul> and <ol> a bitAndreas Kling
40px is a lot of padding in our small-fonted world. :^)
2020-12-07LibWeb: Add padding-left to the default UA style for <ol> and <ul>Andreas Kling
This matches what other engines do.
2020-12-07LibWeb: Include padding+border in shrink-to-fit preferred min widthAndreas Kling
2020-12-07LibWeb: Resolve width in relative length units on inline-block properlyAndreas Kling
Element-relative width units like em, ex, etc. should be resolved against the inline block itself, not against its containing block.
2020-12-07LibWeb: Simplify final line box width computationAndreas Kling
The width of a line box is the distance from the left edge of the first fragment to the right edge of the last fragment. We don't have to loop over all the fragments to figure this out. :^)
2020-12-07LibWeb: Use CSS::Length::resolved_or_zero() in a few placesAndreas Kling
2020-12-07LibWeb: Cache parsed inline style of DOM elementsAndreas Kling
Instead of invoking the CSS parser every time we compute the style for an element that has a "style" attribute, we now cache the result of parsing the inline style whenever the "style" attribute is set. This is a nice boost to relayout performance since we no longer hit the CSS parser at all.
2020-12-07LibGUI: Expose widget focus policy as a Core::Object propertyAndreas Kling
This makes focus policies show up in the inspector which is helpful.