Bug 1022612. Part 41: Use itemType instead of calling GetType() again. r=mattwoodrow

This commit is contained in:
Robert O'Callahan
2014-07-11 13:18:10 +12:00
parent a00f1820c8
commit 9d764909a5

View File

@@ -2820,7 +2820,7 @@ ContainerState::ProcessDisplayItems(nsDisplayList* aList,
// (async animations or an empty transaction), so we need to put items // (async animations or an empty transaction), so we need to put items
// that the transform item can potentially move under into a layer // that the transform item can potentially move under into a layer
// above this item. // above this item.
if (item->GetType() == nsDisplayItem::TYPE_TRANSFORM && if (itemType == nsDisplayItem::TYPE_TRANSFORM &&
nsDisplayTransform::ShouldPrerenderTransformedContent(mBuilder, nsDisplayTransform::ShouldPrerenderTransformedContent(mBuilder,
item->Frame(), item->Frame(),
false)) { false)) {