mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibPDF: Rename ColorSpaceFamily function to may_be_specified_directly()
It used to be called ColorSpaceFamily::never_needs_parameters(). But in the cpp file, the macro arg was called ever_needs_parameters, and the spec says "If the color space is one that can be specified by a name and no additional parameters (DeviceGray, DeviceRGB, DeviceCMYK, and certain cases of Pattern), the name may be specified directly." so let's use that language here. No behavior change.
This commit is contained in:
parent
095a2a17ed
commit
aea0e2f313
Notes:
sideshowbarker
2024-07-16 20:21:48 +09:00
Author: https://github.com/nico
Commit: aea0e2f313
Pull-request: https://github.com/SerenityOS/serenity/pull/21516
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 11 additions and 11 deletions
|
@ -958,7 +958,7 @@ PDFErrorOr<NonnullRefPtr<ColorSpace>> Renderer::get_color_space_from_resources(V
|
|||
auto maybe_color_space_family = ColorSpaceFamily::get(color_space_name);
|
||||
if (!maybe_color_space_family.is_error()) {
|
||||
auto color_space_family = maybe_color_space_family.release_value();
|
||||
if (color_space_family.never_needs_parameters()) {
|
||||
if (color_space_family.may_be_specified_directly()) {
|
||||
return ColorSpace::create(color_space_name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue