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