OLD | NEW |
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 508 |
509 if (Document* document = this->document()) | 509 if (Document* document = this->document()) |
510 ChildFrameDisconnector(*document).disconnect(); | 510 ChildFrameDisconnector(*document).disconnect(); |
511 } | 511 } |
512 | 512 |
513 void LocalFrame::documentAttached() { | 513 void LocalFrame::documentAttached() { |
514 DCHECK(document()); | 514 DCHECK(document()); |
515 selection().documentAttached(document()); | 515 selection().documentAttached(document()); |
516 inputMethodController().documentAttached(document()); | 516 inputMethodController().documentAttached(document()); |
517 spellChecker().documentAttached(document()); | 517 spellChecker().documentAttached(document()); |
| 518 if (isMainFrame()) |
| 519 m_hasReceivedUserGesture = false; |
518 } | 520 } |
519 | 521 |
520 LocalDOMWindow* LocalFrame::domWindow() const { | 522 LocalDOMWindow* LocalFrame::domWindow() const { |
521 return toLocalDOMWindow(m_domWindow); | 523 return toLocalDOMWindow(m_domWindow); |
522 } | 524 } |
523 | 525 |
524 void LocalFrame::setDOMWindow(LocalDOMWindow* domWindow) { | 526 void LocalFrame::setDOMWindow(LocalDOMWindow* domWindow) { |
525 if (domWindow) | 527 if (domWindow) |
526 script().clearWindowProxy(); | 528 script().clearWindowProxy(); |
527 | 529 |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 918 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
917 m_frame->client()->frameBlameContext()->Enter(); | 919 m_frame->client()->frameBlameContext()->Enter(); |
918 } | 920 } |
919 | 921 |
920 ScopedFrameBlamer::~ScopedFrameBlamer() { | 922 ScopedFrameBlamer::~ScopedFrameBlamer() { |
921 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 923 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
922 m_frame->client()->frameBlameContext()->Leave(); | 924 m_frame->client()->frameBlameContext()->Leave(); |
923 } | 925 } |
924 | 926 |
925 } // namespace blink | 927 } // namespace blink |
OLD | NEW |