Index: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp |
index f9cb5ee6cdfe3cdde6310d1d929f7657aac149d7..8639371580f6b674fdbf6694cd91f082e9161dea 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp |
@@ -146,7 +146,7 @@ void HTMLIFrameElement::parseAttribute(const QualifiedName& name, |
} |
bool HTMLIFrameElement::layoutObjectIsNeeded(const ComputedStyle& style) { |
- return isURLAllowed() && HTMLElement::layoutObjectIsNeeded(style); |
+ return contentFrame() && HTMLElement::layoutObjectIsNeeded(style); |
} |
LayoutObject* HTMLIFrameElement::createLayoutObject(const ComputedStyle&) { |