mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
LibPDF: Move inline function definition
This breaks the dependency cycle between Parser and Document.
This commit is contained in:
parent
edc0cd29f8
commit
da170997d5
2 changed files with 6 additions and 1 deletions
|
@ -39,6 +39,11 @@ Parser::Parser(ReadonlyBytes const& bytes)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Parser::set_document(RefPtr<Document> const& document)
|
||||||
|
{
|
||||||
|
m_document = document;
|
||||||
|
}
|
||||||
|
|
||||||
bool Parser::initialize()
|
bool Parser::initialize()
|
||||||
{
|
{
|
||||||
if (!parse_header())
|
if (!parse_header())
|
||||||
|
|
|
@ -29,7 +29,7 @@ public:
|
||||||
Parser(Badge<Document>, ReadonlyBytes const&);
|
Parser(Badge<Document>, ReadonlyBytes const&);
|
||||||
|
|
||||||
[[nodiscard]] ALWAYS_INLINE RefPtr<DictObject> const& trailer() const { return m_trailer; }
|
[[nodiscard]] ALWAYS_INLINE RefPtr<DictObject> const& trailer() const { return m_trailer; }
|
||||||
void set_document(RefPtr<Document> const& document) { m_document = document; }
|
void set_document(RefPtr<Document> const&);
|
||||||
|
|
||||||
// Parses the header and initializes the xref table and trailer
|
// Parses the header and initializes the xref table and trailer
|
||||||
bool initialize();
|
bool initialize();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue