Plugin Power Saver: Throttle 'large' plugins that appear small.

Some plugins are large, but only a small portion of it is visible to
the user. An example might be a large SWF in a small div container.

This is to allow the SWF to dynamically expand via JS. However, the
throttling criteria should be based on the visible size rather than the SWF size.

This patch fixes that by walking up the DOM tree and looking for smaller
parent elements and using that as the visible size.

This patch also centers the 'play' button on the visible area rather
than the whole keyframe area, which may be much larger than the visible
area.

BUG=468142,403800

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

Cr-Commit-Position: refs/heads/master@{#323331}
13 files changed