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

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

Issue 281393002: Revert of Make all layout tests force composited (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/WebEmbeddedWorkerImpl.cpp ('k') | Source/web/tests/FrameLoaderClientImplTest.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 184 }
185 185
186 void WebSharedWorkerImpl::initializeLoader(const WebURL& url) 186 void WebSharedWorkerImpl::initializeLoader(const WebURL& url)
187 { 187 {
188 // Create 'shadow page'. This page is never displayed, it is used to proxy t he 188 // Create 'shadow page'. This page is never displayed, it is used to proxy t he
189 // loading requests from the worker context to the rest of WebKit and Chromi um 189 // loading requests from the worker context to the rest of WebKit and Chromi um
190 // infrastructure. 190 // infrastructure.
191 ASSERT(!m_webView); 191 ASSERT(!m_webView);
192 m_webView = WebView::create(0); 192 m_webView = WebView::create(0);
193 m_webView->settings()->setOfflineWebApplicationCacheEnabled(RuntimeEnabledFe atures::applicationCacheEnabled()); 193 m_webView->settings()->setOfflineWebApplicationCacheEnabled(RuntimeEnabledFe atures::applicationCacheEnabled());
194 // FIXME: http://crbug.com/363843. This needs to find a better way to
195 // not create graphics layers.
196 m_webView->settings()->setAcceleratedCompositingEnabled(false);
197 // FIXME: Settings information should be passed to the Worker process from B rowser process when the worker 194 // FIXME: Settings information should be passed to the Worker process from B rowser process when the worker
198 // is created (similar to RenderThread::OnCreateNewView). 195 // is created (similar to RenderThread::OnCreateNewView).
199 m_mainFrame = WebLocalFrame::create(this); 196 m_mainFrame = WebLocalFrame::create(this);
200 m_webView->setMainFrame(m_mainFrame); 197 m_webView->setMainFrame(m_mainFrame);
201 198
202 WebLocalFrameImpl* webFrame = toWebLocalFrameImpl(m_webView->mainFrame()); 199 WebLocalFrameImpl* webFrame = toWebLocalFrameImpl(m_webView->mainFrame());
203 200
204 // Construct substitute data source for the 'shadow page'. We only need it 201 // Construct substitute data source for the 'shadow page'. We only need it
205 // to have same origin as the worker so the loading checks work correctly. 202 // to have same origin as the worker so the loading checks work correctly.
206 CString content(""); 203 CString content("");
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 workerThread()->runLoop().postDebuggerTask(createCallbackTask(dispatchOnInsp ectorBackendTask, String(message))); 433 workerThread()->runLoop().postDebuggerTask(createCallbackTask(dispatchOnInsp ectorBackendTask, String(message)));
437 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); 434 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread());
438 } 435 }
439 436
440 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) 437 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client)
441 { 438 {
442 return new WebSharedWorkerImpl(client); 439 return new WebSharedWorkerImpl(client);
443 } 440 }
444 441
445 } // namespace blink 442 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.cpp ('k') | Source/web/tests/FrameLoaderClientImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698