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