Port over part of changeset eaea9e3806a3 to FrameLayerBuilder to fix reftest failure in ogg-video/clipping-1a.html
authorRobert O'Callahan <robert@ocallahan.org>
Mon, 24 May 2010 14:13:00 +1200
changeset 42594 c2223399d4b4b91c44519fa7a1dec1cb983733c4
parent 42593 9088249086458245908fa25040c3fd45f47ee689
child 42595 dab341d9626250e371ddaace0fe7e8ab651cb9ef
push idunknown
push userunknown
push dateunknown
milestone1.9.3a5pre
Port over part of changeset eaea9e3806a3 to FrameLayerBuilder to fix reftest failure in ogg-video/clipping-1a.html
layout/base/FrameLayerBuilder.cpp
--- a/layout/base/FrameLayerBuilder.cpp
+++ b/layout/base/FrameLayerBuilder.cpp
@@ -374,16 +374,17 @@ static void BuildLayers(nsDisplayListBui
         if (itemGroup) {
           lastThebesLayerItems =
             AddToItemGroup(aBuilder, itemGroup, item, clipRect);
           NS_ASSERTION(lastThebesLayerItems == itemGroup,
                        "AddToItemGroup shouldn't create a new group if the "
                        "initial group is empty");
           // This item is above the first Thebes layer.
           areaAboveFirstThebesLayer.Or(areaAboveFirstThebesLayer, bounds);
+          layerItems = &aLayers->ElementAt(aLayers->Length() - 1);
         }
       }
     }
 
     if (layerItems) {
       // Update the visible region of the layer to account for the new
       // item
       nscoord appUnitsPerDevPixel =