| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 | 730 |
| 731 return frame()->document()->getSelection(); | 731 return frame()->document()->getSelection(); |
| 732 } | 732 } |
| 733 | 733 |
| 734 Element* LocalDOMWindow::frameElement() const | 734 Element* LocalDOMWindow::frameElement() const |
| 735 { | 735 { |
| 736 if (!frame()) | 736 if (!frame()) |
| 737 return nullptr; | 737 return nullptr; |
| 738 | 738 |
| 739 // The bindings security check should ensure we're same origin... | 739 // The bindings security check should ensure we're same origin... |
| 740 ASSERT(!frame()->owner() || frame()->owner()->isLocal()); | 740 return toHTMLFrameOwnerElement(frame()->owner()); |
| 741 return frame()->deprecatedLocalOwner(); | |
| 742 } | 741 } |
| 743 | 742 |
| 744 void LocalDOMWindow::focus(ExecutionContext* context) | 743 void LocalDOMWindow::focus(ExecutionContext* context) |
| 745 { | 744 { |
| 746 if (!frame()) | 745 if (!frame()) |
| 747 return; | 746 return; |
| 748 | 747 |
| 749 FrameHost* host = frame()->host(); | 748 FrameHost* host = frame()->host(); |
| 750 if (!host) | 749 if (!host) |
| 751 return; | 750 return; |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1571 DOMWindow::trace(visitor); | 1570 DOMWindow::trace(visitor); |
| 1572 DOMWindowLifecycleNotifier::trace(visitor); | 1571 DOMWindowLifecycleNotifier::trace(visitor); |
| 1573 } | 1572 } |
| 1574 | 1573 |
| 1575 LocalFrame* LocalDOMWindow::frame() const | 1574 LocalFrame* LocalDOMWindow::frame() const |
| 1576 { | 1575 { |
| 1577 return m_frameObserver->frame(); | 1576 return m_frameObserver->frame(); |
| 1578 } | 1577 } |
| 1579 | 1578 |
| 1580 } // namespace blink | 1579 } // namespace blink |
| OLD | NEW |