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

Side by Side Diff: Source/web/tests/CompositedLayerMappingTest.cpp

Issue 239533002: Combine settings about compositing scrollable frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/WebSettingsImpl.cpp ('k') | Source/web/tests/ScrollingCoordinatorChromiumTest.cpp » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 : m_baseURL("http://www.test.com/") 75 : m_baseURL("http://www.test.com/")
76 { 76 {
77 // We cannot reuse FrameTestHelpers::createWebViewAndLoad here because t he compositing 77 // We cannot reuse FrameTestHelpers::createWebViewAndLoad here because t he compositing
78 // settings need to be set before the page is loaded. 78 // settings need to be set before the page is loaded.
79 m_mainFrame = WebLocalFrame::create(&m_mockWebFrameClient); 79 m_mainFrame = WebLocalFrame::create(&m_mockWebFrameClient);
80 m_webViewImpl = toWebViewImpl(WebView::create(&m_mockWebViewClient)); 80 m_webViewImpl = toWebViewImpl(WebView::create(&m_mockWebViewClient));
81 m_webViewImpl->settings()->setForceCompositingMode(true); 81 m_webViewImpl->settings()->setForceCompositingMode(true);
82 m_webViewImpl->settings()->setAcceleratedCompositingEnabled(true); 82 m_webViewImpl->settings()->setAcceleratedCompositingEnabled(true);
83 m_webViewImpl->settings()->setAcceleratedCompositingForFixedPositionEnab led(true); 83 m_webViewImpl->settings()->setAcceleratedCompositingForFixedPositionEnab led(true);
84 m_webViewImpl->settings()->setAcceleratedCompositingForOverflowScrollEna bled(true); 84 m_webViewImpl->settings()->setAcceleratedCompositingForOverflowScrollEna bled(true);
85 m_webViewImpl->settings()->setAcceleratedCompositingForScrollableFramesE nabled(true);
86 m_webViewImpl->settings()->setCompositedScrollingForFramesEnabled(true); 85 m_webViewImpl->settings()->setCompositedScrollingForFramesEnabled(true);
87 m_webViewImpl->setMainFrame(m_mainFrame); 86 m_webViewImpl->setMainFrame(m_mainFrame);
88 m_webViewImpl->resize(IntSize(320, 240)); 87 m_webViewImpl->resize(IntSize(320, 240));
89 } 88 }
90 89
91 virtual void TearDown() 90 virtual void TearDown()
92 { 91 {
93 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); 92 Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
94 m_webViewImpl->close(); 93 m_webViewImpl->close();
95 m_mainFrame->close(); 94 m_mainFrame->close();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 127
129 layerElement = document->getElementById("layer-solid-color"); 128 layerElement = document->getElementById("layer-solid-color");
130 renderer = toRenderLayerModelObject(layerElement->renderer()); 129 renderer = toRenderLayerModelObject(layerElement->renderer());
131 // CompositedLayerMapping::graphicsLayer's background color is unset if Soli dColorLayer is created. 130 // CompositedLayerMapping::graphicsLayer's background color is unset if Soli dColorLayer is created.
132 EXPECT_EQ(Color(), renderer->layer()->compositedLayerMapping()->mainGraphics Layer()->backgroundColor()); 131 EXPECT_EQ(Color(), renderer->layer()->compositedLayerMapping()->mainGraphics Layer()->backgroundColor());
133 } 132 }
134 133
135 } 134 }
136 135
137 } // namespace WebCore 136 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/web/WebSettingsImpl.cpp ('k') | Source/web/tests/ScrollingCoordinatorChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698