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