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