From 635860845790a19bf50bbc51ba8fb66a96dde068 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Thu, 5 Mar 2009 14:34:32 -0800 Subject: auto import from //depot/cupcake/@136594 --- WebCore/rendering/RenderVideo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'WebCore/rendering/RenderVideo.cpp') 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()); -- cgit v1.1