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