3638b82c7da6cdc534f70444c8f8ac3653dfa59f
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-01-04  David Levin  <levin@chromium.org>
2
3         Attempt Chromium build fix.
4
5         * src/WorkerFileSystemCallbacksBridge.h:
6
7 2012-01-04  David Levin  <levin@chromium.org>
8
9         [chromium] Remove AllowCrossThreadAccess in WorkerFileSystemCallbacksBridge.
10         https://bugs.webkit.org/show_bug.cgi?id=75579
11
12         Reviewed by Dmitry Titov.
13
14         This code doesn't have lifetime issues, but this change is
15         about getting rid of AllowCrossThreadAccess and getting rid of a leakRef.
16         This allows the code to follow a more common pattern and be more easily
17         verified as being correct.
18
19         * src/WorkerFileSystemCallbacksBridge.cpp:
20         (WebKit::MainThreadFileSystemCallbacks::createLeakedPtr):
21         (WebKit::MainThreadFileSystemCallbacks::MainThreadFileSystemCallbacks):
22         (WebKit::WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread):
23         (WebKit::WorkerFileSystemCallbacksBridge::postMoveToMainThread):
24         (WebKit::WorkerFileSystemCallbacksBridge::postCopyToMainThread):
25         (WebKit::WorkerFileSystemCallbacksBridge::postRemoveToMainThread):
26         (WebKit::WorkerFileSystemCallbacksBridge::postRemoveRecursivelyToMainThread):
27         (WebKit::WorkerFileSystemCallbacksBridge::postReadMetadataToMainThread):
28         (WebKit::WorkerFileSystemCallbacksBridge::postCreateFileToMainThread):
29         (WebKit::WorkerFileSystemCallbacksBridge::postCreateDirectoryToMainThread):
30         (WebKit::WorkerFileSystemCallbacksBridge::postFileExistsToMainThread):
31         (WebKit::WorkerFileSystemCallbacksBridge::postDirectoryExistsToMainThread):
32         (WebKit::WorkerFileSystemCallbacksBridge::postReadDirectoryToMainThread):
33         (WebKit::WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread):
34         (WebKit::WorkerFileSystemCallbacksBridge::moveOnMainThread):
35         (WebKit::WorkerFileSystemCallbacksBridge::copyOnMainThread):
36         (WebKit::WorkerFileSystemCallbacksBridge::removeOnMainThread):
37         (WebKit::WorkerFileSystemCallbacksBridge::removeRecursivelyOnMainThread):
38         (WebKit::WorkerFileSystemCallbacksBridge::readMetadataOnMainThread):
39         (WebKit::WorkerFileSystemCallbacksBridge::createFileOnMainThread):
40         (WebKit::WorkerFileSystemCallbacksBridge::createDirectoryOnMainThread):
41         (WebKit::WorkerFileSystemCallbacksBridge::fileExistsOnMainThread):
42         (WebKit::WorkerFileSystemCallbacksBridge::directoryExistsOnMainThread):
43         (WebKit::WorkerFileSystemCallbacksBridge::readDirectoryOnMainThread):
44         (WebKit::WorkerFileSystemCallbacksBridge::didFailOnMainThread):
45         (WebKit::WorkerFileSystemCallbacksBridge::didOpenFileSystemOnMainThread):
46         (WebKit::WorkerFileSystemCallbacksBridge::didSucceedOnMainThread):
47         (WebKit::WorkerFileSystemCallbacksBridge::didReadMetadataOnMainThread):
48         (WebKit::WorkerFileSystemCallbacksBridge::didReadDirectoryOnMainThread):
49         (WebKit::WorkerFileSystemCallbacksBridge::didFailOnWorkerThread):
50         (WebKit::WorkerFileSystemCallbacksBridge::didOpenFileSystemOnWorkerThread):
51         (WebKit::WorkerFileSystemCallbacksBridge::didSucceedOnWorkerThread):
52         (WebKit::WorkerFileSystemCallbacksBridge::didReadMetadataOnWorkerThread):
53         (WebKit::WorkerFileSystemCallbacksBridge::didReadDirectoryOnWorkerThread):
54         (WebKit::WorkerFileSystemCallbacksBridge::runTaskOnMainThread):
55         (WebKit::WorkerFileSystemCallbacksBridge::mayPostTaskToWorker):
56         * src/WorkerFileSystemCallbacksBridge.h:
57
58 2012-01-04  David Levin  <levin@chromium.org>
59
60         [chromium] Make it safe to delete WorkerFileSystemContextObserver on any thread.
61         https://bugs.webkit.org/show_bug.cgi?id=75573
62
63         Reviewed by Dmitry Titov.
64
65         * src/WorkerFileSystemCallbacksBridge.cpp:
66         (WebKit::WorkerFileSystemContextObserver): Move the WorkerContextObserver
67         out of the WorkerFileSystemCallbacksBridge since an observer should be
68         destroyed on the WorkerContext thread. (Actually, it could be destroyed on either
69         thread if you are careful to make a certain method call on it while on the WorkerContext
70         thread but trying that is a more fragile pattern.)
71         (WebKit::WorkerFileSystemCallbacksBridge::WorkerFileSystemCallbacksBridge):
72         (WebKit::WorkerFileSystemCallbacksBridge::stop): Factor out the clean up and make it
73         clear what the mutex is guarding.
74         (WebKit::WorkerFileSystemCallbacksBridge::cleanUpAfterCallback): Delete
75         the observer. Due to where this is called from, it is always called on the WorkerContext thread.
76         (WebKit::WorkerFileSystemCallbacksBridge::runTaskOnWorkerThread): Replace some code with
77         the cleanUpAfterCallback call.
78         (WebKit::WorkerFileSystemCallbacksBridge::mayPostTaskToWorker):
79         * src/WorkerFileSystemCallbacksBridge.h: In addition to some comment clean ups and code factoring,
80         I made the desctructor private since no one should call it directly.
81
82 2012-01-04  James Robinson  <jamesr@chromium.org>
83
84         [chromium] Remove chromium compositor support for unused zoomAnimatorTransform
85         https://bugs.webkit.org/show_bug.cgi?id=75585
86
87         Reviewed by Kenneth Russell.
88
89         * src/WebViewImpl.cpp:
90         (WebKit::WebViewImpl::setZoomLevel):
91         (WebKit::WebViewImpl::setRootLayerNeedsDisplay):
92         * tests/CCLayerImplTest.cpp:
93         (WebCore::TEST):
94
95 2012-01-04  James Robinson  <jamesr@chromium.org>
96
97         [chromium] Compile fix, rename libplatform.a to libwebkit_platform.a to avoid collision with nacl
98
99         * WebKit.gyp:
100
101 2012-01-04  Sheriff Bot  <webkit.review.bot@gmail.com>
102
103         Unreviewed, rolling out r104052.
104         http://trac.webkit.org/changeset/104052
105         https://bugs.webkit.org/show_bug.cgi?id=75574
106
107         Breaks win builder (Requested by enne on #webkit).
108
109         * WebKit.gypi:
110         * tests/CCTiledLayerImplTest.cpp: Removed.
111
112 2012-01-04  Dmitry Lomov  <dslomov@google.com>
113
114         Unreviewed:[Chromium]Disable WebPageNewSerializeTest.CSSResources and WebPageNewSerializeTest.TestMHTMLEncoding.
115         https://bugs.webkit.org/show_bug.cgi?id=75567
116
117         * tests/WebPageNewSerializerTest.cpp:
118         (WebKit::TEST_F):
119
120 2012-01-04  Adrienne Walker  <enne@google.com>
121
122         [chromium] Create unit tests for CCTiledLayerImpl
123         https://bugs.webkit.org/show_bug.cgi?id=75557
124
125         Reviewed by James Robinson.
126
127         Add some quad generation tests for tiled layers.
128
129         * WebKit.gypi:
130         * tests/CCTiledLayerImplTest.cpp: Added.
131         (WebCore::createLayer):
132         (WebCore::TEST):
133         (WebCore::completelyContains):
134         (WebCore::getQuads):
135         (WebCore::verifyQuadsExactlyCoverRect):
136         (WebCore::coverageVisibleRectOnTileBoundaries):
137         (WebCore::coverageVisibleRectIntersectsTiles):
138         (WebCore::coverageVisibleRectIntersectsBounds):
139
140 2012-01-04  James Robinson  <jamesr@chromium.org>
141
142         [chromium] Move WebMimeRegistry and dependencies to Source/Platform
143         https://bugs.webkit.org/show_bug.cgi?id=74583
144
145         Reviewed by Darin Fisher.
146
147         public/platform/WebMimeRegistry.h is a temporary forwarding header to ease the transition. Once downstream
148         callers are updated to the new location this header can be removed.
149
150         WebString, WebCString, and WebCommon.h will remain in place as forwarding headers for users of the WebKit client
151         API.
152
153         * WebKit.gyp:
154         * public/platform/WebCString.h:
155         * public/platform/WebCommon.h:
156         * public/platform/WebMimeRegistry.h:
157         * public/platform/WebString.h:
158
159 2012-01-03  Vangelis Kokkevis  <vangelis@chromium.org>
160
161         [chromium] Bypass the shadow texture copy for accelerated
162         canvas when running the compositor in single threaded mode.
163         https://bugs.webkit.org/show_bug.cgi?id=75146
164
165         Modified Canvas2DLayerChromium unit test to test canvas with
166         both threaded and non-threaded compositing.
167
168         Reviewed by James Robinson.
169
170         * tests/CCSchedulerTestCommon.h:
171         (WebKitTests::FakeCCThread::threadID):
172         * tests/Canvas2DLayerChromiumTest.cpp:
173         (WebCore::Canvas2DLayerChromiumTest::setTextureManager):
174         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
175         (WebCore::TEST_F):
176
177 2012-01-04  Peter Beverloo  <peter@chromium.org>
178
179         [Chromium] Re-use TestShellLinux.cpp for Android
180         https://bugs.webkit.org/show_bug.cgi?id=75169
181
182         Reviewed by Tony Chang.
183
184         TestShellLinux.cpp can be re-used for the test-shell on the WebKit
185         Chromium port for Android. Most custom inclusions for the DumpRenderTree
186         target are done in Tools/DumpRenderTree.gypi, but since *Linux.cpp files
187         are being excluded by a global rule on sources it has to be later in
188         the project generation process.
189
190         * WebKit.gyp:
191
192 2012-01-03  Karl Koscher  <supersat@chromium.org>
193
194         Give embedders a chance to handle postMessage calls
195         https://bugs.webkit.org/show_bug.cgi?id=73883
196
197         Reviewed by Adam Barth.
198
199         * public/WebFrameClient.h:
200         (WebKit::WebFrameClient::willCheckAndDispatchMessageEvent): 
201             interface to give the embedder a chance to handle this postMessage call
202         * src/FrameLoaderClientImpl.cpp:
203         (WebKit::FrameLoaderClientImpl::willCheckAndDispatchMessageEvent): Call 
204             willCheckAndDispatchMessageEvent on WebFrameClient
205         * src/FrameLoaderClientImpl.h:
206
207 2012-01-03  Shawn Singh  <shawnsingh@chromium.org>
208
209         [chromium] CCLayerSorter accidentally reverses order of some layers.
210         https://bugs.webkit.org/show_bug.cgi?id=75046
211
212         Reviewed by James Robinson.
213
214         * tests/CCLayerSorterTest.cpp:
215         (WebCore::TEST):
216
217 2012-01-03  David Levin  <levin@chromium.org>
218
219         [chromium] LocalFileSystemChromium needs some thread safety fixes.
220         https://bugs.webkit.org/show_bug.cgi?id=75494
221
222         Reviewed by Dmitry Titov.
223
224         This is essentially the same fix as r102894 except in slightly different code.
225
226         The important part of this fix is the removal of AllowCrossThreadAccess so
227         that ref counting happens appropriately.
228
229         Minor clean up throughout: Removed unnecessary WTF prefix in many
230         of these places and unnecessary String().
231
232         * src/LocalFileSystemChromium.cpp: See r102894 since this
233         is basically the same thing.
234
235 2012-01-03  Shawn Singh  <shawnsingh@chromium.org>
236
237         [chromium] Push drawsContent and contentsVisible into accelerated compositor
238         https://bugs.webkit.org/show_bug.cgi?id=71209
239
240         Reviewed by James Robinson.
241
242         * src/WebContentLayerImpl.cpp:
243         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
244         (WebKit::WebContentLayerImpl::setDrawsContent):
245         * src/WebContentLayerImpl.h:
246         * src/WebExternalTextureLayerImpl.cpp:
247         (WebKit::WebExternalTextureLayerImpl::drawsContent):
248         * src/WebLayerImpl.cpp:
249         (WebKit::WebLayerImpl::WebLayerImpl):
250         * src/WebLayerImpl.h:
251         * tests/CCLayerTreeHostTest.cpp:
252         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
253         * tests/Canvas2DLayerChromiumTest.cpp:
254         * tests/LayerChromiumTest.cpp:
255         * tests/TiledLayerChromiumTest.cpp:
256         (WTF::FakeTiledLayerChromium::FakeTiledLayerChromium):
257
258 2012-01-03  Shawn Singh  <shawnsingh@chromium.org>
259
260         [chromium] Make sure root damage rect gets passed to renderer
261         https://bugs.webkit.org/show_bug.cgi?id=74893
262
263         Reviewed by James Robinson.
264
265         * tests/CCLayerTreeHostImplTest.cpp:
266         (WebKit::TEST_F):
267         (WebKit::PartialSwapTrackerContext::initialize):
268         (WebKit::PartialSwapTrackerContext::postSubBufferCHROMIUM):
269         (WebKit::PartialSwapTrackerContext::getString):
270         (WebKit::PartialSwapTrackerContext::partialSwapRect):
271
272 2012-01-03  Tony Chang  <tony@chromium.org>
273
274         [chromium] Fix compilation with clang and the shared build
275         https://bugs.webkit.org/show_bug.cgi?id=75492
276
277         Reviewed by Ojan Vafai.
278
279         * WebKit.gyp: Turn off -Wglobal-constructors because test files using
280         GTEST have global constructors.
281         * tests/InnerGestureRecognizerTest.cpp:
282         (TEST_F): Move global into test function.
283
284 2012-01-03  Adrienne Walker  <enne@google.com>
285
286         [chromium] Revert accidentally removed chrome client compositing check
287         https://bugs.webkit.org/show_bug.cgi?id=75500
288
289         Reviewed by James Robinson.
290
291         This check was overzealously removed in r103968 as a part of
292         re-enabling compositing for RTL pages. Add it back.
293
294         * src/ChromeClientImpl.cpp:
295         (WebKit::ChromeClientImpl::allowedCompositingTriggers):
296
297 2012-01-03  Jon Lee  <jonlee@apple.com>
298
299         Leak of WebNotificationClient when page is destroyed
300         https://bugs.webkit.org/show_bug.cgi?id=74980
301         <rdar://problem/10611231>
302
303         Reviewed by Mark Rowe.
304
305         * src/NotificationPresenterImpl.cpp:
306         (WebKit::NotificationPresenterImpl::notificationControllerDestroyed): Empty implementation because ownership
307         model differs.
308         * src/NotificationPresenterImpl.h:
309
310 2012-01-03  James Robinson  <jamesr@chromium.org>
311
312         [chromium] Remove WebLayerClient
313         https://bugs.webkit.org/show_bug.cgi?id=75481
314
315         Reviewed by Darin Fisher.
316
317         * WebKit.gyp:
318         * public/platform/WebContentLayer.h:
319         * public/platform/WebExternalTextureLayer.h:
320         * public/platform/WebLayer.h:
321         * public/platform/WebLayerClient.h: Removed.
322         * src/WebContentLayer.cpp:
323         * src/WebExternalTextureLayer.cpp:
324         * src/WebLayer.cpp:
325
326 2012-01-03  Adrienne Walker  <enne@google.com>
327
328         [chromium] Support RTL pages and elements in the compositor
329         https://bugs.webkit.org/show_bug.cgi?id=56591
330
331         Reviewed by James Robinson.
332
333         As the noncomposited content host layer is created and managed by the
334         Chromium compositor, adjust its transform appropriately in the layer
335         tree and at paint time to handle the offset required due to the
336         initial containing block of RTL pages.
337
338         * src/ChromeClientImpl.cpp:
339         (WebKit::ChromeClientImpl::allowedCompositingTriggers):
340         * src/NonCompositedContentHost.cpp:
341         (WebKit::NonCompositedContentHost::setViewport):
342         (WebKit::NonCompositedContentHost::paintContents):
343         * src/NonCompositedContentHost.h:
344         * src/WebViewImpl.cpp:
345         (WebKit::WebViewImpl::updateLayerTreeViewport):
346
347 2012-01-03  Adrienne Walker  <enne@google.com>
348
349         [chromium] Make tiled layer's tiler always exist
350         https://bugs.webkit.org/show_bug.cgi?id=75329
351
352         Reviewed by James Robinson.
353
354         Update test due to changing API. Add a test for changing border
355         texel option on TilingData.
356
357         * tests/TiledLayerChromiumTest.cpp:
358         (WTF::FakeTiledLayerChromium::FakeTiledLayerChromium):
359         * tests/TilingDataTest.cpp:
360         (WebCore::TEST):
361
362 2011-12-30  Ami Fischman  <fischman@chromium.org>
363
364         Allow disabling accelerated compositing in WebMediaPlayerClient (so audio-only <video> isn't accelerated).
365         https://bugs.webkit.org/show_bug.cgi?id=75261
366
367         Reviewed by Darin Fisher.
368
369         * public/WebMediaPlayerClient.h:
370         * src/WebMediaPlayerClientImpl.cpp:
371         (WebKit::WebMediaPlayerClientImpl::disableAcceleratedCompositing):
372         (WebKit::WebMediaPlayerClientImpl::AudioSourceProviderImpl::setClient):
373         * src/WebMediaPlayerClientImpl.h:
374
375 2011-12-30  Sheriff Bot  <webkit.review.bot@gmail.com>
376
377         Unreviewed.  Rolled DEPS.
378
379         * DEPS:
380
381 2011-12-30  Pavel Feldman  <pfeldman@google.com>
382
383         Web Inspector: migrate from "attached" to "compact" styles.
384         https://bugs.webkit.org/show_bug.cgi?id=75381
385
386         Reviewed by Yury Semikhatsky.
387
388         When front-end is docked to right, it should look like "detached", but is still "attached".
389         Use "compact" mode instead of "attached" mode in the styles to mitigate it.
390
391         * src/js/devTools.css:
392         (body.compact #toolbar):
393
394 2011-12-30  Dmitry Lomov  <dslomov@google.com>
395
396         https://bugs.webkit.org/show_bug.cgi?id=75373
397         [Chromium] Remove WebWorkerClient.h
398         After coordinated patch in chromium, WebWorkerClient alias for WebSharedWorkerClient is no longer needed.
399
400         Reviewed by Adam Barth.
401
402         * WebKit.gyp:
403         * public/WebFrameClient.h:
404         * public/WebWorkerClient.h: Removed.
405         * src/WebSharedWorkerImpl.h:
406         * src/WebWorkerBase.cpp:
407         * src/WebWorkerClientImpl.h:
408
409 2011-12-29  Sheriff Bot  <webkit.review.bot@gmail.com>
410
411         Unreviewed, rolling out r103831.
412         http://trac.webkit.org/changeset/103831
413         https://bugs.webkit.org/show_bug.cgi?id=75377
414
415         broke chromium build (Requested by dslomov_ on #webkit).
416
417         * WebKit.gyp:
418         * public/WebFrameClient.h:
419         * public/WebWorkerClient.h: Copied from Source/WebKit/chromium/src/WebWorkerBase.cpp.
420         * src/WebSharedWorkerImpl.h:
421         * src/WebWorkerBase.cpp:
422         * src/WebWorkerClientImpl.h:
423
424 2011-12-29  Pavel Feldman  <pfeldman@google.com>
425
426         Web Inspector: enable dock-to-right view (still need embedders to support it).
427         https://bugs.webkit.org/show_bug.cgi?id=75360
428
429         Reviewed by Yury Semikhatsky.
430
431         * src/js/DevTools.js:
432
433 2011-12-29  Dmitry Lomov  <dslomov@google.com>
434
435         https://bugs.webkit.org/show_bug.cgi?id=75373
436         [Chromium] Remove WebWorkerClient.h
437         After coordinated patch in chromium, WebWorkerClient alias for WebSharedWorkerClient is no longer needed.
438
439         Reviewed by Adam Barth.
440
441         * WebKit.gyp:
442         * public/WebFrameClient.h:
443         * public/WebWorkerClient.h: Removed.
444         * src/WebSharedWorkerImpl.h:
445         * src/WebWorkerBase.cpp:
446         * src/WebWorkerClientImpl.h:
447
448 2011-12-29  Pavel Feldman  <pfeldman@google.com>
449
450         Web Inspector: [chromium] pass dock to side request to the embedder.
451         https://bugs.webkit.org/show_bug.cgi?id=75344
452
453         Reviewed by Yury Semikhatsky.
454
455         * public/WebDevToolsFrontendClient.h:
456         (WebKit::WebDevToolsFrontendClient::requestSetDockSide):
457         * src/InspectorFrontendClientImpl.cpp:
458         (WebKit::InspectorFrontendClientImpl::requestSetDockSide):
459         * src/InspectorFrontendClientImpl.h:
460
461 2011-12-28  Dmitry Lomov  <dslomov@google.com>
462
463         [WebWorkers][Chromium] Remove remains of cross-process dedicated worker implementation.
464         https://bugs.webkit.org/show_bug.cgi?id=66509
465         Just renames, merges and removal of dead code. Here are the list of renames:
466           - WebCommonWorkerClient merged with WebWorkerClient and renamed to WebSharedWorkerClient
467           - NewWebCommonWorkerClient renamed to WebCommonWorkerClient
468           - WebWorkerBase merged into WebSharedWorkerImpl
469           - NewWebWorkerBase renamed into WebWorkerBase
470         WebWorkerClient.h has a "#define WebWorkerClient WebSharedWorkerClient" to keep chromium building.
471         Will be removed after coordinated patch in chromium.
472
473         Reviewed by David Levin.
474
475         * WebKit.gyp:
476         * public/WebCommonWorkerClient.h:
477         * public/WebSharedWorker.h:
478         * public/WebSharedWorkerClient.h: Copied from Source/WebKit/chromium/public/WebCommonWorkerClient.h.
479         (WebKit::WebSharedWorkerClient::postConsoleMessageToWorkerObject):
480         (WebKit::WebSharedWorkerClient::allowFileSystem):
481         (WebKit::WebSharedWorkerClient::openFileSystem):
482         (WebKit::WebSharedWorkerClient::dispatchDevToolsMessage):
483         (WebKit::WebSharedWorkerClient::saveDevToolsAgentState):
484         (WebKit::WebSharedWorkerClient::~WebSharedWorkerClient):
485         * public/WebWorkerClient.h:
486         * src/DatabaseObserver.cpp:
487         (WebKit::AllowDatabaseMainThreadBridge::create):
488         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
489         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask):
490         (WebKit::allowDatabaseForWorker):
491         (WebCore::DatabaseObserver::canEstablishDatabase):
492         * src/IDBFactoryBackendProxy.cpp:
493         (WebKit::IDBFactoryBackendProxy::openFromWorker):
494         * src/LocalFileSystemChromium.cpp:
495         (WebCore::openFileSystemHelper):
496         * src/WebSharedWorkerImpl.cpp:
497         (WebKit::initializeWebKitStaticValues):
498         (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
499         (WebKit::WebSharedWorkerImpl::~WebSharedWorkerImpl):
500         (WebKit::WebSharedWorkerImpl::stopWorkerThread):
501         (WebKit::WebSharedWorkerImpl::initializeLoader):
502         (WebKit::WebSharedWorkerImpl::didCreateDataSource):
503         (WebKit::WebSharedWorkerImpl::createApplicationCacheHost):
504         (WebKit::WebSharedWorkerImpl::postMessageToWorkerObject):
505         (WebKit::WebSharedWorkerImpl::postMessageTask):
506         (WebKit::WebSharedWorkerImpl::postExceptionToWorkerObject):
507         (WebKit::WebSharedWorkerImpl::postExceptionTask):
508         (WebKit::WebSharedWorkerImpl::postConsoleMessageToWorkerObject):
509         (WebKit::WebSharedWorkerImpl::postConsoleMessageTask):
510         (WebKit::WebSharedWorkerImpl::postMessageToPageInspector):
511         (WebKit::WebSharedWorkerImpl::postMessageToPageInspectorTask):
512         (WebKit::WebSharedWorkerImpl::updateInspectorStateCookie):
513         (WebKit::WebSharedWorkerImpl::updateInspectorStateCookieTask):
514         (WebKit::WebSharedWorkerImpl::confirmMessageFromWorkerObject):
515         (WebKit::WebSharedWorkerImpl::confirmMessageTask):
516         (WebKit::WebSharedWorkerImpl::reportPendingActivity):
517         (WebKit::WebSharedWorkerImpl::reportPendingActivityTask):
518         (WebKit::WebSharedWorkerImpl::workerContextClosed):
519         (WebKit::WebSharedWorkerImpl::workerContextClosedTask):
520         (WebKit::WebSharedWorkerImpl::workerContextDestroyed):
521         (WebKit::WebSharedWorkerImpl::workerContextDestroyedTask):
522         (WebKit::WebSharedWorkerImpl::postTaskToLoader):
523         (WebKit::WebSharedWorkerImpl::postTaskForModeToWorkerContext):
524         (WebKit::WebSharedWorker::create):
525         * src/WebSharedWorkerImpl.h:
526         (WebKit::WebSharedWorkerImpl::view):
527         (WebKit::WebSharedWorkerImpl::commonClient):
528         (WebKit::WebSharedWorkerImpl::client):
529         (WebKit::WebSharedWorkerImpl::setWorkerThread):
530         (WebKit::WebSharedWorkerImpl::workerThread):
531         * src/WebWorkerBase.cpp:
532         (WebKit::invokeTaskMethod):
533         (WebKit::WebWorkerBase::dispatchTaskToMainThread):
534         * src/WebWorkerBase.h:
535         * src/WebWorkerClientImpl.cpp:
536         * src/WebWorkerClientImpl.h:
537         (WebKit::WebWorkerClientImpl::commonClient):
538         * src/WebWorkerImpl.cpp: Removed.
539         * src/WebWorkerImpl.h: Removed.
540         * src/WorkerFileSystemCallbacksBridge.cpp:
541         (WebKit::WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread):
542         (WebKit::WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread):
543         * src/WorkerFileSystemCallbacksBridge.h:
544
545 2011-12-28  Sheriff Bot  <webkit.review.bot@gmail.com>
546
547         Unreviewed, rolling out r103785.
548         http://trac.webkit.org/changeset/103785
549         https://bugs.webkit.org/show_bug.cgi?id=75332
550
551         Broke builders; looks like clobbering didnt help (Requested by
552         dslomov on #webkit).
553
554         * WebKit.gyp:
555         * public/WebCommonWorkerClient.h:
556         (WebKit::WebCommonWorkerClient::postConsoleMessageToWorkerObject):
557         (WebKit::WebCommonWorkerClient::allowFileSystem):
558         (WebKit::WebCommonWorkerClient::openFileSystem):
559         (WebKit::WebCommonWorkerClient::dispatchDevToolsMessage):
560         (WebKit::WebCommonWorkerClient::saveDevToolsAgentState):
561         (WebKit::WebCommonWorkerClient::~WebCommonWorkerClient):
562         * public/WebFrameClient.h:
563         (WebKit::WebFrameClient::createWorker):
564         * public/WebSharedWorker.h:
565         * public/WebSharedWorkerClient.h: Removed.
566         * public/WebWorkerClient.h:
567         (WebKit::WebWorkerClient::~WebWorkerClient):
568         * src/DatabaseObserver.cpp:
569         (WebKit::AllowDatabaseMainThreadBridge::create):
570         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
571         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask):
572         (WebKit::allowDatabaseForWorker):
573         (WebCore::DatabaseObserver::canEstablishDatabase):
574         * src/IDBFactoryBackendProxy.cpp:
575         (WebKit::IDBFactoryBackendProxy::openFromWorker):
576         * src/LocalFileSystemChromium.cpp:
577         (WebCore::openFileSystemHelper):
578         * src/WebSharedWorkerImpl.cpp:
579         (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
580         (WebKit::WebSharedWorkerImpl::~WebSharedWorkerImpl):
581         (WebKit::WebSharedWorkerImpl::client):
582         (WebKit::WebSharedWorker::create):
583         * src/WebSharedWorkerImpl.h:
584         (WebKit::WebSharedWorkerImpl::commonClient):
585         (WebKit::WebSharedWorkerImpl::newCommonClient):
586         * src/WebWorkerBase.cpp:
587         (WebKit::initializeWebKitStaticValues):
588         (WebKit::WebWorkerBase::WebWorkerBase):
589         (WebKit::WebWorkerBase::~WebWorkerBase):
590         (WebKit::WebWorkerBase::stopWorkerThread):
591         (WebKit::WebWorkerBase::initializeLoader):
592         (WebKit::WebWorkerBase::dispatchTaskToMainThread):
593         (WebKit::WebWorkerBase::invokeTaskMethod):
594         (WebKit::WebWorkerBase::didCreateDataSource):
595         (WebKit::WebWorkerBase::createApplicationCacheHost):
596         (WebKit::WebWorkerBase::postMessageToWorkerObject):
597         (WebKit::WebWorkerBase::postMessageTask):
598         (WebKit::WebWorkerBase::postExceptionToWorkerObject):
599         (WebKit::WebWorkerBase::postExceptionTask):
600         (WebKit::WebWorkerBase::postConsoleMessageToWorkerObject):
601         (WebKit::WebWorkerBase::postConsoleMessageTask):
602         (WebKit::WebWorkerBase::postMessageToPageInspector):
603         (WebKit::WebWorkerBase::postMessageToPageInspectorTask):
604         (WebKit::WebWorkerBase::updateInspectorStateCookie):
605         (WebKit::WebWorkerBase::updateInspectorStateCookieTask):
606         (WebKit::WebWorkerBase::confirmMessageFromWorkerObject):
607         (WebKit::WebWorkerBase::confirmMessageTask):
608         (WebKit::WebWorkerBase::reportPendingActivity):
609         (WebKit::WebWorkerBase::reportPendingActivityTask):
610         (WebKit::WebWorkerBase::workerContextClosed):
611         (WebKit::WebWorkerBase::workerContextClosedTask):
612         (WebKit::WebWorkerBase::workerContextDestroyed):
613         (WebKit::WebWorkerBase::workerContextDestroyedTask):
614         (WebKit::WebWorkerBase::postTaskToLoader):
615         (WebKit::WebWorkerBase::postTaskForModeToWorkerContext):
616         * src/WebWorkerBase.h:
617         (WebKit::WebWorkerBase::view):
618         (WebKit::WebWorkerBase::setWorkerThread):
619         (WebKit::WebWorkerBase::workerThread):
620         * src/WebWorkerClientImpl.cpp:
621         * src/WebWorkerClientImpl.h:
622         (WebKit::WebWorkerClientImpl::newCommonClient):
623         * src/WebWorkerImpl.cpp: Added.
624         (WebKit::WebWorker::create):
625         (WebKit::WebWorkerImpl::WebWorkerImpl):
626         (WebKit::WebWorkerImpl::~WebWorkerImpl):
627         (WebKit::WebWorkerImpl::newCommonClient):
628         (WebKit::WebWorkerImpl::commonClient):
629         (WebKit::WebWorkerImpl::postMessageToWorkerContextTask):
630         (WebKit::WebWorkerImpl::startWorkerContext):
631         (WebKit::WebWorkerImpl::terminateWorkerContext):
632         (WebKit::WebWorkerImpl::postMessageToWorkerContext):
633         (WebKit::WebWorkerImpl::workerObjectDestroyed):
634         (WebKit::WebWorkerImpl::clientDestroyed):
635         * src/WebWorkerImpl.h: Copied from Source/WebKit/chromium/src/WebWorkerBase.cpp.
636         (WebKit::WebWorkerImpl::client):
637         * src/WorkerFileSystemCallbacksBridge.cpp:
638         (WebKit::WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread):
639         (WebKit::WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread):
640         * src/WorkerFileSystemCallbacksBridge.h:
641
642 2011-12-28  Dmitry Lomov  <dslomov@google.com>
643
644         [WebWorkers][Chromium] Remove remains of cross-process dedicated worker implementation.
645         https://bugs.webkit.org/show_bug.cgi?id=66509
646         Just renames, merges and removal of dead code. Here are the list of renames:
647           - WebCommonWorkerClient merged with WebWorkerClient and renamed to WebSharedWorkerClient
648           - NewWebCommonWorkerClient renamed to WebCommonWorkerClient
649           - WebWorkerBase merged into WebSharedWorkerImpl
650           - NewWebWorkerBase renamed into WebWorkerBase
651         WebWorkerClient.h has a "#define WebWorkerClient WebSharedWorkerClient" to keep chromium building.
652         Will be removed after coordinated patch in chromium.
653
654         Reviewed by David Levin.
655
656         * WebKit.gyp:
657         * public/WebCommonWorkerClient.h:
658         * public/WebSharedWorker.h:
659         * public/WebSharedWorkerClient.h: Copied from Source/WebKit/chromium/public/WebCommonWorkerClient.h.
660         (WebKit::WebSharedWorkerClient::postConsoleMessageToWorkerObject):
661         (WebKit::WebSharedWorkerClient::allowFileSystem):
662         (WebKit::WebSharedWorkerClient::openFileSystem):
663         (WebKit::WebSharedWorkerClient::dispatchDevToolsMessage):
664         (WebKit::WebSharedWorkerClient::saveDevToolsAgentState):
665         (WebKit::WebSharedWorkerClient::~WebSharedWorkerClient):
666         * public/WebWorkerClient.h:
667         * src/DatabaseObserver.cpp:
668         (WebKit::AllowDatabaseMainThreadBridge::create):
669         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
670         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask):
671         (WebKit::allowDatabaseForWorker):
672         (WebCore::DatabaseObserver::canEstablishDatabase):
673         * src/IDBFactoryBackendProxy.cpp:
674         (WebKit::IDBFactoryBackendProxy::openFromWorker):
675         * src/LocalFileSystemChromium.cpp:
676         (WebCore::openFileSystemHelper):
677         * src/WebSharedWorkerImpl.cpp:
678         (WebKit::initializeWebKitStaticValues):
679         (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
680         (WebKit::WebSharedWorkerImpl::~WebSharedWorkerImpl):
681         (WebKit::WebSharedWorkerImpl::stopWorkerThread):
682         (WebKit::WebSharedWorkerImpl::initializeLoader):
683         (WebKit::WebSharedWorkerImpl::didCreateDataSource):
684         (WebKit::WebSharedWorkerImpl::createApplicationCacheHost):
685         (WebKit::WebSharedWorkerImpl::postMessageToWorkerObject):
686         (WebKit::WebSharedWorkerImpl::postMessageTask):
687         (WebKit::WebSharedWorkerImpl::postExceptionToWorkerObject):
688         (WebKit::WebSharedWorkerImpl::postExceptionTask):
689         (WebKit::WebSharedWorkerImpl::postConsoleMessageToWorkerObject):
690         (WebKit::WebSharedWorkerImpl::postConsoleMessageTask):
691         (WebKit::WebSharedWorkerImpl::postMessageToPageInspector):
692         (WebKit::WebSharedWorkerImpl::postMessageToPageInspectorTask):
693         (WebKit::WebSharedWorkerImpl::updateInspectorStateCookie):
694         (WebKit::WebSharedWorkerImpl::updateInspectorStateCookieTask):
695         (WebKit::WebSharedWorkerImpl::confirmMessageFromWorkerObject):
696         (WebKit::WebSharedWorkerImpl::confirmMessageTask):
697         (WebKit::WebSharedWorkerImpl::reportPendingActivity):
698         (WebKit::WebSharedWorkerImpl::reportPendingActivityTask):
699         (WebKit::WebSharedWorkerImpl::workerContextClosed):
700         (WebKit::WebSharedWorkerImpl::workerContextClosedTask):
701         (WebKit::WebSharedWorkerImpl::workerContextDestroyed):
702         (WebKit::WebSharedWorkerImpl::workerContextDestroyedTask):
703         (WebKit::WebSharedWorkerImpl::postTaskToLoader):
704         (WebKit::WebSharedWorkerImpl::postTaskForModeToWorkerContext):
705         (WebKit::WebSharedWorker::create):
706         * src/WebSharedWorkerImpl.h:
707         (WebKit::WebSharedWorkerImpl::view):
708         (WebKit::WebSharedWorkerImpl::commonClient):
709         (WebKit::WebSharedWorkerImpl::client):
710         (WebKit::WebSharedWorkerImpl::setWorkerThread):
711         (WebKit::WebSharedWorkerImpl::workerThread):
712         * src/WebWorkerBase.cpp:
713         (WebKit::invokeTaskMethod):
714         (WebKit::WebWorkerBase::dispatchTaskToMainThread):
715         * src/WebWorkerBase.h:
716         * src/WebWorkerClientImpl.cpp:
717         * src/WebWorkerClientImpl.h:
718         (WebKit::WebWorkerClientImpl::commonClient):
719         * src/WebWorkerImpl.cpp: Removed.
720         * src/WebWorkerImpl.h: Removed.
721         * src/WorkerFileSystemCallbacksBridge.cpp:
722         (WebKit::WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread):
723         (WebKit::WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread):
724         * src/WorkerFileSystemCallbacksBridge.h:
725
726 2011-12-28  Sheriff Bot  <webkit.review.bot@gmail.com>
727
728         Unreviewed, rolling out r103620.
729         http://trac.webkit.org/changeset/103620
730         https://bugs.webkit.org/show_bug.cgi?id=75316
731
732         Causes many crashes (Requested by abarth on #webkit).
733
734         * public/WebDOMMessageEvent.h:
735         * public/WebFrameClient.h:
736         * src/FrameLoaderClientImpl.cpp:
737         * src/FrameLoaderClientImpl.h:
738
739 2011-12-27  Sheriff Bot  <webkit.review.bot@gmail.com>
740
741         Unreviewed, rolling out r103734.
742         http://trac.webkit.org/changeset/103734
743         https://bugs.webkit.org/show_bug.cgi?id=75278
744
745         Broke cr-mac (Requested by dslomov on #webkit).
746
747         * WebKit.gyp:
748         * public/WebCommonWorkerClient.h:
749         (WebKit::WebCommonWorkerClient::postConsoleMessageToWorkerObject):
750         (WebKit::WebCommonWorkerClient::allowFileSystem):
751         (WebKit::WebCommonWorkerClient::openFileSystem):
752         (WebKit::WebCommonWorkerClient::dispatchDevToolsMessage):
753         (WebKit::WebCommonWorkerClient::saveDevToolsAgentState):
754         (WebKit::WebCommonWorkerClient::~WebCommonWorkerClient):
755         * public/WebFrameClient.h:
756         (WebKit::WebFrameClient::createWorker):
757         * public/WebSharedWorker.h:
758         * public/WebSharedWorkerClient.h: Removed.
759         * public/WebWorkerClient.h:
760         (WebKit::WebWorkerClient::~WebWorkerClient):
761         * src/DatabaseObserver.cpp:
762         (WebKit::AllowDatabaseMainThreadBridge::create):
763         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
764         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask):
765         (WebKit::allowDatabaseForWorker):
766         (WebCore::DatabaseObserver::canEstablishDatabase):
767         * src/IDBFactoryBackendProxy.cpp:
768         (WebKit::IDBFactoryBackendProxy::openFromWorker):
769         * src/LocalFileSystemChromium.cpp:
770         (WebCore::openFileSystemHelper):
771         * src/WebSharedWorkerImpl.cpp:
772         (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
773         (WebKit::WebSharedWorkerImpl::~WebSharedWorkerImpl):
774         (WebKit::WebSharedWorkerImpl::client):
775         (WebKit::WebSharedWorker::create):
776         * src/WebSharedWorkerImpl.h:
777         (WebKit::WebSharedWorkerImpl::commonClient):
778         (WebKit::WebSharedWorkerImpl::newCommonClient):
779         * src/WebWorkerBase.cpp:
780         (WebKit::initializeWebKitStaticValues):
781         (WebKit::WebWorkerBase::WebWorkerBase):
782         (WebKit::WebWorkerBase::~WebWorkerBase):
783         (WebKit::WebWorkerBase::stopWorkerThread):
784         (WebKit::WebWorkerBase::initializeLoader):
785         (WebKit::WebWorkerBase::dispatchTaskToMainThread):
786         (WebKit::WebWorkerBase::invokeTaskMethod):
787         (WebKit::WebWorkerBase::didCreateDataSource):
788         (WebKit::WebWorkerBase::createApplicationCacheHost):
789         (WebKit::WebWorkerBase::postMessageToWorkerObject):
790         (WebKit::WebWorkerBase::postMessageTask):
791         (WebKit::WebWorkerBase::postExceptionToWorkerObject):
792         (WebKit::WebWorkerBase::postExceptionTask):
793         (WebKit::WebWorkerBase::postConsoleMessageToWorkerObject):
794         (WebKit::WebWorkerBase::postConsoleMessageTask):
795         (WebKit::WebWorkerBase::postMessageToPageInspector):
796         (WebKit::WebWorkerBase::postMessageToPageInspectorTask):
797         (WebKit::WebWorkerBase::updateInspectorStateCookie):
798         (WebKit::WebWorkerBase::updateInspectorStateCookieTask):
799         (WebKit::WebWorkerBase::confirmMessageFromWorkerObject):
800         (WebKit::WebWorkerBase::confirmMessageTask):
801         (WebKit::WebWorkerBase::reportPendingActivity):
802         (WebKit::WebWorkerBase::reportPendingActivityTask):
803         (WebKit::WebWorkerBase::workerContextClosed):
804         (WebKit::WebWorkerBase::workerContextClosedTask):
805         (WebKit::WebWorkerBase::workerContextDestroyed):
806         (WebKit::WebWorkerBase::workerContextDestroyedTask):
807         (WebKit::WebWorkerBase::postTaskToLoader):
808         (WebKit::WebWorkerBase::postTaskForModeToWorkerContext):
809         * src/WebWorkerBase.h:
810         (WebKit::WebWorkerBase::view):
811         (WebKit::WebWorkerBase::setWorkerThread):
812         (WebKit::WebWorkerBase::workerThread):
813         * src/WebWorkerClientImpl.cpp:
814         * src/WebWorkerClientImpl.h:
815         (WebKit::WebWorkerClientImpl::newCommonClient):
816         * src/WebWorkerImpl.cpp: Added.
817         (WebKit::WebWorker::create):
818         (WebKit::WebWorkerImpl::WebWorkerImpl):
819         (WebKit::WebWorkerImpl::~WebWorkerImpl):
820         (WebKit::WebWorkerImpl::newCommonClient):
821         (WebKit::WebWorkerImpl::commonClient):
822         (WebKit::WebWorkerImpl::postMessageToWorkerContextTask):
823         (WebKit::WebWorkerImpl::startWorkerContext):
824         (WebKit::WebWorkerImpl::terminateWorkerContext):
825         (WebKit::WebWorkerImpl::postMessageToWorkerContext):
826         (WebKit::WebWorkerImpl::workerObjectDestroyed):
827         (WebKit::WebWorkerImpl::clientDestroyed):
828         * src/WebWorkerImpl.h: Copied from Source/WebKit/chromium/src/WebWorkerBase.cpp.
829         (WebKit::WebWorkerImpl::client):
830         * src/WorkerFileSystemCallbacksBridge.cpp:
831         (WebKit::WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread):
832         (WebKit::WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread):
833         * src/WorkerFileSystemCallbacksBridge.h:
834
835 2011-12-27  Dmitry Lomov  <dslomov@google.com>
836
837         [WebWorkers][Chromium] Remove remains of cross-process dedicated worker implementation.
838         https://bugs.webkit.org/show_bug.cgi?id=66509
839         Just renames, merges and removal of dead code. Here are the list of renames:
840           - WebCommonWorkerClient merged with WebWorkerClient and renamed to WebSharedWorkerClient
841           - NewWebCommonWorkerClient renamed to WebCommonWorkerClient
842           - WebWorkerBase merged into WebSharedWorkerImpl
843           - NewWebWorkerBase renamed into WebWorkerBase
844         WebWorkerClient.h has a "#define WebWorkerClient WebSharedWorkerClient" to keep chromium building.
845         Will be removed after coordinated patch in chromium.
846
847         Reviewed by David Levin.
848
849         * WebKit.gyp:
850         * public/WebCommonWorkerClient.h:
851         * public/WebSharedWorker.h:
852         * public/WebSharedWorkerClient.h: Copied from Source/WebKit/chromium/public/WebCommonWorkerClient.h.
853         (WebKit::WebSharedWorkerClient::postConsoleMessageToWorkerObject):
854         (WebKit::WebSharedWorkerClient::allowFileSystem):
855         (WebKit::WebSharedWorkerClient::openFileSystem):
856         (WebKit::WebSharedWorkerClient::dispatchDevToolsMessage):
857         (WebKit::WebSharedWorkerClient::saveDevToolsAgentState):
858         (WebKit::WebSharedWorkerClient::~WebSharedWorkerClient):
859         * public/WebWorkerClient.h:
860         * src/DatabaseObserver.cpp:
861         (WebKit::AllowDatabaseMainThreadBridge::create):
862         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
863         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask):
864         (WebKit::allowDatabaseForWorker):
865         (WebCore::DatabaseObserver::canEstablishDatabase):
866         * src/IDBFactoryBackendProxy.cpp:
867         (WebKit::IDBFactoryBackendProxy::openFromWorker):
868         * src/LocalFileSystemChromium.cpp:
869         (WebCore::openFileSystemHelper):
870         * src/WebSharedWorkerImpl.cpp:
871         (WebKit::initializeWebKitStaticValues):
872         (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
873         (WebKit::WebSharedWorkerImpl::~WebSharedWorkerImpl):
874         (WebKit::WebSharedWorkerImpl::stopWorkerThread):
875         (WebKit::WebSharedWorkerImpl::initializeLoader):
876         (WebKit::WebSharedWorkerImpl::didCreateDataSource):
877         (WebKit::WebSharedWorkerImpl::createApplicationCacheHost):
878         (WebKit::WebSharedWorkerImpl::postMessageToWorkerObject):
879         (WebKit::WebSharedWorkerImpl::postMessageTask):
880         (WebKit::WebSharedWorkerImpl::postExceptionToWorkerObject):
881         (WebKit::WebSharedWorkerImpl::postExceptionTask):
882         (WebKit::WebSharedWorkerImpl::postConsoleMessageToWorkerObject):
883         (WebKit::WebSharedWorkerImpl::postConsoleMessageTask):
884         (WebKit::WebSharedWorkerImpl::postMessageToPageInspector):
885         (WebKit::WebSharedWorkerImpl::postMessageToPageInspectorTask):
886         (WebKit::WebSharedWorkerImpl::updateInspectorStateCookie):
887         (WebKit::WebSharedWorkerImpl::updateInspectorStateCookieTask):
888         (WebKit::WebSharedWorkerImpl::confirmMessageFromWorkerObject):
889         (WebKit::WebSharedWorkerImpl::confirmMessageTask):
890         (WebKit::WebSharedWorkerImpl::reportPendingActivity):
891         (WebKit::WebSharedWorkerImpl::reportPendingActivityTask):
892         (WebKit::WebSharedWorkerImpl::workerContextClosed):
893         (WebKit::WebSharedWorkerImpl::workerContextClosedTask):
894         (WebKit::WebSharedWorkerImpl::workerContextDestroyed):
895         (WebKit::WebSharedWorkerImpl::workerContextDestroyedTask):
896         (WebKit::WebSharedWorkerImpl::postTaskToLoader):
897         (WebKit::WebSharedWorkerImpl::postTaskForModeToWorkerContext):
898         (WebKit::WebSharedWorker::create):
899         * src/WebSharedWorkerImpl.h:
900         (WebKit::WebSharedWorkerImpl::view):
901         (WebKit::WebSharedWorkerImpl::commonClient):
902         (WebKit::WebSharedWorkerImpl::client):
903         (WebKit::WebSharedWorkerImpl::setWorkerThread):
904         (WebKit::WebSharedWorkerImpl::workerThread):
905         * src/WebWorkerBase.cpp:
906         (WebKit::invokeTaskMethod):
907         (WebKit::WebWorkerBase::dispatchTaskToMainThread):
908         * src/WebWorkerBase.h:
909         * src/WebWorkerClientImpl.cpp:
910         * src/WebWorkerClientImpl.h:
911         (WebKit::WebWorkerClientImpl::commonClient):
912         * src/WebWorkerImpl.cpp: Removed.
913         * src/WebWorkerImpl.h: Removed.
914         * src/WorkerFileSystemCallbacksBridge.cpp:
915         (WebKit::WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread):
916         (WebKit::WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread):
917         * src/WorkerFileSystemCallbacksBridge.h:
918
919 2011-12-27  Tony Chang  <tony@chromium.org>
920
921         [chromium] Minor cleanup of gyp files.
922         https://bugs.webkit.org/show_bug.cgi?id=75269
923
924         Reviewed by Adam Barth.
925
926         * WebKit.gyp: msvs_guid is no longer needed.
927
928 2011-12-27  Tony Chang  <tony@chromium.org>
929
930         [chromium] When building with clang, enable -Wglobal-constructors
931         https://bugs.webkit.org/show_bug.cgi?id=74365
932
933         Reviewed by Adam Barth.
934
935         * WebKit.gyp: Only add it to the webkit target.  I got errors when
936         trying to compile webkit_unit_tests.
937
938 2011-12-24  Ryosuke Niwa  <rniwa@webkit.org>
939
940         Unreviewed, rolling out r103619.
941         http://trac.webkit.org/changeset/103619
942         https://bugs.webkit.org/show_bug.cgi?id=66509
943
944         Broke chromium clang build
945
946         * WebKit.gyp:
947         * public/WebCommonWorkerClient.h:
948         (WebKit::WebCommonWorkerClient::postConsoleMessageToWorkerObject):
949         (WebKit::WebCommonWorkerClient::allowFileSystem):
950         (WebKit::WebCommonWorkerClient::openFileSystem):
951         (WebKit::WebCommonWorkerClient::dispatchDevToolsMessage):
952         (WebKit::WebCommonWorkerClient::saveDevToolsAgentState):
953         (WebKit::WebCommonWorkerClient::~WebCommonWorkerClient):
954         * public/WebSharedWorker.h:
955         * public/WebSharedWorkerClient.h: Removed.
956         * public/WebWorkerClient.h:
957         (WebKit::WebWorkerClient::~WebWorkerClient):
958         * src/DatabaseObserver.cpp:
959         (WebKit::AllowDatabaseMainThreadBridge::create):
960         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
961         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask):
962         (WebKit::allowDatabaseForWorker):
963         (WebCore::DatabaseObserver::canEstablishDatabase):
964         * src/IDBFactoryBackendProxy.cpp:
965         (WebKit::IDBFactoryBackendProxy::openFromWorker):
966         * src/LocalFileSystemChromium.cpp:
967         (WebCore::openFileSystemHelper):
968         * src/WebSharedWorkerImpl.cpp:
969         (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
970         (WebKit::WebSharedWorkerImpl::~WebSharedWorkerImpl):
971         (WebKit::WebSharedWorkerImpl::client):
972         (WebKit::WebSharedWorker::create):
973         * src/WebSharedWorkerImpl.h:
974         (WebKit::WebSharedWorkerImpl::commonClient):
975         (WebKit::WebSharedWorkerImpl::newCommonClient):
976         * src/WebWorkerBase.cpp:
977         (WebKit::initializeWebKitStaticValues):
978         (WebKit::WebWorkerBase::WebWorkerBase):
979         (WebKit::WebWorkerBase::~WebWorkerBase):
980         (WebKit::WebWorkerBase::stopWorkerThread):
981         (WebKit::WebWorkerBase::initializeLoader):
982         (WebKit::WebWorkerBase::dispatchTaskToMainThread):
983         (WebKit::WebWorkerBase::invokeTaskMethod):
984         (WebKit::WebWorkerBase::didCreateDataSource):
985         (WebKit::WebWorkerBase::createApplicationCacheHost):
986         (WebKit::WebWorkerBase::postMessageToWorkerObject):
987         (WebKit::WebWorkerBase::postMessageTask):
988         (WebKit::WebWorkerBase::postExceptionToWorkerObject):
989         (WebKit::WebWorkerBase::postExceptionTask):
990         (WebKit::WebWorkerBase::postConsoleMessageToWorkerObject):
991         (WebKit::WebWorkerBase::postConsoleMessageTask):
992         (WebKit::WebWorkerBase::postMessageToPageInspector):
993         (WebKit::WebWorkerBase::postMessageToPageInspectorTask):
994         (WebKit::WebWorkerBase::updateInspectorStateCookie):
995         (WebKit::WebWorkerBase::updateInspectorStateCookieTask):
996         (WebKit::WebWorkerBase::confirmMessageFromWorkerObject):
997         (WebKit::WebWorkerBase::confirmMessageTask):
998         (WebKit::WebWorkerBase::reportPendingActivity):
999         (WebKit::WebWorkerBase::reportPendingActivityTask):
1000         (WebKit::WebWorkerBase::workerContextClosed):
1001         (WebKit::WebWorkerBase::workerContextClosedTask):
1002         (WebKit::WebWorkerBase::workerContextDestroyed):
1003         (WebKit::WebWorkerBase::workerContextDestroyedTask):
1004         (WebKit::WebWorkerBase::postTaskToLoader):
1005         (WebKit::WebWorkerBase::postTaskForModeToWorkerContext):
1006         * src/WebWorkerBase.h:
1007         (WebKit::WebWorkerBase::view):
1008         (WebKit::WebWorkerBase::setWorkerThread):
1009         (WebKit::WebWorkerBase::workerThread):
1010         * src/WebWorkerClientImpl.cpp:
1011         * src/WebWorkerClientImpl.h:
1012         (WebKit::WebWorkerClientImpl::newCommonClient):
1013         * src/WebWorkerImpl.cpp: Added.
1014         (WebKit::WebWorker::create):
1015         (WebKit::WebWorkerImpl::WebWorkerImpl):
1016         (WebKit::WebWorkerImpl::~WebWorkerImpl):
1017         (WebKit::WebWorkerImpl::newCommonClient):
1018         (WebKit::WebWorkerImpl::commonClient):
1019         (WebKit::WebWorkerImpl::postMessageToWorkerContextTask):
1020         (WebKit::WebWorkerImpl::startWorkerContext):
1021         (WebKit::WebWorkerImpl::terminateWorkerContext):
1022         (WebKit::WebWorkerImpl::postMessageToWorkerContext):
1023         (WebKit::WebWorkerImpl::workerObjectDestroyed):
1024         (WebKit::WebWorkerImpl::clientDestroyed):
1025         * src/WebWorkerImpl.h: Copied from Source/WebKit/chromium/src/WebWorkerBase.cpp.
1026         (WebKit::WebWorkerImpl::client):
1027         * src/WorkerFileSystemCallbacksBridge.cpp:
1028         (WebKit::WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread):
1029         (WebKit::WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread):
1030         * src/WorkerFileSystemCallbacksBridge.h:
1031
1032 2011-12-23  Sam Weinig  <sam@webkit.org>
1033
1034         Start extracting platform specific bits out of PlatformEvents
1035         https://bugs.webkit.org/show_bug.cgi?id=75063
1036
1037         Reviewed by Anders Carlsson.
1038
1039         * src/WebInputEventConversion.cpp:
1040         (WebKit::PlatformMouseEventBuilder::PlatformMouseEventBuilder):
1041         (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
1042         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1043         (WebKit::PlatformKeyboardEventBuilder::PlatformKeyboardEventBuilder):
1044         (WebKit::PlatformTouchEventBuilder::PlatformTouchEventBuilder):
1045
1046 2011-12-23  Ryosuke Niwa  <rniwa@webkit.org>
1047
1048         Chromium Chromium DEPS from 115012 to 115743.
1049
1050         * DEPS:
1051
1052 2011-12-23  Karl Koscher  <supersat@chromium.org>
1053
1054         Give embedders a chance to handle postMessage calls
1055         https://bugs.webkit.org/show_bug.cgi?id=73883
1056
1057         Reviewed by Adam Barth.
1058
1059         * public/WebFrameClient.h:
1060         (WebKit::WebFrameClient::willCheckAndDispatchMessageEvent): 
1061             interface to give the embedder a chance to handle this postMessage call
1062         * src/FrameLoaderClientImpl.cpp:
1063         (WebKit::FrameLoaderClientImpl::willCheckAndDispatchMessageEvent): Call 
1064             willCheckAndDispatchMessageEvent on WebFrameClient
1065         * src/FrameLoaderClientImpl.h:
1066
1067 2011-12-23  Dmitry Lomov  <dslomov@google.com>
1068
1069         [WebWorkers][Chromium] Remove remains of cross-process dedicated worker implementation.
1070         https://bugs.webkit.org/show_bug.cgi?id=66509
1071         Just renames, merges and removal of dead code. Here are the list of renames:
1072           - WebCommonWorkerClient merged with WebWorkerClient and renamed to WebSharedWorkerClient
1073           - NewWebCommonWorkerClient renamed to WebCommonWorkerClient
1074           - WebWorkerBase merged into WebSharedWorkerImpl
1075           - NewWebWorkerBase renamed into WebWorkerBase
1076         WebWorkerClient.h has a "#define WebWorkerClient WebSharedWorkerClient" to keep chromium building.
1077         Will be removed after coordinated patch in chromium.
1078
1079         Reviewed by David Levin.
1080
1081         * WebKit.gyp:
1082         * public/WebCommonWorkerClient.h:
1083         * public/WebSharedWorker.h:
1084         * public/WebSharedWorkerClient.h: Copied from Source/WebKit/chromium/public/WebCommonWorkerClient.h.
1085         (WebKit::WebSharedWorkerClient::postConsoleMessageToWorkerObject):
1086         (WebKit::WebSharedWorkerClient::allowFileSystem):
1087         (WebKit::WebSharedWorkerClient::openFileSystem):
1088         (WebKit::WebSharedWorkerClient::dispatchDevToolsMessage):
1089         (WebKit::WebSharedWorkerClient::saveDevToolsAgentState):
1090         (WebKit::WebSharedWorkerClient::~WebSharedWorkerClient):
1091         * public/WebWorkerClient.h:
1092         * src/DatabaseObserver.cpp:
1093         (WebKit::AllowDatabaseMainThreadBridge::create):
1094         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
1095         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask):
1096         (WebKit::allowDatabaseForWorker):
1097         (WebCore::DatabaseObserver::canEstablishDatabase):
1098         * src/IDBFactoryBackendProxy.cpp:
1099         (WebKit::IDBFactoryBackendProxy::openFromWorker):
1100         * src/LocalFileSystemChromium.cpp:
1101         (WebCore::openFileSystemHelper):
1102         * src/WebSharedWorkerImpl.cpp:
1103         (WebKit::initializeWebKitStaticValues):
1104         (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
1105         (WebKit::WebSharedWorkerImpl::~WebSharedWorkerImpl):
1106         (WebKit::WebSharedWorkerImpl::stopWorkerThread):
1107         (WebKit::WebSharedWorkerImpl::initializeLoader):
1108         (WebKit::WebSharedWorkerImpl::didCreateDataSource):
1109         (WebKit::WebSharedWorkerImpl::createApplicationCacheHost):
1110         (WebKit::WebSharedWorkerImpl::postMessageToWorkerObject):
1111         (WebKit::WebSharedWorkerImpl::postMessageTask):
1112         (WebKit::WebSharedWorkerImpl::postExceptionToWorkerObject):
1113         (WebKit::WebSharedWorkerImpl::postExceptionTask):
1114         (WebKit::WebSharedWorkerImpl::postConsoleMessageToWorkerObject):
1115         (WebKit::WebSharedWorkerImpl::postConsoleMessageTask):
1116         (WebKit::WebSharedWorkerImpl::postMessageToPageInspector):
1117         (WebKit::WebSharedWorkerImpl::postMessageToPageInspectorTask):
1118         (WebKit::WebSharedWorkerImpl::updateInspectorStateCookie):
1119         (WebKit::WebSharedWorkerImpl::updateInspectorStateCookieTask):
1120         (WebKit::WebSharedWorkerImpl::confirmMessageFromWorkerObject):
1121         (WebKit::WebSharedWorkerImpl::confirmMessageTask):
1122         (WebKit::WebSharedWorkerImpl::reportPendingActivity):
1123         (WebKit::WebSharedWorkerImpl::reportPendingActivityTask):
1124         (WebKit::WebSharedWorkerImpl::workerContextClosed):
1125         (WebKit::WebSharedWorkerImpl::workerContextClosedTask):
1126         (WebKit::WebSharedWorkerImpl::workerContextDestroyed):
1127         (WebKit::WebSharedWorkerImpl::workerContextDestroyedTask):
1128         (WebKit::WebSharedWorkerImpl::postTaskToLoader):
1129         (WebKit::WebSharedWorkerImpl::postTaskForModeToWorkerContext):
1130         (WebKit::WebSharedWorker::create):
1131         * src/WebSharedWorkerImpl.h:
1132         (WebKit::WebSharedWorkerImpl::view):
1133         (WebKit::WebSharedWorkerImpl::commonClient):
1134         (WebKit::WebSharedWorkerImpl::client):
1135         (WebKit::WebSharedWorkerImpl::setWorkerThread):
1136         (WebKit::WebSharedWorkerImpl::workerThread):
1137         * src/WebWorkerBase.cpp:
1138         (WebKit::invokeTaskMethod):
1139         (WebKit::WebWorkerBase::dispatchTaskToMainThread):
1140         * src/WebWorkerBase.h:
1141         * src/WebWorkerClientImpl.cpp:
1142         * src/WebWorkerClientImpl.h:
1143         (WebKit::WebWorkerClientImpl::commonClient):
1144         * src/WebWorkerImpl.cpp: Removed.
1145         * src/WebWorkerImpl.h: Removed.
1146         * src/WorkerFileSystemCallbacksBridge.cpp:
1147         (WebKit::WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread):
1148         (WebKit::WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread):
1149         * src/WorkerFileSystemCallbacksBridge.h:
1150
1151 2011-12-23  Bill Budge  <bbudge@chromium.org>
1152
1153         Add unit tests for AssociatedURLLoader to check redirect handling and
1154         cross-origin access control.
1155         https://bugs.webkit.org/show_bug.cgi?id=74952
1156
1157         Reviewed by Adam Barth.
1158
1159         * tests/AssociatedURLLoaderTest.cpp:
1160
1161 2011-12-22  Chris Rogers  <crogers@google.com>
1162
1163         WebMediaPlayerClientImpl::AudioClientImpl wrapper object should exist only if wrapped object exists
1164         https://bugs.webkit.org/show_bug.cgi?id=75113
1165
1166         Reviewed by Kenneth Russell.
1167
1168         * src/WebMediaPlayerClientImpl.cpp:
1169         (WebKit::WebMediaPlayerClientImpl::AudioSourceProviderImpl::wrap):
1170         (WebKit::WebMediaPlayerClientImpl::AudioSourceProviderImpl::setClient):
1171         * src/WebMediaPlayerClientImpl.h:
1172         (WebKit::WebMediaPlayerClientImpl::AudioClientImpl::AudioClientImpl):
1173
1174 2011-12-21  Peter Kotwicz  <pkotwicz@google.com>
1175
1176         Plumbs refresh rate through WebLayerTreeView::Settings
1177         https://bugs.webkit.org/show_bug.cgi?id=74884
1178
1179         Reviewed by James Robinson.
1180
1181         * public/platform/WebLayerTreeView.h:
1182         (WebKit::WebLayerTreeView::Settings::Settings):
1183         * src/WebLayerTreeView.cpp:
1184         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
1185
1186 2011-12-20  Andrey Kosyakov  <caseq@chromium.org>
1187
1188         Web Inspector: [Extension API] refactor extension API build code, expose experimental APIs conditionally in chromium
1189         https://bugs.webkit.org/show_bug.cgi?id=74941
1190
1191         Reviewed by Pavel Feldman.
1192
1193         * WebKit.gyp:
1194         * WebKit.gypi:
1195         * scripts/concatenate_js_files.py:
1196         (main):
1197         * scripts/generate_devtools_extension_api.py:
1198         (write_devtools_extension_api):
1199         * src/js/DevTools.js:
1200         ():
1201
1202 2011-12-20  Nate Chapin  <japhet@chromium.org>
1203
1204         Revert code for r96912 and r101905, since they cause
1205         regressions in mac scrollbars, caret display in
1206         form fields, etc.
1207         https://bugs.webkit.org/show_bug.cgi?id=74939
1208
1209         Reviewed by Eric Seidel.
1210
1211         * src/WebViewImpl.cpp:
1212         (WebKit::WebViewImpl::setFocus):
1213
1214 2011-12-20  Mike Reed  <reed@google.com>
1215
1216         enable USE_SKIA_TEXT by default, replacing GDI for all text drawing
1217         https://bugs.webkit.org/show_bug.cgi?id=74928
1218
1219         Reviewed by Stephen White.
1220
1221         * features.gypi:
1222
1223 2011-12-20  Greg Billock  <gbillock@google.com>
1224
1225         Make WebIntentServiceInfo constructor public for testing.
1226         https://bugs.webkit.org/show_bug.cgi?id=74764
1227
1228         Reviewed by Darin Fisher.
1229
1230         * public/WebIntentServiceInfo.h:
1231
1232 2011-12-19  James Robinson  <jamesr@chromium.org>
1233
1234         Compile fix for chromium on windows due to collision of testing::NotNull from gtest and NotNull from Vector.h
1235
1236         * tests/WebLayerTest.cpp:
1237
1238 2011-12-19  Ami Fischman  <fischman@chromium.org>
1239
1240         Teach VideoLayerChromium how to render native texture (to support HW video decode).
1241         https://bugs.webkit.org/show_bug.cgi?id=73043
1242         
1243         Reviewed by James Robinson.
1244         
1245         Fix the life-cycle of video frames handled by VideoLayerChromium/CCVideoLayerImpl.
1246         VideoFrameProvider::{get,put}CurrentFrame provide lease semantics.  Previously
1247         VideoLayerChromium would acquire the lease for the duration of copying the frame,
1248         even if that was only a texture ID, and immediately return the lease, while
1249         CCVideoLayerImpl::draw() would come along later and use the (no-longer locked)
1250         texture optimistically.  This change makes it so that CCVideoLayerImpl holds
1251         the frame's lease for the duration of draw(), guaranteeing the frame is valid to read.
1252
1253         * src/WebMediaPlayerClientImpl.cpp:
1254         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
1255
1256 2011-12-19  Sam Weinig  <sam@webkit.org>
1257
1258         More PlatformEvent cleanup
1259         https://bugs.webkit.org/show_bug.cgi?id=74831
1260
1261         Reviewed by Dan Bernstein.
1262
1263         * src/WebViewImpl.cpp:
1264         (WebKit::WebViewImpl::mouseContextMenu):
1265         Update to use new names, access style.
1266
1267 2011-12-19  James Robinson  <jamesr@chromium.org>
1268
1269         [chromium] CCLayerDelegate and WebLayerClient do not need notifySyncRequired
1270         https://bugs.webkit.org/show_bug.cgi?id=74376
1271
1272         Reviewed by Kenneth Russell.
1273
1274         WebLayerClient::notifyNeedsComposite() is an odd interface for the same reason that
1275         CCLayerDelegate::notifySyncRequired() is - all scheduling decisions should route through the WebLayerTreeView,
1276         not individual layers. In practice, all implementations of WebLayerClient::notifySyncRequired() do the exact
1277         same thing as WebLayerTreeView::scheduleComposite(). This removes that callback, making WebLayerClient an empty
1278         interface, and routes all calls that would go to that interface to WebLayerTreeView::scheduleComposite().
1279
1280         Once downstream implementations of WebLayerClient are removed, WebLayerClient.h and the constructors associated
1281         with it can be deleted.
1282
1283         The bulk of the changes here are to the test harness. Many tests that were designed around notifySyncRequired()
1284         are rewritten to check for CCLayerTreeHost::setNeedsCommit() or WebLayerTreeView::scheduleComposite() instead.
1285         In a few instances, this required changing the setup logic around somewhat so that the layers being manipulated
1286         were in a tree that initialized without errors.
1287
1288         * WebKit.gypi:
1289         * public/platform/WebContentLayer.h:
1290         * public/platform/WebExternalTextureLayer.h:
1291         * public/platform/WebLayer.h:
1292         * public/platform/WebLayerClient.h:
1293         * src/WebContentLayer.cpp:
1294         (WebKit::WebContentLayer::create):
1295         * src/WebContentLayerImpl.cpp:
1296         (WebKit::WebContentLayerImpl::create):
1297         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
1298         * src/WebContentLayerImpl.h:
1299         * src/WebExternalTextureLayer.cpp:
1300         (WebKit::WebExternalTextureLayer::create):
1301         * src/WebExternalTextureLayerImpl.cpp:
1302         (WebKit::WebExternalTextureLayerImpl::create):
1303         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
1304         * src/WebExternalTextureLayerImpl.h:
1305         * src/WebLayer.cpp:
1306         (WebKit::WebLayer::create):
1307         * src/WebLayerImpl.cpp:
1308         (WebKit::WebLayerImpl::create):
1309         (WebKit::WebLayerImpl::WebLayerImpl):
1310         * src/WebLayerImpl.h:
1311         * src/WebLayerTreeViewImpl.cpp:
1312         (WebKit::WebLayerTreeViewImpl::create):
1313         (WebKit::WebLayerTreeViewImpl::WebLayerTreeViewImpl):
1314         * src/WebLayerTreeViewImpl.h:
1315         * tests/CCLayerTreeHostTest.cpp:
1316         (WTF::MockLayerTreeHost::create):
1317         (WTF::MockLayerTreeHost::MockLayerTreeHost):
1318         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
1319         (WTF::CCLayerTreeHostTestScrollSimple::animateAndLayout):
1320         * tests/CompositorMockGraphicsContext3D.h: Added.
1321         (WebCore::createCompositorMockGraphicsContext3D):
1322         * tests/CompositorMockWebGraphicsContext3D.h: Added.
1323         (WebKit::CompositorMockWebGraphicsContext3D::create):
1324         (WebKit::CompositorMockWebGraphicsContext3D::makeContextCurrent):
1325         (WebKit::CompositorMockWebGraphicsContext3D::createProgram):
1326         (WebKit::CompositorMockWebGraphicsContext3D::createShader):
1327         (WebKit::CompositorMockWebGraphicsContext3D::getShaderiv):
1328         (WebKit::CompositorMockWebGraphicsContext3D::getProgramiv):
1329         (WebKit::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
1330         * tests/LayerChromiumTest.cpp:
1331         * tests/MockWebGraphicsContext3D.h:
1332         (WebKit::MockWebGraphicsContext3D::getContextAttributes):
1333         * tests/WebGLLayerChromiumTest.cpp:
1334         (WebKit::TEST):
1335         * tests/WebLayerTest.cpp:
1336         (testing::MockWebLayerTreeViewClient::animateAndLayout):
1337         (testing::MockWebLayerTreeViewClient::applyScrollAndScale):
1338         (testing::MockWebLayerTreeViewClient::createContext3D):
1339         (testing::MockWebLayerTreeViewClient::didRebindGraphicsContext):
1340         (testing::WebLayerTest::SetUp):
1341         (testing::WebLayerTest::TearDown):
1342         (testing::TEST_F):
1343
1344 2011-12-19  James Robinson  <jamesr@chromium.org>
1345
1346         [chromium] Set the CCLayerTreeHost pointer on LayerChromium instances eagerly
1347         https://bugs.webkit.org/show_bug.cgi?id=74477
1348
1349         Reviewed by Kenneth Russell.
1350
1351         Add some new tests for LayerChromium::m_layerTreeHost behavior.
1352
1353         * tests/CCLayerTreeHostTest.cpp:
1354         (::MockLayerTreeHost::create):
1355         (::MockLayerTreeHost::MockLayerTreeHost):
1356         (::CCLayerTreeHostTestShortlived1::beginTest):
1357         (::CCLayerTreeHostTestShortlived2::beginTest):
1358         (::CCLayerTreeHostTestShortlived3::beginTest):
1359         * tests/LayerChromiumTest.cpp:
1360
1361 2011-12-19  Adrienne Walker  <enne@google.com>
1362
1363         [chromium] Add more using statements to (re)fix Chromium builders.
1364
1365         Unreviewed gardening.
1366
1367         * tests/Canvas2DLayerChromiumTest.cpp:
1368
1369 2011-12-19  Adrienne Walker  <enne@google.com>
1370
1371         [chromium] Fix win builder due to more NotNull ambiguity errors.
1372
1373         Unreviewed gardening.
1374
1375         * tests/Canvas2DLayerChromiumTest.cpp:
1376
1377 2011-12-19  Iain Merrick  <husky@google.com>
1378
1379         [chromium] Accelerated canvas broken in threaded compositing mode
1380         https://bugs.webkit.org/show_bug.cgi?id=72738
1381
1382         We were flushing the Skia canvas in updateCompositorResources, which
1383         is illegal as it runs on the wrong thread. Moved to paintContentsIfDirty
1384         instead. For correct rendering on the compositor thread, we make a copy
1385         of the canvas texture in updateCompositorResources.
1386
1387         Removed m_textureId and pushPropertiesTo from CanvasLayerChromium, as
1388         it's no longer common between Canvas2DLayerChromium and
1389         WebGLLayerChromium. WebGL changes do not change functionality.
1390
1391         Reviewed by James Robinson.
1392
1393         * WebKit.gypi:
1394         * tests/Canvas2DLayerChromiumTest.cpp: Added.
1395         (WebCore::Canvas2DLayerChromiumTest::setTextureManager):
1396
1397 2011-12-19  Ryosuke Niwa  <rniwa@webkit.org>
1398
1399         Chromium DEPS from 114686 to 115012.
1400
1401         * DEPS:
1402
1403 2011-12-19  Tommy Widenflycht  <tommyw@google.com>
1404
1405         [chromium] MediaStream API: Fixing memory leak in WebMediaStreamSource
1406         https://bugs.webkit.org/show_bug.cgi?id=74714
1407
1408         Reviewed by Eric Seidel.
1409
1410         Missed that PassRefPtr does a ref if constructed with a raw pointer.
1411         Also removed an extra space in WebMediaStreamDescriptor.cpp.
1412
1413         * src/WebMediaStreamDescriptor.cpp:
1414         (WebKit::WebMediaStreamDescriptor::sources):
1415         * src/WebMediaStreamSource.cpp:
1416         (WebKit::WebMediaStreamSource::operator=):
1417
1418 2011-12-19  Adrienne Walker  <enne@google.com>
1419
1420         Try to fix the Chromium win builder NotNull conflict.
1421
1422         Unreviewed gardening.
1423
1424         * tests/MockGraphicsContext3DTest.cpp:
1425
1426 2011-12-18  Keishi Hattori  <keishi@webkit.org>
1427
1428         Implement <input type=color> UI WebKit chromium part
1429         https://bugs.webkit.org/show_bug.cgi?id=65897
1430
1431         Reviewed by Darin Fisher.
1432
1433         * WebKit.gyp: Added new files.
1434         * features.gypi: Added ENABLE_INPUT_COLOR.
1435         * public/WebColorChooser.h: Added. Interface for ColorChooserProxy to call.
1436         (WebKit::WebColorChooser::~WebColorChooser):
1437         (WebKit::WebColorChooser::setSelectedColor):
1438         (WebKit::WebColorChooser::endChooser):
1439         * public/WebColorChooserClient.h: Added.
1440         (WebKit::WebColorChooserClient::~WebColorChooserClient):
1441         (WebKit::WebColorChooserClient::didChooseColor): Only called when user changes the color.
1442         (WebKit::WebColorChooserClient::didEndChooser): Called when WebColorChooser::endChooser is called.
1443         * public/WebViewClient.h:
1444         (WebKit::WebViewClient::createColorChooser): Creates a new color chooser. If there is an old color chooser, this will end it.
1445         * src/ChromeClientImpl.cpp:
1446         (WebKit::ChromeClientImpl::createColorChooser): Calls WebViewClient::createColorChooser.
1447         * src/ChromeClientImpl.h:
1448         * src/ColorChooserProxy.cpp: Proxies calls to WebCore::ColorChooser to WebKit::WebColorChooser.
1449         (WebKit::ColorChooserProxy::ColorChooserProxy):
1450         (WebKit::ColorChooserProxy::~ColorChooserProxy):
1451         (WebKit::ColorChooserProxy::setSelectedColor):
1452         (WebKit::ColorChooserProxy::endChooser):
1453         * src/ColorChooserProxy.h:
1454         * src/WebColorChooserClientImpl.cpp: Proxies calls to WebKit::WebColorChooserClient to WebCore::ColorChooserClient.
1455         (WebKit::WebColorChooserClientImpl::WebColorChooserClientImpl):
1456         (WebKit::WebColorChooserClientImpl::~WebColorChooserClientImpl):
1457         (WebKit::WebColorChooserClientImpl::didChooseColor):
1458         (WebKit::WebColorChooserClientImpl::didEndChooser):
1459         * src/WebColorChooserClientImpl.h: Added.
1460
1461 2011-12-18  James Kozianski  <koz@chromium.org>
1462
1463         [chromium] Add worldId parameter to allowScriptExtension()
1464         https://bugs.webkit.org/show_bug.cgi?id=74214
1465
1466         Chromium uses the worldId to determine what extension is running in a
1467         v8 context and knowing that at the time allowScriptExtension() is
1468         called allows us to conditionally inject extension APIs.
1469
1470         Reviewed by Darin Fisher.
1471
1472         * public/WebPermissionClient.h:
1473         (WebKit::WebPermissionClient::allowScriptExtension):
1474         * src/FrameLoaderClientImpl.cpp:
1475         (WebKit::FrameLoaderClientImpl::allowScriptExtension):
1476         * src/FrameLoaderClientImpl.h:
1477
1478 2011-12-18  Sheriff Bot  <webkit.review.bot@gmail.com>
1479
1480         Unreviewed, rolling out r103169.
1481         http://trac.webkit.org/changeset/103169
1482         https://bugs.webkit.org/show_bug.cgi?id=74809
1483
1484         it broke compilation on many platforms (Requested by loislo_
1485         on #webkit).
1486
1487         * WebKit.gyp:
1488         * features.gypi:
1489         * public/WebColorChooser.h: Removed.
1490         * public/WebColorChooserClient.h: Removed.
1491         * public/WebViewClient.h:
1492         * src/ChromeClientImpl.cpp:
1493         * src/ChromeClientImpl.h:
1494         * src/ColorChooserProxy.cpp: Removed.
1495         * src/WebColorChooserClientImpl.cpp: Removed.
1496         * src/WebColorChooserClientImpl.h: Removed.
1497
1498 2011-12-18  Keishi Hattori  <keishi@webkit.org>
1499
1500         Implement <input type=color> UI WebKit chromium part
1501         https://bugs.webkit.org/show_bug.cgi?id=65897
1502
1503         Reviewed by Darin Fisher.
1504
1505         * WebKit.gyp: Added new files.
1506         * features.gypi: Added ENABLE_INPUT_COLOR.
1507         * public/WebColorChooser.h: Added. Interface for ColorChooserProxy to call.
1508         (WebKit::WebColorChooser::~WebColorChooser):
1509         (WebKit::WebColorChooser::setSelectedColor):
1510         (WebKit::WebColorChooser::endChooser):
1511         * public/WebColorChooserClient.h: Added.
1512         (WebKit::WebColorChooserClient::~WebColorChooserClient):
1513         (WebKit::WebColorChooserClient::didChooseColor): Only called when user changes the color.
1514         (WebKit::WebColorChooserClient::didEndChooser): Called when WebColorChooser::endChooser is called.
1515         * public/WebViewClient.h:
1516         (WebKit::WebViewClient::createColorChooser): Creates a new color chooser. If there is an old color chooser, this will end it.
1517         * src/ChromeClientImpl.cpp:
1518         (WebKit::ChromeClientImpl::createColorChooser): Calls WebViewClient::createColorChooser.
1519         * src/ChromeClientImpl.h:
1520         * src/ColorChooserProxy.cpp: Proxies calls to WebCore::ColorChooser to WebKit::WebColorChooser.
1521         (WebKit::ColorChooserProxy::ColorChooserProxy):
1522         (WebKit::ColorChooserProxy::~ColorChooserProxy):
1523         (WebKit::ColorChooserProxy::setSelectedColor):
1524         (WebKit::ColorChooserProxy::endChooser):
1525         * src/ColorChooserProxy.h:
1526         * src/WebColorChooserClientImpl.cpp: Proxies calls to WebKit::WebColorChooserClient to WebCore::ColorChooserClient.
1527         (WebKit::WebColorChooserClientImpl::WebColorChooserClientImpl):
1528         (WebKit::WebColorChooserClientImpl::~WebColorChooserClientImpl):
1529         (WebKit::WebColorChooserClientImpl::didChooseColor):
1530         (WebKit::WebColorChooserClientImpl::didEndChooser):
1531         * src/WebColorChooserClientImpl.h: Added.
1532
1533 2011-12-17  Sam Weinig  <sam@webkit.org>
1534
1535         Make PlatformTouchEvent inherit from PlatformEvent
1536         https://bugs.webkit.org/show_bug.cgi?id=74777
1537
1538         Reviewed by Andreas Kling.
1539
1540         * src/WebInputEventConversion.cpp:
1541         (WebKit::toPlatformTouchEventType):
1542         * tests/InnerGestureRecognizerTest.cpp:
1543         (BuildablePlatformTouchEvent::BuildablePlatformTouchEvent):
1544         (SimulateAndTestFirstClick):
1545         (TouchPointAndEvent::TouchPointAndEvent):
1546         Add PlatformEvent prefix to enum types.
1547
1548 2011-12-17  Adrienne Walker  <enne@google.com>
1549
1550         [chromium] Reverting r103011, r103135 due to Aura test failures
1551
1552         Unreviewed gardening.
1553
1554         * WebKit.gypi:
1555         * public/platform/WebContentLayer.h:
1556         * public/platform/WebExternalTextureLayer.h:
1557         * public/platform/WebLayer.h:
1558         * public/platform/WebLayerClient.h:
1559         * src/WebContentLayer.cpp:
1560         (WebKit::WebContentLayer::create):
1561         * src/WebContentLayerImpl.cpp:
1562         (WebKit::WebContentLayerImpl::create):
1563         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
1564         (WebKit::WebContentLayerImpl::notifySyncRequired):
1565         * src/WebContentLayerImpl.h:
1566         * src/WebExternalTextureLayer.cpp:
1567         (WebKit::WebExternalTextureLayer::create):
1568         * src/WebExternalTextureLayerImpl.cpp:
1569         (WebKit::WebExternalTextureLayerImpl::create):
1570         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
1571         (WebKit::WebExternalTextureLayerImpl::notifySyncRequired):
1572         * src/WebExternalTextureLayerImpl.h:
1573         * src/WebLayer.cpp:
1574         (WebKit::WebLayer::create):
1575         * src/WebLayerImpl.cpp:
1576         (WebKit::WebLayerImpl::create):
1577         (WebKit::WebLayerImpl::WebLayerImpl):
1578         (WebKit::WebLayerImpl::notifySyncRequired):
1579         * src/WebLayerImpl.h:
1580         * src/WebLayerTreeViewImpl.cpp:
1581         (WebKit::WebLayerTreeViewImpl::create):
1582         (WebKit::WebLayerTreeViewImpl::WebLayerTreeViewImpl):
1583         * src/WebLayerTreeViewImpl.h:
1584         * tests/CCLayerTreeHostImplTest.cpp:
1585         * tests/CCLayerTreeHostTest.cpp:
1586         (WTF::MockLayerTreeHost::create):
1587         (WTF::MockLayerTreeHost::MockLayerTreeHost):
1588         (WTF::CompositorMockWebGraphicsContext3D::create):
1589         (WTF::CompositorMockWebGraphicsContext3D::makeContextCurrent):
1590         (WTF::CompositorMockWebGraphicsContext3D::createProgram):
1591         (WTF::CompositorMockWebGraphicsContext3D::createShader):
1592         (WTF::CompositorMockWebGraphicsContext3D::getShaderiv):
1593         (WTF::CompositorMockWebGraphicsContext3D::getProgramiv):
1594         (WTF::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
1595         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
1596         (WTF::CCLayerTreeHostTestShortlived1::beginTest):
1597         (WTF::CCLayerTreeHostTestShortlived2::beginTest):
1598         (WTF::CCLayerTreeHostTestShortlived3::beginTest):
1599         (WTF::CCLayerTreeHostTestScrollSimple::beginCommitOnCCThread):
1600         (WTF::TestOpacityChangeLayerDelegate::notifySyncRequired):
1601         * tests/CompositorFakeGraphicsContext3D.h: Removed.
1602         * tests/CompositorFakeWebGraphicsContext3D.h: Removed.
1603         * tests/LayerChromiumTest.cpp:
1604         * tests/MockGraphicsContext3DTest.cpp: Renamed from Source/WebKit/chromium/tests/FakeGraphicsContext3DTest.cpp.
1605         (FrameCountingContext::FrameCountingContext):
1606         (FrameCountingContext::prepareTexture):
1607         (FrameCountingContext::frameCount):
1608         (TEST):
1609         (ContextThatCountsMakeCurrents::ContextThatCountsMakeCurrents):
1610         (ContextThatCountsMakeCurrents::makeContextCurrent):
1611         (ContextThatCountsMakeCurrents::makeCurrentCount):
1612         (ContextWithMakeCurrentThatFails::ContextWithMakeCurrentThatFails):
1613         (ContextWithMakeCurrentThatFails::makeContextCurrent):
1614         * tests/MockWebGraphicsContext3D.h: Renamed from Source/WebKit/chromium/tests/FakeWebGraphicsContext3D.h.
1615         (WebKit::MockWebGraphicsContext3D::initialize):
1616         (WebKit::MockWebGraphicsContext3D::makeContextCurrent):
1617         (WebKit::MockWebGraphicsContext3D::width):
1618         (WebKit::MockWebGraphicsContext3D::height):
1619         (WebKit::MockWebGraphicsContext3D::reshape):
1620         (WebKit::MockWebGraphicsContext3D::isGLES2Compliant):
1621         (WebKit::MockWebGraphicsContext3D::readBackFramebuffer):
1622         (WebKit::MockWebGraphicsContext3D::getPlatformTextureId):
1623         (WebKit::MockWebGraphicsContext3D::prepareTexture):
1624         (WebKit::MockWebGraphicsContext3D::postSubBufferCHROMIUM):
1625         (WebKit::MockWebGraphicsContext3D::synthesizeGLError):
1626         (WebKit::MockWebGraphicsContext3D::isContextLost):
1627         (WebKit::MockWebGraphicsContext3D::mapBufferSubDataCHROMIUM):
1628         (WebKit::MockWebGraphicsContext3D::unmapBufferSubDataCHROMIUM):
1629         (WebKit::MockWebGraphicsContext3D::mapTexSubImage2DCHROMIUM):
1630         (WebKit::MockWebGraphicsContext3D::unmapTexSubImage2DCHROMIUM):
1631         (WebKit::MockWebGraphicsContext3D::setVisibilityCHROMIUM):
1632         (WebKit::MockWebGraphicsContext3D::getRequestableExtensionsCHROMIUM):
1633         (WebKit::MockWebGraphicsContext3D::requestExtensionCHROMIUM):
1634         (WebKit::MockWebGraphicsContext3D::blitFramebufferCHROMIUM):
1635         (WebKit::MockWebGraphicsContext3D::renderbufferStorageMultisampleCHROMIUM):
1636         (WebKit::MockWebGraphicsContext3D::activeTexture):
1637         (WebKit::MockWebGraphicsContext3D::attachShader):
1638         (WebKit::MockWebGraphicsContext3D::bindAttribLocation):
1639         (WebKit::MockWebGraphicsContext3D::bindBuffer):
1640         (WebKit::MockWebGraphicsContext3D::bindFramebuffer):
1641         (WebKit::MockWebGraphicsContext3D::bindRenderbuffer):
1642         (WebKit::MockWebGraphicsContext3D::bindTexture):
1643         (WebKit::MockWebGraphicsContext3D::blendColor):
1644         (WebKit::MockWebGraphicsContext3D::blendEquation):
1645         (WebKit::MockWebGraphicsContext3D::blendEquationSeparate):
1646         (WebKit::MockWebGraphicsContext3D::blendFunc):
1647         (WebKit::MockWebGraphicsContext3D::blendFuncSeparate):
1648         (WebKit::MockWebGraphicsContext3D::bufferData):
1649         (WebKit::MockWebGraphicsContext3D::bufferSubData):
1650         (WebKit::MockWebGraphicsContext3D::checkFramebufferStatus):
1651         (WebKit::MockWebGraphicsContext3D::clear):
1652         (WebKit::MockWebGraphicsContext3D::clearColor):
1653         (WebKit::MockWebGraphicsContext3D::clearDepth):
1654         (WebKit::MockWebGraphicsContext3D::clearStencil):
1655         (WebKit::MockWebGraphicsContext3D::colorMask):
1656         (WebKit::MockWebGraphicsContext3D::compileShader):
1657         (WebKit::MockWebGraphicsContext3D::compressedTexImage2D):
1658         (WebKit::MockWebGraphicsContext3D::compressedTexSubImage2D):
1659         (WebKit::MockWebGraphicsContext3D::copyTexImage2D):
1660         (WebKit::MockWebGraphicsContext3D::copyTexSubImage2D):
1661         (WebKit::MockWebGraphicsContext3D::cullFace):
1662         (WebKit::MockWebGraphicsContext3D::depthFunc):
1663         (WebKit::MockWebGraphicsContext3D::depthMask):
1664         (WebKit::MockWebGraphicsContext3D::depthRange):
1665         (WebKit::MockWebGraphicsContext3D::detachShader):
1666         (WebKit::MockWebGraphicsContext3D::disable):
1667         (WebKit::MockWebGraphicsContext3D::disableVertexAttribArray):
1668         (WebKit::MockWebGraphicsContext3D::drawArrays):
1669         (WebKit::MockWebGraphicsContext3D::drawElements):
1670         (WebKit::MockWebGraphicsContext3D::enable):
1671         (WebKit::MockWebGraphicsContext3D::enableVertexAttribArray):
1672         (WebKit::MockWebGraphicsContext3D::finish):
1673         (WebKit::MockWebGraphicsContext3D::flush):
1674         (WebKit::MockWebGraphicsContext3D::framebufferRenderbuffer):
1675         (WebKit::MockWebGraphicsContext3D::framebufferTexture2D):
1676         (WebKit::MockWebGraphicsContext3D::frontFace):
1677         (WebKit::MockWebGraphicsContext3D::generateMipmap):
1678         (WebKit::MockWebGraphicsContext3D::getActiveAttrib):
1679         (WebKit::MockWebGraphicsContext3D::getActiveUniform):
1680         (WebKit::MockWebGraphicsContext3D::getAttachedShaders):
1681         (WebKit::MockWebGraphicsContext3D::getAttribLocation):
1682         (WebKit::MockWebGraphicsContext3D::getBooleanv):
1683         (WebKit::MockWebGraphicsContext3D::getBufferParameteriv):
1684         (WebKit::MockWebGraphicsContext3D::getContextAttributes):
1685         (WebKit::MockWebGraphicsContext3D::getError):
1686         (WebKit::MockWebGraphicsContext3D::getFloatv):
1687         (WebKit::MockWebGraphicsContext3D::getFramebufferAttachmentParameteriv):
1688         (WebKit::MockWebGraphicsContext3D::getIntegerv):
1689         (WebKit::MockWebGraphicsContext3D::getProgramiv):
1690         (WebKit::MockWebGraphicsContext3D::getProgramInfoLog):
1691         (WebKit::MockWebGraphicsContext3D::getRenderbufferParameteriv):
1692         (WebKit::MockWebGraphicsContext3D::getShaderiv):
1693         (WebKit::MockWebGraphicsContext3D::getShaderInfoLog):
1694         (WebKit::MockWebGraphicsContext3D::getShaderSource):
1695         (WebKit::MockWebGraphicsContext3D::getString):
1696         (WebKit::MockWebGraphicsContext3D::getTexParameterfv):
1697         (WebKit::MockWebGraphicsContext3D::getTexParameteriv):
1698         (WebKit::MockWebGraphicsContext3D::getUniformfv):
1699         (WebKit::MockWebGraphicsContext3D::getUniformiv):
1700         (WebKit::MockWebGraphicsContext3D::getUniformLocation):
1701         (WebKit::MockWebGraphicsContext3D::getVertexAttribfv):
1702         (WebKit::MockWebGraphicsContext3D::getVertexAttribiv):
1703         (WebKit::MockWebGraphicsContext3D::getVertexAttribOffset):
1704         (WebKit::MockWebGraphicsContext3D::hint):
1705         (WebKit::MockWebGraphicsContext3D::isBuffer):
1706         (WebKit::MockWebGraphicsContext3D::isEnabled):
1707         (WebKit::MockWebGraphicsContext3D::isFramebuffer):
1708         (WebKit::MockWebGraphicsContext3D::isProgram):
1709         (WebKit::MockWebGraphicsContext3D::isRenderbuffer):
1710         (WebKit::MockWebGraphicsContext3D::isShader):
1711         (WebKit::MockWebGraphicsContext3D::isTexture):
1712         (WebKit::MockWebGraphicsContext3D::lineWidth):
1713         (WebKit::MockWebGraphicsContext3D::linkProgram):
1714         (WebKit::MockWebGraphicsContext3D::pixelStorei):
1715         (WebKit::MockWebGraphicsContext3D::polygonOffset):
1716         (WebKit::MockWebGraphicsContext3D::readPixels):
1717         (WebKit::MockWebGraphicsContext3D::releaseShaderCompiler):
1718         (WebKit::MockWebGraphicsContext3D::renderbufferStorage):
1719         (WebKit::MockWebGraphicsContext3D::sampleCoverage):
1720         (WebKit::MockWebGraphicsContext3D::scissor):
1721         (WebKit::MockWebGraphicsContext3D::shaderSource):
1722         (WebKit::MockWebGraphicsContext3D::stencilFunc):
1723         (WebKit::MockWebGraphicsContext3D::stencilFuncSeparate):
1724         (WebKit::MockWebGraphicsContext3D::stencilMask):
1725         (WebKit::MockWebGraphicsContext3D::stencilMaskSeparate):
1726         (WebKit::MockWebGraphicsContext3D::stencilOp):
1727         (WebKit::MockWebGraphicsContext3D::stencilOpSeparate):
1728         (WebKit::MockWebGraphicsContext3D::texImage2D):
1729         (WebKit::MockWebGraphicsContext3D::texParameterf):
1730         (WebKit::MockWebGraphicsContext3D::texParameteri):
1731         (WebKit::MockWebGraphicsContext3D::texSubImage2D):
1732         (WebKit::MockWebGraphicsContext3D::uniform1f):
1733         (WebKit::MockWebGraphicsContext3D::uniform1fv):
1734         (WebKit::MockWebGraphicsContext3D::uniform1i):
1735         (WebKit::MockWebGraphicsContext3D::uniform1iv):
1736         (WebKit::MockWebGraphicsContext3D::uniform2f):
1737         (WebKit::MockWebGraphicsContext3D::uniform2fv):
1738         (WebKit::MockWebGraphicsContext3D::uniform2i):
1739         (WebKit::MockWebGraphicsContext3D::uniform2iv):
1740         (WebKit::MockWebGraphicsContext3D::uniform3f):
1741         (WebKit::MockWebGraphicsContext3D::uniform3fv):
1742         (WebKit::MockWebGraphicsContext3D::uniform3i):
1743         (WebKit::MockWebGraphicsContext3D::uniform3iv):
1744         (WebKit::MockWebGraphicsContext3D::uniform4f):
1745         (WebKit::MockWebGraphicsContext3D::uniform4fv):
1746         (WebKit::MockWebGraphicsContext3D::uniform4i):
1747         (WebKit::MockWebGraphicsContext3D::uniform4iv):
1748         (WebKit::MockWebGraphicsContext3D::uniformMatrix2fv):
1749         (WebKit::MockWebGraphicsContext3D::uniformMatrix3fv):
1750         (WebKit::MockWebGraphicsContext3D::uniformMatrix4fv):
1751         (WebKit::MockWebGraphicsContext3D::useProgram):
1752         (WebKit::MockWebGraphicsContext3D::validateProgram):
1753         (WebKit::MockWebGraphicsContext3D::vertexAttrib1f):
1754         (WebKit::MockWebGraphicsContext3D::vertexAttrib1fv):
1755         (WebKit::MockWebGraphicsContext3D::vertexAttrib2f):
1756         (WebKit::MockWebGraphicsContext3D::vertexAttrib2fv):
1757         (WebKit::MockWebGraphicsContext3D::vertexAttrib3f):
1758         (WebKit::MockWebGraphicsContext3D::vertexAttrib3fv):
1759         (WebKit::MockWebGraphicsContext3D::vertexAttrib4f):
1760         (WebKit::MockWebGraphicsContext3D::vertexAttrib4fv):
1761         (WebKit::MockWebGraphicsContext3D::vertexAttribPointer):
1762         (WebKit::MockWebGraphicsContext3D::viewport):
1763         (WebKit::MockWebGraphicsContext3D::createBuffer):
1764         (WebKit::MockWebGraphicsContext3D::createFramebuffer):
1765         (WebKit::MockWebGraphicsContext3D::createProgram):
1766         (WebKit::MockWebGraphicsContext3D::createRenderbuffer):
1767         (WebKit::MockWebGraphicsContext3D::createShader):
1768         (WebKit::MockWebGraphicsContext3D::createTexture):
1769         (WebKit::MockWebGraphicsContext3D::deleteBuffer):
1770         (WebKit::MockWebGraphicsContext3D::deleteFramebuffer):
1771         (WebKit::MockWebGraphicsContext3D::deleteProgram):
1772         (WebKit::MockWebGraphicsContext3D::deleteRenderbuffer):
1773         (WebKit::MockWebGraphicsContext3D::deleteShader):
1774         (WebKit::MockWebGraphicsContext3D::deleteTexture):
1775         (WebKit::MockWebGraphicsContext3D::texStorage2DEXT):
1776         * tests/WebGLLayerChromiumTest.cpp:
1777         (WebKit::CompositorMockWebGraphicsContext3D::create):
1778         (WebKit::CompositorMockWebGraphicsContext3D::makeContextCurrent):
1779         (WebKit::CompositorMockWebGraphicsContext3D::createProgram):
1780         (WebKit::CompositorMockWebGraphicsContext3D::createShader):
1781         (WebKit::CompositorMockWebGraphicsContext3D::getShaderiv):
1782         (WebKit::CompositorMockWebGraphicsContext3D::getProgramiv):
1783         (WebKit::CompositorMockWebGraphicsContext3D::getContextAttributes):
1784         (WebKit::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
1785         (WebKit::createGraphicsContext):
1786         (WebKit::TEST):
1787         * tests/WebLayerTest.cpp:
1788         (testing::WebLayerTest::WebLayerTest):
1789         (testing::TEST_F):
1790
1791 2011-12-17  Kenichi Ishibashi  <bashi@chromium.org>
1792
1793         [Chromium] Implement PluginViewBase::getFormValue
1794         https://bugs.webkit.org/show_bug.cgi?id=64434
1795
1796         Reviewed by Darin Fisher.
1797
1798         This patch was landed as r102873, but reverted because of Chromium Mac build failure.
1799         The fix was landed as Chromium r114920. The patch should be safe to land.
1800
1801         No new tests. No behavior change at this time. We should add a test for PPAPI after chromium supports the feature.
1802
1803         * public/WebPlugin.h: Added getFormValue().
1804         * src/WebPluginContainerImpl.cpp:
1805         (WebKit::WebPluginContainerImpl::getFormValue): Added.
1806         * src/WebPluginContainerImpl.h: Added getFormValue().
1807
1808 2011-12-16  James Robinson  <jamesr@chromium.org>
1809
1810         [chromium] CCLayerDelegate and WebLayerClient do not need notifySyncRequired
1811         https://bugs.webkit.org/show_bug.cgi?id=74376
1812
1813         Reviewed by Kenneth Russell.
1814
1815         WebLayerClient::notifyNeedsComposite() is an odd interface for the same reason that
1816         CCLayerDelegate::notifySyncRequired() is - all scheduling decisions should route through the WebLayerTreeView,
1817         not individual layers. In practice, all implementations of WebLayerClient::notifySyncRequired() do the exact
1818         same thing as WebLayerTreeView::scheduleComposite(). This removes that callback, making WebLayerClient an empty
1819         interface, and routes all calls that would go to that interface to WebLayerTreeView::scheduleComposite().
1820
1821         Once downstream implementations of WebLayerClient are removed, WebLayerClient.h and the constructors associated
1822         with it can be deleted.
1823
1824         The bulk of the changes here are to the test harness. Many tests that were designed around notifySyncRequired()
1825         are rewritten to check for CCLayerTreeHost::setNeedsCommit() or WebLayerTreeView::scheduleComposite() instead.
1826         In a few instances, this required changing the setup logic around somewhat so that the layers being manipulated
1827         were in a tree that initialized without errors.
1828
1829         * WebKit.gypi:
1830         * public/platform/WebContentLayer.h:
1831         * public/platform/WebExternalTextureLayer.h:
1832         * public/platform/WebLayer.h:
1833         * public/platform/WebLayerClient.h:
1834         * src/WebContentLayer.cpp:
1835         (WebKit::WebContentLayer::create):
1836         * src/WebContentLayerImpl.cpp:
1837         (WebKit::WebContentLayerImpl::create):
1838         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
1839         * src/WebContentLayerImpl.h:
1840         * src/WebExternalTextureLayer.cpp:
1841         (WebKit::WebExternalTextureLayer::create):
1842         * src/WebExternalTextureLayerImpl.cpp:
1843         (WebKit::WebExternalTextureLayerImpl::create):
1844         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
1845         * src/WebExternalTextureLayerImpl.h:
1846         * src/WebLayer.cpp:
1847         (WebKit::WebLayer::create):
1848         * src/WebLayerImpl.cpp:
1849         (WebKit::WebLayerImpl::create):
1850         (WebKit::WebLayerImpl::WebLayerImpl):
1851         * src/WebLayerImpl.h:
1852         * src/WebLayerTreeViewImpl.cpp:
1853         (WebKit::WebLayerTreeViewImpl::create):
1854         (WebKit::WebLayerTreeViewImpl::WebLayerTreeViewImpl):
1855         * src/WebLayerTreeViewImpl.h:
1856         * tests/CCLayerTreeHostTest.cpp:
1857         (WTF::MockLayerTreeHost::create):
1858         (WTF::MockLayerTreeHost::MockLayerTreeHost):
1859         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
1860         (WTF::CCLayerTreeHostTestScrollSimple::animateAndLayout):
1861         * tests/CompositorMockGraphicsContext3D.h: Added.
1862         (WebCore::createCompositorMockGraphicsContext3D):
1863         * tests/CompositorMockWebGraphicsContext3D.h: Added.
1864         (WebKit::CompositorMockWebGraphicsContext3D::create):
1865         (WebKit::CompositorMockWebGraphicsContext3D::makeContextCurrent):
1866         (WebKit::CompositorMockWebGraphicsContext3D::createProgram):
1867         (WebKit::CompositorMockWebGraphicsContext3D::createShader):
1868         (WebKit::CompositorMockWebGraphicsContext3D::getShaderiv):
1869         (WebKit::CompositorMockWebGraphicsContext3D::getProgramiv):
1870         (WebKit::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
1871         * tests/LayerChromiumTest.cpp:
1872         * tests/MockWebGraphicsContext3D.h:
1873         (WebKit::MockWebGraphicsContext3D::getContextAttributes):
1874         * tests/WebGLLayerChromiumTest.cpp:
1875         (WebKit::TEST):
1876         * tests/WebLayerTest.cpp:
1877         (testing::MockWebLayerTreeViewClient::animateAndLayout):
1878         (testing::MockWebLayerTreeViewClient::applyScrollAndScale):
1879         (testing::MockWebLayerTreeViewClient::createContext3D):
1880         (testing::MockWebLayerTreeViewClient::didRebindGraphicsContext):
1881         (testing::WebLayerTest::SetUp):
1882         (testing::WebLayerTest::TearDown):
1883         (testing::TEST_F):
1884
1885 2011-12-16  Eric Penner  <epenner@google.com>
1886
1887         [chromium] Need to prepaint tiles in TiledLayerChromium
1888         https://bugs.webkit.org/show_bug.cgi?id=72686
1889
1890         Reviewed by James Robinson.
1891
1892         * tests/CCLayerTreeHostTest.cpp:
1893         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsCount):
1894         (WTF::ContentLayerChromiumWithUpdateTracking::resetPaintContentsCount):
1895         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
1896         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
1897         (WTF::CCLayerTreeHostTestOpacityChange::afterTest):
1898         * tests/TiledLayerChromiumTest.cpp:
1899         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
1900         (WTF::FakeTiledLayerChromium::needsIdlePaint):
1901         (WTF::TEST):
1902
1903 2011-12-16  James Robinson  <jamesr@chromium.org>
1904
1905         [chromium] Remove WebCString's dependency on WebCore
1906         https://bugs.webkit.org/show_bug.cgi?id=74761
1907
1908         Reviewed by Darin Fisher.
1909
1910         Remove WebCString::fromUTF16(), which are never called, and implement WebCString::utf16() using WTF instead of
1911         WebCore/platform/text/TextEncoding.
1912
1913         * public/platform/WebCString.h:
1914         * src/WebCString.cpp:
1915         (WebKit::WebCString::utf16):
1916
1917 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
1918
1919         Rename registerCommandFor(Undo|Redo) to register(Undo|Redo)Step
1920         https://bugs.webkit.org/show_bug.cgi?id=74748
1921
1922         Reviewed by Eric Seidel.
1923
1924         * src/EditorClientImpl.cpp:
1925         (WebKit::EditorClientImpl::registerUndoStep):
1926         (WebKit::EditorClientImpl::registerRedoStep):
1927         * src/EditorClientImpl.h:
1928
1929 2011-12-16  Sam Weinig  <sam@webkit.org>
1930
1931         Give PlatformEvents a base class
1932         https://bugs.webkit.org/show_bug.cgi?id=74685
1933
1934         Reviewed by Anders Carlsson.
1935
1936         Add a base class for PlatformMouseEvent, PlatformKeyboardEvent, PlatformWheelEvent
1937         and PlatformGestureEvent and move Type enumeration and modifiers down to it.
1938
1939         * src/EditorClientImpl.cpp:
1940         (WebKit::EditorClientImpl::interpretKeyEvent):
1941         (WebKit::EditorClientImpl::handleEditingKeyboardEvent):
1942         * src/WebAccessibilityObject.cpp:
1943         (WebKit::WebAccessibilityObject::keyboardShortcut):
1944         * src/WebInputEventConversion.cpp:
1945         (WebKit::PlatformMouseEventBuilder::PlatformMouseEventBuilder):
1946         (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
1947         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1948         (WebKit::toPlatformKeyboardEventType):
1949         * src/WebViewImpl.cpp:
1950         (WebKit::WebViewImpl::dragSourceEndedAt):
1951         * tests/InnerGestureRecognizerTest.cpp:
1952         (SimulateAndTestFirstClick):
1953         (TEST_F):
1954         * tests/KeyboardTest.cpp:
1955         (WebKit::KeyboardTest::interpretKeyEvent):
1956         (WebKit::KeyboardTest::interpretOSModifierKeyPress):
1957         (WebKit::KeyboardTest::interpretCtrlKeyPress):
1958         (WebKit::KeyboardTest::interpretTab):
1959         (WebKit::KeyboardTest::interpretNewLine):
1960         (WebKit::TEST_F):
1961         * tests/PopupMenuTest.cpp:
1962         (WebKit::SelectPopupMenuTest::simulateLeftMouseDownEvent):
1963         (WebKit::SelectPopupMenuTest::simulateLeftMouseUpEvent):
1964         (WebKit::TEST_F):
1965
1966 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
1967
1968         Only EditCommandComposition should implement unapply and reapply
1969         https://bugs.webkit.org/show_bug.cgi?id=74490
1970
1971         Reviewed by Eric Seidel.
1972
1973         * src/EditorClientImpl.cpp:
1974         (WebKit::EditorClientImpl::registerCommandForUndo):
1975         (WebKit::EditorClientImpl::registerCommandForRedo):
1976         (WebKit::EditorClientImpl::undo):
1977         (WebKit::EditorClientImpl::redo):
1978         * src/EditorClientImpl.h:
1979
1980 2011-12-16  Joshua Bell  <jsbell@chromium.org>
1981
1982         IndexedDB: Implement IDBObjectStore.count() and IDBIndex.count()
1983         https://bugs.webkit.org/show_bug.cgi?id=73686
1984
1985         Reviewed by Tony Chang.
1986
1987         Plumbing to support the new methods in Chromium.
1988
1989         * src/IDBIndexBackendProxy.cpp:
1990         (WebKit::IDBIndexBackendProxy::count):
1991         * src/IDBIndexBackendProxy.h:
1992         * src/IDBObjectStoreBackendProxy.cpp:
1993         (WebKit::IDBObjectStoreBackendProxy::count):
1994         * src/IDBObjectStoreBackendProxy.h:
1995         * src/WebIDBIndexImpl.cpp:
1996         (WebKit::WebIDBIndexImpl::count):
1997         * src/WebIDBIndexImpl.h:
1998         * src/WebIDBObjectStoreImpl.cpp:
1999         (WebKit::WebIDBObjectStoreImpl::count):
2000         * src/WebIDBObjectStoreImpl.h:
2001
2002 2011-12-16  Adrienne Walker  <enne@google.com>
2003
2004         [chromium] Disable compositor CCLayerTreeHostTestsetNeedsCommit1 test
2005         https://bugs.webkit.org/show_bug.cgi?id=74623
2006
2007         Unreviewed gardening.
2008
2009         This has been failing (timeout) intermittently on Mac.
2010
2011         * tests/CCLayerTreeHostTest.cpp:
2012         (WTF::TEST_F):
2013
2014 2011-12-16  Dana Jansens  <danakj@chromium.org>
2015
2016         [chromium] Add setOpaque to WebMediaPlayerClient interface, don't set VideoLayer's opaque when grabbing current frame.
2017         https://bugs.webkit.org/show_bug.cgi?id=74722
2018
2019         Reviewed by Darin Fisher.
2020
2021         * public/WebMediaPlayerClient.h:
2022         * src/WebMediaPlayerClientImpl.cpp:
2023         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
2024         (WebKit::WebMediaPlayerClientImpl::setOpaque):
2025         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
2026         (WebKit::WebMediaPlayerClientImpl::WebMediaPlayerClientImpl):
2027         * src/WebMediaPlayerClientImpl.h:
2028
2029 2011-12-15  Stephen White  <senorblanco@chromium.org>
2030
2031         Enable CSS_FILTERS in Chromium.
2032         https://bugs.webkit.org/show_bug.cgi?id=74334
2033
2034         Reviewed by Chris Marrin.
2035
2036         * features.gypi:
2037
2038 2011-12-15  Yongjun Zhang  <yongjun_zhang@apple.com>
2039
2040         PODIntervalTree takes 1.7MB memory on www.nytimes.com.
2041         https://bugs.webkit.org/show_bug.cgi?id=73712
2042
2043         Reviewed by Kenneth Russell.
2044
2045         Change the test code in chromium port since PODRedBlackTree now takes PODFreeListArena<T>
2046         in its constructor.
2047
2048         * tests/PODRedBlackTreeTest.cpp:
2049         (WebCore::TEST):
2050
2051 2011-12-15  Joshua Bell  <jsbell@chromium.org>
2052
2053         IndexedDB: Clean up WebIDBObjectStore createIndex temp code
2054         https://bugs.webkit.org/show_bug.cgi?id=74205
2055
2056         Reviewed by Darin Fisher.
2057
2058         Remove a method and an implementation that only needed for
2059         older Chromium revisions.
2060
2061         * public/WebIDBObjectStore.h:
2062         (WebKit::WebIDBObjectStore::createIndex):
2063
2064 2011-12-15  Tony Chang  <tony@chromium.org>
2065
2066         Chromium Windows (Tests) is failing to build
2067         https://bugs.webkit.org/show_bug.cgi?id=74320
2068
2069         Reviewed by Kenneth Russell.
2070
2071         Roll chromium deps to r114686 to pull in a change to how generated
2072         headers include files from third_party/WebKit.  This should make the
2073         file path shorter, reducing the chance of hitting the 260 char path
2074         limit on Windows.
2075
2076         * DEPS: roll to r114686
2077
2078 2011-12-15  James Robinson  <jamesr@chromium.org>
2079
2080         [chromium] Set the CCLayerTreeHost pointer on LayerChromium instances eagerly
2081         https://bugs.webkit.org/show_bug.cgi?id=74477
2082
2083         Reviewed by Kenneth Russell.
2084
2085         Add some new tests for LayerChromium::m_layerTreeHost behavior.
2086
2087         * tests/CCLayerTreeHostTest.cpp:
2088         (::MockLayerTreeHost::create):
2089         (::MockLayerTreeHost::MockLayerTreeHost):
2090         (::CCLayerTreeHostTestShortlived1::beginTest):
2091         (::CCLayerTreeHostTestShortlived2::beginTest):
2092         (::CCLayerTreeHostTestShortlived3::beginTest):
2093         * tests/LayerChromiumTest.cpp:
2094
2095 2011-12-15  Nat Duca  <nduca@chromium.org>
2096
2097         [chromium] Add forUseOnAnotherThread to WebGraphicsContext3D::Attributes
2098         https://bugs.webkit.org/show_bug.cgi?id=74557
2099
2100         Reviewed by Kenneth Russell.
2101
2102         * public/platform/WebGraphicsContext3D.h:
2103         (WebKit::WebGraphicsContext3D::Attributes::Attributes):
2104         * src/GraphicsContext3DChromium.cpp:
2105
2106 2011-12-15  Tommy Widenflycht  <tommyw@google.com>
2107
2108         [chromium] MediaStream API: Fixing #include statements and removing forwarding header file
2109         https://bugs.webkit.org/show_bug.cgi?id=74598
2110
2111         Reviewed by Darin Fisher.
2112
2113         WebMediaStreamSource.h had some issues when accessed from chromium. Also cleaned up the forwarding header.
2114
2115         * WebKit.gyp:
2116         * public/WebMediaStreamSource.h: Removed.
2117         * public/platform/WebMediaStreamSource.h:
2118
2119 2011-12-15  Stephen White  <senorblanco@chromium.org>
2120
2121         Unreviewed, rolling out r102956.
2122         http://trac.webkit.org/changeset/102956
2123         https://bugs.webkit.org/show_bug.cgi?id=74334
2124
2125         Broke Chromium/Win build.
2126
2127         * features.gypi:
2128
2129 2011-12-15  Kenneth Russell  <kbr@google.com>
2130
2131         Unreviewed. Disable flaky tests. Built and tested on Linux.
2132         https://bugs.webkit.org/show_bug.cgi?id=74623
2133
2134         * tests/CCLayerTreeHostTest.cpp:
2135         (WTF::TEST_F):
2136
2137 2011-12-15  Stephen White  <senorblanco@chromium.org>
2138
2139         Enable CSS_FILTERS in Chromium.
2140         https://bugs.webkit.org/show_bug.cgi?id=74334
2141
2142         Reviewed by Kenneth Russell.
2143
2144         * features.gypi:
2145
2146 2011-12-15  Martin Kosiba  <mkosiba@google.com>
2147
2148         Fix find on web pages with -webkit-user-select: none for Chromium
2149         https://bugs.webkit.org/show_bug.cgi?id=72281
2150
2151         Reviewed by Ryosuke Niwa.
2152
2153         This will make it possible to search for text that has
2154         selection disabled (via the webkit-user-select attribute).
2155
2156         WebFrameImpl::find will use findStringAndScrollToVisible, which is
2157         similar to findString except that it uses Range directly rather
2158         than passing the find result in the active selection.
2159
2160         * src/WebFrameImpl.cpp:
2161         (WebKit::WebFrameImpl::find):
2162
2163 2011-12-15  Kenneth Russell  <kbr@google.com>
2164
2165         [chromium] Add DRT support for WebKitPageCacheSupportsPluginsPreferenceKey
2166         https://bugs.webkit.org/show_bug.cgi?id=74581
2167
2168         Reviewed by Darin Fisher.
2169
2170         * public/WebSettings.h:
2171         * src/WebSettingsImpl.cpp:
2172         (WebKit::WebSettingsImpl::setPageCacheSupportsPlugins):
2173         * src/WebSettingsImpl.h:
2174
2175 2011-12-15  Andrey Kosyakov  <caseq@chromium.org>
2176
2177         Web Inspector: [Chromium] add support to inspector test suite to fetch test execution results from console
2178         https://bugs.webkit.org/show_bug.cgi?id=74208
2179
2180         Reviewed by Yury Semikhatsky.
2181
2182         This adds waitForTestResultsInConsole, a test suite method that monitors console for a message containing
2183         either PASS or FAIL and sets result accordingly. This is used by tests running in the extension context to
2184         communicate test results to the test driver (see devtools_sanity_unittest.cc for an example).
2185
2186         * src/js/Tests.js:
2187         (.TestSuite.prototype.testWaitForResultsInConsole.onConsoleMessage):
2188         (.TestSuite.prototype.testWaitForResultsInConsole):
2189
2190 2011-12-15  Peter Beverloo  <peter@chromium.org>
2191
2192         [Chromium] Enable TestNetscapePlugIn to link for Android
2193         https://bugs.webkit.org/show_bug.cgi?id=74597
2194
2195         Reviewed by Tony Gentilcore.
2196
2197         The -nostdlib linker flag is being passed to all targets being build
2198         for Android, which conflicts with the shared library the
2199         TestNetscapePlugIn target created. Explicitly exclude the flag.
2200
2201         * WebKit.gyp:
2202
2203 2011-12-14  David Levin  <levin@chromium.org>
2204
2205         [chromium] DatabaseObserver needs threadsafe fixes and other clean-up.
2206         https://bugs.webkit.org/show_bug.cgi?id=74558
2207
2208         Reviewed by Dmitry Titov.
2209
2210         The important part of this fix is the removal of AllowCrossThreadAccess so
2211         that ref counting happens appropriately.
2212
2213         Minor clean up throughout: Removed unnecessary WTF prefix in many
2214         of these places and unnecessary String().
2215
2216         * src/DatabaseObserver.cpp:
2217         (WebKit::AllowDatabaseMainThreadBridge::create):
2218         (WebKit::AllowDatabaseMainThreadBridge::signalCompleted): Get rid of
2219         AllowCrossThreadAccess so that "this" get ref counted and remove mode from being
2220         a member variable since a String in a ThreadSafeRefCounted class is bad.
2221         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge): Ditto.
2222         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask): Pass through mode
2223         and minor code cleaning to do only one call to signalCompleted.
2224         (WebKit::allowDatabaseForWorker): Just removed unnecessary String()'s.
2225
2226 2011-12-14  Tony Chang  <tony@chromium.org>
2227
2228         [chromium] Remove redundant third_party entries from chromium DEPS
2229         https://bugs.webkit.org/show_bug.cgi?id=74472
2230
2231         Reviewed by Kenneth Russell.
2232
2233         Removed redundant DEPS entries for third_party subdirectories
2234         coming from chromium_svn, which were causing intermittent gclient
2235         failures on the bots.
2236
2237         * DEPS:
2238
2239 2011-12-14  Scott Graham  <scottmg@chromium.org>
2240
2241         Increase maximum number of gamepad buttons in Chromium port interface
2242         https://bugs.webkit.org/show_bug.cgi?id=74559
2243
2244         Reviewed by Darin Fisher.
2245
2246         * public/platform/WebGamepad.h:
2247
2248 2011-12-14  Kenichi Ishibashi  <bashi@chromium.org>
2249
2250         Unreviewed, rolling out r102873.
2251         http://trac.webkit.org/changeset/102873
2252         https://bugs.webkit.org/show_bug.cgi?id=64434
2253
2254         Break the build
2255
2256         * public/WebPlugin.h:
2257         * src/WebPluginContainerImpl.cpp:
2258         * src/WebPluginContainerImpl.h:
2259
2260 2011-12-14  Nat Duca  <nduca@chromium.org>
2261
2262         [chromium] Add inhibitDraw to CCScheduler and drop root impl to prevent background flash on tab restore
2263         https://bugs.webkit.org/show_bug.cgi?id=74351
2264
2265         Reviewed by James Robinson.
2266
2267         * tests/CCSchedulerStateMachineTest.cpp:
2268         (WebCore::StateMachine::inhibitDraw):
2269         (WebCore::TEST):
2270         * tests/CCSchedulerTest.cpp:
2271         (WebKitTests::FakeCCSchedulerClient::setInhibitDraw):
2272         (WebKitTests::FakeCCSchedulerClient::inhibitDraw):
2273         (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::inhibitDraw):
2274         (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::inhibitDraw):
2275
2276 2011-12-14  Jing Zhao  <jingzhao@chromium.org>
2277
2278         Opening two popup menus by dispatchEvent() makes problems.
2279         https://bugs.webkit.org/show_bug.cgi?id=73304
2280
2281         Reviewed by Kent Tamura.
2282
2283         By using element.dispatchEvent(), a user written script can open two
2284         popup menus, which causes the assertion in WebViewImpl::popupOpened()
2285         fail.
2286
2287         ChromeClientImpl::hasOpenedPopup() is called by Chrome::hasOpenedPopup()
2288         in RenderMenuList::showPopup(), to check if there is an opened popup
2289         menu before opening a new popup menu.
2290
2291         * src/ChromeClientImpl.cpp:
2292         (WebKit::ChromeClientImpl::hasOpenedPopup): Checks the popup in WebViewImpl.
2293         * src/ChromeClientImpl.h: Overrides hasOpenedPopup().
2294
2295 2011-12-14  Kenichi Ishibashi  <bashi@chromium.org>
2296
2297         [Chromium] Implement PluginViewBase::getFormValue
2298         https://bugs.webkit.org/show_bug.cgi?id=64434
2299
2300         Adds getFormValue() to WebPluginContainerImpl as an implementation of PluginViewBase::getFormValue().
2301
2302         Reviewed by Darin Fisher.
2303
2304         No new tests. No behavior change at this time. We should add a test for PPAPI after chromium supports the feature.
2305
2306         * public/WebPlugin.h: Added getFormValue().
2307         * src/WebPluginContainerImpl.cpp:
2308         (WebKit::WebPluginContainerImpl::getFormValue): Added.
2309         * src/WebPluginContainerImpl.h: Added getFormValue().
2310
2311 2011-12-14  Sami Kyostila  <skyostil@chromium.org>
2312
2313         [chromium] Fix CCLayerTreeHostTest shutdown race
2314         https://bugs.webkit.org/show_bug.cgi?id=73926
2315
2316         This patch fixes a shutdown race condition in CCLayerTreeHostTest which
2317         may happen if endTest() is called from within the drawLayersOnCCThread()
2318         test hook. The sequence of events leading to the problem is:
2319
2320           1. CCThreadProxy::scheduledActionDrawAndSwap() is called when a frame
2321              begins.
2322           2. CCThreadProxy calls drawLayersOnCCThread(), which in turn calls
2323              endTest().
2324           3. Seeing it's not running in the main thread, endTest() posts a task
2325              calling itself in the main thread.
2326           4. CCThreadProxy posts a task for calling didCommitAndDrawFrame() in
2327              the main thread.
2328
2329         The race is between the task posted in step #3 and the CC thread running
2330         in scheduledActionDrawAndSwap(). If the endTask() task is scheduled
2331         before the CC thread reaches step #4, it drains the pending message
2332         queue (CCLayerTreeHostTest.cpp:369) before the task in step #4 is
2333         posted.
2334
2335         The result is that the didCommitAndDrawFrame() task is executed after
2336         the test fixture has been torn down, causing a read of unallocated
2337         memory in CCScopedThreadProxy::runTaskIfNotShutdown (as m_targetThread
2338         is no longer valid).
2339
2340         The fix is check m_shutdown before touching m_targetThread in
2341         CCScopedThreadProxy. That is, events will still be queued after shutdown
2342         but they will not be processed.
2343
2344         Reviewed by James Robinson.
2345
2346 2011-12-14  Jonathan Backer  <backer@chromium.org>
2347
2348         [chromium] Plumb through flag for enabling partial swap
2349         https://bugs.webkit.org/show_bug.cgi?id=74513
2350
2351         Reviewed by James Robinson.
2352
2353         * public/WebSettings.h:
2354         * public/platform/WebLayerTreeView.h:
2355         (WebKit::WebLayerTreeView::Settings::Settings):
2356         * src/WebLayerTreeView.cpp:
2357         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
2358         * src/WebSettingsImpl.cpp:
2359         (WebKit::WebSettingsImpl::setPartialSwapEnabled):
2360         * src/WebSettingsImpl.h:
2361         * src/WebViewImpl.cpp:
2362         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2363
2364 2011-12-14  Peter Beverloo  <peter@chromium.org>
2365
2366         [Chromium] Roll chromium DEPS (r113807 -> r114356)
2367         https://bugs.webkit.org/show_bug.cgi?id=74496
2368
2369         Reviewed by Tony Gentilcore.
2370
2371         Roll deps to r114356 and update the location of sfntly to
2372         pick up the change at Chromium.
2373
2374         * DEPS:
2375
2376 2011-12-13  Dirk Pranke  <dpranke@chromium.org>
2377
2378         chromium port - remove nacl hack in DEPS/gyp_webkit
2379         https://bugs.webkit.org/show_bug.cgi?id=74150
2380
2381         Reviewed by Tony Chang.
2382
2383         This change reverts the change added in r101011; it is
2384         no longer necessary to pull in anything from Native Client for
2385         the chromium port to build.
2386
2387         * DEPS:
2388         * gyp_webkit:
2389
2390 2011-12-13  Dave Michael  <dmichael@chromium.org>
2391
2392         Export WebArrayBuffer::byteLength
2393         https://bugs.webkit.org/show_bug.cgi?id=74438
2394
2395         Reviewed by Darin Fisher.
2396
2397         * public/WebArrayBuffer.h:
2398
2399 2011-12-13  Kenneth Russell  <kbr@google.com>
2400
2401         Unreviewed, rolling out r102693.
2402         http://trac.webkit.org/changeset/102693
2403         https://bugs.webkit.org/show_bug.cgi?id=74334
2404
2405         Broke Chromium Windows DRT build
2406
2407         * features.gypi:
2408
2409 2011-12-13  Peter Beverloo  <peter@chromium.org>
2410
2411         [Chromium] Pull in FreeType and decrease check-out complexity for Android
2412         https://bugs.webkit.org/show_bug.cgi?id=74401
2413
2414         Pull in FreeType in the third_party/ directory from a separate git
2415         repository at Chromium. This introduces a new prerequisite for checking
2416         out the Chromium WebKit port for Android, namely that git needs to be
2417         available on the system. gclient can handle this just fine.
2418
2419         Reviewed by Adam Barth.
2420
2421         * DEPS:
2422
2423 2011-12-13  Alok Priyadarshi  <alokp@chromium.org>
2424
2425         [chromium] compositing/masks layout tests fail with accelerated drawing
2426         https://bugs.webkit.org/show_bug.cgi?id=72760
2427
2428         Reviewed by Stephen White.
2429
2430         * tests/TiledLayerChromiumTest.cpp:
2431         (WTF::FakeLayerTextureUpdater::createTexture):
2432
2433 2011-12-13  Stephen White  <senorblanco@chromium.org>
2434
2435         Enable CSS_FILTERS in Chromium.
2436         https://bugs.webkit.org/show_bug.cgi?id=74334
2437
2438         Reviewed by Kenneth Russell.
2439
2440         * features.gypi:
2441
2442 2011-12-12  Ryosuke Niwa  <rniwa@webkit.org>
2443
2444         WebKit code shouldn't be calling applyCommand directly
2445         https://bugs.webkit.org/show_bug.cgi?id=74337
2446
2447         Reviewed by Darin Adler.
2448
2449         * src/WebFrameImpl.cpp:
2450         (WebKit::WebFrameImpl::replaceSelection):
2451
2452 2011-12-12  David Grogan  <dgrogan@chromium.org>
2453
2454         Fix compilation error when !ENABLE(WORKERS)
2455         https://bugs.webkit.org/show_bug.cgi?id=74029
2456
2457         Reviewed by Yury Semikhatsky.
2458
2459         * features.gypi:
2460         * src/IDBFactoryBackendProxy.cpp:
2461         (WebKit::IDBFactoryBackendProxy::openFromWorker):
2462         * src/PlatformSupport.cpp:
2463         * src/WebDevToolsAgentImpl.cpp:
2464         (WebKit::WebDevToolsAgent::disconnectEventAsText):
2465         * src/WebWorkerRunLoop.cpp:
2466
2467 2011-12-12  Shawn Singh  <shawnsingh@chromium.org>
2468
2469         [chromium] Remove assumption that empty surface is always at end of list
2470         https://bugs.webkit.org/show_bug.cgi?id=74037
2471
2472         Reviewed by James Robinson.
2473
2474         * tests/CCLayerTreeHostCommonTest.cpp:
2475         (WebCore::TEST):
2476
2477 2011-12-09  Daniel Cheng  <dcheng@chromium.org>
2478
2479         [chromium] Remove BufferDrag from WebClipboard::Buffer enum.
2480         https://bugs.webkit.org/show_bug.cgi?id=74227
2481
2482         Reviewed by Tony Chang.
2483
2484         This enum value was intended for asynchronous data retrieval during drop operations; since
2485         that was never implemented, I'm removing this enum value.
2486
2487         * public/platform/WebClipboard.h:
2488         * src/AssertMatchingEnums.cpp:
2489
2490 2011-12-12  Tommy Widenflycht  <tommyw@google.com>
2491
2492         [chromium] MediaStream API: Moving WebMediaStreamSource.h
2493         https://bugs.webkit.org/show_bug.cgi?id=74081
2494
2495         Moving WebMediaStreamSource.h to public/platform.
2496         Keeping a stub in public as to not affect chromium right now.
2497
2498         Reviewed by Darin Fisher.
2499
2500         * WebKit.gyp:
2501         * public/WebMediaStreamSource.h:
2502         * public/platform/WebMediaStreamSource.h: Copied from Source/WebKit/chromium/public/WebMediaStreamSource.h.
2503         (WebKit::WebMediaStreamSource::WebMediaStreamSource):
2504         (WebKit::WebMediaStreamSource::~WebMediaStreamSource):
2505         (WebKit::WebMediaStreamSource::isNull):
2506         * src/AssertMatchingEnums.cpp:
2507         * src/UserMediaClientImpl.cpp:
2508         * src/WebMediaStreamDescriptor.cpp:
2509         * src/WebMediaStreamRegistry.cpp:
2510         * src/WebMediaStreamSource.cpp:
2511         * src/WebUserMediaRequest.cpp:
2512
2513 2011-12-09  James Robinson  <jamesr@chromium.org>
2514
2515         [chromium] Remove forwarding headers for WebLayer APIs
2516         https://bugs.webkit.org/show_bug.cgi?id=73729
2517
2518         Reviewed by Adam Barth.
2519
2520         These are no longer necessary.
2521
2522         * WebKit.gyp:
2523         * public/WebContentLayer.h: Removed.
2524         * public/WebContentLayerClient.h: Removed.
2525         * public/WebExternalTextureLayer.h: Removed.
2526         * public/WebLayer.h: Removed.
2527         * public/WebLayerClient.h: Removed.
2528         * public/WebLayerTreeView.h: Removed.
2529         * public/WebLayerTreeViewClient.h: Removed.
2530
2531 2011-12-09  Karl Koscher  <supersat@chromium.org>
2532
2533         [chromium] add accessors to WebDOMMessageEvent
2534         https://bugs.webkit.org/show_bug.cgi?id=73346
2535
2536         Reviewed by Darin Fisher.
2537
2538         * public/WebDOMMessageEvent.h:
2539         * src/WebDOMMessageEvent.cpp:
2540         (WebKit::WebDOMMessageEvent::data):
2541         (WebKit::WebDOMMessageEvent::origin):
2542
2543 2011-12-09  Karl Koscher  <supersat@chromium.org>
2544
2545         [chromium] add event methods to WebFrame
2546         https://bugs.webkit.org/show_bug.cgi?id=73259
2547
2548         Reviewed by Darin Fisher.
2549
2550         * public/WebDOMEventListener.h: Use EventTarget instead of Node
2551         * public/WebFrame.h: Add event methods
2552         * src/WebDOMEventListener.cpp: Use EventTarget instead of Node
2553         (WebKit::WebDOMEventListener::createEventListenerWrapper):
2554         (WebKit::WebDOMEventListener::getEventListenerWrapper):
2555         * src/WebDOMEventListenerPrivate.cpp: Use EventTarget instead of Node
2556         (WebKit::WebDOMEventListenerPrivate::createEventListenerWrapper):
2557         (WebKit::WebDOMEventListenerPrivate::getEventListenerWrapper):
2558         * src/WebDOMEventListenerPrivate.h: Use EventTarget instead of Node
2559         (WebKit::WebDOMEventListenerPrivate::ListenerInfo::ListenerInfo):
2560         * src/WebFrameImpl.cpp:
2561         (WebKit::WebFrameImpl::addEventListener): register a listener on a WebFrame
2562         (WebKit::WebFrameImpl::removeEventListener): remove a listener on a WebFrame
2563         (WebKit::WebFrameImpl::dispatchEvent): dispatch an event to a WebFrame
2564         * src/WebFrameImpl.h: Add event methods
2565
2566 2011-12-09  Dirk Pranke  <dpranke@chromium.org>
2567
2568         chromium win build: revert build_webkit_exes_from_webkit_gyp change
2569         https://bugs.webkit.org/show_bug.cgi?id=74225
2570
2571         Reviewed by Tony Chang.
2572
2573         This change sets build_webkit_exes_from_webkit_gyp back to 1;
2574         the "All.gyp" solution doesn't work on windows.
2575
2576         * gyp_webkit:
2577
2578 2011-12-09  Dirk Pranke  <dpranke@chromium.org>
2579
2580         chromium: visual studio projects are busted when build_webkit_exes_from_webkit_gyp==0
2581         https://bugs.webkit.org/show_bug.cgi?id=74212
2582
2583         Reviewed by Tony Chang.
2584
2585         The change introduced in r102201 to split the executables out of
2586         WebKit.gyp apparently doesn't work right on Windows, since
2587         WebKit.gyp and Tools.gyp refer to dependent projects by
2588         different relative paths (it appears gyp doesn't normalize the
2589         paths). This change moves Tools.gyp to be in the same directory
2590         as WebKit.gyp (and All.gyp), which should fix this and
2591         conveniently will also solve the problem of how to add Tools.gyp
2592         to the chromium DEPS file.
2593
2594         * All.gyp:
2595         * Tools.gyp: Renamed from ../../../Tools/Tools.gyp.
2596
2597 2011-12-09  Cary Clark  <caryclark@google.com>
2598
2599         Chromium DEPS roll to pick up new use_skia=1 default on Chromium-Mac
2600         https://bugs.webkit.org/show_bug.cgi?id=74118
2601
2602         Reviewed by Adam Barth.
2603
2604         * DEPS:
2605
2606 2011-12-08  Fady Samuel  <fsamuel@chromium.org>
2607
2608         [Chromium] Enable viewport metatag
2609         https://bugs.webkit.org/show_bug.cgi?id=73495
2610
2611         Reviewed by Darin Fisher.
2612
2613         Compute the appropriate fixed layout size, page, and device scale factors,
2614         based on the viewport meta tag parameters.
2615
2616         See http://developer.android.com/guide/webapps/targeting.html for more information.
2617
2618
2619         * features.gypi:
2620         * public/WebView.h:
2621         * src/ChromeClientImpl.cpp:
2622         (WebKit::ChromeClientImpl::layoutUpdated):
2623         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
2624         * src/ChromeClientImpl.h:
2625         * src/WebFrameImpl.cpp:
2626         (WebKit::WebFrameImpl::createFrameView):
2627         * src/WebViewImpl.cpp:
2628         (WebKit::WebViewImpl::WebViewImpl):
2629         (WebKit::WebViewImpl::isPageScaleFactorSet):
2630         (WebKit::WebViewImpl::setPageScaleFactor):
2631         (WebKit::WebViewImpl::observeNewNavigation):
2632         * src/WebViewImpl.h:
2633
2634 2011-12-08  Pierre Rossi  <pierre.rossi@gmail.com>
2635
2636         Drop ENABLE_NO_LISTBOX_RENDERING, and make it a runtime decision.
2637         https://bugs.webkit.org/show_bug.cgi?id=73916
2638
2639         Reviewed by Kent Tamura.
2640
2641         * src/ExternalPopupMenu.cpp:
2642         (WebKit::ExternalPopupMenu::didAcceptIndices):
2643         (WebKit::ExternalPopupMenu::getPopupMenuInfo):
2644
2645 2011-12-08  David Reveman  <reveman@chromium.org>
2646
2647         [Chromium] Add per-tile painting flag to DumpRenderTree and rename AcceleratedDrawing to AcceleratedPainting in chromium specific code.
2648         https://bugs.webkit.org/show_bug.cgi?id=74017
2649
2650         Reviewed by James Robinson.
2651
2652         Add WebSettings::setAcceleratedPaintingEnabled to public API.
2653
2654         * public/WebSettings.h:
2655         * src/WebSettingsImpl.cpp:
2656         (WebKit::WebSettingsImpl::WebSettingsImpl):
2657         (WebKit::WebSettingsImpl::setAcceleratedPaintingEnabled):
2658         (WebKit::WebSettingsImpl::setPerTilePaintingEnabled):
2659         * src/WebSettingsImpl.h:
2660         * src/WebViewImpl.cpp:
2661         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2662
2663 2011-12-08  James Robinson  <jamesr@chromium.org>
2664
2665         [chromium] Move NonCompositedContentHost to WebKit
2666         https://bugs.webkit.org/show_bug.cgi?id=74047
2667
2668         Reviewed by Kenneth Russell.
2669
2670         Moves NonCompositedContentHost into WebKit/chromium/src. This class is a helper class designed to make it easier
2671         for WebViewImpl to interface with the compositor. The compositor proper should not depend on this class, and
2672         other clients of the compositor do not need this functionality.
2673
2674         Follow-up patches will transition this code from using compositor-internal interfaces directly to using
2675         higher-level interfaces like the WebKit platform APIs. This patch simply does a file mv and updates namespaces
2676         to keep things simpler.
2677
2678         Refactor only and covered by several unit tests.
2679
2680         * WebKit.gyp:
2681         * src/NonCompositedContentHost.cpp: Renamed from Source/WebCore/platform/graphics/chromium/NonCompositedContentHost.cpp.
2682         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
2683         (WebKit::NonCompositedContentHost::~NonCompositedContentHost):
2684         (WebKit::NonCompositedContentHost::setBackgroundColor):
2685         (WebKit::NonCompositedContentHost::setScrollLayer):
2686         (WebKit::NonCompositedContentHost::setViewport):
2687         (WebKit::NonCompositedContentHost::scrollLayer):
2688         (WebKit::NonCompositedContentHost::protectVisibleTileTextures):
2689         (WebKit::NonCompositedContentHost::invalidateRect):
2690         (WebKit::NonCompositedContentHost::notifyAnimationStarted):
2691         (WebKit::NonCompositedContentHost::notifySyncRequired):
2692         (WebKit::NonCompositedContentHost::paintContents):
2693         (WebKit::NonCompositedContentHost::showDebugBorders):
2694         (WebKit::NonCompositedContentHost::showRepaintCounter):
2695         * src/NonCompositedContentHost.h: Renamed from Source/WebCore/platform/graphics/chromium/NonCompositedContentHost.h.
2696         (WebKit::NonCompositedContentHost::create):
2697         (WebKit::NonCompositedContentHost::topLevelRootLayer):
2698         * src/WebViewImpl.cpp:
2699         (WebKit::WebViewImpl::nonCompositedContentHost):
2700         * src/WebViewImpl.h:
2701         * tests/LayerChromiumTest.cpp:
2702
2703 2011-12-08  Sami Kyostila  <skyostil@google.com>
2704
2705         [chromium] Layer contents scale change should trigger invalidation
2706
2707         https://bugs.webkit.org/show_bug.cgi?id=74086
2708
2709         When the contents scale of a layer is changed, the entire contents of
2710         the layer should be marked dirty.
2711
2712         Reviewed by James Robinson.
2713
2714         * tests/LayerChromiumTest.cpp:
2715
2716 2011-12-08  Dana Jansens  <danakj@chromium.org>
2717
2718         [chromium] Set opaque() for VideoLayerChromium
2719         https://bugs.webkit.org/show_bug.cgi?id=73858
2720
2721         Reviewed by James Robinson.
2722
2723         * src/WebMediaPlayerClientImpl.cpp:
2724         (WebKit::isVideoFrameFormatOpaque):
2725         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
2726
2727 2011-12-08  Elliot Poger  <epoger@google.com>
2728
2729         Chromium DEPS roll 112974 -> 113603
2730         https://bugs.webkit.org/show_bug.cgi?id=74105
2731
2732         Reviewed by Adam Barth.
2733
2734         * DEPS:
2735
2736 2011-12-08  Tony Chang  <tony@chromium.org>
2737
2738         [chromium] remove headers from WebKit.gyp that moved into WebKit/chromium/public/platform
2739         https://bugs.webkit.org/show_bug.cgi?id=74106
2740
2741         Reviewed by Darin Fisher.
2742
2743         * WebKit.gyp:
2744
2745 2011-12-08  Peter Beverloo  <peter@chromium.org>
2746
2747         [Chromium] Exclude the four RenderTableCellDeathTest death tests for Android
2748         https://bugs.webkit.org/show_bug.cgi?id=73997
2749
2750         The ASSERT_DEATH macro is not yet available in Google Test when
2751         building for Android, which causes compilation errors. This code
2752         will be removed once support lands in the GTest version Chromium
2753         uses. See https://bugs.webkit.org/show_bug.cgi?id=74089.
2754
2755         Reviewed by Julien Chaffraix.
2756
2757         * tests/RenderTableCellTest.cpp:
2758
2759 2011-12-08  Joshua Bell  <jsbell@chromium.org>
2760
2761         IndexedDB: WebKit API addition of IDBObjectStore.count() and IDBIndex.count()
2762         https://bugs.webkit.org/show_bug.cgi?id=73685
2763
2764         Reviewed by Darin Fisher.
2765
2766         Implementation to follow - this just extends the WebKit API.
2767
2768         * public/WebIDBIndex.h:
2769         (WebKit::WebIDBIndex::count):
2770         * public/WebIDBObjectStore.h:
2771         (WebKit::WebIDBObjectStore::count):
2772
2773 2011-12-07  Alexandre Elias  <aelias@google.com>
2774
2775         [chromium] Add page-scale animation support to Impl thread
2776         https://bugs.webkit.org/show_bug.cgi?id=72996
2777
2778         Reviewed by James Robinson.
2779
2780         This adds a new math helper class to compute the progress of the
2781         animation, and code in the CCLayerTreeHostImpl to apply the animation
2782         frame by frame.
2783
2784         No new tests. (https://bugs.webkit.org/show_bug.cgi?id=71529 filed.)
2785
2786         * public/WebCompositor.h:
2787         * public/WebInputEvent.h:
2788         (WebKit::WebPageScaleAnimationEvent::WebPageScaleAnimationEvent):
2789         * public/android/WebInputEventFactory.h:
2790         * src/WebCompositorImpl.cpp:
2791         (WebKit::WebCompositorImpl::handlePageScaleAnimationEvent):
2792         * src/WebCompositorImpl.h:
2793         * src/WebPopupMenuImpl.cpp:
2794         (WebKit::WebPopupMenuImpl::handleInputEvent):
2795         * src/android/WebInputEventFactory.cpp:
2796         (WebKit::WebInputEventFactory::pageScaleAnimationEvent):
2797
2798 2011-12-07  Fady Samuel  <fsamuel@chromium.org>
2799
2800         [Chromium] Plumb DPI info into PlatformScreen
2801         https://bugs.webkit.org/show_bug.cgi?id=70556
2802
2803         Reviewed by Darin Fisher.
2804         
2805         Make DPI information accessible from WebKit through
2806         PlatformScreen. This is useful when making scaling 
2807         computations on various devices (e.g. Viewport meta tag).
2808
2809         This patch adds DPI plumbing on Chromium Win/Mac/Linux
2810         platforms.
2811
2812         * public/WebScreenInfo.h:
2813         (WebKit::WebScreenInfo::WebScreenInfo):
2814         * src/PlatformSupport.cpp:
2815         (WebCore::PlatformSupport::screenHorizontalDPI):
2816         (WebCore::PlatformSupport::screenVerticalDPI):
2817         * src/mac/WebScreenInfoFactory.mm:
2818         (WebKit::WebScreenInfoFactory::screenInfo):
2819         * src/win/WebScreenInfoFactory.cpp:
2820         (WebKit::WebScreenInfoFactory::screenInfo):
2821         * src/x11/WebScreenInfoFactory.cpp:
2822         (WebKit::WebScreenInfoFactory::screenInfo):
2823
2824 2011-12-07  Alexandre Elias  <aelias@google.com>
2825
2826         [chromium] Preserve original pageScale limits in WebViewImpl
2827         https://bugs.webkit.org/show_bug.cgi?id=72983
2828
2829         Reviewed by Darin Fisher.
2830
2831         Preserve the originally viewport-tag specified page scale limits, and
2832         compute the final ones in a new private method
2833         computePageScaleFactorLimits().  This is then called when contents
2834         size change (which can affect the minimum).
2835
2836         Also clean up several minor bugs, namely clamping issues (reorder
2837         clampNegativeToZero to avoid negative scroll offsets, and force max to
2838         be greater than min), and incorrect behavior in the presence of
2839         "solid" scrollbars.
2840
2841         * src/ChromeClientImpl.cpp:
2842         (WebKit::ChromeClientImpl::contentsSizeChanged):
2843         * src/WebViewImpl.cpp:
2844         (WebKit::WebViewImpl::WebViewImpl):
2845         (WebKit::WebViewImpl::clampPageScaleFactorToLimits):
2846         (WebKit::WebViewImpl::clampOffsetAtScale):
2847         (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset):
2848         (WebKit::WebViewImpl::setPageScaleFactor):
2849         (WebKit::WebViewImpl::setPageScaleFactorLimits):
2850         (WebKit::WebViewImpl::computePageScaleFactorLimits):
2851         (WebKit::WebViewImpl::didChangeContentsSize):
2852         * src/WebViewImpl.h:
2853
2854 2011-12-07  Chris Sharp  <csharp@chromium.org>
2855         
2856         Exposing boundsInScreenSpace in WebElement.
2857         https://bugs.webkit.org/show_bug.cgi?id=71579
2858
2859         Exposing boundsInScreenSpace through a new function,
2860         boundsInViewportSpace, to assist in moving the Autofill UI out of
2861         WebKit in Chromium. Renamed the exposed function to provide a better
2862         meaning of what the function does in the Chromium code.
2863         More information can be found at:
2864         http://crbug.com/51644
2865
2866
2867         Reviewed by Darin Fisher.
2868
2869         * public/WebElement.h:
2870         * src/WebElement.cpp:
2871         (WebKit::WebElement::boundsInViewportSpace):
2872
2873 2011-12-07  Adam Klein  <adamk@chromium.org>
2874
2875         [MutationObservers] Enable in Chromium trunk
2876         https://bugs.webkit.org/show_bug.cgi?id=73851
2877
2878         Reviewed by Ojan Vafai.
2879
2880         Re-landing after fixing Chromium unit test crashes in r102171
2881         and inspector debugger crash in r102264.
2882
2883         * features.gypi:
2884
2885 2011-12-07  Jonathan Backer  <backer@chromium.org>
2886
2887         [chromium] Plumb damage from WebExternalTextureLayer and WebPluginContainer to CCDamageTracker
2888         https://bugs.webkit.org/show_bug.cgi?id=73485
2889
2890         Reviewed by Darin Fisher.
2891
2892         * public/platform/WebExternalTextureLayer.h:
2893         * src/WebExternalTextureLayer.cpp:
2894         (WebKit::WebExternalTextureLayer::invalidateRect):
2895         * src/WebPluginContainerImpl.cpp:
2896         (WebKit::WebPluginContainerImpl::commitBackingTexture):
2897
2898 2011-12-06  Dirk Pranke  <dpranke@chromium.org>
2899
2900         Fix typo in WebKit.gyp introduced in previous change.
2901
2902         Unreviewed, build fix.
2903
2904         * WebKit.gyp:
2905
2906 2011-12-06  Dirk Pranke  <dpranke@chromium.org>
2907
2908         binaries in webkit.gyp should be split into a new file to break circular dependencies on webkit_support
2909         https://bugs.webkit.org/show_bug.cgi?id=73382
2910
2911         Reviewed by Tony Chang.
2912
2913         XCode (and hence GYP) can't handle circular dependencies between
2914         files (and projects). Accordingly, although the binaries in
2915         WebKit.gyp depend on webkit_support and webkit_support depends
2916         on webkit, we don't mention the latter dependency in the file.
2917         To fix this, this change moves the binaries like DRT into a new
2918         GYP file, and modifies gyp_webkit to build from that file
2919         instead of WebKit.gyp.
2920
2921         * WebKit.gyp:
2922         * All.gyp:
2923         * WebKitUnitTests.gyp:
2924         * gyp_webkit:
2925
2926 2011-12-06  Adrienne Walker  <enne@google.com>
2927
2928         [chromium] setNeedsCommit on non-composited host layers should trigger commit
2929         https://bugs.webkit.org/show_bug.cgi?id=73711
2930
2931         Reviewed by James Robinson.
2932
2933         Add some tests to make sure that modifying the noncomposited content
2934         host triggers commits.
2935
2936         Properties that trigger setNeedsCommit should only do so when the
2937         property changes. Additionally, make more property changes properly
2938         trigger commits.
2939
2940         * tests/LayerChromiumTest.cpp:
2941
2942 2011-12-06  David Reveman  <reveman@chromium.org>
2943
2944         [Chromium] Implement tile-sized painting using SkPicture.
2945         https://bugs.webkit.org/show_bug.cgi?id=71869
2946
2947         Reviewed by James Robinson.
2948
2949         Add perTilePainting setting that is used by compositor to determine
2950         what texture uploader to use.
2951
2952         * public/WebSettings.h:
2953         * src/WebSettingsImpl.cpp:
2954         (WebKit::WebSettingsImpl::WebSettingsImpl):
2955         (WebKit::WebSettingsImpl::setPerTilePainting):
2956         * src/WebSettingsImpl.h:
2957         (WebKit::WebSettingsImpl::perTilePainting):
2958         * src/WebViewImpl.cpp:
2959         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2960
2961 2011-12-06  Dana Jansens  <danakj@chromium.org>
2962
2963         [chromium] Set opaque flag for ImageLayerChromium
2964         https://bugs.webkit.org/show_bug.cgi?id=72964
2965
2966         Reviewed by James Robinson.
2967
2968         * WebKit.gypi:
2969         * tests/DragImageTest.cpp:
2970         (WebCore::TestImage::TestImage):
2971         (WebCore::TestImage::nativeImageForCurrentFrame):
2972         * tests/ImageLayerChromiumTest.cpp: Added.
2973         (WebCore::MockGraphicsLayerClient::notifyAnimationStarted):
2974         (WebCore::MockGraphicsLayerClient::notifySyncRequired):
2975         (WebCore::MockGraphicsLayerClient::paintContents):
2976         (WebCore::MockGraphicsLayerClient::showDebugBorders):
2977         (WebCore::MockGraphicsLayerClient::showRepaintCounter):
2978         (WebCore::TestImage::create):
2979         (WebCore::TestImage::TestImage):
2980         (WebCore::TestImage::isBitmapImage):
2981         (WebCore::TestImage::currentFrameHasAlpha):
2982         (WebCore::TestImage::size):
2983         (WebCore::TestImage::nativeImageForCurrentFrame):
2984         (WebCore::TestImage::destroyDecodedData):
2985         (WebCore::TestImage::decodedSize):
2986         (WebCore::TestImage::draw):
2987         (WebCore::TEST):
2988
2989 2011-12-06  Adam Klein  <adamk@chromium.org>
2990
2991         [chromium] Guard access to WebKitPlatformSupport::currentThread with a null check
2992         https://bugs.webkit.org/show_bug.cgi?id=73937
2993
2994         Reviewed by Adam Barth.
2995
2996         Though |currentThread| is never null in production code, it is null in
2997         unit tests (such as Chromium's unit_tests) that call WebKit::initialize()
2998         without first constructing a MessageLoop.
2999
3000         * src/WebKit.cpp:
3001         (WebKit::initialize):
3002         (WebKit::shutdown):
3003
3004 2011-12-06  Alexandre Elias  <aelias@google.com>
3005
3006         [chromium] Apply sent deltas on finishCommit
3007         https://bugs.webkit.org/show_bug.cgi?id=73884
3008
3009         Reviewed by James Robinson.
3010
3011         This moves scroll and pageScale "sent" deltas to be applied to
3012         the layer at the end of the commit, instead of the beginning.
3013
3014         This has several advantages, especially for page scale:
3015         - When pageScale changes, no longer any need to change the scroll's
3016         coordinate space at beginning of commit, which is complex and prone to
3017         bugs (this fixes a problem where we were forgetting to modify the
3018         scrollPosition before).
3019         - No need for non-commit-related code to consider the "sent" values.
3020         m_pageScale is now always the content scale factor, and
3021         m_pageScaleDelta is the scale to be on the impl-side matrix.
3022         - This will make it easy to send arbitrary fake or future delta
3023         values for example while pinch zooming out.
3024
3025         The scroll logic is similarly altered for consistency's sake.  Note that
3026         I also moved the tree synchronize to the beginning of finishCommit
3027         in order to avoid having to change the pageScale coordinate space of
3028         sentScrollDelta in adjustScrollsForPageScaleChange().
3029
3030         * tests/CCLayerTreeHostImplTest.cpp:
3031         (WebKit::TEST_F):
3032
3033 2011-12-06  Adam Barth  <abarth@webkit.org>
3034
3035         Remove forwarding header now that downstream has been fixed to refer to
3036         the actual location of this header.
3037
3038         * public/WebRect.h: Removed.
3039
3040 2011-12-06  Dimitri Glazkov  <dglazkov@chromium.org>
3041
3042         Unreviewed, rolling out r102091.
3043         http://trac.webkit.org/changeset/102091
3044         https://bugs.webkit.org/show_bug.cgi?id=73711
3045
3046         Caused Clang Linux compile failure.
3047
3048         * tests/LayerChromiumTest.cpp:
3049
3050 2011-12-06  Sheriff Bot  <webkit.review.bot@gmail.com>
3051
3052         Unreviewed, rolling out r102102.
3053         http://trac.webkit.org/changeset/102102
3054         https://bugs.webkit.org/show_bug.cgi?id=73925
3055
3056         Causes segmentation fault on chromium unit_tests,
3057         content_unittests, sync_unit_tests (Requested by vsevik on
3058         #webkit).
3059
3060         * features.gypi:
3061
3062 2011-12-06  Vsevolod Vlasov  <vsevik@chromium.org>
3063
3064         Unreviewed chromium expectations update.
3065
3066         * tests/KURLTest.cpp:
3067         (ComponentCase::TEST):
3068
3069 2011-12-06  Eric Penner  <epenner@google.com>
3070
3071         [chromium] Set texture limits as multiples of viewport size instead of hardcoded values
3072         https://bugs.webkit.org/show_bug.cgi?id=72202
3073
3074         Reviewed by James Robinson.
3075
3076         * tests/TiledLayerChromiumTest.cpp:
3077         (WTF::TEST):
3078
3079 2011-12-06  Sheriff Bot  <webkit.review.bot@gmail.com>
3080
3081         Unreviewed, rolling out r102043.
3082         http://trac.webkit.org/changeset/102043
3083         https://bugs.webkit.org/show_bug.cgi?id=73898
3084
3085         Breaks chromium mac-cg compilation. (Requested by vsevik on
3086         #webkit).
3087
3088         * WebKit.gypi:
3089         * tests/ImageLayerChromiumTest.cpp: Removed.
3090
3091 2011-12-05  Rafael Weinstein  <rafaelw@chromium.org>
3092
3093         [MutationObservers] Enable in Chromium trunk
3094         https://bugs.webkit.org/show_bug.cgi?id=73851
3095
3096         Reviewed by Ojan Vafai.
3097
3098         * features.gypi:
3099
3100 2011-12-05  James Robinson  <jamesr@chromium.org>
3101
3102         chromium build fix
3103
3104         * src/WebLayerTreeView.cpp:
3105
3106 2011-12-05  James Robinson  <jamesr@chromium.org>
3107
3108         Rollout http://trac.webkit.org/changeset/102019, dependent has not
3109         landed in chromium
3110
3111         * WebKit.gyp:
3112         * public/WebContentLayer.h: Added.
3113         * public/WebExternalTextureLayer.h: Added.
3114         * public/WebLayer.h: Added.
3115         * public/WebLayerClient.h: Added.
3116         * public/WebLayerTreeView.h: Added.
3117         * public/WebLayerTreeViewClient.h: Added.
3118         * src/WebLayerTreeView.cpp:
3119         * src/WebLayerTreeViewImpl.cpp:
3120
3121 2011-12-05  Dana Jansens  <danakj@chromium.org>
3122
3123         Set opaque flag for WebGLLayerChromium
3124         https://bugs.webkit.org/show_bug.cgi?id=73876
3125
3126         Reviewed by James Robinson.
3127
3128         * WebKit.gypi:
3129         * tests/WebGLLayerChromiumTest.cpp: Added.
3130         (WebKit::CompositorMockWebGraphicsContext3D::create):
3131         (WebKit::CompositorMockWebGraphicsContext3D::makeContextCurrent):
3132         (WebKit::CompositorMockWebGraphicsContext3D::createProgram):
3133         (WebKit::CompositorMockWebGraphicsContext3D::createShader):
3134         (WebKit::CompositorMockWebGraphicsContext3D::getShaderiv):
3135         (WebKit::CompositorMockWebGraphicsContext3D::getProgramiv):
3136         (WebKit::CompositorMockWebGraphicsContext3D::getContextAttributes):
3137         (WebKit::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
3138         (WebKit::createGraphicsContext):
3139         (WebKit::TEST):
3140
3141 2011-12-05  Adrienne Walker  <enne@google.com>
3142
3143         [chromium] setNeedsCommit on non-composited host layers should trigger commit
3144         https://bugs.webkit.org/show_bug.cgi?id=73711
3145
3146         Reviewed by James Robinson.
3147
3148         Add some tests to make sure that modifying the noncomposited content
3149         host triggers commits.
3150
3151         Properties that trigger setNeedsCommit should only do so when the
3152         property changes. Additionally, make more property changes properly
3153         trigger commits.
3154
3155         * tests/LayerChromiumTest.cpp:
3156
3157 2011-12-05  Stephen White  <senorblanco@chromium.org>
3158
3159         Allow the ImageBuffers used by SVG filters to be accelerated
3160         https://bugs.webkit.org/show_bug.cgi?id=73842
3161
3162         Reviewed by Kenneth Russell.
3163
3164         * public/WebSettings.h:
3165         * src/WebSettingsImpl.cpp:
3166         (WebKit::WebSettingsImpl::setAcceleratedFiltersEnabled):
3167         * src/WebSettingsImpl.h:
3168
3169 2011-12-05  Adam Barth  <abarth@webkit.org>
3170
3171         [Chromium] Chromium fails to compile due to missing WebContentLayerClient.h
3172         https://bugs.webkit.org/show_bug.cgi?id=73881
3173
3174         This patch adds a forwarding header to fix the downstream Windows build:
3175         http://build.chromium.org/p/chromium.webkit/builders/Win%20Builder/builds/12955/steps/compile/logs/stdio
3176
3177         * public/WebContentLayerClient.h: Added.
3178
3179 2011-12-05  Adam Barth  <abarth@webkit.org>
3180
3181         Add a shim to fix the downstream Chromium compile.  The real fix should
3182         be made downstream via http://codereview.chromium.org/8801036/, but the
3183         Chromium tree is closed at the moment.
3184
3185         * public/WebRect.h: Added.
3186
3187 2011-12-01  Vangelis Kokkevis  <vangelis@chromium.org>
3188
3189         Use ANGLE's texture_usage and texture_storage extensions when allocating compositor textures.
3190         https://bugs.webkit.org/show_bug.cgi?id=73621
3191
3192         Add the necessary entry points and enums to GraphicsContext3D.
3193
3194         Reviewed by Kenneth Russell.
3195
3196         * public/platform/WebGraphicsContext3D.h:
3197         * src/Extensions3DChromium.cpp:
3198         (WebCore::Extensions3DChromium::texStorage2DEXT):
3199         * src/GraphicsContext3DChromium.cpp:
3200         * src/GraphicsContext3DPrivate.h:
3201         * tests/MockWebGraphicsContext3D.h:
3202         (WebKit::MockWebGraphicsContext3D::texStorage2DEXT):
3203
3204 2011-12-05  Adam Barth  <abarth@webkit.org>
3205
3206         Another attempted build fix.
3207
3208         * src/linux/WebFontInfo.cpp:
3209
3210 2011-12-05  Adam Barth  <abarth@webkit.org>
3211
3212         Fix Linux build.
3213
3214         * public/linux/WebFontInfo.h:
3215
3216 2011-12-05  Adam Barth  <abarth@webkit.org>
3217
3218         [Chromium] Remove no-longer-used forwarding headers in the WebKit API
3219         https://bugs.webkit.org/show_bug.cgi?id=73845
3220
3221         Reviewed by Darin Fisher.
3222
3223         Delete unused forwarding headers and update includes to the new header
3224         locations.
3225
3226         * WebKit.gyp:
3227         * bridge/PeerConnectionHandlerInternal.cpp:
3228         * bridge/PeerConnectionHandlerInternal.h:
3229         * public/WebArrayBuffer.h:
3230         * public/WebArrayBufferView.h: Removed.
3231         * public/WebAudioBus.h: Removed.
3232         * public/WebAudioDevice.h: Removed.
3233         * public/WebBlobData.h: Removed.
3234         * public/WebBlobRegistry.h: Removed.
3235         * public/WebCString.h: Removed.
3236         * public/WebCanvas.h: Removed.
3237         * public/WebClipboard.h: Removed.
3238         * public/WebColor.h: Removed.
3239         * public/WebColorName.h: Removed.
3240         * public/WebCommon.h: Removed.
3241         * public/WebCompositorInputHandler.h:
3242         * public/WebCookie.h: Removed.
3243         * public/WebCookieJar.h: Removed.
3244         * public/WebData.h: Removed.
3245         * public/WebDragData.h: Removed.
3246         * public/WebFileSystem.h: Removed.
3247         * public/WebFloatPoint.h: Removed.
3248         * public/WebFloatQuad.h: Removed.
3249         * public/WebFloatRect.h: Removed.
3250         * public/WebGamepad.h: Removed.
3251         * public/WebGamepads.h: Removed.
3252         * public/WebGraphicsContext3D.h: Removed.
3253         * public/WebHTTPBody.h: Removed.
3254         * public/WebHTTPHeaderVisitor.h: Removed.
3255         * public/WebHTTPLoadInfo.h: Removed.
3256         * public/WebIDBCallbacks.h:
3257         * public/WebImage.h: Removed.
3258         * public/WebIntent.h:
3259         * public/WebIntentServiceInfo.h:
3260         * public/WebKitPlatformSupport.h: Removed.
3261         * public/WebLocalizedString.h: Removed.
3262         * public/WebMediaStreamDescriptor.h: Removed.
3263         * public/WebMimeRegistry.h: Removed.
3264         * public/WebNonCopyable.h: Removed.
3265         * public/WebPageOverlay.h:
3266         * public/WebPeerConnectionHandler.h: Removed.
3267         * public/WebPeerConnectionHandlerClient.h: Removed.
3268         * public/WebPoint.h: Removed.
3269         * public/WebPrivateOwnPtr.h: Removed.
3270         * public/WebPrivatePtr.h: Removed.
3271         * public/WebRect.h: Removed.
3272         * public/WebSerializedScriptValue.h: Removed.
3273         * public/WebSize.h: Removed.
3274         * public/WebSocketStreamError.h: Removed.
3275         * public/WebSocketStreamHandle.h: Removed.
3276         * public/WebSocketStreamHandleClient.h: Removed.
3277         * public/WebString.h: Removed.
3278         * public/WebThread.h: Removed.
3279         * public/WebThreadSafeData.h: Removed.
3280         * public/WebURL.h: Removed.
3281         * public/WebURLError.h: Removed.
3282         * public/WebURLLoadTiming.h: Removed.
3283         * public/WebURLLoader.h: Removed.
3284         * public/WebURLLoaderClient.h: Removed.
3285         * public/WebURLRequest.h: Removed.
3286         * public/WebURLResponse.h: Removed.
3287         * public/WebVector.h: Removed.
3288         * public/WebWorkerRunLoop.h:
3289         * public/android/WebThemeEngine.h: Removed.
3290         * public/linux/WebFontFamily.h: Removed.
3291         * public/linux/WebThemeEngine.h: Removed.
3292         * public/mac/WebThemeEngine.h: Removed.
3293         * public/win/WebThemeEngine.h: Removed.
3294         * src/ApplicationCacheHost.cpp:
3295         * src/ApplicationCacheHostInternal.h:
3296         * src/AssertMatchingEnums.cpp:
3297         * src/AssociatedURLLoader.cpp:
3298         * src/AssociatedURLLoader.h:
3299         * src/AsyncFileSystemChromium.cpp:
3300         * src/AsyncFileWriterChromium.cpp:
3301         * src/AudioDestinationChromium.cpp:
3302         * src/AudioDestinationChromium.h:
3303         * src/AutofillPopupMenuClient.cpp:
3304         * src/BlobRegistryProxy.cpp:
3305         * src/CCThreadImpl.cpp:
3306         * src/ChromeClientImpl.cpp:
3307         * src/ChromiumCurrentTime.cpp:
3308         * src/ChromiumOSRandomSource.cpp:
3309         * src/ChromiumThreading.cpp:
3310         * src/CompositionUnderlineBuilder.h:
3311         * src/CompositionUnderlineVectorBuilder.h:
3312         * src/ContextMenuClientImpl.cpp:
3313         * src/DragClientImpl.cpp:
3314         * src/DragScrollTimer.h:
3315         * src/ExternalPopupMenu.cpp:
3316         * src/FrameLoaderClientImpl.cpp:
3317         * src/GraphicsContext3DChromium.cpp:
3318         * src/IDBCallbacksProxy.cpp:
3319         * src/IDBCursorBackendProxy.cpp:
3320         * src/IDBFactoryBackendProxy.cpp:
3321         * src/IDBObjectStoreBackendProxy.cpp:
3322         * src/InspectorClientImpl.cpp:
3323         * src/InspectorFrontendClientImpl.cpp:
3324         * src/LocalFileSystemChromium.cpp:
3325         * src/LocalizedStrings.cpp:
3326         * src/NotificationPresenterImpl.cpp:
3327         * src/PlatformMessagePortChannel.cpp:
3328         * src/PlatformSupport.cpp:
3329         * src/ResourceHandle.cpp:
3330         * src/ResourceHandleInternal.h:
3331         * src/ScrollbarGroup.cpp:
3332         * src/SharedWorkerRepository.cpp:
3333         * src/SocketStreamHandle.cpp:
3334         * src/SpeechInputClientImpl.cpp:
3335         * src/StorageAreaProxy.cpp:
3336         * src/StorageEventDispatcherChromium.cpp:
3337         * src/StorageNamespaceProxy.cpp:
3338         * src/WebAccessibilityObject.cpp:
3339         * src/WebAnimationControllerImpl.cpp:
3340         * src/WebArrayBufferView.cpp:
3341         * src/WebAttribute.cpp:
3342         * src/WebAudioBus.cpp:
3343         * src/WebBindings.cpp:
3344         * src/WebBlobData.cpp:
3345         * src/WebCString.cpp:
3346         * src/WebColor.cpp:
3347         * src/WebCommon.cpp:
3348         * src/WebCompositorImpl.cpp:
3349         * src/WebCompositorInputHandlerImpl.cpp:
3350         * src/WebContentLayerImpl.cpp:
3351         * src/WebDOMEventListenerPrivate.h:
3352         * src/WebDOMMessageEvent.cpp:
3353         * src/WebDOMStringList.cpp:
3354         * src/WebData.cpp:
3355         * src/WebDataSourceImpl.cpp:
3356         * src/WebDatabase.cpp:
3357         * src/WebDevToolsAgentImpl.cpp:
3358         * src/WebDocument.cpp:
3359         * src/WebDocumentType.cpp:
3360         * src/WebDragData.cpp:
3361         * src/WebEntities.cpp:
3362         * src/WebExternalTextureLayerImpl.cpp:
3363         * src/WebFileChooserCompletionImpl.h:
3364         * src/WebFileSystemCallbacksImpl.cpp:
3365         * src/WebFileSystemCallbacksImpl.h:
3366         * src/WebFloatQuad.cpp:
3367         * src/WebFontImpl.cpp:
3368         * src/WebFormElement.cpp:
3369         * src/WebFrameImpl.cpp:
3370         * src/WebGeolocationError.cpp:
3371         * src/WebGeolocationPermissionRequest.cpp:
3372         * src/WebGraphicsContext3D.cpp:
3373         * src/WebHTTPBody.cpp:
3374         * src/WebHTTPLoadInfo.cpp:
3375         * src/WebHistoryItem.cpp:
3376         * src/WebIDBCallbacksImpl.cpp:
3377         * src/WebIDBCursorImpl.h:
3378         * src/WebIDBDatabaseCallbacksImpl.cpp:
3379         * src/WebIDBDatabaseCallbacksImpl.h:
3380         * src/WebIDBDatabaseError.cpp:
3381         * src/WebIDBDatabaseImpl.h:
3382         * src/WebIDBIndexImpl.h:
3383         * src/WebIDBKey.cpp:
3384         * src/WebIDBKeyPath.cpp:
3385         * src/WebIDBObjectStoreImpl.cpp:
3386         * src/WebIDBObjectStoreImpl.h:
3387         * src/WebIDBTransactionImpl.h:
3388         * src/WebIconLoadingCompletionImpl.h:
3389         * src/WebImageCG.cpp:
3390         * src/WebImageDecoder.cpp:
3391         * src/WebImageSkia.cpp:
3392         * src/WebInputElement.cpp:
3393         * src/WebKit.cpp:
3394         * src/WebLabelElement.cpp:
3395         * src/WebLayer.cpp:
3396         * src/WebLayerTreeView.cpp:
3397         * src/WebLayerTreeViewImpl.cpp:
3398         * src/WebMediaPlayerClientImpl.cpp:
3399         * src/WebMediaStreamDescriptor.cpp:
3400         * src/WebMediaStreamRegistry.cpp:
3401         * src/WebMediaStreamSource.cpp:
3402         * src/WebNode.cpp:
3403         * src/WebNotification.cpp:
3404         * src/WebOptionElement.cpp:
3405         * src/WebPageSerializer.cpp:
3406         * src/WebPageSerializerImpl.cpp:
3407         * src/WebPageSerializerImpl.h:
3408         * src/WebPluginContainerImpl.cpp:
3409         * src/WebPluginListBuilderImpl.cpp:
3410         * src/WebPluginLoadObserver.h:
3411         * src/WebPopupMenuImpl.cpp:
3412         * src/WebPopupMenuImpl.h:
3413         * src/WebRange.cpp:
3414         * src/WebRegularExpression.cpp:
3415         * src/WebScriptController.cpp:
3416         * src/WebScrollbarImpl.cpp:
3417         * src/WebSecurityOrigin.cpp:
3418         * src/WebSecurityPolicy.cpp:
3419         * src/WebSelectElement.cpp:
3420         * src/WebSerializedScriptValue.cpp:
3421         * src/WebSettingsImpl.cpp:
3422         * src/WebSharedWorkerImpl.cpp:
3423         * src/WebSocketImpl.cpp:
3424         * src/WebSocketImpl.h:
3425         * src/WebSpeechInputControllerMockImpl.cpp:
3426         * src/WebSpeechInputControllerMockImpl.h:
3427         * src/WebStorageAreaImpl.cpp:
3428         * src/WebStorageEventDispatcherImpl.cpp:
3429         * src/WebStorageNamespaceImpl.cpp:
3430         * src/WebString.cpp:
3431         * src/WebTextCheckingCompletionImpl.cpp:
3432         * src/WebThreadSafeData.cpp:
3433         * src/WebURL.cpp:
3434         * src/WebURLError.cpp:
3435         * src/WebURLLoadTiming.cpp:
3436         * src/WebURLRequest.cpp:
3437         * src/WebURLResponse.cpp:
3438         * src/WebURLResponsePrivate.h:
3439         * src/WebUserMediaRequest.cpp:
3440         * src/WebViewImpl.cpp:
3441         * src/WebViewImpl.h:
3442         * src/WebWorkerClientImpl.cpp:
3443         * src/WebWorkerClientImpl.h:
3444         * src/WebWorkerImpl.cpp:
3445         * src/WorkerAsyncFileSystemChromium.cpp:
3446         * src/WorkerAsyncFileWriterChromium.cpp:
3447         * src/WorkerFileSystemCallbacksBridge.cpp:
3448         * src/WorkerFileSystemCallbacksBridge.h:
3449         * src/WorkerFileWriterCallbacksBridge.cpp:
3450         * src/WrappedResourceRequest.h:
3451         * src/WrappedResourceResponse.h:
3452         * src/mac/WebSubstringUtil.mm:
3453         * tests/AssociatedURLLoaderTest.cpp:
3454         * tests/CCLayerTreeHostTest.cpp:
3455         * tests/FrameTestHelpers.cpp:
3456         * tests/MockWebGraphicsContext3D.h:
3457         * tests/PopupMenuTest.cpp:
3458         * tests/RunAllTests.cpp:
3459         * tests/WebLayerTest.cpp:
3460         * tests/WebPageNewSerializerTest.cpp:
3461         * tests/WebPageSerializerTest.cpp:
3462         * tests/WebURLRequestTest.cpp:
3463         * tests/WebUnitTests.h:
3464         * tests/WebViewTest.cpp:
3465
3466 2011-12-05  Dana Jansens  <danakj@chromium.org>
3467
3468         [chromium] Set opaque flag for ImageLayerChromium
3469         https://bugs.webkit.org/show_bug.cgi?id=72964
3470
3471         Reviewed by James Robinson.
3472
3473         * WebKit.gypi:
3474         * tests/ImageLayerChromiumTest.cpp: Added.
3475         (WebCore::MockGraphicsLayerClient::notifyAnimationStarted):
3476         (WebCore::MockGraphicsLayerClient::notifySyncRequired):
3477         (WebCore::MockGraphicsLayerClient::paintContents):
3478         (WebCore::MockGraphicsLayerClient::showDebugBorders):
3479         (WebCore::MockGraphicsLayerClient::showRepaintCounter):
3480         (WebCore::TestImage::create):
3481         (WebCore::TestImage::TestImage):
3482         (WebCore::TestImage::~TestImage):
3483         (WebCore::TestImage::isBitmapImage):
3484         (WebCore::TestImage::currentFrameHasAlpha):
3485         (WebCore::TestImage::size):
3486         (WebCore::TestImage::nativeImageForCurrentFrame):
3487         (WebCore::TestImage::destroyDecodedData):
3488         (WebCore::TestImage::decodedSize):
3489         (WebCore::TestImage::draw):
3490         (WebCore::TEST):
3491
3492 2011-12-02  James Robinson  <jamesr@chromium.org>
3493
3494         [chromium] Remove forwarding headers for WebLayer APIs
3495         https://bugs.webkit.org/show_bug.cgi?id=73729
3496
3497         Reviewed by Adam Barth.
3498
3499         These are no longer necessary.
3500
3501         * WebKit.gyp:
3502         * public/WebContentLayer.h: Removed.
3503         * public/WebContentLayerClient.h: Removed.
3504         * public/WebExternalTextureLayer.h: Removed.
3505         * public/WebLayer.h: Removed.
3506         * public/WebLayerClient.h: Removed.
3507         * public/WebLayerTreeView.h: Removed.
3508         * public/WebLayerTreeViewClient.h: Removed.
3509         * src/WebLayerTreeView.cpp:
3510         * src/WebLayerTreeViewImpl.cpp:
3511         * tests/WebLayerTest.cpp:
3512
3513 2011-12-05  Vsevolod Vlasov  <vsevik@chromium.org>
3514
3515         Unreviewed, fixed chromium DEPS syntax.
3516
3517         * DEPS:
3518
3519 2011-12-05  Vsevolod Vlasov  <vsevik@chromium.org>
3520
3521         Unreviewed.  Rolled DEPS.
3522
3523         * DEPS:
3524
3525 2011-12-05  Eric Carlson  <eric.carlson@apple.com>
3526
3527         WebKit/chromium part of: Add WebKit preferences for text track settings
3528         https://bugs.webkit.org/show_bug.cgi?id=73721
3529
3530         Reviewed by John Sullivan.
3531
3532         * src/WebSettingsImpl.cpp:
3533         (WebKit::WebSettingsImpl::shouldDisplaySubtitles): Added.
3534         (WebKit::WebSettingsImpl::shouldDisplayCaptions): Ditto.
3535         (WebKit::WebSettingsImpl::shouldDisplayTextDescriptions): Ditto.
3536         * src/WebSettingsImpl.h:
3537
3538 2011-12-04  Sheriff Bot  <webkit.review.bot@gmail.com>
3539
3540         Unreviewed.  Rolled DEPS.
3541
3542         * DEPS:
3543
3544 2011-12-02  Sheriff Bot  <webkit.review.bot@gmail.com>
3545
3546         Unreviewed, rolling out r101906.
3547         http://trac.webkit.org/changeset/101906
3548         https://bugs.webkit.org/show_bug.cgi?id=73736
3549
3550         Failing chromium webkit_unit_tests (Requested by scheib on
3551         #webkit).
3552
3553         * WebKit.gypi:
3554         * tests/DispatchEventTest.cpp: Removed.
3555         * tests/data/event_target.html: Removed.
3556
3557 2011-12-02  Dave Michael  <dmichael@chromium.org>
3558
3559         Add a unit test for creating, listening for, and dispatching events
3560         via the chromium API.
3561         https://bugs.webkit.org/show_bug.cgi?id=72988
3562
3563         Reviewed by Darin Fisher.
3564
3565         * WebKit.gypi:
3566         * tests/DispatchEventTest.cpp: Added.
3567         (WebKit::MockListener::MockListener):
3568         (WebKit::MockListener::~MockListener):
3569         (WebKit::MockListener::events):
3570         (WebKit::DispatchEventTest::DispatchEventTest):
3571         (WebKit::DispatchEventTest::TearDown):
3572         (WebKit::TEST_F):
3573
3574 2011-12-02  Nate Chapin  <japhet@chromium.org>
3575
3576         Don't call FocusController:setActive() in 
3577         WebViewImpl::setFocus(), since being active and
3578         being focused are different concepts and chromium
3579         now properly sends setActive IPCs on all platforms.
3580         https://bugs.webkit.org/show_bug.cgi?id=73687
3581
3582         Reviewed by Eric Seidel.
3583
3584         * src/WebViewImpl.cpp:
3585         (WebKit::WebViewImpl::setFocus):
3586         * tests/WebViewTest.cpp: Test how different combinations of
3587             setIsActive() and setFocus() affect whether the document
3588             has focus.
3589
3590 2011-12-02  Dave Michael  <dmichael@chromium.org>
3591
3592         Add WebArrayBuffer to chromium API
3593         https://bugs.webkit.org/show_bug.cgi?id=73593
3594
3595         Reviewed by Darin Fisher.
3596
3597         * WebKit.gyp:
3598         * public/WebArrayBuffer.h: Added.
3599         (WebKit::WebArrayBuffer::~WebArrayBuffer):
3600         (WebKit::WebArrayBuffer::WebArrayBuffer):
3601         (WebKit::WebArrayBuffer::operator=):
3602         (WebKit::WebArrayBuffer::isNull):
3603         * public/WebBindings.h:
3604         * src/WebArrayBuffer.cpp: Added.
3605         (WebKit::WebArrayBuffer::create):
3606         (WebKit::WebArrayBuffer::reset):
3607         (WebKit::WebArrayBuffer::assign):
3608         (WebKit::WebArrayBuffer::data):
3609         (WebKit::WebArrayBuffer::byteLength):
3610         (WebKit::WebArrayBuffer::toV8Value):
3611         (WebKit::WebArrayBuffer::WebArrayBuffer):
3612         (WebKit::WebArrayBuffer::operator=):
3613         (WebKit::WebArrayBuffer::operator WTF::PassRefPtr<WTF::ArrayBuffer>):
3614         * src/WebBindings.cpp:
3615         (WebKit::getArrayBufferImpl):
3616         (WebKit::WebBindings::getArrayBuffer):
3617
3618 2011-12-02  David Grogan  <dgrogan@chromium.org>
3619
3620         Grant workers experimental access to IndexedDB.
3621         https://bugs.webkit.org/show_bug.cgi?id=73609
3622
3623         Reviewed by Nate Chapin.
3624
3625         * src/IDBFactoryBackendProxy.cpp:
3626         (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread): Return
3627         true while behind a runtime flag, and while we figure out how to check
3628         permission in a thread-safe manner.
3629         (WebKit::IDBFactoryBackendProxy::openFromWorker): Using the webFrame
3630         from the worker seems to satisfy the weak condition in chromium that
3631         neither it nor it's associated RenderView is NULL.
3632         * src/IDBFactoryBackendProxy.h:
3633
3634 2011-12-01  James Robinson  <jamesr@chromium.org>
3635
3636         [chromium] Move WebLayer APIs to platform directory
3637         https://bugs.webkit.org/show_bug.cgi?id=73610
3638
3639         Reviewed by Darin Fisher.
3640
3641         * public/WebContentLayer.h:
3642         * public/WebContentLayerClient.h:
3643         * public/WebExternalTextureLayer.h:
3644         * public/WebLayer.h:
3645         * public/WebLayerClient.h:
3646         * public/WebLayerTreeView.h:
3647         * public/WebLayerTreeViewClient.h:
3648         * public/platform/WebContentLayer.h: Copied from Source/WebKit/chromium/public/WebContentLayer.h.
3649         (WebKit::WebContentLayer::WebContentLayer):
3650         (WebKit::WebContentLayer::~WebContentLayer):
3651         (WebKit::WebContentLayer::operator=):
3652         * public/platform/WebContentLayerClient.h: Copied from Source/WebKit/chromium/public/WebContentLayerClient.h.
3653         (WebKit::WebContentLayerClient::~WebContentLayerClient):
3654         * public/platform/WebExternalTextureLayer.h: Copied from Source/WebKit/chromium/public/WebExternalTextureLayer.h.
3655         (WebKit::WebExternalTextureLayer::WebExternalTextureLayer):
3656         (WebKit::WebExternalTextureLayer::~WebExternalTextureLayer):
3657         (WebKit::WebExternalTextureLayer::operator=):
3658         * public/platform/WebLayer.h: Copied from Source/WebKit/chromium/public/WebLayer.h.
3659         (WebKit::WebLayer::WebLayer):
3660         (WebKit::WebLayer::~WebLayer):
3661         (WebKit::WebLayer::operator=):
3662         (WebKit::WebLayer::isNull):
3663         (WebKit::WebLayer::to):
3664         (WebKit::WebLayer::toConst):
3665         (WebKit::WebLayer::unwrap):
3666         (WebKit::WebLayer::constUnwrap):
3667         (WebKit::operator==):
3668         (WebKit::operator!=):
3669         * public/platform/WebLayerClient.h: Copied from Source/WebKit/chromium/public/WebLayerClient.h.
3670         (WebKit::WebLayerClient::~WebLayerClient):
3671         * public/platform/WebLayerTreeView.h: Copied from Source/WebKit/chromium/public/WebLayerTreeView.h.
3672         (WebKit::WebLayerTreeView::Settings::Settings):
3673         (WebKit::WebLayerTreeView::WebLayerTreeView):
3674         (WebKit::WebLayerTreeView::~WebLayerTreeView):
3675         (WebKit::WebLayerTreeView::operator=):
3676         (WebKit::operator==):
3677         (WebKit::operator!=):
3678         * public/platform/WebLayerTreeViewClient.h: Copied from Source/WebKit/chromium/public/WebLayerTreeViewClient.h.
3679         (WebKit::WebLayerTreeViewClient::~WebLayerTreeViewClient):
3680         * public/platform/WebPrivatePtr.h:
3681         * src/WebContentLayer.cpp:
3682         * src/WebContentLayerImpl.cpp:
3683         * src/WebExternalTextureLayer.cpp:
3684         * src/WebExternalTextureLayerImpl.cpp:
3685         * src/WebLayer.cpp:
3686         * src/WebLayerImpl.cpp:
3687         * src/WebLayerTreeView.cpp:
3688         * src/WebLayerTreeViewImpl.h:
3689
3690 2011-12-02  Karl Koscher  <supersat@chromium.org>
3691
3692         [chromium] add setOpener method to WebFrame
3693         https://bugs.webkit.org/show_bug.cgi?id=73379
3694
3695         Reviewed by Darin Fisher.
3696
3697         * public/WebFrame.h:
3698         (WebKit::WebFrame::clearOpener): now an inline call to setOpener(0)
3699         * src/WebFrameImpl.cpp:
3700         (WebKit::WebFrameImpl::setOpener): sets window.opener
3701         * src/WebFrameImpl.h:
3702
3703 2011-12-02  Kent Tamura  <tkent@chromium.org>
3704
3705         Unreviewed, rolling out r101337.
3706         http://trac.webkit.org/changeset/101337
3707         https://bugs.webkit.org/show_bug.cgi?id=73189
3708
3709         It's a wrong way to fix the problem
3710
3711         * src/WebViewImpl.cpp:
3712         (WebKit::WebViewImpl::popupOpened):
3713
3714 2011-12-02  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
3715
3716         Added helper method to identify whether the page has custom page size style.
3717         https://bugs.webkit.org/show_bug.cgi?id=73585
3718
3719         Reviewed by Darin Fisher.
3720
3721         * public/WebFrame.h:
3722         * src/WebFrameImpl.cpp:
3723         (WebKit::WebFrameImpl::hasCustomPageSizeStyle):
3724         * src/WebFrameImpl.h:
3725
3726 2011-12-02  Tony Chang  <tony@chromium.org>
3727
3728         [Chromium] GYP fix for Windows 2010 build
3729         https://bugs.webkit.org/show_bug.cgi?id=73483
3730
3731         Reviewed by Adam Barth.
3732
3733         Patch by Carlos Pizano.
3734
3735         * WebKit.gyp: Exclude the android directory and remove a file match that doesn't match anything.
3736
3737 2011-12-01  Alok Priyadarshi  <alokp@chromium.org>
3738
3739         [chromium] CCLayerQuad does not return FloatQuad in correct order
3740         https://bugs.webkit.org/show_bug.cgi?id=73247
3741
3742         Reviewed by James Robinson.
3743
3744         * WebKit.gypi:
3745         * tests/CCLayerQuadTest.cpp: Added.
3746         (WebCore::TEST):
3747
3748 2011-11-30  Adam Klein  <adamk@chromium.org>
3749
3750         [chromium] WebKitMutationObserver::deliverAllMutations should be exposed through the Chromium API
3751         https://bugs.webkit.org/show_bug.cgi?id=71242
3752
3753         Reviewed by Darin Fisher.
3754
3755         Relanding, depends on http://codereview.chromium.org/8748015/
3756         to fix a sandboxing issue on Chromium/Linux.
3757
3758         Add addTaskObserver and removeTaskObserver to WebThread,
3759         along with a new WebThread::TaskObserver interface.
3760
3761         For mutation observers, add a TaskObserver to the main thread
3762         to deliver mutations after each task runs.
3763
3764         The Chromium implementation of the new WebThread methods is in
3765         http://codereview.chromium.org/8586038/.
3766
3767         * public/platform/WebThread.h:
3768         (WebKit::WebThread::TaskObserver::~TaskObserver):
3769         * src/WebKit.cpp:
3770         (WebKit::initialize):
3771         (WebKit::shutdown):
3772
3773 2011-12-02  Sheriff Bot  <webkit.review.bot@gmail.com>
3774
3775         Unreviewed, rolling out r101833.
3776         http://trac.webkit.org/changeset/101833
3777         https://bugs.webkit.org/show_bug.cgi?id=73678
3778
3779         test_expectations file invalid: run Tools/Scripts/new-run-
3780         webkit-tests --lint-test-files (Requested by scheib on
3781         #webkit).
3782
3783         * WebKit.gypi:
3784         * tests/CCLayerQuadTest.cpp: Removed.
3785
3786 2011-12-02  Alok Priyadarshi  <alokp@chromium.org>
3787
3788         [chromium] CCLayerQuad does not return FloatQuad in correct orientation
3789         https://bugs.webkit.org/show_bug.cgi?id=73247
3790
3791         Reviewed by James Robinson.
3792
3793         * WebKit.gypi:
3794         * tests/CCLayerQuadTest.cpp: Added.
3795         (WebCore::TEST):
3796
3797 2011-12-02  Daniel Cheng  <dcheng@chromium.org>
3798
3799         [chromium] Add plumbing for supporting custom MIME types in DataTransfer.
3800         https://bugs.webkit.org/show_bug.cgi?id=73594
3801
3802         Reviewed by David Levin.
3803
3804         * public/platform/WebClipboard.h:
3805         (WebKit::WebClipboard::readCustomData):
3806         * public/platform/WebDragData.h:
3807         * src/PlatformSupport.cpp:
3808         (WebCore::PlatformSupport::clipboardReadCustomData):
3809         * src/WebDragData.cpp:
3810         (WebKit::WebDragData::customData):
3811         (WebKit::WebDragData::setCustomData):
3812
3813 2011-12-02  Joshua Bell  <jsbell@chromium.org>
3814
3815         IndexedDB: Rename "multientry" to "multiEntry" per spec change
3816         https://bugs.webkit.org/show_bug.cgi?id=73578
3817
3818         Reviewed by Darin Fisher.
3819
3820         * public/WebIDBIndex.h:
3821         (WebKit::WebIDBIndex::multiEntry):
3822         * public/WebIDBObjectStore.h:
3823         (WebKit::WebIDBObjectStore::createIndex):
3824         * src/IDBIndexBackendProxy.cpp:
3825         (WebKit::IDBIndexBackendProxy::multiEntry):
3826         * src/IDBIndexBackendProxy.h:
3827         * src/IDBObjectStoreBackendProxy.cpp:
3828         (WebKit::IDBObjectStoreBackendProxy::createIndex):
3829         * src/IDBObjectStoreBackendProxy.h:
3830         * src/WebIDBIndexImpl.cpp:
3831         (WebKit::WebIDBIndexImpl::multiEntry):
3832         * src/WebIDBIndexImpl.h:
3833         * src/WebIDBObjectStoreImpl.cpp:
3834         (WebKit::WebIDBObjectStoreImpl::createIndex):
3835         * src/WebIDBObjectStoreImpl.h:
3836
3837 2011-12-02  Sami Kyostila  <skyostil@chromium.org>
3838
3839         [chromium] Make CCInputHandler scrolling stateful
3840         https://bugs.webkit.org/show_bug.cgi?id=73345
3841
3842         This change makes the scrolling part of CCInputHandler stateful by
3843         replacing scrollRootLayer() with scrollBegin(), scrollBy() and
3844         scrollEnd(). This is done in preparation for scrollable sublayers.
3845         Specifically, scrollBegin() will allow CCLayerTreeHostImpl to perform
3846         input event hit testing to find the layer to be scrolled.
3847
3848         Reviewed by Steve Block.
3849
3850         * src/WebCompositorImpl.cpp:
3851         (WebKit::WebCompositorImpl::handleInputEvent):
3852         * tests/CCLayerTreeHostImplTest.cpp:
3853         (WebKit::TEST_F):
3854
3855 2011-12-02  Pavel Feldman  <pfeldman@google.com>
3856
3857         Web Inspector [chromium]: provisional fix for interactive ui tests
3858         https://bugs.webkit.org/show_bug.cgi?id=73633
3859
3860         Reviewed by Yury Semikhatsky.
3861
3862         * src/js/Tests.js:
3863         (.):
3864         (.TestSuite.prototype._executeCodeWhenScriptsAreParsed):
3865
3866 2011-12-01  David Levin  <levin@chromium.org>
3867
3868         [chromium] Add WebKit API's to support the autosize algorithm in renderer process.
3869         https://bugs.webkit.org/show_bug.cgi?id=73058
3870
3871         Reviewed by Darin Fisher.
3872
3873         * public/WebView.h: Expose the auto-resize method.
3874         * public/WebWidgetClient.h:
3875         (WebKit::WebWidgetClient::didAutoResize):
3876         * src/WebFrameImpl.cpp:
3877         (WebKit::WebFrameImpl::createFrameView): Set the auto-resize
3878         state on the new view.
3879         * src/WebViewImpl.cpp:
3880         (WebKit::WebViewImpl::WebViewImpl):
3881         (WebKit::WebViewImpl::resize): Extracted sendResizeEventAndRepaint, so
3882         that it can be used by layoutUpdated.
3883         (WebKit::WebViewImpl::queueBothResizeEventAndPaint): Ditto.
3884         (WebKit::WebViewImpl::hasHorizontalScrollbar): Added for testing purposes.
3885         (WebKit::WebViewImpl::hasVerticalScrollbar): Ditto.
3886         (WebKit::WebViewImpl::enableAutoResizeMode): Set-up auto-resize.
3887         (WebKit::WebViewImpl::layoutUpdated): Handle the auto-resize case by
3888         sending events and invalidation.
3889         * src/WebViewImpl.h: Expose the aut-reosize information.
3890         (WebKit::WebViewImpl::shouldAutoResize):
3891         (WebKit::WebViewImpl::minAutoSize):
3892         (WebKit::WebViewImpl::maxAutoSize):
3893         * tests/FrameTestHelpers.cpp:
3894         (WebKit::FrameTestHelpers::createWebViewAndLoad): Added the ability to
3895         specify the WebViewClient.
3896         * tests/FrameTestHelpers.h: Ditto.
3897         * tests/WebViewTest.cpp: Added a simple test for auto-resize.
3898         (WebKit::TestData::setWebView):
3899         (WebKit::TestData::setSize): Capture the new size.
3900         (WebKit::TestData::hasHorizontalScrollbar):
3901         (WebKit::TestData::hasVerticalScrollbar):
3902         (WebKit::TestData::width):
3903         (WebKit::TestData::height):
3904         (WebKit::AutoResizeWebViewClient::didAutoResize): Handle the resize event.
3905         (WebKit::AutoResizeWebViewClient::testData):
3906         (WebKit::TEST_F): The actual test.
3907         * tests/data/specify_size.html: Added.
3908
3909 2011-12-02  Xiyuan Xia  <xiyuan@chromium.org>
3910
3911         [Chromium] Support adding/removing page overlay to WebView
3912         https://bugs.webkit.org/show_bug.cgi?id=73235
3913
3914         Reviewed by James Robinson.
3915
3916         * WebKit.gyp:
3917         * public/WebPageOverlay.h: Added.
3918         (WebKit::WebPageOverlay::~WebPageOverlay):
3919         * public/WebView.h:
3920         * src/PageOverlay.cpp:
3921         (WebKit::PageOverlay::create):
3922         (WebKit::PageOverlay::PageOverlay):
3923         (WebKit::OverlayGraphicsLayerClientImpl::create):
3924         (WebKit::OverlayGraphicsLayerClientImpl::paintContents):
3925         (WebKit::OverlayGraphicsLayerClientImpl::OverlayGraphicsLayerClientImpl):
3926         (WebKit::PageOverlay::update):
3927         (WebKit::PageOverlay::paintWebFrame):
3928         (WebKit::PageOverlay::invalidateWebFrame):
3929         * src/PageOverlay.h:
3930         (WebKit::PageOverlay::overlay):
3931         (WebKit::PageOverlay::setOverlay):
3932         (WebKit::PageOverlay::zOrder):
3933         (WebKit::PageOverlay::setZOrder):
3934         * src/PageOverlayList.cpp: Added.
3935         (WebKit::PageOverlayList::create):
3936         (WebKit::PageOverlayList::PageOverlayList):
3937         (WebKit::PageOverlayList::~PageOverlayList):
3938         (WebKit::PageOverlayList::add):
3939         (WebKit::PageOverlayList::remove):
3940         (WebKit::PageOverlayList::update):
3941         (WebKit::PageOverlayList::paintWebFrame):
3942         (WebKit::PageOverlayList::find):
3943         * src/PageOverlayList.h: Added.
3944         (WebKit::PageOverlayList::empty):
3945         * src/WebDevToolsAgentImpl.cpp:
3946         (WebKit::WebDevToolsAgentImpl::paintPageOverlay):
3947         (WebKit::WebDevToolsAgentImpl::highlight):
3948         (WebKit::WebDevToolsAgentImpl::hideHighlight):
3949         * src/WebDevToolsAgentImpl.h:
3950         * src/WebFrameImpl.cpp:
3951         (WebKit::WebFrameImpl::paintWithContext):
3952         * src/WebViewImpl.cpp:
3953         (WebKit::WebViewImpl::composite):
3954         (WebKit::WebViewImpl::addPageOverlay):
3955         (WebKit::WebViewImpl::removePageOverlay):
3956         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3957         (WebKit::WebViewImpl::didRecreateGraphicsContext):
3958         * src/WebViewImpl.h:
3959         (WebKit::WebViewImpl::pageOverlays):
3960
3961 2011-12-01  Jochen Eisinger  <jochen@chromium.org>
3962
3963         [chromium] add referrer policy to WebContextMenuData
3964         https://bugs.webkit.org/show_bug.cgi?id=73567
3965
3966         Reviewed by Darin Fisher.
3967
3968         * public/WebContextMenuData.h:
3969         * src/ContextMenuClientImpl.cpp:
3970         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
3971
3972 2011-12-01  Kelly Norton  <knorton@google.com>
3973
3974         More void functions eager to return values in RenderObject & WebFrameImpl
3975         https://bugs.webkit.org/show_bug.cgi?id=73571
3976
3977         Reviewed by Adam Barth.
3978
3979         * src/WebFrameImpl.cpp:
3980         (WebKit::ChromePrintContext::computePageRects):
3981
3982 2011-12-01  Daniel Sievers  <sievers@chromium.org>
3983
3984         [Chromium] Early returns in calculateDrawTransformsAndVisibilityInternal() are not respected by parent.
3985         https://bugs.webkit.org/show_bug.cgi?id=73270
3986
3987         Non-drawing child trees should not be added to the parent render surface's layer list
3988         and should neither extend the parent layer's drawable content rect.
3989
3990         This also fixes assertions from the content texture residency logic, which doesn't like it
3991         if we try to use a render surface through a parent, while that surface itself was never 'used'
3992         in the same frame.
3993
3994         Reviewed by James Robinson.
3995
3996         * tests/CCLayerTreeHostCommonTest.cpp:
3997         (WebCore::TEST):
3998
3999 2011-12-01  David Reveman  <reveman@chromium.org>
4000
4001         [Chromium] Use contentBounds instead of bounds for invalidation.
4002         https://bugs.webkit.org/show_bug.cgi?id=73525
4003
4004         Reviewed by James Robinson.
4005
4006         Use setNeedsDisplay() instead of setNeedsDisplayRect() when possible.
4007
4008         * src/WebMediaPlayerClientImpl.cpp:
4009         (WebKit::WebMediaPlayerClientImpl::repaint):
4010
4011 2011-12-01  Elliot Poger  <epoger@google.com>
4012
4013         webkit->chromium DEPS roll 111575->112463
4014         https://bugs.webkit.org/show_bug.cgi?id=73231
4015
4016         Reviewed by Yury Semikhatsky.