Bug 775459 - Add layer border for scrollable container. r=joe

This commit is contained in:
Benoit Girard 2013-06-12 14:25:17 -04:00
Родитель c27dde0776
Коммит e740f13665
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -149,6 +149,17 @@ ContainerRender(ContainerT* aContainer,
aManager->GetCompositor()->DrawQuad(rect, clipRect, effectChain, opacity,
transform, gfx::Point(aOffset.x, aOffset.y));
}
if (aContainer->GetFrameMetrics().IsScrollable()) {
gfx::Matrix4x4 transform;
ToMatrix4x4(aContainer->GetEffectiveTransform(), transform);
gfx::Rect rect(visibleRect.x, visibleRect.y, visibleRect.width, visibleRect.height);
gfx::Rect clipRect(aClipRect.x, aClipRect.y, aClipRect.width, aClipRect.height);
aManager->GetCompositor()->DrawDiagnostics(gfx::Color(1.0, 0.0, 0.0, 1.0),
rect, clipRect,
transform, gfx::Point(aOffset.x, aOffset.y));
}
}
ContainerLayerComposite::ContainerLayerComposite(LayerManagerComposite *aManager)