Unreviewed, rolling out r103169.
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2011-12-18  Sheriff Bot  <webkit.review.bot@gmail.com>
2
3         Unreviewed, rolling out r103169.
4         http://trac.webkit.org/changeset/103169
5         https://bugs.webkit.org/show_bug.cgi?id=74809
6
7         it broke compilation on many platforms (Requested by loislo_
8         on #webkit).
9
10         * WebKit.gyp:
11         * features.gypi:
12         * public/WebColorChooser.h: Removed.
13         * public/WebColorChooserClient.h: Removed.
14         * public/WebViewClient.h:
15         * src/ChromeClientImpl.cpp:
16         * src/ChromeClientImpl.h:
17         * src/ColorChooserProxy.cpp: Removed.
18         * src/WebColorChooserClientImpl.cpp: Removed.
19         * src/WebColorChooserClientImpl.h: Removed.
20
21 2011-12-18  Keishi Hattori  <keishi@webkit.org>
22
23         Implement <input type=color> UI WebKit chromium part
24         https://bugs.webkit.org/show_bug.cgi?id=65897
25
26         Reviewed by Darin Fisher.
27
28         * WebKit.gyp: Added new files.
29         * features.gypi: Added ENABLE_INPUT_COLOR.
30         * public/WebColorChooser.h: Added. Interface for ColorChooserProxy to call.
31         (WebKit::WebColorChooser::~WebColorChooser):
32         (WebKit::WebColorChooser::setSelectedColor):
33         (WebKit::WebColorChooser::endChooser):
34         * public/WebColorChooserClient.h: Added.
35         (WebKit::WebColorChooserClient::~WebColorChooserClient):
36         (WebKit::WebColorChooserClient::didChooseColor): Only called when user changes the color.
37         (WebKit::WebColorChooserClient::didEndChooser): Called when WebColorChooser::endChooser is called.
38         * public/WebViewClient.h:
39         (WebKit::WebViewClient::createColorChooser): Creates a new color chooser. If there is an old color chooser, this will end it.
40         * src/ChromeClientImpl.cpp:
41         (WebKit::ChromeClientImpl::createColorChooser): Calls WebViewClient::createColorChooser.
42         * src/ChromeClientImpl.h:
43         * src/ColorChooserProxy.cpp: Proxies calls to WebCore::ColorChooser to WebKit::WebColorChooser.
44         (WebKit::ColorChooserProxy::ColorChooserProxy):
45         (WebKit::ColorChooserProxy::~ColorChooserProxy):
46         (WebKit::ColorChooserProxy::setSelectedColor):
47         (WebKit::ColorChooserProxy::endChooser):
48         * src/ColorChooserProxy.h:
49         * src/WebColorChooserClientImpl.cpp: Proxies calls to WebKit::WebColorChooserClient to WebCore::ColorChooserClient.
50         (WebKit::WebColorChooserClientImpl::WebColorChooserClientImpl):
51         (WebKit::WebColorChooserClientImpl::~WebColorChooserClientImpl):
52         (WebKit::WebColorChooserClientImpl::didChooseColor):
53         (WebKit::WebColorChooserClientImpl::didEndChooser):
54         * src/WebColorChooserClientImpl.h: Added.
55
56 2011-12-17  Sam Weinig  <sam@webkit.org>
57
58         Make PlatformTouchEvent inherit from PlatformEvent
59         https://bugs.webkit.org/show_bug.cgi?id=74777
60
61         Reviewed by Andreas Kling.
62
63         * src/WebInputEventConversion.cpp:
64         (WebKit::toPlatformTouchEventType):
65         * tests/InnerGestureRecognizerTest.cpp:
66         (BuildablePlatformTouchEvent::BuildablePlatformTouchEvent):
67         (SimulateAndTestFirstClick):
68         (TouchPointAndEvent::TouchPointAndEvent):
69         Add PlatformEvent prefix to enum types.
70
71 2011-12-17  Adrienne Walker  <enne@google.com>
72
73         [chromium] Reverting r103011, r103135 due to Aura test failures
74
75         Unreviewed gardening.
76
77         * WebKit.gypi:
78         * public/platform/WebContentLayer.h:
79         * public/platform/WebExternalTextureLayer.h:
80         * public/platform/WebLayer.h:
81         * public/platform/WebLayerClient.h:
82         * src/WebContentLayer.cpp:
83         (WebKit::WebContentLayer::create):
84         * src/WebContentLayerImpl.cpp:
85         (WebKit::WebContentLayerImpl::create):
86         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
87         (WebKit::WebContentLayerImpl::notifySyncRequired):
88         * src/WebContentLayerImpl.h:
89         * src/WebExternalTextureLayer.cpp:
90         (WebKit::WebExternalTextureLayer::create):
91         * src/WebExternalTextureLayerImpl.cpp:
92         (WebKit::WebExternalTextureLayerImpl::create):
93         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
94         (WebKit::WebExternalTextureLayerImpl::notifySyncRequired):
95         * src/WebExternalTextureLayerImpl.h:
96         * src/WebLayer.cpp:
97         (WebKit::WebLayer::create):
98         * src/WebLayerImpl.cpp:
99         (WebKit::WebLayerImpl::create):
100         (WebKit::WebLayerImpl::WebLayerImpl):
101         (WebKit::WebLayerImpl::notifySyncRequired):
102         * src/WebLayerImpl.h:
103         * src/WebLayerTreeViewImpl.cpp:
104         (WebKit::WebLayerTreeViewImpl::create):
105         (WebKit::WebLayerTreeViewImpl::WebLayerTreeViewImpl):
106         * src/WebLayerTreeViewImpl.h:
107         * tests/CCLayerTreeHostImplTest.cpp:
108         * tests/CCLayerTreeHostTest.cpp:
109         (WTF::MockLayerTreeHost::create):
110         (WTF::MockLayerTreeHost::MockLayerTreeHost):
111         (WTF::CompositorMockWebGraphicsContext3D::create):
112         (WTF::CompositorMockWebGraphicsContext3D::makeContextCurrent):
113         (WTF::CompositorMockWebGraphicsContext3D::createProgram):
114         (WTF::CompositorMockWebGraphicsContext3D::createShader):
115         (WTF::CompositorMockWebGraphicsContext3D::getShaderiv):
116         (WTF::CompositorMockWebGraphicsContext3D::getProgramiv):
117         (WTF::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
118         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
119         (WTF::CCLayerTreeHostTestShortlived1::beginTest):
120         (WTF::CCLayerTreeHostTestShortlived2::beginTest):
121         (WTF::CCLayerTreeHostTestShortlived3::beginTest):
122         (WTF::CCLayerTreeHostTestScrollSimple::beginCommitOnCCThread):
123         (WTF::TestOpacityChangeLayerDelegate::notifySyncRequired):
124         * tests/CompositorFakeGraphicsContext3D.h: Removed.
125         * tests/CompositorFakeWebGraphicsContext3D.h: Removed.
126         * tests/LayerChromiumTest.cpp:
127         * tests/MockGraphicsContext3DTest.cpp: Renamed from Source/WebKit/chromium/tests/FakeGraphicsContext3DTest.cpp.
128         (FrameCountingContext::FrameCountingContext):
129         (FrameCountingContext::prepareTexture):
130         (FrameCountingContext::frameCount):
131         (TEST):
132         (ContextThatCountsMakeCurrents::ContextThatCountsMakeCurrents):
133         (ContextThatCountsMakeCurrents::makeContextCurrent):
134         (ContextThatCountsMakeCurrents::makeCurrentCount):
135         (ContextWithMakeCurrentThatFails::ContextWithMakeCurrentThatFails):
136         (ContextWithMakeCurrentThatFails::makeContextCurrent):
137         * tests/MockWebGraphicsContext3D.h: Renamed from Source/WebKit/chromium/tests/FakeWebGraphicsContext3D.h.
138         (WebKit::MockWebGraphicsContext3D::initialize):
139         (WebKit::MockWebGraphicsContext3D::makeContextCurrent):
140         (WebKit::MockWebGraphicsContext3D::width):
141         (WebKit::MockWebGraphicsContext3D::height):
142         (WebKit::MockWebGraphicsContext3D::reshape):
143         (WebKit::MockWebGraphicsContext3D::isGLES2Compliant):
144         (WebKit::MockWebGraphicsContext3D::readBackFramebuffer):
145         (WebKit::MockWebGraphicsContext3D::getPlatformTextureId):
146         (WebKit::MockWebGraphicsContext3D::prepareTexture):
147         (WebKit::MockWebGraphicsContext3D::postSubBufferCHROMIUM):
148         (WebKit::MockWebGraphicsContext3D::synthesizeGLError):
149         (WebKit::MockWebGraphicsContext3D::isContextLost):
150         (WebKit::MockWebGraphicsContext3D::mapBufferSubDataCHROMIUM):
151         (WebKit::MockWebGraphicsContext3D::unmapBufferSubDataCHROMIUM):
152         (WebKit::MockWebGraphicsContext3D::mapTexSubImage2DCHROMIUM):
153         (WebKit::MockWebGraphicsContext3D::unmapTexSubImage2DCHROMIUM):
154         (WebKit::MockWebGraphicsContext3D::setVisibilityCHROMIUM):
155         (WebKit::MockWebGraphicsContext3D::getRequestableExtensionsCHROMIUM):
156         (WebKit::MockWebGraphicsContext3D::requestExtensionCHROMIUM):
157         (WebKit::MockWebGraphicsContext3D::blitFramebufferCHROMIUM):
158         (WebKit::MockWebGraphicsContext3D::renderbufferStorageMultisampleCHROMIUM):
159         (WebKit::MockWebGraphicsContext3D::activeTexture):
160         (WebKit::MockWebGraphicsContext3D::attachShader):
161         (WebKit::MockWebGraphicsContext3D::bindAttribLocation):
162         (WebKit::MockWebGraphicsContext3D::bindBuffer):
163         (WebKit::MockWebGraphicsContext3D::bindFramebuffer):
164         (WebKit::MockWebGraphicsContext3D::bindRenderbuffer):
165         (WebKit::MockWebGraphicsContext3D::bindTexture):
166         (WebKit::MockWebGraphicsContext3D::blendColor):
167         (WebKit::MockWebGraphicsContext3D::blendEquation):
168         (WebKit::MockWebGraphicsContext3D::blendEquationSeparate):
169         (WebKit::MockWebGraphicsContext3D::blendFunc):
170         (WebKit::MockWebGraphicsContext3D::blendFuncSeparate):
171         (WebKit::MockWebGraphicsContext3D::bufferData):
172         (WebKit::MockWebGraphicsContext3D::bufferSubData):
173         (WebKit::MockWebGraphicsContext3D::checkFramebufferStatus):
174         (WebKit::MockWebGraphicsContext3D::clear):
175         (WebKit::MockWebGraphicsContext3D::clearColor):
176         (WebKit::MockWebGraphicsContext3D::clearDepth):
177         (WebKit::MockWebGraphicsContext3D::clearStencil):
178         (WebKit::MockWebGraphicsContext3D::colorMask):
179         (WebKit::MockWebGraphicsContext3D::compileShader):
180         (WebKit::MockWebGraphicsContext3D::compressedTexImage2D):
181         (WebKit::MockWebGraphicsContext3D::compressedTexSubImage2D):
182         (WebKit::MockWebGraphicsContext3D::copyTexImage2D):
183         (WebKit::MockWebGraphicsContext3D::copyTexSubImage2D):
184         (WebKit::MockWebGraphicsContext3D::cullFace):
185         (WebKit::MockWebGraphicsContext3D::depthFunc):
186         (WebKit::MockWebGraphicsContext3D::depthMask):
187         (WebKit::MockWebGraphicsContext3D::depthRange):
188         (WebKit::MockWebGraphicsContext3D::detachShader):
189         (WebKit::MockWebGraphicsContext3D::disable):
190         (WebKit::MockWebGraphicsContext3D::disableVertexAttribArray):
191         (WebKit::MockWebGraphicsContext3D::drawArrays):
192         (WebKit::MockWebGraphicsContext3D::drawElements):
193         (WebKit::MockWebGraphicsContext3D::enable):
194         (WebKit::MockWebGraphicsContext3D::enableVertexAttribArray):
195         (WebKit::MockWebGraphicsContext3D::finish):
196         (WebKit::MockWebGraphicsContext3D::flush):
197         (WebKit::MockWebGraphicsContext3D::framebufferRenderbuffer):
198         (WebKit::MockWebGraphicsContext3D::framebufferTexture2D):
199         (WebKit::MockWebGraphicsContext3D::frontFace):
200         (WebKit::MockWebGraphicsContext3D::generateMipmap):
201         (WebKit::MockWebGraphicsContext3D::getActiveAttrib):
202         (WebKit::MockWebGraphicsContext3D::getActiveUniform):
203         (WebKit::MockWebGraphicsContext3D::getAttachedShaders):
204         (WebKit::MockWebGraphicsContext3D::getAttribLocation):
205         (WebKit::MockWebGraphicsContext3D::getBooleanv):
206         (WebKit::MockWebGraphicsContext3D::getBufferParameteriv):
207         (WebKit::MockWebGraphicsContext3D::getContextAttributes):
208         (WebKit::MockWebGraphicsContext3D::getError):
209         (WebKit::MockWebGraphicsContext3D::getFloatv):
210         (WebKit::MockWebGraphicsContext3D::getFramebufferAttachmentParameteriv):
211         (WebKit::MockWebGraphicsContext3D::getIntegerv):
212         (WebKit::MockWebGraphicsContext3D::getProgramiv):
213         (WebKit::MockWebGraphicsContext3D::getProgramInfoLog):
214         (WebKit::MockWebGraphicsContext3D::getRenderbufferParameteriv):
215         (WebKit::MockWebGraphicsContext3D::getShaderiv):
216         (WebKit::MockWebGraphicsContext3D::getShaderInfoLog):
217         (WebKit::MockWebGraphicsContext3D::getShaderSource):
218         (WebKit::MockWebGraphicsContext3D::getString):
219         (WebKit::MockWebGraphicsContext3D::getTexParameterfv):
220         (WebKit::MockWebGraphicsContext3D::getTexParameteriv):
221         (WebKit::MockWebGraphicsContext3D::getUniformfv):
222         (WebKit::MockWebGraphicsContext3D::getUniformiv):
223         (WebKit::MockWebGraphicsContext3D::getUniformLocation):
224         (WebKit::MockWebGraphicsContext3D::getVertexAttribfv):
225         (WebKit::MockWebGraphicsContext3D::getVertexAttribiv):
226         (WebKit::MockWebGraphicsContext3D::getVertexAttribOffset):
227         (WebKit::MockWebGraphicsContext3D::hint):
228         (WebKit::MockWebGraphicsContext3D::isBuffer):
229         (WebKit::MockWebGraphicsContext3D::isEnabled):
230         (WebKit::MockWebGraphicsContext3D::isFramebuffer):
231         (WebKit::MockWebGraphicsContext3D::isProgram):
232         (WebKit::MockWebGraphicsContext3D::isRenderbuffer):
233         (WebKit::MockWebGraphicsContext3D::isShader):
234         (WebKit::MockWebGraphicsContext3D::isTexture):
235         (WebKit::MockWebGraphicsContext3D::lineWidth):
236         (WebKit::MockWebGraphicsContext3D::linkProgram):
237         (WebKit::MockWebGraphicsContext3D::pixelStorei):
238         (WebKit::MockWebGraphicsContext3D::polygonOffset):
239         (WebKit::MockWebGraphicsContext3D::readPixels):
240         (WebKit::MockWebGraphicsContext3D::releaseShaderCompiler):
241         (WebKit::MockWebGraphicsContext3D::renderbufferStorage):
242         (WebKit::MockWebGraphicsContext3D::sampleCoverage):
243         (WebKit::MockWebGraphicsContext3D::scissor):
244         (WebKit::MockWebGraphicsContext3D::shaderSource):
245         (WebKit::MockWebGraphicsContext3D::stencilFunc):
246         (WebKit::MockWebGraphicsContext3D::stencilFuncSeparate):
247         (WebKit::MockWebGraphicsContext3D::stencilMask):
248         (WebKit::MockWebGraphicsContext3D::stencilMaskSeparate):
249         (WebKit::MockWebGraphicsContext3D::stencilOp):
250         (WebKit::MockWebGraphicsContext3D::stencilOpSeparate):
251         (WebKit::MockWebGraphicsContext3D::texImage2D):
252         (WebKit::MockWebGraphicsContext3D::texParameterf):
253         (WebKit::MockWebGraphicsContext3D::texParameteri):
254         (WebKit::MockWebGraphicsContext3D::texSubImage2D):
255         (WebKit::MockWebGraphicsContext3D::uniform1f):
256         (WebKit::MockWebGraphicsContext3D::uniform1fv):
257         (WebKit::MockWebGraphicsContext3D::uniform1i):
258         (WebKit::MockWebGraphicsContext3D::uniform1iv):
259         (WebKit::MockWebGraphicsContext3D::uniform2f):
260         (WebKit::MockWebGraphicsContext3D::uniform2fv):
261         (WebKit::MockWebGraphicsContext3D::uniform2i):
262         (WebKit::MockWebGraphicsContext3D::uniform2iv):
263         (WebKit::MockWebGraphicsContext3D::uniform3f):
264         (WebKit::MockWebGraphicsContext3D::uniform3fv):
265         (WebKit::MockWebGraphicsContext3D::uniform3i):
266         (WebKit::MockWebGraphicsContext3D::uniform3iv):
267         (WebKit::MockWebGraphicsContext3D::uniform4f):
268         (WebKit::MockWebGraphicsContext3D::uniform4fv):
269         (WebKit::MockWebGraphicsContext3D::uniform4i):
270         (WebKit::MockWebGraphicsContext3D::uniform4iv):
271         (WebKit::MockWebGraphicsContext3D::uniformMatrix2fv):
272         (WebKit::MockWebGraphicsContext3D::uniformMatrix3fv):
273         (WebKit::MockWebGraphicsContext3D::uniformMatrix4fv):
274         (WebKit::MockWebGraphicsContext3D::useProgram):
275         (WebKit::MockWebGraphicsContext3D::validateProgram):
276         (WebKit::MockWebGraphicsContext3D::vertexAttrib1f):
277         (WebKit::MockWebGraphicsContext3D::vertexAttrib1fv):
278         (WebKit::MockWebGraphicsContext3D::vertexAttrib2f):
279         (WebKit::MockWebGraphicsContext3D::vertexAttrib2fv):
280         (WebKit::MockWebGraphicsContext3D::vertexAttrib3f):
281         (WebKit::MockWebGraphicsContext3D::vertexAttrib3fv):
282         (WebKit::MockWebGraphicsContext3D::vertexAttrib4f):
283         (WebKit::MockWebGraphicsContext3D::vertexAttrib4fv):
284         (WebKit::MockWebGraphicsContext3D::vertexAttribPointer):
285         (WebKit::MockWebGraphicsContext3D::viewport):
286         (WebKit::MockWebGraphicsContext3D::createBuffer):
287         (WebKit::MockWebGraphicsContext3D::createFramebuffer):
288         (WebKit::MockWebGraphicsContext3D::createProgram):
289         (WebKit::MockWebGraphicsContext3D::createRenderbuffer):
290         (WebKit::MockWebGraphicsContext3D::createShader):
291         (WebKit::MockWebGraphicsContext3D::createTexture):
292         (WebKit::MockWebGraphicsContext3D::deleteBuffer):
293         (WebKit::MockWebGraphicsContext3D::deleteFramebuffer):
294         (WebKit::MockWebGraphicsContext3D::deleteProgram):
295         (WebKit::MockWebGraphicsContext3D::deleteRenderbuffer):
296         (WebKit::MockWebGraphicsContext3D::deleteShader):
297         (WebKit::MockWebGraphicsContext3D::deleteTexture):
298         (WebKit::MockWebGraphicsContext3D::texStorage2DEXT):
299         * tests/WebGLLayerChromiumTest.cpp:
300         (WebKit::CompositorMockWebGraphicsContext3D::create):
301         (WebKit::CompositorMockWebGraphicsContext3D::makeContextCurrent):
302         (WebKit::CompositorMockWebGraphicsContext3D::createProgram):
303         (WebKit::CompositorMockWebGraphicsContext3D::createShader):
304         (WebKit::CompositorMockWebGraphicsContext3D::getShaderiv):
305         (WebKit::CompositorMockWebGraphicsContext3D::getProgramiv):
306         (WebKit::CompositorMockWebGraphicsContext3D::getContextAttributes):
307         (WebKit::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
308         (WebKit::createGraphicsContext):
309         (WebKit::TEST):
310         * tests/WebLayerTest.cpp:
311         (testing::WebLayerTest::WebLayerTest):
312         (testing::TEST_F):
313
314 2011-12-17  Kenichi Ishibashi  <bashi@chromium.org>
315
316         [Chromium] Implement PluginViewBase::getFormValue
317         https://bugs.webkit.org/show_bug.cgi?id=64434
318
319         Reviewed by Darin Fisher.
320
321         This patch was landed as r102873, but reverted because of Chromium Mac build failure.
322         The fix was landed as Chromium r114920. The patch should be safe to land.
323
324         No new tests. No behavior change at this time. We should add a test for PPAPI after chromium supports the feature.
325
326         * public/WebPlugin.h: Added getFormValue().
327         * src/WebPluginContainerImpl.cpp:
328         (WebKit::WebPluginContainerImpl::getFormValue): Added.
329         * src/WebPluginContainerImpl.h: Added getFormValue().
330
331 2011-12-16  James Robinson  <jamesr@chromium.org>
332
333         [chromium] CCLayerDelegate and WebLayerClient do not need notifySyncRequired
334         https://bugs.webkit.org/show_bug.cgi?id=74376
335
336         Reviewed by Kenneth Russell.
337
338         WebLayerClient::notifyNeedsComposite() is an odd interface for the same reason that
339         CCLayerDelegate::notifySyncRequired() is - all scheduling decisions should route through the WebLayerTreeView,
340         not individual layers. In practice, all implementations of WebLayerClient::notifySyncRequired() do the exact
341         same thing as WebLayerTreeView::scheduleComposite(). This removes that callback, making WebLayerClient an empty
342         interface, and routes all calls that would go to that interface to WebLayerTreeView::scheduleComposite().
343
344         Once downstream implementations of WebLayerClient are removed, WebLayerClient.h and the constructors associated
345         with it can be deleted.
346
347         The bulk of the changes here are to the test harness. Many tests that were designed around notifySyncRequired()
348         are rewritten to check for CCLayerTreeHost::setNeedsCommit() or WebLayerTreeView::scheduleComposite() instead.
349         In a few instances, this required changing the setup logic around somewhat so that the layers being manipulated
350         were in a tree that initialized without errors.
351
352         * WebKit.gypi:
353         * public/platform/WebContentLayer.h:
354         * public/platform/WebExternalTextureLayer.h:
355         * public/platform/WebLayer.h:
356         * public/platform/WebLayerClient.h:
357         * src/WebContentLayer.cpp:
358         (WebKit::WebContentLayer::create):
359         * src/WebContentLayerImpl.cpp:
360         (WebKit::WebContentLayerImpl::create):
361         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
362         * src/WebContentLayerImpl.h:
363         * src/WebExternalTextureLayer.cpp:
364         (WebKit::WebExternalTextureLayer::create):
365         * src/WebExternalTextureLayerImpl.cpp:
366         (WebKit::WebExternalTextureLayerImpl::create):
367         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
368         * src/WebExternalTextureLayerImpl.h:
369         * src/WebLayer.cpp:
370         (WebKit::WebLayer::create):
371         * src/WebLayerImpl.cpp:
372         (WebKit::WebLayerImpl::create):
373         (WebKit::WebLayerImpl::WebLayerImpl):
374         * src/WebLayerImpl.h:
375         * src/WebLayerTreeViewImpl.cpp:
376         (WebKit::WebLayerTreeViewImpl::create):
377         (WebKit::WebLayerTreeViewImpl::WebLayerTreeViewImpl):
378         * src/WebLayerTreeViewImpl.h:
379         * tests/CCLayerTreeHostTest.cpp:
380         (WTF::MockLayerTreeHost::create):
381         (WTF::MockLayerTreeHost::MockLayerTreeHost):
382         (WTF::MockLayerTreeHostClient::createLayerTreeHostContext3D):
383         (WTF::CCLayerTreeHostTestScrollSimple::animateAndLayout):
384         * tests/CompositorMockGraphicsContext3D.h: Added.
385         (WebCore::createCompositorMockGraphicsContext3D):
386         * tests/CompositorMockWebGraphicsContext3D.h: Added.
387         (WebKit::CompositorMockWebGraphicsContext3D::create):
388         (WebKit::CompositorMockWebGraphicsContext3D::makeContextCurrent):
389         (WebKit::CompositorMockWebGraphicsContext3D::createProgram):
390         (WebKit::CompositorMockWebGraphicsContext3D::createShader):
391         (WebKit::CompositorMockWebGraphicsContext3D::getShaderiv):
392         (WebKit::CompositorMockWebGraphicsContext3D::getProgramiv):
393         (WebKit::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
394         * tests/LayerChromiumTest.cpp:
395         * tests/MockWebGraphicsContext3D.h:
396         (WebKit::MockWebGraphicsContext3D::getContextAttributes):
397         * tests/WebGLLayerChromiumTest.cpp:
398         (WebKit::TEST):
399         * tests/WebLayerTest.cpp:
400         (testing::MockWebLayerTreeViewClient::animateAndLayout):
401         (testing::MockWebLayerTreeViewClient::applyScrollAndScale):
402         (testing::MockWebLayerTreeViewClient::createContext3D):
403         (testing::MockWebLayerTreeViewClient::didRebindGraphicsContext):
404         (testing::WebLayerTest::SetUp):
405         (testing::WebLayerTest::TearDown):
406         (testing::TEST_F):
407
408 2011-12-16  Eric Penner  <epenner@google.com>
409
410         [chromium] Need to prepaint tiles in TiledLayerChromium
411         https://bugs.webkit.org/show_bug.cgi?id=72686
412
413         Reviewed by James Robinson.
414
415         * tests/CCLayerTreeHostTest.cpp:
416         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsCount):
417         (WTF::ContentLayerChromiumWithUpdateTracking::resetPaintContentsCount):
418         (WTF::ContentLayerChromiumWithUpdateTracking::idlePaintContentsIfDirty):
419         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
420         (WTF::CCLayerTreeHostTestOpacityChange::afterTest):
421         * tests/TiledLayerChromiumTest.cpp:
422         (WTF::FakeTiledLayerChromium::prepareToUpdateIdle):
423         (WTF::FakeTiledLayerChromium::needsIdlePaint):
424         (WTF::TEST):
425
426 2011-12-16  James Robinson  <jamesr@chromium.org>
427
428         [chromium] Remove WebCString's dependency on WebCore
429         https://bugs.webkit.org/show_bug.cgi?id=74761
430
431         Reviewed by Darin Fisher.
432
433         Remove WebCString::fromUTF16(), which are never called, and implement WebCString::utf16() using WTF instead of
434         WebCore/platform/text/TextEncoding.
435
436         * public/platform/WebCString.h:
437         * src/WebCString.cpp:
438         (WebKit::WebCString::utf16):
439
440 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
441
442         Rename registerCommandFor(Undo|Redo) to register(Undo|Redo)Step
443         https://bugs.webkit.org/show_bug.cgi?id=74748
444
445         Reviewed by Eric Seidel.
446
447         * src/EditorClientImpl.cpp:
448         (WebKit::EditorClientImpl::registerUndoStep):
449         (WebKit::EditorClientImpl::registerRedoStep):
450         * src/EditorClientImpl.h:
451
452 2011-12-16  Sam Weinig  <sam@webkit.org>
453
454         Give PlatformEvents a base class
455         https://bugs.webkit.org/show_bug.cgi?id=74685
456
457         Reviewed by Anders Carlsson.
458
459         Add a base class for PlatformMouseEvent, PlatformKeyboardEvent, PlatformWheelEvent
460         and PlatformGestureEvent and move Type enumeration and modifiers down to it.
461
462         * src/EditorClientImpl.cpp:
463         (WebKit::EditorClientImpl::interpretKeyEvent):
464         (WebKit::EditorClientImpl::handleEditingKeyboardEvent):
465         * src/WebAccessibilityObject.cpp:
466         (WebKit::WebAccessibilityObject::keyboardShortcut):
467         * src/WebInputEventConversion.cpp:
468         (WebKit::PlatformMouseEventBuilder::PlatformMouseEventBuilder):
469         (WebKit::PlatformWheelEventBuilder::PlatformWheelEventBuilder):
470         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
471         (WebKit::toPlatformKeyboardEventType):
472         * src/WebViewImpl.cpp:
473         (WebKit::WebViewImpl::dragSourceEndedAt):
474         * tests/InnerGestureRecognizerTest.cpp:
475         (SimulateAndTestFirstClick):
476         (TEST_F):
477         * tests/KeyboardTest.cpp:
478         (WebKit::KeyboardTest::interpretKeyEvent):
479         (WebKit::KeyboardTest::interpretOSModifierKeyPress):
480         (WebKit::KeyboardTest::interpretCtrlKeyPress):
481         (WebKit::KeyboardTest::interpretTab):
482         (WebKit::KeyboardTest::interpretNewLine):
483         (WebKit::TEST_F):
484         * tests/PopupMenuTest.cpp:
485         (WebKit::SelectPopupMenuTest::simulateLeftMouseDownEvent):
486         (WebKit::SelectPopupMenuTest::simulateLeftMouseUpEvent):
487         (WebKit::TEST_F):
488
489 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
490
491         Only EditCommandComposition should implement unapply and reapply
492         https://bugs.webkit.org/show_bug.cgi?id=74490
493
494         Reviewed by Eric Seidel.
495
496         * src/EditorClientImpl.cpp:
497         (WebKit::EditorClientImpl::registerCommandForUndo):
498         (WebKit::EditorClientImpl::registerCommandForRedo):
499         (WebKit::EditorClientImpl::undo):
500         (WebKit::EditorClientImpl::redo):
501         * src/EditorClientImpl.h:
502
503 2011-12-16  Joshua Bell  <jsbell@chromium.org>
504
505         IndexedDB: Implement IDBObjectStore.count() and IDBIndex.count()
506         https://bugs.webkit.org/show_bug.cgi?id=73686
507
508         Reviewed by Tony Chang.
509
510         Plumbing to support the new methods in Chromium.
511
512         * src/IDBIndexBackendProxy.cpp:
513         (WebKit::IDBIndexBackendProxy::count):
514         * src/IDBIndexBackendProxy.h:
515         * src/IDBObjectStoreBackendProxy.cpp:
516         (WebKit::IDBObjectStoreBackendProxy::count):
517         * src/IDBObjectStoreBackendProxy.h:
518         * src/WebIDBIndexImpl.cpp:
519         (WebKit::WebIDBIndexImpl::count):
520         * src/WebIDBIndexImpl.h:
521         * src/WebIDBObjectStoreImpl.cpp:
522         (WebKit::WebIDBObjectStoreImpl::count):
523         * src/WebIDBObjectStoreImpl.h:
524
525 2011-12-16  Adrienne Walker  <enne@google.com>
526
527         [chromium] Disable compositor CCLayerTreeHostTestsetNeedsCommit1 test
528         https://bugs.webkit.org/show_bug.cgi?id=74623
529
530         Unreviewed gardening.
531
532         This has been failing (timeout) intermittently on Mac.
533
534         * tests/CCLayerTreeHostTest.cpp:
535         (WTF::TEST_F):
536
537 2011-12-16  Dana Jansens  <danakj@chromium.org>
538
539         [chromium] Add setOpaque to WebMediaPlayerClient interface, don't set VideoLayer's opaque when grabbing current frame.
540         https://bugs.webkit.org/show_bug.cgi?id=74722
541
542         Reviewed by Darin Fisher.
543
544         * public/WebMediaPlayerClient.h:
545         * src/WebMediaPlayerClientImpl.cpp:
546         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
547         (WebKit::WebMediaPlayerClientImpl::setOpaque):
548         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
549         (WebKit::WebMediaPlayerClientImpl::WebMediaPlayerClientImpl):
550         * src/WebMediaPlayerClientImpl.h:
551
552 2011-12-15  Stephen White  <senorblanco@chromium.org>
553
554         Enable CSS_FILTERS in Chromium.
555         https://bugs.webkit.org/show_bug.cgi?id=74334
556
557         Reviewed by Chris Marrin.
558
559         * features.gypi:
560
561 2011-12-15  Yongjun Zhang  <yongjun_zhang@apple.com>
562
563         PODIntervalTree takes 1.7MB memory on www.nytimes.com.
564         https://bugs.webkit.org/show_bug.cgi?id=73712
565
566         Reviewed by Kenneth Russell.
567
568         Change the test code in chromium port since PODRedBlackTree now takes PODFreeListArena<T>
569         in its constructor.
570
571         * tests/PODRedBlackTreeTest.cpp:
572         (WebCore::TEST):
573
574 2011-12-15  Joshua Bell  <jsbell@chromium.org>
575
576         IndexedDB: Clean up WebIDBObjectStore createIndex temp code
577         https://bugs.webkit.org/show_bug.cgi?id=74205
578
579         Reviewed by Darin Fisher.
580
581         Remove a method and an implementation that only needed for
582         older Chromium revisions.
583
584         * public/WebIDBObjectStore.h:
585         (WebKit::WebIDBObjectStore::createIndex):
586
587 2011-12-15  Tony Chang  <tony@chromium.org>
588
589         Chromium Windows (Tests) is failing to build
590         https://bugs.webkit.org/show_bug.cgi?id=74320
591
592         Reviewed by Kenneth Russell.
593
594         Roll chromium deps to r114686 to pull in a change to how generated
595         headers include files from third_party/WebKit.  This should make the
596         file path shorter, reducing the chance of hitting the 260 char path
597         limit on Windows.
598
599         * DEPS: roll to r114686
600
601 2011-12-15  James Robinson  <jamesr@chromium.org>
602
603         [chromium] Set the CCLayerTreeHost pointer on LayerChromium instances eagerly
604         https://bugs.webkit.org/show_bug.cgi?id=74477
605
606         Reviewed by Kenneth Russell.
607
608         Add some new tests for LayerChromium::m_layerTreeHost behavior.
609
610         * tests/CCLayerTreeHostTest.cpp:
611         (::MockLayerTreeHost::create):
612         (::MockLayerTreeHost::MockLayerTreeHost):
613         (::CCLayerTreeHostTestShortlived1::beginTest):
614         (::CCLayerTreeHostTestShortlived2::beginTest):
615         (::CCLayerTreeHostTestShortlived3::beginTest):
616         * tests/LayerChromiumTest.cpp:
617
618 2011-12-15  Nat Duca  <nduca@chromium.org>
619
620         [chromium] Add forUseOnAnotherThread to WebGraphicsContext3D::Attributes
621         https://bugs.webkit.org/show_bug.cgi?id=74557
622
623         Reviewed by Kenneth Russell.
624
625         * public/platform/WebGraphicsContext3D.h:
626         (WebKit::WebGraphicsContext3D::Attributes::Attributes):
627         * src/GraphicsContext3DChromium.cpp:
628
629 2011-12-15  Tommy Widenflycht  <tommyw@google.com>
630
631         [chromium] MediaStream API: Fixing #include statements and removing forwarding header file
632         https://bugs.webkit.org/show_bug.cgi?id=74598
633
634         Reviewed by Darin Fisher.
635
636         WebMediaStreamSource.h had some issues when accessed from chromium. Also cleaned up the forwarding header.
637
638         * WebKit.gyp:
639         * public/WebMediaStreamSource.h: Removed.
640         * public/platform/WebMediaStreamSource.h:
641
642 2011-12-15  Stephen White  <senorblanco@chromium.org>
643
644         Unreviewed, rolling out r102956.
645         http://trac.webkit.org/changeset/102956
646         https://bugs.webkit.org/show_bug.cgi?id=74334
647
648         Broke Chromium/Win build.
649
650         * features.gypi:
651
652 2011-12-15  Kenneth Russell  <kbr@google.com>
653
654         Unreviewed. Disable flaky tests. Built and tested on Linux.
655         https://bugs.webkit.org/show_bug.cgi?id=74623
656
657         * tests/CCLayerTreeHostTest.cpp:
658         (WTF::TEST_F):
659
660 2011-12-15  Stephen White  <senorblanco@chromium.org>
661
662         Enable CSS_FILTERS in Chromium.
663         https://bugs.webkit.org/show_bug.cgi?id=74334
664
665         Reviewed by Kenneth Russell.
666
667         * features.gypi:
668
669 2011-12-15  Martin Kosiba  <mkosiba@google.com>
670
671         Fix find on web pages with -webkit-user-select: none for Chromium
672         https://bugs.webkit.org/show_bug.cgi?id=72281
673
674         Reviewed by Ryosuke Niwa.
675
676         This will make it possible to search for text that has
677         selection disabled (via the webkit-user-select attribute).
678
679         WebFrameImpl::find will use findStringAndScrollToVisible, which is
680         similar to findString except that it uses Range directly rather
681         than passing the find result in the active selection.
682
683         * src/WebFrameImpl.cpp:
684         (WebKit::WebFrameImpl::find):
685
686 2011-12-15  Kenneth Russell  <kbr@google.com>
687
688         [chromium] Add DRT support for WebKitPageCacheSupportsPluginsPreferenceKey
689         https://bugs.webkit.org/show_bug.cgi?id=74581
690
691         Reviewed by Darin Fisher.
692
693         * public/WebSettings.h:
694         * src/WebSettingsImpl.cpp:
695         (WebKit::WebSettingsImpl::setPageCacheSupportsPlugins):
696         * src/WebSettingsImpl.h:
697
698 2011-12-15  Andrey Kosyakov  <caseq@chromium.org>
699
700         Web Inspector: [Chromium] add support to inspector test suite to fetch test execution results from console
701         https://bugs.webkit.org/show_bug.cgi?id=74208
702
703         Reviewed by Yury Semikhatsky.
704
705         This adds waitForTestResultsInConsole, a test suite method that monitors console for a message containing
706         either PASS or FAIL and sets result accordingly. This is used by tests running in the extension context to
707         communicate test results to the test driver (see devtools_sanity_unittest.cc for an example).
708
709         * src/js/Tests.js:
710         (.TestSuite.prototype.testWaitForResultsInConsole.onConsoleMessage):
711         (.TestSuite.prototype.testWaitForResultsInConsole):
712
713 2011-12-15  Peter Beverloo  <peter@chromium.org>
714
715         [Chromium] Enable TestNetscapePlugIn to link for Android
716         https://bugs.webkit.org/show_bug.cgi?id=74597
717
718         Reviewed by Tony Gentilcore.
719
720         The -nostdlib linker flag is being passed to all targets being build
721         for Android, which conflicts with the shared library the
722         TestNetscapePlugIn target created. Explicitly exclude the flag.
723
724         * WebKit.gyp:
725
726 2011-12-14  David Levin  <levin@chromium.org>
727
728         [chromium] DatabaseObserver needs threadsafe fixes and other clean-up.
729         https://bugs.webkit.org/show_bug.cgi?id=74558
730
731         Reviewed by Dmitry Titov.
732
733         The important part of this fix is the removal of AllowCrossThreadAccess so
734         that ref counting happens appropriately.
735
736         Minor clean up throughout: Removed unnecessary WTF prefix in many
737         of these places and unnecessary String().
738
739         * src/DatabaseObserver.cpp:
740         (WebKit::AllowDatabaseMainThreadBridge::create):
741         (WebKit::AllowDatabaseMainThreadBridge::signalCompleted): Get rid of
742         AllowCrossThreadAccess so that "this" get ref counted and remove mode from being
743         a member variable since a String in a ThreadSafeRefCounted class is bad.
744         (WebKit::AllowDatabaseMainThreadBridge::AllowDatabaseMainThreadBridge): Ditto.
745         (WebKit::AllowDatabaseMainThreadBridge::allowDatabaseTask): Pass through mode
746         and minor code cleaning to do only one call to signalCompleted.
747         (WebKit::allowDatabaseForWorker): Just removed unnecessary String()'s.
748
749 2011-12-14  Tony Chang  <tony@chromium.org>
750
751         [chromium] Remove redundant third_party entries from chromium DEPS
752         https://bugs.webkit.org/show_bug.cgi?id=74472
753
754         Reviewed by Kenneth Russell.
755
756         Removed redundant DEPS entries for third_party subdirectories
757         coming from chromium_svn, which were causing intermittent gclient
758         failures on the bots.
759
760         * DEPS:
761
762 2011-12-14  Scott Graham  <scottmg@chromium.org>
763
764         Increase maximum number of gamepad buttons in Chromium port interface
765         https://bugs.webkit.org/show_bug.cgi?id=74559
766
767         Reviewed by Darin Fisher.
768
769         * public/platform/WebGamepad.h:
770
771 2011-12-14  Kenichi Ishibashi  <bashi@chromium.org>
772
773         Unreviewed, rolling out r102873.
774         http://trac.webkit.org/changeset/102873
775         https://bugs.webkit.org/show_bug.cgi?id=64434
776
777         Break the build
778
779         * public/WebPlugin.h:
780         * src/WebPluginContainerImpl.cpp:
781         * src/WebPluginContainerImpl.h:
782
783 2011-12-14  Nat Duca  <nduca@chromium.org>
784
785         [chromium] Add inhibitDraw to CCScheduler and drop root impl to prevent background flash on tab restore
786         https://bugs.webkit.org/show_bug.cgi?id=74351
787
788         Reviewed by James Robinson.
789
790         * tests/CCSchedulerStateMachineTest.cpp:
791         (WebCore::StateMachine::inhibitDraw):
792         (WebCore::TEST):
793         * tests/CCSchedulerTest.cpp:
794         (WebKitTests::FakeCCSchedulerClient::setInhibitDraw):
795         (WebKitTests::FakeCCSchedulerClient::inhibitDraw):
796         (WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::inhibitDraw):
797         (WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::inhibitDraw):
798
799 2011-12-14  Jing Zhao  <jingzhao@chromium.org>
800
801         Opening two popup menus by dispatchEvent() makes problems.
802         https://bugs.webkit.org/show_bug.cgi?id=73304
803
804         Reviewed by Kent Tamura.
805
806         By using element.dispatchEvent(), a user written script can open two
807         popup menus, which causes the assertion in WebViewImpl::popupOpened()
808         fail.
809
810         ChromeClientImpl::hasOpenedPopup() is called by Chrome::hasOpenedPopup()
811         in RenderMenuList::showPopup(), to check if there is an opened popup
812         menu before opening a new popup menu.
813
814         * src/ChromeClientImpl.cpp:
815         (WebKit::ChromeClientImpl::hasOpenedPopup): Checks the popup in WebViewImpl.
816         * src/ChromeClientImpl.h: Overrides hasOpenedPopup().
817
818 2011-12-14  Kenichi Ishibashi  <bashi@chromium.org>
819
820         [Chromium] Implement PluginViewBase::getFormValue
821         https://bugs.webkit.org/show_bug.cgi?id=64434
822
823         Adds getFormValue() to WebPluginContainerImpl as an implementation of PluginViewBase::getFormValue().
824
825         Reviewed by Darin Fisher.
826
827         No new tests. No behavior change at this time. We should add a test for PPAPI after chromium supports the feature.
828
829         * public/WebPlugin.h: Added getFormValue().
830         * src/WebPluginContainerImpl.cpp:
831         (WebKit::WebPluginContainerImpl::getFormValue): Added.
832         * src/WebPluginContainerImpl.h: Added getFormValue().
833
834 2011-12-14  Sami Kyostila  <skyostil@chromium.org>
835
836         [chromium] Fix CCLayerTreeHostTest shutdown race
837         https://bugs.webkit.org/show_bug.cgi?id=73926
838
839         This patch fixes a shutdown race condition in CCLayerTreeHostTest which
840         may happen if endTest() is called from within the drawLayersOnCCThread()
841         test hook. The sequence of events leading to the problem is:
842
843           1. CCThreadProxy::scheduledActionDrawAndSwap() is called when a frame
844              begins.
845           2. CCThreadProxy calls drawLayersOnCCThread(), which in turn calls
846              endTest().
847           3. Seeing it's not running in the main thread, endTest() posts a task
848              calling itself in the main thread.
849           4. CCThreadProxy posts a task for calling didCommitAndDrawFrame() in
850              the main thread.
851
852         The race is between the task posted in step #3 and the CC thread running
853         in scheduledActionDrawAndSwap(). If the endTask() task is scheduled
854         before the CC thread reaches step #4, it drains the pending message
855         queue (CCLayerTreeHostTest.cpp:369) before the task in step #4 is
856         posted.
857
858         The result is that the didCommitAndDrawFrame() task is executed after
859         the test fixture has been torn down, causing a read of unallocated
860         memory in CCScopedThreadProxy::runTaskIfNotShutdown (as m_targetThread
861         is no longer valid).
862
863         The fix is check m_shutdown before touching m_targetThread in
864         CCScopedThreadProxy. That is, events will still be queued after shutdown
865         but they will not be processed.
866
867         Reviewed by James Robinson.
868
869 2011-12-14  Jonathan Backer  <backer@chromium.org>
870
871         [chromium] Plumb through flag for enabling partial swap
872         https://bugs.webkit.org/show_bug.cgi?id=74513
873
874         Reviewed by James Robinson.
875
876         * public/WebSettings.h:
877         * public/platform/WebLayerTreeView.h:
878         (WebKit::WebLayerTreeView::Settings::Settings):
879         * src/WebLayerTreeView.cpp:
880         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
881         * src/WebSettingsImpl.cpp:
882         (WebKit::WebSettingsImpl::setPartialSwapEnabled):
883         * src/WebSettingsImpl.h:
884         * src/WebViewImpl.cpp:
885         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
886
887 2011-12-14  Peter Beverloo  <peter@chromium.org>
888
889         [Chromium] Roll chromium DEPS (r113807 -> r114356)
890         https://bugs.webkit.org/show_bug.cgi?id=74496
891
892         Reviewed by Tony Gentilcore.
893
894         Roll deps to r114356 and update the location of sfntly to
895         pick up the change at Chromium.
896
897         * DEPS:
898
899 2011-12-13  Dirk Pranke  <dpranke@chromium.org>
900
901         chromium port - remove nacl hack in DEPS/gyp_webkit
902         https://bugs.webkit.org/show_bug.cgi?id=74150
903
904         Reviewed by Tony Chang.
905
906         This change reverts the change added in r101011; it is
907         no longer necessary to pull in anything from Native Client for
908         the chromium port to build.
909
910         * DEPS:
911         * gyp_webkit:
912
913 2011-12-13  Dave Michael  <dmichael@chromium.org>
914
915         Export WebArrayBuffer::byteLength
916         https://bugs.webkit.org/show_bug.cgi?id=74438
917
918         Reviewed by Darin Fisher.
919
920         * public/WebArrayBuffer.h:
921
922 2011-12-13  Kenneth Russell  <kbr@google.com>
923
924         Unreviewed, rolling out r102693.
925         http://trac.webkit.org/changeset/102693
926         https://bugs.webkit.org/show_bug.cgi?id=74334
927
928         Broke Chromium Windows DRT build
929
930         * features.gypi:
931
932 2011-12-13  Peter Beverloo  <peter@chromium.org>
933
934         [Chromium] Pull in FreeType and decrease check-out complexity for Android
935         https://bugs.webkit.org/show_bug.cgi?id=74401
936
937         Pull in FreeType in the third_party/ directory from a separate git
938         repository at Chromium. This introduces a new prerequisite for checking
939         out the Chromium WebKit port for Android, namely that git needs to be
940         available on the system. gclient can handle this just fine.
941
942         Reviewed by Adam Barth.
943
944         * DEPS:
945
946 2011-12-13  Alok Priyadarshi  <alokp@chromium.org>
947
948         [chromium] compositing/masks layout tests fail with accelerated drawing
949         https://bugs.webkit.org/show_bug.cgi?id=72760
950
951         Reviewed by Stephen White.
952
953         * tests/TiledLayerChromiumTest.cpp:
954         (WTF::FakeLayerTextureUpdater::createTexture):
955
956 2011-12-13  Stephen White  <senorblanco@chromium.org>
957
958         Enable CSS_FILTERS in Chromium.
959         https://bugs.webkit.org/show_bug.cgi?id=74334
960
961         Reviewed by Kenneth Russell.
962
963         * features.gypi:
964
965 2011-12-12  Ryosuke Niwa  <rniwa@webkit.org>
966
967         WebKit code shouldn't be calling applyCommand directly
968         https://bugs.webkit.org/show_bug.cgi?id=74337
969
970         Reviewed by Darin Adler.
971
972         * src/WebFrameImpl.cpp:
973         (WebKit::WebFrameImpl::replaceSelection):
974
975 2011-12-12  David Grogan  <dgrogan@chromium.org>
976
977         Fix compilation error when !ENABLE(WORKERS)
978         https://bugs.webkit.org/show_bug.cgi?id=74029
979
980         Reviewed by Yury Semikhatsky.
981
982         * features.gypi:
983         * src/IDBFactoryBackendProxy.cpp:
984         (WebKit::IDBFactoryBackendProxy::openFromWorker):
985         * src/PlatformSupport.cpp:
986         * src/WebDevToolsAgentImpl.cpp:
987         (WebKit::WebDevToolsAgent::disconnectEventAsText):
988         * src/WebWorkerRunLoop.cpp:
989
990 2011-12-12  Shawn Singh  <shawnsingh@chromium.org>
991
992         [chromium] Remove assumption that empty surface is always at end of list
993         https://bugs.webkit.org/show_bug.cgi?id=74037
994
995         Reviewed by James Robinson.
996
997         * tests/CCLayerTreeHostCommonTest.cpp:
998         (WebCore::TEST):
999
1000 2011-12-09  Daniel Cheng  <dcheng@chromium.org>
1001
1002         [chromium] Remove BufferDrag from WebClipboard::Buffer enum.
1003         https://bugs.webkit.org/show_bug.cgi?id=74227
1004
1005         Reviewed by Tony Chang.
1006
1007         This enum value was intended for asynchronous data retrieval during drop operations; since
1008         that was never implemented, I'm removing this enum value.
1009
1010         * public/platform/WebClipboard.h:
1011         * src/AssertMatchingEnums.cpp:
1012
1013 2011-12-12  Tommy Widenflycht  <tommyw@google.com>
1014
1015         [chromium] MediaStream API: Moving WebMediaStreamSource.h
1016         https://bugs.webkit.org/show_bug.cgi?id=74081
1017
1018         Moving WebMediaStreamSource.h to public/platform.
1019         Keeping a stub in public as to not affect chromium right now.
1020
1021         Reviewed by Darin Fisher.
1022
1023         * WebKit.gyp:
1024         * public/WebMediaStreamSource.h:
1025         * public/platform/WebMediaStreamSource.h: Copied from Source/WebKit/chromium/public/WebMediaStreamSource.h.
1026         (WebKit::WebMediaStreamSource::WebMediaStreamSource):
1027         (WebKit::WebMediaStreamSource::~WebMediaStreamSource):
1028         (WebKit::WebMediaStreamSource::isNull):
1029         * src/AssertMatchingEnums.cpp:
1030         * src/UserMediaClientImpl.cpp:
1031         * src/WebMediaStreamDescriptor.cpp:
1032         * src/WebMediaStreamRegistry.cpp:
1033         * src/WebMediaStreamSource.cpp:
1034         * src/WebUserMediaRequest.cpp:
1035
1036 2011-12-09  James Robinson  <jamesr@chromium.org>
1037
1038         [chromium] Remove forwarding headers for WebLayer APIs
1039         https://bugs.webkit.org/show_bug.cgi?id=73729
1040
1041         Reviewed by Adam Barth.
1042
1043         These are no longer necessary.
1044
1045         * WebKit.gyp:
1046         * public/WebContentLayer.h: Removed.
1047         * public/WebContentLayerClient.h: Removed.
1048         * public/WebExternalTextureLayer.h: Removed.
1049         * public/WebLayer.h: Removed.
1050         * public/WebLayerClient.h: Removed.
1051         * public/WebLayerTreeView.h: Removed.
1052         * public/WebLayerTreeViewClient.h: Removed.
1053
1054 2011-12-09  Karl Koscher  <supersat@chromium.org>
1055
1056         [chromium] add accessors to WebDOMMessageEvent
1057         https://bugs.webkit.org/show_bug.cgi?id=73346
1058
1059         Reviewed by Darin Fisher.
1060
1061         * public/WebDOMMessageEvent.h:
1062         * src/WebDOMMessageEvent.cpp:
1063         (WebKit::WebDOMMessageEvent::data):
1064         (WebKit::WebDOMMessageEvent::origin):
1065
1066 2011-12-09  Karl Koscher  <supersat@chromium.org>
1067
1068         [chromium] add event methods to WebFrame
1069         https://bugs.webkit.org/show_bug.cgi?id=73259
1070
1071         Reviewed by Darin Fisher.
1072
1073         * public/WebDOMEventListener.h: Use EventTarget instead of Node
1074         * public/WebFrame.h: Add event methods
1075         * src/WebDOMEventListener.cpp: Use EventTarget instead of Node
1076         (WebKit::WebDOMEventListener::createEventListenerWrapper):
1077         (WebKit::WebDOMEventListener::getEventListenerWrapper):
1078         * src/WebDOMEventListenerPrivate.cpp: Use EventTarget instead of Node
1079         (WebKit::WebDOMEventListenerPrivate::createEventListenerWrapper):
1080         (WebKit::WebDOMEventListenerPrivate::getEventListenerWrapper):
1081         * src/WebDOMEventListenerPrivate.h: Use EventTarget instead of Node
1082         (WebKit::WebDOMEventListenerPrivate::ListenerInfo::ListenerInfo):
1083         * src/WebFrameImpl.cpp:
1084         (WebKit::WebFrameImpl::addEventListener): register a listener on a WebFrame
1085         (WebKit::WebFrameImpl::removeEventListener): remove a listener on a WebFrame
1086         (WebKit::WebFrameImpl::dispatchEvent): dispatch an event to a WebFrame
1087         * src/WebFrameImpl.h: Add event methods
1088
1089 2011-12-09  Dirk Pranke  <dpranke@chromium.org>
1090
1091         chromium win build: revert build_webkit_exes_from_webkit_gyp change
1092         https://bugs.webkit.org/show_bug.cgi?id=74225
1093
1094         Reviewed by Tony Chang.
1095
1096         This change sets build_webkit_exes_from_webkit_gyp back to 1;
1097         the "All.gyp" solution doesn't work on windows.
1098
1099         * gyp_webkit:
1100
1101 2011-12-09  Dirk Pranke  <dpranke@chromium.org>
1102
1103         chromium: visual studio projects are busted when build_webkit_exes_from_webkit_gyp==0
1104         https://bugs.webkit.org/show_bug.cgi?id=74212
1105
1106         Reviewed by Tony Chang.
1107
1108         The change introduced in r102201 to split the executables out of
1109         WebKit.gyp apparently doesn't work right on Windows, since
1110         WebKit.gyp and Tools.gyp refer to dependent projects by
1111         different relative paths (it appears gyp doesn't normalize the
1112         paths). This change moves Tools.gyp to be in the same directory
1113         as WebKit.gyp (and All.gyp), which should fix this and
1114         conveniently will also solve the problem of how to add Tools.gyp
1115         to the chromium DEPS file.
1116
1117         * All.gyp:
1118         * Tools.gyp: Renamed from ../../../Tools/Tools.gyp.
1119
1120 2011-12-09  Cary Clark  <caryclark@google.com>
1121
1122         Chromium DEPS roll to pick up new use_skia=1 default on Chromium-Mac
1123         https://bugs.webkit.org/show_bug.cgi?id=74118
1124
1125         Reviewed by Adam Barth.
1126
1127         * DEPS:
1128
1129 2011-12-08  Fady Samuel  <fsamuel@chromium.org>
1130
1131         [Chromium] Enable viewport metatag
1132         https://bugs.webkit.org/show_bug.cgi?id=73495
1133
1134         Reviewed by Darin Fisher.
1135
1136         Compute the appropriate fixed layout size, page, and device scale factors,
1137         based on the viewport meta tag parameters.
1138
1139         See http://developer.android.com/guide/webapps/targeting.html for more information.
1140
1141
1142         * features.gypi:
1143         * public/WebView.h:
1144         * src/ChromeClientImpl.cpp:
1145         (WebKit::ChromeClientImpl::layoutUpdated):
1146         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
1147         * src/ChromeClientImpl.h:
1148         * src/WebFrameImpl.cpp:
1149         (WebKit::WebFrameImpl::createFrameView):
1150         * src/WebViewImpl.cpp:
1151         (WebKit::WebViewImpl::WebViewImpl):
1152         (WebKit::WebViewImpl::isPageScaleFactorSet):
1153         (WebKit::WebViewImpl::setPageScaleFactor):
1154         (WebKit::WebViewImpl::observeNewNavigation):
1155         * src/WebViewImpl.h:
1156
1157 2011-12-08  Pierre Rossi  <pierre.rossi@gmail.com>
1158
1159         Drop ENABLE_NO_LISTBOX_RENDERING, and make it a runtime decision.
1160         https://bugs.webkit.org/show_bug.cgi?id=73916
1161
1162         Reviewed by Kent Tamura.
1163
1164         * src/ExternalPopupMenu.cpp:
1165         (WebKit::ExternalPopupMenu::didAcceptIndices):
1166         (WebKit::ExternalPopupMenu::getPopupMenuInfo):
1167
1168 2011-12-08  David Reveman  <reveman@chromium.org>
1169
1170         [Chromium] Add per-tile painting flag to DumpRenderTree and rename AcceleratedDrawing to AcceleratedPainting in chromium specific code.
1171         https://bugs.webkit.org/show_bug.cgi?id=74017
1172
1173         Reviewed by James Robinson.
1174
1175         Add WebSettings::setAcceleratedPaintingEnabled to public API.
1176
1177         * public/WebSettings.h:
1178         * src/WebSettingsImpl.cpp:
1179         (WebKit::WebSettingsImpl::WebSettingsImpl):
1180         (WebKit::WebSettingsImpl::setAcceleratedPaintingEnabled):
1181         (WebKit::WebSettingsImpl::setPerTilePaintingEnabled):
1182         * src/WebSettingsImpl.h:
1183         * src/WebViewImpl.cpp:
1184         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1185
1186 2011-12-08  James Robinson  <jamesr@chromium.org>
1187
1188         [chromium] Move NonCompositedContentHost to WebKit
1189         https://bugs.webkit.org/show_bug.cgi?id=74047
1190
1191         Reviewed by Kenneth Russell.
1192
1193         Moves NonCompositedContentHost into WebKit/chromium/src. This class is a helper class designed to make it easier
1194         for WebViewImpl to interface with the compositor. The compositor proper should not depend on this class, and
1195         other clients of the compositor do not need this functionality.
1196
1197         Follow-up patches will transition this code from using compositor-internal interfaces directly to using
1198         higher-level interfaces like the WebKit platform APIs. This patch simply does a file mv and updates namespaces
1199         to keep things simpler.
1200
1201         Refactor only and covered by several unit tests.
1202
1203         * WebKit.gyp:
1204         * src/NonCompositedContentHost.cpp: Renamed from Source/WebCore/platform/graphics/chromium/NonCompositedContentHost.cpp.
1205         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
1206         (WebKit::NonCompositedContentHost::~NonCompositedContentHost):
1207         (WebKit::NonCompositedContentHost::setBackgroundColor):
1208         (WebKit::NonCompositedContentHost::setScrollLayer):
1209         (WebKit::NonCompositedContentHost::setViewport):
1210         (WebKit::NonCompositedContentHost::scrollLayer):
1211         (WebKit::NonCompositedContentHost::protectVisibleTileTextures):
1212         (WebKit::NonCompositedContentHost::invalidateRect):
1213         (WebKit::NonCompositedContentHost::notifyAnimationStarted):
1214         (WebKit::NonCompositedContentHost::notifySyncRequired):
1215         (WebKit::NonCompositedContentHost::paintContents):
1216         (WebKit::NonCompositedContentHost::showDebugBorders):
1217         (WebKit::NonCompositedContentHost::showRepaintCounter):
1218         * src/NonCompositedContentHost.h: Renamed from Source/WebCore/platform/graphics/chromium/NonCompositedContentHost.h.
1219         (WebKit::NonCompositedContentHost::create):
1220         (WebKit::NonCompositedContentHost::topLevelRootLayer):
1221         * src/WebViewImpl.cpp:
1222         (WebKit::WebViewImpl::nonCompositedContentHost):
1223         * src/WebViewImpl.h:
1224         * tests/LayerChromiumTest.cpp:
1225
1226 2011-12-08  Sami Kyostila  <skyostil@google.com>
1227
1228         [chromium] Layer contents scale change should trigger invalidation
1229
1230         https://bugs.webkit.org/show_bug.cgi?id=74086
1231
1232         When the contents scale of a layer is changed, the entire contents of
1233         the layer should be marked dirty.
1234
1235         Reviewed by James Robinson.
1236
1237         * tests/LayerChromiumTest.cpp:
1238
1239 2011-12-08  Dana Jansens  <danakj@chromium.org>
1240
1241         [chromium] Set opaque() for VideoLayerChromium
1242         https://bugs.webkit.org/show_bug.cgi?id=73858
1243
1244         Reviewed by James Robinson.
1245
1246         * src/WebMediaPlayerClientImpl.cpp:
1247         (WebKit::isVideoFrameFormatOpaque):
1248         (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
1249
1250 2011-12-08  Elliot Poger  <epoger@google.com>
1251
1252         Chromium DEPS roll 112974 -> 113603
1253         https://bugs.webkit.org/show_bug.cgi?id=74105
1254
1255         Reviewed by Adam Barth.
1256
1257         * DEPS:
1258
1259 2011-12-08  Tony Chang  <tony@chromium.org>
1260
1261         [chromium] remove headers from WebKit.gyp that moved into WebKit/chromium/public/platform
1262         https://bugs.webkit.org/show_bug.cgi?id=74106
1263
1264         Reviewed by Darin Fisher.
1265
1266         * WebKit.gyp:
1267
1268 2011-12-08  Peter Beverloo  <peter@chromium.org>
1269
1270         [Chromium] Exclude the four RenderTableCellDeathTest death tests for Android
1271         https://bugs.webkit.org/show_bug.cgi?id=73997
1272
1273         The ASSERT_DEATH macro is not yet available in Google Test when
1274         building for Android, which causes compilation errors. This code
1275         will be removed once support lands in the GTest version Chromium
1276         uses. See https://bugs.webkit.org/show_bug.cgi?id=74089.
1277
1278         Reviewed by Julien Chaffraix.
1279
1280         * tests/RenderTableCellTest.cpp:
1281
1282 2011-12-08  Joshua Bell  <jsbell@chromium.org>
1283
1284         IndexedDB: WebKit API addition of IDBObjectStore.count() and IDBIndex.count()
1285         https://bugs.webkit.org/show_bug.cgi?id=73685
1286
1287         Reviewed by Darin Fisher.
1288
1289         Implementation to follow - this just extends the WebKit API.
1290
1291         * public/WebIDBIndex.h:
1292         (WebKit::WebIDBIndex::count):
1293         * public/WebIDBObjectStore.h:
1294         (WebKit::WebIDBObjectStore::count):
1295
1296 2011-12-07  Alexandre Elias  <aelias@google.com>
1297
1298         [chromium] Add page-scale animation support to Impl thread
1299         https://bugs.webkit.org/show_bug.cgi?id=72996
1300
1301         Reviewed by James Robinson.
1302
1303         This adds a new math helper class to compute the progress of the
1304         animation, and code in the CCLayerTreeHostImpl to apply the animation
1305         frame by frame.
1306
1307         No new tests. (https://bugs.webkit.org/show_bug.cgi?id=71529 filed.)
1308
1309         * public/WebCompositor.h:
1310         * public/WebInputEvent.h:
1311         (WebKit::WebPageScaleAnimationEvent::WebPageScaleAnimationEvent):
1312         * public/android/WebInputEventFactory.h:
1313         * src/WebCompositorImpl.cpp:
1314         (WebKit::WebCompositorImpl::handlePageScaleAnimationEvent):
1315         * src/WebCompositorImpl.h:
1316         * src/WebPopupMenuImpl.cpp:
1317         (WebKit::WebPopupMenuImpl::handleInputEvent):
1318         * src/android/WebInputEventFactory.cpp:
1319         (WebKit::WebInputEventFactory::pageScaleAnimationEvent):
1320
1321 2011-12-07  Fady Samuel  <fsamuel@chromium.org>
1322
1323         [Chromium] Plumb DPI info into PlatformScreen
1324         https://bugs.webkit.org/show_bug.cgi?id=70556
1325
1326         Reviewed by Darin Fisher.
1327         
1328         Make DPI information accessible from WebKit through
1329         PlatformScreen. This is useful when making scaling 
1330         computations on various devices (e.g. Viewport meta tag).
1331
1332         This patch adds DPI plumbing on Chromium Win/Mac/Linux
1333         platforms.
1334
1335         * public/WebScreenInfo.h:
1336         (WebKit::WebScreenInfo::WebScreenInfo):
1337         * src/PlatformSupport.cpp:
1338         (WebCore::PlatformSupport::screenHorizontalDPI):
1339         (WebCore::PlatformSupport::screenVerticalDPI):
1340         * src/mac/WebScreenInfoFactory.mm:
1341         (WebKit::WebScreenInfoFactory::screenInfo):
1342         * src/win/WebScreenInfoFactory.cpp:
1343         (WebKit::WebScreenInfoFactory::screenInfo):
1344         * src/x11/WebScreenInfoFactory.cpp:
1345         (WebKit::WebScreenInfoFactory::screenInfo):
1346
1347 2011-12-07  Alexandre Elias  <aelias@google.com>
1348
1349         [chromium] Preserve original pageScale limits in WebViewImpl
1350         https://bugs.webkit.org/show_bug.cgi?id=72983
1351
1352         Reviewed by Darin Fisher.
1353
1354         Preserve the originally viewport-tag specified page scale limits, and
1355         compute the final ones in a new private method
1356         computePageScaleFactorLimits().  This is then called when contents
1357         size change (which can affect the minimum).
1358
1359         Also clean up several minor bugs, namely clamping issues (reorder
1360         clampNegativeToZero to avoid negative scroll offsets, and force max to
1361         be greater than min), and incorrect behavior in the presence of
1362         "solid" scrollbars.
1363
1364         * src/ChromeClientImpl.cpp:
1365         (WebKit::ChromeClientImpl::contentsSizeChanged):
1366         * src/WebViewImpl.cpp:
1367         (WebKit::WebViewImpl::WebViewImpl):
1368         (WebKit::WebViewImpl::clampPageScaleFactorToLimits):
1369         (WebKit::WebViewImpl::clampOffsetAtScale):
1370         (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset):
1371         (WebKit::WebViewImpl::setPageScaleFactor):
1372         (WebKit::WebViewImpl::setPageScaleFactorLimits):
1373         (WebKit::WebViewImpl::computePageScaleFactorLimits):
1374         (WebKit::WebViewImpl::didChangeContentsSize):
1375         * src/WebViewImpl.h:
1376
1377 2011-12-07  Chris Sharp  <csharp@chromium.org>
1378         
1379         Exposing boundsInScreenSpace in WebElement.
1380         https://bugs.webkit.org/show_bug.cgi?id=71579
1381
1382         Exposing boundsInScreenSpace through a new function,
1383         boundsInViewportSpace, to assist in moving the Autofill UI out of
1384         WebKit in Chromium. Renamed the exposed function to provide a better
1385         meaning of what the function does in the Chromium code.
1386         More information can be found at:
1387         http://crbug.com/51644
1388
1389
1390         Reviewed by Darin Fisher.
1391
1392         * public/WebElement.h:
1393         * src/WebElement.cpp:
1394         (WebKit::WebElement::boundsInViewportSpace):
1395
1396 2011-12-07  Adam Klein  <adamk@chromium.org>
1397
1398         [MutationObservers] Enable in Chromium trunk
1399         https://bugs.webkit.org/show_bug.cgi?id=73851
1400
1401         Reviewed by Ojan Vafai.
1402
1403         Re-landing after fixing Chromium unit test crashes in r102171
1404         and inspector debugger crash in r102264.
1405
1406         * features.gypi:
1407
1408 2011-12-07  Jonathan Backer  <backer@chromium.org>
1409
1410         [chromium] Plumb damage from WebExternalTextureLayer and WebPluginContainer to CCDamageTracker
1411         https://bugs.webkit.org/show_bug.cgi?id=73485
1412
1413         Reviewed by Darin Fisher.
1414
1415         * public/platform/WebExternalTextureLayer.h:
1416         * src/WebExternalTextureLayer.cpp:
1417         (WebKit::WebExternalTextureLayer::invalidateRect):
1418         * src/WebPluginContainerImpl.cpp:
1419         (WebKit::WebPluginContainerImpl::commitBackingTexture):
1420
1421 2011-12-06  Dirk Pranke  <dpranke@chromium.org>
1422
1423         Fix typo in WebKit.gyp introduced in previous change.
1424
1425         Unreviewed, build fix.
1426
1427         * WebKit.gyp:
1428
1429 2011-12-06  Dirk Pranke  <dpranke@chromium.org>
1430
1431         binaries in webkit.gyp should be split into a new file to break circular dependencies on webkit_support
1432         https://bugs.webkit.org/show_bug.cgi?id=73382
1433
1434         Reviewed by Tony Chang.
1435
1436         XCode (and hence GYP) can't handle circular dependencies between
1437         files (and projects). Accordingly, although the binaries in
1438         WebKit.gyp depend on webkit_support and webkit_support depends
1439         on webkit, we don't mention the latter dependency in the file.
1440         To fix this, this change moves the binaries like DRT into a new
1441         GYP file, and modifies gyp_webkit to build from that file
1442         instead of WebKit.gyp.
1443
1444         * WebKit.gyp:
1445         * All.gyp:
1446         * WebKitUnitTests.gyp:
1447         * gyp_webkit:
1448
1449 2011-12-06  Adrienne Walker  <enne@google.com>
1450
1451         [chromium] setNeedsCommit on non-composited host layers should trigger commit
1452         https://bugs.webkit.org/show_bug.cgi?id=73711
1453
1454         Reviewed by James Robinson.
1455
1456         Add some tests to make sure that modifying the noncomposited content
1457         host triggers commits.
1458
1459         Properties that trigger setNeedsCommit should only do so when the
1460         property changes. Additionally, make more property changes properly
1461         trigger commits.
1462
1463         * tests/LayerChromiumTest.cpp:
1464
1465 2011-12-06  David Reveman  <reveman@chromium.org>
1466
1467         [Chromium] Implement tile-sized painting using SkPicture.
1468         https://bugs.webkit.org/show_bug.cgi?id=71869
1469
1470         Reviewed by James Robinson.
1471
1472         Add perTilePainting setting that is used by compositor to determine
1473         what texture uploader to use.
1474
1475         * public/WebSettings.h:
1476         * src/WebSettingsImpl.cpp:
1477         (WebKit::WebSettingsImpl::WebSettingsImpl):
1478         (WebKit::WebSettingsImpl::setPerTilePainting):
1479         * src/WebSettingsImpl.h:
1480         (WebKit::WebSettingsImpl::perTilePainting):
1481         * src/WebViewImpl.cpp:
1482         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1483
1484 2011-12-06  Dana Jansens  <danakj@chromium.org>
1485
1486         [chromium] Set opaque flag for ImageLayerChromium
1487         https://bugs.webkit.org/show_bug.cgi?id=72964
1488
1489         Reviewed by James Robinson.
1490
1491         * WebKit.gypi:
1492         * tests/DragImageTest.cpp:
1493         (WebCore::TestImage::TestImage):
1494         (WebCore::TestImage::nativeImageForCurrentFrame):
1495         * tests/ImageLayerChromiumTest.cpp: Added.
1496         (WebCore::MockGraphicsLayerClient::notifyAnimationStarted):
1497         (WebCore::MockGraphicsLayerClient::notifySyncRequired):
1498         (WebCore::MockGraphicsLayerClient::paintContents):
1499         (WebCore::MockGraphicsLayerClient::showDebugBorders):
1500         (WebCore::MockGraphicsLayerClient::showRepaintCounter):
1501         (WebCore::TestImage::create):
1502         (WebCore::TestImage::TestImage):
1503         (WebCore::TestImage::isBitmapImage):
1504         (WebCore::TestImage::currentFrameHasAlpha):
1505         (WebCore::TestImage::size):
1506         (WebCore::TestImage::nativeImageForCurrentFrame):
1507         (WebCore::TestImage::destroyDecodedData):
1508         (WebCore::TestImage::decodedSize):
1509         (WebCore::TestImage::draw):
1510         (WebCore::TEST):
1511
1512 2011-12-06  Adam Klein  <adamk@chromium.org>
1513
1514         [chromium] Guard access to WebKitPlatformSupport::currentThread with a null check
1515         https://bugs.webkit.org/show_bug.cgi?id=73937
1516
1517         Reviewed by Adam Barth.
1518
1519         Though |currentThread| is never null in production code, it is null in
1520         unit tests (such as Chromium's unit_tests) that call WebKit::initialize()
1521         without first constructing a MessageLoop.
1522
1523         * src/WebKit.cpp:
1524         (WebKit::initialize):
1525         (WebKit::shutdown):
1526
1527 2011-12-06  Alexandre Elias  <aelias@google.com>
1528
1529         [chromium] Apply sent deltas on finishCommit
1530         https://bugs.webkit.org/show_bug.cgi?id=73884
1531
1532         Reviewed by James Robinson.
1533
1534         This moves scroll and pageScale "sent" deltas to be applied to
1535         the layer at the end of the commit, instead of the beginning.
1536
1537         This has several advantages, especially for page scale:
1538         - When pageScale changes, no longer any need to change the scroll's
1539         coordinate space at beginning of commit, which is complex and prone to
1540         bugs (this fixes a problem where we were forgetting to modify the
1541         scrollPosition before).
1542         - No need for non-commit-related code to consider the "sent" values.
1543         m_pageScale is now always the content scale factor, and
1544         m_pageScaleDelta is the scale to be on the impl-side matrix.
1545         - This will make it easy to send arbitrary fake or future delta
1546         values for example while pinch zooming out.
1547
1548         The scroll logic is similarly altered for consistency's sake.  Note that
1549         I also moved the tree synchronize to the beginning of finishCommit
1550         in order to avoid having to change the pageScale coordinate space of
1551         sentScrollDelta in adjustScrollsForPageScaleChange().
1552
1553         * tests/CCLayerTreeHostImplTest.cpp:
1554         (WebKit::TEST_F):
1555
1556 2011-12-06  Adam Barth  <abarth@webkit.org>
1557
1558         Remove forwarding header now that downstream has been fixed to refer to
1559         the actual location of this header.
1560
1561         * public/WebRect.h: Removed.
1562
1563 2011-12-06  Dimitri Glazkov  <dglazkov@chromium.org>
1564
1565         Unreviewed, rolling out r102091.
1566         http://trac.webkit.org/changeset/102091
1567         https://bugs.webkit.org/show_bug.cgi?id=73711
1568
1569         Caused Clang Linux compile failure.
1570
1571         * tests/LayerChromiumTest.cpp:
1572
1573 2011-12-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1574
1575         Unreviewed, rolling out r102102.
1576         http://trac.webkit.org/changeset/102102
1577         https://bugs.webkit.org/show_bug.cgi?id=73925
1578
1579         Causes segmentation fault on chromium unit_tests,
1580         content_unittests, sync_unit_tests (Requested by vsevik on
1581         #webkit).
1582
1583         * features.gypi:
1584
1585 2011-12-06  Vsevolod Vlasov  <vsevik@chromium.org>
1586
1587         Unreviewed chromium expectations update.
1588
1589         * tests/KURLTest.cpp:
1590         (ComponentCase::TEST):
1591
1592 2011-12-06  Eric Penner  <epenner@google.com>
1593
1594         [chromium] Set texture limits as multiples of viewport size instead of hardcoded values
1595         https://bugs.webkit.org/show_bug.cgi?id=72202
1596
1597         Reviewed by James Robinson.
1598
1599         * tests/TiledLayerChromiumTest.cpp:
1600         (WTF::TEST):
1601
1602 2011-12-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1603
1604         Unreviewed, rolling out r102043.
1605         http://trac.webkit.org/changeset/102043
1606         https://bugs.webkit.org/show_bug.cgi?id=73898
1607
1608         Breaks chromium mac-cg compilation. (Requested by vsevik on
1609         #webkit).
1610
1611         * WebKit.gypi:
1612         * tests/ImageLayerChromiumTest.cpp: Removed.
1613
1614 2011-12-05  Rafael Weinstein  <rafaelw@chromium.org>
1615
1616         [MutationObservers] Enable in Chromium trunk
1617         https://bugs.webkit.org/show_bug.cgi?id=73851
1618
1619         Reviewed by Ojan Vafai.
1620
1621         * features.gypi:
1622
1623 2011-12-05  James Robinson  <jamesr@chromium.org>
1624
1625         chromium build fix
1626
1627         * src/WebLayerTreeView.cpp:
1628
1629 2011-12-05  James Robinson  <jamesr@chromium.org>
1630
1631         Rollout http://trac.webkit.org/changeset/102019, dependent has not
1632         landed in chromium
1633
1634         * WebKit.gyp:
1635         * public/WebContentLayer.h: Added.
1636         * public/WebExternalTextureLayer.h: Added.
1637         * public/WebLayer.h: Added.
1638         * public/WebLayerClient.h: Added.
1639         * public/WebLayerTreeView.h: Added.
1640         * public/WebLayerTreeViewClient.h: Added.
1641         * src/WebLayerTreeView.cpp:
1642         * src/WebLayerTreeViewImpl.cpp:
1643
1644 2011-12-05  Dana Jansens  <danakj@chromium.org>
1645
1646         Set opaque flag for WebGLLayerChromium
1647         https://bugs.webkit.org/show_bug.cgi?id=73876
1648
1649         Reviewed by James Robinson.
1650
1651         * WebKit.gypi:
1652         * tests/WebGLLayerChromiumTest.cpp: Added.
1653         (WebKit::CompositorMockWebGraphicsContext3D::create):
1654         (WebKit::CompositorMockWebGraphicsContext3D::makeContextCurrent):
1655         (WebKit::CompositorMockWebGraphicsContext3D::createProgram):
1656         (WebKit::CompositorMockWebGraphicsContext3D::createShader):
1657         (WebKit::CompositorMockWebGraphicsContext3D::getShaderiv):
1658         (WebKit::CompositorMockWebGraphicsContext3D::getProgramiv):
1659         (WebKit::CompositorMockWebGraphicsContext3D::getContextAttributes):
1660         (WebKit::CompositorMockWebGraphicsContext3D::CompositorMockWebGraphicsContext3D):
1661         (WebKit::createGraphicsContext):
1662         (WebKit::TEST):
1663
1664 2011-12-05  Adrienne Walker  <enne@google.com>
1665
1666         [chromium] setNeedsCommit on non-composited host layers should trigger commit
1667         https://bugs.webkit.org/show_bug.cgi?id=73711
1668
1669         Reviewed by James Robinson.
1670
1671         Add some tests to make sure that modifying the noncomposited content
1672         host triggers commits.
1673
1674         Properties that trigger setNeedsCommit should only do so when the
1675         property changes. Additionally, make more property changes properly
1676         trigger commits.
1677
1678         * tests/LayerChromiumTest.cpp:
1679
1680 2011-12-05  Stephen White  <senorblanco@chromium.org>
1681
1682         Allow the ImageBuffers used by SVG filters to be accelerated
1683         https://bugs.webkit.org/show_bug.cgi?id=73842
1684
1685         Reviewed by Kenneth Russell.
1686
1687         * public/WebSettings.h:
1688         * src/WebSettingsImpl.cpp:
1689         (WebKit::WebSettingsImpl::setAcceleratedFiltersEnabled):
1690         * src/WebSettingsImpl.h:
1691
1692 2011-12-05  Adam Barth  <abarth@webkit.org>
1693
1694         [Chromium] Chromium fails to compile due to missing WebContentLayerClient.h
1695         https://bugs.webkit.org/show_bug.cgi?id=73881
1696
1697         This patch adds a forwarding header to fix the downstream Windows build:
1698         http://build.chromium.org/p/chromium.webkit/builders/Win%20Builder/builds/12955/steps/compile/logs/stdio
1699
1700         * public/WebContentLayerClient.h: Added.
1701
1702 2011-12-05  Adam Barth  <abarth@webkit.org>
1703
1704         Add a shim to fix the downstream Chromium compile.  The real fix should
1705         be made downstream via http://codereview.chromium.org/8801036/, but the
1706         Chromium tree is closed at the moment.
1707
1708         * public/WebRect.h: Added.
1709
1710 2011-12-01  Vangelis Kokkevis  <vangelis@chromium.org>
1711
1712         Use ANGLE's texture_usage and texture_storage extensions when allocating compositor textures.
1713         https://bugs.webkit.org/show_bug.cgi?id=73621
1714
1715         Add the necessary entry points and enums to GraphicsContext3D.
1716
1717         Reviewed by Kenneth Russell.
1718
1719         * public/platform/WebGraphicsContext3D.h:
1720         * src/Extensions3DChromium.cpp:
1721         (WebCore::Extensions3DChromium::texStorage2DEXT):
1722         * src/GraphicsContext3DChromium.cpp:
1723         * src/GraphicsContext3DPrivate.h:
1724         * tests/MockWebGraphicsContext3D.h:
1725         (WebKit::MockWebGraphicsContext3D::texStorage2DEXT):
1726
1727 2011-12-05  Adam Barth  <abarth@webkit.org>
1728
1729         Another attempted build fix.
1730
1731         * src/linux/WebFontInfo.cpp:
1732
1733 2011-12-05  Adam Barth  <abarth@webkit.org>
1734
1735         Fix Linux build.
1736
1737         * public/linux/WebFontInfo.h:
1738
1739 2011-12-05  Adam Barth  <abarth@webkit.org>
1740
1741         [Chromium] Remove no-longer-used forwarding headers in the WebKit API
1742         https://bugs.webkit.org/show_bug.cgi?id=73845
1743
1744         Reviewed by Darin Fisher.
1745
1746         Delete unused forwarding headers and update includes to the new header
1747         locations.
1748
1749         * WebKit.gyp:
1750         * bridge/PeerConnectionHandlerInternal.cpp:
1751         * bridge/PeerConnectionHandlerInternal.h:
1752         * public/WebArrayBuffer.h:
1753         * public/WebArrayBufferView.h: Removed.
1754         * public/WebAudioBus.h: Removed.
1755         * public/WebAudioDevice.h: Removed.
1756         * public/WebBlobData.h: Removed.
1757         * public/WebBlobRegistry.h: Removed.
1758         * public/WebCString.h: Removed.
1759         * public/WebCanvas.h: Removed.
1760         * public/WebClipboard.h: Removed.
1761         * public/WebColor.h: Removed.
1762         * public/WebColorName.h: Removed.
1763         * public/WebCommon.h: Removed.
1764         * public/WebCompositorInputHandler.h:
1765         * public/WebCookie.h: Removed.
1766         * public/WebCookieJar.h: Removed.
1767         * public/WebData.h: Removed.
1768         * public/WebDragData.h: Removed.
1769         * public/WebFileSystem.h: Removed.
1770         * public/WebFloatPoint.h: Removed.
1771         * public/WebFloatQuad.h: Removed.
1772         * public/WebFloatRect.h: Removed.
1773         * public/WebGamepad.h: Removed.
1774         * public/WebGamepads.h: Removed.
1775         * public/WebGraphicsContext3D.h: Removed.
1776         * public/WebHTTPBody.h: Removed.
1777         * public/WebHTTPHeaderVisitor.h: Removed.
1778         * public/WebHTTPLoadInfo.h: Removed.
1779         * public/WebIDBCallbacks.h:
1780         * public/WebImage.h: Removed.
1781         * public/WebIntent.h:
1782         * public/WebIntentServiceInfo.h:
1783         * public/WebKitPlatformSupport.h: Removed.
1784         * public/WebLocalizedString.h: Removed.
1785         * public/WebMediaStreamDescriptor.h: Removed.
1786         * public/WebMimeRegistry.h: Removed.
1787         * public/WebNonCopyable.h: Removed.
1788         * public/WebPageOverlay.h:
1789         * public/WebPeerConnectionHandler.h: Removed.
1790         * public/WebPeerConnectionHandlerClient.h: Removed.
1791         * public/WebPoint.h: Removed.
1792         * public/WebPrivateOwnPtr.h: Removed.
1793         * public/WebPrivatePtr.h: Removed.
1794         * public/WebRect.h: Removed.
1795         * public/WebSerializedScriptValue.h: Removed.
1796         * public/WebSize.h: Removed.
1797         * public/WebSocketStreamError.h: Removed.
1798         * public/WebSocketStreamHandle.h: Removed.
1799         * public/WebSocketStreamHandleClient.h: Removed.
1800         * public/WebString.h: Removed.
1801         * public/WebThread.h: Removed.
1802         * public/WebThreadSafeData.h: Removed.
1803         * public/WebURL.h: Removed.
1804         * public/WebURLError.h: Removed.
1805         * public/WebURLLoadTiming.h: Removed.
1806         * public/WebURLLoader.h: Removed.
1807         * public/WebURLLoaderClient.h: Removed.
1808         * public/WebURLRequest.h: Removed.
1809         * public/WebURLResponse.h: Removed.
1810         * public/WebVector.h: Removed.
1811         * public/WebWorkerRunLoop.h:
1812         * public/android/WebThemeEngine.h: Removed.
1813         * public/linux/WebFontFamily.h: Removed.
1814         * public/linux/WebThemeEngine.h: Removed.
1815         * public/mac/WebThemeEngine.h: Removed.
1816         * public/win/WebThemeEngine.h: Removed.
1817         * src/ApplicationCacheHost.cpp:
1818         * src/ApplicationCacheHostInternal.h:
1819         * src/AssertMatchingEnums.cpp:
1820         * src/AssociatedURLLoader.cpp:
1821         * src/AssociatedURLLoader.h:
1822         * src/AsyncFileSystemChromium.cpp:
1823         * src/AsyncFileWriterChromium.cpp:
1824         * src/AudioDestinationChromium.cpp:
1825         * src/AudioDestinationChromium.h:
1826         * src/AutofillPopupMenuClient.cpp:
1827         * src/BlobRegistryProxy.cpp:
1828         * src/CCThreadImpl.cpp:
1829         * src/ChromeClientImpl.cpp:
1830         * src/ChromiumCurrentTime.cpp:
1831         * src/ChromiumOSRandomSource.cpp:
1832         * src/ChromiumThreading.cpp:
1833         * src/CompositionUnderlineBuilder.h:
1834         * src/CompositionUnderlineVectorBuilder.h:
1835         * src/ContextMenuClientImpl.cpp:
1836         * src/DragClientImpl.cpp:
1837         * src/DragScrollTimer.h:
1838         * src/ExternalPopupMenu.cpp:
1839         * src/FrameLoaderClientImpl.cpp:
1840         * src/GraphicsContext3DChromium.cpp:
1841         * src/IDBCallbacksProxy.cpp:
1842         * src/IDBCursorBackendProxy.cpp:
1843         * src/IDBFactoryBackendProxy.cpp:
1844         * src/IDBObjectStoreBackendProxy.cpp:
1845         * src/InspectorClientImpl.cpp:
1846         * src/InspectorFrontendClientImpl.cpp:
1847         * src/LocalFileSystemChromium.cpp:
1848         * src/LocalizedStrings.cpp:
1849         * src/NotificationPresenterImpl.cpp:
1850         * src/PlatformMessagePortChannel.cpp:
1851         * src/PlatformSupport.cpp:
1852         * src/ResourceHandle.cpp:
1853         * src/ResourceHandleInternal.h:
1854         * src/ScrollbarGroup.cpp:
1855         * src/SharedWorkerRepository.cpp:
1856         * src/SocketStreamHandle.cpp:
1857         * src/SpeechInputClientImpl.cpp:
1858         * src/StorageAreaProxy.cpp:
1859         * src/StorageEventDispatcherChromium.cpp:
1860         * src/StorageNamespaceProxy.cpp:
1861         * src/WebAccessibilityObject.cpp:
1862         * src/WebAnimationControllerImpl.cpp:
1863         * src/WebArrayBufferView.cpp:
1864         * src/WebAttribute.cpp:
1865         * src/WebAudioBus.cpp:
1866         * src/WebBindings.cpp:
1867         * src/WebBlobData.cpp:
1868         * src/WebCString.cpp:
1869         * src/WebColor.cpp:
1870         * src/WebCommon.cpp:
1871         * src/WebCompositorImpl.cpp:
1872         * src/WebCompositorInputHandlerImpl.cpp:
1873         * src/WebContentLayerImpl.cpp:
1874         * src/WebDOMEventListenerPrivate.h:
1875         * src/WebDOMMessageEvent.cpp:
1876         * src/WebDOMStringList.cpp:
1877         * src/WebData.cpp:
1878         * src/WebDataSourceImpl.cpp:
1879         * src/WebDatabase.cpp:
1880         * src/WebDevToolsAgentImpl.cpp:
1881         * src/WebDocument.cpp:
1882         * src/WebDocumentType.cpp:
1883         * src/WebDragData.cpp:
1884         * src/WebEntities.cpp:
1885         * src/WebExternalTextureLayerImpl.cpp:
1886         * src/WebFileChooserCompletionImpl.h:
1887         * src/WebFileSystemCallbacksImpl.cpp:
1888         * src/WebFileSystemCallbacksImpl.h:
1889         * src/WebFloatQuad.cpp:
1890         * src/WebFontImpl.cpp:
1891         * src/WebFormElement.cpp:
1892         * src/WebFrameImpl.cpp:
1893         * src/WebGeolocationError.cpp:
1894         * src/WebGeolocationPermissionRequest.cpp:
1895         * src/WebGraphicsContext3D.cpp:
1896         * src/WebHTTPBody.cpp:
1897         * src/WebHTTPLoadInfo.cpp:
1898         * src/WebHistoryItem.cpp:
1899         * src/WebIDBCallbacksImpl.cpp:
1900         * src/WebIDBCursorImpl.h:
1901         * src/WebIDBDatabaseCallbacksImpl.cpp:
1902         * src/WebIDBDatabaseCallbacksImpl.h:
1903         * src/WebIDBDatabaseError.cpp:
1904         * src/WebIDBDatabaseImpl.h:
1905         * src/WebIDBIndexImpl.h:
1906         * src/WebIDBKey.cpp:
1907         * src/WebIDBKeyPath.cpp:
1908         * src/WebIDBObjectStoreImpl.cpp:
1909         * src/WebIDBObjectStoreImpl.h:
1910         * src/WebIDBTransactionImpl.h:
1911         * src/WebIconLoadingCompletionImpl.h:
1912         * src/WebImageCG.cpp:
1913         * src/WebImageDecoder.cpp:
1914         * src/WebImageSkia.cpp:
1915         * src/WebInputElement.cpp:
1916         * src/WebKit.cpp:
1917         * src/WebLabelElement.cpp:
1918         * src/WebLayer.cpp:
1919         * src/WebLayerTreeView.cpp:
1920         * src/WebLayerTreeViewImpl.cpp:
1921         * src/WebMediaPlayerClientImpl.cpp:
1922         * src/WebMediaStreamDescriptor.cpp:
1923         * src/WebMediaStreamRegistry.cpp:
1924         * src/WebMediaStreamSource.cpp:
1925         * src/WebNode.cpp:
1926         * src/WebNotification.cpp:
1927         * src/WebOptionElement.cpp:
1928         * src/WebPageSerializer.cpp:
1929         * src/WebPageSerializerImpl.cpp:
1930         * src/WebPageSerializerImpl.h:
1931         * src/WebPluginContainerImpl.cpp:
1932         * src/WebPluginListBuilderImpl.cpp:
1933         * src/WebPluginLoadObserver.h:
1934         * src/WebPopupMenuImpl.cpp:
1935         * src/WebPopupMenuImpl.h:
1936         * src/WebRange.cpp:
1937         * src/WebRegularExpression.cpp:
1938         * src/WebScriptController.cpp:
1939         * src/WebScrollbarImpl.cpp:
1940         * src/WebSecurityOrigin.cpp:
1941         * src/WebSecurityPolicy.cpp:
1942         * src/WebSelectElement.cpp:
1943         * src/WebSerializedScriptValue.cpp:
1944         * src/WebSettingsImpl.cpp:
1945         * src/WebSharedWorkerImpl.cpp:
1946         * src/WebSocketImpl.cpp:
1947         * src/WebSocketImpl.h:
1948         * src/WebSpeechInputControllerMockImpl.cpp:
1949         * src/WebSpeechInputControllerMockImpl.h:
1950         * src/WebStorageAreaImpl.cpp:
1951         * src/WebStorageEventDispatcherImpl.cpp:
1952         * src/WebStorageNamespaceImpl.cpp:
1953         * src/WebString.cpp:
1954         * src/WebTextCheckingCompletionImpl.cpp:
1955         * src/WebThreadSafeData.cpp:
1956         * src/WebURL.cpp:
1957         * src/WebURLError.cpp:
1958         * src/WebURLLoadTiming.cpp:
1959         * src/WebURLRequest.cpp:
1960         * src/WebURLResponse.cpp:
1961         * src/WebURLResponsePrivate.h:
1962         * src/WebUserMediaRequest.cpp:
1963         * src/WebViewImpl.cpp:
1964         * src/WebViewImpl.h:
1965         * src/WebWorkerClientImpl.cpp:
1966         * src/WebWorkerClientImpl.h:
1967         * src/WebWorkerImpl.cpp:
1968         * src/WorkerAsyncFileSystemChromium.cpp:
1969         * src/WorkerAsyncFileWriterChromium.cpp:
1970         * src/WorkerFileSystemCallbacksBridge.cpp:
1971         * src/WorkerFileSystemCallbacksBridge.h:
1972         * src/WorkerFileWriterCallbacksBridge.cpp:
1973         * src/WrappedResourceRequest.h:
1974         * src/WrappedResourceResponse.h:
1975         * src/mac/WebSubstringUtil.mm:
1976         * tests/AssociatedURLLoaderTest.cpp:
1977         * tests/CCLayerTreeHostTest.cpp:
1978         * tests/FrameTestHelpers.cpp:
1979         * tests/MockWebGraphicsContext3D.h:
1980         * tests/PopupMenuTest.cpp:
1981         * tests/RunAllTests.cpp:
1982         * tests/WebLayerTest.cpp:
1983         * tests/WebPageNewSerializerTest.cpp:
1984         * tests/WebPageSerializerTest.cpp:
1985         * tests/WebURLRequestTest.cpp:
1986         * tests/WebUnitTests.h:
1987         * tests/WebViewTest.cpp:
1988
1989 2011-12-05  Dana Jansens  <danakj@chromium.org>
1990
1991         [chromium] Set opaque flag for ImageLayerChromium
1992         https://bugs.webkit.org/show_bug.cgi?id=72964
1993
1994         Reviewed by James Robinson.
1995
1996         * WebKit.gypi:
1997         * tests/ImageLayerChromiumTest.cpp: Added.
1998         (WebCore::MockGraphicsLayerClient::notifyAnimationStarted):
1999         (WebCore::MockGraphicsLayerClient::notifySyncRequired):
2000         (WebCore::MockGraphicsLayerClient::paintContents):
2001         (WebCore::MockGraphicsLayerClient::showDebugBorders):
2002         (WebCore::MockGraphicsLayerClient::showRepaintCounter):
2003         (WebCore::TestImage::create):
2004         (WebCore::TestImage::TestImage):
2005         (WebCore::TestImage::~TestImage):
2006         (WebCore::TestImage::isBitmapImage):
2007         (WebCore::TestImage::currentFrameHasAlpha):
2008         (WebCore::TestImage::size):
2009         (WebCore::TestImage::nativeImageForCurrentFrame):
2010         (WebCore::TestImage::destroyDecodedData):
2011         (WebCore::TestImage::decodedSize):
2012         (WebCore::TestImage::draw):
2013         (WebCore::TEST):
2014
2015 2011-12-02  James Robinson  <jamesr@chromium.org>
2016
2017         [chromium] Remove forwarding headers for WebLayer APIs
2018         https://bugs.webkit.org/show_bug.cgi?id=73729
2019
2020         Reviewed by Adam Barth.
2021
2022         These are no longer necessary.
2023
2024         * WebKit.gyp:
2025         * public/WebContentLayer.h: Removed.
2026         * public/WebContentLayerClient.h: Removed.
2027         * public/WebExternalTextureLayer.h: Removed.
2028         * public/WebLayer.h: Removed.
2029         * public/WebLayerClient.h: Removed.
2030         * public/WebLayerTreeView.h: Removed.
2031         * public/WebLayerTreeViewClient.h: Removed.
2032         * src/WebLayerTreeView.cpp:
2033         * src/WebLayerTreeViewImpl.cpp:
2034         * tests/WebLayerTest.cpp:
2035
2036 2011-12-05  Vsevolod Vlasov  <vsevik@chromium.org>
2037
2038         Unreviewed, fixed chromium DEPS syntax.
2039
2040         * DEPS:
2041
2042 2011-12-05  Vsevolod Vlasov  <vsevik@chromium.org>
2043
2044         Unreviewed.  Rolled DEPS.
2045
2046         * DEPS:
2047
2048 2011-12-05  Eric Carlson  <eric.carlson@apple.com>
2049
2050         WebKit/chromium part of: Add WebKit preferences for text track settings
2051         https://bugs.webkit.org/show_bug.cgi?id=73721
2052
2053         Reviewed by John Sullivan.
2054
2055         * src/WebSettingsImpl.cpp:
2056         (WebKit::WebSettingsImpl::shouldDisplaySubtitles): Added.
2057         (WebKit::WebSettingsImpl::shouldDisplayCaptions): Ditto.
2058         (WebKit::WebSettingsImpl::shouldDisplayTextDescriptions): Ditto.
2059         * src/WebSettingsImpl.h:
2060
2061 2011-12-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2062
2063         Unreviewed.  Rolled DEPS.
2064
2065         * DEPS:
2066
2067 2011-12-02  Sheriff Bot  <webkit.review.bot@gmail.com>
2068
2069         Unreviewed, rolling out r101906.
2070         http://trac.webkit.org/changeset/101906
2071         https://bugs.webkit.org/show_bug.cgi?id=73736
2072
2073         Failing chromium webkit_unit_tests (Requested by scheib on
2074         #webkit).
2075
2076         * WebKit.gypi:
2077         * tests/DispatchEventTest.cpp: Removed.
2078         * tests/data/event_target.html: Removed.
2079
2080 2011-12-02  Dave Michael  <dmichael@chromium.org>
2081
2082         Add a unit test for creating, listening for, and dispatching events
2083         via the chromium API.
2084         https://bugs.webkit.org/show_bug.cgi?id=72988
2085
2086         Reviewed by Darin Fisher.
2087
2088         * WebKit.gypi:
2089         * tests/DispatchEventTest.cpp: Added.
2090         (WebKit::MockListener::MockListener):
2091         (WebKit::MockListener::~MockListener):
2092         (WebKit::MockListener::events):
2093         (WebKit::DispatchEventTest::DispatchEventTest):
2094         (WebKit::DispatchEventTest::TearDown):
2095         (WebKit::TEST_F):
2096
2097 2011-12-02  Nate Chapin  <japhet@chromium.org>
2098
2099         Don't call FocusController:setActive() in 
2100         WebViewImpl::setFocus(), since being active and
2101         being focused are different concepts and chromium
2102         now properly sends setActive IPCs on all platforms.
2103         https://bugs.webkit.org/show_bug.cgi?id=73687
2104
2105         Reviewed by Eric Seidel.
2106
2107         * src/WebViewImpl.cpp:
2108         (WebKit::WebViewImpl::setFocus):
2109         * tests/WebViewTest.cpp: Test how different combinations of
2110             setIsActive() and setFocus() affect whether the document
2111             has focus.
2112
2113 2011-12-02  Dave Michael  <dmichael@chromium.org>
2114
2115         Add WebArrayBuffer to chromium API
2116         https://bugs.webkit.org/show_bug.cgi?id=73593
2117
2118         Reviewed by Darin Fisher.
2119
2120         * WebKit.gyp:
2121         * public/WebArrayBuffer.h: Added.
2122         (WebKit::WebArrayBuffer::~WebArrayBuffer):
2123         (WebKit::WebArrayBuffer::WebArrayBuffer):
2124         (WebKit::WebArrayBuffer::operator=):
2125         (WebKit::WebArrayBuffer::isNull):
2126         * public/WebBindings.h:
2127         * src/WebArrayBuffer.cpp: Added.
2128         (WebKit::WebArrayBuffer::create):
2129         (WebKit::WebArrayBuffer::reset):
2130         (WebKit::WebArrayBuffer::assign):
2131         (WebKit::WebArrayBuffer::data):
2132         (WebKit::WebArrayBuffer::byteLength):
2133         (WebKit::WebArrayBuffer::toV8Value):
2134         (WebKit::WebArrayBuffer::WebArrayBuffer):
2135         (WebKit::WebArrayBuffer::operator=):
2136         (WebKit::WebArrayBuffer::operator WTF::PassRefPtr<WTF::ArrayBuffer>):
2137         * src/WebBindings.cpp:
2138         (WebKit::getArrayBufferImpl):
2139         (WebKit::WebBindings::getArrayBuffer):
2140
2141 2011-12-02  David Grogan  <dgrogan@chromium.org>
2142
2143         Grant workers experimental access to IndexedDB.
2144         https://bugs.webkit.org/show_bug.cgi?id=73609
2145
2146         Reviewed by Nate Chapin.
2147
2148         * src/IDBFactoryBackendProxy.cpp:
2149         (WebKit::IDBFactoryBackendProxy::allowIDBFromWorkerThread): Return
2150         true while behind a runtime flag, and while we figure out how to check
2151         permission in a thread-safe manner.
2152         (WebKit::IDBFactoryBackendProxy::openFromWorker): Using the webFrame
2153         from the worker seems to satisfy the weak condition in chromium that
2154         neither it nor it's associated RenderView is NULL.
2155         * src/IDBFactoryBackendProxy.h:
2156
2157 2011-12-01  James Robinson  <jamesr@chromium.org>
2158
2159         [chromium] Move WebLayer APIs to platform directory
2160         https://bugs.webkit.org/show_bug.cgi?id=73610
2161
2162         Reviewed by Darin Fisher.
2163
2164         * public/WebContentLayer.h:
2165         * public/WebContentLayerClient.h:
2166         * public/WebExternalTextureLayer.h:
2167         * public/WebLayer.h:
2168         * public/WebLayerClient.h:
2169         * public/WebLayerTreeView.h:
2170         * public/WebLayerTreeViewClient.h:
2171         * public/platform/WebContentLayer.h: Copied from Source/WebKit/chromium/public/WebContentLayer.h.
2172         (WebKit::WebContentLayer::WebContentLayer):
2173         (WebKit::WebContentLayer::~WebContentLayer):
2174         (WebKit::WebContentLayer::operator=):
2175         * public/platform/WebContentLayerClient.h: Copied from Source/WebKit/chromium/public/WebContentLayerClient.h.
2176         (WebKit::WebContentLayerClient::~WebContentLayerClient):
2177         * public/platform/WebExternalTextureLayer.h: Copied from Source/WebKit/chromium/public/WebExternalTextureLayer.h.
2178         (WebKit::WebExternalTextureLayer::WebExternalTextureLayer):
2179         (WebKit::WebExternalTextureLayer::~WebExternalTextureLayer):
2180         (WebKit::WebExternalTextureLayer::operator=):
2181         * public/platform/WebLayer.h: Copied from Source/WebKit/chromium/public/WebLayer.h.
2182         (WebKit::WebLayer::WebLayer):
2183         (WebKit::WebLayer::~WebLayer):
2184         (WebKit::WebLayer::operator=):
2185         (WebKit::WebLayer::isNull):
2186         (WebKit::WebLayer::to):
2187         (WebKit::WebLayer::toConst):
2188         (WebKit::WebLayer::unwrap):
2189         (WebKit::WebLayer::constUnwrap):
2190         (WebKit::operator==):
2191         (WebKit::operator!=):
2192         * public/platform/WebLayerClient.h: Copied from Source/WebKit/chromium/public/WebLayerClient.h.
2193         (WebKit::WebLayerClient::~WebLayerClient):
2194         * public/platform/WebLayerTreeView.h: Copied from Source/WebKit/chromium/public/WebLayerTreeView.h.
2195         (WebKit::WebLayerTreeView::Settings::Settings):
2196         (WebKit::WebLayerTreeView::WebLayerTreeView):
2197         (WebKit::WebLayerTreeView::~WebLayerTreeView):
2198         (WebKit::WebLayerTreeView::operator=):
2199         (WebKit::operator==):
2200         (WebKit::operator!=):
2201         * public/platform/WebLayerTreeViewClient.h: Copied from Source/WebKit/chromium/public/WebLayerTreeViewClient.h.
2202         (WebKit::WebLayerTreeViewClient::~WebLayerTreeViewClient):
2203         * public/platform/WebPrivatePtr.h:
2204         * src/WebContentLayer.cpp:
2205         * src/WebContentLayerImpl.cpp:
2206         * src/WebExternalTextureLayer.cpp:
2207         * src/WebExternalTextureLayerImpl.cpp:
2208         * src/WebLayer.cpp:
2209         * src/WebLayerImpl.cpp:
2210         * src/WebLayerTreeView.cpp:
2211         * src/WebLayerTreeViewImpl.h:
2212
2213 2011-12-02  Karl Koscher  <supersat@chromium.org>
2214
2215         [chromium] add setOpener method to WebFrame
2216         https://bugs.webkit.org/show_bug.cgi?id=73379
2217
2218         Reviewed by Darin Fisher.
2219
2220         * public/WebFrame.h:
2221         (WebKit::WebFrame::clearOpener): now an inline call to setOpener(0)
2222         * src/WebFrameImpl.cpp:
2223         (WebKit::WebFrameImpl::setOpener): sets window.opener
2224         * src/WebFrameImpl.h:
2225
2226 2011-12-02  Kent Tamura  <tkent@chromium.org>
2227
2228         Unreviewed, rolling out r101337.
2229         http://trac.webkit.org/changeset/101337
2230         https://bugs.webkit.org/show_bug.cgi?id=73189
2231
2232         It's a wrong way to fix the problem
2233
2234         * src/WebViewImpl.cpp:
2235         (WebKit::WebViewImpl::popupOpened):
2236
2237 2011-12-02  Kausalya Madhusudhanan  <kmadhusu@chromium.org>
2238
2239         Added helper method to identify whether the page has custom page size style.
2240         https://bugs.webkit.org/show_bug.cgi?id=73585
2241
2242         Reviewed by Darin Fisher.
2243
2244         * public/WebFrame.h:
2245         * src/WebFrameImpl.cpp:
2246         (WebKit::WebFrameImpl::hasCustomPageSizeStyle):
2247         * src/WebFrameImpl.h:
2248
2249 2011-12-02  Tony Chang  <tony@chromium.org>
2250
2251         [Chromium] GYP fix for Windows 2010 build
2252         https://bugs.webkit.org/show_bug.cgi?id=73483
2253
2254         Reviewed by Adam Barth.
2255
2256         Patch by Carlos Pizano.
2257
2258         * WebKit.gyp: Exclude the android directory and remove a file match that doesn't match anything.
2259
2260 2011-12-01  Alok Priyadarshi  <alokp@chromium.org>
2261
2262         [chromium] CCLayerQuad does not return FloatQuad in correct order
2263         https://bugs.webkit.org/show_bug.cgi?id=73247
2264
2265         Reviewed by James Robinson.
2266
2267         * WebKit.gypi:
2268         * tests/CCLayerQuadTest.cpp: Added.
2269         (WebCore::TEST):
2270
2271 2011-11-30  Adam Klein  <adamk@chromium.org>
2272
2273         [chromium] WebKitMutationObserver::deliverAllMutations should be exposed through the Chromium API
2274         https://bugs.webkit.org/show_bug.cgi?id=71242
2275
2276         Reviewed by Darin Fisher.
2277
2278         Relanding, depends on http://codereview.chromium.org/8748015/
2279         to fix a sandboxing issue on Chromium/Linux.
2280
2281         Add addTaskObserver and removeTaskObserver to WebThread,
2282         along with a new WebThread::TaskObserver interface.
2283
2284         For mutation observers, add a TaskObserver to the main thread
2285         to deliver mutations after each task runs.
2286
2287         The Chromium implementation of the new WebThread methods is in
2288         http://codereview.chromium.org/8586038/.
2289
2290         * public/platform/WebThread.h:
2291         (WebKit::WebThread::TaskObserver::~TaskObserver):
2292         * src/WebKit.cpp:
2293         (WebKit::initialize):
2294         (WebKit::shutdown):
2295
2296 2011-12-02  Sheriff Bot  <webkit.review.bot@gmail.com>
2297
2298         Unreviewed, rolling out r101833.
2299         http://trac.webkit.org/changeset/101833
2300         https://bugs.webkit.org/show_bug.cgi?id=73678
2301
2302         test_expectations file invalid: run Tools/Scripts/new-run-
2303         webkit-tests --lint-test-files (Requested by scheib on
2304         #webkit).
2305
2306         * WebKit.gypi:
2307         * tests/CCLayerQuadTest.cpp: Removed.
2308
2309 2011-12-02  Alok Priyadarshi  <alokp@chromium.org>
2310
2311         [chromium] CCLayerQuad does not return FloatQuad in correct orientation
2312         https://bugs.webkit.org/show_bug.cgi?id=73247
2313
2314         Reviewed by James Robinson.
2315
2316         * WebKit.gypi:
2317         * tests/CCLayerQuadTest.cpp: Added.
2318         (WebCore::TEST):
2319
2320 2011-12-02  Daniel Cheng  <dcheng@chromium.org>
2321
2322         [chromium] Add plumbing for supporting custom MIME types in DataTransfer.
2323         https://bugs.webkit.org/show_bug.cgi?id=73594
2324
2325         Reviewed by David Levin.
2326
2327         * public/platform/WebClipboard.h:
2328         (WebKit::WebClipboard::readCustomData):
2329         * public/platform/WebDragData.h:
2330         * src/PlatformSupport.cpp:
2331         (WebCore::PlatformSupport::clipboardReadCustomData):
2332         * src/WebDragData.cpp:
2333         (WebKit::WebDragData::customData):
2334         (WebKit::WebDragData::setCustomData):
2335
2336 2011-12-02  Joshua Bell  <jsbell@chromium.org>
2337
2338         IndexedDB: Rename "multientry" to "multiEntry" per spec change
2339         https://bugs.webkit.org/show_bug.cgi?id=73578
2340
2341         Reviewed by Darin Fisher.
2342
2343         * public/WebIDBIndex.h:
2344         (WebKit::WebIDBIndex::multiEntry):
2345         * public/WebIDBObjectStore.h:
2346         (WebKit::WebIDBObjectStore::createIndex):
2347         * src/IDBIndexBackendProxy.cpp:
2348         (WebKit::IDBIndexBackendProxy::multiEntry):
2349         * src/IDBIndexBackendProxy.h:
2350         * src/IDBObjectStoreBackendProxy.cpp:
2351         (WebKit::IDBObjectStoreBackendProxy::createIndex):
2352         * src/IDBObjectStoreBackendProxy.h:
2353         * src/WebIDBIndexImpl.cpp:
2354         (WebKit::WebIDBIndexImpl::multiEntry):
2355         * src/WebIDBIndexImpl.h:
2356         * src/WebIDBObjectStoreImpl.cpp:
2357         (WebKit::WebIDBObjectStoreImpl::createIndex):
2358         * src/WebIDBObjectStoreImpl.h:
2359
2360 2011-12-02  Sami Kyostila  <skyostil@chromium.org>
2361
2362         [chromium] Make CCInputHandler scrolling stateful
2363         https://bugs.webkit.org/show_bug.cgi?id=73345
2364
2365         This change makes the scrolling part of CCInputHandler stateful by
2366         replacing scrollRootLayer() with scrollBegin(), scrollBy() and
2367         scrollEnd(). This is done in preparation for scrollable sublayers.
2368         Specifically, scrollBegin() will allow CCLayerTreeHostImpl to perform
2369         input event hit testing to find the layer to be scrolled.
2370
2371         Reviewed by Steve Block.
2372
2373         * src/WebCompositorImpl.cpp:
2374         (WebKit::WebCompositorImpl::handleInputEvent):
2375         * tests/CCLayerTreeHostImplTest.cpp:
2376         (WebKit::TEST_F):
2377
2378 2011-12-02  Pavel Feldman  <pfeldman@google.com>
2379
2380         Web Inspector [chromium]: provisional fix for interactive ui tests
2381         https://bugs.webkit.org/show_bug.cgi?id=73633
2382
2383         Reviewed by Yury Semikhatsky.
2384
2385         * src/js/Tests.js:
2386         (.):
2387         (.TestSuite.prototype._executeCodeWhenScriptsAreParsed):
2388
2389 2011-12-01  David Levin  <levin@chromium.org>
2390
2391         [chromium] Add WebKit API's to support the autosize algorithm in renderer process.
2392         https://bugs.webkit.org/show_bug.cgi?id=73058
2393
2394         Reviewed by Darin Fisher.
2395
2396         * public/WebView.h: Expose the auto-resize method.
2397         * public/WebWidgetClient.h:
2398         (WebKit::WebWidgetClient::didAutoResize):
2399         * src/WebFrameImpl.cpp:
2400         (WebKit::WebFrameImpl::createFrameView): Set the auto-resize
2401         state on the new view.
2402         * src/WebViewImpl.cpp:
2403         (WebKit::WebViewImpl::WebViewImpl):
2404         (WebKit::WebViewImpl::resize): Extracted sendResizeEventAndRepaint, so
2405         that it can be used by layoutUpdated.
2406         (WebKit::WebViewImpl::queueBothResizeEventAndPaint): Ditto.
2407         (WebKit::WebViewImpl::hasHorizontalScrollbar): Added for testing purposes.
2408         (WebKit::WebViewImpl::hasVerticalScrollbar): Ditto.
2409         (WebKit::WebViewImpl::enableAutoResizeMode): Set-up auto-resize.
2410         (WebKit::WebViewImpl::layoutUpdated): Handle the auto-resize case by
2411         sending events and invalidation.
2412         * src/WebViewImpl.h: Expose the aut-reosize information.
2413         (WebKit::WebViewImpl::shouldAutoResize):
2414         (WebKit::WebViewImpl::minAutoSize):
2415         (WebKit::WebViewImpl::maxAutoSize):
2416         * tests/FrameTestHelpers.cpp:
2417         (WebKit::FrameTestHelpers::createWebViewAndLoad): Added the ability to
2418         specify the WebViewClient.
2419         * tests/FrameTestHelpers.h: Ditto.
2420         * tests/WebViewTest.cpp: Added a simple test for auto-resize.
2421         (WebKit::TestData::setWebView):
2422         (WebKit::TestData::setSize): Capture the new size.
2423         (WebKit::TestData::hasHorizontalScrollbar):
2424         (WebKit::TestData::hasVerticalScrollbar):
2425         (WebKit::TestData::width):
2426         (WebKit::TestData::height):
2427         (WebKit::AutoResizeWebViewClient::didAutoResize): Handle the resize event.
2428         (WebKit::AutoResizeWebViewClient::testData):
2429         (WebKit::TEST_F): The actual test.
2430         * tests/data/specify_size.html: Added.
2431
2432 2011-12-02  Xiyuan Xia  <xiyuan@chromium.org>
2433
2434         [Chromium] Support adding/removing page overlay to WebView
2435         https://bugs.webkit.org/show_bug.cgi?id=73235
2436
2437         Reviewed by James Robinson.
2438
2439         * WebKit.gyp:
2440         * public/WebPageOverlay.h: Added.
2441         (WebKit::WebPageOverlay::~WebPageOverlay):
2442         * public/WebView.h:
2443         * src/PageOverlay.cpp:
2444         (WebKit::PageOverlay::create):
2445         (WebKit::PageOverlay::PageOverlay):
2446         (WebKit::OverlayGraphicsLayerClientImpl::create):
2447         (WebKit::OverlayGraphicsLayerClientImpl::paintContents):
2448         (WebKit::OverlayGraphicsLayerClientImpl::OverlayGraphicsLayerClientImpl):
2449         (WebKit::PageOverlay::update):
2450         (WebKit::PageOverlay::paintWebFrame):
2451         (WebKit::PageOverlay::invalidateWebFrame):
2452         * src/PageOverlay.h:
2453         (WebKit::PageOverlay::overlay):
2454         (WebKit::PageOverlay::setOverlay):
2455         (WebKit::PageOverlay::zOrder):
2456         (WebKit::PageOverlay::setZOrder):
2457         * src/PageOverlayList.cpp: Added.
2458         (WebKit::PageOverlayList::create):
2459         (WebKit::PageOverlayList::PageOverlayList):
2460         (WebKit::PageOverlayList::~PageOverlayList):
2461         (WebKit::PageOverlayList::add):
2462         (WebKit::PageOverlayList::remove):
2463         (WebKit::PageOverlayList::update):
2464         (WebKit::PageOverlayList::paintWebFrame):
2465         (WebKit::PageOverlayList::find):
2466         * src/PageOverlayList.h: Added.
2467         (WebKit::PageOverlayList::empty):
2468         * src/WebDevToolsAgentImpl.cpp:
2469         (WebKit::WebDevToolsAgentImpl::paintPageOverlay):
2470         (WebKit::WebDevToolsAgentImpl::highlight):
2471         (WebKit::WebDevToolsAgentImpl::hideHighlight):
2472         * src/WebDevToolsAgentImpl.h:
2473         * src/WebFrameImpl.cpp:
2474         (WebKit::WebFrameImpl::paintWithContext):
2475         * src/WebViewImpl.cpp:
2476         (WebKit::WebViewImpl::composite):
2477         (WebKit::WebViewImpl::addPageOverlay):
2478         (WebKit::WebViewImpl::removePageOverlay):
2479         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2480         (WebKit::WebViewImpl::didRecreateGraphicsContext):
2481         * src/WebViewImpl.h:
2482         (WebKit::WebViewImpl::pageOverlays):
2483
2484 2011-12-01  Jochen Eisinger  <jochen@chromium.org>
2485
2486         [chromium] add referrer policy to WebContextMenuData
2487         https://bugs.webkit.org/show_bug.cgi?id=73567
2488
2489         Reviewed by Darin Fisher.
2490
2491         * public/WebContextMenuData.h:
2492         * src/ContextMenuClientImpl.cpp:
2493         (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
2494
2495 2011-12-01  Kelly Norton  <knorton@google.com>
2496
2497         More void functions eager to return values in RenderObject & WebFrameImpl
2498         https://bugs.webkit.org/show_bug.cgi?id=73571
2499
2500         Reviewed by Adam Barth.
2501
2502         * src/WebFrameImpl.cpp:
2503         (WebKit::ChromePrintContext::computePageRects):
2504
2505 2011-12-01  Daniel Sievers  <sievers@chromium.org>
2506
2507         [Chromium] Early returns in calculateDrawTransformsAndVisibilityInternal() are not respected by parent.
2508         https://bugs.webkit.org/show_bug.cgi?id=73270
2509
2510         Non-drawing child trees should not be added to the parent render surface's layer list
2511         and should neither extend the parent layer's drawable content rect.
2512
2513         This also fixes assertions from the content texture residency logic, which doesn't like it
2514         if we try to use a render surface through a parent, while that surface itself was never 'used'
2515         in the same frame.
2516
2517         Reviewed by James Robinson.
2518
2519         * tests/CCLayerTreeHostCommonTest.cpp:
2520         (WebCore::TEST):
2521
2522 2011-12-01  David Reveman  <reveman@chromium.org>
2523
2524         [Chromium] Use contentBounds instead of bounds for invalidation.
2525         https://bugs.webkit.org/show_bug.cgi?id=73525
2526
2527         Reviewed by James Robinson.
2528
2529         Use setNeedsDisplay() instead of setNeedsDisplayRect() when possible.
2530
2531         * src/WebMediaPlayerClientImpl.cpp:
2532         (WebKit::WebMediaPlayerClientImpl::repaint):
2533
2534 2011-12-01  Elliot Poger  <epoger@google.com>
2535
2536         webkit->chromium DEPS roll 111575->112463
2537         https://bugs.webkit.org/show_bug.cgi?id=73231
2538
2539         Reviewed by Yury Semikhatsky.
2540
2541         * DEPS:
2542
2543 2011-12-01  Pavel Feldman  <pfeldman@google.com>
2544
2545         Web Inspector: further align front-end configurations: get rid of saveAsAvailable preference, inline drag glass pane.
2546         https://bugs.webkit.org/show_bug.cgi?id=73555
2547
2548         Reviewed by Yury Semikhatsky.
2549
2550         * src/InspectorFrontendClientImpl.cpp:
2551         (WebKit::InspectorFrontendClientImpl::canSaveAs):
2552         * src/InspectorFrontendClientImpl.h:
2553         * src/js/DevTools.js:
2554
2555 2011-12-01  Pavel Feldman  <pfeldman@google.com>
2556
2557         Web Inspector: query backend for capabilities explicitly.
2558         https://bugs.webkit.org/show_bug.cgi?id=73442
2559
2560         Reviewed by Yury Semikhatsky.
2561
2562         * src/InspectorClientImpl.cpp:
2563         (WebKit::InspectorClientImpl::canClearBrowserCache):
2564         (WebKit::InspectorClientImpl::canClearBrowserCookies):
2565         * src/InspectorClientImpl.h:
2566         * src/js/DevTools.js:
2567
2568 2011-11-29  Hans Wennborg  <hans@chromium.org>
2569
2570         IndexedDB: Cursor pre-fetching
2571         https://bugs.webkit.org/show_bug.cgi?id=73025
2572
2573         Reviewed by Darin Fisher.
2574
2575         Add plumbing for new pre-fetching related functions.
2576
2577         * public/WebIDBCallbacks.h:
2578         (WebKit::WebIDBCallbacks::onSuccessWithPrefetch):
2579         * public/WebIDBCursor.h:
2580         (WebKit::WebIDBCursor::deleteFunction):
2581         (WebKit::WebIDBCursor::prefetchContinue):
2582         (WebKit::WebIDBCursor::prefetchReset):
2583         (WebKit::WebIDBCursor::postSuccessHandlerCallback):
2584         * public/WebIDBTransaction.h:
2585         (WebKit::WebIDBTransaction::addPendingEvents):
2586         * src/IDBCallbacksProxy.cpp:
2587         (WebKit::IDBCallbacksProxy::onSuccessWithPrefetch):
2588         * src/IDBCallbacksProxy.h:
2589         * src/IDBCursorBackendProxy.cpp:
2590         (WebKit::IDBCursorBackendProxy::postSuccessHandlerCallback):
2591         * src/IDBCursorBackendProxy.h:
2592         (WebKit::IDBCursorBackendProxy::prefetchContinue):
2593         (WebKit::IDBCursorBackendProxy::prefetchReset):
2594         * src/IDBTransactionBackendProxy.h:
2595         (WebKit::IDBTransactionBackendProxy::addPendingEvents):
2596         * src/WebIDBCursorImpl.cpp:
2597         (WebKit::WebIDBCursorImpl::prefetchContinue):
2598         (WebKit::WebIDBCursorImpl::prefetchReset):
2599         * src/WebIDBCursorImpl.h:
2600
2601 2011-12-01  Hans Wennborg  <hans@chromium.org>
2602
2603         IndexedDB: Fix WebIDBObjectStore::createIndex() after r101602
2604         https://bugs.webkit.org/show_bug.cgi?id=73543
2605
2606         Reviewed by Tony Gentilcore.
2607
2608         r101602 introduces a new signature for createIndex(). Until Chromium
2609         has been updated to override that function, the default implementation
2610         must call the old version.
2611
2612         * public/WebIDBObjectStore.h:
2613         (WebKit::WebIDBObjectStore::createIndex):
2614
2615 2011-11-30  David Reveman  <reveman@chromium.org>
2616
2617         [Chromium] Improve tile invalidation.
2618         https://bugs.webkit.org/show_bug.cgi?id=71872
2619
2620         Reviewed by James Robinson.
2621
2622         Remove public API function WebContentLayer::invalidRect(). Add new
2623         test case to
2624         LayerChromiumTest.checkSetNeedsDisplayCausesCorrectBehavior that
2625         verifies that calling setNeedsDisplay() on a LayerChromium with
2626         empty bounds is handled correctly.
2627
2628         * public/WebContentLayer.h:
2629         * src/WebContentLayer.cpp:
2630         (WebKit::WebContentLayer::invalidateRect):
2631         * src/WebMediaPlayerClientImpl.cpp:
2632         (WebKit::WebMediaPlayerClientImpl::repaint):
2633         * tests/LayerChromiumTest.cpp:
2634
2635 2011-11-30  Takashi Toyoshima  <toyoshim@chromium.org>
2636
2637         Add didUpdateBufferedAmount callback to WebSocketClient API
2638         https://bugs.webkit.org/show_bug.cgi?id=73306
2639
2640         Reviewed by Darin Fisher.
2641
2642         * public/WebSocketClient.h: Add didUpdateBufferedAmount and default implementations for all callbacks.
2643         (WebKit::WebSocketClient::didConnect):
2644         (WebKit::WebSocketClient::didReceiveMessage):
2645         (WebKit::WebSocketClient::didReceiveBinaryData):
2646         (WebKit::WebSocketClient::didReceiveMessageError):
2647         (WebKit::WebSocketClient::didUpdateBufferedAmount):
2648         (WebKit::WebSocketClient::didStartClosingHandshake):
2649         (WebKit::WebSocketClient::didClose):
2650         * src/WebSocketImpl.cpp:
2651         (WebKit::WebSocketImpl::didUpdateBufferedAmount):
2652         * src/WebSocketImpl.h:
2653
2654 2011-11-30  Scott Violet  <sky@google.com>
2655
2656         [chromium] Expose WebLayerTreeView::setRootLayer as a call through
2657         to same method on CCLayerTreeHost.
2658         https://bugs.webkit.org/show_bug.cgi?id=73506
2659
2660         Reviewed by James Robinson.
2661
2662         * public/WebLayerTreeView.h: Adds setRootLayer.
2663         * src/WebLayerTreeView.cpp: Ditto.
2664         (WebKit::WebLayerTreeView::setRootLayer):
2665
2666 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
2667
2668         Remove an unneeded argument from FrameLoaderClient::download
2669         https://bugs.webkit.org/show_bug.cgi?id=73486
2670
2671         Reviewed by Andreas Kling.
2672
2673         * src/FrameLoaderClientImpl.cpp:
2674         (WebKit::FrameLoaderClientImpl::download):
2675         * src/FrameLoaderClientImpl.h:
2676         Updated for the change.
2677
2678 2011-11-30  Joshua Bell  <jsbell@chromium.org>
2679
2680         IndexedDB: Implement IDBIndex multientry feature
2681         https://bugs.webkit.org/show_bug.cgi?id=73232
2682
2683         Reviewed by Tony Chang.
2684
2685         Adds the multientry IDBIndex flag to the WebKit API. A version of the
2686         createIndex() method without this flag is retained until all callers
2687         are updated.
2688
2689         * public/WebIDBIndex.h:
2690         (WebKit::WebIDBIndex::multientry):
2691         * public/WebIDBObjectStore.h:
2692         (WebKit::WebIDBObjectStore::createIndex):
2693         * src/IDBIndexBackendProxy.cpp:
2694         (WebKit::IDBIndexBackendProxy::multientry):
2695         * src/IDBIndexBackendProxy.h:
2696         * src/IDBObjectStoreBackendProxy.cpp:
2697         (WebKit::IDBObjectStoreBackendProxy::createIndex):
2698         * src/IDBObjectStoreBackendProxy.h:
2699         * src/WebIDBIndexImpl.cpp:
2700         (WebKit::WebIDBIndexImpl::multientry):
2701         * src/WebIDBIndexImpl.h:
2702         * src/WebIDBObjectStoreImpl.cpp:
2703         (WebKit::WebIDBObjectStoreImpl::createIndex):
2704         * src/WebIDBObjectStoreImpl.h:
2705         (WebKit::WebIDBObjectStoreImpl::createIndex):
2706
2707 2011-11-30  David Reveman  <reveman@chromium.org>
2708
2709         [Chromium] Add support for painting into an SkPicture and then rasterizing into tile-sized chunks.
2710         https://bugs.webkit.org/show_bug.cgi?id=71388
2711
2712         Reviewed by James Robinson.
2713
2714         Track changes to texture updater.
2715
2716         * tests/TiledLayerChromiumTest.cpp:
2717         (WTF::FakeLayerTextureUpdater::Texture::Texture):
2718         (WTF::FakeLayerTextureUpdater::Texture::~Texture):
2719         (WTF::FakeLayerTextureUpdater::Texture::updateRect):
2720         (WTF::FakeLayerTextureUpdater::createTexture):
2721
2722 2011-11-30  Gregg Tavares  <gman@google.com>
2723
2724         Implement draft WEBGL_compressed_textures WebGL extension
2725         https://bugs.webkit.org/show_bug.cgi?id=72086
2726
2727         Reviewed by Kenneth Russell.
2728
2729         * public/WebGraphicsContext3D.h:
2730         * src/GraphicsContext3DChromium.cpp:
2731         * src/GraphicsContext3DPrivate.h:
2732         * tests/MockWebGraphicsContext3D.h:
2733         (WebKit::MockWebGraphicsContext3D::compressedTexImage2D):
2734         (WebKit::MockWebGraphicsContext3D::compressedTexSubImage2D):
2735
2736 2011-11-18  Nat Duca  <nduca@chromium.org>
2737
2738         [chromium] Enable threaded compositing via CCThreadProxy::hasThread only
2739         https://bugs.webkit.org/show_bug.cgi?id=70838
2740
2741         Reviewed by James Robinson.
2742
2743         * public/WebCompositor.h:
2744         * public/WebLayerTreeView.h:
2745         (WebKit::WebLayerTreeView::Settings::Settings):
2746         * public/WebSettings.h:
2747         * src/WebCompositorImpl.cpp:
2748         (WebKit::WebCompositor::initialize):
2749         (WebKit::WebCompositor::shutdown):
2750         (WebKit::WebCompositor::fromIdentifier):
2751         * src/WebKit.cpp:
2752         (WebKit::initializeWithoutV8):
2753         * src/WebLayerTreeView.cpp:
2754         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
2755         (WebKit::WebLayerTreeView::composite):
2756         * src/WebLayerTreeViewImpl.cpp:
2757         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
2758         * src/WebSettingsImpl.cpp:
2759         (WebKit::WebSettingsImpl::WebSettingsImpl):
2760         * src/WebSettingsImpl.h:
2761         * src/WebViewImpl.cpp:
2762         (WebKit::WebViewImpl::animate):
2763         (WebKit::WebViewImpl::composite):
2764         (WebKit::WebViewImpl::scheduleAnimation):
2765         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2766         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
2767         (WebKit::WebViewImpl::scheduleComposite):
2768         (WebKit::WebViewImpl::graphicsContext3D):
2769         * tests/CCLayerTreeHostTest.cpp:
2770         (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest):
2771         (WTF::CCLayerTreeHostTest::runTest):
2772
2773 2011-11-30  David Levin  <levin@chromium.org>
2774
2775         [chromium] Move didUpdateLayout from WebFrameClient to WebViewClient.
2776         https://bugs.webkit.org/show_bug.cgi?id=73415
2777
2778         Reviewed by Darin Fisher.
2779
2780         * public/WebFrameClient.h: Move didUpdateLayout to WebViewClient.
2781         * public/WebViewClient.h:
2782         (WebKit::WebViewClient::didUpdateLayout): Ditto.
2783         * src/ChromeClientImpl.cpp: Call WebViewImpl now.
2784         (WebKit::ChromeClientImpl::layoutUpdated):
2785         * src/WebViewImpl.cpp:
2786         (WebKit::WebViewImpl::layoutUpdated):
2787         * src/WebViewImpl.h: Added layoutUpdated.
2788
2789 2011-11-30  Pavel Feldman  <pfeldman@google.com>
2790
2791         Web Inspector: get rid of deferred backend->front-end commands processing.
2792         https://bugs.webkit.org/show_bug.cgi?id=73439
2793
2794         Reviewed by Yury Semikhatsky.
2795
2796         * src/WebDevToolsFrontendImpl.cpp:
2797         (WebKit::WebDevToolsFrontendImpl::WebDevToolsFrontendImpl):
2798         (WebKit::WebDevToolsFrontendImpl::frontendLoaded):
2799         (WebKit::WebDevToolsFrontendImpl::dispatchOnInspectorFrontend):
2800         * src/WebDevToolsFrontendImpl.h:
2801
2802 2011-11-30  Michael Nordman  <michaeln@google.com>
2803
2804         [chromium] WebSQLDatabase could use some better error reporting.
2805         Instruments the database classes to report errors a the DatabaseObserver.
2806         https://bugs.webkit.org/show_bug.cgi?id=73258
2807
2808         Reviewed by David Levin.
2809
2810         * public/WebDatabase.h:
2811         * public/WebDatabaseObserver.h:
2812         (WebKit::WebDatabaseObserver::reportOpenDatabaseResult):
2813         (WebKit::WebDatabaseObserver::reportChangeVersionResult):
2814         (WebKit::WebDatabaseObserver::reportStartTransactionResult):
2815         (WebKit::WebDatabaseObserver::reportCommitTransactionResult):
2816         (WebKit::WebDatabaseObserver::reportExecuteStatementResult):
2817         (WebKit::WebDatabaseObserver::reportVacuumDatabaseResult):
2818         * src/DatabaseObserver.cpp:
2819         (WebCore::DatabaseObserver::reportOpenDatabaseResult):
2820         (WebCore::DatabaseObserver::reportChangeVersionResult):
2821         (WebCore::DatabaseObserver::reportStartTransactionResult):
2822         (WebCore::DatabaseObserver::reportCommitTransactionResult):
2823         (WebCore::DatabaseObserver::reportExecuteStatementResult):
2824         (WebCore::DatabaseObserver::reportVacuumDatabaseResult):
2825         * src/WebDatabase.cpp:
2826         (WebKit::WebDatabase::isSyncDatabase):
2827
2828 2011-11-30  Sheriff Bot  <webkit.review.bot@gmail.com>
2829
2830         Unreviewed, rolling out r101440 and r101442.
2831         http://trac.webkit.org/changeset/101440
2832         http://trac.webkit.org/changeset/101442
2833         https://bugs.webkit.org/show_bug.cgi?id=73429
2834
2835         multiple crashes on layout tests (Requested by hayato on
2836         #webkit).
2837
2838         * WebKit.gyp:
2839         * WebKit.gypi:
2840         * public/WebCompositor.h:
2841         * public/WebCompositorClient.h:
2842         * public/WebCompositorInputHandler.h: Removed.
2843         * public/WebCompositorInputHandlerClient.h: Removed.
2844         * public/WebLayerTreeView.h:
2845         (WebKit::WebLayerTreeView::Settings::Settings):
2846         * public/WebSettings.h:
2847         * src/WebCompositorImpl.cpp:
2848         (WebCore::CCInputHandler::create):
2849         (WebKit::WebCompositor::setThread):
2850         (WebKit::WebCompositor::fromIdentifier):
2851         (WebKit::WebCompositorImpl::fromIdentifier):
2852         (WebKit::WebCompositorImpl::WebCompositorImpl):
2853         (WebKit::WebCompositorImpl::~WebCompositorImpl):
2854         (WebKit::WebCompositorImpl::setClient):
2855         (WebKit::WebCompositorImpl::handleInputEvent):
2856         (WebKit::WebCompositorImpl::identifier):
2857         (WebKit::WebCompositorImpl::willDraw):
2858         * src/WebCompositorImpl.h:
2859         (WebKit::WebCompositorImpl::create):
2860         * src/WebCompositorInputHandlerImpl.cpp: Removed.
2861         * src/WebCompositorInputHandlerImpl.h: Removed.
2862         * src/WebKit.cpp:
2863         (WebKit::initializeWithoutV8):
2864         (WebKit::shutdown):
2865         * src/WebLayerTreeView.cpp:
2866         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
2867         (WebKit::WebLayerTreeView::composite):
2868         * src/WebLayerTreeViewImpl.cpp:
2869         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
2870         * src/WebSettingsImpl.cpp:
2871         (WebKit::WebSettingsImpl::WebSettingsImpl):
2872         (WebKit::WebSettingsImpl::setUseThreadedCompositor):
2873         * src/WebSettingsImpl.h:
2874         (WebKit::WebSettingsImpl::useThreadedCompositor):
2875         * src/WebViewImpl.cpp:
2876         (WebKit::WebViewImpl::animate):
2877         (WebKit::WebViewImpl::composite):
2878         (WebKit::WebViewImpl::scheduleAnimation):
2879         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2880         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
2881         (WebKit::WebViewImpl::scheduleComposite):
2882         (WebKit::WebViewImpl::graphicsContext3D):
2883         * tests/CCLayerTreeHostTest.cpp:
2884         (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest):
2885         (WTF::CCLayerTreeHostTest::onEndTest):
2886         (WTF::CCLayerTreeHostTest::runTest):
2887         (WTF::CCLayerTreeHostTest::doBeginTest):
2888         (WTF::CCLayerTreeHostTestShortlived1::beginTest):
2889         (WTF::CCLayerTreeHostTestShortlived2::beginTest):
2890         (WTF::CCLayerTreeHostTestShortlived3::beginTest):
2891         (WTF::CCLayerTreeHostTestCommitingWithContinuousRedraw::beginTest):
2892         (WTF::CCLayerTreeHostTestOpacityChange::afterTest):
2893         * tests/WebCompositorImplTest.cpp: Renamed from Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp.
2894
2895 2011-11-30  Daniel Sievers  <sievers@chromium.org>
2896
2897         [Chromium] Avoid ASSERT_NOT_REACHED() from creating FBO with content texture of size 0
2898         https://bugs.webkit.org/show_bug.cgi?id=73266
2899
2900         Reviewed by James Robinson.
2901
2902         * tests/CCLayerTreeHostCommonTest.cpp:
2903         (WebCore::TEST):
2904
2905 2011-11-30  Pavel Feldman  <pfeldman@google.com>
2906
2907         Web Inspector: do not report worker-related events unless inspector agent is enabled.
2908         https://bugs.webkit.org/show_bug.cgi?id=73411
2909
2910         Reviewed by Yury Semikhatsky.
2911
2912         * src/WebDevToolsAgentImpl.cpp:
2913         (WebKit::WebDevToolsAgent::disconnectEventAsText):
2914
2915 2011-11-30  Fady Samuel  <fsamuel@chromium.org>
2916
2917         [Chromium] Fix broken DRT build for Aura Linux
2918         https://bugs.webkit.org/show_bug.cgi?id=72667
2919
2920         Reviewed by Tony Chang.
2921
2922         * WebKit.gyp:
2923
2924 2011-11-29  Nat Duca  <nduca@chromium.org>
2925
2926         Unreviewed. Fix clang build by using raw pointers instead of static OwnPtrs
2927         for WebCompositor managment.
2928
2929         * src/WebCompositorImpl.cpp:
2930         (WebKit::WebCompositorImpl::initialize):
2931         (WebKit::WebCompositorImpl::shutdown):
2932         * src/WebCompositorImpl.h:
2933
2934 2011-11-18  Nat Duca  <nduca@chromium.org>
2935
2936         [chromium] Enable threaded compositing via CCThreadProxy::hasThread only
2937         https://bugs.webkit.org/show_bug.cgi?id=70838
2938
2939         Reviewed by James Robinson.
2940
2941         * public/WebCompositor.h:
2942         * public/WebLayerTreeView.h:
2943         (WebKit::WebLayerTreeView::Settings::Settings):
2944         * public/WebSettings.h:
2945         * src/WebCompositorImpl.cpp:
2946         (WebKit::WebCompositor::initialize):
2947         (WebKit::WebCompositor::shutdown):
2948         (WebKit::WebCompositor::fromIdentifier):
2949         * src/WebKit.cpp:
2950         (WebKit::initializeWithoutV8):
2951         * src/WebLayerTreeView.cpp:
2952         (WebKit::WebLayerTreeView::Settings::operator CCSettings):
2953         (WebKit::WebLayerTreeView::composite):
2954         * src/WebLayerTreeViewImpl.cpp:
2955         (WebKit::WebLayerTreeViewImpl::createLayerTreeHostContext3D):
2956         * src/WebSettingsImpl.cpp:
2957         (WebKit::WebSettingsImpl::WebSettingsImpl):
2958         * src/WebSettingsImpl.h:
2959         * src/WebViewImpl.cpp:
2960         (WebKit::WebViewImpl::animate):
2961         (WebKit::WebViewImpl::composite):
2962         (WebKit::WebViewImpl::scheduleAnimation):
2963         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2964         (WebKit::WebViewImpl::createLayerTreeHostContext3D):
2965         (WebKit::WebViewImpl::scheduleComposite):
2966         (WebKit::WebViewImpl::graphicsContext3D):
2967         * tests/CCLayerTreeHostTest.cpp:
2968         (WTF::CCLayerTreeHostTest::CCLayerTreeHostTest):
2969         (WTF::CCLayerTreeHostTest::runTest):
2970
2971 2011-11-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2972
2973         Unreviewed, rolling out r101418.
2974         http://trac.webkit.org/changeset/101418
2975         https://bugs.webkit.org/show_bug.cgi?id=73372
2976
2977         Chromium renderer crashes with ENABLE(MUTATION_OBSERVERS)
2978         (Requested by aklein on #webkit).
2979
2980         * public/platform/WebThread.h:
2981         * src/WebKit.cpp:
2982         (WebKit::initialize):
2983         (WebKit::shutdown):
2984
2985 2011-11-29  Dirk Pranke  <dpranke@chromium.org>
2986
2987         add webkit_user_agent to DRT and webkit_unit_tests
2988         https://bugs.webkit.org/show_bug.cgi?id=73362
2989
2990         Reviewed by Tony Chang.
2991
2992         In preparation for building webkit_glue as a separate component,
2993         we need to explicitly declare DRT's and webkit_unit_tests'
2994         dependencies on webkit_user_agent.
2995
2996         * WebKit.gyp:
2997
2998 2011-11-28  Adam Klein  <adamk@chromium.org>
2999
3000         [chromium] WebKitMutationObserver::deliverAllMutations should be exposed through the Chromium API
3001         https://bugs.webkit.org/show_bug.cgi?id=71242
3002
3003         Reviewed by Darin Fisher.
3004
3005         Add addTaskObserver and removeTaskObserver to WebThread,
3006         along with a new WebThread::TaskObserver interface.
3007
3008         For mutation observers, add a TaskObserver to the main thread
3009         to deliver mutations after each task runs.
3010
3011         The Chromium side of this patch is http://codereview.chromium.org/8586038/
3012
3013         * public/platform/WebThread.h:
3014         (WebKit::WebThread::TaskObserver::~TaskObserver):
3015         * src/WebKit.cpp:
3016         (WebKit::initialize):
3017         (WebKit::shutdown):
3018
3019 2011-11-29  Pavel Feldman  <pfeldman@google.com>
3020
3021         Web Inspector: split Preferences into Preferences and Capabilities.
3022         https://bugs.webkit.org/show_bug.cgi?id=73321
3023
3024         Reviewed by Yury Semikhatsky.
3025
3026         * src/js/DevTools.js:
3027
3028 2011-11-29  Jing Zhao  <jingzhao@chromium.org>
3029
3030         Assertion fails when opening two popup menus
3031         https://bugs.webkit.org/show_bug.cgi?id=73189
3032
3033         Reviewed by Kent Tamura.
3034
3035         By using element.dispatchEvent(), a user written script can open two
3036         popup menus, which causes the assertion in WebViewImpl::popupOpened()
3037         fail.
3038
3039         Check if there is an opened popup menu before opening a popup menu.
3040
3041         * src/WebViewImpl.cpp:
3042         (WebKit::WebViewImpl::popupOpened):
3043
3044 2011-11-28  David Grogan  <dgrogan@chromium.org>
3045
3046         WebWorkerRunLoop wrapper around WorkerRunLoop
3047         https://bugs.webkit.org/show_bug.cgi?id=71757
3048
3049         This allows the embedder to post tasks to webcore-created worker
3050         threads.  WebWorkerRunLoop is a thin wrapper that just holds a
3051         WorkerRunLoop*.  As such, it is not heap allocated and can be copied.
3052
3053         Reviewed by Darin Fisher.
3054
3055         * WebKit.gyp: Added WebWorkerRunLoop.{cpp,h}
3056
3057         * public/WebWorkerRunLoop.h: Added. Interface the embedder will use to
3058         post Tasks to worker threads created in WebCore.
3059         (WebKit::WebWorkerRunLoop::Task::~Task):
3060         (WebKit::operator==): These are the operators necessary to allow
3061         WebWorkerRunLoop to be used as a key in a std::map using the value of
3062         the underlying WebCore::WorkerRunLoop* for the meaningful comparisons.
3063         (WebKit::operator<):
3064
3065         * public/platform/WebKitPlatformSupport.h: Stubs for the embedder to
3066         implement.
3067         (WebKit::WebKitPlatformSupport::didStartWorkerRunLoop):
3068         (WebKit::WebKitPlatformSupport::didStopWorkerRunLoop):
3069
3070         * src/PlatformSupport.cpp: Wrap incoming WorkerRunLoop objects in
3071         WebWorkerRunLoopImpl objects, forward them to WebKitPlatformSupport.
3072         (WebCore::PlatformSupport::didStartWorkerRunLoop):
3073         (WebCore::PlatformSupport::didStopWorkerRunLoop):
3074
3075         * src/WebWorkerRunLoop.cpp: Added.
3076         (WebKit::WebWorkerRunLoop::WebWorkerRunLoop): Store incoming
3077         WorkerRunLoop pointer.
3078         (WebKit::WebWorkerRunLoop::postTask): Wrap incoming Task in
3079         ScriptExecutionContext::Task, post to stored WorkerRunLoop.
3080         (WebKit::WebWorkerRunLoop::equals): Support for the operators mentioned
3081         above.
3082         (WebKit::WebWorkerRunLoop::lessThan): Ditto.
3083
3084 2011-11-29  Roland Steiner  <rolandsteiner@chromium.org>
3085
3086         <style scoped>: add ENABLE(STYLE_SCOPED) flag to WebKit
3087         https://bugs.webkit.org/show_bug.cgi?id=72848
3088
3089         Reviewed by Dimitri Glazkov.
3090
3091         * features.gypi:
3092
3093 2011-11-28  Shawn Singh  <shawnsingh@chromium.org>
3094
3095         [chromium] Create CCDamageTracker class to determine regions of change for a surface.
3096         https://bugs.webkit.org/show_bug.cgi?id=72520
3097
3098         Reviewed by James Robinson.
3099
3100         * WebKit.gypi:
3101         * tests/CCDamageTrackerTest.cpp: Added.
3102         (WebKitTests::executeCalculateDrawTransformsAndVisibility):
3103         (WebKitTests::emulateDrawingOneFrame):
3104         (WebKitTests::createTestTreeWithOneSurface):
3105         (WebKitTests::createTestTreeWithTwoSurfaces):
3106         (WebKitTests::createAndSetUpTestTreeWithOneSurface):
3107         (WebKitTests::createAndSetUpTestTreeWithTwoSurfaces):
3108         (WebKitTests::TEST_F):
3109         * tests/CCLayerImplTest.cpp:
3110         (WebCore::TEST):
3111         * tests/CCLayerTreeHostCommonTest.cpp:
3112         (WebCore::TEST):
3113         * tests/CCLayerTreeTestCommon.h: Added.
3114         * tests/CCRenderSurfaceTest.cpp:
3115         (WebCore::TEST):
3116         * tests/LayerChromiumTest.cpp:
3117
3118 2011-11-28  Jon Lee  <jonlee@apple.com>
3119
3120         Possible fix for test failures in r101307.
3121
3122         * src/WebViewImpl.cpp:
3123         (WebKit::WebViewImpl::WebViewImpl):
3124
3125 2011-11-28  Jon Lee  <jonlee@apple.com>
3126
3127         Create skeleton framework for notifications support in WK2
3128         https://bugs.webkit.org/show_bug.cgi?id=73253
3129         <rdar://problem/10356943>
3130
3131         Reviewed by Sam Weinig.
3132
3133         Remove notificationPresenter() from the chrome client, since it is now managed by
3134         the notification controller.
3135
3136         * src/ChromeClientImpl.cpp:
3137         * src/ChromeClientImpl.h:
3138         * src/WebNotification.cpp:
3139         (WebKit::WebNotification::title): Refactoring with NotificationContents conversion to struct.
3140         (WebKit::WebNotification::body): Ditto.
3141         * src/WebViewImpl.cpp:
3142         (WebKit::WebViewImpl::WebViewImpl): Set notification client in web view's page clients.
3143
3144 2011-11-28  Beth Dakin  <bdakin@apple.com>
3145
3146         Speculative Chromium build fix.
3147
3148         * src/ScrollbarGroup.cpp:
3149         (WebKit::ScrollbarGroup::scrollbarStyleChanged):
3150         * src/ScrollbarGroup.h:
3151
3152 2011-11-28  Dana Jansens  <danakj@chromium.org>
3153
3154         FloatQuad::isRectilinear() returns false for 180degree rotations
3155         https://bugs.webkit.org/show_bug.cgi?id=73040
3156
3157         Reviewed by James Robinson.
3158
3159         * WebKit.gypi:
3160         * tests/FloatQuadTest.cpp: Added.
3161         (WebCore::TEST):
3162
3163 2011-11-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3164
3165         Unreviewed, rolling out r101273.
3166         http://trac.webkit.org/changeset/101273
3167         https://bugs.webkit.org/show_bug.cgi?id=73244
3168
3169         multiple test failures and timeouts (Requested by tony^work on
3170         #webkit).
3171
3172         * WebKit.gyp:
3173
3174 2011-11-28  Fady Samuel  <fsamuel@chromium.org>
3175
3176         [Chromium] Fix broken DRT build for Aura Linux
3177         https://bugs.webkit.org/show_bug.cgi?id=72667
3178
3179         Reviewed by Tony Chang.
3180
3181         * WebKit.gyp:
3182
3183 2011-11-28  Adam Barth  <abarth@webkit.org>
3184
3185         [Chromium] Move "final" batch of headers into public/platform
3186         https://bugs.webkit.org/show_bug.cgi?id=73198
3187
3188         Reviewed by Darin Fisher.
3189
3190         This patch moves another group of headers into the platform directory.
3191         I found these headers by reading through the list of headers and
3192         coorelating them with WebCore concepts.  This patch doesn't move all
3193         the APIs that coorespond to WebCore platform concepts because some,
3194         such as WebFontCache, are not used to support the WebCore platform but
3195         rather to provide the embedder access to the WebCore concept.  This
3196         patch should be the last bulk move of headers.
3197
3198         There are two main groups of headers that make up the bulk of this
3199         patch:
3200
3201         1) URLLoader-related headers.
3202         2) Geometry-related headers.
3203
3204         * public/WebArrayBufferView.h: Replaced.
3205         * public/WebBlobData.h: Replaced.
3206         * public/WebCookie.h: Replaced.
3207         * public/WebExternalTextureLayer.h: Update include.
3208         * public/WebFloatPoint.h: Replaced.
3209         * public/WebFloatQuad.h: Replaced.
3210         * public/WebFloatRect.h: Replaced.
3211         * public/WebFrameClient.h: Update include.
3212         * public/WebHTTPBody.h: Replaced.
3213         * public/WebHTTPHeaderVisitor.h: Replaced.
3214         * public/WebHTTPLoadInfo.h: Replaced.
3215         * public/WebThreadSafeData.h: Replaced.
3216         * public/WebURLError.h: Replaced.
3217         * public/WebURLLoadTiming.h: Replaced.
3218         * public/WebURLLoaderClient.h: Replaced.
3219         * public/WebURLRequest.h: Replaced.
3220         * public/WebURLResponse.h: Replaced.
3221         * public/platform/WebArrayBufferView.h: Copied from Source/WebKit/chromium/public/WebArrayBufferView.h.
3222         * public/platform/WebBlobData.h: Copied from Source/WebKit/chromium/public/WebBlobData.h.
3223         * public/platform/WebCookie.h: Copied from Source/WebKit/chromium/public/WebCookie.h.
3224         * public/platform/WebFloatPoint.h: Copied from Source/WebKit/chromium/public/WebFloatPoint.h.
3225         * public/platform/WebFloatQuad.h: Copied from Source/WebKit/chromium/public/WebFloatQuad.h.
3226         * public/platform/WebFloatRect.h: Copied from Source/WebKit/chromium/public/WebFloatRect.h.
3227         * public/platform/WebHTTPBody.h: Copied from Source/WebKit/chromium/public/WebHTTPBody.h.
3228         * public/platform/WebHTTPHeaderVisitor.h: Copied from Source/WebKit/chromium/public/WebHTTPHeaderVisitor.h.
3229         * public/platform/WebHTTPLoadInfo.h: Copied from Source/WebKit/chromium/public/WebHTTPLoadInfo.h.
3230         * public/platform/WebThreadSafeData.h: Copied from Source/WebKit/chromium/public/WebThreadSafeData.h.
3231         * public/platform/WebURLError.h: Copied from Source/WebKit/chromium/public/WebURLError.h.
3232         * public/platform/WebURLLoadTiming.h: Copied from Source/WebKit/chromium/public/WebURLLoadTiming.h.
3233         * public/platform/WebURLLoader.h: Remove FIXME.
3234         * public/platform/WebURLLoaderClient.h: Copied from Source/WebKit/chromium/public/WebURLLoaderClient.h.
3235         * public/platform/WebURLRequest.h: Copied from Source/WebKit/chromium/public/WebURLRequest.h.
3236         * public/platform/WebURLResponse.h: Copied from Source/WebKit/chromium/public/WebURLResponse.h.
3237
3238 2011-11-25  Yury Semikhatsky  <yurys@chromium.org>
3239
3240         [Chromium] Web Inspector: delete WebDevToolsAgent::frontendLoaded
3241         https://bugs.webkit.org/show_bug.cgi?id=73131
3242
3243         Now that the method is not used in Chromium we can delete it.
3244
3245         Reviewed by Pavel Feldman.
3246
3247         * public/WebDevToolsAgent.h:
3248         * src/WebDevToolsAgentImpl.cpp:
3249         * src/WebDevToolsAgentImpl.h:
3250
3251 2011-11-28  Adam Barth  <abarth@webkit.org>
3252
3253         Update some sloppy includes.
3254
3255         * public/platform/linux/WebSandboxSupport.h:
3256         * public/platform/win/WebThemeEngine.h:
3257
3258 2011-11-28  Adam Barth  <abarth@webkit.org>
3259
3260         More forwarding headers.  Turns out I forgot to svn add them.  :(
3261
3262         * public/android/WebSandboxSupport.h: Added.
3263         * public/linux/WebFontFamily.h: Added.
3264         * public/linux/WebSandboxSupport.h: Added.
3265         * public/mac/WebSandboxSupport.h: Added.
3266         * public/win/WebSandboxSupport.h: Added.
3267
3268 2011-11-28  Adam Barth  <abarth@webkit.org>
3269
3270         Add missing forwaring headers.
3271
3272         * public/android/WebThemeEngine.h: Added.
3273         * public/linux/WebThemeEngine.h: Added.
3274         * public/mac/WebThemeEngine.h: Added.
3275         * public/win/WebThemeEngine.h: Added.
3276
3277 2011-11-27  Yury Semikhatsky  <yurys@chromium.org>
3278
3279         Unreviewed. Revert r101226.
3280
3281         * DEPS:
3282
3283 2011-11-27  Yury Semikhatsky  <yurys@chromium.org>
3284
3285         Unreviewed. Update Chromium revision.
3286
3287         * DEPS:
3288
3289 2011-11-24  Adam Barth  <abarth@webkit.org>
3290
3291         [Chromium] Move the next traunch of headers into public/platform
3292         https://bugs.webkit.org/show_bug.cgi?id=73073
3293
3294         Reviewed by Darin Fisher.
3295
3296         These headers are all the forward-declared classes in
3297         WebKitPlatformSupport (and their dependencies) that wrap concepts in
3298         WebCore/platform.
3299
3300         There are a number of forward-declared classes in WebKitPlatformSupport
3301         that coorespond to WebCore concepts outside of WebCore/platform.  I've
3302         marked these with FIXME comments.  We'll need to study them in more
3303         detail to see whether they should move into WebCore/platform or whether
3304         we need to move them out of WebKitPlaformSupport.h.  (One possible
3305         resolution might be to introducing a WebKitClientSupport.h to hold
3306         statics for client concepts).
3307
3308         * public/WebBlobRegistry.h: Replaced.
3309         * public/WebCanvas.h: Replaced.
3310         * public/WebClipboard.h: Replaced.
3311         * public/WebColor.h: Replaced.
3312         * public/WebColorName.h: Replaced.
3313         * public/WebCommonWorkerClient.h:
3314         * public/WebCompositionUnderline.h:
3315         * public/WebContentLayerClient.h:
3316         * public/WebContextMenuData.h:
3317         * public/WebCookieJar.h: Replaced.
3318         * public/WebCursorInfo.h:
3319         * public/WebDragData.h: Replaced.
3320         * public/WebFileSystem.h: Replaced.
3321         * public/WebFloatQuad.h:
3322         * public/WebFont.h:
3323         * public/WebFrame.h:
3324         * public/WebFrameClient.h:
3325         * public/WebGeolocationController.h:
3326         * public/WebGeolocationPermissionRequestManager.h:
3327         * public/WebGraphicsContext3D.h: Replaced.
3328         * public/WebHTTPBody.h:
3329         * public/WebImage.h: Replaced.
3330         * public/WebImageDecoder.h:
3331         * public/WebLayer.h:
3332         * public/WebMediaPlayer.h:
3333         * public/WebMediaStreamDescriptor.h: Replaced.
3334         * public/WebMediaStreamSource.h:
3335         * public/WebMimeRegistry.h: Replaced.
3336         * public/WebNonCopyable.h: Replaced.
3337         * public/WebPeerConnectionHandler.h: Replaced.
3338         * public/WebPeerConnectionHandlerClient.h: Replaced.
3339         * public/WebPlugin.h:
3340         * public/WebPoint.h: Replaced.
3341         * public/WebRect.h: Replaced.
3342         * public/WebRegularExpression.h:
3343         * public/WebScreenInfo.h:
3344         * public/WebScrollbar.h:
3345         * public/WebSize.h: Replaced.
3346         * public/WebSocketStreamError.h: Replaced.
3347         * public/WebSocketStreamHandle.h: Replaced.
3348         * public/WebSocketStreamHandleClient.h: Replaced.
3349         * public/WebThread.h: Replaced.
3350         * public/WebTouchPoint.h:
3351         * public/WebURLLoader.h: Replaced.
3352         * public/WebWidget.h:
3353         * public/WebWidgetClient.h:
3354         * public/android/WebSandboxSupport.h: Removed.
3355         * public/android/WebThemeEngine.h: Removed.
3356         * public/linux/WebFontFamily.h: Removed.
3357         * public/linux/WebSandboxSupport.h: Removed.
3358         * public/linux/WebThemeEngine.h: Removed.
3359         * public/mac/WebSandboxSupport.h: Removed.
3360         * public/mac/WebThemeEngine.h: Removed.
3361         * public/platform/WebBlobRegistry.h: Copied from Source/WebKit/chromium/public/WebBlobRegistry.h.
3362         * public/platform/WebCanvas.h: Copied from Source/WebKit/chromium/public/WebCanvas.h.
3363         * public/platform/WebClipboard.h: Copied from Source/WebKit/chromium/public/WebClipboard.h.
3364         * public/platform/WebColor.h: Copied from Source/WebKit/chromium/public/WebColor.h.
3365         * public/platform/WebColorName.h: Copied from Source/WebKit/chromium/public/WebColorName.h.
3366         * public/platform/WebCookieJar.h: Copied from Source/WebKit/chromium/public/WebCookieJar.h.
3367         * public/platform/WebDragData.h: Copied from Source/WebKit/chromium/public/WebDragData.h.
3368         * public/platform/WebFileSystem.h: Copied from Source/WebKit/chromium/public/WebFileSystem.h.
3369         * public/platform/WebGraphicsContext3D.h: Copied from Source/WebKit/chromium/public/WebGraphicsContext3D.h.
3370         * public/platform/WebImage.h: Copied from Source/WebKit/chromium/public/WebImage.h.
3371         * public/platform/WebKitPlatformSupport.h:
3372         * public/platform/WebMediaStreamDescriptor.h: Copied from Source/WebKit/chromium/public/WebMediaStreamDescriptor.h.
3373         * public/platform/WebMimeRegistry.h: Copied from Source/WebKit/chromium/public/WebMimeRegistry.h.
3374         * public/platform/WebNonCopyable.h: Copied from Source/WebKit/chromium/public/WebNonCopyable.h.
3375         * public/platform/WebPeerConnectionHandler.h: Copied from Source/WebKit/chromium/public/WebPeerConnectionHandler.h.
3376         * public/platform/WebPeerConnectionHandlerClient.h: Copied from Source/WebKit/chromium/public/WebPeerConnectionHandlerClient.h.
3377         * public/platform/WebPoint.h: Copied from Source/WebKit/chromium/public/WebPoint.h.
3378         * public/platform/WebRect.h: Copied from Source/WebKit/chromium/public/WebRect.h.
3379         * public/platform/WebSize.h: Copied from Source/WebKit/chromium/public/WebSize.h.
3380         * public/platform/WebSocketStreamError.h: Copied from Source/WebKit/chromium/public/WebSocketStreamError.h.
3381         * public/platform/WebSocketStreamHandle.h: Copied from Source/WebKit/chromium/public/WebSocketStreamHandle.h.
3382         * public/platform/WebSocketStreamHandleClient.h: Copied from Source/WebKit/chromium/public/WebSocketStreamHandleClient.h.
3383         * public/platform/WebThread.h: Copied from Source/WebKit/chromium/public/WebThread.h.
3384         * public/platform/WebURLLoader.h: Copied from Source/WebKit/chromium/public/WebURLLoader.h.
3385         * public/platform/android: Added.
3386         * public/platform/android/WebSandboxSupport.h: Copied from Source/WebKit/chromium/public/android/WebSandboxSupport.h.
3387         * public/platform/android/WebThemeEngine.h: Copied from Source/WebKit/chromium/public/android/WebThemeEngine.h.
3388         * public/platform/linux: Added.
3389         * public/platform/linux/WebFontFamily.h: Copied from Source/WebKit/chromium/public/linux/WebFontFamily.h.
3390         * public/platform/linux/WebSandboxSupport.h: Copied from Source/WebKit/chromium/public/linux/WebSandboxSupport.h.
3391         * public/platform/linux/WebThemeEngine.h: Copied from Source/WebKit/chromium/public/linux/WebThemeEngine.h.
3392         (WebKit::WebThemeEngine::paint):
3393         * public/platform/mac: Added.
3394         * public/platform/mac/WebSandboxSupport.h: Copied from Source/WebKit/chromium/public/mac/WebSandboxSupport.h.
3395         * public/platform/mac/WebThemeEngine.h: Copied from Source/WebKit/chromium/public/mac/WebThemeEngine.h.
3396         (WebKit::WebThemeEngine::paintScrollbarThumb):
3397         * public/platform/win: Added.
3398         * public/platform/win/WebSandboxSupport.h: Copied from Source/WebKit/chromium/public/win/WebSandboxSupport.h.
3399         * public/platform/win/WebThemeEngine.h: Copied from Source/WebKit/chromium/public/win/WebThemeEngine.h.
3400         * public/win/WebSandboxSupport.h: Removed.
3401         * public/win/WebThemeEngine.h: Removed.
3402
3403 2011-11-27  Tommy Widenflycht  <tommyw@google.com>
3404
3405         [chromium] MediaStream API: Updating the licences to the correct one.
3406         https://bugs.webkit.org/show_bug.cgi?id=73129
3407
3408         Replacing the incorrect ones I have submitted with the correct ones.
3409
3410         Reviewed by Darin Fisher.
3411
3412         * bridge/PeerConnectionHandler.cpp:
3413         * bridge/PeerConnectionHandlerInternal.cpp:
3414         * bridge/PeerConnectionHandlerInternal.h:
3415         * public/WebMediaStreamDescriptor.h:
3416         * public/WebMediaStreamRegistry.h:
3417         * public/WebMediaStreamSource.h:
3418         * public/WebPeerConnectionHandler.h:
3419         * public/WebPeerConnectionHandlerClient.h:
3420         * src/WebMediaStreamDescriptor.cpp:
3421         * src/WebMediaStreamRegistry.cpp:
3422         * src/WebMediaStreamSource.cpp:
3423
3424 2011-11-26  Pavel Feldman  <pfeldman@google.com>
3425
3426         Web Inspector: remove disconnectFromBackend from the protocol.
3427         https://bugs.webkit.org/show_bug.cgi?id=73127
3428
3429         We should instead use InspectorClient::closeInspectorFrontend that would
3430         be closing the front-end window.
3431
3432         Reviewed by Yury Semikhatsky.
3433
3434         * src/InspectorClientImpl.cpp:
3435         (WebKit::InspectorClientImpl::closeInspectorFrontend):
3436         * src/InspectorClientImpl.h:
3437         * src/InspectorFrontendClientImpl.cpp:
3438         * src/InspectorFrontendClientImpl.h:
3439         * src/WebDevToolsAgentImpl.cpp:
3440         (WebKit::WebDevToolsAgentImpl::closeInspectorFrontend):
3441         (WebKit::WebDevToolsAgent::disconnectEventAsText):
3442         * src/WebDevToolsAgentImpl.h:
3443
3444 2011-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
3445
3446         Unreviewed, rolling out r101193.
3447         http://trac.webkit.org/changeset/101193
3448         https://bugs.webkit.org/show_bug.cgi?id=73158
3449
3450         Breaks Windows and Qt minimal. (Requested by pfeldman on
3451         #webkit).
3452
3453         * src/InspectorClientImpl.cpp:
3454         * src/InspectorClientImpl.h: