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