mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
LibPDF: Implement two SeparationColorSpace methods
Actually using separation color spaces still doesn't work, but we now no longer assert on them when they're used. Fixes 2 crashes on the `-n 500` 0000.zip pdfa dataset.
This commit is contained in:
parent
2311e28d63
commit
311cc7d9b9
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/311cc7d9b9 Pull-request: https://github.com/SerenityOS/serenity/pull/21579
2 changed files with 2 additions and 3 deletions
|
@ -396,8 +396,7 @@ PDFErrorOr<Color> SeparationColorSpace::color(ReadonlySpan<Value>) const
|
|||
|
||||
Vector<float> SeparationColorSpace::default_decode() const
|
||||
{
|
||||
warnln("PDF: TODO implement SeparationColorSpace::default_decode()");
|
||||
return {};
|
||||
return { 0.0f, 1.0f };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ public:
|
|||
~SeparationColorSpace() override = default;
|
||||
|
||||
PDFErrorOr<Color> color(ReadonlySpan<Value> arguments) const override;
|
||||
int number_of_components() const override { TODO(); }
|
||||
int number_of_components() const override { return 1; }
|
||||
Vector<float> default_decode() const override;
|
||||
ColorSpaceFamily const& family() const override { return ColorSpaceFamily::Separation; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue