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