Skip to content
Commit c1c5b9c0 authored by Lei Zhang's avatar Lei Zhang Committed by Chromium LUCI CQ
Browse files

Simplify calculation in PDFiumEngine::GetRegion()

This method applies the same offset to a point and a rect before
determining if the point is in the rect. The same result can be achieved
by not applying the offset at all.

Change-Id: I05a313ed93e52d4b6a279f2f078136e43406240c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5617122


Reviewed-by: default avatarAlan Screen <awscreen@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1313153}
parent 13ded293
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment