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