Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 139103009: If a compositing update is declared as needed, scheduleAnimation should be triggered. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch for landing, added crbug to fixme comment Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | public/web/WebWidgetClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect ) 472 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect )
473 { 473 {
474 invalidateContentsAndRootView(updateRect); 474 invalidateContentsAndRootView(updateRect);
475 } 475 }
476 476
477 void ChromeClientImpl::scheduleAnimation() 477 void ChromeClientImpl::scheduleAnimation()
478 { 478 {
479 m_webView->scheduleAnimation(); 479 m_webView->scheduleAnimation();
480 } 480 }
481 481
482 bool ChromeClientImpl::isCompositorFramePending() const
483 {
484 return m_webView->client()->isCompositorFramePending();
485 }
486
482 void ChromeClientImpl::scroll( 487 void ChromeClientImpl::scroll(
483 const IntSize& scrollDelta, const IntRect& scrollRect, 488 const IntSize& scrollDelta, const IntRect& scrollRect,
484 const IntRect& clipRect) 489 const IntRect& clipRect)
485 { 490 {
486 if (!m_webView->isAcceleratedCompositingActive()) { 491 if (!m_webView->isAcceleratedCompositingActive()) {
487 if (m_webView->client()) { 492 if (m_webView->client()) {
488 int dx = scrollDelta.width(); 493 int dx = scrollDelta.width();
489 int dy = scrollDelta.height(); 494 int dy = scrollDelta.height();
490 m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect, clipRect)); 495 m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect, clipRect));
491 } 496 }
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 { 957 {
953 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); 958 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
954 } 959 }
955 960
956 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) 961 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url)
957 { 962 {
958 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); 963 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
959 } 964 }
960 965
961 } // namespace blink 966 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698