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