Chromium Code Reviews
DescriptionPlugin 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
Committed: https://crrev.com/c3ace4f15c91440c2dad238731422fe29b1b4373
Cr-Commit-Position: refs/heads/master@{#323331}
Patch Set 1 #
Total comments: 4
Patch Set 2 : use gfx::Size #
Total comments: 9
Patch Set 3 : #
Total comments: 2
Patch Set 4 : #Patch Set 5 : update plugin interface #Patch Set 6 : #Patch Set 7 : Remove keyframe size tracking. Unnecessary. #
Total comments: 10
Patch Set 8 : #Patch Set 9 : #
Total comments: 8
Patch Set 10 : #Messages
Total messages: 25 (2 generated)
|