summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderVideo.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
commit635860845790a19bf50bbc51ba8fb66a96dde068 (patch)
treeef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/rendering/RenderVideo.cpp
parent8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff)
downloadexternal_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/rendering/RenderVideo.cpp')
-rw-r--r--WebCore/rendering/RenderVideo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/rendering/RenderVideo.cpp b/WebCore/rendering/RenderVideo.cpp
index d677725..be75997 100644
--- a/WebCore/rendering/RenderVideo.cpp
+++ b/WebCore/rendering/RenderVideo.cpp
@@ -68,7 +68,7 @@ void RenderVideo::videoSizeChanged()
IntRect RenderVideo::videoBox() const
{
- IntRect contentRect = contentBox();
+ IntRect contentRect = contentBoxRect();
if (intrinsicSize().isEmpty() || contentRect.isEmpty())
return IntRect();
@@ -124,11 +124,11 @@ void RenderVideo::updatePlayer()
mediaPlayer->setVisible(false);
return;
}
- int x;
- int y;
- absolutePosition(x, y);
+
+ // FIXME: This doesn't work correctly with transforms.
+ FloatPoint absPos = localToAbsolute();
IntRect videoBounds = videoBox();
- videoBounds.move(x, y);
+ videoBounds.move(absPos.x(), absPos.y());
mediaPlayer->setFrameView(document()->view());
mediaPlayer->setRect(videoBounds);
mediaPlayer->setVisible(true);
@@ -174,7 +174,7 @@ int RenderVideo::calcReplacedWidth(bool includeMaxWidth) const
if (isWidthSpecified())
width = calcReplacedWidthUsing(style()->width());
else
- width = calcAspectRatioWidth();
+ width = calcAspectRatioWidth() * style()->effectiveZoom();
int minW = calcReplacedWidthUsing(style()->minWidth());
int maxW = !includeMaxWidth || style()->maxWidth().isUndefined() ? width : calcReplacedWidthUsing(style()->maxWidth());
@@ -188,7 +188,7 @@ int RenderVideo::calcReplacedHeight() const
if (isHeightSpecified())
height = calcReplacedHeightUsing(style()->height());
else
- height = calcAspectRatioHeight();
+ height = calcAspectRatioHeight() * style()->effectiveZoom();
int minH = calcReplacedHeightUsing(style()->minHeight());
int maxH = style()->maxHeight().isUndefined() ? height : calcReplacedHeightUsing(style()->maxHeight());