mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 00:27:47 +00:00
LibPDF: Split ColorSpace into a different class for each color space
While unnecessary at the moment, this will allow for more fine-grained control when complex color spaces get added.
This commit is contained in:
parent
ea3abb14fe
commit
7b4e36bf88
Notes:
sideshowbarker
2024-07-18 12:21:07 +09:00
Author: https://github.com/mattco98
Commit: 7b4e36bf88
Pull-request: https://github.com/SerenityOS/serenity/pull/7675
Reviewed-by: https://github.com/FireFox317
Reviewed-by: https://github.com/alimpfard
7 changed files with 174 additions and 106 deletions
|
@ -89,6 +89,11 @@ Page Document::get_page(u32 index)
|
|||
auto page_object_index = m_page_object_indices[index];
|
||||
auto raw_page_object = resolve_to<DictObject>(get_or_load_value(page_object_index));
|
||||
|
||||
if (!raw_page_object->contains(CommonNames::Resources)) {
|
||||
// This page inherits its resource dictionary
|
||||
TODO();
|
||||
}
|
||||
|
||||
auto resources = raw_page_object->get_dict(this, CommonNames::Resources);
|
||||
auto contents = raw_page_object->get_object(this, CommonNames::Contents);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue