summaryrefslogtreecommitdiff
path: root/Userland/Libraries
AgeCommit message (Collapse)Author
2021-05-09LibCpp: Support Lexing escaped newlinesItamar
2021-05-09LibCpp: Rename m_definitions=>m_preprocessor_definitionsItamar
2021-05-09LibWeb: Add tests for HTMLTableElement attributesAdam Hodgen
These tests aim to exercise all attributes on <html> elements, including all edge cases.
2021-05-09LibWeb: Fix nodeName attribute in testsAdam Hodgen
Commit 19731fc14c (#6864) made all nodeName attributes on HTML elements uppercased. This change fixes that in all HTML & DOM tests.
2021-05-09LibWeb: Implement HTMLTableElement tbody attributesAdam Hodgen
* tBodies - returns a HTMLCollection of all tbody elements * createTBody - If necessary, creates a new tbody element and add it to the table after the last tbody element
2021-05-09LibWeb: Implement HTMLTableElement tfoot attributesAdam Hodgen
* tFoot - Getter for the tfoot element The setter is not currently implemented * createTFoot - If necessary, creates a new tfoot element and add it to the table after any tbody elements * deleteTFoot - If a tfoot element exists in the table, delete it
2021-05-09LibWeb: Implement HTMLTableElement thead attributesAdam Hodgen
* tHead - Getter for the thead element The setter is not currently implemented * createTHead - If necessary, creates a new thead element and add it to the table after any caption or colgroup elements, but before anything else * deleteTHead - If a thead element exists in the table, delete it
2021-05-09LibWeb: Implement HTMLTableElement caption attributesAdam Hodgen
* caption - Getter and setter for the caption element * createCaption - If necessary, creates a new caption element and add it to the table * deleteCaption - If a caption element exists in the table, delete it
2021-05-09LibWeb: Implement HTMLTableElement row attributesAdam Hodgen
rows returns a HTMLCollection of all the tr elements contained within the table. We leave the SameObject attribute off the attribute in the IDL as we cannot currently return the same HTMLCollection every time (see the FIXME on DOM::Document::applets) The WrapperGenerator currently does not correctly handle the default value for the type long on insertRow. Currently not specifying the index will insert a row at index 0.
2021-05-09LibC: Add definition for the rlim_t typeGunnar Beutner
The missing type caused the binutils and dash ports to fail to build.
2021-05-09LibGfx: Fix clipping in fill_ellipseEgor Ananyin
fill_ellipse used to clip the bounding box, so instead of drawing a part of an ellipse it drew a smaller ellipse. This commit fixes this behaviour.
2021-05-09LibGL: Add depth tests and writes to SoftwareRasterizerStephan Unverwerth
Tests against and writes to the depth buffer when GL_DEPTH_TEST is enabled via glEnable(). Currently fragment z is always compared against existing depth with GL_LESS.
2021-05-09LibGL: Add depth buffer classStephan Unverwerth
2021-05-09LibGL: Add supporting code for depth bufferStephan Unverwerth
This adds glClearDepth() and new caps for enabling and disabling the depth buffer with glEnable() and glDisable()
2021-05-09LibC: Add declarations for various C11 math functionsGunnar Beutner
2021-05-09LibC: Implement the _Exit functionGunnar Beutner
libstdc++v3 checks whether this function is available and makes certain functions available in the std namespace if so.
2021-05-09LibC: Implement vscanfGunnar Beutner
libstdc++v3 checks whether vscanf is available and only then makes C99 stdio functions available in the std namespace.
2021-05-09Toolchain+LibM: Make C++ standard library math functions availableGunnar Beutner
With this fixed we get libstdc++v3's aliases for C99 math functions in the std namespace. Unfortunately for this to work the toolchain needs to be rebuilt. The good news are that this by itself does not require a toolchain rebuild just yet.
2021-05-09LibWeb: Implement :nth-child pseudo-classmiere43
2021-05-09LibWeb: Allow white space inside pseudo-class argumentsmiere43
2021-05-09LibGfx: Change "white_space" => "whitespace"Andreas Kling
Whitespace is one word. :^)
2021-05-09LibSQL: Add a syntax highlighterDylan Katz
2021-05-09Taskbar+LibGUI+WindowServer: Shrink taskbar by one pixelAndreas Kling
Make the taskbar 27 pixels tall instead of 28. This makes the button icons and applets vertically centered. On a related note, this required touching *way* too many places..
2021-05-08LibGUI: Clear GUI::TextEditor selection before performing undo/redoAndreas Kling
Fixes #6972.
2021-05-08LibGUI: Remove now-unused undo coalescing timer from GUI::TextEditorAndreas Kling
This is no longer used since commands handle merging themselves.
2021-05-08LibGUI: Show command name in GUI::TextEditor undo/redo action textAndreas Kling
We can now show things like "Undo Insert Text" and "Redo Remove Text" instead of just "Undo" and "Redo" in menu items. Pretty neat! :^)
2021-05-08LibGUI: Add UndoStack::{undo,redo}_action_text()Andreas Kling
These return the action_text() for the current undo and redo commands, if available.
2021-05-08LibGUI: Make Command::action_text() virtualAndreas Kling
It will be easier for some commands to generate an action text on the fly instead of having to think of it up front, so a virtual that you can override seems more convenient here.
2021-05-08LibGUI: Make Action::set_text() update any associated menu itemsAndreas Kling
Now you can change the text of an action and it will actually show up in the menu. :^)
2021-05-08LibGUI: Remove UndoStack's automatic command combo'ingAndreas Kling
UndoStack will now merge adjacent commands *if they want to be merged* instead of bundling everything you push onto it until you tell it to "finalize the combo." This uses less memory and gives applications full control over how their undo stacks end up. :^)
2021-05-08LibGUI: Implement merging of TextDocument's RemoveTextCommandAndreas Kling
When deleting text by pressing backspace, the commands will be merged into a single RemoveTextCommand.
2021-05-08LibGUI: Implement merging of TextDocument's InsertTextCommandAndreas Kling
When performing multiple text insertions in a row, they will now be merged into a single InsertTextCommand.
2021-05-08LibGUI: Support merging of adjacent commands on the UndoStackAndreas Kling
When pushing a new command on an undo stack, we will now attempt to merge it into the stack's current command. Merging is implemented by overriding the "merge_with(Command const&)" virtual on GUI::Command. :^)
2021-05-08LibGUI: Some tweaks for TextEditor's will-execute-command virtualAndreas Kling
Renamed the virtual from "on_edit_action" to "will_execute" so it doesn't clash with our convention for Function hook names. Also tighten the parameter type to GUI::TextDocumentUndoCommand since that's the only kind of command it will receive.
2021-05-08LibGUI: Don't fire TextDocument change notification after each commandAndreas Kling
The undo stack has its own notification mechanism now, and we no longer piggyback on the document change notifications.
2021-05-08LibWasm: Implement parsing all remaining instructionsAli Mohammad Pur
With this, we can parse a module at least as simple as the following C code would generate: ```c int add(int x, int y) { if (x > y) return x + y; return y - x; // Haha goteeem } ```
2021-05-08LibWasm: Add some more descriptive parse errorsAli Mohammad Pur
It's much better to tell the user "hey, the magic numbers don't check out" than "oh there was a problem with your input" :P Also refactors some stuff to make it possible to efficiently use the parser error enum without it getting in the way.
2021-05-08LibWasm: Start implementing a basic WebAssembly binary format parserAli Mohammad Pur
This can currently parse a really simple module. Note that it cannot parse the DataCount section, and it's still missing almost all of the instructions. This commit also adds a 'wasm' test utility that tries to parse a given webassembly binary file. It currently does nothing but exit when the parse fails, but it's a start :^)
2021-05-08AK+LibCpp: Remove DEBUG_SPAM in favour of per-application definesAli Mohammad Pur
What happens if one file defines DEBUG_SPAM, and another doesn't, then we link them together and get ODR violations? -- @ADKaster
2021-05-08LibC: Add stubs for getrlimit()/setrlimit()Gunnar Beutner
2021-05-08LibPthread: Add implementation for pthread_mutexattr_gettypeGunnar Beutner
2021-05-08LibC: Add definition for LC_MESSAGESGunnar Beutner
2021-05-08LibC: Add definition for EDQUOTGunnar Beutner
This is used by the libphysfs port.
2021-05-08AK: Add missing GenericTraits<NonnullRefPtr>Itamar
This enables us to use keys of type NonnullRefPtr in HashMaps and HashTables. This commit also includes fixes in various places that used HashMap<T, NonnullRefPtr<U>>::get() and expected to get an Optional<NonnullRefPtr<U>> and now get an Optional<U*>.
2021-05-08LibGUI: Add missing <AK/Function.h> includeMaciej Zygmanowski
2021-05-08LibGUI+TextEditor: Make TextDocument modified state track undo stackAndreas Kling
This was quite unreliable before. Changes to the undo stack's modified state are now reflected in the document's modified state, and the GUI::TextEditor widget has its undo/redo actions updated automatically. UndoStack is still a bit hard to understand due to the lazy coalescing of commands, and that's something we should improve upon (e.g with more explicit, incremental command merging.) But for now, this is a nice improvement and undo/redo finally behaves in a way that feels natural.
2021-05-08LibGUI: Use UndoStack::on_state_change inside TextDocument/TextEditorAndreas Kling
Have TextDocument listen for state changes on the internal undo stack, and forward those to all clients via a new virtual function. This simplifies updating the can_undo / can_redo states of TextEditor.
2021-05-08LibGUI: Add UndoStack::on_state_change hookAndreas Kling
This will allow clients to react to the undo stack changing state. It's invoked when the stack or clean index are changed.
2021-05-08LibGUI: Reverse internal direction of GUI::UndoStackAndreas Kling
The undo stack was very difficult to understand as it grew by adding new undo commands to the front of the internal vector. This meant we had to keep updating indices as the stack grew and shrank. This patch makes the internal vector grow by appending instead.
2021-05-08Revert "LibGUI: Fix undo stack reporting wrong modified state"Andreas Kling
This reverts commit 0b7e19e2bb34cceb340607f0b7f76b338d78767e. Let's reverse the direction of the undo stack to fix the confusion.