5521da97220723f1a8d16d37f94a87a598c1b463
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2013-02-25  Alpha Lam  <hclam@chromium.org>
2
3         GIFImageReader to read from source data directly
4         https://bugs.webkit.org/show_bug.cgi?id=109662
5
6         Reviewed by Stephen White.
7
8         Added the following unit tests to test new logic in GIFImageDecoder:
9
10         GIFImageDecoderTest.decodeTwoFrames
11         Test that it can decode a multi-frame GIF image correctly.
12
13         GIFImageDecoderTest.parseAndDecode
14         First perform a parse operation and then a decode operation. Expect
15         that parse and decode operates correctly.
16
17         GIFImageDecoderTest.parseByteByByte
18         Test that multi-frame GIF image can be parsed correctly byte by byte.
19
20         GIFImageDecoderTest.parseAndDecodeByteByByte
21         Run a loop to feed decoder byte by byte, perform a parse and then
22         decode operation and make sure frames are decoded correctly.
23
24         GIFImageDecoderTest.brokenSecondFrame
25         Decode a GIF image with second frame broken. Expect that the first
26         frame can be decoded correctly.
27
28         * WebKit.gyp:
29         * WebKit.gypi:
30         * tests/GIFImageDecoderTest.cpp: Added.
31         (WebKit):
32         (WebKit::readFile):
33         (WebKit::TEST):
34         * tests/data/broken.gif: Added.
35
36 2013-02-25  Andrey Kosyakov  <caseq@chromium.org>
37
38         Unreviewed follow-up to r143725, reduce chances test flakes on a slow box.
39
40         * src/js/Tests.js:
41         (.TestSuite.prototype.testPageOverlayUpdate.step2):
42
43 2013-02-25  Anton Vayvod  <avayvod@chromium.org>
44
45         [Chromium] Disable registerProtocolHandler on Android
46         https://bugs.webkit.org/show_bug.cgi?id=110481
47
48         Reviewed by Julien Chaffraix.
49
50         Chromium for Android has been exposing registerProtocolHandler, but the feature wasn't
51         actually wired up internally. Disable the feature to avoid breaking feature detection until
52         we can implement it properly. Previous attempt is at http://trac.webkit.org/changeset/133465
53         See the discussion of the future implementation at http://crbug.com/156386
54
55         * features.gypi: Disable the flag for Android, enable it only for non-Android platforms.
56
57         * src/ChromeClientImpl.h: Declaration is now guarded by the flag, not to break Android.
58
59 2013-02-24  Hajime Morrita  <morrita@google.com>
60
61         [Custom Elements] Implement bare-bone document.register()
62         https://bugs.webkit.org/show_bug.cgi?id=100229
63
64         Reviewed by Adam Barth.
65
66         Added enableCustomDOMElements flag.
67
68         * features.gypi:
69         * public/WebRuntimeFeatures.h:
70         (WebRuntimeFeatures):
71         * src/WebRuntimeFeatures.cpp:
72         (WebKit::WebRuntimeFeatures::enableCustomDOMElements):
73         (WebKit):
74         (WebKit::WebRuntimeFeatures::isCustomDOMElementsEnabled):
75
76 2013-02-23  Mark Pilgrim  <pilgrim@chromium.org>
77
78         [Chromium] WebKit::initialize should take a Platform* now that WebKitPlatformSupport is empty
79         https://bugs.webkit.org/show_bug.cgi?id=110605
80
81         Reviewed by Adam Barth.
82
83         Part of a larger refactoring series; see tracking bug 82948.
84
85         * public/WebKit.h:
86         (WebKit):
87         * src/WebKit.cpp:
88         (WebKit::initialize):
89         (WebKit::initializeWithoutV8):
90         (WebKit::webKitPlatformSupport):
91
92 2013-02-22  David Dorwin  <ddorwin@chromium.org>
93
94         [chromium] Remove call to detach WebHelperPluginImpl's frame since it is never attached
95         https://bugs.webkit.org/show_bug.cgi?id=110668
96
97         Reviewed by Adam Barth.
98
99         This fixes http://crbug.com/172764
100
101         * src/WebHelperPluginImpl.cpp:
102         (WebKit::WebHelperPluginImpl::destoryPage):
103
104 2013-02-22  Aaron Colwell  <acolwell@chromium.org>
105
106         Factor MediaSource methods out of MediaPlayer & MediaPlayerPrivate and into a new MediaSourcePrivate interface.
107         https://bugs.webkit.org/show_bug.cgi?id=109857
108
109         Reviewed by Adam Barth.
110
111         WebMediaSource and WebMediaSource client were created to replace the MediaSource methods in WebMediaPlayer and
112         WebMediaPlayerClient. This allows the MediaSource implementation to be updated without further polluting the
113         media player interfaces.
114
115         * WebKit.gyp:
116         * public/WebMediaPlayer.h:
117         (WebMediaPlayer):
118         (WebKit::WebMediaPlayer::load):
119         * public/WebMediaPlayerClient.h:
120         (WebKit):
121         * public/WebMediaSource.h: Added.
122         (WebKit):
123         (WebMediaSource):
124         (WebKit::WebMediaSource::~WebMediaSource):
125         * public/WebMediaSourceClient.h: Added.
126         (WebKit):
127         (WebMediaSourceClient):
128         (WebKit::WebMediaSourceClient::~WebMediaSourceClient):
129         * src/AssertMatchingEnums.cpp:
130         * src/WebMediaPlayerClientImpl.cpp:
131         (WebKit):
132         (WebMediaSourceClientImpl): Temporary WebMediaSourceClient implementation to keep things working until Chromium
133                                     changes land.
134         (WebKit::WebMediaSourceClientImpl::WebMediaSourceClientImpl):
135         (WebKit::WebMediaSourceClientImpl::~WebMediaSourceClientImpl):
136         (WebKit::WebMediaSourceClientImpl::addId):
137         (WebKit::WebMediaSourceClientImpl::removeId):
138         (WebKit::WebMediaSourceClientImpl::buffered):
139         (WebKit::WebMediaSourceClientImpl::append):
140         (WebKit::WebMediaSourceClientImpl::abort):
141         (WebKit::WebMediaSourceClientImpl::duration):
142         (WebKit::WebMediaSourceClientImpl::setDuration):
143         (WebKit::WebMediaSourceClientImpl::endOfStream):
144         (WebKit::WebMediaSourceClientImpl::setTimestampOffset):
145         (WebKit::WebMediaPlayerClientImpl::sourceOpened):
146         (WebKit::WebMediaPlayerClientImpl::sourceURL):
147         (WebKit::WebMediaPlayerClientImpl::load):
148         (WebKit::WebMediaPlayerClientImpl::loadRequested):
149         (WebKit::WebMediaPlayerClientImpl::loadInternal):
150         * src/WebMediaPlayerClientImpl.h:
151         (WebMediaPlayerClientImpl):
152         * src/WebMediaSourceImpl.cpp: Added.
153         (WebKit):
154         (MediaSourcePrivateImpl):
155         (WebKit::MediaSourcePrivateImpl::~MediaSourcePrivateImpl):
156         (WebKit::MediaSourcePrivateImpl::MediaSourcePrivateImpl):
157         (WebKit::MediaSourcePrivateImpl::addId):
158         (WebKit::MediaSourcePrivateImpl::removeId):
159         (WebKit::MediaSourcePrivateImpl::buffered):
160         (WebKit::MediaSourcePrivateImpl::append):
161         (WebKit::MediaSourcePrivateImpl::abort):
162         (WebKit::MediaSourcePrivateImpl::duration):
163         (WebKit::MediaSourcePrivateImpl::setDuration):
164         (WebKit::MediaSourcePrivateImpl::endOfStream):
165         (WebKit::MediaSourcePrivateImpl::setTimestampOffset):
166         (WebKit::WebMediaSourceImpl::WebMediaSourceImpl):
167         (WebKit::WebMediaSourceImpl::~WebMediaSourceImpl):
168         (WebKit::WebMediaSourceImpl::open):
169         * src/WebMediaSourceImpl.h: Added.
170         (WebKit):
171         (WebMediaSourceImpl):
172
173 2013-02-22  Alec Flett  <alecflett@chromium.org>
174
175         IndexedDB: Remove old SerializedScriptValue-based get() callbacks
176         https://bugs.webkit.org/show_bug.cgi?id=110626
177
178         Reviewed by James Robinson.
179
180         Removal now that refactoring is complete.
181
182         * public/WebIDBCallbacks.h:
183         (WebKit):
184
185 2013-02-22  Ali Juma  <ajuma@chromium.org>
186
187         [chromium] Register newly-created layers for animation
188         https://bugs.webkit.org/show_bug.cgi?id=106594
189
190         Reviewed by James Robinson.
191
192         * WebKit.gyp:
193         * src/ChromeClientImpl.cpp:
194         (WebKit::ChromeClientImpl::ChromeClientImpl):
195         (WebKit::ChromeClientImpl::graphicsLayerFactory):
196         * src/ChromeClientImpl.h:
197         (ChromeClientImpl):
198         * src/GraphicsLayerFactoryChromium.cpp: Added.
199         (WebKit):
200         (WebKit::GraphicsLayerFactoryChromium::GraphicsLayerFactoryChromium):
201         (WebKit::GraphicsLayerFactoryChromium::~GraphicsLayerFactoryChromium):
202         (WebKit::GraphicsLayerFactoryChromium::createGraphicsLayer):
203         * src/GraphicsLayerFactoryChromium.h: Added.
204         (WebKit):
205         (GraphicsLayerFactoryChromium):
206         * src/WebViewImpl.cpp:
207         (WebKit::WebViewImpl::WebViewImpl):
208         (WebKit::WebViewImpl::graphicsLayerFactory):
209         (WebKit):
210         (WebKit::WebViewImpl::registerForAnimations):
211         * src/WebViewImpl.h:
212         (WebViewImpl):
213
214 2013-02-22  Fady Samuel  <fsamuel@chromium.org>
215
216         [Chromium] Expose shadowRoot to the WebKit API
217         https://bugs.webkit.org/show_bug.cgi?id=110522
218
219         Reviewed by Dimitri Glazkov.
220
221         * public/WebElement.h:
222         (WebElement):
223         * src/WebElement.cpp:
224         (WebKit::WebElement::shadowRoot):
225         (WebKit):
226
227 2013-02-22  Sheriff Bot  <webkit.review.bot@gmail.com>
228
229         Unreviewed, rolling out r143734.
230         http://trac.webkit.org/changeset/143734
231         https://bugs.webkit.org/show_bug.cgi?id=110615
232
233         Causes linux build failures. (Requested by vollick on
234         #webkit).
235
236         * public/WebKit.h:
237         (WebKit):
238         * src/WebKit.cpp:
239         (WebKit::initialize):
240         (WebKit::initializeWithoutV8):
241         (WebKit::webKitPlatformSupport):
242
243 2013-02-22  Mikhail Naganov  <mnaganov@chromium.org>
244
245         [Chromium] Add support for emulating legacy Android WebView 'setInitialScale' method
246         https://bugs.webkit.org/show_bug.cgi?id=109946
247
248         Adding a WebView method for permanently setting initial page scale.
249         This override has higher priority than any calculated page scale
250         and viewport meta tag value.
251
252         Also, this patch eliminates a dubious "fixed layout enabled, viewport disabled" mode
253         previously used by Android WebView.
254
255         Reviewed by Adam Barth.
256
257         * public/WebView.h:
258         (WebView):
259         * src/ChromeClientImpl.cpp:
260         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
261         * src/WebViewImpl.cpp:
262         (WebKit::WebViewImpl::WebViewImpl):
263         (WebKit::WebViewImpl::setInitialPageScaleOverride):
264         (WebKit):
265         (WebKit::WebViewImpl::computePageScaleFactorLimits):
266         * src/WebViewImpl.h:
267         * tests/WebFrameTest.cpp:
268
269 2013-02-22  Mark Pilgrim  <pilgrim@chromium.org>
270
271         [Chromium] WebKit::initialize should take a Platform* now that WebKitPlatformSupport is empty
272         https://bugs.webkit.org/show_bug.cgi?id=110605
273
274         Reviewed by Adam Barth.
275
276         Part of a larger refactoring series; see tracking bug 82948.
277
278         * public/WebKit.h:
279         (WebKit):
280         * src/WebKit.cpp:
281         (WebKit::initialize):
282         (WebKit::initializeWithoutV8):
283         (WebKit::webKitPlatformSupport):
284
285 2013-02-22  Andrey Kosyakov  <caseq@chromium.org>
286
287         Web Inspector: [Chromium] add a browser test for frames on timeline
288         https://bugs.webkit.org/show_bug.cgi?id=110592
289
290         - factor out timeline recording logic from testPageOverlayUpdate for reuse;
291         - record timeline while running a simple DOM-based animation;
292         - assure we have frames and Style Recalc/Layout/Paint events in between.
293
294         Reviewed by Yury Semikhatsky.
295
296         * src/js/Tests.js:
297         (.TestSuite.prototype.assertHasKey):
298         (.TestSuite.prototype.testTimelineFrames.step1):
299         (.TestSuite.prototype.testTimelineFrames.onTimelineRecorded):
300         (.TestSuite.prototype.testTimelineFrames):
301         (.TestSuite.prototype.testPageOverlayUpdate.step4):
302         (.TestSuite.prototype.testPageOverlayUpdate.onTimelineRecorded):
303         (.TestSuite.prototype.recordTimeline.addRecord):
304         (.TestSuite.prototype.recordTimeline.innerAddRecord):
305         (.TestSuite.prototype.recordTimeline.done):
306         (.TestSuite.prototype.recordTimeline):
307         (.TestSuite.prototype.stopTimeline):
308
309 2013-02-21  Alec Flett  <alecflett@chromium.org>
310
311         IndexedDB: Implement SharedBuffer version of put() / onSuccess()
312         https://bugs.webkit.org/show_bug.cgi?id=110398
313
314         Reviewed by Tony Chang.
315
316         Proxy new SharedBuffer calls to WebIDBCallbacks through
317         to the new SharedBuffer-based IDBCallbacks.
318
319         * public/WebIDBCursor.h:
320         * src/IDBCallbacksProxy.cpp:
321         (WebKit::IDBCallbacksProxy::onSuccess):
322         (WebKit::IDBCallbacksProxy::onSuccessWithPrefetch):
323         * src/IDBCallbacksProxy.h:
324         (IDBCallbacksProxy):
325         * src/WebIDBCallbacksImpl.cpp:
326         (WebKit::WebIDBCallbacksImpl::onSuccess):
327         * src/WebIDBCallbacksImpl.h:
328         (WebIDBCallbacksImpl):
329         * tests/IDBAbortOnCorruptTest.cpp:
330         (WebCore::MockIDBCallbacks::onSuccess):
331         (WebCore::MockIDBCallbacks::onSuccessWithPrefetch):
332         * tests/IDBDatabaseBackendTest.cpp:
333         * tests/IDBRequestTest.cpp:
334         (WebKit::TEST_F):
335
336 2013-02-21  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
337
338         Allow to retrieve the request data from abstract TextCheckingRequest to be accessible for WK2
339         https://bugs.webkit.org/show_bug.cgi?id=110208
340
341         Reviewed by Hajime Morrita.
342
343         * src/EditorClientImpl.cpp:
344         (WebKit::EditorClientImpl::requestCheckingOfString):
345         Extract the request data as it is the member of 'TextCheckingRequest'.
346
347 2013-02-21  Mark Pilgrim  <pilgrim@chromium.org>
348
349         [Chromium] Remove chromium/public/platform directory
350         https://bugs.webkit.org/show_bug.cgi?id=110471
351
352         Reviewed by Adam Barth.
353
354         Part of a larger refactoring series; see tracking bug 82948.
355         
356         * WebKit.gyp:
357         * public/platform: Removed.
358         * public/platform/WebKitPlatformSupport.h: Removed.
359         * public/platform/android: Removed.
360         * public/platform/default: Removed.
361         * public/platform/linux: Removed.
362         * public/platform/mac: Removed.
363         * public/platform/win: Removed.
364         * src/WebKit.cpp:
365
366 2013-02-21  Dirk Pranke  <dpranke@chromium.org>
367
368         [chromium] support the lucid version of freetype on precise in DRT
369         https://bugs.webkit.org/show_bug.cgi?id=107338
370
371         Reviewed by Tony Chang.
372
373         Add in a linux-only dependency on Freetype2 so that we can
374         match the version shipped in Ubuntu Lucid.
375
376         * DEPS:
377
378 2013-02-21  Sheriff Bot  <webkit.review.bot@gmail.com>
379
380         Unreviewed.  Rolled Chromium DEPS to r183905.  Requested by
381         "Mark Pilgrim" <pilgrim@chromium.org> via sheriffbot.
382
383         * DEPS:
384
385 2013-02-21  Alec Flett  <alecflett@chromium.org>
386
387         IndexedDB: Remove copying WebIDBDatabase::put() stub
388         https://bugs.webkit.org/show_bug.cgi?id=109967
389
390         Reviewed by Darin Fisher.
391
392         Now that the chromium call to this method has
393         been removed, we can remove the stub.
394
395         * public/WebIDBDatabase.h:
396
397 2013-02-21  Dirk Pranke  <dpranke@chromium.org>
398
399         Unreviewed, roll chromium deps 183552 -> 183788
400
401         * DEPS:
402
403 2013-02-21  John Mellor  <johnme@chromium.org>
404
405         [chromium] Simplify computation of screenRect/windowRect.
406         https://bugs.webkit.org/show_bug.cgi?id=110456
407
408         Reviewed by Adam Barth.
409
410         This patch removes applyDeviceScaleFactorInCompositor checks
411         added by http://trac.webkit.org/changeset/139356 because
412         Chrome for Android now sizes its screen and window in DIP
413         units (like other platforms), so they are no longer necessary.
414
415         * src/ChromeClientImpl.cpp:
416         (WebKit::ChromeClientImpl::windowRect):
417
418 2013-02-21  Vsevolod Vlasov  <vsevik@chromium.org>
419
420         Web Inspector: Get rid of parsedURL in uiSourceCode, use name and path for displayName instead.
421         https://bugs.webkit.org/show_bug.cgi?id=110335
422
423         Reviewed by Alexander Pavlov.
424
425         * src/js/Tests.js:
426         (.TestSuite.prototype._scriptsAreParsed):
427
428 2013-02-21  Ken Kania  <kkania@chromium.org>
429
430         Web Inspector: Add command for selecting files for file input element
431         https://bugs.webkit.org/show_bug.cgi?id=109308
432
433         Reviewed by Pavel Feldman.
434
435         * src/InspectorClientImpl.cpp:
436         (WebKit::InspectorClientImpl::canSetFileInputFiles):
437         (WebKit):
438         * src/InspectorClientImpl.h:
439         (InspectorClientImpl):
440
441 2013-02-20  Paweł Hajdan, Jr.  <phajdan.jr@chromium.org>
442
443         Add gyp option to switch ENABLE(SQL_DATABASE)
444         https://bugs.webkit.org/show_bug.cgi?id=109303
445         http://code.google.com/p/chromium/issues/detail?id=22208
446
447         Reviewed by Tony Chang.
448
449         This will be useful to implement build with system sqlite.
450
451         * features.gypi:
452         * src/ChromeClientImpl.cpp:
453         (WebKit):
454         * src/ChromeClientImpl.h:
455         (ChromeClientImpl):
456
457 2013-02-20  Dirk Schulze  <krit@webkit.org>
458
459         Enable CANVAS_PATH flag
460         https://bugs.webkit.org/show_bug.cgi?id=108508
461
462         Reviewed by Simon Fraser.
463
464         Enable CANVAS_PATH flag on trunk.
465
466         * features.gypi:
467
468 2013-02-15  Dirk Schulze  <krit@webkit.org>
469
470         [Chromium] Add runtime flag for CanvasPath
471         https://bugs.webkit.org/show_bug.cgi?id=109997
472
473         Reviewed by Adam Barth.
474
475         Add runtime flag for Chromium.
476
477         * public/WebRuntimeFeatures.h:
478         (WebRuntimeFeatures):
479         * src/WebRuntimeFeatures.cpp:
480         (WebKit::WebRuntimeFeatures::enableCanvasPath):
481         (WebKit):
482         (WebKit::WebRuntimeFeatures::isCanvasPathEnabled):
483
484 2013-02-20  Mark Pilgrim  <pilgrim@chromium.org>
485
486         [Chromium] Move WebKitPlatformSupport declaration to Platform.h
487         https://bugs.webkit.org/show_bug.cgi?id=110262
488
489         Reviewed by Adam Barth.
490
491         In preparation for removing WebKitPlatformSupport.h entirely (once
492         downstream references to that file have been updated). Part of a
493         larger refactoring series; see tracking bug 82948.
494
495         * public/platform/WebKitPlatformSupport.h:
496
497 2013-02-20  Mark Pilgrim  <pilgrim@chromium.org>
498
499         [Chromium] Remove idbFactory from WebKitPlatformSupport
500         https://bugs.webkit.org/show_bug.cgi?id=106457
501
502         Reviewed by Adam Barth.
503
504         Now that https://codereview.chromium.org/12230054 has landed, the
505         idbFactory method is no longer needed. (Embedders must now call
506         the new setIDBFactory method upon initialization.) Part of a
507         larger refactoring series; see tracking bug 82948.
508
509         * public/platform/WebKitPlatformSupport.h:
510         (WebKit):
511         * src/IDBFactoryBackendProxy.cpp:
512         (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
513
514 2013-02-20  Mark Lam  <mark.lam@apple.com>
515
516         Rename DatabaseBackend to DatabaseBackendBase.
517         https://bugs.webkit.org/show_bug.cgi?id=110303.
518
519         Rubber stamped by Alexey Proskuryakov.
520
521         * public/WebDatabase.h:
522         (WebDatabase):
523         * src/DatabaseObserver.cpp:
524         (WebCore::DatabaseObserver::databaseOpened):
525         (WebCore::DatabaseObserver::databaseModified):
526         (WebCore::DatabaseObserver::databaseClosed):
527         (WebCore::DatabaseObserver::reportOpenDatabaseResult):
528         (WebCore::DatabaseObserver::reportChangeVersionResult):
529         (WebCore::DatabaseObserver::reportStartTransactionResult):
530         (WebCore::DatabaseObserver::reportCommitTransactionResult):
531         (WebCore::DatabaseObserver::reportExecuteStatementResult):
532         (WebCore::DatabaseObserver::reportVacuumDatabaseResult):
533         * src/WebDatabase.cpp:
534         (WebKit::WebDatabase::WebDatabase):
535
536 2013-02-20  Rouslan Solomakhin  <rouslan@chromium.org>
537
538         Fix use after free in ContextMenuClientImpl.cpp
539         https://bugs.webkit.org/show_bug.cgi?id=109220
540
541         Reviewed by Tony Chang.
542
543         ContextMenuClientImpl can use a DocumentMarker after it is freed. The DocumentMarker is originally allocated
544         by the spell checker. When the user context-clicks on a misspelling, ContextMenuClientImpl saves a reference
545         to the clicked DocumentMarker, changes the selection, and then uses the DocumentMarker. Changing the selection
546         causes re-check of spelling. If the spell check client serves the spellcheck request from cache, then re-checking
547         spelling will delete the DocumentMarker and add a new one. This invalidates the DocumentMarker reference held by
548         ContextMenuClientImpl. When ContextMenuClientImpl attempts to use the DocumentMarker, Address Sanitizer detects
549         use after free. The fix is to save a copy of the DocumentMarker before changing selection.
550
551         * src/ContextMenuClientImpl.cpp:
552         (WebKit::selectMisspellingAsync): Save a copy of DocumentMarker before changing selection.
553         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): Use DocumentMarker instead of Vector<DocumentMarker*>.
554
555 2013-02-20  Sheriff Bot  <webkit.review.bot@gmail.com>
556
557         Unreviewed.  Rolled Chromium DEPS to r183552.  Requested by
558         "Mark Pilgrim" <pilgrim@chromium.org> via sheriffbot.
559
560         * DEPS:
561
562 2013-02-19  Adrienne Walker  <enne@chromium.org>
563
564         Unreviewed, rolling out r143382 and r143401.
565         http://trac.webkit.org/changeset/143382
566         http://trac.webkit.org/changeset/143401
567         https://bugs.webkit.org/show_bug.cgi?id=106457
568
569         Breaks Chromium win/mac canary compilation
570
571         * public/platform/WebKitPlatformSupport.h:
572         (WebKit):
573         (WebKitPlatformSupport):
574         (WebKit::WebKitPlatformSupport::idbFactory):
575         (WebKit::WebKitPlatformSupport::~WebKitPlatformSupport):
576         * src/IDBFactoryBackendProxy.cpp:
577         (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
578
579 2013-02-19  Mark Pilgrim  <pilgrim@chromium.org>
580
581         [Chromium] Move WebKitPlatformSupport declaration to Platform.h
582         https://bugs.webkit.org/show_bug.cgi?id=110262
583
584         Reviewed by Adam Barth.
585
586         In preparation for removing WebKitPlatformSupport.h entirely (once
587         downstream references to that file have been updated). Part of a
588         larger refactoring series; see tracking bug 82948.
589
590         * public/platform/WebKitPlatformSupport.h:
591
592 2013-02-19  Mark Pilgrim  <pilgrim@chromium.org>
593
594         [Chromium] Remove idbFactory from WebKitPlatformSupport
595         https://bugs.webkit.org/show_bug.cgi?id=106457
596
597         Reviewed by Kentaro Hara.
598
599         Now that https://codereview.chromium.org/12230054 has landed, the
600         idbFactory method is no longer needed. (Embedders must now call
601         the new setIDBFactory method upon initialization.) Part of a
602         larger refactoring series; see tracking bug 82948.
603
604         * public/platform/WebKitPlatformSupport.h:
605         (WebKit):
606         * src/IDBFactoryBackendProxy.cpp:
607         (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
608
609 2013-02-19  Alexandre Elias  <aelias@chromium.org>
610
611         [chromium] Fix races in double-tap zoom minimum scale policy
612         https://bugs.webkit.org/show_bug.cgi?id=110183
613
614         Reviewed by Adam Barth.
615
616         Double-tap zoom on Android is supposed to return to minimum scale
617         if no pinch zoom occurred since the last double-tap. Because both
618         pinch zoom and the result of double-tap zoom gets passed in from CC
619         via applyScrollAndScale, this logic was brittle and prone to races
620         depending on when the animation update was received. This patch
621         keeps track of what the target double-tap scale is to make it more
622         robust.
623
624         I also fixed double-tap zoom test mocking to exercise the entire
625         page scale animation flow (our previous way of testing was hiding the
626         raciness), and added a new test case in DivAutoZoomMultipleParamsTest.
627
628         * src/WebViewImpl.cpp:
629         (WebKit::WebViewImpl::WebViewImpl):
630         (WebKit::WebViewImpl::startPageScaleAnimation):
631         (WebKit):
632         (WebKit::WebViewImpl::enableFakeDoubleTapAnimationForTesting):
633         (WebKit::WebViewImpl::computeScaleAndScrollForHitRect):
634         (WebKit::WebViewImpl::animateZoomAroundPoint):
635         (WebKit::WebViewImpl::didCommitLoad):
636         (WebKit::WebViewImpl::applyScrollAndScale):
637         * src/WebViewImpl.h:
638         (WebViewImpl):
639         (WebKit::WebViewImpl::fakeDoubleTapAnimationPendingForTesting):
640         (WebKit::WebViewImpl::fakeDoubleTapTargetPositionForTesting):
641         (WebKit::WebViewImpl::fakeDoubleTapPageScaleFactorForTesting):
642         (WebKit::WebViewImpl::fakeDoubleTapUseAnchorForTesting):
643         * tests/WebFrameTest.cpp:
644
645 2013-02-19  Joshua Bell  <jsbell@chromium.org>
646
647         IndexedDB: additional checks on LevelDB decoding
648         https://bugs.webkit.org/show_bug.cgi?id=109711
649
650         Reviewed by Tony Chang.
651
652         * tests/IDBLevelDBCodingTest.cpp: Update test with new method signatures.
653
654 2013-02-19  Jochen Eisinger  <jochen@chromium.org>
655
656         [chromium] fix ScrollAnimatorNoneTest after r143295
657         https://bugs.webkit.org/show_bug.cgi?id=110189
658
659         Reviewed by Nico Weber.
660
661         * tests/ScrollAnimatorNoneTest.cpp:
662         (MockScrollableArea):
663
664 2013-02-18  Simon Fraser  <simon.fraser@apple.com>
665
666         Clean up the boolean argument to visibleContentRect
667         https://bugs.webkit.org/show_bug.cgi?id=110167
668
669         Reviewed by Simon Fraser.
670
671         Replace the boolean argument to visibleContentRect() with
672         an enum.
673
674         * src/ChromeClientImpl.cpp:
675         (WebKit::ChromeClientImpl::popupOpened):
676
677 2013-02-18  Sheriff Bot  <webkit.review.bot@gmail.com>
678
679         Unreviewed.  Rolled Chromium DEPS to r183105.  Requested by
680         thakis_ via sheriffbot.
681
682         * DEPS:
683
684 2013-02-18  Nico Weber  <thakis@chromium.org>
685
686         [chromium] Remove ahem_path from WebKit.gyp
687         https://bugs.webkit.org/show_bug.cgi?id=110111
688
689         Reviewed by Jochen Eisinger.
690
691         It's only used in DumpRenderTree.gyp, and that file defines its own
692         copy of this variable.
693
694         * WebKit.gyp:
695
696 2013-02-18  Laszlo Gombos  <l.gombos@samsung.com>
697
698         Move ENABLE macros for WebCore out from Platform.h
699         https://bugs.webkit.org/show_bug.cgi?id=105735
700
701         Move the chromium specific WebCore ENABLE macro definitions
702         from Platform.h to features.gypi.
703
704         Reviewed by Darin Adler and Benjamin Poulain.
705
706         * features.gypi: Set ENABLE_SUBPIXEL_LAYOUT to 1.
707
708 2013-02-15  Alec Flett  <alecflett@chromium.org>
709
710         IndexedDB: Stub out SharedBuffer version of get()
711         https://bugs.webkit.org/show_bug.cgi?id=108993
712
713         Reviewed by Darin Fisher.
714
715         All asynchronous get()-like calls go through WebIDBCallbacks,
716         so this includes both get() and cursor callbacks.
717
718         * public/WebIDBCallbacks.h:
719         (WebKit::WebIDBCallbacks::onSuccess):
720         (WebKit::WebIDBCallbacks::onSuccessWithPrefetch):
721
722 2013-02-15  Alec Flett  <alecflett@chromium.org>
723
724         IndexedDB: fix chromium windows bustage
725         https://bugs.webkit.org/show_bug.cgi?id=109970
726
727         Unreviewed build fix for Chromium Windows.
728
729         * tests/IDBDatabaseBackendTest.cpp:
730
731 2013-02-15  Alec Flett  <alecflett@chromium.org>
732
733         IndexedDB: Implement SharedBuffer version of put()
734         https://bugs.webkit.org/show_bug.cgi?id=109092
735
736         Reviewed by Adam Barth.
737
738         Implement SharedBuffer/WebData version of
739         IDBDatabaseBackendInterface::put, and put
740         temporary scaffolding in until chrome is ready.
741
742         * src/IDBDatabaseBackendProxy.cpp:
743         (WebKit::IDBDatabaseBackendProxy::put):
744         * src/IDBDatabaseBackendProxy.h:
745         (IDBDatabaseBackendProxy):
746         * src/WebIDBDatabaseImpl.cpp:
747         (WebKit::WebIDBDatabaseImpl::put):
748         (WebKit):
749         * src/WebIDBDatabaseImpl.h:
750         (WebIDBDatabaseImpl):
751         * tests/IDBDatabaseBackendTest.cpp:
752
753 2013-02-15  Alexandre Elias  <aelias@chromium.org>
754
755         [chromium] WebInputEventBuilders should not reverse page scale
756         https://bugs.webkit.org/show_bug.cgi?id=109901
757
758         Reviewed by James Robinson.
759
760         Though in theory logical that if WebInputEvent -> PlatformEvent
761         conversions divide by page scale, then the reverse builders should
762         multiply, in reality the only user of the reverse builders is
763         plugins which expect the same coordinate space as WebCore.
764
765         * src/WebInputEventConversion.cpp:
766         (WebKit::updateWebMouseEventFromWebCoreMouseEvent):
767         (WebKit::WebMouseEventBuilder::WebMouseEventBuilder):
768         (WebKit::addTouchPoints):
769         (WebKit::WebGestureEventBuilder::WebGestureEventBuilder):
770         * tests/WebInputEventConversionTest.cpp:
771         (WebCore::TEST):
772
773 2013-02-15  Anders Carlsson  <andersca@apple.com>
774
775         Remove const from a bunch of StorageArea member functions
776         https://bugs.webkit.org/show_bug.cgi?id=109957
777
778         Reviewed by Beth Dakin.
779
780         Update for WebCore changes.
781
782         * src/StorageAreaProxy.cpp:
783         (WebCore::StorageAreaProxy::length):
784         (WebCore::StorageAreaProxy::key):
785         (WebCore::StorageAreaProxy::getItem):
786         (WebCore::StorageAreaProxy::contains):
787         (WebCore::StorageAreaProxy::canAccessStorage):
788         (WebCore::StorageAreaProxy::memoryBytesUsedByCache):
789         * src/StorageAreaProxy.h:
790         (StorageAreaProxy):
791
792 2013-02-15  Keishi Hattori  <keishi@webkit.org>
793
794         PagePopupController.formatMonth should support short month format
795         https://bugs.webkit.org/show_bug.cgi?id=109530
796
797         Reviewed by Kent Tamura.
798
799         * tests/LocaleMacTest.cpp:
800         (LocaleMacTest::formatMonth):
801         (TEST_F):
802
803 2013-02-15  Keishi Hattori  <keishi@webkit.org>
804
805         Add setValue and closePopup methods to PagePopupController
806         https://bugs.webkit.org/show_bug.cgi?id=109897
807
808         Reviewed by Kent Tamura.
809
810         * src/ColorChooserPopupUIController.cpp:
811         (WebKit::ColorChooserPopupUIController::setValue):
812         (WebKit):
813         * src/ColorChooserPopupUIController.h:
814         (ColorChooserPopupUIController):
815         * src/DateTimeChooserImpl.cpp:
816         (WebKit::DateTimeChooserImpl::setValueAndClosePopup): Use setValue and closePopup.
817         (WebKit):
818         (WebKit::DateTimeChooserImpl::setValue):
819         (WebKit::DateTimeChooserImpl::closePopup):
820         * src/DateTimeChooserImpl.h:
821         (DateTimeChooserImpl):
822
823 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
824
825         Simplify hitTestResultAtPoint and nodesFromRect APIs
826         https://bugs.webkit.org/show_bug.cgi?id=95720
827
828         Reviewed by Julien Chaffraix.
829
830         Update calls to new API.
831
832         * src/ContextMenuClientImpl.cpp:
833         (WebKit::selectMisspelledWord):
834         * src/FrameLoaderClientImpl.cpp:
835         (WebKit::FrameLoaderClientImpl::dispatchDecidePolicyForNavigationAction):
836         * src/WebFrameImpl.cpp:
837         (WebKit::WebFrameImpl::characterIndexForPoint):
838         * src/WebPluginContainerImpl.cpp:
839         (WebKit::WebPluginContainerImpl::isRectTopmost):
840         * src/WebViewImpl.cpp:
841         (WebKit::WebViewImpl::handleMouseDown):
842         (WebKit::WebViewImpl::computeBlockBounds):
843         (WebKit::WebViewImpl::bestTouchLinkNode):
844         (WebKit::WebViewImpl::hitTestResultForWindowPos):
845
846 2013-02-14  Vsevolod Vlasov  <vsevik@chromium.org>
847
848         Unreviewed chromium test fix: incorrect field was used for UISourceCode url.
849
850         * src/js/Tests.js:
851         (.TestSuite.prototype.testNoScriptDuplicatesOnPanelSwitch.checkNoDuplicates):
852         (.TestSuite.prototype.uiSourceCodesToString_):
853
854 2013-02-14  David Trainor  <dtrainor@chromium.org>
855
856         [chromium] No triggering autofill on unfocus
857         https://bugs.webkit.org/show_bug.cgi?id=109735
858
859         Reviewed by James Robinson.
860
861         Need to notify the autofill client to not process text changes when we're setting
862         focus to false and are trying to commit a composition.
863
864         * public/WebAutofillClient.h:
865         (WebAutofillClient):
866         (WebKit::WebAutofillClient::setIgnoreTextChanges):
867         (WebKit::WebAutofillClient::~WebAutofillClient):
868         * src/WebViewImpl.cpp:
869         (WebKit::WebViewImpl::setFocus):
870         * tests/WebViewTest.cpp:
871
872 2013-02-14  Alexandre Elias  <aelias@chromium.org>
873
874         [chromium] Fix scaling in WebViewImpl::handleGestureEvent, second try
875         https://bugs.webkit.org/show_bug.cgi?id=109671
876
877         Reviewed by James Robinson.
878
879         My patch 142571 broke a bunch of things in handleGestureEvent that
880         assumed the event came in scaled, most notably tap highlight and
881         double-tap zoom. Switch those to PlatformGestureEvent.
882
883         142808 was an earlier version of this patch that was reverted
884         due to fling events asserting they can't be converted to
885         PlatformGestureEvent. This version moves fling earlier in the
886         function to avoid that.
887
888         * src/WebViewImpl.cpp:
889         (WebKit::WebViewImpl::handleGestureEvent):
890         (WebKit::WebViewImpl::bestTapNode):
891         (WebKit::WebViewImpl::enableTapHighlight):
892         * src/WebViewImpl.h:
893         (WebViewImpl):
894         * tests/LinkHighlightTest.cpp:
895         (WebCore::TEST):
896
897 2013-02-14  Dirk Pranke  <dpranke@chromium.org>
898
899         Unreviewed, rolling out r142901.
900         http://trac.webkit.org/changeset/142901
901
902         r182258 introduces a dependency on chrome.gyp that breaks the win
903         build. Rolling back to r182150 until I can work up a workaround.
904
905         * DEPS:
906
907 2013-02-14  Dirk Pranke  <dpranke@chromium.org>
908
909         Unreviewed, chromium roll 182150 -> 182448
910
911         * DEPS:
912
913 2013-02-14  Mark Pilgrim  <pilgrim@chromium.org>
914
915         [Chromium] Move PlatformMessagePortChannel to WebCore
916         https://bugs.webkit.org/show_bug.cgi?id=109845
917
918         Reviewed by Adam Barth.
919
920         Part of a larger refactoring series; see tracking bug 106829.
921
922         * WebKit.gyp:
923         * src/PlatformMessagePortChannel.cpp: Removed.
924         * src/PlatformMessagePortChannel.h: Removed.
925         * src/SharedWorkerRepository.cpp:
926         * src/WebDOMMessageEvent.cpp:
927         * src/WebFrameImpl.cpp:
928         * src/WebSharedWorkerImpl.cpp:
929         * src/WebWorkerClientImpl.cpp:
930
931 2013-02-14  Min Qin  <qinmin@chromium.org>
932
933         Passing alpha to DeferredImageDecoder once decoding completes
934         https://bugs.webkit.org/show_bug.cgi?id=108892
935
936         Reviewed by Stephen White.
937
938         Add test to check that alpha value is passed from the decoder to ImageFrameGenerator.
939
940         * tests/ImageFrameGeneratorTest.cpp:
941         (WebCore::MockImageDecoderFactory::create):
942         (WebCore::TEST_F):
943         * tests/MockImageDecoder.h:
944         (WebCore::MockImageDecoder::MockImageDecoder):
945         (WebCore::MockImageDecoder::setFrameHasAlpha):
946         (MockImageDecoder):
947         (WebCore::MockImageDecoder::frameHasAlphaAtIndex):
948
949 2013-02-08  Andrey Kosyakov  <caseq@chromium.org>
950
951         Web Inspector: expose did{Begin,Cancel}Frame() and {will,did}Composite() on WebDebToolsAgent
952         https://bugs.webkit.org/show_bug.cgi?id=109192
953
954         Reviewed by Pavel Feldman.
955
956         - expose frame and compositing insturmentation methods on WebDevToolsAgent;
957         - temporarily route them from WebViewImpl to WebDevToolsAgent;
958
959         * public/WebDevToolsAgent.h:
960         (WebDevToolsAgent):
961         * src/WebDevToolsAgentImpl.cpp:
962         (WebKit::WebDevToolsAgentImpl::didBeginFrame):
963         (WebKit):
964         (WebKit::WebDevToolsAgentImpl::didCancelFrame):
965         (WebKit::WebDevToolsAgentImpl::willComposite):
966         (WebKit::WebDevToolsAgentImpl::didComposite):
967         * src/WebDevToolsAgentImpl.h:
968         (WebDevToolsAgentImpl):
969         * src/WebViewImpl.cpp:
970         (WebKit::WebViewImpl::instrumentBeginFrame):
971         (WebKit::WebViewImpl::instrumentCancelFrame):
972         (WebKit::WebViewImpl::didBeginFrame):
973         (WebKit::WebViewImpl::willCommit):
974
975 2013-02-14  Mikhail Naganov  <mnaganov@chromium.org>
976
977         [Chromium] Add a setting to control scaling content to fit viewport
978         https://bugs.webkit.org/show_bug.cgi?id=109584
979
980         Adds a setting called 'initializeAtMinimumPageScale'. By default,
981         it is set to 'true' which corresponds to Chrome on Android behavior--
982         adjust the page scale to make the content fit into the viewport
983         by width. When set to false, the setting instructs ChromeClientImpl to
984         set page scale to 1.0, unless the scale value is set by the page
985         in the viewport meta-tag.
986
987         Reviewed by Adam Barth.
988
989         * public/WebSettings.h:
990         * src/ChromeClientImpl.cpp:
991         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
992         * src/WebSettingsImpl.cpp:
993         (WebKit::WebSettingsImpl::WebSettingsImpl):
994         (WebKit::WebSettingsImpl::setInitializeAtMinimumPageScale):
995         (WebKit):
996         * src/WebSettingsImpl.h:
997         (WebSettingsImpl):
998         (WebKit::WebSettingsImpl::initializeAtMinimumPageScale):
999         * tests/WebFrameTest.cpp:
1000         * tests/data/viewport-2x-initial-scale.html: Added.
1001         * tests/data/viewport-auto-initial-scale.html: Added.
1002
1003 2013-02-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1004
1005         Unreviewed, rolling out r142808.
1006         http://trac.webkit.org/changeset/142808
1007         https://bugs.webkit.org/show_bug.cgi?id=109816
1008
1009         Crashes on chromium webkit canary bots (Requested by atwilson_
1010         on #webkit).
1011
1012         * src/WebViewImpl.cpp:
1013         (WebKit::WebViewImpl::handleGestureEvent):
1014         (WebKit::WebViewImpl::bestTouchLinkNode):
1015         (WebKit::WebViewImpl::enableTouchHighlight):
1016         * src/WebViewImpl.h:
1017         (WebViewImpl):
1018         * tests/LinkHighlightTest.cpp:
1019         (WebCore::TEST):
1020
1021 2013-02-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1022
1023         Unreviewed, rolling out r142841.
1024         http://trac.webkit.org/changeset/142841
1025         https://bugs.webkit.org/show_bug.cgi?id=109791
1026
1027         Caused webkit_unit_tests to crash on chromium bots. (Requested
1028         by atwilson_ on #webkit).
1029
1030         * tests/GraphicsLayerChromiumTest.cpp:
1031         (WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):
1032         * tests/ScrollingCoordinatorChromiumTest.cpp:
1033         (WebKit::FakeWebViewClient::initializeLayerTreeView):
1034
1035 2013-02-13  Max Vujovic  <mvujovic@adobe.com>
1036
1037         [CSS Filters] Refactor filter outsets into a class
1038         https://bugs.webkit.org/show_bug.cgi?id=109330
1039
1040         Update FilterOperations unit tests to use new interface for getting filter outsets.
1041
1042         Reviewed by Dean Jackson.
1043
1044         * tests/FilterOperationsTest.cpp:
1045         (WebKit::TEST):
1046
1047 2013-02-13  Zan Dobersek  <zdobersek@igalia.com>
1048
1049         The 'global isinf/isnan' compiler quirk required when using clang with libstdc++
1050         https://bugs.webkit.org/show_bug.cgi?id=109325
1051
1052         Reviewed by Anders Carlsson.
1053
1054         Prefix calls to the isinf and isnan methods with std::, declaring we want to use the
1055         two methods as they're provided by the C++ standard library being used.
1056
1057         * tests/DecimalTest.cpp:
1058         (TEST_F):
1059
1060 2013-02-13  Alexandre Elias  <aelias@chromium.org>
1061
1062         [chromium] Fix scaling in WebViewImpl::handleGestureEvent
1063         https://bugs.webkit.org/show_bug.cgi?id=109671
1064
1065         Reviewed by James Robinson.
1066
1067         My last patch broke a bunch of things in handleGestureEvent that
1068         assumed the event came in scaled, most notably tap highlight and
1069         double-tap zoom. Switch those to PlatformGestureEvent.
1070
1071         * src/WebViewImpl.cpp:
1072         (WebKit::WebViewImpl::handleGestureEvent):
1073         (WebKit::WebViewImpl::bestTapNode):
1074         (WebKit::WebViewImpl::enableTapHighlight):
1075         * src/WebViewImpl.h:
1076         (WebViewImpl):
1077         * tests/LinkHighlightTest.cpp:
1078         (WebCore::TEST):
1079
1080 2013-02-13  Eberhard Graether  <egraether@google.com>
1081
1082         chromium: remove CompositorHUDFontAtlas
1083         https://bugs.webkit.org/show_bug.cgi?id=109328
1084
1085         Reviewed by James Robinson.
1086
1087         After switching the HudLayer to use skia's font rendering the
1088         CompositorHUDFontAtlas has become obsolete. This change removes
1089         this class and the related WebLayerTreeView API.
1090
1091         * src/WebViewImpl.cpp:
1092         * src/WebViewImpl.h:
1093
1094 2013-02-13  Sheriff Bot  <webkit.review.bot@gmail.com>
1095
1096         Unreviewed.  Rolled Chromium DEPS to r182150.  Requested by
1097         jamesr_ via sheriffbot.
1098
1099         * DEPS:
1100
1101 2013-02-13  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1102
1103         [chromium] Add acceleration ratios for the deltas to WebMouseWheelEvents.
1104         https://bugs.webkit.org/show_bug.cgi?id=109611
1105
1106         The deltas in mousewheel events generated by track can be accelerated (e.g. when
1107         scrolling repeatedly). Keep track of the ratio of the acceleration since that is
1108         useful for some tasks (e.g. overflow navigation gesture).
1109
1110         Reviewed by Adam Barth.
1111
1112         * public/WebInputEvent.h:
1113         (WebKit::WebMouseWheelEvent::WebMouseWheelEvent):
1114         * src/WebInputEvent.cpp:
1115         (SameSizeAsWebMouseWheelEvent):
1116
1117 2013-02-12  Yoshifumi Inoue  <yosin@chromium.org>
1118
1119         Unreviewed. Build fix for Chromium-Win.
1120         Add #include <functional> for std::bind1st.
1121
1122         * tests/PrerenderingTest.cpp:
1123
1124 2013-02-12  Joshua Bell  <jsbell@chromium.org>
1125
1126         [Chromium] IndexedDB/Worker crash during shutdown
1127         https://bugs.webkit.org/show_bug.cgi?id=109467
1128
1129         Reviewed by Tony Chang.
1130
1131         If the message queue has already been terminated, don't bother scheduling
1132         a new error event that will never be delivered. Speculative fix for the
1133         issue, which only repros in multiprocess ports and so far only on some
1134         platforms.
1135
1136         * src/IDBFactoryBackendProxy.cpp:
1137         (WebKit::IDBFactoryBackendProxy::allowIndexedDB): Early exit.
1138
1139 2013-02-12  Zan Dobersek  <zdobersek@igalia.com>
1140
1141         Remove ENABLE_XHR_RESPONSE_BLOB handling from various build systems
1142         https://bugs.webkit.org/show_bug.cgi?id=109481
1143
1144         Reviewed by Daniel Bates.
1145
1146         The ENABLE_XHR_RESPONSE_BLOB feature define was removed from the code
1147         back in r120574. There are still occurrences of it in various build systems
1148         which should all be removed as they are useless.
1149
1150         * features.gypi:
1151
1152 2013-02-12  Jochen Eisinger  <jochen@chromium.org>
1153
1154         Disabling WebFrameTest.ReplaceMisspelledRange on Android because it crashes
1155         https://bugs.webkit.org/show_bug.cgi?id=109548
1156
1157         Unreviewed gardening.
1158
1159         * tests/WebFrameTest.cpp:
1160
1161 2013-02-11  James Robinson  <jamesr@chromium.org>
1162
1163         [Chromium] Get rid of WebAnimationController
1164         https://bugs.webkit.org/show_bug.cgi?id=109235
1165
1166         Reviewed by Benjamin Poulain.
1167
1168         * public/WebAnimationController.h: Removed.
1169         * public/WebFrame.h:
1170         (WebFrame):
1171         * src/WebAnimationControllerImpl.cpp: Removed.
1172         * src/WebAnimationControllerImpl.h: Removed.
1173         * src/WebFrameImpl.cpp:
1174         * src/WebFrameImpl.h:
1175         (WebFrameImpl):
1176
1177 2013-02-11  James Robinson  <jamesr@chromium.org>
1178
1179         [chromium] Add WebUnitTestSupport::createLayerTreeViewForTesting for webkit_unit_tests
1180         https://bugs.webkit.org/show_bug.cgi?id=109403
1181
1182         Reviewed by Adam Barth.
1183
1184         * tests/GraphicsLayerChromiumTest.cpp:
1185         (WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):
1186         * tests/ScrollingCoordinatorChromiumTest.cpp:
1187         (WebKit::FakeWebViewClient::initializeLayerTreeView):
1188
1189 2013-02-11  Ryosuke Niwa  <rniwa@webkit.org>
1190
1191         Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
1192         https://bugs.webkit.org/show_bug.cgi?id=109534
1193
1194         Reviewed by Anders Carlsson.
1195
1196         * src/EditorClientImpl.cpp:
1197         (WebKit):
1198         * src/EditorClientImpl.h:
1199         (EditorClientImpl):
1200
1201 2013-02-11  Alexandre Elias  <aelias@chromium.org>
1202
1203         [chromium] Apply page scale to all WebInputEvent types
1204         https://bugs.webkit.org/show_bug.cgi?id=109370
1205
1206         Reviewed by James Robinson.
1207
1208         Previously we only adjusted a few common input event types by page
1209         scale, but in fact almost every position and size in WebInputEvents
1210         requires it.
1211
1212         I also took the opportunity to change some WebGestureEvent members to
1213         floats (which I checked causes no warnings in Chromium-side code with
1214         GCC or Clang).
1215
1216         New WebInputEventConversionTest: InputEventsScaling
1217
1218         * public/WebInputEvent.h:
1219         (WebKit::WebGestureEvent::WebGestureEvent):
1220         * src/WebInputEventConversion.cpp:
1221         (WebKit::widgetScaleFactor):
1222         (WebKit):
1223         (WebKit::PlatformMouseEventBuilder::PlatformMouseEventBuilder):
1224         (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
1225         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1226         (WebKit::PlatformTouchPointBuilder::PlatformTouchPointBuilder):
1227         (WebKit::updateWebMouseEventFromWebCoreMouseEvent):
1228         (WebKit::WebMouseEventBuilder::WebMouseEventBuilder):
1229         (WebKit::addTouchPoints):
1230         (WebKit::WebTouchEventBuilder::WebTouchEventBuilder):
1231         (WebKit::WebGestureEventBuilder::WebGestureEventBuilder):
1232         * src/WebViewImpl.cpp:
1233         (WebKit::WebViewImpl::handleGestureEvent):
1234         (WebKit::WebViewImpl::hasTouchEventHandlersAt):
1235         (WebKit::WebViewImpl::handleInputEvent):
1236         * tests/WebInputEventConversionTest.cpp:
1237         (WebCore::TEST):
1238         (WebCore):
1239
1240 2013-02-11  Sheriff Bot  <webkit.review.bot@gmail.com>
1241
1242         Unreviewed, rolling out r142568.
1243         http://trac.webkit.org/changeset/142568
1244         https://bugs.webkit.org/show_bug.cgi?id=109541
1245
1246         Broke the build, won't compile. (Requested by alancutter on
1247         #webkit).
1248
1249         * tests/GraphicsLayerChromiumTest.cpp:
1250         (WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):
1251         * tests/ScrollingCoordinatorChromiumTest.cpp:
1252         (WebKit::FakeWebViewClient::initializeLayerTreeView):
1253
1254 2013-02-11  James Robinson  <jamesr@chromium.org>
1255
1256         [chromium] Add WebUnitTestSupport::createLayerTreeViewForTesting for webkit_unit_tests
1257         https://bugs.webkit.org/show_bug.cgi?id=109403
1258
1259         Reviewed by Adam Barth.
1260
1261         * tests/GraphicsLayerChromiumTest.cpp:
1262         (WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):
1263         * tests/ScrollingCoordinatorChromiumTest.cpp:
1264         (WebKit::FakeWebViewClient::initializeLayerTreeView):
1265
1266 2013-02-11  Sheriff Bot  <webkit.review.bot@gmail.com>
1267
1268         Unreviewed.  Rolled Chromium DEPS to r181817.  Requested by
1269         "James Robinson" <jamesr@chromium.org> via sheriffbot.
1270
1271         * DEPS:
1272
1273 2013-02-11  David Grogan  <dgrogan@chromium.org>
1274
1275         IndexedDB: Add UnknownError to WebIDBDatabaseException
1276         https://bugs.webkit.org/show_bug.cgi?id=109519
1277
1278         Reviewed by Adam Barth.
1279
1280         * public/WebIDBDatabaseException.h:
1281         * src/AssertMatchingEnums.cpp:
1282
1283 2013-02-11  Sheriff Bot  <webkit.review.bot@gmail.com>
1284
1285         Unreviewed.  Rolled Chromium DEPS to r181787.  Requested by
1286         thakis_ via sheriffbot.
1287
1288         * DEPS:
1289
1290 2013-02-11  Nico Weber  <thakis@chromium.org>
1291
1292         Remove web intents code
1293         https://bugs.webkit.org/show_bug.cgi?id=109501
1294
1295         Reviewed by Eric Seidel.
1296
1297         See thread "Removing ENABLE(WEB_INTENTS) code" on webkit-dev.
1298
1299         * WebKit.gyp:
1300         * features.gypi:
1301         * public/WebDeliveredIntentClient.h: Removed.
1302         * public/WebFrame.h:
1303         (WebKit):
1304         (WebFrame):
1305         * public/WebFrameClient.h:
1306         (WebKit):
1307         * public/WebIntent.h: Removed.
1308         * public/WebIntentRequest.h: Removed.
1309         * public/WebIntentServiceInfo.h: Removed.
1310         * public/WebRuntimeFeatures.h:
1311         (WebRuntimeFeatures):
1312         * src/DeliveredIntentClientImpl.cpp: Removed.
1313         * src/DeliveredIntentClientImpl.h: Removed.
1314         * src/FrameLoaderClientImpl.cpp:
1315         * src/FrameLoaderClientImpl.h:
1316         (FrameLoaderClientImpl):
1317         * src/WebFrameImpl.cpp:
1318         * src/WebFrameImpl.h:
1319         (WebKit):
1320         (WebFrameImpl):
1321         * src/WebIntent.cpp: Removed.
1322         * src/WebIntentRequest.cpp: Removed.
1323         * src/WebIntentServiceInfo.cpp: Removed.
1324         * src/WebRuntimeFeatures.cpp:
1325
1326 2013-02-11  Florin Malita  <fmalita@chromium.org>
1327
1328         Unreviewed.  Rolled Chromium DEPS to r181770.
1329
1330         * DEPS:
1331
1332 2013-02-11  Sheriff Bot  <webkit.review.bot@gmail.com>
1333
1334         Unreviewed.  Rolled Chromium DEPS to r181742.  Requested by
1335         fmalita_ via sheriffbot.
1336
1337         * DEPS:
1338
1339 2013-02-11  Rouslan Solomakhin  <rouslan@chromium.org>
1340
1341         [Chromium] Replace correct misspelled range in WebKit::WebFrameImpl::replaceMisspelledRange
1342         https://bugs.webkit.org/show_bug.cgi?id=108513
1343
1344         Reviewed by Tony Chang.
1345
1346         WebKit::WebFrameImpl::replaceMisspelledRange is going to be used by Chromium instead of
1347         WebKit::WebFrameImpl::replaceSelection for correcting misspellings. The current implementation
1348         of WebKit::WebFrameImpl::replaceMisspelledRange sometimes replaces the wrong range. This change
1349         uses Range::create instead of TextIterator::rangeFromLocationAndLength to select the correct
1350         range. This change also disables smart replace in WebKit::WebFrameImpl::replaceMisspelledRange
1351         to avoid introducing spaces around misspellings.
1352
1353         * src/WebFrameImpl.cpp:
1354         (WebKit::WebFrameImpl::replaceMisspelledRange): Replace correct misspelled range.
1355         * tests/WebFrameTest.cpp: Add unit test for WebKit::WebFrameImpl::replaceMisspelledRange method.
1356
1357 2013-02-11  Alexei Filippov  <alph@chromium.org>
1358
1359         Web Inspector: Split Profiler domain in protocol into Profiler and HeapProfiler
1360         https://bugs.webkit.org/show_bug.cgi?id=108653
1361
1362         Reviewed by Yury Semikhatsky.
1363
1364         Currently CPU and heap profilers share the same domain 'Profiler' in the protocol.
1365         In fact these two profile types have not too much in common. So put each into its own domain.
1366         It should also help when Profiles panel gets split into several tools.
1367         This is the phase 1 which adds InspectorHeapProfilerAgent but doesn't
1368         change the original InspectorProfilerAgent.
1369
1370         * src/WebDevToolsAgentImpl.cpp:
1371         (WebKit::WebDevToolsAgent::shouldInterruptForMessage):
1372
1373 2013-02-11  Abhishek Arya  <inferno@chromium.org>
1374
1375         Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
1376         https://bugs.webkit.org/show_bug.cgi?id=108981
1377
1378         Reviewed by Eric Seidel.
1379
1380         * src/AutofillPopupMenuClient.cpp:
1381         (WebKit::AutofillPopupMenuClient::getSuggestion):
1382         (WebKit::AutofillPopupMenuClient::getLabel):
1383         (WebKit::AutofillPopupMenuClient::getIcon):
1384         (WebKit::AutofillPopupMenuClient::removeSuggestionAtIndex):
1385         (WebKit::AutofillPopupMenuClient::valueChanged):
1386         (WebKit::AutofillPopupMenuClient::selectionChanged):
1387         * src/ChromeClientImpl.cpp:
1388         (WebKit::ChromeClientImpl::shouldRunModalDialogDuringPageDismissal):
1389
1390 2013-02-10  James Robinson  <jamesr@chromium.org>
1391
1392         [chromium] Enable more of webkit_unit_tests in component builds
1393         https://bugs.webkit.org/show_bug.cgi?id=109369
1394
1395         Reviewed by Darin Fisher.
1396
1397         Updates all webkit_unit_tests (except for LevelDBTest) to go through the Platform API instead of directly
1398         calling into webkit_support so they work in component builds.
1399
1400         * WebKit.gyp:
1401         * tests/AssociatedURLLoaderTest.cpp:
1402         * tests/EventListenerTest.cpp:
1403         * tests/FrameTestHelpers.cpp:
1404         (WebKit::FrameTestHelpers::createWebViewAndLoad):
1405         (QuitTask):
1406         (WebKit::FrameTestHelpers::QuitTask::run):
1407         (FrameTestHelpers):
1408         (WebKit::FrameTestHelpers::runPendingTasks):
1409         * tests/FrameTestHelpers.h:
1410         (FrameTestHelpers):
1411         * tests/ListenerLeakTest.cpp:
1412         * tests/PopupMenuTest.cpp:
1413         * tests/PrerenderingTest.cpp:
1414         * tests/ScrollingCoordinatorChromiumTest.cpp:
1415         (WebKit::ScrollingCoordinatorChromiumTest::~ScrollingCoordinatorChromiumTest):
1416         (WebKit::ScrollingCoordinatorChromiumTest::navigateTo):
1417         * tests/URLTestHelpers.cpp:
1418         (WebKit::URLTestHelpers::registerMockedURLLoad):
1419         * tests/WebFrameTest.cpp:
1420         * tests/WebImageTest.cpp:
1421         (WebKit::readFile):
1422         * tests/WebPageNewSerializerTest.cpp:
1423         * tests/WebPageSerializerTest.cpp:
1424         * tests/WebPluginContainerTest.cpp:
1425         (WebKit::WebPluginContainerTest::TearDown):
1426         (WebKit::TEST_F):
1427         * tests/WebViewTest.cpp:
1428
1429 2013-02-10  Sheriff Bot  <webkit.review.bot@gmail.com>
1430
1431         Unreviewed.  Rolled Chromium DEPS to r181645.  Requested by
1432         "James Robinson" <jamesr@chromium.org> via sheriffbot.
1433
1434         * DEPS:
1435
1436 2013-02-09  Stephen Chenney  <schenney@chromium.org>
1437
1438         Unreviewed.  Rolled Chromium DEPS to last-known good revision. Really this time.
1439
1440         * DEPS: 181594
1441
1442 2013-02-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1443
1444         Unreviewed.  Rolled Chromium DEPS to last-known good revision.
1445         Requested by "Stephen Chenney" <schenney@chromium.org> via
1446         sheriffbot.
1447
1448         * DEPS:
1449
1450 2013-02-08  Kent Tamura  <tkent@chromium.org>
1451
1452         [Chromium] Disable ENABLE_INPUT_TYPE_DATETIME
1453         https://bugs.webkit.org/show_bug.cgi?id=109272
1454
1455         Reviewed by Kentaro Hara.
1456
1457         We enabled this flag for desktop Chromium, but disabled the feature by a
1458         runtime flag. We disables the compile flag too because we have no plan
1459         to ship it in near future.
1460
1461         * features.gypi: Remove ENABLE_INPUT_TYPE_DATETIME.
1462
1463 2013-02-08  Stephen Chenney  <schenney@chromium.org>
1464
1465         Remove Skia code suppressions
1466
1467         Unreviewed enabling of existing optimizations
1468
1469         Removing all skia_webkit.gyp code suppressions and adding expectations
1470         for the failures.
1471
1472         * skia_webkit.gyp:
1473
1474 2013-02-08  Dan Carney  <dcarney@google.com>
1475
1476         [v8] isolate parameter added to all v8::peristent calls
1477         https://bugs.webkit.org/show_bug.cgi?id=109268
1478
1479         Reviewed by Kentaro Hara.
1480
1481         * tests/WebFrameTest.cpp:
1482
1483 2013-02-07  Kent Tamura  <tkent@chromium.org>
1484
1485         [Chromium-Android] Disable input[type=datetime]
1486         https://bugs.webkit.org/show_bug.cgi?id=107614
1487
1488         Reviewed by Kentaro Hara.
1489
1490         Reason:
1491         http://lists.webkit.org/pipermail/webkit-dev/2013-January/023404.html
1492
1493         * features.gypi:
1494         Disable ENABLE_INPUT_TYPE_DATETIME because of a wrong UI.
1495         We enable it for non-Android ports but the runtime flag for it is
1496         disabled by default. The runtime flag is enabled only in DumpRenderTree.
1497
1498 2013-02-07  Terry Anderson  <tdanderson@chromium.org>
1499
1500         [chromium] Flings should not bubble up to enclosing scrollables when main-thread touch scrolling
1501         https://bugs.webkit.org/show_bug.cgi?id=108719
1502
1503         Reviewed by Eric Seidel.
1504
1505         In the event of a main-thread touch fling, dispatch a series of
1506         GestureScrollUpdateWithoutPropagation events defined in
1507         https://bugs.webkit.org/show_bug.cgi?id=108849 (instead of
1508         GestureScrollUpdate events) so that the fling does not
1509         propagate to enclosing scrollables.
1510
1511         * src/WebViewImpl.cpp:
1512         (WebKit::WebViewImpl::scrollBy):
1513
1514 2013-02-07  Kent Tamura  <tkent@chromium.org>
1515
1516         [Chromium] Add a flag to enable native form validation message
1517         https://bugs.webkit.org/show_bug.cgi?id=109134
1518
1519         Reviewed by Adam Barth.
1520
1521         * public/WebRuntimeFeatures.h:
1522         (WebRuntimeFeatures): Add enableNativeValidationMessage and
1523         isNativeValidationMessageEnabled.
1524         * src/WebRuntimeFeatures.cpp:
1525         (WebKit): Add nativeValidationMessageEnabled.
1526         (WebKit::WebRuntimeFeatures::enableNativeValidationMessage): Added.
1527         (WebKit::WebRuntimeFeatures::isNativeValidationMessageEnabled): Addedd.
1528         * src/WebViewImpl.cpp:
1529         (WebKit::WebViewImpl::WebViewImpl):
1530         Fill Page::PageClients::validationMessageClient if the flag is true.
1531
1532 2013-02-07  Eberhard Graether  <egraether@google.com>
1533
1534         Web Inspector: Add settings checkbox for composited layer borders
1535         https://bugs.webkit.org/show_bug.cgi?id=109096
1536
1537         Reviewed by Pavel Feldman.
1538
1539         This change adds a checkbox to show composited layer borders to the WebInspector's
1540         rendering settings and plumbs the setting to Chromium's WebLayerTreeView. The setting
1541         is visible if InspectorClient::canShowDebugBorders() returns true.
1542
1543         * src/InspectorClientImpl.cpp:
1544         (WebKit::InspectorClientImpl::canShowDebugBorders):
1545         (WebKit):
1546         (WebKit::InspectorClientImpl::setShowDebugBorders):
1547         * src/InspectorClientImpl.h:
1548         (InspectorClientImpl):
1549         * src/WebViewImpl.cpp:
1550         (WebKit::WebViewImpl::WebViewImpl):
1551         (WebKit::WebViewImpl::setShowDebugBorders):
1552         (WebKit):
1553         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1554         * src/WebViewImpl.h:
1555
1556 2013-02-07  Stephen White  <senorblanco@chromium.org>
1557
1558         Unreviewed.  Rolled DEPS.
1559
1560         * DEPS:
1561
1562 2013-02-07  David Trainor  <dtrainor@chromium.org>
1563
1564         Add null check to editable in moveCaretSelectionTowardsWindowPoint
1565         https://bugs.webkit.org/show_bug.cgi?id=108962
1566
1567         Reviewed by Eric Seidel.
1568
1569         * src/WebFrameImpl.cpp:
1570         (WebKit::WebFrameImpl::moveCaretSelectionTowardsWindowPoint):
1571         * tests/WebFrameTest.cpp:
1572
1573 2013-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1574
1575         Unreviewed.  Rolled Chromium DEPS to r180752.  Requested by
1576         thakis_ via sheriffbot.
1577
1578         * DEPS:
1579
1580 2013-02-06  Terry Anderson  <tdanderson@chromium.org>
1581
1582         Add support for gesture scroll events that do not propagate to enclosing scrollables
1583         https://bugs.webkit.org/show_bug.cgi?id=108849
1584
1585         Reviewed by Antonio Gomes.
1586
1587         Define the new event type GestureScrollUpdateWithoutPropagation.
1588
1589         * public/WebInputEvent.h:
1590         (WebKit::WebInputEvent::isGestureEventType):
1591         * src/PageWidgetDelegate.cpp:
1592         (WebKit::PageWidgetDelegate::handleInputEvent):
1593         * src/WebInputEventConversion.cpp:
1594         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1595         * src/WebPluginContainerImpl.cpp:
1596         * src/WebPopupMenuImpl.cpp:
1597         (WebKit::WebPopupMenuImpl::handleInputEvent):
1598         * src/WebViewImpl.cpp:
1599         (WebKit::WebViewImpl::handleGestureEvent):
1600
1601 2013-02-06  Alexandre Elias  <aelias@chromium.org>
1602
1603         Make ScrollView::paint() clip by visibleContentRect
1604         https://bugs.webkit.org/show_bug.cgi?id=108888
1605
1606         Reviewed by Levi Weintraub.
1607
1608         When applyPageScaleFactorInCompositor or fixedVisibleContentRect
1609         are used, frameRect() and visibleContentRect(true).size() are
1610         no longer synonyms, and the latter is the one that should be
1611         used for clipping paints.
1612
1613         New WebFrameTest: pageScaleFactorScalesPaintClip.
1614
1615         * tests/WebFrameTest.cpp:
1616
1617 2013-02-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1618
1619         Unreviewed, rolling out r142025.
1620         http://trac.webkit.org/changeset/142025
1621         https://bugs.webkit.org/show_bug.cgi?id=109091
1622
1623         broke the build (Requested by tdanderson on #webkit).
1624
1625         * public/WebInputEvent.h:
1626         (WebKit::WebInputEvent::isGestureEventType):
1627         * src/PageWidgetDelegate.cpp:
1628         (WebKit::PageWidgetDelegate::handleInputEvent):
1629         * src/WebInputEventConversion.cpp:
1630         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1631         * src/WebPluginContainerImpl.cpp:
1632         * src/WebPopupMenuImpl.cpp:
1633         (WebKit::WebPopupMenuImpl::handleInputEvent):
1634         * src/WebViewImpl.cpp:
1635         (WebKit::WebViewImpl::handleGestureEvent):
1636
1637 2013-02-06  Daniel Cheng  <dcheng@google.com>
1638
1639         [chromium] Remove "config.h" header from WebUnitTests.cpp
1640         https://bugs.webkit.org/show_bug.cgi?id=108966
1641
1642         Reviewed by Tony Chang.
1643
1644         This file includes headers from base/ in Chromium, and config.h
1645         conflicts with base/logging.h. Rather than teaching certain files in
1646         base/ not to #include base/logging.h, remove the config.h include
1647         here. The ASSERT isn't really necessary, as attempting to run a null
1648         test suite won't go very far anyway.
1649
1650         * tests/WebUnitTests.cpp:
1651         (WebKit::RunAllUnitTests):
1652
1653 2013-02-06  Terry Anderson  <tdanderson@chromium.org>
1654
1655         Add support for gesture scroll events that do not propagate to enclosing scrollables
1656         https://bugs.webkit.org/show_bug.cgi?id=108849
1657
1658         Reviewed by Antonio Gomes.
1659
1660         Define the new event type GestureScrollUpdateWithoutPropagation.
1661
1662         * public/WebInputEvent.h:
1663         (WebKit::WebInputEvent::isGestureEventType):
1664         * src/PageWidgetDelegate.cpp:
1665         (WebKit::PageWidgetDelegate::handleInputEvent):
1666         * src/WebInputEventConversion.cpp:
1667         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1668         * src/WebPluginContainerImpl.cpp:
1669         * src/WebPopupMenuImpl.cpp:
1670         (WebKit::WebPopupMenuImpl::handleInputEvent):
1671         * src/WebViewImpl.cpp:
1672         (WebKit::WebViewImpl::handleGestureEvent):
1673
1674 2013-02-06  Chris Hopman  <cjhopman@chromium.org>
1675
1676         [Chromium] WebWidget should expose a way to determine the start/end of the selection bounds
1677         https://bugs.webkit.org/show_bug.cgi?id=108667
1678
1679         Reviewed by Darin Fisher.
1680
1681         WebWidget::selectionBounds() returns the anchor and focus of the
1682         selection. This matches the arguments to WebFrame::selectRange().
1683         Add WebWidget::isSelectionAnchorFirst so that a caller can convert the
1684         anchor/focus to start/end.
1685
1686         * public/WebWidget.h:
1687         (WebWidget):
1688         (WebKit::WebWidget::isSelectionAnchorFirst):
1689         * src/WebViewImpl.cpp:
1690         (WebKit::WebViewImpl::isSelectionAnchorFirst):
1691         (WebKit):
1692         * src/WebViewImpl.h:
1693         * tests/WebViewTest.cpp:
1694
1695 2013-02-06  Alec Flett  <alecflett@chromium.org>
1696
1697         IndexedDB: Stub out SharedBuffer version of put()
1698         https://bugs.webkit.org/show_bug.cgi?id=108986
1699
1700         Reviewed by Darin Fisher.
1701
1702         This is part 1 of 3 to replace Vector<uint8_t> with SharedBuffer.
1703
1704         * public/WebIDBDatabase.h:
1705         (WebKit):
1706         (WebKit::WebIDBDatabase::put):
1707
1708 2013-02-06  Stephen Chenney  <schenney@chromium.org>
1709
1710         Add Skia code suppression flags to WebKit skia.gyp
1711
1712         Unreviewed.
1713
1714         This is step one in removing these flags. First we get them into
1715         WebKit, then we can remove them from Chrome.
1716
1717         * skia_webkit.gyp:
1718
1719 2013-02-06  Mike West  <mkwst@chromium.org>
1720
1721         Add an ENABLE_NOSNIFF feature flag.
1722         https://bugs.webkit.org/show_bug.cgi?id=109029
1723
1724         Reviewed by Jochen Eisinger.
1725
1726         This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
1727         when processing script and other resource types.
1728
1729         * features.gypi:
1730
1731 2013-02-05  David Dorwin  <ddorwin@chromium.org>
1732
1733         [chromium] Explicitly destroy the WebMediaPlayer in WebMediaPlayerClientImpl's destructor
1734         https://bugs.webkit.org/show_bug.cgi?id=108989
1735
1736         Reviewed by Kent Tamura.
1737
1738         * src/WebMediaPlayerClientImpl.cpp:
1739         (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl):
1740
1741 2013-02-04  Kentaro Hara  <haraken@chromium.org>
1742
1743         [V8] Reduce usage of deprecatedString() and deprecatedInteger()
1744         https://bugs.webkit.org/show_bug.cgi?id=108909
1745
1746         Reviewed by Adam Barth.
1747
1748         No tests. No change in behavior.
1749
1750         * src/WebBindings.cpp:
1751         (WebKit::WebBindings::toV8Value):
1752
1753 2013-02-05  Kentaro Hara  <haraken@chromium.org>
1754
1755         [V8] Make an Isolate parameter mandatory in HasInstance()
1756         https://bugs.webkit.org/show_bug.cgi?id=108917
1757
1758         Reviewed by Adam Barth.
1759
1760         Because these methods do not have an Isolate, we have to call
1761         v8::Isolate::GetCurrent().
1762
1763         No tests. No change in behavior.
1764
1765         * src/WebArrayBuffer.cpp:
1766         (WebKit::WebArrayBuffer::createFromV8Value):
1767         * src/WebArrayBufferView.cpp:
1768         (WebKit::WebArrayBufferView::createFromV8Value):
1769         * src/WebBindings.cpp:
1770         (WebKit::getRangeImpl):
1771         (WebKit::getNodeImpl):
1772         (WebKit::getElementImpl):
1773         (WebKit::getArrayBufferImpl):
1774         (WebKit::getArrayBufferViewImpl):
1775         (WebKit::WebBindings::getRange):
1776         (WebKit::WebBindings::getArrayBuffer):
1777         (WebKit::WebBindings::getArrayBufferView):
1778         (WebKit::WebBindings::getNode):
1779         (WebKit::WebBindings::getElement):
1780
1781 2013-02-05  Dana Jansens  <danakj@chromium.org>
1782
1783         [chromium] Provide compositor offscreen context through the WebLayerTreeViewClient interface
1784         https://bugs.webkit.org/show_bug.cgi?id=107776
1785
1786         Reviewed by James Robinson.
1787
1788         * WebKit.gyp:
1789         * src/WebGraphicsContext3D.cpp: Removed.
1790
1791 2013-02-05  Mark Lam  <mark.lam@apple.com>
1792
1793         Introduced back-end database classes + a few small fixes.
1794         https://bugs.webkit.org/show_bug.cgi?id=108759.
1795
1796         Reviewed by Brady Eidson.
1797
1798         * src/DatabaseObserver.cpp:
1799         (WebCore::DatabaseObserver::databaseOpened):
1800         (WebCore::DatabaseObserver::databaseModified):
1801         (WebCore::DatabaseObserver::databaseClosed):
1802
1803 2013-02-05  Adam Barth  <abarth@webkit.org>
1804
1805         DumpRenderTree should be able to enable the threaded parser
1806         https://bugs.webkit.org/show_bug.cgi?id=108970
1807
1808         Reviewed by Eric Seidel.
1809
1810         * public/WebSettings.h:
1811         * src/WebSettingsImpl.cpp:
1812         (WebKit::WebSettingsImpl::setThreadedHTMLParser):
1813         (WebKit):
1814         * src/WebSettingsImpl.h:
1815         (WebSettingsImpl):
1816
1817 2013-02-05  Sami Kyostila  <skyostil@chromium.org>
1818
1819         [chromium] Make overlay layers slow-scrolling
1820         https://bugs.webkit.org/show_bug.cgi?id=108957
1821
1822         Reviewed by James Robinson.
1823
1824         Since overlay layers get inserted on top of everything else, we must
1825         mark them slow-scrolling to prevent all scroll input events to the rest
1826         of the page from getting blocked. This is also more correct because
1827         generally the overlay contents need to be repainted whenever the scroll
1828         offset changes, and with this patch the painting happens in sync with
1829         page scrolling.
1830
1831 2013-02-05  Sheriff Bot  <webkit.review.bot@gmail.com>
1832
1833         Unreviewed, rolling out r141896.
1834         http://trac.webkit.org/changeset/141896
1835         https://bugs.webkit.org/show_bug.cgi?id=108956
1836
1837         crashes indexdb security tests (Requested by gavinp on
1838         #webkit).
1839
1840         * public/platform/WebKitPlatformSupport.h:
1841         (WebKit):
1842         (WebKitPlatformSupport):
1843         (WebKit::WebKitPlatformSupport::idbFactory):
1844         * src/IDBFactoryBackendProxy.cpp:
1845         (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
1846
1847 2013-02-05  Mark Pilgrim  <pilgrim@chromium.org>
1848
1849         [Chromium] Remove idbFactory from WebKitPlatformSupport
1850         https://bugs.webkit.org/show_bug.cgi?id=106457
1851
1852         Reviewed by Adam Barth.
1853
1854         Now that https://codereview.chromium.org/12181010/ has landed, the
1855         idbFactory method is no longer needed. (Embedders must now call
1856         the new setIDBFactory method upon initialization.) Part of a
1857         larger refactoring series; see tracking bug 82948.
1858
1859         * public/platform/WebKitPlatformSupport.h:
1860         (WebKit):
1861         * src/IDBFactoryBackendProxy.cpp:
1862         (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
1863
1864 2013-02-05  Kentaro Hara  <haraken@chromium.org>
1865
1866         Unreviewed, rolling out r141865.
1867         http://trac.webkit.org/changeset/141865
1868         https://bugs.webkit.org/show_bug.cgi?id=108909
1869
1870         webkit unit tests are broken
1871
1872         * src/WebBindings.cpp:
1873         (WebKit::WebBindings::toV8Value):
1874
1875 2013-02-05  Kentaro Hara  <haraken@chromium.org>
1876
1877         [V8] Reduce usage of deprecatedString() and deprecatedInteger()
1878         https://bugs.webkit.org/show_bug.cgi?id=108909
1879
1880         Reviewed by Adam Barth.
1881
1882         No tests. No change in behavior.
1883
1884         * src/WebBindings.cpp:
1885         (WebKit::WebBindings::toV8Value):
1886
1887 2013-02-04  Sheriff Bot  <webkit.review.bot@gmail.com>
1888
1889         Unreviewed.  Rolled Chromium DEPS to r180583.  Requested by
1890         "Mark Pilgrim" <pilgrim@chromium.org> via sheriffbot.
1891
1892         * DEPS:
1893
1894 2013-02-04  James Simonsen  <simonjam@chromium.org>
1895
1896         [Chromium] Add a signal for when the body is inserted in the document
1897         https://bugs.webkit.org/show_bug.cgi?id=108725
1898
1899         Reviewed by Adam Barth.
1900
1901         * public/WebFrameClient.h:
1902         (WebFrameClient):
1903         (WebKit::WebFrameClient::willInsertBody):
1904         * src/FrameLoaderClientImpl.cpp:
1905         (WebKit::FrameLoaderClientImpl::dispatchWillInsertBody):
1906         (WebKit):
1907         * src/FrameLoaderClientImpl.h:
1908         (FrameLoaderClientImpl):
1909         * tests/WebFrameTest.cpp:
1910
1911 2013-02-04  Chris Hopman  <cjhopman@chromium.org>
1912
1913         Make moveCaretTowardsWindowPoint not snap to the beginning/end when moved above/below editable
1914         https://bugs.webkit.org/show_bug.cgi?id=107850
1915
1916         Reviewed by Ojan Vafai.
1917
1918         On Android, EditingBehavior::shouldMoveCaret[...] controls the
1919         behavior of insertion handles. This change adds a new Android specific
1920         editing behavior type so that we can change these settings independent
1921         of behavior for other platforms.
1922
1923         * public/WebSettings.h:
1924         * src/AssertMatchingEnums.cpp:
1925         Just add the corresponding assertion for the new editing behavior.
1926
1927         * public/WebSettings.h:
1928         * src/AssertMatchingEnums.cpp:
1929
1930         * tests/WebFrameTest.cpp:
1931         * tests/data/move_caret.html: Added.
1932         Add a test that moveCaretTowardsWindowPoint works as expected on
1933         Android.
1934
1935 2013-01-31  Kentaro Hara  <haraken@chromium.org>
1936
1937         Implement WheelEvent::deltaMode
1938         https://bugs.webkit.org/show_bug.cgi?id=108455
1939
1940         Reviewed by Adam Barth.
1941
1942         * src/WebInputEventConversion.cpp:
1943         (WebKit::WebMouseWheelEventBuilder::WebMouseWheelEventBuilder):
1944
1945 2013-02-04  Mark Pilgrim  <pilgrim@chromium.org>
1946
1947         [Chromium] Move WorkerContextProxy to WebCore
1948         https://bugs.webkit.org/show_bug.cgi?id=108847
1949
1950         Reviewed by Adam Barth.
1951
1952         Part of a larger refactoring series; see tracking bug 106829.
1953
1954         * WebKit.gyp:
1955         * src/WebKit.cpp:
1956         (WebKit::initializeWithoutV8):
1957         * src/WorkerContextProxy.cpp: Removed.
1958
1959 2013-02-04  Abhishek Arya  <inferno@chromium.org>
1960
1961         Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
1962         https://bugs.webkit.org/show_bug.cgi?id=108668
1963
1964         Reviewed by Eric Seidel.
1965
1966         * src/ContextFeaturesClientImpl.cpp:
1967         (WebKit::ContextFeaturesCache::entryFor):
1968         * src/WebFrameImpl.cpp:
1969         (WebKit::WebFrameImpl::selectFindMatch):
1970
1971 2013-02-04  Mark Pilgrim  <pilgrim@chromium.org>
1972
1973         [Chromium] Move IDBFactoryBackendInterface to WebCore
1974         https://bugs.webkit.org/show_bug.cgi?id=108638
1975
1976         Reviewed by Adam Barth.
1977
1978         Part of a larger refactoring series; see tracking bug 106829.
1979
1980         * WebKit.gyp:
1981         * src/AssertMatchingEnums.cpp:
1982         * src/IDBFactoryBackendInterface.cpp: Removed.
1983         * src/IDBFactoryBackendProxy.h:
1984         * src/WebKit.cpp:
1985         (WebKit::initializeWithoutV8):
1986
1987 2013-02-04  Abhishek Arya  <inferno@chromium.org>
1988
1989         Add ASSERT_WITH_SECURITY_IMPLICATION to detect bad cast in DOM, CSS, etc.
1990         https://bugs.webkit.org/show_bug.cgi?id=108688
1991
1992         Reviewed by Eric Seidel.
1993
1994         * src/IDBFactoryBackendProxy.cpp:
1995         (WebKit::IDBFactoryBackendProxy::allowIndexedDB):
1996         (WebKit::getWebFrame):
1997         * src/LocalFileSystemChromium.cpp:
1998         (WebCore::LocalFileSystem::deleteFileSystem):
1999         * src/WebSharedWorkerImpl.cpp:
2000         (WebKit::WebSharedWorkerImpl::connectTask):
2001         (WebKit::resumeWorkerContextTask):
2002         (WebKit::connectToWorkerContextInspectorTask):
2003         (WebKit::reconnectToWorkerContextInspectorTask):
2004         (WebKit::disconnectFromWorkerContextInspectorTask):
2005         (WebKit::dispatchOnInspectorBackendTask):
2006
2007 2013-02-04  Sami Kyostila  <skyostil@chromium.org>
2008
2009         Disable -webkit-overflow-scrolling CSS attribute on Chromium
2010         https://bugs.webkit.org/show_bug.cgi?id=108020
2011
2012         Reviewed by James Robinson.
2013
2014         Now that we can automatically promote overflow elements to accelerated
2015         scrolling layers there is no use for the -webkit-overflow-scrolling CSS
2016         attribute any longer on Chromium.
2017
2018         This patch enables composited overflow scrolling in
2019         ScrollingCoordinatorChromiumTest. Because this also causes the overflow div
2020         in non-fast-scrollable.html to become composited, we also need to modify that
2021         test to opt it out of composited scrolling.
2022
2023         * features.gypi:
2024         * tests/ScrollingCoordinatorChromiumTest.cpp:
2025         (WebKit::ScrollingCoordinatorChromiumTest::ScrollingCoordinatorChromiumTest):
2026         (WebKit::TEST_F):
2027         * tests/data/non-fast-scrollable.html:
2028         * tests/data/overflow-scrolling.html: Renamed from Source/WebKit/chromium/tests/data/touch-overflow-scrolling.html.
2029
2030 2013-02-03  KwangYong Choi  <ky0.choi@samsung.com>
2031
2032         Fix build warning after r141473
2033         https://bugs.webkit.org/show_bug.cgi?id=108782
2034
2035         Reviewed by Kentaro Hara.
2036
2037         Fix -Wunused-parameter build warning.
2038
2039         * src/EditorClientImpl.cpp:
2040         (WebKit::EditorClientImpl::getClientPasteboardDataForRange):
2041
2042 2013-02-03  David Dorwin  <ddorwin@chromium.org>
2043
2044         [chromium] Do not call m_widgetClient->show() for WebHelperPlugin.
2045         https://bugs.webkit.org/show_bug.cgi?id=108740
2046
2047         Reviewed by Kent Tamura.
2048
2049         The calls to m_widgetClient->show() and setFocus() do not appear to be
2050         necessary, and the former causes problems on at least on platform.
2051
2052         * src/WebHelperPluginImpl.cpp:
2053         (WebKit::WebHelperPluginImpl::initialize): Removed calls to m_widgetClient->show() and setFocus().
2054         (WebKit::WebHelperPluginImpl::setFocus): Should never be called.
2055
2056 2013-02-02  Michael Nordman  <michaeln@google.com>
2057
2058         [chromium] FileSystem mods: Changes to snapshot file creation to reduce dependencies on blobs.
2059         This patch just alters the WebKitAPI in advance of coding to the new API in chromium and webkit
2060         sources, defining two new virtual methods (unimplemented and uncalled). The existing API remains
2061         in place and in use.
2062         https://bugs.webkit.org/show_bug.cgi?id=108736
2063
2064         Reviewed by Darin Fisher.
2065
2066         * public/WebFileSystemCallbacks.h:
2067         (WebFileSystemCallbacks):
2068         (WebKit::WebFileSystemCallbacks::didCreateSnapshotFile):
2069
2070 2013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2071
2072         Unreviewed.  Rolled Chromium DEPS to r180221.  Requested by
2073         "Nico Weber" <thakis@chromium.org> via sheriffbot.
2074
2075         * DEPS:
2076
2077 2013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2078
2079         Unreviewed.  Rolled Chromium DEPS to r180186.  Requested by
2080         "Nico Weber" <thakis@chromium.org> via sheriffbot.
2081
2082         * DEPS:
2083
2084 2013-02-01  Chris Hopman  <cjhopman@chromium.org>
2085
2086         [Chromium] WebWidget::selectionBounds should return the bounds in document space
2087         https://bugs.webkit.org/show_bug.cgi?id=108386
2088
2089         Reviewed by James Robinson.
2090
2091         When in applyPageScaleFactorInCompositor mode, selectionBounds needs
2092         to scale the anchor/focus window points by the pageScaleFactor.
2093
2094         * src/WebViewImpl.cpp:
2095         (WebKit::WebViewImpl::selectionBounds):
2096         (WebKit::WebViewImpl::computeScaleAndScrollForFocusedNode):
2097
2098 2013-02-01  Dominic Mazzoni  <dmazzoni@google.com>
2099
2100         AX: memoize expensive computation during blocks where tree doesn't change
2101         https://bugs.webkit.org/show_bug.cgi?id=106497
2102
2103         Reviewed by Ryosuke Niwa.
2104
2105         Expose two methods to enable and disable caching of
2106         computed WebAccessibilityObject attributes, to speed up
2107         batch read-only operations.
2108
2109         * public/WebAccessibilityObject.h:
2110         (WebAccessibilityObject):
2111         * src/WebAccessibilityObject.cpp:
2112         (WebKit::WebAccessibilityObject::startCachingComputedObjectAttributesUntilTreeMutates):
2113         (WebKit):
2114         (WebKit::WebAccessibilityObject::stopCachingComputedObjectAttributes):
2115
2116 2013-02-01  Fady Samuel  <fsamuel@chromium.org>
2117
2118         [Chromium] Expose WebNode::shadowHost()
2119         https://bugs.webkit.org/show_bug.cgi?id=108681
2120
2121         Reviewed by Dimitri Glazkov.
2122
2123         BrowserPlugin needs to be able to check the event listeners attached to
2124         <webview> and so we expose shadowHost to permit it to poke at the webview
2125         node.
2126
2127         * public/WebNode.h:
2128         * src/WebNode.cpp:
2129         (WebKit::WebNode::shadowHost):
2130         (WebKit):
2131
2132 2013-02-01  Rouslan Solomakhin  <rouslan@chromium.org>
2133
2134         [Chromium] Ignore punctuation in spellcheck
2135         https://bugs.webkit.org/show_bug.cgi?id=108511
2136
2137         Reviewed by Tony Chang.
2138
2139         * src/ContextMenuClientImpl.cpp:
2140         (WebKit::IsWhiteSpaceOrPunctuation): Added utility function to detect whitespace or punctuation.
2141         (WebKit::selectMisspellingAsync): Ignore punctuation when selecting the misspelling.
2142
2143 2013-02-01  Philip Rogers  <pdr@google.com>
2144
2145         Change hasAlpha to isKnownToBeOpaque and correct the return value for SVG images.
2146         https://bugs.webkit.org/show_bug.cgi?id=106966
2147
2148         Reviewed by Stephen White.
2149
2150         * tests/DragImageTest.cpp:
2151         (WebCore::TestImage::currentFrameKnownToBeOpaque):
2152         (TestImage):
2153         * tests/ImageLayerChromiumTest.cpp:
2154         (WebCore::TestImage::currentFrameKnownToBeOpaque):
2155         * tests/PlatformContextSkiaTest.cpp:
2156         (WebCore::TEST):
2157
2158 2013-02-01  Nico Weber  <thakis@chromium.org>
2159
2160         [chromium] Build webkit with enable_web_intents set to 0.
2161         https://bugs.webkit.org/show_bug.cgi?id=108408
2162
2163         Reviewed by Tony Chang.
2164
2165         I'll then make chromium build fine with that, then switch
2166         enable_web_intents to 0, roll that into webkit, and then
2167         actually remove the code hidden behind this flag.
2168
2169         The features.gypi bit depends on https://codereview.chromium.org/12143002/
2170         and will disable web intents support on android. Since common.gypi
2171         sets enable_web_intents to 0 explicitly, it seems this is currently on
2172         by accident anyway.
2173
2174         While it looks like this CL just removes ENABLE_WEB_INTENTS=1 from
2175         features.gypi completely, it's still set further down the file if
2176         enable_web_intents is on.
2177
2178         * WebKit.gyp:
2179         * features.gypi:
2180         * src/WebFrameImpl.cpp:
2181
2182 2013-02-01  Rouslan Solomakhin  <rouslan@chromium.org>
2183
2184         [Chromium] Ignore whitespace in spellcheck
2185         https://bugs.webkit.org/show_bug.cgi?id=108510
2186
2187         Reviewed by Ryosuke Niwa.
2188
2189         * src/ContextMenuClientImpl.cpp:
2190         (WebKit::selectMisspellingAsync): Ignore whitespace when selecting the misspelling.
2191
2192 2013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2193
2194         Unreviewed.  Rolled Chromium DEPS to r180131.  Requested by
2195         "Florin Malita" <fmalita@chromium.org> via sheriffbot.
2196
2197         * DEPS:
2198
2199 2013-02-01  Alexis Menard  <alexis@webkit.org>
2200
2201         Enable unprefixed CSS transitions by default.
2202         https://bugs.webkit.org/show_bug.cgi?id=108216
2203
2204         Reviewed by Dean Jackson.
2205
2206         Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
2207         to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to 
2208         guard the unprefixing work for CSS Transforms and animations.
2209
2210         * features.gypi:
2211
2212 2013-02-01  Ken Kania  <kkania@chromium.org>
2213
2214         Web Inspector: Add support for handling modal dialogs
2215         https://bugs.webkit.org/show_bug.cgi?id=107883
2216
2217         Reviewed by Pavel Feldman.
2218
2219         Introduce support for being notified when a JavaScript modal dialog
2220         is opening and closing, as well as a new command for accepting or
2221         dismissing the dialog.
2222
2223         * public/WebDevToolsAgent.h:
2224         * src/InspectorClientImpl.cpp:
2225         (WebKit::InspectorClientImpl::handleJavaScriptDialog):
2226         (WebKit):
2227         * src/InspectorClientImpl.h:
2228         (InspectorClientImpl):
2229         * src/WebDevToolsAgentImpl.cpp:
2230         (BrowserDataHintStringValues):
2231         (WebKit::WebDevToolsAgentImpl::captureScreenshot):
2232         (WebKit::WebDevToolsAgentImpl::handleJavaScriptDialog):
2233         (WebKit):
2234         (WebKit::browserHintToString):
2235         (WebKit::browserHintFromString):
2236         (WebKit::WebDevToolsAgent::patchWithBrowserData):
2237         * src/WebDevToolsAgentImpl.h:
2238         (WebDevToolsAgentImpl):
2239
2240 2013-02-01  Dan Alcantara  <dfalcantara@chromium.org>
2241
2242         Touch disambiguation blacklist is not being queried properly
2243         https://bugs.webkit.org/show_bug.cgi?id=108222
2244
2245         Reviewed by Adam Barth.
2246
2247         TEST=WebFrameTest::DisambiguationPopupBlacklist
2248
2249         Fix the blacklist so that we check it for the right nodes.
2250         Add a test to check that the blacklist is being built and used
2251         correctly.  Also update the other DisambiguationPopup tests to
2252         use the new page scale method.
2253
2254         * tests/WebFrameTest.cpp:
2255         * tests/data/disambiguation_popup_blacklist.html: Added.
2256
2257 2013-02-01  Eberhard Graether  <egraether@google.com>
2258
2259         [chromium] only show checkboxes for FPS meter and continuous painting when compositing mode is forced
2260         https://bugs.webkit.org/show_bug.cgi?id=108236
2261
2262         Reviewed by Pavel Feldman.
2263
2264         This change hides the checkboxes for FPS meter and continuous painting if compositing mode is not forced.
2265         This way the checkboxes only show up for users that can make use of these features.
2266
2267         * src/InspectorClientImpl.cpp:
2268         (WebKit::InspectorClientImpl::canShowFPSCounter):
2269         (WebKit::InspectorClientImpl::canContinuouslyPaint):
2270
2271 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
2272
2273         Editor::m_compositionNode not updated on HTMLInputElement::setValue()
2274         https://bugs.webkit.org/show_bug.cgi?id=107737
2275
2276         Reviewed by Ryosuke Niwa.
2277
2278         * public/WebViewClient.h:
2279         (WebKit::WebViewClient::didCancelCompositionOnSelectionChange):
2280             Adding a callback to let the WebViewClient know that the composition has been cancelled.
2281         * src/EditorClientImpl.cpp:
2282         (WebKit::EditorClientImpl::respondToChangedSelection):
2283             Adding a call composition if it is no longer valid.
2284
2285 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
2286
2287         [Chromium] WebViewTest.SetCompositionFromExistingText failing after r141479
2288         https://bugs.webkit.org/show_bug.cgi?id=108543
2289
2290         Reviewed by Ryosuke Niwa.
2291
2292         Fixing a bug that was uncovered after fixing http://trac.webkit.org/changeset/141479
2293
2294         * src/WebViewImpl.cpp:
2295         (WebKit::WebViewImpl::setCompositionFromExistingText):
2296         * tests/WebViewTest.cpp:
2297             Re-enabling the test
2298
2299 2013-01-31  Hajime Morrita  <morrita@google.com> 
2300
2301         Unreviewed, followup fix for r141535.
2302
2303         * tests/WebFrameTest.cpp:
2304
2305 2013-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2306
2307         Unreviewed.  Rolled Chromium DEPS to r180023.  Requested by
2308         thakis_ via sheriffbot.
2309
2310         * DEPS:
2311
2312 2013-01-31  Hajime Morrita  <morrita@google.com>
2313
2314         Unreviewed, disabling failing test.
2315
2316         * tests/WebFrameTest.cpp:
2317
2318 2013-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2319
2320         Unreviewed, rolling out r141479.
2321         http://trac.webkit.org/changeset/141479
2322         https://bugs.webkit.org/show_bug.cgi?id=108564
2323
2324         breaks chromium test (Requested by morrita on #webkit).
2325
2326         * public/WebViewClient.h:
2327         * src/EditorClientImpl.cpp:
2328         (WebKit::EditorClientImpl::respondToChangedSelection):
2329
2330 2013-01-31  Alec Flett  <alecflett@chromium.org>
2331
2332         IndexedDB: remove old transaction backend bootstrap code
2333         https://bugs.webkit.org/show_bug.cgi?id=103923
2334
2335         Reviewed by Dimitri Glazkov.
2336
2337         Remove all deprecated WebKit APIs from
2338         the IDB backend.
2339
2340         * WebKit.gyp:
2341         * public/WebIDBCallbacks.h:
2342         (WebKit):
2343         * public/WebIDBDatabase.h:
2344         (WebKit):
2345         * public/WebIDBTransaction.h: Removed.
2346         * public/WebIDBTransactionCallbacks.h: Removed.
2347         * src/AssertMatchingEnums.cpp:
2348         * src/IDBCallbacksProxy.cpp:
2349         * src/IDBDatabaseBackendProxy.cpp:
2350         * src/IDBDatabaseBackendProxy.h:
2351         (IDBDatabaseBackendProxy):
2352         * src/IDBTransactionBackendProxy.cpp: Removed.
2353         * src/IDBTransactionBackendProxy.h: Removed.
2354         * src/IDBTransactionCallbacksProxy.cpp: Removed.
2355         * src/IDBTransactionCallbacksProxy.h: Removed.
2356         * src/WebIDBCallbacksImpl.cpp:
2357         * src/WebIDBDatabaseImpl.cpp:
2358         (WebKit):
2359         * src/WebIDBDatabaseImpl.h:
2360         (WebKit):
2361         (WebIDBDatabaseImpl):
2362         * src/WebIDBTransactionCallbacksImpl.cpp: Removed.
2363         * src/WebIDBTransactionCallbacksImpl.h: Removed.
2364         * src/WebIDBTransactionImpl.cpp: Removed.
2365         * src/WebIDBTransactionImpl.h: Removed.
2366         * tests/IDBAbortOnCorruptTest.cpp:
2367         * tests/IDBDatabaseBackendTest.cpp:
2368
2369 2013-01-31  Rouslan Solomakhin  <rouslan@chromium.org>
2370
2371         [Chromium] Select multi-word misspelling on context click
2372         https://bugs.webkit.org/show_bug.cgi?id=108509
2373
2374         Reviewed by Tony Chang.
2375
2376         * src/ContextMenuClientImpl.cpp:
2377         (WebKit):
2378         (WebKit::selectMisspellingAsync): Added utility function to get the misspelling for asynchronous spellcheck.
2379         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): Select multi-word misspelling on context click.
2380
2381 2013-01-31  Florin Malita  <fmalita@chromium.org>
2382
2383         [Chromium] Unreviewed gardening.
2384
2385         WebViewTest.SetCompositionFromExistingText failing after r141479.
2386
2387         * tests/WebViewTest.cpp:
2388
2389 2013-01-31  Alexandre Elias  <aelias@chromium.org>
2390
2391         [chromium] Rework page scale factor limits initialization
2392         https://bugs.webkit.org/show_bug.cgi?id=108446
2393
2394         Reviewed by James Robinson.
2395
2396         When loading a page with viewportEnabled, both the limits
2397         specified by the viewport tag and the content width need to be
2398         considered before we initialize the minimum page scale (and
2399         pageScaleFactor itself usually to the same value). The timing has
2400         proven tricky to get correct.
2401
2402         This patch simplifies the flow by computing the
2403         limits only at the end of layouts and at no other time. In combination
2404         with https://bugs.webkit.org/show_bug.cgi?id=107922 which sets
2405         needsLayout() appropriately, this results in a more robust and easy
2406         to understand sequence.
2407
2408         Fixes FixedLayoutInitializeAtMinimumPageScale test.
2409
2410         * src/ChromeClientImpl.cpp:
2411         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
2412         * src/WebViewImpl.cpp:
2413         (WebKit::WebViewImpl::WebViewImpl):
2414         (WebKit::WebViewImpl::resize):
2415         (WebKit::WebViewImpl::setPageScaleFactorLimits):
2416         (WebKit::WebViewImpl::computePageScaleFactorLimits):
2417         (WebKit::WebViewImpl::layoutUpdated):
2418         (WebKit::WebViewImpl::didChangeContentsSize):
2419         * src/WebViewImpl.h:
2420         (WebKit::WebViewImpl::setInitialPageScaleFactor):
2421         (WebViewImpl):
2422         * tests/WebFrameTest.cpp:
2423
2424 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
2425
2426         Editor::m_compositionNode not updated on HTMLInputElement::setValue()
2427         https://bugs.webkit.org/show_bug.cgi?id=107737
2428
2429         Reviewed by Ryosuke Niwa.
2430
2431         * public/WebViewClient.h:
2432         (WebKit::WebViewClient::didCancelCompositionOnSelectionChange):
2433             Adding a callback to let the WebViewClient know that the composition has been cancelled.
2434         * src/EditorClientImpl.cpp:
2435         (WebKit::EditorClientImpl::respondToChangedSelection):
2436             Adding a call composition if it is no longer valid.
2437
2438 2013-01-31  Mark Pilgrim  <pilgrim@chromium.org>
2439
2440         [Chromium] Move LocalizedStrings to WebCore
2441         https://bugs.webkit.org/show_bug.cgi?id=108488
2442
2443         Reviewed by Adam Barth.
2444
2445         Part of a larger refactoring series; see tracking bug 106829.
2446
2447         * WebKit.gyp:
2448         * src/LocalizedStrings.cpp: Removed.
2449
2450 2013-01-31  Enrica Casucci  <enrica@apple.com>
2451
2452         WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
2453         https://bugs.webkit.org/show_bug.cgi?id=108396.
2454         <rdar://problem/12920461>
2455
2456         Reviewed by Alexey Proskuryakov.
2457
2458         Adds stub implementation for WebKit of the new EditorClient methods.
2459
2460         * src/EditorClientImpl.cpp:
2461         (WebKit::EditorClientImpl::willWriteSelectionToPasteboard):
2462         (WebKit::EditorClientImpl::getClientPasteboardDataForRange):
2463         * src/EditorClientImpl.h:
2464
2465 2013-01-31  Chris Hopman  <cjhopman@chromium.org>
2466
2467         [chromium] Make selection handling work in applyPageScaleInCompositor mode
2468         https://bugs.webkit.org/show_bug.cgi?id=107831
2469
2470         Reviewed by Ryosuke Niwa.
2471
2472         These functions expect a window point. When in
2473         applyPageScaleFactorInCompositor mode, the points need to be unscaled
2474         by the page scale factor.
2475
2476         * src/WebFrameImpl.cpp:
2477         (WebKit::WebFrameImpl::selectRange):
2478         (WebKit::WebFrameImpl::moveCaretSelectionTowardsWindowPoint):
2479
2480 2013-01-31  Tom Sepez  <tsepez@chromium.org>
2481
2482         [v8] Enable binding integrity on mac
2483         https://bugs.webkit.org/show_bug.cgi?id=108500
2484
2485         Reviewed by Adam Barth.
2486
2487         Patch is correct if existing tests pass without new crashes.
2488         
2489         * features.gypi:
2490         Set ENABLE_BINDING_INTEGRITY=1 when OS=="mac"
2491
2492 2013-01-31  Dan Alcantara  <dfalcantara@chromium.org>
2493
2494         WebFrameTest.DisambiguationPopup is failing
2495         https://bugs.webkit.org/show_bug.cgi?id=108160
2496
2497         Reviewed by Adam Barth.
2498
2499         Fix the unit test so that it is using the right HTML file.
2500
2501         * tests/WebFrameTest.cpp:
2502
2503 2013-01-31  Tony Chang  <tony@chromium.org>
2504
2505         [Chromium] webkit_unit_tests should depend on base/allocator for ASAN
2506         https://bugs.webkit.org/show_bug.cgi?id=108497
2507
2508         Reviewed by James Robinson.
2509
2510         * WebKitUnitTests.gyp:
2511
2512 2013-01-31  Alexandre Elias  <aelias@chromium.org>
2513
2514         Call FrameView::contentsResized() when setting fixed layout size
2515         https://bugs.webkit.org/show_bug.cgi?id=107922
2516
2517         Reviewed by James Robinson.
2518
2519         In fixed layout mode, we should be calling contentsResized() when the
2520         fixed layout size is changed, but not laying out when the visible
2521         content rect changes.
2522
2523         Previously landed as r140869 but was reverted due to a bug in bundled
2524         Chromium-specific code. This patch includes just the minimum needed in
2525         WebCore.
2526
2527         New WebFrameTest: FrameViewNeedsLayoutOnFixedLayoutResize.  Some
2528         flaky and obsolete tests for the old page scale mode are also deleted.
2529
2530         * tests/WebFrameTest.cpp:
2531
2532 2013-01-31  Tommy Widenflycht  <tommyw@google.com>
2533
2534         [chromium] MediaStream API: Rename WebMediaStreamDescriptor and WebMediaStreamComponent to WebMediaStream and WebMediaStreamTrack
2535         https://bugs.webkit.org/show_bug.cgi?id=108458
2536
2537         Reviewed by Adam Barth.
2538
2539         Only renames, no other code changes.
2540
2541         * public/WebMediaStreamRegistry.h:
2542         (WebKit):
2543         (WebMediaStreamRegistry):
2544         * public/WebUserMediaRequest.h:
2545         (WebKit):
2546         (WebUserMediaRequest):
2547         * src/WebMediaStreamRegistry.cpp:
2548         (WebKit::WebMediaStreamRegistry::lookupMediaStreamDescriptor):
2549         * src/WebUserMediaRequest.cpp:
2550         (WebKit::WebUserMediaRequest::requestSucceeded):
2551
2552 2013-01-31  Alec Flett  <alecflett@chromium.org>
2553
2554         IndexedDB: Remove WebKit API for old onSuccess/onUpgradeNeeded
2555         https://bugs.webkit.org/show_bug.cgi?id=108399
2556
2557         Reviewed by Dimitri Glazkov.
2558
2559         Cleanup now that chromium proxies the new signatures through.
2560
2561         * src/IDBCallbacksProxy.cpp:
2562         (WebKit::IDBCallbacksProxy::onSuccess):
2563         (WebKit::IDBCallbacksProxy::onUpgradeNeeded):
2564         * src/IDBCallbacksProxy.h:
2565         (IDBCallbacksProxy):
2566         * src/WebIDBCallbacksImpl.cpp:
2567         * src/WebIDBCallbacksImpl.h:
2568         (WebIDBCallbacksImpl):
2569
2570 2013-01-31  James Robinson  <jamesr@chromium.org>
2571
2572         [chromium] Remove dead transitional code from WebViewImpl
2573         https://bugs.webkit.org/show_bug.cgi?id=107889
2574
2575         Reviewed by Adam Barth.
2576
2577         The chromium side of this landed at r178256 and seems stable.
2578
2579         * public/WebWidget.h:
2580         (WebKit::WebWidget::setCompositorSurfaceReady):
2581         * src/WebViewImpl.cpp:
2582         (WebKit::WebViewImpl::WebViewImpl):
2583         (WebKit::WebViewImpl::~WebViewImpl):
2584         (WebKit):
2585         (WebKit::WebViewImpl::setIsTransparent):
2586         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2587         * src/WebViewImpl.h:
2588         * tests/ScrollingCoordinatorChromiumTest.cpp:
2589         (WebKit::FakeWebViewClient::initializeLayerTreeView):
2590         (FakeWebViewClient):
2591         (WebKit::FakeWebViewClient::layerTreeView):
2592         (WebKit::ScrollingCoordinatorChromiumTest::ScrollingCoordinatorChromiumTest):
2593         (ScrollingCoordinatorChromiumTest):
2594
2595 2013-01-31  Kentaro Hara  <haraken@chromium.org>
2596
2597         Rename WheelEvent::Granularity to WheelEvent::DeltaMode
2598         https://bugs.webkit.org/show_bug.cgi?id=108434
2599
2600         Reviewed by Ryosuke Niwa.
2601
2602         Per the spec, WheelEvent::Granularity should be renamed to WheelEvent::DeltaMode.
2603
2604         Spec: http://www.w3.org/TR/DOM-Level-3-Events/#events-WheelEvent
2605         https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm#constructor-wheelevent
2606
2607         No tests. No change in behavior.
2608
2609         * src/WebInputEventConversion.cpp:
2610         (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
2611         (WebKit::WebMouseWheelEventBuilder::WebMouseWheelEventBuilder):
2612
2613 2013-01-31  Yury Semikhatsky  <yurys@chromium.org>
2614
2615         Unreviewed. Bump Chromium dependency to 179332
2616
2617         * DEPS:
2618
2619 2013-01-31  Mark Pilgrim  <pilgrim@chromium.org>
2620
2621         [Chromium] Move MediaPlayerPrivateChromium to WebCore
2622         https://bugs.webkit.org/show_bug.cgi?id=108415
2623
2624         Reviewed by Adam Barth.
2625
2626         Part of a larger refactoring series; see tracking bug 106829.
2627
2628         * WebKit.gyp:
2629         * src/MediaPlayerPrivateChromium.cpp: Removed.
2630         * src/WebKit.cpp:
2631         (WebKit::initializeWithoutV8): call new setter function in
2632         WebCore::MediaPlayerPrivate
2633
2634 2013-01-30  Sheriff Bot  <webkit.review.bot@gmail.com>
2635
2636         Unreviewed, rolling out r141358.
2637         http://trac.webkit.org/changeset/141358
2638         https://bugs.webkit.org/show_bug.cgi?id=108421
2639
2640         breaks android builder (Requested by morrita on #webkit).
2641
2642         * WebKit.gyp:
2643         * features.gypi:
2644         * src/WebFrameImpl.cpp:
2645
2646 2013-01-30  Nico Weber  <thakis@chromium.org>
2647
2648         [chromium] Build webkit with enable_web_intents set to 0.
2649         https://bugs.webkit.org/show_bug.cgi?id=108408
2650
2651         Reviewed by Kentaro Hara.
2652
2653         I'll then make chromium build fine with that, then switch
2654         enable_web_intents to 0, roll that into webkit, and then
2655         actually remove the code hidden behind this flag.
2656
2657         * WebKit.gyp:
2658         * features.gypi:
2659         * src/WebFrameImpl.cpp:
2660
2661 2013-01-30  Levi Weintraub  <leviw@chromium.org>
2662
2663         [Chromium] WebPluginContainerImpl adding imbalanced touch handler refs
2664         https://bugs.webkit.org/show_bug.cgi?id=108381
2665
2666         Reviewed by James Robinson.
2667
2668         WebPluginContainerImpl would call Document::didAddTouchEventHandler every time the plugin requested
2669         touch events. Some plugins make this request more than once, leading to an imbalance in Document's
2670         touch event handler map, and a stale node pointer when the plugin is destroyed. This change
2671         has WebPluginContainerImpl only add one ref for the plugin at a time.
2672
2673         * src/WebPluginContainerImpl.cpp:
2674         (WebKit::WebPluginContainerImpl::requestTouchEventType):
2675
2676 2013-01-30  Yusuf Ozuysal  <yusufo@google.com>
2677
2678         Start sending scrollType as NonBubblingGesture for flings
2679         https://bugs.webkit.org/show_bug.cgi?id=108372
2680
2681         Reviewed by James Robinson.
2682
2683         * src/WebCompositorInputHandlerImpl.cpp:
2684         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
2685
2686 2013-01-30  Tien-Ren Chen  <trchen@chromium.org>
2687
2688         [chromium] Add WebFrame::visibleContentRect()
2689         https://bugs.webkit.org/show_bug.cgi?id=108311
2690
2691         Reviewed by James Robinson.
2692
2693         * public/WebFrame.h:
2694         * src/WebFrameImpl.cpp:
2695         (WebKit::WebFrameImpl::visibleContentRect):
2696         (WebKit):
2697         * src/WebFrameImpl.h:
2698         (WebFrameImpl):
2699
2700 2013-01-30  Kentaro Hara  <haraken@chromium.org>
2701
2702         Implement KeyboardEvent constructor
2703         https://bugs.webkit.org/show_bug.cgi?id=108320
2704
2705         Reviewed by Adam Barth.
2706
2707         Renamed keyboard event constant variables to avoid style errors.
2708
2709         * src/WebInputEventConversion.cpp:
2710         (WebKit::WebKeyboardEventBuilder::WebKeyboardEventBuilder):
2711         * tests/WebInputEventConversionTest.cpp:
2712         * tests/WebInputEventFactoryTestGtk.cpp:
2713
2714 2013-01-30  Kentaro Hara  <haraken@chromium.org>
2715
2716         Implement WheelEvent constructor
2717         https://bugs.webkit.org/show_bug.cgi?id=108303
2718
2719         Reviewed by Adam Barth.
2720
2721         This patch just renames an enum value to avoid style check error.
2722
2723         * src/WebViewImpl.cpp:
2724         (WebKit::WebViewImpl::scrollBy):
2725
2726 2013-01-30  Dana Jansens  <danakj@chromium.org>
2727
2728         [chromium] Add recordRenderingStats to WebSettings
2729         https://bugs.webkit.org/show_bug.cgi?id=108358
2730
2731         Reviewed by James Robinson.
2732
2733         * public/WebSettings.h:
2734         * src/WebSettingsImpl.cpp:
2735         (WebKit::WebSettingsImpl::setRecordRenderingStats):
2736         (WebKit):
2737         * src/WebSettingsImpl.h:
2738         (WebSettingsImpl):
2739         (WebKit::WebSettingsImpl::recordRenderingStats):
2740         * src/WebViewImpl.cpp:
2741         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2742
2743 2013-01-30  Tony Gentilcore  <tonyg@chromium.org>
2744
2745         Fix compile error in WebFrameTest
2746         https://bugs.webkit.org/show_bug.cgi?id=108360
2747
2748         Unreviewed build fix.
2749
2750         Fixes compile error:
2751         ../../Source/WebKit/chromium/tests/WebFrameTest.cpp:330:5: error: converting false to pointer type for argument 1 of char testing::internal::IsNullLiteralHelper(testing::internal::Secret*) [-Werror=conversion-null]
2752
2753         * tests/WebFrameTest.cpp:
2754
2755 2013-01-30  John Knottenbelt  <jknotten@chromium.org>
2756
2757         [Chromium] Fix find in page rects for overflowing content.
2758         https://bugs.webkit.org/show_bug.cgi?id=104924
2759
2760         Reviewed by Julien Chaffraix.
2761
2762         If a div has overflowing content, we should only normalise its
2763         coordinates against the renderview or the containing scrollable block.
2764
2765         TEST=WebFrameTest.FindInPageMatchRects
2766
2767         * src/FindInPageCoordinates.cpp:
2768         (WebKit::enclosingScrollableAncestor):
2769             Helper function to find the enclosing containing block with an overflow clip.
2770         (WebKit::toNormalizedRect):
2771             Pass in the container as an argument.
2772         (WebKit::findInPageRectFromAbsoluteRect):
2773             Compute the container for toNormalizedRect using enclosingScrollableAncestor.
2774         * tests/WebFrameTest.cpp:
2775             Add expectations for new tests in WebFrameTest::FindInPageMatchRects and WebFrameTest::FindInPage.
2776         * tests/data/find.html:
2777             Add test case for <select> element.
2778         * tests/data/find_in_page_frame.html:
2779             Add test cases:
2780               - Result 15, 16 tests that containing <div> with style float:left and
2781                 height:0px does not impact coordinate normalization.
2782               - Result 17, 18 tests that matches with absolute positioning are normalized containing
2783                 relative positioned block, even if there is a closer parent block with overflow clip.
2784               - Result 19 adds a test case for <select> element.
2785
2786 2013-01-30  Dominik Röttsches  <dominik.rottsches@intel.com>
2787
2788         [HarfBuzz] Remove the HarfBuzz-old code
2789         https://bugs.webkit.org/show_bug.cgi?id=108077
2790
2791         Reviewed by Benjamin Poulain.
2792
2793         Rename WTF_USE_HARFBUZZ_NG to WTF_USE_HARFBUZZ since there
2794         won't be a distinction between ng and non-ng HarfBuzz after
2795         removing the old code.
2796
2797         * features.gypi:
2798
2799 2013-01-30  Jochen Eisinger  <jochen@chromium.org>
2800
2801         [chromium] WebConsoleMessage is missing LevelDebug (chromium bug 172416)
2802         https://bugs.webkit.org/show_bug.cgi?id=108004
2803         http://code.google.com/p/chromium/issues/detail?id=172416
2804
2805         console.debug triggers a NOTREACHED() assertation in Chromium. This
2806         is because WebCore::MessageLevel contains 5 levels, including debug,
2807         where WebConsoleMessage::Level is missing a "debug" level. Add a
2808         WebConsoleMessage::LevelDebug so that it can get passed up to the
2809         renderer even if it doesn't make use of that now.
2810
2811         Requires another patch to chromium itself to fix chromium bug 172416
2812         but this is a prerequisite.
2813
2814         Also add an enum compile time check to AssertMatchingEnums.cpp,
2815
2816         Patch by Kevin Day <kevinday@gmail.com> on 2013-01-28
2817         Reviewed by Jochen Eisinger.
2818
2819         * public/WebConsoleMessage.h:
2820         * src/AssertMatchingEnums.cpp:
2821         * src/WebFrameImpl.cpp:
2822         (WebKit::WebFrameImpl::addMessageToConsole):
2823
2824 2013-01-30  Xianzhu Wang  <wangxianzhu@chromium.org>
2825
2826         [Chromium] Correct zoom for focused node when using compositor scaling
2827         https://bugs.webkit.org/show_bug.cgi?id=107599
2828
2829         Reviewed by Adam Barth.
2830
2831         When applyDeviceScaleFactorInCompositor, targetScale should exclude device scale factor.
2832         When applyPageScaleFactorInCompositor, caret size and content sizes are in css pixels and they should be in the viewport of the new scale.
2833
2834         Reapply r141153. Added font-size in html to ensure same caret size across platforms.
2835
2836         * src/WebViewImpl.cpp:
2837         (WebKit::WebViewImpl::scrollFocusedNodeIntoRect):
2838         (WebKit):
2839         (WebKit::WebViewImpl::computeScaleAndScrollForFocusedNode): Extracted from scrollFocusedNodeIntoRect() to ease testing.
2840         * src/WebViewImpl.h:
2841         (WebViewImpl):
2842         * tests/WebFrameTest.cpp: Updated test DivScrollEditableTest
2843         * tests/data/get_scale_for_zoom_into_editable_test.html: Moved the logic of onload script (which seems not to work) into WebFrameTest.cpp.
2844
2845 2013-01-29  Mark Lam  <mark.lam@apple.com>
2846
2847         Rename AbstractDatabase to DatabaseBackend.
2848         https://bugs.webkit.org/show_bug.cgi?id=108275.
2849
2850         Reviewed by Sam Weinig.
2851
2852         This is a pure rename operation as part of the webdatabase refactoring
2853         effort. There is no semantic change in this patch.
2854
2855         * public/WebDatabase.h:
2856         (WebDatabase):
2857         * src/DatabaseObserver.cpp:
2858         (WebCore::DatabaseObserver::databaseOpened):
2859         (WebCore::DatabaseObserver::databaseModified):
2860         (WebCore::DatabaseObserver::databaseClosed):
2861         (WebCore::DatabaseObserver::reportOpenDatabaseResult):
2862         (WebCore::DatabaseObserver::reportChangeVersionResult):
2863         (WebCore::DatabaseObserver::reportStartTransactionResult):
2864         (WebCore::DatabaseObserver::reportCommitTransactionResult):
2865         (WebCore::DatabaseObserver::reportExecuteStatementResult):
2866         (WebCore::DatabaseObserver::reportVacuumDatabaseResult):
2867         * src/WebDatabase.cpp:
2868         (WebKit::WebDatabase::WebDatabase):
2869
2870 2013-01-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2871
2872         Unreviewed, rolling out r141153.
2873         http://trac.webkit.org/changeset/141153
2874         https://bugs.webkit.org/show_bug.cgi?id=108280
2875
2876         Caused WebFrameTest.DivScrollIntoEditableTest to fail on Mac.
2877         (Requested by keishi on #webkit).
2878
2879         * src/WebViewImpl.cpp:
2880         (WebKit::WebViewImpl::scrollFocusedNodeIntoRect):
2881         * src/WebViewImpl.h:
2882         (WebViewImpl):
2883         * tests/WebFrameTest.cpp:
2884         * tests/data/get_scale_for_zoom_into_editable_test.html:
2885
2886 2013-01-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2887
2888         Unreviewed, rolling out r140983.
2889         http://trac.webkit.org/changeset/140983
2890         https://bugs.webkit.org/show_bug.cgi?id=108277
2891
2892         Unfortunately, this API has one last client (Requested by
2893         abarth on #webkit).
2894
2895         * src/WebNotification.cpp:
2896         (WebKit::WebNotification::isHTML):
2897         (WebKit::WebNotification::url):
2898         (WebKit::WebNotification::iconURL):
2899         (WebKit::WebNotification::title):
2900         (WebKit::WebNotification::body):
2901
2902 2013-01-29  Shinya Kawanaka  <shinyak@chromium.org>
2903
2904         [Chromium] Cannot copy text when selecting readonly (or disabled) input elements
2905         https://bugs.webkit.org/show_bug.cgi?id=106287
2906
2907         Reviewed by Hajime Morita.
2908
2909         When an input element is disabled or readonly, its inner element is not editable. So its rootEditableElement
2910         does not exist. In WebViewImpl::caretOrSelectionRange, if rootEditableElement does not exist, it uses
2911         a document element. However, the inner element and document element have a different tree scope, selection range
2912         cannot be gotten correctly.
2913
2914         We should use ShadowRoot instead of document so that we can stay in the same tree scope.
2915
2916         * src/WebViewImpl.cpp:
2917         (WebKit::WebViewImpl::caretOrSelectionRange):
2918         * tests/WebViewTest.cpp:
2919         * tests/data/selection_disabled.html: Added.
2920         * tests/data/selection_readonly.html: Added.
2921
2922 2013-01-29  Tom Sepez  <tsepez@chromium.org>
2923
2924         [v8] Enable binding integrity on linux
2925         https://bugs.webkit.org/show_bug.cgi?id=108242
2926
2927         Reviewed by Adam Barth.
2928
2929         * features.gypi:
2930
2931 2013-01-29  Xianzhu Wang  <wangxianzhu@chromium.org>
2932
2933         [Chromium] Correct zoom for focused node when using compositor scaling
2934         https://bugs.webkit.org/show_bug.cgi?id=107599
2935
2936         Reviewed by Adam Barth.
2937
2938         When applyDeviceScaleFactorInCompositor, targetScale should exclude device scale factor.
2939         When applyPageScaleFactorInCompositor, caret size and content sizes are in css pixels and they should be in the viewport of the new scale.
2940
2941         * src/WebViewImpl.cpp:
2942         (WebKit::WebViewImpl::scrollFocusedNodeIntoRect):
2943         (WebKit):
2944         (WebKit::WebViewImpl::computeScaleAndScrollForFocusedNode): Extracted from scrollFocusedNodeIntoRect() to ease testing.
2945         * src/WebViewImpl.h:
2946         (WebViewImpl):
2947         * tests/WebFrameTest.cpp: Updated test DivScrollEditableTest
2948         * tests/data/get_scale_for_zoom_into_editable_test.html: Moved the logic of onload script (which seems not to work) into WebFrameTest.cpp.
2949
2950 2013-01-29  Alec Flett  <alecflett@chromium.org>
2951
2952         IndexedDB: Pass metadata in to IDBOpenDBRequest.onUpgradeNeeded/onSuccess
2953         https://bugs.webkit.org/show_bug.cgi?id=103920
2954
2955         Reviewed by Dimitri Glazkov.
2956
2957         Support the new IDBCallbacks::onSuccess and IDBCallbacks::onUpgradeNeeded
2958         while maintaining chromium compatibility by shimming in the old API
2959         in the WebKit side. Future code will clean this up so that it is just a
2960         pass-through as it was before.
2961
2962         * public/WebIDBCallbacks.h:
2963         (WebKit):
2964         (WebKit::WebIDBCallbacks::onSuccess): new method signature.
2965         (WebKit::WebIDBCallbacks::onUpgradeNeeded): new method signature.
2966         * src/IDBCallbacksProxy.cpp:
2967         (WebKit::IDBCallbacksProxy::onSuccess): call on new method signature proxies through old API.
2968         (WebKit):
2969         (WebKit::IDBCallbacksProxy::onUpgradeNeeded): call on new method signature proxies through old API.
2970         * src/IDBCallbacksProxy.h:
2971         (IDBCallbacksProxy):
2972         * src/WebIDBCallbacksImpl.cpp:
2973         (WebKit::WebIDBCallbacksImpl::onSuccess): call on old WebKit proxy signature calls new API.
2974         (WebKit):
2975         (WebKit::WebIDBCallbacksImpl::onUpgradeNeeded): call on old WebKit proxy signature calls new API.
2976         * src/WebIDBCallbacksImpl.h:
2977         (WebIDBCallbacksImpl):
2978         * tests/IDBAbortOnCorruptTest.cpp: new method signature.
2979         (WebCore::MockIDBCallbacks::onSuccess):
2980         * tests/IDBDatabaseBackendTest.cpp: new method signature.
2981
2982 2013-01-29  Alexandre Elias  <aelias@chromium.org>
2983
2984         [chromium] Fix contents size calculation for page scale initialization
2985         https://bugs.webkit.org/show_bug.cgi?id=108204
2986
2987         Reviewed by enne.
2988
2989         My previous patch http://webk.it/107424 had a few issues that are
2990         blocking WebKit roll.
2991
2992         - We still need the layout in resize() given that
2993         http://webk.it/107922 was reverted.
2994
2995         - I deleted code used only for the old page-scale mode in
2996         contentsSize(), but this needs to wait until WebKit roll since it's
2997         making bots fail in this short term.
2998
2999         * src/WebViewImpl.cpp:
3000         (WebKit::WebViewImpl::resize):
3001         (WebKit::WebViewImpl::contentsSize):
3002
3003 2013-01-29  Alpha Lam  <hclam@chromium.org>
3004
3005         [chromium] Unreviewed DEPS roll.
3006
3007         Roll Chromium DEPS to 179332.
3008
3009         * DEPS:
3010
3011 2013-01-29  Joshua Bell  <jsbell@chromium.org>
3012
3013         [Chromium] IndexedDB: Let callers specify reason (error) for aborting transaction
3014         https://bugs.webkit.org/show_bug.cgi?id=107851
3015
3016         Reviewed by Tony Chang.
3017
3018         Let Chromium call abort() on a transaction and specify a reason, specifically for
3019         QuotaExceededError.
3020
3021         * public/WebIDBDatabase.h:
3022         (WebKit::WebIDBDatabase::abort): New overload for abort() that takes an error.
3023         * public/WebIDBDatabaseError.h:
3024         (WebKit::WebIDBDatabaseError::WebIDBDatabaseError): Overloaded constructor/assign that takes error.
3025         * src/IDBDatabaseBackendProxy.cpp:
3026         (WebKit::IDBDatabaseBackendProxy::abort): New overload for abort() that takes an error.
3027         * src/IDBDatabaseBackendProxy.h:
3028         (IDBDatabaseBackendProxy): Ditto.
3029         * src/WebIDBDatabaseError.cpp: Implementation of overload ctor/assign.
3030         * src/WebIDBDatabaseImpl.cpp:
3031         (WebKit::WebIDBDatabaseImpl::abort): New overload for abort() that takes an error.
3032         * src/WebIDBDatabaseImpl.h: Ditto.
3033         * tests/IDBDatabaseBackendTest.cpp: Overload stubs for Mock class.
3034
3035 2013-01-29  Florin Malita  <fmalita@chromium.org>
3036
3037         [Chromium] Unreviewed gardening.
3038
3039         Disable WebFrameTest.pageScaleFactorShrinksViewport (pending investigation after r141053).
3040
3041         * tests/WebFrameTest.cpp:
3042
3043 2013-01-29  Keishi Hattori  <keishi@webkit.org>
3044
3045         [Chromium] Disabling WebFrameTest.DisambiguationPopupMobileSite because WebFrameTest is still failing after r141073.
3046
3047         Unreviewed. Gardening.
3048
3049         * tests/WebFrameTest.cpp:
3050
3051 2013-01-29  Sheriff Bot  <webkit.review.bot@gmail.com>
3052
3053         Unreviewed, rolling out r141064.
3054         http://trac.webkit.org/changeset/141064
3055         https://bugs.webkit.org/show_bug.cgi?id=108166
3056
3057         [Chromium] WebFrameTest.DivScrollIntoEditableTest is failing
3058         on WinXP. (Requested by keishi on #webkit).
3059
3060         * tests/WebFrameTest.cpp:
3061         * tests/data/get_scale_for_zoom_into_editable_test.html:
3062
3063 2013-01-29  Keishi Hattori  <keishi@webkit.org>
3064
3065         [Chromium] Disabling WebFrameTest.DisambiguationPopup because it is failing.
3066
3067         Unreviewed. Gardening.
3068
3069         * tests/WebFrameTest.cpp:
3070
3071 2013-01-28  Xianzhu Wang  <wangxianzhu@chromium.org>
3072
3073         Re-enable WebFrameTest.DivScrollIntoEditableTest
3074         https://bugs.webkit.org/show_bug.cgi?id=98558
3075
3076         Reviewed by Adam Barth.
3077
3078         * tests/WebFrameTest.cpp: Fixed several issues (onload script, the maximum scale factor, etc.) of WebFrameTest.DivScrollIntoEditableTest and enable it.
3079         * tests/data/get_scale_for_zoom_into_editable_test.html: Moved the logic of onload script (which seems not to work) into WebFrameTest.cpp.
3080
3081 2013-01-28  Tien-Ren Chen  <trchen@chromium.org>
3082
3083         Fix disambiguation popup for new-style page scale
3084         https://bugs.webkit.org/show_bug.cgi?id=107391
3085
3086         Reviewed by Adam Barth.
3087
3088         This patch corrects various coordinate conversion for disambiguation
3089         popup for the new-style page scale mode.
3090
3091         * src/WebViewImpl.cpp:
3092         (WebKit::WebViewImpl::handleGestureEvent):
3093         (WebKit::WebViewImpl::handleInputEvent):
3094         * tests/WebFrameTest.cpp:
3095         * tests/data/disambiguation_popup_page_scale.html: Added.
3096
3097 2013-01-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3098
3099         Unreviewed, rolling out r141049.
3100         http://trac.webkit.org/changeset/141049
3101         https://bugs.webkit.org/show_bug.cgi?id=108151
3102
3103         Caused some indexed tests to crash. (Requested by keishi on
3104         #webkit).
3105
3106         * public/WebIDBCallbacks.h:
3107         (WebKit):
3108         * src/IDBCallbacksProxy.cpp:
3109         (WebKit::IDBCallbacksProxy::onUpgradeNeeded):
3110         * src/IDBCallbacksProxy.h:
3111         (IDBCallbacksProxy):
3112         * src/WebIDBCallbacksImpl.cpp:
3113         (WebKit::WebIDBCallbacksImpl::onSuccess):
3114         (WebKit::WebIDBCallbacksImpl::onUpgradeNeeded):
3115         * src/WebIDBCallbacksImpl.h:
3116         (WebIDBCallbacksImpl):
3117         * tests/IDBAbortOnCorruptTest.cpp:
3118         (WebCore::MockIDBCallbacks::onSuccess):
3119         * tests/IDBDatabaseBackendTest.cpp:
3120
3121 2013-01-28  Raman Kumar  <ramankk@chromium.org>
3122
3123         Expose isRadioButton and isCheckbox API in chromium-webkit glue layer.
3124         https://bugs.webkit.org/show_bug.cgi?id=108031
3125
3126         Reviewed by Adam Barth.
3127
3128         In chromium, to know if an InputElement is radiobutton or a checkbox,
3129         we are checking for formControlType (a string comparision), which is
3130         very slow. Exposing these API to chromium will make them faster.
3131
3132         * public/WebInputElement.h:
3133         (WebInputElement):
3134         * src/WebInputElement.cpp:
3135         (WebKit::WebInputElement::isRadioButton):
3136         (WebKit):
3137         (WebKit::WebInputElement::isCheckbox):
3138
3139 2013-01-28  Alexandre Elias  <aelias@chromium.org>
3140
3141         Make page scale shrink FrameView in applyPageScaleInCompositor mode
3142         https://bugs.webkit.org/show_bug.cgi?id=107424
3143
3144         Reviewed by Levi Weintraub.
3145
3146         If applyPageScaleFactorInCompositor is enabled (Chromium-only setting),
3147         instead of the entire document expanding as the user pinch zooms, the
3148         viewport shrinks instead. This patch applies the pageScaleFactor to
3149         visibleContentRect to get this behavior, and simplifies Chromium's
3150         resize logic to stop hiding the true viewport size from WebCore.
3151
3152         I verified that the scaling makes sense for all the callers of
3153         visibleContentRect. The exceptions are clip-layer size,
3154         layout size in non-fixed-layout mode, and text autosizing, which need
3155         the original unscaled size. Therefore I added a new method
3156         unscaledVisibleContentSize() to ScrollView/FrameView.
3157
3158         This patch also modifies Page::setPageScaleFactor to perform no
3159         invalidates or layout when applyPageScaleFactorInCompositor is true,
3160         and also writes pageScaleFactor into HistoryItems instead of using
3161         frameScaleFactor.
3162
3163         Since all behavior changes are tied to applyPageScaleFactorInCompositor,
3164         this patch should be a no-op for non-Chromium ports.
3165
3166         * src/WebViewImpl.cpp:
3167         (WebKit::WebViewImpl::scaledSize): Returns the post page-scale size
3168         similar to what visibleContentRect() now returns, except that it may
3169         be at a different scale than the current one.
3170         (WebKit::WebViewImpl::size): Back to returning density-independent
3171         size without any tricks, not the "layoutSize()" fake viewport.
3172         (WebKit::WebViewImpl::resize):
3173         (WebKit::WebViewImpl::handleInputEvent): No need to apply
3174         implTransform anymore as WebKit knows the true scroll offset; just
3175         divide event coords by pageScaleFactor.
3176         (WebKit::WebViewImpl::clampOffsetAtScale): Make this method support
3177         applyPageScaleFactorInCompositor.  This is used to pre-clamp scroll
3178         offsets at a given viewport size.
3179         (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset): Make
3180         this method support applyPageScaleFactorInCompositor (don't scale
3181         scroll offsets as they are now scale-independent).
3182         (WebKit::WebViewImpl::setPageScaleFactor): Make this method always use
3183         clampOffsetAtScale instead of bypassing it, since it's now supported.
3184         Also notify the compositor to update its state.
3185         (WebKit::WebViewImpl::contentsSize): Convenience method, removed
3186         difference between scaled and unscaled.
3187         (WebKit::WebViewImpl::layoutSize): This method returned the "fake"
3188         size we used to give FrameView.  Now no longer used for much.
3189         (WebKit::WebViewImpl::computePageScaleFactorLimits):
3190         (WebKit::WebViewImpl::didChangeContentsSize): Remove unnecessary
3191         resize() now that we can give the true size to FrameView.
3192         (WebKit::WebViewImpl::updateLayerTreeViewport): Use layoutSize()
3193         directly now that FrameView no longer uses it.
3194         * src/WebViewImpl.h:
3195         (WebViewImpl):
3196         * tests/WebFrameTest.cpp:
3197
3198 2013-01-28  Alec Flett  <alecflett@chromium.org>
3199
3200         IndexedDB: Pass metadata in to IDBOpenDBRequest.onUpgradeNeeded/onSuccess
3201         https://bugs.webkit.org/show_bug.cgi?id=103920
3202
3203         Reviewed by Dimitri Glazkov.
3204
3205         Support the new IDBCallbacks::onSuccess and IDBCallbacks::onUpgradeNeeded
3206         while maintaining chromium compatibility by shimming in the old API
3207         in the WebKit side. Future code will clean this up so that it is just a
3208         pass-through as it was before.
3209
3210         * public/WebIDBCallbacks.h:
3211         (WebKit):
3212         (WebKit::WebIDBCallbacks::onSuccess): new method signature.
3213         (WebKit::WebIDBCallbacks::onUpgradeNeeded): new method signature.
3214         * src/IDBCallbacksProxy.cpp:
3215         (WebKit::IDBCallbacksProxy::onSuccess): call on new method signature proxies through old API.
3216         (WebKit):
3217         (WebKit::IDBCallbacksProxy::onUpgradeNeeded): call on new method signature proxies through old API.
3218         * src/IDBCallbacksProxy.h:
3219         (IDBCallbacksProxy):
3220         * src/WebIDBCallbacksImpl.cpp:
3221         (WebKit::WebIDBCallbacksImpl::onSuccess): call on old WebKit proxy signature calls new API.
3222         (WebKit):
3223         (WebKit::WebIDBCallbacksImpl::onUpgradeNeeded): call on old WebKit proxy signature calls new API.
3224         * src/WebIDBCallbacksImpl.h:
3225         (WebIDBCallbacksImpl):
3226         * tests/IDBAbortOnCorruptTest.cpp: new method signature.
3227         (WebCore::MockIDBCallbacks::onSuccess):
3228         * tests/IDBDatabaseBackendTest.cpp: new method signature.
3229
3230 2013-01-28  Tom Sepez  <tsepez@chromium.org>
3231
3232         [v8] Security feature: JavaScript Bindings hardening
3233         https://bugs.webkit.org/show_bug.cgi?id=106608
3234
3235         Reviewed by Adam Barth.
3236
3237         * features.gypi:
3238         Added ENABLE_BINDING_INTEGRITY option.
3239
3240 2013-01-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3241
3242         Unreviewed, rolling out r141006.
3243         http://trac.webkit.org/changeset/141006
3244         https://bugs.webkit.org/show_bug.cgi?id=108123
3245
3246         Broke chromium build (Requested by arv on #webkit).
3247
3248         * public/WebConsoleMessage.h:
3249         * src/AssertMatchingEnums.cpp:
3250         * src/WebFrameImpl.cpp:
3251         (WebKit::WebFrameImpl::addMessageToConsole):
3252
3253 2013-01-28  Min Qin  <qinmin@chromium.org>
3254
3255         adding support for DiscardablePixelRef for caching lazily decoded images
3256         https://bugs.webkit.org/show_bug.cgi?id=106842
3257
3258         Reviewed by Stephen White.
3259
3260         Adding new tests for ImageDecodingStore
3261
3262         * WebKit.gypi:
3263         * tests/ImageDecodingStoreTest.cpp:
3264         (WebCore::ImageDecodingStoreTest::createCompleteImage):
3265         (WebCore::ImageDecodingStoreTest::createIncompleteImage):
3266         (WebCore::TEST_F):
3267         (WebCore):
3268         * tests/MockDiscardablePixelRef.h: Added.
3269         (WebCore):
3270         (MockDiscardablePixelRef):
3271         (WebCore::MockDiscardablePixelRef::MockDiscardablePixelRef):
3272         (WebCore::MockDiscardablePixelRef::~MockDiscardablePixelRef):
3273         (WebCore::MockDiscardablePixelRef::discard):
3274         (WebCore::MockDiscardablePixelRef::onLockPixels):
3275         (WebCore::MockDiscardablePixelRef::onUnlockPixels):
3276
3277 2013-01-28  Stephen Chenney  <schenney@chromium.org>
3278
3279         [Chromium] Fix the build.
3280
3281         Unreviewed build fix.
3282
3283         * src/AssertMatchingEnums.cpp: Move the include to the right place and remove the bad directory prefix.
3284
3285 2013-01-28  Dan Alcantara  <dfalcantara@chromium.org>
3286
3287         [Chromium, Mobile] Do not show disambiguation pop up in mobile sites
3288         https://bugs.webkit.org/show_bug.cgi?id=107607
3289
3290         Reviewed by Adam Barth.
3291
3292         Add a check before showing the disambiguation popup to prevent it from appearing
3293         on mobile sites.  Makes a similar test to the current disambiguation popup test
3294         that expects the popup to never appear.
3295
3296         * src/WebViewImpl.cpp:
3297         (WebKit::WebViewImpl::handleGestureEvent):
3298         (WebKit):
3299         (WebKit::WebViewImpl::isLikelyMobileSite):
3300         * src/WebViewImpl.h:
3301         (WebViewImpl):
3302         * tests/WebFrameTest.cpp:
3303         * tests/data/disambiguation_popup_mobile_site.html: Added.
3304
3305         * src/WebViewImpl.cpp:
3306         (WebKit::WebViewImpl::handleGestureEvent):
3307         (WebKit):
3308         (WebKit::WebViewImpl::shouldDisableDesktopWorkarounds):
3309         * src/WebViewImpl.h:
3310         (WebViewImpl):
3311         * tests/WebFrameTest.cpp:
3312         * tests/data/disambiguation_popup_mobile_site.html: Added.
3313
3314 2013-01-28  Stephen Chenney  <schenney@chromium.org>
3315
3316         [Chromium] Fix the build.
3317
3318         Unreviewed build fix.
3319
3320         * src/AssertMatchingEnums.cpp: Move the include to the right place and remove the bad directory prefix.
3321
3322 2013-01-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3323
3324         Unreviewed, rolling out r140869.
3325         http://trac.webkit.org/changeset/140869
3326         https://bugs.webkit.org/show_bug.cgi?id=108120
3327
3328         "Crashes on http://en.wikipedia.org/wiki/Wikipedia" (Requested
3329         by tonyg-cr on #webkit).
3330
3331         * src/WebViewImpl.cpp:
3332         (WebKit::WebViewImpl::resize):
3333         (WebKit::WebViewImpl::computePageScaleFactorLimits):
3334         * tests/WebFrameTest.cpp:
3335
3336 2013-01-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3337
3338         Unreviewed, rolling out r140934, r140935, and r140937.
3339         http://trac.webkit.org/changeset/140934
3340         http://trac.webkit.org/changeset/140935
3341         http://trac.webkit.org/changeset/140937
3342         https://bugs.webkit.org/show_bug.cgi?id=108117
3343
3344         Re-land some speculative rollouts - see wkbug.com/108048 for
3345         context (Requested by jsbell on #webkit).
3346
3347         * public/WebIDBCallbacks.h:
3348         (WebIDBCallbacks):
3349         * src/AssertMatchingEnums.cpp:
3350         * src/IDBCallbacksProxy.cpp:
3351         * src/IDBCallbacksProxy.h:
3352         (IDBCallbacksProxy):
3353         * src/WebIDBCallbacksImpl.cpp:
3354         * src/WebIDBCallbacksImpl.h:
3355         (WebIDBCallbacksImpl):
3356         * tests/IDBAbortOnCorruptTest.cpp:
3357         * tests/IDBDatabaseBackendTest.cpp:
3358
3359 2013-01-28  Kevin Day  <kevinday@gmail.com>
3360
3361         [chromium] WebConsoleMessage is missing LevelDebug (chromium bug 172416)
3362         https://bugs.webkit.org/show_bug.cgi?id=108004
3363         http://code.google.com/p/chromium/issues/detail?id=172416
3364
3365         console.debug triggers a NOTREACHED() assertation in Chromium. This
3366         is because WebCore::MessageLevel contains 5 levels, including debug,
3367         where WebConsoleMessage::Level is missing a "debug" level. Add a
3368         WebConsoleMessage::LevelDebug so that it can get passed up to the
3369         renderer even if it doesn't make use of that now.
3370
3371         Requires another patch to chromium itself to fix chromium bug 172416
3372         but this is a prerequisite.
3373
3374         Also add an enum compile time check to AssertMatchingEnums.cpp,
3375
3376         Reviewed by Jochen Eisinger.
3377
3378         * public/WebConsoleMessage.h:
3379         * src/AssertMatchingEnums.cpp:
3380         * src/WebFrameImpl.cpp:
3381         (WebKit::WebFrameImpl::addMessageToConsole):
3382
3383 2013-01-28  Xianzhu Wang  <wangxianzhu@chromium.org>
3384
3385         [Chromium] Correct auto-zoom when using compositor scaling
3386         https://bugs.webkit.org/show_bug.cgi?id=107592
3387
3388         Reviewed by Adam Barth.
3389
3390         1. The scale of auto-zoom should exclude deviceScaleFactor because the compositor will handle the scaling;
3391         2. Scroll location needs to be calculated differently when pageScaleFactor is handled by the compositor.
3392
3393         * src/WebViewImpl.cpp:
3394         (WebKit::WebViewImpl::computeScaleAndScrollForHitRect):
3395         * tests/WebFrameTest.cpp: Updated tests DivAutoZoomParamsTest, DivAutoZoomMultipleDivsTest, DivAutoZoomScaleBoundsTest and DivAutoZoomScaleFontScaleFactorTest, to make two versions of them (WebKitScaling and CompositorScaling).
3396
3397 2013-01-28  Laszlo Gombos  <l.gombos@samsung.com>
3398
3399         Collapse OS(UNIX)||OS(ANDROID) to OS(UNIX)
3400         https://bugs.webkit.org/show_bug.cgi?id=108091
3401
3402         Reviewed by Adam Barth.
3403
3404         OS(UNIX) is defined when OS(ANDROID) is defined.
3405
3406         * src/WebViewImpl.cpp:
3407         (WebKit::WebViewImpl::handleMouseDown):
3408
3409 2013-01-28  Adam Barth  <abarth@webkit.org>
3410
3411         Remove webkitNotifications.createHTMLNotification
3412         https://bugs.webkit.org/show_bug.cgi?id=107598
3413
3414         Reviewed by Benjamin Poulain.
3415
3416         We can remove these stubs once we've removed the Chromium-side code
3417         that depends on them.
3418
3419         * src/WebNotification.cpp:
3420         (WebKit::WebNotification::isHTML):
3421         (WebKit::WebNotification::url):
3422         (WebKit::WebNotification::iconURL):
3423         (WebKit::WebNotification::title):
3424         (WebKit::WebNotification::body):
3425
3426 2013-01-28  James Craig  <james@cookiecrook.com>
3427
3428         HTML5 promotes DL from specific 'definition list' to superset 'description list'; accessibility strings and accessors should be updated to match.
3429         https://bugs.webkit.org/show_bug.cgi?id=107650
3430
3431         Reviewed by Chris Fleizach.
3432
3433         Updating accessibility strings and accessors for DL/DT/DD; new one for [role="definition"] (previously it reused the role/desc for DD).
3434
3435         * public/WebAccessibilityRole.h:
3436         * src/AssertMatchingEnums.cpp:
3437         * src/LocalizedStrings.cpp:
3438         (WebCore::AXDefinitionText):
3439         (WebCore):
3440         (WebCore::AXDescriptionListTermText):
3441         (WebCore::AXDescriptionListDetailText):
3442
3443 2013-01-28  Mike West  <mkwst@chromium.org>
3444
3445         [chromium] Unreviewed build fix, missing include in AssertMatchingEnums.cpp
3446         https://bugs.webkit.org/show_bug.cgi?id=108086
3447
3448         Disabling SVG exposed a missing include in AssertMatchingEnums. This
3449         patch adds it in.
3450
3451         * src/AssertMatchingEnums.cpp:
3452             Include 'ResourceLoadPriority.h'.
3453
3454 2013-01-28  Marja Hölttä  <marja@chromium.org>
3455
3456         Add an API for retrieving native memory information without going through the remote inspecting protocol
3457         https://bugs.webkit.org/show_bug.cgi?id=107651
3458
3459         Reviewed by Adam Barth.
3460
3461         * WebKit.gyp:
3462         * public/WebDevToolsAgent.h:
3463         (WebKit):
3464         (WebDevToolsAgent):
3465         * public/WebMemoryUsageInfo.h: Added.
3466         (WebKit):
3467         (WebKit::WebMemoryUsageInfo::WebMemoryUsageInfo):
3468         (WebMemoryUsageInfo):
3469         * src/WebDevToolsAgentImpl.cpp:
3470         (WebKit::WebDevToolsAgentImpl::processMemoryDistribution):
3471         (WebKit):
3472         * src/WebDevToolsAgentImpl.h:
3473         (WebKit):
3474         (WebDevToolsAgentImpl):
3475
3476 2013-01-27  Sheriff Bot  <webkit.review.bot@gmail.com>
3477
3478         Unreviewed, rolling out r140602.
3479         http://trac.webkit.org/changeset/140602
3480         https://bugs.webkit.org/show_bug.cgi?id=108045
3481
3482         Caused 8 indexed tests to crash. (Requested by keishi on
3483         #webkit).
3484
3485         * public/WebIDBCallbacks.h:
3486         * src/IDBCallbacksProxy.cpp:
3487         (WebKit::IDBCallbacksProxy::onBlocked):
3488         (WebKit):
3489         * src/IDBCallbacksProxy.h:
3490         (IDBCallbacksProxy):
3491         * src/WebIDBCallbacksImpl.cpp:
3492         (WebKit::WebIDBCallbacksImpl::onBlocked):
3493         (WebKit):
3494         * src/WebIDBCallbacksImpl.h:
3495         (WebIDBCallbacksImpl):
3496         * tests/IDBAbortOnCorruptTest.cpp:
3497         (WebCore::MockIDBCallbacks::onBlocked):
3498         * tests/IDBDatabaseBackendTest.cpp:
3499
3500 2013-01-27  Keishi Hattori  <keishi@webkit.org>
3501
3502         Unreviewed, rolling out r140850.
3503         http://trac.webkit.org/changeset/140850
3504         https://bugs.webkit.org/show_bug.cgi?id=107960
3505
3506         r14602 caused 8 indexed tests to crash.
3507
3508         * src/AssertMatchingEnums.cpp:
3509
3510 2013-01-27  Jochen Eisinger  <jochen@chromium.org>
3511
3512         [chromium] add missing plumbing for Notification.requestPermission
3513         https://bugs.webkit.org/show_bug.cgi?id=108012
3514
3515         Reviewed by Adam Barth.
3516
3517         * src/NotificationPresenterImpl.cpp:
3518         (WebKit):
3519         (WebKit::VoidCallbackClient::VoidCallbackClient):
3520         (NotificationPermissionCallbackClient):
3521         (WebKit::NotificationPermissionCallbackClient::NotificationPermissionCallbackClient):
3522         (WebKit::NotificationPermissionCallbackClient::permissionRequestComplete):
3523         (WebKit::NotificationPermissionCallbackClient::~NotificationPermissionCallbackClient):
3524         (WebKit::NotificationPresenterImpl::requestPermission):
3525         * src/NotificationPresenterImpl.h:
3526         (NotificationPresenterImpl):
3527
3528 2013-01-26  James Simonsen  <simonjam@chromium.org>
3529
3530         [chromium] Export ResourceRequest's priority through WebURLRequest
3531         https://bugs.webkit.org/show_bug.cgi?id=107985
3532
3533         Reviewed by Adam Barth.
3534
3535         * src/AssertMatchingEnums.cpp:
3536
3537 2013-01-25  Alexandre Elias  <aelias@chromium.org>
3538
3539         Call FrameView::contentsResized() when setting fixed layout size
3540         https://bugs.webkit.org/show_bug.cgi?id=107922
3541
3542         Reviewed by James Robinson.
3543
3544         In fixed layout mode, we should be calling contentsResized() when the
3545         fixed layout size is changed; on the other hand, we don't need to layout
3546         when the visible contents size changes.
3547
3548         This fixes test WebFrameTest::FixedLayoutInitializeAtMinimumPageScale.
3549
3550         * src/WebViewImpl.cpp:
3551         (WebKit::WebViewImpl::resize):
3552         (WebKit::WebViewImpl::computePageScaleFactorLimits):
3553         * tests/WebFrameTest.cpp:
3554
3555 2013-01-25  Alec Flett  <alecflett@chromium.org>
3556
3557         IndexedDB: Move TaskType enum to IDBDatabaseBackendInterface
3558         https://bugs.webkit.org/show_bug.cgi?id=107960
3559
3560         Reviewed by Tony Chang.
3561
3562         Update asserts to reflect new enum location.
3563
3564         * src/AssertMatchingEnums.cpp:
3565
3566 2013-01-25  Sheriff Bot  <webkit.review.bot@gmail.com>
3567
3568         Unreviewed, rolling out r140774.
3569         http://trac.webkit.org/changeset/140774
3570         https://bugs.webkit.org/show_bug.cgi?id=107932
3571
3572          Tests ScrollingCoordinatorChromiumTest.fastScrollingByDefault
3573         and fastScrollingForFixedPosition are failing (Requested by
3574         keishi on #webkit).
3575
3576         * public/WebWidget.h:
3577         (WebWidget):
3578         (WebKit::WebWidget::isInputThrottled):
3579         (WebKit::WebWidget::renderingStats):
3580         * src/WebViewImpl.cpp:
3581         (WebKit::WebViewImpl::WebViewImpl):
3582         (WebKit::WebViewImpl::~WebViewImpl):
3583         (WebKit::WebViewImpl::renderingStats):
3584         (WebKit):
3585         (WebKit::WebViewImpl::setCompositorSurfaceReady):
3586         (WebKit::WebViewImpl::isInputThrottled):
3587         (WebKit::WebViewImpl::setIsTransparent):
3588         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3589         * src/WebViewImpl.h:
3590
3591 2013-01-25  Eberhard Graether  <egraether@google.com>
3592
3593         Web Inspector: add checkbox for continuous painting to the inspector's settings
3594         https://bugs.webkit.org/show_bug.cgi?id=107352
3595
3596         Reviewed by Pavel Feldman.
3597
3598         This change adds a checkbox to activate continuous painting to the WebInspector's
3599         rendering settings and plumbs the setting to Chromium's WebLayerTreeView. The
3600         setting is visible if InspectorClient::canContinuouslyPaint() returns true.
3601
3602         * public/WebView.h:
3603         (WebView):
3604         * src/InspectorClientImpl.cpp:
3605         (WebKit::InspectorClientImpl::canContinuouslyPaint):
3606         (WebKit):
3607         (WebKit::InspectorClientImpl::setContinuousPaintingEnabled):
3608         * src/InspectorClientImpl.h:
3609         (InspectorClientImpl):
3610         * src/WebViewImpl.cpp:
3611         (WebKit::WebViewImpl::setContinuousPaintingEnabled):
3612         (WebKit):
3613         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3614         * src/WebViewImpl.h:
3615
3616 2013-01-24  Keishi Hattori  <keishi@webkit.org>
3617
3618         Adjust design of the Calendar Picker
3619         https://bugs.webkit.org/show_bug.cgi?id=107507
3620
3621         Reviewed by Kent Tamura.
3622
3623         * src/DateTimeChooserImpl.cpp:
3624         (WebKit::DateTimeChooserImpl::writeDocument):  Include pickerCommonChromium.css and calendarPickerChromium.css.
3625
3626 2013-01-24  James Robinson  <jamesr@chromium.org>
3627
3628         [chromium] Remove dead transitional code from WebViewImpl
3629         https://bugs.webkit.org/show_bug.cgi?id=107889
3630
3631         Reviewed by Adrienne Walker.
3632
3633         The chromium side of this landed at r178256 and seems stable.
3634
3635         * public/WebWidget.h:
3636         (WebKit::WebWidget::setCompositorSurfaceReady):
3637         * src/WebViewImpl.cpp:
3638         (WebKit::WebViewImpl::WebViewImpl):
3639         (WebKit::WebViewImpl::~WebViewImpl):
3640         (WebKit):
3641         (WebKit::WebViewImpl::setIsTransparent):
3642         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3643         * src/WebViewImpl.h:
3644
3645 2013-01-24  James Robinson  <jamesr@chromium.org>
3646
3647         [chromium] Null check WebLayerTreeView before dereffing in WebViewImpl::invalidateRect
3648         https://bugs.webkit.org/show_bug.cgi?id=107855
3649
3650         Reviewed by Adrienne Walker.
3651
3652         During frame shutdown, WebViewImpl::m_layerTreeView may become 0 while commits are deferred but we still
3653         may get invalidateRect() calls before shutdown completes.
3654
3655         * src/WebViewImpl.cpp:
3656         (WebKit::WebViewImpl::invalidateRect):
3657
3658 2013-01-24  Mihai Maerean  <mmaerean@adobe.com>
3659
3660         [CSSRegions] remove setExperimentalCSSRegionsEnabled deprecated API in Source/WebKit/chromium/public/WebSettings.h
3661         https://bugs.webkit.org/show_bug.cgi?id=104564
3662
3663         Reviewed by Adam Barth.
3664
3665         Fixing bug 101192 has deprecated the use of setExperimentalCSSRegionsEnabled.
3666         After http://code.google.com/p/chromium/issues/detail?id=164162 , setExperimentalCSSRegionsEnabled is no longer used anywhere.
3667
3668         * public/WebSettings.h:
3669         removed setExperimentalCSSRegionsEnabled.
3670
3671 2013-01-23  Sheriff Bot  <webkit.review.bot@gmail.com>
3672
3673         Unreviewed.  Rolled Chromium DEPS to r178434.  Requested by
3674         "Yoshifumi Inoue" <yosin@chromium.org> via sheriffbot.
3675
3676         * DEPS:
3677
3678 2013-01-23  Mark Pilgrim  <pilgrim@chromium.org>
3679
3680         [Chromium] Remove unused header files in chromium/public/platform/
3681         https://bugs.webkit.org/show_bug.cgi?id=107741
3682
3683         Reviewed by James Robinson.
3684
3685         These header files have migrated to the new Platform directory.
3686         This patch updates the remaining #include references and removes
3687         the old files that did nothing but redirect to the new ones.
3688
3689         * WebKit.gyp:
3690         * public/WebAccessibilityObject.h:
3691         * public/WebAccessibilityRole.h:
3692         * public/WebActiveWheelFlingParameters.h:
3693         * public/WebAnimationController.h:
3694         * public/WebApplicationCacheHost.h:
3695         * public/WebApplicationCacheHostClient.h:
3696         * public/WebArrayBuffer.h:
3697         * public/WebArrayBufferView.h:
3698         * public/WebAudioSourceProvider.h:
3699         * public/WebBatteryStatus.h:
3700         * public/WebBindings.h:
3701         * public/WebBlob.h:
3702         * public/WebCache.h:
3703         * public/WebCachedURLRequest.h:
3704         * public/WebColorChooser.h:
3705         * public/WebColorChooserClient.h:
3706         * public/WebColorName.h:
3707         * public/WebCommonWorkerClient.h:
3708         * public/WebCompositionUnderline.h:
3709         * public/WebCompositorInputHandler.h:
3710         * public/WebConsoleMessage.h:
3711         * public/WebContentDetectionResult.h:
3712         * public/WebContextMenuData.h:
3713         * public/WebCrossOriginPreflightResultCache.h:
3714         * public/WebCursorInfo.h:
3715         * public/WebDOMEvent.h:
3716         * public/WebDOMEventListener.h:
3717         * public/WebDOMStringList.h:
3718         * public/WebDataSource.h:
3719         * public/WebDatabase.h:
3720         * public/WebDateTimeChooserCompletion.h:
3721         * public/WebDateTimeChooserParams.h:
3722         * public/WebDeliveredIntentClient.h:
3723         * public/WebDevToolsAgent.h:
3724         * public/WebDevToolsAgentClient.h:
3725         * public/WebDevToolsFrontend.h:
3726         * public/WebDeviceOrientationClient.h:
3727         * public/WebDeviceOrientationClientMock.h:
3728         * public/WebDeviceOrientationController.h:
3729         * public/WebDocument.h:
3730         * public/WebDraggableRegion.h:
3731         * public/WebExternalPopupMenuClient.h:
3732         * public/WebFileChooserCompletion.h:
3733         * public/WebFileChooserParams.h:
3734         * public/WebFileSystemCallbacks.h:
3735         * public/WebFileSystemEntry.h:
3736         * public/WebFileWriter.h:
3737         * public/WebFileWriterClient.h:
3738         * public/WebFindOptions.h:
3739         * public/WebFont.h:
3740         * public/WebFontCache.h:
3741         * public/WebFontDescription.h:
3742         * public/WebFormControlElement.h:
3743         * public/WebFormElement.h:
3744         * public/WebFrame.h:
3745         * public/WebFrameClient.h:
3746         * public/WebGeolocationClientMock.h:
3747         * public/WebGeolocationController.h:
3748         * public/WebGeolocationError.h:
3749         * public/WebGeolocationPermissionRequest.h:
3750         * public/WebGeolocationPermissionRequestManager.h:
3751         * public/WebGeolocationPosition.h:
3752         * public/WebGlyphCache.h:
3753         * public/WebHelperPlugin.h:
3754         * public/WebHistoryItem.h:
3755         * public/WebHitTestResult.h:
3756         * public/WebIDBCallbacks.h:
3757         * public/WebIDBCursor.h:
3758         * public/WebIDBDatabase.h:
3759         * public/WebIDBDatabaseCallbacks.h:
3760         * public/WebIDBDatabaseError.h:
3761         * public/WebIDBFactory.h:
3762         * public/WebIDBKey.h:
3763         * public/WebIDBKeyPath.h:
3764         * public/WebIDBKeyRange.h:
3765         * public/WebIDBMetadata.h:
3766         * public/WebIDBTransaction.h:
3767         * public/WebIDBTransactionCallbacks.h:
3768         * public/WebIconURL.h:
3769         * public/WebImageDecoder.h:
3770         * public/WebInputEvent.h:
3771         * public/WebIntent.h:
3772         * public/WebIntentRequest.h:
3773         * public/WebIntentServiceInfo.h:
3774         * public/WebKit.h:
3775         * public/WebMediaPlayer.h:
3776         * public/WebMediaStreamRegistry.h:
3777         * public/WebMenuItemInfo.h:
3778         * public/WebNetworkStateNotifier.h:
3779         * public/WebNode.h:
3780         * public/WebNodeCollection.h:
3781         * public/WebNodeList.h:
3782         * public/WebNotification.h:
3783         * public/WebNotificationPresenter.h:
3784         * public/WebOptionElement.h:
3785         * public/WebPageOverlay.h:
3786         * public/WebPagePopup.h:
3787         * public/WebPageSerializer.h:
3788         * public/WebPasswordFormData.h:
3789         * public/WebPerformance.h:
3790         * public/WebPlugin.h:
3791         * public/WebPluginContainer.h:
3792         * public/WebPluginParams.h:
3793         * public/WebPopupMenu.h:
3794         * public/WebPopupMenuInfo.h:
3795         * public/WebPrerendererClient.h:
3796         * public/WebPrintParams.h:
3797         * public/WebRange.h:
3798         * public/WebRegularExpression.h:
3799         * public/WebRuntimeFeatures.h:
3800         * public/WebScopedMicrotaskSuppression.h:
3801         * public/WebScopedUserGesture.h:
3802         * public/WebScriptController.h:
3803         * public/WebScriptSource.h:
3804         * public/WebSearchableFormData.h:
3805         * public/WebSecurityOrigin.h:
3806         * public/WebSecurityPolicy.h:
3807         * public/WebSelectElement.h:
3808         * public/WebSerializedScriptValue.h:
3809         * public/WebSettings.h:
3810         * public/WebSharedWorker.h:
3811         * public/WebSharedWorkerRepository.h:
3812         * public/WebSocket.h:
3813         * public/WebSocketClient.h:
3814         * public/WebSpeechGrammar.h:
3815         * public/WebSpeechInputController.h:
3816         * public/WebSpeechInputResult.h:
3817         * public/WebSpeechRecognitionHandle.h:
3818         * public/WebSpeechRecognitionParams.h:
3819         * public/WebSpeechRecognitionResult.h:
3820         * public/WebSpeechRecognizer.h:
3821         * public/WebSpeechRecognizerClient.h:
3822         * public/WebSpellCheckClient.h:
3823         * public/WebStorageEventDispatcher.h:
3824         * public/WebSurroundingText.h:
3825         * public/WebTestingSupport.h:
3826         * public/WebTextCheckingCompletion.h:
3827         * public/WebTextCheckingResult.h:
3828         * public/WebTextFieldDecoratorClient.h:
3829         * public/WebTextInputInfo.h:
3830         * public/WebTextRun.h:
3831         * public/WebTimeRange.h:
3832         * public/WebTouchPoint.h:
3833         * public/WebUserMediaRequest.h:
3834         * public/WebView.h:
3835         * public/WebViewBenchmarkSupport.h:
3836         * public/WebViewClient.h:
3837         * public/WebWidget.h:
3838         * public/WebWidgetClient.h:
3839         * public/WebWindowFeatures.h:
3840         * public/WebWorkerInfo.h:
3841         * public/android/WebInputEventFactory.h:
3842         * public/android/WebSandboxSupport.h:
3843         * public/default/WebRenderTheme.h:
3844         * public/gtk/WebInputEventFactory.h:
3845         * public/linux/WebFontRendering.h:
3846         * public/linux/WebSandboxSupport.h:
3847         * public/mac/WebInputEventFactory.h:
3848         * public/mac/WebSandboxSupport.h:
3849         * public/mac/WebScreenInfoFactory.h:
3850         * public/mac/WebSubstringUtil.h:
3851         * public/platform/WebAudioBus.h: Removed.
3852         * public/platform/WebAudioDevice.h: Removed.
3853         * public/platform/WebBlobData.h: Removed.
3854         * public/platform/WebBlobRegistry.h: Removed.
3855         * public/platform/WebCString.h: Removed.
3856         * public/platform/WebCanvas.h: Removed.
3857         * public/platform/WebClipboard.h: Removed.
3858         * public/platform/WebColor.h: Removed.
3859         * public/platform/WebCommon.h: Removed.
3860         * public/platform/WebCookie.h: Removed.
3861         * public/platform/WebCookieJar.h: Removed.
3862         * public/platform/WebData.h: Removed.
3863         * public/platform/WebDragData.h: Removed.
3864         * public/platform/WebFileSystem.h: Removed.
3865         * public/platform/WebFloatPoint.h: Removed.
3866         * public/platform/WebFloatQuad.h: Removed.
3867         * public/platform/WebFloatRect.h: Removed.
3868         * public/platform/WebGamepad.h: Removed.
3869         * public/platform/WebGamepads.h: Removed.
3870         * public/platform/WebGraphicsContext3D.h: Removed.
3871         * public/platform/WebHTTPBody.h: Removed.
3872         * public/platform/WebHTTPHeaderVisitor.h: Removed.
3873         * public/platform/WebHTTPLoadInfo.h: Removed.
3874         * public/platform/WebImage.h: Removed.
3875         * public/platform/WebLocalizedString.h: Removed.
3876         * public/platform/WebMediaStreamCenter.h: Removed.
3877         * public/platform/WebMediaStreamCenterClient.h: Removed.
3878         * public/platform/WebMediaStreamComponent.h: Removed.
3879         * public/platform/WebMediaStreamDescriptor.h: Removed.
3880         * public/platform/WebMediaStreamSource.h: Removed.
3881         * public/platform/WebMediaStreamSourcesRequest.h: Removed.
3882         * public/platform/WebNonCopyable.h: Removed.
3883         * public/platform/WebPoint.h: Removed.
3884         * public/platform/WebPrivateOwnPtr.h: Removed.
3885         * public/platform/WebPrivatePtr.h: Removed.
3886         * public/platform/WebRect.h: Removed.
3887         * public/platform/WebReferrerPolicy.h: Removed.
3888         * public/platform/WebSize.h: Removed.
3889         * public/platform/WebSocketStreamError.h: Removed.
3890         * public/platform/WebSocketStreamHandle.h: Removed.
3891         * public/platform/WebSocketStreamHandleClient.h: Removed.
3892         * public/platform/WebString.h: Removed.
3893         * public/platform/WebThread.h: Removed.
3894         * public/platform/WebThreadSafeData.h: Removed.
3895         * public/platform/WebURL.h: Removed.
3896         * public/platform/WebURLError.h: Removed.
3897         * public/platform/WebURLLoadTiming.h: Removed.
3898         * public/platform/WebURLLoader.h: Removed.
3899         * public/platform/WebURLLoaderClient.h: Removed.
3900         * public/platform/WebURLRequest.h: Removed.
3901         * public/platform/WebURLResponse.h: Removed.
3902         * public/platform/WebVector.h: Removed.
3903         * public/platform/android/WebSandboxSupport.h: Removed.
3904         * public/platform/android/WebThemeEngine.h: Removed.
3905         * public/platform/default/WebThemeEngine.h: Removed.
3906         * public/platform/linux/WebFontFamily.h: Removed.
3907         * public/platform/linux/WebSandboxSupport.h: Removed.
3908         * public/platform/mac/WebSandboxSupport.h: Removed.
3909         * public/platform/mac/WebThemeEngine.h: Removed.
3910         * public/platform/win/WebSandboxSupport.h: Removed.
3911         * public/platform/win/WebThemeEngine.h: Removed.
3912         * public/win/WebInputEventFactory.h:
3913         * public/win/WebSandboxSupport.h:
3914         * public/win/WebScreenInfoFactory.h:
3915         * public/x11/WebScreenInfoFactory.h:
3916
3917 2013-01-23  Joshua Bell  <jsbell@chromium.org>
3918
3919         IndexedDB: Remove IDBVersionChangeRequest
3920         https://bugs.webkit.org/show_bug.cgi?id=107711
3921
3922         Reviewed by Tony Chang.
3923
3924         * public/WebIDBCallbacks.h: Note to delete onBlocked() once Chromium is cleaned up.
3925         * src/IDBCallbacksProxy.cpp: Remove unused onBlocked() overload.
3926         * src/IDBCallbacksProxy.h: Ditto.
3927         * src/WebIDBCallbacksImpl.cpp: Ditto.
3928         * src/WebIDBCallbacksImpl.h: Ditto.
3929         * tests/IDBAbortOnCorruptTest.cpp: Ditto.
3930         * tests/IDBDatabaseBackendTest.cpp: Ditto.
3931
3932 2013-01-23  Tien-Ren Chen  <trchen@chromium.org>
3933
3934         Partially revert 104427, change WebWidgetClient::didHandleGestureEvent semantics.
3935         https://bugs.webkit.org/show_bug.cgi?id=107605
3936
3937         Reviewed by Darin Fisher.
3938
3939         Per discussion in https://codereview.chromium.org/11473027/ we decided
3940         not to introduce an enum to WebWidgetClient::didHandleGestureEvent().
3941         Instead, change the semantics of the bool flag to indicate whether the
3942         gesture event is cancelled for disambiguation.
3943
3944         * public/WebWidgetClient.h:
3945         (WebKit::WebWidgetClient::didHandleGestureEvent):
3946         * src/WebViewImpl.cpp:
3947         (WebKit::WebViewImpl::handleGestureEvent):
3948         * tests/WebViewTest.cpp:
3949
3950 2013-01-23  Mark Pilgrim  <pilgrim@chromium.org>
3951
3952         [Chromium] Remove WebArrayBufferView and WebSerializedScriptValue from chromium/public/platform/
3953         https://bugs.webkit.org/show_bug.cgi?id=107720
3954
3955         Reviewed by Darin Fisher.
3956
3957         These headers have been moved to chromium/public/ and all
3958         references downstream were changed in
3959         https://codereview.chromium.org/11946050/.
3960         No DEPS roll necessary because it's already above 177695.
3961
3962         * WebKit.gyp:
3963         * public/platform/WebArrayBufferView.h: Removed.
3964         * public/platform/WebSerializedScriptValue.h: Removed.
3965         * src/DeliveredIntentClientImpl.cpp:
3966         * src/IDBCallbacksProxy.cpp:
3967         * src/IDBCursorBackendProxy.cpp:
3968         * src/WebArrayBufferView.cpp:
3969         * src/WebBindings.cpp:
3970         * src/WebDOMCustomEvent.cpp:
3971         * src/WebDOMMessageEvent.cpp:
3972         * src/WebFrameImpl.cpp:
3973         * src/WebHistoryItem.cpp:
3974         * src/WebIDBCallbacksImpl.cpp:
3975         * src/WebIntent.cpp:
3976         * src/WebIntentRequest.cpp:
3977         * src/WebSerializedScriptValue.cpp:
3978
3979 2013-01-23  Mark Pilgrim  <pilgrim@chromium.org>
3980
3981         [Chromium] Fix some #includes to headers in chromium/public/platform/ that have been moved to the new Platform directory
3982         https://bugs.webkit.org/show_bug.cgi?id=107722
3983
3984         Reviewed by Darin Fisher.
3985
3986         These headers just redirect to the new versions, so call the new
3987         versions directly.
3988
3989         * src/linux/WebFontInfo.cpp:
3990         * src/mac/WebSubstringUtil.mm:
3991
3992 2013-01-23  Mark Pilgrim  <pilgrim@chromium.org>
3993
3994         [Chromium] Fix some #includes for WebSerializedScriptValue
3995         https://bugs.webkit.org/show_bug.cgi?id=107697
3996
3997         Reviewed by Adam Barth.
3998
3999         WebSerializedScriptValue has been moved to chromium/public/.
4000
4001         * public/WebDOMCustomEvent.h:
4002         * public/WebDOMMessageEvent.h:
4003         * public/WebIDBCursor.h:
4004
4005 2013-01-23  Dmitry Gozman  <dgozman@chromium.org>
4006
4007         Added changeAttachedWindowHeight method to inspector frontend API, which
4008         allows to change inspector window height from inside.
4009         https://bugs.webkit.org/show_bug.cgi?id=107648
4010
4011         Reviewed by Pavel Feldman.
4012
4013         * public/WebDevToolsFrontendClient.h:
4014         (WebKit::WebDevToolsFrontendClient::changeAttachedWindowHeight):
4015         * src/InspectorFrontendClientImpl.cpp:
4016         (WebKit::InspectorFrontendClientImpl::changeAttachedWindowHeight):
4017
4018 2013-01-23  Shinya Kawanaka  <shinyak@chromium.org>
4019
4020         shadowAncestorNode() should be renamed to deprecatedShadowAncestorNode()
4021         https://bugs.webkit.org/show_bug.cgi?id=107624
4022
4023         Reviewed by Dimitri Glazkov.
4024
4025         Since Node::shadowAncestorNode() is deprecated, we would like to rename it to prevent from further use.
4026
4027         * src/WebFrameImpl.cpp:
4028         (WebKit::WebFrameImpl::scopeStringMatches):
4029         (WebKit::WebFrameImpl::setFindEndstateFocusAndSelection):
4030
4031 2013-01-22  Pavel Feldman  <pfeldman@chromium.org>
4032
4033         Web Inspector: only allow evaluateForTestInFrontend for front-ends under test.
4034         https://bugs.webkit.org/show_bug.cgi?id=107523
4035
4036         Reviewed by Yury Semikhatsky.
4037
4038         * public/WebDevToolsFrontendClient.h:
4039         (WebKit::WebDevToolsFrontendClient::isUnderTest):
4040         (WebDevToolsFrontendClient):
4041         * src/InspectorFrontendClientImpl.cpp:
4042         (WebKit::InspectorFrontendClientImpl::isUnderTest):
4043         * src/InspectorFrontendClientImpl.h:
4044         (InspectorFrontendClientImpl):
4045
4046 2013-01-22  Mark Lam  <mark.lam@apple.com>
4047
4048         Change the Supplementable class to not use AtomicString.
4049         https://bugs.webkit.org/show_bug.cgi?id=107535.
4050
4051         Reviewed by Adam Barth.
4052
4053         Replaced the use of AtomicString keys with literal const char* keys.
4054         This simplifies the SupplementMap and makes it slightly leaner and faster.
4055
4056         * src/ContextFeaturesClientImpl.cpp:
4057         (ContextFeaturesCache):
4058         (WebKit::ContextFeaturesCache::supplementName):
4059
4060 2013-01-22  Leandro Gracia Gil  <leandrogracia@chromium.org>
4061
4062         [Chromium] Expose didCommitCompositorFrame in WebWidgetClient.
4063         https://bugs.webkit.org/show_bug.cgi?id=107325
4064
4065         Reviewed by James Robinson.
4066
4067         Add a notification on WebWidgetClient called when the compositor commits a frame.
4068
4069         * public/WebWidgetClient.h:
4070         (WebWidgetClient):
4071         (WebKit::WebWidgetClient::didCommitCompositorFrame):
4072         * src/WebViewImpl.cpp:
4073         (WebKit::WebViewImpl::didCommit):
4074
4075 2013-01-21  Kentaro Hara  <haraken@chromium.org>
4076
4077         Implement UIEvent constructor
4078         https://bugs.webkit.org/show_bug.cgi?id=107430
4079
4080         Reviewed by Adam Barth.
4081
4082         Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
4083
4084         UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
4085         which is enabled on Safari and Chromium for now.
4086
4087         * features.gypi:
4088
4089 2013-01-22  Alpha Lam  <hclam@chromium.org>
4090
4091         REGRESSION(r140392): InjectIDBKeyTest.TopLevelPropertyStringValue is crashing
4092         https://bugs.webkit.org/show_bug.cgi?id=107578
4093
4094         Unreviewed build fix. Disabled 2 tests that are crashing after r140392.
4095
4096         * tests/IDBBindingUtilitiesTest.cpp:
4097         (WebKit::TEST_F):
4098
4099 2013-01-22  Eric Seidel  <eric@webkit.org>
4100
4101         Turn on ENABLE_THREADED_HTML_PARSER for Chromium (it's still disabled at runtime)
4102         https://bugs.webkit.org/show_bug.cgi?id=107519
4103
4104         Reviewed by Adam Barth.
4105
4106         This makes our development lives easier, and makes it possible for the bots
4107         to run threaded-parser-only tests by toggling the runtime enable
4108         via window.internals.settings.
4109