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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 if (document->renderer() && document->renderer()->needsLayout() && view-
>didFirstLayout()) | 649 if (document->renderer() && document->renderer()->needsLayout() && view-
>didFirstLayout()) |
650 view->layout(); | 650 view->layout(); |
651 } | 651 } |
652 } | 652 } |
653 | 653 |
654 void Frame::deviceOrPageScaleFactorChanged() | 654 void Frame::deviceOrPageScaleFactorChanged() |
655 { | 655 { |
656 for (RefPtr<Frame> child = tree()->firstChild(); child; child = child->tree(
)->nextSibling()) | 656 for (RefPtr<Frame> child = tree()->firstChild(); child; child = child->tree(
)->nextSibling()) |
657 child->deviceOrPageScaleFactorChanged(); | 657 child->deviceOrPageScaleFactorChanged(); |
658 | 658 |
659 RenderView* root = contentRenderer(); | |
660 if (root && root->compositor()) | |
661 root->compositor()->deviceOrPageScaleFactorChanged(); | |
662 | |
663 m_page->chrome()->client()->deviceOrPageScaleFactorChanged(); | 659 m_page->chrome()->client()->deviceOrPageScaleFactorChanged(); |
664 } | 660 } |
665 | 661 |
666 void Frame::notifyChromeClientWheelEventHandlerCountChanged() const | 662 void Frame::notifyChromeClientWheelEventHandlerCountChanged() const |
667 { | 663 { |
668 // Ensure that this method is being called on the main frame of the page. | 664 // Ensure that this method is being called on the main frame of the page. |
669 ASSERT(m_page && m_page->mainFrame() == this); | 665 ASSERT(m_page && m_page->mainFrame() == this); |
670 | 666 |
671 unsigned count = 0; | 667 unsigned count = 0; |
672 for (const Frame* frame = this; frame; frame = frame->tree()->traverseNext()
) { | 668 for (const Frame* frame = this; frame; frame = frame->tree()->traverseNext()
) { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); | 780 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); |
785 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); | 781 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); |
786 | 782 |
787 m_view->paintContents(buffer->context(), paintingRect); | 783 m_view->paintContents(buffer->context(), paintingRect); |
788 | 784 |
789 RefPtr<Image> image = buffer->copyImage(); | 785 RefPtr<Image> image = buffer->copyImage(); |
790 return createDragImageFromImage(image.get()); | 786 return createDragImageFromImage(image.get()); |
791 } | 787 } |
792 | 788 |
793 } // namespace WebCore | 789 } // namespace WebCore |
OLD | NEW |