2010-12-02 John Knottenbelt <jknotten@chromium.org>
[WebKit-https.git] / WebKit / win / ChangeLog
1 2010-12-02  John Knottenbelt  <jknotten@chromium.org>
2
3         Reviewed by Steve Block.
4
5         Move requestGeolocationPermissionForFrame to GeolocationClient
6         https://bugs.webkit.org/show_bug.cgi?id=50061
7
8         This change facilitates client-based geolocation implementation by
9         bringing together permission control into the geolocation client
10         interface.
11
12         Move method ChromeClient::requestGeolocationPermissionForFrame to
13         GeolocationClient::requestPermission. The moved code is unchanged
14         except that requestPermission now takes only one argument (Geolocation*),
15         the Frame parameter is retrieved from the Geolocation object and we need to
16         call m_webView.get() as it is a COMPtr in GeolocationClient.
17
18         * WebCoreSupport/WebChromeClient.cpp:
19         * WebCoreSupport/WebChromeClient.h:
20         * WebCoreSupport/WebGeolocationClient.cpp:
21         (WebGeolocationClient::requestPermission):
22         * WebCoreSupport/WebGeolocationClient.h:
23         (WebGeolocationClient::cancelPermissionRequest):
24
25 2010-12-01  Jia Pu  <jpu@apple.com>
26
27         Reviewed by Darin Adler.
28
29         Support multiple correction candidates panel for misspelled word on Mac OS X.
30         https://bugs.webkit.org/show_bug.cgi?id=50137
31         <rdar://problem/8568059>
32
33         Adopted new function signature defined in base class.
34
35         * WebCoreSupport/WebEditorClient.cpp:
36         (WebEditorClient::getGuessesForWord):
37         * WebCoreSupport/WebEditorClient.h:
38
39 2010-12-01  Steve Falkenburg  <sfalken@apple.com>
40
41         Reviewed by Adam Roben.
42
43         WinCairo build should not use link-time code generation (LTCG)
44         https://bugs.webkit.org/show_bug.cgi?id=50353
45
46         * WebKit.vcproj/Interfaces.vcproj:
47         * WebKit.vcproj/WebKit.vcproj:
48         * WebKit.vcproj/WebKitGUID.vcproj:
49
50 2010-12-01  Steve Falkenburg  <sfalken@apple.com>
51
52         Reviewed by Adam Roben.
53
54         vcproj changes can't be applied cleanly by the Windows EWS bot
55         https://bugs.webkit.org/show_bug.cgi?id=50328
56
57         * WebKit.vcproj/Interfaces.vcproj: Modified property svn:eol-style.
58         * WebKit.vcproj/InterfacesCommon.vsprops: Added property svn:eol-style.
59         * WebKit.vcproj/WebKit.sln: Modified property svn:eol-style.
60         * WebKit.vcproj/WebKit.submit.sln: Modified property svn:eol-style.
61         * WebKit.vcproj/WebKit.vcproj: Modified property svn:eol-style.
62         * WebKit.vcproj/WebKitGUID.vcproj: Modified property svn:eol-style.
63         * WebKit.vcproj/WebKitGUIDCommon.vsprops: Added property svn:eol-style.
64         * WebKit.vcproj/WebKitLibCommon.vsprops: Added property svn:eol-style.
65
66 2010-11-30  Steve Falkenburg  <sfalken@apple.com>
67
68         Reviewed by Adam Roben.
69
70         All projects on Windows should use cmd files for build events
71         https://bugs.webkit.org/show_bug.cgi?id=50213
72
73         * WebKit.vcproj/InterfacesCommon.vsprops:
74         * WebKit.vcproj/InterfacesPostBuild.cmd: Added.
75         * WebKit.vcproj/InterfacesPreBuild.cmd: Added.
76         * WebKit.vcproj/WebKitGUIDCommon.vsprops:
77         * WebKit.vcproj/WebKitGUIDPostBuild.cmd: Added.
78         * WebKit.vcproj/WebKitGUIDPreBuild.cmd: Added.
79         * WebKit.vcproj/WebKitLibCommon.vsprops:
80         * WebKit.vcproj/WebKitLibPostBuild.cmd: Added.
81         * WebKit.vcproj/WebKitLibPreBuild.cmd: Added.
82
83 2010-11-29  Brent Fulgham  <bfulgham@webkit.org>
84
85         Unreviewed build correction.
86
87         * WebKit.vcproj/WebKit.vcproj: Update WebKit project to
88           use WinCairo.vsprops definition for appropriate build targets.
89
90 2010-11-22  Adam Roben  <aroben@apple.com>
91
92         Use paths relative to $WebKitVSPropsRedirectionDir to access shared .vsprops files
93
94         Apple's Windows build allows placing header files and import libraries for WebKit's
95         dependencies (CoreGraphics, CFNetwork, SQLite, etc.) outside the source tree via the
96         $WebKitLibrariesDir environment variable. This is both required for production builds and
97         convenient for Apple-internal developer builds. Apple's production builds also require that
98         WebKit's shared .vsprops files be accessed relative to $WebKitLibrariesDir. In production
99         builds, the files are copied into that directory tree by the
100         WebKitLibraries/win/tools/WinTools.make file. In Apple-internal developer builds, the
101         copying is done by
102         JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.make.
103
104         This .vsprops copying is problematic in one very important case: when a developer updates
105         their source tree and then tries to build. Visual Studio only reads .vsprops files when a
106         project is first loaded. So, when Visual Studio is first opened after the .vsprops files are
107         updated, it reads in the old files that were already residing in $WebKitLibrariesDir. When a
108         build is started, JavaScriptCoreGenerated.make copies the new .vsprops files into
109         $WebKitLibrariesDir, but Visual Studio will not pick up the changes.  The rest of the build
110         will proceed with out-of-date .vsprops files, which will likely result in a build failure.
111
112         To fix this, we now use normal relative paths to access the .vsprops files in the source
113         tree rather than in $WebKitLibrariesDir, but prefix those paths with a new environment
114         variable, $WebKitVSPropsRedirectionDir. In developer builds, this environment variable is
115         unset, so the normal relative paths are used to read the .vsprops files out of the source
116         tree directly. In production builds, this environment variable is set to a fake directory
117         that will cause the .vsprops files in $WebKitLibrariesDir to be found when the relative path
118         is resolved.
119         
120         For example, JavaScriptCore.vcproj uses this path for FeatureDefines.vsprops:
121
122         $(WebKitVSPropsRedirectionDir)..\..\..\WebKitLibraries\win\tools\vsprops\FeatureDefines.vsprops
123
124         In developer builds, where $WebKitVSPropsRedirectionDir is unset, this will point to the
125         files in WebKitLibraries\win\tools\vsprops in the source tree. In production builds,
126         JavaScriptCore.make sets $WebKitVSPropsRedirectionDir to
127         "$(SRCROOT)\AppleInternal\tools\vsprops\OpenSource\1\2\3\", so the full path for
128         FeatureDefines.vsprops becomes:
129
130         $(SRCROOT)\AppleInternal\tools\vsprops\OpenSource\1\2\3\..\..\..\WebKitLibraries\win\tools\vsprops\FeatureDefines.vsprops
131
132         which resolves to:
133
134         $(SRCROOT)\AppleInternal\tools\vsprops\OpenSource\WebKitLibraries\win\tools\vsprops\FeatureDefines.vsprops
135
136         (We rely on the fact that Windows doesn't care whether the directories "1", "2", and "3"
137         actually exist since they are matched by an equal number of ".." path components.)
138
139         Note that Visual Studio still won't pick up changes made to .vsprops files while Visual
140         Studio is open, but that problem hasn't seemed to cause developers many headaches so far.
141
142         Fixes <http://webkit.org/b/49181> Windows build fails mysteriously when .vsprops files are
143         updated
144
145         Reviewed by Dave Hyatt.
146
147         * WebKit.vcproj/WebKit.make: Set $WebKitVSPropsRedirectionDir so that production builds can
148         find the .vsprops files.
149
150         * WebKit.vcproj/WebKit.vcproj:
151         * WebKit.vcproj/Interfaces.vcproj:
152         * WebKit.vcproj/WebKitGUID.vcproj:
153         Changed to use paths relative to $WebKitVSPropsRedirectionDir to access shared .vsprops
154         files.
155
156 2010-11-19  Steve Falkenburg  <sfalken@apple.com>
157
158         Reviewed by Adam Roben.
159
160         Add Debug_Cairo_CFLite and Release_Cairo_CFLite configurations for all vcproj files
161         https://bugs.webkit.org/show_bug.cgi?id=49819
162
163         * WebKit.vcproj/Interfaces.vcproj:
164         * WebKit.vcproj/WebKit.sln:
165         * WebKit.vcproj/WebKit.vcproj:
166         * WebKit.vcproj/WebKitGUID.vcproj:
167
168 2010-11-19  Steve Falkenburg  <sfalken@apple.com>
169
170         Reviewed by Darin Adler.
171
172         Normalize Cairo/CFLite project/solution configuration names
173         https://bugs.webkit.org/show_bug.cgi?id=49818
174
175         * WebKit.vcproj/WebKit.sln:
176         * WebKit.vcproj/WebKit.vcproj:
177
178 2010-11-18  Steve Falkenburg  <sfalken@apple.com>
179
180         Reviewed by Adam Roben.
181
182         Windows vcproj configuration names should be normalized across projects
183         https://bugs.webkit.org/show_bug.cgi?id=49776
184
185         * WebKit.vcproj/Interfaces.vcproj:
186         * WebKit.vcproj/WebKit.sln:
187
188 2010-11-18  Steve Falkenburg  <sfalken@apple.com>
189
190         Reviewed by Adam Roben.
191
192         Remove leftover Windows Debug_Internal configurations
193         https://bugs.webkit.org/show_bug.cgi?id=49758
194
195         * WebKit.vcproj/WebKit.vcproj:
196         * WebKit.vcproj/WebKitGUID.vcproj:
197
198 2010-11-18  Steve Falkenburg  <sfalken@apple.com>
199
200         Reviewed by Adam Roben.
201
202         Debug_Internal Windows configuration is unnecessary, should be removed
203         https://bugs.webkit.org/show_bug.cgi?id=49753
204
205         * WebKitPrefix.h:
206
207 2010-11-17  Steve Falkenburg  <sfalken@apple.com>
208
209         Reviewed by Adam Roben.
210
211         WebKit Interfaces project should use vsprops file for common build settings
212         https://bugs.webkit.org/show_bug.cgi?id=49713
213         
214         * WebKit.vcproj/Interfaces.vcproj:
215         * WebKit.vcproj/InterfacesCommon.vsprops: Added.
216
217 2010-11-16  Steve Falkenburg  <sfalken@apple.com>
218
219         Reviewed by Adam Roben.
220
221         Disable LTCG for Windows Release builds. Add new Release_LTCG configuration.
222         https://bugs.webkit.org/show_bug.cgi?id=49632
223
224         * WebKit.vcproj/Interfaces.vcproj:
225         * WebKit.vcproj/WebKit.make:
226         * WebKit.vcproj/WebKit.sln:
227         * WebKit.vcproj/WebKit.submit.sln:
228         * WebKit.vcproj/WebKit.vcproj:
229         * WebKit.vcproj/WebKitGUID.vcproj:
230
231 2010-11-16  Dave Hyatt  <hyatt@apple.com>
232
233         Reviewed by Dan Bernstein.
234
235         https://bugs.webkit.org/show_bug.cgi?id=11004
236         
237         font-size:0 is ignored.  Remove the minimum font size of 1 in CSSStyleSelector.
238         Change the pref value for minimum font size from 1 to 0.  Make sure to never use the NSFont's size,
239         since it doesn't honor a size of 0.  Instead pass the size in to the FontPlatformData(NSFont*) version
240         of the constructor rather than using [NSFont pointSize].
241
242         https://bugs.webkit.org/show_bug.cgi?id=49582
243         
244         Negative leading is not handled correctly.  There are two bugs here.  The first is that
245         maxAscent and maxDescent can be negative, so we need a notion of whether or not we have
246         set them before so that we can allow them to be < 0.
247         
248         The second issue is that we should understand where fonts will end up relative to
249         our baseline (excluding line height), and only allow those boxes to impact ascent and
250         descent if the actual font box (without factoring in line height) is above or below the
251         root line box baseline.
252
253         Added fast/css/negative-leading.html
254         
255         These two bug fixes have to land together to keep the Acid 3 test rendering correctly.
256
257         * WebPreferences.cpp:
258         (WebPreferences::initializeDefaultSettings):
259
260 2010-11-16  Steve Falkenburg  <sfalken@apple.com>
261
262         Reviewed by Adam Roben.
263
264         Use vsprops files for common settings in Windows WebKit
265         https://bugs.webkit.org/show_bug.cgi?id=49622
266
267         * WebKit.vcproj/WebKit.vcproj:
268         * WebKit.vcproj/WebKitCommon.vsprops: Added.
269
270 2010-11-16  Steve Falkenburg  <sfalken@apple.com>
271
272         Rubber stamped by Adam Roben.
273
274         Remove unnecessary def file, remove outdated def files from vcproj.
275
276         * WebKit.vcproj/WebKit.vcproj:
277         * WebKit.vcproj/WebKit_debug.def: Removed.
278
279 2010-11-12  John Knottenbelt  <jknotten@chromium.org>
280
281         Reviewed by Steve Block.
282
283         Rename GeolocationControllerClient to GeolocationClient.
284         https://bugs.webkit.org/show_bug.cgi?id=49259
285
286         * WebCoreSupport/WebGeolocationClient.cpp: Renamed from WebKit/win/WebCoreSupport/WebGeolocationControllerClient.cpp.
287         (WebGeolocationClient::WebGeolocationClient):
288         (WebGeolocationClient::geolocationDestroyed):
289         (WebGeolocationClient::startUpdating):
290         (WebGeolocationClient::stopUpdating):
291         (WebGeolocationClient::lastPosition):
292         * WebCoreSupport/WebGeolocationClient.h: Renamed from WebKit/win/WebCoreSupport/WebGeolocationControllerClient.h.
293         (WebGeolocationClient::setEnableHighAccuracy):
294         * WebKit.vcproj/WebKit.vcproj:
295         * WebView.cpp:
296         (WebView::initWithFrame):
297
298 2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
299
300         Reviewed by David Hyatt.
301
302         HTML5 Ruby support should be mandatory feature
303         https://bugs.webkit.org/show_bug.cgi?id=49272
304
305         * WebKitPrefix.h: Touch it to avoid incremental build failure on Windows.
306
307 2010-11-08  Alexey Proskuryakov  <ap@apple.com>
308
309         Windows build fix.
310
311         * WebCoreSupport/WebChromeClient.h: Added namespace prefix.
312
313 2010-11-08  Alexey Proskuryakov  <ap@apple.com>
314
315         Reviewed by Darin Adler.
316
317         https://bugs.webkit.org/show_bug.cgi?id=48685
318         Notify UI process about focused frame
319
320         Added an empty implementation of the new ChromeClient method.
321
322         * WebCoreSupport/WebChromeClient.cpp:
323         (WebChromeClient::focusedFrameChanged):
324         * WebCoreSupport/WebChromeClient.h:
325
326 2010-11-07  Adam Barth  <abarth@webkit.org>
327
328         Reviewed by Eric Seidel.
329
330         Rename Cache to MemoryCache
331         https://bugs.webkit.org/show_bug.cgi?id=49159
332
333         * WebCache.cpp:
334         (WebCache::statistics):
335         * WebFrame.cpp:
336         * WebView.cpp:
337
338 2010-11-05  Chris Marrin  <cmarrin@apple.com>
339
340         Reviewed by Simon Fraser.
341
342         Move resumeAnimations/suspendAnimations from Frame to AnimationController.
343         https://bugs.webkit.org/show_bug.cgi?id=49073
344
345         * WebFrame.cpp:
346         (WebFrame::suspendAnimations):
347         (WebFrame::resumeAnimations):
348
349 2010-11-05  Brian Weinstein  <bweinstein@apple.com>
350
351         Reviewed by Anders Carlsson.
352
353         Assertion failure in PluginStream::~PluginStream when running userscripts/user-script-plugin-document.html
354         https://bugs.webkit.org/show_bug.cgi?id=48751
355         <rdar://problem/8615536>
356         
357         Always call committedLoad in WebFrameLoaderClient::finishedLoading, even if we have a manual loader. We were
358         running into a case where we were trying to load an empty plugin document, which uses a manual loader, and
359         PluginStream::didFinishLoading was never being called. The stream was never being stopped, making us fire
360         an assert in the PluginStream destructor.
361
362         * WebCoreSupport/WebFrameLoaderClient.cpp:
363         (WebFrameLoaderClient::finishedLoading):
364
365 2010-11-05  Chris Marrin  <cmarrin@apple.com>
366
367         Reviewed by Simon Fraser.
368
369         Make suspendAnimations/resumeAnimations and setCSSAnimations traverse through subframes and remember state
370         https://bugs.webkit.org/show_bug.cgi?id=46945
371
372         * WebFrame.cpp:
373         (WebFrame::suspendAnimations):
374         (WebFrame::resumeAnimations):
375
376 2010-11-05  Patrick Gansterer  <paroga@webkit.org>
377
378         Reviewed by David Kilzer.
379
380         Replace ARRAYSIZE with WTF_ARRAY_LENGTH
381         https://bugs.webkit.org/show_bug.cgi?id=48903
382
383         * WebCoreSupport/WebChromeClient.cpp:
384         (WebChromeClient::exceededDatabaseQuota):
385         * WebKitDLL.cpp:
386         (DllGetClassObject):
387         * WebView.cpp:
388         (WebView::mouseWheel):
389
390 2010-11-02  Daniel Bates  <dbates@rim.com>
391
392         Reviewed by Adam Barth.
393
394         For unnamed frames, window.name returns a generated name
395         https://bugs.webkit.org/show_bug.cgi?id=6751
396
397         Part 1 of 2.
398
399         Substitute FrameTree::uniqueName() for FrameTree::name() in the Apple Windows port.
400
401         * WebFrame.cpp:
402         (WebFrame::name):
403
404 2010-11-02  Brady Eidson  <beidson@apple.com>
405
406         Reviewed by Anders Carlsson.
407
408         <rdar://problem/8346191> and https://bugs.webkit.org/show_bug.cgi?id=48868
409         Implement IMutableWebRequest::setTimeoutInterval
410
411         * WebMutableURLRequest.cpp:
412         (WebMutableURLRequest::setTimeoutInterval):
413
414 2010-11-02  Daniel Bates  <dbates@rim.com>
415
416         Reviewed by Martin Robinson.
417
418         Set frame name before appending it to the frame tree in the Apple Windows,
419         GTK, and EFL ports
420         https://bugs.webkit.org/show_bug.cgi?id=48806
421
422         Make the frame creation process in the Apple Windows-port consistent
423         with the Mac, Qt, and Haiku ports. In particular, set the name of
424         the new frame before it's appended to the frame tree.
425
426         At this time we cannot test this change since it is being masked by
427         HTMLFrameElementBase::setName() <http://trac.webkit.org/browser/trunk/WebCore/html/HTMLFrameElementBase.cpp?rev=70976#L160>.
428         We'll be able to test this once we fix bug #6751.
429
430         * WebCoreSupport/WebFrameLoaderClient.cpp:
431         (WebFrameLoaderClient::createFrame):
432
433 2010-11-01  Jenn Braithwaite  <jennb@chromium.org>
434
435         Reviewed by Adam Roben.
436
437         Windows: Update resource tracking when moving a frame between documents
438         https://bugs.webkit.org/show_bug.cgi?id=48364
439
440         * Interfaces/IWebResourceLoadDelegatePrivate2.idl:Added
441         Added removeIdentifierForRequest.
442         * Interfaces/WebKit.idl:
443         Added IWebResourceLoadDelegatePrivate2.idl.
444         * WebCoreSupport/WebFrameLoaderClient.cpp:
445         (WebFrameLoaderClient::transferLoadingResourceFromPage):
446
447 2010-11-01  Brady Eidson  <beidson@apple.com>
448
449         Reviewed by Anders Carlsson.
450
451         <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
452         Context menu support for WebKit 2.
453
454         * WebCoreSupport/WebChromeClient.h:
455         (WebChromeClient::showContextMenu):
456
457 2010-11-01  Adam Roben  <aroben@apple.com>
458
459         Cancel main resource loads after we hand them off to the media engine
460
461         This is the Windows equivalent of r51104. Clearly this code should be
462         moved to a cross-platform location someday.
463
464         Fixes <http://webkit.org/b/48531> <rdar://problem/8606635> Assertion
465         failure in DocumentLoader::commitData when loading a media document in
466         WebKit1 on Windows
467
468         Reviewed by Dan Bernstein.
469
470         * WebCoreSupport/WebFrameLoaderClient.cpp:
471         (WebFrameLoaderClient::committedLoad): Cancel the main resource load
472         after handing off the load to the media engine. This code originally
473         came from -[WebHTMLRepresentation receivedData:withDataSource:].
474
475         * WebFrame.cpp:
476         (WebFrame::shouldFallBack): Don't fall back when handing the resource
477         load off to the media engine or a plugin. Added error domain checking
478         so that we don't rely on error codes being unique.
479
480 2010-10-29  Daniel Bates  <dbates@rim.com>
481
482         No review, rolling out 70971.
483         http://trac.webkit.org/changeset/70971
484         https://bugs.webkit.org/show_bug.cgi?id=6751
485
486         Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
487         it caused layout test failures on all bots. In particular, the
488         child count in a generated frame name differs after this patch. We need
489         to look into this further.
490
491         * WebFrame.cpp:
492         (WebFrame::name):
493
494 2010-10-28  Antonio Gomes  <agomes@rim.com>
495
496         Reviewed by Ojan Vafai.
497
498         Needs a "LinuxEditingBehavior", perhaps with a better name
499         https://bugs.webkit.org/show_bug.cgi?id=36627
500
501         Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WebKitEditingUnixBehavior.
502
503         * Interfaces/IWebPreferences.idl:
504
505 2010-10-29  Daniel Bates  <dbates@rim.com>
506
507         Reviewed by Adam Barth.
508
509         For unnamed frames, window.name returns a generated name
510         https://bugs.webkit.org/show_bug.cgi?id=6751
511
512         Modified Apple Windows-port to use FrameTree::uniqueName().
513
514         * WebFrame.cpp:
515         (WebFrame::name):
516
517 2010-10-29  Darin Adler  <darin@apple.com>
518
519         Reviewed by Sam Weinig.
520
521         Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
522         https://bugs.webkit.org/show_bug.cgi?id=48574
523
524         * WebBackForwardList.cpp:
525         (backForwardListWrappers):
526         (WebBackForwardList::WebBackForwardList):
527         (WebBackForwardList::createInstance):
528         * WebBackForwardList.h:
529         * WebView.cpp:
530         (WebView::backForwardList):
531         Use BackForwardListImpl.
532
533 2010-10-29  Adam Roben  <aroben@apple.com>
534
535         Windows build fix
536
537         * WebKitPrefix.h: Touched to force a rebuild.
538
539 2010-10-29  Alexey Proskuryakov  <ap@apple.com>
540
541         Reviewed by Darin Adler.
542
543         https://bugs.webkit.org/show_bug.cgi?id=48576
544         Let WebKit2 client know when a frame is a frameset
545
546         Added a blank implementation of the new FrameLoaderClient method.
547
548         * WebCoreSupport/WebFrameLoaderClient.h:
549         * WebCoreSupport/WebFrameLoaderClient.cpp:
550         (WebFrameLoaderClient::dispatchDidBecomeFrameset):
551
552 2010-10-26  Brent Fulgham  <bfulgham@webkit.org>
553
554         Unreviewed build fix.
555
556         * WebView.cpp: Conditionalize includes for CFNetwork-specific
557         Cookie implementation.
558         * WebView.h: Conditionalize includes for ACCELERATED_COMPOSITION.
559         WinCairo doesn't use CoreAnimation.
560
561 2010-10-26  Jenn Braithwaite  <jennb@chromium.org>
562
563         Reviewed by Dmitry Titov.
564
565         Resource tracking failure when trying to move a frame between documents
566         https://bugs.webkit.org/show_bug.cgi?id=44713
567
568         * WebCoreSupport/WebFrameLoaderClient.cpp:
569         (WebFrameLoaderClient::transferLoadingResourceFromPage):
570         Empty method.
571         * WebCoreSupport/WebFrameLoaderClient.h:
572
573 2010-10-25  Patrick Gansterer  <paroga@webkit.org>
574
575         Reviewed by David Kilzer.
576
577         Replace _countof with WTF_ARRAY_LENGTH
578         https://bugs.webkit.org/show_bug.cgi?id=48229
579
580         * WebCoreSupport/WebContextMenuClient.cpp:
581         (isPreInspectElementTagSafari):
582         * WebView.cpp:
583         (WebView::interpretKeyEvent):
584
585 2010-10-24  Dan Bernstein  <mitz@apple.com>
586
587         Build fix.
588
589         * Interfaces/WebKit.idl: Touched.
590
591 2010-10-24  Dan Bernstein  <mitz@apple.com>
592
593         Reviewed by Anders Carlsson.
594
595         Expose HitTestResult::absoluteMediaURL() via WebKit API
596         https://bugs.webkit.org/show_bug.cgi?id=48219
597
598         * Interfaces/IWebView.idl: Added WebElementMediaURLKey.
599         * WebElementPropertyBag.cpp:
600         (WebElementPropertyBag::Read): Map WebElementMediaURLKey to absoluteMediaURL().
601
602 2010-10-22  Andy Estes  <aestes@apple.com>
603
604         Fix the Windows build.
605
606         * WebCookieManagerCFNet.cpp: Rename CookieStorageWin.h to CookieStorageCFNet.h.
607         * WebView.cpp: Ditto.
608
609 2010-10-22  Jenn Braithwaite  <jennb@chromium.org>
610
611         Reviewed by Adam Roben.
612
613         Windows client needs updating when live iframe element is moved between pages
614         https://bugs.webkit.org/show_bug.cgi?id=46915
615
616         * WebCoreSupport/WebFrameLoaderClient.cpp:
617         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
618         Update WebView in WebFrame to match that of the current page.
619         * WebFrame.cpp:
620         (WebFrame::setWebView):
621         Added.
622         * WebFrame.h:
623
624 2010-10-22  Sam Weinig  <sam@webkit.org>
625
626         Fix windows build.
627
628         * WebCoreSupport/WebChromeClient.h:
629
630 2010-10-22  Sam Weinig  <sam@webkit.org>
631
632         Reviewed by Anders Carlsson.
633
634         WebKit2 needs to pass the current event modifier flags when requesting a new window
635         https://bugs.webkit.org/show_bug.cgi?id=48140
636
637         * WebCoreSupport/WebChromeClient.cpp:
638         (WebChromeClient::createWindow):
639         * WebCoreSupport/WebFrameLoaderClient.cpp:
640         (WebFrameLoaderClient::dispatchCreatePage):
641         * WebCoreSupport/WebFrameLoaderClient.h:
642         Add NavigationAction parameter.
643
644 2010-10-21 MORITA Hajime  <morrita@google.com>
645
646         Unreviewed, touched it to fix the build.
647
648         * Interfaces/WebKit.idl:
649
650 2010-10-21  MORITA Hajime  <morrita@google.com>
651
652         Reviewed by Kent Tamura.
653
654         [Win][DRT] should have LayoutTestController.hasSpellingMarker()
655         https://bugs.webkit.org/show_bug.cgi?id=47885
656
657         Added IWebFramePrivate::hasSpellingMarker() and impelmented it for
658         LayoutTestController.
659
660         * Interfaces/IWebFramePrivate.idl:
661         * WebFrame.cpp:
662         (WebFrame::hasSpellingMarker):
663         * WebFrame.h:
664
665 2010-10-20  Dumitru Daniliuc  <dumi@chromium.org>
666
667         Reviewed by David Levin.
668
669         Repost the DatabaseTracker notifications to the main thread, if needed.
670         https://bugs.webkit.org/show_bug.cgi?id=40655
671
672         * WebDatabaseManager.cpp:
673         (DidModifyOriginData::dispatchToMainThread):
674         (DidModifyOriginData::DidModifyOriginData):
675         (DidModifyOriginData::dispatchDidModifyOriginOnMainThread):
676         (WebDatabaseManager::dispatchDidModifyOrigin):
677         (WebDatabaseManager::dispatchDidModifyDatabase):
678
679 2010-10-20  Dirk Schulze  <krit@webkit.org>
680
681         Reviewed by Nikolas Zimmermann.
682
683         Merge ColorSpace and ImageColorSpace enums
684         https://bugs.webkit.org/show_bug.cgi?id=47922
685
686         Renamed ColorSpace enum entries DeviceColorSpace and sRGBColorSpace to ColorSpaceDeviceRGB and ColorSpaceSRGB
687         to follow webkit style rules.
688
689         * FullscreenVideoController.cpp:
690         (HUDButton::draw):
691         (HUDSlider::draw):
692         (FullscreenVideoController::draw):
693         * WebCoreSupport/WebDragClient.cpp:
694         (WebDragClient::createDragImageForLink):
695         * WebKitGraphics.cpp:
696         (WebDrawText):
697
698 2010-10-18  Pavel Podivilov  <podivilov@chromium.org>
699
700         Reviewed by Timothy Hatcher.
701
702         Web Inspector: disable private browsing for inspector
703         https://bugs.webkit.org/show_bug.cgi?id=47827
704
705         * WebCoreSupport/WebInspectorClient.cpp:
706         (WebInspectorClient::openInspectorFrontend):
707
708 2010-10-17  Adam Barth  <abarth@webkit.org>
709
710         Reviewed by Dimitri Glazkov.
711
712         FrameLoader doesn't need an explicit userGesture parameter
713         https://bugs.webkit.org/show_bug.cgi?id=47777
714
715         Update for the new API.
716
717         * WebCoreSupport/WebContextMenuClient.cpp:
718         (WebContextMenuClient::searchWithGoogle):
719
720 2010-10-15  Brian Weinstein  <bweinstein@apple.com>
721
722         Reviewed by Sam Weinig.
723
724         REGRESSION(r69850) Loading apple.com/startpage in WebKit on Windows gets a bad request.
725         https://bugs.webkit.org/show_bug.cgi?id=47753
726         <rdar://problem/8558242>
727         
728         VerQueryValue returns a null terminated string, but we need to strip off the null terminating character
729         when we turn it into a WebCore string, or else concatenation using this string will break.
730
731         * WebView.cpp:
732
733 2010-10-15  Jessie Berlin  <jberlin@apple.com>
734
735         Windows build fix. Unreviewed.
736
737         * WebCoreSupport/WebInspectorClient.cpp:
738         Add a missing include.
739
740 2010-10-15  Nikolas Zimmermann  <nzimmermann@rim.com>
741
742         Reviewed by Dirk Schulze.
743
744         Replace some String::format() usages by StringConcatenate in WebKit
745         https://bugs.webkit.org/show_bug.cgi?id=47714
746
747         * WebCoreSupport/WebInspectorClient.cpp:
748         (WebInspectorFrontendClient::updateWindowTitle):
749         * WebView.cpp:
750         (WebView::standardUserAgentWithApplicationName):
751         (osVersion):
752
753 2010-10-14  Ilya Tikhonovsky  <loislo@chromium.org>
754
755         Reviewed by Pavel Feldman.
756
757         Web Inspector: inspector settings/properties/states management
758         should be extracted into separate class.
759
760         We have a lot of flags/values in InspectorController.
761         Some flags are persisting into profile.
762         Others are part of inspector state for frontend.
763         All these flags should keep their values after navigation.
764         It'd be better to extract these flags/values into separate
765         class which will care about theirs lifetime.
766
767         https://bugs.webkit.org/show_bug.cgi?id=47275
768
769         * WebCoreSupport/WebInspectorClient.cpp:
770         (WebInspectorFrontendClient::attachWindow):
771         (WebInspectorFrontendClient::detachWindow):
772         (WebInspectorFrontendClient::showWindowWithoutNotifications):
773
774 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
775
776         Reviewed by Oliver Hunt.
777
778         https://bugs.webkit.org/show_bug.cgi?id=43987
779         Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
780         to construct their internal result string.  Remove ScriptString (this is now
781         redundant).
782
783         * WebCoreSupport/WebFrameLoaderClient.cpp:
784
785 2010-10-12  Adam Roben  <aroben@apple.com>
786
787         Build TestWebKitAPI on Windows
788
789         Fixes <http://webkit.org/b/47552> <rdar://problem/8541708> Make
790         TestWebKitAPI work on Windows
791
792         Reviewed by Sam Weinig.
793
794         * WebKit.vcproj/WebKit.sln: Added TestWebKitAPI and
795         TestWebKitAPIGenerated and made them build just after
796         WebKitTestRunner.
797
798 2010-10-11  Shinichiro Hamaji  <hamaji@chromium.org>
799
800         Attempt to fix windows build failure.
801
802         Remove WebIconFetcher from WebKit and IconFetcher from WebCore
803         https://bugs.webkit.org/show_bug.cgi?id=47523
804
805         * Interfaces/IWebFramePrivate.idl: s/unused1/unused2/
806         * Interfaces/WebKit.idl: Touched.
807         * WebFrame.cpp: s/unused1/unused2/
808         (WebFrame::unused2):
809         * WebFrame.h: s/unused1/unused2/
810
811 2010-10-11  Anders Carlsson  <andersca@apple.com>
812
813         Reviewed by Darin Adler.
814
815         Remove WebIconFetcher from WebKit and IconFetcher from WebCore
816         https://bugs.webkit.org/show_bug.cgi?id=47523
817
818         Remove all traces of the WebKit WebIconFetcher class. It's SPI that nobody uses.
819
820         * Interfaces/IWebFramePrivate.idl:
821         * Interfaces/IWebIconFetcher.idl: Removed.
822         * Interfaces/WebKit.idl:
823         * WebFrame.cpp:
824         (WebFrame::unused1):
825         * WebFrame.h:
826         * WebIconFetcher.cpp: Removed.
827         * WebIconFetcher.h: Removed.
828         * WebKit.vcproj/Interfaces.vcproj:
829         * WebKit.vcproj/WebKit.vcproj:
830
831 2010-10-11  Jessie Berlin  <jberlin@apple.com>
832
833         Reviewed by Darin Adler.
834
835         Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal
836         representation of a WebKit1 WebSerializedJSValue.
837         https://bugs.webkit.org/show_bug.cgi?id=47439
838
839         * Interfaces/IWebSerializedJSValuePrivate.idl:
840         Because it is taking a void** parameter, getInternalRepresentation must be declared [local].
841
842         * WebSerializedJSValue.cpp:
843         (WebSerializedJSValue::getInternalRepresentation):
844         * WebSerializedJSValue.h:
845
846 2010-10-07  Jessie Berlin  <jberlin@apple.com>
847
848         Reviewed by Sam Weinig.
849
850         Add Private API for creating a WebKit1 WebSerializedJSValue from the internal
851         representation of a WebKit2 WebSerializedScriptValue.
852         https://bugs.webkit.org/show_bug.cgi?id=47390
853
854         * Interfaces/WebKit.idl:
855         Generate IWebSerializedJSValuePrivate.
856         
857         * Interfaces/IWebSerializedJSValuePrivate.idl: Added.
858         Because it is taking a void* parameter, setInternalRepresentation must be declared [local].
859
860         * WebKit.vcproj/Interfaces.vcproj:
861         Add IWebSerializedJSValue.idl and IWebSerializedJSValuePrivate.idl.
862
863         * WebSerializedJSValue.cpp:
864         (WebSerializedJSValue::QueryInterface):
865         Since there are now two interfaces that inherit from IUnknown, do not try to cast to
866         IUnknown* anymore. Cast to IWebSerializedJSValue* instead.
867         (WebSerializedJSValue::setInternalRepresentation):
868         Only set the internal representation if it hasn't already been set.
869         * WebSerializedJSValue.h:
870
871 2010-10-04  Jon Honeycutt  <jhoneycutt@apple.com>
872
873         Prevent an assertion failure when trying to create a protection space
874         for file/data URLs.
875
876         Reviewed by Sam Weinig.
877
878         * WebURLProtectionSpace.cpp:
879         (WebURLProtectionSpace::initWithHost):
880         Remove the ASSERT_NOT_REACHED().
881
882 2010-10-05  Brent Fulgham  <bfulgham@webkit.org>
883
884         Unreviewed build correction.
885
886         * WebKit.vcproj/WebKit.sln: Turn the QTMovieWin project
887         off for WinCairo release builds.  Somehow this was
888         incorrectly turned on.
889
890 2010-10-01  Mark Rowe  <mrowe@apple.com>
891
892         Build fix.
893
894         Clear the executable bit from a number of source files.
895
896         * WebView.cpp:
897         * WebView.h:
898
899 2010-09-30  Darin Adler  <darin@apple.com>
900
901         Reviewed by Sam Weinig.
902
903         Remove remaining calls to deprecatedParseURL
904         https://bugs.webkit.org/show_bug.cgi?id=26599
905
906         * WebCoreSupport/WebFrameLoaderClient.cpp:
907         (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
908         Call stripLeadingAndTrailingHTMLSpaces instead of deprecatedParseURL.
909
910 2010-09-28  Jenn Braithwaite  <jennb@chromium.org>
911
912         Reviewed by Dmitry Titov.
913
914         Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
915         https://bugs.webkit.org/show_bug.cgi?id=46663
916
917         * WebCoreSupport/WebFrameLoaderClient.cpp:
918         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
919         * WebCoreSupport/WebFrameLoaderClient.h:
920
921 2010-09-27  Andrey Kosyakov  <caseq@chromium.org>
922
923         Unreviewed build fix (win; broken in r68371)
924
925         * WebFrame.cpp: remove include <WebCore/ResourceHandleWin.h>
926
927 2010-09-23  Matthew Delaney  <mdelaney@apple.com>
928
929         Reviewed by Simon Fraser.
930
931         Reduce minimum DOMTimer interval
932         https://bugs.webkit.org/show_bug.cgi?id=45362
933
934         * WebView.cpp:
935         Updating set interval call to use Settings' static version inside
936         one time init block.
937
938 2010-09-23  Nate Chapin  <japhet@chromium.org>
939
940         Unreviewed, build fix.
941
942         Move hyperlinkAuditingEnabled to IWebPreferencesPrivate.idl
943         and touch WebKit.idl
944
945         * Interfaces/IWebPreferences.idl:
946         * Interfaces/IWebPreferencesPrivate.idl:
947         * Interfaces/WebKit.idl:
948         * WebView.cpp:
949         (WebView::notifyPreferencesChanged):
950
951 2010-09-23  Nate Chapin  <japhet@chromium.org>
952
953         Unreviewed, build fix.
954
955         Look for hyperlinkAuditingEnabled in the right set of preferences.
956
957         * WebView.cpp:
958         (WebView::notifyPreferencesChanged):
959
960 2010-09-23  Nate Chapin  <japhet@chromium.org>
961
962         Reviewed by Darin Fisher.
963
964         Add hyperlink auditing settings (i.e., <a ping>).
965         https://bugs.webkit.org/show_bug.cgi?id=30458
966
967         * Interfaces/IWebPreferences.idl:
968         * WebPreferenceKeysPrivate.h:
969         * WebPreferences.cpp:
970         (WebPreferences::initializeDefaultSettings):
971         (WebPreferences::hyperlinkAuditingEnabled):
972         (WebPreferences::setHyperlinkAuditingEnabled):
973         * WebPreferences.h:
974         * WebView.cpp:
975         (WebView::notifyPreferencesChanged):
976
977 2010-09-23  Matthew Delaney  <mdelaney@apple.com>
978
979         Reviewed by Adam Roben.
980
981         Create one time initialization block for WebView's initWithFrame
982         https://bugs.webkit.org/show_bug.cgi?id=46307
983
984         * WebView.cpp: Added one time initialization block for webview code
985         that needs only be run once and not for each webview. This is just as
986         the mac version WebView.mm does.
987
988 2010-09-22  Brent Fulgham  <bfulgham@webkit.org>
989
990         Reviewed by Martin Robinson.
991
992         [WinCairo] Part 2: Update WebKitTestRunner and DumpRenderTree Build.
993         https://bugs.webkit.org/show_bug.cgi?id=46303.
994
995         * WebKit.vcproj/WebKit.sln: Update overall Debug_Cairo and
996         Release_Cairo configurations to select appropriate build
997         targets for WebKitTestRunner and MiniBrowser.
998
999 2010-09-22  Brent Fulgham  <bfulgham@webkit.org>
1000
1001         Reviewed by Martin Robinson.
1002
1003         [WinCairo] Update WebKitTestRunner and DumpRenderTree Build.rt
1004         https://bugs.webkit.org/show_bug.cgi?id=46303.
1005
1006         * WebKit.vcproj/WebKit.sln: Update overall Debug_Cairo and
1007         Release_Cairo configurations to select appropriate build
1008         targets for InjectionBundle.
1009
1010 2010-09-22  Balazs Kelemen  <kb@inf.u-szeged.hu>
1011
1012         Reviewed by Kenneth Rohde Christiansen.
1013
1014         PluginStrategy should satisfy the needs of Qt
1015         https://bugs.webkit.org/show_bug.cgi?id=45857
1016         No new functionality so no new tests.
1017
1018         * WebCoreSupport/WebPlatformStrategies.cpp:
1019         (WebPlatformStrategies::getPluginInfo):
1020         * WebCoreSupport/WebPlatformStrategies.h:
1021
1022 2010-09-20  Philippe Normand  <pnormand@igalia.com>
1023
1024         Reviewed by Eric Carlson.
1025
1026         [GTK] enhanced context menu for media elements
1027         https://bugs.webkit.org/show_bug.cgi?id=45021
1028
1029         New localized strings for the media element context-menu.
1030
1031         * WebCoreSupport/WebPlatformStrategies.cpp:
1032         (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
1033         (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
1034         (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
1035         (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
1036         (WebPlatformStrategies::contextMenuItemTagToggleMediaControls):
1037         (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop):
1038         (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen):
1039         (WebPlatformStrategies::contextMenuItemTagMediaPlay):
1040         (WebPlatformStrategies::contextMenuItemTagMediaPause):
1041         (WebPlatformStrategies::contextMenuItemTagMediaMute):
1042         * WebCoreSupport/WebPlatformStrategies.h:
1043
1044 2010-09-17  Darin Adler  <darin@apple.com>
1045
1046         Reviewed by Sam Weinig.
1047
1048         REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
1049         https://bugs.webkit.org/show_bug.cgi?id=42863
1050
1051         * WebView.cpp:
1052         (WebView::setZoomMultiplier):
1053         Call functions on Frame instead of FrameView.
1054
1055 2010-09-17  Matthew Delaney  <mdelaney@apple.com>
1056
1057         Reviewed by Simon Fraser.
1058
1059         Reduce minimum DOMTimer interval
1060         https://bugs.webkit.org/show_bug.cgi?id=45362
1061
1062         * WebView.cpp: Added in a call to set the mimimum allowed DOMTimer to 4ms.
1063
1064 2010-09-17  Simon Fraser  <simon.fraser@apple.com>
1065
1066         Reviewed by Chris Marrin.
1067
1068         Remove scroll and clip layers for WKCACFLayerRenderer
1069         https://bugs.webkit.org/show_bug.cgi?id=45922
1070
1071         WKCACFLayerRenderer no longer needs its own layers for managing scrolling
1072         and clipping, because RenderLayerCompositor provides this functionality.
1073
1074         * WebView.cpp:
1075         (WebView::sizeChanged): Moved code that handles the WM_SIZE message
1076         into this method. Use it to resize the layer renderer.
1077         (WebView::WebViewWndProc): Call sizeChanged().
1078         (WebView::updateRootLayerContents): No need to call setScrollFrame() any more.
1079         (WebView::layerRendererBecameVisible): Move this from the header (no need to be inline).
1080         * WebView.h:
1081
1082 2010-09-16  Darin Adler  <darin@apple.com>
1083
1084         Reviewed by Andreas Kling.
1085
1086         Reduce use of HTMLInputElement::inputType so we can remove it later
1087         https://bugs.webkit.org/show_bug.cgi?id=45903
1088
1089         * WebFrame.cpp:
1090         (WebFrame::elementDoesAutoComplete): Use isPasswordField.
1091         (WebFrame::elementIsPassword): Use isPasswordField.
1092
1093 2010-09-14  Ada Chan  <adachan@apple.com>
1094
1095         Reviewed by Adam Roben.
1096
1097         Add an IWebFramePrivate API to load string as plain text into the WebFrame.
1098         https://bugs.webkit.org/show_bug.cgi?id=45782
1099
1100         * Interfaces/IWebFramePrivate.idl:
1101         * Interfaces/WebKit.idl: Touch the file.
1102         * WebFrame.cpp:
1103         (WebFrame::loadPlainTextString):
1104         * WebFrame.h:
1105
1106 2010-09-13  Enrica Casucci  <enrica@apple.com>
1107
1108         Reviewed by Sam Weinig.
1109
1110         Paste should be implemented in WebCore like Copy and Cut for Mac also.
1111         https://bugs.webkit.org/show_bug.cgi?id=45494
1112         <rdar://problem/7660537>
1113
1114         On the Mac platform, the implementation of the paste operation is all done
1115         at the WebKit level. In order to support it on WebKit2 it is necessary to
1116         refactor the code and move this functionality at the level of WebCore like
1117         we already have on Windows.
1118         The original code relies on some in AppKit functions that call back into
1119         WebKit causing problems in WebKit2. All this functionality has been moved
1120         at the level of the editor client where it can be dealt with appropriately.
1121
1122         * WebFrame.cpp:
1123         (WebFrame::canShowMIMETypeASHTML): Added.
1124
1125 2010-09-11  Adam Barth  <abarth@webkit.org>
1126
1127         Reviewed by Sam Weinig.
1128
1129         Make SecurityOrigin::canDisplay an instance function
1130         https://bugs.webkit.org/show_bug.cgi?id=45219
1131
1132         * WebFrame.cpp:
1133         (WebFrame::allowsFollowingLink):
1134
1135 2010-09-10  Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
1136
1137         Reviewed by Darin Adler.
1138
1139         Add NetworkingContext to avoid layer violations
1140         https://bugs.webkit.org/show_bug.cgi?id=42292
1141
1142         * WebCoreSupport/WebFrameNetworkingContext.cpp:
1143         (WebFrameNetworkingContext::blockedError):
1144         * WebCoreSupport/WebFrameNetworkingContext.h:
1145
1146 2010-09-10  Jer Noble  <jer.noble@apple.com>
1147
1148         Reviewed by Simon Fraser.
1149
1150         Movies with track or movie matrices don't display in <video> elements (Safari 5/Windows)
1151         https://bugs.webkit.org/show_bug.cgi?id=45333
1152         
1153         The rootChild layer must be set as flipped, otherwise transformed movies will appear
1154         incorrectly rotated.
1155
1156         * FullscreenVideoController.cpp:
1157         (FullscreenVideoController::enterFullscreen):
1158
1159 2010-09-10  Sam Weinig  <sam@webkit.org>
1160
1161         Reviewed by Darin Adler.
1162
1163         Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom.
1164         Precursor to <rdar://problem/7660657>
1165         https://bugs.webkit.org/show_bug.cgi?id=45522
1166
1167         * WebFrame.cpp:
1168         * WebFrame.h:
1169         Remove dead code.
1170
1171         * WebView.cpp:
1172         (WebView::WebView):
1173         (WebView::setZoomMultiplier):
1174         (WebView::zoomMultiplier):
1175         (WebView::canMakeTextLarger):
1176         (WebView::makeTextLarger):
1177         (WebView::canMakeTextSmaller):
1178         (WebView::makeTextSmaller):
1179         (WebView::notifyPreferencesChanged):
1180         * WebView.h:
1181         Move tracking of text only zoom here from WebCore.
1182
1183 2010-09-10  Brian Weinstein  <bweinstein@apple.com>
1184
1185         Windows Build Fix. Fix some fallout from r67238, currentForm is now off of 
1186         SelectionController instead of frame. Also fix a style issue.
1187
1188         * WebFrame.cpp:
1189         (WebFrame::currentForm):
1190
1191 2010-09-10  Adam Barth  <abarth@webkit.org>
1192
1193         Reviewed by Darin Fisher.
1194
1195         Move code from WebKit-layer to DocumentLoader
1196         https://bugs.webkit.org/show_bug.cgi?id=45569
1197
1198         * WebCoreSupport/WebFrameLoaderClient.cpp:
1199         (WebFrameLoaderClient::committedLoad):
1200         * WebCoreSupport/WebFrameLoaderClient.h:
1201
1202 2010-09-09  Darin Adler  <darin@apple.com>
1203
1204         Reviewed by Adam Barth.
1205
1206         Move functions from Frame to SelectionController as planned
1207         https://bugs.webkit.org/show_bug.cgi?id=45508
1208
1209         * WebView.cpp:
1210         (WebView::selectionRect):
1211         (WebView::centerSelectionInVisibleArea):
1212         Call functions on selection().
1213
1214 2010-09-10  Adam Barth  <abarth@webkit.org>
1215
1216         Reviewed by Eric Seidel.
1217
1218         Main resource bytes shouldn't bounce through FrameLoader
1219         https://bugs.webkit.org/show_bug.cgi?id=45496
1220
1221         Now return the bytes to the DocumentLoader.
1222
1223         * WebCoreSupport/WebFrameLoaderClient.cpp:
1224         (WebFrameLoaderClient::receivedData):
1225
1226 2010-09-09  Simon Fraser  <simon.fraser@apple.com>
1227
1228         Reviewed by Adam Roben.
1229
1230         Scrollbars fail to render in composited iframes.
1231         https://bugs.webkit.org/show_bug.cgi?id=45335
1232
1233         Use LocalWindowsContext when painting scrollbars.
1234
1235         * WebCoreSupport/WebChromeClient.cpp:
1236         (WebChromeClient::paintCustomScrollbar):
1237         (WebChromeClient::paintCustomScrollCorner):
1238
1239 2010-09-08  Darin Adler  <darin@apple.com>
1240
1241         Reviewed by Adam Barth.
1242
1243         Move functions from Frame to Editor as planned
1244         https://bugs.webkit.org/show_bug.cgi?id=45218
1245
1246         * WebCoreSupport/WebContextMenuClient.cpp:
1247         (WebContextMenuClient::searchWithGoogle):
1248         * WebFrame.cpp:
1249         (WebFrame::selectedString):
1250         * WebView.cpp:
1251         (WebView::selectedText):
1252         (WebView::prepareCandidateWindow):
1253         (WebView::onIMERequestCharPosition):
1254         Changed call sites to use editor().
1255
1256 2010-09-08  Peter Kasting  <pkasting@google.com>
1257
1258         Not reviewed, build fix.
1259
1260         * WebScrollBar.cpp:
1261         (WebScrollBar::setScrollOffsetFromAnimation):
1262
1263 2010-09-08  Peter Kasting  <pkasting@google.com>
1264
1265         Not reviewed, build fix.
1266
1267         * WebScrollBar.cpp:
1268         (WebScrollBar::scrollSize):
1269         (WebScrollBar::setScrollOffsetFromAnimation):
1270
1271 2010-09-08  Peter Kasting  <pkasting@google.com>
1272
1273         Not reviewed, build fix.
1274
1275         * WebScrollBar.cpp:
1276         (WebScrollBar::setValue):
1277         (WebScrollBar::scrollSize):
1278         (WebScrollBar::setScrollOffsetFromAnimation):
1279         * WebScrollBar.h:
1280
1281 2010-09-08  Adam Barth  <abarth@webkit.org>
1282
1283         Attempted Window build fix.
1284
1285         * WebDataSource.cpp:
1286         (WebDataSource::subresourceForURL):
1287
1288 2010-09-08  Adam Barth  <abarth@webkit.org>
1289
1290         Rubber-stamped by Eric Seidel.
1291
1292         Rename DocLoader to CachedResourceLoader because that's what it does.
1293
1294         * WebDataSource.cpp:
1295
1296 2010-09-07  Brent Fulgham  <bfulgham@webkit.org>
1297
1298         Reviewed by Adam Roben.
1299
1300         Clean up a potential resource leak.
1301         https://bugs.webkit.org/show_bug.cgi?id=45198
1302
1303         Several bitmap device context were being created and used,
1304         and destroyed without returning the context to its original
1305         state.  This showed up as bitmap leaks in BoundsChecker.
1306
1307         * FullscreenVideoController.cpp:
1308         * WebView.cpp:
1309         (WebView::scrollBackingStore):
1310         (WebView::paint):
1311
1312 2010-09-06  Adam Barth  <abarth@webkit.org>
1313
1314         Reviewed by Darin Adler.
1315
1316         Rename SecurityOrigin::canLoad to canDisplay
1317         https://bugs.webkit.org/show_bug.cgi?id=45214
1318
1319         Propagate name change.
1320
1321         * WebFrame.cpp:
1322         (WebFrame::allowsFollowingLink):
1323
1324 2010-09-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1325
1326         Reviewed by Darin Adler.
1327
1328         Add NetworkingContext to avoid layer violations
1329         https://bugs.webkit.org/show_bug.cgi?id=42292
1330
1331         Add Win's specific implementation of NetworkingContext.
1332
1333         * WebCoreSupport/WebFrameNetworkingContext.cpp:
1334         (WebFrameNetworkingContext::create):
1335         (WebFrameNetworkingContext::userAgent):
1336         (WebFrameNetworkingContext::referrer):
1337         * WebFrame.cpp:
1338         (WebFrame::createNetworkingContext):
1339         * WebFrame.h:
1340
1341 2010-09-03  Adam Roben  <aroben@apple.com>
1342
1343         Attempt to fixing Windows nightlies again
1344
1345         The fix in r66438 should be sufficient, but we have to touch
1346         WebKit.idl to force that change to be picked up by the build.
1347
1348         * Interfaces/WebKit.idl: Touched this file to force a build.
1349
1350 2010-09-02  Yury Semikhatsky  <yurys@chromium.org>
1351
1352         Reviewed by PavelFeldman.
1353
1354         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
1355         https://bugs.webkit.org/show_bug.cgi?id=44230
1356
1357         * WebCoreSupport/WebInspectorClient.cpp:
1358         (WebInspectorFrontendClient::~WebInspectorFrontendClient):
1359         (WebInspectorFrontendClient::closeWindow):
1360         (WebInspectorFrontendClient::disconnectFromBackend):
1361         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
1362         (WebInspectorFrontendClient::destroyInspectorView):
1363         * WebCoreSupport/WebInspectorClient.h:
1364
1365 2010-09-01  Jessie Berlin  <jberlin@apple.com>
1366
1367         Reviewed by Adam Roben.
1368
1369         WebViews should allow their parent windows to handle WM_MOUSEACTIVATE messages.
1370         https://bugs.webkit.org/show_bug.cgi?id=45047
1371
1372         * WebView.cpp:
1373         (WebView::WebViewWndProc):
1374
1375 2010-08-31  Dave Hyatt  <hyatt@apple.com>
1376
1377         Reviewed by Sam Weinig.
1378
1379         https://bugs.webkit.org/show_bug.cgi?id=44863, disentangle style recalc from layout, so that
1380         the former can occur in more places without having to do the latter.
1381
1382         * WebFrame.cpp:
1383         (WebFrame::paintDocumentRectToContext):
1384         * WebView.cpp:
1385         (WebView::updateBackingStore):
1386
1387 2010-08-30  Adam Roben  <aroben@apple.com>
1388
1389         Fix crash on launch on Windows due to changing IWebFramePrivate's
1390         vtable
1391
1392         This regressed in r65107.
1393
1394         Fixes <http://webkit.org/b/44755>.
1395
1396         Rubber-stamped by Jon Honeycutt.
1397
1398         * Interfaces/IWebFramePrivate.idl: Moved suspendAnimations and
1399         resumeAnimations to the end of the interface so that the vtable will
1400         match what Safari expects.
1401
1402 2010-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1403
1404         Unreviewed, rolling out r66198.
1405         http://trac.webkit.org/changeset/66198
1406         https://bugs.webkit.org/show_bug.cgi?id=44856
1407
1408         It made tests crash on Qt bot (Requested by Ossy_ on #webkit).
1409
1410         * WebCoreSupport/WebInspectorClient.cpp:
1411         (WebInspectorFrontendClient::~WebInspectorFrontendClient):
1412         (WebInspectorFrontendClient::closeWindow):
1413         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
1414         (WebInspectorFrontendClient::destroyInspectorView):
1415         * WebCoreSupport/WebInspectorClient.h:
1416
1417 2010-08-27  Yury Semikhatsky  <yurys@chromium.org>
1418
1419         Reviewed by Pavel Feldman.
1420
1421         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
1422         https://bugs.webkit.org/show_bug.cgi?id=44230
1423
1424         * WebCoreSupport/WebInspectorClient.cpp:
1425         (WebInspectorFrontendClient::~WebInspectorFrontendClient):
1426         (WebInspectorFrontendClient::closeWindow):
1427         (WebInspectorFrontendClient::disconnectFromBackend):
1428         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
1429         (WebInspectorFrontendClient::destroyInspectorView):
1430         * WebCoreSupport/WebInspectorClient.h:
1431
1432 2010-08-26  Yury Semikhatsky  <yurys@chromium.org>
1433
1434         Unreviewed. Revert r66103 since Qt tests are failing.
1435
1436         * WebCoreSupport/WebInspectorClient.cpp:
1437         (WebInspectorFrontendClient::~WebInspectorFrontendClient):
1438         (WebInspectorFrontendClient::closeWindow):
1439         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
1440         (WebInspectorFrontendClient::destroyInspectorView):
1441         * WebCoreSupport/WebInspectorClient.h:
1442
1443 2010-08-26  Yury Semikhatsky  <yurys@chromium.org>
1444
1445         Reviewed by Pavel Feldman.
1446
1447         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
1448         https://bugs.webkit.org/show_bug.cgi?id=44230
1449
1450         * WebCoreSupport/WebInspectorClient.cpp:
1451         (WebInspectorFrontendClient::~WebInspectorFrontendClient):
1452         (WebInspectorFrontendClient::closeWindow):
1453         (WebInspectorFrontendClient::disconnectFromBackend):
1454         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
1455         (WebInspectorFrontendClient::destroyInspectorView):
1456         * WebCoreSupport/WebInspectorClient.h:
1457
1458 2010-08-24  Ada Chan  <adachan@apple.com>
1459
1460         Reviewed by Steve Falkenburg.
1461
1462         <rdar://problem/8185379> Possible null dereference in WebView::canShowMIMEType.
1463         https://bugs.webkit.org/show_bug.cgi?id=44564
1464
1465         * WebView.cpp:
1466         (WebView::canShowMIMEType): Null check m_page->pluginData() since that can return NULL
1467         if plugins are disabled.
1468
1469 2010-08-22  Daniel Bates  <dbates@rim.com>
1470
1471         Reviewed by Eric Seidel.
1472
1473         Encapsulate document marker management into DocumentMarkerController
1474         https://bugs.webkit.org/show_bug.cgi?id=44383
1475
1476         Modify call sites in the Apple Windows port to use DocumentMarkerController.
1477
1478         No functionality was changed, so no new tests.
1479
1480         * WebFrame.cpp:
1481         (WebFrame::unmarkAllMisspellings):
1482         (WebFrame::unmarkAllBadGrammar):
1483         * WebView.cpp:
1484         (WebView::rectsForTextMatches):
1485
1486 2010-08-18  Jessie Berlin  <jberlin@apple.com>
1487
1488         Reviewed by Adam Roben.
1489
1490         Bug 44180 - WebView::paint fails to paint a child WebView of a Layered Window.
1491         https://bugs.webkit.org/show_bug.cgi?id=44180
1492         
1493         Decide to end painting if the m_backingStoreBitmap is null after the call to
1494         ensureBackingStore() instead of when the rcPaint rect filled by BeginPaint is empty.
1495         The rcPaint rect filled by BeginPaint is always empty for a child WebView of a Layered 
1496         Window, even if GetUpdateRect and GetUpdateRgn report a non-empty region that needs
1497         painting.
1498
1499         * WebView.cpp:
1500         (WebView::paint):
1501
1502 2010-08-17  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1503
1504         Reviewed by Darin Adler.
1505
1506         Add NetworkingContext to avoid layer violations
1507         https://bugs.webkit.org/show_bug.cgi?id=42292
1508
1509         Preparation: Just add the files to the build system.
1510
1511         * WebCoreSupport/WebFrameNetworkingContext.cpp: Added.
1512         Empty placeholder for now.
1513         * WebCoreSupport/WebFrameNetworkingContext.h: Added.
1514         Placeholder with tentative code that might be changed when landing
1515         the rest of it.
1516         * WebKit.vcproj/WebKit.vcproj: Added new files.
1517
1518 2010-08-17  Brady Eidson  <beidson@apple.com>
1519
1520         Reviewed by Sam Weinig.
1521
1522         Navigating back/forward during a modal dialog causes a crash when the modal dialog is dismissed.
1523         <rdar://problem/8313579> and https://bugs.webkit.org/show_bug.cgi?id=44131
1524
1525         * WebView.cpp:
1526         (WebView::canGoBack): Return false if loads are deferred.
1527         (WebView::canGoForward): Ditto.
1528
1529 2010-08-16  Kinuko Yasuda  <kinuko@chromium.org>
1530
1531         Unreviewed; build fix attempt for Windows.
1532
1533         * DefaultDownloadDelegate.cpp:
1534
1535 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
1536
1537         Revert for now
1538         https://bugs.webkit.org/show_bug.cgi?id=43794 
1539
1540         * WebView.cpp:
1541         (WebView::initWithFrame):
1542
1543 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
1544
1545         Build fix.  Matches solutions in qt and mac ports for
1546         https://bugs.webkit.org/show_bug.cgi?id=43794 
1547
1548         * WebView.cpp:
1549         (WebView::initWithFrame):
1550
1551 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
1552
1553         Build fix (update more includes)
1554
1555         * WebKitDLL.h:
1556         * WebLocalizableStrings.cpp:
1557         * WebNotificationCenter.cpp:
1558         * WebPreferences.cpp:
1559
1560 2010-08-10  Chris Marrin  <cmarrin@apple.com>
1561
1562         Reviewed by Oliver Hunt.
1563
1564         Add suspendAnimations/resumeAnimation API to DRT
1565         https://bugs.webkit.org/show_bug.cgi?id=43733
1566
1567         Win specific API
1568
1569         * Interfaces/IWebFramePrivate.idl:
1570         * WebFrame.cpp:
1571         (WebFrame::suspendAnimations):
1572         (WebFrame::resumeAnimations):
1573         * WebFrame.h:
1574
1575 2010-08-06  Gavin Barraclough  <barraclough@apple.com>
1576
1577         Rubber stamped by Sam Weinig
1578
1579         Bug 43594 - Add string forwards to Forward.h
1580         This allows us to remove forward declarations for these classes from
1581         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
1582
1583         * COMVariantSetter.h:
1584         * MarshallingHelpers.h:
1585         * WebCoreSupport/WebContextMenuClient.h:
1586         * WebCoreSupport/WebPluginHalterClient.h:
1587         * WebHistory.h:
1588
1589 2010-08-06  Jessie Berlin  <jberlin@apple.com>
1590
1591         Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
1592         Unreviewed.
1593
1594         * COMVariantSetter.h:
1595         * MarshallingHelpers.h:
1596         * WebCoreSupport/WebContextMenuClient.h:
1597         * WebCoreSupport/WebPluginHalterClient.h:
1598         * WebHistory.h:
1599
1600 2010-08-05  Jessie Berlin  <jberlin@apple.com>
1601
1602         Reviewed by Jon Honeycutt.
1603
1604         Bug 43593 - WebView::backingStore should check if m_backingStoreBitmap is NULL.
1605         https://bugs.webkit.org/show_bug.cgi?id=43593
1606
1607         * WebView.cpp:
1608         (WebView::backingStore):
1609         If m_backingStoreBitmap is NULL, return E_FAIL.
1610
1611 2010-08-05  Gavin Barraclough  <barraclough@apple.com>
1612
1613         Rubber stamped by Sam Weinig
1614
1615         Bug 43594 - Add string forwards to Forward.h
1616         This allows us to remove forward declarations for these classes from
1617         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
1618
1619         * COMVariantSetter.h:
1620         * MarshallingHelpers.h:
1621         * WebCoreSupport/WebContextMenuClient.h:
1622         * WebCoreSupport/WebPluginHalterClient.h:
1623         * WebHistory.h:
1624
1625 2010-08-03  Adam Roben  <aroben@apple.com>
1626
1627         Turn on PLATFORM_STRATEGIES on Windows
1628
1629         Fixes <http://webkit.org/b/43431>.
1630
1631         Reviewed by Anders Carlsson.
1632
1633         * WebCoreLocalizedStrings.cpp: Removed.
1634         * WebCoreSupport/WebPlatformStrategies.cpp: Added. Based on the Mac
1635         equivalent.
1636         (WebPlatformStrategies::initialize): Creates the singleton instance.
1637         (WebPlatformStrategies::WebPlatformStrategies): Registers the
1638         singleton instance as the PlatformStrategies instance for WebCore.
1639
1640         (WebPlatformStrategies::createPluginStrategy):
1641         (WebPlatformStrategies::createLocalizationStrategy):
1642         (WebPlatformStrategies::createVisitedLinkStrategy):
1643         Return ourselves as the strategy.
1644
1645         (WebPlatformStrategies::refreshPlugins):
1646         (WebPlatformStrategies::getPluginInfo):
1647         Moved code here from WebCore's PluginDataWin.cpp file.
1648
1649         (WebPlatformStrategies::searchableIndexIntroduction):
1650         (WebPlatformStrategies::submitButtonDefaultLabel):
1651         (WebPlatformStrategies::inputElementAltText):
1652         (WebPlatformStrategies::resetButtonDefaultLabel):
1653         (WebPlatformStrategies::fileButtonChooseFileLabel):
1654         (WebPlatformStrategies::fileButtonNoFileSelectedLabel):
1655         (WebPlatformStrategies::contextMenuItemTagOpenLinkInNewWindow):
1656         (WebPlatformStrategies::contextMenuItemTagDownloadLinkToDisk):
1657         (WebPlatformStrategies::contextMenuItemTagCopyLinkToClipboard):
1658         (WebPlatformStrategies::contextMenuItemTagOpenImageInNewWindow):
1659         (WebPlatformStrategies::contextMenuItemTagDownloadImageToDisk):
1660         (WebPlatformStrategies::contextMenuItemTagCopyImageToClipboard):
1661         (WebPlatformStrategies::contextMenuItemTagOpenFrameInNewWindow):
1662         (WebPlatformStrategies::contextMenuItemTagCopy):
1663         (WebPlatformStrategies::contextMenuItemTagGoBack):
1664         (WebPlatformStrategies::contextMenuItemTagGoForward):
1665         (WebPlatformStrategies::contextMenuItemTagStop):
1666         (WebPlatformStrategies::contextMenuItemTagReload):
1667         (WebPlatformStrategies::contextMenuItemTagCut):
1668         (WebPlatformStrategies::contextMenuItemTagPaste):
1669         (WebPlatformStrategies::contextMenuItemTagNoGuessesFound):
1670         (WebPlatformStrategies::contextMenuItemTagIgnoreSpelling):
1671         (WebPlatformStrategies::contextMenuItemTagLearnSpelling):
1672         (WebPlatformStrategies::contextMenuItemTagSearchWeb):
1673         (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary):
1674         (WebPlatformStrategies::contextMenuItemTagOpenLink):
1675         (WebPlatformStrategies::contextMenuItemTagIgnoreGrammar):
1676         (WebPlatformStrategies::contextMenuItemTagSpellingMenu):
1677         (WebPlatformStrategies::contextMenuItemTagCheckSpelling):
1678         (WebPlatformStrategies::contextMenuItemTagCheckSpellingWhileTyping):
1679         (WebPlatformStrategies::contextMenuItemTagCheckGrammarWithSpelling):
1680         (WebPlatformStrategies::contextMenuItemTagFontMenu):
1681         (WebPlatformStrategies::contextMenuItemTagBold):
1682         (WebPlatformStrategies::contextMenuItemTagItalic):
1683         (WebPlatformStrategies::contextMenuItemTagUnderline):
1684         (WebPlatformStrategies::contextMenuItemTagOutline):
1685         (WebPlatformStrategies::contextMenuItemTagWritingDirectionMenu):
1686         (WebPlatformStrategies::contextMenuItemTagTextDirectionMenu):
1687         (WebPlatformStrategies::contextMenuItemTagDefaultDirection):
1688         (WebPlatformStrategies::contextMenuItemTagLeftToRight):
1689         (WebPlatformStrategies::contextMenuItemTagRightToLeft):
1690         (WebPlatformStrategies::contextMenuItemTagShowSpellingPanel):
1691         (WebPlatformStrategies::contextMenuItemTagInspectElement):
1692         (WebPlatformStrategies::searchMenuNoRecentSearchesText):
1693         (WebPlatformStrategies::searchMenuRecentSearchesText):
1694         (WebPlatformStrategies::searchMenuClearRecentSearchesText):
1695         (WebPlatformStrategies::AXWebAreaText):
1696         (WebPlatformStrategies::AXLinkText):
1697         (WebPlatformStrategies::AXListMarkerText):
1698         (WebPlatformStrategies::AXImageMapText):
1699         (WebPlatformStrategies::AXHeadingText):
1700         (WebPlatformStrategies::AXDefinitionListTermText):
1701         (WebPlatformStrategies::AXDefinitionListDefinitionText):
1702         (WebPlatformStrategies::AXButtonActionVerb):
1703         (WebPlatformStrategies::AXRadioButtonActionVerb):
1704         (WebPlatformStrategies::AXTextFieldActionVerb):
1705         (WebPlatformStrategies::AXCheckedCheckBoxActionVerb):
1706         (WebPlatformStrategies::AXUncheckedCheckBoxActionVerb):
1707         (WebPlatformStrategies::AXLinkActionVerb):
1708         (WebPlatformStrategies::AXMenuListActionVerb):
1709         (WebPlatformStrategies::AXMenuListPopupActionVerb):
1710         (WebPlatformStrategies::unknownFileSizeText):
1711         (WebPlatformStrategies::uploadFileText):
1712         (WebPlatformStrategies::allFilesText):
1713         (WebPlatformStrategies::missingPluginText):
1714         (WebPlatformStrategies::crashedPluginText):
1715         (WebPlatformStrategies::imageTitle):
1716         (WebPlatformStrategies::multipleFileUploadText):
1717         (WebPlatformStrategies::mediaElementLoadingStateText):
1718         (WebPlatformStrategies::mediaElementLiveBroadcastStateText):
1719         (WebPlatformStrategies::localizedMediaControlElementString):
1720         (WebPlatformStrategies::localizedMediaControlElementHelpText):
1721         (WebPlatformStrategies::localizedMediaTimeDescription):
1722         (WebPlatformStrategies::validationMessageValueMissingText):
1723         (WebPlatformStrategies::validationMessageTypeMismatchText):
1724         (WebPlatformStrategies::validationMessagePatternMismatchText):
1725         (WebPlatformStrategies::validationMessageTooLongText):
1726         (WebPlatformStrategies::validationMessageRangeUnderflowText):
1727         (WebPlatformStrategies::validationMessageRangeOverflowText):
1728         (WebPlatformStrategies::validationMessageStepMismatchText):
1729         Moved code here from WebCoreLocalizedStrings.cpp (and slightly cleaned
1730         it up).
1731
1732         (WebPlatformStrategies::isLinkVisited):
1733         (WebPlatformStrategies::addVisitedLink):
1734         Copied code from WebKit/mac/WebCoreSupport/WebPlatformStrategies.mm.
1735
1736         * WebCoreSupport/WebPlatformStrategies.h: Added.
1737
1738         * WebKit.vcproj/WebKit.vcproj: Removed WebCoreLocalizedStrings, added
1739         WebPlatformStrategies.
1740
1741         * WebView.cpp:
1742         (WebView::initWithFrame): Initialize WebPlatformStrategies.
1743
1744 2010-08-03  Alexey Proskuryakov  <ap@apple.com>
1745
1746         Reviewed by Sam Weinig.
1747
1748         https://bugs.webkit.org/show_bug.cgi?id=42939
1749         WebEditorClient::didBeginEditing is never called in WebKit2
1750
1751         * WebView.cpp: (WebView::WebViewWndProc): Removed a call to setFocusedFrame. WebCore will
1752         now set it to main frame, and besides, this call should have been before setFocused(), not
1753         after it. My understanding is that we weren't getting all the same editing delegates on Windows,
1754         so this change may make WebKit1 on Windows behave more like Mac - but I haven't tested it.
1755
1756 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
1757
1758         Reviewed by Darin Fisher.
1759
1760         PopupMenu refactoring in preparation to WebKit2
1761         https://bugs.webkit.org/show_bug.cgi?id=42592
1762
1763         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
1764         instances, concrete classes that inherit from ChromeClient needed to be changed to
1765         implement the new methods.
1766
1767         * WebCoreSupport/WebChromeClient.cpp:
1768         (WebChromeClient::selectItemWritingDirectionIsNatural):
1769         (WebChromeClient::createPopupMenu):
1770         (WebChromeClient::createSearchPopupMenu):
1771         * WebCoreSupport/WebChromeClient.h:
1772
1773 2010-08-02  Jon Honeycutt  <jhoneycutt@apple.com>
1774
1775         Move InjectedBundle.vcproj to where the other WebKitTestRunner vcprojs live.
1776
1777         Reviewed by Sam Weinig.
1778
1779         * WebKit.vcproj/WebKit.sln:
1780
1781 2010-08-02  Jeremy Orlow  <jorlow@chromium.org>
1782
1783         Speculative revert of 64425 due to Chromium instability
1784         https://bugs.webkit.org/show_bug.cgi?id=43347
1785
1786         * WebCoreSupport/WebChromeClient.cpp:
1787         * WebCoreSupport/WebChromeClient.h:
1788         * WebView.cpp:
1789         (WebView::mouseWheel):
1790
1791 2010-07-31  Luiz Agostini  <luiz.agostini@openbossa.org>
1792
1793         Build fix: Windows.
1794
1795         * WebView.cpp:
1796         (WebView::mouseWheel):
1797
1798 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
1799
1800         Reviewed by Darin Fisher.
1801
1802         PopupMenu refactoring in preparation to WebKit2
1803         https://bugs.webkit.org/show_bug.cgi?id=42592
1804
1805         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
1806         instances, concrete classes that inherit from ChromeClient needed to be changed to
1807         implement the new methods.
1808
1809         * WebCoreSupport/WebChromeClient.cpp:
1810         (WebChromeClient::selectItemWritingDirectionIsNatural):
1811         (WebChromeClient::createPopupMenu):
1812         (WebChromeClient::createSearchPopupMenu):
1813         * WebCoreSupport/WebChromeClient.h:
1814
1815 2010-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1816
1817         Unreviewed, rolling out r64422.
1818         http://trac.webkit.org/changeset/64422
1819         https://bugs.webkit.org/show_bug.cgi?id=43304
1820
1821         Build fixes are needed for Snow Leopard and Windows.
1822         (Requested by lca on #webkit).
1823
1824         * WebCoreSupport/WebChromeClient.cpp:
1825         * WebCoreSupport/WebChromeClient.h:
1826
1827 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
1828
1829         Reviewed by Darin Fisher.
1830
1831         PopupMenu refactoring in preparation to WebKit2
1832         https://bugs.webkit.org/show_bug.cgi?id=42592
1833
1834         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
1835         instances, concrete classes that inherit from ChromeClient needed to be changed to
1836         implement the new methods.
1837
1838         * WebCoreSupport/WebChromeClient.cpp:
1839         (WebChromeClient::selectItemWritingDirectionIsNatural):
1840         (WebChromeClient::createPopupMenu):
1841         (WebChromeClient::createSearchPopupMenu):
1842         * WebCoreSupport/WebChromeClient.h:
1843
1844 2010-07-31  Daniel Bates  <dbates@rim.com>
1845
1846         Attempt to fix the Windows build after changeset 64409 <http://trac.webkit.org/changeset/64409>.
1847
1848         * WebFrame.cpp:
1849         (WebFrame::setPrinting):
1850
1851 2010-07-30  Dan Bernstein  <mitz@apple.com>
1852
1853         Reviewed by Darin Adler.
1854
1855         <rdar://problem/8257783> Short documents may print a second blank page
1856         https://bugs.webkit.org/show_bug.cgi?id=43271
1857
1858         * WebFrame.cpp:
1859         (WebFrame::setPrinting): Updated for changes to Frame::setPrinting(). Passing 0 for the
1860         page height, which maintains existing behavior.
1861
1862 2010-07-30  Joseph Pecoraro  <joepeck@webkit.org>
1863
1864         Reviewed by David Kilzer.
1865
1866         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
1867         https://bugs.webkit.org/show_bug.cgi?id=40627
1868
1869         * WebCoreSupport/WebChromeClient.cpp:
1870         (WebChromeClient::reachedApplicationCacheOriginQuota):
1871         * WebCoreSupport/WebChromeClient.h:
1872
1873 2010-07-26  Steve Block  <steveblock@google.com>
1874
1875         Reviewed by Jeremy Orlow.
1876
1877         Page clients should be passed to Page constructor via structure of pointers
1878         https://bugs.webkit.org/show_bug.cgi?id=42834
1879
1880         * WebView.cpp:
1881         (WebView::initWithFrame):
1882
1883 2010-07-27  Steve Block  <steveblock@google.com>
1884
1885         Reviewed by Alexey Proskuryakov.
1886
1887         Client-based Geolocation does not pass enableHighAccuracy option to controller and client
1888         https://bugs.webkit.org/show_bug.cgi?id=40374
1889
1890         Stub out setEnableHighAccuracy method for the Win port.
1891
1892         * WebCoreSupport/WebGeolocationControllerClient.h:
1893         (WebGeolocationControllerClient::setEnableHighAccuracy):
1894
1895 2010-07-22  Sam Weinig  <sam@webkit.org>
1896
1897         Reviewed by Maciej Stachowiak.
1898
1899         Fix for <rdar://problem/8222626>
1900         Send textDidChangeInTextField delegate callback only in response to typing or other forms of user text input.
1901
1902         The function name no longer perfectly matches the behavior, but I didn't want to break any existing clients. Maybe we
1903         should migrate to a new function name eventually
1904
1905         * WebCoreSupport/WebEditorClient.cpp:
1906         (WebEditorClient::textDidChangeInTextField):
1907
1908 2010-07-21  Brady Eidson  <beidson@apple.com>
1909
1910         Reviewed by Geoffrey Garen.
1911
1912         Break out "scheme registration" functionality from SecurityOrigin to a SchemeRegistry
1913         https://bugs.webkit.org/show_bug.cgi?id=42783
1914
1915         * WebView.cpp:
1916         (WebView::registerURLSchemeAsLocal):
1917         (WebView::registerURLSchemeAsSecure):
1918
1919 2010-07-20  Steve Falkenburg  <sfalken@apple.com>
1920
1921         Reviewed by Adam Roben.
1922
1923         WebKit on Windows should build optionally with an unversioned ICU DLL
1924         https://bugs.webkit.org/show_bug.cgi?id=42722
1925         <rdar://problem/8211767> WebKit needs to link against unversioned ICU
1926
1927         To get the proper value for U_DISABLE_RENAMING into all source files, we force
1928         the include of ICUVersion.h (our generated header) via the compiler options.
1929
1930         * WebKit.vcproj/WebKit.vcproj: Add forced include of ICUVersion.h.        
1931
1932 2010-07-21  Adam Roben  <aroben@apple.com>
1933
1934         Update WebKit.sln for InjectedBundle's Debug_Internal configuration
1935
1936         Fixes <http://webkit.org/b/42749> InjectedBundle's build
1937         configurations are screwy
1938
1939         Reviewed by Darin Adler.
1940
1941         * WebKit.vcproj/WebKit.sln: Build the Debug_Internal variant of
1942         InjectedBundle when we're using the Debug_Internal solution
1943         configuration.
1944
1945 2010-07-21  Adam Roben  <aroben@apple.com>
1946
1947         Add MiniBrowser to WebKit.sln
1948
1949         It is the last project to build.
1950
1951         Fixes <http://webkit.org/b/42747> build-webkit should build
1952         MiniBrowser
1953
1954         Reviewed by Darin Adler.
1955
1956         * WebKit.vcproj/WebKit.sln: Added MiniBrowser, and made it depend on
1957         WebKitTestRunner.
1958
1959 2010-07-20  Adam Roben  <aroben@apple.com>
1960
1961         Add WebKitTestRunner and friends to WebKit.sln
1962
1963         We added these projects to WebKit2.sln in r63585, but removed them
1964         again in r63600 because WebKitTestRunner required getopt, which
1965         doesn't exist in WebKitAuxiliaryLibrary. r63700 and r63788 removed the
1966         use of getopt in WebKitTestRunner, so we can now add it to WebKit.sln
1967         (which has replaced WebKit2.sln).
1968
1969         Fixes <http://webkit.org/b/42711> WebKit.sln should build
1970         WebKitTestRunner
1971
1972         Reviewed by Steve Falkenburg.
1973
1974         * WebKit.vcproj/WebKit.sln: Added the following projects to the end of
1975         the build order (in first-built to last-built order):
1976         InjectedBundleGenerated, InjectedBundle, WebKitTestRunner. Also
1977         removed an unnecessary dependency from testapi on WebKit2WebProcess.
1978
1979 2010-07-19  Daniel Bates  <dbates@rim.com>
1980
1981         Reviewed by Adam Roben.
1982
1983         [Win] Implement LayoutTestController::markerTextForListItem()
1984         https://bugs.webkit.org/show_bug.cgi?id=37930
1985
1986         Implements support for markerTextForListItem in the Windows port.
1987
1988         * DOMCoreClasses.cpp:
1989         (DOMElement::markerTextForListItem): Added.
1990         * DOMCoreClasses.h:
1991         * Interfaces/DOMPrivate.idl: Added declaration for markerTextForListItem().
1992         * Interfaces/IWebViewPrivate.idl: Added declaration for elementFromJS().
1993         * Interfaces/WebKit.idl: Touch it to force a rebuild (and for good luck :-)).
1994         * WebView.cpp:
1995         (WebView::elementFromJS): Added.
1996         * WebView.h:
1997
1998 2010-07-16  Zhe Su  <suzhe@chromium.org>
1999
2000         Reviewed by Darin Adler.
2001
2002         REGRESSION(r61484): Broke focus behaviour on Qt and probably other platforms
2003         https://bugs.webkit.org/show_bug.cgi?id=42253
2004
2005         Dummy implementation of EditorClient::willSetInputMethodState.
2006
2007         * WebCoreSupport/WebEditorClient.cpp:
2008         (WebEditorClient::willSetInputMethodState):
2009         * WebCoreSupport/WebEditorClient.h:
2010
2011 2010-07-16  Mikhail Naganov  <mnaganov@chromium.org>
2012
2013         Reviewed by Pavel Feldman.
2014
2015         Make JS memory stats available via 'Performance' object (Web Timing).
2016         This statistics is populated only if 'WebKitMemoryInfoEnabled'
2017         preference is set.
2018
2019         'console.memory' is kept until Web Timing object becomes visible by
2020         default (currently it is hidden under compile-time flag).  These stats
2021         are guarded with the same preference.
2022
2023         https://bugs.webkit.org/show_bug.cgi?id=41617
2024
2025         * Interfaces/IWebPreferencesPrivate.idl:
2026         * WebPreferenceKeysPrivate.h:
2027         * WebPreferences.cpp:
2028         (WebPreferences::initializeDefaultSettings):
2029         (WebPreferences::memoryInfoEnabled):
2030         (WebPreferences::setMemoryInfoEnabled):
2031         * WebPreferences.h:
2032         * WebView.cpp:
2033         (WebView::notifyPreferencesChanged):
2034
2035 2010-07-14  Brent Fulgham  <bfulgham@webkit.org>
2036
2037         Reviewed by Steve Falkenburg.
2038
2039         Patch for https://bugs.webkit.org/show_bug.cgi?id=42299
2040         Correct WinCairo build for new WebKit2 project structure.
2041
2042         * WebKit.vcproj/WebKit.sln:
2043
2044 2010-07-14  Sam Weinig  <sam@webkit.org>
2045
2046         Reviewed by Darin Adler.
2047
2048         Patch for https://bugs.webkit.org/show_bug.cgi?id=42232
2049         Make changing Cursors work in WebKit2.
2050
2051         * WebCoreSupport/WebChromeClient.cpp:
2052         (WebChromeClient::setCursor):
2053         We now need to grab the native cursor out of the WebCore cursor.
2054
2055         (WebChromeClient::setLastSetCursorToCurrentCursor):
2056         Sets the WebView's "last set cursor" to be the current cursor so that
2057         the cursor is set correctly for plugins.
2058         * WebCoreSupport/WebChromeClient.h:
2059         * WebView.cpp:
2060         (WebView::WebView):
2061         (WebView::WebViewWndProc):
2062         * WebView.h:
2063         (WebView::setLastCursor):
2064         Change the "last set cursor" to be stored as a member instead of a global.
2065
2066 2010-07-13  Steve Falkenburg  <sfalken@apple.com>
2067
2068         Windows build fix.
2069         Make WebKit.sln build WebKit.dll as it used to in the past.
2070         (sln is updated to include necessary projects)
2071
2072         * WebKit.vcproj/WebKit.sln:
2073
2074 2010-07-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2075
2076         Windows build fix
2077
2078         * Interfaces/WebKit.idl: Touched to force a build
2079
2080 2010-07-07  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2081
2082         Reviewed by Darin Adler.
2083
2084         Prevent assertion/duplicate loads for non-deferred subtitute-data loads
2085
2086         https://bugs.webkit.org/show_bug.cgi?id=30879
2087
2088         MainResourceLoader uses the member m_initialRequest to store requests for future
2089         deferred loads. When doing the actual load in handleDataLoadNow(), we therefore
2090         have to clear this request so that subsequent entries into the loader will not
2091         start yet another load.
2092
2093         This can happen as a result of a PageGroupLoadDeferrer going out of scope when
2094         returning from Chrome::runJavaScriptAlert(), which calls setDeferredLoading(false),
2095         but only in the case of using both substitute-data and non-deferred main resource
2096         load together. That's why two new DRT functions were added:
2097
2098          * queueLoadHTMLString()
2099          * setDeferMainResourceLoad()
2100
2101         The change adds DRT hooks for Mac, Win and Qt for these two functions. For Mac
2102         and Win the hook uses new SPI in WebDataSource. For Qt a new static member was
2103         added to the FrameLoaderClientQt and accessed though DumpRenderTreeSupportQt.
2104
2105         * Interfaces/IWebDataSource.idl:
2106         * WebDataSource.cpp:
2107         (WebDataSource::setDeferMainResourceDataLoad):
2108         * WebDataSource.h:
2109
2110 2010-07-12  Steve Falkenburg  <sfalken@apple.com>
2111
2112         Reviewed by Alice Liu.
2113
2114         <rdar://problem/8113038> WebKit1 and WebKit2 should build as a single DLL
2115         https://bugs.webkit.org/show_bug.cgi?id=40921
2116
2117         Pre-WebKit2 WebKit now builds into a static library named WebKitLib.lib.
2118         WebKit.dll now links in WebCore.lib, WebKitLib.lib and WebKit2 code.
2119         
2120         This is a first step. We'll likely want to migrate the remainder of
2121         the non-deprecated WebKit code (strings, DLLMain, resources) into WebKit2.
2122
2123         * WebKit.vcproj/WebKit.def: Removed.
2124         * WebKit.vcproj/WebKit.make: Don't fail if WebKit doesn't produce a DLL.
2125         * WebKit.vcproj/WebKit.vcproj: Build WebKit as a static lib.
2126         Renamed project name to WebKitLib to avoid confusion and naming conflicts.
2127         Generate intermediate pdb file for debuggability of static lib.
2128         Removed DLL-related options.        
2129         * WebKit.vcproj/deleteButton.png: Removed.
2130         * WebKit.vcproj/deleteButtonPressed.png: Removed.
2131         * WebKit.vcproj/fsVideoAudioVolumeHigh.png: Removed.
2132         * WebKit.vcproj/fsVideoAudioVolumeLow.png: Removed.
2133         * WebKit.vcproj/fsVideoExitFullscreen.png: Removed.
2134         * WebKit.vcproj/fsVideoPause.png: Removed.
2135         * WebKit.vcproj/fsVideoPlay.png: Removed.
2136         * WebKit.vcproj/missingImage.png: Removed.
2137         * WebKit.vcproj/nullplugin.png: Removed.
2138         * WebKit.vcproj/panEastCursor.png: Removed.
2139         * WebKit.vcproj/panIcon.png: Removed.
2140         * WebKit.vcproj/panNorthCursor.png: Removed.
2141         * WebKit.vcproj/panNorthEastCursor.png: Removed.
2142         * WebKit.vcproj/panNorthWestCursor.png: Removed.
2143         * WebKit.vcproj/panSouthCursor.png: Removed.
2144         * WebKit.vcproj/panSouthEastCursor.png: Removed.
2145         * WebKit.vcproj/panSouthWestCursor.png: Removed.
2146         * WebKit.vcproj/panWestCursor.png: Removed.
2147         * WebKit.vcproj/searchCancel.png: Removed.
2148         * WebKit.vcproj/searchCancelPressed.png: Removed.
2149         * WebKit.vcproj/searchMagnifier.png: Removed.
2150         * WebKit.vcproj/searchMagnifierResults.png: Removed.
2151         * WebKit.vcproj/textAreaResizeCorner.png: Removed.
2152         * WebKit.vcproj/verticalTextCursor.png: Removed.
2153         * WebKit.vcproj/zoomInCursor.png: Removed.
2154         * WebKit.vcproj/zoomOutCursor.png: Removed.
2155
2156 2010-07-08  Aaron Boodman  <aa@chromium.org>
2157
2158         Reviewed by Timothy Hatcher.
2159
2160         Add the ability for user scripts and user styles to affect just the top frame.
2161
2162         https://bugs.webkit.org/show_bug.cgi?id=41529
2163
2164         * WebView.cpp:
2165         (WebView::addUserScriptToGroup):
2166         (WebView::addUserStyleSheetToGroup):
2167
2168 2010-07-08  Adele Peterson  <adele@apple.com>
2169
2170         Reviewed by Jon Honeycutt, Adam Roben, and Darin Adler.
2171
2172         Fix for https://bugs.webkit.org/show_bug.cgi?id=41721
2173         <rdar://problem/8158561> Missing plug-in indicator should have a pressed state
2174
2175         Implement shouldMissingPluginMessageBeButton.
2176
2177         * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::shouldMissingPluginMessageBeButton):
2178         * WebCoreSupport/WebChromeClient.h:
2179
2180 2010-07-07  Anders Carlsson  <andersca@apple.com>
2181
2182         Reviewed by Simon Fraser.
2183
2184         Rename TestNetscapePlugin.subproj and move platform specific files to subdirectories
2185         https://bugs.webkit.org/show_bug.cgi?id=41781
2186
2187         * WebKit.vcproj/WebKit.sln:
2188
2189 2010-07-07  Sam Weinig  <sam@webkit.org>
2190
2191         Reviewed by Anders Carlsson.
2192
2193         Patch for https://bugs.webkit.org/show_bug.cgi?id=41772
2194         Add basic piping for BackForwardControllerClient.
2195
2196         * WebView.cpp:
2197         (WebView::initWithFrame):
2198
2199 2010-07-07  Adam Roben  <aroben@apple.com>
2200
2201         Windows build fix
2202
2203         * Interfaces/WebKit.idl: Touched to force a build.
2204
2205 2010-07-06  Steve Falkenburg  <sfalken@apple.com>
2206
2207         Reviewed by Simon Fraser.
2208
2209         Expose URL matching from WebUserContentURLPattern
2210         https://bugs.webkit.org/show_bug.cgi?id=41726
2211         <rdar://problem/7910144>
2212         
2213         We previously had a way to construct WebUserContentURLPattern
2214         instances via WebKit, but no way for callers to perform matching.
2215         This patch adds the matchesURL functionality to allow for this.
2216
2217         * Interfaces/IWebUserContentURLPattern.idl: Added matchesURL.
2218         * Interfaces/IWebView.idl: Touch to force a build.
2219         * WebUserContentURLPattern.cpp:
2220         (WebUserContentURLPattern::matchesURL): Added. Calls through to WebCore::UserContentURLPattern::matches.
2221         * WebUserContentURLPattern.h: Added matchesURL.
2222
2223 2010-07-03  Jon Honeycutt  <jhoneycutt@apple.com>
2224
2225         The missing plug-in indicator should be clickable
2226
2227         https://bugs.webkit.org/show_bug.cgi?id=41550
2228         <rdar://problem/8132162>
2229
2230         From an original patch by Kevin Decker.
2231
2232         Reviewed by Darin Adler.
2233
2234         * Interfaces/IWebUIDelegatePrivate.idl:
2235         Added a new delegate interface, and declare a function
2236         didPressMissingPluginButton().
2237
2238         * Interfaces/WebKit.idl:
2239         Touch this file to force interfaces to be rebuilt.
2240
2241         * WebCoreSupport/WebChromeClient.cpp:
2242         (WebChromeClient::missingPluginButtonClicked):
2243         Get the UI delegate, and query it for IWebUIDelegatePrivate3. Call its
2244         didPressMissingPluginButton() function.
2245
2246         * WebCoreSupport/WebChromeClient.h:
2247         Declare an override of missingPluginButtonClicked().
2248
2249 2010-07-03  Erik Arvidsson  <arv@chromium.org>
2250
2251         Reviewed by Ojan Vafai.
2252
2253         Fix issue where a contextmenu event was reporting the wrong target
2254         if the context menu was shown due to pressing the context menu key
2255         (or Shift+F10).
2256
2257         * WebView.cpp:
2258         (WebView::handleContextMenuEvent):
2259
2260 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
2261
2262         Reviewed by Adele Peterson.
2263
2264         Provide a WebView preference to disable DNS prefetching on Windows
2265         https://bugs.webkit.org/show_bug.cgi?id=41504
2266         <rdar://problem/8151939>
2267
2268         * Interfaces/IWebPreferencesPrivate.idl: Added isDNSPrefetchingEnabled, setDNSPrefetchingEnabled.
2269         * Interfaces/WebKit.idl: Touched to force IDL build.
2270         * WebPreferenceKeysPrivate.h: Added WebKitDNSPrefetchingEnabledPreferenceKey.
2271         * WebPreferences.cpp:
2272         (WebPreferences::initializeDefaultSettings): Default prefetch to true.
2273         (WebPreferences::setDNSPrefetchingEnabled): Added.
2274         (WebPreferences::isDNSPrefetchingEnabled): Added.
2275         * WebPreferences.h: Added isDNSPrefetchingEnabled, setDNSPrefetchingEnabled.
2276         * WebView.cpp:
2277         (WebView::notifyPreferencesChanged): Propagate prefetch pref into settings.
2278
2279 2010-06-21  Nate Chapin  <japhet@chromium.org>
2280
2281         Unreviewed, Windows build fix.
2282
2283         Update WebFrame to use FrameLoaderStateMachine in
2284          firstLayoutDone().
2285
2286         * WebFrame.cpp:
2287         (WebFrame::firstLayoutDone):
2288
2289 2010-06-15  Dumitru Daniliuc  <dumi@chromium.org>
2290
2291         Reviewed by Adam Barth.
2292
2293         Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase.
2294         https://bugs.webkit.org/show_bug.cgi?id=39041
2295
2296         * WebView.cpp:
2297         (WebView::notifyPreferencesChanged):
2298
2299 2010-06-16  Adam Roben  <aroben@apple.com>
2300
2301         Add a "forPrinting" boolean parameter to
2302         IWebFramePrivate::renderTreeAsExternalRepresentation
2303
2304         Fixes <http://webkit.org/b/40727> Respect
2305         LayoutTestController::isPrinting on Windows.
2306
2307         Reviewed by Dan Bernstein.
2308
2309         * Interfaces/IWebFramePrivate.idl: Renamed the current
2310         renderTreeAsExternalRepresentation to unused1, and added a new version
2311         that takes a boolean "forPrinting" parameter.
2312
2313         * Interfaces/WebKit.idl: Touched to force a build.
2314
2315         * WebFrame.cpp:
2316         (WebFrame::renderTreeAsExternalRepresentation): Added a boolean
2317         "forPrinting" parameter, and used it to tell externalRepresentation
2318         what kind of behavior to use.
2319
2320         * WebFrame.h: Renamed the old renderTreeAsExternalRepresentation and
2321         added the new one.
2322
2323 2010-06-15  Darin Adler  <darin@apple.com>
2324
2325         Reviewed by Adam Barth.
2326
2327         Move functions out of Frame class that were marked "move to Chrome"
2328         https://bugs.webkit.org/show_bug.cgi?id=39636
2329
2330         * WebView.cpp:
2331         (WebView::shouldClose): Call shouldClose on FrameLoader instead of
2332         going through Frame.
2333
2334 2010-06-14  Adam Roben  <aroben@apple.com>
2335
2336         Add WebKitLauncherWin to WebKit.sln
2337
2338         Fixes <http://webkit.org/b/40583>.
2339
2340         Reviewed by Darin Adler.
2341
2342         * WebKit.vcproj/WebKit.sln: Added WebKitLauncherWin.vcproj. It depends
2343         on WebKitAPITest, so is the last project to build. (Also removed
2344         QTMovieWin's direct dependency on JavaScriptCore, since it already has
2345         an indirect dependency on it.)
2346
2347 2010-06-14  Chang Shu  <chang.shu@nokia.com>
2348
2349         Reviewed by Kenneth Rohde Christiansen.
2350
2351         [win] Make windows compile after API changes.
2352
2353         https://bugs.webkit.org/show_bug.cgi?id=40434
2354
2355         * WebKitGraphics.cpp:
2356         (WebDrawText):
2357
2358 2010-06-14  Ilya Tikhonovsky  <loislo@chromium.org>
2359
2360         Reviewed by Pavel Feldman.
2361
2362         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
2363         data from inspected page to WebInspector as JSON string via http. The native
2364         serialization to JSON string is supported by InspectorValue's classes. This patch
2365         has the implementation of sendMessageToFrontend function. WebKit version of it still
2366         uses ScriptFunctionCall and will be switched to another transport a little bit later.
2367         https://bugs.webkit.org/show_bug.cgi?id=40134
2368
2369         * WebCoreSupport/WebInspectorClient.cpp:
2370         (WebInspectorClient::WebInspectorClient):
2371         (WebInspectorClient::~WebInspectorClient):
2372         (WebInspectorClient::openInspectorFrontend):
2373         * WebCoreSupport/WebInspectorClient.h:
2374
2375 2010-06-10  Eric Seidel  <eric@webkit.org>
2376
2377         Reviewed by Adam Barth.
2378
2379         Reduce FrameView.h includes to speed up build times
2380         https://bugs.webkit.org/show_bug.cgi?id=40408
2381
2382         Another fix for Windows.
2383
2384         * WebView.cpp:
2385
2386 2010-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2387
2388         Unreviewed, rolling out r60889.
2389         http://trac.webkit.org/changeset/60889
2390         https://bugs.webkit.org/show_bug.cgi?id=40365
2391
2392         gtk bot has some kind of memory corruption (Requested by
2393         loislo on #webkit).
2394
2395         * WebCoreSupport/WebInspectorClient.cpp:
2396         (WebInspectorClient::WebInspectorClient):
2397         (WebInspectorClient::~WebInspectorClient):
2398         (WebInspectorClient::openInspectorFrontend):
2399         * WebCoreSupport/WebInspectorClient.h:
2400         (WebInspectorClient::frontendClosing):
2401
2402 2010-06-07  Ilya Tikhonovsky  <loislo@chromium.org>
2403
2404         Reviewed by Pavel Feldman.
2405
2406         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
2407         data from inspected page to WebInspector as JSON string via http. The native
2408         serialization to JSON string is supported by InspectorValue's classes. This patch
2409         has the implementation of sendMessageToFrontend function. WebKit version of it still
2410         uses ScriptFunctionCall and will be switched to another transport a little bit later.
2411         https://bugs.webkit.org/show_bug.cgi?id=40134
2412
2413         * WebCoreSupport/WebInspectorClient.cpp:
2414         (WebInspectorClient::WebInspectorClient):
2415         (WebInspectorClient::~WebInspectorClient):
2416         (WebInspectorClient::openInspectorFrontend):
2417         * WebCoreSupport/WebInspectorClient.h:
2418
2419 2010-06-08  Antonio Gomes  <tonikitoo@webkit.org>
2420
2421         Reviewed by Ojan Vafai and Darin Adler.
2422
2423         Refactor platform dependent editing behavior code out of Settings
2424         https://bugs.webkit.org/show_bug.cgi?id=39854
2425
2426         EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
2427         EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
2428
2429         * WebView.cpp:
2430         (WebView::notifyPreferencesChanged):
2431
2432 2010-06-04  Alice Liu  <alice.liu@apple.com>
2433
2434         Reviewed by Jon Honeycutt.
2435
2436         WebFrame::paintDocumentRectToContextAtPoint doesn't paint scrollbars
2437         https://bugs.webkit.org/show_bug.cgi?id=40034
2438         <rdar://problem/7799848>
2439
2440         * WebFrame.cpp:
2441         (WebFrame::paintScrollViewRectToContextAtPoint): Renamed from paintDocumentRectToContextAtPoint. 
2442         Call paint() instead of paintContents(). Also move the dirtyRect to counteract the moving that happens in paint().
2443
2444         Just renaming changes:
2445         * Interfaces/IWebFramePrivate.idl:
2446         * Interfaces/IWebViewPrivate.idl:
2447         * WebFrame.h:
2448         * WebView.cpp:
2449         (WebView::paintScrollViewRectToContextAtPoint):
2450         * WebView.h:
2451
2452         * Interfaces/WebKit.idl: Touched for rebuild.
2453
2454 2010-05-30  Daniel Bates  <dbates@rim.com>
2455
2456         Unreviewed, attempt to fix the build after http://trac.webkit.org/changeset/60418.
2457
2458         * WebFrame.cpp:
2459         (WebFrame::elementWithName):
2460         (WebFrame::controlsInForm):
2461
2462 2010-05-22  Jer Noble  <jer.noble@apple.com>
2463
2464         Reviewed by Adam Roben.
2465
2466         Full screen doesn't work for video elements
2467         https://bugs.webkit.org/show_bug.cgi?id=39557
2468         rdar://problem/8011813
2469         
2470         Modified FullscreenVideoController to work with MediaPlayerPrivateFullscreenWindow.  The FullscreenVideoController
2471         is now MediaPlayerPrivate agnostic..
2472
2473         * FullscreenVideoController.cpp:
2474         (FullscreenVideoController::LayoutClient::LayoutClient): New helper class which implements WKCACFLayerLayoutClient.
2475         (FullscreenVideoController::LayoutClient::layoutSublayersOfLayer):
2476         (FullscreenVideoController::FullscreenVideoController):
2477         (FullscreenVideoController::~FullscreenVideoController):
2478         (FullscreenVideoController::enterFullscreen):
2479         (FullscreenVideoController::exitFullscreen):
2480         (FullscreenVideoController::fullscreenClientWndProc): Handle WM_KEYDOWN.
2481         (FullscreenVideoController::createHUDWindow):
2482         (FullscreenVideoController::hudWndProc):  Handle WM_KEYDOWN.
2483         (FullscreenVideoController::onChar):
2484         (FullscreenVideoController::onKeyDown):  New function: handles the VK_ESCAPE case more reliably than WM_CHAR.
2485         * FullscreenVideoController.h:
2486         * WebView.h: 
2487         (WebView::viewWindow): Added a simple viewWindow() accessor.
2488
2489 2010-05-25  Brady Eidson  <beidson@apple.com>
2490
2491         Reviewed by Darin Adler.
2492
2493         Database origins aren't populated at launch (missing db in prefs sheet, possible other symptoms)
2494         <rdar://problem/8013233> and https://bugs.webkit.org/show_bug.cgi?id=39486
2495
2496         * WebDatabaseManager.cpp:
2497         (WebKitInitializeWebDatabasesIfNecessary): Call initializeTracker() instead of trying to set the path on
2498           an already created tracker that already has its origins populated.
2499         * WebDatabaseManager.h:
2500
2501         * WebView.cpp:
2502         (WebView::initWithFrame): Call a renamed method instead.
2503
2504 2010-05-25  Ada Chan  <adachan@apple.com>
2505
2506         Reviewed by Steve Falkenburg.
2507
2508         https://bugs.webkit.org/show_bug.cgi?id=39651
2509         
2510         Make m_closeWindowTimer a SuspendableTimer, so it is properly suspended
2511         when page loading is deferred.
2512
2513         * WebView.cpp:
2514         (WebView::WebView): m_closeWindowTimer is now a pointer to a SuspendableTimer.
2515         (WindowCloseTimer::create):
2516         (WindowCloseTimer::WindowCloseTimer):
2517         (WindowCloseTimer::contextDestroyed): Make sure we delete the WindowCloseTimer in the end.
2518         (WindowCloseTimer::fired):
2519         (WebView::closeWindowSoon):
2520         (WebView::closeWindowTimerFired):
2521         (WebView::notifyPreferencesChanged): Can just check for the existence m_closeWindowTimer, since
2522         we only create it when we need to start the timer.
2523         * WebView.h:
2524
2525 2010-05-24  Darin Adler  <darin@apple.com>
2526
2527         Reviewed by Eric Seidel.
2528
2529         Move view-related functions from Frame to FrameView
2530         https://bugs.webkit.org/show_bug.cgi?id=39366
2531
2532         * WebFrame.cpp:
2533         (WebFrame::setTextSizeMultiplier): Call function on FrameView.
2534         * WebView.cpp:
2535         (WebView::setZoomMultiplier): Ditto.
2536
2537 2010-05-24  Anders Carlsson  <andersca@apple.com>
2538
2539         Yet another Windows build fix.
2540         
2541         * WebView.cpp:
2542         (WebView::canShowMIMEType):
2543         Use the right capitalizatinon of 'MIME' (which also happens to be incorrect according to our guidelines).
2544
2545 2010-05-24  Anders Carlsson  <andersca@apple.com>
2546
2547         Another Windows build fix.
2548
2549         * WebView.cpp:
2550         Don't include PlugInInfoStore.h, instead include PluginData.h
2551
2552 2010-05-24  Anders Carlsson  <andersca@apple.com>
2553
2554         Fix Windows build.
2555
2556         * WebView.cpp:
2557         (WebView::canShowMIMEType):
2558
2559 2010-05-21  Steve Block  <steveblock@google.com>
2560
2561         Reviewed by Jeremy Orlow.
2562
2563         Add DeviceOrientation and DeviceOrientationClient
2564         https://bugs.webkit.org/show_bug.cgi?id=39479
2565
2566         * WebView.cpp:
2567         (WebView::initWithFrame):
2568
2569 2010-05-20  Simon Fraser  <simon.fraser@apple.com>
2570
2571         Build fix, no review.
2572
2573         Fix the non-accelerated-compositing Windows build with some
2574         #if USE(ACCELERATED_COMPOSITING) loving.
2575
2576         * WebView.cpp:
2577         * WebView.h:
2578
2579 2010-05-20  Simon Fraser  <simon.fraser@apple.com>
2580
2581         Reviewed by Adam Roben.
2582
2583         Avoid flushing CA layers when a layout is pending
2584         https://bugs.webkit.org/show_bug.cgi?id=39463
2585
2586         <rdar://problem/7999463>
2587
2588         Avoid rendering the compositing layers to the screen if there's a layout pending,
2589         since the layer tree not in a state that should be presented to the user.
2590         
2591         This fixes flashes in some types of content that dynamically add and remove layers.
2592
2593         Have the WebView implement WKCACFLayerRendererClient so that the
2594         WKCACFLayerRenderer can ask whether it's a good time to render. If the FrameView
2595         has a layout pending, say no.
2596
2597         * WebView.h: 
2598         * WebView.cpp:
2599         (WebView::setAcceleratedCompositing):
2600         (WebView::shouldRender):
2601
2602 2010-05-18  Brent Fulgham  <bfulgham@webkit.org>
2603
2604         Reviewed by Adam Roben.
2605
2606         [WinCairo] Correct scaling for print preview
2607         https://bugs.webkit.org/show_bug.cgi?id=39329
2608
2609         Cairo does not properly deal with Windows HDCs that have been
2610         scaled using MM_ANISOTROPIC mapping mode, and a WindowExt and
2611         ViewportExt setting.
2612         (see http://bugs.freedesktop.org/show_bug.cgi?id=28161)
2613
2614         Instead, reset the HDC's WorldTransform to be unscaled, then
2615         scale the cairo context to the desired scaling, and perform
2616         the drawing operation.
2617
2618         * WebFrame.cpp:
2619         (WebFrame::drawHeader): Use pre-positioned context to simplify 
2620           this method.
2621         (WebFrame::drawFooter): Use pre-positioned context to simplify
2622           this method.
2623         (WebFrame::spoolPage): Revise scaling logic to turn off HDC
2624           scaling, and scale using only Cairo.  Revert scaling at end
2625           so that user-defined GDI-based routines (e.g., header/footer)
2626           will draw in the right position.
2627         (WebFrame::spoolPages): Identify print preview case, and
2628           retrieve scaling factors from preview context.  Set the
2629           Cairo context to use these factors during the spoolPage
2630           operation.
2631
2632 2010-05-20  Martin Robinson  <mrobinson@igalia.com>
2633
2634         Unreviewed.
2635
2636         Touch WebKit.idl to ensure that interfaces rebuild.
2637
2638         * Interfaces/WebKit.idl: Touched.
2639
2640 2010-05-20  Martin Robinson  <mrobinson@igalia.com>
2641
2642         Reviewed by Adam Roben.
2643
2644         Fix the Windows build and move new IDL declarations to the bottom of the file.
2645
2646         * Interfaces/IWebPreferences.idl: Move new API to the bottom of the IDL file to prevent vtable mismatch.
2647         * WebPreferences.cpp: 
2648         (WebPreferences::setEditingBehavior): Change the type of the parameter to setEditingBehavior to the proper type.
2649
2650 2010-05-20  Martin Robinson  <mrobinson@igalia.com>
2651
2652         Unreviewed.
2653
2654         Fix the Windows build.
2655
2656         * WebView.cpp:
2657         (WebView::notifyPreferencesChanged): Change behavior to 'editingBehavior'.
2658
2659 2010-05-20  Martin Robinson  <mrobinson@webkit.org>
2660
2661         Reviewed by Ojan Vafai.
2662
2663         Expose the editing behavior setting in DRT to test all editing code paths
2664         https://bugs.webkit.org/show_bug.cgi?id=38603
2665
2666         Expose the EditingBehavior setting in the Windows API.
2667
2668         * Interfaces/IWebPreferences.idl: Add the API point for setting the editing behavior.
2669         * WebPreferenceKeysPrivate.h: Add a key for the editing behavior setting.
2670         * WebPreferences.cpp:
2671         (WebPreferences::editingBehavior): Added.
2672         (WebPreferences::setEditingBehavior): Added.
2673         * WebPreferences.h: Add method declarations.
2674         * WebView.cpp:
2675         (WebView::notifyPreferencesChanged): Update the WebCore setting based on the WebPreferences setting.
2676
2677 2010-05-20  Chris Jerdonek  <cjerdonek@webkit.org>
2678
2679         Reviewed by Eric Seidel.
2680
2681         Modified FrameLoader::urlSelected() to accept a KURL instead of a
2682         ResourceRequest.
2683
2684         https://bugs.webkit.org/show_bug.cgi?id=39320
2685
2686         Since ResourceRequest has non-explicit single-parameter constructors for
2687         String and KURL, urlSelected() previously accepted any of String, KURL,
2688         and ResourceRequest.  This revision changes urlSelected() to accept only
2689         a KURL to make the API tighter and easier to refactor.
2690
2691         * WebCoreSupport/WebContextMenuClient.cpp:
2692         (WebContextMenuClient::searchWithGoogle):
2693           - Updated the call to urlSelected().
2694
2695 2010-05-13  Brian Weinstein  <bweinstein@apple.com>
2696
2697         Reviewed by Tim Hatcher.
2698
2699         <rdar://problem/7982652>
2700
2701         Allow reporting exceptions that occur when using JavaScriptCore APIs to the Web Inspector.
2702
2703         * Interfaces/IWebViewPrivate.idl: Add a reportException function off of IWebViewPrivate.
2704         * Interfaces/WebKit.idl: Touch WebKit.idl to make sure Interfaces rebuild.
2705         * WebView.cpp:
2706         (WebView::reportException): Make sure the function was called with a context from a WebView, and call
2707             WebCore::reportException.
2708         * WebView.h:
2709
2710 2010-05-12  Jer Noble  <jer.noble@apple.com>
2711
2712         Reviewed by Darin Adler.
2713
2714         Bug 38689: #34005 will break fullscreen video playback
2715         https://bugs.webkit.org/show_bug.cgi?id=38689
2716
2717         Use the new definition of PlatformMedia to check the actual type 
2718         returned by MediaPlayer.
2719
2720         * FullscreenVideoController.cpp:
2721         (FullscreenVideoController::movie):
2722
2723 2010-05-11  Jer Noble  <jer.noble@apple.com>
2724
2725         No Review.
2726
2727         Fix build error: The QTMovieWin project is dependent on the JavaScriptCore project.
2728
2729         * WebKit.vcproj/WebKit.sln:
2730
2731 2010-05-11  Alice Liu  <alice.liu@apple.com>
2732
2733         Rubber-stamped by Gavin Barraclough.
2734
2735         Fix build error when enabling debugging block in WebKit win painting code
2736
2737         * WebView.cpp:
2738         (WebView::paintIntoBackingStore):
2739
2740 2010-05-11  Alice Liu  <alice.liu@apple.com>
2741
2742         Reviewed by Steve Falkenburg.
2743
2744         https://bugs.webkit.org/show_bug.cgi?id=38937        
2745         W7 window preview paints content at the wrong location
2746
2747         * WebFrame.cpp:
2748         (WebFrame::paintDocumentRectToContext): Revert r58895
2749         (WebFrame::paintDocumentRectToContextAtPoint): Added
2750
2751         * Interfaces/IWebFramePrivate.idl: Added paintDocumentRectToContextAtPoint
2752         * Interfaces/IWebViewPrivate.idl: ditto
2753         * Interfaces/WebKit.idl: touch to rebuild
2754         * WebFrame.h: ditto
2755         * WebView.cpp: ditto
2756         (WebView::paintDocumentRectToContextAtPoint): ditto
2757         * WebView.h: ditto
2758
2759 2010-05-07  Jer Noble  <jer.noble@apple.com>
2760
2761         Reviewed by Adele Peterson.
2762
2763         Safari pegs CPU and drops tons of frames using HTML5 Vimeo player
2764         https://bugs.webkit.org/show_bug.cgi?id=34005
2765         
2766         QTMovieWin is now QTMovieGWorld.  
2767         * FullscreenVideoController.cpp:
2768         (FullscreenVideoController::movie):
2769         * FullscreenVideoController.h:
2770
2771 2010-05-06  Adam Roben  <aroben@apple.com>
2772
2773         Bail out of WebView::paint when there's nothing to paint
2774
2775         Fixes <http://webkit.org/b/38670> <rdar://problem/7947105> REGRESSION
2776         (r58067): Crash in WebView::paint when Web Inspector is docked and
2777         window is resized so small that WebView disappears
2778
2779         When the WebView is 0-sized, ensureBackingStore() bails out without
2780         creating a bitmap, leaving m_backingStoreBitmap null. Before r58067,
2781         m_backingStoreBitmap was an HBITMAP, so we were happily passing along
2782         a null HBITMAP to various Windows APIs. These calls would fail but not
2783         crash. r58067 changed m_backingStoreBitmap to a RefCountedHBITMAP, and
2784         dereferencing a null RefCountedHBITMAP* of course crashes.
2785
2786         Reviewed by Steve Falkenburg.
2787
2788         * WebView.cpp:
2789         (WebView::paint): Bail if the rect to paint is empty.
2790
2791 2010-05-06  Steve Falkenburg  <sfalken@apple.com>
2792
2793         Reviewed by Adam Roben.
2794
2795         WebFrame::paintDocumentRectToContext paints content at the wrong location
2796         https://bugs.webkit.org/show_bug.cgi?id=38651
2797
2798         * WebFrame.cpp:
2799         (WebFrame::paintDocumentRectToContext):
2800
2801 2010-05-05  Stuart Morgan  <stuartmorgan@chromium.org>
2802
2803         Reviewed by Darin Fisher.
2804
2805         Update setFocus for the new boolean argument; no behavioral change.
2806
2807         https://bugs.webkit.org/show_bug.cgi?id=37961
2808
2809         * WebCoreSupport/EmbeddedWidget.cpp:
2810         (EmbeddedWidget::setFocus):
2811         * WebCoreSupport/EmbeddedWidget.h:
2812
2813 2010-05-03  Abhishek Arya  <inferno@chromium.org>
2814
2815         Reviewed by Adam Barth.
2816
2817         Add support for controlling clipboard access from javascript.
2818         Clipboard access from javascript is disabled by default.
2819         https://bugs.webkit.org/show_bug.cgi?id=27751
2820
2821         * Interfaces/IWebPreferencesPrivate.idl:
2822         * WebPreferenceKeysPrivate.h:
2823         * WebPreferences.cpp:
2824         (WebPreferences::initializeDefaultSettings):
2825         (WebPreferences::javaScriptCanAccessClipboard):
2826         (WebPreferences::setJavaScriptCanAccessClipboard):
2827         * WebPreferences.h:
2828         * WebView.cpp:
2829         (WebView::notifyPreferencesChanged):
2830
2831 2010-05-03  Jens Alfke  <snej@chromium.org>
2832
2833         Reviewed by Darin Fisher.
2834
2835         [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
2836         https://bugs.webkit.org/show_bug.cgi?id=38397
2837
2838         No tests (functionality is exposed only through native WebKit API.)
2839
2840         * WebFrame.h:
2841
2842 2010-04-30  Jon Honeycutt  <jhoneycutt@apple.com>
2843
2844         Caret may fail to blink if a focus handler brings up a modal dialog 
2845         https://bugs.webkit.org/show_bug.cgi?id=38372
2846
2847         Reviewed by Darin Adler.
2848
2849         * WebView.cpp:
2850         (WebView::handleMouseEvent):
2851         If the message is WM_CANCELMODE, which indicates that we our capturing
2852         of mouse events has been cancelled, tell the EventHandler.
2853         It's possible to re-enter this function if handling a mouse event allows
2854         the message loop to run; moved up the call to setMouseActivated(), so
2855         that if we do re-enter this function, the later mouse event will not be
2856         considered as activating the window.
2857         (WebView::WebViewWndProc):
2858         Handle WM_CANCELMODE by calling handleMouseEvent().
2859
2860 2010-04-29  Anders Carlsson  <andersca@apple.com>
2861
2862         Reviewed by Dan Bernstein.
2863
2864         First part of
2865         https://bugs.webkit.org/show_bug.cgi?id=20784
2866         move npapi.h to C99 integer types.
2867
2868         * WebKit.vcproj/WebKit.vcproj:
2869
2870 2010-04-28  Beth Dakin  <bdakin@apple.com>
2871
2872         Reviewed by Darin Adler.
2873
2874         Fix for <rdar://problem/7474349>
2875
2876         Add a synchronous display mechanism for WKCACFLayerRenderer. 
2877
2878         * Interfaces/IWebViewPrivate.idl:
2879         * Interfaces/WebKit.idl:
2880         * WebView.cpp:
2881         (WebView::WebView):
2882         (WebView::updateRootLayerContents):
2883         (WebView::nextDisplayIsSynchronous):
2884         * WebView.h:
2885
2886 2010-04-28  Steve Falkenburg  <sfalken@apple.com>
2887
2888         Reviewed by Maciej Stachowiak.
2889
2890         WebView drawing code may access null backing store dirty region
2891         https://bugs.webkit.org/show_bug.cgi?id=38245
2892         <rdar://problem/7916101> REGRESSION (r58067): All loaded pages fail to display after running iBench HTML test (intermittent)
2893         
2894         * WebView.cpp:
2895         (WebView::updateBackingStore): Add null check for m_backingStoreDirtyRegion.
2896
2897 2010-04-27  Jon Honeycutt  <jhoneycutt@apple.com>
2898
2899         <rdar://problem/7911140> Hitting the "delete" key goes back twice
2900
2901         Reviewed by Maciej Stachowiak.
2902
2903         * WebView.cpp:
2904         (WebView::keyDown):
2905         Return true if we navigated back or forward from the key event to
2906         prevent the event from being propagated further.
2907
2908 2010-04-25  Sam Weinig  <sam@webkit.org>
2909
2910         Reviewed by Maciej Stachowiak.
2911
2912         Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
2913         Disentangle initializing the main thread from initializing threading
2914
2915         * WebKitClassFactory.cpp:
2916         (WebKitClassFactory::WebKitClassFactory): Add call to initializeMainThread.
2917         * WebView.cpp:
2918         (WebView::WebView): Ditto.
2919
2920 2010-04-25  Yury Semikhatsky  <yurys@chromium.org>
2921
2922         Reviewed by Pavel Feldman.
2923
2924         Web Inspector: inspector client shouldn't check if it can be opened
2925         docked if it is already in that state.
2926
2927         https://bugs.webkit.org/show_bug.cgi?id=37946
2928
2929         * WebCoreSupport/WebInspectorClient.cpp:
2930         (WebInspectorFrontendClient::WebInspectorFrontendClient):
2931         (WebInspectorFrontendClient::showWindowWithoutNotifications):
2932         * WebCoreSupport/WebInspectorClient.h:
2933
2934 2010-04-24  Steve Falkenburg  <sfalken@apple.com>
2935
2936         Reviewed by Sam Weinig.
2937
2938         Typo in Geolocation code causes crashes when updates are stopped
2939         https://bugs.webkit.org/show_bug.cgi?id=38089
2940         <rdar://problem/7904104> Crash closing geolocation tab after allowing to use geolocation
2941
2942         * WebCoreSupport/WebGeolocationControllerClient.cpp:
2943         (WebGeolocationControllerClient::stopUpdating): Call unregister instead of register.
2944
2945 2010-04-23  Andy Estes  <aestes@apple.com>
2946
2947         Rubber stamped by Steve Falkenburg.
2948
2949         Roll out http://trac.webkit.org/changeset/55385.
2950
2951         <rdar://problem/7884444>
2952
2953         * Interfaces/IWebUIDelegatePrivate.idl:
2954         * Interfaces/WebKit.idl:
2955         * WebCoreSupport/WebFrameLoaderClient.cpp:
2956         (WebFrameLoaderClient::createPlugin):
2957
2958 2010-04-22  Dave Moore  <davemoore@chromium.org>
2959
2960         Reviewed by Dimitri Glazkov.
2961
2962         Added notification when the favicons for a page are changed
2963         from a script.
2964         The Document object will notify the frame loader, which will
2965         notify the client. Implementations of FrameLoaderClient will
2966         have to add one method; dispatchDidChangeIcons().
2967
2968         https://bugs.webkit.org/show_bug.cgi?id=33812
2969
2970         * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
2971         * WebCoreSupport/WebFrameLoaderClient.cpp:
2972         (WebFrameLoaderClient::dispatchDidChangeIcons):
2973         * WebCoreSupport/WebFrameLoaderClient.h:
2974         * WebFrame.cpp:
2975         (WebFrame::didChangeIcons):
2976         * WebFrame.h:
2977
2978 2010-04-22  Adam Barth  <abarth@webkit.org>
2979
2980         Unreviewed, rolling out r58069.
2981         http://trac.webkit.org/changeset/58069
2982         https://bugs.webkit.org/show_bug.cgi?id=27751
2983
2984         Broke compile on Windows.
2985
2986         * Interfaces/IWebPreferencesPrivate.idl:
2987         * WebPreferenceKeysPrivate.h:
2988         * WebPreferences.cpp:
2989         (WebPreferences::initializeDefaultSettings):
2990         * WebPreferences.h:
2991         * WebView.cpp:
2992         (WebView::notifyPreferencesChanged):
2993
2994 2010-04-22  Abhishek Arya  <inferno@chromium.org>
2995
2996         Reviewed by Adam Barth.
2997
2998         Add support for controlling clipboard access from javascript.
2999         Clipboard access from javascript is disabled by default.
3000         https://bugs.webkit.org/show_bug.cgi?id=27751
3001
3002         * Interfaces/IWebPreferencesPrivate.idl:
3003         * WebPreferenceKeysPrivate.h:
3004         * WebPreferences.cpp:
3005         (WebPreferences::initializeDefaultSettings):
3006         (WebPreferences::javaScriptCanAccessClipboard):
3007         (WebPreferences::setJavaScriptCanAccessClipboard):
3008         * WebPreferences.h:
3009         * WebView.cpp:
3010         (WebView::notifyPreferencesChanged):
3011
3012 2010-04-21  Andy Estes  <aestes@apple.com>
3013
3014         Reviewed by Maciej Stachowiak.
3015
3016         Reference count WebView's backing store bitmap to prevent
3017         deleteBackingStore() from freeing the bitmap while it is still being
3018         referenced by Core Animation.
3019
3020         https://bugs.webkit.org/show_bug.cgi?id=37954
3021
3022         * WebView.cpp:
3023         (WebView::ensureBackingStore):
3024         (WebView::addToDirtyRegion):
3025         (WebView::scrollBackingStore):
3026         (WebView::updateBackingStore):
3027         (WebView::paint):
3028         (WebView::backingStore):
3029         (releaseBackingStoreCallback): deref m_backingStoreBitmap once Core
3030         Animation has dropeed its reference to the memory.
3031         (WebView::updateRootLayerContents): ref m_backingStoreBitmap before
3032         passing the memory to Core Animation to prevent deleteBackingStore()
3033         from freeing it while it is still referenced by CA.
3034         * WebView.h: Make m_backingStoreBitmap a RefCountedGDIHandle<HBITMAP>,
3035         and make m_backingStoreDirtyRegion a RefCountedGDIHandle<HRGN>.
3036
3037 2010-04-20  Adam Barth  <abarth@webkit.org>
3038
3039         Reviewed by Eric Seidel.
3040
3041         Factor DocumentWriter out of FrameLoader
3042         https://bugs.webkit.org/show_bug.cgi?id=37175
3043
3044         Update these callsites because the method moved to DocumentWriter.
3045
3046         * WebCoreSupport/WebFrameLoaderClient.cpp:
3047         (WebFrameLoaderClient::receivedData):
3048
3049 2010-04-20  Kent Tamura  <tkent@chromium.org>
3050
3051         Reviewed by Darin Adler.
3052
3053         Change a parameter type of chooseIconForFiles()
3054         https://bugs.webkit.org/show_bug.cgi?id=37504
3055
3056         * WebCoreSupport/WebChromeClient.cpp:
3057         (WebChromeClient::chooseIconForFiles):
3058         * WebCoreSupport/WebChromeClient.h:
3059
3060 2010-04-16  Gavin Barraclough  <barraclough@apple.com>
3061
3062         Reviewed by NOBODY (Windows build fix).
3063
3064         * WebFrame.cpp:
3065         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
3066         * WebView.cpp:
3067         (WebView::stringByEvaluatingJavaScriptFromString):
3068
3069 2010-04-16  Adam Roben  <aroben@apple.com>
3070
3071         Make it possible for clients to instantiate a WebUserContentURLPattern
3072
3073         Reviewed by Tim Hatcher.
3074
3075         * ForEachCoClass.h: Added WebUserContentURLPattern to the FOR_EACH_COCLASS macro, which
3076         lists all our instantiatable classes.
3077
3078         * WebKitClassFactory.cpp: Added a now-required #include.
3079
3080 2010-04-15  Adam Roben  <aroben@apple.com>
3081
3082         Expose UserContentURLPattern as WebKit SPI
3083
3084         Fixes <http://webkit.org/b/37354>.
3085
3086         Reviewed by Tim Hatcher.
3087
3088         * Interfaces/IWebUserContentURLPattern.idl: Added.
3089
3090         * Interfaces/WebKit.idl: Added WebUserContentURLPattern.
3091
3092         * WebKit.vcproj/Interfaces.vcproj: Added IWebUserContentURLPattern.
3093
3094         * WebKit.vcproj/WebKit.vcproj: Added WebUserContentURLPattern.
3095
3096         * WebUserContentURLPattern.cpp: Added.
3097         (WebUserContentURLPattern::WebUserContentURLPattern):
3098         (WebUserContentURLPattern::~WebUserContentURLPattern):
3099         (WebUserContentURLPattern::createInstance):
3100         (WebUserContentURLPattern::AddRef):
3101         (WebUserContentURLPattern::Release):
3102         (WebUserContentURLPattern::QueryInterface):
3103         Standard COM implementations.
3104
3105         (WebUserContentURLPattern::parse): Parse the string into a
3106         UserContentURLPattern and store it.
3107
3108         (WebUserContentURLPattern::isValid):
3109         (WebUserContentURLPattern::scheme):
3110         (WebUserContentURLPattern::host):
3111         (WebUserContentURLPattern::matchesSubdomains):
3112         Call through to UserContentURLPattern.
3113
3114         * WebUserContentURLPattern.h: Added.
3115
3116 2010-04-14  Adam Roben  <aroben@apple.com>
3117
3118         Expose DOMWrapperWorld::unregisterWorld as WebKit SPI on Windows
3119
3120         Fixes <http://webkit.org/b/37619>.
3121
3122         Reviewed by Steve Falkenburg.
3123
3124         * Interfaces/IWebScriptWorld.idl: Added unregisterWorld.
3125
3126         * Interfaces/WebKit.idl: Touched to force a build.
3127
3128         * WebScriptWorld.cpp:
3129         (WebScriptWorld::unregisterWorld):
3130         * WebScriptWorld.h:
3131         Added. Just calls through to DOMWrapperWorld::unregisterWorld.
3132
3133 2010-04-12  Timothy Hatcher  <timothy@apple.com>
3134
3135         SecurityOrigin needs a way to remove individual OriginAccessEntries
3136         https://bugs.webkit.org/show_bug.cgi?id=37449
3137
3138         Reviewed by Dave Hyatt.
3139
3140         * Interfaces/IWebViewPrivate.idl:
3141         * WebView.cpp:
3142         (WebView::removeOriginAccessWhitelistEntry): Call SecurityOrigin::removeOriginAccessWhitelistEntry.
3143         * WebView.h: Added removeOriginAccessWhitelistEntry.
3144
3145 2010-04-13  Timothy Hatcher  <timothy@apple.com>
3146
3147         Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
3148         And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
3149
3150         SecurityOrigin needs a way to remove individual OriginAccessEntries
3151         https://bugs.webkit.org/show_bug.cgi?id=37449
3152
3153         Reviewed by Dave Hyatt.
3154
3155         * Interfaces/IWebViewPrivate.idl:
3156         * WebView.cpp:
3157         (WebView::addOriginAccessWhitelistEntry):
3158         (WebView::resetOriginAccessWhitelists):
3159         * WebView.h:
3160
3161 2010-04-11  Sheriff Bot  <webkit.review.bot@gmail.com>
3162
3163         Unreviewed, rolling out r57468.
3164         http://trac.webkit.org/changeset/57468
3165         https://bugs.webkit.org/show_bug.cgi?id=37433
3166
3167         Broke the world...  Must have applied the patch wrong
3168         (Requested by abarth on #webkit).
3169
3170         * WebCoreSupport/WebFrameLoaderClient.cpp:
3171         (WebFrameLoaderClient::receivedData):
3172
3173 2010-04-11  Adam Barth  <abarth@webkit.org>
3174
3175         Reviewed by Eric Seidel.
3176
3177         Factor DocumentWriter out of FrameLoader
3178         https://bugs.webkit.org/show_bug.cgi?id=37175
3179
3180         Update these callsites because the method moved to DocumentWriter.
3181
3182         * WebCoreSupport/WebFrameLoaderClient.cpp:
3183         (WebFrameLoaderClient::receivedData):
3184
3185 2010-04-09  Adam Roben  <aroben@apple.com>
3186
3187         Windows Debug/Release build fix after r57244
3188
3189         * WebKit.vcproj/WebKit.vcproj: Don't delay-load QuartzCore.dll or
3190         QuartzCoreInterface.dll in any configurations. r57244 made this change
3191         only for Debug_Internal.
3192
3193 2010-04-08  Steve Falkenburg  <sfalken@apple.com>
3194
3195         Reviewed by Darin Adler.
3196
3197         WebView::isLoading should null check m_mainFrame
3198         https://bugs.webkit.org/show_bug.cgi?id=37294
3199
3200         * WebView.cpp:
3201         (WebView::isLoading):
3202
3203 2010-04-07  Chris Marrin  <cmarrin@apple.com>
3204
3205         Reviewed by Steve Falkenburg.
3206
3207         Remove QuartzCoreInterface from the build
3208         
3209         No longer needed since QuartzCore.dll is now included in  the latest Safari release (4.0.5).
3210
3211         * WebKit.vcproj/WebKit.vcproj:Removed delay load for QuartzCore and QuartzCoreInterface
3212
3213 2010-04-07  Andrey Kosyakov  <caseq@chromium.org>
3214
3215         Reviewed by Yury Semikhatsky.
3216
3217         Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
3218         https://bugs.webkit.org/show_bug.cgi?id=36949
3219
3220         * WebCoreSupport/WebFrameLoaderClient.cpp:
3221         * WebCoreSupport/WebFrameLoaderClient.h:
3222
3223 2010-04-05  Peter Nelson  <charn.opcode@gmail.com>
3224
3225         Reviewed by Eric Seidel.
3226
3227         Fixed style errors in DOMCoreClasses.h to bring it up to scratch
3228         for https://bugs.webkit.org/show_bug.cgi?id=34979.
3229
3230         * DOMCoreClasses.h:
3231         (DOMObject::throwException):
3232         (DOMObject::callWebScriptMethod):
3233         (DOMObject::evaluateWebScript):
3234         (DOMObject::removeWebScriptKey):
3235         (DOMObject::stringRepresentation):
3236         (DOMObject::webScriptValueAtIndex):
3237         (DOMObject::setWebScriptValueAtIndex):
3238         (DOMObject::setException):
3239         (DOMNodeList::throwException):
3240         (DOMNodeList::callWebScriptMethod):
3241         (DOMNodeList::evaluateWebScript):
3242         (DOMNodeList::removeWebScriptKey):
3243         (DOMNodeList::stringRepresentation):
3244         (DOMNodeList::webScriptValueAtIndex):
3245         (DOMNodeList::setWebScriptValueAtIndex):
3246         (DOMNodeList::setException):
3247         (DOMDocument::throwException):
3248         (DOMDocument::callWebScriptMethod):
3249         (DOMDocument::evaluateWebScript):
3250         (DOMDocument::removeWebScriptKey):
3251         (DOMDocument::stringRepresentation):
3252         (DOMDocument::webScriptValueAtIndex):
3253         (DOMDocument::setWebScriptValueAtIndex):
3254         (DOMDocument::setException):
3255         (DOMDocument::nodeName):
3256         (DOMDocument::nodeValue):
3257         (DOMDocument::setNodeValue):
3258         (DOMDocument::nodeType):
3259         (DOMDocument::parentNode):
3260         (DOMDocument::childNodes):
3261         (DOMDocument::firstChild):
3262         (DOMDocument::lastChild):
3263         (DOMDocument::previousSibling):
3264         (DOMDocument::nextSibling):
3265         (DOMDocument::attributes):
3266         (DOMDocument::ownerDocument):
3267         (DOMDocument::insertBefore):
3268         (DOMDocument::replaceChild):
3269         (DOMDocument::removeChild):
3270         (DOMDocument::appendChild):
3271         (DOMDocument::hasChildNodes):
3272         (DOMDocument::cloneNode):
3273         (DOMDocument::isSupported):
3274         (DOMDocument::namespaceURI):
3275         (DOMDocument::prefix):
3276         (DOMDocument::setPrefix):
3277         (DOMDocument::localName):
3278         (DOMDocument::hasAttributes):
3279         (DOMDocument::isSameNode):
3280         (DOMDocument::isEqualNode):
3281         (DOMDocument::textContent):
3282         (DOMDocument::setTextContent):
3283         (DOMElement::throwException):
3284         (DOMElement::callWebScriptMethod):
3285         (DOMElement::evaluateWebScript):
3286         (DOMElement::removeWebScriptKey):
3287         (DOMElement::stringRepresentation):
3288         (DOMElement::webScriptValueAtIndex):
3289         (DOMElement::setWebScriptValueAtIndex):
3290         (DOMElement::setException):
3291         (DOMElement::nodeName):
3292         (DOMElement::nodeValue):
3293         (DOMElement::setNodeValue):
3294         (DOMElement::nodeType):
3295         (DOMElement::parentNode):
3296         (DOMElement::childNodes):
3297         (DOMElement::firstChild):
3298         (DOMElement::lastChild):
3299         (DOMElement::previousSibling):
3300         (DOMElement::nextSibling):
3301         (DOMElement::attributes):
3302         (DOMElement::ownerDocument):
3303         (DOMElement::insertBefore):
3304         (DOMElement::replaceChild):
3305         (DOMElement::removeChild):
3306         (DOMElement::appendChild):
3307         (DOMElement::hasChildNodes):
3308         (DOMElement::cloneNode):
3309         (DOMElement::isSupported):
3310         (DOMElement::namespaceURI):
3311         (DOMElement::prefix):
3312         (DOMElement::setPrefix):
3313         (DOMElement::localName):
3314         (DOMElement::hasAttributes):
3315         (DOMElement::isSameNode):
3316         (DOMElement::isEqualNode):
3317         (DOMElement::textContent):
3318         (DOMElement::setTextContent):
3319
3320 2010-04-05  Alexey Proskuryakov  <ap@apple.com>
3321
3322         Reviewed by Darin Adler.
3323
3324         https://bugs.webkit.org/show_bug.cgi?id=37111
3325         <rdar://problem/7790327> Draw replacement text when plug-in host crashes
3326
3327         * WebCoreLocalizedStrings.cpp: (WebCore::crashedPluginText): Added a stub string for plug-in
3328         failure.
3329
3330 2010-04-02  Rafael Weinstein  <rafaelw@chromium.org>
3331
3332         Reviewed by Adam Barth.
3333
3334         Clean up unused calls after changes to checkPermission and requestPermission argument lists.
3335
3336         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
3337         (WebDesktopNotificationsDelegate::requestPermission):
3338         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
3339
3340 2010-04-01  Chris Marrin  <cmarrin@apple.com>
3341
3342         Reviewed by Simon Fraser.
3343
3344         Added layerTreeAsText function to DRT (for Mac)
3345         https://bugs.webkit.org/show_bug.cgi?id=36782
3346
3347         This is the WebKit side for Windows. It plumbs the
3348         call from WebCore to DRT.
3349
3350         * Interfaces/IWebFramePrivate.idl:
3351         * WebFrame.cpp:WebKit (Windows) side of plumbing
3352         (WebFrame::layerTreeAsText):
3353         * WebFrame.h:
3354
3355 2010-03-31  Marcus Bulach  <bulach@chromium.org>
3356
3357         Reviewed by Jeremy Orlow.
3358
3359         Adds Geolocation param for cancelGeolocationPermissionRequestForFrame.
3360         https://bugs.webkit.org/show_bug.cgi?id=35031
3361
3362         * WebCoreSupport/WebChromeClient.h:
3363         (WebChromeClient::cancelGeolocationPermissionRequestForFrame):
3364
3365 2010-03-30  Gavin Barraclough  <barraclough@apple.com>
3366
3367         Rubber stamped by Sam Weinig.
3368
3369         https://bugs.webkit.org/show_bug.cgi?id=36866
3370         Move CString to WTF
3371
3372         * WebDownload.cpp:
3373         * WebDownloadCFNet.cpp:
3374         * WebDownloadCurl.cpp:
3375         * WebHistoryItem.cpp:
3376         * WebLocalizableStrings.cpp:
3377         * WebMutableURLRequest.cpp:
3378         * WebPreferences.cpp:
3379         (WebPreferences::migrateWebKitPreferencesToCFPreferences):
3380         * WebView.cpp:
3381
3382 2010-03-30  Adam Roben  <aroben@apple.com>
3383
3384         Windows build fix
3385
3386         * Interfaces/WebKit.idl: Touched this to force a build.
3387
3388 2010-03-29  Steve Falkenburg  <sfalken@apple.com>
3389
3390         Reviewed by Adele Peterson.
3391
3392         Default value of accelerated compositing should be false for Windows
3393         https://bugs.webkit.org/show_bug.cgi?id=36805
3394
3395         * WebPreferences.cpp:
3396         (WebPreferences::initializeDefaultSettings):
3397
3398 2010-03-29  Rafael Weinstein  <rafaelw@chromium.org>
3399
3400         Reviewed by Adam Barth.
3401
3402         Change NotificationPresenter::checkPermission() to take the source frames full KURL,
3403         rather than its SecurityOrigin. This will aid chromium in having more fine grained
3404         permissions to control notification spam.
3405
3406         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
3407         (WebDesktopNotificationsDelegate::checkPermission):
3408         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
3409
3410 2010-03-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3411
3412         Reviewed by Antti Koivisto.
3413
3414         Change method name due to it dealing with both flattening
3415         of frame sets and inner frames.
3416
3417         * Interfaces/IWebPreferencesPrivate.idl:
3418         * WebPreferenceKeysPrivate.h:
3419         * WebPreferences.cpp:
3420         (WebPreferences::initializeDefaultSettings):
3421         (WebPreferences::isFrameFlatteningEnabled):
3422         (WebPreferences::setFrameFlatteningEnabled):
3423         * WebPreferences.h:
3424         * WebView.cpp:
3425         (WebView::notifyPreferencesChanged):
3426
3427 2010-03-24  Jon Honeycutt  <jhoneycutt@apple.com>
3428
3429         <rdar://problem/7780798> Missing plug-ins should be represented by text
3430         only, instead of lego block
3431
3432         https://bugs.webkit.org/show_bug.cgi?id=36583
3433
3434         Reviewed by Dan Bernstein.
3435
3436         * WebCoreSupport/WebFrameLoaderClient.cpp:
3437         (WebFrameLoaderClient::createPlugin):
3438         Return 0 if we failed to initialize the plug-in, which causes the new
3439         "missing plug-in" text to draw.
3440
3441 2010-03-24  Kent Tamura  <tkent@chromium.org>
3442
3443         Reviewed by Darin Adler.
3444
3445         Make Icon::createIconForFiles() optional.
3446         https://bugs.webkit.org/show_bug.cgi?id=35072
3447
3448         - Rename iconForFiles() to chooseIconForFiles().
3449         - Call Icon::createIconForFiles() from chooseIconForFiles().
3450
3451         * WebCoreSupport/WebChromeClient.cpp:
3452         (WebChromeClient::chooseIconForFiles):
3453         * WebCoreSupport/WebChromeClient.h:
3454
3455 2010-03-22  Darin Adler  <darin@apple.com>
3456
3457         * WebCoreLocalizedStrings.cpp:
3458         (WebCore::missingPluginText): Fixed localization helper text to match the same
3459         string from Mac WebKit.
3460
3461 2010-03-22  Kevin Decker  <kdecker@apple.com>
3462
3463         Reviewed by John Sullivan.
3464
3465         https://bugs.webkit.org/show_bug.cgi?id=36328
3466         
3467         * WebCoreLocalizedStrings.cpp:
3468         (WebCore::missingPluginText): Added.
3469
3470 2010-03-17  Enrica Casucci  <enrica@apple.com>
3471
3472         Reviewed by Darin Adler.
3473
3474         Missing support for showing compositing layers borders and repaint count on Windows.
3475         <rdar://problem/7760736>
3476         <https://bugs.webkit.org/show_bug.cgi?id=36197>
3477
3478         * Interfaces/IWebPreferencesPrivate.idl:
3479         * WebPreferenceKeysPrivate.h:
3480         * WebPreferences.cpp:
3481         (WebPreferences::initializeDefaultSettings):
3482         (WebPreferences::showDebugBorders):
3483         (WebPreferences::setShowDebugBorders):
3484         (WebPreferences::showRepaintCounter):
3485         (WebPreferences::setShowRepaintCounter):
3486         * WebPreferences.h:
3487         * WebView.cpp:
3488         (WebView::notifyPreferencesChanged):
3489
3490 2010-03-16  Yury Semikhatsky <yurys@chromium.org>
3491
3492         Reviewed by Pavel Feldman.
3493
3494         Introduce InspectorFrontendClient that provides InspectorFrontend with an interface to the embedder. InspectorClient now serves as a delegate for InspectorController and does not contain methods for managing inspector frontend window. That allows to create remote InspectorFrontendHost.
3495
3496         Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
3497         https://bugs.webkit.org/show_bug.cgi?id=35036
3498
3499         * WebCoreSupport/WebInspectorClient.cpp:
3500         (WebInspectorClient::WebInspectorClient):
3501         (WebInspectorClient::~WebInspectorClient):
3502         (WebInspectorClient::openInspectorFrontend):
3503         (WebInspectorClient::highlight):
3504         (WebInspectorClient::hideHighlight):
3505         (WebInspectorClient::updateHighlight):
3506         (WebInspectorFrontendClient::WebInspectorFrontendClient):
3507         (WebInspectorFrontendClient::~WebInspectorFrontendClient):
3508         (WebInspectorFrontendClient::frontendLoaded):
3509         (WebInspectorFrontendClient::localizedStringsURL):
3510         (WebInspectorFrontendClient::hiddenPanels):
3511         (WebInspectorFrontendClient::bringToFront):
3512         (WebInspectorFrontendClient::closeWindow):
3513         (WebInspectorFrontendClient::attachWindow):
3514         (WebInspectorFrontendClient::detachWindow):
3515         (WebInspectorFrontendClient::setAttachedWindowHeight):
3516         (WebInspectorFrontendClient::inspectedURLChanged):
3517         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
3518         (WebInspectorFrontendClient::showWindowWithoutNotifications):
3519         (WebInspectorFrontendClient::destroyInspectorView):
3520         (WebInspectorFrontendClient::updateWindowTitle):
3521         (WebInspectorFrontendClient::onGetMinMaxInfo):
3522         (WebInspectorFrontendClient::onSize):
3523         (WebInspectorFrontendClient::onClose):
3524         (WebInspectorFrontendClient::onSetFocus):
3525         (WebInspectorFrontendClient::onWebViewWindowPosChanging):
3526         (WebInspectorWndProc):
3527         (WebInspectorFrontendClient::windowReceivedMessage):
3528         * WebCoreSupport/WebInspectorClient.h:
3529         (WebInspectorClient::frontendClosing):
3530         * WebInspector.cpp:
3531         (WebInspector::attach):
3532         (WebInspector::detach):
3533
3534 2010-03-14  Dan Bernstein  <mitz@apple.com>
3535
3536         Reviewed by Darin Adler.
3537
3538         WebKit part of removing support for legacy versions of Core Graphics
3539
3540         * WebKitClassFactory.cpp:
3541         (WebKitClassFactory::WebKitClassFactory): Removed call to populateFontDatabase().
3542         * WebKitGraphics.cpp:
3543         (makeFont): Ditto.
3544         * WebTextRenderer.cpp:
3545         (WebTextRenderer::registerPrivateFont): Removed call to wkAddFontsAtPath().
3546
3547 2010-03-12  Enrica Casucci  <enrica@apple.com>
3548
3549         Fixed broken build on Windows.
3550         Added contditional compilation for accelerated compositing.
3551
3552         * WebView.cpp:
3553         (WebView::deleteBackingStore):
3554         (WebView::addToDirtyRegion):
3555         (WebView::updateBackingStore):
3556
3557 2010-03-12  Beth Dakin  <bdakin@apple.com>
3558
3559         Reviewed by Simon Fraser.
3560
3561         Fix for https://bugs.webkit.org/show_bug.cgi?id=34942 Fullscreen 
3562         API naming is inconsistent
3563         -and corresponding-
3564         <rdar://problem/7729165>
3565
3566         This patch changes all occurrences of "fullScreen" to the more 
3567         popular "fullscreen."
3568
3569         * FullscreenVideoController.cpp:
3570         (FullscreenVideoController::onMouseDown):
3571         (FullscreenVideoController::onMouseMove):
3572         (FullscreenVideoController::onMouseUp):
3573         * FullscreenVideoController.h:
3574         (FullscreenVideoController::fullscreenToHUDCoordinates):
3575
3576 2010-03-12  Beth Dakin  <bdakin@apple.com>
3577
3578         Reviewed by Adam Roben.
3579
3580         Fix for https://bugs.webkit.org/show_bug.cgi?id=33739 Fullscreen 
3581         video HUD stays on top when switching to another window (e.g. via 
3582         Alt-Tab)
3583         -and corresponding-
3584         <rdar://problem/7547574>
3585
3586         The HUD was always on top because it had the WS_EX_TOPMOST style. 
3587         So I removed the style and made m_videoWindow the owner of 
3588         m_hudWindow. This keeps m_hudWindow on top only when m_videoWindow 
3589         is the focused window.
3590
3591         * FullscreenVideoController.cpp:
3592         (FullscreenVideoController::exitFullscreen): ASSERT that movie()->exitFullscreen() also destroyed the hud.
3593         (FullscreenVideoController::createHUDWindow):
3594
3595 2010-03-12  Enrica Casucci  <enrica@apple.com>
3596
3597         Reviewed by Simon Fraser.
3598
3599         Content of 3D tests appears at the bottom right corner sometimes.
3600         <rdar://problem/7556244>
3601         <https://bugs.webkit.org/show_bug.cgi?id=36027>
3602
3603         See detailed comments in WebCore/ChangeLog.
3604
3605         * WebView.cpp:
3606         (WebView::deleteBackingStore): Reset the dirty flag when deleting the backing store.
3607         (WebView::addToDirtyRegion): Set the dirty flag when adding dirty rectangles to the
3608         backing store dirty region.
3609         (WebView::updateBackingStore): Reset the dirty flag after painting into the backing store.
3610         (WebView::setAcceleratedCompositing): Removed unnecessary call to updateRootLayerContents.
3611         (WebView::updateRootLayerContents): Changed the way we pass parameters to setScrollFrame.
3612         We are passing width and height of the view content together with the offset for the scrolling.
3613         It was confusing to pass it all as a rectangle, when it is not a rectangle.
3614         
3615 2010-03-11  Aaron Boodman  <aa@chromium.org>
3616
3617         Kill WebDocument::applicationID() (part 1).
3618
3619         Modify interface to WebCore::NotificationPresenter::checkPermission()
3620         and remove implementation of WebDocument::applicationID(). Breaking
3621         API changes will be in a subsequent change.
3622         https://bugs.webkit.org/show_bug.cgi?id=35846
3623
3624         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
3625         (WebDesktopNotificationsDelegate::checkPermission):
3626         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
3627
3628 2010-03-11  Anders Carlsson  <andersca@apple.com>
3629
3630         Reviewed by David Hyatt.
3631
3632         Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
3633
3634         * WebCoreSupport/WebChromeClient.cpp:
3635         * WebCoreSupport/WebChromeClient.h:
3636
3637 2010-03-10  Eric Uhrhane  <ericu@chromium.org>
3638
3639         Reviewed by David Levin.
3640
3641         The build fix for my patch on bug #35763 wasn't quite right--it removed
3642         the call entirely, instead of replacing it with the new API.  This adds
3643         the call to Database::setIsAvailable.
3644
3645         https://bugs.webkit.org/show_bug.cgi?id=35763
3646
3647         * WebView.cpp: Added a call to Database::setIsAvailable where change 55667 removed the old Settings API call <http://trac.webkit.org/changeset/55667>.
3648         (WebView::notifyPreferencesChanged):
3649
3650 2010-03-10  John Sullivan  <sullivan@apple.com>
3651
3652         Reviewed by Tim Hatcher.
3653         
3654         <rdar://problem/7735387> input type other than text won't work with autofill
3655         <https://bugs.webkit.org/show_bug.cgi?id=35963>
3656
3657         * WebFrame.cpp:
3658         (WebFrame::elementDoesAutoComplete):
3659         Return true for any text field that's not a password, rather than only
3660         for TEXT type.
3661
3662 2010-03-09  Brady Eidson  <beidson@apple.com>
3663
3664         Reviewed by Tim Hatcher.
3665
3666         REGRESSION: WebInspector docking busted on Windows
3667         <rdar://problem/7728433> and https://bugs.webkit.org/show_bug.cgi?id=35953
3668
3669         * WebCoreSupport/WebInspectorClient.cpp: