AnotherTest
5a0ebdb109
LibLine: Treat DEL as backspace by default
...
This can come in handy when telneting in.
2021-03-13 19:34:25 +01:00
AnotherTest
745b0800be
LibLine: Don't try to print chars larger than 63 in caret form
...
Instead, mask them as `\xbb` so that e.g. DEL becomes `\x7f`.
Fixes #5752 .
2021-03-13 19:34:25 +01:00
Itamar
8688259ed9
LanguageServers/Cpp: Support jumping to declaration of preprocessor
...
.. definitions.
2021-03-13 10:17:02 +01:00
Itamar
7bf6eca9d8
LanguageServers/Cpp: Complete Preprocessor definitions
...
Preprocessor definitions now appear in the AutoComplete suggestions box
as well as in the Locator.
2021-03-13 10:17:02 +01:00
Itamar
5b22f6f45a
LibCpp: Parser no longer holds the program's source
...
After we moved to storing the text of each token in the token itself,
we no longer have to store the source of the program in the Parser.
This makes more sense because the parser should deal with tokens, not
with raw source code.
2021-03-13 10:17:02 +01:00
Itamar
8a102fe3ec
LibCpp: Implement Parser::text_in_range using text of tokens
...
It was previously implemented by directly iterating over the program's
source.
2021-03-13 10:17:02 +01:00
Itamar
97f2cd596b
LibCpp: Remove node_span_size, add index_of_node_at
2021-03-13 10:17:02 +01:00
Itamar
26d9485562
LibCpp: Store the text of a token as a StringView member
2021-03-13 10:17:02 +01:00
Itamar
5cd1c69b96
LibCpp: Access Cpp::Token members via getter functions
2021-03-13 10:17:02 +01:00
Itamar
d0b4f9cc0e
LibCpp: Move Cpp::Token to a separate file
2021-03-13 10:17:02 +01:00
Itamar
3658c4c567
LibCpp: Replace defined preprocessor values when parsing
2021-03-13 10:17:02 +01:00
Linus Groh
2d8362cceb
LibJS: Implement 'Relative Indexing Method' proposal (.at())
...
Still stage 3, but already implemented in major engines and unlikely to
change - there isn't much to change here anyway. :^)
See:
- https://github.com/tc39/proposal-relative-indexing-method
- https://tc39.es/proposal-relative-indexing-method/
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at
2021-03-12 19:01:08 +01:00
Andreas Kling
d3f112f9a2
AK+LibCore: Remove empty files
2021-03-12 17:38:17 +01:00
Andreas Kling
ef1e5db1d0
Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)
...
Good-bye LogStream. Long live AK::Format!
2021-03-12 17:29:37 +01:00
thankyouverycool
0fc81d23f4
LibGUI: Add variable padding and center bitmaps in TableViews
...
This lets us make nicer looking bitmap tables and fixes a content
rect issue in TreeView. Also makes key column highlighting optional
2021-03-12 09:59:03 +01:00
thankyouverycool
142ca4b818
WindowServer+LibGfx: Enumerate Disallow cursor
2021-03-12 09:59:03 +01:00
thankyouverycool
bc26d1093f
LibGUI: Clear inactive selections in DisplayOnly TextEditors
2021-03-12 09:59:03 +01:00
thankyouverycool
bf432f8a3a
LibGUI: Add opacity to ImageWidget
2021-03-12 09:59:03 +01:00
thankyouverycool
0e63141a19
LibGUI: Set override cursor to none when widget is disabled
2021-03-12 09:59:03 +01:00
thankyouverycool
cf866cc75a
LibGUI: Register more GML properties and widgets
...
Register "placeholder" for TextEditor and ComboBox; "models_only"
for ComboBox; Vertical/HorizontalSeparator for SeparatorWidget
2021-03-12 09:59:03 +01:00
thankyouverycool
5806630cf4
LibGfx+LibGUI: Add support for vertical ProgressBars
2021-03-12 09:59:03 +01:00
thankyouverycool
bd34cdbbb3
LibGUI: Ignore scroll length multiplier in SpinBoxes & Sliders
...
Prevents discrete values from being skipped when using the mouse
wheel on SpinBoxes and proportional Sliders. Wheel delta can be
accelerated by holding Ctrl.
2021-03-12 09:59:03 +01:00
Andreas Kling
38f11cc1ba
Everywhere: Rename "logo" key to "super" key
...
This seems to be the most common way to refer to this key, so let's
call it what people actually call it.
2021-03-11 18:55:16 +01:00
AnotherTest
eb1ca965c7
LibLine: Cleanup the suggestions before inserting a new code point
...
Otherwise `reposition_cursor()` will move the cursor one character too
far to the right, and since we don't redraw the entire buffer when
the character is inserted at the end, the mistake won't be immediately
fixed by a complete redraw.
Fixes #5722
2021-03-11 14:47:56 +01:00
Ben Wiederhake
bceb98e2df
Userland: Remove superfluous headers
...
Userland has no reason to access 'kmalloc'.
2021-03-11 12:32:53 +01:00
Luke
4477a0d6fd
LibWeb: Remove FIXME in is_javascript_mime_type_essence_match
...
This was misleading. The spec just wants us to check a string matches
a string in the JavaScript MIME type essence list. It doesn't want us
to parse the string as a MIME type to then use its essence for the
check.
Renames "mime_type" to "string" to make this less misleading.
2021-03-11 08:30:02 +01:00
Andreas Kling
df621b9415
LibWeb: Run clang-format on CSS/Parser/StyleComponentValueRule.h
2021-03-09 20:06:52 +01:00
Andreas Kling
7c222d1bdf
LibWeb: Run clang-format on CSS/Parser/Token.h
2021-03-09 20:06:23 +01:00
Andreas Kling
5a050cb8d1
LibX86: Don't use "if (foo) [[unlikely]] { }" for now (to please clang)
2021-03-09 17:47:28 +01:00
Andreas Kling
ad152bfa59
LibWeb: Add a whole bunch of rule classes for the new CSS parser
...
Original work by @stelar7.
2021-03-09 17:36:21 +01:00
Andreas Kling
16cde3f14a
LibWeb: Rename CSSParser => DeprecatedCSSParser
2021-03-09 17:35:57 +01:00
Andreas Kling
078f0a5c67
LibWeb: Add specification-based CSS tokenizer
...
Original work by @stelar7 for #2628 .
2021-03-09 17:35:38 +01:00
Andreas Kling
656cd477c2
UserspaceEmulator+LibX86: Sprinkle some [[unlikely]] and ALWAYS_INLINE
2021-03-09 15:10:08 +01:00
Andreas Kling
9588f01739
UserspaceEmulator+LibC: Use sys$emuctl() to pass malloc info to UE
...
Get rid of the awkward secret handshake sequence between malloc and UE
and simply use sys$emuctl() to notify UE of malloc, free and realloc.
2021-03-09 11:31:18 +01:00
Andreas Kling
4faeaf101c
LibC: Don't scrub memory in malloc/free when running in UE
...
Since UE is keeping track of the heap anyway, we can skip the scrubbing
and drastically improve the speed of malloc and free when emulating.
2021-03-09 08:59:10 +01:00
Luke
d650b38eb9
LibWeb: Expose new CSS interfaces on the window object
2021-03-09 07:57:33 +01:00
Mițca Dumitru
b07310dc8b
LibM: Add nan{f, l}
2021-03-09 07:28:06 +01:00
Mițca Dumitru
efe4845c56
LibM: Implement more rounding functions
...
This patch implements the entire rint family, while taking into account
the current rounding mode, and implements ceil, round, trunc, and floor
for types which they weren't before.
2021-03-09 07:28:06 +01:00
Mițca Dumitru
88d342d007
LibM: Implement the frexp family
2021-03-09 07:28:06 +01:00
Mițca Dumitru
b274120b3c
LibM: Implement copysign for float and long double
2021-03-09 07:28:06 +01:00
Mițca Dumitru
87b61b0eef
LibM: Add scalbn and associated functions
...
Also implement ldexp in terms of them, and add ldexpl
2021-03-09 07:28:06 +01:00
Mițca Dumitru
352b383280
LibM: Add ilogb and logb
2021-03-09 07:28:06 +01:00
Mițca Dumitru
190952675e
LibM: Specialiase FloatExtractor for long double as well
2021-03-09 07:28:06 +01:00
Mițca Dumitru
a13f2b7df3
LibC: Add defines to float.h
...
This doesn't define FLT_EVAL_METHOD as I'm not sure what I should actually use for that
2021-03-09 07:28:06 +01:00
Mițca Dumitru
857b0e1dc3
LibC: Add imaxdiv and lldiv
2021-03-09 07:28:06 +01:00
Mițca Dumitru
42a8186728
LibM: Define floating point comparsion macros
2021-03-09 07:28:06 +01:00
Mițca Dumitru
70737b42b2
LibM: Define math_errhandling
and associated macros
2021-03-09 07:28:06 +01:00
Andreas Kling
968ad0f8d1
LibWeb: Some improvements to CSS height:auto computation for blocks
...
Auto block heights are now computed according to something that kinda
resembles the specification.
Blocks with inline children and height:auto have their height computed
based on the top of the first line box and the bottom of the last line
box. Very straightforward.
Blocks with block children and height:auto have their height computed
based on the top of the first in-flow block child's margin box, and the
bottom of the last in-flow block child's margin box.
2021-03-08 22:53:28 +01:00
Brian Gianforcaro
bac0dd5e3d
LibGUI: Use AK_ENUM_BITWISE_OPERATORS for the FocusPolicy enum
2021-03-08 18:47:40 +01:00
Andreas Kling
dda6eb0f1f
LibWeb: Implement StyleSheet.type
...
This just returns "text/css" on CSSStyleSheet, nothing exciting.
2021-03-08 16:16:28 +01:00