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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 return LayoutViewItem(contentLayoutObject()); | 527 return LayoutViewItem(contentLayoutObject()); |
528 } | 528 } |
529 | 529 |
530 void LocalFrame::didChangeVisibilityState() { | 530 void LocalFrame::didChangeVisibilityState() { |
531 if (document()) | 531 if (document()) |
532 document()->didChangeVisibilityState(); | 532 document()->didChangeVisibilityState(); |
533 | 533 |
534 Frame::didChangeVisibilityState(); | 534 Frame::didChangeVisibilityState(); |
535 } | 535 } |
536 | 536 |
| 537 void LocalFrame::setDocumentHasReceivedUserGesture() { |
| 538 if (document()) |
| 539 document()->setHasReceivedUserGesture(); |
| 540 } |
| 541 |
537 LocalFrame* LocalFrame::localFrameRoot() { | 542 LocalFrame* LocalFrame::localFrameRoot() { |
538 LocalFrame* curFrame = this; | 543 LocalFrame* curFrame = this; |
539 while (curFrame && curFrame->tree().parent() && | 544 while (curFrame && curFrame->tree().parent() && |
540 curFrame->tree().parent()->isLocalFrame()) | 545 curFrame->tree().parent()->isLocalFrame()) |
541 curFrame = toLocalFrame(curFrame->tree().parent()); | 546 curFrame = toLocalFrame(curFrame->tree().parent()); |
542 | 547 |
543 return curFrame; | 548 return curFrame; |
544 } | 549 } |
545 | 550 |
546 bool LocalFrame::isCrossOriginSubframe() const { | 551 bool LocalFrame::isCrossOriginSubframe() const { |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 913 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
909 m_frame->client()->frameBlameContext()->Enter(); | 914 m_frame->client()->frameBlameContext()->Enter(); |
910 } | 915 } |
911 | 916 |
912 ScopedFrameBlamer::~ScopedFrameBlamer() { | 917 ScopedFrameBlamer::~ScopedFrameBlamer() { |
913 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 918 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
914 m_frame->client()->frameBlameContext()->Leave(); | 919 m_frame->client()->frameBlameContext()->Leave(); |
915 } | 920 } |
916 | 921 |
917 } // namespace blink | 922 } // namespace blink |
OLD | NEW |