bd8474cb69af8bd0dee6e2915a7e19ac559250c6
[WebKit-https.git] / Source / WebKit / win / ChangeLog
1 2012-04-11  Sheriff Bot  <webkit.review.bot@gmail.com>
2
3         Unreviewed, rolling out r113836.
4         http://trac.webkit.org/changeset/113836
5         https://bugs.webkit.org/show_bug.cgi?id=83705
6
7         Broke all the WebKit2 inspector tests (Requested by andersca
8         on #webkit).
9
10         * WebCoreSupport/WebInspectorClient.cpp:
11         (registerWindowClass):
12         * WebInspector.cpp:
13         (WebInspector::setTimelineProfilingEnabled):
14         * WebNodeHighlight.cpp:
15         (WebNodeHighlight::WebNodeHighlight):
16         (WebNodeHighlight::update):
17         * WebNodeHighlight.h:
18         (WebNodeHighlight):
19         * WebView.cpp:
20         (WebView::WebView):
21         (WebView::close):
22         (WebView::initWithFrame):
23         (WebView::inspector):
24         * WebView.h:
25         (WebView):
26
27 2012-04-11  Vivek Galatage  <vivekgalatage@gmail.com>
28
29         Web Inspector: Disabling Inspector causes build failure on Windows
30         https://bugs.webkit.org/show_bug.cgi?id=83557
31
32         Reviewed by Pavel Feldman.
33
34         The calls to inspector APIs are not put under ENABLE(INSPECTOR) guard.
35         This change brings all such API calls under the guard.
36         
37         * WebCoreSupport/WebInspectorClient.cpp:
38         * WebInspector.cpp:
39         * WebNodeHighlight.cpp:
40         (WebNodeHighlight::WebNodeHighlight):
41         (WebNodeHighlight::update):
42         * WebNodeHighlight.h:
43         (WebNodeHighlight):
44         * WebView.cpp:
45         (WebView::WebView):
46         (WebView::close):
47         (WebView::initWithFrame):
48         (WebView::inspector):
49         * WebView.h:
50         (WebView):
51
52 2012-03-30  Mark Pilgrim  <pilgrim@chromium.org>
53
54         GEOLOCATION should be implemented as Page Supplement
55         https://bugs.webkit.org/show_bug.cgi?id=82228
56
57         Reviewed by Adam Barth.
58
59         Geolocation is now a Supplement in Page so the interface
60         has changed for setting up the page's geolocation client
61         initially and accessing the controller later.
62
63         * WebView.cpp:
64         (WebView::initWithFrame):
65         (WebView::geolocationDidChangePosition):
66         (WebView::geolocationDidFailWithError):
67
68 2012-03-29  Sheriff Bot  <webkit.review.bot@gmail.com>
69
70         Unreviewed, rolling out r112553.
71         http://trac.webkit.org/changeset/112553
72         https://bugs.webkit.org/show_bug.cgi?id=82638
73
74         It made all tests crash on Qt WK2 (Requested by Ossy_away on
75         #webkit).
76
77         * WebView.cpp:
78         (WebView::initWithFrame):
79         (WebView::geolocationDidChangePosition):
80         (WebView::geolocationDidFailWithError):
81
82 2012-03-29  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
83
84         HashMap<>::add should return a more descriptive object
85         https://bugs.webkit.org/show_bug.cgi?id=71063
86
87         Reviewed by Ryosuke Niwa.
88
89         Update code to use AddResult instead of a pair.
90
91         * WebKitCOMAPI.cpp:
92         (classFactory):
93
94 2012-03-29  Mark Pilgrim  <pilgrim@chromium.org>
95
96         GEOLOCATION should be implemented as Page Supplement
97         https://bugs.webkit.org/show_bug.cgi?id=82228
98
99         Reviewed by Adam Barth.
100
101         Geolocation is now a Supplement in Page so the interface
102         has changed for setting up the page's geolocation client
103         initially and accessing the controller later.
104
105         * WebView.cpp:
106         (WebView::initWithFrame):
107         (WebView::geolocationDidChangePosition):
108         (WebView::geolocationDidFailWithError):
109
110 2012-03-28  Nate Chapin  <japhet@chromium.org>
111
112         Remove dispatchDidLoadMainResource callback, since no
113         port implements it.
114         https://bugs.webkit.org/show_bug.cgi?id=82539
115
116         Reviewed by Alexey Proskuryakov.
117
118         * WebCoreSupport/WebFrameLoaderClient.cpp:
119         * WebCoreSupport/WebFrameLoaderClient.h:
120         (WebFrameLoaderClient):
121
122 2012-03-26  Adam Barth  <abarth@webkit.org>
123
124         FrameLoader::shouldAllowNavigation uses Frame for context rather than Document
125         https://bugs.webkit.org/show_bug.cgi?id=81020
126
127         Reviewed by Eric Seidel.
128
129         Update call site to new function name.
130
131         * WebFrame.cpp:
132         (WebFrame::dispatchWillSubmitForm):
133
134 2012-03-22  Anders Carlsson  <andersca@apple.com>
135
136         ASSERT(!needsLayout) in RenderView.cpp when visiting http://www.panic.com/blog/
137         https://bugs.webkit.org/show_bug.cgi?id=81953
138         <rdar://problem/11086998>
139
140         Reviewed by Sam Weinig.
141
142         Update for changes to WebCore.
143
144         * FullscreenVideoController.cpp:
145         (FullscreenVideoController::LayerClient::platformCALayerDidCreateTiles):
146
147 2012-03-20  Steve Falkenburg  <sfalken@apple.com>
148
149         Move WTF-related Windows project files out of JavaScriptCore
150         https://bugs.webkit.org/show_bug.cgi?id=80680
151
152         Reviewed by Jessie Berlin.
153
154         * WebKit.vcproj/WebKit.sln:
155
156 2012-03-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
157
158         Convert hasSpellingMarker to use Internals interface.
159         https://bugs.webkit.org/show_bug.cgi?id=81300
160
161         Reviewed by Ryosuke Niwa.
162
163         Remove hasSpellingMarker interface support, since it can support in the cross-port
164         way through the Internals interface.
165
166         * Interfaces/IWebFramePrivate.idl:
167
168 2012-03-19  Adam Barth  <abarth@webkit.org>
169
170         Remove support for "magic" iframe
171         https://bugs.webkit.org/show_bug.cgi?id=81590
172
173         Reviewed by Eric Seidel.
174
175         Remove FrameLoaderClient methods that no longer exist.
176
177         * WebCoreSupport/WebFrameLoaderClient.cpp:
178         * WebCoreSupport/WebFrameLoaderClient.h:
179         (WebFrameLoaderClient):
180
181 2012-03-19  Anders Carlsson  <andersca@apple.com>
182
183         Fix Windows build.
184
185         * FullscreenVideoController.cpp:
186         (FullscreenVideoController::LayerClient::platformCALayerDeviceScaleFactor):
187
188 2012-03-13  Jon Lee  <jonlee@apple.com>
189
190         Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS
191         https://bugs.webkit.org/show_bug.cgi?id=80922
192         <rdar://problem/11035082>
193
194         Reviewed by Jian Li.
195
196         You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API.
197         LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the
198         new API. Therefore, APIs that are common between the two will have:
199         #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
200
201         This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to
202         the new API, the defines will begin to split. This allows ports to decide which set of APIs to include.
203
204         Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
205         * WebCoreSupport/WebChromeClient.cpp:
206         (WebChromeClient::WebChromeClient):
207         * WebCoreSupport/WebChromeClient.h:
208         (WebChromeClient):
209         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
210         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
211
212 2012-03-13  Adam Barth  <abarth@webkit.org> && Benjamin Poulain  <bpoulain@apple.com>
213
214         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)
215         https://bugs.webkit.org/show_bug.cgi?id=78853
216
217         Reviewed by Adam Barth.
218
219         * WebCoreSupport/WebChromeClient.h:
220         (WebChromeClient):
221         * WebCoreSupport/WebGeolocationClient.cpp:
222         (WebGeolocationClient::lastPosition):
223         * WebGeolocationPosition.cpp:
224         (WebGeolocationPosition::initWithTimestamp):
225         (core):
226         * WebGeolocationPosition.h:
227         (WebGeolocationPosition):
228         (WebGeolocationPosition::impl):
229         * WebView.cpp:
230         (WebView::initWithFrame):
231         (WebView::geolocationDidChangePosition):
232         (WebView::geolocationDidFailWithError):
233
234 2012-03-12  Jessie Berlin  <jberlin@apple.com>
235
236         More Windows build fixing.
237
238         * MarshallingHelpers.cpp:
239         * WebDatabaseManager.cpp:
240
241 2012-03-09  Jon Lee  <jonlee@apple.com>
242
243         Rename NotificationPresenter to NotificationClient
244         https://bugs.webkit.org/show_bug.cgi?id=80488
245         <rdar://problem/10965558>
246
247         Reviewed by Kentaro Hara.
248
249         Refactor to use renamed WebCore::NotificationClient.
250         * WebCoreSupport/WebChromeClient.h:
251         (WebChromeClient::notificationPresenter):
252         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
253         (WebDesktopNotificationsDelegate::checkPermission):
254         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
255         (WebDesktopNotificationsDelegate):
256
257 2012-03-09  Emil A Eklund  <eae@chromium.org>
258
259         Add roundedPoint to HitTestResult and change platform code to use it
260         https://bugs.webkit.org/show_bug.cgi?id=80715
261
262         Reviewed by James Robinson.
263
264         Change ports to use roundedPoint to avoid exposing subpixel types to
265         platform code.
266
267         * WebView.cpp:
268         (WebView::handleContextMenuEvent):
269
270 2012-03-08  Steve Falkenburg  <sfalken@apple.com>
271
272         Separate WTF parts of JavaScriptCoreGenerated into WTFGenerated for Windows build
273         https://bugs.webkit.org/show_bug.cgi?id=80657
274
275         Preparation for WTF separation from JavaScriptCore.
276         The "Generated" vcproj files on Windows are necessary so Visual Studio can calculate correct
277         dependencies for generated files.
278
279         Reviewed by Jessie Berlin.
280
281         * WebKit.vcproj/WebKit.sln: Add WTFGenerated, update dependent projects.
282
283 2012-03-03  Benjamin Poulain  <benjamin@webkit.org>
284
285         Remove the redundant method KURL::protocolInHTTPFamily()
286         https://bugs.webkit.org/show_bug.cgi?id=80216
287
288         Reviewed by Anders Carlsson.
289
290         * WebCoreSupport/WebFrameLoaderClient.cpp:
291         (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
292         * WebHistory.cpp:
293         (WebHistory::visitedURL):
294
295 2012-02-26  Hajime Morrita  <morrita@chromium.org>
296
297         Move ChromeClient::showContextMenu() to ContextMenuClient
298         https://bugs.webkit.org/show_bug.cgi?id=79427
299
300         Reviewed by Adam Barth.
301
302         * WebCoreSupport/WebChromeClient.h:
303         (WebChromeClient):
304
305 2012-02-24  Shinya Kawanaka  <shinyak@chromium.org>
306
307         SpellCheckRequest needs to know the context where the spellcheck happened.
308         https://bugs.webkit.org/show_bug.cgi?id=79320
309
310         Reviewed by Hajime Morita.
311
312         * WebCoreSupport/WebEditorClient.h:
313         (WebEditorClient::requestCheckingOfString):
314         (WebEditorClient):
315
316 2012-02-21  Ryosuke Niwa  <rniwa@webkit.org>
317
318         Remove the remaining uses of CSSStyleDeclaration in Editor
319         https://bugs.webkit.org/show_bug.cgi?id=78939
320
321         Reviewed by Enrica Casucci.
322
323         * WebCoreSupport/WebEditorClient.cpp:
324         (WebEditorClient::shouldApplyStyle):
325         * WebCoreSupport/WebEditorClient.h:
326         (WebEditorClient):
327
328 2012-02-22  Ryosuke Niwa  <rniwa@webkit.org>
329
330         Remove the remaining uses of CSSStyleDeclaration in Editor
331         https://bugs.webkit.org/show_bug.cgi?id=78939
332
333         Reviewed by Enrica Casucci.
334
335         * WebCoreSupport/WebEditorClient.cpp:
336         (WebEditorClient::shouldApplyStyle):
337         * WebCoreSupport/WebEditorClient.h:
338         (WebEditorClient):
339
340 2012-02-17  Kalev Lember  <kalevlember@gmail.com>
341
342         Remove unused parameters from WTF threading API
343         https://bugs.webkit.org/show_bug.cgi?id=78389
344
345         Reviewed by Adam Roben.
346
347         waitForThreadCompletion() had an out param 'void **result' to get the
348         'void *' returned by ThreadFunction. However, the implementation in
349         ThreadingWin.cpp ignored the out param, not filling it in. This had
350         led to a situation where none of the client code made use of the param
351         and just ignored it.
352
353         To clean this up, the patch changes the signature of ThreadFunction to
354         return void instead of void* and drops the the unused 'void **result'
355         parameter from waitForThreadCompletion. Also, all client code is
356         updated for the API change.
357
358         As mentioned in https://bugs.webkit.org/show_bug.cgi?id=78389 , even
359         though the change only affects internal API, Safari is using it
360         directly and we'll need to keep the old versions around for ABI
361         compatibility. For this, the patch adds compatibility wrappers with
362         the old ABI.
363
364         * WebKit.vcproj/WebKit_Cairo.def: Add the new functions.
365         * WebKit.vcproj/WebKit_Cairo_debug.def: Ditto.
366
367 2012-02-15  Sadrul Habib Chowdhury  <sadrul@chromium.org>
368
369         Notify ChromeClient when touch-event handlers are installed/removed.
370         https://bugs.webkit.org/show_bug.cgi?id=77440
371
372         Reviewed by Darin Fisher and Ryosuke Niwa.
373
374         * WebCoreSupport/WebChromeClient.h:
375         (WebChromeClient::numTouchEventHandlersChanged):
376
377 2012-02-14  Alexey Proskuryakov  <ap@apple.com>
378
379         [Mac][Win][WK2] Switch to RFC 6455 protocol for WebSockets
380         https://bugs.webkit.org/show_bug.cgi?id=78541
381         <rdar://problem/10036695>
382
383         Reviewed by Kent Tamura.
384
385         * WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): Changed default value of
386         the preference
387
388 2012-02-11  Nikolas Zimmermann  <nzimmermann@rim.com>
389
390         Convert svg/animations to use SMIL methods for driving the timeline
391         https://bugs.webkit.org/show_bug.cgi?id=78422
392
393         Reviewed by Dirk Schulze.
394
395         Remove SVG animation sampling functionality provided for DRT, which no longer uses it.
396         Instead we switched the svg/animations tests to use SVGSVGElement.setCurrentTime.
397
398         * Interfaces/IWebFramePrivate.idl:
399         * WebFrame.cpp:
400         * WebFrame.h:
401
402 2012-02-13  Andy Estes  <aestes@apple.com>
403
404         Fix the Windows build.
405
406         * WebCoreSupport/WebPlatformStrategies.cpp:
407         (WebPlatformStrategies::createPasteboardStrategy):
408         * WebCoreSupport/WebPlatformStrategies.h:
409         (WebPlatformStrategies):
410
411 2012-02-12  Andy Estes  <aestes@apple.com>
412
413         [Windows] Add API to enable inverted color drawing on a WebView
414         https://bugs.webkit.org/show_bug.cgi?id=77382
415
416         Reviewed by Adam Roben.
417
418         Add a new private WebPreference key called "WebKitShouldInvertColors"
419         and add private cover methods to get and set the preference. When this
420         preference changes on a WebPreference object, all WebViews listening to
421         that object will repaint to reflect the new value.
422
423         * Interfaces/IWebPreferencesPrivate.idl: Add [setS|s]houldInvertColors()
424         cover methods for WebKitShouldInvertColorsPreferenceKey.
425         * WebPreferenceKeysPrivate.h: Add WebKitShouldInvertColorsPreferenceKey.
426         * WebPreferences.cpp:
427         (WebPreferences::shouldInvertColors):
428         (WebPreferences::setShouldInvertColors):
429         * WebPreferences.h:
430         (WebPreferences):
431         * WebView.cpp:
432         (WebView::setShouldInvertColors): If m_shouldInvertColors changes,
433         update the value on the WebView and in m_layerTreeHost, then repaint
434         the view.
435         (WebView::notifyPreferencesChanged):
436         (WebView::setAcceleratedCompositing): When creating a new layer tree
437         host, tell it whether it should be inverting colors.
438         * WebView.h:
439
440 2012-02-07  MORITA Hajime  <morrita@google.com>
441
442         Replacement text should be available from the marker.
443         https://bugs.webkit.org/show_bug.cgi?id=77934
444
445         Reviewed by Kent Tamura.
446
447         * WebKit.vcproj/WebKit_Cairo.def:
448         * WebKit.vcproj/WebKit_Cairo_debug.def:
449
450 2012-02-02  Jon Lee  <jonlee@apple.com>
451
452         Clear shown notifications when context is no longer active
453         https://bugs.webkit.org/show_bug.cgi?id=77363
454         <rdar://problem/10568907>
455
456         Reviewed by Darin Adler.
457
458         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
459         (WebDesktopNotificationsDelegate): Add previously missing virtual functions.
460         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
461         (WebDesktopNotificationsDelegate::notificationControllerDestroyed):
462         (WebDesktopNotificationsDelegate::cancelRequestsForPermission):
463
464 2012-02-01  Anders Carlsson  <andersca@apple.com>
465
466         Another attempt to fix the Windows build.
467
468         * FullscreenVideoController.cpp:
469         (FullscreenVideoController::LayerClient::platformCALayerDidCreateTiles):
470
471 2012-01-26  Andy Estes  <aestes@apple.com>
472
473         [Windows] Optionally invert colors when drawing to a WebView's backing store.
474         https://bugs.webkit.org/show_bug.cgi?id=77168
475
476         Reviewed by Sam Weinig.
477
478         * WebView.cpp:
479         (WebView::WebView): Initialize m_shouldInvertColors to false.
480         (WebView::paintIntoBackingStore): If m_shouldInvertColors is true, draw
481         an opaque white quad using the CompositeDifference blend mode. This
482         blend operation instructs CoreGraphics to take the difference between
483         the source pixel (white) and the background pixel, resulting in an
484         inverted pixel.
485         * WebView.h: Define m_shouldInvertColors.
486
487 2012-01-23  Simon Fraser  <simon.fraser@apple.com>
488
489         Show layer borders for scrollbar layers
490         https://bugs.webkit.org/show_bug.cgi?id=76888
491
492         Reviewed by Beth Dakin.
493
494         Update for new signature of GraphicsLayerClient::showDebugBorders()
495         and GraphicsLayerClient::showRepaintCounter().
496
497         * WebView.cpp:
498         (WebView::showDebugBorders):
499         (WebView::showRepaintCounter):
500         * WebView.h:
501
502 2012-01-23  David Levin  <levin@chromium.org>
503
504         [windows] Convert usages of GetDC to HWndDC Part 2.
505         https://bugs.webkit.org/show_bug.cgi?id=76750
506
507         Reviewed by Adam Roben.
508
509         * FullscreenVideoController.cpp:
510         (createCompatibleDCForWindow): Moved out the code which creates a DC for a window
511         to keep the same scope for the DC lifetime.
512         (FullscreenVideoController::draw):  Switch to using OwnPtr<HDC>
513         since createCompatibleDCForWindow returns a PassOwnPtr.
514         * WebNodeHighlight.cpp:
515         (WebNodeHighlight::update): 
516           Cleaned up leaks from calling GetDC without release.
517           Note that there is a potential leak of hdc that previously existed
518           and still does in an early exit scenario. (This could be easily fixed
519           by using OwnPtr<HDC> but I was trying to keep this patch focused.)
520         * WebView.cpp:
521         (WebView::scrollBackingStore): Typical conversion.
522         (WebView::updateBackingStore): Reduced the scope of windowDC to be
523         right where it is being used.
524         (WebView::performLayeredWindowUpdate): Typical conversion.
525         (WebView::paintIntoBackingStore): Ditto.
526
527 2012-01-23  David Levin  <levin@chromium.org>
528
529         [windows] Convert usages of GetDC to HWndDC Part 1.
530         https://bugs.webkit.org/show_bug.cgi?id=76744
531
532         Reviewed by Adam Roben.
533
534         * WebIconDatabase.cpp:
535         (createDIB): Changed GetDC to HWndDC and removed ReleaseDC.
536
537 2012-01-07  Andreas Kling  <awesomekling@apple.com>
538
539         Windows build fix.
540
541         * DOMHTMLClasses.cpp:
542         (DOMHTMLDocument::forms):
543         (DOMHTMLSelectElement::options):
544
545 2012-01-06  Jessie Berlin  <jberlin@apple.com>
546
547         Windows build fix.
548
549         * Interfaces/IWebViewPrivate.idl:
550
551 2012-01-05  Adam Roben  <aroben@apple.com>
552
553         Add WebKitTestRunnerLauncher to WebKit.sln.
554
555         It builds just after WebKitTestRunner.
556
557         Part of <http://webkit.org/b/75486> <rdar://problem/10638124> NRWT fails to launch Apple's
558         Windows port of DumpRenderTree/WebKitTestRunner
559
560         Reviewed by Steve Falkenburg.
561
562         * WebKit.vcproj/WebKit.sln:
563
564 2012-01-05  Adam Roben  <aroben@apple.com>
565
566         Add DumpRenderTreeLauncher to WebKit.sln.
567
568         It builds just after DumpRenderTree.
569
570         Part of <http://webkit.org/b/75486> <rdar://problem/10638124> NRWT fails to launch Apple's
571         Windows port of DumpRenderTree/WebKitTestRunner
572
573         Reviewed by Steve Falkenburg.
574
575         * WebKit.vcproj/WebKit.sln:
576
577 2012-01-04  Adam Roben  <aroben@apple.com>
578
579         Add ImageDiffLauncher to WebKit.sln
580
581         It builds just after ImageDiff.
582
583         Part of <http://webkit.org/b/75572> ImageDiff.exe can't be run without first munging PATH
584
585         Reviewed by Anders Carlsson.
586
587         * WebKit.vcproj/WebKit.sln:
588
589 2012-01-04  Adam Roben  <aroben@apple.com>
590
591         Add MiniBrowserLauncher to WebKit.sln
592
593         It builds just after MiniBrowser.
594
595         Part of <http://webkit.org/b/68576> <rdar://problem/10163853> MiniBrowser fails to launch
596         when double-clicked
597
598         Reviewed by Anders Carlsson.
599
600         * WebKit.vcproj/WebKit.sln: Added MiniBrowserLauncher.
601
602 2012-01-04  Adam Roben  <aroben@apple.com>
603
604         Add WinLauncherLauncher to WebKit.sln
605
606         It builds just after WinLauncher.
607
608         Part of <http://webkit.org/b/68578> <rdar://problem/10163861> WinLauncher fails to launch
609         when double-clicked
610
611         Reviewed by Anders Carlsson.
612
613         * WebKit.vcproj/WebKit.sln: Added WinLauncherLauncher.
614
615 2011-12-21  Jessie Berlin  <jberlin@apple.com>
616
617         Expose to Windows the way to allow a scheme access to Local Storage and Databases while
618         Private Browsing is enabled.
619         https://bugs.webkit.org/show_bug.cgi?id=75056
620
621         Reviewed by Sam Weinig.
622
623         Add the Windows WebKit API that corresponds to the Mac one added in r99439.
624
625         * WebView.cpp:
626         (WebView::registerURLSchemeAsSecure):
627         (WebView::registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing):
628         (WebView::registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing):
629         * WebView.h:
630
631 2011-12-20  Pavel Feldman  <pavel.feldman@gmail.com>
632
633         Web Inspector: reproducible crash after closing web inspector and browser window  (iCab)
634         https://bugs.webkit.org/show_bug.cgi?id=74255
635
636         Reviewed by Yury Semikhatsky.
637
638         * WebCoreSupport/WebInspectorClient.cpp:
639         (WebInspectorClient::~WebInspectorClient):
640         (WebInspectorFrontendClient::destroyInspectorView):
641         * WebCoreSupport/WebInspectorClient.h:
642
643 2011-12-19  Sam Weinig  <sam@webkit.org>
644
645         More PlatformEvent cleanup
646         https://bugs.webkit.org/show_bug.cgi?id=74831
647
648         Reviewed by Dan Bernstein.
649
650         * WebView.cpp:
651         (WebView::handleMouseEvent):
652         Update to use new names, access style.
653
654 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
655
656         Rename registerCommandFor(Undo|Redo) to register(Undo|Redo)Step
657         https://bugs.webkit.org/show_bug.cgi?id=74748
658
659         Reviewed by Eric Seidel.
660
661         * WebCoreSupport/WebEditorClient.cpp:
662         (WebEditorClient::registerUndoStep):
663         (WebEditorClient::registerRedoStep):
664         * WebCoreSupport/WebEditorClient.h:
665
666 2011-12-16  Sam Weinig  <sam@webkit.org>
667
668         Give PlatformEvents a base class
669         https://bugs.webkit.org/show_bug.cgi?id=74685
670
671         Reviewed by Anders Carlsson.
672
673         Add a base class for PlatformMouseEvent, PlatformKeyboardEvent, PlatformWheelEvent
674         and PlatformGestureEvent and move Type enumeration and modifiers down to it.
675
676         * AccessibleBase.cpp:
677         (AccessibleBase::get_accKeyboardShortcut):
678         * WebDropSource.cpp:
679         (generateMouseEvent):
680         * WebView.cpp:
681         (WebView::keyUp):
682         (WebView::handleEditingKeyboardEvent):
683         (WebView::keyDown):
684         (WebView::keyPress):
685
686 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
687
688         Only EditCommandComposition should implement unapply and reapply
689         https://bugs.webkit.org/show_bug.cgi?id=74490
690
691         Reviewed by Eric Seidel.
692
693         * WebCoreSupport/WebEditorClient.cpp:
694         (WebEditorUndoCommand::WebEditorUndoCommand):
695         (WebEditorUndoCommand::execute):
696         (WebEditorClient::registerCommandForUndo):
697         (WebEditorClient::registerCommandForRedo):
698         * WebCoreSupport/WebEditorClient.h:
699
700 2011-12-14  Jing Zhao  <jingzhao@chromium.org>
701
702         Opening two popup menus by dispatchEvent() makes problems.
703         https://bugs.webkit.org/show_bug.cgi?id=73304
704
705         Reviewed by Kent Tamura.
706
707         * WebCoreSupport/WebChromeClient.cpp:
708         (WebChromeClient::hasOpenedPopup): Not implemented.
709         * WebCoreSupport/WebChromeClient.h: Overrides hasOpenedPopup().
710
711 2011-12-14  Sam Weinig  <weinig@apple.com>
712
713         Remove whitespace from InheritedPropertySheets attributes in
714         vsprops files to appease the Visual Studio project migrator.
715
716         Reviewed by Adam Roben.
717
718         * WebKit.vcproj/InterfacesDebug.vsprops:
719         * WebKit.vcproj/InterfacesDebugAll.vsprops:
720         * WebKit.vcproj/InterfacesDebugCairoCFLite.vsprops:
721         * WebKit.vcproj/InterfacesProduction.vsprops:
722         * WebKit.vcproj/InterfacesRelease.vsprops:
723         * WebKit.vcproj/InterfacesReleaseCairoCFLite.vsprops:
724         * WebKit.vcproj/WebKitGUIDDebug.vsprops:
725         * WebKit.vcproj/WebKitGUIDDebugAll.vsprops:
726         * WebKit.vcproj/WebKitGUIDDebugCairoCFLite.vsprops:
727         * WebKit.vcproj/WebKitGUIDProduction.vsprops:
728         * WebKit.vcproj/WebKitGUIDRelease.vsprops:
729         * WebKit.vcproj/WebKitGUIDReleaseCairoCFLite.vsprops:
730         * WebKit.vcproj/WebKitLibDebug.vsprops:
731         * WebKit.vcproj/WebKitLibDebugAll.vsprops:
732         * WebKit.vcproj/WebKitLibDebugCairoCFLite.vsprops:
733         * WebKit.vcproj/WebKitLibProduction.vsprops:
734         * WebKit.vcproj/WebKitLibRelease.vsprops:
735         * WebKit.vcproj/WebKitLibReleaseCairoCFLite.vsprops:
736
737 2011-12-07  Mary Wu  <mary.wu@torchmobile.com.cn>
738
739         Change function name InitializeLoggingChannelsIfNecessary to follow coding style guideline
740         https://bugs.webkit.org/show_bug.cgi?id=73986
741
742         Reviewed by Kenneth Rohde Christiansen.
743
744         * WebView.cpp:
745         (WebView::initWithFrame):
746
747 2011-12-05  Eric Carlson  <eric.carlson@apple.com>
748
749         WebKit/mac part of: Add WebKit preferences for text track settings
750         https://bugs.webkit.org/show_bug.cgi?id=73721
751
752         Reviewed by John Sullivan.
753
754         * Interfaces/IWebPreferences.idl: Declare getters and setters for new properties.
755
756         * WebPreferenceKeysPrivate.h: Added #define for shouldDisplaySubtitles, shouldDisplayCaptions, 
757         and shouldDisplayTextDescriptions properties.
758
759         * WebPreferences.cpp:
760         (WebPreferences::setShouldDisplaySubtitles): Added.
761         (WebPreferences::shouldDisplaySubtitles): Ditto.
762         (WebPreferences::setShouldDisplayCaptions): Ditto.
763         (WebPreferences::shouldDisplayCaptions): Ditto.
764         (WebPreferences::setShouldDisplayTextDescriptions): Ditto.
765         (WebPreferences::shouldDisplayTextDescriptions): Ditto.
766         * WebPreferences.h: Declare new methods.
767
768         * WebView.cpp:
769         (WebView::notifyPreferencesChanged): Updates WebCore settings from WebKit prefs.
770
771 2011-12-02  Steve Falkenburg  <sfalken@apple.com>
772
773         Reviewed by Darin Adler.
774
775         Changes to localStorageDatabasePath don't have any effect on Windows
776         https://bugs.webkit.org/show_bug.cgi?id=73606
777         <rdar://problem/10491296>
778
779         * WebView.cpp:
780         (WebView::notifyPreferencesChanged): Propagate local storage path change to m_page's settings.
781
782 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
783
784         Remove an unneeded argument from FrameLoaderClient::download
785         https://bugs.webkit.org/show_bug.cgi?id=73486
786
787         Reviewed by Andreas Kling.
788
789         * WebFrame.cpp:
790         (WebFrame::download):
791         * WebFrame.h:
792         Updated for the change.
793
794 2011-11-26  Pavel Feldman  <pfeldman@google.com>
795
796         Web Inspector: remove disconnectFromBackend from the protocol.
797         https://bugs.webkit.org/show_bug.cgi?id=73127
798
799         Reviewed by Yury Semikhatsky.
800
801         * WebCoreSupport/WebInspectorClient.cpp:
802         (WebInspectorClient::inspectorDestroyed):
803         (WebInspectorClient::closeInspectorFrontend):
804         * WebCoreSupport/WebInspectorClient.h:
805
806 2011-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
807
808         Unreviewed, rolling out r101193.
809         http://trac.webkit.org/changeset/101193
810         https://bugs.webkit.org/show_bug.cgi?id=73158
811
812         Breaks Windows and Qt minimal. (Requested by pfeldman on
813         #webkit).
814
815         * WebCoreSupport/WebInspectorClient.cpp:
816         (WebInspectorClient::inspectorDestroyed):
817         (WebInspectorFrontendClient::disconnectFromBackend):
818         * WebCoreSupport/WebInspectorClient.h:
819
820 2011-11-26  Pavel Feldman  <pfeldman@google.com>
821
822         Web Inspector: remove disconnectFromBackend from the protocol.
823         https://bugs.webkit.org/show_bug.cgi?id=73127
824
825         Reviewed by Yury Semikhatsky.
826
827         * WebCoreSupport/WebInspectorClient.cpp:
828         (WebInspectorClient::inspectorDestroyed):
829         (WebInspectorClient::closeInspectorFrontend):
830         * WebCoreSupport/WebInspectorClient.h:
831
832 2011-11-22  Pavel Feldman  <pfeldman@google.com>
833
834         Web Inspector: remove Inspector::bringToFront from the protocol.
835         https://bugs.webkit.org/show_bug.cgi?id=72937
836
837         Reviewed by Yury Semikhatsky.
838
839         * WebCoreSupport/WebInspectorClient.cpp:
840         (WebInspectorClient::bringFrontendToFront):
841         * WebCoreSupport/WebInspectorClient.h:
842
843 2011-11-21  Pavel Feldman  <pfeldman@google.com>
844
845         Not reviewed: an attempt to fix windows build.
846
847         * WebInspector.cpp:
848         (WebInspector::isJavaScriptProfilingEnabled):
849         (WebInspector::setJavaScriptProfilingEnabled):
850
851 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
852
853         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
854         https://bugs.webkit.org/show_bug.cgi?id=62985
855
856         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
857         methods for plumbing the menu action handlers through the WebKit and WebCore.
858         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
859         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
860         WebKit/win and WebKit2 to follow.
861
862         Reviewed by Yury Semikhatsky.
863
864         * WebInspector.cpp:
865         (WebInspector::createInstance):
866         (WebInspector::WebInspector):
867         (WebInspector::webViewClosed):
868         (WebInspector::showConsole):
869         (WebInspector::isDebuggingJavaScript):
870         (WebInspector::toggleDebuggingJavaScript):
871         (WebInspector::isProfilingJavaScript):
872         (WebInspector::toggleProfilingJavaScript):
873         (WebInspector::isJavaScriptProfilingEnabled):
874         (WebInspector::setJavaScriptProfilingEnabled):
875         (WebInspector::isTimelineProfilingEnabled):
876         (WebInspector::setTimelineProfilingEnabled):
877         * WebInspector.h:
878         * WebView.cpp:
879         (WebView::WebView):
880         (WebView::close):
881         (WebView::initWithFrame):
882         (WebView::inspector):
883         * WebView.h:
884
885 2011-10-17  Antonio Gomes  <agomes@rim.com>
886
887         Pass a Frame* parameter in EditorClient::respondToChangedSelection
888         https://bugs.webkit.org/show_bug.cgi?id=70248
889
890         Reviewed by Ryosuke Niwa.
891
892         * WebCoreSupport/WebEditorClient.cpp: Make use of the newly added Frame* parameter.
893         (WebEditorClient::respondToChangedSelection):
894         * WebCoreSupport/WebEditorClient.h:
895
896 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
897
898         Rename ReferrerPolicy to clarify its meaning
899         https://bugs.webkit.org/show_bug.cgi?id=72420
900
901         Reviewed by Nate Chapin.
902
903         * WebCoreSupport/WebContextMenuClient.cpp:
904         (WebContextMenuClient::searchWithGoogle):
905
906 2011-11-15  Anders Carlsson  <andersca@apple.com>
907
908         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
909         https://bugs.webkit.org/show_bug.cgi?id=72397
910
911         Reviewed by Dan Bernstein.
912
913         * WebCoreSupport/WebChromeClient.cpp:
914         (WebChromeClient::rootViewToScreen):
915         (WebChromeClient::screenToRootView):
916         * WebCoreSupport/WebChromeClient.h:
917
918 2011-11-14  Anders Carlsson  <andersca@apple.com>
919
920         HostWindow invalidation functions should use root view coordinates
921         https://bugs.webkit.org/show_bug.cgi?id=72338
922
923         Reviewed by Dan Bernstein.
924
925         * WebCoreSupport/WebChromeClient.cpp:
926         (WebChromeClient::invalidateRootView):
927         (WebChromeClient::invalidateContentsAndRootView):
928         * WebCoreSupport/WebChromeClient.h:
929
930 2011-11-07  Adam Barth  <abarth@webkit.org>
931
932         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
933         https://bugs.webkit.org/show_bug.cgi?id=71755
934
935         Reviewed by Eric Seidel.
936
937         * WebView.cpp:
938         (WebView::addOriginAccessWhitelistEntry):
939         (WebView::removeOriginAccessWhitelistEntry):
940         (WebView::resetOriginAccessWhitelists):
941
942 2011-11-07  Adam Barth  <abarth@webkit.org>
943
944         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
945         https://bugs.webkit.org/show_bug.cgi?id=71750
946
947         Reviewed by Eric Seidel.
948
949         * WebView.cpp:
950         (WebView::setDomainRelaxationForbiddenForURLScheme):
951
952 2011-11-07  Beth Dakin  <bdakin@apple.com>
953
954         https://bugs.webkit.org/show_bug.cgi?id=71490
955         Support uiStateTransitionProgress for scrollbars
956         -and corresponding-
957         <rdar://problem/9849612>
958
959         Reviewed by Sam Weinig.
960
961         Scrollbar::mouseUp() now takes a PlatformMouseEvent as a parameter.
962         * WebScrollBar.cpp:
963         (WebScrollBar::handleMouseEvent):
964
965 2011-11-02  Darin Adler  <darin@apple.com>
966
967         Change remaining callers of releaseRef to call leakRef
968         https://bugs.webkit.org/show_bug.cgi?id=71422
969
970         Reviewed by Darin Fisher.
971
972         * WebCache.cpp:
973         (WebCache::statistics):
974         * WebDatabaseManager.cpp:
975         (WebDatabaseManager::origins):
976         (WebDatabaseManager::databasesWithOrigin):
977         * WebHistoryItem.cpp:
978         (WebHistoryItem::redirectURLs):
979         * WebKitClassFactory.cpp:
980         (leakRefFromCreateInstance):
981         (WebKitClassFactory::CreateInstance):
982         * WebScriptWorld.cpp:
983         (WebScriptWorld::standardWorld):
984         Use leakRef.
985
986 2011-11-02  Jon Lee  <jonlee@apple.com>
987
988         Expand DragController to provide more information about the dragging session
989         https://bugs.webkit.org/show_bug.cgi?id=71324
990         <rdar://problem/10379175>
991
992         Reviewed by Darin Adler.
993
994         * WebView.cpp:
995         (WebView::DragEnter): Minor refactoring because operation is stored in
996         new DragSession struct.
997         (WebView::DragOver): Ditto.
998
999 2011-11-02  Tom Sepez  <tsepez@chromium.org>
1000
1001         XSSAuditor is silent
1002         https://bugs.webkit.org/show_bug.cgi?id=70973
1003
1004         Reviewed by Adam Barth.
1005
1006         * WebCoreSupport/WebFrameLoaderClient.cpp:
1007         (WebFrameLoaderClient::didDetectXSS):
1008         * WebCoreSupport/WebFrameLoaderClient.h:
1009
1010 2011-10-28  Jochen Eisinger  <jochen@chromium.org>
1011
1012         Rename a number of methods mentioning JavaScript to just Script instead
1013         https://bugs.webkit.org/show_bug.cgi?id=71105
1014
1015         Reviewed by Adam Barth.
1016
1017         * WebFrame.cpp:
1018         (WebFrame::dispatchDidClearWindowObjectInWorld):
1019         * WebView.cpp:
1020         (WebView::notifyPreferencesChanged):
1021
1022 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
1023
1024         Build fix: removed some cases of threadsafeCopy() that I missed in
1025         my previous patch.
1026
1027         * WebDatabaseManager.cpp:
1028         (DidModifyOriginData::dispatchToMainThread):
1029         * WebDownloadCFNet.cpp:
1030         (WebDownload::initToResumeWithBundle):
1031         * WebIconDatabase.cpp:
1032         (WebIconDatabase::didImportIconURLForPageURL):
1033
1034 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
1035
1036         threadsafeCopy has been renamed to isolatedCopy.
1037
1038         * WebDatabaseManager.cpp:
1039         (DidModifyOriginData::dispatchToMainThread):
1040
1041 2011-10-24  Adam Barth  <abarth@webkit.org>
1042
1043         Attempt to fix Windows build by updating to the new interface.
1044
1045         * DOMEventsClasses.cpp:
1046         (DOMEvent::createInstance):
1047
1048 2011-10-18  Adam Barth  <abarth@webkit.org>
1049
1050         Always enable ENABLE(XPATH)
1051         https://bugs.webkit.org/show_bug.cgi?id=70217
1052
1053         Reviewed by Eric Seidel.
1054
1055         * Interfaces/DOMWindow.idl:
1056
1057 2011-10-14  Julien Chaffraix  <jchaffraix@webkit.org>
1058
1059         Remove layerX / layerY from the Windows API
1060         https://bugs.webkit.org/show_bug.cgi?id=70051
1061
1062         Reviewed by Darin Adler.
1063
1064         Renamed layerX to unused1 and layerY to unused2 to keep the
1065         binary compatibility.
1066
1067         * DOMEventsClasses.cpp:
1068         (DOMUIEvent::unused1):
1069         (DOMUIEvent::unused2):
1070         * DOMEventsClasses.h:
1071         (DOMKeyboardEvent::unused1):
1072         (DOMKeyboardEvent::unused2):
1073         (DOMMouseEvent::unused1):
1074         (DOMMouseEvent::unused2):
1075         (DOMWheelEvent::unused1):
1076         (DOMWheelEvent::unused2):
1077         * Interfaces/DOMEvents.idl:
1078
1079 2011-10-11  Simon Fraser  <simon.fraser@apple.com>
1080
1081         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
1082         https://bugs.webkit.org/show_bug.cgi?id=68134
1083
1084         Reviewed by Darin Adler.
1085
1086         Use ScrollbarThemeMock when the setting to use mock scrollbars is enabled.
1087         
1088         Make ScrollbarTheme::nativeTheme() private, and add a new static theme() method
1089         that reads the setting, and returns the mock theme if set. All callers now use
1090         theme() rther than nativeTheme(). Add the new ScrollbarTheme.cpp file to the build.
1091
1092         * WebScrollBar.cpp:
1093         (WebScrollBar::requestedWidth):
1094         (WebScrollBar::requestedHeight):
1095         * WebView.cpp:
1096         (WebView::WebViewWndProc):
1097
1098 2011-10-03  Anders Carlsson  <andersca@apple.com>
1099
1100         Remove custom scrollbar painting hooks
1101         https://bugs.webkit.org/show_bug.cgi?id=69163
1102
1103         Reviewed by Alexey Proskuryakov.
1104
1105         Remove now unused WebPreferences and ChromeClient overrides.
1106
1107         * Interfaces/IWebPreferences.idl:
1108         * WebCoreSupport/WebChromeClient.cpp:
1109         * WebCoreSupport/WebChromeClient.h:
1110         * WebPreferenceKeysPrivate.h:
1111         * WebPreferences.cpp:
1112         (WebPreferences::unused3):
1113         (WebPreferences::unused4):
1114         * WebPreferences.h:
1115         * WebView.cpp:
1116         (WebView::notifyPreferencesChanged):
1117
1118 2011-09-23  Adam Roben  <aroben@apple.com>
1119
1120         Remove WebKitAPITest
1121
1122         WebKit part of <http://webkit.org/b/66560> WebKitAPITest and TestWebKitAPI have duplicate
1123         functionality (and names!)
1124
1125         Reviewed by Anders Carlsson.
1126
1127         * WebKit.vcproj/WebKit.sln: Removed WebKitAPITest.vcproj. Changed WebKitLauncherWin, which
1128         formerly depended on WebKitAPITest, to now depend on DumpRenderTree, which WebKitAPITest
1129         depended on.
1130
1131 2011-09-24  Adam Barth  <abarth@webkit.org>
1132
1133         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
1134         https://bugs.webkit.org/show_bug.cgi?id=68767
1135
1136         Reviewed by Eric Seidel.
1137
1138         * WebCoreSupport/WebChromeClient.cpp:
1139         (WebChromeClient::reachedApplicationCacheOriginQuota):
1140         * WebCoreSupport/WebChromeClient.h:
1141
1142 2011-09-22  Adam Roben  <aroben@apple.com>
1143
1144         Remove FindSafari from all our .sln files
1145
1146         It isn't used anymore, so there's no point in building it.
1147
1148         Part of <http://webkit.org/b/68628> Remove FindSafari
1149
1150         Reviewed by Steve Falkenburg.
1151
1152         * WebKit.vcproj/WebKit.sln: Also relinearized the build order while I was at it.
1153
1154 2011-09-22  Adam Roben  <aroben@apple.com>
1155
1156         Add testRegExp.vcproj to WebKit.sln
1157
1158         Fixes <http://webkit.org/b/68403> Windows bots don't build testRegExp.vcproj
1159
1160         Reviewed by Brian Weinstein.
1161
1162         * WebKit.vcproj/WebKit.sln: Added testRegExp. Made it build just after jsc, just like it
1163         does when built as part of JavaScriptCore.sln.
1164
1165 2011-09-21  Steve Falkenburg  <sfalken@apple.com>
1166
1167         Branch builds don't launch on Windows when run against trunk WebKit
1168         https://bugs.webkit.org/show_bug.cgi?id=68546
1169
1170         Reviewed by Darin Adler.
1171
1172         * Interfaces/IWebPreferences.idl: Swap avFoundation and pictographicFontFamily
1173         in IDL for binary compatibility between branch and trunk.
1174
1175 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
1176
1177         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
1178         https://bugs.webkit.org/show_bug.cgi?id=67702
1179
1180         Reviewed by Csaba Osztrogonác.
1181
1182         * WebCoreSupport/WebPlatformStrategies.cpp: Modify to match new prototype.
1183         (WebPlatformStrategies::isLinkVisited):
1184         * WebCoreSupport/WebPlatformStrategies.h: Ditto.
1185
1186 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
1187
1188         FrameLoaderClient BackForwardList-related methods are unsued
1189         https://bugs.webkit.org/show_bug.cgi?id=68293
1190
1191         Reviewed by Darin Adler.
1192
1193         Remove FrameLoaderClient methods that were added by r51629, since only        
1194         the old (since-deleted) Android port needed them.
1195
1196         * WebCoreSupport/WebFrameLoaderClient.cpp:
1197         * WebCoreSupport/WebFrameLoaderClient.h:
1198
1199 2011-09-15  Adam Barth  <abarth@webkit.org>
1200
1201         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
1202         https://bugs.webkit.org/show_bug.cgi?id=68205
1203
1204         Reviewed by Eric Seidel.
1205
1206         * ForEachCoClass.h:
1207         * WebCoreSupport/WebChromeClient.cpp:
1208         * WebCoreSupport/WebChromeClient.h:
1209         * WebDatabaseManager.cpp:
1210         * WebDatabaseManager.h:
1211         * WebSecurityOrigin.cpp:
1212         (WebSecurityOrigin::usage):
1213         (WebSecurityOrigin::quota):
1214         (WebSecurityOrigin::setQuota):
1215         * WebView.cpp:
1216         (WebView::initWithFrame):
1217         (WebView::notifyPreferencesChanged):
1218
1219 2011-09-15  Kentaro Hara  <haraken@google.com>
1220
1221         A single line must not be split into two pages.
1222         https://bugs.webkit.org/show_bug.cgi?id=65005
1223
1224         Reviewed by David Hyatt.
1225
1226         When the document width of a page is overflowed, the last line of the page can be
1227         split into the next page. This is the regression caused by r88737. r88737 tried to
1228         fix rounding errors in rendering calculations by expanding and shrinking a page
1229         using one common method, resizePageRectsKeepingRatio(), but overlooked the case where
1230         a document width gets overflowed.
1231
1232         Test: printing/single-line-must-not-be-split-into-two-pages.html
1233
1234         * WebFrame.cpp:
1235         (WebFrame::setPrinting): Passes an original page size to setPrinting().
1236         (WebFrame::setInPrintingMode): Ditto.
1237         * WebFrame.h:
1238
1239 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
1240
1241         Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
1242         https://bugs.webkit.org/show_bug.cgi?id=67569
1243
1244         Reviewed by Antonio Gomes.
1245
1246         * WebView.cpp:
1247         (WebView::resetIME):
1248
1249 2011-08-29  Alexey Proskuryakov  <ap@apple.com>
1250
1251         DumpRenderTree should begin each test with an empty cookie store
1252         https://bugs.webkit.org/show_bug.cgi?id=63545
1253         <rdar://problem/5666907>
1254
1255         Reviewed by Darin Adler.
1256
1257         * WebCookieManagerCFNet.cpp:
1258         (WebCookieManager::cookieStorage):
1259         (WebCookieManager::setCookieStorage):
1260         Changed the API to work with new functions in WebCore. It's a bit ugly, because cookieStorage()
1261         returns an unretained reference, which we cannot provide any more, but it should not be a
1262         practical issue.
1263
1264         * WebView.cpp: (updateSharedSettingsFromPreferencesIfNeeded): Updated to use currentCFHTTPCookieStorage()
1265         instead of currentCookieStorage().
1266
1267 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1268
1269         The unused ScrollView* argument can and should be removed from
1270         scrollRectIntoView.
1271         https://bugs.webkit.org/show_bug.cgi?id=67117
1272
1273         Reviewed by Darin Adler.
1274
1275         * WebCoreSupport/WebChromeClient.h:
1276         (WebChromeClient::scrollRectIntoView):
1277
1278 2011-08-29  Ryosuke Niwa  <rniwa@webkit.org>
1279
1280         Move setInnerTextValue from RenderTextControl to HTMLTextFormControlElement
1281         https://bugs.webkit.org/show_bug.cgi?id=67152
1282
1283         Reviewed by Darin Adler.
1284
1285         Updated call sites of lastChangeWasUserEdit since it's moved from RenderTextControl
1286         to HTMLTextFormControlElement.
1287
1288         * DOMHTMLClasses.cpp:
1289         (DOMHTMLInputElement::isUserEdited):
1290         (DOMHTMLTextAreaElement::isUserEdited):
1291
1292 2011-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
1293
1294         Unreviewed, rolling out r93987, r93992, r93995, r93998, and
1295         r93999.
1296         http://trac.webkit.org/changeset/93987
1297         http://trac.webkit.org/changeset/93992
1298         http://trac.webkit.org/changeset/93995
1299         http://trac.webkit.org/changeset/93998
1300         http://trac.webkit.org/changeset/93999
1301         https://bugs.webkit.org/show_bug.cgi?id=67147
1302
1303         Many failing tests (Requested by ap on #webkit).
1304
1305         * WebCookieManagerCFNet.cpp:
1306         (WebCookieManager::cookieStorage):
1307         (WebCookieManager::setCookieStorage):
1308         * WebView.cpp:
1309         (updateSharedSettingsFromPreferencesIfNeeded):
1310
1311 2011-08-29  Alexey Proskuryakov  <ap@apple.com>
1312
1313         Windows build fix.
1314
1315         * WebView.cpp:
1316         (updateSharedSettingsFromPreferencesIfNeeded):
1317         Updated for new function name and signature: currentCFHTTPCookieStorage().
1318
1319 2011-08-26  Alexey Proskuryakov  <ap@apple.com>
1320
1321         DumpRenderTree should begin each test with an empty cookie store
1322         https://bugs.webkit.org/show_bug.cgi?id=63545
1323         <rdar://problem/5666907>
1324
1325         Reviewed by Darin Adler.
1326
1327         * WebCookieManagerCFNet.cpp:
1328         (WebCookieManager::cookieStorage):
1329         (WebCookieManager::setCookieStorage):
1330         Changed the API to work with new functions in WebCore. It's a bit ugly, because cookieStorage()
1331         returns an unretained reference, which we cannot provide any more, but it should not be a
1332         practical issue.
1333
1334 2011-08-17  Adam Roben  <aroben@apple.com>
1335
1336         Make WebCore keep track of the current device scale factor
1337
1338         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
1339         device scale factor
1340
1341         Reviewed by Darin Adler.
1342
1343         * WebCoreSupport/WebChromeClient.cpp:
1344         * WebCoreSupport/WebChromeClient.h:
1345         Removed deviceScaleFactor.
1346
1347 2011-08-15  Dmitry Titov  <dimich@chromium.org>
1348
1349         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
1350         https://bugs.webkit.org/show_bug.cgi?id=66165
1351
1352         Reviewed by Darin Fisher.
1353
1354         * WebCoreSupport/WebFrameLoaderClient.cpp:
1355         (WebFrameLoaderClient::transferLoadingResourceFromPage):
1356         * WebCoreSupport/WebFrameLoaderClient.h:
1357
1358 2011-08-15  Adam Roben  <aroben@apple.com>
1359
1360         Touch a file to trigger a Windows build
1361
1362         I'm trying to ferret out some issues with our Debug builder.
1363
1364         * WebView.cpp: Sorted #includes.
1365
1366 2011-08-10  Adam Roben  <aroben@apple.com>
1367
1368         Clear up scale factor terminology
1369
1370         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
1371         software is running, and one that is per-Page and can be controlled via API calls. This
1372         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
1373         code use those names. It should introduce no behavior changes.
1374
1375         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
1376         device scale factor
1377
1378         Reviewed by Simon Fraser.
1379
1380         * WebCoreSupport/WebChromeClient.cpp:
1381         * WebCoreSupport/WebChromeClient.h:
1382
1383 2011-08-13  Dan Bernstein  <mitz@apple.com>
1384
1385         Changed the value of WebKitShowsToolTipOverTruncatedTextPreferenceKey to match the naming everywhere else.
1386
1387         Reviewed by Joseph Pecoraro.
1388
1389         * WebPreferenceKeysPrivate.h:
1390
1391 2011-08-13  Dan Bernstein  <mitz@apple.com>
1392
1393         Build fix.
1394
1395         * WebView.cpp:
1396         (WebView::notifyPreferencesChanged):
1397
1398 2011-08-12  Dan Bernstein  <mitz@apple.com>
1399
1400         Add an option to automatically show tooltips (with the full text) over truncated text
1401         https://bugs.webkit.org/show_bug.cgi?id=66178
1402
1403         Reviewed by Simon Fraser.
1404
1405         * Interfaces/IWebPreferencesPrivate.idl: Added accessors.
1406         * WebPreferenceKeysPrivate.h: Defined a preference key.
1407         * WebPreferences.cpp:
1408         (WebPreferences::initializeDefaultSettings): Added a default value of
1409         false for the ShowsToolTipOverTruncatedText preference.
1410         (WebPreferences::showsToolTipOverTruncatedText): Added this getter.
1411         (WebPreferences::setShowsToolTipOverTruncatedText): Added this setter.
1412         * WebPreferences.h:
1413         * WebView.cpp:
1414         (WebView::notifyPreferencesChanged): Added call to Settings::setShowsToolTipOverTruncatedText().
1415
1416 2011-08-05  Brent Fulgham  <bfulgham@webkit.org>
1417
1418         WebView::performLayeredWindowUpdate() crashes with
1419         NULL pointer when using layered window updates.
1420         https://bugs.webkit.org/show_bug.cgi?id=60618
1421
1422         Reviewed by Adam Roben.
1423
1424         During resize operations, the backing store will be destroyed if
1425         the window's size (either height or width) is set to zero. The
1426         bug was identified when a user first resized a WebView to zero
1427         dimensions, then attempted to perform a MoveWindow. The paint
1428         message triggered by the MoveWindow attempted to use the layered
1429         window update logic, which encountered the nulled backing store.
1430
1431         * WebView.cpp:
1432         (WebView::performLayeredWindowUpdate): Add an early
1433          return when there is no backing store to blend with.
1434
1435 2011-08-05  Anders Carlsson  <andersca@apple.com>
1436
1437         Remove PluginHalter
1438         https://bugs.webkit.org/show_bug.cgi?id=65729
1439
1440         Reviewed by Darin Adler.
1441
1442         Remove plug-in halter and associated classes.
1443
1444         * Interfaces/IWebPluginHalterDelegate.idl: Removed.
1445         * Interfaces/IWebPreferencesPrivate.idl:
1446         * Interfaces/IWebViewPrivate.idl:
1447         * Interfaces/WebKit.idl:
1448         * WebCoreSupport/WebPluginHalterClient.cpp: Removed.
1449         * WebCoreSupport/WebPluginHalterClient.h: Removed.
1450         * WebKit.vcproj/Interfaces.vcproj:
1451         * WebKit.vcproj/WebKit.vcproj:
1452         * WebPreferenceKeysPrivate.h:
1453         * WebPreferences.cpp:
1454         (WebPreferences::initializeDefaultSettings):
1455         * WebPreferences.h:
1456         * WebView.cpp:
1457         (WebView::close):
1458         (WebView::initWithFrame):
1459         (WebView::notifyPreferencesChanged):
1460         (WebView::unused1):
1461         (WebView::unused2):
1462         (WebView::unused3):
1463         (WebView::unused4):
1464         (WebView::unused5):
1465         * WebView.h:
1466
1467 2011-08-04  Jeff Miller  <jeffm@apple.com>
1468
1469         Add support for setting and getting whether AVFoundation is enabled to IWebPreferences
1470         https://bugs.webkit.org/show_bug.cgi?id=65718
1471
1472         Reviewed by Adam Roben.
1473
1474         * Interfaces/IWebPreferences.idl: Added setAVFoundationEnabled() and avFoundationEnabled().
1475
1476         * WebPreferenceKeysPrivate.h: Added WebKitAVFoundationEnabledPreferenceKey.
1477
1478         * WebPreferences.cpp:
1479         (WebPreferences::avFoundationEnabled): Added.
1480         (WebPreferences::setAVFoundationEnabled): Added.
1481
1482         * WebPreferences.h: Added setAVFoundationEnabled() and avFoundationEnabled().
1483
1484         * WebView.cpp:
1485         (WebView::notifyPreferencesChanged): Keep settings for AVFoundation being enabled in sync.
1486
1487 2011-08-03  Kent Tamura  <tkent@chromium.org>
1488
1489         [Windows] Fix build without ENABLE_VIDEO.
1490
1491         * WebView.cpp:
1492         (WebView::enterFullscreenForNode):
1493
1494 2011-08-03  Kent Tamura  <tkent@chromium.org>
1495
1496         Fix incorrect checks for HTMLMediaElement
1497         https://bugs.webkit.org/show_bug.cgi?id=65590
1498
1499         Reviewed by Dimitri Glazkov.
1500
1501         <video> and <audio> can be an HTMLElement instance instead of
1502         HTMLMediaElement if MediaPlayer::isAvailable() returns false or
1503         the media feature is disabled at runtime.
1504
1505         * WebView.cpp:
1506         (WebView::enterFullscreenForNode):
1507
1508 2011-08-03  Joseph Pecoraro  <joepeck@webkit.org>
1509
1510         Web Inspector: Remove InspectorFrontendHost load/saveSessionSetting
1511         https://bugs.webkit.org/show_bug.cgi?id=65582
1512
1513         Reviewed by Pavel Feldman.
1514
1515         * WebCoreSupport/WebInspectorClient.cpp:
1516         * WebCoreSupport/WebInspectorClient.h:
1517
1518 2011-08-03  Adam Roben  <aroben@apple.com>
1519
1520         Windows nightly build fix after r91777
1521
1522         * Interfaces/IWebPreferences.idl: Moved [set]PictographFontFamily to the end of the
1523         interface to maintain binary compatibility with Safari 5.1.
1524
1525 2011-08-03  Pavel Feldman  <pfeldman@google.com>
1526
1527         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
1528         https://bugs.webkit.org/show_bug.cgi?id=65510
1529
1530         Reviewed by Yury Semikhatsky.
1531
1532         * WebNodeHighlight.cpp:
1533         (WebNodeHighlight::update):
1534
1535 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
1536
1537         Web Inspector: remove Node parameter from the InspectorClient::highlight
1538         https://bugs.webkit.org/show_bug.cgi?id=65549
1539
1540         Reviewed by Yury Semikhatsky.
1541
1542         * WebCoreSupport/WebInspectorClient.cpp:
1543         (WebInspectorClient::highlight):
1544         * WebCoreSupport/WebInspectorClient.h:
1545
1546 2011-07-31  Daniel Bates  <dbates@webkit.org>
1547
1548         Attempt to fix the WinCairo Debug build after r92059 (https://bugs.webkit.org/show_bug.cgi?id=65419).
1549
1550         * WebKit.vcproj/WebKit_Cairo.def: Export some symbols.
1551         * WebKit.vcproj/WebKit_Cairo_debug.def: Ditto.
1552
1553 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
1554
1555         Remove inclusion of MainThread.h from Threading.h
1556         https://bugs.webkit.org/show_bug.cgi?id=65081
1557
1558         Reviewed by Darin Adler.
1559
1560         Add missing include statements for MainThread.
1561
1562         * WebKitClassFactory.cpp:
1563         * WebView.cpp:
1564
1565 2011-07-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1566
1567         Add support for download='filename' attribute in anchors.
1568         https://bugs.webkit.org/show_bug.cgi?id=64580
1569
1570         Reviewed by Adam Barth.
1571
1572         * WebFrame.cpp:
1573         (WebFrame::startDownload):
1574         * WebFrame.h:
1575
1576 2011-07-26  Dan Bernstein  <mitz@apple.com>
1577
1578         <rdar://problem/9842889> Add a generic pictograph font family
1579         https://bugs.webkit.org/show_bug.cgi?id=65197
1580
1581         Reviewed by Anders Carlsson.
1582
1583         * Interfaces/IWebPreferences.idl: Added pictographFontFamily() and
1584         setPictographFontFamily().
1585         * WebPreferenceKeysPrivate.h: Added WebKitPictographFontPreferenceKey.
1586         * WebPreferences.cpp:
1587         (WebPreferences::initializeDefaultSettings): Initialize the pictograph font
1588         preference to "Times New Roman".
1589         (WebPreferences::pictographFontFamily): Added this getter.
1590         (WebPreferences::setPictographFontFamily): Added this setter.
1591         * WebPreferences.h:
1592         * WebView.cpp:
1593         (WebView::notifyPreferencesChanged): Pass the preference value through to
1594         WebCore.
1595
1596 2011-07-18  Dean Jackson  <dino@apple.com>
1597
1598         https://bugs.webkit.org/show_bug.cgi?id=64742
1599         Expose WebPreferences for media playback requiring user gestures and inline playback
1600
1601         Reviewed by Simon Fraser.
1602
1603         Two new WebPreferences: MediaPlaybackRequiresUserGesture and
1604         MediaPlaybackAllowsInline.
1605
1606         * Interfaces/IWebPreferencesPrivate.idl:
1607         * WebPreferenceKeysPrivate.h:
1608         * WebPreferences.cpp:
1609         (WebPreferences::initializeDefaultSettings):
1610         (WebPreferences::setMediaPlaybackRequiresUserGesture):
1611         (WebPreferences::mediaPlaybackRequiresUserGesture):
1612         (WebPreferences::setMediaPlaybackAllowsInline):
1613         (WebPreferences::mediaPlaybackAllowsInline):
1614         * WebPreferences.h:
1615         * WebView.cpp:
1616         (WebView::notifyPreferencesChanged):
1617
1618 2011-07-16  Simon Fraser  <simon.fraser@apple.com>
1619
1620         Add code to attempt to align compositing layers to pixel boundaries when page scale changes
1621         https://bugs.webkit.org/show_bug.cgi?id=64658
1622
1623         Reviewed by Dan Bernstein.
1624
1625         Removed implementations of backingScaleFactor() and pageScaleFactor() now
1626         that GraphicsLayerClient has default implementations.
1627
1628         * WebView.h:
1629
1630 2011-07-15  Simon Fraser  <simon.fraser@apple.com>
1631
1632         Fix Windows build.
1633         
1634         * WebView.h:
1635         (WebView::backingScaleFactor):
1636         (WebView::pageScaleFactor):
1637
1638 2011-07-15  Dan Bernstein  <mitz@apple.com>
1639
1640         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
1641         https://bugs.webkit.org/show_bug.cgi?id=64615
1642
1643         Reviewed by Anders Carlsson.
1644
1645         * WebCoreSupport/WebChromeClient.cpp:
1646         (WebChromeClient::setCursorHiddenUntilMouseMoves): Added this stub.
1647         * WebCoreSupport/WebChromeClient.h:
1648
1649 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
1650
1651         ApplicationCache update should not immediately fail when reaching per-origin quota
1652         https://bugs.webkit.org/show_bug.cgi?id=64177
1653
1654         Reviewed by Alexey Proskuryakov.
1655
1656         * WebCoreSupport/WebChromeClient.cpp:
1657         (WebChromeClient::reachedApplicationCacheOriginQuota):
1658         * WebCoreSupport/WebChromeClient.h:
1659
1660 2011-07-11  Hironori Bono  <hbono@chromium.org>
1661
1662         Reviewed by Adam Roben.
1663
1664         Implement layoutTestController.setTextDirection for WebKit2 and Windows.
1665         https://bugs.webkit.org/show_bug.cgi?id=61931
1666
1667         This change implements layoutTextController.setTextDirection for WebKit2
1668         and Windows so we can run a layout test added by r87770 on them. Each
1669         implementation adds a wrapper function for Editor::setBaseWritingDirection()
1670         so LayoutTestController can call it.
1671
1672         * Interfaces/IWebFramePrivate.idl: Added setTextDirection to allow
1673         LayoutTestController to change the text direction.
1674         * WebFrame.cpp: ditto.
1675         (WebFrame::setTextDirection):
1676         * WebFrame.h: ditto.
1677
1678 2011-07-08  Chang Shu  <cshu@webkit.org>
1679
1680         Update calling sites after function renamed.
1681         https://bugs.webkit.org/show_bug.cgi?id=59114
1682
1683         Reviewed by Alexey Proskuryakov.
1684
1685         * WebKitGraphics.cpp:
1686         (WebDrawText):
1687
1688 2011-06-30  Anders Carlsson  <andersca@apple.com>
1689
1690         Reviewed by Dan Bernstein.
1691
1692         More ScrollableArea scaffolding
1693         https://bugs.webkit.org/show_bug.cgi?id=63678
1694
1695         * WebScrollBar.h:
1696         (WebScrollBar::enclosingScrollableArea):
1697         Always return 0, WebScrollbar has no concept of an enclosing scrollable area.
1698
1699 2011-06-28  Ilya Sherman  <isherman@chromium.org>
1700
1701         Reviewed by Adam Barth.
1702
1703         form.autocomplete="off" does not work
1704         https://bugs.webkit.org/show_bug.cgi?id=35823
1705
1706         * WebFrame.cpp:
1707         (WebFrame::elementDoesAutoComplete): Updated callsite.
1708
1709 2011-06-27  Brent Fulgham  <bfulgham@webkit.org>
1710
1711         Reviewed by Adam Roben.
1712
1713         Avoid attempt to create a zero-size DIB.
1714         https://bugs.webkit.org/show_bug.cgi?id=63484.
1715
1716         * WebNodeHighlight.cpp:
1717         (WebNodeHighlight::update): Check for zero-height (or zero-width)
1718         region for DIB, and exit early if attempting to create a zero-size
1719         DIB/BITMAP.
1720
1721 2011-06-24  Dan Bernstein  <mitz@apple.com>
1722
1723         Reviewed by Anders Carlsson.
1724
1725         Add an option to enable legacy rounding hacks
1726         https://bugs.webkit.org/show_bug.cgi?id=63363
1727
1728         * WebKitGraphics.cpp:
1729         (CenterTruncateStringToWidth): Enabled rounding hacks in the string truncator.
1730         (RightTruncateStringToWidth): Ditto.
1731
1732 2011-06-24  Yuta Kitamura  <yutak@chromium.org>
1733
1734         Reviewed by Adam Barth.
1735
1736         WebSocket: Add run-time flag for new HyBi protocol
1737         https://bugs.webkit.org/show_bug.cgi?id=60348
1738
1739         Make a new flag (Setting::m_useHixie76WebSocketProtocol)
1740         switchable from WebView and WebPreferences.
1741
1742         * Interfaces/IWebPreferencesPrivate.idl:
1743         * WebPreferenceKeysPrivate.h:
1744         * WebPreferences.cpp:
1745         (WebPreferences::initializeDefaultSettings):
1746         (WebPreferences::setHixie76WebSocketProtocolEnabled):
1747         (WebPreferences::hixie76WebSocketProtocolEnabled):
1748         * WebPreferences.h:
1749         * WebView.cpp:
1750         (WebView::notifyPreferencesChanged):
1751
1752 2011-06-22  Dominic Cooney  <dominicc@chromium.org>
1753
1754         Reviewed by Mark Rowe.
1755
1756         Add window.internals to WebKit2's WebKitTestRunner.
1757         https://bugs.webkit.org/show_bug.cgi?id=61073
1758
1759         * WebKit.vcproj/WebKit.sln: InjectedBundle depends on WebCoreTestSupport
1760
1761 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
1762
1763         Reviewed by Kent Tamura.
1764
1765         FileChooser should be only created when we need to choose files.
1766         https://bugs.webkit.org/show_bug.cgi?id=63039
1767
1768         * WebCoreSupport/WebChromeClient.cpp:
1769         (WebChromeClient::runOpenPanel): Changed to use settings.
1770
1771 2011-06-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1772
1773         Unreviewed, rolling out r89354.
1774         http://trac.webkit.org/changeset/89354
1775         https://bugs.webkit.org/show_bug.cgi?id=63099
1776
1777         Broke tests on Mac (Requested by rniwa on #webkit).
1778
1779         * WebCoreSupport/WebInspectorClient.cpp:
1780         (WebInspectorClient::WebInspectorClient):
1781         (WebInspectorClient::openInspectorFrontend):
1782         (WebInspectorFrontendClient::destroyInspectorView):
1783         * WebCoreSupport/WebInspectorClient.h:
1784         * WebInspector.cpp:
1785         (WebInspector::createInstance):
1786         (WebInspector::WebInspector):
1787         (WebInspector::webViewClosed):
1788         (WebInspector::showConsole):
1789         (WebInspector::isDebuggingJavaScript):
1790         (WebInspector::toggleDebuggingJavaScript):
1791         (WebInspector::isProfilingJavaScript):
1792         (WebInspector::toggleProfilingJavaScript):
1793         (WebInspector::isJavaScriptProfilingEnabled):
1794         (WebInspector::setJavaScriptProfilingEnabled):
1795         (WebInspector::isTimelineProfilingEnabled):
1796         (WebInspector::setTimelineProfilingEnabled):
1797         * WebInspector.h:
1798         * WebView.cpp:
1799         (WebView::WebView):
1800         (WebView::close):
1801         (WebView::initWithFrame):
1802         (WebView::inspector):
1803         * WebView.h:
1804
1805 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
1806
1807         Reviewed by Yury Semikhatsky.
1808
1809         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
1810         https://bugs.webkit.org/show_bug.cgi?id=62985
1811
1812         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
1813         methods for plumbing the menu action handlers through the WebKit and WebCore.
1814         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
1815         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
1816         WebKit/win and WebKit2 to follow.
1817
1818         * WebInspector.cpp:
1819         (WebInspector::createInstance):
1820         (WebInspector::WebInspector):
1821         (WebInspector::webViewClosed):
1822         (WebInspector::showConsole):
1823         (WebInspector::isDebuggingJavaScript):
1824         (WebInspector::toggleDebuggingJavaScript):
1825         (WebInspector::isProfilingJavaScript):
1826         (WebInspector::toggleProfilingJavaScript):
1827         (WebInspector::isJavaScriptProfilingEnabled):
1828         (WebInspector::setJavaScriptProfilingEnabled):
1829         (WebInspector::isTimelineProfilingEnabled):
1830         (WebInspector::setTimelineProfilingEnabled):
1831         * WebInspector.h:
1832         * WebView.cpp:
1833         (WebView::WebView):
1834         (WebView::close):
1835         (WebView::initWithFrame):
1836         (WebView::inspector):
1837         * WebView.h:
1838
1839 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
1840
1841         Reviewed by Darin Adler.
1842
1843         Separate concerns of loading file icons and choosing files.
1844         https://bugs.webkit.org/show_bug.cgi?id=62931
1845
1846         * WebCoreSupport/WebChromeClient.cpp:
1847         (WebChromeClient::loadIconForFiles): Renamed.
1848         * WebCoreSupport/WebChromeClient.h:
1849
1850 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
1851
1852         Unreviewed, rolling out r89026.
1853         http://trac.webkit.org/changeset/89026
1854         https://bugs.webkit.org/show_bug.cgi?id=62804
1855
1856         These patches were likely correct.  I'll investigate the
1857         browser_test failures. (Requested by abarth on #webkit).
1858
1859         * FullscreenVideoController.cpp:
1860         (FullscreenVideoController::play):
1861         (FullscreenVideoController::pause):
1862
1863 2011-06-16  Vitaly Repeshko  <vitalyr@chromium.org>
1864
1865         Unreviewed.
1866
1867         Revert Adam's user gesture patch series r89002, r89005, r89007, r89018
1868         https://bugs.webkit.org/show_bug.cgi?id=62796
1869
1870         The patches broke chromium browser tests.
1871
1872         * FullscreenVideoController.cpp:
1873         (FullscreenVideoController::play):
1874         (FullscreenVideoController::pause):
1875
1876 2011-06-16  Adam Barth  <abarth@webkit.org>
1877
1878         Reviewed by Eric Seidel.
1879
1880         Remove HTMLVideoElement::processingUserGesture
1881         https://bugs.webkit.org/show_bug.cgi?id=62784
1882
1883         * FullscreenVideoController.cpp:
1884         (FullscreenVideoController::play):
1885         (FullscreenVideoController::pause):
1886
1887 2011-06-13  Kentaro Hara  <haraken@google.com>
1888
1889         Reviewed by Alexey Proskuryakov.
1890
1891         Add resizePageRectsKeepingRatio(), which expands/shrinks a page, keeping the ratio of the original page
1892         https://bugs.webkit.org/show_bug.cgi?id=61256
1893
1894         In order to prevent rounding error caused by expanding/shrinking a page
1895         using different calculation here and there, I added a common calculation
1896         method, resizePageRectsKeepingRatio(), which expands/shrinks a page,
1897         keeping the ratio of width and height of the original page.
1898         WebFrame::setInPrintingMode() uses resizePageRectsKeepingRatio() to
1899         expand/shrink a page.
1900
1901         Test: printing/page-count-with-one-word.html
1902
1903         * WebFrame.cpp:
1904         (WebFrame::setPrinting):
1905         (WebFrame::setInPrintingMode):
1906         * WebFrame.h:
1907
1908 2011-06-12  MORITA Hajime  <morrita@google.com>
1909
1910         Unreviewed, rolling out r88625.
1911         http://trac.webkit.org/changeset/88625
1912         https://bugs.webkit.org/show_bug.cgi?id=61073
1913
1914         Breaks SL Webkit2 Tests
1915
1916         * WebKit.vcproj/WebKit.sln:
1917
1918 2011-06-12  Adam Barth  <abarth@webkit.org>
1919
1920         Reviewed by Alexey Proskuryakov.
1921
1922         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
1923         https://bugs.webkit.org/show_bug.cgi?id=62516
1924
1925         * WebFrame.cpp:
1926         (WebFrame::interruptedForPolicyChangeError):
1927         * WebFrame.h:
1928
1929 2011-06-12  Dominic Cooney  <dominicc@chromium.org>
1930
1931         Reviewed by Hajime Morita.
1932
1933         Add window.internals to WebKit2's WebKitTestRunner.
1934         https://bugs.webkit.org/show_bug.cgi?id=61073
1935
1936         * WebKit.vcproj/WebKit.sln: InjectedBundle depends on WebCoreTestSupport
1937
1938 2011-06-12  Adam Barth  <abarth@webkit.org>
1939
1940         Reviewed by Alexey Proskuryakov.
1941
1942         Remove trival "forward-to-client" member functions from FrameLoader
1943         https://bugs.webkit.org/show_bug.cgi?id=62510
1944
1945         * WebCoreSupport/WebFrameNetworkingContext.cpp:
1946         (WebFrameNetworkingContext::blockedError):
1947
1948 2011-06-06  Michael Saboff  <msaboff@apple.com>
1949
1950         Reviewed by Geoffrey Garen.
1951
1952         Fonts returned by FontCache::getFontDataForCharacters() are never released
1953         https://bugs.webkit.org/show_bug.cgi?id=61875
1954
1955         This change allows fonts allocated as system fallback fonts to be
1956         released.  Previously, the reference counts for these fonts grew
1957         without bound.  This is implemented as an auto release class that wraps
1958         accesses to the cache for system fallback fonts. All such accesses are
1959         via the method FontCache::getFontDataForCharacters. The new class is
1960         called FontCachePurgePreventer. When such an object exists, it protects
1961         these fonts from deletion.
1962
1963         See more comments for this defect in Source/WebCore/ChangeLog.
1964
1965         * WebKitGraphics.cpp:
1966         (CenterTruncateStringToWidth):
1967         (RightTruncateStringToWidth):
1968         Wrapped code accessing fallback fonts with local
1969         FontCachePurgePreventer in these methods.
1970
1971 2011-06-04  Dominic Cooney  <dominicc@chromium.org>
1972
1973         Reviewed by Dimitri Glazkov.
1974
1975         Add WebCoreTestSupport project containing window.internals.
1976         https://bugs.webkit.org/show_bug.cgi?id=61076
1977
1978         * WebKit.vcproj/WebKit.sln:
1979
1980 2011-05-18  Anthony Johnson <anthony.johnson@flexsim.com>
1981
1982         Reviewed by Brent Fulgham.
1983
1984         Implement the ability to add C++ event listeners to html dom
1985         elements and dom window. 
1986         https://bugs.webkit.org/show_bug.cgi?id=60269
1987
1988         * DOMCoreClasses.cpp: Add new DOMWindow class and implementations.
1989         (DOMNode::QueryInterface): Report that the DOMNode implements
1990          the IDomEventTarget interface.
1991         (DOMNode::addEventListener): Add implementation of a COM-based
1992          event listener.
1993         (DOMNode::removeEventListener):
1994         (DOMNode::dispatchEvent): 
1995         (DOMDocument::createInstance):
1996         (DOMWindow::QueryInterface): New implementation.
1997         (DOMWindow::document): New implementation.
1998         (DOMWindow::getComputedStyle): Stub.
1999         (DOMWindow::getMatchedCSSRules): Stub.
2000         (DOMWindow::devicePixelRatio): Stub.
2001         (DOMWindow::addEventListener): New implementation.
2002         (DOMWindow::removeEventListener): New implementation.
2003         (DOMWindow::dispatchEvent): New implementation.
2004         (DOMWindow::DOMWindow): New implementation.
2005         (DOMWindow::~DOMWindow): New implementation.
2006         (DOMWindow::createInstance): New implementation.
2007         * DOMCoreClasses.h: Add new DOMWindow class and declarations.
2008         (DOMWindow::AddRef): New declaration.
2009         (DOMWindow::Release): New declaration.
2010         (DOMWindow::throwException): New declaration.
2011         (DOMWindow::callWebScriptMethod): New declaration.
2012         (DOMWindow::evaluateWebScript): New declaration.
2013         (DOMWindow::removeWebScriptKey): New declaration.
2014         (DOMWindow::stringRepresentation): New declaration.
2015         (DOMWindow::webScriptValueAtIndex): New declaration.
2016         (DOMWindow::setWebScriptValueAtIndex): New declaration.
2017         (DOMWindow::setException): New declaration.
2018         (DOMWindow::window): New declaration.
2019         * DOMEventsClasses.cpp: Add new WebEventListener and implementation.
2020         (DOMEventListener::handleEvent): New implementation.
2021         (WebEventListener::WebEventListener): New implementation.
2022         (WebEventListener::~WebEventListener): New implementation.
2023         (WebEventListener::operator==): New implementation.
2024         (WebEventListener::handleEvent): New implementation.
2025         (WebEventListener::create): New implementation.
2026         * DOMEventsClasses.h: Add new WebEventListener class declaration.
2027         * Interfaces/IWebFrame.idl: Add new DOMWindow accessor to the
2028          main Web Frame interface.
2029         * WebFrame.cpp: Add implementation of new DOMWindow creation method.
2030         (WebFrame::DOMWindow):
2031         * WebFrame.h: Add DOMWindow declaration.
2032
2033 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
2034
2035         Reviewed by Sam Weinig.
2036
2037         numberOfActiveAnimations() can include animations from documents in the page cache
2038         https://bugs.webkit.org/show_bug.cgi?id=53641
2039
2040         Pass the Frame's document as the one to count animations on.
2041
2042         * WebFrame.cpp:
2043         (WebFrame::numberOfActiveAnimations):
2044
2045 2011-05-20  Jer Noble  <jer.noble@apple.com>
2046
2047         Reviewed by Maciej Stachowiak.
2048
2049         Win: non-full-screen content is briefly seen when entering full-screen mode (and vice versa)
2050         https://bugs.webkit.org/show_bug.cgi?id=61108
2051
2052         * WebView.cpp:
2053         (WebView::fullScreenClientForceRepaint): Repaint the view and immediately notify the 
2054             full screen controller.
2055         * WebView.h:
2056
2057 2011-05-13  Jon Lee  <jonlee@apple.com>
2058
2059         Reviewed by Simon Fraser.
2060
2061         Can't horizontally scroll iframes and overflow because wheel events are always accepted
2062         https://bugs.webkit.org/show_bug.cgi?id=60779
2063
2064         * WebCoreSupport/WebChromeClient.h:
2065         (WebChromeClient::shouldRubberBandInDirection): Default impl of new ChromeClient method
2066         (WebChromeClient::numWheelEventHandlersChanged): Default impl of new ChromeClient method
2067
2068 2011-05-13  Sam Weinig  <sam@webkit.org>
2069
2070         Reviewed by Anders Carlsson.
2071
2072         Prune #includes from FrameView.h (Part 2)
2073         https://bugs.webkit.org/show_bug.cgi?id=60748
2074
2075         - Update files that were depending on FrameView.h #including Frame.h or
2076           Page.h.
2077
2078         * WebCoreSupport/WebChromeClient.cpp:
2079         * WebCoreSupport/WebDragClient.cpp:
2080         * WebCoreSupport/WebFrameLoaderClient.cpp:
2081         * WebFrame.cpp:
2082         (WebFrame::setPrinting):
2083         * WebView.cpp:
2084
2085 2011-05-12  Patrick Gansterer  <paroga@webkit.org>
2086
2087         Reviewed by Adam Barth.
2088
2089         Enable OwnPtr strict mode in PluginHalter
2090         https://bugs.webkit.org/show_bug.cgi?id=60681
2091
2092         * WebView.cpp:
2093         (WebView::initWithFrame):
2094
2095 2011-05-12  Adam Roben  <aroben@apple.com>
2096
2097         A little gtest cleanup after r86287
2098
2099         * WebKit.vcproj/WebKit.sln:
2100             - Move gtest into the Tools folder
2101             - Make gtest build just before TestWebKitAPIGenerated
2102             - Use gtest's new Debug_All and Production configurations as appropriate
2103
2104 2011-05-12  Nikolas Zimmermann  <nzimmermann@rim.com>
2105
2106         Reviewed by Darin Adler.
2107
2108         String operator+ reallocates unnecessarily when concatting > 2 strings
2109         https://bugs.webkit.org/show_bug.cgi?id=58420
2110
2111         Provide a faster String append operator. See Source/JavaScriptCore/ChangeLog for details.
2112
2113         * AccessibleBase.cpp:
2114         (AccessibleBase::get_accKeyboardShortcut): Explicitely cast to Strings first, so operator BString() can be invoked.
2115
2116 2011-05-11  Dmitry Lomov  <dslomov@google.com>
2117
2118         Reviewed by David Levin.
2119
2120         https://bugs.webkit.org/show_bug.cgi?id=59561
2121         Switch TestWebKitAPI to GTest
2122
2123         Fixes Makefiles and WinCairo build as well
2124
2125         * WebKit.vcproj/WebKit.sln:
2126
2127 2011-05-11  Jessie Berlin  <jberlin@apple.com>
2128
2129         Reviewed by Steve Falkenburg.
2130
2131         [Windows WebKit2] Use cookies set in WebKit1
2132         https://bugs.webkit.org/show_bug.cgi?id=60274
2133
2134         * WebView.cpp:
2135         (WebView::setCacheModel):
2136         Pass 0 to wkCopyFoundationCacheDirectory so that it uses the default session.
2137
2138 2011-05-11  Sheriff Bot  <webkit.review.bot@gmail.com>
2139
2140         Unreviewed, rolling out r86255.
2141         http://trac.webkit.org/changeset/86255
2142         https://bugs.webkit.org/show_bug.cgi?id=60660
2143
2144         REGRESSION (r86255): Lots of tests crashing in
2145         CFWriteStreamCreateWithAllocatedBuffers on Windows 7 Release
2146         (WebKit2 Tests) (Requested by aroben on #webkit).
2147
2148         * WebView.cpp:
2149         (WebView::setCacheModel):
2150
2151 2011-05-11  Jessie Berlin  <jberlin@apple.com>
2152
2153         Reviewed by Steve Falkenburg.
2154
2155         [Windows WebKit2] Use cookies set in WebKit1
2156         https://bugs.webkit.org/show_bug.cgi?id=60274
2157
2158         * WebView.cpp:
2159         (WebView::setCacheModel):
2160         Pass 0 to wkCopyFoundationCacheDirectory so that it uses the default session.
2161
2162 2011-05-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2163
2164         Unreviewed, rolling out r86108.
2165         http://trac.webkit.org/changeset/86108
2166         https://bugs.webkit.org/show_bug.cgi?id=60533
2167
2168         Broke makefile based builds and Cairo (Requested by weinig on
2169         #webkit).
2170
2171         * WebKit.vcproj/WebKit.sln:
2172
2173 2011-05-09  Dmitry Lomov  <dslomov@google.com>
2174
2175         Reviewed by Sam Weinig.
2176
2177         Switch TestWebKitAPI to GTest
2178         https://bugs.webkit.org/show_bug.cgi?id=59561
2179
2180         * WebKit.vcproj/WebKit.sln:
2181
2182 2011-05-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2183
2184         Unreviewed, rolling out r86016.
2185         http://trac.webkit.org/changeset/86016
2186         https://bugs.webkit.org/show_bug.cgi?id=60445
2187
2188         caused crashes on the WK2 Windows bots (Requested by
2189         jessieberlin on #webkit).
2190
2191         * WebView.cpp:
2192         (WebView::setCacheModel):
2193
2194 2011-05-07  Jessie Berlin  <jberlin@apple.com>
2195
2196         Reviewed by Steve Falkenburg.
2197
2198         [Windows WebKit2] Use cookies set in WebKit1
2199         https://bugs.webkit.org/show_bug.cgi?id=60274
2200
2201         * WebView.cpp:
2202         (WebView::setCacheModel):
2203         Pass 0 to wkCopyFoundationCacheDirectory so that it uses the default session.
2204
2205 2011-05-06  Adam Roben  <aroben@apple.com>
2206
2207         Touch WebKit.idl to fix the build
2208
2209         I needed this on my own machine. Maybe others will need it, too.
2210
2211         * Interfaces/WebKit.idl:
2212
2213 2011-05-04  Philippe Normand  <pnormand@igalia.com>
2214
2215         Reviewed by Dimitri Glazkov.
2216
2217         Implement LayoutTestController::pseudoShadowId()
2218         https://bugs.webkit.org/show_bug.cgi?id=60034
2219
2220         * DOMCoreClasses.cpp:
2221         (DOMElement::shadowPseudoId):
2222         * DOMCoreClasses.h:
2223
2224 2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
2225
2226         Reviewed by Eric Seidel.
2227
2228         Rename SelectionController to FrameSelection
2229         https://bugs.webkit.org/show_bug.cgi?id=60234
2230
2231         * WebView.cpp:
2232
2233 2011-05-04  Ryosuke Niwa  <rniwa@webkit.org>
2234
2235         Windows build fix attempt after r85823
2236
2237         * WebCoreSupport/WebChromeClient.h:
2238         (WebChromeClient::webView):
2239         * WebView.cpp:
2240         (kit):
2241
2242 2011-05-04  Cris Neckar  <cdn@chromium.org>
2243
2244         Reviewed by Adam Barth.
2245
2246         Expose WebView directly through ChromeClient.
2247         https://bugs.webkit.org/show_bug.cgi?id=49902
2248
2249         * WebCoreSupport/WebChromeClient.h:
2250         (WebChromeClient::webView):
2251
2252 2011-05-04  Tao Bai  <michaelbai@chromium.org>
2253
2254         Reviewed by David Kilzer.
2255
2256         Populate touch-icon url to FrameLoaderClient
2257         https://bugs.webkit.org/show_bug.cgi?id=59143
2258
2259         Respect the interface change in FrameLoaderClient.
2260
2261         * WebCoreSupport/WebFrameLoaderClient.cpp:
2262         (WebFrameLoaderClient::dispatchDidChangeIcons):
2263         * WebCoreSupport/WebFrameLoaderClient.h:
2264
2265 2011-05-02  Jer Noble  <jer.noble@apple.com>
2266
2267         Reviewed by Adam Roben.
2268
2269         Implement FULLSCREEN_API on Windows, Part 3: WebKit2
2270         https://bugs.webkit.org/show_bug.cgi?id=59845
2271
2272         Implementation of WebFullScreenController has been moved into WebCore, and 
2273         required virutal functions of WebFullScreenControllerClient have been added to
2274         WebView.  These functions are mostly simple accessors of existing ivars, but 
2275         m_fullScreenElement and its accessors have also been added to WebView.
2276
2277         * WebCoreSupport/WebChromeClient.cpp:
2278         (WebChromeClient::enterFullScreenForElement):
2279         * WebFullScreenController.cpp: Removed.
2280         * WebKit.vcproj/WebKit.vcproj:
2281         * WebView.cpp:
2282         (WebView::setFullScreenElement): Added accessor.
2283         (WebVIew::fullScreenElement): Ditto.
2284         (WebView::fullScreenClientWindow): Ditto.
2285         (WebView::fullScreenClientParentWindow): Ditto.
2286         (WebView::fullScreenClientSetParentWindow): Ditto.
2287         (WebView::fullScreenClientWillEnterFullScreen): Pass through to Document.
2288         (WebView::fullScreenClientDidEnterFullScreen): Ditto.
2289         (WebView::fullScreenClientWillExitFullScreen): Ditto.
2290         (WebView::fullScreenClientDidExitFullScreen): Ditto.
2291         * WebView.h:
2292
2293 2011-05-03  Brian Weinstein  <bweinstein@apple.com>
2294
2295         Reviewed by Steve Falkenburg.
2296
2297         REGRESSION(r84990): Nightly builds don't launch on Windows
2298         https://bugs.webkit.org/show_bug.cgi?id=60081
2299         <rdar://problem/9358635>
2300         
2301         Fix nightlies on Window by moving the layered window functions to the bottom
2302         of IWebViewPrivate and touch WebKit.idl to make sure Interfaces rebuild.
2303
2304         * Interfaces/IWebViewPrivate.idl: Move functions added in r84990 to the bottom of the file.
2305         * Interfaces/WebKit.idl: Touch to force a rebuild.
2306
2307 2011-05-03  David Kilzer  <ddkilzer@apple.com>
2308
2309         <http://webkit.org/b/59838> Implement HTTP pipelining for CoreFoundation-based networking
2310
2311         Reviewed by Antti Koivisto.
2312
2313         * Interfaces/IWebViewPrivate.idl:
2314         (IWebViewPrivate::httpPipeliningEnabled): Added declaration.
2315         (IWebViewPrivate::setHTTPPipeliningEnabled): Added declaration.
2316         * WebView.cpp:
2317         (WebView::httpPipeliningEnabled): Added.
2318         (WebView::setHTTPPipeliningEnabled): Added.
2319         * WebView.h:
2320         (WebView::httpPipeliningEnabled): Added declaration.
2321         (WebView::setHTTPPipeliningEnabled): Added declaration.
2322
2323 2011-05-03  Adam Roben  <aroben@apple.com>
2324
2325         Add some missing virtual keywords on derived-class destructors
2326
2327         Darin Adler noticed one, I noticed the other. This doesn't change the generated code; it
2328         just matches our style of explicitly marking overrides "virtual".
2329
2330         * WebCoreSupport/WebInspectorClient.h: Made the WebInspectorClient and
2331         WebInspectorFrontendClient destructors explicitly virtual.
2332
2333 2011-05-03  Adam Roben  <aroben@apple.com>
2334
2335         Fix most strict PassOwnPtr violations on Windows
2336
2337         Fixes <http://webkit.org/b/60025> Windows should (almost) build with strict PassOwnPtr
2338         enabled
2339
2340         Reviewed by Anders Carlsson.
2341
2342         * WebCoreSupport/WebInspectorClient.h: Made the destructor public, which is required now
2343         that this type is put into a PassOwnPtr. (Previously, only
2344         WebCore::InspectorFrontendClientLocal was put into a [Pass]OwnPtr.)
2345
2346         * FullscreenVideoController.cpp:
2347         * WebCoreSupport/WebFrameLoaderClient.cpp:
2348         * WebCoreSupport/WebInspectorClient.cpp:
2349         * WebHistory.cpp:
2350         * WebHistoryItem.cpp:
2351         * WebView.cpp:
2352
2353 2011-05-01  Sam Weinig  <sam@webkit.org>
2354
2355         Fix windows build.
2356
2357         * WebFrame.cpp:
2358
2359 2011-05-01  Patrick Gansterer  <paroga@webkit.org>
2360
2361         Reviewed by Adam Barth.
2362
2363         Fix OwnPtr strict issues in windows build
2364         https://bugs.webkit.org/show_bug.cgi?id=59878
2365
2366         * FullscreenVideoController.cpp:
2367         (FullscreenVideoController::FullscreenVideoController):
2368         (FullscreenVideoController::createHUDWindow):
2369         * WebCoreSupport/WebInspectorClient.cpp:
2370         (WebInspectorClient::highlight):
2371         * WebElementPropertyBag.cpp:
2372         (WebElementPropertyBag::WebElementPropertyBag):
2373         * WebNodeHighlight.cpp:
2374         (WebNodeHighlight::update):
2375         * WebNotificationCenter.cpp:
2376         (WebNotificationCenter::WebNotificationCenter):
2377         * WebView.cpp:
2378         (WebView::close):
2379         (WebView::paint):
2380         (WebView::handleMouseEvent):
2381         (WebView::registerEmbeddedViewMIMEType):
2382
2383 2011-04-29  Jer Noble  <jer.noble@apple.com>
2384
2385         Reviewed by Adam Roben.
2386
2387         Implement FULLSCREEN_API on Windows, Part 2: WebKit
2388         https://bugs.webkit.org/show_bug.cgi?id=59785
2389
2390         Initial implementation of full screen API on windows.  No animation
2391         occurs when entering or exiting full screen.  Re-use existing window
2392         classes (MediaPlayerPrivateFullscreenWindow) to host the webView.
2393
2394         * WebCoreSupport/WebChromeClient.cpp:
2395         (WebChromeClient::supportsFullScreenForElement): Call into WebView.
2396         (WebChromeClient::enterFullScreenForElement): Call into WebFullScreenController.
2397         (WebChromeClient::exitFullScreenForElement): Ditto.
2398         * WebFullScreenController.cpp: Added.
2399         (WebFullScreenController::Private::Private): Private data storage class.
2400         (WebFullScreenController::Private::~Private):
2401         (WebFullScreenController::Private::fullscreenClientWndProc): Handle window
2402             message for full screen window.
2403         (WebFullScreenController::WebFullScreenController):
2404         (WebFullScreenController::~WebFullScreenController):
2405         (WebFullScreenController::setElement): Added.
2406         (WebFullScreenController::element): Added.
2407         (WebFullScreenController::isFullScreen): Added.
2408         (WebFullScreenController::enterFullScreen): Create and display full screen
2409             window, moving webView as child window.
2410         (WebFullScreenController::exitFullScreen): Destroy full screen window and
2411             move webView back where we found it.
2412         * WebFullScreenController.h: Added.
2413         * WebKit.vcproj/WebKit.vcproj:
2414         * WebView.cpp:
2415         (WebView::keyDown): Handle the ESC key.
2416         (WebView::notifyPreferencesChanged):
2417         (WebView::supportsFullScreenForElement): Do not support full screen if
2418             full screen preference is disabled, or if keyboard access is requested.
2419         (WebView::isFullScreen): Added.
2420         (WebView::fullScreenController): Added.
2421         * WebView.h:
2422
2423 2011-04-28  Jer Noble  <jer.noble@apple.com>
2424
2425         Reviewed by Jon Honeycutt.
2426
2427         Implement FULLSCREEN_API on Windows, Part 1: Stubs
2428         https://bugs.webkit.org/show_bug.cgi?id=59778
2429
2430         Create all the stubs necessary to for enabling FULLSCREEN_API
2431         on Windows. This includes the COM interfaces for preferences and
2432         for overriding full screen behavior in a UI Delegate.
2433
2434         * Interfaces/IWebPreferencesPrivate.idl: Add functions for enabling
2435             full screen preference.
2436         * Interfaces/IWebUIDelegatePrivate.idl: Add functions for overriding
2437             full screen behavior.
2438         * WebCoreSupport/WebChromeClient.cpp:
2439         (WebChromeClient::supportsFullScreenForElement): Added.
2440         (WebChromeClient::enterFullScreenForElement): Added.
2441         (WebChromeClient::exitFullScreenForElement): Added.
2442         * WebCoreSupport/WebChromeClient.h:
2443         * WebPreferenceKeysPrivate.h: Added WebKitFullScreenEnable key.
2444         * WebPreferences.cpp:
2445         (WebPreferences::isFullScreenEnabled): Added. Implements function
2446            defined in IWebUIDelegatePrivate.
2447         (WebPreferences::setFullScreenEnabled): Ditto.
2448         * WebPreferences.h:
2449
2450 2011-04-28  Adam Barth  <abarth@webkit.org>
2451
2452         Reviewed by Eric Seidel.
2453
2454         Remove WML
2455         https://bugs.webkit.org/show_bug.cgi?id=59678
2456
2457         Remove WML-related enumeration.
2458
2459         * Interfaces/IWebFramePrivate.idl:
2460
2461 2011-04-26  Brent Fulgham  <bfulgham@webkit.org>
2462
2463         Reviewed by Adam Roben.
2464
2465         Implement a transparent WebView under Windows.  This feature
2466         allows the user to create small web-based applications, similar
2467         to the dashboard on Mac OS X.
2468         https://bugs.webkit.org/show_bug.cgi?id=58300
2469
2470         * Interfaces/IWebViewPrivate.idl: Add new set/get accessors to
2471         change the state of a WebView into a Layered Window, or back
2472         into a standard window.
2473         * Interfaces/WebKit.idl: touch to force clean build
2474         * WebView.cpp:
2475         (WebView::WebView): Set layered window state in constructor.
2476         (WebView::updateBackingStore): Cleanup old bitmap when finished.
2477         (WebView::performLayeredWindowUpdate): New method to do the work
2478         of calling ::UpdateLayeredWindow for the WebView with proper
2479         alpha blending.
2480         (WebView::paint): Small change to prevent accelerated compositing
2481         when using a layered window.  DirectX is not compatible with
2482         ::UpdateLayeredWindow (at least currently).
2483         (WebView::WebViewWndProc): Adjust main window procedure to avoid
2484         painting a default background on a layered window (this is handled
2485         by Windows during compositing), and to deal with paint messages
2486         properly in the layered window case.
2487         (WebView::active): The layered window is not a child window,
2488         so the active state logic is slightly different.
2489         (WebView::setUsesLayeredWindow): New set method for layered stated.
2490         When called, it will convert a WebView into a Layered Window.
2491         (WebView::usesLayeredWindow): Accessor
2492         * WebView.h:
2493         (WebView::setUsesLayeredWindow): Declare new accessor
2494         (WebView::usesLayeredWindow): Declare new accessor
2495
2496 2011-04-21  Ryosuke Niwa  <rniwa@webkit.org>
2497
2498         Windows build fix.
2499
2500         * WebCoreSupport/WebEditorClient.h:
2501
2502 2011-04-21  Ryosuke Niwa  <rniwa@webkit.org>
2503
2504         Reviewed by Sam Weinig.
2505
2506         Add Frame* to the argument lists of canCopyCut and canPaste
2507         https://bugs.webkit.org/show_bug.cgi?id=59153
2508
2509         * WebCoreSupport/WebEditorClient.cpp:
2510         (WebEditorClient::canCopyCut):
2511         (WebEditorClient::canPaste):
2512         * WebCoreSupport/WebEditorClient.h:
2513
2514 2011-04-20  Brent Fulgham  <bfulgham@webkit.org>
2515
2516         Reviewed by Martin Robinson.
2517
2518         Provide missing implementation of WebMutableURLRequest::mutableCopy.
2519         This was preventing DumpRenderTree from working properly under
2520         the WinCairo port.
2521         https://bugs.webkit.org/show_bug.cgi?id=59034
2522
2523         * WebMutableURLRequest.cpp:
2524         (WebMutableURLRequest::mutableCopy): Implement cURL version of the
2525         copy operation.
2526
2527 2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
2528
2529         Reviewed by Pavel Feldman.
2530
2531         Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
2532         https://bugs.webkit.org/show_bug.cgi?id=58883
2533
2534         * WebCoreSupport/WebFrameLoaderClient.h:
2535
2536 2011-04-18  Timothy Hatcher  <timothy@apple.com>
2537
2538         Remove the two commands that make en.lproj and copy Localizable.strings.
2539
2540         Rubber-stamped by Adam Roben.
2541
2542         * WebKit.vcproj/WebKitLibPostBuild.cmd:
2543
2544 2011-04-18  Patrick Gansterer  <paroga@webkit.org>
2545
2546         Reviewed by Adam Roben.
2547
2548         Include <WebCore/COMPtr.h> instead of "COMPtr.h"
2549         https://bugs.webkit.org/show_bug.cgi?id=58744
2550
2551         * DOMCoreClasses.cpp:
2552         * DOMHTMLClasses.cpp:
2553         * WebActionPropertyBag.cpp:
2554         * WebBackForwardList.cpp:
2555         * WebCoreSupport/WebGeolocationClient.h:
2556         * WebDownload.h:
2557         * WebDropSource.h:
2558         * WebFrame.cpp:
2559         * WebHistoryItem.cpp:
2560         * WebIconDatabase.cpp:
2561         * WebNavigationData.h:
2562         * WebPreferences.cpp:
2563         * WebResource.h:
2564         * WebURLAuthenticationChallenge.cpp:
2565         * WebURLAuthenticationChallengeSender.cpp:
2566         * WebURLAuthenticationChallengeSenderCFNet.cpp:
2567         * WebURLAuthenticationChallengeSenderCurl.cpp:
2568         * WebView.h:
2569
2570 2011-04-17  Patrick Gansterer  <paroga@webkit.org>
2571
2572         Reviewed by Adam Barth.
2573
2574         Rename PLATFORM(CG) to USE(CG)
2575         https://bugs.webkit.org/show_bug.cgi?id=58729
2576
2577         * WebFrame.cpp:
2578         (WebFrame::spoolPages):
2579         * WebFrame.h:
2580         * WebPreferences.cpp:
2581         (WebPreferences::setFontSmoothing):
2582         (WebPreferences::setFontSmoothingContrast):
2583         * WebView.cpp:
2584         (systemParameterChanged):
2585
2586 2011-04-16  Sam Weinig  <sam@webkit.org>
2587
2588         Reviewed by Simon Fraser.
2589
2590         Windows should use WebCore localized strings
2591         <rdar://problem/9119405>
2592         https://bugs.webkit.org/show_bug.cgi?id=58733
2593
2594         * WebCoreSupport/WebEditorClient.cpp:
2595         (undoNameForEditAction):
2596         (WebEditorClient::registerCommandForUndo):
2597         * WebPreferences.cpp:
2598         (WebPreferences::initializeDefaultSettings):
2599         * WebURLResponse.cpp:
2600         (CFHTTPMessageCopyLocalizedShortDescriptionForStatusCode):
2601         (WebURLResponse::localizedStringForStatusCode):
2602         Change to use WEB_UI_STRING.
2603
2604         * WebCoreSupport/WebPlatformStrategies.cpp:
2605         * WebCoreSupport/WebPlatformStrategies.h:
2606         Remove the localization strategy in favor of using the default one.
2607
2608 2011-04-16  Patrick Gansterer  <paroga@webkit.org>
2609
2610         Reviewed by Eric Seidel.
2611
2612         Rename PLATFORM(CAIRO) to USE(CAIRO)
2613         https://bugs.webkit.org/show_bug.cgi?id=55192
2614
2615         * WebFrame.cpp:
2616         (WebFrame::spoolPages):
2617         * WebFrame.h:
2618
2619 2011-04-14  Adam Roben  <aroben@apple.com>
2620
2621         Replace some known-to-fail assertions with FIXMEs
2622
2623         These assertions get hit during various layout tests. They indicate that we're sometimes
2624         doing some extra work when a page goes into accelerated compositing mode, but otherwise
2625         there's no bad effect.
2626
2627         See <http://webkit.org/b/58539> for more details.
2628
2629         Rubber-stamped by John Sullivan.
2630
2631         * WebView.cpp:
2632         (WebView::paintIntoBackingStore):
2633         (WebView::paintIntoWindow):
2634         Replaced assertions with FIXMEs.
2635
2636 2011-04-13  James Robinson  <jamesr@chromium.org>
2637
2638         Reviewed by Simon Fraser.
2639
2640         Allow setting composited backing stores for scrollbars and scroll corners
2641         https://bugs.webkit.org/show_bug.cgi?id=57202
2642
2643         Update WebScrollBar to reflect ScrollableArea interface changes.
2644
2645         * WebScrollBar.h:
2646         (WebScrollBar::invalidateScrollCornerRect):
2647         (WebScrollBar::scrollCornerPresent):
2648         (WebScrollBar::scrollCornerRect):
2649
2650 2011-04-12  Alice Liu  <alice.liu@apple.com>
2651
2652         Reviewed by Sam Weinig.
2653
2654         https://bugs.webkit.org/show_bug.cgi?id=58292
2655         Provide new setting to allow site icon loading despite disabling automatic image loading in general.
2656
2657         * Interfaces/IWebPreferencesPrivate.idl: Added prefs. 
2658         * Interfaces/WebKit.idl: Touch file to force autogeneration
2659         * WebPreferenceKeysPrivate.h: Add preference key.
2660         * WebPreferences.cpp:
2661         (WebPreferences::initializeDefaultSettings): Initialize setting to false.
2662         (WebPreferences::setLoadsSiteIconsIgnoringImageLoadingPreference): Added setter
2663         (WebPreferences::loadsSiteIconsIgnoringImageLoadingPreference): Added getter
2664         * WebPreferences.h:
2665         * WebView.cpp:
2666         (WebView::notifyPreferencesChanged): Add to settings that get propagated upon changes.
2667
2668 2011-04-11  Alexey Proskuryakov  <ap@apple.com>
2669
2670         Reviewed by Maciej Stachowiak.
2671
2672         WebKit2: Cannot use Ctrl-Delete as a custom keyboard shortcut
2673         https://bugs.webkit.org/show_bug.cgi?id=58265
2674         <rdar://problem/9221468>
2675
2676         * WebView.cpp: (WebView::keyDown): Removed special handling of Backspace, which is unnecessary
2677         now that WebCore implements it.
2678
2679 2011-04-06  Brian Weinstein  <bweinstein@apple.com>
2680
2681         Reviewed by Adam Roben.
2682
2683         WebKit2: Support Windows 7 Gestures
2684         https://bugs.webkit.org/show_bug.cgi?id=49824
2685         <rdar://problem/8689728>
2686         
2687         Move WindowsTouch.h from WebKit/win to WebCore/platform/win, so it can be
2688         used in both WebKit and WebKit2.
2689
2690         * WebKit.vcproj/WebKit.vcproj: Remove WindowsTouch.h.
2691         * WebView.cpp: Include WindowsTouch.h from WebCore instead of WebKit.
2692         * WindowsTouch.h: Removed.
2693
2694 2011-04-05  Martin Robinson  <mrobinson@igalia.com>
2695
2696         Reviewed by Eric Seidel.
2697
2698         [Cairo] Better separate the concerns of GraphicsContextCairo
2699         https://bugs.webkit.org/show_bug.cgi?id=55150
2700
2701         * WebFrame.cpp:
2702         (hdcFromContext): Modify this method to take PlatformContextCairo
2703         instead of a cairo_t.
2704         (WebFrame::spoolPage): Update to reflect new platform context.
2705         (WebFrame::spoolPages): Ditto.
2706         * WebFrame.h: Ditto.
2707
2708 2011-04-04  MORITA Hajime  <morrita@google.com>
2709
2710         Reviewed by Ryosuke Niwa.
2711
2712         [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
2713         https://bugs.webkit.org/show_bug.cgi?id=56085
2714
2715         * WebCoreSupport/WebEditorClient.h:
2716         (WebEditorClient::requestCheckingOfString):
2717
2718 2011-04-04  Alexey Proskuryakov  <ap@apple.com>
2719
2720         Reviewed by Dan Bernstein.
2721
2722         REGRESSION (WebKit2): Caps-Lock indicator sometimes doesn't appear in WebKit2
2723         https://bugs.webkit.org/show_bug.cgi?id=51230
2724         <rdar://problem/8780989>
2725
2726         * WebView.cpp: (WebView::keyDown): Moved Caps Lock handling from WebKits to WebCore,
2727         because WebKit shouldn't be smart.
2728
2729 2011-04-04  Steve Falkenburg  <sfalken@apple.com>
2730
2731         Reviewed by Adam Roben.
2732
2733         Remove unused AnalyzeWithLargeStack code from Windows build files
2734         https://bugs.webkit.org/show_bug.cgi?id=57771
2735         
2736         This was used for us to build with prefast automatically,
2737         but it is out-of-date and hasn't been used for some time.
2738         Removing completely for now.
2739
2740         * WebKit.vcproj/WebKitLibPreBuild.cmd:
2741
2742 2011-04-01  Adam Roben  <aroben@apple.com>
2743
2744         Remove the WebView's "this" pointer from its HWND when WM_DESTROY is received
2745
2746         This will ensure we don't try to process any window messages after the window has been
2747         destroyed.
2748
2749         Covered by existing tests.
2750
2751         Fixes <http://webkit.org/b/55054>.
2752
2753         Reviewed by Steve Falkenburg and John Sullivan.
2754
2755         * WebView.cpp:
2756         (WebView::setIsBeingDestroyed): Moved here from the header file, and added a call to clear
2757         out the this pointer from the HWND.
2758         (WebView::WebViewWndProc): Changed a runtime check into an assertion.
2759
2760         * WebView.h: Moved setIsBeingDestroyed from here to the .cpp file.
2761
2762 2011-03-31  Evan Martin  <evan@chromium.org>
2763
2764         Reviewed by Eric Seidel.
2765
2766         <title> should support dir attribute
2767         https://bugs.webkit.org/show_bug.cgi?id=50961
2768
2769         Update to new FrameLoaderClient interface.
2770
2771         * WebCoreSupport/WebFrameLoaderClient.cpp:
2772         (WebFrameLoaderClient::dispatchDidReceiveTitle):
2773         * WebCoreSupport/WebFrameLoaderClient.h:
2774
2775 2011-03-30  Steve Falkenburg  <sfalken@apple.com>
2776
2777         Reviewed by Adam Roben.
2778
2779         Share most vsprops between Release and Production builds in releaseproduction.vsprops
2780         https://bugs.webkit.org/show_bug.cgi?id=57508
2781
2782         * WebKit.vcproj/InterfacesProduction.vsprops:
2783         * WebKit.vcproj/InterfacesRelease.vsprops:
2784         * WebKit.vcproj/InterfacesReleaseCairoCFLite.vsprops:
2785         * WebKit.vcproj/WebKitGUIDProduction.vsprops:
2786         * WebKit.vcproj/WebKitGUIDRelease.vsprops:
2787         * WebKit.vcproj/WebKitGUIDReleaseCairoCFLite.vsprops:
2788         * WebKit.vcproj/WebKitLibProduction.vsprops:
2789         * WebKit.vcproj/WebKitLibRelease.vsprops:
2790         * WebKit.vcproj/WebKitLibReleaseCairoCFLite.vsprops:
2791
2792 2011-03-30  Steve Falkenburg  <sfalken@apple.com>
2793
2794         Reviewed by Adam Roben.
2795
2796         Update Windows production build logic for new production configurations
2797         https://bugs.webkit.org/show_bug.cgi?id=57494
2798
2799         * WebKit.vcproj/InterfacesProduction.vsprops:
2800         * WebKit.vcproj/WebKit.make:
2801         * WebKit.vcproj/WebKitGUIDProduction.vsprops:
2802         * WebKit.vcproj/WebKitLibProduction.vsprops:
2803
2804 2011-03-30  Steve Falkenburg  <sfalken@apple.com>
2805
2806         Reviewed by Adam Roben.
2807
2808         Rename Windows configuration Release_LTCG to Production for clarity
2809         https://bugs.webkit.org/show_bug.cgi?id=57465
2810
2811         * WebKit.vcproj/Interfaces.vcproj:
2812         * WebKit.vcproj/InterfacesProduction.vsprops: Copied from Source/WebKit/win/WebKit.vcproj/InterfacesReleaseLTCG.vsprops.
2813         * WebKit.vcproj/InterfacesReleaseLTCG.vsprops: Removed.
2814         * WebKit.vcproj/WebKit.sln:
2815         * WebKit.vcproj/WebKit.submit.sln:
2816         * WebKit.vcproj/WebKit.vcproj:
2817         * WebKit.vcproj/WebKitGUID.vcproj:
2818         * WebKit.vcproj/WebKitGUIDProduction.vsprops: Copied from Source/WebKit/win/WebKit.vcproj/WebKitGUIDReleaseLTCG.vsprops.
2819         * WebKit.vcproj/WebKitGUIDReleaseLTCG.vsprops: Removed.
2820         * WebKit.vcproj/WebKitLibProduction.vsprops: Copied from Source/WebKit/win/WebKit.vcproj/WebKitLibReleaseLTCG.vsprops.
2821         * WebKit.vcproj/WebKitLibReleaseLTCG.vsprops: Removed.
2822
2823 2011-03-29  Patrick Gansterer  <paroga@webkit.org>
2824
2825         Reviewed by Adam Roben.
2826
2827         [WIN] Remove unused GEN_DOMObject files
2828         https://bugs.webkit.org/show_bug.cgi?id=57370
2829
2830         * GEN_DOMObject.cpp: Removed.
2831         * GEN_DOMObject.h: Removed.
2832
2833 2011-03-29  Steve Falkenburg  <sfalken@apple.com>
2834
2835         More build fix.
2836
2837         * WebCoreSupport/WebPlatformStrategies.h:
2838
2839 2011-03-29  Steve Falkenburg  <sfalken@apple.com>
2840
2841         Build fix.
2842
2843         * WebCoreSupport/WebPlatformStrategies.cpp:
2844         (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary):
2845
2846 2011-03-29  Patrick Gansterer  <paroga@webkit.org>
2847
2848         Unreviewed. Try to fix Windows build.
2849
2850         * DOMEventsClasses.cpp: Added initguid.h again.
2851
2852 2011-03-29  Patrick Gansterer  <paroga@webkit.org>
2853
2854         Reviewed by Adam Roben.
2855
2856         [WIN] Cleanup includes in WebKit files
2857         https://bugs.webkit.org/show_bug.cgi?id=57381
2858
2859         Add missing includes to fix build without precompiled header.
2860         Also fix paths in #include statements (e.g. WTF -> wtf).
2861
2862         * AccessibleBase.h:
2863         * AccessibleDocument.h: Replace using statement with a qualified name.
2864         * CFDictionaryPropertyBag.h:
2865         * DOMEventsClasses.cpp:
2866         * DOMHTMLClasses.h:
2867         * DefaultDownloadDelegate.cpp:
2868         * DefaultDownloadDelegate.h:
2869         * DefaultPolicyDelegate.cpp:
2870         * DefaultPolicyDelegate.h:
2871         * WebCoreSupport/EmbeddedWidget.h:
2872         * WebCoreSupport/WebInspectorDelegate.h:
2873         * WebDataSource.h:
2874         * WebDatabaseManager.h:
2875         * WebElementPropertyBag.h:
2876         * WebFramePolicyListener.h:
2877         * WebGeolocationPolicyListener.h:
2878         * WebHistory.h:
2879         * WebKitClassFactory.h:
2880         * WebScriptWorld.h:
2881         * WebSerializedJSValue.h:
2882         * WebUserContentURLPattern.h:
2883
2884 2011-03-29  Steve Falkenburg  <sfalken@apple.com>
2885
2886         Reviewed by Darin Adler.
2887
2888         Use per-configuration vsprops in WebKit to avoid WebKitVSPropsRedirectionDir removal by MSVC IDE
2889         https://bugs.webkit.org/show_bug.cgi?id=57383
2890
2891         Visual Studio's IDE was removing instances of $(WebKitVSPropsRedirectionDir) from
2892         InheritedPropertySheet rules in our vcproj files when the vcproj was edited from within
2893         the IDE. To avoid this, add a separate vsprops file for each project configuration that
2894         contains the required inherited property sheets.
2895
2896         * WebKit.vcproj/Interfaces.vcproj:
2897         * WebKit.vcproj/InterfacesDebug.vsprops: Added.
2898         * WebKit.vcproj/InterfacesDebugAll.vsprops: Added.
2899         * WebKit.vcproj/InterfacesDebugCairoCFLite.vsprops: Added.
2900         * WebKit.vcproj/InterfacesRelease.vsprops: Added.
2901         * WebKit.vcproj/InterfacesReleaseCairoCFLite.vsprops: Added.
2902         * WebKit.vcproj/InterfacesReleaseLTCG.vsprops: Added.
2903         * WebKit.vcproj/WebKit.vcproj:
2904         * WebKit.vcproj/WebKitGUID.vcproj:
2905         * WebKit.vcproj/WebKitGUIDDebug.vsprops: Added.
2906         * WebKit.vcproj/WebKitGUIDDebugAll.vsprops: Added.
2907         * WebKit.vcproj/WebKitGUIDDebugCairoCFLite.vsprops: Added.
2908         * WebKit.vcproj/WebKitGUIDRelease.vsprops: Added.
2909         * WebKit.vcproj/WebKitGUIDReleaseCairoCFLite.vsprops: Added.
2910         * WebKit.vcproj/WebKitGUIDReleaseLTCG.vsprops: Added.
2911         * WebKit.vcproj/WebKitLibDebug.vsprops: Added.
2912         * WebKit.vcproj/WebKitLibDebugAll.vsprops: Added.
2913         * WebKit.vcproj/WebKitLibDebugCairoCFLite.vsprops: Added.
2914         * WebKit.vcproj/WebKitLibRelease.vsprops: Added.
2915         * WebKit.vcproj/WebKitLibReleaseCairoCFLite.vsprops: Added.
2916         * WebKit.vcproj/WebKitLibReleaseLTCG.vsprops: Added.
2917
2918 2011-03-29  Patrick Gansterer  <paroga@webkit.org>
2919
2920         Reviewed by Adam Roben.
2921
2922         Remove #pragma warning push and pop statements
2923         https://bugs.webkit.org/show_bug.cgi?id=57198
2924
2925         We do not need to disable warnings via #pragma since we started
2926         compiling WebCore with the same compiler warnings flags as WebKit.
2927
2928         * DOMCSSClasses.cpp:
2929         * DOMCoreClasses.cpp:
2930         * DOMEventsClasses.cpp:
2931         * DOMHTMLClasses.cpp:
2932         * DefaultDownloadDelegate.cpp:
2933         * DefaultPolicyDelegate.cpp:
2934         * MarshallingHelpers.cpp:
2935         * WebActionPropertyBag.cpp:
2936         * WebActionPropertyBag.h:
2937         * WebCache.cpp:
2938         * WebCoreSupport/WebDragClient.cpp:
2939         * WebCoreSupport/WebEditorClient.cpp:
2940         * WebCoreSupport/WebEditorClient.h:
2941         * WebCoreSupport/WebFrameLoaderClient.cpp:
2942         * WebCoreSupport/WebFrameLoaderClient.h:
2943         * WebCoreSupport/WebInspectorClient.cpp:
2944         * WebDocumentLoader.h:
2945         * WebDownload.cpp:
2946         * WebDownloadCFNet.cpp:
2947         * WebDownloadCurl.cpp:
2948         * WebElementPropertyBag.cpp:
2949         * WebError.cpp:
2950         * WebError.h:
2951         * WebFrame.cpp:
2952         * WebFrame.h:
2953         * WebFramePolicyListener.cpp:
2954         * WebFramePolicyListener.h:
2955         * WebHistory.cpp:
2956         * WebHistoryItem.cpp:
2957         * WebIconDatabase.cpp:
2958         * WebIconDatabase.h:
2959         * WebInspector.cpp:
2960         * WebJavaScriptCollector.cpp:
2961         * WebKitGraphics.cpp:
2962         * WebKitSystemBits.cpp:
2963         * WebLocalizableStrings.cpp:
2964         * WebMutableURLRequest.cpp:
2965         * WebMutableURLRequest.h:
2966         * WebNodeHighlight.cpp:
2967         * WebNodeHighlight.h:
2968         * WebNotificationCenter.cpp:
2969         * WebResource.cpp:
2970         * WebResource.h:
2971         * WebScrollBar.cpp:
2972         * WebScrollBar.h:
2973         * WebURLAuthenticationChallenge.cpp:
2974         * WebURLAuthenticationChallenge.h:
2975         * WebURLAuthenticationChallengeSender.cpp:
2976         * WebURLAuthenticationChallengeSenderCFNet.cpp:
2977         * WebURLAuthenticationChallengeSenderCurl.cpp:
2978         * WebURLCredential.cpp:
2979         * WebURLCredential.h:
2980         * WebURLProtectionSpace.cpp:
2981         * WebURLProtectionSpace.h:
2982         * WebURLResponse.cpp:
2983         * WebURLResponse.h:
2984
2985 2011-03-29  Brent Fulgham  <bfulgham@webkit.org>
2986
2987         Unreviewed build fix after r82247.
2988
2989         * WebMutableURLRequest.cpp: The new CertificateCFWin routines
2990         are not CFNetwork-specific. All CF-based ports can use them.
2991
2992 2011-03-29  Patrick Gansterer  <paroga@webkit.org>
2993
2994         Reviewed by Adam Roben.
2995
2996         [WIN] Use WCHAR instead of TCHAR
2997         https://bugs.webkit.org/show_bug.cgi?id=57191
2998
2999         We always use the UNICODE versions of windows functions, so
3000         the usage of TCHAR makes no sense and mixing them is bad style.
3001
3002         * DefaultDownloadDelegate.cpp:
3003         * WebCoreSupport/WebChromeClient.cpp:
3004         * WebCoreSupport/WebContextMenuClient.cpp:
3005         * WebCoreSupport/WebInspectorClient.cpp:
3006         * WebKitDLL.cpp:
3007         * WebNotificationCenter.cpp:
3008         * WebPreferences.cpp:
3009         * WebURLResponse.cpp:
3010         * WebView.cpp:
3011
3012 2011-03-29  Jeff Miller  <jeffm@apple.com>
3013
3014         Reviewed by Jon Honeycutt.
3015
3016         Add WebCore::copyCertificateToData() on Windows
3017         https://bugs.webkit.org/show_bug.cgi?id=57296
3018
3019         Remove duplicate code that implemented this functionality in WebMutableURLRequest.cpp and use WebCore::copyCertificateToData() instead. 
3020
3021         * WebMutableURLRequest.cpp:
3022         (WebMutableURLRequest::setClientCertificate):  Use WebCore::copyCertificateToData().
3023
3024 2011-03-28  Patrick Gansterer  <paroga@webkit.org>
3025
3026         Reviewed by Adam Roben.
3027
3028         [WIN] Remove unused DOMCreateInstance files
3029         https://bugs.webkit.org/show_bug.cgi?id=57193
3030
3031         * DOMCreateInstance.cpp: Removed.
3032         * DOMCreateInstance.h: Removed.
3033
3034 2011-03-28  Adele Peterson  <adele@apple.com>
3035
3036         Build fix.
3037         
3038         * WebFrame.cpp: (WebFrame::hasSpellingMarker):
3039         Call new selectionStartHasMarkerFor method instead of selectionStartHasSpellingMarkerFor.
3040
3041 2011-03-28  Jeff Miller  <jeffm@apple.com>
3042
3043         Reviewed by Adam Roben.
3044
3045         Include certificate when sending a WebCore::ResourceError to UI process on Windows
3046         https://bugs.webkit.org/show_bug.cgi?id=57195
3047         
3048         Rename callers of wkGetSSLPeerCertificateData() to use wkGetSSLPeerCertificateDataBytePtr(), since it returns a void*.
3049
3050         * WebError.cpp:
3051         (WebError::sslPeerCertificate):
3052         * WebURLResponse.cpp:
3053         (WebURLResponse::sslPeerCertificate):
3054
3055 2011-03-28  Darin Adler  <darin@apple.com>
3056
3057         Set eol-style to native on more files. I noticed the last check-in had an entire file
3058         changing because of an EOL style change, and setting this property prevents that from
3059         happening in future. We may want to do this systematically for more of WebKit later.
3060
3061         * AccessibleBase.cpp: Added property svn:eol-style.
3062         * AccessibleBase.h: Added property svn:eol-style.
3063         * AccessibleDocument.cpp: Added property svn:eol-style.
3064         * AccessibleDocument.h: Added property svn:eol-style.
3065         * AccessibleImage.cpp: Added property svn:eol-style.
3066         * AccessibleImage.h: Added property svn:eol-style.
3067         * COMVariantSetter.h: Added property svn:eol-style.
3068         * FullscreenVideoController.cpp: Added property svn:eol-style.
3069         * FullscreenVideoController.h: Added property svn:eol-style.
3070         * WebCoreSupport/EmbeddedWidget.cpp: Added property svn:eol-style.
3071         * WebCoreSupport/EmbeddedWidget.h: Added property svn:eol-style.
3072         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp: Added property svn:eol-style.
3073         * WebCoreSupport/WebDesktopNotificationsDelegate.h: Added property svn:eol-style.
3074         * WebCoreSupport/WebFrameLoaderClient.cpp: Added property svn:eol-style.
3075         * WebCoreSupport/WebInspectorDelegate.cpp: Added property svn:eol-style.
3076         * WebCoreSupport/WebInspectorDelegate.h: Added property svn:eol-style.
3077         * WebCoreSupport/WebPlatformStrategies.cpp: Added property svn:eol-style.
3078         * WebCoreSupport/WebPlatformStrategies.h: Added property svn:eol-style.
3079         * WebCoreSupport/WebPluginHalterClient.cpp: Added property svn:eol-style.
3080         * WebCoreSupport/WebPluginHalterClient.h: Added property svn:eol-style.
3081
3082 2011-03-28  Patrick Gansterer  <paroga@webkit.org>
3083
3084         Unreviewed build fix.
3085
3086         * COMPropertyBag.h: Added missing include.
3087         * WebKitCOMAPI.h: Ditto.
3088         * WebCoreSupport/WebFrameLoaderClient.h: Added missing forward declaration.
3089
3090 2011-03-25  Sam Weinig  <sam@webkit.org>
3091
3092         Reviewed by Jon Honeycutt.
3093
3094         WebScrollBar not updating when calling WebScrollBar::setValue.
3095         <rdar://problem/9143871>
3096
3097         * WebScrollBar.cpp:
3098         (WebScrollBar::setValue):
3099         Call scrollToOffsetWithoutAnimation to actually update the scroll position.
3100
3101 2011-03-25  Andy Estes  <aestes@apple.com>
3102
3103         Reviewed by Adele Peterson.
3104
3105         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
3106         https://bugs.webkit.org/show_bug.cgi?id=49016
3107
3108         Update objectContentType() implementation to handle the
3109         shouldPreferPlugInsForImages flag.
3110
3111         * WebFrame.cpp:
3112         (WebFrame::objectContentType):
3113         * WebFrame.h:
3114
3115 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
3116
3117         Unreviewed, rolling out r81916 and r81917.
3118         http://trac.webkit.org/changeset/81916
3119         http://trac.webkit.org/changeset/81917
3120         https://bugs.webkit.org/show_bug.cgi?id=57071
3121
3122         broke a test on platforms that do not have QuickTime installed
3123         (Requested by estes on #webkit).
3124
3125         * WebFrame.cpp:
3126         (WebFrame::objectContentType):
3127         * WebFrame.h:
3128
3129 2011-03-24  Andy Estes  <aestes@apple.com>
3130
3131         Reviewed by Darin Adler.
3132
3133         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
3134         https://bugs.webkit.org/show_bug.cgi?id=49016
3135
3136         Update objectContentType() implementation to handle the
3137         shouldPreferPlugInsForImages flag.
3138
3139         * WebFrame.cpp:
3140         (WebFrame::objectContentType):
3141         * WebFrame.h:
3142
3143 2011-03-23  Brady Eidson  <beidson@apple.com>
3144
3145         Reviewed by Sam Weinig.
3146
3147         Change IconDatabase opening to allow for arbitrary filenames
3148         https://bugs.webkit.org/show_bug.cgi?id=56977
3149
3150         * WebIconDatabase.cpp:
3151         (WebIconDatabase::startUpIconDatabase):
3152
3153 2011-03-22  Brady Eidson  <beidson@apple.com>
3154
3155         Reviewed by Sam Weinig.
3156
3157         <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56876
3158         WK2 Icon DB: Expand IconDatabaseClient interface and move it to the main thread
3159
3160         Note that while the new client calls always come through on the main thread, our mechanisms to
3161         route dispatches to the main thread are still valid and will still work.
3162
3163         Update to the new IconDatabaseClient interface:
3164         * WebIconDatabase.cpp:
3165         (WebIconDatabase::performImport):
3166         (WebIconDatabase::didRemoveAllIcons):
3167         (WebIconDatabase::didImportIconURLForPageURL):
3168         (WebIconDatabase::didImportIconDataForPageURL):
3169         (WebIconDatabase::didChangeIconForPageURL):
3170         (WebIconDatabase::didFinishURLImport):
3171         * WebIconDatabase.h:
3172
3173 2011-03-17  Brady Eidson  <beidson@apple.com>
3174
3175         Reviewed by Sam Weinig.
3176
3177         https://bugs.webkit.org/show_bug.cgi?id=56425
3178         More groundwork for WebKit2 IconDatabase
3179
3180         Update already-used function names:
3181         * WebIconDatabase.cpp:
3182         (WebIconDatabase::iconForURL):
3183         (WebIconDatabase::iconURLForURL):
3184         (WebIconDatabase::hasIconForURL):
3185
3186 2011-03-18  Pavel Podivilov  <podivilov@chromium.org>
3187
3188         Reviewed by Yury Semikhatsky.
3189
3190         Web Inspector: implement inspector session storage.
3191         https://bugs.webkit.org/show_bug.cgi?id=56643
3192
3193         * WebCoreSupport/WebInspectorClient.cpp:
3194         (WebInspectorClient::saveSessionSetting):
3195         (WebInspectorClient::loadSessionSetting):
3196         (WebInspectorFrontendClient::saveSessionSetting):
3197         (WebInspectorFrontendClient::loadSessionSetting):
3198         * WebCoreSupport/WebInspectorClient.h:
3199
3200 2011-03-11  Brady Eidson  <beidson@apple.com>
3201
3202         More Windows build fix for https://bugs.webkit.org/show_bug.cgi?id=56216
3203
3204         * WebCoreStatistics.cpp:
3205         * WebIconDatabase.cpp:
3206
3207 2011-03-09  Peter Kasting  <pkasting@google.com>
3208
3209         Reviewed by Mihai Parparita.
3210
3211         Unify Windows version checks.
3212         https://bugs.webkit.org/show_bug.cgi?id=55979
3213
3214         * WebView.cpp:
3215         (WebView::standardUserAgentWithApplicationName):
3216         (webKitVersionString):
3217
3218 2011-03-07  Sam Weinig  <sam@webkit.org>
3219
3220         Reviewed by Anders Carlsson.
3221
3222         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
3223         https://bugs.webkit.org/show_bug.cgi?id=55827
3224
3225         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
3226         and pass the entire response, instead of just the MIMEType.
3227
3228         * WebFrame.cpp:
3229         (WebFrame::dispatchDecidePolicyForResponse):
3230         * WebFrame.h:
3231
3232 2011-03-04  Steve Falkenburg  <sfalken@apple.com>
3233
3234         Reviewed by Darin Adler.
3235
3236         Adopt VersionStamper tool for Windows WebKit DLLs
3237         https://bugs.webkit.org/show_bug.cgi?id=55784
3238
3239         Calculate the WebKit version for the useragent via autoversion.h
3240         instead of reading it back from the DLL.
3241         
3242         We now use a tool to stamp the version number onto the Apple WebKit DLLs
3243         during the post-build step.
3244
3245         * WebKit.vcproj/WebKit.rc: Removed. This file wasn't used.
3246         * WebKit.vcproj/WebKitLibCommon.vsprops: Fetch version from a string resource.
3247         * WebView.cpp:
3248         (WebView::standardUserAgentWithApplicationName): Use __BUILD_NUMBER_SHORT__ for the version.
3249         (osVersion): Removed
3250
3251 2011-03-03  Anders Carlsson  <andersca@apple.com>
3252
3253         Reviewed by Sam Weinig.
3254
3255         Get rid of Page::globalHistoryItem
3256         https://bugs.webkit.org/show_bug.cgi?id=55738
3257
3258         * WebCoreSupport/WebFrameLoaderClient.cpp:
3259         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
3260         Get the current history item and update it using WebView::setGlobalHistoryItem.
3261         
3262         * WebCoreSupport/WebFrameLoaderClient.h:
3263         * WebView.cpp:
3264         (WebView::globalHistoryItem):
3265         (WebView::setGlobalHistoryItem):
3266         * WebView.h:
3267
3268 2011-03-03  Brent Fulgham  <bfulgham@webkit.org>
3269
3270         Unreviewed build correction.
3271
3272         * WebFrame.cpp:
3273         (scaleFactor): Update after 77286 to replace right/bottom
3274         with new maxX/maxY terminology.
3275
3276 2011-03-03  Brady Eidson  <beidson@apple.com>
3277
3278         Reviewed by Darin Adler.
3279
3280         https://bugs.webkit.org/show_bug.cgi?id=55721
3281         Global IconDatabase should be returned by reference, not as a pointer
3282
3283         * WebCoreStatistics.cpp:
3284         (WebCoreStatistics::iconPageURLMappingCount):
3285         (WebCoreStatistics::iconRetainedPageURLCount):
3286         (WebCoreStatistics::iconRecordCount):
3287         (WebCoreStatistics::iconsWithDataCount):
3288         * WebIconDatabase.cpp:
3289         (WebIconDatabase::init):
3290         (WebIconDatabase::startUpIconDatabase):
3291         (WebIconDatabase::iconForURL):
3292         (WebIconDatabase::retainIconForURL):
3293         (WebIconDatabase::releaseIconForURL):
3294         (WebIconDatabase::removeAllIcons):
3295         (WebIconDatabase::iconURLForURL):
3296         (WebIconDatabase::isEnabled):
3297         (WebIconDatabase::setEnabled):
3298         (WebIconDatabase::hasIconForURL):
3299         (WebIconDatabase::getOrCreateDefaultIconBitmap):
3300         * WebKitDLL.cpp:
3301         (shutDownWebKit):
3302
3303 2011-03-03  Alexey Proskuryakov  <ap@apple.com>
3304
3305         Removing an include of WebCoreKeyboardUIMode.h that Ive just added. It's already included
3306         via ChromeClient.h
3307
3308         * WebCoreSupport/WebChromeClient.h:
3309
3310 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
3311
3312         Reviewed by Darin Adler.
3313
3314         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
3315         https://bugs.webkit.org/show_bug.cgi?id=55633
3316         <rdar://problem/8963023>
3317
3318         * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::keyboardUIMode):
3319         * WebCoreSupport/WebChromeClient.h:
3320         Implement keyboardUIMode() instead of tabsToLinks(). No change in functionality, since
3321         this platform doesn't observe or have full keyboard access state.
3322
3323 2011-03-03  Peter Kasting  <pkasting@google.com>
3324
3325         Reviewed by James Robinson.
3326
3327         Drop redundant "Windows; " from the Windows-specific User Agent string.
3328         https://bugs.webkit.org/show_bug.cgi?id=54567
3329
3330         * WebView.cpp:
3331         (WebView::standardUserAgentWithApplicationName):
3332
3333 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
3334
3335         Reviewed by Adam Roben.
3336
3337         Part of WebKit2: Need a way to send notifications to client when cookies change
3338         https://bugs.webkit.org/show_bug.cgi?id=55427
3339         <rdar://problem/9056027>
3340         
3341         Add stubs for CookiesStrategy on Windows WebKit1.
3342
3343         * WebCoreSupport/WebPlatformStrategies.cpp:
3344         (WebPlatformStrategies::createCookiesStrategy):
3345         (WebPlatformStrategies::notifyCookiesChanged):
3346         * WebCoreSupport/WebPlatformStrategies.h:
3347
3348 2011-02-28  Chang Shu  <cshu@webkit.org>
3349
3350         Reviewed by Ryosuke Niwa.
3351
3352         Remove the support of Frame::isContentEditable and its dependencies.
3353         https://bugs.webkit.org/show_bug.cgi?id=54292
3354
3355         Remove the WebKit side implementation.
3356
3357         * WebCoreSupport/WebEditorClient.cpp:
3358         * WebCoreSupport/WebEditorClient.h:
3359
3360 2011-02-28  Adam Roben  <aroben@apple.com>
3361
3362         Build TestWebKitAPIInjectedBundle on Windows
3363
3364         Fixes <http://webkit.org/b/55420> run-api-tests doesn't run injected bundle tests on Windows
3365
3366         Reviewed by Darin Adler.
3367
3368         * WebKit.vcproj/WebKit.sln: Added TestWebKitAPIInjectedBundle. Let VS simplify the paths to
3369         the project files.
3370
3371 2011-02-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3372
3373         Unreviewed, rolling out r78789.
3374         http://trac.webkit.org/changeset/78789
3375         https://bugs.webkit.org/show_bug.cgi?id=55409
3376
3377         Incorrect canvas fallback implementation (Requested by
3378         inferno-sec on #webkit).
3379
3380         * AccessibleBase.cpp:
3381         (MSAARole):
3382
3383 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
3384
3385         Reviewed by Pavel Feldman.
3386
3387         DumpRenderTree should reset frame opener between tests.
3388         https://bugs.webkit.org/show_bug.cgi?id=54874
3389
3390         Added clearOpener method to IWebFramePrivate.
3391         Touched WebKit.idl to trigger build scripts.
3392
3393         * Interfaces/IWebFramePrivate.idl:
3394         * Interfaces/WebKit.idl:
3395         * WebFrame.cpp:
3396         (WebFrame::clearOpener):
3397         * WebFrame.h:
3398
3399 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
3400
3401         Unreviewed, rolling out r79764.
3402         http://trac.webkit.org/changeset/79764
3403         https://bugs.webkit.org/show_bug.cgi?id=55295
3404
3405         "broke Chromium builds" (Requested by rniwa on #webkit).
3406
3407         * Interfaces/IWebFramePrivate.idl:
3408         * Interfaces/WebKit.idl:
3409         * WebFrame.cpp:
3410         * WebFrame.h:
3411
3412 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
3413
3414         Reviewed by Pavel Feldman.
3415
3416         DumpRenderTree should reset frame opener between tests.
3417         https://bugs.webkit.org/show_bug.cgi?id=54874
3418
3419         Added clearOpener method to IWebFramePrivate.
3420         Touched WebKit.idl to trigger build scripts.
3421
3422         * Interfaces/IWebFramePrivate.idl:
3423         * Interfaces/WebKit.idl:
3424         * WebFrame.cpp:
3425         (WebFrame::clearOpener):
3426         * WebFrame.h:
3427
3428 2011-02-24  Peter Kasting  <pkasting@google.com>
3429
3430         Reviewed by Eric Seidel.
3431
3432         Drop the "U; " encryption level from the User Agent string.
3433         https://bugs.webkit.org/show_bug.cgi?id=54566
3434
3435         * WebView.cpp:
3436         (WebView::standardUserAgentWithApplicationName):
3437
3438 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
3439
3440         Unreviewed, rolling out r79570.
3441         http://trac.webkit.org/changeset/79570
3442         https://bugs.webkit.org/show_bug.cgi?id=54874
3443
3444         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
3445         was not updated
3446
3447         * Interfaces/IWebFramePrivate.idl:
3448         * Interfaces/WebKit.idl:
3449         * WebFrame.cpp:
3450         * WebFrame.h:
3451
3452 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
3453
3454         Reviewed by Alexey Proskuryakov.
3455
3456         DumpRenderTree should reset frame opener between tests.
3457         https://bugs.webkit.org/show_bug.cgi?id=54874
3458
3459         Added clearOpener method to IWebFramePrivate.
3460         Touched WebKit.idl to trigger build scripts.
3461
3462         * Interfaces/IWebFramePrivate.idl:
3463         * Interfaces/WebKit.idl:
3464         * WebFrame.cpp:
3465         (WebFrame::clearOpener):
3466         * WebFrame.h:
3467
3468 2011-02-23  Patrick Gansterer  <paroga@webkit.org>
3469
3470         Reviewed by Darin Adler.
3471
3472         Rename PLATFORM(CF) to USE(CF)
3473         https://bugs.webkit.org/show_bug.cgi?id=53540
3474
3475         * WebView.cpp:
3476
3477 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3478
3479         Reviewed by Alexey Proskuryakov.
3480
3481         Drop the language tag part from the User Agent string
3482         https://bugs.webkit.org/show_bug.cgi?id=54560
3483
3484         * WebView.cpp:
3485         (WebView::standardUserAgentWithApplicationName):
3486
3487 2011-02-19  Charlie Reis  <creis@chromium.org>
3488
3489         Reviewed by Mihai Parparita.
3490
3491         Ensure loading has stopped in HistoryController::goToItem
3492         https://bugs.webkit.org/show_bug.cgi?id=54517
3493
3494         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
3495
3496         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
3497
3498         * WebCoreSupport/WebFrameLoaderClient.cpp:
3499         (WebFrameLoaderClient::shouldStopLoadingForHistoryItem): Added.
3500         * WebCoreSupport/WebFrameLoaderClient.h:
3501
3502 2011-02-16  David Hyatt  <hyatt@apple.com>
3503
3504         Reviewed by Dan Bernstein.
3505
3506         https://bugs.webkit.org/show_bug.cgi?id=54244
3507         
3508         Convert the line box tree to floating point and eliminate font rounding hacks.  This patch removes all of the rounding
3509         hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
3510         
3511         The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
3512         been changed as well.
3513         
3514         In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
3515         
3516         Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
3517         
3518         Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
3519         still have a precise floating point position.
3520
3521         Justification will now allow subpixel positioning to occur as well.  Platforms that don't support subpixel positioning should already
3522         be rounding justification spacing in their font code.
3523
3524         Many layout test results change on Mac, since rounding hacks were used there and are now gone.
3525
3526         * WebKitGraphics.cpp:
3527         (CenterTruncateStringToWidth):
3528         (RightTruncateStringToWidth):
3529
3530 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
3531
3532         Reviewed by Adam Roben.
3533
3534         HTML5 <details> and <summary>: localized text
3535         https://bugs.webkit.org/show_bug.cgi?id=54260
3536
3537         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
3538         provide the default label to be used by a <details> tag that has no <summary> child.
3539
3540         * WebCoreSupport/WebPlatformStrategies.cpp:
3541         (WebPlatformStrategies::defaultDetailsSummaryText):
3542         * WebCoreSupport/WebPlatformStrategies.h:
3543
3544 2011-02-16  Dominic Mazzoni  <dmazzoni@google.com>
3545
3546         Reviewed by Chris Fleizach.
3547
3548         Add new role for canvas elements.
3549
3550         https://bugs.webkit.org/show_bug.cgi?id=50126
3551
3552         Test: accessibility/canvas-fallback-content.html
3553
3554         * AccessibleBase.cpp:
3555         (MSAARole):
3556
3557 2011-02-15  Kenneth Russell  <kbr@google.com>
3558
3559         Unreviewed. Remove whitespace-only change from
3560         http://trac.webkit.org/changeset/78620 (https://bugs.webkit.org/show_bug.cgi?id=54312)
3561         now that the patch has passed the Windows build bots.
3562
3563         * Interfaces/WebKit.idl:
3564
3565 2011-02-15  Kenneth Russell  <kbr@google.com>
3566
3567         Reviewed by Darin Fisher.
3568
3569         Allow controlling minimum DOMTimer interval on a per-page basis
3570         https://bugs.webkit.org/show_bug.cgi?id=54312
3571
3572         Added needed methods to implement LayoutTestController's new
3573         setMinimumTimerInterval method. Includes whitespace-only change to
3574         WebKit.idl to trigger proper rebuild on bots; will be removed in
3575         subsequent checkin.
3576
3577         * Interfaces/IWebViewPrivate.idl:
3578         * Interfaces/WebKit.idl:
3579         * WebView.cpp:
3580         (WebView::initWithFrame):
3581         (WebView::defaultMinimumTimerInterval):
3582         (WebView::setMinimumTimerInterval):
3583         * WebView.h:
3584
3585 2011-01-26  MORITA Hajime  <morrita@google.com>
3586
3587         Reviewed by Ryosuke Niwa.
3588
3589         Refactoring: Extract TextCheckerClient from EditorClient
3590         https://bugs.webkit.org/show_bug.cgi?id=53213
3591
3592         * WebCoreSupport/WebEditorClient.h:
3593         (WebEditorClient::textChecker):
3594
3595 2011-02-07  Ryosuke Niwa  <rniwa@webkit.org>
3596
3597         Reviewed by Adam Barth.
3598
3599         Add EditorClient callbacks to override isDOMPasteAllowed and javaScriptCanAccessClipboard
3600         https://bugs.webkit.org/show_bug.cgi?id=52417
3601
3602         Added two callback functions, canCopyCut and canPaste to EditorClient. They are currently
3603         not implemented.
3604
3605         * WebCoreSupport/WebEditorClient.cpp:
3606         (WebEditorClient::canCopyCut): Added.
3607         (WebEditorClient::canPaste): Added.
3608         * WebCoreSupport/WebEditorClient.h:
3609
3610 2011-02-14  Brian Weinstein  <bweinstein@apple.com>
3611
3612         Reviewed by Brady Eidson.
3613
3614         Need WebKit API to determine whether we have a site icon for a given URL
3615         https://bugs.webkit.org/show_bug.cgi?id=54400
3616         
3617         This patch implements IWebIconDatabase::hasIconForURL which tells us whether or not
3618         we have a site icon for the given URL.
3619
3620         * Interfaces/IWebIconDatabase.idl: Added new function.
3621         * Interfaces/WebKit.idl: Touched to make sure Interfaces rebuilds.
3622         * WebIconDatabase.cpp:
3623         (WebIconDatabase::hasIconForURL): Call IconDatabase::iconForPageURL to make sure we
3624             load the icon from disk, and call iconURLForPageURL to determine whether or not
3625             we actually have an icon.
3626         * WebIconDatabase.h:
3627
3628 2011-02-11  Geoffrey Garen  <ggaren@apple.com>
3629
3630         Reviewed by Oliver Hunt.
3631
3632         A little more encapsulation for the heap: Removed CollectorHeapIterator
3633         https://bugs.webkit.org/show_bug.cgi?id=54298
3634
3635         * WebCoreStatistics.cpp:
3636         (WebCoreStatistics::javaScriptProtectedObjectTypeCounts):
3637
3638 2011-02-09  Pavel Feldman  <pfeldman@chromium.org>
3639
3640         Reviewed by Yury Semikhatsky.
3641
3642         Web Inspector: follow up on InspectorAgent split -
3643         removing unnecessary methods from InspectorController.
3644         https://bugs.webkit.org/show_bug.cgi?id=54093
3645
3646         * WebInspector.cpp:
3647         (WebInspector::showConsole):
3648         (WebInspector::toggleProfilingJavaScript):
3649
3650 2011-02-08  Adam Barth  <abarth@webkit.org>
3651
3652         Reviewed by Eric Seidel.
3653
3654         Remove orphan code from old parser
3655         https://bugs.webkit.org/show_bug.cgi?id=53984
3656
3657         * WebCoreSupport/WebChromeClient.h:
3658
3659 2011-02-08  David Hyatt  <hyatt@apple.com>
3660
3661         Reviewed by Adam Roben.
3662
3663         <rdar://problem/8932077> REGRESSION (5.0.3-ToT): United boarding pass has wrong layout when printed
3664         
3665         Windows never got patched to pass in the page height to WebCore, so when WebCore's pagination got re-written to depend on this
3666         value, Windows got broken.  Patch setPrinting to be identical to WebKit1 on OS X and to have it take an extra minimum page height
3667         argument.
3668
3669         * WebFrame.cpp:
3670         (WebFrame::setPrinting):
3671         (WebFrame::setInPrintingMode):
3672         * WebFrame.h:
3673
3674 2011-02-02  Ilya Tikhonovsky  <loislo@chromium.org>
3675
3676         Reviewed by Yury Semikhatsky.
3677
3678         Web Inspector: move InspectorController's methods from InspectorAgent to InspectorController.
3679
3680         https://bugs.webkit.org/show_bug.cgi?id=53169
3681
3682         Minor change enforced by major changes in WebCore/inspector/InspectorController.
3683
3684         * WebInspector.cpp:
3685         (WebInspector::isTimelineProfilingEnabled):
3686
3687 2011-02-07  Enrica Casucci  <enrica@apple.com>
3688
3689         Reviewed Adam Roben and Darin Adler.
3690
3691         WebKit2: drag and drop support on Windows.
3692         https://bugs.webkit.org/show_bug.cgi?id=52775
3693
3694         Removed createDragImageForLink from DragClient.
3695
3696         * WebCoreSupport/WebDragClient.cpp:
3697         (WebDragClient::startDrag):
3698         * WebCoreSupport/WebDragClient.h:
3699
3700 2011-02-06  Ryosuke Niwa  <rniwa@webkit.org>
3701
3702         Reviewed by Darin Adler.
3703
3704         OwnArraryPtr.h uses deleteOwnedPtr but doesn’t include OwnPtrCommon.h
3705         https://bugs.webkit.org/show_bug.cgi?id=52867
3706
3707         * WebHistory.cpp:
3708         (WebHistory::orderedLastVisitedDays): Calls adoptArrayPtr.
3709         * WebPreferences.cpp:
3710         (WebPreferences::copyWebKitPreferencesToCFPreferences): Ditto.
3711
3712 2011-02-03  Yury Semikhatsky  <yurys@chromium.org>
3713
3714         Reviewed by Pavel Feldman.
3715
3716         Web Inspector: remove settings related methods from InspectorClient
3717         https://bugs.webkit.org/show_bug.cgi?id=53686
3718
3719         * WebCoreSupport/WebInspectorClient.cpp:
3720         (WebInspectorClient::openInspectorFrontend):
3721         (WebInspectorFrontendClient::WebInspectorFrontendClient):
3722         * WebCoreSupport/WebInspectorClient.h:
3723
3724 2011-02-03  Adam Langley  <agl@chromium.org>
3725
3726         Reviewed by Adam Barth.
3727
3728         Plumb mixed script URL to FrameLoaderClient
3729         https://bugs.webkit.org/show_bug.cgi?id=52384
3730
3731         Regressions covered by http/tests/security/mixedContent/*
3732
3733         * WebCoreSupport/WebFrameLoaderClient.cpp:
3734         (WebFrameLoaderClient::didRunInsecureContent):
3735         * WebCoreSupport/WebFrameLoaderClient.h:
3736
3737 2011-02-02  David Hyatt  <hyatt@apple.com>
3738
3739         Reviewed by Darin Adler.
3740
3741         Removal of right()/bottom(), converting to maxX()/maxY().
3742
3743         * DOMHTMLClasses.cpp:
3744         (DOMHTMLInputElement::rectOnScreen):
3745         * WebCoreSupport/EmbeddedWidget.cpp:
3746         (EmbeddedWidget::frameRectsChanged):
3747         * WebFrame.cpp:
3748         (WebFrame::computePageRects):
3749         * WebScrollBar.cpp:
3750         (WebScrollBar::frameRect):
3751         * WebView.cpp:
3752         (WebView::addToDirtyRegion):
3753         (WebView::visibleContentRect):
3754         (WebView::prepareCandidateWindow):
3755
3756 2011-01-31  Brady Eidson  <beidson@apple.com>
3757
3758         Reviewed by Adam Roben.
3759
3760         Fix the clean Windows build.
3761
3762         * WebKitGraphics.cpp:
3763         (WebDrawText):
3764
3765 2011-01-28  Jon Honeycutt  <jhoneycutt@apple.com>
3766
3767         Downloads in WK2 on Windows should write resume data to bundle
3768         https://bugs.webkit.org/show_bug.cgi?id=53282
3769         <rdar://problem/8753077>
3770
3771         Reviewed by Alice Liu.
3772
3773         * WebDownload.cpp:
3774         (WebDownload::bundlePathForTargetPath):
3775         Use the new WebCore::DownloadBundle function.
3776         (WebDownload::request):
3777
3778         * WebDownload.h:
3779         Removed declarations for functions that were moved to a new location.
3780
3781         * WebDownloadCFNet.cpp:
3782         (WebDownload::initToResumeWithBundle):
3783         Use the new WebCore::DownloadBundle function.
3784         (WebDownload::cancelForResume):
3785         Fix a leak of the resume data CFDataRef by using adoptCF(). Use the new
3786         WebCore::DownloadBundle function.
3787
3788 2011-01-28  Dan Bernstein  <mitz@apple.com>
3789
3790         Reviewed by Sam Weinig.
3791
3792         <select> can't display right-to-left (rtl) languages
3793         https://bugs.webkit.org/show_bug.cgi?id=19785
3794
3795         * WebCoreSupport/WebChromeClient.cpp:
3796         (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added.
3797         * WebCoreSupport/WebChromeClient.h:
3798
3799 2011-01-27  Nate Chapin  <japhet@chromium.org>
3800
3801         Reviewed by Adam Barth.
3802
3803         Use Document::url() instead of FrameLoader::url().
3804         https://bugs.webkit.org/show_bug.cgi?id=41165
3805
3806         * WebFrame.cpp:
3807         (WebFrame::url):
3808
3809 2011-01-27  Sam Weinig  <sam@webkit.org>
3810
3811         Reviewed by Adam Roben.
3812
3813         Fix scrollbars in Safari's Downloads window and Bookmarks view by
3814         implementing two needed functions from ScrollableArea.
3815
3816         * WebScrollBar.cpp:
3817         (WebScrollBar::horizontalScrollbar): Return the WebCore::Scrollbar if
3818         we are a horizontal scrollbar.
3819         (WebScrollBar::verticalScrollbar): Return the WebCore::Scrollbar if we
3820         are a vertical scrollbar.
3821         * WebScrollBar.h:
3822
3823 2011-01-27  Adam Roben  <aroben@apple.com>
3824
3825         Trim down #includes in WebView.h
3826
3827         Rubber-stamped by Steve Falkenburg.
3828
3829         * WebView.cpp: Moved some #includes here from the header file.
3830
3831         * WebView.h: Replaced some broader #includes with more specific ones, plus a
3832         forward-declaration.
3833
3834 2011-01-25  Steve Falkenburg  <sfalken@apple.com>
3835
3836         Windows production build fix.
3837         Build correct configuration of Interfaces for Debug_All.
3838
3839         * WebKit.vcproj/WebKit.submit.sln:
3840
3841 2011-01-25  Steve Falkenburg  <sfalken@apple.com>
3842
3843         Rubber-stamped by Adam Roben.
3844
3845         Windows production build fix.
3846         Use correct environment variable escaping
3847
3848         * WebKit.vcproj/WebKit.make:
3849
3850 2011-01-24  Chris Marrin  <cmarrin@apple.com>
3851
3852         Reviewed by Eric Seidel.
3853
3854         Change ENABLE_3D_CANVAS to ENABLE_WEBGL
3855         https://bugs.webkit.org/show_bug.cgi?id=53041
3856
3857         * WebView.cpp:
3858         (WebView::notifyPreferencesChanged):
3859
3860 2011-01-25  Yury Semikhatsky  <yurys@chromium.org>
3861
3862         Reviewed by Pavel Feldman.
3863
3864         Web Inspector: remove "attached" state related methods from InspectorAgent
3865         https://bugs.webkit.org/show_bug.cgi?id=53086
3866
3867         * WebCoreSupport/WebInspectorClient.cpp:
3868         (WebInspectorFrontendClient::attachWindow):
3869         (WebInspectorFrontendClient::detachWindow):
3870         (WebInspectorFrontendClient::showWindowWithoutNotifications):
3871         * WebCoreSupport/WebInspectorClient.h:
3872
3873 2011-01-24  Adam Roben  <aroben@apple.com>
3874
3875         Windows Production build fix
3876
3877         * WebKit.vcproj/WebKit.make: Update for move of WebKit into Source.
3878
3879 2011-01-21  Nikolas Zimmermann  <nzimmermann@rim.com>
3880
3881         Reviewed by Dirk Schulze.
3882
3883         Introduce FontMetrics abstraction
3884         https://bugs.webkit.org/show_bug.cgi?id=51456
3885
3886         * FullscreenVideoController.cpp: Use FontMetrics instead of Font to access the metrics.
3887         (FullscreenVideoController::draw):
3888         * WebCoreSupport/WebDragClient.cpp: Ditto.
3889         (WebDragClient::createDragImageForLink):
3890         * WebKitGraphics.cpp: Ditto.
3891         (FontMetrics):
3892
3893 2011-01-21  Chris Rogers  <crogers@google.com>
3894
3895         Reviewed by Darin Fisher.
3896
3897         Add run-time enable support for the web audio API
3898         https://bugs.webkit.org/show_bug.cgi?id=52741
3899
3900         * WebPreferenceKeysPrivate.h:
3901         * WebView.cpp:
3902         (WebView::notifyPreferencesChanged):
3903
3904 2011-01-21  Sam Weinig  <sam@webkit.org>
3905
3906         Fix windows build.
3907
3908         * WebScrollBar.h:
3909
3910 2011-01-21  Sam Weinig  <sam@webkit.org>
3911
3912         Reviewed by Anders Carlsson.
3913
3914         Part 2 of "Cleanup Scrollbar/ScrollbarClient relationship"
3915         https://bugs.webkit.org/show_bug.cgi?id=52779
3916
3917         Rename ScrollbarClient -> ScrollableArea.
3918
3919         * WebScrollBar.cpp:
3920         (WebScrollBar::scroll):
3921         * WebScrollBar.h:
3922
3923 2011-01-20  Adam Roben  <aroben@apple.com>
3924
3925         Update for CACFLayerTreeHost changes
3926
3927         Fixes <http://webkit.org/b/52852> Flushing layer changes and rendering are intertwined in
3928         CACFLayerTreeHost, but shouldn't be
3929
3930         Reviewed by Simon Fraser.
3931
3932         * WebView.cpp:
3933         (WebView::paint): Changed to flush layer changes via CACFLayerTreeHost, which will call back
3934         to our own flushing function if needed.
3935
3936         * WebView.h: Removed shouldRender, which is no longer used or needed.
3937
3938 2011-01-21  Adam Roben  <aroben@apple.com>
3939
3940         Update for WKCACFLayerRenderer -> CACFLayerTreeHost rename
3941
3942         Also renamed WebView::m_layerRenderer to WebView::m_layerTreeHost to match.
3943
3944         Fixes <http://webkit.org/b/52898> WKCACFLayerRenderer sounds like a render object, but isn't
3945
3946         Reviewed by Simon Fraser.
3947
3948         * WebPreferences.cpp:
3949         * WebView.cpp:
3950         (WebView::setAcceleratedCompositing): Also made sure to remove our HWND from the layer tree
3951         host before we get rid of the layer tree host itself.
3952         * WebView.h:
3953
3954 2011-01-21  Adam Roben  <aroben@apple.com>
3955
3956         Replace some "sync compositing state" terminology with "flush pending GraphicsLayer changes"
3957
3958         This seems to be the direction in which our code is moving. I chose "GraphicsLayer" as
3959         opposed to just "layer" because there are cases where we flush changes to CACFLayers that
3960         don't have a corresponding GraphicsLayer.
3961
3962         Fixes <http://webkit.org/b/52894> "Sync compositing state" terminology in
3963         WKCACFLayerRenderer and friends is confusing
3964
3965         Reviewed by Simon Fraser.
3966
3967         * WebCoreSupport/WebChromeClient.cpp:
3968         (WebChromeClient::scheduleCompositingLayerSync): Updated for WebView changes.
3969
3970         * WebView.cpp:
3971         (WebView::paint): Updated for rename.
3972         (WebView::flushPendingGraphicsLayerChangesSoon): Renamed from scheduleCompositingLayerSync.
3973         (WebView::notifySyncRequired): Updated for rename.
3974         (WebView::flushPendingGraphicsLayerChanges): Renamed from syncCompositingState.
3975
3976         * WebView.h: Did the renames.
3977
3978 2011-01-20  Sam Weinig  <sam@webkit.org>
3979
3980         Reviewed by Dave Hyatt.
3981
3982         Cleanup Scrollbar/ScrollbarClient relationship
3983         https://bugs.webkit.org/show_bug.cgi?id=52779
3984
3985         * WebScrollBar.cpp:
3986         (WebScrollBar::WebScrollBar):
3987         (WebScrollBar::setValue):
3988         (WebScrollBar::value):
3989         (WebScrollBar::scroll):
3990         (WebScrollBar::scrollPosition):
3991         (WebScrollBar::setScrollOffset):
3992         * WebScrollBar.h:
3993
3994 2011-01-19  Adam Roben  <aroben@apple.com>
3995
3996         Update for WKCACFLayerRenderer changes
3997
3998         Fixes <http://webkit.org/b/52749> WKCACFLayerRenderer should be
3999         ref-counted
4000
4001         Reviewed by Simon Fraser.
4002
4003         * WebView.cpp:
4004         (WebView::~WebView): Added some assertions to make sure we've gotten rid of our
4005         compositing-related members. My biggest concern was making sure that m_layerRenderer was
4006         gone, which would also mean we had nulled out its client pointer.
4007         (WebView::setAcceleratedCompositing): Changed to call WKCACFLayerRenderer::setClient instead
4008         of passing the client into create(), and to clear out the client before nulling out
4009         m_layerRenderer.
4010
4011         * WebView.h: Changed m_layerRenderer from an OwnPtr to a RefPtr.
4012
4013 2011-01-19  Adam Roben  <aroben@apple.com>
4014
4015         Teach WebView::scrollBackingStore about compositing mode
4016
4017         Test:
4018             compositing/scroll-painted-composited-content.html
4019
4020         Fixes <http://webkit.org/b/52720> REGRESSION (r75987): Assertion failure in
4021         WebView::scrollBackingStore when scrolling page with composited content
4022
4023         Reviewed by Anders Carlsson.
4024
4025         * WebView.cpp:
4026         (WebView::scrollBackingStore): Do something sensible (though naive) when in compositing
4027         mode, rather than incorrectly asserting that this function is never called in that case. For
4028         now we just repaint the entire scrolled region; someday hopefully we can avoid having to
4029         repaint the areas that have just been moved.
4030
4031 2011-01-19  Simon Fraser  <simon.fraser@apple.com>
4032
4033         Reviewed by Sam Weinig.
4034
4035         GraphicsLayers in subframes can get sync'd multiple times
4036         https://bugs.webkit.org/show_bug.cgi?id=52489
4037
4038         * WebView.cpp:
4039         (WebView::syncCompositingState): syncCompositingStateRecursive()
4040         was renamed to syncCompositingStateIncludingSubframes().
4041
4042 2011-01-17  Adam Roben  <aroben@apple.com>
4043
4044         Update for WKCACFLayerRenderer changes
4045
4046         Fixes <http://webkit.org/b/52587> WKCACFLayerRenderer is hard to use
4047
4048         Reviewed by Chris Marrin.
4049
4050         * WebView.cpp:
4051         (WebView::WebViewWndProc): Removed call to layerRendererBecameVisible
4052         when handling WM_SHOWWINDOW. All this did was try to create the
4053         renderer, but it had already been created in setAcceleratedCompositing,
4054         so wasn't needed.
4055         (WebView::setAcceleratedCompositing): Removed call to createRenderer;
4056         setHostWindow does this for us now.
4057
4058         * WebView.h: Removed animationsStarted and layerRendererBecameVisible.
4059
4060 2011-01-17  Adam Roben  <aroben@apple.com>
4061
4062         Paint directly into a GraphicsLayer when using accelerated compositing
4063
4064         Before this patch, we were painting into our normal backing store
4065         HBITMAP, wrapping it in a CGImage, and handing it off to Core
4066         Animation. This had at least two disadvantages:
4067            1) The bitmap could be modified while Core Animation was using it.
4068            2) It introduced extra complexity.
4069
4070         When entering accelerated compositing mode, WebView now creates a
4071         GraphicsLayer to draw into. This GraphicsLayer sits between the root
4072         layer (owned by WKCACFLayerRenderer) and the RenderView's layer. When
4073         WebView invalidates, it just calls setNeedsDisplayInRect on its
4074         GraphicsLayer. When WebView paints, it just tells its
4075         WKCACFLayerRenderer to paint, which will call back to WebView to draw
4076         into the GraphicsLayer if it has a dirty region. This is very similar
4077         to the current implementation of LayerBackedDrawingArea in WebKit2.
4078
4079         Fixes <http://webkit.org/b/52582> WebView should paint directly into a
4080         GraphicsLayer when in accelerated compositing mode
4081
4082         Reviewed by Simon Fraser and Chris Marrin.
4083
4084         * WebCoreSupport/WebChromeClient.cpp:
4085         (WebChromeClient::attachRootGraphicsLayer):
4086         (WebChromeClient::scheduleCompositingLayerSync):
4087         Updated for WebView changes.
4088
4089         * WebView.cpp:
4090         (WebView::repaint): When using accelerated compositing, just invalidate
4091         our backing layer. This matches the behavior of LayerBackedDrawingArea.
4092         (WebView::deleteBackingStore): Removed accelerated compositing code.
4093         The WKCACFLayerRenderer doesn't need to know about our backing store
4094         anymore; we don't use it at all when in accelerated compositing mode.
4095         (WebView::addToDirtyRegion): When using accelerated compositing, just
4096         invalidate our backing layer.
4097         (WebView::scrollBackingStore): Added an assertion that this isn't
4098         called in accelerated compositing mode.
4099         (WebView::sizeChanged): Update our backing layer's size, too, and
4100         invalidate it.
4101         (WebView::updateBackingStore): Added an assertion that this isn't
4102         called in accelerated compositing mode.
4103         (WebView::paint): If we're in accelerated compositing mode, sync our
4104         compositing state. If we're *still* in accelerated compositing mode,
4105         just tell our WKCACFLayerRenderer to paint and clear our dirty region.
4106         (The later changes in this function are just un-indenting code that
4107         used to be inside an if.)
4108
4109         (WebView::paintIntoBackingStore):
4110         (WebView::paintIntoWindow):
4111         Added assertions that these aren't called in accelerated compositing
4112         mode.
4113
4114         (WebView::WebViewWndProc): Updated WM_XP_THEMECHANGED handling for
4115         removal of setRootLayerNeedsDisplay.
4116         (WebView::setRootChildLayer): Changed to take a GraphicsLayer. We now
4117         set the layer as a child of our own backing layer.
4118         (WebView::scheduleCompositingLayerSync): Just call through to
4119         WKCACFLayerRenderer.
4120         (WebView::setAcceleratedCompositing): Create our backing layer and set
4121         it as the child of WKCACFLayerRenderer's root layer.
4122         (WebView::notifyAnimationStarted): Added. We never expect this
4123         GraphicsLayerClient override to be called, as we don't use animations
4124         on our backing layer.
4125         (WebView::notifySyncRequired): Added. Just schedule a sync.
4126         (WebView::paintContents): Added. Just clip and paint!
4127
4128         (WebView::showDebugBorders):
4129         (WebView::showRepaintCounter):
4130         Added. These just call through to Settings.
4131
4132         (WebView::syncCompositingState): Changed to first update layout, then
4133         sync state for our backing layer, then sync WebCore's state. This
4134         matches LayerBackedDrawingArea.
4135
4136         * WebView.h: WebView now implements the GraphicsLayerClient interface.
4137         Removed setRootLayerNeedsDisplay; it's been replaced by calling
4138         setNeedsDisplay on our backing layer and calling
4139         syncCompositingStateSoon on WKCACFLayerRenderer as needed. Removed
4140         updateRootLayerContents; that function was used to pass our backing
4141         store to Core Animation, which we no longer do. Added m_backingLayer.
4142
4143 2011-01-17  Tony Gentilcore  <tonyg@chromium.org>
4144
4145         Reviewed by Alexey Proskuryakov.
4146
4147         Fix some headers with missing or misspelled #ifndef guards
4148         https://bugs.webkit.org/show_bug.cgi?id=52545
4149
4150         * WebKitStatistics.h:
4151
4152 2011-01-17  Pavel Feldman  <pfeldman@chromium.org>
4153
4154         Reviewed by Yury Semikhatsky.
4155
4156         Web Inspector: simplify debugger enabling routine.
4157         https://bugs.webkit.org/show_bug.cgi?id=52472
4158
4159         * WebInspector.cpp:
4160         (WebInspector::toggleDebuggingJavaScript):
4161
4162 2011-01-16  Adam Barth  <abarth@webkit.org>
4163
4164         Rubber-stamped by Eric Seidel.
4165
4166         Move WebKit into Source
4167         https://bugs.webkit.org/show_bug.cgi?id=52530
4168
4169         * WebKit.vcproj/Interfaces.vcproj:
4170         * WebKit.vcproj/WebKit.sln:
4171         * WebKit.vcproj/WebKit.vcproj:
4172         * WebKit.vcproj/WebKitGUID.vcproj:
4173
4174 2011-01-15  Adam Barth  <abarth@webkit.org>
4175
4176         Rubber-stamped by Eric Seidel.
4177
4178         Move WebKit2 into Source
4179         https://bugs.webkit.org/show_bug.cgi?id=52438
4180
4181         Update reference to WebKit2.
4182
4183         * WebKit.vcproj/WebKit.sln:
4184
4185 2011-01-14  Yuzo Fujishima  <yuzo@google.com>
4186
4187         Reviewed by Antti Koivisto.
4188
4189         Rename cache() to memoryCache()
4190         https://bugs.webkit.org/show_bug.cgi?id=52433
4191
4192         * WebCache.cpp:
4193         (WebCache::statistics):
4194         (WebCache::empty):
4195         (WebCache::setDisabled):
4196         (WebCache::disabled):
4197         * WebView.cpp:
4198         (WebView::setCacheModel):
4199
4200 2011-01-10  Geoffrey Garen  <ggaren@apple.com>
4201
4202         Try to fix Windows build.
4203
4204         * WebJavaScriptCollector.cpp: Updated for rename to Heap.*. (Didn't catch
4205         this one before because it was miscapitalized.)
4206
4207 2011-01-09  Xianzhu Wang <phnixwxz@gmail.com>
4208
4209         Reviewed by Darin Fisher.
4210
4211         https://bugs.webkit.org/show_bug.cgi?id=41441
4212         createWindow method should only do window-creating without URL navigation
4213
4214         * WebCoreSupport/WebChromeClient.cpp:
4215         (WebChromeClient::createWindow):
4216
4217 2011-01-07  Adam Barth  <abarth@webkit.org>
4218
4219         Rubber-stamped by Eric Seidel.
4220
4221         Move WebCore to Source
4222         https://bugs.webkit.org/show_bug.cgi?id=52050
4223
4224         * WebKit.vcproj/WebKit.sln:
4225
4226 2011-01-06  Gavin Barraclough  <barraclough@apple.com>
4227
4228         Reviewed by Geoff Garen.
4229
4230         Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
4231
4232         The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
4233         destructor early, in order to release wrappers once we know we no longer intend to use them.
4234         Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
4235         lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
4236         A sequence of events that triggers the bug would look like this:
4237
4238         (1) Create a DOMWrapperWorld.
4239         (2) Register a timer in the world.
4240         (3) Call unregisterWorld() on the world.
4241         (4) Timer goes off, code is executed in the world, creates a Node not attached to&nb