Prevent assertion/duplicate loads for non-deferred subtitute-data loads
[WebKit-https.git] / WebKit / win / ChangeLog
1 2010-07-07  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2
3         Reviewed by Darin Adler.
4
5         Prevent assertion/duplicate loads for non-deferred subtitute-data loads
6
7         https://bugs.webkit.org/show_bug.cgi?id=30879
8
9         MainResourceLoader uses the member m_initialRequest to store requests for future
10         deferred loads. When doing the actual load in handleDataLoadNow(), we therefore
11         have to clear this request so that subsequent entries into the loader will not
12         start yet another load.
13
14         This can happen as a result of a PageGroupLoadDeferrer going out of scope when
15         returning from Chrome::runJavaScriptAlert(), which calls setDeferredLoading(false),
16         but only in the case of using both substitute-data and non-deferred main resource
17         load together. That's why two new DRT functions were added:
18
19          * queueLoadHTMLString()
20          * setDeferMainResourceLoad()
21
22         The change adds DRT hooks for Mac, Win and Qt for these two functions. For Mac
23         and Win the hook uses new SPI in WebDataSource. For Qt a new static member was
24         added to the FrameLoaderClientQt and accessed though DumpRenderTreeSupportQt.
25
26         * Interfaces/IWebDataSource.idl:
27         * WebDataSource.cpp:
28         (WebDataSource::setDeferMainResourceDataLoad):
29         * WebDataSource.h:
30
31 2010-07-12  Steve Falkenburg  <sfalken@apple.com>
32
33         Reviewed by Alice Liu.
34
35         <rdar://problem/8113038> WebKit1 and WebKit2 should build as a single DLL
36         https://bugs.webkit.org/show_bug.cgi?id=40921
37
38         Pre-WebKit2 WebKit now builds into a static library named WebKitLib.lib.
39         WebKit.dll now links in WebCore.lib, WebKitLib.lib and WebKit2 code.
40         
41         This is a first step. We'll likely want to migrate the remainder of
42         the non-deprecated WebKit code (strings, DLLMain, resources) into WebKit2.
43
44         * WebKit.vcproj/WebKit.def: Removed.
45         * WebKit.vcproj/WebKit.make: Don't fail if WebKit doesn't produce a DLL.
46         * WebKit.vcproj/WebKit.vcproj: Build WebKit as a static lib.
47         Renamed project name to WebKitLib to avoid confusion and naming conflicts.
48         Generate intermediate pdb file for debuggability of static lib.
49         Removed DLL-related options.        
50         * WebKit.vcproj/deleteButton.png: Removed.
51         * WebKit.vcproj/deleteButtonPressed.png: Removed.
52         * WebKit.vcproj/fsVideoAudioVolumeHigh.png: Removed.
53         * WebKit.vcproj/fsVideoAudioVolumeLow.png: Removed.
54         * WebKit.vcproj/fsVideoExitFullscreen.png: Removed.
55         * WebKit.vcproj/fsVideoPause.png: Removed.
56         * WebKit.vcproj/fsVideoPlay.png: Removed.
57         * WebKit.vcproj/missingImage.png: Removed.
58         * WebKit.vcproj/nullplugin.png: Removed.
59         * WebKit.vcproj/panEastCursor.png: Removed.
60         * WebKit.vcproj/panIcon.png: Removed.
61         * WebKit.vcproj/panNorthCursor.png: Removed.
62         * WebKit.vcproj/panNorthEastCursor.png: Removed.
63         * WebKit.vcproj/panNorthWestCursor.png: Removed.
64         * WebKit.vcproj/panSouthCursor.png: Removed.
65         * WebKit.vcproj/panSouthEastCursor.png: Removed.
66         * WebKit.vcproj/panSouthWestCursor.png: Removed.
67         * WebKit.vcproj/panWestCursor.png: Removed.
68         * WebKit.vcproj/searchCancel.png: Removed.
69         * WebKit.vcproj/searchCancelPressed.png: Removed.
70         * WebKit.vcproj/searchMagnifier.png: Removed.
71         * WebKit.vcproj/searchMagnifierResults.png: Removed.
72         * WebKit.vcproj/textAreaResizeCorner.png: Removed.
73         * WebKit.vcproj/verticalTextCursor.png: Removed.
74         * WebKit.vcproj/zoomInCursor.png: Removed.
75         * WebKit.vcproj/zoomOutCursor.png: Removed.
76
77 2010-07-08  Aaron Boodman  <aa@chromium.org>
78
79         Reviewed by Timothy Hatcher.
80
81         Add the ability for user scripts and user styles to affect just the top frame.
82
83         https://bugs.webkit.org/show_bug.cgi?id=41529
84
85         * WebView.cpp:
86         (WebView::addUserScriptToGroup):
87         (WebView::addUserStyleSheetToGroup):
88
89 2010-07-08  Adele Peterson  <adele@apple.com>
90
91         Reviewed by Jon Honeycutt, Adam Roben, and Darin Adler.
92
93         Fix for https://bugs.webkit.org/show_bug.cgi?id=41721
94         <rdar://problem/8158561> Missing plug-in indicator should have a pressed state
95
96         Implement shouldMissingPluginMessageBeButton.
97
98         * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::shouldMissingPluginMessageBeButton):
99         * WebCoreSupport/WebChromeClient.h:
100
101 2010-07-07  Anders Carlsson  <andersca@apple.com>
102
103         Reviewed by Simon Fraser.
104
105         Rename TestNetscapePlugin.subproj and move platform specific files to subdirectories
106         https://bugs.webkit.org/show_bug.cgi?id=41781
107
108         * WebKit.vcproj/WebKit.sln:
109
110 2010-07-07  Sam Weinig  <sam@webkit.org>
111
112         Reviewed by Anders Carlsson.
113
114         Patch for https://bugs.webkit.org/show_bug.cgi?id=41772
115         Add basic piping for BackForwardControllerClient.
116
117         * WebView.cpp:
118         (WebView::initWithFrame):
119
120 2010-07-07  Adam Roben  <aroben@apple.com>
121
122         Windows build fix
123
124         * Interfaces/WebKit.idl: Touched to force a build.
125
126 2010-07-06  Steve Falkenburg  <sfalken@apple.com>
127
128         Reviewed by Simon Fraser.
129
130         Expose URL matching from WebUserContentURLPattern
131         https://bugs.webkit.org/show_bug.cgi?id=41726
132         <rdar://problem/7910144>
133         
134         We previously had a way to construct WebUserContentURLPattern
135         instances via WebKit, but no way for callers to perform matching.
136         This patch adds the matchesURL functionality to allow for this.
137
138         * Interfaces/IWebUserContentURLPattern.idl: Added matchesURL.
139         * Interfaces/IWebView.idl: Touch to force a build.
140         * WebUserContentURLPattern.cpp:
141         (WebUserContentURLPattern::matchesURL): Added. Calls through to WebCore::UserContentURLPattern::matches.
142         * WebUserContentURLPattern.h: Added matchesURL.
143
144 2010-07-03  Jon Honeycutt  <jhoneycutt@apple.com>
145
146         The missing plug-in indicator should be clickable
147
148         https://bugs.webkit.org/show_bug.cgi?id=41550
149         <rdar://problem/8132162>
150
151         From an original patch by Kevin Decker.
152
153         Reviewed by Darin Adler.
154
155         * Interfaces/IWebUIDelegatePrivate.idl:
156         Added a new delegate interface, and declare a function
157         didPressMissingPluginButton().
158
159         * Interfaces/WebKit.idl:
160         Touch this file to force interfaces to be rebuilt.
161
162         * WebCoreSupport/WebChromeClient.cpp:
163         (WebChromeClient::missingPluginButtonClicked):
164         Get the UI delegate, and query it for IWebUIDelegatePrivate3. Call its
165         didPressMissingPluginButton() function.
166
167         * WebCoreSupport/WebChromeClient.h:
168         Declare an override of missingPluginButtonClicked().
169
170 2010-07-03  Erik Arvidsson  <arv@chromium.org>
171
172         Reviewed by Ojan Vafai.
173
174         Fix issue where a contextmenu event was reporting the wrong target
175         if the context menu was shown due to pressing the context menu key
176         (or Shift+F10).
177
178         * WebView.cpp:
179         (WebView::handleContextMenuEvent):
180
181 2010-07-01  Steve Falkenburg  <sfalken@apple.com>
182
183         Reviewed by Adele Peterson.
184
185         Provide a WebView preference to disable DNS prefetching on Windows
186         https://bugs.webkit.org/show_bug.cgi?id=41504
187         <rdar://problem/8151939>
188
189         * Interfaces/IWebPreferencesPrivate.idl: Added isDNSPrefetchingEnabled, setDNSPrefetchingEnabled.
190         * Interfaces/WebKit.idl: Touched to force IDL build.
191         * WebPreferenceKeysPrivate.h: Added WebKitDNSPrefetchingEnabledPreferenceKey.
192         * WebPreferences.cpp:
193         (WebPreferences::initializeDefaultSettings): Default prefetch to true.
194         (WebPreferences::setDNSPrefetchingEnabled): Added.
195         (WebPreferences::isDNSPrefetchingEnabled): Added.
196         * WebPreferences.h: Added isDNSPrefetchingEnabled, setDNSPrefetchingEnabled.
197         * WebView.cpp:
198         (WebView::notifyPreferencesChanged): Propagate prefetch pref into settings.
199
200 2010-06-21  Nate Chapin  <japhet@chromium.org>
201
202         Unreviewed, Windows build fix.
203
204         Update WebFrame to use FrameLoaderStateMachine in
205          firstLayoutDone().
206
207         * WebFrame.cpp:
208         (WebFrame::firstLayoutDone):
209
210 2010-06-15  Dumitru Daniliuc  <dumi@chromium.org>
211
212         Reviewed by Adam Barth.
213
214         Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase.
215         https://bugs.webkit.org/show_bug.cgi?id=39041
216
217         * WebView.cpp:
218         (WebView::notifyPreferencesChanged):
219
220 2010-06-16  Adam Roben  <aroben@apple.com>
221
222         Add a "forPrinting" boolean parameter to
223         IWebFramePrivate::renderTreeAsExternalRepresentation
224
225         Fixes <http://webkit.org/b/40727> Respect
226         LayoutTestController::isPrinting on Windows.
227
228         Reviewed by Dan Bernstein.
229
230         * Interfaces/IWebFramePrivate.idl: Renamed the current
231         renderTreeAsExternalRepresentation to unused1, and added a new version
232         that takes a boolean "forPrinting" parameter.
233
234         * Interfaces/WebKit.idl: Touched to force a build.
235
236         * WebFrame.cpp:
237         (WebFrame::renderTreeAsExternalRepresentation): Added a boolean
238         "forPrinting" parameter, and used it to tell externalRepresentation
239         what kind of behavior to use.
240
241         * WebFrame.h: Renamed the old renderTreeAsExternalRepresentation and
242         added the new one.
243
244 2010-06-15  Darin Adler  <darin@apple.com>
245
246         Reviewed by Adam Barth.
247
248         Move functions out of Frame class that were marked "move to Chrome"
249         https://bugs.webkit.org/show_bug.cgi?id=39636
250
251         * WebView.cpp:
252         (WebView::shouldClose): Call shouldClose on FrameLoader instead of
253         going through Frame.
254
255 2010-06-14  Adam Roben  <aroben@apple.com>
256
257         Add WebKitLauncherWin to WebKit.sln
258
259         Fixes <http://webkit.org/b/40583>.
260
261         Reviewed by Darin Adler.
262
263         * WebKit.vcproj/WebKit.sln: Added WebKitLauncherWin.vcproj. It depends
264         on WebKitAPITest, so is the last project to build. (Also removed
265         QTMovieWin's direct dependency on JavaScriptCore, since it already has
266         an indirect dependency on it.)
267
268 2010-06-14  Chang Shu  <chang.shu@nokia.com>
269
270         Reviewed by Kenneth Rohde Christiansen.
271
272         [win] Make windows compile after API changes.
273
274         https://bugs.webkit.org/show_bug.cgi?id=40434
275
276         * WebKitGraphics.cpp:
277         (WebDrawText):
278
279 2010-06-14  Ilya Tikhonovsky  <loislo@chromium.org>
280
281         Reviewed by Pavel Feldman.
282
283         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
284         data from inspected page to WebInspector as JSON string via http. The native
285         serialization to JSON string is supported by InspectorValue's classes. This patch
286         has the implementation of sendMessageToFrontend function. WebKit version of it still
287         uses ScriptFunctionCall and will be switched to another transport a little bit later.
288         https://bugs.webkit.org/show_bug.cgi?id=40134
289
290         * WebCoreSupport/WebInspectorClient.cpp:
291         (WebInspectorClient::WebInspectorClient):
292         (WebInspectorClient::~WebInspectorClient):
293         (WebInspectorClient::openInspectorFrontend):
294         * WebCoreSupport/WebInspectorClient.h:
295
296 2010-06-10  Eric Seidel  <eric@webkit.org>
297
298         Reviewed by Adam Barth.
299
300         Reduce FrameView.h includes to speed up build times
301         https://bugs.webkit.org/show_bug.cgi?id=40408
302
303         Another fix for Windows.
304
305         * WebView.cpp:
306
307 2010-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
308
309         Unreviewed, rolling out r60889.
310         http://trac.webkit.org/changeset/60889
311         https://bugs.webkit.org/show_bug.cgi?id=40365
312
313         gtk bot has some kind of memory corruption (Requested by
314         loislo on #webkit).
315
316         * WebCoreSupport/WebInspectorClient.cpp:
317         (WebInspectorClient::WebInspectorClient):
318         (WebInspectorClient::~WebInspectorClient):
319         (WebInspectorClient::openInspectorFrontend):
320         * WebCoreSupport/WebInspectorClient.h:
321         (WebInspectorClient::frontendClosing):
322
323 2010-06-07  Ilya Tikhonovsky  <loislo@chromium.org>
324
325         Reviewed by Pavel Feldman.
326
327         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
328         data from inspected page to WebInspector as JSON string via http. The native
329         serialization to JSON string is supported by InspectorValue's classes. This patch
330         has the implementation of sendMessageToFrontend function. WebKit version of it still
331         uses ScriptFunctionCall and will be switched to another transport a little bit later.
332         https://bugs.webkit.org/show_bug.cgi?id=40134
333
334         * WebCoreSupport/WebInspectorClient.cpp:
335         (WebInspectorClient::WebInspectorClient):
336         (WebInspectorClient::~WebInspectorClient):
337         (WebInspectorClient::openInspectorFrontend):
338         * WebCoreSupport/WebInspectorClient.h:
339
340 2010-06-08  Antonio Gomes  <tonikitoo@webkit.org>
341
342         Reviewed by Ojan Vafai and Darin Adler.
343
344         Refactor platform dependent editing behavior code out of Settings
345         https://bugs.webkit.org/show_bug.cgi?id=39854
346
347         EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
348         EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
349
350         * WebView.cpp:
351         (WebView::notifyPreferencesChanged):
352
353 2010-06-04  Alice Liu  <alice.liu@apple.com>
354
355         Reviewed by Jon Honeycutt.
356
357         WebFrame::paintDocumentRectToContextAtPoint doesn't paint scrollbars
358         https://bugs.webkit.org/show_bug.cgi?id=40034
359         <rdar://problem/7799848>
360
361         * WebFrame.cpp:
362         (WebFrame::paintScrollViewRectToContextAtPoint): Renamed from paintDocumentRectToContextAtPoint. 
363         Call paint() instead of paintContents(). Also move the dirtyRect to counteract the moving that happens in paint().
364
365         Just renaming changes:
366         * Interfaces/IWebFramePrivate.idl:
367         * Interfaces/IWebViewPrivate.idl:
368         * WebFrame.h:
369         * WebView.cpp:
370         (WebView::paintScrollViewRectToContextAtPoint):
371         * WebView.h:
372
373         * Interfaces/WebKit.idl: Touched for rebuild.
374
375 2010-05-30  Daniel Bates  <dbates@rim.com>
376
377         Unreviewed, attempt to fix the build after http://trac.webkit.org/changeset/60418.
378
379         * WebFrame.cpp:
380         (WebFrame::elementWithName):
381         (WebFrame::controlsInForm):
382
383 2010-05-22  Jer Noble  <jer.noble@apple.com>
384
385         Reviewed by Adam Roben.
386
387         Full screen doesn't work for video elements
388         https://bugs.webkit.org/show_bug.cgi?id=39557
389         rdar://problem/8011813
390         
391         Modified FullscreenVideoController to work with MediaPlayerPrivateFullscreenWindow.  The FullscreenVideoController
392         is now MediaPlayerPrivate agnostic..
393
394         * FullscreenVideoController.cpp:
395         (FullscreenVideoController::LayoutClient::LayoutClient): New helper class which implements WKCACFLayerLayoutClient.
396         (FullscreenVideoController::LayoutClient::layoutSublayersOfLayer):
397         (FullscreenVideoController::FullscreenVideoController):
398         (FullscreenVideoController::~FullscreenVideoController):
399         (FullscreenVideoController::enterFullscreen):
400         (FullscreenVideoController::exitFullscreen):
401         (FullscreenVideoController::fullscreenClientWndProc): Handle WM_KEYDOWN.
402         (FullscreenVideoController::createHUDWindow):
403         (FullscreenVideoController::hudWndProc):  Handle WM_KEYDOWN.
404         (FullscreenVideoController::onChar):
405         (FullscreenVideoController::onKeyDown):  New function: handles the VK_ESCAPE case more reliably than WM_CHAR.
406         * FullscreenVideoController.h:
407         * WebView.h: 
408         (WebView::viewWindow): Added a simple viewWindow() accessor.
409
410 2010-05-25  Brady Eidson  <beidson@apple.com>
411
412         Reviewed by Darin Adler.
413
414         Database origins aren't populated at launch (missing db in prefs sheet, possible other symptoms)
415         <rdar://problem/8013233> and https://bugs.webkit.org/show_bug.cgi?id=39486
416
417         * WebDatabaseManager.cpp:
418         (WebKitInitializeWebDatabasesIfNecessary): Call initializeTracker() instead of trying to set the path on
419           an already created tracker that already has its origins populated.
420         * WebDatabaseManager.h:
421
422         * WebView.cpp:
423         (WebView::initWithFrame): Call a renamed method instead.
424
425 2010-05-25  Ada Chan  <adachan@apple.com>
426
427         Reviewed by Steve Falkenburg.
428
429         https://bugs.webkit.org/show_bug.cgi?id=39651
430         
431         Make m_closeWindowTimer a SuspendableTimer, so it is properly suspended
432         when page loading is deferred.
433
434         * WebView.cpp:
435         (WebView::WebView): m_closeWindowTimer is now a pointer to a SuspendableTimer.
436         (WindowCloseTimer::create):
437         (WindowCloseTimer::WindowCloseTimer):
438         (WindowCloseTimer::contextDestroyed): Make sure we delete the WindowCloseTimer in the end.
439         (WindowCloseTimer::fired):
440         (WebView::closeWindowSoon):
441         (WebView::closeWindowTimerFired):
442         (WebView::notifyPreferencesChanged): Can just check for the existence m_closeWindowTimer, since
443         we only create it when we need to start the timer.
444         * WebView.h:
445
446 2010-05-24  Darin Adler  <darin@apple.com>
447
448         Reviewed by Eric Seidel.
449
450         Move view-related functions from Frame to FrameView
451         https://bugs.webkit.org/show_bug.cgi?id=39366
452
453         * WebFrame.cpp:
454         (WebFrame::setTextSizeMultiplier): Call function on FrameView.
455         * WebView.cpp:
456         (WebView::setZoomMultiplier): Ditto.
457
458 2010-05-24  Anders Carlsson  <andersca@apple.com>
459
460         Yet another Windows build fix.
461         
462         * WebView.cpp:
463         (WebView::canShowMIMEType):
464         Use the right capitalizatinon of 'MIME' (which also happens to be incorrect according to our guidelines).
465
466 2010-05-24  Anders Carlsson  <andersca@apple.com>
467
468         Another Windows build fix.
469
470         * WebView.cpp:
471         Don't include PlugInInfoStore.h, instead include PluginData.h
472
473 2010-05-24  Anders Carlsson  <andersca@apple.com>
474
475         Fix Windows build.
476
477         * WebView.cpp:
478         (WebView::canShowMIMEType):
479
480 2010-05-21  Steve Block  <steveblock@google.com>
481
482         Reviewed by Jeremy Orlow.
483
484         Add DeviceOrientation and DeviceOrientationClient
485         https://bugs.webkit.org/show_bug.cgi?id=39479
486
487         * WebView.cpp:
488         (WebView::initWithFrame):
489
490 2010-05-20  Simon Fraser  <simon.fraser@apple.com>
491
492         Build fix, no review.
493
494         Fix the non-accelerated-compositing Windows build with some
495         #if USE(ACCELERATED_COMPOSITING) loving.
496
497         * WebView.cpp:
498         * WebView.h:
499
500 2010-05-20  Simon Fraser  <simon.fraser@apple.com>
501
502         Reviewed by Adam Roben.
503
504         Avoid flushing CA layers when a layout is pending
505         https://bugs.webkit.org/show_bug.cgi?id=39463
506
507         <rdar://problem/7999463>
508
509         Avoid rendering the compositing layers to the screen if there's a layout pending,
510         since the layer tree not in a state that should be presented to the user.
511         
512         This fixes flashes in some types of content that dynamically add and remove layers.
513
514         Have the WebView implement WKCACFLayerRendererClient so that the
515         WKCACFLayerRenderer can ask whether it's a good time to render. If the FrameView
516         has a layout pending, say no.
517
518         * WebView.h: 
519         * WebView.cpp:
520         (WebView::setAcceleratedCompositing):
521         (WebView::shouldRender):
522
523 2010-05-18  Brent Fulgham  <bfulgham@webkit.org>
524
525         Reviewed by Adam Roben.
526
527         [WinCairo] Correct scaling for print preview
528         https://bugs.webkit.org/show_bug.cgi?id=39329
529
530         Cairo does not properly deal with Windows HDCs that have been
531         scaled using MM_ANISOTROPIC mapping mode, and a WindowExt and
532         ViewportExt setting.
533         (see http://bugs.freedesktop.org/show_bug.cgi?id=28161)
534
535         Instead, reset the HDC's WorldTransform to be unscaled, then
536         scale the cairo context to the desired scaling, and perform
537         the drawing operation.
538
539         * WebFrame.cpp:
540         (WebFrame::drawHeader): Use pre-positioned context to simplify 
541           this method.
542         (WebFrame::drawFooter): Use pre-positioned context to simplify
543           this method.
544         (WebFrame::spoolPage): Revise scaling logic to turn off HDC
545           scaling, and scale using only Cairo.  Revert scaling at end
546           so that user-defined GDI-based routines (e.g., header/footer)
547           will draw in the right position.
548         (WebFrame::spoolPages): Identify print preview case, and
549           retrieve scaling factors from preview context.  Set the
550           Cairo context to use these factors during the spoolPage
551           operation.
552
553 2010-05-20  Martin Robinson  <mrobinson@igalia.com>
554
555         Unreviewed.
556
557         Touch WebKit.idl to ensure that interfaces rebuild.
558
559         * Interfaces/WebKit.idl: Touched.
560
561 2010-05-20  Martin Robinson  <mrobinson@igalia.com>
562
563         Reviewed by Adam Roben.
564
565         Fix the Windows build and move new IDL declarations to the bottom of the file.
566
567         * Interfaces/IWebPreferences.idl: Move new API to the bottom of the IDL file to prevent vtable mismatch.
568         * WebPreferences.cpp: 
569         (WebPreferences::setEditingBehavior): Change the type of the parameter to setEditingBehavior to the proper type.
570
571 2010-05-20  Martin Robinson  <mrobinson@igalia.com>
572
573         Unreviewed.
574
575         Fix the Windows build.
576
577         * WebView.cpp:
578         (WebView::notifyPreferencesChanged): Change behavior to 'editingBehavior'.
579
580 2010-05-20  Martin Robinson  <mrobinson@webkit.org>
581
582         Reviewed by Ojan Vafai.
583
584         Expose the editing behavior setting in DRT to test all editing code paths
585         https://bugs.webkit.org/show_bug.cgi?id=38603
586
587         Expose the EditingBehavior setting in the Windows API.
588
589         * Interfaces/IWebPreferences.idl: Add the API point for setting the editing behavior.
590         * WebPreferenceKeysPrivate.h: Add a key for the editing behavior setting.
591         * WebPreferences.cpp:
592         (WebPreferences::editingBehavior): Added.
593         (WebPreferences::setEditingBehavior): Added.
594         * WebPreferences.h: Add method declarations.
595         * WebView.cpp:
596         (WebView::notifyPreferencesChanged): Update the WebCore setting based on the WebPreferences setting.
597
598 2010-05-20  Chris Jerdonek  <cjerdonek@webkit.org>
599
600         Reviewed by Eric Seidel.
601
602         Modified FrameLoader::urlSelected() to accept a KURL instead of a
603         ResourceRequest.
604
605         https://bugs.webkit.org/show_bug.cgi?id=39320
606
607         Since ResourceRequest has non-explicit single-parameter constructors for
608         String and KURL, urlSelected() previously accepted any of String, KURL,
609         and ResourceRequest.  This revision changes urlSelected() to accept only
610         a KURL to make the API tighter and easier to refactor.
611
612         * WebCoreSupport/WebContextMenuClient.cpp:
613         (WebContextMenuClient::searchWithGoogle):
614           - Updated the call to urlSelected().
615
616 2010-05-13  Brian Weinstein  <bweinstein@apple.com>
617
618         Reviewed by Tim Hatcher.
619
620         <rdar://problem/7982652>
621
622         Allow reporting exceptions that occur when using JavaScriptCore APIs to the Web Inspector.
623
624         * Interfaces/IWebViewPrivate.idl: Add a reportException function off of IWebViewPrivate.
625         * Interfaces/WebKit.idl: Touch WebKit.idl to make sure Interfaces rebuild.
626         * WebView.cpp:
627         (WebView::reportException): Make sure the function was called with a context from a WebView, and call
628             WebCore::reportException.
629         * WebView.h:
630
631 2010-05-12  Jer Noble  <jer.noble@apple.com>
632
633         Reviewed by Darin Adler.
634
635         Bug 38689: #34005 will break fullscreen video playback
636         https://bugs.webkit.org/show_bug.cgi?id=38689
637
638         Use the new definition of PlatformMedia to check the actual type 
639         returned by MediaPlayer.
640
641         * FullscreenVideoController.cpp:
642         (FullscreenVideoController::movie):
643
644 2010-05-11  Jer Noble  <jer.noble@apple.com>
645
646         No Review.
647
648         Fix build error: The QTMovieWin project is dependent on the JavaScriptCore project.
649
650         * WebKit.vcproj/WebKit.sln:
651
652 2010-05-11  Alice Liu  <alice.liu@apple.com>
653
654         Rubber-stamped by Gavin Barraclough.
655
656         Fix build error when enabling debugging block in WebKit win painting code
657
658         * WebView.cpp:
659         (WebView::paintIntoBackingStore):
660
661 2010-05-11  Alice Liu  <alice.liu@apple.com>
662
663         Reviewed by Steve Falkenburg.
664
665         https://bugs.webkit.org/show_bug.cgi?id=38937        
666         W7 window preview paints content at the wrong location
667
668         * WebFrame.cpp:
669         (WebFrame::paintDocumentRectToContext): Revert r58895
670         (WebFrame::paintDocumentRectToContextAtPoint): Added
671
672         * Interfaces/IWebFramePrivate.idl: Added paintDocumentRectToContextAtPoint
673         * Interfaces/IWebViewPrivate.idl: ditto
674         * Interfaces/WebKit.idl: touch to rebuild
675         * WebFrame.h: ditto
676         * WebView.cpp: ditto
677         (WebView::paintDocumentRectToContextAtPoint): ditto
678         * WebView.h: ditto
679
680 2010-05-07  Jer Noble  <jer.noble@apple.com>
681
682         Reviewed by Adele Peterson.
683
684         Safari pegs CPU and drops tons of frames using HTML5 Vimeo player
685         https://bugs.webkit.org/show_bug.cgi?id=34005
686         
687         QTMovieWin is now QTMovieGWorld.  
688         * FullscreenVideoController.cpp:
689         (FullscreenVideoController::movie):
690         * FullscreenVideoController.h:
691
692 2010-05-06  Adam Roben  <aroben@apple.com>
693
694         Bail out of WebView::paint when there's nothing to paint
695
696         Fixes <http://webkit.org/b/38670> <rdar://problem/7947105> REGRESSION
697         (r58067): Crash in WebView::paint when Web Inspector is docked and
698         window is resized so small that WebView disappears
699
700         When the WebView is 0-sized, ensureBackingStore() bails out without
701         creating a bitmap, leaving m_backingStoreBitmap null. Before r58067,
702         m_backingStoreBitmap was an HBITMAP, so we were happily passing along
703         a null HBITMAP to various Windows APIs. These calls would fail but not
704         crash. r58067 changed m_backingStoreBitmap to a RefCountedHBITMAP, and
705         dereferencing a null RefCountedHBITMAP* of course crashes.
706
707         Reviewed by Steve Falkenburg.
708
709         * WebView.cpp:
710         (WebView::paint): Bail if the rect to paint is empty.
711
712 2010-05-06  Steve Falkenburg  <sfalken@apple.com>
713
714         Reviewed by Adam Roben.
715
716         WebFrame::paintDocumentRectToContext paints content at the wrong location
717         https://bugs.webkit.org/show_bug.cgi?id=38651
718
719         * WebFrame.cpp:
720         (WebFrame::paintDocumentRectToContext):
721
722 2010-05-05  Stuart Morgan  <stuartmorgan@chromium.org>
723
724         Reviewed by Darin Fisher.
725
726         Update setFocus for the new boolean argument; no behavioral change.
727
728         https://bugs.webkit.org/show_bug.cgi?id=37961
729
730         * WebCoreSupport/EmbeddedWidget.cpp:
731         (EmbeddedWidget::setFocus):
732         * WebCoreSupport/EmbeddedWidget.h:
733
734 2010-05-03  Abhishek Arya  <inferno@chromium.org>
735
736         Reviewed by Adam Barth.
737
738         Add support for controlling clipboard access from javascript.
739         Clipboard access from javascript is disabled by default.
740         https://bugs.webkit.org/show_bug.cgi?id=27751
741
742         * Interfaces/IWebPreferencesPrivate.idl:
743         * WebPreferenceKeysPrivate.h:
744         * WebPreferences.cpp:
745         (WebPreferences::initializeDefaultSettings):
746         (WebPreferences::javaScriptCanAccessClipboard):
747         (WebPreferences::setJavaScriptCanAccessClipboard):
748         * WebPreferences.h:
749         * WebView.cpp:
750         (WebView::notifyPreferencesChanged):
751
752 2010-05-03  Jens Alfke  <snej@chromium.org>
753
754         Reviewed by Darin Fisher.
755
756         [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
757         https://bugs.webkit.org/show_bug.cgi?id=38397
758
759         No tests (functionality is exposed only through native WebKit API.)
760
761         * WebFrame.h:
762
763 2010-04-30  Jon Honeycutt  <jhoneycutt@apple.com>
764
765         Caret may fail to blink if a focus handler brings up a modal dialog 
766         https://bugs.webkit.org/show_bug.cgi?id=38372
767
768         Reviewed by Darin Adler.
769
770         * WebView.cpp:
771         (WebView::handleMouseEvent):
772         If the message is WM_CANCELMODE, which indicates that we our capturing
773         of mouse events has been cancelled, tell the EventHandler.
774         It's possible to re-enter this function if handling a mouse event allows
775         the message loop to run; moved up the call to setMouseActivated(), so
776         that if we do re-enter this function, the later mouse event will not be
777         considered as activating the window.
778         (WebView::WebViewWndProc):
779         Handle WM_CANCELMODE by calling handleMouseEvent().
780
781 2010-04-29  Anders Carlsson  <andersca@apple.com>
782
783         Reviewed by Dan Bernstein.
784
785         First part of
786         https://bugs.webkit.org/show_bug.cgi?id=20784
787         move npapi.h to C99 integer types.
788
789         * WebKit.vcproj/WebKit.vcproj:
790
791 2010-04-28  Beth Dakin  <bdakin@apple.com>
792
793         Reviewed by Darin Adler.
794
795         Fix for <rdar://problem/7474349>
796
797         Add a synchronous display mechanism for WKCACFLayerRenderer. 
798
799         * Interfaces/IWebViewPrivate.idl:
800         * Interfaces/WebKit.idl:
801         * WebView.cpp:
802         (WebView::WebView):
803         (WebView::updateRootLayerContents):
804         (WebView::nextDisplayIsSynchronous):
805         * WebView.h:
806
807 2010-04-28  Steve Falkenburg  <sfalken@apple.com>
808
809         Reviewed by Maciej Stachowiak.
810
811         WebView drawing code may access null backing store dirty region
812         https://bugs.webkit.org/show_bug.cgi?id=38245
813         <rdar://problem/7916101> REGRESSION (r58067): All loaded pages fail to display after running iBench HTML test (intermittent)
814         
815         * WebView.cpp:
816         (WebView::updateBackingStore): Add null check for m_backingStoreDirtyRegion.
817
818 2010-04-27  Jon Honeycutt  <jhoneycutt@apple.com>
819
820         <rdar://problem/7911140> Hitting the "delete" key goes back twice
821
822         Reviewed by Maciej Stachowiak.
823
824         * WebView.cpp:
825         (WebView::keyDown):
826         Return true if we navigated back or forward from the key event to
827         prevent the event from being propagated further.
828
829 2010-04-25  Sam Weinig  <sam@webkit.org>
830
831         Reviewed by Maciej Stachowiak.
832
833         Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
834         Disentangle initializing the main thread from initializing threading
835
836         * WebKitClassFactory.cpp:
837         (WebKitClassFactory::WebKitClassFactory): Add call to initializeMainThread.
838         * WebView.cpp:
839         (WebView::WebView): Ditto.
840
841 2010-04-25  Yury Semikhatsky  <yurys@chromium.org>
842
843         Reviewed by Pavel Feldman.
844
845         Web Inspector: inspector client shouldn't check if it can be opened
846         docked if it is already in that state.
847
848         https://bugs.webkit.org/show_bug.cgi?id=37946
849
850         * WebCoreSupport/WebInspectorClient.cpp:
851         (WebInspectorFrontendClient::WebInspectorFrontendClient):
852         (WebInspectorFrontendClient::showWindowWithoutNotifications):
853         * WebCoreSupport/WebInspectorClient.h:
854
855 2010-04-24  Steve Falkenburg  <sfalken@apple.com>
856
857         Reviewed by Sam Weinig.
858
859         Typo in Geolocation code causes crashes when updates are stopped
860         https://bugs.webkit.org/show_bug.cgi?id=38089
861         <rdar://problem/7904104> Crash closing geolocation tab after allowing to use geolocation
862
863         * WebCoreSupport/WebGeolocationControllerClient.cpp:
864         (WebGeolocationControllerClient::stopUpdating): Call unregister instead of register.
865
866 2010-04-23  Andy Estes  <aestes@apple.com>
867
868         Rubber stamped by Steve Falkenburg.
869
870         Roll out http://trac.webkit.org/changeset/55385.
871
872         <rdar://problem/7884444>
873
874         * Interfaces/IWebUIDelegatePrivate.idl:
875         * Interfaces/WebKit.idl:
876         * WebCoreSupport/WebFrameLoaderClient.cpp:
877         (WebFrameLoaderClient::createPlugin):
878
879 2010-04-22  Dave Moore  <davemoore@chromium.org>
880
881         Reviewed by Dimitri Glazkov.
882
883         Added notification when the favicons for a page are changed
884         from a script.
885         The Document object will notify the frame loader, which will
886         notify the client. Implementations of FrameLoaderClient will
887         have to add one method; dispatchDidChangeIcons().
888
889         https://bugs.webkit.org/show_bug.cgi?id=33812
890
891         * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
892         * WebCoreSupport/WebFrameLoaderClient.cpp:
893         (WebFrameLoaderClient::dispatchDidChangeIcons):
894         * WebCoreSupport/WebFrameLoaderClient.h:
895         * WebFrame.cpp:
896         (WebFrame::didChangeIcons):
897         * WebFrame.h:
898
899 2010-04-22  Adam Barth  <abarth@webkit.org>
900
901         Unreviewed, rolling out r58069.
902         http://trac.webkit.org/changeset/58069
903         https://bugs.webkit.org/show_bug.cgi?id=27751
904
905         Broke compile on Windows.
906
907         * Interfaces/IWebPreferencesPrivate.idl:
908         * WebPreferenceKeysPrivate.h:
909         * WebPreferences.cpp:
910         (WebPreferences::initializeDefaultSettings):
911         * WebPreferences.h:
912         * WebView.cpp:
913         (WebView::notifyPreferencesChanged):
914
915 2010-04-22  Abhishek Arya  <inferno@chromium.org>
916
917         Reviewed by Adam Barth.
918
919         Add support for controlling clipboard access from javascript.
920         Clipboard access from javascript is disabled by default.
921         https://bugs.webkit.org/show_bug.cgi?id=27751
922
923         * Interfaces/IWebPreferencesPrivate.idl:
924         * WebPreferenceKeysPrivate.h:
925         * WebPreferences.cpp:
926         (WebPreferences::initializeDefaultSettings):
927         (WebPreferences::javaScriptCanAccessClipboard):
928         (WebPreferences::setJavaScriptCanAccessClipboard):
929         * WebPreferences.h:
930         * WebView.cpp:
931         (WebView::notifyPreferencesChanged):
932
933 2010-04-21  Andy Estes  <aestes@apple.com>
934
935         Reviewed by Maciej Stachowiak.
936
937         Reference count WebView's backing store bitmap to prevent
938         deleteBackingStore() from freeing the bitmap while it is still being
939         referenced by Core Animation.
940
941         https://bugs.webkit.org/show_bug.cgi?id=37954
942
943         * WebView.cpp:
944         (WebView::ensureBackingStore):
945         (WebView::addToDirtyRegion):
946         (WebView::scrollBackingStore):
947         (WebView::updateBackingStore):
948         (WebView::paint):
949         (WebView::backingStore):
950         (releaseBackingStoreCallback): deref m_backingStoreBitmap once Core
951         Animation has dropeed its reference to the memory.
952         (WebView::updateRootLayerContents): ref m_backingStoreBitmap before
953         passing the memory to Core Animation to prevent deleteBackingStore()
954         from freeing it while it is still referenced by CA.
955         * WebView.h: Make m_backingStoreBitmap a RefCountedGDIHandle<HBITMAP>,
956         and make m_backingStoreDirtyRegion a RefCountedGDIHandle<HRGN>.
957
958 2010-04-20  Adam Barth  <abarth@webkit.org>
959
960         Reviewed by Eric Seidel.
961
962         Factor DocumentWriter out of FrameLoader
963         https://bugs.webkit.org/show_bug.cgi?id=37175
964
965         Update these callsites because the method moved to DocumentWriter.
966
967         * WebCoreSupport/WebFrameLoaderClient.cpp:
968         (WebFrameLoaderClient::receivedData):
969
970 2010-04-20  Kent Tamura  <tkent@chromium.org>
971
972         Reviewed by Darin Adler.
973
974         Change a parameter type of chooseIconForFiles()
975         https://bugs.webkit.org/show_bug.cgi?id=37504
976
977         * WebCoreSupport/WebChromeClient.cpp:
978         (WebChromeClient::chooseIconForFiles):
979         * WebCoreSupport/WebChromeClient.h:
980
981 2010-04-16  Gavin Barraclough  <barraclough@apple.com>
982
983         Reviewed by NOBODY (Windows build fix).
984
985         * WebFrame.cpp:
986         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
987         * WebView.cpp:
988         (WebView::stringByEvaluatingJavaScriptFromString):
989
990 2010-04-16  Adam Roben  <aroben@apple.com>
991
992         Make it possible for clients to instantiate a WebUserContentURLPattern
993
994         Reviewed by Tim Hatcher.
995
996         * ForEachCoClass.h: Added WebUserContentURLPattern to the FOR_EACH_COCLASS macro, which
997         lists all our instantiatable classes.
998
999         * WebKitClassFactory.cpp: Added a now-required #include.
1000
1001 2010-04-15  Adam Roben  <aroben@apple.com>
1002
1003         Expose UserContentURLPattern as WebKit SPI
1004
1005         Fixes <http://webkit.org/b/37354>.
1006
1007         Reviewed by Tim Hatcher.
1008
1009         * Interfaces/IWebUserContentURLPattern.idl: Added.
1010
1011         * Interfaces/WebKit.idl: Added WebUserContentURLPattern.
1012
1013         * WebKit.vcproj/Interfaces.vcproj: Added IWebUserContentURLPattern.
1014
1015         * WebKit.vcproj/WebKit.vcproj: Added WebUserContentURLPattern.
1016
1017         * WebUserContentURLPattern.cpp: Added.
1018         (WebUserContentURLPattern::WebUserContentURLPattern):
1019         (WebUserContentURLPattern::~WebUserContentURLPattern):
1020         (WebUserContentURLPattern::createInstance):
1021         (WebUserContentURLPattern::AddRef):
1022         (WebUserContentURLPattern::Release):
1023         (WebUserContentURLPattern::QueryInterface):
1024         Standard COM implementations.
1025
1026         (WebUserContentURLPattern::parse): Parse the string into a
1027         UserContentURLPattern and store it.
1028
1029         (WebUserContentURLPattern::isValid):
1030         (WebUserContentURLPattern::scheme):
1031         (WebUserContentURLPattern::host):
1032         (WebUserContentURLPattern::matchesSubdomains):
1033         Call through to UserContentURLPattern.
1034
1035         * WebUserContentURLPattern.h: Added.
1036
1037 2010-04-14  Adam Roben  <aroben@apple.com>
1038
1039         Expose DOMWrapperWorld::unregisterWorld as WebKit SPI on Windows
1040
1041         Fixes <http://webkit.org/b/37619>.
1042
1043         Reviewed by Steve Falkenburg.
1044
1045         * Interfaces/IWebScriptWorld.idl: Added unregisterWorld.
1046
1047         * Interfaces/WebKit.idl: Touched to force a build.
1048
1049         * WebScriptWorld.cpp:
1050         (WebScriptWorld::unregisterWorld):
1051         * WebScriptWorld.h:
1052         Added. Just calls through to DOMWrapperWorld::unregisterWorld.
1053
1054 2010-04-12  Timothy Hatcher  <timothy@apple.com>
1055
1056         SecurityOrigin needs a way to remove individual OriginAccessEntries
1057         https://bugs.webkit.org/show_bug.cgi?id=37449
1058
1059         Reviewed by Dave Hyatt.
1060
1061         * Interfaces/IWebViewPrivate.idl:
1062         * WebView.cpp:
1063         (WebView::removeOriginAccessWhitelistEntry): Call SecurityOrigin::removeOriginAccessWhitelistEntry.
1064         * WebView.h: Added removeOriginAccessWhitelistEntry.
1065
1066 2010-04-13  Timothy Hatcher  <timothy@apple.com>
1067
1068         Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
1069         And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
1070
1071         SecurityOrigin needs a way to remove individual OriginAccessEntries
1072         https://bugs.webkit.org/show_bug.cgi?id=37449
1073
1074         Reviewed by Dave Hyatt.
1075
1076         * Interfaces/IWebViewPrivate.idl:
1077         * WebView.cpp:
1078         (WebView::addOriginAccessWhitelistEntry):
1079         (WebView::resetOriginAccessWhitelists):
1080         * WebView.h:
1081
1082 2010-04-11  Sheriff Bot  <webkit.review.bot@gmail.com>
1083
1084         Unreviewed, rolling out r57468.
1085         http://trac.webkit.org/changeset/57468
1086         https://bugs.webkit.org/show_bug.cgi?id=37433
1087
1088         Broke the world...  Must have applied the patch wrong
1089         (Requested by abarth on #webkit).
1090
1091         * WebCoreSupport/WebFrameLoaderClient.cpp:
1092         (WebFrameLoaderClient::receivedData):
1093
1094 2010-04-11  Adam Barth  <abarth@webkit.org>
1095
1096         Reviewed by Eric Seidel.
1097
1098         Factor DocumentWriter out of FrameLoader
1099         https://bugs.webkit.org/show_bug.cgi?id=37175
1100
1101         Update these callsites because the method moved to DocumentWriter.
1102
1103         * WebCoreSupport/WebFrameLoaderClient.cpp:
1104         (WebFrameLoaderClient::receivedData):
1105
1106 2010-04-09  Adam Roben  <aroben@apple.com>
1107
1108         Windows Debug/Release build fix after r57244
1109
1110         * WebKit.vcproj/WebKit.vcproj: Don't delay-load QuartzCore.dll or
1111         QuartzCoreInterface.dll in any configurations. r57244 made this change
1112         only for Debug_Internal.
1113
1114 2010-04-08  Steve Falkenburg  <sfalken@apple.com>
1115
1116         Reviewed by Darin Adler.
1117
1118         WebView::isLoading should null check m_mainFrame
1119         https://bugs.webkit.org/show_bug.cgi?id=37294
1120
1121         * WebView.cpp:
1122         (WebView::isLoading):
1123
1124 2010-04-07  Chris Marrin  <cmarrin@apple.com>
1125
1126         Reviewed by Steve Falkenburg.
1127
1128         Remove QuartzCoreInterface from the build
1129         
1130         No longer needed since QuartzCore.dll is now included in  the latest Safari release (4.0.5).
1131
1132         * WebKit.vcproj/WebKit.vcproj:Removed delay load for QuartzCore and QuartzCoreInterface
1133
1134 2010-04-07  Andrey Kosyakov  <caseq@chromium.org>
1135
1136         Reviewed by Yury Semikhatsky.
1137
1138         Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
1139         https://bugs.webkit.org/show_bug.cgi?id=36949
1140
1141         * WebCoreSupport/WebFrameLoaderClient.cpp:
1142         * WebCoreSupport/WebFrameLoaderClient.h:
1143
1144 2010-04-05  Peter Nelson  <charn.opcode@gmail.com>
1145
1146         Reviewed by Eric Seidel.
1147
1148         Fixed style errors in DOMCoreClasses.h to bring it up to scratch
1149         for https://bugs.webkit.org/show_bug.cgi?id=34979.
1150
1151         * DOMCoreClasses.h:
1152         (DOMObject::throwException):
1153         (DOMObject::callWebScriptMethod):
1154         (DOMObject::evaluateWebScript):
1155         (DOMObject::removeWebScriptKey):
1156         (DOMObject::stringRepresentation):
1157         (DOMObject::webScriptValueAtIndex):
1158         (DOMObject::setWebScriptValueAtIndex):
1159         (DOMObject::setException):
1160         (DOMNodeList::throwException):
1161         (DOMNodeList::callWebScriptMethod):
1162         (DOMNodeList::evaluateWebScript):
1163         (DOMNodeList::removeWebScriptKey):
1164         (DOMNodeList::stringRepresentation):
1165         (DOMNodeList::webScriptValueAtIndex):
1166         (DOMNodeList::setWebScriptValueAtIndex):
1167         (DOMNodeList::setException):
1168         (DOMDocument::throwException):
1169         (DOMDocument::callWebScriptMethod):
1170         (DOMDocument::evaluateWebScript):
1171         (DOMDocument::removeWebScriptKey):
1172         (DOMDocument::stringRepresentation):
1173         (DOMDocument::webScriptValueAtIndex):
1174         (DOMDocument::setWebScriptValueAtIndex):
1175         (DOMDocument::setException):
1176         (DOMDocument::nodeName):
1177         (DOMDocument::nodeValue):
1178         (DOMDocument::setNodeValue):
1179         (DOMDocument::nodeType):
1180         (DOMDocument::parentNode):
1181         (DOMDocument::childNodes):
1182         (DOMDocument::firstChild):
1183         (DOMDocument::lastChild):
1184         (DOMDocument::previousSibling):
1185         (DOMDocument::nextSibling):
1186         (DOMDocument::attributes):
1187         (DOMDocument::ownerDocument):
1188         (DOMDocument::insertBefore):
1189         (DOMDocument::replaceChild):
1190         (DOMDocument::removeChild):
1191         (DOMDocument::appendChild):
1192         (DOMDocument::hasChildNodes):
1193         (DOMDocument::cloneNode):
1194         (DOMDocument::isSupported):
1195         (DOMDocument::namespaceURI):
1196         (DOMDocument::prefix):
1197         (DOMDocument::setPrefix):
1198         (DOMDocument::localName):
1199         (DOMDocument::hasAttributes):
1200         (DOMDocument::isSameNode):
1201         (DOMDocument::isEqualNode):
1202         (DOMDocument::textContent):
1203         (DOMDocument::setTextContent):
1204         (DOMElement::throwException):
1205         (DOMElement::callWebScriptMethod):
1206         (DOMElement::evaluateWebScript):
1207         (DOMElement::removeWebScriptKey):
1208         (DOMElement::stringRepresentation):
1209         (DOMElement::webScriptValueAtIndex):
1210         (DOMElement::setWebScriptValueAtIndex):
1211         (DOMElement::setException):
1212         (DOMElement::nodeName):
1213         (DOMElement::nodeValue):
1214         (DOMElement::setNodeValue):
1215         (DOMElement::nodeType):
1216         (DOMElement::parentNode):
1217         (DOMElement::childNodes):
1218         (DOMElement::firstChild):
1219         (DOMElement::lastChild):
1220         (DOMElement::previousSibling):
1221         (DOMElement::nextSibling):
1222         (DOMElement::attributes):
1223         (DOMElement::ownerDocument):
1224         (DOMElement::insertBefore):
1225         (DOMElement::replaceChild):
1226         (DOMElement::removeChild):
1227         (DOMElement::appendChild):
1228         (DOMElement::hasChildNodes):
1229         (DOMElement::cloneNode):
1230         (DOMElement::isSupported):
1231         (DOMElement::namespaceURI):
1232         (DOMElement::prefix):
1233         (DOMElement::setPrefix):
1234         (DOMElement::localName):
1235         (DOMElement::hasAttributes):
1236         (DOMElement::isSameNode):
1237         (DOMElement::isEqualNode):
1238         (DOMElement::textContent):
1239         (DOMElement::setTextContent):
1240
1241 2010-04-05  Alexey Proskuryakov  <ap@apple.com>
1242
1243         Reviewed by Darin Adler.
1244
1245         https://bugs.webkit.org/show_bug.cgi?id=37111
1246         <rdar://problem/7790327> Draw replacement text when plug-in host crashes
1247
1248         * WebCoreLocalizedStrings.cpp: (WebCore::crashedPluginText): Added a stub string for plug-in
1249         failure.
1250
1251 2010-04-02  Rafael Weinstein  <rafaelw@chromium.org>
1252
1253         Reviewed by Adam Barth.
1254
1255         Clean up unused calls after changes to checkPermission and requestPermission argument lists.
1256
1257         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
1258         (WebDesktopNotificationsDelegate::requestPermission):
1259         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
1260
1261 2010-04-01  Chris Marrin  <cmarrin@apple.com>
1262
1263         Reviewed by Simon Fraser.
1264
1265         Added layerTreeAsText function to DRT (for Mac)
1266         https://bugs.webkit.org/show_bug.cgi?id=36782
1267
1268         This is the WebKit side for Windows. It plumbs the
1269         call from WebCore to DRT.
1270
1271         * Interfaces/IWebFramePrivate.idl:
1272         * WebFrame.cpp:WebKit (Windows) side of plumbing
1273         (WebFrame::layerTreeAsText):
1274         * WebFrame.h:
1275
1276 2010-03-31  Marcus Bulach  <bulach@chromium.org>
1277
1278         Reviewed by Jeremy Orlow.
1279
1280         Adds Geolocation param for cancelGeolocationPermissionRequestForFrame.
1281         https://bugs.webkit.org/show_bug.cgi?id=35031
1282
1283         * WebCoreSupport/WebChromeClient.h:
1284         (WebChromeClient::cancelGeolocationPermissionRequestForFrame):
1285
1286 2010-03-30  Gavin Barraclough  <barraclough@apple.com>
1287
1288         Rubber stamped by Sam Weinig.
1289
1290         https://bugs.webkit.org/show_bug.cgi?id=36866
1291         Move CString to WTF
1292
1293         * WebDownload.cpp:
1294         * WebDownloadCFNet.cpp:
1295         * WebDownloadCurl.cpp:
1296         * WebHistoryItem.cpp:
1297         * WebLocalizableStrings.cpp:
1298         * WebMutableURLRequest.cpp:
1299         * WebPreferences.cpp:
1300         (WebPreferences::migrateWebKitPreferencesToCFPreferences):
1301         * WebView.cpp:
1302
1303 2010-03-30  Adam Roben  <aroben@apple.com>
1304
1305         Windows build fix
1306
1307         * Interfaces/WebKit.idl: Touched this to force a build.
1308
1309 2010-03-29  Steve Falkenburg  <sfalken@apple.com>
1310
1311         Reviewed by Adele Peterson.
1312
1313         Default value of accelerated compositing should be false for Windows
1314         https://bugs.webkit.org/show_bug.cgi?id=36805
1315
1316         * WebPreferences.cpp:
1317         (WebPreferences::initializeDefaultSettings):
1318
1319 2010-03-29  Rafael Weinstein  <rafaelw@chromium.org>
1320
1321         Reviewed by Adam Barth.
1322
1323         Change NotificationPresenter::checkPermission() to take the source frames full KURL,
1324         rather than its SecurityOrigin. This will aid chromium in having more fine grained
1325         permissions to control notification spam.
1326
1327         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
1328         (WebDesktopNotificationsDelegate::checkPermission):
1329         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
1330
1331 2010-03-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1332
1333         Reviewed by Antti Koivisto.
1334
1335         Change method name due to it dealing with both flattening
1336         of frame sets and inner frames.
1337
1338         * Interfaces/IWebPreferencesPrivate.idl:
1339         * WebPreferenceKeysPrivate.h:
1340         * WebPreferences.cpp:
1341         (WebPreferences::initializeDefaultSettings):
1342         (WebPreferences::isFrameFlatteningEnabled):
1343         (WebPreferences::setFrameFlatteningEnabled):
1344         * WebPreferences.h:
1345         * WebView.cpp:
1346         (WebView::notifyPreferencesChanged):
1347
1348 2010-03-24  Jon Honeycutt  <jhoneycutt@apple.com>
1349
1350         <rdar://problem/7780798> Missing plug-ins should be represented by text
1351         only, instead of lego block
1352
1353         https://bugs.webkit.org/show_bug.cgi?id=36583
1354
1355         Reviewed by Dan Bernstein.
1356
1357         * WebCoreSupport/WebFrameLoaderClient.cpp:
1358         (WebFrameLoaderClient::createPlugin):
1359         Return 0 if we failed to initialize the plug-in, which causes the new
1360         "missing plug-in" text to draw.
1361
1362 2010-03-24  Kent Tamura  <tkent@chromium.org>
1363
1364         Reviewed by Darin Adler.
1365
1366         Make Icon::createIconForFiles() optional.
1367         https://bugs.webkit.org/show_bug.cgi?id=35072
1368
1369         - Rename iconForFiles() to chooseIconForFiles().
1370         - Call Icon::createIconForFiles() from chooseIconForFiles().
1371
1372         * WebCoreSupport/WebChromeClient.cpp:
1373         (WebChromeClient::chooseIconForFiles):
1374         * WebCoreSupport/WebChromeClient.h:
1375
1376 2010-03-22  Darin Adler  <darin@apple.com>
1377
1378         * WebCoreLocalizedStrings.cpp:
1379         (WebCore::missingPluginText): Fixed localization helper text to match the same
1380         string from Mac WebKit.
1381
1382 2010-03-22  Kevin Decker  <kdecker@apple.com>
1383
1384         Reviewed by John Sullivan.
1385
1386         https://bugs.webkit.org/show_bug.cgi?id=36328
1387         
1388         * WebCoreLocalizedStrings.cpp:
1389         (WebCore::missingPluginText): Added.
1390
1391 2010-03-17  Enrica Casucci  <enrica@apple.com>
1392
1393         Reviewed by Darin Adler.
1394
1395         Missing support for showing compositing layers borders and repaint count on Windows.
1396         <rdar://problem/7760736>
1397         <https://bugs.webkit.org/show_bug.cgi?id=36197>
1398
1399         * Interfaces/IWebPreferencesPrivate.idl:
1400         * WebPreferenceKeysPrivate.h:
1401         * WebPreferences.cpp:
1402         (WebPreferences::initializeDefaultSettings):
1403         (WebPreferences::showDebugBorders):
1404         (WebPreferences::setShowDebugBorders):
1405         (WebPreferences::showRepaintCounter):
1406         (WebPreferences::setShowRepaintCounter):
1407         * WebPreferences.h:
1408         * WebView.cpp:
1409         (WebView::notifyPreferencesChanged):
1410
1411 2010-03-16  Yury Semikhatsky <yurys@chromium.org>
1412
1413         Reviewed by Pavel Feldman.
1414
1415         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.
1416
1417         Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
1418         https://bugs.webkit.org/show_bug.cgi?id=35036
1419
1420         * WebCoreSupport/WebInspectorClient.cpp:
1421         (WebInspectorClient::WebInspectorClient):
1422         (WebInspectorClient::~WebInspectorClient):
1423         (WebInspectorClient::openInspectorFrontend):
1424         (WebInspectorClient::highlight):
1425         (WebInspectorClient::hideHighlight):
1426         (WebInspectorClient::updateHighlight):
1427         (WebInspectorFrontendClient::WebInspectorFrontendClient):
1428         (WebInspectorFrontendClient::~WebInspectorFrontendClient):
1429         (WebInspectorFrontendClient::frontendLoaded):
1430         (WebInspectorFrontendClient::localizedStringsURL):
1431         (WebInspectorFrontendClient::hiddenPanels):
1432         (WebInspectorFrontendClient::bringToFront):
1433         (WebInspectorFrontendClient::closeWindow):
1434         (WebInspectorFrontendClient::attachWindow):
1435         (WebInspectorFrontendClient::detachWindow):
1436         (WebInspectorFrontendClient::setAttachedWindowHeight):
1437         (WebInspectorFrontendClient::inspectedURLChanged):
1438         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
1439         (WebInspectorFrontendClient::showWindowWithoutNotifications):
1440         (WebInspectorFrontendClient::destroyInspectorView):
1441         (WebInspectorFrontendClient::updateWindowTitle):
1442         (WebInspectorFrontendClient::onGetMinMaxInfo):
1443         (WebInspectorFrontendClient::onSize):
1444         (WebInspectorFrontendClient::onClose):
1445         (WebInspectorFrontendClient::onSetFocus):
1446         (WebInspectorFrontendClient::onWebViewWindowPosChanging):
1447         (WebInspectorWndProc):
1448         (WebInspectorFrontendClient::windowReceivedMessage):
1449         * WebCoreSupport/WebInspectorClient.h:
1450         (WebInspectorClient::frontendClosing):
1451         * WebInspector.cpp:
1452         (WebInspector::attach):
1453         (WebInspector::detach):
1454
1455 2010-03-14  Dan Bernstein  <mitz@apple.com>
1456
1457         Reviewed by Darin Adler.
1458
1459         WebKit part of removing support for legacy versions of Core Graphics
1460
1461         * WebKitClassFactory.cpp:
1462         (WebKitClassFactory::WebKitClassFactory): Removed call to populateFontDatabase().
1463         * WebKitGraphics.cpp:
1464         (makeFont): Ditto.
1465         * WebTextRenderer.cpp:
1466         (WebTextRenderer::registerPrivateFont): Removed call to wkAddFontsAtPath().
1467
1468 2010-03-12  Enrica Casucci  <enrica@apple.com>
1469
1470         Fixed broken build on Windows.
1471         Added contditional compilation for accelerated compositing.
1472
1473         * WebView.cpp:
1474         (WebView::deleteBackingStore):
1475         (WebView::addToDirtyRegion):
1476         (WebView::updateBackingStore):
1477
1478 2010-03-12  Beth Dakin  <bdakin@apple.com>
1479
1480         Reviewed by Simon Fraser.
1481
1482         Fix for https://bugs.webkit.org/show_bug.cgi?id=34942 Fullscreen 
1483         API naming is inconsistent
1484         -and corresponding-
1485         <rdar://problem/7729165>
1486
1487         This patch changes all occurrences of "fullScreen" to the more 
1488         popular "fullscreen."
1489
1490         * FullscreenVideoController.cpp:
1491         (FullscreenVideoController::onMouseDown):
1492         (FullscreenVideoController::onMouseMove):
1493         (FullscreenVideoController::onMouseUp):
1494         * FullscreenVideoController.h:
1495         (FullscreenVideoController::fullscreenToHUDCoordinates):
1496
1497 2010-03-12  Beth Dakin  <bdakin@apple.com>
1498
1499         Reviewed by Adam Roben.
1500
1501         Fix for https://bugs.webkit.org/show_bug.cgi?id=33739 Fullscreen 
1502         video HUD stays on top when switching to another window (e.g. via 
1503         Alt-Tab)
1504         -and corresponding-
1505         <rdar://problem/7547574>
1506
1507         The HUD was always on top because it had the WS_EX_TOPMOST style. 
1508         So I removed the style and made m_videoWindow the owner of 
1509         m_hudWindow. This keeps m_hudWindow on top only when m_videoWindow 
1510         is the focused window.
1511
1512         * FullscreenVideoController.cpp:
1513         (FullscreenVideoController::exitFullscreen): ASSERT that movie()->exitFullscreen() also destroyed the hud.
1514         (FullscreenVideoController::createHUDWindow):
1515
1516 2010-03-12  Enrica Casucci  <enrica@apple.com>
1517
1518         Reviewed by Simon Fraser.
1519
1520         Content of 3D tests appears at the bottom right corner sometimes.
1521         <rdar://problem/7556244>
1522         <https://bugs.webkit.org/show_bug.cgi?id=36027>
1523
1524         See detailed comments in WebCore/ChangeLog.
1525
1526         * WebView.cpp:
1527         (WebView::deleteBackingStore): Reset the dirty flag when deleting the backing store.
1528         (WebView::addToDirtyRegion): Set the dirty flag when adding dirty rectangles to the
1529         backing store dirty region.
1530         (WebView::updateBackingStore): Reset the dirty flag after painting into the backing store.
1531         (WebView::setAcceleratedCompositing): Removed unnecessary call to updateRootLayerContents.
1532         (WebView::updateRootLayerContents): Changed the way we pass parameters to setScrollFrame.
1533         We are passing width and height of the view content together with the offset for the scrolling.
1534         It was confusing to pass it all as a rectangle, when it is not a rectangle.
1535         
1536 2010-03-11  Aaron Boodman  <aa@chromium.org>
1537
1538         Kill WebDocument::applicationID() (part 1).
1539
1540         Modify interface to WebCore::NotificationPresenter::checkPermission()
1541         and remove implementation of WebDocument::applicationID(). Breaking
1542         API changes will be in a subsequent change.
1543         https://bugs.webkit.org/show_bug.cgi?id=35846
1544
1545         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
1546         (WebDesktopNotificationsDelegate::checkPermission):
1547         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
1548
1549 2010-03-11  Anders Carlsson  <andersca@apple.com>
1550
1551         Reviewed by David Hyatt.
1552
1553         Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
1554
1555         * WebCoreSupport/WebChromeClient.cpp:
1556         * WebCoreSupport/WebChromeClient.h:
1557
1558 2010-03-10  Eric Uhrhane  <ericu@chromium.org>
1559
1560         Reviewed by David Levin.
1561
1562         The build fix for my patch on bug #35763 wasn't quite right--it removed
1563         the call entirely, instead of replacing it with the new API.  This adds
1564         the call to Database::setIsAvailable.
1565
1566         https://bugs.webkit.org/show_bug.cgi?id=35763
1567
1568         * WebView.cpp: Added a call to Database::setIsAvailable where change 55667 removed the old Settings API call <http://trac.webkit.org/changeset/55667>.
1569         (WebView::notifyPreferencesChanged):
1570
1571 2010-03-10  John Sullivan  <sullivan@apple.com>
1572
1573         Reviewed by Tim Hatcher.
1574         
1575         <rdar://problem/7735387> input type other than text won't work with autofill
1576         <https://bugs.webkit.org/show_bug.cgi?id=35963>
1577
1578         * WebFrame.cpp:
1579         (WebFrame::elementDoesAutoComplete):
1580         Return true for any text field that's not a password, rather than only
1581         for TEXT type.
1582
1583 2010-03-09  Brady Eidson  <beidson@apple.com>
1584
1585         Reviewed by Tim Hatcher.
1586
1587         REGRESSION: WebInspector docking busted on Windows
1588         <rdar://problem/7728433> and https://bugs.webkit.org/show_bug.cgi?id=35953
1589
1590         * WebCoreSupport/WebInspectorClient.cpp:
1591         (WebInspectorClient::attachWindow): Use the InspectorController:: copy of the should attach settings key.
1592         (WebInspectorClient::detachWindow): Ditto.
1593         (WebInspectorClient::showWindowWithoutNotifications): Ditto.
1594
1595 2010-03-09  John Sullivan  <sullivan@apple.com>
1596
1597         Fixed localized string key collision. update-webkit-localized-strings now
1598         runs without errors.
1599
1600         Reviewed by Adam Roben.
1601
1602         * WebCoreLocalizedStrings.cpp:
1603         (WebCore::AXMenuListPopupActionVerb):
1604         Used LPCTSTR_UI_STRING_KEY for the 2nd use of "press".
1605
1606 2010-03-08  Adam Treat  <atreat@rim.com>
1607
1608         Unreviewed build fix for Windows.
1609
1610         * WebCoreSupport/WebChromeClient.cpp:
1611         (WebChromeClient::invalidateContents):
1612
1613 2010-03-02  Adam Treat  <atreat@rim.com>
1614
1615         Reviewed by Dave Hyatt.
1616
1617         Adapt the win port to the refactoring of repaint methods.
1618
1619         https://bugs.webkit.org/show_bug.cgi?id=34214
1620
1621         * WebCoreSupport/WebChromeClient.cpp:
1622         (WebChromeClient::invalidateContents):
1623         (WebChromeClient::invalidateWindow):
1624         (WebChromeClient::invalidateContentsAndWindow):
1625         (WebChromeClient::invalidateContentsForSlowScroll):
1626         * WebCoreSupport/WebChromeClient.h:
1627
1628 2010-03-08  Daniel Bates  <dbates@rim.com>
1629
1630         Unreviewed, build fix.
1631
1632         Attempt to fix the Windows builds by applying the corresponding change
1633         made in bug #35763 <https://bugs.webkit.org/show_bug.cgi?id=35763>.
1634
1635         * WebView.cpp: Removed call to settings->setDatabasesEnabled since this
1636         setting no longer exists following changeset 55666 <http://trac.webkit.org/changeset/55666>.
1637         (WebView::notifyPreferencesChanged):
1638
1639 2010-03-07  Mark Rowe  <mrowe@apple.com>
1640
1641         Windows build fix.
1642
1643         * WebKitPrefix.h: Include CoreFoundation/CoreFoundation.h from the Windows prefix header
1644         since some WebCore headers rely on the types declared within being available via the prefix
1645         header.
1646
1647 2010-03-05  Chris Marrin  <cmarrin@apple.com>
1648
1649         Reviewed by Simon Fraser.
1650
1651         Got rid of platformLayer use in WebView.
1652         https://bugs.webkit.org/show_bug.cgi?id=35798
1653         
1654         WKCACFLayer no longer depends on GraphicsLayer, so I got rid of
1655         that dependency on WebView. Now WebChromeClient casts platformLayer
1656         to WKCACFLayer which will always be the case on Windows.
1657
1658         * WebCoreSupport/WebChromeClient.cpp:
1659         (WebChromeClient::attachRootGraphicsLayer):
1660         * WebView.cpp:
1661         (WebView::setRootChildLayer):
1662         * WebView.h:
1663
1664 2010-03-04  Beth Dakin  <bdakin@apple.com>
1665
1666         Reviewed by Anders Carlsson.
1667
1668         WebCore::Page::setInstanceHandle() is now just 
1669         WebCore::setInstanceHandle()
1670
1671         * WebKitDLL.cpp:
1672         (DllMain):
1673
1674 2010-03-03  Alice Liu  <alice.liu@apple.com>
1675
1676         Reviewed by Jon Honeycutt.
1677
1678         Add a way to get an iframe's content frame
1679
1680         * DOMCoreClasses.cpp:
1681         (DOMElement::createInstance):
1682         Added case for DOMHTMLIFrameElement
1683         * DOMHTMLClasses.cpp:
1684         Adding the few DOMHTMLIFrameElement functions definitions that have 
1685         distinct implementations (all others just call parent implementation)
1686         (DOMHTMLIFrameElement::QueryInterface):
1687         (DOMHTMLIFrameElement::contentFrame):
1688         * DOMHTMLClasses.h:
1689         Most of these function declarations have definitions that just call the parent implementation
1690         (DOMHTMLIFrameElement::DOMHTMLIFrameElement):
1691         (DOMHTMLIFrameElement::AddRef):
1692         (DOMHTMLIFrameElement::Release):
1693         (DOMHTMLIFrameElement::throwException):
1694         (DOMHTMLIFrameElement::callWebScriptMethod):
1695         (DOMHTMLIFrameElement::evaluateWebScript):
1696         (DOMHTMLIFrameElement::removeWebScriptKey):
1697         (DOMHTMLIFrameElement::stringRepresentation):
1698         (DOMHTMLIFrameElement::webScriptValueAtIndex):
1699         (DOMHTMLIFrameElement::setWebScriptValueAtIndex):
1700         (DOMHTMLIFrameElement::setException):
1701         (DOMHTMLIFrameElement::nodeName):
1702         (DOMHTMLIFrameElement::nodeValue):
1703         (DOMHTMLIFrameElement::setNodeValue):
1704         (DOMHTMLIFrameElement::nodeType):
1705         (DOMHTMLIFrameElement::parentNode):
1706         (DOMHTMLIFrameElement::childNodes):
1707         (DOMHTMLIFrameElement::firstChild):
1708         (DOMHTMLIFrameElement::lastChild):
1709         (DOMHTMLIFrameElement::previousSibling):
1710         (DOMHTMLIFrameElement::nextSibling):
1711         (DOMHTMLIFrameElement::attributes):
1712         (DOMHTMLIFrameElement::ownerDocument):
1713         (DOMHTMLIFrameElement::insertBefore):
1714         (DOMHTMLIFrameElement::replaceChild):
1715         (DOMHTMLIFrameElement::removeChild):
1716         (DOMHTMLIFrameElement::appendChild):
1717         (DOMHTMLIFrameElement::hasChildNodes):
1718         (DOMHTMLIFrameElement::cloneNode):
1719         (DOMHTMLIFrameElement::normalize):
1720         (DOMHTMLIFrameElement::isSupported):
1721         (DOMHTMLIFrameElement::namespaceURI):
1722         (DOMHTMLIFrameElement::prefix):
1723         (DOMHTMLIFrameElement::setPrefix):
1724         (DOMHTMLIFrameElement::localName):
1725         (DOMHTMLIFrameElement::hasAttributes):
1726         (DOMHTMLIFrameElement::isSameNode):
1727         (DOMHTMLIFrameElement::isEqualNode):
1728         (DOMHTMLIFrameElement::textContent):
1729         (DOMHTMLIFrameElement::setTextContent):
1730         (DOMHTMLIFrameElement::tagName):
1731         (DOMHTMLIFrameElement::getAttribute):
1732         (DOMHTMLIFrameElement::setAttribute):
1733         (DOMHTMLIFrameElement::removeAttribute):
1734         (DOMHTMLIFrameElement::getAttributeNode):
1735         (DOMHTMLIFrameElement::setAttributeNode):
1736         (DOMHTMLIFrameElement::removeAttributeNode):
1737         (DOMHTMLIFrameElement::getElementsByTagName):
1738         (DOMHTMLIFrameElement::getAttributeNS):
1739         (DOMHTMLIFrameElement::setAttributeNS):
1740         (DOMHTMLIFrameElement::removeAttributeNS):
1741         (DOMHTMLIFrameElement::getAttributeNodeNS):
1742         (DOMHTMLIFrameElement::setAttributeNodeNS):
1743         (DOMHTMLIFrameElement::getElementsByTagNameNS):
1744         (DOMHTMLIFrameElement::hasAttribute):
1745         (DOMHTMLIFrameElement::hasAttributeNS):
1746         (DOMHTMLIFrameElement::focus):
1747         (DOMHTMLIFrameElement::blur):
1748         (DOMHTMLIFrameElement::idName):
1749         (DOMHTMLIFrameElement::setIdName):
1750         (DOMHTMLIFrameElement::title):
1751         (DOMHTMLIFrameElement::setTitle):
1752         (DOMHTMLIFrameElement::lang):
1753         (DOMHTMLIFrameElement::setLang):
1754         (DOMHTMLIFrameElement::dir):
1755         (DOMHTMLIFrameElement::setDir):
1756         (DOMHTMLIFrameElement::className):
1757         (DOMHTMLIFrameElement::setClassName):
1758         (DOMHTMLIFrameElement::innerHTML):
1759         (DOMHTMLIFrameElement::setInnerHTML):
1760         (DOMHTMLIFrameElement::innerText):
1761         (DOMHTMLIFrameElement::setInnerText):
1762         * Interfaces/DOMHTML.idl:
1763         Added IDOMHTMLIFrameElement interface
1764
1765 2010-03-03  Chris Marrin  <cmarrin@apple.com>
1766
1767         Reviewed by Simon Fraser.
1768
1769         Export acceleratedCompositing flag in IWebPreferences.
1770         https://bugs.webkit.org/show_bug.cgi?id=35610
1771
1772         * Interfaces/IWebPreferences.idl:
1773
1774 2010-03-02  Beth Dakin  <bdakin@apple.com>
1775
1776         Reviewed by Darin Adler and Adam Roben.
1777
1778         Tiny WebKit portion of fix for <rdar://problem/7485289> WebKit 
1779         crashes on systems that don't support CoreAnimation
1780
1781         setHostWindow() no longer calls createRenderer(), so now that has 
1782         to be called manually.
1783
1784         * WebView.cpp:
1785         (WebView::setAcceleratedCompositing):
1786
1787 2010-03-02  Adam Roben  <aroben@apple.com>
1788
1789         Add IWebViewPrivate::registerURLSchemeAsSecure
1790
1791         Fixes <http://webkit.org/b/35580> <rdar://problem/7706407> Expose
1792         SecurityOrigin::registerURLSchemeAsSecure as WebKit SPI
1793
1794         Reviewed by Tim Hatcher.
1795
1796         * Interfaces/WebKit.idl: Touched to force a build.
1797
1798         * Interfaces/IWebViewPrivate.idl:
1799         * WebView.cpp:
1800         (WebView::registerURLSchemeAsSecure):
1801         * WebView.h:
1802         Added. Calls through to SecurityOrigin::registerURLSchemeAsSecure.
1803
1804 2010-03-01  Jon Honeycutt  <jhoneycutt@apple.com>
1805
1806         Remove Windows line endings from some files.
1807
1808         Rubber-stamped by Alice Liu.
1809
1810         * Interfaces/IWebEmbeddedView.idl:
1811
1812         * WebCoreSupport/EmbeddedWidget.cpp:
1813         (EmbeddedWidget::create):
1814         (EmbeddedWidget::~EmbeddedWidget):
1815         (EmbeddedWidget::createWindow):
1816         (EmbeddedWidget::invalidateRect):
1817         (EmbeddedWidget::setFrameRect):
1818         (EmbeddedWidget::frameRectsChanged):
1819         (EmbeddedWidget::setFocus):
1820         (EmbeddedWidget::show):
1821         (EmbeddedWidget::hide):
1822         (EmbeddedWidget::windowClipRect):
1823         (EmbeddedWidget::setParent):
1824         (EmbeddedWidget::attachToWindow):
1825         (EmbeddedWidget::detachFromWindow):
1826         (EmbeddedWidget::didReceiveResponse):
1827         (EmbeddedWidget::didReceiveData):
1828         (EmbeddedWidget::didFinishLoading):
1829         (EmbeddedWidget::didFail):
1830
1831         * WebCoreSupport/EmbeddedWidget.h:
1832         (EmbeddedWidget::EmbeddedWidget):
1833
1834 2010-03-01  Jon Honeycutt  <jhoneycutt@apple.com>
1835
1836         Some WebKit DOMNode API is unimplemented.
1837         https://bugs.webkit.org/show_bug.cgi?id=35554
1838
1839         Reviewed by Alice Liu.
1840
1841         * DOMCoreClasses.cpp:
1842         (DOMNode::nextSibling):
1843         Create a DOMNode to wrap m_node's next sibling, and assign it to the
1844         out param 'result'.
1845         (DOMNode::insertBefore):
1846         Query for the DOMNode for newChild, and return early if we fail. Query
1847         refChild for DOMNode. Call insertBefore(), passing the newChild's
1848         WebCore node and refChild's WebCore node (if refChild is non-null). If
1849         we successfully insert the child, fill the result out param with
1850         newChild, ref it, and return S_OK. Otherwise, return E_FAIL.
1851         (DOMNode::removeChild):
1852         Query oldChild for DOMNode. If we fail, return E_FAIL. Call
1853         removeChild(), passing the node's WebCore node. If this fails, return
1854         E_FAIL. Otherwise, fill the result out param with oldChild, ref it, and
1855         return S_OK.
1856
1857 2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
1858
1859         Reviewed by Adam Barth.
1860
1861         Adapt to the new ZoomMode enum.
1862         https://bugs.webkit.org/show_bug.cgi?id=35347
1863
1864         * WebFrame.cpp:
1865         (WebFrame::setTextSizeMultiplier):
1866         * WebView.cpp:
1867         (WebView::setZoomMultiplier):
1868         (WebView::zoomMultiplier):
1869         (WebView::canMakeTextLarger):
1870         (WebView::makeTextLarger):
1871         (WebView::canMakeTextSmaller):
1872         (WebView::makeTextSmaller):
1873         (WebView::notifyPreferencesChanged):
1874
1875 2010-02-26  Jon Honeycutt  <jhoneycutt@apple.com>
1876
1877         <rdar://problem/7703368> IWebUIDelegatePrivate::embeddedViewWithArguments
1878         is passed wrong arguments
1879
1880         Reviewed by Adam Roben.
1881
1882         * Interfaces/IWebUIDelegatePrivate.idl:
1883         Update copyright strings. Added a new key for the plug-in source URL.
1884
1885         * Interfaces/WebKit.idl:
1886         Update copyright strings.
1887
1888         * WebCoreSupport/WebFrameLoaderClient.cpp:
1889         (WebFrameLoaderClient::createPlugin):
1890         Pass the URL of the plug-in as the source URL. Pass the document's
1891         base URI for the base URL.
1892
1893 2010-02-23  Brady Eidson  <beidson@apple.com>
1894
1895         Reviewed by Tim Hatcher and Pavel Feldman.
1896
1897         Regression (r55107) - WebInspector docking is busted.
1898         https://bugs.webkit.org/show_bug.cgi?id=35274
1899
1900         * WebCoreSupport/WebInspectorClient.cpp:
1901         (WebInspectorClient::showWindowWithoutNotifications): Swap the order of the "should attach?" check
1902           to get the expected behavior.
1903
1904 2010-02-23  Steve Block  <steveblock@google.com>
1905
1906         Reviewed by Darin Adler.
1907
1908         Adds ChromeClient::cancelGeolocationPermissionRequestForFrame
1909         https://bugs.webkit.org/show_bug.cgi?id=34962
1910
1911         This method is required so that a Geolocation object can cancel an
1912         asynchronous permission request. This allows the chrome client to cancel
1913         any UI it is showing for the permission request.
1914
1915         * WebCoreSupport/WebChromeClient.h:
1916         (WebChromeClient::cancelGeolocationPermissionRequestForFrame):
1917
1918 2010-02-22  Steve Falkenburg  <sfalken@apple.com>
1919
1920         Reviewed by Darin Adler.
1921
1922         WebKit on Windows should pick up system setting changes without requiring explicit API calls
1923         https://bugs.webkit.org/show_bug.cgi?id=35269
1924
1925         * WebKit.vcproj/WebKit.def: Removed WebKitSystemParameterChanged.
1926         * WebKit.vcproj/WebKit_debug.def: Removed WebKitSystemParameterChanged.
1927         * WebKitGraphics.cpp: Removed WebKitSystemParameterChanged.
1928         * WebKitGraphics.h: Removed WebKitSystemParameterChanged.
1929         * WebView.cpp:
1930         (systemParameterChanged): Call through to wkSystemFontSmoothingChanged for font changes.
1931         (WebView::windowReceivedMessage): Pick up WM_SETTINGCHANGE from windowReceivedMessage.
1932
1933 2010-02-22  Brady Eidson  <beidson@apple.com>
1934
1935         Reviewed by Tim Hatcher.
1936
1937         Disable WebView docking to views that are too small.
1938         <rdar://problem/7248409> and https://bugs.webkit.org/show_bug.cgi?id=35254
1939
1940         * WebCoreSupport/WebInspectorClient.cpp:
1941         (WebInspectorClient::showWindowWithoutNotifications): No matter the preference, don't open the inspector 
1942           window attached if WebCore says it shouldn't be attached.
1943
1944 2010-02-17  Steve Falkenburg  <sfalken@apple.com>
1945
1946         Reviewed by Dan Bernstein.
1947
1948         WebKit on Windows needs a mechanism to listen for WM_SETTINGCHANGED messages
1949         https://bugs.webkit.org/show_bug.cgi?id=35076
1950
1951         * WebKit.vcproj/WebKit.def: Added WebKitSystemParameterChanged.
1952         * WebKit.vcproj/WebKit_debug.def: Added WebKitSystemParameterChanged.
1953         * WebKitGraphics.cpp:
1954         (WebKitSystemParameterChanged): Call through to wkSystemFontSmoothingChanged for font smoothing changes.
1955         * WebKitGraphics.h: Added WebKitSystemParameterChanged.
1956
1957 2010-02-17  Dmitry Titov  <dimich@chromium.org>
1958
1959         Reviewed by David Levin, Darin Fisher, Simon Hausmann.
1960
1961         When a live iframe element is moved between pages, it still depends on the old page.
1962         https://bugs.webkit.org/show_bug.cgi?id=34382
1963
1964         * WebCoreSupport/WebFrameLoaderClient.cpp:
1965         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
1966         Added empty implementation of a new virtual method.
1967
1968         * WebCoreSupport/WebFrameLoaderClient.h:
1969
1970 2010-02-17  Kent Tamura  <tkent@chromium.org>
1971
1972         Reviewed by Eric Seidel.
1973
1974         Introduces new Icon loading interface in order to support
1975         asynchronous loading.
1976         https://bugs.webkit.org/show_bug.cgi?id=32054
1977
1978         Add an empty implementation of ChromeClient::iconForFiles().
1979
1980         * WebCoreSupport/WebChromeClient.cpp:
1981         (WebChromeClient::iconForFiles):
1982         * WebCoreSupport/WebChromeClient.h:
1983
1984 2010-02-17  Shinichiro Hamaji  <hamaji@chromium.org>
1985
1986         Unreviewed. Touch WebKit.idl to fix the build.
1987
1988         [Win] Implement test functions for printing
1989         https://bugs.webkit.org/show_bug.cgi?id=34570
1990
1991         * Interfaces/WebKit.idl:
1992
1993 2010-02-17  Shinichiro Hamaji  <hamaji@chromium.org>
1994
1995         Reviewed by Eric Seidel.
1996
1997         [Win] Implement test functions for printing
1998         https://bugs.webkit.org/show_bug.cgi?id=34570
1999
2000         * Interfaces/IWebFramePrivate.idl:
2001         * WebFrame.cpp:
2002         (WebFrame::pageNumberForElementById):
2003         (WebFrame::numberOfPages):
2004         * WebFrame.h:
2005
2006 2010-02-16  Darin Adler  <darin@apple.com>
2007
2008         Reviewed by Sam Weinig.
2009
2010         Generalize delayed plug-in start for background tabs for use for other media
2011         https://bugs.webkit.org/show_bug.cgi?id=34981
2012
2013         * WebView.cpp:
2014         (WebView::setCanStartPlugins): Change to call setCanStartMedia.
2015         In a later patch we can change the of the public function in the IDL file too,
2016         but for now this should be enough.
2017
2018 2010-02-15  Adam Roben  <aroben@apple.com>
2019
2020         Add IWebFramePrivate::visibleContentRect
2021
2022         Fixes <http://webkit.org/b/34956> Add API to get a WebFrame's visible
2023         content rect
2024
2025         Reviewed by Jon Honeycutt.
2026
2027         * Interfaces/IWebFramePrivate.idl: Added visibleContentRect.
2028
2029         * Interfaces/WebKit.idl: Touched to force a build.
2030
2031         * WebFrame.cpp:
2032         (WebFrame::visibleContentRect):
2033         * WebFrame.h:
2034         Added. Calls through to FrameView::visibleContentRect.
2035
2036 2010-02-12  Brian Weinstein  <bweinstein@apple.com>
2037
2038         Reviewed by Adam Roben.
2039
2040         onmouseout fired when moving over tooltip on Windows
2041         https://bugs.webkit.org/show_bug.cgi?id=16794
2042         <rdar://5762038>.
2043         
2044         Add WS_EX_TRANSPARENT to out tooltip HWND so it isn't subject to hit testing, and when
2045         you mouse over the tooltip, it doesn't send a mouseout to the web content.
2046
2047         * WebView.cpp:
2048         (WebView::initializeToolTipWindow): Add WS_EX_TRANSPARENT.
2049
2050 2010-02-10  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2051
2052         Reviewed by Kenneth Rohde Christiansen.
2053
2054         Support frameset flattening
2055         https://bugs.webkit.org/show_bug.cgi?id=32717
2056
2057         Add support for enabling/disabling FrameSet Flattening on the Windows port.
2058
2059         * Interfaces/IWebPreferencesPrivate.idl:
2060         * WebPreferenceKeysPrivate.h:
2061         * WebPreferences.cpp:
2062         (WebPreferences::initializeDefaultSettings):
2063         (WebPreferences::isFrameSetFlatteningEnabled):
2064         (WebPreferences::setFrameSetFlatteningEnabled):
2065         * WebPreferences.h:
2066         * WebView.cpp:
2067         (WebView::notifyPreferencesChanged):
2068
2069 2010-02-10  Adam Roben  <aroben@apple.com>
2070
2071         Remove unnecessary #include of shfolder.h
2072
2073         shfolder.h has been deprecated in newer versions of the Windows SDK.
2074
2075         Fixes <http://webkit.org/b/34803> WebPreferences.cpp fails to compile
2076         under VS2010 RC due to #include of shfolder.h.
2077
2078         Reviewed by Darin Adler.
2079
2080         * WebPreferences.cpp: Removed #include.
2081
2082 2010-02-08  Charlie Reis  <creis@chromium.org>
2083
2084         Reviewed by Darin Adler.
2085
2086         onbeforeunload not called at window close + frame or iframe focused
2087         https://bugs.webkit.org/show_bug.cgi?id=27481
2088         
2089         Chromium and WebKit on Windows will now fire beforeunload handlers
2090         even if an inner frame is focused.  
2091
2092         Layout tests aren't able to test this bug, since it requires closing
2093         the actual browser window, not calling window.close().  Instead,
2094         test with WebCore/manual-tests/onbeforeunload-focused-iframe.html.
2095
2096         * WebView.cpp:
2097         (WebView::shouldClose):
2098
2099 2010-02-08  Brent Fulgham  <bfulgham@webkit.org>
2100
2101         Reviewed by Adam Roben.
2102
2103         Include header position in World Transform used for plugin positioning.
2104         https://bugs.webkit.org/show_bug.cgi?id=34709
2105
2106         * WebFrame.cpp:
2107         (WebFrame::spoolPage): Correct WinCairo plugin print positioning to
2108           account for header size.  Existing code ignored this, causing
2109           plugins to overlay other elements.
2110
2111 2010-02-04  Alice Liu  <alice.liu@apple.com>
2112
2113         Reviewed by Jon Honeycutt.
2114
2115         https://bugs.webkit.org/show_bug.cgi?id=34612 " MSAA: accSelect returns error 
2116         codes for most elements that arent listbox or menupopup related"
2117         <rdar://problem/7436861>
2118
2119         * AccessibleBase.cpp:
2120         (AccessibleBase::accSelect):
2121         - Stop sending E_INVALIDARG for elements that request TAKE_SELECTION that 
2122           aren't beneath listboxes or menupopups.  This was too restrictive since 
2123           any element can be selectable.
2124         - Correct the misinterpretation of MSDN's stipulation of situations involving 
2125           adding, removing, and extending selection on single-select elements
2126
2127 2010-02-04  Brent Fulgham  <bfulgham@webkit.org>
2128
2129         Reviewed by Adam Roben.
2130
2131         Properly handle margin settings when printing Plugins in WinCairo.
2132         https://bugs.webkit.org/show_bug.cgi?id=34613
2133
2134         * WebFrame.cpp:
2135         (WebFrame::spoolPage): Adjust the GraphicsContext passed to the
2136           paintContents method so that the World Transform is properly
2137           positioned to account for margin settings at the time that
2138           PluginViewWin.cpp processes the drawing operations.
2139
2140 2010-02-04  Brent Fulgham  <bfulgham@webkit.org>
2141
2142         Reviewed by Adam Roben.
2143
2144         Properly handle margin settings in WinCairo.
2145         https://bugs.webkit.org/show_bug.cgi?id=34545
2146
2147         * WebFrame.cpp:
2148         (scaleFactor): Require the margin information as an input
2149           parameter, and use them when computing the scaling factor.
2150         (WebFrame::drawHeader): Pass margin size to scaleFactor.
2151         (WebFrame::drawFooter): Pass margin size to scaleFactor.
2152         (WebFrame::spoolPage):
2153           1. Pass margin size to scaleFactor.
2154           2. Recognize that the return value of printerMarginRect is
2155              already in device units, and therefore scale it so that
2156              the Cairo drawing is correct.
2157           3. Remove scaling call for margins in GDI code, as it is
2158              already in scaled units.
2159
2160 2010-02-03  Brian Weinstein  <bweinstein@apple.com>
2161
2162         Reviewed by Steve Falkenburg.
2163
2164         Scroll does not work with IBM Thinkpad.
2165         <https://bugs.webkit.org/show_bug.cgi?id=14227>
2166         <rdar://7142545>
2167         
2168         When initializing the WebView, add two scrollbar Windows inside of
2169         our WebView, to allow it to receive WM_VSCROLL and WM_HSCROLL events.
2170         (similar to what Firefox did in: <https://bugzilla.mozilla.org/show_bug.cgi?id=507222>.
2171         
2172         Only do this if the user has installed some kind of Trackpoint driver, using an algorithm
2173         like <https://bugzilla.mozilla.org/show_bug.cgi?id=514927>.
2174         
2175         Also, add code to handle WM_HSCROLL and WM_VSCROLL messages to scroll
2176         the WebView.
2177
2178         * WebView.cpp:
2179         (WebView::verticalScroll): Handle the WM_VSCROLL messages, and scroll up and down
2180             by lines or pages.
2181         (WebView::horizontalScroll): Handle the WM_HSCROLL messages, and scroll left or right
2182             by lines or pages.
2183         (WebView::WebViewWndProc): Add cases for WM_VSCROLL and WM_HSCROLL.
2184         (WebView::initWithFrame): Call shouldInitializeTrackPointHack, and if we should, create
2185             vertical and horizontal scrollbars to receive WM_VSCROLL and WM_HSCROLL messages.
2186         (WebView::shouldInitializeTrackPointHack): Check if there is a registry key for
2187             the some kind of IBM Trackpoint driver.
2188         * WebView.h:
2189
2190 2010-02-02  Steve Falkenburg  <sfalken@apple.com>
2191
2192         Reviewed by Darin Adler.
2193
2194         Copyright year updating for Windows version resources should be automatic
2195         https://bugs.webkit.org/show_bug.cgi?id=34503
2196
2197         * WebKit.vcproj/WebKit.rc:
2198
2199 2010-02-02  Adam Roben  <aroben@apple.com>
2200
2201         Stop copying WebCore's IDL files from SRCROOT to OBJROOT
2202
2203         WebKit doesn't use these anymore (as of r52921).
2204
2205         Part of Bug 34496: Clean up WebCore's IDL/script copying
2206         <https://bugs.webkit.org/show_bug.cgi?id=34496>
2207
2208         Reviewed by Steve Falkenburg.
2209
2210         * WebKit.vcproj/WebKit.make:
2211
2212 2010-01-29  Gavin Barraclough  <barraclough@apple.com>
2213
2214         Reviewed by Sam Weinig + Oliver Hunt.
2215
2216         Bug 34346 - With JSC bindings, make processingUserGesture work with events in Isolated Worlds
2217
2218         Pass processeing user gensture flag to media play/pause methods.
2219
2220         * FullscreenVideoController.cpp:
2221         (FullscreenVideoController::play):
2222         (FullscreenVideoController::pause):
2223
2224 2010-01-29  Brian Weinstein  <bweinstein@apple.com>
2225
2226         Reviewed by Adam Roben.
2227
2228         Drag and Drop: Windows uses "stop" sign as cursor when dragging
2229         https://bugs.webkit.org/show_bug.cgi?id=34305
2230         <rdar://problem/7589672>
2231         
2232         Add a preference in WebKit (that defaults to false), for whether or not
2233         we should show the custom cursors during drag and drop. However, this is
2234         currently only used on Windows, and only used to hide the "drop not allowed"
2235         icon inside the WebView is the preference is set to true.
2236
2237         This will be off by default, so no change in behavior.
2238
2239         * Interfaces/IWebPreferencesPrivate.idl: Added new functions.
2240         * Interfaces/WebKit.idl: Touched to force Interfaces build.
2241         * WebDropSource.cpp:
2242         (WebDropSource::GiveFeedback): Implementation of conditional showing cursor
2243             logic.
2244         * WebPreferenceKeysPrivate.h: Added new preference key.
2245         * WebPreferences.cpp: Added new functions.
2246         (WebPreferences::setCustomDragCursorsEnabled):
2247         (WebPreferences::customDragCursorsEnabled):
2248         * WebPreferences.h: Added new functions.
2249
2250 2010-01-28  Jon Honeycutt  <jhoneycutt@apple.com>
2251
2252         MSAA: Crash when posting a notification for a detached object
2253
2254         https://bugs.webkit.org/show_bug.cgi?id=34309
2255         <rdar://problem/7409759>
2256
2257         Reviewed by Darin Adler.
2258
2259         * AccessibleBase.cpp:
2260         (AccessibleBase::QueryService):
2261         If an unrecognized service ID is passed, return early. Otherwise, return
2262         the result of QueryInterface.
2263         (AccessibleBase::QueryInterface):
2264         Add static_casts. Check for new UUIDs.
2265         (AccessibleBase::isSameObject):
2266         Query the object for AccessibleBase. Return whether the pointers or the
2267         wrapped objects match.
2268
2269         * AccessibleBase.h:
2270         Give the class a UUID so we can query for it in isSameObject(). Inherit
2271         from IAccessibleComparable; inherit from IServiceProvider so clients can
2272         use QueryService to query for a custom interface.
2273
2274         * Interfaces/AccessibleComparable.idl: Added. Declares a function that
2275         can be called to compare to accessible objects.
2276
2277         * Interfaces/WebKit.idl:
2278         Include the new IDL.
2279
2280         * WebKit.vcproj/Interfaces.vcproj:
2281         Add the new IDL to the project.
2282
2283 2010-01-27  Aaron Boodman  <aa@chromium.org>
2284
2285         Expand NotificationCenter::checkPermission() interface.
2286         It now passes the full URL instead of just the origin.
2287
2288         https://bugs.webkit.org/show_bug.cgi?id=34238
2289
2290         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
2291         (WebDesktopNotificationsDelegate::checkPermission):
2292         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
2293
2294 2010-01-27  Adam Roben  <aroben@apple.com>
2295
2296         Make it possible to instantiate WebSerializedJSValue using
2297         WebKitCreateInstance
2298
2299         Reviewed by Dave Hyatt.
2300
2301         * ForEachCoClass.h:
2302         * WebKitClassFactory.cpp:
2303         Added WebSerializedJSValue.
2304
2305 2010-01-26  Steve Falkenburg  <sfalken@apple.com>
2306
2307         Reviewed by Oliver Hunt.
2308
2309         Windows build references non-existent include paths
2310         https://bugs.webkit.org/show_bug.cgi?id=34175
2311
2312         * WebKit.vcproj/WebKit.vcproj:
2313
2314 2010-01-25  Steve Falkenburg  <sfalken@apple.com>
2315
2316         Reviewed by Simon Fraser.
2317
2318         A WebGeolocationControllerClient is leaked for every WebView
2319         https://bugs.webkit.org/show_bug.cgi?id=34145
2320
2321         * WebCoreSupport/WebGeolocationControllerClient.cpp:
2322         (WebGeolocationControllerClient::geolocationDestroyed): Added.
2323         * WebCoreSupport/WebGeolocationControllerClient.h:
2324
2325 2010-01-23  Dan Bernstein  <mitz@apple.com>
2326
2327         Reviewed by Maciej Stachowiak.
2328
2329         <rdar://problem/7569820> svg/custom/text-zoom.xhtml fails on Windows
2330         https://bugs.webkit.org/show_bug.cgi?id=34006
2331
2332         * WebPreferences.cpp:
2333         (WebPreferences::initializeDefaultSettings): Added WebKitZoomsTextOnlyPreferenceKey
2334         with a default value of true.
2335
2336 2010-01-20  Steve Falkenburg  <sfalken@apple.com>
2337
2338         Reviewed by Sam Weinig.
2339
2340         Add missing implementation for WebGeolocationPosition::initWithTimestamp.
2341
2342         * WebGeolocationPosition.cpp:
2343         (WebGeolocationPosition::initWithTimestamp): Implemented.
2344
2345 2010-01-20  Jon Honeycutt  <jhoneycutt@apple.com>
2346
2347         MSAA: accSelect() is not implemented
2348
2349         https://bugs.webkit.org/show_bug.cgi?id=33918
2350         <rdar://problem/7436861>
2351
2352         Reviewed by Darin Adler.
2353
2354         * AccessibleBase.cpp:
2355         (AccessibleBase::accSelect):
2356         If there is an invalid combination of state flags, return early. If the
2357         caller passed the "take focus" flag, focus the object. If the "take
2358         selection" flag was passed, check whether the parent object is an
2359         AccessibilityListBox; if so, call the object's setSelectedChildren()
2360         function. If the parent is an AccessibilityMenuListPopup, call the
2361         child object's setSelected() function. Otherwise, if the parent is some
2362         other, unsupported object, return early.
2363         If the selection flags include "add", "remove", or "extend" selection,
2364         and the parent object is not multi-selectable, return early. Otherwise,
2365         set or unset the child's selected flag based on the passed flag.
2366
2367 2010-01-20  Steve Falkenburg  <sfalken@apple.com>
2368
2369         Reviewed by Darin Adler and Adam Roben.
2370
2371         Feature defines are difficult to maintain on Windows builds
2372         https://bugs.webkit.org/show_bug.cgi?id=33883
2373
2374         FeatureDefines.vsprops are now maintained in a way similar to
2375         Configurations/FeatureDefines.xcconfig, with the added advantage
2376         of having a single FeatureDefines file across all projects.
2377
2378         * WebKit.vcproj/Interfaces.vcproj: Add FeatureDefines.vsprops inherited property sheet.
2379         * WebKit.vcproj/WebKit.sln: Set up Cairo configuration for WebCoreGenerated.
2380         * WebKit.vcproj/WebKit.vcproj: Remove ENABLE_ preprocessor definitions.
2381         Add FeatureDefines.vsprops inherited property sheet.
2382         * WebKit.vcproj/WebKitGUID.vcproj: Add FeatureDefines.vsprops inherited property sheet.
2383
2384 2010-01-17  Jon Honeycutt  <jhoneycutt@apple.com>
2385
2386         MSAA: The child <option> elements of a non-multiple <select> are not
2387         exposed
2388
2389         https://bugs.webkit.org/show_bug.cgi?id=33773
2390         <rdar://problem/7550556>
2391
2392         Reviewed by Alice Liu.
2393
2394         * AccessibleBase.cpp:
2395         (AccessibleBase::get_accState):
2396         If the object is invisible, set the invisible state flag. If the object
2397         is collapsed, set the collapsed state. If the object is a combo box,
2398         set the has popup flag, and if it's not collapsed, set the expanded
2399         flag.
2400         (MSAARole):
2401         Add new WebCore to MSAA role mappings.
2402
2403         * WebCoreLocalizedStrings.cpp:
2404         (WebCore::AXMenuListActionVerb):
2405         Return the action verb that Firefox uses for <select> elements with
2406         popups.
2407         (WebCore::AXMenuListPopupActionVerb):
2408         Return the verb that Firefox uses for a popup list.
2409
2410 2010-01-19  John Sullivan  <sullivan@apple.com>
2411
2412         https://bugs.webkit.org/show_bug.cgi?id=33854
2413         Would like a variant of WebHTMLRepresentation's searchForLabelsBeforeElement that returns 
2414         more info about where the result was found
2415
2416         Reviewed by Darin Adler
2417
2418         * Interfaces/IWebHTMLRepresentation.idl:
2419         Created variant of searchForLabels that includes additional in/out parameters resultDistance and resultIsInCellAbove.
2420         
2421         * Interfaces/WebKit.idl:
2422         Touched in order to get other idl change to propagate correctly.
2423
2424         * WebHTMLRepresentation.cpp:
2425         (WebHTMLRepresentation::deprecatedSearchForLabels):
2426         Renamed since iDL doesn't support two functions with the same name but different signatures.
2427         (WebHTMLRepresentation::searchForLabels):
2428         Implemented variant of searchForLabels that includes additional in/out parameters resultDistance and resultIsInCellAbove.
2429
2430         * WebHTMLRepresentation.h:
2431         Declared variant of searchForLabels that includes additional in/out parameters resultDistance and resultIsInCellAbove.
2432
2433 2010-01-19  Adam Roben  <aroben@apple.com>
2434
2435         Windows build fix
2436
2437         * WebScriptWorld.cpp: Added missing #include.
2438
2439 2010-01-19  Dave Hyatt  <hyatt@apple.com>
2440
2441         Build bustage fix. Make sure the newly added scriptWorldForGlobalContext function is [local] in the IDL.
2442
2443         * Interfaces/IWebScriptWorld.idl:
2444
2445 2010-01-19  Dave Hyatt  <hyatt@apple.com>
2446
2447         Reviewed by Adam Roben.
2448
2449         Add an API to obtain a WebScriptWorld from a JSGlobalContextRef.
2450
2451         * Interfaces/IWebScriptWorld.idl:
2452         * WebScriptWorld.cpp:
2453         (WebScriptWorld::scriptWorldForGlobalContext):
2454         * WebScriptWorld.h:
2455
2456 2010-01-18  Adam Roben  <aroben@apple.com>
2457
2458         Add IWebViewPrivate::setDomainRelaxationForbiddenForURLScheme
2459
2460         WebKit/win part of fixing <http://webkit.org/b/33806>
2461         <rdar://problem/7552837> Would like API to disallow setting of
2462         document.domain for pages with certain URL schemes
2463
2464         Reviewed by Sam Weinig.
2465
2466         * Interfaces/IWebViewPrivate.idl: Added
2467         setDomainRelaxationForbiddenForURLScheme.
2468
2469         * Interfaces/WebKit.idl: Touched to force a build.
2470
2471         * WebView.cpp:
2472         (WebView::setDomainRelaxationForbiddenForURLScheme):
2473         * WebView.h:
2474         Added. Calls through to SecurityOrigin.
2475
2476 2010-01-18  Chris Marrin  <cmarrin@apple.com>
2477
2478         Reviewed by Darin Adler.
2479
2480         Use new setScrollFrame API
2481         https://bugs.webkit.org/show_bug.cgi?id=32279
2482
2483         * WebView.cpp:
2484         (WebView::updateRootLayerContents):
2485
2486 2010-01-15  Jon Honeycutt  <jhoneycutt@apple.com>
2487
2488         MSAA: Screen rect for <option> elements is always the zero rect
2489
2490         https://bugs.webkit.org/show_bug.cgi?id=33758
2491
2492         Reviewed by Oliver Hunt.
2493
2494         * AccessibleBase.cpp:
2495         (AccessibleBase::accLocation):
2496         Use elementRect() rather than boundingBoxRect(), which
2497         AccessibilityListBoxOption overrides.
2498
2499 2010-01-15  Jon Honeycutt  <jhoneycutt@apple.com>
2500
2501         get_accParent should try to retrieve parent AccessibilityObject, before
2502         calling upon window
2503
2504         https://bugs.webkit.org/show_bug.cgi?id=22893
2505
2506         Reviewed by Darin Adler.
2507
2508         * AccessibleBase.cpp:
2509         (AccessibleBase::get_accParent):
2510         If the object has a parent object, return it. If not, return the
2511         accessible for the WebView window.
2512
2513 2010-01-12  Jon Honeycutt  <jhoneycutt@apple.com>
2514
2515         MSAA: selected, selectable, extended selectable, and multiple
2516         selectable states are not reported
2517
2518         https://bugs.webkit.org/show_bug.cgi?id=33574
2519         <rdar://problem/7536826>
2520
2521         Reviewed by Darin Adler.
2522
2523         * AccessibleBase.cpp:
2524         (AccessibleBase::get_accState):
2525         Remove the call to isMultiSelect(). Call the correctly-named
2526         isMultiSelectable(), and if it returns true, set both the "extended
2527         selectable" and "multiple selectable" states. Check whether the object
2528         is selected or selectable, and report those states.
2529
2530 2010-01-13  Steve Falkenburg  <sfalken@apple.com>
2531
2532         Reviewed by Adam Roben.
2533
2534         Add additional Geolocation interfaces in WebKit for Windows.
2535
2536         * Interfaces/IWebGeolocationPolicyListener.idl: Added.
2537         * Interfaces/IWebUIDelegatePrivate.idl: Add decidePolicyForGeolocationRequest to IWebUIDelegatePrivate2.
2538         Append since this version hasn't shipped.
2539         * Interfaces/WebKit.idl: Add include of IWebGeolocationPolicyListener.idl.
2540         * WebCoreSupport/WebChromeClient.cpp:
2541         (WebChromeClient::requestGeolocationPermissionForFrame): Call into decidePolicyForGeolocationRequest.
2542         * WebCoreSupport/WebGeolocationControllerClient.cpp:
2543         (WebGeolocationControllerClient::WebGeolocationControllerClient): Moved *.
2544         * WebGeolocationPolicyListener.cpp: Added.
2545         * WebGeolocationPolicyListener.h: Added.
2546         * WebKit.vcproj/Interfaces.vcproj: Added IWebGeolocationPolicyListener.
2547         * WebKit.vcproj/WebKit.vcproj: Added WebGeolocationPolicyListener, WebGeolocationPolicyListener.
2548         * WebView.cpp:
2549         (WebView::setGeolocationProvider): Removed extraneous STDMETHODCALLTYPE.
2550         (WebView::geolocationProvider): Removed extraneous STDMETHODCALLTYPE.
2551         (WebView::geolocationDidChangePosition): Removed extraneous STDMETHODCALLTYPE.
2552         (WebView::geolocationDidFailWithError): Removed extraneous STDMETHODCALLTYPE.
2553
2554 2010-01-12  Steve Falkenburg  <sfalken@apple.com>
2555
2556         Reviewed by Adam Roben, Sam Weinig.
2557
2558         Add Geolocation interfaces in WebKit for Windows.
2559
2560         * ForEachCoClass.h: Added WebGeolocationPosition.
2561         * Interfaces/IWebError.idl:
2562         * Interfaces/IWebGeolocationPosition.idl: Added.
2563         * Interfaces/IWebGeolocationProvider.idl: Added.
2564         * Interfaces/IWebViewPrivate.idl:
2565         * Interfaces/WebKit.idl:
2566         * WebCoreSupport/WebGeolocationControllerClient.cpp: Added.
2567         (WebGeolocationControllerClient::WebGeolocationControllerClient):
2568         (WebGeolocationControllerClient::startUpdating):
2569         (WebGeolocationControllerClient::stopUpdating):
2570         (WebGeolocationControllerClient::lastPosition):
2571         * WebCoreSupport/WebGeolocationControllerClient.h: Added.
2572         * WebGeolocationPosition.cpp: Added IWebGeolocationPosition implementation.
2573         * WebGeolocationPosition.h: Added IWebGeolocationPosition implementation.
2574         * WebKit.vcproj/Interfaces.vcproj: Added IWebGeolocationPosition.idl, IWebGeolocationProvider.idl,
2575         relocated JavaScriptCoreAPITypes.idl, WebScrollbarTypes.idl
2576         * WebKit.vcproj/WebKit.vcproj: Added WebGeolocationPosition.h/.cpp, WebGeolocationControllerClient.h/cpp,        
2577         * WebKitClassFactory.cpp: Add WebGeolocationPosition include.
2578         * WebView.cpp:
2579         (WebView::initWithFrame): Create WebGeolocationControllerClient if Geolocation is enabled.
2580         (WebView::setGeolocationProvider): Added Geolocation-specific method.
2581         (WebView::geolocationProvider): Added Geolocation-specific method.
2582         (WebView::geolocationDidChangePosition): Added Geolocation-specific method.
2583         (WebView::geolocationDidFailWithError): Added Geolocation-specific method.
2584         * WebView.h: Added setGeolocationProvider, geolocationProvider, geolocationDidChangePosition, geolocationDidFailWithError.
2585
2586 2010-01-11  Jon Honeycutt  <jhoneycutt@apple.com>
2587
2588         MSAA: Accessibility role of <select multiple> elements is wrong
2589
2590         https://bugs.webkit.org/show_bug.cgi?id=33522
2591
2592         Reviewed by Darin Adler.
2593
2594         * AccessibleBase.cpp:
2595         (MSAARole):
2596         Map the WebCore::ListBox and WebCore::ListBoxOption roles to the MSAA
2597         "list" and "list item" roles.
2598
2599 2010-01-08  Brent Fulgham  <bfulgham@webkit.org>
2600
2601         Build fix, no review.
2602
2603         Protect video control logic inside ENABLE(VIDEO).
2604
2605         * WebView.cpp:
2606         (WebView::enterFullscreenForNode):
2607         (WebView::exitFullscreen):
2608         * WebView.h:
2609
2610 2010-01-08  Chris Marrin  <cmarrin@apple.com>
2611
2612         Reviewed by Adam Roben.
2613
2614         Implement full-screen video for Windows
2615         https://bugs.webkit.org/show_bug.cgi?id=31318
2616         
2617         This adds a full-screen controller, FullscreenVideoController, 
2618         which manages going in and out of full-screen. The actual 
2619         full-screen window is created and managed by logic added 
2620         to QTMovieWin. FullscreenVideoController also creates and
2621         manages a HUD. The HUD renders and manages events to
2622         control the playing video. Movie controller events go to 
2623         FullscreenVideoController which then sends them to HTMLMediaElement, 
2624         which is passed to the controller by WebView, which gets the call 
2625         to go into full-screen mode from HTMLMediaElement via 
2626         ChromeClient.
2627         
2628         I've also updated the icons so the related sets (Play/Pause and
2629         volume high/volume low/exit fullscreen) are the same size. This 
2630         allows me to position them using common code.
2631
2632         * WebCoreSupport/WebChromeClient.cpp:
2633         (WebChromeClient::supportsFullscreenForNode):
2634         (WebChromeClient::enterFullscreenForNode):
2635         (WebChromeClient::exitFullscreenForNode):
2636         * WebCoreSupport/WebChromeClient.h:
2637         * WebKit.vcproj/WebKit.vcproj:
2638         * WebKit.vcproj/fsVideoAudioVolumeHigh.png:
2639         * WebKit.vcproj/fsVideoAudioVolumeLow.png:
2640         * WebKit.vcproj/fsVideoExitFullscreen.png:
2641         * WebKit.vcproj/fsVideoPause.png:
2642         * WebKit.vcproj/fsVideoPlay.png:
2643         * WebKitDLL.cpp:
2644         (loadResourceIntoBuffer):
2645         * FullscreenVideoController.cpp: Added.
2646         * FullscreenVideoController.h: Added.
2647         * WebView.cpp:
2648         (WebView::enterFullscreenForNode):
2649         (WebView::exitFullscreen):
2650         * WebView.h:
2651
2652 2010-01-08  Brent Fulgham  <bfulgham@webkit.org>
2653
2654         Unreviewed correction. 
2655
2656         Accidentally left unnecessary modification to hdcFromContext
2657         in when landing r52995.
2658
2659         * WebFrame.cpp:
2660         (hdcFromContext): Back out unneeded modification.
2661
2662 2010-01-08  Brent Fulgham  <bfulgham@webkit.org>
2663
2664         Reviewed by Adam Roben.
2665
2666         Use correct cairo surface data type for handling print operations.
2667         https://bugs.webkit.org/show_bug.cgi?id=33022.
2668
2669         * WebFrame.cpp:
2670         (scaleFactor): Handle 'scale = 0' case.
2671         (WebFrame::spoolPage): Use scaleFactor helper function.  Account for
2672          margin size in region passed to header/footer routines.
2673         (WebFrame::spoolPages): Properly clean up Cairo surface.
2674
2675 2010-01-07  Kent Tamura  <tkent@chromium.org>
2676
2677         Reviewed by Maciej Stachowiak.
2678
2679         Remove COM code generation files.
2680         https://bugs.webkit.org/show_bug.cgi?id=32854
2681
2682         * WebKit.vcproj/DerivedSources.make: Removed.
2683         * WebKit.vcproj/build-generated-files.sh: Removed.
2684
2685 2010-01-05  Adam Roben  <aroben@apple.com>
2686
2687         Make IWebView::close and destroying a WebView's HWND optional for
2688         WebKit clients
2689
2690         WebView will now take care of these operations itself when its last
2691         reference is released, if they haven't already been done.
2692
2693         IWebView::close now also destroys the WebView's HWND. All WebKit
2694         clients were already performing these operations in succession anyway,
2695         or were attempting to by calling IWebView::close then destroying the
2696         WebView's host window (which actually resulted in the WebView's HWND
2697         leaking, and the crash in the below bug).
2698
2699         Fixes <rdar://problem/7374218> <http://webkit.org/b/32827> Crash when
2700         calling IWebView::close, then releasing the WebView, without calling
2701         DestroyWindow
2702
2703         Fixes a few WebViewDestruction tests, too.
2704
2705         Reviewed by Steve Falkenburg.
2706
2707         * WebView.cpp:
2708         (WebView::~WebView): Don't try to destroy m_viewWindow here. That
2709         should already have happened. Assert that this is the case.
2710         (WebView::close): If m_viewWindow isn't already being destroyed,
2711         destroy it now. Moved the call to revokeDragDrop() here from our
2712         WM_DESTROY handler because it needs to be done before m_viewWindow is
2713         nulled out.
2714         (WebView::WebViewWndProc): Removed call to revokeDragDrop() that
2715         close() now performs.
2716         (WebView::Release): If our last reference is being released, call
2717         close() so that clients don't have to. (It's harmless to call close()
2718         multiple times.) We do this here instead of in the destructor because
2719         close() can cause AddRef() and Release() to be called, and calling
2720         those from within the destructor leads to double-destruction.
2721         (WebView::setHostWindow): Removed an unnecessary (and now harmful)
2722         null-check.
2723         (WebView::revokeDragDrop): Changed an assertion into a run-time check,
2724         since this will now sometimes be called when m_viewWindow hasn't been
2725         created yet. Changed the IsWindow call to a null-check because we
2726         never hold onto a destroyed m_viewWindow.
2727         (WebView::windowAncestryDidChange): If we don't have a view window,
2728         stop tracking changes to our parent's active state.
2729
2730 2010-01-05  Adam Roben  <aroben@apple.com>
2731
2732         Make it safe to call IWebView::close when IWebView::initWithFrame
2733         hasn't been called
2734
2735         Part of <rdar://problem/7374218> <http://webkit.org/b/32827> Crash
2736         when IWebView::close, then releasing the WebView, without calling
2737         DestroyWindow
2738
2739         Reviewed by Steve Falkenburg.
2740
2741         * WebView.cpp:
2742         (WebView::close): Null-check m_page and m_preferences before using
2743         them. They will be null if initWithFrame was never called.
2744
2745 2010-01-05  Adam Roben  <aroben@apple.com>
2746
2747         Add assertions to catch double-destruction of WebViews earlier
2748
2749         I basically copied the m_deletionHasBegun logic from WTF::RefCounted.
2750
2751         Fixes <http://webkit.org/b/33219>.
2752
2753         Reviewed by Darin Adler.
2754
2755         * WebView.cpp:
2756         (WebView::WebView): Initialize m_deletionHasBegun
2757         (WebView::AddRef): Assert that deletion hasn't already begun.
2758         (WebView::Release): Assert that deletion hasn't already begun, then
2759         record when deletion *does* begin.
2760
2761         * WebView.h: Added m_deletionHasBegun.
2762
2763 2010-01-05  Adam Roben  <aroben@apple.com>
2764
2765         Remove dead code in WebViewWndProc
2766
2767         Fixes <http://webkit.org/b/33218>.
2768
2769         Reviewed by Darin Adler.
2770
2771         * WebView.cpp:
2772         (WebView::WebViewWndProc): Removed a redundant isBeingDestroyed check.
2773         We bail out much earlier in this function if isBeingDestroyed is true.
2774
2775 2010-01-04  Jon Honeycutt  <jhoneycutt@apple.com>
2776
2777         MSAA: Accessibility role of <select> elements is wrong
2778
2779         https://bugs.webkit.org/show_bug.cgi?id=33192
2780
2781         Reviewed by Sam Weinig.
2782
2783         * AccessibleBase.cpp:
2784         (MSAARole):
2785         Map WebCore::PopUpButtonRole to MSAA's ROLE_SYSTEM_COMBOBOX.
2786
2787 2010-01-04  Alexey Proskuryakov  <ap@apple.com>
2788
2789         Reviewed by Darin Adler.
2790
2791         https://bugs.webkit.org/show_bug.cgi?id=33181
2792         The first letter is not removed properly from inline input hole
2793
2794         * WebView.cpp: (WebView::onIMEEndComposition): If composition is ended before it was
2795         confirmed, cancel it.
2796
2797 2010-01-04  Alexey Proskuryakov  <ap@apple.com>
2798
2799         Reviewed by Darin Adler.
2800
2801         https://bugs.webkit.org/show_bug.cgi?id=33161
2802         Assertion failure in WebView when using Chinese Simplified IME
2803
2804         * WebView.cpp: (WebView::onIMERequestCharPosition): Changed the assertion into release mode
2805         check. We can't make assertions about arguments passed from outside WebKit.
2806
2807 2010-01-04  Alexey Proskuryakov  <ap@apple.com>
2808
2809         Reviewed by Darin Adler.
2810
2811         https://bugs.webkit.org/show_bug.cgi?id=33157
2812         Implement TextInput logging channel on Windows
2813
2814         * WebKitLogging.cpp: (WebKitInitializeLoggingChannelsIfNecessary):
2815         * WebKitLogging.h:
2816         Added a TextInput channel in place of unused Network one.
2817
2818         * WebView.cpp:
2819         (WebView::WebViewWndProc): Changed onIMERequest to return result directly. We never forward
2820         it to DefWindowProc, so there is no need to return an unused boolean result for "handled".
2821         (WebView::onIMEStartComposition): Added logging.
2822         (imeCompositionArgumentNames): A helper function for detailed logging in onIMEComposition.
2823         (imeNotificationName): A helper function for detailed logging in onIMENotify.
2824         (imeRequestName): A helper function for detailed logging in onIMERequest.
2825         (WebView::onIMEComposition): Added logging.
2826         (WebView::onIMEEndComposition): Ditto.
2827         (WebView::onIMEChar): Ditto.
2828         (WebView::onIMENotify): Ditto.
2829         (WebView::onIMERequestCharPosition): Changed to return result directly.
2830         (WebView::onIMERequestReconvertString): Ditto.
2831         (WebView::onIMERequest): Changed to return result directly. Added logging.
2832         (WebView::onIMESelect): Added logging.
2833         (WebView::onIMESetContext): Added logging.
2834
2835         * WebView.h: onIMERequest functions now return result directly.
2836
2837
2838 2010-01-04  Adam Roben  <aroben@apple.com>
2839
2840         Add WebKitAPITest
2841
2842         Fixes <http://webkit.org/b/33167>.
2843
2844         Reviewed by Sam Weinig.
2845
2846         * WebKit.vcproj/WebKit.sln: Added WebKitAPITest.vcproj. It builds just
2847         after DumpRenderTree.vcproj.
2848
2849 2010-01-04  Dan Bernstein  <mitz@apple.com>
2850
2851         Reviewed by Ada Chan and Mark Rowe.
2852
2853         Updated copyright string
2854
2855         * WebKit.vcproj/WebKit.rc:
2856
2857 2009-12-22  Darin Adler  <darin@apple.com>
2858
2859         Another try at fixing Windows build.
2860
2861         * WebKitPrefix.cpp: Touch it.
2862
2863 2009-12-22  Darin Adler  <darin@apple.com>
2864
2865         Reviewed by Mark Rowe.
2866
2867         Turn off datagrid by default, at least for all platforms Apple ships.
2868         The datagrid implementation isn't ready for general web use yet.
2869
2870         * WebKit.vcproj/WebKit.vcproj: Turn off datagrid by default.
2871
2872 2009-12-21  Adam Roben  <aroben@apple.com>
2873
2874         Fix non-ACCELERATED_COMPOSITING builds
2875
2876         * WebPreferences.cpp:
2877         (WebPreferences::acceleratedCompositingEnabled): Guard use of
2878         WKCACFLayerRenderer with USE(ACCELERATED_COMPOSITING).
2879
2880 2009-12-18  Adam Roben  <aroben@apple.com>
2881
2882         Add IWebPreferencesPrivate::[set]AcceleratedCompositingEnabled
2883
2884         Fixes <http://webkit.org/b/32745>.
2885
2886         Reviewed by Ada Chan.
2887
2888         * Interfaces/IWebPreferencesPrivate.idl: Added
2889         [set]AcceleratedCompositingEnabled.
2890
2891         * Interfaces/WebKit.idl: Touched to force a build.
2892
2893         * WebPreferenceKeysPrivate.h: Added
2894         WebKitAcceleratedCompositingEnabledPreferenceKey.
2895
2896         * WebPreferences.cpp:
2897         (WebPreferences::initializeDefaultSettings): Make accelerated
2898         compositing be on by default.
2899         (WebPreferences::setAcceleratedCompositingEnabled): Store the new
2900         value.
2901         (WebPreferences::acceleratedCompositingEnabled): If accelerated
2902         compositing isn't available, return false. Otherwise, return the value
2903         stored in preferences.
2904
2905         * WebPreferences.h: Added [set]AcceleratedCompositingAvailable.
2906
2907         * WebView.cpp:
2908         (WebView::notifyPreferencesChanged): Just pass the value from
2909         WebPreferences on down.
2910
2911 2009-12-17  Jon Honeycutt  <jhoneycutt@apple.com>
2912
2913         MSAA: Accessibility role of list items is wrong
2914
2915         https://bugs.webkit.org/show_bug.cgi?id=32688
2916
2917         Reviewed by Adam Roben.
2918
2919         * AccessibleBase.cpp:
2920         (MSAARole):
2921         Make the WebCore list item role map to the MSAA list item role.
2922
2923 2009-12-17  Jon Honeycutt  <jhoneycutt@apple.com>
2924
2925         MSAA: Accessibility role of list markers is wrong
2926
2927         https://bugs.webkit.org/show_bug.cgi?id=32687
2928
2929         Reviewed by Adam Roben.
2930
2931         * AccessibleBase.cpp:
2932         (MSAARole):
2933         Make the WebCore list marker role map to the MSAA static text role.
2934
2935 2009-12-18  Adam Roben  <aroben@apple.com>
2936
2937         Add #includes needed after WebCore clean-up
2938
2939         Rubber-stamped by Anders Carlsson.
2940
2941         Fixes <http://webkit.org/b/32718>.
2942
2943         * WebCoreSupport/WebContextMenuClient.cpp:
2944         * WebDataSource.cpp:
2945         * WebHTMLRepresentation.cpp:
2946         * WebView.cpp:
2947         * WebView.h:
2948
2949 2009-12-17  Benjamin Otte  <otte@gnome.org>
2950
2951         Reviewed by Adam Roben.
2952
2953         Don't include all JSC headers everywhere
2954         https://bugs.webkit.org/show_bug.cgi?id=32663
2955
2956         * WebCoreLocalizedStrings.cpp: Added now-needed #include of
2957         MathExtras.h.
2958
2959 2009-12-17  Adam Roben  <aroben@apple.com>
2960
2961         Remove WebKit.sln's Debug_All and Debug_Internal configurations
2962
2963         These configurations aren't buildable by people outside of Apple, and
2964         Apple doesn't use this solution file.
2965
2966         Fixes <http://webkit.org/b/31000> Windows WebKit Build Configuration
2967         should default to Debug instead of Debug_all.
2968
2969         Rubber-stamped by Dan Bernstein.
2970
2971         * WebKit.vcproj/WebKit.sln:
2972
2973 2009-12-16  Jon Honeycutt  <jhoneycutt@apple.com>
2974
2975         MSAA: Accessibility role of text nodes is wrong
2976
2977         https://bugs.webkit.org/show_bug.cgi?id=32631
2978         <rdar://problem/7369084>
2979
2980         Reviewed by Alice Liu.
2981
2982         * AccessibleBase.cpp:
2983         (MSAARole):
2984         If the role is WebCore::EditableTextRole, return ROLE_SYSTEM_TEXT.
2985         (AccessibleBase::role):
2986         Call roleValueForMSAA().
2987
2988 2009-12-14  Brent Fulgham  <bfulgham@webkit.org>
2989
2990         Reviewed by Adam Roben.
2991
2992         Provide working printing support for WinCairo port.
2993
2994         * WebFrame.cpp:
2995         (WebFrame::spoolPage): Conditionalize initialization of
2996           PlatformGraphicsContext handling for CG vs. Cairo.
2997         (scaleFactor): Add helper function.
2998         (hdcFromContext): Add helper function.
2999         (WebFrame::drawHeader): Correct Cairo variation.
3000         (WebFrame::drawFooter): Correct Cairo variation.
3001         (WebFrame::spoolPages): Correct Cairo variation.
3002
3003 2009-12-13  Sam Weinig  <sam@webkit.org>
3004
3005         Reviewed by Dan Bernstein.
3006
3007         Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
3008         Add client based Geolocation provider
3009
3010         Add first cut of a client based Geolocation provider. This is guarded by
3011         ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
3012         GeolocationControllerClient interface that no-one currently implements,
3013         but will in a subsequent patch.
3014
3015         * WebView.cpp:
3016         (WebView::initWithFrame):
3017
3018 2009-12-14  Adam Roben  <aroben@apple.com>
3019
3020         Change IWebFramePrivate's vtable to be compatible with Safari 4.0.4
3021
3022         Reviewed by Steve Falkenburg.
3023
3024         Fixes <http://webkit.org/b/32433> REGRESSION (r51567): Right click on
3025         a link element crashes WebKit nightly
3026
3027         * Interfaces/IWebFramePrivate.idl: Moved pauseSVGAnimation to the end
3028         of the interface so the vtable that Safari 4.0.4 sees is unchanged.
3029
3030 2009-12-14  Adam Roben  <aroben@apple.com>
3031
3032         Build fix
3033
3034         * WebKit.vcproj/WebKit.vcproj: Added $(DXSDK_DIR)\Lib\x86 to the
3035         libpath for all non-Cairo configurations (it was missing from most of
3036         them).
3037
3038 2009-12-11  Chris Marrin  <cmarrin@apple.com>
3039
3040         Reviewed by Jon Honeycutt.
3041
3042         Added icons for full-screen video on Windows
3043         https://bugs.webkit.org/show_bug.cgi?id=31318
3044
3045         * WebKit.vcproj/WebKit.rc:
3046         * WebKit.vcproj/WebKit.vcproj:
3047         * WebKit.vcproj/fsVideoAudioVolumeHigh.png: Added.
3048         * WebKit.vcproj/fsVideoAudioVolumeLow.png: Added.
3049         * WebKit.vcproj/fsVideoExitFullscreen.png: Added.
3050         * WebKit.vcproj/fsVideoPause.png: Added.
3051         * WebKit.vcproj/fsVideoPlay.png: Added.
3052         * WebKit.vcproj/resource.h:
3053
3054 2009-12-11  Chris Marrin  <cmarrin@apple.com>
3055
3056         Reviewed by Adam Roben.
3057
3058         Delay load DLLs for accelerated compositing
3059         https://bugs.webkit.org/show_bug.cgi?id=31856
3060         
3061         If the DLLs (d3d9 and QuartzCore). are not present it
3062         turns off accelerated compositing and avoids calling 
3063         any of the functions in the DLLs.
3064
3065         * WebView.cpp:
3066         (WebView::notifyPreferencesChanged):
3067
3068 2009-12-10  Jon Honeycutt  <jhoneycutt@apple.com>
3069
3070         Pass more information about a plug-in to the PluginHalterDelegate
3071
3072         Reviewed by Adam Roben.
3073
3074         * Interfaces/IWebPluginHalterDelegate.idl:
3075         Add new parameters.
3076
3077         * WebCoreSupport/WebPluginHalterClient.cpp:
3078         (WebPluginHalterClient::shouldHaltPlugin):
3079         Update for new parameters. Pass them when making the delegate call.
3080
3081         * WebCoreSupport/WebPluginHalterClient.h:
3082         Update for new parameters.
3083
3084 2009-12-09  Brent Fulgham  <bfulgham@webkit.org>
3085
3086         Revert incorrect commit-box update r51911.
3087         It mistakenly set the selectAll implementation in the
3088         deslectAll method. 
3089
3090         * WebFrame.cpp:
3091         (WebFrame::deselectAll):
3092
3093 2009-12-09  Brent Fulgham  <bfulgham@webkit.org>
3094
3095         Reviewed by Darin Adler.
3096
3097         Provide an implementation for 'selectAll'
3098         https://bugs.webkit.org/show_bug.cgi?id=32296
3099
3100         * WebFrame.cpp:
3101         (WebFrame::selectAll): Implement "SelectAll" command.
3102
3103 2009-12-09  Brent Fulgham  <bfulgham@webkit.org>
3104
3105         Reviewed by Darin Adler.
3106
3107         Provide an implementation for 'selectAll'
3108         https://bugs.webkit.org/show_bug.cgi?id=32296
3109
3110         * WebFrame.cpp:
3111         (WebFrame::selectAll): Implement "SelectAll" command.
3112
3113 2009-12-08  Chris Marrin  <cmarrin@apple.com>
3114
3115         Reviewed by Adam Roben.
3116
3117         Delay load DLLs for accelerated compositing
3118         https://bugs.webkit.org/show_bug.cgi?id=31856
3119         
3120         If the DLLs (d3d9 and QuartzCore). are not present it
3121         turns off accelerated compositing and avoids calling 
3122         any of the functions in the DLLs.
3123
3124         * WebView.cpp:
3125         * WebView.h:
3126
3127 2009-12-08  Adam Roben  <aroben@apple.com>
3128
3129         Windows build fix
3130
3131         * Interfaces/WebKit.idl: Touched this to force Interfaces.vcproj to rebuild.
3132
3133 2009-12-08  John Sullivan  <sullivan@apple.com>
3134
3135         Reviewed by Dan Bernstein
3136
3137         Split two-clause assertions into two separate assertions.
3138
3139         * DOMHTMLClasses.cpp:
3140         (DOMHTMLInputElement::isTextField):
3141         Split a two-clause assertion into two separate assertions.
3142         (DOMHTMLInputElement::rectOnScreen):
3143         Added the two assertions here that all other functions in this group shared.
3144         (DOMHTMLInputElement::selectedRange):
3145         Split a two-clause assertion into two separate assertions.
3146         (DOMHTMLInputElement::setAutofilled):
3147         Split a two-clause assertion into two separate assertions.
3148         (DOMHTMLInputElement::isAutofilled):
3149         Split a two-clause assertion into two separate assertions.
3150
3151 2009-12-08  Nikolas Zimmermann  <nzimmermann@rim.com>
3152
3153         Rubber-stamped by Maciej Stachowiak.
3154
3155         Turn on (SVG) Filters for Win.
3156         https://bugs.webkit.org/show_bug.cgi?id=32224
3157
3158         * WebKit.vcproj/WebKit.vcproj:
3159
3160 2009-12-08  John Sullivan  <sullivan@apple.com>
3161
3162         Add isAutofilled getter to match existing setter.
3163
3164         Reviewed by Ada Chan.
3165
3166         * DOMHTMLClasses.cpp:
3167         (DOMHTMLInputElement::isAutofilled):
3168         Implemented new cover function.
3169         
3170         * DOMHTMLClasses.h:
3171         Declared new cover function.
3172         
3173         * Interfaces/DOMPrivate.idl:
3174         Declared new interface.
3175
3176 2009-12-07  Gavin Barraclough  <barraclough@apple.com>
3177
3178         Reviewed by NOBODY (Windows build fix part III).
3179
3180         * WebView.cpp:
3181         (WebView::stringByEvaluatingJavaScriptFromString):
3182
3183 2009-12-07  Gavin Barraclough  <barraclough@apple.com>
3184
3185         Reviewed by NOBODY (Windows build fix part II).
3186
3187         * WebView.cpp:
3188         (WebView::stringByEvaluatingJavaScriptFromString):
3189
3190 2009-12-03  Brady Eidson  <beidson@apple.com>
3191
3192         Reviewed by Sam Weinig.
3193
3194         <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
3195
3196         * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
3197         * WebCoreSupport/WebFrameLoaderClient.cpp:
3198         (WebFrameLoaderClient::dispatchDidPushStateWithinPage):
3199         (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
3200         (WebFrameLoaderClient::dispatchDidPopStateWithinPage):
3201         * WebCoreSupport/WebFrameLoaderClient.h:
3202
3203 2009-12-03  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
3204
3205         Reviewed by Timothy Hatcher.
3206
3207         Web Inspector: Simplify the settings support in inspector controller.
3208
3209         https://bugs.webkit.org/show_bug.cgi?id=32076
3210
3211         * WebCoreSupport/WebInspectorClient.cpp:
3212         (WebInspectorClient::attachWindow):
3213         (WebInspectorClient::detachWindow):
3214         (WebInspectorClient::showWindowWithoutNotifications):
3215         * WebCoreSupport/WebInspectorClient.h:
3216
3217 2009-12-03  Ben Murdoch  <benm@google.com>
3218
3219         Reviewed by Brady Eidson.
3220
3221         [Android] The FrameLoaderClient is unaware of BackForwardList changes.
3222         https://bugs.webkit.org/show_bug.cgi?id=31914
3223
3224         * WebCoreSupport/WebFrameLoaderClient.cpp:
3225         (WebFrameLoaderClient::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
3226         (WebFrameLoaderClient::dispatchDidRemoveBackForwardItem): ditto.
3227         (WebFrameLoaderClient::dispatchDidChangeBackForwardIndex): ditto.
3228         * WebCoreSupport/WebFrameLoaderClient.h:
3229
3230 2009-12-02  Timothy Hatcher  <timothy@apple.com>
3231
3232         Move setValueForUser to the end of the DOMHTMLInputElement interface
3233         so it is fine for binary compatibility.
3234
3235         Directed by Steve Falkenburg.
3236
3237         * Interfaces/DOMHTML.idl:
3238
3239 2009-12-02  Timothy Hatcher  <timothy@apple.com>
3240
3241         Expose setValueForUser for the COM DOMHTMLInputElement.
3242
3243         <rdar://problem/6760590> Would like a way to detect a login form AutoFill from JavaScript
3244
3245         Reviewed by Dan Bernstein.
3246
3247         * DOMHTMLClasses.cpp:
3248         (DOMHTMLInputElement::setValueForUser):
3249         * Interfaces/DOMHTML.idl:
3250
3251 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
3252
3253         Not reviewed. Try to fix windows build.
3254
3255         * WebFrame.cpp:
3256
3257 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
3258
3259         Reviewed by Simon Fraser.
3260
3261         Add SVG animation test framework with 'snapshot' functionality
3262         https://bugs.webkit.org/show_bug.cgi?id=31897
3263
3264         Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
3265         forwarding the call to SVGDocumentExtensions, if SVG is enabled.
3266
3267         Implemented just like the existing pauseAnimation* methods for CSS animations.
3268
3269         * Interfaces/IWebFramePrivate.idl:
3270         * WebFrame.cpp:
3271         (WebFrame::pauseSVGAnimation):
3272         * WebFrame.h:
3273
3274 2009-11-30  Adam Roben  <aroben@apple.com>
3275
3276         Fix double-free of BSTRs passed to WebNavigationData::createInstance
3277
3278         WebFrameLoaderClient::updateGlobalHistory was converting
3279         WebCore::Strings to WebCore::BStrings, then passing them to
3280         WebNavigationData::createInstance. But the latter function takes BSTR
3281         parameters and adopts them into WebCore::BStrings. So the end result
3282         was that two WebCore::BStrings would end up freeing each underlying
3283         BSTR.
3284
3285         The fix is to only convert to WebCore::BString inside
3286         WebNavigationData.
3287
3288         Fixes <http://webkit.org/b/31998> <rdar://problem/7383452> REGRESSION
3289         (r49564): Crash in updateGlobalHistory when running Javascript iBench
3290         test
3291
3292         I couldn't find a way to reproduce this in DumpRenderTree.
3293
3294         Reviewed by Steve Falkenburg.
3295
3296         * WebCoreSupport/WebFrameLoaderClient.cpp:
3297         (WebFrameLoaderClient::updateGlobalHistory): Pass WebCore::Strings to
3298         WebNavigationData::createInstance.
3299
3300         * WebNavigationData.cpp:
3301         (WebNavigationData::WebNavigationData):
3302         (WebNavigationData::createInstance):
3303         * WebNavigationData.h:
3304         Changed to take const WebCore::String&s instead of BSTRs and to
3305         convert the Strings to BStrings at this level.
3306
3307 2009-11-30  Steve Falkenburg  <sfalken@apple.com>
3308
3309         Reviewed by Adam Roben.
3310
3311         WebKit clients that don't implement didClearWindowObjectForFrameInScriptWorld should fall back to didClearWindowObject
3312         https://bugs.webkit.org/show_bug.cgi?id=31986
3313
3314         * WebFrame.cpp:
3315         (WebFrame::dispatchDidClearWindowObjectInWorld): Fall back if E_NOTIMPL returned.
3316
3317 2009-11-24  Chris Marrin  <cmarrin@apple.com>
3318
3319         Another Windows build fix
3320         
3321         Got rid of d3d.lib and d3dx9.lib dependency. Not needed until
3322         we turn on ACCELERATED_COMPOSITING
3323
3324         * WebKit.vcproj/WebKit.vcproj:
3325
3326 2009-11-24  Chris Marrin  <cmarrin@apple.com>
3327
3328         Fixed Windows build
3329         
3330         Got rid of QuartzCore.lib dependency. Not needed until
3331         we turn on ACCELERATED_COMPOSITING
3332
3333         * WebKit.vcproj/WebKit.vcproj:
3334
3335 2009-11-24  Chris Marrin  <cmarrin@apple.com>
3336
3337         Reviewed by Simon Fraser.
3338
3339         Implement accelerated compositing
3340         https://bugs.webkit.org/show_bug.cgi?id=27314
3341         
3342         This is the WebKit side of the implementation. It plumbs the root layer
3343         from WebCore. It also makes changes to WebView which places the 
3344         backing store of the page into the root compositing layer so it is 
3345         properly composited with all the other layers. This deals with resizing, 
3346         scrolling, and incremental repaint of the page.
3347
3348         * WebCoreSupport/WebChromeClient.cpp:
3349         (WebChromeClient::attachRootGraphicsLayer):
3350         (WebChromeClient::scheduleCompositingLayerSync):
3351         * WebCoreSupport/WebChromeClient.h:
3352         (WebChromeClient::setNeedsOneShotDrawingSynchronization):
3353         * WebKit.vcproj/WebKit.vcproj:
3354         * WebView.cpp:
3355         (WebView::WebView):
3356         (WebView::close):
3357         (WebView::repaint):
3358         (WebView::scrollBackingStore):
3359         (WebView::paint):
3360         (WebViewWndProc):
3361         (WebView::setRootChildLayer):
3362         (WebView::setAcceleratedCompositing):
3363         (WebView::setRootLayerContents):
3364         * WebView.h:
3365         (WebView::isAcceleratedCompositing):
3366         (WebView::resizeLayerWindow):
3367         (WebView::layerWindowBecameVisible):
3368         (WebView::setRootLayerNeedsDisplay):
3369
3370 2009-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3371
3372         Reviewed by Kenneth Rohde Christiansen.
3373
3374         Include "config.h" to meet Coding Style Guidelines
3375         https://bugs.webkit.org/show_bug.cgi?id=31792
3376
3377         * GEN_DOMObject.cpp:
3378         * WebScriptObject.cpp:
3379
3380 2009-11-21  Jon Honeycutt  <jhoneycutt@apple.com>
3381
3382         Windows build fix. Unreviewed.
3383
3384         * Interfaces/IWebSerializedJSValue.idl:
3385
3386 2009-11-20  Jon Honeycutt  <jhoneycutt@apple.com>
3387
3388         DOMElement::tagName() is unimplemented
3389
3390         https://bugs.webkit.org/show_bug.cgi?id=31746
3391
3392         Reviewed by Darin Adler.
3393
3394         * DOMCoreClasses.cpp:
3395         (DOMElement::tagName):
3396         Create a BString from the element's tag name, and release its BSTR
3397         into result.
3398
3399 2009-11-20  Jon Honeycutt  <jhoneycutt@apple.com>
3400
3401         DOMNode::childNodes() is unimplemented
3402
3403         https://bugs.webkit.org/show_bug.cgi?id=31745
3404
3405         Reviewed by Darin Adler.
3406
3407         * DOMCoreClasses.cpp:
3408         (DOMNode::childNodes):
3409         Create a DOMNodeList from the node's child nodes.
3410
3411 2009-11-20  Dave Hyatt  <hyatt@apple.com>
3412
3413         Reviewed by Jon Honeycutt.
3414
3415         Change WebSerializedJSValue on Windows to have a zero-argument createInstance call.  Move the
3416         serialization into a separate serialize() function that can be called after the object has been
3417         created.
3418
3419         Fix a typo in serialize() caused when fixing build bustage (put a ! back in).
3420
3421         * Interfaces/IWebSerializedJSValue.idl:
3422         * WebSerializedJSValue.cpp:
3423         (WebSerializedJSValue::WebSerializedJSValue):
3424         (WebSerializedJSValue::createInstance):
3425         (WebSerializedJSValue::serialize):
3426         (WebSerializedJSValue::deserialize):
3427         * WebSerializedJSValue.h:
3428
3429 2009-11-20  Brian Weinstein  <bweinstein@apple.com>
3430
3431         Reviewed by Dave Hyatt.
3432
3433         Another go at the Windows Build Fix - this is a couple steps of it,
3434         so a little more involved than most build fixes.
3435
3436         * Interfaces/IWebSerializedJSValue.idl:
3437         * Interfaces/JavaScriptCoreAPITypes.idl:
3438         * WebKit.vcproj/Interfaces.vcproj:
3439         * WebSerializedJSValue.cpp:
3440         (WebSerializedJSValue::deserialize):
3441         * WebSerializedJSValue.h:
3442
3443 2009-11-20  Brian Weinstein  <bweinstein@apple.com>
3444
3445         Reviewed by Dave Hyatt.
3446
3447         Build fix for Windows - only declare JSContextRef once, instead
3448         of in two different idl files. Create a new file to hold the
3449         definition of JSContextRef.
3450
3451         * Interfaces/IWebFrameLoadDelegate.idl:
3452         * Interfaces/IWebSerializedJSValue.idl:
3453         * Interfaces/JavaScriptCoreAPITypes.idl: Added.
3454         * Interfaces/WebKit.idl:
3455         * WebKit.vcproj/Interfaces.vcproj:
3456
3457 2009-11-20  Dave Hyatt  <hyatt@apple.com>
3458
3459         Reviewed by Oliver Hunt and Jon Honeycutt.
3460
3461         Add support for WebSerializedJSValue to WebKit.  This object wraps the SerializedScriptValue functionality in WebCore
3462         and exposes the ability to do JS value serialization/deserialization to WebKit clients.
3463
3464         * Interfaces/IWebSerializedJSValue.idl: Added.
3465         * Interfaces/WebKit.idl:
3466         * WebKit.vcproj/WebKit.vcproj:
3467         * WebSerializedJSValue.cpp: Added.
3468         (WebSerializedJSValue::WebSerializedJSValue):
3469         (WebSerializedJSValue::~WebSerializedJSValue):
3470         (WebSerializedJSValue::createInstance):
3471         (WebSerializedJSValue::AddRef):
3472         (WebSerializedJSValue::Release):
3473         (WebSerializedJSValue::QueryInterface):
3474         (WebSerializedJSValue::deserialize):
3475         * WebSerializedJSValue.h: Added.
3476
3477 2009-11-19  Alexey Proskuryakov  <ap@apple.com>
3478
3479         Reviewed by Darin Adler.
3480
3481         https://bugs.webkit.org/show_bug.cgi?id=31690
3482         Make SocketStreamHandleCFNet work on Windows
3483
3484         * WebDownloadCFNet.cpp:
3485         (WebDownload::init):
3486         (WebDownload::initWithRequest):
3487         (WebDownload::initToResumeWithBundle):
3488         Update for loaderRunLoop() now being in its own header.
3489
3490 2009-11-19  Eric Carlson  <eric.carlson@apple.com>
3491
3492         Reviewed by Dan Bernstein.
3493
3494         <rdar://problem/7035231>
3495         Support closed caption in <video> element
3496
3497         * WebCoreLocalizedStrings.cpp:
3498         (WebCore::localizedMediaControlElementString):
3499         (WebCore::localizedMediaControlElementHelpText):
3500             Add accessibility help strings for media controller closed caption button.
3501
3502 2009-11-18  Michelangelo De Simone  <micdesim@gmail.com>
3503
3504         Reviewed by Darin Adler.
3505
3506         Fix for <https://bugs.webkit.org/show_bug.cgi?id=27959>.
3507         Support for validationMessage attribute, as per HTML5 specs.
3508
3509         * WebCoreLocalizedStrings.cpp:
3510         (WebCore::validationMessageValueMissingText):
3511         (WebCore::validationMessageTypeMismatchText):
3512         (WebCore::validationMessagePatternMismatchText):
3513         (WebCore::validationMessageTooLongText):
3514         (WebCore::validationMessageRangeUnderflowText):
3515         (WebCore::validationMessageRangeOverflowText):
3516         (WebCore::validationMessageStepMismatchText):
3517
3518 2009-11-18  Daniel Bates  <dbates@webkit.org>
3519
3520         Reviewed by Darin Adler.
3521
3522         https://bugs.webkit.org/show_bug.cgi?id=31186
3523
3524         Changes associated with renaming RenderTextControl::isUserEdited.
3525
3526         * DOMHTMLClasses.cpp:
3527         (DOMHTMLInputElement::isUserEdited): Formerly named isUserEdited.
3528         (DOMHTMLTextAreaElement::isUserEdited): Ditto.
3529
3530 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
3531
3532         Implement DOMHTMLInputElement::replaceCharactersInRange().
3533
3534         https://bugs.webkit.org/show_bug.cgi?id=31492
3535
3536         Reviewed by Dan Bernstein.
3537
3538         * DOMHTMLClasses.cpp:
3539         (DOMHTMLInputElement::replaceCharactersInRange):
3540         Get the text of the input field. Replace the given range with the
3541         replacement text, and set this new string as the input element's value.
3542         Select from index to the end of the field. This matches the
3543         implementation in the Obj-C bindings.
3544
3545 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
3546
3547         DOMHTMLOptionElement is missing some functionality.
3548
3549         https://bugs.webkit.org/show_bug.cgi?id=31491
3550
3551         Reviewed by Dan Bernstein.
3552
3553         * DOMHTMLClasses.cpp:
3554         (DOMHTMLOptionElement::text):
3555         Cast m_element to an HTMLOptionElement, and call its text() function.
3556         (DOMHTMLOptionElement::label):
3557         Ditto, for label().
3558
3559 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
3560
3561         DOMHTMLSelectElement is missing some implementation.
3562
3563         https://bugs.webkit.org/show_bug.cgi?id=31489
3564
3565         Reviewed by Dan Bernstein.
3566
3567         * DOMHTMLClasses.cpp:
3568         (DOMHTMLSelectElement::options):
3569         Cast m_element to an HTMLSelectElement. If it has no options, return
3570         E_FAIL. Otherwise, create a DOMHTMLOptionsCollection to wrap the
3571         options, and return it.
3572         (DOMHTMLSelectElement::activateItemAtIndex):
3573         If the index is out of bounds, return E_FAIL. Otherwise, select the
3574         item.
3575
3576 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
3577
3578         DOMHTMLOptionsCollection is missing some implementation.
3579
3580         https://bugs.webkit.org/show_bug.cgi?id=31488
3581
3582         Reviewed by Dan Bernstein.
3583
3584         * DOMHTMLClasses.cpp:
3585         (DOMHTMLOptionsCollection::DOMHTMLOptionsCollection):
3586         Initialize m_collection.
3587         (DOMHTMLOptionsCollection::createInstance):
3588         Create a DOMHTMLOptionsCollection. If we fail to query for
3589         IDOMHTMLOptionsCollection, delete it, and return 0. Otherwise, return
3590         the result.
3591         (DOMHTMLOptionsCollection::length):
3592         (DOMHTMLOptionsCollection::item):
3593         Create a DOMNode for the WebCore Node. If this is 0, return E_FAIL.
3594         (DOMHTMLOptionsCollection::namedItem):
3595         Correct the signature of this function.
3596
3597         * DOMHTMLClasses.h:
3598         Declare DOMHTMLOptionsCollection::createInstance(). Correct the
3599         signature of namedItem() to match IDOMHTMLOptionsCollection. Add a
3600         member to DOMHTMLOptionsCollection to hold the WebCore object.
3601
3602 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
3603
3604         DOMHTMLInputElement::rectOnScreen() returns the wrong rect
3605
3606         https://bugs.webkit.org/show_bug.cgi?id=31487
3607
3608         Reviewed by Darin Adler.
3609
3610         * DOMHTMLClasses.cpp:
3611         (DOMHTMLInputElement::rectOnScreen):
3612         Return the rect on screen, not the rect in the window.
3613
3614 2009-11-17  Brent Fulgham  <bfulgham@webkit.org>
3615
3616         Reviewed by NOBODY - Build Fix.
3617
3618         Correct build error in Debug_Cairo target after @49705.
3619
3620         * WebKit.vcproj/WebKit.vcproj: Revise JavaScriptCore.lib
3621           dependency to have proper "_debug" suffix needed by
3622           the Debug_Cairo target.
3623
3624 2009-11-17  Brian Weinstein  <bweinstein@apple.com>
3625
3626         Reviewed by NOBODY - Build Fix.
3627
3628         Touch files to try to fix the build.
3629
3630         * Interfaces/IWebInspector.idl:
3631         * Interfaces/WebKit.idl:
3632         * WebKit.vcproj/Interfaces.vcproj:
3633
3634 2009-11-17  Pavel Feldman  <pfeldman@chromium.org>
3635
3636         Reviewed by Timothy Hatcher.
3637
3638         Web Inspector: Make DRT show web inspector for tests in inspector/ folder.
3639         - Updated DRT to show/close inspector for all tests under /inspector
3640         - Introduced LayoutTestController::setTimelineProfilingEnabled and
3641           WebInspector::setTimelineProfilingEnabled beside setJavaScriptProfilingEnabled
3642         - Removed reload on each inspector test
3643         - Renamed fast/inspector to fast/inspector-support in order not to trigger
3644         inspector for those.
3645         - Reimplemented timeline tests in order to get rid of reload there.
3646         - Moved tests that don't require harness into the fast group.
3647
3648         https://bugs.webkit.org/show_bug.cgi?id=31472
3649
3650         * Interfaces/IWebInspector.idl:
3651         * WebInspecto