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 r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 m_doc->dispatchVisibilityStateChangeEvent(); | 426 m_doc->dispatchVisibilityStateChangeEvent(); |
427 | 427 |
428 Vector<RefPtr<Frame> > childFrames; | 428 Vector<RefPtr<Frame> > childFrames; |
429 for (Frame* child = tree()->firstChild(); child; child = child->tree()->next
Sibling()) | 429 for (Frame* child = tree()->firstChild(); child; child = child->tree()->next
Sibling()) |
430 childFrames.append(child); | 430 childFrames.append(child); |
431 | 431 |
432 for (size_t i = 0; i < childFrames.size(); ++i) | 432 for (size_t i = 0; i < childFrames.size(); ++i) |
433 childFrames[i]->dispatchVisibilityStateChangeEvent(); | 433 childFrames[i]->dispatchVisibilityStateChangeEvent(); |
434 } | 434 } |
435 | 435 |
436 void Frame::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
437 { | |
438 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | |
439 info.addMember(m_doc, "doc"); | |
440 info.ignoreMember(m_view); | |
441 info.addMember(m_ownerElement, "ownerElement"); | |
442 info.addMember(m_page, "page"); | |
443 info.addMember(m_loader, "loader"); | |
444 info.ignoreMember(m_destructionObservers); | |
445 } | |
446 | |
447 void Frame::willDetachPage() | 436 void Frame::willDetachPage() |
448 { | 437 { |
449 if (Frame* parent = tree()->parent()) | 438 if (Frame* parent = tree()->parent()) |
450 parent->loader()->checkLoadComplete(); | 439 parent->loader()->checkLoadComplete(); |
451 | 440 |
452 HashSet<FrameDestructionObserver*>::iterator stop = m_destructionObservers.e
nd(); | 441 HashSet<FrameDestructionObserver*>::iterator stop = m_destructionObservers.e
nd(); |
453 for (HashSet<FrameDestructionObserver*>::iterator it = m_destructionObserver
s.begin(); it != stop; ++it) | 442 for (HashSet<FrameDestructionObserver*>::iterator it = m_destructionObserver
s.begin(); it != stop; ++it) |
454 (*it)->willDetachPage(); | 443 (*it)->willDetachPage(); |
455 | 444 |
456 // FIXME: It's unclear as to why this is called more than once, but it is, | 445 // FIXME: It's unclear as to why this is called more than once, but it is, |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); | 782 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); |
794 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); | 783 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); |
795 | 784 |
796 m_view->paintContents(buffer->context(), paintingRect); | 785 m_view->paintContents(buffer->context(), paintingRect); |
797 | 786 |
798 RefPtr<Image> image = buffer->copyImage(); | 787 RefPtr<Image> image = buffer->copyImage(); |
799 return createDragImageFromImage(image.get()); | 788 return createDragImageFromImage(image.get()); |
800 } | 789 } |
801 | 790 |
802 } // namespace WebCore | 791 } // namespace WebCore |
OLD | NEW |