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