diff --git a/content/base/src/nsINode.cpp b/content/base/src/nsINode.cpp index fd58edfa3ec..8b1a6bb33b3 100644 --- a/content/base/src/nsINode.cpp +++ b/content/base/src/nsINode.cpp @@ -1286,7 +1286,8 @@ nsINode::UnoptimizableCCNode() const const uintptr_t problematicFlags = (NODE_IS_ANONYMOUS_ROOT | NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE | NODE_IS_NATIVE_ANONYMOUS_ROOT | - NODE_MAY_BE_IN_BINDING_MNGR); + NODE_MAY_BE_IN_BINDING_MNGR | + NODE_IS_IN_SHADOW_TREE); return HasFlag(problematicFlags) || NodeType() == nsIDOMNode::ATTRIBUTE_NODE || // For strange cases like xbl:content/xbl:children