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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2907663004: FrameTree::Find only searches relative to local frames. (Closed)
Patch Set: . Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
9 * rights reserved. 9 * rights reserved.
10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 DCHECK(GetDocument()); 524 DCHECK(GetDocument());
525 GetEditor().Clear(); 525 GetEditor().Clear();
526 GetEventHandler().Clear(); 526 GetEventHandler().Clear();
527 Selection().DocumentAttached(GetDocument()); 527 Selection().DocumentAttached(GetDocument());
528 GetInputMethodController().DocumentAttached(GetDocument()); 528 GetInputMethodController().DocumentAttached(GetDocument());
529 GetSpellChecker().DocumentAttached(GetDocument()); 529 GetSpellChecker().DocumentAttached(GetDocument());
530 if (IsMainFrame()) 530 if (IsMainFrame())
531 has_received_user_gesture_ = false; 531 has_received_user_gesture_ = false;
532 } 532 }
533 533
534 Frame* LocalFrame::FindFrameForNavigation(const AtomicString& name,
535 Frame& active_frame) {
536 Frame* frame = Tree().Find(name);
537 if (!frame || !active_frame.CanNavigate(*frame))
538 return nullptr;
539 return frame;
540 }
541
534 LocalWindowProxy* LocalFrame::WindowProxy(DOMWrapperWorld& world) { 542 LocalWindowProxy* LocalFrame::WindowProxy(DOMWrapperWorld& world) {
535 return ToLocalWindowProxy(Frame::GetWindowProxy(world)); 543 return ToLocalWindowProxy(Frame::GetWindowProxy(world));
536 } 544 }
537 545
538 LocalDOMWindow* LocalFrame::DomWindow() const { 546 LocalDOMWindow* LocalFrame::DomWindow() const {
539 return ToLocalDOMWindow(dom_window_); 547 return ToLocalDOMWindow(dom_window_);
540 } 548 }
541 549
542 void LocalFrame::SetDOMWindow(LocalDOMWindow* dom_window) { 550 void LocalFrame::SetDOMWindow(LocalDOMWindow* dom_window) {
543 if (dom_window) 551 if (dom_window)
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 node = GetDocument()->FocusedElement(); 995 node = GetDocument()->FocusedElement();
988 } 996 }
989 997
990 if (node) { 998 if (node) {
991 return node->GetWebPluginContainerBase(); 999 return node->GetWebPluginContainerBase();
992 } 1000 }
993 return nullptr; 1001 return nullptr;
994 } 1002 }
995 1003
996 } // namespace blink 1004 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698