[Chromium] Add registerURLSchemeAsEmptyDocument to WebSecurityPolicy
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-03-19  Charlie Reis  <creis@chromium.org>
2
3         [Chromium] Add registerURLSchemeAsEmptyDocument to WebSecurityPolicy
4         https://bugs.webkit.org/show_bug.cgi?id=81421
5
6         Reviewed by Adam Barth.
7
8         * public/WebSecurityPolicy.h:
9         (WebSecurityPolicy):
10         * src/WebSecurityPolicy.cpp:
11         (WebKit::WebSecurityPolicy::registerURLSchemeAsEmptyDocument):
12         (WebKit):
13
14 2012-03-19  Keishi Hattori  <keishi@webkit.org>
15
16         [chromium] Fixing build. Adding missing virtual.
17
18         * src/GraphicsContext3DPrivate.h:
19         (GraphicsContext3DPrivate):
20
21 2012-03-19  Dana Jansens  <danakj@chromium.org>
22
23         [chromium] Push culled tiles that are prepainted
24         https://bugs.webkit.org/show_bug.cgi?id=81552
25
26         Reviewed by Adrienne Walker.
27
28         * tests/TiledLayerChromiumTest.cpp:
29         (WTF::TEST):
30         (WTF):
31
32 2012-03-19  James Robinson  <jamesr@chromium.org>
33
34         Unreviewed chromium compile fix - put all TRACE_*s in their own scope explicitly.
35
36         * src/WebCompositorInputHandlerImpl.cpp:
37         (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
38         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
39
40 2012-03-19  Robert Kroeger  <rjkroege@chromium.org>
41
42         [chromium] return true/false on GestureFlingCancel if a fling was stopped
43         https://bugs.webkit.org/show_bug.cgi?id=81563
44
45         Reviewed by James Robinson.
46
47         * src/WebViewImpl.cpp:
48         (WebKit::WebViewImpl::gestureEvent):
49
50 2012-03-19  Michal Mocny  <mmocny@google.com>
51
52         [chromium] Adding support for GL_EXT_discard_framebuffer.
53         https://bugs.webkit.org/show_bug.cgi?id=81383
54
55         Reviewed by James Robinson.
56
57         * src/Extensions3DChromium.cpp:
58         (WebCore::Extensions3DChromium::discardFramebufferEXT):
59         (WebCore):
60         (WebCore::Extensions3DChromium::ensureFramebufferCHROMIUM):
61         * src/GraphicsContext3DChromium.cpp:
62         (WebCore):
63         * src/GraphicsContext3DPrivate.h:
64         (GraphicsContext3DPrivate):
65         * tests/FakeWebGraphicsContext3D.h:
66         (WebKit::FakeWebGraphicsContext3D::discardFramebufferEXT):
67         (WebKit::FakeWebGraphicsContext3D::ensureFramebufferCHROMIUM):
68         (FakeWebGraphicsContext3D):
69
70 2012-03-19  Ian Vollick  <vollick@chromium.org>
71
72         [chromium] Times in the cc should be expressed in seconds.
73         https://bugs.webkit.org/show_bug.cgi?id=80514
74
75         Reviewed by James Robinson.
76
77         * tests/CCDelayBasedTimeSourceTest.cpp:
78         (WebKitTests::TEST):
79         * tests/CCFrameRateControllerTest.cpp:
80         (WebKitTests::TEST):
81         * tests/CCSchedulerTestCommon.h:
82         (WebKitTests::FakeCCThread::pendingDelayMs):
83         (WebKitTests::FakeCCDelayBasedTimeSource::create):
84         (WebKitTests::FakeCCDelayBasedTimeSource::setMonotonicallyIncreasingTime):
85         (WebKitTests::FakeCCDelayBasedTimeSource::monotonicallyIncreasingTime):
86         (WebKitTests::FakeCCDelayBasedTimeSource::FakeCCDelayBasedTimeSource):
87         (FakeCCDelayBasedTimeSource):
88         * tests/CCTimerTest.cpp:
89         (WebKitTests::TEST_F):
90
91 2012-03-19  Nat Duca  <nduca@chromium.org>
92
93         [chromium] Stop deriving WebCompositor from WebCompositorInputHandler
94         https://bugs.webkit.org/show_bug.cgi?id=80586
95
96         Reviewed by Darin Fisher.
97
98         * public/WebCompositor.h:
99         (WebKit):
100         * public/WebCompositorInputHandler.h:
101         (WebCompositorInputHandler):
102         * public/WebWidgetClient.h:
103         (WebWidgetClient):
104         (WebKit::WebWidgetClient::didActivateCompositor):
105         * src/WebCompositorInputHandlerImpl.cpp:
106         (WebKit::WebCompositorInputHandler::fromIdentifier):
107         * src/WebCompositorInputHandlerImpl.h:
108         (WebCompositorInputHandlerImpl):
109
110 2012-03-18  James Robinson  <jamesr@chromium.org>
111
112         [chromium] Implement fling-by-wheel on compositor thread
113         https://bugs.webkit.org/show_bug.cgi?id=81462
114
115         Reviewed by Adrienne Walker.
116
117         Implement fling-by-wheel and beef up existing unit test coverage considerably by using gmock instead of mocking
118         by hand.
119
120         * src/WebCompositorInputHandlerImpl.cpp:
121         (WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
122         (WebKit):
123         (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
124         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
125         (WebKit::WebCompositorInputHandlerImpl::animate):
126         (WebKit::WebCompositorInputHandlerImpl::cancelCurrentFling):
127         (WebKit::WebCompositorInputHandlerImpl::scrollBy):
128         * src/WebCompositorInputHandlerImpl.h:
129         (WebCompositorInputHandlerImpl):
130         * tests/WebCompositorInputHandlerImplTest.cpp:
131
132 2012-03-19  Emil A Eklund  <eae@chromium.org>
133
134         [mac/chromium] Change platform code to use pixelSnappedRect methods
135         https://bugs.webkit.org/show_bug.cgi?id=81016
136
137         Reviewed by Eric Seidel.
138
139         * src/WebViewImpl.cpp:
140         (WebKit::WebViewImpl::computeBlockBounds):
141         (WebKit::WebViewImpl::applyAutofillSuggestions):
142         (WebKit::WebViewImpl::refreshAutofillPopup):
143
144 2012-03-19  Eric Seidel  <eric@webkit.org>
145
146         Fix WTF header include discipline in Chromium WebKit
147         https://bugs.webkit.org/show_bug.cgi?id=81281
148
149         Reviewed by James Robinson.
150
151         * src/CompositionUnderlineBuilder.h:
152         * src/CompositionUnderlineVectorBuilder.h:
153         * src/FrameLoaderClientImpl.cpp:
154         * src/WebArrayBuffer.cpp:
155         * src/WebArrayBufferView.cpp:
156         * src/WebBindings.cpp:
157         * src/WebColorName.cpp:
158         * src/WebGeolocationClientMock.cpp:
159         * src/WebPageSerializer.cpp:
160         * src/WebSocketImpl.cpp:
161         * src/WebViewImpl.cpp:
162         * tests/FrameTestHelpers.cpp:
163
164 2012-03-19  Dana Jansens  <danakj@chromium.org>
165
166         [chromium] Invalidate/update evicted tiles during commit
167         https://bugs.webkit.org/show_bug.cgi?id=81529
168
169         Reviewed by Adrienne Walker.
170
171         * tests/TiledLayerChromiumTest.cpp:
172         (WTF::TEST):
173         (WTF):
174
175 2012-03-19  Sheriff Bot  <webkit.review.bot@gmail.com>
176
177         Unreviewed, rolling out r111207.
178         http://trac.webkit.org/changeset/111207
179         https://bugs.webkit.org/show_bug.cgi?id=81561
180
181         Causing chromium unit test failure (Requested by reveman on
182         #webkit).
183
184         * src/Extensions3DChromium.cpp:
185         * src/GraphicsContext3DChromium.cpp:
186         (WebCore):
187         * src/GraphicsContext3DPrivate.h:
188         (GraphicsContext3DPrivate):
189         * tests/FakeWebGraphicsContext3D.h:
190
191 2012-03-19  Tommy Widenflycht  <tommyw@google.com>
192
193         [chromium] MediaStream API (JSEP): Introducing WebMediaHints and WebIceOptions
194         https://bugs.webkit.org/show_bug.cgi?id=81341
195
196         Reviewed by Darin Fisher.
197
198         Simple WebKit representations of the WebCore/platform versions.
199
200         * WebKit.gyp:
201         * public/platform/WebICEOptions.h: Added.
202         (WebCore):
203         (WebKit):
204         (WebICEOptions):
205         (WebKit::WebICEOptions::WebICEOptions):
206         (WebKit::WebICEOptions::~WebICEOptions):
207         (WebKit::WebICEOptions::operator=):
208         (WebKit::WebICEOptions::isNull):
209         * public/platform/WebMediaHints.h: Added.
210         (WebCore):
211         (WebKit):
212         (WebMediaHints):
213         (WebKit::WebMediaHints::WebMediaHints):
214         (WebKit::WebMediaHints::~WebMediaHints):
215         (WebKit::WebMediaHints::operator=):
216         (WebKit::WebMediaHints::isNull):
217         * src/WebICEOptions.cpp: Added.
218         (WebKit):
219         (WebKit::WebICEOptions::WebICEOptions):
220         (WebKit::WebICEOptions::assign):
221         (WebKit::WebICEOptions::reset):
222         (WebKit::WebICEOptions::candidateTypeToUse):
223         * src/WebMediaHints.cpp: Added.
224         (WebKit):
225         (WebKit::WebMediaHints::WebMediaHints):
226         (WebKit::WebMediaHints::assign):
227         (WebKit::WebMediaHints::reset):
228         (WebKit::WebMediaHints::audio):
229         (WebKit::WebMediaHints::video):
230
231 2012-03-19  Michal Mocny  <mmocny@google.com>
232
233         [chromium] Updating WebGraphicsContext3D MemoryAllocation callback to accept a struct with have backbuffer suggestion.
234         https://bugs.webkit.org/show_bug.cgi?id=81279
235
236         Reviewed by James Robinson.
237
238         * src/GraphicsContext3DChromium.cpp:
239         (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
240         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged):
241         (GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
242
243 2012-03-19  David Reveman  <reveman@chromium.org>
244
245         [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support.
246         https://bugs.webkit.org/show_bug.cgi?id=80988
247
248         Reviewed by Adrienne Walker.
249
250         Expose EXT_occlusion_query API to WebKit compositor.
251
252         * src/Extensions3DChromium.cpp:
253         (WebCore::Extensions3DChromium::createQueryEXT):
254         (WebCore):
255         (WebCore::Extensions3DChromium::deleteQueryEXT):
256         (WebCore::Extensions3DChromium::isQueryEXT):
257         (WebCore::Extensions3DChromium::beginQueryEXT):
258         (WebCore::Extensions3DChromium::endQueryEXT):
259         (WebCore::Extensions3DChromium::getQueryivEXT):
260         (WebCore::Extensions3DChromium::getQueryObjectuivEXT):
261         * src/GraphicsContext3DChromium.cpp:
262         (WebCore):
263         * src/GraphicsContext3DPrivate.h:
264         (GraphicsContext3DPrivate):
265         * tests/FakeWebGraphicsContext3D.h:
266         (WebKit::FakeWebGraphicsContext3D::createQueryEXT):
267         (WebKit::FakeWebGraphicsContext3D::deleteQueryEXT):
268         (WebKit::FakeWebGraphicsContext3D::isQueryEXT):
269         (WebKit::FakeWebGraphicsContext3D::beginQueryEXT):
270         (WebKit::FakeWebGraphicsContext3D::endQueryEXT):
271         (WebKit::FakeWebGraphicsContext3D::getQueryivEXT):
272         (WebKit::FakeWebGraphicsContext3D::getQueryObjectuivEXT):
273         (FakeWebGraphicsContext3D):
274
275 2012-03-19  Dana Jansens  <danakj@chromium.org>
276
277         [chromium] Unit test fix, save the sharedQuadState while the quads hold a pointer to it
278         https://bugs.webkit.org/show_bug.cgi?id=81476
279
280         Reviewed by Adrienne Walker.
281
282         * tests/CCQuadCullerTest.cpp:
283         (WebCore::appendQuads):
284         (WebCore):
285         (WebCore::TEST):
286
287 2012-03-19  Sheriff Bot  <webkit.review.bot@gmail.com>
288
289         Unreviewed.  Rolled DEPS.
290
291         * DEPS:
292
293 2012-03-19  Robert Kroeger  <rjkroege@chromium.org>
294
295         [chromium] synthesize wheel events for fling on main thread
296         https://bugs.webkit.org/show_bug.cgi?id=81458
297
298         Support track pad fling by generating a sequence of wheel events.
299
300         Reviewed by James Robinson.
301
302         * src/WebViewImpl.cpp:
303         (WebKit::WebViewImpl::WebViewImpl):
304         (WebKit::WebViewImpl::scrollBy): Call-back from PlatformGestureCurve to dispatch wheel event.
305         (WebKit):
306         (WebKit::WebViewImpl::gestureEvent): Handle GestureFlingStart and GestureFlingCancel.
307         (WebKit::WebViewImpl::updateAnimations): Requests a PlatformGestureCurve to animate forward.
308         (WebKit::WebViewImpl::didCommitLoad): Halt flings on navigations.
309         * src/WebViewImpl.h:
310         (WebCore):
311         (WebViewImpl):
312
313 2012-03-19  Keishi Hattori  <keishi@webkit.org>
314
315         [chromium] Fix build that was broken by r111137
316
317         Fixed was ambiguous because of MacTypes.h
318
319         * tests/CCLayerTreeHostCommonTest.cpp:
320         (WebCore::addTransformAnimationToLayer):
321         * tests/CCOcclusionTrackerTest.cpp:
322         (WebCore::addTransformAnimationToLayer):
323
324 2012-03-18  Keishi Hattori  <keishi@webkit.org>
325
326         [chromium] Fix test that was broken by r111128
327
328         * tests/ScrollAnimatorNoneTest.cpp:
329         (TEST): ScrollByPixel no longer animates.
330
331 2012-03-18  Dana Jansens  <danakj@chromium.org>
332
333         [chromium] Don't occlude on main-thread behind layers/surfaces with impl-thread animations
334         https://bugs.webkit.org/show_bug.cgi?id=81354
335
336         Reviewed by Adrienne Walker.
337
338         * tests/CCOcclusionTrackerTest.cpp:
339         (WebCore):
340         (WebCore::addOpacityAnimationToLayer):
341         (WebCore::addTransformAnimationToLayer):
342         (CCOcclusionTrackerTestAnimationOpacity1OnMainThread):
343         (WebCore::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
344         (CCOcclusionTrackerTestAnimationOpacity0OnMainThread):
345         (WebCore::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
346         (CCOcclusionTrackerTestAnimationTranslateOnMainThread):
347         (WebCore::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
348
349 2012-03-18  Dana Jansens  <danakj@chromium.org>
350
351         [chromium] Animating opacity is not opaque and should create a render surface on main thread
352         https://bugs.webkit.org/show_bug.cgi?id=81401
353
354         Reviewed by James Robinson.
355
356         * tests/CCLayerTreeHostCommonTest.cpp:
357         (WebCore::TEST):
358
359 2012-03-18  Dana Jansens  <danakj@chromium.org>
360
361         [chromium] Transform animation state should be inherited from parents
362         https://bugs.webkit.org/show_bug.cgi?id=81363
363
364         Reviewed by Adrienne Walker.
365
366         * tests/CCLayerTreeHostCommonTest.cpp:
367         (WebCore::addOpacityAnimationToLayer):
368         (WebCore):
369         (WebCore::addTransformAnimationToLayer):
370         (WebCore::TEST):
371
372 2012-03-16  James Robinson  <jamesr@chromium.org>
373
374         [chromium] Unify the drawing logic for different layer types that output textures to the compositor
375         https://bugs.webkit.org/show_bug.cgi?id=81286
376
377         Reviewed by Adrienne Walker.
378
379         * tests/Canvas2DLayerChromiumTest.cpp:
380
381 2012-03-15  Daniel Cheng  <dcheng@chromium.org>
382
383         [chromium] Refactor ClipboardChromium and DataTransferItemList/DataTransferItem to support HTML spec
384         https://bugs.webkit.org/show_bug.cgi?id=76598
385
386         Reviewed by Tony Chang.
387
388         * src/WebDragData.cpp:
389         (WebKit::WebDragData::items):
390         (WebKit::WebDragData::addItem):
391         (WebKit::WebDragData::assign):
392
393 2012-03-16  Dana Jansens  <danakj@chromium.org>
394
395         [chromium] Add overdraw metrics for texture uploads
396         https://bugs.webkit.org/show_bug.cgi?id=81175
397
398         Reviewed by Adrienne Walker.
399
400         * tests/TiledLayerChromiumTest.cpp:
401         (WTF::TEST):
402
403 2012-03-16  Dana Jansens  <danakj@chromium.org>
404
405         [chromium] Remove surface damage client from occlusion tracker
406         https://bugs.webkit.org/show_bug.cgi?id=81242
407
408         Reviewed by Adrienne Walker.
409
410         * tests/CCOcclusionTrackerTest.cpp:
411         (WebCore):
412
413 2012-03-16  Ian Vollick  <vollick@chromium.org>
414
415         [chromium] Threaded opacity animation jump to opacity of 0
416         https://bugs.webkit.org/show_bug.cgi?id=80744
417
418         Reviewed by James Robinson.
419
420         * tests/CCLayerTreeHostTest.cpp:
421         (WTF):
422         (CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity):
423         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity):
424         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::beginTest):
425         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::animateLayers):
426         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::commitCompleteOnCCThread):
427         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::afterTest):
428         (WTF::TEST_F):
429
430 2012-03-16  Dana Jansens  <danakj@chromium.org>
431
432         [chromium] Changes to overdraw metrics to allow upload tracking
433         https://bugs.webkit.org/show_bug.cgi?id=81222
434
435         Reviewed by Adrienne Walker.
436
437         * tests/CCQuadCullerTest.cpp:
438         (WebCore::appendQuads):
439         (WebCore):
440         (WebCore::TEST):
441         * tests/MockCCQuadCuller.h:
442         (WebCore::MockCCQuadCuller::MockCCQuadCuller):
443
444 2012-03-16  Dana Jansens  <danakj@chromium.org>
445
446         [chromium] Quads that become fully opaque after culling should not use blending
447         https://bugs.webkit.org/show_bug.cgi?id=81235
448
449         Reviewed by Adrienne Walker.
450
451         * tests/CCLayerTreeHostImplTest.cpp:
452         (WebKit::BlendStateCheckLayer::appendQuads):
453         (WebKit::BlendStateCheckLayer::setQuadRect):
454         (WebKit::BlendStateCheckLayer::setQuadVisibleRect):
455         (WebKit::BlendStateCheckLayer::setOpaqueContents):
456         (WebKit::BlendStateCheckLayer::setOpaqueContentRect):
457         (WebKit::BlendStateCheckLayer::BlendStateCheckLayer):
458         (BlendStateCheckLayer):
459         (WebKit::TEST_F):
460
461 2012-03-15  Hans Wennborg  <hans@chromium.org>
462
463         Speech JavaScript API: SpeechRecognition, Controller and Client
464         https://bugs.webkit.org/show_bug.cgi?id=81096
465
466         Reviewed by Adam Barth.
467
468         Provide a SpeechRecognitionController to Page, with a NULL client for
469         now.
470
471         * src/WebViewImpl.cpp:
472         (WebKit::WebViewImpl::WebViewImpl):
473
474 2012-03-15  Dana Jansens  <danakj@chromium.org>
475
476         [chromium] Fix some assertions in occlusion tracker unit tests
477         https://bugs.webkit.org/show_bug.cgi?id=81308
478
479         Reviewed by James Robinson.
480
481         * tests/CCOcclusionTrackerTest.cpp:
482         (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
483         (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest):
484         (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest):
485         (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest):
486
487 2012-03-15  Sheriff Bot  <webkit.review.bot@gmail.com>
488
489         Unreviewed, rolling out r110941.
490         http://trac.webkit.org/changeset/110941
491         https://bugs.webkit.org/show_bug.cgi?id=81307
492
493         the revert looks innocent. (Requested by morrita on #webkit).
494
495         * tests/CCLayerTreeHostTest.cpp:
496         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
497         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
498         (WTF::TestLayerChromium::paintContentsIfDirty):
499         * tests/Canvas2DLayerChromiumTest.cpp:
500         * tests/TiledLayerChromiumTest.cpp:
501         (TestCCOcclusionTracker):
502         (WTF::TestCCOcclusionTracker::TestCCOcclusionTracker):
503         (WTF::TestCCOcclusionTracker::setOcclusion):
504         (WTF::TestCCOcclusionTracker::layerScissorRectInTargetSurface):
505         (WTF):
506         (WTF::FakeTiledLayerChromium::prepareToUpdate):
507         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
508         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
509         (WTF::TEST):
510
511 2012-03-15  Sheriff Bot  <webkit.review.bot@gmail.com>
512
513         Unreviewed, rolling out r110929.
514         http://trac.webkit.org/changeset/110929
515         https://bugs.webkit.org/show_bug.cgi?id=81306
516
517         breaking webkit_unit_tests (Requested by morrita on #webkit).
518
519         * tests/CCLayerTreeHostTest.cpp:
520         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
521         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
522         (WTF::TestLayerChromium::paintContentsIfDirty):
523         * tests/Canvas2DLayerChromiumTest.cpp:
524         * tests/TiledLayerChromiumTest.cpp:
525         (WTF::FakeTiledLayerChromium::prepareToUpdate):
526         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
527         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
528         (WTF::TEST):
529
530 2012-03-15  Dana Jansens  <danakj@chromium.org>
531
532         [chromium] Decide occlusion in paint culling with CCOcclusionTracker
533         https://bugs.webkit.org/show_bug.cgi?id=81181
534
535         Reviewed by Adrienne Walker.
536
537         * tests/CCLayerTreeHostTest.cpp:
538         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
539         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
540         (WTF::TestLayerChromium::paintContentsIfDirty):
541         * tests/Canvas2DLayerChromiumTest.cpp:
542         * tests/TiledLayerChromiumTest.cpp:
543         (TestCCOcclusionTracker):
544         (WTF::TestCCOcclusionTracker::TestCCOcclusionTracker):
545         (WTF::TestCCOcclusionTracker::setOcclusion):
546         (WTF::TestCCOcclusionTracker::layerScissorRectInTargetSurface):
547         (WTF):
548         (WTF::FakeTiledLayerChromium::prepareToUpdate):
549         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
550         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
551         (WTF::TEST):
552
553 2012-03-15  Dana Jansens  <danakj@chromium.org>
554
555         [chromium] Move overdraw metrics into a templated class for both paint and draw metrics.
556         https://bugs.webkit.org/show_bug.cgi?id=81156
557
558         Reviewed by Adrienne Walker.
559
560         * tests/CCQuadCullerTest.cpp:
561         (WebCore::appendQuads):
562         (WebCore):
563         (WebCore::TEST):
564
565 2012-03-07  Jon Lee  <jonlee@apple.com>
566
567         Move NotificationContents into Notification
568         https://bugs.webkit.org/show_bug.cgi?id=80487
569         <rdar://problem/10965519>
570
571         Reviewed by Jian Li.
572
573         Refactor to use accessor methods on Notification.
574         * src/WebNotification.cpp:
575         (WebKit::WebNotification::title):
576         (WebKit::WebNotification::body):
577
578 2012-03-13  Jon Lee  <jonlee@apple.com>
579
580         Deprecate ondisplay()
581         https://bugs.webkit.org/show_bug.cgi?id=80483
582         <rdar://problem/10912432>
583
584         Reviewed by Jian Li.
585
586         * src/WebNotification.cpp:
587         (WebKit::WebNotification::dispatchDisplayEvent): Dispatch the show event.
588
589 2012-03-14  W. James MacLean  <wjmaclean@chromium.org>
590
591         [chromium] Wire up PlatformGestureCurves for CC, ScrollAnimatorNone.
592         https://bugs.webkit.org/show_bug.cgi?id=80607
593
594         Reviewed by James Robinson.
595
596         * public/WebInputEvent.h:
597         (WebKit::WebInputEvent::isScrollGestureEventType):
598         * src/WebCompositorInputHandlerImpl.cpp:
599         (PlatformGestureToCCGestureAdapter):
600         (WebCore::PlatformGestureToCCGestureAdapter::create):
601         (WebCore::PlatformGestureToCCGestureAdapter::apply):
602         (WebCore::PlatformGestureToCCGestureAdapter::scrollBy):
603         (WebCore::PlatformGestureToCCGestureAdapter::PlatformGestureToCCGestureAdapter):
604         (WebCore):
605         (WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
606         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
607         (WebKit):
608         (WebKit::WebCompositorInputHandlerImpl::scrollBy):
609         * src/WebCompositorInputHandlerImpl.h:
610         (WebCore):
611         (WebCompositorInputHandlerImpl):
612         * tests/PlatformGestureCurveTest.cpp:
613         * tests/WebCompositorInputHandlerImplTest.cpp:
614
615 2012-03-15  Dana Jansens  <danakj@chromium.org>
616
617         [Chromium] REGRESSION(r110596) CCQuadCullerTest.verifyCullChildLinesUpTopLeft fails on Windows
618         https://bugs.webkit.org/show_bug.cgi?id=81083
619
620         Reviewed by Adrienne Walker.
621
622         * tests/CCQuadCullerTest.cpp:
623         (WebCore::TEST):
624
625 2012-03-15  David Levin  <levin@chromium.org>
626
627         Various autoresize fixes.
628         https://bugs.webkit.org/show_bug.cgi?id=81199
629
630         Reviewed by Darin Fisher.
631
632         * public/WebView.h:
633         (WebView): Remove a deprecated api.
634         * src/WebViewImpl.cpp: Ditto.
635         * src/WebViewImpl.h: Ditto.
636         * tests/FrameTestHelpers.cpp:
637         (WebKit::FrameTestHelpers::registerMockedURLLoad): Added an overload with more flexibility.
638         The previous api didn't allow one to request a url with a search string.
639         (FrameTestHelpers):
640         * tests/FrameTestHelpers.h:
641         (FrameTestHelpers): Ditto.
642         * tests/WebViewTest.cpp: Fix the test because calling javascript:
643         was working. Make the test generic and added a lot more tests to cover
644         various possibilities. I avoided using a layout test because there wasn't
645         a way to get the scrollbar state, so I just generalized a test that was already there.
646         * tests/data/specify_size.html: Allow the test to take its size from the search string.
647
648 2012-03-15  Peter Beverloo  <peter@chromium.org>
649
650         Unreviewed.  Rolled DEPS.
651
652         * DEPS:
653
654 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
655
656         AXDescription for HTML5 footer and ARIA role contentinfo incorrect
657         https://bugs.webkit.org/show_bug.cgi?id=78967
658
659         Reviewed by Beth Dakin.
660
661         * src/LocalizedStrings.cpp:
662
663 2012-03-13  Jon Lee  <jonlee@apple.com>
664
665         Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS
666         https://bugs.webkit.org/show_bug.cgi?id=80922
667         <rdar://problem/11035082>
668
669         Reviewed by Jian Li.
670
671         You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API.
672         LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the
673         new API. Therefore, APIs that are common between the two will have:
674         #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
675
676         This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to
677         the new API, the defines will begin to split. This allows ports to decide which set of APIs to include.
678
679         Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
680         * src/AssertMatchingEnums.cpp:
681         * src/NotificationPresenterImpl.cpp:
682         * src/NotificationPresenterImpl.h:
683         * src/WebNotification.cpp:
684         * src/WebRuntimeFeatures.cpp:
685         (WebKit::WebRuntimeFeatures::enableNotifications):
686         (WebKit::WebRuntimeFeatures::isNotificationsEnabled):
687         * src/WebViewImpl.cpp:
688         (WebKit::WebViewImpl::WebViewImpl):
689         (WebKit):
690         * src/WebViewImpl.h:
691         (WebViewImpl):
692
693 2012-03-14  James Robinson  <jamesr@chromium.org>
694
695         [chromium] Deprecate renderDirectlyToWebView parameter of WebViewClient::createGraphicsContext3D()
696         https://bugs.webkit.org/show_bug.cgi?id=80523
697
698         Reviewed by Darin Fisher.
699
700         * public/WebViewClient.h:
701         (WebViewClient):
702         (WebKit::WebViewClient::createGraphicsContext3D):
703         * public/platform/WebKitPlatformSupport.h:
704         (WebKit):
705         * src/WebViewImpl.cpp:
706         (WebKit::WebViewImpl::createCompositorGraphicsContext3D):
707
708 2012-03-14  James Robinson  <jamesr@chromium.org>
709
710         [chromium] Remove canRecoverFromContextLoss attribute, it's unused
711         https://bugs.webkit.org/show_bug.cgi?id=81158
712
713         Reviewed by Stephen White.
714
715         Deletes the canRecoverFromContextLoss attribute from WebCore::GraphicsContext3D::Attributes. This is still left in
716         WebGraphicsContext3D::Attributes, since chromium-side code still references it.
717
718         * src/GraphicsContext3DChromium.cpp:
719         (WebCore::GraphicsContext3D::create):
720
721 2012-03-14  Stephen White  <senorblanco@chromium.org>
722
723         [chromium] Fix accelerated Canvas2D with threaded compositing.
724         https://bugs.webkit.org/show_bug.cgi?id=80998
725
726         Reviewed by James Robinson.
727
728         * tests/Canvas2DLayerChromiumTest.cpp:
729         Instantiate a CCLayerTreeHost, so that Canvas2DLayerChromium can
730         retrieve its texture manager.  Also move the test into the unnamed
731         namespace -- since it's already using WebCore, there's little reason for
732         it to also be in the namespace.
733         * tests/TreeSynchronizerTest.cpp:
734         (WebKitTests):
735         (WebKitTests::TEST):
736         Add a new test for trying to synchronize NULL tree.
737
738 2012-03-14  James Robinson  <jamesr@chromium.org>
739
740         [chromium] Provide explicit polling API to check if the platform is capable of accelerated 2d canvas
741         https://bugs.webkit.org/show_bug.cgi?id=80667
742
743         Reviewed by Darin Fisher.
744
745         * public/platform/WebKitPlatformSupport.h:
746         (WebKit::WebKitPlatformSupport::canAccelerate2dCanvas):
747         (WebKitPlatformSupport):
748         * src/PlatformSupport.cpp:
749         (WebCore::PlatformSupport::canAccelerate2dCanvas):
750         (WebCore):
751
752 2012-03-14  Andrey Kosyakov  <caseq@chromium.org>
753
754         Web Inspector: add didCancelFrame timeline event
755         https://bugs.webkit.org/show_bug.cgi?id=80994
756
757         Reviewed by Pavel Feldman.
758
759         - add intrumentCanceFrame(), called when renderer decides not to
760             render frame after instrumentBeginFrame() was called.
761
762         * public/WebWidget.h:
763         (WebWidget):
764         (WebKit::WebWidget::instrumentCancelFrame):
765         * src/WebViewImpl.cpp:
766         (WebKit::WebViewImpl::instrumentCancelFrame):
767         (WebKit):
768         * src/WebViewImpl.h:
769         (WebViewImpl):
770
771 2012-03-14  Dana Jansens  <danakj@chromium.org>
772
773         Region can acquire an empty span by subtracting an empty Region
774         https://bugs.webkit.org/show_bug.cgi?id=81074
775
776         Reviewed by Anders Carlsson.
777
778         * tests/RegionTest.cpp:
779         (WebCore::TEST):
780         (WebCore):
781
782 2012-03-13  Hajime Morrita  <morrita@chromium.org>
783
784         Unreviewed, mark verifyCullChildLinesUpTopLeft() as failed.
785
786         * tests/CCQuadCullerTest.cpp:
787         (WebCore):
788         (WebCore::TEST):
789
790 2012-03-14  Marja Hölttä  <marja@google.com>
791
792         WebHTTPBody: Keep track of whether the data includes passwords.
793         https://bugs.webkit.org/show_bug.cgi?id=81003
794
795         Reviewed by Darin Fisher.
796
797         This change enables Chrome to save HTTP bodies selectively, only
798         if they don't contain passwords.
799
800         * public/platform/WebHTTPBody.h:
801         (WebHTTPBody): Added containsPasswordData, setContainsPasswordData.
802         * src/WebHTTPBody.cpp:
803         (WebKit::WebHTTPBody::containsPasswordData): Added.
804         (WebKit):
805         (WebKit::WebHTTPBody::setContainsPasswordData): Added.
806
807 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
808
809         Unreviewed.  Rolled DEPS.
810
811         * DEPS:
812
813 2012-03-13  Hajime Morrita  <morrita@chromium.org>
814
815         Unreviewed, mark verifyCullChildLinesUpTopLeft() as failed.
816
817         * tests/CCQuadCullerTest.cpp:
818         (WebCore):
819         (WebCore::TEST):
820
821 2012-03-13  Shawn Singh  <shawnsingh@chromium.org>
822
823         [chromium] wrong transform causing incorrect culling
824         https://bugs.webkit.org/show_bug.cgi?id=80471
825
826         Reviewed by James Robinson.
827
828         * tests/CCRenderSurfaceTest.cpp:
829         (WebCore::TEST):
830         (WebCore):
831
832 2012-03-13  Nat Duca  <nduca@chromium.org>
833
834         [chromium] vsync ticks are needed in invisible tabs when we are still updating resources
835         https://bugs.webkit.org/show_bug.cgi?id=80910
836
837         Reviewed by James Robinson.
838
839         * tests/CCSchedulerStateMachineTest.cpp:
840         (WebCore::TEST):
841         (WebCore):
842
843 2012-03-13  Dana Jansens  <danakj@chromium.org>
844
845         Region::contains(IntPoint) is slow
846         https://bugs.webkit.org/show_bug.cgi?id=81008
847
848         Reviewed by Anders Carlsson.
849
850         * WebKit.gypi:
851         * tests/RegionTest.cpp: Added.
852         (WebCore):
853         (WebCore::TEST):
854
855 2012-03-13  Gavin Peters  <gavinp@chromium.org>
856
857         Implement ApplicationCacheHost::canCacheInPageCache() for chromium.
858         https://bugs.webkit.org/show_bug.cgi?id=80905
859
860         Reviewed by Eric Seidel.
861
862         This won't cause chrome to use the PageCache, but it will cause our histogram statistics
863         describing PageCache use to be more accurate.
864
865         * src/ApplicationCacheHost.cpp:
866         (WebCore::ApplicationCacheHost::canCacheInPageCache):
867
868 2012-03-13  Dana Jansens  <danakj@chromium.org>
869
870         [chromium] Use CCOcclusionTracker for draw culling
871         https://bugs.webkit.org/show_bug.cgi?id=80743
872
873         Reviewed by Adrienne Walker.
874
875         * WebKit.gypi:
876         * tests/CCLayerTreeHostImplTest.cpp:
877         (WebKit::BlendStateCheckLayer::appendQuads):
878         * tests/CCQuadCullerTest.cpp:
879         (TestCCOcclusionTrackerImpl):
880         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
881         (WebCore::TestCCOcclusionTrackerImpl::layerScissorRectInTargetSurface):
882         (WebCore::makeLayer):
883         (WebCore::appendQuads):
884         (WebCore):
885         (WebCore::TEST):
886         * tests/CCSolidColorLayerImplTest.cpp:
887         (CCLayerTestCommon::TEST):
888         * tests/CCTiledLayerImplTest.cpp:
889         (CCLayerTestCommon::TEST):
890         (CCLayerTestCommon::getQuads):
891         * tests/MockCCQuadCuller.h: Added.
892         (WebCore):
893         (MockCCQuadCuller):
894         (WebCore::MockCCQuadCuller::MockCCQuadCuller):
895         (WebCore::MockCCQuadCuller::append):
896         (WebCore::MockCCQuadCuller::quadList):
897
898 2012-03-13  Adam Barth  <abarth@webkit.org> && Benjamin Poulain  <bpoulain@apple.com>
899
900         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)
901         https://bugs.webkit.org/show_bug.cgi?id=78853
902
903         Reviewed by Adam Barth.
904
905         * features.gypi:
906         * src/ChromeClientImpl.cpp:
907         * src/ChromeClientImpl.h:
908         (ChromeClientImpl):
909
910 2012-03-13  Tommy Widenflycht  <tommyw@google.com>
911
912         MediaStream API: Rename PeerConnection to DeprecatedPeerConnection
913         https://bugs.webkit.org/show_bug.cgi?id=80692
914
915         Reviewed by Adam Barth.
916
917         First patch in a series of patches to change the PeerConnection from ROAP to JSEP,
918         see bug 80589 for more information.
919
920         * WebKit.gyp:
921         * bridge/DeprecatedPeerConnectionHandler.cpp: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandler.cpp.
922         (WebCore):
923         (WebCore::DeprecatedPeerConnectionHandler::create):
924         (WebCore::DeprecatedPeerConnectionHandler::DeprecatedPeerConnectionHandler):
925         (WebCore::DeprecatedPeerConnectionHandler::~DeprecatedPeerConnectionHandler):
926         (WebCore::DeprecatedPeerConnectionHandler::produceInitialOffer):
927         (WebCore::DeprecatedPeerConnectionHandler::handleInitialOffer):
928         (WebCore::DeprecatedPeerConnectionHandler::processSDP):
929         (WebCore::DeprecatedPeerConnectionHandler::processPendingStreams):
930         (WebCore::DeprecatedPeerConnectionHandler::sendDataStreamMessage):
931         (WebCore::DeprecatedPeerConnectionHandler::stop):
932         * bridge/DeprecatedPeerConnectionHandlerInternal.cpp: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp.
933         (WebCore):
934         (WebCore::DeprecatedPeerConnectionHandlerInternal::DeprecatedPeerConnectionHandlerInternal):
935         (WebCore::DeprecatedPeerConnectionHandlerInternal::~DeprecatedPeerConnectionHandlerInternal):
936         (WebCore::DeprecatedPeerConnectionHandlerInternal::produceInitialOffer):
937         (WebCore::DeprecatedPeerConnectionHandlerInternal::handleInitialOffer):
938         (WebCore::DeprecatedPeerConnectionHandlerInternal::processSDP):
939         (WebCore::DeprecatedPeerConnectionHandlerInternal::processPendingStreams):
940         (WebCore::DeprecatedPeerConnectionHandlerInternal::sendDataStreamMessage):
941         (WebCore::DeprecatedPeerConnectionHandlerInternal::stop):
942         (WebCore::DeprecatedPeerConnectionHandlerInternal::didCompleteICEProcessing):
943         (WebCore::DeprecatedPeerConnectionHandlerInternal::didGenerateSDP):
944         (WebCore::DeprecatedPeerConnectionHandlerInternal::didReceiveDataStreamMessage):
945         (WebCore::DeprecatedPeerConnectionHandlerInternal::didAddRemoteStream):
946         (WebCore::DeprecatedPeerConnectionHandlerInternal::didRemoveRemoteStream):
947         * bridge/DeprecatedPeerConnectionHandlerInternal.h: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.h.
948         (WebKit):
949         (WebCore):
950         (DeprecatedPeerConnectionHandlerInternal):
951
952 2012-03-13  Dana Jansens  <danakj@chromium.org>
953
954         [chromium] Use projectQuad to apply inverse mapRect
955         https://bugs.webkit.org/show_bug.cgi?id=80741
956
957         Reviewed by Adrienne Walker.
958
959         * tests/CCOcclusionTrackerTest.cpp:
960         (WebCore):
961         (CCOcclusionTrackerTest3dTransform):
962         (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest):
963         (CCOcclusionTrackerTestPerspectiveTransform):
964         (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest):
965         (CCOcclusionTrackerTestPerspectiveTransformBehindCamera):
966         (WebCore::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest):
967
968 2012-03-13  Gavin Peters  <gavinp@chromium.org>
969
970         Make ApplicationCacheHost::canCacheInPageCache() non-const.
971         https://bugs.webkit.org/show_bug.cgi?id=80904
972
973         Reviewed by Alexey Proskuryakov.
974
975         A const pointer to a large object like ApplicationCacheHost is not our standard
976         practice; so remove this (implicit) one.  See also https://bugs.webkit.org/show_bug.cgi?id=80898
977
978         * src/ApplicationCacheHost.cpp:
979         (WebCore::ApplicationCacheHost::canCacheInPageCache):
980
981 2012-03-13  Kinuko Yasuda  <kinuko@chromium.org>
982
983         Allow WebFileChooser to return extra file info (like displayName) in addition to mere file paths
984         https://bugs.webkit.org/show_bug.cgi?id=80719
985
986         Reviewed by Kent Tamura.
987
988         * public/WebFileChooserCompletion.h:
989         (SelectedFileInfo): Added.
990         (WebFileChooserCompletion):
991         (WebKit::WebFileChooserCompletion::didChooseFile): Added an overloaded
992         method that takes SelectedFileInfo.
993         * src/WebFileChooserCompletionImpl.cpp:
994         (WebKit::WebFileChooserCompletionImpl::didChooseFile): Ditto.
995         (WebKit):
996         * src/WebFileChooserCompletionImpl.h:
997         (WebFileChooserCompletionImpl):
998
999 2012-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1000
1001         Unreviewed, rolling out r110529.
1002         http://trac.webkit.org/changeset/110529
1003         https://bugs.webkit.org/show_bug.cgi?id=80969
1004
1005         breaks mac build (Requested by morrita on #webkit).
1006
1007         * tests/CCOcclusionTrackerTest.cpp:
1008         (WebCore):
1009
1010 2012-03-12  Hajime Morrita  <morrita@chromium.org>
1011
1012         Unreviewed Windows build fix.
1013
1014         * src/WebViewImpl.cpp:
1015
1016 2012-03-12  Dana Jansens  <danakj@chromium.org>
1017
1018         [chromium] Use projectQuad to apply inverse mapRect
1019         https://bugs.webkit.org/show_bug.cgi?id=80741
1020
1021         Reviewed by Adrienne Walker.
1022
1023         * tests/CCOcclusionTrackerTest.cpp:
1024         (WebCore):
1025         (CCOcclusionTrackerTest3dTransform):
1026         (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest):
1027         (CCOcclusionTrackerTestPerspectiveTransform):
1028         (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest):
1029         (CCOcclusionTrackerTestPerspectiveTransformBehindCamera):
1030         (WebCore::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest):
1031
1032 2012-03-12  Dana Jansens  <danakj@chromium.org>
1033
1034         [chromium] Fix clang build for CCOcclusionTracker tests
1035         https://bugs.webkit.org/show_bug.cgi?id=80891
1036
1037         Reviewed by Adam Barth.
1038
1039         * tests/CCOcclusionTrackerTest.cpp:
1040         (WebCore::CCOcclusionTrackerTest::createRoot):
1041         (WebCore::CCOcclusionTrackerTest::createLayer):
1042         (WebCore::CCOcclusionTrackerTest::createDrawingLayer):
1043
1044 2012-03-12  Stephen White  <senorblanco@chromium.org>
1045
1046         [chromium] Restore canvas2D acceleration after context loss.
1047         https://bugs.webkit.org/show_bug.cgi?id=80629
1048
1049         Reviewed by James Robinson.
1050
1051         Covered by existing canvas tests, and manual testing (killing the GPU
1052         process).
1053
1054         * src/WebViewImpl.cpp:
1055         (WebKit::WebViewImpl::sharedGraphicsContext3D):
1056
1057 2012-03-12  Nat Duca  <nduca@chromium.org>
1058
1059         [Chromium] Force compositeAndReadback through regular scheduling flow
1060         https://bugs.webkit.org/show_bug.cgi?id=77049
1061
1062         Reviewed by James Robinson.
1063
1064         * tests/CCFrameRateControllerTest.cpp:
1065         (WebKitTests::FakeCCFrameRateControllerClient::reset):
1066         (WebKitTests::FakeCCFrameRateControllerClient::vsyncTicked):
1067         (WebKitTests::FakeCCFrameRateControllerClient::vsyncTick):
1068         (FakeCCFrameRateControllerClient):
1069         (WebKitTests::TEST):
1070         * tests/CCLayerTreeHostTest.cpp:
1071         (WTF):
1072         (CCLayerTreeHostTestCompositeAndReadbackWhileInvisible):
1073         (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible):
1074         (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::beginTest):
1075         (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::didCommitAndDrawFrame):
1076         (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::afterTest):
1077         (WTF::TEST_F):
1078         * tests/CCSchedulerStateMachineTest.cpp:
1079         (WebCore::StateMachine::setNeedsForcedCommit):
1080         (WebCore::StateMachine::needsForcedCommit):
1081         (StateMachine):
1082         (WebCore::TEST):
1083         (WebCore):
1084
1085 2012-03-12  Joshua Bell  <jsbell@chromium.org>
1086
1087         IndexedDB: Handle LevelDB database corruption
1088         https://bugs.webkit.org/show_bug.cgi?id=79413
1089
1090         Reviewed by Tony Chang.
1091
1092         * WebKit.gyp: Skip LevelDBTest.cpp in shared component builds due to webkit_support dependency
1093         * WebKit.gypi: Add LevelDBTest.cpp
1094         * tests/LevelDBTest.cpp: Added.
1095         (WebCore):
1096         (SimpleComparator):
1097         (WebCore::SimpleComparator::compare):
1098         (WebCore::SimpleComparator::name):
1099         (WebCore::encodeString):
1100         (WebCore::TEST):
1101
1102 2012-03-12  Dana Jansens  <danakj@chromium.org>
1103
1104         [chromium] Clean up culling tests and templatize to test impl constructs
1105         https://bugs.webkit.org/show_bug.cgi?id=80613
1106
1107         Reviewed by Adrienne Walker.
1108
1109         * tests/CCOcclusionTrackerTest.cpp:
1110         (WebCore::TestContentLayerChromium::TestContentLayerChromium):
1111         (WebCore::TestContentLayerChromium::opaqueContentsRegion):
1112         (WebCore::TestContentLayerChromium::setOpaqueContentsRect):
1113         (TestContentLayerChromium):
1114         (TestContentLayerImpl):
1115         (WebCore::TestContentLayerImpl::TestContentLayerImpl):
1116         (WebCore::TestContentLayerImpl::opaqueContentsRegion):
1117         (WebCore::TestContentLayerImpl::setOpaqueContentsRect):
1118         (WebCore):
1119         (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase):
1120         (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace):
1121         (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface):
1122         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace):
1123         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface):
1124         (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface):
1125         (WebCore::TestDamageClient::damageRect):
1126         (CCOcclusionTrackerTestMainThreadTypes):
1127         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer):
1128         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer):
1129         (CCOcclusionTrackerTestImplThreadTypes):
1130         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer):
1131         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer):
1132         (CCOcclusionTrackerTest):
1133         (WebCore::CCOcclusionTrackerTest::TearDown):
1134         (WebCore::CCOcclusionTrackerTest::createRoot):
1135         (WebCore::CCOcclusionTrackerTest::createLayer):
1136         (WebCore::CCOcclusionTrackerTest::createSurface):
1137         (WebCore::CCOcclusionTrackerTest::createDrawingLayer):
1138         (WebCore::CCOcclusionTrackerTest::createDrawingSurface):
1139         (WebCore::CCOcclusionTrackerTest::calcDrawEtc):
1140         (WebCore::CCOcclusionTrackerTest::setBaseProperties):
1141         (WebCore::CCOcclusionTrackerTest::setProperties):
1142         (CCOcclusionTrackerTestIdentityTransforms):
1143         (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest):
1144         (CCOcclusionTrackerTestRotatedChild):
1145         (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest):
1146         (CCOcclusionTrackerTestTranslatedChild):
1147         (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest):
1148         (CCOcclusionTrackerTestChildInRotatedChild):
1149         (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
1150         (CCOcclusionTrackerTestVisitTargetTwoTimes):
1151         (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
1152         (CCOcclusionTrackerTestSurfaceRotatedOffAxis):
1153         (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
1154         (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren):
1155         (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
1156         (CCOcclusionTrackerTestOverlappingSurfaceSiblings):
1157         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
1158         (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms):
1159         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
1160         (CCOcclusionTrackerTestFilters):
1161         (WebCore::CCOcclusionTrackerTestFilters::runMyTest):
1162         (CCOcclusionTrackerTestLayerScissorRectOutsideChild):
1163         (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest):
1164         (CCOcclusionTrackerTestScreenScissorRectOutsideChild):
1165         (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest):
1166         (CCOcclusionTrackerTestDamageRectOutsideChild):
1167         (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest):
1168         (CCOcclusionTrackerTestLayerScissorRectOverChild):
1169         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest):
1170         (CCOcclusionTrackerTestScreenScissorRectOverChild):
1171         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest):
1172         (CCOcclusionTrackerTestDamageRectOverChild):
1173         (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest):
1174         (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild):
1175         (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest):
1176         (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild):
1177         (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest):
1178         (CCOcclusionTrackerTestDamageRectPartlyOverChild):
1179         (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest):
1180         (CCOcclusionTrackerTestLayerScissorRectOverNothing):
1181         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest):
1182         (CCOcclusionTrackerTestScreenScissorRectOverNothing):
1183         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest):
1184         (CCOcclusionTrackerTestDamageRectOverNothing):
1185         (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest):
1186         (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin):
1187         (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest):
1188         (CCOcclusionTrackerTestOpaqueContentsRegionEmpty):
1189         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest):
1190         (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty):
1191         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest):
1192
1193 2012-03-11  Sheriff Bot  <webkit.review.bot@gmail.com>
1194
1195         Unreviewed, rolling out r110359.
1196         http://trac.webkit.org/changeset/110359
1197         https://bugs.webkit.org/show_bug.cgi?id=80799
1198
1199         SelectPopupMenuTest.ClickItem failure (Requested by ukai on
1200         #webkit).
1201
1202         * src/WebViewImpl.cpp:
1203         (WebKit::WebViewImpl::gestureEvent):
1204         (WebKit::WebViewImpl::applyAutofillSuggestions):
1205
1206 2012-03-11  Pavel Feldman  <pfeldman@chromium.org>
1207
1208         Web Inspector: [chromium] add provisional test for the downstream sanity test.
1209         https://bugs.webkit.org/show_bug.cgi?id=80784
1210
1211         Reviewed by Yury Semikhatsky.
1212
1213         * src/js/Tests.js:
1214         (.TestSuite.prototype.checkLogAndErrorMessages.validMessage):
1215         (.TestSuite.prototype.checkLogAndErrorMessages.onConsoleMessage):
1216         (.TestSuite.prototype.checkLogAndErrorMessages):
1217
1218 2012-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
1219
1220         Unreviewed, rolling out r110384.
1221         http://trac.webkit.org/changeset/110384
1222         https://bugs.webkit.org/show_bug.cgi?id=80774
1223
1224         compile failed on Chromium Win Release (Requested by ukai_home
1225         on #webkit).
1226
1227         * tests/CCOcclusionTrackerTest.cpp:
1228         (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent):
1229         (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion):
1230         (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect):
1231         (LayerChromiumWithForcedDrawsContent):
1232         (WebCore::setLayerPropertiesForTesting):
1233         (WebCore):
1234         (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker):
1235         (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace):
1236         (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface):
1237         (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace):
1238         (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface):
1239         (WebCore::TestCCOcclusionTracker::layerScissorRectInTargetSurface):
1240         (WebCore::TestDamageClient::damageRect):
1241         (WebCore::layerAddedToOccludedRegion):
1242         (WebCore::layerAddedToOccludedRegionWithRotation):
1243         (WebCore::layerAddedToOccludedRegionWithTranslation):
1244         (WebCore::layerAddedToOccludedRegionWithRotatedSurface):
1245         (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack):
1246         (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface):
1247         (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers):
1248         (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces):
1249         (WebCore::surfaceOcclusionInScreenSpace):
1250         (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms):
1251         (WebCore::occlusionInteractionWithFilters):
1252         (WebCore::layerScissorRectOverTile):
1253         (WebCore::screenScissorRectOverTile):
1254         (WebCore::layerScissorRectOverCulledTile):
1255         (WebCore::screenScissorRectOverCulledTile):
1256         (WebCore::layerScissorRectOverPartialTiles):
1257         (WebCore::screenScissorRectOverPartialTiles):
1258         (WebCore::layerScissorRectOverNoTiles):
1259         (WebCore::screenScissorRectOverNoTiles):
1260         (WebCore::layerScissorRectForLayerOffOrigin):
1261         (WebCore::damageRectOverTile):
1262         (WebCore::damageRectOverCulledTile):
1263         (WebCore::damageRectOverPartialTiles):
1264         (WebCore::damageRectOverNoTiles):
1265         (WebCore::TEST):
1266
1267 2012-03-10  Dana Jansens  <danakj@chromium.org>
1268
1269         [chromium] Clean up culling tests and templatize to test impl constructs
1270         https://bugs.webkit.org/show_bug.cgi?id=80613
1271
1272         Reviewed by Adrienne Walker.
1273
1274         * tests/CCOcclusionTrackerTest.cpp:
1275         (WebCore::TestContentLayerChromium::TestContentLayerChromium):
1276         (WebCore::TestContentLayerChromium::opaqueContentsRegion):
1277         (WebCore::TestContentLayerChromium::setOpaqueContentsRect):
1278         (TestContentLayerChromium):
1279         (TestContentLayerImpl):
1280         (WebCore::TestContentLayerImpl::TestContentLayerImpl):
1281         (WebCore::TestContentLayerImpl::opaqueContentsRegion):
1282         (WebCore::TestContentLayerImpl::setOpaqueContentsRect):
1283         (WebCore):
1284         (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase):
1285         (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace):
1286         (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface):
1287         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace):
1288         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface):
1289         (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface):
1290         (WebCore::TestDamageClient::damageRect):
1291         (CCOcclusionTrackerTestMainThreadTypes):
1292         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer):
1293         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer):
1294         (CCOcclusionTrackerTestImplThreadTypes):
1295         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer):
1296         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer):
1297         (CCOcclusionTrackerTest):
1298         (WebCore::CCOcclusionTrackerTest::TearDown):
1299         (WebCore::CCOcclusionTrackerTest::createRoot):
1300         (WebCore::CCOcclusionTrackerTest::createLayer):
1301         (WebCore::CCOcclusionTrackerTest::createSurface):
1302         (WebCore::CCOcclusionTrackerTest::createDrawingLayer):
1303         (WebCore::CCOcclusionTrackerTest::createDrawingSurface):
1304         (WebCore::CCOcclusionTrackerTest::calcDrawEtc):
1305         (WebCore::CCOcclusionTrackerTest::setBaseProperties):
1306         (WebCore::CCOcclusionTrackerTest::setProperties):
1307         (CCOcclusionTrackerTestIdentityTransforms):
1308         (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest):
1309         (CCOcclusionTrackerTestRotatedChild):
1310         (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest):
1311         (CCOcclusionTrackerTestTranslatedChild):
1312         (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest):
1313         (CCOcclusionTrackerTestChildInRotatedChild):
1314         (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
1315         (CCOcclusionTrackerTestVisitTargetTwoTimes):
1316         (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
1317         (CCOcclusionTrackerTestSurfaceRotatedOffAxis):
1318         (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
1319         (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren):
1320         (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
1321         (CCOcclusionTrackerTestOverlappingSurfaceSiblings):
1322         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
1323         (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms):
1324         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
1325         (CCOcclusionTrackerTestFilters):
1326         (WebCore::CCOcclusionTrackerTestFilters::runMyTest):
1327         (CCOcclusionTrackerTestLayerScissorRectOutsideChild):
1328         (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest):
1329         (CCOcclusionTrackerTestScreenScissorRectOutsideChild):
1330         (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest):
1331         (CCOcclusionTrackerTestDamageRectOutsideChild):
1332         (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest):
1333         (CCOcclusionTrackerTestLayerScissorRectOverChild):
1334         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest):
1335         (CCOcclusionTrackerTestScreenScissorRectOverChild):
1336         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest):
1337         (CCOcclusionTrackerTestDamageRectOverChild):
1338         (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest):
1339         (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild):
1340         (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest):
1341         (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild):
1342         (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest):
1343         (CCOcclusionTrackerTestDamageRectPartlyOverChild):
1344         (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest):
1345         (CCOcclusionTrackerTestLayerScissorRectOverNothing):
1346         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest):
1347         (CCOcclusionTrackerTestScreenScissorRectOverNothing):
1348         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest):
1349         (CCOcclusionTrackerTestDamageRectOverNothing):
1350         (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest):
1351         (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin):
1352         (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest):
1353         (CCOcclusionTrackerTestOpaqueContentsRegionEmpty):
1354         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest):
1355         (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty):
1356         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest):
1357
1358 2012-03-09  Jon Lee  <jonlee@apple.com>
1359
1360         Rename NotificationPresenter to NotificationClient
1361         https://bugs.webkit.org/show_bug.cgi?id=80488
1362         <rdar://problem/10965558>
1363
1364         Reviewed by Kentaro Hara.
1365
1366         Refactor to use renamed WebCore::NotificationClient.
1367         * src/AssertMatchingEnums.cpp:
1368         * src/NotificationPresenterImpl.cpp:
1369         (WebKit::NotificationPresenterImpl::checkPermission):
1370         * src/NotificationPresenterImpl.h:
1371         (NotificationPresenterImpl):
1372
1373 2012-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
1374
1375         Unreviewed, rolling out r110363.
1376         http://trac.webkit.org/changeset/110363
1377         https://bugs.webkit.org/show_bug.cgi?id=80757
1378
1379         link error in chromium: unresolved external symbol
1380         webkit_support::CreateScopedTempDirectory(void) (Requested by
1381         ukai_home on #webkit).
1382
1383         * WebKit.gypi:
1384         * tests/LevelDBTest.cpp: Removed.
1385
1386 2012-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
1387
1388         Unreviewed, rolling out r110353.
1389         http://trac.webkit.org/changeset/110353
1390         https://bugs.webkit.org/show_bug.cgi?id=80752
1391
1392         copmile failed on Chromium (Requested by ukai_home on
1393         #webkit).
1394
1395         * tests/CCOcclusionTrackerTest.cpp:
1396         (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent):
1397         (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion):
1398         (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect):
1399         (LayerChromiumWithForcedDrawsContent):
1400         (WebCore::setLayerPropertiesForTesting):
1401         (WebCore):
1402         (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker):
1403         (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace):
1404         (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface):
1405         (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace):
1406         (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface):
1407         (WebCore::TestCCOcclusionTracker::layerScissorRectInTargetSurface):
1408         (WebCore::TestDamageClient::damageRect):
1409         (WebCore::layerAddedToOccludedRegion):
1410         (WebCore::layerAddedToOccludedRegionWithRotation):
1411         (WebCore::layerAddedToOccludedRegionWithTranslation):
1412         (WebCore::layerAddedToOccludedRegionWithRotatedSurface):
1413         (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack):
1414         (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface):
1415         (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers):
1416         (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces):
1417         (WebCore::surfaceOcclusionInScreenSpace):
1418         (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms):
1419         (WebCore::occlusionInteractionWithFilters):
1420         (WebCore::layerScissorRectOverTile):
1421         (WebCore::screenScissorRectOverTile):
1422         (WebCore::layerScissorRectOverCulledTile):
1423         (WebCore::screenScissorRectOverCulledTile):
1424         (WebCore::layerScissorRectOverPartialTiles):
1425         (WebCore::screenScissorRectOverPartialTiles):
1426         (WebCore::layerScissorRectOverNoTiles):
1427         (WebCore::screenScissorRectOverNoTiles):
1428         (WebCore::layerScissorRectForLayerOffOrigin):
1429         (WebCore::damageRectOverTile):
1430         (WebCore::damageRectOverCulledTile):
1431         (WebCore::damageRectOverPartialTiles):
1432         (WebCore::damageRectOverNoTiles):
1433         (WebCore::TEST):
1434
1435 2012-03-09  Robert Kroeger  <rjkroege@chromium.org>
1436
1437         Handle more Gesture* events by performing scrolls on the correct target ScrollableArea 
1438         https://bugs.webkit.org/show_bug.cgi?id=80311
1439
1440         Added a unit test for the changes to ScrollAnimatorNone to make sure that the two-call
1441         transport of fling parameters is correctly delivered.
1442
1443         Reviewed by James Robinson.
1444
1445         * tests/ScrollAnimatorNoneTest.cpp:
1446         (MockScrollAnimatorNone):
1447         (MockScrollAnimatorNone::reset):
1448         (MockScrollAnimatorNone::fireUpAnAnimation):
1449         (TEST):
1450
1451 2012-03-07  James Robinson  <jamesr@chromium.org>
1452
1453         [chromium] Deprecate renderDirectlyToWebView parameter of WebViewClient::createGraphicsContext3D()
1454         https://bugs.webkit.org/show_bug.cgi?id=80523
1455
1456         Reviewed by Darin Fisher.
1457
1458         * public/WebViewClient.h:
1459         (WebViewClient):
1460         (WebKit::WebViewClient::createGraphicsContext3D):
1461         * public/platform/WebKitPlatformSupport.h:
1462         (WebKit):
1463         * src/WebViewImpl.cpp:
1464         (WebKit::WebViewImpl::createCompositorGraphicsContext3D):
1465
1466 2012-03-09  Joshua Bell  <jsbell@chromium.org>
1467
1468         IndexedDB: Handle LevelDB database corruption
1469         https://bugs.webkit.org/show_bug.cgi?id=79413
1470
1471         Reviewed by Tony Chang.
1472
1473         * WebKit.gypi:
1474         * tests/LevelDBTest.cpp: Added.
1475         (WebCore):
1476         (SimpleComparator):
1477         (WebCore::SimpleComparator::compare):
1478         (WebCore::SimpleComparator::name):
1479         (WebCore::encodeString):
1480         (WebCore::TEST):
1481
1482 2012-03-09  Tim Dresser  <tdresser@chromium.org>
1483
1484         [chromium] Increase size of Combo Box Options for touch and high DPI devices
1485         https://bugs.webkit.org/show_bug.cgi?id=80027
1486
1487         Reviewed by Darin Fisher.
1488
1489         * src/WebViewImpl.cpp:
1490         (WebKit::WebViewImpl::gestureEvent):
1491         (WebKit::WebViewImpl::applyAutofillSuggestions):
1492
1493 2012-03-09  James Robinson  <jamesr@chromium.org>
1494
1495         [chromium] Roll chromium DEPS to r125600
1496         https://bugs.webkit.org/show_bug.cgi?id=80722
1497
1498         Unreviewed
1499
1500         * DEPS:
1501
1502 2012-03-09  Dana Jansens  <danakj@chromium.org>
1503
1504         [chromium] Clean up culling tests and templatize to test impl constructs
1505         https://bugs.webkit.org/show_bug.cgi?id=80613
1506
1507         Reviewed by Adrienne Walker.
1508
1509         * tests/CCOcclusionTrackerTest.cpp:
1510         (WebCore::TestContentLayerChromium::TestContentLayerChromium):
1511         (WebCore::TestContentLayerChromium::opaqueContentsRegion):
1512         (WebCore::TestContentLayerChromium::setOpaqueContentsRect):
1513         (TestContentLayerChromium):
1514         (TestContentLayerImpl):
1515         (WebCore::TestContentLayerImpl::TestContentLayerImpl):
1516         (WebCore::TestContentLayerImpl::opaqueContentsRegion):
1517         (WebCore::TestContentLayerImpl::setOpaqueContentsRect):
1518         (WebCore):
1519         (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase):
1520         (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace):
1521         (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface):
1522         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace):
1523         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface):
1524         (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface):
1525         (WebCore::TestDamageClient::damageRect):
1526         (CCOcclusionTrackerTestMainThreadTypes):
1527         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer):
1528         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer):
1529         (CCOcclusionTrackerTestImplThreadTypes):
1530         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer):
1531         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer):
1532         (CCOcclusionTrackerTest):
1533         (WebCore::CCOcclusionTrackerTest::TearDown):
1534         (WebCore::CCOcclusionTrackerTest::createRoot):
1535         (WebCore::CCOcclusionTrackerTest::createLayer):
1536         (WebCore::CCOcclusionTrackerTest::createSurface):
1537         (WebCore::CCOcclusionTrackerTest::createDrawingLayer):
1538         (WebCore::CCOcclusionTrackerTest::createDrawingSurface):
1539         (WebCore::CCOcclusionTrackerTest::calcDrawEtc):
1540         (WebCore::CCOcclusionTrackerTest::setBaseProperties):
1541         (WebCore::CCOcclusionTrackerTest::setProperties):
1542         (CCOcclusionTrackerTestIdentityTransforms):
1543         (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest):
1544         (CCOcclusionTrackerTestRotatedChild):
1545         (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest):
1546         (CCOcclusionTrackerTestTranslatedChild):
1547         (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest):
1548         (CCOcclusionTrackerTestChildInRotatedChild):
1549         (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
1550         (CCOcclusionTrackerTestVisitTargetTwoTimes):
1551         (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
1552         (CCOcclusionTrackerTestSurfaceRotatedOffAxis):
1553         (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
1554         (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren):
1555         (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
1556         (CCOcclusionTrackerTestOverlappingSurfaceSiblings):
1557         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
1558         (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms):
1559         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
1560         (CCOcclusionTrackerTestFilters):
1561         (WebCore::CCOcclusionTrackerTestFilters::runMyTest):
1562         (CCOcclusionTrackerTestLayerScissorRectOutsideChild):
1563         (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest):
1564         (CCOcclusionTrackerTestScreenScissorRectOutsideChild):
1565         (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest):
1566         (CCOcclusionTrackerTestDamageRectOutsideChild):
1567         (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest):
1568         (CCOcclusionTrackerTestLayerScissorRectOverChild):
1569         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest):
1570         (CCOcclusionTrackerTestScreenScissorRectOverChild):
1571         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest):
1572         (CCOcclusionTrackerTestDamageRectOverChild):
1573         (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest):
1574         (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild):
1575         (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest):
1576         (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild):
1577         (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest):
1578         (CCOcclusionTrackerTestDamageRectPartlyOverChild):
1579         (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest):
1580         (CCOcclusionTrackerTestLayerScissorRectOverNothing):
1581         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest):
1582         (CCOcclusionTrackerTestScreenScissorRectOverNothing):
1583         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest):
1584         (CCOcclusionTrackerTestDamageRectOverNothing):
1585         (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest):
1586         (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin):
1587         (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest):
1588         (CCOcclusionTrackerTestOpaqueContentsRegionEmpty):
1589         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest):
1590         (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty):
1591         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest):
1592
1593 2012-03-09  Emil A Eklund  <eae@chromium.org>
1594
1595         Add roundedPoint to HitTestResult and change platform code to use it
1596         https://bugs.webkit.org/show_bug.cgi?id=80715
1597
1598         Reviewed by James Robinson.
1599
1600         Change ports to use roundedPoint to avoid exposing subpixel types to
1601         platform code.
1602
1603         * src/ChromeClientImpl.cpp:
1604         (WebKit::ChromeClientImpl::mouseDidMoveOverElement):
1605         * src/ContextMenuClientImpl.cpp:
1606         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
1607
1608 2012-03-09  W. James MacLean  <wjmaclean@chromium.org>
1609
1610         [chromium] Implement scroll physics architecture for impl/main thread
1611         https://bugs.webkit.org/show_bug.cgi?id=79827
1612
1613         Reviewed by James Robinson.
1614
1615         * WebKit.gypi:
1616         * tests/PlatformGestureCurveTest.cpp: Added.
1617
1618 2012-03-09  Tien-Ren Chen  <trchen@chromium.org>
1619
1620         [chromium] ScrollbarLayerChromium/CCScrollbarLayerImpl for CC-side scrollbar painting
1621         https://bugs.webkit.org/show_bug.cgi?id=78872
1622
1623         Reviewed by James Robinson.
1624
1625         * WebKit.gypi:
1626         * tests/ScrollbarLayerChromiumTest.cpp: Added.
1627         (WebCore):
1628         (MockScrollbar):
1629         (WebCore::MockScrollbar::x):
1630         (WebCore::MockScrollbar::y):
1631         (WebCore::MockScrollbar::width):
1632         (WebCore::MockScrollbar::height):
1633         (WebCore::MockScrollbar::size):
1634         (WebCore::MockScrollbar::location):
1635         (WebCore::MockScrollbar::parent):
1636         (WebCore::MockScrollbar::root):
1637         (WebCore::MockScrollbar::setFrameRect):
1638         (WebCore::MockScrollbar::frameRect):
1639         (WebCore::MockScrollbar::invalidate):
1640         (WebCore::MockScrollbar::invalidateRect):
1641         (WebCore::MockScrollbar::scrollbarOverlayStyle):
1642         (WebCore::MockScrollbar::getTickmarks):
1643         (WebCore::MockScrollbar::isScrollableAreaActive):
1644         (WebCore::MockScrollbar::isScrollViewScrollbar):
1645         (WebCore::MockScrollbar::convertFromContainingWindow):
1646         (WebCore::MockScrollbar::isCustomScrollbar):
1647         (WebCore::MockScrollbar::orientation):
1648         (WebCore::MockScrollbar::value):
1649         (WebCore::MockScrollbar::currentPos):
1650         (WebCore::MockScrollbar::visibleSize):
1651         (WebCore::MockScrollbar::totalSize):
1652         (WebCore::MockScrollbar::maximum):
1653         (WebCore::MockScrollbar::controlSize):
1654         (WebCore::MockScrollbar::lineStep):
1655         (WebCore::MockScrollbar::pageStep):
1656         (WebCore::MockScrollbar::pressedPart):
1657         (WebCore::MockScrollbar::hoveredPart):
1658         (WebCore::MockScrollbar::styleChanged):
1659         (WebCore::MockScrollbar::enabled):
1660         (WebCore::MockScrollbar::setEnabled):
1661         (WebCore::MockScrollbar::MockScrollbar):
1662         (WebCore::MockScrollbar::~MockScrollbar):
1663         (WebCore::TEST):
1664
1665 2012-03-08  James Robinson  <jamesr@chromium.org>
1666
1667         [chromium] Expose the shared graphics context on WebView so callers can allocate resources on the main thread for the compositor to use
1668         https://bugs.webkit.org/show_bug.cgi?id=80670
1669
1670         Reviewed by Stephen White.
1671
1672         This exposes a context on WebView that is in the compositor's share group and can be used directly from the main
1673         thread. This is useful for content that needs to allocate resources for the compositor to use, but cannot
1674         directly use the compositor's context either because it cannot access the correct thread or because it needs to
1675         initialize in situations where we cannot initialize a compositor (view) context - for instance before the native
1676         window is created.
1677
1678         * public/WebView.h:
1679         (WebView):
1680         * src/WebViewImpl.cpp:
1681         (WebKit::WebViewImpl::sharedGraphicsContext3D):
1682         (WebKit):
1683         * src/WebViewImpl.h:
1684         (WebViewImpl):
1685
1686 2012-03-09  Dana Jansens  <danakj@chromium.org>
1687
1688         [chromium] Use opaque paints in CCOcclusionTracker
1689         https://bugs.webkit.org/show_bug.cgi?id=80173
1690
1691         Reviewed by Adrienne Walker.
1692
1693         * tests/CCOcclusionTrackerTest.cpp:
1694         (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion):
1695         (LayerChromiumWithForcedDrawsContent):
1696         (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect):
1697         (WebCore::setLayerPropertiesForTesting):
1698         (WebCore):
1699         (WebCore::layerAddedToOccludedRegion):
1700         (WebCore::layerAddedToOccludedRegionWithRotation):
1701         (WebCore::layerAddedToOccludedRegionWithTranslation):
1702         (WebCore::layerAddedToOccludedRegionWithRotatedSurface):
1703         (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack):
1704         (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface):
1705         (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers):
1706         (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces):
1707         (WebCore::surfaceOcclusionInScreenSpace):
1708         (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms):
1709         (WebCore::occlusionInteractionWithFilters):
1710         (WebCore::layerScissorRectOverTile):
1711         (WebCore::screenScissorRectOverTile):
1712         (WebCore::layerScissorRectOverCulledTile):
1713         (WebCore::screenScissorRectOverCulledTile):
1714         (WebCore::layerScissorRectOverPartialTiles):
1715         (WebCore::screenScissorRectOverPartialTiles):
1716         (WebCore::layerScissorRectOverNoTiles):
1717         (WebCore::screenScissorRectOverNoTiles):
1718         (WebCore::layerScissorRectForLayerOffOrigin):
1719         (WebCore::damageRectOverTile):
1720         (WebCore::damageRectOverCulledTile):
1721         (WebCore::damageRectOverPartialTiles):
1722         (WebCore::damageRectOverNoTiles):
1723         (WebCore::TEST):
1724         * tests/TiledLayerChromiumTest.cpp:
1725         (WTF::TEST):
1726         (WTF):
1727
1728 2012-03-09  Jon Lee  <jonlee@apple.com>
1729
1730         Add support for ENABLE(LEGACY_NOTIFICATIONS)
1731         https://bugs.webkit.org/show_bug.cgi?id=80497
1732
1733         Reviewed by Adam Barth.
1734
1735         Prep for b80472: Update API for Web Notifications
1736         * features.gypi:
1737
1738 2012-03-09  Ian Vollick  <vollick@chromium.org>
1739
1740         [chromium] Ensure we use the correct time when notifying animation started
1741         https://bugs.webkit.org/show_bug.cgi?id=79537
1742
1743         Reviewed by James Robinson
1744
1745         * src/WebCompositorInputHandlerImpl.cpp:
1746         (WebKit::WebCompositorInputHandlerImpl::willDraw):
1747         * src/WebCompositorInputHandlerImpl.h:
1748         (WebCompositorInputHandlerImpl):
1749         * tests/CCLayerTreeHostImplTest.cpp:
1750         (WebKit::CCLayerTreeHostImplTest::postAnimationEventsToMainThreadOnImplThread):
1751         (WebKit::TEST_F):
1752         * tests/CCLayerTreeHostTest.cpp:
1753         (WTF::TestHooks::animateLayers):
1754         (WTF::TestHooks::updateAnimations):
1755         (WTF::MockLayerTreeHostImpl::animateLayers):
1756         (WTF::MockLayerTreeHostClient::updateAnimations):
1757         (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation):
1758         (WTF::CCLayerTreeHostTestAddAnimation::animateLayers):
1759         (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationStarted):
1760         (CCLayerTreeHostTestAddAnimation):
1761
1762 2012-03-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1763
1764         Unreviewed, rolling out r110191, r110202, and r110279.
1765         http://trac.webkit.org/changeset/110191
1766         http://trac.webkit.org/changeset/110202
1767         http://trac.webkit.org/changeset/110279
1768         https://bugs.webkit.org/show_bug.cgi?id=80694
1769
1770         They broke !ENABLE(INSPECTOR) builds (Requested by Ossy on
1771         #webkit).
1772
1773         * features.gypi:
1774
1775 2012-03-09  Alexander Pavlov  <apavlov@chromium.org>
1776
1777         [chromium] Unreviewed, build fix after r110191
1778
1779         * features.gypi:
1780
1781 2012-03-08  Ian Vollick  <vollick@chromium.org>
1782
1783         [chromium] Ensure that the cc thread animation framework continues to tick when the tab is backgrounded
1784         https://bugs.webkit.org/show_bug.cgi?id=77668
1785
1786         Reviewed by James Robinson.
1787
1788         * tests/CCLayerTreeHostTest.cpp:
1789         (WTF::CCLayerTreeHostTest::postAddInstantAnimationToMainThread):
1790         (CCLayerTreeHostTest):
1791         (WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation):
1792         (WTF::CCLayerTreeHostTest::dispatchAddAnimation):
1793         (WTF::CCLayerTreeHostTestAddAnimation::beginTest):
1794         (WTF):
1795         (CCLayerTreeHostTestTickAnimationWhileBackgrounded):
1796         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::CCLayerTreeHostTestTickAnimationWhileBackgrounded):
1797         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::beginTest):
1798         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::animateLayers):
1799         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::afterTest):
1800         (WTF::TEST_F):
1801
1802 2012-03-08  Jeff Timanus  <twiz@chromium.org>
1803
1804         [chromium] Force the Canvas2D GPU texture cache to 0 bytes for backgrounded tabs.
1805         https://bugs.webkit.org/show_bug.cgi?id=79948
1806
1807         Reviewed by Stephen White.
1808
1809         * src/GraphicsContext3DChromium.cpp:
1810         (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
1811         (WebCore::GraphicsContext3DPrivate::grContext):
1812         (WebCore::GraphicsContext3DPrivate::setVisibilityCHROMIUM):
1813
1814 2012-03-08  Dana Jansens  <danakj@chromium.org>
1815
1816         [chromium] Replace completelyContains with Region::contains()
1817         https://bugs.webkit.org/show_bug.cgi?id=80617
1818
1819         Reviewed by James Robinson.
1820
1821         * tests/CCLayerTestCommon.cpp:
1822         (CCLayerTestCommon):
1823         (CCLayerTestCommon::verifyQuadsExactlyCoverRect):
1824         * tests/CCLayerTestCommon.h:
1825         (CCLayerTestCommon):
1826
1827 2012-03-08  James Robinson  <jamesr@chromium.org>
1828
1829         Use an explicit attribute to signal that a context prefers to use a discrete GPU
1830         https://bugs.webkit.org/show_bug.cgi?id=80639
1831
1832         Reviewed by Stephen White.
1833
1834         * src/GraphicsContext3DChromium.cpp:
1835         (WebCore::GraphicsContext3DPrivate::getContextAttributes):
1836         (WebCore::GraphicsContext3D::create):
1837         * src/WebViewImpl.cpp:
1838         (WebKit::WebViewImpl::createCompositorGraphicsContext3D):
1839
1840 2012-03-08  Scott Byer  <scottbyer@chromium.org>
1841
1842         Have ScrollAnimatorNone use requestAnimationFrame
1843         https://bugs.webkit.org/show_bug.cgi?id=78938
1844
1845         Reviewed by James Robinson.
1846
1847         * src/ScrollbarGroup.h:
1848         (WebCore):
1849         (WebKit::ScrollbarGroup::hostWindow):
1850         (ScrollbarGroup):
1851         * tests/ScrollAnimatorNoneTest.cpp:
1852         (MockScrollableArea::hostWindow):
1853
1854 2012-03-08  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1855
1856         Make elements with attributes smaller by eliminating the m_element back pointer in NamedNodeMap
1857         https://bugs.webkit.org/show_bug.cgi?id=75069
1858
1859         Reviewed by Ryosuke Niwa.
1860
1861         * src/WebElement.cpp: Include NamedNodeMap.h since Element.h doesn't include it anymore.
1862
1863 2012-03-07  Kent Tamura  <tkent@chromium.org>
1864
1865         Remove meaningless code in RenderTextControlSingleLine::preferredContentWidth()
1866         https://bugs.webkit.org/show_bug.cgi?id=80493
1867
1868         Reviewed by Hajime Morita.
1869
1870         * src/WebInputElement.cpp:
1871         RenderTextControlSingleLine::speechButtonElement() is removed. The
1872         following functions get it from HTMLInputElement.
1873         (WebKit::WebInputElement::getSpeechInputState):
1874         (WebKit::WebInputElement::startSpeechInput):
1875         (WebKit::WebInputElement::stopSpeechInput):
1876
1877 2012-03-07  Adam Barth  <abarth@webkit.org>
1878
1879         Remove #define private public from WebCache.cpp
1880         https://bugs.webkit.org/show_bug.cgi?id=80520
1881
1882         Reviewed by Eric Seidel.
1883
1884         This patch removes a hack we added long ago when Chromium used a forked
1885         copy of WebKit and editing WebCore caused merge pain.  Now that we're
1886         on trunk, we can unwind this hack.
1887
1888         * src/WebCache.cpp:
1889         (WebKit::WebCache::getUsageStats):
1890
1891 2012-03-07  Joshua Bell  <jsbell@chromium.org>
1892
1893         [Chromium] IndexedDB: V8LocalContext creation in IDBKey extraction/injection is slow
1894         https://bugs.webkit.org/show_bug.cgi?id=80358
1895
1896         Reviewed by Tony Chang.
1897
1898         * tests/IDBBindingUtilitiesTest.cpp:
1899         (WebCore::TEST):
1900
1901 2012-03-07  Scott Byer  <scottbyer@chromium.org>
1902
1903         Get ScrollAnimatorNone to handle the stop and reverse cases.
1904         https://bugs.webkit.org/show_bug.cgi?id=80455
1905
1906         Reviewed by James Robinson.
1907
1908         * tests/ScrollAnimatorNoneTest.cpp:
1909         (ScrollAnimatorNoneTest::updateDataFromParameters):
1910         (TEST_F):
1911
1912 2012-03-07  Dana Jansens  <danakj@chromium.org>
1913
1914         [chromium] Cull occluded tiles during paint
1915         https://bugs.webkit.org/show_bug.cgi?id=76838
1916
1917         Reviewed by Adrienne Walker.
1918
1919         * tests/CCLayerTreeHostTest.cpp:
1920         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
1921         * tests/TiledLayerChromiumTest.cpp:
1922         (WTF::FakeLayerTextureUpdater::Texture::prepareRect):
1923         (WTF::FakeLayerTextureUpdater::FakeLayerTextureUpdater):
1924         (FakeLayerTextureUpdater):
1925         (WTF::FakeLayerTextureUpdater::prepareRectCount):
1926         (WTF::FakeLayerTextureUpdater::clearPrepareRectCount):
1927         (WTF::FakeLayerTextureUpdater::prepareRect):
1928         (WTF::FakeTiledLayerChromium::prepareToUpdate):
1929         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
1930         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
1931         (WTF::TEST):
1932         (WTF):
1933
1934 2012-03-07  Elliot Poger  <epoger@google.com>
1935
1936         [Chromium] Remove use_skia option from GYP
1937         https://bugs.webkit.org/show_bug.cgi?id=75811
1938
1939         Reviewed by Tony Chang.
1940
1941         * WebKit.gyp:
1942         * WebKit.gypi:
1943         * features.gypi:
1944
1945 2012-03-06  Dana Jansens  <danakj@chromium.org>
1946
1947         [chromium] Add clipping to scissor rect to CCOcclusionTracker
1948         https://bugs.webkit.org/show_bug.cgi?id=79927
1949
1950         Reviewed by Adrienne Walker.
1951
1952         * tests/CCOcclusionTrackerTest.cpp:
1953         (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker):
1954         (TestCCOcclusionTracker):
1955         (WebCore::TestCCOcclusionTracker::setLayerScissorRect):
1956         (WebCore::TestCCOcclusionTracker::useDefaultLayerScissorRect):
1957         (WebCore::TestCCOcclusionTracker::layerScissorRect):
1958         (WebCore):
1959         (TestDamageClient):
1960         (WebCore::TestDamageClient::damageRect):
1961         (WebCore::TestDamageClient::TestDamageClient):
1962         (WebCore::TestDamageClient::setDamageRect):
1963         (WebCore::TEST):
1964
1965 2012-03-06  Kenichi Ishibashi  <bashi@chromium.org>
1966
1967         [WebSocket] Introduce ThreadableWebSocketChannel::SendResult
1968         https://bugs.webkit.org/show_bug.cgi?id=80356
1969
1970         Reviewed by Kent Tamura.
1971
1972         * src/WebSocketImpl.cpp:
1973         (WebKit::WebSocketImpl::sendText): Checks whether the return value of send() is ThreadableWebSocketChannel::SendSuccess.
1974         (WebKit::WebSocketImpl::sendArrayBuffer): Ditto.
1975
1976 2012-03-06  Nat Duca  <nduca@chromium.org>
1977
1978         [chromium] CCThreadProxy context lost support
1979         https://bugs.webkit.org/show_bug.cgi?id=80100
1980
1981         Reviewed by James Robinson.
1982
1983         * tests/CCSchedulerStateMachineTest.cpp:
1984         * tests/CCSchedulerTest.cpp:
1985         (WebKitTests::FakeCCSchedulerClient::scheduledActionBeginContextRecreation):
1986         (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionBeginContextRecreation):
1987         (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionBeginContextRecreation):
1988
1989 2012-03-06  James Robinson  <jamesr@chromium.org>
1990
1991         [chromium] Null-check m_layerRenderer in CCLayerTreeHostImpl::finishAllRendering()
1992         https://bugs.webkit.org/show_bug.cgi?id=80445
1993
1994         Reviewed by Adrienne Walker.
1995
1996         * tests/CCLayerTreeHostImplTest.cpp:
1997         (FakeWebGraphicsContext3DMakeCurrentFails):
1998         (WebKit::FakeWebGraphicsContext3DMakeCurrentFails::makeContextCurrent):
1999         (WebKit):
2000         (WebKit::TEST_F):
2001
2002 2012-03-06  David Grogan  <dgrogan@chromium.org>
2003
2004         [Chromium] Add OVERRIDEs to WebWorkerClientImpl.h
2005         https://bugs.webkit.org/show_bug.cgi?id=80434
2006
2007         Reviewed by Tony Chang.
2008
2009         Tests: just that it compiles.
2010
2011         * src/WebWorkerClientImpl.h:
2012         (WebWorkerClientImpl):
2013
2014 2012-03-06  David Grogan  <dgrogan@chromium.org>
2015
2016         IndexedDB: Check WebCommonWorkerClient::allowIndexedDB before proceeding from a shared worker
2017         https://bugs.webkit.org/show_bug.cgi?id=79954
2018
2019         Tests: The 'allow' case will be tested once the patch at
2020         http://webkit.org/b/80189 and
2021         https://chromiumcodereview.appspot.com/9585031/ both land. Bug for
2022         testing the 'deny' case is http://crbug.com/113738.
2023
2024         Reviewed by Tony Chang.
2025
2026         * public/WebCommonWorkerClient.h:
2027         (WebKit::WebCommonWorkerClient::allowDatabase):
2028         (WebKit::WebCommonWorkerClient::allowFileSystem):
2029         (WebKit::WebCommonWorkerClient::openFileSystem):
2030         (WebCommonWorkerClient):
2031         (WebKit::WebCommonWorkerClient::allowIndexedDB):
2032         * public/WebSharedWorkerClient.h:
2033         (WebSharedWorkerClient):
2034         * src/IDBFactoryBackendProxy.cpp:
2035         (WebKit::AllowIndexedDBMainThreadBridge::create):
2036         (WebKit::AllowIndexedDBMainThreadBridge::cancel):
2037         (WebKit::AllowIndexedDBMainThreadBridge::signalCompleted):
2038         (WebKit::AllowIndexedDBMainThreadBridge::AllowIndexedDBMainThreadBridge):
2039         (WebKit::AllowIndexedDBMainThreadBridge::allowIndexedDBTask):
2040         (AllowIndexedDBMainThreadBridge):
2041         (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread):
2042         * src/WebWorkerClientImpl.cpp:
2043         (WebKit):
2044         (WebKit::WebWorkerClientImpl::allowIndexedDB):
2045         * src/WebWorkerClientImpl.h:
2046         (WebWorkerClientImpl):
2047
2048 2012-03-06  Stephen White  <senorblanco@chromium.org>
2049
2050         Unreviewed, rolling out r109825.
2051         http://trac.webkit.org/changeset/109825
2052         https://bugs.webkit.org/show_bug.cgi?id=79413
2053
2054         Broke webkit_unit_tests on Chromium Win
2055
2056         * WebKit.gypi:
2057         * tests/LevelDBTest.cpp: Removed.
2058
2059 2012-03-06  Takashi Toyoshima  <toyoshim@chromium.org>
2060
2061         [Chromium] [WebSocket] Add WebSocket extensions query WebKit API
2062         https://bugs.webkit.org/show_bug.cgi?id=80190
2063
2064         Reviewed by Darin Fisher.
2065
2066         * public/WebSocket.h: Add extensions() declaration.
2067         (WebSocket):
2068         * src/WebSocketImpl.cpp: Implement extensions() bridge.
2069         (WebKit::WebSocketImpl::extensions):
2070         (WebKit):
2071         * src/WebSocketImpl.h: Add extensions() declaration.
2072         (WebSocketImpl):
2073
2074 2012-03-05  Kent Tamura  <tkent@chromium.org>
2075
2076         Do not reformat strings in <input type=number> on platforms using LocalizedNumberICU.
2077         https://bugs.webkit.org/show_bug.cgi?id=78326
2078
2079         Reviewed by Hajime Morita.
2080
2081         Add a test for WebCore/platform/text/LocalizedNumberICU.
2082
2083         * WebKit.gypi: Added LocalizedNumberICUTest.cpp
2084         * tests/LocalizedNumberICUTest.cpp: Added.
2085
2086 2012-03-05  Kenneth Russell  <kbr@google.com>
2087
2088         [chromium] Notify CCLayerImpl tree of context loss and restoration
2089         https://bugs.webkit.org/show_bug.cgi?id=80339
2090
2091         Reviewed by James Robinson.
2092
2093         Unit test for notification of context loss and restoration.
2094
2095         * tests/CCLayerTreeHostImplTest.cpp:
2096         (WebKit):
2097         (ContextLostNotificationCheckLayer):
2098         (WebKit::ContextLostNotificationCheckLayer::create):
2099         (WebKit::ContextLostNotificationCheckLayer::didLoseAndRecreateGraphicsContext):
2100         (WebKit::ContextLostNotificationCheckLayer::didLoseAndRecreateGraphicsContextCalled):
2101         (WebKit::ContextLostNotificationCheckLayer::ContextLostNotificationCheckLayer):
2102         (WebKit::TEST_F):
2103
2104 2012-03-05  Changhun Kang  <temoochin@company100.net>
2105
2106         Change the argument orders to match OpenGL's in GraphicsContext3D functions
2107         https://bugs.webkit.org/show_bug.cgi?id=80120
2108
2109         Reviewed by Kenneth Russell.
2110
2111         No new tests because this patch just change the order of arguments.
2112
2113         * src/GraphicsContext3DChromium.cpp:
2114         (WebCore::GraphicsContext3DPrivate::uniform1fv):
2115         (WebCore::GraphicsContext3DPrivate::uniform1iv):
2116         (WebCore::GraphicsContext3DPrivate::uniform2fv):
2117         (WebCore::GraphicsContext3DPrivate::uniform2iv):
2118         (WebCore::GraphicsContext3DPrivate::uniform3fv):
2119         (WebCore::GraphicsContext3DPrivate::uniform3iv):
2120         (WebCore::GraphicsContext3DPrivate::uniform4fv):
2121         (WebCore::GraphicsContext3DPrivate::uniform4iv):
2122         (WebCore::GraphicsContext3DPrivate::uniformMatrix2fv):
2123         (WebCore::GraphicsContext3DPrivate::uniformMatrix3fv):
2124         (WebCore::GraphicsContext3DPrivate::uniformMatrix4fv):
2125         (WebCore):
2126         * src/GraphicsContext3DPrivate.h:
2127         (GraphicsContext3DPrivate):
2128
2129 2012-03-05  Yoshifumi Inoue  <yosin@chromium.org>
2130
2131         [Chromium] WebOptionElement should inherit WebElement instead of WebFormControlElement
2132         https://bugs.webkit.org/show_bug.cgi?id=80089
2133
2134         Change class hierarchy of WebOptionElement to match with specification.
2135
2136         Reviewed by Darin Fisher.
2137
2138         * public/WebOptionElement.h: Replace to WebElement from WebFormControlElement 
2139         (WebKit::WebOptionElement::WebOptionElement):
2140         (WebKit::WebOptionElement::operator=):
2141         (WebKit::WebOptionElement::assign):
2142         * src/WebOptionElement.cpp:
2143         (WebKit::WebOptionElement::WebOptionElement):
2144
2145 2012-03-05  Joshua Bell  <jsbell@chromium.org>
2146
2147         IndexedDB: Handle LevelDB database corruption
2148         https://bugs.webkit.org/show_bug.cgi?id=79413
2149
2150         Reviewed by Tony Chang.
2151
2152         * WebKit.gypi:
2153         * tests/LevelDBTest.cpp: Added.
2154         (WebCore):
2155         (SimpleComparator):
2156         (WebCore::SimpleComparator::compare):
2157         (WebCore::SimpleComparator::name):
2158         (WebCore::encodeString):
2159         (WebCore::TEST):
2160
2161 2012-03-05  Min Qin  <qinmin@google.com>
2162
2163         Enable context menu on android
2164
2165         For android, long press is converted into a right mouse down event
2166         So we will use that to invoke the context menu
2167         https://bugs.webkit.org/show_bug.cgi?id=80332
2168
2169         Reviewed by Adam Barth.
2170
2171         * src/WebViewImpl.cpp:
2172         (WebKit::WebViewImpl::mouseDown):
2173
2174 2012-03-05  Kent Tamura  <tkent@chromium.org>
2175
2176         [Chromium] Add new popup type: PagePopup
2177         https://bugs.webkit.org/show_bug.cgi?id=80106
2178
2179         Reviewed by Darin Fisher.
2180
2181         This is a preparation of implementing ChromeClient::openPagePopup and
2182         closePagePopup.
2183
2184         * WebKit.gyp: Add WebPagePopup.h and WebPagePopupImpl.cpp.
2185         * public/WebPagePopup.h:
2186         (WebPagePopup): Add WebPagePopup interface.
2187         * public/WebPopupType.h: Add WebPopupTypePage.
2188         * src/WebPagePopupImpl.cpp:
2189         (WebKit::WebPagePopup::create): Temprary implementation which just returns 0.
2190
2191 2012-03-05  Charlie Reis  <creis@chromium.org>
2192
2193         [chromium] Pass WebNavigationPolicy to WebViewClient::createView
2194         https://bugs.webkit.org/show_bug.cgi?id=80057
2195
2196         Reviewed by Darin Fisher.
2197
2198         * public/WebViewClient.h:
2199         (WebViewClient):
2200         (WebKit::WebViewClient::createView):
2201         * src/ChromeClientImpl.cpp:
2202         (WebKit::ChromeClientImpl::ChromeClientImpl):
2203         (WebKit::ChromeClientImpl::createWindow):
2204         (WebKit::ChromeClientImpl::getNavigationPolicy):
2205         (WebKit):
2206         (WebKit::ChromeClientImpl::show):
2207         (WebKit::ChromeClientImpl::setNewWindowNavigationPolicy):
2208         * src/ChromeClientImpl.h:
2209         (ChromeClientImpl):
2210         * src/FrameLoaderClientImpl.cpp:
2211         (WebKit::FrameLoaderClientImpl::dispatchCreatePage):
2212         (WebKit::FrameLoaderClientImpl::dispatchDecidePolicyForNewWindowAction):
2213
2214 2012-03-05  James Robinson  <jamesr@chromium.org>
2215
2216         [chromium] Initialize CCOverdrawCounts struct to zero
2217         https://bugs.webkit.org/show_bug.cgi?id=80204
2218
2219         Reviewed by Adrienne Walker.
2220
2221         Update test to use c'tor instead of {} struct initialization.
2222
2223         * tests/CCQuadCullerTest.cpp:
2224         (WebCore):
2225
2226 2012-03-05  Takashi Toyoshima  <toyoshim@chromium.org>
2227
2228         [Chromium] [WebSocket] use OVERRIDE in WebSocketImpl.h
2229         https://bugs.webkit.org/show_bug.cgi?id=80192
2230
2231         Reviewed by Kent Tamura.
2232
2233         * src/WebSocketImpl.h: use OVERRIDE macro.
2234         (WebSocketImpl):
2235
2236 2012-03-05  Adam Barth  <abarth@webkit.org>
2237
2238         Geolocation should use a ScriptExecutionContext as its context object
2239         https://bugs.webkit.org/show_bug.cgi?id=80248
2240
2241         Reviewed by Kentaro Hara.
2242
2243         Rather than indirecting through the Frame to get the SecurityOrigin, we
2244         should get the SecurityOrigin directly from ScriptExecutionContext.
2245
2246         * src/WebGeolocationPermissionRequest.cpp:
2247         (WebKit::WebGeolocationPermissionRequest::securityOrigin):
2248
2249 2012-03-02  Andrey Kosyakov  <caseq@chromium.org>
2250
2251         Add instrumentation for frame start/end on timeline.
2252
2253         Web Inspector: add timeline instrumentation for frame events
2254         https://bugs.webkit.org/show_bug.cgi?id=80127
2255
2256         Reviewed by Pavel Feldman.
2257
2258         - expose an instrumentation method from WebWidget to mark frame update start
2259
2260         * public/WebWidget.h:
2261         (WebWidget):
2262         (WebKit::WebWidget::instrumentBeginFrame):
2263         * src/WebViewImpl.cpp:
2264         (WebKit::WebViewImpl::instrumentBeginFrame):
2265         (WebKit):
2266         * src/WebViewImpl.h:
2267         (WebViewImpl):
2268
2269 2012-03-03  Benjamin Poulain  <benjamin@webkit.org>
2270
2271         Remove the redundant method KURL::protocolInHTTPFamily()
2272         https://bugs.webkit.org/show_bug.cgi?id=80216
2273
2274         Reviewed by Anders Carlsson.
2275
2276         * src/FrameLoaderClientImpl.cpp:
2277         (WebKit::FrameLoaderClientImpl::dispatchWillPerformClientRedirect):
2278         * src/WebPageSerializer.cpp:
2279         (WebCore::retrieveResourcesForElement):
2280
2281 2012-03-03  Hans Wennborg  <hans@chromium.org>
2282
2283         Implement Speech JavaScript API
2284         https://bugs.webkit.org/show_bug.cgi?id=80019
2285
2286         Reviewed by Adam Barth.
2287
2288         Add ENABLE_SCRIPTED_SPEECH and runtime flag.
2289
2290         * features.gypi:
2291         * public/WebRuntimeFeatures.h:
2292         (WebRuntimeFeatures):
2293         * src/WebRuntimeFeatures.cpp:
2294         (WebKit::WebRuntimeFeatures::enableScriptedSpeech):
2295         (WebKit):
2296         (WebKit::WebRuntimeFeatures::isScriptedSpeechEnabled):
2297
2298 2012-03-03  Bill Budge  <bbudge@chromium.org>
2299
2300         Fixes AssociatedURLLoader support for Access-Control-Expose-Headers field in response.
2301         https://bugs.webkit.org/show_bug.cgi?id=80198
2302
2303         Reviewed by Adam Barth.
2304
2305         * src/AssociatedURLLoader.cpp:
2306         * tests/AssociatedURLLoaderTest.cpp:
2307
2308 2012-03-02  Dana Jansens  <danakj@chromium.org>
2309
2310         [Chromium] Allow plugins to set opaque() on their platform layer
2311         https://bugs.webkit.org/show_bug.cgi?id=80171
2312
2313         Reviewed by James Robinson.
2314
2315         * public/WebPluginContainer.h:
2316         (WebPluginContainer):
2317         * src/WebPluginContainerImpl.cpp:
2318         (WebKit::WebPluginContainerImpl::setOpaque):
2319         (WebKit):
2320         * src/WebPluginContainerImpl.h:
2321         (WebPluginContainerImpl):
2322
2323 2012-03-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2324
2325         Make parser code not depend on NamedNodeMap
2326         https://bugs.webkit.org/show_bug.cgi?id=79963
2327
2328         Reviewed by Adam Barth.
2329
2330         * src/WebNamedNodeMap.cpp:
2331         (WebKit::WebNamedNodeMap::attributeItem):
2332
2333 2012-03-01  Dana Jansens  <danakj@chromium.org>
2334
2335         [chromium] Make opaque paint tracker aware of SkCanvas layers
2336         https://bugs.webkit.org/show_bug.cgi?id=79145
2337
2338         Reviewed by Stephen White.
2339
2340         * tests/PlatformContextSkiaTest.cpp:
2341         (WebCore::TEST):
2342         (WebCore):
2343
2344 2012-03-01  Hironori Bono  <hbono@chromium.org>
2345
2346         Render overflow controls of an RTL element to its left-side.
2347         https://bugs.webkit.org/show_bug.cgi?id=54623
2348
2349         This change adds a new flag WTF_USE_RTL_SCROLLBAR and render the
2350         vertical scrollbars and resizers of RTL elements to their left side if
2351         this new flag is enabled.
2352
2353         Reviewed by Ryosuke Niwa.
2354
2355         * features.gypi: Set WTF_USE_RTL_SCROLLBAR to 1 on Chromium.
2356
2357 2012-03-01  James Robinson  <jamesr@chromium.org>
2358
2359         [chromium] Rename LayerChromium::name to debugName to be more consistent with other debug properties, make threadsafe
2360         https://bugs.webkit.org/show_bug.cgi?id=79723
2361
2362         Reviewed by Adrienne Walker.
2363
2364         * tests/LayerChromiumTest.cpp:
2365
2366 2012-03-01  Dale Curtis  <dalecurtis@chromium.org>
2367
2368         Remove deprecated FFmpeg build directories.
2369         https://bugs.webkit.org/show_bug.cgi?id=79282
2370
2371         We've switched the layout of the FFmpeg repo in Chrome and these paths
2372         are no longer needed or valid.
2373
2374         Reviewed by Dirk Pranke.
2375
2376         * DEPS:
2377
2378 2012-03-01  Dirk Pranke  <dpranke@chromium.org>
2379
2380         Roll chromium DEPS to 124511
2381
2382         Unreviewed, DEPS change.
2383
2384         * DEPS:
2385
2386 2012-02-29  Nat Duca  <nduca@chromium.org>
2387
2388         [chromium] Move context lost control code from CCSingleThreadProxy to CCLayerTreeHost
2389         https://bugs.webkit.org/show_bug.cgi?id=79964
2390
2391         Reviewed by James Robinson.
2392
2393         * src/WebLayerTreeView.cpp:
2394         (WebKit::WebLayerTreeView::loseCompositorContext):
2395         * src/WebLayerTreeViewImpl.cpp:
2396         (WebKit::WebLayerTreeViewImpl::createContext):
2397         (WebKit::WebLayerTreeViewImpl::didRecreateContext):
2398         * src/WebLayerTreeViewImpl.h:
2399         (WebLayerTreeViewImpl):
2400         * tests/CCLayerTreeHostTest.cpp:
2401         (WTF::MockLayerTreeHostClient::createContext):
2402         (WTF::MockLayerTreeHostClient::didRecreateContext):
2403         * tests/FakeCCLayerTreeHostClient.h:
2404         (WebCore::FakeCCLayerTreeHostClient::createContext):
2405         (WebCore::FakeCCLayerTreeHostClient::didRecreateContext):
2406
2407 2012-03-01  Kentaro Hara  <haraken@chromium.org>
2408
2409         REGRESSION(r109288): WebViewImpl::enableAutoResizeMode loops infinitely
2410         https://bugs.webkit.org/show_bug.cgi?id=77452
2411
2412         Reviewed by Hajime Morita.
2413
2414         WebViewImpl::enableAutoResizeMode loops infinitely.
2415         This patch fixes the following line:
2416
2417             enableAutoResizeMode(enable, minSize, maxSize);
2418
2419         to
2420             enableAutoResizeMode(minSize, maxSize);
2421
2422         to avoid the infinite loop. I guess this is the change originally intended.
2423
2424         Test: webkit_unit_tests.WebViewTest.AutoResizeMinimumSize
2425
2426         * src/WebViewImpl.cpp:
2427         (WebKit::WebViewImpl::enableAutoResizeMode):
2428
2429 2012-02-29  Kinuko Yasuda  <kinuko@chromium.org>
2430
2431         Use the new createSnapshotFileAndReadMetadata API for FileEntry.file()
2432         https://bugs.webkit.org/show_bug.cgi?id=79928
2433
2434         Reviewed by David Levin.
2435
2436         In the new flow we first create an internal Blob URL for the
2437         snapshot file and call the new createSnapshotFileAndReadMetadata()
2438         WebKit API with the Blob URL.
2439
2440         The implementor of createSnapshotFileAndReadMetadata() (i.e. chromium)
2441         registers the created snapshot file with the given internal Blob URL.
2442
2443         In the callback chain we call File::createWithName() to create a
2444         new File using the returned platform path, and then call
2445         unregisterBlobURL() to clean up the internal Blob URL.
2446
2447         * src/AsyncFileSystemChromium.cpp:
2448         (WebCore::AsyncFileSystemChromium::createSnapshotFileAndReadMetadata): Added.
2449         (WebCore::AsyncFileSystemChromium::createSnapshotFileCallback): Added.
2450         * src/AsyncFileSystemChromium.h:
2451         * src/WorkerAsyncFileSystemChromium.cpp:
2452         (WebCore::WorkerAsyncFileSystemChromium::createSnapshotFileAndReadMetadata): Added.
2453         * src/WorkerAsyncFileSystemChromium.h:
2454         * src/WorkerFileSystemCallbacksBridge.cpp:
2455         (WebKit::WorkerFileSystemCallbacksBridge::postCreateSnapshotFileToMainThread): Added.
2456         (WebKit::WorkerFileSystemCallbacksBridge::createSnapshotFileOnMainThread): Added.
2457         * src/WorkerFileSystemCallbacksBridge.h:
2458         (WorkerFileSystemCallbacksBridge):
2459
2460 2012-02-29  Kinuko Yasuda  <kinuko@chromium.org>
2461
2462         Unreviewed.  Rolled DEPS.
2463
2464         * DEPS:
2465
2466 2012-02-29  W. James MacLean  <wjmaclean@chromium.org>
2467
2468         [chromium] Estimate pixel count for frame rate control
2469         https://bugs.webkit.org/show_bug.cgi?id=74982
2470
2471         Reviewed by James Robinson.
2472
2473         Adds mechanism to compute and collect statistics on pixel overdraw for selected frames.
2474
2475         * tests/CCQuadCullerTest.cpp:
2476         (WebCore):
2477         (WebCore::TEST):
2478
2479 2012-02-29  James Simonsen  <simonjam@chromium.org>
2480
2481         [chromium] Fix navigation start time on cross-renderer navigation
2482         https://bugs.webkit.org/show_bug.cgi?id=75922
2483
2484         Reviewed by Darin Fisher.
2485
2486         * public/WebDataSource.h:
2487         * src/WebDataSource.cpp:
2488         (WebKit::WebDataSource::setNavigationStartTime): Added.
2489         * src/WebDataSource.h:
2490
2491 2012-02-29  Ian Vollick  <vollick@chromium.org>
2492
2493         [chromium] Add impl-thread support for animation-timing-function
2494         https://bugs.webkit.org/show_bug.cgi?id=79819
2495
2496         Reviewed by James Robinson.
2497
2498         * tests/CCKeyframedAnimationCurveTest.cpp:
2499         (WebCore::TEST):
2500         (WebCore):
2501
2502 2012-02-29  David Levin  <levin@chromium.org>
2503
2504         [chromium] Add the ability to turn off autoresize.
2505         https://bugs.webkit.org/show_bug.cgi?id=77452
2506
2507         Reviewed by Darin Fisher.
2508
2509         * public/WebView.h:
2510         (WebKit::WebViewImpl::enableAutoResizeMode): Cleaned up the api.
2511         (WebKit::WebViewImpl::disableAutoResizeMode): Added the ability to disable auto-resize.
2512         (WebKit::WebViewImpl::enableAutoResizeMode): Deprecated it.
2513         * src/WebViewImpl.cpp:
2514         (WebKit::WebViewImpl::enableAutoResizeMode): Adjust for new api.
2515         (WebKit::WebViewImpl::disableAutoResizeMode): Allow turning off autoresize.
2516         (WebKit::WebViewImpl::enableAutoResizeMode): Call the other two apis, but
2517         this api will be deleted shortly.
2518         (WebKit::WebViewImpl::configureAutoResizeMode): Common code.
2519         * src/WebViewImpl.h:
2520         (WebViewImpl): Adjust to new public api.
2521
2522 2012-02-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2523
2524         Unreviewed.  Rolled DEPS.
2525
2526         * DEPS:
2527
2528 2012-02-29  Dana Jansens  <danakj@chromium.org>
2529
2530         [chromium] Don't let invalidation for next frame prevent tile upload
2531         https://bugs.webkit.org/show_bug.cgi?id=79841
2532
2533         Reviewed by James Robinson.
2534
2535         * tests/TiledLayerChromiumTest.cpp:
2536         (WTF::TEST):
2537
2538 2012-02-28  Sheriff Bot  <webkit.review.bot@gmail.com>
2539
2540         Unreviewed, rolling out r107917 and r109188.
2541         http://trac.webkit.org/changeset/107917
2542         http://trac.webkit.org/changeset/109188
2543         https://bugs.webkit.org/show_bug.cgi?id=79865
2544
2545         Fix the chromium build. (Requested by dcheng on #webkit).
2546
2547         * src/WebDragData.cpp:
2548         (WebKit::WebDragData::items):
2549
2550 2012-02-28  Ryosuke Niwa  <rniwa@webkit.org>
2551
2552         Chromium build fix attempt.
2553
2554         * src/WebDragData.cpp:
2555
2556 2012-02-28  Jonathan Backer  <backer@chromium.org>
2557
2558         [chromium] Reset damage tracker on visibility change.
2559         https://bugs.webkit.org/show_bug.cgi?id=79267
2560
2561         Reviewed by James Robinson.
2562
2563         * tests/CCLayerTreeHostImplTest.cpp:
2564         (WebKit::PartialSwapTrackerContext::getString):
2565         (WebKit):
2566         (WebKit::TEST_F):
2567
2568 2012-02-28  Tim Dresser  <tdresser@chromium.org>
2569
2570         Provide DefaultDeviceScaleFactor though WebSettings
2571         https://bugs.webkit.org/show_bug.cgi?id=79534
2572
2573         Reviewed by Darin Fisher.
2574
2575         * public/WebSettings.h:
2576         * src/WebSettingsImpl.cpp:
2577         (WebKit::WebSettingsImpl::setDefaultDeviceScaleFactor):
2578         (WebKit):
2579         * src/WebSettingsImpl.h:
2580         (WebSettingsImpl):
2581
2582 2012-02-28  Gary Kacmarcik  <garykac@chromium.org>
2583
2584         [chromium] Set nativeKeyCode to include Windows scan code
2585         https://bugs.webkit.org/show_bug.cgi?id=79289
2586
2587         Reviewed by Ryosuke Niwa.
2588
2589         Set the key event's nativeKeyCode on Windows Chromium so that it
2590         actually includes the native scancode and other context bits.
2591         Currently on Windows, the nativeKeyCode is set to be the same value as
2592         the windowsKeyCode, which is redundant.
2593
2594         The actual native key information is required so that components (like
2595         plugins) can reconstruct the original key event. The value stored in
2596         the windowsKeyCode is a Windows virtual key code which does not provide
2597         sufficient info to disambiguate the actual key being pressed (for
2598         example, it cannot distinguish between the left and right shift keys).
2599
2600         All platforms except Windows currently send native key event info, so
2601         this change will bring Windows in line with other platforms.
2602
2603         This change is part of our effort to send enhanced keycode information
2604         to Pepper plugins in Chromium.
2605
2606         * src/win/WebInputEventFactory.cpp:
2607         (WebKit::WebInputEventFactory::keyboardEvent):
2608
2609 2012-02-28  Adam Klein  <adamk@chromium.org>
2610
2611         Unreviewed, speculative test fix after r109016.
2612
2613         * tests/TransparencyWinTest.cpp:
2614         (WebCore::TEST): Update all ImageBuffer::create calls to include a scale of 1.
2615
2616 2012-02-28  Sheriff Bot  <webkit.review.bot@gmail.com>
2617
2618         Unreviewed.  Rolled DEPS.
2619
2620         * DEPS:
2621
2622 2012-02-27  James Kozianski  <koz@chromium.org>
2623
2624         Add missing parameter to didCreateScriptContext() so it overrides base class again.
2625         https://bugs.webkit.org/show_bug.cgi?id=79742
2626
2627         Reviewed by Kent Tamura.
2628
2629         * tests/WebFrameTest.cpp:
2630
2631 2012-02-27  Kenichi Ishibashi  <bashi@chromium.org>
2632
2633         [Chromium] Unreviewed gardening, Disable TransparencyWin.OpaqueCompositeLayerPixel
2634
2635         * tests/TransparencyWinTest.cpp:
2636         (WebCore::TEST):
2637
2638 2012-02-27  Kinuko Yasuda  <kinuko@chromium.org>
2639
2640         [chromium] Add createSnapshotFile API to WebFileSystem to create File snapshots for filesystem files
2641         https://bugs.webkit.org/show_bug.cgi?id=79394
2642
2643         Reviewed by Darin Fisher.
2644
2645         * public/platform/WebFileSystem.h:
2646         (WebKit::WebFileSystem::createSnapshotFileAndReadMetadata): Added.
2647
2648 2012-02-27  James Kozianski  <koz@chromium.org>
2649
2650         [chromium] Plumb extensionGroup into didCreateScriptContext().
2651         https://bugs.webkit.org/show_bug.cgi?id=79072
2652
2653         Reviewed by Darin Fisher.
2654
2655         * public/WebFrameClient.h:
2656         (WebKit::WebFrameClient::didCreateScriptContext):
2657         * src/FrameLoaderClientImpl.cpp:
2658         (WebKit::FrameLoaderClientImpl::didCreateScriptContext):
2659         * src/FrameLoaderClientImpl.h:
2660         (FrameLoaderClientImpl):
2661
2662 2012-02-27  Adrienne Walker  <enne@google.com>
2663
2664         [chromium] Unreviewed gardening, disable TransparencyWinTest unit tests
2665         https://bugs.webkit.org/show_bug.cgi?id=79718
2666
2667         * tests/TransparencyWinTest.cpp:
2668
2669 2012-02-26  Hajime Morrita  <morrita@chromium.org>
2670
2671         Move ChromeClient::showContextMenu() to ContextMenuClient
2672         https://bugs.webkit.org/show_bug.cgi?id=79427
2673
2674         Reviewed by Adam Barth.
2675
2676         * src/ChromeClientImpl.h:
2677         (ChromeClientImpl):
2678
2679 2012-02-26  James Robinson  <jamesr@chromium.org>
2680
2681         Take 2 build fix.
2682
2683         * tests/CCLayerTreeHostImplTest.cpp:
2684         (WebKit::TEST_F):
2685
2686 2012-02-26  James Robinson  <jamesr@chromium.org>
2687
2688         Compile fix for CCLayerTreeHostImpl test.
2689
2690         * tests/CCLayerTreeHostImplTest.cpp:
2691         (WebKit::TEST_F):
2692
2693 2012-02-26  James Robinson  <jamesr@chromium.org>
2694
2695         [chromium] Wire up shouldUpdateScrollPositionOnMainThread and nonFastScrollableRegion to compositor
2696         https://bugs.webkit.org/show_bug.cgi?id=79155
2697
2698         Reviewed by Adam Barth.
2699
2700         Add new tests for shouldScrollOnMainThread and nonFastScrollableRegion properties.
2701
2702         * tests/CCLayerTreeHostImplTest.cpp:
2703         (WebKit::TEST_F):
2704         (WebKit):
2705         * tests/LayerChromiumTest.cpp:
2706
2707 2012-02-25  Adrienne Walker  <enne@google.com>
2708
2709         [chromium] Unreviewed gardening, fix Linux Clang OwnPtr breakage
2710         https://bugs.webkit.org/show_bug.cgi?id=78404
2711
2712         r108886 doesn't compile on Linux Clang due to OwnPtr's public copy
2713         constructor (i.e. "has internal linkage but is not defined"). Fixed
2714         locally by changing copy initialization to direct initialization.
2715
2716         * tests/TiledLayerChromiumTest.cpp:
2717         (WTF::TEST):
2718
2719 2012-02-24  Tien-Ren Chen  <trchen@chromium.org>
2720
2721         [chromium] Replace RefPtr with OwnPtr for CCLayerImpl tree structure
2722         https://bugs.webkit.org/show_bug.cgi?id=78404
2723
2724         Reviewed by James Robinson.
2725
2726         * tests/CCDamageTrackerTest.cpp:
2727         (WebKitTests::executeCalculateDrawTransformsAndVisibility):
2728         (WebKitTests::emulateDrawingOneFrame):
2729         (WebKitTests::createTestTreeWithOneSurface):
2730         (WebKitTests::createTestTreeWithTwoSurfaces):
2731         (WebKitTests::createAndSetUpTestTreeWithOneSurface):
2732         (WebKitTests::createAndSetUpTestTreeWithTwoSurfaces):
2733         (WebKitTests::TEST_F):
2734         * tests/CCLayerImplTest.cpp:
2735         (WebCore::TEST):
2736         * tests/CCLayerIteratorTest.cpp:
2737         * tests/CCLayerSorterTest.cpp:
2738         (WebCore::TEST):
2739         * tests/CCLayerTreeHostCommonTest.cpp:
2740         (WebCore::TEST):
2741         * tests/CCLayerTreeHostImplTest.cpp:
2742         (WebKit::CCLayerTreeHostImplTest::setupScrollAndContentsLayers):
2743         (WebKit::TEST_F):
2744         (WebKit::DidDrawCheckLayer::create):
2745         (WebKit::BlendStateCheckLayer::create):
2746         * tests/CCRenderSurfaceTest.cpp:
2747         (WebCore::TEST):
2748         * tests/CCSolidColorLayerImplTest.cpp:
2749         (CCLayerTestCommon::TEST):
2750         * tests/CCTiledLayerImplTest.cpp:
2751         (CCLayerTestCommon::createLayer):
2752         (CCLayerTestCommon::TEST):
2753         (CCLayerTestCommon::getQuads):
2754         * tests/Canvas2DLayerChromiumTest.cpp:
2755         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
2756         * tests/TiledLayerChromiumTest.cpp:
2757         (WTF::TEST):
2758         * tests/TreeSynchronizerTest.cpp:
2759         (WebKitTests::MockCCLayerImpl::create):
2760         (WebKitTests::MockLayerChromium::createCCLayerImpl):
2761         (WebKitTests::expectTreesAreIdentical):
2762         (WebKitTests::TEST):
2763
2764 2012-02-08  James Robinson  <jamesr@chromium.org>
2765
2766         [chromium] Make WebViewImpl depend on WebLayerTreeView instead of CCLayerTreeHost
2767         https://bugs.webkit.org/show_bug.cgi?id=75591
2768
2769         Reviewed by Kenneth Russell.
2770
2771         This converts WebViewImpl from depending on CCLayerTreeHost to WebLayerTreeView in order to provide better
2772         isolation and allow for future refactorings. The changes to WebViewImpl are mostly mechanical. The
2773         WebLayerTreeView and WebLayerTreeViewClient interfaces have both grown and changed slightly:
2774
2775         - Setup path for WebLayerTreeView changed to expose an initialize() function instead of a create() factory
2776         function. The new model is that a WebLayerTreeView when constructed is in a null state. Calling initialize()
2777         attempts to re-initialize the WLTV, which can either fail or succeed.  All other functions must be called on a
2778         successfully initialized view.
2779
2780         - WebLayerTreeView expanded to include functionality that CCLayerTreeHost exposes but WebLayerTreeView did not.
2781         Some of this is only valid for the single thread case and will be removed when we invert the scheduling control
2782         logic, these bits are commented.
2783
2784         - WebLayerTreeViewClient expanded with some flow-control related APIs.
2785
2786         Refactor only, no change in behavior.
2787
2788         * public/platform/WebLayerTreeView.h:
2789         (WebKit::WebLayerTreeView::Settings::Settings):
2790         (WebKit::WebLayerTreeView::isNull):
2791         * public/platform/WebLayerTreeViewClient.h:
2792         * src/ChromeClientImpl.cpp:
2793         (WebKit::ChromeClientImpl::scheduleCompositingLayerSync):
2794         * src/WebLayerTreeView.cpp:
2795         (WebKit::WebLayerTreeView::initialize):
2796         (WebKit::WebLayerTreeView::compositorIdentifier):
2797         (WebKit::WebLayerTreeView::setVisible):
2798         (WebKit::WebLayerTreeView::setNeedsAnimate):
2799         (WebKit::WebLayerTreeView::updateAnimations):
2800         (WebKit::WebLayerTreeView::setNeedsRedraw):
2801         (WebKit::WebLayerTreeView::setPageScaleFactorAndLimits):
2802         (WebKit::WebLayerTreeView::startPageScaleAnimation):
2803         (WebKit::WebLayerTreeView::finishAllRendering):
2804         (WebKit::WebLayerTreeView::context):
2805         (WebKit::WebLayerTreeView::loseCompositorContext):
2806         * src/WebLayerTreeViewImpl.cpp:
2807         (WebKit::WebLayerTreeViewImpl::didRecreateGraphicsContext):
2808         (WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame):
2809         (WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers):
2810         * src/WebViewImpl.cpp:
2811         (WebKit::WebViewImpl::animate):
2812         (WebKit::WebViewImpl::doPixelReadbackToCanvas):
2813         (WebKit::WebViewImpl::paint):
2814         (WebKit::WebViewImpl::composite):
2815         (WebKit::WebViewImpl::loseCompositorContext):
2816         (WebKit::WebViewImpl::computePageScaleFactorLimits):
2817         (WebKit::WebViewImpl::addPageOverlay):
2818         (WebKit::WebViewImpl::removePageOverlay):
2819         (WebKit::WebViewImpl::setRootGraphicsLayer):
2820         (WebKit::WebViewImpl::scheduleCompositingLayerSync):
2821         (WebKit::WebViewImpl::scrollRootLayerRect):
2822         (WebKit::WebViewImpl::invalidateRootLayerRect):
2823         (WebKit::WebViewImpl::scheduleAnimation):
2824         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2825         (WebKit::WebViewImpl::createContext3D):
2826         (WebKit::WebViewImpl::applyScrollAndScale):
2827         (WebKit::WebViewImpl::didRebindGraphicsContext):
2828         (WebKit::WebViewImpl::updateLayerTreeViewport):
2829         (WebKit::WebViewImpl::graphicsContext3D):
2830         (WebKit::WebViewImpl::setVisibilityState):
2831         * src/WebViewImpl.h:
2832         * tests/WebLayerTest.cpp:
2833
2834 2012-02-24  Ian Vollick  <vollick@chromium.org>
2835
2836         [chromium] Plumb animation started notifications from CCLayerTreeHost to GraphicsLayerChromium
2837         https://bugs.webkit.org/show_bug.cgi?id=77646
2838
2839         Reviewed by James Robinson.
2840
2841         * tests/CCLayerTreeHostTest.cpp:
2842         (TestHooks):
2843         (WTF::TestHooks::notifyAnimationStarted):
2844         (WTF::TestHooks::notifyAnimationFinished):
2845         (WTF::MockLayerTreeHost::create):
2846         (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation):
2847         (WTF::CCLayerTreeHostTestAddAnimation::animateLayers):
2848         (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationStarted):
2849         (CCLayerTreeHostTestAddAnimation):
2850         (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationFinished):
2851
2852 2012-02-24  James Robinson  <jamesr@chromium.org>
2853
2854         [chromium] WebKit::setColorNames is a client API
2855         https://bugs.webkit.org/show_bug.cgi?id=79539
2856
2857         Reviewed by Darin Fisher.
2858
2859         * WebKit.gyp:
2860         * public/WebColorName.h: Renamed from Source/Platform/chromium/public/WebColorName.h.
2861         (WebKit):
2862         * public/platform/WebColorName.h:
2863         * src/WebColor.cpp:
2864
2865 2012-02-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2866
2867         Unreviewed, rolling out r108860.
2868         http://trac.webkit.org/changeset/108860
2869         https://bugs.webkit.org/show_bug.cgi?id=79544
2870
2871         "Breaks Linux compile" (Requested by enne on #webkit).
2872
2873         * WebKit.gyp:
2874         * public/platform/WebColorName.h:
2875         * src/WebColor.cpp: Renamed from Source/WebKit/chromium/src/WebColorName.cpp.
2876         (WebKit):
2877         (WebKit::toCSSValueKeyword):
2878         (WebKit::setNamedColors):
2879
2880 2012-02-24  James Robinson  <jamesr@chromium.org>
2881
2882         [chromium] WebKit::setColorNames is a client API
2883         https://bugs.webkit.org/show_bug.cgi?id=79539
2884
2885         Reviewed by Darin Fisher.
2886
2887         * WebKit.gyp:
2888         * public/WebColorName.h: Renamed from Source/Platform/chromium/public/WebColorName.h.
2889         (WebKit):
2890         * public/platform/WebColorName.h:
2891         * src/WebColor.cpp:
2892
2893 2012-02-22  James Robinson  <jamesr@chromium.org>
2894
2895         [chromium] Move WebGraphicsContext3D header into the Platform directory
2896         https://bugs.webkit.org/show_bug.cgi?id=79301
2897
2898         Reviewed by Adam Barth.
2899
2900         Moves WebGraphicsContext3D and WebNonCopyable (which WGC3D depends on).
2901
2902         * public/platform/WebGraphicsContext3D.h:
2903         * public/platform/WebNonCopyable.h:
2904
2905 2012-02-24  Michal Mocny  <mmocny@google.com>
2906
2907         [chromium] Purge Skia's GPU texture cache using GL_CHROMIUM_gpu_memory_manager
2908         https://bugs.webkit.org/show_bug.cgi?id=78265
2909
2910         Reviewed by Stephen White.
2911
2912         * src/GraphicsContext3DChromium.cpp:
2913         (GrMemoryAllocationChangedCallback):
2914         (WebCore::GrMemoryAllocationChangedCallback::GrMemoryAllocationChangedCallback):
2915         (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
2916         (WebCore):
2917         (WebCore::GraphicsContext3DPrivate::grContext):
2918
2919 2012-02-24  James Robinson  <jamesr@chromium.org>
2920
2921         [chromium] Remove deprecated and unused WebGraphicsContext3D::initialize call
2922         https://bugs.webkit.org/show_bug.cgi?id=79296
2923
2924         Reviewed by Kenneth Russell.
2925
2926         The old way to initialize a WebGraphicsContext3D from inside WebKit was to call initialize() on it with a
2927         WebView*. The new way to do this is via the WebViewClient interface. This deletes the old, unused path.
2928
2929         * public/platform/WebGraphicsContext3D.h:
2930         (WebKit):
2931         * tests/CCLayerTreeHostImplTest.cpp:
2932         * tests/FakeWebGraphicsContext3D.h:
2933
2934 2012-02-23  James Robinson  <jamesr@chromium.org>
2935
2936         [chromium] Move Web*Layer* headers into Platform
2937         https://bugs.webkit.org/show_bug.cgi?id=79425
2938
2939         Reviewed by Adam Barth.
2940
2941         Adds forwarding headers for Web*Layer* APIs and their dependencies.  The forwarding headers for the Web*Layer*
2942         APIs are temporary since Web*Layer* is not exposed in the client interface.  The other headers (such as
2943         WebColor) are exposed in both the client and platform APIs, so the forwarding headers are permanent, although we
2944         might move them back down to public/ at some point.
2945
2946         * public/platform/WebCanvas.h:
2947         * public/platform/WebColor.h:
2948         * public/platform/WebColorName.h:
2949         * public/platform/WebContentLayer.h:
2950         * public/platform/WebContentLayerClient.h:
2951         * public/platform/WebExternalTextureLayer.h:
2952         * public/platform/WebLayer.h:
2953         * public/platform/WebLayerTreeView.h:
2954         * public/platform/WebLayerTreeViewClient.h:
2955         * public/platform/WebPrivatePtr.h:
2956         * public/platform/WebSolidColorLayer.h:
2957
2958 2012-02-24  Peter Collingbourne  <peter@pcc.me.uk>
2959
2960         [chromium] Have WebFrameImpl::selectionAsMarkup create interchange markup.
2961         https://bugs.webkit.org/show_bug.cgi?id=77307
2962
2963         Reviewed by Tony Chang.
2964
2965         This function is currently used to build markup in order to
2966         print the selection, and will also be used to build markup for
2967         the clipboard.  Without this change, the markup will refer to
2968         (for example) nonexistent CSS classes and invalid relative
2969         paths and therefore will not be interpreted correctly.
2970
2971         Chromium bug: http://crbug.com/23329
2972
2973         * src/WebFrameImpl.cpp:
2974         (WebKit::WebFrameImpl::selectionAsMarkup):
2975
2976 2012-02-24  Pavel Feldman  <pfeldman@chromium.org>
2977
2978         Not reviewed: chromium image for inspector status bar button updated.
2979
2980         * src/js/Images/segmentSelectedEndChromium.png:
2981
2982 2012-02-24  Shinya Kawanaka  <shinyak@chromium.org>
2983
2984         SpellCheckRequest needs to know the context where the spellcheck happened.
2985         https://bugs.webkit.org/show_bug.cgi?id=79320
2986
2987         Reviewed by Hajime Morita.
2988
2989         * src/EditorClientImpl.cpp:
2990         (WebKit::EditorClientImpl::requestCheckingOfString):
2991         * src/EditorClientImpl.h:
2992         (EditorClientImpl):
2993         * src/WebFrameImpl.cpp:
2994         (WebKit::WebFrameImpl::requestTextChecking):
2995
2996 2012-02-23  Sheriff Bot  <webkit.review.bot@gmail.com>
2997
2998         Unreviewed.  Rolled DEPS.
2999
3000         * DEPS:
3001
3002 2012-02-23  Ian Vollick  <vollick@chromium.org>
3003
3004         [chromium] Implement keyframed animations for the cc thread.
3005         https://bugs.webkit.org/show_bug.cgi?id=77229
3006
3007         Reviewed by James Robinson.
3008
3009         * WebKit.gypi:
3010         * tests/CCAnimationTestCommon.cpp:
3011         (WebCore):
3012         (WebCore::addOpacityTransition):
3013         (WebKitTests::addOpacityTransitionToController):
3014         (WebKitTests::addOpacityTransitionToLayer):
3015         * tests/CCAnimationTestCommon.h:
3016         (WebCore):
3017         (WebKitTests):
3018         * tests/CCKeyframedAnimationCurveTest.cpp: Added.
3019         (WebCore):
3020         (WebCore::expectTranslateX):
3021         (WebCore::TEST):
3022         * tests/CCLayerAnimationControllerTest.cpp:
3023         (WebKitTests::expectTranslateX):
3024         (WebKitTests):
3025         (WebKitTests::TEST):
3026         * tests/CCLayerTreeHostTest.cpp:
3027         (WTF::CCLayerTreeHostTest::dispatchAddAnimation):
3028         (WTF::CCLayerTreeHostTest::doBeginTest):
3029
3030 2012-02-23  James Robinson  <jamesr@chromium.org>
3031
3032         [chromium] Clean up GraphicsContext3D initialization paths
3033         https://bugs.webkit.org/show_bug.cgi?id=79321
3034
3035         Reviewed by Kenneth Russell.
3036
3037         This simplifies the GraphicsContext3D initialization paths down to two simple codepaths, one for offscreen
3038         contexts initialized from WebCore and one for onscreen (compositor) contexts initialized by WebViewImpl or
3039         WebLayerTreeViewImpl.
3040
3041         Offscreen initialization path:
3042         1) WebCore code calls WebCore::GraphicsContext3D::create(), implemented in GraphicsContext3DChromium.cpp
3043         2) GraphicsContext3D::create() instantiates a WebGraphicsContext3D via the static WebKitPlatformSupport interface
3044         3) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a
3045         GraphicsContext3D's m_private pointer.
3046
3047         Onscreen initialization path:
3048         1) WebViewImpl or WebLayerTreeViewImpl request an onscreen WebGraphicsContext3D from either their WebViewClient
3049         or WebLayerTreeViewClient, respectively
3050         2) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a
3051         GraphicsContext3D's m_private pointer.
3052
3053         There are no other initialization paths. Specifically, we do not support instantiating onscreen contexts from
3054         within WebCore.
3055
3056         * src/GraphicsContext3DChromium.cpp:
3057         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
3058         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
3059         (WebCore):
3060         (WebCore::GraphicsContext3DPrivate::platformTexture):
3061         (WebCore::GraphicsContext3D::create):
3062         * src/GraphicsContext3DPrivate.h:
3063         (GraphicsContext3DPrivate):
3064         * src/WebLayerTreeViewImpl.cpp:
3065         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
3066         * src/WebViewImpl.cpp:
3067         (std::getCompositorContextAttributes):
3068         (WebKit::WebViewImpl::createCompositorGraphicsContext3D):
3069         (WebKit):
3070         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
3071         (WebKit::WebViewImpl::graphicsContext3D):
3072         * src/WebViewImpl.h:
3073         (WebViewImpl):
3074         * tests/CCLayerTreeHostImplTest.cpp:
3075         (WebKit::CCLayerTreeHostImplTest::createContext):
3076         (CCLayerTreeHostImplTest):
3077         (WebKit::TEST_F):
3078         * tests/CCLayerTreeHostTest.cpp:
3079         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
3080         * tests/Canvas2DLayerChromiumTest.cpp:
3081         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
3082         * tests/CompositorFakeGraphicsContext3D.h:
3083         (WebCore::createCompositorMockGraphicsContext3D):
3084         * tests/FakeGraphicsContext3DTest.cpp:
3085         (TEST):
3086
3087 2012-02-23  Jonathan Backer  <backer@chromium.org>
3088
3089         [chromium] Plumb video damage to the damage tracker.
3090         https://bugs.webkit.org/show_bug.cgi?id=79373
3091
3092         Reviewed by James Robinson.
3093
3094         * src/WebMediaPlayerClientImpl.cpp:
3095         (WebKit::WebMediaPlayerClientImpl::repaint):
3096
3097 2012-02-21  James Robinson  <jamesr@chromium.org>
3098
3099         [chromium] Notify compositor of wheel event registration via ScrollingCoordinator
3100         https://bugs.webkit.org/show_bug.cgi?id=79133
3101
3102         Reviewed by Dimitri Glazkov.
3103
3104         Rips out old wheel event notification and adds unit tests for new LayerChromium property.
3105
3106         * src/NonCompositedContentHost.cpp:
3107         (WebKit::NonCompositedContentHost::setViewport):
3108         * src/WebCompositorInputHandlerImpl.cpp:
3109         (WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
3110         * src/WebViewImpl.cpp:
3111         (WebKit::WebViewImpl::numberOfWheelEventHandlersChanged):
3112         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3113         * src/WebViewImpl.h:
3114         * tests/CCLayerTreeHostImplTest.cpp:
3115         (WebKit::TEST_F):
3116         (WebKit):
3117         * tests/LayerChromiumTest.cpp:
3118         * tests/WebCompositorInputHandlerImplTest.cpp:
3119
3120 2012-02-23  Adrienne Walker  <enne@google.com>
3121
3122         Unreviewed, rolling out r108666.
3123         http://trac.webkit.org/changeset/108666
3124         https://bugs.webkit.org/show_bug.cgi?id=79321
3125
3126         Breaks webplugin tests: http://goo.gl/CoHIi
3127
3128         * src/GraphicsContext3DChromium.cpp:
3129         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
3130         (WebCore):
3131         (WebCore::GraphicsContext3DPrivate::create):
3132         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
3133         (WebCore::GraphicsContext3DPrivate::createGraphicsContextForAnotherThread):
3134         (WebCore::GraphicsContext3DPrivate::platformTexture):
3135         (WebCore::GraphicsContext3D::create):
3136         * src/GraphicsContext3DPrivate.h:
3137         (WebKit):
3138         (GraphicsContext3DPrivate):
3139         * src/WebLayerTreeViewImpl.cpp:
3140         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
3141         * src/WebViewImpl.cpp:
3142         (std::getCompositorContextAttributes):
3143         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
3144         (WebKit::WebViewImpl::graphicsContext3D):
3145         * tests/CCLayerTreeHostImplTest.cpp:
3146         (CCLayerTreeHostImplTest):
3147         (WebKit::TEST_F):
3148         * tests/CCLayerTreeHostTest.cpp:
3149         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
3150         * tests/Canvas2DLayerChromiumTest.cpp:
3151         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
3152         * tests/CompositorFakeGraphicsContext3D.h:
3153         (WebCore::createCompositorMockGraphicsContext3D):
3154         * tests/FakeGraphicsContext3DTest.cpp:
3155         (TEST):
3156
3157 2012-02-23  Daniel Sievers  <sievers@chromium.org>
3158
3159         [Chromium] Add video stream texture support
3160         https://bugs.webkit.org/show_bug.cgi?id=78398
3161
3162         This upstreams the abstraction used on Android for
3163         hardware video decoding with the compositor.
3164
3165         Most of the interfaces are kept generic and the core
3166         of this change is to allow texturing from an external
3167         texture while receiving notifications (on the compositor
3168         thread if we are running it) when there are new frames to
3169         be displayed.
3170
3171         Reviewed by James Robinson.
3172
3173         * WebKit.gyp:
3174         * public/WebMediaPlayer.h:
3175         (WebKit):
3176         (WebKit::WebMediaPlayer::setStreamTextureClient):
3177         (WebMediaPlayer):
3178         * public/WebStreamTextureClient.h: Copied from Source/WebKit/chromium/public/WebVideoFrame.h.
3179         (WebKit):
3180         (WebStreamTextureClient):
3181         (WebKit::WebStreamTextureClient::~WebStreamTextureClient):
3182         * public/WebVideoFrame.h:
3183         * src/WebMediaPlayerClientImpl.cpp:
3184         (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl):
3185         (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient):
3186         (WebKit::WebMediaPlayerClientImpl::didReceiveFrame):
3187         (WebKit):
3188         (WebKit::WebMediaPlayerClientImpl::didUpdateMatrix):
3189         * src/WebMediaPlayerClientImpl.h:
3190         (WebMediaPlayerClientImpl):
3191
3192 2012-02-22  James Robinson  <jamesr@chromium.org>
3193
3194         [chromium] Clean up GraphicsContext3D initialization paths
3195         https://bugs.webkit.org/show_bug.cgi?id=79321
3196
3197         Reviewed by Kenneth Russell.
3198
3199         This simplifies the GraphicsContext3D initialization paths down to two simple codepaths, one for offscreen
3200         contexts initialized from WebCore and one for onscreen (compositor) contexts initialized by WebViewImpl or
3201         WebLayerTreeViewImpl.
3202
3203         Offscreen initialization path:
3204         1) WebCore code calls WebCore::GraphicsContext3D::create(), implemented in GraphicsContext3DChromium.cpp
3205         2) GraphicsContext3D::create() instantiates a WebGraphicsContext3D via the static WebKitPlatformSupport interface
3206         3) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a
3207         GraphicsContext3D's m_private pointer.
3208
3209         Onscreen initialization path:
3210         1) WebViewImpl or WebLayerTreeViewImpl request an onscreen WebGraphicsContext3D from either their WebViewClient
3211         or WebLayerTreeViewClient, respectively
3212         2) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a
3213         GraphicsContext3D's m_private pointer.
3214
3215         There are no other initialization paths. Specifically, we do not support instantiating onscreen contexts from
3216         within WebCore.
3217
3218         * src/GraphicsContext3DChromium.cpp:
3219         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
3220         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
3221         (WebCore):
3222         (WebCore::GraphicsContext3DPrivate::platformTexture):
3223         (WebCore::GraphicsContext3D::create):
3224         * src/GraphicsContext3DPrivate.h:
3225         (GraphicsContext3DPrivate):
3226         * src/WebLayerTreeViewImpl.cpp:
3227         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
3228         * src/WebViewImpl.cpp:
3229         (std::getCompositorContextAttributes):
3230         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
3231         (WebKit::WebViewImpl::graphicsContext3D):
3232         * tests/CCLayerTreeHostImplTest.cpp:
3233         (WebKit::CCLayerTreeHostImplTest::createContext):
3234         (CCLayerTreeHostImplTest):
3235         (WebKit::TEST_F):
3236         * tests/CCLayerTreeHostTest.cpp:
3237         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
3238         * tests/Canvas2DLayerChromiumTest.cpp:
3239         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
3240         * tests/CompositorFakeGraphicsContext3D.h:
3241         (WebCore::createCompositorMockGraphicsContext3D):
3242         * tests/FakeGraphicsContext3DTest.cpp:
3243         (TEST):
3244
3245 2012-02-23  Greg Billock  <gbillock@google.com>
3246
3247         Add UserGestureIndicator capability to Chromium API.
3248         https://bugs.webkit.org/show_bug.cgi?id=77690
3249
3250         Reviewed by Darin Fisher.
3251
3252         * WebKit.gyp:
3253         * public/WebScopedUserGesture.h: Added.
3254         * src/WebScopedUserGesture.cpp: Added.
3255
3256 2012-02-23  Peter Beverloo  <peter@chromium.org>
3257
3258         Unreviewed, rolling out r108627 and r108630.
3259         https://bugs.webkit.org/show_bug.cgi?id=79367
3260
3261         ffmpeg is creating issues and was just reverted upstream as well.
3262
3263         * DEPS:
3264
3265 2012-02-23  Peter Beverloo  <peter@chromium.org>
3266
3267         Unreviewed build fix. Remove the ffmpeg binary directory from the
3268         Chromium-Windows DEPS file, following the commit done in the
3269         Chromium repository:
3270         http://src.chromium.org/viewvc/chrome?view=rev&revision=123123
3271
3272         * DEPS:
3273
3274 2012-02-23  Peter Beverloo  <peter@chromium.org>
3275
3276         Unreviewed.  Rolled DEPS.
3277
3278         * DEPS:
3279
3280 2012-02-22  Hajime Morrita  <morrita@chromium.org>
3281
3282         NOTIFICATIONS should be implemented as PageSupplement
3283         https://bugs.webkit.org/show_bug.cgi?id=79052
3284
3285         Reviewed by Adam Barth.
3286
3287         * src/WebViewImpl.cpp:
3288         (WebKit::WebViewImpl::WebViewImpl):
3289
3290 2012-02-22  Dana Jansens  <danakj@chromium.org>
3291
3292         [chromium] Add unit test for surface occlusion
3293         https://bugs.webkit.org/show_bug.cgi?id=79302
3294
3295         Reviewed by James Robinson.
3296
3297         * tests/CCOcclusionTrackerTest.cpp:
3298         (WebCore::TEST):
3299         (WebCore):
3300
3301 2012-02-22  James Robinson  <jamesr@chromium.org>
3302
3303         Remove GraphicsContext3D::paintsIntoCanvasBuffer and unify WebGL and canvas 2d logic
3304         https://bugs.webkit.org/show_bug.cgi?id=79317
3305
3306         Reviewed by Kenneth Russell.
3307
3308         Remove paintsIntoCanvasBuffer() implementations.
3309
3310         * src/GraphicsContext3DChromium.cpp:
3311         (WebCore):
3312         * src/GraphicsContext3DPrivate.h:
3313
3314 2012-02-22  Yuta Kitamura  <yutak@chromium.org>
3315
3316         Unreviewed, rolling out r108590.
3317         http://trac.webkit.org/changeset/108590
3318
3319         I mistakenly disabled tests even though the fix was already
3320         in.
3321
3322         * tests/CCOcclusionTrackerTest.cpp:
3323         (WebCore::TEST):
3324
3325 2012-02-22  Yuta Kitamura  <yutak@chromium.org>
3326
3327         [Chromium] Unreviewed. Disable two tests from CCOcclusionTrackerTest
3328         which cause assertion failures.
3329
3330         * tests/CCOcclusionTrackerTest.cpp:
3331         (WebCore):
3332         (WebCore::TEST):
3333
3334 2012-02-22  Dana Jansens  <danakj@chromium.org>
3335
3336         [chromium] Fix CCOcclusionTracker unit test assertion
3337         https://bugs.webkit.org/show_bug.cgi?id=79275
3338
3339         Reviewed by James Robinson.
3340
3341         * tests/CCOcclusionTrackerTest.cpp:
3342         (WebCore::TEST):
3343
3344 2012-02-22  Ian Vollick  <vollick@chromium.org>
3345
3346         [chromium] Plumb from GraphicsLayer to the cc thread animation code
3347         https://bugs.webkit.org/show_bug.cgi?id=75874
3348
3349         Reviewed by James Robinson.
3350
3351         * WebKit.gypi:
3352         * public/WebSettings.h:
3353         * public/platform/WebLayerTreeView.h:
3354         (WebKit::WebLayerTreeView::Settings::Settings):
3355         (Settings):
3356         * src/WebLayerTreeView.cpp:
3357         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
3358         * src/WebSettingsImpl.cpp:
3359         (WebKit::WebSettingsImpl::setThreadedAnimationEnabled):
3360         (WebKit):
3361         * src/WebSettingsImpl.h:
3362         (WebSettingsImpl):
3363         * src/WebViewImpl.cpp:
3364         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3365         * tests/CCActiveAnimationTest.cpp:
3366         (WebCore::createActiveAnimation):
3367         * tests/CCAnimationTestCommon.cpp: Added.
3368         (WebKitTests):
3369         (WebKitTests::FakeFloatAnimationCurve::FakeFloatAnimationCurve):
3370         (WebKitTests::FakeFloatAnimationCurve::~FakeFloatAnimationCurve):
3371         (WebKitTests::FakeFloatAnimationCurve::clone):
3372         (WebKitTests::FakeTransformTransition::FakeTransformTransition):
3373         (WebKitTests::FakeTransformTransition::~FakeTransformTransition):
3374         (WebKitTests::FakeTransformTransition::getValue):
3375         (WebKitTests::FakeTransformTransition::clone):
3376         (WebKitTests::FakeFloatTransition::FakeFloatTransition):
3377         (WebKitTests::FakeFloatTransition::~FakeFloatTransition):
3378         (WebKitTests::FakeFloatTransition::getValue):
3379         (WebKitTests::FakeLayerAnimationControllerImplClient::FakeLayerAnimationControllerImplClient):
3380         (WebKitTests::FakeLayerAnimationControllerImplClient::~FakeLayerAnimationControllerImplClient):
3381         (WebKitTests::FakeFloatTransition::clone):
3382         (WebKitTests::addOpacityTransition):
3383         * tests/CCAnimationTestCommon.h: Added.
3384         (WebCore):
3385         (WebKitTests):
3386         (FakeFloatAnimationCurve):
3387         (WebKitTests::FakeFloatAnimationCurve::duration):
3388         (WebKitTests::FakeFloatAnimationCurve::getValue):
3389         (FakeTransformTransition):
3390         (WebKitTests::FakeTransformTransition::duration):
3391         (FakeFloatTransition):
3392         (WebKitTests::FakeFloatTransition::duration):
3393         (FakeLayerAnimationControllerImplClient):
3394         (WebKitTests::FakeLayerAnimationControllerImplClient::id):
3395         (WebKitTests::FakeLayerAnimationControllerImplClient::opacity):
3396         (WebKitTests::FakeLayerAnimationControllerImplClient::setOpacity):
3397         (WebKitTests::FakeLayerAnimationControllerImplClient::transform):
3398         (WebKitTests::FakeLayerAnimationControllerImplClient::setTransform):
3399         (WebKitTests::FakeLayerAnimationControllerImplClient::bounds):
3400         * tests/CCLayerAnimationControllerImplTest.cpp:
3401         (WebKitTests::createActiveAnimation):
3402         (WebKitTests::TEST):
3403         * tests/CCLayerAnimationControllerTest.cpp: Added.
3404         (WebKitTests):
3405         (WebKitTests::createActiveAnimation):
3406         (WebKitTests::TEST):
3407         * tests/CCLayerTreeHostImplTest.cpp:
3408         (WebKit::CCLayerTreeHostImplTest::postAnimationEventsToMainThreadOnImplThread):
3409         * tests/CCLayerTreeHostTest.cpp:
3410         (WTF::TestHooks::animateLayers):
3411         (MockLayerTreeHostImpl):
3412         (WTF::MockLayerTreeHostImpl::animateLayers):
3413         (WTF::MockLayerTreeHost::create):
3414         (WTF::MockLayerTreeHost::createLayerTreeHostImpl):
3415         (WTF):
3416         (MockLayerAnimationController):
3417         (WTF::MockLayerAnimationController::create):
3418         (WTF::MockLayerAnimationController::addAnimation):
3419         (WTF::MockLayerTreeHostClient::scheduleComposite):
3420         (WTF::CCLayerTreeHostTest::postAddAnimationToMainThread):
3421         (CCLayerTreeHostTest):
3422         (WTF::CCLayerTreeHostTest::dispatchAddAnimation):
3423         (WTF::CCLayerTreeHostTest::doBeginTest):
3424         (CCLayerTreeHostTestAddAnimation):
3425         (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation):
3426         (WTF::CCLayerTreeHostTestAddAnimation::beginTest):
3427         (WTF::CCLayerTreeHostTestAddAnimation::animateLayers):
3428         (WTF::CCLayerTreeHostTestAddAnimation::afterTest):
3429         (WTF::TEST_F):
3430         * tests/TreeSynchronizerTest.cpp:
3431         (FakeLayerAnimationController):
3432         (WebKitTests::FakeLayerAnimationController::create):
3433         (WebKitTests::FakeLayerAnimationController::synchronizedAnimations):
3434         (WebKitTests::FakeLayerAnimationController::FakeLayerAnimationController):
3435         (WebKitTests::FakeLayerAnimationController::synchronizeAnimations):
3436         (WebKitTests):
3437         (WebKitTests::TEST):
3438
3439 2012-02-21  Ryosuke Niwa  <rniwa@webkit.org>
3440
3441         Remove the remaining uses of CSSStyleDeclaration in Editor
3442         https://bugs.webkit.org/show_bug.cgi?id=78939
3443
3444         Reviewed by Enrica Casucci.
3445
3446         * src/EditorClientImpl.cpp:
3447         (WebKit::EditorClientImpl::shouldApplyStyle):
3448         * src/EditorClientImpl.h:
3449         (EditorClientImpl):
3450
3451 2012-02-22  Daniel Cheng  <dcheng@chromium.org>
3452
3453         [chromium] Cleanup unused WebDragData methods after r107846
3454         https://bugs.webkit.org/show_bug.cgi?id=78837
3455
3456         Reviewed by Tony Chang.
3457
3458         The deleted methods have been replaced by items() and setItems().
3459
3460         * public/platform/WebDragData.h:
3461         (WebDragData):
3462         * src/WebDragData.cpp:
3463         (WebKit::WebDragData::addItem): Add ensureMutable() call to verify preconditions for
3464                                         mutating the item store.
3465
3466 2012-02-22  Tim Dresser  <tdresser@chromium.org>
3467
3468         CCLayerTreeHostImpl calls didDraw more frequently than willDraw
3469         https://bugs.webkit.org/show_bug.cgi?id=79139
3470
3471         Reviewed by James Robinson.
3472
3473         * tests/CCLayerTreeHostImplTest.cpp:
3474         (WebKit::DidDrawCheckLayer::willDraw):
3475         (DidDrawCheckLayer):
3476         (WebKit::DidDrawCheckLayer::willDrawCalled):
3477         (WebKit::DidDrawCheckLayer::DidDrawCheckLayer):
3478         (WebKit::TEST_F):
3479         (WebKit):
3480
3481 2012-02-22  Dana Jansens  <danakj@chromium.org>
3482
3483         [Chromium] New CCOcclusionTracker class with tests
3484         https://bugs.webkit.org/show_bug.cgi?id=78549
3485
3486         Reviewed by James Robinson.
3487
3488         * WebKit.gypi:
3489         * tests/CCLayerTreeHostCommonTest.cpp:
3490         (WebCore):
3491         * tests/CCOcclusionTrackerTest.cpp: Added.
3492         (WebCore):
3493         (WebCore::setLayerPropertiesForTesting):