summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-06KeyboardMapper: Add GUI alert in case load from file failsNonStdModel
Previously there was no visual clue letting the user know that loading from file failed.
2021-06-06Documentation: Remove redundancy in CodingStyle.mdkemzeb
This is a fairly small change; removed the statement "Pointer and reference types in C++ code" as it does not provide any additional knowledge that contributors are or will be aware of after further reading into the "Pointers and References" section. It seems unnecessary and redundant given the sentence adjacent to it.
2021-06-06Ports: Add samTimothy
2021-06-06LibWeb: Resolve flex: shorthand correctlyTobias Christiansen
This patch removes some FIXMEs from the StyleResolver, specifically adding the proper float-parsing to the flex: shorthand. The functionality was already there it just didn't get plumbed in before.
2021-06-05LibJS: Throw TypeError on write to non-writable property in strict modeIdan Horowitz
2021-06-06LibWeb: Implement FlexBox Layout AlgorithmTobias Christiansen
2021-06-06LibWeb: Expose size calculation of BlockFormattingContextTobias Christiansen
This is a hack for the FlexFormattingContext
2021-06-06LibWeb: Parse and resolve flex: shorthandTobias Christiansen
2021-06-06LibWeb: Add flex-grow and flex-shrinkTobias Christiansen
They get parsed and are available to the programmer of Layouts :^)
2021-06-06LibWeb: Add parsing for NumericStyleValueTobias Christiansen
This StyleValue can hold an arbitrary float value.
2021-06-06LibWeb: Parse flex-basisTobias Christiansen
Flex-basis accepts either 'content' or a Length.
2021-06-06LibWeb: Add support for 'definite size' determinationTobias Christiansen
This is pretty naive and there are more nuances in the spec but should be enough for now.
2021-06-06LibWeb: Parse and resolve flex-flow propertyTobias Christiansen
2021-06-06LibWeb: Add parsing for flex-wrap propertyTobias Christiansen
2021-06-06LibWeb: Flex-items aren't affected by float nor clearTobias Christiansen
There are a few other things to notice, but they don't seem to be implemented yet.
2021-06-06LibWeb: LayoutNodes know whether they are flex-itemsTobias Christiansen
This is useful for debugging when dumping the layout tree.
2021-06-05LibWeb: Change BlockBox to not want mouse eventsdylanbobb
2021-06-05LibVT: Don't return a history size if alternate buffer is usedTim Schumacher
The line history is unavailable if the alternate screen buffer is currently enabled. However, since TerminalWidget uses the history size to offset its line numbers when rendering, it will try to render inaccessible lines once the history is not empty anymore.
2021-06-05Kernel: Return EPIPE when trying to write to an unconnected socketGunnar Beutner
When attempting to write to a socket that is not connected or - for connection-less protocols - doesn't have a peer address set we should return EPIPE instead of blocking the thread.
2021-06-06AK+Everywhere: Disallow constructing Functions from incompatible typesAli Mohammad Pur
Previously, AK::Function would accept _any_ callable type, and try to call it when called, first with the given set of arguments, then with zero arguments, and if all of those failed, it would simply not call the function and **return a value-constructed Out type**. This lead to many, many, many hard to debug situations when someone forgot a `const` in their lambda argument types, and many cases of people taking zero arguments in their lambdas to ignore them. This commit reworks the Function interface to not include any such surprising behaviour, if your function instance is not callable with the declared argument set of the Function, it can simply not be assigned to that Function instance, end of story.
2021-06-05ifconfig: Use shorter argument namesMaciej Zygmanowski
The previous argument names were so long that they won't fit into the terminal, making help message unreadable.
2021-06-05LibSQL: Limit the allowed depth of an expression treeTimothy Flynn
According to the definition at https://sqlite.org/lang_expr.html, SQL expressions could be infinitely deep. For practicality, SQLite enforces a maxiumum expression tree depth of 1000. Apply the same limit in LibSQL to avoid stack overflow in the expression parser. Fixes https://crbug.com/oss-fuzz/34859.
2021-06-05CI: Run libjs-test262 and update results on every push to masterLinus Groh
2021-06-05LibJS: Add the global escape() & unescape() methodsIdan Horowitz
2021-06-05LibJS: Correctly handle NaN and negative infinity in Math.atan2Idan Horowitz
The current implementation was missing an early return on a NaN argument and mixed up a couple of the positive/negative infinity early returns.
2021-06-05LibJS: Rewrite Math.hypot to handle exceptions, NaNs, Infinity properlyIdan Horowitz
The specification requires that we immediately return Infinity during the iteration over the arguments if positive or negative infinity is encountered, and return a NaN if it is encountered and no Infinity was found. The specification also requires all arguments to be coerced into numbers before the operation starts, or else a number conversion exception could be missed due to the Infinity/NaN early return.
2021-06-05LibJS: Handle NaN/Infinity/Zero edge cases in Math.pow()Idan Horowitz
This commit replaces the current simple call to LibM's pow with the full implementation of 6.1.6.1.3 Number::exponentiate: https://tc39.es/ecma262/#sec-numeric-types-number-exponentiate
2021-06-05LibJS: Rewrite Math.{max, min} to handle exceptions and NaNs properlyIdan Horowitz
The specification requires that we immediately return a NaN during the iteration over the arguments if one is encountered. It also requires all arguments to be coerced into numbers before the operation starts, or else a number conversion exception could be missed due to the NaN early return.
2021-06-05LibJS: Handle negative zero and negative infinity in Math.abs()Idan Horowitz
As required by the specification: 3. If n is -0, return +0. 4. If n is -∞, return +∞.
2021-06-05LibJS: Add Math.imul()Idan Horowitz
2021-06-05LibJS: Support symbol keys in Object.prototype.propertyIsEnumerableIdan Horowitz
2021-06-05LibJS: Replace StringOrSymbol::from_value with Value::to_property_keyIdan Horowitz
This is a more specification compliant implementation of the abstract operation 7.1.19 ToPropertyKey which should handle boxed symbols correctly.
2021-06-05Ports/PHP: Enable OpenSSL extensionJelle Raaijmakers
2021-06-05Ports/PHP: Disable PCRE JITJelle Raaijmakers
The PCRE JIT creates memory that needs to be readable, writable and executable at the same time. Serenity does not like this, so disable it. This JIT is of limited use for the current applications of PHP within Serenity anyway :-)
2021-06-05Ports/PHP: Enable Zlib extensionJelle Raaijmakers
2021-06-05Ports/PHP: Enable Phar extensionJelle Raaijmakers
2021-06-05Kernel: Perform output processing on echoDaniel Bertalan
Previously, we would echo characters back just as they were passed to us, even in canonical mode. This caused newlines to not work correctly in some programs. Fixes #7802
2021-06-05LibJS: Use PropertyName::as_string() in Object::get()Andreas Kling
After we've already checked is_string(), we can use as_string() to avoid a temporary String.
2021-06-05AK: Always inline FlyString::view()Andreas Kling
2021-06-05LibWasm: Move Wasm::BytecodeInterpreter into its own headerSahan Fernando
2021-06-05TreeView: Don't try to move cursor with invalid indexMarcus Nilsson
When clicking on the TreeView in profiler without selecting a node and then pressing up or pgup, cursor_index was in an invalid state. Instead select the first node in the index.
2021-06-05rm: Allow empty paths if -f is specifiedTim Schumacher
On most (if not all) systems rm ignores an empty paths array if -f or --force is specified. This helps with scripts that may pass an empty variable where the file paths are supposed to go.
2021-06-05Ports: Add port for freecivGunnar Beutner
2021-06-05LibC: Let setlocale() pretend that setting the locale succeededGunnar Beutner
By returning nullptr we're telling the caller that setlocale() failed. Some programs expect setlocale() to succeed so let's pretend that it did.
2021-06-05Ports: Specify missing library when linking SDL2_ttfGunnar Beutner
2021-06-05Ports: Build shared library for freetypeGunnar Beutner
2021-06-05Ports: fix gcc for mac usersyegor
BSD sed differs from GNU sed with the `-i` option. This commit changes the sed line in package.sh to be portable across macOS and Linux.
2021-06-05AK: Stop using U+0000 as end of file code point in URL parserMax Wipfli
This changes URL parser to use the 0xFFFFFFFF constant instead of 0 to indicate end of file. This fixes a bug where inputs containing null bytes would terminate the parser early, because they were interpreted as end of file.
2021-06-05AK: Make debugging URLParser easierMax Wipfli
This patch adds a state_name method to URLParser to convert a state to a string. With this, the debugging statements now display the state names. Furthermore, this fixes a bug where non-ASCII code points were formatted as characters, which fails an assertion in the formatting system.
2021-06-05AK: Do not trim away non-ASCII bytes when parsing URLMax Wipfli
Because non-ASCII code points have negative byte values, trimming away control characters requires checking for negative bytes values. This also adds a test case with a URL containing non-ASCII code points.