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

Unified Diff: Source/core/frame/Frame.cpp

Issue 156123004: Move the frame tree into the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: T -> t Created 6 years, 10 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/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)))
« no previous file with comments | « LayoutTests/fast/forms/form-and-frame-interaction-retains-values-expected.txt ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698