• Lei Zhang's avatar
    Remove chrome_pdf::CompareRect() functions. · 28f2ff0f
    Lei Zhang authored
    Updates tests that call these functions to use gfx equivalents. Make
    direct conversions when possible. For pp::PDF structs used as test
    expectations, clone the structs and switch the clones to use gfx::RectF
    instead of pp::FloatRect. Then call RectFFromPPFloatRect() on the actual
    pp::PDF rects from production code to make comparisons possible.
    
    Bug: 1101101
    Change-Id: I82f5d19a0cf0c355a45f57370120e071fe08a018
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2425746
    Commit-Queue: Lei Zhang <thestig@chromium.org>
    Reviewed-by: Ankit Kumar 🌪️ <ankk@microsoft.com>
    Reviewed-by: default avatarK. Moon <kmoon@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#809977}
    28f2ff0f
BUILD.gn 8.59 KB