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