Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
This simply returns an "#rrggbb" string and ignores the alpha value.
|
|
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.
|
|
This was copy-pasted from button classes and not useful here.
|
|
|
|
|
|
|
|
Just use a plain Value since it already has an empty state.
|
|
|
|
|
|
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.
|
|
The API for adding a submenu to a menu is now:
auto& submenu = menu.add_submenu("Name");
submenu.add_action(my_action);
|
|
|
|
|
|
|
|
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.
|
|
|
|
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
|
|
This it being used in Array.prototype.{join,toString}() - and now
adhering to the spec: [undefined, null].join() === ","
|
|
|
|
Unbreaks the build.
|
|
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)
|
|
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)
|
|
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.
|
|
|
|
|
|
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! :^)
|
|
|
|
Supports spreading strings, arrays, and other objects within object
literals.
|
|
..by making sure the Tab actions are scoped to the Tab.
|
|
It's nicer to always use the browser's own app icon instead. :^)
|
|
|
|
|
|
If the array value at the current index is empty, the callback will
be called with undefined as value.
|
|
If the array value at the current index is empty, the callback will
be called with undefined as value.
|
|
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]
|
|
I.e. the same as hasOwnProperty(undefined) or
hasOwnProperty("undefined") :^)
|
|
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.
|
|
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.
|
|
|
|
|
|
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
|
|
This will make the compositor draw our colour wallpaper, instead
|
|
|
|
TextBox already handles well its disabled state so it's no use to have a
way to prevent it from PropertiesDialog, too.
|
|
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.
|
|
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.
|
|
Reference now has assign(Interpreter&, Value) which is used to write
transparently through a Reference into whatever location it refers to.
|