2805c6c9e6129cb2fdb556964b6783171b561fae
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-03-27  Nat Duca  <nduca@chromium.org>
2
3         [chromium] Route monotonic clock up from compositor
4         https://bugs.webkit.org/show_bug.cgi?id=82154
5
6         Reviewed by James Robinson.
7
8         * public/WebWidget.h:
9         (WebKit::WebWidget::animate):
10         * src/WebLayerTreeViewImpl.cpp:
11         (WebKit::WebLayerTreeViewImpl::updateAnimations):
12         * src/WebLayerTreeViewImpl.h:
13         (WebLayerTreeViewImpl):
14         * src/WebViewImpl.cpp:
15         (WebKit::WebViewImpl::animate):
16         (WebKit::WebViewImpl::updateAnimations):
17         * src/WebViewImpl.h:
18         (WebViewImpl):
19         * tests/FakeCCLayerTreeHostClient.h:
20         (WebCore::FakeCCLayerTreeHostClient::updateAnimations):
21
22 2012-03-27  James Robinson  <jamesr@chromium.org>
23
24         webkit_unit_tests crashing on chromium lion in CCLayerTreeHostTestCompositeAndReadbackWhileInvisible
25         https://bugs.webkit.org/show_bug.cgi?id=82382
26
27         Reviewed by Adrienne Walker.
28
29         Use UnsignedWithZeroKeyHashTraits trait for the HashSet<WebGLId> m_usedTextures in
30         CompositorFakeWebGraphicsContext3DWithTextureTracking. This set is used to track all textures that are bound in
31         a given context during a test. During ..CompositeAndReadback.. we bind texture id 0. By default, HashSet<T>
32         where T is an unsigned does not allow 0 as a value. WebGLId is typedef'd to unsigned.
33
34         * tests/CCLayerTreeHostTest.cpp:
35         (CompositorFakeWebGraphicsContext3DWithTextureTracking):
36
37 2012-03-27  James Robinson  <jamesr@chromium.org>
38
39         webkit_unit_tests crashing on chromium lion in ScrollbarLayerChromiumTest.resolveScrollLayerPointer
40         https://bugs.webkit.org/show_bug.cgi?id=82381
41
42         Reviewed by Adrienne Walker.
43
44         Use the mock scrollbar theme for this unit test. The real ScrollbarThemeMac isn't compatible with the mocks this
45         test uses and the test isn't designed to cover the theming code, only code inside the compositor.
46
47         * tests/ScrollbarLayerChromiumTest.cpp:
48         (WebCore::TEST):
49
50 2012-03-27  Dirk Pranke  <dpranke@chromium.org>
51
52         Unreviewed, rolling out r112339.
53         http://trac.webkit.org/changeset/112339
54         https://bugs.webkit.org/show_bug.cgi?id=82354
55
56         webkit_unit_tests crashing on chromium mac bots
57
58         * src/AssociatedURLLoader.cpp:
59         (AssociatedURLLoader::ClientAdapter):
60         * tests/AssociatedURLLoaderTest.cpp:
61         (WebKit::AssociatedURLLoaderTest::TearDown):
62         (WebKit):
63         (WebKit::TEST_F):
64
65 2012-03-27  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
66
67         [Coverity] Address some uninitialized constructor values.
68         https://bugs.webkit.org/show_bug.cgi?id=82376
69
70         Reviewed by James Robinson.
71
72         New tests are not required since I did not modify any code behavior. I just initialized the class member variables in the constructor.
73
74         * src/WebCompositorInputHandlerImpl.cpp:
75         (WebCore::PlatformGestureToCCGestureAdapter::PlatformGestureToCCGestureAdapter):
76
77 2012-03-27  Dirk Pranke  <dpranke@chromium.org>
78
79         Roll chromium DEPS to r129300.
80
81         Unreviewed, deps change.
82
83         * DEPS:
84
85 2012-03-27  Bill Budge  <bbudge@chromium.org>
86
87         AssociatedURLLoader does not support Cross Origin Redirects when using
88         Access Control.
89         https://bugs.webkit.org/show_bug.cgi?id=82354
90
91         AssociatedURLLoader's internal adapter now overrides didFailRedirectCheck,
92         which cancels the load, causing didFail to notify the client that the
93         load failed. AssociatedURLLoaderTest adds test cases for CORS requests
94         that receive redirects and pass or fail the redirect access check.
95
96         Reviewed by Adam Barth.
97
98         * src/AssociatedURLLoader.cpp:
99         (AssociatedURLLoader::ClientAdapter):
100         (WebKit::AssociatedURLLoader::ClientAdapter::didFailRedirectCheck):
101         (WebKit):
102         * tests/AssociatedURLLoaderTest.cpp:
103         (WebKit::TEST_F):
104
105 2012-03-27  Dana Jansens  <danakj@chromium.org>
106
107         [chromium] Unknown transforms should be treated as non-axis aligned on main thread
108         https://bugs.webkit.org/show_bug.cgi?id=82370
109
110         Reviewed by Adrienne Walker.
111
112         * tests/CCLayerTreeHostCommonTest.cpp:
113         (WebKitTests::TEST):
114
115 2012-03-27  Dana Jansens  <danakj@chromium.org>
116
117         [chromium] Rename opaqueContentsRegion() to visibleContentOpaqueRegion()
118         https://bugs.webkit.org/show_bug.cgi?id=81689
119
120         Reviewed by Adrienne Walker.
121
122         * tests/CCLayerTreeHostTest.cpp:
123         (WTF::TestLayerChromium::opaqueVisibleContents):
124         * tests/CCOcclusionTrackerTest.cpp:
125         (WebCore::TestContentLayerChromium::opaqueVisibleContents):
126         (WebCore::TestContentLayerImpl::opaqueVisibleContents):
127         * tests/TiledLayerChromiumTest.cpp:
128         (WTF::TEST):
129
130 2012-03-27  Dana Jansens  <danakj@chromium.org>
131
132         [chromium] A unit test to verify clipping is honored when moving occlusion to parent surface
133         https://bugs.webkit.org/show_bug.cgi?id=81783
134
135         Reviewed by Adrienne Walker.
136
137         * tests/CCOcclusionTrackerTest.cpp:
138         (WebCore::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest):
139         (WebCore):
140         (CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping):
141         (WebCore::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest):
142
143 2012-03-27  James Robinson  <jamesr@chromium.org>
144
145         Scrollable plugins not registered properly in ScrollingCoordinator
146         https://bugs.webkit.org/show_bug.cgi?id=82163
147
148         Reviewed by Anders Carlsson.
149
150         Since ScrollbarGroups are ScrollableAreas, they need to be able to report their bounds for the
151         ScrollingCoordinator's calculateNonFastScrollableRegion. This also changes ScrollbarGroups to only be registered
152         as ScrollableAreas on the FrameView's set when they actually have Scrollbars.
153
154         * src/ScrollbarGroup.cpp:
155         (WebKit::ScrollbarGroup::ScrollbarGroup):
156         (WebKit::ScrollbarGroup::~ScrollbarGroup):
157         (WebKit::ScrollbarGroup::scrollbarCreated):
158         (WebKit::ScrollbarGroup::scrollbarDestroyed):
159         (WebKit::ScrollbarGroup::setFrameRect):
160         (WebKit):
161         (WebKit::ScrollbarGroup::scrollableAreaBoundingBox):
162         * src/ScrollbarGroup.h:
163         (ScrollbarGroup):
164         * src/WebPluginContainerImpl.cpp:
165         (WebKit::WebPluginContainerImpl::reportGeometry):
166         (WebKit):
167         (WebKit::WebPluginContainerImpl::scrollbarGroup):
168         * src/WebPluginContainerImpl.h:
169         (WebPluginContainerImpl):
170
171 2012-03-27  Dana Jansens  <danakj@chromium.org>
172
173         [chromium] Make use of common animation unit test methods
174         https://bugs.webkit.org/show_bug.cgi?id=82357
175
176         Reviewed by Adrienne Walker.
177
178         * tests/CCAnimationTestCommon.cpp:
179         (WebKitTests::addAnimatedTransformToController):
180         (WebKitTests):
181         * tests/CCAnimationTestCommon.h:
182         (WebKitTests):
183         * tests/CCLayerTreeHostCommonTest.cpp:
184         (WebKitTests::TEST):
185         * tests/CCOcclusionTrackerTest.cpp:
186         (WebKitTests):
187         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
188         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
189         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
190
191 2012-03-27  Sami Kyostila  <skyostil@chromium.org>
192
193         [chromium] Add TextureCopier for copying texture contents
194         https://bugs.webkit.org/show_bug.cgi?id=80870
195
196         Reviewed by Stephen White.
197
198         Add new test for TextureCopier.
199
200         * WebKit.gypi:
201         * tests/Canvas2DLayerChromiumTest.cpp:
202         * tests/TextureCopierTest.cpp: Added.
203         * tests/TiledLayerChromiumTest.cpp:
204         (FakeTextureCopier):
205         (WTF::FakeTextureCopier::copyTexture):
206         (WTF):
207         (WTF::TEST):
208
209 2012-03-27  Stephen White  <senorblanco@chromium.org>
210
211         [chromium] Fix filter context usage in webkit_unit_tests.
212         https://bugs.webkit.org/show_bug.cgi?id=82349
213
214         Reviewed by James Robinson.
215
216         * tests/CCLayerTreeHostTest.cpp:
217         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
218         Cancel request for filter context after test run.
219         (WTF::TEST_F):
220         * tests/CCOcclusionTrackerTest.cpp:
221         Re-enable CCLayerTreeHostTestSetSingleLostContext.runMultiThread.
222         (WebCore::CCOcclusionTrackerTest::TearDown):
223         Cancel request for filter context after test run.
224
225 2012-03-26  Stephen White  <senorblanco@chromium.org>
226
227         Disable CCLayerTreeHostTestSetSingleLostContext.runMultiThread.
228         https://bugs.webkit.org/show_bug.cgi?id=82285
229
230         Reviewed by James Robinson.
231
232         * tests/CCLayerTreeHostTest.cpp:
233         (WTF::TEST_F):
234
235 2012-03-26  Andrew Scherkus  <scherkus@chromium.org>
236
237         [chromium] Remove WebMediaElement from Chromium WebKit API.
238         https://bugs.webkit.org/show_bug.cgi?id=82277
239
240         Reviewed by James Robinson.
241
242         This was added in r63859 but is no longer used by anyone.
243
244         * WebKit.gyp:
245         * public/WebMediaElement.h: Removed.
246         * src/WebMediaElement.cpp: Removed.
247
248 2012-03-26  Scott Byer  <scottbyer@chromium.org>
249
250         Enable layout testing of the scroll animator.
251         https://bugs.webkit.org/show_bug.cgi?id=81858
252         Add a call to the InternalSettings that layout tests can use to
253         turn on scroll animation. Enable animation updates for the
254         Chromium platform DRT when scroll animation has been turned on in
255         a test. This should be a no-op for all current layout tests.
256
257         Reviewed by James Robinson.
258
259         * public/WebSettings.h:
260         * src/WebSettingsImpl.cpp:
261         (WebKit::WebSettingsImpl::scrollAnimatorEnabled):
262         (WebKit):
263         * src/WebSettingsImpl.h:
264         (WebSettingsImpl):
265
266 2012-03-26  Nat Duca  <nduca@chromium.org>
267
268         [chromium] Add isInputThrottled/didBecomeReadyForAdditionalInput to WebWidget
269         https://bugs.webkit.org/show_bug.cgi?id=82265
270
271         In threaded compositing mode, the WebWidget is self-scheduled,
272         receiving damage and processing it without forwarding that damage
273         up to the embedding WebWidgetClient. In Chromium's case, the
274         client uses the presence of damage to perform input flow
275         control. This patch exposes the need for input flow control to the
276         embedder, while keeping the actual logic about what exactly
277         warrants input flow control inside the implementation.
278
279         Reviewed by James Robinson.
280
281         * public/WebWidget.h:
282         (WebWidget):
283         (WebKit::WebWidget::isInputThrottled):
284         * public/WebWidgetClient.h:
285         (WebWidgetClient):
286         (WebKit::WebWidgetClient::didBecomeReadyForAdditionalInput):
287         * src/WebLayerTreeView.cpp:
288         (WebKit::WebLayerTreeView::commitRequested):
289         (WebKit):
290         * src/WebLayerTreeViewImpl.cpp:
291         (WebKit::WebLayerTreeViewImpl::didCommit):
292         (WebKit):
293         * src/WebLayerTreeViewImpl.h:
294         (WebLayerTreeViewImpl):
295         * src/WebViewImpl.cpp:
296         (WebKit::WebViewImpl::isInputThrottled):
297         (WebKit):
298         (WebKit::WebViewImpl::didCommit):
299         * src/WebViewImpl.h:
300         (WebViewImpl):
301         * tests/CCLayerTreeHostTest.cpp:
302         (WTF::MockLayerTreeHostClient::didCommit):
303         (MockLayerTreeHostClient):
304         * tests/FakeCCLayerTreeHostClient.h:
305         (FakeCCLayerTreeHostClient):
306
307 2012-03-26  Vangelis Kokkevis  <vangelis@chromium.org>
308
309         [chromium] Simplify and fix CCLayerSorter
310         https://bugs.webkit.org/show_bug.cgi?id=82114
311
312         Adjustments to the CCLayerSorter unit tests to account for API changes in the
313         CCLayerSorter class.
314
315         Reviewed by Kenneth Russell.
316
317         * tests/CCLayerSorterTest.cpp:
318         (WebCore):
319         (WebCore::TEST):
320
321 2012-03-26  James Robinson  <jamesr@chromium.org>
322
323         Scrollable plugins not registered properly in ScrollingCoordinator
324         https://bugs.webkit.org/show_bug.cgi?id=82163
325
326         Reviewed by Anders Carlsson.
327
328         * src/WebPluginContainerImpl.cpp:
329         (WebKit::WebPluginContainerImpl::scrollable):
330         * src/WebPluginContainerImpl.h:
331         (WebPluginContainerImpl):
332
333 2012-03-26  W. James MacLean  <wjmaclean@chromium.org>
334
335         [chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel.
336         https://bugs.webkit.org/show_bug.cgi?id=82133
337
338         Reviewed by James Robinson.
339
340         * src/WebCompositorInputHandlerImpl.cpp:
341         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
342         * tests/CCLayerTreeHostImplTest.cpp:
343         (WebKitTests::TEST_F):
344
345 2012-03-26  Terry Anderson  <tdanderson@chromium.org>
346
347         [chromium] Allow the viewport meta tag to be disabled for testing purposes
348         https://bugs.webkit.org/show_bug.cgi?id=81940
349
350         Reviewed by Adam Barth.
351
352         * public/WebSettings.h:
353         * src/ChromeClientImpl.cpp:
354         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
355         * src/WebSettingsImpl.cpp:
356         (WebKit::WebSettingsImpl::WebSettingsImpl):
357         (WebKit::WebSettingsImpl::setViewportEnabled):
358         (WebKit):
359         * src/WebSettingsImpl.h:
360         (WebSettingsImpl):
361         (WebKit::WebSettingsImpl::viewportEnabled):
362
363 2012-03-25  Nat Duca  <nduca@chromium.org>
364
365         [chromium] Route willBeginFrame from compositor to WebWidget
366         https://bugs.webkit.org/show_bug.cgi?id=82171
367
368         Reviewed by Darin Fisher.
369
370         * public/WebWidgetClient.h:
371         (WebWidgetClient):
372         (WebKit::WebWidgetClient::willBeginCompositorFrame):
373         * src/WebLayerTreeViewImpl.cpp:
374         (WebKit::WebLayerTreeViewImpl::willBeginFrame):
375         (WebKit):
376         * src/WebLayerTreeViewImpl.h:
377         (WebLayerTreeViewImpl):
378         * src/WebViewImpl.cpp:
379         (WebKit::WebViewImpl::willBeginFrame):
380         (WebKit):
381         * src/WebViewImpl.h:
382         (WebViewImpl):
383         * tests/CCLayerTreeHostTest.cpp:
384         (WTF::MockLayerTreeHostClient::willBeginFrame):
385         (MockLayerTreeHostClient):
386         * tests/FakeCCLayerTreeHostClient.h:
387         (WebCore::FakeCCLayerTreeHostClient::willBeginFrame):
388
389 2012-03-25  Dana Jansens  <danakj@chromium.org>
390
391         [chromium] Layers with animating transforms should prepaint even if they are not visible yet
392         https://bugs.webkit.org/show_bug.cgi?id=82117
393
394         Reviewed by Adrienne Walker.
395
396         * tests/TiledLayerChromiumTest.cpp:
397         (WTF::FakeTiledLayerChromium::FakeTiledLayerChromium):
398         (WTF::FakeTiledLayerChromium::tileSize):
399         (FakeTiledLayerChromium):
400         (WTF::TEST):
401         (WTF):
402         (WTF::idlePaintRepeat):
403         (WTF::testHaveOuterTiles):
404
405 2012-03-24  Nat Duca  <nduca@chromium.org>
406
407         [chromium] Instrument gesture animations with async traces
408         https://bugs.webkit.org/show_bug.cgi?id=82076
409
410         Reviewed by Adrienne Walker.
411
412         * src/WebCompositorInputHandlerImpl.cpp:
413         (WebCore::PlatformGestureToCCGestureAdapter::debugName):
414         (PlatformGestureToCCGestureAdapter):
415
416 2012-03-23  Shawn Singh  <shawnsingh@chromium.org>
417
418         [chromium] Incorrect replica originTransform used in CCDamageTracker
419         https://bugs.webkit.org/show_bug.cgi?id=82118
420
421         Reviewed by Adrienne Walker.
422
423         * tests/CCDamageTrackerTest.cpp:
424         (WebKitTests::TEST_F):
425         (WebKitTests):
426
427 2012-03-23  Dana Jansens  <danakj@chromium.org>
428
429         [chromium] When prepainting fails, tiles dirty rects may be cleared
430         https://bugs.webkit.org/show_bug.cgi?id=82107
431
432         Reviewed by Adrienne Walker.
433
434         * tests/TiledLayerChromiumTest.cpp:
435         (WTF::FakeTextureAllocator::createTexture):
436         (WTF::FakeLayerTextureUpdater::Texture::updateRect):
437         (FakeCCTiledLayerImpl):
438         (WTF::FakeCCTiledLayerImpl::hasTextureIdForTileAt):
439         (WTF::TEST):
440         (WTF):
441
442 2012-03-23  W. James MacLean  <wjmaclean@chromium.org>
443
444         [chromium] CCLayerTreeHostImpl::scrollBegin() should return ScrollFailed for CCInputHandlerClient::Gesture type when wheel handlers found.
445         https://bugs.webkit.org/show_bug.cgi?id=82106
446
447         Reviewed by Adrienne Walker.
448
449         * tests/CCLayerTreeHostImplTest.cpp:
450         (WebKit::TEST_F):
451
452 2012-03-23  Shawn Singh  <shawnsingh@chromium.org>
453
454         [chromium] Fix race bug that clobbers CCLayerImpl updateRect
455         https://bugs.webkit.org/show_bug.cgi?id=82109
456
457         Reviewed by Dirk Pranke.
458
459         * tests/LayerChromiumTest.cpp:
460
461 2012-03-23  Daniel Cheng  <dcheng@chromium.org>
462
463         [chromium] Support file drag out using DataTransferItemList::add(File)
464         https://bugs.webkit.org/show_bug.cgi?id=81261
465
466         Reviewed by Tony Chang.
467
468         Original patch by Varun Jain <varunjain@chromium.org>.
469         I've updated the original patch to add some asserts for conditions we shouldn't encounter as
470         well as removing some redundant null checks.
471
472         * src/WebDragData.cpp:
473         (WebKit::WebDragData::items):
474
475 2012-03-23  Dana Jansens  <danakj@chromium.org>
476
477         [chromium] Record painted pixel counts for measuring effectiveness of per-tile painting
478         https://bugs.webkit.org/show_bug.cgi?id=82057
479
480         Reviewed by Adrienne Walker.
481
482         * tests/TiledLayerChromiumTest.cpp:
483         (WTF::TEST):
484         (WTF):
485
486 2012-03-23  Adrienne Walker  <enne@google.com>
487
488         [chromium] Fix scrollbarLayerLostContext flaky test crash on 10.6
489         https://bugs.webkit.org/show_bug.cgi?id=82062
490
491         Reviewed by James Robinson.
492
493         Override the paint function so that it becomes a no-op. Painting
494         scrollbars on the impl thread is not yet supported on platforms other
495         than Linux or ChromeOS.
496
497         * tests/CCLayerTreeHostImplTest.cpp:
498         (ScrollbarLayerFakePaint):
499         (WebKitTests::ScrollbarLayerFakePaint::create):
500         (WebKitTests::ScrollbarLayerFakePaint::paint):
501         (WebKitTests::ScrollbarLayerFakePaint::ScrollbarLayerFakePaint):
502         (WebKitTests):
503         (WebKitTests::TEST_F):
504
505 2012-03-23  Tommy Widenflycht  <tommyw@google.com>
506
507         [chromium] MediaStream API (JSEP): Extending WebMediaStreamCenter
508         https://bugs.webkit.org/show_bug.cgi?id=81924
509
510         Reviewed by Adam Barth.
511
512         Adding the two constructSDP methods.
513
514         * bridge/MediaStreamCenter.cpp:
515         (WebCore::MediaStreamCenter::constructSDP):
516         (WebCore):
517         * bridge/MediaStreamCenterInternal.cpp:
518         (WebCore::MediaStreamCenterInternal::constructSDP):
519         (WebCore):
520         * bridge/MediaStreamCenterInternal.h:
521         (WebCore):
522         (MediaStreamCenterInternal):
523         * public/platform/WebMediaStreamCenter.h:
524         (WebKit):
525         (WebMediaStreamCenter):
526         (WebKit::WebMediaStreamCenter::constructSDP):
527
528 2012-03-23  Jonathan Backer  <backer@chromium.org>
529
530         [chromium] Remove unused variables from unittest.
531         https://bugs.webkit.org/show_bug.cgi?id=82054
532
533         Reviewed by Adrienne Walker.
534
535         * tests/CCLayerTreeHostImplTest.cpp:
536         (WebKitTests::TEST_F):
537
538 2012-03-23  Ryosuke Niwa  <rniwa@webkit.org>
539
540         Chromium DEPS roll r127913:r128426.
541
542         * DEPS:
543
544 2012-03-22  Shawn Singh  <shawnsingh@chromium.org>
545
546         [chromium] Target surface should be damaged for a new layers even when layer had no changes
547         https://bugs.webkit.org/show_bug.cgi?id=81879
548
549         Reviewed by Adrienne Walker.
550
551         * tests/CCDamageTrackerTest.cpp:
552         (WebKitTests::TEST_F):
553         (WebKitTests):
554
555 2012-03-22  Adrienne Walker  <enne@google.com>
556
557         [chromium] Unreviewed, fix LayerRendererChromiumTest debug unit test errors
558         https://bugs.webkit.org/show_bug.cgi?id=81823
559
560         * tests/LayerRendererChromiumTest.cpp:
561         (FakeLayerRendererChromiumClient):
562
563 2012-03-22  Michal Mocny  <mmocny@google.com>
564
565         [chromium] Removing failing unit test - CCLayerTreeHostImplTest.visibilityChangeResetsDamage
566         https://bugs.webkit.org/show_bug.cgi?id=82003
567
568         Reviewed by Adrienne Walker.
569
570         * tests/CCLayerTreeHostImplTest.cpp:
571         (WebKitTests::TEST_F):
572
573 2012-03-22  Robert Kroeger  <rjkroege@chromium.org>
574
575         [chromium] Halt in progress flings on receipt of key events
576         https://bugs.webkit.org/show_bug.cgi?id=81988
577
578         Reviewed by Adrienne Walker.
579
580         * src/WebCompositorInputHandlerImpl.cpp:
581         (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
582         * src/WebViewImpl.cpp:
583         (WebKit::WebViewImpl::keyEvent):
584
585 2012-03-22  Dana Jansens  <danakj@chromium.org>
586
587         [chromium] Skip frames when checkerboarding an animation
588         https://bugs.webkit.org/show_bug.cgi?id=81716
589
590         Reviewed by Adrienne Walker.
591
592         * tests/CCLayerTreeHostImplTest.cpp:
593         (WebKitTests::TEST_F):
594         * tests/CCSchedulerStateMachineTest.cpp:
595         (WebCore::TEST):
596         (WebCore):
597         * tests/CCSchedulerTest.cpp:
598         (WebKitTests::FakeCCSchedulerClient::reset):
599         (WebKitTests::FakeCCSchedulerClient::numDraws):
600         (WebKitTests::FakeCCSchedulerClient::scheduledActionDrawAndSwapIfPossible):
601         (FakeCCSchedulerClient):
602         (WebKitTests::FakeCCSchedulerClient::scheduledActionDrawAndSwapForced):
603         (WebKitTests::FakeCCSchedulerClient::setDrawSuccess):
604         (WebKitTests::TEST):
605         (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::SchedulerClientThatSetNeedsDrawInsideDraw):
606         (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionDrawAndSwapIfPossible):
607         (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionDrawAndSwapForced):
608         (SchedulerClientThatSetNeedsDrawInsideDraw):
609         (WebKitTests):
610         (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::SchedulerClientThatSetNeedsCommitInsideDraw):
611         (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionDrawAndSwapIfPossible):
612         (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionDrawAndSwapForced):
613         (SchedulerClientThatSetNeedsCommitInsideDraw):
614         * tests/CCSchedulerTestCommon.h:
615         (FakeCCFrameRateController):
616         (WebKitTests::FakeCCFrameRateController::FakeCCFrameRateController):
617         (WebKitTests::FakeCCFrameRateController::numFramesPending):
618         (WebKitTests):
619
620 2012-03-22  W. James MacLean  <wjmaclean@chromium.org>
621
622         [chromium] Force update of nonFastScrollableRegion if target CCLayerImpl has been freshly created.
623         https://bugs.webkit.org/show_bug.cgi?id=81968
624
625         Reviewed by Adrienne Walker.
626
627         * tests/TreeSynchronizerTest.cpp:
628         (WebKitTests::expectTreesAreIdentical):
629         (WebKitTests::TEST):
630         (WebKitTests):
631
632 2012-03-22  Michal Mocny  <mmocny@google.com>
633
634         [chromium] LayerRendererChromium should use GpuMemoryAllocationChanged callback to explicitly manage framebuffer.
635         https://bugs.webkit.org/show_bug.cgi?id=81823
636
637         Reviewed by Adrienne Walker.
638
639         * WebKit.gypi:
640         * tests/LayerRendererChromiumTest.cpp: Added.
641         (FrameCountingMemoryAllocationSettingContext):
642         (FrameCountingMemoryAllocationSettingContext::FrameCountingMemoryAllocationSettingContext):
643         (FrameCountingMemoryAllocationSettingContext::prepareTexture):
644         (FrameCountingMemoryAllocationSettingContext::setMemoryAllocationChangedCallbackCHROMIUM):
645         (FrameCountingMemoryAllocationSettingContext::getString):
646         (FrameCountingMemoryAllocationSettingContext::frameCount):
647         (FrameCountingMemoryAllocationSettingContext::setMemoryAllocation):
648         (FakeLayerRendererChromiumClient):
649         (FakeLayerRendererChromiumClient::FakeLayerRendererChromiumClient):
650         (FakeLayerRendererChromiumClient::viewportSize):
651         (FakeLayerRendererChromiumClient::settings):
652         (FakeLayerRendererChromiumClient::rootLayer):
653         (FakeLayerRendererChromiumClient::didLoseContext):
654         (FakeLayerRendererChromiumClient::onSwapBuffersComplete):
655         (FakeLayerRendererChromiumClient::setFullRootLayerDamage):
656         (FakeLayerRendererChromiumClient::setFullRootLayerDamageCount):
657         (FakeLayerRendererChromium):
658         (FakeLayerRendererChromium::FakeLayerRendererChromium):
659         (LayerRendererChromiumTest):
660         (LayerRendererChromiumTest::LayerRendererChromiumTest):
661         (LayerRendererChromiumTest::SetUp):
662         (LayerRendererChromiumTest::swapBuffers):
663         (TEST_F):
664
665 2012-03-22  Shawn Singh  <shawnsingh@chromium.org>
666
667         [chromium] Make CCDamageTracker robust to empty layer lists
668         https://bugs.webkit.org/show_bug.cgi?id=81831
669
670         Reviewed by Adrienne Walker.
671
672         * tests/CCDamageTrackerTest.cpp:
673         (WebKitTests::emulateDrawingOneFrame): modified args passed to damage tracker on update.
674
675         (WebKitTests::TEST_F): Added another unit test.
676         (WebKitTests):
677
678 2012-03-22  Bernhard Bauer  <bauerb@google.com>
679
680         [chromium] Plug-in failing to load shouldn't say "Missing Plug-in"
681         https://bugs.webkit.org/show_bug.cgi?id=81907
682
683         Reviewed by Adam Barth.
684
685         Adding a MissingPluginText value to WebLocalizedString which can be used to override the "Missing Plug-in" message.
686
687         * public/platform/WebLocalizedString.h:
688         * src/LocalizedStrings.cpp:
689         (WebCore::missingPluginText):
690
691 2012-03-22  Adrienne Walker  <enne@google.com>
692
693         [chromium] Fix scrollbar layers holding onto invalid textures after lost context
694         https://bugs.webkit.org/show_bug.cgi?id=81841
695
696         Reviewed by James Robinson.
697
698         * tests/CCLayerTreeHostImplTest.cpp:
699         (WebKitTests::TEST_F):
700         (WebKitTests):
701
702 2012-03-22  Dana Jansens  <danakj@chromium.org>
703
704         [chromium] Early out in a new prepareToDraw() step if checkerboarding an accelerated animation in order to skip the frame
705         https://bugs.webkit.org/show_bug.cgi?id=81437
706
707         Reviewed by Adrienne Walker.
708
709         * tests/CCAnimationTestCommon.cpp:
710         (WebCore):
711         (WebCore::addAnimatedTransform):
712         (WebKitTests::addOpacityTransitionToLayer):
713         (WebKitTests):
714         (WebKitTests::addAnimatedTransformToLayer):
715         * tests/CCAnimationTestCommon.h:
716         (WebCore):
717         (WebKitTests):
718         * tests/CCLayerTreeHostImplTest.cpp:
719         (WebKitTests::TEST_F):
720         (DidDrawCheckLayer):
721         (WebKitTests::DidDrawCheckLayer::DidDrawCheckLayer):
722         (MissingTextureAnimatingLayer):
723         (WebKitTests::MissingTextureAnimatingLayer::create):
724         (WebKitTests::MissingTextureAnimatingLayer::MissingTextureAnimatingLayer):
725         (WebKitTests):
726         (WebKitTests::BlendStateCheckLayer::appendQuads):
727         * tests/CCLayerTreeHostTest.cpp:
728         (WTF::TestHooks::prepareToDrawOnCCThread):
729         (WTF::MockLayerTreeHostImpl::prepareToDraw):
730         (MockLayerTreeHostImpl):
731         (WTF::MockLayerTreeHostImpl::drawLayers):
732         * tests/CCQuadCullerTest.cpp:
733         (WebCore::appendQuads):
734         * tests/CCSolidColorLayerImplTest.cpp:
735         (CCLayerTestCommon::TEST):
736         * tests/CCTiledLayerImplTest.cpp:
737         (CCLayerTestCommon::TEST):
738         (CCLayerTestCommon::getQuads):
739         * tests/MockCCQuadCuller.h:
740         (WebCore::MockCCQuadCuller::append):
741
742 2012-03-22  W. James MacLean  <wjmaclean@chromium.org>
743
744         Rename touchpad fling curve, add curve parameters to constructor.
745         https://bugs.webkit.org/show_bug.cgi?id=81820
746
747         Reviewed by Adrienne Walker.
748
749         * src/WebCompositorInputHandlerImpl.cpp:
750         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
751         * src/WebViewImpl.cpp:
752         (WebKit::WebViewImpl::gestureEvent):
753         * tests/PlatformGestureCurveTest.cpp:
754
755 2012-03-21  Ian Vollick  <vollick@chromium.org>
756
757         [chromium] timing functions are getting incorrectly applied for accelerated css transitions
758         https://bugs.webkit.org/show_bug.cgi?id=81692
759
760         Reviewed by Adrienne Walker.
761
762         * tests/CCAnimationTestCommon.cpp:
763         (WebCore::addOpacityTransition):
764         (WebKitTests::addOpacityTransitionToController):
765         (WebKitTests::addOpacityTransitionToLayer):
766         * tests/CCAnimationTestCommon.h:
767         (WebKitTests):
768         * tests/CCLayerAnimationControllerTest.cpp:
769         (WebKitTests::TEST):
770         * tests/CCLayerTreeHostTest.cpp:
771         (WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation):
772         (WTF::CCLayerTreeHostTest::dispatchAddAnimation):
773         (WTF::TEST_F):
774         (WTF):
775         (CCLayerTreeHostTestAddAnimationWithTimingFunction):
776         (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::CCLayerTreeHostTestAddAnimationWithTimingFunction):
777         (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::beginTest):
778         (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::animateLayers):
779         (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::afterTest):
780
781 2012-03-22  Kenichi Ishibashi  <bashi@chromium.org>
782
783         [Chromium] Should check m_socket in SocketStreamHandleInternal::close()
784         https://bugs.webkit.org/show_bug.cgi?id=81860
785
786         Reviewed by Kent Tamura.
787
788         m_socket could be NULL if WebSocket::resume() is called after SocketStreamHandle::didClose() is called.
789         This could happen when the page shows a popup dialog (by using alert()) immediately after closing an WebSocket object.
790
791         * src/SocketStreamHandle.cpp:
792         (WebCore::SocketStreamHandleInternal::close): Ensures m_socket is not NULL.
793
794 2012-03-21  Sheriff Bot  <webkit.review.bot@gmail.com>
795
796         Unreviewed, rolling out r111616.
797         http://trac.webkit.org/changeset/111616
798         https://bugs.webkit.org/show_bug.cgi?id=81862
799
800         broke chromium mac (Requested by eae on #webkit).
801
802         * tests/CCAnimationTestCommon.cpp:
803         * tests/CCAnimationTestCommon.h:
804         (WebKitTests):
805         * tests/CCLayerTreeHostImplTest.cpp:
806         (WebKit::TEST_F):
807         (DidDrawCheckLayer):
808         (WebKit::DidDrawCheckLayer::DidDrawCheckLayer):
809         (WebKit::BlendStateCheckLayer::appendQuads):
810         * tests/CCLayerTreeHostTest.cpp:
811         (WTF::MockLayerTreeHostImpl::drawLayers):
812         * tests/CCQuadCullerTest.cpp:
813         (WebCore::appendQuads):
814         * tests/CCSolidColorLayerImplTest.cpp:
815         (CCLayerTestCommon::TEST):
816         * tests/CCTiledLayerImplTest.cpp:
817         (CCLayerTestCommon::TEST):
818         (CCLayerTestCommon::getQuads):
819         * tests/MockCCQuadCuller.h:
820         (WebCore::MockCCQuadCuller::append):
821
822 2012-03-21  Dana Jansens  <danakj@chromium.org>
823
824         [chromium] Early out in a new prepareToDraw() step if checkerboarding an accelerated animation in order to skip the frame
825         https://bugs.webkit.org/show_bug.cgi?id=81437
826
827         Reviewed by Adrienne Walker.
828
829         * tests/CCAnimationTestCommon.cpp:
830         (WebCore):
831         (WebCore::addAnimatedTransform):
832         (WebKitTests::addOpacityTransitionToLayer):
833         (WebKitTests):
834         (WebKitTests::addAnimatedTransformToLayer):
835         * tests/CCAnimationTestCommon.h:
836         (WebCore):
837         (WebKitTests):
838         * tests/CCLayerTreeHostImplTest.cpp:
839         (WebKitTests::TEST_F):
840         (DidDrawCheckLayer):
841         (WebKitTests::DidDrawCheckLayer::DidDrawCheckLayer):
842         (MissingTextureAnimatingLayer):
843         (WebKitTests::MissingTextureAnimatingLayer::create):
844         (WebKitTests::MissingTextureAnimatingLayer::MissingTextureAnimatingLayer):
845         (WebKitTests):
846         (WebKitTests::BlendStateCheckLayer::appendQuads):
847         * tests/CCLayerTreeHostTest.cpp:
848         (WTF::TestHooks::prepareToDrawOnCCThread):
849         (WTF::MockLayerTreeHostImpl::prepareToDraw):
850         (MockLayerTreeHostImpl):
851         (WTF::MockLayerTreeHostImpl::drawLayers):
852         * tests/CCQuadCullerTest.cpp:
853         (WebCore::appendQuads):
854         * tests/CCSolidColorLayerImplTest.cpp:
855         (CCLayerTestCommon::TEST):
856         * tests/CCTiledLayerImplTest.cpp:
857         (CCLayerTestCommon::TEST):
858         (CCLayerTestCommon::getQuads):
859         * tests/MockCCQuadCuller.h:
860         (WebCore::MockCCQuadCuller::append):
861
862 2012-03-21  Alexandru Chiculita  <achicu@adobe.com>
863
864         [CSS Shaders] Make CSS Shaders compile on Chromium
865         https://bugs.webkit.org/show_bug.cgi?id=81435
866
867         Reviewed by Stephen White.
868
869         I've added the ENABLE_CSS_SHADERS flag by default, but kept CSS Shaders disabled using the runtime flag.
870         
871         This change adds a new public API to WebSettings with syntax void setExperimentalCSSCustomFilterEnabled(bool).
872
873         * features.gypi:
874         * public/WebSettings.h:
875         * src/WebSettingsImpl.cpp:
876         (WebKit::WebSettingsImpl::setExperimentalCSSCustomFilterEnabled):
877         (WebKit):
878         * src/WebSettingsImpl.h:
879         (WebSettingsImpl):
880
881 2012-03-21  David Reveman  <reveman@chromium.org>
882
883         [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support.
884         https://bugs.webkit.org/show_bug.cgi?id=80988
885
886         Reviewed by Adrienne Walker.
887
888         Expose EXT_occlusion_query API to WebKit compositor.
889
890         * src/Extensions3DChromium.cpp:
891         (WebCore::Extensions3DChromium::createQueryEXT):
892         (WebCore):
893         (WebCore::Extensions3DChromium::deleteQueryEXT):
894         (WebCore::Extensions3DChromium::isQueryEXT):
895         (WebCore::Extensions3DChromium::beginQueryEXT):
896         (WebCore::Extensions3DChromium::endQueryEXT):
897         (WebCore::Extensions3DChromium::getQueryivEXT):
898         (WebCore::Extensions3DChromium::getQueryObjectuivEXT):
899         * src/GraphicsContext3DChromium.cpp:
900         (WebCore):
901         * src/GraphicsContext3DPrivate.h:
902         (GraphicsContext3DPrivate):
903         * tests/FakeWebGraphicsContext3D.h:
904         (WebKit::FakeWebGraphicsContext3D::createQueryEXT):
905         (WebKit::FakeWebGraphicsContext3D::deleteQueryEXT):
906         (WebKit::FakeWebGraphicsContext3D::isQueryEXT):
907         (WebKit::FakeWebGraphicsContext3D::beginQueryEXT):
908         (WebKit::FakeWebGraphicsContext3D::endQueryEXT):
909         (WebKit::FakeWebGraphicsContext3D::getQueryivEXT):
910         (WebKit::FakeWebGraphicsContext3D::getQueryObjectuivEXT):
911         (FakeWebGraphicsContext3D):
912
913 2012-03-21  Tommy Widenflycht  <tommyw@google.com>
914
915         [chromium] MediaStream API (JSEP): Enhancing WebMediaHints and WebICEOptions
916         https://bugs.webkit.org/show_bug.cgi?id=81652
917
918         Reviewed by Adam Barth.
919
920         Adding an initialize method to WebMediaHints and WebICEOptions.
921         This is needed for Chromium unittests.
922
923         * public/platform/WebICEOptions.h:
924         (WebKit::WebICEOptions::WebICEOptions):
925         (WebICEOptions):
926         * public/platform/WebMediaHints.h:
927         (WebKit::WebMediaHints::WebMediaHints):
928         (WebMediaHints):
929         * src/AssertMatchingEnums.cpp:
930         * src/WebICEOptions.cpp:
931         (WebKit::WebICEOptions::initialize):
932         (WebKit):
933         (WebKit::WebICEOptions::candidateTypeToUse):
934         * src/WebMediaHints.cpp:
935         (WebKit::WebMediaHints::initialize):
936         (WebKit):
937
938 2012-03-21  Tommy Widenflycht  <tommyw@google.com>
939
940         [chromium] MediaStream API (JSEP): Introducing WebSessionDescription and WebIceCandidate
941         https://bugs.webkit.org/show_bug.cgi?id=81339
942
943         Reviewed by Adam Barth.
944
945         Simple WebKit representations of the WebCore/platform versions.
946
947         * WebKit.gyp:
948         * public/platform/WebICECandidateDescriptor.h: Added.
949         (WebCore):
950         (WebKit):
951         (WebICECandidateDescriptor):
952         (WebKit::WebICECandidateDescriptor::WebICECandidateDescriptor):
953         (WebKit::WebICECandidateDescriptor::~WebICECandidateDescriptor):
954         (WebKit::WebICECandidateDescriptor::operator=):
955         (WebKit::WebICECandidateDescriptor::isNull):
956         * public/platform/WebSessionDescriptionDescriptor.h: Added.
957         (WebCore):
958         (WebKit):
959         (WebSessionDescriptionDescriptor):
960         (WebKit::WebSessionDescriptionDescriptor::WebSessionDescriptionDescriptor):
961         (WebKit::WebSessionDescriptionDescriptor::~WebSessionDescriptionDescriptor):
962         (WebKit::WebSessionDescriptionDescriptor::operator=):
963         (WebKit::WebSessionDescriptionDescriptor::isNull):
964         * src/WebICECandidateDescriptor.cpp: Added.
965         (WebKit):
966         (WebKit::WebICECandidateDescriptor::WebICECandidateDescriptor):
967         (WebKit::WebICECandidateDescriptor::assign):
968         (WebKit::WebICECandidateDescriptor::reset):
969         (WebKit::WebICECandidateDescriptor::initialize):
970         (WebKit::WebICECandidateDescriptor::operator PassRefPtr<WebCore::IceCandidateDescriptor>):
971         (WebKit::WebICECandidateDescriptor::label):
972         (WebKit::WebICECandidateDescriptor::candidateLine):
973         * src/WebSessionDescriptionDescriptor.cpp: Added.
974         (WebKit):
975         (WebKit::WebSessionDescriptionDescriptor::WebSessionDescriptionDescriptor):
976         (WebKit::WebSessionDescriptionDescriptor::assign):
977         (WebKit::WebSessionDescriptionDescriptor::reset):
978         (WebKit::WebSessionDescriptionDescriptor::operator WTF::PassRefPtr<WebCore::SessionDescriptionDescriptor>):
979         (WebKit::WebSessionDescriptionDescriptor::initialize):
980         (WebKit::WebSessionDescriptionDescriptor::numberOfAddedCandidates):
981         (WebKit::WebSessionDescriptionDescriptor::candidate):
982         (WebKit::WebSessionDescriptionDescriptor::initialSDP):
983
984 2012-03-21  Sami Kyostila  <skyostil@chromium.org>
985
986         [chromium] Use floating point scroll deltas for layers
987         https://bugs.webkit.org/show_bug.cgi?id=81546
988
989         Reviewed by James Robinson.
990
991         New unit test for accumulating fractional scroll deltas across multiple commits.
992
993         * tests/CCLayerTreeHostTest.cpp:
994         (CCLayerTreeHostTestFractionalScroll):
995         (WTF::CCLayerTreeHostTestFractionalScroll::CCLayerTreeHostTestFractionalScroll):
996         (WTF::CCLayerTreeHostTestFractionalScroll::beginTest):
997         (WTF::CCLayerTreeHostTestFractionalScroll::drawLayersOnCCThread):
998         (WTF::CCLayerTreeHostTestFractionalScroll::applyScrollAndScale):
999         (WTF::CCLayerTreeHostTestFractionalScroll::afterTest):
1000         (WTF):
1001         (WTF::TEST_F):
1002
1003 2012-03-21  Joshua Bell  <jsbell@chromium.org>
1004
1005         [Chromium] IndexedDB: Expose necessary IDB exception codes through WebKit API
1006         https://bugs.webkit.org/show_bug.cgi?id=81597
1007
1008         To fix http://crbug.com/96826 and http://crbug.com/113118 we need to be able throw
1009         exceptions from the Chromium side, so expose the necessary members of IDBDatabaseException.
1010
1011         Reviewed by Darin Fisher.
1012
1013         * WebKit.gyp:
1014         * public/WebIDBDatabaseException.h: Added.
1015         (WebKit):
1016         * src/AssertMatchingEnums.cpp:
1017
1018 2012-03-21  Tim Dresser  <tdresser@chromium.org>
1019
1020         [chromium] Increase size of Combo Box Options for touch and high DPI devices
1021         https://bugs.webkit.org/show_bug.cgi?id=80027
1022
1023         Reviewed by Darin Fisher.
1024
1025         * src/WebViewImpl.cpp:
1026         (WebKit::WebViewImpl::gestureEvent):
1027         (WebKit::WebViewImpl::applyAutofillSuggestions):
1028         * tests/PopupMenuTest.cpp:
1029         (WebKit::TestWebViewClient::screenInfo):
1030         (WebKit::SelectPopupMenuTest::SetUp):
1031         (WebKit::SelectPopupMenuTest::TearDown):
1032         (SelectPopupMenuTest):
1033
1034 2012-03-21  Takashi Toyoshima  <toyoshim@chromium.org>
1035
1036         [Chromium] [WebSocket] provide WebFrameClient with a chance of
1037         accessing to opening WebSocketStreamHandle.
1038         https://bugs.webkit.org/show_bug.cgi?id=78459
1039
1040         Reviewed by Kent Tamura and Darin Fisher.
1041
1042         Add dispatchWillOpenSocketStream client function to WebFrameClient with
1043         an argument representing an opening SocketStreamHandle.
1044         These mechanisms provide embedders with a chance to bind arbitrary
1045         data to a WebSocketStreamHandle from WebFrameClient to which the
1046         WebSocket object having the WebSocketStreamHandle belongs.
1047
1048         No new tests because this change just provide mechanisms to embedders.
1049
1050         * public/WebFrameClient.h: Add dispatchWillOpenSocketStream declaration.
1051         (WebKit):
1052         (WebFrameClient):
1053         (WebKit::WebFrameClient::willOpenSocketStream):
1054         * public/platform/WebSocketStreamHandle.h: Add default implementation to virtual functions.
1055         (WebKit::WebSocketStreamHandle::connect):
1056         (WebKit::WebSocketStreamHandle::send):
1057         (WebKit::WebSocketStreamHandle::close):
1058         * src/FrameLoaderClientImpl.cpp: Implement dispatchWillOpenSocketStream.
1059         (WebKit::FrameLoaderClientImpl::dispatchWillOpenSocketStream):
1060         (WebKit):
1061         * src/FrameLoaderClientImpl.h: Add dispatchWillOpenSocketStream declaratioin.
1062         (FrameLoaderClientImpl):
1063         * src/SocketStreamHandle.cpp: Call willOpenSocketStream client function.
1064         (WebCore::SocketStreamHandleInternal::connect):
1065
1066 2012-03-21  Ian Vollick  <vollick@chromium.org>
1067
1068         [chromium] timing functions are getting incorrectly applied for accelerated css transitions
1069         https://bugs.webkit.org/show_bug.cgi?id=81692
1070
1071         Reviewed by Adrienne Walker.
1072
1073         * tests/CCAnimationTestCommon.cpp:
1074         (WebCore::addOpacityTransition):
1075         (WebKitTests::addOpacityTransitionToController):
1076         (WebKitTests::addOpacityTransitionToLayer):
1077         * tests/CCAnimationTestCommon.h:
1078         (WebKitTests):
1079         * tests/CCLayerAnimationControllerTest.cpp:
1080         (WebKitTests::TEST):
1081         * tests/CCLayerTreeHostTest.cpp:
1082         (WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation):
1083         (WTF::CCLayerTreeHostTest::dispatchAddAnimation):
1084         (WTF::TEST_F):
1085         (WTF):
1086         (CCLayerTreeHostTestAddAnimationWithTimingFunction):
1087         (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::CCLayerTreeHostTestAddAnimationWithTimingFunction):
1088         (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::beginTest):
1089         (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::animateLayers):
1090         (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::afterTest):
1091
1092 2012-03-21  Ian Vollick  <vollick@chromium.org>
1093
1094         [chromium] Animation events should only be used for synchronizing animation start times
1095         https://bugs.webkit.org/show_bug.cgi?id=81484
1096
1097         Reviewed by Adrienne Walker.
1098
1099         * tests/CCLayerTreeHostTest.cpp:
1100         (WTF):
1101         (CCLayerTreeHostTestSynchronizeAnimationStartTimes):
1102         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::CCLayerTreeHostTestSynchronizeAnimationStartTimes):
1103         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::beginTest):
1104         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::animateLayers):
1105         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::afterTest):
1106         (WTF::TEST_F):
1107
1108 2012-03-21  Peter Beverloo  <peter@chromium.org>
1109
1110         [Chromium] Remove Android build-fix when the proper fix rolled into WebKit
1111         https://bugs.webkit.org/show_bug.cgi?id=80861
1112
1113         Reviewed by Tony Chang.
1114
1115         No longer set the CC.target environment variable as this is no longer
1116         required for project file generation.
1117
1118         * gyp_webkit:
1119
1120 2012-03-21  Peter Beverloo  <peter@chromium.org>
1121
1122         Unreviewed.  Rolled DEPS.
1123
1124         * DEPS:
1125
1126 2012-03-20  Dana Jansens  <danakj@chromium.org>
1127
1128         [chromium] Use origin transform to transform occlusion from surface content space to its target content space
1129         https://bugs.webkit.org/show_bug.cgi?id=81730
1130
1131         Reviewed by Adrienne Walker.
1132
1133         * tests/CCOcclusionTrackerTest.cpp:
1134         (WebCore):
1135         (CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent):
1136         (WebCore::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest):
1137
1138 2012-03-20  Dana Jansens  <danakj@chromium.org>
1139
1140         [chromium] Store origin/screen space transforms for surface and replica in the surface
1141         https://bugs.webkit.org/show_bug.cgi?id=81296
1142
1143         Reviewed by Adrienne Walker.
1144
1145         * tests/CCLayerTreeHostCommonTest.cpp:
1146         (WebCore::TEST):
1147
1148 2012-03-20  W. James MacLean  <wjmaclean@chromium.org>
1149
1150         [chromium] Convert TouchFlingPlatformGestureCurve to a 2-D Bezier for better control of curve shape.
1151         https://bugs.webkit.org/show_bug.cgi?id=81713
1152
1153         Reviewed by Dirk Pranke.
1154
1155         * tests/PlatformGestureCurveTest.cpp:
1156
1157 2012-03-20  Dana Jansens  <danakj@chromium.org>
1158
1159         [chromium] Allow us to disable overdraw metrics when tracing is off
1160         https://bugs.webkit.org/show_bug.cgi?id=81431
1161
1162         Reviewed by Adrienne Walker.
1163
1164         * tests/CCOcclusionTrackerTest.cpp:
1165         (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase):
1166         * tests/CCQuadCullerTest.cpp:
1167         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
1168         (WebCore::TEST):
1169         (WebCore):
1170         * tests/TiledLayerChromiumTest.cpp:
1171         (WTF::TestCCOcclusionTracker::TestCCOcclusionTracker):
1172
1173 2012-03-20  Dana Jansens  <danakj@chromium.org>
1174
1175         [chromium] Use opaque contents for paint culling
1176         https://bugs.webkit.org/show_bug.cgi?id=81676
1177
1178         Reviewed by Adrienne Walker.
1179
1180         * tests/CCLayerTreeHostTest.cpp:
1181         (WTF::TestLayerChromium::opaqueContentsRegion):
1182         (WTF::TestLayerChromium::setOpaqueContentsRect):
1183         (TestLayerChromium):
1184         (CCLayerTreeHostTestContentLayerOcclusion):
1185         (WTF::CCLayerTreeHostTestContentLayerOcclusion::CCLayerTreeHostTestContentLayerOcclusion):
1186         (WTF::CCLayerTreeHostTestContentLayerOcclusion::beginTest):
1187         (WTF::CCLayerTreeHostTestContentLayerOcclusion::afterTest):
1188         (WTF):
1189
1190 2012-03-20  W. James MacLean  <wjmaclean@chromium.org>
1191
1192         [chromium] Tune fling physics curve. [Not for review yet]
1193         https://bugs.webkit.org/show_bug.cgi?id=81398
1194
1195         Reviewed by James Robinson.
1196
1197         * tests/PlatformGestureCurveTest.cpp:
1198
1199 2012-03-20  Ian Vollick  <vollick@chromium.org>
1200
1201         [chromium] Infrastructure to allow animating layers to be only partially updated
1202         https://bugs.webkit.org/show_bug.cgi?id=81106
1203
1204         Reviewed by James Robinson
1205
1206         * WebKit.gypi:
1207         * tests/CCAnimationTestCommon.cpp:
1208         (WebKitTests::FakeLayerAnimationControllerClient::FakeLayerAnimationControllerClient):
1209         (WebKitTests::FakeLayerAnimationControllerClient::~FakeLayerAnimationControllerClient):
1210         * tests/CCAnimationTestCommon.h:
1211         (FakeLayerAnimationControllerClient):
1212         (WebKitTests::FakeLayerAnimationControllerClient::setOpacityFromAnimation):
1213         (WebKitTests::FakeLayerAnimationControllerClient::setTransformFromAnimation):
1214         * tests/CCLayerAnimationControllerImplTest.cpp: Removed.
1215         * tests/CCLayerAnimationControllerTest.cpp:
1216         (WebKitTests::TEST):
1217         (WebKitTests):
1218         * tests/CCLayerTreeHostTest.cpp:
1219         (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation):
1220         (WTF::CCLayerTreeHostTestAddAnimation::animateLayers):
1221         (CCLayerTreeHostTestAddAnimation):
1222         * tests/TreeSynchronizerTest.cpp:
1223         (WebKitTests::FakeLayerAnimationController::create):
1224         (WebKitTests::FakeLayerAnimationController::FakeLayerAnimationController):
1225         (WebKitTests::FakeLayerAnimationController::pushAnimationUpdatesTo):
1226         (WebKitTests::TEST):
1227
1228 2012-03-20  Keishi Hattori  <keishi@webkit.org>
1229
1230         [chromium] Marking WebFrameTest.DivAutoZoomParamsTest as failing.
1231
1232         * tests/WebFrameTest.cpp:
1233         (WebKit::TEST_F):
1234
1235 2012-03-19  Adam Barth  <abarth@webkit.org>
1236
1237         Remove support for "magic" iframe
1238         https://bugs.webkit.org/show_bug.cgi?id=81590
1239
1240         Reviewed by Eric Seidel.
1241
1242         Remove FrameLoaderClient methods that no longer exist.
1243
1244         * public/WebFrameClient.h:
1245         (WebFrameClient):
1246         * src/FrameLoaderClientImpl.cpp:
1247         (WebKit):
1248         * src/FrameLoaderClientImpl.h:
1249         (FrameLoaderClientImpl):
1250
1251 2012-03-19  Charlie Reis  <creis@chromium.org>
1252
1253         [Chromium] Add registerURLSchemeAsEmptyDocument to WebSecurityPolicy
1254         https://bugs.webkit.org/show_bug.cgi?id=81421
1255
1256         Reviewed by Adam Barth.
1257
1258         * public/WebSecurityPolicy.h:
1259         (WebSecurityPolicy):
1260         * src/WebSecurityPolicy.cpp:
1261         (WebKit::WebSecurityPolicy::registerURLSchemeAsEmptyDocument):
1262         (WebKit):
1263
1264 2012-03-19  Keishi Hattori  <keishi@webkit.org>
1265
1266         [chromium] Fixing build. Adding missing virtual.
1267
1268         * src/GraphicsContext3DPrivate.h:
1269         (GraphicsContext3DPrivate):
1270
1271 2012-03-19  Dana Jansens  <danakj@chromium.org>
1272
1273         [chromium] Push culled tiles that are prepainted
1274         https://bugs.webkit.org/show_bug.cgi?id=81552
1275
1276         Reviewed by Adrienne Walker.
1277
1278         * tests/TiledLayerChromiumTest.cpp:
1279         (WTF::TEST):
1280         (WTF):
1281
1282 2012-03-19  James Robinson  <jamesr@chromium.org>
1283
1284         Unreviewed chromium compile fix - put all TRACE_*s in their own scope explicitly.
1285
1286         * src/WebCompositorInputHandlerImpl.cpp:
1287         (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
1288         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
1289
1290 2012-03-19  Robert Kroeger  <rjkroege@chromium.org>
1291
1292         [chromium] return true/false on GestureFlingCancel if a fling was stopped
1293         https://bugs.webkit.org/show_bug.cgi?id=81563
1294
1295         Reviewed by James Robinson.
1296
1297         * src/WebViewImpl.cpp:
1298         (WebKit::WebViewImpl::gestureEvent):
1299
1300 2012-03-19  Michal Mocny  <mmocny@google.com>
1301
1302         [chromium] Adding support for GL_EXT_discard_framebuffer.
1303         https://bugs.webkit.org/show_bug.cgi?id=81383
1304
1305         Reviewed by James Robinson.
1306
1307         * src/Extensions3DChromium.cpp:
1308         (WebCore::Extensions3DChromium::discardFramebufferEXT):
1309         (WebCore):
1310         (WebCore::Extensions3DChromium::ensureFramebufferCHROMIUM):
1311         * src/GraphicsContext3DChromium.cpp:
1312         (WebCore):
1313         * src/GraphicsContext3DPrivate.h:
1314         (GraphicsContext3DPrivate):
1315         * tests/FakeWebGraphicsContext3D.h:
1316         (WebKit::FakeWebGraphicsContext3D::discardFramebufferEXT):
1317         (WebKit::FakeWebGraphicsContext3D::ensureFramebufferCHROMIUM):
1318         (FakeWebGraphicsContext3D):
1319
1320 2012-03-19  Ian Vollick  <vollick@chromium.org>
1321
1322         [chromium] Times in the cc should be expressed in seconds.
1323         https://bugs.webkit.org/show_bug.cgi?id=80514
1324
1325         Reviewed by James Robinson.
1326
1327         * tests/CCDelayBasedTimeSourceTest.cpp:
1328         (WebKitTests::TEST):
1329         * tests/CCFrameRateControllerTest.cpp:
1330         (WebKitTests::TEST):
1331         * tests/CCSchedulerTestCommon.h:
1332         (WebKitTests::FakeCCThread::pendingDelayMs):
1333         (WebKitTests::FakeCCDelayBasedTimeSource::create):
1334         (WebKitTests::FakeCCDelayBasedTimeSource::setMonotonicallyIncreasingTime):
1335         (WebKitTests::FakeCCDelayBasedTimeSource::monotonicallyIncreasingTime):
1336         (WebKitTests::FakeCCDelayBasedTimeSource::FakeCCDelayBasedTimeSource):
1337         (FakeCCDelayBasedTimeSource):
1338         * tests/CCTimerTest.cpp:
1339         (WebKitTests::TEST_F):
1340
1341 2012-03-19  Nat Duca  <nduca@chromium.org>
1342
1343         [chromium] Stop deriving WebCompositor from WebCompositorInputHandler
1344         https://bugs.webkit.org/show_bug.cgi?id=80586
1345
1346         Reviewed by Darin Fisher.
1347
1348         * public/WebCompositor.h:
1349         (WebKit):
1350         * public/WebCompositorInputHandler.h:
1351         (WebCompositorInputHandler):
1352         * public/WebWidgetClient.h:
1353         (WebWidgetClient):
1354         (WebKit::WebWidgetClient::didActivateCompositor):
1355         * src/WebCompositorInputHandlerImpl.cpp:
1356         (WebKit::WebCompositorInputHandler::fromIdentifier):
1357         * src/WebCompositorInputHandlerImpl.h:
1358         (WebCompositorInputHandlerImpl):
1359
1360 2012-03-18  James Robinson  <jamesr@chromium.org>
1361
1362         [chromium] Implement fling-by-wheel on compositor thread
1363         https://bugs.webkit.org/show_bug.cgi?id=81462
1364
1365         Reviewed by Adrienne Walker.
1366
1367         Implement fling-by-wheel and beef up existing unit test coverage considerably by using gmock instead of mocking
1368         by hand.
1369
1370         * src/WebCompositorInputHandlerImpl.cpp:
1371         (WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
1372         (WebKit):
1373         (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
1374         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
1375         (WebKit::WebCompositorInputHandlerImpl::animate):
1376         (WebKit::WebCompositorInputHandlerImpl::cancelCurrentFling):
1377         (WebKit::WebCompositorInputHandlerImpl::scrollBy):
1378         * src/WebCompositorInputHandlerImpl.h:
1379         (WebCompositorInputHandlerImpl):
1380         * tests/WebCompositorInputHandlerImplTest.cpp:
1381
1382 2012-03-19  Emil A Eklund  <eae@chromium.org>
1383
1384         [mac/chromium] Change platform code to use pixelSnappedRect methods
1385         https://bugs.webkit.org/show_bug.cgi?id=81016
1386
1387         Reviewed by Eric Seidel.
1388
1389         * src/WebViewImpl.cpp:
1390         (WebKit::WebViewImpl::computeBlockBounds):
1391         (WebKit::WebViewImpl::applyAutofillSuggestions):
1392         (WebKit::WebViewImpl::refreshAutofillPopup):
1393
1394 2012-03-19  Eric Seidel  <eric@webkit.org>
1395
1396         Fix WTF header include discipline in Chromium WebKit
1397         https://bugs.webkit.org/show_bug.cgi?id=81281
1398
1399         Reviewed by James Robinson.
1400
1401         * src/CompositionUnderlineBuilder.h:
1402         * src/CompositionUnderlineVectorBuilder.h:
1403         * src/FrameLoaderClientImpl.cpp:
1404         * src/WebArrayBuffer.cpp:
1405         * src/WebArrayBufferView.cpp:
1406         * src/WebBindings.cpp:
1407         * src/WebColorName.cpp:
1408         * src/WebGeolocationClientMock.cpp:
1409         * src/WebPageSerializer.cpp:
1410         * src/WebSocketImpl.cpp:
1411         * src/WebViewImpl.cpp:
1412         * tests/FrameTestHelpers.cpp:
1413
1414 2012-03-19  Dana Jansens  <danakj@chromium.org>
1415
1416         [chromium] Invalidate/update evicted tiles during commit
1417         https://bugs.webkit.org/show_bug.cgi?id=81529
1418
1419         Reviewed by Adrienne Walker.
1420
1421         * tests/TiledLayerChromiumTest.cpp:
1422         (WTF::TEST):
1423         (WTF):
1424
1425 2012-03-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1426
1427         Unreviewed, rolling out r111207.
1428         http://trac.webkit.org/changeset/111207
1429         https://bugs.webkit.org/show_bug.cgi?id=81561
1430
1431         Causing chromium unit test failure (Requested by reveman on
1432         #webkit).
1433
1434         * src/Extensions3DChromium.cpp:
1435         * src/GraphicsContext3DChromium.cpp:
1436         (WebCore):
1437         * src/GraphicsContext3DPrivate.h:
1438         (GraphicsContext3DPrivate):
1439         * tests/FakeWebGraphicsContext3D.h:
1440
1441 2012-03-19  Tommy Widenflycht  <tommyw@google.com>
1442
1443         [chromium] MediaStream API (JSEP): Introducing WebMediaHints and WebIceOptions
1444         https://bugs.webkit.org/show_bug.cgi?id=81341
1445
1446         Reviewed by Darin Fisher.
1447
1448         Simple WebKit representations of the WebCore/platform versions.
1449
1450         * WebKit.gyp:
1451         * public/platform/WebICEOptions.h: Added.
1452         (WebCore):
1453         (WebKit):
1454         (WebICEOptions):
1455         (WebKit::WebICEOptions::WebICEOptions):
1456         (WebKit::WebICEOptions::~WebICEOptions):
1457         (WebKit::WebICEOptions::operator=):
1458         (WebKit::WebICEOptions::isNull):
1459         * public/platform/WebMediaHints.h: Added.
1460         (WebCore):
1461         (WebKit):
1462         (WebMediaHints):
1463         (WebKit::WebMediaHints::WebMediaHints):
1464         (WebKit::WebMediaHints::~WebMediaHints):
1465         (WebKit::WebMediaHints::operator=):
1466         (WebKit::WebMediaHints::isNull):
1467         * src/WebICEOptions.cpp: Added.
1468         (WebKit):
1469         (WebKit::WebICEOptions::WebICEOptions):
1470         (WebKit::WebICEOptions::assign):
1471         (WebKit::WebICEOptions::reset):
1472         (WebKit::WebICEOptions::candidateTypeToUse):
1473         * src/WebMediaHints.cpp: Added.
1474         (WebKit):
1475         (WebKit::WebMediaHints::WebMediaHints):
1476         (WebKit::WebMediaHints::assign):
1477         (WebKit::WebMediaHints::reset):
1478         (WebKit::WebMediaHints::audio):
1479         (WebKit::WebMediaHints::video):
1480
1481 2012-03-19  Michal Mocny  <mmocny@google.com>
1482
1483         [chromium] Updating WebGraphicsContext3D MemoryAllocation callback to accept a struct with have backbuffer suggestion.
1484         https://bugs.webkit.org/show_bug.cgi?id=81279
1485
1486         Reviewed by James Robinson.
1487
1488         * src/GraphicsContext3DChromium.cpp:
1489         (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
1490         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged):
1491         (GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
1492
1493 2012-03-19  David Reveman  <reveman@chromium.org>
1494
1495         [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support.
1496         https://bugs.webkit.org/show_bug.cgi?id=80988
1497
1498         Reviewed by Adrienne Walker.
1499
1500         Expose EXT_occlusion_query API to WebKit compositor.
1501
1502         * src/Extensions3DChromium.cpp:
1503         (WebCore::Extensions3DChromium::createQueryEXT):
1504         (WebCore):
1505         (WebCore::Extensions3DChromium::deleteQueryEXT):
1506         (WebCore::Extensions3DChromium::isQueryEXT):
1507         (WebCore::Extensions3DChromium::beginQueryEXT):
1508         (WebCore::Extensions3DChromium::endQueryEXT):
1509         (WebCore::Extensions3DChromium::getQueryivEXT):
1510         (WebCore::Extensions3DChromium::getQueryObjectuivEXT):
1511         * src/GraphicsContext3DChromium.cpp:
1512         (WebCore):
1513         * src/GraphicsContext3DPrivate.h:
1514         (GraphicsContext3DPrivate):
1515         * tests/FakeWebGraphicsContext3D.h:
1516         (WebKit::FakeWebGraphicsContext3D::createQueryEXT):
1517         (WebKit::FakeWebGraphicsContext3D::deleteQueryEXT):
1518         (WebKit::FakeWebGraphicsContext3D::isQueryEXT):
1519         (WebKit::FakeWebGraphicsContext3D::beginQueryEXT):
1520         (WebKit::FakeWebGraphicsContext3D::endQueryEXT):
1521         (WebKit::FakeWebGraphicsContext3D::getQueryivEXT):
1522         (WebKit::FakeWebGraphicsContext3D::getQueryObjectuivEXT):
1523         (FakeWebGraphicsContext3D):
1524
1525 2012-03-19  Dana Jansens  <danakj@chromium.org>
1526
1527         [chromium] Unit test fix, save the sharedQuadState while the quads hold a pointer to it
1528         https://bugs.webkit.org/show_bug.cgi?id=81476
1529
1530         Reviewed by Adrienne Walker.
1531
1532         * tests/CCQuadCullerTest.cpp:
1533         (WebCore::appendQuads):
1534         (WebCore):
1535         (WebCore::TEST):
1536
1537 2012-03-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1538
1539         Unreviewed.  Rolled DEPS.
1540
1541         * DEPS:
1542
1543 2012-03-19  Robert Kroeger  <rjkroege@chromium.org>
1544
1545         [chromium] synthesize wheel events for fling on main thread
1546         https://bugs.webkit.org/show_bug.cgi?id=81458
1547
1548         Support track pad fling by generating a sequence of wheel events.
1549
1550         Reviewed by James Robinson.
1551
1552         * src/WebViewImpl.cpp:
1553         (WebKit::WebViewImpl::WebViewImpl):
1554         (WebKit::WebViewImpl::scrollBy): Call-back from PlatformGestureCurve to dispatch wheel event.
1555         (WebKit):
1556         (WebKit::WebViewImpl::gestureEvent): Handle GestureFlingStart and GestureFlingCancel.
1557         (WebKit::WebViewImpl::updateAnimations): Requests a PlatformGestureCurve to animate forward.
1558         (WebKit::WebViewImpl::didCommitLoad): Halt flings on navigations.
1559         * src/WebViewImpl.h:
1560         (WebCore):
1561         (WebViewImpl):
1562
1563 2012-03-19  Keishi Hattori  <keishi@webkit.org>
1564
1565         [chromium] Fix build that was broken by r111137
1566
1567         Fixed was ambiguous because of MacTypes.h
1568
1569         * tests/CCLayerTreeHostCommonTest.cpp:
1570         (WebCore::addTransformAnimationToLayer):
1571         * tests/CCOcclusionTrackerTest.cpp:
1572         (WebCore::addTransformAnimationToLayer):
1573
1574 2012-03-18  Keishi Hattori  <keishi@webkit.org>
1575
1576         [chromium] Fix test that was broken by r111128
1577
1578         * tests/ScrollAnimatorNoneTest.cpp:
1579         (TEST): ScrollByPixel no longer animates.
1580
1581 2012-03-18  Dana Jansens  <danakj@chromium.org>
1582
1583         [chromium] Don't occlude on main-thread behind layers/surfaces with impl-thread animations
1584         https://bugs.webkit.org/show_bug.cgi?id=81354
1585
1586         Reviewed by Adrienne Walker.
1587
1588         * tests/CCOcclusionTrackerTest.cpp:
1589         (WebCore):
1590         (WebCore::addOpacityAnimationToLayer):
1591         (WebCore::addTransformAnimationToLayer):
1592         (CCOcclusionTrackerTestAnimationOpacity1OnMainThread):
1593         (WebCore::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
1594         (CCOcclusionTrackerTestAnimationOpacity0OnMainThread):
1595         (WebCore::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
1596         (CCOcclusionTrackerTestAnimationTranslateOnMainThread):
1597         (WebCore::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
1598
1599 2012-03-18  Dana Jansens  <danakj@chromium.org>
1600
1601         [chromium] Animating opacity is not opaque and should create a render surface on main thread
1602         https://bugs.webkit.org/show_bug.cgi?id=81401
1603
1604         Reviewed by James Robinson.
1605
1606         * tests/CCLayerTreeHostCommonTest.cpp:
1607         (WebCore::TEST):
1608
1609 2012-03-18  Dana Jansens  <danakj@chromium.org>
1610
1611         [chromium] Transform animation state should be inherited from parents
1612         https://bugs.webkit.org/show_bug.cgi?id=81363
1613
1614         Reviewed by Adrienne Walker.
1615
1616         * tests/CCLayerTreeHostCommonTest.cpp:
1617         (WebCore::addOpacityAnimationToLayer):
1618         (WebCore):
1619         (WebCore::addTransformAnimationToLayer):
1620         (WebCore::TEST):
1621
1622 2012-03-16  James Robinson  <jamesr@chromium.org>
1623
1624         [chromium] Unify the drawing logic for different layer types that output textures to the compositor
1625         https://bugs.webkit.org/show_bug.cgi?id=81286
1626
1627         Reviewed by Adrienne Walker.
1628
1629         * tests/Canvas2DLayerChromiumTest.cpp:
1630
1631 2012-03-15  Daniel Cheng  <dcheng@chromium.org>
1632
1633         [chromium] Refactor ClipboardChromium and DataTransferItemList/DataTransferItem to support HTML spec
1634         https://bugs.webkit.org/show_bug.cgi?id=76598
1635
1636         Reviewed by Tony Chang.
1637
1638         * src/WebDragData.cpp:
1639         (WebKit::WebDragData::items):
1640         (WebKit::WebDragData::addItem):
1641         (WebKit::WebDragData::assign):
1642
1643 2012-03-16  Dana Jansens  <danakj@chromium.org>
1644
1645         [chromium] Add overdraw metrics for texture uploads
1646         https://bugs.webkit.org/show_bug.cgi?id=81175
1647
1648         Reviewed by Adrienne Walker.
1649
1650         * tests/TiledLayerChromiumTest.cpp:
1651         (WTF::TEST):
1652
1653 2012-03-16  Dana Jansens  <danakj@chromium.org>
1654
1655         [chromium] Remove surface damage client from occlusion tracker
1656         https://bugs.webkit.org/show_bug.cgi?id=81242
1657
1658         Reviewed by Adrienne Walker.
1659
1660         * tests/CCOcclusionTrackerTest.cpp:
1661         (WebCore):
1662
1663 2012-03-16  Ian Vollick  <vollick@chromium.org>
1664
1665         [chromium] Threaded opacity animation jump to opacity of 0
1666         https://bugs.webkit.org/show_bug.cgi?id=80744
1667
1668         Reviewed by James Robinson.
1669
1670         * tests/CCLayerTreeHostTest.cpp:
1671         (WTF):
1672         (CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity):
1673         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity):
1674         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::beginTest):
1675         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::animateLayers):
1676         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::commitCompleteOnCCThread):
1677         (WTF::CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity::afterTest):
1678         (WTF::TEST_F):
1679
1680 2012-03-16  Dana Jansens  <danakj@chromium.org>
1681
1682         [chromium] Changes to overdraw metrics to allow upload tracking
1683         https://bugs.webkit.org/show_bug.cgi?id=81222
1684
1685         Reviewed by Adrienne Walker.
1686
1687         * tests/CCQuadCullerTest.cpp:
1688         (WebCore::appendQuads):
1689         (WebCore):
1690         (WebCore::TEST):
1691         * tests/MockCCQuadCuller.h:
1692         (WebCore::MockCCQuadCuller::MockCCQuadCuller):
1693
1694 2012-03-16  Dana Jansens  <danakj@chromium.org>
1695
1696         [chromium] Quads that become fully opaque after culling should not use blending
1697         https://bugs.webkit.org/show_bug.cgi?id=81235
1698
1699         Reviewed by Adrienne Walker.
1700
1701         * tests/CCLayerTreeHostImplTest.cpp:
1702         (WebKit::BlendStateCheckLayer::appendQuads):
1703         (WebKit::BlendStateCheckLayer::setQuadRect):
1704         (WebKit::BlendStateCheckLayer::setQuadVisibleRect):
1705         (WebKit::BlendStateCheckLayer::setOpaqueContents):
1706         (WebKit::BlendStateCheckLayer::setOpaqueContentRect):
1707         (WebKit::BlendStateCheckLayer::BlendStateCheckLayer):
1708         (BlendStateCheckLayer):
1709         (WebKit::TEST_F):
1710
1711 2012-03-15  Hans Wennborg  <hans@chromium.org>
1712
1713         Speech JavaScript API: SpeechRecognition, Controller and Client
1714         https://bugs.webkit.org/show_bug.cgi?id=81096
1715
1716         Reviewed by Adam Barth.
1717
1718         Provide a SpeechRecognitionController to Page, with a NULL client for
1719         now.
1720
1721         * src/WebViewImpl.cpp:
1722         (WebKit::WebViewImpl::WebViewImpl):
1723
1724 2012-03-15  Dana Jansens  <danakj@chromium.org>
1725
1726         [chromium] Fix some assertions in occlusion tracker unit tests
1727         https://bugs.webkit.org/show_bug.cgi?id=81308
1728
1729         Reviewed by James Robinson.
1730
1731         * tests/CCOcclusionTrackerTest.cpp:
1732         (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
1733         (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest):
1734         (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest):
1735         (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest):
1736
1737 2012-03-15  Sheriff Bot  <webkit.review.bot@gmail.com>
1738
1739         Unreviewed, rolling out r110941.
1740         http://trac.webkit.org/changeset/110941
1741         https://bugs.webkit.org/show_bug.cgi?id=81307
1742
1743         the revert looks innocent. (Requested by morrita on #webkit).
1744
1745         * tests/CCLayerTreeHostTest.cpp:
1746         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
1747         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
1748         (WTF::TestLayerChromium::paintContentsIfDirty):
1749         * tests/Canvas2DLayerChromiumTest.cpp:
1750         * tests/TiledLayerChromiumTest.cpp:
1751         (TestCCOcclusionTracker):
1752         (WTF::TestCCOcclusionTracker::TestCCOcclusionTracker):
1753         (WTF::TestCCOcclusionTracker::setOcclusion):
1754         (WTF::TestCCOcclusionTracker::layerScissorRectInTargetSurface):
1755         (WTF):
1756         (WTF::FakeTiledLayerChromium::prepareToUpdate):
1757         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
1758         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
1759         (WTF::TEST):
1760
1761 2012-03-15  Sheriff Bot  <webkit.review.bot@gmail.com>
1762
1763         Unreviewed, rolling out r110929.
1764         http://trac.webkit.org/changeset/110929
1765         https://bugs.webkit.org/show_bug.cgi?id=81306
1766
1767         breaking webkit_unit_tests (Requested by morrita on #webkit).
1768
1769         * tests/CCLayerTreeHostTest.cpp:
1770         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
1771         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
1772         (WTF::TestLayerChromium::paintContentsIfDirty):
1773         * tests/Canvas2DLayerChromiumTest.cpp:
1774         * tests/TiledLayerChromiumTest.cpp:
1775         (WTF::FakeTiledLayerChromium::prepareToUpdate):
1776         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
1777         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
1778         (WTF::TEST):
1779
1780 2012-03-15  Dana Jansens  <danakj@chromium.org>
1781
1782         [chromium] Decide occlusion in paint culling with CCOcclusionTracker
1783         https://bugs.webkit.org/show_bug.cgi?id=81181
1784
1785         Reviewed by Adrienne Walker.
1786
1787         * tests/CCLayerTreeHostTest.cpp:
1788         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
1789         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
1790         (WTF::TestLayerChromium::paintContentsIfDirty):
1791         * tests/Canvas2DLayerChromiumTest.cpp:
1792         * tests/TiledLayerChromiumTest.cpp:
1793         (TestCCOcclusionTracker):
1794         (WTF::TestCCOcclusionTracker::TestCCOcclusionTracker):
1795         (WTF::TestCCOcclusionTracker::setOcclusion):
1796         (WTF::TestCCOcclusionTracker::layerScissorRectInTargetSurface):
1797         (WTF):
1798         (WTF::FakeTiledLayerChromium::prepareToUpdate):
1799         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
1800         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
1801         (WTF::TEST):
1802
1803 2012-03-15  Dana Jansens  <danakj@chromium.org>
1804
1805         [chromium] Move overdraw metrics into a templated class for both paint and draw metrics.
1806         https://bugs.webkit.org/show_bug.cgi?id=81156
1807
1808         Reviewed by Adrienne Walker.
1809
1810         * tests/CCQuadCullerTest.cpp:
1811         (WebCore::appendQuads):
1812         (WebCore):
1813         (WebCore::TEST):
1814
1815 2012-03-07  Jon Lee  <jonlee@apple.com>
1816
1817         Move NotificationContents into Notification
1818         https://bugs.webkit.org/show_bug.cgi?id=80487
1819         <rdar://problem/10965519>
1820
1821         Reviewed by Jian Li.
1822
1823         Refactor to use accessor methods on Notification.
1824         * src/WebNotification.cpp:
1825         (WebKit::WebNotification::title):
1826         (WebKit::WebNotification::body):
1827
1828 2012-03-13  Jon Lee  <jonlee@apple.com>
1829
1830         Deprecate ondisplay()
1831         https://bugs.webkit.org/show_bug.cgi?id=80483
1832         <rdar://problem/10912432>
1833
1834         Reviewed by Jian Li.
1835
1836         * src/WebNotification.cpp:
1837         (WebKit::WebNotification::dispatchDisplayEvent): Dispatch the show event.
1838
1839 2012-03-14  W. James MacLean  <wjmaclean@chromium.org>
1840
1841         [chromium] Wire up PlatformGestureCurves for CC, ScrollAnimatorNone.
1842         https://bugs.webkit.org/show_bug.cgi?id=80607
1843
1844         Reviewed by James Robinson.
1845
1846         * public/WebInputEvent.h:
1847         (WebKit::WebInputEvent::isScrollGestureEventType):
1848         * src/WebCompositorInputHandlerImpl.cpp:
1849         (PlatformGestureToCCGestureAdapter):
1850         (WebCore::PlatformGestureToCCGestureAdapter::create):
1851         (WebCore::PlatformGestureToCCGestureAdapter::apply):
1852         (WebCore::PlatformGestureToCCGestureAdapter::scrollBy):
1853         (WebCore::PlatformGestureToCCGestureAdapter::PlatformGestureToCCGestureAdapter):
1854         (WebCore):
1855         (WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
1856         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
1857         (WebKit):
1858         (WebKit::WebCompositorInputHandlerImpl::scrollBy):
1859         * src/WebCompositorInputHandlerImpl.h:
1860         (WebCore):
1861         (WebCompositorInputHandlerImpl):
1862         * tests/PlatformGestureCurveTest.cpp:
1863         * tests/WebCompositorInputHandlerImplTest.cpp:
1864
1865 2012-03-15  Dana Jansens  <danakj@chromium.org>
1866
1867         [Chromium] REGRESSION(r110596) CCQuadCullerTest.verifyCullChildLinesUpTopLeft fails on Windows
1868         https://bugs.webkit.org/show_bug.cgi?id=81083
1869
1870         Reviewed by Adrienne Walker.
1871
1872         * tests/CCQuadCullerTest.cpp:
1873         (WebCore::TEST):
1874
1875 2012-03-15  David Levin  <levin@chromium.org>
1876
1877         Various autoresize fixes.
1878         https://bugs.webkit.org/show_bug.cgi?id=81199
1879
1880         Reviewed by Darin Fisher.
1881
1882         * public/WebView.h:
1883         (WebView): Remove a deprecated api.
1884         * src/WebViewImpl.cpp: Ditto.
1885         * src/WebViewImpl.h: Ditto.
1886         * tests/FrameTestHelpers.cpp:
1887         (WebKit::FrameTestHelpers::registerMockedURLLoad): Added an overload with more flexibility.
1888         The previous api didn't allow one to request a url with a search string.
1889         (FrameTestHelpers):
1890         * tests/FrameTestHelpers.h:
1891         (FrameTestHelpers): Ditto.
1892         * tests/WebViewTest.cpp: Fix the test because calling javascript:
1893         was working. Make the test generic and added a lot more tests to cover
1894         various possibilities. I avoided using a layout test because there wasn't
1895         a way to get the scrollbar state, so I just generalized a test that was already there.
1896         * tests/data/specify_size.html: Allow the test to take its size from the search string.
1897
1898 2012-03-15  Peter Beverloo  <peter@chromium.org>
1899
1900         Unreviewed.  Rolled DEPS.
1901
1902         * DEPS:
1903
1904 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
1905
1906         AXDescription for HTML5 footer and ARIA role contentinfo incorrect
1907         https://bugs.webkit.org/show_bug.cgi?id=78967
1908
1909         Reviewed by Beth Dakin.
1910
1911         * src/LocalizedStrings.cpp:
1912
1913 2012-03-13  Jon Lee  <jonlee@apple.com>
1914
1915         Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS
1916         https://bugs.webkit.org/show_bug.cgi?id=80922
1917         <rdar://problem/11035082>
1918
1919         Reviewed by Jian Li.
1920
1921         You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API.
1922         LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the
1923         new API. Therefore, APIs that are common between the two will have:
1924         #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
1925
1926         This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to
1927         the new API, the defines will begin to split. This allows ports to decide which set of APIs to include.
1928
1929         Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
1930         * src/AssertMatchingEnums.cpp:
1931         * src/NotificationPresenterImpl.cpp:
1932         * src/NotificationPresenterImpl.h:
1933         * src/WebNotification.cpp:
1934         * src/WebRuntimeFeatures.cpp:
1935         (WebKit::WebRuntimeFeatures::enableNotifications):
1936         (WebKit::WebRuntimeFeatures::isNotificationsEnabled):
1937         * src/WebViewImpl.cpp:
1938         (WebKit::WebViewImpl::WebViewImpl):
1939         (WebKit):
1940         * src/WebViewImpl.h:
1941         (WebViewImpl):
1942
1943 2012-03-14  James Robinson  <jamesr@chromium.org>
1944
1945         [chromium] Deprecate renderDirectlyToWebView parameter of WebViewClient::createGraphicsContext3D()
1946         https://bugs.webkit.org/show_bug.cgi?id=80523
1947
1948         Reviewed by Darin Fisher.
1949
1950         * public/WebViewClient.h:
1951         (WebViewClient):
1952         (WebKit::WebViewClient::createGraphicsContext3D):
1953         * public/platform/WebKitPlatformSupport.h:
1954         (WebKit):
1955         * src/WebViewImpl.cpp:
1956         (WebKit::WebViewImpl::createCompositorGraphicsContext3D):
1957
1958 2012-03-14  James Robinson  <jamesr@chromium.org>
1959
1960         [chromium] Remove canRecoverFromContextLoss attribute, it's unused
1961         https://bugs.webkit.org/show_bug.cgi?id=81158
1962
1963         Reviewed by Stephen White.
1964
1965         Deletes the canRecoverFromContextLoss attribute from WebCore::GraphicsContext3D::Attributes. This is still left in
1966         WebGraphicsContext3D::Attributes, since chromium-side code still references it.
1967
1968         * src/GraphicsContext3DChromium.cpp:
1969         (WebCore::GraphicsContext3D::create):
1970
1971 2012-03-14  Stephen White  <senorblanco@chromium.org>
1972
1973         [chromium] Fix accelerated Canvas2D with threaded compositing.
1974         https://bugs.webkit.org/show_bug.cgi?id=80998
1975
1976         Reviewed by James Robinson.
1977
1978         * tests/Canvas2DLayerChromiumTest.cpp:
1979         Instantiate a CCLayerTreeHost, so that Canvas2DLayerChromium can
1980         retrieve its texture manager.  Also move the test into the unnamed
1981         namespace -- since it's already using WebCore, there's little reason for
1982         it to also be in the namespace.
1983         * tests/TreeSynchronizerTest.cpp:
1984         (WebKitTests):
1985         (WebKitTests::TEST):
1986         Add a new test for trying to synchronize NULL tree.
1987
1988 2012-03-14  James Robinson  <jamesr@chromium.org>
1989
1990         [chromium] Provide explicit polling API to check if the platform is capable of accelerated 2d canvas
1991         https://bugs.webkit.org/show_bug.cgi?id=80667
1992
1993         Reviewed by Darin Fisher.
1994
1995         * public/platform/WebKitPlatformSupport.h:
1996         (WebKit::WebKitPlatformSupport::canAccelerate2dCanvas):
1997         (WebKitPlatformSupport):
1998         * src/PlatformSupport.cpp:
1999         (WebCore::PlatformSupport::canAccelerate2dCanvas):
2000         (WebCore):
2001
2002 2012-03-14  Andrey Kosyakov  <caseq@chromium.org>
2003
2004         Web Inspector: add didCancelFrame timeline event
2005         https://bugs.webkit.org/show_bug.cgi?id=80994
2006
2007         Reviewed by Pavel Feldman.
2008
2009         - add intrumentCanceFrame(), called when renderer decides not to
2010             render frame after instrumentBeginFrame() was called.
2011
2012         * public/WebWidget.h:
2013         (WebWidget):
2014         (WebKit::WebWidget::instrumentCancelFrame):
2015         * src/WebViewImpl.cpp:
2016         (WebKit::WebViewImpl::instrumentCancelFrame):
2017         (WebKit):
2018         * src/WebViewImpl.h:
2019         (WebViewImpl):
2020
2021 2012-03-14  Dana Jansens  <danakj@chromium.org>
2022
2023         Region can acquire an empty span by subtracting an empty Region
2024         https://bugs.webkit.org/show_bug.cgi?id=81074
2025
2026         Reviewed by Anders Carlsson.
2027
2028         * tests/RegionTest.cpp:
2029         (WebCore::TEST):
2030         (WebCore):
2031
2032 2012-03-13  Hajime Morrita  <morrita@chromium.org>
2033
2034         Unreviewed, mark verifyCullChildLinesUpTopLeft() as failed.
2035
2036         * tests/CCQuadCullerTest.cpp:
2037         (WebCore):
2038         (WebCore::TEST):
2039
2040 2012-03-14  Marja Hölttä  <marja@google.com>
2041
2042         WebHTTPBody: Keep track of whether the data includes passwords.
2043         https://bugs.webkit.org/show_bug.cgi?id=81003
2044
2045         Reviewed by Darin Fisher.
2046
2047         This change enables Chrome to save HTTP bodies selectively, only
2048         if they don't contain passwords.
2049
2050         * public/platform/WebHTTPBody.h:
2051         (WebHTTPBody): Added containsPasswordData, setContainsPasswordData.
2052         * src/WebHTTPBody.cpp:
2053         (WebKit::WebHTTPBody::containsPasswordData): Added.
2054         (WebKit):
2055         (WebKit::WebHTTPBody::setContainsPasswordData): Added.
2056
2057 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2058
2059         Unreviewed.  Rolled DEPS.
2060
2061         * DEPS:
2062
2063 2012-03-13  Hajime Morrita  <morrita@chromium.org>
2064
2065         Unreviewed, mark verifyCullChildLinesUpTopLeft() as failed.
2066
2067         * tests/CCQuadCullerTest.cpp:
2068         (WebCore):
2069         (WebCore::TEST):
2070
2071 2012-03-13  Shawn Singh  <shawnsingh@chromium.org>
2072
2073         [chromium] wrong transform causing incorrect culling
2074         https://bugs.webkit.org/show_bug.cgi?id=80471
2075
2076         Reviewed by James Robinson.
2077
2078         * tests/CCRenderSurfaceTest.cpp:
2079         (WebCore::TEST):
2080         (WebCore):
2081
2082 2012-03-13  Nat Duca  <nduca@chromium.org>
2083
2084         [chromium] vsync ticks are needed in invisible tabs when we are still updating resources
2085         https://bugs.webkit.org/show_bug.cgi?id=80910
2086
2087         Reviewed by James Robinson.
2088
2089         * tests/CCSchedulerStateMachineTest.cpp:
2090         (WebCore::TEST):
2091         (WebCore):
2092
2093 2012-03-13  Dana Jansens  <danakj@chromium.org>
2094
2095         Region::contains(IntPoint) is slow
2096         https://bugs.webkit.org/show_bug.cgi?id=81008
2097
2098         Reviewed by Anders Carlsson.
2099
2100         * WebKit.gypi:
2101         * tests/RegionTest.cpp: Added.
2102         (WebCore):
2103         (WebCore::TEST):
2104
2105 2012-03-13  Gavin Peters  <gavinp@chromium.org>
2106
2107         Implement ApplicationCacheHost::canCacheInPageCache() for chromium.
2108         https://bugs.webkit.org/show_bug.cgi?id=80905
2109
2110         Reviewed by Eric Seidel.
2111
2112         This won't cause chrome to use the PageCache, but it will cause our histogram statistics
2113         describing PageCache use to be more accurate.
2114
2115         * src/ApplicationCacheHost.cpp:
2116         (WebCore::ApplicationCacheHost::canCacheInPageCache):
2117
2118 2012-03-13  Dana Jansens  <danakj@chromium.org>
2119
2120         [chromium] Use CCOcclusionTracker for draw culling
2121         https://bugs.webkit.org/show_bug.cgi?id=80743
2122
2123         Reviewed by Adrienne Walker.
2124
2125         * WebKit.gypi:
2126         * tests/CCLayerTreeHostImplTest.cpp:
2127         (WebKit::BlendStateCheckLayer::appendQuads):
2128         * tests/CCQuadCullerTest.cpp:
2129         (TestCCOcclusionTrackerImpl):
2130         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
2131         (WebCore::TestCCOcclusionTrackerImpl::layerScissorRectInTargetSurface):
2132         (WebCore::makeLayer):
2133         (WebCore::appendQuads):
2134         (WebCore):
2135         (WebCore::TEST):
2136         * tests/CCSolidColorLayerImplTest.cpp:
2137         (CCLayerTestCommon::TEST):
2138         * tests/CCTiledLayerImplTest.cpp:
2139         (CCLayerTestCommon::TEST):
2140         (CCLayerTestCommon::getQuads):
2141         * tests/MockCCQuadCuller.h: Added.
2142         (WebCore):
2143         (MockCCQuadCuller):
2144         (WebCore::MockCCQuadCuller::MockCCQuadCuller):
2145         (WebCore::MockCCQuadCuller::append):
2146         (WebCore::MockCCQuadCuller::quadList):
2147
2148 2012-03-13  Adam Barth  <abarth@webkit.org> && Benjamin Poulain  <bpoulain@apple.com>
2149
2150         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)
2151         https://bugs.webkit.org/show_bug.cgi?id=78853
2152
2153         Reviewed by Adam Barth.
2154
2155         * features.gypi:
2156         * src/ChromeClientImpl.cpp:
2157         * src/ChromeClientImpl.h:
2158         (ChromeClientImpl):
2159
2160 2012-03-13  Tommy Widenflycht  <tommyw@google.com>
2161
2162         MediaStream API: Rename PeerConnection to DeprecatedPeerConnection
2163         https://bugs.webkit.org/show_bug.cgi?id=80692
2164
2165         Reviewed by Adam Barth.
2166
2167         First patch in a series of patches to change the PeerConnection from ROAP to JSEP,
2168         see bug 80589 for more information.
2169
2170         * WebKit.gyp:
2171         * bridge/DeprecatedPeerConnectionHandler.cpp: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandler.cpp.
2172         (WebCore):
2173         (WebCore::DeprecatedPeerConnectionHandler::create):
2174         (WebCore::DeprecatedPeerConnectionHandler::DeprecatedPeerConnectionHandler):
2175         (WebCore::DeprecatedPeerConnectionHandler::~DeprecatedPeerConnectionHandler):
2176         (WebCore::DeprecatedPeerConnectionHandler::produceInitialOffer):
2177         (WebCore::DeprecatedPeerConnectionHandler::handleInitialOffer):
2178         (WebCore::DeprecatedPeerConnectionHandler::processSDP):
2179         (WebCore::DeprecatedPeerConnectionHandler::processPendingStreams):
2180         (WebCore::DeprecatedPeerConnectionHandler::sendDataStreamMessage):
2181         (WebCore::DeprecatedPeerConnectionHandler::stop):
2182         * bridge/DeprecatedPeerConnectionHandlerInternal.cpp: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.cpp.
2183         (WebCore):
2184         (WebCore::DeprecatedPeerConnectionHandlerInternal::DeprecatedPeerConnectionHandlerInternal):
2185         (WebCore::DeprecatedPeerConnectionHandlerInternal::~DeprecatedPeerConnectionHandlerInternal):
2186         (WebCore::DeprecatedPeerConnectionHandlerInternal::produceInitialOffer):
2187         (WebCore::DeprecatedPeerConnectionHandlerInternal::handleInitialOffer):
2188         (WebCore::DeprecatedPeerConnectionHandlerInternal::processSDP):
2189         (WebCore::DeprecatedPeerConnectionHandlerInternal::processPendingStreams):
2190         (WebCore::DeprecatedPeerConnectionHandlerInternal::sendDataStreamMessage):
2191         (WebCore::DeprecatedPeerConnectionHandlerInternal::stop):
2192         (WebCore::DeprecatedPeerConnectionHandlerInternal::didCompleteICEProcessing):
2193         (WebCore::DeprecatedPeerConnectionHandlerInternal::didGenerateSDP):
2194         (WebCore::DeprecatedPeerConnectionHandlerInternal::didReceiveDataStreamMessage):
2195         (WebCore::DeprecatedPeerConnectionHandlerInternal::didAddRemoteStream):
2196         (WebCore::DeprecatedPeerConnectionHandlerInternal::didRemoveRemoteStream):
2197         * bridge/DeprecatedPeerConnectionHandlerInternal.h: Renamed from Source/WebKit/chromium/bridge/PeerConnectionHandlerInternal.h.
2198         (WebKit):
2199         (WebCore):
2200         (DeprecatedPeerConnectionHandlerInternal):
2201
2202 2012-03-13  Dana Jansens  <danakj@chromium.org>
2203
2204         [chromium] Use projectQuad to apply inverse mapRect
2205         https://bugs.webkit.org/show_bug.cgi?id=80741
2206
2207         Reviewed by Adrienne Walker.
2208
2209         * tests/CCOcclusionTrackerTest.cpp:
2210         (WebCore):
2211         (CCOcclusionTrackerTest3dTransform):
2212         (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest):
2213         (CCOcclusionTrackerTestPerspectiveTransform):
2214         (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest):
2215         (CCOcclusionTrackerTestPerspectiveTransformBehindCamera):
2216         (WebCore::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest):
2217
2218 2012-03-13  Gavin Peters  <gavinp@chromium.org>
2219
2220         Make ApplicationCacheHost::canCacheInPageCache() non-const.
2221         https://bugs.webkit.org/show_bug.cgi?id=80904
2222
2223         Reviewed by Alexey Proskuryakov.
2224
2225         A const pointer to a large object like ApplicationCacheHost is not our standard
2226         practice; so remove this (implicit) one.  See also https://bugs.webkit.org/show_bug.cgi?id=80898
2227
2228         * src/ApplicationCacheHost.cpp:
2229         (WebCore::ApplicationCacheHost::canCacheInPageCache):
2230
2231 2012-03-13  Kinuko Yasuda  <kinuko@chromium.org>
2232
2233         Allow WebFileChooser to return extra file info (like displayName) in addition to mere file paths
2234         https://bugs.webkit.org/show_bug.cgi?id=80719
2235
2236         Reviewed by Kent Tamura.
2237
2238         * public/WebFileChooserCompletion.h:
2239         (SelectedFileInfo): Added.
2240         (WebFileChooserCompletion):
2241         (WebKit::WebFileChooserCompletion::didChooseFile): Added an overloaded
2242         method that takes SelectedFileInfo.
2243         * src/WebFileChooserCompletionImpl.cpp:
2244         (WebKit::WebFileChooserCompletionImpl::didChooseFile): Ditto.
2245         (WebKit):
2246         * src/WebFileChooserCompletionImpl.h:
2247         (WebFileChooserCompletionImpl):
2248
2249 2012-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
2250
2251         Unreviewed, rolling out r110529.
2252         http://trac.webkit.org/changeset/110529
2253         https://bugs.webkit.org/show_bug.cgi?id=80969
2254
2255         breaks mac build (Requested by morrita on #webkit).
2256
2257         * tests/CCOcclusionTrackerTest.cpp:
2258         (WebCore):
2259
2260 2012-03-12  Hajime Morrita  <morrita@chromium.org>
2261
2262         Unreviewed Windows build fix.
2263
2264         * src/WebViewImpl.cpp:
2265
2266 2012-03-12  Dana Jansens  <danakj@chromium.org>
2267
2268         [chromium] Use projectQuad to apply inverse mapRect
2269         https://bugs.webkit.org/show_bug.cgi?id=80741
2270
2271         Reviewed by Adrienne Walker.
2272
2273         * tests/CCOcclusionTrackerTest.cpp:
2274         (WebCore):
2275         (CCOcclusionTrackerTest3dTransform):
2276         (WebCore::CCOcclusionTrackerTest3dTransform::runMyTest):
2277         (CCOcclusionTrackerTestPerspectiveTransform):
2278         (WebCore::CCOcclusionTrackerTestPerspectiveTransform::runMyTest):
2279         (CCOcclusionTrackerTestPerspectiveTransformBehindCamera):
2280         (WebCore::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest):
2281
2282 2012-03-12  Dana Jansens  <danakj@chromium.org>
2283
2284         [chromium] Fix clang build for CCOcclusionTracker tests
2285         https://bugs.webkit.org/show_bug.cgi?id=80891
2286
2287         Reviewed by Adam Barth.
2288
2289         * tests/CCOcclusionTrackerTest.cpp:
2290         (WebCore::CCOcclusionTrackerTest::createRoot):
2291         (WebCore::CCOcclusionTrackerTest::createLayer):
2292         (WebCore::CCOcclusionTrackerTest::createDrawingLayer):
2293
2294 2012-03-12  Stephen White  <senorblanco@chromium.org>
2295
2296         [chromium] Restore canvas2D acceleration after context loss.
2297         https://bugs.webkit.org/show_bug.cgi?id=80629
2298
2299         Reviewed by James Robinson.
2300
2301         Covered by existing canvas tests, and manual testing (killing the GPU
2302         process).
2303
2304         * src/WebViewImpl.cpp:
2305         (WebKit::WebViewImpl::sharedGraphicsContext3D):
2306
2307 2012-03-12  Nat Duca  <nduca@chromium.org>
2308
2309         [Chromium] Force compositeAndReadback through regular scheduling flow
2310         https://bugs.webkit.org/show_bug.cgi?id=77049
2311
2312         Reviewed by James Robinson.
2313
2314         * tests/CCFrameRateControllerTest.cpp:
2315         (WebKitTests::FakeCCFrameRateControllerClient::reset):
2316         (WebKitTests::FakeCCFrameRateControllerClient::vsyncTicked):
2317         (WebKitTests::FakeCCFrameRateControllerClient::vsyncTick):
2318         (FakeCCFrameRateControllerClient):
2319         (WebKitTests::TEST):
2320         * tests/CCLayerTreeHostTest.cpp:
2321         (WTF):
2322         (CCLayerTreeHostTestCompositeAndReadbackWhileInvisible):
2323         (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible):
2324         (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::beginTest):
2325         (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::didCommitAndDrawFrame):
2326         (WTF::CCLayerTreeHostTestCompositeAndReadbackWhileInvisible::afterTest):
2327         (WTF::TEST_F):
2328         * tests/CCSchedulerStateMachineTest.cpp:
2329         (WebCore::StateMachine::setNeedsForcedCommit):
2330         (WebCore::StateMachine::needsForcedCommit):
2331         (StateMachine):
2332         (WebCore::TEST):
2333         (WebCore):
2334
2335 2012-03-12  Joshua Bell  <jsbell@chromium.org>
2336
2337         IndexedDB: Handle LevelDB database corruption
2338         https://bugs.webkit.org/show_bug.cgi?id=79413
2339
2340         Reviewed by Tony Chang.
2341
2342         * WebKit.gyp: Skip LevelDBTest.cpp in shared component builds due to webkit_support dependency
2343         * WebKit.gypi: Add LevelDBTest.cpp
2344         * tests/LevelDBTest.cpp: Added.
2345         (WebCore):
2346         (SimpleComparator):
2347         (WebCore::SimpleComparator::compare):
2348         (WebCore::SimpleComparator::name):
2349         (WebCore::encodeString):
2350         (WebCore::TEST):
2351
2352 2012-03-12  Dana Jansens  <danakj@chromium.org>
2353
2354         [chromium] Clean up culling tests and templatize to test impl constructs
2355         https://bugs.webkit.org/show_bug.cgi?id=80613
2356
2357         Reviewed by Adrienne Walker.
2358
2359         * tests/CCOcclusionTrackerTest.cpp:
2360         (WebCore::TestContentLayerChromium::TestContentLayerChromium):
2361         (WebCore::TestContentLayerChromium::opaqueContentsRegion):
2362         (WebCore::TestContentLayerChromium::setOpaqueContentsRect):
2363         (TestContentLayerChromium):
2364         (TestContentLayerImpl):
2365         (WebCore::TestContentLayerImpl::TestContentLayerImpl):
2366         (WebCore::TestContentLayerImpl::opaqueContentsRegion):
2367         (WebCore::TestContentLayerImpl::setOpaqueContentsRect):
2368         (WebCore):
2369         (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase):
2370         (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace):
2371         (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface):
2372         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace):
2373         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface):
2374         (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface):
2375         (WebCore::TestDamageClient::damageRect):
2376         (CCOcclusionTrackerTestMainThreadTypes):
2377         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer):
2378         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer):
2379         (CCOcclusionTrackerTestImplThreadTypes):
2380         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer):
2381         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer):
2382         (CCOcclusionTrackerTest):
2383         (WebCore::CCOcclusionTrackerTest::TearDown):
2384         (WebCore::CCOcclusionTrackerTest::createRoot):
2385         (WebCore::CCOcclusionTrackerTest::createLayer):
2386         (WebCore::CCOcclusionTrackerTest::createSurface):
2387         (WebCore::CCOcclusionTrackerTest::createDrawingLayer):
2388         (WebCore::CCOcclusionTrackerTest::createDrawingSurface):
2389         (WebCore::CCOcclusionTrackerTest::calcDrawEtc):
2390         (WebCore::CCOcclusionTrackerTest::setBaseProperties):
2391         (WebCore::CCOcclusionTrackerTest::setProperties):
2392         (CCOcclusionTrackerTestIdentityTransforms):
2393         (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest):
2394         (CCOcclusionTrackerTestRotatedChild):
2395         (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest):
2396         (CCOcclusionTrackerTestTranslatedChild):
2397         (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest):
2398         (CCOcclusionTrackerTestChildInRotatedChild):
2399         (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
2400         (CCOcclusionTrackerTestVisitTargetTwoTimes):
2401         (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
2402         (CCOcclusionTrackerTestSurfaceRotatedOffAxis):
2403         (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
2404         (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren):
2405         (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
2406         (CCOcclusionTrackerTestOverlappingSurfaceSiblings):
2407         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
2408         (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms):
2409         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
2410         (CCOcclusionTrackerTestFilters):
2411         (WebCore::CCOcclusionTrackerTestFilters::runMyTest):
2412         (CCOcclusionTrackerTestLayerScissorRectOutsideChild):
2413         (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest):
2414         (CCOcclusionTrackerTestScreenScissorRectOutsideChild):
2415         (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest):
2416         (CCOcclusionTrackerTestDamageRectOutsideChild):
2417         (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest):
2418         (CCOcclusionTrackerTestLayerScissorRectOverChild):
2419         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest):
2420         (CCOcclusionTrackerTestScreenScissorRectOverChild):
2421         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest):
2422         (CCOcclusionTrackerTestDamageRectOverChild):
2423         (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest):
2424         (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild):
2425         (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest):
2426         (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild):
2427         (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest):
2428         (CCOcclusionTrackerTestDamageRectPartlyOverChild):
2429         (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest):
2430         (CCOcclusionTrackerTestLayerScissorRectOverNothing):
2431         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest):
2432         (CCOcclusionTrackerTestScreenScissorRectOverNothing):
2433         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest):
2434         (CCOcclusionTrackerTestDamageRectOverNothing):
2435         (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest):
2436         (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin):
2437         (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest):
2438         (CCOcclusionTrackerTestOpaqueContentsRegionEmpty):
2439         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest):
2440         (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty):
2441         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest):
2442
2443 2012-03-11  Sheriff Bot  <webkit.review.bot@gmail.com>
2444
2445         Unreviewed, rolling out r110359.
2446         http://trac.webkit.org/changeset/110359
2447         https://bugs.webkit.org/show_bug.cgi?id=80799
2448
2449         SelectPopupMenuTest.ClickItem failure (Requested by ukai on
2450         #webkit).
2451
2452         * src/WebViewImpl.cpp:
2453         (WebKit::WebViewImpl::gestureEvent):
2454         (WebKit::WebViewImpl::applyAutofillSuggestions):
2455
2456 2012-03-11  Pavel Feldman  <pfeldman@chromium.org>
2457
2458         Web Inspector: [chromium] add provisional test for the downstream sanity test.
2459         https://bugs.webkit.org/show_bug.cgi?id=80784
2460
2461         Reviewed by Yury Semikhatsky.
2462
2463         * src/js/Tests.js:
2464         (.TestSuite.prototype.checkLogAndErrorMessages.validMessage):
2465         (.TestSuite.prototype.checkLogAndErrorMessages.onConsoleMessage):
2466         (.TestSuite.prototype.checkLogAndErrorMessages):
2467
2468 2012-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
2469
2470         Unreviewed, rolling out r110384.
2471         http://trac.webkit.org/changeset/110384
2472         https://bugs.webkit.org/show_bug.cgi?id=80774
2473
2474         compile failed on Chromium Win Release (Requested by ukai_home
2475         on #webkit).
2476
2477         * tests/CCOcclusionTrackerTest.cpp:
2478         (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent):
2479         (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion):
2480         (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect):
2481         (LayerChromiumWithForcedDrawsContent):
2482         (WebCore::setLayerPropertiesForTesting):
2483         (WebCore):
2484         (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker):
2485         (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace):
2486         (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface):
2487         (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace):
2488         (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface):
2489         (WebCore::TestCCOcclusionTracker::layerScissorRectInTargetSurface):
2490         (WebCore::TestDamageClient::damageRect):
2491         (WebCore::layerAddedToOccludedRegion):
2492         (WebCore::layerAddedToOccludedRegionWithRotation):
2493         (WebCore::layerAddedToOccludedRegionWithTranslation):
2494         (WebCore::layerAddedToOccludedRegionWithRotatedSurface):
2495         (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack):
2496         (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface):
2497         (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers):
2498         (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces):
2499         (WebCore::surfaceOcclusionInScreenSpace):
2500         (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms):
2501         (WebCore::occlusionInteractionWithFilters):
2502         (WebCore::layerScissorRectOverTile):
2503         (WebCore::screenScissorRectOverTile):
2504         (WebCore::layerScissorRectOverCulledTile):
2505         (WebCore::screenScissorRectOverCulledTile):
2506         (WebCore::layerScissorRectOverPartialTiles):
2507         (WebCore::screenScissorRectOverPartialTiles):
2508         (WebCore::layerScissorRectOverNoTiles):
2509         (WebCore::screenScissorRectOverNoTiles):
2510         (WebCore::layerScissorRectForLayerOffOrigin):
2511         (WebCore::damageRectOverTile):
2512         (WebCore::damageRectOverCulledTile):
2513         (WebCore::damageRectOverPartialTiles):
2514         (WebCore::damageRectOverNoTiles):
2515         (WebCore::TEST):
2516
2517 2012-03-10  Dana Jansens  <danakj@chromium.org>
2518
2519         [chromium] Clean up culling tests and templatize to test impl constructs
2520         https://bugs.webkit.org/show_bug.cgi?id=80613
2521
2522         Reviewed by Adrienne Walker.
2523
2524         * tests/CCOcclusionTrackerTest.cpp:
2525         (WebCore::TestContentLayerChromium::TestContentLayerChromium):
2526         (WebCore::TestContentLayerChromium::opaqueContentsRegion):
2527         (WebCore::TestContentLayerChromium::setOpaqueContentsRect):
2528         (TestContentLayerChromium):
2529         (TestContentLayerImpl):
2530         (WebCore::TestContentLayerImpl::TestContentLayerImpl):
2531         (WebCore::TestContentLayerImpl::opaqueContentsRegion):
2532         (WebCore::TestContentLayerImpl::setOpaqueContentsRect):
2533         (WebCore):
2534         (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase):
2535         (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace):
2536         (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface):
2537         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace):
2538         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface):
2539         (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface):
2540         (WebCore::TestDamageClient::damageRect):
2541         (CCOcclusionTrackerTestMainThreadTypes):
2542         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer):
2543         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer):
2544         (CCOcclusionTrackerTestImplThreadTypes):
2545         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer):
2546         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer):
2547         (CCOcclusionTrackerTest):
2548         (WebCore::CCOcclusionTrackerTest::TearDown):
2549         (WebCore::CCOcclusionTrackerTest::createRoot):
2550         (WebCore::CCOcclusionTrackerTest::createLayer):
2551         (WebCore::CCOcclusionTrackerTest::createSurface):
2552         (WebCore::CCOcclusionTrackerTest::createDrawingLayer):
2553         (WebCore::CCOcclusionTrackerTest::createDrawingSurface):
2554         (WebCore::CCOcclusionTrackerTest::calcDrawEtc):
2555         (WebCore::CCOcclusionTrackerTest::setBaseProperties):
2556         (WebCore::CCOcclusionTrackerTest::setProperties):
2557         (CCOcclusionTrackerTestIdentityTransforms):
2558         (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest):
2559         (CCOcclusionTrackerTestRotatedChild):
2560         (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest):
2561         (CCOcclusionTrackerTestTranslatedChild):
2562         (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest):
2563         (CCOcclusionTrackerTestChildInRotatedChild):
2564         (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
2565         (CCOcclusionTrackerTestVisitTargetTwoTimes):
2566         (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
2567         (CCOcclusionTrackerTestSurfaceRotatedOffAxis):
2568         (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
2569         (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren):
2570         (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
2571         (CCOcclusionTrackerTestOverlappingSurfaceSiblings):
2572         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
2573         (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms):
2574         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
2575         (CCOcclusionTrackerTestFilters):
2576         (WebCore::CCOcclusionTrackerTestFilters::runMyTest):
2577         (CCOcclusionTrackerTestLayerScissorRectOutsideChild):
2578         (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest):
2579         (CCOcclusionTrackerTestScreenScissorRectOutsideChild):
2580         (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest):
2581         (CCOcclusionTrackerTestDamageRectOutsideChild):
2582         (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest):
2583         (CCOcclusionTrackerTestLayerScissorRectOverChild):
2584         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest):
2585         (CCOcclusionTrackerTestScreenScissorRectOverChild):
2586         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest):
2587         (CCOcclusionTrackerTestDamageRectOverChild):
2588         (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest):
2589         (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild):
2590         (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest):
2591         (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild):
2592         (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest):
2593         (CCOcclusionTrackerTestDamageRectPartlyOverChild):
2594         (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest):
2595         (CCOcclusionTrackerTestLayerScissorRectOverNothing):
2596         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest):
2597         (CCOcclusionTrackerTestScreenScissorRectOverNothing):
2598         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest):
2599         (CCOcclusionTrackerTestDamageRectOverNothing):
2600         (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest):
2601         (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin):
2602         (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest):
2603         (CCOcclusionTrackerTestOpaqueContentsRegionEmpty):
2604         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest):
2605         (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty):
2606         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest):
2607
2608 2012-03-09  Jon Lee  <jonlee@apple.com>
2609
2610         Rename NotificationPresenter to NotificationClient
2611         https://bugs.webkit.org/show_bug.cgi?id=80488
2612         <rdar://problem/10965558>
2613
2614         Reviewed by Kentaro Hara.
2615
2616         Refactor to use renamed WebCore::NotificationClient.
2617         * src/AssertMatchingEnums.cpp:
2618         * src/NotificationPresenterImpl.cpp:
2619         (WebKit::NotificationPresenterImpl::checkPermission):
2620         * src/NotificationPresenterImpl.h:
2621         (NotificationPresenterImpl):
2622
2623 2012-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
2624
2625         Unreviewed, rolling out r110363.
2626         http://trac.webkit.org/changeset/110363
2627         https://bugs.webkit.org/show_bug.cgi?id=80757
2628
2629         link error in chromium: unresolved external symbol
2630         webkit_support::CreateScopedTempDirectory(void) (Requested by
2631         ukai_home on #webkit).
2632
2633         * WebKit.gypi:
2634         * tests/LevelDBTest.cpp: Removed.
2635
2636 2012-03-10  Sheriff Bot  <webkit.review.bot@gmail.com>
2637
2638         Unreviewed, rolling out r110353.
2639         http://trac.webkit.org/changeset/110353
2640         https://bugs.webkit.org/show_bug.cgi?id=80752
2641
2642         copmile failed on Chromium (Requested by ukai_home on
2643         #webkit).
2644
2645         * tests/CCOcclusionTrackerTest.cpp:
2646         (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent):
2647         (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion):
2648         (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect):
2649         (LayerChromiumWithForcedDrawsContent):
2650         (WebCore::setLayerPropertiesForTesting):
2651         (WebCore):
2652         (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker):
2653         (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace):
2654         (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface):
2655         (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace):
2656         (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface):
2657         (WebCore::TestCCOcclusionTracker::layerScissorRectInTargetSurface):
2658         (WebCore::TestDamageClient::damageRect):
2659         (WebCore::layerAddedToOccludedRegion):
2660         (WebCore::layerAddedToOccludedRegionWithRotation):
2661         (WebCore::layerAddedToOccludedRegionWithTranslation):
2662         (WebCore::layerAddedToOccludedRegionWithRotatedSurface):
2663         (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack):
2664         (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface):
2665         (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers):
2666         (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces):
2667         (WebCore::surfaceOcclusionInScreenSpace):
2668         (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms):
2669         (WebCore::occlusionInteractionWithFilters):
2670         (WebCore::layerScissorRectOverTile):
2671         (WebCore::screenScissorRectOverTile):
2672         (WebCore::layerScissorRectOverCulledTile):
2673         (WebCore::screenScissorRectOverCulledTile):
2674         (WebCore::layerScissorRectOverPartialTiles):
2675         (WebCore::screenScissorRectOverPartialTiles):
2676         (WebCore::layerScissorRectOverNoTiles):
2677         (WebCore::screenScissorRectOverNoTiles):
2678         (WebCore::layerScissorRectForLayerOffOrigin):
2679         (WebCore::damageRectOverTile):
2680         (WebCore::damageRectOverCulledTile):
2681         (WebCore::damageRectOverPartialTiles):
2682         (WebCore::damageRectOverNoTiles):
2683         (WebCore::TEST):
2684
2685 2012-03-09  Robert Kroeger  <rjkroege@chromium.org>
2686
2687         Handle more Gesture* events by performing scrolls on the correct target ScrollableArea 
2688         https://bugs.webkit.org/show_bug.cgi?id=80311
2689
2690         Added a unit test for the changes to ScrollAnimatorNone to make sure that the two-call
2691         transport of fling parameters is correctly delivered.
2692
2693         Reviewed by James Robinson.
2694
2695         * tests/ScrollAnimatorNoneTest.cpp:
2696         (MockScrollAnimatorNone):
2697         (MockScrollAnimatorNone::reset):
2698         (MockScrollAnimatorNone::fireUpAnAnimation):
2699         (TEST):
2700
2701 2012-03-07  James Robinson  <jamesr@chromium.org>
2702
2703         [chromium] Deprecate renderDirectlyToWebView parameter of WebViewClient::createGraphicsContext3D()
2704         https://bugs.webkit.org/show_bug.cgi?id=80523
2705
2706         Reviewed by Darin Fisher.
2707
2708         * public/WebViewClient.h:
2709         (WebViewClient):
2710         (WebKit::WebViewClient::createGraphicsContext3D):
2711         * public/platform/WebKitPlatformSupport.h:
2712         (WebKit):
2713         * src/WebViewImpl.cpp:
2714         (WebKit::WebViewImpl::createCompositorGraphicsContext3D):
2715
2716 2012-03-09  Joshua Bell  <jsbell@chromium.org>
2717
2718         IndexedDB: Handle LevelDB database corruption
2719         https://bugs.webkit.org/show_bug.cgi?id=79413
2720
2721         Reviewed by Tony Chang.
2722
2723         * WebKit.gypi:
2724         * tests/LevelDBTest.cpp: Added.
2725         (WebCore):
2726         (SimpleComparator):
2727         (WebCore::SimpleComparator::compare):
2728         (WebCore::SimpleComparator::name):
2729         (WebCore::encodeString):
2730         (WebCore::TEST):
2731
2732 2012-03-09  Tim Dresser  <tdresser@chromium.org>
2733
2734         [chromium] Increase size of Combo Box Options for touch and high DPI devices
2735         https://bugs.webkit.org/show_bug.cgi?id=80027
2736
2737         Reviewed by Darin Fisher.
2738
2739         * src/WebViewImpl.cpp:
2740         (WebKit::WebViewImpl::gestureEvent):
2741         (WebKit::WebViewImpl::applyAutofillSuggestions):
2742
2743 2012-03-09  James Robinson  <jamesr@chromium.org>
2744
2745         [chromium] Roll chromium DEPS to r125600
2746         https://bugs.webkit.org/show_bug.cgi?id=80722
2747
2748         Unreviewed
2749
2750         * DEPS:
2751
2752 2012-03-09  Dana Jansens  <danakj@chromium.org>
2753
2754         [chromium] Clean up culling tests and templatize to test impl constructs
2755         https://bugs.webkit.org/show_bug.cgi?id=80613
2756
2757         Reviewed by Adrienne Walker.
2758
2759         * tests/CCOcclusionTrackerTest.cpp:
2760         (WebCore::TestContentLayerChromium::TestContentLayerChromium):
2761         (WebCore::TestContentLayerChromium::opaqueContentsRegion):
2762         (WebCore::TestContentLayerChromium::setOpaqueContentsRect):
2763         (TestContentLayerChromium):
2764         (TestContentLayerImpl):
2765         (WebCore::TestContentLayerImpl::TestContentLayerImpl):
2766         (WebCore::TestContentLayerImpl::opaqueContentsRegion):
2767         (WebCore::TestContentLayerImpl::setOpaqueContentsRect):
2768         (WebCore):
2769         (WebCore::TestCCOcclusionTrackerBase::TestCCOcclusionTrackerBase):
2770         (WebCore::TestCCOcclusionTrackerBase::occlusionInScreenSpace):
2771         (WebCore::TestCCOcclusionTrackerBase::occlusionInTargetSurface):
2772         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInScreenSpace):
2773         (WebCore::TestCCOcclusionTrackerBase::setOcclusionInTargetSurface):
2774         (WebCore::TestCCOcclusionTrackerBase::layerScissorRectInTargetSurface):
2775         (WebCore::TestDamageClient::damageRect):
2776         (CCOcclusionTrackerTestMainThreadTypes):
2777         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createLayer):
2778         (WebCore::CCOcclusionTrackerTestMainThreadTypes::createContentLayer):
2779         (CCOcclusionTrackerTestImplThreadTypes):
2780         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createLayer):
2781         (WebCore::CCOcclusionTrackerTestImplThreadTypes::createContentLayer):
2782         (CCOcclusionTrackerTest):
2783         (WebCore::CCOcclusionTrackerTest::TearDown):
2784         (WebCore::CCOcclusionTrackerTest::createRoot):
2785         (WebCore::CCOcclusionTrackerTest::createLayer):
2786         (WebCore::CCOcclusionTrackerTest::createSurface):
2787         (WebCore::CCOcclusionTrackerTest::createDrawingLayer):
2788         (WebCore::CCOcclusionTrackerTest::createDrawingSurface):
2789         (WebCore::CCOcclusionTrackerTest::calcDrawEtc):
2790         (WebCore::CCOcclusionTrackerTest::setBaseProperties):
2791         (WebCore::CCOcclusionTrackerTest::setProperties):
2792         (CCOcclusionTrackerTestIdentityTransforms):
2793         (WebCore::CCOcclusionTrackerTestIdentityTransforms::runMyTest):
2794         (CCOcclusionTrackerTestRotatedChild):
2795         (WebCore::CCOcclusionTrackerTestRotatedChild::runMyTest):
2796         (CCOcclusionTrackerTestTranslatedChild):
2797         (WebCore::CCOcclusionTrackerTestTranslatedChild::runMyTest):
2798         (CCOcclusionTrackerTestChildInRotatedChild):
2799         (WebCore::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
2800         (CCOcclusionTrackerTestVisitTargetTwoTimes):
2801         (WebCore::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
2802         (CCOcclusionTrackerTestSurfaceRotatedOffAxis):
2803         (WebCore::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
2804         (CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren):
2805         (WebCore::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
2806         (CCOcclusionTrackerTestOverlappingSurfaceSiblings):
2807         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
2808         (CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms):
2809         (WebCore::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
2810         (CCOcclusionTrackerTestFilters):
2811         (WebCore::CCOcclusionTrackerTestFilters::runMyTest):
2812         (CCOcclusionTrackerTestLayerScissorRectOutsideChild):
2813         (WebCore::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest):
2814         (CCOcclusionTrackerTestScreenScissorRectOutsideChild):
2815         (WebCore::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest):
2816         (CCOcclusionTrackerTestDamageRectOutsideChild):
2817         (WebCore::CCOcclusionTrackerTestDamageRectOutsideChild::runMyTest):
2818         (CCOcclusionTrackerTestLayerScissorRectOverChild):
2819         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest):
2820         (CCOcclusionTrackerTestScreenScissorRectOverChild):
2821         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest):
2822         (CCOcclusionTrackerTestDamageRectOverChild):
2823         (WebCore::CCOcclusionTrackerTestDamageRectOverChild::runMyTest):
2824         (CCOcclusionTrackerTestLayerScissorRectPartlyOverChild):
2825         (WebCore::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest):
2826         (CCOcclusionTrackerTestScreenScissorRectPartlyOverChild):
2827         (WebCore::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest):
2828         (CCOcclusionTrackerTestDamageRectPartlyOverChild):
2829         (WebCore::CCOcclusionTrackerTestDamageRectPartlyOverChild::runMyTest):
2830         (CCOcclusionTrackerTestLayerScissorRectOverNothing):
2831         (WebCore::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest):
2832         (CCOcclusionTrackerTestScreenScissorRectOverNothing):
2833         (WebCore::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest):
2834         (CCOcclusionTrackerTestDamageRectOverNothing):
2835         (WebCore::CCOcclusionTrackerTestDamageRectOverNothing::runMyTest):
2836         (CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin):
2837         (WebCore::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest):
2838         (CCOcclusionTrackerTestOpaqueContentsRegionEmpty):
2839         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest):
2840         (CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty):
2841         (WebCore::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest):
2842
2843 2012-03-09  Emil A Eklund  <eae@chromium.org>
2844
2845         Add roundedPoint to HitTestResult and change platform code to use it
2846         https://bugs.webkit.org/show_bug.cgi?id=80715
2847
2848         Reviewed by James Robinson.
2849
2850         Change ports to use roundedPoint to avoid exposing subpixel types to
2851         platform code.
2852
2853         * src/ChromeClientImpl.cpp:
2854         (WebKit::ChromeClientImpl::mouseDidMoveOverElement):
2855         * src/ContextMenuClientImpl.cpp:
2856         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
2857
2858 2012-03-09  W. James MacLean  <wjmaclean@chromium.org>
2859
2860         [chromium] Implement scroll physics architecture for impl/main thread
2861         https://bugs.webkit.org/show_bug.cgi?id=79827
2862
2863         Reviewed by James Robinson.
2864
2865         * WebKit.gypi:
2866         * tests/PlatformGestureCurveTest.cpp: Added.
2867
2868 2012-03-09  Tien-Ren Chen  <trchen@chromium.org>
2869
2870         [chromium] ScrollbarLayerChromium/CCScrollbarLayerImpl for CC-side scrollbar painting
2871         https://bugs.webkit.org/show_bug.cgi?id=78872
2872
2873         Reviewed by James Robinson.
2874
2875         * WebKit.gypi:
2876         * tests/ScrollbarLayerChromiumTest.cpp: Added.
2877         (WebCore):
2878         (MockScrollbar):
2879         (WebCore::MockScrollbar::x):
2880         (WebCore::MockScrollbar::y):
2881         (WebCore::MockScrollbar::width):
2882         (WebCore::MockScrollbar::height):
2883         (WebCore::MockScrollbar::size):
2884         (WebCore::MockScrollbar::location):
2885         (WebCore::MockScrollbar::parent):
2886         (WebCore::MockScrollbar::root):
2887         (WebCore::MockScrollbar::setFrameRect):
2888         (WebCore::MockScrollbar::frameRect):
2889         (WebCore::MockScrollbar::invalidate):
2890         (WebCore::MockScrollbar::invalidateRect):
2891         (WebCore::MockScrollbar::scrollbarOverlayStyle):
2892         (WebCore::MockScrollbar::getTickmarks):
2893         (WebCore::MockScrollbar::isScrollableAreaActive):
2894         (WebCore::MockScrollbar::isScrollViewScrollbar):
2895         (WebCore::MockScrollbar::convertFromContainingWindow):
2896         (WebCore::MockScrollbar::isCustomScrollbar):
2897         (WebCore::MockScrollbar::orientation):
2898         (WebCore::MockScrollbar::value):
2899         (WebCore::MockScrollbar::currentPos):
2900         (WebCore::MockScrollbar::visibleSize):
2901         (WebCore::MockScrollbar::totalSize):
2902         (WebCore::MockScrollbar::maximum):
2903         (WebCore::MockScrollbar::controlSize):
2904         (WebCore::MockScrollbar::lineStep):
2905         (WebCore::MockScrollbar::pageStep):
2906         (WebCore::MockScrollbar::pressedPart):
2907         (WebCore::MockScrollbar::hoveredPart):
2908         (WebCore::MockScrollbar::styleChanged):
2909         (WebCore::MockScrollbar::enabled):
2910         (WebCore::MockScrollbar::setEnabled):
2911         (WebCore::MockScrollbar::MockScrollbar):
2912         (WebCore::MockScrollbar::~MockScrollbar):
2913         (WebCore::TEST):
2914
2915 2012-03-08  James Robinson  <jamesr@chromium.org>
2916
2917         [chromium] Expose the shared graphics context on WebView so callers can allocate resources on the main thread for the compositor to use
2918         https://bugs.webkit.org/show_bug.cgi?id=80670
2919
2920         Reviewed by Stephen White.
2921
2922         This exposes a context on WebView that is in the compositor's share group and can be used directly from the main
2923         thread. This is useful for content that needs to allocate resources for the compositor to use, but cannot
2924         directly use the compositor's context either because it cannot access the correct thread or because it needs to
2925         initialize in situations where we cannot initialize a compositor (view) context - for instance before the native
2926         window is created.
2927
2928         * public/WebView.h:
2929         (WebView):
2930         * src/WebViewImpl.cpp:
2931         (WebKit::WebViewImpl::sharedGraphicsContext3D):
2932         (WebKit):
2933         * src/WebViewImpl.h:
2934         (WebViewImpl):
2935
2936 2012-03-09  Dana Jansens  <danakj@chromium.org>
2937
2938         [chromium] Use opaque paints in CCOcclusionTracker
2939         https://bugs.webkit.org/show_bug.cgi?id=80173
2940
2941         Reviewed by Adrienne Walker.
2942
2943         * tests/CCOcclusionTrackerTest.cpp:
2944         (WebCore::LayerChromiumWithForcedDrawsContent::opaqueContentsRegion):
2945         (LayerChromiumWithForcedDrawsContent):
2946         (WebCore::LayerChromiumWithForcedDrawsContent::setOpaquePaintRect):
2947         (WebCore::setLayerPropertiesForTesting):
2948         (WebCore):
2949         (WebCore::layerAddedToOccludedRegion):
2950         (WebCore::layerAddedToOccludedRegionWithRotation):
2951         (WebCore::layerAddedToOccludedRegionWithTranslation):
2952         (WebCore::layerAddedToOccludedRegionWithRotatedSurface):
2953         (WebCore::layerAddedToOccludedRegionWithSurfaceAlreadyOnStack):
2954         (WebCore::layerAddedToOccludedRegionWithRotatedOffAxisSurface):
2955         (WebCore::layerAddedToOccludedRegionWithMultipleOpaqueLayers):
2956         (WebCore::surfaceOcclusionWithOverlappingSiblingSurfaces):
2957         (WebCore::surfaceOcclusionInScreenSpace):
2958         (WebCore::surfaceOcclusionInScreenSpaceDifferentTransforms):
2959         (WebCore::occlusionInteractionWithFilters):
2960         (WebCore::layerScissorRectOverTile):
2961         (WebCore::screenScissorRectOverTile):
2962         (WebCore::layerScissorRectOverCulledTile):
2963         (WebCore::screenScissorRectOverCulledTile):
2964         (WebCore::layerScissorRectOverPartialTiles):
2965         (WebCore::screenScissorRectOverPartialTiles):
2966         (WebCore::layerScissorRectOverNoTiles):
2967         (WebCore::screenScissorRectOverNoTiles):
2968         (WebCore::layerScissorRectForLayerOffOrigin):
2969         (WebCore::damageRectOverTile):
2970         (WebCore::damageRectOverCulledTile):
2971         (WebCore::damageRectOverPartialTiles):
2972         (WebCore::damageRectOverNoTiles):
2973         (WebCore::TEST):
2974         * tests/TiledLayerChromiumTest.cpp:
2975         (WTF::TEST):
2976         (WTF):
2977
2978 2012-03-09  Jon Lee  <jonlee@apple.com>
2979
2980         Add support for ENABLE(LEGACY_NOTIFICATIONS)
2981         https://bugs.webkit.org/show_bug.cgi?id=80497
2982
2983         Reviewed by Adam Barth.
2984
2985         Prep for b80472: Update API for Web Notifications
2986         * features.gypi:
2987
2988 2012-03-09  Ian Vollick  <vollick@chromium.org>
2989
2990         [chromium] Ensure we use the correct time when notifying animation started
2991         https://bugs.webkit.org/show_bug.cgi?id=79537
2992
2993         Reviewed by James Robinson
2994
2995         * src/WebCompositorInputHandlerImpl.cpp:
2996         (WebKit::WebCompositorInputHandlerImpl::willDraw):
2997         * src/WebCompositorInputHandlerImpl.h:
2998         (WebCompositorInputHandlerImpl):
2999         * tests/CCLayerTreeHostImplTest.cpp:
3000         (WebKit::CCLayerTreeHostImplTest::postAnimationEventsToMainThreadOnImplThread):
3001         (WebKit::TEST_F):
3002         * tests/CCLayerTreeHostTest.cpp:
3003         (WTF::TestHooks::animateLayers):
3004         (WTF::TestHooks::updateAnimations):
3005         (WTF::MockLayerTreeHostImpl::animateLayers):
3006         (WTF::MockLayerTreeHostClient::updateAnimations):
3007         (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation):
3008         (WTF::CCLayerTreeHostTestAddAnimation::animateLayers):
3009         (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationStarted):
3010         (CCLayerTreeHostTestAddAnimation):
3011
3012 2012-03-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3013
3014         Unreviewed, rolling out r110191, r110202, and r110279.
3015         http://trac.webkit.org/changeset/110191
3016         http://trac.webkit.org/changeset/110202
3017         http://trac.webkit.org/changeset/110279
3018         https://bugs.webkit.org/show_bug.cgi?id=80694
3019
3020         They broke !ENABLE(INSPECTOR) builds (Requested by Ossy on
3021         #webkit).
3022
3023         * features.gypi:
3024
3025 2012-03-09  Alexander Pavlov  <apavlov@chromium.org>
3026
3027         [chromium] Unreviewed, build fix after r110191
3028
3029         * features.gypi:
3030
3031 2012-03-08  Ian Vollick  <vollick@chromium.org>
3032
3033         [chromium] Ensure that the cc thread animation framework continues to tick when the tab is backgrounded
3034         https://bugs.webkit.org/show_bug.cgi?id=77668
3035
3036         Reviewed by James Robinson.
3037
3038         * tests/CCLayerTreeHostTest.cpp:
3039         (WTF::CCLayerTreeHostTest::postAddInstantAnimationToMainThread):
3040         (CCLayerTreeHostTest):
3041         (WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation):
3042         (WTF::CCLayerTreeHostTest::dispatchAddAnimation):
3043         (WTF::CCLayerTreeHostTestAddAnimation::beginTest):
3044         (WTF):
3045         (CCLayerTreeHostTestTickAnimationWhileBackgrounded):
3046         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::CCLayerTreeHostTestTickAnimationWhileBackgrounded):
3047         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::beginTest):
3048         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::animateLayers):
3049         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::afterTest):
3050         (WTF::TEST_F):
3051
3052 2012-03-08  Jeff Timanus  <twiz@chromium.org>
3053
3054         [chromium] Force the Canvas2D GPU texture cache to 0 bytes for backgrounded tabs.
3055         https://bugs.webkit.org/show_bug.cgi?id=79948
3056
3057         Reviewed by Stephen White.
3058
3059         * src/GraphicsContext3DChromium.cpp:
3060         (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
3061         (WebCore::GraphicsContext3DPrivate::grContext):
3062         (WebCore::GraphicsContext3DPrivate::setVisibilityCHROMIUM):
3063
3064 2012-03-08  Dana Jansens  <danakj@chromium.org>
3065
3066         [chromium] Replace completelyContains with Region::contains()
3067         https://bugs.webkit.org/show_bug.cgi?id=80617
3068
3069         Reviewed by James Robinson.
3070
3071         * tests/CCLayerTestCommon.cpp:
3072         (CCLayerTestCommon):
3073         (CCLayerTestCommon::verifyQuadsExactlyCoverRect):
3074         * tests/CCLayerTestCommon.h:
3075         (CCLayerTestCommon):
3076
3077 2012-03-08  James Robinson  <jamesr@chromium.org>
3078
3079         Use an explicit attribute to signal that a context prefers to use a discrete GPU
3080         https://bugs.webkit.org/show_bug.cgi?id=80639
3081
3082         Reviewed by Stephen White.
3083
3084         * src/GraphicsContext3DChromium.cpp:
3085         (WebCore::GraphicsContext3DPrivate::getContextAttributes):
3086         (WebCore::GraphicsContext3D::create):
3087         * src/WebViewImpl.cpp:
3088         (WebKit::WebViewImpl::createCompositorGraphicsContext3D):
3089
3090 2012-03-08  Scott Byer  <scottbyer@chromium.org>
3091
3092         Have ScrollAnimatorNone use requestAnimationFrame
3093         https://bugs.webkit.org/show_bug.cgi?id=78938
3094
3095         Reviewed by James Robinson.
3096
3097         * src/ScrollbarGroup.h:
3098         (WebCore):
3099         (WebKit::ScrollbarGroup::hostWindow):
3100         (ScrollbarGroup):
3101         * tests/ScrollAnimatorNoneTest.cpp:
3102         (MockScrollableArea::hostWindow):
3103
3104 2012-03-08  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3105
3106         Make elements with attributes smaller by eliminating the m_element back pointer in NamedNodeMap
3107         https://bugs.webkit.org/show_bug.cgi?id=75069
3108
3109         Reviewed by Ryosuke Niwa.
3110
3111         * src/WebElement.cpp: Include NamedNodeMap.h since Element.h doesn't include it anymore.
3112
3113 2012-03-07  Kent Tamura  <tkent@chromium.org>
3114
3115         Remove meaningless code in RenderTextControlSingleLine::preferredContentWidth()
3116         https://bugs.webkit.org/show_bug.cgi?id=80493
3117
3118         Reviewed by Hajime Morita.
3119
3120         * src/WebInputElement.cpp:
3121         RenderTextControlSingleLine::speechButtonElement() is removed. The
3122         following functions get it from HTMLInputElement.
3123         (WebKit::WebInputElement::getSpeechInputState):
3124         (WebKit::WebInputElement::startSpeechInput):
3125         (WebKit::WebInputElement::stopSpeechInput):
3126
3127 2012-03-07  Adam Barth  <abarth@webkit.org>
3128
3129         Remove #define private public from WebCache.cpp
3130         https://bugs.webkit.org/show_bug.cgi?id=80520
3131
3132         Reviewed by Eric Seidel.
3133
3134         This patch removes a hack we added long ago when Chromium used a forked
3135         copy of WebKit and editing WebCore caused merge pain.  Now that we're
3136         on trunk, we can unwind this hack.
3137
3138         * src/WebCache.cpp:
3139         (WebKit::WebCache::getUsageStats):
3140
3141 2012-03-07  Joshua Bell  <jsbell@chromium.org>
3142
3143         [Chromium] IndexedDB: V8LocalContext creation in IDBKey extraction/injection is slow
3144         https://bugs.webkit.org/show_bug.cgi?id=80358
3145
3146         Reviewed by Tony Chang.
3147
3148         * tests/IDBBindingUtilitiesTest.cpp:
3149         (WebCore::TEST):
3150
3151 2012-03-07  Scott Byer  <scottbyer@chromium.org>
3152
3153         Get ScrollAnimatorNone to handle the stop and reverse cases.
3154         https://bugs.webkit.org/show_bug.cgi?id=80455
3155
3156         Reviewed by James Robinson.
3157
3158         * tests/ScrollAnimatorNoneTest.cpp:
3159         (ScrollAnimatorNoneTest::updateDataFromParameters):
3160         (TEST_F):
3161
3162 2012-03-07  Dana Jansens  <danakj@chromium.org>
3163
3164         [chromium] Cull occluded tiles during paint
3165         https://bugs.webkit.org/show_bug.cgi?id=76838
3166
3167         Reviewed by Adrienne Walker.
3168
3169         * tests/CCLayerTreeHostTest.cpp:
3170         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
3171         * tests/TiledLayerChromiumTest.cpp:
3172         (WTF::FakeLayerTextureUpdater::Texture::prepareRect):
3173         (WTF::FakeLayerTextureUpdater::FakeLayerTextureUpdater):
3174         (FakeLayerTextureUpdater):
3175         (WTF::FakeLayerTextureUpdater::prepareRectCount):
3176         (WTF::FakeLayerTextureUpdater::clearPrepareRectCount):
3177         (WTF::FakeLayerTextureUpdater::prepareRect):
3178         (WTF::FakeTiledLayerChromium::prepareToUpdate):
3179         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
3180         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
3181         (WTF::TEST):
3182         (WTF):
3183
3184 2012-03-07  Elliot Poger  <epoger@google.com>
3185
3186         [Chromium] Remove use_skia option from GYP
3187         https://bugs.webkit.org/show_bug.cgi?id=75811
3188
3189         Reviewed by Tony Chang.
3190
3191         * WebKit.gyp:
3192         * WebKit.gypi:
3193         * features.gypi:
3194
3195 2012-03-06  Dana Jansens  <danakj@chromium.org>
3196
3197         [chromium] Add clipping to scissor rect to CCOcclusionTracker
3198         https://bugs.webkit.org/show_bug.cgi?id=79927
3199
3200         Reviewed by Adrienne Walker.
3201
3202         * tests/CCOcclusionTrackerTest.cpp:
3203         (WebCore::TestCCOcclusionTracker::TestCCOcclusionTracker):
3204         (TestCCOcclusionTracker):
3205         (WebCore::TestCCOcclusionTracker::setLayerScissorRect):
3206         (WebCore::TestCCOcclusionTracker::useDefaultLayerScissorRect):
3207         (WebCore::TestCCOcclusionTracker::layerScissorRect):
3208         (WebCore):
3209         (TestDamageClient):
3210         (WebCore::TestDamageClient::damageRect):
3211         (WebCore::TestDamageClient::TestDamageClient):
3212         (WebCore::TestDamageClient::setDamageRect):
3213         (WebCore::TEST):
3214
3215 2012-03-06  Kenichi Ishibashi  <bashi@chromium.org>
3216
3217         [WebSocket] Introduce ThreadableWebSocketChannel::SendResult
3218         https://bugs.webkit.org/show_bug.cgi?id=80356
3219
3220         Reviewed by Kent Tamura.
3221
3222         * src/WebSocketImpl.cpp:
3223         (WebKit::WebSocketImpl::sendText): Checks whether the return value of send() is ThreadableWebSocketChannel::SendSuccess.
3224         (WebKit::WebSocketImpl::sendArrayBuffer): Ditto.
3225
3226 2012-03-06  Nat Duca  <nduca@chromium.org>
3227
3228         [chromium] CCThreadProxy context lost support
3229         https://bugs.webkit.org/show_bug.cgi?id=80100
3230
3231         Reviewed by James Robinson.
3232
3233         * tests/CCSchedulerStateMachineTest.cpp:
3234         * tests/CCSchedulerTest.cpp:
3235         (WebKitTests::FakeCCSchedulerClient::scheduledActionBeginContextRecreation):
3236         (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionBeginContextRecreation):
3237         (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionBeginContextRecreation):
3238
3239 2012-03-06  James Robinson  <jamesr@chromium.org>
3240
3241         [chromium] Null-check m_layerRenderer in CCLayerTreeHostImpl::finishAllRendering()
3242         https://bugs.webkit.org/show_bug.cgi?id=80445
3243
3244         Reviewed by Adrienne Walker.
3245
3246         * tests/CCLayerTreeHostImplTest.cpp:
3247         (FakeWebGraphicsContext3DMakeCurrentFails):
3248         (WebKit::FakeWebGraphicsContext3DMakeCurrentFails::makeContextCurrent):
3249         (WebKit):
3250         (WebKit::TEST_F):
3251
3252 2012-03-06  David Grogan  <dgrogan@chromium.org>
3253
3254         [Chromium] Add OVERRIDEs to WebWorkerClientImpl.h
3255         https://bugs.webkit.org/show_bug.cgi?id=80434
3256
3257         Reviewed by Tony Chang.
3258
3259         Tests: just that it compiles.
3260
3261         * src/WebWorkerClientImpl.h:
3262         (WebWorkerClientImpl):
3263
3264 2012-03-06  David Grogan  <dgrogan@chromium.org>
3265
3266         IndexedDB: Check WebCommonWorkerClient::allowIndexedDB before proceeding from a shared worker
3267         https://bugs.webkit.org/show_bug.cgi?id=79954
3268
3269         Tests: The 'allow' case will be tested once the patch at
3270         http://webkit.org/b/80189 and
3271         https://chromiumcodereview.appspot.com/9585031/ both land. Bug for
3272         testing the 'deny' case is http://crbug.com/113738.
3273
3274         Reviewed by Tony Chang.
3275
3276         * public/WebCommonWorkerClient.h:
3277         (WebKit::WebCommonWorkerClient::allowDatabase):
3278         (WebKit::WebCommonWorkerClient::allowFileSystem):
3279         (WebKit::WebCommonWorkerClient::openFileSystem):
3280         (WebCommonWorkerClient):
3281         (WebKit::WebCommonWorkerClient::allowIndexedDB):
3282         * public/WebSharedWorkerClient.h:
3283         (WebSharedWorkerClient):
3284         * src/IDBFactoryBackendProxy.cpp:
3285         (WebKit::AllowIndexedDBMainThreadBridge::create):
3286         (WebKit::AllowIndexedDBMainThreadBridge::cancel):
3287         (WebKit::AllowIndexedDBMainThreadBridge::signalCompleted):
3288         (WebKit::AllowIndexedDBMainThreadBridge::AllowIndexedDBMainThreadBridge):
3289         (WebKit::AllowIndexedDBMainThreadBridge::allowIndexedDBTask):
3290         (AllowIndexedDBMainThreadBridge):
3291         (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread):
3292         * src/WebWorkerClientImpl.cpp:
3293         (WebKit):
3294         (WebKit::WebWorkerClientImpl::allowIndexedDB):
3295         * src/WebWorkerClientImpl.h:
3296         (WebWorkerClientImpl):
3297
3298 2012-03-06  Stephen White  <senorblanco@chromium.org>
3299
3300         Unreviewed, rolling out r109825.
3301         http://trac.webkit.org/changeset/109825
3302         https://bugs.webkit.org/show_bug.cgi?id=79413
3303
3304         Broke webkit_unit_tests on Chromium Win
3305
3306         * WebKit.gypi:
3307         * tests/LevelDBTest.cpp: Removed.
3308
3309 2012-03-06  Takashi Toyoshima  <toyoshim@chromium.org>
3310
3311         [Chromium] [WebSocket] Add WebSocket extensions query WebKit API
3312         https://bugs.webkit.org/show_bug.cgi?id=80190
3313
3314         Reviewed by Darin Fisher.
3315
3316         * public/WebSocket.h: Add extensions() declaration.
3317         (WebSocket):
3318         * src/WebSocketImpl.cpp: Implement extensions() bridge.
3319         (WebKit::WebSocketImpl::extensions):
3320         (WebKit):
3321         * src/WebSocketImpl.h: Add extensions() declaration.
3322         (WebSocketImpl):
3323
3324 2012-03-05  Kent Tamura  <tkent@chromium.org>
3325
3326         Do not reformat strings in <input type=number> on platforms using LocalizedNumberICU.
3327         https://bugs.webkit.org/show_bug.cgi?id=78326
3328
3329         Reviewed by Hajime Morita.
3330
3331         Add a test for WebCore/platform/text/LocalizedNumberICU.
3332
3333         * WebKit.gypi: Added LocalizedNumberICUTest.cpp
3334         * tests/LocalizedNumberICUTest.cpp: Added.
3335
3336 2012-03-05  Kenneth Russell  <kbr@google.com>
3337
3338         [chromium] Notify CCLayerImpl tree of context loss and restoration
3339         https://bugs.webkit.org/show_bug.cgi?id=80339
3340
3341         Reviewed by James Robinson.
3342
3343         Unit test for notification of context loss and restoration.
3344
3345         * tests/CCLayerTreeHostImplTest.cpp:
3346         (WebKit):
3347         (ContextLostNotificationCheckLayer):
3348         (WebKit::ContextLostNotificationCheckLayer::create):
3349         (WebKit::ContextLostNotificationCheckLayer::didLoseAndRecreateGraphicsContext):
3350         (WebKit::ContextLostNotificationCheckLayer::didLoseAndRecreateGraphicsContextCalled):
3351         (WebKit::ContextLostNotificationCheckLayer::ContextLostNotificationCheckLayer):
3352         (WebKit::TEST_F):
3353
3354 2012-03-05  Changhun Kang  <temoochin@company100.net>
3355
3356         Change the argument orders to match OpenGL's in GraphicsContext3D functions
3357         https://bugs.webkit.org/show_bug.cgi?id=80120
3358
3359         Reviewed by Kenneth Russell.
3360
3361         No new tests because this patch just change the order of arguments.
3362
3363         * src/GraphicsContext3DChromium.cpp:
3364         (WebCore::GraphicsContext3DPrivate::uniform1fv):
3365         (WebCore::GraphicsContext3DPrivate::uniform1iv):
3366         (WebCore::GraphicsContext3DPrivate::uniform2fv):
3367         (WebCore::GraphicsContext3DPrivate::uniform2iv):
3368         (WebCore::GraphicsContext3DPrivate::uniform3fv):
3369         (WebCore::GraphicsContext3DPrivate::uniform3iv):
3370         (WebCore::GraphicsContext3DPrivate::uniform4fv):
3371         (WebCore::GraphicsContext3DPrivate::uniform4iv):
3372         (WebCore::GraphicsContext3DPrivate::uniformMatrix2fv):
3373         (WebCore::GraphicsContext3DPrivate::uniformMatrix3fv):
3374         (WebCore::GraphicsContext3DPrivate::uniformMatrix4fv):
3375         (WebCore):
3376         * src/GraphicsContext3DPrivate.h:
3377         (GraphicsContext3DPrivate):
3378
3379 2012-03-05  Yoshifumi Inoue  <yosin@chromium.org>
3380
3381         [Chromium] WebOptionElement should inherit WebElement instead of WebFormControlElement
3382         https://bugs.webkit.org/show_bug.cgi?id=80089
3383
3384         Change class hierarchy of WebOptionElement to match with specification.
3385
3386         Reviewed by Darin Fisher.
3387
3388         * public/WebOptionElement.h: Replace to WebElement from WebFormControlElement 
3389         (WebKit::WebOptionElement::WebOptionElement):
3390         (WebKit::WebOptionElement::operator=):
3391         (WebKit::WebOptionElement::assign):
3392         * src/WebOptionElement.cpp:
3393         (WebKit::WebOptionElement::WebOptionElement):
3394
3395 2012-03-05  Joshua Bell  <jsbell@chromium.org>
3396
3397         IndexedDB: Handle LevelDB database corruption
3398         https://bugs.webkit.org/show_bug.cgi?id=79413
3399
3400         Reviewed by Tony Chang.
3401
3402         * WebKit.gypi:
3403         * tests/LevelDBTest.cpp: Added.
3404         (WebCore):
3405         (SimpleComparator):
3406         (WebCore::SimpleComparator::compare):
3407         (WebCore::SimpleComparator::name):
3408         (WebCore::encodeString):
3409         (WebCore::TEST):
3410
3411 2012-03-05  Min Qin  <qinmin@google.com>
3412
3413         Enable context menu on android
3414
3415         For android, long press is converted into a right mouse down event
3416         So we will use that to invoke the context menu
3417         https://bugs.webkit.org/show_bug.cgi?id=80332
3418
3419         Reviewed by Adam Barth.
3420
3421         * src/WebViewImpl.cpp:
3422         (WebKit::WebViewImpl::mouseDown):
3423
3424 2012-03-05  Kent Tamura  <tkent@chromium.org>
3425
3426         [Chromium] Add new popup type: PagePopup
3427         https://bugs.webkit.org/show_bug.cgi?id=80106
3428
3429         Reviewed by Darin Fisher.
3430
3431         This is a preparation of implementing ChromeClient::openPagePopup and
3432         closePagePopup.
3433
3434         * WebKit.gyp: Add WebPagePopup.h and WebPagePopupImpl.cpp.
3435         * public/WebPagePopup.h:
3436         (WebPagePopup): Add WebPagePopup interface.
3437         * public/WebPopupType.h: Add WebPopupTypePage.
3438         * src/WebPagePopupImpl.cpp:
3439         (WebKit::WebPagePopup::create): Temprary implementation which just returns 0.
3440
3441 2012-03-05  Charlie Reis  <creis@chromium.org>
3442
3443         [chromium] Pass WebNavigationPolicy to WebViewClient::createView
3444         https://bugs.webkit.org/show_bug.cgi?id=80057
3445
3446         Reviewed by Darin Fisher.
3447
3448         * public/WebViewClient.h:
3449         (WebViewClient):
3450         (WebKit::WebViewClient::createView):
3451         * src/ChromeClientImpl.cpp:
3452         (WebKit::ChromeClientImpl::ChromeClientImpl):
3453         (WebKit::ChromeClientImpl::createWindow):
3454         (WebKit::ChromeClientImpl::getNavigationPolicy):
3455         (WebKit):
3456         (WebKit::ChromeClientImpl::show):
3457         (WebKit::ChromeClientImpl::setNewWindowNavigationPolicy):
3458         * src/ChromeClientImpl.h:
3459         (ChromeClientImpl):
3460         * src/FrameLoaderClientImpl.cpp:
3461         (WebKit::FrameLoaderClientImpl::dispatchCreatePage):
3462         (WebKit::FrameLoaderClientImpl::dispatchDecidePolicyForNewWindowAction):
3463
3464 2012-03-05  James Robinson  <jamesr@chromium.org>
3465
3466         [chromium] Initialize CCOverdrawCounts struct to zero
3467         https://bugs.webkit.org/show_bug.cgi?id=80204
3468
3469         Reviewed by Adrienne Walker.
3470
3471         Update test to use c'tor instead of {} struct initialization.
3472
3473         * tests/CCQuadCullerTest.cpp:
3474         (WebCore):
3475
3476 2012-03-05  Takashi Toyoshima  <toyoshim@chromium.org>
3477
3478         [Chromium] [WebSocket] use OVERRIDE in WebSocketImpl.h
3479         https://bugs.webkit.org/show_bug.cgi?id=80192
3480
3481         Reviewed by Kent Tamura.
3482
3483         * src/WebSocketImpl.h: use OVERRIDE macro.
3484         (WebSocketImpl):
3485
3486 2012-03-05  Adam Barth  <abarth@webkit.org>
3487
3488         Geolocation should use a ScriptExecutionContext as its context object
3489         https://bugs.webkit.org/show_bug.cgi?id=80248
3490
3491         Reviewed by Kentaro Hara.
3492
3493         Rather than indirecting through the Frame to get the SecurityOrigin, we
3494         should get the SecurityOrigin directly from ScriptExecutionContext.
3495
3496         * src/WebGeolocationPermissionRequest.cpp:
3497         (WebKit::WebGeolocationPermissionRequest::securityOrigin):
3498
3499 2012-03-02  Andrey Kosyakov  <caseq@chromium.org>
3500
3501         Add instrumentation for frame start/end on timeline.
3502
3503         Web Inspector: add timeline instrumentation for frame events
3504         https://bugs.webkit.org/show_bug.cgi?id=80127
3505
3506         Reviewed by Pavel Feldman.
3507
3508         - expose an instrumentation method from WebWidget to mark frame update start
3509
3510         * public/WebWidget.h:
3511         (WebWidget):
3512         (WebKit::WebWidget::instrumentBeginFrame):
3513         * src/WebViewImpl.cpp:
3514         (WebKit::WebViewImpl::instrumentBeginFrame):
3515         (WebKit):
3516         * src/WebViewImpl.h:
3517         (WebViewImpl):
3518
3519 2012-03-03  Benjamin Poulain  <benjamin@webkit.org>
3520
3521         Remove the redundant method KURL::protocolInHTTPFamily()
3522         https://bugs.webkit.org/show_bug.cgi?id=80216
3523
3524         Reviewed by Anders Carlsson.
3525
3526         * src/FrameLoaderClientImpl.cpp:
3527         (WebKit::FrameLoaderClientImpl::dispatchWillPerformClientRedirect):
3528         * src/WebPageSerializer.cpp:
3529         (WebCore::retrieveResourcesForElement):
3530
3531 2012-03-03  Hans Wennborg  <hans@chromium.org>
3532
3533         Implement Speech JavaScript API
3534         https://bugs.webkit.org/show_bug.cgi?id=80019
3535
3536         Reviewed by Adam Barth.
3537
3538         Add ENABLE_SCRIPTED_SPEECH and runtime flag.
3539
3540         * features.gypi:
3541         * public/WebRuntimeFeatures.h:
3542         (WebRuntimeFeatures):
3543         * src/WebRuntimeFeatures.cpp:
3544         (WebKit::WebRuntimeFeatures::enableScriptedSpeech):
3545         (WebKit):
3546         (WebKit::WebRuntimeFeatures::isScriptedSpeechEnabled):
3547
3548 2012-03-03  Bill Budge  <bbudge@chromium.org>
3549
3550         Fixes AssociatedURLLoader support for Access-Control-Expose-Headers field in response.
3551         https://bugs.webkit.org/show_bug.cgi?id=80198
3552
3553         Reviewed by Adam Barth.
3554
3555         * src/AssociatedURLLoader.cpp:
3556         * tests/AssociatedURLLoaderTest.cpp:
3557
3558 2012-03-02  Dana Jansens  <danakj@chromium.org>
3559
3560         [Chromium] Allow plugins to set opaque() on their platform layer
3561         https://bugs.webkit.org/show_bug.cgi?id=80171
3562
3563         Reviewed by James Robinson.
3564
3565         * public/WebPluginContainer.h:
3566         (WebPluginContainer):
3567         * src/WebPluginContainerImpl.cpp:
3568         (WebKit::WebPluginContainerImpl::setOpaque):
3569         (WebKit):
3570         * src/WebPluginContainerImpl.h:
3571         (WebPluginContainerImpl):
3572
3573 2012-03-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3574
3575         Make parser code not depend on NamedNodeMap
3576         https://bugs.webkit.org/show_bug.cgi?id=79963
3577
3578         Reviewed by Adam Barth.
3579
3580         * src/WebNamedNodeMap.cpp:
3581         (WebKit::WebNamedNodeMap::attributeItem):
3582
3583 2012-03-01  Dana Jansens  <danakj@chromium.org>
3584
3585         [chromium] Make opaque paint tracker aware of SkCanvas layers
3586         https://bugs.webkit.org/show_bug.cgi?id=79145
3587
3588         Reviewed by Stephen White.
3589
3590         * tests/PlatformContextSkiaTest.cpp:
3591         (WebCore::TEST):
3592         (WebCore):
3593
3594 2012-03-01  Hironori Bono  <hbono@chromium.org>
3595
3596         Render overflow controls of an RTL element to its left-side.
3597         https://bugs.webkit.org/show_bug.cgi?id=54623
3598
3599         This change adds a new flag WTF_USE_RTL_SCROLLBAR and render the
3600         vertical scrollbars and resizers of RTL elements to their left side if
3601         this new flag is enabled.
3602
3603         Reviewed by Ryosuke Niwa.
3604
3605         * features.gypi: Set WTF_USE_RTL_SCROLLBAR to 1 on Chromium.
3606
3607 2012-03-01  James Robinson  <jamesr@chromium.org>
3608
3609         [chromium] Rename LayerChromium::name to debugName to be more consistent with other debug properties, make threadsafe
3610         https://bugs.webkit.org/show_bug.cgi?id=79723
3611
3612         Reviewed by Adrienne Walker.
3613
3614         * tests/LayerChromiumTest.cpp:
3615
3616 2012-03-01  Dale Curtis  <dalecurtis@chromium.org>
3617
3618         Remove deprecated FFmpeg build directories.
3619         https://bugs.webkit.org/show_bug.cgi?id=79282
3620
3621         We've switched the layout of the FFmpeg repo in Chrome and these paths
3622         are no longer needed or valid.
3623
3624         Reviewed by Dirk Pranke.
3625
3626         * DEPS:
3627
3628 2012-03-01  Dirk Pranke  <dpranke@chromium.org>
3629
3630         Roll chromium DEPS to 124511
3631
3632         Unreviewed, DEPS change.
3633
3634         * DEPS:
3635
3636 2012-02-29  Nat Duca  <nduca@chromium.org>
3637
3638         [chromium] Move context lost control code from CCSingleThreadProxy to CCLayerTreeHost
3639         https://bugs.webkit.org/show_bug.cgi?id=79964
3640
3641         Reviewed by James Robinson.
3642
3643         * src/WebLayerTreeView.cpp:
3644         (WebKit::WebLayerTreeView::loseCompositorContext):
3645         * src/WebLayerTreeViewImpl.cpp:
3646         (WebKit::WebLayerTreeViewImpl::createContext):
3647         (WebKit::WebLayerTreeViewImpl::didRecreateContext):
3648         * src/WebLayerTreeViewImpl.h:
3649         (WebLayerTreeViewImpl):
3650         * tests/CCLayerTreeHostTest.cpp:
3651         (WTF::MockLayerTreeHostClient::createContext):
3652         (WTF::MockLayerTreeHostClient::didRecreateContext):
3653         * tests/FakeCCLayerTreeHostClient.h:
3654         (WebCore::FakeCCLayerTreeHostClient::createContext):
3655         (WebCore::FakeCCLayerTreeHostClient::didRecreateContext):
3656
3657 2012-03-01  Kentaro Hara  <haraken@chromium.org>
3658
3659         REGRESSION(r109288): WebViewImpl::enableAutoResizeMode loops infinitely
3660         https://bugs.webkit.org/show_bug.cgi?id=77452
3661
3662         Reviewed by Hajime Morita.
3663
3664         WebViewImpl::enableAutoResizeMode loops infinitely.
3665         This patch fixes the following line:
3666
3667             enableAutoResizeMode(enable, minSize, maxSize);
3668
3669         to
3670             enableAutoResizeMode(minSize, maxSize);
3671
3672         to avoid the infinite loop. I guess this is the change originally intended.
3673
3674         Test: webkit_unit_tests.WebViewTest.AutoResizeMinimumSize
3675
3676         * src/WebViewImpl.cpp:
3677         (WebKit::WebViewImpl::enableAutoResizeMode):
3678
3679 2012-02-29  Kinuko Yasuda  <kinuko@chromium.org>
3680
3681         Use the new createSnapshotFileAndReadMetadata API for FileEntry.file()
3682         https://bugs.webkit.org/show_bug.cgi?id=79928
3683
3684         Reviewed by David Levin.
3685
3686         In the new flow we first create an internal Blob URL for the
3687         snapshot file and call the new createSnapshotFileAndReadMetadata()
3688         WebKit API with the Blob URL.
3689
3690         The implementor of createSnapshotFileAndReadMetadata() (i.e. chromium)
3691         registers the created snapshot file with the given internal Blob URL.
3692
3693         In the callback chain we call File::createWithName() to create a
3694         new File using the returned platform path, and then call
3695         unregisterBlobURL() to clean up the internal Blob URL.
3696
3697         * src/AsyncFileSystemChromium.cpp:
3698         (WebCore::AsyncFileSystemChromium::createSnapshotFileAndReadMetadata): Added.
3699         (WebCore::AsyncFileSystemChromium::createSnapshotFileCallback): Added.
3700         * src/AsyncFileSystemChromium.h:
3701         * src/WorkerAsyncFileSystemChromium.cpp:
3702         (WebCore::WorkerAsyncFileSystemChromium::createSnapshotFileAndReadMetadata): Added.
3703         * src/WorkerAsyncFileSystemChromium.h:
3704         * src/WorkerFileSystemCallbacksBridge.cpp:
3705         (WebKit::WorkerFileSystemCallbacksBridge::postCreateSnapshotFileToMainThread): Added.
3706         (WebKit::WorkerFileSystemCallbacksBridge::createSnapshotFileOnMainThread): Added.
3707         * src/WorkerFileSystemCallbacksBridge.h:
3708         (WorkerFileSystemCallbacksBridge):
3709
3710 2012-02-29  Kinuko Yasuda  <kinuko@chromium.org>
3711
3712         Unreviewed.  Rolled DEPS.
3713
3714         * DEPS:
3715
3716 2012-02-29  W. James MacLean  <wjmaclean@chromium.org>
3717
3718         [chromium] Estimate pixel count for frame rate control
3719         https://bugs.webkit.org/show_bug.cgi?id=74982
3720
3721         Reviewed by James Robinson.
3722
3723         Adds mechanism to compute and collect statistics on pixel overdraw for selected frames.
3724
3725         * tests/CCQuadCullerTest.cpp:
3726         (WebCore):
3727         (WebCore::TEST):
3728
3729 2012-02-29  James Simonsen  <simonjam@chromium.org>
3730
3731         [chromium] Fix navigation start time on cross-renderer navigation
3732         https://bugs.webkit.org/show_bug.cgi?id=75922
3733
3734         Reviewed by Darin Fisher.
3735
3736         * public/WebDataSource.h:
3737         * src/WebDataSource.cpp:
3738         (WebKit::WebDataSource::setNavigationStartTime): Added.
3739         * src/WebDataSource.h:
3740
3741 2012-02-29  Ian Vollick  <vollick@chromium.org>
3742
3743         [chromium] Add impl-thread support for animation-timing-function
3744         https://bugs.webkit.org/show_bug.cgi?id=79819
3745
3746         Reviewed by James Robinson.
3747
3748         * tests/CCKeyframedAnimationCurveTest.cpp:
3749         (WebCore::TEST):
3750         (WebCore):
3751
3752 2012-02-29  David Levin  <levin@chromium.org>
3753
3754         [chromium] Add the ability to turn off autoresize.
3755         https://bugs.webkit.org/show_bug.cgi?id=77452
3756
3757         Reviewed by Darin Fisher.
3758
3759         * public/WebView.h:
3760         (WebKit::WebViewImpl::enableAutoResizeMode): Cleaned up the api.
3761         (WebKit::WebViewImpl::disableAutoResizeMode): Added the ability to disable auto-resize.
3762         (WebKit::WebViewImpl::enableAutoResizeMode): Deprecated it.
3763         * src/WebViewImpl.cpp:
3764         (WebKit::WebViewImpl::enableAutoResizeMode): Adjust for new api.
3765         (WebKit::WebViewImpl::disableAutoResizeMode): Allow turning off autoresize.
3766         (WebKit::WebViewImpl::enableAutoResizeMode): Call the other two apis, but
3767         this api will be deleted shortly.
3768         (WebKit::WebViewImpl::configureAutoResizeMode): Common code.
3769         * src/WebViewImpl.h:
3770         (WebViewImpl): Adjust to new public api.
3771
3772 2012-02-29  Sheriff Bot  <webkit.review.bot@gmail.com>
3773
3774         Unreviewed.  Rolled DEPS.
3775
3776         * DEPS:
3777
3778 2012-02-29  Dana Jansens  <danakj@chromium.org>
3779
3780         [chromium] Don't let invalidation for next frame prevent tile upload
3781         https://bugs.webkit.org/show_bug.cgi?id=79841
3782
3783         Reviewed by James Robinson.
3784
3785         * tests/TiledLayerChromiumTest.cpp:
3786         (WTF::TEST):
3787
3788 2012-02-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3789
3790         Unreviewed, rolling out r107917 and r109188.
3791         http://trac.webkit.org/changeset/107917
3792         http://trac.webkit.org/changeset/109188
3793         https://bugs.webkit.org/show_bug.cgi?id=79865
3794
3795         Fix the chromium build. (Requested by dcheng on #webkit).
3796
3797         * src/WebDragData.cpp:
3798         (WebKit::WebDragData::items):
3799
3800 2012-02-28  Ryosuke Niwa  <rniwa@webkit.org>
3801
3802         Chromium build fix attempt.
3803
3804         * src/WebDragData.cpp:
3805
3806 2012-02-28  Jonathan Backer  <backer@chromium.org>
3807
3808         [chromium] Reset damage tracker on visibility change.
3809         https://bugs.webkit.org/show_bug.cgi?id=79267
3810
3811         Reviewed by James Robinson.
3812
3813         * tests/CCLayerTreeHostImplTest.cpp:
3814         (WebKit::PartialSwapTrackerContext::getString):
3815         (WebKit):
3816         (WebKit::TEST_F):
3817
3818 2012-02-28  Tim Dresser  <tdresser@chromium.org>
3819
3820         Provide DefaultDeviceScaleFactor though WebSettings
3821         https://bugs.webkit.org/show_bug.cgi?id=79534
3822
3823         Reviewed by Darin Fisher.
3824
3825         * public/WebSettings.h:
3826         * src/WebSettingsImpl.cpp:
3827         (WebKit::WebSettingsImpl::setDefaultDeviceScaleFactor):
3828         (WebKit):
3829         * src/WebSettingsImpl.h:
3830         (WebSettingsImpl):
3831
3832 2012-02-28  Gary Kacmarcik  <garykac@chromium.org>
3833
3834         [chromium] Set nativeKeyCode to include Windows scan code
3835         https://bugs.webkit.org/show_bug.cgi?id=79289
3836
3837         Reviewed by Ryosuke Niwa.
3838
3839         Set the key event's nativeKeyCode on Windows Chromium so that it
3840         actually includes the native scancode and other context bits.
3841         Currently on Windows, the nativeKeyCode is set to be the same value as
3842         the windowsKeyCode, which is redundant.
3843
3844         The actual native key information is required so that components (like
3845         plugins) can reconstruct the original key event. The value stored in
3846         the windowsKeyCode is a Windows virtual key code which does not provide
3847         sufficient info to disambiguate the actual key being pressed (for
3848         example, it cannot distinguish between the left and right shift keys).
3849
3850         All platforms except Windows currently send native key event info, so
3851         this change will bring Windows in line with other platforms.
3852
3853         This change is part of our effort to send enhanced keycode information
3854         to Pepper plugins in Chromium.
3855
3856         * src/win/WebInputEventFactory.cpp:
3857         (WebKit::WebInputEventFactory::keyboardEvent):
3858
3859 2012-02-28  Adam Klein  <adamk@chromium.org>
3860
3861         Unreviewed, speculative test fix after r109016.
3862
3863         * tests/TransparencyWinTest.cpp:
3864         (WebCore::TEST): Update all ImageBuffer::create calls to include a scale of 1.
3865
3866 2012-02-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3867
3868         Unreviewed.  Rolled DEPS.
3869
3870         * DEPS:
3871
3872 2012-02-27  James Kozianski  <koz@chromium.org>
3873
3874         Add missing parameter to didCreateScriptContext() so it overrides base class again.
3875         https://bugs.webkit.org/show_bug.cgi?id=79742
3876
3877         Reviewed by Kent Tamura.
3878
3879         * tests/WebFrameTest.cpp:
3880
3881 2012-02-27  Kenichi Ishibashi  <bashi@chromium.org>
3882
3883         [Chromium] Unreviewed gardening, Disable TransparencyWin.OpaqueCompositeLayerPixel
3884
3885         * tests/TransparencyWinTest.cpp:
3886         (WebCore::TEST):
3887
3888 2012-02-27  Kinuko Yasuda  <kinuko@chromium.org>
3889
3890         [chromium] Add createSnapshotFile API to WebFileSystem to create File snapshots for filesystem files
3891         https://bugs.webkit.org/show_bug.cgi?id=79394
3892
3893         Reviewed by Darin Fisher.
3894
3895         * public/platform/WebFileSystem.h:
3896         (WebKit::WebFileSystem::createSnapshotFileAndReadMetadata): Added.
3897
3898 2012-02-27  James Kozianski  <koz@chromium.org>
3899
3900         [chromium] Plumb extensionGroup into didCreateScriptContext().
3901         https://bugs.webkit.org/show_bug.cgi?id=79072
3902
3903         Reviewed by Darin Fisher.
3904
3905         * public/WebFrameClient.h:
3906         (WebKit::WebFrameClient::didCreateScriptContext):
3907         * src/FrameLoaderClientImpl.cpp:
3908         (WebKit::FrameLoaderClientImpl::didCreateScriptContext):
3909         * src/FrameLoaderClientImpl.h:
3910         (FrameLoaderClientImpl):
3911
3912 2012-02-27  Adrienne Walker  <enne@google.com>
3913
3914         [chromium] Unreviewed gardening, disable TransparencyWinTest unit tests
3915         https://bugs.webkit.org/show_bug.cgi?id=79718
3916
3917         * tests/TransparencyWinTest.cpp:
3918
3919 2012-02-26  Hajime Morrita  <morrita@chromium.org>
3920
3921         Move ChromeClient::showContextMenu() to ContextMenuClient
3922         https://bugs.webkit.org/show_bug.cgi?id=79427
3923
3924         Reviewed by Adam Barth.
3925
3926         * src/ChromeClientImpl.h:
3927         (ChromeClientImpl):
3928
3929 2012-02-26  James Robinson  <jamesr@chromium.org>
3930
3931         Take 2 build fix.
3932
3933         * tests/CCLayerTreeHostImplTest.cpp:
3934         (WebKit::TEST_F):
3935
3936 2012-02-26  James Robinson  <jamesr@chromium.org>
3937
3938         Compile fix for CCLayerTreeHostImpl test.
3939
3940         * tests/CCLayerTreeHostImplTest.cpp:
3941         (WebKit::TEST_F):
3942
3943 2012-02-26  James Robinson  <jamesr@chromium.org>
3944
3945         [chromium] Wire up shouldUpdateScrollPositionOnMainThread and nonFastScrollableRegion to compositor
3946         https://bugs.webkit.org/show_bug.cgi?id=79155
3947
3948         Reviewed by Adam Barth.
3949
3950         Add new tests for shouldScrollOnMainThread and nonFastScrollableRegion properties.
3951
3952         * tests/CCLayerTreeHostImplTest.cpp:
3953         (WebKit::TEST_F):
3954         (WebKit):
3955         * tests/LayerChromiumTest.cpp:
3956
3957 2012-02-25  Adrienne Walker  <enne@google.com>
3958
3959         [chromium] Unreviewed gardening, fix Linux Clang OwnPtr breakage
3960         https://bugs.webkit.org/show_bug.cgi?id=78404
3961
3962         r108886 doesn't compile on Linux Clang due to OwnPtr's public copy
3963         constructor (i.e. "has internal linkage but is not defined"). Fixed
3964         locally by changing copy initialization to direct initialization.
3965
3966         * tests/TiledLayerChromiumTest.cpp:
3967         (WTF::TEST):
3968
3969 2012-02-24  Tien-Ren Chen  <trchen@chromium.org>
3970
3971         [chromium] Replace RefPtr with OwnPtr for CCLayerImpl tree structure
3972         https://bugs.webkit.org/show_bug.cgi?id=78404
3973
3974         Reviewed by James Robinson.
3975
3976         * tests/CCDamageTrackerTest.cpp:
3977         (WebKitTests::executeCalculateDrawTransformsAndVisibility):
3978         (WebKitTests::emulateDrawingOneFrame):
3979         (WebKitTests::createTestTreeWithOneSurface):
3980         (WebKitTests::createTestTreeWithTwoSurfaces):
3981         (WebKitTests::createAndSetUpTestTreeWithOneSurface):
3982         (WebKitTests::createAndSetUpTestTreeWithTwoSurfaces):
3983         (WebKitTests::TEST_F):
3984         * tests/CCLayerImplTest.cpp:
3985         (WebCore::TEST):
3986         * tests/CCLayerIteratorTest.cpp:
3987         * tests/CCLayerSorterTest.cpp:
3988         (WebCore::TEST):
3989         * tests/CCLayerTreeHostCommonTest.cpp:
3990         (WebCore::TEST):
3991         * tests/CCLayerTreeHostImplTest.cpp:
3992         (WebKit::CCLayerTreeHostImplTest::setupScrollAndContentsLayers):
3993         (WebKit::TEST_F):
3994         (WebKit::DidDrawCheckLayer::create):
3995         (WebKit::BlendStateCheckLayer::create):
3996         * tests/CCRenderSurfaceTest.cpp:
3997         (WebCore::TEST):
3998         * tests/CCSolidColorLayerImplTest.cpp:
3999         (CCLayerTestCommon::TEST):
4000         * tests/CCTiledLayerImplTest.cpp:
4001         (CCLayerTestCommon::createLayer):
4002         (CCLayerTestCommon::TEST):
4003         (CCLayerTestCommon::getQuads):
4004         * tests/Canvas2DLayerChromiumTest.cpp:
4005         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
4006         * tests/TiledLayerChromiumTest.cpp:
4007         (WTF::TEST):
4008         * tests/TreeSynchronizerTest.cpp:
4009         (WebKitTests::MockCCLayerImpl::create):
4010         (WebKitTests::MockLayerChromium::createCCLayerImpl):
4011         (WebKitTests::expectTreesAreIdentical):
4012         (WebKitTests::TEST):
4013
4014 2012-02-08  James Robinson  <jamesr@chromium.org>
4015
4016         [chromium] Make WebViewImpl depend on WebLayerTreeView instead of CCLayerTreeHost
4017         https://bugs.webkit.org/show_bug.cgi?id=75591
4018
4019         Reviewed by Kenneth Russell.
4020
4021         This converts WebViewImpl from depending on CCLayerTreeHost to WebLayerTreeView in order to provide better
4022         isolation and allow for future refactorings. The changes to WebViewImpl are mostly mechanical. The
4023         WebLayerTreeView and WebLayerTreeViewClient interfaces have both grown and changed slightly:
4024
4025         - Setup path for WebLayerTreeView changed to expose an initialize() function instead of a create() factory
4026         function. The new model is that a WebLayerTreeView when constructed is in a null state. Calling initialize()
4027         attempts to re-initialize the WLTV, which can either fail or succeed.  All other functions must be called on a
4028         successfully initialized view.
4029
4030         - WebLayerTreeView expanded to include functionality that CCLayerTreeHost exposes but WebLayerTreeView did not.
4031         Some of this is only valid for the single thread case and will be removed when we invert the scheduling control
4032         logic, these bits are commented.
4033
4034         - WebLayerTreeViewClient expanded with some flow-control related APIs.
4035
4036         Refactor only, no change in behavior.
4037
4038         * public/platform/WebLayerTreeView.h:
4039         (WebKit::WebLayerTreeView::Settings::Settings):
4040         (WebKit::WebLayerTreeView::isNull):
4041         * public/platform/WebLayerTreeViewClient.h:
4042         * src/ChromeClientImpl.cpp:
4043         (WebKit::ChromeClientImpl::scheduleCompositingLayerSync):
4044         * src/WebLayerTreeView.cpp:
4045         (WebKit::WebLayerTreeView::initialize):
4046         (WebKit::WebLayerTreeView::compositorIdentifier):
4047         (WebKit::WebLayerTreeView::setVisible):
4048         (WebKit::WebLayerTreeView::setNeedsAnimate):
4049         (WebKit::WebLayerTreeView::updateAnimations):
4050         (WebKit::WebLayerTreeView::setNeedsRedraw):
4051         (WebKit::WebLayerTreeView::setPageScaleFactorAndLimits):
4052         (WebKit::WebLayerTreeView::startPageScaleAnimation):
4053         (WebKit::WebLayerTreeView::finishAllRendering):
4054         (WebKit::WebLayerTreeView::context):
4055         (WebKit::WebLayerTreeView::loseCompositorContext):
4056         * src/WebLayerTreeViewImpl.cpp:
4057         (WebKit::WebLayerTreeViewImpl::didRecreateGraphicsContext):
4058         (WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame):
4059         (WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers):
4060         * src/WebViewImpl.cpp:
4061         (WebKit::WebViewImpl::animate):
4062         (WebKit::WebViewImpl::doPixelReadbackToCanvas):
4063         (WebKit::WebViewImpl::paint):
4064         (WebKit::WebViewImpl::composite):
4065         (WebKit::WebViewImpl::loseCompositorContext):
4066         (WebKit::WebViewImpl::computePageScaleFactorLimits):
4067         (WebKit::WebViewImpl::addPageOverlay):
4068         (WebKit::WebViewImpl::removePageOverlay):
4069         (WebKit::WebViewImpl::setRootGraphicsLayer):
4070         (WebKit::WebViewImpl::scheduleCompositingLayerSync):
4071         (WebKit::WebViewImpl::scrollRootLayerRect):
4072         (WebKit::WebViewImpl::invalidateRootLayerRect):
4073         (WebKit::WebViewImpl::scheduleAnimation):
4074         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
4075         (WebKit::WebViewImpl::createContext3D):
4076         (WebKit::WebViewImpl::applyScrollAndScale):
4077         (WebKit::WebViewImpl::didRebindGraphicsContext):
4078         (WebKit::WebViewImpl::updateLayerTreeViewport):
4079         (WebKit::WebViewImpl::graphicsContext3D):
4080         (WebKit::WebViewImpl::setVisibilityState):
4081         * src/WebViewImpl.h:
4082         * tests/WebLayerTest.cpp:
4083
4084 2012-02-24  Ian Vollick  <vollick@chromium.org>
4085
4086         [chromium] Plumb animation started notifications from CCLayerTreeHost to GraphicsLayerChromium
4087         https://bugs.webkit.org/show_bug.cgi?id=77646
4088
4089         Reviewed by James Robinson.
4090
4091         * tests/CCLayerTreeHostTest.cpp:
4092         (TestHooks):
4093         (WTF::TestHooks::notifyAnimationStarted):
4094         (WTF::TestHooks::notifyAnimationFinished):
4095         (WTF::MockLayerTreeHost::create):
4096         (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation):
4097         (WTF::CCLayerTreeHostTestAddAnimation::animateLayers):
4098         (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationStarted):
4099         (CCLayerTreeHostTestAddAnimation):
4100         (WTF::CCLayerTreeHostTestAddAnimation::notifyAnimationFinished):
4101
4102 2012-02-24  James Robinson  <jamesr@chromium.org>
4103
4104         [chromium] WebKit::setColorNames is a client API
4105         https://bugs.webkit.org/show_bug.cgi?id=79539
4106
4107         Reviewed by Darin Fisher.
4108
4109         * WebKit.gyp:
4110