| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index 71773b8257082eb9f7765e35561721991944fdc1..c9f607cb28b54fafa80361a0fb6f7c69372c7e17 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -2883,7 +2883,7 @@ const ComputedStyle* Element::ensureComputedStyle(PseudoId pseudoElementSpecifie
|
| if (PseudoElement* element = pseudoElement(pseudoElementSpecifier))
|
| return element->ensureComputedStyle();
|
|
|
| - if (!inActiveDocument()) {
|
| + if (!inActiveDocument() && document().frame()) {
|
| // FIXME: Try to do better than this. Ensure that styleForElement() works for elements that are not in the
|
| // document tree and figure out when to destroy the computed style for such elements.
|
| return nullptr;
|
|
|