thankyouverycool
6448f94372
DevTools+LibGUI: Make ProcessChooser a general Dialog in LibGUI
...
Moves ProcessChooser and RunningProcessesModel to LibGUI and
generalizes their construction for use by other apps. Updates
Profiler to reflect the change and use its new icons.
2020-07-28 16:29:36 +02:00
Andreas Kling
08c05fbbd1
LibC: Fix strtol() not setting endptr correctly for "0"
...
"0" was interpreted as a base-8 prefix, and the parse pointer was then
unconditionally advanced, causing us to consume zero characters.
This unbreaks the git port. :^)
(We should really have tests for LibC..)
2020-07-28 02:26:49 +02:00
Andreas Kling
308d3b764f
LibC: Move getpagesize() out-of-line
...
This being inline somehow broke the binutils autoconf scripts. It used
to work, so I suspect that some other change to LibC has caused those
autoconf scripts to go down a new path.
Regardless, this seems perfectly sensible.
2020-07-28 00:03:25 +02:00
asynts
ed327e7feb
LibCrypto: Change the signatures of RSA::import_[XXX]_key to use Span.
2020-07-27 19:58:09 +02:00
asynts
3de4e08b46
LibCrypto: Change the signature of decode_pem to use Span.
2020-07-27 19:58:09 +02:00
asynts
0d782e1dfb
LibCrypto: Change the signature of RSA::parse_rsa_key to use Span.
2020-07-27 19:58:09 +02:00
asynts
21de20825a
LibCore: Change the signature of Socket::send() to use Span.
2020-07-27 19:58:09 +02:00
asynts
4709b700bd
LibCrypto: Change [XXX]BigInteger::export_data() to use Span.
2020-07-27 19:58:09 +02:00
asynts
abe925e4b0
AK: Change the signature of AK::encode_base64() to use Span.
2020-07-27 19:58:09 +02:00
asynts
68cf22d580
LibCrypto: This method wrote to a const pointer.
2020-07-27 19:58:09 +02:00
Andreas Kling
78518d230c
LibCore+LibWeb: Move guess-mimetype-based-on-filename logic to LibCore
...
This could be useful in more places.
2020-07-27 19:57:20 +02:00
Luke
a2b40de0cc
LibWeb: Add a whole bunch of HTML DOM bindings
...
Note that these aren't full implementations of the bindings. This
mostly implements the low hanging fruit (namely, basic reflections)
There are some attributes that should be USVString instead of
DOMString. However, USVString is a slightly different definition
of DOMString, so it should suffice for now.
2020-07-27 19:51:45 +02:00
Andreas Kling
b5f54d4153
Kernel+LibC: Add sys$set_process_name() for changing the process name
2020-07-27 19:10:18 +02:00
Andreas Kling
b9a0ba9624
LibC: Make the getpid() cache process global (instead of thread-local)
...
Every thread in the process will have the same PID, after all.
2020-07-27 19:10:18 +02:00
Andreas Kling
7bb6b1d44d
LibGfx: Fix dumb typo in PNG decoder
...
'=' is not the same as '*', indeed.
2020-07-27 19:10:18 +02:00
Andreas Kling
0b1a40a6fe
LibGfx: Simplify some excessive use of pow() in scanline unfiltering
2020-07-27 16:40:12 +02:00
Andreas Kling
1366557094
AK+LibC: Always use REP MOVSB/STOSB for memcpy()/memset()
...
There's no great advantage to using MMX instructions here on modern
processors, since REP MOVSB/STOSB are optimized in microcode anyway
and tend to run much faster than MMX/SSE/AVX variants.
This also makes it much easier to implement high-level emulation of
memcpy/memset in UserspaceEmulator once we get there. :^)
2020-07-27 15:54:39 +02:00
Nico Weber
9ee1edae2a
CppLexer: Support raw string literals
...
Handles prefixes and delimiters (`R"(text)", `u8R"f(text)f"`, ...).
2020-07-27 12:11:19 +02:00
Nico Weber
4d783338c1
CppLexer: Support L, u, u8, U prefixes on string and char literals
2020-07-27 12:11:19 +02:00
Nico Weber
34dc163441
CppLexer: Correctly highlight hex escapes in string and char literals
...
\x consumes all hex digits following it. (If the resulting number
then doesn't fit in the character type, the compiler emits an
error.)
\x would be much more convenient to use if it was always followed
by exactly two hex digits (with \u and \U for higher codepoints),
but that's sadly not the world we live in.
2020-07-27 12:11:04 +02:00
Nico Weber
c1b7fd644c
CppLexer: Support \U escapes in addition to \u escapes
2020-07-27 12:10:46 +02:00
Matthew Olsson
335916d8db
LibGfx: Templatize Point, Size, and Rect
2020-07-27 01:06:26 +02:00
Nico Weber
7a1c328417
CppLexer: Add token types for "::", "::*", ".*", "->*"
2020-07-27 01:04:17 +02:00
Nico Weber
1992dbd637
CppLexer: Add token types for ".", "->"
2020-07-27 01:04:17 +02:00
Nico Weber
95113d15fe
CppLexer: Add token types for "!", "!=", "~", "?", ":"
2020-07-27 01:04:17 +02:00
Nico Weber
29bc978564
CppLexer: Add token types for "^", "^="
2020-07-27 01:04:17 +02:00
Nico Weber
c38b8d63f8
CppLexer: Add token types for "++", "--"
2020-07-27 01:04:17 +02:00
Nico Weber
598b5e4595
CppLexer: Add token types for "&", "&&", "&=", "|", "||", "|="
2020-07-27 01:04:17 +02:00
Nico Weber
345b303262
CppLexer: Add token types for ">", ">=", ">>", ">>="
2020-07-27 01:04:17 +02:00
Nico Weber
97c4344f33
CppLexer: Add token types for "<", "<=", "<<", "<<=", "<>"
2020-07-27 01:04:17 +02:00
Itamar
240eb3242a
LibDebug: Add support for the various DW_FORM_block types
...
This fixes #2885 .
2020-07-27 00:06:47 +02:00
Andreas Kling
1f008c95b6
LibWeb: Move CSS classes into the Web::CSS namespace
2020-07-26 20:05:15 +02:00
Andreas Kling
3e389f4cdc
LibGUI: Remove accidentally committed file :^)
2020-07-26 20:05:15 +02:00
Andreas Kling
11ff9d0f17
LibWeb: Move DOM classes into the Web::DOM namespace
...
LibWeb keeps growing and the Web namespace is filling up fast.
Let's put DOM stuff into Web::DOM, just like we already started doing
with SVG stuff in Web::SVG.
2020-07-26 20:05:15 +02:00
Nico Weber
96d13f75cf
CppLexer: Add token types for "+", "+=", "-", "-=", "=", "==", "/", "/="
...
Mostly so that TextEdit doesn't emit logspam when I write `int a = 4`
in a test program.
2020-07-26 19:52:26 +02:00
Nico Weber
5a36d8acb8
CppLexer: Add token type for "*="
2020-07-26 19:52:26 +02:00
Andreas Kling
eabd43d31a
LibWeb: Make SVGElement and SVGGeometryElement constructors protected
2020-07-26 17:51:00 +02:00
Andreas Kling
1b1537c5a6
LibWeb: Simplify type traits for SVGGraphicsElement
2020-07-26 17:51:00 +02:00
Andreas Kling
e0b8b4ac67
LibCore+LibGUI: Switch to using AK::is and AK::downcast
2020-07-26 17:51:00 +02:00
Andreas Kling
71556e39a4
LibWeb: Switch to using AK::is and AK::downcast
2020-07-26 17:51:00 +02:00
Andreas Kling
a565121793
LibWeb: Move HTML object model stuff into LibWeb/HTML/
...
Take a hint from SVG and more all the HTML classes into HTML instead of
mixing them with the DOM classes.
2020-07-26 17:51:00 +02:00
asynts
707d92db61
Refactor: Change the AK::binary_search signature to use AK::Span.
2020-07-26 16:49:06 +02:00
Andreas Kling
d43ddd6eb7
LibWeb: LayoutSVG should not claim to be a LayoutCanvas :^)
...
Also make the class_name() match the actual class name.
2020-07-26 14:59:43 +02:00
AnotherTest
ec0315883b
LibHTTP: Be more tolerant about bad chunked encoding trailers
...
Some servers (*glares at cloudflare*) like to send two last chunks,
which is strictly against the spec. Let's be more tolerant of this
behaviour.
2020-07-26 14:55:47 +02:00
Matthew Olsson
49c5acaa3d
LibM: Fix Lagom build
...
isnormal really messes up the build. Just remove it for now; it can be
addressed in a seperate commit. Additionally, conditionally add
`noexcept` to the math functions if we are in a C++ context.
2020-07-26 14:53:43 +02:00
Matthew Olsson
b1299f972c
LibWeb: Refactor SVG files into their own directory; follow spec layout
2020-07-26 14:53:43 +02:00
Matthew Olsson
943e4f8bf1
LibWeb: Abstract common operations of graphical SVG elements
2020-07-26 14:53:43 +02:00
Matthew Olsson
3206263c2d
LibM: Evaluate math macros, add M_DEG2RAD and M_RAD2DEG
2020-07-26 14:53:43 +02:00
Matthew Olsson
9cce7f57dd
LibGfx: Add FloatPoint methods
...
Adds some conversion constructors, as well as the missing arithmetic
operations.
2020-07-26 14:53:43 +02:00
Matthew Olsson
5985eac81d
LibWeb: Add elliptical curve support to svg path elements
2020-07-26 14:53:43 +02:00