836fdda1a61a30e2785ce174949324ef2cdc2929
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-02-24  James Robinson  <jamesr@chromium.org>
2
3         [chromium] WebKit::setColorNames is a client API
4         https://bugs.webkit.org/show_bug.cgi?id=79539
5
6         Reviewed by Darin Fisher.
7
8         * WebKit.gyp:
9         * public/WebColorName.h: Renamed from Source/Platform/chromium/public/WebColorName.h.
10         (WebKit):
11         * public/platform/WebColorName.h:
12         * src/WebColor.cpp:
13
14 2012-02-22  James Robinson  <jamesr@chromium.org>
15
16         [chromium] Move WebGraphicsContext3D header into the Platform directory
17         https://bugs.webkit.org/show_bug.cgi?id=79301
18
19         Reviewed by Adam Barth.
20
21         Moves WebGraphicsContext3D and WebNonCopyable (which WGC3D depends on).
22
23         * public/platform/WebGraphicsContext3D.h:
24         * public/platform/WebNonCopyable.h:
25
26 2012-02-24  Michal Mocny  <mmocny@google.com>
27
28         [chromium] Purge Skia's GPU texture cache using GL_CHROMIUM_gpu_memory_manager
29         https://bugs.webkit.org/show_bug.cgi?id=78265
30
31         Reviewed by Stephen White.
32
33         * src/GraphicsContext3DChromium.cpp:
34         (GrMemoryAllocationChangedCallback):
35         (WebCore::GrMemoryAllocationChangedCallback::GrMemoryAllocationChangedCallback):
36         (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
37         (WebCore):
38         (WebCore::GraphicsContext3DPrivate::grContext):
39
40 2012-02-24  James Robinson  <jamesr@chromium.org>
41
42         [chromium] Remove deprecated and unused WebGraphicsContext3D::initialize call
43         https://bugs.webkit.org/show_bug.cgi?id=79296
44
45         Reviewed by Kenneth Russell.
46
47         The old way to initialize a WebGraphicsContext3D from inside WebKit was to call initialize() on it with a
48         WebView*. The new way to do this is via the WebViewClient interface. This deletes the old, unused path.
49
50         * public/platform/WebGraphicsContext3D.h:
51         (WebKit):
52         * tests/CCLayerTreeHostImplTest.cpp:
53         * tests/FakeWebGraphicsContext3D.h:
54
55 2012-02-23  James Robinson  <jamesr@chromium.org>
56
57         [chromium] Move Web*Layer* headers into Platform
58         https://bugs.webkit.org/show_bug.cgi?id=79425
59
60         Reviewed by Adam Barth.
61
62         Adds forwarding headers for Web*Layer* APIs and their dependencies.  The forwarding headers for the Web*Layer*
63         APIs are temporary since Web*Layer* is not exposed in the client interface.  The other headers (such as
64         WebColor) are exposed in both the client and platform APIs, so the forwarding headers are permanent, although we
65         might move them back down to public/ at some point.
66
67         * public/platform/WebCanvas.h:
68         * public/platform/WebColor.h:
69         * public/platform/WebColorName.h:
70         * public/platform/WebContentLayer.h:
71         * public/platform/WebContentLayerClient.h:
72         * public/platform/WebExternalTextureLayer.h:
73         * public/platform/WebLayer.h:
74         * public/platform/WebLayerTreeView.h:
75         * public/platform/WebLayerTreeViewClient.h:
76         * public/platform/WebPrivatePtr.h:
77         * public/platform/WebSolidColorLayer.h:
78
79 2012-02-24  Peter Collingbourne  <peter@pcc.me.uk>
80
81         [chromium] Have WebFrameImpl::selectionAsMarkup create interchange markup.
82         https://bugs.webkit.org/show_bug.cgi?id=77307
83
84         Reviewed by Tony Chang.
85
86         This function is currently used to build markup in order to
87         print the selection, and will also be used to build markup for
88         the clipboard.  Without this change, the markup will refer to
89         (for example) nonexistent CSS classes and invalid relative
90         paths and therefore will not be interpreted correctly.
91
92         Chromium bug: http://crbug.com/23329
93
94         * src/WebFrameImpl.cpp:
95         (WebKit::WebFrameImpl::selectionAsMarkup):
96
97 2012-02-24  Pavel Feldman  <pfeldman@chromium.org>
98
99         Not reviewed: chromium image for inspector status bar button updated.
100
101         * src/js/Images/segmentSelectedEndChromium.png:
102
103 2012-02-24  Shinya Kawanaka  <shinyak@chromium.org>
104
105         SpellCheckRequest needs to know the context where the spellcheck happened.
106         https://bugs.webkit.org/show_bug.cgi?id=79320
107
108         Reviewed by Hajime Morita.
109
110         * src/EditorClientImpl.cpp:
111         (WebKit::EditorClientImpl::requestCheckingOfString):
112         * src/EditorClientImpl.h:
113         (EditorClientImpl):
114         * src/WebFrameImpl.cpp:
115         (WebKit::WebFrameImpl::requestTextChecking):
116
117 2012-02-23  Sheriff Bot  <webkit.review.bot@gmail.com>
118
119         Unreviewed.  Rolled DEPS.
120
121         * DEPS:
122
123 2012-02-23  Ian Vollick  <vollick@chromium.org>
124
125         [chromium] Implement keyframed animations for the cc thread.
126         https://bugs.webkit.org/show_bug.cgi?id=77229
127
128         Reviewed by James Robinson.
129
130         * WebKit.gypi:
131         * tests/CCAnimationTestCommon.cpp:
132         (WebCore):
133         (WebCore::addOpacityTransition):
134         (WebKitTests::addOpacityTransitionToController):
135         (WebKitTests::addOpacityTransitionToLayer):
136         * tests/CCAnimationTestCommon.h:
137         (WebCore):
138         (WebKitTests):
139         * tests/CCKeyframedAnimationCurveTest.cpp: Added.
140         (WebCore):
141         (WebCore::expectTranslateX):
142         (WebCore::TEST):
143         * tests/CCLayerAnimationControllerTest.cpp:
144         (WebKitTests::expectTranslateX):
145         (WebKitTests):
146         (WebKitTests::TEST):
147         * tests/CCLayerTreeHostTest.cpp:
148         (WTF::CCLayerTreeHostTest::dispatchAddAnimation):
149         (WTF::CCLayerTreeHostTest::doBeginTest):
150
151 2012-02-23  James Robinson  <jamesr@chromium.org>
152
153         [chromium] Clean up GraphicsContext3D initialization paths
154         https://bugs.webkit.org/show_bug.cgi?id=79321
155
156         Reviewed by Kenneth Russell.
157
158         This simplifies the GraphicsContext3D initialization paths down to two simple codepaths, one for offscreen
159         contexts initialized from WebCore and one for onscreen (compositor) contexts initialized by WebViewImpl or
160         WebLayerTreeViewImpl.
161
162         Offscreen initialization path:
163         1) WebCore code calls WebCore::GraphicsContext3D::create(), implemented in GraphicsContext3DChromium.cpp
164         2) GraphicsContext3D::create() instantiates a WebGraphicsContext3D via the static WebKitPlatformSupport interface
165         3) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a
166         GraphicsContext3D's m_private pointer.
167
168         Onscreen initialization path:
169         1) WebViewImpl or WebLayerTreeViewImpl request an onscreen WebGraphicsContext3D from either their WebViewClient
170         or WebLayerTreeViewClient, respectively
171         2) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a
172         GraphicsContext3D's m_private pointer.
173
174         There are no other initialization paths. Specifically, we do not support instantiating onscreen contexts from
175         within WebCore.
176
177         * src/GraphicsContext3DChromium.cpp:
178         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
179         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
180         (WebCore):
181         (WebCore::GraphicsContext3DPrivate::platformTexture):
182         (WebCore::GraphicsContext3D::create):
183         * src/GraphicsContext3DPrivate.h:
184         (GraphicsContext3DPrivate):
185         * src/WebLayerTreeViewImpl.cpp:
186         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
187         * src/WebViewImpl.cpp:
188         (std::getCompositorContextAttributes):
189         (WebKit::WebViewImpl::createCompositorGraphicsContext3D):
190         (WebKit):
191         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
192         (WebKit::WebViewImpl::graphicsContext3D):
193         * src/WebViewImpl.h:
194         (WebViewImpl):
195         * tests/CCLayerTreeHostImplTest.cpp:
196         (WebKit::CCLayerTreeHostImplTest::createContext):
197         (CCLayerTreeHostImplTest):
198         (WebKit::TEST_F):
199         * tests/CCLayerTreeHostTest.cpp:
200         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
201         * tests/Canvas2DLayerChromiumTest.cpp:
202         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
203         * tests/CompositorFakeGraphicsContext3D.h:
204         (WebCore::createCompositorMockGraphicsContext3D):
205         * tests/FakeGraphicsContext3DTest.cpp:
206         (TEST):
207
208 2012-02-23  Jonathan Backer  <backer@chromium.org>
209
210         [chromium] Plumb video damage to the damage tracker.
211         https://bugs.webkit.org/show_bug.cgi?id=79373
212
213         Reviewed by James Robinson.
214
215         * src/WebMediaPlayerClientImpl.cpp:
216         (WebKit::WebMediaPlayerClientImpl::repaint):
217
218 2012-02-21  James Robinson  <jamesr@chromium.org>
219
220         [chromium] Notify compositor of wheel event registration via ScrollingCoordinator
221         https://bugs.webkit.org/show_bug.cgi?id=79133
222
223         Reviewed by Dimitri Glazkov.
224
225         Rips out old wheel event notification and adds unit tests for new LayerChromium property.
226
227         * src/NonCompositedContentHost.cpp:
228         (WebKit::NonCompositedContentHost::setViewport):
229         * src/WebCompositorInputHandlerImpl.cpp:
230         (WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
231         * src/WebViewImpl.cpp:
232         (WebKit::WebViewImpl::numberOfWheelEventHandlersChanged):
233         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
234         * src/WebViewImpl.h:
235         * tests/CCLayerTreeHostImplTest.cpp:
236         (WebKit::TEST_F):
237         (WebKit):
238         * tests/LayerChromiumTest.cpp:
239         * tests/WebCompositorInputHandlerImplTest.cpp:
240
241 2012-02-23  Adrienne Walker  <enne@google.com>
242
243         Unreviewed, rolling out r108666.
244         http://trac.webkit.org/changeset/108666
245         https://bugs.webkit.org/show_bug.cgi?id=79321
246
247         Breaks webplugin tests: http://goo.gl/CoHIi
248
249         * src/GraphicsContext3DChromium.cpp:
250         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
251         (WebCore):
252         (WebCore::GraphicsContext3DPrivate::create):
253         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
254         (WebCore::GraphicsContext3DPrivate::createGraphicsContextForAnotherThread):
255         (WebCore::GraphicsContext3DPrivate::platformTexture):
256         (WebCore::GraphicsContext3D::create):
257         * src/GraphicsContext3DPrivate.h:
258         (WebKit):
259         (GraphicsContext3DPrivate):
260         * src/WebLayerTreeViewImpl.cpp:
261         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
262         * src/WebViewImpl.cpp:
263         (std::getCompositorContextAttributes):
264         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
265         (WebKit::WebViewImpl::graphicsContext3D):
266         * tests/CCLayerTreeHostImplTest.cpp:
267         (CCLayerTreeHostImplTest):
268         (WebKit::TEST_F):
269         * tests/CCLayerTreeHostTest.cpp:
270         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
271         * tests/Canvas2DLayerChromiumTest.cpp:
272         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
273         * tests/CompositorFakeGraphicsContext3D.h:
274         (WebCore::createCompositorMockGraphicsContext3D):
275         * tests/FakeGraphicsContext3DTest.cpp:
276         (TEST):
277
278 2012-02-23  Daniel Sievers  <sievers@chromium.org>
279
280         [Chromium] Add video stream texture support
281         https://bugs.webkit.org/show_bug.cgi?id=78398
282
283         This upstreams the abstraction used on Android for
284         hardware video decoding with the compositor.
285
286         Most of the interfaces are kept generic and the core
287         of this change is to allow texturing from an external
288         texture while receiving notifications (on the compositor
289         thread if we are running it) when there are new frames to
290         be displayed.
291
292         Reviewed by James Robinson.
293
294         * WebKit.gyp:
295         * public/WebMediaPlayer.h:
296         (WebKit):
297         (WebKit::WebMediaPlayer::setStreamTextureClient):
298         (WebMediaPlayer):
299         * public/WebStreamTextureClient.h: Copied from Source/WebKit/chromium/public/WebVideoFrame.h.
300         (WebKit):
301         (WebStreamTextureClient):
302         (WebKit::WebStreamTextureClient::~WebStreamTextureClient):
303         * public/WebVideoFrame.h:
304         * src/WebMediaPlayerClientImpl.cpp:
305         (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl):
306         (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient):
307         (WebKit::WebMediaPlayerClientImpl::didReceiveFrame):
308         (WebKit):
309         (WebKit::WebMediaPlayerClientImpl::didUpdateMatrix):
310         * src/WebMediaPlayerClientImpl.h:
311         (WebMediaPlayerClientImpl):
312
313 2012-02-22  James Robinson  <jamesr@chromium.org>
314
315         [chromium] Clean up GraphicsContext3D initialization paths
316         https://bugs.webkit.org/show_bug.cgi?id=79321
317
318         Reviewed by Kenneth Russell.
319
320         This simplifies the GraphicsContext3D initialization paths down to two simple codepaths, one for offscreen
321         contexts initialized from WebCore and one for onscreen (compositor) contexts initialized by WebViewImpl or
322         WebLayerTreeViewImpl.
323
324         Offscreen initialization path:
325         1) WebCore code calls WebCore::GraphicsContext3D::create(), implemented in GraphicsContext3DChromium.cpp
326         2) GraphicsContext3D::create() instantiates a WebGraphicsContext3D via the static WebKitPlatformSupport interface
327         3) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a
328         GraphicsContext3D's m_private pointer.
329
330         Onscreen initialization path:
331         1) WebViewImpl or WebLayerTreeViewImpl request an onscreen WebGraphicsContext3D from either their WebViewClient
332         or WebLayerTreeViewClient, respectively
333         2) GraphicsContext3DPrivate::createGraphicsContextFromWebContext() wraps the WebGraphicsContext3D in a
334         GraphicsContext3D's m_private pointer.
335
336         There are no other initialization paths. Specifically, we do not support instantiating onscreen contexts from
337         within WebCore.
338
339         * src/GraphicsContext3DChromium.cpp:
340         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
341         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
342         (WebCore):
343         (WebCore::GraphicsContext3DPrivate::platformTexture):
344         (WebCore::GraphicsContext3D::create):
345         * src/GraphicsContext3DPrivate.h:
346         (GraphicsContext3DPrivate):
347         * src/WebLayerTreeViewImpl.cpp:
348         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
349         * src/WebViewImpl.cpp:
350         (std::getCompositorContextAttributes):
351         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
352         (WebKit::WebViewImpl::graphicsContext3D):
353         * tests/CCLayerTreeHostImplTest.cpp:
354         (WebKit::CCLayerTreeHostImplTest::createContext):
355         (CCLayerTreeHostImplTest):
356         (WebKit::TEST_F):
357         * tests/CCLayerTreeHostTest.cpp:
358         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
359         * tests/Canvas2DLayerChromiumTest.cpp:
360         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
361         * tests/CompositorFakeGraphicsContext3D.h:
362         (WebCore::createCompositorMockGraphicsContext3D):
363         * tests/FakeGraphicsContext3DTest.cpp:
364         (TEST):
365
366 2012-02-23  Greg Billock  <gbillock@google.com>
367
368         Add UserGestureIndicator capability to Chromium API.
369         https://bugs.webkit.org/show_bug.cgi?id=77690
370
371         Reviewed by Darin Fisher.
372
373         * WebKit.gyp:
374         * public/WebScopedUserGesture.h: Added.
375         * src/WebScopedUserGesture.cpp: Added.
376
377 2012-02-23  Peter Beverloo  <peter@chromium.org>
378
379         Unreviewed, rolling out r108627 and r108630.
380         https://bugs.webkit.org/show_bug.cgi?id=79367
381
382         ffmpeg is creating issues and was just reverted upstream as well.
383
384         * DEPS:
385
386 2012-02-23  Peter Beverloo  <peter@chromium.org>
387
388         Unreviewed build fix. Remove the ffmpeg binary directory from the
389         Chromium-Windows DEPS file, following the commit done in the
390         Chromium repository:
391         http://src.chromium.org/viewvc/chrome?view=rev&revision=123123
392
393         * DEPS:
394
395 2012-02-23  Peter Beverloo  <peter@chromium.org>
396
397         Unreviewed.  Rolled DEPS.
398
399         * DEPS:
400
401 2012-02-22  Hajime Morrita  <morrita@chromium.org>
402
403         NOTIFICATIONS should be implemented as PageSupplement
404         https://bugs.webkit.org/show_bug.cgi?id=79052
405
406         Reviewed by Adam Barth.
407
408         * src/WebViewImpl.cpp:
409         (WebKit::WebViewImpl::WebViewImpl):
410
411 2012-02-22  Dana Jansens  <danakj@chromium.org>
412
413         [chromium] Add unit test for surface occlusion
414         https://bugs.webkit.org/show_bug.cgi?id=79302
415
416         Reviewed by James Robinson.
417
418         * tests/CCOcclusionTrackerTest.cpp:
419         (WebCore::TEST):
420         (WebCore):
421
422 2012-02-22  James Robinson  <jamesr@chromium.org>
423
424         Remove GraphicsContext3D::paintsIntoCanvasBuffer and unify WebGL and canvas 2d logic
425         https://bugs.webkit.org/show_bug.cgi?id=79317
426
427         Reviewed by Kenneth Russell.
428
429         Remove paintsIntoCanvasBuffer() implementations.
430
431         * src/GraphicsContext3DChromium.cpp:
432         (WebCore):
433         * src/GraphicsContext3DPrivate.h:
434
435 2012-02-22  Yuta Kitamura  <yutak@chromium.org>
436
437         Unreviewed, rolling out r108590.
438         http://trac.webkit.org/changeset/108590
439
440         I mistakenly disabled tests even though the fix was already
441         in.
442
443         * tests/CCOcclusionTrackerTest.cpp:
444         (WebCore::TEST):
445
446 2012-02-22  Yuta Kitamura  <yutak@chromium.org>
447
448         [Chromium] Unreviewed. Disable two tests from CCOcclusionTrackerTest
449         which cause assertion failures.
450
451         * tests/CCOcclusionTrackerTest.cpp:
452         (WebCore):
453         (WebCore::TEST):
454
455 2012-02-22  Dana Jansens  <danakj@chromium.org>
456
457         [chromium] Fix CCOcclusionTracker unit test assertion
458         https://bugs.webkit.org/show_bug.cgi?id=79275
459
460         Reviewed by James Robinson.
461
462         * tests/CCOcclusionTrackerTest.cpp:
463         (WebCore::TEST):
464
465 2012-02-22  Ian Vollick  <vollick@chromium.org>
466
467         [chromium] Plumb from GraphicsLayer to the cc thread animation code
468         https://bugs.webkit.org/show_bug.cgi?id=75874
469
470         Reviewed by James Robinson.
471
472         * WebKit.gypi:
473         * public/WebSettings.h:
474         * public/platform/WebLayerTreeView.h:
475         (WebKit::WebLayerTreeView::Settings::Settings):
476         (Settings):
477         * src/WebLayerTreeView.cpp:
478         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
479         * src/WebSettingsImpl.cpp:
480         (WebKit::WebSettingsImpl::setThreadedAnimationEnabled):
481         (WebKit):
482         * src/WebSettingsImpl.h:
483         (WebSettingsImpl):
484         * src/WebViewImpl.cpp:
485         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
486         * tests/CCActiveAnimationTest.cpp:
487         (WebCore::createActiveAnimation):
488         * tests/CCAnimationTestCommon.cpp: Added.
489         (WebKitTests):
490         (WebKitTests::FakeFloatAnimationCurve::FakeFloatAnimationCurve):
491         (WebKitTests::FakeFloatAnimationCurve::~FakeFloatAnimationCurve):
492         (WebKitTests::FakeFloatAnimationCurve::clone):
493         (WebKitTests::FakeTransformTransition::FakeTransformTransition):
494         (WebKitTests::FakeTransformTransition::~FakeTransformTransition):
495         (WebKitTests::FakeTransformTransition::getValue):
496         (WebKitTests::FakeTransformTransition::clone):
497         (WebKitTests::FakeFloatTransition::FakeFloatTransition):
498         (WebKitTests::FakeFloatTransition::~FakeFloatTransition):
499         (WebKitTests::FakeFloatTransition::getValue):
500         (WebKitTests::FakeLayerAnimationControllerImplClient::FakeLayerAnimationControllerImplClient):
501         (WebKitTests::FakeLayerAnimationControllerImplClient::~FakeLayerAnimationControllerImplClient):
502         (WebKitTests::FakeFloatTransition::clone):
503         (WebKitTests::addOpacityTransition):
504         * tests/CCAnimationTestCommon.h: Added.
505         (WebCore):
506         (WebKitTests):
507         (FakeFloatAnimationCurve):
508         (WebKitTests::FakeFloatAnimationCurve::duration):
509         (WebKitTests::FakeFloatAnimationCurve::getValue):
510         (FakeTransformTransition):
511         (WebKitTests::FakeTransformTransition::duration):
512         (FakeFloatTransition):
513         (WebKitTests::FakeFloatTransition::duration):
514         (FakeLayerAnimationControllerImplClient):
515         (WebKitTests::FakeLayerAnimationControllerImplClient::id):
516         (WebKitTests::FakeLayerAnimationControllerImplClient::opacity):
517         (WebKitTests::FakeLayerAnimationControllerImplClient::setOpacity):
518         (WebKitTests::FakeLayerAnimationControllerImplClient::transform):
519         (WebKitTests::FakeLayerAnimationControllerImplClient::setTransform):
520         (WebKitTests::FakeLayerAnimationControllerImplClient::bounds):
521         * tests/CCLayerAnimationControllerImplTest.cpp:
522         (WebKitTests::createActiveAnimation):
523         (WebKitTests::TEST):
524         * tests/CCLayerAnimationControllerTest.cpp: Added.
525         (WebKitTests):
526         (WebKitTests::createActiveAnimation):
527         (WebKitTests::TEST):
528         * tests/CCLayerTreeHostImplTest.cpp:
529         (WebKit::CCLayerTreeHostImplTest::postAnimationEventsToMainThreadOnImplThread):
530         * tests/CCLayerTreeHostTest.cpp:
531         (WTF::TestHooks::animateLayers):
532         (MockLayerTreeHostImpl):
533         (WTF::MockLayerTreeHostImpl::animateLayers):
534         (WTF::MockLayerTreeHost::create):
535         (WTF::MockLayerTreeHost::createLayerTreeHostImpl):
536         (WTF):
537         (MockLayerAnimationController):
538         (WTF::MockLayerAnimationController::create):
539         (WTF::MockLayerAnimationController::addAnimation):
540         (WTF::MockLayerTreeHostClient::scheduleComposite):
541         (WTF::CCLayerTreeHostTest::postAddAnimationToMainThread):
542         (CCLayerTreeHostTest):
543         (WTF::CCLayerTreeHostTest::dispatchAddAnimation):
544         (WTF::CCLayerTreeHostTest::doBeginTest):
545         (CCLayerTreeHostTestAddAnimation):
546         (WTF::CCLayerTreeHostTestAddAnimation::CCLayerTreeHostTestAddAnimation):
547         (WTF::CCLayerTreeHostTestAddAnimation::beginTest):
548         (WTF::CCLayerTreeHostTestAddAnimation::animateLayers):
549         (WTF::CCLayerTreeHostTestAddAnimation::afterTest):
550         (WTF::TEST_F):
551         * tests/TreeSynchronizerTest.cpp:
552         (FakeLayerAnimationController):
553         (WebKitTests::FakeLayerAnimationController::create):
554         (WebKitTests::FakeLayerAnimationController::synchronizedAnimations):
555         (WebKitTests::FakeLayerAnimationController::FakeLayerAnimationController):
556         (WebKitTests::FakeLayerAnimationController::synchronizeAnimations):
557         (WebKitTests):
558         (WebKitTests::TEST):
559
560 2012-02-21  Ryosuke Niwa  <rniwa@webkit.org>
561
562         Remove the remaining uses of CSSStyleDeclaration in Editor
563         https://bugs.webkit.org/show_bug.cgi?id=78939
564
565         Reviewed by Enrica Casucci.
566
567         * src/EditorClientImpl.cpp:
568         (WebKit::EditorClientImpl::shouldApplyStyle):
569         * src/EditorClientImpl.h:
570         (EditorClientImpl):
571
572 2012-02-22  Daniel Cheng  <dcheng@chromium.org>
573
574         [chromium] Cleanup unused WebDragData methods after r107846
575         https://bugs.webkit.org/show_bug.cgi?id=78837
576
577         Reviewed by Tony Chang.
578
579         The deleted methods have been replaced by items() and setItems().
580
581         * public/platform/WebDragData.h:
582         (WebDragData):
583         * src/WebDragData.cpp:
584         (WebKit::WebDragData::addItem): Add ensureMutable() call to verify preconditions for
585                                         mutating the item store.
586
587 2012-02-22  Tim Dresser  <tdresser@chromium.org>
588
589         CCLayerTreeHostImpl calls didDraw more frequently than willDraw
590         https://bugs.webkit.org/show_bug.cgi?id=79139
591
592         Reviewed by James Robinson.
593
594         * tests/CCLayerTreeHostImplTest.cpp:
595         (WebKit::DidDrawCheckLayer::willDraw):
596         (DidDrawCheckLayer):
597         (WebKit::DidDrawCheckLayer::willDrawCalled):
598         (WebKit::DidDrawCheckLayer::DidDrawCheckLayer):
599         (WebKit::TEST_F):
600         (WebKit):
601
602 2012-02-22  Dana Jansens  <danakj@chromium.org>
603
604         [Chromium] New CCOcclusionTracker class with tests
605         https://bugs.webkit.org/show_bug.cgi?id=78549
606
607         Reviewed by James Robinson.
608
609         * WebKit.gypi:
610         * tests/CCLayerTreeHostCommonTest.cpp:
611         (WebCore):
612         * tests/CCOcclusionTrackerTest.cpp: Added.
613         (WebCore):
614         (WebCore::setLayerPropertiesForTesting):
615         (LayerChromiumWithForcedDrawsContent):
616         (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent):
617         (WebCore::LayerChromiumWithForcedDrawsContent::drawsContent):
618         (TestCCOcclusionTracker):
619         (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace):
620         (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface):
621         (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace):
622         (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface):
623         (WebCore::TEST):
624
625 2012-02-22  Hao Zheng  <zhenghao@chromium.org>
626
627         [chromium] Build WebKit with MEDIA_STREAM disabled.
628         https://bugs.webkit.org/show_bug.cgi?id=79214
629
630         Reviewed by Kent Tamura.
631
632         * src/UserMediaClientImpl.h:
633
634 2012-02-20  Roland Steiner  <rolandsteiner@chromium.org>
635
636         <style scoped>: Add runtime-flag
637         https://bugs.webkit.org/show_bug.cgi?id=79074
638
639         Added a runtime-flag.
640         Enable default STYLE_SCOPED compile-time flag for Chromium.
641
642         Reviewed by Dimitri Glazkov.
643
644         * features.gypi: enable STYLE_SCOPED
645         * public/WebRuntimeFeatures.h:
646         (WebRuntimeFeatures):
647         * src/WebRuntimeFeatures.cpp:
648         (WebKit::WebRuntimeFeatures::enableStyleScoped):
649         (WebKit):
650         (WebKit::WebRuntimeFeatures::isStyleScopedEnabled):
651
652 2012-02-22  Yuta Kitamura  <yutak@chromium.org>
653
654         Unreviewed, rolling out r108453.
655         http://trac.webkit.org/changeset/108453
656         https://bugs.webkit.org/show_bug.cgi?id=78549
657
658         Broke Chromium's webkit_unit_tests.
659
660         * WebKit.gypi:
661         * tests/CCLayerTreeHostCommonTest.cpp:
662         (WebCore::TEST):
663         (WebCore):
664         * tests/CCOcclusionTrackerTest.cpp: Removed.
665
666 2012-02-22  Ryosuke Niwa  <rniwa@webkit.org>
667
668         Remove the remaining uses of CSSStyleDeclaration in Editor
669         https://bugs.webkit.org/show_bug.cgi?id=78939
670
671         Reviewed by Enrica Casucci.
672
673         * src/EditorClientImpl.cpp:
674         (WebKit::EditorClientImpl::shouldApplyStyle):
675         * src/EditorClientImpl.h:
676         (EditorClientImpl):
677
678 2012-02-22  Dana Jansens  <danakj@chromium.org>
679
680         [chromium] Cull quads outside of the scissoring damage rect
681         https://bugs.webkit.org/show_bug.cgi?id=79181
682
683         Reviewed by James Robinson.
684
685         * tests/CCQuadCullerTest.cpp:
686         (WebCore::TEST):
687         (WebCore):
688
689 2012-02-21  Dana Jansens  <danakj@chromium.org>
690
691         [Chromium] New CCOcclusionTracker class with tests
692         https://bugs.webkit.org/show_bug.cgi?id=78549
693
694         Reviewed by James Robinson.
695
696         * WebKit.gypi:
697         * tests/CCLayerTreeHostCommonTest.cpp:
698         (WebCore):
699         * tests/CCOcclusionTrackerTest.cpp: Added.
700         (WebCore):
701         (WebCore::setLayerPropertiesForTesting):
702         (LayerChromiumWithForcedDrawsContent):
703         (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent):
704         (WebCore::LayerChromiumWithForcedDrawsContent::drawsContent):
705         (TestCCOcclusionTracker):
706         (WebCore::TestCCOcclusionTracker::occlusionInScreenSpace):
707         (WebCore::TestCCOcclusionTracker::occlusionInTargetSurface):
708         (WebCore::TestCCOcclusionTracker::setOcclusionInScreenSpace):
709         (WebCore::TestCCOcclusionTracker::setOcclusionInTargetSurface):
710         (WebCore::TEST):
711
712 2012-02-21  MORITA Hajime  <morrita@google.com>
713
714         INPUT_SPEECH should be implemented as a PageSupplement.
715         https://bugs.webkit.org/show_bug.cgi?id=79051
716
717         Reviewed by Adam Barth.
718
719         * src/WebViewImpl.cpp:
720         (WebKit::WebViewImpl::WebViewImpl):
721
722 2012-02-20  MORITA Hajime  <morrita@google.com>
723
724         MEDIA_STREAM should be implemented as a PageSupplement.
725         https://bugs.webkit.org/show_bug.cgi?id=79050
726
727         Reviewed by Adam Barth.
728
729         * src/WebViewImpl.cpp:
730         (WebKit::WebViewImpl::WebViewImpl):
731
732 2012-02-21  Dana Jansens  <danakj@chromium.org>
733
734         [chromium] Painting a layer clears opaque rect in untouched tiles
735         https://bugs.webkit.org/show_bug.cgi?id=79157
736
737         Reviewed by James Robinson.
738
739         * tests/TiledLayerChromiumTest.cpp:
740         (WTF::TEST):
741
742 2012-02-21  James Robinson  <jamesr@chromium.org>
743
744         Enable ScrollingCoordinator in chromium whenever compositing is enabled
745         https://bugs.webkit.org/show_bug.cgi?id=79165
746
747         Reviewed by Adam Barth.
748
749         * src/NonCompositedContentHost.cpp:
750         (WebKit::NonCompositedContentHost::setViewport):
751             Whenever the ScrollingCoordinator is enabled the scroll layer's position is expected to be updated
752             externally to RenderLayerCompositor, so set it here.
753         * src/WebSettingsImpl.cpp:
754         (WebKit::WebSettingsImpl::setAcceleratedCompositingEnabled):
755
756 2012-02-21  Daniel Cheng  <dcheng@chromium.org>
757
758         [chromium] Fix image drag out on Chromium
759         https://bugs.webkit.org/show_bug.cgi?id=79158
760
761         Reviewed by Tony Chang.
762
763         We constructed the WebDragData::Item for dragging out an image but never added it to the
764         item list. This is normally covered by the fast/events/drag-image-filename.html layout test,
765         but the bug wasn't caught in the original patch since the implementations in Chrome and DRT
766         had diverged.
767
768         * src/WebDragData.cpp:
769         (WebKit::WebDragData::items):
770
771 2012-02-21  David Grogan  <dgrogan@chromium.org>
772
773         IndexedDB: webFrame isn't threadsafe, don't use it from a worker thread
774         https://bugs.webkit.org/show_bug.cgi?id=78659
775
776         After crrev.com/121669, indexed db doesn't use the web frame for
777         anything if called from a web worker.
778
779         No new tests - this check was defensive and possibly not ever
780         triggered.
781
782         Reviewed by Tony Chang.
783
784         * src/IDBFactoryBackendProxy.cpp:
785         (WebKit::IDBFactoryBackendProxy::openFromWorker):
786
787 2012-02-21  Yury Semikhatsky  <yurys@chromium.org>
788
789         [V8] Web Inspector: set breakpoint/pause doesn't work when worker is in a tight loop
790         https://bugs.webkit.org/show_bug.cgi?id=79097
791
792         Worker script execution will be interrupted for dispatching inspector commands.
793
794         Reviewed by Pavel Feldman.
795
796         * src/WebSharedWorkerImpl.cpp:
797         (WebKit::WebSharedWorkerImpl::dispatchDevToolsMessage):
798
799 2012-02-20  Peter Beverloo  <peter@chromium.org>
800
801         Unreviewed.  Rolled DEPS.
802
803         * DEPS:
804
805 2012-02-20  Kenichi Ishibashi  <bashi@chromium.org>
806
807         [WebSocket] Add deflater/inflater classes
808         https://bugs.webkit.org/show_bug.cgi?id=78449
809
810         Add tests which ensure WebSocketDeflater/WebSocketInflater can
811         compress/decompress data correctly.
812
813         Reviewed by Kent Tamura.
814
815         * WebKit.gypi: Added zlib dependency.
816         * WebKitUnitTests.gyp: Ditto.
817         * tests/WebSocketDeflaterTest.cpp: Added.
818         (WebCore):
819         (WebCore::TEST):
820
821 2012-02-17  Yury Semikhatsky  <yurys@chromium.org>
822
823         [Chromium] Web Inspector: terminated workers are not removed from dedicated worker list
824         https://bugs.webkit.org/show_bug.cgi?id=78899
825
826         Pass original WorkerContextProxy object to the inspector instrumentation instead
827         of Chromium-specific one for consistency with WorkerMessagingProxy implementation
828         in WebCore.
829
830         Reviewed by Pavel Feldman.
831
832         * src/WebWorkerClientImpl.cpp:
833         (WebKit::WebWorkerClientImpl::startWorkerContext):
834
835 2012-02-18  raman Tenneti  <rtenneti@chromium.org>
836
837         Track the NPN protocol version negotiated with the server
838         https://bugs.webkit.org/show_bug.cgi?id=77349
839
840         Reviewed by Darin Fisher.
841
842         [chromium] Added ExtraData to WebURLResponse.
843
844         * WebKit.gypi:
845         * public/platform/WebURLResponse.h:
846         (ExtraData):
847         (WebKit::WebURLResponse::ExtraData::~ExtraData):
848         (WebURLResponse):
849         * src/WebURLResponse.cpp:
850         (WebKit::WebURLResponse::extraData):
851         (WebKit):
852         (WebKit::WebURLResponse::setExtraData):
853         * tests/WebURLResponseTest.cpp: Added.
854         (WebKit):
855         (TestExtraData):
856         (WebKit::TestExtraData::TestExtraData):
857         (WebKit::TestExtraData::~TestExtraData):
858         (WebKit::TEST):
859
860 2012-02-17  Joshua Bell  <jsbell@chromium.org>
861
862         IndexedDB: Support overloaded methods that take IDBKey or IDBKeyRange
863         https://bugs.webkit.org/show_bug.cgi?id=78399
864
865         Implements the WebKit API for IDBObjectStore.delete(IDBKeyRange),
866         to exercise the overload capability.
867
868         Reviewed by Tony Chang.
869
870         * src/IDBObjectStoreBackendProxy.cpp:
871         (WebKit::IDBObjectStoreBackendProxy::deleteFunction):
872         (WebKit):
873         * src/IDBObjectStoreBackendProxy.h:
874         (IDBObjectStoreBackendProxy):
875         * src/WebIDBObjectStoreImpl.cpp:
876         (WebKit::WebIDBObjectStoreImpl::deleteFunction):
877         (WebKit):
878         * src/WebIDBObjectStoreImpl.h:
879         (WebIDBObjectStoreImpl):
880
881 2012-02-17  Michal Mocny  <mmocny@google.com>
882
883         [chromium] GL_CHROMIUM_gpu_memory_manager extension
884         https://bugs.webkit.org/show_bug.cgi?id=77155
885
886         Reviewed by James Robinson.
887
888         * public/platform/WebGraphicsContext3D.h:
889         (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
890         (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::~WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
891         (WebGraphicsContext3D):
892         (WebKit::WebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM):
893         * src/Extensions3DChromium.cpp:
894         (WebCore::Extensions3DChromium::setGpuMemoryAllocationChangedCallbackCHROMIUM):
895         (WebCore):
896         * src/GraphicsContext3DChromium.cpp:
897         (WebCore::GraphicsContext3D::~GraphicsContext3D):
898         (GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
899         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
900         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::~GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
901         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged):
902         (WebCore):
903         (WebCore::GraphicsContext3DPrivate::setGpuMemoryAllocationChangedCallbackCHROMIUM):
904         * src/GraphicsContext3DPrivate.h:
905         (WebCore):
906         * tests/FakeWebGraphicsContext3D.h:
907         (WebKit::FakeWebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM):
908         (FakeWebGraphicsContext3D):
909
910 2012-02-17  Mihnea Ovidenie  <mihnea@adobe.com>
911
912         CSS regions enabled by default
913         https://bugs.webkit.org/show_bug.cgi?id=78525
914
915         Reviewed by David Hyatt.
916
917         Add a runtime preference to enable/disable regions functionality at runtime(WebKitCSSRegionsEnabled).
918         CSSRegions are still enabled by default.
919         In DRT, use layoutTestController.overridePreference("WebKitCSSRegionsEnabled", "0") to disable the css regions functionality.
920
921         * public/WebSettings.h:
922         * src/WebSettingsImpl.cpp:
923         (WebKit::WebSettingsImpl::setExperimentalCSSRegionsEnabled):
924         (WebKit):
925         * src/WebSettingsImpl.h:
926         (WebSettingsImpl):
927
928 2012-02-17  Scott Graham  <scottmg@chromium.org>
929
930         [Chromium] pack Gamepad shared memory structure
931         https://bugs.webkit.org/show_bug.cgi?id=78022
932
933         Reviewed by Darin Fisher.
934
935         Add #pragma pack around definition of shared memory structures to
936         avoid differences across compilers and platforms. Add COMPILE_ASSERT
937         to verify expected size.
938
939         * public/platform/WebGamepad.h:
940         (WebKit):
941         * public/platform/WebGamepads.h:
942         (WebKit):
943
944 2012-02-17  Tim Dresser  <tdresser@chromium.org>
945
946         [chromium] Refactor video drawing to be more data driven
947         https://bugs.webkit.org/show_bug.cgi?id=76720
948
949         Reviewed by James Robinson.
950
951         CCLayerTreeHostImplTest.didDrawCalledOnAllLayers ensures that
952         CCLayerImpl::didDraw() is called on all layers, including layers
953         on different render surfaces.
954
955         * tests/CCLayerTreeHostImplTest.cpp:
956         (DidDrawCheckLayer):
957         (WebKit::DidDrawCheckLayer::create):
958         (WebKit::DidDrawCheckLayer::didDraw):
959         (WebKit::DidDrawCheckLayer::didDrawCalled):
960         (WebKit::DidDrawCheckLayer::DidDrawCheckLayer):
961         (WebKit):
962         (WebKit::TEST_F):
963
964 2012-02-17  Ilya Tikhonovsky  <loislo@chromium.org>
965
966         Unreviewed, rolling out r108071.
967         http://trac.webkit.org/changeset/108071
968         https://bugs.webkit.org/show_bug.cgi?id=77155
969
970         chromium-mac compilation failed
971
972         * public/platform/WebGraphicsContext3D.h:
973         (WebGraphicsContext3D):
974         * src/Extensions3DChromium.cpp:
975         * src/GraphicsContext3DChromium.cpp:
976         (WebCore::GraphicsContext3D::~GraphicsContext3D):
977         * src/GraphicsContext3DPrivate.h:
978         (WebCore):
979         * tests/FakeWebGraphicsContext3D.h:
980
981 2012-02-17  Michal Mocny  <mmocny@google.com>
982
983         [chromium] GL_CHROMIUM_gpu_memory_manager extension
984         https://bugs.webkit.org/show_bug.cgi?id=77155
985
986         Reviewed by James Robinson.
987
988         * public/platform/WebGraphicsContext3D.h:
989         (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
990         (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::~WebGraphicsMemoryAllocationChangedCallbackCHROMIUM):
991         (WebGraphicsContext3D):
992         (WebKit::WebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM):
993         * src/Extensions3DChromium.cpp:
994         (WebCore::Extensions3DChromium::setGpuMemoryAllocationChangedCallbackCHROMIUM):
995         (WebCore):
996         * src/GraphicsContext3DChromium.cpp:
997         (WebCore::GraphicsContext3D::~GraphicsContext3D):
998         (GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
999         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
1000         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::~GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
1001         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged):
1002         (WebCore):
1003         (WebCore::GraphicsContext3DPrivate::setGpuMemoryAllocationChangedCallbackCHROMIUM):
1004         * src/GraphicsContext3DPrivate.h:
1005         (WebCore):
1006         * tests/FakeWebGraphicsContext3D.h:
1007         (WebKit::FakeWebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM):
1008         (FakeWebGraphicsContext3D):
1009
1010 2012-02-17  Ilya Tikhonovsky  <loislo@chromium.org>
1011
1012         Unreviewed. Chromium DEPS roll
1013
1014         * DEPS: from 122122 to 122498
1015
1016 2012-02-16  Alexandre Elias  <aelias@google.com>
1017
1018         [chromium] Bundle page scale factor and limits in CCLayerTreeHost
1019         https://bugs.webkit.org/show_bug.cgi?id=78762
1020
1021         Setting page scale factor and its limits in separate methods
1022         may cause clamping bugs if one of them makes it to the
1023         impl thread before the other.  Change the API to bundle them together,
1024         which matches the existing impl-side interface.
1025
1026         Reviewed by James Robinson.
1027
1028         * src/WebViewImpl.cpp:
1029         (WebKit::WebViewImpl::computePageScaleFactorLimits):
1030         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1031         (WebKit::WebViewImpl::updateLayerTreeViewport):
1032         * tests/CCLayerTreeHostTest.cpp:
1033         (WTF::CCLayerTreeHostTestStartPageScaleAnimation::applyScrollAndScale):
1034
1035 2012-02-16  Varun Jain  <varunjain@google.com>
1036
1037         [Chromium] Add method to WebViewImpl to extract zoom/scroll params for gesture events on touch devices
1038         https://bugs.webkit.org/show_bug.cgi?id=72909
1039
1040         Reviewed by James Robinson.
1041
1042         * src/WebViewImpl.cpp:
1043         (std):
1044         (WebKit):
1045         (WebKit::WebViewImpl::computeBlockBounds):
1046         (WebKit::WebViewImpl::widenRectWithinPageBounds):
1047         (WebKit::WebViewImpl::computeScaleAndScrollForHitRect):
1048         * src/WebViewImpl.h:
1049         (WebViewImpl):
1050         * tests/WebFrameTest.cpp:
1051         (WebKit):
1052         (WebKit::TEST_F):
1053         * tests/data/get_scale_for_auto_zoom_into_div_test.html: Added.
1054
1055 2012-02-16  Sami Kyostila  <skyostil@chromium.org>
1056
1057         [chromium] LayerChromium::setNeedsDisplay does not apply contents scale correctly
1058         https://bugs.webkit.org/show_bug.cgi?id=77464
1059
1060         Added a new unit test for TiledLayerChromium to verify its invalidation behavior when
1061         the contents scale changes. Also enhance and existing unit test for LayerChromium to
1062         verify the paint rectangle dimensions instead just checking that it is not empty.
1063
1064         Reviewed by James Robinson.
1065
1066         * tests/LayerChromiumTest.cpp:
1067         * tests/TiledLayerChromiumTest.cpp:
1068         (WTF::FakeTiledLayerChromium::setNeedsDisplayRect):
1069         (FakeTiledLayerChromium):
1070         (WTF::FakeTiledLayerChromium::lastNeedsDisplayRect):
1071         (WTF::TEST):
1072         (WTF):
1073
1074 2012-02-16  MORITA Hajime  <morrita@google.com>
1075
1076         https://bugs.webkit.org/show_bug.cgi?id=78065
1077         [Chromium] Should eliminate WebTextCheckingResult legacy APIs
1078
1079         Reviewed by Kent Tamura.
1080
1081         Removed unused legacy members.
1082
1083         * public/WebTextCheckingResult.h:
1084         (WebKit::WebTextCheckingResult::WebTextCheckingResult):
1085         (WebTextCheckingResult):
1086         * src/AssertMatchingEnums.cpp:
1087
1088 2012-02-16  Evan Martin  <evan@chromium.org>
1089
1090         [chromium] pull third_party/gold to fix linux build
1091         https://bugs.webkit.org/show_bug.cgi?id=78842
1092
1093         Reviewed by Tony Chang.
1094
1095         The Chrome build now depends on third_party/gold also being checked out.
1096
1097         * DEPS:
1098
1099 2012-02-15  Michael Nordman  <michaeln@google.com>
1100
1101         Fix bugs in the implementation of WebDatabase::closeDatabaseImmediately.
1102         https://bugs.webkit.org/show_bug.cgi?id=78841
1103
1104         WebDatabase now delegates this function entirely to DatabaseTracker.
1105         This is part of resolving http://crbug.com/98939
1106
1107         Reviewed by David Levin.
1108
1109         * src/WebDatabase.cpp:
1110         (WebKit::WebDatabase::closeDatabaseImmediately):
1111
1112 2012-02-16  Dana Jansens  <danakj@chromium.org>
1113
1114         [Chromium] Occlusion tracking with CSS filters
1115         https://bugs.webkit.org/show_bug.cgi?id=77498
1116
1117         Reviewed by James Robinson.
1118
1119         * tests/CCLayerTreeHostTest.cpp:
1120         (CCLayerTreeHostTestLayerOcclusionWithFilters):
1121         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::CCLayerTreeHostTestLayerOcclusionWithFilters):
1122         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
1123         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::afterTest):
1124         (WTF):
1125
1126 2012-02-16  Joshua Bell  <jsbell@chromium.org>
1127
1128         IndexedDB: Chromium WebKit API support for IDBObjectStore.delete(IDBKeyRange)
1129         https://bugs.webkit.org/show_bug.cgi?id=78619
1130
1131         Add an overload to WebIDBObjectStore::deleteFunction(). First part of a two-sided patch.
1132
1133         Reviewed by Darin Fisher.
1134
1135         * public/WebIDBObjectStore.h:
1136         (WebKit::WebIDBObjectStore::deleteFunction):
1137
1138 2012-02-16  Dana Jansens  <danakj@chromium.org>
1139
1140         [chromium] Clipping/Transforms applied in wrong order in opaque paint tracking
1141         https://bugs.webkit.org/show_bug.cgi?id=78775
1142
1143         Reviewed by Stephen White.
1144
1145         * tests/PlatformContextSkiaTest.cpp:
1146         (WebCore::TEST):
1147
1148 2012-02-16  Daniel Cheng  <dcheng@chromium.org>
1149
1150         [chromium] Add WEBKIT_EXPORT to new WebDragData methods.
1151         https://bugs.webkit.org/show_bug.cgi?id=78843
1152
1153         Reviewed by Tony Chang.
1154
1155         * public/platform/WebDragData.h:
1156         (WebDragData):
1157
1158 2012-02-16  Viet-Trung Luu  <viettrungluu@chromium.org>
1159
1160         [chromium] Add method to WebPluginContainer to check if a rectangle is topmost
1161         https://bugs.webkit.org/show_bug.cgi?id=78166
1162
1163         Reviewed by Darin Fisher.
1164
1165         * public/WebPluginContainer.h:
1166         (WebPluginContainer):
1167         * src/WebPluginContainerImpl.cpp:
1168         * src/WebPluginContainerImpl.h:
1169         (WebPluginContainerImpl):
1170
1171 2012-02-16  Yosifumi Inoue  <yosin@chromium.org>
1172
1173         Build Fix: R107894 breaks Chromium Linux Build.
1174         https://bugs.webkit.org/show_bug.cgi?id=78790
1175
1176         WebDragDataPrivate::types, inherited from ChromiumDataObject, returns PassRef<DOMStringList> since r107894. However, WebDragData expected to get old return value type HashSet<String>.
1177
1178         Reviewed by Kent Tamura.
1179
1180         * src/WebDragData.cpp:
1181         (WebKit::WebDragData::items): Use RefPtr<DOMStringList> rather than HashSet<String> for value of m_private->types().
1182
1183 2012-02-15  Sami Kyostila  <skyostil@google.com>
1184
1185         Enable -webkit-overflow-scrolling CSS property
1186         https://bugs.webkit.org/show_bug.cgi?id=78664
1187
1188         Reviewed by Eric Seidel.
1189
1190         * features.gypi:
1191
1192 2012-02-15  Tommy Widenflycht  <tommyw@google.com>
1193
1194         MediaStream API: Removing SecurityContext from the embedder API
1195         https://bugs.webkit.org/show_bug.cgi?id=73816
1196
1197         Reviewed by Darin Fisher.
1198
1199         * bridge/PeerConnectionHandler.cpp:
1200         (WebCore::PeerConnectionHandler::create):
1201         (WebCore::PeerConnectionHandler::PeerConnectionHandler):
1202         * bridge/PeerConnectionHandlerInternal.cpp:
1203         (WebCore::PeerConnectionHandlerInternal::PeerConnectionHandlerInternal):
1204         * bridge/PeerConnectionHandlerInternal.h:
1205         (WebCore):
1206         (PeerConnectionHandlerInternal):
1207         * public/platform/WebPeerConnectionHandler.h:
1208         (WebPeerConnectionHandler):
1209         (WebKit::WebPeerConnectionHandler::initialize):
1210
1211 2012-02-15  Peter Beverloo  <peter@chromium.org>
1212
1213         [Chromium] Roll DEPS to r122122
1214         https://bugs.webkit.org/show_bug.cgi?id=78754
1215
1216         Unreviewed DEPS roll.
1217
1218         * DEPS:
1219
1220 2012-02-01  Daniel Cheng  <dcheng@chromium.org>
1221
1222         [chromium] Add setter/getter to expose drag data as a list of items
1223         https://bugs.webkit.org/show_bug.cgi?id=77125
1224
1225         This change supports the unification of the data store backing ChromiumDataObject and
1226         DataTransferItemListChromium. ChromiumDataObject will represent dragging and clipboard data
1227         as a list of data nodes to make it more straightforward to implement the HTML spec for
1228         DataTransferItemList. Thus, we extend the abstraction to the webkit glue layer to
1229         simplify the serialization/deserialization between platform-specific data and WebDragData.
1230         The other setter/getter methods are deprecated and will be removed once the dependencies in
1231         Chromium code are gone.
1232
1233         Reviewed by Darin Fisher.
1234
1235         * public/platform/WebDragData.h:
1236         (WebKit):
1237         (WebDragData):
1238         * src/WebDragData.cpp:
1239         (WebKit::WebDragData::items):
1240         (WebKit):
1241         (WebKit::WebDragData::setItems):
1242         (WebKit::WebDragData::addItem):
1243
1244 2012-02-15  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1245
1246         Notify ChromeClient when touch-event handlers are installed/removed.
1247         https://bugs.webkit.org/show_bug.cgi?id=77440
1248
1249         Reviewed by Darin Fisher and Ryosuke Niwa.
1250
1251         * public/WebViewClient.h:
1252         (WebKit::WebViewClient::numberOfTouchEventHandlersChanged):
1253         * src/ChromeClientImpl.cpp:
1254         (WebKit::ChromeClientImpl::numTouchEventHandlersChanged):
1255         (WebKit):
1256         * src/ChromeClientImpl.h:
1257         (ChromeClientImpl):
1258         * src/WebViewImpl.cpp:
1259         (WebKit::WebViewImpl::numberOfTouchEventHandlersChanged):
1260         (WebKit):
1261         * src/WebViewImpl.h:
1262         (WebViewImpl):
1263
1264 2012-02-15  Anders Carlsson  <andersca@apple.com>
1265
1266         Remove ScrollableArea::handleGestureEvent
1267         https://bugs.webkit.org/show_bug.cgi?id=78661
1268
1269         Reviewed by Adam Roben.
1270
1271         Update for WebCore changes.
1272
1273         * src/WebPluginContainerImpl.cpp:
1274         * src/WebPluginContainerImpl.h:
1275         (WebPluginContainerImpl):
1276         * src/WebViewImpl.cpp:
1277         (WebKit::WebViewImpl::gestureEvent):
1278
1279 2012-02-14  Takashi Toyoshima  <toyoshim@chromium.org>
1280
1281         Provide SocketStreamHandleInternal::toWebSocketStreamHandle(SocketStreamHandle*).
1282         https://bugs.webkit.org/show_bug.cgi?id=78581
1283
1284         Reviewed by Kent Tamura.
1285
1286         Now, there is no way to convert SocketStreamHandle to
1287         WebSocketStreamHandle. In subsequent changes, I'll use this function
1288         in FrameLoaderClientImpl.
1289
1290         * src/SocketStreamHandle.cpp: Remove SocketStreamHandleInternal class declaration.
1291         * src/SocketStreamHandleInternal.h: Move SocketStreamHandleInternal class declaration from SocketStreamHandle.cpp to expose, and add conversion function to WebSocketStreamHandle from SocketStreamHandle.
1292         (WebKit):
1293         (WebCore):
1294         (SocketStreamHandleInternal):
1295         (WebCore::SocketStreamHandleInternal::create):
1296         (WebCore::SocketStreamHandleInternal::toWebSocketStreamHandle):
1297         * WebKit.gyp: Add SocketStreamHandleInternal.h entry.
1298
1299 2012-02-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1300
1301         Unreviewed, rolling out r107766.
1302         http://trac.webkit.org/changeset/107766
1303         https://bugs.webkit.org/show_bug.cgi?id=78665
1304
1305         Breaks Chromium Win build (Requested by bashi1 on #webkit).
1306
1307         * WebKit.gypi:
1308         * tests/WebSocketDeflaterTest.cpp: Removed.
1309
1310 2012-02-14  Kenichi Ishibashi  <bashi@chromium.org>
1311
1312         [WebSocket] Add extension attribute support
1313         https://bugs.webkit.org/show_bug.cgi?id=78557
1314
1315         Add WebSocketExtensionDispatcher::acceptedExtensions() checks.
1316
1317         Reviewed by Kent Tamura.
1318
1319         * tests/WebSocketExtensionDispatcherTest.cpp:
1320         (WebCore::TEST_F):
1321
1322 2012-02-14  Kenichi Ishibashi  <bashi@chromium.org>
1323
1324         [WebSocket] Add deflater/inflater classes.
1325         https://bugs.webkit.org/show_bug.cgi?id=78449
1326
1327         Add tests which ensure WebSocketDeflater/WebSocketInflater can
1328         compress/decompress data correctly.
1329
1330         Reviewed by Kent Tamura.
1331
1332         * WebKit.gypi:
1333         * tests/WebSocketDeflaterTest.cpp: Added.
1334         (WebCore):
1335         (WebCore::TEST):
1336
1337 2012-02-14  Dana Jansens  <danakj@chromium.org>
1338
1339         [chromium] Compare filters on impl thread when setting them, and test setting in unit tests
1340         https://bugs.webkit.org/show_bug.cgi?id=78643
1341
1342         Reviewed by James Robinson.
1343
1344         * tests/CCLayerImplTest.cpp:
1345         (WebCore::TEST):
1346
1347 2012-02-14  Ramya Chandrasekaran  <cramya@google.com>
1348
1349         Last character display for passwords in Android.
1350         https://bugs.webkit.org/show_bug.cgi?id=78532
1351
1352         Reviewed by Adam Barth.
1353
1354         * public/WebSettings.h:
1355         * src/WebSettingsImpl.cpp:
1356         (WebKit::WebSettingsImpl::setPasswordEchoEnabled):
1357         (WebKit):
1358         (WebKit::WebSettingsImpl::setPasswordEchoDurationInSeconds):
1359         * src/WebSettingsImpl.h:
1360         (WebSettingsImpl):
1361
1362 2012-02-14  David Reveman  <reveman@chromium.org>
1363
1364         [Chromium] Expose perTilePainting setting through WebLayerTreeView::Settings interface.
1365         https://bugs.webkit.org/show_bug.cgi?id=76937
1366
1367         Reviewed by James Robinson.
1368
1369         Add perTilePainting to WebLayerTreeView::Settings.
1370
1371         * public/platform/WebLayerTreeView.h:
1372         (WebKit::WebLayerTreeView::Settings::Settings):
1373         (Settings):
1374         * src/WebLayerTreeView.cpp:
1375         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
1376
1377 2012-02-14  Vsevolod Vlasov  <vsevik@chromium.org>
1378
1379         Web Inspector: Make ScriptsNavigator default file selector.
1380         https://bugs.webkit.org/show_bug.cgi?id=78349
1381
1382         Reviewed by Pavel Feldman.
1383
1384         * src/js/Tests.js:
1385         (.TestSuite.prototype.testNoScriptDuplicatesOnPanelSwitch.checkNoDuplicates):
1386         (.TestSuite.prototype.uiSourceCodesToString_):
1387         (.TestSuite.prototype.nonAnonymousUISourceCodes_):
1388         (.TestSuite.prototype._scriptsAreParsed):
1389         (.TestSuite.prototype._waitUntilScriptsAreParsed.waitForAllScripts):
1390         (.TestSuite.prototype._waitUntilScriptsAreParsed):
1391
1392 2012-02-14  Hayato Ito  <hayato@chromium.org>
1393
1394         Make ShadowRoot.nodeType return DOCUMENT_FRAGMENT_NODE.
1395         https://bugs.webkit.org/show_bug.cgi?id=77514
1396
1397         Reviewed by Dimitri Glazkov.
1398
1399         NodeType.SHADOW_ROOT_NODE type is finally gone.
1400
1401         * src/WebPageSerializerImpl.cpp:
1402         (WebKit::WebPageSerializerImpl::buildContentForNode):
1403
1404 2012-02-14  David Reveman  <reveman@chromium.org>
1405
1406         [Chromium] Inconsistent initialization of CCSettings in WebLayerTreeView.
1407         https://bugs.webkit.org/show_bug.cgi?id=76927
1408
1409         Reviewed by James Robinson.
1410
1411         Remove unnecessary initialization and include maxPartialTextureUpdates
1412         in FIXME comment.
1413
1414         * src/WebLayerTreeView.cpp:
1415         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
1416
1417 2012-02-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1418
1419         Unreviewed, rolling out r107661.
1420         http://trac.webkit.org/changeset/107661
1421         https://bugs.webkit.org/show_bug.cgi?id=78591
1422
1423         crash on lion/qt bots (Requested by hayato on #webkit).
1424
1425         * src/WebPageSerializerImpl.cpp:
1426         (WebKit::WebPageSerializerImpl::buildContentForNode):
1427
1428 2012-02-14  Yuzhu Shen  <yzshen@chromium.com>
1429
1430         [chromium] Pepper plugins don't receive mouse movement information in
1431         non-mouse-lock mode.
1432         https://bugs.webkit.org/show_bug.cgi?id=78014
1433
1434         This change makes WebMouseEventBuilder pass along mouse movement
1435         information properly.
1436
1437         There isn't test for this change because:
1438         - the movement information added is only used by pepper, and there
1439           isn't any test for pepper at the WebKit side. (WebKit doesn't know
1440           about pepper.)
1441         - this change is trivial. It just copies two newly-added data fields
1442           from MouseEvent to WebMouseEventBuilder during conversion.
1443
1444         Reviewed by Tony Chang.
1445
1446         * src/WebInputEventConversion.cpp:
1447         (WebKit::WebMouseEventBuilder::WebMouseEventBuilder):
1448
1449 2012-02-11  Nikolas Zimmermann  <nzimmermann@rim.com>
1450
1451         Convert svg/animations to use SMIL methods for driving the timeline
1452         https://bugs.webkit.org/show_bug.cgi?id=78422
1453
1454         Reviewed by Dirk Schulze.
1455
1456         Remove SVG animation sampling functionality provided for DRT, which no longer uses it.
1457         Instead we switched the svg/animations tests to use SVGSVGElement.setCurrentTime.
1458
1459         * public/WebFrame.h:
1460         (WebFrame):
1461         * src/WebFrameImpl.cpp:
1462         * src/WebFrameImpl.h:
1463         (WebFrameImpl):
1464
1465 2012-02-13  Mihai Parparita  <mihaip@chromium.org>
1466
1467         [Chromium] Remove BoundObject
1468         https://bugs.webkit.org/show_bug.cgi?id=78531
1469
1470         Reviewed by Pavel Feldman.
1471
1472         Remove the BoundObject class, references to it were removed in r56999.
1473
1474         * WebKit.gyp:
1475         * src/BoundObject.cpp: Removed.
1476         * src/BoundObject.h: Removed.
1477         * src/WebDevToolsFrontendImpl.cpp:
1478
1479 2012-02-13  W. James MacLean  <wjmaclean@chromium.org>
1480
1481         [chromium] Remove obsolete zoom animation pathway.
1482         https://bugs.webkit.org/show_bug.cgi?id=78359
1483
1484         Reviewed by James Robinson.
1485
1486         This patch removes dead code from the previous incarnation of zoom animation for chromium.
1487
1488         * src/WebViewImpl.cpp:
1489
1490 2012-02-13  Hayato Ito  <hayato@chromium.org>
1491
1492         Make ShadowRoot.nodeType return DOCUMENT_FRAGMENT_NODE.
1493         https://bugs.webkit.org/show_bug.cgi?id=77514
1494
1495         Reviewed by Dimitri Glazkov.
1496
1497         NodeType.SHADOW_ROOT_NODE type is finally gone.
1498
1499         * src/WebPageSerializerImpl.cpp:
1500         (WebKit::WebPageSerializerImpl::buildContentForNode):
1501
1502 2012-02-13  Nico Weber  <thakis@chromium.org>
1503
1504         [chromium] Let WebKit::initialize call InitWebCoreSystemInterface on mac.
1505         https://bugs.webkit.org/show_bug.cgi?id=78246
1506
1507         This allows removing a bunch of code in chromium land (https://chromiumcodereview.appspot.com/9374020/),
1508         and helps with the component build on mac (InitWebCoreSystemInterface is not an
1509         exported function, and it shouldn't be).
1510
1511         Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm early-returns when it's
1512         called twice, so it's safe to land this change, and remove the calls in client
1513         code in a later CL.
1514
1515         Reviewed by Darin Fisher.
1516
1517         * src/WebKit.cpp:
1518         (WebKit::initializeWithoutV8):
1519
1520 2012-02-13  Yosifumi Inoue  <yosin@chromium.org>
1521
1522         [Forms] Use enum instead of bool for HTMLInputElement::setValue
1523         https://bugs.webkit.org/show_bug.cgi?id=75217
1524
1525         Reviewed by Kent Tamura.
1526
1527         * src/WebInputElement.cpp:
1528         (WebKit::WebInputElement::setValue): Use enum for HTMLInputElement::setValue
1529
1530 2012-02-12  Hajime Morrita  <morrita@chromium.org>
1531
1532         Page should have less intrusive way to associate API implementation objects.
1533         https://bugs.webkit.org/show_bug.cgi?id=78085
1534
1535         Reviewed by Adam Barth.
1536
1537         * src/WebViewImpl.cpp:
1538         (WebKit::WebViewImpl::WebViewImpl):
1539
1540 2012-02-10  David Grogan  <dgrogan@chromium.org>
1541
1542         Disable IndexedDB permissions check from shared workers
1543         https://bugs.webkit.org/show_bug.cgi?id=78316
1544
1545         We want to temporarily bypass this check because it causes a crash
1546         when called from a shared worker.  We'll have to fix it before
1547         including idb on shared workers in a release but don't want to stop
1548         developers from testing out idb on shared workers.
1549
1550         No new tests because it affects shared workers only, which aren't
1551         testable by DRT.
1552
1553         Reviewed by Tony Chang.
1554
1555         * src/IDBFactoryBackendProxy.cpp:
1556         (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread):
1557
1558 2012-02-10  Sheriff Bot  <webkit.review.bot@gmail.com>
1559
1560         Unreviewed.  Rolled DEPS.
1561
1562         * DEPS:
1563
1564 2012-02-09  Kenichi Ishibashi  <bashi@chromium.org>
1565
1566         Add WebSocket extension support
1567         https://bugs.webkit.org/show_bug.cgi?id=78079
1568
1569         Add some tests which check WebSocketExtensions::processHeaderValue()
1570         parses the given response correctly.
1571
1572         Reviewed by Kent Tamura.
1573
1574         * WebKit.gypi:
1575         * tests/WebSocketExtensionDispatcherTest.cpp: Added.
1576         (WebCore):
1577         (MockWebSocketExtensionProcessor):
1578         (WebCore::MockWebSocketExtensionProcessor::MockWebSocketExtensionProcessor):
1579         (WebSocketExtensionDispatcherTest):
1580         (WebCore::WebSocketExtensionDispatcherTest::WebSocketExtensionDispatcherTest):
1581         (WebCore::WebSocketExtensionDispatcherTest::SetUp):
1582         (WebCore::WebSocketExtensionDispatcherTest::TearDown):
1583         (WebCore::WebSocketExtensionDispatcherTest::addMockProcessor):
1584         (WebCore::WebSocketExtensionDispatcherTest::appendResult):
1585         (WebCore::MockWebSocketExtensionProcessor::processResponse):
1586         (WebCore::TEST_F):
1587
1588 2012-02-09  W. James MacLean  <wjmaclean@chromium.org>
1589
1590         [chromium] Add support for starting page/scale animations on CC impl thread from WebViewImpl
1591         https://bugs.webkit.org/show_bug.cgi?id=77872
1592
1593         Reviewed by James Robinson.
1594
1595         Provides a pathway to invoke CCLayerTreeHostImpl::startPageScaleAnimation() from
1596         WebViewImpl. This is intended to support scale and scroll animations, such as WebInputEvent::GestureDoubleTap.
1597
1598         * src/WebViewImpl.cpp:
1599         (WebKit):
1600         (WebKit::WebViewImpl::startPageScaleAnimation):
1601         * src/WebViewImpl.h:
1602         (WebViewImpl):
1603         * tests/CCLayerTreeHostTest.cpp:
1604         (WTF):
1605         (CCLayerTreeHostTestStartPageScaleAnimation):
1606         (WTF::CCLayerTreeHostTestStartPageScaleAnimation::CCLayerTreeHostTestStartPageScaleAnimation):
1607         (WTF::CCLayerTreeHostTestStartPageScaleAnimation::beginTest):
1608         (WTF::CCLayerTreeHostTestStartPageScaleAnimation::requestStartPageScaleAnimation):
1609         (WTF::CCLayerTreeHostTestStartPageScaleAnimation::drawLayersOnCCThread):
1610         (WTF::CCLayerTreeHostTestStartPageScaleAnimation::applyScrollAndScale):
1611         (WTF::CCLayerTreeHostTestStartPageScaleAnimation::commitCompleteOnCCThread):
1612         (WTF::CCLayerTreeHostTestStartPageScaleAnimation::afterTest):
1613         (WTF::TEST_F):
1614
1615 2012-02-09  John Bates  <jbates@google.com>
1616
1617         [Chromium] Add chromium-style tracing support
1618         https://bugs.webkit.org/show_bug.cgi?id=76885
1619
1620         Reviewed by Darin Fisher.
1621
1622         This code enables WebKit trace events to pass through more data to the
1623         chromium platform tracing API and generally to use the full tracing
1624         API provided by chromium.
1625
1626         * public/platform/WebKitPlatformSupport.h:
1627         (WebKit::WebKitPlatformSupport::getTraceCategoryEnabledFlag):
1628         (WebKit::WebKitPlatformSupport::addTraceEvent):
1629         * src/PlatformSupport.cpp:
1630         (WebCore::PlatformSupport::getTraceCategoryEnabledFlag):
1631         (WebCore::PlatformSupport::addTraceEvent):
1632
1633 2012-02-09  Jonathan Backer  <backer@chromium.org>
1634
1635         [chromium] Plumb setNeedsRedraw.
1636         https://bugs.webkit.org/show_bug.cgi?id=78248
1637
1638         Reviewed by James Robinson.
1639
1640         * public/platform/WebLayerTreeView.h:
1641         (WebLayerTreeView):
1642         * src/WebLayerTreeView.cpp:
1643         (WebKit::WebLayerTreeView::setNeedsRedraw):
1644         (WebKit):
1645
1646 2012-02-09  Jonathan Backer  <backer@chromium.org>
1647
1648         [chromium] Add setNeedsRedraw to WebWidget
1649         https://bugs.webkit.org/show_bug.cgi?id=77555
1650
1651         Reviewed by James Robinson.
1652
1653         * public/WebWidget.h:
1654         (WebWidget):
1655         (WebKit::WebWidget::setNeedsRedraw):
1656         * src/WebViewImpl.cpp:
1657         (WebKit::WebViewImpl::setNeedsRedraw):
1658         (WebKit):
1659         * src/WebViewImpl.h:
1660         (WebViewImpl):
1661
1662 2012-02-08  Raymond Liu  <raymond.liu@intel.com>
1663
1664         Fix a typo for r107125
1665         https://bugs.webkit.org/show_bug.cgi?id=77804
1666
1667         Reviewed by James Robinson.
1668
1669         * tests/WebCompositorInputHandlerImplTest.cpp:
1670
1671 2012-02-08  David Reveman  <reveman@chromium.org>
1672
1673         [Chromium] Avoid unnecessary full tile updates without breaking atomicity of commits.
1674         https://bugs.webkit.org/show_bug.cgi?id=76740
1675
1676         Reviewed by James Robinson.
1677
1678         Add CCLayerTreeHostTestAtomicCommitWithPartialUpdate and
1679         TiledLayerChromiumTest.partialUpdates tests that verifies
1680         atomicity of commits with partial updates.
1681
1682         * tests/CCLayerTreeHostTest.cpp:
1683         (WTF::CCLayerTreeHostTestAtomicCommit::CCLayerTreeHostTestAtomicCommit):
1684         (WTF::CCLayerTreeHostTestAtomicCommit::beginTest):
1685         (WTF::CCLayerTreeHostTestAtomicCommit::commitCompleteOnCCThread):
1686         (WTF::CCLayerTreeHostTestAtomicCommit::layout):
1687         (CCLayerTreeHostTestAtomicCommit):
1688         (CCLayerTreeHostTestAtomicCommitWithPartialUpdate):
1689         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::CCLayerTreeHostTestAtomicCommitWithPartialUpdate):
1690         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::beginTest):
1691         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
1692         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::drawLayersOnCCThread):
1693         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::layout):
1694         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::afterTest):
1695         (WTF):
1696         (WTF::TEST_F):
1697         * tests/TiledLayerChromiumTest.cpp:
1698         (WTF::FakeLayerTextureUpdater::Texture::Texture):
1699         (WTF::FakeLayerTextureUpdater::Texture::updateRect):
1700         (Texture):
1701         (WTF::FakeLayerTextureUpdater::FakeLayerTextureUpdater):
1702         (FakeLayerTextureUpdater):
1703         (WTF::FakeLayerTextureUpdater::updateCount):
1704         (WTF::FakeLayerTextureUpdater::clearUpdateCount):
1705         (WTF::FakeLayerTextureUpdater::updateRect):
1706         (WTF::FakeLayerTextureUpdater::createTexture):
1707         (FakeTiledLayerChromium):
1708         (WTF::TEST):
1709         (WTF):
1710
1711 2012-02-07  MORITA Hajime  <morrita@google.com>
1712
1713         Replacement text should be available from the marker.
1714         https://bugs.webkit.org/show_bug.cgi?id=77934
1715
1716         didFinishCheckingText() accidentally dropped the description text
1717         given from the backend. Fixed to copy it on the API-to-Core
1718         convertion. The test won't work without this fix.
1719
1720         Reviewed by Kent Tamura.
1721
1722         * src/WebTextCheckingCompletionImpl.cpp:
1723         (WebKit::toCoreResults):
1724
1725 2012-02-08  Dmitry Lomov  <dslomov@chromium.org>
1726
1727         [V8][Chromium] Race between worker accessing WebDatabase and frame closing down.
1728         https://bugs.webkit.org/show_bug.cgi?id=78150
1729         Handle case when the frame is shut down under us gracefully.
1730
1731         Reviewed by David Levin.
1732
1733         * src/DatabaseObserver.cpp:
1734         (WebCore::DatabaseObserver::canEstablishDatabase): Handle WebWorkerBase::view returning 0.
1735         * src/IDBFactoryBackendProxy.cpp:
1736         (WebKit::IDBFactoryBackendProxy::openFromWorker): Handle WebWorkerBase::view returning 0.
1737         * src/WebWorkerClientImpl.cpp:
1738         (WebKit::WebWorkerClientImpl::allowFileSystem):
1739         (WebKit::WebWorkerClientImpl::allowDatabase):
1740         (WebKit::WebWorkerClientImpl::view):
1741
1742 2012-02-08  Adam Klein  <adamk@chromium.org>
1743
1744         DOM mutations should not be delivered on worker threads
1745         https://bugs.webkit.org/show_bug.cgi?id=77898
1746
1747         Reviewed by Dmitry Titov.
1748
1749         * src/WebDevToolsFrontendImpl.cpp:
1750         (WebKit::WebDevToolsFrontendImpl::dispatchOnInspectorFrontend):
1751
1752 2012-02-08  Scott Graham  <scottmg@chromium.org>
1753
1754         Roll Chromium DEPS
1755         https://bugs.webkit.org/show_bug.cgi?id=78152
1756
1757         Reviewed by Adam Barth.
1758
1759         * DEPS:
1760
1761 2012-02-08  Dana Jansens  <danakj@chromium.org>
1762
1763         [Chromium] Fix opaque tracking for box shadows and non-composited child elements
1764         https://bugs.webkit.org/show_bug.cgi?id=78073
1765
1766         Reviewed by Stephen White.
1767
1768         * tests/PlatformContextSkiaTest.cpp:
1769         (WebCore::TEST):
1770         (WebCore):
1771
1772 2012-02-08  Shawn Singh  <shawnsingh@chromium.org>
1773
1774         [chromium] Remove incorrect early exit in CCDamageTracker
1775         https://bugs.webkit.org/show_bug.cgi?id=76924
1776
1777         Reviewed by James Robinson.
1778
1779         * tests/CCDamageTrackerTest.cpp:
1780         (WebKitTests::emulateDrawingOneFrame):
1781         (WebKitTests::TEST_F):
1782         (WebKitTests):
1783
1784 2012-02-08  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1785
1786         Add support for pinch gesture processing in the MT compositor.
1787         https://bugs.webkit.org/show_bug.cgi?id=77804
1788
1789         Reviewed by James Robinson.
1790
1791         * public/WebInputEvent.h:
1792         * src/WebCompositorInputHandlerImpl.cpp:
1793         (WebKit::WebCompositorInputHandlerImpl::WebCompositorInputHandlerImpl):
1794         (WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
1795         * src/WebCompositorInputHandlerImpl.h:
1796         (WebCompositorInputHandlerImpl):
1797         * src/WebInputEventConversion.cpp:
1798         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1799         * src/WebPopupMenuImpl.cpp:
1800         (WebKit::WebPopupMenuImpl::handleInputEvent):
1801         * src/WebViewImpl.cpp:
1802         (WebKit::WebViewImpl::handleInputEvent):
1803         * tests/WebCompositorInputHandlerImplTest.cpp:
1804
1805 2012-02-08  Nico Weber  <nicolasweber@gmx.de>
1806
1807         [chromium] Make dependency on Accelerate.framework explicit.
1808         https://bugs.webkit.org/show_bug.cgi?id=78131
1809
1810         It's used by platform/audio/mac/FFTFrameMac.cpp. The explicit
1811         dependency is needed to build a libwebkit.dylib.
1812
1813         Reviewed by Tony Chang.
1814
1815         * WebKit.gyp:
1816
1817 2012-02-08  Bernhard Bauer  <bauerb@google.com>
1818
1819         [Chromium] Don't add selection from password fields to context menu.
1820         https://bugs.webkit.org/show_bug.cgi?id=77733
1821
1822         Reviewed by Adam Barth.
1823
1824         * src/ContextMenuClientImpl.cpp:
1825         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
1826
1827 2012-02-08  Nico Weber  <nicolasweber@gmx.de>
1828
1829         [chromium] Let -Wglobal-constructors hack in shared build metastasize to mac
1830         https://bugs.webkit.org/show_bug.cgi?id=78130
1831
1832         Reviewed by Tony Chang.
1833
1834         * WebKit.gyp:
1835
1836 2012-02-08  Alexei Svitkine  <asvitkine@chromium.org>
1837
1838         Chromium: Fix Mac rubber band overhang drawing on composited pages and re-enable tests.
1839         https://bugs.webkit.org/show_bug.cgi?id=78007
1840
1841         This got broken by: http://trac.webkit.org/changeset/105470
1842         And the tests were accidentally(?) disabled in: http://trac.webkit.org/changeset/95191
1843
1844         There is still three tests that fail from the set, but the cause for these is different,
1845         which I'm still investigating.
1846
1847         Reviewed by James Robinson.
1848
1849         * src/NonCompositedContentHost.cpp:
1850         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
1851
1852 2012-02-07  James Robinson  <jamesr@chromium.org>
1853
1854         [chromium] Move geometry headers in Platform API to Platform directory
1855         https://bugs.webkit.org/show_bug.cgi?id=78067
1856
1857         Reviewed by Adam Barth.
1858
1859         Add forwarding headers for several API types moved into Platform.
1860
1861         * public/platform/WebFloatPoint.h:
1862         * public/platform/WebFloatQuad.h:
1863         * public/platform/WebFloatRect.h:
1864         * public/platform/WebPoint.h:
1865         * public/platform/WebRect.h:
1866         * public/platform/WebSize.h:
1867
1868 2012-02-07  MORITA Hajime  <morrita@google.com>
1869
1870         [Chromium] WebTextCheckingResult should have new default constructor
1871         https://bugs.webkit.org/show_bug.cgi?id=78066
1872
1873         Reviewed by Ryosuke Niwa.
1874
1875         Added a new default constructor. ex-default constructor will be removed
1876         in an upcoming change.
1877
1878         * public/WebTextCheckingResult.h:
1879         (WebKit::WebTextCheckingResult::WebTextCheckingResult):
1880         (WebTextCheckingResult):
1881
1882 2012-02-07  Gregg Tavares  <gman@google.com>
1883
1884         Plumb through webGLErrorsToConsoleEnable in WebSettings
1885         https://bugs.webkit.org/show_bug.cgi?id=78061
1886
1887         Reviewed by Kenneth Russell.
1888
1889         * public/WebSettings.h:
1890         * src/WebSettingsImpl.cpp:
1891         (WebKit::WebSettingsImpl::setWebGLErrorsToConsoleEnabled):
1892         (WebKit):
1893         * src/WebSettingsImpl.h:
1894         (WebSettingsImpl):
1895
1896 2012-02-07  Robert Kroeger  <rjkroege@chromium.org>
1897
1898         [chromium] Remove no longer necessary Chromium gesture recognizer code.
1899         https://bugs.webkit.org/show_bug.cgi?id=77492
1900
1901         Reviewed by Adam Barth.
1902
1903         * WebKit.gypi:
1904         * features.gypi:
1905         * src/WebFrameImpl.cpp:
1906         (WebKit::WebFrameImpl::createFrameView):
1907         * src/WebPopupMenuImpl.cpp:
1908         (WebKit::WebPopupMenuImpl::WebPopupMenuImpl):
1909         (WebKit::WebPopupMenuImpl::handleTouchEvent):
1910         * src/WebPopupMenuImpl.h:
1911         * src/WebViewImpl.cpp:
1912         (WebKit::WebViewImpl::WebViewImpl):
1913         (WebKit::WebViewImpl::touchEvent):
1914         * src/WebViewImpl.h:
1915         (WebCore):
1916         (WebViewImpl):
1917         * tests/InnerGestureRecognizerTest.cpp: Removed.
1918
1919 2012-02-07  David Reveman  <reveman@chromium.org>
1920
1921         [Chromium] REGRESSION(r101854): Causing large amounts of unnecessary repainting.
1922         https://bugs.webkit.org/show_bug.cgi?id=78020
1923
1924         Reviewed by James Robinson.
1925
1926         Update TextureManagerTest.requestTextureExceedingPreferredLimit test.
1927
1928         * tests/TextureManagerTest.cpp:
1929         (WTF::TextureManagerTest::requestTexture):
1930         (WTF::TEST_F):
1931
1932 2012-02-07  Dana Jansens  <danakj@chromium.org>
1933
1934         [chromium] Unit test for bug #77996
1935         https://bugs.webkit.org/show_bug.cgi?id=78019
1936
1937         Reviewed by James Robinson.
1938
1939         * tests/CCLayerTreeHostTest.cpp:
1940         (CCLayerTreeHostTestManySurfaces):
1941         (WTF::CCLayerTreeHostTestManySurfaces::CCLayerTreeHostTestManySurfaces):
1942         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
1943         (WTF::CCLayerTreeHostTestManySurfaces::afterTest):
1944         (WTF):
1945
1946 2012-02-07  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1947
1948         Process Scroll-gesture events from the compositor.
1949         https://bugs.webkit.org/show_bug.cgi?id=77477
1950
1951         Reviewed by James Robinson.
1952
1953         * src/WebCompositorInputHandlerImpl.cpp:
1954         (WebKit::WebCompositorInputHandlerImpl::WebCompositorInputHandlerImpl):
1955         (WebKit::WebCompositorInputHandlerImpl::handleInputEvent):
1956         * src/WebCompositorInputHandlerImpl.h:
1957         (WebCompositorInputHandlerImpl):
1958
1959 2012-02-07  Anders Carlsson  <andersca@apple.com>
1960
1961         ScrollableAreaSet should be moved from Page to FrameView
1962         https://bugs.webkit.org/show_bug.cgi?id=62762
1963
1964         Reviewed by Beth Dakin.
1965
1966         Update for changes to WebCore now that the scrollable area set is kept per frame view.
1967
1968         * src/ScrollbarGroup.cpp:
1969         (WebKit::ScrollbarGroup::ScrollbarGroup):
1970         (WebKit::ScrollbarGroup::~ScrollbarGroup):
1971         * src/ScrollbarGroup.h:
1972         (WebCore):
1973         (ScrollbarGroup):
1974         * src/WebPluginContainerImpl.cpp:
1975         (WebKit::WebPluginContainerImpl::scrollbarGroup):
1976
1977 2012-02-07  Hans Wennborg  <hans@chromium.org>
1978
1979         Chromium: remove WebSpeechInputResult::set
1980         https://bugs.webkit.org/show_bug.cgi?id=77977
1981
1982         Reviewed by Darin Fisher.
1983
1984         It was renamed to assign() in r106475.
1985
1986         * public/WebSpeechInputResult.h:
1987
1988 2012-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1989
1990         Unreviewed, rolling out r106935.
1991         http://trac.webkit.org/changeset/106935
1992         https://bugs.webkit.org/show_bug.cgi?id=77994
1993
1994         "Crashes runMultiThread webkit_unit_test" (Requested by tonyg-
1995         cr on #webkit).
1996
1997         * public/WebWidget.h:
1998         (WebWidget):
1999         * src/WebViewImpl.cpp:
2000         * src/WebViewImpl.h:
2001         (WebViewImpl):
2002
2003 2012-02-07  Jonathan Backer  <backer@chromium.org>
2004
2005         [chromium] Add setNeedsRedraw to WebWidget
2006         https://bugs.webkit.org/show_bug.cgi?id=77555
2007
2008         Reviewed by James Robinson.
2009
2010         * public/WebWidget.h:
2011         (WebWidget):
2012         (WebKit::WebWidget::setNeedsRedraw):
2013         * src/WebViewImpl.cpp:
2014         (WebKit::WebViewImpl::setNeedsRedraw):
2015         (WebKit):
2016         * src/WebViewImpl.h:
2017         (WebViewImpl):
2018
2019 2012-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2020
2021         Unreviewed.  Rolled DEPS.
2022
2023         * DEPS:
2024
2025 2012-02-06  James Robinson  <jamesr@chromium.org>
2026
2027         [chromium] canvas demo is slow due to unnecessary resource cleanups
2028         https://bugs.webkit.org/show_bug.cgi?id=77135
2029
2030         Reviewed by Kenneth Russell.
2031
2032         * tests/Canvas2DLayerChromiumTest.cpp:
2033         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
2034         * tests/TextureManagerTest.cpp:
2035         * tests/TiledLayerChromiumTest.cpp:
2036
2037 2012-02-06  Julien Chaffraix  <jchaffraix@webkit.org>
2038
2039         Unreviewed gardening.
2040
2041         * DEPS: Rolling the DEPS to get the apple_webkit update
2042         and fix the Chromium build.
2043
2044 2012-02-06  Emil A Eklund  <eae@chromium.org>
2045
2046         Convert PopupMenuClient::clientPadding over to new layout abstraction
2047         https://bugs.webkit.org/show_bug.cgi?id=77798
2048
2049         Reviewed by Eric Seidel.
2050
2051         Change PopupMenuClient and all classes inheriting from it to use the new
2052         layout types for padding.
2053
2054         * src/AutofillPopupMenuClient.cpp:
2055         (WebKit::AutofillPopupMenuClient::clientPaddingLeft):
2056         (WebKit::AutofillPopupMenuClient::clientPaddingRight):
2057         * src/AutofillPopupMenuClient.h:
2058         (AutofillPopupMenuClient):
2059         * tests/PopupMenuTest.cpp:
2060         (WebKit::TestPopupMenuClient::clientPaddingLeft):
2061         (WebKit::TestPopupMenuClient::clientPaddingRight):
2062
2063 2012-02-06  James Robinson  <jamesr@chromium.org>
2064
2065         [chromium] Drop tiles completely outside of layer bounds when resizing to a smaller size
2066         https://bugs.webkit.org/show_bug.cgi?id=77910
2067
2068         Reviewed by Kenneth Russell.
2069
2070         Adds test for resizing a layer to cover fewer tiles. Test hits ASSERT()s without any code changes.
2071
2072         * tests/TiledLayerChromiumTest.cpp:
2073         (::TEST):
2074
2075 2012-02-06  Ryosuke Niwa  <rniwa@webkit.org>
2076
2077         Revert r106859. It was completely bogus.
2078
2079         * src/WebViewImpl.cpp:
2080         (WebKit::WebViewImpl::doPixelReadbackToCanvas):
2081
2082 2012-02-06  Ryosuke Niwa  <rniwa@webkit.org>
2083
2084         Chromium build fix after r106836.
2085
2086         * src/WebViewImpl.cpp:
2087         (WebKit::WebViewImpl::doPixelReadbackToCanvas):
2088
2089 2012-02-06  Eric Uhrhane  <ericu@chromium.org>
2090
2091         [filesystem/Chromium] crackFileSystemURL needs to use innerURL
2092         https://bugs.webkit.org/show_bug.cgi?id=77881
2093
2094         Reviewed by Adam Barth.
2095
2096         * src/AsyncFileSystemChromium.cpp:
2097         (WebCore::AsyncFileSystem::crackFileSystemURL):
2098         Add the new code path, taken only if innerURL is present.
2099
2100 2012-02-03  James Robinson  <jamesr@chromium.org>
2101
2102         [chromium] Support detaching TextureManager from ManagedTexture
2103         https://bugs.webkit.org/show_bug.cgi?id=77655
2104
2105         Adds unit test for destroying a TextureManager while ManagedTextures are still alive referring to it.
2106
2107         Reviewed by Kenneth Russell.
2108
2109         * tests/TextureManagerTest.cpp:
2110
2111 2012-02-06  Matthew Delaney  <mdelaney@apple.com>
2112
2113         toDataURL() uses stale data after putImageData()
2114         https://bugs.webkit.org/show_bug.cgi?id=65767
2115
2116         Reviewed by Chris Marrin.
2117
2118         * src/WebViewImpl.cpp: Updated method name.
2119         (WebKit::WebViewImpl::doPixelReadbackToCanvas):
2120
2121 2012-02-06  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2122
2123         Provide more attribute methods in Element
2124         https://bugs.webkit.org/show_bug.cgi?id=77800
2125
2126         Reviewed by Ryosuke Niwa.
2127
2128         * src/WebPageSerializerImpl.cpp:
2129         (WebKit::WebPageSerializerImpl::openTagToString): access attributes via Element interface.
2130
2131 2012-02-04  Shawn Singh  <shawnsingh@chromium.org>
2132
2133         [chromium] Add support to force full damage in CCDamageTracker
2134         https://bugs.webkit.org/show_bug.cgi?id=76805
2135
2136         Reviewed by James Robinson.
2137
2138         * tests/CCDamageTrackerTest.cpp:
2139         (WebKitTests::TEST_F):
2140         (WebKitTests):
2141
2142 2012-02-03  James Robinson  <jamesr@chromium.org>
2143
2144         [chromium] Defer makeContextCurrent in compositor until first frame
2145         https://bugs.webkit.org/show_bug.cgi?id=77269
2146
2147         Reviewed by Kenneth Russell.
2148
2149         * tests/CCLayerTreeHostTest.cpp:
2150         (WTF::CCLayerTreeHostTestSetViewportSize::beginTest):
2151         * tests/TiledLayerChromiumTest.cpp:
2152         (WTF::TEST):
2153
2154 2012-02-03  Beth Dakin  <bdakin@apple.com>
2155
2156         https://bugs.webkit.org/show_bug.cgi?id=77691
2157         Fix PlatformScreen layering violation and PlatformScreenMac's incorrect use 
2158         of device scale
2159
2160         Reviewed by Andy Estes.
2161
2162         These two functions now take a Widget again rather than a FrameView.
2163         * src/PlatformSupport.cpp:
2164         (WebCore::PlatformSupport::screenRect):
2165         (WebCore::PlatformSupport::screenAvailableRect):
2166
2167 2012-02-03  John Knottenbelt  <jknotten@chromium.org>
2168
2169         [skia] Fix unit test PlatformContextSkiaTest.trackOpaqueOvalTest
2170         https://bugs.webkit.org/show_bug.cgi?id=77738
2171
2172         We need to clear the bitmap before the test runs, otherwise the
2173         contents of the bitmap will be uninitialised. This causes an
2174         unpredicatable result as the canvas draw operations blend the
2175         destination bitmap with the source colour.
2176
2177         Similarly, valgrind discovered that
2178         PlatformContextSkiaTest.trackOpaqueTest and
2179         PlatformContextSkiaTest.trackOpaqueLineTest suffers from the same
2180         problem.
2181
2182         Also, re-enable WebFrameTest.FindInPage which was falsely
2183         blamed for making this test fail.
2184
2185         Reviewed by Stephen White.
2186
2187         * tests/PlatformContextSkiaTest.cpp:
2188         (WebCore::TEST):
2189         * tests/WebFrameTest.cpp:
2190         (WebKit::TEST_F):
2191
2192 2012-02-03  Dana Jansens  <danakj@chromium.org>
2193
2194         [Chromium] Use the current clip when marking paints as opaque
2195         https://bugs.webkit.org/show_bug.cgi?id=77582
2196
2197         Reviewed by Stephen White.
2198
2199         * tests/PlatformContextSkiaTest.cpp:
2200         (WebCore::TEST):
2201         (WebCore):
2202
2203 2012-02-03  Yury Semikhatsky  <yurys@chromium.org>
2204
2205         Unreviewed. Update Chromium deps.
2206
2207         * DEPS:
2208
2209 2012-02-02  Tommy Widenflycht  <tommyw@google.com>
2210
2211         [chromium] MediaStream API: Adding the embedding code for MediaStreamCenter
2212         https://bugs.webkit.org/show_bug.cgi?id=73130
2213
2214         Reviewed by Darin Fisher.
2215
2216         * WebKit.gyp:
2217         * bridge/MediaStreamCenter.cpp: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h.
2218         (WebCore):
2219         (WebCore::MediaStreamCenter::MediaStreamCenter):
2220         (WebCore::MediaStreamCenter::~MediaStreamCenter):
2221         (WebCore::MediaStreamCenter::queryMediaStreamSources):
2222         (WebCore::MediaStreamCenter::didSetMediaStreamTrackEnabled):
2223         (WebCore::MediaStreamCenter::didStopLocalMediaStream):
2224         (WebCore::MediaStreamCenter::didConstructMediaStream):
2225         * bridge/MediaStreamCenterInternal.cpp: Added.
2226         (WebCore):
2227         (WebCore::MediaStreamCenterInternal::MediaStreamCenterInternal):
2228         (WebCore::MediaStreamCenterInternal::~MediaStreamCenterInternal):
2229         (WebCore::MediaStreamCenterInternal::queryMediaStreamSources):
2230         (WebCore::MediaStreamCenterInternal::didSetMediaStreamTrackEnabled):
2231         (WebCore::MediaStreamCenterInternal::didStopLocalMediaStream):
2232         (WebCore::MediaStreamCenterInternal::didConstructMediaStream):
2233         (WebCore::MediaStreamCenterInternal::stopLocalMediaStream):
2234         * bridge/MediaStreamCenterInternal.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h.
2235         (WebKit):
2236         (WebCore):
2237         (MediaStreamCenterInternal):
2238         * public/platform/WebKitPlatformSupport.h:
2239         (WebKit):
2240         (WebKit::WebKitPlatformSupport::createMediaStreamCenter):
2241         * public/platform/WebMediaStreamCenter.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h.
2242         (WebKit):
2243         (WebMediaStreamCenter):
2244         (WebKit::WebMediaStreamCenter::~WebMediaStreamCenter):
2245         * public/platform/WebMediaStreamCenterClient.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h.
2246         (WebKit):
2247         (WebMediaStreamCenterClient):
2248         (WebKit::WebMediaStreamCenterClient::~WebMediaStreamCenterClient):
2249         * public/platform/WebMediaStreamComponent.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h.
2250         (WebCore):
2251         (WebKit):
2252         (WebMediaStreamComponent):
2253         (WebKit::WebMediaStreamComponent::WebMediaStreamComponent):
2254         (WebKit::WebMediaStreamComponent::~WebMediaStreamComponent):
2255         (WebKit::WebMediaStreamComponent::isNull):
2256         * public/platform/WebMediaStreamDescriptor.h:
2257         (WebKit):
2258         (WebMediaStreamDescriptor):
2259         * public/platform/WebMediaStreamSourcesRequest.h: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h.
2260         (WebCore):
2261         (WebKit):
2262         (WebMediaStreamSourcesRequest):
2263         (WebKit::WebMediaStreamSourcesRequest::WebMediaStreamSourcesRequest):
2264         (WebKit::WebMediaStreamSourcesRequest::~WebMediaStreamSourcesRequest):
2265         (WebKit::WebMediaStreamSourcesRequest::isNull):
2266         * src/UserMediaClientImpl.h:
2267         (UserMediaClientImpl):
2268         * src/WebMediaStreamComponent.cpp: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h.
2269         (WebKit):
2270         (WebKit::WebMediaStreamComponent::WebMediaStreamComponent):
2271         (WebKit::WebMediaStreamComponent::operator=):
2272         (WebKit::WebMediaStreamComponent::reset):
2273         (WebKit::WebMediaStreamComponent::operator PassRefPtr<MediaStreamComponent>):
2274         (WebKit::WebMediaStreamComponent::operator MediaStreamComponent*):
2275         (WebKit::WebMediaStreamComponent::isEnabled):
2276         (WebKit::WebMediaStreamComponent::source):
2277         * src/WebMediaStreamDescriptor.cpp:
2278         (WebKit::WebMediaStreamDescriptor::WebMediaStreamDescriptor):
2279         (WebKit):
2280         (WebKit::WebMediaStreamDescriptor::audioSources):
2281         (WebKit::WebMediaStreamDescriptor::videoSources):
2282         * src/WebMediaStreamSourcesRequest.cpp: Copied from Source/WebKit/chromium/src/UserMediaClientImpl.h.
2283         (WebKit):
2284         (WebKit::WebMediaStreamSourcesRequest::WebMediaStreamSourcesRequest):
2285         (WebKit::WebMediaStreamSourcesRequest::reset):
2286         (WebKit::WebMediaStreamSourcesRequest::audio):
2287         (WebKit::WebMediaStreamSourcesRequest::video):
2288         (WebKit::WebMediaStreamSourcesRequest::didCompleteQuery):
2289
2290 2012-02-02  Sheriff Bot  <webkit.review.bot@gmail.com>
2291
2292         Unreviewed.  Rolled DEPS.
2293
2294         * DEPS:
2295
2296 2012-02-02  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
2297
2298         Update enum name for HitTestRequest::RequestType
2299         https://bugs.webkit.org/show_bug.cgi?id=77620
2300
2301         Reviewed by Kenneth Rohde Christiansen.
2302
2303         * src/WebFrameImpl.cpp:
2304         (WebKit::WebFrameImpl::visiblePositionForWindowPoint):
2305
2306 2012-02-02  Kinuko Yasuda  <kinuko@chromium.org>
2307
2308         Cleanup: Move chrome-specific filesystem type handling code (for FileSystem API) under chromium directory (re-landing r105395)
2309         https://bugs.webkit.org/show_bug.cgi?id=76551
2310
2311         * src/AssertMatchingEnums.cpp: Removed the matching assertion for AsyncFileSystem::External (as now we directly use WebFileSystem::TypeExternal).
2312         * src/AsyncFileSystemChromium.cpp:
2313         (WebCore::AsyncFileSystem::crackFileSystemURL): Added.
2314         (WebCore::AsyncFileSystem::isValidType): Added.
2315         (WebCore::AsyncFileSystemChromium::toURL): Added.
2316         * src/AsyncFileSystemChromium.h:
2317         (AsyncFileSystemChromium):
2318         * src/WorkerAsyncFileSystemChromium.cpp: Made this subclass of AsyncFileSystemChromium (rather than that of AsyncFileSystem)
2319         (WebCore::WorkerAsyncFileSystemChromium::WorkerAsyncFileSystemChromium):
2320         * src/WorkerAsyncFileSystemChromium.h:
2321         (WorkerAsyncFileSystemChromium):
2322
2323 2012-02-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2324
2325         Avoid creating NamedNodeMap unnecessarily
2326         https://bugs.webkit.org/show_bug.cgi?id=77574
2327
2328         Reviewed by Ryosuke Niwa.
2329
2330         * src/WebPageSerializerImpl.cpp:
2331         (WebKit::WebPageSerializerImpl::openTagToString): use updatedAttributes().
2332
2333 2012-02-01  Justin Novosad  <junov@chromium.org>
2334
2335         [Chromium] Enable deferred canvas rendering in the skia port
2336         https://bugs.webkit.org/show_bug.cgi?id=76732
2337
2338         Reviewed by Stephen White.
2339
2340         Adding a new setting for enabling deferred 2d canvas rendering
2341
2342         * public/WebSettings.h:
2343         * src/WebSettingsImpl.cpp:
2344         (WebKit::WebSettingsImpl::setDeferred2dCanvasEnabled):
2345         (WebKit):
2346         * src/WebSettingsImpl.h:
2347         (WebSettingsImpl):
2348
2349 2012-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2350
2351         Unreviewed, rolling out r106382.
2352         http://trac.webkit.org/changeset/106382
2353         https://bugs.webkit.org/show_bug.cgi?id=77571
2354
2355         Causing chromium crashes in PNGImageDecoder (Requested by
2356         japhet on #webkit).
2357
2358         * public/platform/WebKitPlatformSupport.h:
2359         (WebKitPlatformSupport):
2360         (WebKit::WebKitPlatformSupport::isTraceEventEnabled):
2361         (WebKit::WebKitPlatformSupport::traceEventBegin):
2362         (WebKit::WebKitPlatformSupport::traceEventEnd):
2363         * src/PlatformSupport.cpp:
2364         (WebCore::PlatformSupport::isTraceEventEnabled):
2365         (WebCore):
2366         (WebCore::PlatformSupport::traceEventBegin):
2367         (WebCore::PlatformSupport::traceEventEnd):
2368
2369 2012-02-01  Dirk Pranke  <dpranke@chromium.org>
2370
2371         TestWebKitAPI isn't being built on chromium bots any more
2372         https://bugs.webkit.org/show_bug.cgi?id=77563
2373
2374         Reviewed by Dimitri Glazkov.
2375
2376         I accidentally dropped it in the refactoring in r105449.
2377
2378         * All.gyp:
2379
2380 2012-02-01  Hans Wennborg  <hans@chromium.org>
2381
2382         Rename WebSpeechInputResult::set() to assign()
2383         https://bugs.webkit.org/show_bug.cgi?id=77540
2384
2385         Reviewed by Darin Fisher.
2386
2387         It was suggested in a previous code review
2388         (https://bugs.webkit.org/show_bug.cgi?id=77083#c5)
2389         that this function should be called assign().
2390
2391         * public/WebSpeechInputResult.h:
2392         (WebSpeechInputResult):
2393         (WebKit::WebSpeechInputResult::set):
2394         * src/WebSpeechInputResult.cpp:
2395         (WebKit::WebSpeechInputResult::assign):
2396
2397 2012-02-01  Kent Tamura  <tkent@chromium.org>
2398
2399         [Chromium] Disable WebFrameTest.FindInPage
2400         https://bugs.webkit.org/show_bug.cgi?id=77186
2401
2402         Disable it because PlatformContextSkiaTest.trackOpaqueOvalTest has
2403         been failing since FindInPage test was committed.
2404
2405         * tests/WebFrameTest.cpp:
2406         (WebKit::TEST_F):
2407
2408 2012-01-31  Ami Fischman  <fischman@chromium.org>
2409
2410         [chromium] enable -Wexit-time-destructors for webkit unit tests
2411         https://bugs.webkit.org/show_bug.cgi?id=77300
2412         Fix the only extant violation (verified by building webkit_unit_tests in static build).
2413
2414         Reviewed by Tony Chang.
2415
2416         * WebKitUnitTests.gyp:
2417         * tests/FrameTestHelpers.cpp:
2418         (WebKit::FrameTestHelpers::defaultWebFrameClient):
2419         (WebKit::FrameTestHelpers::defaultWebViewClient):
2420
2421 2012-01-31  Nico Weber  <thakis@chromium.org>
2422
2423         [chromium] Expose windowResizerRectChanged() on WebWidget.
2424         https://bugs.webkit.org/show_bug.cgi?id=77453
2425
2426         Needed for http://crbug.com/111266
2427
2428         Reviewed by Darin Fisher.
2429
2430         * public/WebWidget.h:
2431         (WebWidget):
2432         (WebKit::WebWidget::didChangeWindowResizerRect):
2433         * src/WebViewImpl.cpp:
2434         (WebKit::WebViewImpl::didChangeWindowResizerRect):
2435         (WebKit):
2436         * src/WebViewImpl.h:
2437         (WebViewImpl):
2438
2439 2012-01-31  Nat Duca  <nduca@chromium.org>
2440
2441         [chromium] Import PaintAggregator
2442         https://bugs.webkit.org/show_bug.cgi?id=53715
2443
2444         Reviewed by Darin Fisher.
2445
2446         * WebKit.gyp:
2447         * WebKit.gypi:
2448         * src/painting/PaintAggregator.cpp: Added.
2449         (WebKit::calculateArea):
2450         (WebKit::subtractIntersection):
2451         (WebKit::sharesEdge):
2452         (WebKit::PaintAggregator::PendingUpdate::PendingUpdate):
2453         (WebKit::PaintAggregator::PendingUpdate::~PendingUpdate):
2454         (WebKit::PaintAggregator::PendingUpdate::calculateScrollDamage):
2455         (WebKit::PaintAggregator::PendingUpdate::calculatePaintBounds):
2456         (WebKit::PaintAggregator::hasPendingUpdate):
2457         (WebKit::PaintAggregator::clearPendingUpdate):
2458         (WebKit::PaintAggregator::popPendingUpdate):
2459         (WebKit::PaintAggregator::invalidateRect):
2460         (WebKit::PaintAggregator::scrollRect):
2461         (WebKit::PaintAggregator::scrollPaintRect):
2462         (WebKit::PaintAggregator::shouldInvalidateScrollRect):
2463         (WebKit::PaintAggregator::invalidateScrollRect):
2464         (WebKit::PaintAggregator::combinePaintRects):
2465         * src/painting/PaintAggregator.h: Added.
2466         * tests/PaintAggregatorTest.cpp: Added.
2467         (WebKit::TEST):
2468
2469 2012-01-31  Fady Samuel  <fsamuel@chromium.org>
2470
2471         [Chromium] ChromeClientImpl::dispatchViewportPropertiesDidChange is repeatedly called in Google News
2472         https://bugs.webkit.org/show_bug.cgi?id=77429
2473
2474         Reviewed by Darin Fisher.
2475
2476         m_webView->isPageScaleFactorSet() is tested in ChromeClientImpl::layoutUpdated, and it is never true, 
2477         because WebViewImpl::setPageScaleFactorPreservingScrollOffset is called repeatedly and exits early 
2478         and thus never calls WebViewImpl::setPageScaleFactor which sets the flag.
2479         
2480         The simplest solution is to simply get rid of the early return in 
2481         WebViewImpl::setPageScaleFactorPreservingScrollOffset.
2482
2483         * src/WebViewImpl.cpp:
2484         (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset):
2485
2486 2012-01-31  Fady Samuel  <fsamuel@chromium.org>
2487
2488         [Chromium] Expose setLayoutFallbackWidth as a WebSetting
2489         https://bugs.webkit.org/show_bug.cgi?id=77431
2490
2491         Reviewed by Darin Fisher.
2492
2493         The layout fallback width is the default fixed layout width
2494         set for desktop web pages that lack a viewport tag. This width
2495         can vary from platform to platform and can depend on other factors,
2496         and so it should be a setting exposed to Chromium.
2497
2498         * public/WebSettings.h:
2499         ():
2500         * src/WebSettingsImpl.cpp:
2501         (WebKit::WebSettingsImpl::setLayoutFallbackWidth):
2502         (WebKit):
2503         * src/WebSettingsImpl.h:
2504         (WebSettingsImpl):
2505
2506 2012-01-31  Dana Jansens  <danakj@chromium.org>
2507
2508         [chromium] Compute occlusion during paint loop
2509         https://bugs.webkit.org/show_bug.cgi?id=76858
2510
2511         Reviewed by James Robinson.
2512
2513         * tests/CCLayerTreeHostCommonTest.cpp:
2514         (WebCore::TEST):
2515         (WebCore):
2516         * tests/CCLayerTreeHostTest.cpp:
2517         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
2518         (WTF):
2519         (TestLayerChromium):
2520         (WTF::TestLayerChromium::create):
2521         (WTF::TestLayerChromium::paintContentsIfDirty):
2522         (WTF::TestLayerChromium::drawsContent):
2523         (WTF::TestLayerChromium::occludedScreenSpace):
2524         (WTF::TestLayerChromium::clearOccludedScreenSpace):
2525         (WTF::TestLayerChromium::TestLayerChromium):
2526         (WTF::setLayerPropertiesForTesting):
2527         (CCLayerTreeHostTestLayerOcclusion):
2528         (WTF::CCLayerTreeHostTestLayerOcclusion::CCLayerTreeHostTestLayerOcclusion):
2529         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
2530         (WTF::CCLayerTreeHostTestLayerOcclusion::afterTest):
2531         * tests/Canvas2DLayerChromiumTest.cpp:
2532         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
2533         * tests/TiledLayerChromiumTest.cpp:
2534         (WTF::FakeLayerTextureUpdater::setOpaquePaintRect):
2535         (FakeLayerTextureUpdater):
2536         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
2537         (WTF::FakeLayerTextureUpdater::prepareToUpdate):
2538         (WTF::TEST):
2539         (WTF):
2540
2541 2012-01-31  John Bates  <jbates@google.com>
2542
2543         [Chromium] Add chromium-style tracing support
2544         https://bugs.webkit.org/show_bug.cgi?id=76885
2545
2546         Reviewed by Darin Fisher.
2547
2548         This code enables WebKit trace events to pass through more data to the
2549         chromium platform tracing API and generally to use the full tracing
2550         API provided by chromium.
2551
2552         * public/platform/WebKitPlatformSupport.h:
2553         (WebKit::WebKitPlatformSupport::getTraceCategoryEnabledFlag):
2554         (WebKit::WebKitPlatformSupport::addTraceEvent):
2555         * src/PlatformSupport.cpp:
2556         (WebCore::PlatformSupport::getTraceCategoryEnabledFlag):
2557         (WebCore::PlatformSupport::addTraceEvent):
2558
2559 2012-01-31  Antoine Labour  <piman@chromium.org>
2560
2561         Add back temporarily WebKitPlatformSupport::createGraphicsContext3D() to fix build
2562         https://bugs.webkit.org/show_bug.cgi?id=77467
2563
2564         Rubber-stamped by Nate Chapin <japhet@chromium.org>.
2565
2566         * public/platform/WebKitPlatformSupport.h:
2567         (WebKitPlatformSupport):
2568         (WebKit::WebKitPlatformSupport::createGraphicsContext3D):
2569
2570 2012-01-31  Antoine Labour  <piman@chromium.org>
2571
2572         Merge WebGraphicsContext3D creation and initialization, and move it to
2573         WebViewClient.
2574         https://bugs.webkit.org/show_bug.cgi?id=76593
2575
2576         Reviewed by Darin Fisher.
2577
2578         * public/WebViewClient.h:
2579         (WebKit::WebViewClient::createGraphicsContext3D):
2580         * public/platform/WebGraphicsContext3D.h:
2581         (WebKit::WebGraphicsContext3D::initialize):
2582         * public/platform/WebKitPlatformSupport.h:
2583         * src/GraphicsContext3DChromium.cpp:
2584
2585 2012-01-26  Hans Wennborg  <hans@chromium.org>
2586
2587         Speech Input: move MockSpeechInputClient into Chromium DumpRenderTree implementation
2588         https://bugs.webkit.org/show_bug.cgi?id=77083
2589
2590         Reviewed by Darin Fisher.
2591
2592         Remove the WebSpeechInputControllerMock interface and proxy
2593         implementation. The mock is moving to the DumpRenderTree
2594         implementation instead, which removes the need to expose this
2595         interface in the WebKit API.
2596
2597         Also add a proper copy constructor for WebSpeechInputResult.
2598         The default one doesn't do a proper copy.
2599
2600         * WebKit.gyp:
2601         * public/WebSpeechInputControllerMock.h: Removed.
2602         * public/WebSpeechInputResult.h:
2603         (WebKit::WebSpeechInputResult::WebSpeechInputResult):
2604         (WebSpeechInputResult):
2605         * src/WebSpeechInputControllerMockImpl.cpp: Removed.
2606         * src/WebSpeechInputControllerMockImpl.h: Removed.
2607         * src/WebSpeechInputResult.cpp:
2608         (WebKit::WebSpeechInputResult::set):
2609         (WebKit):
2610
2611 2012-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2612
2613         Unreviewed.  Rolled DEPS.
2614
2615         * DEPS:
2616
2617 2012-01-30  Sheriff Bot  <webkit.review.bot@gmail.com>
2618
2619         Unreviewed, rolling out r106324.
2620         http://trac.webkit.org/changeset/106324
2621         https://bugs.webkit.org/show_bug.cgi?id=77406
2622
2623         Broke CCLayerTreeHostTestLayerOcclusion.runMultiThread and
2624         runSingleThread (Requested by yuzo1 on #webkit).
2625
2626         * tests/CCLayerTreeHostCommonTest.cpp:
2627         (WebCore):
2628         * tests/CCLayerTreeHostTest.cpp:
2629         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
2630         * tests/Canvas2DLayerChromiumTest.cpp:
2631         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
2632         * tests/TiledLayerChromiumTest.cpp:
2633         (FakeLayerTextureUpdater):
2634         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
2635         (WTF::FakeLayerTextureUpdater::prepareToUpdate):
2636
2637 2012-01-30  Dana Jansens  <danakj@chromium.org>
2638
2639         [chromium] Compute occlusion during paint loop
2640         https://bugs.webkit.org/show_bug.cgi?id=76858
2641
2642         Reviewed by James Robinson.
2643
2644         * tests/CCLayerTreeHostCommonTest.cpp:
2645         (WebCore::TEST):
2646         (WebCore):
2647         * tests/CCLayerTreeHostTest.cpp:
2648         (WTF::ContentLayerChromiumWithUpdateTracking::paintContentsIfDirty):
2649         (WTF):
2650         (TestLayerChromium):
2651         (WTF::TestLayerChromium::create):
2652         (WTF::TestLayerChromium::paintContentsIfDirty):
2653         (WTF::TestLayerChromium::drawsContent):
2654         (WTF::TestLayerChromium::occludedScreenSpace):
2655         (WTF::TestLayerChromium::clearOccludedScreenSpace):
2656         (WTF::TestLayerChromium::TestLayerChromium):
2657         (WTF::setLayerPropertiesForTesting):
2658         (CCLayerTreeHostTestLayerOcclusion):
2659         (WTF::CCLayerTreeHostTestLayerOcclusion::CCLayerTreeHostTestLayerOcclusion):
2660         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
2661         (WTF::CCLayerTreeHostTestLayerOcclusion::afterTest):
2662         * tests/Canvas2DLayerChromiumTest.cpp:
2663         (WebCore::Canvas2DLayerChromiumTest::fullLifecycleTest):
2664         * tests/TiledLayerChromiumTest.cpp:
2665         (WTF::FakeLayerTextureUpdater::setOpaquePaintRect):
2666         (FakeLayerTextureUpdater):
2667         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
2668         (WTF::FakeLayerTextureUpdater::prepareToUpdate):
2669         (WTF::TEST):
2670         (WTF):
2671
2672 2012-01-30  Gregg Tavares  <gman@google.com>
2673
2674         Add Plumming to get graphics error messages to JS Console
2675         https://bugs.webkit.org/show_bug.cgi?id=77238
2676
2677         Reviewed by Kenneth Russell.
2678
2679         * public/platform/WebGraphicsContext3D.h:
2680         (WebGraphicsErrorMessageCallback):
2681         (WebKit::WebGraphicsContext3D::WebGraphicsErrorMessageCallback::~WebGraphicsErrorMessageCallback):
2682         (WebGraphicsContext3D):
2683         (WebKit::WebGraphicsContext3D::setErrorMessageCallback):
2684         * src/GraphicsContext3DChromium.cpp:
2685         (WebCore::GraphicsContext3D::~GraphicsContext3D):
2686         (WebCore):
2687         (GraphicsErrorMessageCallbackAdapter):
2688         (WebCore::GraphicsErrorMessageCallbackAdapter::~GraphicsErrorMessageCallbackAdapter):
2689         (WebCore::GraphicsErrorMessageCallbackAdapter::GraphicsErrorMessageCallbackAdapter):
2690         (WebCore::GraphicsErrorMessageCallbackAdapter::onErrorMessage):
2691         (WebCore::GraphicsErrorMessageCallbackAdapter::create):
2692         (WebCore::GraphicsContext3DPrivate::setErrorMessageCallback):
2693         * src/GraphicsContext3DPrivate.h:
2694         (WebCore):
2695         ():
2696
2697 2012-01-30  Sheriff Bot  <webkit.review.bot@gmail.com>
2698
2699         Unreviewed, rolling out r106259.
2700         http://trac.webkit.org/changeset/106259
2701         https://bugs.webkit.org/show_bug.cgi?id=77395
2702
2703         Breaks shared builders as they also build webkittests with
2704         -Wexit-time-destructors. (Requested by leviw on #webkit).
2705
2706         * WebKitUnitTests.gyp:
2707
2708 2012-01-30  Dana Jansens  <danakj@chromium.org>
2709
2710         [chromium] Use region reported painted opaque for draw culling
2711         https://bugs.webkit.org/show_bug.cgi?id=76015
2712
2713         Reviewed by James Robinson.
2714
2715         * tests/CCLayerTreeHostImplTest.cpp:
2716         (WebKit::BlendStateCheckLayer::appendQuads):
2717         (WebKit::BlendStateCheckLayer::setOpaqueColor):
2718         (BlendStateCheckLayer):
2719         (WebKit::BlendStateCheckLayer::BlendStateCheckLayer):
2720         (WebKit::TEST_F):
2721         * tests/CCQuadCullerTest.cpp:
2722         (WebCore::MakeTileQuad):
2723         (WebCore::setQuads):
2724         (WebCore::TEST):
2725         (WebCore):
2726         * tests/CCTiledLayerImplTest.cpp:
2727         (CCLayerTestCommon::createLayer):
2728         (CCLayerTestCommon::TEST):
2729         (CCLayerTestCommon::getQuads):
2730         (CCLayerTestCommon::coverageVisibleRectOnTileBoundaries):
2731         (CCLayerTestCommon::coverageVisibleRectIntersectsTiles):
2732         (CCLayerTestCommon::coverageVisibleRectIntersectsBounds):
2733         (CCLayerTestCommon):
2734
2735 2012-01-30  Adrienne Walker  <enne@google.com>
2736
2737         [chromium] Always pre-reserve scrollbar and scroll corner textures
2738         https://bugs.webkit.org/show_bug.cgi?id=77251
2739
2740         Reviewed by James Robinson.
2741
2742         * src/NonCompositedContentHost.cpp:
2743         (WebKit::reserveScrollbarLayers):
2744         (WebKit):
2745         (WebKit::NonCompositedContentHost::setViewport):
2746
2747 2012-01-30  Ryosuke Niwa  <rniwa@webkit.org>
2748
2749         Roll Chromium DEPS from 119623 to 119700.
2750
2751         * DEPS:
2752
2753 2012-01-30  Beth Dakin  <bdakin@apple.com>
2754
2755         https://bugs.webkit.org/show_bug.cgi?id=77263
2756         PlatformScreenMac should not rely on NSWindow for important bits of data
2757
2758         Reviewed by Geoff Garen.
2759
2760         These two functions now take a FrameView instead of a Widget.
2761         * src/PlatformSupport.cpp:
2762         (WebCore::PlatformSupport::screenRect):
2763         (WebCore::PlatformSupport::screenAvailableRect):
2764
2765 2012-01-30  Ami Fischman  <fischman@chromium.org>
2766
2767         [chromium] enable -Wexit-time-destructors for webkit unit tests
2768         https://bugs.webkit.org/show_bug.cgi?id=77300
2769
2770         Reviewed by Tony Chang.
2771
2772         * WebKitUnitTests.gyp: Enable clang check for exit time destructors.
2773
2774 2012-01-30  Tommy Widenflycht  <tommyw@google.com>
2775
2776         [chromium] MediaStream API: Fix a few memory leaks
2777         https://bugs.webkit.org/show_bug.cgi?id=77334
2778
2779         Reviewed by Darin Fisher.
2780
2781         It seems that either the behaviour of WebPrivatePtr has changed or I misunderstood
2782         something, but I fixed a memory leak in WebMediaStreamDescriptor and safeguarded
2783         WebMediaStreamSource.
2784
2785         * public/platform/WebMediaStreamDescriptor.h:
2786         (WebKit::WebMediaStreamDescriptor::WebMediaStreamDescriptor):
2787         * public/platform/WebMediaStreamSource.h:
2788         (WebKit::WebMediaStreamSource::WebMediaStreamSource):
2789         (WebKit::WebMediaStreamSource::operator=):
2790         (WebMediaStreamSource):
2791         * src/WebMediaStreamDescriptor.cpp:
2792         (WebKit::WebMediaStreamDescriptor::assign):
2793         * src/WebMediaStreamSource.cpp:
2794         (WebKit::WebMediaStreamSource::assign):
2795         (WebKit):
2796
2797 2012-01-30  Jochen Eisinger  <jochen@chromium.org>
2798
2799         [chromium] remove exit time destructors from TextureManagerTest
2800         https://bugs.webkit.org/show_bug.cgi?id=77333
2801
2802         Reviewed by Tony Gentilcore.
2803
2804         Non-trivial, global objects require an at-exit time destructor which add
2805         unnecessary complexity and delays to shutdown.
2806
2807         * tests/FakeCCLayerTreeHostClient.h: added newline at EOF
2808         * tests/TextureManagerTest.cpp:
2809         (WTF::FakeTextureAllocator::~FakeTextureAllocator):
2810         (TextureManagerTest):
2811         (WTF::TextureManagerTest::TextureManagerTest):
2812         (WTF::TextureManagerTest::~TextureManagerTest):
2813         (WTF::TextureManagerTest::texturesMemorySize):
2814         (WTF::TextureManagerTest::createTextureManager):
2815         (WTF::TextureManagerTest::requestTexture):
2816         (WTF::TEST_F):
2817
2818 2012-01-30  Hans Wennborg  <hans@chromium.org>
2819
2820         Unreviewed, rolling out r106219.
2821         http://trac.webkit.org/changeset/106219
2822         https://bugs.webkit.org/show_bug.cgi?id=77083
2823
2824         This broke Chromium's test_shell.
2825
2826         * WebKit.gyp:
2827         * public/WebSpeechInputControllerMock.h: Added.
2828         (WebKit):
2829         (WebSpeechInputControllerMock):
2830         (WebKit::WebSpeechInputControllerMock::~WebSpeechInputControllerMock):
2831         * public/WebSpeechInputResult.h:
2832         (WebSpeechInputResult):
2833         * src/WebSpeechInputControllerMockImpl.cpp: Added.
2834         (WebKit):
2835         (WebKit::WebSpeechInputControllerMock::create):
2836         (WebKit::WebSpeechInputControllerMockImpl::WebSpeechInputControllerMockImpl):
2837         (WebKit::WebSpeechInputControllerMockImpl::~WebSpeechInputControllerMockImpl):
2838         (WebKit::WebSpeechInputControllerMockImpl::addMockRecognitionResult):
2839         (WebKit::WebSpeechInputControllerMockImpl::clearResults):
2840         (WebKit::WebSpeechInputControllerMockImpl::didCompleteRecording):
2841         (WebKit::WebSpeechInputControllerMockImpl::didCompleteRecognition):
2842         (WebKit::WebSpeechInputControllerMockImpl::setRecognitionResult):
2843         (WebKit::WebSpeechInputControllerMockImpl::startRecognition):
2844         (WebKit::WebSpeechInputControllerMockImpl::cancelRecognition):
2845         (WebKit::WebSpeechInputControllerMockImpl::stopRecording):
2846         * src/WebSpeechInputControllerMockImpl.h: Added.
2847         (WebCore):
2848         (WebKit):
2849         (WebSpeechInputControllerMockImpl):
2850         * src/WebSpeechInputResult.cpp:
2851
2852 2012-01-26  Hans Wennborg  <hans@chromium.org>
2853
2854         Speech Input: move MockSpeechInputClient into Chromium DumpRenderTree implementation
2855         https://bugs.webkit.org/show_bug.cgi?id=77083
2856
2857         Reviewed by Darin Fisher.
2858
2859         Remove the WebSpeechInputControllerMock interface and proxy
2860         implementation. The mock is moving to the DumpRenderTree
2861         implementation instead, which removes the need to expose this
2862         interface in the WebKit API.
2863
2864         Also add a proper copy constructor for WebSpeechInputResult.
2865         The default one doesn't do a proper copy.
2866
2867         * WebKit.gyp:
2868         * public/WebSpeechInputControllerMock.h: Removed.
2869         * public/WebSpeechInputResult.h:
2870         (WebKit::WebSpeechInputResult::WebSpeechInputResult):
2871         (WebSpeechInputResult):
2872         * src/WebSpeechInputControllerMockImpl.cpp: Removed.
2873         * src/WebSpeechInputControllerMockImpl.h: Removed.
2874         * src/WebSpeechInputResult.cpp:
2875         (WebKit::WebSpeechInputResult::set):
2876         (WebKit):
2877
2878 2012-01-29  Kent Tamura  <tkent@chromium.org>
2879
2880         [Chromium] REGRESSION(r87067): WebFrame::setFindEndstateFocusAndSelection()
2881         doesn't set the selection for <input> and <textarea>
2882         https://bugs.webkit.org/show_bug.cgi?id=77186
2883
2884         Reviewed by Hajime Morita.
2885
2886         When the find-in-page box is closed, WebFrame::stopFinding(false) is
2887         called. It calls setFindEndstateFocusAndSelection(). Before r87067,
2888         m_activeMatch was stored as the normal selection in <input> or
2889         <textarea> by accident. r87067 stopped this accidental behavior.
2890
2891         However the behavior of pre-r87067 is useful and we should support it
2892         for contentEditable elements too.
2893
2894         * src/WebFrameImpl.cpp:
2895         (WebKit::WebFrameImpl::setFindEndstateFocusAndSelection):
2896         - Add special handing for <input> and <textarea> to find a focusable parent.
2897         - Sets the active match as the selection even if a focusable parent is found.
2898         * tests/WebFrameTest.cpp:
2899         (WebKit::TEST_F): Add tests for find() and stopFinding().
2900         * tests/data/find.html: Added.
2901
2902 2012-01-29  Nico Weber  <nicolasweber@gmx.de>
2903
2904         [chromium/mac] Fix two-finger scrolling
2905         https://bugs.webkit.org/show_bug.cgi?id=77316
2906
2907         http://trac.webkit.org/changeset/106021/trunk changed the phase enums
2908         to match AppKit. This changes WebMouseWheelEvent accordingly.
2909
2910         No tests, because DRT doesn't support synthetic scroll events with
2911         event phases.
2912
2913         Reviewed by Anders Carlsson.
2914
2915         * public/WebInputEvent.h:
2916         * src/mac/WebInputEventFactory.mm:
2917
2918 2012-01-28  Sheriff Bot  <webkit.review.bot@gmail.com>
2919
2920         Unreviewed.  Rolled DEPS.
2921
2922         * DEPS:
2923
2924 2012-01-28  Nico Weber  <thakis@chromium.org>
2925
2926         [chromium] Add support for building standalone webkit/chromium checkouts with ninja.
2927         https://bugs.webkit.org/show_bug.cgi?id=77243
2928
2929         Reviewed by Adam Barth.
2930
2931         * gyp_webkit:
2932
2933 2012-01-27  Jeff Timanus  <twiz@chromium.org>
2934
2935         [chromium] Increase the size of the Ganesh texture cache to prevent performance problems on advanced Canvas2D pages.
2936         The cache was previously 50 MB; it is now 96 MB.
2937
2938         Bug 76666 - Ganesh's Texture Cache is too small
2939         https://bugs.webkit.org/show_bug.cgi?id=76666
2940
2941         Reviewed by Stephen White.
2942
2943         * src/GraphicsContext3DChromium.cpp:
2944         (WebCore::GraphicsContext3DPrivate::grContext):
2945
2946 2012-01-27  Adrienne Walker  <enne@google.com>
2947
2948         [chromium] Don't ever skip drawing the non-composited content layer
2949         https://bugs.webkit.org/show_bug.cgi?id=77236
2950
2951         Reviewed by James Robinson.
2952
2953         This is a tiny fix. If the non-composited content layer never gets
2954         painted, then the background color never gets set and it is just
2955         opaque black.
2956
2957         * src/WebViewImpl.cpp:
2958         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2959
2960 2012-01-27  Fady Samuel  <fsamuel@chromium.org>
2961
2962         Rename shouldLayoutFixedElementsRelativeToFrame and make it a setting
2963         https://bugs.webkit.org/show_bug.cgi?id=76459
2964
2965         Reviewed by Darin Fisher.
2966
2967         * public/WebSettings.h:
2968         ():
2969         * public/WebView.h:
2970         (WebView):
2971         * src/WebSettingsImpl.cpp:
2972         (WebKit::WebSettingsImpl::setFixedElementsLayoutRelativeToFrame):
2973         (WebKit):
2974         * src/WebSettingsImpl.h:
2975         (WebSettingsImpl):
2976         * src/WebViewImpl.cpp:
2977         * src/WebViewImpl.h:
2978         (WebViewImpl):
2979
2980 2012-01-24  Vincent Scheib  <scheib@chromium.org>
2981
2982         Pointer Lock: Implement pointer interface
2983         https://bugs.webkit.org/show_bug.cgi?id=75762
2984
2985         Add calls to the PointerLockController added in this patch to WebCore.
2986
2987         * src/WebViewImpl.cpp:
2988         (WebKit::WebViewImpl::close):
2989         (WebKit::WebViewImpl::didAcquirePointerLock):
2990         (WebKit::WebViewImpl::didNotAcquirePointerLock):
2991         (WebKit::WebViewImpl::didLosePointerLock):
2992         (WebKit::WebViewImpl::pointerLockMouseEvent):
2993
2994 2012-01-26  Kent Tamura  <tkent@chromium.org>
2995
2996         [Chromium] Cleanup of WebPopupMenuImpl
2997         https://bugs.webkit.org/show_bug.cgi?id=76441
2998
2999         Reviewed by Kentaro Hara.
3000
3001         Removed WebPopupMenuImpl::invalidateContents() and scrollRectIntoView()
3002         because they were removed from HostWindow in r58445 and r55864. They
3003         were found by OVERRIDE.
3004
3005         * src/ChromeClientImpl.cpp:
3006         (WebKit::ChromeClientImpl::popupOpened): Rename WebPopupMenuImpl::Init().
3007         * src/WebPopupMenuImpl.cpp:
3008         (WebKit::WebPopupMenuImpl::WebPopupMenuImpl): Update a comment.
3009         (WebKit::WebPopupMenuImpl::init): Renamed from Init(). Update a comment.
3010         (WebKit::WebPopupMenuImpl::handleMouseMove): Prepend "handle" to the name.
3011         (WebKit::WebPopupMenuImpl::handleMouseLeave): ditto.
3012         (WebKit::WebPopupMenuImpl::handleMouseDown): ditto.
3013         (WebKit::WebPopupMenuImpl::handleMouseUp): ditto.
3014         (WebKit::WebPopupMenuImpl::handleMouseWheel): ditto.
3015         (WebKit::WebPopupMenuImpl::handleGestureEvent): ditto.
3016         (WebKit::WebPopupMenuImpl::handleTouchEvent): ditto.
3017         (WebKit::WebPopupMenuImpl::handleKeyEvent): ditto.
3018         (WebKit::WebPopupMenuImpl::close): Update a comment.
3019         (WebKit::WebPopupMenuImpl::composite): Remove a unused argument name.
3020         (WebKit::WebPopupMenuImpl::handleInputEvent): Update a comment. Update callsites for handle*().
3021         (WebKit::WebPopupMenuImpl::setFocus): Remove a unused argument name.
3022         (WebKit::WebPopupMenuImpl::setComposition): ditto.
3023         (WebKit::WebPopupMenuImpl::confirmComposition): ditto.
3024         (WebKit::WebPopupMenuImpl::setTextDirection): ditto.
3025         (WebKit::WebPopupMenuImpl::scroll): Unfold folded lines.
3026         * src/WebPopupMenuImpl.h:
3027          - Remove useless argument names.
3028          - Add OVERRIDE.
3029
3030 2012-01-26  W. James MacLean  <wjmaclean@chromium.org>
3031
3032         [chromium] Allow modification of size of partially occluded quads.
3033         https://bugs.webkit.org/show_bug.cgi?id=76349
3034
3035         Reviewed by James Robinson.
3036
3037         * tests/CCQuadCullerTest.cpp:
3038         (WebCore::makeTileQuads)
3039         (WebCore::setQuads):
3040         (WebCore::TEST):
3041
3042 2012-01-26  Michal Mocny  <mmocny@google.com>
3043
3044         [chromium] Revert changes which added setResourceUsageCHROMIUM gl extension since feature changed directions
3045         https://bugs.webkit.org/show_bug.cgi?id=77120
3046
3047         Reviewed by Kenneth Russell.
3048
3049         * public/platform/WebGraphicsContext3D.h:
3050         (WebGraphicsContext3D):
3051         * src/GraphicsContext3DChromium.cpp:
3052         (WebCore):
3053         * tests/FakeWebGraphicsContext3D.h:
3054         (WebKit::FakeWebGraphicsContext3D::setVisibilityCHROMIUM):
3055
3056 2012-01-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
3057
3058         Add GestureTapDown and GestureDoubleTap gesture types to WebGestureEvent.
3059         https://bugs.webkit.org/show_bug.cgi?id=77140
3060
3061         Reviewed by Darin Fisher.
3062
3063         * public/WebInputEvent.h:
3064         ():
3065         * src/WebInputEventConversion.cpp:
3066         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
3067         * src/WebPopupMenuImpl.cpp:
3068         (WebKit::WebPopupMenuImpl::handleInputEvent):
3069         * src/WebViewImpl.cpp:
3070         (WebKit::WebViewImpl::handleInputEvent):
3071
3072 2012-01-25  Cris Neckar  <cdn@chromium.org>
3073
3074         Add API to register schemes which can be sent simple CORS requests.
3075         https://bugs.webkit.org/show_bug.cgi?id=77041
3076
3077         Reviewed by Alexey Proskuryakov.
3078
3079         * public/WebSecurityPolicy.h:
3080         (WebSecurityPolicy):
3081         * src/WebSecurityPolicy.cpp:
3082         (WebKit::WebSecurityPolicy::registerCORSEnabledScheme):
3083         (WebKit):
3084
3085 2012-01-10  James Robinson  <jamesr@chromium.org>
3086
3087         [chromium] Add enter/exitRunLoop to WebThread API
3088         https://bugs.webkit.org/show_bug.cgi?id=76012
3089
3090         Reviewed by Darin Fisher.
3091
3092         This adds those two APIs to WebKit::WebThread and converts CCLayerTreeHostTest over to use these APIs instead
3093         of webkit_support. The immediate motivation is that we can't use webkit_support in webkit_unit_tests in the
3094         component build.
3095
3096         * WebKit.gyp:
3097         * public/platform/WebThread.h:
3098         * tests/CCLayerTreeHostTest.cpp:
3099         (WTF::CCLayerTreeHostTest::onEndTest):
3100         (WTF::CCLayerTreeHostTest::TimeoutTask::run):
3101         (WTF::CCLayerTreeHostTest::BeginTask::BeginTask):
3102         (WTF::CCLayerTreeHostTest::BeginTask::~BeginTask):
3103         (WTF::CCLayerTreeHostTest::BeginTask::run):
3104         (WTF::CCLayerTreeHostTest::runTest):
3105
3106 2012-01-26  John Bates  <jbates@google.com>
3107
3108         Roll chromium_rev to 119248
3109         https://bugs.webkit.org/show_bug.cgi?id=77124
3110
3111         Reviewed by James Robinson.
3112
3113         * DEPS:
3114
3115 2012-01-25  Greg Billock  <gbillock@google.com>
3116
3117         Add IntentRequest include for FrameLoaderClientImpl.
3118         https://bugs.webkit.org/show_bug.cgi?id=77039
3119
3120         Reviewed by Darin Fisher.
3121
3122         * src/FrameLoaderClientImpl.cpp:
3123
3124 2012-01-25  Daniel Cheng  <dcheng@chromium.org>
3125
3126         [chromium] Fix ClipboardChromium::validateFilename to actually operate on extensions
3127         https://bugs.webkit.org/show_bug.cgi?id=76996
3128
3129         Reviewed by Tony Chang.
3130
3131         * WebKit.gypi:
3132         * tests/ClipboardChromiumTest.cpp: Added.
3133         (WebCore):
3134         (WebCore::TEST):
3135
3136 2012-01-25  James Robinson  <jamesr@chromium.org>
3137
3138         [chromium] Rollout r100751, this mechanism does not work and is very slow
3139         https://bugs.webkit.org/show_bug.cgi?id=77055
3140
3141         Unreviewed rollout of http://trac.webkit.org/changeset/100751. The refresh rate mechanism is not implemented,
3142         but it still triggers a very slow codepath and triggers races on some platforms.
3143
3144         * public/WebScreenInfo.h:
3145         (WebScreenInfo):
3146         (WebKit::WebScreenInfo::WebScreenInfo):
3147         * src/PlatformSupport.cpp:
3148         * src/WebViewImpl.cpp:
3149         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3150         * tests/CCLayerTreeHostTest.cpp:
3151         (WTF::CCLayerTreeHostTest::runTest):
3152
3153 2012-01-25  Eric Uhrhane  <ericu@chromium.org>
3154
3155         Add full support for filesystem URLs.
3156         https://bugs.webkit.org/show_bug.cgi?id=75049
3157
3158         Reviewed by Adam Barth.
3159
3160         No new tests; existing layout tests cover the basic functionality, and
3161         the new functionality won't be there until Chromium adds it.  This patch
3162         merely enables that, without changing behavior.
3163
3164         * tests/KURLTest.cpp:
3165         TEST(KURLTest, Encode): Update expectation that '/' sails through unescaped.
3166         
3167 2012-01-25  Joshua Bell  <jsbell@chromium.org>
3168
3169         IndexedDB: Need to distinguish key paths that don't yield value vs. yield invalid key
3170         https://bugs.webkit.org/show_bug.cgi?id=76487
3171
3172         Added a NullType to represent a null IDBKey pointer. This is needed to distinguish the
3173         cases in the spec where the key resolution algorithm returns no value (null) versus
3174         returns a value but that value is not a valid key (invalid).
3175
3176         Reviewed by Tony Chang.
3177
3178         * public/WebIDBKey.h:
3179         * src/WebIDBKey.cpp:
3180         (WebKit::WebIDBKey::createNull): Added.
3181         (WebKit::WebIDBKey::createFromValueAndKeyPath): Now returns null if value is null.
3182         (WebKit::convertFromWebIDBKeyArray): Null keys should never exist within arrays.
3183         (WebKit::WebIDBKey::assignInvalid):
3184         (WebKit::WebIDBKey::assignNull):
3185         (WebKit::WebIDBKey::type):
3186
3187 2012-01-24  Vsevolod Vlasov  <vsevik@chromium.org>
3188
3189         Unreviewed chromium test fix.
3190
3191         * src/js/Tests.js:
3192         (.TestSuite.prototype._waitUntilScriptsAreParsed.waitForAllScripts):
3193         (.TestSuite.prototype._waitUntilScriptsAreParsed):
3194
3195 2012-01-24  Vangelis Kokkevis  <vangelis@chromium.org>
3196
3197         Adding a test to verify that m_skipsDraw gets reset between frames for
3198         tiled layers.
3199         https://bugs.webkit.org/show_bug.cgi?id=76735
3200
3201         Reviewed by James Robinson.
3202
3203         * WebKit.gypi:
3204         * tests/FakeCCLayerTreeHostClient.h: Added.
3205         (WebCore::FakeCCLayerTreeHostClient::updateAnimations):
3206         (WebCore::FakeCCLayerTreeHostClient::layout):
3207         (WebCore::FakeCCLayerTreeHostClient::applyScrollAndScale):
3208         (WebCore::FakeCCLayerTreeHostClient::createLayerTreeHostContext3D):
3209         (WebCore::FakeCCLayerTreeHostClient::didRecreateGraphicsContext):
3210         (WebCore::FakeCCLayerTreeHostClient::didCommitAndDrawFrame):
3211         (WebCore::FakeCCLayerTreeHostClient::didCompleteSwapBuffers):
3212         (WebCore::FakeCCLayerTreeHostClient::scheduleComposite):
3213         * tests/LayerChromiumTest.cpp:
3214         * tests/TiledLayerChromiumTest.cpp:
3215         (WTF::FakeTiledLayerChromium::skipsDraw):
3216         (WTF::FakeTiledLayerChromium::paintContentsIfDirty):
3217         (WTF::TEST):
3218
3219 2012-01-24  Dmitry Lomov  <dslomov@google.com>
3220
3221         Unreviewed: removing WebWorker.h again after r105684.
3222
3223         * WebKit.gyp:
3224
3225 2012-01-24  Tommy Widenflycht  <tommyw@google.com>
3226
3227         MediaStream API: Split the MediaStream track list into audio/video specific ones.
3228         https://bugs.webkit.org/show_bug.cgi?id=76614
3229
3230         Reviewed by Darin Fisher.
3231
3232         * public/WebUserMediaClient.h:
3233         (WebKit::WebUserMediaClient::requestUserMedia):
3234         * public/WebUserMediaRequest.h:
3235         * public/platform/WebMediaStreamDescriptor.h:
3236         * src/UserMediaClientImpl.cpp:
3237         (WebKit::UserMediaClientImpl::requestUserMedia):
3238         * src/UserMediaClientImpl.h:
3239         * src/WebMediaStreamDescriptor.cpp:
3240         (WebKit::WebMediaStreamDescriptor::sources):
3241         (WebKit::WebMediaStreamDescriptor::audioSources):
3242         (WebKit::WebMediaStreamDescriptor::videoSources):
3243         (WebKit::WebMediaStreamDescriptor::initialize):
3244         * src/WebUserMediaRequest.cpp:
3245         (WebKit::WebUserMediaRequest::requestSucceeded):
3246
3247 2012-01-23  Simon Fraser  <simon.fraser@apple.com>
3248
3249         Show layer borders for scrollbar layers
3250         https://bugs.webkit.org/show_bug.cgi?id=76888
3251
3252         Reviewed by Beth Dakin.
3253
3254         Update for new signature of GraphicsLayerClient::showDebugBorders()
3255         and GraphicsLayerClient::showRepaintCounter().
3256
3257         * src/NonCompositedContentHost.cpp:
3258         (WebKit::NonCompositedContentHost::showDebugBorders):
3259         (WebKit::NonCompositedContentHost::showRepaintCounter):
3260         * src/NonCompositedContentHost.h:
3261         * src/PageOverlay.cpp:
3262         (WebKit::OverlayGraphicsLayerClientImpl::showDebugBorders):
3263         (WebKit::OverlayGraphicsLayerClientImpl::showRepaintCounter):
3264         * tests/ImageLayerChromiumTest.cpp:
3265         (WebCore::MockGraphicsLayerClient::showDebugBorders):
3266         (WebCore::MockGraphicsLayerClient::showRepaintCounter):
3267
3268 2012-01-24  Vincent Scheib  <scheib@chromium.org>
3269
3270         [Chromium] Add WebKit API for Pointer Lock
3271         https://bugs.webkit.org/show_bug.cgi?id=76410
3272
3273         Reviewed by Darin Fisher.
3274
3275         Breaking up https://bugs.webkit.org/show_bug.cgi?id=75762
3276         into a series of patches, this stubs out the API.
3277
3278         * public/WebWidget.h:
3279         (WebKit::WebWidget::didCompletePointerLock):
3280         (WebKit::WebWidget::didNotCompletePointerLock):
3281         (WebKit::WebWidget::didLosePointerLock):
3282         * public/WebWidgetClient.h:
3283         (WebKit::WebWidgetClient::requestPointerLock):
3284         (WebKit::WebWidgetClient::requestPointerUnlock):
3285         (WebKit::WebWidgetClient::isPointerLocked):
3286         * src/ChromeClientImpl.cpp:
3287         (WebKit::ChromeClientImpl::requestPointerLock):
3288         (WebKit::ChromeClientImpl::requestPointerUnlock):
3289         (WebKit::ChromeClientImpl::isPointerLocked):
3290         * src/ChromeClientImpl.h:
3291         * src/WebViewImpl.cpp:
3292         (WebKit::WebViewImpl::handleInputEvent):
3293         (WebKit::WebViewImpl::didCompletePointerLock):
3294         (WebKit::WebViewImpl::didNotCompletePointerLock):
3295         (WebKit::WebViewImpl::didLosePointerLock):
3296         (WebKit::WebViewImpl::requestPointerLock):
3297         (WebKit::WebViewImpl::requestPointerUnlock):
3298         (WebKit::WebViewImpl::isPointerLocked):
3299         (WebKit::WebViewImpl::pointerLockMouseEvent):
3300         * src/WebViewImpl.h:
3301
3302 2012-01-23  Sheriff Bot  <webkit.review.bot@gmail.com>
3303
3304         Unreviewed.  Rolled DEPS.
3305
3306         * DEPS:
3307
3308 2012-01-23  Tom Sepez  <tsepez@chromium.org>
3309
3310         [chromium] Clean up old WebSharedWorker::startWorkerContext() method.
3311         https://bugs.webkit.org/show_bug.cgi?id=76853
3312
3313         Reviewed by Darin Fisher.
3314
3315         * public/WebSharedWorker.h:
3316         * src/WebSharedWorkerImpl.cpp:
3317         * src/WebSharedWorkerImpl.h:
3318
3319 2012-01-23  Dmitry Lomov  <dslomov@google.com>
3320
3321         [Chromium] Implement layoutTestController.workerThreadCount in DRT
3322         https://bugs.webkit.org/show_bug.cgi?id=74653.
3323         Expose WebCore::WorkerThread::workerThreadCount() in API layer 
3324         for DumpRenderTree.
3325
3326         Reviewed by Darin Fisher.
3327
3328         * WebKit.gyp:
3329         * public/WebWorkerInfo.h: Copied from Source/WebKit/chromium/public/WebCommonWorkerClient.h.
3330         * src/WebWorkerInfo.cpp: Copied from Source/WebKit/chromium/public/WebCommonWorkerClient.h.
3331         (WebKit::WebWorkerInfo::dedicatedWorkerCount):
3332
3333 2012-01-23  Greg Billock  <gbillock@google.com>
3334
3335         Fine tune Web Intents Chromium API
3336         https://bugs.webkit.org/show_bug.cgi?id=76754
3337
3338         Reviewed by Darin Fisher.
3339
3340         * public/WebIntent.h:
3341         * public/WebIntentServiceInfo.h:
3342         * src/WebIntent.cpp:
3343         * src/WebIntentServiceInfo.cpp:
3344         (WebKit::WebIntentServiceInfo::WebIntentServiceInfo):
3345
3346 2012-01-23  Shawn Singh  <shawnsingh@chromium.org>
3347
3348         [chromium] updateRect is incorrect when contentBounds != bounds
3349         https://bugs.webkit.org/show_bug.cgi?id=72919
3350
3351         Reviewed by James Robinson.
3352
3353         * tests/TiledLayerChromiumTest.cpp:
3354         (WTF::FakeTiledLayerWithScaledBounds::FakeTiledLayerWithScaledBounds):
3355         (WTF::FakeTiledLayerWithScaledBounds::setContentBounds):
3356         (WTF::FakeTiledLayerWithScaledBounds::contentBounds):
3357         (WTF::FakeTiledLayerWithScaledBounds::updateRect):
3358         (WTF::TEST):
3359
3360 2012-01-23  Takashi Toyoshima  <toyoshim@chromium.org>
3361
3362         [Chromium][WebSocket] Remove binary communication using WebData in WebKit API
3363         https://bugs.webkit.org/show_bug.cgi?id=76608
3364
3365         Reviewed by Darin Fisher.
3366
3367         * public/WebSocket.h: Remove BinaryTypeData definition and sendBinary(const WebData&).
3368         * public/WebSocketClient.h: Remove didReceiveBinaryData(const WebData&).
3369         * src/WebSocketImpl.cpp: Remove WebData related code and set default binary type as BinaryTypeBlob.
3370         (WebKit::WebSocketImpl::WebSocketImpl): Remove sendBinary(const WebData&).
3371         (WebKit::WebSocketImpl::didReceiveBinaryData): Remove WebData supporting code.
3372         * src/WebSocketImpl.h: Remove sendBinary(const WebData&).
3373
3374 2012-01-23  James Robinson  <jamesr@chromium.org>
3375
3376         [chromium] Add <(SHARED_INTERMEDIATE_DIR)/webkit to include path of targets that depend on WebKit API so they pick up the copied headers in an onion build
3377         https://bugs.webkit.org/show_bug.cgi?id=76879
3378
3379         Reviewed by Dirk Pranke.
3380
3381         * WebKit.gyp:
3382
3383 2012-01-23  Stephen White  <senorblanco@chromium.org>
3384
3385         Unreviewed, rolling out r105640.
3386         http://trac.webkit.org/changeset/105640
3387         https://bugs.webkit.org/show_bug.cgi?id=76849
3388
3389         Broke the chromium build.
3390
3391         * DEPS:
3392
3393 2012-01-23  Justin Novosad  <junov@chromium.org>
3394
3395         rolling chromium DEPS to r118713
3396         https://bugs.webkit.org/show_bug.cgi?id=76849
3397
3398         Reviewed by Stephen White.
3399
3400         This is to pick up a change to skia build configuration
3401
3402         * DEPS:
3403
3404 2012-01-23  Xianzhu Wang  <wangxianzhu@chromium.org>
3405
3406         Basic enhancements to StringBuilder
3407         https://bugs.webkit.org/show_bug.cgi?id=67081
3408
3409         This change is because we explicitly disallowed StringBuilder's
3410         copy constructor and assignment operator.
3411
3412         Reviewed by Darin Adler.
3413
3414         No new tests. All layout tests and unit tests should run as before.
3415
3416         * src/WebPageSerializerImpl.cpp:
3417         (WebKit::WebPageSerializerImpl::encodeAndFlushBuffer):
3418
3419 2012-01-23  W. James MacLean  <wjmaclean@chromium.org>
3420
3421         [chromium] Add WebSolidColorLayer interface to draw non-textured color layers from Aura.
3422         https://bugs.webkit.org/show_bug.cgi?id=75732
3423
3424         Reviewed by James Robinson.
3425
3426         * WebKit.gyp:
3427         * WebKit.gypi:
3428         * public/platform/WebSolidColorLayer.h: Added.
3429         * src/WebSolidColorLayer.cpp: Added.
3430         (WebKit::WebSolidColorLayer::create):
3431         (WebKit::WebSolidColorLayer::WebSolidColorLayer):
3432         (WebKit::WebSolidColorLayer::setBackgroundColor):
3433         * src/WebSolidColorLayerImpl.cpp: Added.
3434         (WebKit::WebSolidColorLayerImpl::create):
3435         (WebKit::WebSolidColorLayerImpl::WebSolidColorLayerImpl):
3436         (WebKit::WebSolidColorLayerImpl::~WebSolidColorLayerImpl):
3437         * src/WebSolidColorLayerImpl.h: Added.
3438         * tests/CCLayerTestCommon.cpp: Added.
3439         (CCLayerTestCommon::completelyContains):
3440         (CCLayerTestCommon::verifyQuadsExactlyCoverRect):
3441         * tests/CCLayerTestCommon.h: Added.
3442         * tests/CCSolidColorLayerImplTest.cpp: Added.
3443         (CCLayerTestCommon::TEST):
3444         * tests/CCTiledLayerImplTest.cpp:
3445
3446 2012-01-20  Pavel Feldman  <pfeldman@google.com>
3447
3448         Web Inspector: PageAgent.open() dosen't belong to the protocol.
3449         https://bugs.webkit.org/show_bug.cgi?id=74790
3450
3451         Reviewed by Yury Semikhatsky.
3452
3453         * public/WebDevToolsFrontendClient.h:
3454         (WebKit::WebDevToolsFrontendClient::openInNewTab):
3455         * src/InspectorFrontendClientImpl.cpp:
3456         (WebKit::InspectorFrontendClientImpl::openInNewTab):
3457         (WebKit::InspectorFrontendClientImpl::saveAs):
3458         * src/InspectorFrontendClientImpl.h:
3459
3460 2012-01-21  David Reveman  <reveman@chromium.org>
3461
3462         [Chromium] Incremental texture updates are not atomic.
3463         https://bugs.webkit.org/show_bug.cgi?id=72672
3464
3465         Reviewed by Adam Barth.
3466
3467         Add CCLayerTreeHostTestAtomicCommit test that verifies atomicity
3468         of commits.
3469
3470         * tests/CCLayerTreeHostTest.cpp:
3471         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::create):
3472         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::createTexture):
3473         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::deleteTexture):
3474         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::bindTexture):
3475         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::numTextures):
3476         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::texture):
3477         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::resetTextures):
3478         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::numUsedTextures):
3479         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::usedTexture):
3480         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::resetUsedTextures):
3481         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::CompositorFakeWebGraphicsContext3DWithTextureTracking):
3482         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
3483         (WTF::MockContentLayerDelegate::drawsContent):
3484         (WTF::MockContentLayerDelegate::paintContents):
3485         (WTF::MockContentLayerDelegate::notifySyncRequired):
3486         (WTF::CCLayerTreeHostTestAtomicCommit::CCLayerTreeHostTestAtomicCommit):
3487         (WTF::CCLayerTreeHostTestAtomicCommit::beginTest):
3488         (WTF::CCLayerTreeHostTestAtomicCommit::commitCompleteOnCCThread):
3489         (WTF::CCLayerTreeHostTestAtomicCommit::drawLayersOnCCThread):
3490         (WTF::CCLayerTreeHostTestAtomicCommit::layout):
3491         (WTF::CCLayerTreeHostTestAtomicCommit::afterTest):
3492         (WTF::TEST_F):
3493         * tests/CompositorFakeWebGraphicsContext3D.h:
3494
3495 2012-01-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3496
3497         Unreviewed, rolling out r105564.
3498         http://trac.webkit.org/changeset/105564
3499         https://bugs.webkit.org/show_bug.cgi?id=76792
3500
3501         Does not compile on Chromium Mac (Requested by abarth on
3502         #webkit).
3503
3504         * tests/CCLayerTreeHostTest.cpp:
3505         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
3506         * tests/CompositorFakeWebGraphicsContext3D.h:
3507
3508 2012-01-20  Alexandre Elias  <aelias@google.com>
3509
3510         [chromium] Write unit tests for compositor-thread zooming
3511         https://bugs.webkit.org/show_bug.cgi?id=71529
3512
3513         Reviewed by James Robinson.
3514
3515         Add unit tests for pinch zoom and page scale animation.  Includes
3516         small cleanups in CCLayerTreeHostImpl for testability.
3517
3518         * tests/CCLayerTreeHostImplTest.cpp:
3519         (WebKit::CCLayerTreeHostImplTest::setupScrollAndContentsLayers):
3520         (WebKit::TEST_F):
3521
3522 2012-01-20  David Reveman  <reveman@chromium.org>
3523
3524         [Chromium] Incremental texture updates are not atomic.
3525         https://bugs.webkit.org/show_bug.cgi?id=72672
3526
3527         Reviewed by James Robinson.
3528
3529         Add CCLayerTreeHostTestAtomicCommit test that verifies atomicity
3530         of commits.
3531
3532         * tests/CCLayerTreeHostTest.cpp:
3533         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::create):
3534         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::createTexture):
3535         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::deleteTexture):
3536         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::bindTexture):
3537         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::numTextures):
3538         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::texture):
3539         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::resetTextures):
3540         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::numUsedTextures):
3541         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::usedTexture):
3542         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::resetUsedTextures):
3543         (WTF::CompositorFakeWebGraphicsContext3DWithTextureTracking::CompositorFakeWebGraphicsContext3DWithTextureTracking):
3544         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
3545         (WTF::MockContentLayerDelegate::drawsContent):
3546         (WTF::MockContentLayerDelegate::paintContents):
3547         (WTF::MockContentLayerDelegate::notifySyncRequired):
3548         (WTF::CCLayerTreeHostTestAtomicCommit::CCLayerTreeHostTestAtomicCommit):
3549         (WTF::CCLayerTreeHostTestAtomicCommit::beginTest):
3550         (WTF::CCLayerTreeHostTestAtomicCommit::commitCompleteOnCCThread):
3551         (WTF::CCLayerTreeHostTestAtomicCommit::drawLayersOnCCThread):
3552         (WTF::CCLayerTreeHostTestAtomicCommit::layout):
3553         (WTF::CCLayerTreeHostTestAtomicCommit::afterTest):
3554         (WTF::TEST_F):
3555         * tests/CompositorFakeWebGraphicsContext3D.h:
3556
3557 2012-01-20  Ami Fischman  <fischman@chromium.org>
3558
3559         Small cleanup of {get,put}CurrentFrame for  WebMediaPlayerClientImpl/CCVideoLayerImpl.
3560         https://bugs.webkit.org/show_bug.cgi?id=76332
3561
3562         Reviewed by James Robinson.
3563
3564         * src/WebMediaPlayerClientImpl.cpp:
3565         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
3566         (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
3567
3568 2012-01-20  Ryosuke Niwa  <rniwa@webkit.org>
3569
3570         Roll Chromium DEPS from 118291 to 118493.
3571
3572         * DEPS:
3573
3574 2012-01-20  Ryosuke Niwa  <rniwa@webkit.org>
3575
3576         Revert r105545. Something got broken about gclient/gyp but I can't figure out what.
3577
3578         * DEPS:
3579
3580 2012-01-20  Ryosuke Niwa  <rniwa@webkit.org>
3581
3582         Roll Chromium DEPS from 118291 to 118530.
3583
3584         * DEPS:
3585
3586 2012-01-20  Sadrul Habib Chowdhury  <sadrul@chromium.org>
3587
3588         [chromium] Revert a couple of changes in fileapi/ that break tests in chromeos.
3589         https://bugs.webkit.org/show_bug.cgi?id=76718
3590
3591         Reviewed by Darin Fisher.
3592
3593         * public/platform/WebFileSystem.h:
3594         * src/AssertMatchingEnums.cpp:
3595         * src/AsyncFileSystemChromium.cpp:
3596         * src/AsyncFileSystemChromium.h:
3597
3598 2012-01-20  Fady Samuel  <fsamuel@chromium.org>
3599
3600         [Chromium] Do not recompute viewport on same page navigation
3601         https://bugs.webkit.org/show_bug.cgi?id=75576
3602
3603         Reviewed by Darin Fisher.
3604
3605         Added parameter isNavigationWithinPage to WebViewImpl::didCommitLoad
3606         that indicates whether a same-page navigation has just occurred.
3607
3608         The page scale factor flag is reset only on navigation to a new page.
3609         If the flag is not set, viewport and page scale will be recomputed on
3610         layoutUpdated.
3611
3612         * src/FrameLoaderClientImpl.cpp:
3613         (WebKit::FrameLoaderClientImpl::dispatchDidNavigateWithinPage):
3614         (WebKit::FrameLoaderClientImpl::dispatchDidCommitLoad):
3615         * src/WebViewImpl.cpp:
3616         (WebKit::WebViewImpl::didCommitLoad):
3617         (WebKit::WebViewImpl::observeNewNavigation):
3618         * src/WebViewImpl.h:
3619
3620 2012-01-20  Pavel Feldman  <pfeldman@google.com>
3621
3622         Web Inspector: [chromium] add WebDevToolsFrontendClient::openInNewTab for upcoming WebCore change.
3623         https://bugs.webkit.org/show_bug.cgi?id=76698
3624
3625         Reviewed by Yury Semikhatsky.
3626
3627         * public/WebDevToolsFrontendClient.h:
3628         (WebKit::WebDevToolsFrontendClient::openInNewTab):
3629
3630 2012-01-20  Hayato Ito  <hayato@chromium.org>
3631
3632         Add ShadowRoot.idl which is enabled by newly introduced SHADOW_DOM flag.
3633         https://bugs.webkit.org/show_bug.cgi?id=76353
3634
3635         Reviewed by Hajime Morita.
3636
3637         Add ShadowRoot.idl, which is enabled only on chromium port since this is
3638         under development feature.
3639         ShadowRoot.idl contains minimum API so that we can test it.
3640         Other APIs should be added on other changes so that we can isolate issues.
3641
3642         * features.gypi:
3643         * public/WebRuntimeFeatures.h:
3644         * src/WebRuntimeFeatures.cpp:
3645         (WebKit::WebRuntimeFeatures::enableShadowDOM):
3646         (WebKit::WebRuntimeFeatures::isShadowDOMEnabled):
3647
3648 2012-01-20  Shinya Kawanaka  <shinyak@google.com>
3649
3650         [chromium] Chromium should have EditorClientImpl::checkTextOfParagraph.
3651         https://bugs.webkit.org/show_bug.cgi?id=74071
3652
3653         Reviewed by Darin Fisher.
3654
3655         Spellchecker on Mac has more sophisticated interface for spellchecking (checkTextOfParagraph).
3656         If the other ports have the same interface, code can be clearer and easy to extend.
3657         This patch introduces such an interface. The implementation will be done not in WebKit but in Chromium.
3658
3659         Also, currently WebKit::WebTextCheckingResult and WebCore::TextCheckingResult have different forms.
3660         They should be corresponding apparently. This patch introduces such correspondence.
3661
3662         * WebKit.gyp:
3663         * public/WebSpellCheckClient.h:
3664         (WebKit::WebSpellCheckClient::checkTextOfParagraph):
3665           A new interface for spellchecking.
3666         * public/WebTextCheckingResult.h:
3667         (WebKit::WebTextCheckingResult::WebTextCheckingResult):
3668           Changed so that WebTextCheckingResult corresponds to WebCore::TextCheckingResult.
3669         * public/WebTextCheckingType.h: Copied from Source/WebKit/chromium/public/WebTextCheckingResult.h.
3670         * src/AssertMatchingEnums.cpp:
3671         * src/EditorClientImpl.cpp:
3672         (WebKit::EditorClientImpl::checkTextOfParagraph):
3673         * src/EditorClientImpl.h:
3674         * src/WebTextCheckingResult.cpp: Copied from Source/WebKit/chromium/public/WebTextCheckingResult.h.
3675         (WebKit::WebTextCheckingResult::operator TextCheckingResult):
3676
3677 2012-01-20  Shinya Kawanaka  <shinyak@google.com>
3678
3679         [chromium] WebFrame should have an interface to invoke spellchecking in arbitrarily.
3680         https://bugs.webkit.org/show_bug.cgi?id=73971
3681
3682         Reviewed by Darin Fisher.
3683
3684         This interface is necessary to recheck spelling of an arbitrary element.
3685
3686         * public/WebFrame.h:
3687         * public/WebNode.h:
3688         * src/WebFrameImpl.cpp:
3689         (WebKit::WebFrameImpl::requestTextChecking):
3690           Requests spellchecking for the element having current selection.
3691         * src/WebFrameImpl.h:
3692         * src/WebNode.cpp:
3693         (WebKit::WebNode::rootEditableElement):
3694           Takes a root editable element from Node.
3695
3696 2012-01-19  Kinuko Yasuda  <kinuko@chromium.org>
3697
3698         Cleanup: make constant variable names in fileapi/ conform to WebKit's coding guideline
3699         https://bugs.webkit.org/show_bug.cgi?id=76625
3700
3701         Reviewed by David Levin.
3702
3703         Also removing (almost) duplicated implementation of AsyncFileSystem::crackFileSystem.
3704
3705         * src/AsyncFileSystemChromium.cpp:
3706
3707 2012-01-19  Alexandre Elias  <aelias@google.com>
3708
3709         [chromium] Draw gutter quads outside root content layer
3710         https://bugs.webkit.org/show_bug.cgi?id=76328
3711
3712         Reviewed by James Robinson.
3713
3714         Add new layer property "backgroundCoversViewport".  If the content
3715         layers don't fully cover the render surface, this code calculates the
3716         difference between the root clip rect and the root content layer and
3717         draws up to four background-color quads in exactly the area that would
3718         be undrawn.
3719
3720         Test: CCTiledLayerImplTest::backgroundCoversViewport
3721
3722         * src/NonCompositedContentHost.cpp:
3723         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
3724         * tests/CCLayerImplTest.cpp:
3725         (WebCore::TEST):
3726         * tests/CCTiledLayerImplTest.cpp:
3727         (WebCore::TEST):
3728         * tests/LayerChromiumTest.cpp:
3729
3730 2012-01-19  Greg Billock  <gbillock@google.com>
3731
3732         Web Intents chromium API modifications to track IntentRequest invocation method
3733         https://bugs.webkit.org/show_bug.cgi?id=76014
3734
3735         Reviewed by Darin Fisher.
3736
3737         * public/WebFrameClient.h:
3738         (WebKit::WebFrameClient::dispatchIntent):
3739         * public/WebIntent.h:
3740         * public/WebIntentRequest.h: Added.
3741         * src/FrameLoaderClientImpl.cpp:
3742         (WebKit::FrameLoaderClientImpl::dispatchIntent):
3743         * src/FrameLoaderClientImpl.h:
3744         * src/WebIntent.cpp:
3745         * src/WebIntentRequest.cpp: Added.
3746
3747 2012-01-19  Michal Mocny  <mmocny@google.com>
3748
3749         [chromium] Replace WGC3D visibility extension with resource_usage extension. [Part 1 of 3]
3750         https://bugs.webkit.org/show_bug.cgi?id=76634
3751
3752         Reviewed by Kenneth Russell.
3753
3754         * public/platform/WebGraphicsContext3D.h:
3755         (WebKit::WebGraphicsContext3D::setVisibilityCHROMIUM):
3756         (WebKit::WebGraphicsContext3D::setResourceUsageCHROMIUM):
3757         * src/GraphicsContext3DChromium.cpp:
3758         (WebCore::GraphicsContext3DPrivate::setVisibilityCHROMIUM):
3759         * tests/FakeWebGraphicsContext3D.h:
3760         (WebKit::FakeWebGraphicsContext3D::setResourceUsageCHROMIUM):
3761
3762 2012-01-19  James Robinson  <jamesr@chromium.org>
3763
3764         [chromium] Remove CCLayerDelegate, add ContentLayerDelegate for painting
3765         https://bugs.webkit.org/show_bug.cgi?id=76663
3766
3767         Reviewed by Kenneth Russell.
3768
3769         * src/WebContentLayerImpl.cpp:
3770         (WebKit::WebContentLayerImpl::~WebContentLayerImpl):
3771         * src/WebContentLayerImpl.h:
3772         * src/WebExternalTextureLayerImpl.cpp:
3773         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
3774         (WebKit::WebExternalTextureLayerImpl::~WebExternalTextureLayerImpl):
3775         * src/WebExternalTextureLayerImpl.h:
3776         * src/WebLayerImpl.cpp:
3777         (WebKit::WebLayerImpl::WebLayerImpl):
3778         (WebKit::WebLayerImpl::~WebLayerImpl):
3779         * src/WebLayerImpl.h:
3780         * src/WebMediaPlayerClientImpl.cpp:
3781         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
3782         * src/WebPluginContainerImpl.cpp:
3783         (WebKit::WebPluginContainerImpl::WebPluginContainerImpl):
3784         * tests/CCLayerIteratorTest.cpp:
3785         * tests/CCLayerTreeHostCommonTest.cpp:
3786         (WebCore::LayerChromiumWithForcedDrawsContent::LayerChromiumWithForcedDrawsContent):
3787         (WebCore::TEST):
3788         * tests/CCLayerTreeHostTest.cpp:
3789         (WTF::CCLayerTreeHostTest::doBeginTest):
3790         (WTF::ContentLayerChromiumWithUpdateTracking::create):
3791         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
3792         * tests/LayerChromiumTest.cpp:
3793         * tests/TiledLayerChromiumTest.cpp:
3794         (WTF::FakeTiledLayerChromium::FakeTiledLayerChromium):
3795         * tests/TreeSynchronizerTest.cpp:
3796         (WebCore::MockLayerChromium::MockLayerChromium):
3797         (WebCore::TEST):
3798
3799 2012-01-19  Dirk Pranke  <dpranke@chromium.org>
3800
3801         remove the duplicated build rules from WebKit.gyp, Tools.gyp
3802         https://bugs.webkit.org/show_bug.cgi?id=73384
3803
3804         Reviewed by Tony Chang.
3805
3806         This patch removes the no-longer-necessary conditional logic for
3807         build_webkit_exes_from_webkit_gyp; we now always build the exes
3808         from their own dedicated gyp files.
3809         * WebKit.gyp:
3810         * WebKitUnitTests.gyp:
3811         * gyp_webkit:
3812
3813 2012-01-19  Dirk Pranke  <dpranke@chromium.org>
3814
3815         Unreviewed, Roll DEPS to most recent LKGR (118291).
3816
3817         * DEPS:
3818
3819 2012-01-18  Jer Noble  <jer.noble@apple.com>
3820
3821         Make WebAudio API const-correct.
3822         https://bugs.webkit.org/show_bug.cgi?id=76573
3823
3824         Reviewed by Daniel Bates.
3825
3826         The following functions were modified to use the renamed mutableData() accessor:
3827         * src/AudioDestinationChromium.cpp:
3828         (WebCore::AudioDestinationChromium::FIFO::fillBuffer):
3829         (WebCore::AudioDestinationChromium::FIFO::consume):
3830         * src/WebAudioData.cpp:
3831         (WebCore::WebAudioBus::channelData):
3832         * src/WebMediaPlayerClientImpl.cpp:
3833         (WebKit::WebMediaPlayerClientImpl::AudioSourceProviderImpl::provideInput):
3834
3835 2012-01-19  Joi Sigurdsson  <joi@chromium.org>
3836
3837         Enable use of precompiled headers in Chromium port on Windows.
3838
3839         Bug 76381 - Use precompiled headers in Chromium port on Windows
3840         https://bugs.webkit.org/show_bug.cgi?id=76381
3841
3842         Reviewed by Tony Chang.
3843
3844         * WebKit.gyp: Include WinPrecompile.gypi.
3845         * WinPrecompile.cpp: Added.
3846         * WinPrecompile.gypi: Added.
3847         * WinPrecompile.h: Added.
3848
3849 2012-01-18  Kinuko Yasuda  <kinuko@chromium.org>
3850
3851         Cleanup: Move chrome-specific filesystem type handling code (for FileSystem API) under chromium directory
3852         https://bugs.webkit.org/show_bug.cgi?id=76551
3853
3854         Reviewed by Darin Fisher.
3855
3856         * src/AssertMatchingEnums.cpp: Removed matching assertion for TypeExternal as it's no longer defined separately.
3857         * src/AsyncFileSystemChromium.cpp: Added crackFileSystemURL() and toURL() implementation that
3858         handle chrome-specific filesystem type (EXTERNAL) as well as regular TEMPORARY/PERSISTENT types.
3859         (WebCore::AsyncFileSystem::crackFileSystemURL): Added.
3860         (WebCore::AsyncFileSystemChromium::toURL): Added.
3861         * src/AsyncFileSystemChromium.h:
3862
3863 2012-01-18  Tom Sepez  <tsepez@chromium.org>
3864
3865         Pass content-security-policy directive into shared workers.
3866         https://bugs.webkit.org/show_bug.cgi?id=75660
3867
3868         Reviewed by Darin Fisher.
3869
3870         * public/WebContentSecurityPolicy.h: Added.
3871         * public/WebSharedWorker.h:
3872         (WebKit::WebSharedWorker::startWorkerContext):
3873         * src/AssertMatchingEnums.cpp:
3874         * src/SharedWorkerRepository.cpp:
3875         (WebCore::SharedWorkerScriptLoader::notifyFinished):
3876         * src/WebSharedWorkerImpl.cpp:
3877         (WebKit::WebSharedWorkerImpl::startWorkerContext):
3878         * src/WebSharedWorkerImpl.h:
3879
3880 2012-01-18  Ian Vollick  <vollick@chromium.org>
3881
3882         [chromium] Create a base-class CCAnimation to represent compositor animations
3883         https://bugs.webkit.org/show_bug.cgi?id=73233
3884
3885         Reviewed by Kenneth Russell.
3886
3887         * WebKit.gypi:
3888         * tests/CCActiveAnimationTest.cpp: Added.
3889         (WebCore::FakeFloatAnimation::duration):
3890         (WebCore::FakeFloatAnimation::getValue):
3891         (WebCore::createActiveAnimation):
3892         (WebCore::TEST):
3893         * tests/CCLayerAnimationControllerImplTest.cpp: Added.
3894         (WebCore::FakeControllerClient::FakeControllerClient):
3895         (WebCore::FakeControllerClient::~FakeControllerClient):
3896         (WebCore::FakeControllerClient::opacity):
3897         (WebCore::FakeControllerClient::setOpacity):
3898         (WebCore::FakeControllerClient::transform):
3899         (WebCore::FakeControllerClient::setTransform):
3900         (WebCore::FakeControllerClient::animationControllerImplDidActivate):
3901         (WebCore::FakeControllerClient::activeControllers):
3902         (WebCore::FakeTransformTransition::FakeTransformTransition):
3903         (WebCore::FakeTransformTransition::duration):
3904         (WebCore::FakeTransformTransition::getValue):
3905         (WebCore::FakeFloatTransition::FakeFloatTransition):
3906         (WebCore::FakeFloatTransition::duration):
3907         (WebCore::FakeFloatTransition::getValue):
3908         (WebCore::TEST):
3909
3910 2012-01-18  James Robinson  <jamesr@chromium.org>
3911
3912         Unreviewed, rolling out r105366.
3913         http://trac.webkit.org/changeset/105366
3914         https://bugs.webkit.org/show_bug.cgi?id=76015
3915
3916         Breaks CCLayerTreeHostImplTest unit test
3917
3918         * tests/CCQuadCullerTest.cpp:
3919         (WebCore::TestDrawQuad::TestDrawQuad):
3920         (WebCore::TestDrawQuad::create):
3921         (WebCore::setQuads):
3922         * tests/CCTiledLayerImplTest.cpp:
3923         (WebCore::createLayer):
3924         (WebCore::TEST):
3925         (WebCore::getQuads):
3926         (WebCore::coverageVisibleRectOnTileBoundaries):
3927         (WebCore::coverageVisibleRectIntersectsTiles):
3928         (WebCore::coverageVisibleRectIntersectsBounds):
3929
3930 2012-01-18  Dana Jansens  <danakj@chromium.org>
3931
3932         [chromium] Use region reported painted opaque for draw culling
3933         https://bugs.webkit.org/show_bug.cgi?id=76015
3934
3935         Reviewed by James Robinson.
3936
3937         * tests/CCQuadCullerTest.cpp:
3938         (WebCore::TestDrawQuad::TestDrawQuad):
3939         (WebCore::TestDrawQuad::create):
3940         (WebCore::setQuads):
3941         (WebCore::TEST):
3942         * tests/CCTiledLayerImplTest.cpp:
3943         (WebCore::createLayer):
3944         (WebCore::TEST):
3945         (WebCore::getQuads):
3946         (WebCore::coverageVisibleRectOnTileBoundaries):
3947         (WebCore::coverageVisibleRectIntersectsTiles):
3948         (WebCore::coverageVisibleRectIntersectsBounds):
3949
3950 2012-01-18  Joshua Bell  <jsbell@chromium.org>
3951
3952         IndexedDB: Fix InjectIDBKeyTest.SubProperty test failure
3953         https://bugs.webkit.org/show_bug.cgi?id=76582
3954
3955         Correct the test, now that https://bugs.webkit.org/show_bug.cgi?id=76493
3956         changes the semantics so that intermediate objects are created if possible
3957         to satisfy autoIncrement keypaths.
3958
3959         Reviewed by James Robinson.
3960
3961         * tests/IDBBindingUtilitiesTest.cpp:
3962         (WebCore::TEST):
3963
3964 2012-01-18  Dirk Pranke  <dpranke@chromium.org>
3965
3966         [chromium] move Tools.gyp, switch build-webkit --chromium to All.gyp
3967         https://bugs.webkit.org/show_bug.cgi?id=76505
3968
3969         Reviewed by Tony Chang.
3970
3971         Update path to Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp.
3972
3973         * All.gyp:
3974         * gyp_webkit:
3975         - change to using All.gyp
3976         - change build_webkit_exes_from_webkit_gyp to 0
3977
3978 2012-01-18  David Grogan  <dgrogan@chromium.org>
3979
3980         IndexedDB: Check for permission before using IndexedDB from a worker.
3981         https://bugs.webkit.org/show_bug.cgi?id=76500
3982
3983         Reviewed by David Levin.
3984
3985         * src/IDBFactoryBackendProxy.cpp:
3986         (WebKit::AllowIndexedDBMainThreadBridge::create):
3987         (WebKit::AllowIndexedDBMainThreadBridge::cancel):
3988         (WebKit::AllowIndexedDBMainThreadBridge::result):
3989         (WebKit::AllowIndexedDBMainThreadBridge::signalCompleted):
3990         (WebKit::AllowIndexedDBMainThreadBridge::AllowIndexedDBMainThreadBridge):
3991         (WebKit::AllowIndexedDBMainThreadBridge::allowIndexedDBTask): Call
3992         webView->permissionClient()->allowIndexedDB on the main thread because
3993         ContentSettingsObserver::AllowIndexedDB(), which is called down the
3994         chain, expects to be run on the main thread.
3995         (WebKit::AllowIndexedDBMainThreadBridge::didComplete):
3996         (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread): Wait for
3997         main permission check to complete on main thread before proceeding on
3998         worker thread.
3999
4000 2012-01-18  Tommy Widenflycht  <tommyw@google.com>
4001
4002         [chromium] MediaStream API: Make WebMediaStreamDescriptor copyable
4003         https://bugs.webkit.org/show_bug.cgi?id=76526
4004
4005         Reviewed by Darin Fisher.
4006
4007         This patch adds a copy constructor and a assignment operator to WebMediaStreamDescriptor.
4008
4009         * public/platform/WebMediaStreamDescriptor.h:
4010         (WebKit::WebMediaStreamDescriptor::WebMediaStreamDescriptor):
4011         (WebKit::WebMediaStreamDescriptor::operator=):
4012         * src/WebMediaStreamDescriptor.cpp:
4013         (WebKit::WebMediaStreamDescriptor::assign):
4014
4015 2012-01-18  Dana Jansens  <danakj@chromium.org>
4016
4017         [chromium] Enable tracking opaque region in Skia graphics context, return it from LayerTextureUpdater
4018         https://bugs.webkit.org/show_bug.cgi?id=76211
4019
4020         Reviewed by James Robinson.
4021
4022         * WebKit.gypi:
4023         * tests/LayerTextureUpdaterTest.cpp: Added.
4024         (WebCore::TestLayerPainterChromium::TestLayerPainterChromium):
4025         (WebCore::TestLayerPainterChromium::paint):
4026         (WebCore::PaintFillOpaque::operator()):
4027         (WebCore::PaintFillAlpha::operator()):
4028         (WebCore::TEST):
4029         * tests/TiledLayerChromiumTest.cpp:
4030         (WTF::FakeLayerTextureUpdater::prepareToUpdate):
4031
4032 2012-01-18  Tim Dresser  <tdresser@chromium.org>
4033
4034         [chromium] Refactor canvas, plugin, and video drawing to be more data-driven
4035         https://bugs.webkit.org/show_bug.cgi?id=76274
4036
4037         Reviewed by James Robinson.
4038
4039         No longer test culling in CCLayerTreeHostImplTest.blendingOffWhenDrawingLayers.
4040
4041         * tests/CCLayerTreeHostImplTest.cpp:
4042         (WebKit::BlendStateCheckLayer::appendQuads):
4043         (WebKit::BlendStateCheckLayer::setExpectation):
4044         (WebKit::BlendStateCheckLayer::quadsAppended):
4045         (WebKit::BlendStateCheckLayer::BlendStateCheckLayer):
4046         (WebKit::TEST_F):
4047
4048 2012-01-18  Dominic Mazzoni  <dmazzoni@google.com>
4049
4050         Accessibility: Chromium needs methods to scroll an object into view or to a specific location.
4051         https://bugs.webkit.org/show_bug.cgi?id=73460
4052
4053         Reviewed by Chris Fleizach.
4054
4055         * public/WebAccessibilityObject.h:
4056         * src/WebAccessibilityObject.cpp:
4057         (WebKit::WebAccessibilityObject::scrollToMakeVisible):
4058         (WebKit::WebAccessibilityObject::scrollToMakeVisibleWithSubFocus):
4059         (WebKit::WebAccessibilityObject::scrollToGlobalPoint):
4060
4061 2012-01-17  Sheriff Bot  <webkit.review.bot@gmail.com>
4062
4063         Unreviewed, rolling out r105244.
4064         http://trac.webkit.org/changeset/105244
4065         https://bugs.webkit.org/show_bug.cgi?id=76518
4066
4067         broke Chromium Mac (Requested by rolandsteiner on #webkit).
4068
4069         * public/WebAccessibilityObject.h:
4070         * src/WebAccessibilityObject.cpp:
4071
4072 2012-01-17  Dominic Mazzoni  <dmazzoni@google.com>
4073
4074         Accessibility: Chromium needs methods to scroll an object into view or to a specific location.
4075         https://bugs.webkit.org/show_bug.cgi?id=73460
4076
4077         Reviewed by Chris Fleizach.
4078
4079         * public/WebAccessibilityObject.h:
4080         * src/WebAccessibilityObject.cpp:
4081         (WebKit::WebAccessibilityObject::scrollToMakeVisible):
4082         (WebKit::WebAccessibilityObject::scrollToMakeVisibleWithSubFocus):
4083         (WebKit::WebAccessibilityObject::scrollToGlobalPoint):
4084
4085 2012-01-17  Noel Gordon  <noel.gordon@gmail.com>
4086
4087         [chromium] Remove public/WebWorker.h from the gyp projects
4088         https://bugs.webkit.org/show_bug.cgi?id=76512
4089
4090         Reviewed by David Levin.
4091
4092         public/WebWorker.h was removed in r105020, remove references from the gyp projects.
4093
4094         * WebKit.gyp:
4095
4096 2012-01-17  Yury Semikhatsky  <yurys@chromium.org>
4097
4098         Unreviewed. Update Chromium dependency 117616:117882
4099
4100         * DEPS:
4101
4102 2012-01-17  Bill Budge  <bbudge@chromium.org>
4103
4104         AssociatedURLLoader adds support for the HTTP response header Access-Control-Expose-Header.
4105         https://bugs.webkit.org/show_bug.cgi?id=76419
4106
4107         Reviewed by Adam Barth.
4108
4109         * src/AssociatedURLLoader.cpp:
4110         (WebKit::AssociatedURLLoader::ClientAdapter::didReceiveResponse):
4111         * tests/AssociatedURLLoaderTest.cpp:
4112         (WebKit::AssociatedURLLoaderTest::CheckAccessControlHeaders):
4113         (WebKit::TEST_F):
4114
4115 2012-01-16  Bill Budge  <bbudge@chromium.org>
4116
4117         Changes AssociatedURLLoader to remove non-whitelisted HTTP response headers for CORS requests,
4118         and Set-Cookie and Set-Cookie2 response headers for all requests.
4119         https://bugs.webkit.org/show_bug.cgi?id=76228
4120
4121         Reviewed by Adam Barth.
4122
4123         * src/AssociatedURLLoader.cpp:
4124         (WebKit::AssociatedURLLoader::ClientAdapter::create):
4125         (WebKit::AssociatedURLLoader::ClientAdapter::ClientAdapter):
4126         (WebKit::AssociatedURLLoader::ClientAdapter::didReceiveResponse):
4127         (WebKit::AssociatedURLLoader::loadAsynchronously):
4128  &nb