Merge mozilla-central to autoland. CLOSED TREE

--HG--
extra : amend_source : 3a6d0bf5ed1bcaebf59f44bd4dd5e80be0e0190b
This commit is contained in:
Dorel Luca 2019-09-30 13:37:30 +03:00
commit 1dc5a9e539
3 changed files with 2 additions and 34 deletions

View File

@ -295,12 +295,8 @@ struct DIGroup {
IntRect mInvalidRect;
nsRect mGroupBounds;
LayerIntRect mVisibleRect;
// This is the last visible rect sent to WebRender. It's used
// to compute the invalid rect and ensure that we send
// the appropriate data to WebRender for merging.
LayerIntRect mLastVisibleRect;
// This is the intersection of mVisibleRect and mLastVisibleRect
// this is the intersection of mVisibleRect and mLastVisibleRect
// we ensure that mInvalidRect is contained in mPreservedRect
IntRect mPreservedRect;
int32_t mAppUnitsPerDevPixel;
@ -634,7 +630,6 @@ struct DIGroup {
mKey.value().second(),
ViewAs<ImagePixel>(mVisibleRect,
PixelCastJustification::LayerIsImage));
mLastVisibleRect = mVisibleRect;
PushImage(aBuilder, itemBounds);
}
return;
@ -746,7 +741,6 @@ struct DIGroup {
aResources.SetBlobImageVisibleArea(
mKey.value().second(),
ViewAs<ImagePixel>(mVisibleRect, PixelCastJustification::LayerIsImage));
mLastVisibleRect = mVisibleRect;
PushImage(aBuilder, itemBounds);
GP("End EndGroup\n\n");
}
@ -1530,6 +1524,7 @@ void WebRenderCommandBuilder::DoGroupingForDisplayList(
group.mResidualOffset = residualOffset;
group.mGroupBounds = groupBounds;
group.mLayerBounds = layerBounds;
group.mLastVisibleRect = group.mVisibleRect;
group.mVisibleRect = visibleRect;
group.mPreservedRect = group.mVisibleRect.Intersect(group.mLastVisibleRect).ToUnknownRect();
group.mAppUnitsPerDevPixel = appUnitsPerDevPixel;

View File

@ -230,4 +230,3 @@ load 1539318-1.svg
load 1548985-1.html
load 1548985-2.svg
load 1555851.html
load invalidation-of-opacity-0.html

View File

@ -1,26 +0,0 @@
<html class="reftest-wait">
<script>
var i = 0;
var opac = [0.3, 0.2, 0, 0.3];
function f() {
document.getElementById("rim").setAttribute("opacity", opac[i]);
document.getElementById("circ").setAttribute("r", i + 10);
i++;
if (i > opac.length) {
document.documentElement.className = ""
} else {
requestAnimationFrame(f);
}
}
onload = () => requestAnimationFrame(f);
</script>
<body>
<svg height="1000" width="1000">
<circle cx="50" cy="50" r="40" fill="red" />
<g id=rim clip-path="url(#myClip)" opacity=0>
<circle id="circ" cx="150" cy="150" r="40" fill="red" />
</g>
<circle cx="250" cy="250" r="40" fill="red" />
</svg>