0dc1c72e8564065823e33421f176cb2208439fb4
[WebKit-https.git] / WebKit / win / ChangeLog
1 2010-03-30  Gavin Barraclough  <barraclough@apple.com>
2
3         Rubber stamped by Sam Weinig.
4
5         https://bugs.webkit.org/show_bug.cgi?id=36866
6         Move CString to WTF
7
8         * WebDownload.cpp:
9         * WebDownloadCFNet.cpp:
10         * WebDownloadCurl.cpp:
11         * WebHistoryItem.cpp:
12         * WebLocalizableStrings.cpp:
13         * WebMutableURLRequest.cpp:
14         * WebPreferences.cpp:
15         (WebPreferences::migrateWebKitPreferencesToCFPreferences):
16         * WebView.cpp:
17
18 2010-03-30  Adam Roben  <aroben@apple.com>
19
20         Windows build fix
21
22         * Interfaces/WebKit.idl: Touched this to force a build.
23
24 2010-03-29  Steve Falkenburg  <sfalken@apple.com>
25
26         Reviewed by Adele Peterson.
27
28         Default value of accelerated compositing should be false for Windows
29         https://bugs.webkit.org/show_bug.cgi?id=36805
30
31         * WebPreferences.cpp:
32         (WebPreferences::initializeDefaultSettings):
33
34 2010-03-29  Rafael Weinstein  <rafaelw@chromium.org>
35
36         Reviewed by Adam Barth.
37
38         Change NotificationPresenter::checkPermission() to take the source frames full KURL,
39         rather than its SecurityOrigin. This will aid chromium in having more fine grained
40         permissions to control notification spam.
41
42         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
43         (WebDesktopNotificationsDelegate::checkPermission):
44         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
45
46 2010-03-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
47
48         Reviewed by Antti Koivisto.
49
50         Change method name due to it dealing with both flattening
51         of frame sets and inner frames.
52
53         * Interfaces/IWebPreferencesPrivate.idl:
54         * WebPreferenceKeysPrivate.h:
55         * WebPreferences.cpp:
56         (WebPreferences::initializeDefaultSettings):
57         (WebPreferences::isFrameFlatteningEnabled):
58         (WebPreferences::setFrameFlatteningEnabled):
59         * WebPreferences.h:
60         * WebView.cpp:
61         (WebView::notifyPreferencesChanged):
62
63 2010-03-24  Jon Honeycutt  <jhoneycutt@apple.com>
64
65         <rdar://problem/7780798> Missing plug-ins should be represented by text
66         only, instead of lego block
67
68         https://bugs.webkit.org/show_bug.cgi?id=36583
69
70         Reviewed by Dan Bernstein.
71
72         * WebCoreSupport/WebFrameLoaderClient.cpp:
73         (WebFrameLoaderClient::createPlugin):
74         Return 0 if we failed to initialize the plug-in, which causes the new
75         "missing plug-in" text to draw.
76
77 2010-03-24  Kent Tamura  <tkent@chromium.org>
78
79         Reviewed by Darin Adler.
80
81         Make Icon::createIconForFiles() optional.
82         https://bugs.webkit.org/show_bug.cgi?id=35072
83
84         - Rename iconForFiles() to chooseIconForFiles().
85         - Call Icon::createIconForFiles() from chooseIconForFiles().
86
87         * WebCoreSupport/WebChromeClient.cpp:
88         (WebChromeClient::chooseIconForFiles):
89         * WebCoreSupport/WebChromeClient.h:
90
91 2010-03-22  Darin Adler  <darin@apple.com>
92
93         * WebCoreLocalizedStrings.cpp:
94         (WebCore::missingPluginText): Fixed localization helper text to match the same
95         string from Mac WebKit.
96
97 2010-03-22  Kevin Decker  <kdecker@apple.com>
98
99         Reviewed by John Sullivan.
100
101         https://bugs.webkit.org/show_bug.cgi?id=36328
102         
103         * WebCoreLocalizedStrings.cpp:
104         (WebCore::missingPluginText): Added.
105
106 2010-03-17  Enrica Casucci  <enrica@apple.com>
107
108         Reviewed by Darin Adler.
109
110         Missing support for showing compositing layers borders and repaint count on Windows.
111         <rdar://problem/7760736>
112         <https://bugs.webkit.org/show_bug.cgi?id=36197>
113
114         * Interfaces/IWebPreferencesPrivate.idl:
115         * WebPreferenceKeysPrivate.h:
116         * WebPreferences.cpp:
117         (WebPreferences::initializeDefaultSettings):
118         (WebPreferences::showDebugBorders):
119         (WebPreferences::setShowDebugBorders):
120         (WebPreferences::showRepaintCounter):
121         (WebPreferences::setShowRepaintCounter):
122         * WebPreferences.h:
123         * WebView.cpp:
124         (WebView::notifyPreferencesChanged):
125
126 2010-03-16  Yury Semikhatsky <yurys@chromium.org>
127
128         Reviewed by Pavel Feldman.
129
130         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.
131
132         Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
133         https://bugs.webkit.org/show_bug.cgi?id=35036
134
135         * WebCoreSupport/WebInspectorClient.cpp:
136         (WebInspectorClient::WebInspectorClient):
137         (WebInspectorClient::~WebInspectorClient):
138         (WebInspectorClient::openInspectorFrontend):
139         (WebInspectorClient::highlight):
140         (WebInspectorClient::hideHighlight):
141         (WebInspectorClient::updateHighlight):
142         (WebInspectorFrontendClient::WebInspectorFrontendClient):
143         (WebInspectorFrontendClient::~WebInspectorFrontendClient):
144         (WebInspectorFrontendClient::frontendLoaded):
145         (WebInspectorFrontendClient::localizedStringsURL):
146         (WebInspectorFrontendClient::hiddenPanels):
147         (WebInspectorFrontendClient::bringToFront):
148         (WebInspectorFrontendClient::closeWindow):
149         (WebInspectorFrontendClient::attachWindow):
150         (WebInspectorFrontendClient::detachWindow):
151         (WebInspectorFrontendClient::setAttachedWindowHeight):
152         (WebInspectorFrontendClient::inspectedURLChanged):
153         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
154         (WebInspectorFrontendClient::showWindowWithoutNotifications):
155         (WebInspectorFrontendClient::destroyInspectorView):
156         (WebInspectorFrontendClient::updateWindowTitle):
157         (WebInspectorFrontendClient::onGetMinMaxInfo):
158         (WebInspectorFrontendClient::onSize):
159         (WebInspectorFrontendClient::onClose):
160         (WebInspectorFrontendClient::onSetFocus):
161         (WebInspectorFrontendClient::onWebViewWindowPosChanging):
162         (WebInspectorWndProc):
163         (WebInspectorFrontendClient::windowReceivedMessage):
164         * WebCoreSupport/WebInspectorClient.h:
165         (WebInspectorClient::frontendClosing):
166         * WebInspector.cpp:
167         (WebInspector::attach):
168         (WebInspector::detach):
169
170 2010-03-14  Dan Bernstein  <mitz@apple.com>
171
172         Reviewed by Darin Adler.
173
174         WebKit part of removing support for legacy versions of Core Graphics
175
176         * WebKitClassFactory.cpp:
177         (WebKitClassFactory::WebKitClassFactory): Removed call to populateFontDatabase().
178         * WebKitGraphics.cpp:
179         (makeFont): Ditto.
180         * WebTextRenderer.cpp:
181         (WebTextRenderer::registerPrivateFont): Removed call to wkAddFontsAtPath().
182
183 2010-03-12  Enrica Casucci  <enrica@apple.com>
184
185         Fixed broken build on Windows.
186         Added contditional compilation for accelerated compositing.
187
188         * WebView.cpp:
189         (WebView::deleteBackingStore):
190         (WebView::addToDirtyRegion):
191         (WebView::updateBackingStore):
192
193 2010-03-12  Beth Dakin  <bdakin@apple.com>
194
195         Reviewed by Simon Fraser.
196
197         Fix for https://bugs.webkit.org/show_bug.cgi?id=34942 Fullscreen 
198         API naming is inconsistent
199         -and corresponding-
200         <rdar://problem/7729165>
201
202         This patch changes all occurrences of "fullScreen" to the more 
203         popular "fullscreen."
204
205         * FullscreenVideoController.cpp:
206         (FullscreenVideoController::onMouseDown):
207         (FullscreenVideoController::onMouseMove):
208         (FullscreenVideoController::onMouseUp):
209         * FullscreenVideoController.h:
210         (FullscreenVideoController::fullscreenToHUDCoordinates):
211
212 2010-03-12  Beth Dakin  <bdakin@apple.com>
213
214         Reviewed by Adam Roben.
215
216         Fix for https://bugs.webkit.org/show_bug.cgi?id=33739 Fullscreen 
217         video HUD stays on top when switching to another window (e.g. via 
218         Alt-Tab)
219         -and corresponding-
220         <rdar://problem/7547574>
221
222         The HUD was always on top because it had the WS_EX_TOPMOST style. 
223         So I removed the style and made m_videoWindow the owner of 
224         m_hudWindow. This keeps m_hudWindow on top only when m_videoWindow 
225         is the focused window.
226
227         * FullscreenVideoController.cpp:
228         (FullscreenVideoController::exitFullscreen): ASSERT that movie()->exitFullscreen() also destroyed the hud.
229         (FullscreenVideoController::createHUDWindow):
230
231 2010-03-12  Enrica Casucci  <enrica@apple.com>
232
233         Reviewed by Simon Fraser.
234
235         Content of 3D tests appears at the bottom right corner sometimes.
236         <rdar://problem/7556244>
237         <https://bugs.webkit.org/show_bug.cgi?id=36027>
238
239         See detailed comments in WebCore/ChangeLog.
240
241         * WebView.cpp:
242         (WebView::deleteBackingStore): Reset the dirty flag when deleting the backing store.
243         (WebView::addToDirtyRegion): Set the dirty flag when adding dirty rectangles to the
244         backing store dirty region.
245         (WebView::updateBackingStore): Reset the dirty flag after painting into the backing store.
246         (WebView::setAcceleratedCompositing): Removed unnecessary call to updateRootLayerContents.
247         (WebView::updateRootLayerContents): Changed the way we pass parameters to setScrollFrame.
248         We are passing width and height of the view content together with the offset for the scrolling.
249         It was confusing to pass it all as a rectangle, when it is not a rectangle.
250         
251 2010-03-11  Aaron Boodman  <aa@chromium.org>
252
253         Kill WebDocument::applicationID() (part 1).
254
255         Modify interface to WebCore::NotificationPresenter::checkPermission()
256         and remove implementation of WebDocument::applicationID(). Breaking
257         API changes will be in a subsequent change.
258         https://bugs.webkit.org/show_bug.cgi?id=35846
259
260         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
261         (WebDesktopNotificationsDelegate::checkPermission):
262         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
263
264 2010-03-11  Anders Carlsson  <andersca@apple.com>
265
266         Reviewed by David Hyatt.
267
268         Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
269
270         * WebCoreSupport/WebChromeClient.cpp:
271         * WebCoreSupport/WebChromeClient.h:
272
273 2010-03-10  Eric Uhrhane  <ericu@chromium.org>
274
275         Reviewed by David Levin.
276
277         The build fix for my patch on bug #35763 wasn't quite right--it removed
278         the call entirely, instead of replacing it with the new API.  This adds
279         the call to Database::setIsAvailable.
280
281         https://bugs.webkit.org/show_bug.cgi?id=35763
282
283         * WebView.cpp: Added a call to Database::setIsAvailable where change 55667 removed the old Settings API call <http://trac.webkit.org/changeset/55667>.
284         (WebView::notifyPreferencesChanged):
285
286 2010-03-10  John Sullivan  <sullivan@apple.com>
287
288         Reviewed by Tim Hatcher.
289         
290         <rdar://problem/7735387> input type other than text won't work with autofill
291         <https://bugs.webkit.org/show_bug.cgi?id=35963>
292
293         * WebFrame.cpp:
294         (WebFrame::elementDoesAutoComplete):
295         Return true for any text field that's not a password, rather than only
296         for TEXT type.
297
298 2010-03-09  Brady Eidson  <beidson@apple.com>
299
300         Reviewed by Tim Hatcher.
301
302         REGRESSION: WebInspector docking busted on Windows
303         <rdar://problem/7728433> and https://bugs.webkit.org/show_bug.cgi?id=35953
304
305         * WebCoreSupport/WebInspectorClient.cpp:
306         (WebInspectorClient::attachWindow): Use the InspectorController:: copy of the should attach settings key.
307         (WebInspectorClient::detachWindow): Ditto.
308         (WebInspectorClient::showWindowWithoutNotifications): Ditto.
309
310 2010-03-09  John Sullivan  <sullivan@apple.com>
311
312         Fixed localized string key collision. update-webkit-localized-strings now
313         runs without errors.
314
315         Reviewed by Adam Roben.
316
317         * WebCoreLocalizedStrings.cpp:
318         (WebCore::AXMenuListPopupActionVerb):
319         Used LPCTSTR_UI_STRING_KEY for the 2nd use of "press".
320
321 2010-03-08  Adam Treat  <atreat@rim.com>
322
323         Unreviewed build fix for Windows.
324
325         * WebCoreSupport/WebChromeClient.cpp:
326         (WebChromeClient::invalidateContents):
327
328 2010-03-02  Adam Treat  <atreat@rim.com>
329
330         Reviewed by Dave Hyatt.
331
332         Adapt the win port to the refactoring of repaint methods.
333
334         https://bugs.webkit.org/show_bug.cgi?id=34214
335
336         * WebCoreSupport/WebChromeClient.cpp:
337         (WebChromeClient::invalidateContents):
338         (WebChromeClient::invalidateWindow):
339         (WebChromeClient::invalidateContentsAndWindow):
340         (WebChromeClient::invalidateContentsForSlowScroll):
341         * WebCoreSupport/WebChromeClient.h:
342
343 2010-03-08  Daniel Bates  <dbates@rim.com>
344
345         Unreviewed, build fix.
346
347         Attempt to fix the Windows builds by applying the corresponding change
348         made in bug #35763 <https://bugs.webkit.org/show_bug.cgi?id=35763>.
349
350         * WebView.cpp: Removed call to settings->setDatabasesEnabled since this
351         setting no longer exists following changeset 55666 <http://trac.webkit.org/changeset/55666>.
352         (WebView::notifyPreferencesChanged):
353
354 2010-03-07  Mark Rowe  <mrowe@apple.com>
355
356         Windows build fix.
357
358         * WebKitPrefix.h: Include CoreFoundation/CoreFoundation.h from the Windows prefix header
359         since some WebCore headers rely on the types declared within being available via the prefix
360         header.
361
362 2010-03-05  Chris Marrin  <cmarrin@apple.com>
363
364         Reviewed by Simon Fraser.
365
366         Got rid of platformLayer use in WebView.
367         https://bugs.webkit.org/show_bug.cgi?id=35798
368         
369         WKCACFLayer no longer depends on GraphicsLayer, so I got rid of
370         that dependency on WebView. Now WebChromeClient casts platformLayer
371         to WKCACFLayer which will always be the case on Windows.
372
373         * WebCoreSupport/WebChromeClient.cpp:
374         (WebChromeClient::attachRootGraphicsLayer):
375         * WebView.cpp:
376         (WebView::setRootChildLayer):
377         * WebView.h:
378
379 2010-03-04  Beth Dakin  <bdakin@apple.com>
380
381         Reviewed by Anders Carlsson.
382
383         WebCore::Page::setInstanceHandle() is now just 
384         WebCore::setInstanceHandle()
385
386         * WebKitDLL.cpp:
387         (DllMain):
388
389 2010-03-03  Alice Liu  <alice.liu@apple.com>
390
391         Reviewed by Jon Honeycutt.
392
393         Add a way to get an iframe's content frame
394
395         * DOMCoreClasses.cpp:
396         (DOMElement::createInstance):
397         Added case for DOMHTMLIFrameElement
398         * DOMHTMLClasses.cpp:
399         Adding the few DOMHTMLIFrameElement functions definitions that have 
400         distinct implementations (all others just call parent implementation)
401         (DOMHTMLIFrameElement::QueryInterface):
402         (DOMHTMLIFrameElement::contentFrame):
403         * DOMHTMLClasses.h:
404         Most of these function declarations have definitions that just call the parent implementation
405         (DOMHTMLIFrameElement::DOMHTMLIFrameElement):
406         (DOMHTMLIFrameElement::AddRef):
407         (DOMHTMLIFrameElement::Release):
408         (DOMHTMLIFrameElement::throwException):
409         (DOMHTMLIFrameElement::callWebScriptMethod):
410         (DOMHTMLIFrameElement::evaluateWebScript):
411         (DOMHTMLIFrameElement::removeWebScriptKey):
412         (DOMHTMLIFrameElement::stringRepresentation):
413         (DOMHTMLIFrameElement::webScriptValueAtIndex):
414         (DOMHTMLIFrameElement::setWebScriptValueAtIndex):
415         (DOMHTMLIFrameElement::setException):
416         (DOMHTMLIFrameElement::nodeName):
417         (DOMHTMLIFrameElement::nodeValue):
418         (DOMHTMLIFrameElement::setNodeValue):
419         (DOMHTMLIFrameElement::nodeType):
420         (DOMHTMLIFrameElement::parentNode):
421         (DOMHTMLIFrameElement::childNodes):
422         (DOMHTMLIFrameElement::firstChild):
423         (DOMHTMLIFrameElement::lastChild):
424         (DOMHTMLIFrameElement::previousSibling):
425         (DOMHTMLIFrameElement::nextSibling):
426         (DOMHTMLIFrameElement::attributes):
427         (DOMHTMLIFrameElement::ownerDocument):
428         (DOMHTMLIFrameElement::insertBefore):
429         (DOMHTMLIFrameElement::replaceChild):
430         (DOMHTMLIFrameElement::removeChild):
431         (DOMHTMLIFrameElement::appendChild):
432         (DOMHTMLIFrameElement::hasChildNodes):
433         (DOMHTMLIFrameElement::cloneNode):
434         (DOMHTMLIFrameElement::normalize):
435         (DOMHTMLIFrameElement::isSupported):
436         (DOMHTMLIFrameElement::namespaceURI):
437         (DOMHTMLIFrameElement::prefix):
438         (DOMHTMLIFrameElement::setPrefix):
439         (DOMHTMLIFrameElement::localName):
440         (DOMHTMLIFrameElement::hasAttributes):
441         (DOMHTMLIFrameElement::isSameNode):
442         (DOMHTMLIFrameElement::isEqualNode):
443         (DOMHTMLIFrameElement::textContent):
444         (DOMHTMLIFrameElement::setTextContent):
445         (DOMHTMLIFrameElement::tagName):
446         (DOMHTMLIFrameElement::getAttribute):
447         (DOMHTMLIFrameElement::setAttribute):
448         (DOMHTMLIFrameElement::removeAttribute):
449         (DOMHTMLIFrameElement::getAttributeNode):
450         (DOMHTMLIFrameElement::setAttributeNode):
451         (DOMHTMLIFrameElement::removeAttributeNode):
452         (DOMHTMLIFrameElement::getElementsByTagName):
453         (DOMHTMLIFrameElement::getAttributeNS):
454         (DOMHTMLIFrameElement::setAttributeNS):
455         (DOMHTMLIFrameElement::removeAttributeNS):
456         (DOMHTMLIFrameElement::getAttributeNodeNS):
457         (DOMHTMLIFrameElement::setAttributeNodeNS):
458         (DOMHTMLIFrameElement::getElementsByTagNameNS):
459         (DOMHTMLIFrameElement::hasAttribute):
460         (DOMHTMLIFrameElement::hasAttributeNS):
461         (DOMHTMLIFrameElement::focus):
462         (DOMHTMLIFrameElement::blur):
463         (DOMHTMLIFrameElement::idName):
464         (DOMHTMLIFrameElement::setIdName):
465         (DOMHTMLIFrameElement::title):
466         (DOMHTMLIFrameElement::setTitle):
467         (DOMHTMLIFrameElement::lang):
468         (DOMHTMLIFrameElement::setLang):
469         (DOMHTMLIFrameElement::dir):
470         (DOMHTMLIFrameElement::setDir):
471         (DOMHTMLIFrameElement::className):
472         (DOMHTMLIFrameElement::setClassName):
473         (DOMHTMLIFrameElement::innerHTML):
474         (DOMHTMLIFrameElement::setInnerHTML):
475         (DOMHTMLIFrameElement::innerText):
476         (DOMHTMLIFrameElement::setInnerText):
477         * Interfaces/DOMHTML.idl:
478         Added IDOMHTMLIFrameElement interface
479
480 2010-03-03  Chris Marrin  <cmarrin@apple.com>
481
482         Reviewed by Simon Fraser.
483
484         Export acceleratedCompositing flag in IWebPreferences.
485         https://bugs.webkit.org/show_bug.cgi?id=35610
486
487         * Interfaces/IWebPreferences.idl:
488
489 2010-03-02  Beth Dakin  <bdakin@apple.com>
490
491         Reviewed by Darin Adler and Adam Roben.
492
493         Tiny WebKit portion of fix for <rdar://problem/7485289> WebKit 
494         crashes on systems that don't support CoreAnimation
495
496         setHostWindow() no longer calls createRenderer(), so now that has 
497         to be called manually.
498
499         * WebView.cpp:
500         (WebView::setAcceleratedCompositing):
501
502 2010-03-02  Adam Roben  <aroben@apple.com>
503
504         Add IWebViewPrivate::registerURLSchemeAsSecure
505
506         Fixes <http://webkit.org/b/35580> <rdar://problem/7706407> Expose
507         SecurityOrigin::registerURLSchemeAsSecure as WebKit SPI
508
509         Reviewed by Tim Hatcher.
510
511         * Interfaces/WebKit.idl: Touched to force a build.
512
513         * Interfaces/IWebViewPrivate.idl:
514         * WebView.cpp:
515         (WebView::registerURLSchemeAsSecure):
516         * WebView.h:
517         Added. Calls through to SecurityOrigin::registerURLSchemeAsSecure.
518
519 2010-03-01  Jon Honeycutt  <jhoneycutt@apple.com>
520
521         Remove Windows line endings from some files.
522
523         Rubber-stamped by Alice Liu.
524
525         * Interfaces/IWebEmbeddedView.idl:
526
527         * WebCoreSupport/EmbeddedWidget.cpp:
528         (EmbeddedWidget::create):
529         (EmbeddedWidget::~EmbeddedWidget):
530         (EmbeddedWidget::createWindow):
531         (EmbeddedWidget::invalidateRect):
532         (EmbeddedWidget::setFrameRect):
533         (EmbeddedWidget::frameRectsChanged):
534         (EmbeddedWidget::setFocus):
535         (EmbeddedWidget::show):
536         (EmbeddedWidget::hide):
537         (EmbeddedWidget::windowClipRect):
538         (EmbeddedWidget::setParent):
539         (EmbeddedWidget::attachToWindow):
540         (EmbeddedWidget::detachFromWindow):
541         (EmbeddedWidget::didReceiveResponse):
542         (EmbeddedWidget::didReceiveData):
543         (EmbeddedWidget::didFinishLoading):
544         (EmbeddedWidget::didFail):
545
546         * WebCoreSupport/EmbeddedWidget.h:
547         (EmbeddedWidget::EmbeddedWidget):
548
549 2010-03-01  Jon Honeycutt  <jhoneycutt@apple.com>
550
551         Some WebKit DOMNode API is unimplemented.
552         https://bugs.webkit.org/show_bug.cgi?id=35554
553
554         Reviewed by Alice Liu.
555
556         * DOMCoreClasses.cpp:
557         (DOMNode::nextSibling):
558         Create a DOMNode to wrap m_node's next sibling, and assign it to the
559         out param 'result'.
560         (DOMNode::insertBefore):
561         Query for the DOMNode for newChild, and return early if we fail. Query
562         refChild for DOMNode. Call insertBefore(), passing the newChild's
563         WebCore node and refChild's WebCore node (if refChild is non-null). If
564         we successfully insert the child, fill the result out param with
565         newChild, ref it, and return S_OK. Otherwise, return E_FAIL.
566         (DOMNode::removeChild):
567         Query oldChild for DOMNode. If we fail, return E_FAIL. Call
568         removeChild(), passing the node's WebCore node. If this fails, return
569         E_FAIL. Otherwise, fill the result out param with oldChild, ref it, and
570         return S_OK.
571
572 2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
573
574         Reviewed by Adam Barth.
575
576         Adapt to the new ZoomMode enum.
577         https://bugs.webkit.org/show_bug.cgi?id=35347
578
579         * WebFrame.cpp:
580         (WebFrame::setTextSizeMultiplier):
581         * WebView.cpp:
582         (WebView::setZoomMultiplier):
583         (WebView::zoomMultiplier):
584         (WebView::canMakeTextLarger):
585         (WebView::makeTextLarger):
586         (WebView::canMakeTextSmaller):
587         (WebView::makeTextSmaller):
588         (WebView::notifyPreferencesChanged):
589
590 2010-02-26  Jon Honeycutt  <jhoneycutt@apple.com>
591
592         <rdar://problem/7703368> IWebUIDelegatePrivate::embeddedViewWithArguments
593         is passed wrong arguments
594
595         Reviewed by Adam Roben.
596
597         * Interfaces/IWebUIDelegatePrivate.idl:
598         Update copyright strings. Added a new key for the plug-in source URL.
599
600         * Interfaces/WebKit.idl:
601         Update copyright strings.
602
603         * WebCoreSupport/WebFrameLoaderClient.cpp:
604         (WebFrameLoaderClient::createPlugin):
605         Pass the URL of the plug-in as the source URL. Pass the document's
606         base URI for the base URL.
607
608 2010-02-23  Brady Eidson  <beidson@apple.com>
609
610         Reviewed by Tim Hatcher and Pavel Feldman.
611
612         Regression (r55107) - WebInspector docking is busted.
613         https://bugs.webkit.org/show_bug.cgi?id=35274
614
615         * WebCoreSupport/WebInspectorClient.cpp:
616         (WebInspectorClient::showWindowWithoutNotifications): Swap the order of the "should attach?" check
617           to get the expected behavior.
618
619 2010-02-23  Steve Block  <steveblock@google.com>
620
621         Reviewed by Darin Adler.
622
623         Adds ChromeClient::cancelGeolocationPermissionRequestForFrame
624         https://bugs.webkit.org/show_bug.cgi?id=34962
625
626         This method is required so that a Geolocation object can cancel an
627         asynchronous permission request. This allows the chrome client to cancel
628         any UI it is showing for the permission request.
629
630         * WebCoreSupport/WebChromeClient.h:
631         (WebChromeClient::cancelGeolocationPermissionRequestForFrame):
632
633 2010-02-22  Steve Falkenburg  <sfalken@apple.com>
634
635         Reviewed by Darin Adler.
636
637         WebKit on Windows should pick up system setting changes without requiring explicit API calls
638         https://bugs.webkit.org/show_bug.cgi?id=35269
639
640         * WebKit.vcproj/WebKit.def: Removed WebKitSystemParameterChanged.
641         * WebKit.vcproj/WebKit_debug.def: Removed WebKitSystemParameterChanged.
642         * WebKitGraphics.cpp: Removed WebKitSystemParameterChanged.
643         * WebKitGraphics.h: Removed WebKitSystemParameterChanged.
644         * WebView.cpp:
645         (systemParameterChanged): Call through to wkSystemFontSmoothingChanged for font changes.
646         (WebView::windowReceivedMessage): Pick up WM_SETTINGCHANGE from windowReceivedMessage.
647
648 2010-02-22  Brady Eidson  <beidson@apple.com>
649
650         Reviewed by Tim Hatcher.
651
652         Disable WebView docking to views that are too small.
653         <rdar://problem/7248409> and https://bugs.webkit.org/show_bug.cgi?id=35254
654
655         * WebCoreSupport/WebInspectorClient.cpp:
656         (WebInspectorClient::showWindowWithoutNotifications): No matter the preference, don't open the inspector 
657           window attached if WebCore says it shouldn't be attached.
658
659 2010-02-17  Steve Falkenburg  <sfalken@apple.com>
660
661         Reviewed by Dan Bernstein.
662
663         WebKit on Windows needs a mechanism to listen for WM_SETTINGCHANGED messages
664         https://bugs.webkit.org/show_bug.cgi?id=35076
665
666         * WebKit.vcproj/WebKit.def: Added WebKitSystemParameterChanged.
667         * WebKit.vcproj/WebKit_debug.def: Added WebKitSystemParameterChanged.
668         * WebKitGraphics.cpp:
669         (WebKitSystemParameterChanged): Call through to wkSystemFontSmoothingChanged for font smoothing changes.
670         * WebKitGraphics.h: Added WebKitSystemParameterChanged.
671
672 2010-02-17  Dmitry Titov  <dimich@chromium.org>
673
674         Reviewed by David Levin, Darin Fisher, Simon Hausmann.
675
676         When a live iframe element is moved between pages, it still depends on the old page.
677         https://bugs.webkit.org/show_bug.cgi?id=34382
678
679         * WebCoreSupport/WebFrameLoaderClient.cpp:
680         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
681         Added empty implementation of a new virtual method.
682
683         * WebCoreSupport/WebFrameLoaderClient.h:
684
685 2010-02-17  Kent Tamura  <tkent@chromium.org>
686
687         Reviewed by Eric Seidel.
688
689         Introduces new Icon loading interface in order to support
690         asynchronous loading.
691         https://bugs.webkit.org/show_bug.cgi?id=32054
692
693         Add an empty implementation of ChromeClient::iconForFiles().
694
695         * WebCoreSupport/WebChromeClient.cpp:
696         (WebChromeClient::iconForFiles):
697         * WebCoreSupport/WebChromeClient.h:
698
699 2010-02-17  Shinichiro Hamaji  <hamaji@chromium.org>
700
701         Unreviewed. Touch WebKit.idl to fix the build.
702
703         [Win] Implement test functions for printing
704         https://bugs.webkit.org/show_bug.cgi?id=34570
705
706         * Interfaces/WebKit.idl:
707
708 2010-02-17  Shinichiro Hamaji  <hamaji@chromium.org>
709
710         Reviewed by Eric Seidel.
711
712         [Win] Implement test functions for printing
713         https://bugs.webkit.org/show_bug.cgi?id=34570
714
715         * Interfaces/IWebFramePrivate.idl:
716         * WebFrame.cpp:
717         (WebFrame::pageNumberForElementById):
718         (WebFrame::numberOfPages):
719         * WebFrame.h:
720
721 2010-02-16  Darin Adler  <darin@apple.com>
722
723         Reviewed by Sam Weinig.
724
725         Generalize delayed plug-in start for background tabs for use for other media
726         https://bugs.webkit.org/show_bug.cgi?id=34981
727
728         * WebView.cpp:
729         (WebView::setCanStartPlugins): Change to call setCanStartMedia.
730         In a later patch we can change the of the public function in the IDL file too,
731         but for now this should be enough.
732
733 2010-02-15  Adam Roben  <aroben@apple.com>
734
735         Add IWebFramePrivate::visibleContentRect
736
737         Fixes <http://webkit.org/b/34956> Add API to get a WebFrame's visible
738         content rect
739
740         Reviewed by Jon Honeycutt.
741
742         * Interfaces/IWebFramePrivate.idl: Added visibleContentRect.
743
744         * Interfaces/WebKit.idl: Touched to force a build.
745
746         * WebFrame.cpp:
747         (WebFrame::visibleContentRect):
748         * WebFrame.h:
749         Added. Calls through to FrameView::visibleContentRect.
750
751 2010-02-12  Brian Weinstein  <bweinstein@apple.com>
752
753         Reviewed by Adam Roben.
754
755         onmouseout fired when moving over tooltip on Windows
756         https://bugs.webkit.org/show_bug.cgi?id=16794
757         <rdar://5762038>.
758         
759         Add WS_EX_TRANSPARENT to out tooltip HWND so it isn't subject to hit testing, and when
760         you mouse over the tooltip, it doesn't send a mouseout to the web content.
761
762         * WebView.cpp:
763         (WebView::initializeToolTipWindow): Add WS_EX_TRANSPARENT.
764
765 2010-02-10  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
766
767         Reviewed by Kenneth Rohde Christiansen.
768
769         Support frameset flattening
770         https://bugs.webkit.org/show_bug.cgi?id=32717
771
772         Add support for enabling/disabling FrameSet Flattening on the Windows port.
773
774         * Interfaces/IWebPreferencesPrivate.idl:
775         * WebPreferenceKeysPrivate.h:
776         * WebPreferences.cpp:
777         (WebPreferences::initializeDefaultSettings):
778         (WebPreferences::isFrameSetFlatteningEnabled):
779         (WebPreferences::setFrameSetFlatteningEnabled):
780         * WebPreferences.h:
781         * WebView.cpp:
782         (WebView::notifyPreferencesChanged):
783
784 2010-02-10  Adam Roben  <aroben@apple.com>
785
786         Remove unnecessary #include of shfolder.h
787
788         shfolder.h has been deprecated in newer versions of the Windows SDK.
789
790         Fixes <http://webkit.org/b/34803> WebPreferences.cpp fails to compile
791         under VS2010 RC due to #include of shfolder.h.
792
793         Reviewed by Darin Adler.
794
795         * WebPreferences.cpp: Removed #include.
796
797 2010-02-08  Charlie Reis  <creis@chromium.org>
798
799         Reviewed by Darin Adler.
800
801         onbeforeunload not called at window close + frame or iframe focused
802         https://bugs.webkit.org/show_bug.cgi?id=27481
803         
804         Chromium and WebKit on Windows will now fire beforeunload handlers
805         even if an inner frame is focused.  
806
807         Layout tests aren't able to test this bug, since it requires closing
808         the actual browser window, not calling window.close().  Instead,
809         test with WebCore/manual-tests/onbeforeunload-focused-iframe.html.
810
811         * WebView.cpp:
812         (WebView::shouldClose):
813
814 2010-02-08  Brent Fulgham  <bfulgham@webkit.org>
815
816         Reviewed by Adam Roben.
817
818         Include header position in World Transform used for plugin positioning.
819         https://bugs.webkit.org/show_bug.cgi?id=34709
820
821         * WebFrame.cpp:
822         (WebFrame::spoolPage): Correct WinCairo plugin print positioning to
823           account for header size.  Existing code ignored this, causing
824           plugins to overlay other elements.
825
826 2010-02-04  Alice Liu  <alice.liu@apple.com>
827
828         Reviewed by Jon Honeycutt.
829
830         https://bugs.webkit.org/show_bug.cgi?id=34612 " MSAA: accSelect returns error 
831         codes for most elements that arent listbox or menupopup related"
832         <rdar://problem/7436861>
833
834         * AccessibleBase.cpp:
835         (AccessibleBase::accSelect):
836         - Stop sending E_INVALIDARG for elements that request TAKE_SELECTION that 
837           aren't beneath listboxes or menupopups.  This was too restrictive since 
838           any element can be selectable.
839         - Correct the misinterpretation of MSDN's stipulation of situations involving 
840           adding, removing, and extending selection on single-select elements
841
842 2010-02-04  Brent Fulgham  <bfulgham@webkit.org>
843
844         Reviewed by Adam Roben.
845
846         Properly handle margin settings when printing Plugins in WinCairo.
847         https://bugs.webkit.org/show_bug.cgi?id=34613
848
849         * WebFrame.cpp:
850         (WebFrame::spoolPage): Adjust the GraphicsContext passed to the
851           paintContents method so that the World Transform is properly
852           positioned to account for margin settings at the time that
853           PluginViewWin.cpp processes the drawing operations.
854
855 2010-02-04  Brent Fulgham  <bfulgham@webkit.org>
856
857         Reviewed by Adam Roben.
858
859         Properly handle margin settings in WinCairo.
860         https://bugs.webkit.org/show_bug.cgi?id=34545
861
862         * WebFrame.cpp:
863         (scaleFactor): Require the margin information as an input
864           parameter, and use them when computing the scaling factor.
865         (WebFrame::drawHeader): Pass margin size to scaleFactor.
866         (WebFrame::drawFooter): Pass margin size to scaleFactor.
867         (WebFrame::spoolPage):
868           1. Pass margin size to scaleFactor.
869           2. Recognize that the return value of printerMarginRect is
870              already in device units, and therefore scale it so that
871              the Cairo drawing is correct.
872           3. Remove scaling call for margins in GDI code, as it is
873              already in scaled units.
874
875 2010-02-03  Brian Weinstein  <bweinstein@apple.com>
876
877         Reviewed by Steve Falkenburg.
878
879         Scroll does not work with IBM Thinkpad.
880         <https://bugs.webkit.org/show_bug.cgi?id=14227>
881         <rdar://7142545>
882         
883         When initializing the WebView, add two scrollbar Windows inside of
884         our WebView, to allow it to receive WM_VSCROLL and WM_HSCROLL events.
885         (similar to what Firefox did in: <https://bugzilla.mozilla.org/show_bug.cgi?id=507222>.
886         
887         Only do this if the user has installed some kind of Trackpoint driver, using an algorithm
888         like <https://bugzilla.mozilla.org/show_bug.cgi?id=514927>.
889         
890         Also, add code to handle WM_HSCROLL and WM_VSCROLL messages to scroll
891         the WebView.
892
893         * WebView.cpp:
894         (WebView::verticalScroll): Handle the WM_VSCROLL messages, and scroll up and down
895             by lines or pages.
896         (WebView::horizontalScroll): Handle the WM_HSCROLL messages, and scroll left or right
897             by lines or pages.
898         (WebView::WebViewWndProc): Add cases for WM_VSCROLL and WM_HSCROLL.
899         (WebView::initWithFrame): Call shouldInitializeTrackPointHack, and if we should, create
900             vertical and horizontal scrollbars to receive WM_VSCROLL and WM_HSCROLL messages.
901         (WebView::shouldInitializeTrackPointHack): Check if there is a registry key for
902             the some kind of IBM Trackpoint driver.
903         * WebView.h:
904
905 2010-02-02  Steve Falkenburg  <sfalken@apple.com>
906
907         Reviewed by Darin Adler.
908
909         Copyright year updating for Windows version resources should be automatic
910         https://bugs.webkit.org/show_bug.cgi?id=34503
911
912         * WebKit.vcproj/WebKit.rc:
913
914 2010-02-02  Adam Roben  <aroben@apple.com>
915
916         Stop copying WebCore's IDL files from SRCROOT to OBJROOT
917
918         WebKit doesn't use these anymore (as of r52921).
919
920         Part of Bug 34496: Clean up WebCore's IDL/script copying
921         <https://bugs.webkit.org/show_bug.cgi?id=34496>
922
923         Reviewed by Steve Falkenburg.
924
925         * WebKit.vcproj/WebKit.make:
926
927 2010-01-29  Gavin Barraclough  <barraclough@apple.com>
928
929         Reviewed by Sam Weinig + Oliver Hunt.
930
931         Bug 34346 - With JSC bindings, make processingUserGesture work with events in Isolated Worlds
932
933         Pass processeing user gensture flag to media play/pause methods.
934
935         * FullscreenVideoController.cpp:
936         (FullscreenVideoController::play):
937         (FullscreenVideoController::pause):
938
939 2010-01-29  Brian Weinstein  <bweinstein@apple.com>
940
941         Reviewed by Adam Roben.
942
943         Drag and Drop: Windows uses "stop" sign as cursor when dragging
944         https://bugs.webkit.org/show_bug.cgi?id=34305
945         <rdar://problem/7589672>
946         
947         Add a preference in WebKit (that defaults to false), for whether or not
948         we should show the custom cursors during drag and drop. However, this is
949         currently only used on Windows, and only used to hide the "drop not allowed"
950         icon inside the WebView is the preference is set to true.
951
952         This will be off by default, so no change in behavior.
953
954         * Interfaces/IWebPreferencesPrivate.idl: Added new functions.
955         * Interfaces/WebKit.idl: Touched to force Interfaces build.
956         * WebDropSource.cpp:
957         (WebDropSource::GiveFeedback): Implementation of conditional showing cursor
958             logic.
959         * WebPreferenceKeysPrivate.h: Added new preference key.
960         * WebPreferences.cpp: Added new functions.
961         (WebPreferences::setCustomDragCursorsEnabled):
962         (WebPreferences::customDragCursorsEnabled):
963         * WebPreferences.h: Added new functions.
964
965 2010-01-28  Jon Honeycutt  <jhoneycutt@apple.com>
966
967         MSAA: Crash when posting a notification for a detached object
968
969         https://bugs.webkit.org/show_bug.cgi?id=34309
970         <rdar://problem/7409759>
971
972         Reviewed by Darin Adler.
973
974         * AccessibleBase.cpp:
975         (AccessibleBase::QueryService):
976         If an unrecognized service ID is passed, return early. Otherwise, return
977         the result of QueryInterface.
978         (AccessibleBase::QueryInterface):
979         Add static_casts. Check for new UUIDs.
980         (AccessibleBase::isSameObject):
981         Query the object for AccessibleBase. Return whether the pointers or the
982         wrapped objects match.
983
984         * AccessibleBase.h:
985         Give the class a UUID so we can query for it in isSameObject(). Inherit
986         from IAccessibleComparable; inherit from IServiceProvider so clients can
987         use QueryService to query for a custom interface.
988
989         * Interfaces/AccessibleComparable.idl: Added. Declares a function that
990         can be called to compare to accessible objects.
991
992         * Interfaces/WebKit.idl:
993         Include the new IDL.
994
995         * WebKit.vcproj/Interfaces.vcproj:
996         Add the new IDL to the project.
997
998 2010-01-27  Aaron Boodman  <aa@chromium.org>
999
1000         Expand NotificationCenter::checkPermission() interface.
1001         It now passes the full URL instead of just the origin.
1002
1003         https://bugs.webkit.org/show_bug.cgi?id=34238
1004
1005         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
1006         (WebDesktopNotificationsDelegate::checkPermission):
1007         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
1008
1009 2010-01-27  Adam Roben  <aroben@apple.com>
1010
1011         Make it possible to instantiate WebSerializedJSValue using
1012         WebKitCreateInstance
1013
1014         Reviewed by Dave Hyatt.
1015
1016         * ForEachCoClass.h:
1017         * WebKitClassFactory.cpp:
1018         Added WebSerializedJSValue.
1019
1020 2010-01-26  Steve Falkenburg  <sfalken@apple.com>
1021
1022         Reviewed by Oliver Hunt.
1023
1024         Windows build references non-existent include paths
1025         https://bugs.webkit.org/show_bug.cgi?id=34175
1026
1027         * WebKit.vcproj/WebKit.vcproj:
1028
1029 2010-01-25  Steve Falkenburg  <sfalken@apple.com>
1030
1031         Reviewed by Simon Fraser.
1032
1033         A WebGeolocationControllerClient is leaked for every WebView
1034         https://bugs.webkit.org/show_bug.cgi?id=34145
1035
1036         * WebCoreSupport/WebGeolocationControllerClient.cpp:
1037         (WebGeolocationControllerClient::geolocationDestroyed): Added.
1038         * WebCoreSupport/WebGeolocationControllerClient.h:
1039
1040 2010-01-23  Dan Bernstein  <mitz@apple.com>
1041
1042         Reviewed by Maciej Stachowiak.
1043
1044         <rdar://problem/7569820> svg/custom/text-zoom.xhtml fails on Windows
1045         https://bugs.webkit.org/show_bug.cgi?id=34006
1046
1047         * WebPreferences.cpp:
1048         (WebPreferences::initializeDefaultSettings): Added WebKitZoomsTextOnlyPreferenceKey
1049         with a default value of true.
1050
1051 2010-01-20  Steve Falkenburg  <sfalken@apple.com>
1052
1053         Reviewed by Sam Weinig.
1054
1055         Add missing implementation for WebGeolocationPosition::initWithTimestamp.
1056
1057         * WebGeolocationPosition.cpp:
1058         (WebGeolocationPosition::initWithTimestamp): Implemented.
1059
1060 2010-01-20  Jon Honeycutt  <jhoneycutt@apple.com>
1061
1062         MSAA: accSelect() is not implemented
1063
1064         https://bugs.webkit.org/show_bug.cgi?id=33918
1065         <rdar://problem/7436861>
1066
1067         Reviewed by Darin Adler.
1068
1069         * AccessibleBase.cpp:
1070         (AccessibleBase::accSelect):
1071         If there is an invalid combination of state flags, return early. If the
1072         caller passed the "take focus" flag, focus the object. If the "take
1073         selection" flag was passed, check whether the parent object is an
1074         AccessibilityListBox; if so, call the object's setSelectedChildren()
1075         function. If the parent is an AccessibilityMenuListPopup, call the
1076         child object's setSelected() function. Otherwise, if the parent is some
1077         other, unsupported object, return early.
1078         If the selection flags include "add", "remove", or "extend" selection,
1079         and the parent object is not multi-selectable, return early. Otherwise,
1080         set or unset the child's selected flag based on the passed flag.
1081
1082 2010-01-20  Steve Falkenburg  <sfalken@apple.com>
1083
1084         Reviewed by Darin Adler and Adam Roben.
1085
1086         Feature defines are difficult to maintain on Windows builds
1087         https://bugs.webkit.org/show_bug.cgi?id=33883
1088
1089         FeatureDefines.vsprops are now maintained in a way similar to
1090         Configurations/FeatureDefines.xcconfig, with the added advantage
1091         of having a single FeatureDefines file across all projects.
1092
1093         * WebKit.vcproj/Interfaces.vcproj: Add FeatureDefines.vsprops inherited property sheet.
1094         * WebKit.vcproj/WebKit.sln: Set up Cairo configuration for WebCoreGenerated.
1095         * WebKit.vcproj/WebKit.vcproj: Remove ENABLE_ preprocessor definitions.
1096         Add FeatureDefines.vsprops inherited property sheet.
1097         * WebKit.vcproj/WebKitGUID.vcproj: Add FeatureDefines.vsprops inherited property sheet.
1098
1099 2010-01-17  Jon Honeycutt  <jhoneycutt@apple.com>
1100
1101         MSAA: The child <option> elements of a non-multiple <select> are not
1102         exposed
1103
1104         https://bugs.webkit.org/show_bug.cgi?id=33773
1105         <rdar://problem/7550556>
1106
1107         Reviewed by Alice Liu.
1108
1109         * AccessibleBase.cpp:
1110         (AccessibleBase::get_accState):
1111         If the object is invisible, set the invisible state flag. If the object
1112         is collapsed, set the collapsed state. If the object is a combo box,
1113         set the has popup flag, and if it's not collapsed, set the expanded
1114         flag.
1115         (MSAARole):
1116         Add new WebCore to MSAA role mappings.
1117
1118         * WebCoreLocalizedStrings.cpp:
1119         (WebCore::AXMenuListActionVerb):
1120         Return the action verb that Firefox uses for <select> elements with
1121         popups.
1122         (WebCore::AXMenuListPopupActionVerb):
1123         Return the verb that Firefox uses for a popup list.
1124
1125 2010-01-19  John Sullivan  <sullivan@apple.com>
1126
1127         https://bugs.webkit.org/show_bug.cgi?id=33854
1128         Would like a variant of WebHTMLRepresentation's searchForLabelsBeforeElement that returns 
1129         more info about where the result was found
1130
1131         Reviewed by Darin Adler
1132
1133         * Interfaces/IWebHTMLRepresentation.idl:
1134         Created variant of searchForLabels that includes additional in/out parameters resultDistance and resultIsInCellAbove.
1135         
1136         * Interfaces/WebKit.idl:
1137         Touched in order to get other idl change to propagate correctly.
1138
1139         * WebHTMLRepresentation.cpp:
1140         (WebHTMLRepresentation::deprecatedSearchForLabels):
1141         Renamed since iDL doesn't support two functions with the same name but different signatures.
1142         (WebHTMLRepresentation::searchForLabels):
1143         Implemented variant of searchForLabels that includes additional in/out parameters resultDistance and resultIsInCellAbove.
1144
1145         * WebHTMLRepresentation.h:
1146         Declared variant of searchForLabels that includes additional in/out parameters resultDistance and resultIsInCellAbove.
1147
1148 2010-01-19  Adam Roben  <aroben@apple.com>
1149
1150         Windows build fix
1151
1152         * WebScriptWorld.cpp: Added missing #include.
1153
1154 2010-01-19  Dave Hyatt  <hyatt@apple.com>
1155
1156         Build bustage fix. Make sure the newly added scriptWorldForGlobalContext function is [local] in the IDL.
1157
1158         * Interfaces/IWebScriptWorld.idl:
1159
1160 2010-01-19  Dave Hyatt  <hyatt@apple.com>
1161
1162         Reviewed by Adam Roben.
1163
1164         Add an API to obtain a WebScriptWorld from a JSGlobalContextRef.
1165
1166         * Interfaces/IWebScriptWorld.idl:
1167         * WebScriptWorld.cpp:
1168         (WebScriptWorld::scriptWorldForGlobalContext):
1169         * WebScriptWorld.h:
1170
1171 2010-01-18  Adam Roben  <aroben@apple.com>
1172
1173         Add IWebViewPrivate::setDomainRelaxationForbiddenForURLScheme
1174
1175         WebKit/win part of fixing <http://webkit.org/b/33806>
1176         <rdar://problem/7552837> Would like API to disallow setting of
1177         document.domain for pages with certain URL schemes
1178
1179         Reviewed by Sam Weinig.
1180
1181         * Interfaces/IWebViewPrivate.idl: Added
1182         setDomainRelaxationForbiddenForURLScheme.
1183
1184         * Interfaces/WebKit.idl: Touched to force a build.
1185
1186         * WebView.cpp:
1187         (WebView::setDomainRelaxationForbiddenForURLScheme):
1188         * WebView.h:
1189         Added. Calls through to SecurityOrigin.
1190
1191 2010-01-18  Chris Marrin  <cmarrin@apple.com>
1192
1193         Reviewed by Darin Adler.
1194
1195         Use new setScrollFrame API
1196         https://bugs.webkit.org/show_bug.cgi?id=32279
1197
1198         * WebView.cpp:
1199         (WebView::updateRootLayerContents):
1200
1201 2010-01-15  Jon Honeycutt  <jhoneycutt@apple.com>
1202
1203         MSAA: Screen rect for <option> elements is always the zero rect
1204
1205         https://bugs.webkit.org/show_bug.cgi?id=33758
1206
1207         Reviewed by Oliver Hunt.
1208
1209         * AccessibleBase.cpp:
1210         (AccessibleBase::accLocation):
1211         Use elementRect() rather than boundingBoxRect(), which
1212         AccessibilityListBoxOption overrides.
1213
1214 2010-01-15  Jon Honeycutt  <jhoneycutt@apple.com>
1215
1216         get_accParent should try to retrieve parent AccessibilityObject, before
1217         calling upon window
1218
1219         https://bugs.webkit.org/show_bug.cgi?id=22893
1220
1221         Reviewed by Darin Adler.
1222
1223         * AccessibleBase.cpp:
1224         (AccessibleBase::get_accParent):
1225         If the object has a parent object, return it. If not, return the
1226         accessible for the WebView window.
1227
1228 2010-01-12  Jon Honeycutt  <jhoneycutt@apple.com>
1229
1230         MSAA: selected, selectable, extended selectable, and multiple
1231         selectable states are not reported
1232
1233         https://bugs.webkit.org/show_bug.cgi?id=33574
1234         <rdar://problem/7536826>
1235
1236         Reviewed by Darin Adler.
1237
1238         * AccessibleBase.cpp:
1239         (AccessibleBase::get_accState):
1240         Remove the call to isMultiSelect(). Call the correctly-named
1241         isMultiSelectable(), and if it returns true, set both the "extended
1242         selectable" and "multiple selectable" states. Check whether the object
1243         is selected or selectable, and report those states.
1244
1245 2010-01-13  Steve Falkenburg  <sfalken@apple.com>
1246
1247         Reviewed by Adam Roben.
1248
1249         Add additional Geolocation interfaces in WebKit for Windows.
1250
1251         * Interfaces/IWebGeolocationPolicyListener.idl: Added.
1252         * Interfaces/IWebUIDelegatePrivate.idl: Add decidePolicyForGeolocationRequest to IWebUIDelegatePrivate2.
1253         Append since this version hasn't shipped.
1254         * Interfaces/WebKit.idl: Add include of IWebGeolocationPolicyListener.idl.
1255         * WebCoreSupport/WebChromeClient.cpp:
1256         (WebChromeClient::requestGeolocationPermissionForFrame): Call into decidePolicyForGeolocationRequest.
1257         * WebCoreSupport/WebGeolocationControllerClient.cpp:
1258         (WebGeolocationControllerClient::WebGeolocationControllerClient): Moved *.
1259         * WebGeolocationPolicyListener.cpp: Added.
1260         * WebGeolocationPolicyListener.h: Added.
1261         * WebKit.vcproj/Interfaces.vcproj: Added IWebGeolocationPolicyListener.
1262         * WebKit.vcproj/WebKit.vcproj: Added WebGeolocationPolicyListener, WebGeolocationPolicyListener.
1263         * WebView.cpp:
1264         (WebView::setGeolocationProvider): Removed extraneous STDMETHODCALLTYPE.
1265         (WebView::geolocationProvider): Removed extraneous STDMETHODCALLTYPE.
1266         (WebView::geolocationDidChangePosition): Removed extraneous STDMETHODCALLTYPE.
1267         (WebView::geolocationDidFailWithError): Removed extraneous STDMETHODCALLTYPE.
1268
1269 2010-01-12  Steve Falkenburg  <sfalken@apple.com>
1270
1271         Reviewed by Adam Roben, Sam Weinig.
1272
1273         Add Geolocation interfaces in WebKit for Windows.
1274
1275         * ForEachCoClass.h: Added WebGeolocationPosition.
1276         * Interfaces/IWebError.idl:
1277         * Interfaces/IWebGeolocationPosition.idl: Added.
1278         * Interfaces/IWebGeolocationProvider.idl: Added.
1279         * Interfaces/IWebViewPrivate.idl:
1280         * Interfaces/WebKit.idl:
1281         * WebCoreSupport/WebGeolocationControllerClient.cpp: Added.
1282         (WebGeolocationControllerClient::WebGeolocationControllerClient):
1283         (WebGeolocationControllerClient::startUpdating):
1284         (WebGeolocationControllerClient::stopUpdating):
1285         (WebGeolocationControllerClient::lastPosition):
1286         * WebCoreSupport/WebGeolocationControllerClient.h: Added.
1287         * WebGeolocationPosition.cpp: Added IWebGeolocationPosition implementation.
1288         * WebGeolocationPosition.h: Added IWebGeolocationPosition implementation.
1289         * WebKit.vcproj/Interfaces.vcproj: Added IWebGeolocationPosition.idl, IWebGeolocationProvider.idl,
1290         relocated JavaScriptCoreAPITypes.idl, WebScrollbarTypes.idl
1291         * WebKit.vcproj/WebKit.vcproj: Added WebGeolocationPosition.h/.cpp, WebGeolocationControllerClient.h/cpp,        
1292         * WebKitClassFactory.cpp: Add WebGeolocationPosition include.
1293         * WebView.cpp:
1294         (WebView::initWithFrame): Create WebGeolocationControllerClient if Geolocation is enabled.
1295         (WebView::setGeolocationProvider): Added Geolocation-specific method.
1296         (WebView::geolocationProvider): Added Geolocation-specific method.
1297         (WebView::geolocationDidChangePosition): Added Geolocation-specific method.
1298         (WebView::geolocationDidFailWithError): Added Geolocation-specific method.
1299         * WebView.h: Added setGeolocationProvider, geolocationProvider, geolocationDidChangePosition, geolocationDidFailWithError.
1300
1301 2010-01-11  Jon Honeycutt  <jhoneycutt@apple.com>
1302
1303         MSAA: Accessibility role of <select multiple> elements is wrong
1304
1305         https://bugs.webkit.org/show_bug.cgi?id=33522
1306
1307         Reviewed by Darin Adler.
1308
1309         * AccessibleBase.cpp:
1310         (MSAARole):
1311         Map the WebCore::ListBox and WebCore::ListBoxOption roles to the MSAA
1312         "list" and "list item" roles.
1313
1314 2010-01-08  Brent Fulgham  <bfulgham@webkit.org>
1315
1316         Build fix, no review.
1317
1318         Protect video control logic inside ENABLE(VIDEO).
1319
1320         * WebView.cpp:
1321         (WebView::enterFullscreenForNode):
1322         (WebView::exitFullscreen):
1323         * WebView.h:
1324
1325 2010-01-08  Chris Marrin  <cmarrin@apple.com>
1326
1327         Reviewed by Adam Roben.
1328
1329         Implement full-screen video for Windows
1330         https://bugs.webkit.org/show_bug.cgi?id=31318
1331         
1332         This adds a full-screen controller, FullscreenVideoController, 
1333         which manages going in and out of full-screen. The actual 
1334         full-screen window is created and managed by logic added 
1335         to QTMovieWin. FullscreenVideoController also creates and
1336         manages a HUD. The HUD renders and manages events to
1337         control the playing video. Movie controller events go to 
1338         FullscreenVideoController which then sends them to HTMLMediaElement, 
1339         which is passed to the controller by WebView, which gets the call 
1340         to go into full-screen mode from HTMLMediaElement via 
1341         ChromeClient.
1342         
1343         I've also updated the icons so the related sets (Play/Pause and
1344         volume high/volume low/exit fullscreen) are the same size. This 
1345         allows me to position them using common code.
1346
1347         * WebCoreSupport/WebChromeClient.cpp:
1348         (WebChromeClient::supportsFullscreenForNode):
1349         (WebChromeClient::enterFullscreenForNode):
1350         (WebChromeClient::exitFullscreenForNode):
1351         * WebCoreSupport/WebChromeClient.h:
1352         * WebKit.vcproj/WebKit.vcproj:
1353         * WebKit.vcproj/fsVideoAudioVolumeHigh.png:
1354         * WebKit.vcproj/fsVideoAudioVolumeLow.png:
1355         * WebKit.vcproj/fsVideoExitFullscreen.png:
1356         * WebKit.vcproj/fsVideoPause.png:
1357         * WebKit.vcproj/fsVideoPlay.png:
1358         * WebKitDLL.cpp:
1359         (loadResourceIntoBuffer):
1360         * FullscreenVideoController.cpp: Added.
1361         * FullscreenVideoController.h: Added.
1362         * WebView.cpp:
1363         (WebView::enterFullscreenForNode):
1364         (WebView::exitFullscreen):
1365         * WebView.h:
1366
1367 2010-01-08  Brent Fulgham  <bfulgham@webkit.org>
1368
1369         Unreviewed correction. 
1370
1371         Accidentally left unnecessary modification to hdcFromContext
1372         in when landing r52995.
1373
1374         * WebFrame.cpp:
1375         (hdcFromContext): Back out unneeded modification.
1376
1377 2010-01-08  Brent Fulgham  <bfulgham@webkit.org>
1378
1379         Reviewed by Adam Roben.
1380
1381         Use correct cairo surface data type for handling print operations.
1382         https://bugs.webkit.org/show_bug.cgi?id=33022.
1383
1384         * WebFrame.cpp:
1385         (scaleFactor): Handle 'scale = 0' case.
1386         (WebFrame::spoolPage): Use scaleFactor helper function.  Account for
1387          margin size in region passed to header/footer routines.
1388         (WebFrame::spoolPages): Properly clean up Cairo surface.
1389
1390 2010-01-07  Kent Tamura  <tkent@chromium.org>
1391
1392         Reviewed by Maciej Stachowiak.
1393
1394         Remove COM code generation files.
1395         https://bugs.webkit.org/show_bug.cgi?id=32854
1396
1397         * WebKit.vcproj/DerivedSources.make: Removed.
1398         * WebKit.vcproj/build-generated-files.sh: Removed.
1399
1400 2010-01-05  Adam Roben  <aroben@apple.com>
1401
1402         Make IWebView::close and destroying a WebView's HWND optional for
1403         WebKit clients
1404
1405         WebView will now take care of these operations itself when its last
1406         reference is released, if they haven't already been done.
1407
1408         IWebView::close now also destroys the WebView's HWND. All WebKit
1409         clients were already performing these operations in succession anyway,
1410         or were attempting to by calling IWebView::close then destroying the
1411         WebView's host window (which actually resulted in the WebView's HWND
1412         leaking, and the crash in the below bug).
1413
1414         Fixes <rdar://problem/7374218> <http://webkit.org/b/32827> Crash when
1415         calling IWebView::close, then releasing the WebView, without calling
1416         DestroyWindow
1417
1418         Fixes a few WebViewDestruction tests, too.
1419
1420         Reviewed by Steve Falkenburg.
1421
1422         * WebView.cpp:
1423         (WebView::~WebView): Don't try to destroy m_viewWindow here. That
1424         should already have happened. Assert that this is the case.
1425         (WebView::close): If m_viewWindow isn't already being destroyed,
1426         destroy it now. Moved the call to revokeDragDrop() here from our
1427         WM_DESTROY handler because it needs to be done before m_viewWindow is
1428         nulled out.
1429         (WebView::WebViewWndProc): Removed call to revokeDragDrop() that
1430         close() now performs.
1431         (WebView::Release): If our last reference is being released, call
1432         close() so that clients don't have to. (It's harmless to call close()
1433         multiple times.) We do this here instead of in the destructor because
1434         close() can cause AddRef() and Release() to be called, and calling
1435         those from within the destructor leads to double-destruction.
1436         (WebView::setHostWindow): Removed an unnecessary (and now harmful)
1437         null-check.
1438         (WebView::revokeDragDrop): Changed an assertion into a run-time check,
1439         since this will now sometimes be called when m_viewWindow hasn't been
1440         created yet. Changed the IsWindow call to a null-check because we
1441         never hold onto a destroyed m_viewWindow.
1442         (WebView::windowAncestryDidChange): If we don't have a view window,
1443         stop tracking changes to our parent's active state.
1444
1445 2010-01-05  Adam Roben  <aroben@apple.com>
1446
1447         Make it safe to call IWebView::close when IWebView::initWithFrame
1448         hasn't been called
1449
1450         Part of <rdar://problem/7374218> <http://webkit.org/b/32827> Crash
1451         when IWebView::close, then releasing the WebView, without calling
1452         DestroyWindow
1453
1454         Reviewed by Steve Falkenburg.
1455
1456         * WebView.cpp:
1457         (WebView::close): Null-check m_page and m_preferences before using
1458         them. They will be null if initWithFrame was never called.
1459
1460 2010-01-05  Adam Roben  <aroben@apple.com>
1461
1462         Add assertions to catch double-destruction of WebViews earlier
1463
1464         I basically copied the m_deletionHasBegun logic from WTF::RefCounted.
1465
1466         Fixes <http://webkit.org/b/33219>.
1467
1468         Reviewed by Darin Adler.
1469
1470         * WebView.cpp:
1471         (WebView::WebView): Initialize m_deletionHasBegun
1472         (WebView::AddRef): Assert that deletion hasn't already begun.
1473         (WebView::Release): Assert that deletion hasn't already begun, then
1474         record when deletion *does* begin.
1475
1476         * WebView.h: Added m_deletionHasBegun.
1477
1478 2010-01-05  Adam Roben  <aroben@apple.com>
1479
1480         Remove dead code in WebViewWndProc
1481
1482         Fixes <http://webkit.org/b/33218>.
1483
1484         Reviewed by Darin Adler.
1485
1486         * WebView.cpp:
1487         (WebView::WebViewWndProc): Removed a redundant isBeingDestroyed check.
1488         We bail out much earlier in this function if isBeingDestroyed is true.
1489
1490 2010-01-04  Jon Honeycutt  <jhoneycutt@apple.com>
1491
1492         MSAA: Accessibility role of <select> elements is wrong
1493
1494         https://bugs.webkit.org/show_bug.cgi?id=33192
1495
1496         Reviewed by Sam Weinig.
1497
1498         * AccessibleBase.cpp:
1499         (MSAARole):
1500         Map WebCore::PopUpButtonRole to MSAA's ROLE_SYSTEM_COMBOBOX.
1501
1502 2010-01-04  Alexey Proskuryakov  <ap@apple.com>
1503
1504         Reviewed by Darin Adler.
1505
1506         https://bugs.webkit.org/show_bug.cgi?id=33181
1507         The first letter is not removed properly from inline input hole
1508
1509         * WebView.cpp: (WebView::onIMEEndComposition): If composition is ended before it was
1510         confirmed, cancel it.
1511
1512 2010-01-04  Alexey Proskuryakov  <ap@apple.com>
1513
1514         Reviewed by Darin Adler.
1515
1516         https://bugs.webkit.org/show_bug.cgi?id=33161
1517         Assertion failure in WebView when using Chinese Simplified IME
1518
1519         * WebView.cpp: (WebView::onIMERequestCharPosition): Changed the assertion into release mode
1520         check. We can't make assertions about arguments passed from outside WebKit.
1521
1522 2010-01-04  Alexey Proskuryakov  <ap@apple.com>
1523
1524         Reviewed by Darin Adler.
1525
1526         https://bugs.webkit.org/show_bug.cgi?id=33157
1527         Implement TextInput logging channel on Windows
1528
1529         * WebKitLogging.cpp: (WebKitInitializeLoggingChannelsIfNecessary):
1530         * WebKitLogging.h:
1531         Added a TextInput channel in place of unused Network one.
1532
1533         * WebView.cpp:
1534         (WebView::WebViewWndProc): Changed onIMERequest to return result directly. We never forward
1535         it to DefWindowProc, so there is no need to return an unused boolean result for "handled".
1536         (WebView::onIMEStartComposition): Added logging.
1537         (imeCompositionArgumentNames): A helper function for detailed logging in onIMEComposition.
1538         (imeNotificationName): A helper function for detailed logging in onIMENotify.
1539         (imeRequestName): A helper function for detailed logging in onIMERequest.
1540         (WebView::onIMEComposition): Added logging.
1541         (WebView::onIMEEndComposition): Ditto.
1542         (WebView::onIMEChar): Ditto.
1543         (WebView::onIMENotify): Ditto.
1544         (WebView::onIMERequestCharPosition): Changed to return result directly.
1545         (WebView::onIMERequestReconvertString): Ditto.
1546         (WebView::onIMERequest): Changed to return result directly. Added logging.
1547         (WebView::onIMESelect): Added logging.
1548         (WebView::onIMESetContext): Added logging.
1549
1550         * WebView.h: onIMERequest functions now return result directly.
1551
1552
1553 2010-01-04  Adam Roben  <aroben@apple.com>
1554
1555         Add WebKitAPITest
1556
1557         Fixes <http://webkit.org/b/33167>.
1558
1559         Reviewed by Sam Weinig.
1560
1561         * WebKit.vcproj/WebKit.sln: Added WebKitAPITest.vcproj. It builds just
1562         after DumpRenderTree.vcproj.
1563
1564 2010-01-04  Dan Bernstein  <mitz@apple.com>
1565
1566         Reviewed by Ada Chan and Mark Rowe.
1567
1568         Updated copyright string
1569
1570         * WebKit.vcproj/WebKit.rc:
1571
1572 2009-12-22  Darin Adler  <darin@apple.com>
1573
1574         Another try at fixing Windows build.
1575
1576         * WebKitPrefix.cpp: Touch it.
1577
1578 2009-12-22  Darin Adler  <darin@apple.com>
1579
1580         Reviewed by Mark Rowe.
1581
1582         Turn off datagrid by default, at least for all platforms Apple ships.
1583         The datagrid implementation isn't ready for general web use yet.
1584
1585         * WebKit.vcproj/WebKit.vcproj: Turn off datagrid by default.
1586
1587 2009-12-21  Adam Roben  <aroben@apple.com>
1588
1589         Fix non-ACCELERATED_COMPOSITING builds
1590
1591         * WebPreferences.cpp:
1592         (WebPreferences::acceleratedCompositingEnabled): Guard use of
1593         WKCACFLayerRenderer with USE(ACCELERATED_COMPOSITING).
1594
1595 2009-12-18  Adam Roben  <aroben@apple.com>
1596
1597         Add IWebPreferencesPrivate::[set]AcceleratedCompositingEnabled
1598
1599         Fixes <http://webkit.org/b/32745>.
1600
1601         Reviewed by Ada Chan.
1602
1603         * Interfaces/IWebPreferencesPrivate.idl: Added
1604         [set]AcceleratedCompositingEnabled.
1605
1606         * Interfaces/WebKit.idl: Touched to force a build.
1607
1608         * WebPreferenceKeysPrivate.h: Added
1609         WebKitAcceleratedCompositingEnabledPreferenceKey.
1610
1611         * WebPreferences.cpp:
1612         (WebPreferences::initializeDefaultSettings): Make accelerated
1613         compositing be on by default.
1614         (WebPreferences::setAcceleratedCompositingEnabled): Store the new
1615         value.
1616         (WebPreferences::acceleratedCompositingEnabled): If accelerated
1617         compositing isn't available, return false. Otherwise, return the value
1618         stored in preferences.
1619
1620         * WebPreferences.h: Added [set]AcceleratedCompositingAvailable.
1621
1622         * WebView.cpp:
1623         (WebView::notifyPreferencesChanged): Just pass the value from
1624         WebPreferences on down.
1625
1626 2009-12-17  Jon Honeycutt  <jhoneycutt@apple.com>
1627
1628         MSAA: Accessibility role of list items is wrong
1629
1630         https://bugs.webkit.org/show_bug.cgi?id=32688
1631
1632         Reviewed by Adam Roben.
1633
1634         * AccessibleBase.cpp:
1635         (MSAARole):
1636         Make the WebCore list item role map to the MSAA list item role.
1637
1638 2009-12-17  Jon Honeycutt  <jhoneycutt@apple.com>
1639
1640         MSAA: Accessibility role of list markers is wrong
1641
1642         https://bugs.webkit.org/show_bug.cgi?id=32687
1643
1644         Reviewed by Adam Roben.
1645
1646         * AccessibleBase.cpp:
1647         (MSAARole):
1648         Make the WebCore list marker role map to the MSAA static text role.
1649
1650 2009-12-18  Adam Roben  <aroben@apple.com>
1651
1652         Add #includes needed after WebCore clean-up
1653
1654         Rubber-stamped by Anders Carlsson.
1655
1656         Fixes <http://webkit.org/b/32718>.
1657
1658         * WebCoreSupport/WebContextMenuClient.cpp:
1659         * WebDataSource.cpp:
1660         * WebHTMLRepresentation.cpp:
1661         * WebView.cpp:
1662         * WebView.h:
1663
1664 2009-12-17  Benjamin Otte  <otte@gnome.org>
1665
1666         Reviewed by Adam Roben.
1667
1668         Don't include all JSC headers everywhere
1669         https://bugs.webkit.org/show_bug.cgi?id=32663
1670
1671         * WebCoreLocalizedStrings.cpp: Added now-needed #include of
1672         MathExtras.h.
1673
1674 2009-12-17  Adam Roben  <aroben@apple.com>
1675
1676         Remove WebKit.sln's Debug_All and Debug_Internal configurations
1677
1678         These configurations aren't buildable by people outside of Apple, and
1679         Apple doesn't use this solution file.
1680
1681         Fixes <http://webkit.org/b/31000> Windows WebKit Build Configuration
1682         should default to Debug instead of Debug_all.
1683
1684         Rubber-stamped by Dan Bernstein.
1685
1686         * WebKit.vcproj/WebKit.sln:
1687
1688 2009-12-16  Jon Honeycutt  <jhoneycutt@apple.com>
1689
1690         MSAA: Accessibility role of text nodes is wrong
1691
1692         https://bugs.webkit.org/show_bug.cgi?id=32631
1693         <rdar://problem/7369084>
1694
1695         Reviewed by Alice Liu.
1696
1697         * AccessibleBase.cpp:
1698         (MSAARole):
1699         If the role is WebCore::EditableTextRole, return ROLE_SYSTEM_TEXT.
1700         (AccessibleBase::role):
1701         Call roleValueForMSAA().
1702
1703 2009-12-14  Brent Fulgham  <bfulgham@webkit.org>
1704
1705         Reviewed by Adam Roben.
1706
1707         Provide working printing support for WinCairo port.
1708
1709         * WebFrame.cpp:
1710         (WebFrame::spoolPage): Conditionalize initialization of
1711           PlatformGraphicsContext handling for CG vs. Cairo.
1712         (scaleFactor): Add helper function.
1713         (hdcFromContext): Add helper function.
1714         (WebFrame::drawHeader): Correct Cairo variation.
1715         (WebFrame::drawFooter): Correct Cairo variation.
1716         (WebFrame::spoolPages): Correct Cairo variation.
1717
1718 2009-12-13  Sam Weinig  <sam@webkit.org>
1719
1720         Reviewed by Dan Bernstein.
1721
1722         Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
1723         Add client based Geolocation provider
1724
1725         Add first cut of a client based Geolocation provider. This is guarded by
1726         ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
1727         GeolocationControllerClient interface that no-one currently implements,
1728         but will in a subsequent patch.
1729
1730         * WebView.cpp:
1731         (WebView::initWithFrame):
1732
1733 2009-12-14  Adam Roben  <aroben@apple.com>
1734
1735         Change IWebFramePrivate's vtable to be compatible with Safari 4.0.4
1736
1737         Reviewed by Steve Falkenburg.
1738
1739         Fixes <http://webkit.org/b/32433> REGRESSION (r51567): Right click on
1740         a link element crashes WebKit nightly
1741
1742         * Interfaces/IWebFramePrivate.idl: Moved pauseSVGAnimation to the end
1743         of the interface so the vtable that Safari 4.0.4 sees is unchanged.
1744
1745 2009-12-14  Adam Roben  <aroben@apple.com>
1746
1747         Build fix
1748
1749         * WebKit.vcproj/WebKit.vcproj: Added $(DXSDK_DIR)\Lib\x86 to the
1750         libpath for all non-Cairo configurations (it was missing from most of
1751         them).
1752
1753 2009-12-11  Chris Marrin  <cmarrin@apple.com>
1754
1755         Reviewed by Jon Honeycutt.
1756
1757         Added icons for full-screen video on Windows
1758         https://bugs.webkit.org/show_bug.cgi?id=31318
1759
1760         * WebKit.vcproj/WebKit.rc:
1761         * WebKit.vcproj/WebKit.vcproj:
1762         * WebKit.vcproj/fsVideoAudioVolumeHigh.png: Added.
1763         * WebKit.vcproj/fsVideoAudioVolumeLow.png: Added.
1764         * WebKit.vcproj/fsVideoExitFullscreen.png: Added.
1765         * WebKit.vcproj/fsVideoPause.png: Added.
1766         * WebKit.vcproj/fsVideoPlay.png: Added.
1767         * WebKit.vcproj/resource.h:
1768
1769 2009-12-11  Chris Marrin  <cmarrin@apple.com>
1770
1771         Reviewed by Adam Roben.
1772
1773         Delay load DLLs for accelerated compositing
1774         https://bugs.webkit.org/show_bug.cgi?id=31856
1775         
1776         If the DLLs (d3d9 and QuartzCore). are not present it
1777         turns off accelerated compositing and avoids calling 
1778         any of the functions in the DLLs.
1779
1780         * WebView.cpp:
1781         (WebView::notifyPreferencesChanged):
1782
1783 2009-12-10  Jon Honeycutt  <jhoneycutt@apple.com>
1784
1785         Pass more information about a plug-in to the PluginHalterDelegate
1786
1787         Reviewed by Adam Roben.
1788
1789         * Interfaces/IWebPluginHalterDelegate.idl:
1790         Add new parameters.
1791
1792         * WebCoreSupport/WebPluginHalterClient.cpp:
1793         (WebPluginHalterClient::shouldHaltPlugin):
1794         Update for new parameters. Pass them when making the delegate call.
1795
1796         * WebCoreSupport/WebPluginHalterClient.h:
1797         Update for new parameters.
1798
1799 2009-12-09  Brent Fulgham  <bfulgham@webkit.org>
1800
1801         Revert incorrect commit-box update r51911.
1802         It mistakenly set the selectAll implementation in the
1803         deslectAll method. 
1804
1805         * WebFrame.cpp:
1806         (WebFrame::deselectAll):
1807
1808 2009-12-09  Brent Fulgham  <bfulgham@webkit.org>
1809
1810         Reviewed by Darin Adler.
1811
1812         Provide an implementation for 'selectAll'
1813         https://bugs.webkit.org/show_bug.cgi?id=32296
1814
1815         * WebFrame.cpp:
1816         (WebFrame::selectAll): Implement "SelectAll" command.
1817
1818 2009-12-09  Brent Fulgham  <bfulgham@webkit.org>
1819
1820         Reviewed by Darin Adler.
1821
1822         Provide an implementation for 'selectAll'
1823         https://bugs.webkit.org/show_bug.cgi?id=32296
1824
1825         * WebFrame.cpp:
1826         (WebFrame::selectAll): Implement "SelectAll" command.
1827
1828 2009-12-08  Chris Marrin  <cmarrin@apple.com>
1829
1830         Reviewed by Adam Roben.
1831
1832         Delay load DLLs for accelerated compositing
1833         https://bugs.webkit.org/show_bug.cgi?id=31856
1834         
1835         If the DLLs (d3d9 and QuartzCore). are not present it
1836         turns off accelerated compositing and avoids calling 
1837         any of the functions in the DLLs.
1838
1839         * WebView.cpp:
1840         * WebView.h:
1841
1842 2009-12-08  Adam Roben  <aroben@apple.com>
1843
1844         Windows build fix
1845
1846         * Interfaces/WebKit.idl: Touched this to force Interfaces.vcproj to rebuild.
1847
1848 2009-12-08  John Sullivan  <sullivan@apple.com>
1849
1850         Reviewed by Dan Bernstein
1851
1852         Split two-clause assertions into two separate assertions.
1853
1854         * DOMHTMLClasses.cpp:
1855         (DOMHTMLInputElement::isTextField):
1856         Split a two-clause assertion into two separate assertions.
1857         (DOMHTMLInputElement::rectOnScreen):
1858         Added the two assertions here that all other functions in this group shared.
1859         (DOMHTMLInputElement::selectedRange):
1860         Split a two-clause assertion into two separate assertions.
1861         (DOMHTMLInputElement::setAutofilled):
1862         Split a two-clause assertion into two separate assertions.
1863         (DOMHTMLInputElement::isAutofilled):
1864         Split a two-clause assertion into two separate assertions.
1865
1866 2009-12-08  Nikolas Zimmermann  <nzimmermann@rim.com>
1867
1868         Rubber-stamped by Maciej Stachowiak.
1869
1870         Turn on (SVG) Filters for Win.
1871         https://bugs.webkit.org/show_bug.cgi?id=32224
1872
1873         * WebKit.vcproj/WebKit.vcproj:
1874
1875 2009-12-08  John Sullivan  <sullivan@apple.com>
1876
1877         Add isAutofilled getter to match existing setter.
1878
1879         Reviewed by Ada Chan.
1880
1881         * DOMHTMLClasses.cpp:
1882         (DOMHTMLInputElement::isAutofilled):
1883         Implemented new cover function.
1884         
1885         * DOMHTMLClasses.h:
1886         Declared new cover function.
1887         
1888         * Interfaces/DOMPrivate.idl:
1889         Declared new interface.
1890
1891 2009-12-07  Gavin Barraclough  <barraclough@apple.com>
1892
1893         Reviewed by NOBODY (Windows build fix part III).
1894
1895         * WebView.cpp:
1896         (WebView::stringByEvaluatingJavaScriptFromString):
1897
1898 2009-12-07  Gavin Barraclough  <barraclough@apple.com>
1899
1900         Reviewed by NOBODY (Windows build fix part II).
1901
1902         * WebView.cpp:
1903         (WebView::stringByEvaluatingJavaScriptFromString):
1904
1905 2009-12-03  Brady Eidson  <beidson@apple.com>
1906
1907         Reviewed by Sam Weinig.
1908
1909         <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
1910
1911         * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
1912         * WebCoreSupport/WebFrameLoaderClient.cpp:
1913         (WebFrameLoaderClient::dispatchDidPushStateWithinPage):
1914         (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
1915         (WebFrameLoaderClient::dispatchDidPopStateWithinPage):
1916         * WebCoreSupport/WebFrameLoaderClient.h:
1917
1918 2009-12-03  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
1919
1920         Reviewed by Timothy Hatcher.
1921
1922         Web Inspector: Simplify the settings support in inspector controller.
1923
1924         https://bugs.webkit.org/show_bug.cgi?id=32076
1925
1926         * WebCoreSupport/WebInspectorClient.cpp:
1927         (WebInspectorClient::attachWindow):
1928         (WebInspectorClient::detachWindow):
1929         (WebInspectorClient::showWindowWithoutNotifications):
1930         * WebCoreSupport/WebInspectorClient.h:
1931
1932 2009-12-03  Ben Murdoch  <benm@google.com>
1933
1934         Reviewed by Brady Eidson.
1935
1936         [Android] The FrameLoaderClient is unaware of BackForwardList changes.
1937         https://bugs.webkit.org/show_bug.cgi?id=31914
1938
1939         * WebCoreSupport/WebFrameLoaderClient.cpp:
1940         (WebFrameLoaderClient::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
1941         (WebFrameLoaderClient::dispatchDidRemoveBackForwardItem): ditto.
1942         (WebFrameLoaderClient::dispatchDidChangeBackForwardIndex): ditto.
1943         * WebCoreSupport/WebFrameLoaderClient.h:
1944
1945 2009-12-02  Timothy Hatcher  <timothy@apple.com>
1946
1947         Move setValueForUser to the end of the DOMHTMLInputElement interface
1948         so it is fine for binary compatibility.
1949
1950         Directed by Steve Falkenburg.
1951
1952         * Interfaces/DOMHTML.idl:
1953
1954 2009-12-02  Timothy Hatcher  <timothy@apple.com>
1955
1956         Expose setValueForUser for the COM DOMHTMLInputElement.
1957
1958         <rdar://problem/6760590> Would like a way to detect a login form AutoFill from JavaScript
1959
1960         Reviewed by Dan Bernstein.
1961
1962         * DOMHTMLClasses.cpp:
1963         (DOMHTMLInputElement::setValueForUser):
1964         * Interfaces/DOMHTML.idl:
1965
1966 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
1967
1968         Not reviewed. Try to fix windows build.
1969
1970         * WebFrame.cpp:
1971
1972 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
1973
1974         Reviewed by Simon Fraser.
1975
1976         Add SVG animation test framework with 'snapshot' functionality
1977         https://bugs.webkit.org/show_bug.cgi?id=31897
1978
1979         Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
1980         forwarding the call to SVGDocumentExtensions, if SVG is enabled.
1981
1982         Implemented just like the existing pauseAnimation* methods for CSS animations.
1983
1984         * Interfaces/IWebFramePrivate.idl:
1985         * WebFrame.cpp:
1986         (WebFrame::pauseSVGAnimation):
1987         * WebFrame.h:
1988
1989 2009-11-30  Adam Roben  <aroben@apple.com>
1990
1991         Fix double-free of BSTRs passed to WebNavigationData::createInstance
1992
1993         WebFrameLoaderClient::updateGlobalHistory was converting
1994         WebCore::Strings to WebCore::BStrings, then passing them to
1995         WebNavigationData::createInstance. But the latter function takes BSTR
1996         parameters and adopts them into WebCore::BStrings. So the end result
1997         was that two WebCore::BStrings would end up freeing each underlying
1998         BSTR.
1999
2000         The fix is to only convert to WebCore::BString inside
2001         WebNavigationData.
2002
2003         Fixes <http://webkit.org/b/31998> <rdar://problem/7383452> REGRESSION
2004         (r49564): Crash in updateGlobalHistory when running Javascript iBench
2005         test
2006
2007         I couldn't find a way to reproduce this in DumpRenderTree.
2008
2009         Reviewed by Steve Falkenburg.
2010
2011         * WebCoreSupport/WebFrameLoaderClient.cpp:
2012         (WebFrameLoaderClient::updateGlobalHistory): Pass WebCore::Strings to
2013         WebNavigationData::createInstance.
2014
2015         * WebNavigationData.cpp:
2016         (WebNavigationData::WebNavigationData):
2017         (WebNavigationData::createInstance):
2018         * WebNavigationData.h:
2019         Changed to take const WebCore::String&s instead of BSTRs and to
2020         convert the Strings to BStrings at this level.
2021
2022 2009-11-30  Steve Falkenburg  <sfalken@apple.com>
2023
2024         Reviewed by Adam Roben.
2025
2026         WebKit clients that don't implement didClearWindowObjectForFrameInScriptWorld should fall back to didClearWindowObject
2027         https://bugs.webkit.org/show_bug.cgi?id=31986
2028
2029         * WebFrame.cpp:
2030         (WebFrame::dispatchDidClearWindowObjectInWorld): Fall back if E_NOTIMPL returned.
2031
2032 2009-11-24  Chris Marrin  <cmarrin@apple.com>
2033
2034         Another Windows build fix
2035         
2036         Got rid of d3d.lib and d3dx9.lib dependency. Not needed until
2037         we turn on ACCELERATED_COMPOSITING
2038
2039         * WebKit.vcproj/WebKit.vcproj:
2040
2041 2009-11-24  Chris Marrin  <cmarrin@apple.com>
2042
2043         Fixed Windows build
2044         
2045         Got rid of QuartzCore.lib dependency. Not needed until
2046         we turn on ACCELERATED_COMPOSITING
2047
2048         * WebKit.vcproj/WebKit.vcproj:
2049
2050 2009-11-24  Chris Marrin  <cmarrin@apple.com>
2051
2052         Reviewed by Simon Fraser.
2053
2054         Implement accelerated compositing
2055         https://bugs.webkit.org/show_bug.cgi?id=27314
2056         
2057         This is the WebKit side of the implementation. It plumbs the root layer
2058         from WebCore. It also makes changes to WebView which places the 
2059         backing store of the page into the root compositing layer so it is 
2060         properly composited with all the other layers. This deals with resizing, 
2061         scrolling, and incremental repaint of the page.
2062
2063         * WebCoreSupport/WebChromeClient.cpp:
2064         (WebChromeClient::attachRootGraphicsLayer):
2065         (WebChromeClient::scheduleCompositingLayerSync):
2066         * WebCoreSupport/WebChromeClient.h:
2067         (WebChromeClient::setNeedsOneShotDrawingSynchronization):
2068         * WebKit.vcproj/WebKit.vcproj:
2069         * WebView.cpp:
2070         (WebView::WebView):
2071         (WebView::close):
2072         (WebView::repaint):
2073         (WebView::scrollBackingStore):
2074         (WebView::paint):
2075         (WebViewWndProc):
2076         (WebView::setRootChildLayer):
2077         (WebView::setAcceleratedCompositing):
2078         (WebView::setRootLayerContents):
2079         * WebView.h:
2080         (WebView::isAcceleratedCompositing):
2081         (WebView::resizeLayerWindow):
2082         (WebView::layerWindowBecameVisible):
2083         (WebView::setRootLayerNeedsDisplay):
2084
2085 2009-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2086
2087         Reviewed by Kenneth Rohde Christiansen.
2088
2089         Include "config.h" to meet Coding Style Guidelines
2090         https://bugs.webkit.org/show_bug.cgi?id=31792
2091
2092         * GEN_DOMObject.cpp:
2093         * WebScriptObject.cpp:
2094
2095 2009-11-21  Jon Honeycutt  <jhoneycutt@apple.com>
2096
2097         Windows build fix. Unreviewed.
2098
2099         * Interfaces/IWebSerializedJSValue.idl:
2100
2101 2009-11-20  Jon Honeycutt  <jhoneycutt@apple.com>
2102
2103         DOMElement::tagName() is unimplemented
2104
2105         https://bugs.webkit.org/show_bug.cgi?id=31746
2106
2107         Reviewed by Darin Adler.
2108
2109         * DOMCoreClasses.cpp:
2110         (DOMElement::tagName):
2111         Create a BString from the element's tag name, and release its BSTR
2112         into result.
2113
2114 2009-11-20  Jon Honeycutt  <jhoneycutt@apple.com>
2115
2116         DOMNode::childNodes() is unimplemented
2117
2118         https://bugs.webkit.org/show_bug.cgi?id=31745
2119
2120         Reviewed by Darin Adler.
2121
2122         * DOMCoreClasses.cpp:
2123         (DOMNode::childNodes):
2124         Create a DOMNodeList from the node's child nodes.
2125
2126 2009-11-20  Dave Hyatt  <hyatt@apple.com>
2127
2128         Reviewed by Jon Honeycutt.
2129
2130         Change WebSerializedJSValue on Windows to have a zero-argument createInstance call.  Move the
2131         serialization into a separate serialize() function that can be called after the object has been
2132         created.
2133
2134         Fix a typo in serialize() caused when fixing build bustage (put a ! back in).
2135
2136         * Interfaces/IWebSerializedJSValue.idl:
2137         * WebSerializedJSValue.cpp:
2138         (WebSerializedJSValue::WebSerializedJSValue):
2139         (WebSerializedJSValue::createInstance):
2140         (WebSerializedJSValue::serialize):
2141         (WebSerializedJSValue::deserialize):
2142         * WebSerializedJSValue.h:
2143
2144 2009-11-20  Brian Weinstein  <bweinstein@apple.com>
2145
2146         Reviewed by Dave Hyatt.
2147
2148         Another go at the Windows Build Fix - this is a couple steps of it,
2149         so a little more involved than most build fixes.
2150
2151         * Interfaces/IWebSerializedJSValue.idl:
2152         * Interfaces/JavaScriptCoreAPITypes.idl:
2153         * WebKit.vcproj/Interfaces.vcproj:
2154         * WebSerializedJSValue.cpp:
2155         (WebSerializedJSValue::deserialize):
2156         * WebSerializedJSValue.h:
2157
2158 2009-11-20  Brian Weinstein  <bweinstein@apple.com>
2159
2160         Reviewed by Dave Hyatt.
2161
2162         Build fix for Windows - only declare JSContextRef once, instead
2163         of in two different idl files. Create a new file to hold the
2164         definition of JSContextRef.
2165
2166         * Interfaces/IWebFrameLoadDelegate.idl:
2167         * Interfaces/IWebSerializedJSValue.idl:
2168         * Interfaces/JavaScriptCoreAPITypes.idl: Added.
2169         * Interfaces/WebKit.idl:
2170         * WebKit.vcproj/Interfaces.vcproj:
2171
2172 2009-11-20  Dave Hyatt  <hyatt@apple.com>
2173
2174         Reviewed by Oliver Hunt and Jon Honeycutt.
2175
2176         Add support for WebSerializedJSValue to WebKit.  This object wraps the SerializedScriptValue functionality in WebCore
2177         and exposes the ability to do JS value serialization/deserialization to WebKit clients.
2178
2179         * Interfaces/IWebSerializedJSValue.idl: Added.
2180         * Interfaces/WebKit.idl:
2181         * WebKit.vcproj/WebKit.vcproj:
2182         * WebSerializedJSValue.cpp: Added.
2183         (WebSerializedJSValue::WebSerializedJSValue):
2184         (WebSerializedJSValue::~WebSerializedJSValue):
2185         (WebSerializedJSValue::createInstance):
2186         (WebSerializedJSValue::AddRef):
2187         (WebSerializedJSValue::Release):
2188         (WebSerializedJSValue::QueryInterface):
2189         (WebSerializedJSValue::deserialize):
2190         * WebSerializedJSValue.h: Added.
2191
2192 2009-11-19  Alexey Proskuryakov  <ap@apple.com>
2193
2194         Reviewed by Darin Adler.
2195
2196         https://bugs.webkit.org/show_bug.cgi?id=31690
2197         Make SocketStreamHandleCFNet work on Windows
2198
2199         * WebDownloadCFNet.cpp:
2200         (WebDownload::init):
2201         (WebDownload::initWithRequest):
2202         (WebDownload::initToResumeWithBundle):
2203         Update for loaderRunLoop() now being in its own header.
2204
2205 2009-11-19  Eric Carlson  <eric.carlson@apple.com>
2206
2207         Reviewed by Dan Bernstein.
2208
2209         <rdar://problem/7035231>
2210         Support closed caption in <video> element
2211
2212         * WebCoreLocalizedStrings.cpp:
2213         (WebCore::localizedMediaControlElementString):
2214         (WebCore::localizedMediaControlElementHelpText):
2215             Add accessibility help strings for media controller closed caption button.
2216
2217 2009-11-18  Michelangelo De Simone  <micdesim@gmail.com>
2218
2219         Reviewed by Darin Adler.
2220
2221         Fix for <https://bugs.webkit.org/show_bug.cgi?id=27959>.
2222         Support for validationMessage attribute, as per HTML5 specs.
2223
2224         * WebCoreLocalizedStrings.cpp:
2225         (WebCore::validationMessageValueMissingText):
2226         (WebCore::validationMessageTypeMismatchText):
2227         (WebCore::validationMessagePatternMismatchText):
2228         (WebCore::validationMessageTooLongText):
2229         (WebCore::validationMessageRangeUnderflowText):
2230         (WebCore::validationMessageRangeOverflowText):
2231         (WebCore::validationMessageStepMismatchText):
2232
2233 2009-11-18  Daniel Bates  <dbates@webkit.org>
2234
2235         Reviewed by Darin Adler.
2236
2237         https://bugs.webkit.org/show_bug.cgi?id=31186
2238
2239         Changes associated with renaming RenderTextControl::isUserEdited.
2240
2241         * DOMHTMLClasses.cpp:
2242         (DOMHTMLInputElement::isUserEdited): Formerly named isUserEdited.
2243         (DOMHTMLTextAreaElement::isUserEdited): Ditto.
2244
2245 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
2246
2247         Implement DOMHTMLInputElement::replaceCharactersInRange().
2248
2249         https://bugs.webkit.org/show_bug.cgi?id=31492
2250
2251         Reviewed by Dan Bernstein.
2252
2253         * DOMHTMLClasses.cpp:
2254         (DOMHTMLInputElement::replaceCharactersInRange):
2255         Get the text of the input field. Replace the given range with the
2256         replacement text, and set this new string as the input element's value.
2257         Select from index to the end of the field. This matches the
2258         implementation in the Obj-C bindings.
2259
2260 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
2261
2262         DOMHTMLOptionElement is missing some functionality.
2263
2264         https://bugs.webkit.org/show_bug.cgi?id=31491
2265
2266         Reviewed by Dan Bernstein.
2267
2268         * DOMHTMLClasses.cpp:
2269         (DOMHTMLOptionElement::text):
2270         Cast m_element to an HTMLOptionElement, and call its text() function.
2271         (DOMHTMLOptionElement::label):
2272         Ditto, for label().
2273
2274 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
2275
2276         DOMHTMLSelectElement is missing some implementation.
2277
2278         https://bugs.webkit.org/show_bug.cgi?id=31489
2279
2280         Reviewed by Dan Bernstein.
2281
2282         * DOMHTMLClasses.cpp:
2283         (DOMHTMLSelectElement::options):
2284         Cast m_element to an HTMLSelectElement. If it has no options, return
2285         E_FAIL. Otherwise, create a DOMHTMLOptionsCollection to wrap the
2286         options, and return it.
2287         (DOMHTMLSelectElement::activateItemAtIndex):
2288         If the index is out of bounds, return E_FAIL. Otherwise, select the
2289         item.
2290
2291 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
2292
2293         DOMHTMLOptionsCollection is missing some implementation.
2294
2295         https://bugs.webkit.org/show_bug.cgi?id=31488
2296
2297         Reviewed by Dan Bernstein.
2298
2299         * DOMHTMLClasses.cpp:
2300         (DOMHTMLOptionsCollection::DOMHTMLOptionsCollection):
2301         Initialize m_collection.
2302         (DOMHTMLOptionsCollection::createInstance):
2303         Create a DOMHTMLOptionsCollection. If we fail to query for
2304         IDOMHTMLOptionsCollection, delete it, and return 0. Otherwise, return
2305         the result.
2306         (DOMHTMLOptionsCollection::length):
2307         (DOMHTMLOptionsCollection::item):
2308         Create a DOMNode for the WebCore Node. If this is 0, return E_FAIL.
2309         (DOMHTMLOptionsCollection::namedItem):
2310         Correct the signature of this function.
2311
2312         * DOMHTMLClasses.h:
2313         Declare DOMHTMLOptionsCollection::createInstance(). Correct the
2314         signature of namedItem() to match IDOMHTMLOptionsCollection. Add a
2315         member to DOMHTMLOptionsCollection to hold the WebCore object.
2316
2317 2009-11-12  Jon Honeycutt  <jhoneycutt@apple.com>
2318
2319         DOMHTMLInputElement::rectOnScreen() returns the wrong rect
2320
2321         https://bugs.webkit.org/show_bug.cgi?id=31487
2322
2323         Reviewed by Darin Adler.
2324
2325         * DOMHTMLClasses.cpp:
2326         (DOMHTMLInputElement::rectOnScreen):
2327         Return the rect on screen, not the rect in the window.
2328
2329 2009-11-17  Brent Fulgham  <bfulgham@webkit.org>
2330
2331         Reviewed by NOBODY - Build Fix.
2332
2333         Correct build error in Debug_Cairo target after @49705.
2334
2335         * WebKit.vcproj/WebKit.vcproj: Revise JavaScriptCore.lib
2336           dependency to have proper "_debug" suffix needed by
2337           the Debug_Cairo target.
2338
2339 2009-11-17  Brian Weinstein  <bweinstein@apple.com>
2340
2341         Reviewed by NOBODY - Build Fix.
2342
2343         Touch files to try to fix the build.
2344
2345         * Interfaces/IWebInspector.idl:
2346         * Interfaces/WebKit.idl:
2347         * WebKit.vcproj/Interfaces.vcproj:
2348
2349 2009-11-17  Pavel Feldman  <pfeldman@chromium.org>
2350
2351         Reviewed by Timothy Hatcher.
2352
2353         Web Inspector: Make DRT show web inspector for tests in inspector/ folder.
2354         - Updated DRT to show/close inspector for all tests under /inspector
2355         - Introduced LayoutTestController::setTimelineProfilingEnabled and
2356           WebInspector::setTimelineProfilingEnabled beside setJavaScriptProfilingEnabled
2357         - Removed reload on each inspector test
2358         - Renamed fast/inspector to fast/inspector-support in order not to trigger
2359         inspector for those.
2360         - Reimplemented timeline tests in order to get rid of reload there.
2361         - Moved tests that don't require harness into the fast group.
2362
2363         https://bugs.webkit.org/show_bug.cgi?id=31472
2364
2365         * Interfaces/IWebInspector.idl:
2366         * WebInspector.cpp:
2367         (WebInspector::isTimelineProfilingEnabled):
2368         (WebInspector::setTimelineProfilingEnabled):
2369         * WebInspector.h:
2370
2371 2009-11-13  Adam Roben  <aroben@apple.com>
2372
2373         Build fix
2374
2375         * Interfaces/WebKit.idl: Touch this to force interfaces to rebuild.
2376
2377 2009-11-13  Adam Roben  <aroben@apple.com>
2378
2379         Tell the WebFrameLoadDelegate when window objects in isolated worlds
2380         are cleared
2381
2382         Fixes <http://webkit.org/b/31124>.
2383
2384         Reviewed by Dave Hyatt.
2385
2386         * Interfaces/IWebFrameLoadDelegatePrivate2.idl: Added
2387         didClearWindowObjectForFrameInScriptWorld.
2388
2389         * WebFrame.cpp:
2390         (WebFrame::dispatchDidClearWindowObjectInWorld):
2391         * WebFrame.h:
2392         Replaced windowObjectCleared with this function. If the delegate
2393         implements IWebFrameLoadDelegatePrivate2, call
2394         didClearWindowObjectForFrameInScriptWorld. Otherwise, if the passed-in
2395         world is the mainThreadNormalWorld(), call
2396         didClearWindowObjectForFrame.
2397
2398         * WebScriptWorld.cpp:
2399         (allWorlds): Added. Returns a HashMap of all the WebScriptWorlds in
2400         existence.
2401         (WebScriptWorld::WebScriptWorld): Add ourselves to allWorlds().
2402         (WebScriptWorld::~WebScriptWorld): Remove ourselves from allWorlds().
2403         (WebScriptWorld::standardWorld): Added this non-COM getter for the
2404         standard world, which the COM getter now calls through to.
2405         (WebScriptWorld::findOrCreateWorld): Added. Returns the existing
2406         WebScriptWorld for this DOMWrapperWorld, or a new one if one doesn't
2407         already exist.
2408
2409         * WebScriptWorld.h: Added new standardWorld overload, made one
2410         overload of createInstance private, and added findOrCreateWorld.
2411
2412 2009-11-13  Adam Roben  <aroben@apple.com>
2413
2414         Build fix
2415
2416         * Interfaces/WebKit.idl: Un-sort the #includes again. Apparently they
2417         are order-dependent!
2418
2419 2009-11-13  Adam Roben  <aroben@apple.com>
2420
2421         Touch WebKit.idl to fix the Windows build
2422
2423         * Interfaces/WebKit.idl: Sorted #includes.
2424
2425 2009-11-13  Adam Roben  <aroben@apple.com>
2426
2427         Finish replacing worldIDs with world objects
2428
2429         The only remaining use of worldIDs was in a method only used by DRT
2430         for the isolated worlds tests.
2431
2432         Fixes <http://webkit.org/b/31414> Replace worldIDs with world objects
2433
2434         Reviewed by Mark Rowe.
2435
2436         * Interfaces/IWebFramePrivate.idl:
2437         * WebFrame.cpp:
2438         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
2439         * WebFrame.h:
2440         Renamed from stringByEvaluatingJavaScriptInIsolatedWorld. Now takes an
2441         IWebScriptWorld instead of a worldID, so we don't need to maintain a
2442         map of worldID -> world anymore.
2443
2444 2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>
2445
2446         Reviewed by Darin Adler.
2447
2448         externalRepresentation should take Frame as the argument
2449         https://bugs.webkit.org/show_bug.cgi?id=31393
2450
2451         No new tests as this is just a refactoring.
2452
2453         * WebFrame.cpp:
2454         (WebFrame::renderTreeAsExternalRepresentation):
2455
2456 2009-11-12  Adam Roben  <aroben@apple.com>
2457
2458         Replace worldIDs with world objects
2459
2460         WebScriptWorld is the new object that represents a world.  The only
2461         place worldID is still used is in
2462         IWebFramePrivate::stringByEvaluatingJavaScriptInIsolatedWorld, but
2463         that will change soon.
2464
2465         Part of <http://webkit.org/b/31414> Implement new SPI for dealing with
2466         user scripts/stylesheets and isolated worlds
2467
2468         Reviewed by Sam Weinig.
2469
2470         * ForEachCoClass.h: Added WebScriptWorld.
2471
2472         * Interfaces/IWebFramePrivate.idl: Replaced contextForWorldID with
2473         contextForWorld.
2474
2475         * Interfaces/IWebScriptWorld.idl: Added.
2476
2477         * Interfaces/IWebViewPrivate.idl: Changed the user script/stylesheet
2478         functions to take an IWebScriptWorld instead of a worldID.
2479
2480         * Interfaces/WebKit.idl: Added WebScriptWorld.
2481
2482         * WebFrame.cpp:
2483         (WebFrame::contextForWorld): Renamed from contextForWorldID. Now takes
2484         an IWebScriptWorld.
2485         (WebFrame::stringByEvaluatingJavaScriptInIsolatedWorld): Moved the
2486         bizarre world caching/creation logic that DRT depends on here from the
2487         findWorld function in ScriptController.cpp. Updated to use
2488         ScriptController::executeScriptInWorld instead of
2489         ScriptController::executeScriptInIsolatedWorld.
2490
2491         * WebFrame.h: Replaced contextForWorldID with contextForWorld.
2492
2493         * WebScriptWorld.cpp: Added.
2494         (WebScriptWorld::WebScriptWorld):
2495         (WebScriptWorld::~WebScriptWorld):
2496         (WebScriptWorld::createInstance):
2497         (WebScriptWorld::AddRef):
2498         (WebScriptWorld::Release):
2499         (WebScriptWorld::QueryInterface):
2500         Standard COM class implementations.
2501
2502         (WebScriptWorld::standardWorld): Returns a shared instance that represents
2503         WebCore's mainThreadNormalWorld().
2504
2505         * WebScriptWorld.h: Added.
2506         (WebScriptWorld::world): Simple getter.
2507
2508         * WebKit.vcproj/Interfaces.vcproj: Added IWebScriptWorld.idl.
2509
2510         * WebKit.vcproj/WebKit.vcproj: Added WebScriptWorld.
2511
2512         * WebKitClassFactory.cpp: Added WebScriptWorld.
2513
2514         * WebView.cpp:
2515         (WebView::addUserScriptToGroup):
2516         (WebView::addUserStyleSheetToGroup):
2517         (WebView::removeUserScriptFromGroup):
2518         (WebView::removeUserStyleSheetFromGroup):
2519         (WebView::removeUserScriptsFromGroup):
2520         (WebView::removeUserStyleSheetsFromGroup):
2521         * WebView.h:
2522         Changed these functions to take an IWebScriptWorld instead of a worldID.
2523
2524 2009-11-12  Adam Roben  <aroben@apple.com>
2525
2526         Small clean-up in WebView's user content functions
2527
2528         Preparation for <http://webkit.org/b/31414> Implement new SPI for
2529         dealing with user scripts/stylesheets and isolated worlds
2530
2531         Reviewed by Dave Hyatt.
2532
2533         * WebView.cpp:
2534         (toString):
2535         (toKURL):
2536         Added these helper functions to convert BSTRs to WebCore types.
2537
2538         (toStringVector):
2539         (WebView::addUserScriptToGroup):
2540         (WebView::addUserStyleSheetToGroup):
2541         (WebView::removeUserScriptFromGroup):
2542         (WebView::removeUserStyleSheetFromGroup):
2543         (WebView::removeUserScriptsFromGroup):
2544         (WebView::removeUserStyleSheetsFromGroup):
2545         (WebView::removeAllUserContentFromGroup):
2546         Use the new helper functions.
2547
2548 2009-11-11  Beth Dakin  <bdakin@apple.com>
2549
2550         Build fix. No review needed.
2551
2552         * WebKitGraphics.cpp:
2553         (WebDrawText):
2554
2555 2009-11-10  Daniel Bates  <dbates@webkit.org>
2556
2557         Reviewed by Oliver Hunt.
2558
2559         https://bugs.webkit.org/show_bug.cgi?id=30754
2560
2561         Modified WebDropSource::QueryContinueDrag so as to not call EventHandler::dragSourceMovedTo.
2562
2563         * WebDropSource.cpp:
2564         (WebDropSource::QueryContinueDrag): Removed call to EventHandler::dragSourceMovedTo.
2565
2566 2009-11-10  Alexey Proskuryakov  <ap@apple.com>
2567
2568         Reviewed by Dan Bernstein.
2569
2570         https://bugs.webkit.org/show_bug.cgi?id=31312
2571         Decouple authentication panel callbacks from ResourceHandle
2572
2573         * WebCoreSupport/WebFrameLoaderClient.cpp:
2574         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
2575         * WebURLAuthenticationChallenge.cpp:
2576         (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
2577         (WebURLAuthenticationChallenge::sender):
2578         * WebURLAuthenticationChallengeSender.cpp:
2579         (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
2580         (WebURLAuthenticationChallengeSender::createInstance):
2581         (WebURLAuthenticationChallengeSender::authenticationClient):
2582         * WebURLAuthenticationChallengeSender.h:
2583         * WebURLAuthenticationChallengeSenderCFNet.cpp:
2584         (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge):
2585         (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge):
2586         (WebURLAuthenticationChallengeSender::useCredential):
2587         Adjusted for WebCore changes.
2588
2589 2009-11-10  Brian Weinstein  <bweinstein@apple.com>
2590
2591         Reviewed by NOBODY - Build Fix.
2592
2593         Updated fillRoundedRect to take a ColorSpace argument.
2594
2595         * WebCoreSupport/WebDragClient.cpp:
2596         (WebDragClient::createDragImageForLink):
2597
2598 2009-11-08  Janne Koskinen  <janne.p.koskinen@digia.com>
2599
2600         Reviewed by Holger Freyther.
2601
2602         ResourceRequest to be class instead of struct
2603         https://bugs.webkit.org/show_bug.cgi?id=30670
2604
2605         Started as a compilation fix for Symbian where the compiler makes a distinction between
2606         class and struct in function argument signatures.
2607         Changed forward declaration of ResourceRequest to have class in the forward
2608         declaration instead of struct.
2609
2610         * WebDownload.h:
2611
2612 2009-11-05  Adam Roben  <aroben@apple.com>
2613
2614         Make CFDictionaryPropertyBag::createInstance return a COMPtr
2615
2616         I also cleaned up CFDictionaryPropertyBag's class declaration a little
2617         while I was at it.
2618
2619         Part of <http://webkit.org/b/25294> <rdar://problem/6803127> All
2620         WebKit/win classes should return COMPtrs from their static constructor
2621         members
2622
2623         Reviewed by Steve Falkenburg.
2624
2625         * CFDictionaryPropertyBag.cpp:
2626         (CFDictionaryPropertyBag::CFDictionaryPropertyBag): Changed to
2627         initialize m_refCount to 0. m_refCount gets increased to 1 by
2628         createInstance.
2629         (CFDictionaryPropertyBag::createInstance): Changed to return a COMPtr.
2630
2631         * CFDictionaryPropertyBag.h:
2632           - Updated copyright years
2633           - Fixed header guard to match current style
2634           - Replaced #include of CoreFoundation.h with forward-declaration of
2635             CFMutableDictionaryRef
2636           - Added #include of COMPtr.h
2637           - Fixed opening brace placement in class declaration
2638           - Made createInstance return a COMPtr
2639           - Made constructor/destructor private
2640           - Made QueryInterface and IPropertyBag functions private
2641           - Removed unnecessary parameter names and MIDL comments
2642
2643         * WebCache.cpp:
2644         (WebCache::statistics): Updated for change to
2645         CFDictionaryPropertyBag::createInstance. Now uses releaseRef to place
2646         the IPropertyBag pointers into the s array.
2647
2648         * WebCoreSupport/WebFrameLoaderClient.cpp:
2649         (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
2650         * WebDatabaseManager.cpp:
2651         (WebDatabaseManager::dispatchDidModifyDatabase):
2652         * WebFrame.cpp:
2653         (WebFrame::createJavaAppletWidget):
2654         Updated for change to CFDictionaryPropertyBag::createInstance.
2655
2656         * WebHistory.cpp: Removed releaseUserInfo, which is no longer needed.
2657         That function was also doing an unnecessary call to setDictionary(0).
2658         (createUserInfoFromArray):
2659         (createUserInfoFromHistoryItem):
2660         Changed to return COMPtr.
2661
2662         (WebHistory::loadFromURL): Updated for change to
2663         CFDictionaryPropertyBag::createInstance.
2664
2665         (WebHistory::removeAllItems): Updated for change to
2666         CFDictionaryPropertyBag::createInstance, which fixed a leak! We had
2667         forgotten to call releaseUserInfo here.
2668
2669         (WebHistory::removeItem):
2670         (WebHistory::addItem):
2671         (WebHistory::visitedURL):
2672         * WebIconDatabase.cpp:
2673         (postDidAddIconNotification):
2674         Updated for change to CFDictionaryPropertyBag::createInstance.
2675
2676         * WebKitClassFactory.cpp:
2677         (releaseRefFromCreateInstance): Added this overloaded function
2678         template to abstract away the difference between createInstance
2679         functions that return a ref'd pointer and createInstance functions
2680         that return a COMPtr.
2681         (WebKitClassFactory::CreateInstance): Changed to use
2682         releaseRefFromCreateInstance.
2683
2684 2009-11-03  Brian Weinstein  <bweinstein@apple.com>
2685
2686         Reviewed by Steve Falkenburg.
2687
2688         WebActionModifierFlagsKey should return an unsigned, because
2689         flags imply a bitmask, and that is what other classes expect from
2690         it.
2691
2692         * WebActionPropertyBag.cpp:
2693         (WebActionPropertyBag::Read):
2694
2695 2009-11-02  Eric Carlson  <eric.carlson@apple.com>
2696
2697         Reviewed by John Sullivan and Mark Rowe.
2698
2699         <rdar://problem/7356733> Voiceover does not read correct media controller time values
2700
2701         * WebCoreLocalizedStrings.cpp:
2702         (WebCore::localizedMediaTimeDescription):
2703
2704 2009-10-29  Jon Honeycutt  <jhoneycutt@apple.com>
2705
2706         MSAA: Accessibility of headings is not correct
2707
2708         https://bugs.webkit.org/show_bug.cgi?id=30937
2709
2710         Reviewed by Alice Liu.
2711
2712         * AccessibleBase.cpp:
2713         (AccessibleBase::get_accDescription):
2714         Call the object's descriptionForMSAA(). Moved the comment to the
2715         WebCore file.
2716         (AccessibleBase::get_accRole):
2717         If the object has a string role, return that. Otherwise, return the
2718         integer role.
2719
2720         * AccessibleBase.h:
2721         Removed description(), as this was moved to WebCore.
2722
2723 2009-10-29  Jon Honeycutt  <jhoneycutt@apple.com>
2724
2725         MSAA: Accessibility of links is wrong
2726
2727         https://bugs.webkit.org/show_bug.cgi?id=30928
2728
2729         Reviewed by Darin Adler.
2730
2731         * AccessibleBase.cpp:
2732         (AccessibleBase::get_accState):
2733         Check whether the element is linked, instead of whether the node is an
2734         anchor, so the child "linkable" elements of anchor elements will also
2735         be "linked".
2736         (AccessibleBase::name):
2737         Return the name for MSAA.
2738         (AccessibleBase::value):
2739         Return the string value for MSAA.
2740
2741 2009-10-30  Evan Stade  <estade@chromium.org>
2742
2743         Reviewed by David Levin.
2744
2745         Notify the chrome when the focused node has changed.
2746         https://bugs.webkit.org/show_bug.cgi?id=30832
2747
2748         Added stub implementation for new ChromeClient function.
2749
2750         * WebCoreSupport/WebChromeClient.cpp:
2751         (WebChromeClient::focusedNodeChanged):
2752         * WebCoreSupport/WebChromeClient.h:
2753
2754 2009-10-30  Roland Steiner  <rolandsteiner@chromium.org>
2755
2756         Reviewed by Eric Seidel.
2757
2758         Remove ENABLE_RUBY guards as discussed with Dave Hyatt and Maciej Stachowiak.
2759
2760         Bug 28420 -  Implement HTML5 <ruby> rendering
2761         (https://bugs.webkit.org/show_bug.cgi?id=28420)
2762
2763         No new tests (no functional change).
2764
2765         * WebKit.vcproj/WebKit.vcproj:
2766
2767 2009-10-29  Mark Rowe  <mrowe@apple.com>
2768
2769         Rubber-stamped by Dan Bernstein.
2770
2771         <http://webkit.org/b/30938> REGRESSION(r50233): Windows nightlies crash on launch due to changes
2772         to IWebFramePrivate vtable ordering
2773
2774         * Interfaces/IWebFramePrivate.idl: Move the newly-added method to the end of the interface so that
2775         it doesn't affect the ordering of the vtable.
2776
2777 2009-10-28  Steve Falkenburg  <sfalken@apple.com>
2778
2779         Reviewed by Sam "Horatio" Weinig.
2780
2781         Should not generate/build COM DOM bindings
2782         https://bugs.webkit.org/show_bug.cgi?id=30880
2783
2784         * Interfaces/WebKit.idl: Remove generated interfaces.
2785         * WebKit.vcproj/InterfacesGenerated.vcproj: Removed.
2786         * WebKit.vcproj/WebKit.sln: Remove InterfacesGenerated.vcproj.
2787         * WebKit.vcproj/WebKit.submit.sln: Remove InterfacesGenerated.vcproj.
2788         * WebKit.vcproj/WebKit.vcproj: Remove generated interfaces.
2789
2790 2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
2791
2792         Reviewed by Darin Adler.
2793
2794         Provide a way to get counter values with layoutTestContoller
2795         https://bugs.webkit.org/show_bug.cgi?id=30555
2796
2797         * Interfaces/IWebFramePrivate.idl:
2798         * WebFrame.cpp:
2799         (WebFrame::counterValueForElementById):
2800         * WebFrame.h:
2801
2802 2009-10-28  Joe Mason  <jmason@rim.com>
2803
2804         Reviewed by Adam Treat.
2805
2806         Call the shared FrameLoader::defaultObjectContentType instead of
2807         copying code into FrameLoaderClient::objectContentType.  This causes no
2808         behavioural change.
2809
2810         * WebFrame.cpp:
2811         (WebFrame::objectContentType):
2812
2813 2009-10-28  Holger Hans Peter Freyther  <zecke@selfish.org>
2814
2815         Speculative build-fix for WebElementPropertyBag.cpp
2816
2817         * WebElementPropertyBag.cpp: Include RenderObject.h
2818
2819 2009-10-27  Holger Hans Peter Freyther  <zecke@selfish.org>
2820
2821         Reviewed by Simon Fraser.
2822
2823         Change HitTestResult methods to use (3d) transformation aware methods
2824         https://bugs.webkit.org/show_bug.cgi?id=27347
2825
2826         The HitTestResult::boundingBox method was removed. The
2827         RenderObject must be used directly. In contrast to the
2828         old HitTestResult::boundingBox method this code must use
2829         a (3d) transformation aware method to not run into an
2830         assert in SVGRenderBase::mapLocalToContainer.
2831
2832         * WebElementPropertyBag.cpp:
2833         (WebElementPropertyBag::Read): Replace HitTestResult::boundingBox()
2834
2835 2009-10-26  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2836
2837         Reviewed by Darin Adler.
2838
2839         Make .rc files compile on Windows without depending on MFC headers
2840         https://bugs.webkit.org/show_bug.cgi?id=30750
2841
2842         * WebKit.vcproj/WebKit.rc: Use winresrc.h because it exists even 
2843         when MFC is not installed, and is all that's needed here.
2844
2845 2009-10-26  Sam Weinig  <sam@webkit.org>
2846
2847         Rubber-stamped by Darin Adler.
2848
2849         Rollout r50041-50043.  The HTML5 spec changed to make HTMLOptionsCollection
2850         inherit from HTMLCollection.
2851
2852         * DOMCreateInstance.cpp:
2853
2854 2009-10-25  Dan Bernstein  <mitz@apple.com>
2855
2856         Reviewed by John Sullivan.
2857
2858         Add contextForWorldID to the IWebFramePrivate interface.
2859
2860         * Interfaces/IWebFramePrivate.idl:
2861         * WebFrame.h:
2862
2863 2009-10-25  Sam Weinig  <sam@webkit.org>
2864
2865         Another try at fixing windows.
2866
2867         * DOMCreateInstance.cpp:
2868
2869 2009-10-25  Sam Weinig  <sam@webkit.org>
2870
2871         Touch WebKit.idl in an effort to try and regenerate the COM bindings.
2872
2873         * Interfaces/WebKit.idl:
2874
2875 2009-10-23  Mark Rowe  <mrowe@apple.com>
2876
2877         Build fix.  Include config.h before including other files.
2878
2879         * AccessibleImage.cpp:
2880
2881 2009-10-23  Gavin Barraclough  <barraclough@apple.com>
2882
2883         Reviewed by Geoff Garen.
2884
2885         https://bugs.webkit.org/show_bug.cgi?id=30729
2886         Provide private API to request the global context for a specific world.
2887         Used to initialize parameters on the global object.
2888
2889         * WebFrame.cpp:
2890         (WebFrame::contextForWorldID):
2891         * WebFrame.h:
2892
2893 2009-10-23  Brian Weinstein  <bweinstein@apple.com>
2894
2895         Reviewed by John Sullivan.
2896
2897         Pan-scrolling pointer shows up in other tabs or windows, can't "fix" it.
2898         <http://webkit.org/b/30732> and <rdar://7332018>.
2899         
2900         Turns off pan-scrolling on a WebView when it is about to lose focus.
2901
2902         * WebView.cpp:
2903         (WebViewWndProc):
2904
2905 2009-10-23  Jon Honeycutt  <jhoneycutt@apple.com>
2906
2907         MSAA: Name for image elements should use alt attribute text
2908
2909         https://bugs.webkit.org/show_bug.cgi?id=30727
2910         <rdar://problem/7328291>
2911
2912         Reviewed by Alice Liu.
2913
2914         * AccessibleBase.cpp:
2915         (AccessibleBase::createInstance):
2916         If the AccessibilityObject is an image, return an AccessibleImage.
2917
2918         * AccessibleImage.cpp: Added.
2919         (AccessibleImage::AccessibleImage):
2920         Call the base constructor.
2921         (AccessibleImage::name):
2922         If the object is not an AccessibilityRenderObject, return the base's
2923         name(). Look first for an ARIA "labeled-by" attribute, then look for an
2924         alternate text attribute. Fall back to the base's name().
2925
2926         * AccessibleImage.h: Added.
2927         (AccessibleImage::~AccessibleImage):
2928
2929         * WebKit.vcproj/WebKit.vcproj:
2930         Add AccessibleImage to the project.
2931
2932 2009-10-23  Sam Weinig  <sam@webkit.org>
2933
2934         Try and fix the windows build.
2935
2936         * Interfaces/WebKit.idl:
2937
2938 2009-10-22  Gavin Barraclough  <barraclough@apple.com>
2939
2940         Reviewed by Sam Weinig & Geoff Garen.
2941
2942         https://bugs.webkit.org/show_bug.cgi?id=30696
2943         Update to incorporate support for IsolatedWorlds in JSC bindings.
2944
2945         * Interfaces/IWebFramePrivate.idl:
2946         * WebFrame.cpp:
2947         (WebFrame::globalContext):
2948         (WebFrame::windowObjectCleared):
2949         (WebFrame::stringByEvaluatingJavaScriptInIsolatedWorld):
2950         * WebFrame.h:
2951
2952 2009-10-20  Fumitoshi Ukai  <ukai@chromium.org>
2953
2954         Reviewed by David Levin.
2955
2956         Removed WebSocket runtime settings.
2957         https://bugs.webkit.org/show_bug.cgi?id=29896
2958
2959         WebSocket runtime configuration is supported by chromium/v8 only.
2960
2961         * Interfaces/IWebPreferencesPrivate.idl:
2962         * WebPreferenceKeysPrivate.h:
2963         * WebPreferences.cpp:
2964         (WebPreferences::initializeDefaultSettings):
2965         (WebPreferences::experimentalNotificationsEnabled):
2966         * WebPreferences.h:
2967         * WebView.cpp:
2968         (WebView::notifyPreferencesChanged):
2969
2970 2009-10-19  Adam Roben  <aroben@apple.com>
2971
2972         Fix crashes/assertions when calling WebLocalizedString from multiple
2973         threads concurrently
2974
2975         Fixes <http://webkit.org/b/30534> WebLocalizedString asserts if called
2976         from multiple threads concurrently
2977
2978         Reviewed by John Sullivan.
2979
2980         * WebLocalizableStrings.cpp:
2981         (mainBundleLocStringsMutex):
2982         (frameworkLocStringsMutex):
2983         Added these new getters.
2984
2985         (findCachedString):
2986         (cacheString):
2987         Lock the relevant mutex before accessing each string map. Otherwise
2988         bad things could happen if two threads end up here at the same time.
2989
2990 2009-10-19  Adam Roben  <aroben@apple.com>
2991
2992         Get rid of a few static initializers/exit-time destructors in
2993         WebLocalizableStrings
2994
2995         Reviewed by Dan Bernstein.
2996
2997         * WebLocalizableStrings.cpp:
2998         (mainBundleLocStrings):
2999         (frameworkLocStrings):
3000         Added these functions instead of file-scope variables.
3001
3002         (findCachedString):
3003         (cacheString):
3004         Updated to use the new functions.
3005
3006 2009-10-19  Nate Chapin  <japhet@chromium.org>
3007
3008         Unreviewed, build fix.
3009
3010         Update call to FrameLoader::urlSelected().
3011
3012         * WebCoreSupport/WebContextMenuClient.cpp:
3013         (WebContextMenuClient::searchWithGoogle):
3014
3015 2009-10-16  Steve Falkenburg  <sfalken@apple.com>
3016
3017         Reviewed by Dan Bernstein.
3018
3019         https://bugs.webkit.org/show_bug.cgi?id=30456
3020         Fixes for new Debug_All Windows build configuration.
3021
3022         * WebKitClassFactory.cpp: Use new DEBUG_ALL preprocessor define for library naming.
3023
3024 2009-10-16  Jon Honeycutt  <jhoneycutt@apple.com>
3025
3026         Add SPI to determine whether a plug-in has ever been halted.
3027
3028         Part of <rdar://problem/7312158>.
3029
3030         Reviewed by Dan Bernstein.
3031
3032         * Interfaces/IWebViewPrivate.idl:
3033         Add hasPluginForNodeBeenHalted().
3034
3035         * WebView.cpp:
3036         (pluginViewForNode):
3037         Code factored out of isNodeHaltedPlugin().
3038         (WebView::isNodeHaltedPlugin):
3039         Remove STDMETHODCALLTYPE, as it has no use at the definition. Use
3040         pluginViewForNode().
3041         (WebView::restartHaltedPluginForNode):
3042         Ditto.
3043         (WebView::hasPluginForNodeBeenHalted):
3044         Get the PluginView for the given node. Return the result of
3045         PluginView::hasBeenHalted().
3046
3047         * WebView.h:
3048         Declare hasPluginForNodeBeenHalted().
3049
3050 2009-10-16  Steve Falkenburg  <sfalken@apple.com>
3051
3052         Reviewed by Adam Roben.
3053
3054         Add a Debug_All configuration to build entire stack as debug.
3055         Change Debug_Internal to:
3056         - stop using _debug suffix for all WebKit/Safari binaries
3057         - not use _debug as a DLL naming suffix
3058         - use non-debug C runtime lib.
3059
3060         * WebKit.vcproj/InterfacesGenerated.vcproj: Renamed single configuration from "Release" to "all".
3061         * WebKit.vcproj/WebKit.make: Debug build in makefile should build Debug_All.
3062         * WebKit.vcproj/WebKit.sln: Add Debug_All configuration.
3063         * WebKit.vcproj/WebKit.submit.sln: Add Debug_All configuration.
3064         * WebKit.vcproj/WebKit.vcproj:
3065         Remove extraneous OutputDirectory/IntermediateDirectory in Debug_Cairo.
3066         Add Debug_All configuration.
3067         * WebKit.vcproj/WebKitGUID.vcproj: Add Debug_All configuration.
3068
3069 2009-10-15  Jon Honeycutt  <jhoneycutt@apple.com>
3070
3071         Add SPI to restart a halted plug-in.
3072
3073         Part of <rdar://problem/7273354> Halted plug-ins should restart on
3074         mouseover
3075
3076         https://bugs.webkit.org/show_bug.cgi?id=30151
3077
3078         Reviewed by Kevin Decker.
3079
3080         * Interfaces/IWebViewPrivate.idl:
3081         Add restartHaltedPluginForNode().
3082
3083         * WebView.cpp:
3084         (WebView::restartHaltedPluginForNode):
3085         From the IDOMNode, query for the DOMNode. From the DOMNode, get the
3086         WebCore::Node. Get the node's renderer, and check whether it is a
3087         RenderWidget. If so, get its Widget, and check whether it's a
3088         PluginView. If so, call PluginView::restart().
3089
3090         * WebView.h:
3091         Declare restartHaltedPluginForNode().
3092
3093 2009-10-14  Jon Honeycutt  <jhoneycutt@apple.com>
3094
3095         Add SPI to determine whether a node is a halted plug-in.
3096
3097         Part of <rdar://problem/7273354> Halted plug-ins should restart on
3098         mouseover
3099
3100         https://bugs.webkit.org/show_bug.cgi?id=30151
3101
3102         Reviewed by Darin Adler.
3103
3104         * Interfaces/IWebViewPrivate.idl:
3105         Add isNodehaltedPlugin().
3106
3107         * WebView.cpp:
3108         (WebView::isNodeHaltedPlugin):
3109         From the IDOMNode, query for the DOMNode. From the DOMNode, get the
3110         WebCore::Node. Get the node's renderer, and check whether it is a
3111         RenderWidget. If so, get its Widget, and check whether it's a
3112         PluginView. If so, return the result of PluginView::isHalted().
3113
3114         * WebView.h:
3115         Declare isNodeHaltedPlugin().
3116
3117 2009-10-15  Daniel Bates  <dbates@webkit.org>
3118
3119         Reviewed by Adam Roben.
3120
3121         https://bugs.webkit.org/show_bug.cgi?id=24731
3122         And
3123         rdar://problem/5015961
3124         
3125         Implements support for DHTML drag-and-drop operations (i.e. ondragstart, ondragend)
3126         in the Windows build so that it conforms to the Mac OS X build. Hence, dropEffect is
3127         correctly set.
3128         
3129         The WebView and WebDropSource drag-and-drop functions, as called by function
3130         DoDragDrop in its event loop, neither used the drop effect as specified by
3131         event.dataTransfer.dropEffect nor respected event.dataTransfer.effectsAllowed.
3132         Instead, these functions defaulted to some hardcoded drop effect and set of
3133         allowed drop effects, respectively.
3134
3135         Tests: fast/events/drag-and-drop.html
3136
3137         * WebCoreSupport/WebDragClient.cpp:
3138         (WebDragClient::startDrag):
3139         * WebDropSource.cpp:
3140         (WebDropSource::QueryContinueDrag): Moved call to EventHandler::dragSourceEndedAt
3141         into method WebDragClient::startDrag.
3142         * WebDropSource.h:
3143         * WebView.cpp:
3144         (WebView::keyStateToDragOperation): Fixes <rdar://problem/5015961>. Determines
3145         appropriate drop effect from state of keyboard and allowed effects
3146         m_page->dragController()->sourceDragOperation().
3147         (WebView::DragEnter):
3148         (WebView::DragOver):
3149         (WebView::Drop):
3150         * WebView.h:
3151
3152 2009-10-14  Adam Roben  <aroben@apple.com>
3153
3154         Windows build fix
3155
3156         * WebKit.vcproj/Interfaces.vcproj: Exclude IWebHistoryDelegate and
3157         IWebNavigationData from the build (they get #imported via WebKit.idl).
3158
3159 2009-10-14  Brady Eidson  <beidson@apple.com>
3160
3161         Reviewed by Sam Weinig.
3162
3163         WebKit Win API should provide a delegate interface for global history.
3164         https://bugs.webkit.org/show_bug.cgi?id=29905
3165
3166         -Add IWebHistoryDelegate for clients to implement.
3167         -Add (I)WebNavigationData for the history delegate's use.
3168         -When it exists, call the history delegate instead of using WebHistory.
3169         
3170         * Interfaces/IWebHistoryDelegate.idl: Added.
3171         * Interfaces/IWebHistoryPrivate.idl:
3172         * Interfaces/IWebNavigationData.idl: Added.
3173         * Interfaces/IWebViewPrivate.idl:
3174         * Interfaces/WebKit.idl:
3175         
3176         * WebKit.vcproj/Interfaces.vcproj:
3177         * WebKit.vcproj/WebKit.vcproj:
3178
3179         * WebCoreSupport/WebChromeClient.cpp:
3180         (WebChromeClient::populateVisitedLinks):
3181         * WebCoreSupport/WebFrameLoaderClient.cpp:
3182         (WebFrameLoaderClient::updateGlobalHistory):
3183         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
3184         (WebFrameLoaderClient::setTitle):
3185  
3186          * WebView.cpp:
3187         (WebView::close):
3188         (WebView::mainFrameURL):
3189         (WebView::setHistoryDelegate):
3190         (WebView::historyDelegate):
3191         (WebView::addVisitedLinks):
3192         * WebView.h:
3193         
3194         * WebHistory.cpp:
3195         (WebHistory::setVisitedLinkTrackingEnabled):
3196         (WebHistory::removeAllVisitedLinks):
3197         * WebHistory.h:
3198
3199         * WebNavigationData.cpp: Added.
3200         (WebNavigationData::QueryInterface):
3201         (WebNavigationData::AddRef):
3202         (WebNavigationData::Release):
3203         (WebNavigationData::WebNavigationData):
3204         (WebNavigationData::~WebNavigationData):
3205         (WebNavigationData::createInstance):
3206         (WebNavigationData::url):
3207         (WebNavigationData::title):
3208         (WebNavigationData::originalRequest):
3209         (WebNavigationData::response):
3210         (WebNavigationData::hasSubstituteData):
3211         (WebNavigationData::clientRedirectSource):
3212         * WebNavigationData.h: Added.
3213
3214 2009-10-13  Dave Hyatt  <hyatt@apple.com>
3215
3216         Fix more WebView bustage.
3217
3218         * WebView.cpp:
3219         (WebView::addUserScriptToGroup):
3220         (WebView::addUserStyleSheetToGroup):
3221         (WebView::removeUserScriptsFromGroup):
3222         (WebView::removeUserStyleSheetsFromGroup):
3223
3224 2009-10-13  Dave Hyatt  <hyatt@apple.com>
3225
3226         Fix build bustage on Windows.
3227
3228         * WebView.cpp:
3229         (WebView::addUserScriptToGroup):
3230         (WebView::addUserStyleSheetToGroup):
3231         (WebView::removeUserScriptsFromGroup):
3232         (WebView::removeUserStyleSheetsFromGroup):
3233
3234 2009-10-13  Dave Hyatt  <hyatt@apple.com>
3235
3236         Reviewed by Adam Roben..
3237
3238         Split removal functions for user scripts and stylehseets based on type.
3239
3240         * Interfaces/IWebViewPrivate.idl:
3241         * WebView.cpp:
3242         (WebView::removeUserScriptFromGroup):
3243         (WebView::removeUserStyleSheetFromGroup):
3244         * WebView.h:
3245
3246 2009-10-09  Adam Barth  <abarth@webkit.org>
3247
3248         Reviewed by Darin Adler.
3249
3250         Factor HistoryController out of FrameLoader
3251         https://bugs.webkit.org/show_bug.cgi?id=30246
3252
3253         Update API call.
3254
3255         * WebView.cpp:
3256         (WebView::loadBackForwardListFromOtherView):
3257
3258 2009-10-08  Jon Honeycutt  <jhoneycutt@apple.com>
3259
3260         Remove the WebKitPluginHalterEnabledPreferenceKey in favor of checking
3261         for the existence of a PluginHalterDelegate.
3262
3263         Reviewed by Dan Bernstein.
3264
3265         * Interfaces/IWebPreferencesPrivate.idl:
3266         Remove the getter and setter.
3267
3268         * WebCoreSupport/WebPluginHalterClient.cpp:
3269         (WebPluginHalterClient::enabled):
3270         Return true if the delegate exists.
3271
3272         * WebCoreSupport/WebPluginHalterClient.h:
3273         Declare implementation of enabled().
3274
3275         * WebPreferenceKeysPrivate.h:
3276         Removed the pref key.
3277
3278         * WebPreferences.cpp:
3279         (WebPreferences::initializeDefaultSettings):
3280         Removed initialization of the pref.
3281
3282         * WebPreferences.h:
3283         Removed declaration of the getter/setter.
3284
3285         * WebView.cpp:
3286         (WebView::notifyPreferencesChanged):
3287         Don't propagate the pref.
3288
3289 2009-10-08  Adam Barth  <abarth@webkit.org>
3290
3291         Reviewed by Eric Seidel.
3292
3293         Move executeScript from FrameLoader to ScriptController
3294         https://bugs.webkit.org/show_bug.cgi?id=30200
3295
3296         Update API call.
3297
3298         * WebView.cpp:
3299         (WebView::stringByEvaluatingJavaScriptFromString):
3300
3301 2009-10-08  Anders Carlsson  <andersca@apple.com>
3302
3303         Reviewed by Sam Weinig.
3304
3305         Remove the shouldLoadMediaElementURL implementation.
3306
3307         * Interfaces/IWebPolicyDelegatePrivate.idl:
3308         * WebCoreSupport/WebFrameLoaderClient.cpp:
3309         (WebFrameLoaderClient::shouldUsePluginDocument):
3310         * WebCoreSupport/WebFrameLoaderClient.h:
3311
3312 2009-10-08  Adam Roben  <aroben@apple.com>
3313
3314         Make IWebInspectorPrivate be accessed in a more standard way
3315
3316         IWebViewPrivate::inspectorPrivate has been removed. Callers should
3317         instead use IWebViewPrivate::inspector and then use QueryInterface to
3318         get the IWebInspectorPrivate interface. This matches how our other COM
3319         classes work.
3320
3321         Fixes <http://webkit.org/b/30215> Make IWebInspectorPrivate be
3322         accessed in a more standard way
3323
3324         Reviewed by John Sullivan and Tim Hatcher.
3325
3326         * Interfaces/IWebViewPrivate.idl: Removed inspectorPrivate.
3327
3328         * WebInspector.cpp:
3329         (WebInspector::QueryInterface): Support querying to
3330         IWebInspectorPrivate.
3331
3332         * WebView.cpp:
3333         * WebView.h:
3334         Removed inspectorPrivate.
3335
3336 2009-10-08  Adam Roben  <aroben@apple.com>
3337
3338         Move the new IWebViewPrivate::inspectorPrivate function after all
3339         functions that existed when Safari 4.0.3 was released
3340
3341         Fixes <http://webkit.org/b/30085> REGRESSION (r49091): run-safari
3342         crashes in Safari.dll
3343
3344         Reviewed by John Sullivan.
3345
3346         * Interfaces/IWebViewPrivate.idl: Moved inspectorPrivate to the end of
3347         the interface, so it won't modify the vtable that Safari 4.0.3 sees.
3348
3349 2009-10-07  Adam Roben  <aroben@apple.com>
3350
3351         Expose origin whitelisting in the WebKit API on Windows
3352
3353         Fixes <http://webkit.org/b/30185>.
3354
3355         Reviewed by Eric Seidel.
3356
3357         * Interfaces/IWebViewPrivate.idl: Added whiteListAccessFromOrigin and
3358         resetOriginAccessWhiteLists, to match the Mac SPI.
3359
3360         * WebView.cpp:
3361         (WebView::whiteListAccessFromOrigin):
3362         (WebView::resetOriginAccessWhiteLists):
3363         * WebView.h:
3364         Added. These just call through to SecurityOrigin.
3365
3366 2009-10-07  Adam Barth  <abarth@webkit.org>
3367
3368         Reviewed by Darin Adler.
3369
3370         Factor PolicyChecker out of FrameLoader
3371         https://bugs.webkit.org/show_bug.cgi?id=30155
3372
3373         Move the policy callback to the policy object.
3374
3375         * WebFrame.cpp:
3376         (WebFrame::dispatchWillSubmitForm):
3377         (WebFrame::receivedPolicyDecision):
3378         (WebFrame::dispatchDecidePolicyForMIMEType):
3379         (WebFrame::dispatchDecidePolicyForNewWindowAction):
3380         (WebFrame::dispatchDecidePolicyForNavigationAction):
3381
3382 2009-10-07  Daniel Bates  <dbates@webkit.org>
3383
3384         Reviewed by Darin Adler.
3385
3386         https://bugs.webkit.org/show_bug.cgi?id=30102
3387         And
3388         <rdar://problem/5015957>
3389         
3390         Fixes an issue (in the Windows build) where the cursor does not change to the
3391         not-allowed cursor when the drag-and-drop operation is not allowed.
3392         
3393         The allowed effects in WebDragClient::startDrag are hard-coded to be 
3394         DROPEFFECT_COPY | DROPEFFECT_LINK | DROPEFFECT_MOVE. Instead, the list of 
3395         allowed drop effects should be determined by the allowed operations of the
3396         drag source.
3397         
3398         We cannot test this using DRT because DRT looks at the programmatic drop 
3399         cursor and until bug #24731 is fixed this value is hard-coded to DragOperationCopy.
3400         That is, there is a discrepancy in the Windows build between the Windows API-based 
3401         drop effect and the WebKit drop effect. Because DRT cannot read the screen buffer 
3402         to determine the cursor, a manual test is needed.
3403
3404         * WebCoreSupport/WebDragClient.cpp:
3405         (draggingSourceOperationMaskToDragCursors): Added method.
3406         (WebDragClient::startDrag):
3407
3408 2009-10-07  Steve Falkenburg  <sfalken@apple.com>
3409
3410         Reviewed by Darin Adler.
3411
3412         https://bugs.webkit.org/show_bug.cgi?id=30176
3413         <rdar://problem/7281553> Extra information in UA causes problems with gmail
3414         
3415         * WebKit.vcproj/WebKit.rc: Restore PRODUCTVERSION to build number only. Remove extra space.
3416
3417 2009-10-06  Pavel Feldman  <pfeldman@chromium.org>
3418
3419         Reviewed by Timothy Hatcher.
3420
3421         Web Inspector: default to an attached inspector window on Windows (as on Mac).
3422
3423         https://bugs.webkit.org/show_bug.cgi?id=30134
3424
3425         * WebCoreSupport/WebInspectorClient.cpp:
3426         (WebInspectorClient::showWindowWithoutNotifications):
3427
3428 2009-10-06  Adam Barth  <abarth@webkit.org>
3429
3430         Reviewed by Eric Seidel.
3431
3432         Move FrameLoader::canLoad to SecurityOrigin
3433         https://bugs.webkit.org/show_bug.cgi?id=30111
3434
3435         * WebFrame.cpp:
3436         (WebFrame::allowsFollowingLink):
3437
3438 2009-10-06  Pavel Feldman  <pfeldman@chromium.org>
3439
3440         Reviewed by Timothy Hatcher.
3441
3442         Web Inspector: close inspector client view on
3443         InspectorController::close API call.
3444
3445         In order to run batch web inspector layout tests (and not affect 
3446         subsequent tests) we should close inspector client's view upon
3447         InspectorController::close API call.
3448
3449         https://bugs.webkit.org/show_bug.cgi?id=30009
3450
3451         * WebCoreSupport/WebInspectorClient.cpp:
3452         (WebInspectorClient::createPage):
3453
3454 2009-10-06  David Levin  <levin@chromium.org>
3455
3456         Reviewed by NOBODY (windows build fix).
3457
3458         Speculative build fix for windows (due to r49160).
3459
3460         * WebDownloadCFNet.cpp:
3461         (WebDownload::initToResumeWithBundle):
3462         * WebIconDatabase.cpp:
3463         (WebIconDatabase::dispatchDidAddIconForPageURL):
3464
3465 2009-10-05  Pavel Feldman  <pfeldman@chromium.org>
3466
3467         Reviewed by Timothy Hatcher.
3468
3469         Web Inspector: add testing harness for Web Inspector.
3470
3471         https://bugs.webkit.org/show_bug.cgi?id=30010
3472
3473         * Interfaces/IWebInspectorPrivate.idl: Added.
3474         * Interfaces/IWebViewPrivate.idl:
3475         * Interfaces/WebKit.idl:
3476         * WebInspector.cpp:
3477         (WebInspector::evaluateInFrontend):
3478         * WebInspector.h:
3479         * WebView.cpp:
3480         (WebView::inspectorPrivate):
3481         * WebView.h:
3482
3483 2009-10-02  Dave Hyatt  <hyatt@apple.com>
3484
3485         Reviewed by Adam Roben.
3486
3487         Add support for blacklist patterns to user stylesheets and scripts in addition to whitelist patterns.
3488
3489         * Interfaces/IWebViewPrivate.idl:
3490         * WebView.cpp:
3491         (toStringVector):
3492         (WebView::addUserScriptToGroup):
3493         (WebView::addUserStyleSheetToGroup):
3494         * WebView.h:
3495
3496 2009-10-02  Steve Falkenburg  <sfalken@apple.com>
3497
3498         Reviewed by Mark Rowe.
3499
3500         <https://bugs.webkit.org/show_bug.cgi?id=29989>
3501         Safari version number shouldn't be exposed in WebKit code
3502         
3503         For a WebKit version of 532.3.4:
3504         Product version is: 5.32.3.4 (was 4.0.3.0)
3505         File version is: 5.32.3.4 (was 4.532.3.4)
3506
3507         * WebKit.vcproj/WebKit.rc:
3508
3509 2009-09-30  Sam Weinig  <sam@webkit.org>
3510
3511         Reviewed by Dan Bernstein.
3512
3513         Fix for <rdar://problem/7259706>
3514         Need WebKit API or SPI on Mac and Windows to test whether it's safe to load a page in a new tab/window
3515
3516         * Interfaces/IWebFramePrivate.idl:
3517         * WebFrame.cpp:
3518         (WebFrame::allowsFollowingLink):
3519         * WebFrame.h:
3520
3521 2009-09-30  Dave Hyatt  <hyatt@apple.com>
3522
3523         Reviewed by Adam Roben.
3524
3525         Add the ability to remove user stylesheets and scripts by URL.
3526
3527         * Interfaces/IWebViewPrivate.idl:
3528         * WebView.cpp:
3529         (WebView::removeUserContentWithURLFromGroup):
3530         * WebView.h:
3531
3532 2009-09-29  Kenneth Russell  <kbr@google.com>
3533
3534         Reviewed by Dimitri Glazkov.
3535
3536         Add support for run-time flag for 3D canvas
3537         https://bugs.webkit.org/show_bug.cgi?id=29826
3538
3539         * WebView.cpp:
3540         (WebView::notifyPreferencesChanged): Enable experimental WebGL
3541         flag when 3D_CANVAS is enabled in the build.
3542
3543 2009-09-28  Alexey Proskuryakov  <ap@apple.com>
3544
3545         Reviewed by Darin Adler and Sam Weinig.
3546
3547         Onclick not fired for an element copied with cloneContents() or cloneNode()
3548         https://bugs.webkit.org/show_bug.cgi?id=25130
3549
3550         * DOMCreateInstance.cpp: GEN_DOMEventListener is a pure interface now.
3551
3552         * WebKit.vcproj/WebKit.vcproj: Removed GEN_DOMEventListener.cpp.
3553
3554 2009-09-28  Fumitoshi Ukai  <ukai@chromium.org>
3555
3556         Reviewed by Eric Seidel.
3557
3558         Add experimentalWebSocketsEnabled in WebPreferences.
3559         https://bugs.webkit.org/show_bug.cgi?id=28941
3560
3561         * Interfaces/IWebPreferencesPrivate.idl:
3562         * WebPreferenceKeysPrivate.h:
3563         * WebPreferences.cpp:
3564         (WebPreferences::initializeDefaultSettings):
3565         (WebPreferences::setExperimentalWebSocketsEnabled):
3566         (WebPreferences::experimentalWebSocketsEnabled):
3567         * WebPreferences.h:
3568         * WebView.cpp:
3569         (WebView::notifyPreferencesChanged):
3570         (core):
3571
3572 2009-09-25  Darin Adler  <darin@apple.com>
3573
3574         Reviewed by Steve Falkenburg.
3575
3576         Speed up access to history items by caching date computation.
3577
3578         * History/WebHistory.mm:
3579         (getDayBoundaries): Refactored from timeIntervalForBeginningOfDay.
3580         Returns the beginning of the day that the passed time is within and
3581         the beginning of the next day.
3582         (beginningOfDay): Added. Uses getDayBoundaries so it can be fast for
3583         multiple dates within the same day, which is the common case.
3584         (dateKey): Added. Calls beginningOfDay and converts to an integer.
3585         (WebHistory::findKey): Changed to call dateKey instead of
3586         timeIntervalForBeginningOfDay.
3587
3588 2009-09-25  Adam Roben  <aroben@apple.com>
3589
3590         Add SPI to invalidate a WebView's backing store
3591
3592         This is useful in conjunction with
3593         IWebUIDelegatePrivate2::drawBackground. This provides a way for the UI
3594         delegate to force WebView to get its background redrawn.
3595
3596         Fixes <http://webkit.org/b/29737> Need SPI to invalidate a WebView's
3597         backing store
3598
3599         Reviewed by Anders Carlsson.
3600
3601         * Interfaces/IWebViewPrivate.idl: Added invalidateBackingStore.
3602         * WebView.cpp:
3603         (WebView::invalidateBackingStore): If rect is 0, invalidate our whole
3604         client rect. Otherwise invalidate the intersection of rect with our
3605         client rect.
3606         * WebView.h:
3607
3608 2009-09-24  Jon Honeycutt  <jhoneycutt@apple.com>
3609
3610         Add a mechanism for automatically halting plug-ins.
3611
3612         Reviewed by Oliver Hunt.
3613
3614         * Interfaces/IWebPluginHalterDelegate.idl: Added. Defines an interface
3615         for a delegate that determines whether plug-ins should be halted.
3616
3617         * Interfaces/IWebPreferencesPrivate.idl:
3618         Declare functions to get and set the enabled state of the plug-in
3619         halter and the plug-in allowed run time.
3620
3621         * Interfaces/IWebViewPrivate.idl:
3622         Declare functions to get and set the IWebPluginHalterDelegate.
3623
3624         * Interfaces/WebKit.idl:
3625
3626         * WebCoreSupport/WebPluginHalterClient.cpp: Added.
3627         (WebPluginHalterClient::WebPluginHalterClient):
3628         (WebPluginHalterClient::shouldHaltPlugin):
3629         Get the IWebPluginHalterDelegate for the WebView. Create a WebKit
3630         DOMNode for the WebCore Node. Call the delegate's shouldHaltPlugin().
3631         If the call fails, return false. Otherwise, return the result of the
3632         call.
3633
3634         * WebCoreSupport/WebPluginHalterClient.h: Added.
3635
3636         * WebKit.vcproj/Interfaces.vcproj:
3637         Add IWebPluginHalterDelegate.idl.
3638
3639         * WebKit.vcproj/WebKit.vcproj:
3640         Add WebPluginHalterClient.{h,cpp}.
3641
3642         * WebPreferenceKeysPrivate.h:
3643         Define WebKitPluginHalterEnabledPreferenceKey and
3644         WebKitPluginAllowedRunTimePreferenceKey.
3645
3646         * WebPreferences.cpp:
3647         (WebPreferences::initializeDefaultSettings):
3648         Leave plug-in halting disabled by default. Set the default value for
3649         the plug-in allowed run time to the max value of an unsigned int.
3650         (WebPreferences::setPluginHalterEnabled):
3651         (WebPreferences::pluginHalterEnabled):
3652         (WebPreferences::setPluginAllowedRunTime):
3653         (WebPreferences::pluginAllowedRunTime):
3654
3655         * WebPreferences.h:
3656
3657         * WebView.cpp:
3658         (WebView::close):
3659         Clear the IWebPluginHalterDelegate.
3660         (WebView::initWithFrame):
3661         Pass a WebPluginHalterClient when creating the Page.
3662         (WebView::notifyPreferencesChanged):
3663         Set the new settings when the preferences changed notification is
3664         received.
3665         (WebView::setPluginHalterDelegate):
3666         (WebView::pluginHalterDelegate):
3667
3668         * WebView.h:
3669         Declare overrides of setPluginHalterDelegate() and
3670         pluginHalterDelegate(). Added a member to track the
3671         IWebPluginHalterDelegate.
3672
3673 2009-09-14  John Gregg  <johnnyg@google.com>
3674
3675         Reviewed by Eric Seidel.
3676
3677         Enable switch for notifications (experimental) in Page Settings
3678         https://bugs.webkit.org/show_bug.cgi?id=28930
3679
3680         Adds support for the experimentalNotificationsEnabled flag in Settings through
3681         WebPreferencesPrivate interface.  Also cleans up some issues accessing the
3682         notification delegate through DumpRenderTree.
3683
3684         * Interfaces/IWebPreferencesPrivate.idl:
3685         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
3686         (WebDesktopNotificationsDelegate::hasNotificationDelegate):
3687         (WebDesktopNotificationsDelegate::notificationDelegate):
3688         * WebPreferenceKeysPrivate.h:
3689         * WebPreferences.cpp:
3690         (WebPreferences::initializeDefaultSettings):
3691         (WebPreferences::setExperimentalNotificationsEnabled):
3692         (WebPreferences::experimentalNotificationsEnabled):
3693         * WebPreferences.h:
3694         * WebView.cpp:
3695         (WebView::notifyPreferencesChanged):
3696
3697 2009-09-23  Anders Carlsson  <andersca@apple.com>
3698
3699         Reviewed by Adam Roben.
3700
3701         <rdar://problem/7243354> 
3702         REGRESSION(48580-48636): Crash clicking embedded QT preview button on apple.com/trailers
3703         
3704         Check for a null IWebPolicyDelegatePrivate.
3705         
3706         * WebCoreSupport/WebFrameLoaderClient.cpp:
3707         (WebFrameLoaderClient::shouldLoadMediaElementURL):
3708
3709 2009-09-22  Sam Weinig  <sam@webkit.org>
3710
3711         Rubber-stamped by Adam Roben.
3712
3713         Remove accidentally left in declaration of reloadFromOrigin in IWebFramePrivate.idl
3714
3715         * Interfaces/IWebFramePrivate.idl:
3716
3717 2009-09-22  Sam Weinig  <sam@webkit.org>
3718
3719         Reviewed by Steve Falkenburg.
3720
3721         Fix for <rdar://problem/6451745>
3722         Windows WebKit needs to implement reloadFromOrigin()
3723
3724         * Interfaces/IWebFrame.idl:
3725         * Interfaces/IWebFramePrivate.idl:
3726         * Interfaces/IWebView.idl:
3727         * WebFrame.cpp:
3728         (WebFrame::reloadFromOrigin):
3729         * WebFrame.h:
3730         * WebView.cpp:
3731         (WebView::reloadFromOrigin):
3732         * WebView.h:
3733
3734 2009-09-22  Adam Roben  <aroben@apple.com>
3735
3736         Manage refcounts correctly in DefaultDownloadDelegate::willSendRequest
3737
3738         Fixes <http://webkit.org/b/29650> Crash in
3739         WebDownload::willSendRequest when using DefaultDownloadDelegate
3740
3741         Reviewed by Brady Eidson.
3742
3743         * DefaultDownloadDelegate.cpp:
3744         (DefaultDownloadDelegate::willSendRequest): Call AddRef() on the
3745         object we're returning via the finalRequest out-parameter.
3746
3747 2009-09-21  Anders Carlsson  <andersca@apple.com>
3748
3749         Reviewed by Adam Roben.
3750
3751         <rdar://problem/7135588> HTMLMediaElement should ask WebPolicyLoadDelegate before loading resource
3752
3753         Implement WebFrameLoaderClient::shouldLoadMediaElementURL and have it call the new private policy
3754         delegate method.
3755         
3756         * Interfaces/IWebPolicyDelegatePrivate.idl: Added.
3757         * Interfaces/WebKit.idl:
3758         * WebCoreSupport/WebFrameLoaderClient.cpp:
3759         (WebFrameLoaderClient::shouldLoadMediaElementURL):
3760         * WebCoreSupport/WebFrameLoaderClient.h:
3761         * WebKit.vcproj/Interfaces.vcproj:
3762
3763 2009-09-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3764
3765         Reviewed by Simon Hausmann.
3766
3767         Make PlatformWindow return something else than PlatformWidget
3768         https://bugs.webkit.org/show_bug.cgi?id=29085
3769
3770         Reflect the rename of platformWindow and it's return type.
3771
3772         * AccessibleBase.cpp:
3773         (AccessibleBase::get_accParent):
3774         * WebCoreSupport/WebChromeClient.cpp:
3775         (WebChromeClient::platformPageClient):
3776         * WebCoreSupport/WebChromeClient.h:
3777
3778 2009-09-17  Brian Weinstein  <bweinstein@apple.com>
3779
3780         Reviewed by Adam Roben.
3781
3782         Remove assertions that were being hit by calls to
3783         m_verticalScrollbar->invalidate(). These assertions were valid,
3784         but they were causing tests to fail, so replacing with a FIXME 
3785         until we can find out the real cause/solution that is being tracked 
3786         by http://webkit.org/b/29350.
3787
3788         * WebView.cpp:
3789         (WebView::addToDirtyRegion):
3790         (WebView::paintIntoBackingStore):
3791
3792 2009-09-17  Ada Chan  <adachan@apple.com>
3793
3794         Post WebViewDidChangeSelectionNotification when the text selection changes.
3795
3796         Fixes <http://webkit.org/b/29321>
3797
3798         Reviewed by Adam Roben.
3799
3800         * Interfaces/IWebView.idl:
3801         * WebCoreSupport/WebEditorClient.cpp:
3802         (WebEditorClient::respondToChangedSelection):
3803
3804 2009-09-17  Adam Roben  <aroben@apple.com>
3805
3806         Fix a crash when a WebView's HWND is destroyed before IWebView::close
3807         is called
3808
3809         WebView's HWND was being sent a WM_TIMER message after the WebView was
3810         destroyed. This normally isn't possible (we call DestroyWindow inside
3811         WebView's destructor to ensure the HWND doesn't outlive the WebView),
3812         but r48060 changed WebView to call SetParent(m_viewWindow,
3813         HWND_MESSAGE) while handling WM_DESTROY, and apparently this puts the
3814         HWND into some weird half-destroyed state where it can still receive
3815         WM_TIMER messages.
3816
3817         Fixes <http://webkit.org/b/29337> <rdar://problem/7209897> REGRESSION
3818         (r48060): unrepro but frequent crash in WebViewWndProc
3819
3820         Reviewed by Steve Falkenburg.
3821
3822         * WebView.cpp:
3823         (WebViewWndProc): When handling WM_DESTROY, call setIsBeingDestroyed()
3824         before calling close(). This allows setHostWindow to detect that we're
3825         handling WM_DESTROY. No other code in close() cared whether
3826         isBeingDestroyed() was true or not.
3827         (WebView::setHostWindow): If our host window is being set to 0 and
3828         we're being destroyed, don't become a message-only window. Doing this
3829         while handling WM_DESTROY seems to lead to crashes.
3830
3831 2009-09-16  Adam Roben  <aroben@apple.com>
3832
3833         Add a UI delegate callback to let the delegate draw a WebView's
3834         background
3835
3836         Fixes <http://webkit.org/b/29315>.
3837
3838         Reviewed by Dave Hyatt.
3839
3840         * Interfaces/IWebUIDelegatePrivate.idl: Added
3841         IWebUIDelegatePrivate2::drawBackground.
3842
3843         * WebView.cpp:
3844         (WebView::paintIntoBackingStore): After clearing or filling with
3845         white, let the delegate draw whatever background it wants. Also added
3846         an assertion that the dirty rect is within our bounds.
3847
3848 2009-09-16  Adam Roben  <aroben@apple.com>
3849
3850         Prevent WebView from painting over sibling windows
3851
3852         Fixes <http://webkit.org/b/29300> <rdar://problem/7227960> WebView can
3853         paint over sibling windows
3854
3855         Reviewed by Darin Adler.
3856
3857         * WebView.cpp:
3858         (WebView::initWithFrame): Create the WebView's HWND with the
3859         WS_CLIPSIBLINGS style.
3860
3861 2009-09-14  Brady Eidson  <beidson@apple.com>
3862
3863         Reviewed by Alexey Proskuryakov.
3864
3865         Safari 4 cannot be used to update firmware on Linksys routers.
3866         <rdar://problem/7174050> and https://bugs.webkit.org/show_bug.cgi?id=29160
3867
3868         Adopt the new WebCore::CredentialStorage in WebKit/Win.
3869
3870         * WebDownloadCFNet.cpp:
3871         (WebDownload::didReceiveAuthenticationChallenge):
3872
3873 2009-09-11  Steve Falkenburg  <sfalken@apple.com>
3874
3875         Reviewed by Dan Bernstein.
3876
3877         Properly propagate preference from WebPreferences to WebCore::Settings.
3878         https://bugs.webkit.org/show_bug.cgi?id=29192
3879
3880         * WebView.cpp:
3881         (WebView::initWithFrame): Apply setting when creating a new WebView.
3882         (WebView::notifyPreferencesChanged): Apply setting when preferences change.
3883
3884 2009-09-11  Steve Falkenburg  <sfalken@apple.com>
3885
3886         Reviewed by Darin Adler.
3887
3888         Allow WebKit clients to opt out of high resolution timers on Windows.
3889         https://bugs.webkit.org/show_bug.cgi?id=29192
3890
3891         * Interfaces/IWebPreferencesPrivate.idl: Added getter/setter.
3892         Put this just after last 4.0.3 method for future merging.
3893         * Interfaces/WebKit.idl: Touched to force a rebuild.
3894         * WebPreferenceKeysPrivate.h: Added prefs key for high res timers.
3895         * WebPreferences.cpp:
3896         (WebPreferences::initializeDefaultSettings): Initialize high res timers to enabled.
3897         (WebPreferences::setShouldUseHighResolutionTimers): Added.
3898         (WebPreferences::shouldUseHighResolutionTimers): Added.
3899         * WebPreferences.h: Added getter/setter.
3900
3901 2009-09-11  Adam Roben  <aroben@apple.com>
3902
3903         Get user script/stylesheet tests running on Windows
3904
3905         Fixes <http://webkit.org/b/29181> User script/stylesheet tests are
3906         skipped on Windows
3907
3908         Reviewed by John Sullivan.
3909
3910         * Interfaces/IWebViewPrivate.idl: Added addUserScriptToGroup,
3911         addUserStyleSheetToGroup, removeUserContentFromGroup,
3912         removeAllUserContentFromGropu to match the Mac SPI.
3913
3914         * WebView.cpp:
3915         (WebView::addUserScriptToGroup):
3916         (WebView::addUserStyleSheetToGroup):
3917         (WebView::removeUserContentFromGroup):
3918         (WebView::removeAllUserContentFromGroup):
3919         * WebView.h:
3920         Added. Implementation was based on similar methods in WebView.mm.
3921
3922 2009-09-11  Jon Honeycutt  <jhoneycutt@apple.com>
3923
3924         Fix crash on launch on Windows.
3925
3926         Rubber-stamped by Mark Rowe.
3927
3928         * WebKit.vcproj/WebKit.vcproj:
3929         Define ENABLE_WEB_SOCKETS for all configurations.
3930
3931 2009-09-07  Drew Wilson  <atwilson@google.com>
3932
3933         Reviewed by David Levin.
3934
3935         Enable SHARED_WORKERS by default.
3936         https://bugs.webkit.org/show_bug.cgi?id=28959
3937
3938         * WebKit.vcproj/WebKit.vcproj:
3939
3940 2009-09-04  Adam Roben  <aroben@apple.com>
3941
3942         Make WebView function without a parent window
3943
3944         When WebView has no parent window, it becomes a message-only window,
3945         which hides it from the screen and prevents it from appearing on the
3946         taskbar.
3947
3948         Fixes <http://webkit.org/b/28971> <rdar://problem/4976998>
3949         WebView::initWithFrame fails if there's no host window
3950
3951         Reviewed by Dave Hyatt.
3952
3953         * WebView.cpp:
3954         (WebView::initWithFrame): m_hostWindow is null, use HWND_MESSAGE as
3955         our parent window, which will make us a message-only window.
3956         (WebView::setHostWindow): If he new host window is null, use
3957         HWND_MESSAGE as our parent window, which will make us a message-only
3958         window.
3959
3960 2009-09-04  Adam Barth  <abarth@webkit.org>
3961
3962         Unreviewed attempt at a build fix.
3963
3964         Added missing include.
3965
3966         * WebCoreSupport/WebFrameLoaderClient.cpp:
3967
3968 2009-09-04  Adam Barth  <abarth@webkit.org>
3969
3970         Unreviewed attempt at a build fix.
3971
3972         Fix typo of IWebFrameLoadDelegatePrivate2 and make
3973         IWebFrameLoadDelegatePrivate inherit from IWebFrameLoadDelegatePrivate
3974         as requestd by Adam Roben.
3975
3976         * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
3977         * WebCoreSupport/WebFrameLoaderClient.cpp:
3978         (WebFrameLoaderClient::didDisplayInsecureContent):
3979         (WebFrameLoaderClient::didRunInsecureContent):
3980
3981 2009-09-04  Adam Barth  <abarth@webkit.org>
3982
3983         Reviewed by Eric Seidel.
3984
3985         https://bugs.webkit.org/show_bug.cgi?id=24696
3986
3987         Plumb mixed content notifications to IWebFrameLoadDelegatePrivate.
3988
3989         * Interfaces/IWebFrameLoadDelegatePrivate2.idl: Added.
3990         * Interfaces/WebKit.idl:
3991         * WebCoreSupport/WebFrameLoaderClient.cpp:
3992         (WebFrameLoaderClient::didDisplayInsecureContent):
3993         (WebFrameLoaderClient::didRunInsecureContent):
3994         * WebKit.vcproj/Interfaces.vcproj:
3995
3996 2009-09-03  Adam Barth  <abarth@webkit.org>
3997
3998         Reviewed by eric@webkit.org.
3999
4000         https://bugs.webkit.org/show_bug.cgi?id=24696
4001
4002         Stub implementations of mixed content methods of FrameLoaderClient. 
4003
4004         * WebCoreSupport/WebFrameLoaderClient.cpp:
4005         (WebFrameLoaderClient::didDisplayInsecureContent):
4006         (WebFrameLoaderClient::didRunInsecureContent):
4007         * WebCoreSupport/WebFrameLoaderClient.h:
4008
4009 2009-09-01  Adam Roben  <aroben@apple.com>
4010
4011         Post a notification when a WebView is closing
4012
4013         This is useful for situations where some code wants to react to the
4014         WebView closing but isn't in charge of the WebView and can't otherwise
4015         be notified. This notification could replace
4016         IWebUIDelegatePrivate::webViewClosing if we decide that the
4017         notification system isn't too burdensome.
4018
4019         <http://webkit.org/b/28875>
4020
4021         Reviewed by John Sullivan.
4022
4023         * Interfaces/IWebViewPrivate.idl: Added the
4024         WebViewWillCloseNotification string constant.
4025         * WebKit.vcproj/WebKit.vcproj: Link against comsuppw.lib in all
4026         configurations so that we can use _bstr_t.
4027         * WebView.cpp:
4028         (WebView::close): Post the WebViewWillCloseNotification.
4029
4030 2009-08-31  Alexey Proskuryakov  <ap@webkit.org>
4031
4032         Reviewed by Darin Adler.
4033
4034         https://bugs.webkit.org/show_bug.cgi?id=28852
4035         Rename KURL single argument constructor to avoid confusion
4036
4037         * WebURLResponse.cpp: (WebURLResponse::createInstance): Adapt to the change.
4038
4039 2009-08-20  Adam Roben  <aroben@apple.com>
4040
4041         Give WebKit clients access to the window features specified in
4042         window.open
4043
4044         Reviewed by Steve Falkenburg.
4045
4046         * COMVariantSetter.h: Added COMVariantSetters for bool and float.
4047
4048         * Interfaces/IWebUIDelegatePrivate.idl: Added IWebUIDelegatePrivate2,
4049         which contains a new version of createWebViewWithRequest that also
4050         passes the window features as an IPropertyBag. This is analagous to
4051         the -createWebViewWithRequest:windowFeatures: method added to
4052         WebUIDelegate on Mac in r27452. Also added key strings for use with
4053         the window features property bag.
4054
4055         * WebCoreSupport/WebChromeClient.cpp:
4056         (createWindowFeaturesPropertyBag): Added this helper function to turn
4057         a WebCore::WindowFeatures into an IPropertyBag for passing to WebKit
4058         clients.
4059         (WebChromeClient::createWindow): If the UI delegate implements
4060         IWebUIDelegatePrivate2, call the new createWebViewWithRequest function
4061         that takes a window features property bag. If the delegate doesn't
4062         implement the new function, fall back to the old functions.
4063
4064 2009-08-20  Adam Roben  <aroben@apple.com>
4065
4066         A little clean-up in WebChromeClient::createWindow
4067
4068         Reviewed by Steve Falkenburg.
4069
4070         * WebCoreSupport/WebChromeClient.cpp:
4071         (WebChromeClient::createWindow): Refactored to share more code between
4072         the dialog and non-dialog cases.
4073
4074 2009-08-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
4075
4076         Reviewed by Holger Freyther.
4077
4078         https://bugs.webkit.org/show_bug.cgi?id=25889
4079         [GTK] scrollbar policy for main frame is not implementable
4080
4081         Add empty implementation for new ChromeClient method.
4082
4083         * WebCoreSupport/WebChromeClient.h:
4084         (WebChromeClient::scrollbarsModeDidChange):
4085
4086 2009-08-27  Brent Fulgham  <bfulgham@webkit.org>
4087
4088         Reviewed by Adam Roben.
4089
4090         Modify Release_Cairo target to build testapi using the
4091         Release_CFLite target so that the correct CoreFoundation
4092         (in this case, CFLite.dll) is linked.
4093
4094         * WebKit.vcproj/WebKit.sln:
4095
4096 2009-08-26  Adam Barth  <abarth@webkit.org>
4097
4098         Reviewed by Oliver Hunt.
4099
4100         Don't let local files access web URLs
4101         https://bugs.webkit.org/show_bug.cgi?id=28480
4102
4103         * WebPreferences.cpp:
4104         (WebPreferences::initializeDefaultSettings):
4105
4106 2009-08-26  David Levin  <levin@chromium.org>
4107
4108         Reviewed by Darin Fisher.
4109
4110         ResourceRequestBase::*[Aa]llowHTTPCookies shouldn't mention http.
4111         https://bugs.webkit.org/show_bug.cgi?id=28735
4112
4113         * WebMutableURLRequest.cpp:
4114         (WebMutableURLRequest::setHTTPShouldHandleCookies):
4115
4116 2009-08-25  Eric Carlson  <eric.carlson@apple.com>
4117
4118         Reviewed by Oliver Hunt.
4119
4120         <video> and <audio> controller should be accessible
4121         https://bugs.webkit.org/show_bug.cgi?id=28081
4122
4123         * WebCoreLocalizedStrings.cpp:
4124         (WebCore::localizedMediaControlElementString):
4125         (WebCore::localizedMediaControlElementHelpText):
4126         (WebCore::localizedMediaTimeDescription):
4127             New.
4128
4129 2009-08-25  Brent Fulgham  <bfulgham@webkit.org>
4130
4131         Build fix for Windows.
4132
4133         Revise Debug_Cairo build target to build testapi, jsc, WinLauncher,
4134         DumpRenderTree, and TestNetscapeAPI using WinCairo debug build
4135         settings so they link against the proper libraries.
4136
4137         * WebKit.vcproj/WebKit.sln:
4138
4139 2009-08-25  David Levin  <levin@chromium.org>
4140
4141         Reviewed by Adam Roben.
4142
4143         PLATFORM(CFNETWORK) should be USE(CFNETWORK).
4144         https://bugs.webkit.org/show_bug.cgi?id=28713
4145
4146         Also, moved the #if header section after the other #includes.
4147
4148         * WebError.cpp:
4149         (WebError::localizedDescription):
4150
4151 2009-08-24  Brent Fulgham  <bfulgham@webkit.org>
4152
4153         Reviewed by Steve Falkenburg.
4154
4155         Revise CFLite Debug build to emit DLL's with _debug label.
4156         https://bugs.webkit.org/show_bug.cgi?id=28695.
4157
4158         * WebKit.vcproj/WebKit.vcproj: Modify Debug_Cairo target to
4159           inherit from new debug_wincairo property sheet, instead of
4160           the current debug sheet. 
4161
4162 2009-08-22  Adam Barth  <abarth@webkit.org>
4163
4164         Revert 47684.  We're going to do this later once clients have had a
4165         chance to opt into the setting they like.
4166
4167         * WebPreferences.cpp:
4168         (WebPreferences::initializeDefaultSettings):
4169
4170 2009-08-22  Adam Barth  <abarth@webkit.org>
4171
4172         Reviewed by Eric Seidel.
4173
4174         Don't let local files access web URLs
4175         https://bugs.webkit.org/show_bug.cgi?id=28480
4176
4177         * WebPreferences.cpp:
4178         (WebPreferences::initializeDefaultSettings):
4179
4180 2009-08-20  Brian Weinstein  <bweinstein@apple.com>
4181
4182         Reviewed by Adam Roben.
4183
4184         Fix of <http://webkit.org/b/27850>. Panning by emulating Mouse Wheel Events breaks Google Maps.
4185         
4186         Switched to using RenderLayer::scrollByRecursively instead of emulating a mouse wheel,
4187         and switched to handling the hit testing in WebView from doing it as part of the mouse wheel event.
4188         One downside of this fix is that panning will not jump out of frames anymore (same behavior as pan-scrolling), but
4189         this is tracked in <http://webkit.org/b/28237>.
4190
4191         * WebView.cpp:
4192         (WebView::gestureNotify): Added hit testing here to figure out the node the user started the gesture on.
4193         (WebView::gesture): Switched from emulating mouse wheel events for panning to calling RenderLayer::scrollByRecursively.
4194         * WebView.h:
4195
4196 2009-08-18  Brian Weinstein  <bweinstein@apple.com>
4197
4198         Reviewed by Oliver Hunt.
4199
4200         Fix of <https://bugs.webkit.org/show_bug.cgi?id=28326> DRT on Windows doesn't support 
4201         LayoutTestController::setQuota or print a callback on UIDelegate::exceededDatabaseQuota.
4202         
4203         Added a setQuota interface method to IWebDatabaseManager and implemented it.
4204
4205         * Interfaces/IWebDatabaseManager.idl:
4206         * WebDatabaseManager.cpp:
4207         (WebDatabaseManager::setQuota):
4208         * WebDatabaseManager.h:
4209
4210 2009-08-18  Drew Wilson  <atwilson@google.com>
4211
4212         Unreviewed (build break).
4213
4214         Added missing include for WebWorkersPrivate.h.
4215
4216         * WebKitClassFactory.cpp:
4217
4218 2009-08-18  Peter Kasting  <pkasting@google.com>
4219
4220         Reviewed by Eric Seidel.
4221
4222         https://bugs.webkit.org/show_bug.cgi?id=28415
4223         Set svn:eol-style CRLF on all .sln and .vcproj files that don't already
4224         have it.
4225
4226         * WebKit.vcproj/InterfacesGenerated.vcproj:
4227
4228 2009-08-18  Drew Wilson  <atwilson@google.com>
4229
4230         Reviewed by Eric Seidel.
4231
4232         Need to extend DumpRenderTree to expose number of worker threads
4233         https://bugs.webkit.org/show_bug.cgi?id=28292
4234
4235         Defined/implemented COM interfaces to expose WorkerThread::workerThreadCount() for DumpRenderTree.
4236
4237         * ForEachCoClass.h:
4238         Added WebWorkersPrivate.
4239         * Interfaces/IWebWorkersPrivate.idl: Added.
4240         * Interfaces/WebKit.idl:
4241         Added WebWorkersPrivate.
4242         * WebKit.vcproj/Interfaces.vcproj:
4243         * WebKit.vcproj/WebKit.vcproj:
4244         * WebWorkersPrivate.cpp: Added.
4245         Implementation of the IWebWorkersPrivate COM interface, to expose workerThreadCount() for DumpRenderTree.
4246         (WebWorkersPrivate::QueryInterface):
4247         (WebWorkersPrivate::AddRef):
4248         (WebWorkersPrivate::Release):
4249         (WebWorkersPrivate::workerThreadCount):
4250         (WebWorkersPrivate::createInstance):
4251         (WebWorkersPrivate::WebWorkersPrivate):
4252         (WebWorkersPrivate::~WebWorkersPrivate):
4253         * WebWorkersPrivate.h: Added.
4254
4255 2009-08-17  Peter Kasting  <pkasting@google.com>
4256
4257         Reviewed by Steve Falkenburg.
4258
4259         https://bugs.webkit.org/show_bug.cgi?id=27323
4260         Only add Cygwin to the path when it isn't already there.  This avoids
4261         causing problems for people who purposefully have non-Cygwin versions of
4262         executables like svn in front of the Cygwin ones in their paths.
4263
4264         * WebKit.vcproj/Interfaces.vcproj:
4265         * WebKit.vcproj/InterfacesGenerated.vcproj:
4266         * WebKit.vcproj/WebKit.vcproj:
4267         * WebKit.vcproj/WebKitGUID.vcproj:
4268
4269 2009-08-17  Simon Fraser  <simon.fraser@apple.com>
4270
4271         Speculative fix for Windows build bustage.
4272
4273         * DOMHTMLClasses.cpp:
4274         (DOMHTMLElement::idName):
4275
4276 2009-08-13  Jon Honeycutt  <jhoneycutt@apple.com>
4277
4278         Part of <rdar://problem/6218721> No MSAA focus events fired for Webkit
4279         nightly (20866)
4280
4281         https://bugs.webkit.org/show_bug.cgi?id=20866
4282
4283         Reviewed by Oliver Hunt.
4284
4285         * AccessibleBase.cpp:
4286         (AccessibleBase::getAccessibilityObjectForChild):
4287         If the child ID is negative, negate it and treat it as an AXID.
4288
4289 2009-08-12  Brian Weinstein  <bweinstein@apple.com>
4290
4291         Reviewed by Adam Roben.
4292
4293         Fix of <rdar://6728361> Mouse wheel scrolling on a page with expanded drop down 
4294         list detaches drop down.
4295         
4296         Added a check in mouseWheel to see if our focus is currently in a popup, if so, close
4297         the popup (matches other browser behavior).
4298
4299         * WebView.cpp:
4300         (WebView::mouseWheel):
4301
4302 2009-08-12  Adam Roben  <aroben@apple.com>
4303
4304         Make WebPreferenceKeysPrivate.h available for client use
4305
4306         Reviewed by Dave Hyatt.
4307
4308         Fixes <http://webkit.org/b/28227>.
4309
4310         * WebKit.vcproj/WebKit.vcproj: Copy WebPreferenceKeysPrivate.h to
4311         $WebKitOutputDir, just like we do for a few other headers. Also let VS
4312         reorder some XML attributes.
4313
4314         * WebPreferenceKeysPrivate.h: Touched this file to force a build.
4315
4316 2009-08-11  Adam Roben  <aroben@apple.com>
4317
4318         Remove support for a window resizer within the WebView
4319
4320         Starting with Safari 4, there is never a window resizer inside the
4321         WebView, so we no longer need to support that functionality.
4322
4323         Fixes <http://webkit.org/b/28190> Remove support for a window resizer
4324         within the WebView
4325
4326         Reviewed by Dave Hyatt.
4327
4328         * Interfaces/IWebUIDelegatePrivate.idl: Replaced the delegate
4329         functions related to the window resizer with unused*() functions. We
4330         can't remove them entirely because we need to keep the vtable
4331         unchanged so new versions of WebKit will work with old versions of
4332         Safari (e.g., for nightlies and WebKit development).