IndexedDB: Introduce putWithIndexKeys and calculate them in the renderer
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-07-16  Alec Flett  <alecflett@chromium.org>
2
3         IndexedDB: Introduce putWithIndexKeys and calculate them in the renderer
4         https://bugs.webkit.org/show_bug.cgi?id=90923
5
6         Reviewed by Darin Fisher.
7
8         Stub out implementations of putWithIndexKeys(), already implemented
9         on the chromium side.
10
11         * public/WebIDBObjectStore.h:
12         (WebKit::WebIDBObjectStore::putWithIndexKeys):
13         * src/IDBObjectStoreBackendProxy.cpp:
14         (WebKit::IDBObjectStoreBackendProxy::putWithIndexKeys):
15         (WebKit):
16         * src/IDBObjectStoreBackendProxy.h:
17         (IDBObjectStoreBackendProxy):
18
19 2012-07-16  Adrienne Walker  <enne@google.com>
20
21         [chromium] Unify compositor quad transforms into content space
22         https://bugs.webkit.org/show_bug.cgi?id=91350
23
24         Reviewed by Kenneth Russell.
25
26         Update tests to add bounds/contentBounds properties to layers. This
27         exposed a bug in the quad culler tests where the draw transform was
28         incorrectly being set to the origin transform rather than being a
29         transform that operates on centered layer rects. Fixed this bug.
30
31         * tests/CCQuadCullerTest.cpp:
32         * tests/CCSolidColorLayerImplTest.cpp:
33         (CCLayerTestCommon::TEST):
34         * tests/CCTiledLayerImplTest.cpp:
35         (CCLayerTestCommon::createLayer):
36
37 2012-07-16  Dana Jansens  <danakj@chromium.org>
38
39         [chromium] Remove targetRenderSurface concept, give layers a renderTarget which is the layer whose coordinate space they draw into
40         https://bugs.webkit.org/show_bug.cgi?id=91288
41
42         Reviewed by Adrienne Walker.
43
44         * tests/CCDamageTrackerTest.cpp:
45         (WebKitTests::TEST_F):
46         * tests/CCLayerImplTest.cpp:
47         (WebCore::TEST):
48         * tests/CCLayerTreeHostCommonTest.cpp:
49         * tests/CCOcclusionTrackerTest.cpp:
50         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
51         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
52         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
53         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
54         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
55         (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest):
56         (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest):
57         (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest):
58         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
59         (WebKitTests::CCOcclusionTrackerTestTopmostSurfaceIsClippedToScissor::runMyTest):
60         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest):
61         * tests/CCQuadCullerTest.cpp:
62         * tests/CCTiledLayerTestCommon.cpp:
63         (WebKitTests::FakeTiledLayerChromium::setTexturePriorities):
64         * tests/LayerChromiumTest.cpp:
65
66 2012-07-16  Sami Kyostila  <skyostil@chromium.org>
67
68         [chromium] Only apply page scale delta to root scroll layer
69         https://bugs.webkit.org/show_bug.cgi?id=91374
70
71         Reviewed by Adrienne Walker.
72
73         New unit test
74         CCLayerTreeHostImplTest.pageScaleDeltaAppliedToRootScrollLayerOnly to verify
75         the transformation of child layer while pinch zooming.
76
77         * tests/CCLayerTreeHostImplTest.cpp:
78
79 2012-07-16  Kihong Kwon  <kihong.kwon@samsung.com>
80
81         Remove setController from BatteryClient
82         https://bugs.webkit.org/show_bug.cgi?id=90944
83
84         Reviewed by Adam Barth.
85
86         Remove virtual identifier from setController because setController is removed from WebCore::BatteryClient.
87         In addition, BatteryController is set to instance of BatteryClientImpl in the constructor of WebViewImpl.
88
89         * src/BatteryClientImpl.h:
90         (BatteryClientImpl):
91         * src/WebViewImpl.cpp:
92         (WebKit::WebViewImpl::WebViewImpl):
93
94 2012-07-16  Dana Jansens  <danakj@chromium.org>
95
96         [chromium] Incorrect assertion: Replicas will cause a RenderPass to be removed twice
97         https://bugs.webkit.org/show_bug.cgi?id=91328
98
99         Reviewed by Adrienne Walker.
100
101         Add replicas to the surfaces in the test.
102
103         * tests/CCLayerTreeHostTest.cpp:
104         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
105         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::beginTest):
106         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::afterTest):
107         (CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
108
109 2012-07-13  Eric Penner  <epenner@google.com>
110
111         [chromium] Add 'self-managed' option to CCPrioritizedTexture to enable render-surface and canvas use cases.
112         https://bugs.webkit.org/show_bug.cgi?id=91177
113
114         Reviewed by Adrienne Walker.
115
116         * tests/CCPrioritizedTextureTest.cpp:
117         (WTF::TEST_F):
118         * tests/TiledLayerChromiumTest.cpp:
119
120 2012-07-13  Brian Anderson  <brianderson@chromium.org>
121
122         Add flushes to CCTextureUpdater::update
123         https://bugs.webkit.org/show_bug.cgi?id=89035
124
125         Reviewed by Adrienne Walker.
126
127         CCTextureUpdaterTest added to verify texture upload/flushing patterns.
128
129         * WebKit.gypi:
130         * tests/CCTextureUpdaterTest.cpp: Added.
131
132 2012-07-13  David Grogan  <dgrogan@chromium.org>
133
134         IndexedDB: Re-enable indexeddb in test_shell
135         https://bugs.webkit.org/show_bug.cgi?id=91161
136
137         Reviewed by Tony Chang.
138
139         IDB used to be allowed to run if webView->permissionClient() was NULL,
140         as is the case in test_shell. This was inadvertently changed in
141         http://wkb.ug/90310.
142
143         We still don't have an automated test for this (http://crbug.com/113738)
144         Tested manually:
145
146         * In test_shell:
147         1) Open an IDB page
148         2) Verify IDB has permission to open a DB
149
150         * In chrome:
151         1) Open an IDB page
152         2) Verify IDB has permission to open a DB
153         3) Revoke IDB permissions in chrome://chrome/settings/content
154         4) Reload the IDB page
155         5) Verify IDB doesn't have permission to open a DB
156
157         * src/IDBFactoryBackendProxy.cpp:
158         (WebKit::IDBFactoryBackendProxy::allowIndexedDB):
159
160 2012-07-13  Wei James  <james.wei@intel.com>
161
162         enable TestWebKitAPI/webkit_unit_tests apk on x86 android platform by adding abi support
163         https://bugs.webkit.org/show_bug.cgi?id=91194
164
165         Reviewed by Adam Barth.
166
167         * WebKitUnitTests.gyp:
168
169 2012-07-13  Dana Jansens  <danakj@chromium.org>
170
171         webkit_unit_test CCLayerTreeHostImplTest.testRemoveRenderPasses started failing.
172         https://bugs.webkit.org/show_bug.cgi?id=91245
173
174         Reviewed by Adrienne Walker.
175
176         * tests/CCLayerTreeHostImplTest.cpp:
177
178 2012-07-13  Vsevolod Vlasov  <vsevik@chromium.org>
179
180         Unreviewed gardening: skip failing webkit unit test.
181
182         * tests/CCLayerTreeHostImplTest.cpp:
183
184 2012-07-13  Vsevolod Vlasov  <vsevik@chromium.org>
185
186         Unreviewed gardening, skip failing webkit_unit_tests.
187
188         * tests/DecimalTest.cpp:
189         (TEST_F):
190
191 2012-07-13  Kent Tamura  <tkent@chromium.org>
192
193         Make calendar pickers testable
194         https://bugs.webkit.org/show_bug.cgi?id=84827
195
196         Reviewed by Hajime Morita.
197
198         * src/ChromeClientImpl.cpp:
199         (WebKit::ChromeClientImpl::ChromeClientImpl):
200         Initialize m_pagePopupDriver with the WebViewImpl.
201         (WebKit::ChromeClientImpl::openPagePopup):
202         Just calls PagePoupDriver::openPagePopup().
203         (WebKit::ChromeClientImpl::closePagePopup):
204         Just calls PagePoupDriver::closePagePopup().
205         (WebKit::ChromeClientImpl::setPagePopupDriver):
206         * src/ChromeClientImpl.h:
207         (ChromeClientImpl): Add setPagePopupDriver
208         * src/WebViewImpl.h:
209         (WebViewImpl):
210         WebViewImpl implements PagePopupDriver. openPagePopup() and
211         closePagePopup() override members of PagePopupDriver.
212
213 2012-07-13  Yoshifumi Inoue  <yosin@chromium.org>
214
215         REGRESSION(r119948): [Forms] Spin button Up/Down actions make value to zero for input type "number" when step mismatched
216         https://bugs.webkit.org/show_bug.cgi?id=91197
217
218         Reviewed by Kent Tamura.
219
220         This patch adds test cases for Decimal::ceiling() and floor() of
221         positive/negative small fractional numbers.
222
223         * tests/DecimalTest.cpp:
224         (TEST_F):
225
226 2012-07-12  Adrienne Walker  <enne@google.com>
227
228         [chromium] Root invalidations for RTL pages need to be in the right space
229         https://bugs.webkit.org/show_bug.cgi?id=91155
230
231         Reviewed by Kenneth Russell.
232
233         The root layer has a translation on it when placed in the tree, so any
234         invalidations on this layer likewise need to be adjusted.
235
236         This adjustment is due to the fact that compositor layers all have the
237         origin in the upper left corner of the layer, but this is not always
238         the origin for graphics layers. Rather than making compositor layers
239         have to deal with a potential offset, we change the transform when
240         inserting the layer into the tree. Invalidations need to be similarly
241         transformed from document space into compositor layer space.
242
243         The need for this offset is due to the definition of the initial
244         containing block. RTL pages (pages with dir=RTL on the body) start
245         scrolled all the way to the right, and the origin is in the upper left
246         hand corner of this initial viewport. Thus on RTL pages with
247         horizontal overflow, the left of the document is in negative CSS
248         space.
249
250         * src/NonCompositedContentHost.cpp:
251         (WebKit::NonCompositedContentHost::invalidateRect):
252
253 2012-07-12  Dana Jansens  <danakj@chromium.org>
254
255         [chromium] Remove the RenderPass pointer from RenderPassDrawQuad
256         https://bugs.webkit.org/show_bug.cgi?id=91023
257
258         Reviewed by Adrienne Walker.
259
260         * tests/CCLayerTreeHostImplTest.cpp:
261
262 2012-07-12  Adam Barth  <abarth@webkit.org>
263
264         [Chromium] WebSettings should be sorted
265         https://bugs.webkit.org/show_bug.cgi?id=91157
266
267         Reviewed by Eric Seidel.
268
269         This might be my OCD, but IMHO this file would be cleaner if we listed
270         the settings in alphabetic order.
271
272         * public/WebSettings.h:
273         * src/WebSettingsImpl.h:
274         (WebSettingsImpl):
275         (WebKit::WebSettingsImpl::forceSoftwareCompositing):
276         (WebKit::WebSettingsImpl::viewportEnabled):
277         (WebKit::WebSettingsImpl::maxUntiledLayerSize):
278
279 2012-07-12  Joshua Bell  <jsbell@chromium.org>
280
281         IndexedDB: Enable IDBFactory.deleteDatabase() and webkitGetDatabaseNames() in Workers
282         https://bugs.webkit.org/show_bug.cgi?id=90310
283
284         Reviewed by Tony Chang.
285
286         * src/IDBFactoryBackendProxy.cpp:
287         (WebKit::IDBFactoryBackendProxy::allowIndexedDB): Consolidates user-prompting logic.
288         (WebKit::getWebFrame): Helper to dig out frame from Document, or null for Worker.
289         (WebKit::IDBFactoryBackendProxy::getDatabaseNames):
290         (WebKit):
291         (WebKit::IDBFactoryBackendProxy::open):
292         (WebKit::IDBFactoryBackendProxy::deleteDatabase):
293         * src/IDBFactoryBackendProxy.h: Update method signatures to match interface.
294         (WebCore):
295         (IDBFactoryBackendProxy):
296
297 2012-07-12  Dana Jansens  <danakj@chromium.org>
298
299         [chromium] The root layer should not try create a second RenderSurface for itself
300         https://bugs.webkit.org/show_bug.cgi?id=91124
301
302         Reviewed by Adrienne Walker.
303
304         * tests/CCLayerTreeHostImplTest.cpp:
305
306 2012-07-12  Eric Penner  <epenner@google.com>
307
308         [chromium] Use CCTexture/TextureAllocator and remove TextureManager
309         https://bugs.webkit.org/show_bug.cgi?id=91001
310
311         Reviewed by Adrienne Walker.
312
313         Deleting old texture manager tests.
314
315         * WebKit.gypi:
316         * tests/CCLayerTreeHostImplTest.cpp:
317         * tests/CCPrioritizedTextureTest.cpp:
318         (WTF::CCPrioritizedTextureTest::texturesMemorySize):
319         * tests/CCThreadedTest.cpp:
320         * tests/CCTiledLayerTestCommon.h:
321         * tests/Canvas2DLayerBridgeTest.cpp:
322         * tests/TextureManagerTest.cpp: Removed.
323
324 2012-07-12  Robert Sesek  <rsesek@chromium.org>
325
326         [chromium][Mac] r122400 broke 10.6 build
327         https://bugs.webkit.org/show_bug.cgi?id=91103
328
329         Reviewed by Tony Chang.
330
331         Use the right availability macros for forward-declaring methods and
332         defining constants.
333
334         * src/mac/WebInputEventFactory.mm:
335
336 2012-07-12  Tony Chang  <tony@chromium.org>
337
338         [chromium] Remove drag and drop API methods that are no longer used
339         https://bugs.webkit.org/show_bug.cgi?id=90996
340
341         Reviewed by Adam Barth.
342
343         In r117327, we added a parameter for modifier keys to these methods.
344         Chromium has since switched to using the methods that require the
345         extra parameter so we can remove these methods.
346
347         * public/WebView.h:
348         (WebView):
349         * src/WebViewImpl.cpp:
350         (WebKit::WebViewImpl::dragTargetDragEnter):
351         (WebKit::WebViewImpl::dragTargetDragOver):
352         * src/WebViewImpl.h:
353         (WebViewImpl):
354
355 2012-07-12  Tony Chang  <tony@chromium.org>
356
357         Unreviewed.  Rolled DEPS.
358
359         * DEPS:
360
361 2012-07-12  Adam Barth  <abarth@webkit.org>
362
363         [Chromium] Delete last mention of Hixie76 in WebKit/chromium
364         https://bugs.webkit.org/show_bug.cgi?id=91099
365
366         Reviewed by Tony Chang.
367
368         This deprecated API is no longer used anywhere.
369
370         * public/WebSettings.h:
371         (WebKit::WebSettings::setDefaultDeviceScaleFactor):
372
373 2012-07-12  Tony Chang  <tony@chromium.org>
374
375         Unreviewed, rolling out r122477.
376         http://trac.webkit.org/changeset/122477
377         https://bugs.webkit.org/show_bug.cgi?id=91103
378
379         Broke Chromium Mac build
380
381         * src/mac/WebInputEventFactory.mm:
382
383 2012-07-12  Robert Sesek  <rsesek@chromium.org>
384
385         [chromium][Mac] r122400 broke 10.6 build
386         https://bugs.webkit.org/show_bug.cgi?id=91103
387
388         Reviewed by Tony Chang.
389
390         Use the right availability macros for forward-declaring methods and
391         defining constants.
392
393         * src/mac/WebInputEventFactory.mm:
394
395 2012-07-12  Peter Beverloo  <peter@chromium.org>
396
397         [Chromium] Enable building APKs for TestWebKitAPI and webkit_unit_tests
398         https://bugs.webkit.org/show_bug.cgi?id=90989
399
400         Reviewed by Adam Barth.
401
402         Add dependencies on the webkit_unit_tests_apk and TestWebKitAPI_apk
403         targets for Android, making sure that we're generating the packages.
404
405         * All.gyp:
406
407 2012-07-12  Leandro Gracia Gil  <leandrogracia@chromium.org>
408
409         [Chromium] Remove unrequired API in WebSurroundingText.
410         https://bugs.webkit.org/show_bug.cgi?id=91067
411
412         Reviewed by Adam Barth.
413
414         Remove the unused first initialize method from WebSurroundingText.
415         Now both Chromium and LayoutTestController use the second method.
416
417         * public/WebSurroundingText.h:
418         (WebSurroundingText):
419         * src/WebSurroundingText.cpp:
420
421 2012-07-11  Mark Rowe  <mrowe@apple.com>
422
423         <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of system availability macros
424
425         This removal was handled by a script that translates the relevant macros in to the equivalent checks
426         using the system availability macros.
427
428         Reviewed by Filip Pizlo.
429
430         * src/mac/WebInputEventFactory.mm:
431
432 2012-07-11  Sheriff Bot  <webkit.review.bot@gmail.com>
433
434         Unreviewed.  Rolled DEPS.
435
436         * DEPS:
437
438 2012-07-11  Sheriff Bot  <webkit.review.bot@gmail.com>
439
440         Unreviewed, rolling out r122358.
441         http://trac.webkit.org/changeset/122358
442         https://bugs.webkit.org/show_bug.cgi?id=91037
443
444         Build break on WebKit Win (Requested by hayato on #webkit).
445
446         * public/WebView.h:
447         (WebView):
448         * src/WebViewImpl.cpp:
449         (WebKit::WebViewImpl::dragTargetDragEnter):
450         (WebKit):
451         (WebKit::WebViewImpl::dragTargetDragOver):
452         (WebKit::WebViewImpl::dragTargetDrop):
453         * src/WebViewImpl.h:
454         (WebViewImpl):
455
456 2012-07-11  Alexandre Elias  <aelias@google.com>
457
458         [chromium] Move compositor quads to Platform/chromium/public
459         https://bugs.webkit.org/show_bug.cgi?id=90582
460
461         Reviewed by Adrienne Walker.
462
463         This moves CCSharedQuadState, CCDrawQuad, and all but two CC*DrawQuad
464         classes to the WebKit namespace, as a first step to pushing them
465         across the process boundary for the ubercompositor.
466
467         - The intent is to serialize the class hierarchy using the same
468         mechanism as WebInputEvent.  In order to do this, there are three
469         requirements: pure POD data, a method returning size, and a packing
470         pragma.
471
472         - Private data members are fine with this kind of serializer, and a
473         default constructor is not needed.  Because of that, we can maintain
474         the same encapsulation and convenient APIs (behind
475         WEBKIT_IMPLEMENTATION) as the original classes.  To ease the
476         transition, the original WebCore headers still exist and typedef to
477         the new classes.
478
479         - However, SharedQuadState will be serialized using the normal
480         IPC_STRUCT_TRAITS macro, so I made its members public.  A custom
481         serializer (on quad lists) will maintain the pointers from quads to
482         SharedQuadStates.
483
484         - I converted the Material casting mechanism to materialCast() methods
485         living in the derived classes.  That way, the WebCompositorQuad header
486         doesn't need to know about all its derived classes.
487
488         - Quad classes not yet transitioned can still be used in
489         non-ubercompositor mode.  CCRenderPassDrawQuad and CCYUVVideoDrawQuad
490         are currently non-POD and I left them in their original files.
491
492         This approach is the best I've found so far, since it preserves all
493         WebCore-facing APIs and avoids unnecessary code duplication (new quad
494         types or members can be added by modifying only one place).  There
495         also should not be an unreasonable amount of custom serializer code
496         required.
497
498         * tests/CCLayerTestCommon.cpp:
499         (CCLayerTestCommon::verifyQuadsExactlyCoverRect):
500         * tests/CCSolidColorLayerImplTest.cpp:
501         (CCLayerTestCommon::TEST):
502
503 2012-07-11  Dana Jansens  <danakj@chromium.org>
504
505         [chromium] Rename layerRect to contentRect for rects that live in content space
506         https://bugs.webkit.org/show_bug.cgi?id=90843
507
508         Reviewed by Adrienne Walker.
509
510         * tests/CCLayerImplTest.cpp:
511         (WebCore::TEST):
512         * tests/CCLayerTreeHostCommonTest.cpp:
513         * tests/CCLayerTreeHostImplTest.cpp:
514         * tests/CCOcclusionTrackerTest.cpp:
515         (WebKitTests::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
516         (WebKitTests::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
517         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
518         * tests/CCQuadCullerTest.cpp:
519         * tests/CCRenderSurfaceTest.cpp:
520         * tests/CCSolidColorLayerImplTest.cpp:
521         (CCLayerTestCommon::TEST):
522         * tests/CCTiledLayerImplTest.cpp:
523         (CCLayerTestCommon::createLayer):
524         (CCLayerTestCommon::TEST):
525         (CCLayerTestCommon::getQuads):
526         (CCLayerTestCommon::coverageVisibleRectIntersectsTiles):
527         (CCLayerTestCommon::coverageVisibleRectIntersectsBounds):
528         * tests/CCTiledLayerTestCommon.cpp:
529         (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate):
530         (WebKitTests::FakeTiledLayerChromium::update):
531         * tests/CCTiledLayerTestCommon.h:
532         (FakeTiledLayerChromium):
533         * tests/LayerChromiumTest.cpp:
534         * tests/TiledLayerChromiumTest.cpp:
535
536 2012-07-11  Dana Jansens  <danakj@chromium.org>
537
538         [chromium] Minimum size used for occlusion tracking should be a setting on CCLayerTreeHost
539         https://bugs.webkit.org/show_bug.cgi?id=90993
540
541         Reviewed by Adrienne Walker.
542
543         * tests/CCLayerTreeHostImplTest.cpp:
544
545 2012-07-11  Adam Barth  <abarth@webkit.org>
546
547         [Chromium] Enable LEGACY_VIEWPORT_ADAPTION
548         https://bugs.webkit.org/show_bug.cgi?id=90991
549
550         Reviewed by Tony Chang.
551
552         Chromium wishes to support LEGACY_VIEWPORT_ADAPTION. I actually thought
553         this was enabled before, but the enable bit got lost in the shuffle.
554
555         * features.gypi:
556
557 2012-07-11  Tony Chang  <tony@chromium.org>
558
559         [chromium] Remove drag and drop API methods that are no longer used
560         https://bugs.webkit.org/show_bug.cgi?id=90996
561
562         Reviewed by Adam Barth.
563
564         In r117327, we added a parameter for modifier keys to these methods.
565         Chromium has since switched to using the methods that require the
566         extra parameter so we can remove these methods.
567
568         * public/WebView.h:
569         (WebView):
570         * src/WebViewImpl.cpp:
571         (WebKit::WebViewImpl::dragTargetDragEnter):
572         (WebKit::WebViewImpl::dragTargetDragOver):
573         * src/WebViewImpl.h:
574         (WebViewImpl):
575
576 2012-07-11  Shawn Singh  <shawnsingh@chromium.org>
577
578         Unreviewed build fix, forgot to add URLTestHelpers.* when landing r122344
579
580         * tests/URLTestHelpers.cpp: Added.
581         (URLTestHelpers):
582         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
583         (WebKit::URLTestHelpers::registerMockedURLLoad):
584         * tests/URLTestHelpers.h: Added.
585         (WebKit):
586         (URLTestHelpers):
587         (WebKit::URLTestHelpers::toKURL):
588
589 2012-07-11  Shawn Singh  <shawnsingh@chromium.org>
590
591         [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests
592         https://bugs.webkit.org/show_bug.cgi?id=90094
593
594         Reviewed by Adrienne Walker.
595
596         This patch adds the WEBKIT_IMPLEMENTATION = 1 define to
597         WebKitUnitTests.gyp. To get it to compile correctly, some string
598         and URL code was refactored and fixed, in particular GURL usage is
599         replaced with KURL usage.
600
601         * WebKit.gyp:
602         added WEBKIT_IMPLEMENTATION == 1 for unit test code when in shared library
603         added URLTestHelpers to exclusion in shared library build, because it depends on webkit_support
604
605         * WebKit.gypi:
606         added URLTestHelpers.h and .cpp to the build process
607
608         * WebKitUnitTests.gyp:
609         added WEBKIT_IMPLEMENTATION == 1 for unit test code when not in shared library.
610         note that in shared library build, RunAllTests.cpp does not have WEBKIT_IMPLEMENTATION == 1.
611
612         * public/WebDOMMessageEvent.h:
613         (WebKit::WebDOMMessageEvent::WebDOMMessageEvent):
614         * tests/AssociatedURLLoaderTest.cpp:
615         * tests/EventListenerTest.cpp:
616         * tests/FrameTestHelpers.cpp:
617         (WebKit::FrameTestHelpers::loadFrame):
618         * tests/FrameTestHelpers.h:
619         * tests/ListenerLeakTest.cpp:
620         (WebKit::ListenerLeakTest::RunTest):
621         * tests/PopupMenuTest.cpp:
622         * tests/RunAllTests.cpp:
623         * tests/URLTestHelpers.cpp: Added.
624         (URLTestHelpers):
625         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
626         (WebKit::URLTestHelpers::registerMockedURLLoad):
627         * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h.
628         (WebKit):
629         (URLTestHelpers):
630         (WebKit::URLTestHelpers::toKURL):
631         * tests/WebFrameTest.cpp:
632         * tests/WebPageNewSerializerTest.cpp:
633         * tests/WebPageSerializerTest.cpp:
634         * tests/WebViewTest.cpp:
635
636 2012-07-10  Pavel Feldman  <pfeldman@chromium.org>
637
638         Web Inspector: migrate from background images to CSS for statusbar rendering.
639         https://bugs.webkit.org/show_bug.cgi?id=90902
640
641         Reviewed by Vsevolod Vlasov.
642
643         * WebKit.gypi:
644         * src/js/Images/statusbarBackgroundChromium.png: Removed.
645         * src/js/Images/statusbarBottomBackgroundChromium.png: Removed.
646         * src/js/Images/statusbarButtonsChromium.png: Removed.
647         * src/js/Images/statusbarMenuButtonChromium.png: Removed.
648         * src/js/Images/statusbarMenuButtonSelectedChromium.png: Removed.
649         * src/js/devTools.css:
650         (.status-bar-background):
651
652 2012-07-11  Kenichi Ishibashi  <bashi@chromium.org>
653
654         [Chromium] Adding HarfBuzz-ng for Linux
655         https://bugs.webkit.org/show_bug.cgi?id=90362
656
657         Reviewed by Tony Chang.
658
659         * features.gypi: Added use_harfbuzz_ng variable. If the value is set, USE(HARFBUZZ_NG) is defined.
660
661 2012-07-10  Hayato Ito  <hayato@chromium.org>
662
663         Unreviewed gardening.
664
665         Android builder started to fail after r122292.
666         My best guess is that '--ant-compile' does not take an argument.
667
668         * WebKitUnitTests.gyp:
669
670 2012-07-10  Yoshifumi Inoue  <yosin@chromium.org>
671
672         [Chromium-Windows] Implement functions for localized time format information
673         https://bugs.webkit.org/show_bug.cgi?id=90236
674
675         Reviewed by Kent Tamura.
676
677         This patch introduces test cases for date and time format related
678         functions in LocaleWin.
679
680         * tests/LocaleWinTest.cpp:
681         (LocaleWinTest):
682         (LocaleWinTest::dateComponents): Added.
683         (LocaleWinTest::msForDate): Moved inside class LocaleWinTest.
684         (LocaleWinTest::formatDate): Added.
685         (LocaleWinTest::parseDate): Added.
686         (LocaleWinTest::dateFormatText): Added.
687         (LocaleWinTest::firstDayOfWeek): Added.
688         (LocaleWinTest::monthLabel): Added.
689         (LocaleWinTest::weekDayShortLabel): Added.
690         (LocaleWinTest::timeFormatText): Added.
691         (LocaleWinTest::shortTimeFormatText): Added.
692         (LocaleWinTest::timeAMPMLabel): Added.
693         (TEST_F):
694
695 2012-07-10  Adam Barth  <abarth@webkit.org>
696
697         [Chromium-Android] Add apk test targets for webkit_unit_tests and TestWebKitAPI
698         https://bugs.webkit.org/show_bug.cgi?id=90918
699
700         Reviewed by Tony Chang.
701
702         The rules are similar to what we have added for DumpRenderTree apk.
703         All references to gtest_target_type can be removed once we enable APK
704         tests on the all bots.
705
706         * WebKitUnitTests.gyp:
707
708 2012-07-10  Kevin Ellis  <kevers@chromium.org>
709
710         Input elements with type=range do not have default touch handlers.
711         https://bugs.webkit.org/show_bug.cgi?id=88807
712
713         Reviewed by Antonio Gomes.
714
715         Adds flag to enable native handling of touch events for input elements
716         with type=range.
717
718         * features.gypi:
719
720 2012-07-10  Adam Klein  <adamk@chromium.org>
721
722         [Chromium] REGRESSION(r121909): m_currentInputEvent never set
723         https://bugs.webkit.org/show_bug.cgi?id=90914
724
725         Reviewed by Abhishek Arya.
726
727         The always-null m_currentInputEvent causes a regression when
728         middle-clicking on a link that calls window.open('...', '_blank');
729         that new tab should open in the background, but instead opens in the
730         foreground (see code in ChromeClientImpl::getNavigationPolicy()).
731
732         Fix usage of TemporaryChange to specify a local variable name so that
733         m_currentInputEvent is actually set for the duration of handleInputEvent.
734
735         * src/WebViewImpl.cpp:
736         (WebKit::WebViewImpl::handleInputEvent): Name the TemporaryChange instance.
737
738 2012-07-10  Adam Barth  <abarth@webkit.org>
739
740         WebCore::Settings for Hixie76 WebSocket protocol doesn't do anything and should be removed
741         https://bugs.webkit.org/show_bug.cgi?id=90910
742
743         Reviewed by Eric Seidel.
744
745         * public/WebSettings.h:
746         (WebKit::WebSettings::setHixie76WebSocketProtocolEnabled):
747         * src/WebSettingsImpl.cpp:
748         * src/WebSettingsImpl.h:
749         (WebSettingsImpl):
750         * src/WebSharedWorkerImpl.cpp:
751         (WebKit::WebSharedWorkerImpl::initializeLoader):
752
753 2012-07-09  Dana Jansens  <danakj@chromium.org>
754
755         [chromium] Replace use of ManagedTexture with CCScopedTexture for impl thread and remove implTextureManager from LayerRendererChromium
756         https://bugs.webkit.org/show_bug.cgi?id=90841
757
758         Reviewed by Adrienne Walker.
759
760         * tests/CCLayerTreeHostImplTest.cpp:
761
762 2012-07-10  Xianzhu Wang  <wangxianzhu@chromium.org>
763
764         [Chromium-Android] Use default font rendering styles in FontPlatformData::querySystemForRenderStyle()
765         https://bugs.webkit.org/show_bug.cgi?id=90826
766
767         Reviewed by Adam Barth.
768
769         * WebKit.gyp:
770         * src/PlatformSupport.cpp:
771         (WebCore::PlatformSupport::getRenderStyleForStrike): Call style.setDefault() on Android or when the font is not specified.
772
773 2012-07-10  Dana Jansens  <danakj@chromium.org>
774
775         [chromium] Avoid allocating render pass textures that have no content
776         https://bugs.webkit.org/show_bug.cgi?id=90702
777
778         Reviewed by Adrienne Walker.
779
780         * tests/CCLayerTreeHostImplTest.cpp:
781         * tests/CCLayerTreeHostTest.cpp:
782         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
783         (CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
784         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
785         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::beginTest):
786         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::didCommit):
787         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::drawLayersOnCCThread):
788         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::afterTest):
789         (WTF):
790
791 2012-07-10  Leandro Gracia Gil  <leandrogracia@chromium.org>
792
793         Unreviewed Chromium build fix for mac-release.
794
795         Fixing clang build after https://bugs.webkit.org/show_bug.cgi?id=90807
796
797         * public/WebSurroundingText.h:
798         (WebKit):
799
800 2012-07-10  Leandro Gracia Gil  <leandrogracia@chromium.org>
801
802         WebSurroundingText layout tests should use the same code path as the rest of the feature.
803         https://bugs.webkit.org/show_bug.cgi?id=90807
804
805         Reviewed by Adam Barth.
806
807         Replace the offset-based initialize method used only by LayoutTestController
808         with a point-based version to follow the same code path.
809
810         * public/WebSurroundingText.h:
811         (WebKit):
812         (WebSurroundingText):
813         * src/WebSurroundingText.cpp:
814         (WebKit::WebSurroundingText::initialize):
815
816 2012-07-10  Sheriff Bot  <webkit.review.bot@gmail.com>
817
818         Unreviewed, rolling out r122207.
819         http://trac.webkit.org/changeset/122207
820         https://bugs.webkit.org/show_bug.cgi?id=90874
821
822         Broke the cr-windows bot (Requested by beverloo on #webkit).
823
824         * DEPS:
825
826 2012-07-10  Jochen Eisinger  <jochen@chromium.org>
827
828         Unreviewed.  Rolled DEPS.
829
830         * DEPS:
831
832 2012-07-09  Matt Falkenhagen  <falken@chromium.org>
833
834         Add ENABLE_DIALOG_ELEMENT and skeleton files
835         https://bugs.webkit.org/show_bug.cgi?id=90521
836
837         Reviewed by Kent Tamura.
838
839         * features.gypi:
840         * public/WebRuntimeFeatures.h:
841         (WebRuntimeFeatures):
842         * src/WebRuntimeFeatures.cpp:
843         (WebKit::WebRuntimeFeatures::enableDialogElement):
844         (WebKit):
845         (WebKit::WebRuntimeFeatures::isDialogElementEnabled):
846
847 2012-07-09  Yoshifumi Inoue  <yosin@chromium.org>
848
849         [Chromium-Mac] Implement functions for localized time format information
850         https://bugs.webkit.org/show_bug.cgi?id=90237
851
852         Reviewed by Kent Tamura.
853
854         * tests/LocaleMacTest.cpp:
855         (LocaleMacTest):
856         (LocaleMacTest::timeFormatText):
857         (LocaleMacTest::shortTimeFormatText):
858         (LocaleMacTest::timeAMPMLabel):
859         (TEST_F):
860
861 2012-07-09  Eric Penner  <epenner@google.com>
862
863         [chromium] Merge updates and idle updates into one pass
864         https://bugs.webkit.org/show_bug.cgi?id=90324
865
866         Reviewed by Adrienne Walker.
867
868         * tests/CCLayerTreeHostTest.cpp:
869         (WTF::ContentLayerChromiumWithUpdateTracking::resetPaintContentsCount):
870         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
871         (ContentLayerChromiumWithUpdateTracking):
872         (WTF::CCLayerTreeHostTestOpacityChange::afterTest):
873         * tests/CCTiledLayerTestCommon.h:
874         (FakeTiledLayerChromium):
875         * tests/TiledLayerChromiumTest.cpp:
876
877 2012-07-09  Yoshifumi Inoue  <yosin@chromium.org>
878
879         [Platform] Introduce LocaleMac class
880         https://bugs.webkit.org/show_bug.cgi?id=90248
881
882         Reviewed by Kent Tamura.
883
884         This patch added tests for LocaleMac class.
885
886         * WebKit.gypi:
887         * tests/LocaleMacTest.cpp: Added.
888         (LocaleMacTest):
889         (LocaleMacTest::dateComponents):
890         (LocaleMacTest::msForDate):
891         (LocaleMacTest::formatDate):
892         (LocaleMacTest::parseDate):
893         (LocaleMacTest::dateFormatText):
894         (LocaleMacTest::firstDayOfWeek):
895         (LocaleMacTest::monthLabel):
896         (LocaleMacTest::weekDayShortLabel):
897         (TEST_F):
898
899 2012-07-09  Dana Jansens  <danakj@chromium.org>
900
901         [chromium] Create CCScopedTexture class for creating/freeing textures
902         https://bugs.webkit.org/show_bug.cgi?id=89485
903
904         Reviewed by Adrienne Walker.
905
906         * WebKit.gypi:
907         * tests/CCScopedTextureTest.cpp: Added.
908         (WebKitTests):
909         (WebKitTests::TEST):
910         (TrackingTextureAllocator):
911         (WebKitTests::TrackingTextureAllocator::TrackingTextureAllocator):
912         (WebKitTests::TrackingTextureAllocator::numTextures):
913
914 2012-07-09  Joshua Bell  <jsbell@chromium.org>
915
916         IndexedDB: Remove obsolete accessor plumbing
917         https://bugs.webkit.org/show_bug.cgi?id=90812
918
919         Reviewed by Tony Chang.
920
921         * public/WebIDBCursor.h: Remove direction.
922         * public/WebIDBDatabase.h: Remove name, version, objectStoreNames;
923         (WebKit::WebIDBDatabase::metadata):
924         * public/WebIDBIndex.h: Remove name, keyPath, unique, multiEntry;
925         * public/WebIDBObjectStore.h: Remove name, keyPath, indexNames, autoIncrement;
926         * src/IDBDatabaseBackendProxy.cpp: Remove plumbing.
927         * src/IDBDatabaseBackendProxy.h: Remove plumbing.
928         (IDBDatabaseBackendProxy):
929         * src/IDBIndexBackendProxy.cpp: Remove plumbing.
930         * src/IDBIndexBackendProxy.h: Remove plumbing.
931         (IDBIndexBackendProxy):
932         * src/IDBObjectStoreBackendProxy.cpp: Remove plumbing.
933         * src/IDBObjectStoreBackendProxy.h: Remove plumbing.
934         (IDBObjectStoreBackendProxy):
935         * src/IDBTransactionBackendProxy.cpp: Remove plumbing.
936         * src/IDBTransactionBackendProxy.h: Assert stub is not used - only needed
937         by real IDBTransactionBackendImpl
938         (WebKit::IDBTransactionBackendProxy::mode):
939         * src/WebIDBTransactionImpl.cpp: Remove plumbing.
940         * src/WebIDBTransactionImpl.h: Remove plumbing.
941
942 2012-07-09  Sheriff Bot  <webkit.review.bot@gmail.com>
943
944         Unreviewed, rolling out r122161.
945         http://trac.webkit.org/changeset/122161
946         https://bugs.webkit.org/show_bug.cgi?id=90837
947
948         failed to compile on chromium webkit linux bot (Requested by
949         shawnsingh on #webkit).
950
951         * WebKit.gypi:
952         * WebKitUnitTests.gyp:
953         * public/WebDOMMessageEvent.h:
954         * tests/AssociatedURLLoaderTest.cpp:
955         (WebKit::AssociatedURLLoaderTest::AssociatedURLLoaderTest):
956         (WebKit::AssociatedURLLoaderTest::SetUp):
957         (WebKit::AssociatedURLLoaderTest::CheckMethodFails):
958         (WebKit::AssociatedURLLoaderTest::CheckHeaderFails):
959         (WebKit::AssociatedURLLoaderTest::CheckAccessControlHeaders):
960         (WebKit::TEST_F):
961         * tests/EventListenerTest.cpp:
962         * tests/FrameTestHelpers.cpp:
963         (WebKit::FrameTestHelpers::registerMockedURLLoad):
964         (FrameTestHelpers):
965         (WebKit::FrameTestHelpers::loadFrame):
966         * tests/FrameTestHelpers.h:
967         (FrameTestHelpers):
968         * tests/ListenerLeakTest.cpp:
969         (WebKit::ListenerLeakTest::RunTest):
970         * tests/PopupMenuTest.cpp:
971         (WebKit::SelectPopupMenuTest::registerMockedURLLoad):
972         (WebKit::SelectPopupMenuTest::loadFrame):
973         (WebKit::TEST_F):
974         * tests/RunAllTests.cpp:
975         * tests/URLTestHelpers.cpp: Removed.
976         * tests/URLTestHelpers.h: Removed.
977         * tests/WebFrameTest.cpp:
978         (WebKit::WebFrameTest::registerMockedHttpURLLoad):
979         (WebKit::WebFrameTest::registerMockedChromeURLLoad):
980         (WebKit::TEST_F):
981         * tests/WebPageNewSerializerTest.cpp:
982         (WebKit::WebPageNewSerializeTest::registerMockedURLLoad):
983         (WebPageNewSerializeTest):
984         (WebKit::WebPageNewSerializeTest::setUpCSSTestPage):
985         (WebKit::WebPageNewSerializeTest::loadURLInTopFrame):
986         (WebKit::WebPageNewSerializeTest::resourceVectorContains):
987         (WebKit::TEST_F):
988         * tests/WebPageSerializerTest.cpp:
989         (WebKit::WebPageSerializerTest::registerMockedURLLoad):
990         (WebKit::WebPageSerializerTest::loadURLInTopFrame):
991         (WebKit::WebPageSerializerTest::webVectorContains):
992         (WebKit::TEST_F):
993         * tests/WebViewTest.cpp:
994         (WebKit::TEST_F):
995         (WebKit::WebViewTest::testAutoResize):
996         (WebKit::WebViewTest::testTextInputType):
997
998 2012-07-09  Shawn Singh  <shawnsingh@chromium.org>
999
1000         [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests
1001         https://bugs.webkit.org/show_bug.cgi?id=90094
1002
1003         Reviewed by Adam Barth.
1004
1005         This patch adds the WEBKIT_IMPLEMENTATION = 1 define to
1006         WebKitUnitTests.gyp. To get it to compile correctly, some string
1007         and URL code was refactored, and GURL types were replaced with KURL types.
1008
1009         * WebKit.gypi:
1010         * WebKitUnitTests.gyp:
1011         * public/WebDOMMessageEvent.h:
1012         (WebKit::WebDOMMessageEvent::WebDOMMessageEvent):
1013         * tests/AssociatedURLLoaderTest.cpp:
1014         * tests/EventListenerTest.cpp:
1015         * tests/FrameTestHelpers.cpp:
1016         (WebKit::FrameTestHelpers::loadFrame):
1017         * tests/FrameTestHelpers.h:
1018         * tests/ListenerLeakTest.cpp:
1019         (WebKit::ListenerLeakTest::RunTest):
1020         * tests/PopupMenuTest.cpp:
1021         * tests/RunAllTests.cpp:
1022         * tests/URLTestHelpers.cpp: Added.
1023         (URLTestHelpers):
1024         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
1025         (WebKit::URLTestHelpers::registerMockedURLLoad):
1026         * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h.
1027         (WebKit):
1028         (URLTestHelpers):
1029         (WebKit::URLTestHelpers::toKURL):
1030         * tests/WebFrameTest.cpp:
1031         * tests/WebPageNewSerializerTest.cpp:
1032         * tests/WebPageSerializerTest.cpp:
1033         * tests/WebViewTest.cpp:
1034
1035 2012-07-09  Dana Jansens  <danakj@chromium.org>
1036
1037         [chromium] Decouple RenderPass drawing from CCRenderSurface
1038         https://bugs.webkit.org/show_bug.cgi?id=90573
1039
1040         Reviewed by Adrienne Walker.
1041
1042         * tests/CCLayerTreeHostImplTest.cpp:
1043         * tests/LayerRendererChromiumTest.cpp:
1044         (FakeCCRendererClient::FakeCCRendererClient):
1045
1046 2012-07-09  Adam Klein  <adamk@chromium.org>
1047
1048         Rename WebCore::WebKitMutationObserver to WebCore::MutationObserver
1049         https://bugs.webkit.org/show_bug.cgi?id=90810
1050
1051         Reviewed by Ojan Vafai.
1052
1053         * src/WebKit.cpp:
1054
1055 2012-07-09  Leandro Gracia Gil  <leandrogracia@chromium.org>
1056
1057         SurroundingText should not advance character iterators if they are at end.
1058         https://bugs.webkit.org/show_bug.cgi?id=90560
1059
1060         Reviewed by Ryosuke Niwa.
1061
1062         Moving the check for null visible positions to WebCore as it makes no
1063         sense to be in a platform-specific code.
1064
1065         * src/WebSurroundingText.cpp:
1066         (WebKit::WebSurroundingText::initialize):
1067
1068 2012-07-09  Dana Jansens  <danakj@chromium.org>
1069
1070         [chromium] Create render surfaces on main thread only for the current frame
1071         https://bugs.webkit.org/show_bug.cgi?id=89793
1072
1073         Reviewed by Adrienne Walker.
1074
1075         * tests/CCLayerTreeHostCommonTest.cpp:
1076
1077 2012-07-02  Ryosuke Niwa  <rniwa@webkit.org>
1078
1079         Make HTMLCollection RefCounted
1080         https://bugs.webkit.org/show_bug.cgi?id=90414
1081
1082         Reviewed by Sam Weinig.
1083
1084         * src/WebPageSerializer.cpp:
1085         (WebCore::retrieveResourcesForFrame):
1086         * src/WebPageSerializerImpl.cpp:
1087         (WebKit::WebPageSerializerImpl::collectTargetFrames):
1088
1089 2012-07-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1090
1091         Unreviewed, rolling out r122107.
1092         http://trac.webkit.org/changeset/122107
1093         https://bugs.webkit.org/show_bug.cgi?id=90794
1094
1095         Build failure on Mac debug bots (Requested by falken_ on
1096         #webkit).
1097
1098         * features.gypi:
1099         * public/WebRuntimeFeatures.h:
1100         (WebRuntimeFeatures):
1101         * src/WebRuntimeFeatures.cpp:
1102
1103 2012-07-09  Matt Falkenhagen  <falken@chromium.org>
1104
1105         Add ENABLE_DIALOG_ELEMENT and skeleton files
1106         https://bugs.webkit.org/show_bug.cgi?id=90521
1107
1108         Reviewed by Kent Tamura.
1109
1110         * features.gypi:
1111         * public/WebRuntimeFeatures.h:
1112         (WebRuntimeFeatures):
1113         * src/WebRuntimeFeatures.cpp:
1114         (WebKit::WebRuntimeFeatures::enableDialogElement):
1115         (WebKit):
1116         (WebKit::WebRuntimeFeatures::isDialogElementEnabled):
1117
1118 2012-07-09  MORITA Hajime  <morrita@google.com>
1119
1120         [Chromium] ContextFeaturesClient::isEnabled is slow
1121         https://bugs.webkit.org/show_bug.cgi?id=90367
1122
1123         Reviewed by Kent Tamura.
1124
1125         ContextFeaturesClientImpl::isEnabled touches a heavy part in chrome
1126         where locks are acquired for each invocation.
1127
1128         This change introduces a set of caches to avoid such slow calls.
1129         The cache class ContextFeaturesCache is implemented as a
1130         Supplement of ScriptExecutionContext because the flag bits
1131         depend on the domain of each Document.
1132
1133         * src/ContextFeaturesClientImpl.cpp:
1134         (ContextFeaturesCache): Added.
1135         (Entry): Added.
1136         (WebKit::ContextFeaturesCache::Entry::Entry):
1137         (WebKit::ContextFeaturesCache::Entry::isEnabled):
1138         (WebKit::ContextFeaturesCache::Entry::set):
1139         (WebKit::ContextFeaturesCache::Entry::needsRefresh):
1140         (WebKit::ContextFeaturesCache::entryFor):
1141         (WebKit):
1142         (WebKit::ContextFeaturesCache::supplementName):
1143         (WebKit::ContextFeaturesCache::from):
1144         (WebKit::ContextFeaturesCache::refreshAgainst):
1145         (WebKit::ContextFeaturesClientImpl::isEnabled):
1146         (WebKit::ContextFeaturesClientImpl::urlDidChange): Added to invoke refrshAgainst.
1147         (WebKit::ContextFeaturesClientImpl::askIfIsEnabled):
1148         * src/ContextFeaturesClientImpl.h:
1149         (ContextFeaturesClientImpl):
1150
1151 2012-07-09  Vsevolod Vlasov  <vsevik@chromium.org>
1152
1153         Unreviewed chromium inspector test fix.
1154
1155         * src/js/Tests.js:
1156         (.TestSuite.prototype.nonAnonymousUISourceCodes_):
1157
1158 2012-07-05  Yoshifumi Inoue  <yosin@chromium.org>
1159
1160         Unreviewed Chromium gardening. Roll Chromium DEPS
1161
1162         * DEPS: 145501 => 145569
1163
1164 2012-07-05  Yoshifumi Inoue  <yosin@chromium.org>
1165
1166         Unreviewed Chromium gardening - Disable WebAnimationTest for Linux and Windows.
1167         https://bugs.webkit.org/show_bug.cgi?id=90651
1168
1169         * tests/WebAnimationTest.cpp:
1170         (WebKit):
1171         (WebKit::TEST):
1172
1173 2012-07-05  Ian Vollick  <vollick@chromium.org>
1174
1175         [chromium] Create a WebKit::Web* wrapper for the cc animation classes
1176         https://bugs.webkit.org/show_bug.cgi?id=90303
1177
1178         Reviewed by James Robinson.
1179
1180         * WebKit.gyp:
1181         * WebKit.gypi:
1182         * src/WebAnimation.cpp: Added.
1183         (WebKit):
1184         (WebKit::WebAnimation::iterations):
1185         (WebKit::WebAnimation::setIterations):
1186         (WebKit::WebAnimation::startTime):
1187         (WebKit::WebAnimation::setStartTime):
1188         (WebKit::WebAnimation::timeOffset):
1189         (WebKit::WebAnimation::setTimeOffset):
1190         (WebKit::WebAnimation::alternatesDirection):
1191         (WebKit::WebAnimation::setAlternatesDirection):
1192         (WebKit::WebAnimation::toCCActiveAnimation):
1193         (WebKit::WebAnimation::initialize):
1194         (WebKit::WebAnimation::destroy):
1195         * src/WebAnimationCurveCommon.cpp: Added.
1196         (WebKit):
1197         (WebKit::createTimingFunction):
1198         * src/WebAnimationCurveCommon.h: Added.
1199         (WebCore):
1200         (WebKit):
1201         * src/WebFloatAnimationCurve.cpp: Added.
1202         (WebKit):
1203         (WebKit::WebFloatAnimationCurve::add):
1204         (WebKit::WebFloatAnimationCurve::toCCAnimationCurve):
1205         (WebKit::WebFloatAnimationCurve::initialize):
1206         (WebKit::WebFloatAnimationCurve::destroy):
1207         * src/WebTransformAnimationCurve.cpp: Added.
1208         (WebKit):
1209         (WebKit::WebTransformAnimationCurve::add):
1210         (WebKit::WebTransformAnimationCurve::toCCAnimationCurve):
1211         (WebKit::WebTransformAnimationCurve::initialize):
1212         (WebKit::WebTransformAnimationCurve::destroy):
1213         * tests/WebAnimationTest.cpp: Added.
1214         * tests/WebFloatAnimationCurveTest.cpp: Added.
1215         * tests/WebTransformAnimationCurveTest.cpp: Added.
1216
1217 2012-07-05  Vincent Scheib  <scheib@chromium.org>
1218
1219         [Chromium] Clear m_currentInputEvent after handled by pointerLockMouseEvent().
1220         https://bugs.webkit.org/show_bug.cgi?id=90391
1221
1222         WebViewImpl::handleInputEvent was keeping a pointer to an input event that would
1223         later be accessed. When in pointer lock, that pointer was not being cleared.
1224         Code modified to use TemporaryChange to automatically clear the pointer at all
1225         method exit points.
1226
1227         Reviewed by Abhishek Arya.
1228
1229         * src/WebViewImpl.cpp:
1230         (WebKit::WebViewImpl::handleInputEvent):
1231
1232 2012-07-05  John Mellor  <johnme@chromium.org>
1233
1234         Text Autosizing: Add test framework and simple test.
1235         https://bugs.webkit.org/show_bug.cgi?id=90561
1236
1237         ENABLE(TEXT_AUTOSIZING) is now on in Chromium (but disabled at runtime).
1238         This allows it to be used in Layout Tests (and in future by Web
1239         Inspector's mobile device emulation).
1240
1241         Reviewed by Adam Barth.
1242
1243         * features.gypi:
1244
1245 2012-07-05  Oli Lan  <olilan@chromium.org>
1246
1247         [chromium] Add a method didChangeFormState to WebViewClient.
1248         https://bugs.webkit.org/show_bug.cgi?id=90563
1249
1250         Reviewed by Adam Barth.
1251
1252         This patch adds a new method didChangeFormState to WebViewClient,
1253         and calls it from ChromeClientImpl::formStateDidChange with the changed node.
1254
1255         This new method can be used for example by the Android port to update the browser's
1256         IME when the state of the currently focused text node has changed. To facilitate this
1257         usage, a focused() method has been added to WebNode.
1258
1259         A new test has been added to WebViewTest. This test checks that didChangeFormState
1260         is called when an input's value is changed, and also checks that WebNode::focused() returns
1261         the correct value for the provided node, in both the focused and non-focused cases.
1262
1263         * public/WebNode.h:
1264         * public/WebViewClient.h:
1265         (WebKit::WebViewClient::didChangeFormState):
1266         * src/ChromeClientImpl.cpp:
1267         (WebKit::ChromeClientImpl::formStateDidChange):
1268         * src/WebNode.cpp:
1269         (WebKit::WebNode::focused):
1270         (WebKit):
1271         * tests/WebViewTest.cpp:
1272         (FormChangeWebViewClient):
1273         (WebKit::FormChangeWebViewClient::didChangeFormState):
1274         (WebKit::FormChangeWebViewClient::reset):
1275         (WebKit::FormChangeWebViewClient::called):
1276         (WebKit::FormChangeWebViewClient::focused):
1277         (WebKit):
1278         (WebKit::TEST_F):
1279         * tests/data/input_field_set_value_while_focused.html: Added.
1280         * tests/data/input_field_set_value_while_not_focused.html: Added.
1281
1282 2012-07-04  Yoshifumi Inoue  <yosin@chromium.org>
1283
1284         Unreviewed, Chromium gardening. Roll Chromium DEPS.
1285
1286         * DEPS: chromium_rev: 145322 => 145501
1287
1288 2012-07-04  Dana Jansens  <danakj@chromium.org>
1289
1290         [chromium] Respect memory needed for RenderSurfaces when reserving contents textures
1291         https://bugs.webkit.org/show_bug.cgi?id=89901
1292
1293         Reviewed by Adrienne Walker.
1294
1295         * tests/CCPrioritizedTextureTest.cpp:
1296         (WTF::CCPrioritizedTextureTest::createManager):
1297         (WTF::TEST_F):
1298         (WTF):
1299         * tests/CCTiledLayerTestCommon.cpp:
1300         (WebKitTests::FakeTiledLayerChromium::setTexturePriorities):
1301         (WebKitTests):
1302         * tests/CCTiledLayerTestCommon.h:
1303         (FakeTiledLayerChromium):
1304         * tests/TiledLayerChromiumTest.cpp:
1305
1306 2012-07-04  Dana Jansens  <danakj@chromium.org>
1307
1308         [chromium] Clear RenderSurfaces still when no idle paint will be done
1309         https://bugs.webkit.org/show_bug.cgi?id=90553
1310
1311         Reviewed by Adrienne Walker.
1312
1313         * tests/CCLayerTreeHostTest.cpp:
1314         (CCLayerTreeHostTestCompositeAndReadbackCleanup):
1315         (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::CCLayerTreeHostTestCompositeAndReadbackCleanup):
1316         (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::beginTest):
1317         (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::afterTest):
1318         (WTF):
1319
1320 2012-07-04  Dana Jansens  <danakj@chromium.org>
1321
1322         [chromium] Remove CCLayerTreeHostTestThreadOnly class to cleanup CCLayerTreeHostTests
1323         https://bugs.webkit.org/show_bug.cgi?id=90556
1324
1325         Reviewed by Adrienne Walker.
1326
1327         Currently many tests that run both single and threaded versions subclass
1328         from CCLayerTreeHostTestThreadOnly just from copy/pasting. The class
1329         only adds a runTestThreaded() which calls runTest(true). Many other
1330         tests do run only in threaded mode call runTest(true) themselves, making
1331         for an inconsistent mess.
1332
1333         We remove CCLayerTreeHostTestThreadOnly class, so we don't have tests
1334         inheriting it that are not thread-only. And now all tests that are
1335         thread-only call runTest(true) consistently.
1336
1337         * tests/CCLayerTreeHostTest.cpp:
1338         (WTF::TEST_F):
1339
1340 2012-07-04  John Mellor  <johnme@chromium.org>
1341
1342         Text Autosizing: Add compile flag and runtime setting
1343         https://bugs.webkit.org/show_bug.cgi?id=87394
1344
1345         This patch renames Font Boosting to Text Autosizing and adds compile guards around the runtime setting.
1346
1347         Reviewed by Adam Barth.
1348
1349         * features.gypi:
1350         * public/WebSettings.h:
1351         * src/WebSettingsImpl.cpp:
1352         (WebKit::WebSettingsImpl::setTextAutosizingEnabled):
1353         * src/WebSettingsImpl.h:
1354         (WebSettingsImpl):
1355
1356 2012-07-04  Ian Vollick  <vollick@chromium.org>
1357
1358         [chromium] Correctly reject accelerated animations with certain rotations.
1359         https://bugs.webkit.org/show_bug.cgi?id=89768
1360
1361         Reviewed by James Robinson.
1362
1363         * tests/GraphicsLayerChromiumTest.cpp:
1364         (WebKitTests::TEST_F):
1365         (WebKitTests):
1366
1367 2012-07-03  Alex Sakhartchouk  <alexst@chromium.org>
1368
1369         [chromium] Avoid calling getUniformLocation??() in the compositor startup
1370         https://bugs.webkit.org/show_bug.cgi?id=90217
1371
1372         Reviewed by Adrienne Walker.
1373
1374         Fixing the build error.
1375
1376         * tests/TextureCopierTest.cpp:
1377
1378 2012-07-03  Erik Arvidsson  <arv@chromium.org>
1379
1380         [V8] Remove enableFasterDOMStoreAccess which is never used
1381         https://bugs.webkit.org/show_bug.cgi?id=90489
1382
1383         Reviewed by Adam Barth.
1384
1385         * src/WebScriptController.cpp:
1386         (WebKit::WebScriptController::enableV8SingleThreadMode):
1387
1388 2012-07-03  Tony Chang  <tony@chromium.org>
1389
1390         [chromium] Unreviewed, update .gitignore to handle VS2010 files.
1391
1392         * .gitignore:
1393
1394 2012-07-03  Tony Chang  <tony@chromium.org>
1395
1396         Unreviewed.  Rolled DEPS.
1397
1398         * DEPS:
1399
1400 2012-07-03  Charles Wei  <charles.wei@torchmobile.com.cn>
1401
1402         IndexedDB: should make the LevelDB persistant to the directory indicated in PageGroupSettings::indexedDBDataBasePath
1403         https://bugs.webkit.org/show_bug.cgi?id=88338
1404
1405         Reviewed by David Levin.
1406
1407         * src/WebSharedWorkerImpl.cpp:
1408         (WebKit::WebSharedWorkerImpl::startWorkerContext):
1409         * src/WebWorkerClientImpl.cpp:
1410         (WebKit::WebWorkerClientImpl::startWorkerContext):
1411
1412 2012-07-02  Sheriff Bot  <webkit.review.bot@gmail.com>
1413
1414         Unreviewed.  Rolled DEPS.
1415
1416         * DEPS:
1417
1418 2012-07-02  Leandro Gracia Gil  <leandrogracia@chromium.org>
1419
1420         [Chromium] Implement a Layout Test for editing/SurroundingText
1421         https://bugs.webkit.org/show_bug.cgi?id=82461
1422
1423         Reviewed by Ryosuke Niwa.
1424
1425         Allow passing nodes as arguments for layout test methods.
1426
1427         * public/WebBindings.h:
1428         (WebBindings):
1429         * src/WebBindings.cpp:
1430         (WebKit::getNodeImpl):
1431         (WebKit):
1432         (WebKit::WebBindings::getNode):
1433
1434 2012-07-02  Benjamin Poulain  <bpoulain@apple.com>
1435
1436         Do not do any logging initialization when logging is disabled
1437         https://bugs.webkit.org/show_bug.cgi?id=90228
1438
1439         Reviewed by Simon Fraser.
1440
1441         * src/WebKit.cpp:
1442         (WebKit::enableLogChannel):
1443
1444 2012-07-01  Keishi Hattori  <keishi@webkit.org>
1445
1446         Unreviewed, rolling out r121650.
1447         http://trac.webkit.org/changeset/121650
1448         https://bugs.webkit.org/show_bug.cgi?id=90303
1449
1450         runhooks is failing for chromium win bots and
1451         WebAnimationTest.DefaultSettings is crashing
1452
1453         * WebKit.gyp:
1454         * WebKit.gypi:
1455         * src/WebAnimation.cpp: Removed.
1456         * src/WebAnimationCurveCommon.cpp: Removed.
1457         * src/WebAnimationCurveCommon.h: Removed.
1458         * src/WebFloatAnimationCurve.cpp: Removed.
1459         * src/WebTransformAnimationCurve.cpp: Removed.
1460         * tests/WebAnimationTest.cpp: Removed.
1461         * tests/WebFloatAnimationCurveTest.cpp: Removed.
1462         * tests/WebTransformAnimationCurveTest.cpp: Removed.
1463
1464 2012-07-01  Ian Vollick  <vollick@chromium.org>
1465
1466         [chromium] Create a WebKit::Web* wrapper for the cc animation classes
1467         https://bugs.webkit.org/show_bug.cgi?id=90303
1468
1469         Reviewed by James Robinson.
1470
1471         * WebKit.gyp:
1472         * WebKit.gypi:
1473         * src/WebAnimation.cpp: Added.
1474         (WebKit):
1475         (WebKit::WebAnimation::iterations):
1476         (WebKit::WebAnimation::setIterations):
1477         (WebKit::WebAnimation::startTime):
1478         (WebKit::WebAnimation::setStartTime):
1479         (WebKit::WebAnimation::timeOffset):
1480         (WebKit::WebAnimation::setTimeOffset):
1481         (WebKit::WebAnimation::alternatesDirection):
1482         (WebKit::WebAnimation::setAlternatesDirection):
1483         (WebKit::WebAnimation::toCCActiveAnimation):
1484         (WebKit::WebAnimation::initialize):
1485         (WebKit::WebAnimation::destroy):
1486         * src/WebAnimationCurveCommon.cpp: Added.
1487         (WebKit):
1488         (WebKit::createTimingFunction):
1489         * src/WebAnimationCurveCommon.h: Added.
1490         (WebCore):
1491         (WebKit):
1492         * src/WebFloatAnimationCurve.cpp: Added.
1493         (WebKit):
1494         (WebKit::WebFloatAnimationCurve::add):
1495         (WebKit::WebFloatAnimationCurve::toCCAnimationCurve):
1496         (WebKit::WebFloatAnimationCurve::initialize):
1497         (WebKit::WebFloatAnimationCurve::destroy):
1498         * src/WebTransformAnimationCurve.cpp: Added.
1499         (WebKit):
1500         (WebKit::WebTransformAnimationCurve::add):
1501         (WebKit::WebTransformAnimationCurve::toCCAnimationCurve):
1502         (WebKit::WebTransformAnimationCurve::initialize):
1503         (WebKit::WebTransformAnimationCurve::destroy):
1504         * tests/WebAnimationTest.cpp: Added.
1505         * tests/WebFloatAnimationCurveTest.cpp: Added.
1506         * tests/WebTransformAnimationCurveTest.cpp: Added.
1507
1508 2012-06-30  Ian Vollick  <vollick@chromium.org>
1509
1510         [chromium] CanvasLayerTextureUpdater needs to convert opaque rects back to content space.
1511         https://bugs.webkit.org/show_bug.cgi?id=90092
1512
1513         The CanvasLayerTextureUpdater currently receives its opaque rects in
1514         layer space, but is expected to return them in content space and does
1515         not convert them. This patch adds this conversion. To avoid numerical
1516         errors, this patch also switches to using float rects to store opaque
1517         rects where appropriate.
1518
1519         Reviewed by Adrienne Walker.
1520
1521         * WebKit.gypi:
1522         * src/WebContentLayerImpl.cpp:
1523         (WebKit::WebContentLayerImpl::paintContents):
1524         * src/WebContentLayerImpl.h:
1525         (WebContentLayerImpl):
1526         * tests/CCLayerTreeHostCommonTest.cpp:
1527         * tests/CCLayerTreeHostTest.cpp:
1528         (WTF::TestOpacityChangeLayerDelegate::paintContents):
1529         (WTF::MockContentLayerDelegate::paintContents):
1530         * tests/ContentLayerChromiumTest.cpp: Added.
1531         (WebKit):
1532         (OpaqueRectDrawingGraphicsContextPainter):
1533         (WebKit::OpaqueRectDrawingGraphicsContextPainter::OpaqueRectDrawingGraphicsContextPainter):
1534         (WebKit::OpaqueRectDrawingGraphicsContextPainter::~OpaqueRectDrawingGraphicsContextPainter):
1535         (MockContentLayerDelegate):
1536         (WebKit::MockContentLayerDelegate::MockContentLayerDelegate):
1537         (WebKit::TEST):
1538         * tests/LayerChromiumTest.cpp:
1539         * tests/OpaqueRectTrackingContentLayerDelegateTest.cpp:
1540         (WebCore::TEST_F):
1541         * tests/TiledLayerChromiumTest.cpp:
1542         * tests/WebLayerTest.cpp:
1543
1544 2012-06-29  Joshua Bell  <jsbell@chromium.org>
1545
1546         IndexedDB: Keep direction on IDBCursor to avoid calls to back end
1547         https://bugs.webkit.org/show_bug.cgi?id=90114
1548
1549         Stop plumbing IDBCursorBackendInterface::direction() through API.
1550
1551         Reviewed by Tony Chang.
1552
1553         * src/IDBCursorBackendProxy.cpp:
1554         * src/IDBCursorBackendProxy.h:
1555         (IDBCursorBackendProxy):
1556         * src/WebIDBCursorImpl.cpp:
1557         * src/WebIDBCursorImpl.h:
1558         (WebIDBCursorImpl):
1559
1560 2012-06-29  Adam Barth  <abarth@webkit.org>
1561
1562         [Chromium] WebFontRendering.cpp requires some OS(ANDROID) ifdefs to build downstream
1563         https://bugs.webkit.org/show_bug.cgi?id=90292
1564
1565         Reviewed by Nate Chapin.
1566
1567         These ifdefs are required to build this file downstream. There's some
1568         sublte difference between how the OS flags are set upstream and
1569         downstream. This is on our list of issues to resolve, but in the
1570         meantime, this patch makes these files identical upstream and
1571         downstream to reduce noise in the upstreaming queue.
1572
1573         * src/linux/WebFontRendering.cpp:
1574         (WebKit::WebFontRendering::setSubpixelPositioning):
1575
1576 2012-06-29  Eric Penner  <epenner@google.com>
1577
1578         [chromium] Adding PrioritizedTexture and replacing ContentsTextureManager
1579         https://bugs.webkit.org/show_bug.cgi?id=84308
1580
1581         Reviewed by Adrienne Walker.
1582
1583         * WebKit.gypi:
1584         * tests/CCLayerTreeHostTest.cpp:
1585         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
1586         * tests/CCPrioritizedTextureTest.cpp: Added.
1587         (WTF):
1588         (CCPrioritizedTextureTest):
1589         (WTF::CCPrioritizedTextureTest::CCPrioritizedTextureTest):
1590         (WTF::CCPrioritizedTextureTest::~CCPrioritizedTextureTest):
1591         (WTF::CCPrioritizedTextureTest::texturesMemorySize):
1592         (WTF::CCPrioritizedTextureTest::createManager):
1593         (WTF::CCPrioritizedTextureTest::validateTexture):
1594         (WTF::CCPrioritizedTextureTest::allocator):
1595         (WTF::TEST_F):
1596         * tests/CCTiledLayerTestCommon.cpp:
1597         (WebKitTests::FakeLayerTextureUpdater::Texture::Texture):
1598         (WebKitTests::FakeLayerTextureUpdater::Texture::updateRect):
1599         (WebKitTests::FakeLayerTextureUpdater::createTexture):
1600         (WebKitTests::FakeTiledLayerChromium::FakeTiledLayerChromium):
1601         (WebKitTests::FakeTiledLayerWithScaledBounds::FakeTiledLayerWithScaledBounds):
1602         * tests/CCTiledLayerTestCommon.h:
1603         (Texture):
1604         (FakeLayerTextureUpdater):
1605         (FakeTiledLayerChromium):
1606         (FakeTiledLayerWithScaledBounds):
1607         * tests/TiledLayerChromiumTest.cpp:
1608
1609 2012-06-29  Ian Vollick  <vollick@chromium.org>
1610
1611         [chromium] Roll chromium rev to 144906
1612         https://bugs.webkit.org/show_bug.cgi?id=90278
1613
1614         Unreviewed. Deps roll.
1615
1616         * DEPS:
1617
1618 2012-06-29  Alexander Pavlov  <apavlov@chromium.org>
1619
1620         Web Inspector: [Device Metrics] "Fit window" option inhibits adjusting the page zoom factor
1621         https://bugs.webkit.org/show_bug.cgi?id=90187
1622
1623         Reviewed by Vsevolod Vlasov.
1624
1625         This change fixes the stale zoom factor, which does not get updated upon browser window resize in the "Fit window" mode.
1626         The expected test results have little to do with actual dimensions of the test page in Chrome on a real mobile device,
1627         since Chrome on the mobile uses a different zooming technique (pageScaleFactor-based viewport using layout width
1628         rather than plain pageZoomFactor) and font boosting, which has not been upstreamed yet.
1629
1630         * src/WebDevToolsAgentImpl.cpp:
1631         (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth):
1632         (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor):
1633
1634 2012-06-29  Konrad Piascik  <kpiascik@rim.com>
1635
1636         Don't hardcode target dpi of 160 (it should be 96 on desktop)
1637         https://bugs.webkit.org/show_bug.cgi?id=88114
1638
1639         Reviewed by Adam Barth.
1640
1641         Updated the call to computeViewportAttributes.
1642
1643         * src/ChromeClientImpl.cpp:
1644         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
1645
1646 2012-06-29  Amy Ousterhout  <aousterh@chromium.org>
1647
1648         Deleting unused function in WebDeviceOrientation
1649         https://bugs.webkit.org/show_bug.cgi?id=90185
1650
1651         Reviewed by Adam Barth.
1652
1653         Deleting the unused copy assignment function in WebDeviceOrientation.
1654
1655         * public/WebDeviceOrientation.h:
1656         (WebDeviceOrientation):
1657         * src/WebDeviceOrientation.cpp:
1658
1659 2012-06-29  Yoshifumi Inoue  <yosin@chromium.org>
1660
1661         [Platform] Implement Date Time format parser
1662         https://bugs.webkit.org/show_bug.cgi?id=89963
1663
1664         Reviewed by Kent Tamura.
1665
1666         This patch adds an unit test for date time format parser if
1667         ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS) is true.
1668
1669         * tests/DateTimeFormatTest.cpp: Added.
1670         (DateTimeFormatTest):
1671         (Token):
1672         (DateTimeFormatTest::Token::Token):
1673         (DateTimeFormatTest::Token::operator==):
1674         (DateTimeFormatTest::Token::toString):
1675         (Tokens):
1676         (DateTimeFormatTest::Tokens::Tokens):
1677         (DateTimeFormatTest::Tokens::operator==):
1678         (DateTimeFormatTest::Tokens::toString):
1679         (DateTimeFormatTest::parse):
1680         (DateTimeFormatTest::single):
1681         (TokenHandler):
1682         (DateTimeFormatTest::TokenHandler::~TokenHandler):
1683         (DateTimeFormatTest::TokenHandler::fieldType):
1684         (DateTimeFormatTest::TokenHandler::tokens):
1685         (DateTimeFormatTest::TokenHandler::visitField):
1686         (DateTimeFormatTest::TokenHandler::visitLiteral):
1687         (operator<<):
1688         (TEST_F):
1689
1690 2012-06-28  Joshua Bell  <jsbell@chromium.org>
1691
1692         IndexedDB: Implement IDBTransaction internal active flag
1693         https://bugs.webkit.org/show_bug.cgi?id=89379
1694
1695         Reviewed by Tony Chang.
1696
1697         To match the IDB spec, transactions that have had no requests
1698         filed against them should commit, not abort. This requires plumbing
1699         through the commit() call from front-end to back-end.
1700
1701         * src/IDBTransactionBackendProxy.cpp:
1702         (WebKit::IDBTransactionBackendProxy::commit):
1703         (WebKit):
1704         * src/IDBTransactionBackendProxy.h:
1705         (IDBTransactionBackendProxy):
1706         * src/WebIDBTransactionImpl.cpp:
1707         (WebKit::WebIDBTransactionImpl::commit):
1708         (WebKit):
1709         * src/WebIDBTransactionImpl.h:
1710
1711 2012-06-28  Adrienne Walker  <enne@google.com>
1712
1713         [chromium] Split WebScrollbar into WebPluginScrollbar and WebScrollbar
1714         https://bugs.webkit.org/show_bug.cgi?id=90117
1715
1716         Reviewed by James Robinson.
1717
1718         Convert WebScrollbar/WebScrollbarClient/WebScrollbarImpl to be
1719         WebPluginScrollbar, WebPluginScrollbarClient, and
1720         WebPluginScrollbarImpl. Modify ScrollbarGroup
1721         to use this instead.
1722
1723         WebScrollbar is now the base interface for a pre-existing scrollbar
1724         that is accessed in a const manner. It also provides all of the common
1725         WebKit ScrollTypes.h enums. WebPluginScrollbar is now a scrollbar that
1726         has been externally created and is externally modified in terms of its
1727         position, invalidation, and painting.
1728
1729         This is a pre-refactoring for adding Web versions of ScrollbarTheme
1730         into the Platform directory which will operate on WebScrollbar, but
1731         that don't need all of what WebPluginScrollbar provides.
1732
1733         As WebScrollbar is moved to Platform, WebKit.gyp now must depend on
1734         Platform as well.
1735
1736         * WebKit.gyp:
1737         * public/WebPluginScrollbar.h:
1738         (WebKit):
1739         (WebPluginScrollbar):
1740         (WebKit::WebPluginScrollbar::~WebPluginScrollbar):
1741         * public/WebPluginScrollbarClient.h:
1742         (WebKit):
1743         (WebPluginScrollbarClient):
1744         * public/WebScrollbar.h: Removed.
1745         * public/WebScrollbarClient.h: Removed.
1746         * src/AssertMatchingEnums.cpp:
1747         * src/ScrollbarGroup.cpp:
1748         (WebKit::ScrollbarGroup::scrollbarCreated):
1749         (WebKit::ScrollbarGroup::scrollbarDestroyed):
1750         (WebKit::ScrollbarGroup::scrollSize):
1751         (WebKit::ScrollbarGroup::scrollPosition):
1752         (WebKit::ScrollbarGroup::contentsSize):
1753         * src/ScrollbarGroup.h:
1754         (WebKit):
1755         (ScrollbarGroup):
1756         * src/WebPluginScrollbarImpl.cpp: Renamed from Source/WebKit/chromium/src/WebScrollbarImpl.cpp.
1757         (WebKit):
1758         (WebKit::WebPluginScrollbar::createForPlugin):
1759         (WebKit::WebPluginScrollbar::defaultThickness):
1760         (WebKit::WebPluginScrollbarImpl::WebPluginScrollbarImpl):
1761         (WebKit::WebPluginScrollbarImpl::~WebPluginScrollbarImpl):
1762         (WebKit::WebPluginScrollbarImpl::setScrollOffset):
1763         (WebKit::WebPluginScrollbarImpl::invalidateScrollbarRect):
1764         (WebKit::WebPluginScrollbarImpl::getTickmarks):
1765         (WebKit::WebPluginScrollbarImpl::convertFromContainingViewToScrollbar):
1766         (WebKit::WebPluginScrollbarImpl::scrollbarStyleChanged):
1767         (WebKit::WebPluginScrollbarImpl::isOverlay):
1768         (WebKit::WebPluginScrollbarImpl::value):
1769         (WebKit::WebPluginScrollbarImpl::setLocation):
1770         (WebKit::WebPluginScrollbarImpl::setValue):
1771         (WebKit::WebPluginScrollbarImpl::setDocumentSize):
1772         (WebKit::WebPluginScrollbarImpl::scroll):
1773         (WebKit::WebPluginScrollbarImpl::paint):
1774         (WebKit::WebPluginScrollbarImpl::handleInputEvent):
1775         (WebKit::WebPluginScrollbarImpl::onMouseDown):
1776         (WebKit::WebPluginScrollbarImpl::onMouseUp):
1777         (WebKit::WebPluginScrollbarImpl::onMouseMove):
1778         (WebKit::WebPluginScrollbarImpl::onMouseLeave):
1779         (WebKit::WebPluginScrollbarImpl::onMouseWheel):
1780         (WebKit::WebPluginScrollbarImpl::onKeyDown):
1781         * src/WebPluginScrollbarImpl.h: Added.
1782         (WebCore):
1783         (WebKit):
1784         (WebPluginScrollbarImpl):
1785         (WebKit::WebPluginScrollbarImpl::scrollOffset):
1786         (WebKit::WebPluginScrollbarImpl::scrollbar):
1787         * src/WebScrollbarImpl.h: Removed.
1788
1789 2012-06-28  Adam Barth  <abarth@webkit.org>
1790
1791         [Chromium] On Android, we should be able to ask the embedder what intents exist in a region of the page
1792         https://bugs.webkit.org/show_bug.cgi?id=90210
1793
1794         Reviewed by Dimitri Glazkov.
1795
1796         This patch introduces a function that asks the embedder to analyze the
1797         region around a hit test result for interesting content, like phone
1798         numbers, email addresses, or physical addresses. The embedder then
1799         responds with the "most interesting" content, together with an intent
1800         URL for enacting the intent embodied by that content.
1801
1802         This function will be used in a subsequent patch to detect content
1803         after touch events.
1804
1805         * WebKit.gyp:
1806         * public/WebContentDetectionResult.h: Added.
1807         (WebKit):
1808         (WebContentDetectionResult):
1809         (WebKit::WebContentDetectionResult::WebContentDetectionResult):
1810         (WebKit::WebContentDetectionResult::isValid):
1811         (WebKit::WebContentDetectionResult::range):
1812         (WebKit::WebContentDetectionResult::string):
1813         (WebKit::WebContentDetectionResult::intent):
1814         * public/WebViewClient.h:
1815         (WebViewClient):
1816         (WebKit::WebViewClient::detechContentAround):
1817
1818 2012-06-28  Alec Flett  <alecflett@chromium.org>
1819
1820         IndexedDB: Hook up render-side key ASSERTing for get()
1821         https://bugs.webkit.org/show_bug.cgi?id=90001
1822
1823         Reviewed by Tony Chang.
1824
1825         Hook up Chromium WebKit API to new onSuccess handler.
1826
1827         * src/WebIDBCallbacksImpl.cpp:
1828         (WebKit::WebIDBCallbacksImpl::onSuccess):
1829         * tests/IDBAbortOnCorruptTest.cpp:
1830         (WebCore::MockIDBCallbacks::onSuccess):
1831         * tests/IDBDatabaseBackendTest.cpp:
1832
1833 2012-06-28  Sheriff Bot  <webkit.review.bot@gmail.com>
1834
1835         Unreviewed.  Rolled DEPS.
1836
1837         * DEPS:
1838
1839 2012-06-28  Alpha Lam  <hclam@chromium.org>
1840
1841         Unreviewed, rolling out r121463.
1842         http://trac.webkit.org/changeset/121463
1843         https://bugs.webkit.org/show_bug.cgi?id=90094
1844
1845         Broke Windows build.
1846
1847         * WebKit.gypi:
1848         * WebKitUnitTests.gyp:
1849         * public/WebDOMMessageEvent.h:
1850         * tests/AssociatedURLLoaderTest.cpp:
1851         (WebKit::AssociatedURLLoaderTest::AssociatedURLLoaderTest):
1852         (WebKit::AssociatedURLLoaderTest::SetUp):
1853         (WebKit::AssociatedURLLoaderTest::CheckMethodFails):
1854         (WebKit::AssociatedURLLoaderTest::CheckHeaderFails):
1855         (WebKit::AssociatedURLLoaderTest::CheckAccessControlHeaders):
1856         (WebKit::TEST_F):
1857         * tests/EventListenerTest.cpp:
1858         * tests/FrameTestHelpers.cpp:
1859         (WebKit::FrameTestHelpers::registerMockedURLLoad):
1860         (FrameTestHelpers):
1861         (WebKit::FrameTestHelpers::loadFrame):
1862         * tests/FrameTestHelpers.h:
1863         (FrameTestHelpers):
1864         * tests/ListenerLeakTest.cpp:
1865         (WebKit::ListenerLeakTest::RunTest):
1866         * tests/PopupMenuTest.cpp:
1867         (WebKit::SelectPopupMenuTest::registerMockedURLLoad):
1868         (WebKit::SelectPopupMenuTest::loadFrame):
1869         (WebKit::TEST_F):
1870         * tests/RunAllTests.cpp:
1871         * tests/URLTestHelpers.cpp: Removed.
1872         * tests/URLTestHelpers.h: Removed.
1873         * tests/WebFrameTest.cpp:
1874         (WebKit::WebFrameTest::registerMockedHttpURLLoad):
1875         (WebKit::WebFrameTest::registerMockedChromeURLLoad):
1876         (WebKit::TEST_F):
1877         * tests/WebPageNewSerializerTest.cpp:
1878         (WebKit::WebPageNewSerializeTest::registerMockedURLLoad):
1879         (WebPageNewSerializeTest):
1880         (WebKit::WebPageNewSerializeTest::setUpCSSTestPage):
1881         (WebKit::WebPageNewSerializeTest::loadURLInTopFrame):
1882         (WebKit::WebPageNewSerializeTest::resourceVectorContains):
1883         (WebKit::TEST_F):
1884         * tests/WebPageSerializerTest.cpp:
1885         (WebKit::WebPageSerializerTest::registerMockedURLLoad):
1886         (WebKit::WebPageSerializerTest::loadURLInTopFrame):
1887         (WebKit::WebPageSerializerTest::webVectorContains):
1888         (WebKit::TEST_F):
1889         * tests/WebViewTest.cpp:
1890         (WebKit::TEST_F):
1891         (WebKit::WebViewTest::testAutoResize):
1892         (WebKit::WebViewTest::testTextInputType):
1893
1894 2012-06-28  Shawn Singh  <shawnsingh@chromium.org>
1895
1896         [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests
1897         https://bugs.webkit.org/show_bug.cgi?id=90094
1898
1899         Reviewed by Adam Barth.
1900
1901         This patch adds the WEBKIT_IMPLEMENTATION = 1 define to
1902         WebKitUnitTests.gyp. To get it to compile correctly, some string
1903         and URL code was refactored and fixed.
1904
1905         * WebKit.gypi:
1906         * WebKitUnitTests.gyp:
1907         * public/WebDOMMessageEvent.h:
1908         (WebKit::WebDOMMessageEvent::WebDOMMessageEvent):
1909         * tests/AssociatedURLLoaderTest.cpp:
1910         * tests/EventListenerTest.cpp:
1911         * tests/FrameTestHelpers.cpp:
1912         (WebKit::FrameTestHelpers::loadFrame):
1913         * tests/FrameTestHelpers.h:
1914         * tests/ListenerLeakTest.cpp:
1915         (WebKit::ListenerLeakTest::RunTest):
1916         * tests/PopupMenuTest.cpp:
1917         * tests/RunAllTests.cpp:
1918         * tests/URLTestHelpers.cpp: Added.
1919         (URLTestHelpers):
1920         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
1921         (WebKit::URLTestHelpers::registerMockedURLLoad):
1922         * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h.
1923         (WebKit):
1924         (URLTestHelpers):
1925         (WebKit::URLTestHelpers::toKURL):
1926         * tests/WebFrameTest.cpp:
1927         * tests/WebPageNewSerializerTest.cpp:
1928         * tests/WebPageSerializerTest.cpp:
1929         * tests/WebViewTest.cpp:
1930
1931 2012-06-28  Oli Lan  <olilan@chromium.org>
1932
1933         [chromium] Change WebViewImpl::textInputInfo to use root editable element.
1934         https://bugs.webkit.org/show_bug.cgi?id=90179
1935
1936         Reviewed by Adam Barth.
1937
1938         WebViewImpl::textInputInfo currently returns text value and offsets relative to the
1939         focused node. For contenteditable nodes, this may not give the expected result.
1940
1941         This patch changes the method to return value and offsets for the root editable element.
1942         This also allows the implementation to be simplified somewhat.
1943
1944         This also ensures that the offsets returned will use the same basis as the recently added
1945         method Editor::setSelectionOffsets (and WebViewImpl::setEditableSelectionOffsets).
1946
1947         Testing for textInputInfo has been added to WebViewTest.
1948
1949         * src/WebViewImpl.cpp:
1950         (WebKit::WebViewImpl::textInputInfo):
1951         * tests/WebViewTest.cpp:
1952         (WebKit::TEST_F):
1953
1954 2012-06-28  James Robinson  <jamesr@chromium.org>
1955
1956         [chromium] Should schedule a commit when dropping contents textures
1957         https://bugs.webkit.org/show_bug.cgi?id=90031
1958
1959         Reviewed by Adrienne Walker.
1960
1961         Adds a somewhat vacuous test unit test for committing when releasing textures.
1962
1963         * tests/CCLayerTreeHostImplTest.cpp:
1964
1965 2012-06-27  Dana Jansens  <danakj@chromium.org>
1966
1967         [chromium] Do not multiply bounds by contentsScale in TiledLayerChromium and CanvasLayerTextureUpdater
1968         https://bugs.webkit.org/show_bug.cgi?id=90103
1969
1970         Reviewed by Adrienne Walker.
1971
1972         * tests/CCTiledLayerTestCommon.cpp:
1973         (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate):
1974         * tests/CCTiledLayerTestCommon.h:
1975         (FakeTiledLayerChromium):
1976         * tests/TiledLayerChromiumTest.cpp:
1977
1978 2012-06-28  Dan Alcantara  <dfalcantara@chromium.org>
1979
1980         [chromium] Introduce way to reload a page using the original request URL
1981         https://bugs.webkit.org/show_bug.cgi?id=89788
1982
1983         Reviewed by Adam Barth.
1984
1985         Adds a new reload method for cases where we need to override the URL
1986         when reloading a page. This is needed for situations where a server
1987         redirects navigation based on information that may have changed since
1988         the last time the page was loaded.
1989         
1990         User agents, for example, can cause a server to redirect to the mobile
1991         version of a page.  Changing to the desktop version by switching user agents
1992         requires loading a URL from before the redirect occurred.
1993
1994         Also adds a unit test to confirm that scroll position and page scale are
1995         saved when the reload occurs.
1996
1997         * public/WebFrame.h:
1998         (WebFrame):
1999         * src/WebFrameImpl.cpp:
2000         (WebKit::WebFrameImpl::reloadWithGivenURL):
2001         (WebKit):
2002         * src/WebFrameImpl.h:
2003         (WebFrameImpl):
2004         * src/WebViewImpl.cpp:
2005         (WebKit::WebViewImpl::WebViewImpl):
2006         (WebKit::WebViewImpl::setClearPageScaleFactorOnLoad):
2007         (WebKit):
2008         (WebKit::WebViewImpl::didCommitLoad):
2009         * src/WebViewImpl.h:
2010         (WebViewImpl):
2011
2012 2012-06-28  Sheriff Bot  <webkit.review.bot@gmail.com>
2013
2014         Unreviewed, rolling out r121395.
2015         http://trac.webkit.org/changeset/121395
2016         https://bugs.webkit.org/show_bug.cgi?id=90143
2017
2018         Patch causes crashes in fast/workers/worker-context-gc.html
2019         (Requested by zdobersek on #webkit).
2020
2021         * src/WebSharedWorkerImpl.cpp:
2022         (WebKit::WebSharedWorkerImpl::startWorkerContext):
2023         * src/WebWorkerClientImpl.cpp:
2024         (WebKit::WebWorkerClientImpl::startWorkerContext):
2025
2026 2012-06-28  Yoshifumi Inoue  <yosin@chromium.org>
2027
2028         [Platform] Implement functions for localized time format information
2029         https://bugs.webkit.org/show_bug.cgi?id=89965
2030
2031         Reviewed by Kent Tamura.
2032
2033         This patch adds new test LocalizedDateICUTest if ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS)
2034         is true.
2035
2036         * WebKit.gypi:
2037         * tests/LocalizedDateICUTest.cpp: Added.
2038         (LocalizedDateICUTest):
2039         (Labels):
2040         (LocalizedDateICUTest::Labels::Labels):
2041         (LocalizedDateICUTest::Labels::operator==):
2042         (LocalizedDateICUTest::Labels::toString):
2043         (LocalizedDateICUTest::labels):
2044         (LocalizedDateICUTest::localizedDateFormatText):
2045         (LocalizedDateICUTest::localizedShortDateFormatText):
2046         (LocalizedDateICUTest::timeAMPMLabels):
2047         (operator<<):
2048         (TEST_F):
2049
2050 2012-06-27  Sheriff Bot  <webkit.review.bot@gmail.com>
2051
2052         Unreviewed, rolling out r121405.
2053         http://trac.webkit.org/changeset/121405
2054         https://bugs.webkit.org/show_bug.cgi?id=90135
2055
2056         broke windows build (Requested by shawnsingh_ on #webkit).
2057
2058         * WebKit.gypi:
2059         * WebKitUnitTests.gyp:
2060         * public/WebDOMMessageEvent.h:
2061         * tests/AssociatedURLLoaderTest.cpp:
2062         (WebKit::AssociatedURLLoaderTest::AssociatedURLLoaderTest):
2063         (WebKit::AssociatedURLLoaderTest::SetUp):
2064         (WebKit::AssociatedURLLoaderTest::CheckMethodFails):
2065         (WebKit::AssociatedURLLoaderTest::CheckHeaderFails):
2066         (WebKit::AssociatedURLLoaderTest::CheckAccessControlHeaders):
2067         (WebKit::TEST_F):
2068         * tests/EventListenerTest.cpp:
2069         * tests/FrameTestHelpers.cpp:
2070         (WebKit::FrameTestHelpers::registerMockedURLLoad):
2071         (FrameTestHelpers):
2072         (WebKit::FrameTestHelpers::loadFrame):
2073         * tests/FrameTestHelpers.h:
2074         (FrameTestHelpers):
2075         * tests/ListenerLeakTest.cpp:
2076         (WebKit::ListenerLeakTest::RunTest):
2077         * tests/PopupMenuTest.cpp:
2078         (WebKit::SelectPopupMenuTest::registerMockedURLLoad):
2079         (WebKit::SelectPopupMenuTest::loadFrame):
2080         * tests/RunAllTests.cpp:
2081         * tests/URLTestHelpers.cpp: Removed.
2082         * tests/URLTestHelpers.h: Removed.
2083         * tests/WebFrameTest.cpp:
2084         (WebKit::WebFrameTest::registerMockedHttpURLLoad):
2085         (WebKit::WebFrameTest::registerMockedChromeURLLoad):
2086         (WebKit::TEST_F):
2087         * tests/WebPageNewSerializerTest.cpp:
2088         (WebKit::WebPageNewSerializeTest::registerMockedURLLoad):
2089         (WebPageNewSerializeTest):
2090         (WebKit::WebPageNewSerializeTest::setUpCSSTestPage):
2091         (WebKit::WebPageNewSerializeTest::loadURLInTopFrame):
2092         (WebKit::WebPageNewSerializeTest::resourceVectorContains):
2093         (WebKit::TEST_F):
2094         * tests/WebPageSerializerTest.cpp:
2095         (WebKit::WebPageSerializerTest::registerMockedURLLoad):
2096         (WebKit::WebPageSerializerTest::loadURLInTopFrame):
2097         (WebKit::WebPageSerializerTest::webVectorContains):
2098         (WebKit::TEST_F):
2099         * tests/WebViewTest.cpp:
2100         (WebKit::TEST_F):
2101         (WebKit::WebViewTest::testAutoResize):
2102         (WebKit::WebViewTest::testTextInputType):
2103
2104 2012-06-27  Shawn Singh  <shawnsingh@chromium.org>
2105
2106         [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests
2107         https://bugs.webkit.org/show_bug.cgi?id=90094
2108
2109         Reviewed by James Robinson.
2110
2111         This patch adds the WEBKIT_IMPLEMENTATION = 1 define to
2112         WebKitUnitTests.gyp. To get it to compile correctly, some string
2113         and URL code was refactored and fixed.
2114
2115         * WebKit.gypi:
2116         * WebKitUnitTests.gyp:
2117         * public/WebDOMMessageEvent.h:
2118         (WebKit::WebDOMMessageEvent::WebDOMMessageEvent):
2119         * tests/AssociatedURLLoaderTest.cpp:
2120         * tests/EventListenerTest.cpp:
2121         * tests/FrameTestHelpers.cpp:
2122         (WebKit::FrameTestHelpers::loadFrame):
2123         * tests/FrameTestHelpers.h:
2124         * tests/ListenerLeakTest.cpp:
2125         (WebKit::ListenerLeakTest::RunTest):
2126         * tests/PopupMenuTest.cpp:
2127         * tests/RunAllTests.cpp:
2128         * tests/URLTestHelpers.cpp: Added.
2129         (URLTestHelpers):
2130         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
2131         (WebKit::URLTestHelpers::registerMockedURLLoad):
2132         * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h.
2133         (WebKit):
2134         (URLTestHelpers):
2135         (WebKit::URLTestHelpers::toKURL):
2136         * tests/WebFrameTest.cpp:
2137         * tests/WebPageNewSerializerTest.cpp:
2138         * tests/WebPageSerializerTest.cpp:
2139         * tests/WebViewTest.cpp:
2140
2141 2012-06-27  Yoshifumi Inoue  <yosin@chromium.org>
2142
2143         [Platform] Implement localizedDecimalSeparator function
2144         https://bugs.webkit.org/show_bug.cgi?id=90036
2145
2146         Reviewed by Kent Tamura.
2147
2148         This patch adds test case for localizedDecimalSeparator().
2149
2150         * tests/LocalizedNumberICUTest.cpp:
2151         (testDecimalSeparator):
2152         (TEST):
2153
2154 2012-06-27  Yusuke Sato  <yusukes@chromium.org>
2155
2156         [chromium] Improve keyboardEvent() so a web page could receive a DOM3 spec compliant keyboard event.
2157         https://bugs.webkit.org/show_bug.cgi?id=89637
2158
2159         Reviewed by Tony Chang.
2160
2161         This is a Gtk port of http://crrev.com/142209.
2162
2163         Normalizes event->state to make it Windows/Mac compatible. Since the
2164         way of setting modifier mask on X is very different than Windows/Mac
2165         as shown in http://crbug.com/127142#c8, the normalization is necessary.
2166
2167         * src/gtk/WebInputEventFactory.cpp:
2168         (WebKit):
2169         (WebKit::normalizeEventState):
2170         (WebKit::WebInputEventFactory::keyboardEvent):
2171
2172 2012-06-27  James Robinson  <jamesr@chromium.org>
2173
2174         [chromium] Use SkColor in compositor internals
2175         https://bugs.webkit.org/show_bug.cgi?id=90108
2176
2177         Reviewed by Adrienne Walker.
2178
2179         * src/NonCompositedContentHost.cpp:
2180         (WebKit::NonCompositedContentHost::setBackgroundColor):
2181         * tests/CCLayerImplTest.cpp:
2182         (WebCore::TEST):
2183         * tests/CCLayerTreeHostImplTest.cpp:
2184         * tests/CCSolidColorLayerImplTest.cpp:
2185         (CCLayerTestCommon::TEST):
2186         * tests/LayerChromiumTest.cpp:
2187
2188 2012-06-27  Charles Wei  <charles.wei@torchmobile.com.cn>
2189
2190         IndexedDB: should make the LevelDB persistant to the directory indicated in PageGroupSettings::indexedDBDataBasePath
2191         https://bugs.webkit.org/show_bug.cgi?id=88338
2192
2193         Reviewed by David Levin.
2194
2195         * src/WebSharedWorkerImpl.cpp:
2196         (WebKit::WebSharedWorkerImpl::startWorkerContext):
2197         * src/WebWorkerClientImpl.cpp:
2198         (WebKit::WebWorkerClientImpl::startWorkerContext):
2199
2200 2012-06-27  Joshua Bell  <jsbell@chromium.org>
2201
2202         [Chromium] IndexedDB: Expose WebIDBTransaction::commit() method in public API
2203         https://bugs.webkit.org/show_bug.cgi?id=90089
2204
2205         Reviewed by James Robinson.
2206
2207         Prep work for http://webkit.org/b/89379 which requires empty transactions to
2208         trigger a commit from the front-end.
2209
2210         * public/WebIDBTransaction.h:
2211         (WebKit::WebIDBTransaction::commit):
2212
2213 2012-06-27  Josh Horwich  <jhorwich@chromium.org>
2214
2215         [chromium] Expose device scale factor in WebPluginContainer
2216         https://bugs.webkit.org/show_bug.cgi?id=87874
2217
2218         Reviewed by Adam Barth.
2219
2220         * public/WebPluginContainer.h:
2221         (WebPluginContainer):
2222         * src/WebPluginContainerImpl.cpp:
2223         (WebKit::WebPluginContainerImpl::deviceScaleFactor):
2224         (WebKit):
2225         (WebKit::WebPluginContainerImpl::pageScaleFactor):
2226         (WebKit::WebPluginContainerImpl::pageZoomFactor):
2227         * src/WebPluginContainerImpl.h:
2228         (WebPluginContainerImpl):
2229
2230 2012-06-27  Robert Kroeger  <rjkroege@chromium.org>
2231
2232         [chromium] out-of-order assert in WebViewImpl setDeviceScaleFactor
2233         https://bugs.webkit.org/show_bug.cgi?id=90006
2234
2235         The assert in WebViewImpl::setDeviceScaleFactor should test for non-scaling
2236         after we have set both m_DeviceScaleInCompositor and page()->deviceScaleFactor()
2237         instead of in between.
2238
2239         Reviewed by James Robinson.
2240
2241         * src/WebViewImpl.cpp:
2242         (WebKit::WebViewImpl::setDeviceScaleFactor):
2243
2244 2012-06-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2245
2246         Unreviewed.  Rolled DEPS.
2247
2248         * DEPS:
2249
2250 2012-06-26  James Robinson  <jamesr@chromium.org>
2251
2252         [chromium] Remove WebView::graphicsContext3D getter
2253         https://bugs.webkit.org/show_bug.cgi?id=89916
2254
2255         Reviewed by Adrienne Walker.
2256
2257         Removes WebView::graphicsContext3D getter. This getter was used to access the compositor's context, which is an
2258         inherently dangerous operation since the compositor context may not be safe to use on the main thread and has
2259         somewhat complicated creation / recreation semantics. A shared context is exposed
2260         (WebView::sharedGraphicsContext3D) for callers who may want access to a context in a share group with the
2261         compositor.
2262
2263         * public/WebView.h:
2264         (WebView):
2265         * src/WebLayerTreeView.cpp:
2266         * src/WebViewImpl.cpp:
2267         * src/WebViewImpl.h:
2268         (WebViewImpl):
2269
2270 2012-06-26  Peter Beverloo  <peter@chromium.org>
2271
2272         [Chromium] Decrease the number of conditional blocks in features.gypi
2273         https://bugs.webkit.org/show_bug.cgi?id=90013
2274
2275         Reviewed by Adam Barth.
2276
2277         Consolidate two Android-specific and accelerated-compositing-specific
2278         conditional blocks into other blocks which serve an identical purpose.
2279
2280         * features.gypi:
2281
2282 2012-06-26  Dave Tu  <dtu@chromium.org>
2283
2284         [chromium] Expose rendering statistics to WebWidget.
2285         https://bugs.webkit.org/show_bug.cgi?id=88268
2286
2287         Reviewed by James Robinson.
2288
2289         The WebKit side of a basic framework for exposing rendering statistics
2290         to Chromium's --enable-benchmarking extension.
2291
2292         * src/WebLayerTreeView.cpp:
2293         (WebKit::WebLayerTreeView::renderingStatistics):
2294         (WebKit):
2295
2296 2012-06-25  James Robinson  <jamesr@chromium.org>
2297
2298         [chromium] Add WebLayer API for scrolling
2299         https://bugs.webkit.org/show_bug.cgi?id=89913
2300
2301         Reviewed by Adrienne Walker.
2302
2303         Use WebScrollableLayer type in NonCompositedContentHost.
2304
2305         * WebKit.gyp:
2306         * src/NonCompositedContentHost.cpp:
2307         (WebKit::NonCompositedContentHost::setScrollLayer):
2308         (WebKit::reserveScrollbarLayers):
2309         (WebKit::NonCompositedContentHost::setViewport):
2310         (WebKit::NonCompositedContentHost::haveScrollLayer):
2311         (WebKit):
2312         (WebKit::NonCompositedContentHost::scrollLayer):
2313         * src/NonCompositedContentHost.h:
2314         (WebCore):
2315         * src/WebContentLayer.cpp:
2316         (WebKit::WebContentLayer::WebContentLayer):
2317         * src/WebLayer.cpp:
2318         (WebKit::WebLayer::numberOfChildren):
2319         (WebKit):
2320         (WebKit::WebLayer::childAt):
2321         (WebKit::WebLayer::setAlwaysReserveTextures):
2322         * src/WebScrollableLayer.cpp:
2323         (WebKit):
2324         (WebKit::WebScrollableLayer::setScrollPosition):
2325         (WebKit::WebScrollableLayer::setScrollable):
2326         (WebKit::WebScrollableLayer::setHaveWheelEventHandlers):
2327         (WebKit::WebScrollableLayer::setShouldScrollOnMainThread):
2328
2329 2012-06-26  Ian Vollick  <vollick@chromium.org>
2330
2331         [chromium] The single thread proxy should not automatically tick new animations.
2332         https://bugs.webkit.org/show_bug.cgi?id=89996
2333
2334         Reviewed by James Robinson.
2335
2336         * WebKit.gypi:
2337         * tests/CCSingleThreadProxyTest.cpp: Removed.
2338
2339 2012-06-26  Ian Vollick  <vollick@chromium.org>
2340
2341         [chromium] Layer chromium should need a redraw after getting its first non-empty bounds.
2342         https://bugs.webkit.org/show_bug.cgi?id=89784
2343
2344         Reviewed by James Robinson.
2345
2346         Previously, we'd only set needs redraw if the old bounds were zero,
2347         and the new bounds were non-zero, but we should actually have 
2348         checked that the old bounds were non-empty.
2349
2350         * tests/LayerChromiumTest.cpp:
2351
2352 2012-06-26  James Robinson  <jamesr@chromium.org>
2353
2354         [chromium] Remove dead compositor-related API from GraphicsContext3DPrivate / Extensions3DChromium
2355         https://bugs.webkit.org/show_bug.cgi?id=89933
2356
2357         Reviewed by Kenneth Russell.
2358
2359         * tests/Canvas2DLayerBridgeTest.cpp:
2360         (Canvas2DLayerBridgeTest::fullLifecycleTest):
2361
2362 2012-06-26  Shawn Singh  <shawnsingh@chromium.org>
2363
2364         [chromium] Fix incorrect #ifdef WEBKIT_IMPLEMENTATION statements
2365         https://bugs.webkit.org/show_bug.cgi?id=89931
2366
2367         Reviewed by James Robinson.
2368
2369         WEBKIT_IMPLEMENTATION is defined as either 0 or 1, so the usage of
2370         #ifdef or #if have different behavior. There are some places in
2371         the code that use "#ifdef WEBKIT_IMLPEMENTATION", but they should
2372         actually be "#if WEBKIT_IMPLEMENTATION". This patch fixes those
2373         #ifdef statements.
2374
2375         * public/WebTextRun.h:
2376         (WebTextRun):
2377         * public/linux/WebFontRenderStyle.h:
2378
2379 2012-06-26  Jun Mukai  <mukai@chromium.org>
2380
2381         Allow using <input type="color"> UI in ChromeOS.
2382         https://bugs.webkit.org/show_bug.cgi?id=89944
2383
2384         Reviewed by Kent Tamura.
2385
2386         http://crrev.com/144111 adds the UI of <input type="color"> for
2387         ChromeOS, so now we can set its flag too.
2388
2389         * features.gypi:
2390
2391 2012-06-25  Ryosuke Niwa  <rniwa@webkit.org>
2392
2393         Get rid of firstItem and nextItem from HTMLCollection
2394         https://bugs.webkit.org/show_bug.cgi?id=89923
2395
2396         Reviewed by Andreas Kling.
2397
2398         Re-implement WebNodeCollection::firstItem() and WebNodeCollection::nextItem() in WebKit code
2399         because we got rid of it from WebCore implementation.
2400
2401         This is an extremely poor API and we shouldn't be exposing it in the future.
2402
2403         * public/WebNodeCollection.h:
2404         (WebKit::WebNodeCollection::WebNodeCollection):
2405         (WebNodeCollection):
2406         * src/WebNodeCollection.cpp:
2407         (WebKit::WebNodeCollection::nextItem):
2408         (WebKit::WebNodeCollection::firstItem):
2409         * src/WebPageSerializerImpl.cpp:
2410         (WebKit::WebPageSerializerImpl::collectTargetFrames):
2411
2412 2012-06-25  Luke Macpherson  <macpherson@chromium.org>
2413
2414         Add runtime flag to enable/disable CSS variables (in addition to existing compile-time flag).
2415         https://bugs.webkit.org/show_bug.cgi?id=89542
2416
2417         Reviewed by Dimitri Glazkov.
2418
2419         * features.gypi:
2420         * public/WebSettings.h:
2421         * src/WebSettingsImpl.cpp:
2422         (WebKit::WebSettingsImpl::setExperimentalCSSVariablesEnabled):
2423         (WebKit):
2424         * src/WebSettingsImpl.h:
2425         (WebSettingsImpl):
2426
2427 2012-06-25  Adrienne Walker  <enne@google.com>
2428
2429         [chromium] Add WebPluginScrollbar and WebPluginScrollbarClient stub implementations
2430         https://bugs.webkit.org/show_bug.cgi?id=89928
2431
2432         Reviewed by Darin Fisher.
2433
2434         These classes are just typedef'd to be the non-Plugin version. The
2435         next step is to change Chromium to use the Plugin version, then move
2436         most of WebPluginScrollbar to a WebScrollbar in Platform to separate
2437         out the base functionality, while providing the same top level API.
2438
2439         * WebKit.gyp:
2440         * public/WebPluginScrollbar.h: Added.
2441         (WebKit):
2442         * public/WebPluginScrollbarClient.h: Added.
2443         (WebKit):
2444
2445 2012-06-25  Sheriff Bot  <webkit.review.bot@gmail.com>
2446
2447         Unreviewed.  Rolled DEPS.
2448
2449         * DEPS:
2450
2451 2012-06-25  Sheriff Bot  <webkit.review.bot@gmail.com>
2452
2453         Unreviewed, rolling out r121206.
2454         http://trac.webkit.org/changeset/121206
2455         https://bugs.webkit.org/show_bug.cgi?id=89935
2456
2457         [chromium] webkit_unit_tests
2458         WebViewTest.MHTMLWithMissingResourceFinishesLoading crash
2459         (Requested by ukai on #webkit).
2460
2461         * tests/EventListenerTest.cpp:
2462         * tests/FrameTestHelpers.cpp:
2463         (WebKit::FrameTestHelpers::registerMockedURLLoad):
2464         (WebKit::FrameTestHelpers::createWebViewAndLoad):
2465         * tests/FrameTestHelpers.h:
2466         (FrameTestHelpers):
2467         * tests/ListenerLeakTest.cpp:
2468         (WebKit::ListenerLeakTest::RunTest):
2469         * tests/WebFrameTest.cpp:
2470         (WebKit::WebFrameTest::registerMockedHttpURLLoad):
2471         (WebKit::WebFrameTest::registerMockedChromeURLLoad):
2472         * tests/WebViewTest.cpp:
2473         (WebKit::TEST_F):
2474         (WebKit::WebViewTest::testAutoResize):
2475         (WebKit::WebViewTest::testTextInputType):
2476
2477 2012-06-25  Adam Barth  <abarth@webkit.org>
2478
2479         [Chromium] Let the embedder override the max page scale factor set by the page
2480         https://bugs.webkit.org/show_bug.cgi?id=89406
2481
2482         Reviewed by James Robinson.
2483
2484         Chrome on Android has an option to force the web site to allow page
2485         scaling (for accessibility). This patch adds
2486         WebView::setIgnoreViewportTagMaximumScale, which instructs the WebView
2487         to ignore the maximum scale factor supplied by by the page in the
2488         viewport meta tag.
2489
2490         This patch is a bit different from how this is implemented on the
2491         chromium-android branch, but I'll clean up the branch once this patch
2492         lands.
2493
2494         * public/WebView.h:
2495         (WebView):
2496         * src/ChromeClientImpl.cpp:
2497         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
2498         * src/WebViewImpl.cpp:
2499         (WebKit::WebViewImpl::WebViewImpl):
2500         (WebKit::WebViewImpl::setIgnoreViewportTagMaximumScale):
2501         (WebKit):
2502         * src/WebViewImpl.h:
2503         (WebViewImpl):
2504         (WebKit::WebViewImpl::ignoreViewportTagMaximumScale):
2505         * tests/WebFrameTest.cpp:
2506         (WebKit::TEST_F):
2507         (WebKit):
2508
2509 2012-06-25  Sheriff Bot  <webkit.review.bot@gmail.com>
2510
2511         Unreviewed, rolling out r121176.
2512         http://trac.webkit.org/changeset/121176
2513         https://bugs.webkit.org/show_bug.cgi?id=89934
2514
2515         [chromium] browser_tests assert failed:
2516         FATAL:native_theme_win.cc(1541)] Check failed: false. Invalid
2517         part: 16 (Requested by ukai on #webkit).
2518
2519         * src/PlatformSupport.cpp:
2520
2521 2012-06-25  Jay Civelli  <jcivelli@chromium.org>
2522
2523         Fix progress load reporting for MHTML documents.
2524
2525         MHTML documents containing references to resources they don't include
2526         never finish loading.
2527         https://bugs.webkit.org/show_bug.cgi?id=71859
2528
2529         Reviewed by Nate Chapin.
2530
2531         * tests/EventListenerTest.cpp:
2532         * tests/FrameTestHelpers.cpp:
2533         (FrameTestHelpers):
2534         (WebKit::FrameTestHelpers::registerMockedURLLoad):
2535         (WebKit::FrameTestHelpers::registerMockedURLLoadAsHTML):
2536         (WebKit::FrameTestHelpers::createWebViewAndLoad):
2537         * tests/FrameTestHelpers.h:
2538         (FrameTestHelpers):
2539         * tests/ListenerLeakTest.cpp:
2540         (WebKit::ListenerLeakTest::RunTest):
2541         * tests/WebFrameTest.cpp:
2542         (WebKit::WebFrameTest::registerMockedHttpURLLoad):
2543         (WebKit::WebFrameTest::registerMockedChromeURLLoad):
2544         * tests/WebViewTest.cpp:
2545         (WebKit::TEST_F):
2546         (WebKit::WebViewTest::testAutoResize):
2547         (WebKit::WebViewTest::testTextInputType):
2548         (TestWebViewClient):
2549         (WebKit::TestWebViewClient::TestWebViewClient):
2550         (WebKit::TestWebViewClient::didStartLoading):
2551         (WebKit::TestWebViewClient::didStopLoading):
2552         (WebKit::TestWebViewClient::didChangeLoadProgress):
2553         (WebKit::TestWebViewClient::loadingStarted):
2554         (WebKit::TestWebViewClient::loadingStopped):
2555         (WebKit::TestWebViewClient::loadProgress):
2556         (WebKit):
2557
2558 2012-06-25  James Robinson  <jamesr@chromium.org>
2559
2560         [chromium] Use WebGraphicsContext3D in compositor implementation
2561         https://bugs.webkit.org/show_bug.cgi?id=89700
2562
2563         Reviewed by Adrienne Walker.
2564
2565         Updates tests for refactor, mostly by removing unnecessary GraphicsContext3D wrapper around mock contexts.
2566
2567         * WebKit.gypi:
2568         * src/WebLayerTreeView.cpp:
2569         (WebKit::WebLayerTreeView::context):
2570         * src/WebLayerTreeViewImpl.cpp:
2571         * tests/CCLayerTreeHostImplTest.cpp:
2572         * tests/CCLayerTreeHostTest.cpp:
2573         (WTF::CCLayerTreeHostTestAtomicCommit::commitCompleteOnCCThread):
2574         (WTF::CCLayerTreeHostTestAtomicCommit::drawLayersOnCCThread):
2575         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
2576         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::drawLayersOnCCThread):
2577         * tests/CCSingleThreadProxyTest.cpp:
2578         * tests/CCThreadedTest.cpp:
2579         (WebKitTests::TestHooks::createContext):
2580         * tests/CCThreadedTest.h:
2581         (TestHooks):
2582         * tests/Canvas2DLayerBridgeTest.cpp:
2583         (Canvas2DLayerBridgeTest::fullLifecycleTest):
2584         * tests/CompositorFakeGraphicsContext3D.h: Removed.
2585         * tests/DrawingBufferChromiumTest.cpp: Removed.
2586         * tests/FakeCCLayerTreeHostClient.h:
2587         * tests/FakeGraphicsContext3DTest.cpp:
2588         (TEST):
2589         * tests/GraphicsLayerChromiumTest.cpp:
2590         * tests/LayerRendererChromiumTest.cpp:
2591         (FakeLayerRendererChromium::FakeLayerRendererChromium):
2592         (LayerRendererChromiumTest::LayerRendererChromiumTest):
2593         (LayerRendererChromiumTest):
2594         (TEST_F):
2595         (TEST):
2596         * tests/TextureCopierTest.cpp:
2597         * tests/ThrottledTextureUploaderTest.cpp:
2598         (WebKit::TEST):
2599         * tests/TiledLayerChromiumTest.cpp:
2600
2601 2012-06-25  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
2602
2603         [Chromium] Add a chromium-webkit API to create a serializable file system.
2604         https://bugs.webkit.org/show_bug.cgi?id=89776
2605
2606         In order to send a DOMFileSystem as part of WebIntent payload data it
2607         should be serializable. Therefore, I added an API that allows us to
2608         create serializable file system in chromium code.
2609
2610         Reviewed by Adam Barth.
2611
2612         * public/WebFrame.h:
2613         (WebFrame):
2614         * src/WebFrameImpl.cpp:
2615         (WebKit::WebFrameImpl::createSerializableFileSystem):
2616         (WebKit):
2617         * src/WebFrameImpl.h:
2618         (WebFrameImpl):
2619
2620 2012-06-25  Alpha Lam  <hclam@chromium.org>
2621
2622         Unreviewed, rolling out r121178.
2623         http://trac.webkit.org/changeset/121178
2624         https://bugs.webkit.org/show_bug.cgi?id=89784
2625
2626         New unit test added is failing on WebKit Linux (dbg)
2627
2628         * tests/LayerChromiumTest.cpp:
2629
2630 2012-06-25  Alpha Lam  <hclam@chromium.org>
2631
2632         Unreviewed, rolling out r121129.
2633         http://trac.webkit.org/changeset/121129
2634         https://bugs.webkit.org/show_bug.cgi?id=89542
2635
2636         Chromium ASan failure: crbug.com/134402
2637
2638         * features.gypi:
2639         * public/WebSettings.h:
2640         * src/WebSettingsImpl.cpp:
2641         * src/WebSettingsImpl.h:
2642         (WebSettingsImpl):
2643
2644 2012-06-25  Alpha Lam  <hclam@chromium.org>
2645
2646         Roll Chromium DEPS to r144020
2647         https://bugs.webkit.org/show_bug.cgi?id=89912
2648
2649         Build fixed now! Unreviewed.
2650
2651         Rolled DEPS to fix chromium build.
2652         Patch by Scott Graham <scottmg@chromium.org>.
2653
2654         * DEPS:
2655
2656 2012-06-25  Alec Flett  <alecflett@chromium.org>
2657
2658         IndexedDB: Stub out new onSuccess() handler for chromium
2659         https://bugs.webkit.org/show_bug.cgi?id=89895
2660
2661         This is the chromium side of a refactor which will
2662         introduce an onSuccess() method which includes the raw
2663         SerializedScriptValue to the frontend, so the primaryKey
2664         injection can happen in the front end, rather than
2665         the V8 helper process.
2666
2667         Reviewed by Darin Fisher.
2668
2669         * public/WebIDBCallbacks.h:
2670         (WebKit):
2671         (WebKit::WebIDBCallbacks::onSuccess):
2672         * src/IDBCallbacksProxy.cpp:
2673         (WebKit::IDBCallbacksProxy::onSuccess):
2674         * src/IDBCallbacksProxy.h:
2675         (IDBCallbacksProxy):
2676         * src/WebIDBCallbacksImpl.cpp:
2677         (WebKit::WebIDBCallbacksImpl::onSuccess):
2678         (WebKit):
2679         * src/WebIDBCallbacksImpl.h:
2680         (WebIDBCallbacksImpl):
2681
2682 2012-06-25  Joshua Bell  <jsbell@chromium.org>
2683
2684         IndexedDB: Remove unused backend property accessors
2685         https://bugs.webkit.org/show_bug.cgi?id=89893
2686
2687         Reviewed by Darin Fisher.
2688
2689         Following the "metadata" API addition in trac.webkit.org/changeset/121059
2690         per-property accessors can be removed from the Chromium WebKit API.
2691
2692         * src/WebIDBDatabaseImpl.cpp: Removed name, version, objectStoreNames.
2693         * src/WebIDBDatabaseImpl.h:
2694         (WebIDBDatabaseImpl):
2695         * src/WebIDBIndexImpl.cpp: Removed name, keyPath, unique, multiEntry.
2696         * src/WebIDBIndexImpl.h:
2697         (WebIDBIndexImpl):
2698         * src/WebIDBObjectStoreImpl.cpp: Removed name, keyPath, autoIncrement, indexNames.
2699         * src/WebIDBObjectStoreImpl.h:
2700         (WebIDBObjectStoreImpl):
2701
2702 2012-06-25  Ian Vollick  <vollick@chromium.org>
2703
2704         [chromium] Layer chromium should need a redraw after getting its first non-empty bounds.
2705         https://bugs.webkit.org/show_bug.cgi?id=89784
2706
2707         Reviewed by James Robinson.
2708
2709         Previously, we'd only set needs redraw if the old bounds were zero,
2710         and the new bounds were non-zero, but we should actually have 
2711         checked that the old bounds were non-empty.
2712
2713         * tests/LayerChromiumTest.cpp:
2714
2715 2012-06-25  Scott Graham  <scottmg@chromium.org>
2716
2717         Plumb Scrollbar button dimensions down to WebThemeEngine
2718         https://bugs.webkit.org/show_bug.cgi?id=89264
2719
2720         Reviewed by James Robinson.
2721
2722         Rather than making the height of the scrollbar buttons the same as the
2723         width of the scrollbar, delegate to the WebThemeEngine. This allows
2724         matching the Aura theme rather than the standard Windows theme.
2725
2726         * src/PlatformSupport.cpp:
2727         (WebCore::PlatformSupport::getThemePartSize):
2728         (WebCore):
2729
2730 2012-06-25  Zeev Lieber  <zlieber@chromium.org>
2731
2732         [Chromium] RenderPass textures are evicted at the end of every frame
2733         https://bugs.webkit.org/show_bug.cgi?id=89786
2734
2735         Reviewed by Adrienne Walker.
2736
2737         Added unit tests to verify large textures are staying in memory
2738         and available for render pass optimization.
2739
2740         * tests/CCLayerTreeHostImplTest.cpp:
2741
2742 2012-06-25  Kinuko Yasuda  <kinuko@chromium.org>
2743
2744         Heap-use-after-free in WebKit::MainThreadFileSystemCallbacks
2745         https://bugs.webkit.org/show_bug.cgi?id=87019
2746
2747         Reviewed by David Levin.
2748
2749         Should not access the CallbacksBridge's member field after it's freed.
2750
2751         * src/WorkerFileSystemCallbacksBridge.cpp:
2752         (WebKit::WorkerFileSystemCallbacksBridge::cleanUpAfterCallback):
2753
2754 2012-06-24  Luke Macpherson  <macpherson@chromium.org>
2755
2756         Add runtime flag to enable/disable CSS variables (in addition to existing compile-time flag).
2757         https://bugs.webkit.org/show_bug.cgi?id=89542
2758
2759         Reviewed by Dimitri Glazkov.
2760
2761         * features.gypi:
2762         * public/WebSettings.h:
2763         * src/WebSettingsImpl.cpp:
2764         (WebKit::WebSettingsImpl::setExperimentalCSSVariablesEnabled):
2765         (WebKit):
2766         * src/WebSettingsImpl.h:
2767         (WebSettingsImpl):
2768
2769 2012-06-23  Kwang Yul Seo  <skyul@company100.net>
2770
2771         [chromium] Return has value, in function returning void
2772         https://bugs.webkit.org/show_bug.cgi?id=89822
2773
2774         Reviewed by Adam Barth.
2775
2776         A followup for r121091.
2777
2778         * src/WebHistoryItem.cpp:
2779         (WebKit::WebHistoryItem::setPageScaleFactor):
2780         * src/WebImageLayer.cpp:
2781         (WebKit::WebImageLayer::setBitmap):
2782         * src/WebLayer.cpp:
2783         (WebKit::WebLayer::setMaskLayer):
2784         * src/WebOptionElement.cpp:
2785         (WebKit::WebOptionElement::setValue):
2786         (WebKit::WebOptionElement::setDefaultSelected):
2787
2788 2012-06-23  Kwang Yul Seo  <skyul@company100.net>
2789
2790         [chromium] Return has value, in function returning void
2791         https://bugs.webkit.org/show_bug.cgi?id=89805
2792
2793         Reviewed by Adam Barth.
2794
2795         Make WebFrameImpl::replaceSelection not return a value because it is a function returning void.
2796
2797         * src/WebFrameImpl.cpp:
2798         (WebKit::WebFrameImpl::replaceSelection):
2799
2800 2012-06-22  Sheriff Bot  <webkit.review.bot@gmail.com>
2801
2802         Unreviewed.  Rolled DEPS.
2803
2804         * DEPS:
2805
2806 2012-06-22  David Grogan  <dgrogan@chromium.org>
2807
2808         IndexedDB: Avoid infinite loop if we try to encode -1 for leveldb
2809         https://bugs.webkit.org/show_bug.cgi?id=89625
2810
2811         Reviewed by Tony Chang.
2812
2813         * tests/IDBLevelDBCodingTest.cpp:
2814         (IDBLevelDBCoding::TEST):
2815
2816 2012-06-22  Michael Nordman  <michaeln@google.com>
2817
2818         [chromium] WebKit API plumbing for applicationCache.abort() 
2819         https://bugs.webkit.org/show_bug.cgi?id=89792
2820
2821         Reviewed by Darin Fisher.
2822
2823         * public/WebApplicationCacheHost.h:
2824         (WebKit::WebApplicationCacheHost::abort):
2825         * src/ApplicationCacheHost.cpp:
2826         (WebCore::ApplicationCacheHost::abort):
2827
2828 2012-06-22  James Robinson  <jamesr@chromium.org>
2829
2830         [chromium] LayerRendererChromium is not getting visibility messages in single threaded compositing mode.
2831         https://bugs.webkit.org/show_bug.cgi?id=89045
2832
2833         Reviewed by Adrienne Walker.
2834
2835         Based on patch by Michal Mocny <mmocny@google.com>.
2836
2837         Update various test fixtures and tests to cover scheduling, visibility, and resource allocation changes.
2838
2839         * tests/CCLayerTreeHostImplTest.cpp:
2840         * tests/CCLayerTreeHostTest.cpp:
2841         (CCLayerTreeHostTestAbortFrameWhenInvisible):
2842         (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::CCLayerTreeHostTestAbortFrameWhenInvisible):
2843         (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::beginTest):
2844         (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::afterTest):
2845         (WTF):
2846         (WTF::TEST_F):
2847         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
2848         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
2849         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
2850         * tests/CCSchedulerStateMachineTest.cpp:
2851         (WebCore::TEST):
2852         * tests/CCTiledLayerTestCommon.h:
2853         * tests/FakeWebGraphicsContext3D.h:
2854         (WebKit::FakeWebGraphicsContext3D::FakeWebGraphicsContext3D):
2855         (FakeWebGraphicsContext3D):
2856         (WebKit::FakeWebGraphicsContext3D::createTexture):
2857         * tests/LayerRendererChromiumTest.cpp:
2858         (TEST_F):
2859         * tests/TiledLayerChromiumTest.cpp:
2860
2861
2862 2012-06-22  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2863
2864         [chromium] Notify the document if a plugin accepts touch input events
2865         https://bugs.webkit.org/show_bug.cgi?id=89769
2866
2867         Reviewed by Adam Barth.
2868
2869         The browser sends touch events to webkit only if webkit has any touch-event handlers. So it is
2870         necessary to notify the document when a plugin starts accepting touch-events so that it can in
2871         turn tell the browser to send it touch events.
2872
2873         * public/WebPluginContainer.h:
2874         (WebPluginContainer):
2875         * src/WebPluginContainerImpl.cpp:
2876         (WebKit::WebPluginContainerImpl::setIsAcceptingTouchEvents):
2877         (WebKit):
2878         (WebKit::WebPluginContainerImpl::WebPluginContainerImpl):
2879         (WebKit::WebPluginContainerImpl::~WebPluginContainerImpl):
2880         * src/WebPluginContainerImpl.h:
2881         (WebPluginContainerImpl):
2882
2883 2012-06-22  Kenneth Russell  <kbr@google.com>
2884
2885         Unreviewed, rolling out r121064.
2886         http://trac.webkit.org/changeset/121064
2887         https://bugs.webkit.org/show_bug.cgi?id=88268
2888
2889         Broke Chromium Mac build.
2890
2891         * public/WebView.h:
2892         (WebKit):
2893         (WebView):
2894         * src/WebLayerTreeView.cpp:
2895         * src/WebViewImpl.cpp:
2896         * src/WebViewImpl.h:
2897         (WebViewImpl):
2898         * tests/CCLayerTreeHostTest.cpp:
2899         (WTF::CCLayerTreeHostTestScrollSimple::layout):
2900         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::drawLayersOnCCThread):
2901         (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommitAndDrawFrame):
2902         (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommit):
2903
2904 2012-06-22  Dave Tu  <dtu@chromium.org>
2905
2906         [chromium] Expose rendering statistics to WebWidget.
2907         https://bugs.webkit.org/show_bug.cgi?id=88268
2908
2909         Reviewed by James Robinson.
2910
2911         The WebKit side of a basic framework for exposing rendering statistics
2912         to Chromium's --enable-benchmarking extension.
2913
2914         * src/WebLayerTreeView.cpp:
2915         (WebKit::WebLayerTreeView::renderingStatistics):
2916         (WebKit):
2917
2918 2012-06-22  Shawn Singh  <shawnsingh@chromium.org>
2919
2920         [chromium] Do not accumulate occlusion from 3d layers on the main thread
2921         https://bugs.webkit.org/show_bug.cgi?id=89704
2922
2923         Reviewed by James Robinson.
2924
2925         * tests/CCOcclusionTrackerTest.cpp:
2926         (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):
2927         (WebKitTests):
2928         (CCOcclusionTrackerTestUnsorted3dLayers):
2929         (WebKitTests::CCOcclusionTrackerTestUnsorted3dLayers::runMyTest):
2930         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
2931
2932 2012-06-22  Joshua Bell  <jsbell@chromium.org>
2933
2934         IndexedDB: Snapshot metadata in front end to avoid IPC round-trips
2935         https://bugs.webkit.org/show_bug.cgi?id=88467
2936
2937         Reviewed by Tony Chang.
2938
2939         Add conversions to/from WebCore IDB metadata type and plumbing for routing the
2940         IDBDatabaseBackendInterface::metadata() call through the public API..
2941
2942         * WebKit.gyp: New file added.
2943         * public/WebIDBMetadata.h: Conversion functions.
2944         (WebCore):
2945         (WebIDBMetadata):
2946         * src/IDBDatabaseBackendProxy.cpp: Plumbing.
2947         (WebKit::IDBDatabaseBackendProxy::metadata):
2948         (WebKit):
2949         * src/IDBDatabaseBackendProxy.h: Plumbing.
2950         (IDBDatabaseBackendProxy):
2951         * src/WebIDBDatabaseImpl.cpp: Plumbing.
2952         (WebKit::WebIDBDatabaseImpl::metadata):
2953         (WebKit):
2954         * src/WebIDBDatabaseImpl.h: Plumbing.
2955         (WebKit):
2956         (WebIDBDatabaseImpl):
2957         * src/WebIDBMetadata.cpp: Added - conversion functions.
2958         (WebKit):
2959         (WebKit::WebIDBMetadata::WebIDBMetadata):
2960         (WebKit::WebIDBMetadata::operator IDBDatabaseMetadata):
2961
2962 2012-06-22  Fady Samuel  <fsamuel@chromium.org>
2963
2964         [Chromium] Browser Plugin: Expose advanceFocus to WebKit API so that guests can advance focus of theirs embedders
2965         https://bugs.webkit.org/show_bug.cgi?id=88827
2966
2967         Reviewed by Darin Fisher.
2968
2969         A browser plugin needs to be able to tells its embedder when the guest
2970         is done tabbing through controls and wants its embedder to advance its
2971         tab position.
2972
2973         * public/WebView.h:
2974         (WebView):
2975         (WebKit::WebView::advanceFocus):
2976         * src/WebViewImpl.cpp:
2977         (WebKit::WebViewImpl::advanceFocus):
2978         (WebKit):
2979         * src/WebViewImpl.h:
2980         (WebViewImpl):
2981
2982 2012-06-22  Jeff Timanus  <twiz@chromium.org>
2983
2984         [Chromium] Change implementing a fast-path for copying GPU-accelerated Canvas2D instances to WebGL textures.
2985         https://bugs.webkit.org/show_bug.cgi?id=86275
2986
2987         This change adds the necessary plumbing to the various rendering contexts to copy the backing store texture of
2988         a Canvas2D instance to be copied to a WebGL texture.  The GL_CHROMIUM_copy_texture extension is necessary
2989         because the backing-store for a GPU-accelerated skia Canvas2D is normally in BGRA format, which is not supported
2990         by glCopyTexImage.
2991
2992         Reviewed by Kenneth Russell.
2993
2994         * DEPS: Rolled chromium to 143630 to fix chromium-linux ews failures.
2995
2996 2012-06-22  Kenneth Russell  <kbr@google.com>
2997
2998         Unreviewed, rolling out r121025.
2999         http://trac.webkit.org/changeset/121025
3000         https://bugs.webkit.org/show_bug.cgi?id=89580
3001
3002         Caused crash in
3003         EventHandler.shouldTurnVerticalTicksIntoHorizontal webkit unit
3004         test on 10.7
3005
3006         * WebKit.gypi:
3007         * tests/EventHandlerTest.cpp: Removed.
3008
3009 2012-06-22  Peter Beverloo  <peter@chromium.org>
3010
3011         [Chromium] Disable c++0x compatibility warnings in JavaScriptCore.gyp when building for Android
3012         https://bugs.webkit.org/show_bug.cgi?id=88853
3013
3014         Reviewed by Steve Block.
3015
3016         The Android exclusions were necessary to fix a gyp generation error, as
3017         the gcc_version variable wasn't being defined for Android. Remove these
3018         exceptions when Chromium is able to define the gcc_version variable.
3019
3020         * WebKit.gyp:
3021         * WebKitUnitTests.gyp:
3022
3023 2012-06-22  Robert Kroeger  <rjkroege@chromium.org>
3024
3025         Suppress horizontal conversion of PlatformWheelEvents when hasPreciseScrollingDeltas is true
3026         https://bugs.webkit.org/show_bug.cgi?id=89580
3027
3028         WebKit GTK and Chromium Linux force vertical wheel events to
3029         scroll horizontally when over horizontal scroll bars.  This is
3030         undesirable for touchpad scrolling with hasPreciseScrollingDeltas() == true.
3031
3032         Added unit tests to show that
3033         EventHandler::shouldTurnVerticalTicksIntoHorizontal() is true
3034         only for PlatformWheelEvents when !hasPreciseScrollingDeltas().
3035
3036         Reviewed by Adam Barth.
3037
3038         * WebKit.gypi:
3039         * tests/EventHandlerTest.cpp: Added.
3040         (MockScrollbar):
3041         (MockScrollbar::MockScrollbar):
3042         (MockScrollbar::~MockScrollbar):
3043         (MockHitTestResult):
3044         (MockHitTestResult::MockHitTestResult):
3045         (MockHitTestResult::scrollbar):
3046         (MockPlatformWheelEvent):
3047         (MockPlatformWheelEvent::MockPlatformWheelEvent):
3048         (EventHandlerTest):
3049         (EventHandlerTest::EventHandlerTest):
3050         (EventHandlerTest::externalShouldTurnVerticalTicksIntoHorizontal):
3051         (TEST):
3052
3053 2012-06-22  Amy Ousterhout  <aousterh@chromium.org>
3054
3055         Renamed DeviceOrientation to DeviceOrientationData
3056         https://bugs.webkit.org/show_bug.cgi?id=88663
3057
3058         Reviewed by Steve Block.
3059
3060         Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation.
3061         This change makes DeviceOrientationData consistent with DeviceMotionData.
3062         
3063         * public/WebDeviceOrientation.h:
3064         (WebDeviceOrientation):
3065         * src/DeviceOrientationClientProxy.cpp:
3066         (WebKit::DeviceOrientationClientProxy::lastOrientation):
3067         * src/DeviceOrientationClientProxy.h:
3068         (DeviceOrientationClientProxy):
3069         * src/WebDeviceOrientation.cpp:
3070         (WebKit::WebDeviceOrientation::WebDeviceOrientation):
3071         (WebKit::WebDeviceOrientation::operator=):
3072         (WebKit::WebDeviceOrientation::operator PassRefPtr<WebCore::DeviceOrientationData>):
3073         * src/WebDeviceOrientationController.cpp:
3074         (WebKit::WebDeviceOrientationController::didChangeDeviceOrientation):
3075
3076 2012-06-22  Joseph Pecoraro  <pecoraro@apple.com>
3077
3078         Web Inspector: InspectorState::updateCookie should not do JSON serialization if unsupported
3079         https://bugs.webkit.org/show_bug.cgi?id=89743
3080
3081         The Chromium port does want InspectorState updates.
3082
3083         Reviewed by Yury Semikhatsky.
3084
3085         * src/InspectorClientImpl.h:
3086         (WebKit::InspectorClientImpl::supportsInspectorStateUpdates):
3087         * src/WebDevToolsAgentImpl.h:
3088         (WebKit::WebDevToolsAgentImpl::supportsInspectorStateUpdates):
3089
3090 2012-06-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3091
3092         Unreviewed, rolling out r120982.
3093         http://trac.webkit.org/changeset/120982
3094         https://bugs.webkit.org/show_bug.cgi?id=89740
3095
3096         [chromium] ASSERTION FAILED:
3097         m_allocatedTextureIds.contains(textureId) (Requested by ukai
3098         on #webkit).
3099
3100         * tests/CCLayerTreeHostImplTest.cpp:
3101         * tests/CCLayerTreeHostTest.cpp:
3102         (CCLayerTreeHostTestVisibilityAndAllocationControlDrawing):
3103         (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing):
3104         (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::beginTest):
3105         (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommitAndDrawFrame):
3106         (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::didCommit):
3107         (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::commitCompleteOnCCThread):
3108         (WTF::CCLayerTreeHostTestVisibilityAndAllocationControlDrawing::afterTest):
3109         (WTF):
3110         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
3111         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
3112         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
3113         * tests/CCSchedulerStateMachineTest.cpp:
3114         (WebCore::TEST):
3115         * tests/CCTiledLayerTestCommon.h:
3116         (WebKitTests::FakeTextureAllocator::createTexture):
3117         (WebKitTests::FakeTextureAllocator::deleteTexture):
3118         * tests/FakeWebGraphicsContext3D.h:
3119         (WebKit::FakeWebGraphicsContext3D::createTexture):
3120         (FakeWebGraphicsContext3D):
3121         * tests/LayerRendererChromiumTest.cpp:
3122         (TEST_F):
3123         * tests/TiledLayerChromiumTest.cpp:
3124
3125 2012-06-21  James Robinson  <jamesr@chromium.org>
3126
3127         [chromium] Initialize compositor's visibility state upon initialization
3128         https://bugs.webkit.org/show_bug.cgi?id=89712
3129
3130         Reviewed by Adrienne Walker.
3131
3132         A given WebViewImpl's visibility state might change any number of times before compositing is enabled. If the
3133         visibility state is not the default (visible) when the compositor is initialized, we need to let it know the
3134         correct visibility state or it will start ticking uselessly in threaded mode.
3135
3136         Tested manually, there's no way to create a new WebViewImpl in a non-visible state in a WebKit test that I know
3137         of.
3138
3139         * src/WebViewImpl.cpp:
3140         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3141
3142 2012-06-21  Sadrul Habib Chowdhury  <sadrul@chromium.org>
3143
3144         [chromium] Add touch-event support for WebPluginContainerImpl
3145         https://bugs.webkit.org/show_bug.cgi?id=89089
3146
3147         Reviewed by Adam Barth.
3148
3149         * src/WebPluginContainerImpl.cpp:
3150         (WebKit::WebPluginContainerImpl::handleEvent):
3151         * src/WebPluginContainerImpl.h:
3152         (WebCore):
3153         (WebPluginContainerImpl):
3154
3155 2012-06-21  Oli Lan  <olilan@chromium.org>
3156
3157         Add methods to select between offsets in an editable field.
3158         https://bugs.webkit.org/show_bug.cgi?id=89098
3159
3160         Reviewed by Ryosuke Niwa.
3161
3162         Reviewed by Ryosuke Niwa.
3163
3164         This adds a new method WebViewImpl::setEditableSelectionOffsets, which
3165         can be used to select between two character positions in the node
3166         currently beign edited.
3167
3168         The offsets are assumed to be relative to the rootEditableElement.
3169         
3170         This can be used for IME features that require the ability to manipulate
3171         the selection, for example on Android where the method InputConnection#setSelection
3172         is used.
3173
3174         This method calls a new method Editor::setSelectionOffsets.
3175
3176         The method works for inputs/textareas (i.e. text form controls) and
3177         contenteditable nodes, and the new test in WebViewTest tests both these cases.
3178
3179         * public/WebView.h:
3180         (WebView):
3181         * src/WebViewImpl.cpp:
3182         (WebKit::WebViewImpl::setEditableSelectionOffsets):
3183         (WebKit):
3184         * src/WebViewImpl.h:
3185         (WebViewImpl):
3186         * tests/WebViewTest.cpp:
3187         (WebKit::TEST_F):
3188         (WebKit):
3189         * tests/data/content_editable_populated.html: Added.
3190         * tests/data/input_field_populated.html: Added.
3191
3192 2012-06-19  James Robinson  <jamesr@chromium.org>
3193
3194         [chromium] LayerRendererChromium is not getting visibility messages in single threaded compositing mode.
3195         https://bugs.webkit.org/show_bug.cgi?id=89045
3196
3197         Reviewed by Adrienne Walker.
3198
3199         Based on patch by Michal Mocny <mmocny@google.com>.
3200
3201         Update various test fixtures and tests to cover scheduling, visibility, and resource allocation changes.
3202
3203         * tests/CCLayerTreeHostImplTest.cpp:
3204         * tests/CCLayerTreeHostTest.cpp:
3205         (CCLayerTreeHostTestAbortFrameWhenInvisible):
3206         (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::CCLayerTreeHostTestAbortFrameWhenInvisible):
3207         (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::beginTest):
3208         (WTF::CCLayerTreeHostTestAbortFrameWhenInvisible::afterTest):
3209         (WTF):
3210         (WTF::TEST_F):
3211         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
3212         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
3213         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
3214         * tests/CCSchedulerStateMachineTest.cpp:
3215         (WebCore::TEST):
3216         * tests/CCTiledLayerTestCommon.h:
3217         * tests/FakeWebGraphicsContext3D.h:
3218         (WebKit::FakeWebGraphicsContext3D::FakeWebGraphicsContext3D):
3219         (FakeWebGraphicsContext3D):
3220         (WebKit::FakeWebGraphicsContext3D::createTexture):
3221         * tests/LayerRendererChromiumTest.cpp:
3222         (TEST_F):
3223         * tests/TiledLayerChromiumTest.cpp:
3224
3225
3226 2012-06-21  Mike West  <mkwst@chromium.org>
3227
3228         [Chromium] Enable CSP_NEXT on the Chromium port.
3229         https://bugs.webkit.org/show_bug.cgi?id=89683
3230
3231         Reviewed by Adam Barth.
3232
3233         Enable CSP 1.1 on the Chromium port. This has zero practical effect,
3234         as no CSP 1.1 patches have landed yet. But it will. Oh it will.
3235
3236         * features.gypi: ENABLE_CSP_NEXT=1
3237
3238 2012-06-21  Alec Flett  <alecflett@chromium.org>
3239
3240         IndexedDB: Implement spec behavior for multiEntry indexes with invalid/duplicate subkeys
3241         https://bugs.webkit.org/show_bug.cgi?id=86123
3242
3243         Reviewed by Darin Fisher.
3244
3245         Add matching isValid() to WebIDBKey to match the one in IDBKey.
3246
3247         * public/WebIDBKey.h:
3248         * src/WebIDBKey.cpp:
3249         (WebKit::WebIDBKey::isValid):
3250         (WebKit):
3251         * src/WebIDBKeyRange.cpp:
3252         (WebKit::WebIDBKeyRange::assign):
3253
3254 2012-06-21  Ian Vollick  <vollick@chromium.org>
3255
3256         [chromium] Overlays when using the web inspector are blurry with device scale factor > 1
3257         https://bugs.webkit.org/show_bug.cgi?id=89676
3258
3259         Reviewed by James Robinson.
3260
3261         Whenever we construct a GraphicsLayerChromium, make initialize the
3262         device and page scale factors, if possible.
3263
3264         * tests/GraphicsLayerChromiumTest.cpp:
3265         (WebKitTests::TEST_F):
3266         (WebKitTests):
3267
3268 2012-06-21  Min Qin  <qinmin@chromium.org>
3269
3270         remove ENABLE_FULLSCREEN_MEDIA_CONTROL flag
3271         https://bugs.webkit.org/show_bug.cgi?id=89614
3272
3273         Reviewed by Eric Carlson.
3274
3275         Since desktop chrome now has fullscreen button, we don't need this flag anymore
3276
3277         * features.gypi:
3278
3279 2012-06-20  Zeev Lieber  <zlieber@chromium.org>
3280
3281         [Chromium] Damage tracker is not used without partial swap, causing valid render passes to be removed
3282         https://bugs.webkit.org/show_bug.cgi?id=89589
3283
3284         Reviewed by Adrienne Walker.
3285
3286         Added unit tests to check surface texture caching when partial
3287         swap is not used.
3288
3289         * tests/CCLayerTreeHostImplTest.cpp:
3290
3291 2012-06-20  Sheriff Bot  <webkit.review.bot@gmail.com>
3292
3293         Unreviewed, rolling out r120889.
3294         http://trac.webkit.org/changeset/120889
3295         https://bugs.webkit.org/show_bug.cgi?id=89630
3296
3297         [Chromium] webkit_unit_tests didDrawNotCalledOnHiddenLayer
3298         start failing (Requested by ukai on #webkit).
3299
3300         * tests/CCLayerTreeHostImplTest.cpp:
3301
3302 2012-06-20  Zeev Lieber  <zlieber@chromium.org>
3303
3304         [Chromium] Damage tracker is not used without partial swap, causing valid render passes to be removed
3305         https://bugs.webkit.org/show_bug.cgi?id=89589
3306
3307         Reviewed by Adrienne Walker.
3308
3309         Added unit tests to check surface texture caching when partial
3310         swap is not used.
3311
3312         * tests/CCLayerTreeHostImplTest.cpp:
3313
3314 2012-06-20  Joshua Bell  <jsbell@chromium.org>
3315
3316         IndexedDB: Remove redundant IDBObjectStore.delete() overloads
3317         https://bugs.webkit.org/show_bug.cgi?id=89587
3318
3319         Reviewed by Darin Fisher.
3320
3321         * public/WebIDBObjectStore.h: Add note to remove overload when Chromium is updated.
3322         (WebIDBObjectStore):
3323         * src/IDBObjectStoreBackendProxy.cpp: Delete IDBKey overload.
3324         * src/IDBObjectStoreBackendProxy.h: Delete IDBKey overload.
3325         (IDBObjectStoreBackendProxy):
3326         * src/WebIDBObjectStoreImpl.cpp: Delete IDBKey overload.
3327         * src/WebIDBObjectStoreImpl.h: Delete IDBKey overload.
3328         (WebIDBObjectStoreImpl):
3329
3330 2012-06-20  Garret Kelly  <gdk@chromium.org>
3331
3332         Moving cookieEnabled/setCookieEnabled from Page to Settings, and
3333         exposing through WebSettings.
3334         https://bugs.webkit.org/show_bug.cgi?id=89545
3335
3336         Reviewed by Adam Barth.
3337
3338         * public/WebSettings.h:
3339         * src/WebSettingsImpl.cpp:
3340         (WebKit::WebSettingsImpl::setCookieEnabled):
3341         * src/WebSettingsImpl.h:
3342         (WebSettingsImpl):
3343
3344 2012-06-20  Raymes Khoury  <raymes@chromium.org>
3345
3346         Perform hit-test from correct frame in isRectTopmost()
3347         https://bugs.webkit.org/show_bug.cgi?id=89492
3348
3349         Reviewed by Levi Weintraub.
3350
3351         Hit-testing was being performed from the main frame, which gave the
3352         incorrect result if the plugin was in a different frame.
3353
3354         * src/WebPluginContainerImpl.cpp:
3355         (WebKit::WebPluginContainerImpl::isRectTopmost):
3356
3357 2012-06-20  Alexandre Elias  <aelias@google.com>
3358
3359         [chromium] Support mobile device rotation resizing
3360         https://bugs.webkit.org/show_bug.cgi?id=86819
3361
3362         Reviewed by Adam Barth.
3363
3364         Resizes on a mobile device are caused either by rotation or
3365         on-screen-keyboard bringup, and need different treatment to remain
3366         naturally laid out, scaled and scrolled without disorienting the user.
3367
3368         * src/WebViewImpl.cpp:
3369         (WebKit::WebViewImpl::resize):
3370
3371 2012-06-19  James Robinson  <jamesr@chromium.org>
3372
3373         [chromium] Separate LayerRenderer initialization from updateLayers
3374         https://bugs.webkit.org/show_bug.cgi?id=89525
3375
3376         Reviewed by Adrienne Walker.
3377
3378         Update tests to call initializeLayerRendererIfNeeded() before calling updateLayers() to reflect what the proxies
3379         do.
3380
3381         * tests/CCLayerTreeHostTest.cpp:
3382         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
3383         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
3384         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
3385         * tests/TiledLayerChromiumTest.cpp:
3386
3387 2012-06-20  Christopher Cameron  <ccameron@chromium.org>
3388
3389         [chromium] webkit-backface-visibility doesn't work with video
3390         https://bugs.webkit.org/show_bug.cgi?id=88908
3391
3392         When determining a contents layer's backface culling, use the parent
3393         layer's transform and backface-visibility properties. Track which
3394         layers need this special treatment with useParentBackfaceVisibility
3395         and setUseParentBackfaceVisibility functions in WebCore::LayerChromium,
3396         WebKit::WebLayer, and WebCore::CCLayerImpl.
3397
3398         Reviewed by Adrienne Walker.
3399
3400         * src/WebLayer.cpp:
3401             (WebKit::WebLayer::setUseParentBackfaceVisibility):
3402                 Add an accessor to specify that a layer should use its parent's
3403                 backface culling behavior.
3404
3405 2012-06-20  Ian Vollick  <vollick@chromium.org>
3406
3407         [chromium] Make sure that render surfaces are not pixel doubled with a device scale factor of 2
3408         https://bugs.webkit.org/show_bug.cgi?id=86882
3409
3410         Reviewed by Adrienne Walker.
3411
3412         To ensure that render surfaces are not pixel doubled when device scale factor is
3413         two, the render surface's owning layer's draw transform is scaled by the
3414         contents scale (in the same way that the parent matrix is scaled by the device
3415         scale factor). The transformedLayerRect's dimensions also need to be in pixel
3416         space. The surface origin transform should not scale, but needs to offset the
3417         correct number of pixels, and the replica transforms need to be modified to
3418         account for the scaling.
3419
3420         * tests/CCLayerTreeHostCommonTest.cpp:
3421
3422 2012-06-20  Joshua Bell  <jsbell@chromium.org>
3423
3424         Unreviewed build fix.
3425
3426         * tests/IDBDatabaseBackendTest.cpp:
3427         (WebCore::MockIDBCallbacks::~MockIDBCallbacks):
3428         (WebCore::FakeIDBDatabaseCallbacks::~FakeIDBDatabaseCallbacks):
3429
3430 2012-06-20  Joshua Bell  <jsbell@chromium.org>
3431
3432         [Chromium] IndexedDB: Don't close database if pending connections are in flight
3433         https://bugs.webkit.org/show_bug.cgi?id=89512
3434
3435         Reviewed by Tony Chang.
3436
3437         * tests/IDBDatabaseBackendTest.cpp:
3438         (MockIDBCallbacks):
3439         (WebCore::MockIDBCallbacks::create):
3440         (WebCore::MockIDBCallbacks::MockIDBCallbacks):
3441         (WebCore):
3442         (FakeIDBDatabaseCallbacks):
3443         (WebCore::FakeIDBDatabaseCallbacks::create):
3444         (WebCore::FakeIDBDatabaseCallbacks::FakeIDBDatabaseCallbacks):
3445         (WebCore::TEST):
3446
3447 2012-06-20  Zeev Lieber  <zlieber@chromium.org>
3448
3449         [Chromium] Remove redundant #includes in compositor
3450         https://bugs.webkit.org/show_bug.cgi?id=89503
3451
3452         Reviewed by Adrienne Walker.
3453
3454         Minor adjustments to #include statements to remove
3455         dependencies. No new tests.
3456
3457         * src/WebCompositorImpl.cpp:
3458         * src/WebLayerTreeView.cpp:
3459         * tests/CCLayerTestCommon.cpp:
3460         * tests/CCLayerTreeHostImplTest.cpp:
3461         * tests/CCLayerTreeHostTest.cpp:
3462         * tests/CCOcclusionTrackerTest.cpp:
3463         * tests/CCQuadCullerTest.cpp:
3464         * tests/CCTiledLayerImplTest.cpp:
3465         * tests/ImageLayerChromiumTest.cpp:
3466         * tests/LayerRendererChromiumTest.cpp:
3467         * tests/TiledLayerChromiumTest.cpp:
3468
3469 2012-06-20  Hans Wennborg  <hans@chromium.org>
3470
3471         Speech JavaScript API: add SpeechRecognition.maxAlternatives attribute
3472         https://bugs.webkit.org/show_bug.cgi?id=89459
3473
3474         Reviewed by Eric Seidel.
3475
3476         Plumbing for the maxAlternatives attribute.
3477
3478         * public/WebSpeechRecognitionParams.h:
3479         (WebKit::WebSpeechRecognitionParams::WebSpeechRecognitionParams):
3480         (WebKit::WebSpeechRecognitionParams::maxAlternatives):
3481         (WebSpeechRecognitionParams):
3482         * src/SpeechRecognitionClientProxy.cpp:
3483         (WebKit::SpeechRecognitionClientProxy::start):
3484         * src/SpeechRecognitionClientProxy.h:
3485         (SpeechRecognitionClientProxy):
3486
3487 2012-06-20  Hironori Bono  <hbono@chromium.org>
3488
3489         [chromium] Select the marker range when right-clicking on a marker.
3490         https://bugs.webkit.org/show_bug.cgi?id=89331
3491
3492         Reviewed by Hajime Morita.
3493
3494         Chromium always selects only one word when right-clicking on a spelling marker.
3495         This prevents selecting whole region specified by a marker if the marker