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