| Index: third_party/WebKit/Source/core/dom/DocumentInit.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/DocumentInit.cpp b/third_party/WebKit/Source/core/dom/DocumentInit.cpp
|
| index df71028100069e2471b3b152f2cad66d4a932f10..b255623b6ba9771b9e48362276a3cb81829f0e7e 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentInit.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentInit.cpp
|
| @@ -43,10 +43,10 @@ static Document* parentDocument(LocalFrame* frame)
|
| {
|
| if (!frame)
|
| return 0;
|
| - Element* ownerElement = frame->deprecatedLocalOwner();
|
| - if (!ownerElement)
|
| + Element* localOwnerElement = frame->deprecatedLocalOwner();
|
| + if (!localOwnerElement)
|
| return 0;
|
| - return &ownerElement->document();
|
| + return &localOwnerElement->document();
|
| }
|
|
|
| DocumentInit::DocumentInit(const KURL& url, LocalFrame* frame, Document* contextDocument, HTMLImportsController* importsController)
|
|
|