зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1345712 - Fix rebasing failure r=jrmuizel
This commit is contained in:
Родитель
fcc1cbacec
Коммит
a7e80b153d
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче