| Index: Source/core/testing/MockPagePopupDriver.cpp
|
| diff --git a/Source/core/testing/MockPagePopupDriver.cpp b/Source/core/testing/MockPagePopupDriver.cpp
|
| index 966897b1eb7ba663e55c45e686d7818de399e987..5ca92ce099acd1f69494b3ff85e1db8cc4a8c32e 100644
|
| --- a/Source/core/testing/MockPagePopupDriver.cpp
|
| +++ b/Source/core/testing/MockPagePopupDriver.cpp
|
| @@ -61,7 +61,8 @@ inline MockPagePopup::MockPagePopup(PagePopupClient* client, const IntRect& orig
|
| , m_closeTimer(this, &MockPagePopup::close)
|
| {
|
| Document* document = mainFrame->document();
|
| - m_iframe = HTMLIFrameElement::create(HTMLNames::iframeTag, document);
|
| + ASSERT(document);
|
| + m_iframe = HTMLIFrameElement::create(HTMLNames::iframeTag, *document);
|
| m_iframe->setIdAttribute("mock-page-popup");
|
| m_iframe->setInlineStyleProperty(CSSPropertyBorderWidth, 0.0, CSSPrimitiveValue::CSS_PX);
|
| m_iframe->setInlineStyleProperty(CSSPropertyPosition, CSSValueAbsolute);
|
|
|