Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Unified Diff: Source/core/html/HTMLFrameOwnerElement.cpp

Issue 235553006: Move Document pointer from Frame to LocalFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLFrameOwnerElement.cpp
diff --git a/Source/core/html/HTMLFrameOwnerElement.cpp b/Source/core/html/HTMLFrameOwnerElement.cpp
index 9b9dccac4d1737f10633440e0a255f202f107452..ee505a784bb9a17e06ac366c3669c7d1234e21b5 100644
--- a/Source/core/html/HTMLFrameOwnerElement.cpp
+++ b/Source/core/html/HTMLFrameOwnerElement.cpp
@@ -152,7 +152,7 @@ HTMLFrameOwnerElement::~HTMLFrameOwnerElement()
Document* HTMLFrameOwnerElement::contentDocument() const
{
- return m_contentFrame ? m_contentFrame->document() : 0;
+ return (m_contentFrame && m_contentFrame->isLocalFrame()) ? toLocalFrame(m_contentFrame)->document() : 0;
}
DOMWindow* HTMLFrameOwnerElement::contentWindow() const

Powered by Google App Engine
This is Rietveld 408576698