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