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