ladybird/Userland
Rodrigo Tobar 8c79f0e0cf LibPDF: Add more utility methods to {Dict,Array}Object
Being both of them containers, these classes already offered a set of
methods to retrieve an inner element by key or index, respectively, with
different methods for the different subtypes of the PDF::Object type
returning the element cast to the correct type pointer. On top of
that, DictObject offered an additional method to obtain an element as an
Object pointer.

While these methods were useful, they have some shortcomings:

 * They always take a Document pointer to first perform an object
   resolution, in case the element is a Reference. This is not always
   necessary though, as there are values that are always meant to be
   immediate, and hence the resolution lookup adds overhead.
 * There was no easy way to get an individual Object element from an
   ArrayObject like there is in DictObject. This makes it difficult to
   obtain such values, as one first needs to call dict.get() to get a
   Value, then cast it manually to a NonnullRefPtr<Object>.

This commit fixes these two issues by:

 * Adding a new method that returns an Object for a given index.
 * Adding overloads for this new method, and all the existing methods
   described above, that do *not* take a Document, and therefore do
   *not* perform an object resolution lookup.
2023-01-06 18:06:41 +01:00
..
Applets LibGfx: Avoid rounding/truncating glyph positions till blitting 2023-01-05 12:09:35 +01:00
Applications PDFViewer: Inform users of underlying issue when loading document 2023-01-06 18:06:41 +01:00
BuggieBox Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00
Demos LibGfx: Avoid rounding/truncating glyph positions till blitting 2023-01-05 12:09:35 +01:00
DevTools GMLPlayground: Fill preview window with background color 2023-01-05 18:58:08 +01:00
DynamicLoader DynamicLoader: Remove i686 support 2022-12-28 11:53:41 +01:00
Games Solitaire: Replace animation Card with manual painting 2023-01-06 16:03:50 +01:00
Libraries LibPDF: Add more utility methods to {Dict,Array}Object 2023-01-06 18:06:41 +01:00
Services FileSystemAccessServer: Use Core::Stream 2023-01-06 14:52:29 +00:00
Shell Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
Utilities LibWeb+WebContent: Convert BrowsingContext to new pixel units 2023-01-05 17:42:31 +01:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00