commit | ef097e0420ba201ee6e31c52481551594c50b655 | [log] [tgz] |
---|---|---|
author | Florin Malita <[email protected]> | Fri Nov 16 23:05:47 2018 |
committer | Commit Bot <[email protected]> | Fri Nov 16 23:05:47 2018 |
tree | de75cd0cfcdc4ed113dfaabee8eda4890e0bbfb9 | |
parent | 48f85308d37e78509355dae303b459c6b29b2122 [diff] |
Fix box-shadow clipping for opaque-background <body> In the presence of an opaque background, BoxPainterBase::PaintNormalBoxShadow() insets the shadow clip by one unit (in order to mitigate seaming artifacs), effectively expanding the shadow inwards, and relies on the opaque background overdrawing this inset. But <body> doesn't paint its own background -- it gets transferred to the view and painted in a different context => the shadow inset remains visible. To address this, pass background-skip information to PaintNormalBoxShadow(), and disable the inset logic when the background is not being drawn. Bug: 899342 Change-Id: I5e04a1c17c2be324bf4c6767d2159372f546cc24 Reviewed-on: https://chromium-review.googlesource.com/c/1336495 Commit-Queue: Florin Malita <[email protected]> Reviewed-by: Fredrik Söderquist <[email protected]> Cr-Commit-Position: refs/heads/master@{#609014}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .