summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-29LibGUI: Transfer "color has alpha channel" stateAndreas Kling
2020-04-29DisplaySettings: Rename from DisplayPropertiesAndreas Kling
2020-04-29LibGUI: Allow disabling the alpha channel in ColorInput widgetsAndreas Kling
2020-04-29LibGfx: Add Color::to_string_without_alpha()Andreas Kling
This simply returns an "#rrggbb" string and ignores the alpha value.
2020-04-29LibGUI: Allow editing ColorInput widgets as textAndreas Kling
You can now enter a specific color as #rrggbb instead of clicking your way through the color picker. If you still want the color picker, just click the little color rect in the widget and we'll bring up a ColorPicker. For a visual cue that this rect is interactive, we use a hover hand cursor when hovering the rect.
2020-04-29LibGUI: Remove copy-pasted auto-repeat logic from ColorInputAndreas Kling
This was copy-pasted from button classes and not useful here.
2020-04-29Base: Tweak default desktop background color slightlyAndreas Kling
2020-04-29LibJS: Pass JS::Function around by reference moreAndreas Kling
2020-04-29LibWeb: Make EventListener::function() return a referenceAndreas Kling
2020-04-29LibJS: Don't use Optional<Value> for bound |this| valuesAndreas Kling
Just use a plain Value since it already has an empty state.
2020-04-29LibJS: Make Value::as_string() return a PrimitiveString referenceAndreas Kling
2020-04-29LibJS: Make StringObject::primitive_string() return a referenceAndreas Kling
2020-04-29WindowServer: Pop up the window menu at bottom left of window iconAndreas Kling
When clicking the window icon, we now pop up the window menu at the bottom left of the icon, no matter where you clicked it. Right-clicking the title bar still pops up at the event position.
2020-04-29LibGUI: Simplify submenu constructionAndreas Kling
The API for adding a submenu to a menu is now: auto& submenu = menu.add_submenu("Name"); submenu.add_action(my_action);
2020-04-29WindowServer: Fix build after FBResolution changesAndreas Kling
2020-04-29LibJS: Return undefined in Array.prototype.{pop,shift} for empty valuesLinus Groh
2020-04-29Browser: Add missing `#pragma once` in Tab.hEmanuele Torre
2020-04-29Kernel: Fix integer overflow in framebuffer resolution handlingAndreas Kling
This made it possible to map the E1000 MMIO range into userspace and mess with the registers. Thanks to @grigoritchy for finding this! Fixes #2015.
2020-04-29LibJS: Set Array length attributes to "Configurable | Writable"mattco98
2020-04-29LibJS: Don't handle arrays separately in Value::to_number()Linus Groh
Now that Array.prototype.join() is producing the correct results we can remove the separate code path for arrays in Value::to_number() and treat them like all other objects - using to_primitive() with number as the preferred type and then calling to_number() on the result. This is how the spec descibes it. This also means we don't crash anymore when trying to coerce [<empty>] to a number - it now does the following: [<empty>] - to string - "" - to number - 0 [<empty>, <empty>] - to string - "," - to number - NaN
2020-04-29LibJS: Skip undefined and null in join_array_with_separator()Linus Groh
This it being used in Array.prototype.{join,toString}() - and now adhering to the spec: [undefined, null].join() === ","
2020-04-29LibLine: Actually fix build :^)Andreas Kling
2020-04-28LibLine: Properly mark the result of read() as ignoredAnotherTest
Unbreaks the build.
2020-04-28LibLine: Drop stray input before doing vt_dsrAnotherTest
This patch fixes the issue where some data would be buffered while the editor is not editing, and vt_dsr would read them, resulting in the cursor to jump to (1,1)
2020-04-28LibLine: Handle initialize() internallyAnotherTest
This patch makes initialize() transparent to the users, but exposes it publicly, as the users might need a copy of the default termios (i.e. Shell)
2020-04-28LibLine: Ignore interrupts unless actively editingAnotherTest
It does not make much sense to receive an interrupt and process it *much later*. Also patches Userland/js to only create exceptions while some code is actually running.
2020-04-28TextEditor: Fix typo in commentLinus Groh
2020-04-28LibJS: Handle exception in for loop test executionLinus Groh
2020-04-28TextEditor: Add live preview when editing markdown :^)Andreas Kling
This works by hooking into the change notifications from the TextEditor widget and parsing the document content as markdown, and generating an HTML document from it which is displayed using LibWeb. This will make it a bit easier to write man pages! :^)
2020-04-28LibMarkdown: Drop MD prefixes and move into "Markdown" namespace :^)Andreas Kling
2020-04-28LibJS: Add spreading in object literalsmattco98
Supports spreading strings, arrays, and other objects within object literals.
2020-04-28Browser: Make Ctrl+L select the location bar againAndreas Kling
..by making sure the Tab actions are scoped to the Tab.
2020-04-28Browser: Don't put favicons as the window iconAndreas Kling
It's nicer to always use the browser's own app icon instead. :^)
2020-04-28Kernel: Be a little more defensive when indexing E1000 Rx/Tx buffersAndreas Kling
2020-04-28Application: Fix for reboot on PowerDialog close button clickHüseyin ASLITÜRK
2020-04-28LibJS: Call Array.prototype.findIndex() callback for empty elementsLinus Groh
If the array value at the current index is empty, the callback will be called with undefined as value.
2020-04-28LibJS: Call Array.prototype.find() callback for empty elementsLinus Groh
If the array value at the current index is empty, the callback will be called with undefined as value.
2020-04-28LibJS: Let Array.prototype.map() resize new array before loopLinus Groh
Currently we would create an empty array of size 0 and appening results of the callback function while skipping empty values. This is incorrect, we should be initializing a full array of the correct size beforehand and then inserting the results while still skipping empty values. Wrong: new Array(5).map(() => {}) // [] Right: new Array(5).map(() => {}) // [<empty> * 5]
2020-04-28LibJS: Handle Object.prototype.hasOwnProperty() with no arg correctlyLinus Groh
I.e. the same as hasOwnProperty(undefined) or hasOwnProperty("undefined") :^)
2020-04-28Kernel: Leave VMObject alone on OOM during CoW faultAndreas Kling
If we OOM during a CoW fault and fail to allocate a new page for the writing process, just leave the original VMObject alone so everyone else can keep using it.
2020-04-28Kernel: Add Region helpers for accessing underlying physical pagesAndreas Kling
Since a Region is basically a view into a potentially larger VMObject, it was always necessary to include the Region starting offset when accessing its underlying physical pages. Until now, you had to do that manually, but this patch adds a simple Region::physical_page() for read-only access and a physical_page_slot() when you want a mutable reference to the RefPtr<PhysicalPage> itself. A lot of code is simplified by making use of this.
2020-04-28WindowServer: Change the desktop background colour on theme changeAndres Vieira
2020-04-28LibJS: Support spreading of strings and string objectsLinus Groh
2020-04-28DisplayProperties: Allow going from a wallpaper to a background colourAndres Vieira
Before this patch DisplayProperties couldn't handle correctly going from a set wallpaper to a background color. This patch adds a new "Use background color" as a first option for the Wallpaper combobox as well as correct handling of setting an invalid bitmap, thus making the WindowManager draw the background color
2020-04-28WindowManager: Allow compositor to have an empty bitmap as a wallpaperAndres Vieira
This will make the compositor draw our colour wallpaper, instead
2020-04-28LibGUI: Paint CheckBox background same as widget's if it's not enabledAndres Vieira
2020-04-28FileManager: Disable PropertiesDialog custom rename disabling logicAndres Vieira
TextBox already handles well its disabled state so it's no use to have a way to prevent it from PropertiesDialog, too.
2020-04-28LibGUI: Paint TextEditor background same as widget's if it's not enabledAndres Vieira
Now TextEditor draws it's background as a colour that does not make the user think it can be writed into. This also affects TextBox.
2020-04-28LibJS: Support o.f++ :^)Andreas Kling
This patch teaches UpdateExpression how to use a Reference. Some other changes were necessary to keep tests working: A Reference can now also refer to a local or global variable. This is not fully aligned with the spec since we don't have a Record concept.
2020-04-28LibJS: Make AssignmentExpression assign through a ReferenceAndreas Kling
Reference now has assign(Interpreter&, Value) which is used to write transparently through a Reference into whatever location it refers to.