summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-14PixelPaint: Always animate marching ants during interactive selectionAndreas Kling
The Selection object now tracks whether there is an ongoing interactive selection (originating from one of the selection tools). If so it makes sure to pump the marching ants animation.
2021-06-14PixelPaint: Make new pasted layer active immediatelyAndreas Kling
Also clear any selection that existed before pasting. This feels a bit more intuitive. We may also want to consider switching to the "Move" tool automatically on paste, but I'm less sure about that.
2021-06-14PixelPaint: Add copy action (copies the selection from active layer)Andreas Kling
You can now select a part of a layer, copy it, and then paste it as a new layer. Very cool :^)
2021-06-14PixelPaint: Draw the current editor selection as marching antsAndreas Kling
This patch moves the marching ants painting code to Selection and unifies the timer mechanism so that all marching ants are synchronized which looks neat. :^)
2021-06-14PixelPaint: Add a Selection class (ImageEditor has a Selection)Andreas Kling
This will represent a complex, region-based selection in the future. For now though, it's just a simple rectangle. :^)
2021-06-14PixelPaint: Implement basic rectangular selection (preview only)Andreas Kling
Using the rectangle select tool, you can now drag out a selection which will be drawn in the form of "marching ants" :^)
2021-06-14PixelPaint: Add a new "Rectangle Select" tool :^)Andreas Kling
This patch only adds the tool along with a toolbar icon for it. It doesn't do anything yet.
2021-06-14Kernel: Verify Process coredump threads are emptyJelle Raaijmakers
2021-06-14Kernel: Only call `Process::die()` once on terminating signalJelle Raaijmakers
Previously, when e.g. the `SIGABRT` signal was sent to a process, `Thread::dispatch_signal()` would invoke `Process::terminate_due_to_signal()` which would then `::die()`. The result `DispatchSignalResult::Terminate` is then returned to `Thread::check_dispatch_pending_signal()` which proceeds to invoke `Process::die()` a second time. Change the behavior of `::check_dispatch_pending_signal()` to no longer call `Process::die()` if it receives `::Terminate` as a signal handling result, since that indicates that the process was already terminated. This fixes #7289.
2021-06-14Userland: Fix double line spacing in grepSahan Fernando
2021-06-14LibJS: Correctly parse yield-from expressionsAli Mohammad Pur
This commit implements parsing for `yield *expr`, and the multiple ways something can or can't be parsed like that. Also makes yield-from a TODO in the bytecode generator. Behold, the glory of javascript syntax: ```js // 'yield' = expression in generators. function* foo() { yield *bar; // <- Syntax error here, expression can't start with * } // 'yield' = identifier anywhere else. function foo() { yield *bar; // Perfectly fine, this is just `yield * bar` } ```
2021-06-14LibJS: Parse generator functions in object literalsAli Mohammad Pur
Also add some parser tests
2021-06-14LibJS: Add a test file for generator function parsingAli Mohammad Pur
Note that the yield-from expression tests are skipped for now since they're not implemented yet.
2021-06-14LibRegex: Remove unused codeGunnar Beutner
2021-06-14LibRegex: Use a plain pointer for OpCode::m_stateGunnar Beutner
2021-06-14LibRegex: Avoid initialization checks in get_opcode_by_id()Gunnar Beutner
2021-06-14LibRegex: Avoid prepending items to vectorsGunnar Beutner
2021-06-14LibRegex: Avoid making unnecessary string copiesGunnar Beutner
2021-06-14LibRegex: Make get_opcode() return a referenceGunnar Beutner
Previously this would return a pointer which could be null if the requested opcode was invalid. This should never be the case though so let's VERIFY() that instead.
2021-06-14LibRegex: Remove return value for settersGunnar Beutner
2021-06-14LibRegex: Use a plain array to store opcodesGunnar Beutner
Using a hash map is unnecessary because the number of opcodes and their IDs never change.
2021-06-14Ports: Adds Another World VM interpreter implementationPavel Safar
2021-06-14Meta: Request that new contributors don't start with new app/libAndreas Kling
It's strongly preferred that new contributors get comfortable with the system and the project by working on smaller and/or existing things before adding entirely new components to it.
2021-06-14LibGfx: Inline BitmapFont::glyph_or_emoji_width() for fixed-width fontsAndreas Kling
2021-06-14LibJS: Teach Reference to access call frame arguments directlyAndreas Kling
2021-06-14LibJS: Add LoadArgument bytecode instruction for fast argument accessAndreas Kling
This is generated for Identifier nodes that represent a function argument variable. It loads a given argument index from the current call frame into the accumulator.
2021-06-14LibJS: Access function arguments directly in AST interpreterAndreas Kling
Instead of doing a generic scoped variable lookup, function arguments now go directly to the call frame arguments list. This is a huge speedup on everything that uses arguments. :^)
2021-06-14LibJS: Write computed function default arguments into the call frameAndreas Kling
Previously, default argument values would only show up when accessing the argument by parameter name. This patch makes us write them back into the call frame so they can be accessed via VM::argument() as well.
2021-06-14LibJS: Track which Identifier nodes refer to function argumentsAndreas Kling
This patch adds an "argument index" field to Identifier AST nodes. If the Identifier refers to a function parameter in the currently open function scope, we stash the index of the parameter here. This will allow us to implement much faster direct access to function argument variables.
2021-06-14LibJS: Add additional generic Array.prototype.slice testsdavidot
2021-06-14LibJS: Add Array.prototype.@@unscopablesdavidot
2021-06-14LibJS: Make Array.prototype.at return undefined on empty slotdavidot
2021-06-14LibJS: Implement Array.prototype.copyWithin genericallydavidot
2021-06-14LibJS: Implement Array.prototype.entriesdavidot
2021-06-14LibJS: Implement Array.prototype.flatMapdavidot
Also made recursive_array_flat more compliant with the spec So renamed it to flatten_into_array
2021-06-14LibJS: Make Array.prototype.concat genericdavidot
2021-06-14LibJS: Make Array.prototype.reverse genericdavidot
2021-06-14LibJS: Add additional Array.prototype.reverse testsdavidot
2021-06-14LibJS: Make Array.prototype.unshift genericdavidot
2021-06-14LibJS: Make Array.prototype.shift genericdavidot
2021-06-14LibJS: Add support for hex, octal & binary big integer literalsIdan Horowitz
2021-06-14LibCrypto: Add {Signed,Unsigned}BigInteger::from_base{2, 8, 16} helpersIdan Horowitz
These can be used to create BigInteger instances from non-decimal number strings.
2021-06-14LibJS: Add tests for DataView.prototype getters and settersIdan Horowitz
2021-06-14LibJS: Add all of the DataView.prototype.set* methodsIdan Horowitz
2021-06-14LibJS: Add all of the DataView.prototype.get* methodsIdan Horowitz
2021-06-14LibJS: Add the DataView built-in objectIdan Horowitz
2021-06-13LibJS: Make a couple of %TypedArray%.prototype properties accessorsLinus Groh
Also use JS_DEFINE_NATIVE_GETTER and not JS_DEFINE_NATIVE_FUNCTION for their function definitions.
2021-06-13LibJS: Make Symbol.prototype.description an accessorLinus Groh
2021-06-13LibJS: Make Set.prototype.size an accessorLinus Groh
Also fix its attributes, should be just configurable.
2021-06-13LibJS: Make a couple of RegExp.prototype properties accessorsLinus Groh