0a66a8edf845fc7524788ea0b0563b9a1a94da6a
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2011-10-05  James Robinson  <jamesr@chromium.org>
2
3         [chromium] Hook WebCompositor interface for input events up to the compositor proper
4         https://bugs.webkit.org/show_bug.cgi?id=69394
5
6         Reviewed by Darin Fisher.
7
8         This teaches WebCompositorImpl about WebCore::CCInputHandler, which WebCompositorImpl implements, and
9         CCScrollController, which WebCompositorImpl will use in the future to do actual scrolling. One thing that is a
10         bit unusual here is WebCore::CCInputHandler::create() which is defined in WebCompositorImpl.cpp.  This is
11         because we need a WebKit object (WebKit::WebCompositorImpl) to be owned by a WebCore object (WebCore::CCThreadProxy).
12         The WebCore side only needs to know about the interface, CCInputHandler, but the actual implementation has to
13         live in WebKit in order to know about the concrete type.
14
15         * src/WebCompositorImpl.cpp:
16         (WebCore::CCInputHandler::create):
17         (WebKit::WebCompositor::fromIdentifier):
18         (WebKit::WebCompositorImpl::fromIdentifier):
19         (WebKit::WebCompositorImpl::WebCompositorImpl):
20         (WebKit::WebCompositorImpl::~WebCompositorImpl):
21         (WebKit::WebCompositorImpl::setClient):
22         (WebKit::WebCompositorImpl::handleInputEvent):
23         (WebKit::WebCompositorImpl::identifier):
24         * src/WebCompositorImpl.h:
25         (WebKit::WebCompositorImpl::create):
26         * src/WebViewImpl.cpp:
27         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
28         * src/WebViewImpl.h:
29         * tests/WebCompositorImplTest.cpp:
30
31 2011-10-05  Anna Cavender  <annacc@chromium.org>
32
33         Functions to make <track> enabled at runtime.
34         https://bugs.webkit.org/show_bug.cgi?id=69352
35
36         Reviewed by Adam Barth.
37
38         * public/WebRuntimeFeatures.h:
39         * src/WebRuntimeFeatures.cpp:
40         (WebKit::WebRuntimeFeatures::enableVideoTrack):
41         (WebKit::WebRuntimeFeatures::isVideoTrackEnabled):
42
43 2011-10-05  Yury Semikhatsky  <yurys@chromium.org>
44
45         Web Inspector: provide a way for persisting worker inspector state
46         https://bugs.webkit.org/show_bug.cgi?id=69422
47
48         Provided an API for saving/restoring worker inspector state.
49
50         Reviewed by Pavel Feldman.
51
52         * public/WebCommonWorkerClient.h:
53         (WebKit::WebCommonWorkerClient::saveDevToolsAgentState):
54         * public/WebSharedWorker.h:
55         (WebKit::WebSharedWorker::reattachDevTools):
56         * src/WebSharedWorkerImpl.cpp:
57         (WebKit::reconnectToWorkerContextInspectorTask):
58         (WebKit::WebSharedWorkerImpl::reattachDevTools):
59         * src/WebSharedWorkerImpl.h:
60         * src/WebWorkerBase.cpp:
61         (WebKit::WebWorkerBase::updateInspectorStateCookie):
62         (WebKit::WebWorkerBase::updateInspectorStateCookieTask):
63         * src/WebWorkerBase.h:
64         * src/WebWorkerClientImpl.cpp:
65         (WebKit::WebWorkerClientImpl::updateInspectorStateCookie):
66         * src/WebWorkerClientImpl.h:
67
68 2011-10-04  Yury Semikhatsky  <yurys@chromium.org>
69
70         [Chromium] Web Inspector: save inspector state into single string instead of string map
71         https://bugs.webkit.org/show_bug.cgi?id=69335
72
73         Now that Chromium side is updated, remove unused methods from the DevToolsAgent API.
74
75         Reviewed by Pavel Feldman.
76
77         * public/WebDevToolsAgent.h:
78         * public/WebDevToolsAgentClient.h:
79         * src/WebDevToolsAgentImpl.cpp:
80         (WebKit::WebDevToolsAgentImpl::updateInspectorStateCookie):
81         * src/WebDevToolsAgentImpl.h:
82
83 2011-10-04  Kent Tamura  <tkent@chromium.org>
84
85         Introduce feature flags for incomplete input types
86         https://bugs.webkit.org/show_bug.cgi?id=68971
87
88         Reviewed by Hajime Morita.
89
90         * features.gypi: Add disabled ENABLE_INPUT_TYPE_* flags.
91
92 2011-10-04  Scott Graham  <scottmg@chromium.org>
93
94         Add GAMEPAD feature flag
95         https://bugs.webkit.org/show_bug.cgi?id=66859
96
97         Reviewed by Darin Fisher.
98
99         * features.gypi:
100
101 2011-10-04  Fady Samuel  <fsamuel@chromium.org>
102
103         [Chromium] Moved files towards GTK removal
104         https://bugs.webkit.org/show_bug.cgi?id=69229
105
106         Reviewed by Tony Chang.
107
108         * WebKit.gyp:
109         * src/WebViewImpl.cpp:
110         (WebKit::WebViewImpl::setScrollbarColors):
111         * src/linux/WebFontInfo.cpp: Renamed from Source/WebKit/chromium/src/gtk/WebFontInfo.cpp.
112         (WebKit::WebFontInfo::familyForChars):
113         (WebKit::WebFontInfo::renderStyleForStrike):
114
115 2011-10-04  James Robinson  <jamesr@chromium.org>
116
117         [chromium] Extract scheduling logic from CCThreadProxy to its own class
118         https://bugs.webkit.org/show_bug.cgi?id=69049
119
120         Reviewed by Kenneth Russell.
121
122         Adds some unit tests for the new CCScheduler class. Since the class is very simple today, the tests are
123         similarly quite simple.
124
125         * WebKit.gypi:
126         * src/WebViewImpl.cpp:
127         (WebKit::WebViewImpl::setRootLayerNeedsDisplay):
128         * tests/CCLayerTreeHostTest.cpp:
129         (WTF::CCLayerTreeHostTest::postSetNeedsCommitThenRedrawToMainThread):
130         (WTF::CCLayerTreeHostTest::dispatchSetNeedsCommitThenRedraw):
131         (WTF::CCLayerTreeHostTestShortlived2::beginTest):
132         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::beginTest):
133         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::drawLayersOnCCThread):
134         (WTF::CCLayerTreeHostTestSetNeedsCommit1::beginTest):
135         (WTF::CCLayerTreeHostTestSetNeedsCommit2::beginTest):
136         (WTF::CCLayerTreeHostTestSetNeedsCommit2::drawLayersOnCCThread):
137         (WTF::CCLayerTreeHostTestSetNeedsRedraw::beginTest):
138         * tests/CCSchedulerTest.cpp: Added.
139
140 2011-10-04  Scott Graham  <scottmg@chromium.org>
141
142         occasional crash in Chromium in dispatching keyEvent
143         https://bugs.webkit.org/show_bug.cgi?id=67941
144
145         Reviewed by Tony Chang.
146
147         Guard Frame while handling keyEvent, as it can lose last reference due
148         to actions of handler.
149
150         * src/WebViewImpl.cpp:
151         (WebKit::WebViewImpl::keyEvent):
152
153 2011-10-04  Anders Carlsson  <andersca@apple.com>
154
155         Remove PlatformWheelEvent::m_isAccepted
156         https://bugs.webkit.org/show_bug.cgi?id=69357
157
158         Reviewed by Darin Adler.
159
160         * src/WebInputEventConversion.cpp:
161         (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
162         m_isAccepted has been removed.
163
164         * src/WebScrollbarImpl.cpp:
165         (WebKit::WebScrollbarImpl::onMouseWheel):
166         Just return the value of handleWheelEvent.
167
168 2011-10-04  Yury Semikhatsky  <yurys@chromium.org>
169
170         [Chromium] Web Inspector: save inspector state into single string instead of string map
171         https://bugs.webkit.org/show_bug.cgi?id=69335
172
173         Added explicit methods for saving and restoring agent runtime state.
174
175         Reviewed by Pavel Feldman.
176
177         * public/WebDevToolsAgent.h:
178         * public/WebDevToolsAgentClient.h:
179         (WebKit::WebDevToolsAgentClient::saveAgentRuntimeState):
180         * src/WebDevToolsAgentImpl.cpp:
181         (WebKit::WebDevToolsAgentImpl::reattach):
182         (WebKit::WebDevToolsAgentImpl::updateInspectorStateCookie):
183         * src/WebDevToolsAgentImpl.h:
184
185 2011-10-03  James Robinson  <jamesr@chromium.org>
186
187         [chromium] Tweak WebCompositor API for input event handling to express three possible states
188         https://bugs.webkit.org/show_bug.cgi?id=69304
189
190         Reviewed by Darin Fisher.
191
192         * public/WebCompositorClient.h:
193         * src/WebCompositorImpl.cpp:
194         (WebKit::WebCompositorImpl::~WebCompositorImpl):
195         (WebKit::WebCompositorImpl::handleInputEvent):
196
197 2011-10-03  Anders Carlsson  <andersca@apple.com>
198
199         Remove custom scrollbar painting hooks
200         https://bugs.webkit.org/show_bug.cgi?id=69163
201
202         Reviewed by Alexey Proskuryakov.
203
204         * src/WebSettingsImpl.cpp:
205         (WebKit::WebSettingsImpl::setShouldPaintCustomScrollbars):
206
207 2011-10-03  Elliot Poger  <epoger@google.com>
208
209         webkit->chromium DEPS roll 103471->103694
210         https://bugs.webkit.org/show_bug.cgi?id=69271
211
212         This brings in a new tools/win/supalink directory from
213         http://src.chromium.org/viewvc/chrome?view=rev&revision=103474
214
215         Reviewed by Adam Barth.
216
217         * DEPS:
218
219 2011-10-03  James Robinson  <jamesr@chromium.org>
220
221         [chromium] Add WebWidget API for accessing the current WebCompositor
222         https://bugs.webkit.org/show_bug.cgi?id=69181
223
224         Reviewed by Darin Fisher.
225
226         Add new WebWidgetClient::did(Activate|Deactivate)Compositor calls intended to replace
227         didActivateAccleratedCompositing(bool) so that the enable call can be parameterized.
228
229         Add a WebCompositor identifier parameter to didEnableAcceleratedCompositing that can be used on the compositor
230         thread to get access to a WebCompositor pointer.
231
232         * public/WebWidget.h:
233         (WebKit::WebWidget::compositor):
234         * src/WebViewImpl.cpp:
235         (WebKit::WebViewImpl::compositor):
236         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
237         * src/WebViewImpl.h:
238
239 2011-10-03  Sheriff Bot  <webkit.review.bot@gmail.com>
240
241         Unreviewed, rolling out r96481.
242         http://trac.webkit.org/changeset/96481
243         https://bugs.webkit.org/show_bug.cgi?id=69251
244
245         Breaks webkit_unit_tests on Linux(dbg) (Requested by hwennborg
246         on #webkit).
247
248         * WebKit.gypi:
249         * public/WebCompositor.h:
250         * public/WebWidgetClient.h:
251         * src/WebCompositorImpl.cpp:
252         (WebKit::WebCompositorImpl::WebCompositorImpl):
253         (WebKit::WebCompositorImpl::~WebCompositorImpl):
254         (WebKit::WebCompositorImpl::setClient):
255         (WebKit::WebCompositorImpl::handleInputEvent):
256         * src/WebCompositorImpl.h:
257         * src/WebViewImpl.cpp:
258         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
259         * src/WebViewImpl.h:
260         * tests/CCLayerTreeHostTest.cpp:
261         (WTF::MockLayerTreeHost::MockLayerTreeHost):
262         * tests/WebCompositorImplTest.cpp: Removed.
263
264 2011-10-02  James Robinson  <jamesr@chromium.org>
265
266         [chromium] Add WebWidget API for accessing the current WebCompositor
267         https://bugs.webkit.org/show_bug.cgi?id=69181
268
269         Reviewed by Darin Fisher.
270
271         Add new WebWidgetClient::did(Activate|Deactivate)Compositor calls intended to replace
272         didActivateAccleratedCompositing(bool) so that the enable call can be parameterized.
273
274         Add a WebCompositor identifier parameter to didEnableAcceleratedCompositing that can be used on the compositor
275         thread to get access to a WebCompositor pointer.
276
277         * public/WebWidget.h:
278         (WebKit::WebWidget::compositor):
279         * src/WebViewImpl.cpp:
280         (WebKit::WebViewImpl::compositor):
281         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
282         * src/WebViewImpl.h:
283
284 2011-09-30  Adrienne Walker  <enne@google.com>
285
286         [chromium] Track separate scroll deltas on the compositor thread
287         https://bugs.webkit.org/show_bug.cgi?id=69034
288
289         Reviewed by James Robinson.
290
291         Add testing support for scroll deltas on layers.
292
293         * WebKit.gypi:
294         * src/WebViewImpl.cpp:
295         (WebKit::WebViewImpl::applyScrollDelta):
296         * src/WebViewImpl.h:
297         * tests/CCLayerTreeHostImplTest.cpp: Added.
298         (WebCore::CCLayerTreeHostImplTest::CCLayerTreeHostImplTest):
299         (WebCore::CCLayerTreeHostImplTest::expectClearedScrollDeltasRecursive):
300         (WebCore::CCLayerTreeHostImplTest::expectContains):
301         (WebCore::TEST_F):
302         * tests/CCLayerTreeHostTest.cpp:
303         (WTF::TestHooks::applyScrollDelta):
304         (WTF::MockLayerTreeHostClient::applyScrollDelta):
305         (WTF::CCLayerTreeHostTest::runTest):
306         (WTF::CCLayerTreeHostTest::doBeginTest):
307         (WTF::CCLayerTreeHostTestThreadOnly::runTest):
308         (WTF::CCLayerTreeHostTestScrollSimple::CCLayerTreeHostTestScrollSimple):
309         (WTF::CCLayerTreeHostTestScrollSimple::beginTest):
310         (WTF::CCLayerTreeHostTestScrollSimple::beginCommitOnCCThread):
311         (WTF::CCLayerTreeHostTestScrollSimple::drawLayersOnCCThread):
312         (WTF::CCLayerTreeHostTestScrollSimple::applyScrollDelta):
313         (WTF::CCLayerTreeHostTestScrollSimple::afterTest):
314         (WTF::TEST_F):
315         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::CCLayerTreeHostTestScrollMultipleRedraw):
316         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::beginTest):
317         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::beginCommitOnCCThread):
318         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::drawLayersOnCCThread):
319         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::applyScrollDelta):
320         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::afterTest):
321         * tests/TreeSynchronizerTest.cpp:
322         (WebCore::TEST):
323
324 2011-09-30  Shawn Singh  <shawnsingh@chromium.org>
325
326         Adding unit tests for LayerChromium.  Emphasis on verifying
327         behavior of notifySyncRequired callback and tree manipulations.
328         https://bugs.webkit.org/show_bug.cgi?id=68572
329
330         Reviewed by James Robinson.
331
332         * WebKit.gypi:
333         * tests/LayerChromiumTest.cpp: Added.
334
335 2011-09-30  James Robinson  <jamesr@chromium.org>
336
337         [chromium] Pass a processed bool in WebCompositorClient::didHandleInputEvent to indicate if the event was processed
338         https://bugs.webkit.org/show_bug.cgi?id=69169
339
340         Reviewed by Darin Fisher.
341
342         If the compositor does not process the input event the embedder might want to do something with it - for
343         example, if the input event type is part of a CTRL+T keyboard accelerator sequence the browser might want to
344         open a new tab. This passes that state through the didHandleInputEvent callback.
345
346         * public/WebCompositorClient.h:
347         * src/WebCompositorImpl.cpp:
348         (WebKit::WebCompositorImpl::handleInputEvent):
349
350 2011-09-30  Elliot Poger  <epoger@google.com>
351
352         webkit->chromium DEPS roll 102910->103471
353         https://bugs.webkit.org/show_bug.cgi?id=69160
354
355         Reviewed by Adam Barth.
356
357         * DEPS:
358
359 2011-09-29  Pavel Feldman  <pfeldman@google.com>
360
361         Web Inspector: [chromium] expose inspector protocol version to the embedder.
362         https://bugs.webkit.org/show_bug.cgi?id=69092
363
364         Reviewed by Yury Semikhatsky.
365
366         * public/WebDevToolsAgent.h:
367         * src/WebDevToolsAgentImpl.cpp:
368         (WebKit::WebDevToolsAgent::inspectorProtocolVersion):
369         (WebKit::WebDevToolsAgent::supportsInspectorProtocolVersion):
370
371 2011-09-30  James Robinson  <jamesr@chromium.org>
372
373         [chromium] Add WebKit API for sending input events to the compositor thread
374         https://bugs.webkit.org/show_bug.cgi?id=69117
375
376         Reviewed by Darin Fisher.
377
378         Adds a new WebKit interface to allow the embedder to pass input events directly to the compositor thread.
379         Exposes the new WebCompositor interface and associated client. These interfaces are slightly different in that
380         they can only be interacted with from the compositor thread.
381
382         Changes the initialization path for the compositor thread to using an externally allocated and managed thread
383         instead of one internal to WebCore so that the embedder can interact with the thread more easily. This also
384         simplifies the startup and shutdown paths.  The contract is that WebCompositor::setThread() must be called
385         before any compositor can be initialized and the passed-in thread must outlive all compositor instances.
386
387         Each WebCompositor instance is associated with a WebWidget.  There isn't any way to get a WebCompositor for a
388         given WebWidget in this patch, that will be done in a follow-up.
389
390         * WebKit.gyp:
391         * public/WebCompositor.h:
392         (WebKit::WebCompositor::~WebCompositor):
393         * public/WebCompositorClient.h:
394         (WebKit::WebCompositorClient::~WebCompositorClient):
395         * src/CCThreadImpl.cpp:
396         (WebKit::CCThreadImpl::create):
397         (WebKit::CCThreadImpl::CCThreadImpl):
398         * src/CCThreadImpl.h:
399         * src/WebCompositorImpl.cpp: Added.
400         (WebKit::WebCompositor::setThread):
401         (WebKit::WebCompositorImpl::WebCompositorImpl):
402         (WebKit::WebCompositorImpl::~WebCompositorImpl):
403         (WebKit::WebCompositorImpl::setClient):
404         (WebKit::WebCompositorImpl::handleInputEvent):
405         * src/WebCompositorImpl.h:
406         (WebKit::WebCompositorImpl::create):
407         * src/WebViewImpl.cpp:
408         * src/WebViewImpl.h:
409         * tests/CCLayerTreeHostTest.cpp:
410         (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest):
411         * tests/CCThreadTest.cpp:
412         (WebKit::TEST):
413
414 2011-09-29  Iain Merrick  <husky@google.com>
415
416         Add unit test for CCLayerSorter
417         https://bugs.webkit.org/show_bug.cgi?id=68622
418
419         Reviewed by James Robinson.
420
421         * WebKit.gypi:
422         * tests/CCLayerSorterTest.cpp: Added.
423         (WebCore::TEST):
424
425 2011-09-29  Hans Wennborg  <hans@chromium.org>
426
427         IndexedDB: Use LevelDB also for in-memory databases
428         https://bugs.webkit.org/show_bug.cgi?id=68903
429
430         Reviewed by Steve Block.
431
432         Don't fall back to SQLite or use a temporary dir for in-memory
433         databases (Incognito and layout tests); LevelDB supports in-memory
434         databases now.
435
436         * public/WebIDBFactory.h:
437         * src/WebIDBFactoryImpl.cpp:
438         (WebKit::WebIDBFactoryImpl::getDatabaseNames):
439         (WebKit::WebIDBFactoryImpl::open):
440
441 2011-09-28  Fady Samuel  <fsamuel@chromium.org>
442
443         [Chromium] Seperate GTK specific Gyp rules from X11 Gyp rules
444         https://bugs.webkit.org/show_bug.cgi?id=68936
445
446         Reviewed by Tony Chang.
447
448         * WebKit.gyp:
449         * public/gtk/WebFontInfo.h:
450         * public/linux/WebFontInfo.h: Copied from Source/WebKit/chromium/public/gtk/WebFontInfo.h.
451
452 2011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
453
454         Unreviewed.  Rolled DEPS.
455
456         * DEPS:
457
458 2011-09-27  Yury Semikhatsky  <yurys@chromium.org>
459
460         [Chromium] Web Inspector: Bug with console.log and popstate/hashchange events
461         https://bugs.webkit.org/show_bug.cgi?id=67732
462
463         Added WebKit part of a new interactive UI test for the bug with duplicated console messages after navigation back.
464
465         Reviewed by Pavel Feldman.
466
467         * src/js/Tests.js:
468         (.TestSuite.prototype.testConsoleOnNavigateBack.firstConsoleMessageReceived):
469         (.TestSuite.prototype.testConsoleOnNavigateBack.didClickLink):
470         (.TestSuite.prototype.testConsoleOnNavigateBack.didNavigateBack):
471         (.TestSuite.prototype.testConsoleOnNavigateBack.didCompleteNavigation):
472         (.TestSuite.prototype.testConsoleOnNavigateBack):
473
474 2011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
475
476         Unreviewed.  Rolled DEPS.
477
478         * DEPS:
479
480 2011-09-26  Nat Duca  <nduca@chromium.org>
481
482         [chromium] Make CCThreadProxy draw
483         https://bugs.webkit.org/show_bug.cgi?id=67417
484
485         Disable CCLayerTreeHostTest temporarily. Will re-enable
486         with https://bugs.webkit.org/show_bug.cgi?id=67418
487
488         Reviewed by James Robinson.
489
490         * tests/CCLayerTreeHostTest.cpp:
491
492 2011-09-26  Joshua Bell  <jsbell@chromium.org>
493
494         IndexedDB: Second half of IDBFactory.getDatabaseNames implementation
495         https://bugs.webkit.org/show_bug.cgi?id=68818
496
497         Reviewed by Tony Chang.
498
499         Adds ability to enumerate IndexedDB databases within an origin.
500
501         * src/IDBCallbacksProxy.cpp:
502         (WebKit::IDBCallbacksProxy::onSuccess):
503         * src/IDBCallbacksProxy.h:
504         * src/IDBFactoryBackendProxy.cpp:
505         (WebKit::IDBFactoryBackendProxy::getDatabaseNames):
506         * src/IDBFactoryBackendProxy.h:
507         * src/WebIDBCallbacksImpl.cpp:
508         (WebKit::WebIDBCallbacksImpl::onSuccess):
509         * src/WebIDBCallbacksImpl.h:
510         * src/WebIDBFactoryImpl.cpp:
511         (WebKit::WebIDBFactoryImpl::getDatabaseNames):
512         * src/WebIDBFactoryImpl.h:
513
514 2011-09-26  Fady Samuel  <fsamuel@chromium.org>
515
516         Removed an unnecessary include in WebFrameImpl
517         https://bugs.webkit.org/show_bug.cgi?id=68834
518
519         Reviewed by Darin Fisher.
520
521         * src/WebFrameImpl.cpp:
522
523 2011-09-26  Mihai Parparita  <mihaip@chromium.org>
524
525         Fix copy and paste error in r96002.
526
527         * tests/InnerGestureRecognizerTest.cpp:
528         (TEST_F):
529
530 2011-09-26  Mihai Parparita  <mihaip@chromium.org>
531
532         Disable Chromium gesture recognizer tests that started to fail on the
533         Mac bots recently.
534
535         * tests/InnerGestureRecognizerTest.cpp:
536         (TEST_F):
537
538 2011-09-26  W. James MacLean  <wjmaclean@chromium.org>
539
540         [chromium] Revise zoom animator backend to use full transform instead of just scale.
541         https://bugs.webkit.org/show_bug.cgi?id=68535
542
543         Reviewed by Kenneth Russell.
544
545         * src/WebViewImpl.cpp:
546         (WebKit::WebViewImpl::setZoomLevel):
547         (WebKit::WebViewImpl::setRootLayerNeedsDisplay):
548
549 2011-09-26  Sheriff Bot  <webkit.review.bot@gmail.com>
550
551         Unreviewed, rolling out r95256.
552         http://trac.webkit.org/changeset/95256
553         https://bugs.webkit.org/show_bug.cgi?id=68814
554
555         Temporary CRASH calls no longer needed (Requested by enne on
556         #webkit).
557
558         * src/WebViewImpl.cpp:
559         (WebKit::WebViewImpl::composite):
560
561 2011-09-26  Sheriff Bot  <webkit.review.bot@gmail.com>
562
563         Unreviewed.  Rolled DEPS.
564
565         * DEPS:
566
567 2011-09-24  Adam Barth  <abarth@webkit.org>
568
569         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
570         https://bugs.webkit.org/show_bug.cgi?id=68767
571
572         Reviewed by Eric Seidel.
573
574         * features.gypi:
575         * src/ApplicationCacheHost.cpp:
576         * src/ApplicationCacheHostInternal.h:
577         * src/AssertMatchingEnums.cpp:
578         * src/ChromeClientImpl.cpp:
579         (WebKit::ChromeClientImpl::reachedApplicationCacheOriginQuota):
580         * src/ChromeClientImpl.h:
581         * src/WebDataSourceImpl.cpp:
582         (WebKit::WebDataSourceImpl::applicationCacheHost):
583         * src/WebRuntimeFeatures.cpp:
584         (WebKit::WebRuntimeFeatures::enableApplicationCache):
585         (WebKit::WebRuntimeFeatures::isApplicationCacheEnabled):
586
587 2011-09-23  Adam Klein  <adamk@chromium.org>
588
589         Add ENABLE_MUTATION_OBSERVERS feature flag
590         https://bugs.webkit.org/show_bug.cgi?id=68732
591
592         Reviewed by Ojan Vafai.
593
594         This flag will guard an implementation of the "Mutation Observers" proposed in
595         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
596
597         * features.gypi:
598
599 2011-09-23  Jay Civelli  <jcivelli@chromium.org>
600
601         Making some WebBlob methods exportable.
602         This is needed by the shared lib chromium build.
603         https://bugs.webkit.org/show_bug.cgi?id=68709
604
605         Reviewed by Darin Fisher.
606
607         * public/WebBlob.h:
608
609 2011-09-23  Varun Jain  <varunjain@google.com>
610
611         Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests 
612         https://bugs.webkit.org/show_bug.cgi?id=68198
613
614         Reviewed by Dimitri Glazkov.
615
616         * public/WebView.h:
617         (WebKit::WebView::scrollFocusedNodeIntoRect):
618         * src/WebViewImpl.cpp:
619         (WebKit::WebViewImpl::scrollFocusedNodeIntoRect):
620
621 2011-09-23  Mihai Parparita  <mihaip@chromium.org>
622
623         Unreviewed, rolling out r95860.
624         http://trac.webkit.org/changeset/95860
625         https://bugs.webkit.org/show_bug.cgi?id=68648
626
627         Breaks overhang rendering on Chromium Mac
628
629         * features.gypi:
630
631 2011-09-23  Adam Klein  <adamk@chromium.org>
632
633         [chromium] Remove WEBWIDGET_HAS_ANIMATE_CHANGES #define
634         https://bugs.webkit.org/show_bug.cgi?id=68720
635
636         Reviewed by James Robinson.
637
638         References to this macro were removed in http://crrev.com/102314.
639
640         * public/WebWidget.h:
641
642 2011-09-23  Stephen Chenney  <schenney@chromium.org>
643
644         [Chromium] Crash in WebCore::DatabaseObserver
645         https://bugs.webkit.org/show_bug.cgi?id=67805
646
647         Reviewed by David Levin.
648
649         * src/DatabaseObserver.cpp:
650         (WebCore::DatabaseObserver::canEstablishDatabase): Added a check for a
651         null frame or page, and return false if null. Investigated
652         changing the fall-through return value to false but decided against
653         it given the way the code is used and existing default values for
654         related code. Reproduction and testing depends on having a document
655         with no frame or no page, which sometimes happens in practice but is
656         hard to construct explicitly.
657
658 2011-09-23  Scott Graham  <scottmg@chromium.org>
659
660         occasional crash in Chromium in dispatching keyEvent
661         https://bugs.webkit.org/show_bug.cgi?id=67941
662
663         Reviewed by Darin Fisher.
664
665         Use focusedWebCoreNode() to handle null document for frame when
666         retrieving focused node in handling keyEvent.
667
668         * src/WebViewImpl.cpp:
669         (WebKit::WebViewImpl::keyEvent):
670
671 2011-09-23  Fady Samuel  <fsamuel@chromium.org>
672
673         Refactor paintOverhangAreas to allow non-Mac Chromium platforms to reuse code
674         https://bugs.webkit.org/show_bug.cgi?id=68648
675
676         Reviewed by Dimitri Glazkov.
677
678         * features.gypi:
679
680 2011-09-23  Elliot Poger  <epoger@google.com>
681
682         update layout_tests to account for new default of use_skia=1
683         https://bugs.webkit.org/show_bug.cgi?id=68698
684
685         Rolls Source/WebKit/chromium/DEPS to pick up new default use_skia=1
686         from http://src.chromium.org/viewvc/chrome?view=rev&revision=102532
687         (Chromium-on-Mac now uses the Skia graphics library instead of
688         Core Graphics).
689
690         Also updates layout_test code to work with that change.
691
692         Reviewed by Mihai Parparita.
693
694         * DEPS:
695
696 2011-09-22  Sheriff Bot  <webkit.review.bot@gmail.com>
697
698         Unreviewed.  Rolled DEPS.
699
700         * DEPS:
701
702 2011-09-22  James Robinson  <jamesr@chromium.org>
703
704         Unreviewed, rolling out r95699.
705         http://trac.webkit.org/changeset/95699
706         https://bugs.webkit.org/show_bug.cgi?id=67417
707
708         Makes many chromium compositor tests crash
709
710         * tests/CCLayerTreeHostTest.cpp:
711         (WTF::CCLayerTreeHostTest::doBeginTest):
712         (WTF::TEST_F):
713         * tests/TreeSynchronizerTest.cpp:
714         (WebCore::TEST):
715
716 2011-09-22  Nat Duca  <nduca@chromium.org>
717
718         [chromium] Make CCThreadProxy draw
719         https://bugs.webkit.org/show_bug.cgi?id=67417
720
721         Disable CCLayerTreeHostTest temporarily. Will re-enable
722         with https://bugs.webkit.org/show_bug.cgi?id=67418
723
724         Reviewed by James Robinson.
725
726         * tests/CCLayerTreeHostTest.cpp:
727
728 2011-09-21  Joshua Bell  <jsbell@chromium.org>
729
730         Implement WebKit side of IDBFactory::getDatabaseNames
731         https://bugs.webkit.org/show_bug.cgi?id=68037
732
733         Reviewed by Tony Chang.
734
735         Interface changes and stub implementations for
736         new IndexedDB IDBFactory.getDatabaseNames. This is
737         part one of a two-sided patch.
738
739         * public/WebIDBCallbacks.h:
740         (WebKit::WebIDBCallbacks::onSuccess):
741         * public/WebIDBFactory.h:
742         (WebKit::WebIDBFactory::getDatabaseNames):
743
744 2011-09-21  Robert Kroeger  <rjkroege@chromium.org>
745
746         [chromium] Code cleanup in gesture recognizer unit tests
747         https://bugs.webkit.org/show_bug.cgi?id=68561
748
749         Fix some style nits in the gesture recognizer unit tests.
750
751         Reviewed by David Levin.
752
753         * tests/InnerGestureRecognizerTest.cpp:
754         (InspectableGestureRecognizerChromium::stubEdgeFunction):
755         (BuildablePlatformTouchPoint::BuildablePlatformTouchPoint):
756         (TEST_F):
757
758 2011-09-21  Aaron Boodman  <aa@chromium.org>
759
760         Remove old and busted context notification APIs
761         https://bugs.webkit.org/show_bug.cgi?id=68381
762
763         Reviewed by David Levin.
764
765         * public/WebFrameClient.h:
766         * src/FrameLoaderClientImpl.cpp:
767         (WebKit::FrameLoaderClientImpl::didCreateScriptContext):
768         (WebKit::FrameLoaderClientImpl::willReleaseScriptContext):
769
770 2011-09-21  Xianzhu Wang  <wangxianzhu@chromium.org>
771
772         Ensure TestWebKitAPI works on mac, win, chromium-mac and chromium-linux
773         https://bugs.webkit.org/show_bug.cgi?id=68206
774
775         Reviewed by Tony Chang.
776
777         * WebKit.gyp:
778
779 2011-09-21  chandra shekar vallala  <chandra.vallala@gmail.com>
780
781         [chromium]ClearFocusedNode doesn't clear the cursor or selection in editable div element.
782         https://bugs.webkit.org/show_bug.cgi?id=68351
783
784         Reviewed by Darin Fisher.
785
786         * src/WebViewImpl.cpp:
787         (WebKit::WebViewImpl::clearFocusedNode):
788
789 2011-09-20  Jay Civelli  <jcivelli@chromium.org>
790
791         This CL makes it possible to create a blob from Chromium.
792         https://bugs.webkit.org/show_bug.cgi?id=68286
793
794         Reviewed by Darin Fisher.
795
796         * WebKit.gyp:
797         * public/WebBlob.h: Added.
798         * src/WebBlob.cpp: Added.
799
800 2011-09-20  Jochen Eisinger  <jochen@chromium.org>
801
802         [chromium] remove obsolete WebPermissionClient::allowImages method
803         https://bugs.webkit.org/show_bug.cgi?id=68380
804
805         Reviewed by Darin Fisher.
806
807         * DEPS:
808         * public/WebPermissionClient.h:
809         (WebKit::WebPermissionClient::allowImage):
810
811 2011-09-20  Aaron Boodman  <aa@chromium.org>
812
813         Rework script context creation/release notifications
814         https://bugs.webkit.org/show_bug.cgi?id=67828
815
816         Reviewed by Adam Barth.
817
818         * public/WebFrameClient.h:
819         (WebKit::WebFrameClient::didCreateScriptContext):
820         (WebKit::WebFrameClient::didDestroyScriptContext):
821         (WebKit::WebFrameClient::willReleaseScriptContext):
822         * src/FrameLoaderClientImpl.cpp:
823         (WebKit::FrameLoaderClientImpl::didCreateScriptContext):
824         (WebKit::FrameLoaderClientImpl::willReleaseScriptContext):
825         * src/FrameLoaderClientImpl.h:
826         * tests/WebFrameTest.cpp:
827         (WebKit::TEST_F):
828         (WebKit::ContextLifetimeTestWebFrameClient::Notification::Notification):
829         (WebKit::ContextLifetimeTestWebFrameClient::Notification::~Notification):
830         (WebKit::ContextLifetimeTestWebFrameClient::Notification::Equals):
831         (WebKit::ContextLifetimeTestWebFrameClient::~ContextLifetimeTestWebFrameClient):
832         (WebKit::ContextLifetimeTestWebFrameClient::reset):
833         (WebKit::ContextLifetimeTestWebFrameClient::didCreateScriptContext):
834         (WebKit::ContextLifetimeTestWebFrameClient::willReleaseScriptContext):
835         * tests/data/context_notifications_test.html: Added.
836         * tests/data/context_notifications_test_frame.html: Added.
837
838 2011-09-19  Geoffrey Garen  <ggaren@apple.com>
839
840         Removed ENABLE_JSC_MULTIPLE_THREADS and related #ifdefs.
841         https://bugs.webkit.org/show_bug.cgi?id=68422
842
843         Missed this one case before.
844
845         * features.gypi:
846
847 2011-09-19  Raymond Toy  <rtoy@google.com>
848
849         Ask for audio hardware buffer size instead of using hardwired constants.
850         https://bugs.webkit.org/show_bug.cgi?id=67952
851
852         Reviewed by Kenneth Russell.
853
854         * public/WebKitPlatformSupport.h:
855         (WebKit::WebKitPlatformSupport::audioHardwareBufferSize): Declare
856         new member function audioHardwareBufferSize.
857         * src/AudioDestinationChromium.cpp:
858         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
859         Call audioHardwareBufferSize() to get buffer size; update
860         m_callbackBuffersize and m_renderCountPerCallback appropriately.
861         Remove global variables callbackBufferSize and
862         renderCountPerCallback.  Add constant for maximum
863         allowed buffer size and verify we don't exceed it.
864         (WebCore::AudioDestinationChromium::render): Use new member
865         variables instead of globals.
866         * src/AudioDestinationChromium.h:
867         Define new member variables m_callbackBufferSize and
868         m_renderCountPerCallback
869
870 2011-09-19  Adam Barth  <abarth@webkit.org>
871
872         Always enable ENABLE(EVENTSOURCE)
873         https://bugs.webkit.org/show_bug.cgi?id=68414
874
875         Reviewed by Eric Seidel.
876
877         * features.gypi:
878
879 2011-09-19  Robert Kroeger  <rjkroege@chromium.org>
880
881         Suppress flakey test on windows in Chromium gesture recognizer
882         https://bugs.webkit.org/show_bug.cgi?id=68408
883
884         Reviewed by Adam Barth.
885
886         * tests/InnerGestureRecognizerTest.cpp:
887         (TEST_F):
888
889 2011-09-19  Dominic Mazzoni  <dmazzoni@google.com>
890
891         Expose AXObjectCache methods so that WebAccessibilityCache
892         can be deleted.
893         https://bugs.webkit.org/show_bug.cgi?id=68225
894
895         Reviewed by Dimitri Glazkov.
896
897         This patch exposes the functionality needed from AXObjectCache
898         with new methods in WebAccessibilityObject and WebDocument.
899         Next, Chromium will be updated to use only these methods and
900         not WebAccessibilityCache. Then, WebAccessibilityCache can be
901         deleted from WebKit.
902
903         * public/WebAccessibilityObject.h:
904         * public/WebDocument.h:
905         * src/WebAccessibilityObject.cpp:
906         (WebKit::WebAccessibilityObject::enableAccessibility):
907         (WebKit::WebAccessibilityObject::accessibilityEnabled):
908         (WebKit::WebAccessibilityObject::axID):
909         * src/WebDocument.cpp:
910         (WebKit::WebDocument::accessibilityObject):
911         (WebKit::WebDocument::accessibilityObjectFromID):
912
913 2011-09-19  Bill Budge  <bbudge@chromium.org>
914
915         Perform HTTP method and header validation in AssociatedURLLoader for
916         requests coming from untrusted code (eg. Native Client in Chrome). Use
917         the same code as XMLHttpRequest to reduce code duplication and have
918         behavior identical to XHR in Javascript. Add an 'untrustedHTTP' option
919         to WebURLLoaderOptions, which AssociatedURLLoader can use to determine
920         if it should check the request method and headers.
921         https://bugs.webkit.org/show_bug.cgi?id=67655
922
923         Reviewed by Darin Fisher.
924
925         * public/WebURLLoaderOptions.h:
926         (WebKit::WebURLLoaderOptions::WebURLLoaderOptions):
927         * src/AssociatedURLLoader.cpp:
928         (WebKit::AssociatedURLLoader::ClientAdapter::setDelayedError):
929         (WebKit::AssociatedURLLoader::loadAsynchronously):
930         * tests/AssociatedURLLoaderTest.cpp:
931         (WebKit::AssociatedURLLoaderTest::CheckMethodFails):
932         (WebKit::AssociatedURLLoaderTest::CheckHeaderFails):
933         (WebKit::AssociatedURLLoaderTest::CheckFails):
934         (WebKit::TEST_F):
935
936 2011-09-19  Adam Barth  <abarth@webkit.org>
937
938         Rename ENABLE(OPENTYPE_SANITIZER) to USE(OPENTYPE_SANITIZER)
939         https://bugs.webkit.org/show_bug.cgi?id=68292
940
941         Reviewed by Eric Seidel.
942
943         * features.gypi:
944
945 2011-09-19  Sheriff Bot  <webkit.review.bot@gmail.com>
946
947         Unreviewed, rolling out r95385 and r95457.
948         http://trac.webkit.org/changeset/95385
949         http://trac.webkit.org/changeset/95457
950         https://bugs.webkit.org/show_bug.cgi?id=68395
951
952         Broke chromium browser_tests (Requested by dslomov on
953         #webkit).
954
955         * public/WebFrameClient.h:
956         (WebKit::WebFrameClient::didCreateIsolatedScriptContext):
957         * src/FrameLoaderClientImpl.cpp:
958         (WebKit::FrameLoaderClientImpl::didCreateScriptContextForFrame):
959         (WebKit::FrameLoaderClientImpl::didDestroyScriptContextForFrame):
960         (WebKit::FrameLoaderClientImpl::didCreateIsolatedScriptContext):
961         * src/FrameLoaderClientImpl.h:
962         * tests/WebFrameTest.cpp:
963         (WebKit::TEST_F):
964         * tests/data/context_notifications_test.html: Removed.
965         * tests/data/context_notifications_test_frame.html: Removed.
966
967 2011-09-19  Aaron Boodman  <aa@chromium.org>
968
969         r95385 broke Chromium. Fix it.
970         https://bugs.webkit.org/show_bug.cgi?id=68378
971
972         Unreviewed, build fix.
973
974         * src/FrameLoaderClientImpl.cpp:
975         (WebKit::FrameLoaderClientImpl::didCreateScriptContext):
976         (WebKit::FrameLoaderClientImpl::willReleaseScriptContext):
977
978 2011-09-19  Jochen Eisinger  <jochen@chromium.org>
979
980         Unreviewed, build fix
981
982         It's not enough to disable clang plugins.
983
984         * gyp_webkit:
985
986 2011-09-19  Jochen Eisinger  <jochen@chromium.org>
987
988         [chromium] Disable clang when building chromium in WebKit
989         https://bugs.webkit.org/show_bug.cgi?id=68343
990
991         Reviewed by Adam Barth.
992
993         * DEPS:
994         * gyp_webkit:
995
996 2011-09-19  Robert Kroeger  <rjkroege@chromium.org>
997
998         [chromium] Gesture recognizer fires taptype only every other touch
999         down/up sequence https://bugs.webkit.org/show_bug.cgi?id=68368
1000  
1001         Reviewed by Adam Barth.
1002
1003         The addition of doubletap detection to the gesture recognizer missed some of the
1004         outgoing edges in the recognizer state machine. Thsi change simplifies the logic
1005         and handles all outgoing edges.
1006
1007
1008         * tests/InnerGestureRecognizerTest.cpp:
1009         Additional tests added to ensure that all edges in the state
1010         machine are accounted for.
1011         (BuildablePlatformTouchEvent::BuildablePlatformTouchEvent):
1012         (SimulateAndTestFirstClick):
1013         (TEST_F):
1014
1015 2011-09-19  Peter Rybin  <peter.rybin@gmail.com>
1016
1017         TextPosition refactoring: Merge ZeroBasedNumber and OneBasedNumber classes
1018         https://bugs.webkit.org/show_bug.cgi?id=63541
1019
1020         Reviewed by Adam Barth.
1021
1022         * src/WebFrameImpl.cpp:
1023         (WebKit::WebFrameImpl::executeScript):
1024         (WebKit::WebFrameImpl::executeScriptInIsolatedWorld):
1025         (WebKit::WebFrameImpl::executeScriptAndReturnValue):
1026
1027 2011-09-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1028
1029         Unreviewed, rolling out r95416.
1030         http://trac.webkit.org/changeset/95416
1031         https://bugs.webkit.org/show_bug.cgi?id=68367
1032
1033         Broke chromium-mac (Requested by beverloo on #webkit).
1034
1035         * DEPS:
1036
1037 2011-09-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1038
1039         Unreviewed.  Rolled DEPS.
1040
1041         * DEPS:
1042
1043 2011-09-19  Ilya Tikhonovsky  <loislo@chromium.org>
1044
1045         Web Inspector: extend timeline coverage.
1046         https://bugs.webkit.org/show_bug.cgi?id=68260
1047
1048         Another place with js function call from native.
1049
1050         Reviewed by Pavel Feldman.
1051
1052         * src/WebDevToolsFrontendImpl.cpp:
1053         (WebKit::WebDevToolsFrontendImpl::dispatchOnInspectorFrontend):
1054
1055 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
1056
1057         FrameLoaderClient BackForwardList-related methods are unsued
1058         https://bugs.webkit.org/show_bug.cgi?id=68293
1059
1060         Reviewed by Darin Adler.
1061
1062         Remove FrameLoaderClient methods that were added by r51629, since only        
1063         the old (since-deleted) Android port needed them.
1064
1065         * src/FrameLoaderClientImpl.cpp:
1066         * src/FrameLoaderClientImpl.h:
1067
1068 2011-09-17  Aaron Boodman  <aa@chromium.org>
1069
1070         Rework script context creation/release notifications
1071         https://bugs.webkit.org/show_bug.cgi?id=67828
1072
1073         Reviewed by Adam Barth.
1074
1075         * public/WebFrameClient.h:
1076         (WebKit::WebFrameClient::didCreateScriptContext):
1077         (WebKit::WebFrameClient::didDestroyScriptContext):
1078         (WebKit::WebFrameClient::willReleaseScriptContext):
1079         * src/FrameLoaderClientImpl.cpp:
1080         (WebKit::FrameLoaderClientImpl::didCreateScriptContext):
1081         (WebKit::FrameLoaderClientImpl::willReleaseScriptContext):
1082         * src/FrameLoaderClientImpl.h:
1083
1084 2011-09-17  chandra shekar vallala  <chandra.vallala@motorola.com>
1085
1086         [chromium]The focus of an input field inside an Iframe doesn't get cleared even though clearFocusedNode is called.
1087         https://bugs.webkit.org/show_bug.cgi?id=68162
1088
1089         Add a unit-test to check whether the focus of node is get cleared when clearFocusNode called.
1090         This test check for focus of input node inside a frame after clear focus get called.
1091         Reviewed by Adam Barth.
1092
1093         * src/WebViewImpl.cpp:
1094         (WebKit::WebViewImpl::clearFocusedNode):
1095         * tests/WebFrameTest.cpp:
1096         (WebKit::TEST_F): Added a unit test to make sure that focus of the node is get cleared.
1097         * tests/data/autofocus_input_field_iframe.html: Added.
1098         * tests/data/iframe_clear_focused_node_test.html: Added.
1099
1100 2011-09-16  Adam Barth  <abarth@webkit.org>
1101
1102         Rename ENABLE(LEVELDB) to USE(LEVELDB)
1103         https://bugs.webkit.org/show_bug.cgi?id=68290
1104
1105         Reviewed by Darin Adler.
1106
1107         * features.gypi:
1108         * tests/IDBLevelDBCodingTest.cpp:
1109
1110 2011-09-16  Jochen Eisinger  <jochen@chromium.org>
1111
1112         Rename FrameLoaderClient::allowImages to FrameLoaderClient::allowImage and include the image URL as parameter
1113         https://bugs.webkit.org/show_bug.cgi?id=68071
1114
1115         Reviewed by Adam Barth.
1116
1117         * public/WebPermissionClient.h:
1118         (WebKit::WebPermissionClient::allowImage):
1119         * src/FrameLoaderClientImpl.cpp:
1120         (WebKit::FrameLoaderClientImpl::allowImage):
1121         * src/FrameLoaderClientImpl.h:
1122
1123 2011-09-16  Dmitry Lomov  <dslomov@google.com>
1124
1125         https://bugs.webkit.org/show_bug.cgi?id=67733
1126         [Chromium] Separate WebKit initialization and V8 initialization in chromium port.
1127
1128         Reviewed by Darin Fisher.
1129
1130         * public/WebKit.h:
1131         * src/WebKit.cpp:
1132         (WebKit::initialize):
1133         (WebKit::initializeWithoutV8):
1134
1135 2011-09-16  Vincent Scheib  <scheib@chromium.org>
1136
1137         [Chromium] Add movementX/Y members to WebMouseEvent
1138         https://bugs.webkit.org/show_bug.cgi?id=68174
1139
1140         Reviewed by Dimitri Glazkov.
1141
1142         * public/WebInputEvent.h:
1143         (WebKit::WebMouseEvent::WebMouseEvent):
1144
1145 2011-09-16  Nat Duca  <nduca@chromium.org>
1146
1147         [chromium] Create WebGL layer for graphics contexts on demand
1148         https://bugs.webkit.org/show_bug.cgi?id=68288
1149
1150         Reviewed by James Robinson.
1151
1152         * src/GraphicsContext3DChromium.cpp:
1153         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
1154         (WebCore::GraphicsContext3DPrivate::platformLayer):
1155         * src/GraphicsContext3DPrivate.h:
1156
1157 2011-09-16  chandra shekar v  <chandra.vallala@motorola.com>
1158
1159         [chromium] compilation failed in target 'webkit_unit_tests'.
1160         https://bugs.webkit.org/show_bug.cgi?id=68078
1161
1162         Reviewed by Adam Barth.
1163
1164         * tests/WebFrameTest.cpp:
1165         (WebKit::TestReloadDoesntRedirectWebFrameClient::decidePolicyForNavigation):
1166
1167 2011-09-16  Sheriff Bot  <webkit.review.bot@gmail.com>
1168
1169         Unreviewed, rolling out r95312.
1170         http://trac.webkit.org/changeset/95312
1171         https://bugs.webkit.org/show_bug.cgi?id=68277
1172
1173         It's innocent, innocent I tell you! (Requested by jamesr_ on
1174         #webkit).
1175
1176         * tests/CCLayerTreeHostTest.cpp:
1177         (WTF::TestHooks::beginCommitOnCCThread):
1178         (WTF::TestHooks::commitCompleteOnCCThread):
1179         (WTF::TestHooks::drawLayersOnCCThread):
1180         (WTF::MockLayerTreeHostImpl::create):
1181         (WTF::MockLayerTreeHostImpl::beginCommit):
1182         (WTF::MockLayerTreeHostImpl::commitComplete):
1183         (WTF::MockLayerTreeHostImpl::drawLayers):
1184         (WTF::MockLayerTreeHostImpl::MockLayerTreeHostImpl):
1185         (WTF::MockLayerTreeHost::create):
1186         (WTF::MockLayerTreeHost::createLayerTreeHostImpl):
1187         (WTF::MockLayerTreeHost::MockLayerTreeHost):
1188         (WTF::CompositorMockWebGraphicsContext3D::create):
1189         (WTF::CompositorMockWebGraphicsContext3D::makeContextCurrent):
1190         (WTF::CompositorMockWebGraphicsContext3D::createProgram):
1191         (WTF::CompositorMockWebGraphicsContext3D::createShader):
1192         (WTF::CompositorMockWebGraphicsContext3D::getShaderiv):
1193         (WTF::CompositorMockWebGraphicsContext3D::getProgramiv):
1194         (WTF::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
1195         (WTF::MockLayerTreeHostClient::create):
1196         (WTF::MockLayerTreeHostClient::animateAndLayout):
1197         (WTF::MockLayerTreeHostClient::createCompositorThread):
1198         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
1199         (WTF::MockLayerTreeHostClient::createRootLayerPainter):
1200         (WTF::MockLayerTreeHostClient::didRecreateGraphicsContext):
1201         (WTF::MockLayerTreeHostClient::MockLayerTreeHostClient):
1202         (WTF::CCLayerTreeHostTest::postSetNeedsCommitToMainThread):
1203         (WTF::CCLayerTreeHostTest::postSetNeedsRedrawToMainThread):
1204         (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest):
1205         (WTF::CCLayerTreeHostTest::onBeginTest):
1206         (WTF::CCLayerTreeHostTest::onEndTest):
1207         (WTF::CCLayerTreeHostTest::dispatchSetNeedsCommit):
1208         (WTF::CCLayerTreeHostTest::dispatchSetNeedsRedraw):
1209         (WTF::CCLayerTreeHostTest::runTest):
1210         (WTF::CCLayerTreeHostTest::testTimeout):
1211         (WTF::CCLayerTreeHostTest::doBeginTest):
1212         (WTF::CCLayerTreeHostTestShortlived2::beginTest):
1213         (WTF::CCLayerTreeHostTestShortlived3::beginTest):
1214         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::beginTest):
1215         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::commitCompleteOnCCThread):
1216         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::drawLayersOnCCThread):
1217         (WTF::CCLayerTreeHostTestSetNeedsCommit1::beginTest):
1218         (WTF::CCLayerTreeHostTestSetNeedsCommit1::drawLayersOnCCThread):
1219         (WTF::CCLayerTreeHostTestSetNeedsCommit1::commitCompleteOnCCThread):
1220         (WTF::CCLayerTreeHostTestSetNeedsCommit2::beginTest):
1221         (WTF::CCLayerTreeHostTestSetNeedsCommit2::drawLayersOnCCThread):
1222         (WTF::CCLayerTreeHostTestSetNeedsCommit2::commitCompleteOnCCThread):
1223         (WTF::CCLayerTreeHostTestSetNeedsRedraw::beginTest):
1224         (WTF::CCLayerTreeHostTestSetNeedsRedraw::drawLayersOnCCThread):
1225         (WTF::CCLayerTreeHostTestSetNeedsRedraw::commitCompleteOnCCThread):
1226
1227 2011-09-16  Sheriff Bot  <webkit.review.bot@gmail.com>
1228
1229         Unreviewed, rolling out r95309.
1230         http://trac.webkit.org/changeset/95309
1231         https://bugs.webkit.org/show_bug.cgi?id=68271
1232
1233         Broke many chromium gpu tests. (Requested by dave_levin on
1234         #webkit).
1235
1236         * tests/CCLayerTreeHostTest.cpp:
1237         (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest):
1238         (WTF::CCLayerTreeHostTest::animateAndLayout):
1239         (WTF::CCLayerTreeHostTest::beginCommitOnCCThread):
1240         (WTF::CCLayerTreeHostTest::beginCommitOnMainThread):
1241         (WTF::CCLayerTreeHostTest::commitOnCCThread):
1242         (WTF::CCLayerTreeHostTest::commitCompleteOnCCThread):
1243         (WTF::CCLayerTreeHostTest::commitCompleteOnMainThread):
1244         (WTF::CCLayerTreeHostTest::drawLayersAndPresentOnCCThread):
1245         (WTF::CCLayerTreeHostTest::updateLayers):
1246         (WTF::CCLayerTreeHostTest::onBeginTest):
1247         (WTF::CCLayerTreeHostTest::doEndTest):
1248         (WTF::CCLayerTreeHostTest::onEndTest):
1249         (WTF::CCLayerTreeHostTest::runTest):
1250         (WTF::CCLayerTreeHostTest::testTimeout):
1251         (WTF::MockLayerTreeHostClient::MockLayerTreeHostClient):
1252         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
1253         (WTF::MockLayerTreeHostClient::animateAndLayout):
1254         (WTF::MockLayerTreeHostClient::updateLayers):
1255         (WTF::MockLayerTreeHostCommitter::create):
1256         (WTF::MockLayerTreeHostCommitter::commit):
1257         (WTF::MockLayerTreeHostCommitter::MockLayerTreeHostCommitter):
1258         (WTF::MockLayerTreeHostImpl::create):
1259         (WTF::MockLayerTreeHostImpl::beginCommit):
1260         (WTF::MockLayerTreeHostImpl::commitComplete):
1261         (WTF::MockLayerTreeHostImpl::drawLayersAndPresent):
1262         (WTF::MockLayerTreeHostImpl::MockLayerTreeHostImpl):
1263         (WTF::MockLayerTreeHostImplProxy::create):
1264         (WTF::MockLayerTreeHostImplProxy::createLayerTreeHostImpl):
1265         (WTF::MockLayerTreeHostImplProxy::MockLayerTreeHostImplProxy):
1266         (WTF::MockLayerTreeHost::MockLayerTreeHost):
1267         (WTF::MockLayerTreeHost::createLayerTreeHostImplProxy):
1268         (WTF::MockLayerTreeHost::updateLayers):
1269         (WTF::MockLayerTreeHost::createLayerTreeHostCommitter):
1270         (WTF::MockLayerTreeHost::beginCommit):
1271         (WTF::MockLayerTreeHost::commitComplete):
1272         (WTF::CCLayerTreeHostTest::doBeginTest):
1273         (WTF::CCLayerTreeHostTestShortlived2::beginTest):
1274         (WTF::CCLayerTreeHostTestShortlived3::beginTest):
1275         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::beginTest):
1276         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::commitCompleteOnCCThread):
1277         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::drawLayersAndPresentOnCCThread):
1278         (WTF::CCLayerTreeHostTestSetNeedsCommit1::beginTest):
1279         (WTF::CCLayerTreeHostTestSetNeedsCommit1::drawLayersAndPresentOnCCThread):
1280         (WTF::CCLayerTreeHostTestSetNeedsCommit1::commitOnCCThread):
1281         (WTF::CCLayerTreeHostTestSetNeedsCommit2::beginTest):
1282         (WTF::CCLayerTreeHostTestSetNeedsCommit2::drawLayersAndPresentOnCCThread):
1283         (WTF::CCLayerTreeHostTestSetNeedsCommit2::commitOnCCThread):
1284         (WTF::CCLayerTreeHostTestSetNeedsRedraw::beginTest):
1285         (WTF::CCLayerTreeHostTestSetNeedsRedraw::drawLayersAndPresentOnCCThread):
1286         (WTF::CCLayerTreeHostTestSetNeedsRedraw::commitOnCCThread):
1287
1288 2011-09-16  Iain Merrick  <husky@google.com>
1289
1290         [chromium] Fix CCLayerTreeHostTest
1291         https://bugs.webkit.org/show_bug.cgi?id=67418
1292
1293         Fixes needed to compile and link with USE_THREADED_COMPOSITING
1294         enabled, and to pass the basic unit test.
1295
1296         Reviewed by James Robinson.
1297
1298         * src/GraphicsContext3DChromium.cpp:
1299         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
1300         (WebCore::GraphicsContext3DPrivate::platformLayer):
1301         * src/GraphicsContext3DPrivate.h:
1302         * tests/CCLayerTreeHostTest.cpp:
1303         (TestHooks::beginCommitOnCCThread):
1304         (TestHooks::commitCompleteOnCCThread):
1305         (TestHooks::drawLayersOnCCThread):
1306         (MockLayerTreeHostImpl::MockLayerTreeHostImpl):
1307         (MockLayerTreeHostImpl::beginCommit):
1308         (MockLayerTreeHostImpl::commitComplete):
1309         (MockLayerTreeHostImpl::drawLayers):
1310         (MockLayerTreeHost::MockLayerTreeHost):
1311         (MockLayerTreeHost::createLayerTreeHostImpl):
1312         (CompositorMockWebGraphicsContext3D::makeContextCurrent):
1313         (CompositorMockWebGraphicsContext3D::createProgram):
1314         (CompositorMockWebGraphicsContext3D::createShader):
1315         (CompositorMockWebGraphicsContext3D::getShaderiv):
1316         (CompositorMockWebGraphicsContext3D::getProgramiv):
1317         (MockLayerTreeHostClient::MockLayerTreeHostClient):
1318         (MockLayerTreeHostClient::animateAndLayout):
1319         (MockLayerTreeHostClient::createCompositorThread):
1320         (MockLayerTreeHostClient::createLayerTreeHostContext3D):
1321         (MockLayerTreeHostClient::createRootLayerPainter):
1322         (MockLayerTreeHostClient::didRecreateGraphicsContext):
1323         (CCLayerTreeHostTest::postSetNeedsCommitToMainThread):
1324         (CCLayerTreeHostTest::postSetNeedsRedrawToMainThread):
1325         (CCLayerTreeHostTest::onEndTest):
1326         (CCLayerTreeHostTest::dispatchSetNeedsCommit):
1327         (CCLayerTreeHostTest::dispatchSetNeedsRedraw):
1328         (CCLayerTreeHostTest::runTest):
1329         (CCLayerTreeHostTest::doBeginTest):
1330         (CCLayerTreeHostTestShortlived2::beginTest):
1331         (CCLayerTreeHostTestShortlived3::beginTest):
1332         (CCLayerTreeHostTestCommitingWithContinuousRedraw::beginTest):
1333         (CCLayerTreeHostTestCommitingWithContinuousRedraw::commitCompleteOnCCThread):
1334         (CCLayerTreeHostTestCommitingWithContinuousRedraw::drawLayersOnCCThread):
1335         (CCLayerTreeHostTestSetNeedsCommit1::beginTest):
1336         (CCLayerTreeHostTestSetNeedsCommit1::drawLayersOnCCThread):
1337         (CCLayerTreeHostTestSetNeedsCommit1::commitCompleteOnCCThread):
1338         (CCLayerTreeHostTestSetNeedsCommit2::beginTest):
1339         (CCLayerTreeHostTestSetNeedsCommit2::drawLayersOnCCThread):
1340         (CCLayerTreeHostTestSetNeedsCommit2::commitCompleteOnCCThread):
1341         (CCLayerTreeHostTestSetNeedsRedraw::beginTest):
1342         (CCLayerTreeHostTestSetNeedsRedraw::drawLayersOnCCThread):
1343         (CCLayerTreeHostTestSetNeedsRedraw::commitCompleteOnCCThread):
1344
1345 2011-09-16  Andrey Kosyakov  <caseq@chromium.org>
1346
1347         Web Inspector: [Extensions API] support extensions for remote inspector front-end
1348         https://bugs.webkit.org/show_bug.cgi?id=67840
1349
1350         Reviewed by Pavel Feldman.
1351
1352         - expose extension API as a single, standalone file for easy reuse in remote extension scripts.
1353
1354         * WebKit.gyp:
1355         * scripts/generate_devtools_extension_api.py: Added.
1356         * scripts/generate_devtools_zip.py:
1357
1358 2011-09-16  Ilya Tikhonovsky  <loislo@chromium.org>
1359
1360         Web Inspector: change WebInspector.currentPanel getter/setter to functions.
1361         https://bugs.webkit.org/show_bug.cgi?id=68242
1362
1363         This is necessary for the panel switching performance tests.
1364
1365         Reviewed by Pavel Feldman.
1366
1367         * src/js/Tests.js:
1368         (.TestSuite.prototype.showPanel):
1369
1370 2011-09-15  Adam Barth  <abarth@webkit.org>
1371
1372         Sigh.  Missed this one.
1373
1374         * features.gypi:
1375 2011-09-15  Adam Barth  <abarth@webkit.org>
1376
1377         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
1378         https://bugs.webkit.org/show_bug.cgi?id=68205
1379
1380         Reviewed by Eric Seidel.
1381
1382         * src/DatabaseObserver.cpp:
1383         * src/WebDatabase.cpp:
1384         (WebKit::WebDatabase::updateDatabaseSize):
1385         (WebKit::WebDatabase::updateSpaceAvailable):
1386         (WebKit::WebDatabase::resetSpaceAvailable):
1387         (WebKit::WebDatabase::closeDatabaseImmediately):
1388         * src/WebRuntimeFeatures.cpp:
1389         (WebKit::WebRuntimeFeatures::enableDatabase):
1390         (WebKit::WebRuntimeFeatures::isDatabaseEnabled):
1391
1392 2011-09-15  Adrienne Walker  <enne@google.com>
1393
1394         [chromium] Add temporary diagnostics for LayerTreeHost::commitTo crash
1395         https://bugs.webkit.org/show_bug.cgi?id=68204
1396
1397         Reviewed by James Robinson.
1398
1399         Add CRASH calls to determine which assumptions are being violated.
1400
1401         * src/WebViewImpl.cpp:
1402         (WebKit::WebViewImpl::composite):
1403
1404 2011-09-15  David Levin  <levin@chromium.org>
1405
1406         Remove TestWebKitAPI from the chromium build until it is made to work
1407         with the shared component build.
1408
1409         * WebKit.gyp:
1410
1411 2011-09-15  Eric Seidel  <eric@webkit.org>
1412
1413         Remove ENABLE(SVG_AS_IMAGE) since all major ports have it on by default
1414         https://bugs.webkit.org/show_bug.cgi?id=68182
1415
1416         Reviewed by Adam Barth.
1417
1418         * features.gypi:
1419
1420 2011-09-15  Jon Lee  <jonlee@apple.com>
1421
1422         Submitting a form with target=_blank works only once
1423         https://bugs.webkit.org/show_bug.cgi?id=28633
1424         <rdar://problem/7357787>
1425
1426         Reviewed by Andy Estes.
1427
1428         * src/WebViewImpl.cpp:
1429         (WebKit::WebViewImpl::mouseDown): Remove call to resetMultipleFormSubmissionProtection() since
1430         it will be made in platform-independent function EventHandler::handleMousePressEvent().
1431
1432 2011-09-15  Eric Seidel  <eric@webkit.org>
1433
1434         Remove ENABLE_SVG_ANIMATION as all major ports have it on by default
1435         https://bugs.webkit.org/show_bug.cgi?id=68022
1436
1437         Reviewed by Ryosuke Niwa.
1438
1439         * features.gypi:
1440
1441 2011-09-15  James Simonsen  <simonjam@chromium.org>
1442
1443         Ref protect HTMLObjectElement and HTMLEmbedElement while requesting plugins
1444         https://bugs.webkit.org/show_bug.cgi?id=68014
1445
1446         Reviewed by Adam Barth.
1447
1448         * src/FrameLoaderClientImpl.cpp:
1449         (WebKit::FrameLoaderClientImpl::createPlugin): Moved protection up to HTMLObjectElement and HTMLEmbedElement.
1450
1451 2011-09-15  David Levin  <levin@chromium.org>
1452
1453         [chromium] Attempt to fix the shared build after r95188.
1454
1455         * WebKit.gyp:
1456
1457 2011-09-15  Brian Salomon  <bsalomon@google.com>
1458
1459         [Skia/Chrome] 
1460         https://bugs.webkit.org/show_bug.cgi?id=68096
1461
1462         This change removes WebGraphicsContext3D::grGLInterface(). It has been
1463         superceded by WebGraphicsContext3D::createGrGLInterface which sets up
1464         the per-GL call callback used to set the correct context.
1465
1466         Reviewed by Stephen White.
1467
1468         * public/WebGraphicsContext3D.h:
1469         * src/GraphicsContext3DChromium.cpp:
1470         (WebCore::GraphicsContext3DPrivate::grContext):
1471         * src/WebGraphicsContext3D.cpp:
1472         (WebKit::WebGraphicsContext3D::createGrGLInterface):
1473
1474 2011-09-15  Xianzhu Wang  <wangxianzhu@chromium.org>
1475
1476         Let TestWebKitAPI work for chromium
1477         https://bugs.webkit.org/show_bug.cgi?id=67756
1478
1479         Reviewed by Sam Weinig.
1480
1481         * WebKit.gyp:
1482
1483 2011-09-14  Hao Zheng  <zhenghao@chromium.org>
1484
1485         Remove some dependencies of DRT for Android.
1486         https://bugs.webkit.org/show_bug.cgi?id=68126
1487
1488         Reviewed by Tony Chang.
1489
1490         We don't need mesa and TestNetscapePlugIn on Android, so remove them.
1491         As copy_TNPI depends on TNPI, adding copy_TNPI is enough.
1492
1493         * WebKit.gyp:
1494
1495 2011-09-14  Peter Beverloo  <peter@chromium.org>
1496
1497         [Chromium] Make WEB_AUDIO conditional and fix the build when disabled
1498         https://bugs.webkit.org/show_bug.cgi?id=68107
1499
1500         Reviewed by Kenneth Russell.
1501
1502         * features.gypi:
1503         * src/WebMediaPlayerClientImpl.cpp:
1504         (WebKit::WebMediaPlayerClientImpl::audioSourceProvider):
1505         * src/WebMediaPlayerClientImpl.h:
1506
1507 2011-09-14  John Bauman  <jbauman@chromium.org>
1508
1509         [chromium] Return correct value for getContextAttributes().preserveDrawingBuffer
1510         https://bugs.webkit.org/show_bug.cgi?id=68082
1511
1512         Reviewed by Kenneth Russell.
1513
1514         WebKit::WebGraphicsContext3D::Attributes doesn't save
1515         preserveDrawingBuffer, so that has to be saving in
1516         GraphicsContext3DPrivate.
1517
1518         * src/GraphicsContext3DChromium.cpp:
1519         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
1520         (WebCore::GraphicsContext3DPrivate::create):
1521         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
1522         (WebCore::GraphicsContext3DPrivate::getContextAttributes):
1523         * src/GraphicsContext3DPrivate.h:
1524
1525 2011-09-14  Antoine Labour  <piman@chromium.org>
1526
1527         Remove the dependency on GraphicsLayer from CCLayerTreeHost.
1528         Move root layer management into the NonCompositedContentHost.
1529         Have WebViewImpl create a NonCompositedContentHost explicitly.
1530         https://bugs.webkit.org/show_bug.cgi?id=67883
1531
1532         Reviewed by James Robinson.
1533
1534         * src/WebViewImpl.cpp:
1535         (WebKit::WebViewImpl::setRootGraphicsLayer):
1536         (WebKit::WebViewImpl::invalidateRootLayerRect):
1537         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1538         (WebKit::WebViewImpl::updateLayerTreeViewport):
1539         (WebKit::WebViewImpl::setVisibilityState):
1540         * src/WebViewImpl.h:
1541
1542 2011-09-14  Nebojsa Ciric  <cira@chromium.org>
1543
1544         Changed WebKit.gyp to use the new grit version of the scripts that handle
1545         .pak files.
1546         https://bugs.webkit.org/show_bug.cgi?id=68013
1547
1548         Reviewed by Tony Chang.
1549
1550         * DEPS:
1551         * WebKit.gyp:
1552
1553 2011-09-14  Anders Carlsson  <andersca@apple.com>
1554
1555         Fix Chromium build.
1556
1557         * src/ResourceHandle.cpp:
1558
1559 2011-09-13  Eric Seidel  <eric@webkit.org>
1560
1561         Remove ENABLE_SVG_USE as <use> is required by HTML5
1562         https://bugs.webkit.org/show_bug.cgi?id=68019
1563
1564         Reviewed by Ryosuke Niwa.
1565
1566         * features.gypi:
1567
1568 2011-09-13  Adam Barth  <abarth@webkit.org>
1569
1570         [Chromium] The checked state of WebPopupMenuItem isn't initialized
1571         https://bugs.webkit.org/show_bug.cgi?id=67889
1572
1573         Reviewed by Darin Fisher.
1574
1575         It seems we're failing to initialize the checked state of
1576         WebPopupMenuItems, potentially because Android is the first platform to
1577         use popup menus for <select> elements.
1578
1579         * src/ExternalPopupMenu.cpp:
1580         (WebKit::ExternalPopupMenu::getPopupMenuInfo):
1581
1582 2011-09-13  Eric Seidel  <eric@webkit.org>
1583
1584         Remove ENABLE_SVG_FOREIGN_OBJECT as it is a required part of HTML5
1585         https://bugs.webkit.org/show_bug.cgi?id=68018
1586
1587         Reviewed by Ryosuke Niwa.
1588
1589         * features.gypi:
1590
1591 2011-09-13  James Simonsen  <simonjam@chromium.org>
1592
1593         [Chromium] Ref protect element in FrameLoaderClientImpl::createPlugin
1594         https://bugs.webkit.org/show_bug.cgi?id=68014
1595
1596         Reviewed by Nate Chapin.
1597
1598         Test: plugins/destroy-during-npp-new.htm under valgrind
1599
1600         * src/FrameLoaderClientImpl.cpp:
1601         (WebKit::FrameLoaderClientImpl::createPlugin):
1602
1603 2011-09-13  Sheriff Bot  <webkit.review.bot@gmail.com>
1604
1605         Unreviewed.  Rolled DEPS.
1606
1607         * DEPS:
1608
1609 2011-09-12  Fumitoshi Ukai  <ukai@chromium.org>
1610
1611         Unreviewed. Roll DEPS again.
1612
1613         * DEPS:
1614
1615 2011-09-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1616
1617         Unreviewed, rolling out r95015.
1618         http://trac.webkit.org/changeset/95015
1619         https://bugs.webkit.org/show_bug.cgi?id=67987
1620
1621         compiled failed on Chromium Win bot (Requested by ukai on
1622         #webkit).
1623
1624         * DEPS:
1625
1626 2011-09-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1627
1628         Unreviewed.  Rolled DEPS.
1629
1630         * DEPS:
1631
1632 2011-09-12  David Levin  <levin@chromium.org>
1633
1634         [chromium] Remove AllowCrossThreadAccess for WorkerFileWriterCallbacksBridge.
1635         https://bugs.webkit.org/show_bug.cgi?id=67943
1636
1637         Reviewed by Adam Barth.
1638
1639         * src/WorkerFileWriterCallbacksBridge.cpp: Removed AllowCrossThreadAccess
1640         allowing the automatic ref counting to work. This was previous needed when
1641         the ref counting wasn't working but that was fixed in r94986. Note that the
1642         design was to have ref counting since the methods take PassRefPtr and the
1643         class is ThreadSafeRefCounted. (Ideally we have noticed this flaw when
1644         adding in AllowCrossThreadAccess.)
1645         (WebKit::WorkerFileWriterCallbacksBridge::postWriteToMainThread):
1646         (WebKit::WorkerFileWriterCallbacksBridge::postTruncateToMainThread):
1647         (WebKit::WorkerFileWriterCallbacksBridge::postAbortToMainThread):
1648         (WebKit::WorkerFileWriterCallbacksBridge::didWrite):
1649         (WebKit::WorkerFileWriterCallbacksBridge::didFail):
1650         (WebKit::WorkerFileWriterCallbacksBridge::didTruncate):
1651         (WebKit::WorkerFileWriterCallbacksBridge::postInitToMainThread):
1652         (WebKit::WorkerFileWriterCallbacksBridge::dispatchTaskToMainThread):
1653         (WebKit::WorkerFileWriterCallbacksBridge::dispatchTaskToWorkerThread):
1654
1655 2011-09-08  Nat Duca  <nduca@chromium.org>
1656
1657         [chromium] Add GraphicsContext3DPrivate:createGraphicsContextForAnotherThread
1658         https://bugs.webkit.org/show_bug.cgi?id=67832
1659
1660         The compositor thread needs to create a GraphicsContext3D without
1661         actually making it current. In previous attempts at doing this, we
1662         modified all graphics3D creation to not make the contexts current, but
1663         this prove to be shockingly fragile. Since this is a very
1664         Chromium-specific behavior, this patch makes creationForAnotherThread a
1665         method on the private GraphicsContext3D interface.
1666         GraphicsContext3D::create behaves as usual.
1667
1668         Reviewed by Kenneth Russell.
1669
1670         * src/GraphicsContext3DChromium.cpp:
1671         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
1672         (WebCore::GraphicsContext3DPrivate::createGraphicsContextForAnotherThread):
1673         (WebCore::GraphicsContext3D::create):
1674         * src/GraphicsContext3DPrivate.h:
1675         * src/WebViewImpl.cpp:
1676         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
1677         (WebKit::WebViewImpl::graphicsContext3D):
1678         * tests/MockGraphicsContext3DTest.cpp:
1679         (TEST):
1680
1681 2011-09-11  Jeremy Moskovich  <jeremy@chromium.org>
1682
1683         [Chromium] Change OOP Font loading code to use CGFont*() APIs.
1684         https://bugs.webkit.org/show_bug.cgi?id=66935
1685
1686         This change is necessary due a bug in ATSFontDeactivate() on 10.7.
1687         See crbug.com/93191 for details.
1688
1689         Reviewed by Eric Seidel.
1690
1691         * public/mac/WebSandboxSupport.h:
1692         * src/PlatformBridge.cpp:
1693         (WebCore::PlatformBridge::loadFont):
1694
1695 2011-09-11  Adam Barth  <abarth@webkit.org>
1696
1697         [Chromium] Add more key codes to WebInputEvent for Android
1698         https://bugs.webkit.org/show_bug.cgi?id=67887
1699
1700         Reviewed by Darin Fisher.
1701
1702         * src/WebInputEvent.cpp:
1703         (WebKit::staticKeyIdentifiers):
1704
1705 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
1706
1707         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
1708         https://bugs.webkit.org/show_bug.cgi?id=67250
1709
1710         Reviewed by Simon Fraser.
1711
1712         * src/WebViewImpl.cpp:
1713         (WebKit::WebViewImpl::pageScaleFactor):
1714         (WebKit::WebViewImpl::scalePage):
1715
1716 2011-09-09  Hao Zheng  <zhenghao@chromium.org>
1717
1718         [chromium] Implement DRT support for Android.
1719         https://bugs.webkit.org/show_bug.cgi?id=67590
1720
1721         Reviewed by Tony Chang.
1722
1723         Exclude Android specific files of DRT from other platforms.
1724
1725         * WebKit.gyp:
1726
1727 2011-09-09  Hao Zheng  <zhenghao@chromium.org>
1728
1729         [Chromium] Add WebSandboxSupport and WebThemeEngine for Android.
1730         https://bugs.webkit.org/show_bug.cgi?id=67584
1731
1732         Reviewed by Steve Block.
1733
1734         Make src/PlatformSupport.cpp and src/WebFrameImpl.cpp compile on
1735         Chromium port for Android.
1736
1737         * WebKit.gyp:
1738         * public/android: Added.
1739         * public/android/WebSandboxSupport.h: Added.
1740         * public/android/WebThemeEngine.h: Added.
1741         (WebKit::WebThemeEngine::getSize):
1742         (WebKit::WebThemeEngine::paint):
1743         * src/PlatformSupport.cpp:
1744         (WebCore::PlatformSupport::getFontFamilyForCharacters):
1745         (WebCore::PlatformSupport::getRenderStyleForStrike):
1746         * src/WebFrameImpl.cpp:
1747
1748 2011-09-09  Martin Kosiba  <mkosiba@chromium.org>
1749
1750         Exposing the isLink method on WebNode for the Chromium port on Android.
1751
1752         Reviewed by Darin Fisher.
1753
1754         * public/WebNode.h:
1755         * src/WebNode.cpp:
1756         (WebKit::WebNode::isLink):
1757
1758 2011-09-08  Adam Barth  <abarth@webkit.org>
1759
1760         Another attempt to fix the Chromium build.  (Missed one.)
1761
1762         * src/WebPageSerializerImpl.cpp:
1763         (WebKit::WebPageSerializerImpl::serialize):
1764
1765 2011-09-08  Adam Barth  <abarth@webkit.org>
1766
1767         Attempt to fix Chromium build.  We can just grab the encoding from the document.
1768
1769         * src/ContextMenuClientImpl.cpp:
1770         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
1771         * src/WebDocument.cpp:
1772         (WebKit::WebDocument::encoding):
1773         * src/WebPageSerializerImpl.cpp:
1774         (WebKit::WebPageSerializerImpl::preActionBeforeSerializeOpenTag):
1775         * src/WebSearchableFormData.cpp:
1776         (HTMLNames::GetFormEncoding):
1777         * src/WebViewImpl.cpp:
1778         (WebKit::WebViewImpl::pageEncoding):
1779
1780 2011-09-08  W. James MacLean  <wjmaclean@chromium.org>
1781
1782         [chromium] Add backend compositor support for rescaling (zooming) textures during zoom animation.
1783         https://bugs.webkit.org/show_bug.cgi?id=66472
1784
1785         This patch contains plumbing from Internals to WebViewImpl that can be removed
1786         at a later time when the zoom animator code is complete.
1787
1788         Reviewed by James Robinson.
1789
1790         * src/WebViewImpl.cpp:
1791         (WebKit::WebViewImpl::setZoomLevel):
1792         (WebKit::WebViewImpl::setRootLayerNeedsDisplay):
1793
1794 2011-09-08  Scott Byer  <scottbyer@chromium.org>
1795
1796         Compile in ScrollAnimator for Chromium on all platforms by default.
1797         https://bugs.webkit.org/show_bug.cgi?id=67650
1798
1799         Reviewed by Adam Barth.
1800
1801         * features.gypi:
1802
1803 2011-09-07  Adam Barth  <abarth@webkit.org>
1804
1805         FrameLoader::addExtraFieldsToRequest can crash when called from or after FrameLoader::detachFromParent
1806         https://bugs.webkit.org/show_bug.cgi?id=61810
1807
1808         Reviewed by Eric Seidel.
1809
1810         Fix this crash as suggested by Darin Fisher in
1811         https://bugs.webkit.org/show_bug.cgi?id=61810#c21.  This patch does not
1812         include the test requested by Alexey Proskuryakov in
1813         https://bugs.webkit.org/show_bug.cgi?id=61810#c6.  I would really much
1814         rather include a test with this patch, but my attempts to write a test
1815         have failed.  :(
1816
1817         * src/WebPluginContainerImpl.cpp:
1818         (WebKit::WebPluginContainerImpl::loadFrameRequest):
1819
1820 2011-09-07  Eric Boren  <borenet@gmail.com>
1821
1822         [Chromium] Modify WebTouchEvent structure to match WebCore::TouchEvent
1823         https://bugs.webkit.org/show_bug.cgi?id=66800
1824
1825         Reviewed by Darin Fisher.
1826
1827         * public/WebInputEvent.h:
1828         (WebKit::WebTouchEvent::WebTouchEvent):
1829         * public/WebTouchPoint.h:
1830         (WebKit::WebTouchPoint::WebTouchPoint):
1831         * src/WebInputEventConversion.cpp:
1832         (WebKit::PlatformTouchEventBuilder::PlatformTouchEventBuilder):
1833         (WebKit::WebTouchEventBuilder::WebTouchEventBuilder):
1834         * src/WebInputEventConversion.h:
1835
1836 2011-09-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1837
1838         Unreviewed, rolling out r94635.
1839         http://trac.webkit.org/changeset/94635
1840         https://bugs.webkit.org/show_bug.cgi?id=67704
1841
1842         Linux Touch build is failing to compile this change.
1843         (Requested by loislo on #webkit).
1844
1845         * public/WebInputEvent.h:
1846         (WebKit::WebTouchEvent::WebTouchEvent):
1847         * public/WebTouchPoint.h:
1848         (WebKit::WebTouchPoint::WebTouchPoint):
1849         * src/WebInputEventConversion.cpp:
1850         (WebKit::PlatformTouchEventBuilder::PlatformTouchEventBuilder):
1851         (WebKit::WebMouseEventBuilder::WebMouseEventBuilder):
1852         (WebKit::WebMouseWheelEventBuilder::WebMouseWheelEventBuilder):
1853         (WebKit::WebKeyboardEventBuilder::WebKeyboardEventBuilder):
1854         * src/WebInputEventConversion.h:
1855
1856 2011-09-05  Yury Semikhatsky  <yurys@chromium.org>
1857
1858         [Chromium] Web Inspector: repair console sniffing for interactive ui tests
1859         https://bugs.webkit.org/show_bug.cgi?id=67608
1860
1861         Reviewed by Pavel Feldman.
1862
1863         * src/js/Tests.js:
1864         (.TestSuite.prototype.evaluateInConsole_):
1865
1866 2011-09-06  Eric Boren  <borenet@gmail.com>
1867
1868         [Chromium] Modify WebTouchEvent structure to match WebCore::TouchEvent
1869         https://bugs.webkit.org/show_bug.cgi?id=66800
1870
1871         Reviewed by Darin Fisher.
1872
1873         * public/WebInputEvent.h:
1874         (WebKit::WebTouchEvent::WebTouchEvent):
1875         * public/WebTouchPoint.h:
1876         (WebKit::WebTouchPoint::WebTouchPoint):
1877         * src/WebInputEventConversion.cpp:
1878         (WebKit::PlatformTouchEventBuilder::PlatformTouchEventBuilder):
1879         (WebKit::WebTouchEventBuilder::WebTouchEventBuilder):
1880         * src/WebInputEventConversion.h:
1881
1882 2011-09-06  Ben Smith  <binji@chromium.org>
1883
1884         [chromium] Fix WebFrameClient receiving isRedirect when reloading
1885         https://bugs.webkit.org/show_bug.cgi?id=63591
1886
1887         Reviewed by Adam Barth.
1888
1889         Fix bug when quickly reloading a WebFrame where the
1890         WebFrameClient would get called with decidePolicyForNavigation
1891         isRedirect=true.
1892
1893         * src/FrameLoaderClientImpl.cpp:
1894         (WebKit::FrameLoaderClientImpl::dispatchDecidePolicyForNavigationAction):
1895         * src/WebDataSourceImpl.h:
1896         (WebKit::WebDataSourceImpl::isRedirect):
1897         * tests/WebFrameTest.cpp:
1898         (WebKit::TestReloadDoesntRedirectWebFrameClient::decidePolicyForNavigation):
1899         (WebKit::TestReloadDoesntRedirectWebFrameClient::cancelledError):
1900         (WebKit::TEST_F):
1901
1902 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
1903
1904         Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
1905         https://bugs.webkit.org/show_bug.cgi?id=67569
1906
1907         Reviewed by Antonio Gomes.
1908
1909         * src/WebFrameImpl.cpp:
1910         (WebKit::WebFrameImpl::unmarkText):
1911
1912 2011-09-06  Adam Barth  <abarth@webkit.org>
1913
1914         [Chromium] Add WebFloatQuad.h for Android
1915         https://bugs.webkit.org/show_bug.cgi?id=67573
1916
1917         Reviewed by Darin Fisher.
1918
1919         Android uses this wrapper of WebCore::FloatQuad in some API methods
1920         (which will appear in subsequent patches).
1921
1922         * WebKit.gyp:
1923         * public/WebFloatQuad.h: Added.
1924         * src/WebFloatQuad.cpp: Added.
1925
1926 2011-09-06  Adam Barth  <abarth@webkit.org>
1927
1928         [Chromium] Add didAcceptIndices to ExternalPopupMenuClient for Android
1929         https://bugs.webkit.org/show_bug.cgi?id=67574
1930
1931         Reviewed by Darin Fisher.
1932
1933         In Android, external popup menus can admit multiple selection (e.g.,
1934         for listboxes presented using external UI).
1935
1936         * public/WebExternalPopupMenuClient.h:
1937         * src/ExternalPopupMenu.cpp:
1938         (WebKit::ExternalPopupMenu::didAcceptIndices):
1939         * src/ExternalPopupMenu.h:
1940
1941 2011-09-06  Aaron Colwell  <acolwell@chromium.org>
1942
1943         Allow MediaSource API to be enabled at runtime.
1944         https://bugs.webkit.org/show_bug.cgi?id=67306
1945
1946         Reviewed by Eric Carlson.
1947
1948         * public/WebRuntimeFeatures.h:
1949         * src/WebRuntimeFeatures.cpp:
1950         (WebKit::WebRuntimeFeatures::enableMediaSource):
1951         (WebKit::WebRuntimeFeatures::isMediaSourceEnabled):
1952
1953 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
1954
1955         REGRESSION(r94274): FormManagerTest.PreviewForm and FillFormNonEmptyField fail on chromium
1956         https://bugs.webkit.org/show_bug.cgi?id=67453
1957
1958         Reviewed by Kent Tamura.
1959
1960         Chromium code incorrectly calls Node::isFocusable without updating layout, and was hitting assertions.
1961         Fix the assertion failure (and a potential crash) by updating layout in WebCore::isFocusable.
1962
1963         * src/WebNode.cpp:
1964         (WebKit::WebNode::isFocusable):
1965
1966 2011-09-04  Adam Barth  <abarth@webkit.org>
1967
1968         [Chromium] Add mutliple to WebPopupMenuInfo for Android
1969         https://bugs.webkit.org/show_bug.cgi?id=67576
1970
1971         Reviewed by Darin Fisher.
1972
1973         This flag requests that the embedder allow multiple selection for the
1974         popup menu.  (See also https://bugs.webkit.org/show_bug.cgi?id=67574.)
1975
1976         * public/WebPopupMenuInfo.h:
1977         * src/ExternalPopupMenu.cpp:
1978         (WebKit::ExternalPopupMenu::getPopupMenuInfo):
1979
1980 2011-09-04  Adam Barth  <abarth@webkit.org>
1981
1982         [Chromium] Add memory threshold values to WebKitPlatformSupport.h
1983         https://bugs.webkit.org/show_bug.cgi?id=67575
1984
1985         Reviewed by Darin Fisher.
1986
1987         Instead of hard-coding these values, we now grab them from
1988         WebKitPlatformSupport because Android wishes to configure them on a
1989         per-device basis.
1990
1991         One could view grabing these values from PlatformSupport as a bit of a
1992         layering violation (because they feel like policy), but another view is
1993         that the alternative implementation is to query the OS for various
1994         memory parameters.  In either case, getting these values via
1995         PlatformSupport is much easier and consistent with the other memory
1996         related queries in PlatformSupport already.
1997
1998         * public/WebKitPlatformSupport.h:
1999         (WebKit::WebKitPlatformSupport::lowMemoryUsageMB):
2000         (WebKit::WebKitPlatformSupport::highMemoryUsageMB):
2001         (WebKit::WebKitPlatformSupport::highUsageDeltaMB):
2002         * src/PlatformSupport.cpp:
2003         (WebCore::PlatformSupport::lowMemoryUsageMB):
2004         (WebCore::PlatformSupport::highMemoryUsageMB):
2005         (WebCore::PlatformSupport::highUsageDeltaMB):
2006
2007 2011-09-02  Adam Barth  <abarth@webkit.org>
2008
2009         Remove WebKitClient.h
2010         https://bugs.webkit.org/show_bug.cgi?id=67539
2011
2012         Reviewed by Sam Weinig.
2013
2014         This API no longer has any callers.
2015
2016         * WebKit.gyp:
2017         * public/WebKit.h:
2018         * public/WebKitClient.h: Removed.
2019         * src/WebKit.cpp:
2020
2021 2011-09-02  Bill Budge  <bbudge@chromium.org>
2022
2023         Add a 'didDownloadData' method to ResourceHandleInternal and pass these
2024         notifications to WebURLLoaderClients.
2025         https://bugs.webkit.org/show_bug.cgi?id=67229
2026
2027         Reviewed by Darin Fisher.
2028
2029         * src/AssociatedURLLoader.cpp:
2030         (WebKit::AssociatedURLLoader::ClientAdapter::ClientAdapter):
2031         (WebKit::AssociatedURLLoader::ClientAdapter::didDownloadData):
2032         (WebKit::AssociatedURLLoader::ClientAdapter::didReceiveData):
2033         (WebKit::AssociatedURLLoader::ClientAdapter::didFinishLoading):
2034         * src/ResourceHandle.cpp:
2035         (WebCore::ResourceHandleInternal::didDownloadData):
2036         * src/ResourceHandleInternal.h:
2037
2038 2011-09-02  Peng Huang  <penghuang@chromium.org>
2039
2040         Need API for getting surrounding text from webkit in chromium
2041         https://bugs.webkit.org/show_bug.cgi?id=66681
2042
2043         Reviewed by Ryosuke Niwa.
2044
2045         Add getSelectionOffsetsAndTextInEditableContent() to Chromium's
2046         WebViewImpl. This function is for supporting some input methods which
2047         need input context around the edit caret.
2048
2049         * public/WebWidget.h:
2050         (WebKit::WebWidget::getSelectionOffsetsAndTextInEditableContent):
2051         * src/WebViewImpl.cpp:
2052         (WebKit::WebViewImpl::getSelectionOffsetsAndTextInEditableContent):
2053         * src/WebViewImpl.h:
2054
2055 2011-09-02  Sheriff Bot  <webkit.review.bot@gmail.com>
2056
2057         Unreviewed.  Rolled DEPS.
2058
2059         * DEPS:
2060
2061 2011-09-02  Adrienne Walker  <enne@google.com>
2062
2063         [chromium] Remove LayerRendererChromium references from the LayerChromium tree
2064         https://bugs.webkit.org/show_bug.cgi?id=66430
2065
2066         Reviewed by James Robinson.
2067
2068         Change references to LayerRendererChromium to CCLayerTreeHost.
2069
2070         * src/WebMediaPlayerClientImpl.cpp:
2071         (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
2072
2073 2011-09-01  Robert Kroeger  <rjkroege@chromium.org>
2074
2075  
2076         [chromium] Code cleanup FIXME in Chromium recognizer
2077         https://bugs.webkit.org/show_bug.cgi?id=67448
2078
2079         Updated GestureRecognizer unit tests for more encapsulated
2080         gesture recognizer implementation.
2081
2082         Reviewed by Adam Barth.
2083
2084         * tests/InnerGestureRecognizerTest.cpp:
2085         (InspectableGestureRecognizerChromium::InspectableGestureRecognizerChromium):
2086         (InspectableGestureRecognizerChromium::signature):
2087         (InspectableGestureRecognizerChromium::edgeFunction):
2088         (InspectableGestureRecognizerChromium::updateValues):
2089         (InspectableGestureRecognizerChromium::addEdgeFunction):
2090         (InspectableGestureRecognizerChromium::setStateTest):
2091         (InspectableGestureRecognizerChromium::isInsideManhattanSquare):
2092         (InspectableGestureRecognizerChromium::isInClickTimeWindow):
2093         (InspectableGestureRecognizerChromium::stubEdgeFunction):
2094         (GestureRecognizerTest::GestureRecognizerTest):
2095         (TEST_F):
2096
2097 2011-09-01  Brian Salomon  <bsalomon@google.com>
2098
2099         [Chromium, Skia] Add virtual to WebGraphicsContext3D to create a new GrGLInterface per context. Insert per-skia-GL-function callback to set correct GL context.
2100         https://bugs.webkit.org/show_bug.cgi?id=67395
2101
2102         Reviewed by Kenneth Russell.
2103
2104         * WebKit.gyp:
2105         * public/WebGraphicsContext3D.h:
2106         (WebKit::WebGraphicsContext3D::onCreateGrGLInterface):
2107         * src/GraphicsContext3DChromium.cpp:
2108         (WebCore::GraphicsContext3DPrivate::grContext):
2109         * src/WebGraphicsContext3D.cpp: Added.
2110         (WebKit::WebGraphicsContext3D::createGrGLInterface):
2111
2112 2011-08-29  Nat Duca  <nduca@chromium.org>
2113
2114         [chromium] Introduce CCSingleThreadProxy in order to move LayerRenderer to CCLayerTreeHostImpl
2115         https://bugs.webkit.org/show_bug.cgi?id=66807
2116
2117         Reviewed by James Robinson.
2118
2119         * src/WebViewImpl.cpp:
2120         (WebKit::WebViewImpl::composite):
2121         (WebKit::WebViewImpl::setRootGraphicsLayer):
2122         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2123         (WebKit::WebViewImpl::didRecreateGraphicsContext):
2124         * tests/CCThreadTaskTest.cpp:
2125         (WebCore::TEST):
2126
2127 2011-09-01  Dominic Mazzoni  <dmazzoni@google.com>
2128
2129         Add API functions to enable starting and stopping speech input,
2130         and checking the current speech input state.
2131         https://bugs.webkit.org/show_bug.cgi?id=60170
2132
2133         Reviewed by Dimitri Glazkov.
2134
2135         * public/WebInputElement.h:
2136         * src/AssertMatchingEnums.cpp:
2137         * src/WebInputElement.cpp:
2138         (WebKit::WebInputElement::isSpeechInputEnabled):
2139         (WebKit::WebInputElement::getSpeechInputState):
2140         (WebKit::WebInputElement::startSpeechInput):
2141         (WebKit::WebInputElement::stopSpeechInput):
2142
2143 2011-08-31  Greg Billock  <gbillock@google.com>
2144
2145         Add pass-throughs for NPObject/v8::Value marshalling to WebBindings
2146         https://bugs.webkit.org/show_bug.cgi?id=67302
2147
2148         Reviewed by Darin Fisher.
2149
2150         * public/WebBindings.h:
2151         * src/WebBindings.cpp:
2152         (WebKit::WebBindings::toNPVariant):
2153         (WebKit::WebBindings::toV8Value):
2154         * src/WebSerializedScriptValue.cpp:
2155         (WebKit::WebSerializedScriptValue::serialize):
2156
2157 2011-08-31  Adam Barth  <abarth@webkit.org>
2158
2159         [Chromium] Rename PlatformBridge to PlatformSupport
2160         https://bugs.webkit.org/show_bug.cgi?id=67349
2161
2162         Reviewed by Darin Fisher.
2163
2164         This matches the WebKitPlatformSupport embedder API.
2165
2166         * WebKit.gyp:
2167         * src/AssertMatchingEnums.cpp:
2168         * src/ChromeClientImpl.cpp:
2169         (WebKit::ChromeClientImpl::shouldRunModalDialogDuringPageDismissal):
2170         * src/PlatformBridge.cpp: Removed.
2171         * src/ResourceHandle.cpp:
2172         (WebCore::ResourceHandle::cacheMetadata):
2173         * src/WebFrameImpl.cpp:
2174         (WebKit::WebFrameImpl::WebFrameImpl):
2175         (WebKit::WebFrameImpl::~WebFrameImpl):
2176         * src/WebViewImpl.cpp:
2177         (WebKit::WebViewImpl::paint):
2178         (WebKit::WebViewImplContentPainter::paint):
2179         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2180
2181 2011-08-31  Sailesh Agrawal  <sail@chromium.org>
2182
2183         Chromium Mac: PDF: Scrollsbars should be visible when scrolling using the two finger gesture on Lion
2184         https://bugs.webkit.org/show_bug.cgi?id=66599
2185
2186         Reviewed by Darin Fisher.
2187
2188         Overlay scrollbars over a pdf wouldn't stay visible if a gesture was in progress. Normally we use a beginScrollGesture and endScrollGesture to keep the scrollbars visible. Unfortunately PDFs didn't handle gesture events so we didn't get the begin/end gesture events.
2189
2190         This change pipes gesture events to WebPluginContainerImpl if possible. This fixes this bug.
2191
2192         * src/WebPluginContainerImpl.cpp:
2193         (WebKit::WebPluginContainerImpl::handleGestureEvent):
2194         * src/WebPluginContainerImpl.h:
2195         * src/WebViewImpl.cpp:
2196         (WebKit::WebViewImpl::gestureEvent):
2197
2198 2011-08-31  Sailesh Agrawal  <sail@chromium.org>
2199
2200         Chromium Mac: Add fallback for drawing PDF overhang area
2201         https://bugs.webkit.org/show_bug.cgi?id=66614
2202
2203         Reviewed by Darin Fisher.
2204
2205         This change adds a fallback for overhang drawing for PDF content. This fallback is needed until the PDF plugin uses the linen pattern to draw its own overhang.
2206
2207         * src/ChromeClientImpl.cpp:
2208         (WebKit::ChromeClientImpl::paintCustomOverhangArea):
2209         * src/ChromeClientImpl.h:
2210         * src/WebPluginContainerImpl.cpp:
2211         (WebKit::WebPluginContainerImpl::paintCustomOverhangArea):
2212         * src/WebPluginContainerImpl.h:
2213
2214 2011-08-31  James Weatherall  <wez@chromium.org>
2215
2216         [chromium] Have the FrameLoaderClient release any plugin widget
2217         reference is holding when the FrameLoader detaches it, to ensure that
2218         the plugin won't out-live the containing page.
2219         https://bugs.webkit.org/show_bug.cgi?id=66517
2220
2221         Reviewed by Darin Fisher.
2222
2223         * src/FrameLoaderClientImpl.cpp:
2224         (WebKit::FrameLoaderClientImpl::detachedFromParent3):
2225
2226 2011-08-31  Adam Barth  <abarth@webkit.org>
2227
2228         [Chromium] Rename WebKitClient to WebKitPlatformSupport
2229         https://bugs.webkit.org/show_bug.cgi?id=67309
2230
2231         Reviewed by Darin Fisher.
2232
2233         WebKitClient doesn't actually represent the WebKit Client.  Instead, it
2234         represents supporting code for the WebKit Platform.  This patch renames
2235         WebKitClient to WebKitPlatformSupport to make it easier for folks to
2236         understand the difference between the Client and the Platform.
2237
2238         This patch includes shims so as not to break the Chromium build.  Once
2239         the Chromium side is updated, I'll remove the shims.
2240
2241         * WebKit.gyp:
2242         * public/WebFrameClient.h:
2243         * public/WebKit.h:
2244         (WebKit::webKitClient):
2245         * public/WebKitClient.h: Removed.
2246         * public/WebKitPlatformSupport.h: Copied from Source/WebKit/chromium/public/WebKitClient.h.
2247         (WebKit::WebKitPlatformSupport::~WebKitPlatformSupport):
2248         * src/ApplicationCacheHostInternal.h:
2249         * src/AssociatedURLLoader.cpp:
2250         * src/AsyncFileSystemChromium.cpp:
2251         (WebCore::AsyncFileSystemChromium::AsyncFileSystemChromium):
2252         * src/AudioDestinationChromium.cpp:
2253         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
2254         (WebCore::AudioDestination::hardwareSampleRate):
2255         * src/BlobRegistryProxy.cpp:
2256         (WebCore::BlobRegistryProxy::BlobRegistryProxy):
2257         * src/CCThreadImpl.cpp:
2258         (WebKit::CCThreadImpl::CCThreadImpl):
2259         * src/ChromiumCurrentTime.cpp:
2260         (WTF::currentTime):
2261         (WTF::monotonicallyIncreasingTime):
2262         * src/ChromiumOSRandomSource.cpp:
2263         (WTF::cryptographicallyRandomValuesFromOS):
2264         * src/ChromiumThreading.cpp:
2265         (WTF::ChromiumThreading::callOnMainThread):
2266         * src/FrameLoaderClientImpl.cpp:
2267         (WebKit::FrameLoaderClientImpl::canShowMIMEType):
2268         (WebKit::FrameLoaderClientImpl::userAgent):
2269         * src/GraphicsContext3DChromium.cpp:
2270         (WebCore::GraphicsContext3D::create):
2271         * src/IDBFactoryBackendProxy.cpp:
2272         (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
2273         * src/LocalizedStrings.cpp:
2274         (WebCore::query):
2275         * src/PlatformBridge.cpp:
2276         (WebCore::getCookieJar):
2277         (WebCore::PlatformBridge::cacheMetadata):
2278         (WebCore::PlatformBridge::clipboardIsFormatAvailable):
2279         (WebCore::PlatformBridge::clipboardReadPlainText):
2280         (WebCore::PlatformBridge::clipboardReadHTML):
2281         (WebCore::PlatformBridge::clipboardReadImage):
2282         (WebCore::PlatformBridge::clipboardGetSequenceNumber):
2283         (WebCore::PlatformBridge::clipboardWriteSelection):
2284         (WebCore::PlatformBridge::clipboardWritePlainText):
2285         (WebCore::PlatformBridge::clipboardWriteURL):
2286         (WebCore::PlatformBridge::clipboardWriteImage):
2287         (WebCore::PlatformBridge::clipboardWriteData):
2288         (WebCore::PlatformBridge::clipboardReadAvailableTypes):
2289         (WebCore::PlatformBridge::clipboardReadData):
2290         (WebCore::PlatformBridge::clipboardReadFilenames):
2291         (WebCore::PlatformBridge::prefetchDNS):
2292         (WebCore::PlatformBridge::fileExists):
2293         (WebCore::PlatformBridge::deleteFile):
2294         (WebCore::PlatformBridge::deleteEmptyDirectory):
2295         (WebCore::PlatformBridge::getFileSize):
2296         (WebCore::PlatformBridge::revealFolderInOS):
2297         (WebCore::PlatformBridge::getFileModificationTime):
2298         (WebCore::PlatformBridge::directoryName):
2299         (WebCore::PlatformBridge::pathByAppendingComponent):
2300         (WebCore::PlatformBridge::makeAllDirectories):
2301         (WebCore::PlatformBridge::getAbsolutePath):
2302         (WebCore::PlatformBridge::isDirectory):
2303         (WebCore::PlatformBridge::filePathToURL):
2304         (WebCore::PlatformBridge::openFile):
2305         (WebCore::PlatformBridge::closeFile):
2306         (WebCore::PlatformBridge::seekFile):
2307         (WebCore::PlatformBridge::truncateFile):
2308         (WebCore::PlatformBridge::readFromFile):
2309         (WebCore::PlatformBridge::writeToFile):
2310         (WebCore::PlatformBridge::ensureFontLoaded):
2311         (WebCore::PlatformBridge::loadFont):
2312         (WebCore::PlatformBridge::getFontFamilyForCharacters):
2313         (WebCore::PlatformBridge::getRenderStyleForStrike):
2314         (WebCore::PlatformBridge::databaseOpenFile):
2315         (WebCore::PlatformBridge::databaseDeleteFile):
2316         (WebCore::PlatformBridge::databaseGetFileAttributes):
2317         (WebCore::PlatformBridge::databaseGetFileSize):
2318         (WebCore::PlatformBridge::databaseGetSpaceAvailableForOrigin):
2319         (WebCore::PlatformBridge::createIDBKeysFromSerializedValuesAndKeyPath):
2320         (WebCore::PlatformBridge::injectIDBKeyIntoSerializedValue):
2321         (WebCore::PlatformBridge::signedPublicKeyAndChallengeString):
2322         (WebCore::PlatformBridge::computedDefaultLanguage):
2323         (WebCore::PlatformBridge::isSupportedImageMIMEType):
2324         (WebCore::PlatformBridge::isSupportedJavaScriptMIMEType):
2325         (WebCore::PlatformBridge::isSupportedNonImageMIMEType):
2326         (WebCore::PlatformBridge::mimeTypeForExtension):
2327         (WebCore::PlatformBridge::wellKnownMimeTypeForExtension):
2328         (WebCore::PlatformBridge::mimeTypeFromFile):
2329         (WebCore::PlatformBridge::preferredExtensionForMIMEType):
2330         (WebCore::PlatformBridge::plugins):
2331         (WebCore::PlatformBridge::loadPlatformImageResource):
2332         (WebCore::PlatformBridge::loadPlatformAudioResource):
2333         (WebCore::PlatformBridge::decodeAudioFileData):
2334         (WebCore::PlatformBridge::sandboxEnabled):
2335         (WebCore::PlatformBridge::setSharedTimerFiredFunction):
2336         (WebCore::PlatformBridge::setSharedTimerFireInterval):
2337         (WebCore::PlatformBridge::stopSharedTimer):
2338         (WebCore::PlatformBridge::decrementStatsCounter):
2339         (WebCore::PlatformBridge::incrementStatsCounter):
2340         (WebCore::PlatformBridge::histogramCustomCounts):
2341         (WebCore::PlatformBridge::histogramEnumeration):
2342         (WebCore::PlatformBridge::suddenTerminationChanged):
2343         (WebCore::PlatformBridge::paintButton):
2344         (WebCore::PlatformBridge::paintMenuList):
2345         (WebCore::PlatformBridge::paintScrollbarArrow):
2346         (WebCore::PlatformBridge::paintScrollbarThumb):
2347         (WebCore::PlatformBridge::paintScrollbarTrack):
2348         (WebCore::PlatformBridge::paintSpinButton):
2349         (WebCore::PlatformBridge::paintTextField):
2350         (WebCore::PlatformBridge::paintTrackbar):
2351         (WebCore::PlatformBridge::paintProgressBar):
2352         (WebCore::PlatformBridge::getThemePartSize):
2353         (WebCore::PlatformBridge::paintThemePart):
2354         (WebCore::PlatformBridge::traceEventBegin):
2355         (WebCore::PlatformBridge::traceEventEnd):
2356         (WebCore::PlatformBridge::visitedLinkHash):
2357         (WebCore::PlatformBridge::isLinkVisited):
2358         (WebCore::PlatformBridge::memoryUsageMB):
2359         (WebCore::PlatformBridge::actualMemoryUsageMB):
2360         * src/PlatformMessagePortChannel.cpp:
2361         (WebCore::PlatformMessagePortChannel::PlatformMessagePortChannel):
2362         * src/ResourceHandle.cpp:
2363         (WebCore::ResourceHandleInternal::start):
2364         (WebCore::ResourceHandle::loadResourceSynchronously):
2365         * src/SharedWorkerRepository.cpp:
2366         (WebCore::SharedWorkerRepository::isAvailable):
2367         (WebCore::SharedWorkerRepository::connect):
2368         (WebCore::SharedWorkerRepository::documentDetached):
2369         (WebCore::SharedWorkerRepository::hasSharedWorkers):
2370         * src/SocketStreamHandle.cpp:
2371         (WebCore::SocketStreamHandleInternal::connect):
2372         * src/StorageEventDispatcherChromium.cpp:
2373         (WebCore::StorageEventDispatcher::dispatch):
2374         * src/StorageNamespaceProxy.cpp:
2375         (WebCore::StorageNamespace::localStorageNamespace):
2376         * src/WebKit.cpp:
2377         (WebKit::generateEntropy):
2378         (WebKit::initialize):
2379         (WebKit::shutdown):
2380         (WebKit::webKitPlatformSupport):
2381         * src/WebMediaPlayerClientImpl.cpp:
2382         (WebKit::WebMediaPlayerClientImpl::supportsType):
2383         * src/WebPluginContainerImpl.cpp:
2384         (WebKit::WebPluginContainerImpl::copy):
2385         * src/WebViewImpl.cpp:
2386         * src/WebWorkerClientImpl.cpp:
2387         * src/WorkerAsyncFileSystemChromium.cpp:
2388         (WebCore::WorkerAsyncFileSystemChromium::WorkerAsyncFileSystemChromium):
2389         * src/WorkerFileWriterCallbacksBridge.cpp:
2390         (WebKit::WorkerFileWriterCallbacksBridge::initOnMainThread):
2391         * tests/RunAllTests.cpp:
2392
2393 2011-08-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2394
2395         Unreviewed.  Rolled DEPS.
2396
2397         * DEPS:
2398
2399 2011-08-31  Nat Duca  <nduca@chromium.org>
2400
2401         [Chromium] Unreviewed, fix inconsistent WebKit.gypi after r94106
2402         https://bugs.webkit.org/show_bug.cgi?id=67288
2403
2404         * WebKit.gypi:
2405
2406 2011-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
2407
2408         Unreviewed, rolling out r94142, r94144, r94145, and r94148.
2409         http://trac.webkit.org/changeset/94142
2410         http://trac.webkit.org/changeset/94144
2411         http://trac.webkit.org/changeset/94145
2412         http://trac.webkit.org/changeset/94148
2413         https://bugs.webkit.org/show_bug.cgi?id=67262
2414
2415         Broke isindex element (Requested by rniwa on #webkit).
2416
2417         * src/EditorClientImpl.cpp:
2418         (WebKit::EditorClientImpl::textFieldDidEndEditing):
2419         (WebKit::EditorClientImpl::doTextFieldCommandFromEvent):
2420         * src/WebInputElement.cpp:
2421         (WebKit::toWebInputElement):
2422         * src/WebPasswordFormUtils.cpp:
2423         (WebKit::findPasswordFormFields):
2424
2425 2011-08-30  Ryosuke Niwa  <rniwa@webkit.org>
2426
2427         Chromium build fix after r94142.
2428
2429         * src/EditorClientImpl.cpp:
2430         (WebKit::EditorClientImpl::textFieldDidEndEditing):
2431         (WebKit::EditorClientImpl::doTextFieldCommandFromEvent):
2432         * src/WebPasswordFormUtils.cpp:
2433         (WebKit::findPasswordFormFields):
2434
2435 2011-08-30  Ryosuke Niwa  <rniwa@webkit.org>
2436
2437         Get rid of toInputElement()
2438         https://bugs.webkit.org/show_bug.cgi?id=67175
2439
2440         Reviewed by Darin Adler.
2441
2442         * src/WebInputElement.cpp:
2443         (WebKit::toWebInputElement):
2444
2445 2011-08-30  Nat Duca  <nduca@chromium.org>
2446
2447         Unreviewed, fix WebGL layout tests due to missing WebView pointer.
2448
2449         * src/GraphicsContext3DChromium.cpp:
2450         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
2451
2452 2011-08-30  Aaron Colwell  <acolwell@chromium.org>
2453
2454         Add MediaSource API to HTMLMediaElement
2455         https://bugs.webkit.org/show_bug.cgi?id=64731
2456
2457         Reviewed by Eric Carlson.
2458
2459         * public/WebMediaPlayer.h:
2460         (WebKit::WebMediaPlayer::sourceAppend):
2461         (WebKit::WebMediaPlayer::sourceEndOfStream):
2462         * public/WebMediaPlayerClient.h:
2463         * src/WebMediaPlayerClientImpl.cpp:
2464         (WebKit::WebMediaPlayerClientImpl::sourceOpened):
2465         (WebKit::WebMediaPlayerClientImpl::sourceURL):
2466         (WebKit::WebMediaPlayerClientImpl::sourceAppend):
2467         (WebKit::WebMediaPlayerClientImpl::sourceEndOfStream):
2468         * src/WebMediaPlayerClientImpl.h:
2469
2470 2011-08-30  Nat Duca  <nduca@chromium.org>
2471
2472         [chromium] Allow GraphicsContexts to be created from MockWebGraphicsContexts
2473         https://bugs.webkit.org/show_bug.cgi?id=67179
2474
2475         Reviewed by Kenneth Russell.
2476
2477         * WebKit.gypi:
2478         * src/GraphicsContext3DChromium.cpp:
2479         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
2480         (WebCore::GraphicsContext3DInternal::create):
2481         (WebCore::GraphicsContext3DInternal::createFromWebContext):
2482         (WebCore::GraphicsContext3D::create):
2483         * src/GraphicsContext3DInternal.h:
2484         * tests/MockGraphicsContext3DTest.cpp: Renamed from Source/WebKit/chromium/tests/MockWebGraphicsContext3DTest.cpp.
2485         (FrameCountingContext::FrameCountingContext):
2486         (FrameCountingContext::prepareTexture):
2487         (FrameCountingContext::frameCount):
2488         (TEST):
2489
2490 2011-08-30  Adam Barth  <abarth@webkit.org>
2491
2492         [Chromium] Add null checks for document()->loader()
2493         https://bugs.webkit.org/show_bug.cgi?id=67077
2494
2495         Reviewed by Nate Chapin.
2496
2497         Document::loader can return 0 for a number of reasons.  Call sites need
2498         to null check the result, like we do for Document::frame.  I suspect
2499         some of these are real crashes, along the lines of
2500         http://trac.webkit.org/changeset/93692, but null checking this function
2501         is just good practice.
2502
2503         * src/ContextMenuClientImpl.cpp:
2504         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
2505         * src/WebSearchableFormData.cpp:
2506         (HTMLNames::GetFormEncoding):
2507         * src/WebViewImpl.cpp:
2508         (WebKit::WebViewImpl::pageEncoding):
2509
2510 2011-08-29  Darin Fisher  <darin@chromium.org>
2511
2512         [chromium] DumpRenderTree should be explicit about its dependency on
2513         GoogleURL
2514         https://bugs.webkit.org/show_bug.cgi?id=67169
2515
2516         Reviewed by Ryosuke Niwa.
2517
2518         DumpRenderTree uses GoogleURL code directly, and it should be explicit
2519         about that instead of picking up this dependency transitively, which
2520         only works for the static build.
2521
2522         This is needed to support the "component" build of DumpRenderTree, in
2523         which the various Chromium dependencies are built as separate DLLs.
2524
2525         * WebKit.gyp:
2526
2527 2011-08-30  Tony Chang  <tony@chromium.org>
2528
2529         Fix chromium compile when using clang.  Another compile error due
2530         to r94080.
2531
2532         * src/ChromeClientImpl.h:
2533         (WebKit::ChromeClientImpl::scrollRectIntoView):
2534
2535 2011-08-30  Tony Chang  <tony@chromium.org>
2536
2537         Roll chromium DEPS to r98771.
2538
2539         * DEPS:
2540
2541 2011-08-29  Chris Marrin  <cmarrin@apple.com>
2542
2543         Rename GraphicsContext3DInternal to GraphicsContext3DPrivate and add a dummy version of this class for Mac
2544         https://bugs.webkit.org/show_bug.cgi?id=67172
2545
2546         Reviewed by Kenneth Russell.
2547
2548         * WebKit.gyp:
2549         * src/Extensions3DChromium.cpp:
2550         (WebCore::Extensions3DChromium::Extensions3DChromium):
2551         (WebCore::Extensions3DChromium::supports):
2552         (WebCore::Extensions3DChromium::ensureEnabled):
2553         (WebCore::Extensions3DChromium::isEnabled):
2554         (WebCore::Extensions3DChromium::getGraphicsResetStatusARB):
2555         (WebCore::Extensions3DChromium::blitFramebuffer):
2556         (WebCore::Extensions3DChromium::renderbufferStorageMultisample):
2557         (WebCore::Extensions3DChromium::mapBufferSubDataCHROMIUM):
2558         (WebCore::Extensions3DChromium::unmapBufferSubDataCHROMIUM):
2559         (WebCore::Extensions3DChromium::mapTexSubImage2DCHROMIUM):
2560         (WebCore::Extensions3DChromium::unmapTexSubImage2DCHROMIUM):
2561         (WebCore::Extensions3DChromium::setSwapBuffersCompleteCallbackCHROMIUM):
2562         (WebCore::Extensions3DChromium::rateLimitOffscreenContextCHROMIUM):
2563         (WebCore::Extensions3DChromium::paintFramebufferToCanvas):
2564         * src/GraphicsContext3DChromium.cpp:
2565         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
2566         (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
2567         (WebCore::GraphicsContext3DPrivate::initialize):
2568         (WebCore::GraphicsContext3DPrivate::extractWebGraphicsContext3D):
2569         (WebCore::GraphicsContext3DPrivate::platformGraphicsContext3D):
2570         (WebCore::GraphicsContext3DPrivate::platformTexture):
2571         (WebCore::GraphicsContext3DPrivate::grContext):
2572         (WebCore::GraphicsContext3DPrivate::prepareTexture):
2573         (WebCore::GraphicsContext3DPrivate::platformLayer):
2574         (WebCore::GraphicsContext3DPrivate::markContextChanged):
2575         (WebCore::GraphicsContext3DPrivate::markLayerComposited):
2576         (WebCore::GraphicsContext3DPrivate::layerComposited):
2577         (WebCore::GraphicsContext3DPrivate::paintFramebufferToCanvas):
2578         (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToCanvas):
2579         (WebCore::GraphicsContext3DPrivate::paintCompositedResultsToCanvas):
2580         (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToImageData):
2581         (WebCore::GraphicsContext3DPrivate::paintsIntoCanvasBuffer):
2582         (WebCore::GraphicsContext3DPrivate::reshape):
2583         (WebCore::GraphicsContext3DPrivate::getInternalFramebufferSize):
2584         (WebCore::GraphicsContext3DPrivate::isContextLost):
2585         (WebCore::GraphicsContext3DPrivate::isGLES2Compliant):
2586         (WebCore::GraphicsContext3DPrivate::bindAttribLocation):
2587         (WebCore::GraphicsContext3DPrivate::bufferData):
2588         (WebCore::GraphicsContext3DPrivate::bufferSubData):
2589         (WebCore::GraphicsContext3DPrivate::getActiveAttrib):
2590         (WebCore::GraphicsContext3DPrivate::getActiveUniform):
2591         (WebCore::GraphicsContext3DPrivate::getAttribLocation):
2592         (WebCore::GraphicsContext3DPrivate::getContextAttributes):
2593         (WebCore::GraphicsContext3DPrivate::getProgramInfoLog):
2594         (WebCore::GraphicsContext3DPrivate::getShaderInfoLog):
2595         (WebCore::GraphicsContext3DPrivate::getShaderSource):
2596         (WebCore::GraphicsContext3DPrivate::getString):
2597         (WebCore::GraphicsContext3DPrivate::getUniformLocation):
2598         (WebCore::GraphicsContext3DPrivate::shaderSource):
2599         (WebCore::GraphicsContext3DPrivate::texImage2D):
2600         (WebCore::GraphicsContext3DPrivate::texSubImage2D):
2601         (WebCore::GraphicsContext3DPrivate::uniform1fv):
2602         (WebCore::GraphicsContext3DPrivate::uniform1iv):
2603         (WebCore::GraphicsContext3DPrivate::uniform2fv):
2604         (WebCore::GraphicsContext3DPrivate::uniform2iv):
2605         (WebCore::GraphicsContext3DPrivate::uniform3fv):
2606         (WebCore::GraphicsContext3DPrivate::uniform3iv):
2607         (WebCore::GraphicsContext3DPrivate::uniform4fv):
2608         (WebCore::GraphicsContext3DPrivate::uniform4iv):
2609         (WebCore::GraphicsContext3DPrivate::uniformMatrix2fv):
2610         (WebCore::GraphicsContext3DPrivate::uniformMatrix3fv):
2611         (WebCore::GraphicsContext3DPrivate::uniformMatrix4fv):
2612         (WebCore::GraphicsContext3DPrivate::getExtensions):
2613         (WebCore::GraphicsContext3DPrivate::isResourceSafe):
2614         (WebCore::GraphicsContext3DPrivate::initializeExtensions):
2615         (WebCore::GraphicsContext3DPrivate::supportsExtension):
2616         (WebCore::GraphicsContext3DPrivate::ensureExtensionEnabled):
2617         (WebCore::GraphicsContext3DPrivate::isExtensionEnabled):
2618         (WebCore::GraphicsContext3D::~GraphicsContext3D):
2619         (WebCore::GraphicsContext3D::create):
2620         (WebCore::GraphicsContext3D::platformGraphicsContext3D):
2621         (WebCore::GraphicsContext3D::platformTexture):
2622         (WebCore::GraphicsContext3D::grContext):
2623         (WebCore::GraphicsContext3D::prepareTexture):
2624         (WebCore::GraphicsContext3D::getInternalFramebufferSize):
2625         (WebCore::GraphicsContext3D::isResourceSafe):
2626         (WebCore::GraphicsContext3D::platformLayer):
2627         (WebCore::GraphicsContext3D::layerComposited):
2628         (WebCore::GraphicsContext3D::paintsIntoCanvasBuffer):
2629         (WebCore::GraphicsContext3DPrivate::setContextLostCallback):
2630         (WebCore::GraphicsContext3D::isGLES2Compliant):
2631         (WebCore::GraphicsContext3DPrivate::setSwapBuffersCompleteCallbackCHROMIUM):
2632         * src/GraphicsContext3DInternal.h: Removed.
2633         * src/GraphicsContext3DPrivate.h: Copied from Source/WebKit/chromium/src/GraphicsContext3DInternal.h.
2634         * src/WebViewImpl.cpp:
2635         (WebKit::WebViewImpl::graphicsContext3D):
2636
2637 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
2638
2639         The unused ScrollView* argument can and should be removed from
2640         scrollRectIntoView.
2641         https://bugs.webkit.org/show_bug.cgi?id=67117
2642
2643         Reviewed by Darin Adler.
2644
2645         * src/WebPopupMenuImpl.cpp:
2646         (WebKit::WebPopupMenuImpl::scrollRectIntoView):
2647         * src/WebPopupMenuImpl.h:
2648
2649 2011-08-29  Greg Billock  <gbillock@google.com>
2650
2651         [Chromium] Add ability to do static SerializedScriptValue deserialization
2652         https://bugs.webkit.org/show_bug.cgi?id=66877
2653
2654         Reviewed by Darin Fisher.
2655
2656         * public/WebSerializedScriptValue.h:
2657         * src/WebSerializedScriptValue.cpp:
2658         (WebKit::WebSerializedScriptValue::deserialize):
2659         (WebKit::WebSerializedScriptValue::serialize):
2660
2661 2011-08-27  Peter Beverloo  <peter@chromium.org>
2662
2663         Teach the update and build scripts how to handle dependencies
2664         and cross-compiling rules for the Chromium port on OS(ANDROID).
2665         https://bugs.webkit.org/show_bug.cgi?id=66687
2666
2667         Reviewed by Adam Barth.
2668
2669         * gyp_webkit:
2670
2671 2011-08-26  Iain Merrick  <husky@google.com>
2672
2673         [chromium] Add MockWebGraphicsContext3D, for compositor unit testing
2674         https://bugs.webkit.org/show_bug.cgi?id=67006
2675
2676         MockWebGraphicsContext3D is a no-op implementation of the pure virtual
2677         interface WebGraphicsContext3D. I've included a test with a couple of
2678         example usages: subclassing it manually, and using it with GMock.
2679
2680         Reviewed by Kenneth Russell.
2681
2682         * WebKit.gypi:
2683         * tests/MockWebGraphicsContext3D.h: Added.
2684         (WebKit::MockWebGraphicsContext3D::initialize):
2685         (WebKit::MockWebGraphicsContext3D::makeContextCurrent):
2686         (WebKit::MockWebGraphicsContext3D::width):
2687         (WebKit::MockWebGraphicsContext3D::height):
2688         (WebKit::MockWebGraphicsContext3D::reshape):
2689         (WebKit::MockWebGraphicsContext3D::isGLES2Compliant):
2690         (WebKit::MockWebGraphicsContext3D::readBackFramebuffer):
2691         (WebKit::MockWebGraphicsContext3D::getPlatformTextureId):
2692         (WebKit::MockWebGraphicsContext3D::prepareTexture):
2693         (WebKit::MockWebGraphicsContext3D::synthesizeGLError):
2694         (WebKit::MockWebGraphicsContext3D::isContextLost):
2695         (WebKit::MockWebGraphicsContext3D::mapBufferSubDataCHROMIUM):
2696         (WebKit::MockWebGraphicsContext3D::unmapBufferSubDataCHROMIUM):
2697         (WebKit::MockWebGraphicsContext3D::mapTexSubImage2DCHROMIUM):
2698         (WebKit::MockWebGraphicsContext3D::unmapTexSubImage2DCHROMIUM):
2699         (WebKit::MockWebGraphicsContext3D::getRequestableExtensionsCHROMIUM):
2700         (WebKit::MockWebGraphicsContext3D::requestExtensionCHROMIUM):
2701         (WebKit::MockWebGraphicsContext3D::blitFramebufferCHROMIUM):
2702         (WebKit::MockWebGraphicsContext3D::renderbufferStorageMultisampleCHROMIUM):
2703         (WebKit::MockWebGraphicsContext3D::activeTexture):
2704         (WebKit::MockWebGraphicsContext3D::attachShader):
2705         (WebKit::MockWebGraphicsContext3D::bindAttribLocation):
2706         (WebKit::MockWebGraphicsContext3D::bindBuffer):
2707         (WebKit::MockWebGraphicsContext3D::bindFramebuffer):
2708         (WebKit::MockWebGraphicsContext3D::bindRenderbuffer):
2709         (WebKit::MockWebGraphicsContext3D::bindTexture):
2710         (WebKit::MockWebGraphicsContext3D::blendColor):
2711         (WebKit::MockWebGraphicsContext3D::blendEquation):
2712         (WebKit::MockWebGraphicsContext3D::blendEquationSeparate):
2713         (WebKit::MockWebGraphicsContext3D::blendFunc):
2714         (WebKit::MockWebGraphicsContext3D::blendFuncSeparate):
2715         (WebKit::MockWebGraphicsContext3D::bufferData):
2716         (WebKit::MockWebGraphicsContext3D::bufferSubData):
2717         (WebKit::MockWebGraphicsContext3D::checkFramebufferStatus):
2718         (WebKit::MockWebGraphicsContext3D::clear):
2719         (WebKit::MockWebGraphicsContext3D::clearColor):
2720         (WebKit::MockWebGraphicsContext3D::clearDepth):
2721         (WebKit::MockWebGraphicsContext3D::clearStencil):
2722         (WebKit::MockWebGraphicsContext3D::colorMask):
2723         (WebKit::MockWebGraphicsContext3D::compileShader):
2724         (WebKit::MockWebGraphicsContext3D::copyTexImage2D):
2725         (WebKit::MockWebGraphicsContext3D::copyTexSubImage2D):
2726         (WebKit::MockWebGraphicsContext3D::cullFace):
2727         (WebKit::MockWebGraphicsContext3D::depthFunc):
2728         (WebKit::MockWebGraphicsContext3D::depthMask):
2729         (WebKit::MockWebGraphicsContext3D::depthRange):
2730         (WebKit::MockWebGraphicsContext3D::detachShader):
2731         (WebKit::MockWebGraphicsContext3D::disable):
2732         (WebKit::MockWebGraphicsContext3D::disableVertexAttribArray):
2733         (WebKit::MockWebGraphicsContext3D::drawArrays):
2734         (WebKit::MockWebGraphicsContext3D::drawElements):
2735         (WebKit::MockWebGraphicsContext3D::enable):
2736         (WebKit::MockWebGraphicsContext3D::enableVertexAttribArray):
2737         (WebKit::MockWebGraphicsContext3D::finish):
2738         (WebKit::MockWebGraphicsContext3D::flush):
2739         (WebKit::MockWebGraphicsContext3D::framebufferRenderbuffer):
2740         (WebKit::MockWebGraphicsContext3D::framebufferTexture2D):
2741         (WebKit::MockWebGraphicsContext3D::frontFace):
2742         (WebKit::MockWebGraphicsContext3D::generateMipmap):
2743         (WebKit::MockWebGraphicsContext3D::getActiveAttrib):
2744         (WebKit::MockWebGraphicsContext3D::getActiveUniform):
2745         (WebKit::MockWebGraphicsContext3D::getAttachedShaders):
2746         (WebKit::MockWebGraphicsContext3D::getAttribLocation):
2747         (WebKit::MockWebGraphicsContext3D::getBooleanv):
2748         (WebKit::MockWebGraphicsContext3D::getBufferParameteriv):
2749         (WebKit::MockWebGraphicsContext3D::getContextAttributes):
2750         (WebKit::MockWebGraphicsContext3D::getError):
2751         (WebKit::MockWebGraphicsContext3D::getFloatv):
2752         (WebKit::MockWebGraphicsContext3D::getFramebufferAttachmentParameteriv):
2753         (WebKit::MockWebGraphicsContext3D::getIntegerv):
2754         (WebKit::MockWebGraphicsContext3D::getProgramiv):
2755         (WebKit::MockWebGraphicsContext3D::getProgramInfoLog):
2756         (WebKit::MockWebGraphicsContext3D::getRenderbufferParameteriv):
2757         (WebKit::MockWebGraphicsContext3D::getShaderiv):
2758         (WebKit::MockWebGraphicsContext3D::getShaderInfoLog):
2759         (WebKit::MockWebGraphicsContext3D::getShaderSource):
2760         (WebKit::MockWebGraphicsContext3D::getString):
2761         (WebKit::MockWebGraphicsContext3D::getTexParameterfv):
2762         (WebKit::MockWebGraphicsContext3D::getTexParameteriv):
2763         (WebKit::MockWebGraphicsContext3D::getUniformfv):
2764         (WebKit::MockWebGraphicsContext3D::getUniformiv):
2765         (WebKit::MockWebGraphicsContext3D::getUniformLocation):
2766         (WebKit::MockWebGraphicsContext3D::getVertexAttribfv):
2767         (WebKit::MockWebGraphicsContext3D::getVertexAttribiv):
2768         (WebKit::MockWebGraphicsContext3D::getVertexAttribOffset):
2769         (WebKit::MockWebGraphicsContext3D::hint):
2770         (WebKit::MockWebGraphicsContext3D::isBuffer):
2771         (WebKit::MockWebGraphicsContext3D::isEnabled):
2772         (WebKit::MockWebGraphicsContext3D::isFramebuffer):
2773         (WebKit::MockWebGraphicsContext3D::isProgram):
2774         (WebKit::MockWebGraphicsContext3D::isRenderbuffer):
2775         (WebKit::MockWebGraphicsContext3D::isShader):
2776         (WebKit::MockWebGraphicsContext3D::isTexture):
2777         (WebKit::MockWebGraphicsContext3D::lineWidth):
2778         (WebKit::MockWebGraphicsContext3D::linkProgram):
2779         (WebKit::MockWebGraphicsContext3D::pixelStorei):
2780         (WebKit::MockWebGraphicsContext3D::polygonOffset):
2781         (WebKit::MockWebGraphicsContext3D::readPixels):
2782         (WebKit::MockWebGraphicsContext3D::releaseShaderCompiler):
2783         (WebKit::MockWebGraphicsContext3D::renderbufferStorage):
2784         (WebKit::MockWebGraphicsContext3D::sampleCoverage):
2785         (WebKit::MockWebGraphicsContext3D::scissor):
2786         (WebKit::MockWebGraphicsContext3D::shaderSource):
2787         (WebKit::MockWebGraphicsContext3D::stencilFunc):
2788         (WebKit::MockWebGraphicsContext3D::stencilFuncSeparate):
2789         (WebKit::MockWebGraphicsContext3D::stencilMask):
2790         (WebKit::MockWebGraphicsContext3D::stencilMaskSeparate):
2791         (WebKit::MockWebGraphicsContext3D::stencilOp):
2792         (WebKit::MockWebGraphicsContext3D::stencilOpSeparate):
2793         (WebKit::MockWebGraphicsContext3D::texImage2D):
2794         (WebKit::MockWebGraphicsContext3D::texParameterf):
2795         (WebKit::MockWebGraphicsContext3D::texParameteri):
2796         (WebKit::MockWebGraphicsContext3D::texSubImage2D):
2797         (WebKit::MockWebGraphicsContext3D::uniform1f):
2798         (WebKit::MockWebGraphicsContext3D::uniform1fv):
2799         (WebKit::MockWebGraphicsContext3D::uniform1i):
2800         (WebKit::MockWebGraphicsContext3D::uniform1iv):
2801         (WebKit::MockWebGraphicsContext3D::uniform2f):
2802         (WebKit::MockWebGraphicsContext3D::uniform2fv):
2803         (WebKit::MockWebGraphicsContext3D::uniform2i):
2804         (WebKit::MockWebGraphicsContext3D::uniform2iv):
2805         (WebKit::MockWebGraphicsContext3D::uniform3f):
2806         (WebKit::MockWebGraphicsContext3D::uniform3fv):
2807         (WebKit::MockWebGraphicsContext3D::uniform3i):
2808         (WebKit::MockWebGraphicsContext3D::uniform3iv):
2809         (WebKit::MockWebGraphicsContext3D::uniform4f):
2810         (WebKit::MockWebGraphicsContext3D::uniform4fv):
2811         (WebKit::MockWebGraphicsContext3D::uniform4i):
2812         (WebKit::MockWebGraphicsContext3D::uniform4iv):
2813         (WebKit::MockWebGraphicsContext3D::uniformMatrix2fv):
2814         (WebKit::MockWebGraphicsContext3D::uniformMatrix3fv):
2815         (WebKit::MockWebGraphicsContext3D::uniformMatrix4fv):
2816         (WebKit::MockWebGraphicsContext3D::useProgram):
2817         (WebKit::MockWebGraphicsContext3D::validateProgram):
2818         (WebKit::MockWebGraphicsContext3D::vertexAttrib1f):
2819         (WebKit::MockWebGraphicsContext3D::vertexAttrib1fv):
2820         (WebKit::MockWebGraphicsContext3D::vertexAttrib2f):
2821         (WebKit::MockWebGraphicsContext3D::vertexAttrib2fv):
2822         (WebKit::MockWebGraphicsContext3D::vertexAttrib3f):
2823         (WebKit::MockWebGraphicsContext3D::vertexAttrib3fv):
2824         (WebKit::MockWebGraphicsContext3D::vertexAttrib4f):
2825         (WebKit::MockWebGraphicsContext3D::vertexAttrib4fv):
2826         (WebKit::MockWebGraphicsContext3D::vertexAttribPointer):
2827         (WebKit::MockWebGraphicsContext3D::viewport):
2828         (WebKit::MockWebGraphicsContext3D::createBuffer):
2829         (WebKit::MockWebGraphicsContext3D::createFramebuffer):
2830         (WebKit::MockWebGraphicsContext3D::createProgram):
2831         (WebKit::MockWebGraphicsContext3D::createRenderbuffer):
2832         (WebKit::MockWebGraphicsContext3D::createShader):
2833         (WebKit::MockWebGraphicsContext3D::createTexture):
2834         (WebKit::MockWebGraphicsContext3D::deleteBuffer):
2835         (WebKit::MockWebGraphicsContext3D::deleteFramebuffer):
2836         (WebKit::MockWebGraphicsContext3D::deleteProgram):
2837         (WebKit::MockWebGraphicsContext3D::deleteRenderbuffer):
2838         (WebKit::MockWebGraphicsContext3D::deleteShader):
2839         (WebKit::MockWebGraphicsContext3D::deleteTexture):
2840         * tests/MockWebGraphicsContext3DTest.cpp: Added.
2841         (TEST):
2842         (FrameCountingContext::FrameCountingContext):
2843         (FrameCountingContext::prepareTexture):
2844         (FrameCountingContext::frameCount):
2845
2846 2011-08-26  Nate Chapin  <japhet@chromium.org>
2847
2848         Use enums instead of bools for ThreadableLoaderOptions
2849         variables.
2850         https://bugs.webkit.org/show_bug.cgi?id=66984
2851
2852         Reviewed by David Levin.
2853
2854         * src/AssociatedURLLoader.cpp:
2855         (WebKit::AssociatedURLLoader::loadAsynchronously):
2856
2857 2011-08-25  Jeremy Apthorp  <jeremya@google.com>
2858
2859         Enable fullscreen API in Chromium by default.
2860         https://bugs.webkit.org/show_bug.cgi?id=66993
2861
2862         Reviewed by Adam Barth.
2863
2864         * features.gypi:
2865
2866 2011-08-25  Scott Graham  <scottmg@chromium.org>
2867
2868         Enable incremental linking for component build on Chromium
2869         https://bugs.webkit.org/show_bug.cgi?id=66950
2870
2871         Reviewed by Darin Fisher.
2872
2873         Turns on Use Library Dependency Inputs for webkit.vcproj on Windows
2874         build, when incremental_chrome_dll gyp flag is set. This is to get
2875         faster incremental links on Windows builds.
2876
2877         * WebKit.gyp:
2878
2879 2011-08-25  Pavel Podivilov  <podivilov@chromium.org>
2880
2881         Unreviewed, fix chromium devtools tests.
2882
2883         * src/js/Tests.js:
2884         (.TestSuite.prototype.evaluateInConsole_):
2885
2886 2011-08-25  John Bates  <jbates@google.com>
2887
2888         [chromium] Leaking SkBitmaps for background images
2889         https://bugs.webkit.org/show_bug.cgi?id=66488
2890
2891         Reviewed by Stephen White.
2892
2893         This patch simply changes NativeImageSkia to have a SkBitmap instead of
2894         deriving from SkBitmap. All dependent code updated to access the member
2895         instead of calling SkBitmap methods on NativeImageSkia objects. This
2896         may or may not fix the memory leak, but it's definitely a bug that could
2897         cause memory leaks.
2898
2899         * src/PlatformBridge.cpp:
2900         (WebCore::PlatformBridge::clipboardWriteImage):
2901         * src/WebImageDecoder.cpp:
2902         (WebKit::WebImageDecoder::getFrameAtIndex):
2903         * src/WebImageSkia.cpp:
2904         (WebKit::WebImage::fromData):
2905         (WebKit::WebImage::operator=):
2906
2907 2011-08-25  Brian Salomon  <bsalomon@google.com>
2908
2909         [SKIA] Move forward decl of skia type outside namespace Webkit
2910         https://bugs.webkit.org/show_bug.cgi?id=66942
2911
2912         Reviewed by Stephen White.
2913
2914         * public/WebGraphicsContext3D.h:
2915
2916 2011-08-25  Mikhail Naganov  <mnaganov@chromium.org>
2917
2918         Chromium: expose MemoryCache::prune and FontCache::purgeInactiveFontData.
2919         https://bugs.webkit.org/show_bug.cgi?id=66132
2920
2921         Reviewed by Tony Gentilcore.
2922
2923         * public/WebCache.h:
2924         * public/WebFontCache.h:
2925         * src/WebCache.cpp:
2926         (WebKit::WebCache::clear):
2927         (WebKit::WebCache::prune):
2928         * src/WebFontCache.cpp:
2929         (WebKit::WebFontCache::prune):
2930
2931 2011-08-24  Kentaro Hara  <haraken@google.com>
2932
2933         Implement a keypath parser strictly following the specification
2934         https://bugs.webkit.org/show_bug.cgi?id=62288
2935
2936         Reviewed by Tony Chang.
2937
2938         Implemented a keypath parser that accepts either an empty string, a JavaScript
2939         identifier, or multiple JavaScript identifiers separated by periods.
2940         We fixed createObjectStore() and createIndex() so that they parse and check
2941         their |keypath| argument and return an appropriate exception if the |keypath|
2942         is not valid. We also added unit tests for the new keypath parser in
2943         tests/IDBKeyPathTest.cpp. We replaced IDBKeyPathElement with String here and there.
2944
2945         Tests: IDBKeyPathTest.*
2946                IDBKeyFromValueAndKeyPathTest.*
2947                InjectIDBKeyTest.*
2948
2949         * public/WebIDBKeyPath.h:
2950         * src/WebIDBKeyPath.cpp:
2951         (WebKit::WebIDBKeyPath::create): Replaced IDBKeyPathElement with String
2952         (WebKit::WebIDBKeyPath::WebIDBKeyPath): Replaced IDBKeyPathElement with String
2953         (WebKit::WebIDBKeyPath::assign): Replaced IDBKeyPathElement with String
2954         (WebKit::WebIDBKeyPath::operator const WTF::Vector<WTF::String, 0>&): Replaced IDBKeyPathElement with String
2955         * tests/IDBBindingUtilitiesTest.cpp:
2956         (WebCore::checkKeyFromValueAndKeyPathInternal): Replaced IDBKeyPathElement with String
2957         (WebCore::injectKey): Replaced IDBKeyPathElement with String
2958         (WebCore::TEST): Rewrote tests for the new keypath parser
2959         * tests/IDBKeyPathTest.cpp:
2960         (WebCore::checkKeyPath): Checks if a keypath is an expected keypath or not
2961         (WebCore::TEST): Unit tests for the new keypath parser
2962
2963 2011-08-24  Eric Uhrhane  <ericu@chromium.org>
2964
2965         Reviewed by Adam Barth.
2966
2967         [filesystem/Chromium] Filesystem paths need proper URL escaping
2968         https://bugs.webkit.org/show_bug.cgi?id=62811
2969
2970         Fix http://code.google.com/p/chromium/issues/detail?id=78860 by making
2971         KURLChromium.cpp's escaping code actually work.
2972
2973         Here I added the needed calls to encodeWithURLEscapeSequences.
2974         * src/AsyncFileSystemChromium.cpp:
2975         (WebCore::AsyncFileSystemChromium::virtualPathToFileSystemURL):
2976         * src/WorkerAsyncFileSystemChromium.cpp:
2977         (WebCore::WorkerAsyncFileSystemChromium::virtualPathToFileSystemURL):
2978
2979         Here I updated the test to reflect the new functionality in
2980         encodeWithURLEscapeSequences.
2981         * tests/KURLTest.cpp:
2982
2983 2011-08-24  Ilya Sherman  <isherman@chromium.org>
2984
2985         Remove some dead Autofill code
2986         https://bugs.webkit.org/show_bug.cgi?id=66899
2987         http://code.google.com/p/chromium/issues/detail?id=51644
2988
2989         Reviewed by James Robinson.
2990
2991         * WebKit.gyp:
2992         * public/WebAutofillClient.h:
2993         * public/WebFrame.h:
2994         * public/WebPasswordAutocompleteListener.h: Removed.
2995         * src/EditorClientImpl.cpp:
2996         (WebKit::EditorClientImpl::EditorClientImpl):
2997         (WebKit::EditorClientImpl::handleKeyboardEvent):
2998         (WebKit::EditorClientImpl::textFieldDidBeginEditing):
2999         (WebKit::EditorClientImpl::textFieldDidEndEditing):
3000         (WebKit::EditorClientImpl::textDidChangeInTextField):
3001         (WebKit::EditorClientImpl::doTextFieldCommandFromEvent):
3002         * src/EditorClientImpl.h:
3003         * src/FrameLoaderClientImpl.cpp:
3004         (WebKit::FrameLoaderClientImpl::dispatchDidFinishDocumentLoad):
3005         * src/WebFrameImpl.cpp:
3006         (WebKit::frameContentAsPlainText):
3007         (WebKit::WebFrameImpl::scopeStringMatches):
3008         (WebKit::WebFrameImpl::~WebFrameImpl):
3009         * src/WebFrameImpl.h:
3010         * src/WebViewImpl.cpp:
3011         (WebKit::WebViewImpl::mouseDown):
3012
3013 2011-08-24  Tom Sepez  <tsepez@chromium.org>
3014
3015         chromium WebFrameImpl - don't load javascript URLs against chrome internal pages.
3016         https://bugs.webkit.org/show_bug.cgi?id=66720
3017
3018         Reviewed by Adam Barth.
3019
3020         * public/WebSecurityPolicy.h:
3021         * src/WebFrameImpl.cpp:
3022         (WebKit::WebFrameImpl::loadJavaScriptURL):
3023         * src/WebSecurityPolicy.cpp:
3024         (WebKit::WebSecurityPolicy::registerURLSchemeAsNotAllowingJavascriptURLs):
3025         * tests/WebFrameTest.cpp:
3026         (WebKit::WebFrameTest::WebFrameTest):
3027         (WebKit::WebFrameTest::registerMockedHttpURLLoad):
3028         (WebKit::WebFrameTest::registerMockedChromeURLLoad):
3029         (WebKit::WebFrameTest::serveRequests):
3030         (WebKit::WebFrameTest::loadHttpFrame):
3031         (WebKit::WebFrameTest::loadChromeFrame):
3032         (WebKit::WebFrameTest::registerMockedURLLoad):
3033         (WebKit::WebFrameTest::loadFrame):
3034         (WebKit::TEST_F):
3035         * tests/data/history.html: Added.
3036
3037 2011-08-24  Jeremy Apthorp  <jeremya@google.com>
3038
3039         Expose fullscreen API on WebElement/WebDocument
3040         https://bugs.webkit.org/show_bug.cgi?id=66746
3041
3042         Reviewed by Darin Fisher.
3043
3044         * public/WebPluginContainer.h:
3045         * src/WebPluginContainerImpl.cpp:
3046         (WebKit::WebPluginContainerImpl::setFullscreen):
3047         * src/WebPluginContainerImpl.h:
3048
3049 2011-08-24  Brian Salomon  <bsalomon@google.com>
3050
3051         [SKIA] Allow WebKitGraphicsContext3D implementation to provide a compatible GrGLInterface
3052         https://bugs.webkit.org/show_bug.cgi?id=66809
3053
3054         Reviewed by Stephen White.
3055
3056         * public/WebGraphicsContext3D.h:
3057         (WebKit::WebGraphicsContext3D::grGLInterface):
3058         * src/GraphicsContext3DChromium.cpp:
3059         (WebCore::GraphicsContext3DInternal::grContext):
3060
3061 2011-08-23  Adam Barth  <abarth@webkit.org>
3062
3063         WebSearchableFormData crashes when given a detached HTMLFormElement
3064         https://bugs.webkit.org/show_bug.cgi?id=66831
3065
3066         Reviewed by Dimitri Glazkov.
3067
3068         We need to null-check the Frame.
3069
3070         * src/WebSearchableFormData.cpp:
3071         (HTMLNames::GetFormEncoding):
3072         * tests/WebFrameTest.cpp:
3073         (WebKit::TEST_F):
3074         * tests/data/form.html: Added.
3075
3076 2011-08-23  Iain Merrick  <husky@google.com>
3077
3078         [chromium] Make WebGL context current before querying for extensions
3079         https://bugs.webkit.org/show_bug.cgi?id=66788
3080
3081         We're making changes on the Chromium side for threaded compositing that
3082         will require makeContextCurrent to be called on the appropriate thread
3083         before any other GL calls.
3084
3085         In line with other GraphicsContext3D implementations, we do this
3086         implicitly. This is the minimum change that makes WebGL compliant.
3087
3088         Reviewed by Kenneth Russell.
3089
3090         * src/GraphicsContext3DChromium.cpp:
3091         (WebCore::GraphicsContext3DInternal::initializeExtensions):
3092
3093 2011-08-23  Scott Byer  <scottbyer@chromium.org>
3094
3095         ScrollAnimatorNone coasting implementation
3096         https://bugs.webkit.org/show_bug.cgi?id=66258
3097
3098         Reviewed by James Robinson.
3099
3100         * tests/ScrollAnimatorNoneTest.cpp:
3101         (MockScrollableArea::visibleHeight):
3102         (MockScrollableArea::visibleWidth):
3103         (ScrollAnimatorNoneTest::SavePerAxisData::SavePerAxisData):
3104         (ScrollAnimatorNoneTest::SavePerAxisData::operator==):
3105         (ScrollAnimatorNoneTest::SetUp):
3106         (ScrollAnimatorNoneTest::updateDataFromParameters):
3107         (ScrollAnimatorNoneTest::animateScroll):
3108         (ScrollAnimatorNoneTest::attackArea):
3109         (ScrollAnimatorNoneTest::releaseArea):
3110         (ScrollAnimatorNoneTest::coastCurve):
3111         (ScrollAnimatorNoneTest::curveTestInner):
3112         (TEST_F):
3113
3114 2011-08-23  James Robinson  <jamesr@chromium.org>
3115
3116         [chromium] Need a way to test lost compositor context recovery
3117         https://bugs.webkit.org/show_bug.cgi?id=66820
3118
3119         Reviewed by Kenneth Russell.
3120
3121         Adds a testing-only API to simulate a lost compositor context.
3122
3123         * public/WebView.h:
3124         * src/WebViewImpl.cpp:
3125         (WebKit::WebViewImpl::loseCompositorContext):
3126         * src/WebViewImpl.h:
3127
3128 2011-08-23  Nat Duca  <nduca@chromium.org>
3129
3130         [chromium] Implement CCThread in terms of WebThread
3131         https://bugs.webkit.org/show_bug.cgi?id=66610
3132
3133         Reviewed by Darin Fisher.
3134
3135         * WebKit.gyp:
3136         * public/WebThread.h:
3137         (WebKit::WebThread::~WebThread):
3138         * src/CCThreadImpl.cpp: Added.
3139         (WebKit::GetThreadIDTask::GetThreadIDTask):
3140         (WebKit::GetThreadIDTask::~GetThreadIDTask):
3141         (WebKit::GetThreadIDTask::run):
3142         (WebKit::CCThreadTaskAdapter::CCThreadTaskAdapter):
3143         (WebKit::CCThreadTaskAdapter::~CCThreadTaskAdapter):
3144         (WebKit::CCThreadTaskAdapter::run):
3145         (WebKit::CCThreadImpl::create):
3146         (WebKit::CCThreadImpl::~CCThreadImpl):
3147         (WebKit::CCThreadImpl::postTask):
3148         (WebKit::CCThreadImpl::threadID):
3149         (WebKit::CCThreadImpl::CCThreadImpl):
3150         * src/CCThreadImpl.h: Renamed from Source/WebCore/platform/graphics/chromium/cc/CCThread.cpp.
3151         * src/WebViewImpl.cpp:
3152         (WebKit::WebViewImpl::createCompositorThread):
3153         * src/WebViewImpl.h:
3154         * tests/CCThreadTest.cpp:
3155
3156 2011-08-23  Iain Merrick  <husky@google.com>
3157
3158         [chromium] Renderer crashes when about:gpucrash is loaded
3159         https://bugs.webkit.org/show_bug.cgi?id=66814
3160
3161         WebViewImpl::didRecreateGraphicsContext() was calling
3162         setRootLayer() on the CC layer tree, but the root layer
3163         doesn't actually change and the code wasn't defensive
3164         against this. This CL adds some asserts to catch tree
3165         corruption and removes the unnecessary calls.
3166
3167         Reviewed by James Robinson.
3168
3169         * src/WebViewImpl.cpp:
3170         (WebKit::WebViewImpl::didRecreateGraphicsContext):
3171
3172 2011-08-23  Dmitry Lomov  <Dmitry Lomov (dslomov@google.com)>
3173
3174         https://bugs.webkit.org/show_bug.cgi?id=66751 
3175         [Chromium]WebWorkerClientImpl should always invoke
3176         InspectorIntrumentation on main thread.
3177         The fix moves calls to InspectorInstrumentation from
3178         WebWorkerClientImpl to unedrlying WorkerMessagingProxy.
3179
3180         Reviewed by Pavel Feldman.
3181
3182         * src/WebWorkerClientImpl.cpp:
3183         (WebKit::WebWorkerClientImpl::terminateWorkerContext):
3184         (WebKit::WebWorkerClientImpl::workerContextDestroyed):
3185
3186 2011-08-23  Adam Klein  <adamk@chromium.org>
3187
3188         [chromium] Remove a few FIXME #defines in API headers
3189         https://bugs.webkit.org/show_bug.cgi?id=66791
3190
3191         Reviewed by James Robinson.
3192
3193         * DEPS:
3194         Roll chromium_rev to r97891.
3195         * public/WebFileSystem.h:
3196         #define made obsolete in http://crrev.com/97520.
3197         * public/WebKitClient.h:
3198         #define made obsolete in http://crrev.com/97524 and
3199         http://crrev.com/97891.
3200
3201
3202 2011-08-23  Al Patrick  <apatrick@chromium.org>
3203
3204         Add shareResources flag to 3D graphics context attributes
3205         https://bugs.webkit.org/show_bug.cgi?id=66516
3206
3207         Reviewed by James Robinson.
3208
3209         * public/WebGraphicsContext3D.h:
3210         (WebKit::WebGraphicsContext3D::Attributes::Attributes):
3211         * src/GraphicsContext3DChromium.cpp:
3212         (WebCore::GraphicsContext3DInternal::initialize):
3213         * src/WebViewImpl.cpp:
3214         (std::getCompositorContextAttributes):
3215
3216 2011-08-23  Fady Samuel  <fsamuel@chromium.org>
3217
3218         New MainFrame views should inherit fixed layout settings from existing MainFrame view in Chromium.
3219         https://bugs.webkit.org/show_bug.cgi?id=66780
3220
3221         Fixed layout mode is set from WebViewImpl, but new main FrameViews are created on loading new pages. The new page's FrameView should get its
3222         fixed layout settings from the current page.
3223
3224         Reviewed by Darin Fisher.
3225
3226         * src/WebFrameImpl.cpp:
3227         (WebKit::WebFrameImpl::createFrameView):
3228
3229 2011-08-23  Matt Falkenhagen  <falken@chromium.org>
3230
3231         [chromium] Update WebSettings to support per-script font settings
3232         https://bugs.webkit.org/show_bug.cgi?id=66220
3233
3234         Reviewed by Tony Chang.
3235
3236         * WebKit.gyp:
3237         * public/WebSettings.h:
3238         * src/WebSettingsImpl.cpp:
3239         (WebKit::WebSettingsImpl::setStandardFontFamily):
3240         (WebKit::WebSettingsImpl::setFixedFontFamily):
3241         (WebKit::WebSettingsImpl::setSerifFontFamily):
3242         (WebKit::WebSettingsImpl::setSansSerifFontFamily):
3243         (WebKit::WebSettingsImpl::setCursiveFontFamily):
3244         (WebKit::WebSettingsImpl::setFantasyFontFamily):
3245         * src/WebSettingsImpl.h:
3246
3247 2011-08-23  Nat Duca  <nduca@chromium.org>
3248
3249         Unreviewd, roll chromium reverse DEPS 97698:97834
3250         https://bugs.webkit.org/show_bug.cgi?id=66781
3251
3252         * DEPS:
3253
3254 2011-08-22  Sheriff Bot  <webkit.review.bot@gmail.com>
3255
3256         Unreviewed, rolling out r93575.
3257         http://trac.webkit.org/changeset/93575
3258         https://bugs.webkit.org/show_bug.cgi?id=66744
3259
3260         Does not compile on chromium canaries (Requested by jamesr on
3261         #webkit).
3262
3263         * public/WebSettings.h:
3264         * src/WebSettingsImpl.cpp:
3265         (WebKit::WebSettingsImpl::setStandardFontFamily):
3266         (WebKit::WebSettingsImpl::setFixedFontFamily):
3267         (WebKit::WebSettingsImpl::setSerifFontFamily):
3268         (WebKit::WebSettingsImpl::setSansSerifFontFamily):
3269         (WebKit::WebSettingsImpl::setCursiveFontFamily):
3270         (WebKit::WebSettingsImpl::setFantasyFontFamily):
3271         * src/WebSettingsImpl.h:
3272
3273 2011-08-22  Matt Falkenhagen  <falken@chromium.org>
3274
3275         [chromium] Update WebSettings to support per-script font settings
3276         https://bugs.webkit.org/show_bug.cgi?id=66220
3277
3278         Reviewed by Tony Chang.
3279
3280         * public/WebSettings.h:
3281         * src/WebSettingsImpl.cpp:
3282         (WebKit::WebSettingsImpl::setStandardFontFamily):
3283         (WebKit::WebSettingsImpl::setFixedFontFamily):
3284         (WebKit::WebSettingsImpl::setSerifFontFamily):
3285         (WebKit::WebSettingsImpl::setSansSerifFontFamily):
3286         (WebKit::WebSettingsImpl::setCursiveFontFamily):
3287         (WebKit::WebSettingsImpl::setFantasyFontFamily):
3288         * src/WebSettingsImpl.h:
3289
3290 2011-08-22  Iain Merrick  <husky@google.com>
3291
3292         [chromium] WebViewImpl should not reshape the 3D context
3293         https://bugs.webkit.org/show_bug.cgi?id=66704
3294
3295         Reviewed by James Robinson.
3296
3297         * src/WebViewImpl.cpp:
3298         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
3299         (WebKit::WebViewImpl::graphicsContext3D):
3300
3301 2011-08-22  Nat Duca  <nduca@chromium.org>
3302
3303         Make GraphicsContext3D::isResourceSafe a function and, on Chromium, determine its value lazily
3304         https://bugs.webkit.org/show_bug.cgi?id=66708
3305
3306         Reviewed by Kenneth Russell.
3307
3308         * src/GraphicsContext3DChromium.cpp:
3309         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
3310         (WebCore::GraphicsContext3DInternal::isResourceSafe):
3311         (WebCore::GraphicsContext3D::create):
3312         (WebCore::GraphicsContext3D::isResourceSafe):
3313         * src/GraphicsContext3DInternal.h:
3314
3315 2011-08-22  Adam Klein  <adamk@chromium.org>
3316
3317         [chromium] Remove deprecated and unused bits of WebIDB* headers
3318         https://bugs.webkit.org/show_bug.cgi?id=66711
3319
3320         Reviewed by Tony Chang.
3321
3322         The Chromium side of this patch was submitted as
3323         http://crrev.com/97687.
3324
3325         * public/WebIDBCallbacks.h:
3326         * public/WebIDBCursor.h:
3327         (WebKit::WebIDBCursor::primaryKey):
3328         (WebKit::WebIDBCursor::value):
3329         (WebKit::WebIDBCursor::deleteFunction):
3330         * public/WebIDBDatabase.h:
3331         (WebKit::WebIDBDatabase::transaction):
3332
3333 2011-08-22  Dimitri Glazkov  <dglazkov@chromium.org>
3334
3335         Remove third_party/leveldb, because it's no longer used and doesn't exist downstream.
3336
3337         * DEPS: Done it.
3338
3339 2011-08-22  Dimitri Glazkov  <dglazkov@chromium.org>
3340
3341         Roll Chromium DEPS to 97698.
3342
3343         * DEPS: Rolled.
3344
3345 2011-08-22  Justin Novosad  <junov@chromium.org>
3346
3347         [Chromium] Crash when allocation of very large canvas fails
3348         https://bugs.webkit.org/show_bug.cgi?id=66563
3349
3350         Reviewed by Stephen White.
3351
3352         * DEPS:
3353         Bumping up the chrome DEPS to pick up 97474, which is
3354         required by this patch.
3355
3356 2011-08-20  Nebojsa Ciric  <cira@chromium.org>
3357
3358         Add dependency on v8-i18n library. We used v8 repository before.
3359         Chromium DEPS change was already submited (http://codereview.chromium.org/7583050).
3360         https://bugs.webkit.org/show_bug.cgi?id=66573
3361
3362         Reviewed by Kent Tamura.
3363
3364         * DEPS:
3365
3366 2011-08-19  Adam Klein  <adamk@chromium.org>
3367
3368         [chromium] Remove various unreferenced bits from Chromium API headers
3369         https://bugs.webkit.org/show_bug.cgi?id=66575
3370
3371         Reviewed by Tony Chang.
3372
3373         * public/WebApplicationCacheHost.h:
3374         (WebKit::WebApplicationCacheHost::willStartMainResourceRequest):
3375         * public/WebFrame.h:
3376         * public/WebFrameClient.h:
3377         (WebKit::WebFrameClient::didReceiveTitle):
3378         * public/WebVideoFrame.h:
3379
3380 2011-08-19  Fady Samuel  <fsamuel@chromium.org>
3381
3382         Expose Fixed Layout Size mode to Chromium's WebKit API
3383         https://bugs.webkit.org/show_bug.cgi?id=66568
3384
3385         Reviewed by Darin Fisher.
3386
3387         * public/WebView.h:
3388         * src/WebViewImpl.cpp:
3389         (WebKit::WebViewImpl::isFixedLayoutModeEnabled):
3390         (WebKit::WebViewImpl::enableFixedLayoutMode):
3391         (WebKit::WebViewImpl::fixedLayoutSize):
3392         (WebKit::WebViewImpl::setFixedLayoutSize):
3393         * src/WebViewImpl.h:
3394
3395 2011-08-17  Adrienne Walker  <enne@google.com>
3396
3397         [chromium] Split tiler into main thread / compositor thread versions
3398         https://bugs.webkit.org/show_bug.cgi?id=66065
3399
3400         Reviewed by James Robinson.
3401
3402         Add a test for assignment and copy constructor for TilingData.
3403
3404         * tests/TilingDataTest.cpp:
3405         (WebCore::TEST):
3406
3407 2011-08-19  Andrey Kosyakov  <caseq@chromium.org>
3408
3409         Web Inspector: [Extensions API][chromium] webInspector.resources deprecation warning is given even for extensions that don't use webInspector.resources
3410         https://bugs.webkit.org/show_bug.cgi?id=66553
3411
3412         Reviewed by Pavel Feldman.
3413
3414         * src/js/DevTools.js:
3415         (WebInspector.platformExtensionAPI):
3416
3417 2011-08-18  James Kozianski  <koz@chromium.org>
3418
3419         Chromium plumbing for webkitRequestFullScreen
3420         https://bugs.webkit.org/show_bug.cgi?id=66031
3421
3422         Reviewed by Darin Fisher.
3423
3424         * public/WebView.h:
3425         * public/WebViewClient.h:
3426         (WebKit::WebViewClient::enterFullscreenForElement):
3427         (WebKit::WebViewClient::exitFullscreenForElement):
3428         * src/ChromeClientImpl.cpp:
3429         (WebKit::ChromeClientImpl::enterFullScreenForElement):
3430         (WebKit::ChromeClientImpl::exitFullScreenForElement):
3431         * src/WebViewImpl.cpp:
3432         (WebKit::WebViewImpl::exitFullscreen):
3433         * src/WebViewImpl.h:
3434
3435 2011-08-18  Chris Rogers  <crogers@google.com>
3436
3437         Implement WebMediaPlayerClientImpl::audioSourceProvider() and interface into chromium
3438         https://bugs.webkit.org/show_bug.cgi?id=66441
3439
3440         Reviewed by Darin Fisher.
3441
3442         * public/WebAudioSourceProvider.h: Added.
3443         (WebKit::WebAudioSourceProvider::~WebAudioSourceProvider):
3444         * public/WebMediaPlayer.h:
3445         (WebKit::WebMediaPlayer::audioSourceProvider):
3446         * src/WebMediaPlayerClientImpl.cpp:
3447         (WebKit::WebMediaPlayerClientImpl::audioSourceProvider):
3448         (WebKit::WebMediaPlayerClientImpl::AudioSourceProviderImpl::provideInput):
3449         * src/WebMediaPlayerClientImpl.h:
3450         (WebKit::WebMediaPlayerClientImpl::AudioSourceProviderImpl::AudioSourceProviderImpl):
3451         (WebKit::WebMediaPlayerClientImpl::AudioSourceProviderImpl::~AudioSourceProviderImpl):
3452         (WebKit::WebMediaPlayerClientImpl::AudioSourceProviderImpl::initialize):
3453
3454 2011-08-18  Sailesh Agrawal  <sail@chromium.org>
3455
3456         Chromium Mac: Show scrollbar when doing search
3457         https://bugs.webkit.org/show_bug.cgi?id=66209
3458
3459         Reviewed by James Robinson.
3460
3461         Fixed a bug in invalidateArea where it wouldn't properly invalidate overlay scrollbars. The problem was that it was assuming that the scrollbar was always to the right of the visible scrollbar. This isn't true for overlay scrollbars.
3462
3463         No tests because there are no Mac 10.7 chromium bots yet.
3464
3465         * src/WebFrameImpl.cpp:
3466         (WebKit::WebFrameImpl::invalidateArea):
3467
3468 2011-08-18  James Robinson  <jamesr@chromium.org>
3469
3470         [chromium] Draw the root/"non-composited content" in compositor side
3471         https://bugs.webkit.org/show_bug.cgi?id=58834
3472
3473         Reviewed by Kenneth Russell.
3474
3475         * src/WebViewImpl.cpp:
3476         (WebKit::WebViewImpl::paint):
3477         (WebKit::WebViewImpl::setRootGraphicsLayer):
3478         (WebKit::WebViewImpl::didRecreateGraphicsContext):
3479         (WebKit::WebViewImpl::updateLayerTreeViewport):
3480         * src/WebViewImpl.h:
3481
3482 2011-08-18  Sadrul Habib Chowdhury  <sadrul@chromium.org>
3483
3484         GestureRecognizer: Update how gesture-scroll works.
3485
3486         Add a unit-test to make sure the correct gesture events are being
3487         generated.
3488         https://bugs.webkit.org/show_bug.cgi?id=66267
3489
3490         Reviewed by Adam Barth.
3491
3492         * tests/InnerGestureRecognizerTest.cpp:
3493         (WebCore::BuildablePlatformTouchPoint::BuildablePlatformTouchPoint):
3494         (WebCore::BuildablePlatformTouchEvent::BuildablePlatformTouchEvent):
3495         (WebCore::TEST_F):
3496
3497 2011-08-18  Sheriff Bot  <webkit.review.bot@gmail.com>
3498
3499         Unreviewed, rolling out r93329.
3500         http://trac.webkit.org/changeset/93329
3501         https://bugs.webkit.org/show_bug.cgi?id=66497