Skip to content

Commit

Permalink
[UnifiedPDF] UnifiedPDFPlugin::scaleFactor() always reports a scale…
Browse files Browse the repository at this point in the history
… factor of 1

https://bugs.webkit.org/show_bug.cgi?id=266035
rdar://119344324

Reviewed by Tim Horton and Simon Fraser.

Let's make it report `m_scaleFactor` instead, since it isn't guaranteed
that the scale factor will be 1.

* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:
(WebKit::UnifiedPDFPlugin::scaleFactor):

Canonical link: https://commits.webkit.org/271707@main
  • Loading branch information
aprotyas committed Dec 8, 2023
1 parent 14bd8a4 commit 1db53fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@

CGFloat UnifiedPDFPlugin::scaleFactor() const
{
return 1;
return m_scaleFactor;
}

float UnifiedPDFPlugin::deviceScaleFactor() const
Expand Down

0 comments on commit 1db53fe

Please sign in to comment.