Source/WebKit/chromium: Use new type-specific WebGestureEvent fields
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-09-05  Rick Byers  <rbyers@chromium.org>
2
3         Use new type-specific WebGestureEvent fields
4         https://bugs.webkit.org/show_bug.cgi?id=95573
5
6         Reviewed by James Robinson.
7
8         Chromium has been updated to store gesture-type specific details in the
9         new WebGestureEvent fields (crrev.com/152508, crrev.com/154815 and
10         crrev.com/154959), so we can now rely on them.
11
12         * src/WebCompositorInputHandlerImpl.cpp:
13         Update the compositor scroll, pinch and fling handling to use these new fields.
14         (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
15         (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
16         * src/WebInputEventConversion.cpp:
17         Update PlatformGestureEvent/WebGestureEvent conversion to use the new
18         fields, storing into the existing overloaded PlatformGestureEvent
19         fields (which will be cleaned up in my next CL).
20         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
21         (WebKit::WebGestureEventBuilder::WebGestureEventBuilder):
22         * src/WebViewImpl.cpp:
23         (WebKit::WebViewImpl::handleGestureEvent):
24         Update fling scrolling implementation for correct location of velocity.
25         * tests/WebCompositorInputHandlerImplTest.cpp:
26         (WebKit::TEST_F):
27         Update tests to use the new fields.
28
29
30 2012-09-05  James Robinson  <jamesr@chromium.org>
31
32         [chromium] Test WebSolidColorLayer in WebLayerTest.Client unit test
33         https://bugs.webkit.org/show_bug.cgi?id=95819
34
35         Reviewed by Adam Barth.
36
37         This unit test doesn't do all that much, but it does verify that WebSolidColorLayer doesn't completely explode
38         upon use and also makes sure that the WebSolidColorLayer::create() symbol is referenced and not dropped from
39         webkit.dll in the component build.
40
41         * tests/WebLayerTest.cpp:
42
43 2012-09-05  Victoria Kirst  <vrk@chromium.org>
44
45         Add the duration attribute to MediaSource
46         https://bugs.webkit.org/show_bug.cgi?id=95149
47
48         Reviewed by Eric Carlson.
49
50         Add support for the duration attribute recently added to the MediaSource spec.
51         http://dev.w3.org/html5/spec/media-elements.html#dom-media-duration
52
53         * public/WebMediaPlayer.h:
54         (WebKit::WebMediaPlayer::sourceSetDuration): Add empty definition.
55         * src/WebMediaPlayerClientImpl.cpp:
56         (WebKit::WebMediaPlayerClientImpl::sourceSetDuration): Forward call to m_webMediaPlayer.
57         (WebKit):
58         * src/WebMediaPlayerClientImpl.h:
59         (WebMediaPlayerClientImpl):
60
61 2012-09-05  Mihai Parparita  <mihaip@chromium.org>
62
63         [Chromium] history.{push,replace}State should no longer be V8EnabledAtRuntime
64         https://bugs.webkit.org/show_bug.cgi?id=95865
65
66         Reviewed by Darin Fisher.
67
68         Make WebRuntimeFeatures::{enablePushState,isPushStateEnabled} into
69         no-ops.
70
71         * public/WebRuntimeFeatures.h:
72         (WebRuntimeFeatures):
73         * src/WebRuntimeFeatures.cpp:
74         (WebKit::WebRuntimeFeatures::enablePushState):
75         (WebKit::WebRuntimeFeatures::isPushStateEnabled):
76
77 2012-09-05  Mark Pilgrim  <pilgrim@chromium.org>
78
79         [Chromium] Remove getRenderStyleForStrike from PlatformSupport
80         https://bugs.webkit.org/show_bug.cgi?id=95363
81
82         Reviewed by Adam Barth.
83
84         Part of a refactoring series. See tracking bug 82948.
85
86         * public/linux/WebFontInfo.h:
87         * public/linux/WebFontRenderStyle.h:
88         * src/PlatformSupport.cpp:
89         (WebCore):
90
91 2012-09-05  Ilya Tikhonovsky  <loislo@chromium.org>
92
93         Unreviewed: WebInspector: remove accidentally committed speed test.
94
95         * tests/MemoryInstrumentationTest.cpp:
96
97 2012-09-05  Sami Kyostila  <skyostil@chromium.org>
98
99         [chromium] Wire up scrollable sublayers in ScrollingCoordinatorChromium
100         https://bugs.webkit.org/show_bug.cgi?id=95679
101
102         Reviewed by James Robinson.
103
104         Introduce WebLayerScrollClient for getting notified about scroll events targeting a WebLayer.
105
106         * src/WebLayerImpl.cpp:
107         (WebKit::WebLayerImpl::setMaxScrollPosition):
108         (WebKit):
109         (WebKit::WebLayerImpl::setScrollClient):
110         (WebKit::WebLayerImpl::scrollBy):
111         * src/WebLayerImpl.h:
112         (WebLayerImpl):
113         * tests/CCLayerTreeHostTest.cpp:
114         * tests/GraphicsLayerChromiumTest.cpp:
115         (MockScrollableArea):
116         (WebKit):
117         (WebKit::TEST_F):
118         * tests/WebLayerTest.cpp:
119
120 2012-09-05  Ilya Tikhonovsky  <loislo@chromium.org>
121
122         Web Inspector: NMI: extract MemoryObjectType constants from MemoryInstrumentation.
123         https://bugs.webkit.org/show_bug.cgi?id=95850
124
125         Reviewed by Yury Semikhatsky.
126
127         I'd like to extract MemoryObjectTypes into separate classes.
128         After that we will be able to move core NMI instrumentation code to WTF.
129
130         * tests/MemoryInstrumentationTest.cpp:
131         (WebCore::Instrumented::reportMemoryUsage):
132         (WebCore::InstrumentedRefPtr::reportMemoryUsage):
133         (WebCore::InstrumentedWithOwnPtr::reportMemoryUsage):
134         (WebCore::InstrumentedOther::reportMemoryUsage):
135         (WebCore::InstrumentedDOM::reportMemoryUsage):
136         (WebCore::TEST):
137         (WebCore::NonVirtualInstrumented::reportMemoryUsage):
138
139 2012-09-05  Peter Beverloo  <peter@chromium.org>
140
141         Unreviewed, rolling out r127590.
142         http://trac.webkit.org/changeset/127590
143
144         Broke the Chromium bots because of a compile error in the compositor.
145
146         * DEPS:
147
148 2012-09-05  Peter Beverloo  <peter@chromium.org>
149
150         Unreviewed.  Rolled DEPS.
151
152         * DEPS:
153
154 2012-09-04  Ilya Tikhonovsky  <loislo@chromium.org>
155
156         Web Inspector: NMI: replace ObjectType enum with static const char* string identifiers.
157         https://bugs.webkit.org/show_bug.cgi?id=95739
158
159         Reviewed by Yury Semikhatsky.
160
161         When we go deeper into different parts of browser like skia, chromium itself etc.
162         we can't use a single enum for all reported object types.
163         The current idea is to use plain simple strings as ObjectType identifiers.
164         In the future patches we will extract these identifiers into separate class or namespace
165         and and split it between components.
166
167         * tests/MemoryInstrumentationTest.cpp:
168         (WebCore::TEST):
169         (WebCore):
170
171 2012-09-04  Keishi Hattori  <keishi@webkit.org>
172
173         Move PagePopupClient implementation for input[type=date] to Chromium WebKit layer
174         https://bugs.webkit.org/show_bug.cgi?id=95681
175
176         Reviewed by Kent Tamura.
177
178         * WebKit.gyp:
179         * src/ChromeClientImpl.cpp:
180         (WebKit):
181         (WebKit::ChromeClientImpl::openDateTimeChooser):
182         * src/ChromeClientImpl.h:
183         (WebCore):
184         (ChromeClientImpl):
185         * src/DateTimeChooserImpl.cpp: Added.
186         (WebKit):
187         (WebKit::DateTimeChooserImpl::DateTimeChooserImpl):
188         (WebKit::DateTimeChooserImpl::~DateTimeChooserImpl):
189         (WebKit::DateTimeChooserImpl::endChooser):
190         (WebKit::DateTimeChooserImpl::contentSize):
191         (WebKit::DateTimeChooserImpl::writeDocument):
192         (WebKit::DateTimeChooserImpl::setValueAndClosePopup):
193         (WebKit::DateTimeChooserImpl::didClosePopup):
194         * src/DateTimeChooserImpl.h:
195         (WebCore):
196         (WebKit):
197         (DateTimeChooserImpl):
198
199 2012-09-04  Adam Barth  <abarth@chromium.org>
200
201         Make chromium-linux build without WTF_DEPRECATED_STRING_OPERATORS
202         https://bugs.webkit.org/show_bug.cgi?id=95798
203
204         Reviewed by Eric Seidel.
205
206         * src/WebAccessibilityObject.cpp:
207         (WebKit::WebAccessibilityObject::keyboardShortcut):
208           - Remove use of WTF::String::operator+=
209         * src/WebPageSerializerImpl.cpp:
210           - Whitelist use of WTF::String::operator+=. Remove this use will take
211             some more careful thought.
212
213 2012-09-04  Alec Flett  <alecflett@chromium.org>
214
215         IndexedDB: remove final createIndex backend glue
216         https://bugs.webkit.org/show_bug.cgi?id=95385
217
218         Reviewed by Adam Barth.
219
220         Remove chromium glue for old key-generation code.
221
222         * public/WebIDBKey.h:
223         (WebIDBKey):
224         * src/WebIDBKey.cpp:
225
226 2012-09-04  Tien-Ren Chen  <trchen@chromium.org>
227
228         [chromium] Rename WebViewClient::handleDisambiguationPopup
229         https://bugs.webkit.org/show_bug.cgi?id=95529
230
231         Reviewed by Adam Barth.
232
233         Rename it to something more descriptive (WebViewClient::didTapMultipleTargets) before people start using it.
234
235         * public/WebViewClient.h:
236         (WebKit::WebViewClient::didTapMultipleTargets):
237         * src/WebViewImpl.cpp:
238         (WebKit::WebViewImpl::handleGestureEvent):
239         * tests/WebFrameTest.cpp:
240
241 2012-09-03  Tao Bai  <michaelbai@chromium.org>
242
243         Added ANDROID_GDBSERVER definition for Ant
244         https://bugs.webkit.org/show_bug.cgi?id=95265
245
246         Reviewed by Adam Barth.
247
248         ANDROID_GDBSERVER will replace ANDROID_TOOLCHAIN, because the ANDROID_TOOLCHAIN
249         is only used for finding the gdbserver.
250
251         * WebKitUnitTests.gyp:
252
253 2012-09-03  Peter Beverloo  <peter@chromium.org>
254
255         Unreviewed.  Rolled DEPS.
256
257         * DEPS:
258
259 2012-09-03  Tommy Widenflycht  <tommyw@google.com>
260
261         MediaStream API: Add Ice-related functionality to RTCPeerConnection
262         https://bugs.webkit.org/show_bug.cgi?id=95565
263
264         Reviewed by Adam Barth.
265
266         * src/AssertMatchingEnums.cpp:
267
268 2012-09-01  James Robinson  <jamesr@chromium.org>
269
270         Unreviewed chromium buildfix when use_libcc_for_compositor=1
271
272         This gyp target was renamed downstream.
273
274         * WebKit.gyp:
275
276 2012-09-01  Tommy Widenflycht  <tommyw@google.com>
277
278         MediaStream API: Add MediaStream management to RTCPeerConnection
279         https://bugs.webkit.org/show_bug.cgi?id=95543
280
281         Reviewed by Adam Barth.
282
283         * src/AssertMatchingEnums.cpp:
284
285 2012-08-31  Koji Ishii  <kojiishi@gmail.com>
286
287         Glyphs in vertical text tests are rotated 90 degrees clockwise on Chromium Windows
288         https://bugs.webkit.org/show_bug.cgi?id=51450
289
290         Reviewed by Tony Chang.
291
292         When writing-mode is vertical-*, Chromium Win does not render glyphs correctly.
293         http://dev.w3.org/csswg/css3-writing-modes/#writing-mode
294         Glyphs are now drawn in the correct orientation, regardless of the leading '@' in the font name,
295         and vertical alternate glyphs (OpenType 'vert' feature) is not enabled.
296         CJK characters drawn at wrong baseline position is also fixed.
297         In addition, fontMetrics().unitsPerEm() and SimpleFontData::platformBoundsForGlyph() were empty
298         in Chromium Win but they were implemented because they were needed to draw vertical flow correctly.
299
300         Note that this patch does not address issues in vertical flow for complex code path.
301         The issue is under discussion with Google people and it will not be fixed in short term.
302
303         Existing tests in fast/writing-mode/* are enabled in LayoutTests/platform/chromium/TestExpectations.
304
305         * features.gypi: ENABLE_OPENTYPE_VERTICAL=1.
306
307 2012-08-31  W. James MacLean  <wjmaclean@chromium.org>
308
309         [chromium] Make link highlighter use same node selection criteria as Chromium for Android.
310         https://bugs.webkit.org/show_bug.cgi?id=95371
311
312         Reviewed by James Robinson.
313
314         This CL brings the selection criteria for link highlight targets into alignment with Chromium for Android.
315
316         * src/WebViewImpl.cpp:
317         (WebKit::highlightConditions):
318         (WebKit::WebViewImpl::bestTouchLinkNode):
319         * tests/data/test_touch_link_highlight.html:
320
321 2012-08-31  James Robinson  <jamesr@chromium.org>
322
323         [chromium] Consolidate geometry unit testing functions for cc
324         https://bugs.webkit.org/show_bug.cgi?id=95526
325
326         Reviewed by Julien Chaffraix.
327
328         This consolidates geometry equality (rects, matrices) in CCGeometryUtils and removes a few duplicate macros for
329         testing rect equality.
330
331         * WebKit.gypi:
332         * tests/CCDamageTrackerTest.cpp:
333         (WebKitTests::TEST_F):
334         * tests/CCGeometryTestUtils.cpp: Added.
335         (WebKitTests):
336         (WebKitTests::ExpectTransformationMatrixEq):
337         * tests/CCGeometryTestUtils.h: Renamed from Source/WebKit/chromium/tests/CCLayerTreeTestCommon.h.
338         (WebKit):
339         (WebKitTests):
340         * tests/CCLayerTreeHostTest.cpp:
341         * tests/CCMathUtilTest.cpp:
342         (WebKit::TEST):
343         * tests/TiledLayerChromiumTest.cpp:
344
345 2012-08-31  James Robinson  <jamesr@chromium.org>
346
347         [chromium] Clean up Web*Layer initialization paths
348         https://bugs.webkit.org/show_bug.cgi?id=95523
349
350         Reviewed by Darin Fisher.
351
352         Constructing a Web*LayerImpl (or other compositor type) wrapper shouldn't require knowledge of the underyling
353         implementation. Also normalizes naming conventions in these files.
354
355         * src/WebAnimationImpl.cpp:
356         (WebKit::WebAnimation::create):
357         (WebKit::WebAnimationImpl::WebAnimationImpl):
358         * src/WebAnimationImpl.h:
359         (WebAnimationImpl):
360         * src/WebContentLayerImpl.cpp:
361         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
362         (WebKit::WebContentLayerImpl::~WebContentLayerImpl):
363         (WebKit::WebContentLayerImpl::layer):
364         (WebKit::WebContentLayerImpl::setDoubleSided):
365         (WebKit::WebContentLayerImpl::setContentsScale):
366         (WebKit::WebContentLayerImpl::setUseLCDText):
367         (WebKit::WebContentLayerImpl::setDrawCheckerboardForMissingTiles):
368         * src/WebContentLayerImpl.h:
369         (WebContentLayerImpl):
370         * src/WebFloatAnimationCurveImpl.cpp:
371         (WebKit::WebFloatAnimationCurve::create):
372         (WebKit::WebFloatAnimationCurveImpl::WebFloatAnimationCurveImpl):
373         * src/WebFloatAnimationCurveImpl.h:
374         (WebFloatAnimationCurveImpl):
375         * src/WebIOSurfaceLayerImpl.cpp:
376         (WebKit::WebIOSurfaceLayer::create):
377         (WebKit::WebIOSurfaceLayerImpl::WebIOSurfaceLayerImpl):
378         * src/WebIOSurfaceLayerImpl.h:
379         (WebIOSurfaceLayerImpl):
380         * src/WebImageLayerImpl.cpp:
381         (WebKit::WebImageLayer::create):
382         (WebKit::WebImageLayerImpl::WebImageLayerImpl):
383         * src/WebImageLayerImpl.h:
384         (WebImageLayerImpl):
385         * src/WebLayerImpl.cpp:
386         (WebKit::WebLayer::create):
387         (WebKit):
388         (WebKit::WebLayerImpl::WebLayerImpl):
389         * src/WebLayerImpl.h:
390         (WebLayerImpl):
391         * src/WebScrollbarLayerImpl.cpp:
392         (WebKit::WebScrollbarLayer::create):
393         (WebKit::WebScrollbarLayerImpl::WebScrollbarLayerImpl):
394         * src/WebScrollbarLayerImpl.h:
395         (WebScrollbarLayerImpl):
396         * src/WebSolidColorLayerImpl.cpp:
397         (WebKit::WebSolidColorLayer::create):
398         (WebKit::WebSolidColorLayerImpl::WebSolidColorLayerImpl):
399         * src/WebSolidColorLayerImpl.h:
400         (WebSolidColorLayerImpl):
401         * src/WebTransformAnimationCurveImpl.cpp:
402         (WebKit::WebTransformAnimationCurve::create):
403         (WebKit::WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl):
404         * src/WebTransformAnimationCurveImpl.h:
405         (WebTransformAnimationCurveImpl):
406         * src/WebVideoLayerImpl.cpp:
407         (WebKit::WebVideoLayer::create):
408         (WebKit::WebVideoLayerImpl::WebVideoLayerImpl):
409         * src/WebVideoLayerImpl.h:
410         (WebVideoLayerImpl):
411
412 2012-08-31  Tony Chang  <tony@chromium.org>
413
414         Remove ENABLE_CSS3_FLEXBOX compile time flag
415         https://bugs.webkit.org/show_bug.cgi?id=95382
416
417         Reviewed by Ojan Vafai.
418
419         Everyone is already enabling this by default and the spec has stablized.
420
421         * features.gypi:
422
423 2012-08-31  Christopher Cameron  <ccameron@chromium.org>
424
425         [chromium] Add main versus impl thread asserts
426         https://bugs.webkit.org/show_bug.cgi?id=95596
427
428         Reviewed by James Robinson.
429
430         Add asserts to prioritized texture manager that specify that a
431         function be called on the main or impl thread.
432
433         Add debug signs that the main thread is blocked to the threaded
434         proxy.
435
436         Add a mechanism to simultaneously set the thread to the impl thread
437         and indicate that the main thread is blocked.
438
439         Update tests that hit asserts in the prioritized texture manager to
440         set their impl thread and main thread blocked state correctly.
441
442         * tests/CCPrioritizedTextureTest.cpp:
443         (WTF::CCPrioritizedTextureTest::CCPrioritizedTextureTest):
444         (WTF::CCPrioritizedTextureTest::~CCPrioritizedTextureTest):
445         (WTF::CCPrioritizedTextureTest::validateTexture):
446         (WTF::TEST_F):
447         * tests/TiledLayerChromiumTest.cpp:
448
449 2012-08-30  James Robinson  <jamesr@chromium.org>
450
451         [chromium] Put compositor client interfaces in separate headers, normalize naming
452         https://bugs.webkit.org/show_bug.cgi?id=95522
453
454         Reviewed by Adam Barth.
455
456         * src/WebContentLayerImpl.cpp:
457         (WebKit::WebContentLayerImpl::~WebContentLayerImpl):
458         * src/WebContentLayerImpl.h:
459         (WebContentLayerImpl):
460         * src/WebExternalTextureLayerImpl.h:
461         * src/WebLayerTreeViewImpl.h:
462         (WebCore):
463         * tests/CCLayerTreeHostCommonTest.cpp:
464         * tests/CCLayerTreeHostTest.cpp:
465         (WebKitTests::ContentLayerChromiumWithUpdateTracking::create):
466         (WebKitTests::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
467         (WebKitTests::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers):
468         (WebKitTests::CCLayerTreeHostTestAtomicCommit::CCLayerTreeHostTestAtomicCommit):
469         (WebKitTests::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::CCLayerTreeHostTestAtomicCommitWithPartialUpdate):
470         (WebKitTests::CCLayerTreeHostTestLostContextWhileUpdatingResources::CCLayerTreeHostTestLostContextWhileUpdatingResources):
471         (CCLayerTreeHostTestLostContextWhileUpdatingResources):
472         * tests/ContentLayerChromiumTest.cpp:
473         (WebKit::MockContentLayerChromiumClient::MockContentLayerChromiumClient):
474         (WebKit::TEST):
475
476 2012-08-31  Gavin Peters  <gavinp@chromium.org>
477
478         [chromium] DEPS roll with a test skip.
479         https://bugs.webkit.org/show_bug.cgi?id=95601
480
481         Unreviewed gardening & DEPS roll.
482
483
484         fast/frames/cached-frame-counter.html was never the most stable test, and now it's failing on more platforms. Marking it flaky, along with a DEPS roll (earlier attempts at the DEPS roll failed on this)
485
486         * DEPS:
487
488 2012-08-31  Gavin Peters  <gavinp@chromium.org>
489
490         [chromium] Disable WebViewTest.AutoResizeMinimumSize
491         https://bugs.webkit.org/show_bug.cgi?id=95571
492
493         Unreviewed gardening.
494
495         Disabling this test since it started failing in build 17225, see http://build.chromium.org/p/chromium.webkit/builders/Webkit%20Win/builds/17247 for instance. Will shortly file bug to re-enable this.
496
497         * tests/WebViewTest.cpp:
498
499 2012-08-30  James Robinson  <jamesr@chromium.org>
500
501         [chromium] Revert WebCompositorSupport to raw ptrs, make dtor protected
502         https://bugs.webkit.org/show_bug.cgi?id=95520
503
504         Reviewed by Darin Fisher.
505
506         Adopt the return value of WebCompositorSupport explicitly.
507
508         * src/LinkHighlight.cpp:
509         (WebKit::LinkHighlight::LinkHighlight):
510         (WebKit::LinkHighlight::startHighlightAnimation):
511         * src/WebMediaPlayerClientImpl.cpp:
512         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
513         * src/WebPluginContainerImpl.cpp:
514         (WebKit::WebPluginContainerImpl::setBackingTextureId):
515         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
516
517 2012-08-30  James Robinson  <jamesr@chromium.org>
518
519         [chromium] Make webkit_compositor specific unit test compilation conditional on gyp var
520         https://bugs.webkit.org/show_bug.cgi?id=95401
521
522         Reviewed by Dirk Pranke.
523
524         If use_libcc_for_compositor is set, these tests are being compiled and run elsewhere.
525
526         * WebKit.gyp:
527         * WebKit.gypi:
528         * WebKitUnitTests.gyp:
529
530 2012-08-27  James Robinson  <jamesr@chromium.org>
531
532         [chromium] Add CompositorSupport interface for constructing compositor classes
533         https://bugs.webkit.org/show_bug.cgi?id=95040
534
535         Reviewed by Darin Fisher.
536
537         * src/LinkHighlight.cpp:
538         (WebKit::LinkHighlight::LinkHighlight):
539         (WebKit::LinkHighlight::startHighlightAnimation):
540         * src/WebMediaPlayerClientImpl.cpp:
541         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
542         * src/WebMediaPlayerClientImpl.h:
543         (WebKit):
544         * src/WebPluginContainerImpl.cpp:
545         (WebKit::WebPluginContainerImpl::setBackingTextureId):
546         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
547         * src/WebPluginContainerImpl.h:
548         (WebKit):
549
550 2012-08-30  Gavin Peters  <gavinp@chromium.org>
551
552         [chromium] Disable CCLayerTreeHostTestScrollMultipleRedraw.runMultiThread
553         https://bugs.webkit.org/show_bug.cgi?id=95472
554
555         Unreviewed gardening.
556
557         When landing r127079, this test was re-enabled, and has not passed since. I'm disabling it, and created bug 95473 to track fixing this issue.
558
559         * tests/CCLayerTreeHostTest.cpp:
560         (WebKitTests::TEST_F):
561
562 2012-08-30  James Robinson  <jamesr@chromium.org>
563
564         [chromium] Clean up some webkit compositor unit tests
565         https://bugs.webkit.org/show_bug.cgi?id=95410
566
567         Reviewed by Adrienne Walker.
568
569         This adds includes that were implicitly being picked up, removes ones that weren't being used, removes
570         dead code, adds OVERRIDE on functions that OVERRIDE, and deinlines virtuals that the chromium clang style
571         plugin is unhappy about.
572
573         * tests/CCAnimationTestCommon.cpp:
574         (WebKitTests::FakeFloatAnimationCurve::duration):
575         (WebKitTests):
576         (WebKitTests::FakeFloatAnimationCurve::getValue):
577         (WebKitTests::FakeTransformTransition::duration):
578         (WebKitTests::FakeFloatTransition::duration):
579         (WebKitTests::FakeLayerAnimationControllerClient::id):
580         (WebKitTests::FakeLayerAnimationControllerClient::setOpacityFromAnimation):
581         (WebKitTests::FakeLayerAnimationControllerClient::opacity):
582         (WebKitTests::FakeLayerAnimationControllerClient::setTransformFromAnimation):
583         (WebKitTests::FakeLayerAnimationControllerClient::transform):
584         * tests/CCAnimationTestCommon.h:
585         (FakeFloatAnimationCurve):
586         (FakeTransformTransition):
587         (FakeFloatTransition):
588         (FakeLayerAnimationControllerClient):
589         * tests/CCTiledLayerTestCommon.cpp:
590         (WebKitTests::FakeLayerTextureUpdater::sampledTexelFormat):
591         (WebKitTests):
592         (WebKitTests::FakeTiledLayerWithScaledBounds::FakeTiledLayerWithScaledBounds):
593         (WebKitTests::FakeTiledLayerChromium::textureManager):
594         (WebKitTests::FakeTiledLayerChromium::textureUpdater):
595         (WebKitTests::FakeTiledLayerWithScaledBounds::contentBounds):
596         (WebKitTests::FakeTextureUploader::isBusy):
597         (WebKitTests::FakeTextureUploader::uploadTexture):
598         * tests/CCTiledLayerTestCommon.h:
599         (FakeLayerTextureUpdater):
600         (FakeTiledLayerChromium):
601         (FakeTiledLayerWithScaledBounds):
602         (FakeTextureUploader):
603         * tests/FakeWebCompositorOutputSurface.h:
604         * tests/TextureCopierTest.cpp:
605         (MockContext):
606         (TEST):
607         * tests/ThrottledTextureUploaderTest.cpp:
608         (WebKit::TEST):
609         * tests/WebLayerTreeViewTest.cpp:
610
611 2012-08-29  Hironori Bono  <hbono@chromium.org>
612
613         Fix Chromium builds (Win and Mac)
614         https://bugs.webkit.org/show_bug.cgi?id=95421
615
616         Reviewed by James Robinson.
617
618         This change replaces 'class WebRect' with 'struct WebRect' to fix build breaks
619         on the "Chromium Mac Release" and the "Chromium Win Release" bot caused by
620         r127095.
621
622         * public/WebViewClient.h:
623         (WebKit):
624
625 2012-08-29  Nat Duca  <nduca@chromium.org>
626
627         [chromium] setNeedsAnimate should not cause commitRequested to become true
628         https://bugs.webkit.org/show_bug.cgi?id=95393
629
630         Reviewed by James Robinson.
631
632         * tests/CCLayerTreeHostTest.cpp:
633         (CCLayerTreeHostTestSetNeedsAnimateShouldNotSetCommitRequested):
634         (CCLayerTreeHostTestSetNeedsAnimateShouldNotSetCommitRequested::CCLayerTreeHostTestSetNeedsAnimateShouldNotSetCommitRequested):
635
636 2012-08-29  Tien-Ren Chen  <trchen@chromium.org>
637
638         [chromium] Implement disambiguation popup (a.k.a. Link Preview)
639         https://bugs.webkit.org/show_bug.cgi?id=94182
640
641         Reviewed by Adam Barth.
642
643         In this new implementation, we add a new WebViewClient::handleDisambiguationPopup delegate.
644         The disambiguation sequence will be initiated by the gesture event handler
645         in WebViewImpl if an ambiguous tap is detected, then
646         m_client->handleDisambiguationPopup will be called, so the embedder can
647         decide whether to swallow the touch event and show a popup.
648
649         New test: WebFrameTest.DisambiguationPopupTest
650
651         * WebKit.gyp:
652         * features.gypi:
653         * public/WebInputEvent.h:
654         (WebGestureEvent):
655         (WebKit::WebGestureEvent::WebGestureEvent):
656         * public/WebTouchCandidatesInfo.h: Removed.
657         * public/WebView.h:
658         (WebKit):
659         * public/WebViewClient.h:
660         (WebKit):
661         (WebViewClient):
662         (WebKit::WebViewClient::triggersLinkPreview):
663         * src/WebInputEvent.cpp:
664         (SameSizeAsWebGestureEvent):
665         * src/WebViewImpl.cpp:
666         (WebKit):
667         (WebKit::WebViewImpl::handleGestureEventWithLinkPreview):
668         (WebKit::WebViewImpl::handleGestureEvent):
669         * src/WebViewImpl.h:
670         (WebViewImpl):
671
672 2012-08-29  Dominic Mazzoni  <dmazzoni@google.com>
673
674         AX: Canvas should have a distinct role
675         https://bugs.webkit.org/show_bug.cgi?id=95248
676
677         Reviewed by Chris Fleizach.
678
679         Add support for canvas accessibility role.
680
681         * public/WebAccessibilityRole.h:
682         * src/AssertMatchingEnums.cpp:
683
684 2012-08-29  Alex Sakhartchouk  <alexst@chromium.org>
685
686         [chromium] CCLayerTreeHost::finishCommitOnImplThread wrong setter order
687         https://bugs.webkit.org/show_bug.cgi?id=94828
688
689         Reviewed by Adrienne Walker.
690
691         Testing that setDeviceScaleFactor properly changes maxScrollPosition
692
693         * tests/CCLayerTreeHostImplTest.cpp:
694
695 2012-08-29  James Robinson  <jamesr@chromium.org>
696
697         Unreviewed, rolling out r126956.
698         http://trac.webkit.org/changeset/126956
699         https://bugs.webkit.org/show_bug.cgi?id=94721
700
701         Breaks several unit tests
702
703         * tests/CCSchedulerTest.cpp:
704         (WebKitTests::FakeCCSchedulerClient::reset):
705         (WebKitTests::FakeCCSchedulerClient::setHasMoreResourceUpdates):
706         (WebKitTests::TEST):
707         * tests/CCTextureUpdateControllerTest.cpp:
708
709 2012-08-29  James Robinson  <jamesr@chromium.org>
710
711         [chromium] Register/unregister contents layers with GraphicsLayerChromium
712         https://bugs.webkit.org/show_bug.cgi?id=95379
713
714         Reviewed by Adrienne Walker.
715
716         * src/WebMediaPlayerClientImpl.cpp:
717         (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl):
718         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
719         * src/WebPluginContainerImpl.cpp:
720         (WebKit::WebPluginContainerImpl::setBackingTextureId):
721         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
722         (WebKit::WebPluginContainerImpl::~WebPluginContainerImpl):
723
724 2012-08-29  W. James MacLean  <wjmaclean@chromium.org>
725
726         [chromium] Add WebSettings support for flag to enable/disable gesture tap highlights.
727         https://bugs.webkit.org/show_bug.cgi?id=95119
728
729         Reviewed by Adam Barth.
730
731         Add support to WebSettings for flag to enable/disable gesture tap highlights. Relies on existing tests.
732
733         * public/WebSettings.h:
734         * src/WebSettingsImpl.cpp:
735         (WebKit::WebSettingsImpl::WebSettingsImpl):
736         (WebKit::WebSettingsImpl::setGestureTapHighlightEnabled):
737         (WebKit):
738         * src/WebSettingsImpl.h:
739         (WebSettingsImpl):
740         (WebKit::WebSettingsImpl::gestureTapHighlightEnabled):
741         * src/WebViewImpl.cpp:
742         (WebKit::WebViewImpl::handleGestureEvent):
743
744 2012-08-29  Dana Jansens  <danakj@chromium.org>
745
746         [chromium] Remove HUD layer when rootLayer is set to null
747         https://bugs.webkit.org/show_bug.cgi?id=95257
748
749         Reviewed by James Robinson.
750
751         * WebKit.gypi:
752         * tests/CCHeadsUpDisplayTest.cpp: Added.
753         (CCHeadsUpDisplayTest):
754         (DrawsContentLayerChromium):
755         (DrawsContentLayerChromium::create):
756         (DrawsContentLayerChromium::DrawsContentLayerChromium):
757         (CCHudWithRootLayerChange):
758         (CCHudWithRootLayerChange::CCHudWithRootLayerChange):
759         (TEST_F):
760         * tests/CCLayerTreeHostTest.cpp:
761         * tests/CCThreadedTest.cpp:
762         (WebKitTests::CCThreadedTest::runTest):
763         * tests/CCThreadedTest.h:
764         (WebKitTests::CCThreadedTest::initializeSettings):
765         (CCThreadedTest):
766
767 2012-08-29  Shawn Singh  <shawnsingh@chromium.org>
768
769         [chromium] Add more unit test coverage for semantics of drawableContentRect and visibleContentRect
770         https://bugs.webkit.org/show_bug.cgi?id=94542
771
772         Reviewed by Adrienne Walker.
773
774         To make upcoming refactors safer, it was appropriate to (finally)
775         add unit tests that check the behavior of drawableContentRect and
776         visibleContentRect computations in calculateDrawTransforms.
777
778         * tests/CCLayerTreeHostCommonTest.cpp:
779
780 2012-08-29  W. James MacLean  <wjmaclean@chromium.org>
781
782         [chromium] Link highlight should clear on page navigation.
783         https://bugs.webkit.org/show_bug.cgi?id=95129
784
785         Reviewed by James Robinson.
786
787         Modified WebViewImpl to clear link highlight when navigating to new url.
788
789         * src/WebViewImpl.cpp:
790         (WebKit::WebViewImpl::didCommitLoad):
791
792 2012-08-29  James Robinson  <jamesr@chromium.org>
793
794         [chromium] CCThreadImpl / WebCompositorImpl shouldn't compile from webkit when use_libcc_for_compositor=1
795         https://bugs.webkit.org/show_bug.cgi?id=94995
796
797         Reviewed by Adam Barth.
798
799         * WebKit.gyp:
800
801 2012-08-28  Shawn Singh  <shawnsingh@chromium.org>
802
803         [chromium] Do not clip root layer's subtree to viewport
804         https://bugs.webkit.org/show_bug.cgi?id=95235
805
806         Reviewed by Adrienne Walker.
807
808         Existing tests updated, and otherwise this change is already
809         covered by layout and unit tests.
810
811         * tests/CCLayerTreeHostCommonTest.cpp:
812         * tests/CCOcclusionTrackerTest.cpp:
813         (WebKitTests::CCOcclusionTrackerTestChildInRotatedChild::runMyTest):
814         (WebKitTests::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
815         (WebKitTests::CCOcclusionTrackerTestSurfaceWithTwoOpaqueChildren::runMyTest):
816         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
817         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
818         (WebKitTests::CCOcclusionTrackerTestFilters::runMyTest):
819         (WebKitTests::CCOcclusionTrackerTestReplicaWithClipping::runMyTest):
820         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
821         (WebKitTests::CCOcclusionTrackerTestSurfaceOcclusionTranslatesWithClipping::runMyTest):
822         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest):
823
824 2012-08-29  Julien Chaffraix  <jchaffraix@webkit.org>
825
826         [Chromium] CCLayerTreeHostTestScrollChildLayer makes the wrong assumptions
827         https://bugs.webkit.org/show_bug.cgi?id=95358
828
829         Unreviewed gardening.
830
831         * tests/CCLayerTreeHostTest.cpp:
832         Disabled the test until it is fixed.
833
834 2012-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
835
836         Unreviewed, rolling out r126972.
837         http://trac.webkit.org/changeset/126972
838         https://bugs.webkit.org/show_bug.cgi?id=95349
839
840         accessibility/canvas-description-and-role.html has been
841         failing consistently on several bots and Dominic needs some
842         time to investigate why (Requested by jchaffraix on #webkit).
843
844         * public/WebAccessibilityRole.h:
845         * src/AssertMatchingEnums.cpp:
846
847 2012-08-29  Peter Beverloo  <peter@chromium.org>
848
849         Unreviewed.  Rolled DEPS.
850
851         * DEPS:
852
853 2012-08-29  Dominic Mazzoni  <dmazzoni@google.com>
854
855         AX: Canvas should have a distinct role
856         https://bugs.webkit.org/show_bug.cgi?id=95248
857
858         Reviewed by Chris Fleizach.
859
860         Add support for canvas accessibility role.
861
862         * public/WebAccessibilityRole.h:
863         * src/AssertMatchingEnums.cpp:
864
865 2012-08-28  David Reveman  <reveman@chromium.org>
866
867         [Chromium] Scheduler will never process a commit until it receives a vsync tick.
868         https://bugs.webkit.org/show_bug.cgi?id=94721
869
870         Reviewed by James Robinson.
871
872         * tests/CCSchedulerTest.cpp:
873         (WebKitTests::FakeCCSchedulerClient::reset):
874         (WebKitTests::TEST):
875         * tests/CCTextureUpdateControllerTest.cpp:
876
877 2012-08-28  Adam Barth  <abarth@webkit.org>
878
879         Fix ASSERT in fast/events/touch/gesture/context-menu-on-two-finger-tap.html
880
881         * src/WebViewImpl.cpp:
882         (WebKit::WebViewImpl::detectContentOnTouch):
883
884 2012-08-28  Leandro Gracia Gil  <leandrogracia@chromium.org>
885
886         Content detection should not disrupt the page behaviour
887         https://bugs.webkit.org/show_bug.cgi?id=94727
888
889         Reviewed by Adam Barth.
890
891         Triggers content detection in the embedder on tap gestures and
892         add checks for the appropriate event listeners in order to prevent
893         triggering content detection when it would disrupt the page's behaviour.
894
895         * src/WebViewImpl.cpp:
896         (WebKit::WebViewImpl::handleGestureEvent):
897         (WebKit::WebViewImpl::detectContentOnTouch):
898         * tests/WebViewTest.cpp:
899         * tests/data/content_listeners.html: Added.
900
901 2012-08-28  Sheriff Bot  <webkit.review.bot@gmail.com>
902
903         Unreviewed, rolling out r126933.
904         http://trac.webkit.org/changeset/126933
905         https://bugs.webkit.org/show_bug.cgi?id=95261
906
907         Turns out we do need this! (Requested by abarth on #webkit).
908
909         * public/WebWidget.h:
910         (WebKit::WebWidget::paint):
911         * src/WebPagePopupImpl.cpp:
912         (WebKit::WebPagePopupImpl::paint):
913         * src/WebPagePopupImpl.h:
914         (WebPagePopupImpl):
915         * src/WebPopupMenuImpl.cpp:
916         (WebKit::WebPopupMenuImpl::paint):
917         * src/WebPopupMenuImpl.h:
918         * src/WebViewImpl.cpp:
919         (WebKit::WebViewImpl::paint):
920         * src/WebViewImpl.h:
921         (WebViewImpl):
922
923 2012-08-28  Mark Pilgrim  <pilgrim@chromium.org>
924
925         [Chromium] Remove decodeAudioFileData from PlatformSupport
926         https://bugs.webkit.org/show_bug.cgi?id=95250
927
928         Reviewed by Adam Barth.
929
930         Part of a refactoring series. See tracking bug 82948.
931
932         * src/PlatformSupport.cpp:
933         (WebCore):
934
935 2012-08-28  Sheriff Bot  <webkit.review.bot@gmail.com>
936
937         Unreviewed, rolling out r126344.
938         http://trac.webkit.org/changeset/126344
939         https://bugs.webkit.org/show_bug.cgi?id=95253
940
941         This change is no longer needed (Requested by abarth on
942         #webkit).
943
944         * public/WebWidget.h:
945         (WebKit::WebWidget::paint):
946         * src/WebPagePopupImpl.cpp:
947         (WebKit::WebPagePopupImpl::paint):
948         * src/WebPagePopupImpl.h:
949         (WebPagePopupImpl):
950         * src/WebPopupMenuImpl.cpp:
951         (WebKit::WebPopupMenuImpl::paint):
952         * src/WebPopupMenuImpl.h:
953         * src/WebViewImpl.cpp:
954         (WebKit::WebViewImpl::paint):
955         * src/WebViewImpl.h:
956         (WebViewImpl):
957
958 2012-08-28  Dominic Mazzoni  <dmazzoni@google.com>
959
960         AX: Crash due to object getting deleted inside updateBackingStore
961         https://bugs.webkit.org/show_bug.cgi?id=94619
962
963         Reviewed by Chris Fleizach.
964
965         Chromium now calls updateBackingStoreAndCheckValidity explicitly,
966         so we can now get rid of calls to updateBackingStore in the
967         method implementations, and just make sure we're checking isDetached.
968
969         * public/WebAccessibilityObject.h:
970         (WebAccessibilityObject):
971         * src/WebAccessibilityObject.cpp:
972         (WebKit::WebAccessibilityObject::axID):
973         (WebKit::WebAccessibilityObject::accessibilityDescription):
974         (WebKit::WebAccessibilityObject::actionVerb):
975         (WebKit::WebAccessibilityObject::canSetFocusAttribute):
976         (WebKit::WebAccessibilityObject::canSetValueAttribute):
977         (WebKit::WebAccessibilityObject::childCount):
978         (WebKit::WebAccessibilityObject::childAt):
979         (WebKit::WebAccessibilityObject::firstChild):
980         (WebKit::WebAccessibilityObject::focusedChild):
981         (WebKit::WebAccessibilityObject::lastChild):
982         (WebKit::WebAccessibilityObject::nextSibling):
983         (WebKit::WebAccessibilityObject::parentObject):
984         (WebKit::WebAccessibilityObject::previousSibling):
985         (WebKit::WebAccessibilityObject::canSetSelectedAttribute):
986         (WebKit::WebAccessibilityObject::isAnchor):
987         (WebKit::WebAccessibilityObject::isAriaReadOnly):
988         (WebKit::WebAccessibilityObject::isButtonStateMixed):
989         (WebKit::WebAccessibilityObject::isChecked):
990         (WebKit::WebAccessibilityObject::isCollapsed):
991         (WebKit::WebAccessibilityObject::isControl):
992         (WebKit::WebAccessibilityObject::isEnabled):
993         (WebKit::WebAccessibilityObject::isFocused):
994         (WebKit::WebAccessibilityObject::isHovered):
995         (WebKit::WebAccessibilityObject::isIndeterminate):
996         (WebKit::WebAccessibilityObject::isLinked):
997         (WebKit::WebAccessibilityObject::isLoaded):
998         (WebKit::WebAccessibilityObject::isMultiSelectable):
999         (WebKit::WebAccessibilityObject::isOffScreen):
1000         (WebKit::WebAccessibilityObject::isPasswordField):
1001         (WebKit::WebAccessibilityObject::isPressed):
1002         (WebKit::WebAccessibilityObject::isReadOnly):
1003         (WebKit::WebAccessibilityObject::isRequired):
1004         (WebKit::WebAccessibilityObject::isSelected):
1005         (WebKit::WebAccessibilityObject::isSelectedOptionActive):
1006         (WebKit::WebAccessibilityObject::isVertical):
1007         (WebKit::WebAccessibilityObject::isVisible):
1008         (WebKit::WebAccessibilityObject::isVisited):
1009         (WebKit::WebAccessibilityObject::accessKey):
1010         (WebKit::WebAccessibilityObject::ariaHasPopup):
1011         (WebKit::WebAccessibilityObject::ariaLiveRegionAtomic):
1012         (WebKit::WebAccessibilityObject::ariaLiveRegionBusy):
1013         (WebKit::WebAccessibilityObject::ariaLiveRegionRelevant):
1014         (WebKit::WebAccessibilityObject::ariaLiveRegionStatus):
1015         (WebKit::WebAccessibilityObject::boundingBoxRect):
1016         (WebKit::WebAccessibilityObject::estimatedLoadingProgress):
1017         (WebKit::WebAccessibilityObject::helpText):
1018         (WebKit::WebAccessibilityObject::headingLevel):
1019         (WebKit::WebAccessibilityObject::hierarchicalLevel):
1020         (WebKit::WebAccessibilityObject::hitTest):
1021         (WebKit::WebAccessibilityObject::keyboardShortcut):
1022         (WebKit::WebAccessibilityObject::performDefaultAction):
1023         (WebKit::WebAccessibilityObject::roleValue):
1024         (WebKit::WebAccessibilityObject::selectionEnd):
1025         (WebKit::WebAccessibilityObject::selectionStart):
1026         (WebKit::WebAccessibilityObject::stringValue):
1027         (WebKit::WebAccessibilityObject::title):
1028         (WebKit::WebAccessibilityObject::titleUIElement):
1029         (WebKit::WebAccessibilityObject::url):
1030         (WebKit::WebAccessibilityObject::valueDescription):
1031         (WebKit::WebAccessibilityObject::valueForRange):
1032         (WebKit::WebAccessibilityObject::maxValueForRange):
1033         (WebKit::WebAccessibilityObject::minValueForRange):
1034         (WebKit::WebAccessibilityObject::node):
1035         (WebKit::WebAccessibilityObject::document):
1036         (WebKit::WebAccessibilityObject::accessibilityIsIgnored):
1037         (WebKit::WebAccessibilityObject::lineBreaks):
1038         (WebKit::WebAccessibilityObject::columnCount):
1039         (WebKit::WebAccessibilityObject::rowCount):
1040         (WebKit::WebAccessibilityObject::cellForColumnAndRow):
1041         (WebKit::WebAccessibilityObject::cellColumnIndex):
1042         (WebKit::WebAccessibilityObject::cellColumnSpan):
1043         (WebKit::WebAccessibilityObject::cellRowIndex):
1044         (WebKit::WebAccessibilityObject::cellRowSpan):
1045         (WebKit::WebAccessibilityObject::scrollToMakeVisible):
1046         (WebKit::WebAccessibilityObject::scrollToMakeVisibleWithSubFocus):
1047         (WebKit::WebAccessibilityObject::scrollToGlobalPoint):
1048
1049 2012-08-28  Sheriff Bot  <webkit.review.bot@gmail.com>
1050
1051         Unreviewed, rolling out r126914.
1052         http://trac.webkit.org/changeset/126914
1053         https://bugs.webkit.org/show_bug.cgi?id=95239
1054
1055         it breaks everything and fixes nothing (Requested by pizlo on
1056         #webkit).
1057
1058         * src/WebGeolocationPermissionRequestManager.cpp:
1059         (WebGeolocationPermissionRequestManager::remove):
1060         * src/WebIDBMetadata.cpp:
1061         (WebKit::WebIDBMetadata::WebIDBMetadata):
1062         * src/WebIntent.cpp:
1063         (WebKit::WebIntent::extrasValue):
1064         * tests/WebSocketExtensionDispatcherTest.cpp:
1065         (WebCore::TEST_F):
1066
1067 2012-08-28  W. James MacLean  <wjmaclean@chromium.org>
1068
1069         [unreviewed] Compile fix: windows compiler expects float but find double.
1070  
1071         Need to specify a float literal when initialising the highlight animation duration.
1072  
1073         * src/LinkHighlight.cpp:
1074         (WebKit::LinkHighlight::startHighlightAnimation):
1075
1076 2012-08-28  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1077
1078         Rename first/second to key/value in HashMap iterators
1079         https://bugs.webkit.org/show_bug.cgi?id=82784
1080
1081         Reviewed by Eric Seidel.
1082
1083         * src/WebGeolocationPermissionRequestManager.cpp:
1084         (WebGeolocationPermissionRequestManager::remove):
1085         * src/WebIDBMetadata.cpp:
1086         (WebKit::WebIDBMetadata::WebIDBMetadata):
1087         * src/WebIntent.cpp:
1088         (WebKit::WebIntent::extrasValue):
1089         * tests/WebSocketExtensionDispatcherTest.cpp:
1090         (WebCore::TEST_F):
1091
1092 2012-08-28  W. James MacLean  <wjmaclean@chromium.org>
1093
1094         [chromium] Drastically shorten the link highlight duration.
1095         https://bugs.webkit.org/show_bug.cgi?id=95216
1096
1097         Reviewed by James Robinson.
1098
1099         Parameter change; covered by existing layout tests.
1100
1101         * src/LinkHighlight.cpp:
1102         (WebKit::LinkHighlight::startHighlightAnimation):
1103
1104 2012-08-27  Tien-Ren Chen  <trchen@chromium.org>
1105
1106         [Chromium] Remove stub for WebView::getTouchHighlightQuads()
1107         https://bugs.webkit.org/show_bug.cgi?id=95164
1108
1109         Reviewed by Adam Barth.
1110
1111         Reverts https://bugs.webkit.org/show_bug.cgi?id=92997
1112         We're uploading a new implementation that no longer uses this API.
1113         See https://bugs.webkit.org/show_bug.cgi?id=94182
1114
1115         * WebKit.gyp:
1116         * public/WebTouchCandidatesInfo.h: Removed.
1117         * public/WebView.h:
1118         (WebKit):
1119         * src/WebViewImpl.cpp:
1120         * src/WebViewImpl.h:
1121         (WebViewImpl):
1122
1123 2012-08-27  Ian Vollick  <vollick@chromium.org>
1124
1125         [chromium] Should accelerate rotations of >= 180 degrees
1126         https://bugs.webkit.org/show_bug.cgi?id=94860
1127
1128         Reviewed by James Robinson.
1129
1130         Added new unit tests:
1131           WebTransformOperationTest.transformTypesAreUnique
1132           WebTransformOperationTest.matchTypesSameLength
1133           WebTransformOperationTest.identityAlwaysMatches
1134           WebTransformOperationTest.largeRotationsWithSameAxis
1135           WebTransformOperationTest.largeRotationsWithSameAxisInDifferentDirection
1136           WebTransformOperationTest.largeRotationsWithDifferentAxes
1137           WebTransformOperationTest.blendRotationFromIdentity
1138           WebTransformOperationTest.blendTranslationFromIdentity
1139           WebTransformOperationTest.blendScaleFromIdentity
1140           WebTransformOperationTest.blendSkewFromIdentity
1141           WebTransformOperationTest.blendPerspectiveFromIdentity
1142           WebTransformOperationTest.blendRotationToIdentity
1143           WebTransformOperationTest.blendTranslationToIdentity
1144           WebTransformOperationTest.blendScaleToIdentity
1145           WebTransformOperationTest.blendSkewToIdentity
1146           WebTransformOperationTest.blendPerspectiveToIdentity
1147           AnimationTranslationUtilTest.createTransformAnimationWithBigRotation
1148           AnimationTranslationUtilTest.createTransformAnimationWithBigRotationAndEmptyTransformOperationList
1149
1150         * tests/AnimationTranslationUtilTest.cpp:
1151         (WebKit::TEST):
1152         * tests/WebTransformOperationsTest.cpp:
1153         (TEST):
1154         (getIdentityOperations):
1155
1156 2012-08-27  Sheriff Bot  <webkit.review.bot@gmail.com>
1157
1158         Unreviewed, rolling out r126836.
1159         http://trac.webkit.org/changeset/126836
1160         https://bugs.webkit.org/show_bug.cgi?id=95163
1161
1162         Broke all Apple ports, EFL, and Qt. (Requested by tkent on
1163         #webkit).
1164
1165         * src/WebGeolocationPermissionRequestManager.cpp:
1166         (WebGeolocationPermissionRequestManager::remove):
1167         * src/WebIDBMetadata.cpp:
1168         (WebKit::WebIDBMetadata::WebIDBMetadata):
1169         * src/WebIntent.cpp:
1170         (WebKit::WebIntent::extrasValue):
1171         * tests/WebSocketExtensionDispatcherTest.cpp:
1172         (WebCore::TEST_F):
1173
1174 2012-08-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1175
1176         Rename first/second to key/value in HashMap iterators
1177         https://bugs.webkit.org/show_bug.cgi?id=82784
1178
1179         Reviewed by Eric Seidel.
1180
1181         * src/WebGeolocationPermissionRequestManager.cpp:
1182         (WebGeolocationPermissionRequestManager::remove):
1183         * src/WebIDBMetadata.cpp:
1184         (WebKit::WebIDBMetadata::WebIDBMetadata):
1185         * src/WebIntent.cpp:
1186         (WebKit::WebIntent::extrasValue):
1187         * tests/WebSocketExtensionDispatcherTest.cpp:
1188         (WebCore::TEST_F):
1189
1190 2012-08-27  David Reveman  <reveman@chromium.org>
1191
1192         [Chromium] Stop texture updates when context is lost.
1193         https://bugs.webkit.org/show_bug.cgi?id=94983
1194
1195         Reviewed by James Robinson.
1196
1197         * tests/CCLayerTreeHostTest.cpp:
1198         (CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext):
1199         (CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext::create):
1200         (CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext::setContextLostCallback):
1201         (CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext::isContextLost):
1202         (CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext::beginQueryEXT):
1203         (CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext::endQueryEXT):
1204         (CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext::getQueryObjectuivEXT):
1205         (CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext::CompositorFakeWebGraphicsContext3DWithEndQueryCausingLostContext):
1206         (CCLayerTreeHostTestLostContextWhileUpdatingResources):
1207         (CCLayerTreeHostTestLostContextWhileUpdatingResources::CCLayerTreeHostTestLostContextWhileUpdatingResources):
1208         (CCLayerTreeHostTestLostContextWhileUpdatingResources::createOutputSurface):
1209         (CCLayerTreeHostTestLostContextWhileUpdatingResources::beginTest):
1210         (CCLayerTreeHostTestLostContextWhileUpdatingResources::commitCompleteOnCCThread):
1211         (CCLayerTreeHostTestLostContextWhileUpdatingResources::layout):
1212         (CCLayerTreeHostTestLostContextWhileUpdatingResources::afterTest):
1213         (TEST_F):
1214
1215 2012-08-27  Dana Jansens  <danakj@chromium.org>
1216
1217         [chromium] A general mechanism for passing data into and out of appendQuads and quadCuller via CCAppendQuadsData
1218         https://bugs.webkit.org/show_bug.cgi?id=95109
1219
1220         Reviewed by Adrienne Walker.
1221
1222         Update tests to use the new data structure.
1223
1224         * tests/CCLayerTreeHostImplTest.cpp:
1225         * tests/CCLayerTreeHostTest.cpp:
1226         * tests/CCQuadCullerTest.cpp:
1227         * tests/CCRenderSurfaceTest.cpp:
1228         * tests/CCSolidColorLayerImplTest.cpp:
1229         (CCLayerTestCommon::TEST):
1230         * tests/CCTiledLayerImplTest.cpp:
1231         (CCLayerTestCommon::TEST):
1232         (CCLayerTestCommon::getQuads):
1233         * tests/MockCCQuadCuller.h:
1234
1235 2012-08-24  James Robinson  <jamesr@chromium.org>
1236
1237         [chromium] Clean up dependencies of WebScrollbar and WebScrollbarLayer
1238         https://bugs.webkit.org/show_bug.cgi?id=94996
1239
1240         Reviewed by Adrienne Walker.
1241
1242         Fix up tests for API changes.
1243
1244         * WebKit.gyp:
1245         * src/WebScrollbarLayerImpl.cpp:
1246         (WebKit::WebScrollbarLayer::create):
1247         * tests/ScrollbarLayerChromiumTest.cpp:
1248         (WebCore::TEST):
1249
1250 2012-08-27  Adrienne Walker  <enne@google.com>
1251
1252         [chromium] Prevent scrollbar thumb size from changing during compositor zoom
1253         https://bugs.webkit.org/show_bug.cgi?id=94859
1254
1255         Reviewed by James Robinson.
1256
1257         Update test.
1258
1259         * tests/CCLayerTreeHostImplTest.cpp:
1260
1261 2012-08-27  Dana Jansens  <danakj@chromium.org>
1262
1263         [chromium] Have RenderSurface create and add its own generated RenderPass
1264         https://bugs.webkit.org/show_bug.cgi?id=94957
1265
1266         Reviewed by Adrienne Walker.
1267
1268         Test that a RenderSurface generates the RenderPass that we expect.
1269
1270         * tests/CCRenderSurfaceTest.cpp:
1271
1272 2012-08-27  Justin Novosad  <junov@chromium.org>
1273
1274         [Chromium] Fixing infinite recursion in Canvas2DLayerManager
1275         https://bugs.webkit.org/show_bug.cgi?id=95110
1276
1277         Reviewed by Stephen White.
1278
1279         Breaking recursion cycle by not reporting a change in memory allocation
1280         when no memory is freed in FakeCanvas2DLayer::freeMemoryIfPossible.
1281
1282         * tests/Canvas2DLayerManagerTest.cpp:
1283
1284 2012-08-27  Justin Novosad  <junov@chromium.org>
1285
1286         [Chromium] Implementing a global limit on memory consumed by deferred 2D canvases
1287         https://bugs.webkit.org/show_bug.cgi?id=94386
1288
1289         Reviewed by Stephen White.
1290
1291         Adding unit tests for WebCore::Canvas2DLayerManager
1292
1293         * WebKit.gypi:
1294
1295 2012-08-27  Sheriff Bot  <webkit.review.bot@gmail.com>
1296
1297         Unreviewed.  Rolled DEPS.
1298
1299         * DEPS:
1300
1301 2012-08-27  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1302
1303         Rename RegisterProtocolHandler API to NavigatorContentUtils
1304         https://bugs.webkit.org/show_bug.cgi?id=94920
1305
1306         Reviewed by Adam Barth.
1307
1308         Renaming whatever RegisterProtocolHandler-prefixed to NavigatorContentUtils-prefixed.
1309         RegisterProtocolHandlerClientImpl is renamed to NavigatorContentUtilsClientImpl.
1310
1311         * features.gypi:
1312         * src/ChromeClientImpl.cpp:
1313         (WebKit):
1314         (WebKit::NavigatorContentUtilsClientImpl::create):
1315         (WebKit::NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl):
1316         (WebKit::NavigatorContentUtilsClientImpl::registerProtocolHandler):
1317         * src/ChromeClientImpl.h:
1318         (NavigatorContentUtilsClientImpl):
1319         (WebKit::NavigatorContentUtilsClientImpl::~NavigatorContentUtilsClientImpl):
1320         * src/WebViewImpl.cpp:
1321         (WebKit::WebViewImpl::WebViewImpl):
1322         * src/WebViewImpl.h:
1323
1324 2012-08-27  Johnny Ding  <jnd@chromium.org>
1325
1326         [Chromium-Android]Move webkit_unit_tests_apk and TestWebKitAPI_apk into a
1327         condition block:['OS=="android" and gtest_target_type == "shared_library"'].
1328         https://bugs.webkit.org/show_bug.cgi?id=95049
1329
1330         Reviewed by Adam Barth.
1331
1332         Move webkit_unit_tests_apk and TestWebKitAPI_apk into block of gtest_target_type == "shared_library"
1333
1334         * All.gyp:
1335
1336 2012-08-24  Dominic Mazzoni  <dmazzoni@google.com>
1337
1338         Chromium: WebAccessibilityObject should expose updateBackingStore
1339         https://bugs.webkit.org/show_bug.cgi?id=94611
1340
1341         Reviewed by Chris Fleizach.
1342
1343         This change just exposes a method, with no new tests. Next, Chromium
1344         will be modified to call this new method, and this will be followed
1345         by a change that gets rid of calls to updateBackingStore under the
1346         hood. That last change may add a test or update an existing test.
1347
1348         * public/WebAccessibilityObject.h:
1349         (WebAccessibilityObject):
1350         * src/WebAccessibilityObject.cpp:
1351         (WebKit::WebAccessibilityObject::updateBackingStoreAndCheckValidity):
1352         (WebKit):
1353
1354 2012-08-24  W. James MacLean  <wjmaclean@chromium.org>
1355
1356         [chromium] WebViewImpl::enableTouchHighlight() should always clear any existing highlight when invoked.
1357         https://bugs.webkit.org/show_bug.cgi?id=94978
1358
1359         Reviewed by James Robinson.
1360
1361         Modified WebViewImpl::enableTouchHighlight() so it always clears any existing highlight, even if no new
1362         highlight target is found.
1363
1364         * src/WebViewImpl.cpp:
1365         (WebKit::WebViewImpl::enableTouchHighlight):
1366
1367 2012-08-23  James Robinson  <jamesr@chromium.org>
1368
1369         [chromium] Convert WebLayerTreeView interface into pure virtual
1370         https://bugs.webkit.org/show_bug.cgi?id=94866
1371
1372         Reviewed by Adrienne Walker.
1373
1374         Updates WebLayerTreeView implementation and callers to new interface. The createGraphicsContext3D() wrapper
1375         stuff can just go away now since downstream has updated to createOutputSurface().
1376
1377         * WebKit.gypi:
1378         * src/WebLayerTreeView.cpp: Removed.
1379         * src/WebLayerTreeViewImpl.cpp:
1380         (WebKit::WebLayerTreeView::create):
1381         (WebKit::WebLayerTreeViewImpl::WebLayerTreeViewImpl):
1382         (WebKit::WebLayerTreeViewImpl::initialize):
1383         (WebKit):
1384         (WebKit::WebLayerTreeViewImpl::setSurfaceReady):
1385         (WebKit::WebLayerTreeViewImpl::setRootLayer):
1386         (WebKit::WebLayerTreeViewImpl::clearRootLayer):
1387         (WebKit::WebLayerTreeViewImpl::compositorIdentifier):
1388         (WebKit::WebLayerTreeViewImpl::setViewportSize):
1389         (WebKit::WebLayerTreeViewImpl::layoutViewportSize):
1390         (WebKit::WebLayerTreeViewImpl::deviceViewportSize):
1391         (WebKit::WebLayerTreeViewImpl::setDeviceScaleFactor):
1392         (WebKit::WebLayerTreeViewImpl::deviceScaleFactor):
1393         (WebKit::WebLayerTreeViewImpl::setBackgroundColor):
1394         (WebKit::WebLayerTreeViewImpl::setHasTransparentBackground):
1395         (WebKit::WebLayerTreeViewImpl::setVisible):
1396         (WebKit::WebLayerTreeViewImpl::setPageScaleFactorAndLimits):
1397         (WebKit::WebLayerTreeViewImpl::startPageScaleAnimation):
1398         (WebKit::WebLayerTreeViewImpl::setNeedsAnimate):
1399         (WebKit::WebLayerTreeViewImpl::setNeedsRedraw):
1400         (WebKit::WebLayerTreeViewImpl::commitRequested):
1401         (WebKit::WebLayerTreeViewImpl::composite):
1402         (WebKit::WebLayerTreeViewImpl::updateAnimations):
1403         (WebKit::WebLayerTreeViewImpl::compositeAndReadback):
1404         (WebKit::WebLayerTreeViewImpl::finishAllRendering):
1405         (WebKit::WebLayerTreeViewImpl::renderingStats):
1406         (WebKit::WebLayerTreeViewImpl::setFontAtlas):
1407         (WebKit::WebLayerTreeViewImpl::loseCompositorContext):
1408         (WebKit::WebLayerTreeViewImpl::willBeginFrame):
1409         (WebKit::WebLayerTreeViewImpl::didBeginFrame):
1410         (WebKit::WebLayerTreeViewImpl::animate):
1411         (WebKit::WebLayerTreeViewImpl::layout):
1412         (WebKit::WebLayerTreeViewImpl::applyScrollAndScale):
1413         (WebKit::WebLayerTreeViewImpl::createOutputSurface):
1414         (WebKit::WebLayerTreeViewImpl::didRecreateOutputSurface):
1415         (WebKit::WebLayerTreeViewImpl::willCommit):
1416         (WebKit::WebLayerTreeViewImpl::didCommit):
1417         (WebKit::WebLayerTreeViewImpl::didCommitAndDrawFrame):
1418         (WebKit::WebLayerTreeViewImpl::didCompleteSwapBuffers):
1419         (WebKit::WebLayerTreeViewImpl::scheduleComposite):
1420         * src/WebLayerTreeViewImpl.h:
1421         (WebLayerTreeViewImpl):
1422         * src/WebViewImpl.cpp:
1423         (WebKit::WebViewImpl::renderingStats):
1424         (WebKit::WebViewImpl::startPageScaleAnimation):
1425         (WebKit::WebViewImpl::setCompositorSurfaceReady):
1426         (WebKit::WebViewImpl::animate):
1427         (WebKit::WebViewImpl::doPixelReadbackToCanvas):
1428         (WebKit::WebViewImpl::paint):
1429         (WebKit::WebViewImpl::composite):
1430         (WebKit::WebViewImpl::setNeedsRedraw):
1431         (WebKit::WebViewImpl::isInputThrottled):
1432         (WebKit::WebViewImpl::loseCompositorContext):
1433         (WebKit::WebViewImpl::setDeviceScaleFactor):
1434         (WebKit::WebViewImpl::computePageScaleFactorLimits):
1435         (WebKit::WebViewImpl::setIsTransparent):
1436         (WebKit::WebViewImpl::setRootGraphicsLayer):
1437         (WebKit::WebViewImpl::scheduleCompositingLayerSync):
1438         (WebKit::WebViewImpl::invalidateRootLayerRect):
1439         (WebKit::WebViewImpl::setBackgroundColor):
1440         (WebKit::WebViewImpl::scheduleAnimation):
1441         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
1442         (WebKit):
1443         (WebKit::WebViewImpl::updateLayerTreeViewport):
1444         (WebKit::WebViewImpl::setVisibilityState):
1445         * src/WebViewImpl.h:
1446         (WebKit):
1447         * tests/CCLayerTreeHostTest.cpp:
1448         * tests/CCThreadedTest.cpp:
1449         * tests/CCThreadedTest.h:
1450         (WebKitTests::TestHooks::animate):
1451         * tests/FakeCCLayerTreeHostClient.h:
1452         * tests/GraphicsLayerChromiumTest.cpp:
1453         (WebKit::GraphicsLayerChromiumTest::GraphicsLayerChromiumTest):
1454         (WebKit::GraphicsLayerChromiumTest::~GraphicsLayerChromiumTest):
1455         (GraphicsLayerChromiumTest):
1456         * tests/WebLayerTest.cpp:
1457         * tests/WebLayerTreeViewTest.cpp:
1458         * tests/WebLayerTreeViewTestCommon.h:
1459         (MockWebLayerTreeViewClient):
1460
1461 2012-08-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1462
1463         Unreviewed.  Rolled DEPS.
1464
1465         * DEPS:
1466
1467 2012-08-24  James Robinson  <jamesr@chromium.org>
1468
1469         [chromium] Clean up WebAnimation animationId/groupId generation
1470         https://bugs.webkit.org/show_bug.cgi?id=94973
1471
1472         Reviewed by Adrienne Walker.
1473
1474         * src/WebAnimationImpl.cpp:
1475         (WebKit::WebAnimation::create):
1476         (WebKit::WebAnimationImpl::WebAnimationImpl):
1477         (WebKit::WebAnimationImpl::id):
1478         (WebKit):
1479         * src/WebAnimationImpl.h:
1480         (WebAnimationImpl):
1481         * tests/AnimationTranslationUtilTest.cpp:
1482         (WebKit::animationCanBeTranslated):
1483         * tests/GraphicsLayerChromiumTest.cpp:
1484         (WebKit::TEST_F):
1485
1486 2012-08-24  Mark Pilgrim  <pilgrim@chromium.org>
1487
1488         [Chromium] Remove visitedLinkHash from PlatformSupport
1489         https://bugs.webkit.org/show_bug.cgi?id=94965
1490
1491         Reviewed by Adam Barth.
1492
1493         Part of a refactoring series. See tracking bug 82948.
1494
1495         * src/PlatformSupport.cpp:
1496         (WebCore):
1497
1498 2012-08-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1499
1500         Unreviewed, rolling out r126620.
1501         http://trac.webkit.org/changeset/126620
1502         https://bugs.webkit.org/show_bug.cgi?id=94976
1503
1504         ASSERT((intptr_t)m_bytesAllocated + deltaBytes > 0) is
1505         triggering on the bots (Requested by jchaffraix on #webkit).
1506
1507         * WebKit.gypi:
1508         * tests/Canvas2DLayerManagerTest.cpp: Removed.
1509
1510 2012-08-24  Justin Novosad  <junov@chromium.org>
1511
1512         [Chromium] Implementing a global limit on memory consumed by deferred 2D canvases
1513         https://bugs.webkit.org/show_bug.cgi?id=94386
1514
1515         Reviewed by Stephen White.
1516
1517         Adding unit tests for WebCore::Canvas2DLayerManager
1518
1519         * WebKit.gypi:
1520         * tests/Canvas2DLayerManagerTest.cpp: Added.
1521         (FakeCanvas2DLayerBridge):
1522         (FakeCanvas2DLayerBridge::FakeCanvas2DLayerBridge):
1523         (FakeCanvas2DLayerBridge::fakeFreeableBytes):
1524         (Canvas2DLayerManagerTest):
1525         (Canvas2DLayerManagerTest::storageAllocationTrackingTest):
1526         (Canvas2DLayerManagerTest::evictionTest):
1527         (Canvas2DLayerManagerTest::flushEvictionTest):
1528
1529 2012-08-24  Cris Neckar  <cdn@chromium.org>
1530
1531         Plumb consumeUserGesture() to the chromium platform layer.
1532         https://bugs.webkit.org/show_bug.cgi?id=9475294867
1533
1534         Reviewed by Adam Barth.
1535
1536         * public/WebFrame.h:
1537         (WebFrame):
1538         * src/WebFrameImpl.cpp:
1539         (WebKit::WebFrameImpl::consumeUserGesture):
1540         (WebKit):
1541         * src/WebFrameImpl.h:
1542         (WebFrameImpl):
1543
1544 2012-08-24  W. James MacLean  <wjmaclean@chromium.org>
1545
1546         [chromium] gestureTapDown should not select a RenderView node as target.
1547         https://bugs.webkit.org/show_bug.cgi?id=94956
1548
1549         Reviewed by James Robinson.
1550
1551         Add check to prevent selecting a RenderView node as a highlight target.
1552
1553         * src/WebViewImpl.cpp:
1554         (WebKit::WebViewImpl::bestTouchLinkNode):
1555
1556 2012-08-24  Tommy Widenflycht  <tommyw@google.com>
1557
1558         MediaStream API: Add readyState functionality to RTCPeerConnection
1559         https://bugs.webkit.org/show_bug.cgi?id=94813
1560
1561         Reviewed by Adam Barth.
1562
1563         * src/AssertMatchingEnums.cpp:
1564
1565 2012-08-24  Dan Carney  <dcarney@google.com>
1566
1567         [V8] Refactor away IsolatedWorld
1568         https://bugs.webkit.org/show_bug.cgi?id=93971
1569
1570         Reviewed by Kentaro Hara.
1571
1572         Remove IsolatedWorld class as it was 1:1 with DOMWrapperWorld.
1573
1574         * src/WebViewImpl.cpp:
1575         (WebKit::WebView::addUserScript):
1576         (WebKit::WebView::addUserStyleSheet):
1577
1578 2012-08-23  Antoine Labour  <piman@chromium.org>
1579
1580         [chromium] Fix lost context when textures are evicted
1581         https://bugs.webkit.org/show_bug.cgi?id=94892
1582
1583         Reviewed by James Robinson.
1584
1585         After eviction, the CCPrioritizedTextureManager is in a limbo state
1586         where all its resources are invalid. If we try to release them we will
1587         double-destroy them.
1588
1589         New test: CCLayerTreeHostTestLostContextAfterEvictTextures.
1590
1591         * tests/CCLayerTreeHostTest.cpp:
1592         (CCLayerTreeHostTestLostContextAfterEvictTextures):
1593         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::CCLayerTreeHostTestLostContextAfterEvictTextures):
1594         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::beginTest):
1595         (EvictTexturesAndLoseContextTask):
1596         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::EvictTexturesAndLoseContextTask::EvictTexturesAndLoseContextTask):
1597         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::EvictTexturesAndLoseContextTask::~EvictTexturesAndLoseContextTask):
1598         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::EvictTexturesAndLoseContextTask::run):
1599         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::postEvictTexturesAndLoseContext):
1600         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::didCommitAndDrawFrame):
1601         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::commitCompleteOnCCThread):
1602         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::didRecreateOutputSurface):
1603         (WTF::CCLayerTreeHostTestLostContextAfterEvictTextures::afterTest):
1604         (WTF):
1605         (WTF::TEST_F):
1606
1607 2012-08-23  Antoine Labour  <piman@chromium.org>
1608
1609         [chromium] Add OVERRIDEs in test code
1610         https://bugs.webkit.org/show_bug.cgi?id=94894
1611
1612         Reviewed by James Robinson.
1613
1614         * tests/CCLayerTreeHostTest.cpp:
1615
1616 2012-08-23  Joshua Bell  <jsbell@chromium.org>
1617
1618         IndexedDB: Expose mechanism for database to force a connection to close
1619         https://bugs.webkit.org/show_bug.cgi?id=91010
1620
1621         Reviewed by Tony Chang.
1622
1623         In Chromium, the browsing data deleter has a WebIDBDatabase handle which
1624         it can use to terminate a connection. This handles forcefully closing
1625         the front end connections and the back end, to unblock disk cleanup.
1626
1627         * public/WebIDBDatabase.h:
1628         (WebKit::WebIDBDatabase::forceClose): Entry point.
1629         * public/WebIDBDatabaseCallbacks.h:
1630         (WebKit::WebIDBDatabaseCallbacks::onForcedClose): Plumbing back to front.
1631         * src/IDBDatabaseCallbacksProxy.cpp:
1632         (WebKit::IDBDatabaseCallbacksProxy::onForcedClose): Plumbing back to front.
1633         (WebKit):
1634         * src/IDBDatabaseCallbacksProxy.h:
1635         (IDBDatabaseCallbacksProxy): Plumbing.
1636         * src/WebIDBDatabaseCallbacksImpl.cpp:
1637         (WebKit::WebIDBDatabaseCallbacksImpl::onForcedClose): Plumbing back to front.
1638         (WebKit):
1639         * src/WebIDBDatabaseCallbacksImpl.h:
1640         (WebIDBDatabaseCallbacksImpl): Plumbing back to front.
1641         * src/WebIDBDatabaseImpl.cpp:
1642         (WebKit::WebIDBDatabaseImpl::close): Tidy up dropping the callback reference.
1643         (WebKit):
1644         (WebKit::WebIDBDatabaseImpl::forceClose): Terminate the connection by notifying
1645         the back end and the front end, while avoid re-entrant badness.
1646         * src/WebIDBDatabaseImpl.h: Header tweak for unit test.
1647         (WebIDBDatabaseImpl):
1648         * tests/IDBDatabaseBackendTest.cpp: Added unit test to exercise connections.
1649
1650 2012-08-23  James Robinson  <jamesr@chromium.org>
1651
1652         [chromium] Convert WebAnimationCurve subtypes into pure virtual
1653         https://bugs.webkit.org/show_bug.cgi?id=94068
1654
1655         Reviewed by Adrienne Walker.
1656
1657         Updates the implementations, some callers and tests of Web*AnimationCurve to its new interface.
1658
1659         * WebKit.gyp:
1660         * src/WebAnimation.cpp:
1661         (WebKit::WebAnimation::initialize):
1662         * src/WebFloatAnimationCurveImpl.cpp: Renamed from Source/WebKit/chromium/src/WebFloatAnimationCurve.cpp.
1663         (WebKit):
1664         (WebKit::WebFloatAnimationCurve::create):
1665         (WebKit::WebFloatAnimationCurveImpl::WebFloatAnimationCurveImpl):
1666         (WebKit::WebFloatAnimationCurveImpl::~WebFloatAnimationCurveImpl):
1667         (WebKit::WebFloatAnimationCurveImpl::type):
1668         (WebKit::WebFloatAnimationCurveImpl::add):
1669         (WebKit::WebFloatAnimationCurveImpl::getValue):
1670         (WebKit::WebFloatAnimationCurveImpl::cloneToCCAnimationCurve):
1671         * src/WebTransformAnimationCurve.cpp: Removed.
1672         * tests/WebAnimationTest.cpp:
1673         (WebKit::TEST):
1674         * tests/WebFloatAnimationCurveTest.cpp:
1675         (WebKit::TEST):
1676         * tests/WebTransformAnimationCurveTest.cpp:
1677         (WebKit::TEST):
1678
1679 2012-08-23  Kentaro Hara  <haraken@chromium.org>
1680
1681         [V8] Remove V8Proxy.{h,cpp}
1682         https://bugs.webkit.org/show_bug.cgi?id=94794
1683
1684         Reviewed by Dimitri Glazkov.
1685
1686         Now V8Proxy is no longer used. We can completely remove V8Proxy from the codebase.
1687
1688         No tests. No change in behavior.
1689
1690         * src/ChromeClientImpl.cpp:
1691         * src/WebBindings.cpp:
1692         * src/WebDOMMessageEvent.cpp:
1693         * src/WebDevToolsAgentImpl.cpp:
1694         * src/WebMediaPlayerClientImpl.cpp:
1695
1696 2012-08-23  Dana Jansens  <danakj@chromium.org>
1697
1698         [chromium] Don't require a RenderSurface* in order to create a RenderPass
1699         https://bugs.webkit.org/show_bug.cgi?id=94862
1700
1701         Reviewed by Adrienne Walker.
1702
1703         * tests/CCLayerTreeHostImplTest.cpp:
1704         * tests/CCRendererGLTest.cpp:
1705         (FakeCCRendererClient::FakeCCRendererClient):
1706
1707 2012-08-22  James Robinson  <jamesr@chromium.org>
1708
1709         [chromium] Remove WebLayer::setChildren API
1710         https://bugs.webkit.org/show_bug.cgi?id=94749
1711
1712         Reviewed by Adrienne Walker.
1713
1714         * src/WebLayer.cpp:
1715
1716 2012-08-23  Dana Jansens  <danakj@chromium.org>
1717
1718         [chromium] Create sharedQuadState at same time as creating quads and give them to the quadSink
1719         https://bugs.webkit.org/show_bug.cgi?id=94752
1720
1721         Reviewed by Adrienne Walker.
1722
1723         * tests/CCLayerTreeHostImplTest.cpp:
1724         * tests/CCLayerTreeHostTest.cpp:
1725         (WTF::EvictionTestLayerImpl::appendQuads):
1726         * tests/CCQuadCullerTest.cpp:
1727         * tests/CCRenderSurfaceTest.cpp:
1728         * tests/CCSolidColorLayerImplTest.cpp:
1729         (CCLayerTestCommon::TEST):
1730         * tests/CCTiledLayerImplTest.cpp:
1731         (CCLayerTestCommon::TEST):
1732         (CCLayerTestCommon::getQuads):
1733         (CCLayerTestCommon::coverageVisibleRectOnTileBoundaries):
1734         (CCLayerTestCommon::coverageVisibleRectIntersectsTiles):
1735         (CCLayerTestCommon::coverageVisibleRectIntersectsBounds):
1736         * tests/MockCCQuadCuller.h:
1737         (WebCore::MockCCQuadCuller::MockCCQuadCuller):
1738         (MockCCQuadCuller):
1739         (WebCore::MockCCQuadCuller::quadList):
1740         (WebCore::MockCCQuadCuller::sharedQuadStateList):
1741
1742 2012-08-23  Pavel Feldman  <pfeldman@chromium.org>
1743
1744         Not reviewed - fixing input list for timeline inspector module.
1745         https://bugs.webkit.org/show_bug.cgi?id=94829
1746
1747         * WebKit.gyp:
1748
1749 2012-08-23  Alexandre Elias  <aelias@chromium.org>
1750
1751         [chromium] Rename LayerRendererChromium to GL-specific name
1752         https://bugs.webkit.org/show_bug.cgi?id=94835
1753
1754         Reviewed by James Robinson.
1755
1756         Over time, LayerRendererChromium has evolved to be a GL-specific
1757         subclass of CCRenderer that has no awareness of layers (as it operates
1758         only with drawQuads).
1759
1760         This patch renames LayerRendererChromium to CCRendererGL, replaces all
1761         instances of "layerRenderer" with just "renderer", and removes a
1762         few unnecessary includes of LayerRendererChromium.h.
1763
1764         * WebKit.gypi:
1765         * tests/CCLayerTreeHostImplTest.cpp:
1766         * tests/CCLayerTreeHostTest.cpp:
1767         (WTF::CCLayerTreeHostTestLayerOcclusion::beginTest):
1768         (WTF::CCLayerTreeHostTestLayerOcclusionWithFilters::beginTest):
1769         (WTF::CCLayerTreeHostTestManySurfaces::beginTest):
1770         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::drawLayersOnCCThread):
1771         * tests/CCRendererGLTest.cpp: Renamed from Source/WebKit/chromium/tests/LayerRendererChromiumTest.cpp.
1772         (FrameCountingMemoryAllocationSettingContext):
1773         (FrameCountingMemoryAllocationSettingContext::FrameCountingMemoryAllocationSettingContext):
1774         (FrameCountingMemoryAllocationSettingContext::prepareTexture):
1775         (FrameCountingMemoryAllocationSettingContext::setMemoryAllocationChangedCallbackCHROMIUM):
1776         (FrameCountingMemoryAllocationSettingContext::getString):
1777         (FrameCountingMemoryAllocationSettingContext::frameCount):
1778         (FrameCountingMemoryAllocationSettingContext::setMemoryAllocation):
1779         (FakeCCRendererClient):
1780         (FakeCCRendererClient::FakeCCRendererClient):
1781         (FakeCCRendererClient::setFullRootLayerDamageCount):
1782         (FakeCCRendererClient::rootRenderPass):
1783         (FakeCCRendererClient::renderPassesInDrawOrder):
1784         (FakeCCRendererClient::renderPasses):
1785         (FakeCCRendererClient::memoryAllocationLimitBytes):
1786         (FakeCCRendererGL):
1787         (FakeCCRendererGL::FakeCCRendererGL):
1788         (CCRendererGLTest):
1789         (CCRendererGLTest::CCRendererGLTest):
1790         (CCRendererGLTest::SetUp):
1791         (CCRendererGLTest::TearDown):
1792         (CCRendererGLTest::swapBuffers):
1793         (CCRendererGLTest::context):
1794         (TEST_F):
1795         (ForbidSynchronousCallContext):
1796         (ForbidSynchronousCallContext::ForbidSynchronousCallContext):
1797         (ForbidSynchronousCallContext::getActiveAttrib):
1798         (ForbidSynchronousCallContext::getActiveUniform):
1799         (ForbidSynchronousCallContext::getAttachedShaders):
1800         (ForbidSynchronousCallContext::getAttribLocation):
1801         (ForbidSynchronousCallContext::getBooleanv):
1802         (ForbidSynchronousCallContext::getBufferParameteriv):
1803         (ForbidSynchronousCallContext::getContextAttributes):
1804         (ForbidSynchronousCallContext::getError):
1805         (ForbidSynchronousCallContext::getFloatv):
1806         (ForbidSynchronousCallContext::getFramebufferAttachmentParameteriv):
1807         (ForbidSynchronousCallContext::getIntegerv):
1808         (ForbidSynchronousCallContext::getProgramiv):
1809         (ForbidSynchronousCallContext::getShaderiv):
1810         (ForbidSynchronousCallContext::getString):
1811         (ForbidSynchronousCallContext::getProgramInfoLog):
1812         (ForbidSynchronousCallContext::getRenderbufferParameteriv):
1813         (ForbidSynchronousCallContext::getShaderInfoLog):
1814         (ForbidSynchronousCallContext::getShaderPrecisionFormat):
1815         (ForbidSynchronousCallContext::getShaderSource):
1816         (ForbidSynchronousCallContext::getTexParameterfv):
1817         (ForbidSynchronousCallContext::getTexParameteriv):
1818         (ForbidSynchronousCallContext::getUniformfv):
1819         (ForbidSynchronousCallContext::getUniformiv):
1820         (ForbidSynchronousCallContext::getUniformLocation):
1821         (ForbidSynchronousCallContext::getVertexAttribfv):
1822         (ForbidSynchronousCallContext::getVertexAttribiv):
1823         (ForbidSynchronousCallContext::getVertexAttribOffset):
1824         (TEST):
1825         (LoseContextOnFirstGetContext):
1826         (LoseContextOnFirstGetContext::LoseContextOnFirstGetContext):
1827         (ContextThatDoesNotSupportMemoryManagmentExtensions):
1828         (ContextThatDoesNotSupportMemoryManagmentExtensions::ContextThatDoesNotSupportMemoryManagmentExtensions):
1829         (ContextThatDoesNotSupportMemoryManagmentExtensions::prepareTexture):
1830         (ContextThatDoesNotSupportMemoryManagmentExtensions::setMemoryAllocationChangedCallbackCHROMIUM):
1831         (ContextThatDoesNotSupportMemoryManagmentExtensions::getString):
1832         (ClearCountingContext):
1833         (ClearCountingContext::ClearCountingContext):
1834         (ClearCountingContext::clear):
1835         (ClearCountingContext::clearCount):
1836         * tests/TiledLayerChromiumTest.cpp:
1837
1838 2012-08-23  Stephen White  <senorblanco@chromium.org>
1839
1840         Unreviewed.  Rolled DEPS.
1841
1842         * DEPS:
1843
1844 2012-08-23  Wei Jia  <wjia@chromium.org>
1845
1846         create different WebKit::WebMediaPlayer based on URL
1847         https://bugs.webkit.org/show_bug.cgi?id=91301
1848
1849         Reviewed by Adam Barth.
1850
1851         Pass URL to WebFrameClient::createMediaPlayer(). This allows creation
1852         of different WebMediaPlayer implementations based on the URL.
1853
1854         * public/WebFrameClient.h:
1855         (WebKit::WebFrameClient::createMediaPlayer): add URL as additional argument.
1856         * src/WebMediaPlayerClientImpl.cpp:
1857         (WebKit::createWebMediaPlayer): add URL as additional argument.
1858         (WebKit::WebMediaPlayerClientImpl::loadInternal):
1859
1860 2012-08-23  Joshua Bell  <jsbell@chromium.org>
1861
1862         IndexedDB: Move onSuccess(IDBDatabaseBackendInterface) to IDBOpenDBRequest
1863         https://bugs.webkit.org/show_bug.cgi?id=94757
1864
1865         Reviewed by Tony Chang.
1866
1867         Drop onSuccess(IDBDatabaseBackendImpl) overload from test, as it is no longer
1868         implemented by IDBRequest.
1869
1870         * tests/IDBRequestTest.cpp:
1871         (WebCore::TEST):
1872
1873 2012-08-23  Kenneth Russell  <kbr@google.com>
1874
1875         Convert ScrollableArea ASSERT_NOT_REACHED virtuals into pure virtuals
1876         https://bugs.webkit.org/show_bug.cgi?id=93306
1877
1878         Unreviewed build fix.
1879
1880         * src/ScrollbarGroup.h:
1881
1882 2012-08-23  Adrienne Walker  <enne@google.com>
1883
1884         Convert ScrollableArea ASSERT_NOT_REACHED virtuals
1885         https://bugs.webkit.org/show_bug.cgi?id=93306
1886
1887         Reviewed by Darin Adler.
1888
1889         Add implementations where necessary to make derived classes concrete.
1890         Add OVERRIDE for ScrollableArea functions.
1891
1892         * src/ScrollbarGroup.h:
1893         (ScrollbarGroup):
1894         (WebKit::ScrollbarGroup::scrollCornerRect):
1895         * tests/ScrollAnimatorNoneTest.cpp:
1896         (MockScrollableArea):
1897
1898 2012-08-23  David Reveman  <reveman@chromium.org>
1899
1900         [Chromium] Unnecessary delay when starting to update resources with an inactive vsync timer.
1901         https://bugs.webkit.org/show_bug.cgi?id=94719
1902
1903         Reviewed by James Robinson.
1904
1905         * tests/CCSchedulerTestCommon.h:
1906
1907 2012-08-23  Peter Beverloo  <peter@chromium.org>
1908
1909         Unreviewed.  Rolled DEPS.
1910
1911         * DEPS:
1912
1913 2012-08-22  Alec Flett  <alecflett@chromium.org>
1914
1915         IndexedDB: tests for injection/extraction of idb keys
1916         https://bugs.webkit.org/show_bug.cgi?id=94653
1917
1918         Reviewed by Tony Chang.
1919
1920         Added unit tests for key injection/extraction using
1921         SerializedScriptValue. These were moved from chromium, now
1922         that all uses of the API are through WebKit.
1923
1924         * tests/IDBKeyPathTest.cpp:
1925         (WebCore):
1926         (WebCore::TEST):
1927
1928 2012-08-22  James Robinson  <jamesr@chromium.org>
1929
1930         [chromium] Change WebLayer from a concrete type to a pure virtual interface
1931         https://bugs.webkit.org/show_bug.cgi?id=94174
1932
1933         Reviewed by Adrienne Walker.
1934
1935         This updates the implementation of the Web*Layer family to the new design and updates callers in WebViewImpl /
1936         NonCompositedContentHost / LinkHighlight.
1937
1938         * WebKit.gypi:
1939         * src/LinkHighlight.cpp:
1940         (WebKit::LinkHighlight::LinkHighlight):
1941         (WebKit::LinkHighlight::contentLayer):
1942         (WebKit::LinkHighlight::clipLayer):
1943         (WebKit::LinkHighlight::releaseResources):
1944         (WebKit::LinkHighlight::computeHighlightLayerPathAndPosition):
1945         (WebKit::LinkHighlight::startHighlightAnimation):
1946         (WebKit::LinkHighlight::updateGeometry):
1947         * src/LinkHighlight.h:
1948         (LinkHighlight):
1949         * src/NonCompositedContentHost.cpp:
1950         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
1951         (WebKit::NonCompositedContentHost::setScrollLayer):
1952         (WebKit::NonCompositedContentHost::setViewport):
1953         (WebKit::NonCompositedContentHost::scrollLayer):
1954         * src/NonCompositedContentHost.h:
1955         * src/WebContentLayer.cpp: Removed.
1956         * src/WebContentLayerImpl.cpp:
1957         (WebKit::WebContentLayer::create):
1958         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
1959         (WebKit::WebContentLayerImpl::~WebContentLayerImpl):
1960         (WebKit::WebContentLayerImpl::layer):
1961         (WebKit):
1962         (WebKit::WebContentLayerImpl::setDoubleSided):
1963         (WebKit::WebContentLayerImpl::setContentsScale):
1964         (WebKit::WebContentLayerImpl::setUseLCDText):
1965         (WebKit::WebContentLayerImpl::setDrawCheckerboardForMissingTiles):
1966         (WebKit::WebContentLayerImpl::paintContents):
1967         * src/WebContentLayerImpl.h:
1968         (WebContentLayerImpl):
1969         * src/WebExternalTextureLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebExternalTextureLayer.cpp.
1970         (WebKit):
1971         (WebKit::WebExternalTextureLayer::create):
1972         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
1973         (WebKit::WebExternalTextureLayerImpl::~WebExternalTextureLayerImpl):
1974         (WebKit::WebExternalTextureLayerImpl::layer):
1975         (WebKit::WebExternalTextureLayerImpl::setTextureId):
1976         (WebKit::WebExternalTextureLayerImpl::setFlipped):
1977         (WebKit::WebExternalTextureLayerImpl::setUVRect):
1978         (WebKit::WebExternalTextureLayerImpl::setOpaque):
1979         (WebKit::WebExternalTextureLayerImpl::setPremultipliedAlpha):
1980         (WebKit::WebExternalTextureLayerImpl::willModifyTexture):
1981         (WebKit::WebExternalTextureLayerImpl::setRateLimitContext):
1982         (WebTextureUpdaterImpl):
1983         (WebKit::WebTextureUpdaterImpl::WebTextureUpdaterImpl):
1984         (WebKit::WebExternalTextureLayerImpl::prepareTexture):
1985         (WebKit::WebExternalTextureLayerImpl::context):
1986         * src/WebExternalTextureLayerImpl.h: Copied from Source/Platform/chromium/public/WebVideoLayer.h.
1987         (WebKit):
1988         (WebExternalTextureLayerImpl):
1989         * src/WebIOSurfaceLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebIOSurfaceLayer.cpp.
1990         (WebKit):
1991         (WebKit::WebIOSurfaceLayer::create):
1992         (WebKit::WebIOSurfaceLayerImpl::WebIOSurfaceLayerImpl):
1993         (WebKit::WebIOSurfaceLayerImpl::~WebIOSurfaceLayerImpl):
1994         (WebKit::WebIOSurfaceLayerImpl::setIOSurfaceProperties):
1995         (WebKit::WebIOSurfaceLayerImpl::layer):
1996         * src/WebIOSurfaceLayerImpl.h: Copied from Source/Platform/chromium/public/WebImageLayer.h.
1997         (WebCore):
1998         (WebKit):
1999         (WebIOSurfaceLayerImpl):
2000         * src/WebImageLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebSolidColorLayer.cpp.
2001         (WebKit):
2002         (WebKit::WebImageLayer::create):
2003         (WebKit::WebImageLayerImpl::WebImageLayerImpl):
2004         (WebKit::WebImageLayerImpl::~WebImageLayerImpl):
2005         (WebKit::WebImageLayerImpl::layer):
2006         (WebKit::WebImageLayerImpl::setBitmap):
2007         * src/WebImageLayerImpl.h: Renamed from Source/WebKit/chromium/src/WebImageLayer.cpp.
2008         (WebCore):
2009         (WebKit):
2010         (WebImageLayerImpl):
2011         * src/WebLayer.cpp: Removed.
2012         * src/WebLayerImpl.cpp:
2013         (WebKit::WebLayer::create):
2014         (WebKit::WebLayerImpl::WebLayerImpl):
2015         (WebKit::WebLayerImpl::~WebLayerImpl):
2016         (WebKit):
2017         (WebKit::WebLayerImpl::id):
2018         (WebKit::WebLayerImpl::invalidateRect):
2019         (WebKit::WebLayerImpl::invalidate):
2020         (WebKit::WebLayerImpl::addChild):
2021         (WebKit::WebLayerImpl::insertChild):
2022         (WebKit::WebLayerImpl::replaceChild):
2023         (WebKit::WebLayerImpl::setChildren):
2024         (WebKit::WebLayerImpl::removeFromParent):
2025         (WebKit::WebLayerImpl::removeAllChildren):
2026         (WebKit::WebLayerImpl::setAnchorPoint):
2027         (WebKit::WebLayerImpl::anchorPoint):
2028         (WebKit::WebLayerImpl::setAnchorPointZ):
2029         (WebKit::WebLayerImpl::anchorPointZ):
2030         (WebKit::WebLayerImpl::setBounds):
2031         (WebKit::WebLayerImpl::bounds):
2032         (WebKit::WebLayerImpl::setMasksToBounds):
2033         (WebKit::WebLayerImpl::masksToBounds):
2034         (WebKit::WebLayerImpl::setMaskLayer):
2035         (WebKit::WebLayerImpl::setReplicaLayer):
2036         (WebKit::WebLayerImpl::setOpacity):
2037         (WebKit::WebLayerImpl::opacity):
2038         (WebKit::WebLayerImpl::setOpaque):
2039         (WebKit::WebLayerImpl::opaque):
2040         (WebKit::WebLayerImpl::setPosition):
2041         (WebKit::WebLayerImpl::position):
2042         (WebKit::WebLayerImpl::setSublayerTransform):
2043         (WebKit::WebLayerImpl::sublayerTransform):
2044         (WebKit::WebLayerImpl::setTransform):
2045         (WebKit::WebLayerImpl::transform):
2046         (WebKit::WebLayerImpl::setDrawsContent):
2047         (WebKit::WebLayerImpl::drawsContent):
2048         (WebKit::WebLayerImpl::setPreserves3D):
2049         (WebKit::WebLayerImpl::setUseParentBackfaceVisibility):
2050         (WebKit::WebLayerImpl::setBackgroundColor):
2051         (WebKit::WebLayerImpl::setFilters):
2052         (WebKit::WebLayerImpl::setBackgroundFilters):
2053         (WebKit::WebLayerImpl::setDebugBorderColor):
2054         (WebKit::WebLayerImpl::setDebugBorderWidth):
2055         (WebKit::WebLayerImpl::setDebugName):
2056         (WebKit::WebLayerImpl::setAnimationDelegate):
2057         (WebKit::WebLayerImpl::addAnimation):
2058         (WebKit::WebLayerImpl::removeAnimation):
2059         (WebKit::WebLayerImpl::pauseAnimation):
2060         (WebKit::WebLayerImpl::suspendAnimations):
2061         (WebKit::WebLayerImpl::resumeAnimations):
2062         (WebKit::WebLayerImpl::hasActiveAnimation):
2063         (WebKit::WebLayerImpl::transferAnimationsTo):
2064         (WebKit::WebLayerImpl::setForceRenderSurface):
2065         (WebKit::WebLayerImpl::setScrollPosition):
2066         (WebKit::WebLayerImpl::setScrollable):
2067         (WebKit::WebLayerImpl::setHaveWheelEventHandlers):
2068         (WebKit::WebLayerImpl::setShouldScrollOnMainThread):
2069         (WebKit::WebLayerImpl::setNonFastScrollableRegion):
2070         (WebKit::WebLayerImpl::setIsContainerForFixedPositionLayers):
2071         (WebKit::WebLayerImpl::setFixedToContainerLayer):
2072         (WebKit::WebLayerImpl::layer):
2073         * src/WebLayerImpl.h:
2074         (WebCore):
2075         (WebLayerImpl):
2076         * src/WebLayerTreeView.cpp:
2077         (WebKit::WebLayerTreeView::setRootLayer):
2078         * src/WebLayerTreeViewImpl.cpp:
2079         (WebKit::WebLayerTreeViewImpl::create):
2080         * src/WebMediaPlayerClientImpl.cpp:
2081         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
2082         (WebKit::WebMediaPlayerClientImpl::repaint):
2083         (WebKit::WebMediaPlayerClientImpl::setOpaque):
2084         (WebKit::WebMediaPlayerClientImpl::platformLayer):
2085         (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
2086         * src/WebMediaPlayerClientImpl.h:
2087         (WebMediaPlayerClientImpl):
2088         * src/WebPluginContainerImpl.cpp:
2089         (WebKit::WebPluginContainerImpl::setBackingTextureId):
2090         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
2091         (WebKit::WebPluginContainerImpl::commitBackingTexture):
2092         (WebKit::WebPluginContainerImpl::setOpaque):
2093         (WebKit::WebPluginContainerImpl::platformLayer):
2094         * src/WebPluginContainerImpl.h:
2095         (WebPluginContainerImpl):
2096         * src/WebScrollableLayer.cpp: Removed.
2097         * src/WebScrollbarLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebScrollbarLayer.cpp.
2098         (WebKit):
2099         (WebKit::WebScrollbarLayer::create):
2100         (WebKit::WebScrollbarLayerImpl::WebScrollbarLayerImpl):
2101         (WebKit::WebScrollbarLayerImpl::~WebScrollbarLayerImpl):
2102         (WebKit::WebScrollbarLayerImpl::layer):
2103         (WebKit::WebScrollbarLayerImpl::setScrollLayer):
2104         * src/WebScrollbarLayerImpl.h: Copied from Source/WebKit/chromium/src/WebSolidColorLayerImpl.h.
2105         (WebCore):
2106         (WebKit):
2107         (WebScrollbarLayerImpl):
2108         * src/WebSolidColorLayerImpl.cpp:
2109         (WebKit::WebSolidColorLayer::create):
2110         (WebKit::WebSolidColorLayerImpl::WebSolidColorLayerImpl):
2111         (WebKit::WebSolidColorLayerImpl::layer):
2112         (WebKit):
2113         (WebKit::WebSolidColorLayerImpl::setBackgroundColor):
2114         * src/WebSolidColorLayerImpl.h:
2115         (WebCore):
2116         (WebKit):
2117         (WebSolidColorLayerImpl):
2118         * src/WebVideoLayerImpl.cpp: Copied from Source/WebKit/chromium/src/WebVideoLayer.cpp.
2119         (WebKit):
2120         (WebKit::WebVideoLayer::create):
2121         (WebKit::WebVideoLayerImpl::WebVideoLayerImpl):
2122         (WebKit::WebVideoLayerImpl::~WebVideoLayerImpl):
2123         (WebKit::WebVideoLayerImpl::layer):
2124         (WebKit::WebVideoLayerImpl::active):
2125         * src/WebVideoLayerImpl.h: Renamed from Source/WebKit/chromium/src/WebVideoLayer.cpp.
2126         (WebCore):
2127         (WebKit):
2128         (WebVideoLayerImpl):
2129         * src/WebViewImpl.cpp:
2130         (WebKit::WebViewImpl::WebViewImpl):
2131         (WebKit::WebViewImpl::setRootGraphicsLayer):
2132         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2133         (WebKit):
2134         * src/WebViewImpl.h:
2135         * tests/ImageLayerChromiumTest.cpp:
2136         (WebCore::TEST):
2137         * tests/WebLayerTest.cpp:
2138         * tests/WebLayerTreeViewTest.cpp:
2139
2140 2012-08-22  Alejandro PiƱeiro  <apinheiro@igalia.com>
2141
2142         Dojo toggle buttons should expose ROLE_TOGGLE_BUTTON not ROLE_PUSH_BUTTON
2143         https://bugs.webkit.org/show_bug.cgi?id=73819
2144
2145         Reviewed by Chris Fleizach.
2146
2147         Added a new role, Toggle Button, based on whether aria-pressed is present.
2148         http://www.w3.org/TR/wai-aria/states_and_properties#aria-pressed
2149
2150         * public/WebAccessibilityRole.h: added WebAccessibilityRoleToggleButton that
2151         matchs with WebCore ToggleButtonRole
2152         * src/AssertMatchingEnums.cpp: added the assert matching rule for
2153         WebAccessibilityRoleToggleButton and ToggleButtonRole
2154
2155 2012-08-17  Jeffrey Pfau  <jpfau@apple.com>
2156
2157         Allow blocking of Web SQL databases in third-party web workers
2158         https://bugs.webkit.org/show_bug.cgi?id=94170
2159
2160         Reviewed by Adam Barth.
2161
2162         Web workers did not previously know anything about the document that
2163         spawned them. This is undefined for shared workers, but for dedicated
2164         workers, we now pipe the information through.
2165
2166
2167         * src/WebWorkerClientImpl.cpp:
2168         (WebKit::WebWorkerClientImpl::startWorkerContext): Pass top document's origin
2169
2170 2012-08-22  Kentaro Hara  <haraken@chromium.org>
2171
2172         [V8] Move context() from V8Proxy to ScriptController
2173         https://bugs.webkit.org/show_bug.cgi?id=94593
2174
2175         Reviewed by Adam Barth.
2176
2177         To kill V8Proxy, we can move context() from V8Proxy to ScriptController.
2178
2179         No tests. No change in behavior.
2180
2181         * src/InspectorFrontendClientImpl.cpp:
2182         (WebKit::InspectorFrontendClientImpl::windowObjectCleared):
2183         * src/WebDevToolsFrontendImpl.cpp:
2184         (WebKit::WebDevToolsFrontendImpl::dispatchOnInspectorFrontend):
2185
2186 2012-08-22  Nikhil Bhargava  <nbhargava@google.com>
2187
2188         Reduce Font.h includes across project -- improves RenderObject.h compile time
2189         https://bugs.webkit.org/show_bug.cgi?id=93629
2190
2191         Reviewed by Eric Seidel.
2192
2193         Adds includes due to change in RenderStyle.h
2194
2195         * src/WebFrameImpl.cpp:
2196         * src/mac/WebSubstringUtil.mm:
2197
2198 2012-08-22  Nikhil Bhargava  <nbhargava@google.com>
2199
2200         Speed up compilation of tests involving WebTransformationMatrix
2201         https://bugs.webkit.org/show_bug.cgi?id=94639
2202
2203         Reviewed by James Robinson.
2204
2205         EXPECT_TRANSFORMATION_MATRIX_EQ was changed to become mainly a function.
2206         As a macro that expanded into 16 other macros, it caused an unneeded
2207         slow down of close to 45s in the compile time of CCLayerTreeHostCommonTest
2208         Bugs have been filed to clang and gcc noting the errant behavior:
2209         http://llvm.org/bugs/show_bug.cgi?id=13651 and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54337
2210
2211         * tests/CCLayerTreeHostCommonTest.cpp:
2212         * tests/CCLayerTreeTestCommon.h:
2213         (WebKitTests):
2214         (WebKitTests::ExpectTransformationMatrixEq):
2215         * tests/WebTransformOperationsTest.cpp:
2216         (TEST):
2217         (checkProgress):
2218         * tests/WebTransformationMatrixTest.cpp:
2219         (WebKit::TEST):
2220
2221 2012-08-22  Alexandre Elias  <aelias@google.com>
2222
2223         [chromium] Add software bitmap resources to CCResourceProvider
2224         https://bugs.webkit.org/show_bug.cgi?id=93677
2225
2226         Reviewed by Adrienne Walker.
2227
2228         Second commit after revert.
2229
2230         This adds the ability to CCResourceProvider to use software bitmaps.
2231         They are allocated as plain-old-memory, and exposed as Skia objects.
2232
2233         We want the ResourceProvider to be able to handle different resource
2234         types at the same time.  In practice, a default resource type is
2235         desired for most uses within a single compositor instance, which is
2236         specified by the default resource type.  Default resource types are
2237         expected to be mostly 1-to-1 with CCRenderer types.
2238
2239         New tests added by parametrizing existing CCResourceProvider tests.
2240
2241         * tests/CCResourceProviderTest.cpp:
2242         (WebKit::CCResourceProviderTest::getResourcePixels):
2243
2244 2012-08-22  W. James MacLean  <wjmaclean@chromium.org>
2245
2246         [chromium] Add touch link highlight animation layers.
2247         https://bugs.webkit.org/show_bug.cgi?id=84487
2248
2249         Reviewed by James Robinson.
2250
2251         Adds support for creating composited touch link highlights in renderer thread. Clipping not yet
2252         implemented for non-composited frames/overflow divs, but scrolling and layout changes are supported.
2253         Transform support currently limited to translation.
2254
2255         Unit tests for LinkHighlight revised.
2256
2257         * WebKit.gyp:
2258         * src/LinkHighlight.cpp: Added.
2259         (WebKit):
2260         (WebKit::LinkHighlight::create):
2261         (WebKit::LinkHighlight::LinkHighlight):
2262         (WebKit::LinkHighlight::~LinkHighlight):
2263         (WebKit::LinkHighlight::contentLayer): Accessor for layer containing highlight.
2264         (WebKit::LinkHighlight::clipLayer): Accessor for layer that provides clipping for highlight.
2265         (WebKit::LinkHighlight::releaseResources): Releases Node* for highlight target, clears client/delegate pointers.
2266         (WebKit::LinkHighlight::computeEnclosingCompositingLayer): Determines which GraphicsLayerChromium to attach highlight to.
2267         (WebKit::LinkHighlight::computeHighlightLayerPathAndPosition): Determines coordinates of highlight in owning GraphicsLayerChromium's coordinates.
2268         (WebKit::LinkHighlight::paintContents): If highlight active, paints highlight.
2269         (WebKit::LinkHighlight::startHighlightAnimation): Called to start highlight animation.
2270         (WebKit::LinkHighlight::clearGraphicsLayerLinkHighlightPointer): Removes this LinkHighlight's pointer from owning GraphicsLayerChromium.
2271         (WebKit::LinkHighlight::notifyAnimationStarted): Implements WebAnimationDelegate.
2272         (WebKit::LinkHighlight::notifyAnimationFinished): Implements WebAnimationDelegate, releases resources when animation completes.
2273         (WebKit::LinkHighlight::updateGeometry): Invokes computation of which GraphicsLayerChromium to attach to, and highlight shape & position.
2274             Computations proceed only if preceded by call to invalidate().
2275         (WebKit::LinkHighlight::clearCurrentGraphicsLayer): Handles notification that current GraphicsLayerChromium* is no longer valid.
2276         (WebKit::LinkHighlight::invalidate): Sets flag to allow geometry update on next call from WebViewImpl::layout().
2277         (WebKit::LinkHighlight::layer): Exports WebLayer* for use in GraphicsLayerChromium.
2278         * src/LinkHighlight.h: Renamed from Source/WebCore/platform/graphics/chromium/LinkHighlight.h.
2279         (WebCore):
2280         (WebKit):
2281         (LinkHighlight):
2282         * src/WebViewImpl.cpp:
2283         (WebKit::WebViewImpl::handleGestureEvent):
2284         (WebKit):
2285         (WebKit::highlightConditions):
2286         (WebKit::WebViewImpl::bestTouchLinkNode): Find highlight target node for touch event location.
2287         (WebKit::WebViewImpl::enableTouchHighlight): Invokes highlight for node at current touch event location.
2288         (WebKit::WebViewImpl::layout): Adds call to LinkHighlight::updateGeometry().
2289         * src/WebViewImpl.h:
2290         (WebKit):
2291         (WebViewImpl):
2292         (WebKit::WebViewImpl::linkHighlight):
2293         * tests/LinkHighlightTest.cpp:
2294         (WebCore):
2295         (WebCore::TEST):
2296         * tests/data/test_touch_link_highlight.html: Added.
2297
2298 2012-08-22  Adam Barth  <abarth@webkit.org>
2299
2300         WebWidget should be able to paint into a zoomed canvas without aliasing
2301         https://bugs.webkit.org/show_bug.cgi?id=92043
2302
2303         Reviewed by James Robinson.
2304
2305         If accelerated compositing is enabled, WebWidget::paint reads back from
2306         the compositor rather than re-painting the widget. That approach works
2307         well if the canvas we're rendering into is at a similar resolution to
2308         the pixels in the compositor, but if the canvas has been scaled (e.g.,
2309         to help the user disambiguate links), then reading back from the
2310         compositor will cause aliasing artifacts.
2311
2312         This patch adds an option to paint to let the embedder request a
2313         software re-rendering of the widget to avoid these aliasing artifacts.
2314
2315         * public/WebWidget.h:
2316         (WebKit::WebWidget::paint):
2317         * src/WebPagePopupImpl.cpp:
2318         (WebKit::WebPagePopupImpl::paint):
2319         * src/WebPagePopupImpl.h:
2320         (WebPagePopupImpl):
2321         * src/WebPopupMenuImpl.cpp:
2322         (WebKit::WebPopupMenuImpl::paint):
2323         * src/WebPopupMenuImpl.h:
2324         * src/WebViewImpl.cpp:
2325         (WebKit::canvasBackgroundForTransparencey):
2326         (WebKit):
2327         (WebKit::WebViewImpl::paint):
2328         * src/WebViewImpl.h:
2329         (WebViewImpl):
2330
2331 2012-08-22  Eric Penner  <epenner@google.com>
2332
2333         [chromium] Simplify updateContentRect, removing rect parameter, refactor unit tests.
2334         https://bugs.webkit.org/show_bug.cgi?id=94165
2335
2336         Reviewed by Adrienne Walker.
2337
2338         Refactored tests to remove lots of boilerplate code.
2339
2340         * tests/CCTiledLayerTestCommon.cpp:
2341         * tests/CCTiledLayerTestCommon.h:
2342         (FakeTiledLayerChromium):
2343         * tests/TiledLayerChromiumTest.cpp:
2344
2345 2012-08-22  Iain Merrick  <husky@chromium.org>
2346
2347         [chromium] Remove WebFrame::setSelectionToRange
2348         https://bugs.webkit.org/show_bug.cgi?id=94685
2349
2350         Reviewed by Adam Barth.
2351
2352         It has basically the same functionality as WebFrame::selectRange.
2353         The calling code was removed in Chromium patch 152608.
2354
2355         * public/WebFrame.h:
2356         (WebFrame):
2357         * src/WebFrameImpl.cpp:
2358         * src/WebFrameImpl.h:
2359         (WebFrameImpl):
2360
2361 2012-08-22  Kenneth Russell  <kbr@google.com>
2362
2363         Unreviewed, rolling out r126319.
2364         http://trac.webkit.org/changeset/126319
2365         https://bugs.webkit.org/show_bug.cgi?id=84487
2366
2367         Broke Chromium Mac build
2368
2369         * WebKit.gyp:
2370         * src/LinkHighlight.cpp: Removed.
2371         * src/WebViewImpl.cpp:
2372         (WebKit::WebViewImpl::handleGestureEvent):
2373         (WebKit::WebViewImpl::computeScaleAndScrollForHitRect):
2374         (WebKit::WebViewImpl::layout):
2375         * src/WebViewImpl.h:
2376         (WebKit):
2377         (WebViewImpl):
2378         * tests/LinkHighlightTest.cpp:
2379         * tests/data/test_touch_link_highlight.html: Removed.
2380
2381 2012-08-22  W. James MacLean  <wjmaclean@chromium.org>
2382
2383         [chromium] Add touch link highlight animation layers.
2384         https://bugs.webkit.org/show_bug.cgi?id=84487
2385
2386         Reviewed by James Robinson.
2387
2388         Adds support for creating composited touch link highlights in renderer thread. Clipping not yet
2389         implemented for non-composited frames/overflow divs, but scrolling and layout changes are supported.
2390         Transform support currently limited to translation.
2391
2392         Unit tests for LinkHighlight revised.
2393
2394         * WebKit.gyp:
2395         * src/LinkHighlight.cpp: Added.
2396         (WebKit):
2397         (WebKit::LinkHighlight::create):
2398         (WebKit::LinkHighlight::LinkHighlight):
2399         (WebKit::LinkHighlight::~LinkHighlight):
2400         (WebKit::LinkHighlight::contentLayer): Accessor for layer containing highlight.
2401         (WebKit::LinkHighlight::clipLayer): Accessor for layer that provides clipping for highlight.
2402         (WebKit::LinkHighlight::releaseResources): Releases Node* for highlight target, clears client/delegate pointers.
2403         (WebKit::LinkHighlight::computeEnclosingCompositingLayer): Determines which GraphicsLayerChromium to attach highlight to.
2404         (WebKit::LinkHighlight::computeHighlightLayerPathAndPosition): Determines coordinates of highlight in owning GraphicsLayerChromium's coordinates.
2405         (WebKit::LinkHighlight::paintContents): If highlight active, paints highlight.
2406         (WebKit::LinkHighlight::startHighlightAnimation): Called to start highlight animation.
2407         (WebKit::LinkHighlight::clearGraphicsLayerLinkHighlightPointer): Removes this LinkHighlight's pointer from owning GraphicsLayerChromium.
2408         (WebKit::LinkHighlight::notifyAnimationStarted): Implements WebAnimationDelegate.
2409         (WebKit::LinkHighlight::notifyAnimationFinished): Implements WebAnimationDelegate, releases resources when animation completes.
2410         (WebKit::LinkHighlight::updateGeometry): Invokes computation of which GraphicsLayerChromium to attach to, and highlight shape & position.
2411             Computations proceed only if preceded by call to invalidate().
2412         (WebKit::LinkHighlight::clearCurrentGraphicsLayer): Handles notification that current GraphicsLayerChromium* is no longer valid.
2413         (WebKit::LinkHighlight::invalidate): Sets flag to allow geometry update on next call from WebViewImpl::layout().
2414         (WebKit::LinkHighlight::layer): Exports WebLayer* for use in GraphicsLayerChromium.
2415         * src/LinkHighlight.h: Renamed from Source/WebCore/platform/graphics/chromium/LinkHighlight.h.
2416         (WebCore):
2417         (WebKit):
2418         (LinkHighlight):
2419         * src/WebViewImpl.cpp:
2420         (WebKit::WebViewImpl::handleGestureEvent):
2421         (WebKit):
2422         (WebKit::highlightConditions):
2423         (WebKit::WebViewImpl::bestTouchLinkNode): Find highlight target node for touch event location.
2424         (WebKit::WebViewImpl::enableTouchHighlight): Invokes highlight for node at current touch event location.
2425         (WebKit::WebViewImpl::layout): Adds call to LinkHighlight::updateGeometry().
2426         * src/WebViewImpl.h:
2427         (WebKit):
2428         (WebViewImpl):
2429         (WebKit::WebViewImpl::linkHighlight):
2430         * tests/LinkHighlightTest.cpp:
2431         (WebCore):
2432         (WebCore::TEST):
2433         * tests/data/test_touch_link_highlight.html: Added.
2434
2435 2012-08-22  Sheriff Bot  <webkit.review.bot@gmail.com>
2436
2437         Unreviewed.  Rolled DEPS.
2438
2439         * DEPS:
2440
2441 2012-08-21  Sheriff Bot  <webkit.review.bot@gmail.com>
2442
2443         Unreviewed, rolling out r126202.
2444         http://trac.webkit.org/changeset/126202
2445         https://bugs.webkit.org/show_bug.cgi?id=94657
2446
2447         Causes assertion failures on Chromium Linux dbg compositing
2448         layout tests (Requested by dominicc on #webkit).
2449
2450         * tests/CCResourceProviderTest.cpp:
2451         (WebKit::CCResourceProviderTest::CCResourceProviderTest):
2452         (WebKit::CCResourceProviderTest::getResourcePixels):
2453         (WebKit::TEST_F):
2454
2455 2012-08-21  Leandro Gracia Gil  <leandrogracia@chromium.org>
2456
2457         [Chromium] Find-in-page coordinates should use containingBlock
2458         https://bugs.webkit.org/show_bug.cgi?id=94343
2459
2460         Reviewed by Julien Chaffraix.
2461
2462         The current implementation uses the container method to climb the render tree.
2463         However, it would be more correct and convenient to use containingBlock instead.
2464         Also, this patch introduces new tests for find-in-page coordinates in tables.
2465
2466         * src/FindInPageCoordinates.cpp:
2467         (WebKit::toNormalizedRect): use containingBlock and get rid of the output parameter as it's not required now.
2468         (WebKit::findInPageRectFromAbsoluteRect): use containingBlock introduce some simplifications.
2469         * tests/WebFrameTest.cpp: add new tests for tables.
2470         * tests/data/find_in_page.html:
2471         * tests/data/find_in_page_frame.html: new tests for tables.
2472
2473 2012-08-21  Alexandre Elias  <aelias@google.com>
2474
2475         [chromium] Add software bitmap resources to CCResourceProvider
2476         https://bugs.webkit.org/show_bug.cgi?id=93677
2477
2478         Reviewed by Adrienne Walker.
2479
2480         This adds the ability to CCResourceProvider to use software bitmaps.
2481         They are allocated as plain-old-memory, and exposed as Skia objects.
2482
2483         We want the ResourceProvider to be able to handle different resource
2484         types at the same time.  In practice, a default resource type is
2485         desired for most uses within a single compositor instance, which is
2486         specified by the default resource type.  Default resource types are
2487         expected to be mostly 1-to-1 with CCRenderer types.
2488
2489         New tests added by parametrizing existing CCResourceProvider tests.
2490
2491         * tests/CCResourceProviderTest.cpp:
2492         (WebKit::CCResourceProviderTest::getResourcePixels):
2493
2494 2012-08-21  Oli Lan  <olilan@chromium.org>
2495
2496         [chromium] Add WebView methods setCompositionFromExistingText and extendSelectionAndDelete.
2497         https://bugs.webkit.org/show_bug.cgi?id=93724
2498
2499         Reviewed by Ryosuke Niwa.
2500
2501         This adds two new methods to WebViewImpl.
2502
2503         1) setCompositionFromExistingText creates a new composition from the existing text
2504         in the currently focused input field. The new composition is between the two offsets
2505         provided, relative to the rootEditableElement. The current selection is left unchanged.
2506         
2507         2) extendSelectionAndDelete extends the selection by the specified number of characters
2508         before and after, and then deletes the selection. If the selection is just a caret, the effect
2509         is to delete the specified number of characters before and after the current editing point.
2510
2511         These methods will be used e.g. by the Android port to implement IME functionality.
2512
2513         New tests WebViewTest.ExtendSelectionAndDelete and WebViewTest.SetCompositionFromExistingText
2514         test the two new methods.       
2515
2516         * public/WebView.h:
2517         (WebView):
2518         * src/WebViewImpl.cpp:
2519         (WebKit::WebViewImpl::setComposingRegion):
2520         (WebKit):
2521         (WebKit::extendSelectionAndDelete):
2522         * src/WebViewImpl.h:
2523         (WebViewImpl):
2524         * tests/WebViewTest.cpp:
2525
2526 2012-08-21  Alec Flett  <alecflett@chromium.org>
2527
2528         IndexedDB: remove old update/openCursor glue
2529         https://bugs.webkit.org/show_bug.cgi?id=94378
2530
2531         Reviewed by Tony Chang.
2532
2533         Remove Chromium/WebKit API for old methods that have now been
2534         removed from chromium proper.
2535
2536         * public/WebIDBObjectStore.h:
2537         * src/IDBObjectStoreBackendProxy.cpp:
2538         * src/IDBObjectStoreBackendProxy.h:
2539         (IDBObjectStoreBackendProxy):
2540         * src/WebIDBObjectStoreImpl.h:
2541         (WebIDBObjectStoreImpl):
2542
2543 2012-08-21  James Robinson  <jamesr@chromium.org>
2544
2545         [chromium] Should be able to destroy a CCLayerTreeHost without manually setting the root layer
2546         https://bugs.webkit.org/show_bug.cgi?id=94631
2547
2548         Reviewed by Adrienne Walker.
2549
2550         Tests that destroying a CCLayerTreeHost that still points to a non-null root doesn't crash.
2551
2552         * tests/LayerChromiumTest.cpp:
2553
2554 2012-08-21  James Robinson  <jamesr@chromium.org>
2555
2556         Unreviewed, rolling out r126170.
2557         http://trac.webkit.org/changeset/126170
2558         https://bugs.webkit.org/show_bug.cgi?id=94614
2559
2560         I spoke too soon
2561
2562         * WebKit.gypi:
2563         * src/NonCompositedContentHost.cpp:
2564         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
2565         (WebKit::NonCompositedContentHost::setScrollLayer):
2566         (WebKit::NonCompositedContentHost::setViewport):
2567         (WebKit::NonCompositedContentHost::scrollLayer):
2568         * src/NonCompositedContentHost.h:
2569         * src/WebContentLayer.cpp: Renamed from Source/WebKit/chromium/src/WebVideoLayerImpl.cpp.
2570         (WebKit):
2571         (WebKit::WebContentLayer::create):
2572         (WebKit::WebContentLayer::clearClient):
2573         (WebKit::WebContentLayer::setDoubleSided):
2574         (WebKit::WebContentLayer::setContentsScale):
2575         (WebKit::WebContentLayer::setUseLCDText):
2576         (WebKit::WebContentLayer::setDrawCheckerboardForMissingTiles):
2577         (WebKit::WebContentLayer::WebContentLayer):
2578         (WebKit::WebContentLayer::operator=):
2579         (WebKit::WebContentLayer::operator PassRefPtr<ContentLayerChromium>):
2580         * src/WebContentLayerImpl.cpp:
2581         (WebKit::WebContentLayerImpl::create):
2582         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
2583         (WebKit::WebContentLayerImpl::~WebContentLayerImpl):
2584         (WebKit::WebContentLayerImpl::paintContents):
2585         * src/WebContentLayerImpl.h:
2586         (WebContentLayerImpl):
2587         * src/WebExternalTextureLayer.cpp: Renamed from Source/WebKit/chromium/src/WebExternalTextureLayerImpl.cpp.
2588         (WebKit):
2589         (WebTextureUpdaterImpl):
2590         (WebKit::WebTextureUpdaterImpl::WebTextureUpdaterImpl):
2591         (WebExternalTextureLayerImpl):
2592         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
2593         (WebKit::WebExternalTextureLayer::create):
2594         (WebKit::WebExternalTextureLayer::clearClient):
2595         (WebKit::WebExternalTextureLayer::setTextureId):
2596         (WebKit::WebExternalTextureLayer::setFlipped):
2597         (WebKit::WebExternalTextureLayer::setUVRect):
2598         (WebKit::WebExternalTextureLayer::setOpaque):
2599         (WebKit::WebExternalTextureLayer::setPremultipliedAlpha):
2600         (WebKit::WebExternalTextureLayer::willModifyTexture):
2601         (WebKit::WebExternalTextureLayer::setRateLimitContext):
2602         (WebKit::WebExternalTextureLayer::WebExternalTextureLayer):
2603         * src/WebExternalTextureLayerImpl.h: Removed.
2604         * src/WebIOSurfaceLayer.cpp: Renamed from Source/WebKit/chromium/src/WebIOSurfaceLayerImpl.cpp.
2605         (WebKit):
2606         (WebKit::WebIOSurfaceLayer::create):
2607         (WebKit::WebIOSurfaceLayer::setIOSurfaceProperties):
2608         (WebKit::WebIOSurfaceLayer::WebIOSurfaceLayer):
2609         * src/WebIOSurfaceLayerImpl.h: Removed.
2610         * src/WebImageLayer.cpp: Renamed from Source/WebKit/chromium/src/WebImageLayerImpl.h.
2611         (WebKit):
2612         (WebKit::WebImageLayer::create):
2613         (WebKit::WebImageLayer::WebImageLayer):
2614         (WebKit::WebImageLayer::setBitmap):
2615         * src/WebLayer.cpp: Added.
2616         (WebKit):
2617         (WebKit::WebLayer::create):
2618         (WebKit::WebLayer::reset):
2619         (WebKit::WebLayer::assign):
2620         (WebKit::WebLayer::equals):
2621         (WebKit::WebLayer::invalidateRect):
2622         (WebKit::WebLayer::invalidate):
2623         (WebKit::WebLayer::addChild):
2624         (WebKit::WebLayer::insertChild):
2625         (WebKit::WebLayer::replaceChild):
2626         (WebKit::WebLayer::setChildren):
2627         (WebKit::WebLayer::removeFromParent):
2628         (WebKit::WebLayer::removeAllChildren):
2629         (WebKit::WebLayer::setAnchorPoint):
2630         (WebKit::WebLayer::anchorPoint):
2631         (WebKit::WebLayer::setAnchorPointZ):
2632         (WebKit::WebLayer::anchorPointZ):
2633         (WebKit::WebLayer::setBounds):
2634         (WebKit::WebLayer::bounds):
2635         (WebKit::WebLayer::setMasksToBounds):
2636         (WebKit::WebLayer::masksToBounds):
2637         (WebKit::WebLayer::setMaskLayer):
2638         (WebKit::WebLayer::setReplicaLayer):
2639         (WebKit::WebLayer::setOpacity):
2640         (WebKit::WebLayer::opacity):
2641         (WebKit::WebLayer::setOpaque):
2642         (WebKit::WebLayer::opaque):
2643         (WebKit::WebLayer::setPosition):
2644         (WebKit::WebLayer::position):
2645         (WebKit::WebLayer::setSublayerTransform):
2646         (WebKit::WebLayer::sublayerTransform):
2647         (WebKit::WebLayer::setTransform):
2648         (WebKit::WebLayer::transform):
2649         (WebKit::WebLayer::setDrawsContent):
2650         (WebKit::WebLayer::drawsContent):
2651         (WebKit::WebLayer::setPreserves3D):
2652         (WebKit::WebLayer::setUseParentBackfaceVisibility):
2653         (WebKit::WebLayer::setBackgroundColor):
2654         (WebKit::WebLayer::setFilters):
2655         (WebKit::WebLayer::setBackgroundFilters):
2656         (WebKit::WebLayer::setDebugBorderColor):
2657         (WebKit::WebLayer::setDebugBorderWidth):
2658         (WebKit::WebLayer::setDebugName):
2659         (WebKit::WebLayer::setAnimationDelegate):
2660         (WebKit::WebLayer::addAnimation):
2661         (WebKit::WebLayer::removeAnimation):
2662         (WebKit::WebLayer::pauseAnimation):
2663         (WebKit::WebLayer::suspendAnimations):
2664         (WebKit::WebLayer::resumeAnimations):
2665         (WebKit::WebLayer::hasActiveAnimation):
2666         (WebKit::WebLayer::transferAnimationsTo):
2667         (WebKit::WebLayer::setForceRenderSurface):
2668         (WebKit::WebLayer::clearRenderSurface):
2669         (WebKit::WebLayer::WebLayer):
2670         (WebKit::WebLayer::operator=):
2671         (WebKit::WebLayer::operator PassRefPtr<LayerChromium>):
2672         * src/WebLayerImpl.cpp:
2673         (WebKit::WebLayerImpl::create):
2674         (WebKit::WebLayerImpl::WebLayerImpl):
2675         (WebKit::WebLayerImpl::~WebLayerImpl):
2676         * src/WebLayerImpl.h:
2677         (WebLayerImpl):
2678         * src/WebLayerTreeView.cpp:
2679         (WebKit::WebLayerTreeView::setRootLayer):
2680         * src/WebLayerTreeViewImpl.cpp:
2681         (WebKit::WebLayerTreeViewImpl::create):
2682         * src/WebMediaPlayerClientImpl.cpp:
2683         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
2684         (WebKit::WebMediaPlayerClientImpl::repaint):
2685         (WebKit::WebMediaPlayerClientImpl::setOpaque):
2686         (WebKit::WebMediaPlayerClientImpl::platformLayer):
2687         (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
2688         * src/WebMediaPlayerClientImpl.h:
2689         (WebMediaPlayerClientImpl):
2690         * src/WebPluginContainerImpl.cpp:
2691         (WebKit::WebPluginContainerImpl::setBackingTextureId):
2692         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
2693         (WebKit::WebPluginContainerImpl::commitBackingTexture):
2694         (WebKit::WebPluginContainerImpl::setOpaque):
2695         (WebKit::WebPluginContainerImpl::platformLayer):
2696         * src/WebPluginContainerImpl.h:
2697         (WebPluginContainerImpl):
2698         * src/WebScrollableLayer.cpp: Renamed from Source/WebKit/chromium/src/WebImageLayerImpl.cpp.
2699         (WebKit):
2700         (WebKit::WebScrollableLayer::setScrollPosition):
2701         (WebKit::WebScrollableLayer::setScrollable):
2702         (WebKit::WebScrollableLayer::setHaveWheelEventHandlers):
2703         (WebKit::WebScrollableLayer::setShouldScrollOnMainThread):
2704         (WebKit::WebScrollableLayer::setNonFastScrollableRegion):
2705         (WebKit::WebScrollableLayer::setIsContainerForFixedPositionLayers):
2706         (WebKit::WebScrollableLayer::setFixedToContainerLayer):
2707         * src/WebScrollbarLayer.cpp: Renamed from Source/WebKit/chromium/src/WebScrollbarLayerImpl.cpp.
2708         (WebKit):
2709         (WebKit::WebScrollbarLayer::setScrollLayer):
2710         (WebKit::WebScrollbarLayer::create):
2711         (WebKit::WebScrollbarLayer::WebScrollbarLayer):
2712         (WebKit::WebScrollbarLayer::operator=):
2713         (WebKit::WebScrollbarLayer::operator PassRefPtr<ScrollbarLayerChromium>):
2714         * src/WebScrollbarLayerImpl.h: Removed.
2715         * src/WebSolidColorLayer.cpp: Copied from Source/Platform/chromium/public/WebSolidColorLayer.h.
2716         (WebKit):
2717         (WebKit::WebSolidColorLayer::create):
2718         (WebKit::WebSolidColorLayer::WebSolidColorLayer):
2719         (WebKit::WebSolidColorLayer::setBackgroundColor):
2720         * src/WebSolidColorLayerImpl.cpp:
2721         (WebKit::WebSolidColorLayerImpl::create):
2722         (WebKit::WebSolidColorLayerImpl::WebSolidColorLayerImpl):
2723         * src/WebSolidColorLayerImpl.h:
2724         (WebSolidColorLayerImpl):
2725         * src/WebVideoLayer.cpp: Renamed from Source/WebKit/chromium/src/WebVideoLayerImpl.h.
2726         (WebKit):
2727         (WebKit::WebVideoLayer::create):
2728         (WebKit::WebVideoLayer::WebVideoLayer):
2729         (WebKit::WebVideoLayer::active):
2730         * src/WebViewImpl.cpp:
2731         (WebKit::WebViewImpl::WebViewImpl):
2732         (WebKit::WebViewImpl::setRootGraphicsLayer):
2733         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2734         (WebKit):
2735         * src/WebViewImpl.h:
2736         * tests/ImageLayerChromiumTest.cpp:
2737         (WebCore::TEST):
2738         * tests/WebLayerTest.cpp:
2739         * tests/WebLayerTreeViewTest.cpp:
2740
2741 2012-08-21  James Robinson  <jamesr@chromium.org>
2742
2743         Unreviewed, rolling out r126169.
2744         http://trac.webkit.org/changeset/126169
2745         https://bugs.webkit.org/show_bug.cgi?id=94614
2746
2747         Crashes already fixed downstream
2748
2749         * WebKit.gypi:
2750         * src/NonCompositedContentHost.cpp:
2751         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
2752         (WebKit::NonCompositedContentHost::setScrollLayer):
2753         (WebKit::NonCompositedContentHost::setViewport):
2754         (WebKit::NonCompositedContentHost::scrollLayer):
2755         * src/NonCompositedContentHost.h:
2756         * src/WebContentLayer.cpp: Removed.
2757         * src/WebContentLayerImpl.cpp:
2758         (WebKit::WebContentLayer::create):
2759         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
2760         (WebKit::WebContentLayerImpl::~WebContentLayerImpl):
2761         (WebKit::WebContentLayerImpl::layer):
2762         (WebKit):
2763         (WebKit::WebContentLayerImpl::setDoubleSided):
2764         (WebKit::WebContentLayerImpl::setContentsScale):
2765         (WebKit::WebContentLayerImpl::setUseLCDText):
2766         (WebKit::WebContentLayerImpl::setDrawCheckerboardForMissingTiles):
2767         (WebKit::WebContentLayerImpl::paintContents):
2768         * src/WebContentLayerImpl.h:
2769         (WebContentLayerImpl):
2770         * src/WebExternalTextureLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebExternalTextureLayer.cpp.
2771         (WebKit):
2772         (WebKit::WebExternalTextureLayer::create):
2773         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
2774         (WebKit::WebExternalTextureLayerImpl::~WebExternalTextureLayerImpl):
2775         (WebKit::WebExternalTextureLayerImpl::layer):
2776         (WebKit::WebExternalTextureLayerImpl::setTextureId):
2777         (WebKit::WebExternalTextureLayerImpl::setFlipped):
2778         (WebKit::WebExternalTextureLayerImpl::setUVRect):
2779         (WebKit::WebExternalTextureLayerImpl::setOpaque):
2780         (WebKit::WebExternalTextureLayerImpl::setPremultipliedAlpha):
2781         (WebKit::WebExternalTextureLayerImpl::willModifyTexture):
2782         (WebKit::WebExternalTextureLayerImpl::setRateLimitContext):
2783         (WebTextureUpdaterImpl):
2784         (WebKit::WebTextureUpdaterImpl::WebTextureUpdaterImpl):
2785         (WebKit::WebExternalTextureLayerImpl::prepareTexture):
2786         (WebKit::WebExternalTextureLayerImpl::context):
2787         * src/WebExternalTextureLayerImpl.h: Copied from Source/Platform/chromium/public/WebVideoLayer.h.
2788         (WebKit):
2789         (WebExternalTextureLayerImpl):
2790         * src/WebIOSurfaceLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebIOSurfaceLayer.cpp.
2791         (WebKit):
2792         (WebKit::WebIOSurfaceLayer::create):
2793         (WebKit::WebIOSurfaceLayerImpl::WebIOSurfaceLayerImpl):
2794         (WebKit::WebIOSurfaceLayerImpl::~WebIOSurfaceLayerImpl):
2795         (WebKit::WebIOSurfaceLayerImpl::setIOSurfaceProperties):
2796         (WebKit::WebIOSurfaceLayerImpl::layer):
2797         * src/WebIOSurfaceLayerImpl.h: Copied from Source/Platform/chromium/public/WebImageLayer.h.
2798         (WebCore):
2799         (WebKit):
2800         (WebIOSurfaceLayerImpl):
2801         * src/WebImageLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebSolidColorLayer.cpp.
2802         (WebKit):
2803         (WebKit::WebImageLayer::create):
2804         (WebKit::WebImageLayerImpl::WebImageLayerImpl):
2805         (WebKit::WebImageLayerImpl::~WebImageLayerImpl):
2806         (WebKit::WebImageLayerImpl::layer):
2807         (WebKit::WebImageLayerImpl::setBitmap):
2808         * src/WebImageLayerImpl.h: Renamed from Source/WebKit/chromium/src/WebImageLayer.cpp.
2809         (WebCore):
2810         (WebKit):
2811         (WebImageLayerImpl):
2812         * src/WebLayer.cpp: Removed.
2813         * src/WebLayerImpl.cpp:
2814         (WebKit::WebLayer::create):
2815         (WebKit::WebLayerImpl::WebLayerImpl):
2816         (WebKit::WebLayerImpl::~WebLayerImpl):
2817         (WebKit):
2818         (WebKit::WebLayerImpl::id):
2819         (WebKit::WebLayerImpl::invalidateRect):
2820         (WebKit::WebLayerImpl::invalidate):
2821         (WebKit::WebLayerImpl::addChild):
2822         (WebKit::WebLayerImpl::insertChild):
2823         (WebKit::WebLayerImpl::replaceChild):
2824         (WebKit::WebLayerImpl::setChildren):
2825         (WebKit::WebLayerImpl::removeFromParent):
2826         (WebKit::WebLayerImpl::removeAllChildren):
2827         (WebKit::WebLayerImpl::setAnchorPoint):
2828         (WebKit::WebLayerImpl::anchorPoint):
2829         (WebKit::WebLayerImpl::setAnchorPointZ):
2830         (WebKit::WebLayerImpl::anchorPointZ):
2831         (WebKit::WebLayerImpl::setBounds):
2832         (WebKit::WebLayerImpl::bounds):
2833         (WebKit::WebLayerImpl::setMasksToBounds):
2834         (WebKit::WebLayerImpl::masksToBounds):
2835         (WebKit::WebLayerImpl::setMaskLayer):
2836         (WebKit::WebLayerImpl::setReplicaLayer):
2837         (WebKit::WebLayerImpl::setOpacity):
2838         (WebKit::WebLayerImpl::opacity):
2839         (WebKit::WebLayerImpl::setOpaque):
2840         (WebKit::WebLayerImpl::opaque):
2841         (WebKit::WebLayerImpl::setPosition):
2842         (WebKit::WebLayerImpl::position):
2843         (WebKit::WebLayerImpl::setSublayerTransform):
2844         (WebKit::WebLayerImpl::sublayerTransform):
2845         (WebKit::WebLayerImpl::setTransform):
2846         (WebKit::WebLayerImpl::transform):
2847         (WebKit::WebLayerImpl::setDrawsContent):
2848         (WebKit::WebLayerImpl::drawsContent):
2849         (WebKit::WebLayerImpl::setPreserves3D):
2850         (WebKit::WebLayerImpl::setUseParentBackfaceVisibility):
2851         (WebKit::WebLayerImpl::setBackgroundColor):
2852         (WebKit::WebLayerImpl::setFilters):
2853         (WebKit::WebLayerImpl::setBackgroundFilters):
2854         (WebKit::WebLayerImpl::setDebugBorderColor):
2855         (WebKit::WebLayerImpl::setDebugBorderWidth):
2856         (WebKit::WebLayerImpl::setDebugName):
2857         (WebKit::WebLayerImpl::setAnimationDelegate):
2858         (WebKit::WebLayerImpl::addAnimation):
2859         (WebKit::WebLayerImpl::removeAnimation):
2860         (WebKit::WebLayerImpl::pauseAnimation):
2861         (WebKit::WebLayerImpl::suspendAnimations):
2862         (WebKit::WebLayerImpl::resumeAnimations):
2863         (WebKit::WebLayerImpl::hasActiveAnimation):
2864         (WebKit::WebLayerImpl::transferAnimationsTo):
2865         (WebKit::WebLayerImpl::setForceRenderSurface):
2866         (WebKit::WebLayerImpl::setScrollPosition):
2867         (WebKit::WebLayerImpl::setScrollable):
2868         (WebKit::WebLayerImpl::setHaveWheelEventHandlers):
2869         (WebKit::WebLayerImpl::setShouldScrollOnMainThread):
2870         (WebKit::WebLayerImpl::setNonFastScrollableRegion):
2871         (WebKit::WebLayerImpl::setIsContainerForFixedPositionLayers):
2872         (WebKit::WebLayerImpl::setFixedToContainerLayer):
2873         (WebKit::WebLayerImpl::layer):
2874         * src/WebLayerImpl.h:
2875         (WebCore):
2876         (WebLayerImpl):
2877         * src/WebLayerTreeView.cpp:
2878         (WebKit::WebLayerTreeView::setRootLayer):
2879         * src/WebLayerTreeViewImpl.cpp:
2880         (WebKit::WebLayerTreeViewImpl::create):
2881         * src/WebMediaPlayerClientImpl.cpp:
2882         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
2883         (WebKit::WebMediaPlayerClientImpl::repaint):
2884         (WebKit::WebMediaPlayerClientImpl::setOpaque):
2885         (WebKit::WebMediaPlayerClientImpl::platformLayer):
2886         (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
2887         * src/WebMediaPlayerClientImpl.h:
2888         (WebMediaPlayerClientImpl):
2889         * src/WebPluginContainerImpl.cpp:
2890         (WebKit::WebPluginContainerImpl::setBackingTextureId):
2891         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
2892         (WebKit::WebPluginContainerImpl::commitBackingTexture):
2893         (WebKit::WebPluginContainerImpl::setOpaque):
2894         (WebKit::WebPluginContainerImpl::platformLayer):
2895         * src/WebPluginContainerImpl.h:
2896         (WebPluginContainerImpl):
2897         * src/WebScrollableLayer.cpp: Removed.
2898         * src/WebScrollbarLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebScrollbarLayer.cpp.
2899         (WebKit):
2900         (WebKit::WebScrollbarLayer::create):
2901         (WebKit::WebScrollbarLayerImpl::WebScrollbarLayerImpl):
2902         (WebKit::WebScrollbarLayerImpl::~WebScrollbarLayerImpl):
2903         (WebKit::WebScrollbarLayerImpl::layer):
2904         (WebKit::WebScrollbarLayerImpl::setScrollLayer):
2905         * src/WebScrollbarLayerImpl.h: Copied from Source/WebKit/chromium/src/WebSolidColorLayerImpl.h.
2906         (WebCore):
2907         (WebKit):
2908         (WebScrollbarLayerImpl):
2909         * src/WebSolidColorLayerImpl.cpp:
2910         (WebKit::WebSolidColorLayer::create):
2911         (WebKit::WebSolidColorLayerImpl::WebSolidColorLayerImpl):
2912         (WebKit::WebSolidColorLayerImpl::layer):
2913         (WebKit):
2914         (WebKit::WebSolidColorLayerImpl::setBackgroundColor):
2915         * src/WebSolidColorLayerImpl.h:
2916         (WebCore):
2917         (WebKit):
2918         (WebSolidColorLayerImpl):
2919         * src/WebVideoLayerImpl.cpp: Copied from Source/WebKit/chromium/src/WebVideoLayer.cpp.
2920         (WebKit):
2921         (WebKit::WebVideoLayer::create):
2922         (WebKit::WebVideoLayerImpl::WebVideoLayerImpl):
2923         (WebKit::WebVideoLayerImpl::~WebVideoLayerImpl):
2924         (WebKit::WebVideoLayerImpl::layer):
2925         (WebKit::WebVideoLayerImpl::active):
2926         * src/WebVideoLayerImpl.h: Renamed from Source/WebKit/chromium/src/WebVideoLayer.cpp.
2927         (WebCore):
2928         (WebKit):
2929         (WebVideoLayerImpl):
2930         * src/WebViewImpl.cpp:
2931         (WebKit::WebViewImpl::WebViewImpl):
2932         (WebKit::WebViewImpl::setRootGraphicsLayer):
2933         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
2934         (WebKit):
2935         * src/WebViewImpl.h:
2936         * tests/ImageLayerChromiumTest.cpp:
2937         (WebCore::TEST):
2938         * tests/WebLayerTest.cpp:
2939         * tests/WebLayerTreeViewTest.cpp:
2940
2941 2012-08-21  Sheriff Bot  <webkit.review.bot@gmail.com>
2942
2943         Unreviewed, rolling out r126076, r126099, and r126106.
2944         http://trac.webkit.org/changeset/126076
2945         http://trac.webkit.org/changeset/126099
2946         http://trac.webkit.org/changeset/126106
2947         https://bugs.webkit.org/show_bug.cgi?id=94614
2948
2949         Caused crashes during compositor shutdown in Aura builds of
2950         Chromium (Requested by kbr_google on #webkit).
2951
2952         * WebKit.gypi:
2953         * src/NonCompositedContentHost.cpp:
2954         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
2955         (WebKit::NonCompositedContentHost::setScrollLayer):
2956         (WebKit::NonCompositedContentHost::setViewport):
2957         (WebKit::NonCompositedContentHost::scrollLayer):
2958         * src/NonCompositedContentHost.h:
2959         * src/WebContentLayer.cpp: Renamed from Source/WebKit/chromium/src/WebVideoLayerImpl.cpp.
2960         (WebKit):
2961         (WebKit::WebContentLayer::create):
2962         (WebKit::WebContentLayer::clearClient):
2963         (WebKit::WebContentLayer::setDoubleSided):
2964         (WebKit::WebContentLayer::setContentsScale):
2965         (WebKit::WebContentLayer::setUseLCDText):
2966         (WebKit::WebContentLayer::setDrawCheckerboardForMissingTiles):
2967         (WebKit::WebContentLayer::WebContentLayer):
2968         (WebKit::WebContentLayer::operator=):
2969         (WebKit::WebContentLayer::operator PassRefPtr<ContentLayerChromium>):
2970         * src/WebContentLayerImpl.cpp:
2971         (WebKit::WebContentLayerImpl::create):
2972         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
2973         (WebKit::WebContentLayerImpl::~WebContentLayerImpl):
2974         (WebKit::WebContentLayerImpl::paintContents):
2975         * src/WebContentLayerImpl.h:
2976         (WebContentLayerImpl):
2977         * src/WebExternalTextureLayer.cpp: Renamed from Source/WebKit/chromium/src/WebExternalTextureLayerImpl.cpp.
2978         (WebKit):
2979         (WebTextureUpdaterImpl):
2980         (WebKit::WebTextureUpdaterImpl::WebTextureUpdaterImpl):
2981         (WebExternalTextureLayerImpl):
2982         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
2983         (WebKit::WebExternalTextureLayer::create):
2984         (WebKit::WebExternalTextureLayer::clearClient):
2985         (WebKit::WebExternalTextureLayer::setTextureId):
2986         (WebKit::WebExternalTextureLayer::setFlipped):
2987         (WebKit::WebExternalTextureLayer::setUVRect):
2988         (WebKit::WebExternalTextureLayer::setOpaque):
2989         (WebKit::WebExternalTextureLayer::setPremultipliedAlpha):
2990         (WebKit::WebExternalTextureLayer::willModifyTexture):
2991         (WebKit::WebExternalTextureLayer::setRateLimitContext):
2992         (WebKit::WebExternalTextureLayer::WebExternalTextureLayer):
2993         * src/WebExternalTextureLayerImpl.h: Removed.
2994         * src/WebIOSurfaceLayer.cpp: Renamed from Source/WebKit/chromium/src/WebIOSurfaceLayerImpl.cpp.
2995         (WebKit):
2996         (WebKit::WebIOSurfaceLayer::create):
2997         (WebKit::WebIOSurfaceLayer::setIOSurfaceProperties):
2998         (WebKit::WebIOSurfaceLayer::WebIOSurfaceLayer):
2999         * src/WebIOSurfaceLayerImpl.h: Removed.
3000         * src/WebImageLayer.cpp: Renamed from Source/WebKit/chromium/src/WebImageLayerImpl.h.
3001         (WebKit):
3002         (WebKit::WebImageLayer::create):
3003         (WebKit::WebImageLayer::WebImageLayer):
3004         (WebKit::WebImageLayer::setBitmap):
3005         * src/WebLayer.cpp: Added.
3006         (WebKit):
3007         (WebKit::WebLayer::create):
3008         (WebKit::WebLayer::reset):
3009         (WebKit::WebLayer::assign):
3010         (WebKit::WebLayer::equals):
3011         (WebKit::WebLayer::invalidateRect):
3012         (WebKit::WebLayer::invalidate):
3013         (WebKit::WebLayer::addChild):
3014         (WebKit::WebLayer::insertChild):
3015         (WebKit::WebLayer::replaceChild):
3016         (WebKit::WebLayer::setChildren):
3017         (WebKit::WebLayer::removeFromParent):
3018         (WebKit::WebLayer::removeAllChildren):
3019         (WebKit::WebLayer::setAnchorPoint):
3020         (WebKit::WebLayer::anchorPoint):
3021         (WebKit::WebLayer::setAnchorPointZ):
3022         (WebKit::WebLayer::anchorPointZ):
3023         (WebKit::WebLayer::setBounds):
3024         (WebKit::WebLayer::bounds):
3025         (WebKit::WebLayer::setMasksToBounds):
3026         (WebKit::WebLayer::masksToBounds):
3027         (WebKit::WebLayer::setMaskLayer):
3028         (WebKit::WebLayer::setReplicaLayer):
3029         (WebKit::WebLayer::setOpacity):
3030         (WebKit::WebLayer::opacity):
3031         (WebKit::WebLayer::setOpaque):
3032         (WebKit::WebLayer::opaque):
3033         (WebKit::WebLayer::setPosition):
3034         (WebKit::WebLayer::position):
3035         (WebKit::WebLayer::setSublayerTransform):
3036         (WebKit::WebLayer::sublayerTransform):
3037         (WebKit::WebLayer::setTransform):
3038         (WebKit::WebLayer::transform):
3039         (WebKit::WebLayer::setDrawsContent):
3040         (WebKit::WebLayer::drawsContent):
3041         (WebKit::WebLayer::setPreserves3D):
3042         (WebKit::WebLayer::setUseParentBackfaceVisibility):
3043         (WebKit::WebLayer::setBackgroundColor):
3044         (WebKit::WebLayer::setFilters):
3045         (WebKit::WebLayer::setBackgroundFilters):
3046         (WebKit::WebLayer::setDebugBorderColor):
3047         (WebKit::WebLayer::setDebugBorderWidth):
3048         (WebKit::WebLayer::setDebugName):
3049         (WebKit::WebLayer::setAnimationDelegate):
3050         (WebKit::WebLayer::addAnimation):
3051         (WebKit::WebLayer::removeAnimation):
3052         (WebKit::WebLayer::pauseAnimation):
3053         (WebKit::WebLayer::suspendAnimations):
3054         (WebKit::WebLayer::resumeAnimations):
3055         (WebKit::WebLayer::hasActiveAnimation):
3056         (WebKit::WebLayer::transferAnimationsTo):
3057         (WebKit::WebLayer::setForceRenderSurface):
3058         (WebKit::WebLayer::clearRenderSurface):
3059         (WebKit::WebLayer::WebLayer):
3060         (WebKit::WebLayer::operator=):
3061         (WebKit::WebLayer::operator PassRefPtr<LayerChromium>):
3062         * src/WebLayerImpl.cpp:
3063         (WebKit::WebLayerImpl::create):
3064         (WebKit::WebLayerImpl::WebLayerImpl):
3065         (WebKit::WebLayerImpl::~WebLayerImpl):
3066         * src/WebLayerImpl.h:
3067         (WebLayerImpl):
3068         * src/WebLayerTreeView.cpp:
3069         (WebKit::WebLayerTreeView::setRootLayer):
3070         * src/WebLayerTreeViewImpl.cpp:
3071         (WebKit::WebLayerTreeViewImpl::create):
3072         * src/WebMediaPlayerClientImpl.cpp:
3073         (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
3074         (WebKit::WebMediaPlayerClientImpl::repaint):
3075         (WebKit::WebMediaPlayerClientImpl::setOpaque):
3076         (WebKit::WebMediaPlayerClientImpl::platformLayer):
3077         (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
3078         * src/WebMediaPlayerClientImpl.h:
3079         (WebMediaPlayerClientImpl):
3080         * src/WebPluginContainerImpl.cpp:
3081         (WebKit::WebPluginContainerImpl::setBackingTextureId):
3082         (WebKit::WebPluginContainerImpl::setBackingIOSurfaceId):
3083         (WebKit::WebPluginContainerImpl::commitBackingTexture):
3084         (WebKit::WebPluginContainerImpl::setOpaque):
3085         (WebKit::WebPluginContainerImpl::platformLayer):
3086         * src/WebPluginContainerImpl.h:
3087         (WebPluginContainerImpl):
3088         * src/WebScrollableLayer.cpp: Renamed from Source/WebKit/chromium/src/WebImageLayerImpl.cpp.
3089         (WebKit):
3090         (WebKit::WebScrollableLayer::setScrollPosition):
3091         (WebKit::WebScrollableLayer::setScrollable):
3092         (WebKit::WebScrollableLayer::setHaveWheelEventHandlers):
3093         (WebKit::WebScrollableLayer::setShouldScrollOnMainThread):
3094         (WebKit::WebScrollableLayer::setNonFastScrollableRegion):
3095         (WebKit::WebScrollableLayer::setIsContainerForFixedPositionLayers):
3096         (WebKit::WebScrollableLayer::setFixedToContainerLayer):
3097         * src/WebScrollbarLayer.cpp: Renamed from Source/WebKit/chromium/src/WebScrollbarLayerImpl.cpp.
3098         (WebKit):
3099         (WebKit::WebScrollbarLayer::setScrollLayer):
3100         (WebKit::WebScrollbarLayer::create):
3101         (WebKit::WebScrollbarLayer::WebScrollbarLayer):
3102         (WebKit::WebScrollbarLayer::operator=):
3103         (WebKit::WebScrollbarLayer::operator PassRefPtr<ScrollbarLayerChromium>):
3104         * src/WebScrollbarLayerImpl.h: Removed.
3105         * src/WebSolidColorLayer.cpp: Copied from Source/Platform/chromium/public/WebSolidColorLayer.h.
3106         (WebKit):
3107         (WebKit::WebSolidColorLayer::create):
3108         (WebKit::WebSolidColorLayer::WebSolidColorLayer):
3109         (WebKit::WebSolidColorLayer::setBackgroundColor):
3110         * src/WebSolidColorLayerImpl.cpp:
3111         (WebKit::WebSolidColorLayerImpl::create):
3112         (WebKit::WebSolidColorLayerImpl::WebSolidColorLayerImpl):
3113         * src/WebSolidColorLayerImpl.h:
3114         (WebSolidColorLayerImpl):
3115         * src/WebVideoLayer.cpp: Renamed from Source/WebKit/chromium/src/WebVideoLayerImpl.h.
3116         (WebKit):
3117         (WebKit::WebVideoLayer::create):
3118         (WebKit::WebVideoLayer::WebVideoLayer):
3119         (WebKit::WebVideoLayer::active):
3120         * src/WebViewImpl.cpp:
3121         (WebKit::WebViewImpl::WebViewImpl):
3122         (WebKit::WebViewImpl::setRootGraphicsLayer):
3123         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
3124         (WebKit):
3125         * src/WebViewImpl.h:
3126         * tests/ImageLayerChromiumTest.cpp:
3127         (WebCore::TEST):
3128         * tests/WebLayerTest.cpp:
3129         * tests/WebLayerTreeViewTest.cpp:
3130
3131 2012-08-21  Ilya Tikhonovsky  <loislo@chromium.org>
3132
3133         Web Inspector: NMI: rename addMember for strings and KURL to addInstrumentedMember.
3134         https://bugs.webkit.org/show_bug.cgi?id=94580
3135
3136         Reviewed by Yury Semikhatsky.
3137
3138         Drive by fix: immutable ElementAttrybuteData uses the same trick with placement new as in StylePropertySet.
3139
3140         * tests/MemoryInstrumentationTest.cpp:
3141         (WebCore::TEST):
3142         (WebCore):
3143
3144 2012-08-21  Peter Beverloo  <peter@chromium.org>
3145
3146         Unreviewed.  Rolled DEPS.
3147
3148         * DEPS:
3149
3150 2012-08-20  Kent Tamura  <tkent@chromium.org>
3151
3152         [Chromium-win] Use native digits in parsing/formatting dates in the textfield part of input[type=date]
3153         https://bugs.webkit.org/show_bug.cgi?id=94281
3154
3155         Reviewed by Hajime Morita.
3156
3157         * tests/LocaleWinTest.cpp:
3158         (TEST_F): Added formatting and parsing tests for Persian locale to check
3159         native digit behavior.
3160
3161 2012-08-20  Kent Tamura  <tkent@chromium.org>
3162
3163         [Chromium] Make the popup positioning code testable
3164         https://bugs.webkit.org/show_bug.cgi?id=94086
3165
3166         Reviewed by Hajime Morita.
3167
3168         * WebKit.gypi: Add PopupContainerTest.cpp.
3169         * tests/PopupContainerTest.cpp: Added.
3170         (MockPopupContent):
3171         (calculatePosition):
3172         (TEST):
3173
3174 2012-08-20  Scott Graham  <scottmg@chromium.org>
3175
3176         [Chromium] Fix warnings on Windows builds
3177         https://bugs.webkit.org/show_bug.cgi?id=94543
3178
3179         Reviewed by Adrienne Walker.
3180
3181         * tests/CCMathUtilTest.cpp:
3182
3183 2012-08-20  Adam Klein  <adamk@chromium.org>
3184
3185         Allow MutationEvents to be enabled/disabled per context
3186         https://bugs.webkit.org/show_bug.cgi?id=94016
3187
3188         Reviewed by Ojan Vafai.
3189
3190         Add Chromium/WebKit API for enabling/disabling MutationEvents via
3191         WebPermissionClient.
3192
3193         * public/WebPermissionClient.h:
3194         (WebPermissionClient):
3195         (WebKit::WebPermissionClient::allowMutationEvents):
3196         * src/ContextFeaturesClientImpl.cpp:
3197         (WebKit::ContextFeaturesClientImpl::askIfIsEnabled):
3198
3199 2012-08-20  Sheriff Bot  <webkit.review.bot@gmail.com>
3200
3201         Unreviewed, rolling out r126095.
3202         http://trac.webkit.org/changeset/126095
3203         https://bugs.webkit.org/show_bug.cgi?id=94555
3204
3205         Breaks compilation of downstream WebWidget::paint
3206         implementations (Requested by jamesr on #webkit).
3207
3208         * public/WebWidget.h:
3209         (WebKit::WebWidget::paint):
3210         * src/WebPagePopupImpl.cpp:
3211         (WebKit::WebPagePopupImpl::paint):
3212         * src/WebPagePopupImpl.h:
3213         (WebPagePopupImpl):
3214         * src/WebPopupMenuImpl.cpp:
3215         (WebKit::WebPopupMenuImpl::paint):
3216         * src/WebPopupMenuImpl.h:
3217         * src/WebViewImpl.cpp:
3218         (WebKit::WebViewImpl::paint):
3219         * src/WebViewImpl.h:
3220         (WebViewImpl):
3221
3222 2012-08-20  Kentaro Hara  <haraken@chromium.org>
3223
3224         [V8] Move instrumentedCallFunction() from V8Proxy to ScriptController
3225         https://bugs.webkit.org/show_bug.cgi?id=94456
3226
3227         Reviewed by Adam Barth.
3228
3229         To kill V8Proxy, this patch moves instrumentedCallFunction() from V8Proxy
3230         to ScriptController. Also this patch renames instrumentedCallFunction()
3231         to callFunctionWithInstrumentation(), for consistency with callFunction().
3232
3233         No tests. No change in behavior.
3234
3235         * src/WebDevToolsFrontendImpl.cpp:
3236         (WebKit::WebDevToolsFrontendImpl::dispatchOnInspectorFrontend):
3237
3238 2012-08-20  Kentaro Hara  <haraken@chromium.org>
3239
3240         [V8] Move retrieve{Window,Frame,PerContextData}() from V8Proxy to V8Binding
3241         https://bugs.webkit.org/show_bug.cgi?id=94460
3242
3243         Reviewed by Adam Barth.
3244
3245         To kill V8Proxy, we move retrieve{Window,Frame,PerContextData}()
3246         from V8Proxy to V8Binding. Also, this patch renames these methods as follows:
3247
3248         - retrieveWindow() -> toDOMWindow()
3249         - retrieveFrame() -> toFrameIfNotDetached()
3250         - retrievePerContextData() -> perContextDataForCurrentWorld()
3251
3252         No tests. No change in behavior.
3253
3254         * src/WebBindings.cpp:
3255         (WebKit::makeIntArrayImpl):
3256         (WebKit::makeStringArrayImpl):
3257         * src/WebFrameImpl.cpp:
3258         (WebKit::WebFrame::frameForContext):
3259
3260 2012-08-20  James Robinson  <jamesr@chromium.org>
3261
3262         [chromium] REGRESSION(126076) Should not touch old GraphicsLayerChromium::m_contentsLayer when setting up a new contents layer
3263         https://bugs.webkit.org/show_bug.cgi?id=94544
3264
3265         Reviewed by Adrienne Walker.
3266
3267         * src/WebLayerImpl.cpp:
3268         (WebKit::WebLayerImpl::id):
3269         (WebKit):
3270         * src/WebLayerImpl.h:
3271         (WebLayerImpl):
3272
3273 2012-08-20  Kentaro Hara  <haraken@chromium.org>
3274
3275         [V8] Move collectGarbage() from ScriptController to V8GCController
3276         https://bugs.webkit.org/show_bug.cgi?id=94455
3277
3278         Reviewed by Adam Barth.
3279
3280         - This patch moves collectGarbage() from ScriptController to V8GCController.
3281         - This patch makes collectGarbage() a static method.
3282         - This patch removes ScriptController::lowMemoryNotification()
3283         since it is not used at all.
3284
3285         No tests. No change in behavior.
3286
3287         * src/WebFrameImpl.cpp:
3288         (WebKit::WebFrameImpl::collectGarbage):
3289
3290 2012-08-20  Adam Barth  <abarth@webkit.org>
3291
3292         WebWidget should be able to paint into a zoomed canvas without aliasing
3293         https://bugs.webkit.org/show_bug.cgi?id=92043
3294
3295         Reviewed by James Robinson.
3296
3297         If accelerated compositing is enabled, WebWidget::paint reads back from
3298         the compositor rather than re-painting the widget. That approach works
3299         well if the canvas we're rendering into is at a similar resolution to
3300         the pixels in the compositor, but if the canvas has been scaled (e.g.,
3301         to help the user disambiguate links), then reading back from the
3302         compositor will cause aliasing artifacts.
3303
3304         This patch adds an option to paint to let the embedder request a
3305         software re-rendering of the widget to avoid these aliasing artifacts.
3306
3307         * public/WebWidget.h:
3308         (WebKit::WebWidget::paint):
3309         * src/WebPagePopupImpl.cpp:
3310         (WebKit::WebPagePopupImpl::paint):
3311         * src/WebPagePopupImpl.h:
3312         (WebPagePopupImpl):
3313         * src/WebPopupMenuImpl.cpp:
3314         (WebKit::WebPopupMenuImpl::paint):
3315         * src/WebPopupMenuImpl.h:
3316         * src/WebViewImpl.cpp:
3317         (WebKit::canvasBackgroundForTransparencey):
3318         (WebKit):
3319         (WebKit::WebViewImpl::paint):
3320         * src/WebViewImpl.h:
3321         (WebViewImpl):
3322
3323 2012-08-20  James Robinson  <jamesr@chromium.org>
3324
3325         Unreviewed. Roll WebKit chromium DEPS forward.
3326
3327         * DEPS:
3328
3329 2012-08-20  Kentaro Hara  <haraken@chromium.org>
3330
3331         [V8] Move clearForClose() and clearForNavigation() from V8Proxy to ScriptController
3332         https://bugs.webkit.org/show_bug.cgi?id=94459
3333
3334         Reviewed by Adam Barth.
3335
3336         To kill V8Proxy, we can move clearForClose() and
3337         clearForNavigation() from V8Proxy to ScriptController.
3338
3339         No tests. No change in behavior.
3340
3341         * src/FrameLoaderClientImpl.cpp:
3342         (WebKit::FrameLoaderClientImpl::detachedFromParent3):
3343
3344 2012-08-20  Kentaro Hara  <haraken@chromium.org>
3345
3346         [V8] Move mainWorldContext() from V8Proxy to ScriptController
3347         https://bugs.webkit.org/show_bug.cgi?id=94453
3348
3349         Reviewed by Adam Barth.
3350
3351         This patch moves mainWorldContext() from V8Proxy to ScriptController.
3352         In addition, this patch removes dependency on V8Proxy from WorldContextHandle.
3353
3354         No tests. No change in behavior.
3355
3356         * src/WebFrameImpl.cpp:
3357         (WebKit::WebFrameImpl::mainWorldScriptContext):
3358
3359 2012-08-20  Adam Klein  <adamk@chromium.org>
3360
3361         Remove redundant TOUCH_LISTENER event type
3362         https://bugs.webkit.org/show_bug.cgi?id=94524
3363
3364         Reviewed by Ryosuke Niwa.
3365
3366         * src/WebPluginContainerImpl.cpp:
3367         (WebKit::WebPluginContainerImpl::setIsAcceptingTouchEvents): Remove
3368         bookkeeping for TOUCH_LISTENER.
3369
3370 2012-08-16  James Robinson  <jamesr@chromium.org>
3371
3372         [chromium] Change WebLayer from a concrete type to a pure virtual interface
3373         https://bugs.webkit.org/show_bug.cgi?id=94174
3374
3375         Reviewed by Adrienne Walker.
3376
3377         This updates the implementation of the Web*Layer family to the new design and updates callers in WebViewImpl /
3378         NonCompositedContentHost.
3379
3380         * WebKit.gyp:
3381         * src/NonCompositedContentHost.cpp:
3382         (WebKit::NonCompositedContentHost::NonCompositedContentHost):
3383         (WebKit::NonCompositedContentHost::setScrollLayer):
3384         (WebKit::NonCompositedContentHost::setViewport):
3385         (WebKit::NonCompositedContentHost::scrollLayer):
3386         * src/NonCompositedContentHost.h:
3387         * src/WebContentLayerImpl.cpp:
3388         (WebKit::WebContentLayer::create):
3389         (WebKit::WebContentLayerImpl::WebContentLayerImpl):
3390         (WebKit::WebContentLayerImpl::~WebContentLayerImpl):
3391         (WebKit::WebContentLayerImpl::layer):
3392         (WebKit):
3393         (WebKit::WebContentLayerImpl::clearClient):
3394         (WebKit::WebContentLayerImpl::setDoubleSided):
3395         (WebKit::WebContentLayerImpl::setContentsScale):
3396         (WebKit::WebContentLayerImpl::setUseLCDText):
3397         (WebKit::WebContentLayerImpl::setDrawCheckerboardForMissingTiles):
3398         (WebKit::WebContentLayerImpl::paintContents):
3399         * src/WebContentLayerImpl.h:
3400         (WebContentLayerImpl):
3401         * src/WebExternalTextureLayer.cpp: Removed.
3402         * src/WebExternalTextureLayerImpl.cpp: Added.
3403         (WebKit):
3404         (WebKit::WebExternalTextureLayer::create):
3405         (WebKit::WebExternalTextureLayerImpl::WebExternalTextureLayerImpl):
3406         (WebKit::WebExternalTextureLayerImpl::~WebExternalTextureLayerImpl):
3407         (WebKit::WebExternalTextureLayerImpl::layer):
3408         (WebKit::WebExternalTextureLayerImpl::clearClient):
3409         (WebKit::WebExternalTextureLayerImpl::setTextureId):
3410         (WebKit::WebExternalTextureLayerImpl::setFlipped):
3411         (WebKit::WebExternalTextureLayerImpl::setUVRect):
3412         (WebKit::WebExternalTextureLayerImpl::setOpaque):
3413         (WebKit::WebExternalTextureLayerImpl::setPremultipliedAlpha):
3414         (WebKit::WebExternalTextureLayerImpl::willModifyTexture):
3415         (WebKit::WebExternalTextureLayerImpl::setRateLimitContext):
3416         (WebTextureUpdaterImpl):
3417         (WebKit::WebTextureUpdaterImpl::WebTextureUpdaterImpl):
3418         (WebKit::WebExternalTextureLayerImpl::prepareTexture):
3419         (WebKit::WebExternalTextureLayerImpl::context):
3420         * src/WebExternalTextureLayerImpl.h: Renamed from Source/WebKit/chromium/src/WebContentLayer.cpp.
3421         (WebKit):
3422         (WebExternalTextureLayerImpl):
3423         * src/WebIOSurfaceLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebIOSurfaceLayer.cpp.
3424         (WebKit):
3425         (WebKit::WebIOSurfaceLayer::create):
3426         (WebKit::WebIOSurfaceLayerImpl::WebIOSurfaceLayerImpl):
3427         (WebKit::WebIOSurfaceLayerImpl::~WebIOSurfaceLayerImpl):
3428         (WebKit::WebIOSurfaceLayerImpl::setIOSurfaceProperties):
3429         (WebKit::WebIOSurfaceLayerImpl::layer):
3430         * src/WebIOSurfaceLayerImpl.h: Copied from Source/Platform/chromium/public/WebImageLayer.h.
3431         (WebCore):
3432         (WebKit):
3433         (WebIOSurfaceLayerImpl):
3434         * src/WebImageLayerImpl.cpp: Renamed from Source/WebKit/chromium/src/WebSolidColorLayer.cpp.
3435         (WebKit):
3436         (WebKit::WebImageLayer::create):
3437         (WebKit::WebImageLayerImpl::WebImageLayerImpl):
3438         (WebKit::WebImageLayerImpl::~WebImageLayerImpl):
3439         (WebKit::WebImageLayerImpl::layer):
3440         (WebKit::WebImageLayer