summaryrefslogtreecommitdiff
path: root/Userland
AgeCommit message (Collapse)Author
2021-10-20LibJS: Remove unused JS_{DECLARE,DEFINE}_NATIVE_{GETTER,SETTER} macrosIdan Horowitz
2021-10-20LibJS: Replace usages of JS_{DECLARE, DEFINE}_NATIVE_GETTERIdan Horowitz
These macros are equivalent to JS_{DECLARE, DEFINE}_NATIVE_FUNCTION and were only sometimes used, so let's just get rid of them altogether.
2021-10-20LibWeb: Add missing headersBen Wiederhake
2021-10-20LibJS: Add missing header in EnvironmentCoordinate.hBen Wiederhake
2021-10-20LibC: Add missing header in search.hBen Wiederhake
2021-10-19LibWeb: Use the correct initial value for the CSS 'align-items' propertyAndreas Kling
2021-10-19LibWeb: Make computed opacity always availableAndreas Kling
No need to store opacity as Optional<float> as there's always a value (and the default initial value is 1.)
2021-10-19LibWeb: Make computed flex-grow and flex-shrink always availableAndreas Kling
These values are not allowed to be absent (auto/none/etc) so we don't need to use Optional<float> for them. This simplifies some things.
2021-10-19LibWeb: Add FlexFormattingContext to the forwarding headerAndreas Kling
2021-10-19LibWeb: Remove already-fixed FIXME in creates_block_formatting_context()Andreas Kling
We're already creating a BFC for children of inline-flex boxes.
2021-10-19LibWeb: Add fast_is<T>() for SVGBox and SVGPathBoxAndreas Kling
2021-10-19LibWeb: Distinguish between integer and float in NumericStyleValueSam Atkins
We have this information when parsing, and some properties specifically only allow integers, so it makes sense to keep that around.
2021-10-19LoginServer: Fix typo in --auto-login option value nameLinus Groh
2021-10-19ImageViewer: Use scaled image size when resizing window to fit itNícolas F. R. A. Prado
When the image is flipped or rotated, the window is resized to ensure that the image still fits in the frame. However, currently the original bitmap rect is used, which doesn't take into account the scaling factor. Fix this by using the scaled rect instead.
2021-10-19LoginServer: Log in when the user presses the enter keyTimothy Flynn
2021-10-19LibCore: Avoid buffer overrun when invoking crypt() with a SecretStringTimothy Flynn
For example, consider the following SecretString construction: String foo = "foo"; auto ss = SecretString::take_ownership(foo.to_byte_buffer()); The ByteBuffer created by to_byte_buffer() will not contain the NUL terminator. Therefore, the value returned by SecretString::characters will not be NUL-terminated either. Currently, the only use of SecretString is to pass its character data to crypt(), which requires a NUL-terminated string. To ensure this cannot result in a buffer overrun, make SecretString append a NUL terminator to its buffer if there isn't one already.
2021-10-19LibCore: Change Account::set_password to take a SecretStringTimothy Flynn
This matches the API of Account::authenticate. The only caller to this API is the passwd utility, which already has the new password stored as a SecretString.
2021-10-19LibWeb: Don't assume we hit a layout node when handling mousedown eventsAndreas Kling
Regression from the introduction of CSS pointer-events in ec43f7a2b0840a97c6d093066750dd28840d9587.
2021-10-19LibWeb: Add Event.eventPhase constantsLuke Wilde
2021-10-18LibJS: Convert Value operator AOs to ThrowCompletionOrIdan Horowitz
2021-10-18LibJS: Convert is_loosely_equal() to ThrowCompletionOrIdan Horowitz
2021-10-18LibJS: Convert is_less_than() to ThrowCompletionOrIdan Horowitz
2021-10-18LibJS: Convert Value::get() to ThrowCompletionOrIdan Horowitz
2021-10-18LibWeb: Implement the Element classList attributeTimothy Flynn
And ensure it is updated (if it exists) when the 'class' attribute is changed.
2021-10-18LibWeb: Implement DOMTokenList for managing space-separated tokens listsTimothy Flynn
DOMTokenList is used as the return type of, e.g., the Element.classList property.
2021-10-18LibJS: Convert PrototypeObject::typed_this_value() to ThrowCompletionOrLinus Groh
2021-10-18LibJS: Convert PrototypeObject::typed_this_object() to ThrowCompletionOrLinus Groh
2021-10-18LibJS: Convert PrototypeObject::this_object() to ThrowCompletionOrLinus Groh
2021-10-18LibJS: Convert this_symbol_value() to ThrowCompletionOrLinus Groh
2021-10-18LibJS: Convert this_string_value() to ThrowCompletionOrLinus Groh
2021-10-18LibJS: Convert this_number_value() to ThrowCompletionOrLinus Groh
2021-10-18LibJS: Convert this_bigint_value() to ThrowCompletionOrLinus Groh
2021-10-18LibJS: Convert to_integer_or_infinity() to ThrowCompletionOrLinus Groh
2021-10-18LibJS: Remove a bunch of forgotten exception checks after TRY_OR_DISCARDLinus Groh
Not quite sure how that happened :^)
2021-10-18LibWeb: Ensure parent is not null in DOMTreeModel::index_for_node()Dana Burkart
Fix a crash when inspecting empty pages or areas of the page with no elements.
2021-10-18LibWeb: Make 'auto' LengthStyleValues return 'auto' identifierSam Atkins
I think I broke this in my previous StyleValue clean-up. This prevented properties like `foo: auto;` from parsing, if they did not accept Lengths.
2021-10-18LibWeb: Use east const in StyleValue.{h,cpp}Sam Atkins
2021-10-18Welcome: Save startup preference to user's SystemServer sessionthankyouverycool
Off by default.
2021-10-18LibWeb: Update <object> style on resource load/failureAndreas Kling
2021-10-18LibWeb: Update <img> style on resource load/failureAndreas Kling
2021-10-18LibWeb: Coalesce nested repaint requests instead of swallowing themAndreas Kling
Previously we would ignore repaint requests that came in via OOPWV while the WebContent process was busy with a previous paint request. This caused some easy-to-trigger bugs where the painted content would be "one paint behind", especially noticeable when scrolling.
2021-10-18LibWeb: Only update layout if actually needed when scrolling to anchorAndreas Kling
2021-10-18LibWeb: Weakly store NamedNodeMap's & Attribute's associated ElementTimothy Flynn
This is similar to how Gecko avoids a reference cycle, where both the NamedNodeMap and Attribute would otherwise store a strong reference to their associated Element. Gecko manually clears stored raw references when an Element is destroyed, whereas we use weak references to do so automatically. Attribute's ownerElement getter and setter are moved out of line to avoid an #include cycle between Element and Attribute.
2021-10-17SystemMonitor: Request symbolication wihout source positionsRodrigo Tobar
The Stack tab doesn't display this information anyway, so there's no need to have it calculated and returned to us.
2021-10-17LibSymbolication: Skip source position calculation if requestedRodrigo Tobar
Calculating source code positions can be expensive, and some applications (like SystemMonitor's Stack tab) don't even show this information, making these calculations wasteful. This commit adds a new enumerated flag to the `symbolicate` functions for callers to specify whether source positions should be included in the results; it defaults to "Yes" to preserve old behavior for existing applications.
2021-10-18LibJS: Convert to_index() to ThrowCompletionOrIdan Horowitz
2021-10-18LibJS: Convert to_length() to ThrowCompletionOrIdan Horowitz
2021-10-18LibJS: Convert to_u8_clamp() to ThrowCompletionOrIdan Horowitz
2021-10-18LibJS: Convert to_u8() to ThrowCompletionOrIdan Horowitz
2021-10-18LibJS: Convert to_i8() to ThrowCompletionOrIdan Horowitz