1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

LibPDF: Parse outline structures

This commit is contained in:
Matthew Olsson 2021-05-23 16:37:33 -07:00 committed by Ali Mohammad Pur
parent 777c232e16
commit a08922d2f6
3 changed files with 257 additions and 2 deletions

View file

@ -67,7 +67,7 @@ public:
~NameObject() override = default;
[[nodiscard]] ALWAYS_INLINE FlyString name() const { return m_name; }
[[nodiscard]] ALWAYS_INLINE const FlyString& name() const { return m_name; }
ALWAYS_INLINE bool is_name() const override { return true; }
ALWAYS_INLINE const char* type_name() const override { return "name"; }
@ -86,6 +86,7 @@ public:
~ArrayObject() override = default;
[[nodiscard]] ALWAYS_INLINE size_t size() const { return m_elements.size(); }
[[nodiscard]] ALWAYS_INLINE Vector<Value> elements() const { return m_elements; }
ALWAYS_INLINE auto begin() const { return m_elements.begin(); }