| 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 m_webView->setRootGraphicsLayer(graphicsLayer ? graphicsLayer->platformLayer
() : 0); | 832 m_webView->setRootGraphicsLayer(graphicsLayer ? graphicsLayer->platformLayer
() : 0); |
| 833 } | 833 } |
| 834 | 834 |
| 835 void ChromeClientImpl::scheduleCompositingLayerSync() | 835 void ChromeClientImpl::scheduleCompositingLayerSync() |
| 836 { | 836 { |
| 837 m_webView->setRootLayerNeedsDisplay(); | 837 m_webView->setRootLayerNeedsDisplay(); |
| 838 } | 838 } |
| 839 | 839 |
| 840 ChromeClient::CompositingTriggerFlags ChromeClientImpl::allowedCompositingTrigge
rs() const | 840 ChromeClient::CompositingTriggerFlags ChromeClientImpl::allowedCompositingTrigge
rs() const |
| 841 { | 841 { |
| 842 if (!m_webView->allowsAcceleratedCompositing()) | 842 // FIXME: RTL style not supported by the compositor yet. |
| 843 if (!m_webView->allowsAcceleratedCompositing() || m_webView->pageHasRTLStyle
()) |
| 843 return 0; | 844 return 0; |
| 844 | 845 |
| 845 CompositingTriggerFlags flags = 0; | 846 CompositingTriggerFlags flags = 0; |
| 846 Settings* settings = m_webView->page()->settings(); | 847 Settings* settings = m_webView->page()->settings(); |
| 847 if (settings->acceleratedCompositingFor3DTransformsEnabled()) | 848 if (settings->acceleratedCompositingFor3DTransformsEnabled()) |
| 848 flags |= ThreeDTransformTrigger; | 849 flags |= ThreeDTransformTrigger; |
| 849 if (settings->acceleratedCompositingForVideoEnabled()) | 850 if (settings->acceleratedCompositingForVideoEnabled()) |
| 850 flags |= VideoTrigger; | 851 flags |= VideoTrigger; |
| 851 if (settings->acceleratedCompositingForPluginsEnabled()) | 852 if (settings->acceleratedCompositingForPluginsEnabled()) |
| 852 flags |= PluginTrigger; | 853 flags |= PluginTrigger; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 { | 927 { |
| 927 return adoptRef(new SearchPopupMenuChromium(client)); | 928 return adoptRef(new SearchPopupMenuChromium(client)); |
| 928 } | 929 } |
| 929 | 930 |
| 930 void ChromeClientImpl::willRunModalDialogDuringPageDismissal(const DialogType& d
ialogType) const | 931 void ChromeClientImpl::willRunModalDialogDuringPageDismissal(const DialogType& d
ialogType) const |
| 931 { | 932 { |
| 932 PlatformBridge::histogramEnumeration("Renderer.ModalDialogsDuringPageDismiss
al", static_cast<int>(dialogType), static_cast<int>(NumDialogTypes)); | 933 PlatformBridge::histogramEnumeration("Renderer.ModalDialogsDuringPageDismiss
al", static_cast<int>(dialogType), static_cast<int>(NumDialogTypes)); |
| 933 } | 934 } |
| 934 | 935 |
| 935 } // namespace WebKit | 936 } // namespace WebKit |
| OLD | NEW |