1187b64cc50cfb5acc035182734b8cb638d6e693
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-05-16  Yury Semikhatsky  <yurys@chromium.org>
2
3         [Chromium] Web Inspector: DevToolsSanityTest.TestScriptsTabIsPopulatedOnInspectedPageRefresh is broken
4         https://bugs.webkit.org/show_bug.cgi?id=86629
5
6         Reviewed by Pavel Feldman.
7
8         Listen to DebuggerModel instead of DebuggerPresentationModel which is gone.
9
10         * src/js/Tests.js:
11         (.TestSuite.prototype.testScriptsTabIsPopulatedOnInspectedPageRefresh.waitUntilScriptIsParsed):
12
13 2012-05-16  Yury Semikhatsky  <yurys@chromium.org>
14
15         [Chromium] Web Inspector: debugger browser tests are broken
16         https://bugs.webkit.org/show_bug.cgi?id=86624
17
18         Reviewed by Vsevolod Vlasov.
19
20         Use WebInspector.panels.scripts._scriptMapping instead of
21         WebInspector.panels.scripts._presentationModel as the latter
22         has been deleted.
23
24         * src/js/Tests.js:
25         (.TestSuite.prototype.nonAnonymousUISourceCodes_):
26
27 2012-05-16  Keishi Hattori  <keishi@webkit.org>
28
29         [chromium] Add WebKit API to access inner text value of input element
30         https://bugs.webkit.org/show_bug.cgi?id=85353
31
32         Reviewed by Kent Tamura.
33
34         * public/WebInputElement.h:
35         (WebInputElement):
36         * src/WebInputElement.cpp:
37         (WebKit::WebInputElement::editingValue):
38         (WebKit):
39         (WebKit::WebInputElement::setEditingValue):
40
41 2012-05-16  Hans Wennborg  <hans@chromium.org>
42
43         Speech JavaScript API: pass WebSecurityOrigin to embedder
44         https://bugs.webkit.org/show_bug.cgi?id=86348
45
46         Reviewed by Adam Barth.
47
48         Pass the WebSecurityOrigin of the SpeecReco object to the embedder when calling
49         start(). The origin will be used to determine whether speech recognition is
50         allowed or not.
51
52         * public/WebSpeechRecognitionParams.h:
53         (WebKit::WebSpeechRecognitionParams::WebSpeechRecognitionParams):
54         (WebKit::WebSpeechRecognitionParams::origin):
55         (WebSpeechRecognitionParams):
56         * src/SpeechRecognitionClientProxy.cpp:
57         (WebKit::SpeechRecognitionClientProxy::start):
58
59 2012-05-15  Tien-Ren Chen  <trchen@chromium.org>
60
61         [Chromium] CCTimer::isActive() is incorrect inside tick callback
62         https://bugs.webkit.org/show_bug.cgi?id=86513
63
64         Update test cases to verify CCTimer::isActive() values.
65
66         Reviewed by James Robinson.
67
68         * tests/CCTimerTest.cpp:
69         (WebKitTests::TEST_F):
70
71 2012-05-15  Sheriff Bot  <webkit.review.bot@gmail.com>
72
73         Unreviewed, rolling out r117204.
74         http://trac.webkit.org/changeset/117204
75         https://bugs.webkit.org/show_bug.cgi?id=86559
76
77         causing win compilation failures (Requested by pilgrim_google_
78         on #webkit).
79
80         * WebKit.gyp:
81         * public/WebMessagePortChannel.h:
82         (WebKit):
83         (WebMessagePortChannel):
84         (WebKit::WebMessagePortChannel::~WebMessagePortChannel):
85         * public/platform/WebKitPlatformSupport.h:
86         (WebKit):
87         (WebKitPlatformSupport):
88         (WebKit::WebKitPlatformSupport::createMessagePortChannel):
89         * src/PlatformMessagePortChannel.cpp:
90         (WebCore::PlatformMessagePortChannel::PlatformMessagePortChannel):
91         * src/PlatformMessagePortChannel.h:
92         * src/SharedWorkerRepository.cpp:
93         * src/WebSharedWorkerImpl.cpp:
94         * src/WebWorkerClientImpl.cpp:
95
96 2012-05-15  Shinya Kawanaka  <shinyak@chromium.org>
97
98         Rename Node::shadowTreeRootNode() to Node::shadowRoot()
99         https://bugs.webkit.org/show_bug.cgi?id=86449
100
101         Reviewed by Darin Adler.
102
103         * src/WebFrameImpl.cpp:
104         (WebKit::WebFrameImpl::scopeStringMatches):
105
106 2012-05-15  Mark Pilgrim  <pilgrim@chromium.org>
107
108         [Chromium] Move createMessagePortChannel to Platform.h
109         https://bugs.webkit.org/show_bug.cgi?id=85764
110
111         Reviewed by Adam Barth.
112
113         Part of a refactoring series. See tracking bug 82948.
114
115         * WebKit.gyp:
116         * public/WebMessagePortChannel.h:
117         * public/platform/WebKitPlatformSupport.h:
118         (WebKit):
119         (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue):
120         * src/PlatformMessagePortChannel.cpp:
121         (WebCore::PlatformMessagePortChannel::PlatformMessagePortChannel):
122         * src/PlatformMessagePortChannel.h:
123         * src/SharedWorkerRepository.cpp:
124         * src/WebSharedWorkerImpl.cpp:
125         * src/WebWorkerClientImpl.cpp:
126
127 2012-05-15  Fady Samuel  <fsamuel@chromium.org>
128
129         [Chromium] Reset ScriptInstance in HTMLPlugInElement on WebPluginContainerImpl::setPlugin
130         https://bugs.webkit.org/show_bug.cgi?id=86535
131
132         Reviewed by Darin Fisher.
133
134         * src/WebPluginContainerImpl.cpp:
135         (WebKit::WebPluginContainerImpl::setPlugin):
136         (WebKit):
137         * src/WebPluginContainerImpl.h:
138         (WebPluginContainerImpl):
139
140 2012-05-15  Mark Pilgrim  <pilgrim@chromium.org>
141
142         [Chromium] Move blobRegistry to Platform.h
143         https://bugs.webkit.org/show_bug.cgi?id=85765
144
145         Reviewed by Adam Barth.
146
147         Part of a refactoring series. See tracking bug 82948.
148
149         * WebKit.gyp:
150         * public/platform/WebBlobData.h:
151         * public/platform/WebBlobRegistry.h:
152         * public/platform/WebKitPlatformSupport.h:
153         (WebKit):
154         (WebKit::WebKitPlatformSupport::cookieJar):
155         * src/BlobRegistryProxy.cpp:
156         (WebCore::BlobRegistryProxy::BlobRegistryProxy):
157         * src/WebBlobData.cpp:
158
159 2012-05-15  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
160
161         [chromium] Overloaded printBegin() function to support auto fit to page functionality.
162         https://bugs.webkit.org/show_bug.cgi?id=84312
163
164         Reviewed by Darin Fisher.
165
166         * WebKit.gyp:
167         * public/WebFrame.h:
168         (WebKit):
169         (WebFrame):
170         * public/WebPlugin.h:
171         (WebKit):
172         (WebPlugin):
173         (WebKit::WebPlugin::printBegin):
174         * public/WebPrintParams.h: Added.
175         (WebKit):
176         (WebPrintParams):
177         (WebKit::WebPrintParams::WebPrintParams):
178         * src/WebFrameImpl.cpp:
179         (WebKit::ChromePluginPrintContext::ChromePluginPrintContext):
180         (WebKit::ChromePluginPrintContext::computePageRects):
181         (ChromePluginPrintContext):
182         (WebKit):
183         (WebKit::WebFrameImpl::printBegin):
184         * src/WebFrameImpl.h:
185         (WebKit):
186         (WebFrameImpl):
187         * src/WebPluginContainerImpl.cpp:
188         (WebKit::WebPluginContainerImpl::printBegin):
189         * src/WebPluginContainerImpl.h:
190         (WebKit):
191         (WebPluginContainerImpl):
192
193 2012-05-15  Shawn Singh  <shawnsingh@chromium.org>
194
195         [chromium] Add unit testing to WebTransformationMatrix
196         https://bugs.webkit.org/show_bug.cgi?id=86421
197
198         Reviewed by Adrienne Walker.
199
200         * WebKit.gypi:
201         * tests/WebTransformationMatrixTest.cpp: Added.
202         (WebKit):
203         (WebKit::printTransform):
204         (WebKit::initializeTestMatrix):
205         (WebKit::initializeTestMatrix2):
206         (WebKit::TEST):
207
208 2012-05-15  James Robinson  <jamesr@chromium.org>
209
210         [chromium] Chromium port never sets USE(CG) so code behind it is dead
211         https://bugs.webkit.org/show_bug.cgi?id=86537
212
213         Reviewed by Adrienne Walker.
214
215         Deletes code behind USE(CG) in chromium-specific code and removes unneeded USE(SKIA) guards.
216
217         * src/GraphicsContext3DChromium.cpp:
218         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
219         (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
220         (WebCore::GraphicsContext3DPrivate::grContext):
221         (WebCore::GraphicsContext3DPrivate::paintFramebufferToCanvas):
222         (WebCore::GraphicsContext3D::grContext):
223         * src/GraphicsContext3DPrivate.h:
224         (GraphicsContext3DPrivate):
225         * src/PlatformSupport.cpp:
226         * src/WebViewImpl.cpp:
227         (WebKit::WebViewImpl::doPixelReadbackToCanvas):
228
229 2012-05-15  Anders Carlsson  <andersca@apple.com>
230
231         Set the new PlatformWheelEvent member variables to sane defaults
232         https://bugs.webkit.org/show_bug.cgi?id=86542
233
234         Reviewed by Andreas Kling.
235
236         * src/WebInputEventConversion.cpp:
237         (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
238
239 2012-05-15  Ian Vollick  <vollick@chromium.org>
240
241         [chromium] Ensure animations get ticked at least once when added.
242         https://bugs.webkit.org/show_bug.cgi?id=86013
243
244         Reviewed by James Robinson.
245
246         * tests/CCLayerTreeHostTest.cpp:
247         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::animateLayers):
248         (WTF):
249
250 2012-05-15  Alexandre Elias  <aelias@google.com>
251
252         [chromium] Fix unsafe viewport tag dispatch
253         https://bugs.webkit.org/show_bug.cgi?id=80554
254
255         Reviewed by Adam Barth.
256
257         In some uncommon situations (such as window.open() new tab on
258         Android), dispatchViewportPropertiesDidChange may early-return without
259         setting the page scale because the window size is not yet
260         available from the embedder.  At that point, the previous behavior was
261         to call it again in layoutUpdated(), but this is unsafe since it
262         leaves a pending needsLayout.
263
264         I moved the dispatch call into WebViewImpl::didChangeContentsSize and
265         WebViewImpl::resize() instead -- these represent more explicitly the
266         situations where the inputs to the viewport tag calculation change.  I
267         removed the other dispatch call from setFrameRect as it's now
268         redundant.
269
270         Covered by FixedLayoutInitializeAtMinimumPageScale test introduced
271         in http://webk.it/82949 (an assertion will fire there without
272         this fix).
273
274         * src/ChromeClientImpl.cpp:
275         (WebKit::ChromeClientImpl::layoutUpdated):
276         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
277         * src/WebViewImpl.cpp:
278         (WebKit::WebViewImpl::resize):
279         (WebKit::WebViewImpl::didChangeContentsSize):
280
281 2012-05-15  James Robinson  <jamesr@chromium.org>
282
283         [chromium] Move createOffscreenGraphicsContext3D() from WebKitPlatformSupport to Platform
284         https://bugs.webkit.org/show_bug.cgi?id=86524
285
286         Reviewed by Adam Barth.
287
288         Moves createOffscreenGraphicsContext3D() out (to WebKit::Platform) and updates GraphicsContext3DChromium to use
289         the new location. Also removes a few unnecessary includes from GraphicsContext3DChromium.cpp.
290
291         * public/platform/WebKitPlatformSupport.h:
292         (WebKitPlatformSupport):
293         * src/GraphicsContext3DChromium.cpp:
294         (WebCore::GraphicsContext3D::create):
295
296 2012-05-15  Terry Anderson  <tdanderson@chromium.org>
297
298         [chromium] Compute the best target node on a GestureTap event
299         https://bugs.webkit.org/show_bug.cgi?id=85101
300
301         Reviewed by Adam Barth.
302
303         * features.gypi:
304         Enable the touch adjustment code by default.
305         * src/WebInputEventConversion.cpp:
306         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
307         In the case of a GestureTap, deltaX represents the horizontal padding of the touch
308         area and deltaY represents the vertical padding of the touch area.
309
310 2012-05-15  James Robinson  <jamesr@chromium.org>
311
312         Unreviewed, rolling out r116811.
313         http://trac.webkit.org/changeset/116811
314         https://bugs.webkit.org/show_bug.cgi?id=86257
315
316         Introduced layering violation
317
318         * WebKit.gyp:
319         * src/Extensions3DChromium.cpp: Renamed from Source/WebCore/platform/chromium/support/Extensions3DChromium.cpp.
320         (WebCore):
321         (WebCore::Extensions3DChromium::Extensions3DChromium):
322         (WebCore::Extensions3DChromium::~Extensions3DChromium):
323         (WebCore::Extensions3DChromium::supports):
324         (WebCore::Extensions3DChromium::ensureEnabled):
325         (WebCore::Extensions3DChromium::isEnabled):
326         (WebCore::Extensions3DChromium::getGraphicsResetStatusARB):
327         (WebCore::Extensions3DChromium::blitFramebuffer):
328         (WebCore::Extensions3DChromium::renderbufferStorageMultisample):
329         (WebCore::Extensions3DChromium::postSubBufferCHROMIUM):
330         (WebCore::Extensions3DChromium::mapBufferSubDataCHROMIUM):
331         (WebCore::Extensions3DChromium::unmapBufferSubDataCHROMIUM):
332         (WebCore::Extensions3DChromium::mapTexSubImage2DCHROMIUM):
333         (WebCore::Extensions3DChromium::unmapTexSubImage2DCHROMIUM):
334         (WebCore::Extensions3DChromium::setVisibilityCHROMIUM):
335         (WebCore::Extensions3DChromium::discardFramebufferEXT):
336         (WebCore::Extensions3DChromium::ensureFramebufferCHROMIUM):
337         (WebCore::Extensions3DChromium::setGpuMemoryAllocationChangedCallbackCHROMIUM):
338         (WebCore::Extensions3DChromium::createVertexArrayOES):
339         (WebCore::Extensions3DChromium::deleteVertexArrayOES):
340         (WebCore::Extensions3DChromium::isVertexArrayOES):
341         (WebCore::Extensions3DChromium::bindVertexArrayOES):
342         (WebCore::Extensions3DChromium::getTranslatedShaderSourceANGLE):
343         (WebCore::Extensions3DChromium::setSwapBuffersCompleteCallbackCHROMIUM):
344         (WebCore::Extensions3DChromium::rateLimitOffscreenContextCHROMIUM):
345         (WebCore::Extensions3DChromium::paintFramebufferToCanvas):
346         (WebCore::Extensions3DChromium::texImageIOSurface2DCHROMIUM):
347         (WebCore::Extensions3DChromium::texStorage2DEXT):
348         (WebCore::Extensions3DChromium::createQueryEXT):
349         (WebCore::Extensions3DChromium::deleteQueryEXT):
350         (WebCore::Extensions3DChromium::isQueryEXT):
351         (WebCore::Extensions3DChromium::beginQueryEXT):
352         (WebCore::Extensions3DChromium::endQueryEXT):
353         (WebCore::Extensions3DChromium::getQueryivEXT):
354         (WebCore::Extensions3DChromium::getQueryObjectuivEXT):
355         * src/GraphicsContext3DChromium.cpp: Renamed from Source/WebCore/platform/chromium/support/GraphicsContext3DChromium.cpp.
356         (WebCore):
357         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
358         (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
359         (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
360         (WebCore::GraphicsContext3DPrivate::extractWebGraphicsContext3D):
361         (WebCore::GraphicsContext3DPrivate::platformGraphicsContext3D):
362         (WebCore::GraphicsContext3DPrivate::platformTexture):
363         (GrMemoryAllocationChangedCallback):
364         (WebCore::GrMemoryAllocationChangedCallback::GrMemoryAllocationChangedCallback):
365         (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
366         (WebCore::GraphicsContext3DPrivate::grContext):
367         (WebCore::GraphicsContext3DPrivate::prepareTexture):
368         (WebCore::GraphicsContext3DPrivate::markContextChanged):
369         (WebCore::GraphicsContext3DPrivate::markLayerComposited):
370         (WebCore::GraphicsContext3DPrivate::layerComposited):
371         (WebCore::GraphicsContext3DPrivate::paintFramebufferToCanvas):
372         (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToCanvas):
373         (WebCore::GraphicsContext3DPrivate::paintCompositedResultsToCanvas):
374         (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToImageData):
375         (WebCore::GraphicsContext3DPrivate::reshape):
376         (WebCore::GraphicsContext3DPrivate::getInternalFramebufferSize):
377         (WebCore::GraphicsContext3DPrivate::isContextLost):
378         (WebCore::GraphicsContext3DPrivate::isGLES2Compliant):
379         (WebCore::GraphicsContext3DPrivate::bindAttribLocation):
380         (WebCore::GraphicsContext3DPrivate::bufferData):
381         (WebCore::GraphicsContext3DPrivate::bufferSubData):
382         (WebCore::GraphicsContext3DPrivate::getActiveAttrib):
383         (WebCore::GraphicsContext3DPrivate::getActiveUniform):
384         (WebCore::GraphicsContext3DPrivate::getAttribLocation):
385         (WebCore::GraphicsContext3DPrivate::getContextAttributes):
386         (WebCore::GraphicsContext3DPrivate::getProgramInfoLog):
387         (WebCore::GraphicsContext3DPrivate::getShaderInfoLog):
388         (WebCore::GraphicsContext3DPrivate::getShaderSource):
389         (WebCore::GraphicsContext3DPrivate::getString):
390         (WebCore::GraphicsContext3DPrivate::getUniformLocation):
391         (WebCore::GraphicsContext3DPrivate::shaderSource):
392         (WebCore::GraphicsContext3DPrivate::texImage2D):
393         (WebCore::GraphicsContext3DPrivate::texSubImage2D):
394         (WebCore::GraphicsContext3DPrivate::uniform1fv):
395         (WebCore::GraphicsContext3DPrivate::uniform1iv):
396         (WebCore::GraphicsContext3DPrivate::uniform2fv):
397         (WebCore::GraphicsContext3DPrivate::uniform2iv):
398         (WebCore::GraphicsContext3DPrivate::uniform3fv):
399         (WebCore::GraphicsContext3DPrivate::uniform3iv):
400         (WebCore::GraphicsContext3DPrivate::uniform4fv):
401         (WebCore::GraphicsContext3DPrivate::uniform4iv):
402         (WebCore::GraphicsContext3DPrivate::uniformMatrix2fv):
403         (WebCore::GraphicsContext3DPrivate::uniformMatrix3fv):
404         (WebCore::GraphicsContext3DPrivate::uniformMatrix4fv):
405         (WebCore::GraphicsContext3DPrivate::getExtensions):
406         (WebCore::GraphicsContext3DPrivate::isResourceSafe):
407         (WebCore::GraphicsContext3DPrivate::initializeExtensions):
408         (WebCore::GraphicsContext3DPrivate::supportsExtension):
409         (WebCore::GraphicsContext3DPrivate::ensureExtensionEnabled):
410         (WebCore::GraphicsContext3DPrivate::isExtensionEnabled):
411         (WebCore::GraphicsContext3D::GraphicsContext3D):
412         (WebCore::GraphicsContext3D::~GraphicsContext3D):
413         (WebCore::GraphicsContext3D::create):
414         (WebCore::GraphicsContext3D::platformGraphicsContext3D):
415         (WebCore::GraphicsContext3D::platformTexture):
416         (WebCore::GraphicsContext3D::grContext):
417         (WebCore::GraphicsContext3D::prepareTexture):
418         (WebCore::GraphicsContext3D::getInternalFramebufferSize):
419         (WebCore::GraphicsContext3D::isResourceSafe):
420         (WebCore::GraphicsContext3D::platformLayer):
421         (WebCore::GraphicsContext3D::layerComposited):
422         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
423         (WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
424         (GraphicsContextLostCallbackAdapter):
425         (WebCore::GraphicsContextLostCallbackAdapter::~GraphicsContextLostCallbackAdapter):
426         (WebCore::GraphicsContextLostCallbackAdapter::GraphicsContextLostCallbackAdapter):
427         (WebCore::GraphicsContextLostCallbackAdapter::onContextLost):
428         (WebCore::GraphicsContextLostCallbackAdapter::create):
429         (WebCore::GraphicsContext3DPrivate::setContextLostCallback):
430         (GraphicsErrorMessageCallbackAdapter):
431         (WebCore::GraphicsErrorMessageCallbackAdapter::~GraphicsErrorMessageCallbackAdapter):
432         (WebCore::GraphicsErrorMessageCallbackAdapter::GraphicsErrorMessageCallbackAdapter):
433         (WebCore::GraphicsErrorMessageCallbackAdapter::onErrorMessage):
434         (WebCore::GraphicsErrorMessageCallbackAdapter::create):
435         (WebCore::GraphicsContext3DPrivate::setErrorMessageCallback):
436         (WebCore::GraphicsContext3D::isGLES2Compliant):
437         (GraphicsContext3DSwapBuffersCompleteCallbackAdapter):
438         (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::~GraphicsContext3DSwapBuffersCompleteCallbackAdapter):
439         (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::GraphicsContext3DSwapBuffersCompleteCallbackAdapter):
440         (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::onSwapBuffersComplete):
441         (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::create):
442         (WebCore::GraphicsContext3DPrivate::setSwapBuffersCompleteCallbackCHROMIUM):
443         (GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
444         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
445         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::~GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
446         (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged):
447         (WebCore::GraphicsContext3DPrivate::setGpuMemoryAllocationChangedCallbackCHROMIUM):
448         * src/GraphicsContext3DPrivate.h: Renamed from Source/WebCore/platform/chromium/support/GraphicsContext3DPrivate.h.
449         (WebKit):
450         (WebCore):
451         (GraphicsContext3DPrivate):
452
453 2012-05-15  Sheriff Bot  <webkit.review.bot@gmail.com>
454
455         Unreviewed, rolling out r116712.
456         http://trac.webkit.org/changeset/116712
457         https://bugs.webkit.org/show_bug.cgi?id=86484
458
459         This patch is causing crashes in Chromium Canary builds
460         (Requested by pilgrim_google__ on #webkit).
461
462         * WebKit.gyp:
463         * public/WebStorageArea.h:
464         (WebKit):
465         * public/WebStorageEventDispatcher.h:
466         (WebStorageEventDispatcher):
467         (WebKit::WebStorageEventDispatcher::~WebStorageEventDispatcher):
468         * public/WebStorageNamespace.h:
469         (WebStorageNamespace):
470         (WebKit::WebStorageNamespace::close):
471         * public/platform/WebKitPlatformSupport.h:
472         (WebKitPlatformSupport):
473         (WebKit::WebKitPlatformSupport::dispatchStorageEvent):
474         * src/StorageAreaProxy.cpp:
475         (WebCore::StorageAreaProxy::setItem):
476         (WebCore::StorageAreaProxy::removeItem):
477         (WebCore::StorageAreaProxy::clear):
478         (WebCore):
479         (WebCore::StorageAreaProxy::storageEvent):
480         (WebCore::StorageAreaProxy::dispatchLocalStorageEvent):
481         (WebCore::findPageWithSessionStorageNamespace):
482         (WebCore::StorageAreaProxy::dispatchSessionStorageEvent):
483         * src/StorageAreaProxy.h:
484         (WebCore):
485         (StorageAreaProxy):
486         * src/StorageEventDispatcherImpl.cpp: Added.
487         (WebCore):
488         (WebCore::StorageEventDispatcherImpl::StorageEventDispatcherImpl):
489         (WebCore::StorageEventDispatcherImpl::dispatchStorageEvent):
490         * src/StorageEventDispatcherImpl.h: Copied from Source/WebKit/chromium/public/WebStorageEventDispatcher.h.
491         (WebCore):
492         (StorageEventDispatcherImpl):
493         * src/WebStorageEventDispatcherImpl.cpp:
494         (WebKit):
495         (WebKit::WebStorageEventDispatcher::dispatchLocalStorageEvent):
496         (WebKit::WebStorageEventDispatcher::dispatchSessionStorageEvent):
497         (WebKit::WebStorageEventDispatcher::create):
498         (WebKit::WebStorageEventDispatcherImpl::WebStorageEventDispatcherImpl):
499         (WebKit::WebStorageEventDispatcherImpl::dispatchStorageEvent):
500         * src/WebStorageEventDispatcherImpl.h: Copied from Source/WebKit/chromium/public/WebStorageEventDispatcher.h.
501         (WebKit):
502         (WebStorageEventDispatcherImpl):
503         * src/WebViewImpl.cpp:
504         * src/WebViewImpl.h:
505         (WebCore):
506         (WebViewImpl):
507
508 2012-05-15  Terry Anderson  <tdanderson@chromium.org>
509
510         [chromium] Remove unused code for tap target fuzzing
511         https://bugs.webkit.org/show_bug.cgi?id=86252
512
513         Reviewed by Adam Barth.
514
515         * public/WebInputEvent.h:
516         (WebGestureEvent):
517         (WebKit::WebGestureEvent::WebGestureEvent):
518         * src/WebInputEvent.cpp:
519         (SameSizeAsWebGestureEvent):
520         * src/WebInputEventConversion.cpp:
521         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
522         A rectangular touch region is defined by the touch center and the
523         delta values only, so gammaX and gammaY are not needed.
524
525 2012-05-15  Hans Wennborg  <hans@chromium.org>
526
527         Speech JavaScript API: Introduce error code enum in Chromium plumbing
528         https://bugs.webkit.org/show_bug.cgi?id=86353
529
530         Reviewed by Adam Barth.
531
532         Introduce an enum for receiving error codes from the embedder.
533         This enum matches the enum in SpeechRecognitionError.
534
535         * public/WebSpeechRecognizerClient.h:
536         * src/AssertMatchingEnums.cpp:
537         * src/SpeechRecognitionClientProxy.cpp:
538         (WebKit::SpeechRecognitionClientProxy::didReceiveError):
539         * src/SpeechRecognitionClientProxy.h:
540         (SpeechRecognitionClientProxy):
541
542 2012-05-14  Shinya Kawanaka  <shinyak@chromium.org> 
543
544         document.execCommand('Indent') in the direct child of ShadowRoot causes a crash.
545         https://bugs.webkit.org/show_bug.cgi?id=86341
546
547         Reviewed by Ryosuke Niwa.
548
549         * src/WebRange.cpp:
550         (WebKit::WebRange::fromDocumentRange):
551
552 2012-05-14  Shinya Kawanaka  <shinyak@chromium.org>
553
554         Node::shadowTreeRootNode() should return ShadowRoot instead of Node.
555         https://bugs.webkit.org/show_bug.cgi?id=86428
556
557         Reviewed by Hajime Morita.
558
559         Adds include directive to build.
560
561         * src/WebFrameImpl.cpp:
562
563 2012-05-14  Gavin Peters  <gavinp@chromium.org>
564
565         Add Prerenderer, PrerenderHandle and a chromium interface for Prerendering.
566         https://bugs.webkit.org/show_bug.cgi?id=85005
567
568         Reviewed by Adam Barth.
569
570         The prerender case isn't quite a resource load, and using resource loading to
571         retrieve them has constrained the API, and unnecessarily complicated the loader.
572
573         The new Prerenderer and PrerenderHandle let <link rel=prerender...> elements signal
574         removal and unload to their platform.
575
576         * WebKit.gyp:
577         * public/WebView.h:
578         * src/PrerendererClientImpl.cpp: Copied from Source/WebCore/html/LinkRelAttribute.h.
579         (WebKit):
580         (WebKit::PrerendererClientImpl::PrerendererClientImpl):
581         (WebKit::PrerendererClientImpl::willAddPrerender):
582         * src/PrerendererClientImpl.h: Copied from Source/WebCore/html/LinkRelAttribute.h.
583         (WebCore):
584         (WebKit):
585         (PrerendererClientImpl):
586         * src/WebKit.cpp:
587         (WebKit::shutdown):
588         * src/WebViewImpl.cpp:
589         (WebKit::WebViewImpl::setPrerendererClient):
590         (WebKit):
591         * src/WebViewImpl.h:
592         (WebKit):
593         (WebViewImpl):
594
595 2012-05-14  Luke Macpherson  <macpherson@chromium.org>
596
597         Introduce ENABLE_CSS_VARIABLES compile flag.
598         https://bugs.webkit.org/show_bug.cgi?id=86338
599
600         Reviewed by Dimitri Glazkov.
601
602         Add a configuration option for CSS Variables support, disabling it by default.
603
604         * features.gypi:
605
606 2012-05-14  Gavin Peters  <gavinp@chromium.org>
607
608         [Chromium] remove skia/third_party/glu from DEPS
609         https://bugs.webkit.org/show_bug.cgi?id=86431
610
611         Chromium rev 136872 removed skia/third_party/glu, but nobody updated it in WebKit.  This
612         patch fixes that.
613
614         Unreviewed, remove bad Chromium repo.
615
616         * DEPS:
617
618 2012-05-14  Dirk Pranke <dpranke@chromium.org>
619
620         Unreviewed, roll Chromium DEPS to r136942.
621
622 2012-05-14  Adam Barth  <abarth@webkit.org>
623
624         [Chromium] android/WebInputEventFactory should handle wheel events and gesture events
625         https://bugs.webkit.org/show_bug.cgi?id=86270
626
627         Reviewed by Eric Seidel.
628
629         * public/android/WebInputEventFactory.h:
630         * src/android/WebInputEventFactory.cpp:
631         (WebKit::WebInputEventFactory::keyboardEvent):
632         (WebKit::WebInputEventFactory::mouseEvent):
633         (WebKit):
634         (WebKit::WebInputEventFactory::mouseWheelEvent):
635         (WebKit::WebInputEventFactory::gestureEvent):
636
637 2012-05-14  Sheriff Bot  <webkit.review.bot@gmail.com>
638
639         Unreviewed, rolling out r116983.
640         http://trac.webkit.org/changeset/116983
641         https://bugs.webkit.org/show_bug.cgi?id=86397
642
643         Does not compile on chromium-win (Requested by abarth on
644         #webkit).
645
646         * features.gypi:
647         * src/WebInputEventConversion.cpp:
648         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
649
650 2012-05-14  Terry Anderson  <tdanderson@chromium.org>
651
652         [chromium] Compute the best target node on a GestureTap event
653         https://bugs.webkit.org/show_bug.cgi?id=85101
654
655         Reviewed by Adam Barth.
656
657         * features.gypi:
658         Enable the touch adjustment code by default.
659         * src/WebInputEventConversion.cpp:
660         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
661         In the case of a GestureTap, deltaX represents the horizontal padding of the touch
662         area and deltaY represents the vertical padding of the touch area.
663
664 2012-05-14  Adrienne Walker  <enne@google.com>
665
666         [chromium] Add compositor debug asserts for blocked main thread
667         https://bugs.webkit.org/show_bug.cgi?id=86384
668
669         Reviewed by James Robinson.
670
671         For tests that are just on the impl tree, pretend that the main thread
672         is always blocked.
673
674         * tests/CCLayerTreeHostImplTest.cpp:
675         (CCLayerTreeHostImplTest):
676
677 2012-05-12  Sheriff Bot  <webkit.review.bot@gmail.com>
678
679         Unreviewed, rolling out r116812.
680         http://trac.webkit.org/changeset/116812
681         https://bugs.webkit.org/show_bug.cgi?id=86313
682
683         Appears to be causing a top crash (Requested by abarth on
684         #webkit).
685
686         * WebKit.gyp:
687         * public/WebStorageArea.h:
688         (WebKit):
689         (WebStorageArea):
690         (WebKit::WebStorageArea::~WebStorageArea):
691         (WebKit::WebStorageArea::setItem):
692         (WebKit::WebStorageArea::removeItem):
693         (WebKit::WebStorageArea::clear):
694         * public/WebStorageNamespace.h:
695         (WebKit):
696         (WebStorageNamespace):
697         (WebKit::WebStorageNamespace::~WebStorageNamespace):
698         (WebKit::WebStorageNamespace::isSameNamespace):
699         * public/platform/WebKitPlatformSupport.h:
700         (WebKit):
701         (WebKitPlatformSupport):
702         (WebKit::WebKitPlatformSupport::createLocalStorageNamespace):
703         * src/StorageAreaProxy.cpp:
704         * src/StorageNamespaceProxy.cpp:
705         (WebCore::StorageNamespace::localStorageNamespace):
706
707 2012-05-11  Mark Pilgrim  <pilgrim@chromium.org>
708
709         [Chromium] Call isLinkVisited directly
710         https://bugs.webkit.org/show_bug.cgi?id=85412
711
712         Reviewed by Adam Barth.
713
714         Part of a refactoring series. See tracking bug 82948.
715
716         * src/PlatformSupport.cpp:
717         (WebCore):
718
719 2012-05-11  Tony Chang  <tony@chromium.org>
720
721         [chromium] Port gtest WebViewTest.ActiveState from test_shell_tests to webkit_unit_tests
722         https://bugs.webkit.org/show_bug.cgi?id=86271
723
724         Reviewed by James Robinson.
725
726         The original test is in src/webkit/glue/webview_unittest.cc.
727
728         * tests/WebViewTest.cpp:
729         (WebKit::TEST_F):
730         (WebKit):
731
732 2012-05-11  Shawn Singh  <shawnsingh@chromium.org>
733
734         [chromium] Plumb --show-paint-rects to accelerated compositor
735         https://bugs.webkit.org/show_bug.cgi?id=86255
736
737         Reviewed by James Robinson.
738
739         * public/WebSettings.h:
740         * src/WebLayerTreeView.cpp:
741         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
742         * src/WebSettingsImpl.cpp:
743         (WebKit::WebSettingsImpl::WebSettingsImpl):
744         (WebKit::WebSettingsImpl::setShowPaintRects):
745         (WebKit):
746         * src/WebSettingsImpl.h:
747         (WebSettingsImpl):
748         (WebKit::WebSettingsImpl::showFPSCounter):
749         (WebKit::WebSettingsImpl::showPlatformLayerTree):
750         (WebKit::WebSettingsImpl::showPaintRects):
751         * src/WebViewImpl.cpp:
752         (WebKit::WebViewImpl::settingsImpl):
753         (WebKit::WebViewImpl::settings):
754         (WebKit):
755         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
756         * src/WebViewImpl.h:
757
758 2012-05-11  Ryosuke Niwa  <rniwa@webkit.org>
759
760         Do a DEPS roll per build failure caused by r116810.
761
762         See http://webkitmemes.tumblr.com/post/21734202168/the-solution-to-any-chromium-problem for the rationale.
763
764         * DEPS:
765
766 2012-05-11  Sheriff Bot  <webkit.review.bot@gmail.com>
767
768         Unreviewed, rolling out r116802.
769         http://trac.webkit.org/changeset/116802
770         https://bugs.webkit.org/show_bug.cgi?id=86260
771
772         This patch causes compiling error to chromium builds
773         (Requested by jianli_ on #webkit).
774
775         * features.gypi:
776         * src/WebInputEventConversion.cpp:
777         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
778
779 2012-05-11  Mark Pilgrim  <pilgrim@chromium.org>
780
781         [Chromium] Move createLocalStorageNamespace to Platform.h
782         https://bugs.webkit.org/show_bug.cgi?id=85766
783
784         Reviewed by Adam Barth.
785
786         Part of a refactoring series. See tracking bug 82948.
787
788         * WebKit.gyp:
789         * public/WebStorageArea.h:
790         * public/WebStorageNamespace.h:
791         * public/platform/WebKitPlatformSupport.h:
792         (WebKit):
793         (WebKit::WebKitPlatformSupport::blobRegistry):
794         * src/StorageAreaProxy.cpp:
795         * src/StorageNamespaceProxy.cpp:
796         (WebCore::StorageNamespace::localStorageNamespace):
797
798 2012-05-11  James Robinson  <jamesr@chromium.org>
799
800         [chromium] Move implementation of WebCore::GraphicsContext3D and related from WebKit/chromium/src to WebCore/platform/chromium/support
801         https://bugs.webkit.org/show_bug.cgi?id=86257
802
803         Reviewed by Adam Barth.
804
805         * WebKit.gyp:
806
807 2012-05-11  Fady Samuel  <fsamuel@chromium.org>
808
809         [Chromium] Expose WebPluginContainer of WebPlugin to embedder
810         https://bugs.webkit.org/show_bug.cgi?id=85916
811
812         Reviewed by Darin Fisher.
813
814         The browser plugin needs to access its current guest's  WebPluginContainer
815         so that it can replace the guest with another guest WebPlugin when navigating
816         across processes.
817
818         * public/WebPlugin.h:
819         (WebPlugin):
820         (WebKit::WebPlugin::container):
821
822 2012-05-11  Terry Anderson  <tdanderson@chromium.org>
823
824         [chromium] Compute the best target node on a GestureTap event
825         https://bugs.webkit.org/show_bug.cgi?id=85101
826
827         Reviewed by Adam Barth.
828
829         * features.gypi:
830         Enable the touch adjustment code by default.
831         * src/WebInputEventConversion.cpp:
832         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
833         In the case of a GestureTap, deltaX represents the horizontal padding of the touch
834         area and deltaY represents the vertical padding of the touch area.
835
836 2012-05-11  Ian Vollick  <vollick@chromium.org>
837
838         [chromium] Ensure that animations continue to run when transform-style is changed
839         https://bugs.webkit.org/show_bug.cgi?id=83283
840
841         Reviewed by James Robinson.
842
843         * WebKit.gypi:
844         * tests/GraphicsLayerChromiumTest.cpp: Added.
845         (WebKitTests):
846         (MockGraphicsLayerClient):
847         (WebKitTests::MockGraphicsLayerClient::notifyAnimationStarted):
848         (WebKitTests::MockGraphicsLayerClient::notifySyncRequired):
849         (WebKitTests::MockGraphicsLayerClient::paintContents):
850         (WebKitTests::MockGraphicsLayerClient::showDebugBorders):
851         (WebKitTests::MockGraphicsLayerClient::showRepaintCounter):
852         (WebKitTests::TEST):
853
854 2012-05-11  Min Qin  <qinmin@google.com>
855
856         split MediaPlayer::enterFullscreen into 2 seperate functions
857         https://bugs.webkit.org/show_bug.cgi?id=86052
858
859         Reviewed by Adam Barth.
860
861         In WebCore, we splitted bool enterFullscreen() into two seperate calls:
862         void enterFullscreen() and bool canEnterFullscreen()
863         This is the change in the chromium part that we needed to support the WebCore change
864         No behavior change, just refactoring.
865
866         * public/WebMediaPlayer.h:
867         (WebMediaPlayer):
868         (WebKit::WebMediaPlayer::enterFullscreen):
869         (WebKit::WebMediaPlayer::canEnterFullscreen):
870         * src/WebMediaPlayerClientImpl.cpp:
871         (WebKit::WebMediaPlayerClientImpl::enterFullscreen):
872         (WebKit):
873         (WebKit::WebMediaPlayerClientImpl::exitFullscreen):
874         * src/WebMediaPlayerClientImpl.h:
875         (WebMediaPlayerClientImpl):
876         * src/WebViewImpl.cpp:
877         (WebKit::WebViewImpl::enterFullScreenForElement):
878
879 2012-05-11  David Reveman  <reveman@chromium.org>
880
881         [Chromium] Move instantiation of texture uploader to LayerRendererChromium.
882         https://bugs.webkit.org/show_bug.cgi?id=85893
883
884         Reviewed by Adrienne Walker.
885
886         * tests/CCLayerTreeHostImplTest.cpp:
887         (WebKitTests::CCLayerTreeHostImplTest::CCLayerTreeHostImplTest):
888         (WebKitTests::TEST_F):
889         * tests/LayerRendererChromiumTest.cpp:
890         (FakeLayerRendererChromium::FakeLayerRendererChromium):
891         (LayerRendererChromiumTest::LayerRendererChromiumTest):
892         (TEST):
893
894 2012-05-11  Sheriff Bot  <webkit.review.bot@gmail.com>
895
896         Unreviewed, rolling out r116727.
897         http://trac.webkit.org/changeset/116727
898         https://bugs.webkit.org/show_bug.cgi?id=86181
899
900         Build error on Chromium-Android (Requested by tkent on
901         #webkit).
902
903         * public/WebMediaPlayer.h:
904         (WebMediaPlayer):
905         (WebKit::WebMediaPlayer::enterFullscreen):
906         (WebKit::WebMediaPlayer::exitFullscreen):
907         * src/WebMediaPlayerClientImpl.cpp:
908         (WebKit::WebMediaPlayerClientImpl::enterFullscreen):
909         (WebKit::WebMediaPlayerClientImpl::exitFullscreen):
910         * src/WebMediaPlayerClientImpl.h:
911         (WebMediaPlayerClientImpl):
912         * src/WebViewImpl.cpp:
913         (WebKit::WebViewImpl::enterFullScreenForElement):
914
915 2012-05-11  Sheriff Bot  <webkit.review.bot@gmail.com>
916
917         Unreviewed, rolling out r116731.
918         http://trac.webkit.org/changeset/116731
919         https://bugs.webkit.org/show_bug.cgi?id=86178
920
921         Build failure on Chromium-mac (Requested by tkent on #webkit).
922
923         * tests/CCLayerTreeHostImplTest.cpp:
924         (WebKitTests::CCLayerTreeHostImplTest::CCLayerTreeHostImplTest):
925         (WebKitTests::TEST_F):
926         * tests/LayerRendererChromiumTest.cpp:
927         (FakeLayerRendererChromium::FakeLayerRendererChromium):
928         (LayerRendererChromiumTest::LayerRendererChromiumTest):
929         (TEST):
930
931 2012-05-10  David Reveman  <reveman@chromium.org>
932
933         [Chromium] Move instantiation of texture uploader to LayerRendererChromium.
934         https://bugs.webkit.org/show_bug.cgi?id=85893
935
936         Reviewed by Adrienne Walker.
937
938         * tests/CCLayerTreeHostImplTest.cpp:
939         (WebKitTests::CCLayerTreeHostImplTest::CCLayerTreeHostImplTest):
940         (WebKitTests::TEST_F):
941         * tests/LayerRendererChromiumTest.cpp:
942         (FakeLayerRendererChromium::FakeLayerRendererChromium):
943         (LayerRendererChromiumTest::LayerRendererChromiumTest):
944         (TEST):
945
946 2012-05-10  Min Qin  <qinmin@google.com>
947
948         split MediaPlayer::enterFullscreen into 2 seperate functions
949         https://bugs.webkit.org/show_bug.cgi?id=86052
950
951         Reviewed by Benjamin Poulain.
952
953         It is confusing that enterFullscreen returns a boolean while exitFullscreen does
954         not do the same. And ios does not need the return value.
955         So remove the return value on enterFullscreen and make a seperate canEnterFullscreen()
956         function for android.
957         No behavior change, just refactoring.
958
959         * public/WebMediaPlayer.h:
960         (WebMediaPlayer):
961         (WebKit::WebMediaPlayer::enterFullscreen):
962         (WebKit::WebMediaPlayer::canEnterFullscreen):
963         * src/WebMediaPlayerClientImpl.cpp:
964         (WebKit::WebMediaPlayerClientImpl::enterFullscreen):
965         (WebKit):
966         (WebKit::WebMediaPlayerClientImpl::exitFullscreen):
967         * src/WebMediaPlayerClientImpl.h:
968         (WebMediaPlayerClientImpl):
969         * src/WebViewImpl.cpp:
970         (WebKit::WebViewImpl::enterFullScreenForElement):
971
972 2012-05-10  Hajime Morrita  <morrita@google.com>
973
974         WebKit should support tab-size.
975         https://bugs.webkit.org/show_bug.cgi?id=52994
976
977         Reviewed by Simon Fraser.
978
979         * src/WebTextRun.cpp:
980         (WebKit::WebTextRun::operator WebCore::TextRun):
981
982 2012-05-10  Kent Tamura  <tkent@chromium.org>
983
984         Unreviewed, rolling out r116594.
985         http://trac.webkit.org/changeset/116594
986         https://bugs.webkit.org/show_bug.cgi?id=86013
987
988         r116594 might have made some composition tests flaky.
989
990         * tests/CCLayerTreeHostTest.cpp:
991         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::animateLayers):
992         (WTF):
993         (WTF::TEST_F):
994
995 2012-05-10  Jian Li  <jianli@chromium.org>
996
997         Unreviewed. Fix chromium build break.
998
999         * src/LocalizedStrings.cpp:
1000         (WebCore::insecurePluginVersionText):
1001
1002 2012-05-10  Michael Nordman  <michaeln@google.com>
1003
1004         [chromium] DomStorage events handling needs TLC (2)
1005         https://bugs.webkit.org/show_bug.cgi?id=85221
1006         Alter the WebStorageArea virtual interface such that the mutators no longer
1007         return old values. This is to allow implementations of the interface to operate
1008         more asynchronously.
1009
1010         Also clean up from the last patch, remove support for the DEPRECATED event
1011         dispatching API.
1012
1013         Reviewed by Adam Barth.
1014
1015         * WebKit.gyp: delete three files indicated below
1016         * public/WebStorageArea.h:
1017         (WebKit::WebStorageArea::setItem): no longer returns the old value
1018         (WebKit::WebStorageArea::removeItem): no longer returns the old value
1019         (WebKit::WebStorageArea::clear): no longer returns a bool indicated if something was cleared
1020         * public/WebStorageEventDispatcher.h: removed the DEPRECATED instance methods
1021         * public/WebStorageNamespace.h: removed the DEPRECATED close() method
1022         * public/platform/WebKitPlatformSupport.h: removed the DEPRECATED dispatchStorageEvent() method
1023         * src/StorageAreaProxy.cpp: removed the DEPREACTED storageEvent() method
1024         (WebCore::StorageAreaProxy::setItem): no return value
1025         (WebCore::StorageAreaProxy::removeItem): no return value
1026         (WebCore::StorageAreaProxy::clear): no return value
1027         (WebCore::StorageAreaProxy::dispatchLocalStorageEvent): remove an early return thats no longer needed
1028         (WebCore::findPageWithSessionStorageNamespace): switched to passing pageGroup by ptr value instead of by name
1029         (WebCore::StorageAreaProxy::dispatchSessionStorageEvent): remove an early return thats no longer needed
1030         * src/StorageAreaProxy.h:
1031         (WebCore):
1032         (StorageAreaProxy):
1033         * src/StorageEventDispatcherImpl.cpp: Deleted the file.
1034         * src/StorageEventDispatcherImpl.h: Deleted the file.
1035         * src/WebStorageEventDispatcherImpl.cpp: Deleted the DEPRECATED instance methods.
1036         (WebKit::WebStorageEventDispatcher::dispatchLocalStorageEvent): use WebViewImpl::defaultPageGroup
1037         (WebKit::WebStorageEventDispatcher::dispatchSessionStorageEvent): use WebViewImpl::defaultPageGroup
1038         * src/WebStorageEventDispatcherImpl.h: Deleted the file.
1039         * src/WebViewImpl.cpp: added a static method to retrieve a ptr to the default page group,
1040         (WebKit::WebViewImpl::defaultPageGroup):
1041         * src/WebViewImpl.h:
1042
1043
1044 2012-05-10  Anders Carlsson  <andersca@apple.com>
1045
1046         Add insecurePluginVersionText stub here too.
1047
1048         * src/LocalizedStrings.cpp:
1049
1050 2012-05-10  Mark Pilgrim  <pilgrim@chromium.org>
1051
1052         [Chromium] Call addTraceEvent and getTraceCategoryEnabledFlag directly
1053         https://bugs.webkit.org/show_bug.cgi?id=85399
1054
1055         Reviewed by Adam Barth.
1056
1057         Part of a refactoring series. See tracking bug 82948.
1058
1059         * src/PlatformSupport.cpp:
1060         (WebCore):
1061
1062 2012-05-10  Mark Pilgrim  <pilgrim@chromium.org>
1063
1064         [Chromium] Remove WEBKIT_USING_SKIA ifdefs that are always true
1065         https://bugs.webkit.org/show_bug.cgi?id=86121
1066
1067         Reviewed by Adam Barth.
1068
1069         Chromium always uses Skia now, so this just removes the barriers
1070         around code that was previously #if'd.
1071
1072         * README:
1073         * src/DragClientImpl.cpp:
1074         (WebKit::DragClientImpl::startDrag):
1075         * src/PageOverlay.cpp:
1076         * src/PlatformSupport.cpp:
1077         (WebCore::PlatformSupport::clipboardWriteImage):
1078         (WebCore::PlatformSupport::paintScrollbarThumb):
1079         * src/WebContentLayerImpl.cpp:
1080         (WebKit::WebContentLayerImpl::paintContents):
1081         * src/WebFontImpl.cpp:
1082         (WebKit::WebFontImpl::drawText):
1083         * src/WebFrameImpl.cpp:
1084         (WebKit::WebFrameImpl::printPage):
1085         (WebKit::WebFrameImpl::printPagesWithBoundaries):
1086         * src/WebGraphicsContext3D.cpp:
1087         (WebKit::WebGraphicsContext3D::createGrGLInterface):
1088         * src/WebImageDecoder.cpp:
1089         (WebKit::WebImageDecoder::getFrameAtIndex):
1090         * src/WebPluginContainerImpl.cpp:
1091         (WebKit::WebPluginContainerImpl::paint):
1092         (WebKit::WebPluginContainerImpl::printPage):
1093         * src/painting/GraphicsContextBuilder.h:
1094         (WebKit):
1095
1096 2012-05-10  Tom Sepez  <tsepez@chromium.org>
1097
1098         [Chromium] WebFrameTest.ChromePageNoJavascript isn't catching regressions
1099         https://bugs.webkit.org/show_bug.cgi?id=86046
1100
1101         Reviewed by Adam Barth.
1102
1103         Test both cases for registerURLSchemeAsNotAllowingJavascriptURLs.  Also add
1104         a call to layout() to ensure the javascript result is seen.
1105         
1106         * tests/WebFrameTest.cpp:
1107         (WebKit::TEST_F):
1108         (WebKit):
1109
1110 2012-05-10  Varun Jain  <varunjain@google.com>
1111
1112         [chromium] Trigger context menu for long press gesture
1113         https://bugs.webkit.org/show_bug.cgi?id=85919
1114
1115         Reviewed by Adam Barth.
1116
1117         * src/PageWidgetDelegate.cpp:
1118         (WebKit::PageWidgetDelegate::handleInputEvent):
1119         * src/WebViewImpl.cpp:
1120         (WebKit::WebViewImpl::handleGestureEvent):
1121
1122 2012-05-10  Mark Pilgrim  <pilgrim@chromium.org>
1123
1124         [Chromium] Remove dead code behind unused WEBKIT_USING_CG
1125         https://bugs.webkit.org/show_bug.cgi?id=86018
1126
1127         Reviewed by Adam Barth.
1128
1129         We never use CoreGraphics as the backend for GraphicsContext in
1130         Chromium, so this is all dead code.
1131
1132         * README:
1133         * src/PageOverlay.cpp:
1134         * src/WebContentLayerImpl.cpp:
1135         (WebKit::WebContentLayerImpl::paintContents):
1136         * src/WebFontImpl.cpp:
1137         (WebKit::WebFontImpl::drawText):
1138         * src/WebImageDecoder.cpp:
1139         (WebKit::WebImageDecoder::getFrameAtIndex):
1140         * src/WebPluginContainerImpl.cpp:
1141         (WebKit::WebPluginContainerImpl::paint):
1142         (WebKit::WebPluginContainerImpl::printPage):
1143         * src/painting/GraphicsContextBuilder.h:
1144         (WebKit):
1145
1146 2012-05-10  Sam D  <dsam2912@gmail.com>
1147
1148         Web Inspector: rename InspectorBackendStub.js to InspectorBackendCommands.js
1149         https://bugs.webkit.org/show_bug.cgi?id=72306
1150
1151         Changed name for InspectorBackendStub.js to InspectorBackendCommands.js
1152
1153         Reviewed by Yury Semikhatsky.
1154
1155         * WebKit.gyp:
1156
1157 2012-05-09  Kent Tamura  <tkent@chromium.org>
1158
1159         [Chromium] Mark CCLayerTreeHostTestSetNeedsCommit2.runMultiThread and
1160         CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity.runMultiThread flaky.
1161
1162         * tests/CCLayerTreeHostTest.cpp:
1163
1164 2012-05-09  Dan Alcantara  <dfalcantara@chromium.org>
1165
1166         [chromium] Add ability to override user agent string per-WebFrameClient
1167         https://bugs.webkit.org/show_bug.cgi?id=83959
1168         
1169         Reviewed by Adam Barth.
1170         
1171         Adds a method that can be used to override the normal user agent in
1172         chromium.  Also adds a unit test to check if the override is taking effect.
1173
1174         * WebKit.gypi:
1175         * public/WebFrameClient.h:
1176         (WebFrameClient):
1177         (WebKit::WebFrameClient::userAgent):
1178         * src/FrameLoaderClientImpl.cpp:
1179         (WebKit::FrameLoaderClientImpl::userAgent):
1180         * tests/FrameLoaderClientImplTest.cpp: Added.
1181         (WebKit):
1182         (TestWebFrameClient):
1183         (WebKit::TestWebFrameClient::setUserAgentOverride):
1184         (FrameLoaderClientImplTest):
1185         (WebKit::FrameLoaderClientImplTest::SetUp):
1186         (WebKit::FrameLoaderClientImplTest::TearDown):
1187         (WebKit::FrameLoaderClientImplTest::setUserAgentOverride):
1188         (WebKit::FrameLoaderClientImplTest::userAgent):
1189         (WebKit::TEST_F):
1190
1191 2012-05-09  Charlie Reis  <creis@chromium.org>
1192
1193         Add dispatchMessageEventWithOriginCheck to WebFrame
1194         https://bugs.webkit.org/show_bug.cgi?id=85815
1195
1196         Reviewed by Adam Barth.
1197
1198         Tested by WebFrameTest.DispatchMessageEventWithOriginCheck.
1199         Also fixes source frame bug in willCheckAndDispatchMessageEvent.
1200
1201         * public/WebFrame.h:
1202         (WebFrame):
1203         * src/FrameLoaderClientImpl.cpp:
1204         (WebKit::FrameLoaderClientImpl::willCheckAndDispatchMessageEvent):
1205         * src/WebFrameImpl.cpp:
1206         (WebKit::WebFrameImpl::checkAndDispatchMessageEvent):
1207         (WebKit):
1208         * src/WebFrameImpl.h:
1209         (WebFrameImpl):
1210
1211 2012-05-09  Hironori Bono  <hbono@chromium.org>
1212
1213         Fix a crash in ContextMenuClientImpl::getCustomMenuFromDefaultItems
1214         https://bugs.webkit.org/show_bug.cgi?id=85866
1215
1216         Reviewed by Ryosuke Niwa.
1217
1218         DocumentMarkerController::markersInRange crashes if the input range is NULL.
1219         This change adds a NULL check before getCustomMenuFromDefaultItems() calls this
1220         function to avoid this crash.
1221
1222         * src/ContextMenuClientImpl.cpp:
1223         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): Added a NULL check.
1224
1225 2012-05-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1226
1227         Unreviewed, rolling out r116602.
1228         http://trac.webkit.org/changeset/116602
1229         https://bugs.webkit.org/show_bug.cgi?id=86057
1230
1231         Build error on Windows (Requested by tkent on #webkit).
1232
1233         * WebKit.gypi:
1234         * public/WebFrameClient.h:
1235         * src/FrameLoaderClientImpl.cpp:
1236         (WebKit::FrameLoaderClientImpl::userAgent):
1237         * tests/FrameLoaderClientImplTest.cpp: Removed.
1238
1239 2012-05-09  Kent Tamura  <tkent@chromium.org>
1240
1241         [Chromium] Fix compilation warning on Android.
1242         https://bugs.webkit.org/show_bug.cgi?id=85958
1243
1244         * features.gypi: Move ENABLE_MEDIA_CAPTURE=0 to non-Android block.
1245
1246 2012-05-09  Dan Alcantara  <dfalcantara@chromium.org>
1247
1248         [chromium] Add ability to override user agent string per-WebFrameClient
1249         https://bugs.webkit.org/show_bug.cgi?id=83959
1250         
1251         Reviewed by Adam Barth.
1252         
1253         Adds a method that can be used to override the normal user agent in
1254         chromium.  Also adds a unit test to check if the override is taking effect.
1255
1256         * WebKit.gypi:
1257         * public/WebFrameClient.h:
1258         (WebFrameClient):
1259         (WebKit::WebFrameClient::userAgent):
1260         * src/FrameLoaderClientImpl.cpp:
1261         (WebKit::FrameLoaderClientImpl::userAgent):
1262         * tests/FrameLoaderClientImplTest.cpp: Added.
1263         (WebKit):
1264         (TestWebFrameClient):
1265         (WebKit::TestWebFrameClient::setUserAgentOverride):
1266         (FrameLoaderClientImplTest):
1267         (WebKit::FrameLoaderClientImplTest::SetUp):
1268         (WebKit::FrameLoaderClientImplTest::TearDown):
1269         (WebKit::FrameLoaderClientImplTest::setUserAgentOverride):
1270         (WebKit::FrameLoaderClientImplTest::userAgent):
1271         (WebKit::TEST_F):
1272
1273 2012-05-09  Ian Vollick  <vollick@chromium.org>
1274
1275         [chromium] Ensure animations get ticked at least once when added.
1276         https://bugs.webkit.org/show_bug.cgi?id=86013
1277
1278         Reviewed by James Robinson.
1279
1280         * tests/CCLayerTreeHostTest.cpp:
1281         (WTF::CCLayerTreeHostTestTickAnimationWhileBackgrounded::animateLayers):
1282         (WTF):
1283
1284 2012-05-09  Adam Barth  <abarth@webkit.org>
1285
1286         Implement HTML Media Capture
1287         https://bugs.webkit.org/show_bug.cgi?id=85958
1288
1289         Reviewed by Eric Seidel.
1290
1291         * features.gypi:
1292         * public/WebFileChooserParams.h:
1293         (WebFileChooserParams):
1294         * src/ChromeClientImpl.cpp:
1295         (WebKit::ChromeClientImpl::runOpenPanel):
1296
1297 2012-05-09  Dana Jansens  <danakj@chromium.org>
1298
1299         [chromium] Don't draw when canDraw() is false
1300         https://bugs.webkit.org/show_bug.cgi?id=85829
1301
1302         Reviewed by Adrienne Walker.
1303
1304         * tests/CCLayerTreeHostImplTest.cpp:
1305         (WebKitTests::CCLayerTreeHostImplTest::CCLayerTreeHostImplTest):
1306         (WebKitTests::TEST_F):
1307         * tests/CCLayerTreeHostTest.cpp:
1308         (WTF):
1309         (CCLayerTreeHostTestCanDrawBlocksDrawing):
1310         (WTF::CCLayerTreeHostTestCanDrawBlocksDrawing::CCLayerTreeHostTestCanDrawBlocksDrawing):
1311         (WTF::CCLayerTreeHostTestCanDrawBlocksDrawing::beginTest):
1312         (WTF::CCLayerTreeHostTestCanDrawBlocksDrawing::commitCompleteOnCCThread):
1313         (WTF::CCLayerTreeHostTestCanDrawBlocksDrawing::drawLayersOnCCThread):
1314         (WTF::CCLayerTreeHostTestCanDrawBlocksDrawing::didCommitAndDrawFrame):
1315         (WTF::CCLayerTreeHostTestCanDrawBlocksDrawing::afterTest):
1316         (WTF::TEST_F):
1317
1318 2012-05-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1319
1320         Unreviewed, rolling out r116573.
1321         http://trac.webkit.org/changeset/116573
1322         https://bugs.webkit.org/show_bug.cgi?id=86038
1323
1324         Broke the Chromium Mac compile (Requested by ojan_gardening on
1325         #webkit).
1326
1327         * public/WebPlugin.h:
1328         (WebPlugin):
1329
1330 2012-05-09  Fady Samuel  <fsamuel@chromium.org>
1331
1332         [Chromium] Expose WebPluginContainer of WebPlugin to embedder
1333         https://bugs.webkit.org/show_bug.cgi?id=85916
1334
1335         Reviewed by Darin Fisher.
1336
1337         The browser plugin needs to access its current guest's  WebPluginContainer
1338         so that it can replace the guest with another guest WebPlugin when navigating
1339         across processes.
1340
1341         * public/WebPlugin.h:
1342         (WebPlugin):
1343         (WebKit::WebPlugin::container):
1344
1345 2012-05-09  Mark Pilgrim  <pilgrim@chromium.org>
1346
1347         [Chromium] Move clipboard to Platform.h
1348         https://bugs.webkit.org/show_bug.cgi?id=85758
1349
1350         Reviewed by Adam Barth.
1351
1352         Part of a refactoring series. See tracking bug 82948.
1353
1354         * WebKit.gyp:
1355         * public/platform/WebClipboard.h:
1356         * public/platform/WebDragData.h:
1357         * public/platform/WebImage.h:
1358         * public/platform/WebKitPlatformSupport.h:
1359         (WebKit):
1360         (WebKitPlatformSupport):
1361         * src/AssertMatchingEnums.cpp:
1362         * src/DragClientImpl.cpp:
1363         * src/PlatformSupport.cpp:
1364         * src/WebDragData.cpp:
1365         * src/WebImageCG.cpp:
1366         * src/WebImageDecoder.cpp:
1367         * src/WebImageSkia.cpp:
1368         * src/WebPluginContainerImpl.cpp:
1369         (WebKit::WebPluginContainerImpl::copy):
1370         * src/WebViewImpl.cpp:
1371
1372 2012-05-09  Mark Pilgrim  <pilgrim@chromium.org>
1373
1374         [Chromium] Remove PlatformSupport::loadPlatformImageResource, call loadResource directly
1375         https://bugs.webkit.org/show_bug.cgi?id=84417
1376
1377         Reviewed by Adam Barth.
1378
1379         Part of a refactoring series. See tracking bug 82948.
1380
1381         * src/PlatformSupport.cpp:
1382         (WebCore):
1383
1384 2012-05-09  Jochen Eisinger  <jochen@chromium.org>
1385
1386         [chromium] remove the obsolete WebFrame::referrerPolicy method
1387         https://bugs.webkit.org/show_bug.cgi?id=86003
1388
1389         Reviewed by Adam Barth.
1390
1391         * public/WebFrame.h:
1392         * src/WebFrameImpl.cpp:
1393         * src/WebFrameImpl.h:
1394         (WebFrameImpl):
1395
1396 2012-05-09  Jochen Eisinger  <jochen@chromium.org>
1397
1398         [chromium] Check whether an active document loader exists before accessing it
1399         https://bugs.webkit.org/show_bug.cgi?id=85892
1400
1401         Reviewed by Eric Seidel.
1402
1403         Although FrameLoader::loadInSameDocument which invokes this
1404         method does not have a provisional document loader, we're seeing crashes
1405         where the FrameLoader is in provisional state, and thus
1406         activeDocumentLoader returns 0. Lacking any understanding of how this
1407         can happen, we do this check here to avoid crashing.
1408
1409         * src/FrameLoaderClientImpl.cpp:
1410         (WebKit::FrameLoaderClientImpl::dispatchDidNavigateWithinPage):
1411
1412 2012-05-09  Ian Vollick  <vollick@chromium.org>
1413
1414         [chromium] Add impl-thread support for fill-mode and direction css animation properties
1415         https://bugs.webkit.org/show_bug.cgi?id=77662
1416
1417         Reviewed by James Robinson.
1418
1419         * tests/CCActiveAnimationTest.cpp:
1420         (WebCore::TEST):
1421         (WebCore):
1422         * tests/CCLayerAnimationControllerTest.cpp:
1423         (WebKitTests::TEST):
1424         (WebKitTests):
1425
1426 2012-05-09  Ojan Vafai  <ojan@chromium.org>
1427
1428         Unreviewed.  Rolled DEPS.
1429
1430         * DEPS:
1431
1432 2012-05-09  Marcus Bulach  <bulach@chromium.org>
1433
1434         [chromium] Exposes OrientationChangeEvent.
1435         https://bugs.webkit.org/show_bug.cgi?id=85976
1436
1437         Reviewed by Adam Barth.
1438
1439         This is used by the android port, we need to expose the existing
1440         WebCore API.
1441
1442         * public/WebFrame.h:
1443         (WebFrame):
1444         * src/WebFrameImpl.cpp:
1445         (WebKit::WebFrameImpl::sendOrientationChangeEvent):
1446         (WebKit):
1447         * src/WebFrameImpl.h:
1448         (WebFrameImpl):
1449
1450 2012-05-09  Dana Jansens  <danakj@chromium.org>
1451
1452         Early-out and avoid any copying when possible for Region operations
1453         https://bugs.webkit.org/show_bug.cgi?id=85260
1454
1455         Reviewed by Anders Carlsson.
1456
1457         * tests/RegionTest.cpp:
1458         (WebCore::TEST):
1459         (WebCore):
1460
1461 2012-05-09  Tommy Widenflycht  <tommyw@google.com>
1462
1463         [chromium] MediaStream API: Fixing a memory leak in WebUserMediaRequest
1464         https://bugs.webkit.org/show_bug.cgi?id=85992
1465
1466         Reviewed by Adam Barth.
1467
1468         * src/WebUserMediaRequest.cpp:
1469         (WebKit::WebUserMediaRequest::assign):
1470
1471 2012-05-09  Kent Tamura  <tkent@chromium.org>
1472
1473         [Chromium] Disable WebViewTest.TextInputType because the test is incomplete.
1474
1475         * tests/WebViewTest.cpp:
1476
1477 2012-05-09  Kent Tamura  <tkent@chromium.org>
1478
1479         [Chromium] Some of *.runMultiThread tests intermittently crash.
1480         Mark them flaky.
1481
1482         * tests/CCLayerTreeHostTest.cpp:
1483
1484 2012-05-09  Oli Lan  <olilan@chromium.org>
1485
1486         Adds date/time input types to WebTextInputType, and adds support for these
1487         to WebViewImpl.textInputType().
1488
1489         Adds a new test WebViewTest.TextInputType to test WebViewImpl.textInputType(),
1490         including the new types.
1491
1492         https://bugs.webkit.org/show_bug.cgi?id=78746
1493
1494         Reviewed by Kent Tamura.
1495
1496         * public/WebTextInputType.h:
1497         * src/WebViewImpl.cpp:
1498         (WebKit::WebViewImpl::textInputType):
1499         * tests/WebViewTest.cpp:
1500         (WebViewTest):
1501         (WebKit::WebViewTest::testTextInputType):
1502         (WebKit):
1503         (WebKit::TEST_F):
1504         * tests/data/input_field_date.html: Added.
1505         * tests/data/input_field_datetime.html: Added.
1506         * tests/data/input_field_default.html: Added.
1507         * tests/data/input_field_email.html: Added.
1508         * tests/data/input_field_number.html: Added.
1509         * tests/data/input_field_search.html: Added.
1510         * tests/data/input_field_time.html: Added.
1511         * tests/data/input_field_week.html: Added.
1512
1513 2012-05-08  Jochen Eisinger  <jochen@chromium.org>
1514
1515         Unreviewed.  Rolled DEPS.
1516
1517         * DEPS:
1518
1519 2012-05-08  Dana Jansens  <danakj@chromium.org>
1520
1521         [chromium] Show borders for partial-draw-culled quads to visualize culling behaviour
1522         https://bugs.webkit.org/show_bug.cgi?id=85414
1523
1524         Reviewed by Adrienne Walker.
1525
1526         * tests/CCQuadCullerTest.cpp:
1527         (WebCore::appendQuads):
1528         * tests/MockCCQuadCuller.h:
1529         (WebCore::MockCCQuadCuller::MockCCQuadCuller):
1530
1531 2012-05-08  Tony Chang  <tony@chromium.org>
1532
1533         [chromium] force ENABLE_REGISTER_PROTOCOL_HANDLER=1 in features.gypi
1534         https://bugs.webkit.org/show_bug.cgi?id=85924
1535
1536         Reviewed by Adam Barth.
1537
1538         This has been enabled for a few months on Chromium trunk so remove the
1539         ability to turn it off via a gyp flag. This simplifies features.gypi.
1540
1541         * features.gypi:
1542
1543 2012-05-08  Dana Jansens  <danakj@chromium.org>
1544
1545         [chromium] Reflections with masks should not occlude
1546         https://bugs.webkit.org/show_bug.cgi?id=85927
1547
1548         Reviewed by James Robinson.
1549
1550         * tests/CCOcclusionTrackerTest.cpp:
1551         (WebKitTests::CCOcclusionTrackerTest::TearDown):
1552         (WebKitTests::CCOcclusionTrackerTest::createMaskLayer):
1553         (CCOcclusionTrackerTest):
1554         (WebKitTests::CCOcclusionTrackerTest::setMask):
1555         (CCOcclusionTrackerTestReplicaWithMask):
1556         (WebKitTests::CCOcclusionTrackerTestReplicaWithMask::runMyTest):
1557         (WebKitTests):
1558
1559 2012-05-08  Dana Jansens  <danakj@chromium.org>
1560
1561         Region reads past end of spans
1562         https://bugs.webkit.org/show_bug.cgi?id=85909
1563
1564         Reviewed by Anders Carlsson.
1565
1566         * tests/RegionTest.cpp:
1567         (WebCore::TEST):
1568         (WebCore):
1569
1570 2012-05-08  Tony Chang  <tony@chromium.org>
1571
1572         move listener_leak_test to webkit_unit_tests
1573         https://bugs.webkit.org/show_bug.cgi?id=85922
1574
1575         Reviewed by Ojan Vafai.
1576
1577         Porting the test from src/webkit/tools/test_shell/listener_leak_test.cc.
1578         All I did was change the style and use the FrameTestHelper to load the file.
1579
1580         * WebKit.gyp: Exclude file in components build.
1581         * WebKit.gypi: Add new file.
1582         * tests/ListenerLeakTest.cpp: Added.
1583         (WebKit):
1584         (WebKit::GetProperty):
1585         (WebKit::GetNumObjects):
1586         (ListenerLeakTest):
1587         (WebKit::ListenerLeakTest::ListenerLeakTest):
1588         (WebKit::ListenerLeakTest::RunTest):
1589         (WebKit::TEST_F):
1590         * tests/data/listener/listener_leak1.html: Added.
1591         * tests/data/listener/listener_leak2.html: Added.
1592
1593 2012-05-08  W. James MacLean  <wjmaclean@chromium.org>
1594
1595         [chromium] Create LinkHighlightLayerChromium class to provide link-highlight preview animations for GraphicsLayerChromium.
1596         https://bugs.webkit.org/show_bug.cgi?id=85084
1597
1598         Reviewed by James Robinson.
1599
1600         * WebKit.gypi:
1601         * tests/LinkHighlightTest.cpp: Added.
1602         (WebCore):
1603         (MockGraphicsLayerClient):
1604         (WebCore::MockGraphicsLayerClient::notifyAnimationStarted):
1605         (WebCore::MockGraphicsLayerClient::notifySyncRequired):
1606         (WebCore::MockGraphicsLayerClient::paintContents):
1607         (WebCore::MockGraphicsLayerClient::showDebugBorders):
1608         (WebCore::MockGraphicsLayerClient::showRepaintCounter):
1609         (WebCore::TEST):
1610
1611 2012-05-08  Tony Chang  <tony@chromium.org>
1612
1613         [chromium] move event_listener_unittest to webkit_unit_tests
1614         https://bugs.webkit.org/show_bug.cgi?id=85836
1615
1616         Reviewed by James Robinson.
1617
1618         Porting the test from src/webkit/tools/test_shell/event_listener_unittest.cc.
1619         All I did was change the style and use the FrameTestHelper to load the file.
1620
1621         * WebKit.gyp: Exclude file in components build.
1622         * WebKit.gypi: Add new file.
1623         * tests/EventListenerTest.cpp: Added.
1624         (WebKit):
1625         (TestWebDOMEventListener):
1626         (WebKit::TestWebDOMEventListener::TestWebDOMEventListener):
1627         (WebKit::TestWebDOMEventListener::~TestWebDOMEventListener):
1628         (WebKit::TestWebDOMEventListener::eventCount):
1629         (WebKit::TestWebDOMEventListener::eventAt):
1630         (WebKit::TestWebDOMEventListener::clearEvents):
1631         (WebDOMEventListenerTest):
1632         (WebKit::WebDOMEventListenerTest::WebDOMEventListenerTest):
1633         (WebKit::WebDOMEventListenerTest::SetUp):
1634         (WebKit::WebDOMEventListenerTest::TearDown):
1635         (WebKit::WebDOMEventListenerTest::mainFrame):
1636         (WebKit::WebDOMEventListenerTest::document):
1637         (WebKit::WebDOMEventListenerTest::executeScript):
1638         (WebKit::WebDOMEventListenerTest::GetNodeID):
1639         (WebKit::TEST_F):
1640         * tests/data/listener/mutation_event_listener.html: Added.
1641
1642 2012-05-07  Kinuko Yasuda  <kinuko@chromium.org>
1643
1644         Unreviewed build fix: didOpenFileSystem hides overloaded virtual function
1645
1646         * src/WorkerAsyncFileSystemChromium.cpp:
1647
1648 2012-05-07  Kinuko Yasuda  <kinuko@chromium.org>
1649
1650         Unreviewed build fix: adding missing include.
1651
1652         * src/AsyncFileSystemChromium.cpp:
1653
1654 2012-05-07  Kinuko Yasuda  <kinuko@chromium.org>
1655
1656         Support cross-filesystem operations in FileSystem API
1657         https://bugs.webkit.org/show_bug.cgi?id=84135
1658
1659         Reviewed by David Levin.
1660
1661         Currently we pass Entry's fullPath to AsyncFileSystem layer where
1662         we convert the given path to filesystem URL which includes origin and
1663         filesystem type information, but in that way we cannot handle
1664         cross-filesystem operations (e.g. cross-filesystem copy and move)
1665         well since we end up with always attaching the source filesystem's
1666         origin and type information for argument paths.
1667
1668         This patch does:
1669         - move filesystem-type related code out of AsyncFileSystemChromium.cpp
1670           (moving into DOMFileSystemChromium.cpp)
1671         - change AsyncFileSystemChromium's methods implementation not to take
1672           entry paths but complete filesystem URLs.
1673
1674         * src/AsyncFileSystemChromium.cpp:
1675         (WebCore::AsyncFileSystemChromium::AsyncFileSystemChromium):
1676         (WebCore::AsyncFileSystemChromium::move):
1677         (WebCore::AsyncFileSystemChromium::copy):
1678         (WebCore::AsyncFileSystemChromium::remove):
1679         (WebCore::AsyncFileSystemChromium::removeRecursively):
1680         (WebCore::AsyncFileSystemChromium::readMetadata):
1681         (WebCore::AsyncFileSystemChromium::createFile):
1682         (WebCore::AsyncFileSystemChromium::createDirectory):
1683         (WebCore::AsyncFileSystemChromium::fileExists):
1684         (WebCore::AsyncFileSystemChromium::directoryExists):
1685         (WebCore::AsyncFileSystemChromium::readDirectory):
1686         (WebCore::AsyncFileSystemChromium::createWriter):
1687         (WebCore::AsyncFileSystemChromium::createSnapshotFileAndReadMetadata):
1688         * src/AsyncFileSystemChromium.h:
1689         (WebCore::AsyncFileSystemChromium::create):
1690         (AsyncFileSystemChromium):
1691         * src/LocalFileSystemChromium.cpp:
1692         (WebCore::openFileSystemHelper):
1693         * src/PlatformSupport.cpp:
1694         (WebCore::PlatformSupport::createAsyncFileSystem):
1695         * src/WebFileSystemCallbacksImpl.cpp:
1696         (WebKit::WebFileSystemCallbacksImpl::WebFileSystemCallbacksImpl):
1697         (WebKit::WebFileSystemCallbacksImpl::didOpenFileSystem):
1698         * src/WebFileSystemCallbacksImpl.h:
1699         (WebFileSystemCallbacksImpl):
1700         * src/WebFrameImpl.cpp:
1701         (WebKit::WebFrameImpl::createFileSystem):
1702         (WebKit::WebFrameImpl::createFileEntry):
1703         * src/WorkerAsyncFileSystemChromium.cpp:
1704         (WebCore::WorkerAsyncFileSystemChromium::WorkerAsyncFileSystemChromium):
1705         (WebCore::WorkerAsyncFileSystemChromium::move):
1706         (WebCore::WorkerAsyncFileSystemChromium::copy):
1707         (WebCore::WorkerAsyncFileSystemChromium::remove):
1708         (WebCore::WorkerAsyncFileSystemChromium::removeRecursively):
1709         (WebCore::WorkerAsyncFileSystemChromium::readMetadata):
1710         (WebCore::WorkerAsyncFileSystemChromium::createFile):
1711         (WebCore::WorkerAsyncFileSystemChromium::createDirectory):
1712         (WebCore::WorkerAsyncFileSystemChromium::fileExists):
1713         (WebCore::WorkerAsyncFileSystemChromium::directoryExists):
1714         (WebCore::WorkerAsyncFileSystemChromium::readDirectory):
1715         (WebCore::WorkerAsyncFileSystemChromium::createWriter):
1716         (WebCore::WorkerAsyncFileSystemChromium::createSnapshotFileAndReadMetadata):
1717         * src/WorkerAsyncFileSystemChromium.h:
1718         (WebCore::WorkerAsyncFileSystemChromium::create):
1719         (WorkerAsyncFileSystemChromium):
1720
1721 2012-05-07  Greg Billock  <gbillock@google.com>
1722
1723         [Web Intents] Flagged-off implementation of an intent tag for registration.
1724         https://bugs.webkit.org/show_bug.cgi?id=73039
1725
1726         Reviewed by Adam Barth.
1727
1728         The intent tag allows web pages to mark themselves declaratively as accepting
1729         web intent delivery of particular characteristics (action/type).
1730         See the spec at:
1731         http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html
1732
1733         * WebKit.gyp:
1734         * src/FrameLoaderClientImpl.cpp:
1735         (WebKit::FrameLoaderClientImpl::registerIntentService):
1736         * src/FrameLoaderClientImpl.h:
1737
1738 2012-05-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1739
1740         Unreviewed, rolling out r116375.
1741         http://trac.webkit.org/changeset/116375
1742         https://bugs.webkit.org/show_bug.cgi?id=85850
1743
1744         Build break on Chromium-win and Chromium-mac. (Requested by
1745         tkent on #webkit).
1746
1747         * WebKit.gyp:
1748         * WebKit.gypi:
1749         * tests/EventListenerTest.cpp: Removed.
1750         * tests/data/listener/mutation_event_listener.html: Removed.
1751
1752 2012-05-07  Dana Jansens  <danakj@chromium.org>
1753
1754         Region::intersects() and Region::contains() are slow due to copy overhead
1755         https://bugs.webkit.org/show_bug.cgi?id=81076
1756
1757         Reviewed by Anders Carlsson.
1758
1759         * tests/RegionTest.cpp:
1760         (WebCore):
1761         (WebCore::TEST):
1762
1763 2012-05-07  Tony Chang  <tony@chromium.org>
1764
1765         [chromium] move event_listener_unittest to webkit_unit_tests
1766         https://bugs.webkit.org/show_bug.cgi?id=85836
1767
1768         Reviewed by James Robinson.
1769
1770         Porting the test from src/webkit/tools/test_shell/event_listener_unittest.cc.
1771         All I did was change the style and use the FrameTestHelper to load the file.
1772
1773         * WebKit.gyp: Exclude file in components build.
1774         * WebKit.gypi: Add new file.
1775         * tests/EventListenerTest.cpp: Added.
1776         (WebKit):
1777         (TestWebDOMEventListener):
1778         (WebKit::TestWebDOMEventListener::TestWebDOMEventListener):
1779         (WebKit::TestWebDOMEventListener::~TestWebDOMEventListener):
1780         (WebKit::TestWebDOMEventListener::eventCount):
1781         (WebKit::TestWebDOMEventListener::eventAt):
1782         (WebKit::TestWebDOMEventListener::clearEvents):
1783         (WebDOMEventListenerTest):
1784         (WebKit::WebDOMEventListenerTest::WebDOMEventListenerTest):
1785         (WebKit::WebDOMEventListenerTest::SetUp):
1786         (WebKit::WebDOMEventListenerTest::TearDown):
1787         (WebKit::WebDOMEventListenerTest::mainFrame):
1788         (WebKit::WebDOMEventListenerTest::document):
1789         (WebKit::WebDOMEventListenerTest::executeScript):
1790         (WebKit::WebDOMEventListenerTest::GetNodeID):
1791         (WebKit::TEST_F):
1792         * tests/data/listener/mutation_event_listener.html: Added.
1793
1794 2012-05-07  Julien Chaffraix  <jchaffraix@webkit.org>
1795
1796         Refactor windowClipRectForLayer to remove the explicit RenderLayer dependency
1797         https://bugs.webkit.org/show_bug.cgi?id=84090
1798
1799         Reviewed by David Hyatt.
1800
1801         * src/WebPluginContainerImpl.cpp:
1802         Updated after windowClipRectForLayer name and signature change.
1803
1804 2012-05-07  Dana Jansens  <danakj@chromium.org>
1805
1806         [chromium] Ensure synchronization in threaded unit tests by checking the sourceFrameNumber() to count commits
1807         https://bugs.webkit.org/show_bug.cgi?id=85390
1808
1809         Reviewed by Adrienne Walker.
1810
1811         * tests/CCLayerTreeHostTest.cpp:
1812         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::beginCommitOnCCThread):
1813         (WTF::CCLayerTreeHostTestAtomicCommit::commitCompleteOnCCThread):
1814         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
1815         (WTF::CCLayerTreeHostTestScrollChildLayer::beginCommitOnCCThread):
1816
1817 2012-05-07  Adrienne Walker  <enne@google.com>
1818
1819         [chromium] Allow for asymmetric tile sizes on composited tiled layers
1820         https://bugs.webkit.org/show_bug.cgi?id=85687
1821
1822         Reviewed by James Robinson.
1823
1824         Update tests for new constructor and function args. Add a few more
1825         tests that use non-square tile sizes.
1826
1827         * tests/TilingDataTest.cpp:
1828         (WebCore::TestTiling::TestTiling):
1829         (WebCore::TEST):
1830         (WebCore):
1831
1832 2012-05-07  David Reveman  <reveman@chromium.org>
1833
1834         [Chromium] Use GL_CHROMIUM_command_buffer_query to throttle texture uploads.
1835         https://bugs.webkit.org/show_bug.cgi?id=81004
1836
1837         Reviewed by Adrienne Walker.
1838
1839         * WebKit.gypi:
1840         * tests/CCLayerTreeHostImplTest.cpp:
1841         (WebKitTests::TEST_F):
1842         * tests/CCTiledLayerTestCommon.h:
1843         (WebKitTests::FakeTextureUploader::isBusy):
1844         (WebKitTests::FakeTextureUploader::beginUploads):
1845         (WebKitTests::FakeTextureUploader::endUploads):
1846         * tests/Canvas2DLayerChromiumTest.cpp:
1847         * tests/LayerRendererChromiumTest.cpp:
1848         (FakeLayerRendererChromium::FakeLayerRendererChromium):
1849         (LayerRendererChromiumTest::LayerRendererChromiumTest):
1850         (TEST):
1851         * tests/ThrottledTextureUploaderTest.cpp: Added.
1852         (WebKit):
1853         (FakeWebGraphicsContext3DWithQueryTesting):
1854         (WebKit::FakeWebGraphicsContext3DWithQueryTesting::FakeWebGraphicsContext3DWithQueryTesting):
1855         (WebKit::FakeWebGraphicsContext3DWithQueryTesting::getQueryObjectuivEXT):
1856         (WebKit::FakeWebGraphicsContext3DWithQueryTesting::setResultAvailable):
1857         (WebKit::TEST):
1858         * tests/TiledLayerChromiumTest.cpp:
1859         (WTF::TEST):
1860
1861 2012-05-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1862
1863         Unreviewed, rolling out r116334.
1864         http://trac.webkit.org/changeset/116334
1865         https://bugs.webkit.org/show_bug.cgi?id=85816
1866
1867         Broke the Chromium Win/Mac compile (Requested by
1868         ojan_gardening on #webkit).
1869
1870         * WebKit.gypi:
1871         * tests/LinkHighlightLayerDelegateTest.cpp: Removed.
1872
1873 2012-05-07  Mark Pilgrim  <pilgrim@chromium.org>
1874
1875         [Chromium] Move fileSystem to Platform.h
1876         https://bugs.webkit.org/show_bug.cgi?id=85760
1877
1878         Reviewed by Adam Barth.
1879
1880         Part of a refactoring series. See tracking bug 82948.
1881
1882         * WebKit.gyp:
1883         * public/platform/WebFileSystem.h:
1884         * public/platform/WebKitPlatformSupport.h:
1885         (WebKit):
1886         (WebKitPlatformSupport):
1887         * src/AssertMatchingEnums.cpp:
1888         * src/AsyncFileSystemChromium.cpp:
1889         (WebCore::AsyncFileSystemChromium::AsyncFileSystemChromium):
1890         * src/LocalFileSystemChromium.cpp:
1891         * src/WebFileSystemCallbacksImpl.cpp:
1892         * src/WebFileSystemCallbacksImpl.h:
1893         * src/WebFrameImpl.cpp:
1894         * src/WebWorkerClientImpl.h:
1895         * src/WorkerAsyncFileSystemChromium.cpp:
1896         * src/WorkerAsyncFileWriterChromium.cpp:
1897         * src/WorkerFileSystemCallbacksBridge.h:
1898         * src/WorkerFileWriterCallbacksBridge.cpp:
1899         (WebKit::WorkerFileWriterCallbacksBridge::initOnMainThread):
1900
1901 2012-05-07  W. James MacLean  <wjmaclean@chromium.org>
1902
1903         [chromium] Create LinkHighlightLayerChromium class to provide link-highlight preview animations for GraphicsLayerChromium.
1904         https://bugs.webkit.org/show_bug.cgi?id=85084
1905
1906         Reviewed by Adrienne Walker.
1907
1908         * WebKit.gypi:
1909         * tests/LinkHighlightLayerDelegateTest.cpp: Added.
1910         (WebCore):
1911         (MockGraphicsLayerClient):
1912         (WebCore::MockGraphicsLayerClient::notifyAnimationStarted):
1913         (WebCore::MockGraphicsLayerClient::notifySyncRequired):
1914         (WebCore::MockGraphicsLayerClient::paintContents):
1915         (WebCore::MockGraphicsLayerClient::showDebugBorders):
1916         (WebCore::MockGraphicsLayerClient::showRepaintCounter):
1917         (WebCore::TEST):
1918
1919 2012-05-07  Joshua Bell  <jsbell@chromium.org>
1920
1921         IndexedDB: LevelDB coding for bools is broken
1922         https://bugs.webkit.org/show_bug.cgi?id=85810
1923
1924         Reviewed by Tony Chang.
1925
1926         Added tests for encodeBool/decodeBool.
1927
1928         * tests/IDBLevelDBCodingTest.cpp:
1929         (IDBLevelDBCoding::TEST):
1930         (IDBLevelDBCoding):
1931
1932 2012-05-07  Shawn Singh  <shawnsingh@chromium.org>
1933
1934         [chromium] CCMathUtil projectPoint needs to avoid divide-by-zero
1935         https://bugs.webkit.org/show_bug.cgi?id=85560
1936
1937         Reviewed by Adrienne Walker.
1938
1939         * tests/CCLayerTreeHostCommonTest.cpp:
1940         (WebKitTests::TEST):
1941         * tests/CCMathUtilTest.cpp:
1942         (WebCore::TEST):
1943         (WebCore):
1944
1945 2012-05-07  Nat Duca  <nduca@chromium.org>
1946
1947         Unreviewed, rolling out r115525.
1948         http://trac.webkit.org/changeset/115525
1949         https://bugs.webkit.org/show_bug.cgi?id=66683
1950
1951         Too many pages rely on DOMTimeStamp as first argument.
1952         Reverting while we consider next steps.
1953
1954         * src/PageWidgetDelegate.cpp:
1955         (WebKit::PageWidgetDelegate::animate):
1956         * src/WebViewImpl.cpp:
1957         (WebKit::WebViewImpl::updateAnimations):
1958
1959 2012-05-07  Tommy Widenflycht  <tommyw@google.com>
1960
1961         MediaStream API: Allow UserMediaRequest::succeed to take an MediaStreamDescriptor
1962         https://bugs.webkit.org/show_bug.cgi?id=85798
1963
1964         Reviewed by Adam Barth.
1965
1966         Adding another WebUserMediaRequest::requestSucceed function that takes an
1967         WebMediaStreamDescriptor instead of the two WebMediaStreamSource arrays.
1968
1969         * public/WebUserMediaRequest.h:
1970         (WebKit):
1971         (WebUserMediaRequest):
1972         * src/WebUserMediaRequest.cpp:
1973         (WebKit::WebUserMediaRequest::requestSucceeded):
1974
1975 2012-05-07  Kinuko Yasuda  <kinuko@chromium.org>
1976
1977         Unreviewed: the same fix in another file for chromium win build.  Adding WebCore namespace to FileSystemTypes.
1978
1979         * src/WebFrameImpl.cpp:
1980         (WebKit::WebFrameImpl::createFileSystem):
1981         (WebKit::WebFrameImpl::createFileEntry):
1982
1983 2012-05-07  Kinuko Yasuda  <kinuko@chromium.org>
1984
1985         Not reviewed: chromium win build fix attempt; adding WebCore namespace to ambiguous type name.
1986
1987         * src/WebFileSystemCallbacksImpl.cpp:
1988         (WebKit::WebFileSystemCallbacksImpl::WebFileSystemCallbacksImpl):
1989
1990 2012-05-06  Kinuko Yasuda  <kinuko@chromium.org>
1991
1992         Cleanup: Change boolean synchronous flag argument into enum in FileSystem API code
1993         https://bugs.webkit.org/show_bug.cgi?id=85741
1994
1995         Reviewed by David Levin.
1996
1997         * src/LocalFileSystemChromium.cpp:
1998         (WebCore::openFileSystemHelper):
1999         (WebCore::LocalFileSystem::readFileSystem):
2000         (WebCore::LocalFileSystem::requestFileSystem):
2001         * src/WebFileSystemCallbacksImpl.cpp:
2002         (WebKit::WebFileSystemCallbacksImpl::WebFileSystemCallbacksImpl):
2003         (WebKit::WebFileSystemCallbacksImpl::didOpenFileSystem):
2004         * src/WebFileSystemCallbacksImpl.h:
2005         (WebFileSystemCallbacksImpl):
2006         * src/WorkerAsyncFileSystemChromium.cpp:
2007         (WebCore::WorkerAsyncFileSystemChromium::WorkerAsyncFileSystemChromium):
2008         (WebCore::WorkerAsyncFileSystemChromium::createWorkerFileSystemCallbacksBridge):
2009         * src/WorkerAsyncFileSystemChromium.h:
2010         (WebCore::WorkerAsyncFileSystemChromium::create):
2011         (WorkerAsyncFileSystemChromium):
2012
2013 2012-05-06  Kinuko Yasuda  <kinuko@chromium.org>
2014
2015         Cleanup: Move FileSystem API type definitions into a separate header file
2016         https://bugs.webkit.org/show_bug.cgi?id=85738
2017
2018         Reviewed by David Levin.
2019
2020         Move FileSystem API type definitions from AsyncFileSystem.h and
2021         AsyncFileSystemChromium.cpp for chromium port into a single separate
2022         header file: FileSystemType.h
2023
2024         By doing this we make it clearer that every filesystem type can be
2025         found in the header file and also can save including entire
2026         AsyncFileSystem definition just for referring type enum value.
2027
2028         * src/AssertMatchingEnums.cpp:
2029         * src/AsyncFileSystemChromium.cpp:
2030         (WebCore::AsyncFileSystem::crackFileSystemURL):
2031         (WebCore::AsyncFileSystem::isValidType):
2032         (WebCore::AsyncFileSystemChromium::AsyncFileSystemChromium):
2033         (WebCore::AsyncFileSystemChromium::createIsolatedFileSystem):
2034         (WebCore::AsyncFileSystemChromium::toURL):
2035         * src/AsyncFileSystemChromium.h:
2036         (WebCore::AsyncFileSystemChromium::create):
2037         (AsyncFileSystemChromium):
2038         * src/LocalFileSystemChromium.cpp:
2039         (WebCore::openFileSystemHelper):
2040         (WebCore::LocalFileSystem::readFileSystem):
2041         (WebCore::LocalFileSystem::requestFileSystem):
2042         * src/WebFileSystemCallbacksImpl.cpp:
2043         (WebKit::WebFileSystemCallbacksImpl::WebFileSystemCallbacksImpl):
2044         * src/WebFileSystemCallbacksImpl.h:
2045         (WebFileSystemCallbacksImpl):
2046         * src/WebFrameImpl.cpp:
2047         (WebKit::WebFrameImpl::createFileSystem):
2048         (WebKit::WebFrameImpl::createFileEntry):
2049         * src/WorkerAsyncFileSystemChromium.cpp:
2050         (WebCore::WorkerAsyncFileSystemChromium::WorkerAsyncFileSystemChromium):
2051         * src/WorkerAsyncFileSystemChromium.h:
2052         (WebCore::WorkerAsyncFileSystemChromium::create):
2053         (WorkerAsyncFileSystemChromium):
2054
2055 2012-05-06  Kinuko Yasuda  <kinuko@chromium.org>
2056
2057         Cleanup: FileSystem API's Entry.toURL() impl should return KURL instead of String
2058         https://bugs.webkit.org/show_bug.cgi?id=85736
2059
2060         Reviewed by David Levin.
2061
2062         Change AsyncFileSystemChromium::toURL()'s return type from String to KURL.
2063
2064         * src/AsyncFileSystemChromium.cpp:
2065         (WebCore::AsyncFileSystemChromium::toURL):
2066         String to KURL.
2067         * src/AsyncFileSystemChromium.h:
2068         (AsyncFileSystemChromium):
2069
2070 2012-05-06  Mark Pilgrim  <pilgrim@chromium.org>
2071
2072         [Chromium] Call currentThread through Platform.h directly
2073         https://bugs.webkit.org/show_bug.cgi?id=85769
2074
2075         Reviewed by Kentaro Hara.
2076
2077         Part of a refactoring series. See tracking bug 82948.
2078
2079         * tests/CCLayerTreeHostTest.cpp:
2080         (WTF::CCLayerTreeHostTest::onEndTest):
2081         (WTF::CCLayerTreeHostTest::runTest):
2082
2083 2012-05-06  Mark Pilgrim  <pilgrim@chromium.org>
2084
2085         [Chromium] Call cryptographicallyRandomValues through Platform.h
2086         https://bugs.webkit.org/show_bug.cgi?id=85763
2087
2088         Reviewed by Adam Barth.
2089
2090         Part of a refactoring series. See tracking bug 82948.
2091
2092         * src/ChromiumOSRandomSource.cpp:
2093         (WTF::cryptographicallyRandomValuesFromOS):
2094
2095 2012-05-06  Keishi Hattori  <keishi@webkit.org>
2096
2097         [chromium] Add WebKit API to access multiple attribute of input element
2098         https://bugs.webkit.org/show_bug.cgi?id=85355
2099
2100         Reviewed by Kent Tamura.
2101
2102         We need this to implement the datalist UI for <input type=email multiple>.
2103
2104         * public/WebInputElement.h:
2105         (WebInputElement):
2106         * src/WebInputElement.cpp:
2107         (WebKit::WebInputElement::isMultiple):
2108         (WebKit):
2109
2110 2012-05-06  Adam Barth  <abarth@webkit.org>
2111
2112         CSP should let sites both enforce one policy and monitor another
2113         https://bugs.webkit.org/show_bug.cgi?id=85561
2114
2115         Reviewed by Eric Seidel.
2116
2117         * src/SharedWorkerRepository.cpp:
2118         (WebCore::SharedWorkerScriptLoader::notifyFinished):
2119         * src/WebWorkerClientImpl.cpp:
2120         (WebKit::WebWorkerClientImpl::startWorkerContext):
2121
2122 2012-05-06  Kent Tamura  <tkent@chromium.org>
2123
2124         Rename ICULocale to LocaleICU, part 2
2125         https://bugs.webkit.org/show_bug.cgi?id=85695
2126
2127         Reviewed by Kentaro Hara.
2128
2129         * tests/LocalizedNumberICUTest.cpp:
2130         (testNumberIsReversible): Rename ICULocale to LocaleICU.
2131
2132 2012-05-06  Adrienne Walker  <enne@google.com>
2133
2134         [chromium] Allow WebMediaPlayerClientImpl to switch clients
2135         https://bugs.webkit.org/show_bug.cgi?id=85093
2136
2137         Reviewed by James Robinson.
2138
2139         WebVideoFrameProviderClient has a 1:1 relationship with a
2140         WebVideoFrameProvider. The client here is CCVideoLayerImpl and the
2141         provider is WebMediaPlayerClientImpl.  If the provider gets a new
2142         client, then the old client needs to be informed to stop using the
2143         provider.
2144
2145         If this doesn't happen, then the old client will have an unsafe
2146         pointer to the provider, will not get informed if the provider gets
2147         deleted, and the client will crash when it dereferences the provider
2148         pointer trying to tell the provider that its client is going away.
2149
2150         Test: WebMediaPlayerClientImplTest.InitialNullVideoClient
2151               WebMediaPlayerClientImplTest.SetAndUnsetVideoClient
2152               WebMediaPlayerClientImplTest.DestroyProvider
2153               WebMediaPlayerClientImplTest.SetMultipleVideoClients
2154
2155         * WebKit.gypi:
2156         * src/WebMediaPlayerClientImpl.cpp:
2157         (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient):
2158         * src/WebMediaPlayerClientImpl.h:
2159         (WebMediaPlayerClientImpl):
2160         * tests/WebMediaPlayerClientImplTest.cpp: Added.
2161         (WebKit):
2162         (FakeWebMediaPlayerClientImpl):
2163         (WebKit::FakeWebMediaPlayerClientImpl::create):
2164         (WebKit::FakeWebMediaPlayerClientImpl::FakeWebMediaPlayerClientImpl):
2165         (FakeVideoFrameProviderClient):
2166         (WebKit::FakeVideoFrameProviderClient::create):
2167         (WebKit::FakeVideoFrameProviderClient::~FakeVideoFrameProviderClient):
2168         (WebKit::FakeVideoFrameProviderClient::didReceiveFrame):
2169         (WebKit::FakeVideoFrameProviderClient::didUpdateMatrix):
2170         (WebKit::FakeVideoFrameProviderClient::stopUsingProvider):
2171         (WebKit::FakeVideoFrameProviderClient::provider):
2172         (WebKit::FakeVideoFrameProviderClient::FakeVideoFrameProviderClient):
2173         (WebKit::TEST):
2174
2175 2012-05-06  Sheriff Bot  <webkit.review.bot@gmail.com>
2176
2177         Unreviewed.  Rolled DEPS.
2178
2179         * DEPS:
2180
2181 2012-05-06  Andrey Kosyakov  <caseq@chromium.org>
2182
2183         Web Inspector: take timeline frame mode out of experimental
2184         https://bugs.webkit.org/show_bug.cgi?id=85707
2185
2186         Reviewed by Pavel Feldman.
2187
2188         - exposed supportFrameInstrumentation method to InspectorClient. Client must return true iff the platform will call
2189           InspectorInstrumentation::instrumentBeginFrame() upon beginning of frame rendering;
2190
2191         * src/InspectorClientImpl.cpp:
2192         (WebKit::InspectorClientImpl::supportsFrameInstrumentation):
2193         (WebKit):
2194         * src/InspectorClientImpl.h:
2195         (InspectorClientImpl):
2196
2197 2012-05-04  Kent Tamura  <tkent@chromium.org>
2198
2199         Rename ICULocale to LocaleICU, part 1
2200         https://bugs.webkit.org/show_bug.cgi?id=85688
2201
2202         Reviewed by Kentaro Hara.
2203
2204         * tests/LocalizedNumberICUTest.cpp: Rename ICULocale.h to LocaleICU.h.
2205
2206 2012-05-04  Shawn Singh  <shawnsingh@chromium.org>
2207
2208         [chromium] Changes to layer tree structure need to be tracked properly
2209         https://bugs.webkit.org/show_bug.cgi?id=85421
2210
2211         Reviewed by Adrienne Walker.
2212
2213         Unit test added: TreeSynchronizerTest.syncSimpleTreeAndTrackStackingOrderChange
2214
2215         * tests/TreeSynchronizerTest.cpp:
2216         (WebKitTests):
2217         (WebKitTests::TEST):
2218
2219 2012-05-04  Tony Chang  <tony@chromium.org>
2220
2221         [chromium] enable msvs_error_on_missing_sources at gyp time
2222         https://bugs.webkit.org/show_bug.cgi?id=85683
2223
2224         Reviewed by Adam Barth.
2225
2226         This flag checks for missing files, which cause compile times to be
2227         slow on Windows. Since this flag is on by default for the
2228         build.chromium.org bots, we should add it here too so everyone can fix
2229         these errors.
2230
2231         * DEPS: Roll to a chromium version that has no missing files.
2232         * gyp_webkit: Add the flag.
2233
2234 2012-05-04  Satoru Takabayashi  <satorux@chromium.org>
2235
2236         [chromium] Add plumbing for file display names for drag and drop
2237         https://bugs.webkit.org/show_bug.cgi?id=85673
2238
2239         Reviewed by Darin Fisher.
2240
2241         * public/platform/WebDragData.h:
2242         * src/WebDragData.cpp:
2243         (WebKit::WebDragData::items):
2244         (WebKit::WebDragData::addItem):
2245
2246 2012-05-04  Adam Barth  <abarth@webkit.org>
2247
2248         Refactor CSP state to prepare for having both a ReportOnly and an Enforced policy
2249         https://bugs.webkit.org/show_bug.cgi?id=85662
2250
2251         Reviewed by Eric Seidel.
2252
2253         Update callers to the new function name.
2254
2255         * src/SharedWorkerRepository.cpp:
2256         (WebCore::SharedWorkerScriptLoader::notifyFinished):
2257         * src/WebWorkerClientImpl.cpp:
2258         (WebKit::WebWorkerClientImpl::startWorkerContext):
2259
2260 2012-05-04  Sami Kyostila  <skyostil@chromium.org>
2261
2262         [chromium] Revert compositor layer scrolling
2263         https://bugs.webkit.org/show_bug.cgi?id=85644
2264
2265         Reviewed by Steve Block.
2266
2267         * src/WebContentLayerImpl.cpp:
2268         * src/WebContentLayerImpl.h:
2269         (WebContentLayerImpl):
2270         * tests/CCLayerTreeHostCommonTest.cpp:
2271         * tests/CCLayerTreeHostImplTest.cpp:
2272         (WebKitTests::TEST_F):
2273         * tests/CCLayerTreeHostTest.cpp:
2274         (WTF::MockContentLayerDelegate::paintContents):
2275
2276 2012-05-04  Tommy Widenflycht  <tommyw@google.com>
2277
2278         MediaStream API: Make PeerConnection00's API fully compliant with the draft
2279         https://bugs.webkit.org/show_bug.cgi?id=85491
2280
2281         Reviewed by Adam Barth.
2282
2283         * src/AssertMatchingEnums.cpp:
2284
2285 2012-05-04  Nate Chapin  <japhet@chromium.org>
2286
2287         Don't require FrameLoaderClient to manufacture a commitData() call for empty documents.
2288         https://bugs.webkit.org/show_bug.cgi?id=85533
2289
2290         Reviewed by Alexey Proskuryakov.
2291
2292         * src/FrameLoaderClientImpl.cpp:
2293         (WebKit::FrameLoaderClientImpl::FrameLoaderClientImpl):
2294         (WebKit):
2295         (WebKit::FrameLoaderClientImpl::finishedLoading):
2296         * src/FrameLoaderClientImpl.h:
2297         (WebKit::FrameLoaderClientImpl::makeRepresentation):
2298         (WebKit::FrameLoaderClientImpl::revertToProvisionalState):
2299         (FrameLoaderClientImpl):
2300
2301 2012-05-04  Alexander Pavlov  <apavlov@chromium.org>
2302
2303         Web Inspector: [Device Metrics] With "Fit window" option on, page contents are downscaled incorrectly
2304         https://bugs.webkit.org/show_bug.cgi?id=85510
2305
2306         Reviewed by Pavel Feldman.
2307
2308         Use the RenderView width rather than FrameView contents width whenever possible.
2309         Drive-by: add protection from division-by-zero (for some weird rendering states).
2310
2311         Test: inspector/styles/device-metrics-fit-window.html
2312
2313         * src/WebDevToolsAgentImpl.cpp:
2314         (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor):
2315         (WebKit::DeviceMetricsSupport::scaledEmulatedFrameSize):
2316
2317 2012-05-03  W. James MacLean  <wjmaclean@chromium.org>
2318
2319         [chromium] Revise touchpad fling curve to use exponential curve, to improve feel and small fling performance.
2320         https://bugs.webkit.org/show_bug.cgi?id=85530
2321
2322         Reviewed by Kenneth Russell.
2323
2324         * tests/PlatformGestureCurveTest.cpp:
2325
2326 2012-05-03  Dimitri Glazkov  <dglazkov@chromium.org>
2327
2328         [Chromium] Use correct define in the features.gypi
2329         https://bugs.webkit.org/show_bug.cgi?id=85520
2330
2331         Patch by Ben Goodger.
2332
2333         Reviewed by Tony Chang.
2334
2335         * features.gypi: Replaced use_aura with a more appropriate chromeos
2336
2337 2012-05-03  Antony Sargent  <asargent@chromium.org>
2338
2339         Add methods to create WebArrayBuffer/WebArrayBufferView from v8 objects
2340         https://bugs.webkit.org/show_bug.cgi?id=84899
2341
2342         Reviewed by Adam Barth.
2343
2344         * public/WebArrayBuffer.h:
2345         (WebArrayBuffer):
2346         * public/platform/WebArrayBufferView.h:
2347         (v8):
2348         (WebArrayBufferView):
2349         * src/WebArrayBuffer.cpp:
2350         (WebKit):
2351         (WebKit::WebArrayBuffer::createFromV8Value):
2352         * src/WebArrayBufferView.cpp:
2353         (WebKit):
2354         (WebKit::WebArrayBufferView::createFromV8Value):
2355
2356 2012-05-03  Dana Jansens  <danakj@chromium.org>
2357
2358         [chromium] Don't add small opaque areas to the occlusion tracker's Region
2359         https://bugs.webkit.org/show_bug.cgi?id=85297
2360
2361         Reviewed by Adrienne Walker.
2362
2363         * tests/CCOcclusionTrackerTest.cpp:
2364         (WebKitTests):
2365         (CCOcclusionTrackerTestMinimumTrackingSize):
2366         (WebKitTests::CCOcclusionTrackerTestMinimumTrackingSize::runMyTest):
2367
2368 2012-05-02  Jon Lee  <jonlee@apple.com>
2369
2370         Migrate permission functions to Notification from NotificationCenter
2371         https://bugs.webkit.org/show_bug.cgi?id=80485
2372         <rdar://problem/10965458>
2373
2374         Reviewed by Jian Li.
2375
2376         * src/NotificationPresenterImpl.h:
2377         (NotificationPresenterImpl): Add stub implementation of requestPermission.
2378         (WebKit::NotificationPresenterImpl::requestPermission):
2379
2380 2012-05-02  Dana Jansens  <danakj@chromium.org>
2381
2382         [chromium] Don't occlude pixels in a surface that are needed for a background filter blur
2383         https://bugs.webkit.org/show_bug.cgi?id=84317
2384
2385         Reviewed by Adrienne Walker.
2386
2387         * tests/CCOcclusionTrackerTest.cpp:
2388         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
2389         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
2390         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
2391         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
2392         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
2393         (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest):
2394         (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest):
2395         (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest):
2396         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
2397         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest):
2398         (WebKitTests):
2399         (CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter):
2400         (WebKitTests::CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilter::runMyTest):
2401         (CCOcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice):
2402         (WebKitTests::CCOcclusionTrackerTestTwoBackgroundFiltersReduceOcclusionTwice::runMyTest):
2403         (CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip):
2404         (WebKitTests::CCOcclusionTrackerTestDontOccludePixelsNeededForBackgroundFilterWithClip::runMyTest):
2405         (CCOcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter):
2406         (WebKitTests::CCOcclusionTrackerTestDontReduceOcclusionBelowBackgroundFilter::runMyTest):
2407         (CCOcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded):
2408         (WebKitTests::CCOcclusionTrackerTestDontReduceOcclusionIfBackgroundFilterIsOccluded::runMyTest):
2409         (CCOcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded):
2410         (WebKitTests::CCOcclusionTrackerTestReduceOcclusionWhenBackgroundFilterIsPartiallyOccluded::runMyTest):
2411
2412 2012-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
2413
2414         FrameLoaderClient::dispatchWillSendSubmitEvent() should be given more
2415         information about the form being submitted
2416         https://bugs.webkit.org/show_bug.cgi?id=84297
2417
2418         Reviewed by Andy Estes.
2419
2420         * src/FrameLoaderClientImpl.cpp:
2421         (WebKit::FrameLoaderClientImpl::dispatchWillSendSubmitEvent):
2422         Updated to use the FormState.
2423
2424         * src/FrameLoaderClientImpl.h:
2425         (FrameLoaderClientImpl):
2426         Updated method declaration.
2427
2428 2012-05-02  Joshua Bell  <jsbell@chromium.org>
2429
2430         Roll Chromium DEPS r134537 to r134581.
2431         https://bugs.webkit.org/show_bug.cgi?id=85428
2432
2433         Unreviewed - just a deps roll.
2434
2435         * DEPS:
2436
2437 2012-05-02  Jochen Eisinger  <jochen@chromium.org>
2438
2439         [chromium] Add WebDocument::referrerPolicy() which wraps the same method on Document
2440         https://bugs.webkit.org/show_bug.cgi?id=85201
2441
2442         Reviewed by Adam Barth.
2443
2444         Embedders should use webFrame->document()->referrerPolicy() instead of webFrame->referrerPolicy(). The latter will be removed soon.
2445
2446         * public/WebDocument.h:
2447         (WebDocument):
2448         * src/WebDocument.cpp:
2449         (WebKit::WebDocument::referrerPolicy):
2450         (WebKit):
2451
2452 2012-05-02  Michal Mocny  <mmocny@google.com>
2453
2454         [chromium] Set contents texture manager preferred memory limit based on GpuMemoryManager suggestion.
2455         https://bugs.webkit.org/show_bug.cgi?id=84270
2456
2457         Reviewed by Kenneth Russell.
2458
2459         * tests/CCLayerTreeHostImplTest.cpp:
2460         * tests/LayerRendererChromiumTest.cpp:
2461
2462 2012-05-02  Emil A Eklund  <eae@chromium.org>
2463
2464         Fix usage of layout types in platform code
2465         https://bugs.webkit.org/show_bug.cgi?id=85392
2466
2467         Reviewed by Eric Seidel.
2468
2469         * src/WebHitTestResult.cpp:
2470         (WebKit::WebHitTestResult::localPoint):
2471         * src/WebSurroundingText.cpp:
2472         (WebKit::WebSurroundingText::initialize):
2473         Explicitly cast WebPoint to IntPoint to avoid ambiguous conversion error.       
2474
2475 2012-05-02  Yury Semikhatsky  <yurys@chromium.org>
2476
2477         Web Inspector: TypeError: Cannot call method 'createLiveLocation' of undefined
2478         https://bugs.webkit.org/show_bug.cgi?id=85371
2479
2480         Standard extension scripts injected to the Chromium background page should have
2481         correct script data which means that context debug id should be already set on
2482         the context where they are compiled before the compilation. This patch moves
2483         assignment of context debug id earlier where it is known that no scripts have
2484         been evaluated in the context.
2485
2486         Reviewed by Pavel Feldman.
2487
2488         * src/FrameLoaderClientImpl.cpp:
2489         (WebKit::FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld):
2490         (WebKit::FrameLoaderClientImpl::didCreateScriptContext):
2491         * src/WebDevToolsAgentImpl.cpp:
2492         (WebKit::WebDevToolsAgentImpl::didCreateScriptContext):
2493         * src/WebDevToolsAgentImpl.h:
2494         (WebDevToolsAgentImpl):
2495         * src/WebDevToolsAgentPrivate.h:
2496         (WebDevToolsAgentPrivate):
2497
2498 2012-05-02  Tommy Widenflycht  <tommyw@google.com>
2499
2500         MediaStream API: Changing webkitGetUserMedia to take an object instead of a string
2501         https://bugs.webkit.org/show_bug.cgi?id=84850
2502
2503         Reviewed by Dimitri Glazkov.
2504
2505         * public/WebUserMediaRequest.h:
2506         (WebUserMediaRequest):
2507         * src/WebUserMediaRequest.cpp:
2508
2509 2012-05-01  Mark Pilgrim  <pilgrim@chromium.org>
2510
2511         [Chromium] Additional instances of calling histogramCustomCounts directly
2512         https://bugs.webkit.org/show_bug.cgi?id=85322
2513
2514         Reviewed by Kentaro Hara.
2515
2516         Part of a refactoring series. See tracking bug 82948.
2517
2518         * src/painting/PaintAggregator.cpp:
2519         (WebKit::PaintAggregator::invalidateRect):
2520
2521 2012-05-01  Min Qin  <qinmin@google.com>
2522
2523         use USE(NATIVE_FULLSCREEN_VIDEO) instead of ENABLE(NATIVE_FULLSCREEN_VIDEO)
2524         https://bugs.webkit.org/show_bug.cgi?id=85316
2525
2526         Reviewed by Kent Tamura.
2527
2528         NATIVE_FULLSCREEN_VIDEO means the fullscreen video is implemented by native
2529         system view instead of webkit
2530         So it is more appropriate to use USE(NATIVE_FULLSCREEN_VIDEO).
2531         Just rename the flag, no new tests
2532
2533         * features.gypi:
2534         * src/WebMediaPlayerClientImpl.cpp:
2535         (WebKit):
2536         * src/WebMediaPlayerClientImpl.h:
2537         (WebMediaPlayerClientImpl):
2538         * src/WebViewImpl.cpp:
2539         (WebKit::WebViewImpl::enterFullScreenForElement):
2540         (WebKit::WebViewImpl::exitFullScreenForElement):
2541
2542 2012-05-01  Mark Pilgrim  <pilgrim@chromium.org>
2543
2544         [Chromium] Additional instances of calling createAudioDevice directly
2545         https://bugs.webkit.org/show_bug.cgi?id=85321
2546
2547         Reviewed by Kentaro Hara.
2548
2549         Part of a refactoring series. See tracking bug 82948.
2550
2551         * src/AudioDestinationChromium.cpp:
2552         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
2553
2554 2012-05-01  Mark Pilgrim  <pilgrim@chromium.org>
2555
2556         [Chromium] Additional instances of calling mimeRegistry directly
2557         https://bugs.webkit.org/show_bug.cgi?id=85320
2558
2559         Reviewed by Eric Seidel.
2560
2561         Part of a refactoring series. See tracking bug 82948.
2562
2563         * src/FrameLoaderClientImpl.cpp:
2564         (WebKit::FrameLoaderClientImpl::canShowMIMEType):
2565         * src/WebMediaPlayerClientImpl.cpp:
2566         (WebKit::WebMediaPlayerClientImpl::supportsType):
2567
2568 2012-05-01  Ryosuke Niwa  <rniwa@webkit.org>
2569
2570         *Command.h files shouldn't be exported to WebKit layer
2571         https://bugs.webkit.org/show_bug.cgi?id=74778
2572
2573         Reviewed by Eric Seidel.
2574
2575         * src/WebFrameImpl.cpp:
2576         * src/WebViewImpl.cpp:
2577
2578 2012-05-01  Julien Chaffraix  <jchaffraix@webkit.org>
2579
2580         WebKit test RenderTableCellDeathTest.CanSetRow is failing as of r115705
2581         https://bugs.webkit.org/show_bug.cgi?id=85274
2582
2583         Reviewed by Ojan Vafai.
2584
2585         The tests were crashing as we were creating a RenderTableCell without any RenderTableRow parent
2586         which shouldn't happen inside the render tree.
2587
2588         Using RenderTableCell to access RenderTableRow was artificial and the checks have now been moved
2589         to using a RenderTableRow directly.
2590
2591         * WebKit.gyp:
2592         * WebKit.gypi:
2593         Added the new file.
2594
2595         * tests/RenderTableCellTest.cpp:
2596         Removed the row index tests as they are now in the following file.
2597
2598         * tests/RenderTableRowTest.cpp: Copied from Source/WebKit/chromium/tests/RenderTableCellTest.cpp.
2599         Changed a bit the row index tests and re-enabled them.
2600
2601 2012-05-01  Pavel Feldman  <pfeldman@chromium.org>
2602
2603         WebKit unit tests RenderTableCellDeathTest.CanSetRow* are failing as of r115705
2604         https://bugs.webkit.org/show_bug.cgi?id=85274
2605
2606         Not reviewed: test disabled.
2607
2608         * tests/RenderTableCellTest.cpp:
2609
2610 2012-05-01  Pavel Feldman  <pfeldman@chromium.org>
2611
2612         WebKit test RenderTableCellDeathTest.CanSetRow is failing as of r115705
2613         https://bugs.webkit.org/show_bug.cgi?id=85274
2614
2615         Not reviewed: test disabled.
2616
2617         The test is based on the standalone cell, while the new logic
2618         requires parent to be present upon the row index set.
2619
2620         * tests/RenderTableCellTest.cpp:
2621
2622 2012-05-01  Hironori Bono  <hbono@chromium.org>
2623
2624         [Chromium] Regression r113405 ContextMenuImpl does not set a misspelled word
2625         https://bugs.webkit.org/show_bug.cgi?id=85271
2626
2627         Reviewed by Kent Tamura.
2628
2629         This change calls selectMisspelledWord() to get a misspelled word so Chrome can
2630         set the misspelledWord variable without selecting text.
2631
2632         * src/ContextMenuClientImpl.cpp:
2633         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
2634
2635 2012-04-30  Kent Tamura  <tkent@chromium.org>
2636
2637         [Chromium/Windows] Add LocalizedDateWin
2638         https://bugs.webkit.org/show_bug.cgi?id=84935
2639
2640         Reviewed by Kentaro Hara.
2641
2642         Add test for LocaleWin.cpp.
2643
2644         * WebKit.gypi:
2645         * tests/LocaleWinTest.cpp: Added.
2646         (msForDate): A helper function.
2647         (TEST):
2648
2649 2012-04-30  Julien Chaffraix  <jchaffraix@webkit.org>
2650
2651         Move RenderTableCell's row index to RenderTableRow
2652         https://bugs.webkit.org/show_bug.cgi?id=85229
2653
2654         Reviewed by Ojan Vafai.
2655
2656         * tests/RenderTableCellTest.cpp:
2657         Updated after the refactoring.
2658
2659 2012-04-30  Gavin Peters  <gavinp@chromium.org>
2660
2661         [Chromium] Add thunk headers for staging Prerendering API.
2662         https://bugs.webkit.org/show_bug.cgi?id=84880
2663
2664         Reviewed by Adam Barth.
2665
2666         These empty headers will be replaced by the actual API when Bug 85005 is commited.
2667
2668         * WebKit.gyp:
2669         * public/WebPrerendererClient.h: Added.
2670         (WebKit):
2671         (WebPrerendererClient):
2672         * public/WebView.h:
2673         (WebKit):
2674         (WebKit::WebView::setPrerendererClient):
2675
2676 2012-04-30  Ilya Sherman  <isherman@chromium.org>
2677
2678         [Chromium] Fix Autofill popup visibility behavior
2679         Prevent users from interacting with invisible Autofill popups rendered outside the main frame's contents view.
2680         This is a recommit of r115400, restricted to just Autofill popups.
2681         https://bugs.webkit.org/show_bug.cgi?id=84420
2682
2683         Reviewed by Abhishek Arya
2684
2685         * src/ChromeClientImpl.cpp:
2686         (WebKit::ChromeClientImpl::popupOpened): Hide popups rendered outside the main frame's contents view.
2687         * src/WebViewImpl.cpp:
2688         (WebKit::WebViewImpl::applyAutofillSuggestions): Fix up order of operations to support immediately hiding a popup if it would not be visible
2689
2690 2012-04-30  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2691
2692         [chromium] Disable battery-status API support.
2693
2694         The battery-status API support should not have view-dependency. So disable it until
2695         that is fixed.
2696         https://bugs.webkit.org/show_bug.cgi?id=84499
2697
2698         Reviewed by Adam Barth.
2699
2700         * features.gypi:
2701
2702 2012-04-30  Gavin Peters  <gavinp@chromium.org>
2703
2704         [Chromium] Remove Webkit/chromium/public/WebReferrerPolicy.h thunk.
2705         https://bugs.webkit.org/show_bug.cgi?id=84552
2706
2707         After http://codereview.chromium.org/10139023/ lands, this thunk is no
2708         longer needed.
2709
2710         Reviewed by Adam Barth.
2711
2712         * WebKit.gyp:
2713         * public/WebReferrerPolicy.h: Removed.
2714
2715 2012-04-29  Sam Weinig  <sam@webkit.org>
2716
2717         Remove BlobBuilder
2718         https://bugs.webkit.org/show_bug.cgi?id=84036
2719
2720         Reviewed by Anders Carlsson.
2721
2722         * features.gypi:
2723         Keep WebKitBlobBuilder enabled for Chromium, since it has shipped it.
2724
2725 2012-04-30  Min Qin  <qinmin@google.com>
2726
2727         Expose a flag so that fullscreen video on android can work with FULLSCREEN_API
2728         https://bugs.webkit.org/show_bug.cgi?id=84414
2729
2730         Reviewed by Darin Fisher.
2731
2732         On android, the fullscreen video was implemented by passing a java
2733         surfaceView to an android mediaplayer class.
2734         The implementation of that logic should happen in WebKit::WebMediaPlayer.
2735         This change makes it possble for WebViewImpl::enterFullScreenForElement()
2736         to call WebMediaPlayer->enterFullscreen(), thus solving the issue.
2737
2738         Sorry, there is a merge error during the previous commit, resolved now
2739
2740         No new tests. This just exposes the flag so later it can be used by android.
2741
2742         * features.gypi:
2743         * public/WebMediaPlayer.h:
2744         (WebMediaPlayer):
2745         (WebKit::WebMediaPlayer::enterFullscreen):
2746         (WebKit::WebMediaPlayer::exitFullscreen):
2747         * src/WebMediaPlayerClientImpl.cpp:
2748         (WebKit):
2749         (WebKit::WebMediaPlayerClientImpl::enterFullscreen):
2750         (WebKit::WebMediaPlayerClientImpl::exitFullscreen):
2751         * src/WebMediaPlayerClientImpl.h:
2752         (WebMediaPlayerClientImpl):
2753         * src/WebViewImpl.cpp:
2754         (WebKit::WebViewImpl::enterFullScreenForElement):
2755         (WebKit::WebViewImpl::exitFullScreenForElement):
2756
2757 2012-04-30  Gavin Peters  <gavinp@chromium.org>
2758
2759         Unreviewed.  Rolled DEPS.
2760
2761         * DEPS:
2762
2763 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2764
2765         [Chromium] Remove PlatformSupport::loadPlatformAudioResource, call loadResource directly
2766         https://bugs.webkit.org/show_bug.cgi?id=85193
2767
2768         Reviewed by Kentaro Hara.
2769
2770         Part of a refactoring series. See tracking bug 82948.
2771
2772         * src/PlatformSupport.cpp:
2773         (WebCore):
2774
2775 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2776
2777         [Chromium] Call defaultLocale directly
2778         https://bugs.webkit.org/show_bug.cgi?id=85192
2779
2780         Reviewed by Kentaro Hara.
2781
2782         Part of a refactoring series. See tracking bug 82948.
2783
2784         * src/PlatformSupport.cpp:
2785         (WebCore):
2786
2787 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2788
2789         [Chromium] Use new syntax to call callOnMainThread directly
2790         https://bugs.webkit.org/show_bug.cgi?id=85190
2791
2792         Reviewed by Kentaro Hara.
2793
2794         Part of a refactoring series. See tracking bug 82948.
2795
2796         * src/ChromiumThreading.cpp:
2797         (WTF::ChromiumThreading::callOnMainThread):
2798
2799 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2800
2801         [Chromium] Use new syntax to call monotonicallyIncreasingTime directly
2802         https://bugs.webkit.org/show_bug.cgi?id=85189
2803
2804         Reviewed by Kentaro Hara.
2805
2806         Part of a refactoring series. See tracking bug 82948.
2807
2808         * src/ChromiumCurrentTime.cpp:
2809         (WTF::monotonicallyIncreasingTime):
2810
2811 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2812
2813         [Chromium] Use new syntax to call userAgent directly
2814         https://bugs.webkit.org/show_bug.cgi?id=85188
2815
2816         Reviewed by Kentaro Hara.
2817
2818         Part of a refactoring series. See tracking bug 82948.
2819         
2820         * src/FrameLoaderClientImpl.cpp:
2821         (WebKit::FrameLoaderClientImpl::userAgent):
2822
2823 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2824
2825         [Chromium] Use new syntax to call currentTime directly
2826         https://bugs.webkit.org/show_bug.cgi?id=85187
2827
2828         Reviewed by Kentaro Hara.
2829
2830         Part of a refactoring series. See tracking bug 82948.
2831
2832         * src/ChromiumCurrentTime.cpp:
2833         (WTF::currentTime):
2834
2835 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2836
2837         [Chromium] Use new syntax to call currentThread directly
2838         https://bugs.webkit.org/show_bug.cgi?id=85185
2839
2840         Reviewed by Kentaro Hara.
2841
2842         Part of a refactoring series. See tracking bug 82948.
2843         
2844         * src/CCThreadImpl.cpp:
2845         (WebKit::CCThreadImpl::CCThreadImpl):
2846         * src/WebCompositorImpl.cpp:
2847         (WebKit::WebCompositorImpl::initialize):
2848
2849 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2850
2851         [Chromium] Use new syntax to call createThread directly
2852         https://bugs.webkit.org/show_bug.cgi?id=85186
2853
2854         Reviewed by Kentaro Hara.
2855
2856         Part of a refactoring series. See tracking bug 82948.
2857
2858         * tests/CCLayerTreeHostTest.cpp:
2859         (WTF::CCLayerTreeHostTest::runTest):
2860         * tests/Canvas2DLayerChromiumTest.cpp:
2861         (Canvas2DLayerChromiumTest::fullLifecycleTest):
2862
2863 2012-04-30  Mark Pilgrim  <pilgrim@chromium.org>
2864
2865         [Chromium] Use new syntax to call createSocketStreamHandle directly
2866         https://bugs.webkit.org/show_bug.cgi?id=85184
2867
2868         Reviewed by Kentaro Hara.
2869
2870         Part of a refactoring series. See tracking bug 82948.
2871         
2872         * src/SocketStreamHandle.cpp:
2873         (WebCore::SocketStreamHandleInternal::connect):
2874
2875 2012-04-29  Mark Pilgrim  <pilgrim@chromium.org>
2876
2877         [Chromium] Call highUsageDeltaMB directly
2878         https://bugs.webkit.org/show_bug.cgi?id=84844
2879
2880         Reviewed by Kentaro Hara.
2881
2882         Part of a refactoring series. See tracking bug 82948.
2883
2884         * src/PlatformSupport.cpp:
2885         (WebCore):
2886
2887 2012-04-28  Ilya Tikhonovsky  <loislo@chromium.org>
2888
2889         Web Inspector: InspectorFrontendHost.append has to be implemented for saving heap snapshots.
2890         https://bugs.webkit.org/show_bug.cgi?id=85137
2891
2892         We can save a file with help of InspectorFrontendHost.save method,
2893         but it is suitable only for relatively small portions of data and
2894         can't process the 6Gb heap snapshot.
2895         These methods just pass the url and content into embedder.
2896
2897         Reviewed by Yury Semikhatsky.
2898
2899         * public/WebDevToolsFrontendClient.h:
2900         (WebKit::WebDevToolsFrontendClient::append):
2901         * src/InspectorFrontendClientImpl.cpp:
2902         (WebKit::InspectorFrontendClientImpl::append):
2903         (WebKit):
2904         * src/InspectorFrontendClientImpl.h:
2905         (InspectorFrontendClientImpl):
2906
2907 2012-04-28  Andrey Kosyakov  <caseq@chromium.org>
2908
2909         [chromium] add frame boundaries instrumentation for the threaded compositor
2910         https://bugs.webkit.org/show_bug.cgi?id=83926
2911
2912         - call instrumentBeginFrame() in a callback invoked by CCThreadProxy to fix frame marks in WebInspector's
2913           timeline panel, currently broken for threaded compositor.
2914
2915         * src/WebViewImpl.cpp:
2916         (WebKit::WebViewImpl::willBeginFrame):
2917
2918 2012-04-27  Sheriff Bot  <webkit.review.bot@gmail.com>
2919
2920         Unreviewed, rolling out r115529.
2921         http://trac.webkit.org/changeset/115529
2922         https://bugs.webkit.org/show_bug.cgi?id=85125
2923
2924         Broke Clang build (Requested by enne on #webkit).
2925
2926         * WebKit.gypi:
2927         * src/WebMediaPlayerClientImpl.cpp:
2928         (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient):
2929         * src/WebMediaPlayerClientImpl.h:
2930         (WebMediaPlayerClientImpl):
2931         * tests/WebMediaPlayerClientImplTest.cpp: Removed.
2932
2933 2012-04-27  Mark Pilgrim  <pilgrim@chromium.org>
2934
2935         [Chromium] Call highMemoryUsageMB directly
2936         https://bugs.webkit.org/show_bug.cgi?id=84841
2937
2938         Reviewed by Kentaro Hara.
2939
2940         Part of a refactoring series. See tracking bug 82948.
2941
2942         * src/PlatformSupport.cpp:
2943         (WebCore):
2944
2945 2012-04-27  Adrienne Walker  <enne@google.com>
2946
2947         [chromium] Allow WebMediaPlayerClientImpl to switch clients
2948         https://bugs.webkit.org/show_bug.cgi?id=85093
2949
2950         Reviewed by James Robinson.
2951
2952         WebVideoFrameProviderClient has a 1:1 relationship with a
2953         WebVideoFrameProvider. The client here is CCVideoLayerImpl and the
2954         provider is WebMediaPlayerClientImpl.  If the provider gets a new
2955         client, then the old client needs to be informed to stop using the
2956         provider.
2957
2958         If this doesn't happen, then the old client will have an unsafe
2959         pointer to the provider, will not get informed if the provider gets
2960         deleted, and the client will crash when it dereferences the provider
2961         pointer trying to tell the provider that its client is going away.
2962
2963         Test: WebMediaPlayerClientImplTest.InitialNullVideoClient
2964               WebMediaPlayerClientImplTest.SetAndUnsetVideoClient
2965               WebMediaPlayerClientImplTest.DestroyProvider
2966               WebMediaPlayerClientImplTest.SetMultipleVideoClients
2967
2968         * WebKit.gypi:
2969         * src/WebMediaPlayerClientImpl.cpp:
2970         (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient):
2971         * src/WebMediaPlayerClientImpl.h:
2972         (WebMediaPlayerClientImpl):
2973         * tests/WebMediaPlayerClientImplTest.cpp: Added.
2974         (WebKit):
2975         (FakeWebMediaPlayerClientImpl):
2976         (WebKit::FakeWebMediaPlayerClientImpl::create):
2977         (WebKit::FakeWebMediaPlayerClientImpl::FakeWebMediaPlayerClientImpl):
2978         (FakeVideoFrameProviderClient):
2979         (WebKit::FakeVideoFrameProviderClient::create):
2980         (WebKit::FakeVideoFrameProviderClient::~FakeVideoFrameProviderClient):
2981         (WebKit::FakeVideoFrameProviderClient::didReceiveFrame):
2982         (WebKit::FakeVideoFrameProviderClient::didUpdateMatrix):
2983         (WebKit::FakeVideoFrameProviderClient::stopUsingProvider):
2984         (WebKit::FakeVideoFrameProviderClient::provider):
2985         (WebKit::FakeVideoFrameProviderClient::FakeVideoFrameProviderClient):
2986         (WebKit::TEST):
2987
2988 2012-04-27  Tony Chang  <tony@chromium.org>
2989
2990         [chromium] Fix compiler warning in CCSchedulerTest.cpp with gcc 4.6.3
2991         https://bugs.webkit.org/show_bug.cgi?id=85110
2992
2993         Reviewed by James Robinson.
2994
2995         Using gcc 4.6.3 (default on Precise), I get:
2996         third_party/WebKit/Source/WebKit/chromium/tests/CCSchedulerTest.cpp:188:5: error: converting 'false' to pointer type
2997         for argument 1 of 'char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)' [-Werror=conversion-null]
2998
2999         * tests/CCSchedulerTest.cpp:
3000         (WebKitTests::TEST):
3001
3002 2012-04-27  Nat Duca  <nduca@chromium.org>
3003
3004         Expose high-resolution on requestAnimationFrame callback
3005         https://bugs.webkit.org/show_bug.cgi?id=66683
3006
3007         This changes requestAnimationFrame's animationStartTime argument
3008         to be a high resolution DOM timestamp, per disucssion here:
3009         http://lists.w3.org/Archives/Public/public-web-perf/2012Apr/0004.html
3010
3011         Reviewed by James Robinson.
3012
3013         * src/PageWidgetDelegate.cpp:
3014         (WebKit::PageWidgetDelegate::animate):
3015         * src/WebViewImpl.cpp:
3016         (WebKit::WebViewImpl::updateAnimations):
3017
3018 2012-04-27  Mark Pilgrim  <pilgrim@chromium.org>
3019
3020         [Chromium] Call lowMemoryUsageMB directly
3021         https://bugs.webkit.org/show_bug.cgi?id=84840
3022
3023         Reviewed by Kentaro Hara.
3024
3025         Part of a refactoring series. See tracking bug 82948.
3026
3027         * src/PlatformSupport.cpp:
3028         (WebCore):
3029
3030 2012-04-27  Ian Vollick  <vollick@chromium.org>
3031
3032         [chromium] Add pause and resume support for accelerated css animations.
3033         https://bugs.webkit.org/show_bug.cgi?id=84601
3034
3035         Reviewed by James Robinson.
3036
3037         * tests/CCActiveAnimationTest.cpp:
3038         (WebCore::TEST):
3039         (WebCore):
3040         * tests/CCLayerAnimationControllerTest.cpp:
3041         (WebKitTests::TEST):
3042         (WebKitTests):
3043
3044 2012-04-26  James Robinson  <jamesr@chromium.org>
3045
3046         [chromium] Separate IOSurface layer type from texture layers
3047         https://bugs.webkit.org/show_bug.cgi?id=85030
3048
3049         Reviewed by Adrienne Walker.
3050
3051         Update WebPluginContainerImpl to support having either a texture or IOSurface layer (but never both) depending
3052         on the plugin's contents.
3053
3054         * WebKit.gyp:
3055         * src/WebExternalTextureLayer.cpp:
3056         * src/WebIOSurfaceLayer.cpp:
3057         (WebKit):
3058         (WebKit::WebIOSurfaceLayer::create):
3059         (WebKit::WebIOSurfaceLayer::setIOSurfaceProperties):
3060         (WebKit::WebIOSurfaceLayer::WebIOSurfaceLayer):
3061         * src/WebPluginContainerImpl.cpp:
3062         (WebKit::WebPluginContainerImpl::setBackingTextureId):
3063         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
3064         (WebKit::WebPluginContainerImpl::commitBackingTexture):
3065         (WebKit::WebPluginContainerImpl::setOpaque):
3066         (WebKit::WebPluginContainerImpl::platformLayer):
3067         (WebKit::WebPluginContainerImpl::WebPluginContainerImpl):
3068         * src/WebPluginContainerImpl.h:
3069         (WebPluginContainerImpl):
3070
3071 2012-04-27  Hans Wennborg  <hans@chromium.org>
3072
3073         Speech JavaScript API: Fix Vector use failure
3074         https://bugs.webkit.org/show_bug.cgi?id=85069
3075
3076         Reviewed by Tony Gentilcore.
3077
3078         Fix think-o in code copying from WebVector to Vector.
3079
3080         * src/SpeechRecognitionClientProxy.cpp:
3081         (WebKit::SpeechRecognitionClientProxy::didReceiveResult):
3082         (WebKit::SpeechRecognitionClientProxy::didDeleteResult):
3083         * src/WebSpeechRecognitionResult.cpp:
3084         (WebKit::WebSpeechRecognitionResult::assign):
3085
3086 2012-04-27  Leandro Gracia Gil  <leandrogracia@chromium.org>
3087
3088         Selectively retrieve text around a touched point.
3089         https://bugs.webkit.org/show_bug.cgi?id=82460
3090
3091         Reviewed by Darin Fisher.
3092
3093         Implements an embedding API to WebCore's SurroundingText, adding also
3094         the possibility of select and highlight the retrieved text range.
3095
3096         * WebKit.gyp:
3097         * public/WebFrame.h:
3098         (WebFrame):
3099         * public/WebHitTestResult.h: Added.
3100         (WebCore):
3101         (WebKit):
3102         (WebHitTestResult):
3103         (WebKit::WebHitTestResult::WebHitTestResult):
3104         (WebKit::WebHitTestResult::~WebHitTestResult):
3105         * public/WebRange.h:
3106         (WebKit):
3107         (WebRange):
3108         * public/WebSurroundingText.h: Added.
3109         (WebCore):
3110         (WebKit):
3111         (WebSurroundingText):
3112         (WebKit::WebSurroundingText::WebSurroundingText):
3113         (WebKit::WebSurroundingText::~WebSurroundingText):
3114         * public/WebView.h:
3115         (WebKit):
3116         * src/WebFrameImpl.cpp:
3117         (WebKit::WebFrameImpl::selectRange):
3118         (WebKit):
3119         * src/WebFrameImpl.h:
3120         (WebFrameImpl):
3121         * src/WebHitTestResult.cpp: Added.
3122         (WebKit):
3123         (WebKit::WebHitTestResult::node):
3124         (WebKit::WebHitTestResult::localPoint):
3125         (WebKit::WebHitTestResult::WebHitTestResult):
3126         (WebKit::WebHitTestResult::operator=):
3127         (WebKit::WebHitTestResult::operator HitTestResult):
3128         (WebKit::WebHitTestResult::isNull):
3129         (WebKit::WebHitTestResult::assign):
3130         (WebKit::WebHitTestResult::reset):
3131         * src/WebRange.cpp:
3132         (WebKit::WebRange::textQuads):
3133         (WebKit):
3134         * src/WebSurroundingText.cpp: Added.
3135         (WebKit):
3136         (WebKit::WebSurroundingText::initialize):
3137         (WebKit::WebSurroundingText::textContent):
3138         (WebKit::WebSurroundingText::hitOffsetInTextContent):
3139         (WebKit::WebSurroundingText::rangeFromContentOffsets):
3140         (WebKit::WebSurroundingText::isNull):
3141         (WebKit::WebSurroundingText::reset):
3142
3143 2012-04-27  Dimitri Glazkov  <dglazkov@chromium.org>
3144
3145         Unreviewed, rolling out r115463.
3146         http://trac.webkit.org/changeset/115463
3147         https://bugs.webkit.org/show_bug.cgi?id=82460
3148
3149         Broke Mac build.
3150
3151         * WebKit.gyp:
3152         * public/WebFrame.h:
3153         (WebFrame):
3154         * public/WebHitTestResult.h: Removed.
3155         * public/WebRange.h:
3156         (WebRange):
3157         * public/WebSurroundingText.h: Removed.
3158         * public/WebView.h:
3159         (WebKit):
3160         * src/WebFrameImpl.cpp:
3161         * src/WebFrameImpl.h:
3162         (WebFrameImpl):
3163         * src/WebHitTestResult.cpp: Removed.
3164         * src/WebRange.cpp:
3165         * src/WebSurroundingText.cpp: Removed.
3166
3167 2012-04-27  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
3168
3169         Added a chromium webkit public header file to support different web print scaling options.
3170         https://bugs.webkit.org/show_bug.cgi?id=84608
3171
3172         Reviewed by Darin Fisher.
3173
3174         * WebKit.gyp:
3175         * public/WebPrintScalingOption.h: Added.
3176         (WebKit):
3177
3178 2012-04-27  Leandro Gracia Gil  <leandrogracia@chromium.org>
3179
3180         Selectively retrieve text around a touched point.
3181         https://bugs.webkit.org/show_bug.cgi?id=82460
3182
3183         Reviewed by Darin Fisher.
3184
3185         Implements an embedding API to WebCore's SurroundingText, adding also
3186         the possibility of select and highlight the retrieved text range.
3187
3188         * WebKit.gyp:
3189         * public/WebFrame.h:
3190         (WebFrame):
3191         * public/WebHitTestResult.h: Added.
3192         (WebCore):
3193         (WebKit):
3194         (WebHitTestResult):
3195         (WebKit::WebHitTestResult::WebHitTestResult):
3196         (WebKit::WebHitTestResult::~WebHitTestResult):
3197         * public/WebRange.h:
3198         (WebKit):
3199         (WebRange):
3200         * public/WebSurroundingText.h: Added.
3201         (WebCore):
3202         (WebKit):
3203         (WebSurroundingText):
3204         (WebKit::WebSurroundingText::WebSurroundingText):
3205         (WebKit::WebSurroundingText::~WebSurroundingText):
3206         * public/WebView.h:
3207         (WebKit):
3208         * src/WebFrameImpl.cpp:
3209         (WebKit::WebFrameImpl::selectRange):
3210         (WebKit):
3211         * src/WebFrameImpl.h:
3212         (WebFrameImpl):
3213         * src/WebHitTestResult.cpp: Added.
3214         (WebKit):
3215         (WebKit::WebHitTestResult::node):
3216         (WebKit::WebHitTestResult::localPoint):
3217         (WebKit::WebHitTestResult::WebHitTestResult):
3218         (WebKit::WebHitTestResult::operator=):
3219         (WebKit::WebHitTestResult::operator HitTestResult):
3220         (WebKit::WebHitTestResult::isNull):
3221         (WebKit::WebHitTestResult::assign):
3222         (WebKit::WebHitTestResult::reset):
3223         * src/WebRange.cpp:
3224         (WebKit::WebRange::textQuads):
3225         (WebKit):
3226         * src/WebSurroundingText.cpp: Added.
3227         (WebKit):
3228         (WebKit::WebSurroundingText::initialize):
3229         (WebKit::WebSurroundingText::textContent):
3230         (WebKit::WebSurroundingText::hitOffsetInTextContent):
3231         (WebKit::WebSurroundingText::rangeFromContentOffsets):
3232         (WebKit::WebSurroundingText::isNull):
3233         (WebKit::WebSurroundingText::reset):
3234
3235 2012-04-27  Sheriff Bot  <webkit.review.bot@gmail.com>
3236
3237         Unreviewed, rolling out r115436.
3238         http://trac.webkit.org/changeset/115436
3239         https://bugs.webkit.org/show_bug.cgi?id=85079
3240
3241         "broke the build" (Requested by tonyg-cr on #webkit).
3242
3243         * WebKit.gyp:
3244         * public/WebReferrerPolicy.h: Added.
3245
3246 2012-04-27  Gavin Peters  <gavinp@chromium.org>
3247
3248         Add new ENABLE_LINK_PRERENDER define to control the Prerendering API
3249         https://bugs.webkit.org/show_bug.cgi?id=84871
3250
3251         Reviewed by Adam Barth.
3252
3253         Prerendering is currently covered by the ENABLE_LINK_PREFETCH macro, but the new Prerendering
3254         API separates it from prefetching.  Having separate include guards lets ports enable prefetching,
3255         a relatively easy change, without needing to build the infrastructure for prerendering, which
3256         is considerably more complicated.
3257
3258 2012-04-27  Dimitri Glazkov  <dglazkov@chromium.org>
3259
3260         Unreviewed, rolling out r115433.
3261         http://trac.webkit.org/changeset/115433
3262         https://bugs.webkit.org/show_bug.cgi?id=85052
3263
3264         Enable unit tests again.
3265
3266         * tests/PopupMenuTest.cpp:
3267         (WebKit::TEST_F):
3268
3269 2012-04-27  Dimitri Glazkov  <dglazkov@chromium.org>
3270
3271         Unreviewed, rolling out r115421.
3272         http://trac.webkit.org/changeset/115421
3273         https://bugs.webkit.org/show_bug.cgi?id=85052
3274
3275         Enable unit tests again.
3276
3277         * tests/PopupMenuTest.cpp:
3278         (WebKit::TEST_F):
3279
3280 2012-04-27  Dimitri Glazkov  <dglazkov@chromium.org>
3281
3282         Unreviewed, rolling out r115400.
3283         http://trac.webkit.org/changeset/115400
3284         https://bugs.webkit.org/show_bug.cgi?id=84420
3285
3286         Broke unit tests.
3287
3288         * src/ChromeClientImpl.cpp:
3289         (WebKit::ChromeClientImpl::popupOpened):
3290         * src/WebViewImpl.cpp:
3291         (WebKit::WebViewImpl::applyAutofillSuggestions):
3292
3293 2012-04-27  Gavin Peters  <gavinp@chromium.org>
3294
3295         [Chromium] Remove Webkit/chromium/public/WebReferrerPolicy.h thunk.
3296         https://bugs.webkit.org/show_bug.cgi?id=84552
3297
3298         After http://codereview.chromium.org/10139023/ lands, this thunk is no
3299         longer needed.
3300
3301         Reviewed by Adam Barth.
3302
3303         * WebKit.gyp:
3304         * public/WebReferrerPolicy.h: Removed.
3305
3306 2012-04-27  Marcus Bulach  <bulach@chromium.org>
3307
3308         [chromium] Disables a few more webkit_unittests.
3309         https://bugs.webkit.org/show_bug.cgi?id=85052
3310
3311         Unreviewed build fix.
3312         
3313         Failing on Windows bots, probably due to r115400.
3314
3315         * tests/PopupMenuTest.cpp:
3316         (WebKit::TEST_F):
3317
3318 2012-04-27  Marcus Bulach  <bulach@chromium.org>
3319
3320         [chromium] Disables a few webkit_unittests.
3321         https://bugs.webkit.org/show_bug.cgi?id=85052
3322
3323         Unreviewed build fix.
3324
3325         * tests/PopupMenuTest.cpp:
3326         (WebKit::TEST_F):
3327
3328 2012-04-24  James Robinson  <jamesr@chromium.org>
3329
3330         [chromium] Move ProgramBinding definitions to LayerRendererChromium and normalize naming
3331         https://bugs.webkit.org/show_bug.cgi?id=84808
3332
3333         Reviewed by Adrienne Walker.
3334
3335         Add some includes needed by this test that were previously picked up by upstream headers.
3336
3337         * tests/CCLayerTreeHostImplTest.cpp:
3338
3339 2012-04-26  Ilya Sherman  <isherman@chromium.org>
3340
3341         [Chromium] Security: Autofill info can be captured by innocuous social engineering
3342         Prevent users from interacting with invisible popups rendered outside the main frame's contents view.
3343         https://bugs.webkit.org/show_bug.cgi?id=84420
3344         https://code.google.com/p/chromium/issues/detail?id=122925
3345
3346         Reviewed by Kent Tamura.
3347
3348         * src/ChromeClientImpl.cpp:
3349         (WebKit::ChromeClientImpl::popupOpened): Hide popups rendered outside the main frame's contents view.
3350         * src/WebViewImpl.cpp:
3351         (WebKit::WebViewImpl::applyAutofillSuggestions): Fix up order of operations to support immediately hiding a popup if it would not be visible
3352
3353 2012-04-26  Dana Jansens  <danakj@chromium.org>
3354
3355         [chromium] Some background filters require inflating damage on the surface behind them
3356         https://bugs.webkit.org/show_bug.cgi?id=84479
3357
3358         Reviewed by Adrienne Walker.
3359
3360         * tests/CCDamageTrackerTest.cpp:
3361         (WebKitTests::TEST_F):
3362         (WebKitTests):
3363
3364 2012-04-26  Aaron Colwell  <acolwell@chromium.org>
3365
3366         Cleanup WebMediaPlayer enum values that didn't match Chromium style guidelines
3367         https://bugs.webkit.org/show_bug.cgi?id=84998
3368
3369         Reviewed by Darin Fisher.
3370
3371         * public/WebMediaPlayer.h:
3372         (WebKit::WebMediaPlayer::generateKeyRequest):
3373         (WebKit::WebMediaPlayer::addKey):
3374         (WebKit::WebMediaPlayer::cancelKeyRequest):
3375
3376 2012-04-26  Shawn Singh  <shawnsingh@chromium.org>
3377
3378         [chromium] re-implement backFaceVisibility to avoid dealing with perspective w<0 problem
3379         https://bugs.webkit.org/show_bug.cgi?id=84059
3380
3381         Reviewed by Adrienne Walker.
3382
3383         * WebKit.gypi:
3384         * tests/CCMathUtilTest.cpp: Added.
3385         (WebCore):
3386         (WebCore::TEST):
3387
3388 2012-04-26  Justin Novosad  <junov@chromium.org>
3389
3390         [Chromium] Single buffered canvas layers with the threaded compositor
3391         https://bugs.webkit.org/show_bug.cgi?id=80540
3392
3393         Reviewed by James Robinson.
3394
3395         * tests/CCLayerTreeHostTest.cpp:
3396         (WTF::CCLayerTreeHostTest::AcquireLayerTextures):
3397         (CCLayerTreeHostTest):
3398         (WTF::CCLayerTreeHostTest::dispatchAcquireLayerTextures):
3399         (WTF::TEST_F):
3400         (WTF):
3401         (CCLayerTreeHostTestWriteLayersRedraw):
3402         (WTF::CCLayerTreeHostTestWriteLayersRedraw::CCLayerTreeHostTestWriteLayersRedraw):
3403         (WTF::CCLayerTreeHostTestWriteLayersRedraw::beginTest):
3404         (WTF::CCLayerTreeHostTestWriteLayersRedraw::drawLayersOnCCThread):
3405         (WTF::CCLayerTreeHostTestWriteLayersRedraw::commitCompleteOnCCThread):
3406         (WTF::CCLayerTreeHostTestWriteLayersRedraw::afterTest):
3407         (CCLayerTreeHostTestWriteLayersAfterVisible):
3408         (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::CCLayerTreeHostTestWriteLayersAfterVisible):
3409         (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::beginTest):
3410         (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::commitCompleteOnCCThread):
3411         (WTF::CCLayerTreeHostTestWriteLayersAfterVisible::afterTest):
3412         * tests/CCSchedulerTest.cpp:
3413         (WebKitTests::TEST):
3414         (WebKitTests):
3415         * tests/Canvas2DLayerChromiumTest.cpp:
3416         (Canvas2DLayerChromiumTest::fullLifecycleTest):
3417
3418 2012-04-26  Joshua Bell  <jsbell@chromium.org>
3419
3420         [Chromium] IndexedDB: Use WebIDBKeyPath type for key paths in WebKit API
3421         https://bugs.webkit.org/show_bug.cgi?id=84631
3422
3423         Reviewed by James Robinson.
3424
3425         WebIDBKeyPath was previously a utility class for parsing key paths into components,
3426         but the API exposed key paths only as nullable strings. To support array-type keypaths,
3427         WebIDBKeyPath becomes a value class with type flags. For landing, several legacy methods
3428         are retained but will be cleaned up after all callers have been updated, tracked as
3429         the bug: http://webkit.org/b/84207
3430
3431         * public/WebIDBDatabase.h:
3432         (WebKit::WebIDBDatabase::createObjectStore): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch.
3433         * public/WebIDBIndex.h:
3434         (WebKit::WebIDBIndex::keyPath): Calls keyPathString if not overridden.
3435         (WebKit::WebIDBIndex::keyPathString): Comment change.
3436         * public/WebIDBKeyPath.h:
3437         (WebKit::WebIDBKeyPath::create): Overload added for creating array-type key paths.
3438         (WebKit::WebIDBKeyPath::array): Accessor for array-type key paths.
3439         (WebKit::WebIDBKeyPath::operator const WebString ): Temporary, for compatibility.
3440         * public/WebIDBObjectStore.h:
3441         (WebKit::WebIDBObjectStore::keyPath): Calls keyPathString if not overridden.
3442         (WebKit::WebIDBObjectStore::keyPathString): Comment change.
3443         (WebKit::WebIDBObjectStore::createIndex): Add WebIDBKeyPath overload; WebString overload delegates so implementers can switch.
3444         * public/platform/WebKitPlatformSupport.h:
3445         (WebKitPlatformSupport): WebIDBKeyPath overloads for these methods added, delegate to WebString version until implementers are updated.
3446         (WebKit::WebKitPlatformSupport::createIDBKeysFromSerializedValuesAndKeyPath):
3447         (WebKit::WebKitPlatformSupport::injectIDBKeyIntoSerializedValue):
3448         * src/IDBIndexBackendProxy.cpp:
3449         (WebKit::IDBIndexBackendProxy::keyPath): Returns the string version until WebCore is updated.
3450         * src/IDBObjectStoreBackendProxy.cpp:
3451         (WebKit::IDBObjectStoreBackendProxy::keyPath): Returns the string version until WebCore is updated.
3452         * src/WebIDBDatabaseImpl.h:
3453         (WebIDBDatabaseImpl): Add createObjectStore overload for WebIDBKeyPath type, delegates to WebString version until callers are updated.
3454         * src/WebIDBIndexImpl.cpp:
3455         (WebKit::WebIDBIndexImpl::keyPath): Implements the new WebIDBKeyPath return type.
3456         (WebKit):
3457         * src/WebIDBIndexImpl.h:
3458         (WebIDBIndexImpl): Implements the new WebIDBKeyPath return type.
3459         * src/WebIDBKeyPath.cpp:
3460         (WebKit::WebIDBKeyPath::create): Support null key path types.
3461         (WebKit::WebIDBKeyPath::createNull): New API.
3462         (WebKit):
3463         (WebKit::WebIDBKeyPath::isValid): New API.
3464         (WebKit::WebIDBKeyPath::type): New API.
3465         (WebKit::WebIDBKeyPath::string): New API (value accessor).
3466         (WebKit::WebIDBKeyPath::WebIDBKeyPath):
3467         (WebKit::WebIDBKeyPath::assign): This API will be removed.
3468         (WebKit::WebIDBKeyPath::operator const WTF::Vector<WTF::String, 0>&): Ensure it is non-null - only used in copy constructor which guards against this.
3469         * src/WebIDBObjectStoreImpl.cpp:
3470         (WebKit::WebIDBObjectStoreImpl::keyPath): Implement the new WebIDBKeyPath return type.
3471         (WebKit):
3472         * src/WebIDBObjectStoreImpl.h:
3473         (WebIDBObjectStoreImpl): Add createIndex overload for WebIDBKeyPath type, delegates to WebString version until callers are updated.
3474
3475 2012-04-26  Alexander Pavlov  <apavlov@chromium.org>
3476
3477         Web Inspector: [CRASH] WebViewImpl::setZoomLevel when emulating device metrics
3478         https://bugs.webkit.org/show_bug.cgi?id=84938
3479
3480         Check for the presence of a live Frame/FrameView before invoking methods that depend on them.
3481
3482         Reviewed by Yury Semikhatsky.
3483
3484         * src/WebDevToolsAgentImpl.cpp:
3485         (WebKit::DeviceMetricsSupport::restore):
3486
3487 2012-04-25  Dana Jansens  <danakj@chromium.org>
3488
3489         [chromium] Remove guarded virtual methods from WebFilterOperation API
3490         https://bugs.webkit.org/show_bug.cgi?id=84926
3491
3492         Reviewed by James Robinson.
3493
3494         * src/AssertMatchingEnums.cpp:
3495
3496 2012-04-25  James Robinson  <jamesr@chromium.org>
3497
3498         [chromium] REGRESSION(112286) Compositor initialization blocks for program compilation / linking
3499         https://bugs.webkit.org/show_bug.cgi?id=84822
3500
3501         Reviewed by Adrienne Walker.
3502
3503         Add a test that makes sure we don't make blocking calls during LayerRendererChromium initialization.
3504
3505         * tests/LayerRendererChromiumTest.cpp:
3506         (ForbidSynchronousCallContext):
3507         (ForbidSynchronousCallContext::ForbidSynchronousCallContext):