Bug 1345712 - Fix rebasing failure r=jrmuizel

This commit is contained in:
sotaro 2017-03-13 15:46:05 +09:00
Родитель fcc1cbacec
Коммит a7e80b153d
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -131,12 +131,13 @@ WebRenderImageLayer::RenderLayer(wr::DisplayListBuilder& aBuilder)
gfx::Rect relBounds = GetWrRelBounds();
gfx::Rect overflow(0, 0, relBounds.width, relBounds.height);
gfx::Rect rect = RelativeToVisible(Rect(0, 0, size.width, size.height));
gfx::Rect rect = gfx::Rect(0, 0, size.width, size.height);
if (mScaleMode != ScaleMode::SCALE_NONE) {
NS_ASSERTION(mScaleMode == ScaleMode::STRETCH,
"No other scalemodes than stretch and none supported yet.");
rect = gfx::Rect(0, 0, mScaleToSize.width, mScaleToSize.height);
}
RelativeToVisible(rect);
gfx::Rect clipRect = GetWrClipRect(rect);
Maybe<WrImageMask> mask = BuildWrMaskLayer();