Index: Source/core/frame/Frame.cpp |
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp |
index 0a11774702ed1119759b36d36918d7b870d4795f..c776a5ae2295dcfc4b88eb35e11640388fb4bf1d 100644 |
--- a/Source/core/frame/Frame.cpp |
+++ b/Source/core/frame/Frame.cpp |
@@ -78,13 +78,6 @@ using namespace HTMLNames; |
DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame")); |
-static inline Frame* parentFromOwnerElement(HTMLFrameOwnerElement* ownerElement) |
-{ |
- if (!ownerElement) |
- return 0; |
- return ownerElement->document().frame(); |
-} |
- |
static inline float parentPageZoomFactor(Frame* frame) |
{ |
Frame* parent = frame->tree().parent(); |
@@ -103,7 +96,7 @@ static inline float parentTextZoomFactor(Frame* frame) |
inline Frame::Frame(PassRefPtr<FrameInit> frameInit) |
: m_host(frameInit->frameHost()) |
- , m_treeNode(this, parentFromOwnerElement(frameInit->ownerElement())) |
+ , m_treeNode(this) |
, m_loader(this, frameInit->frameLoaderClient()) |
, m_navigationScheduler(this) |
, m_script(adoptPtr(new ScriptController(this))) |