[chromium] Separate IOSurface layer type from texture layers
[WebKit.git] / Source / WebKit / chromium / ChangeLog
1 2012-04-26  James Robinson  <jamesr@chromium.org>
2
3         [chromium] Separate IOSurface layer type from texture layers
4         https://bugs.webkit.org/show_bug.cgi?id=85030
5
6         Reviewed by Adrienne Walker.
7
8         Update WebPluginContainerImpl to support having either a texture or IOSurface layer (but never both) depending
9         on the plugin's contents.
10
11         * WebKit.gyp:
12         * src/WebExternalTextureLayer.cpp:
13         * src/WebIOSurfaceLayer.cpp:
14         (WebKit):
15         (WebKit::WebIOSurfaceLayer::create):
16         (WebKit::WebIOSurfaceLayer::setIOSurfaceProperties):
17         (WebKit::WebIOSurfaceLayer::WebIOSurfaceLayer):
18         * src/WebPluginContainerImpl.cpp:
19         (WebKit::WebPluginContainerImpl::setBackingTextureId):
20         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
21         (WebKit::WebPluginContainerImpl::commitBackingTexture):
22         (WebKit::WebPluginContainerImpl::setOpaque):
23         (WebKit::WebPluginContainerImpl::platformLayer):
24         (WebKit::WebPluginContainerImpl::WebPluginContainerImpl):
25         * src/WebPluginContainerImpl.h:
26         (WebPluginContainerImpl):
27
28 2012-04-27  Hans Wennborg  <hans@chromium.org>
29
30         Speech JavaScript API: Fix Vector use failure
31         https://bugs.webkit.org/show_bug.cgi?id=85069
32
33         Reviewed by Tony Gentilcore.
34
35         Fix think-o in code copying from WebVector to Vector.
36
37         * src/SpeechRecognitionClientProxy.cpp:
38         (WebKit::SpeechRecognitionClientProxy::didReceiveResult):
39         (WebKit::SpeechRecognitionClientProxy::didDeleteResult):
40         * src/WebSpeechRecognitionResult.cpp:
41         (WebKit::WebSpeechRecognitionResult::assign):
42
43 2012-04-27  Leandro Gracia Gil  <leandrogracia@chromium.org>
44
45         Selectively retrieve text around a touched point.
46         https://bugs.webkit.org/show_bug.cgi?id=82460
47
48         Reviewed by Darin Fisher.
49
50         Implements an embedding API to WebCore's SurroundingText, adding also
51         the possibility of select and highlight the retrieved text range.
52
53         * WebKit.gyp:
54         * public/WebFrame.h:
55         (WebFrame):
56         * public/WebHitTestResult.h: Added.
57         (WebCore):
58         (WebKit):
59         (WebHitTestResult):
60         (WebKit::WebHitTestResult::WebHitTestResult):
61         (WebKit::WebHitTestResult::~WebHitTestResult):
62         * public/WebRange.h:
63         (WebKit):
64         (WebRange):
65         * public/WebSurroundingText.h: Added.
66         (WebCore):
67         (WebKit):
68         (WebSurroundingText):
69         (WebKit::WebSurroundingText::WebSurroundingText):
70         (WebKit::WebSurroundingText::~WebSurroundingText):
71         * public/WebView.h:
72         (WebKit):
73         * src/WebFrameImpl.cpp:
74         (WebKit::WebFrameImpl::selectRange):
75         (WebKit):
76         * src/WebFrameImpl.h:
77         (WebFrameImpl):
78         * src/WebHitTestResult.cpp: Added.
79         (WebKit):
80         (WebKit::WebHitTestResult::node):
81         (WebKit::WebHitTestResult::localPoint):
82         (WebKit::WebHitTestResult::WebHitTestResult):
83         (WebKit::WebHitTestResult::operator=):
84         (WebKit::WebHitTestResult::operator HitTestResult):
85         (WebKit::WebHitTestResult::isNull):
86         (WebKit::WebHitTestResult::assign):
87         (WebKit::WebHitTestResult::reset):
88         * src/WebRange.cpp:
89         (WebKit::WebRange::textQuads):
90         (WebKit):
91         * src/WebSurroundingText.cpp: Added.
92         (WebKit):
93         (WebKit::WebSurroundingText::initialize):
94         (WebKit::WebSurroundingText::textContent):
95         (WebKit::WebSurroundingText::hitOffsetInTextContent):
96         (WebKit::WebSurroundingText::rangeFromContentOffsets):
97         (WebKit::WebSurroundingText::isNull):
98         (WebKit::WebSurroundingText::reset):
99
100 2012-04-27  Dimitri Glazkov  <dglazkov@chromium.org>
101
102         Unreviewed, rolling out r115463.
103         http://trac.webkit.org/changeset/115463
104         https://bugs.webkit.org/show_bug.cgi?id=82460
105
106         Broke Mac build.
107
108         * WebKit.gyp:
109         * public/WebFrame.h:
110         (WebFrame):
111         * public/WebHitTestResult.h: Removed.
112         * public/WebRange.h:
113         (WebRange):
114         * public/WebSurroundingText.h: Removed.
115         * public/WebView.h:
116         (WebKit):
117         * src/WebFrameImpl.cpp:
118         * src/WebFrameImpl.h:
119         (WebFrameImpl):
120         * src/WebHitTestResult.cpp: Removed.
121         * src/WebRange.cpp:
122         * src/WebSurroundingText.cpp: Removed.
123
124 2012-04-27  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
125
126         Added a chromium webkit public header file to support different web print scaling options.
127         https://bugs.webkit.org/show_bug.cgi?id=84608
128
129         Reviewed by Darin Fisher.
130
131         * WebKit.gyp:
132         * public/WebPrintScalingOption.h: Added.
133         (WebKit):
134
135 2012-04-27  Leandro Gracia Gil  <leandrogracia@chromium.org>
136
137         Selectively retrieve text around a touched point.
138         https://bugs.webkit.org/show_bug.cgi?id=82460
139
140         Reviewed by Darin Fisher.
141
142         Implements an embedding API to WebCore's SurroundingText, adding also
143         the possibility of select and highlight the retrieved text range.
144
145         * WebKit.gyp:
146         * public/WebFrame.h:
147         (WebFrame):
148         * public/WebHitTestResult.h: Added.
149         (WebCore):
150         (WebKit):
151         (WebHitTestResult):
152         (WebKit::WebHitTestResult::WebHitTestResult):
153         (WebKit::WebHitTestResult::~WebHitTestResult):
154         * public/WebRange.h:
155         (WebKit):
156         (WebRange):
157         * public/WebSurroundingText.h: Added.
158         (WebCore):
159         (WebKit):
160         (WebSurroundingText):
161         (WebKit::WebSurroundingText::WebSurroundingText):
162         (WebKit::WebSurroundingText::~WebSurroundingText):
163         * public/WebView.h:
164         (WebKit):
165         * src/WebFrameImpl.cpp:
166         (WebKit::WebFrameImpl::selectRange):
167         (WebKit):
168         * src/WebFrameImpl.h:
169         (WebFrameImpl):
170         * src/WebHitTestResult.cpp: Added.
171         (WebKit):
172         (WebKit::WebHitTestResult::node):
173         (WebKit::WebHitTestResult::localPoint):
174         (WebKit::WebHitTestResult::WebHitTestResult):
175         (WebKit::WebHitTestResult::operator=):
176         (WebKit::WebHitTestResult::operator HitTestResult):
177         (WebKit::WebHitTestResult::isNull):
178         (WebKit::WebHitTestResult::assign):
179         (WebKit::WebHitTestResult::reset):
180         * src/WebRange.cpp:
181         (WebKit::WebRange::textQuads):
182         (WebKit):
183         * src/WebSurroundingText.cpp: Added.
184         (WebKit):
185         (WebKit::WebSurroundingText::initialize):
186         (WebKit::WebSurroundingText::textContent):
187         (WebKit::WebSurroundingText::hitOffsetInTextContent):
188         (WebKit::WebSurroundingText::rangeFromContentOffsets):
189         (WebKit::WebSurroundingText::isNull):
190         (WebKit::WebSurroundingText::reset):
191
192 2012-04-27  Sheriff Bot  <webkit.review.bot@gmail.com>
193
194         Unreviewed, rolling out r115436.
195         http://trac.webkit.org/changeset/115436
196         https://bugs.webkit.org/show_bug.cgi?id=85079
197
198         "broke the build" (Requested by tonyg-cr on #webkit).
199
200         * WebKit.gyp:
201         * public/WebReferrerPolicy.h: Added.
202
203 2012-04-27  Gavin Peters  <gavinp@chromium.org>
204
205         Add new ENABLE_LINK_PRERENDER define to control the Prerendering API
206         https://bugs.webkit.org/show_bug.cgi?id=84871
207
208         Reviewed by Adam Barth.
209
210         Prerendering is currently covered by the ENABLE_LINK_PREFETCH macro, but the new Prerendering
211         API separates it from prefetching.  Having separate include guards lets ports enable prefetching,
212         a relatively easy change, without needing to build the infrastructure for prerendering, which
213         is considerably more complicated.
214
215 2012-04-27  Dimitri Glazkov  <dglazkov@chromium.org>
216
217         Unreviewed, rolling out r115433.
218         http://trac.webkit.org/changeset/115433
219         https://bugs.webkit.org/show_bug.cgi?id=85052
220
221         Enable unit tests again.
222
223         * tests/PopupMenuTest.cpp:
224         (WebKit::TEST_F):
225
226 2012-04-27  Dimitri Glazkov  <dglazkov@chromium.org>
227
228         Unreviewed, rolling out r115421.
229         http://trac.webkit.org/changeset/115421
230         https://bugs.webkit.org/show_bug.cgi?id=85052
231
232         Enable unit tests again.
233
234         * tests/PopupMenuTest.cpp:
235         (WebKit::TEST_F):
236
237 2012-04-27  Dimitri Glazkov  <dglazkov@chromium.org>
238
239         Unreviewed, rolling out r115400.
240         http://trac.webkit.org/changeset/115400
241         https://bugs.webkit.org/show_bug.cgi?id=84420
242
243         Broke unit tests.
244
245         * src/ChromeClientImpl.cpp:
246         (WebKit::ChromeClientImpl::popupOpened):
247         * src/WebViewImpl.cpp:
248         (WebKit::WebViewImpl::applyAutofillSuggestions):
249
250 2012-04-27  Gavin Peters  <gavinp@chromium.org>
251
252         [Chromium] Remove Webkit/chromium/public/WebReferrerPolicy.h thunk.
253         https://bugs.webkit.org/show_bug.cgi?id=84552
254
255         After http://codereview.chromium.org/10139023/ lands, this thunk is no
256         longer needed.
257
258         Reviewed by Adam Barth.
259
260         * WebKit.gyp:
261         * public/WebReferrerPolicy.h: Removed.
262
263 2012-04-27  Marcus Bulach  <bulach@chromium.org>
264
265         [chromium] Disables a few more webkit_unittests.
266         https://bugs.webkit.org/show_bug.cgi?id=85052
267
268         Unreviewed build fix.
269         
270         Failing on Windows bots, probably due to r115400.
271
272         * tests/PopupMenuTest.cpp:
273         (WebKit::TEST_F):
274
275 2012-04-27  Marcus Bulach  <bulach@chromium.org>
276
277         [chromium] Disables a few webkit_unittests.
278         https://bugs.webkit.org/show_bug.cgi?id=85052
279
280         Unreviewed build fix.
281
282         * tests/PopupMenuTest.cpp:
283         (WebKit::TEST_F):
284
285 2012-04-24  James Robinson  <jamesr@chromium.org>
286
287         [chromium] Move ProgramBinding definitions to LayerRendererChromium and normalize naming
288         https://bugs.webkit.org/show_bug.cgi?id=84808
289
290         Reviewed by Adrienne Walker.
291
292         Add some includes needed by this test that were previously picked up by upstream headers.
293
294         * tests/CCLayerTreeHostImplTest.cpp:
295
296 2012-04-26  Ilya Sherman  <isherman@chromium.org>
297
298         [Chromium] Security: Autofill info can be captured by innocuous social engineering
299         Prevent users from interacting with invisible popups rendered outside the main frame's contents view.
300         https://bugs.webkit.org/show_bug.cgi?id=84420
301         https://code.google.com/p/chromium/issues/detail?id=122925
302
303         Reviewed by Kent Tamura.
304
305         * src/ChromeClientImpl.cpp:
306         (WebKit::ChromeClientImpl::popupOpened): Hide popups rendered outside the main frame's contents view.
307         * src/WebViewImpl.cpp:
308         (WebKit::WebViewImpl::applyAutofillSuggestions): Fix up order of operations to support immediately hiding a popup if it would not be visible
309
310 2012-04-26  Dana Jansens  <danakj@chromium.org>
311
312         [chromium] Some background filters require inflating damage on the surface behind them
313         https://bugs.webkit.org/show_bug.cgi?id=84479
314
315         Reviewed by Adrienne Walker.
316
317         * tests/CCDamageTrackerTest.cpp:
318         (WebKitTests::TEST_F):
319         (WebKitTests):
320
321 2012-04-26  Aaron Colwell  <acolwell@chromium.org>
322
323         Cleanup WebMediaPlayer enum values that didn't match Chromium style guidelines
324         https://bugs.webkit.org/show_bug.cgi?id=84998
325
326         Reviewed by Darin Fisher.
327
328         * public/WebMediaPlayer.h:
329         (WebKit::WebMediaPlayer::generateKeyRequest):
330         (WebKit::WebMediaPlayer::addKey):
331         (WebKit::WebMediaPlayer::cancelKeyRequest):
332
333 2012-04-26  Shawn Singh  <shawnsingh@chromium.org>
334
335         [chromium] re-implement backFaceVisibility to avoid dealing with perspective w<0 problem
336         https://bugs.webkit.org/show_bug.cgi?id=84059
337
338         Reviewed by Adrienne Walker.
339
340         * WebKit.gypi:
341         * tests/CCMathUtilTest.cpp: Added.
342         (WebCore):
343         (WebCore::TEST):
344
345 2012-04-26  Justin Novosad  <junov@chromium.org>
346
347         [Chromium] Single buffered canvas layers with the threaded compositor
348         https://bugs.webkit.org/show_bug.cgi?id=80540
349
350         Reviewed by James Robinson.
351
352         * tests/CCLayerTreeHostTest.cpp:
353         (WTF::CCLayerTreeHostTest::AcquireLayerTextures):
354         (CCLayerTreeHostTest):
355         (WTF::CCLayerTreeHostTest::dispatchAcquireLayerTextures):
356         (WTF::TEST_F):
357         (WTF):
358         (CCLayerTreeHostTestWriteLayersRedraw):
359         (WTF::CCLayerTreeHostTestWriteLayersRedraw::CCLayerTreeHostTestWriteLayersRedraw):
360         (WTF::CCLayerTreeHostTestWriteLayersRedraw::beginTest):
361         (WTF::CCLayerTreeHostTestWriteLayersRedraw::drawLayersOnCCThread):
362         (WTF::CCLayerTreeHostTestWriteLayersRedraw::commitCompleteOnCCThread):
363         (WTF::CCLayerTreeHostTestWriteLayersRedraw::afterTest):
364         (CCLayerTreeHostTestWriteLayersAfterVisible):
365         (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::CCLayerTreeHostTestWriteLayersAfterVisible):
366         (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::beginTest):
367         (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::commitCompleteOnCCThread):
368         (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::afterTest):
369         * tests/CCSchedulerTest.cpp:
370         (WebKitTests::TEST):
371         (WebKitTests):
372         * tests/Canvas2DLayerChromiumTest.cpp:
373         (Canvas2DLayerChromiumTest::fullLifecycleTest):
374
375 2012-04-26  Joshua Bell  <jsbell@chromium.org>
376
377         [Chromium] IndexedDB: Use WebIDBKeyPath type for key paths in WebKit API
378         https://bugs.webkit.org/show_bug.cgi?id=84631
379
380         Reviewed by James Robinson.
381
382         WebIDBKeyPath was previously a utility class for parsing key paths into components,
383         but the API exposed key paths only as nullable strings. To support array-type keypaths,
384         WebIDBKeyPath becomes a value class with type flags. For landing, several legacy methods
385         are retained but will be cleaned up after all callers have been updated, tracked as
386         the bug: http://webkit.org/b/84207
387
388         * public/WebIDBDatabase.h:
389         (WebKit::WebIDBDatabase::createObjectStore): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch.
390         * public/WebIDBIndex.h:
391         (WebKit::WebIDBIndex::keyPath): Calls keyPathString if not overridden.
392         (WebKit::WebIDBIndex::keyPathString): Comment change.
393         * public/WebIDBKeyPath.h:
394         (WebKit::WebIDBKeyPath::create): Overload added for creating array-type key paths.
395         (WebKit::WebIDBKeyPath::array): Accessor for array-type key paths.
396         (WebKit::WebIDBKeyPath::operator const WebString ): Temporary, for compatibility.
397         * public/WebIDBObjectStore.h:
398         (WebKit::WebIDBObjectStore::keyPath): Calls keyPathString if not overridden.
399         (WebKit::WebIDBObjectStore::keyPathString): Comment change.
400         (WebKit::WebIDBObjectStore::createIndex): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch.
401         * public/platform/WebKitPlatformSupport.h:
402         (WebKitPlatformSupport): WebIDBKeyPath overloads for these methods added, delegate to WebString version until implementers are updated.
403         (WebKit::WebKitPlatformSupport::createIDBKeysFromSerializedValuesAndKeyPath):
404         (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue):
405         * src/IDBIndexBackendProxy.cpp:
406         (WebKit::IDBIndexBackendProxy::keyPath): Returns the string version until WebCore is updated.
407         * src/IDBObjectStoreBackendProxy.cpp:
408         (WebKit::IDBObjectStoreBackendProxy::keyPath): Returns the string version until WebCore is updated.
409         * src/WebIDBDatabaseImpl.h:
410         (WebIDBDatabaseImpl): Add createObjectStore overload for WebIDBKeyPath type, delegates to WebString version until callers are updated.
411         * src/WebIDBIndexImpl.cpp:
412         (WebKit::WebIDBIndexImpl::keyPath): Implements the new WebIDBKeyPath return type.
413         (WebKit):
414         * src/WebIDBIndexImpl.h:
415         (WebIDBIndexImpl): Implements the new WebIDBKeyPath return type.
416         * src/WebIDBKeyPath.cpp:
417         (WebKit::WebIDBKeyPath::create): Support null key path types.
418         (WebKit::WebIDBKeyPath::createNull): New API.
419         (WebKit):
420         (WebKit::WebIDBKeyPath::isValid): New API.
421         (WebKit::WebIDBKeyPath::type): New API.
422         (WebKit::WebIDBKeyPath::string): New API (value accessor).
423         (WebKit::WebIDBKeyPath::WebIDBKeyPath):
424         (WebKit::WebIDBKeyPath::assign): This API will be removed.
425         (WebKit::WebIDBKeyPath::operator const WTF::Vector<WTF::String, 0>&): Ensure it is non-null - only used in copy constructor which guards against this.
426         * src/WebIDBObjectStoreImpl.cpp:
427         (WebKit::WebIDBObjectStoreImpl::keyPath): Implement the new WebIDBKeyPath return type.
428         (WebKit):
429         * src/WebIDBObjectStoreImpl.h:
430         (WebIDBObjectStoreImpl): Add createIndex overload for WebIDBKeyPath type, delegates to WebString version until callers are updated.
431
432 2012-04-26  Alexander Pavlov  <apavlov@chromium.org>
433
434         Web Inspector: [CRASH] WebViewImpl::setZoomLevel when emulating device metrics
435         https://bugs.webkit.org/show_bug.cgi?id=84938
436
437         Check for the presence of a live Frame/FrameView before invoking methods that depend on them.
438
439         Reviewed by Yury Semikhatsky.
440
441         * src/WebDevToolsAgentImpl.cpp:
442         (WebKit::DeviceMetricsSupport::restore):
443
444 2012-04-25  Dana Jansens  <danakj@chromium.org>
445
446         [chromium] Remove guarded virtual methods from WebFilterOperation API
447         https://bugs.webkit.org/show_bug.cgi?id=84926
448
449         Reviewed by James Robinson.
450
451         * src/AssertMatchingEnums.cpp:
452
453 2012-04-25  James Robinson  <jamesr@chromium.org>
454
455         [chromium] REGRESSION(112286) Compositor initialization blocks for program compilation / linking
456         https://bugs.webkit.org/show_bug.cgi?id=84822
457
458         Reviewed by Adrienne Walker.
459
460         Add a test that makes sure we don't make blocking calls during LayerRendererChromium initialization.
461
462         * tests/LayerRendererChromiumTest.cpp:
463         (ForbidSynchronousCallContext):
464         (ForbidSynchronousCallContext::ForbidSynchronousCallContext):
465         (ForbidSynchronousCallContext::finish):
466         (ForbidSynchronousCallContext::getActiveAttrib):
467         (ForbidSynchronousCallContext::getActiveUniform):
468         (ForbidSynchronousCallContext::getAttachedShaders):
469         (ForbidSynchronousCallContext::getAttribLocation):
470         (ForbidSynchronousCallContext::getBooleanv):
471         (ForbidSynchronousCallContext::getBufferParameteriv):
472         (ForbidSynchronousCallContext::getContextAttributes):
473         (ForbidSynchronousCallContext::getError):
474         (ForbidSynchronousCallContext::getFloatv):
475         (ForbidSynchronousCallContext::getFramebufferAttachmentParameteriv):
476         (TEST):
477
478 2012-04-25  Alec Flett  <alecflett@chromium.org>
479
480         IndexedDB: implement cursor.advance()
481         https://bugs.webkit.org/show_bug.cgi?id=84174
482
483         Reviewed by Ojan Vafai.
484
485         Hook up chromium IPC to IDBCursor.advance().
486
487         * src/IDBCursorBackendProxy.cpp:
488         (WebKit::IDBCursorBackendProxy::advance):
489         (WebKit):
490         * src/IDBCursorBackendProxy.h:
491         (IDBCursorBackendProxy):
492         * src/WebIDBCursorImpl.cpp:
493         (WebKit::WebIDBCursorImpl::advance):
494
495 2012-04-25  Alpha Lam  <hclam@chromium.org>
496
497         Unreviewed, rolling out r115262.
498         http://trac.webkit.org/changeset/115262
499         https://bugs.webkit.org/show_bug.cgi?id=84631
500
501         r115262 is causing link error in WebKit Win Builder (dbg)
502
503         * public/WebIDBDatabase.h:
504         (WebKit::WebIDBDatabase::createObjectStore):
505         * public/WebIDBIndex.h:
506         (WebKit::WebIDBIndex::keyPath):
507         (WebKit::WebIDBIndex::keyPathString):
508         * public/WebIDBKeyPath.h:
509         (WebKit):
510         (WebIDBKeyPath):
511         * public/WebIDBObjectStore.h:
512         (WebKit::WebIDBObjectStore::keyPath):
513         (WebKit::WebIDBObjectStore::keyPathString):
514         (WebKit::WebIDBObjectStore::createIndex):
515         * public/platform/WebKitPlatformSupport.h:
516         (WebKit::WebKitPlatformSupport::createIDBKeysFromSerializedValuesAndKeyPath):
517         (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue):
518         * src/IDBIndexBackendProxy.cpp:
519         (WebKit::IDBIndexBackendProxy::keyPath):
520         * src/IDBObjectStoreBackendProxy.cpp:
521         (WebKit::IDBObjectStoreBackendProxy::keyPath):
522         * src/WebIDBDatabaseImpl.h:
523         (WebIDBDatabaseImpl):
524         * src/WebIDBIndexImpl.cpp:
525         * src/WebIDBIndexImpl.h:
526         (WebIDBIndexImpl):
527         * src/WebIDBKeyPath.cpp:
528         (WebKit::WebIDBKeyPath::create):
529         (WebKit::WebIDBKeyPath::assign):
530         (WebKit::WebIDBKeyPath::operator const WTF::Vector<WTF::String, 0>&):
531         * src/WebIDBObjectStoreImpl.cpp:
532         * src/WebIDBObjectStoreImpl.h:
533         (WebIDBObjectStoreImpl):
534         (WebKit::WebIDBObjectStoreImpl::createIndex):
535
536 2012-04-24  Adrienne Walker  <enne@google.com>
537
538         [chromium] Prevent CCLayerImpl::willDraw/didDraw mismatches
539         https://bugs.webkit.org/show_bug.cgi?id=84812
540
541         Reviewed by James Robinson.
542
543         Update all tests to call CCLayerTreeHostImpl::didDrawAllLayers if they
544         call CCLayerTreeHostImpl::prepareToDraw.
545
546         * tests/CCLayerTreeHostImplTest.cpp:
547         (WebKitTests::CCLayerTreeHostImplTest::initializeLayerRendererAndDrawFrame):
548         (WebKitTests::TEST_F):
549
550 2012-04-25  Joshua Bell  <jsbell@chromium.org>
551
552         [Chromium] IndexedDB: Use WebIDBKeyPath type for key paths in WebKit API
553         https://bugs.webkit.org/show_bug.cgi?id=84631
554
555         Reviewed by James Robinson.
556
557         WebIDBKeyPath was previously a utility class for parsing key paths into components,
558         but the API exposed key paths only as nullable strings. To support array-type keypaths,
559         WebIDBKeyPath becomes a value class with type flags. For landing, several legacy methods
560         are retained but will be cleaned up after all callers have been updated, tracked as
561         the bug: http://webkit.org/b/84207
562
563         * public/WebIDBDatabase.h:
564         (WebKit::WebIDBDatabase::createObjectStore): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch.
565         * public/WebIDBIndex.h:
566         (WebKit::WebIDBIndex::keyPath): Calls keyPathString if not overridden.
567         (WebKit::WebIDBIndex::keyPathString): Comment change.
568         * public/WebIDBKeyPath.h:
569         (WebKit::WebIDBKeyPath::create): Overload added for creating array-type key paths.
570         (WebKit::WebIDBKeyPath::array): Accessor for array-type key paths.
571         (WebKit::WebIDBKeyPath::operator const WebString ): Temporary, for compatibility.
572         * public/WebIDBObjectStore.h:
573         (WebKit::WebIDBObjectStore::keyPath): Calls keyPathString if not overridden.
574         (WebKit::WebIDBObjectStore::keyPathString): Comment change.
575         (WebKit::WebIDBObjectStore::createIndex): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch.
576         * public/platform/WebKitPlatformSupport.h:
577         (WebKitPlatformSupport): WebIDBKeyPath overloads for these methods added, delegate to WebString version until implementers are updated.
578         (WebKit::WebKitPlatformSupport::createIDBKeysFromSerializedValuesAndKeyPath):
579         (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue):
580         * src/IDBIndexBackendProxy.cpp:
581         (WebKit::IDBIndexBackendProxy::keyPath): Returns the string version until WebCore is updated.
582         * src/IDBObjectStoreBackendProxy.cpp:
583         (WebKit::IDBObjectStoreBackendProxy::keyPath): Returns the string version until WebCore is updated.
584         * src/WebIDBDatabaseImpl.h:
585         (WebIDBDatabaseImpl): Add createObjectStore overload for WebIDBKeyPath type, delegates to WebString version until callers are updated.
586         * src/WebIDBIndexImpl.cpp:
587         (WebKit::WebIDBIndexImpl::keyPath): Implements the new WebIDBKeyPath return type.
588         (WebKit):
589         * src/WebIDBIndexImpl.h:
590         (WebIDBIndexImpl): Implements the new WebIDBKeyPath return type.
591         * src/WebIDBKeyPath.cpp:
592         (WebKit::WebIDBKeyPath::create): Support null key path types.
593         (WebKit::WebIDBKeyPath::createNull): New API.
594         (WebKit):
595         (WebKit::WebIDBKeyPath::isValid): New API.
596         (WebKit::WebIDBKeyPath::type): New API.
597         (WebKit::WebIDBKeyPath::string): New API (value accessor).
598         (WebKit::WebIDBKeyPath::WebIDBKeyPath):
599         (WebKit::WebIDBKeyPath::assign): This API will be removed.
600         (WebKit::WebIDBKeyPath::operator const WTF::Vector<WTF::String, 0>&): Ensure it is non-null - only used in copy constructor which guards against this.
601         * src/WebIDBObjectStoreImpl.cpp:
602         (WebKit::WebIDBObjectStoreImpl::keyPath): Implement the new WebIDBKeyPath return type.
603         (WebKit):
604         * src/WebIDBObjectStoreImpl.h:
605         (WebIDBObjectStoreImpl): Add createIndex overload for WebIDBKeyPath type, delegates to WebString version until callers are updated.
606
607 2012-04-25  Ian Vollick  <vollick@chromium.org>
608
609         [chromium] Add support for animation finished events.
610         https://bugs.webkit.org/show_bug.cgi?id=84454
611
612         Reviewed by James Robinson.
613
614         * tests/CCLayerAnimationControllerTest.cpp:
615         (WebKitTests::TEST):
616         * tests/CCLayerTreeHostTest.cpp:
617         (WTF::TestHooks::notifyAnimationFinished):
618         (WTF::TEST_F):
619         (WTF):
620         (CCLayerTreeHostTestAnimationFinishedEvents):
621         (WTF::CCLayerTreeHostTestAnimationFinishedEvents::CCLayerTreeHostTestAnimationFinishedEvents):
622         (WTF::CCLayerTreeHostTestAnimationFinishedEvents::beginTest):
623         (WTF::CCLayerTreeHostTestAnimationFinishedEvents::notifyAnimationFinished):
624         (WTF::CCLayerTreeHostTestAnimationFinishedEvents::afterTest):
625
626 2012-04-25  Ian Vollick  <vollick@chromium.org>
627
628         [chromium] Do not clobber synchronized start times.
629         https://bugs.webkit.org/show_bug.cgi?id=84605
630
631         Reviewed by James Robinson.
632
633         * tests/CCLayerAnimationControllerTest.cpp:
634         (WebKitTests):
635         (WebKitTests::TEST):
636
637 2012-04-25  Mark Pilgrim  <pilgrim@chromium.org>
638
639         [Chromium] Call actualMemoryUsageMB directly
640         https://bugs.webkit.org/show_bug.cgi?id=84837
641
642         Reviewed by Kentaro Hara.
643
644         Part of a refactoring series. See tracking bug 82948.
645
646         * src/PlatformSupport.cpp:
647         (WebCore):
648
649 2012-04-25  Alexis Menard  <alexis.menard@openbossa.org>
650
651         Rename CSSStyleSelector files to StyleResolver.
652         https://bugs.webkit.org/show_bug.cgi?id=84814
653
654         Reviewed by Antti Koivisto.
655
656         Rename CSSStyleSelector files to match the new class name StyleResolver.
657         Update the includes all over the code base to the new name.
658
659         * src/AutofillPopupMenuClient.cpp:
660         * src/WebViewImpl.cpp:
661
662 2012-04-25  Gavin Peters  <gavinp@chromium.org>
663
664         [Chromium] Fix some conditional compilation logic in Platform
665         https://bugs.webkit.org/show_bug.cgi?id=83798
666
667         Reviewed by Darin Fisher.
668
669         * tests/WebFrameTest.cpp:
670         (WebKit::TestReloadDoesntRedirectWebFrameClient::cancelledError):
671
672 2012-04-25  Yury Semikhatsky  <yurys@chromium.org>
673
674         Web Inspector: move HeapSnapshotLoader into a separate file
675         https://bugs.webkit.org/show_bug.cgi?id=84860
676
677         Extracted HeapSnapshotLoader into its own file.
678
679         Reviewed by Pavel Feldman.
680
681         * WebKit.gyp:
682
683 2012-04-25  Ian Vollick  <vollick@chromium.org>
684
685         [chromium] Animations waiting for a synchronized start time should never be marked finished.
686         https://bugs.webkit.org/show_bug.cgi?id=84519
687
688         Reviewed by James Robinson.
689
690         * tests/CCLayerAnimationControllerTest.cpp:
691         (WebKitTests::TEST):
692         (WebKitTests):
693
694 2012-04-25  Gavin Peters  <gavinp@chromium.org>
695
696         Move WebReferrerPolicy.h from WebKit to Platform
697         https://bugs.webkit.org/show_bug.cgi?id=84539
698
699         Reviewed by Adam Barth.
700
701         * WebKit.gyp:
702         * public/WebContextMenuData.h:
703         * public/WebFrame.h:
704         * public/WebReferrerPolicy.h:
705         * public/WebSecurityPolicy.h:
706         * public/platform/WebReferrerPolicy.h: Copied from Source/WebKit/chromium/public/WebReferrerPolicy.h.
707         * src/AssertMatchingEnums.cpp:
708
709 2012-04-24  Dana Jansens  <danakj@chromium.org>
710
711         [chromium] Unbounded draws should use clip to limit their damage to opaque tracking
712         https://bugs.webkit.org/show_bug.cgi?id=84494
713
714         Reviewed by Adrienne Walker.
715
716         * tests/PlatformContextSkiaTest.cpp:
717         (WebCore::TEST):
718         (WebCore):
719
720 2012-04-24  Dana Jansens  <danakj@chromium.org>
721
722         [chromium] Image masks are considered opaque incorrectly
723         https://bugs.webkit.org/show_bug.cgi?id=84275
724
725         Reviewed by Adrienne Walker.
726
727         * tests/PlatformContextSkiaTest.cpp:
728         (WebCore):
729         (WebCore::TEST):
730
731 2012-04-24  Alexis Menard  <alexis.menard@openbossa.org>
732
733         Replace occurences of style selector from variables and methods names by style resolver.
734         https://bugs.webkit.org/show_bug.cgi?id=84765
735
736         Reviewed by Andreas Kling.
737
738         Rename methods and variables to follow the new name StyleResolver. It requires to update the
739         local variables, methods parameters, and function names to match the new name and to remove
740         the concept of "selector" to avoid clashing with the CSS concept. The next and last patch
741         will be to rename CSSStyleSelector file and update the includes.
742
743         * src/AutofillPopupMenuClient.cpp:
744         (WebKit::AutofillPopupMenuClient::fontSelector):
745         (WebKit::AutofillPopupMenuClient::initialize):
746         * src/WebDevToolsAgentImpl.cpp:
747         (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth):
748         (WebKit::DeviceMetricsSupport::applySizeOverrideInternal):
749
750 2012-04-24  Kent Tamura  <tkent@chromium.org>
751
752         [Chromium] Implement WebCore::dateFormat{DayInMonth,Month,Year}Text()
753         https://bugs.webkit.org/show_bug.cgi?id=84683
754
755         Reviewed by Dimitri Glazkov.
756
757         * public/platform/WebLocalizedString.h:
758         Add DateFormat{DayInMonth,Month,Year}Label
759         * src/LocalizedStrings.cpp:
760         (WebCore::dateFormatYearText): Implemented.
761         (WebCore::dateFormatMonthText): ditto.
762         (WebCore::dateFormatDayInMonthText): ditto.
763
764 2012-04-24  Tommy Widenflycht  <tommyw@google.com>
765
766         MediaStream API: Create a new flag for PeerConnection
767         https://bugs.webkit.org/show_bug.cgi?id=84723
768
769         Reviewed by Dimitri Glazkov.
770
771         To allow Chrome to make the GetUserMedia functionality available by default we
772         need another flag for the PeerConnection related parts. This new flag is in
773         addition to the general media stream flag, and both need to be enabled for
774         PeerConnection object creation.
775
776         * public/WebRuntimeFeatures.h:
777         (WebRuntimeFeatures):
778         * src/WebRuntimeFeatures.cpp:
779         (WebKit::WebRuntimeFeatures::enablePeerConnection):
780         (WebKit):
781         (WebKit::WebRuntimeFeatures::isPeerConnectionEnabled):
782
783 2012-04-24  Sami Kyostila  <skyostil@chromium.org>
784
785         [chromium] Don't keep pointers to released layer tree
786         https://bugs.webkit.org/show_bug.cgi?id=84715
787
788         Reviewed by Adrienne Walker.
789
790         Added new unit test to check that we can keep scrolling even if the layer
791         tree is replaced from under us.
792
793         * tests/CCLayerTreeHostImplTest.cpp:
794         (WebKitTests::TEST_F):
795         (WebKitTests):
796
797 2012-04-24  Sheriff Bot  <webkit.review.bot@gmail.com>
798
799         Unreviewed.  Rolled DEPS.
800
801         * DEPS:
802
803 2012-04-24  Sheriff Bot  <webkit.review.bot@gmail.com>
804
805         Unreviewed, rolling out r115000.
806         http://trac.webkit.org/changeset/115000
807         https://bugs.webkit.org/show_bug.cgi?id=84703
808
809         Breaks webkit_unit_tests on Mac in Chromium:
810         http://build.chromium.org/p/chromium.webkit/builders/Webkit%20Mac10.6/builds/15157
811         (Requested by mnaganov on #webkit).
812
813         * tests/PlatformContextSkiaTest.cpp:
814         (WebCore):
815         (WebCore::TEST):
816
817 2012-04-23  Dana Jansens  <danakj@chromium.org>
818
819         [chromium] Image masks are considered opaque incorrectly
820         https://bugs.webkit.org/show_bug.cgi?id=84275
821
822         Reviewed by Adrienne Walker.
823
824         * tests/PlatformContextSkiaTest.cpp:
825         (WebCore):
826         (WebCore::TEST):
827
828 2012-04-23  Kent Tamura  <tkent@chromium.org>
829
830         Show the format indicator in a date field
831         https://bugs.webkit.org/show_bug.cgi?id=83872
832
833         Reviewed by Hajime Morita.
834
835         * src/LocalizedStrings.cpp:
836         (WebCore::dateFormatYearText): Added a stub.
837         (WebCore::dateFormatMonthText): ditto.
838         (WebCore::dateFormatDayInMonthText): ditto.
839
840 2012-04-23  Michael Nordman  <michaeln@google.com>
841
842         [chromium] DomStorage event handling mods.
843         https://bugs.webkit.org/show_bug.cgi?id=84387
844
845         Events are currently handled inconsistently. The dispatch of some events are
846         initiated from within webkit/webcore, the dispatch of other events are initiated
847         from the outside via the WebKit::WebStorageEventDispatcher interface. The existing
848         WebStorageEventDispatcher is not expressive enough to handle initiation all 
849         events from the outside. There's a chunk of nearly replicated code in there
850         that shouldn't be. The existing code has several FIXMEs related to making
851         this better.
852
853         The current state of things in webkit/webcore is also blocking development of some
854         overall performance improvements to chromium's implemention of this feature (getting
855         rid of sync ipcs for each access and adding a renderer-side caching layer).
856
857         To facilitate the perf improvements, this patch adds WebKit API to allow all
858         DomStorage events to be initiated from the outside. This is needed because
859         there will be an async latency between setting an item and receiving the
860         'oldValue' from the main browser process which is required to raise the
861         mutation event.
862
863         This is the first of a multi-sided sequence of patches to make this transition.
864         wkpatch 1: add the new wider WebKit API and impl
865         crpatch 2: start using the new wider WebKit API
866         wkpatch 3: cleanup, delete the old WebKit API and impl
867         xxxxxxx 4/5: cleanup, remove extra params from new API whose only purpose was to allow the transition
868
869         Reviewed by Dimitri Glazkov.
870
871         * public/WebStorageEventDispatcher.h: Add new API to dispatch events.
872         * public/WebStorageNamespace.h: Add new API to test for namespace equality.
873         * src/StorageAreaProxy.cpp:
874         (WebCore::StorageAreaProxy::dispatchLocalStorageEvent): implementation of the new API
875         (WebCore::StorageAreaProxy::dispatchSessionStorageEvent):  implementation of the new API
876         (WebCore::StorageAreaProxy::IsEventSource): a helper method
877         (WebCore::StorageAreaProxy::FindPageWithSessionStorageNamespace): a helper method
878         * src/StorageAreaProxy.h:
879         * src/StorageEventDispatcherImpl.cpp: added a FIXME comment to delete soon
880         * src/StorageNamespaceProxy.cpp:
881         (WebCore::StorageNamespaceProxy::IsSameNamespace): plumbing to call the new API
882         * src/StorageNamespaceProxy.h:
883         * src/WebStorageEventDispatcherImpl.cpp:
884         (WebKit::WebStorageEventDispatcher::dispatchLocalStorageEvent): plumbing to call the new impl
885         (WebKit::WebStorageEventDispatcher::dispatchSessionStorageEvent): plumbing to call the new impl
886         * src/WebStorageEventDispatcherImpl.h: added a FIXME comment to delete soon
887
888 2012-04-23  Kenneth Russell  <kbr@google.com>
889
890         Change ImageData to reference Uint8ClampedArray rather than CanvasPixelArray
891         https://bugs.webkit.org/show_bug.cgi?id=73011
892
893         Reviewed by Oliver Hunt.
894
895         * src/GraphicsContext3DChromium.cpp:
896         (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToImageData):
897         * src/WebViewImpl.cpp:
898         (WebKit::WebViewImpl::doPixelReadbackToCanvas):
899
900 2012-04-23  Kent Tamura  <tkent@chromium.org>
901
902         Crash when the page with a calendar picker is scrolled
903         https://bugs.webkit.org/show_bug.cgi?id=84287
904
905         Reviewed by Hajime Morita.
906
907         Use the same ownership model as WebPopupMenuImpl's.
908
909         * src/WebPagePopupImpl.cpp:
910         (WebKit::WebPagePopupImpl::close):
911         Clear m_widgetClient to avoid furthur access to it. deref instead of delete.
912         (WebKit::WebPagePopupImpl::closePopup):
913         Do not call closeWidgetSoon() if close() was already called.
914         (WebKit::WebPagePopup::create):
915         Add a reference. Add explanation of the ownership.
916         * src/WebPagePopupImpl.h:
917         (WebPagePopupImpl): Make this RefCounted.  Make the destuctor public.
918         * src/WebViewImpl.cpp:
919         (WebKit::WebViewImpl::WebViewImpl): No need to clear m_pagePopup explicitly.
920         (WebKit::WebViewImpl::openPagePopup): Need to use .get() because m_pagePopup is a RefPtr.
921         (WebKit::WebViewImpl::closePagePopup): ditto.
922         (WebKit::WebViewImpl::hidePopups): ditto.
923         * src/WebViewImpl.h: Make m_pagePopup a RefPtr.
924
925 2012-04-18  James Robinson  <jamesr@chromium.org>
926
927         [chromium] Use TextureLayerChromium for WebGL content instead of a dedicated layer type
928         https://bugs.webkit.org/show_bug.cgi?id=84311
929
930         Reviewed by Adrienne Walker.
931
932         * WebKit.gypi:
933         * src/WebExternalTextureLayer.cpp:
934         (WebKit::WebExternalTextureLayer::create):
935         * src/WebLayer.cpp:
936         * tests/WebGLLayerChromiumTest.cpp: Removed.
937         * tests/WebLayerTest.cpp:
938
939 2012-04-23  Alec Flett  <alecflett@chromium.org>
940
941         IndexedDB: remove IDB(Index|ObjectStore)BackendImpl::get/getKey for IDBKey
942         https://bugs.webkit.org/show_bug.cgi?id=84285
943
944         Reviewed by Dimitri Glazkov.
945
946         This is old code supporting IDBKey-based lookup, supplanted by
947         IDBKeyRange. Now that chromium IPC/proxy code has landed,
948         these functions can be removed.
949
950         * public/WebIDBIndex.h:
951         * public/WebIDBObjectStore.h:
952         * src/IDBIndexBackendProxy.cpp:
953         * src/IDBIndexBackendProxy.h:
954         (IDBIndexBackendProxy):
955         * src/IDBObjectStoreBackendProxy.cpp:
956         * src/IDBObjectStoreBackendProxy.h:
957         (IDBObjectStoreBackendProxy):
958         * src/WebIDBIndexImpl.cpp:
959         * src/WebIDBIndexImpl.h:
960         (WebIDBIndexImpl):
961         * src/WebIDBObjectStoreImpl.cpp:
962         * src/WebIDBObjectStoreImpl.h:
963         (WebIDBObjectStoreImpl):
964
965 2012-04-23  Eriq Augustine  <eaugusti@chromium.org>
966
967         Return value from executed script in Chromium.
968         https://bugs.webkit.org/show_bug.cgi?id=79851
969
970         Reviewed by Adam Barth.
971
972         Providing a variant of evaluateScriptInIsolatedWorld that
973         returns the value of the evaluated script.
974
975         * public/WebFrame.h:
976         (WebFrame):
977         * src/WebFrameImpl.cpp:
978         (WebKit::WebFrameImpl::executeScriptInIsolatedWorldAndReturnValues):
979         (WebKit):
980         * src/WebFrameImpl.h:
981         (WebKit):
982         (WebFrameImpl):
983
984 2012-04-23  Raymond Toy  <rtoy@google.com>
985
986         Move AudioDestinationChromium FIFO class to its own class.
987         https://bugs.webkit.org/show_bug.cgi?id=84058
988
989         Reviewed by Chris Rogers.
990
991         Remove private FIFO class and use new AudioPullFIFO class.
992         * src/AudioDestinationChromium.cpp:
993         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
994         * src/AudioDestinationChromium.h:
995         (AudioDestinationChromium):
996
997 2012-04-23  Dmitry Titov  <dimich@chromium.org>
998
999         Chromium roll 133422:133506.
1000         Not reviewed.
1001
1002         * DEPS:
1003
1004 2012-04-23  Ian Vollick  <vollick@chromium.org>
1005
1006         [chromium] Properly ignore unsupported animation directions.
1007         https://bugs.webkit.org/show_bug.cgi?id=84599
1008
1009         Reviewed by Adrienne Walker.
1010
1011         * tests/CCLayerAnimationControllerTest.cpp:
1012         (WebKitTests::TEST):
1013         (WebKitTests):
1014
1015 2012-04-23  Ian Vollick  <vollick@chromium.org>
1016
1017         [chromium] When prepareToDraw fails due to animation checkerboard, we need to call setNeedsCommit
1018         https://bugs.webkit.org/show_bug.cgi?id=84520
1019
1020         Reviewed by Adrienne Walker.
1021
1022         * tests/CCLayerTreeHostImplTest.cpp:
1023         (WebKitTests::TEST_F):
1024
1025 2012-04-23  Mikhail Naganov  <mnaganov@chromium.org>
1026
1027         Chromium roll from r133348 to r133422.
1028
1029         * DEPS:
1030
1031 2012-04-23  Gavin Peters  <gavinp@chromium.org>
1032
1033         Move ReferrerPolicy out of SecurityPolicy class into its own header in platform.
1034         https://bugs.webkit.org/show_bug.cgi?id=84516
1035
1036
1037         Reviewed by Adam Barth.
1038
1039         No change in behaviour; same enum, different class.
1040
1041         * src/AssertMatchingEnums.cpp:
1042         * src/WebSecurityPolicy.cpp:
1043         (WebKit::WebSecurityPolicy::generateReferrerHeader):
1044
1045 2012-04-22  Andreas Kling  <kling@webkit.org>
1046
1047         Optimize Element attribute storage for the common case (no Attr objects.)
1048         <http://webkit.org/b/83440>
1049
1050         Reviewed by Antti Koivisto.
1051
1052         Remove the WebNamedNodeMap and WebAttribute API classes since they are no
1053         longer needed by chromium after <http://crrev.com/133299>.
1054
1055         * WebKit.gyp:
1056         * public/WebAttribute.h: Removed.
1057         * public/WebElement.h:
1058         * public/WebNamedNodeMap.h: Removed.
1059         * src/WebAttribute.cpp: Removed.
1060         * src/WebElement.cpp:
1061         * src/WebNamedNodeMap.cpp: Removed.
1062
1063 2012-04-22  Mikhail Naganov  <mnaganov@chromium.org>
1064
1065         [Chromium] Fix clang build after r114827, unreviewed.
1066
1067         * tests/LayerTextureUpdaterTest.cpp:
1068         (WebCore::TEST):
1069
1070 2012-04-22  Shawn Singh  <shawnsingh@chromium.org>
1071
1072         [chromium] Damage Tracker needs to use CCMathUtil transforms
1073         https://bugs.webkit.org/show_bug.cgi?id=84070
1074
1075         Reviewed by Adrienne Walker.
1076
1077         * tests/CCDamageTrackerTest.cpp:
1078         (WebKitTests::TEST_F):
1079         (WebKitTests):
1080
1081 2012-04-21  Ryosuke Niwa  <rniwa@webkit.org>
1082
1083         Chromium roll attempt from r133173 to r133348.
1084
1085         * DEPS:
1086
1087 2012-04-20  Adrienne Walker  <enne@google.com>
1088
1089         [chromium] Refactor opaque content transform out of Skia context
1090         https://bugs.webkit.org/show_bug.cgi?id=83608
1091
1092         Reviewed by James Robinson.
1093
1094         Add tests for opaque tracking in LayerTextureUpdater, since the
1095         transform logic has moved there.
1096
1097         * tests/CCTiledLayerTestCommon.cpp:
1098         (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate):
1099         * tests/CCTiledLayerTestCommon.h:
1100         (FakeLayerTextureUpdater):
1101         * tests/LayerTextureUpdaterTest.cpp:
1102         (WebCore::PaintFillPartialOpaque::PaintFillPartialOpaque):
1103         (PaintFillPartialOpaque):
1104         (WebCore::PaintFillPartialOpaque::operator()):
1105         (WebCore):
1106         (WebCore::TEST):
1107         * tests/PlatformContextSkiaTest.cpp:
1108         (WebCore::TEST):
1109
1110 2012-04-20  Dana Jansens  <danakj@chromium.org>
1111
1112         [chromium] Remove special case for recreating layers during sync
1113         https://bugs.webkit.org/show_bug.cgi?id=84458
1114
1115         Reviewed by James Robinson.
1116
1117         * tests/TreeSynchronizerTest.cpp:
1118
1119 2012-04-20  Alec Flett  <alecflett@chromium.org>
1120
1121         IndexedDB: Support get/getKey(keyRange)
1122         https://bugs.webkit.org/show_bug.cgi?id=83638
1123
1124         Reviewed by Ojan Vafai.
1125
1126         Hook up WebKit API to the new get/getKey implementations.
1127
1128         * src/IDBIndexBackendProxy.cpp:
1129         (WebKit::IDBIndexBackendProxy::get):
1130         (WebKit):
1131         (WebKit::IDBIndexBackendProxy::getKey):
1132         * src/IDBIndexBackendProxy.h:
1133         (IDBIndexBackendProxy):
1134         * src/WebIDBIndexImpl.cpp:
1135         (WebKit::WebIDBIndexImpl::getObject):
1136         (WebKit::WebIDBIndexImpl::getKey):
1137         * src/WebIDBObjectStoreImpl.cpp:
1138         (WebKit::WebIDBObjectStoreImpl::get):
1139
1140 2012-04-20  Brady Eidson  <beidson@apple.com>
1141
1142         https://bugs.webkit.org/show_bug.cgi?id=84512
1143         Repurpose ActiveDOMObject::WillShowDialog to WillDeferLoading
1144
1145         Reviewed by Eric Carlson.
1146
1147         PageGroupLoadDeferrer's don't take a ReasonForSuspension argument anymore;
1148         They just use WillDeferLoading by default.
1149
1150         * src/WebViewImpl.cpp:
1151         (WebKit::WebView::willEnterModalLoop):
1152
1153 2012-04-20  James Robinson  <jamesr@chromium.org>
1154
1155         [chromium] Plumb a compositor surface ready notification through to the threaded compositor
1156         https://bugs.webkit.org/show_bug.cgi?id=84305
1157
1158         Reviewed by Adrienne Walker.
1159
1160         Adds a notification to WebWidget for when the compositor surface is ready to use. This exists to fix a race
1161         condition when WebKit requires that we enter compositing mode but we haven't completed initialization of the
1162         native window/etc backing the WebWidget, and we can't block for this initialization to complete without inducing
1163         deadlocks. In this situation, we proceed as usual except that we can't attempt to use the compositor context or
1164         it will fail.
1165
1166         * public/WebWidget.h:
1167         (WebWidget):
1168         * src/WebLayerTreeView.cpp:
1169         (WebKit::WebLayerTreeView::setSurfaceReady):
1170         (WebKit):
1171         * src/WebPagePopupImpl.cpp:
1172         (WebKit::WebPagePopupImpl::setCompositorSurfaceReady):
1173         (WebKit):
1174         * src/WebPagePopupImpl.h:
1175         (WebPagePopupImpl):
1176         * src/WebPopupMenuImpl.cpp:
1177         (WebKit::WebPopupMenuImpl::setCompositorSurfaceReady):
1178         (WebKit):
1179         * src/WebPopupMenuImpl.h:
1180         * src/WebViewImpl.cpp:
1181         (WebKit::WebViewImpl::setCompositorSurfaceReady):
1182         (WebKit):
1183         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1184         * src/WebViewImpl.h:
1185         (WebViewImpl):
1186
1187 2012-04-20  Mark Pilgrim  <pilgrim@chromium.org>
1188
1189         [Chromium] Call memoryUsageMB directly
1190         https://bugs.webkit.org/show_bug.cgi?id=84376
1191
1192         Reviewed by Kentaro Hara.
1193
1194         Part of a refactoring series. See tracking bug 82948.
1195
1196         * src/PlatformSupport.cpp:
1197         (WebCore):
1198
1199 2012-04-20  Adrienne Walker  <enne@google.com>
1200
1201         [chromium] Clip TransparencyWin to prevent OOM from large Skia canvas
1202         https://bugs.webkit.org/show_bug.cgi?id=84289
1203
1204         Reviewed by James Robinson.
1205
1206         Add a test that would OOM if the layer wasn't clipped. Also, verify
1207         that clipping the canvas doesn't shift pixels around incorrectly.
1208
1209         * tests/TransparencyWinTest.cpp:
1210         (WebCore::testClippedLayerKeepTransform):
1211         (WebCore):
1212         (WebCore::TEST):
1213
1214 2012-04-20  Brady Eidson  <beidson@apple.com>
1215
1216         https://bugs.webkit.org/show_bug.cgi?id=84490
1217         PageGroupLoadDeferrer needs to take a ReasonForSuspension argument
1218
1219         Reviewed by Anders Carlsson.
1220
1221         * src/WebViewImpl.cpp:
1222         (WebKit::WebView::willEnterModalLoop): Pass along ActiveDOMObject::WillShowDialog, which used
1223           to be the default.
1224
1225 2012-04-20  James Robinson  <jamesr@chromium.org>
1226
1227         Avoid synchronously recalculating the nonFastScrollableRegion when the ScrollableArea set changes
1228         https://bugs.webkit.org/show_bug.cgi?id=84470
1229
1230         Reviewed by Anders Carlsson.
1231
1232         Trigger a layout when a plugin becomes or stops being scrollable so the nonFastScrollableRegion
1233         can be updated.
1234
1235         * src/ScrollbarGroup.cpp:
1236         (WebKit::ScrollbarGroup::scrollbarCreated):
1237         (WebKit::ScrollbarGroup::scrollbarDestroyed):
1238
1239 2012-04-20  Dana Jansens  <danakj@chromium.org>
1240
1241         [chromium] Some filters require inflating damage rect in CCDamageTracker
1242         https://bugs.webkit.org/show_bug.cgi?id=84373
1243
1244         Reviewed by James Robinson.
1245
1246         * tests/CCDamageTrackerTest.cpp:
1247         (WebKitTests::emulateDrawingOneFrame):
1248         (WebKitTests::TEST_F):
1249         (WebKitTests):
1250
1251 2012-04-20  Sami Kyostila  <skyostil@chromium.org>
1252
1253         [chromium] Don't crash when scrolling empty layer tree
1254         https://bugs.webkit.org/show_bug.cgi?id=84455
1255
1256         Reviewed by James Robinson.
1257
1258         Try to scroll an empty layer tree.
1259
1260         * tests/CCLayerTreeHostImplTest.cpp:
1261         (WebKitTests::TEST_F):
1262         (WebKitTests):
1263
1264 2012-04-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1265
1266         Unreviewed.  Rolled DEPS.
1267
1268         * DEPS:
1269
1270 2012-04-20  'Pavel Feldman'  <pfeldman@chromium.org>
1271
1272         Not reviewed: fixed chromium sanity tests for inspector via assigning last path component
1273         to entire url for parsed urls with invalid specs.
1274
1275         * src/js/Tests.js:
1276         (.TestSuite.prototype._scriptsAreParsed):
1277
1278 2012-04-20  Mark Pilgrim  <pilgrim@chromium.org>
1279
1280         [Chromium] Call cacheMetadata directly
1281         https://bugs.webkit.org/show_bug.cgi?id=84415
1282
1283         Reviewed by Kentaro Hara.
1284
1285         Part of a refactoring series. See tracking bug 82948.
1286
1287         * src/PlatformSupport.cpp:
1288         (WebCore):
1289
1290 2012-04-20  Mark Pilgrim  <pilgrim@chromium.org>
1291
1292         [Chromium] Call stopSharedTimer directly
1293         https://bugs.webkit.org/show_bug.cgi?id=84418
1294
1295         Reviewed by Kentaro Hara.
1296
1297         Part of a refactoring series. See tracking bug 82948.
1298
1299         * src/PlatformSupport.cpp:
1300         (WebCore):
1301
1302 2012-04-19  Jeremy Mao  <yujie.mao@intel.com>
1303
1304         Media Stream API: Piece of code cleanup for the chromium port
1305         https://bugs.webkit.org/show_bug.cgi?id=84328
1306
1307         Reviewed by Kent Tamura.
1308
1309         Remove some deprecated interfaces.
1310
1311         No new tests. No behavior changes.
1312
1313         * public/WebUserMediaClient.h:
1314         Remove deprecated requestUserMedia interface.
1315         * public/WebUserMediaRequest.h:
1316         Remove deprecated requestSucceeded interface.
1317         * src/UserMediaClientImpl.cpp:
1318         (WebKit::UserMediaClientImpl::requestUserMedia):
1319         Use the requestUserMedia split sources implementation.
1320         * src/WebUserMediaRequest.cpp:
1321         Remove deprecated requestSucceeded implementation.
1322
1323 2012-04-19  Joshua Bell  <jsbell@chromium.org>
1324
1325         [Chromium] IndexedDB: Prep for changing keyPath return type
1326         https://bugs.webkit.org/show_bug.cgi?id=84208
1327
1328         To introduce Array-type key paths (see http://webkit.org/b/84207) the keyPath() accessors
1329         on WebIDBObjectStore and WebIDBIndex need to change return type. To do so requires temporarily
1330         changing the method names to keyPathString with compatibility shims (on the WebKit side)
1331         then switching the implementation in the Chromium port in a follow-up patch.
1332
1333         Reviewed by Kent Tamura.
1334
1335         * public/WebIDBIndex.h:
1336         (WebKit::WebIDBIndex::keyPath):
1337         (WebKit::WebIDBIndex::keyPathString):
1338         * public/WebIDBObjectStore.h:
1339         (WebKit::WebIDBObjectStore::keyPath):
1340         (WebKit::WebIDBObjectStore::keyPathString):
1341         * src/WebIDBIndexImpl.cpp:
1342         (WebKit::WebIDBIndexImpl::keyPathString):
1343         * src/WebIDBIndexImpl.h:
1344         (WebIDBIndexImpl):
1345         * src/WebIDBObjectStoreImpl.cpp:
1346         (WebKit::WebIDBObjectStoreImpl::keyPathString):
1347         * src/WebIDBObjectStoreImpl.h:
1348         (WebIDBObjectStoreImpl):
1349
1350 2012-04-19  Andreas Kling  <kling@webkit.org>
1351
1352         [chromium] Add simplified API for iterating over a WebElement's attributes.
1353         <http://webkit.org/b/84183>
1354
1355         Reviewed by Dimitri Glazkov.
1356
1357         Add attributeCount(), attributeLocalName(index) and attributeValue(index) to the
1358         WebElement API so that call sites currently using WebNamedNodeMap can be
1359         converted, which will ultimately allow us to refactor WebCore::Attribute
1360         on <http://webkit.org/b/83440>.
1361
1362         * public/WebElement.h:
1363         * src/WebElement.cpp:
1364         (WebKit::WebElement::attributeCount):
1365         (WebKit::WebElement::attributeLocalName):
1366         (WebKit::WebElement::attributeValue):
1367
1368 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
1369
1370         [Chromium] Call signedPublicKeyAndChallengeString directly
1371         https://bugs.webkit.org/show_bug.cgi?id=84372
1372
1373         Reviewed by Kentaro Hara.
1374
1375         Part of a refactoring series. See tracking bug 82948.
1376
1377         * src/PlatformSupport.cpp:
1378         (WebCore):
1379
1380 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
1381
1382         [Chromium] Call audioHardwareBufferSize directly
1383         https://bugs.webkit.org/show_bug.cgi?id=84370
1384
1385         Reviewed by Kentaro Hara.
1386
1387         Part of a refactoring series. See tracking bug 82948.
1388
1389         * src/AudioDestinationChromium.cpp:
1390         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
1391
1392 2012-04-19  Sami Kyostila  <skyostil@chromium.org>
1393
1394         [chromium] Add tests for scrolling non-root layers in the compositor thread
1395         https://bugs.webkit.org/show_bug.cgi?id=73350
1396
1397         Reviewed by James Robinson.
1398
1399         * src/WebContentLayerImpl.cpp:
1400         (WebKit::WebContentLayerImpl::didScroll):
1401         (WebKit):
1402         * src/WebContentLayerImpl.h:
1403         (WebContentLayerImpl):
1404         * tests/CCLayerImplTest.cpp:
1405         (WebCore::TEST):
1406         (WebCore):
1407         * tests/CCLayerTreeHostImplTest.cpp:
1408         (WebKitTests::CCLayerTreeHostImplTest::createScrollableLayer):
1409         (CCLayerTreeHostImplTest):
1410         (WebKitTests::CCLayerTreeHostImplTest::initializeLayerRendererAndDrawFrame):
1411         (WebKitTests::TEST_F):
1412         (WebKitTests):
1413         * tests/CCLayerTreeHostTest.cpp:
1414         (WTF::TestOpacityChangeLayerDelegate::didScroll):
1415         (WTF::MockContentLayerDelegate::paintContents):
1416         (WTF::MockContentLayerDelegate::didScroll):
1417         (CCLayerTreeHostTestScrollChildLayer):
1418         (WTF::CCLayerTreeHostTestScrollChildLayer::CCLayerTreeHostTestScrollChildLayer):
1419         (WTF::CCLayerTreeHostTestScrollChildLayer::beginTest):
1420         (WTF::CCLayerTreeHostTestScrollChildLayer::applyScrollAndScale):
1421         (WTF::CCLayerTreeHostTestScrollChildLayer::beginCommitOnCCThread):
1422         (WTF::CCLayerTreeHostTestScrollChildLayer::drawLayersOnCCThread):
1423         (WTF::CCLayerTreeHostTestScrollChildLayer::afterTest):
1424         (WTF):
1425         (WTF::TEST_F):
1426
1427 2012-04-19  Alec Flett  <alecflett@chromium.org>
1428
1429         IndexedDB: Stub out IDBCursor.advance for landing
1430         https://bugs.webkit.org/show_bug.cgi?id=84280
1431
1432         Reviewed by Dimitri Glazkov.
1433
1434         Just a stub method so it can be implemented on chromium
1435
1436         * public/WebIDBCursor.h:
1437         (WebKit::WebIDBCursor::advance):
1438         * src/WebIDBCursorImpl.cpp:
1439         (WebKit::WebIDBCursorImpl::advance):
1440         (WebKit):
1441         * src/WebIDBCursorImpl.h:
1442         (WebIDBCursorImpl):
1443
1444 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
1445
1446         [Chromium] Call mimeRegistry directly
1447         https://bugs.webkit.org/show_bug.cgi?id=84334
1448
1449         Reviewed by Kentaro Hara.
1450
1451         Part of a refactoring series. See tracking bug 82948.
1452
1453         * src/PlatformSupport.cpp:
1454         (WebCore::PlatformSupport::layoutTestMode):
1455
1456 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
1457
1458         [Chromium] Call sampleGamepads directly
1459         https://bugs.webkit.org/show_bug.cgi?id=84339
1460
1461         Reviewed by Kentaro Hara.
1462
1463         Part of a refactoring series. See tracking bug 82948.
1464
1465         * src/PlatformSupport.cpp:
1466         (WebCore::PlatformSupport::injectIDBKeyIntoSerializedValue):
1467
1468 2012-04-19  Mark Pilgrim  <pilgrim@chromium.org>
1469
1470         [Chromium] Call audioHardwareSampleRate directly
1471         https://bugs.webkit.org/show_bug.cgi?id=84335
1472
1473         Reviewed by Kentaro Hara.
1474
1475         Part of a refactoring series. See tracking bug 82948.
1476
1477         * src/AudioDestinationChromium.cpp:
1478         (WebCore::AudioDestination::hardwareSampleRate):
1479
1480 2012-04-18  Nico Weber  <thakis@chromium.org>
1481
1482         [chromium/mac] Fix build.
1483         https://bugs.webkit.org/show_bug.cgi?id=84314
1484
1485         Unreviewed, build fix after http://trac.webkit.org/changeset/114604
1486
1487         * src/WebPluginContainerImpl.cpp:
1488         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
1489
1490 2012-04-18  Hironori Bono  <hbono@chromium.org>
1491
1492         Split SpellChecker::didCheck() to SpellChecker::didCheckSucceeded() and SpellChecker::didCheckCanceled()
1493         https://bugs.webkit.org/show_bug.cgi?id=83748
1494
1495         Reviewed by Ryosuke Niwa.
1496
1497         This change adds a new API WebTextCheckingCompletion::didCancelCheckingText(),
1498         which encapsulates SpellChecker::didCheckCanceled() and implements it so
1499         Chromium can use it.
1500
1501         * public/WebTextCheckingCompletion.h:
1502         (WebKit::WebTextCheckingCompletion::didCancelCheckingText):
1503         * src/WebTextCheckingCompletionImpl.cpp:
1504         (WebKit::WebTextCheckingCompletionImpl::didFinishCheckingText):
1505         (WebKit):
1506         (WebKit::WebTextCheckingCompletionImpl::didCancelCheckingText):
1507         * src/WebTextCheckingCompletionImpl.h:
1508         (WebTextCheckingCompletionImpl):
1509
1510 2012-04-16  James Robinson  <jamesr@chromium.org>
1511
1512         [chromium] Convert WebPluginContainerImpl over to use WebExternalTextureLayer
1513         https://bugs.webkit.org/show_bug.cgi?id=84120
1514
1515         Reviewed by Adrienne Walker.
1516
1517         This ports WebPluginContainerImpl over to use WebExternalTextureLayer instead of directly using a *LayerChromium
1518         type for better layering and code sharing. The changes to WebPluginContainerImpl are fairly straightforward.  In
1519         addition to renames I also moved some state tracking into WPCI instead of having it exposed on the interface. I
1520         also removed the WebExternalTextureLayerImpl intermediate class since it wasn't doing anything useful.
1521
1522         * WebKit.gyp:
1523         * WebKit.gypi:
1524         * src/WebContentLayer.cpp:
1525         * src/WebExternalTextureLayer.cpp:
1526         (WebKit::WebExternalTextureLayer::create):
1527         (WebKit::WebExternalTextureLayer::setTextureId):
1528         (WebKit::WebExternalTextureLayer::setIOSurfaceProperties):
1529         (WebKit::WebExternalTextureLayer::setFlipped):
1530         (WebKit::WebExternalTextureLayer::flipped):
1531         (WebKit::WebExternalTextureLayer::setUVRect):
1532         (WebKit::WebExternalTextureLayer::uvRect):
1533         (WebKit::WebExternalTextureLayer::WebExternalTextureLayer):
1534         * src/WebExternalTextureLayerImpl.cpp: Removed.
1535         * src/WebExternalTextureLayerImpl.h: Removed.
1536         * src/WebLayer.cpp:
1537         (WebKit::WebLayer::invalidateRect):
1538         (WebKit):
1539         (WebKit::WebLayer::invalidate):
1540         * src/WebPluginContainerImpl.cpp:
1541         (WebKit::WebPluginContainerImpl::setBackingTextureId):
1542         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
1543         (WebKit::WebPluginContainerImpl::commitBackingTexture):
1544         (WebKit::WebPluginContainerImpl::setOpaque):
1545         (WebKit::WebPluginContainerImpl::platformLayer):
1546         (WebKit::WebPluginContainerImpl::WebPluginContainerImpl):
1547         * src/WebPluginContainerImpl.h:
1548         (WebCore):
1549         (WebPluginContainerImpl):
1550         * tests/WebExternalTextureLayerImplTest.cpp: Removed.
1551         * tests/WebLayerTest.cpp:
1552
1553 2012-04-18  Dana Jansens  <danakj@chromium.org>
1554
1555         [chromium] Simplify occlusion tracker API by passing layer iterator data
1556         https://bugs.webkit.org/show_bug.cgi?id=84088
1557
1558         Reviewed by Adrienne Walker.
1559
1560         * tests/CCOcclusionTrackerTest.cpp:
1561         (CCOcclusionTrackerTestMainThreadTypes):
1562         (CCOcclusionTrackerTestImplThreadTypes):
1563         (WebKitTests::CCOcclusionTrackerTest::CCOcclusionTrackerTest):
1564         (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):
1565         (CCOcclusionTrackerTest):
1566         (WebKitTests::CCOcclusionTrackerTest::enterLayer):
1567         (WebKitTests::CCOcclusionTrackerTest::leaveLayer):
1568         (WebKitTests::CCOcclusionTrackerTest::visitLayer):
1569         (WebKitTests::CCOcclusionTrackerTest::enterContributingSurface):
1570         (WebKitTests::CCOcclusionTrackerTest::leaveContributingSurface):
1571         (WebKitTests::CCOcclusionTrackerTest::visitContributingSurface):
1572         (WebKitTests::CCOcclusionTrackerTest::resetLayerIterator):
1573         (WebKitTests::CCOcclusionTrackerTestIdentityTransforms::runMyTest):
1574         (WebKitTests::CCOcclusionTrackerTestRotatedChild::runMyTest):
1575         (WebKitTests::CCOcclusionTrackerTestTranslatedChild::runMyTest):
1576         (WebKitTests::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
1577         (WebKitTests::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
1578         (WebKitTests::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
1579         (WebKitTests::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
1580         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
1581         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
1582         (WebKitTests::CCOcclusionTrackerTestFilters::runMyTest):
1583         (WebKitTests::CCOcclusionTrackerTestReplicaDoesOcclude::runMyTest):
1584         (WebKitTests::CCOcclusionTrackerTestReplicaWithClipping::runMyTest):
1585         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOutsideChild::runMyTest):
1586         (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOutsideChild::runMyTest):
1587         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOverChild::runMyTest):
1588         (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOverChild::runMyTest):
1589         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectPartlyOverChild::runMyTest):
1590         (WebKitTests::CCOcclusionTrackerTestScreenScissorRectPartlyOverChild::runMyTest):
1591         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectOverNothing::runMyTest):
1592         (WebKitTests::CCOcclusionTrackerTestScreenScissorRectOverNothing::runMyTest):
1593         (WebKitTests::CCOcclusionTrackerTestLayerScissorRectForLayerOffOrigin::runMyTest):
1594         (WebKitTests::CCOcclusionTrackerTestOpaqueContentsRegionEmpty::runMyTest):
1595         (WebKitTests::CCOcclusionTrackerTestOpaqueContentsRegionNonEmpty::runMyTest):
1596         (WebKitTests::CCOcclusionTrackerTest3dTransform::runMyTest):
1597         (WebKitTests::CCOcclusionTrackerTestPerspectiveTransform::runMyTest):
1598         (WebKitTests::CCOcclusionTrackerTestPerspectiveTransformBehindCamera::runMyTest):
1599         (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest):
1600         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
1601         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
1602         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
1603         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
1604         (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesToParent::runMyTest):
1605         (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest):
1606         (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest):
1607         (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest):
1608         (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest):
1609         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
1610         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest):
1611         * tests/CCQuadCullerTest.cpp:
1612         (WebCore):
1613         (WebCore::makeLayer):
1614         (WebCore::appendQuads):
1615         (WebCore::TEST):
1616
1617 2012-04-18  James Robinson  <jamesr@chromium.org>
1618
1619         [chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initialization before our surface is available
1620         https://bugs.webkit.org/show_bug.cgi?id=84301
1621
1622         Reviewed by Adrienne Walker.
1623
1624         Update unit tests for new canBeginFrame bit.
1625
1626         * tests/CCSchedulerStateMachineTest.cpp:
1627         (WebCore::TEST):
1628         (WebCore):
1629         * tests/CCSchedulerTest.cpp:
1630         (WebKitTests::TEST):
1631
1632 2012-04-18  David Reveman  <reveman@chromium.org>
1633
1634         [Chromium] Solid color layers should respect opacity value.
1635         https://bugs.webkit.org/show_bug.cgi?id=84197
1636
1637         Reviewed by Adrienne Walker.
1638
1639         * tests/CCSolidColorLayerImplTest.cpp:
1640         (CCLayerTestCommon::TEST):
1641         (CCLayerTestCommon):
1642
1643 2012-04-18  Mark Pilgrim  <pilgrim@chromium.org>
1644
1645         [Chromium] Call prefetchDNS directly
1646         https://bugs.webkit.org/show_bug.cgi?id=84262
1647
1648         Reviewed by Kentaro Hara.
1649
1650         Part of a series, see tracking bug 82948.
1651
1652         * src/PlatformSupport.cpp:
1653         (WebCore):
1654
1655 2012-04-18  Myles Maxfield  <mmaxfield@google.com>
1656
1657         Chromium compile of WebDatabase.cpp fails without SQL_DATABASE
1658         https://bugs.webkit.org/show_bug.cgi?id=84212
1659
1660         Reviewed by Kentaro Hara.
1661
1662         * src/WebDatabase.cpp:
1663         (WebCore::AbstractDatabase::isSyncDatabase):
1664
1665 2012-04-18  Keishi Hattori  <keishi@webkit.org>
1666
1667         [chromium] Turn on ENABLE_DATALIST for chromium
1668         https://bugs.webkit.org/show_bug.cgi?id=84118
1669
1670         Reviewed by Kent Tamura.
1671
1672         * features.gypi: Turn on ENABLE_DATALIST.
1673         * src/WebInputElement.cpp: Touched to avoid build issues. No code change.
1674
1675 2012-04-18  Alexander Pavlov  <apavlov@chromium.org>
1676
1677         [Chromium] REGRESSION: Popup shrinks because of autocomplete
1678         https://bugs.webkit.org/show_bug.cgi?id=84139
1679         http://code.google.com/p/chromium/issues/detail?id=123432
1680
1681         Do not use the PopupContainer's frameRect() to update the popup client's window rect,
1682         since PopupContainer is always positioned at (0, 0) inside the client's window rect,
1683         and the latter one is positioned relative to the screen origin.
1684
1685         Reviewed by Kent Tamura.
1686
1687         * src/WebViewImpl.cpp:
1688         (WebKit::WebViewImpl::refreshAutofillPopup):
1689
1690 2012-04-17  Rafael Weinstein  <rafaelw@chromium.org>
1691
1692         [MutationObservers] enable V8RecursionScope debug ASSERT()
1693         https://bugs.webkit.org/show_bug.cgi?id=84094
1694
1695         Reviewed by Ojan Vafai.
1696
1697         This patch enables the ASSERT() which enforces usage of
1698         V8RecursionScope.
1699
1700         * src/WebKit.cpp:
1701         (WebKit::assertV8RecursionScope):
1702
1703 2012-04-17  Dana Jansens  <danakj@chromium.org>
1704
1705         [chromium] Fix gyp for WebFilterOperation.h and WebFilterOperations.h
1706         https://bugs.webkit.org/show_bug.cgi?id=84182
1707
1708         Reviewed by James Robinson.
1709
1710         * WebKit.gyp:
1711
1712 2012-04-17  David Reveman  <reveman@chromium.org>
1713
1714         [Chromium] Add TextureUploader which allows us to use persistent GC3D state for texture uploads.
1715         https://bugs.webkit.org/show_bug.cgi?id=83972
1716
1717         Reviewed by James Robinson.
1718
1719         * tests/CCTiledLayerTestCommon.h:
1720         (FakeTextureUploader):
1721         (WebKitTests::FakeTextureUploader::uploadTexture):
1722         (WebKitTests):
1723         * tests/Canvas2DLayerChromiumTest.cpp:
1724         * tests/TiledLayerChromiumTest.cpp:
1725         (WTF::TEST):
1726
1727 2012-04-17  Alec Flett  <alecflett@chromium.org>
1728
1729         IndexedDB: stub getKey/getObject interfaces for IDBKeyRange
1730         https://bugs.webkit.org/show_bug.cgi?id=84089
1731
1732         Reviewed by Dimitri Glazkov.
1733
1734         Added stub methods on WebIDBIndex.h to cleanly land 
1735         https://bugs.webkit.org/show_bug.cgi?id=83638
1736
1737         * public/WebIDBIndex.h:
1738         (WebKit::WebIDBIndex::getObject):
1739         (WebKit::WebIDBIndex::getKey):
1740         * src/WebIDBIndexImpl.cpp:
1741         (WebKit::WebIDBIndexImpl::getObject):
1742         (WebKit):
1743         (WebKit::WebIDBIndexImpl::getKey):
1744         * src/WebIDBIndexImpl.h:
1745         (WebIDBIndexImpl):
1746
1747 2012-04-17  Aaron Colwell  <acolwell@chromium.org>
1748
1749         Add sourceAddId() & sourceRemoveId() stubs for Chromium.
1750         These are needed to bring the Media Source implementation 
1751         up to date with the new 0.4 version of the Media Source spec.
1752         http://html5-mediasource-api.googlecode.com/svn/tags/0.4/draft-spec/mediasource-draft-spec.html
1753         https://bugs.webkit.org/show_bug.cgi?id=83616
1754
1755         Reviewed by Eric Carlson, Darin Fisher.
1756
1757         * public/WebMediaPlayer.h:
1758         (WebKit::WebMediaPlayer::sourceAddId):
1759         (WebKit::WebMediaPlayer::sourceRemoveId):
1760         * src/AssertMatchingEnums.cpp:
1761         * src/WebMediaPlayerClientImpl.cpp:
1762         (WebKit::WebMediaPlayerClientImpl::sourceAddId):
1763         (WebKit):
1764         (WebKit::WebMediaPlayerClientImpl::sourceRemoveId):
1765         * src/WebMediaPlayerClientImpl.h:
1766         (WebMediaPlayerClientImpl):
1767
1768 2012-04-17  Kent Tamura  <tkent@chromium.org>
1769
1770         [Chromium] Calendar Picker: Popup position is wrong when there are
1771         no enough space below the target date field
1772         https://bugs.webkit.org/show_bug.cgi?id=84007
1773
1774         Reviewed by Hajime Morita.
1775
1776         The popup was detached from the origin element because
1777         calendarPicker.js resizes its window. To fix this bug, we move the
1778         window position vertically when it is resized.
1779
1780         No new tests. This is not testable in WebKit.
1781
1782         * src/WebPagePopupImpl.cpp:
1783         (WebKit::PagePopupChromeClient::setWindowRect):
1784         If this request is just a resize and m_isPutAboveOrigin is true,
1785         update the vertical position so that the popup attaches to the
1786         origin rectangle.
1787         (WebKit::WebPagePopupImpl::WebPagePopupImpl):
1788         Initialize m_isPutAboveOrigin with false.
1789         (WebKit::WebPagePopupImpl::init): Set m_isPutAboveOrigin true.
1790         * src/WebPagePopupImpl.h:
1791         (WebPagePopupImpl): Add m_isPutAboveOrigin.
1792
1793 2012-04-16  Kent Tamura  <tkent@chromium.org>
1794
1795         Rename LocalizedNumberICU.h to ICULocale.h
1796         https://bugs.webkit.org/show_bug.cgi?id=84119
1797
1798         Reviewed by Kentaro Hara.
1799
1800         * tests/LocalizedNumberICUTest.cpp: Rename LocalizedNumberICU.h to ICULocale.h
1801
1802 2012-04-16  Dana Jansens  <danakj@chromium.org>
1803
1804         [chromium] Expose compositor filters to Aura through WebLayer
1805         https://bugs.webkit.org/show_bug.cgi?id=80054
1806
1807         Reviewed by James Robinson.
1808
1809         * WebKit.gyp:
1810         * src/WebLayer.cpp:
1811         (WebKit::WebLayer::setFilters):
1812         (WebKit):
1813         (WebKit::WebLayer::setBackgroundFilters):
1814
1815 2012-04-16  Sheriff Bot  <webkit.review.bot@gmail.com>
1816
1817         Unreviewed.  Rolled DEPS.
1818
1819         * DEPS:
1820
1821 2012-04-16  Kent Tamura  <tkent@chromium.org>
1822
1823         [Chromium] Move popup location detection code from WebViewImpl to WebPagePopupImpl
1824         https://bugs.webkit.org/show_bug.cgi?id=84116
1825
1826         Reviewed by Kentaro Hara.
1827
1828         This makes no behavior change. Just move some code.
1829         To fix Bug 84007, WebPagePopupImpl needs to know if the popup is
1830         above the target element or below the target element.
1831
1832         * src/WebPagePopupImpl.cpp:
1833         (WebKit::WebPagePopupImpl::init): Move some code from WebViewImpl::openPagePopup().
1834         * src/WebPagePopupImpl.h:
1835         (WebPagePopupImpl): Rename an argument name.
1836         * src/WebViewImpl.cpp:
1837         (WebKit::WebViewImpl::openPagePopup): Move some code to WebPagePopupImpl::init().
1838
1839 2012-04-13  James Robinson  <jamesr@chromium.org>
1840
1841         [chromium] Expose WebVideoLayer to Platform API and port WebMediaPlayerClientImpl to using it
1842         https://bugs.webkit.org/show_bug.cgi?id=83963
1843
1844         Reviewed by Adrienne Walker.
1845
1846         Adds implementation of WebVideoLayer and ports WebMediaPlayerClientImpl over to using it.
1847         WebMediaPlayerClientImpl still exposes a WebCore::VideoLayerChromium* to the compositor via the platformLayer()
1848         interface, but this is temporary until we can change the PlatformLayer typedef over to WebLayer.
1849
1850         * WebKit.gyp:
1851         * src/WebContentLayer.cpp:
1852         * src/WebLayer.cpp:
1853         (WebKit::WebLayer::invalidate):
1854         (WebKit):
1855         * src/WebMediaPlayerClientImpl.cpp:
1856         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
1857         (WebKit::WebMediaPlayerClientImpl::repaint):
1858         (WebKit::WebMediaPlayerClientImpl::setOpaque):
1859         (WebKit::WebMediaPlayerClientImpl::platformLayer):
1860         (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
1861         (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient):
1862         (WebKit::WebMediaPlayerClientImpl::supportsType):
1863         * src/WebMediaPlayerClientImpl.h:
1864         (WebMediaPlayerClientImpl):
1865         * src/WebVideoLayer.cpp: Copied from Source/WebKit/chromium/src/WebContentLayer.cpp.
1866         (WebKit):
1867         (WebKit::WebVideoLayer::create):
1868         (WebKit::WebVideoLayer::WebVideoLayer):
1869         (WebKit::WebVideoLayer::active):
1870
1871 2012-04-16  Aaron Colwell  <acolwell@chromium.org>
1872
1873         Fix WebKit style violations in Chromium WebMediaPlayer.h & WebMediaPlayerClient.h
1874         https://bugs.webkit.org/show_bug.cgi?id=84046
1875
1876         Reviewed by Darin Fisher.
1877
1878         * WebKit.gyp:
1879         * public/WebMediaPlayer.h:
1880         (WebKit):
1881         * public/WebMediaPlayerClient.h:
1882         * public/WebTimeRange.h: Copied from Source/WebKit/chromium/public/WebMediaPlayerClient.h.
1883         (WebKit):
1884         (WebKit::WebTimeRange::WebTimeRange):
1885         (WebTimeRange):
1886         * src/AssertMatchingEnums.cpp:
1887
1888 2012-04-16  Terry Anderson  <tdanderson@chromium.org>
1889
1890         [chromium] Allow WebGestureEvent to store four floating point values
1891         https://bugs.webkit.org/show_bug.cgi?id=84053
1892
1893         Reviewed by Darin Fisher.
1894
1895         See bug description for an explanation of the changes made.
1896
1897         * public/WebInputEvent.h:
1898         (WebGestureEvent):
1899         (WebKit::WebGestureEvent::WebGestureEvent):
1900         * src/WebInputEvent.cpp:
1901         (SameSizeAsWebGestureEvent):
1902         * src/WebInputEventConversion.cpp:
1903         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
1904
1905 2012-04-16  Alexey Proskuryakov  <ap@apple.com>
1906
1907         [chromium] Remove BlobRegistryProxy::createResourceHandle
1908         https://bugs.webkit.org/show_bug.cgi?id=84047
1909
1910         Reviewed by Nate Chapin.
1911
1912         * src/BlobRegistryProxy.h: (BlobRegistryProxy::createResourceHandle): This function
1913         is no longer used.
1914
1915 2012-04-16  Raymes Khoury  <raymes@chromium.org>
1916
1917         Fix bug in WebPluginContainer::isRectTopmost() which gave the incorrect result for a scrolled window.
1918         https://bugs.webkit.org/show_bug.cgi?id=80606
1919
1920         Reviewed by Darin Fisher.
1921
1922         * src/WebPluginContainerImpl.cpp:
1923         (WebKit::WebPluginContainerImpl::isRectTopmost):
1924
1925 2012-04-15  Keishi Hattori  <keishi@webkit.org>
1926
1927         Introduce MenuItemID to autofill popup
1928         https://bugs.webkit.org/show_bug.cgi?id=83777
1929
1930         Introducing MenuItemIDs because we want to add multiple separators and
1931         need to identify non-autofill menu items without resorting to the separator position.
1932
1933         Reviewed by Kent Tamura.
1934
1935         * public/WebAutofillClient.h:
1936         (WebKit::WebAutofillClient::didAcceptAutofillSuggestion): Changed uniqueID to itemID because they aren't unique.
1937         (WebKit::WebAutofillClient::didSelectAutofillSuggestion):
1938         * public/WebView.h:
1939         (WebView):
1940         * src/AutofillPopupMenuClient.cpp:
1941         (WebKit::AutofillPopupMenuClient::AutofillPopupMenuClient):
1942         (WebKit::AutofillPopupMenuClient::getSuggestionsCount):
1943         (WebKit::AutofillPopupMenuClient::getSuggestion):
1944         (WebKit::AutofillPopupMenuClient::getLabel):
1945         (WebKit::AutofillPopupMenuClient::getIcon):
1946         (WebKit::AutofillPopupMenuClient::removeSuggestionAtIndex):
1947         (WebKit::AutofillPopupMenuClient::canRemoveSuggestionAtIndex):
1948         (WebKit::AutofillPopupMenuClient::valueChanged):
1949         (WebKit::AutofillPopupMenuClient::selectionChanged):
1950         (WebKit::AutofillPopupMenuClient::itemIsSeparator):
1951         (WebKit::AutofillPopupMenuClient::itemIsWarning):
1952         (WebKit::AutofillPopupMenuClient::initialize):
1953         (WebKit::AutofillPopupMenuClient::setSuggestions):
1954         * src/AutofillPopupMenuClient.h:  Removed m_separatorIndex because now we use itemID to identify separators.
1955         Added m_useLegacyBehavior which is true when it is initialized with a valid separator index. This is to keep
1956         the autofill working even when the chromium side hasn't been updated yet.
1957         (AutofillPopupMenuClient):
1958         * src/WebViewImpl.cpp:
1959         (WebKit::WebViewImpl::applyAutofillSuggestions):
1960         * src/WebViewImpl.h:
1961         (WebViewImpl):
1962
1963 2012-04-15  James Robinson  <jamesr@chromium.org>
1964
1965         [chromium] LayerRendererChromium shouldn't know anything about CCLayerImpl
1966         https://bugs.webkit.org/show_bug.cgi?id=83415
1967
1968         Reviewed by Adrienne Walker.
1969
1970         Add an explicit rootLayer getter to the test implementation of LayerRendererChromium since there isn't one on
1971         the base class any more.
1972
1973         * tests/LayerRendererChromiumTest.cpp:
1974         (FakeLayerRendererChromiumClient::rootLayer):
1975         (FakeLayerRendererChromiumClient):
1976         (TEST_F):
1977
1978 2012-04-15  Yuta Kitamura  <yutak@chromium.org>
1979
1980         Leak in WebSocketChannel with workers/worker-reload.html (part 2)
1981         https://bugs.webkit.org/show_bug.cgi?id=83749
1982
1983         Reviewed by David Levin.
1984
1985         * src/WebWorkerClientImpl.cpp:
1986         (WebKit::WebWorkerClientImpl::postTaskForModeToWorkerContext):
1987         Correctly propagate the return value of postTaskForModeToWorkerContext().
1988
1989 2012-04-13  David Reveman  <reveman@chromium.org>
1990
1991         [Chromium] Avoid unnecessary full tile updates for checkerboard tiles.
1992         https://bugs.webkit.org/show_bug.cgi?id=83804
1993
1994         Reviewed by James Robinson.
1995
1996         * tests/CCLayerTreeHostTest.cpp:
1997         (WTF::setLayerPropertiesForTesting):
1998         (WTF):
1999         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::beginTest):
2000         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
2001         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::drawLayersOnCCThread):
2002         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::layout):
2003         (WTF::setTestLayerPropertiesForTesting):
2004         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
2005         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
2006         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
2007         * tests/TiledLayerChromiumTest.cpp:
2008         (WTF::TEST):
2009
2010 2012-04-13  Nico Weber  <thakis@chromium.org>
2011
2012         [chromium] There is no Color(float, float, float) constructor, fix an attempt to call it.
2013         https://bugs.webkit.org/show_bug.cgi?id=83920
2014
2015         Reviewed by James Robinson.
2016
2017         Found by clang:
2018           third_party/WebKit/Source/WebKit/chromium/tests/LayerChromiumTest.cpp:508:89:error: implicit conversion turns literal floating-point number into integer: 'float' to 'int' [-Werror,-Wliteral-conversion]
2019           EXECUTE_AND_VERIFY_SET_NEEDS_COMMIT_BEHAVIOR(1, testLayer->setBackgroundColor(Color(0.4f, 0.4f, 0.4f)));
2020           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
2021
2022         * tests/LayerChromiumTest.cpp:
2023
2024 2012-04-13  Dana Jansens  <danakj@chromium.org>
2025
2026         [chromium] Replicas should be included in the computed occlusion
2027         https://bugs.webkit.org/show_bug.cgi?id=82262
2028
2029         Reviewed by Adrienne Walker.
2030
2031         * tests/CCOcclusionTrackerTest.cpp:
2032         (CCOcclusionTrackerTestReplicaDoesOcclude):
2033         (WebKitTests::CCOcclusionTrackerTestReplicaDoesOcclude::runMyTest):
2034         (WebKitTests):
2035         (CCOcclusionTrackerTestReplicaWithClipping):
2036         (WebKitTests::CCOcclusionTrackerTestReplicaWithClipping::runMyTest):
2037         (CCOcclusionTrackerTestSurfaceChildOfSurface):
2038         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
2039
2040 2012-04-13  Bernhard Bauer  <bauerb@google.com>
2041
2042         [chromium] Remove fallback code for "Missing plug-in" string.
2043         https://bugs.webkit.org/show_bug.cgi?id=81907
2044
2045         Reviewed by Adam Barth.
2046
2047         * src/LocalizedStrings.cpp:
2048         (WebCore::missingPluginText):
2049
2050 2012-04-11  James Robinson  <jamesr@chromium.org>
2051
2052         [chromium] Remove unused compositeToTexture / compositeOffscreen setting
2053         https://bugs.webkit.org/show_bug.cgi?id=83733
2054
2055         Reviewed by Adrienne Walker.
2056
2057         Remove compositeOffscreen / compositeToTexture setting. This was an experiment that is no longer needed.
2058
2059         * public/WebSettings.h:
2060         * src/WebLayerTreeView.cpp:
2061         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
2062         * src/WebSettingsImpl.cpp:
2063         (WebKit::WebSettingsImpl::WebSettingsImpl):
2064         * src/WebSettingsImpl.h:
2065         (WebSettingsImpl):
2066         * src/WebViewImpl.cpp:
2067         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2068
2069 2012-04-13  James Robinson  <jamesr@chromium.org>
2070
2071         [chromium] Move WebVideoFrame into Platform and remove WebCore::VideoFrameChromium wrapper API
2072         https://bugs.webkit.org/show_bug.cgi?id=83851
2073
2074         Reviewed by Adam Barth.
2075
2076         Moves the WebVideoFrame interface into Platform and removes the now unnecessary VideoFrameChromiumImpl adapter
2077         implementation.
2078
2079         * WebKit.gyp:
2080         * public/WebVideoFrame.h:
2081         * src/AssertMatchingEnums.cpp:
2082         * src/VideoFrameChromiumImpl.cpp: Removed.
2083         * src/VideoFrameChromiumImpl.h: Removed.
2084         * src/WebMediaPlayerClientImpl.cpp:
2085         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
2086         (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
2087         (WebKit::WebMediaPlayerClientImpl::supportsType):
2088         * src/WebMediaPlayerClientImpl.h:
2089         (WebMediaPlayerClientImpl):
2090
2091 2012-04-13  Rob Flack  <flackr@chromium.org>
2092
2093         Chromium: Should enable -webkit-image-set
2094         https://bugs.webkit.org/show_bug.cgi?id=81859
2095
2096         Reviewed by Adam Barth.
2097
2098         * features.gypi:
2099
2100 2012-04-12  Michael Nordman  <michaeln@google.com>
2101
2102         [chromium] Now that the chromium port is using a different dom_storage backend
2103         library in its main browser process, there are a handful of files that should no
2104         longer be included in the build, and a few files than should be deleted
2105         outright, and the webkit api should be modified to reflect the new (and smaller)
2106         contract between the embedder and webkit/webcore.
2107         https://bugs.webkit.org/show_bug.cgi?id=83807
2108
2109         Reviewed by Adam Barth.
2110
2111         * WebKit.gyp: Delete a few files.
2112         * public/WebStorageNamespace.h:  Remove some unused data members and methods, and annotate close() as deprecated.
2113         * public/platform/WebKitPlatformSupport.h: Annotate a method as deprecated.
2114         * src/StorageAreaProxy.cpp: Remove the include of a deleted file.
2115         * src/StorageEventDispatcherChromium.cpp: Removed.
2116         * src/StorageEventDispatcherImpl.cpp: Added a FIXME comment for upcoming work.
2117         * src/StorageNamespaceProxy.cpp: Modified to no longer call out to the embedder thru the deprecated close() method.
2118         * src/StorageNamespaceProxy.h: Moved some blank lines around.
2119         * src/WebStorageAreaImpl.cpp: Removed.
2120         * src/WebStorageAreaImpl.h: Removed.
2121         * src/WebStorageEventDispatcherImpl.cpp: Cleaned up some cruft.
2122         * src/WebStorageNamespaceImpl.cpp: Removed.
2123         * src/WebStorageNamespaceImpl.h: Removed.
2124
2125 2012-04-13  Sheriff Bot  <webkit.review.bot@gmail.com>
2126
2127         Unreviewed, rolling out r114140.
2128         http://trac.webkit.org/changeset/114140
2129         https://bugs.webkit.org/show_bug.cgi?id=83921
2130
2131         Fails fast/css/image-set-parsing.html test it attempts to
2132         introduce. (Requested by scheib on #webkit).
2133
2134         * features.gypi:
2135
2136 2012-04-13  Rob Flack  <flackr@chromium.org>
2137
2138         Chromium: Should enable -webkit-image-set
2139         https://bugs.webkit.org/show_bug.cgi?id=81859
2140
2141         Reviewed by Adam Barth.
2142
2143         * features.gypi:
2144
2145 2012-04-13  Yury Semikhatsky  <yurys@chromium.org>
2146
2147         Unreviewed. Build fix after r114126.
2148
2149         * WebKit.gyp:
2150
2151 2012-04-13  Keishi Hattori  <keishi@webkit.org>
2152
2153         [chromium] Add WebKit API to access <datalist> options
2154         https://bugs.webkit.org/show_bug.cgi?id=83762
2155
2156         Introduce WebInputElement::dataListOptions so we can implement a UI for datalist.
2157
2158         Reviewed by Kent Tamura.
2159
2160         * public/WebInputElement.h:
2161         (WebKit):
2162         (WebInputElement):
2163         * src/WebInputElement.cpp:
2164         (WebKit::WebInputElement::dataListOptions): Added. Returns a WebNodeCollection containing WebOptionElements.
2165
2166 2012-04-13  Kent Tamura  <tkent@chromium.org>
2167
2168         Add a runtime flag for <input type=date>
2169         https://bugs.webkit.org/show_bug.cgi?id=83853
2170
2171         Reviewed by Adam Barth.
2172
2173         * public/WebRuntimeFeatures.h:
2174         (WebRuntimeFeatures): Add enableInputTypeDate() and isInputTypeDateEnabled().
2175         * src/WebRuntimeFeatures.cpp:
2176         (WebKit::WebRuntimeFeatures::enableInputTypeDate): Added.
2177         (WebKit::WebRuntimeFeatures::isInputTypeDateEnabled): Added.
2178
2179 2012-04-13  Sheriff Bot  <webkit.review.bot@gmail.com>
2180
2181         Unreviewed.  Rolled DEPS.
2182
2183         * DEPS:
2184
2185 2012-04-12  Dana Jansens  <danakj@chromium.org>
2186
2187         [chromium] Background filters for composited layers
2188         https://bugs.webkit.org/show_bug.cgi?id=80046
2189
2190         Reviewed by Adrienne Walker.
2191
2192         * tests/CCLayerImplTest.cpp:
2193         (WebCore::TEST):
2194
2195 2012-04-12  Sheriff Bot  <webkit.review.bot@gmail.com>
2196
2197         Unreviewed, rolling out r114075.
2198         http://trac.webkit.org/changeset/114075
2199         https://bugs.webkit.org/show_bug.cgi?id=83857
2200
2201         Breaks compile (Requested by jamesr on #webkit).
2202
2203         * WebKit.gyp:
2204         * public/WebVideoFrame.h:
2205         (WebKit):
2206         (WebVideoFrame):
2207         (WebKit::WebVideoFrame::~WebVideoFrame):
2208         (WebKit::WebVideoFrame::format):
2209         (WebKit::WebVideoFrame::width):
2210         (WebKit::WebVideoFrame::height):
2211         (WebKit::WebVideoFrame::planes):
2212         (WebKit::WebVideoFrame::stride):
2213         (WebKit::WebVideoFrame::data):
2214         (WebKit::WebVideoFrame::textureId):
2215         (WebKit::WebVideoFrame::textureTarget):
2216         * src/AssertMatchingEnums.cpp:
2217         * src/VideoFrameChromiumImpl.cpp: Added.
2218         (WebKit):
2219         (WebKit::VideoFrameChromiumImpl::toWebVideoFrame):
2220         (WebKit::VideoFrameChromiumImpl::VideoFrameChromiumImpl):
2221         (WebKit::VideoFrameChromiumImpl::format):
2222         (WebKit::VideoFrameChromiumImpl::width):
2223         (WebKit::VideoFrameChromiumImpl::height):
2224         (WebKit::VideoFrameChromiumImpl::planes):
2225         (WebKit::VideoFrameChromiumImpl::stride):
2226         (WebKit::VideoFrameChromiumImpl::data):
2227         (WebKit::VideoFrameChromiumImpl::requiredTextureSize):
2228         (WebKit::VideoFrameChromiumImpl::hasPaddingBytes):
2229         (WebKit::VideoFrameChromiumImpl::textureId):
2230         (WebKit::VideoFrameChromiumImpl::textureTarget):
2231         * src/VideoFrameChromiumImpl.h: Renamed from Source/Platform/chromium/public/WebVideoFrame.h.
2232         (WebKit):
2233         (VideoFrameChromiumImpl):
2234         * src/WebMediaPlayerClientImpl.cpp:
2235         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
2236         (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
2237         (WebKit::WebMediaPlayerClientImpl::supportsType):
2238         * src/WebMediaPlayerClientImpl.h:
2239         (WebMediaPlayerClientImpl):
2240
2241 2012-04-12  James Robinson  <jamesr@chromium.org>
2242
2243         [chromium] Move WebVideoFrame into Platform and remove WebCore::VideoFrameChromium wrapper API
2244         https://bugs.webkit.org/show_bug.cgi?id=83851
2245
2246         Reviewed by Adam Barth.
2247
2248         Moves the WebVideoFrame interface into Platform and removes the now unnecessary VideoFrameChromiumImpl adapter
2249         implementation.
2250
2251         * WebKit.gyp:
2252         * public/WebVideoFrame.h:
2253         * src/AssertMatchingEnums.cpp:
2254         * src/VideoFrameChromiumImpl.cpp: Removed.
2255         * src/VideoFrameChromiumImpl.h: Removed.
2256         * src/WebMediaPlayerClientImpl.cpp:
2257         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
2258         (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
2259         (WebKit::WebMediaPlayerClientImpl::supportsType):
2260         * src/WebMediaPlayerClientImpl.h:
2261         (WebMediaPlayerClientImpl):
2262
2263 2012-04-12  David Dorwin  <ddorwin@chromium.org>
2264
2265         Add Encrypted Media Extensions events and errors to HTMLMediaElement
2266         https://bugs.webkit.org/show_bug.cgi?id=82974
2267
2268         Reviewed by Adam Barth.
2269
2270         The new events and errors are behind the ENABLE(ENCRYPTED_MEDIA) feature define.
2271         Implementation is based on v0.1 of the draft proposal at
2272         http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#events.
2273
2274         * public/WebMediaPlayerClient.h:
2275         * src/AssertMatchingEnums.cpp:
2276         * src/WebMediaPlayerClientImpl.cpp:
2277         (WebKit::WebMediaPlayerClientImpl::keyAdded):
2278         (WebKit):
2279         (WebKit::WebMediaPlayerClientImpl::keyError):
2280         (WebKit::WebMediaPlayerClientImpl::keyMessage):
2281         (WebKit::WebMediaPlayerClientImpl::keyNeeded):
2282         * src/WebMediaPlayerClientImpl.h:
2283         (WebMediaPlayerClientImpl):
2284
2285 2012-04-12  Kent Tamura  <tkent@chromium.org>
2286
2287         [Chromium] Enable INPUT_TYPE_DATE
2288         https://bugs.webkit.org/show_bug.cgi?id=83761
2289
2290         Reviewed by Kentaro Hara.
2291
2292         * features.gypi: Turn ENABLE_INPUT_TYPE_DATE on.
2293
2294 2012-04-12  Kent Tamura  <tkent@chromium.org>
2295
2296         [Chromium] Fix !ENABLE(PAGE_POPUP) build
2297
2298         * src/WebViewImpl.cpp:
2299         (WebKit::WebViewImpl::WebViewImpl): Wrap m_pagePopup with ENABLE(PAGE_POPUP).
2300
2301 2012-04-12  Kent Tamura  <tkent@chromium.org>
2302
2303         [Chromium] Add PagePopup implementation
2304         https://bugs.webkit.org/show_bug.cgi?id=81081
2305
2306         Reviewed by Adam Barth.
2307
2308         Add WebPagePopupImpl class, which is an implementation of
2309         WebCore::PagePopup interface and WebKit::WebPagePopup interface. It's a
2310         WebWidget which has a Page object.
2311
2312         No new tests because this makes no behavior change yet.
2313
2314         * WebKit.gyp: Add WebPagePopupImpl.h.
2315         * src/ChromeClientImpl.cpp:
2316         (WebKit::ChromeClientImpl::hasOpenedPopup): Supports the PagePopup.
2317         (WebKit::ChromeClientImpl::openPagePopup):
2318         just delegate to WebViewImpl::openPagePopup().
2319         (WebKit::ChromeClientImpl::closePagePopup): ditto.
2320
2321         * src/WebPagePopupImpl.cpp:
2322         (PagePopupChromeClient):
2323         This is a light implementation of ChromeClient for the page in
2324         WebPagePopupImpl. This is a friend of WebPagePopupImpl becase of ease of
2325         access to its members.
2326         (WebKit::PagePopupChromeClient::PagePopupChromeClient):
2327         (WebKit::WebPagePopupImpl::WebPagePopupImpl):
2328         (WebKit::WebPagePopupImpl::~WebPagePopupImpl):
2329         (WebKit::WebPagePopupImpl::init):
2330         (WebKit::WebPagePopupImpl::initPage):
2331         (WebKit::WebPagePopupImpl::size):
2332         (WebKit::WebPagePopupImpl::animate): Calls PageWidgetDelegate::animate().
2333         (WebKit::WebPagePopupImpl::composite):
2334         (WebKit::WebPagePopupImpl::layout): Calls PageWidgetDelegate::layout().
2335         (WebKit::WebPagePopupImpl::paint): Calls PageWidgetDelegate::paint().
2336         (WebKit::WebPagePopupImpl::resize):
2337         (WebKit::WebPagePopupImpl::handleKeyEvent):
2338         (WebKit::WebPagePopupImpl::handleCharEvent):
2339         (WebKit::WebPagePopupImpl::handleGestureEvent):
2340         (WebKit::WebPagePopupImpl::handleInputEvent):
2341         (WebKit::WebPagePopupImpl::setFocus):
2342         (WebKit::WebPagePopupImpl::close): Delete the page, and kill itself.
2343         (WebKit::WebPagePopupImpl::closePopup):
2344         (WebKit::WebPagePopup::create):
2345         * src/WebPagePopupImpl.h: Added.
2346
2347         * src/WebViewImpl.cpp:
2348         (WebKit::WebViewImpl::WebViewImpl): Initialize m_pagePopup.
2349         (WebKit::WebViewImpl::handleKeyEvent):
2350         Renamed from keyEvent(). Forward key events to a PagePopup if it is open.
2351         (WebKit::WebViewImpl::handleCharEvent):
2352         Renamed from charEvent(). Forward char events to a PagePopup if it is open.
2353         (WebKit::WebViewImpl::openPagePopup):
2354         Added. Instantiate a WebPagePopupImpl, calculates a good bounding
2355         rectangle of the page popup from the specified element rectangle,
2356         initialize the WebPagePopupImpl, and stop caret blink.
2357         (WebKit::WebViewImpl::closePagePopup):
2358         Close the popup, clear m_pagePopup, and resume caret blink.
2359         (WebKit::WebViewImpl::setFocus): Hide all the popups.
2360         (WebKit::WebViewImpl::hidePopups): Hide the page popup too.
2361         * src/WebViewImpl.h:
2362         (WebKit::WebViewImpl::hasOpenedPopup): Checks the page popup too.
2363
2364 2012-04-12  Kent Tamura  <tkent@chromium.org>
2365
2366         [Chromium] Move some code of WebViewImpl and WebFrameImpl to PageWidgetDelegate
2367         https://bugs.webkit.org/show_bug.cgi?id=83750
2368
2369         Reviewed by Adam Barth.
2370
2371         In order to share code in WebViewImpl and the incoming WebPagePopupImpl,
2372         we move some code of WebViewImpl and WebFrameImpl to PageWidgetDelegate.
2373         PageWidgetDelegate is a set of static functions because we can't use
2374         virtual inheritance in this case and we don't want to move WebView's
2375         data members to another class.
2376
2377         No new tests. Just refactoring.
2378
2379         * WebKit.gyp: Add PageWidgetDelegate.{cpp,h} and WebPagePopupImpl.h.
2380         * src/PageWidgetDelegate.cpp: Added.
2381         (WebKit::mainFrameView):
2382         (WebKit::PageWidgetDelegate::animate):
2383         Moved from a part of WebViewImpl::animatie()
2384         (WebKit::PageWidgetDelegate::layout):
2385         Moved from WebViewImpl::layout() and WebFrameImpl::layout().
2386         (WebKit::PageWidgetDelegate::paint):
2387         Moved from WebFrameImpl::paint() and paintWithContext().
2388         (WebKit::PageWidgetDelegate::handleInputEvent):
2389         Moved from a part of WebViewImpl::handleInputEvent().
2390         (WebKit::PageWidgetEventHandler::handleMouseMove):
2391         Common implementation of an event handling.
2392         (WebKit::PageWidgetEventHandler::handleMouseLeave): ditto.
2393         (WebKit::PageWidgetEventHandler::handleMouseDown): ditto.
2394         (WebKit::PageWidgetEventHandler::handleMouseUp): ditto.
2395         (WebKit::PageWidgetEventHandler::handleMouseWheel): ditto.
2396         (WebKit::PageWidgetEventHandler::handleTouchEvent): ditto.
2397         * src/PageWidgetDelegate.h: Added.
2398         * src/WebFrameImpl.cpp:
2399         Remove layout(), paintWithContext(), and paint(). They are moved to
2400         PageWidgetDelegate.
2401         * src/WebFrameImpl.h:
2402         (WebFrameImpl): Remove layout(), paintWithContext(), and paint().
2403         * src/WebViewImpl.cpp:
2404         (WebKit::WebViewImpl::handleMouseLeave):
2405         Renamed from mouseLeave(), use PageWidgetDelegate::handleMouseLeave().
2406         (WebKit::WebViewImpl::handleMouseDown):
2407         Renamed from mouseDown(), use PageWidgetDelegate::handleMouseDown().
2408         (WebKit::WebViewImpl::handleMouseUp):
2409         Renamed from mouseUp(), use PageWidgetDelegate::handleMouseUp().
2410         (WebKit::WebViewImpl::scrollBy): Calls renamed handleMouseWheel().
2411         (WebKit::WebViewImpl::handleGestureEvent): Renamed from gestureEvent().
2412         (WebKit::WebViewImpl::handleKeyEvent): Renamed from keyEvent().
2413         (WebKit::WebViewImpl::handleCharEvent): Renamed from charEvent().
2414         (WebKit::WebViewImpl::updateAnimations): Uses PageWidgetDelegate::animate().
2415         (WebKit::WebViewImpl::layout): Uses PageWidgetDelegate::layout().
2416         (WebKit::WebViewImpl::paint): Uses PageWidgetDelegate::paint().
2417         (WebKit::WebViewImpl::handleInputEvent): Uses PageWidgetDelegate::handleInputEvent().
2418         * src/WebViewImpl.h:
2419
2420 2012-04-12  Adrienne Walker  <enne@google.com>
2421
2422         [chromium] Fix Windows compiler warnings in webkit_unit_test target
2423         https://bugs.webkit.org/show_bug.cgi?id=83732
2424
2425         Reviewed by Kent Tamura.
2426
2427         * tests/CCDamageTrackerTest.cpp:
2428         (WebKitTests::TEST_F):
2429         * tests/CCLayerImplTest.cpp:
2430         (WebCore::TEST):
2431         * tests/CCLayerTreeHostCommonTest.cpp:
2432         (WebKitTests::TEST):
2433         * tests/CCLayerTreeHostImplTest.cpp:
2434         (WebKitTests::TEST_F):
2435         * tests/CCQuadCullerTest.cpp:
2436         (WebCore::TEST):
2437         * tests/FloatQuadTest.cpp:
2438         (WebCore::TEST):
2439         * tests/ScrollAnimatorNoneTest.cpp:
2440         (TEST_F):
2441         * tests/TreeSynchronizerTest.cpp:
2442         (WebKitTests::TEST):
2443         * tests/WebLayerTest.cpp:
2444
2445 2012-04-11  Alec Flett  <alecflett@chromium.org>
2446
2447         IndexedDB: Stub out WebKit interface for get(IndexedKeyRange)
2448         https://bugs.webkit.org/show_bug.cgi?id=83637
2449
2450         Reviewed by Kent Tamura.
2451
2452         This is just a stub-out of IDBObjectStore.get(IDBKeyRange) to coordinate 
2453         a landing in chromium
2454
2455         * public/WebIDBObjectStore.h:
2456         (WebKit::WebIDBObjectStore::get):
2457         (WebIDBObjectStore):
2458         * src/IDBObjectStoreBackendProxy.cpp:
2459         (WebKit::IDBObjectStoreBackendProxy::get):
2460         (WebKit):
2461         * src/IDBObjectStoreBackendProxy.h:
2462         (IDBObjectStoreBackendProxy):
2463         * src/WebIDBObjectStoreImpl.cpp:
2464         (WebKit::WebIDBObjectStoreImpl::get):
2465         (WebKit):
2466         * src/WebIDBObjectStoreImpl.h:
2467         (WebIDBObjectStoreImpl):
2468
2469 2012-04-11  Kenichi Ishibashi  <bashi@chromium.org>
2470
2471         [chromium] Fix Windows warnings in WebSocketDeflaterTest
2472         https://bugs.webkit.org/show_bug.cgi?id=83731
2473
2474         Reviewed by Kent Tamura.
2475
2476         Use const char* instead of const char[] to suppress warnings on
2477         Windows.
2478
2479         * tests/WebSocketDeflaterTest.cpp:
2480         (WebCore::TEST):
2481
2482 2012-04-11  David Dorwin  <ddorwin@chromium.org>
2483
2484         Add keySystem attribute to canPlayType() for Encrypted Media Extensions
2485         https://bugs.webkit.org/show_bug.cgi?id=82973
2486
2487         Reviewed by Adam Barth.
2488
2489         The new attribute is behind the ENABLE(ENCRYPTED_MEDIA) feature define.
2490         Implementation is based on v0.1 of the draft proposal at
2491         http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#extensions.
2492
2493         * src/WebMediaPlayerClientImpl.cpp:
2494         (WebKit::WebMediaPlayerClientImpl::supportsType):
2495         * src/WebMediaPlayerClientImpl.h:
2496         (WebMediaPlayerClientImpl):
2497
2498 2012-04-10  James Robinson  <jamesr@chromium.org>
2499
2500         [chromium] Add OVERRIDE annotations for cc layer types
2501         https://bugs.webkit.org/show_bug.cgi?id=83658
2502
2503         Reviewed by Daniel Bates.
2504
2505         This adds OVERRIDE annotations to overrides of functions on these classes:
2506         - CCLayerImpl
2507         - LayerChromium
2508         - TiledLayerChromium
2509
2510         * src/WebLayerImpl.cpp:
2511         * src/WebLayerImpl.h:
2512         (WebLayerImpl): Removed unused and empty paintContents() function.
2513         * tests/CCLayerIteratorTest.cpp:
2514         * tests/CCLayerTreeHostCommonTest.cpp:
2515         * tests/CCLayerTreeHostImplTest.cpp:
2516         * tests/CCLayerTreeHostTest.cpp:
2517         * tests/CCOcclusionTrackerTest.cpp:
2518         * tests/CCTiledLayerTestCommon.h:
2519         (FakeTiledLayerChromium):
2520         * tests/LayerChromiumTest.cpp:
2521         * tests/TreeSynchronizerTest.cpp:
2522
2523 2012-04-11  James Robinson  <jamesr@chromium.org>
2524
2525         [chromium] Add OVERRIDE annotations for cc animation-related interfaces
2526         https://bugs.webkit.org/show_bug.cgi?id=83650
2527
2528         Reviewed by Daniel Bates.
2529
2530         This adds OVERRIDE annotations to the implementations of the following interfaces:
2531         - CCAnimationCurve
2532         - CCFloatAnimationCurve
2533         - CCLayerAnimationControllerClient
2534         - CCTransformAnimationCurve
2535
2536         * tests/CCAnimationTestCommon.h:
2537
2538 2012-04-11  Aaron Colwell  <acolwell@chromium.org>
2539
2540         Remove webkit prefix from Media Source runtime feature name.
2541         https://bugs.webkit.org/show_bug.cgi?id=83633
2542
2543         Reviewed by Adam Barth.
2544
2545         * src/WebRuntimeFeatures.cpp:
2546         (WebKit::WebRuntimeFeatures::enableMediaSource):
2547         (WebKit::WebRuntimeFeatures::isMediaSourceEnabled):
2548
2549 2012-04-11  Adrienne Walker  <enne@google.com>
2550
2551         [chromium] Draw missing layer tile checkerboards as checkerboards
2552         https://bugs.webkit.org/show_bug.cgi?id=83241
2553
2554         Reviewed by James Robinson.
2555
2556         Rename usedCheckerboard to hadMissingTile to avoid confusion. Update
2557         tests to not expect SolidColor quads for checkerboards.
2558
2559         * src/NonCompositedContentHost.cpp:
2560         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
2561         * tests/CCQuadCullerTest.cpp:
2562         (WebCore::appendQuads):
2563         * tests/CCSolidColorLayerImplTest.cpp:
2564         (CCLayerTestCommon::TEST):
2565         * tests/CCTiledLayerImplTest.cpp:
2566         (CCLayerTestCommon::TEST):
2567         (CCLayerTestCommon::getQuads):
2568         * tests/LayerChromiumTest.cpp:
2569
2570 2012-04-11  Ami Fischman  <fischman@chromium.org>
2571
2572         Remove unused WebVideoFrame::Format values
2573         https://bugs.webkit.org/show_bug.cgi?id=83625
2574
2575         Reviewed by Kenneth Russell.
2576
2577         * public/WebVideoFrame.h:
2578         (WebKit):
2579         * src/AssertMatchingEnums.cpp:
2580
2581 2012-04-11  'Pavel Feldman'  <pfeldman@chromium.org>
2582
2583         Follow up to r113863: fix chromium inspector interactive test harness.
2584
2585         * src/js/Tests.js:
2586
2587 2012-04-11  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2588
2589         [chromium] Add Battery Status API support.
2590
2591         The battery-client (BatteryClientChromium) will notify the client (WebBatteryStatusClient) when to start or stop
2592         sending battery status updates. The client, in response will send the notifications to WebViewImpl, which sends
2593         this update information to the WebCore::BatteryClient, and it triggers the appropriate javascript-callbacks.
2594         The spec is at http://www.w3.org/TR/2011/WD-battery-status-20111129/.
2595         https://bugs.webkit.org/show_bug.cgi?id=83284
2596
2597         Reviewed by Adam Barth.
2598
2599         * WebKit.gyp:
2600         * features.gypi:
2601         * public/WebBatteryStatus.h: Added.
2602         (WebKit):
2603         (WebBatteryStatus):
2604         (WebKit::WebBatteryStatus::WebBatteryStatus):
2605         * public/WebBatteryStatusClient.h: Added.
2606         (WebKit):
2607         (WebBatteryStatusClient):
2608         (WebKit::WebBatteryStatusClient::~WebBatteryStatusClient):
2609         * public/WebView.h:
2610         (WebKit):
2611         (WebView):
2612         (WebKit::WebView::updateBatteryStatus):
2613         * public/WebViewClient.h:
2614         (WebKit):
2615         (WebViewClient):
2616         (WebKit::WebViewClient::batteryStatusClient):
2617         * src/BatteryClientImpl.cpp: Added.
2618         (WebKit):
2619         (WebKit::BatteryClientImpl::BatteryClientImpl):
2620         (WebKit::BatteryClientImpl::updateBatteryStatus):
2621         (WebKit::BatteryClientImpl::setController):
2622         (WebKit::BatteryClientImpl::startUpdating):
2623         (WebKit::BatteryClientImpl::stopUpdating):
2624         (WebKit::BatteryClientImpl::batteryControllerDestroyed):
2625         * src/BatteryClientImpl.h: Added.
2626         (WebKit):
2627         (BatteryClientImpl):
2628         (WebKit::BatteryClientImpl::~BatteryClientImpl):
2629         * src/WebViewImpl.cpp:
2630         (WebKit::WebViewImpl::WebViewImpl):
2631         (WebKit):
2632         (WebKit::WebViewImpl::updateBatteryStatus):
2633         * src/WebViewImpl.h:
2634         (WebKit):
2635         (WebViewImpl):
2636
2637 2012-04-10  Ami Fischman  <fischman@chromium.org>
2638
2639         Roll Chromium DEPS to last-known good revision
2640         https://bugs.webkit.org/show_bug.cgi?id=83652
2641
2642         Unreviewed, just a DEPS roll (131469:131684)
2643
2644         * DEPS:
2645
2646 2012-04-10  Alexandre Elias  <aelias@google.com>
2647
2648         Add gesture event enums for long-press and pinch
2649         https://bugs.webkit.org/show_bug.cgi?id=83640
2650
2651         Reviewed by James Robinson.
2652
2653         Add new enum values GestureLongPress and GesturePinchBegin/End/Update,
2654         along with no-op default handling.
2655
2656         * public/WebInputEvent.h:
2657         * src/WebInputEventConversion.cpp:
2658         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
2659         * src/WebPopupMenuImpl.cpp:
2660         (WebKit::WebPopupMenuImpl::handleInputEvent):
2661         * src/WebViewImpl.cpp:
2662         (WebKit::WebViewImpl::gestureEvent):
2663
2664 2012-04-10  James Robinson  <jamesr@chromium.org>
2665
2666         [chromium] Add OVERRIDE annotations for cc tree host and proxy interfaces
2667         https://bugs.webkit.org/show_bug.cgi?id=83653
2668
2669         Reviewed by Adrienne Walker.
2670
2671         This adds OVERRIDE annotations to the implementations of the following interfaces:
2672         - CCLayerTreeHostClient
2673         - CCLayerTreeHostImplClient
2674         - CCProxy
2675         - LayerRendererChromiumClient
2676
2677         * src/WebLayerTreeViewImpl.h:
2678         (WebLayerTreeViewImpl):
2679         * src/WebViewImpl.h:
2680         (WebViewImpl):
2681         * tests/CCLayerTreeHostImplTest.cpp:
2682         * tests/CCLayerTreeHostTest.cpp:
2683         * tests/FakeCCLayerTreeHostClient.h:
2684         * tests/LayerRendererChromiumTest.cpp:
2685
2686 2012-04-10  James Robinson  <jamesr@chromium.org>
2687
2688         [chromium] Add OVERRIDE annotations for cc scheduler-related client interfaces
2689         https://bugs.webkit.org/show_bug.cgi?id=83646
2690
2691         Reviewed by Adrienne Walker.
2692
2693         This adds OVERRIDE annotations to the implementations of the following interfaces:
2694         - CCFrameRateControllerClient
2695         - CCSchedulerClient
2696         - CCTimeSource
2697         - CCTimeSourceClient
2698         - CCTimerClient
2699
2700
2701         * tests/CCSchedulerTest.cpp:
2702         * tests/CCSchedulerTestCommon.h:
2703
2704 2012-04-10  James Robinson  <jamesr@chromium.org>
2705
2706         [chromium] Fold LayerChromium::updateCompositorResources into main update
2707         https://bugs.webkit.org/show_bug.cgi?id=83530
2708
2709         Reviewed by Adrienne Walker.
2710
2711         Update tests for interface changes.
2712
2713         * tests/CCLayerTreeHostTest.cpp:
2714         (WTF::CCLayerTreeHostTest::runTest):
2715         (WTF::ContentLayerChromiumWithUpdateTracking::update):
2716         (WTF::ContentLayerChromiumWithUpdateTracking::idleUpdate):
2717         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
2718         (ContentLayerChromiumWithUpdateTracking):
2719         (WTF::CCLayerTreeHostTestOpacityChange::afterTest):
2720         (WTF::CCLayerTreeHostTestSetViewportSize::beginTest):
2721         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
2722         (WTF::TestLayerChromium::update):
2723         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
2724         (WTF::CCLayerTreeHostTestContentLayerOcclusion::beginTest):
2725         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
2726         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
2727         * tests/CCTiledLayerTestCommon.cpp:
2728         (WebKitTests::FakeLayerTextureUpdater::updateLayerRect):
2729         (WebKitTests::FakeTiledLayerChromium::update):
2730         * tests/CCTiledLayerTestCommon.h:
2731         (FakeLayerTextureUpdater):
2732         (FakeTiledLayerChromium):
2733         * tests/Canvas2DLayerChromiumTest.cpp:
2734         * tests/TiledLayerChromiumTest.cpp:
2735         (WTF::TEST):
2736         (WTF::idlePaintRepeat):
2737
2738 2012-04-10  Adam Barth  <abarth@webkit.org>
2739
2740         Limit -apple- and -khtml- to ENABLE(DASHBOARD_SUPPORT)
2741         https://bugs.webkit.org/show_bug.cgi?id=83256
2742
2743         Reviewed by Eric Seidel.
2744
2745         * features.gypi:
2746
2747 2012-04-10  Tim Dresser  <tdresser@chromium.org>
2748
2749         [Chromium] defaultDeviceScaleFactor != 0 should set deviceScaleFactor = defaultDeviceScaleFactor in the absence of a viewport tag for debugging purposes
2750         https://bugs.webkit.org/show_bug.cgi?id=82757
2751
2752         Reviewed by Darin Fisher.
2753
2754         If there is no viewport tag, the deviceScaleFactor is set to the defaultDeviceScaleFactor.
2755         Tested by: WebFrameTest.DeviceScaleFactorUsesDefaultWithoutViewportTag.
2756
2757         * src/ChromeClientImpl.cpp:
2758         (WebKit):
2759         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
2760         * tests/WebFrameTest.cpp:
2761         (WebKit):
2762         (FixedLayoutTestWebViewClient):
2763         (WebKit::TEST_F):
2764         * tests/data/no_viewport_tag.html: Added.
2765
2766 2012-04-10  Sheriff Bot  <webkit.review.bot@gmail.com>
2767
2768         Unreviewed, rolling out r113734.
2769         http://trac.webkit.org/changeset/113734
2770         https://bugs.webkit.org/show_bug.cgi?id=83606
2771
2772         causing a bunch of unrelated test failures (Requested by
2773         simonjam on #webkit).
2774
2775         * WebKit.gyp:
2776         * features.gypi:
2777         * public/WebBatteryStatus.h: Removed.
2778         * public/WebBatteryStatusClient.h: Removed.
2779         * public/WebView.h:
2780         (WebKit):
2781         (WebView):
2782         * public/WebViewClient.h:
2783         (WebKit):
2784         * src/BatteryClientImpl.cpp: Removed.
2785         * src/BatteryClientImpl.h: Removed.
2786         * src/WebViewImpl.cpp:
2787         (WebKit::WebViewImpl::WebViewImpl):
2788         * src/WebViewImpl.h:
2789         (WebKit):
2790         (WebViewImpl):
2791
2792 2012-04-09  James Robinson  <jamesr@chromium.org>
2793
2794         [chromium] Defer texture id allocation for copies until the actual copy executes
2795         https://bugs.webkit.org/show_bug.cgi?id=83514
2796
2797         Reviewed by Adrienne Walker.
2798
2799         * tests/CCTiledLayerTestCommon.cpp:
2800         * tests/CCTiledLayerTestCommon.h:
2801         * tests/Canvas2DLayerChromiumTest.cpp:
2802         * tests/TiledLayerChromiumTest.cpp:
2803         (WTF::TEST):
2804
2805 2012-04-10  David Dorwin  <ddorwin@chromium.org>
2806
2807         Add Encrypted Media Extensions methods to HTMLMediaElement
2808         https://bugs.webkit.org/show_bug.cgi?id=82971
2809
2810         Reviewed by Adam Barth.
2811
2812         The extensions are behind the ENABLE(ENCRYPTED_MEDIA) feature define.
2813         Implementation is based on v0.1 of the draft proposal at
2814         http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html.
2815
2816         * features.gypi:
2817         * public/WebMediaPlayer.h:
2818         (WebKit):
2819         (WebMediaPlayer):
2820         (WebKit::WebMediaPlayer::generateKeyRequest):
2821         (WebKit::WebMediaPlayer::addKey):
2822         (WebKit::WebMediaPlayer::cancelKeyRequest):
2823         * public/WebRuntimeFeatures.h:
2824         (WebRuntimeFeatures):
2825         * src/AssertMatchingEnums.cpp:
2826         * src/WebMediaPlayerClientImpl.cpp:
2827         (WebKit):
2828         (WebKit::WebMediaPlayerClientImpl::generateKeyRequest):
2829         (WebKit::WebMediaPlayerClientImpl::addKey):
2830         (WebKit::WebMediaPlayerClientImpl::cancelKeyRequest):
2831         * src/WebMediaPlayerClientImpl.h:
2832         (WebMediaPlayerClientImpl):
2833         * src/WebRuntimeFeatures.cpp:
2834         (WebKit::WebRuntimeFeatures::isMediaStreamEnabled):
2835         (WebKit::WebRuntimeFeatures::enableEncryptedMedia):
2836         (WebKit):
2837         (WebKit::WebRuntimeFeatures::isEncryptedMediaEnabled):
2838
2839 2012-04-10  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2840
2841         [chromium] Add Battery Status API support.
2842
2843         The battery-client (BatteryClientChromium) will notify the client (WebBatteryStatusClient) when to start or stop
2844         sending battery status updates. The client, in response will send the notifications to WebViewImpl, which sends
2845         this update information to the WebCore::BatteryClient, and it triggers the appropriate javascript-callbacks.
2846         The spec is at http://www.w3.org/TR/2011/WD-battery-status-20111129/.
2847         https://bugs.webkit.org/show_bug.cgi?id=83284
2848
2849         Reviewed by Adam Barth.
2850
2851         * WebKit.gyp:
2852         * features.gypi:
2853         * public/WebBatteryStatus.h: Added.
2854         (WebKit):
2855         (WebBatteryStatus):
2856         (WebKit::WebBatteryStatus::WebBatteryStatus):
2857         * public/WebBatteryStatusClient.h: Added.
2858         (WebKit):
2859         (WebBatteryStatusClient):
2860         (WebKit::WebBatteryStatusClient::~WebBatteryStatusClient):
2861         * public/WebView.h:
2862         (WebKit):
2863         (WebView):
2864         (WebKit::WebView::updateBatteryStatus):
2865         * public/WebViewClient.h:
2866         (WebKit):
2867         (WebViewClient):
2868         (WebKit::WebViewClient::batteryStatusClient):
2869         * src/BatteryClientImpl.cpp: Added.
2870         (WebKit):
2871         (WebKit::BatteryClientImpl::BatteryClientImpl):
2872         (WebKit::BatteryClientImpl::updateBatteryStatus):
2873         (WebKit::BatteryClientImpl::setController):
2874         (WebKit::BatteryClientImpl::startUpdating):
2875         (WebKit::BatteryClientImpl::stopUpdating):
2876         (WebKit::BatteryClientImpl::batteryControllerDestroyed):
2877         * src/BatteryClientImpl.h: Added.
2878         (WebKit):
2879         (BatteryClientImpl):
2880         (WebKit::BatteryClientImpl::~BatteryClientImpl):
2881         * src/WebViewImpl.cpp:
2882         (WebKit::WebViewImpl::WebViewImpl):
2883         (WebKit):
2884         (WebKit::WebViewImpl::updateBatteryStatus):
2885         * src/WebViewImpl.h:
2886         (WebKit):
2887         (WebViewImpl):
2888
2889 2012-04-10  Zhenyao Mo  <zmo@google.com>
2890
2891         Unreviewed, roll chromium to 131469
2892
2893         * DEPS:
2894
2895 2012-04-09  Alexander Pavlov  <apavlov@chromium.org>
2896
2897         Web Inspector: [Device Metrics] Introduce the "Fit window" option
2898         https://bugs.webkit.org/show_bug.cgi?id=83280
2899
2900         Implement the scaling of the FrameView to the WebViewImpl size, handle WebViewImpl resizes.
2901
2902         Reviewed by Pavel Feldman.
2903
2904         * src/InspectorClientImpl.cpp:
2905         (WebKit::InspectorClientImpl::overrideDeviceMetrics):
2906         * src/InspectorClientImpl.h:
2907         (InspectorClientImpl):
2908         * src/WebDevToolsAgentImpl.cpp:
2909         (WebKit::DeviceMetricsSupport::DeviceMetricsSupport):
2910         (WebKit::DeviceMetricsSupport::setDeviceMetrics):
2911         (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidthOnNavigation):
2912         (DeviceMetricsSupport):
2913         (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth):
2914         (WebKit::DeviceMetricsSupport::webViewResized):
2915         (WebKit::DeviceMetricsSupport::applySizeOverrideIfNecessary):
2916         (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor):
2917         (WebKit::DeviceMetricsSupport::restore):
2918         (WebKit::DeviceMetricsSupport::scaledEmulatedFrameSize):
2919         (WebKit::DeviceMetricsSupport::forcedScrollbarDimensions):
2920         (WebKit::DeviceMetricsSupport::applySizeOverrideInternal):
2921         (WebKit::WebDevToolsAgentImpl::webViewResized):
2922         (WebKit):
2923         (WebKit::WebDevToolsAgentImpl::overrideDeviceMetrics):
2924         (WebKit::WebDevToolsAgentImpl::autoZoomPageToFitWidth):
2925         * src/WebDevToolsAgentImpl.h:
2926         (WebDevToolsAgentImpl):
2927         * src/WebDevToolsAgentPrivate.h:
2928         (WebDevToolsAgentPrivate):
2929         * src/WebViewImpl.cpp:
2930         (WebKit::WebViewImpl::resize):
2931
2932 2012-04-09  Kent Tamura  <tkent@chromium.org>
2933
2934         [Chromium] Remove unused variable, WebViewImpl::m_lastMousePosition.
2935         https://bugs.webkit.org/show_bug.cgi?id=83550
2936
2937         Reviewed by Kentaro Hara.
2938
2939         * src/WebViewImpl.cpp:
2940         (WebKit::WebViewImpl::WebViewImpl):
2941         (WebKit::WebViewImpl::mouseMove):
2942         * src/WebViewImpl.h:
2943
2944 2012-04-09  Dana Jansens  <danakj@chromium.org>
2945
2946         [chromium] Viewport is not filled when out of texture memory on mac
2947         https://bugs.webkit.org/show_bug.cgi?id=83351
2948
2949         Reviewed by Adrienne Walker.
2950
2951         * src/NonCompositedContentHost.cpp:
2952         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
2953         (WebKit::NonCompositedContentHost::setBackgroundColor):
2954         * src/WebLayerTreeView.cpp:
2955         (WebKit::WebLayerTreeView::setBackgroundColor):
2956         (WebKit):
2957         * src/WebViewImpl.cpp:
2958         (WebKit::WebViewImpl::setBackgroundColor):
2959         (WebKit):
2960         (WebKit::WebViewImplContentPainter::paint):
2961         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2962         * src/WebViewImpl.h:
2963         (WebCore):
2964         (WebViewImpl):
2965         * tests/CCLayerImplTest.cpp:
2966         (WebCore::TEST):
2967         * tests/CCLayerTreeHostImplTest.cpp:
2968         (WebKitTests::BlendStateCheckLayer::appendQuads):
2969         (WebKitTests::TEST_F):
2970         (WebKitTests):
2971         * tests/CCLayerTreeHostTest.cpp:
2972         (WTF):
2973         (CCLayerTreeHostTestCommit):
2974         (WTF::CCLayerTreeHostTestCommit::CCLayerTreeHostTestCommit):
2975         (WTF::CCLayerTreeHostTestCommit::beginTest):
2976         (WTF::CCLayerTreeHostTestCommit::commitCompleteOnCCThread):
2977         (WTF::CCLayerTreeHostTestCommit::afterTest):
2978         (WTF::TEST_F):
2979         (TestLayerChromium):
2980         * tests/CCOcclusionTrackerTest.cpp:
2981         (WebKitTests::TestContentLayerChromium::TestContentLayerChromium):
2982         (WebKitTests::TestContentLayerChromium::visibleContentOpaqueRegion):
2983         (WebKitTests::TestContentLayerChromium::setOpaqueContentsRect):
2984         (TestContentLayerChromium):
2985         (WebKitTests::TestContentLayerImpl::TestContentLayerImpl):
2986         (TestContentLayerImpl):
2987         (WebKitTests::TestContentLayerImpl::visibleContentOpaqueRegion):
2988         (WebKitTests::TestContentLayerImpl::setOpaqueContentsRect):
2989         * tests/CCTiledLayerImplTest.cpp:
2990         * tests/LayerChromiumTest.cpp:
2991
2992 2012-04-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2993
2994         Unreviewed, rolling out r113656.
2995         http://trac.webkit.org/changeset/113656
2996         https://bugs.webkit.org/show_bug.cgi?id=83542
2997
2998         test is broken on chromium-win (Requested by simonjam on
2999         #webkit).
3000
3001         * public/WebIntent.h:
3002         (WebIntent):
3003         * src/WebIntent.cpp:
3004
3005 2012-04-09  James Robinson  <jamesr@chromium.org>
3006
3007         [chromium] More unreviewed OwnPtr<>::operator= related clang build fixes in unit tests.
3008
3009         * tests/Canvas2DLayerChromiumTest.cpp:
3010         * tests/LayerChromiumTest.cpp:
3011
3012 2012-04-09  Dana Jansens  <danakj@chromium.org>
3013
3014         [chromium] Cull occluded surface quads
3015         https://bugs.webkit.org/show_bug.cgi?id=81227
3016
3017         Reviewed by Adrienne Walker.
3018
3019         * tests/CCOcclusionTrackerTest.cpp:
3020         (WebKitTests::CCOcclusionTrackerTest::TearDown):
3021         (WebKitTests::CCOcclusionTrackerTest::createReplicaLayer):
3022         (CCOcclusionTrackerTest):
3023         (WebKitTests::CCOcclusionTrackerTest::setReplica):
3024         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
3025         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
3026         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
3027         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
3028         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
3029         (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest):
3030         (WebKitTests):
3031         (CCOcclusionTrackerTestReplicaOccluded):
3032         (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest):
3033         (CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded):
3034         (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest):
3035         (CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently):
3036         (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest):
3037         (CCOcclusionTrackerTestSurfaceChildOfSurface):
3038         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
3039
3040 2012-04-09  James Robinson  <jamesr@chromium.org>
3041
3042         [chromium] Unreviewed build fix. OwnPtr<>::operator = breaks the build on clang, but not gcc :(
3043
3044         * tests/CCLayerTreeHostTest.cpp:
3045         (WTF::MockLayerTreeHost::create):
3046         * tests/Canvas2DLayerChromiumTest.cpp:
3047         * tests/LayerChromiumTest.cpp:
3048
3049 2012-04-09  Dana Jansens  <danakj@chromium.org>
3050
3051         [chromium] Make culling work with clipped rects
3052         https://bugs.webkit.org/show_bug.cgi?id=83494
3053
3054         Reviewed by Adrienne Walker.
3055
3056         * tests/CCOcclusionTrackerTest.cpp:
3057         (CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude):
3058         (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest):
3059         (WebKitTests):
3060         (CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect):
3061         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
3062         * tests/CCQuadCullerTest.cpp:
3063         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
3064         (WebCore::makeLayer):
3065         (WebCore::TEST):
3066
3067 2012-04-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3068
3069         Unreviewed, rolling out r113613.
3070         http://trac.webkit.org/changeset/113613
3071         https://bugs.webkit.org/show_bug.cgi?id=83509
3072
3073         crashing most chromium bots (Requested by simonjam on
3074         #webkit).
3075
3076         * WebKit.gyp:
3077         * features.gypi:
3078         * public/WebBatteryStatus.h: Removed.
3079         * public/WebBatteryStatusClient.h: Removed.
3080         * public/WebView.h:
3081         (WebKit):
3082         (WebView):
3083         * public/WebViewClient.h:
3084         (WebKit):
3085         * src/BatteryClientImpl.cpp: Removed.
3086         * src/BatteryClientImpl.h: Removed.
3087         * src/WebViewImpl.cpp:
3088         (WebKit::WebViewImpl::WebViewImpl):
3089         * src/WebViewImpl.h:
3090         (WebKit):
3091         (WebViewImpl):
3092
3093 2012-04-09  James Robinson  <jamesr@chromium.org>
3094
3095         [chromium] CCLayerTreeHost / WebLayerTreeView should be single ownership, not RefCounted
3096         https://bugs.webkit.org/show_bug.cgi?id=83413
3097
3098         Reviewed by Adrienne Walker.
3099
3100         Updates tests and implementation for RefPtr->OwnPtr switch. One nice benefit is that since WebLayerTreeView is
3101         explicitly owned by the user of the API we can safely rely on them managing the lifetime of the client and thus
3102         don't have to null check the client all the time.
3103
3104         * src/WebLayerTreeView.cpp:
3105         (WebKit::WebLayerTreeView::reset):
3106         (WebKit::WebLayerTreeView::isNull):
3107         (WebKit::WebLayerTreeView::initialize):
3108         * src/WebLayerTreeViewImpl.cpp:
3109         (WebKit::WebLayerTreeViewImpl::create):
3110         (WebKit::WebLayerTreeViewImpl::willBeginFrame):
3111         (WebKit::WebLayerTreeViewImpl::updateAnimations):
3112         (WebKit::WebLayerTreeViewImpl::layout):
3113         (WebKit::WebLayerTreeViewImpl::applyScrollAndScale):
3114         (WebKit::WebLayerTreeViewImpl::createContext):
3115         (WebKit::WebLayerTreeViewImpl::didRecreateContext):
3116         (WebKit::WebLayerTreeViewImpl::didCommit):
3117         (WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame):
3118         (WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers):
3119         (WebKit::WebLayerTreeViewImpl::scheduleComposite):
3120         * src/WebLayerTreeViewImpl.h:
3121         (WebLayerTreeViewImpl):
3122         * tests/CCLayerTreeHostTest.cpp:
3123         (WTF::MockLayerTreeHost::create):
3124         (CCLayerTreeHostTest):
3125         * tests/Canvas2DLayerChromiumTest.cpp:
3126         * tests/LayerChromiumTest.cpp:
3127         * tests/TiledLayerChromiumTest.cpp:
3128         (WTF::TEST):
3129
3130 2012-04-09  Joshua Bell  <jsbell@chromium.org>
3131
3132         Unreviewed, rolling out r113473.
3133         http://trac.webkit.org/changeset/113473
3134         https://bugs.webkit.org/show_bug.cgi?id=83074
3135
3136         Change does not handle cursor retention of LevelDB iterators
3137
3138         * WebKit.gypi:
3139         * tests/IDBDatabaseBackendTest.cpp: Removed.
3140
3141 2012-04-06  James Robinson  <jamesr@chromium.org>
3142
3143         [chromium] Texture copies should happen after incremental updates to preserve commit atomicity
3144         https://bugs.webkit.org/show_bug.cgi?id=83392
3145
3146         Reviewed by Adrienne Walker.
3147
3148         * tests/Canvas2DLayerChromiumTest.cpp:
3149
3150 2012-04-09  Sadrul Habib Chowdhury  <sadrul@chromium.org>
3151
3152         [chromium] Add Battery Status API support.
3153
3154         The battery-client (BatteryClientChromium) will notify the client (WebBatteryStatusClient) when to start or stop
3155         sending battery status updates. The client, in response will send the notifications to WebViewImpl, which sends
3156         this update information to the WebCore::BatteryClient, and it triggers the appropriate javascript-callbacks.
3157         The spec is at http://www.w3.org/TR/2011/WD-battery-status-20111129/.
3158         https://bugs.webkit.org/show_bug.cgi?id=83284
3159
3160         Reviewed by Adam Barth.
3161
3162         * WebKit.gyp:
3163         * features.gypi:
3164         * public/WebBatteryStatus.h: Added.
3165         (WebKit):
3166         (WebBatteryStatus):
3167         (WebKit::WebBatteryStatus::WebBatteryStatus):
3168         * public/WebBatteryStatusClient.h: Added.
3169         (WebKit):
3170         (WebBatteryStatusClient):
3171         (WebKit::WebBatteryStatusClient::~WebBatteryStatusClient):
3172         * public/WebView.h:
3173         (WebKit):
3174         (WebView):
3175         (WebKit::WebView::updateBatteryStatus):
3176         * public/WebViewClient.h:
3177         (WebKit):
3178         (WebViewClient):
3179         (WebKit::WebViewClient::batteryStatusClient):
3180         * src/BatteryClientImpl.cpp: Added.
3181         (WebKit):
3182         (WebKit::BatteryClientImpl::BatteryClientImpl):
3183         (WebKit::BatteryClientImpl::updateBatteryStatus):
3184         (WebKit::BatteryClientImpl::setController):
3185         (WebKit::BatteryClientImpl::startUpdating):
3186         (WebKit::BatteryClientImpl::stopUpdating):
3187         (WebKit::BatteryClientImpl::batteryControllerDestroyed):
3188         * src/BatteryClientImpl.h: Added.
3189         (WebKit):
3190         (BatteryClientImpl):
3191         (WebKit::BatteryClientImpl::~BatteryClientImpl):
3192         * src/WebViewImpl.cpp:
3193         (WebKit::WebViewImpl::WebViewImpl):
3194         (WebKit):
3195         (WebKit::WebViewImpl::updateBatteryStatus):
3196         * src/WebViewImpl.h:
3197         (WebKit):
3198         (WebViewImpl):
3199
3200 2012-04-09  Shawn Singh  <shawnsingh@chromium.org>
3201
3202         [chromium] Fix layer sorting perspective w if w becomes negative
3203         https://bugs.webkit.org/show_bug.cgi?id=82997
3204
3205         Reviewed by Adrienne Walker.
3206
3207         * tests/CCLayerSorterTest.cpp:
3208         (WebCore::TEST):
3209         (WebCore):
3210
3211 2012-04-09  Dana Jansens  <danakj@chromium.org>
3212
3213         [chromium] Flip transition painting delayed with threaded animations
3214         https://bugs.webkit.org/show_bug.cgi?id=82571
3215
3216         Reviewed by Adrienne Walker.
3217
3218         * tests/CCLayerTreeHostCommonTest.cpp:
3219         (WebKitTests::TEST):
3220         (WebKitTests):
3221
3222 2012-04-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3223
3224         Unreviewed, rolling out r113561.
3225         http://trac.webkit.org/changeset/113561
3226         https://bugs.webkit.org/show_bug.cgi?id=83487
3227
3228         broke webkit_unit_tests (Requested by simonjam on #webkit).
3229
3230         * tests/CCOcclusionTrackerTest.cpp:
3231         (WebKitTests):
3232         * tests/CCQuadCullerTest.cpp:
3233         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
3234
3235 2012-04-09  Dana Jansens  <danakj@chromium.org>
3236
3237         [chromium] Make culling work with clipped rects
3238         https://bugs.webkit.org/show_bug.cgi?id=83217
3239
3240         Reviewed by Adrienne Walker.
3241
3242         * tests/CCOcclusionTrackerTest.cpp:
3243         (CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude):
3244         (WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest):
3245         (WebKitTests):
3246         (CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect):
3247         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
3248         * tests/CCQuadCullerTest.cpp:
3249         (WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):
3250
3251 2012-04-06  Ami Fischman  <fischman@chromium.org>
3252
3253         Roll Chromium DEPS
3254         https://bugs.webkit.org/show_bug.cgi?id=83389
3255
3256         Unreviewed, just a DEPS roll (130110:131183)
3257
3258         * DEPS:
3259
3260 2012-04-06  James Robinson  <jamesr@chromium.org>
3261
3262         WebGL content swapped at wrong time in threaded compositing mode
3263         https://bugs.webkit.org/show_bug.cgi?id=82275
3264
3265         Reviewed by Kenneth Russell.
3266
3267         * tests/WebGLLayerChromiumTest.cpp:
3268         (WebKit::TEST):
3269
3270 2012-04-06  Joshua Bell  <jsbell@chromium.org>
3271
3272         IndexedDB: ObjectStore/Index shouldn't hold reference to backing store
3273         https://bugs.webkit.org/show_bug.cgi?id=83074
3274
3275         Reviewed by Tony Chang.
3276
3277         * WebKit.gypi:
3278         * tests/IDBDatabaseBackendTest.cpp: Added.
3279         (WebCore):
3280         (MockIDBBackingStore):
3281         (WebCore::TEST):
3282
3283 2012-04-06  Kent Tamura  <tkent@chromium.org>
3284
3285         Calendar Picker: Add code to open/close the calendar picker
3286         https://bugs.webkit.org/show_bug.cgi?id=83258
3287
3288         Reviewed by Hajime Morita.
3289
3290         * features.gypi: Enable ENABLE_PAGE_POPUP for non-Android
3291         platforms. This is needed because ENABLE_CALENDAR_PICKER now depends on
3292         ENABLE_PAGE_POPUP.
3293         * src/ChroemClientImpl.cpp: Add stubs.
3294         (WebKit::ChromeClientImpl::openPagePopup):
3295         (WebKit::ChromeClientImpl::closePagePopup):
3296         * src/ChromeClientImpl.h: Add declarations of openPagePopup() and closePagePopup().
3297
3298 2012-04-05  Hironori Bono  <hbono@chromium.org>
3299
3300         [Chromium] moving a cursor on a misspelled word should not remove a misspelled underline
3301         https://bugs.webkit.org/show_bug.cgi?id=83214
3302
3303         Reviewed by Ryosuke Niwa.
3304
3305         When Chrome enables asynchronous spellchecking, it adds Spelling markers in the
3306         background. For this case, moving a cursor should not remove these markers
3307         because it requires Chrome to spellcheck text again. This change prevents
3308         removing Spelling markers added by spellcheckers asynchronously.
3309
3310         * src/ContextMenuClientImpl.cpp:
3311         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): use marker descriptions instead of spellchecking text when Chrome enables asynchronous spellchecking.
3312
3313 2012-04-05  Dana Jansens  <danakj@chromium.org>
3314
3315         [chromium] Record the number of tiles paint-culled instead of the incorrect number of pixels
3316         https://bugs.webkit.org/show_bug.cgi?id=82423
3317
3318         Reviewed by Adrienne Walker.
3319
3320         * tests/CCQuadCullerTest.cpp:
3321         (WebCore::TEST):
3322         * tests/TiledLayerChromiumTest.cpp:
3323         (WTF::TEST):
3324
3325 2012-04-05  Shawn Singh  <shawnsingh@chromium.org>
3326
3327         [chromium] Need to clip to homogeneous w=0 plane when applying transforms.
3328         https://bugs.webkit.org/show_bug.cgi?id=80806
3329
3330         Reviewed by Adrienne Walker.
3331
3332         * tests/CCLayerTreeHostCommonTest.cpp:
3333         (WebKitTests::TEST):
3334         (WebKitTests):
3335
3336 2012-04-05  Dana Jansens  <danakj@chromium.org>
3337
3338         [chromium] Cleanup test, redundant code in CCSchedulerTest.NoBeginFrameWhenDrawFails
3339         https://bugs.webkit.org/show_bug.cgi?id=83300
3340
3341         Reviewed by Adrienne Walker.
3342
3343         * tests/CCSchedulerTest.cpp:
3344         (WebKitTests::TEST):
3345
3346 2012-04-05  Sheriff Bot  <webkit.review.bot@gmail.com>
3347
3348         Unreviewed, rolling out r113241.
3349         http://trac.webkit.org/changeset/113241
3350         https://bugs.webkit.org/show_bug.cgi?id=83293
3351
3352         Requested by sievers@chromium.org (Requested by zhenyao on
3353         #webkit).
3354
3355         * tests/CCLayerTreeHostImplTest.cpp:
3356         (WebKitTests::TEST_F):
3357         * tests/CCLayerTreeHostTest.cpp:
3358         (WTF::CCLayerTreeHostTest::doBeginTest):
3359
3360 2012-04-05  Sheriff Bot  <webkit.review.bot@gmail.com>
3361
3362         Unreviewed, rolling out r113341.
3363         http://trac.webkit.org/changeset/113341
3364         https://bugs.webkit.org/show_bug.cgi?id=83299
3365
3366         bots caught some build errors (Requested by shawnsingh on
3367         #webkit).
3368
3369         * tests/CCLayerTreeHostCommonTest.cpp:
3370
3371 2012-04-05  Ian Vollick  <vollick@chromium.org>
3372
3373         [chromium] Race condition in CCLayerTreeHostTestSynchronizeAnimationStartTimes
3374         https://bugs.webkit.org/show_bug.cgi?id=83179
3375
3376         Reviewed by James Robinson.
3377
3378         * tests/CCLayerTreeHostTest.cpp:
3379         (WTF::TestHooks::willAnimateLayers):
3380         (WTF::MockLayerTreeHostImpl::animateLayers):
3381         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::CCLayerTreeHostTestSynchronizeAnimationStartTimes):
3382         (CCLayerTreeHostTestSynchronizeAnimationStartTimes):
3383         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::willAnimateLayers):
3384         (WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::notifyAnimationStarted):
3385
3386 2012-04-05  Justin Novosad  <junov@chromium.org>
3387
3388         [Chromium] With the skia port, setting LCD text filtering is causing
3389         texture cache invalidations of gpu canvas backing store
3390         https://bugs.webkit.org/show_bug.cgi?id=74183
3391
3392         Reviewed by Stephen White.
3393
3394         Replacing unnecessary usage of SkCanvas::LayerIter with call to
3395         SkCanvas::isDrawingToLayer(). Same results, lower overhead, and no
3396         GPU texture invalidation.
3397
3398         * src/WebFontImpl.cpp:
3399         (WebKit::WebFontImpl::drawText):
3400
3401 2012-04-05  Lei Zhang  <thestig@chromium.org>
3402
3403         [Chromium] Properly align members in WebInputEvent and subclasses to make Valgrind happy.
3404         https://bugs.webkit.org/show_bug.cgi?id=81570
3405
3406         Reviewed by Darin Fisher.
3407
3408         * public/WebInputEvent.h:
3409         (WebKit):
3410         (WebKit::WebInputEvent::WebInputEvent):
3411         (WebKeyboardEvent):
3412         (WebKit::WebTouchEvent::WebTouchEvent):
3413
3414 2012-04-05  Shawn Singh  <shawnsingh@chromium.org>
3415
3416         [chromium] Need to clip to homogeneous w=0 plane when applying transforms.
3417         https://bugs.webkit.org/show_bug.cgi?id=80806
3418
3419         Reviewed by Adrienne Walker.
3420
3421         * tests/CCLayerTreeHostCommonTest.cpp:
3422         (WebKitTests::TEST):
3423         (WebKitTests):
3424
3425 2012-04-05  Sheriff Bot  <webkit.review.bot@gmail.com>
3426
3427         Unreviewed, rolling out r113307.
3428         http://trac.webkit.org/changeset/113307
3429         https://bugs.webkit.org/show_bug.cgi?id=83288
3430
3431         Requested by sievers@chromium.org (Requested by zhenyao on
3432         #webkit).
3433
3434         * tests/CCLayerTreeHostTest.cpp:
3435         (WTF::TEST_F):
3436
3437 2012-04-05  Pavel Feldman  <pfeldman@chromium.org>
3438
3439         Web Inspector: [chromium] clean up WDTFC::saveAs after migration to save()
3440         https://bugs.webkit.org/show_bug.cgi?id=83271
3441
3442         Reviewed by Yury Semikhatsky.
3443
3444         * public/WebDevToolsFrontendClient.h:
3445
3446 2012-04-05  Hans Wennborg  <hans@chromium.org>
3447
3448         webkit_unit_tests build fix.
3449         https://bugs.webkit.org/show_bug.cgi?id=83261
3450
3451         Unreviewed, webkit_unit_tests buildfix.
3452
3453         The CCLayerTreeHostTestEmptyContentsShouldNotDraw.runMultiThread test
3454         stopped working after r113254.
3455
3456         Disable it for now.
3457
3458         * tests/CCLayerTreeHostTest.cpp:
3459         (WTF):
3460         (WTF::TEST_F):
3461
3462 2012-04-05  Jochen Eisinger  <jochen@chromium.org>
3463
3464         [chromium] Only shut down V8 if we actually initialized it
3465         https://bugs.webkit.org/show_bug.cgi?id=83159
3466
3467         Reviewed by Pavel Feldman.
3468
3469         * src/WebKit.cpp:
3470         (WebKit::initialize):
3471         (WebKit::shutdown):
3472
3473 2012-04-05  Kinuko Yasuda  <kinuko@chromium.org>
3474
3475         Expose DataTransferItem.getAsEntry() to allow users access dropped files as FileEntry
3476         https://bugs.webkit.org/show_bug.cgi?id=82592
3477
3478         Reviewed by David Levin.
3479
3480         * src/WebDragData.cpp:
3481         (WebKit::WebDragData::filesystemId): Added implementation.
3482         (WebKit::WebDragData::setFilesystemId): Added implementation.
3483
3484 2012-04-04  Kent Tamura  <tkent@chromium.org>
3485
3486         [Chromium] Calendar Picker: Add localization functions
3487         https://bugs.webkit.org/show_bug.cgi?id=83235
3488
3489         Reviewed by Adam Barth.
3490
3491         Implement calendarTodayText() and calendarClearText(), which are
3492         introduced in http://trac.webkit.org/changeset/113166
3493
3494         * public/platform/WebLocalizedString.h:
3495         Add CalendarClear and CalendarToday.
3496         * src/LocalizedStrings.cpp:
3497         (WebCore::calendarTodayText): Added.
3498         (WebCore::calendarClearText): Added.
3499
3500 2012-04-04  Mark Pilgrim  <pilgrim@chromium.org>
3501
3502         Call histogramEnumeration directly
3503         https://bugs.webkit.org/show_bug.cgi?id=83106
3504
3505         Reviewed by Adam Barth.
3506
3507         Part of a refactoring project to remove the PlatformSupport
3508         abstraction from some functions. See bug 82948.
3509
3510         * src/ChromeClientImpl.cpp:
3511         (WebKit::ChromeClientImpl::shouldRunModalDialogDuringPageDismissal):
3512         * src/PlatformSupport.cpp:
3513         (WebCore):
3514
3515 2012-04-04  Shawn Singh  <shawnsingh@chromium.org>
3516
3517         [chromium] Move recursive renderSurface clearing to CCLayerTreeHostImpl
3518         https://bugs.webkit.org/show_bug.cgi?id=82091
3519
3520         Reviewed by James Robinson.
3521
3522         * tests/LayerRendererChromiumTest.cpp:
3523         (FakeLayerRendererChromiumClient::FakeLayerRendererChromiumClient):
3524
3525 2012-04-04  Daniel Sievers  <sievers@chromium.org>
3526
3527         [Chromium] Always skip draw and readback if there is nothing
3528         to draw.
3529         https://bugs.webkit.org/show_bug.cgi?id=82680
3530
3531         This avoids corruption from pushing frames that have no valid
3532         content drawn into them.
3533         Also in addition to checking for non-existing root layers, check
3534         for root layers with no content bounds. It's possible to see those
3535         with kForceCompositing mode for empty documents.
3536
3537         Reviewed by James Robinson.
3538
3539         Added CCLayerTreeHostTestEmptyContentsShouldNotDraw.
3540
3541         * tests/CCLayerTreeHostImplTest.cpp:
3542         (WebKitTests::TEST_F):
3543         * tests/CCLayerTreeHostTest.cpp:
3544         (WTF::CCLayerTreeHostTest::doBeginTest):
3545         (WTF):
3546         (CCLayerTreeHostTestEmptyContentsShouldNotDraw):
3547         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::CCLayerTreeHostTestEmptyContentsShouldNotDraw):
3548         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::beginTest):
3549         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::drawLayersOnCCThread):
3550         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::didCommitAndDrawFrame):
3551         (WTF::CCLayerTreeHostTestEmptyContentsShouldNotDraw::afterTest):
3552         (WTF::TEST_F):
3553
3554 2012-04-04  Mark Pilgrim  <pilgrim@chromium.org>
3555
3556         Call histogramCustomCounts directly
3557         https://bugs.webkit.org/show_bug.cgi?id=83112
3558
3559         Reviewed by Adam Barth.
3560