eb3d86810ecdbd1b11d46eb3ccd5d63bb3811b63
[WebKit-https.git] / Source / WebKit / chromium / ChangeLog
1 2012-08-01  Dirk Pranke  <dpranke@chromium.org>
2
3         Roll chromium DEPS to 149416.
4
5         Unreviewed.
6
7         * DEPS:
8
9 2012-08-01  Sheriff Bot  <webkit.review.bot@gmail.com>
10
11         Unreviewed, rolling out r124334.
12         http://trac.webkit.org/changeset/124334
13         https://bugs.webkit.org/show_bug.cgi?id=92879
14
15         Broke MemoryInstrumentationTest.sizeOf from webkit_unit_tests
16         on Chromium canaries (Requested by apavlov1 on #webkit).
17
18         * WebKit.gypi:
19         * tests/MemoryInstrumentationTest.cpp: Removed.
20
21 2012-08-01  Ilya Tikhonovsky  <loislo@chromium.org>
22
23         Web Inspector: test native memory instrumentation code with help of unittests
24         https://bugs.webkit.org/show_bug.cgi?id=92743
25
26         Reviewed by Yury Semikhatsky.
27
28         Test a part of existing Native Memory Instrumentation code with help of unit tests.
29         6 tests were added and two bugs were fixed.
30
31         * WebKit.gypi:
32         * tests/MemoryInstrumentationTest.cpp: Added.
33         (WebCore):
34         (MemoryInstrumentationImpl):
35         (WebCore::MemoryInstrumentationImpl::MemoryInstrumentationImpl):
36         (WebCore::MemoryInstrumentationImpl::reportedSize):
37         (WebCore::MemoryInstrumentationImpl::countObjectSize):
38         (WebCore::MemoryInstrumentationImpl::processDeferredInstrumentedPointers):
39         (NotInstrumented):
40         (Instrumented):
41         (WebCore::Instrumented::Instrumented):
42         (WebCore::Instrumented::~Instrumented):
43         (WebCore::Instrumented::reportMemoryUsage):
44         (WebCore::TEST):
45         (InstrumentedWithOwnPtr):
46         (WebCore::InstrumentedWithOwnPtr::InstrumentedWithOwnPtr):
47         (WebCore::InstrumentedWithOwnPtr::reportMemoryUsage):
48
49 2012-08-01  Alexei Filippov  <alexeif@chromium.org>
50
51         Web Inspector: count DOM storage cache memory for native snapshot
52         https://bugs.webkit.org/show_bug.cgi?id=91617
53
54         Reviewed by Yury Semikhatsky.
55
56         Add memory size used for DOM storage cache reporting interface.
57
58         * src/StorageAreaProxy.cpp:
59         (WebCore::StorageAreaProxy::memoryBytesUsedByCache):
60         (WebCore):
61         * src/StorageAreaProxy.h:
62         (StorageAreaProxy):
63
64 2012-07-31  Yoshifumi Inoue  <yosin@chromium.org>
65
66         [Chromium] Enable ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS
67         https://bugs.webkit.org/show_bug.cgi?id=92822
68
69         Reviewed by Kent Tamura.
70
71         This patch enables ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS for Chromium
72         port except for Android.
73
74         * features.gypi: Add ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS=1 to "feature_defines"
75         block of OS != "android".
76
77 2012-07-31  Yusuf Ozuysal  <yusufo@google.com>
78
79         [chromium]Upstream WebViewImpl:StartPageScaleAnimation changes for Chrome for Android
80         https://bugs.webkit.org/show_bug.cgi?id=92698
81
82         Reviewed by Adam Barth.
83
84         Enforce the maximum and minimum scroll positions after the scale has changed.
85
86         * src/WebViewImpl.cpp:
87         (WebKit::WebViewImpl::startPageScaleAnimation):
88         * src/WebViewImpl.h:
89         (WebViewImpl):
90
91 2012-07-31  Terry Anderson  <tdanderson@chromium.org>
92
93         [chromium] Use the event bounding box when constructing a PlatformEvent::GestureTap
94         https://bugs.webkit.org/show_bug.cgi?id=92151
95
96         Reviewed by Darin Fisher.
97
98         Now that gesture events store a bounding box, use |boundingBox| instead of
99         |deltaX| and |deltaY| when specifying |m_area|.
100
101         * public/WebInputEvent.h:
102         (WebGestureEvent):
103         * src/WebInputEventConversion.cpp:
104         (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
105
106 2012-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
107
108         Unreviewed.  Rolled DEPS.
109
110         * DEPS:
111
112 2012-07-31  Shawn Singh  <shawnsingh@chromium.org>
113
114         [chromium] Hit test points are being clipped by layers that should not clip
115         https://bugs.webkit.org/show_bug.cgi?id=92786
116
117         Reviewed by James Robinson.
118
119         * tests/CCLayerTreeHostCommonTest.cpp: adds a test where the
120           hit-testable layer does not overlap its parent. The parent does
121           not clip, so the layer should still be hittable.
122
123 2012-07-31  Chris Rogers  <crogers@google.com>
124
125         Allow AudioDestination to support local/live audio input
126         https://bugs.webkit.org/show_bug.cgi?id=90318
127
128         Reviewed by Kenneth Russell.
129
130         * src/AudioDestinationChromium.cpp:
131         (WebCore::AudioDestination::create):
132         (WebCore::AudioDestinationChromium::AudioDestinationChromium):
133         (WebCore::AudioDestinationChromium::provideInput):
134         (WebCore):
135         * src/AudioDestinationChromium.h:
136         (AudioDestinationChromium):
137
138 2012-07-31  Adam Barth  <abarth@webkit.org>
139
140         [Chromium-Android] We should hueristically detect content intents on touch
141         https://bugs.webkit.org/show_bug.cgi?id=92346
142
143         Reviewed by Nate Chapin.
144
145         On Android, when the user touches a block of text, we run a bunch of
146         OS-provided hueristics to detect content intents, such as telephone
147         numbers and mailing addresses.
148
149         This patch introduces the WebViewClient functions and the
150         detectContentIntentOnTouch function, but does not wire the code into
151         the event system. There are some decisions to make about how to wire it
152         into the event system, we'll tackle in the next patch.
153
154         * public/WebViewClient.h:
155         (WebKit::WebViewClient::detectContentIntentAround):
156         (WebViewClient):
157         (WebKit::WebViewClient::scheduleContentIntent):
158         (WebKit::WebViewClient::cancelScheduledContentIntents):
159         * src/WebViewImpl.cpp:
160         (WebKit):
161         (WebKit::tapHighlightColorForNode):
162         (WebKit::WebViewImpl::showTouchHighlightQuads):
163         (WebKit::WebViewImpl::detectContentIntentOnTouch):
164         * src/WebViewImpl.h:
165         (WebViewImpl):
166
167 2012-07-31  Ian Vollick  <vollick@chromium.org>
168
169         [chromium] Use WebAnimation and related classes in GraphicsLayerChromium and AnimTranslationUtil
170         https://bugs.webkit.org/show_bug.cgi?id=90468
171
172         Reviewed by James Robinson.
173
174         * src/WebAnimation.cpp:
175         (WebKit::WebAnimation::targetProperty):
176         (WebKit):
177         (WebKit::WebAnimation::initialize):
178         * src/WebLayer.cpp:
179         (WebKit::WebLayer::setAnimationDelegate):
180         (WebKit):
181         (WebKit::WebLayer::addAnimation):
182         (WebKit::WebLayer::removeAnimation):
183         (WebKit::WebLayer::pauseAnimation):
184         (WebKit::WebLayer::suspendAnimations):
185         (WebKit::WebLayer::resumeAnimations):
186         (WebKit::WebLayer::transferAnimationsTo):
187         * tests/CCThreadedTest.cpp:
188         * tests/CCThreadedTest.h:
189         (TestHooks):
190         * tests/WebAnimationTest.cpp:
191         (WebKit::TEST):
192
193 2012-07-30  Adam Barth  <abarth@webkit.org>
194
195         Typo: doubleTa*b*ZoomAnimationDurationInSeconds in WebViewImpl.cpp
196         https://bugs.webkit.org/show_bug.cgi?id=92135
197
198         Reviewed by Kentaro Hara.
199
200         This patch fixes a typo.
201
202         * src/WebViewImpl.cpp:
203         (WebKit::WebViewImpl::animateZoomAroundPoint):
204
205 2012-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
206
207         Unreviewed, rolling out r124179.
208         http://trac.webkit.org/changeset/124179
209         https://bugs.webkit.org/show_bug.cgi?id=92730
210
211         Breaks Chromium Linux 32 bots with "error: integer constant is
212         too large for 'long' type" in IDBLevelDBCodingTest.cpp
213         (Requested by apavlov on #webkit).
214
215         * tests/IDBLevelDBCodingTest.cpp:
216         (IDBLevelDBCoding::TEST):
217
218 2012-07-30  Keishi Hattori  <keishi@webkit.org>
219
220         Implement datalist UI for input type color for Chromium
221         https://bugs.webkit.org/show_bug.cgi?id=92075
222
223         Reviewed by Kent Tamura.
224
225         Integrated ColorChooserProxy and WebColorChooserClientImpl into ColorChooserUIController.
226         ColorChooserUIController can control whether to open the color suggestion picker
227         popup or the color chooser depending on the responses from ColorChooserClient.
228
229         * WebKit.gyp:
230         * src/ChromeClientImpl.cpp:
231         (WebKit::ChromeClientImpl::createColorChooser): Returns ColorChooserUIController which is a ColorChooser.
232         (WebKit::ChromeClientImpl::createWebColorChooser): Returns WebColorChooser that was created by Chromium.
233         * src/ChromeClientImpl.h:
234         (WebKit):
235         (ChromeClientImpl):
236         * src/ColorChooserProxy.cpp: Removed.
237         * src/ColorChooserProxy.h: Removed.
238         * src/ColorChooserUIController.cpp: Added.
239         (WebKit):
240         (WebKit::ColorChooserUIController::ColorChooserUIController): Controls the UI for color chooser. Opens the color suggestion picker popup or color chooser depending on the ColorChooserClient.
241         (WebKit::ColorChooserUIController::~ColorChooserUIController):
242         (WebKit::ColorChooserUIController::setSelectedColor):
243         (WebKit::ColorChooserUIController::endChooser): This is called by WebCore so we close both the popup and the color chooser.
244         (WebKit::ColorChooserUIController::didChooseColor):
245         (WebKit::ColorChooserUIController::didEndChooser):
246         (WebKit::ColorChooserUIController::contentSize): The popup will be resized later from JS so we return an arbitrary size.
247         (WebKit::ColorChooserUIController::writeDocument):
248         (WebKit::ColorChooserUIController::setValueAndClosePopup): Performs action based on the numValue.
249         (WebKit::ColorChooserUIController::didClosePopup):
250         (WebKit::ColorChooserUIController::openPopup): Opens color chooser suggestion popup.
251         (WebKit::ColorChooserUIController::closePopup):
252         (WebKit::ColorChooserUIController::openColorChooser): Opens color chooser.
253         * src/ColorChooserUIController.h: Renamed from Source/WebKit/chromium/src/WebColorChooserClientImpl.h.
254         (WebCore):
255         (WebKit):
256         (ColorChooserUIController):
257         * src/WebColorChooserClientImpl.cpp: Removed.
258
259 2012-07-30  Ryosuke Niwa  <rniwa@webkit.org>
260
261         Roll out the DEPS roll (r124164) for now since it broke Chromium Mac builds.
262
263         * DEPS:
264
265 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
266
267         Unreviewed.  Rolled DEPS.
268
269         * DEPS:
270
271 2012-07-30  Adrienne Walker  <enne@google.com>
272
273         [chromium] Wrap ScrollbarLayerChromium in WebScrollbarLayer
274         https://bugs.webkit.org/show_bug.cgi?id=91032
275
276         Reviewed by James Robinson.
277
278         Add implementation of WebScrollbarLayer to the client API.
279
280         * WebKit.gyp:
281         * src/WebScrollbarLayer.cpp: Added.
282         (WebKit):
283         (WebKit::WebScrollbarLayer::setScrollLayer):
284         (WebKit::WebScrollbarLayer::create):
285         (WebKit::WebScrollbarLayer::WebScrollbarLayer):
286         (WebKit::WebScrollbarLayer::operator=):
287         (WebKit::WebScrollbarLayer::operator PassRefPtr<ScrollbarLayerChromium>):
288
289 2012-07-30  Sadrul Habib Chowdhury  <sadrul@chromium.org>
290
291         Propagate gesture events to plugins.
292         https://bugs.webkit.org/show_bug.cgi?id=92281
293
294         Reviewed by Adam Barth.
295
296         Propagate gesture events to plugins.
297
298         * src/WebInputEventConversion.cpp:
299         (WebKit):
300         (WebKit::WebGestureEventBuilder::WebGestureEventBuilder):
301         * src/WebInputEventConversion.h:
302         (WebCore):
303         (WebKit):
304         (WebGestureEventBuilder):
305         * src/WebPluginContainerImpl.cpp:
306         (WebKit::WebPluginContainerImpl::handleEvent):
307         * src/WebPluginContainerImpl.h:
308         (WebCore):
309         (WebPluginContainerImpl):
310
311 2012-07-30  John Bates  <jbates@google.com>
312
313         Plumb vsync-enabled flag up to compositor thread and support disable-vsync
314         https://bugs.webkit.org/show_bug.cgi?id=92323
315
316         Reviewed by James Robinson.
317
318         * public/WebSettings.h:
319         * tests/CCFrameRateControllerTest.cpp:
320         * src/WebLayerTreeView.cpp:
321         (WebKit::WebLayerTreeView::Settings::operator CCLayerTreeSettings):
322         * src/WebSettingsImpl.cpp:
323         (WebKit::WebSettingsImpl::WebSettingsImpl):
324         (WebKit::WebSettingsImpl::setRenderVSyncEnabled):
325         (WebKit):
326         * src/WebSettingsImpl.h:
327         (WebSettingsImpl):
328         (WebKit::WebSettingsImpl::renderVSyncEnabled):
329         * src/WebViewImpl.cpp:
330         (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
331
332 2012-07-30  Adrienne Walker  <enne@google.com>
333
334         [chromium] Remove dependency on ScrollbarTheme from the compositor
335         https://bugs.webkit.org/show_bug.cgi?id=90528
336
337         Reviewed by James Robinson.
338
339         Add implementations for WebScrollbarThemeGeometry and
340         WebScrollbarThemePainter. Fill out additional API calls for
341         WebPluginScrollbarImpl since it derives from WebScrollbar.
342
343         Add WebScrollbarImpl to the client API to wrap and own an existing
344         WebCore Scrollbar object and provide the WebScrollbar interface.
345
346         By keeping WebScrollbar separate from WebScrollbarThemeGeometry, the
347         compositor thread can create its own thread-safe data bag version of a
348         WebScrollbar (CCScrollbarLayerImpl::CCScrollbar), but this requires
349         WebScrollbarThemeClientImpl.
350
351         WebScrollbarThemeClientImpl does the reverse of WebScrollbarImpl; it
352         wraps a WebScrollbar and provides the ScrollbarThemeClient interface.
353         This is so that a WebScrollbar can be passed to the geometry and
354         painter functions. Then, internally the WebScrollbarThemeClientImpl
355         can be used to adapt the WebScrollbar to the ScrollbarThemeClient
356         interface so the geometry and painter functions can call direct
357         functions on ScrollbarThemeComposite.
358
359         * WebKit.gyp:
360         * src/AssertMatchingEnums.cpp:
361         * src/ExternalPopupMenu.h:
362         (WebKit):
363         * src/WebPluginScrollbarImpl.cpp:
364         (WebKit::WebPluginScrollbarImpl::WebPluginScrollbarImpl):
365         (WebKit::WebPluginScrollbarImpl::location):
366         (WebKit):
367         (WebKit::WebPluginScrollbarImpl::size):
368         (WebKit::WebPluginScrollbarImpl::enabled):
369         (WebKit::WebPluginScrollbarImpl::maximum):
370         (WebKit::WebPluginScrollbarImpl::totalSize):
371         (WebKit::WebPluginScrollbarImpl::isScrollViewScrollbar):
372         (WebKit::WebPluginScrollbarImpl::isScrollableAreaActive):
373         (WebKit::WebPluginScrollbarImpl::getTickmarks):
374         (WebKit::WebPluginScrollbarImpl::controlSize):
375         (WebKit::WebPluginScrollbarImpl::pressedPart):
376         (WebKit::WebPluginScrollbarImpl::hoveredPart):
377         (WebKit::WebPluginScrollbarImpl::scrollbarOverlayStyle):
378         (WebKit::WebPluginScrollbarImpl::orientation):
379         (WebKit::WebPluginScrollbarImpl::isCustomScrollbar):
380         (WebKit::WebPluginScrollbarImpl::onMouseUp):
381         (WebKit::WebPluginScrollbarImpl::onMouseMove):
382         (WebKit::WebPluginScrollbarImpl::onMouseLeave):
383         * src/WebPluginScrollbarImpl.h:
384         (WebPluginScrollbarImpl):
385         * src/WebScrollbarImpl.cpp: Added.
386         (WebKit):
387         (WebKit::WebScrollbar::create):
388         (WebKit::WebScrollbarImpl::WebScrollbarImpl):
389         (WebKit::WebScrollbarImpl::isOverlay):
390         (WebKit::WebScrollbarImpl::value):
391         (WebKit::WebScrollbarImpl::location):
392         (WebKit::WebScrollbarImpl::size):
393         (WebKit::WebScrollbarImpl::enabled):
394         (WebKit::WebScrollbarImpl::maximum):
395         (WebKit::WebScrollbarImpl::totalSize):
396         (WebKit::WebScrollbarImpl::isScrollViewScrollbar):
397         (WebKit::WebScrollbarImpl::isScrollableAreaActive):
398         (WebKit::WebScrollbarImpl::getTickmarks):
399         (WebKit::WebScrollbarImpl::controlSize):
400         (WebKit::WebScrollbarImpl::pressedPart):
401         (WebKit::WebScrollbarImpl::hoveredPart):
402         (WebKit::WebScrollbarImpl::scrollbarOverlayStyle):
403         (WebKit::WebScrollbarImpl::orientation):
404         (WebKit::WebScrollbarImpl::isCustomScrollbar):
405         * src/WebScrollbarImpl.h: Copied from Source/Platform/chromium/public/WebScrollbar.h.
406         (WebCore):
407         (WebKit):
408         (WebScrollbarImpl):
409         * src/WebScrollbarThemeClientImpl.cpp: Added.
410         (WebKit):
411         (WebKit::WebScrollbarThemeClientImpl::WebScrollbarThemeClientImpl):
412         (WebKit::WebScrollbarThemeClientImpl::x):
413         (WebKit::WebScrollbarThemeClientImpl::y):
414         (WebKit::WebScrollbarThemeClientImpl::width):
415         (WebKit::WebScrollbarThemeClientImpl::height):
416         (WebKit::WebScrollbarThemeClientImpl::size):
417         (WebKit::WebScrollbarThemeClientImpl::location):
418         (WebKit::WebScrollbarThemeClientImpl::parent):
419         (WebKit::WebScrollbarThemeClientImpl::root):
420         (WebKit::WebScrollbarThemeClientImpl::setFrameRect):
421         (WebKit::WebScrollbarThemeClientImpl::frameRect):
422         (WebKit::WebScrollbarThemeClientImpl::invalidate):
423         (WebKit::WebScrollbarThemeClientImpl::invalidateRect):
424         (WebKit::WebScrollbarThemeClientImpl::scrollbarOverlayStyle):
425         (WebKit::WebScrollbarThemeClientImpl::getTickmarks):
426         (WebKit::WebScrollbarThemeClientImpl::isScrollableAreaActive):
427         (WebKit::WebScrollbarThemeClientImpl::isScrollViewScrollbar):
428         (WebKit::WebScrollbarThemeClientImpl::convertFromContainingWindow):
429         (WebKit::WebScrollbarThemeClientImpl::isCustomScrollbar):
430         (WebKit::WebScrollbarThemeClientImpl::orientation):
431         (WebKit::WebScrollbarThemeClientImpl::value):
432         (WebKit::WebScrollbarThemeClientImpl::currentPos):
433         (WebKit::WebScrollbarThemeClientImpl::visibleSize):
434         (WebKit::WebScrollbarThemeClientImpl::totalSize):
435         (WebKit::WebScrollbarThemeClientImpl::maximum):
436         (WebKit::WebScrollbarThemeClientImpl::controlSize):
437         (WebKit::WebScrollbarThemeClientImpl::lineStep):
438         (WebKit::WebScrollbarThemeClientImpl::pageStep):
439         (WebKit::WebScrollbarThemeClientImpl::pressedPart):
440         (WebKit::WebScrollbarThemeClientImpl::hoveredPart):
441         (WebKit::WebScrollbarThemeClientImpl::styleChanged):
442         (WebKit::WebScrollbarThemeClientImpl::enabled):
443         (WebKit::WebScrollbarThemeClientImpl::setEnabled):
444         (WebKit::WebScrollbarThemeClientImpl::isOverlayScrollbar):
445         * src/WebScrollbarThemeClientImpl.h: Added.
446         (WebCore):
447         (WebKit):
448         (WebScrollbarThemeClientImpl):
449         * src/WebScrollbarThemeGeometry.cpp: Added.
450         (WebKit):
451         (WebKit::WebScrollbarThemeGeometry::assign):
452         (WebKit::WebScrollbarThemeGeometry::thumbPosition):
453         (WebKit::WebScrollbarThemeGeometry::thumbLength):
454         (WebKit::WebScrollbarThemeGeometry::trackPosition):
455         (WebKit::WebScrollbarThemeGeometry::trackLength):
456         (WebKit::WebScrollbarThemeGeometry::hasButtons):
457         (WebKit::WebScrollbarThemeGeometry::hasThumb):
458         (WebKit::WebScrollbarThemeGeometry::trackRect):
459         (WebKit::WebScrollbarThemeGeometry::thumbRect):
460         (WebKit::WebScrollbarThemeGeometry::minimumThumbLength):
461         (WebKit::WebScrollbarThemeGeometry::scrollbarThickness):
462         (WebKit::WebScrollbarThemeGeometry::backButtonStartRect):
463         (WebKit::WebScrollbarThemeGeometry::backButtonEndRect):
464         (WebKit::WebScrollbarThemeGeometry::forwardButtonStartRect):
465         (WebKit::WebScrollbarThemeGeometry::forwardButtonEndRect):
466         (WebKit::WebScrollbarThemeGeometry::constrainTrackRectToTrackPieces):
467         (WebKit::WebScrollbarThemeGeometry::splitTrack):
468         (WebKit::WebScrollbarThemeGeometry::WebScrollbarThemeGeometry):
469         * src/WebScrollbarThemePainter.cpp: Added.
470         (WebKit):
471         (WebKit::WebScrollbarThemePainter::assign):
472         (WebKit::WebScrollbarThemePainter::paintScrollbarBackground):
473         (WebKit::WebScrollbarThemePainter::paintTrackBackground):
474         (WebKit::WebScrollbarThemePainter::paintBackTrackPart):
475         (WebKit::WebScrollbarThemePainter::paintForwardTrackPart):
476         (WebKit::WebScrollbarThemePainter::paintBackButtonStart):
477         (WebKit::WebScrollbarThemePainter::paintBackButtonEnd):
478         (WebKit::WebScrollbarThemePainter::paintForwardButtonStart):
479         (WebKit::WebScrollbarThemePainter::paintForwardButtonEnd):
480         (WebKit::WebScrollbarThemePainter::paintTickmarks):
481         (WebKit::WebScrollbarThemePainter::paintThumb):
482         (WebKit::WebScrollbarThemePainter::WebScrollbarThemePainter):
483         * tests/ScrollbarLayerChromiumTest.cpp:
484         (WebCore::MockScrollbar::convertFromContainingWindow):
485         (WebCore::MockScrollbar::isOverlayScrollbar):
486         (MockScrollbar):
487         (WebCore::TEST):
488
489 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
490
491         Unreviewed, rolling out r124025.
492         http://trac.webkit.org/changeset/124025
493         https://bugs.webkit.org/show_bug.cgi?id=92658
494
495         Causes color-suggestion-picker-appearance layout test to time
496         out on all Chromium platforms (Requested by tomhudson_ on
497         #webkit).
498
499         * WebKit.gyp:
500         * src/ChromeClientImpl.cpp:
501         (WebKit::ChromeClientImpl::createColorChooser):
502         * src/ChromeClientImpl.h:
503         (WebCore):
504         (ChromeClientImpl):
505         * src/ColorChooserProxy.cpp: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
506         (WebKit):
507         (WebKit::ColorChooserProxy::ColorChooserProxy):
508         (WebKit::ColorChooserProxy::~ColorChooserProxy):
509         (WebKit::ColorChooserProxy::setSelectedColor):
510         (WebKit::ColorChooserProxy::endChooser):
511         * src/ColorChooserProxy.h: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
512         (WebKit):
513         (ColorChooserProxy):
514         * src/ColorChooserUIController.cpp: Removed.
515         * src/WebColorChooserClientImpl.cpp: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
516         (WebKit):
517         (WebKit::WebColorChooserClientImpl::WebColorChooserClientImpl):
518         (WebKit::WebColorChooserClientImpl::~WebColorChooserClientImpl):
519         (WebKit::WebColorChooserClientImpl::didChooseColor):
520         (WebKit::WebColorChooserClientImpl::didEndChooser):
521         * src/WebColorChooserClientImpl.h: Renamed from Source/WebKit/chromium/src/ColorChooserUIController.h.
522         (WebCore):
523         (WebKit):
524         (WebColorChooserClientImpl):
525
526 2012-07-30  Keishi Hattori  <keishi@webkit.org>
527
528         Implement datalist UI for input type color for Chromium
529         https://bugs.webkit.org/show_bug.cgi?id=92075
530
531         Reviewed by Kent Tamura.
532
533         Integrated ColorChooserProxy and WebColorChooserClientImpl into ColorChooserUIController.
534         ColorChooserUIController can control whether to open the color suggestion picker
535         popup or the color chooser depending on the responses from ColorChooserClient.
536
537         * WebKit.gyp:
538         * src/ChromeClientImpl.cpp:
539         (WebKit::ChromeClientImpl::createColorChooser): Returns ColorChooserUIController which is a ColorChooser.
540         (WebKit::ChromeClientImpl::createWebColorChooser): Returns WebColorChooser that was created by Chromium.
541         * src/ChromeClientImpl.h:
542         (WebKit):
543         (ChromeClientImpl):
544         * src/ColorChooserProxy.cpp: Removed.
545         * src/ColorChooserProxy.h: Removed.
546         * src/ColorChooserUIController.cpp: Added.
547         (WebKit):
548         (WebKit::ColorChooserUIController::ColorChooserUIController): Controls the UI for color chooser. Opens the color suggestion picker popup or color chooser depending on the ColorChooserClient.
549         (WebKit::ColorChooserUIController::~ColorChooserUIController):
550         (WebKit::ColorChooserUIController::setSelectedColor):
551         (WebKit::ColorChooserUIController::endChooser): This is called by WebCore so we close both the popup and the color chooser.
552         (WebKit::ColorChooserUIController::didChooseColor):
553         (WebKit::ColorChooserUIController::didEndChooser):
554         (WebKit::ColorChooserUIController::contentSize): The popup will be resized later from JS so we return an arbitrary size.
555         (WebKit::ColorChooserUIController::writeDocument):
556         (WebKit::ColorChooserUIController::setValueAndClosePopup): Performs action based on the numValue.
557         (WebKit::ColorChooserUIController::didClosePopup):
558         (WebKit::ColorChooserUIController::openPopup): Opens color chooser suggestion popup.
559         (WebKit::ColorChooserUIController::closePopup):
560         (WebKit::ColorChooserUIController::openColorChooser): Opens color chooser.
561         * src/ColorChooserUIController.h: Renamed from Source/WebKit/chromium/src/WebColorChooserClientImpl.h.
562         (WebCore):
563         (WebKit):
564         (ColorChooserUIController):
565         * src/WebColorChooserClientImpl.cpp: Removed.
566
567 2012-07-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
568
569         [DRT] LTC:: pageNumberForElementById() could be moved to Internals
570         https://bugs.webkit.org/show_bug.cgi?id=92091
571
572         Reviewed by Hajime Morita.
573
574         Move the pageNumberForElementById from LayoutTestCotroller to Internals and
575         remove the old platform specific implementations as it exclusively tests WebCore functionality.
576
577         * public/WebFrame.h:
578         (WebFrame):
579         * src/WebFrameImpl.cpp:
580         (WebKit):
581         * src/WebFrameImpl.h:
582         (WebFrameImpl):
583
584 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
585
586         Unreviewed, rolling out r124004.
587         http://trac.webkit.org/changeset/124004
588         https://bugs.webkit.org/show_bug.cgi?id=92622
589
590         Broke Android build (Requested by keishi on #webkit).
591
592         * WebKit.gyp:
593         * src/ChromeClientImpl.cpp:
594         (WebKit::ChromeClientImpl::createColorChooser):
595         * src/ChromeClientImpl.h:
596         (WebCore):
597         (ChromeClientImpl):
598         * src/ColorChooserProxy.cpp: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
599         (WebKit):
600         (WebKit::ColorChooserProxy::ColorChooserProxy):
601         (WebKit::ColorChooserProxy::~ColorChooserProxy):
602         (WebKit::ColorChooserProxy::setSelectedColor):
603         (WebKit::ColorChooserProxy::endChooser):
604         * src/ColorChooserProxy.h: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
605         (WebKit):
606         (ColorChooserProxy):
607         * src/ColorChooserUIController.cpp: Removed.
608         * src/WebColorChooserClientImpl.cpp: Copied from Source/WebKit/chromium/src/ColorChooserUIController.h.
609         (WebKit):
610         (WebKit::WebColorChooserClientImpl::WebColorChooserClientImpl):
611         (WebKit::WebColorChooserClientImpl::~WebColorChooserClientImpl):
612         (WebKit::WebColorChooserClientImpl::didChooseColor):
613         (WebKit::WebColorChooserClientImpl::didEndChooser):
614         * src/WebColorChooserClientImpl.h: Renamed from Source/WebKit/chromium/src/ColorChooserUIController.h.
615         (WebCore):
616         (WebKit):
617         (WebColorChooserClientImpl):
618
619 2012-07-30  Keishi Hattori  <keishi@webkit.org>
620
621         Implement datalist UI for input type color for Chromium
622         https://bugs.webkit.org/show_bug.cgi?id=92075
623
624         Reviewed by Kent Tamura.
625
626         Integrated ColorChooserProxy and WebColorChooserClientImpl into ColorChooserUIController.
627         ColorChooserUIController can control whether to open the color suggestion picker
628         popup or the color chooser depending on the responses from ColorChooserClient.
629
630         * WebKit.gyp:
631         * src/ChromeClientImpl.cpp:
632         (WebKit::ChromeClientImpl::createColorChooser): Returns ColorChooserUIController which is a ColorChooser.
633         (WebKit::ChromeClientImpl::createWebColorChooser): Returns WebColorChooser that was created by Chromium.
634         * src/ChromeClientImpl.h:
635         (WebKit):
636         (ChromeClientImpl):
637         * src/ColorChooserProxy.cpp: Removed.
638         * src/ColorChooserProxy.h: Removed.
639         * src/ColorChooserUIController.cpp: Added.
640         (WebKit):
641         (WebKit::ColorChooserUIController::ColorChooserUIController): Controls the UI for color chooser. Opens the color suggestion picker popup or color chooser depending on the ColorChooserClient.
642         (WebKit::ColorChooserUIController::~ColorChooserUIController):
643         (WebKit::ColorChooserUIController::setSelectedColor):
644         (WebKit::ColorChooserUIController::endChooser): This is called by WebCore so we close both the popup and the color chooser.
645         (WebKit::ColorChooserUIController::didChooseColor):
646         (WebKit::ColorChooserUIController::didEndChooser):
647         (WebKit::ColorChooserUIController::contentSize): The popup will be resized later from JS so we return an arbitrary size.
648         (WebKit::ColorChooserUIController::writeDocument):
649         (WebKit::ColorChooserUIController::setValueAndClosePopup): Performs action based on the numValue.
650         (WebKit::ColorChooserUIController::didClosePopup):
651         (WebKit::ColorChooserUIController::openPopup): Opens color chooser suggestion popup.
652         (WebKit::ColorChooserUIController::closePopup):
653         (WebKit::ColorChooserUIController::openColorChooser): Opens color chooser.
654         * src/ColorChooserUIController.h: Renamed from Source/WebKit/chromium/src/WebColorChooserClientImpl.h.
655         (WebCore):
656         (WebKit):
657         (ColorChooserUIController):
658         * src/WebColorChooserClientImpl.cpp: Removed.
659
660 2012-07-29  Lu Guanqun  <guanqun.lu@intel.com>
661
662         [chromium] pass acceleratePainting info to settings
663         https://bugs.webkit.org/show_bug.cgi?id=92467
664
665         Reviewed by Eric Seidel.
666
667         The acceleratePainting info is not passed into settings correctly so
668         that GPU composition would not use the code path of accelerated painting.
669
670         * src/WebLayerTreeView.cpp:
671         (WebKit::WebLayerTreeView::Settings::operator CCLayerTreeSettings):
672
673 2012-07-29  Rik Cabanier  <cabanier@adobe.com>
674
675         Add ENABLE_CSS_COMPOSITING flag
676         https://bugs.webkit.org/show_bug.cgi?id=92553
677
678         Reviewed by Dirk Schulze.
679
680         Adds compiler flag CSS_COMPOSITING to build systems to enable CSS blending and compositing. See spec https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html
681
682         * features.gypi:
683
684 2012-07-28  Peter Kasting  <pkasting@google.com>
685
686         Sigh.  Just disable all the AutoResize tests after the first three.
687         https://bugs.webkit.org/show_bug.cgi?id=92318 
688
689         Unreviewed, making bots happier.
690
691         * tests/WebViewTest.cpp:
692
693 2012-07-28  Peter Kasting  <pkasting@google.com>
694
695         Try disabling different test in hopes of tracking down the real problem.
696         https://bugs.webkit.org/show_bug.cgi?id=92318 
697
698         Unreviewed, making bots happier.
699
700         * tests/WebViewTest.cpp:
701
702 2012-07-27  Peter Kasting  <pkasting@google.com>
703
704         Disable failing test.
705         https://bugs.webkit.org/show_bug.cgi?id=92318 
706
707         Unreviewed, making bots happier.
708
709         * tests/WebViewTest.cpp:
710
711 2012-07-27  Scott Graham  <scottmg@chromium.org>
712
713         Change navigator.webkitGamepads[] to navigator.webkitGetGamepads()
714         https://bugs.webkit.org/show_bug.cgi?id=92533
715
716         Reviewed by Adam Barth.
717
718         Renames for updated access point.
719
720         * src/WebRuntimeFeatures.cpp:
721         (WebKit::WebRuntimeFeatures::enableGamepad):
722         (WebKit::WebRuntimeFeatures::isGamepadEnabled):
723
724 2012-07-27  Kevin Ellis  <kevers@chromium.org>
725
726         [chromium] Calendar for input type=date should be larger on devices that support touch input.
727         https://bugs.webkit.org/show_bug.cgi?id=92424
728
729         Reviewed by Kent Tamura.
730
731         Plumbs the deviceSupportsTouch setting through to the popup page so
732         that the Calendar popup can be enlarged on screens that support touch
733         input.
734
735         * src/WebPagePopupImpl.cpp:
736         (WebKit::WebPagePopupImpl::initPage):
737
738 2012-07-27  Peter Beverloo  <peter@chromium.org>
739
740         Unreviewed.  Rolled DEPS.
741
742         * DEPS:
743
744 2012-07-27  Oli Lan  <olilan@chromium.org>
745
746         [chromium] Fix issues in visiblePositionForWindowPoint (offscreen points / iframes).
747         https://bugs.webkit.org/show_bug.cgi?id=79117
748
749         Fix two issues in WebFrameImpl::visiblePositionForWindowPoint.
750
751         1) If the point is off-screen, the visiblePosition is clipped to the screen.
752            - The fix is to add HitTestRequest::IgnoreClipping.
753
754         2) The result is incorrect if the point is within an iframe.
755            - This is because we are calling convertFromContainingWindow twice: once in windowToContents,
756              and then explicitly as well.
757            - This patch removes the explicit call to convertFromContainingWindow. 
758
759         Reviewed by Adam Barth.
760
761         * src/WebFrameImpl.cpp:
762         (WebKit::WebFrameImpl::visiblePositionForWindowPoint):
763
764 2012-07-27  Peter Beverloo  <peter@chromium.org>
765
766         Unreviewed.  Rolled DEPS.
767
768         * DEPS:
769
770 2012-07-27  Alec Flett  <alecflett@chromium.org>
771
772         IndexedDB: inject index keys on cursor/objectstore/index get success handlers
773         https://bugs.webkit.org/show_bug.cgi?id=91123
774
775         Reviewed by Tony Chang.
776
777         Remove method no longer used.
778
779         * tests/IDBFakeBackingStore.h:
780
781 2012-07-26  Yoshifumi Inoue  <yosin@chromium.org>
782
783         [Forms] Introduce runtime feature flags for input type datetime, datetimelocal, month, time, week
784         https://bugs.webkit.org/show_bug.cgi?id=92339
785
786         Reviewed by Kent Tamura.
787
788         To detect compilation errors and test failure earlier, I would like
789         build and run tests for input type datetime, datetime-local, month,
790         time and week with runtime feature flags to avoid behavior changes
791         on chromium browser.
792
793         This patch adds query and change functions for runtime features of
794         input type datetime, datetime-local, month, time and week to WebRuntimeFeatures
795         class for exposing DRT and chromium browser expermental flags.
796
797         * features.gypi: Turn on ENABLE_INPUT_TYPE_DATETIME, ENABLE_INPUT_TYPE_DATETIMELOCAL,
798         ENABLE_INPUT_TYPE_MONTH, ENABLE_INPUT_TYPE_TIME, and ENABLE_INPUT_TYPE_WEEK for all OS.
799         * public/WebRuntimeFeatures.h:
800         (WebRuntimeFeatures):
801         * src/WebRuntimeFeatures.cpp:
802         (WebKit::WebRuntimeFeatures::enableInputTypeDateTime): Added.
803         (WebKit::WebRuntimeFeatures::isInputTypeDateTimeEnabled): Added.
804         (WebKit::WebRuntimeFeatures::enableInputTypeDateTimeLocal): Added.
805         (WebKit::WebRuntimeFeatures::isInputTypeDateTimeLocalEnabled): Added.
806         (WebKit::WebRuntimeFeatures::enableInputTypeMonth): Added.
807         (WebKit::WebRuntimeFeatures::isInputTypeMonthEnabled): Added.
808         (WebKit::WebRuntimeFeatures::enableInputTypeTime): Added.
809         (WebKit::WebRuntimeFeatures::isInputTypeTimeEnabled): Added.
810         (WebKit::WebRuntimeFeatures::enableInputTypeWeek): Added.
811         (WebKit::WebRuntimeFeatures::isInputTypeWeekEnabled): Added.
812
813 2012-07-26  Sheriff Bot  <webkit.review.bot@gmail.com>
814
815         Unreviewed, rolling out r123799.
816         http://trac.webkit.org/changeset/123799
817         https://bugs.webkit.org/show_bug.cgi?id=92431
818
819         broke the Apple Mac build (Requested by bweinstein on
820         #webkit).
821
822         * src/WebInputEventConversion.cpp:
823         (WebKit):
824         * src/WebInputEventConversion.h:
825         (WebKit):
826         * src/WebPluginContainerImpl.cpp:
827         (WebKit::WebPluginContainerImpl::handleEvent):
828         * src/WebPluginContainerImpl.h:
829         (WebPluginContainerImpl):
830
831 2012-07-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
832
833         Propagate gesture events to plugins.
834         https://bugs.webkit.org/show_bug.cgi?id=92281
835
836         Reviewed by Adam Barth.
837
838         Propagate gesture events to plugins.
839
840         * src/WebInputEventConversion.cpp:
841         (WebKit):
842         (WebKit::WebGestureEventBuilder::WebGestureEventBuilder):
843         * src/WebInputEventConversion.h:
844         (WebCore):
845         (WebKit):
846         (WebGestureEventBuilder):
847         * src/WebPluginContainerImpl.cpp:
848         (WebKit::WebPluginContainerImpl::handleEvent):
849         * src/WebPluginContainerImpl.h:
850         (WebCore):
851         (WebPluginContainerImpl):
852
853 2012-07-26  Adrienne Walker  <enne@google.com>
854
855         [chromium] Remove redundant surface origin transforms
856         https://bugs.webkit.org/show_bug.cgi?id=91815
857
858         Reviewed by Stephen White.
859
860         Clean up use of origin transforms in tests. Where possible, test
861         against the equivalent draw transform.
862
863         * tests/CCLayerTreeHostCommonTest.cpp:
864         * tests/CCLayerTreeHostImplTest.cpp:
865         * tests/CCRenderSurfaceTest.cpp:
866
867 2012-07-25  David Grogan  <dgrogan@chromium.org>
868
869         IndexedDB: WebKit API interfaces for "upgradeneeded" methods and events
870         https://bugs.webkit.org/show_bug.cgi?id=92203
871
872         Reviewed by Adam Barth.
873
874         This is the beginning of our typical three-sided-patch process.
875
876         * public/WebIDBCallbacks.h:
877         (WebKit::WebIDBCallbacks::onBlocked):
878         (WebKit::WebIDBCallbacks::onUpgradeNeeded):
879         * public/WebIDBDatabaseCallbacks.h:
880         (WebKit::WebIDBDatabaseCallbacks::onVersionChange):
881         * public/WebIDBFactory.h:
882         (WebIDBFactory):
883         (WebKit::WebIDBFactory::open):
884         * src/WebIDBFactoryImpl.cpp:
885         (WebKit::WebIDBFactoryImpl::open):
886         (WebKit):
887         * src/WebIDBFactoryImpl.h:
888         (WebIDBFactoryImpl):
889
890 2012-07-19  Adrienne Walker  <enne@google.com>
891
892         [chromium] Make all compositor screen space transforms operate on content rects
893         https://bugs.webkit.org/show_bug.cgi?id=91807
894
895         Reviewed by Kenneth Russell.
896
897         Update tests that deal with screen space transforms to reflect this change.
898
899         * tests/CCLayerTreeHostCommonTest.cpp:
900         * tests/TiledLayerChromiumTest.cpp:
901
902 2012-07-25  Andrew Wilson  <atwilson@chromium.org>
903
904         Unreviewed chromium change to disable failing WebViewTest.AutoResizeInBetweenSizes.
905         https://bugs.webkit.org/show_bug.cgi?id=92318
906
907         * tests/WebViewTest.cpp:
908
909 2012-07-25  Scott Graham  <scottmg@chromium.org>
910
911         [Chromium] fix double->float warnings in CCLayerTreeHostCommonTest.cpp
912         https://bugs.webkit.org/show_bug.cgi?id=92271
913
914         Reviewed by Adrienne Walker.
915
916         Fix compile warnings on Windows.
917
918         * tests/CCLayerTreeHostCommonTest.cpp:
919
920 2012-07-25  Dana Jansens  <danakj@chromium.org>
921
922         [chromium] Move WebFilterOperations from RenderPassDrawQuad to RenderPass
923         https://bugs.webkit.org/show_bug.cgi?id=91885
924
925         Reviewed by Adrienne Walker.
926
927         * tests/CCLayerTreeHostImplTest.cpp:
928         * tests/LayerRendererChromiumTest.cpp:
929         (FakeCCRendererClient::FakeCCRendererClient):
930         (FakeCCRendererClient::rootRenderPass):
931         (FakeCCRendererClient::renderPassesInDrawOrder):
932         (FakeCCRendererClient::renderPasses):
933         (FakeCCRendererClient):
934         (TEST_F):
935         (TEST):
936
937 2012-07-24  Shawn Singh  <shawnsingh@chromium.org>
938
939         [chromium] Refactor CCLayerTreeHostCommon: move root layer special case initialization into internal code.
940         https://bugs.webkit.org/show_bug.cgi?id=88953
941
942         Reviewed by Adrienne Walker.
943
944         Unit tests updated to account for the new less-special root layer setup.
945           - most test cases just needed to remove root->renderSurface()->setContentBounds(), createRenderSurface(), and renderSurfaceLayerList.append().
946           - some test cases originally relied on setting some awkward unconventional bounds of the rootLayer that were different than the rootLayer's renderSurface. these tests are updated.
947           - a few minor cleanups otherwise.
948
949         * tests/CCDamageTrackerTest.cpp:
950         (WebKitTests::executeCalculateDrawTransformsAndVisibility):
951         * tests/CCLayerIteratorTest.cpp:
952         * tests/CCLayerTreeHostCommonTest.cpp:
953         * tests/CCOcclusionTrackerTest.cpp:
954         (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):
955
956 2012-07-25  Taiju Tsuiki  <tzik@chromium.org>
957
958         FileSystem should provide a way to delete filesystem.
959         https://bugs.webkit.org/show_bug.cgi?id=91861
960
961         Reviewed by Adam Barth.
962
963         * public/WebFrameClient.h:
964         (WebFrameClient):
965         (WebKit::WebFrameClient::deleteFileSystem):
966         * src/LocalFileSystemChromium.cpp: Add deleteFileSystem
967         (WebCore::deleteFileSystemNotAllowed):
968         (WebCore):
969         (WebCore::LocalFileSystem::deleteFileSystem):
970
971 2012-07-25  Alok Priyadarshi  <alokp@chromium.org>
972
973         [chromium] WebViewBenchmarkSupport::paint API does not work with recording canvas
974         https://bugs.webkit.org/show_bug.cgi?id=92008
975
976         Reviewed by Darin Fisher.
977
978         Moved the ownership of canvas to WebViewBenchmarkSupport::PaintClient.
979
980         * public/WebViewBenchmarkSupport.h:
981         (PaintClient):
982         (WebKit::WebViewBenchmarkSupport::PaintClient::willPaint):
983         (WebKit::WebViewBenchmarkSupport::PaintClient::didPaint):
984         * src/WebViewBenchmarkSupportImpl.cpp:
985         (WebKit::WebViewBenchmarkSupportImpl::paintLayer):
986         (WebKit::WebViewBenchmarkSupportImpl::softwarePaint):
987
988 2012-07-24  Dana Jansens  <danakj@chromium.org>
989
990         [chromium] Turn the debug HUD into a layer so that it can be drawn as a WebCompositorQuad
991         https://bugs.webkit.org/show_bug.cgi?id=92182
992
993         Reviewed by Adrienne Walker.
994
995         * tests/LayerRendererChromiumTest.cpp:
996         (TEST):
997
998 2012-07-25  Adrienne Walker  <enne@google.com>
999
1000         [chromium] Unify compositor quadTransform/drawTransform/originTransform
1001         https://bugs.webkit.org/show_bug.cgi?id=91417
1002
1003         Reviewed by Kenneth Russell.
1004
1005         Clean up tests to refer to the new draw transform semantics.
1006
1007         * tests/CCDamageTrackerTest.cpp:
1008         (WebKitTests::createTestTreeWithOneSurface):
1009         (WebKitTests::createTestTreeWithTwoSurfaces):
1010         (WebKitTests::TEST_F):
1011         * tests/CCLayerSorterTest.cpp:
1012         * tests/CCLayerTreeHostCommonTest.cpp:
1013         * tests/CCLayerTreeHostImplTest.cpp:
1014         * tests/CCLayerTreeHostTest.cpp:
1015         (WTF::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers::commitCompleteOnCCThread):
1016         * tests/CCQuadCullerTest.cpp:
1017         * tests/TiledLayerChromiumTest.cpp:
1018
1019 2012-07-25  Kevin Ellis  <kevers@chromium.org>
1020
1021         [chromium] Calendar picker popup displays at wrong scale when deviceScaleFactor != 1.
1022         https://bugs.webkit.org/show_bug.cgi?id=92177
1023
1024         Manually tested at deviceScaleFactor = 1 and 2.
1025
1026         Reviewed by Kent Tamura.
1027
1028         The device scale factor was not being set for the calendar popup. 
1029         As a result, the popup was rendered too small on hidpi displays.
1030         This patch sets the device scale factor for any page popup.
1031
1032         * src/WebPagePopupImpl.cpp:
1033         (WebKit::WebPagePopupImpl::initPage):
1034
1035 2012-07-25  MORITA Hajime <morrita@google.com>
1036
1037         Another unreviewed win build fix against r123569.
1038
1039         * tests/IDBAbortOnCorruptTest.cpp:
1040
1041 2012-07-25  MORITA Hajime  <morrita@google.com>
1042
1043         Unreviewed win build fix against r123569.
1044
1045         * tests/IDBAbortOnCorruptTest.cpp:
1046         * tests/IDBDatabaseBackendTest.cpp:
1047
1048 2012-07-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1049
1050         Unreviewed.  Rolled DEPS.
1051
1052         * DEPS:
1053
1054 2012-07-24  Dave Tu  <dtu@chromium.org>
1055
1056         [chromium] Move renderingStats from WebView to WebWidget.
1057         https://bugs.webkit.org/show_bug.cgi?id=92184
1058
1059         Reviewed by Adam Barth.
1060
1061         We are going to add some rendering stats that work in non-composited mode, so the renderingStats() method should be moved from WebView to WebWidget.
1062
1063         * public/WebView.h:
1064         (WebKit):
1065         (WebView):
1066         * public/WebWidget.h:
1067         (WebKit):
1068         (WebWidget):
1069         (WebKit::WebWidget::renderingStats):
1070         * src/WebViewImpl.h:
1071         (WebViewImpl):
1072
1073 2012-07-24  Alec Flett  <alecflett@chromium.org>
1074
1075         IndexedDB: fix #include dependencies so IDBRequest isn't an include root
1076         https://bugs.webkit.org/show_bug.cgi?id=92167
1077
1078         Reviewed by Tony Chang.
1079
1080         Remove implicit dependencies due to using IDBRequest.h, and fix all 
1081         places that break as a result.
1082
1083         * src/IDBCallbacksProxy.cpp:
1084         * src/WebIDBDatabaseImpl.cpp:
1085         * src/WebIDBTransactionImpl.cpp:
1086
1087 2012-07-24  Adam Barth  <abarth@webkit.org>
1088
1089         [Chromium] Support scrolling and zooming to focused input elements
1090         https://bugs.webkit.org/show_bug.cgi?id=91661
1091
1092         Reviewed by Darin Fisher.
1093
1094         This patch introduces saveScrollAndScaleState and
1095         restoreScrollAndScaleState, which can be used to save and restore the
1096         scroll and scale state of the WebView, respectively.  These functions
1097         will be used by Chromium on Android to save the scale and scrolls state
1098         before zoom into a text field so that we can "undo" the zoom if the
1099         user didn't mean to zoom into the text field.
1100
1101         I wanted to write unit tests for these functions, but it wasn't clear
1102         to me how to write the test because startPageScaleAnimation appears to
1103         complete asynchronously.
1104
1105         * public/WebView.h:
1106         (WebView):
1107         * src/WebViewImpl.cpp:
1108         (WebKit::WebViewImpl::WebViewImpl):
1109         (WebKit::WebViewImpl::saveScrollAndScaleState):
1110         (WebKit):
1111         (WebKit::WebViewImpl::restoreScrollAndScaleState):
1112         (WebKit::WebViewImpl::resetSavedScrollAndScaleState):
1113         (WebKit::WebViewImpl::didCommitLoad):
1114         * src/WebViewImpl.h:
1115         (WebViewImpl):
1116
1117 2012-07-24  Dave Tu  <dtu@chromium.org>
1118
1119         [chromium] Add time spent painting to GPU benchmarking renderingStats() API.
1120         https://bugs.webkit.org/show_bug.cgi?id=90019
1121
1122         Reviewed by Adrienne Walker.
1123
1124         * src/WebLayerTreeView.cpp:
1125         (WebKit::WebLayerTreeView::renderingStats):
1126         * tests/CCLayerTreeHostTest.cpp:
1127         * tests/CCTiledLayerTestCommon.cpp:
1128         (WebKitTests::FakeLayerTextureUpdater::Texture::prepareRect):
1129         (WebKitTests::FakeTiledLayerChromium::update):
1130         * tests/CCTiledLayerTestCommon.h:
1131         (Texture):
1132         (FakeTiledLayerChromium):
1133         * tests/Canvas2DLayerBridgeTest.cpp:
1134         * tests/ContentLayerChromiumTest.cpp:
1135         (WebKit::TEST):
1136         * tests/TiledLayerChromiumTest.cpp:
1137
1138 2012-07-24  Jian Li  <jianli@chromium.org>
1139
1140         Add per-context setting for html notifications
1141         https://bugs.webkit.org/show_bug.cgi?id=91295
1142
1143         Reviewed by Adam Barth.
1144
1145         Add new per-context feature for chromium port.
1146
1147         * public/WebPermissionClient.h:
1148         (WebPermissionClient):
1149         (WebKit::WebPermissionClient::allowHTMLNotifications):
1150         * src/ContextFeaturesClientImpl.cpp:
1151         (WebKit::ContextFeaturesClientImpl::askIfIsEnabled):
1152
1153 2012-07-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1154
1155         Unreviewed, rolling out r123499.
1156         http://trac.webkit.org/changeset/123499
1157         https://bugs.webkit.org/show_bug.cgi?id=92161
1158
1159         Android fails to compile (Requested by zhenyao on #webkit).
1160
1161         * src/AssertMatchingEnums.cpp:
1162
1163 2012-07-24  Terry Anderson  <tdanderson@chromium.org>
1164
1165         [chromium] Add a bounding box member in WebGestureEvent
1166         https://bugs.webkit.org/show_bug.cgi?id=92144
1167
1168         Reviewed by Adam Barth.
1169
1170         The new |boundingBox| member will be used to store the touch region for a WebGestureEvent.
1171         This will be useful for gesture target fuzzing across multiple different gesture types
1172         (tap, long press, scroll, etc.)
1173
1174         * public/WebInputEvent.h:
1175         (WebGestureEvent):
1176         * src/WebInputEvent.cpp:
1177         (SameSizeAsWebGestureEvent):
1178
1179 2012-07-24  Nico Weber  <thakis@chromium.org>
1180
1181         [chromium/mac] Add cursor resource pngs to the pak file.
1182         https://bugs.webkit.org/show_bug.cgi?id=92148
1183
1184         Reviewed by Tony Chang.
1185
1186         Once https://chromiumcodereview.appspot.com/10817031/ has landed, they can be
1187         removed from WebCore.gyp's mac_bundle_resources. Part of http://crbug.com/137588
1188
1189         * WebKit.grd:
1190
1191 2012-07-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1192
1193         Unreviewed, rolling out r123472.
1194         http://trac.webkit.org/changeset/123472
1195         https://bugs.webkit.org/show_bug.cgi?id=92134
1196
1197         Revert roll to v8 version that crashes sporadically (Requested
1198         by atwilson on #webkit).
1199
1200         * DEPS:
1201
1202 2012-07-24  Keishi Hattori  <keishi@webkit.org>
1203
1204         [Chromium] Page popup should close on mouse down
1205         https://bugs.webkit.org/show_bug.cgi?id=92092
1206
1207         Reviewed by Kent Tamura.
1208
1209         Page popup should close on mouse down because some elements(e.g. <input type=color>) don't have a blur event that
1210         we can hook to hide the page popup when the user clicks on the page.
1211
1212         * src/WebPagePopupImpl.h:
1213         (WebKit::WebPagePopupImpl::hasSamePopupClient): Returns true if the given WebPagePopupImpl have the same popup client.
1214         * src/WebViewImpl.cpp:
1215         (WebKit::WebViewImpl::handleMouseDown): Close all popups when the page is clicked. Checks if the
1216         mouse down event opened the same popup we just closed.
1217
1218 2012-07-24  Jochen Eisinger  <jochen@chromium.org>
1219
1220         Unreviewed.  Rolled DEPS.
1221
1222         * DEPS:
1223
1224 2012-07-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1225
1226         Unreviewed, rolling out r123463.
1227         http://trac.webkit.org/changeset/123463
1228         https://bugs.webkit.org/show_bug.cgi?id=92110
1229
1230         Broke Android build (Requested by keishi on #webkit).
1231
1232         * src/WebPagePopupImpl.h:
1233         * src/WebViewImpl.cpp:
1234         (WebKit::WebViewImpl::handleMouseDown):
1235
1236 2012-07-24  Keishi Hattori  <keishi@webkit.org>
1237
1238         [Chromium] Page popup should close on mouse down
1239         https://bugs.webkit.org/show_bug.cgi?id=92092
1240
1241         Reviewed by Kent Tamura.
1242
1243         Page popup should close on mouse down because some elements(e.g. <input type=color>) don't have a blur event that
1244         we can hook to hide the page popup when the user clicks on the page.
1245
1246         * src/WebPagePopupImpl.h:
1247         (WebKit::WebPagePopupImpl::hasSamePopupClient): Returns true if the given WebPagePopupImpl have the same popup client.
1248         * src/WebViewImpl.cpp:
1249         (WebKit::WebViewImpl::handleMouseDown): Close all popups when the page is clicked. Checks if the
1250         mouse down event opened the same popup we just closed.
1251
1252 2012-07-24  Anthony Scian  <ascian@rim.com>
1253
1254         Web Inspector [JSC]: Enable initiator column in network panel.
1255         https://bugs.webkit.org/show_bug.cgi?id=65533
1256
1257         Reviewed by Vsevolod Vlasov.
1258
1259         With 40118 fixed for webkit, Preferences.displayInitiator should be set to true.
1260         Removed references to it since the optionality is no longer required.
1261
1262         Test: http/tests/inspector/network/network-initiator.html
1263
1264         * src/js/DevTools.js:
1265
1266 2012-07-24  Peter Beverloo  <peter@chromium.org>
1267
1268         Unreviewed.  Rolled DEPS.
1269
1270         * DEPS:
1271
1272 2012-07-23  Mark Pilgrim  <pilgrim@chromium.org>
1273
1274         [Chromium] Move layoutTestMode to WebCore
1275         https://bugs.webkit.org/show_bug.cgi?id=92010
1276
1277         Reviewed by Adam Barth.
1278
1279         Part of a refactoring series. See tracking bug 82948.
1280
1281         * src/PlatformSupport.cpp:
1282         (WebCore):
1283         * src/WebKit.cpp:
1284         (WebKit::setLayoutTestMode):
1285         (WebKit::layoutTestMode):
1286
1287 2012-07-23  Dave Tu  <dtu@chromium.org>
1288
1289         [chromium] Add droppedFrameCount to renderingStats.
1290         https://bugs.webkit.org/show_bug.cgi?id=91694
1291
1292         Reviewed by Adrienne Walker.
1293
1294         * src/WebLayerTreeView.cpp:
1295         (WebKit::WebLayerTreeView::renderingStats):
1296         * tests/CCLayerTreeHostTest.cpp:
1297         (WTF::CCLayerTreeHostTestScrollMultipleRedraw::drawLayersOnCCThread):
1298
1299 2012-07-23  Brian Anderson  <brianderson@chromium.org>
1300
1301         [chromium] Use shallow flushes that don't glFlush
1302         https://bugs.webkit.org/show_bug.cgi?id=90325
1303
1304         Reviewed by Kenneth Russell.
1305
1306         Changed CCTextureUpdaterTest to recognize shallowFlushCHROMIUM().
1307
1308         * tests/CCTextureUpdaterTest.cpp:
1309
1310 2012-07-23  Adrienne Walker  <enne@google.com>
1311
1312         [chromium] Add more compositor unit tests for high DPI transforms
1313         https://bugs.webkit.org/show_bug.cgi?id=91917
1314
1315         Reviewed by Kenneth Russell.
1316
1317         The current set of high DPI tests only deal with layers in a render
1318         surface. Add some extra tests for non-surface layers. Also add a test
1319         to make sure that an owning layer in a surface doesn't differ from a
1320         non-owning layer in high DPI circumstances.
1321
1322         * tests/CCLayerTreeHostCommonTest.cpp:
1323
1324 2012-07-23  Shawn Singh  <shawnsingh@chromium.org>
1325
1326         [chromium] Fix unit tests in debug mode after r123375
1327         https://bugs.webkit.org/show_bug.cgi?id=92030
1328
1329         Reviewed by Adrienne Walker.
1330
1331         Fixed two unit tests that were causing debug assertions because
1332         they gave calcDrawTransforms an empty sized root layer.
1333
1334         * tests/CCLayerTreeHostCommonTest.cpp:
1335
1336 2012-07-23  Simon Fraser  <simon.fraser@apple.com>
1337
1338         Part 2 of: Implement sticky positioning
1339         https://bugs.webkit.org/show_bug.cgi?id=90046
1340
1341         Reviewed by Ojan Vafai.
1342
1343         Turn on ENABLE_CSS_STICKY_POSITION.
1344
1345         * features.gypi:
1346
1347 2012-07-23  Shawn Singh  <shawnsingh@chromium.org>
1348
1349         [chromium] Refactor CCLayerTreeHostCommon: clean up clipRect and drawableContentRect design
1350         https://bugs.webkit.org/show_bug.cgi?id=80622
1351
1352         Reviewed by Adrienne Walker.
1353
1354         Many tests needed to be updated because the semantics of the layer tree have changed:
1355           - a few tests that were no longer applicable were removed.
1356           - many tests needed to have fixed initialization, properly
1357             setting surface contentRect and rootLayer bounds.
1358           - because clipRect and usesLayerClipping no longer exists, those places in code had to be removed/changed
1359           - the scissorRect tests needed to have updated expectations
1360             because after this patch, the rootLayer Surface now clips
1361             to its contentBounds.
1362           - the clipRect tests were changed to test the layer's new semantics for the drawableContentRect instead.
1363
1364         * tests/CCLayerImplTest.cpp:
1365         (WebCore::TEST):
1366         * tests/CCLayerIteratorTest.cpp:
1367         * tests/CCLayerTreeHostCommonTest.cpp:
1368         * tests/CCLayerTreeHostImplTest.cpp:
1369         * tests/CCLayerTreeHostTest.cpp:
1370         * tests/CCOcclusionTrackerTest.cpp:
1371         (WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):
1372         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
1373         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
1374         * tests/LayerChromiumTest.cpp:
1375
1376 2012-07-23  Daniel Cheng  <dcheng@chromium.org>
1377
1378         [chromium] Fix build on Ubuntu Precise.
1379         https://bugs.webkit.org/show_bug.cgi?id=92021
1380
1381         Reviewed by Adrienne Walker.
1382
1383         Remove an array that's written but never read.
1384
1385         * tests/CCResourceProviderTest.cpp:
1386         (WebKit::TEST_F):
1387
1388 2012-07-23  Nate Chapin  <japhet@chromium.org>
1389
1390         Add WebTextInputType enum values for text areas and
1391         content-editable.
1392         https://bugs.webkit.org/show_bug.cgi?id=91654
1393
1394         Reviewed by Adam Barth.
1395
1396         No new tests, no behavior change without corresponding chromium.org changes.
1397
1398         * public/WebTextInputType.h:
1399         * src/WebViewImpl.cpp:
1400         (WebKit::WebViewImpl::textInputType):
1401
1402 2012-07-23  Pierre Rossi  <pierre.rossi@gmail.com>
1403
1404         Unify numTouchEventHandlersChanged and needTouchEvents in the chrome client
1405         https://bugs.webkit.org/show_bug.cgi?id=91006
1406
1407         Reviewed by Ryosuke Niwa.
1408
1409         Rename the functions to follow a more boolean logic.
1410
1411         * public/WebViewClient.h:
1412         (WebKit::WebViewClient::hasTouchEventHandlers):
1413         * src/ChromeClientImpl.cpp:
1414         (WebKit):
1415         (WebKit::ChromeClientImpl::needTouchEvents):
1416         * src/ChromeClientImpl.h:
1417         (ChromeClientImpl):
1418         * src/WebViewImpl.cpp:
1419         (WebKit::WebViewImpl::hasTouchEventHandlers):
1420         * src/WebViewImpl.h:
1421         (WebViewImpl):
1422
1423 2012-07-23  Simon Fraser  <simon.fraser@apple.com>
1424
1425         Implement sticky positioning
1426         https://bugs.webkit.org/show_bug.cgi?id=90046
1427
1428         Reviewed by Ojan Vafai.
1429
1430         Add ENABLE_CSS_STICKY_POSITION, defaulting to off initially.
1431         
1432         * features.gypi:
1433
1434 2012-07-23  Peter Beverloo  <peter@chromium.org>
1435
1436         [Chromium] Buildfix for fixing gclient on the Chromium Windows bot
1437         https://bugs.webkit.org/show_bug.cgi?id=91977
1438
1439         Unreviewed build fix.
1440
1441         Add the tools/isolate directory to the Windows checkout as these files
1442         currently are missing during gyp generation. maruel introduced the need
1443         for these in this isolate refactoring, specifically this Chromium CL:
1444         http://src.chromium.org/viewvc/chrome?view=rev&revision=147689
1445
1446         * DEPS:
1447
1448 2012-07-22  Kent Tamura  <tkent@chromium.org>
1449
1450         [Chromium-Mac] Fix a build error.
1451
1452         * DEPS: Add third_party/GTM.
1453
1454 2012-07-23  Kent Tamura  <tkent@chromium.org>
1455
1456         Rename ENABLE_METER_TAG and ENABLE_PROGRESS_TAG to ENABLE_METER_ELEMENT and ENABLE_PROGRESS_ELEMENT respectively
1457         https://bugs.webkit.org/show_bug.cgi?id=91941
1458
1459         Reviewed by Kentaro Hara.
1460
1461         A flag name for an elmement should be ENABLE_*_ELEMENT.
1462
1463         * features.gypi:
1464
1465 2012-07-22  Kent Tamura  <tkent@chromium.org>
1466
1467         Rename ENABLE_DETAILS to ENABLE_DETAILS_ELEMENT
1468         https://bugs.webkit.org/show_bug.cgi?id=91928
1469
1470         Reviewed by Kentaro Hara.
1471
1472         A flag name for an elmement should be ENABLE_*_ELEMENT.
1473
1474         * features.gypi:
1475
1476 2012-07-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1477
1478         Unreviewed.  Rolled DEPS.
1479
1480         * DEPS:
1481
1482 2012-07-20  Kent Tamura  <tkent@chromium.org>
1483
1484         Rename ENABLE_DATALIST to ENABLE_DATALIST_ELEMENT
1485         https://bugs.webkit.org/show_bug.cgi?id=91846
1486
1487         Reviewed by Kentaro Hara.
1488
1489         A flag name for an elmement should be ENABLE_*_ELEMENT.
1490
1491         * features.gypi:
1492         * src/WebInputElement.cpp:
1493         (WebKit::WebInputElement::dataListOptions):
1494
1495 2012-07-20  Joshua Bell  <jsbell@chromium.org>
1496
1497         IndexedDB: Simplify backend interface classes
1498         https://bugs.webkit.org/show_bug.cgi?id=91901
1499
1500         Reviewed by Tony Chang.
1501
1502         Remove unnecessary method stubs from proxy class.
1503
1504         * src/IDBTransactionBackendProxy.cpp:
1505         * src/IDBTransactionBackendProxy.h:
1506         (IDBTransactionBackendProxy):
1507
1508 2012-07-20  Scott Graham  <scottmg@chromium.org>
1509
1510         Add windows native versions of bison, flex and gperf.
1511
1512         Reviewed by Tony Chang.
1513
1514         * DEPS:
1515
1516 2012-07-20  David Grogan  <dgrogan@chromium.org>
1517
1518         IndexedDB: Include intVersion when converting between WebCore and WebKit IDBMetadata types
1519         https://bugs.webkit.org/show_bug.cgi?id=91414
1520
1521         Reviewed by Adam Barth.
1522
1523         * src/AssertMatchingEnums.cpp:
1524         * src/WebIDBMetadata.cpp:
1525         (WebKit::WebIDBMetadata::WebIDBMetadata):
1526         (WebKit::WebIDBMetadata::operator IDBDatabaseMetadata):
1527
1528 2012-07-20  Robert Sesek  <rsesek@chromium.org>
1529
1530         [chromium][Mac] Switch the MACOSX_DEPLOYMENT_TARGET to 10.6
1531         https://bugs.webkit.org/show_bug.cgi?id=91752
1532
1533         Reviewed by Eric Seidel.
1534
1535         Use 10.6 NSScreen/NSColorSpace APIs to determine if the screen is
1536         monochrome rather than comparing against deprecated colorspace names.
1537
1538         * src/mac/WebScreenInfoFactory.mm:
1539         (WebKit::WebScreenInfoFactory::screenInfo):
1540
1541 2012-07-20  Daniel Murphy  <dmurph@chromium.org>
1542
1543         Introduce WebViewBenchmarkSupport for performance experiments on a real WebView
1544         https://bugs.webkit.org/show_bug.cgi?id=88271
1545
1546         Reviewed by Darin Fisher.
1547
1548         * WebKit.gyp:
1549         * public/WebView.h:
1550         (WebKit):
1551         (WebView):
1552         (WebKit::WebView::benchmarkSupport):
1553         * public/WebViewBenchmarkSupport.h: Added.
1554         (WebKit):
1555         (WebViewBenchmarkSupport):
1556         (PaintClient):
1557         (WebKit::WebViewBenchmarkSupport::PaintClient::willPaint):
1558         (WebKit::WebViewBenchmarkSupport::PaintClient::didPaint):
1559         (WebKit::WebViewBenchmarkSupport::PaintClient::~PaintClient):
1560         (WebKit::WebViewBenchmarkSupport::~WebViewBenchmarkSupport):
1561         * src/WebViewBenchmarkSupportImpl.cpp: Added.
1562         (WebKit):
1563         (WebKit::WebViewBenchmarkSupportImpl::paintLayer):
1564         (WebKit::WebViewBenchmarkSupportImpl::acceleratedPaintUnclipped):
1565         (WebKit::WebViewBenchmarkSupportImpl::softwarePaint):
1566         (WebKit::WebViewBenchmarkSupportImpl::paint):
1567         * src/WebViewBenchmarkSupportImpl.h: Added.
1568         (WebCore):
1569         (WebKit):
1570         (WebViewBenchmarkSupportImpl):
1571         (WebKit::WebViewBenchmarkSupportImpl::WebViewBenchmarkSupportImpl):
1572         (WebKit::WebViewBenchmarkSupportImpl::~WebViewBenchmarkSupportImpl):
1573         * src/WebViewImpl.cpp:
1574         (WebKit::WebViewImpl::WebViewImpl):
1575         (WebKit::WebViewImpl::benchmarkSupport):
1576         (WebKit):
1577         (WebKit::WebViewImpl::rootGraphicsLayer):
1578         * src/WebViewImpl.h:
1579         (WebKit):
1580         (WebViewImpl):
1581
1582 2012-07-20  Han Shen  <shenhan@google.com>
1583
1584         [Chromium] Compilation fails under gcc 4.7
1585         https://bugs.webkit.org/show_bug.cgi?id=90227
1586
1587         Reviewed by Tony Chang.
1588
1589         Disable warnings about c++0x compatibility in gcc newer than 4.6.
1590
1591         * WebKit.gyp:
1592         * WebKitUnitTests.gyp:
1593
1594 2012-07-20  Adam Barth  <abarth@webkit.org>
1595
1596         [Chromium] Add WebView::zoomToFindInPageRect for Android
1597         https://bugs.webkit.org/show_bug.cgi?id=91801
1598
1599         Reviewed by Tony Chang.
1600
1601         On Android, when you find in page, we scale the viewport to reveal what
1602         you've found (because the screen is small). This function instructs the
1603         WebView to zoom to display a given rect.
1604
1605         * public/WebView.h:
1606         (WebView):
1607         * src/WebViewImpl.cpp:
1608         (WebKit::WebViewImpl::animateZoomAroundPoint):
1609             - This function is a bit more general than necessary for this patch
1610               because it is also used in other cases for animating a zoom
1611               around a given point (e.g., double-tap to zoom). These uses will
1612               be upstreamed in later patches.
1613         (WebKit::WebViewImpl::zoomToFindInPageRect):
1614         * src/WebViewImpl.h:
1615         (WebViewImpl):
1616
1617 2012-07-19  Luke Macpherson   <macpherson@chromium.org>
1618
1619         Enable CSS variables compile time flag in Chrome.
1620         https://bugs.webkit.org/show_bug.cgi?id=91708
1621
1622         Reviewed by Dimitri Glazkov.
1623
1624         Flips the ENABLE_CSS_VARIABLES compile flag on for Chrome. There is also a run-time flag that is off by default,
1625         so this should not have a user visible effect other than making the variables runtime flag visible at chrome://flags/
1626
1627         * features.gypi:
1628
1629 2012-07-19  Wei James  <james.wei@intel.com>
1630
1631         enable Web Audio for chromium android port
1632         https://bugs.webkit.org/show_bug.cgi?id=89428
1633
1634         Reviewed by Kenneth Russell.
1635
1636         * features.gypi:
1637
1638 2012-07-19  Adam Barth  <abarth@webkit.org>
1639
1640         [Chromium] Support external autofill popups
1641         https://bugs.webkit.org/show_bug.cgi?id=91651
1642
1643         Reviewed by Darin Fisher.
1644
1645         This looks like the last piece needed to support external autofill
1646         popups. This function just lets the embedder select an index
1647         (presumably because the user picked an index from the external autofill
1648         popup).
1649
1650         * public/WebView.h:
1651         (WebView):
1652         * src/WebViewImpl.cpp:
1653         (WebKit::WebViewImpl::selectAutofillSuggestionAtIndex):
1654         (WebKit):
1655         * src/WebViewImpl.h:
1656         (WebViewImpl):
1657
1658 2012-07-19  Zeev Lieber  <zlieber@chromium.org>
1659
1660         [Chromium] Textures drawn during occlusion are incorrectly re-used when unoccluded.
1661         https://bugs.webkit.org/show_bug.cgi?id=91537
1662
1663         Reviewed by Adrienne Walker.
1664
1665         Added unit tests to test texture caching with clipping and
1666         occlusion. Removed some minor code duplication when initializing
1667         layers for various scenarios.
1668
1669         MockCCQuadCuller can now implement CCQuadSink.
1670
1671         * tests/CCLayerTreeHostImplTest.cpp:
1672         * tests/CCQuadCullerTest.cpp:
1673         * tests/MockCCQuadCuller.h:
1674         (WebCore::MockCCQuadCuller::MockCCQuadCuller):
1675
1676 2012-07-19  Adam Barth  <abarth@webkit.org>
1677
1678         [Chromium] WebView is missing isSelectionEditable and backgroundColor which are used by chromium-android
1679         https://bugs.webkit.org/show_bug.cgi?id=91671
1680
1681         Reviewed by Darin Fisher.
1682
1683         I haven't studied what these APIs are used for downstream, but they
1684         seem harmless enough.
1685
1686         * public/WebView.h:
1687         (WebView):
1688         * public/WebWidget.h:
1689         (WebWidget):
1690         (WebKit::WebWidget::backgroundColor):
1691         * src/WebViewImpl.cpp:
1692         (WebKit::WebViewImpl::isSelectionEditable):
1693         (WebKit):
1694         (WebKit::WebViewImpl::backgroundColor):
1695         * src/WebViewImpl.h:
1696         (WebViewImpl):
1697
1698 2012-07-19  Andrew Scherkus  <scherkus@chromium.org>
1699
1700         [chromium] Move WebAudioSourceProvider destructor from public to protected
1701         https://bugs.webkit.org/show_bug.cgi?id=91669
1702
1703         Reviewed by Darin Fisher.
1704
1705         The lifetime of a WebAudioSourceProvider is managed by the implementor
1706         and should never be deallocted by WebKit.
1707
1708         * public/WebAudioSourceProvider.h:
1709         (WebAudioSourceProvider):
1710
1711 2012-07-19  Tony Chang  <tony@chromium.org>
1712
1713         Unreviewed, rolling out r123036.
1714         http://trac.webkit.org/changeset/123036
1715         https://bugs.webkit.org/show_bug.cgi?id=91555
1716
1717         Triggers some DCHECKs in Chromium browser_tests
1718
1719         * public/WebTextInputType.h:
1720         * src/WebViewImpl.cpp:
1721         (WebKit::WebViewImpl::textInputType):
1722
1723 2012-07-19  Joshua Bell  <jsbell@chromium.org>
1724
1725         Roll out r121610 and r122487 which may have been causing flaky crashes
1726         https://bugs.webkit.org/show_bug.cgi?id=91637
1727
1728         Reviewed by Kentaro Hara.
1729
1730         Flaky crashes started in random tests following r121610. It's not clear
1731         that r121610 is to blame, but we'd like to prove or disprove it.
1732         If this doesn't resolve the crashes, this patch should be rolled out.
1733
1734         * src/WebBindings.cpp:
1735         (WebKit::getRangeImpl):
1736         (WebKit::getElementImpl):
1737         (WebKit::getArrayBufferImpl):
1738         (WebKit::getArrayBufferViewImpl):
1739         (WebKit::WebBindings::toV8Value):
1740
1741 2012-07-19  Sami Kyostila  <skyostil@chromium.org>
1742
1743         [chromium] Remove duplicate mock CCLayerTreeHostClient
1744         https://bugs.webkit.org/show_bug.cgi?id=89457
1745
1746         Reviewed by Adrienne Walker.
1747
1748         This test can reuse the existing CCFakeLayerTreeHostClient.
1749
1750         * tests/GraphicsLayerChromiumTest.cpp:
1751         (WebKitTests::MockLayerTreeHost::create):
1752
1753 2012-07-19  Peter Beverloo  <peter@chromium.org>
1754
1755         Unreviewed.  Rolled DEPS.
1756
1757         * DEPS:
1758
1759 2012-07-18  Ryosuke Niwa  <rniwa@webkit.org>
1760
1761         Chromium build fix attempt. Don't use anonymous namespace.
1762
1763         * tests/TextureCopierTest.cpp:
1764
1765 2012-07-18  Antoine Labour  <piman@chromium.org>
1766
1767         [chromium] Introduce CCResourceProvider, replacing TextureAllocator and hiding textures from clients to allow transport
1768         https://bugs.webkit.org/show_bug.cgi?id=91044
1769
1770         Reviewed by Adrienne Walker.
1771
1772         This does several things:
1773         - Add a CCResourceProvider class, that hides textures and the 3D context
1774         from layers (except those that need it). Instead layers manage
1775         "resources". In the future, resources are expected to be transportable
1776         to a "parent" CCResourceProvider to allow flattening of nested
1777         compositors.
1778         - Replace texture ids by resource ids in DrawQuads (allowing them to be
1779         serializable).
1780         - Replace TextureAllocator uses by the CCResourceProvider class.
1781         - Upload of data is done through the CCResourceProvider instead of
1782         explicit GL calls.
1783         - External textures are wrapped into a resource at draw time (see
1784         caveat/FIXME in CCTextureLayerImpl).
1785         - Rendering with the resources is done through an explicit
1786         beginRenderFrom/endRenderFrom that exposes the texture only between that
1787         pair.
1788         - Merge all the LayerTextureSubImage instances (one per layer), into a
1789         single instance on the CCResourceProvider.
1790
1791         Added CCResourceProviderTest, the refactoring is covered by existing tests.
1792
1793         * WebKit.gypi:
1794         * tests/CCLayerTreeHostImplTest.cpp:
1795         * tests/CCPrioritizedTextureTest.cpp:
1796         (WTF::CCPrioritizedTextureTest::CCPrioritizedTextureTest):
1797         (WTF::CCPrioritizedTextureTest::createManager):
1798         (WTF::CCPrioritizedTextureTest::validateTexture):
1799         (WTF::CCPrioritizedTextureTest::resourceProvider):
1800         (CCPrioritizedTextureTest):
1801         (WTF::TEST_F):
1802         * tests/CCQuadCullerTest.cpp:
1803         * tests/CCResourceProviderTest.cpp: Added.
1804         (WebKit):
1805         (ResourceProviderContext):
1806         (WebKit::ResourceProviderContext::create):
1807         (WebKit::ResourceProviderContext::bindTexture):
1808         (WebKit::ResourceProviderContext::createTexture):
1809         (WebKit::ResourceProviderContext::deleteTexture):
1810         (WebKit::ResourceProviderContext::texStorage2DEXT):
1811         (WebKit::ResourceProviderContext::texImage2D):
1812         (WebKit::ResourceProviderContext::texSubImage2D):
1813         (WebKit::ResourceProviderContext::getPixels):
1814         (WebKit::ResourceProviderContext::textureCount):
1815         (WebKit::ResourceProviderContext::textureSize):
1816         (WebKit::ResourceProviderContext::ResourceProviderContext):
1817         (WebKit::ResourceProviderContext::Texture::Texture):
1818         (Texture):
1819         (WebKit::ResourceProviderContext::allocateTexture):
1820         (WebKit::ResourceProviderContext::setPixels):
1821         (CCResourceProviderTest):
1822         (WebKit::CCResourceProviderTest::CCResourceProviderTest):
1823         (WebKit::CCResourceProviderTest::context):
1824         (WebKit::CCResourceProviderTest::getResourcePixels):
1825         (WebKit::TEST_F):
1826         * tests/CCScopedTextureTest.cpp:
1827         (WebKitTests::TEST):
1828         * tests/CCTiledLayerImplTest.cpp:
1829         (CCLayerTestCommon::createLayer):
1830         (CCLayerTestCommon::TEST):
1831         * tests/CCTiledLayerTestCommon.cpp:
1832         (WebKitTests::FakeLayerTextureUpdater::Texture::updateRect):
1833         * tests/CCTiledLayerTestCommon.h:
1834         (Texture):
1835         (WebKitTests::FakeTextureCopier::copyTexture):
1836         (WebKitTests::FakeTextureCopier::flush):
1837         (WebKitTests::FakeTextureUploader::uploadTexture):
1838         * tests/ContentLayerChromiumTest.cpp:
1839         (WebKit::TEST):
1840         * tests/FakeCCGraphicsContext.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCTexture.h.
1841         (WebKit):
1842         (WebKit::createFakeCCGraphicsContext):
1843         * tests/LayerRendererChromiumTest.cpp:
1844         (FakeLayerRendererChromium::FakeLayerRendererChromium):
1845         (LayerRendererChromiumTest::LayerRendererChromiumTest):
1846         (LayerRendererChromiumTest::context):
1847         (LayerRendererChromiumTest):
1848         (TEST_F):
1849         (TEST):
1850         * tests/TextureCopierTest.cpp:
1851         * tests/TextureManagerTest.cpp:
1852         (WTF::TextureManagerTest::TextureManagerTest):
1853         (WTF::TextureManagerTest::createTextureManager):
1854         (WTF::TextureManagerTest::requestTexture):
1855         (TextureManagerTest):
1856         * tests/TiledLayerChromiumTest.cpp:
1857
1858 2012-07-18  David Grogan  <dgrogan@chromium.org>
1859
1860         IndexedDB: Add intVersion to chromium/public/WebIDBMetadata.h
1861         https://bugs.webkit.org/show_bug.cgi?id=91408
1862
1863         Reviewed by Adam Barth.
1864
1865         This is in support of the new upgradeneeded versioning api.
1866         intVersion will eventually replace the WebString version member.
1867
1868         * public/WebIDBMetadata.h:
1869         (WebKit::WebIDBMetadata::WebIDBMetadata):
1870         The spec uses unsigned long long for version numbers but we use signed
1871         long long so that we can use -1 as a sentinel. It indicates that a
1872         database still uses a string version.
1873
1874 2012-07-18  Adam Barth  <abarth@webkit.org>
1875
1876         Disable printing on chromium-android
1877         https://bugs.webkit.org/show_bug.cgi?id=91550
1878
1879         Reviewed by Tony Chang.
1880
1881         We don't implement printing on Android.
1882
1883         * features.gypi:
1884         * src/WebFrameImpl.cpp:
1885         (WebKit::WebFrameImpl::printPage):
1886
1887 2012-07-18  Alexandre Elias  <aelias@google.com>
1888
1889         [chromium] Ubercomp: add id to SharedQuadState
1890         https://bugs.webkit.org/show_bug.cgi?id=91670
1891
1892         Reviewed by Adrienne Walker.
1893
1894         This assigns an integer ID to SharedQuadState objects and a
1895         corresponding ID to quads.  This ID is unique only within a
1896         RenderPass and currently is just set to the index in the shared quad
1897         state list.  This is redundant with the pointer and exists to
1898         simplify serialization.
1899
1900         I found out that pointer rewriting within a pickler is blocked by
1901         pointers to memory being const there, so the reassignment will have to
1902         be performed in the application layer anyway.  In that case, it's
1903         simplest to add some ID integers.
1904
1905         * tests/CCLayerTreeHostImplTest.cpp:
1906         * tests/CCQuadCullerTest.cpp:
1907         * tests/CCRenderSurfaceTest.cpp:
1908         * tests/CCSolidColorLayerImplTest.cpp:
1909         (CCLayerTestCommon::TEST):
1910         * tests/CCTiledLayerImplTest.cpp:
1911         (CCLayerTestCommon::TEST):
1912         (CCLayerTestCommon::getQuads):
1913
1914 2012-07-18  Nate Chapin  <japhet@chromium.org>
1915
1916         Add WebTextInputType enum values for text areas and
1917         content-editable.
1918         https://bugs.webkit.org/show_bug.cgi?id=91654
1919
1920         Reviewed by Adam Barth.
1921
1922         No new tests, no behavior change without corresponding chromium.org changes.
1923
1924         * public/WebTextInputType.h:
1925         * src/WebViewImpl.cpp:
1926         (WebKit::WebViewImpl::textInputType):
1927
1928 2012-07-18  Alexandre Elias  <aelias@google.com>
1929
1930         [chromium] Ubercomp: clean up CCRenderer interface
1931         https://bugs.webkit.org/show_bug.cgi?id=91555
1932
1933         Reviewed by Adrienne Walker.
1934
1935         I replaced the one-by-one RenderPass calls with a new drawFrame()
1936         method that directly takes a CCRenderPassList, and moved a small
1937         amount of code from CCLayerTreeHostImpl to implement it.  In ubercomp
1938         mode, we will produce a frame bundle rather than a command-stream, so
1939         the full list is easier to work with.
1940
1941         Also, give empty default implementations for the methods that don't
1942         need to do anything in a non-GL context, and make private
1943         setScissorToRect.
1944
1945         * tests/LayerRendererChromiumTest.cpp:
1946         (FakeCCRendererClient::FakeCCRendererClient):
1947         (FakeCCRendererClient::renderPasses):
1948         (FakeCCRendererClient):
1949         (TEST_F):
1950         (TEST):
1951
1952 2012-07-18  Joshua Bell  <jsbell@chromium.org>
1953
1954         IndexedDB: Fix some coding style violations
1955         https://bugs.webkit.org/show_bug.cgi?id=91565
1956
1957         Reviewed by Tony Chang.
1958
1959         * tests/IDBLevelDBCodingTest.cpp:
1960         (IDBLevelDBCoding::TEST):
1961
1962 2012-07-18  Tony Chang  <tony@chromium.org>
1963
1964         [chromium] Unreviewed, fix some MSVC compile warnings.
1965
1966         * tests/CCDamageTrackerTest.cpp:
1967         (WebKitTests::TEST_F):
1968         * tests/CCLayerTreeHostCommonTest.cpp:
1969         * tests/TiledLayerChromiumTest.cpp:
1970
1971 2012-07-18  Mark Pilgrim  <pilgrim@chromium.org>
1972
1973         [Chromium] Call SQLiteFileSystem-related functions directly
1974         https://bugs.webkit.org/show_bug.cgi?id=91631
1975
1976         Reviewed by Adam Barth.
1977
1978         Part of a refactoring series. See tracking bug 82948.
1979
1980         * public/platform/WebKitPlatformSupport.h:
1981         (WebKitPlatformSupport):
1982         * src/PlatformSupport.cpp:
1983         (WebCore):
1984
1985 2012-07-18  Tony Chang  <tony@chromium.org>
1986
1987         [chromium] Unreviewed, more compile fixes on Chromium Win.
1988
1989         * tests/WebTransformationMatrixTest.cpp:
1990         (WebKit::TEST):
1991
1992 2012-07-18  Tony Chang  <tony@chromium.org>
1993
1994         [chromium] Fix compile on Windows.
1995
1996         148>tests\LayerChromiumTest.cpp(510): warning C4305: 'argument' : truncation from 'double' to 'float'
1997
1998         * tests/LayerChromiumTest.cpp:
1999
2000 2012-07-18  Alec Flett  <alecflett@chromium.org>
2001
2002         Implement putIndexKeys in WebIDBObjectStoreImpl
2003         https://bugs.webkit.org/show_bug.cgi?id=91546
2004
2005         Reviewed by Darin Fisher.
2006
2007         Implement putIndexKeys in the chromium API, so it is callable
2008         from chromium.
2009
2010         * src/WebIDBObjectStoreImpl.cpp:
2011         (WebKit::WebIDBObjectStoreImpl::putWithIndexKeys):
2012         (WebKit):
2013         * src/WebIDBObjectStoreImpl.h:
2014         (WebIDBObjectStoreImpl):
2015
2016 2012-07-18  Tony Chang  <tony@chromium.org>
2017
2018         [chromium] Unreviewed compile fix for Android.
2019
2020         More sqrt fixes.
2021
2022         * tests/CCLayerTreeHostCommonTest.cpp:
2023
2024 2012-07-18  Tony Chang  <tony@chromium.org>
2025
2026         [chromium] Unreviewed compile fix for Android.
2027         
2028         Source/WebKit/chromium/tests/CCDamageTrackerTest.cpp: In member function 'virtual void<unnamed>::CCDamageTrackerTest_verifyDamageForTransformedLayer_Test::TestBody()':
2029         Source/WebKit/chromium/tests/CCDamageTrackerTest.cpp:332: error: call of overloaded 'sqrt(int)' is ambiguous
2030
2031         * tests/CCDamageTrackerTest.cpp:
2032         (WebKitTests::TEST_F):
2033
2034 2012-07-18  Varun Jain  <varunjain@chromium.org>
2035
2036         [chromium] Drag image for image elements should be scaled with device scale factor.
2037         https://bugs.webkit.org/show_bug.cgi?id=89688
2038
2039         Reviewed by Adam Barth.
2040
2041         * src/DragClientImpl.cpp:
2042         (WebKit::DragClientImpl::startDrag):
2043         * tests/DragImageTest.cpp:
2044         (WebCore::TEST):
2045
2046 2012-07-18  Shawn Singh  <shawnsingh@chromium.org>
2047
2048         [chromium] Fix style for numeric literals in chromium unit test code
2049         https://bugs.webkit.org/show_bug.cgi?id=91635
2050
2051         Reviewed by Adrienne Walker.
2052
2053         Where possible, removed ".0" and "f" suffixes on numeric literals,
2054         to be more consistent with WebKit style rules.
2055
2056         * tests/CCDamageTrackerTest.cpp:
2057         (WebKitTests::TEST_F):
2058         * tests/CCLayerQuadTest.cpp:
2059         (WebCore::TEST):
2060         * tests/CCLayerTreeHostCommonTest.cpp:
2061         * tests/CCQuadCullerTest.cpp:
2062         * tests/LayerChromiumTest.cpp:
2063         * tests/WebTransformationMatrixTest.cpp:
2064         (WebKit::TEST):
2065
2066 2012-07-17  Shawn Singh  <shawnsingh@chromium.org>
2067
2068         [chromium] Remove awkward anchorPoint usage that implicity affects layer position
2069         https://bugs.webkit.org/show_bug.cgi?id=91472
2070
2071         Reviewed by Adrienne Walker.
2072
2073         Unit tests were updated to account for the fact that anchorPoint
2074         and position are now separated.
2075
2076         * tests/CCDamageTrackerTest.cpp:
2077         (WebKitTests::TEST_F):
2078         * tests/CCLayerTreeHostCommonTest.cpp:
2079         * tests/CCLayerTreeHostImplTest.cpp:
2080         * tests/TiledLayerChromiumTest.cpp:
2081
2082 2012-07-18  Yoshifumi Inoue  <yosin@chromium.org>
2083
2084         Decimal::toString should not round integer value.
2085         https://bugs.webkit.org/show_bug.cgi?id=91481
2086
2087         Reviewed by Kent Tamura.
2088
2089         This patch adds a new test cases for Decimal::toString() for failed
2090         value and maximum coefficient value with various exponent.
2091
2092         * tests/DecimalTest.cpp:
2093         (TEST_F): DecimalTest.toString: Add test cases for big coefficient values.
2094
2095 2012-07-18  Hans Wennborg  <hans@chromium.org>
2096
2097         Add copy constructor to WebSpeechGrammar.h
2098         https://bugs.webkit.org/show_bug.cgi?id=91484
2099
2100         Reviewed by Adam Barth.
2101
2102         Provide user-defined copy constructor (and assign function) for WebSpeechGrammar.
2103         Without this, we were hitting the implicit copy constructor, which in
2104         turn used the implicit copy constructor of WebPrivatePtr. This was bad,
2105         because the implicit copy constructor wouldn't increace the reference
2106         count on the wrapped object, causing us to crash.
2107
2108         Also add one for WebSpeechRecognitionResult; haven't seen any problems
2109         here, but I noticed it was missing.
2110
2111         * public/WebSpeechGrammar.h:
2112         (WebKit::WebSpeechGrammar::WebSpeechGrammar):
2113         (WebSpeechGrammar):
2114         * public/WebSpeechRecognitionResult.h:
2115         (WebKit::WebSpeechRecognitionResult::WebSpeechRecognitionResult):
2116         (WebSpeechRecognitionResult):
2117         * src/WebSpeechGrammar.cpp:
2118         (WebKit::WebSpeechGrammar::assign):
2119         (WebKit):
2120
2121 2012-07-17  Yoshifumi Inoue  <yosin@chromium.org>
2122
2123         Decimal constructor with 99999999999999999 loses last digit
2124         https://bugs.webkit.org/show_bug.cgi?id=91579
2125
2126         Reviewed by Kent Tamura.
2127
2128         This patch adds test cases for Decimal::EncodedData constructors for
2129         testing edge cases in addition to common cases which they aren't
2130         covered by other test cases.
2131
2132         * tests/DecimalTest.cpp:
2133         (EXPECT_DECIMAL_ENCODED_DATA_EQ): Introduce a new macro for ease of
2134         writing test cases for verifying components of Decimal::EncodedData.
2135         (TEST_F): Added a new test entry DecimalTest.Constructor.
2136
2137 2012-07-17  Yoshifumi Inoue  <yosin@chromium.org>
2138
2139         Test cases in DecimalTest should use EXPECT_STREQ for ease of debugging test case
2140         https://bugs.webkit.org/show_bug.cgi?id=91572
2141
2142         Reviewed by Kent Tamura.
2143
2144         This patch introduces EXPECT_DECIMAL_STREQ macro to replace EXPECT_EQ
2145         with String class for displaying text string rather than object dump
2146         for ease of debugging test cases.
2147
2148         * tests/DecimalTest.cpp:
2149         (DecimalTest::stepDown): Changed to return Decimal instead of String
2150         to use EXPECT_DECIMAL_STREQ.
2151         (DecimalTest::stepUp): ditto.
2152         (TEST_F): Replaced EXPECT_EQ + String class to EXPECT_DECIMAL_STREQ.
2153
2154 2012-07-17  Joshua Bell  <jsbell@chromium.org>
2155
2156         IndexedDB: Key generator state not maintained across connections
2157         https://bugs.webkit.org/show_bug.cgi?id=91456
2158
2159         Reviewed by Tony Chang.
2160
2161         Add stub method implementations to test class.
2162
2163         * tests/IDBFakeBackingStore.h:
2164
2165 2012-07-17  Tony Chang  <tony@chromium.org>
2166
2167         Unreviewed, rolling out r122884.
2168         http://trac.webkit.org/changeset/122884
2169         https://bugs.webkit.org/show_bug.cgi?id=91408
2170
2171         Broke the chromium-win build.
2172
2173         * public/WebIDBMetadata.h:
2174         (WebIDBMetadata):
2175         (WebKit::WebIDBMetadata::WebIDBMetadata):
2176
2177 2012-07-17  David Grogan  <dgrogan@chromium.org>
2178
2179         IndexedDB: Add intVersion to chromium/public/WebIDBMetadata.h
2180         https://bugs.webkit.org/show_bug.cgi?id=91408
2181
2182         Reviewed by Adam Barth.
2183
2184         This is in support of the new upgradeneeded versioning api.
2185         intVersion will eventually replace the WebString version member.
2186
2187         * public/WebIDBMetadata.h:
2188         (WebIDBMetadata): The spec uses unsigned long long for version
2189         numbers but we use int64_t here so that we can use -1 as a sentinel.
2190         It indicates that a database still uses a string version.
2191
2192 2012-07-17  Tony Chang  <tony@chromium.org>
2193
2194         Unreviewed.  Rolled DEPS.
2195
2196         * DEPS:
2197
2198 2012-07-17  Vivek Galatage  <vivekgalatage@gmail.com>
2199
2200         Web Inspector: refactor InspectorController::connectFrontend() to accept InspectorFrontendChannel.
2201         https://bugs.webkit.org/show_bug.cgi?id=91196
2202
2203         Reviewed by Pavel Feldman.
2204
2205         Refactoring InspectorClients. InspectorClient::openInspectorFrontend
2206         now returning the InspectorFrontendChannel.
2207
2208         * src/InspectorClientImpl.cpp:
2209         (WebKit::InspectorClientImpl::openInspectorFrontend):
2210         * src/InspectorClientImpl.h:
2211         (InspectorClientImpl):
2212         * src/WebDevToolsAgentImpl.cpp:
2213         (WebKit::WebDevToolsAgentImpl::reattach):
2214         (WebKit::WebDevToolsAgentImpl::openInspectorFrontend):
2215         * src/WebDevToolsAgentImpl.h:
2216         (WebDevToolsAgentImpl):
2217
2218 2012-07-16  Adam Barth  <abarth@webkit.org>
2219
2220         Unreviewed. Remove two empty directories.
2221
2222         * public/linuxish: Removed.
2223         * src/linuxish: Removed.
2224
2225 2012-07-16  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2226
2227         Add RegisterProtocolHandlerClient to the Modules/protocolhandler
2228         https://bugs.webkit.org/show_bug.cgi?id=90940
2229
2230         Reviewed by Hajime Morita.
2231
2232         As a step to let protocol handler be moved to the modules, RegisterProtocolHandlerClient needs
2233         to be added to the Modules/protocolhandler. Because ChromeClient has some virtual functions for
2234         protocol handlers, virtual functions should be moved to RegisterProtocolHandlerClient.
2235
2236         In order to support this, RegisterProtocolHandlerClientImpl class is added to ChromeClientImpl files.
2237
2238         In addition, existing functions related to protocol handler in ChromeClientImpl class are moved to
2239         RegisterProtocolHandlerClientImpl class.
2240
2241         * WebKit.gyp:
2242         * src/ChromeClientImpl.cpp: Implement RegisterProtocolHandlerClientImpl class.
2243         (WebKit):
2244         (WebKit::RegisterProtocolHandlerClientImpl::create):
2245         (WebKit::RegisterProtocolHandlerClientImpl::RegisterProtocolHandlerClientImpl):
2246         (WebKit::RegisterProtocolHandlerClientImpl::registerProtocolHandler):
2247         * src/ChromeClientImpl.h:
2248         (ChromeClientImpl):
2249         (RegisterProtocolHandlerClientImpl):
2250         (WebKit::RegisterProtocolHandlerClientImpl::~RegisterProtocolHandlerClientImpl):
2251         (WebKit):
2252         * src/WebViewImpl.cpp: Register RegisterProtocolHandlerClientImpl in order to support supplement.
2253         (WebKit::WebViewImpl::WebViewImpl):
2254         * src/WebViewImpl.h:
2255
2256 2012-07-16  Yoshifumi Inoue  <yosin@chromium.org>
2257
2258         REGRESSION(r122552): DecimalTest tests (CeilingSmallExponent and FloorSmallExponent) started failing.
2259         https://bugs.webkit.org/show_bug.cgi?id=91244
2260
2261         Reviewed by Kent Tamura.
2262
2263         This patch enables and updates disabled test cases of DecimalTest
2264         caused by fixes in r122552 of Decimal::ceiling() and Decimal::floor()
2265         for small fraction numbers and added test cases. Fixes in r122552
2266         itself is correct however, it didn't update existing tests for very small
2267         fraction numbers.
2268
2269         * tests/DecimalTest.cpp:
2270         (TEST_F): CeilingSmallExponent: Change expected value to 1 for ceiling(1e-1000),
2271         ceiling rounds number toward positive infinity.
2272         (TEST_F): FloorSmallExponent: Change expected value to -1 for floor(-1e-1000),
2273         floor rounds number toward negative infinity.
2274
2275 2012-07-16  Koji Ishii  <kojiishi@gmail.com>
2276
2277         Vertical alternate glyph (GSUB) support for OpenTypeVerticalData
2278         https://bugs.webkit.org/show_bug.cgi?id=81389
2279
2280         Reviewed by Tony Chang.
2281
2282         Tests for pointer validations for OpenType tables.
2283
2284         * WebKit.gypi:
2285         * tests/OpenTypeVerticalDataTest.cpp: Added.
2286         (WebCore):
2287         (TestTable):
2288         (WebCore::TestTable::validateOffset):
2289         (WebCore::TEST):
2290
2291 2012-07-16  Alexandre Elias  <aelias@google.com>
2292
2293         [chromium] Fix WebFrameTest flakiness due to synthetic mouse events
2294         https://bugs.webkit.org/show_bug.cgi?id=91428
2295
2296         Reviewed by Adam Barth.
2297
2298         Synthetic mouse move events on scrolling can cause segfaults in
2299         WebFrameTest due to delayed callbacks on the message loop after
2300         state destruction. This is currently only affecting
2301         the Android port, but has the potential to affect other platforms in the
2302         future.
2303
2304         We can avoid the issue by disabling the deviceSupportsMouse
2305         setting, which shouldn't be needed by any WebFrameTest.
2306
2307         * tests/FrameTestHelpers.cpp:
2308         (WebKit::FrameTestHelpers::createWebViewAndLoad):
2309
2310 2012-07-16  Alec Flett  <alecflett@chromium.org>
2311
2312         IndexedDB: Introduce putWithIndexKeys and calculate them in the renderer
2313         https://bugs.webkit.org/show_bug.cgi?id=90923
2314
2315         Reviewed by Darin Fisher.
2316
2317         Stub out implementations of putWithIndexKeys(), already implemented
2318         on the chromium side.
2319
2320         * public/WebIDBObjectStore.h:
2321         (WebKit::WebIDBObjectStore::putWithIndexKeys):
2322         * src/IDBObjectStoreBackendProxy.cpp:
2323         (WebKit::IDBObjectStoreBackendProxy::putWithIndexKeys):
2324         (WebKit):
2325         * src/IDBObjectStoreBackendProxy.h:
2326         (IDBObjectStoreBackendProxy):
2327
2328 2012-07-16  Adrienne Walker  <enne@google.com>
2329
2330         [chromium] Unify compositor quad transforms into content space
2331         https://bugs.webkit.org/show_bug.cgi?id=91350
2332
2333         Reviewed by Kenneth Russell.
2334
2335         Update tests to add bounds/contentBounds properties to layers. This
2336         exposed a bug in the quad culler tests where the draw transform was
2337         incorrectly being set to the origin transform rather than being a
2338         transform that operates on centered layer rects. Fixed this bug.
2339
2340         * tests/CCQuadCullerTest.cpp:
2341         * tests/CCSolidColorLayerImplTest.cpp:
2342         (CCLayerTestCommon::TEST):
2343         * tests/CCTiledLayerImplTest.cpp:
2344         (CCLayerTestCommon::createLayer):
2345
2346 2012-07-16  Adrienne Walker  <enne@google.com>
2347
2348         [chromium] Unify compositor quad transforms into content space
2349         https://bugs.webkit.org/show_bug.cgi?id=91350
2350
2351         Reviewed by Kenneth Russell.
2352
2353         Update tests to add bounds/contentBounds properties to layers. This
2354         exposed a bug in the quad culler tests where the draw transform was
2355         incorrectly being set to the origin transform rather than being a
2356         transform that operates on centered layer rects. Fixed this bug.
2357
2358         * tests/CCQuadCullerTest.cpp:
2359         * tests/CCSolidColorLayerImplTest.cpp:
2360         (CCLayerTestCommon::TEST):
2361         * tests/CCTiledLayerImplTest.cpp:
2362         (CCLayerTestCommon::createLayer):
2363
2364 2012-07-16  Dana Jansens  <danakj@chromium.org>
2365
2366         [chromium] Remove targetRenderSurface concept, give layers a renderTarget which is the layer whose coordinate space they draw into
2367         https://bugs.webkit.org/show_bug.cgi?id=91288
2368
2369         Reviewed by Adrienne Walker.
2370
2371         * tests/CCDamageTrackerTest.cpp:
2372         (WebKitTests::TEST_F):
2373         * tests/CCLayerImplTest.cpp:
2374         (WebCore::TEST):
2375         * tests/CCLayerTreeHostCommonTest.cpp:
2376         * tests/CCOcclusionTrackerTest.cpp:
2377         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblings::runMyTest):
2378         (WebKitTests::CCOcclusionTrackerTestOverlappingSurfaceSiblingsWithTwoTransforms::runMyTest):
2379         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity1OnMainThread::runMyTest):
2380         (WebKitTests::CCOcclusionTrackerTestAnimationOpacity0OnMainThread::runMyTest):
2381         (WebKitTests::CCOcclusionTrackerTestAnimationTranslateOnMainThread::runMyTest):
2382         (WebKitTests::CCOcclusionTrackerTestReplicaOccluded::runMyTest):
2383         (WebKitTests::CCOcclusionTrackerTestSurfaceWithReplicaUnoccluded::runMyTest):
2384         (WebKitTests::CCOcclusionTrackerTestSurfaceAndReplicaOccludedDifferently::runMyTest):
2385         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfSurface::runMyTest):
2386         (WebKitTests::CCOcclusionTrackerTestTopmostSurfaceIsClippedToScissor::runMyTest):
2387         (WebKitTests::CCOcclusionTrackerTestSurfaceChildOfClippingSurface::runMyTest):
2388         * tests/CCQuadCullerTest.cpp:
2389         * tests/CCTiledLayerTestCommon.cpp:
2390         (WebKitTests::FakeTiledLayerChromium::setTexturePriorities):
2391         * tests/LayerChromiumTest.cpp:
2392
2393 2012-07-16  Sami Kyostila  <skyostil@chromium.org>
2394
2395         [chromium] Only apply page scale delta to root scroll layer
2396         https://bugs.webkit.org/show_bug.cgi?id=91374
2397
2398         Reviewed by Adrienne Walker.
2399
2400         New unit test
2401         CCLayerTreeHostImplTest.pageScaleDeltaAppliedToRootScrollLayerOnly to verify
2402         the transformation of child layer while pinch zooming.
2403
2404         * tests/CCLayerTreeHostImplTest.cpp:
2405
2406 2012-07-16  Kihong Kwon  <kihong.kwon@samsung.com>
2407
2408         Remove setController from BatteryClient
2409         https://bugs.webkit.org/show_bug.cgi?id=90944
2410
2411         Reviewed by Adam Barth.
2412
2413         Remove virtual identifier from setController because setController is removed from WebCore::BatteryClient.
2414         In addition, BatteryController is set to instance of BatteryClientImpl in the constructor of WebViewImpl.
2415
2416         * src/BatteryClientImpl.h:
2417         (BatteryClientImpl):
2418         * src/WebViewImpl.cpp:
2419         (WebKit::WebViewImpl::WebViewImpl):
2420
2421 2012-07-16  Dana Jansens  <danakj@chromium.org>
2422
2423         [chromium] Incorrect assertion: Replicas will cause a RenderPass to be removed twice
2424         https://bugs.webkit.org/show_bug.cgi?id=91328
2425
2426         Reviewed by Adrienne Walker.
2427
2428         Add replicas to the surfaces in the test.
2429
2430         * tests/CCLayerTreeHostTest.cpp:
2431         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
2432         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::beginTest):
2433         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::afterTest):
2434         (CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
2435
2436 2012-07-13  Eric Penner  <epenner@google.com>
2437
2438         [chromium] Add 'self-managed' option to CCPrioritizedTexture to enable render-surface and canvas use cases.
2439         https://bugs.webkit.org/show_bug.cgi?id=91177
2440
2441         Reviewed by Adrienne Walker.
2442
2443         * tests/CCPrioritizedTextureTest.cpp:
2444         (WTF::TEST_F):
2445         * tests/TiledLayerChromiumTest.cpp:
2446
2447 2012-07-13  Brian Anderson  <brianderson@chromium.org>
2448
2449         Add flushes to CCTextureUpdater::update
2450         https://bugs.webkit.org/show_bug.cgi?id=89035
2451
2452         Reviewed by Adrienne Walker.
2453
2454         CCTextureUpdaterTest added to verify texture upload/flushing patterns.
2455
2456         * WebKit.gypi:
2457         * tests/CCTextureUpdaterTest.cpp: Added.
2458
2459 2012-07-13  David Grogan  <dgrogan@chromium.org>
2460
2461         IndexedDB: Re-enable indexeddb in test_shell
2462         https://bugs.webkit.org/show_bug.cgi?id=91161
2463
2464         Reviewed by Tony Chang.
2465
2466         IDB used to be allowed to run if webView->permissionClient() was NULL,
2467         as is the case in test_shell. This was inadvertently changed in
2468         http://wkb.ug/90310.
2469
2470         We still don't have an automated test for this (http://crbug.com/113738)
2471         Tested manually:
2472
2473         * In test_shell:
2474         1) Open an IDB page
2475         2) Verify IDB has permission to open a DB
2476
2477         * In chrome:
2478         1) Open an IDB page
2479         2) Verify IDB has permission to open a DB
2480         3) Revoke IDB permissions in chrome://chrome/settings/content
2481         4) Reload the IDB page
2482         5) Verify IDB doesn't have permission to open a DB
2483
2484         * src/IDBFactoryBackendProxy.cpp:
2485         (WebKit::IDBFactoryBackendProxy::allowIndexedDB):
2486
2487 2012-07-13  Wei James  <james.wei@intel.com>
2488
2489         enable TestWebKitAPI/webkit_unit_tests apk on x86 android platform by adding abi support
2490         https://bugs.webkit.org/show_bug.cgi?id=91194
2491
2492         Reviewed by Adam Barth.
2493
2494         * WebKitUnitTests.gyp:
2495
2496 2012-07-13  Dana Jansens  <danakj@chromium.org>
2497
2498         webkit_unit_test CCLayerTreeHostImplTest.testRemoveRenderPasses started failing.
2499         https://bugs.webkit.org/show_bug.cgi?id=91245
2500
2501         Reviewed by Adrienne Walker.
2502
2503         * tests/CCLayerTreeHostImplTest.cpp:
2504
2505 2012-07-13  Vsevolod Vlasov  <vsevik@chromium.org>
2506
2507         Unreviewed gardening: skip failing webkit unit test.
2508
2509         * tests/CCLayerTreeHostImplTest.cpp:
2510
2511 2012-07-13  Vsevolod Vlasov  <vsevik@chromium.org>
2512
2513         Unreviewed gardening, skip failing webkit_unit_tests.
2514
2515         * tests/DecimalTest.cpp:
2516         (TEST_F):
2517
2518 2012-07-13  Kent Tamura  <tkent@chromium.org>
2519
2520         Make calendar pickers testable
2521         https://bugs.webkit.org/show_bug.cgi?id=84827
2522
2523         Reviewed by Hajime Morita.
2524
2525         * src/ChromeClientImpl.cpp:
2526         (WebKit::ChromeClientImpl::ChromeClientImpl):
2527         Initialize m_pagePopupDriver with the WebViewImpl.
2528         (WebKit::ChromeClientImpl::openPagePopup):
2529         Just calls PagePoupDriver::openPagePopup().
2530         (WebKit::ChromeClientImpl::closePagePopup):
2531         Just calls PagePoupDriver::closePagePopup().
2532         (WebKit::ChromeClientImpl::setPagePopupDriver):
2533         * src/ChromeClientImpl.h:
2534         (ChromeClientImpl): Add setPagePopupDriver
2535         * src/WebViewImpl.h:
2536         (WebViewImpl):
2537         WebViewImpl implements PagePopupDriver. openPagePopup() and
2538         closePagePopup() override members of PagePopupDriver.
2539
2540 2012-07-13  Yoshifumi Inoue  <yosin@chromium.org>
2541
2542         REGRESSION(r119948): [Forms] Spin button Up/Down actions make value to zero for input type "number" when step mismatched
2543         https://bugs.webkit.org/show_bug.cgi?id=91197
2544
2545         Reviewed by Kent Tamura.
2546
2547         This patch adds test cases for Decimal::ceiling() and floor() of
2548         positive/negative small fractional numbers.
2549
2550         * tests/DecimalTest.cpp:
2551         (TEST_F):
2552
2553 2012-07-12  Adrienne Walker  <enne@google.com>
2554
2555         [chromium] Root invalidations for RTL pages need to be in the right space
2556         https://bugs.webkit.org/show_bug.cgi?id=91155
2557
2558         Reviewed by Kenneth Russell.
2559
2560         The root layer has a translation on it when placed in the tree, so any
2561         invalidations on this layer likewise need to be adjusted.
2562
2563         This adjustment is due to the fact that compositor layers all have the
2564         origin in the upper left corner of the layer, but this is not always
2565         the origin for graphics layers. Rather than making compositor layers
2566         have to deal with a potential offset, we change the transform when
2567         inserting the layer into the tree. Invalidations need to be similarly
2568         transformed from document space into compositor layer space.
2569
2570         The need for this offset is due to the definition of the initial
2571         containing block. RTL pages (pages with dir=RTL on the body) start
2572         scrolled all the way to the right, and the origin is in the upper left
2573         hand corner of this initial viewport. Thus on RTL pages with
2574         horizontal overflow, the left of the document is in negative CSS
2575         space.
2576
2577         * src/NonCompositedContentHost.cpp:
2578         (WebKit::NonCompositedContentHost::invalidateRect):
2579
2580 2012-07-12  Dana Jansens  <danakj@chromium.org>
2581
2582         [chromium] Remove the RenderPass pointer from RenderPassDrawQuad
2583         https://bugs.webkit.org/show_bug.cgi?id=91023
2584
2585         Reviewed by Adrienne Walker.
2586
2587         * tests/CCLayerTreeHostImplTest.cpp:
2588
2589 2012-07-12  Adam Barth  <abarth@webkit.org>
2590
2591         [Chromium] WebSettings should be sorted
2592         https://bugs.webkit.org/show_bug.cgi?id=91157
2593
2594         Reviewed by Eric Seidel.
2595
2596         This might be my OCD, but IMHO this file would be cleaner if we listed
2597         the settings in alphabetic order.
2598
2599         * public/WebSettings.h:
2600         * src/WebSettingsImpl.h:
2601         (WebSettingsImpl):
2602         (WebKit::WebSettingsImpl::forceSoftwareCompositing):
2603         (WebKit::WebSettingsImpl::viewportEnabled):
2604         (WebKit::WebSettingsImpl::maxUntiledLayerSize):
2605
2606 2012-07-12  Joshua Bell  <jsbell@chromium.org>
2607
2608         IndexedDB: Enable IDBFactory.deleteDatabase() and webkitGetDatabaseNames() in Workers
2609         https://bugs.webkit.org/show_bug.cgi?id=90310
2610
2611         Reviewed by Tony Chang.
2612
2613         * src/IDBFactoryBackendProxy.cpp:
2614         (WebKit::IDBFactoryBackendProxy::allowIndexedDB): Consolidates user-prompting logic.
2615         (WebKit::getWebFrame): Helper to dig out frame from Document, or null for Worker.
2616         (WebKit::IDBFactoryBackendProxy::getDatabaseNames):
2617         (WebKit):
2618         (WebKit::IDBFactoryBackendProxy::open):
2619         (WebKit::IDBFactoryBackendProxy::deleteDatabase):
2620         * src/IDBFactoryBackendProxy.h: Update method signatures to match interface.
2621         (WebCore):
2622         (IDBFactoryBackendProxy):
2623
2624 2012-07-12  Dana Jansens  <danakj@chromium.org>
2625
2626         [chromium] The root layer should not try create a second RenderSurface for itself
2627         https://bugs.webkit.org/show_bug.cgi?id=91124
2628
2629         Reviewed by Adrienne Walker.
2630
2631         * tests/CCLayerTreeHostImplTest.cpp:
2632
2633 2012-07-12  Eric Penner  <epenner@google.com>
2634
2635         [chromium] Use CCTexture/TextureAllocator and remove TextureManager
2636         https://bugs.webkit.org/show_bug.cgi?id=91001
2637
2638         Reviewed by Adrienne Walker.
2639
2640         Deleting old texture manager tests.
2641
2642         * WebKit.gypi:
2643         * tests/CCLayerTreeHostImplTest.cpp:
2644         * tests/CCPrioritizedTextureTest.cpp:
2645         (WTF::CCPrioritizedTextureTest::texturesMemorySize):
2646         * tests/CCThreadedTest.cpp:
2647         * tests/CCTiledLayerTestCommon.h:
2648         * tests/Canvas2DLayerBridgeTest.cpp:
2649         * tests/TextureManagerTest.cpp: Removed.
2650
2651 2012-07-12  Robert Sesek  <rsesek@chromium.org>
2652
2653         [chromium][Mac] r122400 broke 10.6 build
2654         https://bugs.webkit.org/show_bug.cgi?id=91103
2655
2656         Reviewed by Tony Chang.
2657
2658         Use the right availability macros for forward-declaring methods and
2659         defining constants.
2660
2661         * src/mac/WebInputEventFactory.mm:
2662
2663 2012-07-12  Tony Chang  <tony@chromium.org>
2664
2665         [chromium] Remove drag and drop API methods that are no longer used
2666         https://bugs.webkit.org/show_bug.cgi?id=90996
2667
2668         Reviewed by Adam Barth.
2669
2670         In r117327, we added a parameter for modifier keys to these methods.
2671         Chromium has since switched to using the methods that require the
2672         extra parameter so we can remove these methods.
2673
2674         * public/WebView.h:
2675         (WebView):
2676         * src/WebViewImpl.cpp:
2677         (WebKit::WebViewImpl::dragTargetDragEnter):
2678         (WebKit::WebViewImpl::dragTargetDragOver):
2679         * src/WebViewImpl.h:
2680         (WebViewImpl):
2681
2682 2012-07-12  Tony Chang  <tony@chromium.org>
2683
2684         Unreviewed.  Rolled DEPS.
2685
2686         * DEPS:
2687
2688 2012-07-12  Adam Barth  <abarth@webkit.org>
2689
2690         [Chromium] Delete last mention of Hixie76 in WebKit/chromium
2691         https://bugs.webkit.org/show_bug.cgi?id=91099
2692
2693         Reviewed by Tony Chang.
2694
2695         This deprecated API is no longer used anywhere.
2696
2697         * public/WebSettings.h:
2698         (WebKit::WebSettings::setDefaultDeviceScaleFactor):
2699
2700 2012-07-12  Tony Chang  <tony@chromium.org>
2701
2702         Unreviewed, rolling out r122477.
2703         http://trac.webkit.org/changeset/122477
2704         https://bugs.webkit.org/show_bug.cgi?id=91103
2705
2706         Broke Chromium Mac build
2707
2708         * src/mac/WebInputEventFactory.mm:
2709
2710 2012-07-12  Robert Sesek  <rsesek@chromium.org>
2711
2712         [chromium][Mac] r122400 broke 10.6 build
2713         https://bugs.webkit.org/show_bug.cgi?id=91103
2714
2715         Reviewed by Tony Chang.
2716
2717         Use the right availability macros for forward-declaring methods and
2718         defining constants.
2719
2720         * src/mac/WebInputEventFactory.mm:
2721
2722 2012-07-12  Peter Beverloo  <peter@chromium.org>
2723
2724         [Chromium] Enable building APKs for TestWebKitAPI and webkit_unit_tests
2725         https://bugs.webkit.org/show_bug.cgi?id=90989
2726
2727         Reviewed by Adam Barth.
2728
2729         Add dependencies on the webkit_unit_tests_apk and TestWebKitAPI_apk
2730         targets for Android, making sure that we're generating the packages.
2731
2732         * All.gyp:
2733
2734 2012-07-12  Leandro Gracia Gil  <leandrogracia@chromium.org>
2735
2736         [Chromium] Remove unrequired API in WebSurroundingText.
2737         https://bugs.webkit.org/show_bug.cgi?id=91067
2738
2739         Reviewed by Adam Barth.
2740
2741         Remove the unused first initialize method from WebSurroundingText.
2742         Now both Chromium and LayoutTestController use the second method.
2743
2744         * public/WebSurroundingText.h:
2745         (WebSurroundingText):
2746         * src/WebSurroundingText.cpp:
2747
2748 2012-07-11  Mark Rowe  <mrowe@apple.com>
2749
2750         <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of system availability macros
2751
2752         This removal was handled by a script that translates the relevant macros in to the equivalent checks
2753         using the system availability macros.
2754
2755         Reviewed by Filip Pizlo.
2756
2757         * src/mac/WebInputEventFactory.mm:
2758
2759 2012-07-11  Sheriff Bot  <webkit.review.bot@gmail.com>
2760
2761         Unreviewed.  Rolled DEPS.
2762
2763         * DEPS:
2764
2765 2012-07-11  Sheriff Bot  <webkit.review.bot@gmail.com>
2766
2767         Unreviewed, rolling out r122358.
2768         http://trac.webkit.org/changeset/122358
2769         https://bugs.webkit.org/show_bug.cgi?id=91037
2770
2771         Build break on WebKit Win (Requested by hayato on #webkit).
2772
2773         * public/WebView.h:
2774         (WebView):
2775         * src/WebViewImpl.cpp:
2776         (WebKit::WebViewImpl::dragTargetDragEnter):
2777         (WebKit):
2778         (WebKit::WebViewImpl::dragTargetDragOver):
2779         (WebKit::WebViewImpl::dragTargetDrop):
2780         * src/WebViewImpl.h:
2781         (WebViewImpl):
2782
2783 2012-07-11  Alexandre Elias  <aelias@google.com>
2784
2785         [chromium] Move compositor quads to Platform/chromium/public
2786         https://bugs.webkit.org/show_bug.cgi?id=90582
2787
2788         Reviewed by Adrienne Walker.
2789
2790         This moves CCSharedQuadState, CCDrawQuad, and all but two CC*DrawQuad
2791         classes to the WebKit namespace, as a first step to pushing them
2792         across the process boundary for the ubercompositor.
2793
2794         - The intent is to serialize the class hierarchy using the same
2795         mechanism as WebInputEvent.  In order to do this, there are three
2796         requirements: pure POD data, a method returning size, and a packing
2797         pragma.
2798
2799         - Private data members are fine with this kind of serializer, and a
2800         default constructor is not needed.  Because of that, we can maintain
2801         the same encapsulation and convenient APIs (behind
2802         WEBKIT_IMPLEMENTATION) as the original classes.  To ease the
2803         transition, the original WebCore headers still exist and typedef to
2804         the new classes.
2805
2806         - However, SharedQuadState will be serialized using the normal
2807         IPC_STRUCT_TRAITS macro, so I made its members public.  A custom
2808         serializer (on quad lists) will maintain the pointers from quads to
2809         SharedQuadStates.
2810
2811         - I converted the Material casting mechanism to materialCast() methods
2812         living in the derived classes.  That way, the WebCompositorQuad header
2813         doesn't need to know about all its derived classes.
2814
2815         - Quad classes not yet transitioned can still be used in
2816         non-ubercompositor mode.  CCRenderPassDrawQuad and CCYUVVideoDrawQuad
2817         are currently non-POD and I left them in their original files.
2818
2819         This approach is the best I've found so far, since it preserves all
2820         WebCore-facing APIs and avoids unnecessary code duplication (new quad
2821         types or members can be added by modifying only one place).  There
2822         also should not be an unreasonable amount of custom serializer code
2823         required.
2824
2825         * tests/CCLayerTestCommon.cpp:
2826         (CCLayerTestCommon::verifyQuadsExactlyCoverRect):
2827         * tests/CCSolidColorLayerImplTest.cpp:
2828         (CCLayerTestCommon::TEST):
2829
2830 2012-07-11  Dana Jansens  <danakj@chromium.org>
2831
2832         [chromium] Rename layerRect to contentRect for rects that live in content space
2833         https://bugs.webkit.org/show_bug.cgi?id=90843
2834
2835         Reviewed by Adrienne Walker.
2836
2837         * tests/CCLayerImplTest.cpp:
2838         (WebCore::TEST):
2839         * tests/CCLayerTreeHostCommonTest.cpp:
2840         * tests/CCLayerTreeHostImplTest.cpp:
2841         * tests/CCOcclusionTrackerTest.cpp:
2842         (WebKitTests::CCOcclusionTrackerTestVisitTargetTwoTimes::runMyTest):
2843         (WebKitTests::CCOcclusionTrackerTestSurfaceRotatedOffAxis::runMyTest):
2844         (WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
2845         * tests/CCQuadCullerTest.cpp:
2846         * tests/CCRenderSurfaceTest.cpp:
2847         * tests/CCSolidColorLayerImplTest.cpp:
2848         (CCLayerTestCommon::TEST):
2849         * tests/CCTiledLayerImplTest.cpp:
2850         (CCLayerTestCommon::createLayer):
2851         (CCLayerTestCommon::TEST):
2852         (CCLayerTestCommon::getQuads):
2853         (CCLayerTestCommon::coverageVisibleRectIntersectsTiles):
2854         (CCLayerTestCommon::coverageVisibleRectIntersectsBounds):
2855         * tests/CCTiledLayerTestCommon.cpp:
2856         (WebKitTests::FakeLayerTextureUpdater::prepareToUpdate):
2857         (WebKitTests::FakeTiledLayerChromium::update):
2858         * tests/CCTiledLayerTestCommon.h:
2859         (FakeTiledLayerChromium):
2860         * tests/LayerChromiumTest.cpp:
2861         * tests/TiledLayerChromiumTest.cpp:
2862
2863 2012-07-11  Dana Jansens  <danakj@chromium.org>
2864
2865         [chromium] Minimum size used for occlusion tracking should be a setting on CCLayerTreeHost
2866         https://bugs.webkit.org/show_bug.cgi?id=90993
2867
2868         Reviewed by Adrienne Walker.
2869
2870         * tests/CCLayerTreeHostImplTest.cpp:
2871
2872 2012-07-11  Adam Barth  <abarth@webkit.org>
2873
2874         [Chromium] Enable LEGACY_VIEWPORT_ADAPTION
2875         https://bugs.webkit.org/show_bug.cgi?id=90991
2876
2877         Reviewed by Tony Chang.
2878
2879         Chromium wishes to support LEGACY_VIEWPORT_ADAPTION. I actually thought
2880         this was enabled before, but the enable bit got lost in the shuffle.
2881
2882         * features.gypi:
2883
2884 2012-07-11  Tony Chang  <tony@chromium.org>
2885
2886         [chromium] Remove drag and drop API methods that are no longer used
2887         https://bugs.webkit.org/show_bug.cgi?id=90996
2888
2889         Reviewed by Adam Barth.
2890
2891         In r117327, we added a parameter for modifier keys to these methods.
2892         Chromium has since switched to using the methods that require the
2893         extra parameter so we can remove these methods.
2894
2895         * public/WebView.h:
2896         (WebView):
2897         * src/WebViewImpl.cpp:
2898         (WebKit::WebViewImpl::dragTargetDragEnter):
2899         (WebKit::WebViewImpl::dragTargetDragOver):
2900         * src/WebViewImpl.h:
2901         (WebViewImpl):
2902
2903 2012-07-11  Shawn Singh  <shawnsingh@chromium.org>
2904
2905         Unreviewed build fix, forgot to add URLTestHelpers.* when landing r122344
2906
2907         * tests/URLTestHelpers.cpp: Added.
2908         (URLTestHelpers):
2909         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
2910         (WebKit::URLTestHelpers::registerMockedURLLoad):
2911         * tests/URLTestHelpers.h: Added.
2912         (WebKit):
2913         (URLTestHelpers):
2914         (WebKit::URLTestHelpers::toKURL):
2915
2916 2012-07-11  Shawn Singh  <shawnsingh@chromium.org>
2917
2918         [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests
2919         https://bugs.webkit.org/show_bug.cgi?id=90094
2920
2921         Reviewed by Adrienne Walker.
2922
2923         This patch adds the WEBKIT_IMPLEMENTATION = 1 define to
2924         WebKitUnitTests.gyp. To get it to compile correctly, some string
2925         and URL code was refactored and fixed, in particular GURL usage is
2926         replaced with KURL usage.
2927
2928         * WebKit.gyp:
2929         added WEBKIT_IMPLEMENTATION == 1 for unit test code when in shared library
2930         added URLTestHelpers to exclusion in shared library build, because it depends on webkit_support
2931
2932         * WebKit.gypi:
2933         added URLTestHelpers.h and .cpp to the build process
2934
2935         * WebKitUnitTests.gyp:
2936         added WEBKIT_IMPLEMENTATION == 1 for unit test code when not in shared library.
2937         note that in shared library build, RunAllTests.cpp does not have WEBKIT_IMPLEMENTATION == 1.
2938
2939         * public/WebDOMMessageEvent.h:
2940         (WebKit::WebDOMMessageEvent::WebDOMMessageEvent):
2941         * tests/AssociatedURLLoaderTest.cpp:
2942         * tests/EventListenerTest.cpp:
2943         * tests/FrameTestHelpers.cpp:
2944         (WebKit::FrameTestHelpers::loadFrame):
2945         * tests/FrameTestHelpers.h:
2946         * tests/ListenerLeakTest.cpp:
2947         (WebKit::ListenerLeakTest::RunTest):
2948         * tests/PopupMenuTest.cpp:
2949         * tests/RunAllTests.cpp:
2950         * tests/URLTestHelpers.cpp: Added.
2951         (URLTestHelpers):
2952         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
2953         (WebKit::URLTestHelpers::registerMockedURLLoad):
2954         * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h.
2955         (WebKit):
2956         (URLTestHelpers):
2957         (WebKit::URLTestHelpers::toKURL):
2958         * tests/WebFrameTest.cpp:
2959         * tests/WebPageNewSerializerTest.cpp:
2960         * tests/WebPageSerializerTest.cpp:
2961         * tests/WebViewTest.cpp:
2962
2963 2012-07-10  Pavel Feldman  <pfeldman@chromium.org>
2964
2965         Web Inspector: migrate from background images to CSS for statusbar rendering.
2966         https://bugs.webkit.org/show_bug.cgi?id=90902
2967
2968         Reviewed by Vsevolod Vlasov.
2969
2970         * WebKit.gypi:
2971         * src/js/Images/statusbarBackgroundChromium.png: Removed.
2972         * src/js/Images/statusbarBottomBackgroundChromium.png: Removed.
2973         * src/js/Images/statusbarButtonsChromium.png: Removed.
2974         * src/js/Images/statusbarMenuButtonChromium.png: Removed.
2975         * src/js/Images/statusbarMenuButtonSelectedChromium.png: Removed.
2976         * src/js/devTools.css:
2977         (.status-bar-background):
2978
2979 2012-07-11  Kenichi Ishibashi  <bashi@chromium.org>
2980
2981         [Chromium] Adding HarfBuzz-ng for Linux
2982         https://bugs.webkit.org/show_bug.cgi?id=90362
2983
2984         Reviewed by Tony Chang.
2985
2986         * features.gypi: Added use_harfbuzz_ng variable. If the value is set, USE(HARFBUZZ_NG) is defined.
2987
2988 2012-07-10  Hayato Ito  <hayato@chromium.org>
2989
2990         Unreviewed gardening.
2991
2992         Android builder started to fail after r122292.
2993         My best guess is that '--ant-compile' does not take an argument.
2994
2995         * WebKitUnitTests.gyp:
2996
2997 2012-07-10  Yoshifumi Inoue  <yosin@chromium.org>
2998
2999         [Chromium-Windows] Implement functions for localized time format information
3000         https://bugs.webkit.org/show_bug.cgi?id=90236
3001
3002         Reviewed by Kent Tamura.
3003
3004         This patch introduces test cases for date and time format related
3005         functions in LocaleWin.
3006
3007         * tests/LocaleWinTest.cpp:
3008         (LocaleWinTest):
3009         (LocaleWinTest::dateComponents): Added.
3010         (LocaleWinTest::msForDate): Moved inside class LocaleWinTest.
3011         (LocaleWinTest::formatDate): Added.
3012         (LocaleWinTest::parseDate): Added.
3013         (LocaleWinTest::dateFormatText): Added.
3014         (LocaleWinTest::firstDayOfWeek): Added.
3015         (LocaleWinTest::monthLabel): Added.
3016         (LocaleWinTest::weekDayShortLabel): Added.
3017         (LocaleWinTest::timeFormatText): Added.
3018         (LocaleWinTest::shortTimeFormatText): Added.
3019         (LocaleWinTest::timeAMPMLabel): Added.
3020         (TEST_F):
3021
3022 2012-07-10  Adam Barth  <abarth@webkit.org>
3023
3024         [Chromium-Android] Add apk test targets for webkit_unit_tests and TestWebKitAPI
3025         https://bugs.webkit.org/show_bug.cgi?id=90918
3026
3027         Reviewed by Tony Chang.
3028
3029         The rules are similar to what we have added for DumpRenderTree apk.
3030         All references to gtest_target_type can be removed once we enable APK
3031         tests on the all bots.
3032
3033         * WebKitUnitTests.gyp:
3034
3035 2012-07-10  Kevin Ellis  <kevers@chromium.org>
3036
3037         Input elements with type=range do not have default touch handlers.
3038         https://bugs.webkit.org/show_bug.cgi?id=88807
3039
3040         Reviewed by Antonio Gomes.
3041
3042         Adds flag to enable native handling of touch events for input elements
3043         with type=range.
3044
3045         * features.gypi:
3046
3047 2012-07-10  Adam Klein  <adamk@chromium.org>
3048
3049         [Chromium] REGRESSION(r121909): m_currentInputEvent never set
3050         https://bugs.webkit.org/show_bug.cgi?id=90914
3051
3052         Reviewed by Abhishek Arya.
3053
3054         The always-null m_currentInputEvent causes a regression when
3055         middle-clicking on a link that calls window.open('...', '_blank');
3056         that new tab should open in the background, but instead opens in the
3057         foreground (see code in ChromeClientImpl::getNavigationPolicy()).
3058
3059         Fix usage of TemporaryChange to specify a local variable name so that
3060         m_currentInputEvent is actually set for the duration of handleInputEvent.
3061
3062         * src/WebViewImpl.cpp:
3063         (WebKit::WebViewImpl::handleInputEvent): Name the TemporaryChange instance.
3064
3065 2012-07-10  Adam Barth  <abarth@webkit.org>
3066
3067         WebCore::Settings for Hixie76 WebSocket protocol doesn't do anything and should be removed
3068         https://bugs.webkit.org/show_bug.cgi?id=90910
3069
3070         Reviewed by Eric Seidel.
3071
3072         * public/WebSettings.h:
3073         (WebKit::WebSettings::setHixie76WebSocketProtocolEnabled):
3074         * src/WebSettingsImpl.cpp:
3075         * src/WebSettingsImpl.h:
3076         (WebSettingsImpl):
3077         * src/WebSharedWorkerImpl.cpp:
3078         (WebKit::WebSharedWorkerImpl::initializeLoader):
3079
3080 2012-07-09  Dana Jansens  <danakj@chromium.org>
3081
3082         [chromium] Replace use of ManagedTexture with CCScopedTexture for impl thread and remove implTextureManager from LayerRendererChromium
3083         https://bugs.webkit.org/show_bug.cgi?id=90841
3084
3085         Reviewed by Adrienne Walker.
3086
3087         * tests/CCLayerTreeHostImplTest.cpp:
3088
3089 2012-07-10  Xianzhu Wang  <wangxianzhu@chromium.org>
3090
3091         [Chromium-Android] Use default font rendering styles in FontPlatformData::querySystemForRenderStyle()
3092         https://bugs.webkit.org/show_bug.cgi?id=90826
3093
3094         Reviewed by Adam Barth.
3095
3096         * WebKit.gyp:
3097         * src/PlatformSupport.cpp:
3098         (WebCore::PlatformSupport::getRenderStyleForStrike): Call style.setDefault() on Android or when the font is not specified.
3099
3100 2012-07-10  Dana Jansens  <danakj@chromium.org>
3101
3102         [chromium] Avoid allocating render pass textures that have no content
3103         https://bugs.webkit.org/show_bug.cgi?id=90702
3104
3105         Reviewed by Adrienne Walker.
3106
3107         * tests/CCLayerTreeHostImplTest.cpp:
3108         * tests/CCLayerTreeHostTest.cpp:
3109         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
3110         (CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
3111         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit):
3112         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::beginTest):
3113         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::didCommit):
3114         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::drawLayersOnCCThread):
3115         (WTF::CCLayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit::afterTest):
3116         (WTF):
3117
3118 2012-07-10  Leandro Gracia Gil  <leandrogracia@chromium.org>
3119
3120         Unreviewed Chromium build fix for mac-release.
3121
3122         Fixing clang build after https://bugs.webkit.org/show_bug.cgi?id=90807
3123
3124         * public/WebSurroundingText.h:
3125         (WebKit):
3126
3127 2012-07-10  Leandro Gracia Gil  <leandrogracia@chromium.org>
3128
3129         WebSurroundingText layout tests should use the same code path as the rest of the feature.
3130         https://bugs.webkit.org/show_bug.cgi?id=90807
3131
3132         Reviewed by Adam Barth.
3133
3134         Replace the offset-based initialize method used only by LayoutTestController
3135         with a point-based version to follow the same code path.
3136
3137         * public/WebSurroundingText.h:
3138         (WebKit):
3139         (WebSurroundingText):
3140         * src/WebSurroundingText.cpp:
3141         (WebKit::WebSurroundingText::initialize):
3142
3143 2012-07-10  Sheriff Bot  <webkit.review.bot@gmail.com>
3144
3145         Unreviewed, rolling out r122207.
3146         http://trac.webkit.org/changeset/122207
3147         https://bugs.webkit.org/show_bug.cgi?id=90874
3148
3149         Broke the cr-windows bot (Requested by beverloo on #webkit).
3150
3151         * DEPS:
3152
3153 2012-07-10  Jochen Eisinger  <jochen@chromium.org>
3154
3155         Unreviewed.  Rolled DEPS.
3156
3157         * DEPS:
3158
3159 2012-07-09  Matt Falkenhagen  <falken@chromium.org>
3160
3161         Add ENABLE_DIALOG_ELEMENT and skeleton files
3162         https://bugs.webkit.org/show_bug.cgi?id=90521
3163
3164         Reviewed by Kent Tamura.
3165
3166         * features.gypi:
3167         * public/WebRuntimeFeatures.h:
3168         (WebRuntimeFeatures):
3169         * src/WebRuntimeFeatures.cpp:
3170         (WebKit::WebRuntimeFeatures::enableDialogElement):
3171         (WebKit):
3172         (WebKit::WebRuntimeFeatures::isDialogElementEnabled):
3173
3174 2012-07-09  Yoshifumi Inoue  <yosin@chromium.org>
3175
3176         [Chromium-Mac] Implement functions for localized time format information
3177         https://bugs.webkit.org/show_bug.cgi?id=90237
3178
3179         Reviewed by Kent Tamura.
3180
3181         * tests/LocaleMacTest.cpp:
3182         (LocaleMacTest):
3183         (LocaleMacTest::timeFormatText):
3184         (LocaleMacTest::shortTimeFormatText):
3185         (LocaleMacTest::timeAMPMLabel):
3186         (TEST_F):
3187
3188 2012-07-09  Eric Penner  <epenner@google.com>
3189
3190         [chromium] Merge updates and idle updates into one pass
3191         https://bugs.webkit.org/show_bug.cgi?id=90324
3192
3193         Reviewed by Adrienne Walker.
3194
3195         * tests/CCLayerTreeHostTest.cpp:
3196         (WTF::ContentLayerChromiumWithUpdateTracking::resetPaintContentsCount):
3197         (WTF::ContentLayerChromiumWithUpdateTracking::ContentLayerChromiumWithUpdateTracking):
3198         (ContentLayerChromiumWithUpdateTracking):
3199         (WTF::CCLayerTreeHostTestOpacityChange::afterTest):
3200         * tests/CCTiledLayerTestCommon.h:
3201         (FakeTiledLayerChromium):
3202         * tests/TiledLayerChromiumTest.cpp:
3203
3204 2012-07-09  Yoshifumi Inoue  <yosin@chromium.org>
3205
3206         [Platform] Introduce LocaleMac class
3207         https://bugs.webkit.org/show_bug.cgi?id=90248
3208
3209         Reviewed by Kent Tamura.
3210
3211         This patch added tests for LocaleMac class.
3212
3213         * WebKit.gypi:
3214         * tests/LocaleMacTest.cpp: Added.
3215         (LocaleMacTest):
3216         (LocaleMacTest::dateComponents):
3217         (LocaleMacTest::msForDate):
3218         (LocaleMacTest::formatDate):
3219         (LocaleMacTest::parseDate):
3220         (LocaleMacTest::dateFormatText):
3221         (LocaleMacTest::firstDayOfWeek):
3222         (LocaleMacTest::monthLabel):
3223         (LocaleMacTest::weekDayShortLabel):
3224         (TEST_F):
3225
3226 2012-07-09  Dana Jansens  <danakj@chromium.org>
3227
3228         [chromium] Create CCScopedTexture class for creating/freeing textures
3229         https://bugs.webkit.org/show_bug.cgi?id=89485
3230
3231         Reviewed by Adrienne Walker.
3232
3233         * WebKit.gypi:
3234         * tests/CCScopedTextureTest.cpp: Added.
3235         (WebKitTests):
3236         (WebKitTests::TEST):
3237         (TrackingTextureAllocator):
3238         (WebKitTests::TrackingTextureAllocator::TrackingTextureAllocator):
3239         (WebKitTests::TrackingTextureAllocator::numTextures):
3240
3241 2012-07-09  Joshua Bell  <jsbell@chromium.org>
3242
3243         IndexedDB: Remove obsolete accessor plumbing
3244         https://bugs.webkit.org/show_bug.cgi?id=90812
3245
3246         Reviewed by Tony Chang.
3247
3248         * public/WebIDBCursor.h: Remove direction.
3249         * public/WebIDBDatabase.h: Remove name, version, objectStoreNames;
3250         (WebKit::WebIDBDatabase::metadata):
3251         * public/WebIDBIndex.h: Remove name, keyPath, unique, multiEntry;
3252         * public/WebIDBObjectStore.h: Remove name, keyPath, indexNames, autoIncrement;
3253         * src/IDBDatabaseBackendProxy.cpp: Remove plumbing.
3254         * src/IDBDatabaseBackendProxy.h: Remove plumbing.
3255         (IDBDatabaseBackendProxy):
3256         * src/IDBIndexBackendProxy.cpp: Remove plumbing.
3257         * src/IDBIndexBackendProxy.h: Remove plumbing.
3258         (IDBIndexBackendProxy):
3259         * src/IDBObjectStoreBackendProxy.cpp: Remove plumbing.
3260         * src/IDBObjectStoreBackendProxy.h: Remove plumbing.
3261         (IDBObjectStoreBackendProxy):
3262         * src/IDBTransactionBackendProxy.cpp: Remove plumbing.
3263         * src/IDBTransactionBackendProxy.h: Assert stub is not used - only needed
3264         by real IDBTransactionBackendImpl
3265         (WebKit::IDBTransactionBackendProxy::mode):
3266         * src/WebIDBTransactionImpl.cpp: Remove plumbing.
3267         * src/WebIDBTransactionImpl.h: Remove plumbing.
3268
3269 2012-07-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3270
3271         Unreviewed, rolling out r122161.
3272         http://trac.webkit.org/changeset/122161
3273         https://bugs.webkit.org/show_bug.cgi?id=90837
3274
3275         failed to compile on chromium webkit linux bot (Requested by
3276         shawnsingh on #webkit).
3277
3278         * WebKit.gypi:
3279         * WebKitUnitTests.gyp:
3280         * public/WebDOMMessageEvent.h:
3281         * tests/AssociatedURLLoaderTest.cpp:
3282         (WebKit::AssociatedURLLoaderTest::AssociatedURLLoaderTest):
3283         (WebKit::AssociatedURLLoaderTest::SetUp):
3284         (WebKit::AssociatedURLLoaderTest::CheckMethodFails):
3285         (WebKit::AssociatedURLLoaderTest::CheckHeaderFails):
3286         (WebKit::AssociatedURLLoaderTest::CheckAccessControlHeaders):
3287         (WebKit::TEST_F):
3288         * tests/EventListenerTest.cpp:
3289         * tests/FrameTestHelpers.cpp:
3290         (WebKit::FrameTestHelpers::registerMockedURLLoad):
3291         (FrameTestHelpers):
3292         (WebKit::FrameTestHelpers::loadFrame):
3293         * tests/FrameTestHelpers.h:
3294         (FrameTestHelpers):
3295         * tests/ListenerLeakTest.cpp:
3296         (WebKit::ListenerLeakTest::RunTest):
3297         * tests/PopupMenuTest.cpp:
3298         (WebKit::SelectPopupMenuTest::registerMockedURLLoad):
3299         (WebKit::SelectPopupMenuTest::loadFrame):
3300         (WebKit::TEST_F):
3301         * tests/RunAllTests.cpp:
3302         * tests/URLTestHelpers.cpp: Removed.
3303         * tests/URLTestHelpers.h: Removed.
3304         * tests/WebFrameTest.cpp:
3305         (WebKit::WebFrameTest::registerMockedHttpURLLoad):
3306         (WebKit::WebFrameTest::registerMockedChromeURLLoad):
3307         (WebKit::TEST_F):
3308         * tests/WebPageNewSerializerTest.cpp:
3309         (WebKit::WebPageNewSerializeTest::registerMockedURLLoad):
3310         (WebPageNewSerializeTest):
3311         (WebKit::WebPageNewSerializeTest::setUpCSSTestPage):
3312         (WebKit::WebPageNewSerializeTest::loadURLInTopFrame):
3313         (WebKit::WebPageNewSerializeTest::resourceVectorContains):
3314         (WebKit::TEST_F):
3315         * tests/WebPageSerializerTest.cpp:
3316         (WebKit::WebPageSerializerTest::registerMockedURLLoad):
3317         (WebKit::WebPageSerializerTest::loadURLInTopFrame):
3318         (WebKit::WebPageSerializerTest::webVectorContains):
3319         (WebKit::TEST_F):
3320         * tests/WebViewTest.cpp:
3321         (WebKit::TEST_F):
3322         (WebKit::WebViewTest::testAutoResize):
3323         (WebKit::WebViewTest::testTextInputType):
3324
3325 2012-07-09  Shawn Singh  <shawnsingh@chromium.org>
3326
3327         [chromium] Use WEBKIT_IMPLEMENTATION == 1 for webkit_unit_tests
3328         https://bugs.webkit.org/show_bug.cgi?id=90094
3329
3330         Reviewed by Adam Barth.
3331
3332         This patch adds the WEBKIT_IMPLEMENTATION = 1 define to
3333         WebKitUnitTests.gyp. To get it to compile correctly, some string
3334         and URL code was refactored, and GURL types were replaced with KURL types.
3335
3336         * WebKit.gypi:
3337         * WebKitUnitTests.gyp:
3338         * public/WebDOMMessageEvent.h:
3339         (WebKit::WebDOMMessageEvent::WebDOMMessageEvent):
3340         * tests/AssociatedURLLoaderTest.cpp:
3341         * tests/EventListenerTest.cpp:
3342         * tests/FrameTestHelpers.cpp:
3343         (WebKit::FrameTestHelpers::loadFrame):
3344         * tests/FrameTestHelpers.h:
3345         * tests/ListenerLeakTest.cpp:
3346         (WebKit::ListenerLeakTest::RunTest):
3347         * tests/PopupMenuTest.cpp:
3348         * tests/RunAllTests.cpp:
3349         * tests/URLTestHelpers.cpp: Added.
3350         (URLTestHelpers):
3351         (WebKit::URLTestHelpers::registerMockedURLFromBaseURL):
3352         (WebKit::URLTestHelpers::registerMockedURLLoad):
3353         * tests/URLTestHelpers.h: Copied from Source/WebKit/chromium/public/WebDOMMessageEvent.h.
3354         (WebKit):
3355         (URLTestHelpers):
3356         (WebKit::URLTestHelpers::toKURL):
3357         * tests/WebFrameTest.cpp:
3358         * tests/WebPageNewSerializerTest.cpp:
3359         * tests/WebPageSerializerTest.cpp:
3360         * tests/WebViewTest.cpp:
3361
3362 2012-07-09  Dana Jansens  <danakj@chromium.org>
3363
3364         [chromium] Decouple RenderPass drawing from CCRenderSurface
3365         https://bugs.webkit.org/show_bug.cgi?id=90573
3366
3367         Reviewed by Adrienne Walker.
3368
3369         * tests/CCLayerTreeHostImplTest.cpp:
3370         * tests/LayerRendererChromiumTest.cpp:
3371         (FakeCCRendererClient::FakeCCRendererClient):
3372
3373 2012-07-09  Adam Klein  <adamk@chromium.org>
3374
3375         Rename WebCore::WebKitMutationObserver to WebCore::MutationObserver
3376         https://bugs.webkit.org/show_bug.cgi?id=90810
3377
3378         Reviewed by Ojan Vafai.
3379
3380         * src/WebKit.cpp:
3381
3382 2012-07-09  Leandro Gracia Gil  <leandrogracia@chromium.org>
3383
3384         SurroundingText should not advance character iterators if they are at end.
3385         https://bugs.webkit.org/show_bug.cgi?id=90560
3386
3387         Reviewed by Ryosuke Niwa.
3388
3389         Moving the check for null visible positions to WebCore as it makes no
3390         sense to be in a platform-specific code.
3391
3392         * src/WebSurroundingText.cpp:
3393         (WebKit::WebSurroundingText::initialize):
3394
3395 2012-07-09  Dana Jansens  <danakj@chromium.org>
3396
3397         [chromium] Create render surfaces on main thread only for the current frame
3398         https://bugs.webkit.org/show_bug.cgi?id=89793
3399
3400         Reviewed by Adrienne Walker.
3401
3402         * tests/CCLayerTreeHostCommonTest.cpp:
3403
3404 2012-07-02  Ryosuke Niwa  <rniwa@webkit.org>
3405
3406         Make HTMLCollection RefCounted
3407         https://bugs.webkit.org/show_bug.cgi?id=90414
3408
3409         Reviewed by Sam Weinig.
3410
3411         * src/WebPageSerializer.cpp:
3412         (WebCore::retrieveResourcesForFrame):
3413         * src/WebPageSerializerImpl.cpp:
3414         (WebKit::WebPageSerializerImpl::collectTargetFrames):
3415
3416 2012-07-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3417
3418         Unreviewed, rolling out r122107.
3419         http://trac.webkit.org/changeset/122107
3420         https://bugs.webkit.org/show_bug.cgi?id=90794
3421
3422         Build failure on Mac debug bots (Requested by falken_ on
3423         #webkit).
3424
3425         * features.gypi:
3426         * public/WebRuntimeFeatures.h:
3427         (WebRuntimeFeatures):
3428         * src/WebRuntimeFeatures.cpp:
3429
3430 2012-07-09  Matt Falkenhagen  <falken@chromium.org>
3431
3432         Add ENABLE_DIALOG_ELEMENT and skeleton files
3433         https://bugs.webkit.org/show_bug.cgi?id=90521
3434
3435         Reviewed by Kent Tamura.
3436
3437         * features.gypi:
3438         * public/WebRuntimeFeatures.h:
3439         (WebRuntimeFeatures):
3440         * src/WebRuntimeFeatures.cpp:
3441         (WebKit::WebRuntimeFeatures::enableDialogElement):
3442         (WebKit):
3443         (WebKit::WebRuntimeFeatures::isDialogElementEnabled):
3444
3445 2012-07-09  MORITA Hajime  <morrita@google.com>
3446
3447         [Chromium] ContextFeaturesClient::isEnabled is slow
3448         https://bugs.webkit.org/show_bug.cgi?id=90367
3449
3450         Reviewed by Kent Tamura.
3451
3452         ContextFeaturesClientImpl::isEnabled touches a heavy part in chrome
3453         where locks are acquired for each invocation.
3454
3455         This change introduces a set of caches to avoid such slow calls.
3456         The cache class ContextFeaturesCache is implemented as a
3457         Supplement of ScriptExecutionContext because the flag bits
3458         depend on the domain of each Document.
3459
3460         * src/ContextFeaturesClientImpl.cpp:
3461         (ContextFeaturesCache): Added.
3462         (Entry): Added.
3463         (WebKit::ContextFeaturesCache::Entry::Entry):
3464         (WebKit::ContextFeaturesCache::Entry::isEnabled):
3465         (WebKit::ContextFeaturesCache::Entry::set):
3466         (WebKit::ContextFeaturesCache::Entry::needsRefresh):
3467         (WebKit::ContextFeaturesCache::entryFor):
3468         (WebKit):
3469         (WebKit::ContextFeaturesCache::supplementName):
3470         (WebKit::ContextFeaturesCache::from):
3471         (WebKit::ContextFeaturesCache::refreshAgainst):
3472         (WebKit::ContextFeaturesClientImpl::isEnabled):
3473         (WebKit::ContextFeaturesClientImpl::urlDidChange): Added to invoke refrshAgainst.
3474         (WebKit::ContextFeaturesClientImpl::askIfIsEnabled):
3475         * src/ContextFeaturesClientImpl.h:
3476         (ContextFeaturesClientImpl):
3477
3478 2012-07-09  Vsevolod Vlasov  <vsevik@chromium.org>
3479
3480         Unreviewed chromium inspector test fix.
3481
3482         * src/js/Tests.js:
3483         (.TestSuite.prototype.nonAnonymousUISourceCodes_):
3484
3485 2012-07-05  Yoshifumi Inoue  <yosin@chromium.org>
3486
3487         Unreviewed Chromium gardening. Roll Chromium DEPS
3488
3489         * DEPS: 145501 => 145569
3490
3491 2012-07-05  Yoshifumi Inoue  <yosin@chromium.org>
3492
3493         Unreviewed Chromium gardening - Disable WebAnimationTest for Linux and Windows.
3494         https://bugs.webkit.org/show_bug.cgi?id=90651
3495
3496         * tests/WebAnimationTest.cpp:
3497         (WebKit):
3498         (WebKit::TEST):
3499
3500 2012-07-05  Ian Vollick  <vollick@chromium.org>
3501
3502         [chromium] Create a WebKit::Web* wrapper for the cc animation classes
3503         https://bugs.webkit.org/show_bug.cgi?id=90303
3504
3505         Reviewed by James Robinson.
3506
3507         * WebKit.gyp:
3508         * WebKit.gypi:
3509         * src/WebAnimation.cpp: Added.
3510         (WebKit):
3511         (WebKit::WebAnimation::iterations):
3512         (WebKit::WebAnimation::setIterations):
3513         (WebKit::WebAnimation::startTime):
3514         (WebKit::WebAnimation::setStartTime):
3515         (WebKit::WebAnimation::timeOffset):
3516         (WebKit::WebAnimation::setTimeOffset):
3517         (WebKit::WebAnimation::alternatesDirection):
3518         (WebKit::WebAnimation::setAlternatesDirection):
3519         (WebKit::WebAnimation::toCCActiveAnimation):
3520         (WebKit::WebAnimation::initialize):
3521         (WebKit::WebAnimation::destroy):
3522         * src/WebAnimationCurveCommon.cpp: Added.
3523         (WebKit):
3524         (WebKit::createTimingFunction):
3525         * src/WebAnimationCurveCommon.h: Added.
3526         (WebCore):
3527         (WebKit):
3528         * src/WebFloatAnimationCurve.cpp: Added.
3529         (WebKit):
3530         (WebKit::WebFloatAnimationCurve::add):
3531         (WebKit::WebFloatAnimationCurve::toCCAnimationCurve):
3532         (WebKit::WebFloatAnimationCurve::initialize):
3533         (WebKit::WebFloatAnimationCurve::destroy):
3534         * src/WebTransformAnimationCurve.cpp: Added.
3535         (WebKit):
3536         (WebKit::WebTransformAnimationCurve::add):
3537         (WebKit::WebTransformAnimationCurve::toCCAnimationCurve):
3538         (WebKit::WebTransformAnimationCurve::initialize):
3539         (WebKit::WebTransformAnimationCurve::destroy):
3540         * tests/WebAnimationTest.cpp: Added.
3541         * tests/WebFloatAnimationCurveTest.cpp: Added.
3542         * tests/WebTransformAnimationCurveTest.cpp: Added.
3543
3544 2012-07-05  Vincent Scheib  <scheib@chromium.org>
3545
3546         [Chromium] Clear m_currentInputEvent after handled by pointerLockMouseEvent().
3547         https://bugs.webkit.org/show_bug.cgi?id=90391
3548
3549         WebViewImpl::handleInputEvent was keeping a pointer to an input event that would
3550         later be accessed. When in pointer lock, that pointer was not being cleared.
3551         Code modified to use TemporaryChange to automatically clear the pointer at all
3552         method exit points.
3553
3554         Reviewed by Abhishek Arya.
3555
3556         * src/WebViewImpl.cpp:
3557         (WebKit::WebViewImpl::handleInputEvent):
3558
3559 2012-07-05  John Mellor  <johnme@chromium.org>
3560
3561         Text Autosizing: Add test framework and simple test.
3562         https://bugs.webkit.org/show_bug.cgi?id=90561
3563
3564         ENABLE(TEXT_AUTOSIZING) is now on in Chromium (but disabled at runtime).
3565         This allows it to be used in Layout Tests (and in future by Web
3566         Inspector's mobile device emulation).
3567
3568         Reviewed by Adam Barth.
3569
3570         * features.gypi:
3571
3572 2012-07-05  Oli Lan  <olilan@chromium.org>
3573
3574         [chromium] Add a method didChangeFormState to WebViewClient.
3575         https://bugs.webkit.org/show_bug.cgi?id=90563
3576
3577         Reviewed by Adam Barth.
3578
3579         This patch adds a new method didChangeFormState to WebViewClient,
3580         and calls it from ChromeClientImpl::formStateDidChange with the changed node.
3581
3582         This new method can be used for example by the Android port to update the browser's
3583         IME when the state of the currently focused text node has changed. To facilitate this
3584         usage, a focused() method has been added to WebNode.
3585
3586         A new test has been added to WebViewTest. This test checks that didChangeFormState
3587         is called when an input's value is changed, and also checks that WebNode::focused() returns
3588         the correct value for the provided node, in both the focused and non-focused cases.
3589
3590         * public/WebNode.h:
3591         * public/WebViewClient.h:
3592         (WebKit::WebViewClient::didChangeFormState):
3593         * src/ChromeClientImpl.cpp:
3594         (WebKit::ChromeClientImpl::formStateDidChange):
3595         * src/WebNode.cpp:
3596         (WebKit::WebNode::focused):
3597         (WebKit):
3598         * tests/WebViewTest.cpp:
3599         (FormChangeWebViewClient):
3600         (WebKit::FormChangeWebViewClient::didChangeFormState):
3601         (WebKit::FormChangeWebViewClient::reset):
3602         (WebKit::FormChangeWebViewClient::called):
3603         (WebKit::FormChangeWebViewClient::focused):
3604         (WebKit):
3605         (WebKit::TEST_F):
3606         * tests/data/input_field_set_value_while_focused.html: Added.
3607         * tests/data/input_field_set_value_while_not_focused.html: Added.
3608
3609 2012-07-04  Yoshifumi Inoue  <yosin@chromium.org>
3610
3611         Unreviewed, Chromium gardening. Roll Chromium DEPS.
3612
3613         * DEPS: chromium_rev: 145322 => 145501
3614
3615 2012-07-04  Dana Jansens  <danakj@chromium.org>
3616
3617         [chromium] Respect memory needed for RenderSurfaces when reserving contents textures
3618         https://bugs.webkit.org/show_bug.cgi?id=89901
3619
3620         Reviewed by Adrienne Walker.
3621
3622         * tests/CCPrioritizedTextureTest.cpp:
3623         (WTF::CCPrioritizedTextureTest::createManager):
3624         (WTF::TEST_F):
3625         (WTF):
3626         * tests/CCTiledLayerTestCommon.cpp:
3627         (WebKitTests::FakeTiledLayerChromium::setTexturePriorities):
3628         (WebKitTests):
3629         * tests/CCTiledLayerTestCommon.h:
3630         (FakeTiledLayerChromium):
3631         * tests/TiledLayerChromiumTest.cpp:
3632
3633 2012-07-04  Dana Jansens  <danakj@chromium.org>
3634
3635         [chromium] Clear RenderSurfaces still when no idle paint will be done
3636         https://bugs.webkit.org/show_bug.cgi?id=90553
3637
3638         Reviewed by Adrienne Walker.
3639
3640         * tests/CCLayerTreeHostTest.cpp:
3641         (CCLayerTreeHostTestCompositeAndReadbackCleanup):
3642         (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::CCLayerTreeHostTestCompositeAndReadbackCleanup):
3643         (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::beginTest):
3644         (WTF::CCLayerTreeHostTestCompositeAndReadbackCleanup::afterTest):
3645         (WTF):
3646
3647 2012-07-04  Dana Jansens  <danakj@chromium.org>
3648
3649         [chromium] Remove CCLayerTreeHostTestThreadOnly class to cleanup CCLayerTreeHostTests
3650         https://bugs.webkit.org/show_bug.cgi?id=90556
3651
3652         Reviewed by Adrienne Walker.
3653
3654         Currently many tests that run both single and threaded versions subclass
3655         from CCLayerTreeHostTestThreadOnly just from copy/pasting. The class
3656         only adds a runTestThreaded() which calls runTest(true). Many other
3657         tests do run only in threaded mode call runTest(true) themselves, making
3658         for an inconsistent mess.
3659
3660         We remove CCLayerTreeHostTestThreadOnly class, so we don't have tests
3661         inheriting it that are not thread-only. And now all tests that are
3662         thread-only call runTest(true) consistently.
3663
3664         * tests/CCLayerTreeHostTest.cpp:
3665         (WTF::TEST_F):
3666
3667 2012-07-04  John Mellor  <johnme@chromium.org>
3668
3669         Text Autosizing: Add compile flag and runtime setting
3670         https://bugs.webkit.org/show_bug.cgi?id=87394
3671
3672         This patch renames Font Boosting to Text Autosizing and adds compile guards around the runtime setting.
3673
3674         Reviewed by Adam Barth.
3675
3676         * features.gypi:
3677         * public/WebSettings.h:
3678         * src/WebSettingsImpl.cpp:
3679         (WebKit::WebSettingsImpl::setTextAutosizingEnabled):
3680         * src/WebSettingsImpl.h:
3681         (WebSettingsImpl):
3682
3683 2012-07-04  Ian Vollick  <vollick@chromium.org>
3684
3685         [chromium] Correctly reject accelerated animations with certain rotations.
3686         https://bugs.webkit.org/show_bug.cgi?id=89768
3687
3688         Reviewed by James Robinson.
3689
3690         * tests/GraphicsLayerChromiumTest.cpp:
3691         (WebKitTests::TEST_F):
3692         (WebKitTests):
3693
3694 2012-07-03  Alex Sakhartchouk  <alexst@chromium.org>
3695
3696         [chromium] Avoid calling getUniformLocation??() in the compositor startup
3697         https://bugs.webkit.org/show_bug.cgi?id=90217
3698
3699         Reviewed by Adrienne Walker.
3700
3701         Fixing the build error.
3702
3703         * tests/TextureCopierTest.cpp:
3704
3705 2012-07-03  Erik Arvidsson  <arv@chromium.org>
3706
3707         [V8] Remove enableFasterDOMStoreAccess which is never used
3708         https://bugs.webkit.org/show_bug.cgi?id=90489
3709
3710         Reviewed by Adam Barth.
3711
3712         * src/WebScriptController.cpp:
3713         (WebKit::WebScriptController::enableV8SingleThreadMode):
3714
3715 2012-07-03  Tony Chang  <tony@chromium.org>
3716
3717         [chromium] Unreviewed, update .gitignore to handle VS2010 files.
3718
3719         * .gitignore:
3720
3721 2012-07-03  Tony Chang  <tony@chromium.org>
3722
3723         Unreviewed.  Rolled DEPS.
3724
3725         * DEPS:
3726
3727 2012-07-03  Charles Wei  <charles.wei@torchmobile.com.cn>
3728
3729         IndexedDB: should make the LevelDB persistant to the directory indicated in PageGroupSettings::indexedDBDataBasePath
3730         https://bugs.webkit.org/show_bug.cgi?id=88338
3731
3732         Reviewed by David Levin.
3733
3734         * src/WebSharedWorkerImpl.cpp:
3735         (WebKit::WebSharedWorkerImpl::startWorkerContext):
3736         * src/WebWorkerClientImpl.cpp:
3737         (WebKit::WebWorkerClientImpl::startWorkerContext):
3738
3739 2012-07-02  Sheriff Bot  <webkit.review.bot@gmail.com>
3740
3741         Unreviewed.  Rolled DEPS.
3742
3743         * DEPS:
3744
3745 2012-07-02  Leandro Gracia Gil  <leandrogracia@chromium.org>
3746
3747         [Chromium] Implement a Layout Test for editing/SurroundingText
3748         https://bugs.webkit.org/show_bug.cgi?id=82461
3749
3750         Reviewed by Ryosuke Niwa.
3751
3752         Allow passing nodes as arguments for layout test methods.
3753
3754         * public/WebBindings.h:
3755         (WebBindings):
3756         * src/WebBindings.cpp:
3757         (WebKit::getNodeImpl):
3758         (WebKit):
3759         (WebKit::WebBindings::getNode):
3760
3761 2012-07-02  Benjamin Poulain  <bpoulain@apple.com>
3762
3763         Do not do any logging initialization when logging is disabled
3764         https://bugs.webkit.org/show_bug.cgi?id=90228
3765
3766         Reviewed by Simon Fraser.
3767
3768         * src/WebKit.cpp:
3769         (WebKit::enableLogChannel):
3770
3771 2012-07-01  Keishi Hattori  <keishi@webkit.org>
3772
3773         Unreviewed, rolling out r121650.
3774         http://trac.webkit.org/changeset/121650
3775         https://bugs.webkit.org/show_bug.cgi?id=90303
3776
3777         runhooks is failing for chromium win bots and
3778         WebAnimationTest.DefaultSettings is crashing
3779
3780         * WebKit.gyp:
3781         * WebKit.gypi:
3782         * src/WebAnimation.cpp: Removed.
3783         * src/WebAnimationCurveCommon.cpp: Removed.
3784         * src/WebAnimationCurveCommon.h: Removed.
3785         * src/WebFloatAnimationCurve.cpp: Removed.
3786         * src/WebTransformAnimationCurve.cpp: Removed.
3787         * tests/WebAnimationTest.cpp: Removed.
3788         * tests/WebFloatAnimationCurveTest.cpp: Removed.
3789         * tests/WebTransformAnimationCurveTest.cpp: Removed.
3790
3791 2012-07-01  Ian Vollick  <vollick@chromium.org>
3792
3793         [chromium] Create a WebKit::Web* wrapper for the cc animation classes
3794         https://bugs.webkit.org/show_bug.cgi?id=90303
3795
3796         Reviewed by James Robinson.
3797
3798         * WebKit.gyp:
3799         * WebKit.gypi:
3800         * src/WebAnimation.cpp: Added.
3801         (WebKit):
3802         (WebKit::WebAnimation::iterations):
3803         (WebKit::WebAnimation::setIterations):
3804         (WebKit::WebAnimation::startTime):
3805         (WebKit::WebAnimation::setStartTime):
3806         (WebKit::WebAnimation::timeOffset):
3807         (WebKit::WebAnimation::setTimeOffset):
3808         (WebKit::WebAnimation::alternatesDirection):
3809         (WebKit::WebAnimation::setAlternatesDirection):
3810         (WebKit::WebAnimation::toCCActiveAnimation):
3811         (WebKit::WebAnimation::initialize):
3812         (WebKit::WebAnimation::destroy):
3813         * src/WebAnimationCurveCommon.cpp: Added.
3814         (WebKit):
3815         (WebKit::createTimingFunction):
3816         * src/WebAnimationCurveCommon.h: Added.
3817         (WebCore):
3818         (WebKit):
3819         * src/WebFloatAnimationCurve.cpp: Added.
3820         (WebKit):
3821         (WebKit::WebFloatAnimationCurve::add):
3822         (WebKit::WebFloatAnimationCurve::toCCAnimationCurve):
3823         (WebKit::WebFloatAnimationCurve::initialize):
3824         (WebKit::WebFloatAnimationCurve::destroy):
3825         * src/WebTransformAnimationCurve.cpp: Added.
3826         (WebKit):
3827         (WebKit::WebTransformAnimationCurve::add):
3828         (WebKit::WebTransformAnimationCurve::toCCAnimationCurve):
3829         (WebKit::WebTransformAnimationCurve::initialize):
3830         (WebKit::WebTransformAnimationCurve::destroy):
3831         * tests/WebAnimationTest.cpp: Added.
3832         * tests/WebFloatAnimationCurveTest.cpp: Added.
3833         * tests/WebTransformAnimationCurveTest.cpp: Added.
3834
3835 2012-06-30  Ian Vollick  <vollick@chromium.org>
3836
3837         [chromium] CanvasLayerTextureUpdater needs to convert opaque rects back to content space.
3838         https://bugs.webkit.org/show_bug.cgi?id=90092
3839
3840         The CanvasLayerTextureUpdater currently receives its opaque rects in
3841         layer space, but is expected to return them in content space and does
3842         not convert them. This patch adds this conversion. To avoid numerical
3843         errors, this patch also switches to using float rects to store opaque
3844         rects where appropriate.
3845
3846         Reviewed by Adrienne Walker.
3847
3848         * WebKit.gypi:
3849         * src/WebContentLayerImpl.cpp:
3850         (WebKit::WebContentLayerImpl::paintContents):
3851         * src/WebContentLayerImpl.h:
3852         (WebContentLayerImpl):
3853         * tests/CCLayerTreeHostCommonTest.cpp:
3854         * tests/CCLayerTreeHostTest.cpp:
3855         (WTF::TestOpacityChangeLayerDelegate::paintContents):
3856         (WTF::MockContentLayerDelegate::paintContents):
3857         * tests/ContentLayerChromiumTest.cpp: Added.
3858         (WebKit):
3859         (OpaqueRectDrawingGraphicsContextPainter):
3860         (WebKit::OpaqueRectDrawingGraphicsContextPainter::OpaqueRectDrawingGraphicsContextPainter):
3861         (WebKit::OpaqueRectDrawingGraphicsContextPainter::~OpaqueRectDrawingGraphicsContextPainter):
3862         (MockContentLayerDelegate):
3863         (WebKit::MockContentLayerDelegate::MockContentLayerDelegate):
3864         (WebKit::TEST):
3865         * tests/LayerChromiumTest.cpp:
3866         * tests/OpaqueRectTrackingContentLayerDelegateTest.cpp:
3867         (WebCore::TEST_F):
3868         * tests/TiledLayerChromiumTest.cpp:
3869         * tests/WebLayerTest.cpp:
3870
3871 2012-06-29  Joshua Bell  <jsbell@chromium.org>
3872
3873         IndexedDB: Keep direction on IDBCursor to avoid calls to back end
3874         https://bugs.webkit.org/show_bug.cgi?id=90114
3875
3876         Stop plumbing IDBCursorBackendInterface::direction() through API.
3877
3878         Reviewed by Tony Chang.
3879
3880         * src/IDBCursorBackendProxy.cpp:
3881         * src/IDBCursorBackendProxy.h:
3882         (IDBCursorBackendProxy):
3883         * src/WebIDBCursorImpl.cpp:
3884         * src/WebIDBCursorImpl.h:
3885         (WebIDBCursorImpl):
3886
3887 2012-06-29  Adam Barth  <abarth@webkit.org>
3888
3889         [Chromium] WebFontRendering.cpp requires some OS(ANDROID) ifdefs to build downstream
3890         https://bugs.webkit.org/show_bug.cgi?id=90292
3891
3892         Reviewed by Nate Chapin.
3893
3894         These ifdefs are required to build this file downstream. There's some
3895         sublte difference between how the OS flags are set upstream and
3896         downstream. This is on our list of issues to resolve, but in the
3897         meantime, this patch makes these files identical upstream and
3898         downstream to reduce noise in the upstreaming queue.
3899
3900         * src/linux/WebFontRendering.cpp:
3901         (WebKit::WebFontRendering::setSubpixelPositioning):
3902
3903 2012-06-29  Eric Penner  <epenner@google.com>
3904
3905         [chromium] Adding PrioritizedTexture and replacing ContentsTextureManager
3906         https://bugs.webkit.org/show_bug.cgi?id=84308
3907
3908         Reviewed by Adrienne Walker.
3909
3910         * WebKit.gypi:
3911         * tests/CCLayerTreeHostTest.cpp:
3912         (WTF::CCLayerTreeHostTestAtomicCommitWithPartialUpdate::commitCompleteOnCCThread):
3913         * tests/CCPrioritizedTextureTest.cpp: Added.
3914         (WTF):
3915         (CCPrioritizedTextureTest):
3916         (WTF::CCPrioritizedTextureTest::CCPrioritizedTextureTest):
3917         (WTF::CCPrioritizedTextureTest::~CCPrioritizedTextureTest):
3918         (WTF::CCPrioritizedTextureTest::texturesMemorySize):
3919         (WTF::CCPrioritizedTextureTest::createManager):
3920         (WTF::CCPrioritizedTextureTest::validateTexture):
3921         (WTF::CCPrioritizedTextureTest::allocator):
3922         (WTF::TEST_F):
3923         * tests/CCTiledLayerTestCommon.cpp:
3924         (WebKitTests::FakeLayerTextureUpdater::Texture::Texture):
3925         (WebKitTests::FakeLayerTextureUpdater::Texture::updateRect):
3926         (WebKitTests::FakeLayerTextureUpdater::createTexture):
3927         (WebKitTests::FakeTiledLayerChromium::FakeTiledLayerChromium):
3928         (WebKitTests::FakeTiledLayerWithScaledBounds::FakeTiledLayerWithScaledBounds):
3929         * tests/CCTiledLayerTestCommon.h:
3930         (Texture):
3931         (FakeLayerTextureUpdater):
3932         (FakeTiledLayerChromium):
3933         (FakeTiledLayerWithScaledBounds):
3934         * tests/TiledLayerChromiumTest.cpp:
3935
3936 2012-06-29  Ian Vollick  <vollick@chromium.org>
3937
3938         [chromium] Roll chromium rev to 144906
3939         https://bugs.webkit.org/show_bug.cgi?id=90278
3940
3941         Unreviewed. Deps roll.
3942
3943         * DEPS:
3944
3945 2012-06-29  Alexander Pavlov  <apavlov@chromium.org>
3946
3947         Web Inspector: [Device Metrics] "Fit window" option inhibits adjusting the page zoom factor
3948         https://bugs.webkit.org/show_bug.cgi?id=90187
3949
3950         Reviewed by Vsevolod Vlasov.
3951
3952         This change fixes the stale zoom factor, which does not get updated upon browser window resize in the "Fit window" mode.
3953         The expected test results have little to do with actual dimensions of the test page in Chrome on a real mobile device,
3954         since Chrome on the mobile uses a different zooming technique (pageScaleFactor-based viewport using layout width
3955         rather than plain pageZoomFactor) and font boosting, which has not been upstreamed yet.
3956
3957         * src/WebDevToolsAgentImpl.cpp:
3958         (WebKit::DeviceMetricsSupport::autoZoomPageToFitWidth):
3959         (WebKit::DeviceMetricsSupport::ensureOriginalZoomFactor):
3960
3961 2012-06-29  Konrad Piascik  <kpiascik@rim.com>
3962
3963         Don't hardcode target dpi of 160 (it should be 96 on desktop)
3964         https://bugs.webkit.org/show_bug.cgi?id=88114
3965
3966         Reviewed by Adam Barth.
3967
3968         Updated the call to computeViewportAttributes.
3969
3970         * src/ChromeClientImpl.cpp:
3971         (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
3972
3973 2012-06-29  Amy Ousterhout  <aousterh@chromium.org>
3974
3975         Deleting unused function in WebDeviceOrientation
3976         https://bugs.webkit.org/show_bug.cgi?id=90185
3977
3978         Reviewed by Adam Barth.
3979
3980         Deleting the unused copy assignment function in WebDeviceOrientation.
3981
3982         * public/WebDeviceOrientation.h:
3983         (WebDeviceOrientation):
3984         * src/WebDeviceOrientation.cpp:
3985
3986 2012-06-29  Yoshifumi Inoue  <yosin@chromium.org>
3987
3988         [Platform] Implement Date Time format parser
3989         https://bugs.webkit.org/show_bug.cgi?id=89963
3990
3991         Reviewed by Kent Tamura.
3992
3993         This patch adds an unit test for date time format parser if
3994         ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS) is true.
3995
3996         * tests/DateTimeFormatTest.cpp: Added.
3997         (DateTimeFormatTest):
3998         (Token):
3999         (DateTimeFormatTest::Token::Token):
4000         (DateTimeFormatTest::Token::operator==):
4001         (DateTimeFormatTest::Token::toString):
4002         (Tokens):
4003         (DateTimeFormatTest::Tokens::Tokens):
4004         (DateTimeFormatTest::Tokens::operator==):
4005         (DateTimeFormatTest::Tokens::toString):
4006         (DateTimeFormatTest::parse):
4007         (DateTimeFormatTest::single):
4008         (TokenHandler):
4009         (DateTimeFormatTest::TokenHandler::~TokenHandler):
4010         (DateTimeFormatTest::TokenHandler::fieldType):
4011         (DateTimeFormatTest::TokenHandler::tokens):
4012         (DateTimeFormatTest::TokenHandler::visitField):
4013         (DateTimeFormatTest::TokenHandler::visitLiteral):
4014         (operator<<):
4015         (TEST_F):
4016
4017 2012-06-28  Joshua Bell  <jsbell@chromium.org>
4018
4019         IndexedDB: Implement IDBTransaction internal active flag
4020         https://bugs.webkit.org/show_bug.cgi?id=89379
4021
4022         Reviewed by Tony Chang.
4023
4024         To match the IDB spec, transactions that have had no requests
4025         filed against them should commit, not abort. This requires plumbing
4026         through the commit() call from front-end to back-end.
4027
4028         * src/IDBTransactionBackendProxy.cpp:
4029         (WebKit::IDBTransactionBackendProxy::commit):
4030         (WebKit):
4031         * src/IDBTransactionBackendProxy.h:
4032         (IDBTransactionBackendProxy):
4033         * src/WebIDBTransactionImpl.cpp:
4034         (WebKit::WebIDBTransactionImpl::commit):
4035         (WebKit):
4036         * src/WebIDBTransactionImpl.h:
4037
4038 2012-06-28  Adrienne Walker  <enne@google.com>
4039
4040         [chromium] Split WebScrollbar into WebPluginScrollbar and WebScrollbar
4041         https://bugs.webkit.org/show_bug.cgi?id=90117
4042
4043         Reviewed by James Robinson.
4044
4045         Convert WebScrollbar/WebScrollbarClient/WebScrollbarImpl to be
4046         WebPluginScrollbar, WebPluginScrollbarClient, and
4047         WebPluginScrollbarImpl. Modify ScrollbarGroup
4048         to use this instead.
4049
4050         WebScrollbar is now the base interface for a pre-existing scrollbar
4051         that is accessed in a const manner. It also provides all of the common
4052         WebKit ScrollTypes.h enums. WebPluginScrollbar is now a scrollbar that
4053         has been externally created and is externally modified in terms of its
4054         position, invalidation, and painting.
4055
4056         This is a pre-refactoring for adding Web versions of ScrollbarTheme
4057         into the Platform directory which will operate on WebScrollbar, but
4058         that don't need all of what WebPluginScrollbar provides.
4059
4060         As WebScrollbar is moved to Platform, WebKit.gyp now must depend on
4061         Platform as well.
4062
4063         * WebKit.gyp:
4064         * public/WebPluginScrollbar.h:
4065         (WebKit):
4066         (WebPluginScrollbar):
4067         (WebKit::WebPluginScrollbar::~WebPluginScrollbar):
4068         * public/WebPluginScrollbarClient.h:
4069         (WebKit):
4070         (WebPluginScrollbarClient):
4071         * public/WebScrollbar.h: Removed.
4072         * public/WebScrollbarClient.h: Removed.
4073         * src/AssertMatchingEnums.cpp:
4074         * src/ScrollbarGroup.cpp:
4075         (WebKit::ScrollbarGroup::scrollbarCreated):
4076         (WebKit::ScrollbarGroup::scrollbarDestroyed):
4077         (WebKit::ScrollbarGroup::scrollSize):
4078         (WebKit::ScrollbarGroup::scrollPosition):
4079         (WebKit::ScrollbarGroup::contentsSize):
4080         * src/ScrollbarGroup.h:
4081         (WebKit):
4082         (ScrollbarGroup):
4083         * src/WebPluginScrollbarImpl.cpp: Renamed from Source/WebKit/chromium/src/WebScrollbarImpl.cpp.
4084         (WebKit):
4085         (WebKit::WebPluginScrollbar::createForPlugin):
4086         (WebKit::WebPluginScrollbar::defaultThickness):
4087         (WebKit::WebPluginScrollbarImpl::WebPluginScrollbarImpl):
4088         (WebKit::WebPluginScrollbarImpl::~WebPluginScrollbarImpl):
4089         (WebKit::WebPluginScrollbarImpl::setScrollOffset):
4090         (WebKit::WebPluginScrollbarImpl::invalidateScrollbarRect):
4091         (WebKit::WebPluginScrollbarImpl::getTickmarks):
4092         (WebKit::WebPluginScrollbarImpl::convertFromContainingViewToScrollbar):
4093         (WebKit::WebPluginScrollbarImpl::scrollbarStyleChanged):
4094         (WebKit::WebPluginScrollbarImpl::isOverlay):
4095         (WebKit::WebPluginScrollbarImpl::value):
4096         (WebKit::WebPluginScrollbarImpl::setLocation):