Fix build bustage from merging bug 1274673. r=jrmuizel?

MozReview-Commit-ID: 6qEERRYak3F
This commit is contained in:
Kartikaya Gupta 2016-12-15 10:44:34 -05:00
parent 694703aee5
commit 4d035c9209

View File

@ -17,16 +17,15 @@ WebRenderContainerLayer::RenderLayer()
{
WRScrollFrameStackingContextGenerator scrollFrames(this);
AutoTArray<Layer*, 12> children;
SortChildrenBy3DZOrder(children);
nsTArray<LayerPolygon> children = SortChildrenBy3DZOrder(SortMode::WITHOUT_GEOMETRY);
gfx::Rect relBounds = TransformedVisibleBoundsRelativeToParent();
gfx::Matrix4x4 transform;// = GetTransform();
if (gfxPrefs::LayersDump()) printf_stderr("ContainerLayer %p using %s as bounds/overflow, %s as transform\n", this, Stringify(relBounds).c_str(), Stringify(transform).c_str());
WRBridge()->AddWebRenderCommand(OpPushDLBuilder());
for (Layer* child : children) {
ToWebRenderLayer(child)->RenderLayer();
for (LayerPolygon& child : children) {
ToWebRenderLayer(child.layer)->RenderLayer();
}
WRBridge()->AddWebRenderCommand(
OpPopDLBuilder(toWrRect(relBounds), toWrRect(relBounds), transform, FrameMetrics::NULL_SCROLL_ID));