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