Bug 788549 Part 8: Only query layers when OMTA is enabled r=roc

This commit is contained in:
David Zbarsky 2013-05-31 11:06:56 -07:00
parent 022ff28277
commit 79d175fb2b

View File

@ -3382,7 +3382,7 @@ nsDOMWindowUtils::GetOMTAOrComputedStyle(nsIDOMNode* aNode,
nsRefPtr<nsROCSSPrimitiveValue> cssValue = nullptr;
nsIFrame* frame = element->GetPrimaryFrame();
if (frame) {
if (frame && nsLayoutUtils::AreAsyncAnimationsEnabled()) {
if (aProperty.EqualsLiteral("opacity")) {
Layer* layer = FrameLayerBuilder::GetDedicatedLayer(frame, nsDisplayItem::TYPE_OPACITY);
if (layer) {