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