Revert "Don't hold weak ref to ComputedStyle in BoxPainter."
This reverts commit f3a47f5b. Reason for revert: landed a real fix https://chromium.googlesource.com/chromium/src/+/49b2e1c02da7073c6c86e7e591928fc58fd5de34 Original change's description: > 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/566198 > Reviewed-by: Stephen Chenney <schenney@chromium.org> > Commit-Queue: Darren Shen <shend@chromium.org> > Cr-Commit-Position: refs/heads/master@{#486266} TBR=chrishtr@chromium.org,shend@chromium.org,schenney@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 712933 Change-Id: Idbd2a663be78d52a1481a3bb04cb708bb1df3b3b Reviewed-on: https://chromium-review.googlesource.com/574948Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Reviewed-by:
Darren Shen <shend@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#487377}
Showing
Please register or sign in to comment