OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 746 matching lines...) Loading... |
757 ASSERT(webFrame); | 757 ASSERT(webFrame); |
758 ASSERT(webFrame->frameWidget()); | 758 ASSERT(webFrame->frameWidget()); |
759 toWebFrameWidgetImpl(webFrame->frameWidget())->setRootGraphicsLayer(root
Layer); | 759 toWebFrameWidgetImpl(webFrame->frameWidget())->setRootGraphicsLayer(root
Layer); |
760 } | 760 } |
761 } | 761 } |
762 | 762 |
763 void ChromeClientImpl::didPaint(const PaintArtifact& paintArtifact) | 763 void ChromeClientImpl::didPaint(const PaintArtifact& paintArtifact) |
764 { | 764 { |
765 // TODO(jbroman): This doesn't handle OOPIF correctly. We probably need a | 765 // TODO(jbroman): This doesn't handle OOPIF correctly. We probably need a |
766 // branch for WebFrameWidget, like attachRootGraphicsLayer. | 766 // branch for WebFrameWidget, like attachRootGraphicsLayer. |
767 m_webView->paintArtifactCompositor().update(paintArtifact); | 767 m_webView->getPaintArtifactCompositor().update(paintArtifact); |
768 } | 768 } |
769 | 769 |
770 void ChromeClientImpl::attachCompositorAnimationTimeline(CompositorAnimationTime
line* compositorTimeline, LocalFrame* localRoot) | 770 void ChromeClientImpl::attachCompositorAnimationTimeline(CompositorAnimationTime
line* compositorTimeline, LocalFrame* localRoot) |
771 { | 771 { |
772 // FIXME: For top-level frames we still use the WebView as a WebWidget. This | 772 // FIXME: For top-level frames we still use the WebView as a WebWidget. This |
773 // special case will be removed when top-level frames get WebFrameWidgets. | 773 // special case will be removed when top-level frames get WebFrameWidgets. |
774 if (localRoot->isMainFrame()) { | 774 if (localRoot->isMainFrame()) { |
775 m_webView->attachCompositorAnimationTimeline(compositorTimeline); | 775 m_webView->attachCompositorAnimationTimeline(compositorTimeline); |
776 } else { | 776 } else { |
777 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(localRoot); | 777 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(localRoot); |
(...skipping 280 matching lines...) Loading... |
1058 if (m_webView->pageImportanceSignals()) | 1058 if (m_webView->pageImportanceSignals()) |
1059 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); | 1059 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); |
1060 } | 1060 } |
1061 | 1061 |
1062 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler() | 1062 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler() |
1063 { | 1063 { |
1064 return m_webView->scheduler()->createFrameScheduler().release(); | 1064 return m_webView->scheduler()->createFrameScheduler().release(); |
1065 } | 1065 } |
1066 | 1066 |
1067 } // namespace blink | 1067 } // namespace blink |
OLD | NEW |