Turn ViewportAnchors into stack allocated objects.

The viewport anchors have stack lifetimes, so rephrase their
implementation and use slightly so as to be able to allocate
them on the stack.

The main benefit of doing so is that the references they
contain to Oilpan heap objects will then be correctly traced
should an Oilpan conservative GC be needed while resizing
the view.

R=bokan,haraken
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@192586 bbb929c8-8fbe-4397-9dbb-9b2b20218538
9 files changed
tree: ad203ce9b77f39433da9adb9cc5a2942969d1774
  1. third_party/