mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-06 00:10:25 +00:00
Bug 788549 Part 8: Only query layers when OMTA is enabled r=roc
This commit is contained in:
parent
022ff28277
commit
79d175fb2b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user