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