6f4cfb8b4451adcfa097c4d9719458990fdc8057
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-08-07  James Robinson  <jamesr@chromium.org>
2
3         [chromium] Only use public Platform API in NonCompositedContentHost
4         https://bugs.webkit.org/show_bug.cgi?id=93423
5
6         Reviewed by Adrienne Walker.
7
8         Switches to using Web*Layer APIs in NonCompositedContentHost instead of reaching in to the LayerChromium and
9         updates unit tests for the nonCompositedContent->useLCDText flag rename.
10
11         * src/NonCompositedContentHost.cpp:
12         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
13         * src/WebContentLayer.cpp:
14         (WebKit::WebContentLayer::setUseLCDText):
15         (WebKit):
16         (WebKit::WebContentLayer::setDrawCheckerboardForMissingTiles):
17         * src/WebViewImpl.cpp:
18         * tests/CCLayerImplTest.cpp:
19         (WebCore::TEST):
20         * tests/CCLayerTreeHostImplTest.cpp:
21         * tests/LayerChromiumTest.cpp:
22
23 2012-08-08  Alec Flett  <alecflett@chromium.org>
24
25         IndexedDB: new enums and openCursor stub
26         https://bugs.webkit.org/show_bug.cgi?id=93410
27
28         Reviewed by Adam Barth.
29
30         This stubs out the TaskType and Direction enums that will be
31         required to land the chromium side of
32         https://bugs.webkit.org/show_bug.cgi?id=91125.
33
34         * public/WebIDBCursor.h:
35         * public/WebIDBObjectStore.h:
36         (WebKit::WebIDBObjectStore::setIndexKeys):
37         (WebKit::WebIDBObjectStore::setIndexesReady):
38         (WebIDBObjectStore):
39         (WebKit::WebIDBObjectStore::openCursor):
40         * public/WebIDBTransaction.h:
41
42 2012-08-08  Dana Jansens  <danakj@chromium.org>
43
44         [chromium] Enable occlusion tracker in the occlusion tests for surface cacheing
45         https://bugs.webkit.org/show_bug.cgi?id=93500
46
47         Reviewed by Adrienne Walker.
48
49         The occlusion tracker is not being used in these tests except to do
50         scissoring. We want to test occlusion with these occlusion tests,
51         and when scissoring is not part of occlusion tracker, these
52         tests would become useless otherwise.
53
54         * tests/CCLayerTreeHostImplTest.cpp:
55
56 2012-08-08  Adam Barth  <abarth@webkit.org>
57
58         Crash when reloading a Chromium "platform" app
59         https://bugs.webkit.org/show_bug.cgi?id=93497
60
61         Reviewed by Eric Seidel.
62
63         Test that we don't crash when executing script during the
64         didCreateScriptContext callback.
65
66         * tests/WebFrameTest.cpp:
67         * tests/data/hello_world.html: Added.
68
69 2012-08-07  Joshua Bell  <jsbell@chromium.org>
70
71         Layout Test storage/indexeddb/intversion-omit-parameter.html is flaky
72         https://bugs.webkit.org/show_bug.cgi?id=92952
73
74         Reviewed by Tony Chang.
75
76         Added test to exercise WebCore::IDBRequest event callbacks after
77         the script context has stopped and ensure no asserts are hit.
78
79         * WebKit.gypi:
80         * tests/IDBRequestTest.cpp: Added.
81         (WebCore):
82         (WebCore::TEST):
83
84 2012-08-07  Fady Samuel  <fsamuel@chromium.org>
85
86         Allow plugins to decide whether they are keyboard focusable
87         https://bugs.webkit.org/show_bug.cgi?id=88958
88
89         Reviewed by Anders Carlsson.
90
91         * public/WebPlugin.h:
92         (WebKit::WebPlugin::supportsKeyboardFocus):
93         * src/WebInputEventConversion.cpp:
94         (WebKit::WebKeyboardEventBuilder::WebKeyboardEventBuilder):
95         * src/WebPluginContainerImpl.cpp:
96         (WebKit::WebPluginContainerImpl::supportsKeyboardFocus):
97         (WebKit):
98         * src/WebPluginContainerImpl.h:
99         (WebPluginContainerImpl):
100
101 2012-08-07  Kentaro Hara  <haraken@chromium.org>
102
103         [V8] Implement V8Proxy::registerExtensionIfNeeded() and remove redundant methods
104         https://bugs.webkit.org/show_bug.cgi?id=93209
105
106         Reviewed by Adam Barth.
107
108         By implementing V8Proxy::registerExtensionIfNeeded(), we can remove
109         registeredExtensionWithV8() and registerExtension().
110
111         No tests. No change in behavior.
112
113         * src/WebScriptController.cpp:
114         (WebKit::WebScriptController::registerExtension):
115
116 2012-08-07  James Robinson  <jamesr@chromium.org>
117
118         [chromium] Add new gclient-managed cc directory to Source/WebKit/chromium/.gitignore
119         https://bugs.webkit.org/show_bug.cgi?id=93403
120
121         Reviewed by Eric Seidel.
122
123         * .gitignore:
124
125 2012-08-07  Mihai Parparita  <mihaip@chromium.org>
126
127         [Chromium] Clean up WebScriptController.h comments
128         https://bugs.webkit.org/show_bug.cgi?id=93399
129
130         Reviewed by Adam Barth.
131
132         Remove references to overloaded WebScriptController::registerExtension
133         variants. They were removed in r68666.
134
135         * public/WebScriptController.h:
136         (WebScriptController):
137
138 2012-08-07  Kentaro Hara  <haraken@chromium.org>
139
140         [V8] Remove #include Frame.h from V8Binding.h
141         https://bugs.webkit.org/show_bug.cgi?id=93326
142
143         Reviewed by Adam Barth.
144
145         We want to remove unnecessary #include in V8Binding.h
146         to avoid circular include dependency.
147
148         No tests. No change in behavior.
149
150         * src/WebBindings.cpp:
151
152 2012-08-07  James Robinson  <jamesr@chromium.org>
153
154         [chromium] Switch PlatformLayer typedef to Platform API type for PLATFORM(CHROMIUM)
155         https://bugs.webkit.org/show_bug.cgi?id=93335
156
157         Reviewed by Adrienne Walker.
158
159         Update for new PlatformLayer typedef. This removes knowledge of WebCore::LayerChromium from all classes
160         except for NonCompositedContentHost, which still punches through for a few minor APIs that I'll address
161         in a separate patch.
162
163         * src/NonCompositedContentHost.cpp:
164         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
165         (WebKit::NonCompositedContentHost::setScrollLayer):
166         (WebKit::NonCompositedContentHost::scrollLayer):
167         (WebKit::NonCompositedContentHost::notifySyncRequired):
168         * src/WebMediaPlayerClientImpl.cpp:
169         (WebKit::WebMediaPlayerClientImpl::platformLayer):
170         * src/WebMediaPlayerClientImpl.h:
171         (WebMediaPlayerClientImpl):
172         * src/WebPluginContainerImpl.cpp:
173         (WebKit::WebPluginContainerImpl::platformLayer):
174         * src/WebPluginContainerImpl.h:
175         (WebCore):
176         (WebPluginContainerImpl):
177         * src/WebScrollableLayer.cpp:
178         (WebKit::WebScrollableLayer::setNonFastScrollableRegion):
179         (WebKit):
180         (WebKit::WebScrollableLayer::setIsContainerForFixedPositionLayers):
181         (WebKit::WebScrollableLayer::setFixedToContainerLayer):
182         * src/WebViewImpl.cpp:
183         (WebKit::WebViewImpl::setRootGraphicsLayer):
184         * tests/Canvas2DLayerBridgeTest.cpp:
185         * tests/GraphicsLayerChromiumTest.cpp:
186         (WebKitTests::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):
187         (WebKitTests::TEST_F):
188
189 2012-08-07  James Robinson  <jamesr@chromium.org>
190
191         [chromium] Use WebCompositor interface in Platform API instead of CCProxy to query threaded compositor status
192         https://bugs.webkit.org/show_bug.cgi?id=93398
193
194         Reviewed by Adam Barth.
195
196         Converts non-compositor code that cares about threaded compositing status over to query WebCompositor instead of
197         CCProxy.
198
199         * src/WebMediaPlayerClientImpl.cpp:
200         (WebKit::WebMediaPlayerClientImpl::supportsType):
201         * src/WebViewImpl.cpp:
202         (WebKit::WebViewImpl::composite):
203         (WebKit::WebViewImpl::scheduleAnimation):
204         (WebKit::WebViewImpl::scheduleComposite):
205
206 2012-08-07  James Robinson  <jamesr@chromium.org>
207
208         [chromium] Move WebCompositor interface into Platform AP
209         https://bugs.webkit.org/show_bug.cgi?id=93391
210
211         Reviewed by Adam Barth.
212
213         * WebKit.gyp:
214         * public/WebCompositor.h:
215         * src/WebLayerTreeViewImpl.cpp:
216
217 2012-08-07  Joshua Bell  <jsbell@chromium.org>
218
219         REGRESSION(r124865): It broke the ARM Chromium build
220         https://bugs.webkit.org/show_bug.cgi?id=93364
221
222         Reviewed by Csaba Osztrogon√°c.
223
224         Mark large constant with LL to satisfy a picky compiler.
225
226         * tests/IDBLevelDBCodingTest.cpp:
227         (IDBLevelDBCoding::TEST):
228
229 2012-08-07  Alexei Filippov  <alexeif@chromium.org>
230
231         Web Inspector: make the MemoryClassInfo class a not-template
232         https://bugs.webkit.org/show_bug.cgi?id=93265
233
234         Reviewed by Yury Semikhatsky.
235
236         * tests/MemoryInstrumentationTest.cpp:
237         (WebCore::Instrumented::reportMemoryUsage):
238         (WebCore::InstrumentedRefPtr::reportMemoryUsage):
239         (WebCore::InstrumentedWithOwnPtr::reportMemoryUsage):
240         (WebCore::InstrumentedOther::reportMemoryUsage):
241         (WebCore::InstrumentedDOM::reportMemoryUsage):
242         (WebCore::NonVirtualInstrumented::reportMemoryUsage):
243
244 2012-08-06  Yuta Kitamura  <yutak@chromium.org>
245
246         WebSocket.send() should accept ArrayBufferView
247         https://bugs.webkit.org/show_bug.cgi?id=90877
248
249         Reviewed by Kent Tamura.
250
251         * src/WebSocketImpl.cpp:
252         (WebKit::WebSocketImpl::sendArrayBuffer):
253         Apply change in function signature of WebSocketChannel::send().
254
255 2012-08-06  James Robinson  <jamesr@chromium.org>
256
257         [chromium] Remove lingering unwrap<>() calls in GraphicsLayerChromium.cpp
258         https://bugs.webkit.org/show_bug.cgi?id=93319
259
260         Reviewed by Adrienne Walker.
261
262         * src/WebLayer.cpp:
263         (WebKit::WebLayer::setChildren):
264         (WebKit):
265         (WebKit::WebLayer::setReplicaLayer):
266         (WebKit::WebLayer::setDebugName):
267         (WebKit::WebLayer::clearRenderSurface):
268
269 2012-08-06  Adrienne Walker  <enne@google.com>
270
271         [chromium] Convert WebScrollbarThemeGeometry from a concrete class to an interface
272         https://bugs.webkit.org/show_bug.cgi?id=93308
273
274         Reviewed by James Robinson.
275
276         Now that WebScrollbarThemeGeometry can have different implementations,
277         create a FakeWebScrollbarThemeGeometry for testing purposes rather
278         than just overriding a geometry-related virtual.
279
280         * WebKit.gyp:
281         * WebKit.gypi:
282         * src/WebScrollbarLayer.cpp:
283         (WebKit::WebScrollbarLayer::create):
284         * tests/CCLayerTreeHostImplTest.cpp:
285         * tests/FakeWebScrollbarThemeGeometry.h: Added.
286         (WebKit):
287         (FakeWebScrollbarThemeGeometry):
288         (WebKit::FakeWebScrollbarThemeGeometry::create):
289         * tests/ScrollbarLayerChromiumTest.cpp:
290         (WebCore::TEST):
291
292 2012-08-06  James Robinson  <jamesr@chromium.org>
293
294         [chromium] Update chromium DEPS r150037 -> r150169
295         https://bugs.webkit.org/show_bug.cgi?id=93309
296
297         As the title says. Unreviewed.
298
299         * DEPS:
300
301 2012-08-06  David Reveman  <reveman@chromium.org>
302
303         [Chromium] Rename CCTextureUpdater to CCTextureUpdateQueue.
304         https://bugs.webkit.org/show_bug.cgi?id=93293
305
306         Reviewed by Adrienne Walker.
307
308         * src/WebExternalTextureLayer.cpp:
309         (WebKit::WebTextureUpdaterImpl::WebTextureUpdaterImpl):
310         * tests/CCLayerTreeHostTest.cpp:
311         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
312         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
313         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
314         * tests/CCTextureUpdateControllerTest.cpp:
315         * tests/CCThreadedTest.cpp:
316         * tests/CCTiledLayerTestCommon.cpp:
317         (WebKitTests::FakeTiledLayerChromium::update):
318         * tests/CCTiledLayerTestCommon.h:
319         (FakeTiledLayerChromium):
320         * tests/Canvas2DLayerBridgeTest.cpp:
321         * tests/TiledLayerChromiumTest.cpp:
322
323 2012-08-06  Bear Travis  <betravis@adobe.com>
324
325         [CSS Exclusions] Add a command-line flag to enable / disable exclusions
326         https://bugs.webkit.org/show_bug.cgi?id=91420
327
328         Reviewed by Dimitri Glazkov.
329
330         Adding the interface code to expose the css exclusions runtime flag to
331         Chromium.
332
333         * public/WebRuntimeFeatures.h:
334         (WebRuntimeFeatures): Adding getters/setters for cssExclusions
335         * src/WebRuntimeFeatures.cpp:
336         (WebKit::WebRuntimeFeatures::enableCSSExclusions):
337         (WebKit):
338         (WebKit::WebRuntimeFeatures::isCSSExclusionsEnabled):
339
340 2012-08-06  Adam Barth  <abarth@webkit.org>
341
342         [Chromium] WebTouchCandidatesInfo should be part of the Client API
343         https://bugs.webkit.org/show_bug.cgi?id=93088
344
345         Reviewed by Eric Seidel.
346
347         * WebKit.gyp:
348         * public/WebTouchCandidatesInfo.h: Copied from Source/Platform/chromium/public/WebTouchCandidatesInfo.h.
349         * src/WebViewImpl.cpp:
350
351 2012-08-06  Adrienne Walker  <enne@google.com>
352
353         [chromium] REGRESSION(r124714): webkit_unit_tests asserts in Debug
354         https://bugs.webkit.org/show_bug.cgi?id=93297
355
356         Reviewed by James Robinson.
357
358         This is a quick fix to get debug unit tests working again by
359         implementing a virtual function that has ASSERT_NOT_REACHED in the
360         base class version.
361
362         * tests/ScrollAnimatorNoneTest.cpp:
363         (MockScrollableArea::scrollPosition):
364
365 2012-08-06  Nasko Oskov  <nasko@chromium.org>
366
367         Adding APIs to Chromium WebKit API to allow for creating and monitoring frame hierarchy.
368         https://bugs.webkit.org/show_bug.cgi?id=93127
369
370         Reviewed by Adam Barth.
371
372         Add support in the API to monitor and create frame hierarchy to allow replicating it
373         across different instances of WebKit.
374
375         * public/WebDocument.h:
376         (WebDocument): Added createElement.
377         * public/WebFrame.h: Added assignedName.
378         * public/WebFrameClient.h:
379         (WebFrameClient):
380         (WebKit::WebFrameClient::didCreateFrame): Added to allow embedders to know when frames are created.
381         (WebKit::WebFrameClient::willCheckAndDispatchMessageEvent): Added the target frame as a parameter.
382         * public/WebNode.h:
383         * src/FrameLoaderClientImpl.cpp:
384         (WebKit::FrameLoaderClientImpl::willCheckAndDispatchMessageEvent):
385         * src/WebDocument.cpp:
386         (WebKit::WebDocument::createElement): Added to allow for creating frame elements.
387         (WebKit):
388         * src/WebFrameImpl.cpp:
389         (WebKit::WebFrameImpl::uniqueName): Added to migrate callers to the matching WebCore API.
390         (WebKit):
391         (WebKit::WebFrameImpl::assignedName): Returns the name given to a frame, as opposed 
392         to the unique name, generated by WebKit.
393         (WebKit::WebFrameImpl::createChildFrame): Added call to the frame client's didCreateFrame.
394         * src/WebFrameImpl.h:
395         (WebFrameImpl):
396         * src/WebNode.cpp:
397         (WebKit::WebNode::appendChild): Added to allow for adding elements to the DOM.
398         (WebKit):
399         * tests/WebFrameTest.cpp:
400
401 2012-08-06  David Reveman  <reveman@chromium.org>
402
403         [Chromium] Refactor CCTextureUpdater into CCTextureUpdater and CCTextureUpdateController.
404         https://bugs.webkit.org/show_bug.cgi?id=92596
405
406         Reviewed by Adrienne Walker.
407
408         * WebKit.gypi:
409         * src/WebExternalTextureLayer.cpp:
410         * tests/CCTextureUpdateControllerTest.cpp: Renamed from Source/WebKit/chromium/tests/CCTextureUpdaterTest.cpp.
411         * tests/CCTiledLayerTestCommon.h:
412         (WebKitTests::FakeTextureCopier::copyTexture):
413         (WebKitTests::FakeTextureUploader::uploadTexture):
414         * tests/TextureCopierTest.cpp:
415         (TEST):
416         * tests/TiledLayerChromiumTest.cpp:
417
418 2012-08-06  Shawn Singh  <shawnsingh@chromium.org>
419
420         [chromium] Non-preserves-3d requires explicit flattening of screen-space transform.
421         https://bugs.webkit.org/show_bug.cgi?id=85808
422
423         Reviewed by Adrienne Walker.
424
425         * tests/CCLayerTreeHostCommonTest.cpp:
426
427 2012-08-06  Yury Semikhatsky  <yurys@chromium.org>
428
429         Web Inspector: rename WorkerAgent.setWorkerInspectionEnabled to WorkerAgent.enable and make it return error
430         https://bugs.webkit.org/show_bug.cgi?id=92545
431
432         Reviewed by Pavel Feldman.
433
434         Replaced Preferences.exposeWorkersInspection with InspectorFrontendHost.canInspectWorkers()
435         that tells if inspector front-end on the given platform can launch dedicated worker
436         front-end.
437
438         * src/InspectorFrontendClientImpl.cpp:
439         (WebKit::InspectorFrontendClientImpl::canInspectWorkers):
440         (WebKit):
441         * src/InspectorFrontendClientImpl.h:
442         (InspectorFrontendClientImpl):
443         * src/js/DevTools.js:
444
445 2012-08-06  Keishi Hattori  <keishi@webkit.org>
446
447         Remove minimum window size for PagePopup
448         https://bugs.webkit.org/show_bug.cgi?id=93100
449
450         Reviewed by Kent Tamura.
451
452         * src/WebPagePopupImpl.cpp: Returns 0x0 so the page popup can be smaller than 100x100.
453
454 2012-08-05  Kent Tamura  <tkent@chromium.org>
455
456         [Chromium-win] Use system locale for number representation
457         https://bugs.webkit.org/show_bug.cgi?id=93085
458
459         Reviewed by Hajime Morita.
460
461         * WebKit.gypi:
462         Don't include Localized*ICUTest.cpp in Windows and OSX. They are unnecessary.
463         * tests/LocaleWinTest.cpp:
464         (LocaleWinTest): Add some LCID symbols.
465         (LocaleWinTest::decimalSeparator):
466         A helper for LocaleWinTest.decimalSeparator.
467         (TEST_F(LocaleWinTest, decimalSeparator)):
468         A test for LocaleWin::localizedDecimalSeparator(). This is a copy of the
469         corresponding test in LocalizedNumberICUTest.cpp.
470         (testNumberIsReversible):
471         A test helper LocaleWinTest.localizedNumberRoundTrip. This is a copy of
472         the corresponding test in LocalizedNumberICUTest.cpp.
473         (testNumbers): ditto.
474         (TEST_F(LocaleWinTest, localizedNumberRoundTrip)):
475         Tests for LocaleWin changes. This is a copy of the corresponding tests
476         in LocalizedNumberICUTest.cpp.
477
478 2012-08-04  Sheriff Bot  <webkit.review.bot@gmail.com>
479
480         Unreviewed.  Rolled DEPS.
481
482         * DEPS:
483
484 2012-08-03  Nico Weber  <thakis@chromium.org>
485
486         [chromium] Add API to make it possible to request all variants of a WebImage
487         https://bugs.webkit.org/show_bug.cgi?id=92933
488
489         Reviewed by Adam Barth.
490
491         Part of http://crbug.com/138550
492
493         * src/WebImageSkia.cpp:
494         (WebKit::WebImage::framesFromData):
495         (WebKit):
496
497 2012-08-03  Yaron Friedman  <yfriedman@chromium.org>
498
499         [Chrome-Android] - Prepare apk tests for switch to checked in SDK.
500         https://bugs.webkit.org/show_bug.cgi?id=92931
501
502         Reviewed by Adam Barth.
503
504         Pass Android-specific gyp variables to the native test generator
505         avoiding any dependencies on environment variables during build time.
506
507         * WebKitUnitTests.gyp:
508
509 2012-08-03  David Grogan  <dgrogan@chromium.org>
510
511         IndexedDB: Core upgradeneeded logic
512         https://bugs.webkit.org/show_bug.cgi?id=92558
513
514         Reviewed by Ojan Vafai.
515
516         Update overridden methods to match new signatures.
517
518         * tests/IDBAbortOnCorruptTest.cpp:
519         (WebCore::FailingBackingStore::createIDBDatabaseMetaData):
520         * tests/IDBFakeBackingStore.h:
521
522 2012-08-03  Rick Byers  <rbyers@chromium.org>
523
524         Double tap gesture should send dblclick event
525         https://bugs.webkit.org/show_bug.cgi?id=92412
526
527         Reviewed by Adam Barth.
528
529         Tweak comment to more completely describe the (lame) overloaded use
530         of deltaX in WebGestureEvent, and add a FIXME with the bug to track
531         cleaning it up.
532         * public/WebInputEvent.h:
533         (WebGestureEvent):
534
535 2012-08-03  Dave Tu  <dtu@chromium.org>
536
537         [chromium] Remove assert when getting hardware renderingStats in software mode.
538         https://bugs.webkit.org/show_bug.cgi?id=92325
539
540         Reviewed by Adrienne Walker.
541
542         If a page caused hardware mode to be turned on, then off, the hardware stats are still valid, so we don't need to assert that we're in hardware mode. Checking if the LayerTreeView is null should be sufficient.
543
544         * public/WebWidget.h:
545         (WebWidget):
546         * src/WebViewImpl.cpp:
547         (WebKit::WebViewImpl::WebViewImpl):
548         (WebKit::WebViewImpl::renderingStats):
549         (WebKit::WebViewImpl::paint):
550         * src/WebViewImpl.h:
551
552 2012-08-03  Sheriff Bot  <webkit.review.bot@gmail.com>
553
554         Unreviewed.  Rolled DEPS.
555
556         * DEPS:
557
558 2012-08-03  Sheriff Bot  <webkit.review.bot@gmail.com>
559
560         Unreviewed, rolling out r124632.
561         http://trac.webkit.org/changeset/124632
562         https://bugs.webkit.org/show_bug.cgi?id=93154
563
564         Added new WebFrameTest.SelectRange which fails on bots
565         (Requested by dimich on #webkit).
566
567         * tests/WebFrameTest.cpp:
568         * tests/data/select_range_basic.html: Removed.
569         * tests/data/select_range_iframe.html: Removed.
570         * tests/data/select_range_scroll.html: Removed.
571
572 2012-08-03  Terry Anderson  <tdanderson@chromium.org>
573
574         Apply target fuzzing when sending a context menu event
575         https://bugs.webkit.org/show_bug.cgi?id=92914
576
577         Reviewed by Antonio Gomes.
578
579         When constructing a PlatformEvent::GestureLongPress in WebInputEventConversion.cpp,
580         use |boundingBox| to specify |m_area|.
581
582         * src/WebInputEventConversion.cpp:
583         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
584
585 2012-08-03  Leandro Gracia Gil  <leandrogracia@chromium.org>
586
587         [Chromium] Add stubs for the find-in-page match rects API
588         https://bugs.webkit.org/show_bug.cgi?id=93110
589
590         Reviewed by Adam Barth.
591
592         The Android port allows tapping on the find-in-page result tickmarks taking
593         the user to the corresponding matches. This patch introduces stubs for the
594         new required methods in order to achieve WebKit API compatibility for this
595         port as soon as possible. The implementation of these methods will be added
596         later in https://bugs.webkit.org/show_bug.cgi?id=93111.
597
598         * public/WebFrame.h:
599         (WebKit):
600         (WebFrame):
601         * src/WebFrameImpl.cpp:
602         (WebKit::WebFrameImpl::findMatchMarkersVersion):
603         (WebKit):
604         (WebKit::WebFrameImpl::activeFindMatchRect):
605         (WebKit::WebFrameImpl::findMatchRects):
606         (WebKit::WebFrameImpl::selectNearestFindMatch):
607         * src/WebFrameImpl.h:
608         (WebFrameImpl):
609
610 2012-08-03  Mike West  <mkwst@chromium.org>
611
612         Blocking a plugin via CSP should result in one (and only one) console message.
613         https://bugs.webkit.org/show_bug.cgi?id=92649
614
615         Reviewed by Adam Barth.
616
617         * src/LocalizedStrings.cpp:
618         (WebCore::blockedPluginByContentSecurityPolicyText):
619         (WebCore):
620             Adding a stub for the newly added string.
621
622 2012-08-03  Oli Lan  <olilan@chromium.org>
623
624         [chromium] Add a test to WebFrameTest for selectRange and visiblePositionForWindowPoint.
625         https://bugs.webkit.org/show_bug.cgi?id=93108
626
627         Reviewed by Adam Barth.
628
629         Adds a new test WebFrameTest.SelectRange. This tests WebFrameImpl::selectRange, and also
630         serves to test WebFrameImpl::visiblePositionForWindowPoint as it is used by selectRange.
631
632         The test uses sample files that contain selected text on load. The test uses
633         WebViewImpl::selectionBounds to retrieve the ends of the selection, then unselects
634         and calls WebFrameImpl::selectRange to attempt to reselect the same text.
635
636         Three cases are tested: the normal case, the case where the selected text is offscreen
637         due to a scroll, and the case where the selected text is in an iframe. This allows the
638         problem cases and fix in https://bugs.webkit.org/show_bug.cgi?id=79117 to be tested.
639
640         * tests/WebFrameTest.cpp:
641         * tests/data/select_range_basic.html: Added.
642         * tests/data/select_range_iframe.html: Added.
643         * tests/data/select_range_scroll.html: Added.
644
645 2012-08-03  Ilya Tikhonovsky  <loislo@chromium.org>
646
647         Web Inspector: eliminate visitBaseClass method from NMI. It introduces unnecessary complexity.
648         https://bugs.webkit.org/show_bug.cgi?id=93129
649
650         Reviewed by Yury Semikhatsky.
651
652         * tests/MemoryInstrumentationTest.cpp:
653         (WebCore::InstrumentedWithOwnPtr::reportMemoryUsage):
654
655 2012-08-03  Adam Barth  <abarth@webkit.org>
656
657         V8Proxy::retrieve(*) leads to really obfuscated code and should be removed
658         https://bugs.webkit.org/show_bug.cgi?id=93072
659
660         Reviewed by Eric Seidel.
661
662         * src/WebDevToolsAgentImpl.cpp:
663         (WebKit::WebDevToolsAgentImpl::didCreateScriptContext):
664
665 2012-08-02  Ilya Tikhonovsky  <loislo@chromium.org>
666
667         Web Inspector: extend test coverage for nmi code and fix 2 bugs.
668         https://bugs.webkit.org/show_bug.cgi?id=92994
669
670         Reviewed by Yury Semikhatsky.
671
672         1) owner object type propagation.
673         If a class with object-type DOM has an instrumented member with object-type Other then it has to be recorded as DOM.
674         Sample: We have SharedBuffer class and we don't know the object-type for it but we know that it is owned by an object with object-type CachedResourceImage.
675
676         2) the first member of an instrumented non virtual class was skipped even if it was reported properly.
677         it happened because the first member has the same address as it's owner
678
679         * tests/MemoryInstrumentationTest.cpp:
680         (WebCore::TEST):
681         (WebCore):
682         (InstrumentedOther):
683         (WebCore::InstrumentedOther::InstrumentedOther):
684         (WebCore::InstrumentedOther::reportMemoryUsage):
685         (InstrumentedDOM):
686         (WebCore::InstrumentedDOM::InstrumentedDOM):
687         (WebCore::InstrumentedDOM::reportMemoryUsage):
688         (NonVirtualInstrumented):
689         (WebCore::NonVirtualInstrumented::reportMemoryUsage):
690
691 2012-08-02  Alec Flett  <alecflett@chromium.org>
692
693         IndexedDB: remove leftover chromium stubs from putIndexWithKeys
694         https://bugs.webkit.org/show_bug.cgi?id=93032
695
696         Reviewed by Darin Fisher.
697
698         Remove old chromium APIs that are no longer called by chrome.
699
700         * public/WebIDBCursor.h:
701         * public/WebIDBObjectStore.h:
702         * public/WebIDBTransaction.h:
703
704 2012-08-02  Antoine Labour  <piman@chromium.org>
705
706         [chromium] add lost context test case for HW video decoder
707         https://bugs.webkit.org/show_bug.cgi?id=93057
708
709         Reviewed by Adrienne Walker.
710
711         We check that we don't use resources after a lost context (assuming
712         proper WebVideoFrameProvider behavior).
713
714         * tests/CCLayerTreeHostImplTest.cpp:
715
716 2012-08-02  Sheriff Bot  <webkit.review.bot@gmail.com>
717
718         Unreviewed, rolling out r124540.
719         http://trac.webkit.org/changeset/124540
720         https://bugs.webkit.org/show_bug.cgi?id=93055
721
722         Broke compile on Chromium Win bot (Requested by dimich on
723         #webkit).
724
725         * tests/IDBAbortOnCorruptTest.cpp:
726         (WebCore::FailingBackingStore::createIDBDatabaseMetaData):
727         * tests/IDBFakeBackingStore.h:
728
729 2012-08-02  Alexandre Elias  <aelias@google.com>
730
731         [chromium] deviceViewportSize cleanup
732         https://bugs.webkit.org/show_bug.cgi?id=92794
733
734         Reviewed by Adrienne Walker.
735
736         In the future, CSS layout size will become increasingly disassociated
737         from physical device size, and it will become impossible to infer one
738         from the other inside the compositor.  Therefore, this patch allows
739         deviceViewportSize to be explicitly passed in by the outside client.
740
741         I also renamed the existing viewportSize field to "layoutViewportSize"
742         for clarity, and converted its uses to deviceViewportSize since
743         that is more appropriate.
744
745         I had to add some default-value scaffolding to WebLayerTreeView in
746         order to avoid breaking ui/compositor.  We can delete it once that's
747         updated.
748
749         * src/WebLayerTreeView.cpp:
750         (WebKit::WebLayerTreeView::setViewportSize):
751         (WebKit::WebLayerTreeView::layoutViewportSize):
752         (WebKit):
753         (WebKit::WebLayerTreeView::deviceViewportSize):
754         (WebKit::WebLayerTreeView::setDeviceScaleFactor):
755         * src/WebViewImpl.cpp:
756         (WebKit::WebViewImpl::paint):
757         (WebKit::WebViewImpl::updateLayerTreeViewport):
758
759 2012-08-02  Adam Barth  <abarth@webkit.org>
760
761         V8Proxy::currentContext() doesn't do anything and should be removed
762         https://bugs.webkit.org/show_bug.cgi?id=93041
763
764         Reviewed by Eric Seidel.
765
766         * src/WebBindings.cpp:
767         (WebKit::makeIntArrayImpl):
768         (WebKit::makeStringArrayImpl):
769
770 2012-08-02  David Grogan  <dgrogan@chromium.org>
771
772         IndexedDB: Core upgradeneeded logic
773         https://bugs.webkit.org/show_bug.cgi?id=92558
774
775         Reviewed by Ojan Vafai.
776
777         Update overridden methods to match new signatures.
778
779         * tests/IDBAbortOnCorruptTest.cpp:
780         (WebCore::FailingBackingStore::createIDBDatabaseMetaData):
781         * tests/IDBFakeBackingStore.h:
782
783 2012-08-02  Vincent Scheib  <scheib@chromium.org>
784
785         Remove old Pointer Lock API.
786         https://bugs.webkit.org/show_bug.cgi?id=88892
787
788         Reviewed by Adam Barth.
789
790         * src/WebViewImpl.cpp:
791             Removed #include to old API header.
792
793 2012-08-02  Tien-Ren Chen  <trchen@chromium.org>
794
795         [chromium] Add CCScrollbarAnimationController class for compositor scrollbar animation
796         https://bugs.webkit.org/show_bug.cgi?id=91688
797
798         Reviewed by Adrienne Walker.
799
800         New unit test ScrollbarLayerChromiumTest.scrollOffsetSynchronization to verify
801         scroll offset is updated during tree synchronization and threaded scrolling.
802         Another new unit test CCScrollbarAnimationControllerLinearFadeTest to verify
803         opacity animates as intended.
804
805         * tests/ScrollbarLayerChromiumTest.cpp:
806
807 2012-08-02  Adrienne Walker  <enne@google.com>
808
809         [chromium] Make CCScrollbarLayerImpl handle lost contexts properly
810         https://bugs.webkit.org/show_bug.cgi?id=93021
811
812         Reviewed by James Robinson.
813
814         Add CCScrollbarLayerImpl to the dontUseOldResourceAfterLostContext
815         test. Additionally, modify this test so that stale resource ids
816         properly point at invalid texture ids so that the test actually tests
817         what it is supposed to be testing.
818
819         * tests/CCLayerTreeHostImplTest.cpp:
820
821 2012-08-02  Adam Barth  <abarth@webkit.org>
822
823         The generic bindings shouldn't use templates
824         https://bugs.webkit.org/show_bug.cgi?id=93016
825
826         Reviewed by Eric Seidel.
827
828         Update #include.
829
830         * src/WebBindings.cpp:
831
832 2012-08-02  Peter Beverloo  <peter@chromium.org>
833
834         [Chromium] Add a stub for WebView::getTouchHighlightQuads()
835         https://bugs.webkit.org/show_bug.cgi?id=92997
836
837         Reviewed by Adam Barth.
838
839         Chrome on Android will be using this method for the link preview
840         implementation, discussion about which is available in Bug 79150. Since
841         that system is fairly big, will require refactoring, and the unavailable
842         APIs are blocking API compatibility, add a stub for now.
843
844         Together with the WebView API, also add the "WebTouchCandidatesInfo"
845         structure which is being used by it.
846
847         * public/WebView.h:
848         (WebKit):
849         (WebView):
850         * src/WebViewImpl.cpp:
851         (WebKit):
852         (WebKit::WebViewImpl::getTouchHighlightQuads):
853         * src/WebViewImpl.h:
854         (WebViewImpl):
855
856 2012-08-02  Hans Wennborg  <hans@chromium.org>
857
858         Speech JavaScript API: Fire speech start event at the same time as sound start event
859         https://bugs.webkit.org/show_bug.cgi?id=92971
860
861         Reviewed by Adam Barth.
862
863         Chromium's speech recognizer doesn't differentiate between "sound
864         started" and "speech started". Just fire those events at the same
865         time, and don't provide functions for them in
866         WebSpeechRecognizerClient.
867
868         * public/WebSpeechRecognizerClient.h:
869         * src/SpeechRecognitionClientProxy.cpp:
870         (WebKit::SpeechRecognitionClientProxy::didStartSound):
871         (WebKit::SpeechRecognitionClientProxy::didEndSound):
872         * src/SpeechRecognitionClientProxy.h:
873         (SpeechRecognitionClientProxy):
874
875 2012-08-02  Adam Barth  <abarth@webkit.org>
876
877         [Chromium] WebViewImpl::showTouchHighlightQuads isn't needed for Android
878         https://bugs.webkit.org/show_bug.cgi?id=92921
879
880         Reviewed by Nate Chapin.
881
882         We originally added a stub implementation of this function to make
883         merging detectContentOnTouch easier, but showTouchHighlightQuads is
884         being removed from the chromium-android branch in favor of the code in
885         https://bugs.webkit.org/show_bug.cgi?id=84487. This patch removes the
886         stub.
887
888         * src/WebViewImpl.cpp:
889         (WebKit::WebViewImpl::detectContentIntentOnTouch):
890         * src/WebViewImpl.h:
891         (WebViewImpl):
892
893 2012-08-02  Peter Beverloo  <peter@chromium.org>
894
895         [Chromium] Toggle the type of ant compile for webkit_unit_tests and TestWebKitAPI
896         https://bugs.webkit.org/show_bug.cgi?id=92858
897
898         Reviewed by Adam Barth.
899
900         Now that the sdk_build variable is available, we can remove these two differences
901         as well. This goes together with Adam's bug 90920.
902
903         After this patch, the whole Tools/ directory will be unforked :-).
904
905         * WebKitUnitTests.gyp:
906
907 2012-08-02  Alexei Filippov  <alexeif@chromium.org>
908
909         Web Inspector: count RenderStyle objects in the native memory profiler
910         https://bugs.webkit.org/show_bug.cgi?id=91759
911
912         Reviewed by Yury Semikhatsky.
913
914         Add a test for DataRef<T> wrapped member instrumentation.
915
916         * tests/MemoryInstrumentationTest.cpp:
917         (WebCore::InstrumentedRefPtr::create):
918         (WebCore::TEST):
919         (WebCore):
920
921 2012-08-02  Peter Beverloo  <peter@chromium.org>
922
923         Unreviewed.  Rolled DEPS.
924
925         * DEPS:
926
927 2012-08-01  Ilya Tikhonovsky  <loislo@chromium.org>
928
929         Web Inspector: test native memory instrumentation code with help of unittests
930         https://bugs.webkit.org/show_bug.cgi?id=92743
931
932         Reviewed by Yury Semikhatsky.
933
934         Test a part of existing Native Memory Instrumentation code with help of unit tests.
935         6 tests were added and two bugs were fixed.
936         a drive-by improvement: the method MemoryInstrumentation::addInstrumentedObject
937         was marked as private and addRootObject was introduced instead of it.
938         The new function also calls processDeferedPointers.
939
940         * WebKit.gypi:
941         * tests/MemoryInstrumentationTest.cpp: Added.
942         (WebCore):
943         (NotInstrumented):
944         (Instrumented):
945         (WebCore::Instrumented::Instrumented):
946         (WebCore::Instrumented::~Instrumented):
947         (WebCore::Instrumented::reportMemoryUsage):
948         (WebCore::TEST):
949         (InstrumentedWithOwnPtr):
950         (WebCore::InstrumentedWithOwnPtr::InstrumentedWithOwnPtr):
951         (WebCore::InstrumentedWithOwnPtr::reportMemoryUsage):
952
953 2012-08-01  Xingnan Wang  <xingnan.wang@intel.com>
954
955         IndexedDB: ObjectStoreMetaDataKey::m_metaDataType should use byte type
956         https://bugs.webkit.org/show_bug.cgi?id=92725
957
958         Reviewed by Kentaro Hara.
959
960         Add two new tests in IDBLevelDBCodingTest.cpp. One for an added function decodeByte() and 
961         another for verifying that encodeByte() and encodeVarInt() are indentical when the encoded 
962         values are <= 127.
963
964         * tests/IDBLevelDBCodingTest.cpp:
965         (IDBLevelDBCoding::TEST):
966         (IDBLevelDBCoding):
967
968 2012-08-01  James Robinson  <jamesr@chromium.org>
969
970         [chromium] Use new-style tracing macros with explicit category
971         https://bugs.webkit.org/show_bug.cgi?id=92928
972
973         Reviewed by Adam Barth.
974
975         Set the category explicitly in traces.
976
977         * src/WebViewImpl.cpp:
978         (WebKit::WebViewImpl::updateAnimations):
979         (WebKit::WebViewImpl::layout):
980         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
981
982 2012-08-01  James Robinson  <jamesr@chromium.org>
983
984         [chromium] Move compositor HUD font atlas initialization code out of compositor core
985         https://bugs.webkit.org/show_bug.cgi?id=92924
986
987         Reviewed by Adrienne Walker.
988
989         This initializes the compositor's font atlas when initialization the compositor if the "Show FPS counter" or
990         "Show layer tree" settings are true.
991
992         * src/WebLayerTreeView.cpp:
993         (WebKit::WebLayerTreeView::setFontAtlas):
994         (WebKit):
995         * src/WebViewImpl.cpp:
996         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
997
998 2012-08-01  Jian Li  <jianli@chromium.org>
999
1000         [chromium] Make WebKit API support draggable region change update
1001         https://bugs.webkit.org/show_bug.cgi?id=92813
1002
1003         Reviewed by Adam Barth.
1004
1005         Introduce WebDraggableRegion and delegate the draggable region update
1006         call to the new method draggableRegionsChanged in WebViewClient.
1007
1008         * public/WebDocument.h:
1009         (WebDocument):
1010         * public/WebDraggableRegion.h: Added.
1011         (WebKit):
1012         (WebDraggableRegion):
1013         * public/WebViewClient.h:
1014         (WebViewClient):
1015         (WebKit::WebViewClient::draggableRegionsChanged):
1016         * src/ChromeClientImpl.cpp:
1017         (WebKit):
1018         (WebKit::ChromeClientImpl::dashboardRegionsChanged):
1019         * src/ChromeClientImpl.h:
1020         (ChromeClientImpl):
1021         * src/WebDocument.cpp:
1022         (WebKit::WebDocument::draggableRegions):
1023         (WebKit):
1024
1025 2012-08-01  Antoine Labour  <piman@chromium.org>
1026
1027         [chromium] factor out the optimization pass in CCRenderSurfaceFilters::apply
1028         https://bugs.webkit.org/show_bug.cgi?id=92453
1029
1030         Reviewed by James Robinson.
1031
1032         This separates the "optimization" pass in CCRenderSurfaceFilters::apply
1033         to resolve a succession of color matrix filters into a single operation.
1034         This allows testing of that code.
1035         This introduces a new generic color matrix WebFilterOperation, which can
1036         also be used on its own.
1037
1038         * WebKit.gypi:
1039         * tests/CCRenderSurfaceFiltersTest.cpp: Added.
1040         (WebKit):
1041         (WebKit::isCombined):
1042         (WebKit::TEST):
1043
1044 2012-08-01  Daniel Murphy  <dmurph@chromium.org>
1045
1046         Fix for drawing invalid layers in WebViewBenchmarkSupportImpl
1047         https://bugs.webkit.org/show_bug.cgi?id=92920
1048
1049         Reviewed by Adrienne Walker.
1050
1051         The GraphicsLayers without content needed to be skipped.
1052
1053         * src/WebViewBenchmarkSupportImpl.cpp:
1054         (WebKit::WebViewBenchmarkSupportImpl::acceleratedPaintUnclipped):
1055
1056 2012-08-01  Jian Li  <jianli@chromium.org>
1057
1058         Add new CSS property "-webkit-widget-region" to expose dashboard region support for other port
1059         https://bugs.webkit.org/show_bug.cgi?id=90298
1060
1061         Reviewed by Adam Barth.
1062
1063         * features.gypi: Add ENABLE_WIDGET_REGION define.
1064
1065 2012-08-01  Antoine Labour  <piman@chromium.org>
1066
1067         [chromium] Fix lost context handling on hud layer
1068         https://bugs.webkit.org/show_bug.cgi?id=92915
1069
1070         Reviewed by Adrienne Walker.
1071
1072         On lost context we need to release CCScopedTextures, otherwise later on
1073         we will try to re-allocate it using a stale CCResourceProvider.
1074
1075         Test CCLayerTreeHostImplTest.dontUseOldResourcesAfterLostContext
1076         extended.
1077
1078         * tests/CCLayerTreeHostImplTest.cpp:
1079
1080 2012-08-01  Nico Weber  <thakis@chromium.org>
1081
1082         [chromium/mac] Delete WebImageCG.cpp
1083         https://bugs.webkit.org/show_bug.cgi?id=92910
1084
1085         Reviewed by James Robinson.
1086
1087         It's been unused since the switch to skia.
1088         Also remove now-unneeded *CG.cpp exclusion rule.
1089
1090         * WebKit.gyp:
1091         * src/WebImageCG.cpp: Removed.
1092
1093 2012-08-01  Joshua Bell  <jsbell@chromium.org>
1094
1095         [Chromium] IndexedDB: API stubs to simplify WebIDBCursor API
1096         https://bugs.webkit.org/show_bug.cgi?id=92414
1097
1098         Reviewed by Adam Barth.
1099
1100         Prep work to unblock Chromium changes so that http://webkit.org/b/92278 can land.
1101         Adds no-op methods which will later be implemented; during the landing sequence,
1102         Chromium will call both the new methods and the old ones. The end goal is that
1103         the success callbacks for cursors will include the new key/primaryKey/value rather
1104         than requiring the callee to call back into the cursor backend to fetch them.
1105
1106         * public/WebIDBCallbacks.h:
1107         (WebIDBCallbacks):
1108         (WebKit::WebIDBCallbacks::onSuccess):
1109
1110 2012-08-01  Peter Beverloo  <peter@chromium.org>
1111
1112         [Text Autosizing] Provide an API for influencing the font scale factor
1113         https://bugs.webkit.org/show_bug.cgi?id=92882
1114
1115         Reviewed by Adam Barth.
1116
1117         Add an API to change Text Autosizing's font scale factor.
1118
1119         The font scale factor applied to Text Autosizing influences the sizing
1120         of text, and will influence the scaling of boosted blocks once the
1121         implementation progresses. For Android, it will be set to the font size
1122         chosen in the user's system-wide preferences.
1123
1124         * public/WebSettings.h:
1125         * src/WebSettingsImpl.cpp:
1126         (WebKit::WebSettingsImpl::setTextAutosizingFontScaleFactor):
1127         (WebKit):
1128         * src/WebSettingsImpl.h:
1129         (WebSettingsImpl):
1130
1131 2012-08-01  Dirk Pranke  <dpranke@chromium.org>
1132
1133         Roll chromium DEPS to 149416.
1134
1135         Unreviewed.
1136
1137         * DEPS:
1138
1139 2012-08-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1140
1141         Unreviewed, rolling out r124334.
1142         http://trac.webkit.org/changeset/124334
1143         https://bugs.webkit.org/show_bug.cgi?id=92879
1144
1145         Broke MemoryInstrumentationTest.sizeOf from webkit_unit_tests
1146         on Chromium canaries (Requested by apavlov1 on #webkit).
1147
1148         * WebKit.gypi:
1149         * tests/MemoryInstrumentationTest.cpp: Removed.
1150
1151 2012-08-01  Ilya Tikhonovsky  <loislo@chromium.org>
1152
1153         Web Inspector: test native memory instrumentation code with help of unittests
1154         https://bugs.webkit.org/show_bug.cgi?id=92743
1155
1156         Reviewed by Yury Semikhatsky.
1157
1158         Test a part of existing Native Memory Instrumentation code with help of unit tests.
1159         6 tests were added and two bugs were fixed.
1160
1161         * WebKit.gypi:
1162         * tests/MemoryInstrumentationTest.cpp: Added.
1163         (WebCore):
1164         (MemoryInstrumentationImpl):
1165         (WebCore::MemoryInstrumentationImpl::MemoryInstrumentationImpl):
1166         (WebCore::MemoryInstrumentationImpl::reportedSize):
1167         (WebCore::MemoryInstrumentationImpl::countObjectSize):
1168         (WebCore::MemoryInstrumentationImpl::processDeferredInstrumentedPointers):
1169         (NotInstrumented):
1170         (Instrumented):
1171         (WebCore::Instrumented::Instrumented):
1172         (WebCore::Instrumented::~Instrumented):
1173         (WebCore::Instrumented::reportMemoryUsage):
1174         (WebCore::TEST):
1175         (InstrumentedWithOwnPtr):
1176         (WebCore::InstrumentedWithOwnPtr::InstrumentedWithOwnPtr):
1177         (WebCore::InstrumentedWithOwnPtr::reportMemoryUsage):
1178
1179 2012-08-01  Alexei Filippov  <alexeif@chromium.org>
1180
1181         Web Inspector: count DOM storage cache memory for native snapshot
1182         https://bugs.webkit.org/show_bug.cgi?id=91617
1183
1184         Reviewed by Yury Semikhatsky.
1185
1186         Add memory size used for DOM storage cache reporting interface.
1187
1188         * src/StorageAreaProxy.cpp:
1189         (WebCore::StorageAreaProxy::memoryBytesUsedByCache):
1190         (WebCore):
1191         * src/StorageAreaProxy.h:
1192         (StorageAreaProxy):
1193
1194 2012-07-31  Yoshifumi Inoue  <yosin@chromium.org>
1195
1196         [Chromium] Enable ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS
1197         https://bugs.webkit.org/show_bug.cgi?id=92822
1198
1199         Reviewed by Kent Tamura.
1200
1201         This patch enables ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS for Chromium
1202         port except for Android.
1203
1204         * features.gypi: Add ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS=1 to "feature_defines"
1205         block of OS != "android".
1206
1207 2012-07-31  Yusuf Ozuysal  <yusufo@google.com>
1208
1209         [chromium]Upstream WebViewImpl:StartPageScaleAnimation changes for Chrome for Android
1210         https://bugs.webkit.org/show_bug.cgi?id=92698
1211
1212         Reviewed by Adam Barth.
1213
1214         Enforce the maximum and minimum scroll positions after the scale has changed.
1215
1216         * src/WebViewImpl.cpp:
1217         (WebKit::WebViewImpl::startPageScaleAnimation):
1218         * src/WebViewImpl.h:
1219         (WebViewImpl):
1220
1221 2012-07-31  Terry Anderson  <tdanderson@chromium.org>
1222
1223         [chromium] Use the event bounding box when constructing a PlatformEvent::GestureTap
1224         https://bugs.webkit.org/show_bug.cgi?id=92151
1225
1226         Reviewed by Darin Fisher.
1227
1228         Now that gesture events store a bounding box, use |boundingBox| instead of
1229         |deltaX| and |deltaY| when specifying |m_area|.
1230
1231         * public/WebInputEvent.h:
1232         (WebGestureEvent):
1233         * src/WebInputEventConversion.cpp:
1234         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1235
1236 2012-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1237
1238         Unreviewed.  Rolled DEPS.
1239
1240         * DEPS:
1241
1242 2012-07-31  Shawn Singh  <shawnsingh@chromium.org>
1243
1244         [chromium] Hit test points are being clipped by layers that should not clip
1245         https://bugs.webkit.org/show_bug.cgi?id=92786
1246
1247         Reviewed by James Robinson.
1248
1249         * tests/CCLayerTreeHostCommonTest.cpp: adds a test where the
1250           hit-testable layer does not overlap its parent. The parent does
1251           not clip, so the layer should still be hittable.
1252
1253 2012-07-31  Chris Rogers  <crogers@google.com>
1254
1255         Allow AudioDestination to support local/live audio input
1256         https://bugs.webkit.org/show_bug.cgi?id=90318
1257
1258         Reviewed by Kenneth Russell.
1259
1260         * src/AudioDestinationChromium.cpp:
1261         (WebCore::AudioDestination::create):
1262         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
1263         (WebCore::AudioDestinationChromium::provideInput):
1264         (WebCore):
1265         * src/AudioDestinationChromium.h:
1266         (AudioDestinationChromium):
1267
1268 2012-07-31  Adam Barth  <abarth@webkit.org>
1269
1270         [Chromium-Android] We should hueristically detect content intents on touch
1271         https://bugs.webkit.org/show_bug.cgi?id=92346
1272
1273         Reviewed by Nate Chapin.
1274
1275         On Android, when the user touches a block of text, we run a bunch of
1276         OS-provided hueristics to detect content intents, such as telephone
1277         numbers and mailing addresses.
1278
1279         This patch introduces the WebViewClient functions and the
1280         detectContentIntentOnTouch function, but does not wire the code into
1281         the event system. There are some decisions to make about how to wire it
1282         into the event system, we'll tackle in the next patch.
1283
1284         * public/WebViewClient.h:
1285         (WebKit::WebViewClient::detectContentIntentAround):
1286         (WebViewClient):
1287         (WebKit::WebViewClient::scheduleContentIntent):
1288         (WebKit::WebViewClient::cancelScheduledContentIntents):
1289         * src/WebViewImpl.cpp:
1290         (WebKit):
1291         (WebKit::tapHighlightColorForNode):
1292         (WebKit::WebViewImpl::showTouchHighlightQuads):
1293         (WebKit::WebViewImpl::detectContentIntentOnTouch):
1294         * src/WebViewImpl.h:
1295         (WebViewImpl):
1296
1297 2012-07-31  Ian Vollick  <vollick@chromium.org>
1298
1299         [chromium] Use WebAnimation and related classes in GraphicsLayerChromium and AnimTranslationUtil
1300         https://bugs.webkit.org/show_bug.cgi?id=90468
1301
1302         Reviewed by James Robinson.
1303
1304         * src/WebAnimation.cpp:
1305         (WebKit::WebAnimation::targetProperty):
1306         (WebKit):
1307         (WebKit::WebAnimation::initialize):
1308         * src/WebLayer.cpp:
1309         (WebKit::WebLayer::setAnimationDelegate):
1310         (WebKit):
1311         (WebKit::WebLayer::addAnimation):
1312         (WebKit::WebLayer::removeAnimation):
1313         (WebKit::WebLayer::pauseAnimation):
1314         (WebKit::WebLayer::suspendAnimations):
1315         (WebKit::WebLayer::resumeAnimations):
1316         (WebKit::WebLayer::transferAnimationsTo):
1317         * tests/CCThreadedTest.cpp:
1318         * tests/CCThreadedTest.h:
1319         (TestHooks):
1320         * tests/WebAnimationTest.cpp:
1321         (WebKit::TEST):
1322
1323 2012-07-30  Adam Barth  <abarth@webkit.org>
1324
1325         Typo: doubleTa*b*ZoomAnimationDurationInSeconds in WebViewImpl.cpp
1326         https://bugs.webkit.org/show_bug.cgi?id=92135
1327
1328         Reviewed by Kentaro Hara.
1329
1330         This patch fixes a typo.
1331
1332         * src/WebViewImpl.cpp:
1333         (WebKit::WebViewImpl::animateZoomAroundPoint):
1334
1335 2012-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1336
1337         Unreviewed, rolling out r124179.
1338         http://trac.webkit.org/changeset/124179
1339         https://bugs.webkit.org/show_bug.cgi?id=92730
1340
1341         Breaks Chromium Linux 32 bots with "error: integer constant is
1342         too large for 'long' type" in IDBLevelDBCodingTest.cpp
1343         (Requested by apavlov on #webkit).
1344
1345         * tests/IDBLevelDBCodingTest.cpp:
1346         (IDBLevelDBCoding::TEST):
1347
1348 2012-07-30  Keishi Hattori  <keishi@webkit.org>
1349
1350         Implement datalist UI for input type color for Chromium
1351         https://bugs.webkit.org/show_bug.cgi?id=92075
1352
1353         Reviewed by Kent Tamura.
1354
1355         Integrated ColorChooserProxy and WebColorChooserClientImpl into ColorChooserUIController.
1356         ColorChooserUIController can control whether to open the color suggestion picker
1357         popup or the color chooser depending on the responses from ColorChooserClient.
1358
1359         * WebKit.gyp:
1360         * src/ChromeClientImpl.cpp:
1361         (WebKit::ChromeClientImpl::createColorChooser): Returns ColorChooserUIController which is a ColorChooser.
1362         (WebKit::ChromeClientImpl::createWebColorChooser): Returns WebColorChooser that was created by Chromium.
1363         * src/ChromeClientImpl.h:
1364         (WebKit):
1365         (ChromeClientImpl):
1366         * src/ColorChooserProxy.cpp: Removed.
1367         * src/ColorChooserProxy.h: Removed.
1368         * src/ColorChooserUIController.cpp: Added.
1369         (WebKit):
1370         (WebKit::ColorChooserUIController::ColorChooserUIController): Controls the UI for color chooser. Opens the color suggestion picker popup or color chooser depending on the ColorChooserClient.
1371         (WebKit::ColorChooserUIController::~ColorChooserUIController):
1372         (WebKit::ColorChooserUIController::setSelectedColor):
1373         (WebKit::ColorChooserUIController::endChooser): This is called by WebCore so we close both the popup and the color chooser.
1374         (WebKit::ColorChooserUIController::didChooseColor):
1375         (WebKit::ColorChooserUIController::didEndChooser):
1376         (WebKit::ColorChooserUIController::contentSize): The popup will be resized later from JS so we return an arbitrary size.
1377         (WebKit::ColorChooserUIController::writeDocument):
1378         (WebKit::ColorChooserUIController::setValueAndClosePopup): Performs action based on the numValue.
1379         (WebKit::ColorChooserUIController::didClosePopup):
1380         (WebKit::ColorChooserUIController::openPopup): Opens color chooser suggestion popup.
1381         (WebKit::ColorChooserUIController::closePopup):
1382         (WebKit::ColorChooserUIController::openColorChooser): Opens color chooser.
1383         * src/ColorChooserUIController.h: Renamed from Source/WebKit/chromium/src/WebColorChooserClientImpl.h.
1384         (WebCore):
1385         (WebKit):
1386         (ColorChooserUIController):
1387         * src/WebColorChooserClientImpl.cpp: Removed.
1388
1389 2012-07-30  Ryosuke Niwa  <rniwa@webkit.org>
1390
1391         Roll out the DEPS roll (r124164) for now since it broke Chromium Mac builds.
1392
1393         * DEPS:
1394
1395 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1396
1397         Unreviewed.  Rolled DEPS.
1398
1399         * DEPS:
1400
1401 2012-07-30  Adrienne Walker  <enne@google.com>
1402
1403         [chromium] Wrap ScrollbarLayerChromium in WebScrollbarLayer
1404         https://bugs.webkit.org/show_bug.cgi?id=91032
1405
1406         Reviewed by James Robinson.
1407
1408         Add implementation of WebScrollbarLayer to the client API.
1409
1410         * WebKit.gyp:
1411         * src/WebScrollbarLayer.cpp: Added.
1412         (WebKit):
1413         (WebKit::WebScrollbarLayer::setScrollLayer):
1414         (WebKit::WebScrollbarLayer::create):
1415         (WebKit::WebScrollbarLayer::WebScrollbarLayer):
1416         (WebKit::WebScrollbarLayer::operator=):
1417         (WebKit::WebScrollbarLayer::operator PassRefPtr<ScrollbarLayerChromium>):
1418
1419 2012-07-30  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1420
1421         Propagate gesture events to plugins.
1422         https://bugs.webkit.org/show_bug.cgi?id=92281
1423
1424         Reviewed by Adam Barth.
1425
1426         Propagate gesture events to plugins.
1427
1428         * src/WebInputEventConversion.cpp:
1429         (WebKit):
1430         (WebKit::WebGestureEventBuilder::WebGestureEventBuilder):
1431         * src/WebInputEventConversion.h:
1432         (WebCore):
1433         (WebKit):
1434         (WebGestureEventBuilder):
1435         * src/WebPluginContainerImpl.cpp:
1436         (WebKit::WebPluginContainerImpl::handleEvent):
1437         * src/WebPluginContainerImpl.h:
1438         (WebCore):
1439         (WebPluginContainerImpl):
1440
1441 2012-07-30  John Bates  <jbates@google.com>
1442
1443         Plumb vsync-enabled flag up to compositor thread and support disable-vsync
1444         https://bugs.webkit.org/show_bug.cgi?id=92323
1445
1446         Reviewed by James Robinson.
1447
1448         * public/WebSettings.h:
1449         * tests/CCFrameRateControllerTest.cpp:
1450         * src/WebLayerTreeView.cpp:
1451         (WebKit::WebLayerTreeView::Settings::operator CCLayerTreeSettings):
1452         * src/WebSettingsImpl.cpp:
1453         (WebKit::WebSettingsImpl::WebSettingsImpl):
1454         (WebKit::WebSettingsImpl::setRenderVSyncEnabled):
1455         (WebKit):
1456         * src/WebSettingsImpl.h:
1457         (WebSettingsImpl):
1458         (WebKit::WebSettingsImpl::renderVSyncEnabled):
1459         * src/WebViewImpl.cpp:
1460         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1461
1462 2012-07-30  Adrienne Walker  <enne@google.com>
1463
1464         [chromium] Remove dependency on ScrollbarTheme from the compositor
1465         https://bugs.webkit.org/show_bug.cgi?id=90528
1466
1467         Reviewed by James Robinson.
1468
1469         Add implementations for WebScrollbarThemeGeometry and
1470         WebScrollbarThemePainter. Fill out additional API calls for
1471         WebPluginScrollbarImpl since it derives from WebScrollbar.
1472
1473         Add WebScrollbarImpl to the client API to wrap and own an existing
1474         WebCore Scrollbar object and provide the WebScrollbar interface.
1475
1476         By keeping WebScrollbar separate from WebScrollbarThemeGeometry, the
1477         compositor thread can create its own thread-safe data bag version of a
1478         WebScrollbar (CCScrollbarLayerImpl::CCScrollbar), but this requires
1479         WebScrollbarThemeClientImpl.
1480
1481         WebScrollbarThemeClientImpl does the reverse of WebScrollbarImpl; it
1482         wraps a WebScrollbar and provides the ScrollbarThemeClient interface.
1483         This is so that a WebScrollbar can be passed to the geometry and
1484         painter functions. Then, internally the WebScrollbarThemeClientImpl
1485         can be used to adapt the WebScrollbar to the ScrollbarThemeClient
1486         interface so the geometry and painter functions can call direct
1487         functions on ScrollbarThemeComposite.
1488
1489         * WebKit.gyp:
1490         * src/AssertMatchingEnums.cpp:
1491         * src/ExternalPopupMenu.h:
1492         (WebKit):
1493         * src/WebPluginScrollbarImpl.cpp:
1494         (WebKit::WebPluginScrollbarImpl::WebPluginScrollbarImpl):
1495         (WebKit::WebPluginScrollbarImpl::location):
1496         (WebKit):
1497         (WebKit::WebPluginScrollbarImpl::size):
1498         (WebKit::WebPluginScrollbarImpl::enabled):
1499         (WebKit::WebPluginScrollbarImpl::maximum):
1500         (WebKit::WebPluginScrollbarImpl::totalSize):
1501         (WebKit::WebPluginScrollbarImpl::isScrollViewScrollbar):
1502         (WebKit::WebPluginScrollbarImpl::isScrollableAreaActive):
1503         (WebKit::WebPluginScrollbarImpl::getTickmarks):
1504         (WebKit::WebPluginScrollbarImpl::controlSize):
1505         (WebKit::WebPluginScrollbarImpl::pressedPart):
1506         (WebKit::WebPluginScrollbarImpl::hoveredPart):
1507         (WebKit::WebPluginScrollbarImpl::scrollbarOverlayStyle):
1508         (WebKit::WebPluginScrollbarImpl::orientation):
1509         (WebKit::WebPluginScrollbarImpl::isCustomScrollbar):
1510         (WebKit::WebPluginScrollbarImpl::onMouseUp):
1511         (WebKit::WebPluginScrollbarImpl::onMouseMove):
1512         (WebKit::WebPluginScrollbarImpl::onMouseLeave):
1513         * src/WebPluginScrollbarImpl.h:
1514         (WebPluginScrollbarImpl):
1515         * src/WebScrollbarImpl.cpp: Added.
1516         (WebKit):
1517         (WebKit::WebScrollbar::create):
1518         (WebKit::WebScrollbarImpl::WebScrollbarImpl):
1519         (WebKit::WebScrollbarImpl::isOverlay):
1520         (WebKit::WebScrollbarImpl::value):
1521         (WebKit::WebScrollbarImpl::location):
1522         (WebKit::WebScrollbarImpl::size):
1523         (WebKit::WebScrollbarImpl::enabled):
1524         (WebKit::WebScrollbarImpl::maximum):
1525         (WebKit::WebScrollbarImpl::totalSize):
1526         (WebKit::WebScrollbarImpl::isScrollViewScrollbar):
1527         (WebKit::WebScrollbarImpl::isScrollableAreaActive):
1528         (WebKit::WebScrollbarImpl::getTickmarks):
1529         (WebKit::WebScrollbarImpl::controlSize):
1530         (WebKit::WebScrollbarImpl::pressedPart):
1531         (WebKit::WebScrollbarImpl::hoveredPart):
1532         (WebKit::WebScrollbarImpl::scrollbarOverlayStyle):
1533         (WebKit::WebScrollbarImpl::orientation):
1534         (WebKit::WebScrollbarImpl::isCustomScrollbar):
1535         * src/WebScrollbarImpl.h: Copied from Source/Platform/chromium/public/WebScrollbar.h.
1536         (WebCore):
1537         (WebKit):
1538         (WebScrollbarImpl):
1539         * src/WebScrollbarThemeClientImpl.cpp: Added.
1540         (WebKit):
1541         (WebKit::WebScrollbarThemeClientImpl::WebScrollbarThemeClientImpl):
1542         (WebKit::WebScrollbarThemeClientImpl::x):
1543         (WebKit::WebScrollbarThemeClientImpl::y):
1544         (WebKit::WebScrollbarThemeClientImpl::width):
1545         (WebKit::WebScrollbarThemeClientImpl::height):
1546         (WebKit::WebScrollbarThemeClientImpl::size):
1547         (WebKit::WebScrollbarThemeClientImpl::location):
1548         (WebKit::WebScrollbarThemeClientImpl::parent):
1549         (WebKit::WebScrollbarThemeClientImpl::root):
1550         (WebKit::WebScrollbarThemeClientImpl::setFrameRect):
1551         (WebKit::WebScrollbarThemeClientImpl::frameRect):
1552         (WebKit::WebScrollbarThemeClientImpl::invalidate):
1553         (WebKit::WebScrollbarThemeClientImpl::invalidateRect):
1554         (WebKit::WebScrollbarThemeClientImpl::scrollbarOverlayStyle):
1555         (WebKit::WebScrollbarThemeClientImpl::getTickmarks):
1556         (WebKit::WebScrollbarThemeClientImpl::isScrollableAreaActive):
1557         (WebKit::WebScrollbarThemeClientImpl::isScrollViewScrollbar):
1558         (WebKit::WebScrollbarThemeClientImpl::convertFromContainingWindow):
1559         (WebKit::WebScrollbarThemeClientImpl::isCustomScrollbar):
1560         (WebKit::WebScrollbarThemeClientImpl::orientation):
1561         (WebKit::WebScrollbarThemeClientImpl::value):
1562         (WebKit::WebScrollbarThemeClientImpl::currentPos):
1563         (WebKit::WebScrollbarThemeClientImpl::visibleSize):
1564         (WebKit::WebScrollbarThemeClientImpl::totalSize):
1565         (WebKit::WebScrollbarThemeClientImpl::maximum):
1566         (WebKit::WebScrollbarThemeClientImpl::controlSize):
1567         (WebKit::WebScrollbarThemeClientImpl::lineStep):
1568         (WebKit::WebScrollbarThemeClientImpl::pageStep):
1569         (WebKit::WebScrollbarThemeClientImpl::pressedPart):
1570         (WebKit::WebScrollbarThemeClientImpl::hoveredPart):
1571         (WebKit::WebScrollbarThemeClientImpl::styleChanged):
1572         (WebKit::WebScrollbarThemeClientImpl::enabled):
1573         (WebKit::WebScrollbarThemeClientImpl::setEnabled):
1574         (WebKit::WebScrollbarThemeClientImpl::isOverlayScrollbar):
1575         * src/WebScrollbarThemeClientImpl.h: Added.
1576         (WebCore):
1577         (WebKit):
1578         (WebScrollbarThemeClientImpl):
1579         * src/WebScrollbarThemeGeometry.cpp: Added.
1580         (WebKit):
1581         (WebKit::WebScrollbarThemeGeometry::assign):
1582         (WebKit::WebScrollbarThemeGeometry::thumbPosition):
1583         (WebKit::WebScrollbarThemeGeometry::thumbLength):
1584         (WebKit::WebScrollbarThemeGeometry::trackPosition):
1585         (WebKit::WebScrollbarThemeGeometry::trackLength):
1586         (WebKit::WebScrollbarThemeGeometry::hasButtons):
1587         (WebKit::WebScrollbarThemeGeometry::hasThumb):
1588         (WebKit::WebScrollbarThemeGeometry::trackRect):
1589         (WebKit::WebScrollbarThemeGeometry::thumbRect):
1590         (WebKit::WebScrollbarThemeGeometry::minimumThumbLength):
1591         (WebKit::WebScrollbarThemeGeometry::scrollbarThickness):
1592         (WebKit::WebScrollbarThemeGeometry::backButtonStartRect):
1593         (WebKit::WebScrollbarThemeGeometry::backButtonEndRect):
1594         (WebKit::WebScrollbarThemeGeometry::forwardButtonStartRect):
1595         (WebKit::WebScrollbarThemeGeometry::forwardButtonEndRect):
1596         (WebKit::WebScrollbarThemeGeometry::constrainTrackRectToTrackPieces):
1597         (WebKit::WebScrollbarThemeGeometry::splitTrack):
1598         (WebKit::WebScrollbarThemeGeometry::WebScrollbarThemeGeometry):
1599         * src/WebScrollbarThemePainter.cpp: Added.
1600         (WebKit):
1601         (WebKit::WebScrollbarThemePainter::assign):
1602         (WebKit::WebScrollbarThemePainter::paintScrollbarBackground):
1603         (WebKit::WebScrollbarThemePainter::paintTrackBackground):
1604         (WebKit::WebScrollbarThemePainter::paintBackTrackPart):
1605         (WebKit::WebScrollbarThemePainter::paintForwardTrackPart):
1606         (WebKit::WebScrollbarThemePainter::paintBackButtonStart):
1607         (WebKit::WebScrollbarThemePainter::paintBackButtonEnd):
1608         (WebKit::WebScrollbarThemePainter::paintForwardButtonStart):
1609         (WebKit::WebScrollbarThemePainter::paintForwardButtonEnd):
1610         (WebKit::WebScrollbarThemePainter::paintTickmarks):
1611         (WebKit::WebScrollbarThemePainter::paintThumb):
1612         (WebKit::WebScrollbarThemePainter::WebScrollbarThemePainter):
1613         * tests/ScrollbarLayerChromiumTest.cpp:
1614         (WebCore::MockScrollbar::convertFromContainingWindow):
1615         (WebCore::MockScrollbar::isOverlayScrollbar):
1616         (MockScrollbar):
1617         (WebCore::TEST):
1618
1619 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1620
1621         Unreviewed, rolling out r124025.
1622         http://trac.webkit.org/changeset/124025
1623         https://bugs.webkit.org/show_bug.cgi?id=92658
1624
1625         Causes color-suggestion-picker-appearance layout test to time
1626         out on all Chromium platforms (Requested by tomhudson_ on
1627         #webkit).
1628
1629         * WebKit.gyp:
1630         * src/ChromeClientImpl.cpp:
1631         (WebKit::ChromeClientImpl::createColorChooser):
1632         * src/ChromeClientImpl.h:
1633         (WebCore):
1634         (ChromeClientImpl):
1635         * src/ColorChooserProxy.cpp: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
1636         (WebKit):
1637         (WebKit::ColorChooserProxy::ColorChooserProxy):
1638         (WebKit::ColorChooserProxy::~ColorChooserProxy):
1639         (WebKit::ColorChooserProxy::setSelectedColor):
1640         (WebKit::ColorChooserProxy::endChooser):
1641         * src/ColorChooserProxy.h: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
1642         (WebKit):
1643         (ColorChooserProxy):
1644         * src/ColorChooserUIController.cpp: Removed.
1645         * src/WebColorChooserClientImpl.cpp: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
1646         (WebKit):
1647         (WebKit::WebColorChooserClientImpl::WebColorChooserClientImpl):
1648         (WebKit::WebColorChooserClientImpl::~WebColorChooserClientImpl):
1649         (WebKit::WebColorChooserClientImpl::didChooseColor):
1650         (WebKit::WebColorChooserClientImpl::didEndChooser):
1651         * src/WebColorChooserClientImpl.h: Renamed from Source/WebKit/chromium/src/ColorChooserUIController.h.
1652         (WebCore):
1653         (WebKit):
1654         (WebColorChooserClientImpl):
1655
1656 2012-07-30  Keishi Hattori  <keishi@webkit.org>
1657
1658         Implement datalist UI for input type color for Chromium
1659         https://bugs.webkit.org/show_bug.cgi?id=92075
1660
1661         Reviewed by Kent Tamura.
1662
1663         Integrated ColorChooserProxy and WebColorChooserClientImpl into ColorChooserUIController.
1664         ColorChooserUIController can control whether to open the color suggestion picker
1665         popup or the color chooser depending on the responses from ColorChooserClient.
1666
1667         * WebKit.gyp:
1668         * src/ChromeClientImpl.cpp:
1669         (WebKit::ChromeClientImpl::createColorChooser): Returns ColorChooserUIController which is a ColorChooser.
1670         (WebKit::ChromeClientImpl::createWebColorChooser): Returns WebColorChooser that was created by Chromium.
1671         * src/ChromeClientImpl.h:
1672         (WebKit):
1673         (ChromeClientImpl):
1674         * src/ColorChooserProxy.cpp: Removed.
1675         * src/ColorChooserProxy.h: Removed.
1676         * src/ColorChooserUIController.cpp: Added.
1677         (WebKit):
1678         (WebKit::ColorChooserUIController::ColorChooserUIController): Controls the UI for color chooser. Opens the color suggestion picker popup or color chooser depending on the ColorChooserClient.
1679         (WebKit::ColorChooserUIController::~ColorChooserUIController):
1680         (WebKit::ColorChooserUIController::setSelectedColor):
1681         (WebKit::ColorChooserUIController::endChooser): This is called by WebCore so we close both the popup and the color chooser.
1682         (WebKit::ColorChooserUIController::didChooseColor):
1683         (WebKit::ColorChooserUIController::didEndChooser):
1684         (WebKit::ColorChooserUIController::contentSize): The popup will be resized later from JS so we return an arbitrary size.
1685         (WebKit::ColorChooserUIController::writeDocument):
1686         (WebKit::ColorChooserUIController::setValueAndClosePopup): Performs action based on the numValue.
1687         (WebKit::ColorChooserUIController::didClosePopup):
1688         (WebKit::ColorChooserUIController::openPopup): Opens color chooser suggestion popup.
1689         (WebKit::ColorChooserUIController::closePopup):
1690         (WebKit::ColorChooserUIController::openColorChooser): Opens color chooser.
1691         * src/ColorChooserUIController.h: Renamed from Source/WebKit/chromium/src/WebColorChooserClientImpl.h.
1692         (WebCore):
1693         (WebKit):
1694         (ColorChooserUIController):
1695         * src/WebColorChooserClientImpl.cpp: Removed.
1696
1697 2012-07-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1698
1699         [DRT] LTC:: pageNumberForElementById() could be moved to Internals
1700         https://bugs.webkit.org/show_bug.cgi?id=92091
1701
1702         Reviewed by Hajime Morita.
1703
1704         Move the pageNumberForElementById from LayoutTestCotroller to Internals and
1705         remove the old platform specific implementations as it exclusively tests WebCore functionality.
1706
1707         * public/WebFrame.h:
1708         (WebFrame):
1709         * src/WebFrameImpl.cpp:
1710         (WebKit):
1711         * src/WebFrameImpl.h:
1712         (WebFrameImpl):
1713
1714 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1715
1716         Unreviewed, rolling out r124004.
1717         http://trac.webkit.org/changeset/124004
1718         https://bugs.webkit.org/show_bug.cgi?id=92622
1719
1720         Broke Android build (Requested by keishi on #webkit).
1721
1722         * WebKit.gyp:
1723         * src/ChromeClientImpl.cpp:
1724         (WebKit::ChromeClientImpl::createColorChooser):
1725         * src/ChromeClientImpl.h:
1726         (WebCore):
1727         (ChromeClientImpl):
1728         * src/ColorChooserProxy.cpp: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
1729         (WebKit):
1730         (WebKit::ColorChooserProxy::ColorChooserProxy):
1731         (WebKit::ColorChooserProxy::~ColorChooserProxy):
1732         (WebKit::ColorChooserProxy::setSelectedColor):
1733         (WebKit::ColorChooserProxy::endChooser):
1734         * src/ColorChooserProxy.h: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
1735         (WebKit):
1736         (ColorChooserProxy):
1737         * src/ColorChooserUIController.cpp: Removed.
1738         * src/WebColorChooserClientImpl.cpp: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
1739         (WebKit):
1740         (WebKit::WebColorChooserClientImpl::WebColorChooserClientImpl):
1741         (WebKit::WebColorChooserClientImpl::~WebColorChooserClientImpl):
1742         (WebKit::WebColorChooserClientImpl::didChooseColor):
1743         (WebKit::WebColorChooserClientImpl::didEndChooser):
1744         * src/WebColorChooserClientImpl.h: Renamed from Source/WebKit/chromium/src/ColorChooserUIController.h.
1745         (WebCore):
1746         (WebKit):
1747         (WebColorChooserClientImpl):
1748
1749 2012-07-30  Keishi Hattori  <keishi@webkit.org>
1750
1751         Implement datalist UI for input type color for Chromium
1752         https://bugs.webkit.org/show_bug.cgi?id=92075
1753
1754         Reviewed by Kent Tamura.
1755
1756         Integrated ColorChooserProxy and WebColorChooserClientImpl into ColorChooserUIController.
1757         ColorChooserUIController can control whether to open the color suggestion picker
1758         popup or the color chooser depending on the responses from ColorChooserClient.
1759
1760         * WebKit.gyp:
1761         * src/ChromeClientImpl.cpp:
1762         (WebKit::ChromeClientImpl::createColorChooser): Returns ColorChooserUIController which is a ColorChooser.
1763         (WebKit::ChromeClientImpl::createWebColorChooser): Returns WebColorChooser that was created by Chromium.
1764         * src/ChromeClientImpl.h:
1765         (WebKit):
1766         (ChromeClientImpl):
1767         * src/ColorChooserProxy.cpp: Removed.
1768         * src/ColorChooserProxy.h: Removed.
1769         * src/ColorChooserUIController.cpp: Added.
1770         (WebKit):
1771         (WebKit::ColorChooserUIController::ColorChooserUIController): Controls the UI for color chooser. Opens the color suggestion picker popup or color chooser depending on the ColorChooserClient.
1772         (WebKit::ColorChooserUIController::~ColorChooserUIController):
1773         (WebKit::ColorChooserUIController::setSelectedColor):
1774         (WebKit::ColorChooserUIController::endChooser): This is called by WebCore so we close both the popup and the color chooser.
1775         (WebKit::ColorChooserUIController::didChooseColor):
1776         (WebKit::ColorChooserUIController::didEndChooser):
1777         (WebKit::ColorChooserUIController::contentSize): The popup will be resized later from JS so we return an arbitrary size.
1778         (WebKit::ColorChooserUIController::writeDocument):
1779         (WebKit::ColorChooserUIController::setValueAndClosePopup): Performs action based on the numValue.
1780         (WebKit::ColorChooserUIController::didClosePopup):
1781         (WebKit::ColorChooserUIController::openPopup): Opens color chooser suggestion popup.
1782         (WebKit::ColorChooserUIController::closePopup):
1783         (WebKit::ColorChooserUIController::openColorChooser): Opens color chooser.
1784         * src/ColorChooserUIController.h: Renamed from Source/WebKit/chromium/src/WebColorChooserClientImpl.h.
1785         (WebCore):
1786         (WebKit):
1787         (ColorChooserUIController):
1788         * src/WebColorChooserClientImpl.cpp: Removed.
1789
1790 2012-07-29  Lu Guanqun  <guanqun.lu@intel.com>
1791
1792         [chromium] pass acceleratePainting info to settings
1793         https://bugs.webkit.org/show_bug.cgi?id=92467
1794
1795         Reviewed by Eric Seidel.
1796
1797         The acceleratePainting info is not passed into settings correctly so
1798         that GPU composition would not use the code path of accelerated painting.
1799
1800         * src/WebLayerTreeView.cpp:
1801         (WebKit::WebLayerTreeView::Settings::operator CCLayerTreeSettings):
1802
1803 2012-07-29  Rik Cabanier  <cabanier@adobe.com>
1804
1805         Add ENABLE_CSS_COMPOSITING flag
1806         https://bugs.webkit.org/show_bug.cgi?id=92553
1807
1808         Reviewed by Dirk Schulze.
1809
1810         Adds compiler flag CSS_COMPOSITING to build systems to enable CSS blending and compositing. See spec https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html
1811
1812         * features.gypi:
1813
1814 2012-07-28  Peter Kasting  <pkasting@google.com>
1815
1816         Sigh.  Just disable all the AutoResize tests after the first three.
1817         https://bugs.webkit.org/show_bug.cgi?id=92318 
1818
1819         Unreviewed, making bots happier.
1820
1821         * tests/WebViewTest.cpp:
1822
1823 2012-07-28  Peter Kasting  <pkasting@google.com>
1824
1825         Try disabling different test in hopes of tracking down the real problem.
1826         https://bugs.webkit.org/show_bug.cgi?id=92318 
1827
1828         Unreviewed, making bots happier.
1829
1830         * tests/WebViewTest.cpp:
1831
1832 2012-07-27  Peter Kasting  <pkasting@google.com>
1833
1834         Disable failing test.
1835         https://bugs.webkit.org/show_bug.cgi?id=92318 
1836
1837         Unreviewed, making bots happier.
1838
1839         * tests/WebViewTest.cpp:
1840
1841 2012-07-27  Scott Graham  <scottmg@chromium.org>
1842
1843         Change navigator.webkitGamepads[] to navigator.webkitGetGamepads()
1844         https://bugs.webkit.org/show_bug.cgi?id=92533
1845
1846         Reviewed by Adam Barth.
1847
1848         Renames for updated access point.
1849
1850         * src/WebRuntimeFeatures.cpp:
1851         (WebKit::WebRuntimeFeatures::enableGamepad):
1852         (WebKit::WebRuntimeFeatures::isGamepadEnabled):
1853
1854 2012-07-27  Kevin Ellis  <kevers@chromium.org>
1855
1856         [chromium] Calendar for input type=date should be larger on devices that support touch input.
1857         https://bugs.webkit.org/show_bug.cgi?id=92424
1858
1859         Reviewed by Kent Tamura.
1860
1861         Plumbs the deviceSupportsTouch setting through to the popup page so
1862         that the Calendar popup can be enlarged on screens that support touch
1863         input.
1864
1865         * src/WebPagePopupImpl.cpp:
1866         (WebKit::WebPagePopupImpl::initPage):
1867
1868 2012-07-27  Peter Beverloo  <peter@chromium.org>
1869
1870         Unreviewed.  Rolled DEPS.
1871
1872         * DEPS:
1873
1874 2012-07-27  Oli Lan  <olilan@chromium.org>
1875
1876         [chromium] Fix issues in visiblePositionForWindowPoint (offscreen points / iframes).
1877         https://bugs.webkit.org/show_bug.cgi?id=79117
1878
1879         Fix two issues in WebFrameImpl::visiblePositionForWindowPoint.
1880
1881         1) If the point is off-screen, the visiblePosition is clipped to the screen.
1882            - The fix is to add HitTestRequest::IgnoreClipping.
1883
1884         2) The result is incorrect if the point is within an iframe.
1885            - This is because we are calling convertFromContainingWindow twice: once in windowToContents,
1886              and then explicitly as well.
1887            - This patch removes the explicit call to convertFromContainingWindow. 
1888
1889         Reviewed by Adam Barth.
1890
1891         * src/WebFrameImpl.cpp:
1892         (WebKit::WebFrameImpl::visiblePositionForWindowPoint):
1893
1894 2012-07-27  Peter Beverloo  <peter@chromium.org>
1895
1896         Unreviewed.  Rolled DEPS.
1897
1898         * DEPS:
1899
1900 2012-07-27  Alec Flett  <alecflett@chromium.org>
1901
1902         IndexedDB: inject index keys on cursor/objectstore/index get success handlers
1903         https://bugs.webkit.org/show_bug.cgi?id=91123
1904
1905         Reviewed by Tony Chang.
1906
1907         Remove method no longer used.
1908
1909         * tests/IDBFakeBackingStore.h:
1910
1911 2012-07-26  Yoshifumi Inoue  <yosin@chromium.org>
1912
1913         [Forms] Introduce runtime feature flags for input type datetime, datetimelocal, month, time, week
1914         https://bugs.webkit.org/show_bug.cgi?id=92339
1915
1916         Reviewed by Kent Tamura.
1917
1918         To detect compilation errors and test failure earlier, I would like
1919         build and run tests for input type datetime, datetime-local, month,
1920         time and week with runtime feature flags to avoid behavior changes
1921         on chromium browser.
1922
1923         This patch adds query and change functions for runtime features of
1924         input type datetime, datetime-local, month, time and week to WebRuntimeFeatures
1925         class for exposing DRT and chromium browser expermental flags.
1926
1927         * features.gypi: Turn on ENABLE_INPUT_TYPE_DATETIME, ENABLE_INPUT_TYPE_DATETIMELOCAL,
1928         ENABLE_INPUT_TYPE_MONTH, ENABLE_INPUT_TYPE_TIME, and ENABLE_INPUT_TYPE_WEEK for all OS.
1929         * public/WebRuntimeFeatures.h:
1930         (WebRuntimeFeatures):
1931         * src/WebRuntimeFeatures.cpp:
1932         (WebKit::WebRuntimeFeatures::enableInputTypeDateTime): Added.
1933         (WebKit::WebRuntimeFeatures::isInputTypeDateTimeEnabled): Added.
1934         (WebKit::WebRuntimeFeatures::enableInputTypeDateTimeLocal): Added.
1935         (WebKit::WebRuntimeFeatures::isInputTypeDateTimeLocalEnabled): Added.
1936         (WebKit::WebRuntimeFeatures::enableInputTypeMonth): Added.
1937         (WebKit::WebRuntimeFeatures::isInputTypeMonthEnabled): Added.
1938         (WebKit::WebRuntimeFeatures::enableInputTypeTime): Added.
1939         (WebKit::WebRuntimeFeatures::isInputTypeTimeEnabled): Added.
1940         (WebKit::WebRuntimeFeatures::enableInputTypeWeek): Added.
1941         (WebKit::WebRuntimeFeatures::isInputTypeWeekEnabled): Added.
1942
1943 2012-07-26  Sheriff Bot  <webkit.review.bot@gmail.com>
1944
1945         Unreviewed, rolling out r123799.
1946         http://trac.webkit.org/changeset/123799
1947         https://bugs.webkit.org/show_bug.cgi?id=92431
1948
1949         broke the Apple Mac build (Requested by bweinstein on
1950         #webkit).
1951
1952         * src/WebInputEventConversion.cpp:
1953         (WebKit):
1954         * src/WebInputEventConversion.h:
1955         (WebKit):
1956         * src/WebPluginContainerImpl.cpp:
1957         (WebKit::WebPluginContainerImpl::handleEvent):
1958         * src/WebPluginContainerImpl.h:
1959         (WebPluginContainerImpl):
1960
1961 2012-07-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1962
1963         Propagate gesture events to plugins.
1964         https://bugs.webkit.org/show_bug.cgi?id=92281
1965
1966         Reviewed by Adam Barth.
1967
1968         Propagate gesture events to plugins.
1969
1970         * src/WebInputEventConversion.cpp:
1971         (WebKit):
1972         (WebKit::WebGestureEventBuilder::WebGestureEventBuilder):
1973         * src/WebInputEventConversion.h:
1974         (WebCore):
1975         (WebKit):
1976         (WebGestureEventBuilder):
1977         * src/WebPluginContainerImpl.cpp:
1978         (WebKit::WebPluginContainerImpl::handleEvent):
1979         * src/WebPluginContainerImpl.h:
1980         (WebCore):
1981         (WebPluginContainerImpl):
1982
1983 2012-07-26  Adrienne Walker  <enne@google.com>
1984
1985         [chromium] Remove redundant surface origin transforms
1986         https://bugs.webkit.org/show_bug.cgi?id=91815
1987
1988         Reviewed by Stephen White.
1989
1990         Clean up use of origin transforms in tests. Where possible, test
1991         against the equivalent draw transform.
1992
1993         * tests/CCLayerTreeHostCommonTest.cpp:
1994         * tests/CCLayerTreeHostImplTest.cpp:
1995         * tests/CCRenderSurfaceTest.cpp:
1996
1997 2012-07-25  David Grogan  <dgrogan@chromium.org>
1998
1999         IndexedDB: WebKit API interfaces for "upgradeneeded" methods and events
2000         https://bugs.webkit.org/show_bug.cgi?id=92203
2001
2002         Reviewed by Adam Barth.
2003
2004         This is the beginning of our typical three-sided-patch process.
2005
2006         * public/WebIDBCallbacks.h:
2007         (WebKit::WebIDBCallbacks::onBlocked):
2008         (WebKit::WebIDBCallbacks::onUpgradeNeeded):
2009         * public/WebIDBDatabaseCallbacks.h:
2010         (WebKit::WebIDBDatabaseCallbacks::onVersionChange):
2011         * public/WebIDBFactory.h:
2012         (WebIDBFactory):
2013         (WebKit::WebIDBFactory::open):
2014         * src/WebIDBFactoryImpl.cpp:
2015         (WebKit::WebIDBFactoryImpl::open):
2016         (WebKit):
2017         * src/WebIDBFactoryImpl.h:
2018         (WebIDBFactoryImpl):
2019
2020 2012-07-19  Adrienne Walker  <enne@google.com>
2021
2022         [chromium] Make all compositor screen space transforms operate on content rects
2023         https://bugs.webkit.org/show_bug.cgi?id=91807
2024
2025         Reviewed by Kenneth Russell.
2026
2027         Update tests that deal with screen space transforms to reflect this change.
2028
2029         * tests/CCLayerTreeHostCommonTest.cpp:
2030         * tests/TiledLayerChromiumTest.cpp:
2031
2032 2012-07-25  Andrew Wilson  <atwilson@chromium.org>
2033
2034         Unreviewed chromium change to disable failing WebViewTest.AutoResizeInBetweenSizes.
2035         https://bugs.webkit.org/show_bug.cgi?id=92318
2036
2037         * tests/WebViewTest.cpp:
2038
2039 2012-07-25  Scott Graham  <scottmg@chromium.org>
2040
2041         [Chromium] fix double->float warnings in CCLayerTreeHostCommonTest.cpp
2042         https://bugs.webkit.org/show_bug.cgi?id=92271
2043
2044         Reviewed by Adrienne Walker.
2045
2046         Fix compile warnings on Windows.
2047
2048         * tests/CCLayerTreeHostCommonTest.cpp:
2049
2050 2012-07-25  Dana Jansens  <danakj@chromium.org>
2051
2052         [chromium] Move WebFilterOperations from RenderPassDrawQuad to RenderPass
2053         https://bugs.webkit.org/show_bug.cgi?id=91885
2054
2055         Reviewed by Adrienne Walker.
2056
2057         * tests/CCLayerTreeHostImplTest.cpp:
2058         * tests/LayerRendererChromiumTest.cpp:
2059         (FakeCCRendererClient::FakeCCRendererClient):
2060         (FakeCCRendererClient::rootRenderPass):
2061         (FakeCCRendererClient::renderPassesInDrawOrder):
2062         (FakeCCRendererClient::renderPasses):
2063         (FakeCCRendererClient):
2064         (TEST_F):
2065         (TEST):
2066
2067 2012-07-24  Shawn Singh  <shawnsingh@chromium.org>
2068
2069         [chromium] Refactor CCLayerTreeHostCommon: move root layer special case initialization into internal code.
2070         https://bugs.webkit.org/show_bug.cgi?id=88953
2071
2072         Reviewed by Adrienne Walker.
2073
2074         Unit tests updated to account for the new less-special root layer setup.
2075           - most test cases just needed to remove root->renderSurface()->setContentBounds(), createRenderSurface(), and renderSurfaceLayerList.append().
2076           - some test cases originally relied on setting some awkward unconventional bounds of the rootLayer that were different than the rootLayer's renderSurface. these tests are updated.
2077           - a few minor cleanups otherwise.
2078
2079         * tests/CCDamageTrackerTest.cpp:
2080         (WebKitTests::executeCalculateDrawTransformsAndVisibility):
2081         * tests/CCLayerIteratorTest.cpp:
2082         * tests/CCLayerTreeHostCommonTest.cpp:
2083         * tests/CCOcclusionTrackerTest.cpp:
2084         (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):
2085
2086 2012-07-25  Taiju Tsuiki  <tzik@chromium.org>
2087
2088         FileSystem should provide a way to delete filesystem.
2089         https://bugs.webkit.org/show_bug.cgi?id=91861
2090
2091         Reviewed by Adam Barth.
2092
2093         * public/WebFrameClient.h:
2094         (WebFrameClient):
2095         (WebKit::WebFrameClient::deleteFileSystem):
2096         * src/LocalFileSystemChromium.cpp: Add deleteFileSystem
2097         (WebCore::deleteFileSystemNotAllowed):
2098         (WebCore):
2099         (WebCore::LocalFileSystem::deleteFileSystem):
2100
2101 2012-07-25  Alok Priyadarshi  <alokp@chromium.org>
2102
2103         [chromium] WebViewBenchmarkSupport::paint API does not work with recording canvas
2104         https://bugs.webkit.org/show_bug.cgi?id=92008
2105
2106         Reviewed by Darin Fisher.
2107
2108         Moved the ownership of canvas to WebViewBenchmarkSupport::PaintClient.
2109
2110         * public/WebViewBenchmarkSupport.h:
2111         (PaintClient):
2112         (WebKit::WebViewBenchmarkSupport::PaintClient::willPaint):
2113         (WebKit::WebViewBenchmarkSupport::PaintClient::didPaint):
2114         * src/WebViewBenchmarkSupportImpl.cpp:
2115         (WebKit::WebViewBenchmarkSupportImpl::paintLayer):
2116         (WebKit::WebViewBenchmarkSupportImpl::softwarePaint):
2117
2118 2012-07-24  Dana Jansens  <danakj@chromium.org>
2119
2120         [chromium] Turn the debug HUD into a layer so that it can be drawn as a WebCompositorQuad
2121         https://bugs.webkit.org/show_bug.cgi?id=92182
2122
2123         Reviewed by Adrienne Walker.
2124
2125         * tests/LayerRendererChromiumTest.cpp:
2126         (TEST):
2127
2128 2012-07-25  Adrienne Walker  <enne@google.com>
2129
2130         [chromium] Unify compositor quadTransform/drawTransform/originTransform
2131         https://bugs.webkit.org/show_bug.cgi?id=91417
2132
2133         Reviewed by Kenneth Russell.
2134
2135         Clean up tests to refer to the new draw transform semantics.
2136
2137         * tests/CCDamageTrackerTest.cpp:
2138         (WebKitTests::createTestTreeWithOneSurface):
2139         (WebKitTests::createTestTreeWithTwoSurfaces):
2140         (WebKitTests::TEST_F):
2141         * tests/CCLayerSorterTest.cpp:
2142         * tests/CCLayerTreeHostCommonTest.cpp:
2143         * tests/CCLayerTreeHostImplTest.cpp:
2144         * tests/CCLayerTreeHostTest.cpp:
2145         (WTF::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers::commitCompleteOnCCThread):
2146         * tests/CCQuadCullerTest.cpp:
2147         * tests/TiledLayerChromiumTest.cpp:
2148
2149 2012-07-25  Kevin Ellis  <kevers@chromium.org>
2150
2151         [chromium] Calendar picker popup displays at wrong scale when deviceScaleFactor != 1.
2152         https://bugs.webkit.org/show_bug.cgi?id=92177
2153
2154         Manually tested at deviceScaleFactor = 1 and 2.
2155
2156         Reviewed by Kent Tamura.
2157
2158         The device scale factor was not being set for the calendar popup. 
2159         As a result, the popup was rendered too small on hidpi displays.
2160         This patch sets the device scale factor for any page popup.
2161
2162         * src/WebPagePopupImpl.cpp:
2163         (WebKit::WebPagePopupImpl::initPage):
2164
2165 2012-07-25  MORITA Hajime <morrita@google.com>
2166
2167         Another unreviewed win build fix against r123569.
2168
2169         * tests/IDBAbortOnCorruptTest.cpp:
2170
2171 2012-07-25  MORITA Hajime  <morrita@google.com>
2172
2173         Unreviewed win build fix against r123569.
2174
2175         * tests/IDBAbortOnCorruptTest.cpp:
2176         * tests/IDBDatabaseBackendTest.cpp:
2177
2178 2012-07-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2179
2180         Unreviewed.  Rolled DEPS.
2181
2182         * DEPS:
2183
2184 2012-07-24  Dave Tu  <dtu@chromium.org>
2185
2186         [chromium] Move renderingStats from WebView to WebWidget.
2187         https://bugs.webkit.org/show_bug.cgi?id=92184
2188
2189         Reviewed by Adam Barth.
2190
2191         We are going to add some rendering stats that work in non-composited mode, so the renderingStats() method should be moved from WebView to WebWidget.
2192
2193         * public/WebView.h:
2194         (WebKit):
2195         (WebView):
2196         * public/WebWidget.h:
2197         (WebKit):
2198         (WebWidget):
2199         (WebKit::WebWidget::renderingStats):
2200         * src/WebViewImpl.h:
2201         (WebViewImpl):
2202
2203 2012-07-24  Alec Flett  <alecflett@chromium.org>
2204
2205         IndexedDB: fix #include dependencies so IDBRequest isn't an include root
2206         https://bugs.webkit.org/show_bug.cgi?id=92167
2207
2208         Reviewed by Tony Chang.
2209
2210         Remove implicit dependencies due to using IDBRequest.h, and fix all 
2211         places that break as a result.
2212
2213         * src/IDBCallbacksProxy.cpp:
2214         * src/WebIDBDatabaseImpl.cpp:
2215         * src/WebIDBTransactionImpl.cpp:
2216
2217 2012-07-24  Adam Barth  <abarth@webkit.org>
2218
2219         [Chromium] Support scrolling and zooming to focused input elements
2220         https://bugs.webkit.org/show_bug.cgi?id=91661
2221
2222         Reviewed by Darin Fisher.
2223
2224         This patch introduces saveScrollAndScaleState and
2225         restoreScrollAndScaleState, which can be used to save and restore the
2226         scroll and scale state of the WebView, respectively.  These functions
2227         will be used by Chromium on Android to save the scale and scrolls state
2228         before zoom into a text field so that we can "undo" the zoom if the
2229         user didn't mean to zoom into the text field.
2230
2231         I wanted to write unit tests for these functions, but it wasn't clear
2232         to me how to write the test because startPageScaleAnimation appears to
2233         complete asynchronously.
2234
2235         * public/WebView.h:
2236         (WebView):
2237         * src/WebViewImpl.cpp:
2238         (WebKit::WebViewImpl::WebViewImpl):
2239         (WebKit::WebViewImpl::saveScrollAndScaleState):
2240         (WebKit):
2241         (WebKit::WebViewImpl::restoreScrollAndScaleState):
2242         (WebKit::WebViewImpl::resetSavedScrollAndScaleState):
2243         (WebKit::WebViewImpl::didCommitLoad):
2244         * src/WebViewImpl.h:
2245         (WebViewImpl):
2246
2247 2012-07-24  Dave Tu  <dtu@chromium.org>
2248
2249         [chromium] Add time spent painting to GPU benchmarking renderingStats() API.
2250         https://bugs.webkit.org/show_bug.cgi?id=90019
2251
2252         Reviewed by Adrienne Walker.
2253
2254         * src/WebLayerTreeView.cpp:
2255         (WebKit::WebLayerTreeView::renderingStats):
2256         * tests/CCLayerTreeHostTest.cpp:
2257         * tests/CCTiledLayerTestCommon.cpp:
2258         (WebKitTests::FakeLayerTextureUpdater::Texture::prepareRect):
2259         (WebKitTests::FakeTiledLayerChromium::update):
2260         * tests/CCTiledLayerTestCommon.h:
2261         (Texture):
2262         (FakeTiledLayerChromium):
2263         * tests/Canvas2DLayerBridgeTest.cpp:
2264         * tests/ContentLayerChromiumTest.cpp:
2265         (WebKit::TEST):
2266         * tests/TiledLayerChromiumTest.cpp:
2267
2268 2012-07-24  Jian Li  <jianli@chromium.org>
2269
2270         Add per-context setting for html notifications
2271         https://bugs.webkit.org/show_bug.cgi?id=91295
2272
2273         Reviewed by Adam Barth.
2274
2275         Add new per-context feature for chromium port.
2276
2277         * public/WebPermissionClient.h:
2278         (WebPermissionClient):
2279         (WebKit::WebPermissionClient::allowHTMLNotifications):
2280         * src/ContextFeaturesClientImpl.cpp:
2281         (WebKit::ContextFeaturesClientImpl::askIfIsEnabled):
2282
2283 2012-07-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2284
2285         Unreviewed, rolling out r123499.
2286         http://trac.webkit.org/changeset/123499
2287         https://bugs.webkit.org/show_bug.cgi?id=92161
2288
2289         Android fails to compile (Requested by zhenyao on #webkit).
2290
2291         * src/AssertMatchingEnums.cpp:
2292
2293 2012-07-24  Terry Anderson  <tdanderson@chromium.org>
2294
2295         [chromium] Add a bounding box member in WebGestureEvent
2296         https://bugs.webkit.org/show_bug.cgi?id=92144
2297
2298         Reviewed by Adam Barth.
2299
2300         The new |boundingBox| member will be used to store the touch region for a WebGestureEvent.
2301         This will be useful for gesture target fuzzing across multiple different gesture types
2302         (tap, long press, scroll, etc.)
2303
2304         * public/WebInputEvent.h:
2305         (WebGestureEvent):
2306         * src/WebInputEvent.cpp:
2307         (SameSizeAsWebGestureEvent):
2308
2309 2012-07-24  Nico Weber  <thakis@chromium.org>
2310
2311         [chromium/mac] Add cursor resource pngs to the pak file.
2312         https://bugs.webkit.org/show_bug.cgi?id=92148
2313
2314         Reviewed by Tony Chang.
2315
2316         Once https://chromiumcodereview.appspot.com/10817031/ has landed, they can be
2317         removed from WebCore.gyp's mac_bundle_resources. Part of http://crbug.com/137588
2318
2319         * WebKit.grd:
2320
2321 2012-07-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2322
2323         Unreviewed, rolling out r123472.
2324         http://trac.webkit.org/changeset/123472
2325         https://bugs.webkit.org/show_bug.cgi?id=92134
2326
2327         Revert roll to v8 version that crashes sporadically (Requested
2328         by atwilson on #webkit).
2329
2330         * DEPS:
2331
2332 2012-07-24  Keishi Hattori  <keishi@webkit.org>
2333
2334         [Chromium] Page popup should close on mouse down
2335         https://bugs.webkit.org/show_bug.cgi?id=92092
2336
2337         Reviewed by Kent Tamura.
2338
2339         Page popup should close on mouse down because some elements(e.g. <input type=color>) don't have a blur event that
2340         we can hook to hide the page popup when the user clicks on the page.
2341
2342         * src/WebPagePopupImpl.h:
2343         (WebKit::WebPagePopupImpl::hasSamePopupClient): Returns true if the given WebPagePopupImpl have the same popup client.
2344         * src/WebViewImpl.cpp:
2345         (WebKit::WebViewImpl::handleMouseDown): Close all popups when the page is clicked. Checks if the
2346         mouse down event opened the same popup we just closed.
2347
2348 2012-07-24  Jochen Eisinger  <jochen@chromium.org>
2349
2350         Unreviewed.  Rolled DEPS.
2351
2352         * DEPS:
2353
2354 2012-07-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2355
2356         Unreviewed, rolling out r123463.
2357         http://trac.webkit.org/changeset/123463
2358         https://bugs.webkit.org/show_bug.cgi?id=92110
2359
2360         Broke Android build (Requested by keishi on #webkit).
2361
2362         * src/WebPagePopupImpl.h:
2363         * src/WebViewImpl.cpp:
2364         (WebKit::WebViewImpl::handleMouseDown):
2365
2366 2012-07-24  Keishi Hattori  <keishi@webkit.org>
2367
2368         [Chromium] Page popup should close on mouse down
2369         https://bugs.webkit.org/show_bug.cgi?id=92092
2370
2371         Reviewed by Kent Tamura.
2372
2373         Page popup should close on mouse down because some elements(e.g. <input type=color>) don't have a blur event that
2374         we can hook to hide the page popup when the user clicks on the page.
2375
2376         * src/WebPagePopupImpl.h:
2377         (WebKit::WebPagePopupImpl::hasSamePopupClient): Returns true if the given WebPagePopupImpl have the same popup client.
2378         * src/WebViewImpl.cpp:
2379         (WebKit::WebViewImpl::handleMouseDown): Close all popups when the page is clicked. Checks if the
2380         mouse down event opened the same popup we just closed.
2381
2382 2012-07-24  Anthony Scian  <ascian@rim.com>
2383
2384         Web Inspector [JSC]: Enable initiator column in network panel.
2385         https://bugs.webkit.org/show_bug.cgi?id=65533
2386
2387         Reviewed by Vsevolod Vlasov.
2388
2389         With 40118 fixed for webkit, Preferences.displayInitiator should be set to true.
2390         Removed references to it since the optionality is no longer required.
2391
2392         Test: http/tests/inspector/network/network-initiator.html
2393
2394         * src/js/DevTools.js:
2395
2396 2012-07-24  Peter Beverloo  <peter@chromium.org>
2397
2398         Unreviewed.  Rolled DEPS.
2399
2400         * DEPS:
2401
2402 2012-07-23  Mark Pilgrim  <pilgrim@chromium.org>
2403
2404         [Chromium] Move layoutTestMode to WebCore
2405         https://bugs.webkit.org/show_bug.cgi?id=92010
2406
2407         Reviewed by Adam Barth.
2408
2409         Part of a refactoring series. See tracking bug 82948.
2410
2411         * src/PlatformSupport.cpp:
2412         (WebCore):
2413         * src/WebKit.cpp:
2414         (WebKit::setLayoutTestMode):
2415         (WebKit::layoutTestMode):
2416
2417 2012-07-23  Dave Tu  <dtu@chromium.org>
2418
2419         [chromium] Add droppedFrameCount to renderingStats.
2420         https://bugs.webkit.org/show_bug.cgi?id=91694
2421
2422         Reviewed by Adrienne Walker.
2423
2424         * src/WebLayerTreeView.cpp:
2425         (WebKit::WebLayerTreeView::renderingStats):
2426         * tests/CCLayerTreeHostTest.cpp:
2427         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::drawLayersOnCCThread):
2428
2429 2012-07-23  Brian Anderson  <brianderson@chromium.org>
2430
2431         [chromium] Use shallow flushes that don't glFlush
2432         https://bugs.webkit.org/show_bug.cgi?id=90325
2433
2434         Reviewed by Kenneth Russell.
2435
2436         Changed CCTextureUpdaterTest to recognize shallowFlushCHROMIUM().
2437
2438         * tests/CCTextureUpdaterTest.cpp:
2439
2440 2012-07-23  Adrienne Walker  <enne@google.com>
2441
2442         [chromium] Add more compositor unit tests for high DPI transforms
2443         https://bugs.webkit.org/show_bug.cgi?id=91917
2444
2445         Reviewed by Kenneth Russell.
2446
2447         The current set of high DPI tests only deal with layers in a render
2448         surface. Add some extra tests for non-surface layers. Also add a test
2449         to make sure that an owning layer in a surface doesn't differ from a
2450         non-owning layer in high DPI circumstances.
2451
2452         * tests/CCLayerTreeHostCommonTest.cpp:
2453
2454 2012-07-23  Shawn Singh  <shawnsingh@chromium.org>
2455
2456         [chromium] Fix unit tests in debug mode after r123375
2457         https://bugs.webkit.org/show_bug.cgi?id=92030
2458
2459         Reviewed by Adrienne Walker.
2460
2461         Fixed two unit tests that were causing debug assertions because
2462         they gave calcDrawTransforms an empty sized root layer.
2463
2464         * tests/CCLayerTreeHostCommonTest.cpp:
2465
2466 2012-07-23  Simon Fraser  <simon.fraser@apple.com>
2467
2468         Part 2 of: Implement sticky positioning
2469         https://bugs.webkit.org/show_bug.cgi?id=90046
2470
2471         Reviewed by Ojan Vafai.
2472
2473         Turn on ENABLE_CSS_STICKY_POSITION.
2474
2475         * features.gypi:
2476
2477 2012-07-23  Shawn Singh  <shawnsingh@chromium.org>
2478
2479         [chromium] Refactor CCLayerTreeHostCommon: clean up clipRect and drawableContentRect design
2480         https://bugs.webkit.org/show_bug.cgi?id=80622
2481
2482         Reviewed by Adrienne Walker.
2483
2484         Many tests needed to be updated because the semantics of the layer tree have changed:
2485           - a few tests that were no longer applicable were removed.
2486           - many tests needed to have fixed initialization, properly
2487             setting surface contentRect and rootLayer bounds.
2488           - because clipRect and usesLayerClipping no longer exists, those places in code had to be removed/changed
2489           - the scissorRect tests needed to have updated expectations
2490             because after this patch, the rootLayer Surface now clips
2491             to its contentBounds.
2492           - the clipRect tests were changed to test the layer's new semantics for the drawableContentRect instead.
2493
2494         * tests/CCLayerImplTest.cpp:
2495         (WebCore::TEST):
2496         * tests/CCLayerIteratorTest.cpp:
2497         * tests/CCLayerTreeHostCommonTest.cpp:
2498         * tests/CCLayerTreeHostImplTest.cpp:
2499         * tests/CCLayerTreeHostTest.cpp:
2500         * tests/CCOcclusionTrackerTest.cpp:
2501         (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):
2502         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
2503         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
2504         * tests/LayerChromiumTest.cpp:
2505
2506 2012-07-23  Daniel Cheng  <dcheng@chromium.org>
2507
2508         [chromium] Fix build on Ubuntu Precise.
2509         https://bugs.webkit.org/show_bug.cgi?id=92021
2510
2511         Reviewed by Adrienne Walker.
2512
2513         Remove an array that's written but never read.
2514
2515         * tests/CCResourceProviderTest.cpp:
2516         (WebKit::TEST_F):
2517
2518 2012-07-23  Nate Chapin  <japhet@chromium.org>
2519
2520         Add WebTextInputType enum values for text areas and
2521         content-editable.
2522         https://bugs.webkit.org/show_bug.cgi?id=91654
2523
2524         Reviewed by Adam Barth.
2525
2526         No new tests, no behavior change without corresponding chromium.org changes.
2527
2528         * public/WebTextInputType.h:
2529         * src/WebViewImpl.cpp:
2530         (WebKit::WebViewImpl::textInputType):
2531
2532 2012-07-23  Pierre Rossi  <pierre.rossi@gmail.com>
2533
2534         Unify numTouchEventHandlersChanged and needTouchEvents in the chrome client
2535         https://bugs.webkit.org/show_bug.cgi?id=91006
2536
2537         Reviewed by Ryosuke Niwa.
2538
2539         Rename the functions to follow a more boolean logic.
2540
2541         * public/WebViewClient.h:
2542         (WebKit::WebViewClient::hasTouchEventHandlers):
2543         * src/ChromeClientImpl.cpp:
2544         (WebKit):
2545         (WebKit::ChromeClientImpl::needTouchEvents):
2546         * src/ChromeClientImpl.h:
2547         (ChromeClientImpl):
2548         * src/WebViewImpl.cpp:
2549         (WebKit::WebViewImpl::hasTouchEventHandlers):
2550         * src/WebViewImpl.h:
2551         (WebViewImpl):
2552
2553 2012-07-23  Simon Fraser  <simon.fraser@apple.com>
2554
2555         Implement sticky positioning
2556         https://bugs.webkit.org/show_bug.cgi?id=90046
2557
2558         Reviewed by Ojan Vafai.
2559
2560         Add ENABLE_CSS_STICKY_POSITION, defaulting to off initially.
2561         
2562         * features.gypi:
2563
2564 2012-07-23  Peter Beverloo  <peter@chromium.org>
2565
2566         [Chromium] Buildfix for fixing gclient on the Chromium Windows bot
2567         https://bugs.webkit.org/show_bug.cgi?id=91977
2568
2569         Unreviewed build fix.
2570
2571         Add the tools/isolate directory to the Windows checkout as these files
2572         currently are missing during gyp generation. maruel introduced the need
2573         for these in this isolate refactoring, specifically this Chromium CL:
2574         http://src.chromium.org/viewvc/chrome?view=rev&revision=147689
2575
2576         * DEPS:
2577
2578 2012-07-22  Kent Tamura  <tkent@chromium.org>
2579
2580         [Chromium-Mac] Fix a build error.
2581
2582         * DEPS: Add third_party/GTM.
2583
2584 2012-07-23  Kent Tamura  <tkent@chromium.org>
2585
2586         Rename ENABLE_METER_TAG and ENABLE_PROGRESS_TAG to ENABLE_METER_ELEMENT and ENABLE_PROGRESS_ELEMENT respectively
2587         https://bugs.webkit.org/show_bug.cgi?id=91941
2588
2589         Reviewed by Kentaro Hara.
2590
2591         A flag name for an elmement should be ENABLE_*_ELEMENT.
2592
2593         * features.gypi:
2594
2595 2012-07-22  Kent Tamura  <tkent@chromium.org>
2596
2597         Rename ENABLE_DETAILS to ENABLE_DETAILS_ELEMENT
2598         https://bugs.webkit.org/show_bug.cgi?id=91928
2599
2600         Reviewed by Kentaro Hara.
2601
2602         A flag name for an elmement should be ENABLE_*_ELEMENT.
2603
2604         * features.gypi:
2605
2606 2012-07-21  Sheriff Bot  <webkit.review.bot@gmail.com>
2607
2608         Unreviewed.  Rolled DEPS.
2609
2610         * DEPS:
2611
2612 2012-07-20  Kent Tamura  <tkent@chromium.org>
2613
2614         Rename ENABLE_DATALIST to ENABLE_DATALIST_ELEMENT
2615         https://bugs.webkit.org/show_bug.cgi?id=91846
2616
2617         Reviewed by Kentaro Hara.
2618
2619         A flag name for an elmement should be ENABLE_*_ELEMENT.
2620
2621         * features.gypi:
2622         * src/WebInputElement.cpp:
2623         (WebKit::WebInputElement::dataListOptions):
2624
2625 2012-07-20  Joshua Bell  <jsbell@chromium.org>
2626
2627         IndexedDB: Simplify backend interface classes
2628         https://bugs.webkit.org/show_bug.cgi?id=91901
2629
2630         Reviewed by Tony Chang.
2631
2632         Remove unnecessary method stubs from proxy class.
2633
2634         * src/IDBTransactionBackendProxy.cpp:
2635         * src/IDBTransactionBackendProxy.h:
2636         (IDBTransactionBackendProxy):
2637
2638 2012-07-20  Scott Graham  <scottmg@chromium.org>
2639
2640         Add windows native versions of bison, flex and gperf.
2641
2642         Reviewed by Tony Chang.
2643
2644         * DEPS:
2645
2646 2012-07-20  David Grogan  <dgrogan@chromium.org>
2647
2648         IndexedDB: Include intVersion when converting between WebCore and WebKit IDBMetadata types
2649         https://bugs.webkit.org/show_bug.cgi?id=91414
2650
2651         Reviewed by Adam Barth.
2652
2653         * src/AssertMatchingEnums.cpp:
2654         * src/WebIDBMetadata.cpp:
2655         (WebKit::WebIDBMetadata::WebIDBMetadata):
2656         (WebKit::WebIDBMetadata::operator IDBDatabaseMetadata):
2657
2658 2012-07-20  Robert Sesek  <rsesek@chromium.org>
2659
2660         [chromium][Mac] Switch the MACOSX_DEPLOYMENT_TARGET to 10.6
2661         https://bugs.webkit.org/show_bug.cgi?id=91752
2662
2663         Reviewed by Eric Seidel.
2664
2665         Use 10.6 NSScreen/NSColorSpace APIs to determine if the screen is
2666         monochrome rather than comparing against deprecated colorspace names.
2667
2668         * src/mac/WebScreenInfoFactory.mm:
2669         (WebKit::WebScreenInfoFactory::screenInfo):
2670
2671 2012-07-20  Daniel Murphy  <dmurph@chromium.org>
2672
2673         Introduce WebViewBenchmarkSupport for performance experiments on a real WebView
2674         https://bugs.webkit.org/show_bug.cgi?id=88271
2675
2676         Reviewed by Darin Fisher.
2677
2678         * WebKit.gyp:
2679         * public/WebView.h:
2680         (WebKit):
2681         (WebView):
2682         (WebKit::WebView::benchmarkSupport):
2683         * public/WebViewBenchmarkSupport.h: Added.
2684         (WebKit):
2685         (WebViewBenchmarkSupport):
2686         (PaintClient):
2687         (WebKit::WebViewBenchmarkSupport::PaintClient::willPaint):
2688         (WebKit::WebViewBenchmarkSupport::PaintClient::didPaint):
2689         (WebKit::WebViewBenchmarkSupport::PaintClient::~PaintClient):
2690         (WebKit::WebViewBenchmarkSupport::~WebViewBenchmarkSupport):
2691         * src/WebViewBenchmarkSupportImpl.cpp: Added.
2692         (WebKit):
2693         (WebKit::WebViewBenchmarkSupportImpl::paintLayer):
2694         (WebKit::WebViewBenchmarkSupportImpl::acceleratedPaintUnclipped):
2695         (WebKit::WebViewBenchmarkSupportImpl::softwarePaint):
2696         (WebKit::WebViewBenchmarkSupportImpl::paint):
2697         * src/WebViewBenchmarkSupportImpl.h: Added.
2698         (WebCore):
2699         (WebKit):
2700         (WebViewBenchmarkSupportImpl):
2701         (WebKit::WebViewBenchmarkSupportImpl::WebViewBenchmarkSupportImpl):
2702         (WebKit::WebViewBenchmarkSupportImpl::~WebViewBenchmarkSupportImpl):
2703         * src/WebViewImpl.cpp:
2704         (WebKit::WebViewImpl::WebViewImpl):
2705         (WebKit::WebViewImpl::benchmarkSupport):
2706         (WebKit):
2707         (WebKit::WebViewImpl::rootGraphicsLayer):
2708         * src/WebViewImpl.h:
2709         (WebKit):
2710         (WebViewImpl):
2711
2712 2012-07-20  Han Shen  <shenhan@google.com>
2713
2714         [Chromium] Compilation fails under gcc 4.7
2715         https://bugs.webkit.org/show_bug.cgi?id=90227
2716
2717         Reviewed by Tony Chang.
2718
2719         Disable warnings about c++0x compatibility in gcc newer than 4.6.
2720
2721         * WebKit.gyp:
2722         * WebKitUnitTests.gyp:
2723
2724 2012-07-20  Adam Barth  <abarth@webkit.org>
2725
2726         [Chromium] Add WebView::zoomToFindInPageRect for Android
2727         https://bugs.webkit.org/show_bug.cgi?id=91801
2728
2729         Reviewed by Tony Chang.
2730
2731         On Android, when you find in page, we scale the viewport to reveal what
2732         you've found (because the screen is small). This function instructs the
2733         WebView to zoom to display a given rect.
2734
2735         * public/WebView.h:
2736         (WebView):
2737         * src/WebViewImpl.cpp:
2738         (WebKit::WebViewImpl::animateZoomAroundPoint):
2739             - This function is a bit more general than necessary for this patch
2740               because it is also used in other cases for animating a zoom
2741               around a given point (e.g., double-tap to zoom). These uses will
2742               be upstreamed in later patches.
2743         (WebKit::WebViewImpl::zoomToFindInPageRect):
2744         * src/WebViewImpl.h:
2745         (WebViewImpl):
2746
2747 2012-07-19  Luke Macpherson   <macpherson@chromium.org>
2748
2749         Enable CSS variables compile time flag in Chrome.
2750         https://bugs.webkit.org/show_bug.cgi?id=91708
2751
2752         Reviewed by Dimitri Glazkov.
2753
2754         Flips the ENABLE_CSS_VARIABLES compile flag on for Chrome. There is also a run-time flag that is off by default,
2755         so this should not have a user visible effect other than making the variables runtime flag visible at chrome://flags/
2756
2757         * features.gypi:
2758
2759 2012-07-19  Wei James  <james.wei@intel.com>
2760
2761         enable Web Audio for chromium android port
2762         https://bugs.webkit.org/show_bug.cgi?id=89428
2763
2764         Reviewed by Kenneth Russell.
2765
2766         * features.gypi:
2767
2768 2012-07-19  Adam Barth  <abarth@webkit.org>
2769
2770         [Chromium] Support external autofill popups
2771         https://bugs.webkit.org/show_bug.cgi?id=91651
2772
2773         Reviewed by Darin Fisher.
2774
2775         This looks like the last piece needed to support external autofill
2776         popups. This function just lets the embedder select an index
2777         (presumably because the user picked an index from the external autofill
2778         popup).
2779
2780         * public/WebView.h:
2781         (WebView):
2782         * src/WebViewImpl.cpp:
2783         (WebKit::WebViewImpl::selectAutofillSuggestionAtIndex):
2784         (WebKit):
2785         * src/WebViewImpl.h:
2786         (WebViewImpl):
2787
2788 2012-07-19  Zeev Lieber  <zlieber@chromium.org>
2789
2790         [Chromium] Textures drawn during occlusion are incorrectly re-used when unoccluded.
2791         https://bugs.webkit.org/show_bug.cgi?id=91537
2792
2793         Reviewed by Adrienne Walker.
2794
2795         Added unit tests to test texture caching with clipping and
2796         occlusion. Removed some minor code duplication when initializing
2797         layers for various scenarios.
2798
2799         MockCCQuadCuller can now implement CCQuadSink.
2800
2801         * tests/CCLayerTreeHostImplTest.cpp:
2802         * tests/CCQuadCullerTest.cpp:
2803         * tests/MockCCQuadCuller.h:
2804         (WebCore::MockCCQuadCuller::MockCCQuadCuller):
2805
2806 2012-07-19  Adam Barth  <abarth@webkit.org>
2807
2808         [Chromium] WebView is missing isSelectionEditable and backgroundColor which are used by chromium-android
2809         https://bugs.webkit.org/show_bug.cgi?id=91671
2810
2811         Reviewed by Darin Fisher.
2812
2813         I haven't studied what these APIs are used for downstream, but they
2814         seem harmless enough.
2815
2816         * public/WebView.h:
2817         (WebView):
2818         * public/WebWidget.h:
2819         (WebWidget):
2820         (WebKit::WebWidget::backgroundColor):
2821         * src/WebViewImpl.cpp:
2822         (WebKit::WebViewImpl::isSelectionEditable):
2823         (WebKit):
2824         (WebKit::WebViewImpl::backgroundColor):
2825         * src/WebViewImpl.h:
2826         (WebViewImpl):
2827
2828 2012-07-19  Andrew Scherkus  <scherkus@chromium.org>
2829
2830         [chromium] Move WebAudioSourceProvider destructor from public to protected
2831         https://bugs.webkit.org/show_bug.cgi?id=91669
2832
2833         Reviewed by Darin Fisher.
2834
2835         The lifetime of a WebAudioSourceProvider is managed by the implementor
2836         and should never be deallocted by WebKit.
2837
2838         * public/WebAudioSourceProvider.h:
2839         (WebAudioSourceProvider):
2840
2841 2012-07-19  Tony Chang  <tony@chromium.org>
2842
2843         Unreviewed, rolling out r123036.
2844         http://trac.webkit.org/changeset/123036
2845         https://bugs.webkit.org/show_bug.cgi?id=91555
2846
2847         Triggers some DCHECKs in Chromium browser_tests
2848
2849         * public/WebTextInputType.h:
2850         * src/WebViewImpl.cpp:
2851         (WebKit::WebViewImpl::textInputType):
2852
2853 2012-07-19  Joshua Bell  <jsbell@chromium.org>
2854
2855         Roll out r121610 and r122487 which may have been causing flaky crashes
2856         https://bugs.webkit.org/show_bug.cgi?id=91637
2857
2858         Reviewed by Kentaro Hara.
2859
2860         Flaky crashes started in random tests following r121610. It's not clear
2861         that r121610 is to blame, but we'd like to prove or disprove it.
2862         If this doesn't resolve the crashes, this patch should be rolled out.
2863
2864         * src/WebBindings.cpp:
2865         (WebKit::getRangeImpl):
2866         (WebKit::getElementImpl):
2867         (WebKit::getArrayBufferImpl):
2868         (WebKit::getArrayBufferViewImpl):
2869         (WebKit::WebBindings::toV8Value):
2870
2871 2012-07-19  Sami Kyostila  <skyostil@chromium.org>
2872
2873         [chromium] Remove duplicate mock CCLayerTreeHostClient
2874         https://bugs.webkit.org/show_bug.cgi?id=89457
2875
2876         Reviewed by Adrienne Walker.
2877
2878         This test can reuse the existing CCFakeLayerTreeHostClient.
2879
2880         * tests/GraphicsLayerChromiumTest.cpp:
2881         (WebKitTests::MockLayerTreeHost::create):
2882
2883 2012-07-19  Peter Beverloo  <peter@chromium.org>
2884
2885         Unreviewed.  Rolled DEPS.
2886
2887         * DEPS:
2888
2889 2012-07-18  Ryosuke Niwa  <rniwa@webkit.org>
2890
2891         Chromium build fix attempt. Don't use anonymous namespace.
2892
2893         * tests/TextureCopierTest.cpp:
2894
2895 2012-07-18  Antoine Labour  <piman@chromium.org>
2896
2897         [chromium] Introduce CCResourceProvider, replacing TextureAllocator and hiding textures from clients to allow transport
2898         https://bugs.webkit.org/show_bug.cgi?id=91044
2899
2900         Reviewed by Adrienne Walker.
2901
2902         This does several things:
2903         - Add a CCResourceProvider class, that hides textures and the 3D context
2904         from layers (except those that need it). Instead layers manage
2905         "resources". In the future, resources are expected to be transportable
2906         to a "parent" CCResourceProvider to allow flattening of nested
2907         compositors.
2908         - Replace texture ids by resource ids in DrawQuads (allowing them to be
2909         serializable).
2910         - Replace TextureAllocator uses by the CCResourceProvider class.
2911         - Upload of data is done through the CCResourceProvider instead of
2912         explicit GL calls.
2913         - External textures are wrapped into a resource at draw time (see
2914         caveat/FIXME in CCTextureLayerImpl).
2915         - Rendering with the resources is done through an explicit
2916         beginRenderFrom/endRenderFrom that exposes the texture only between that
2917         pair.
2918         - Merge all the LayerTextureSubImage instances (one per layer), into a
2919         single instance on the CCResourceProvider.
2920
2921         Added CCResourceProviderTest, the refactoring is covered by existing tests.
2922
2923         * WebKit.gypi:
2924         * tests/CCLayerTreeHostImplTest.cpp:
2925         * tests/CCPrioritizedTextureTest.cpp:
2926         (WTF::CCPrioritizedTextureTest::CCPrioritizedTextureTest):
2927         (WTF::CCPrioritizedTextureTest::createManager):
2928         (WTF::CCPrioritizedTextureTest::validateTexture):
2929         (WTF::CCPrioritizedTextureTest::resourceProvider):
2930         (CCPrioritizedTextureTest):
2931         (WTF::TEST_F):
2932         * tests/CCQuadCullerTest.cpp:
2933         * tests/CCResourceProviderTest.cpp: Added.
2934         (WebKit):
2935         (ResourceProviderContext):
2936         (WebKit::ResourceProviderContext::create):
2937         (WebKit::ResourceProviderContext::bindTexture):
2938         (WebKit::ResourceProviderContext::createTexture):
2939         (WebKit::ResourceProviderContext::deleteTexture):
2940         (WebKit::ResourceProviderContext::texStorage2DEXT):
2941         (WebKit::ResourceProviderContext::texImage2D):
2942         (WebKit::ResourceProviderContext::texSubImage2D):
2943         (WebKit::ResourceProviderContext::getPixels):
2944         (WebKit::ResourceProviderContext::textureCount):
2945         (WebKit::ResourceProviderContext::textureSize):
2946         (WebKit::ResourceProviderContext::ResourceProviderContext):
2947         (WebKit::ResourceProviderContext::Texture::Texture):
2948         (Texture):
2949         (WebKit::ResourceProviderContext::allocateTexture):
2950         (WebKit::ResourceProviderContext::setPixels):
2951         (CCResourceProviderTest):
2952         (WebKit::CCResourceProviderTest::CCResourceProviderTest):
2953         (WebKit::CCResourceProviderTest::context):
2954         (WebKit::CCResourceProviderTest::getResourcePixels):
2955         (WebKit::TEST_F):
2956         * tests/CCScopedTextureTest.cpp:
2957         (WebKitTests::TEST):
2958         * tests/CCTiledLayerImplTest.cpp:
2959         (CCLayerTestCommon::createLayer):
2960         (CCLayerTestCommon::TEST):
2961         * tests/CCTiledLayerTestCommon.cpp:
2962         (WebKitTests::FakeLayerTextureUpdater::Texture::updateRect):
2963         * tests/CCTiledLayerTestCommon.h:
2964         (Texture):
2965         (WebKitTests::FakeTextureCopier::copyTexture):
2966         (WebKitTests::FakeTextureCopier::flush):
2967         (WebKitTests::FakeTextureUploader::uploadTexture):
2968         * tests/ContentLayerChromiumTest.cpp:
2969         (WebKit::TEST):
2970         * tests/FakeCCGraphicsContext.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCTexture.h.
2971         (WebKit):
2972         (WebKit::createFakeCCGraphicsContext):
2973         * tests/LayerRendererChromiumTest.cpp:
2974         (FakeLayerRendererChromium::FakeLayerRendererChromium):
2975         (LayerRendererChromiumTest::LayerRendererChromiumTest):
2976         (LayerRendererChromiumTest::context):
2977         (LayerRendererChromiumTest):
2978         (TEST_F):
2979         (TEST):
2980         * tests/TextureCopierTest.cpp:
2981         * tests/TextureManagerTest.cpp:
2982         (WTF::TextureManagerTest::TextureManagerTest):
2983         (WTF::TextureManagerTest::createTextureManager):
2984         (WTF::TextureManagerTest::requestTexture):
2985         (TextureManagerTest):
2986         * tests/TiledLayerChromiumTest.cpp:
2987
2988 2012-07-18  David Grogan  <dgrogan@chromium.org>
2989
2990         IndexedDB: Add intVersion to chromium/public/WebIDBMetadata.h
2991         https://bugs.webkit.org/show_bug.cgi?id=91408
2992
2993         Reviewed by Adam Barth.
2994
2995         This is in support of the new upgradeneeded versioning api.
2996         intVersion will eventually replace the WebString version member.
2997
2998         * public/WebIDBMetadata.h:
2999         (WebKit::WebIDBMetadata::WebIDBMetadata):
3000         The spec uses unsigned long long for version numbers but we use signed
3001         long long so that we can use -1 as a sentinel. It indicates that a
3002         database still uses a string version.
3003
3004 2012-07-18  Adam Barth  <abarth@webkit.org>
3005
3006         Disable printing on chromium-android
3007         https://bugs.webkit.org/show_bug.cgi?id=91550
3008
3009         Reviewed by Tony Chang.
3010
3011         We don't implement printing on Android.
3012
3013         * features.gypi:
3014         * src/WebFrameImpl.cpp:
3015         (WebKit::WebFrameImpl::printPage):
3016
3017 2012-07-18  Alexandre Elias  <aelias@google.com>
3018
3019         [chromium] Ubercomp: add id to SharedQuadState
3020         https://bugs.webkit.org/show_bug.cgi?id=91670
3021
3022         Reviewed by Adrienne Walker.
3023
3024         This assigns an integer ID to SharedQuadState objects and a
3025         corresponding ID to quads.  This ID is unique only within a
3026         RenderPass and currently is just set to the index in the shared quad
3027         state list.  This is redundant with the pointer and exists to
3028         simplify serialization.
3029
3030         I found out that pointer rewriting within a pickler is blocked by
3031         pointers to memory being const there, so the reassignment will have to
3032         be performed in the application layer anyway.  In that case, it's
3033         simplest to add some ID integers.
3034
3035         * tests/CCLayerTreeHostImplTest.cpp:
3036         * tests/CCQuadCullerTest.cpp:
3037         * tests/CCRenderSurfaceTest.cpp:
3038         * tests/CCSolidColorLayerImplTest.cpp:
3039         (CCLayerTestCommon::TEST):
3040         * tests/CCTiledLayerImplTest.cpp:
3041         (CCLayerTestCommon::TEST):
3042         (CCLayerTestCommon::getQuads):
3043
3044 2012-07-18  Nate Chapin  <japhet@chromium.org>
3045
3046         Add WebTextInputType enum values for text areas and
3047         content-editable.
3048         https://bugs.webkit.org/show_bug.cgi?id=91654
3049
3050         Reviewed by Adam Barth.
3051
3052         No new tests, no behavior change without corresponding chromium.org changes.
3053
3054         * public/WebTextInputType.h:
3055         * src/WebViewImpl.cpp:
3056         (WebKit::WebViewImpl::textInputType):
3057
3058 2012-07-18  Alexandre Elias  <aelias@google.com>
3059
3060         [chromium] Ubercomp: clean up CCRenderer interface
3061         https://bugs.webkit.org/show_bug.cgi?id=91555
3062
3063         Reviewed by Adrienne Walker.
3064
3065         I replaced the one-by-one RenderPass calls with a new drawFrame()
3066         method that directly takes a CCRenderPassList, and moved a small
3067         amount of code from CCLayerTreeHostImpl to implement it.  In ubercomp
3068         mode, we will produce a frame bundle rather than a command-stream, so
3069         the full list is easier to work with.
3070
3071         Also, give empty default implementations for the methods that don't
3072         need to do anything in a non-GL context, and make private
3073         setScissorToRect.
3074
3075         * tests/LayerRendererChromiumTest.cpp:
3076         (FakeCCRendererClient::FakeCCRendererClient):
3077         (FakeCCRendererClient::renderPasses):
3078         (FakeCCRendererClient):
3079         (TEST_F):
3080         (TEST):
3081
3082 2012-07-18  Joshua Bell  <jsbell@chromium.org>
3083
3084         IndexedDB: Fix some coding style violations
3085         https://bugs.webkit.org/show_bug.cgi?id=91565
3086
3087         Reviewed by Tony Chang.
3088
3089         * tests/IDBLevelDBCodingTest.cpp:
3090         (IDBLevelDBCoding::TEST):
3091
3092 2012-07-18  Tony Chang  <tony@chromium.org>
3093
3094         [chromium] Unreviewed, fix some MSVC compile warnings.
3095
3096         * tests/CCDamageTrackerTest.cpp:
3097         (WebKitTests::TEST_F):
3098         * tests/CCLayerTreeHostCommonTest.cpp:
3099         * tests/TiledLayerChromiumTest.cpp:
3100
3101 2012-07-18  Mark Pilgrim  <pilgrim@chromium.org>
3102
3103         [Chromium] Call SQLiteFileSystem-related functions directly
3104         https://bugs.webkit.org/show_bug.cgi?id=91631
3105
3106         Reviewed by Adam Barth.
3107
3108         Part of a refactoring series. See tracking bug 82948.
3109
3110         * public/platform/WebKitPlatformSupport.h:
3111         (WebKitPlatformSupport):
3112         * src/PlatformSupport.cpp:
3113         (WebCore):
3114
3115 2012-07-18  Tony Chang  <tony@chromium.org>
3116
3117         [chromium] Unreviewed, more compile fixes on Chromium Win.
3118
3119         * tests/WebTransformationMatrixTest.cpp:
3120         (WebKit::TEST):
3121
3122 2012-07-18  Tony Chang  <tony@chromium.org>
3123
3124         [chromium] Fix compile on Windows.
3125
3126         148>tests\LayerChromiumTest.cpp(510): warning C4305: 'argument' : truncation from 'double' to 'float'
3127
3128         * tests/LayerChromiumTest.cpp:
3129
3130 2012-07-18  Alec Flett  <alecflett@chromium.org>
3131
3132         Implement putIndexKeys in WebIDBObjectStoreImpl
3133         https://bugs.webkit.org/show_bug.cgi?id=91546
3134
3135         Reviewed by Darin Fisher.
3136
3137         Implement putIndexKeys in the chromium API, so it is callable
3138         from chromium.
3139
3140         * src/WebIDBObjectStoreImpl.cpp:
3141         (WebKit::WebIDBObjectStoreImpl::putWithIndexKeys):
3142         (WebKit):
3143         * src/WebIDBObjectStoreImpl.h:
3144         (WebIDBObjectStoreImpl):
3145
3146 2012-07-18  Tony Chang  <tony@chromium.org>
3147
3148         [chromium] Unreviewed compile fix for Android.
3149
3150         More sqrt fixes.
3151
3152         * tests/CCLayerTreeHostCommonTest.cpp:
3153
3154 2012-07-18  Tony Chang  <tony@chromium.org>
3155
3156         [chromium] Unreviewed compile fix for Android.
3157         
3158         Source/WebKit/chromium/tests/CCDamageTrackerTest.cpp: In member function 'virtual void<unnamed>::CCDamageTrackerTest_verifyDamageForTransformedLayer_Test::TestBody()':
3159         Source/WebKit/chromium/tests/CCDamageTrackerTest.cpp:332: error: call of overloaded 'sqrt(int)' is ambiguous
3160
3161         * tests/CCDamageTrackerTest.cpp:
3162         (WebKitTests::TEST_F):
3163
3164 2012-07-18  Varun Jain  <varunjain@chromium.org>
3165
3166         [chromium] Drag image for image elements should be scaled with device scale factor.
3167         https://bugs.webkit.org/show_bug.cgi?id=89688
3168
3169         Reviewed by Adam Barth.
3170
3171         * src/DragClientImpl.cpp:
3172         (WebKit::DragClientImpl::startDrag):
3173         * tests/DragImageTest.cpp:
3174         (WebCore::TEST):
3175
3176 2012-07-18  Shawn Singh  <shawnsingh@chromium.org>
3177
3178         [chromium] Fix style for numeric literals in chromium unit test code
3179         https://bugs.webkit.org/show_bug.cgi?id=91635
3180
3181         Reviewed by Adrienne Walker.
3182
3183         Where possible, removed ".0" and "f" suffixes on numeric literals,
3184         to be more consistent with WebKit style rules.
3185
3186         * tests/CCDamageTrackerTest.cpp:
3187         (WebKitTests::TEST_F):
3188         * tests/CCLayerQuadTest.cpp:
3189         (WebCore::TEST):
3190         * tests/CCLayerTreeHostCommonTest.cpp:
3191         * tests/CCQuadCullerTest.cpp:
3192         * tests/LayerChromiumTest.cpp:
3193         * tests/WebTransformationMatrixTest.cpp:
3194         (WebKit::TEST):
3195
3196 2012-07-17  Shawn Singh  <shawnsingh@chromium.org>
3197
3198         [chromium] Remove awkward anchorPoint usage that implicity affects layer position
3199         https://bugs.webkit.org/show_bug.cgi?id=91472
3200
3201         Reviewed by Adrienne Walker.
3202
3203         Unit tests were updated to account for the fact that anchorPoint
3204         and position are now separated.
3205
3206         * tests/CCDamageTrackerTest.cpp:
3207         (WebKitTests::TEST_F):
3208         * tests/CCLayerTreeHostCommonTest.cpp:
3209         * tests/CCLayerTreeHostImplTest.cpp:
3210         * tests/TiledLayerChromiumTest.cpp:
3211
3212 2012-07-18  Yoshifumi Inoue  <yosin@chromium.org>
3213
3214         Decimal::toString should not round integer value.
3215         https://bugs.webkit.org/show_bug.cgi?id=91481
3216
3217         Reviewed by Kent Tamura.
3218
3219         This patch adds a new test cases for Decimal::toString() for failed
3220         value and maximum coefficient value with various exponent.
3221
3222         * tests/DecimalTest.cpp:
3223         (TEST_F): DecimalTest.toString: Add test cases for big coefficient values.
3224
3225 2012-07-18  Hans Wennborg  <hans@chromium.org>
3226
3227         Add copy constructor to WebSpeechGrammar.h
3228         https://bugs.webkit.org/show_bug.cgi?id=91484
3229
3230         Reviewed by Adam Barth.
3231
3232         Provide user-defined copy constructor (and assign function) for WebSpeechGrammar.
3233         Without this, we were hitting the implicit copy constructor, which in
3234         turn used the implicit copy constructor of WebPrivatePtr. This was bad,
3235         because the implicit copy constructor wouldn't increace the reference
3236         count on the wrapped object, causing us to crash.
3237
3238         Also add one for WebSpeechRecognitionResult; haven't seen any problems
3239         here, but I noticed it was missing.
3240
3241         * public/WebSpeechGrammar.h:
3242         (WebKit::WebSpeechGrammar::WebSpeechGrammar):
3243         (WebSpeechGrammar):
3244         * public/WebSpeechRecognitionResult.h:
3245         (WebKit::WebSpeechRecognitionResult::WebSpeechRecognitionResult):
3246         (WebSpeechRecognitionResult):
3247         * src/WebSpeechGrammar.cpp:
3248         (WebKit::WebSpeechGrammar::assign):
3249         (WebKit):
3250
3251 2012-07-17  Yoshifumi Inoue  <yosin@chromium.org>
3252
3253         Decimal constructor with 99999999999999999 loses last digit
3254         https://bugs.webkit.org/show_bug.cgi?id=91579
3255
3256         Reviewed by Kent Tamura.
3257
3258         This patch adds test cases for Decimal::EncodedData constructors for
3259         testing edge cases in addition to common cases which they aren't
3260         covered by other test cases.
3261
3262         * tests/DecimalTest.cpp:
3263         (EXPECT_DECIMAL_ENCODED_DATA_EQ): Introduce a new macro for ease of
3264         writing test cases for verifying components of Decimal::EncodedData.
3265         (TEST_F): Added a new test entry DecimalTest.Constructor.
3266
3267 2012-07-17  Yoshifumi Inoue  <yosin@chromium.org>
3268
3269         Test cases in DecimalTest should use EXPECT_STREQ for ease of debugging test case
3270         https://bugs.webkit.org/show_bug.cgi?id=91572
3271
3272         Reviewed by Kent Tamura.
3273
3274         This patch introduces EXPECT_DECIMAL_STREQ macro to replace EXPECT_EQ
3275         with String class for displaying text string rather than object dump
3276         for ease of debugging test cases.
3277
3278         * tests/DecimalTest.cpp:
3279         (DecimalTest::stepDown): Changed to return Decimal instead of String
3280         to use EXPECT_DECIMAL_STREQ.
3281         (DecimalTest::stepUp): ditto.
3282         (TEST_F): Replaced EXPECT_EQ + String class to EXPECT_DECIMAL_STREQ.
3283
3284 2012-07-17  Joshua Bell  <jsbell@chromium.org>
3285
3286         IndexedDB: Key generator state not maintained across connections
3287         https://bugs.webkit.org/show_bug.cgi?id=91456
3288
3289         Reviewed by Tony Chang.
3290
3291         Add stub method implementations to test class.
3292
3293         * tests/IDBFakeBackingStore.h:
3294
3295 2012-07-17  Tony Chang  <tony@chromium.org>
3296
3297         Unreviewed, rolling out r122884.
3298         http://trac.webkit.org/changeset/122884
3299         https://bugs.webkit.org/show_bug.cgi?id=91408
3300
3301         Broke the chromium-win build.
3302
3303         * public/WebIDBMetadata.h:
3304         (WebIDBMetadata):
3305         (WebKit::WebIDBMetadata::WebIDBMetadata):
3306
3307 2012-07-17  David Grogan  <dgrogan@chromium.org>
3308
3309         IndexedDB: Add intVersion to chromium/public/WebIDBMetadata.h
3310         https://bugs.webkit.org/show_bug.cgi?id=91408
3311
3312         Reviewed by Adam Barth.
3313
3314         This is in support of the new upgradeneeded versioning api.
3315         intVersion will eventually replace the WebString version member.
3316
3317         * public/WebIDBMetadata.h:
3318         (WebIDBMetadata): The spec uses unsigned long long for version
3319         numbers but we use int64_t here so that we can use -1 as a sentinel.
3320         It indicates that a database still uses a string version.
3321
3322 2012-07-17  Tony Chang  <tony@chromium.org>
3323
3324         Unreviewed.  Rolled DEPS.
3325
3326         * DEPS:
3327
3328 2012-07-17  Vivek Galatage  <vivekgalatage@gmail.com>
3329
3330         Web Inspector: refactor InspectorController::connectFrontend() to accept InspectorFrontendChannel.
3331         https://bugs.webkit.org/show_bug.cgi?id=91196
3332
3333         Reviewed by Pavel Feldman.
3334
3335         Refactoring InspectorClients. InspectorClient::openInspectorFrontend
3336         now returning the InspectorFrontendChannel.
3337
3338         * src/InspectorClientImpl.cpp:
3339         (WebKit::InspectorClientImpl::openInspectorFrontend):
3340         * src/InspectorClientImpl.h:
3341         (InspectorClientImpl):
3342         * src/WebDevToolsAgentImpl.cpp:
3343         (WebKit::WebDevToolsAgentImpl::reattach):
3344         (WebKit::WebDevToolsAgentImpl::openInspectorFrontend):
3345         * src/WebDevToolsAgentImpl.h:
3346         (WebDevToolsAgentImpl):
3347
3348 2012-07-16  Adam Barth  <abarth@webkit.org>
3349
3350         Unreviewed. Remove two empty directories.
3351
3352         * public/linuxish: Removed.
3353         * src/linuxish: Removed.
3354
3355 2012-07-16  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3356
3357         Add RegisterProtocolHandlerClient to the Modules/protocolhandler
3358         https://bugs.webkit.org/show_bug.cgi?id=90940
3359
3360         Reviewed by Hajime Morita.
3361
3362         As a step to let protocol handler be moved to the modules, RegisterProtocolHandlerClient needs
3363         to be added to the Modules/protocolhandler. Because ChromeClient has some virtual functions for
3364         protocol handlers, virtual functions should be moved to RegisterProtocolHandlerClient.
3365
3366         In order to support this, RegisterProtocolHandlerClientImpl class is added to ChromeClientImpl files.
3367
3368         In addition, existing functions related to protocol handler in ChromeClientImpl class are moved to
3369         RegisterProtocolHandlerClientImpl class.
3370
3371         * WebKit.gyp:
3372         * src/ChromeClientImpl.cpp: Implement RegisterProtocolHandlerClientImpl class.
3373         (WebKit):
3374         (WebKit::RegisterProtocolHandlerClientImpl::create):
3375         (WebKit::RegisterProtocolHandlerClientImpl::RegisterProtocolHandlerClientImpl):
3376         (WebKit::RegisterProtocolHandlerClientImpl::registerProtocolHandler):
3377         * src/ChromeClientImpl.h:
3378         (ChromeClientImpl):
3379         (RegisterProtocolHandlerClientImpl):
3380         (WebKit::RegisterProtocolHandlerClientImpl::~RegisterProtocolHandlerClientImpl):
3381         (WebKit):
3382         * src/WebViewImpl.cpp: Register RegisterProtocolHandlerClientImpl in order to support supplement.
3383         (WebKit::WebViewImpl::WebViewImpl):
3384         * src/WebViewImpl.h:
3385
3386 2012-07-16  Yoshifumi Inoue  <yosin@chromium.org>
3387
3388         REGRESSION(r122552): DecimalTest tests (CeilingSmallExponent and FloorSmallExponent) started failing.
3389         https://bugs.webkit.org/show_bug.cgi?id=91244
3390
3391         Reviewed by Kent Tamura.
3392
3393         This patch enables and updates disabled test cases of DecimalTest
3394         caused by fixes in r122552 of Decimal::ceiling() and Decimal::floor()
3395         for small fraction numbers and added test cases. Fixes in r122552
3396         itself is correct however, it didn't update existing tests for very small
3397         fraction numbers.
3398
3399         * tests/DecimalTest.cpp:
3400         (TEST_F): CeilingSmallExponent: Change expected value to 1 for ceiling(1e-1000),
3401         ceiling rounds number toward positive infinity.
3402         (TEST_F): FloorSmallExponent: Change expected value to -1 for floor(-1e-1000),
3403         floor rounds number toward negative infinity.
3404
3405 2012-07-16  Koji Ishii  <kojiishi@gmail.com>
3406
3407         Vertical alternate glyph (GSUB) support for OpenTypeVerticalData
3408         https://bugs.webkit.org/show_bug.cgi?id=81389
3409
3410         Reviewed by Tony Chang.
3411
3412         Tests for pointer validations for OpenType tables.
3413
3414         * WebKit.gypi:
3415         * tests/OpenTypeVerticalDataTest.cpp: Added.
3416         (WebCore):
3417         (TestTable):
3418         (WebCore::TestTable::validateOffset):
3419         (WebCore::TEST):
3420
3421 2012-07-16  Alexandre Elias  <aelias@google.com>
3422
3423         [chromium] Fix WebFrameTest flakiness due to synthetic mouse events
3424         https://bugs.webkit.org/show_bug.cgi?id=91428
3425
3426         Reviewed by Adam Barth.
3427
3428         Synthetic mouse move events on scrolling can cause segfaults in
3429         WebFrameTest due to delayed callbacks on the message loop after
3430         state destruction. This is currently only affecting
3431         the Android port, but has the potential to affect other platforms in the
3432         future.
3433
3434         We can avoid the issue by disabling the deviceSupportsMouse
3435         setting, which shouldn't be needed by any WebFrameTest.
3436
3437         * tests/FrameTestHelpers.cpp:
3438         (WebKit::FrameTestHelpers::createWebViewAndLoad):
3439
3440 2012-07-16  Alec Flett  <alecflett@chromium.org>
3441
3442         IndexedDB: Introduce putWithIndexKeys and calculate them in the renderer
3443         https://bugs.webkit.org/show_bug.cgi?id=90923
3444
3445         Reviewed by Darin Fisher.
3446
3447         Stub out implementations of putWithIndexKeys(), already implemented
3448         on the chromium side.
3449
3450         * public/WebIDBObjectStore.h:
3451         (WebKit::WebIDBObjectStore::putWithIndexKeys):
3452         * src/IDBObjectStoreBackendProxy.cpp:
3453         (WebKit::IDBObjectStoreBackendProxy::putWithIndexKeys):
3454         (WebKit):
3455         * src/IDBObjectStoreBackendProxy.h:
3456         (IDBObjectStoreBackendProxy):
3457
3458 2012-07-16  Adrienne Walker  <enne@google.com>
3459
3460         [chromium] Unify compositor quad transforms into content space
3461         https://bugs.webkit.org/show_bug.cgi?id=91350
3462
3463         Reviewed by Kenneth Russell.
3464
3465         Update tests to add bounds/contentBounds properties to layers. This
3466         exposed a bug in the quad culler tests where the draw transform was
3467         incorrectly being set to the origin transform rather than being a
3468         transform that operates on centered layer rects. Fixed this bug.
3469
3470         * tests/CCQuadCullerTest.cpp:
3471         * tests/CCSolidColorLayerImplTest.cpp:
3472         (CCLayerTestCommon::TEST):
3473         * tests/CCTiledLayerImplTest.cpp:
3474         (CCLayerTestCommon::createLayer):
3475
3476 2012-07-16  Adrienne Walker  <enne@google.com>
3477
3478         [chromium] Unify compositor quad transforms into content space
3479         https://bugs.webkit.org/show_bug.cgi?id=91350
3480
3481         Reviewed by Kenneth Russell.
3482
3483         Update tests to add bounds/contentBounds properties to layers. This
3484         exposed a bug in the quad culler tests where the draw transform was
3485         incorrectly being set to the origin transform rather than being a
3486         transform that operates on centered layer rects. Fixed this bug.
3487
3488         * tests/CCQuadCullerTest.cpp:
3489         * tests/CCSolidColorLayerImplTest.cpp:
3490         (CCLayerTestCommon::TEST):
3491         * tests/CCTiledLayerImplTest.cpp:
3492         (CCLayerTestCommon::createLayer):
3493
3494 2012-07-16  Dana Jansens  <danakj@chromium.org>
3495
3496         [chromium] Remove targetRenderSurface concept, give layers a renderTarget which is the layer whose coordinate space they draw into
3497         https://bugs.webkit.org/show_bug.cgi?id=91288
3498
3499         Reviewed by Adrienne Walker.
3500
3501         * tests/CCDamageTrackerTest.cpp:
3502         (WebKitTests::TEST_F):
3503         * tests/CCLayerImplTest.cpp:
3504         (WebCore::TEST):
3505         * tests/CCLayerTreeHostCommonTest.cpp:
3506         * tests/CCOcclusionTrackerTest.cpp:
3507         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
3508         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
3509         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
3510         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
3511         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
3512         (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest):
3513         (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest):
3514         (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest):
3515         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
3516         (WebKitTests::CCOcclusionTrackerTestTopmostSurfaceIsClippedToScissor::runMyTest):
3517         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest):
3518         * tests/CCQuadCullerTest.cpp:
3519         * tests/CCTiledLayerTestCommon.cpp:
3520         (WebKitTests::FakeTiledLayerChromium::setTexturePriorities):
3521         * tests/LayerChromiumTest.cpp:
3522
3523 2012-07-16  Sami Kyostila  <skyostil@chromium.org>
3524
3525         [chromium] Only apply page scale delta to root scroll layer
3526         https://bugs.webkit.org/show_bug.cgi?id=91374
3527
3528         Reviewed by Adrienne Walker.
3529
3530         New unit test
3531         CCLayerTreeHostImplTest.pageScaleDeltaAppliedToRootScrollLayerOnly to verify
3532         the transformation of child layer while pinch zooming.
3533
3534         * tests/CCLayerTreeHostImplTest.cpp:
3535
3536 2012-07-16  Kihong Kwon  <kihong.kwon@samsung.com>
3537
3538         Remove setController from BatteryClient
3539         https://bugs.webkit.org/show_bug.cgi?id=90944
3540
3541         Reviewed by Adam Barth.
3542
3543         Remove virtual identifier from setController because setController is removed from WebCore::BatteryClient.
3544         In addition, BatteryController is set to instance of BatteryClientImpl in the constructor of WebViewImpl.
3545
3546         * src/BatteryClientImpl.h:
3547         (BatteryClientImpl):
3548         * src/WebViewImpl.cpp:
3549         (WebKit::WebViewImpl::WebViewImpl):
3550
3551 2012-07-16  Dana Jansens  <danakj@chromium.org>
3552
3553         [chromium] Incorrect assertion: Replicas will cause a RenderPass to be removed twice
3554         https://bugs.webkit.org/show_bug.cgi?id=91328
3555
3556         Reviewed by Adrienne Walker.
3557
3558         Add replicas to the surfaces in the test.
3559
3560         * tests/CCLayerTreeHostTest.cpp:
3561         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
3562         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::beginTest):
3563         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::afterTest):
3564         (CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
3565
3566 2012-07-13  Eric Penner  <epenner@google.com>
3567
3568         [chromium] Add 'self-managed' option to CCPrioritizedTexture to enable render-surface and canvas use cases.
3569         https://bugs.webkit.org/show_bug.cgi?id=91177
3570
3571         Reviewed by Adrienne Walker.
3572
3573         * tests/CCPrioritizedTextureTest.cpp:
3574         (WTF::TEST_F):
3575         * tests/TiledLayerChromiumTest.cpp:
3576
3577 2012-07-13  Brian Anderson  <brianderson@chromium.org>
3578
3579         Add flushes to CCTextureUpdater::update
3580         https://bugs.webkit.org/show_bug.cgi?id=89035
3581
3582         Reviewed by Adrienne Walker.
3583
3584         CCTextureUpdaterTest added to verify texture upload/flushing patterns.
3585
3586         * WebKit.gypi:
3587         * tests/CCTextureUpdaterTest.cpp: Added.
3588
3589 2012-07-13  David Grogan  <dgrogan@chromium.org>
3590
3591         IndexedDB: Re-enable indexeddb in test_shell
3592         https://bugs.webkit.org/show_bug.cgi?id=91161
3593
3594         Reviewed by Tony Chang.
3595
3596         IDB used to be allowed to run if webView->permissionClient() was NULL,
3597         as is the case in test_shell. This was inadvertently changed in
3598         http://wkb.ug/90310.
3599
3600         We still don't have an automated test for this (http://crbug.com/113738)
3601         Tested manually:
3602
3603         * In test_shell:
3604         1) Open an IDB page
3605         2) Verify IDB has permission to open a DB
3606
3607         * In chrome:
3608         1) Open an IDB page
3609         2) Verify IDB has permission to open a DB
3610         3) Revoke IDB permissions in chrome://chrome/settings/content
3611         4) Reload the IDB page
3612         5) Verify IDB doesn't have permission to open a DB
3613
3614         * src/IDBFactoryBackendProxy.cpp:
3615         (WebKit::IDBFactoryBackendProxy::allowIndexedDB):
3616
3617 2012-07-13  Wei James  <james.wei@intel.com>
3618
3619         enable TestWebKitAPI/webkit_unit_tests apk on x86 android platform by adding abi support
3620         https://bugs.webkit.org/show_bug.cgi?id=91194
3621
3622         Reviewed by Adam Barth.
3623
3624         * WebKitUnitTests.gyp:
3625
3626 2012-07-13  Dana Jansens  <danakj@chromium.org>
3627
3628         webkit_unit_test CCLayerTreeHostImplTest.testRemoveRenderPasses started failing.
3629         https://bugs.webkit.org/show_bug.cgi?id=91245
3630
3631         Reviewed by Adrienne Walker.
3632
3633         * tests/CCLayerTreeHostImplTest.cpp:
3634
3635 2012-07-13  Vsevolod Vlasov  <vsevik@chromium.org>
3636
3637         Unreviewed gardening: skip failing webkit unit test.
3638
3639         * tests/CCLayerTreeHostImplTest.cpp:
3640
3641 2012-07-13  Vsevolod Vlasov  <vsevik@chromium.org>
3642
3643         Unreviewed gardening, skip failing webkit_unit_tests.
3644
3645         * tests/DecimalTest.cpp:
3646         (TEST_F):
3647
3648 2012-07-13  Kent Tamura  <tkent@chromium.org>
3649
3650         Make calendar pickers testable
3651         https://bugs.webkit.org/show_bug.cgi?id=84827
3652
3653         Reviewed by Hajime Morita.
3654
3655         * src/ChromeClientImpl.cpp:
3656         (WebKit::ChromeClientImpl::ChromeClientImpl):
3657         Initialize m_pagePopupDriver with the WebViewImpl.
3658         (WebKit::ChromeClientImpl::openPagePopup):
3659         Just calls PagePoupDriver::openPagePopup().
3660         (WebKit::ChromeClientImpl::closePagePopup):
3661         Just calls PagePoupDriver::closePagePopup().
3662         (WebKit::ChromeClientImpl::setPagePopupDriver):
3663         * src/ChromeClientImpl.h:
3664         (ChromeClientImpl): Add setPagePopupDriver
3665         * src/WebViewImpl.h:
3666         (WebViewImpl):
3667         WebViewImpl implements PagePopupDriver. openPagePopup() and
3668         closePagePopup() override members of PagePopupDriver.
3669
3670 2012-07-13  Yoshifumi Inoue  <yosin@chromium.org>
3671
3672         REGRESSION(r119948): [Forms] Spin button Up/Down actions make value to zero for input type "number" when step mismatched
3673         https://bugs.webkit.org/show_bug.cgi?id=91197
3674
3675         Reviewed by Kent Tamura.
3676
3677         This patch adds test cases for Decimal::ceiling() and floor() of
3678         positive/negative small fractional numbers.
3679
3680         * tests/DecimalTest.cpp:
3681         (TEST_F):
3682
3683 2012-07-12  Adrienne Walker  <enne@google.com>
3684
3685         [chromium] Root invalidations for RTL pages need to be in the right space
3686         https://bugs.webkit.org/show_bug.cgi?id=91155
3687
3688         Reviewed by Kenneth Russell.
3689
3690         The root layer has a translation on it when placed in the tree, so any
3691         invalidations on this layer likewise need to be adjusted.
3692
3693         This adjustment is due to the fact that compositor layers all have the
3694         origin in the upper left corner of the layer, but this is not always
3695         the origin for graphics layers. Rather than making compositor layers
3696         have to deal with a potential offset, we change the transform when
3697         inserting the layer into the tree. Invalidations need to be similarly
3698         transformed from document space into compositor layer space.
3699
3700         The need for this offset is due to the definition of the initial
3701         containing block. RTL pages (pages with dir=RTL on the body) start
3702         scrolled all the way to the right, and the origin is in the upper left
3703         hand corner of this initial viewport. Thus on RTL pages with
3704         horizontal overflow, the left of the document is in negative CSS
3705         space.
3706
3707         * src/NonCompositedContentHost.cpp:
3708         (WebKit::NonCompositedContentHost::invalidateRect):
3709
3710 2012-07-12  Dana Jansens  <danakj@chromium.org>
3711
3712         [chromium] Remove the RenderPass pointer from RenderPassDrawQuad
3713         https://bugs.webkit.org/show_bug.cgi?id=91023
3714
3715         Reviewed by Adrienne Walker.
3716
3717         * tests/CCLayerTreeHostImplTest.cpp:
3718
3719 2012-07-12  Adam Barth  <abarth@webkit.org>
3720
3721         [Chromium] WebSettings should be sorted
3722         https://bugs.webkit.org/show_bug.cgi?id=91157
3723
3724         Reviewed by Eric Seidel.
3725
3726         This might be my OCD, but IMHO this file would be cleaner if we listed
3727         the settings in alphabetic order.
3728
3729         * public/WebSettings.h:
3730         * src/WebSettingsImpl.h:
3731         (WebSettingsImpl):
3732         (WebKit::WebSettingsImpl::forceSoftwareCompositing):
3733         (WebKit::WebSettingsImpl::viewportEnabled):
3734         (WebKit::WebSettingsImpl::maxUntiledLayerSize):
3735
3736 2012-07-12  Joshua Bell  <jsbell@chromium.org>
3737
3738         IndexedDB: Enable IDBFactory.deleteDatabase() and webkitGetDatabaseNames() in Workers
3739         https://bugs.webkit.org/show_bug.cgi?id=90310
3740
3741         Reviewed by Tony Chang.
3742
3743         * src/IDBFactoryBackendProxy.cpp:
3744         (WebKit::IDBFactoryBackendProxy::allowIndexedDB): Consolidates user-prompting logic.
3745         (WebKit::getWebFrame): Helper to dig out frame from Document, or null for Worker.
3746         (WebKit::IDBFactoryBackendProxy::getDatabaseNames):
3747         (WebKit):
3748         (WebKit::IDBFactoryBackendProxy::open):
3749         (WebKit::IDBFactoryBackendProxy::deleteDatabase):
3750         * src/IDBFactoryBackendProxy.h: Update method signatures to match interface.
3751         (WebCore):
3752         (IDBFactoryBackendProxy):
3753
3754 2012-07-12  Dana Jansens  <danakj@chromium.org>
3755
3756         [chromium] The root layer should not try create a second RenderSurface for itself
3757         https://bugs.webkit.org/show_bug.cgi?id=91124
3758
3759         Reviewed by Adrienne Walker.
3760
3761         * tests/CCLayerTreeHostImplTest.cpp:
3762
3763 2012-07-12  Eric Penner  <epenner@google.com>
3764
3765         [chromium] Use CCTexture/TextureAllocator and remove TextureManager
3766         https://bugs.webkit.org/show_bug.cgi?id=91001
3767
3768         Reviewed by Adrienne Walker.
3769
3770         Deleting old texture manager tests.
3771
3772         * WebKit.gypi:
3773         * tests/CCLayerTreeHostImplTest.cpp:
3774         * tests/CCPrioritizedTextureTest.cpp:
3775         (WTF::CCPrioritizedTextureTest::texturesMemorySize):
3776         * tests/CCThreadedTest.cpp:
3777         * tests/CCTiledLayerTestCommon.h:
3778         * tests/Canvas2DLayerBridgeTest.cpp:
3779         * tests/TextureManagerTest.cpp: Removed.
3780
3781 2012-07-12  Robert Sesek  <rsesek@chromium.org>
3782
3783         [chromium][Mac] r122400 broke 10.6 build
3784         https://bugs.webkit.org/show_bug.cgi?id=91103
3785
3786         Reviewed by Tony Chang.
3787
3788         Use the right availability macros for forward-declaring methods and
3789         defining constants.
3790
3791         * src/mac/WebInputEventFactory.mm:
3792
3793 2012-07-12  Tony Chang  <tony@chromium.org>
3794
3795         [chromium] Remove drag and drop API methods that are no longer used
3796         https://bugs.webkit.org/show_bug.cgi?id=90996
3797
3798         Reviewed by Adam Barth.
3799
3800         In r117327, we added a parameter for modifier keys to these methods.
3801         Chromium has since switched to using the methods that require the
3802         extra parameter so we can remove these methods.
3803
3804         * public/WebView.h:
3805         (WebView):
3806         * src/WebViewImpl.cpp:
3807         (WebKit::WebViewImpl::dragTargetDragEnter):
3808         (WebKit::WebViewImpl::dragTargetDragOver):
3809         * src/WebViewImpl.h:
3810         (WebViewImpl):
3811
3812 2012-07-12  Tony Chang  <tony@chromium.org>
3813
3814         Unreviewed.  Rolled DEPS.
3815
3816         * DEPS:
3817
3818 2012-07-12  Adam Barth  <abarth@webkit.org>
3819
3820         [Chromium] Delete last mention of Hixie76 in WebKit/chromium
3821         https://bugs.webkit.org/show_bug.cgi?id=91099
3822
3823         Reviewed by Tony Chang.
3824
3825         This deprecated API is no longer used anywhere.
3826
3827         * public/WebSettings.h:
3828         (WebKit::WebSettings::setDefaultDeviceScaleFactor):
3829
3830 2012-07-12  Tony Chang  <tony@chromium.org>
3831
3832         Unreviewed, rolling out r122477.
3833         http://trac.webkit.org/changeset/122477
3834         https://bugs.webkit.org/show_bug.cgi?id=91103
3835
3836         Broke Chromium Mac build
3837
3838         * src/mac/WebInputEventFactory.mm:
3839
3840 2012-07-12  Robert Sesek  <rsesek@chromium.org>
3841
3842         [chromium][Mac] r122400 broke 10.6 build
3843         https://bugs.webkit.org/show_bug.cgi?id=91103
3844
3845         Reviewed by Tony Chang.
3846
3847         Use the right availability macros for forward-declaring methods and
3848         defining constants.
3849
3850         * src/mac/WebInputEventFactory.mm:
3851
3852 2012-07-12  Peter Beverloo  <peter@chromium.org>
3853
3854         [Chromium] Enable building APKs for TestWebKitAPI and webkit_unit_tests
3855         https://bugs.webkit.org/show_bug.cgi?id=90989
3856
3857         Reviewed by Adam Barth.
3858
3859         Add dependencies on the webkit_unit_tests_apk and TestWebKitAPI_apk
3860         targets for Android, making sure that we're generating the packages.
3861
3862         * All.gyp:
3863
3864 2012-07-12  Leandro Gracia Gil  <leandrogracia@chromium.org>
3865
3866         [Chromium] Remove unrequired API in WebSurroundingText.
3867         https://bugs.webkit.org/show_bug.cgi?id=91067
3868
3869         Reviewed by Adam Barth.
3870
3871         Remove the unused first initialize method from WebSurroundingText.
3872         Now both Chromium and LayoutTestController use the second method.
3873
3874         * public/WebSurroundingText.h:
3875         (WebSurroundingText):
3876         * src/WebSurroundingText.cpp:
3877
3878 2012-07-11  Mark Rowe  <mrowe@apple.com>
3879
3880         <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of system availability macros
3881
3882         This removal was handled by a script that translates the relevant macros in to the equivalent checks
3883         using the system availability macros.
3884
3885         Reviewed by Filip Pizlo.
3886
3887         * src/mac/WebInputEventFactory.mm:
3888
3889 2012-07-11  Sheriff Bot  <webkit.review.bot@gmail.com>
3890
3891         Unreviewed.  Rolled DEPS.
3892
3893         * DEPS:
3894
3895 2012-07-11  Sheriff Bot  <webkit.review.bot@gmail.com>
3896
3897         Unreviewed, rolling out r122358.
3898         http://trac.webkit.org/changeset/122358
3899         https://bugs.webkit.org/show_bug.cgi?id=91037
3900
3901         Build break on WebKit Win (Requested by hayato on #webkit).
3902
3903         * public/WebView.h:
3904         (WebView):
3905         * src/WebViewImpl.cpp:
3906         (WebKit::WebViewImpl::dragTargetDragEnter):
3907         (WebKit):
3908         (WebKit::WebViewImpl::dragTargetDragOver):
3909         (WebKit::WebViewImpl::dragTargetDrop):
3910         * src/WebViewImpl.h:
3911         (WebViewImpl):
3912
3913 2012-07-11  Alexandre Elias  <aelias@google.com>
3914
3915         [chromium] Move compositor quads to Platform/chromium/public
3916         https://bugs.webkit.org/show_bug.cgi?id=90582
3917
3918         Reviewed by Adrienne Walker.
3919
3920         This moves CCSharedQuadState, CCDrawQuad, and all but two CC*DrawQuad
3921         classes to the WebKit namespace, as a first step to pushing them
3922         across the process boundary for the ubercompositor.
3923
3924         - The intent is to serialize the class hierarchy using the same
3925         mechanism as WebInputEvent.  In order to do this, there are three
3926         requirements: pure POD data, a method returning size, and a packing
3927         pragma.
3928
3929         - Private data members are fine with this kind of serializer, and a
3930         default constructor is not needed.  Because of that, we can maintain
3931         the same encapsulation and convenient APIs (behind
3932         WEBKIT_IMPLEMENTATION) as the original classes.  To ease the
3933         transition, the original WebCore headers still exist and typedef to
3934         the new classes.
3935
3936         - However, SharedQuadState will be serialized using the normal
3937         IPC_STRUCT_TRAITS macro, so I made its members public.  A custom
3938         serializer (on quad lists) will maintain the pointers from quads to
3939         SharedQuadStates.
3940
3941         - I converted the Material casting mechanism to materialCast() methods
3942         living in the derived classes.  That way, the WebCompositorQuad header
3943         doesn't need to know about all its derived classes.
3944
3945         - Quad classes not yet transitioned can still be used in
3946         non-ubercompositor mode.  CCRenderPassDrawQuad and CCYUVVideoDrawQuad
3947         are currently non-POD and I left them in their original files.
3948
3949         This approach is the best I've found so far, since it preserves all
3950         WebCore-facing APIs and avoids unnecessary code duplication (new quad
3951         types or members can be added by modifying only one place).  There
3952         also should not be an unreasonable amount of custom serializer code
3953         required.
3954
3955         * tests/CCLayerTestCommon.cpp:
3956         (CCLayerTestCommon::verifyQuadsExactlyCoverRect):
3957         * tests/CCSolidColorLayerImplTest.cpp:
3958         (CCLayerTestCommon::TEST):
3959
3960 2012-07-11  Dana Jansens  <danakj@chromium.org>
3961
3962         [chromium] Rename layerRect to contentRect for rects that live in content space
3963         https://bugs.webkit.org/show_bug.cgi?id=90843
3964
3965         Reviewed by Adrienne Walker.
3966
3967         * tests/CCLayerImplTest.cpp:
3968         (WebCore::TEST):
3969         * tests/CCLayerTreeHostCommonTest.cpp:
3970         * tests/CCLayerTreeHostImplTest.cpp:
3971         * tests/CCOcclusionTrackerTest.cpp:
3972         (WebKitTests::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
3973         (WebKitTests::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
3974         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
3975         * tests/CCQuadCullerTest.cpp:
3976         * tests/CCRenderSurfaceTest.cpp:
3977         * tests/CCSolidColorLayerImplTest.cpp:
3978         (CCLayerTestCommon::TEST):
3979         * tests/CCTiledLayerImplTest.cpp:
3980         (CCLayerTestCommon::createLayer):
3981         (CCLayerTestCommon::TEST):
3982         (CCLayerTestCommon::getQuads):
3983         (CCLayerTestCommon::coverageVisibleRectIntersectsTiles):
3984         (CCLayerTestCommon::coverageVisibleRectIntersectsBounds):
3985         * tests/CCTiledLayerTestCommon.cpp:
3986         (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate):
3987         (WebKitTests::FakeTiledLayerChromium::update):
3988         * tests/CCTiledLayerTestCommon.h:
3989         (FakeTiledLayerChromium):
3990         * tests/LayerChromiumTest.cpp:
3991         * tests/TiledLayerChromiumTest.cpp:
3992
3993 2012-07-11  Dana Jansens  <danakj@chromium.org>
3994
3995         [chromium] Minimum size used for occlusion tracking should be a setting on CCLayerTreeHost
3996         https://bugs.webkit.org/show_bug.cgi?id=90993
3997
3998         Reviewed by Adrienne Walker.
3999
4000         * tests/CCLayerTreeHostImplTest.cpp:
4001
4002 2012-07-11  Adam Barth  <abarth@webkit.org>
4003
4004         [Chromium] Enable LEGACY_VIEWPORT_ADAPTION
4005         https://bugs.webkit.org/show_bug.cgi?id=90991
4006
4007         Reviewed by Tony Chang.
4008
4009         Chromium wishes to support LEGACY_VIEWPORT_ADAPTION. I actually thought
4010         this was enabled before, but the enable bit got lost in the shuffle.
4011
4012         * features.gypi:
4013
4014 2012-07-11  Tony Chang  <tony@chromium.org>
4015
4016         [chromium] Remove drag and drop API methods that are no longer used
4017         https://bugs.webkit.org/show_bug.cgi?id=90996
4018
4019         Reviewed by Adam Barth.
4020
4021         In r117327, we added a parameter for modifier keys to these methods.
4022         Chromium has since switched to using the methods that require the
4023         extra parameter so we can remove these methods.
4024
4025         * public/WebView.h:
4026         (WebView):
4027         * src/WebViewImpl.cpp:
4028         (WebKit::WebViewImpl::dragTargetDragEnter):
4029         (WebKit::WebViewImpl::dragTargetDragOver):
4030         * src/WebViewImpl.h:
4031         (WebViewImpl):
4032
4033 2012-07-11  Shawn Singh  <shawnsingh@chromium.org>
4034
4035         Unreviewed build fix, forgot to add URLTestHelpers.* when landing r122344
4036
4037         * tests/URLTestHelpers.cpp: Added.
4038         (URLTestHelpers):
4039         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
4040         (WebKit::URLTestHelpers::registerMockedURLLoad):
4041         * tests/URLTestHelpers.h: Added.
4042         (WebKit):
4043         (URLTestHelpers):
4044         (WebKit::URLTestHelpers::toKURL):
4045
4046 2012-07-11  Shawn Singh  <shawnsingh@chromium.org>
4047
4048         [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests
4049         https://bugs.webkit.org/show_bug.cgi?id=90094
4050
4051         Reviewed by Adrienne Walker.
4052
4053         This patch adds the WEBKIT_IMPLEMENTATION = 1 define to
4054         WebKitUnitTests.gyp. To get it to compile correctly, some string
4055         and URL code was refactored and fixed, in particular GURL usage is
4056         replaced with KURL usage.
4057
4058         * WebKit.gyp:
4059         added WEBKIT_IMPLEMENTATION == 1 for unit test code when in shared library
4060         added URLTestHelpers to exclusion in shared library build, because it depends on webkit_support
4061
4062         * WebKit.gypi:
4063         added URLTestHelpers.h and .cpp to the build process
4064
4065         * WebKitUnitTests.gyp:
4066         added WEBKIT_IMPLEMENTATION == 1 for unit test code when not in shared library.
4067         note that in shared library build, RunAllTests.cpp does not have WEBKIT_IMPLEMENTATION == 1.
4068
4069         * public/WebDOMMessageEvent.h:
4070         (WebKit::WebDOMMessageEvent::WebDOMMessageEvent):
4071         * tests/AssociatedURLLoaderTest.cpp:
4072         * tests/EventListenerTest.cpp:
4073         * tests/FrameTestHelpers.cpp:
4074         (WebKit::FrameTestHelpers::loadFrame):
4075         * tests/FrameTestHelpers.h:
4076         * tests/ListenerLeakTest.cpp:
4077         (WebKit::ListenerLeakTest::RunTest):
4078         * tests/PopupMenuTest.cpp:
4079         * tests/RunAllTests.cpp:
4080         * tests/URLTestHelpers.cpp: Added.
4081         (URLTestHelpers):
4082         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
4083         (WebKit::URLTestHelpers::registerMockedURLLoad):
4084         * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h.
4085         (WebKit):
4086         (URLTestHelpers):
4087         (WebKit::URLTestHelpers::toKURL):
4088         * tests/WebFrameTest.cpp:
4089         * tests/WebPageNewSerializerTest.cpp:
4090         * tests/WebPageSerializerTest.cpp:
4091         * tests/WebViewTest.cpp:
4092
4093 2012-07-10  Pavel Feldman  <pfeldman@chromium.org>
4094
4095         Web Inspector: migrate from background images to CSS for statusbar rendering.
4096         https://bugs.webkit.org/show_bug.cgi?id=90902
4097
4098         Reviewed by Vsevolod Vlasov.
4099
4100         * WebKit.gypi:
4101         * src/js/Images/statusbarBackgroundChromium.png: Removed.
4102         * src/js/Images/statusbarBottomBackgroundChromium.png: Removed.