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