[chromium] Use TextureLayerChromium for WebGL content instead of a dedicated layer...
[WebKit.git] / Source / WebKit / chromium / ChangeLog
1 2012-04-18  James Robinson  <jamesr@chromium.org>
2
3         [chromium] Use TextureLayerChromium for WebGL content instead of a dedicated layer type
4         https://bugs.webkit.org/show_bug.cgi?id=84311
5
6         Reviewed by Adrienne Walker.
7
8         * WebKit.gypi:
9         * src/WebExternalTextureLayer.cpp:
10         (WebKit::WebExternalTextureLayer::create):
11         * src/WebLayer.cpp:
12         * tests/WebGLLayerChromiumTest.cpp: Removed.
13         * tests/WebLayerTest.cpp:
14
15 2012-04-23  Alec Flett  <alecflett@chromium.org>
16
17         IndexedDB: remove IDB(Index|ObjectStore)BackendImpl::get/getKey for IDBKey
18         https://bugs.webkit.org/show_bug.cgi?id=84285
19
20         Reviewed by Dimitri Glazkov.
21
22         This is old code supporting IDBKey-based lookup, supplanted by
23         IDBKeyRange. Now that chromium IPC/proxy code has landed,
24         these functions can be removed.
25
26         * public/WebIDBIndex.h:
27         * public/WebIDBObjectStore.h:
28         * src/IDBIndexBackendProxy.cpp:
29         * src/IDBIndexBackendProxy.h:
30         (IDBIndexBackendProxy):
31         * src/IDBObjectStoreBackendProxy.cpp:
32         * src/IDBObjectStoreBackendProxy.h:
33         (IDBObjectStoreBackendProxy):
34         * src/WebIDBIndexImpl.cpp:
35         * src/WebIDBIndexImpl.h:
36         (WebIDBIndexImpl):
37         * src/WebIDBObjectStoreImpl.cpp:
38         * src/WebIDBObjectStoreImpl.h:
39         (WebIDBObjectStoreImpl):
40
41 2012-04-23  Eriq Augustine  <eaugusti@chromium.org>
42
43         Return value from executed script in Chromium.
44         https://bugs.webkit.org/show_bug.cgi?id=79851
45
46         Reviewed by Adam Barth.
47
48         Providing a variant of evaluateScriptInIsolatedWorld that
49         returns the value of the evaluated script.
50
51         * public/WebFrame.h:
52         (WebFrame):
53         * src/WebFrameImpl.cpp:
54         (WebKit::WebFrameImpl::executeScriptInIsolatedWorldAndReturnValues):
55         (WebKit):
56         * src/WebFrameImpl.h:
57         (WebKit):
58         (WebFrameImpl):
59
60 2012-04-23  Raymond Toy  <rtoy@google.com>
61
62         Move AudioDestinationChromium FIFO class to its own class.
63         https://bugs.webkit.org/show_bug.cgi?id=84058
64
65         Reviewed by Chris Rogers.
66
67         Remove private FIFO class and use new AudioPullFIFO class.
68         * src/AudioDestinationChromium.cpp:
69         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
70         * src/AudioDestinationChromium.h:
71         (AudioDestinationChromium):
72
73 2012-04-23  Dmitry Titov  <dimich@chromium.org>
74
75         Chromium roll 133422:133506.
76         Not reviewed.
77
78         * DEPS:
79
80 2012-04-23  Ian Vollick  <vollick@chromium.org>
81
82         [chromium] Properly ignore unsupported animation directions.
83         https://bugs.webkit.org/show_bug.cgi?id=84599
84
85         Reviewed by Adrienne Walker.
86
87         * tests/CCLayerAnimationControllerTest.cpp:
88         (WebKitTests::TEST):
89         (WebKitTests):
90
91 2012-04-23  Ian Vollick  <vollick@chromium.org>
92
93         [chromium] When prepareToDraw fails due to animation checkerboard, we need to call setNeedsCommit
94         https://bugs.webkit.org/show_bug.cgi?id=84520
95
96         Reviewed by Adrienne Walker.
97
98         * tests/CCLayerTreeHostImplTest.cpp:
99         (WebKitTests::TEST_F):
100
101 2012-04-23  Mikhail Naganov  <mnaganov@chromium.org>
102
103         Chromium roll from r133348 to r133422.
104
105         * DEPS:
106
107 2012-04-23  Gavin Peters  <gavinp@chromium.org>
108
109         Move ReferrerPolicy out of SecurityPolicy class into its own header in platform.
110         https://bugs.webkit.org/show_bug.cgi?id=84516
111
112
113         Reviewed by Adam Barth.
114
115         No change in behaviour; same enum, different class.
116
117         * src/AssertMatchingEnums.cpp:
118         * src/WebSecurityPolicy.cpp:
119         (WebKit::WebSecurityPolicy::generateReferrerHeader):
120
121 2012-04-22  Andreas Kling  <kling@webkit.org>
122
123         Optimize Element attribute storage for the common case (no Attr objects.)
124         <http://webkit.org/b/83440>
125
126         Reviewed by Antti Koivisto.
127
128         Remove the WebNamedNodeMap and WebAttribute API classes since they are no
129         longer needed by chromium after <http://crrev.com/133299>.
130
131         * WebKit.gyp:
132         * public/WebAttribute.h: Removed.
133         * public/WebElement.h:
134         * public/WebNamedNodeMap.h: Removed.
135         * src/WebAttribute.cpp: Removed.
136         * src/WebElement.cpp:
137         * src/WebNamedNodeMap.cpp: Removed.
138
139 2012-04-22  Mikhail Naganov  <mnaganov@chromium.org>
140
141         [Chromium] Fix clang build after r114827, unreviewed.
142
143         * tests/LayerTextureUpdaterTest.cpp:
144         (WebCore::TEST):
145
146 2012-04-22  Shawn Singh  <shawnsingh@chromium.org>
147
148         [chromium] Damage Tracker needs to use CCMathUtil transforms
149         https://bugs.webkit.org/show_bug.cgi?id=84070
150
151         Reviewed by Adrienne Walker.
152
153         * tests/CCDamageTrackerTest.cpp:
154         (WebKitTests::TEST_F):
155         (WebKitTests):
156
157 2012-04-21  Ryosuke Niwa  <rniwa@webkit.org>
158
159         Chromium roll attempt from r133173 to r133348.
160
161         * DEPS:
162
163 2012-04-20  Adrienne Walker  <enne@google.com>
164
165         [chromium] Refactor opaque content transform out of Skia context
166         https://bugs.webkit.org/show_bug.cgi?id=83608
167
168         Reviewed by James Robinson.
169
170         Add tests for opaque tracking in LayerTextureUpdater, since the
171         transform logic has moved there.
172
173         * tests/CCTiledLayerTestCommon.cpp:
174         (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate):
175         * tests/CCTiledLayerTestCommon.h:
176         (FakeLayerTextureUpdater):
177         * tests/LayerTextureUpdaterTest.cpp:
178         (WebCore::PaintFillPartialOpaque::PaintFillPartialOpaque):
179         (PaintFillPartialOpaque):
180         (WebCore::PaintFillPartialOpaque::operator()):
181         (WebCore):
182         (WebCore::TEST):
183         * tests/PlatformContextSkiaTest.cpp:
184         (WebCore::TEST):
185
186 2012-04-20  Dana Jansens  <danakj@chromium.org>
187
188         [chromium] Remove special case for recreating layers during sync
189         https://bugs.webkit.org/show_bug.cgi?id=84458
190
191         Reviewed by James Robinson.
192
193         * tests/TreeSynchronizerTest.cpp:
194
195 2012-04-20  Alec Flett  <alecflett@chromium.org>
196
197         IndexedDB: Support get/getKey(keyRange)
198         https://bugs.webkit.org/show_bug.cgi?id=83638
199
200         Reviewed by Ojan Vafai.
201
202         Hook up WebKit API to the new get/getKey implementations.
203
204         * src/IDBIndexBackendProxy.cpp:
205         (WebKit::IDBIndexBackendProxy::get):
206         (WebKit):
207         (WebKit::IDBIndexBackendProxy::getKey):
208         * src/IDBIndexBackendProxy.h:
209         (IDBIndexBackendProxy):
210         * src/WebIDBIndexImpl.cpp:
211         (WebKit::WebIDBIndexImpl::getObject):
212         (WebKit::WebIDBIndexImpl::getKey):
213         * src/WebIDBObjectStoreImpl.cpp:
214         (WebKit::WebIDBObjectStoreImpl::get):
215
216 2012-04-20  Brady Eidson  <beidson@apple.com>
217
218         https://bugs.webkit.org/show_bug.cgi?id=84512
219         Repurpose ActiveDOMObject::WillShowDialog to WillDeferLoading
220
221         Reviewed by Eric Carlson.
222
223         PageGroupLoadDeferrer's don't take a ReasonForSuspension argument anymore;
224         They just use WillDeferLoading by default.
225
226         * src/WebViewImpl.cpp:
227         (WebKit::WebView::willEnterModalLoop):
228
229 2012-04-20  James Robinson  <jamesr@chromium.org>
230
231         [chromium] Plumb a compositor surface ready notification through to the threaded compositor
232         https://bugs.webkit.org/show_bug.cgi?id=84305
233
234         Reviewed by Adrienne Walker.
235
236         Adds a notification to WebWidget for when the compositor surface is ready to use. This exists to fix a race
237         condition when WebKit requires that we enter compositing mode but we haven't completed initialization of the
238         native window/etc backing the WebWidget, and we can't block for this initialization to complete without inducing
239         deadlocks. In this situation, we proceed as usual except that we can't attempt to use the compositor context or
240         it will fail.
241
242         * public/WebWidget.h:
243         (WebWidget):
244         * src/WebLayerTreeView.cpp:
245         (WebKit::WebLayerTreeView::setSurfaceReady):
246         (WebKit):
247         * src/WebPagePopupImpl.cpp:
248         (WebKit::WebPagePopupImpl::setCompositorSurfaceReady):
249         (WebKit):
250         * src/WebPagePopupImpl.h:
251         (WebPagePopupImpl):
252         * src/WebPopupMenuImpl.cpp:
253         (WebKit::WebPopupMenuImpl::setCompositorSurfaceReady):
254         (WebKit):
255         * src/WebPopupMenuImpl.h:
256         * src/WebViewImpl.cpp:
257         (WebKit::WebViewImpl::setCompositorSurfaceReady):
258         (WebKit):
259         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
260         * src/WebViewImpl.h:
261         (WebViewImpl):
262
263 2012-04-20  Mark Pilgrim  <pilgrim@chromium.org>
264
265         [Chromium] Call memoryUsageMB directly
266         https://bugs.webkit.org/show_bug.cgi?id=84376
267
268         Reviewed by Kentaro Hara.
269
270         Part of a refactoring series. See tracking bug 82948.
271
272         * src/PlatformSupport.cpp:
273         (WebCore):
274
275 2012-04-20  Adrienne Walker  <enne@google.com>
276
277         [chromium] Clip TransparencyWin to prevent OOM from large Skia canvas
278         https://bugs.webkit.org/show_bug.cgi?id=84289
279
280         Reviewed by James Robinson.
281
282         Add a test that would OOM if the layer wasn't clipped. Also, verify
283         that clipping the canvas doesn't shift pixels around incorrectly.
284
285         * tests/TransparencyWinTest.cpp:
286         (WebCore::testClippedLayerKeepTransform):
287         (WebCore):
288         (WebCore::TEST):
289
290 2012-04-20  Brady Eidson  <beidson@apple.com>
291
292         https://bugs.webkit.org/show_bug.cgi?id=84490
293         PageGroupLoadDeferrer needs to take a ReasonForSuspension argument
294
295         Reviewed by Anders Carlsson.
296
297         * src/WebViewImpl.cpp:
298         (WebKit::WebView::willEnterModalLoop): Pass along ActiveDOMObject::WillShowDialog, which used
299           to be the default.
300
301 2012-04-20  James Robinson  <jamesr@chromium.org>
302
303         Avoid synchronously recalculating the nonFastScrollableRegion when the ScrollableArea set changes
304         https://bugs.webkit.org/show_bug.cgi?id=84470
305
306         Reviewed by Anders Carlsson.
307
308         Trigger a layout when a plugin becomes or stops being scrollable so the nonFastScrollableRegion
309         can be updated.
310
311         * src/ScrollbarGroup.cpp:
312         (WebKit::ScrollbarGroup::scrollbarCreated):
313         (WebKit::ScrollbarGroup::scrollbarDestroyed):
314
315 2012-04-20  Dana Jansens  <danakj@chromium.org>
316
317         [chromium] Some filters require inflating damage rect in CCDamageTracker
318         https://bugs.webkit.org/show_bug.cgi?id=84373
319
320         Reviewed by James Robinson.
321
322         * tests/CCDamageTrackerTest.cpp:
323         (WebKitTests::emulateDrawingOneFrame):
324         (WebKitTests::TEST_F):
325         (WebKitTests):
326
327 2012-04-20  Sami Kyostila  <skyostil@chromium.org>
328
329         [chromium] Don't crash when scrolling empty layer tree
330         https://bugs.webkit.org/show_bug.cgi?id=84455
331
332         Reviewed by James Robinson.
333
334         Try to scroll an empty layer tree.
335
336         * tests/CCLayerTreeHostImplTest.cpp:
337         (WebKitTests::TEST_F):
338         (WebKitTests):
339
340 2012-04-20  Sheriff Bot  <webkit.review.bot@gmail.com>
341
342         Unreviewed.  Rolled DEPS.
343
344         * DEPS:
345
346 2012-04-20  'Pavel Feldman'  <pfeldman@chromium.org>
347
348         Not reviewed: fixed chromium sanity tests for inspector via assigning last path component
349         to entire url for parsed urls with invalid specs.
350
351         * src/js/Tests.js:
352         (.TestSuite.prototype._scriptsAreParsed):
353
354 2012-04-20  Mark Pilgrim  <pilgrim@chromium.org>
355
356         [Chromium] Call cacheMetadata directly
357         https://bugs.webkit.org/show_bug.cgi?id=84415
358
359         Reviewed by Kentaro Hara.
360
361         Part of a refactoring series. See tracking bug 82948.
362
363         * src/PlatformSupport.cpp:
364         (WebCore):
365
366 2012-04-20  Mark Pilgrim  <pilgrim@chromium.org>
367
368         [Chromium] Call stopSharedTimer directly
369         https://bugs.webkit.org/show_bug.cgi?id=84418
370
371         Reviewed by Kentaro Hara.
372
373         Part of a refactoring series. See tracking bug 82948.
374
375         * src/PlatformSupport.cpp:
376         (WebCore):
377
378 2012-04-19  Jeremy Mao  <yujie.mao@intel.com>
379
380         Media Stream API: Piece of code cleanup for the chromium port
381         https://bugs.webkit.org/show_bug.cgi?id=84328
382
383         Reviewed by Kent Tamura.
384
385         Remove some deprecated interfaces.
386
387         No new tests. No behavior changes.
388
389         * public/WebUserMediaClient.h:
390         Remove deprecated requestUserMedia interface.
391         * public/WebUserMediaRequest.h:
392         Remove deprecated requestSucceeded interface.
393         * src/UserMediaClientImpl.cpp:
394         (WebKit::UserMediaClientImpl::requestUserMedia):
395         Use the requestUserMedia split sources implementation.
396         * src/WebUserMediaRequest.cpp:
397         Remove deprecated requestSucceeded implementation.
398
399 2012-04-19  Joshua Bell  <jsbell@chromium.org>
400
401         [Chromium] IndexedDB: Prep for changing keyPath return type
402         https://bugs.webkit.org/show_bug.cgi?id=84208
403
404         To introduce Array-type key paths (see http://webkit.org/b/84207) the keyPath() accessors
405         on WebIDBObjectStore and WebIDBIndex need to change return type. To do so requires temporarily
406         changing the method names to keyPathString with compatibility shims (on the WebKit side)
407         then switching the implementation in the Chromium port in a follow-up patch.
408
409         Reviewed by Kent Tamura.
410
411         * public/WebIDBIndex.h:
412         (WebKit::WebIDBIndex::keyPath):
413         (WebKit::WebIDBIndex::keyPathString):
414         * public/WebIDBObjectStore.h:
415         (WebKit::WebIDBObjectStore::keyPath):
416         (WebKit::WebIDBObjectStore::keyPathString):
417         * src/WebIDBIndexImpl.cpp:
418         (WebKit::WebIDBIndexImpl::keyPathString):
419         * src/WebIDBIndexImpl.h:
420         (WebIDBIndexImpl):
421         * src/WebIDBObjectStoreImpl.cpp:
422         (WebKit::WebIDBObjectStoreImpl::keyPathString):
423         * src/WebIDBObjectStoreImpl.h:
424         (WebIDBObjectStoreImpl):
425
426 2012-04-19  Andreas Kling  <kling@webkit.org>
427
428         [chromium] Add simplified API for iterating over a WebElement's attributes.
429         <http://webkit.org/b/84183>
430
431         Reviewed by Dimitri Glazkov.
432
433         Add attributeCount(), attributeLocalName(index) and attributeValue(index) to the
434         WebElement API so that call sites currently using WebNamedNodeMap can be
435         converted, which will ultimately allow us to refactor WebCore::Attribute
436         on <http://webkit.org/b/83440>.
437
438         * public/WebElement.h:
439         * src/WebElement.cpp:
440         (WebKit::WebElement::attributeCount):
441         (WebKit::WebElement::attributeLocalName):
442         (WebKit::WebElement::attributeValue):
443
444 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
445
446         [Chromium] Call signedPublicKeyAndChallengeString directly
447         https://bugs.webkit.org/show_bug.cgi?id=84372
448
449         Reviewed by Kentaro Hara.
450
451         Part of a refactoring series. See tracking bug 82948.
452
453         * src/PlatformSupport.cpp:
454         (WebCore):
455
456 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
457
458         [Chromium] Call audioHardwareBufferSize directly
459         https://bugs.webkit.org/show_bug.cgi?id=84370
460
461         Reviewed by Kentaro Hara.
462
463         Part of a refactoring series. See tracking bug 82948.
464
465         * src/AudioDestinationChromium.cpp:
466         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
467
468 2012-04-19  Sami Kyostila  <skyostil@chromium.org>
469
470         [chromium] Add tests for scrolling non-root layers in the compositor thread
471         https://bugs.webkit.org/show_bug.cgi?id=73350
472
473         Reviewed by James Robinson.
474
475         * src/WebContentLayerImpl.cpp:
476         (WebKit::WebContentLayerImpl::didScroll):
477         (WebKit):
478         * src/WebContentLayerImpl.h:
479         (WebContentLayerImpl):
480         * tests/CCLayerImplTest.cpp:
481         (WebCore::TEST):
482         (WebCore):
483         * tests/CCLayerTreeHostImplTest.cpp:
484         (WebKitTests::CCLayerTreeHostImplTest::createScrollableLayer):
485         (CCLayerTreeHostImplTest):
486         (WebKitTests::CCLayerTreeHostImplTest::initializeLayerRendererAndDrawFrame):
487         (WebKitTests::TEST_F):
488         (WebKitTests):
489         * tests/CCLayerTreeHostTest.cpp:
490         (WTF::TestOpacityChangeLayerDelegate::didScroll):
491         (WTF::MockContentLayerDelegate::paintContents):
492         (WTF::MockContentLayerDelegate::didScroll):
493         (CCLayerTreeHostTestScrollChildLayer):
494         (WTF::CCLayerTreeHostTestScrollChildLayer::CCLayerTreeHostTestScrollChildLayer):
495         (WTF::CCLayerTreeHostTestScrollChildLayer::beginTest):
496         (WTF::CCLayerTreeHostTestScrollChildLayer::applyScrollAndScale):
497         (WTF::CCLayerTreeHostTestScrollChildLayer::beginCommitOnCCThread):
498         (WTF::CCLayerTreeHostTestScrollChildLayer::drawLayersOnCCThread):
499         (WTF::CCLayerTreeHostTestScrollChildLayer::afterTest):
500         (WTF):
501         (WTF::TEST_F):
502
503 2012-04-19  Alec Flett  <alecflett@chromium.org>
504
505         IndexedDB: Stub out IDBCursor.advance for landing
506         https://bugs.webkit.org/show_bug.cgi?id=84280
507
508         Reviewed by Dimitri Glazkov.
509
510         Just a stub method so it can be implemented on chromium
511
512         * public/WebIDBCursor.h:
513         (WebKit::WebIDBCursor::advance):
514         * src/WebIDBCursorImpl.cpp:
515         (WebKit::WebIDBCursorImpl::advance):
516         (WebKit):
517         * src/WebIDBCursorImpl.h:
518         (WebIDBCursorImpl):
519
520 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
521
522         [Chromium] Call mimeRegistry directly
523         https://bugs.webkit.org/show_bug.cgi?id=84334
524
525         Reviewed by Kentaro Hara.
526
527         Part of a refactoring series. See tracking bug 82948.
528
529         * src/PlatformSupport.cpp:
530         (WebCore::PlatformSupport::layoutTestMode):
531
532 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
533
534         [Chromium] Call sampleGamepads directly
535         https://bugs.webkit.org/show_bug.cgi?id=84339
536
537         Reviewed by Kentaro Hara.
538
539         Part of a refactoring series. See tracking bug 82948.
540
541         * src/PlatformSupport.cpp:
542         (WebCore::PlatformSupport::injectIDBKeyIntoSerializedValue):
543
544 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
545
546         [Chromium] Call audioHardwareSampleRate directly
547         https://bugs.webkit.org/show_bug.cgi?id=84335
548
549         Reviewed by Kentaro Hara.
550
551         Part of a refactoring series. See tracking bug 82948.
552
553         * src/AudioDestinationChromium.cpp:
554         (WebCore::AudioDestination::hardwareSampleRate):
555
556 2012-04-18  Nico Weber  <thakis@chromium.org>
557
558         [chromium/mac] Fix build.
559         https://bugs.webkit.org/show_bug.cgi?id=84314
560
561         Unreviewed, build fix after http://trac.webkit.org/changeset/114604
562
563         * src/WebPluginContainerImpl.cpp:
564         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
565
566 2012-04-18  Hironori Bono  <hbono@chromium.org>
567
568         Split SpellChecker::didCheck() to SpellChecker::didCheckSucceeded() and SpellChecker::didCheckCanceled()
569         https://bugs.webkit.org/show_bug.cgi?id=83748
570
571         Reviewed by Ryosuke Niwa.
572
573         This change adds a new API WebTextCheckingCompletion::didCancelCheckingText(),
574         which encapsulates SpellChecker::didCheckCanceled() and implements it so
575         Chromium can use it.
576
577         * public/WebTextCheckingCompletion.h:
578         (WebKit::WebTextCheckingCompletion::didCancelCheckingText):
579         * src/WebTextCheckingCompletionImpl.cpp:
580         (WebKit::WebTextCheckingCompletionImpl::didFinishCheckingText):
581         (WebKit):
582         (WebKit::WebTextCheckingCompletionImpl::didCancelCheckingText):
583         * src/WebTextCheckingCompletionImpl.h:
584         (WebTextCheckingCompletionImpl):
585
586 2012-04-16  James Robinson  <jamesr@chromium.org>
587
588         [chromium] Convert WebPluginContainerImpl over to use WebExternalTextureLayer
589         https://bugs.webkit.org/show_bug.cgi?id=84120
590
591         Reviewed by Adrienne Walker.
592
593         This ports WebPluginContainerImpl over to use WebExternalTextureLayer instead of directly using a *LayerChromium
594         type for better layering and code sharing. The changes to WebPluginContainerImpl are fairly straightforward.  In
595         addition to renames I also moved some state tracking into WPCI instead of having it exposed on the interface. I
596         also removed the WebExternalTextureLayerImpl intermediate class since it wasn't doing anything useful.
597
598         * WebKit.gyp:
599         * WebKit.gypi:
600         * src/WebContentLayer.cpp:
601         * src/WebExternalTextureLayer.cpp:
602         (WebKit::WebExternalTextureLayer::create):
603         (WebKit::WebExternalTextureLayer::setTextureId):
604         (WebKit::WebExternalTextureLayer::setIOSurfaceProperties):
605         (WebKit::WebExternalTextureLayer::setFlipped):
606         (WebKit::WebExternalTextureLayer::flipped):
607         (WebKit::WebExternalTextureLayer::setUVRect):
608         (WebKit::WebExternalTextureLayer::uvRect):
609         (WebKit::WebExternalTextureLayer::WebExternalTextureLayer):
610         * src/WebExternalTextureLayerImpl.cpp: Removed.
611         * src/WebExternalTextureLayerImpl.h: Removed.
612         * src/WebLayer.cpp:
613         (WebKit::WebLayer::invalidateRect):
614         (WebKit):
615         (WebKit::WebLayer::invalidate):
616         * src/WebPluginContainerImpl.cpp:
617         (WebKit::WebPluginContainerImpl::setBackingTextureId):
618         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
619         (WebKit::WebPluginContainerImpl::commitBackingTexture):
620         (WebKit::WebPluginContainerImpl::setOpaque):
621         (WebKit::WebPluginContainerImpl::platformLayer):
622         (WebKit::WebPluginContainerImpl::WebPluginContainerImpl):
623         * src/WebPluginContainerImpl.h:
624         (WebCore):
625         (WebPluginContainerImpl):
626         * tests/WebExternalTextureLayerImplTest.cpp: Removed.
627         * tests/WebLayerTest.cpp:
628
629 2012-04-18  Dana Jansens  <danakj@chromium.org>
630
631         [chromium] Simplify occlusion tracker API by passing layer iterator data
632         https://bugs.webkit.org/show_bug.cgi?id=84088
633
634         Reviewed by Adrienne Walker.
635
636         * tests/CCOcclusionTrackerTest.cpp:
637         (CCOcclusionTrackerTestMainThreadTypes):
638         (CCOcclusionTrackerTestImplThreadTypes):
639         (WebKitTests::CCOcclusionTrackerTest::CCOcclusionTrackerTest):
640         (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):
641         (CCOcclusionTrackerTest):
642         (WebKitTests::CCOcclusionTrackerTest::enterLayer):
643         (WebKitTests::CCOcclusionTrackerTest::leaveLayer):
644         (WebKitTests::CCOcclusionTrackerTest::visitLayer):
645         (WebKitTests::CCOcclusionTrackerTest::enterContributingSurface):
646         (WebKitTests::CCOcclusionTrackerTest::leaveContributingSurface):
647         (WebKitTests::CCOcclusionTrackerTest::visitContributingSurface):
648         (WebKitTests::CCOcclusionTrackerTest::resetLayerIterator):
649         (WebKitTests::CCOcclusionTrackerTestIdentityTransforms::runMyTest):
650         (WebKitTests::CCOcclusionTrackerTestRotatedChild::runMyTest):
651         (WebKitTests::CCOcclusionTrackerTestTranslatedChild::runMyTest):
652         (WebKitTests::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
653         (WebKitTests::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
654         (WebKitTests::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
655         (WebKitTests::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
656         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
657         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
658         (WebKitTests::CCOcclusionTrackerTestFilters::runMyTest):
659         (WebKitTests::CCOcclusionTrackerTestReplicaDoesOcclude::runMyTest):
660         (WebKitTests::CCOcclusionTrackerTestReplicaWithClipping::runMyTest):
661         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest):
662         (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest):
663         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest):
664         (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest):
665         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest):
666         (WebKitTests::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest):
667         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest):
668         (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest):
669         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest):
670         (WebKitTests::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest):
671         (WebKitTests::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest):
672         (WebKitTests::CCOcclusionTrackerTest3dTransform::runMyTest):
673         (WebKitTests::CCOcclusionTrackerTestPerspectiveTransform::runMyTest):
674         (WebKitTests::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest):
675         (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest):
676         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
677         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
678         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
679         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
680         (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest):
681         (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest):
682         (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest):
683         (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest):
684         (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest):
685         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
686         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest):
687         * tests/CCQuadCullerTest.cpp:
688         (WebCore):
689         (WebCore::makeLayer):
690         (WebCore::appendQuads):
691         (WebCore::TEST):
692
693 2012-04-18  James Robinson  <jamesr@chromium.org>
694
695         [chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initialization before our surface is available
696         https://bugs.webkit.org/show_bug.cgi?id=84301
697
698         Reviewed by Adrienne Walker.
699
700         Update unit tests for new canBeginFrame bit.
701
702         * tests/CCSchedulerStateMachineTest.cpp:
703         (WebCore::TEST):
704         (WebCore):
705         * tests/CCSchedulerTest.cpp:
706         (WebKitTests::TEST):
707
708 2012-04-18  David Reveman  <reveman@chromium.org>
709
710         [Chromium] Solid color layers should respect opacity value.
711         https://bugs.webkit.org/show_bug.cgi?id=84197
712
713         Reviewed by Adrienne Walker.
714
715         * tests/CCSolidColorLayerImplTest.cpp:
716         (CCLayerTestCommon::TEST):
717         (CCLayerTestCommon):
718
719 2012-04-18  Mark Pilgrim  <pilgrim@chromium.org>
720
721         [Chromium] Call prefetchDNS directly
722         https://bugs.webkit.org/show_bug.cgi?id=84262
723
724         Reviewed by Kentaro Hara.
725
726         Part of a series, see tracking bug 82948.
727
728         * src/PlatformSupport.cpp:
729         (WebCore):
730
731 2012-04-18  Myles Maxfield  <mmaxfield@google.com>
732
733         Chromium compile of WebDatabase.cpp fails without SQL_DATABASE
734         https://bugs.webkit.org/show_bug.cgi?id=84212
735
736         Reviewed by Kentaro Hara.
737
738         * src/WebDatabase.cpp:
739         (WebCore::AbstractDatabase::isSyncDatabase):
740
741 2012-04-18  Keishi Hattori  <keishi@webkit.org>
742
743         [chromium] Turn on ENABLE_DATALIST for chromium
744         https://bugs.webkit.org/show_bug.cgi?id=84118
745
746         Reviewed by Kent Tamura.
747
748         * features.gypi: Turn on ENABLE_DATALIST.
749         * src/WebInputElement.cpp: Touched to avoid build issues. No code change.
750
751 2012-04-18  Alexander Pavlov  <apavlov@chromium.org>
752
753         [Chromium] REGRESSION: Popup shrinks because of autocomplete
754         https://bugs.webkit.org/show_bug.cgi?id=84139
755         http://code.google.com/p/chromium/issues/detail?id=123432
756
757         Do not use the PopupContainer's frameRect() to update the popup client's window rect,
758         since PopupContainer is always positioned at (0, 0) inside the client's window rect,
759         and the latter one is positioned relative to the screen origin.
760
761         Reviewed by Kent Tamura.
762
763         * src/WebViewImpl.cpp:
764         (WebKit::WebViewImpl::refreshAutofillPopup):
765
766 2012-04-17  Rafael Weinstein  <rafaelw@chromium.org>
767
768         [MutationObservers] enable V8RecursionScope debug ASSERT()
769         https://bugs.webkit.org/show_bug.cgi?id=84094
770
771         Reviewed by Ojan Vafai.
772
773         This patch enables the ASSERT() which enforces usage of
774         V8RecursionScope.
775
776         * src/WebKit.cpp:
777         (WebKit::assertV8RecursionScope):
778
779 2012-04-17  Dana Jansens  <danakj@chromium.org>
780
781         [chromium] Fix gyp for WebFilterOperation.h and WebFilterOperations.h
782         https://bugs.webkit.org/show_bug.cgi?id=84182
783
784         Reviewed by James Robinson.
785
786         * WebKit.gyp:
787
788 2012-04-17  David Reveman  <reveman@chromium.org>
789
790         [Chromium] Add TextureUploader which allows us to use persistent GC3D state for texture uploads.
791         https://bugs.webkit.org/show_bug.cgi?id=83972
792
793         Reviewed by James Robinson.
794
795         * tests/CCTiledLayerTestCommon.h:
796         (FakeTextureUploader):
797         (WebKitTests::FakeTextureUploader::uploadTexture):
798         (WebKitTests):
799         * tests/Canvas2DLayerChromiumTest.cpp:
800         * tests/TiledLayerChromiumTest.cpp:
801         (WTF::TEST):
802
803 2012-04-17  Alec Flett  <alecflett@chromium.org>
804
805         IndexedDB: stub getKey/getObject interfaces for IDBKeyRange
806         https://bugs.webkit.org/show_bug.cgi?id=84089
807
808         Reviewed by Dimitri Glazkov.
809
810         Added stub methods on WebIDBIndex.h to cleanly land 
811         https://bugs.webkit.org/show_bug.cgi?id=83638
812
813         * public/WebIDBIndex.h:
814         (WebKit::WebIDBIndex::getObject):
815         (WebKit::WebIDBIndex::getKey):
816         * src/WebIDBIndexImpl.cpp:
817         (WebKit::WebIDBIndexImpl::getObject):
818         (WebKit):
819         (WebKit::WebIDBIndexImpl::getKey):
820         * src/WebIDBIndexImpl.h:
821         (WebIDBIndexImpl):
822
823 2012-04-17  Aaron Colwell  <acolwell@chromium.org>
824
825         Add sourceAddId() & sourceRemoveId() stubs for Chromium.
826         These are needed to bring the Media Source implementation 
827         up to date with the new 0.4 version of the Media Source spec.
828         http://html5-mediasource-api.googlecode.com/svn/tags/0.4/draft-spec/mediasource-draft-spec.html
829         https://bugs.webkit.org/show_bug.cgi?id=83616
830
831         Reviewed by Eric Carlson, Darin Fisher.
832
833         * public/WebMediaPlayer.h:
834         (WebKit::WebMediaPlayer::sourceAddId):
835         (WebKit::WebMediaPlayer::sourceRemoveId):
836         * src/AssertMatchingEnums.cpp:
837         * src/WebMediaPlayerClientImpl.cpp:
838         (WebKit::WebMediaPlayerClientImpl::sourceAddId):
839         (WebKit):
840         (WebKit::WebMediaPlayerClientImpl::sourceRemoveId):
841         * src/WebMediaPlayerClientImpl.h:
842         (WebMediaPlayerClientImpl):
843
844 2012-04-17  Kent Tamura  <tkent@chromium.org>
845
846         [Chromium] Calendar Picker: Popup position is wrong when there are
847         no enough space below the target date field
848         https://bugs.webkit.org/show_bug.cgi?id=84007
849
850         Reviewed by Hajime Morita.
851
852         The popup was detached from the origin element because
853         calendarPicker.js resizes its window. To fix this bug, we move the
854         window position vertically when it is resized.
855
856         No new tests. This is not testable in WebKit.
857
858         * src/WebPagePopupImpl.cpp:
859         (WebKit::PagePopupChromeClient::setWindowRect):
860         If this request is just a resize and m_isPutAboveOrigin is true,
861         update the vertical position so that the popup attaches to the
862         origin rectangle.
863         (WebKit::WebPagePopupImpl::WebPagePopupImpl):
864         Initialize m_isPutAboveOrigin with false.
865         (WebKit::WebPagePopupImpl::init): Set m_isPutAboveOrigin true.
866         * src/WebPagePopupImpl.h:
867         (WebPagePopupImpl): Add m_isPutAboveOrigin.
868
869 2012-04-16  Kent Tamura  <tkent@chromium.org>
870
871         Rename LocalizedNumberICU.h to ICULocale.h
872         https://bugs.webkit.org/show_bug.cgi?id=84119
873
874         Reviewed by Kentaro Hara.
875
876         * tests/LocalizedNumberICUTest.cpp: Rename LocalizedNumberICU.h to ICULocale.h
877
878 2012-04-16  Dana Jansens  <danakj@chromium.org>
879
880         [chromium] Expose compositor filters to Aura through WebLayer
881         https://bugs.webkit.org/show_bug.cgi?id=80054
882
883         Reviewed by James Robinson.
884
885         * WebKit.gyp:
886         * src/WebLayer.cpp:
887         (WebKit::WebLayer::setFilters):
888         (WebKit):
889         (WebKit::WebLayer::setBackgroundFilters):
890
891 2012-04-16  Sheriff Bot  <webkit.review.bot@gmail.com>
892
893         Unreviewed.  Rolled DEPS.
894
895         * DEPS:
896
897 2012-04-16  Kent Tamura  <tkent@chromium.org>
898
899         [Chromium] Move popup location detection code from WebViewImpl to WebPagePopupImpl
900         https://bugs.webkit.org/show_bug.cgi?id=84116
901
902         Reviewed by Kentaro Hara.
903
904         This makes no behavior change. Just move some code.
905         To fix Bug 84007, WebPagePopupImpl needs to know if the popup is
906         above the target element or below the target element.
907
908         * src/WebPagePopupImpl.cpp:
909         (WebKit::WebPagePopupImpl::init): Move some code from WebViewImpl::openPagePopup().
910         * src/WebPagePopupImpl.h:
911         (WebPagePopupImpl): Rename an argument name.
912         * src/WebViewImpl.cpp:
913         (WebKit::WebViewImpl::openPagePopup): Move some code to WebPagePopupImpl::init().
914
915 2012-04-13  James Robinson  <jamesr@chromium.org>
916
917         [chromium] Expose WebVideoLayer to Platform API and port WebMediaPlayerClientImpl to using it
918         https://bugs.webkit.org/show_bug.cgi?id=83963
919
920         Reviewed by Adrienne Walker.
921
922         Adds implementation of WebVideoLayer and ports WebMediaPlayerClientImpl over to using it.
923         WebMediaPlayerClientImpl still exposes a WebCore::VideoLayerChromium* to the compositor via the platformLayer()
924         interface, but this is temporary until we can change the PlatformLayer typedef over to WebLayer.
925
926         * WebKit.gyp:
927         * src/WebContentLayer.cpp:
928         * src/WebLayer.cpp:
929         (WebKit::WebLayer::invalidate):
930         (WebKit):
931         * src/WebMediaPlayerClientImpl.cpp:
932         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
933         (WebKit::WebMediaPlayerClientImpl::repaint):
934         (WebKit::WebMediaPlayerClientImpl::setOpaque):
935         (WebKit::WebMediaPlayerClientImpl::platformLayer):
936         (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
937         (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient):
938         (WebKit::WebMediaPlayerClientImpl::supportsType):
939         * src/WebMediaPlayerClientImpl.h:
940         (WebMediaPlayerClientImpl):
941         * src/WebVideoLayer.cpp: Copied from Source/WebKit/chromium/src/WebContentLayer.cpp.
942         (WebKit):
943         (WebKit::WebVideoLayer::create):
944         (WebKit::WebVideoLayer::WebVideoLayer):
945         (WebKit::WebVideoLayer::active):
946
947 2012-04-16  Aaron Colwell  <acolwell@chromium.org>
948
949         Fix WebKit style violations in Chromium WebMediaPlayer.h & WebMediaPlayerClient.h
950         https://bugs.webkit.org/show_bug.cgi?id=84046
951
952         Reviewed by Darin Fisher.
953
954         * WebKit.gyp:
955         * public/WebMediaPlayer.h:
956         (WebKit):
957         * public/WebMediaPlayerClient.h:
958         * public/WebTimeRange.h: Copied from Source/WebKit/chromium/public/WebMediaPlayerClient.h.
959         (WebKit):
960         (WebKit::WebTimeRange::WebTimeRange):
961         (WebTimeRange):
962         * src/AssertMatchingEnums.cpp:
963
964 2012-04-16  Terry Anderson  <tdanderson@chromium.org>
965
966         [chromium] Allow WebGestureEvent to store four floating point values
967         https://bugs.webkit.org/show_bug.cgi?id=84053
968
969         Reviewed by Darin Fisher.
970
971         See bug description for an explanation of the changes made.
972
973         * public/WebInputEvent.h:
974         (WebGestureEvent):
975         (WebKit::WebGestureEvent::WebGestureEvent):
976         * src/WebInputEvent.cpp:
977         (SameSizeAsWebGestureEvent):
978         * src/WebInputEventConversion.cpp:
979         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
980
981 2012-04-16  Alexey Proskuryakov  <ap@apple.com>
982
983         [chromium] Remove BlobRegistryProxy::createResourceHandle
984         https://bugs.webkit.org/show_bug.cgi?id=84047
985
986         Reviewed by Nate Chapin.
987
988         * src/BlobRegistryProxy.h: (BlobRegistryProxy::createResourceHandle): This function
989         is no longer used.
990
991 2012-04-16  Raymes Khoury  <raymes@chromium.org>
992
993         Fix bug in WebPluginContainer::isRectTopmost() which gave the incorrect result for a scrolled window.
994         https://bugs.webkit.org/show_bug.cgi?id=80606
995
996         Reviewed by Darin Fisher.
997
998         * src/WebPluginContainerImpl.cpp:
999         (WebKit::WebPluginContainerImpl::isRectTopmost):
1000
1001 2012-04-15  Keishi Hattori  <keishi@webkit.org>
1002
1003         Introduce MenuItemID to autofill popup
1004         https://bugs.webkit.org/show_bug.cgi?id=83777
1005
1006         Introducing MenuItemIDs because we want to add multiple separators and
1007         need to identify non-autofill menu items without resorting to the separator position.
1008
1009         Reviewed by Kent Tamura.
1010
1011         * public/WebAutofillClient.h:
1012         (WebKit::WebAutofillClient::didAcceptAutofillSuggestion): Changed uniqueID to itemID because they aren't unique.
1013         (WebKit::WebAutofillClient::didSelectAutofillSuggestion):
1014         * public/WebView.h:
1015         (WebView):
1016         * src/AutofillPopupMenuClient.cpp:
1017         (WebKit::AutofillPopupMenuClient::AutofillPopupMenuClient):
1018         (WebKit::AutofillPopupMenuClient::getSuggestionsCount):
1019         (WebKit::AutofillPopupMenuClient::getSuggestion):
1020         (WebKit::AutofillPopupMenuClient::getLabel):
1021         (WebKit::AutofillPopupMenuClient::getIcon):
1022         (WebKit::AutofillPopupMenuClient::removeSuggestionAtIndex):
1023         (WebKit::AutofillPopupMenuClient::canRemoveSuggestionAtIndex):
1024         (WebKit::AutofillPopupMenuClient::valueChanged):
1025         (WebKit::AutofillPopupMenuClient::selectionChanged):
1026         (WebKit::AutofillPopupMenuClient::itemIsSeparator):
1027         (WebKit::AutofillPopupMenuClient::itemIsWarning):
1028         (WebKit::AutofillPopupMenuClient::initialize):
1029         (WebKit::AutofillPopupMenuClient::setSuggestions):
1030         * src/AutofillPopupMenuClient.h:  Removed m_separatorIndex because now we use itemID to identify separators.
1031         Added m_useLegacyBehavior which is true when it is initialized with a valid separator index. This is to keep
1032         the autofill working even when the chromium side hasn't been updated yet.
1033         (AutofillPopupMenuClient):
1034         * src/WebViewImpl.cpp:
1035         (WebKit::WebViewImpl::applyAutofillSuggestions):
1036         * src/WebViewImpl.h:
1037         (WebViewImpl):
1038
1039 2012-04-15  James Robinson  <jamesr@chromium.org>
1040
1041         [chromium] LayerRendererChromium shouldn't know anything about CCLayerImpl
1042         https://bugs.webkit.org/show_bug.cgi?id=83415
1043
1044         Reviewed by Adrienne Walker.
1045
1046         Add an explicit rootLayer getter to the test implementation of LayerRendererChromium since there isn't one on
1047         the base class any more.
1048
1049         * tests/LayerRendererChromiumTest.cpp:
1050         (FakeLayerRendererChromiumClient::rootLayer):
1051         (FakeLayerRendererChromiumClient):
1052         (TEST_F):
1053
1054 2012-04-15  Yuta Kitamura  <yutak@chromium.org>
1055
1056         Leak in WebSocketChannel with workers/worker-reload.html (part 2)
1057         https://bugs.webkit.org/show_bug.cgi?id=83749
1058
1059         Reviewed by David Levin.
1060
1061         * src/WebWorkerClientImpl.cpp:
1062         (WebKit::WebWorkerClientImpl::postTaskForModeToWorkerContext):
1063         Correctly propagate the return value of postTaskForModeToWorkerContext().
1064
1065 2012-04-13  David Reveman  <reveman@chromium.org>
1066
1067         [Chromium] Avoid unnecessary full tile updates for checkerboard tiles.
1068         https://bugs.webkit.org/show_bug.cgi?id=83804
1069
1070         Reviewed by James Robinson.
1071
1072         * tests/CCLayerTreeHostTest.cpp:
1073         (WTF::setLayerPropertiesForTesting):
1074         (WTF):
1075         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::beginTest):
1076         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
1077         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::drawLayersOnCCThread):
1078         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::layout):
1079         (WTF::setTestLayerPropertiesForTesting):
1080         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
1081         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
1082         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
1083         * tests/TiledLayerChromiumTest.cpp:
1084         (WTF::TEST):
1085
1086 2012-04-13  Nico Weber  <thakis@chromium.org>
1087
1088         [chromium] There is no Color(float, float, float) constructor, fix an attempt to call it.
1089         https://bugs.webkit.org/show_bug.cgi?id=83920
1090
1091         Reviewed by James Robinson.
1092
1093         Found by clang:
1094           third_party/WebKit/Source/WebKit/chromium/tests/LayerChromiumTest.cpp:508:89:error: implicit conversion turns literal floating-point number into integer: 'float' to 'int' [-Werror,-Wliteral-conversion]
1095           EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBackgroundColor(Color(0.4f, 0.4f, 0.4f)));
1096           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
1097
1098         * tests/LayerChromiumTest.cpp:
1099
1100 2012-04-13  Dana Jansens  <danakj@chromium.org>
1101
1102         [chromium] Replicas should be included in the computed occlusion
1103         https://bugs.webkit.org/show_bug.cgi?id=82262
1104
1105         Reviewed by Adrienne Walker.
1106
1107         * tests/CCOcclusionTrackerTest.cpp:
1108         (CCOcclusionTrackerTestReplicaDoesOcclude):
1109         (WebKitTests::CCOcclusionTrackerTestReplicaDoesOcclude::runMyTest):
1110         (WebKitTests):
1111         (CCOcclusionTrackerTestReplicaWithClipping):
1112         (WebKitTests::CCOcclusionTrackerTestReplicaWithClipping::runMyTest):
1113         (CCOcclusionTrackerTestSurfaceChildOfSurface):
1114         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
1115
1116 2012-04-13  Bernhard Bauer  <bauerb@google.com>
1117
1118         [chromium] Remove fallback code for "Missing plug-in" string.
1119         https://bugs.webkit.org/show_bug.cgi?id=81907
1120
1121         Reviewed by Adam Barth.
1122
1123         * src/LocalizedStrings.cpp:
1124         (WebCore::missingPluginText):
1125
1126 2012-04-11  James Robinson  <jamesr@chromium.org>
1127
1128         [chromium] Remove unused compositeToTexture / compositeOffscreen setting
1129         https://bugs.webkit.org/show_bug.cgi?id=83733
1130
1131         Reviewed by Adrienne Walker.
1132
1133         Remove compositeOffscreen / compositeToTexture setting. This was an experiment that is no longer needed.
1134
1135         * public/WebSettings.h:
1136         * src/WebLayerTreeView.cpp:
1137         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
1138         * src/WebSettingsImpl.cpp:
1139         (WebKit::WebSettingsImpl::WebSettingsImpl):
1140         * src/WebSettingsImpl.h:
1141         (WebSettingsImpl):
1142         * src/WebViewImpl.cpp:
1143         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1144
1145 2012-04-13  James Robinson  <jamesr@chromium.org>
1146
1147         [chromium] Move WebVideoFrame into Platform and remove WebCore::VideoFrameChromium wrapper API
1148         https://bugs.webkit.org/show_bug.cgi?id=83851
1149
1150         Reviewed by Adam Barth.
1151
1152         Moves the WebVideoFrame interface into Platform and removes the now unnecessary VideoFrameChromiumImpl adapter
1153         implementation.
1154
1155         * WebKit.gyp:
1156         * public/WebVideoFrame.h:
1157         * src/AssertMatchingEnums.cpp:
1158         * src/VideoFrameChromiumImpl.cpp: Removed.
1159         * src/VideoFrameChromiumImpl.h: Removed.
1160         * src/WebMediaPlayerClientImpl.cpp:
1161         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
1162         (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
1163         (WebKit::WebMediaPlayerClientImpl::supportsType):
1164         * src/WebMediaPlayerClientImpl.h:
1165         (WebMediaPlayerClientImpl):
1166
1167 2012-04-13  Rob Flack  <flackr@chromium.org>
1168
1169         Chromium: Should enable -webkit-image-set
1170         https://bugs.webkit.org/show_bug.cgi?id=81859
1171
1172         Reviewed by Adam Barth.
1173
1174         * features.gypi:
1175
1176 2012-04-12  Michael Nordman  <michaeln@google.com>
1177
1178         [chromium] Now that the chromium port is using a different dom_storage backend
1179         library in its main browser process, there are a handful of files that should no
1180         longer be included in the build, and a few files than should be deleted
1181         outright, and the webkit api should be modified to reflect the new (and smaller)
1182         contract between the embedder and webkit/webcore.
1183         https://bugs.webkit.org/show_bug.cgi?id=83807
1184
1185         Reviewed by Adam Barth.
1186
1187         * WebKit.gyp: Delete a few files.
1188         * public/WebStorageNamespace.h:  Remove some unused data members and methods, and annotate close() as deprecated.
1189         * public/platform/WebKitPlatformSupport.h: Annotate a method as deprecated.
1190         * src/StorageAreaProxy.cpp: Remove the include of a deleted file.
1191         * src/StorageEventDispatcherChromium.cpp: Removed.
1192         * src/StorageEventDispatcherImpl.cpp: Added a FIXME comment for upcoming work.
1193         * src/StorageNamespaceProxy.cpp: Modified to no longer call out to the embedder thru the deprecated close() method.
1194         * src/StorageNamespaceProxy.h: Moved some blank lines around.
1195         * src/WebStorageAreaImpl.cpp: Removed.
1196         * src/WebStorageAreaImpl.h: Removed.
1197         * src/WebStorageEventDispatcherImpl.cpp: Cleaned up some cruft.
1198         * src/WebStorageNamespaceImpl.cpp: Removed.
1199         * src/WebStorageNamespaceImpl.h: Removed.
1200
1201 2012-04-13  Sheriff Bot  <webkit.review.bot@gmail.com>
1202
1203         Unreviewed, rolling out r114140.
1204         http://trac.webkit.org/changeset/114140
1205         https://bugs.webkit.org/show_bug.cgi?id=83921
1206
1207         Fails fast/css/image-set-parsing.html test it attempts to
1208         introduce. (Requested by scheib on #webkit).
1209
1210         * features.gypi:
1211
1212 2012-04-13  Rob Flack  <flackr@chromium.org>
1213
1214         Chromium: Should enable -webkit-image-set
1215         https://bugs.webkit.org/show_bug.cgi?id=81859
1216
1217         Reviewed by Adam Barth.
1218
1219         * features.gypi:
1220
1221 2012-04-13  Yury Semikhatsky  <yurys@chromium.org>
1222
1223         Unreviewed. Build fix after r114126.
1224
1225         * WebKit.gyp:
1226
1227 2012-04-13  Keishi Hattori  <keishi@webkit.org>
1228
1229         [chromium] Add WebKit API to access <datalist> options
1230         https://bugs.webkit.org/show_bug.cgi?id=83762
1231
1232         Introduce WebInputElement::dataListOptions so we can implement a UI for datalist.
1233
1234         Reviewed by Kent Tamura.
1235
1236         * public/WebInputElement.h:
1237         (WebKit):
1238         (WebInputElement):
1239         * src/WebInputElement.cpp:
1240         (WebKit::WebInputElement::dataListOptions): Added. Returns a WebNodeCollection containing WebOptionElements.
1241
1242 2012-04-13  Kent Tamura  <tkent@chromium.org>
1243
1244         Add a runtime flag for <input type=date>
1245         https://bugs.webkit.org/show_bug.cgi?id=83853
1246
1247         Reviewed by Adam Barth.
1248
1249         * public/WebRuntimeFeatures.h:
1250         (WebRuntimeFeatures): Add enableInputTypeDate() and isInputTypeDateEnabled().
1251         * src/WebRuntimeFeatures.cpp:
1252         (WebKit::WebRuntimeFeatures::enableInputTypeDate): Added.
1253         (WebKit::WebRuntimeFeatures::isInputTypeDateEnabled): Added.
1254
1255 2012-04-13  Sheriff Bot  <webkit.review.bot@gmail.com>
1256
1257         Unreviewed.  Rolled DEPS.
1258
1259         * DEPS:
1260
1261 2012-04-12  Dana Jansens  <danakj@chromium.org>
1262
1263         [chromium] Background filters for composited layers
1264         https://bugs.webkit.org/show_bug.cgi?id=80046
1265
1266         Reviewed by Adrienne Walker.
1267
1268         * tests/CCLayerImplTest.cpp:
1269         (WebCore::TEST):
1270
1271 2012-04-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1272
1273         Unreviewed, rolling out r114075.
1274         http://trac.webkit.org/changeset/114075
1275         https://bugs.webkit.org/show_bug.cgi?id=83857
1276
1277         Breaks compile (Requested by jamesr on #webkit).
1278
1279         * WebKit.gyp:
1280         * public/WebVideoFrame.h:
1281         (WebKit):
1282         (WebVideoFrame):
1283         (WebKit::WebVideoFrame::~WebVideoFrame):
1284         (WebKit::WebVideoFrame::format):
1285         (WebKit::WebVideoFrame::width):
1286         (WebKit::WebVideoFrame::height):
1287         (WebKit::WebVideoFrame::planes):
1288         (WebKit::WebVideoFrame::stride):
1289         (WebKit::WebVideoFrame::data):
1290         (WebKit::WebVideoFrame::textureId):
1291         (WebKit::WebVideoFrame::textureTarget):
1292         * src/AssertMatchingEnums.cpp:
1293         * src/VideoFrameChromiumImpl.cpp: Added.
1294         (WebKit):
1295         (WebKit::VideoFrameChromiumImpl::toWebVideoFrame):
1296         (WebKit::VideoFrameChromiumImpl::VideoFrameChromiumImpl):
1297         (WebKit::VideoFrameChromiumImpl::format):
1298         (WebKit::VideoFrameChromiumImpl::width):
1299         (WebKit::VideoFrameChromiumImpl::height):
1300         (WebKit::VideoFrameChromiumImpl::planes):
1301         (WebKit::VideoFrameChromiumImpl::stride):
1302         (WebKit::VideoFrameChromiumImpl::data):
1303         (WebKit::VideoFrameChromiumImpl::requiredTextureSize):
1304         (WebKit::VideoFrameChromiumImpl::hasPaddingBytes):
1305         (WebKit::VideoFrameChromiumImpl::textureId):
1306         (WebKit::VideoFrameChromiumImpl::textureTarget):
1307         * src/VideoFrameChromiumImpl.h: Renamed from Source/Platform/chromium/public/WebVideoFrame.h.
1308         (WebKit):
1309         (VideoFrameChromiumImpl):
1310         * src/WebMediaPlayerClientImpl.cpp:
1311         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
1312         (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
1313         (WebKit::WebMediaPlayerClientImpl::supportsType):
1314         * src/WebMediaPlayerClientImpl.h:
1315         (WebMediaPlayerClientImpl):
1316
1317 2012-04-12  James Robinson  <jamesr@chromium.org>
1318
1319         [chromium] Move WebVideoFrame into Platform and remove WebCore::VideoFrameChromium wrapper API
1320         https://bugs.webkit.org/show_bug.cgi?id=83851
1321
1322         Reviewed by Adam Barth.
1323
1324         Moves the WebVideoFrame interface into Platform and removes the now unnecessary VideoFrameChromiumImpl adapter
1325         implementation.
1326
1327         * WebKit.gyp:
1328         * public/WebVideoFrame.h:
1329         * src/AssertMatchingEnums.cpp:
1330         * src/VideoFrameChromiumImpl.cpp: Removed.
1331         * src/VideoFrameChromiumImpl.h: Removed.
1332         * src/WebMediaPlayerClientImpl.cpp:
1333         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
1334         (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
1335         (WebKit::WebMediaPlayerClientImpl::supportsType):
1336         * src/WebMediaPlayerClientImpl.h:
1337         (WebMediaPlayerClientImpl):
1338
1339 2012-04-12  David Dorwin  <ddorwin@chromium.org>
1340
1341         Add Encrypted Media Extensions events and errors to HTMLMediaElement
1342         https://bugs.webkit.org/show_bug.cgi?id=82974
1343
1344         Reviewed by Adam Barth.
1345
1346         The new events and errors are behind the ENABLE(ENCRYPTED_MEDIA) feature define.
1347         Implementation is based on v0.1 of the draft proposal at
1348         http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#events.
1349
1350         * public/WebMediaPlayerClient.h:
1351         * src/AssertMatchingEnums.cpp:
1352         * src/WebMediaPlayerClientImpl.cpp:
1353         (WebKit::WebMediaPlayerClientImpl::keyAdded):
1354         (WebKit):
1355         (WebKit::WebMediaPlayerClientImpl::keyError):
1356         (WebKit::WebMediaPlayerClientImpl::keyMessage):
1357         (WebKit::WebMediaPlayerClientImpl::keyNeeded):
1358         * src/WebMediaPlayerClientImpl.h:
1359         (WebMediaPlayerClientImpl):
1360
1361 2012-04-12  Kent Tamura  <tkent@chromium.org>
1362
1363         [Chromium] Enable INPUT_TYPE_DATE
1364         https://bugs.webkit.org/show_bug.cgi?id=83761
1365
1366         Reviewed by Kentaro Hara.
1367
1368         * features.gypi: Turn ENABLE_INPUT_TYPE_DATE on.
1369
1370 2012-04-12  Kent Tamura  <tkent@chromium.org>
1371
1372         [Chromium] Fix !ENABLE(PAGE_POPUP) build
1373
1374         * src/WebViewImpl.cpp:
1375         (WebKit::WebViewImpl::WebViewImpl): Wrap m_pagePopup with ENABLE(PAGE_POPUP).
1376
1377 2012-04-12  Kent Tamura  <tkent@chromium.org>
1378
1379         [Chromium] Add PagePopup implementation
1380         https://bugs.webkit.org/show_bug.cgi?id=81081
1381
1382         Reviewed by Adam Barth.
1383
1384         Add WebPagePopupImpl class, which is an implementation of
1385         WebCore::PagePopup interface and WebKit::WebPagePopup interface. It's a
1386         WebWidget which has a Page object.
1387
1388         No new tests because this makes no behavior change yet.
1389
1390         * WebKit.gyp: Add WebPagePopupImpl.h.
1391         * src/ChromeClientImpl.cpp:
1392         (WebKit::ChromeClientImpl::hasOpenedPopup): Supports the PagePopup.
1393         (WebKit::ChromeClientImpl::openPagePopup):
1394         just delegate to WebViewImpl::openPagePopup().
1395         (WebKit::ChromeClientImpl::closePagePopup): ditto.
1396
1397         * src/WebPagePopupImpl.cpp:
1398         (PagePopupChromeClient):
1399         This is a light implementation of ChromeClient for the page in
1400         WebPagePopupImpl. This is a friend of WebPagePopupImpl becase of ease of
1401         access to its members.
1402         (WebKit::PagePopupChromeClient::PagePopupChromeClient):
1403         (WebKit::WebPagePopupImpl::WebPagePopupImpl):
1404         (WebKit::WebPagePopupImpl::~WebPagePopupImpl):
1405         (WebKit::WebPagePopupImpl::init):
1406         (WebKit::WebPagePopupImpl::initPage):
1407         (WebKit::WebPagePopupImpl::size):
1408         (WebKit::WebPagePopupImpl::animate): Calls PageWidgetDelegate::animate().
1409         (WebKit::WebPagePopupImpl::composite):
1410         (WebKit::WebPagePopupImpl::layout): Calls PageWidgetDelegate::layout().
1411         (WebKit::WebPagePopupImpl::paint): Calls PageWidgetDelegate::paint().
1412         (WebKit::WebPagePopupImpl::resize):
1413         (WebKit::WebPagePopupImpl::handleKeyEvent):
1414         (WebKit::WebPagePopupImpl::handleCharEvent):
1415         (WebKit::WebPagePopupImpl::handleGestureEvent):
1416         (WebKit::WebPagePopupImpl::handleInputEvent):
1417         (WebKit::WebPagePopupImpl::setFocus):
1418         (WebKit::WebPagePopupImpl::close): Delete the page, and kill itself.
1419         (WebKit::WebPagePopupImpl::closePopup):
1420         (WebKit::WebPagePopup::create):
1421         * src/WebPagePopupImpl.h: Added.
1422
1423         * src/WebViewImpl.cpp:
1424         (WebKit::WebViewImpl::WebViewImpl): Initialize m_pagePopup.
1425         (WebKit::WebViewImpl::handleKeyEvent):
1426         Renamed from keyEvent(). Forward key events to a PagePopup if it is open.
1427         (WebKit::WebViewImpl::handleCharEvent):
1428         Renamed from charEvent(). Forward char events to a PagePopup if it is open.
1429         (WebKit::WebViewImpl::openPagePopup):
1430         Added. Instantiate a WebPagePopupImpl, calculates a good bounding
1431         rectangle of the page popup from the specified element rectangle,
1432         initialize the WebPagePopupImpl, and stop caret blink.
1433         (WebKit::WebViewImpl::closePagePopup):
1434         Close the popup, clear m_pagePopup, and resume caret blink.
1435         (WebKit::WebViewImpl::setFocus): Hide all the popups.
1436         (WebKit::WebViewImpl::hidePopups): Hide the page popup too.
1437         * src/WebViewImpl.h:
1438         (WebKit::WebViewImpl::hasOpenedPopup): Checks the page popup too.
1439
1440 2012-04-12  Kent Tamura  <tkent@chromium.org>
1441
1442         [Chromium] Move some code of WebViewImpl and WebFrameImpl to PageWidgetDelegate
1443         https://bugs.webkit.org/show_bug.cgi?id=83750
1444
1445         Reviewed by Adam Barth.
1446
1447         In order to share code in WebViewImpl and the incoming WebPagePopupImpl,
1448         we move some code of WebViewImpl and WebFrameImpl to PageWidgetDelegate.
1449         PageWidgetDelegate is a set of static functions because we can't use
1450         virtual inheritance in this case and we don't want to move WebView's
1451         data members to another class.
1452
1453         No new tests. Just refactoring.
1454
1455         * WebKit.gyp: Add PageWidgetDelegate.{cpp,h} and WebPagePopupImpl.h.
1456         * src/PageWidgetDelegate.cpp: Added.
1457         (WebKit::mainFrameView):
1458         (WebKit::PageWidgetDelegate::animate):
1459         Moved from a part of WebViewImpl::animatie()
1460         (WebKit::PageWidgetDelegate::layout):
1461         Moved from WebViewImpl::layout() and WebFrameImpl::layout().
1462         (WebKit::PageWidgetDelegate::paint):
1463         Moved from WebFrameImpl::paint() and paintWithContext().
1464         (WebKit::PageWidgetDelegate::handleInputEvent):
1465         Moved from a part of WebViewImpl::handleInputEvent().
1466         (WebKit::PageWidgetEventHandler::handleMouseMove):
1467         Common implementation of an event handling.
1468         (WebKit::PageWidgetEventHandler::handleMouseLeave): ditto.
1469         (WebKit::PageWidgetEventHandler::handleMouseDown): ditto.
1470         (WebKit::PageWidgetEventHandler::handleMouseUp): ditto.
1471         (WebKit::PageWidgetEventHandler::handleMouseWheel): ditto.
1472         (WebKit::PageWidgetEventHandler::handleTouchEvent): ditto.
1473         * src/PageWidgetDelegate.h: Added.
1474         * src/WebFrameImpl.cpp:
1475         Remove layout(), paintWithContext(), and paint(). They are moved to
1476         PageWidgetDelegate.
1477         * src/WebFrameImpl.h:
1478         (WebFrameImpl): Remove layout(), paintWithContext(), and paint().
1479         * src/WebViewImpl.cpp:
1480         (WebKit::WebViewImpl::handleMouseLeave):
1481         Renamed from mouseLeave(), use PageWidgetDelegate::handleMouseLeave().
1482         (WebKit::WebViewImpl::handleMouseDown):
1483         Renamed from mouseDown(), use PageWidgetDelegate::handleMouseDown().
1484         (WebKit::WebViewImpl::handleMouseUp):
1485         Renamed from mouseUp(), use PageWidgetDelegate::handleMouseUp().
1486         (WebKit::WebViewImpl::scrollBy): Calls renamed handleMouseWheel().
1487         (WebKit::WebViewImpl::handleGestureEvent): Renamed from gestureEvent().
1488         (WebKit::WebViewImpl::handleKeyEvent): Renamed from keyEvent().
1489         (WebKit::WebViewImpl::handleCharEvent): Renamed from charEvent().
1490         (WebKit::WebViewImpl::updateAnimations): Uses PageWidgetDelegate::animate().
1491         (WebKit::WebViewImpl::layout): Uses PageWidgetDelegate::layout().
1492         (WebKit::WebViewImpl::paint): Uses PageWidgetDelegate::paint().
1493         (WebKit::WebViewImpl::handleInputEvent): Uses PageWidgetDelegate::handleInputEvent().
1494         * src/WebViewImpl.h:
1495
1496 2012-04-12  Adrienne Walker  <enne@google.com>
1497
1498         [chromium] Fix Windows compiler warnings in webkit_unit_test target
1499         https://bugs.webkit.org/show_bug.cgi?id=83732
1500
1501         Reviewed by Kent Tamura.
1502
1503         * tests/CCDamageTrackerTest.cpp:
1504         (WebKitTests::TEST_F):
1505         * tests/CCLayerImplTest.cpp:
1506         (WebCore::TEST):
1507         * tests/CCLayerTreeHostCommonTest.cpp:
1508         (WebKitTests::TEST):
1509         * tests/CCLayerTreeHostImplTest.cpp:
1510         (WebKitTests::TEST_F):
1511         * tests/CCQuadCullerTest.cpp:
1512         (WebCore::TEST):
1513         * tests/FloatQuadTest.cpp:
1514         (WebCore::TEST):
1515         * tests/ScrollAnimatorNoneTest.cpp:
1516         (TEST_F):
1517         * tests/TreeSynchronizerTest.cpp:
1518         (WebKitTests::TEST):
1519         * tests/WebLayerTest.cpp:
1520
1521 2012-04-11  Alec Flett  <alecflett@chromium.org>
1522
1523         IndexedDB: Stub out WebKit interface for get(IndexedKeyRange)
1524         https://bugs.webkit.org/show_bug.cgi?id=83637
1525
1526         Reviewed by Kent Tamura.
1527
1528         This is just a stub-out of IDBObjectStore.get(IDBKeyRange) to coordinate 
1529         a landing in chromium
1530
1531         * public/WebIDBObjectStore.h:
1532         (WebKit::WebIDBObjectStore::get):
1533         (WebIDBObjectStore):
1534         * src/IDBObjectStoreBackendProxy.cpp:
1535         (WebKit::IDBObjectStoreBackendProxy::get):
1536         (WebKit):
1537         * src/IDBObjectStoreBackendProxy.h:
1538         (IDBObjectStoreBackendProxy):
1539         * src/WebIDBObjectStoreImpl.cpp:
1540         (WebKit::WebIDBObjectStoreImpl::get):
1541         (WebKit):
1542         * src/WebIDBObjectStoreImpl.h:
1543         (WebIDBObjectStoreImpl):
1544
1545 2012-04-11  Kenichi Ishibashi  <bashi@chromium.org>
1546
1547         [chromium] Fix Windows warnings in WebSocketDeflaterTest
1548         https://bugs.webkit.org/show_bug.cgi?id=83731
1549
1550         Reviewed by Kent Tamura.
1551
1552         Use const char* instead of const char[] to suppress warnings on
1553         Windows.
1554
1555         * tests/WebSocketDeflaterTest.cpp:
1556         (WebCore::TEST):
1557
1558 2012-04-11  David Dorwin  <ddorwin@chromium.org>
1559
1560         Add keySystem attribute to canPlayType() for Encrypted Media Extensions
1561         https://bugs.webkit.org/show_bug.cgi?id=82973
1562
1563         Reviewed by Adam Barth.
1564
1565         The new attribute is behind the ENABLE(ENCRYPTED_MEDIA) feature define.
1566         Implementation is based on v0.1 of the draft proposal at
1567         http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#extensions.
1568
1569         * src/WebMediaPlayerClientImpl.cpp:
1570         (WebKit::WebMediaPlayerClientImpl::supportsType):
1571         * src/WebMediaPlayerClientImpl.h:
1572         (WebMediaPlayerClientImpl):
1573
1574 2012-04-10  James Robinson  <jamesr@chromium.org>
1575
1576         [chromium] Add OVERRIDE annotations for cc layer types
1577         https://bugs.webkit.org/show_bug.cgi?id=83658
1578
1579         Reviewed by Daniel Bates.
1580
1581         This adds OVERRIDE annotations to overrides of functions on these classes:
1582         - CCLayerImpl
1583         - LayerChromium
1584         - TiledLayerChromium
1585
1586         * src/WebLayerImpl.cpp:
1587         * src/WebLayerImpl.h:
1588         (WebLayerImpl): Removed unused and empty paintContents() function.
1589         * tests/CCLayerIteratorTest.cpp:
1590         * tests/CCLayerTreeHostCommonTest.cpp:
1591         * tests/CCLayerTreeHostImplTest.cpp:
1592         * tests/CCLayerTreeHostTest.cpp:
1593         * tests/CCOcclusionTrackerTest.cpp:
1594         * tests/CCTiledLayerTestCommon.h:
1595         (FakeTiledLayerChromium):
1596         * tests/LayerChromiumTest.cpp:
1597         * tests/TreeSynchronizerTest.cpp:
1598
1599 2012-04-11  James Robinson  <jamesr@chromium.org>
1600
1601         [chromium] Add OVERRIDE annotations for cc animation-related interfaces
1602         https://bugs.webkit.org/show_bug.cgi?id=83650
1603
1604         Reviewed by Daniel Bates.
1605
1606         This adds OVERRIDE annotations to the implementations of the following interfaces:
1607         - CCAnimationCurve
1608         - CCFloatAnimationCurve
1609         - CCLayerAnimationControllerClient
1610         - CCTransformAnimationCurve
1611
1612         * tests/CCAnimationTestCommon.h:
1613
1614 2012-04-11  Aaron Colwell  <acolwell@chromium.org>
1615
1616         Remove webkit prefix from Media Source runtime feature name.
1617         https://bugs.webkit.org/show_bug.cgi?id=83633
1618
1619         Reviewed by Adam Barth.
1620
1621         * src/WebRuntimeFeatures.cpp:
1622         (WebKit::WebRuntimeFeatures::enableMediaSource):
1623         (WebKit::WebRuntimeFeatures::isMediaSourceEnabled):
1624
1625 2012-04-11  Adrienne Walker  <enne@google.com>
1626
1627         [chromium] Draw missing layer tile checkerboards as checkerboards
1628         https://bugs.webkit.org/show_bug.cgi?id=83241
1629
1630         Reviewed by James Robinson.
1631
1632         Rename usedCheckerboard to hadMissingTile to avoid confusion. Update
1633         tests to not expect SolidColor quads for checkerboards.
1634
1635         * src/NonCompositedContentHost.cpp:
1636         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
1637         * tests/CCQuadCullerTest.cpp:
1638         (WebCore::appendQuads):
1639         * tests/CCSolidColorLayerImplTest.cpp:
1640         (CCLayerTestCommon::TEST):
1641         * tests/CCTiledLayerImplTest.cpp:
1642         (CCLayerTestCommon::TEST):
1643         (CCLayerTestCommon::getQuads):
1644         * tests/LayerChromiumTest.cpp:
1645
1646 2012-04-11  Ami Fischman  <fischman@chromium.org>
1647
1648         Remove unused WebVideoFrame::Format values
1649         https://bugs.webkit.org/show_bug.cgi?id=83625
1650
1651         Reviewed by Kenneth Russell.
1652
1653         * public/WebVideoFrame.h:
1654         (WebKit):
1655         * src/AssertMatchingEnums.cpp:
1656
1657 2012-04-11  'Pavel Feldman'  <pfeldman@chromium.org>
1658
1659         Follow up to r113863: fix chromium inspector interactive test harness.
1660
1661         * src/js/Tests.js:
1662
1663 2012-04-11  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1664
1665         [chromium] Add Battery Status API support.
1666
1667         The battery-client (BatteryClientChromium) will notify the client (WebBatteryStatusClient) when to start or stop
1668         sending battery status updates. The client, in response will send the notifications to WebViewImpl, which sends
1669         this update information to the WebCore::BatteryClient, and it triggers the appropriate javascript-callbacks.
1670         The spec is at http://www.w3.org/TR/2011/WD-battery-status-20111129/.
1671         https://bugs.webkit.org/show_bug.cgi?id=83284
1672
1673         Reviewed by Adam Barth.
1674
1675         * WebKit.gyp:
1676         * features.gypi:
1677         * public/WebBatteryStatus.h: Added.
1678         (WebKit):
1679         (WebBatteryStatus):
1680         (WebKit::WebBatteryStatus::WebBatteryStatus):
1681         * public/WebBatteryStatusClient.h: Added.
1682         (WebKit):
1683         (WebBatteryStatusClient):
1684         (WebKit::WebBatteryStatusClient::~WebBatteryStatusClient):
1685         * public/WebView.h:
1686         (WebKit):
1687         (WebView):
1688         (WebKit::WebView::updateBatteryStatus):
1689         * public/WebViewClient.h:
1690         (WebKit):
1691         (WebViewClient):
1692         (WebKit::WebViewClient::batteryStatusClient):
1693         * src/BatteryClientImpl.cpp: Added.
1694         (WebKit):
1695         (WebKit::BatteryClientImpl::BatteryClientImpl):
1696         (WebKit::BatteryClientImpl::updateBatteryStatus):
1697         (WebKit::BatteryClientImpl::setController):
1698         (WebKit::BatteryClientImpl::startUpdating):
1699         (WebKit::BatteryClientImpl::stopUpdating):
1700         (WebKit::BatteryClientImpl::batteryControllerDestroyed):
1701         * src/BatteryClientImpl.h: Added.
1702         (WebKit):
1703         (BatteryClientImpl):
1704         (WebKit::BatteryClientImpl::~BatteryClientImpl):
1705         * src/WebViewImpl.cpp:
1706         (WebKit::WebViewImpl::WebViewImpl):
1707         (WebKit):
1708         (WebKit::WebViewImpl::updateBatteryStatus):
1709         * src/WebViewImpl.h:
1710         (WebKit):
1711         (WebViewImpl):
1712
1713 2012-04-10  Ami Fischman  <fischman@chromium.org>
1714
1715         Roll Chromium DEPS to last-known good revision
1716         https://bugs.webkit.org/show_bug.cgi?id=83652
1717
1718         Unreviewed, just a DEPS roll (131469:131684)
1719
1720         * DEPS:
1721
1722 2012-04-10  Alexandre Elias  <aelias@google.com>
1723
1724         Add gesture event enums for long-press and pinch
1725         https://bugs.webkit.org/show_bug.cgi?id=83640
1726
1727         Reviewed by James Robinson.
1728
1729         Add new enum values GestureLongPress and GesturePinchBegin/End/Update,
1730         along with no-op default handling.
1731
1732         * public/WebInputEvent.h:
1733         * src/WebInputEventConversion.cpp:
1734         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1735         * src/WebPopupMenuImpl.cpp:
1736         (WebKit::WebPopupMenuImpl::handleInputEvent):
1737         * src/WebViewImpl.cpp:
1738         (WebKit::WebViewImpl::gestureEvent):
1739
1740 2012-04-10  James Robinson  <jamesr@chromium.org>
1741
1742         [chromium] Add OVERRIDE annotations for cc tree host and proxy interfaces
1743         https://bugs.webkit.org/show_bug.cgi?id=83653
1744
1745         Reviewed by Adrienne Walker.
1746
1747         This adds OVERRIDE annotations to the implementations of the following interfaces:
1748         - CCLayerTreeHostClient
1749         - CCLayerTreeHostImplClient
1750         - CCProxy
1751         - LayerRendererChromiumClient
1752
1753         * src/WebLayerTreeViewImpl.h:
1754         (WebLayerTreeViewImpl):
1755         * src/WebViewImpl.h:
1756         (WebViewImpl):
1757         * tests/CCLayerTreeHostImplTest.cpp:
1758         * tests/CCLayerTreeHostTest.cpp:
1759         * tests/FakeCCLayerTreeHostClient.h:
1760         * tests/LayerRendererChromiumTest.cpp:
1761
1762 2012-04-10  James Robinson  <jamesr@chromium.org>
1763
1764         [chromium] Add OVERRIDE annotations for cc scheduler-related client interfaces
1765         https://bugs.webkit.org/show_bug.cgi?id=83646
1766
1767         Reviewed by Adrienne Walker.
1768
1769         This adds OVERRIDE annotations to the implementations of the following interfaces:
1770         - CCFrameRateControllerClient
1771         - CCSchedulerClient
1772         - CCTimeSource
1773         - CCTimeSourceClient
1774         - CCTimerClient
1775
1776
1777         * tests/CCSchedulerTest.cpp:
1778         * tests/CCSchedulerTestCommon.h:
1779
1780 2012-04-10  James Robinson  <jamesr@chromium.org>
1781
1782         [chromium] Fold LayerChromium::updateCompositorResources into main update
1783         https://bugs.webkit.org/show_bug.cgi?id=83530
1784
1785         Reviewed by Adrienne Walker.
1786
1787         Update tests for interface changes.
1788
1789         * tests/CCLayerTreeHostTest.cpp:
1790         (WTF::CCLayerTreeHostTest::runTest):
1791         (WTF::ContentLayerChromiumWithUpdateTracking::update):
1792         (WTF::ContentLayerChromiumWithUpdateTracking::idleUpdate):
1793         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
1794         (ContentLayerChromiumWithUpdateTracking):
1795         (WTF::CCLayerTreeHostTestOpacityChange::afterTest):
1796         (WTF::CCLayerTreeHostTestSetViewportSize::beginTest):
1797         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
1798         (WTF::TestLayerChromium::update):
1799         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
1800         (WTF::CCLayerTreeHostTestContentLayerOcclusion::beginTest):
1801         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
1802         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
1803         * tests/CCTiledLayerTestCommon.cpp:
1804         (WebKitTests::FakeLayerTextureUpdater::updateLayerRect):
1805         (WebKitTests::FakeTiledLayerChromium::update):
1806         * tests/CCTiledLayerTestCommon.h:
1807         (FakeLayerTextureUpdater):
1808         (FakeTiledLayerChromium):
1809         * tests/Canvas2DLayerChromiumTest.cpp:
1810         * tests/TiledLayerChromiumTest.cpp:
1811         (WTF::TEST):
1812         (WTF::idlePaintRepeat):
1813
1814 2012-04-10  Adam Barth  <abarth@webkit.org>
1815
1816         Limit -apple- and -khtml- to ENABLE(DASHBOARD_SUPPORT)
1817         https://bugs.webkit.org/show_bug.cgi?id=83256
1818
1819         Reviewed by Eric Seidel.
1820
1821         * features.gypi:
1822
1823 2012-04-10  Tim Dresser  <tdresser@chromium.org>
1824
1825         [Chromium] defaultDeviceScaleFactor != 0 should set deviceScaleFactor = defaultDeviceScaleFactor in the absence of a viewport tag for debugging purposes
1826         https://bugs.webkit.org/show_bug.cgi?id=82757
1827
1828         Reviewed by Darin Fisher.
1829
1830         If there is no viewport tag, the deviceScaleFactor is set to the defaultDeviceScaleFactor.
1831         Tested by: WebFrameTest.DeviceScaleFactorUsesDefaultWithoutViewportTag.
1832
1833         * src/ChromeClientImpl.cpp:
1834         (WebKit):
1835         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
1836         * tests/WebFrameTest.cpp:
1837         (WebKit):
1838         (FixedLayoutTestWebViewClient):
1839         (WebKit::TEST_F):
1840         * tests/data/no_viewport_tag.html: Added.
1841
1842 2012-04-10  Sheriff Bot  <webkit.review.bot@gmail.com>
1843
1844         Unreviewed, rolling out r113734.
1845         http://trac.webkit.org/changeset/113734
1846         https://bugs.webkit.org/show_bug.cgi?id=83606
1847
1848         causing a bunch of unrelated test failures (Requested by
1849         simonjam on #webkit).
1850
1851         * WebKit.gyp:
1852         * features.gypi:
1853         * public/WebBatteryStatus.h: Removed.
1854         * public/WebBatteryStatusClient.h: Removed.
1855         * public/WebView.h:
1856         (WebKit):
1857         (WebView):
1858         * public/WebViewClient.h:
1859         (WebKit):
1860         * src/BatteryClientImpl.cpp: Removed.
1861         * src/BatteryClientImpl.h: Removed.
1862         * src/WebViewImpl.cpp:
1863         (WebKit::WebViewImpl::WebViewImpl):
1864         * src/WebViewImpl.h:
1865         (WebKit):
1866         (WebViewImpl):
1867
1868 2012-04-09  James Robinson  <jamesr@chromium.org>
1869
1870         [chromium] Defer texture id allocation for copies until the actual copy executes
1871         https://bugs.webkit.org/show_bug.cgi?id=83514
1872
1873         Reviewed by Adrienne Walker.
1874
1875         * tests/CCTiledLayerTestCommon.cpp:
1876         * tests/CCTiledLayerTestCommon.h:
1877         * tests/Canvas2DLayerChromiumTest.cpp:
1878         * tests/TiledLayerChromiumTest.cpp:
1879         (WTF::TEST):
1880
1881 2012-04-10  David Dorwin  <ddorwin@chromium.org>
1882
1883         Add Encrypted Media Extensions methods to HTMLMediaElement
1884         https://bugs.webkit.org/show_bug.cgi?id=82971
1885
1886         Reviewed by Adam Barth.
1887
1888         The extensions are behind the ENABLE(ENCRYPTED_MEDIA) feature define.
1889         Implementation is based on v0.1 of the draft proposal at
1890         http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html.
1891
1892         * features.gypi:
1893         * public/WebMediaPlayer.h:
1894         (WebKit):
1895         (WebMediaPlayer):
1896         (WebKit::WebMediaPlayer::generateKeyRequest):
1897         (WebKit::WebMediaPlayer::addKey):
1898         (WebKit::WebMediaPlayer::cancelKeyRequest):
1899         * public/WebRuntimeFeatures.h:
1900         (WebRuntimeFeatures):
1901         * src/AssertMatchingEnums.cpp:
1902         * src/WebMediaPlayerClientImpl.cpp:
1903         (WebKit):
1904         (WebKit::WebMediaPlayerClientImpl::generateKeyRequest):
1905         (WebKit::WebMediaPlayerClientImpl::addKey):
1906         (WebKit::WebMediaPlayerClientImpl::cancelKeyRequest):
1907         * src/WebMediaPlayerClientImpl.h:
1908         (WebMediaPlayerClientImpl):
1909         * src/WebRuntimeFeatures.cpp:
1910         (WebKit::WebRuntimeFeatures::isMediaStreamEnabled):
1911         (WebKit::WebRuntimeFeatures::enableEncryptedMedia):
1912         (WebKit):
1913         (WebKit::WebRuntimeFeatures::isEncryptedMediaEnabled):
1914
1915 2012-04-10  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1916
1917         [chromium] Add Battery Status API support.
1918
1919         The battery-client (BatteryClientChromium) will notify the client (WebBatteryStatusClient) when to start or stop
1920         sending battery status updates. The client, in response will send the notifications to WebViewImpl, which sends
1921         this update information to the WebCore::BatteryClient, and it triggers the appropriate javascript-callbacks.
1922         The spec is at http://www.w3.org/TR/2011/WD-battery-status-20111129/.
1923         https://bugs.webkit.org/show_bug.cgi?id=83284
1924
1925         Reviewed by Adam Barth.
1926
1927         * WebKit.gyp:
1928         * features.gypi:
1929         * public/WebBatteryStatus.h: Added.
1930         (WebKit):
1931         (WebBatteryStatus):
1932         (WebKit::WebBatteryStatus::WebBatteryStatus):
1933         * public/WebBatteryStatusClient.h: Added.
1934         (WebKit):
1935         (WebBatteryStatusClient):
1936         (WebKit::WebBatteryStatusClient::~WebBatteryStatusClient):
1937         * public/WebView.h:
1938         (WebKit):
1939         (WebView):
1940         (WebKit::WebView::updateBatteryStatus):
1941         * public/WebViewClient.h:
1942         (WebKit):
1943         (WebViewClient):
1944         (WebKit::WebViewClient::batteryStatusClient):
1945         * src/BatteryClientImpl.cpp: Added.
1946         (WebKit):
1947         (WebKit::BatteryClientImpl::BatteryClientImpl):
1948         (WebKit::BatteryClientImpl::updateBatteryStatus):
1949         (WebKit::BatteryClientImpl::setController):
1950         (WebKit::BatteryClientImpl::startUpdating):
1951         (WebKit::BatteryClientImpl::stopUpdating):
1952         (WebKit::BatteryClientImpl::batteryControllerDestroyed):
1953         * src/BatteryClientImpl.h: Added.
1954         (WebKit):
1955         (BatteryClientImpl):
1956         (WebKit::BatteryClientImpl::~BatteryClientImpl):
1957         * src/WebViewImpl.cpp:
1958         (WebKit::WebViewImpl::WebViewImpl):
1959         (WebKit):
1960         (WebKit::WebViewImpl::updateBatteryStatus):
1961         * src/WebViewImpl.h:
1962         (WebKit):
1963         (WebViewImpl):
1964
1965 2012-04-10  Zhenyao Mo  <zmo@google.com>
1966
1967         Unreviewed, roll chromium to 131469
1968
1969         * DEPS:
1970
1971 2012-04-09  Alexander Pavlov  <apavlov@chromium.org>
1972
1973         Web Inspector: [Device Metrics] Introduce the "Fit window" option
1974         https://bugs.webkit.org/show_bug.cgi?id=83280
1975
1976         Implement the scaling of the FrameView to the WebViewImpl size, handle WebViewImpl resizes.
1977
1978         Reviewed by Pavel Feldman.
1979
1980         * src/InspectorClientImpl.cpp:
1981         (WebKit::InspectorClientImpl::overrideDeviceMetrics):
1982         * src/InspectorClientImpl.h:
1983         (InspectorClientImpl):
1984         * src/WebDevToolsAgentImpl.cpp:
1985         (WebKit::DeviceMetricsSupport::DeviceMetricsSupport):
1986         (WebKit::DeviceMetricsSupport::setDeviceMetrics):
1987         (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidthOnNavigation):
1988         (DeviceMetricsSupport):
1989         (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth):
1990         (WebKit::DeviceMetricsSupport::webViewResized):
1991         (WebKit::DeviceMetricsSupport::applySizeOverrideIfNecessary):
1992         (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor):
1993         (WebKit::DeviceMetricsSupport::restore):
1994         (WebKit::DeviceMetricsSupport::scaledEmulatedFrameSize):
1995         (WebKit::DeviceMetricsSupport::forcedScrollbarDimensions):
1996         (WebKit::DeviceMetricsSupport::applySizeOverrideInternal):
1997         (WebKit::WebDevToolsAgentImpl::webViewResized):
1998         (WebKit):
1999         (WebKit::WebDevToolsAgentImpl::overrideDeviceMetrics):
2000         (WebKit::WebDevToolsAgentImpl::autoZoomPageToFitWidth):
2001         * src/WebDevToolsAgentImpl.h:
2002         (WebDevToolsAgentImpl):
2003         * src/WebDevToolsAgentPrivate.h:
2004         (WebDevToolsAgentPrivate):
2005         * src/WebViewImpl.cpp:
2006         (WebKit::WebViewImpl::resize):
2007
2008 2012-04-09  Kent Tamura  <tkent@chromium.org>
2009
2010         [Chromium] Remove unused variable, WebViewImpl::m_lastMousePosition.
2011         https://bugs.webkit.org/show_bug.cgi?id=83550
2012
2013         Reviewed by Kentaro Hara.
2014
2015         * src/WebViewImpl.cpp:
2016         (WebKit::WebViewImpl::WebViewImpl):
2017         (WebKit::WebViewImpl::mouseMove):
2018         * src/WebViewImpl.h:
2019
2020 2012-04-09  Dana Jansens  <danakj@chromium.org>
2021
2022         [chromium] Viewport is not filled when out of texture memory on mac
2023         https://bugs.webkit.org/show_bug.cgi?id=83351
2024
2025         Reviewed by Adrienne Walker.
2026
2027         * src/NonCompositedContentHost.cpp:
2028         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
2029         (WebKit::NonCompositedContentHost::setBackgroundColor):
2030         * src/WebLayerTreeView.cpp:
2031         (WebKit::WebLayerTreeView::setBackgroundColor):
2032         (WebKit):
2033         * src/WebViewImpl.cpp:
2034         (WebKit::WebViewImpl::setBackgroundColor):
2035         (WebKit):
2036         (WebKit::WebViewImplContentPainter::paint):
2037         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2038         * src/WebViewImpl.h:
2039         (WebCore):
2040         (WebViewImpl):
2041         * tests/CCLayerImplTest.cpp:
2042         (WebCore::TEST):
2043         * tests/CCLayerTreeHostImplTest.cpp:
2044         (WebKitTests::BlendStateCheckLayer::appendQuads):
2045         (WebKitTests::TEST_F):
2046         (WebKitTests):
2047         * tests/CCLayerTreeHostTest.cpp:
2048         (WTF):
2049         (CCLayerTreeHostTestCommit):
2050         (WTF::CCLayerTreeHostTestCommit::CCLayerTreeHostTestCommit):
2051         (WTF::CCLayerTreeHostTestCommit::beginTest):
2052         (WTF::CCLayerTreeHostTestCommit::commitCompleteOnCCThread):
2053         (WTF::CCLayerTreeHostTestCommit::afterTest):
2054         (WTF::TEST_F):
2055         (TestLayerChromium):
2056         * tests/CCOcclusionTrackerTest.cpp:
2057         (WebKitTests::TestContentLayerChromium::TestContentLayerChromium):
2058         (WebKitTests::TestContentLayerChromium::visibleContentOpaqueRegion):
2059         (WebKitTests::TestContentLayerChromium::setOpaqueContentsRect):
2060         (TestContentLayerChromium):
2061         (WebKitTests::TestContentLayerImpl::TestContentLayerImpl):
2062         (TestContentLayerImpl):
2063         (WebKitTests::TestContentLayerImpl::visibleContentOpaqueRegion):
2064         (WebKitTests::TestContentLayerImpl::setOpaqueContentsRect):
2065         * tests/CCTiledLayerImplTest.cpp:
2066         * tests/LayerChromiumTest.cpp:
2067
2068 2012-04-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2069
2070         Unreviewed, rolling out r113656.
2071         http://trac.webkit.org/changeset/113656
2072         https://bugs.webkit.org/show_bug.cgi?id=83542
2073
2074         test is broken on chromium-win (Requested by simonjam on
2075         #webkit).
2076
2077         * public/WebIntent.h:
2078         (WebIntent):
2079         * src/WebIntent.cpp:
2080
2081 2012-04-09  James Robinson  <jamesr@chromium.org>
2082
2083         [chromium] More unreviewed OwnPtr<>::operator= related clang build fixes in unit tests.
2084
2085         * tests/Canvas2DLayerChromiumTest.cpp:
2086         * tests/LayerChromiumTest.cpp:
2087
2088 2012-04-09  Dana Jansens  <danakj@chromium.org>
2089
2090         [chromium] Cull occluded surface quads
2091         https://bugs.webkit.org/show_bug.cgi?id=81227
2092
2093         Reviewed by Adrienne Walker.
2094
2095         * tests/CCOcclusionTrackerTest.cpp:
2096         (WebKitTests::CCOcclusionTrackerTest::TearDown):
2097         (WebKitTests::CCOcclusionTrackerTest::createReplicaLayer):
2098         (CCOcclusionTrackerTest):
2099         (WebKitTests::CCOcclusionTrackerTest::setReplica):
2100         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
2101         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
2102         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
2103         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
2104         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
2105         (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest):
2106         (WebKitTests):
2107         (CCOcclusionTrackerTestReplicaOccluded):
2108         (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest):
2109         (CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded):
2110         (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest):
2111         (CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently):
2112         (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest):
2113         (CCOcclusionTrackerTestSurfaceChildOfSurface):
2114         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
2115
2116 2012-04-09  James Robinson  <jamesr@chromium.org>
2117
2118         [chromium] Unreviewed build fix. OwnPtr<>::operator = breaks the build on clang, but not gcc :(
2119
2120         * tests/CCLayerTreeHostTest.cpp:
2121         (WTF::MockLayerTreeHost::create):
2122         * tests/Canvas2DLayerChromiumTest.cpp:
2123         * tests/LayerChromiumTest.cpp:
2124
2125 2012-04-09  Dana Jansens  <danakj@chromium.org>
2126
2127         [chromium] Make culling work with clipped rects
2128         https://bugs.webkit.org/show_bug.cgi?id=83494
2129
2130         Reviewed by Adrienne Walker.
2131
2132         * tests/CCOcclusionTrackerTest.cpp:
2133         (CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude):
2134         (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest):
2135         (WebKitTests):
2136         (CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect):
2137         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
2138         * tests/CCQuadCullerTest.cpp:
2139         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
2140         (WebCore::makeLayer):
2141         (WebCore::TEST):
2142
2143 2012-04-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2144
2145         Unreviewed, rolling out r113613.
2146         http://trac.webkit.org/changeset/113613
2147         https://bugs.webkit.org/show_bug.cgi?id=83509
2148
2149         crashing most chromium bots (Requested by simonjam on
2150         #webkit).
2151
2152         * WebKit.gyp:
2153         * features.gypi:
2154         * public/WebBatteryStatus.h: Removed.
2155         * public/WebBatteryStatusClient.h: Removed.
2156         * public/WebView.h:
2157         (WebKit):
2158         (WebView):
2159         * public/WebViewClient.h:
2160         (WebKit):
2161         * src/BatteryClientImpl.cpp: Removed.
2162         * src/BatteryClientImpl.h: Removed.
2163         * src/WebViewImpl.cpp:
2164         (WebKit::WebViewImpl::WebViewImpl):
2165         * src/WebViewImpl.h:
2166         (WebKit):
2167         (WebViewImpl):
2168
2169 2012-04-09  James Robinson  <jamesr@chromium.org>
2170
2171         [chromium] CCLayerTreeHost / WebLayerTreeView should be single ownership, not RefCounted
2172         https://bugs.webkit.org/show_bug.cgi?id=83413
2173
2174         Reviewed by Adrienne Walker.
2175
2176         Updates tests and implementation for RefPtr->OwnPtr switch. One nice benefit is that since WebLayerTreeView is
2177         explicitly owned by the user of the API we can safely rely on them managing the lifetime of the client and thus
2178         don't have to null check the client all the time.
2179
2180         * src/WebLayerTreeView.cpp:
2181         (WebKit::WebLayerTreeView::reset):
2182         (WebKit::WebLayerTreeView::isNull):
2183         (WebKit::WebLayerTreeView::initialize):
2184         * src/WebLayerTreeViewImpl.cpp:
2185         (WebKit::WebLayerTreeViewImpl::create):
2186         (WebKit::WebLayerTreeViewImpl::willBeginFrame):
2187         (WebKit::WebLayerTreeViewImpl::updateAnimations):
2188         (WebKit::WebLayerTreeViewImpl::layout):
2189         (WebKit::WebLayerTreeViewImpl::applyScrollAndScale):
2190         (WebKit::WebLayerTreeViewImpl::createContext):
2191         (WebKit::WebLayerTreeViewImpl::didRecreateContext):
2192         (WebKit::WebLayerTreeViewImpl::didCommit):
2193         (WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame):
2194         (WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers):
2195         (WebKit::WebLayerTreeViewImpl::scheduleComposite):
2196         * src/WebLayerTreeViewImpl.h:
2197         (WebLayerTreeViewImpl):
2198         * tests/CCLayerTreeHostTest.cpp:
2199         (WTF::MockLayerTreeHost::create):
2200         (CCLayerTreeHostTest):
2201         * tests/Canvas2DLayerChromiumTest.cpp:
2202         * tests/LayerChromiumTest.cpp:
2203         * tests/TiledLayerChromiumTest.cpp:
2204         (WTF::TEST):
2205
2206 2012-04-09  Joshua Bell  <jsbell@chromium.org>
2207
2208         Unreviewed, rolling out r113473.
2209         http://trac.webkit.org/changeset/113473
2210         https://bugs.webkit.org/show_bug.cgi?id=83074
2211
2212         Change does not handle cursor retention of LevelDB iterators
2213
2214         * WebKit.gypi:
2215         * tests/IDBDatabaseBackendTest.cpp: Removed.
2216
2217 2012-04-06  James Robinson  <jamesr@chromium.org>
2218
2219         [chromium] Texture copies should happen after incremental updates to preserve commit atomicity
2220         https://bugs.webkit.org/show_bug.cgi?id=83392
2221
2222         Reviewed by Adrienne Walker.
2223
2224         * tests/Canvas2DLayerChromiumTest.cpp:
2225
2226 2012-04-09  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2227
2228         [chromium] Add Battery Status API support.
2229
2230         The battery-client (BatteryClientChromium) will notify the client (WebBatteryStatusClient) when to start or stop
2231         sending battery status updates. The client, in response will send the notifications to WebViewImpl, which sends
2232         this update information to the WebCore::BatteryClient, and it triggers the appropriate javascript-callbacks.
2233         The spec is at http://www.w3.org/TR/2011/WD-battery-status-20111129/.
2234         https://bugs.webkit.org/show_bug.cgi?id=83284
2235
2236         Reviewed by Adam Barth.
2237
2238         * WebKit.gyp:
2239         * features.gypi:
2240         * public/WebBatteryStatus.h: Added.
2241         (WebKit):
2242         (WebBatteryStatus):
2243         (WebKit::WebBatteryStatus::WebBatteryStatus):
2244         * public/WebBatteryStatusClient.h: Added.
2245         (WebKit):
2246         (WebBatteryStatusClient):
2247         (WebKit::WebBatteryStatusClient::~WebBatteryStatusClient):
2248         * public/WebView.h:
2249         (WebKit):
2250         (WebView):
2251         (WebKit::WebView::updateBatteryStatus):
2252         * public/WebViewClient.h:
2253         (WebKit):
2254         (WebViewClient):
2255         (WebKit::WebViewClient::batteryStatusClient):
2256         * src/BatteryClientImpl.cpp: Added.
2257         (WebKit):
2258         (WebKit::BatteryClientImpl::BatteryClientImpl):
2259         (WebKit::BatteryClientImpl::updateBatteryStatus):
2260         (WebKit::BatteryClientImpl::setController):
2261         (WebKit::BatteryClientImpl::startUpdating):
2262         (WebKit::BatteryClientImpl::stopUpdating):
2263         (WebKit::BatteryClientImpl::batteryControllerDestroyed):
2264         * src/BatteryClientImpl.h: Added.
2265         (WebKit):
2266         (BatteryClientImpl):
2267         (WebKit::BatteryClientImpl::~BatteryClientImpl):
2268         * src/WebViewImpl.cpp:
2269         (WebKit::WebViewImpl::WebViewImpl):
2270         (WebKit):
2271         (WebKit::WebViewImpl::updateBatteryStatus):
2272         * src/WebViewImpl.h:
2273         (WebKit):
2274         (WebViewImpl):
2275
2276 2012-04-09  Shawn Singh  <shawnsingh@chromium.org>
2277
2278         [chromium] Fix layer sorting perspective w if w becomes negative
2279         https://bugs.webkit.org/show_bug.cgi?id=82997
2280
2281         Reviewed by Adrienne Walker.
2282
2283         * tests/CCLayerSorterTest.cpp:
2284         (WebCore::TEST):
2285         (WebCore):
2286
2287 2012-04-09  Dana Jansens  <danakj@chromium.org>
2288
2289         [chromium] Flip transition painting delayed with threaded animations
2290         https://bugs.webkit.org/show_bug.cgi?id=82571
2291
2292         Reviewed by Adrienne Walker.
2293
2294         * tests/CCLayerTreeHostCommonTest.cpp:
2295         (WebKitTests::TEST):
2296         (WebKitTests):
2297
2298 2012-04-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2299
2300         Unreviewed, rolling out r113561.
2301         http://trac.webkit.org/changeset/113561
2302         https://bugs.webkit.org/show_bug.cgi?id=83487
2303
2304         broke webkit_unit_tests (Requested by simonjam on #webkit).
2305
2306         * tests/CCOcclusionTrackerTest.cpp:
2307         (WebKitTests):
2308         * tests/CCQuadCullerTest.cpp:
2309         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
2310
2311 2012-04-09  Dana Jansens  <danakj@chromium.org>
2312
2313         [chromium] Make culling work with clipped rects
2314         https://bugs.webkit.org/show_bug.cgi?id=83217
2315
2316         Reviewed by Adrienne Walker.
2317
2318         * tests/CCOcclusionTrackerTest.cpp:
2319         (CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude):
2320         (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest):
2321         (WebKitTests):
2322         (CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect):
2323         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
2324         * tests/CCQuadCullerTest.cpp:
2325         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
2326
2327 2012-04-06  Ami Fischman  <fischman@chromium.org>
2328
2329         Roll Chromium DEPS
2330         https://bugs.webkit.org/show_bug.cgi?id=83389
2331
2332         Unreviewed, just a DEPS roll (130110:131183)
2333
2334         * DEPS:
2335
2336 2012-04-06  James Robinson  <jamesr@chromium.org>
2337
2338         WebGL content swapped at wrong time in threaded compositing mode
2339         https://bugs.webkit.org/show_bug.cgi?id=82275
2340
2341         Reviewed by Kenneth Russell.
2342
2343         * tests/WebGLLayerChromiumTest.cpp:
2344         (WebKit::TEST):
2345
2346 2012-04-06  Joshua Bell  <jsbell@chromium.org>
2347
2348         IndexedDB: ObjectStore/Index shouldn't hold reference to backing store
2349         https://bugs.webkit.org/show_bug.cgi?id=83074
2350
2351         Reviewed by Tony Chang.
2352
2353         * WebKit.gypi:
2354         * tests/IDBDatabaseBackendTest.cpp: Added.
2355         (WebCore):
2356         (MockIDBBackingStore):
2357         (WebCore::TEST):
2358
2359 2012-04-06  Kent Tamura  <tkent@chromium.org>
2360
2361         Calendar Picker: Add code to open/close the calendar picker
2362         https://bugs.webkit.org/show_bug.cgi?id=83258
2363
2364         Reviewed by Hajime Morita.
2365
2366         * features.gypi: Enable ENABLE_PAGE_POPUP for non-Android
2367         platforms. This is needed because ENABLE_CALENDAR_PICKER now depends on
2368         ENABLE_PAGE_POPUP.
2369         * src/ChroemClientImpl.cpp: Add stubs.
2370         (WebKit::ChromeClientImpl::openPagePopup):
2371         (WebKit::ChromeClientImpl::closePagePopup):
2372         * src/ChromeClientImpl.h: Add declarations of openPagePopup() and closePagePopup().
2373
2374 2012-04-05  Hironori Bono  <hbono@chromium.org>
2375
2376         [Chromium] moving a cursor on a misspelled word should not remove a misspelled underline
2377         https://bugs.webkit.org/show_bug.cgi?id=83214
2378
2379         Reviewed by Ryosuke Niwa.
2380
2381         When Chrome enables asynchronous spellchecking, it adds Spelling markers in the
2382         background. For this case, moving a cursor should not remove these markers
2383         because it requires Chrome to spellcheck text again. This change prevents
2384         removing Spelling markers added by spellcheckers asynchronously.
2385
2386         * src/ContextMenuClientImpl.cpp:
2387         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): use marker descriptions instead of spellchecking text when Chrome enables asynchronous spellchecking.
2388
2389 2012-04-05  Dana Jansens  <danakj@chromium.org>
2390
2391         [chromium] Record the number of tiles paint-culled instead of the incorrect number of pixels
2392         https://bugs.webkit.org/show_bug.cgi?id=82423
2393
2394         Reviewed by Adrienne Walker.
2395
2396         * tests/CCQuadCullerTest.cpp:
2397         (WebCore::TEST):
2398         * tests/TiledLayerChromiumTest.cpp:
2399         (WTF::TEST):
2400
2401 2012-04-05  Shawn Singh  <shawnsingh@chromium.org>
2402
2403         [chromium] Need to clip to homogeneous w=0 plane when applying transforms.
2404         https://bugs.webkit.org/show_bug.cgi?id=80806
2405
2406         Reviewed by Adrienne Walker.
2407
2408         * tests/CCLayerTreeHostCommonTest.cpp:
2409         (WebKitTests::TEST):
2410         (WebKitTests):
2411
2412 2012-04-05  Dana Jansens  <danakj@chromium.org>
2413
2414         [chromium] Cleanup test, redundant code in CCSchedulerTest.NoBeginFrameWhenDrawFails
2415         https://bugs.webkit.org/show_bug.cgi?id=83300
2416
2417         Reviewed by Adrienne Walker.
2418
2419         * tests/CCSchedulerTest.cpp:
2420         (WebKitTests::TEST):
2421
2422 2012-04-05  Sheriff Bot  <webkit.review.bot@gmail.com>
2423
2424         Unreviewed, rolling out r113241.
2425         http://trac.webkit.org/changeset/113241
2426         https://bugs.webkit.org/show_bug.cgi?id=83293
2427
2428         Requested by sievers@chromium.org (Requested by zhenyao on
2429         #webkit).
2430
2431         * tests/CCLayerTreeHostImplTest.cpp:
2432         (WebKitTests::TEST_F):
2433         * tests/CCLayerTreeHostTest.cpp:
2434         (WTF::CCLayerTreeHostTest::doBeginTest):
2435
2436 2012-04-05  Sheriff Bot  <webkit.review.bot@gmail.com>
2437
2438         Unreviewed, rolling out r113341.
2439         http://trac.webkit.org/changeset/113341
2440         https://bugs.webkit.org/show_bug.cgi?id=83299
2441
2442         bots caught some build errors (Requested by shawnsingh on
2443         #webkit).
2444
2445         * tests/CCLayerTreeHostCommonTest.cpp:
2446
2447 2012-04-05  Ian Vollick  <vollick@chromium.org>
2448
2449         [chromium] Race condition in CCLayerTreeHostTestSynchronizeAnimationStartTimes
2450         https://bugs.webkit.org/show_bug.cgi?id=83179
2451
2452         Reviewed by James Robinson.
2453
2454         * tests/CCLayerTreeHostTest.cpp:
2455         (WTF::TestHooks::willAnimateLayers):
2456         (WTF::MockLayerTreeHostImpl::animateLayers):
2457         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::CCLayerTreeHostTestSynchronizeAnimationStartTimes):
2458         (CCLayerTreeHostTestSynchronizeAnimationStartTimes):
2459         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::willAnimateLayers):
2460         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::notifyAnimationStarted):
2461
2462 2012-04-05  Justin Novosad  <junov@chromium.org>
2463
2464         [Chromium] With the skia port, setting LCD text filtering is causing
2465         texture cache invalidations of gpu canvas backing store
2466         https://bugs.webkit.org/show_bug.cgi?id=74183
2467
2468         Reviewed by Stephen White.
2469
2470         Replacing unnecessary usage of SkCanvas::LayerIter with call to
2471         SkCanvas::isDrawingToLayer(). Same results, lower overhead, and no
2472         GPU texture invalidation.
2473
2474         * src/WebFontImpl.cpp:
2475         (WebKit::WebFontImpl::drawText):
2476
2477 2012-04-05  Lei Zhang  <thestig@chromium.org>
2478
2479         [Chromium] Properly align members in WebInputEvent and subclasses to make Valgrind happy.
2480         https://bugs.webkit.org/show_bug.cgi?id=81570
2481
2482         Reviewed by Darin Fisher.
2483
2484         * public/WebInputEvent.h:
2485         (WebKit):
2486         (WebKit::WebInputEvent::WebInputEvent):
2487         (WebKeyboardEvent):
2488         (WebKit::WebTouchEvent::WebTouchEvent):
2489
2490 2012-04-05  Shawn Singh  <shawnsingh@chromium.org>
2491
2492         [chromium] Need to clip to homogeneous w=0 plane when applying transforms.
2493         https://bugs.webkit.org/show_bug.cgi?id=80806
2494
2495         Reviewed by Adrienne Walker.
2496
2497         * tests/CCLayerTreeHostCommonTest.cpp:
2498         (WebKitTests::TEST):
2499         (WebKitTests):
2500
2501 2012-04-05  Sheriff Bot  <webkit.review.bot@gmail.com>
2502
2503         Unreviewed, rolling out r113307.
2504         http://trac.webkit.org/changeset/113307
2505         https://bugs.webkit.org/show_bug.cgi?id=83288
2506
2507         Requested by sievers@chromium.org (Requested by zhenyao on
2508         #webkit).
2509
2510         * tests/CCLayerTreeHostTest.cpp:
2511         (WTF::TEST_F):
2512
2513 2012-04-05  Pavel Feldman  <pfeldman@chromium.org>
2514
2515         Web Inspector: [chromium] clean up WDTFC::saveAs after migration to save()
2516         https://bugs.webkit.org/show_bug.cgi?id=83271
2517
2518         Reviewed by Yury Semikhatsky.
2519
2520         * public/WebDevToolsFrontendClient.h:
2521
2522 2012-04-05  Hans Wennborg  <hans@chromium.org>
2523
2524         webkit_unit_tests build fix.
2525         https://bugs.webkit.org/show_bug.cgi?id=83261
2526
2527         Unreviewed, webkit_unit_tests buildfix.
2528
2529         The CCLayerTreeHostTestEmptyContentsShouldNotDraw.runMultiThread test
2530         stopped working after r113254.
2531
2532         Disable it for now.
2533
2534         * tests/CCLayerTreeHostTest.cpp:
2535         (WTF):
2536         (WTF::TEST_F):
2537
2538 2012-04-05  Jochen Eisinger  <jochen@chromium.org>
2539
2540         [chromium] Only shut down V8 if we actually initialized it
2541         https://bugs.webkit.org/show_bug.cgi?id=83159
2542
2543         Reviewed by Pavel Feldman.
2544
2545         * src/WebKit.cpp:
2546         (WebKit::initialize):
2547         (WebKit::shutdown):
2548
2549 2012-04-05  Kinuko Yasuda  <kinuko@chromium.org>
2550
2551         Expose DataTransferItem.getAsEntry() to allow users access dropped files as FileEntry
2552         https://bugs.webkit.org/show_bug.cgi?id=82592
2553
2554         Reviewed by David Levin.
2555
2556         * src/WebDragData.cpp:
2557         (WebKit::WebDragData::filesystemId): Added implementation.
2558         (WebKit::WebDragData::setFilesystemId): Added implementation.
2559
2560 2012-04-04  Kent Tamura  <tkent@chromium.org>
2561
2562         [Chromium] Calendar Picker: Add localization functions
2563         https://bugs.webkit.org/show_bug.cgi?id=83235
2564
2565         Reviewed by Adam Barth.
2566
2567         Implement calendarTodayText() and calendarClearText(), which are
2568         introduced in http://trac.webkit.org/changeset/113166
2569
2570         * public/platform/WebLocalizedString.h:
2571         Add CalendarClear and CalendarToday.
2572         * src/LocalizedStrings.cpp:
2573         (WebCore::calendarTodayText): Added.
2574         (WebCore::calendarClearText): Added.
2575
2576 2012-04-04  Mark Pilgrim  <pilgrim@chromium.org>
2577
2578         Call histogramEnumeration directly
2579         https://bugs.webkit.org/show_bug.cgi?id=83106
2580
2581         Reviewed by Adam Barth.
2582
2583         Part of a refactoring project to remove the PlatformSupport
2584         abstraction from some functions. See bug 82948.
2585
2586         * src/ChromeClientImpl.cpp:
2587         (WebKit::ChromeClientImpl::shouldRunModalDialogDuringPageDismissal):
2588         * src/PlatformSupport.cpp:
2589         (WebCore):
2590
2591 2012-04-04  Shawn Singh  <shawnsingh@chromium.org>
2592
2593         [chromium] Move recursive renderSurface clearing to CCLayerTreeHostImpl
2594         https://bugs.webkit.org/show_bug.cgi?id=82091
2595
2596         Reviewed by James Robinson.
2597
2598         * tests/LayerRendererChromiumTest.cpp:
2599         (FakeLayerRendererChromiumClient::FakeLayerRendererChromiumClient):
2600
2601 2012-04-04  Daniel Sievers  <sievers@chromium.org>
2602
2603         [Chromium] Always skip draw and readback if there is nothing
2604         to draw.
2605         https://bugs.webkit.org/show_bug.cgi?id=82680
2606
2607         This avoids corruption from pushing frames that have no valid
2608         content drawn into them.
2609         Also in addition to checking for non-existing root layers, check
2610         for root layers with no content bounds. It's possible to see those
2611         with kForceCompositing mode for empty documents.
2612
2613         Reviewed by James Robinson.
2614
2615         Added CCLayerTreeHostTestEmptyContentsShouldNotDraw.
2616
2617         * tests/CCLayerTreeHostImplTest.cpp:
2618         (WebKitTests::TEST_F):
2619         * tests/CCLayerTreeHostTest.cpp:
2620         (WTF::CCLayerTreeHostTest::doBeginTest):
2621         (WTF):
2622         (CCLayerTreeHostTestEmptyContentsShouldNotDraw):
2623         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::CCLayerTreeHostTestEmptyContentsShouldNotDraw):
2624         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::beginTest):
2625         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::drawLayersOnCCThread):
2626         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::didCommitAndDrawFrame):
2627         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::afterTest):
2628         (WTF::TEST_F):
2629
2630 2012-04-04  Mark Pilgrim  <pilgrim@chromium.org>
2631
2632         Call histogramCustomCounts directly
2633         https://bugs.webkit.org/show_bug.cgi?id=83112
2634
2635         Reviewed by Adam Barth.
2636
2637         * src/PlatformSupport.cpp:
2638         (WebCore):
2639         * src/WebViewImpl.cpp:
2640         (WebKit::WebViewImpl::paint):
2641         (WebKit::WebViewImplContentPainter::paint):
2642         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2643         * src/painting/PaintAggregator.cpp:
2644
2645 2012-04-04  Mark Pilgrim  <pilgrim@chromium.org>
2646
2647         Call suddenTerminationChanged directly
2648         https://bugs.webkit.org/show_bug.cgi?id=83114
2649
2650         Reviewed by Adam Barth.
2651
2652         * src/PlatformSupport.cpp:
2653         (WebCore):
2654
2655 2012-04-04  Adam Barth  <abarth@webkit.org>
2656
2657         figure out how to export webcore symbols from webkit.dll properly
2658         https://bugs.webkit.org/show_bug.cgi?id=83105
2659
2660         Reviewed by Dimitri Glazkov.
2661
2662         * WebKit.gyp:
2663             - We now compile the platform support files as part of webkit.dll
2664               to make sure the lib contains the obj files and therefore exports
2665               the necessary symbols. In principle, we could use a defs file to
2666               achieve the same thing, but those files are a pain to maintain.
2667         * src/WebKit.cpp:
2668         (WebKit::shutdown):
2669             - Unwind our ugly, ugly hack to make the Windows component build
2670               work.
2671
2672 2012-04-04  Mark Pilgrim  <pilgrim@chromium.org>
2673
2674         Call sandboxEnabled directly
2675         https://bugs.webkit.org/show_bug.cgi?id=83113
2676
2677         Reviewed by Adam Barth.
2678
2679         * src/PlatformSupport.cpp:
2680         (WebCore):
2681
2682 2012-04-04  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
2683
2684         [Coverity] Address some uninit constructor values.
2685         https://bugs.webkit.org/show_bug.cgi?id=82424
2686
2687         Reviewed by Stephen White.
2688
2689         New tests are not required since I did not modify any code behavior. I just initialized the class member variables in the constructor.
2690
2691         * src/DatabaseObserver.cpp:
2692         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge):
2693         * src/LocalFileSystemChromium.cpp:
2694         (WebCore):
2695
2696 2012-04-04  Dimitri Glazkov  <dglazkov@chromium.org>
2697
2698         Unreviewed, temporary dirty hack to make Win Debug work again.
2699
2700         * All.gyp: Temporarily removed TestWebKitAPI target.
2701
2702 2012-04-04  Pavel Feldman  <pfeldman@chromium.org>
2703
2704         Web Inspector: migrate from InspectorFrontendHost.saveAs to InspectorFrontendHost.save.
2705         https://bugs.webkit.org/show_bug.cgi?id=83162
2706
2707         Reviewed by Yury Semikhatsky.
2708
2709         * public/WebDevToolsFrontendClient.h:
2710         * src/InspectorFrontendClientImpl.cpp:
2711         (WebKit::InspectorFrontendClientImpl::canSave):
2712         (WebKit::InspectorFrontendClientImpl::save):
2713         * src/InspectorFrontendClientImpl.h:
2714         (InspectorFrontendClientImpl):
2715
2716 2012-04-04  Hans Wennborg  <hans@chromium.org>
2717
2718         WebSpeechRecognizer.h: add missing forward declaration
2719         https://bugs.webkit.org/show_bug.cgi?id=83150
2720
2721         Reviewed by Tony Gentilcore.
2722
2723         Add missing forward declaration of WebSpeechRecognitionParams.
2724
2725         * public/WebSpeechRecognizer.h:
2726         (WebKit):
2727
2728 2012-04-03  Hans Wennborg  <hans@chromium.org>
2729
2730         Speech JavaScript API: Plumbing for Chromium
2731         https://bugs.webkit.org/show_bug.cgi?id=81667
2732
2733         Reviewed by Darin Fisher.
2734
2735         Add plumbing for speech recognition.
2736
2737         The implementer is expected to implement the WebSpeechRecognizer interface.
2738         The start(), stop(), and abort() functions of that interface take a
2739         WebSpeechRecognitionHandle argument, which identifies the object which has
2740         requested the action, and a pointer to a WebSpeechRecognitionClient interface,
2741         through which it should send back notifications on progress, errors, etc.
2742
2743         SpeechRecognitionClientProxy passes data between the WebCore and WebKit layers,
2744         implementing the WebCore::SpeechRecognitionClient and WebKit::WebSpeechRecognizerClient
2745         interfaces.
2746
2747         * WebKit.gyp:
2748         * public/WebSpeechGrammar.h:
2749         (WebCore):
2750         (WebKit):
2751         (WebSpeechGrammar):
2752         (WebKit::WebSpeechGrammar::WebSpeechGrammar):
2753         (WebKit::WebSpeechGrammar::~WebSpeechGrammar):
2754         * public/WebSpeechRecognitionHandle.h: Added.
2755         (WebCore):
2756         (WebKit):
2757         (WebSpeechRecognitionHandle):
2758         (WebKit::WebSpeechRecognitionHandle::~WebSpeechRecognitionHandle):
2759         (WebKit::WebSpeechRecognitionHandle::WebSpeechRecognitionHandle):
2760         (WebKit::WebSpeechRecognitionHandle::operator=):
2761         (WebKit::operator==):
2762         (WebKit::operator!=):
2763         (WebKit::operator<):
2764         * public/WebSpeechRecognitionParams.h:
2765         (WebKit):
2766         (WebSpeechRecognitionParams):
2767         (WebKit::WebSpeechRecognitionParams::grammars):
2768         (WebKit::WebSpeechRecognitionParams::language):
2769         (WebKit::WebSpeechRecognitionParams::continuous):
2770         * public/WebSpeechRecognitionResult.h: Added.
2771         (WebCore):
2772         (WebKit):
2773         (WebSpeechRecognitionResult):
2774         (WebKit::WebSpeechRecognitionResult::WebSpeechRecognitionResult):
2775         (WebKit::WebSpeechRecognitionResult::~WebSpeechRecognitionResult):
2776         * public/WebSpeechRecognizer.h:
2777         (WebKit):
2778         (WebSpeechRecognizer):
2779         (WebKit::WebSpeechRecognizer::start):
2780         (WebKit::WebSpeechRecognizer::stop):
2781         (WebKit::WebSpeechRecognizer::abort):
2782         (WebKit::WebSpeechRecognizer::~WebSpeechRecognizer):
2783         * public/WebSpeechRecognizerClient.h: Added.
2784         (WebKit):
2785         (WebSpeechRecognizerClient):
2786         * public/WebViewClient.h:
2787         (WebKit):
2788         (WebViewClient):
2789         (WebKit::WebViewClient::speechRecognizer):
2790         * src/SpeechRecognitionClientProxy.cpp: Added.
2791         (WebKit):
2792         (WebKit::SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy):
2793         (WebKit::SpeechRecognitionClientProxy::create):
2794         (WebKit::SpeechRecognitionClientProxy::start):
2795         (WebKit::SpeechRecognitionClientProxy::stop):
2796         (WebKit::SpeechRecognitionClientProxy::abort):
2797         (WebKit::SpeechRecognitionClientProxy::didStartAudio):
2798         (WebKit::SpeechRecognitionClientProxy::didStartSound):
2799         (WebKit::SpeechRecognitionClientProxy::didStartSpeech):
2800         (WebKit::SpeechRecognitionClientProxy::didEndSpeech):
2801         (WebKit::SpeechRecognitionClientProxy::didEndSound):
2802         (WebKit::SpeechRecognitionClientProxy::didEndAudio):
2803         (WebKit::SpeechRecognitionClientProxy::didReceiveResult):
2804         (WebKit::SpeechRecognitionClientProxy::didReceiveNoMatch):
2805         (WebKit::SpeechRecognitionClientProxy::didDeleteResult):
2806         (WebKit::SpeechRecognitionClientProxy::didReceiveError):
2807         (WebKit::SpeechRecognitionClientProxy::didStart):
2808         (WebKit::SpeechRecognitionClientProxy::didEnd):
2809         (WebKit::SpeechRecognitionClientProxy::SpeechRecognitionClientProxy):
2810         * src/SpeechRecognitionClientProxy.h: Added.
2811         (WebKit):
2812         (SpeechRecognitionClientProxy):
2813         * src/WebSpeechGrammar.cpp: Added.
2814         (WebKit):
2815         (WebKit::WebSpeechGrammar::reset):
2816         (WebKit::WebSpeechGrammar::WebSpeechGrammar):
2817         (WebKit::WebSpeechGrammar::operator=):
2818         (WebKit::WebSpeechGrammar::src):
2819         (WebKit::WebSpeechGrammar::weight):
2820         * src/WebSpeechRecognitionHandle.cpp: Added.
2821         (WebKit):
2822         (WebKit::WebSpeechRecognitionHandle::reset):
2823         (WebKit::WebSpeechRecognitionHandle::assign):
2824         (WebKit::WebSpeechRecognitionHandle::equals):
2825         (WebKit::WebSpeechRecognitionHandle::lessThan):
2826         (WebKit::WebSpeechRecognitionHandle::WebSpeechRecognitionHandle):
2827         (WebKit::WebSpeechRecognitionHandle::operator=):
2828         (WebKit::WebSpeechRecognitionHandle::operator PassRefPtr<SpeechRecognition>):
2829         * src/WebSpeechRecognitionParams.cpp: Added.
2830         (WebKit):
2831         (WebKit::WebSpeechRecognitionParams::WebSpeechRecognitionParams):
2832         * src/WebSpeechRecognitionResult.cpp: Added.
2833         (WebKit):
2834         (WebKit::WebSpeechRecognitionResult::assign):
2835         (WebKit::WebSpeechRecognitionResult::reset):
2836         (WebKit::WebSpeechRecognitionResult::operator PassRefPtr<WebCore::SpeechRecognitionResult>):
2837         * src/WebViewImpl.cpp:
2838         (WebKit::WebViewImpl::WebViewImpl):
2839         * src/WebViewImpl.h:
2840         (WebKit):
2841
2842 2012-04-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2843
2844         Unreviewed, rolling out r113149.
2845         http://trac.webkit.org/changeset/113149
2846         https://bugs.webkit.org/show_bug.cgi?id=83126
2847
2848         for breaking Chromium builders (Requested by pfeldman on
2849         #webkit).
2850
2851         * WebKit.gyp:
2852         * public/WebSpeechGrammar.h: Removed.
2853         * public/WebSpeechRecognitionHandle.h: Removed.
2854         * public/WebSpeechRecognitionParams.h: Removed.
2855         * public/WebSpeechRecognitionResult.h: Removed.
2856         * public/WebSpeechRecognizer.h: Removed.
2857         * public/WebSpeechRecognizerClient.h: Removed.
2858         * public/WebViewClient.h:
2859         (WebKit):
2860         * src/SpeechRecognitionClientProxy.cpp: Removed.
2861         * src/SpeechRecognitionClientProxy.h: Removed.
2862         * src/WebSpeechGrammar.cpp: Removed.
2863         * src/WebSpeechRecognitionHandle.cpp: Removed.
2864         * src/WebSpeechRecognitionResult.cpp: Removed.
2865         * src/WebViewImpl.cpp:
2866         (WebKit::WebViewImpl::WebViewImpl):
2867         * src/WebViewImpl.h:
2868         (WebKit):
2869
2870 2012-04-03  Hans Wennborg  <hans@chromium.org>
2871
2872         Speech JavaScript API: Plumbing for Chromium
2873         https://bugs.webkit.org/show_bug.cgi?id=81667
2874
2875         Reviewed by Darin Fisher.
2876
2877         Add plumbing for speech recognition.
2878
2879         The implementer is expected to implement the WebSpeechRecognizer interface.
2880         The start(), stop(), and abort() functions of that interface take a
2881         WebSpeechRecognitionHandle argument, which identifies the object which has
2882         requested the action, and a pointer to a WebSpeechRecognitionClient interface,
2883         through which it should send back notifications on progress, errors, etc.
2884
2885         SpeechRecognitionClientProxy passes data between the WebCore and WebKit layers,
2886         implementing the WebCore::SpeechRecognitionClient and WebKit::WebSpeechRecognizerClient
2887         interfaces.
2888
2889         * WebKit.gyp:
2890         * public/WebSpeechGrammar.h:
2891         (WebCore):
2892         (WebKit):
2893         (WebSpeechGrammar):
2894         (WebKit::WebSpeechGrammar::WebSpeechGrammar):
2895         (WebKit::WebSpeechGrammar::~WebSpeechGrammar):
2896         * public/WebSpeechRecognitionHandle.h: Added.
2897         (WebCore):
2898         (WebKit):
2899         (WebSpeechRecognitionHandle):
2900         (WebKit::WebSpeechRecognitionHandle::~WebSpeechRecognitionHandle):
2901         (WebKit::WebSpeechRecognitionHandle::WebSpeechRecognitionHandle):
2902         (WebKit::WebSpeechRecognitionHandle::operator=):
2903         (WebKit::operator==):
2904         (WebKit::operator!=):
2905         (WebKit::operator<):
2906         * public/WebSpeechRecognitionParams.h:
2907         (WebKit):
2908         (WebSpeechRecognitionParams):
2909         (WebKit::WebSpeechRecognitionParams::grammars):
2910         (WebKit::WebSpeechRecognitionParams::language):
2911         (WebKit::WebSpeechRecognitionParams::continuous):
2912         * public/WebSpeechRecognitionResult.h: Added.
2913         (WebCore):
2914         (WebKit):
2915         (WebSpeechRecognitionResult):
2916         (WebKit::WebSpeechRecognitionResult::WebSpeechRecognitionResult):
2917         (WebKit::WebSpeechRecognitionResult::~WebSpeechRecognitionResult):
2918         * public/WebSpeechRecognizer.h:
2919         (WebKit):
2920         (WebSpeechRecognizer):
2921         (WebKit::WebSpeechRecognizer::start):
2922         (WebKit::WebSpeechRecognizer::stop):
2923         (WebKit::WebSpeechRecognizer::abort):
2924         (WebKit::WebSpeechRecognizer::~WebSpeechRecognizer):
2925         * public/WebSpeechRecognizerClient.h: Added.
2926         (WebKit):
2927         (WebSpeechRecognizerClient):
2928         * public/WebViewClient.h:
2929         (WebKit):
2930         (WebViewClient):
2931         (WebKit::WebViewClient::speechRecognizer):
2932         * src/SpeechRecognitionClientProxy.cpp: Added.
2933         (WebKit):
2934         (WebKit::SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy):
2935         (WebKit::SpeechRecognitionClientProxy::create):
2936         (WebKit::SpeechRecognitionClientProxy::start):
2937         (WebKit::SpeechRecognitionClientProxy::stop):
2938         (WebKit::SpeechRecognitionClientProxy::abort):
2939         (WebKit::SpeechRecognitionClientProxy::didStartAudio):
2940         (WebKit::SpeechRecognitionClientProxy::didStartSound):
2941         (WebKit::SpeechRecognitionClientProxy::didStartSpeech):
2942         (WebKit::SpeechRecognitionClientProxy::didEndSpeech):
2943         (WebKit::SpeechRecognitionClientProxy::didEndSound):
2944         (WebKit::SpeechRecognitionClientProxy::didEndAudio):
2945         (WebKit::SpeechRecognitionClientProxy::didReceiveResult):
2946         (WebKit::SpeechRecognitionClientProxy::didReceiveNoMatch):
2947         (WebKit::SpeechRecognitionClientProxy::didDeleteResult):
2948         (WebKit::SpeechRecognitionClientProxy::didReceiveError):
2949         (WebKit::SpeechRecognitionClientProxy::didStart):
2950         (WebKit::SpeechRecognitionClientProxy::didEnd):
2951         (WebKit::SpeechRecognitionClientProxy::SpeechRecognitionClientProxy):
2952         * src/SpeechRecognitionClientProxy.h: Added.
2953         (WebKit):
2954         (SpeechRecognitionClientProxy):
2955         * src/WebSpeechGrammar.cpp: Added.
2956         (WebKit):
2957         (WebKit::WebSpeechGrammar::reset):
2958         (WebKit::WebSpeechGrammar::WebSpeechGrammar):
2959         (WebKit::WebSpeechGrammar::operator=):
2960         (WebKit::WebSpeechGrammar::src):
2961         (WebKit::WebSpeechGrammar::weight):
2962         * src/WebSpeechRecognitionHandle.cpp: Added.
2963         (WebKit):
2964         (WebKit::WebSpeechRecognitionHandle::reset):
2965         (WebKit::WebSpeechRecognitionHandle::assign):
2966         (WebKit::WebSpeechRecognitionHandle::equals):
2967         (WebKit::WebSpeechRecognitionHandle::lessThan):
2968         (WebKit::WebSpeechRecognitionHandle::WebSpeechRecognitionHandle):
2969         (WebKit::WebSpeechRecognitionHandle::operator=):
2970         (WebKit::WebSpeechRecognitionHandle::operator PassRefPtr<SpeechRecognition>):
2971         * src/WebSpeechRecognitionParams.cpp: Added.
2972         (WebKit):
2973         (WebKit::WebSpeechRecognitionParams::WebSpeechRecognitionParams):
2974         * src/WebSpeechRecognitionResult.cpp: Added.
2975         (WebKit):
2976         (WebKit::WebSpeechRecognitionResult::assign):
2977         (WebKit::WebSpeechRecognitionResult::reset):
2978         (WebKit::WebSpeechRecognitionResult::operator PassRefPtr<WebCore::SpeechRecognitionResult>):
2979         * src/WebViewImpl.cpp:
2980         (WebKit::WebViewImpl::WebViewImpl):
2981         * src/WebViewImpl.h:
2982         (WebKit):
2983
2984 2012-04-03  Yuta Kitamura  <yutak@chromium.org>
2985
2986         Crash in WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel
2987         https://bugs.webkit.org/show_bug.cgi?id=82873
2988
2989         Reviewed by David Levin.
2990
2991         Change the function signature of WorkerLoaderProxy::postTaskForModeToWorkerContext().
2992
2993         * src/WebSharedWorkerImpl.cpp:
2994         (WebKit::WebSharedWorkerImpl::postTaskForModeToWorkerContext):
2995         * src/WebSharedWorkerImpl.h:
2996         (WebSharedWorkerImpl):
2997         * src/WebWorkerClientImpl.cpp:
2998         (WebKit::WebWorkerClientImpl::postTaskForModeToWorkerContext):
2999         * src/WebWorkerClientImpl.h:
3000         (WebWorkerClientImpl):
3001
3002 2012-04-03  Ian Vollick  <vollick@chromium.org>
3003
3004         [chromium] Include Image.h in TextFieldDecoratorImpl.cpp
3005         https://bugs.webkit.org/show_bug.cgi?id=83066
3006
3007         Reviewed by James Robinson.
3008
3009         * src/TextFieldDecoratorImpl.cpp:
3010
3011 2012-04-03  Rafael Weinstein  <rafaelw@chromium.org>
3012
3013         Use V8 completion callback API to assert that V8RecursionScope is on the stack whenever invoking script
3014         https://bugs.webkit.org/show_bug.cgi?id=79131
3015
3016         Reviewed by Adam Barth.
3017
3018         * WebKit.gyp:
3019         * public/WebFrame.h:
3020         (v8):
3021         (WebFrame):
3022         * src/WebFrameImpl.cpp:
3023         (WebKit):
3024         (WebKit::WebFrameImpl::callFunctionEvenIfScriptDisabled):
3025         * src/WebFrameImpl.h:
3026         (WebFrameImpl):
3027         * src/WebKit.cpp:
3028         (WebKit):
3029         (WebKit::assertV8RecursionScope):
3030         (WebKit::initialize):
3031         (WebKit::shutdown):
3032
3033 2012-04-03  Adam Barth  <abarth@webkit.org>
3034
3035         Unreviewed. This patch adds an ugly, ugly hack to bandaid over the
3036         Windows component build. See comments in the code for details.
3037
3038         * src/WebKit.cpp:
3039         (WebKit::shutdown):
3040
3041 2012-04-03  Dimitri Glazkov  <dglazkov@chromium.org>
3042
3043         Unreviewed, rolling out r113087.
3044         http://trac.webkit.org/changeset/113087
3045         https://bugs.webkit.org/show_bug.cgi?id=83068
3046
3047         Breaks Windows builds in other unpredictable ways.
3048
3049         * WebKit.gyp: Removed the hack.
3050
3051 2012-04-03  W. James MacLean  <wjmaclean@chromium.org>
3052
3053         [chromium] Switch touchpad fling curve physics to absolute (not scaled) curve.
3054         https://bugs.webkit.org/show_bug.cgi?id=83061
3055
3056         Reviewed by James Robinson.
3057
3058         * tests/PlatformGestureCurveTest.cpp:
3059
3060 2012-04-02  Zhenyao Mo  <zmo@google.com>
3061
3062         Implement WebGLShaderPrecisionFormat
3063         https://bugs.webkit.org/show_bug.cgi?id=75925
3064
3065         Reviewed by Kenneth Russell.
3066
3067         * src/GraphicsContext3DChromium.cpp: Add getShaderPrecisionFormat().
3068         (WebCore):
3069         * src/GraphicsContext3DPrivate.h: Ditto.
3070         (GraphicsContext3DPrivate):
3071         * tests/FakeWebGraphicsContext3D.h: Ditto.
3072         (FakeWebGraphicsContext3D):
3073
3074 2012-04-03  Dirk Pranke  <dpranke@chromium.org>
3075
3076         disable incremental linking for debug of webkit
3077         https://bugs.webkit.org/show_bug.cgi?id=83068
3078
3079         Reviewed by Adam Barth.
3080
3081         Now that we need to export symbols from webkit.dll that are
3082         defined in webcore_platform, we have to enable ULDI in order for
3083         incremental linking to work (which is used in debug mode).
3084
3085         * WebKit.gyp:
3086
3087 2012-04-03  Shawn Singh  <shawnsingh@chromium.org>
3088
3089         [chromium] Fix incorrect comment in CCDamageTrackerTest
3090         https://bugs.webkit.org/show_bug.cgi?id=82118
3091
3092         Reviewed by Adrienne Walker.
3093
3094         * tests/CCDamageTrackerTest.cpp:
3095         (WebKitTests::TEST_F):
3096
3097 2012-04-03  Adam Barth  <abarth@webkit.org>
3098
3099         Another attempt to fix the Windows build.  This uses WebSecurityOrigin
3100         has a value type but doesn't include the header.
3101
3102         * public/WebUserMediaRequest.h:
3103         (WebKit):
3104
3105 2012-04-03  'Pavel Feldman'  <pfeldman@chromium.org>
3106
3107         Not reviewed. Follow up to inspector's r113032: change provisional method signature a bit.
3108
3109         * public/WebDevToolsFrontendClient.h:
3110         (WebKit::WebDevToolsFrontendClient::save):
3111
3112 2012-04-03  Bolin Hsu  <bhsu@google.com>
3113
3114         [Chromium] Add click count and modifiers to the factory method of mouse event.
3115         https://bugs.webkit.org/show_bug.cgi?id=82502
3116
3117         Modify WebInputEventFactory::mouseEvent() to take click count
3118         and modifiers from input parameters. Sample use cases of these
3119         are double click, triple click, Ctrl+click, etc.
3120
3121         Reviewed by Eric Seidel.
3122
3123         * public/android/WebInputEventFactory.h:
3124         * src/android/WebInputEventFactory.cpp:
3125         (WebKit::WebInputEventFactory::mouseEvent):
3126
3127 2012-04-03  Mark Pilgrim  <pilgrim@chromium.org>
3128
3129         Call incrementStatsCounter directly
3130         https://bugs.webkit.org/show_bug.cgi?id=83023
3131
3132         Reviewed by Kentaro Hara.
3133
3134         * src/PlatformSupport.cpp:
3135         (WebCore):
3136         * src/WebFrameImpl.cpp:
3137         (WebKit::WebFrameImpl::WebFrameImpl):
3138
3139 2012-04-03  Sami Kyostila  <skyostil@chromium.org>
3140
3141         [chromium] Canvas2DLayerChromium::updateCompositorResources should flush after copying
3142         https://bugs.webkit.org/show_bug.cgi?id=83013
3143
3144         Reviewed by Stephen White.
3145
3146         * tests/Canvas2DLayerChromiumTest.cpp: Make sure context is flushed after copying.
3147
3148 2012-04-03  Pavel Feldman  <pfeldman@chromium.org>
3149
3150         Web Inspector: [chromium] add provisional save method into the frontend client.
3151         https://bugs.webkit.org/show_bug.cgi?id=83022
3152
3153         Reviewed by Yury Semikhatsky.
3154
3155         * public/WebDevToolsFrontendClient.h:
3156         (WebKit::WebDevToolsFrontendClient::save):
3157
3158 2012-04-03  Bill Budge  <bbudge@chromium.org>
3159
3160         WebViewImpl doesn't notify the page that the user has canceled fullscreen.
3161         https://bugs.webkit.org/show_bug.cgi?id=82760
3162
3163         Reviewed by Darin Fisher.
3164
3165         * src/WebViewImpl.cpp:
3166         (WebKit::WebViewImpl::WebViewImpl):
3167         (WebKit::WebViewImpl::willExitFullScreen):
3168         (WebKit::WebViewImpl::exitFullScreenForElement):
3169         * src/WebViewImpl.h:
3170
3171 2012-04-02  Kent Tamura  <tkent@chromium.org>
3172
3173         [Chromium] Add WebKit API for WebCore::TextFieldDecorator
3174         https://bugs.webkit.org/show_bug.cgi?id=82143
3175
3176         Reviewed by Dimitri Glazkov.
3177
3178         Expose WebCore::TextFieldDecorator as
3179         WebKit::WebTextFieldDecoratorClient. This change add capability to add
3180         decoration buttons to text field <input> elements.
3181
3182         * WebKit.gyp: Add new files.
3183         * public/WebTextFieldDecoratorClient.h: Added.
3184         * public/WebView.h:
3185         (WebKit): Add addTextFieldDecoratorClient().
3186         * src/ChromeClientImpl.cpp:
3187         (WebKit::ChromeClientImpl::willAddTextFieldDecorationsTo):
3188         Calls willAddDecorationTo() of TextFieldDecorator objects owned by WebViewImpl.
3189         (WebKit::ChromeClientImpl::addTextFieldDecorationsTo):
3190         Apply TextFieldDecorationElement::decorate() for the specified input element.
3191         * src/ChromeClientImpl.h:
3192         (ChromeClientImpl): Add new function declarations.
3193         * src/TextFieldDecoratorImpl.cpp:
3194         Added. This is a bridge of WebCore::TextFieldDecorator and
3195         WebKit::WebTextFieldDecoratorClient. This owns CachedImage objects
3196         specfied by WebTextFieldDecoratorClient.
3197         (WebKit::TextFieldDecoratorImpl::TextFieldDecoratorImpl):
3198         (WebKit::TextFieldDecoratorImpl::create):
3199         (WebKit::TextFieldDecoratorImpl::~TextFieldDecoratorImpl):
3200         (WebKit::TextFieldDecoratorImpl::willAddDecorationTo):
3201         (WebKit::TextFieldDecoratorImpl::imageForNormalState):
3202         (WebKit::TextFieldDecoratorImpl::imageForDisabledState):
3203         (WebKit::TextFieldDecoratorImpl::imageForReadonlyState):
3204         (WebKit::TextFieldDecoratorImpl::handleClick):
3205         (WebKit::TextFieldDecoratorImpl::willDetach):
3206         * src/TextFieldDecoratorImpl.h: Added.
3207         (TextFieldDecoratorImpl):
3208         * src/WebViewImpl.cpp:
3209         (WebKit::WebViewImpl::addTextFieldDecoratorClient):
3210         Add implementation of WebView::addTextFieldDecoratorClient().
3211         * src/WebViewImpl.h:
3212         WebViewImpl owns a vector of TextFieldDecoratorImpl.
3213         (WebViewImpl):
3214         (WebKit::WebViewImpl::textFieldDecorators):
3215
3216 2012-04-02  Dana Jansens  <danakj@chromium.org>
3217
3218         [chromium] Remove SkCanvas::LayerIter use from OpaqueRegionSkia
3219         https://bugs.webkit.org/show_bug.cgi?id=82564
3220
3221         Reviewed by Stephen White.
3222
3223         * tests/PlatformContextSkiaTest.cpp:
3224         (WebCore):
3225         (WebCore::TEST):
3226
3227 2012-04-02  Mark Pilgrim  <pilgrim@chromium.org>
3228
3229         Call decrementStatsCounter directly
3230         https://bugs.webkit.org/show_bug.cgi?id=82950
3231
3232         Reviewed by Adam Barth.
3233
3234         * src/PlatformSupport.cpp:
3235         (WebCore):
3236         * src/WebFrameImpl.cpp:
3237         (WebKit::WebFrameImpl::~WebFrameImpl):
3238
3239 2012-04-02  Alexander Pavlov  <apavlov@chromium.org>
3240
3241         [Chromium] Unreviewed, CCLayerTreeHost runMultiThread is flaky.
3242         Related bug: https://bugs.webkit.org/show_bug.cgi?id=80811
3243
3244         Disabled CCLayerTreeHostTestAddAnimationWithTimingFunction.runMultiThread.
3245
3246         * tests/CCLayerTreeHostTest.cpp:
3247         (WTF::TEST_F):
3248
3249 2012-04-02  Alexander Pavlov  <apavlov@chromium.org>
3250
3251         Web Inspector: Device metrics emulation should turn off when zero width and height are passed in
3252         https://bugs.webkit.org/show_bug.cgi?id=82907
3253
3254         Currently this also requires the fontScaleFactor of 1 to be passed in, too. However, it results in
3255         downsizing the FrameView to (0x0) on navigation with the open Inspector when the emulation is disabled.
3256
3257         Reviewed by Yury Semikhatsky.
3258
3259         * src/WebDevToolsAgentImpl.cpp:
3260         (WebKit::WebDevToolsAgentImpl::overrideDeviceMetrics):
3261
3262 2012-04-02  Kinuko Yasuda  <kinuko@chromium.org>
3263
3264         Unreviewed, rolling chromium DEPS.
3265
3266         * DEPS:
3267
3268 2012-04-02  Keishi Hattori  <keishi@webkit.org>
3269
3270         [chromium] Disable ENABLE_INPUT_TYPE_COLOR for aura and android
3271         https://bugs.webkit.org/show_bug.cgi?id=82863
3272
3273         Reviewed by Kent Tamura.
3274
3275         * features.gypi:
3276
3277 2012-04-02  Adam Barth  <abarth@webkit.org>
3278
3279         [Chromium] Move a number of virtual functions from WebKitPlatformSupport.h into Platform.h
3280         https://bugs.webkit.org/show_bug.cgi?id=82865
3281
3282         Reviewed by Kent Tamura.
3283
3284         * public/platform/WebKitPlatformSupport.h:
3285         (WebKit):
3286         (WebKitPlatformSupport):
3287
3288 2012-04-02  Kent Tamura  <tkent@chromium.org>
3289
3290         Add a calendar picker indicator to date-type input fields
3291         https://bugs.webkit.org/show_bug.cgi?id=80478
3292
3293         Reviewed by Hajime Morita.
3294
3295         * features.gypi: Enable CALENDAR_PICKER for non-Android platforms. This
3296         doesn't affect any bahevior because INPUT_TYPE_DATE is disabled.
3297
3298 2012-04-02  Adam Barth  <abarth@webkit.org>
3299
3300         [Chromium] Move another block of headers from WebKit/chromium/public/platform to Platform/chromium/public
3301         https://bugs.webkit.org/show_bug.cgi?id=82862
3302
3303         Rubber-stamped by Eric Seidel.
3304
3305         * WebKit.gyp:
3306         * public/platform/WebAudioBus.h: Replaced.
3307         * public/platform/WebAudioDevice.h: Replaced.
3308         * public/platform/WebGamepad.h: Replaced.
3309         * public/platform/WebGamepads.h: Replaced.
3310         * public/platform/WebSocketStreamError.h: Replaced.
3311         * public/platform/WebSocketStreamHandle.h: Replaced.
3312         * public/platform/WebSocketStreamHandleClient.h: Replaced.
3313         * src/WebAudioBus.cpp: Removed.
3314
3315 2012-04-01  Adam Barth  <abarth@webkit.org>
3316
3317         [Chromium] Move thread-related APIs from WebKit into Platform
3318         https://bugs.webkit.org/show_bug.cgi?id=82858
3319
3320         Reviewed by Eric Seidel.
3321
3322         * WebKit.gyp:
3323         * public/platform/WebThread.h: Replaced.
3324         * public/platform/WebThreadSafeData.h: Replaced.
3325         * src/WebThreadSafeData.cpp: Removed.
3326
3327 2012-04-01  Jon Lee  <jonlee@apple.com>
3328
3329         Rename notification properties and functions
3330         https://bugs.webkit.org/show_bug.cgi?id=80482
3331         <rdar://problem/10912432>
3332
3333         Reviewed by Kentaro Hara.
3334
3335         * src/WebNotification.cpp:
3336         (WebKit::WebNotification::replaceId): Refactor to call tag().
3337
3338 2012-03-29  Adam Barth  <abarth@webkit.org>
3339
3340         [Chromium] Delete WebKit/chromium/bridge
3341         https://bugs.webkit.org/show_bug.cgi?id=82677
3342
3343         Reviewed by James Robinson.
3344
3345         Delete WebKit/chromium/bridge.  This was a directory we were
3346         experimenting with storing WebCore-namespaced code. Now we're able to
3347         actually keep that code in WebCore itself, which is much more sensible.
3348
3349         * WebKit.gyp:
3350         * bridge: Removed.
3351         * bridge/DeprecatedPeerConnectionHandler.cpp: Removed.
3352         * bridge/DeprecatedPeerConnectionHandlerInternal.cpp: Removed.
3353         * bridge/DeprecatedPeerConnectionHandlerInternal.h: Removed.
3354         * bridge/MediaStreamCenter.cpp: Removed.
3355         * bridge/MediaStreamCenterInternal.cpp: Removed.
3356         * bridge/MediaStreamCenterInternal.h: Removed.
3357         * bridge/PeerConnection00Handler.cpp: Removed.
3358         * bridge/PeerConnection00HandlerInternal.cpp: Removed.
3359         * bridge/PeerConnection00HandlerInternal.h: Removed.
3360         * public/platform/WebICECandidateDescriptor.h: Replaced.
3361         * public/platform/WebICEOptions.h: Replaced.
3362         * public/platform/WebKitPlatformSupport.h:
3363         (WebKit):
3364         (WebKitPlatformSupport):
3365         * public/platform/WebMediaHints.h: Replaced.
3366         * public/platform/WebMediaStreamCenter.h: Replaced.
3367         * public/platform/WebMediaStreamCenterClient.h: Replaced.
3368         * public/platform/WebMediaStreamComponent.h: Replaced.
3369         * public/platform/WebMediaStreamDescriptor.h: Replaced.
3370         * public/platform/WebMediaStreamSource.h: Replaced.
3371         * public/platform/WebMediaStreamSourcesRequest.h: Replaced.
3372         * public/platform/WebPeerConnection00Handler.h: Replaced.
3373         * public/platform/WebPeerConnection00HandlerClient.h: Replaced.
3374         * public/platform/WebPeerConnectionHandler.h: Replaced.
3375         * public/platform/WebPeerConnectionHandlerClient.h: Replaced.
3376         * public/platform/WebSessionDescriptionDescriptor.h: Replaced.
3377         * public/platform/WebVector.h: Replaced.
3378         * src/WebICECandidateDescriptor.cpp: Removed.
3379         * src/WebICEOptions.cpp: Removed.
3380         * src/WebMediaHints.cpp: Removed.
3381         * src/WebMediaStreamComponent.cpp: Removed.
3382         * src/WebMediaStreamDescriptor.cpp: Removed.
3383         * src/WebMediaStreamSource.cpp: Removed.
3384         * src/WebMediaStreamSourcesRequest.cpp: Removed.
3385
3386 2012-03-30  Adam Barth  <abarth@webkit.org>
3387
3388         [Chromium] Move ResourceHandle to WebCore/platform/network/chromium
3389         https://bugs.webkit.org/show_bug.cgi?id=82657
3390
3391         Reviewed by James Robinson.
3392
3393         * WebKit.gyp:
3394         * src/ResourceHandle.cpp: Removed.
3395         * src/ResourceHandleInternal.h: Removed.
3396         * src/WrappedResourceRequest.h: Removed.
3397         * src/WrappedResourceResponse.h: Removed.
3398
3399 2012-03-30  Adam Barth  <abarth@webkit.org>
3400
3401         Two more link errors.  This time it's v8 we're missing.
3402
3403         * WebKitUnitTests.gyp:
3404
3405 2012-03-30  Adam Barth  <abarth@webkit.org>
3406
3407         Attempt to fix the Windows component build.  It seems we're just
3408         missing GURL now.
3409
3410         * WebKitUnitTests.gyp:
3411
3412 2012-03-30  Adam Barth  <abarth@webkit.org>
3413
3414         Attempt to fix the Windows component build.  The way we link the unit
3415         tests in the component build is kind of nutty.  Hopefully this approach
3416         will eliminate the duplicate symbols we've been seeing.
3417
3418         * WebKitUnitTests.gyp:
3419
3420 2012-03-30  Emil A Eklund  <eae@chromium.org>
3421
3422         Change WebKit/WebKit2 platform code to use pixel snapped values
3423         https://bugs.webkit.org/show_bug.cgi?id=82549
3424
3425         Reviewed by Eric Seidel.
3426
3427         * src/WebAccessibilityObject.cpp:
3428         (WebKit::WebAccessibilityObject::boundingBoxRect):
3429         Use pixelSnappedBoundingBoxRect instead of boundingBoxRect which returns
3430         a LayoutRect.
3431         
3432         * src/WebFrameImpl.cpp:
3433         (WebKit::WebFrameImpl::characterIndexForPoint):
3434         Use roundedPoint instead of point for hit testing as ranges use screen
3435         cordinates which are represented with pixel accuracy.
3436
3437 2012-03-30  Adam Barth  <abarth@webkit.org>
3438
3439         https://bugs.webkit.org/show_bug.cgi?id=82582
3440         Move CPP files related to ResourceHandle to WebCore/platform
3441
3442         Reviewed by James Robinson.
3443
3444         * WebKit.gyp:
3445         * src/WebHTTPBody.cpp: Removed.
3446         * src/WebHTTPLoadInfo.cpp: Removed.
3447         * src/WebURL.cpp: Removed.
3448         * src/WebURLError.cpp: Removed.
3449         * src/WebURLRequest.cpp: Removed.
3450         * src/WebURLRequestPrivate.h: Removed.
3451         * src/WebURLResponse.cpp: Removed.
3452         * src/WebURLResponsePrivate.h: Removed.
3453
3454 2012-03-30  Dirk Pranke  <dpranke@chromium.org>
3455
3456         Roll chromium DEPS from 129593 to 129574.
3457
3458         Unreviewed.
3459
3460         * DEPS:
3461
3462 2012-03-30  Adam Barth  <abarth@webkit.org>
3463
3464         Move CPP files related to ResourceHandle to WebCore/platform
3465         https://bugs.webkit.org/show_bug.cgi?id=82582
3466
3467         Reviewed by James Robinson.
3468
3469         * WebKit.gyp:
3470         * src/WebData.cpp: Removed.
3471
3472 2012-03-30  Mark Pilgrim  <pilgrim@chromium.org>
3473
3474         GEOLOCATION should be implemented as Page Supplement
3475         https://bugs.webkit.org/show_bug.cgi?id=82228
3476
3477         Reviewed by Adam Barth.
3478
3479         Geolocation is now a Supplement in Page so the interface
3480         has changed for setting up the page's geolocation client
3481         initially and accessing the controller later.
3482
3483         * src/WebViewImpl.cpp:
3484         (WebKit::WebViewImpl::WebViewImpl):
3485
3486 2012-03-30  Ian Vollick  <vollick@chromium.org>
3487
3488         [chromium] Flaky animation unit test CCLayerTreeHostTestSynchronizeAnimationStartTimes
3489         https://bugs.webkit.org/show_bug.cgi?id=82731
3490
3491         Reviewed by James Robinson.
3492
3493         * tests/CCLayerTreeHostTest.cpp:
3494         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::CCLayerTreeHostTestSynchronizeAnimationStartTimes):
3495         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::animateLayers):
3496         (CCLayerTreeHostTestSynchronizeAnimationStartTimes):
3497         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::notifyAnimationStarted):
3498
3499 2012-03-30  Ian Vollick  <vollick@chromium.org>
3500
3501         [chromium] assertion being hit in CCLayerAnimationController
3502         https://bugs.webkit.org/show_bug.cgi?id=82237
3503
3504         Reviewed by James Robinson.
3505
3506         * tests/CCLayerAnimationControllerTest.cpp:
3507         (WebKitTests::TEST):
3508         (WebKitTests):
3509
3510 2012-03-30  Alexander Pavlov  <apavlov@chromium.org>
3511
3512         [Chromium] Unreviewed Chromium Mac build fix.
3513
3514         * src/WebDevToolsAgentPrivate.h:
3515         (WebKit):
3516
3517 2012-03-30  Alexander Pavlov  <apavlov@chromium.org>
3518
3519         Web Inspector: [Chromium] Implement Chromium-specific part of the device metrics emulation
3520         https://bugs.webkit.org/show_bug.cgi?id=82612
3521
3522         This change implements the Chromium-specific code for overriding the device metrics, such as screen size
3523         (by setting the FrameView size) and font zoom factor (necessary for certain emulated devices,)
3524         and for painting the gutter overlay covering the WebView area not occupied by the associated FrameView.
3525
3526         Reviewed by Pavel Feldman.
3527
3528         * src/InspectorClientImpl.cpp:
3529         (WebKit::InspectorClientImpl::canOverrideDeviceMetrics):
3530         (WebKit):
3531         (WebKit::InspectorClientImpl::overrideDeviceMetrics):
3532         (WebKit::InspectorClientImpl::autoZoomPageToFitWidth):
3533         * src/InspectorClientImpl.h:
3534         (InspectorClientImpl):
3535         * src/WebDevToolsAgentImpl.cpp:
3536         (OverlayZOrders):
3537         (DeviceMetricsSupport):
3538         (WebKit::DeviceMetricsSupport::DeviceMetricsSupport):
3539         (WebKit::DeviceMetricsSupport::~DeviceMetricsSupport):
3540         (WebKit::DeviceMetricsSupport::setDeviceMetrics):
3541         (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth):
3542         (WebKit::DeviceMetricsSupport::applySizeOverrideIfNecessary):
3543         (WebKit::DeviceMetricsSupport::restore):
3544         (WebKit::DeviceMetricsSupport::applySizeOverrideInternal):
3545         (WebKit::DeviceMetricsSupport::paintPageOverlay):
3546         (WebKit::DeviceMetricsSupport::frameView):
3547         (WebKit):
3548         (WebKit::WebDevToolsAgentImpl::mainFrameViewCreated):
3549         (WebKit::WebDevToolsAgentImpl::metricsOverridden):
3550         (WebKit::WebDevToolsAgentImpl::overrideDeviceMetrics):
3551         (WebKit::WebDevToolsAgentImpl::autoZoomPageToFitWidth):
3552         (WebKit::WebDevToolsAgentImpl::highlight):
3553         * src/WebDevToolsAgentImpl.h:
3554         (WebCore):
3555         (WebKit):
3556         (WebDevToolsAgentImpl):
3557         * src/WebDevToolsAgentPrivate.h:
3558         (WebKit):
3559         (WebDevToolsAgentPrivate):
3560         * src/WebFrameImpl.cpp:
3561         (WebKit::WebFrameImpl::createFrameView):
3562         * src/WebViewImpl.cpp:
3563         (WebKit::WebViewImpl::WebViewImpl):
3564         (WebKit::WebViewImpl::resize):
3565         (WebKit::WebViewImpl::setZoomLevel):
3566         (WebKit::WebViewImpl::setEmulatedTextZoomFactor):
3567         (WebKit):
3568         (WebKit::WebViewImpl::updateLayerTreeViewport):
3569         * src/WebViewImpl.h:
3570         (WebViewImpl):
3571         (WebKit::WebViewImpl::emulatedTextZoomFactor):
3572
3573 2012-03-30  David Barr  <davidbarr@chromium.org>
3574