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