Don't hold weak ref to ComputedStyle in BoxPainter.
Currently we hold a const ref& to a ComputedStyle object in BoxPainter:: PaintBoxDecorationBackgroundWithRect. However, this ref could be invalidated during theme painting, which would cause a dangling ref issue when we use the ref later on. This patch removes the weak ref and instead uses StyleRef() to grab a fresh style ref each time. Bug: 712933 Change-Id: Id576005fe63ac3a014002ba5a68acbb6c88382b0 Reviewed-on: https://chromium-review.googlesource.com/566198Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#486266}
Showing
Please register or sign in to comment