Clean up GraphicsContext::DrawInnerShadow
Make the edge-clipping a bit easier to read by computing how much to extend/shrink by first and then manipulating the "hole rect". Also move it to a helper function. Move computation of the outer rect ("area casting shadow") closer to where it is used. Ditto for |fill_color|. Also drop an unnecessary FloatSize cast. Bug: 1159514 Change-Id: I1a6daae3cfa9a5d83eafa62952f26bfe4500216a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617924Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#841507}
Showing
Please register or sign in to comment