views: Store the View's offset from the paint root in PaintContext
commit02df2370508eca3069dd63f6bfba4686d2c88de8
authordanakj <danakj@chromium.org>
Thu, 2 Apr 2015 20:05:48 +0000 (2 13:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 2 Apr 2015 20:06:12 +0000 (2 20:06 +0000)
treecce35473d3ccd98316e23c4c2cbef24b227d497c
parent074006a706461a22204fbdf183161819f416290b
views: Store the View's offset from the paint root in PaintContext

This lets us avoid an O(n^2) work computing the offset for each view
from its paint root by walking up to the paint root.

R=sky
BUG=466426

Review URL: https://codereview.chromium.org/1051003002

Cr-Commit-Position: refs/heads/master@{#323551}
ui/views/view.cc
ui/views/view.h
ui/views/view_unittest.cc