WebKit2: Use CFNetwork Sessions API.
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2011-03-06  Jessie Berlin  <jberlin@apple.com>
2
3         Reviewed by Sam Weinig.
4
5         WebKit2: Use CFNetwork Sessions API.
6         https://bugs.webkit.org/show_bug.cgi?id=55435.
7
8         When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
9         Private Browsing Storage Session.
10
11         * WebCoreSupport/WebSystemInterface.mm:
12         (InitWebCoreSystemInterface):
13         Add support for using the new WKSI functions in WebCore.
14
15 2011-03-05  Ilya Sherman  <isherman@chromium.org>
16
17         Reviewed by Darin Adler.
18
19         HTMLInputElement::setValue() should schedule change event when the element is focused
20         In service of https://code.google.com/p/chromium/issues/detail?id=42716
21         https://bugs.webkit.org/show_bug.cgi?id=53160
22
23         * DOM/WebDOMOperations.mm:
24         (-[DOMHTMLInputElement _setValueForUser:]): Expose HTMLInputElement::setValueForUser() to tests
25         * DOM/WebDOMOperationsPrivate.h:
26         * WebView/WebViewInternal.h:
27
28 2011-03-04  Jia Pu  <jpu@apple.com>
29
30         Reviewed by Darin Adler.
31
32         On Mac, the bounding box sent to EditorClient::showCorrectionPanel() is incorrect when the correction occurs in an iframe.
33         https://bugs.webkit.org/show_bug.cgi?id=55717
34         <rdar://problem/9018127>
35
36         With the change in WebCore, the bounding box passed into EditorClient::showCorrectionPanel()
37         is already in window coordinate. We don't need to do further conversion anymore.
38
39         * WebCoreSupport/WebEditorClient.mm:
40         (WebEditorClient::showCorrectionPanel):
41
42 2011-03-04  Jessie Berlin  <jberlin@apple.com>
43
44         Reviewed by Maciej Stachowiak.
45
46         WebKit2: Use CFNetwork Sessions API.
47         https://bugs.webkit.org/show_bug.cgi?id=55435.
48
49         When Private Browsing is enabled, get the cached url response from the cache associated with
50         the Private Browsing Storage Session.
51
52         * WebView/WebView.mm:
53         (-[WebView _cachedResponseForURL:]):
54
55 2011-03-03  Anders Carlsson  <andersca@apple.com>
56
57         Reviewed by Sam Weinig.
58
59         Get rid of Page::globalHistoryItem
60         https://bugs.webkit.org/show_bug.cgi?id=55738
61
62         * WebCoreSupport/WebFrameLoaderClient.h:
63         * WebCoreSupport/WebFrameLoaderClient.mm:
64         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
65         Get the current history item and update it using -[WebView _setGlobalHistoryItem:].
66     
67         * WebView/WebView.mm:
68         (-[WebView _globalHistoryItem]):
69         (-[WebView _setGlobalHistoryItem:]):
70         Set _globalHistoryItem ivar.
71
72         * WebView/WebViewData.h:
73         * WebView/WebViewData.mm:
74         Add _globalHistoryItem ivar.
75
76 2011-03-03  Brady Eidson  <beidson@apple.com>
77
78         Reviewed by Darin Adler.
79
80         https://bugs.webkit.org/show_bug.cgi?id=55721
81         Global IconDatabase should be returned by reference, not as a pointer
82
83         * Misc/WebCoreStatistics.mm:
84         (+[WebCoreStatistics iconPageURLMappingCount]):
85         (+[WebCoreStatistics iconRetainedPageURLCount]):
86         (+[WebCoreStatistics iconRecordCount]):
87         (+[WebCoreStatistics iconsWithDataCount]):
88         * Misc/WebIconDatabase.mm:
89         (-[WebIconDatabase init]):
90         (-[WebIconDatabase iconForURL:withSize:cache:]):
91         (-[WebIconDatabase iconURLForURL:]):
92         (-[WebIconDatabase defaultIconWithSize:]):
93         (-[WebIconDatabase retainIconForURL:]):
94         (-[WebIconDatabase releaseIconForURL:]):
95         (-[WebIconDatabase isEnabled]):
96         (-[WebIconDatabase setEnabled:]):
97         (-[WebIconDatabase removeAllIcons]):
98         (+[WebIconDatabase _checkIntegrityBeforeOpening]):
99         (-[WebIconDatabase _startUpIconDatabase]):
100         (-[WebIconDatabase _applicationWillTerminate:]):
101         (-[WebIconDatabase _resetCachedWebPreferences:]):
102         (importToWebCoreFormat):
103         * WebView/WebView.mm:
104         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
105
106 2011-03-03  Jessie Berlin  <jberlin@apple.com>
107
108         Reviewed by Adam Roben.
109
110         WebKit2: Use CFNetwork Sessions API.
111         https://bugs.webkit.org/show_bug.cgi?id=55435.
112
113         Set the Private Browsing Storage Session on requests when Private Browsing is enabled.
114
115         * WebCoreSupport/WebSystemInterface.mm:
116         (InitWebCoreSystemInterface):
117         Support using WKCopyRequestWithStorageSession in WebCore.
118
119 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
120
121         Reviewed by Darin Adler.
122
123         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
124         https://bugs.webkit.org/show_bug.cgi?id=55633
125         <rdar://problem/8963023>
126
127         * WebCoreSupport/WebChromeClient.h:
128         * WebCoreSupport/WebChromeClient.mm:
129         Removed tabsToLinks(). Mac WebKit already implements keyboardUIMode().
130
131         * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
132         Removed an incorrect comment. We actually get a value of 2 on Snow Leopard, and we don't
133         require both bits to be set. The rest of the comment might be wrong too, but I'm not sure,
134         so I've preserved it.
135
136 2011-03-02  Jessie Berlin  <jberlin@apple.com>
137
138         Rubber-stamped by Dan Bernstein.
139
140         Fix crashes in private browsing tests in WK1 on Snow Leopard.
141
142         * WebCoreSupport/WebSystemInterface.mm:
143         (InitWebCoreSystemInterface):
144         Put the INIT call for wkCreatePrivateStorageSession outside of the
145         #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
146         guards.
147
148 2011-03-02  Jessie Berlin  <jberlin@apple.com>
149
150         Reviewed by Adam Roben.
151
152         WebKit2: Use CFNetwork Sessions API.
153         https://bugs.webkit.org/show_bug.cgi?id=55435.
154
155         Add the ability to create a Private Browsing Storage Session.
156
157         * WebCoreSupport/WebSystemInterface.mm:
158         (InitWebCoreSystemInterface):
159         Support calling wkCreatePrivateStorageSession from WebCore.
160
161 2011-03-02  Daniel Cheng  <dcheng@chromium.org>
162
163         Reviewed by David Levin.
164
165         Add feature define for data transfer items
166         https://bugs.webkit.org/show_bug.cgi?id=55510
167
168         * Configurations/FeatureDefines.xcconfig:
169
170 2011-03-02  Sam Weinig  <sam@webkit.org>
171
172         Reviewed by Anders Carlsson.
173
174         Fix remaining localization issues by piping all localized strings through WebCore's
175         localization bottleneck.
176         <rdar://problem/8728860>
177
178         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
179         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
180         * Misc/WebKitErrors.m:
181         * Misc/WebLocalizableStringsInternal.h: Added.
182         * Misc/WebLocalizableStringsInternal.mm: Added.
183         (WebLocalizedStringInternal):
184         * Panels/WebAuthenticationPanel.m:
185         (-[WebAuthenticationPanel setUpForChallenge:]):
186         * Plugins/Hosted/NetscapePluginHostManager.mm:
187         (WebKit::NetscapePluginHostManager::spawnPluginHost):
188         * WebCoreSupport/WebEditorClient.mm:
189         (undoNameForEditAction):
190         * WebCoreSupport/WebInspectorClient.mm:
191         (WebInspectorFrontendClient::updateWindowTitle):
192         (-[WebInspectorWindowController validateUserInterfaceItem:]):
193         * WebCoreSupport/WebKeyGenerator.m:
194         (-[WebKeyGenerator strengthMenuItemTitles]):
195         (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]):
196         * WebCoreSupport/WebPlatformStrategies.mm:
197         * WebView/WebHTMLView.mm:
198         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
199         * WebView/WebPDFView.mm:
200         (-[WebPDFView menuForEvent:]):
201
202 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
203
204         Reviewed by Adam Roben.
205
206         Part of WebKit2: Need a way to send notifications to client when cookies change
207         https://bugs.webkit.org/show_bug.cgi?id=55427
208         <rdar://problem/9056027>
209         
210         Add stubs for CookiesStrategy on Mac WebKit1.
211
212         * WebCoreSupport/WebPlatformStrategies.h:
213         * WebCoreSupport/WebPlatformStrategies.mm:
214         (WebPlatformStrategies::createCookiesStrategy):
215         (WebPlatformStrategies::notifyCookiesChanged):
216
217 2011-03-01  Philippe Normand  <pnormand@igalia.com>
218
219         Reviewed by Eric Carlson.
220
221         [GStreamer] support in mac video fullscreen controller
222         https://bugs.webkit.org/show_bug.cgi?id=52280
223
224         Factored the code to configure the video overlay in a new private
225         method of the controller and added GStreamer support to it.
226
227         * WebView/WebVideoFullscreenController.h:
228         * WebView/WebVideoFullscreenController.mm:
229         (-[WebVideoFullscreenController setupVideoOverlay:]):
230         (-[WebVideoFullscreenController windowDidLoad]):
231         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
232         (-[WebVideoFullscreenController windowDidExitFullscreen]):
233
234 2011-02-23  Joseph Pecoraro  <joepeck@webkit.org>
235
236         Reviewed by Timothy Hatcher.
237
238         All Console Messages should be passed to ChromeClients.
239         https://bugs.webkit.org/show_bug.cgi?id=54926
240
241         Add a new private UIDelegate method, -webView:addMessageToConsole:withSource:,
242         which supersedes -webView:addMessageToConsole if it exists. The new delegate
243         does not filter to only JavaScript originated console messages. The old
244         delegate is left around for clients that expect filtered messages, like
245         DashCode and older versions of Safari.
246
247         The dictionary message passed to the delegate now includes more information
248         about the message source, type, and level.
249
250         * WebCoreSupport/WebChromeClient.mm:
251         (stringForMessageSource):
252         (stringForMessageType):
253         (stringForMessageLevel):
254         (WebChromeClient::addMessageToConsole):
255         * WebView/WebUIDelegatePrivate.h:
256
257 2011-03-01  Levi Weintraub  <leviw@chromium.org>
258
259         Reviewed by Ryosuke Niwa.
260
261         Stop instantiating legacy editing Positions in VisiblePosition
262         https://bugs.webkit.org/show_bug.cgi?id=52919
263
264         Changing usage of legacy VisiblePosition constructor. Since we were dealing
265         with positions from DOM Ranges, we're guaranteed a parent-anchored position.
266
267         * WebView/WebFrame.mm:
268         (-[WebFrame _caretRectAtPosition:affinity:]):
269         * WebView/WebFrameInternal.h:
270         * WebView/WebTextCompletionController.mm:
271         (-[WebTextCompletionController doCompletion]):
272
273 2011-03-01  Sam Weinig  <sam@webkit.org>
274
275         Reviewed by Timothy Hatcher.
276
277         WebKit2 needs to be made localizable
278         https://bugs.webkit.org/show_bug.cgi?id=55483
279
280         * WebCoreSupport/WebPlatformStrategies.mm:
281         Use WebCore's localizedString function instead of WebLocalizableStrings
282         since WebCore is now responsible for localization.
283
284 2011-02-25 Steve Block <steveblock@google.com>
285
286         Reviewed by Jeremy Orlow.
287
288         Bridge.h should not include BridgeJSC.h
289         https://bugs.webkit.org/show_bug.cgi?id=55212
290
291         Include BridgeJSC.h directly instead.
292
293         * Plugins/Hosted/ProxyInstance.h:
294         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
295
296 2011-02-28  Chang Shu  <cshu@webkit.org>
297
298         Reviewed by Ryosuke Niwa.
299
300         Remove the support of Frame::isContentEditable and its dependencies.
301         https://bugs.webkit.org/show_bug.cgi?id=54292
302
303         Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
304
305         * WebCoreSupport/WebEditorClient.h:
306         * WebCoreSupport/WebEditorClient.mm:
307         * WebView/WebView.mm:
308         (-[WebView setEditable:]):
309         (-[WebView isEditable]):
310         * WebView/WebViewData.h:
311
312 2011-02-28  Oliver Hunt  <oliver@apple.com>
313
314         Reviewed by Gavin Barraclough.
315
316         Make ScopeChainNode GC allocated
317         https://bugs.webkit.org/show_bug.cgi?id=55283
318
319         More updates for the absence of the ScopeChain class
320
321         * WebView/WebScriptDebugDelegate.mm:
322         (-[WebScriptCallFrame scopeChain]):
323
324 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
325
326         Reviewed by Pavel Feldman.
327
328         DumpRenderTree should reset frame opener between tests.
329         https://bugs.webkit.org/show_bug.cgi?id=54874
330
331         Added clearOpener method to WebFramePrivate.
332
333         * WebView/WebFrame.mm:
334         (-[WebFrame _clearOpener]):
335         * WebView/WebFramePrivate.h:
336
337 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
338
339         Unreviewed, rolling out r79764.
340         http://trac.webkit.org/changeset/79764
341         https://bugs.webkit.org/show_bug.cgi?id=55295
342
343         "broke Chromium builds" (Requested by rniwa on #webkit).
344
345         * WebView/WebFrame.mm:
346         * WebView/WebFramePrivate.h:
347
348 2011-02-26  Yongjun Zhang  <yongjun_zhang@apple.com>
349
350         Reviewed by David Kilzer.
351
352         https://bugs.webkit.org/show_bug.cgi?id=48781
353
354         Add a resource load delegate method to query if WebCore should paint the default broken image for failed images.
355
356         Add a new resource load client method (shouldPaintBrokenImage).  WebKit client can decide if WebCore
357         should paint the default broken image when an image fails to load or decode.  The method also passes the
358         URL of the failed image.
359
360         * WebCoreSupport/WebFrameLoaderClient.h:
361         * WebCoreSupport/WebFrameLoaderClient.mm:
362         (WebFrameLoaderClient::shouldPaintBrokenImage):
363         * WebView/WebDelegateImplementationCaching.h:
364         * WebView/WebDelegateImplementationCaching.mm: Added case for passing one object.
365         (CallResourceLoadDelegateReturningBoolean):
366         * WebView/WebResourceLoadDelegatePrivate.h:
367         * WebView/WebView.mm:
368         (-[WebView _cacheResourceLoadDelegateImplementations]):
369
370 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
371
372         Reviewed by Pavel Feldman.
373
374         DumpRenderTree should reset frame opener between tests.
375         https://bugs.webkit.org/show_bug.cgi?id=54874
376
377         Added clearOpener method to WebFramePrivate.
378
379         * WebView/WebFrame.mm:
380         (-[WebFrame _clearOpener]):
381         * WebView/WebFramePrivate.h:
382
383 2011-02-25  Mark Rowe  <mrowe@apple.com>
384
385         <rdar://problem/8902546> Build fix.
386
387         * Misc/QuickDrawCompatibility.h:
388
389 2011-02-24  Anders Carlsson  <andersca@apple.com>
390
391         Fix clang build.
392
393         * WebCoreSupport/WebKeyGenerator.m:
394         (toWebCertificateParseResult):
395         (-[WebKeyGenerator addCertificatesToKeychainFromData:]):
396         * WebView/WebTextCompletionController.mm:
397
398 2011-02-24  Peter Kasting  <pkasting@google.com>
399
400         Reviewed by Eric Seidel.
401
402         Drop the "U; " encryption level from the User Agent string.
403         https://bugs.webkit.org/show_bug.cgi?id=54566
404
405         * WebView/WebView.mm:
406         (+[WebView _standardUserAgentWithApplicationName:]):
407
408 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
409
410         Unreviewed, rolling out r79570.
411         http://trac.webkit.org/changeset/79570
412         https://bugs.webkit.org/show_bug.cgi?id=54874
413
414         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
415         was not updated
416
417         * WebView/WebFrame.mm:
418         * WebView/WebFramePrivate.h:
419
420 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
421
422         Reviewed by Alexey Proskuryakov.
423
424         DumpRenderTree should reset frame opener between tests.
425         https://bugs.webkit.org/show_bug.cgi?id=54874
426
427         Added clearOpener method to WebFramePrivate.
428
429         * WebView/WebFrame.mm:
430         (-[WebFrame _clearOpener]):
431         * WebView/WebFramePrivate.h:
432
433 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
434
435         Reviewed by Alexey Proskuryakov.
436
437         Drop the language tag part from the User Agent string
438         https://bugs.webkit.org/show_bug.cgi?id=54560
439
440         * WebView/WebView.mm:
441         (+[WebView _standardUserAgentWithApplicationName:]): Drop the
442         language tag part.
443
444 2011-02-22  Brady Eidson  <beidson@apple.com>
445
446         Reviewed by Anders Carlsson.
447
448         Part of <rdar://problem/8762042> and https://bugs.webkit.org/show_bug.cgi?id=54514
449         API to view and delete Application Cache data by origin.
450
451         * WebCoreSupport/WebApplicationCache.mm:
452         (+[WebApplicationCache deleteAllApplicationCaches]): Move this implementation into WebCore itself.
453
454 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
455
456         Reviewed by Kent Tamura.
457
458         Rename Position::node() to Position::deprecatedNode()
459         https://bugs.webkit.org/show_bug.cgi?id=54622
460
461         * WebView/WebFrame.mm:
462         (-[WebFrame _smartDeleteRangeForProposedRange:]):
463
464 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
465
466         Reviewed by Kent Tamura.
467
468         Rename Position::node() to Position::deprecatedNode()
469         https://bugs.webkit.org/show_bug.cgi?id=54622
470         
471         Done the rename.
472
473         * WebView/WebFrame.mm:
474         (-[WebFrame _smartDeleteRangeForProposedRange:]): Since newStart and newEnd are parent-anchored,
475         use containerNode() and offsetInContainerNode() instead of deprecated member functions.
476
477 2011-02-18  Gavin Barraclough  <barraclough@apple.com>
478
479         Reviewed by Sam Weinig.
480
481         Bug 54786 - Devirtualize JSCell::classInfo()
482
483         Instead of making a virtual function call, add a pointer to the ClassInfo
484         onto Structure.
485
486         This removes a virtual function call, and paves the way towards removing all
487         the createStructure methods, and StructureFlags/AnonymousSlotCount properties
488         (these should be able to move onto ClassInfo).
489
490         Calls to Structure::create must now pass a pointer to the ClassInfo for the
491         structure. All objects now have a ClassInfo pointer, non-object cell types
492         still do not.
493
494         Changes are most mechanical, involving three steps:
495             * Remove virtual classInfo() methods.
496             * Add &s_info parameter to calls to Structure::create.
497             * Rename ClassInfo static members on classes from 'info' to 's_info',
498               for consistency.
499
500         * Plugins/Hosted/ProxyInstance.mm:
501         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
502         (WebKit::ProxyRuntimeMethod::createStructure):
503         * Plugins/Hosted/ProxyRuntimeObject.h:
504         (WebKit::ProxyRuntimeObject::createStructure):
505         * Plugins/Hosted/ProxyRuntimeObject.mm:
506         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
507         * WebView/WebView.mm:
508         (aeDescFromJSValue):
509
510 2011-02-19  Brian Ryner  <bryner@chromium.org>
511
512         Reviewed by Adam Barth.
513
514         Add missing #include of DocumentLoader.h, needed since the transitive
515         include through Document.h is removed.
516         https://bugs.webkit.org/show_bug.cgi?id=50489
517
518         * WebView/WebFrame.mm:
519
520 2011-02-19  Charlie Reis  <creis@chromium.org>
521
522         Reviewed by Mihai Parparita.
523
524         Ensure loading has stopped in HistoryController::goToItem
525         https://bugs.webkit.org/show_bug.cgi?id=54517
526
527         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
528
529         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
530
531         * WebCoreSupport/WebFrameLoaderClient.mm:
532         (WebFrameLoaderClient::shouldStopLoadingForHistoryItem): Added.
533         * WebCoreSupport/WebFrameLoaderClient.h:
534
535 2011-02-16  David Hyatt  <hyatt@apple.com>
536
537         Reviewed by Dan Bernstein.
538
539         https://bugs.webkit.org/show_bug.cgi?id=54244
540         
541         Convert the line box tree to floating point and eliminate font rounding hacks.  This patch removes all of the rounding
542         hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
543         
544         The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
545         been changed as well.
546         
547         In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
548         
549         Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
550         
551         Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
552         still have a precise floating point position.
553
554         Justification will now allow subpixel positioning to occur as well.  Platforms that don't support subpixel positioning should already
555         be rounding justification spacing in their font code.
556
557         Many layout test results change on Mac, since rounding hacks were used there and are now gone.
558
559         * Misc/WebKitNSStringExtras.mm:
560         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
561         (-[NSString _web_widthWithFont:]):
562
563 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
564
565         Reviewed by Adam Roben.
566
567         HTML5 <details> and <summary>: localized text
568         https://bugs.webkit.org/show_bug.cgi?id=54260
569
570         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
571         provide the default label to be used by a <details> tag that has no <summary> child.
572
573         * WebCoreSupport/WebPlatformStrategies.h:
574         * WebCoreSupport/WebPlatformStrategies.mm:
575         (WebPlatformStrategies::defaultDetailsSummaryText):
576
577 2011-02-16  Matthew Delaney  <mdelaney@apple.com>
578
579         Reviewed by Simon Fraser.
580
581         Allow acceleratesDrawing for WebKit2
582         https://bugs.webkit.org/show_bug.cgi?id=54511
583
584         Plumb through preference for accelerated drawing.
585         
586         * WebView/WebPreferenceKeysPrivate.h:
587         * WebView/WebPreferences.mm:
588         (+[WebPreferences initialize]):
589         (-[WebPreferences acceleratedDrawingEnabled]):
590         (-[WebPreferences setAcceleratedDrawingEnabled:]):
591         * WebView/WebPreferencesPrivate.h:
592
593 2011-02-15  David Kilzer  <ddkilzer@apple.com>
594
595         <http://webkit.org/b/54505> Move -[WebDynamicScrollBarsView inProgrammaticScroll] to WebDynamicScrollBarsViewInternal.h
596
597         Reviewed by Darin Adler.
598
599         * WebView/WebDynamicScrollBarsView.h:
600         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Removed
601         declaration.
602         * WebView/WebDynamicScrollBarsView.mm:
603         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Moved
604         implementation into correct category.
605         * WebView/WebDynamicScrollBarsViewInternal.h:
606         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Added
607         declaration.
608         * WebView/WebHTMLView.mm: Included
609         WebDynamicScrollBarsViewInternal.h instead of
610         WebDynamicScrollBarsView.h.
611
612 2011-02-14  Oliver Hunt  <oliver@apple.com>
613
614         Reviewed by Gavin Barraclough and Geoff Garen.
615
616         Refactor handles and weak pointers to become nicer and more automatic
617         https://bugs.webkit.org/show_bug.cgi?id=54415
618
619         Update to use Global<> instead of ProtectedPtr, and refactored slightly
620         to get global data to places it's needed for when we're assigning to
621         Global<>s
622
623         * ForwardingHeaders/collector/handles/Global.h: Added.
624         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
625         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
626         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get):
627         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
628         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
629         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
630         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
631         (WebKit::NetscapePluginInstanceProxy::evaluate):
632         (WebKit::NetscapePluginInstanceProxy::invoke):
633         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
634         (WebKit::NetscapePluginInstanceProxy::construct):
635         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
636         * WebView/WebScriptDebugger.h:
637         * WebView/WebScriptDebugger.mm:
638         (WebScriptDebugger::WebScriptDebugger):
639
640 2011-02-15  Jia Pu  <jpu@apple.com>
641
642         Reviewed by Darin Adler.
643
644         Autocorrection should respect undo.
645         https://bugs.webkit.org/show_bug.cgi?id=52221
646         <rdar://problem/8663399>
647
648         Please see WebCore/ChangeLog for detailed description.
649
650         * WebCoreSupport/WebEditorClient.h: Updated for the new function declared in EditorClient.
651
652         * WebCoreSupport/WebEditorClient.mm:
653         (WebEditorClient::recordAutocorrectionResponse): Ditto.
654
655         * WebView/WebFrame.mm:
656         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
657              Adopted new signature of ReplaceSelectionCommand::create().
658
659 2011-02-15  David Kilzer  <ddkilzer@apple.com>
660
661         <http://webkit.org/b/54485> Fix spelling of -inProgramaticScroll
662
663         Reviewed by Darin Adler.
664
665         * WebView/WebDynamicScrollBarsView.h:
666         * WebView/WebDynamicScrollBarsView.mm:
667         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Renamed from
668         -inProgramaticScroll.
669         * WebView/WebHTMLView.mm:
670         (-[WebHTMLView _frameOrBoundsChanged]): Corrected method name.
671
672 2011-02-15  Kenneth Russell  <kbr@google.com>
673
674         Reviewed by Darin Fisher.
675
676         Allow controlling minimum DOMTimer interval on a per-page basis
677         https://bugs.webkit.org/show_bug.cgi?id=54312
678
679         Added needed methods to implement LayoutTestController's new
680         setMinimumTimerInterval method.
681
682         * WebView/WebView.mm:
683         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
684         (+[WebView _defaultMinimumTimerInterval]):
685         (-[WebView _setMinimumTimerInterval:]):
686         * WebView/WebViewPrivate.h:
687
688 2011-02-11  Geoffrey Garen  <ggaren@apple.com>
689
690         Reviewed by Oliver Hunt.
691
692         A little more encapsulation for the heap: Removed CollectorHeapIterator
693         https://bugs.webkit.org/show_bug.cgi?id=54298
694
695         * Misc/WebCoreStatistics.mm:
696         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
697         (+[WebCoreStatistics javaScriptObjectTypeCounts]): Updated for new typedef.
698
699 2011-02-10  Nate Chapin  <japhet@chromium.org>
700
701         Reviewed by Adam Barth.
702
703         Update calls to DocumentWriter.
704         https://bugs.webkit.org/show_bug.cgi?id=50489
705
706         * WebView/WebFrame.mm:
707         (-[WebFrame _canProvideDocumentSource]):
708
709 2011-02-10  Chris Fleizach  <cfleizach@apple.com>
710
711         Reviewed by Anders Carlsson.
712
713         AX: AX needs to stop using WebCoreViewFactory
714         https://bugs.webkit.org/show_bug.cgi?id=54153
715
716         * WebCoreSupport/WebSystemInterface.mm:
717         (InitWebCoreSystemInterface):
718
719 2011-02-10  Peter Varga  <pvarga@webkit.org>
720
721         Reviewed by Csaba Osztrogonác.
722
723         Remove PCRE source from trunk
724         https://bugs.webkit.org/show_bug.cgi?id=54188
725
726         * ForwardingHeaders/pcre/pcre.h: Removed.
727
728 2011-02-09  Pavel Feldman  <pfeldman@chromium.org>
729
730         Reviewed by Yury Semikhatsky.
731
732         Web Inspector: follow up on InspectorAgent split -
733         removing unnecessary methods from InspectorController.
734         https://bugs.webkit.org/show_bug.cgi?id=54093
735
736         * WebInspector/WebInspector.mm:
737         (-[WebInspector showConsole:]):
738         (-[WebInspector stopProfilingJavaScript:]):
739
740 2011-02-08  Dan Bernstein  <mitz@apple.com>
741
742         Reviewed by Jon Honeycutt and Maciej Stachowiak.
743
744         <rdar://problem/8959420> Find in Mail no longer cycles around
745
746         * WebView/WebHTMLView.mm:
747         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Set
748         the wrap option according to the flag.
749
750 2011-02-08  Sheriff Bot  <webkit.review.bot@gmail.com>
751
752         Unreviewed, rolling out r77980.
753         http://trac.webkit.org/changeset/77980
754         https://bugs.webkit.org/show_bug.cgi?id=54043
755
756         "Crashes on Windows and Linux..." (Requested by leviw on
757         #webkit).
758
759         * WebView/WebFrame.mm:
760         (-[WebFrame _caretRectAtNode:offset:affinity:]):
761         * WebView/WebFrameInternal.h:
762         * WebView/WebTextCompletionController.mm:
763         (-[WebTextCompletionController doCompletion]):
764
765 2011-02-08  Levi Weintraub  <leviw@chromium.org>
766
767         Reviewed by Ryosuke Niwa.
768
769         Stop instantiating legacy editing Positions in VisiblePosition
770         https://bugs.webkit.org/show_bug.cgi?id=52919
771
772         Changing usage of legacy VisiblePosition constructor. Since we were dealing
773         with positions from DOM Ranges, we're guaranteed a parent-anchored position.
774
775         * WebView/WebFrame.mm:
776         (-[WebFrame _caretRectAtPosition:affinity:]):
777         * WebView/WebFrameInternal.h:
778         * WebView/WebTextCompletionController.mm:
779         (-[WebTextCompletionController doCompletion]):
780
781 2011-02-08  Adam Barth  <abarth@webkit.org>
782
783         Reviewed by Eric Seidel.
784
785         Remove orphan code from old parser
786         https://bugs.webkit.org/show_bug.cgi?id=53984
787
788         * WebCoreSupport/WebChromeClient.h:
789
790 2011-02-02  Ilya Tikhonovsky  <loislo@chromium.org>
791
792         Reviewed by Yury Semikhatsky.
793
794         Web Inspector: move InspectorController's methods from InspectorAgent to InspectorController.
795
796         https://bugs.webkit.org/show_bug.cgi?id=53169
797
798         Minor change enforced by major changes in WebCore/inspector/InspectorController.
799
800         * WebInspector/WebInspector.mm:
801         (-[WebInspector isTimelineProfilingEnabled]):
802
803 2011-02-07  Enrica Casucci  <enrica@apple.com>
804
805         Reviewed Adam Roben and Darin Adler.
806
807         WebKit2: drag and drop support on Windows.
808         https://bugs.webkit.org/show_bug.cgi?id=52775
809
810         Removed createDragImageForLink from DragClient.
811
812         * WebCoreSupport/WebDragClient.h:
813         * WebCoreSupport/WebDragClient.mm:
814         (WebDragClient::startDrag):
815
816 2011-02-03  Yury Semikhatsky  <yurys@chromium.org>
817
818         Reviewed by Pavel Feldman.
819
820         Web Inspector: remove settings related methods from InspectorClient
821         https://bugs.webkit.org/show_bug.cgi?id=53686
822
823         * WebCoreSupport/WebInspectorClient.h:
824         * WebCoreSupport/WebInspectorClient.mm:
825         (WebInspectorClient::openInspectorFrontend):
826         (WebInspectorFrontendClient::WebInspectorFrontendClient):
827
828 2011-02-03  James Kozianski  <koz@chromium.org>
829
830         Reviewed by Dimitri Glazkov.
831
832         Add navigator.registerProtocolHandler behind a flag.
833         https://bugs.webkit.org/show_bug.cgi?id=52609
834
835         * Configurations/FeatureDefines.xcconfig:
836
837 2011-02-03  Adam Langley  <agl@chromium.org>
838
839         Reviewed by Adam Barth.
840
841         Plumb mixed script URL to FrameLoaderClient
842         https://bugs.webkit.org/show_bug.cgi?id=52384
843
844         Regressions covered by http/tests/security/mixedContent/*
845
846         * WebCoreSupport/WebFrameLoaderClient.h:
847         * WebCoreSupport/WebFrameLoaderClient.mm:
848         (WebFrameLoaderClient::didRunInsecureContent):
849
850 2011-02-03  Beth Dakin  <bdakin@apple.com>
851
852         Reviewed by Sam Weinig.
853
854         Fix for <rdar://problem/8944544> Ability to animate track
855         for WKPainter scrollers
856
857         * WebCoreSupport/WebSystemInterface.mm:
858         (InitWebCoreSystemInterface):
859
860 2011-02-02  Mark Rowe  <mrowe@apple.com>
861
862         Reviewed by Beth Dakin.
863
864         <rdar://problem/8928367> Crash when loading canvas pages inside HTMLCanvasElement::createImageBuffer().
865
866         * WebCoreSupport/WebSystemInterface.mm:
867         (InitWebCoreSystemInterface): Add some missing initializers.
868
869 2011-02-02  Steve Lacey  <sjl@chromium.org>
870
871         Reviewed by Eric Carlson.
872
873         Implement basic media statistics on media elements.
874         https://bugs.webkit.org/show_bug.cgi?id=53322
875
876         * Configurations/FeatureDefines.xcconfig:
877
878 2011-02-01  Sam Weinig  <sam@webkit.org>
879
880         Reviewed by Beth Dakin.
881
882         Part 2 for <rdar://problem/8492788>
883         Adopt WKScrollbarPainterController
884
885         Use header detection to define scrollbar painting controller #define.
886
887         * WebCoreSupport/WebSystemInterface.mm:
888         (InitWebCoreSystemInterface):
889
890 2011-02-01  David Hyatt  <hyatt@apple.com>
891
892         Reviewed by Oliver Hunt.
893
894         https://bugs.webkit.org/show_bug.cgi?id=53520
895         
896         Remove the physical terminology from IntRect and FloatRect.
897         
898         Now that we have flipped RenderBlocks for vertical-rl and horizontal-bt writing modes,
899         we need to update our terminology to be more accurate.
900
901         I'm borrowing a page from AppKit here (which also supports flipped NSViews) and
902         renaming right() and bottom() to maxX() and maxY().  These terms remain accurate
903         even for flipped rectangles.
904
905         * WebView/WebHTMLView.mm:
906         (setNeedsDisplayInRect):
907
908 2011-02-01  Beth Dakin  <bdakin@apple.com>
909
910         Reviewed by Sam Weinig.
911
912         Fix for <rdar://problem/8492788> Adopt WKScrollbarPainterController
913
914         * WebCoreSupport/WebSystemInterface.mm:
915         (InitWebCoreSystemInterface):
916
917 2011-02-01  Dave Hyatt  <hyatt@apple.com>
918
919         Reviewed by Darin Adler.
920
921         https://bugs.webkit.org/show_bug.cgi?id=46422, make printing and pagination work
922         with vertical text.
923
924         Change printing functions to check writing-mode and properly swap width and height
925         as needed.
926
927         * WebView/WebDynamicScrollBarsView.mm:
928         (-[WebDynamicScrollBarsView setScrollOrigin:updatePositionAtAll:immediately:]):
929         * WebView/WebFrame.mm:
930         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
931         * WebView/WebFrameInternal.h:
932         * WebView/WebHTMLView.mm:
933         (-[WebHTMLView _web_setPrintingModeRecursive]):
934         (-[WebHTMLView _web_clearPrintingModeRecursive]):
935         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
936         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]):
937         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
938         (-[WebHTMLView _endPrintMode]):
939         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
940         (-[WebHTMLView _endScreenPaginationMode]):
941         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
942         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:maximumPageLogicalWidth:adjustViewSize:paginateScreenContent:]):
943         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
944         (-[WebHTMLView _scaleFactorForPrintOperation:]):
945         (-[WebHTMLView setPageWidthForPrinting:]):
946         (-[WebHTMLView knowsPageRange:]):
947
948 2011-01-31  Oliver Hunt  <oliver@apple.com>
949
950         Convert markstack to a slot visitor API
951         https://bugs.webkit.org/show_bug.cgi?id=53219
952
953         rolling r77098, r77099, r77100, r77109, and
954         r77111 back in, along with a few more Qt fix attempts.
955
956         * WebView/WebScriptDebugDelegate.mm:
957         (-[WebScriptCallFrame scopeChain]):
958
959 2011-01-30  Csaba Osztrogonác  <ossy@webkit.org>
960
961         Unreviewed, rolling out r77098, r77099, r77100, r77109, and
962         r77111.
963         http://trac.webkit.org/changeset/77098
964         http://trac.webkit.org/changeset/77099
965         http://trac.webkit.org/changeset/77100
966         http://trac.webkit.org/changeset/77109
967         http://trac.webkit.org/changeset/77111
968         https://bugs.webkit.org/show_bug.cgi?id=53219
969
970         Qt build is broken
971
972         * WebView/WebScriptDebugDelegate.mm:
973         (-[WebScriptCallFrame scopeChain]):
974
975 2011-01-30  Oliver Hunt  <oliver@apple.com>
976
977         Convert markstack to a slot visitor API
978         https://bugs.webkit.org/show_bug.cgi?id=53219
979
980         rolling r77006 and r77020 back in.
981
982         * WebView/WebScriptDebugDelegate.mm:
983         (-[WebScriptCallFrame scopeChain]):
984
985 2011-01-28  Geoffrey Garen  <ggaren@apple.com>
986
987         Reviewed by Maciej Stachowiak.
988
989         Some more Heap cleanup.
990         https://bugs.webkit.org/show_bug.cgi?id=53357
991
992         Updated for JavaScriptCore changes.
993
994         * Misc/WebCoreStatistics.mm:
995         (+[WebCoreStatistics memoryStatistics]):
996
997 2011-01-28  Sheriff Bot  <webkit.review.bot@gmail.com>
998
999         Unreviewed, rolling out r77006 and r77020.
1000         http://trac.webkit.org/changeset/77006
1001         http://trac.webkit.org/changeset/77020
1002         https://bugs.webkit.org/show_bug.cgi?id=53360
1003
1004         "Broke Windows tests" (Requested by rniwa on #webkit).
1005
1006         * WebView/WebScriptDebugDelegate.mm:
1007         (-[WebScriptCallFrame scopeChain]):
1008
1009 2011-01-27  Oliver Hunt  <oliver@apple.com>
1010
1011         Reviewed by Geoffrey Garen.
1012
1013         Convert markstack to a slot visitor API
1014         https://bugs.webkit.org/show_bug.cgi?id=53219
1015
1016         Update to new marking api
1017
1018         * WebView/WebScriptDebugDelegate.mm:
1019         (-[WebScriptCallFrame scopeChain]):
1020
1021 2011-01-28  Dan Bernstein  <mitz@apple.com>
1022
1023         Reviewed by Sam Weinig.
1024
1025         <select> can't display right-to-left (rtl) languages
1026         https://bugs.webkit.org/show_bug.cgi?id=19785
1027
1028         * WebCoreSupport/WebChromeClient.h:
1029         * WebCoreSupport/WebChromeClient.mm:
1030         (WebChromeClient::selectItemWritingDirectionIsNatural): Changed to return false.
1031         (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added. Returns true.
1032
1033 2011-01-27  Sheriff Bot  <webkit.review.bot@gmail.com>
1034
1035         Unreviewed, rolling out r76891.
1036         http://trac.webkit.org/changeset/76891
1037         https://bugs.webkit.org/show_bug.cgi?id=53280
1038
1039         Makes every layout test crash (Requested by othermaciej on
1040         #webkit).
1041
1042         * Misc/WebIconDatabase.mm:
1043         (-[ThreadEnabler threadEnablingSelector:]):
1044         (importToWebCoreFormat):
1045
1046 2011-01-27  Nate Chapin  <japhet@chromium.org>
1047
1048         Reviewed by Adam Barth.
1049
1050         Use Document::url() instead of FrameLoader::url().
1051         https://bugs.webkit.org/show_bug.cgi?id=41165
1052
1053         * WebView/WebView.mm:
1054         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
1055
1056 2011-01-27  Dan Bernstein  <mitz@apple.com>
1057
1058         Rubber-stamped by Anders Carlsson.
1059
1060         Reverted an accidental change in r76561.
1061
1062         * WebView/WebHTMLView.mm:
1063
1064 2011-01-26  David Kilzer  <ddkilzer@apple.com>
1065
1066         <http://webkit.org/b/53192> Add experimental support for HTTP pipelining in CFNetwork
1067         <rdar://problem/8821760>
1068
1069         Reviewed by Antti Koivisto.
1070
1071         * WebCoreSupport/WebSystemInterface.mm:
1072         (InitWebCoreSystemInterface): Added initialization for
1073         GetHTTPPipeliningPriority and SetHTTPPipeliningPriority.
1074
1075 2011-01-26  Beth Dakin  <bdakin@apple.com>
1076
1077         Reviewed by Darin Adler.
1078
1079         Fix for <rdar://problem/8895140> Adopt WKScrollbar metrics 
1080         when using WKScrollbars.
1081
1082         * WebCoreSupport/WebSystemInterface.mm:
1083         (InitWebCoreSystemInterface):
1084
1085 2011-01-25  Darin Adler  <darin@apple.com>
1086
1087         Reviewed by Anders Carlsson.
1088
1089         WebKit is using CSBackupSetItemExcluded incorrectly
1090         https://bugs.webkit.org/show_bug.cgi?id=53095
1091         rdar://problem/8790540
1092
1093         * Misc/WebIconDatabase.mm:
1094         (importToWebCoreFormat): Removed code that was calling CSBackupSetItemExcluded.
1095         It was incorrect, and this responsibility has been moved to WebCore.
1096
1097 2011-01-24  Chris Marrin  <cmarrin@apple.com>
1098
1099         Reviewed by Eric Seidel.
1100
1101         Change ENABLE_3D_CANVAS to ENABLE_WEBGL
1102         https://bugs.webkit.org/show_bug.cgi?id=53041
1103
1104         * Configurations/FeatureDefines.xcconfig:
1105
1106 2011-01-25  Yury Semikhatsky  <yurys@chromium.org>
1107
1108         Reviewed by Pavel Feldman.
1109
1110         Web Inspector: remove "attached" state related methods from InspectorAgent
1111         https://bugs.webkit.org/show_bug.cgi?id=53086
1112
1113         * WebCoreSupport/WebInspectorClient.h:
1114         * WebCoreSupport/WebInspectorClient.mm:
1115         (-[WebInspectorWindowController showWindow:]):
1116         (-[WebInspectorWindowController attach]):
1117         (-[WebInspectorWindowController detach]):
1118
1119 2011-01-23  Dan Bernstein  <mitz@apple.com>
1120
1121         Reviewed by John Sullivan.
1122
1123         <rdar://problem/6097826> Mail's cursor does not become a resize cursor when moving mouse from scrolled email to the horizontal splitter
1124
1125         * WebCoreSupport/WebChromeClient.mm:
1126         (WebChromeClient::setCursor): If the current cursor comes from a cursor rect, do not override it.
1127
1128 2011-01-22  Alexey Proskuryakov  <ap@apple.com>
1129
1130         Reviewed by Darin Adler.
1131
1132         https://bugs.webkit.org/show_bug.cgi?id=52473
1133         Auto-scaling to avoid orphans is broken, remove dysfunctional code
1134
1135         * WebView/WebHTMLView.mm:
1136         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]):
1137         (-[WebHTMLView _scaleFactorForPrintOperation:]):
1138         (-[WebHTMLView knowsPageRange:]):
1139
1140 2011-01-21  Mark Rowe  <mrowe@apple.com>
1141
1142         Rubber-stamped by Jon Honeycutt.
1143
1144         Fix the build when using Clang by removing some unused variables.
1145
1146         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1147         (-[WebHostedNetscapePluginView updateAndSetWindow]):
1148         * WebView/WebFullScreenController.mm:
1149         (-[WebFullScreenController enterFullscreen:]):
1150         (-[WebFullScreenController exitFullscreen]):
1151
1152 2011-01-21  Chris Rogers  <crogers@google.com>
1153
1154         Reviewed by Darin Fisher.
1155
1156         Add run-time enable support for the web audio API
1157         https://bugs.webkit.org/show_bug.cgi?id=52741
1158
1159         * WebView/WebPreferenceKeysPrivate.h:
1160         * WebView/WebPreferences.mm:
1161         (-[WebPreferences webAudioEnabled]):
1162         (-[WebPreferences setWebAudioEnabled:]):
1163         * WebView/WebPreferencesPrivate.h:
1164         * WebView/WebView.mm:
1165         (-[WebView _preferencesChangedNotification:]):
1166
1167 2011-01-20  John Sullivan  <sullivan@apple.com>
1168
1169         Reviewed by Mark Rowe.
1170
1171         Shift-tab doesn't cycle through fields in http authentication panel
1172         https://bugs.webkit.org/show_bug.cgi?id=52850
1173
1174         * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
1175         * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
1176         Re-wired the key loop so that there aren't two views with the same nextKeyView.
1177
1178 2011-01-20  Beth Dakin  <bdakin@apple.com>
1179
1180         Reviewed by Geoffrey Garen.
1181
1182         Fix for <rdar://problem/8890255>
1183
1184         Allow WebKitSystemInterface to draw scrollbars 
1185         when appropriate.
1186         * WebCoreSupport/WebSystemInterface.mm:
1187         (InitWebCoreSystemInterface):
1188
1189 2011-01-19  Simon Fraser  <simon.fraser@apple.com>
1190
1191         Reviewed by Sam Weinig.
1192
1193         GraphicsLayers in subframes can get sync'd multiple times
1194         https://bugs.webkit.org/show_bug.cgi?id=52489
1195
1196         * WebView/WebView.mm:
1197         (-[WebView _syncCompositingChanges]): syncCompositingStateRecursive()
1198         was renamed to syncCompositingStateIncludingSubframes().
1199
1200 2011-01-19  Darin Adler  <darin@apple.com>
1201
1202         Reviewed by Sam Weinig.
1203
1204         Would like script debugging protocol method to differentiate between caught and uncaught exceptions
1205         https://bugs.webkit.org/show_bug.cgi?id=52104
1206         rdar://problem/8704226
1207
1208         * WebView/WebDelegateImplementationCaching.h:
1209         Fix type of second integer in CallScriptDebugDelegate function overload
1210         to be int to match the actual Objective-C method. Added a new overload
1211         that includes a BOOL in the right place. Added a boolean named
1212         exceptionWasRaisedExpectsHasHandlerFlag.
1213
1214         * WebView/WebDelegateImplementationCaching.mm:
1215         (CallDelegate): Added overloads as above.
1216         (CallScriptDebugDelegate): Ditto.
1217
1218         * WebView/WebScriptDebugDelegate.h: Added new method with the additional
1219         boolean argument. Marked the old method informally deprecated.
1220
1221         * WebView/WebScriptDebugger.mm:
1222         (WebScriptDebugger::exception): Added code to call with or without the
1223         boolean depending on exceptionWasRaisedExpectsHasHandlerFlag.
1224
1225         * WebView/WebView.mm:
1226         (-[WebView _cacheScriptDebugDelegateImplementations]): Set up the
1227         exceptionWasRaisedExpectsHasHandlerFlag. Also fixed old code that was not
1228         guaranteed to set didParseSourceExpectsBaseLineNumber to NO.
1229
1230 2011-01-19  Tony Gentilcore  <tonyg@chromium.org>
1231
1232         Reviewed by Mihai Parparita.
1233
1234         Perform some forward declaration
1235         https://bugs.webkit.org/show_bug.cgi?id=52522
1236
1237         * Misc/WebKitNSStringExtras.mm:
1238
1239 2011-01-19  Pavel Podivilov  <podivilov@chromium.org>
1240
1241         Reviewed by Yury Semikhatsky.
1242
1243         Web Inspector: [JSC] scripts have incorrect starting line (always 1).
1244         https://bugs.webkit.org/show_bug.cgi?id=52721
1245
1246         * WebView/WebScriptDebugger.h:
1247         * WebView/WebScriptDebugger.mm:
1248         (toNSString):
1249         (WebScriptDebugger::sourceParsed):
1250
1251 2011-01-19  Levi Weintraub  <leviw@google.com>
1252
1253         Reviewed by Ryosuke Niwa.
1254
1255         Updating to use Position::parentAnchoredEquivalent instead of
1256         the old htmlediting rangeCompliantEquivalent.
1257
1258         remove rangeCompliantEquivalent and replace it with Position methods
1259         https://bugs.webkit.org/show_bug.cgi?id=25057
1260
1261         * WebView/WebFrame.mm:
1262         (-[WebFrame _smartDeleteRangeForProposedRange:]):
1263
1264 2011-01-18  Chris Fleizach  <cfleizach@apple.com>
1265
1266         Reviewed by Darin Adler.
1267
1268         REGRESSION: A problem with Voiceover and finding links
1269         https://bugs.webkit.org/show_bug.cgi?id=52324
1270
1271         * WebView/WebDynamicScrollBarsView.mm:
1272         (-[WebDynamicScrollBarsView accessibilityIsIgnored]):
1273
1274 2011-01-17  David Kilzer  <ddkilzer@apple.com>
1275
1276         <http://webkit.org/b/52596> Add missing DOMDocument/DOMDocumentFragment headers to Xcode project
1277
1278         Reviewed by Dan Bernstein.
1279
1280         * MigrateHeaders.make: Copy DOMDocumentFragmentPrivate.h and
1281         DOMDocumentPrivate.h to the PrivateHeaders directory.
1282
1283 2011-01-17  Enrica Casucci  <enrica@apple.com>
1284
1285         Reviewed by Alexey Proskuryakov.
1286
1287         Drag and drop support: refactoring of image from link and image from selection
1288         https://bugs.webkit.org/show_bug.cgi?id=52496
1289
1290         This work cleans up the Mac code and makes it more similar to the Windows implementation,
1291         avoiding the use of an NSView when the FrameView can be used.
1292         The refactoring is a necessary step towards the complete support of drag and drop
1293         in WebKit2.
1294
1295         * WebCoreSupport/WebDragClient.mm:
1296         (WebDragClient::createDragImageForLink): Added.
1297         * WebView/WebHTMLView.mm: Removed dragImageFromLink and dragImageFromURL.
1298         * WebView/WebHTMLViewPrivate.h: Removed dragImageFromLink and dragImageFromURL.
1299
1300 2011-01-17  Pavel Feldman  <pfeldman@chromium.org>
1301
1302         Reviewed by Yury Semikhatsky.
1303
1304         Web Inspector: simplify debugger enabling routine.
1305         https://bugs.webkit.org/show_bug.cgi?id=52472
1306
1307         * WebInspector/WebInspector.mm:
1308         (-[WebInspector startDebuggingJavaScript:]):
1309
1310 2011-01-16  Dan Bernstein  <mitz@apple.com>
1311
1312         Reviewed by Simon Fraser.
1313
1314         Assertion failure (!inSetWindow) with in-process plug-in in plugins/destroy-on-setwindow.html
1315         https://bugs.webkit.org/show_bug.cgi?id=52550
1316
1317         * Plugins/WebNetscapePluginView.mm:
1318         (-[WebNetscapePluginView setWindowIfNecessary]): Removed the assertion, making sure
1319         that inSetWindow remains YES until we exit the top-level setWindowIfNecessary.
1320
1321 2011-01-16  Simon Fraser  <simon.fraser@apple.com>
1322
1323         Reviewed by Dan Bernstein.
1324
1325         Issues with iframes and plugins when the WebView is scaled.
1326         <rdar://problem/6213380>
1327         
1328         When _scaleWebView has been called on a WebView, iframes
1329         in WebKit1 render and hit-test incorrectly, and plug-ins don't scale up.
1330         This is caused by AppKit NSViews not playing nicely with the scale
1331         applied through style.
1332         
1333         Work around most of these issues by adjusting the bounds size
1334         of widgets to allow iframe contents to paint with the correct scale,
1335         and fix various places in the code where we relied on coordinate
1336         transforms via NSViews (which ignore CSS transforms).
1337
1338         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1339         (-[WebHostedNetscapePluginView updateAndSetWindow]):
1340         * WebView/WebFrameView.mm:
1341         (-[WebFrameView setBoundsSize:]):
1342
1343 2011-01-16  Beth Dakin  <bdakin@apple.com>
1344
1345         Reviewed by Kevin Decker.
1346
1347         Fix for <rdar://problem/8871204>
1348
1349         Don't try to save elasticity state. Just rely on
1350         NSScrollElasticityAutomatic to restore the correct state.
1351         * WebCoreSupport/WebFrameLoaderClient.h:
1352         * WebCoreSupport/WebFrameLoaderClient.mm:
1353         (WebFrameLoaderClient::WebFrameLoaderClient):
1354         (WebFrameLoaderClient::dispatchDidFirstLayout):
1355         (WebFrameLoaderClient::provisionalLoadStarted):
1356
1357 2011-01-14  Simon Fraser  <simon.fraser@apple.com>
1358
1359         Reviewed by Dan Bernstein.
1360
1361         Plugins render incorrectly with transformed ancestors
1362         https://bugs.webkit.org/show_bug.cgi?id=52507
1363         
1364         -[NSView visibleRect] gives the wrong answer if there are CSS transforms
1365         in the ancestor chain of a plugin.
1366         
1367         So use of this method with calls to -actualVisibleRectInWindow, which
1368         maps rects through the render tree to compute the correct rect,
1369         clipping via windowClipRect() if necessary.
1370         
1371         Not testable, because doing so relies on the behavior of some
1372         plugins, which stop rendering if setWindow passes an empty rect.
1373
1374         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1375         (-[WebHostedNetscapePluginView updateAndSetWindow]):
1376         * Plugins/WebBaseNetscapePluginView.h:
1377         * Plugins/WebBaseNetscapePluginView.mm:
1378         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
1379         * Plugins/WebNetscapePluginView.mm:
1380         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1381
1382 2011-01-14  Yuzo Fujishima  <yuzo@google.com>
1383
1384         Reviewed by Antti Koivisto.
1385
1386         Rename cache() to memoryCache()
1387         https://bugs.webkit.org/show_bug.cgi?id=52433
1388
1389         * Misc/WebCache.mm:
1390         (+[WebCache statistics]):
1391         (+[WebCache setDisabled:]):
1392         (+[WebCache isDisabled]):
1393         * WebView/WebView.mm:
1394         (+[WebView _setCacheModel:]):
1395
1396 2011-01-13  Geoffrey Garen  <ggaren@apple.com>
1397
1398         Reviewed by Oliver Hunt.
1399
1400         Split out a MarkedSpace strategy object from Heap.
1401         https://bugs.webkit.org/show_bug.cgi?id=52421
1402
1403         * Misc/WebCoreStatistics.mm:
1404         (+[WebCoreStatistics memoryStatistics]): Updated for class move.
1405
1406 2011-01-14  Dan Bernstein  <mitz@apple.com>
1407
1408         Reviewed by Simon Fraser.
1409
1410         WebKit/mac part of <rdar://problem/8441312> Crash in -[NSView _invalidateGStatesForTree]
1411
1412         * WebView/WebHTMLView.mm:
1413         (-[WebHTMLView _invalidateGStatesForTree]): Override this NSView method, and bracket the call
1414         to the superclass implementation with suspending WebCore Widget hierarchy updates. This ensures
1415         that the NSView tree doesn’t change from under AppKit as it traverses it.
1416
1417 2011-01-14  Beth Dakin  <bdakin@apple.com>
1418
1419         Reviewed by Mark Rowe.
1420
1421         Fix for <rdar://problem/7793902> Artifacts when scrolling
1422         page in Safari while page is loading
1423
1424         Call setDrawsBackground:YES on the scrollView in 
1425         dispatchDidFirstLayout() rather than waiting until
1426         frameLoadCompleted(). Also suspend scrolling elasticity
1427         between provisionalLoadStarted() and dispatchDidFirstLayout()
1428         * WebCoreSupport/WebFrameLoaderClient.h:
1429         * WebCoreSupport/WebFrameLoaderClient.mm:
1430         (WebFrameLoaderClient::WebFrameLoaderClient):
1431         (WebFrameLoaderClient::dispatchDidFirstLayout):
1432         (WebFrameLoaderClient::provisionalLoadStarted):
1433
1434 2011-01-12  Enrica Casucci  <enrica@apple.com>
1435
1436         Reviewed by Darin Adler.
1437
1438         WebKit2: Add support for drag and drop
1439         https://bugs.webkit.org/show_bug.cgi?id=52343
1440         <rdar://problem/7660558>
1441         
1442         The DragData class has been extended to provide
1443         additional context from the application (keyboard state, modal windows, etc.)
1444         as well as information of the drag pasteboard being used.
1445         These are the changes to align the behavior for WebKit.
1446
1447         * WebView/WebView.mm:
1448         (-[WebView applicationFlags:]): Added.
1449         (-[WebView draggingEntered:]): Added parameter to the DragData constructor.
1450         (-[WebView draggingUpdated:]): Added parameter to the DragData constructor.
1451         (-[WebView draggingExited:]): Added parameter to the DragData constructor.
1452         (-[WebView performDragOperation:]): Added parameter to the DragData constructor.
1453
1454 2011-01-12  Beth Dakin  <bdakin@apple.com>
1455
1456         Reviewed by Anders Carlsson.
1457
1458         Add-on for https://bugs.webkit.org/show_bug.cgi?id=52309 
1459         Expose fixed layout through WebKit SPI
1460         -and corresponding-
1461         <rdar://problem/8844464>
1462
1463         And now with getters!
1464         * WebView/WebView.mm:
1465         (-[WebView _useFixedLayout]):
1466         (-[WebView _fixedLayoutSize]):
1467         * WebView/WebViewPrivate.h:
1468
1469 2011-01-12  Beth Dakin  <bdakin@apple.com>
1470
1471         Reviewed by Anders Carlsson.
1472
1473         Fix for https://bugs.webkit.org/show_bug.cgi?id=52309 Expose
1474         fixed layout through WebKit SPI
1475         -and corresponding-
1476         <rdar://problem/8844464>
1477
1478         * WebView/WebView.mm:
1479         (-[WebView _setUseFixedLayout:]):
1480         (-[WebView _setFixedLayoutSize:]):
1481         * WebView/WebViewPrivate.h:
1482
1483 2011-01-07  Enrica Casucci  <enrica@apple.com>
1484
1485         Reviewed by Alexey Proskuryakov.
1486
1487         Paste and drag and drop use different code paths to interact with the pasteboard.
1488         https://bugs.webkit.org/show_bug.cgi?id=52093
1489         The change consists in a refactoring of the code to have only one class that
1490         deals with the pasteboard on Mac.
1491
1492         * WebCoreSupport/WebEditorClient.h:
1493         * WebCoreSupport/WebEditorClient.mm: Added two methods to provide to WebCore functionality
1494         exposed by NSURLExtras.
1495         (WebEditorClient::canonicalizeURL):
1496         (WebEditorClient::canonicalizeURLString):
1497         * WebCoreSupport/WebPasteboardHelper.h: Removed.
1498         * WebCoreSupport/WebPasteboardHelper.mm: Removed.
1499         * WebView/WebHTMLView.mm: Removed comment.
1500         * WebView/WebView.mm: The following methods have been changed to use the new DragData
1501         constructor that doesn't use the WebPasteboardHelper reference.
1502         (-[WebView draggingEntered:]):
1503         (-[WebView draggingUpdated:]):
1504         (-[WebView draggingExited:]):
1505         (-[WebView performDragOperation:]):
1506
1507 2011-01-09  Tony Gentilcore  <tonyg@chromium.org>
1508
1509         Reviewed by Alexey Proskuryakov.
1510
1511         Forward declare some headers where possible
1512         https://bugs.webkit.org/show_bug.cgi?id=52133
1513
1514         * WebView/WebFrame.mm:
1515
1516 2011-01-09  Xianzhu Wang <phnixwxz@gmail.com>
1517
1518         Reviewed by Darin Fisher.
1519
1520         https://bugs.webkit.org/show_bug.cgi?id=41441
1521         createWindow method should only do window-creating without URL navigation
1522
1523         * WebCoreSupport/WebChromeClient.mm:
1524         (WebChromeClient::createWindow):
1525
1526 2011-01-08  Dan Bernstein  <mitz@apple.com>
1527
1528         Try to fix the Leopard build.
1529
1530         * WebView/WebFullScreenController.mm:
1531
1532 2011-01-07  Jer Noble  <jer.noble@apple.com>
1533
1534         Yet another Leopard build fix: NSRect and CGRect are not inter-
1535         changable in 32-bit.  
1536         
1537         * WebView/WebFullScreenController.mm:
1538         (-[WebFullScreenController exitFullscreen]):
1539
1540 2011-01-07  Jer Noble  <jer.noble@apple.com>
1541
1542         Fix the Leopard build: Replace CoreAnimation SL-only functions
1543         with Leopard equivalents.
1544
1545         * WebView/WebFullScreenController.mm:
1546         (+[CATransaction setDisableActions:]):
1547         (+[CATransaction setAnimationDuration:]):
1548         (-[WebFullScreenController _animationDuration]):
1549         (-[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:]):
1550
1551 2010-12-21  Jer Noble  <jer.noble@apple.com>
1552
1553         Reviewed by Simon Fraser.
1554
1555         Implement WebKit Full Screen support.
1556         https://bugs.webkit.org/show_bug.cgi?id=49481
1557         rdar://problem/8247444
1558
1559         Support the new fullscreen Chrome client requests.  WebView will pass
1560         through these requests to a WebFullscreenController.
1561
1562         * WebCoreSupport/WebChromeClient.h: Add fullScreenRendererChanged().
1563         * WebView/WebView.mm:
1564         (-[WebView _supportsFullScreenForElement:WebCore::]): Check to see if the fullscreen pref has been enabled.
1565         (-[WebView _enterFullScreenForElement:WebCore::]): Create a WebFullScreenController.
1566         (-[WebView _exitFullScreenForElement:WebCore::]): Request that the WebFullScreenController exit fullscreen.
1567         (-[WebView _fullScreenRendererChanged:WebCore::]): Notify the WebFullScreenController that its renderer has changed.
1568         * WebView/WebViewData.h: Add ivar newFullscreenController.
1569
1570 2010-12-17  Jer Noble  <jer@kokode.apple.com>
1571
1572         Reviewed by Simon Fraser.
1573
1574         Implement WebKit Full Screen support.
1575         https://bugs.webkit.org/show_bug.cgi?id=49481
1576         rdar://problem/8247444
1577         
1578         This patch implements the FullScreen APIs using the new RenderFullScreen renderer and the new
1579         Document client APIs. The RenderFullScreen renderer's CALayer is hosted in a new, fullscreen
1580         window, and a custom CAAnimation animates that layer between the initial screen rect of the
1581         full screen element, to its final value. WebFullscreenController will swap the WebView out of
1582         its original window, and into the fullscreen window. The controller will replace the WebView
1583         with a placeholder view, so that if the placeholder moves or resized while the WebView is
1584         absent, the WebView will move back to the correct location when exiting fullscreen.
1585
1586         * WebView/WebFullscreenController.h: Added.
1587         * WebView/WebFullscreenController.mm: Added.
1588         (-[WebFullscreenController windowDidExitFullscreen:]):  Close the fullscreen window.
1589         (-[WebFullscreenController windowDidEnterFullscreen:]): Swap the webView back into the fullscreen window. 
1590         (-[WebFullscreenController animationDidStop:finished:]): Call windowDid{Exit|Enter}FullScreen as appropriate.
1591         (-[WebFullscreenController applicationDidResignActive:]):
1592         (-[WebFullscreenController applicationDidChangeScreenParameters:]): Resize the fullscreen window to match
1593             the new screen parameters.
1594         (-[WebFullscreenController enterFullscreen:]):  Set up the animation that will take the fullscreen element
1595             from its original screen rect into fullscreen.
1596         (-[WebFullscreenController exitFullscreen]): Swap the webView back into its original window.
1597             Set up the animation that will take the fullscreen element back into its original screen
1598             rect.
1599         (-[WebFullscreenController _updatePowerAssertions]): Now checks _isAnyMoviePlaying to determine 
1600             whether to disable screensaver and sleep.
1601         (-[WebFullscreenController _isAnyMoviePlaying]): Walks through the sub-tree starting at the fullscreen element
1602             looking for HTMLVideoElements; returns whether any are found to be playing.
1603         (-[WebFullscreenController _animationDuration]): Returns the current animation duration, affected by control
1604             and shift keys.
1605         (-[WebFullscreenWindow canBecomeKeyWindow]): Allow the window to become key.
1606         (-[WebFullscreenWindow keyDown:]): Handle the 'Esc' key.
1607         (-[WebFullscreenWindow cancelOperation:]): Request to exit fullscreen.
1608         (-[WebFullscreenWindow rendererLayer]): Convenience accessor.
1609         (-[WebFullscreenWindow setRendererLayer:]): Ditto.
1610         (-[WebFullscreenWindow backgroundLayer]): Ditto.
1611         (-[WebFullscreenWindow animationView]): Ditto.
1612         (MediaEventListener::MediaEventListener): Implements the EventListener protocol.
1613         (MediaEventListener::handleEvent): Tells its delegate to _updatePowerAssertions.
1614         
1615 2011-01-07  James Robinson  <jamesr@chromium.org>
1616
1617         Revert "Implement mozilla's animationTime property"
1618         https://bugs.webkit.org/show_bug.cgi?id=51952
1619
1620         This approach isn't quite right.
1621
1622         * WebView/WebHTMLView.mm:
1623         (-[WebHTMLView drawRect:]):
1624         * WebView/WebView.mm:
1625         (layerSyncRunLoopObserverCallBack):
1626
1627 2011-01-06  Gavin Barraclough  <barraclough@apple.com>
1628
1629         Reviewed by Geoff Garen.
1630
1631         Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
1632
1633         The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
1634         destructor early, in order to release wrappers once we know we no longer intend to use them.
1635         Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
1636         lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
1637         A sequence of events that triggers the bug would look like this:
1638
1639         (1) Create a DOMWrapperWorld.
1640         (2) Register a timer in the world.
1641         (3) Call unregisterWorld() on the world.
1642         (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
1643         (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
1644             called forgetWorld() none exists.
1645         (6) Attempt to add a wrapper to a NULL map.
1646
1647         Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
1648
1649         * WebView/WebScriptWorld.mm:
1650         (-[WebScriptWorld unregisterWorld]):
1651
1652 2011-01-04  Chris Fleizach  <cfleizach@apple.com>
1653
1654         Reviewed by Sam Weinig.
1655
1656         WK2: Support Accessibility
1657         https://bugs.webkit.org/show_bug.cgi?id=51859
1658
1659         Use rootObject() method to get top of AX tree.
1660
1661         * WebCoreSupport/WebFrameLoaderClient.h:
1662         (WebFrameLoaderClient::accessibilityRemoteObject):
1663         * WebView/WebFrame.mm:
1664         (-[WebFrame setAccessibleName:]):
1665         (-[WebFrame accessibilityRoot]):
1666         * WebView/WebFrameInternal.h:
1667         * WebView/WebFramePrivate.h:
1668         * WebView/WebHTMLView.mm:
1669         (-[WebHTMLView accessibilityAttributeValue:]):
1670         (-[WebHTMLView accessibilityFocusedUIElement]):
1671         (-[WebHTMLView accessibilityHitTest:]):
1672         (-[WebHTMLView _accessibilityParentForSubview:]):
1673
1674 2011-01-04  David Kilzer  <ddkilzer@apple.com>
1675
1676         <http://webkit.org/b/51889> WebFrameLoaderClient::createMediaPlayerProxyPlugin() should use WebCore::PluginInfo.name
1677
1678         Reviewed by Eric Carlson.
1679
1680         This originally broke in r61581.  It is inside an
1681         ENABLE(PLUGIN_PROXY_FOR_VIDEO) macro, so it didn't break the Mac
1682         build then.
1683
1684         * WebCoreSupport/WebFrameLoaderClient.mm: Call
1685         (WebFrameLoaderClient::createMediaPlayerProxyPlugin): Updated to
1686         use WebCore::PluginInfo.name instead of
1687         -[WebBasePluginPackage name].
1688
1689 2011-01-02  Dan Bernstein  <mitz@apple.com>
1690
1691         Rubber-stamped by Simon Fraser.
1692
1693         <rdar://problem/8812159> Update copyright strings
1694
1695         * Info.plist:
1696
1697 2010-12-29  Dan Bernstein  <mitz@apple.com>
1698
1699         Reviewed by Ada Chan.
1700
1701         <rdar://problem/8758191> REGRESSION (r72887): Mail crashes when doing searches in a message due to method name conflict
1702         https://bugs.webkit.org/show_bug.cgi?id=51717
1703
1704         Renamed -findString:options: to -_findString:options: in the WebDocumentOptionsSearching
1705         protocol to avoid conflict with -[WebHTMLView(MailExtras) findString:options:] which Mail defines.
1706
1707         * WebView/WebDocumentInternal.h:
1708         * WebView/WebHTMLView.mm:
1709         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
1710         (-[WebHTMLView _findString:options:]):
1711         * WebView/WebView.mm:
1712         (findString):
1713
1714 2010-12-28  Daniel Bates  <dbates@rim.com>
1715
1716         Reviewed by Sam Weinig.
1717
1718         Substitute // MARK: for compiler-specific #pragma mark
1719         https://bugs.webkit.org/show_bug.cgi?id=51657
1720
1721         For consistency, we should substitute "// MARK:" for compiler-
1722         specific "#pragma mark" in the source files for the Mac port.
1723
1724         * History/WebHistory.mm:
1725         * Plugins/WebBaseNetscapePluginView.mm:
1726         * Plugins/WebNetscapePluginView.mm:
1727         * WebCoreSupport/WebInspectorClient.mm:
1728         * WebCoreSupport/WebSecurityOrigin.mm:
1729         * WebView/WebPDFView.mm:
1730         * WebView/WebVideoFullscreenController.mm:
1731         * WebView/WebVideoFullscreenHUDWindowController.mm:
1732
1733 2010-12-23  Yongjun Zhang  <yongjun_zhang@apple.com>
1734
1735         Reviewed by Darin Adler.
1736
1737         WebKit crashes at DebuggerCallFrame::functionName() if m_callFrame is the top global callframe.
1738         https://bugs.webkit.org/show_bug.cgi?id=38535
1739
1740         WebScriptDebugger in WebKit has empty implementations for willExecuteProgram and didExecuteProgram.  As a result,
1741         if the top call frame is from a program, WebKitScriptDebugger doesn't record that callframe as the top frame, and
1742         WebScriptDebugger's callframe stack is wrong from this point.  That could cause crash if we trying to access the top
1743         call frame from this stack when an exception throws because the saved top frame could be invalid.
1744
1745         To fix that, we need to maintain the call frame stack in willExecuteProgram and didExecuteProgram, as we did in
1746         callEvent and returnEvent.
1747
1748         * WebView/WebScriptDebugger.mm:
1749         (WebScriptDebugger::willExecuteProgram):
1750         (WebScriptDebugger::didExecuteProgram):
1751
1752 2010-12-22  Sam Weinig  <sam@webkit.org>
1753
1754         Reviewed by Darin Adler.
1755
1756         WebKit2 needs to mirror the frame tree in the UIProcess
1757         https://bugs.webkit.org/show_bug.cgi?id=51546
1758
1759         - Add client functions to notify that a frame has been added or
1760           removed from the page cache.
1761
1762         * WebCoreSupport/WebFrameLoaderClient.h:
1763         * WebCoreSupport/WebFrameLoaderClient.mm:
1764         (WebFrameLoaderClient::didSaveToPageCache):
1765         (WebFrameLoaderClient::didRestoreFromPageCache):
1766
1767 2010-12-22  Ryosuke Niwa  <rniwa@webkit.org>
1768
1769         Reviewed by Eric Seidel.
1770
1771         Editor.h doesn't need to include SelectionController.h
1772         https://bugs.webkit.org/show_bug.cgi?id=51441
1773
1774         Renamed SelectionController::EDirection to SelectionDirection.
1775
1776         * WebView/WebFrame.mm:
1777         (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:granularity:]):
1778         Takes SelectionDirection instead of SelectionController::EDirection.
1779         * WebView/WebFrameInternal.h:
1780         * WebView/WebTextCompletionController.mm:
1781         (-[WebTextCompletionController doCompletion]): Calls _rangeByAlteringCurrentSelection:SelectionController.
1782
1783 2010-12-22  Simon Fraser  <simon.fraser@apple.com>
1784
1785         Reviewed by Darin Adler.
1786
1787         Cache snapshots of plug-ins before painting, to avoid script running during painting
1788         https://bugs.webkit.org/show_bug.cgi?id=51493
1789
1790         When FrameView is asked to do a flattening paint (e.g. when Safari snapshots,
1791         or when printing), plug-ins which otherwise use the CA rendering model
1792         are sent a paint event. Some plug-ins may run script while handling this event,
1793         or out of process plug-ins may process queued requests at this time. Running
1794         script while inside layout or painting can have bad consequences, because it
1795         can result in arbitrary changes to the render tree.
1796         
1797         This patch avoids sending plug-ins paint events inside of painting. Instead,
1798         we ask the plug-ins to cache a snapshot before we paint, and then the software
1799         paint simply draws that snapshot.
1800
1801         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1802         (-[WebHostedNetscapePluginView drawRect:]): If we have a cached snapshot,
1803         draw it. Also only send the snapshot message to the plugin proxy if we
1804         know we're snapshotting, since even if creating the snapshot image failed,
1805         we still don't want to call to the plug-in.
1806
1807         * Plugins/WebBaseNetscapePluginView.h: Add a retained NSImage member for the snapshot.
1808         * Plugins/WebBaseNetscapePluginView.mm:
1809         (-[WebBaseNetscapePluginView cacheSnapshot]): Create an image and draw the snapshot into it.
1810         (-[WebBaseNetscapePluginView clearCachedSnapshot]): Clear the snapshot.
1811
1812         * Plugins/WebNetscapePluginView.mm:
1813         (-[WebNetscapePluginView drawRect:]): If we have a cached snapshot, use it.
1814         * WebCoreSupport/WebFrameLoaderClient.mm:
1815         (NetscapePluginWidget::notifyWidget): Implement notifyWidget() and use it
1816         to cache and clear the snapshots.
1817
1818 2010-12-21  Cameron Zwarich  <zwarich@apple.com>
1819
1820         Reviewed by Darin Adler.
1821
1822         -[WebBasePluginPackage isNativeLibraryData:] integer underflows on zero-sized data
1823         https://bugs.webkit.org/show_bug.cgi?id=51431
1824         <rdar://problem/8791757>
1825
1826         * Plugins/WebBasePluginPackage.mm:
1827         (-[WebBasePluginPackage isNativeLibraryData:]): Change an arithmetic expression so
1828         it doesn't underflow.
1829
1830 2010-12-16  Ryosuke Niwa  <rniwa@webkit.org>
1831
1832         Reviewed by Cameron Zwarich.
1833
1834         REGRESSION(r74172): 125 java tests fail on Mac
1835         https://bugs.webkit.org/show_bug.cgi?id=51214
1836
1837         The regression was caused by an incorrectly adding sizeof(struct fat_header)
1838         to a pointer for uint32_t as supposed to uint8_t.
1839
1840         Fixed the bug by explicitly casting it to uint8_t* before the addition.
1841
1842         * Plugins/WebBasePluginPackage.mm:
1843         (-[WebBasePluginPackage isNativeLibraryData:]):
1844
1845 2010-12-15  Cameron Zwarich  <zwarich@apple.com>
1846
1847         Reviewed by Darin Adler.
1848
1849         Clang -Wcast-align gives an error in WebBasePluginPackage.mm
1850         https://bugs.webkit.org/show_bug.cgi?id=51144
1851
1852         Fix an alignment issue. OSSwapInt32 takes data that is 32-bit aligned on ARM, but
1853         we were calling it on a byte array 32 bits at a time. While this is okay in practice,
1854         since TCMalloc won't give us a non-32-bit aligned block array of bytes and Vector's
1855         inline storage is at the beginning of the Vector, it is still better to fix this
1856         and silence the warning.
1857
1858         * Plugins/WebBasePluginPackage.mm:
1859         (swapIntsInHeader):
1860         (-[WebBasePluginPackage isNativeLibraryData:]):
1861
1862 2010-12-14  Mark Rowe  <mrowe@apple.com>
1863
1864         Reviewed by Sam Weinig.
1865
1866         <http://webkit.org/b/51064> Reproducible crash inside WebCore::MediaPlayerPrivateQTKit::createQTMovie when loading <video>
1867
1868         * History/WebHistoryItem.mm:
1869         (-[WebHistoryItem description]): Test whether the string is empty rather than incorrectly
1870         always including the target in the output.
1871
1872 2010-12-13  Alexey Proskuryakov  <ap@apple.com>
1873
1874         Reviewed by Adam Barth.
1875
1876         https://bugs.webkit.org/show_bug.cgi?id=50953
1877         DNS Prefetch should be an opt-in feature
1878
1879         * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Changed default to false.
1880
1881 2010-12-13  Mike Thole  <mthole@apple.com>
1882
1883         Rubber-stamped by John Sullivan.
1884
1885         https://bugs.webkit.org/show_bug.cgi?id=50956
1886         WebAuthenticationPanel.nib appears to have a cut-off sentence
1887         
1888         Replace the sentence fragment in the sheet layout with "<-- do not localize -->" style text.
1889         The contents of this text field are updated dynamically before the sheet is displayed.
1890
1891         * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
1892         * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
1893
1894 2010-12-13  Antti Koivisto  <antti@apple.com>
1895
1896         Reviewed by Alexey Proskuryakov.
1897
1898         https://bugs.webkit.org/show_bug.cgi?id=50758
1899         <rdar://problem/8722094> 
1900         Defer loading print stylesheets
1901         
1902         Expose SPI for DRT for making resources load serially. This is useful for testing resource load order.
1903
1904         * WebView/WebView.mm:
1905         (+[WebView _setLoadResourcesSerially:forHost:]):
1906         * WebView/WebViewPrivate.h:
1907
1908 2010-12-09  Matthew Delaney  <mdelaney@apple.com>
1909
1910         Reviewed by Simon Fraser.
1911
1912         Adopt new CG API for canvas
1913         https://bugs.webkit.org/show_bug.cgi?id=50591
1914
1915         * WebCoreSupport/WebSystemInterface.mm:
1916
1917 2010-10-28  MORITA Hajime  <morrita@google.com>
1918
1919         Reviewed by Ojan Vafai.
1920
1921         spellcheck does not check pasted text
1922         https://bugs.webkit.org/show_bug.cgi?id=40092
1923
1924         Added asynchronous spell checking API to WebEditorClient using
1925         -[NSSpellChecker requestCheckingOfString].
1926         Note that WebEditorSpellCheckResponder is a small class to receive
1927         requested spell-checking result. Note that this feature is
1928         disabled at default.
1929         
1930         Also added [WebPreferences setAsynchronousSpellCheckingEnabled:] to 
1931         enable the feature from LayoutTestController.
1932
1933         * WebCoreSupport/WebEditorClient.h:
1934         * WebCoreSupport/WebEditorClient.mm:
1935         (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:results:]):
1936         (-[WebEditorSpellCheckResponder perform]):
1937         (toCoreSpellingResult):
1938         (-[WebEditorSpellCheckResponder WTF::WebCore::]):
1939         (WebEditorClient::requestCheckingOfString):
1940         * WebView/WebPreferenceKeysPrivate.h:
1941         * WebView/WebPreferences.mm:
1942         (+[WebPreferences initialize]):
1943         (-[WebPreferences setAsynchronousSpellCheckingEnabled:]):
1944         (-[WebPreferences asynchronousSpellCheckingEnabled]):
1945         * WebView/WebPreferencesPrivate.h:
1946         * WebView/WebView.mm:
1947         (-[WebView _preferencesChangedNotification:]):
1948
1949 2010-12-09  Anders Carlsson  <andersca@apple.com>
1950
1951         Fix a bug uncovered by clang++.
1952
1953         * WebView/WebHTMLView.mm:
1954         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1955
1956 2010-12-09  Anders Carlsson  <andersca@apple.com>
1957
1958         Clang++ build fixes.
1959
1960         Silence a couple of warnings.
1961
1962         * WebView/WebFrame.mm:
1963         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1964         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
1965         * WebView/WebTextCompletionController.mm:
1966         (-[WebTextCompletionController filterKeyDown:]):
1967
1968 2010-12-09  David Hyatt  <hyatt@apple.com>
1969
1970         Reviewed by Dan Bernstein.
1971
1972         https://bugs.webkit.org/show_bug.cgi?id=48545, Home/End, PgUp, PgDown should respect
1973         writing-mode.  This first part of the patch just patches Mac WebKit 1 views.
1974
1975         * WebView/WebFrameView.mm:
1976         (-[WebFrameView _isVerticalDocument]):
1977         (-[WebFrameView _isFlippedDocument]):
1978         (-[WebFrameView _scrollToEndOfDocument]):
1979         (-[WebFrameView _pageInBlockProgressionDirection:]):
1980         (-[WebFrameView scrollPageUp:]):
1981         (-[WebFrameView scrollPageDown:]):
1982
1983 2010-12-08  Andy Estes  <aestes@apple.com>
1984
1985         Reviewed by Darin Adler.
1986
1987         Enable pre-HTML5 parser quirks for Apple Mail.app
1988         https://bugs.webkit.org/show_bug.cgi?id=50727
1989
1990         * WebView/WebView.mm:
1991         (-[WebView _needsPreHTML5ParserQuirks]): Return true if the embedding
1992         application is Mail.app.
1993
1994 2010-12-08  Brian Weinstein  <bweinstein@apple.com>
1995
1996         Reviewed by John Sullivan.
1997
1998         REGRESSION: r73429-r73490: Some Contextual menu items non-functional, such as Open Link in New Tab
1999         https://bugs.webkit.org/show_bug.cgi?id=50683
2000         
2001         If our context menu item already has an action, don't overwrite the action with the context menu
2002         forwarder.
2003
2004         * WebView/WebHTMLView.mm:
2005         (setMenuItemTarget):
2006
2007 2010-12-08  Anders Carlsson  <andersca@apple.com>
2008
2009         Remove an unused variable.
2010
2011         * WebView/WebDynamicScrollBarsView.mm:
2012         (-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):
2013
2014 2010-12-07  Brian Weinstein  <bweinstein@apple.com>
2015
2016         Reviewed by John Sullivan.
2017
2018         Layering Violation in ContextMenu - member variable of type HitTestResult
2019         https://bugs.webkit.org/show_bug.cgi?id=50586
2020         
2021         Update users of ContextMenu and ContextMenuController to match where the new functions 
2022         are located.
2023
2024         * WebCoreSupport/WebContextMenuClient.mm:
2025         (WebContextMenuClient::getCustomMenuFromDefaultItems):
2026         (WebContextMenuClient::contextMenuItemSelected):
2027         * WebView/WebHTMLView.mm:
2028         (-[WebMenuTarget validateMenuItem:]):
2029
2030 2010-12-07  Brian Weinstein  <bweinstein@apple.com>
2031
2032         Reviewed by John Sullivan.
2033
2034         Part of Layering Violation in ContextMenu
2035         https://bugs.webkit.org/show_bug.cgi?id=50586
2036         
2037         Move WebMenuTarget from ContextMenuMac to here, because having it in ContextMenuMac
2038         was a layering violation. Also, make sure we set the menu item targets for all menu
2039         items before showing them, because the ContextMenu constructor doesn't do that anymore.
2040
2041         * WebView/WebHTMLView.mm:
2042         (+[WebMenuTarget sharedMenuTarget]): Moved from ContextMenuMac.mm.
2043         (-[WebMenuTarget WebCore::]): Ditto.
2044         (-[WebMenuTarget setMenuController:WebCore::]): Ditto.
2045         (-[WebMenuTarget forwardContextMenuAction:]): Ditto.
2046         (-[WebMenuTarget validateMenuItem:]): Ditto.
2047
2048         (setMenuItemTarget): Sets the target of the NSMenuItem to the shared WebMenuTarget.
2049         (setMenuTargets): Recursively iterates over all NSMenuItems in an NSMenu (including
2050             submenus), and calls setMenuItemTarget on them.
2051         (-[WebHTMLView menuForEvent:]): Call setMenuTarget on all the menu items before adding
2052             them to the menu.
2053
2054 2010-12-06  Darin Adler  <darin@apple.com>
2055
2056         Reviewed by Sam Weinig.
2057
2058         Pass security origin to make local file decision correctly
2059         https://bugs.webkit.org/show_bug.cgi?id=48603
2060
2061         * WebView/WebPDFView.mm:
2062         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Pass security origin.
2063
2064 2010-12-07  Martin Robinson  <mrobinson@igalia.com>
2065
2066         Unreviewed, rolling out r73392.
2067         http://trac.webkit.org/changeset/73392
2068         https://bugs.webkit.org/show_bug.cgi?id=50489
2069
2070         This commit caused crashes on the GTK+ bots
2071
2072         * WebView/WebFrame.mm:
2073         (-[WebFrame _canProvideDocumentSource]):
2074
2075 2010-12-07  Kenichi Ishibashi  <bashi@google.com>
2076
2077         Reviewed by Kent Tamura.
2078
2079         Let HTMLObjectElement be a form associated element
2080         https://bugs.webkit.org/show_bug.cgi?id=48821
2081
2082         Modified to use FormAssociatedElement instead of HTMLFormControlElement.
2083
2084         * WebView/WebHTMLRepresentation.mm:
2085         (-[WebHTMLRepresentation elementWithName:inForm:]): Modified to use
2086         FormAssociatedElement instead of HTMLFormControlElement.
2087         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
2088
2089 2010-12-06  Nate Chapin  <japhet@chromium.org>
2090
2091         Reviewed by Adam Barth.
2092
2093         Update calls to DocumentWriter.
2094         https://bugs.webkit.org/show_bug.cgi?id=50489
2095
2096         * WebView/WebFrame.mm:
2097         (-[WebFrame _canProvideDocumentSource]):
2098
2099 2010-12-06  Chris Marrin  <cmarrin@apple.com>
2100
2101         Reviewed by Simon Fraser.
2102
2103         Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
2104         https://bugs.webkit.org/show_bug.cgi?id=49388
2105
2106         Got rid of GraphicsLayer::nativeLayer() call, replacing it with 
2107         GraphicsLayer::platformLayer().
2108
2109         * WebCoreSupport/WebChromeClient.mm:
2110         (WebChromeClient::attachRootGraphicsLayer):
2111
2112 2010-12-04  Dan Bernstein  <mitz@apple.com>
2113
2114         Reviewed by Sam Weinig.
2115
2116         WebKit part of <rdar://problem/8145955> Add text search API for counting/marking/highlighting matches in a range
2117         https://bugs.webkit.org/show_bug.cgi?id=50530
2118
2119         * WebView/WebDocumentInternal.h: Added a DOMRange parameter to -countMatchesForText:options:limit:markMatches:
2120         * WebView/WebHTMLView.mm:
2121         (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]): Added DOMRange parameter,
2122         which is passed through to WebCore.
2123         * WebView/WebPDFView.mm:
2124         (isFrameInRange): Added this helper function.
2125         (-[WebPDFView countMatchesForText:inDOMRange:options:limit:markMatches:]): Added DOMRange parameter and
2126         a check if the frame is in the range.
2127         * WebView/WebView.mm:
2128         (-[WebView countMatchesForText:options:highlight:limit:markMatches:]): Now calls the inDOMRange: version.
2129         (-[WebView countMatchesForText:inDOMRange:options:highlight:limit:markMatches:]): Added DOMRange
2130         parameter, which is passed to document views' -countMatchesForText:inDOMRange:options:limit:markMatches:.
2131         * WebView/WebViewPrivate.h:
2132
2133 2010-12-03  Sam Weinig  <sam@webkit.org>
2134
2135         Reviewed by Maciej Stachowiak.
2136
2137         Enable <a ping> for Mac/Windows/WebKit2 builds
2138         <rdar://problem/8504473>
2139         https://bugs.webkit.org/show_bug.cgi?id=50488
2140
2141         * WebView/WebPreferences.mm:
2142         (+[WebPreferences initialize]): Enable "HyperlinkAuditing" by default.
2143
2144 2010-12-03  Jia Pu  <jpu@apple.com>
2145
2146         Reviewed by Darin Adler.
2147
2148         Need to move all code that applies correction into correction panel callback.
2149         https://bugs.webkit.org/show_bug.cgi?id=50426
2150         <rdar://problem/8720832>
2151
2152         * WebCoreSupport/WebEditorClient.h: Adopted new signature of dismissCorrectionPanel.
2153
2154         * WebCoreSupport/WebEditorClient.mm:
2155         (WebEditorClient::~WebEditorClient): Adopted new signature of dismissCorrectionPanel.
2156         (WebEditorClient::showCorrectionPanel): Added more user dictionary learning code.
2157         (WebEditorClient::dismissCorrectionPanel): Adopted new signature of dismissCorrectionPanel.
2158
2159 2010-12-02  Simon Fraser  <simon.fraser@apple.com>
2160
2161         Revert r73217 and r73227 because of continued bustage.
2162
2163         * WebCoreSupport/WebChromeClient.mm:
2164         (WebChromeClient::attachRootGraphicsLayer):
2165
2166 2010-12-02  Chris Marrin  <cmarrin@apple.com>
2167
2168         Reviewed by Simon Fraser.
2169
2170         Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
2171         https://bugs.webkit.org/show_bug.cgi?id=49388
2172
2173         Got rid of GraphicsLayer::nativeLayer() call, replacing it with 
2174         GraphicsLayer::platformLayer().
2175
2176         * WebCoreSupport/WebChromeClient.mm:
2177         (WebChromeClient::attachRootGraphicsLayer):
2178
2179 2010-12-02  Mark Rowe  <mrowe@apple.com>
2180
2181         Reviewed by Beth Dakin.
2182
2183         <rdar://problem/8708730> Objects reported as being leaked due to lack of autorelease pool
2184
2185         * Misc/WebNSFileManagerExtras.m:
2186         (setMetaData): Create an autorelease pool for the duration of the thread body.
2187
2188 2010-12-02  John Knottenbelt  <jknotten@chromium.org>
2189
2190         Reviewed by Steve Block.
2191
2192         Move requestGeolocationPermissionForFrame to GeolocationClient
2193         https://bugs.webkit.org/show_bug.cgi?id=50061
2194
2195         This change facilitates client-based geolocation implementation by
2196         bringing together permission control into the geolocation client
2197         interface.
2198
2199         Move method ChromeClient::requestGeolocationPermissionForFrame to
2200         GeolocationClient::requestPermission, and supporting class
2201         WebGeolocationPolicyListener. The moved code is unchanged except
2202         that requestPermission now takes only one argument (Geolocation*)
2203         and the Frame parameter is retrieved from the Geolocation object.
2204
2205         * WebCoreSupport/WebChromeClient.h:
2206         * WebCoreSupport/WebChromeClient.mm:
2207         * WebCoreSupport/WebGeolocationClient.h:
2208         (WebGeolocationClient::cancelPermissionRequest):
2209         * WebCoreSupport/WebGeolocationClient.mm:
2210         (WebGeolocationClient::requestPermission):
2211         (-[WebGeolocationPolicyListener initWithGeolocation:]):
2212         (-[WebGeolocationPolicyListener allow]):
2213         (-[WebGeolocationPolicyListener deny]):
2214
2215 2010-12-02  Joseph Pecoraro  <joepeck@webkit.org>
2216
2217         Reviewed by Eric Carlson.
2218
2219         Style Fixes in WebPluginController
2220         https://bugs.webkit.org/show_bug.cgi?id=50397
2221
2222         * Plugins/WebPluginController.mm:
2223         (-[WebPluginController startAllPlugins]):
2224         (-[WebPluginController stopAllPlugins]):
2225
2226 2010-12-02  John Sullivan  <sullivan@apple.com>
2227
2228         Reviewed by Adam Roben.
2229         
2230         Slightly speculative fix for:
2231
2232         <rdar://problem/8712674>
2233         <https://bugs.webkit.org/show_bug.cgi?id=50393>
2234         setStringValue: sometimes called with nil in [WebAuthenticationPanel setUpForChallenge]        
2235
2236         * Panels/WebAuthenticationPanel.m:
2237         (-[WebAuthenticationPanel setUpForChallenge:]):
2238         If the realm is nil, use @"" instead.
2239
2240 2010-12-01  Jia Pu  <jpu@apple.com>
2241
2242         Reviewed by Darin Adler.
2243
2244         Support multiple correction candidates panel for misspelled word on Mac OS X.
2245         https://bugs.webkit.org/show_bug.cgi?id=50137
2246         <rdar://problem/8568059>
2247
2248         This patch is for supporting multiple correction suggestion panel on Mac OS X.
2249         The behavior and implementation is similar to that of reversion candiate panel.
2250
2251         * WebCoreSupport/WebEditorClient.h: Adopted new signatures defined in base class.
2252
2253         * WebCoreSupport/WebEditorClient.mm:  Adopted new signatures defined in base class.
2254           Added code to handle new multiple suggestion canidate panel type.
2255         (WebEditorClient::showCorrectionPanel):
2256         (WebEditorClient::getGuessesForWord):
2257
2258 2010-12-01  David Hyatt  <hyatt@apple.com>
2259
2260         Reviewed by Darin Adler.
2261
2262         https://bugs.webkit.org/show_bug.cgi?id=46645
2263         
2264         Part 1 of making scrolling work with vertical text. This patch generalizes the scrollOriginX concept
2265         recently added for horizontal RTL documents and applies it to writing modes as well.  Now the
2266         scrollOrigin is a point, since you can start off locked to the bottom or locked to the right.
2267         
2268         This patch also fixes numerous bugs with the scrollOrigin code using native Mac NSScrollViews and
2269         makes them behave the same as the cross-platform code (allowing for cross-platform results to be
2270         landed).
2271
2272         * WebView/WebDynamicScrollBarsView.mm:
2273         (-[WebDynamicScrollBarsView adjustForScrollOriginChange]):
2274         (-[WebDynamicScrollBarsView updateScrollers]):
2275         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
2276         (-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):
2277         (-[WebDynamicScrollBarsView scrollOrigin]):
2278         * WebView/WebFrameView.mm:
2279         (-[WebFrameView _scrollToBeginningOfDocument]):
2280         (-[WebFrameView _scrollToEndOfDocument]):
2281
2282 2010-11-29  Dan Bernstein  <mitz@apple.com>
2283
2284         Reviewed by Darin Adler.
2285
2286         WebKit Mac part of <rdar://problem/8650085> adding word-prefix search options to the text search API.
2287         https://bugs.webkit.org/show_bug.cgi?id=50038
2288         Based on a patch from Darin Adler.
2289
2290         * WebView/WebDocumentInternal.h: Removed -markAllMatchesForText:caseSensitive:limit: and
2291         replaced -countMatchesForText:caseSensitive:limit:markMatches: with a WebFindOptions-based
2292         method. Declared a WebDocumentOptionsSearching protocol with a new -findString:options:
2293         method. Made WebHTMLView conform to the new protocol.
2294         * WebView/WebHTMLView.mm:
2295         (coreOptions): Added. Converts WebFindOptions to WebCore FindOptions.
2296         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Changed to use
2297         -findString:options:.
2298         (-[WebHTMLView countMatchesForText:options:limit:markMatches:]): Changed to use WebFindOptions.
2299         (-[WebHTMLView findString:options:]): Added. Calls through to WebCore::Editor::findString().
2300         * WebView/WebPDFView.mm:
2301         (-[WebPDFView countMatchesForText:options:limit:markMatches:]): Changed to use WebFindOptions.
2302         * WebView/WebView.mm:
2303         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]): Now calls through to
2304         -countMatchesForText:options:highlight:limit:markMatches.
2305         (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]): Ditto.
2306         (-[WebView searchFor:direction:caseSensitive:wrap:startInSelection:]): Now calls through to
2307         -findString:options:.
2308         (incrementFrame): Changed to use WebFindOptions.
2309         (findString): Added this helper method that performs the search using the best supported
2310         method for the document view.
2311         (-[WebView findString:options:]): Changed -searchFor::::: into this.
2312         (-[WebView canMarkAllTextMatches]):
2313         (-[WebView countMatchesForText:options:highlight:limit:markMatches:]): Updated to use
2314         WebFindOptions.
2315         (-[WebView unmarkAllTextMatches]): Updated for change to incrementFrame.
2316         (-[WebView rectsForTextMatches]): Ditto.
2317         * WebView/WebViewPrivate.h: Added WebFindOptions, -findString:options:, and WebFindOptions version
2318         of countMatchesForText:.
2319
2320 2010-11-29  Jeremy Moskovich  <jeremy@chromium.org>
2321
2322         Reviewed by David Hyatt.
2323
2324         Right-to-left pages should be scrollable to reveal left overflow.
2325         https://bugs.webkit.org/show_bug.cgi?id=23556
2326
2327         Set and get the original x-axis scroll position and reset scroll position on HOME/END key press.
2328         Modify WebFrameView to support setting the initial horizontal scroller's thumb position to the right for
2329         pages with a left overflow.
2330
2331         * WebView/WebDynamicScrollBarsView.h:
2332         * WebView/WebDynamicScrollBarsView.mm:
2333         (-[WebDynamicScrollBarsView inProgramaticScroll]):
2334         (-[WebDynamicScrollBarsView refreshInitialScrollbarPosition]):
2335         (-[WebDynamicScrollBarsView updateScrollers]):
2336         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
2337         (-[WebDynamicScrollBarsView setScrollOriginX:]):
2338         (-[WebDynamicScrollBarsView scrollOriginX]):
2339         * WebView/WebFrameView.mm:
2340         (-[WebFrameView _scrollToBeginningOfDocument]):
2341         (-[WebFrameView _scrollToEndOfDocument]):
2342         * WebView/WebHTMLView.mm:
2343         (-[WebHTMLView _frameOrBoundsChanged]):
2344
2345 2010-11-22  Ryosuke Niwa  <rniwa@webkit.org>
2346
2347         Reviewed by Tony Chang.
2348
2349         SelectionController::typingStyle() should return EditingStyle*
2350         https://bugs.webkit.org/show_bug.cgi?id=49813
2351
2352         Changed the return value of SelectionController::typingStyle() to EditingStyle*.
2353         Also added SelectionController::copyTypingStyle() to copy the typing style
2354         as an instance of CSSMutableStyleDeclaration.
2355
2356         No tests are added since this is no behavioral change.
2357
2358         * WebView/WebFrame.mm:
2359         (-[WebFrame _typingStyle]): Calls SelectionController::copyTypingStyle()
2360
2361 2010-11-19  Michael Saboff  <msaboff@apple.com>
2362
2363         Reviewed by Sam Weinig
2364
2365         Remove DOMSVGAnimatedPathData.h from all: target to fix build.
2366
2367         * MigrateHeaders.make:
2368
2369 2010-11-19  Nikolas Zimmermann  <nzimmermann@rim.com>
2370
2371         Reviewed by Dirk Schulze.
2372
2373         Convert SVGPathSeg/SVGPathSegList to the new SVGPropertyTearOff concept
2374         https://bugs.webkit.org/show_bug.cgi?id=49580
2375
2376         * WebView/WebRenderLayer.mm: Add missing StyledElement.h include.
2377
2378 2010-11-18  Mark Rowe  <mrowe@apple.com>
2379
2380         Rubber-stamped by Adam Roben.
2381
2382         <rdar://problem/8602509&8602717&8602724> Enable compaction support.
2383
2384         * Configurations/WebKit.xcconfig:
2385
2386 2010-11-18  Sheriff Bot  <webkit.review.bot@gmail.com>
2387
2388         Unreviewed, rolling out r72288.
2389         http://trac.webkit.org/changeset/72288
2390         https://bugs.webkit.org/show_bug.cgi?id=49730
2391
2392         'krit attempted to do that, but revert got stuck' (Requested
2393         by antonm on #webkit).
2394
2395         * WebView/WebRenderLayer.mm:
2396
2397 2010-11-17  Nikolas Zimmermann  <nzimmermann@rim.com>
2398
2399         Reviewed by Dirk Schulze.
2400
2401         Convert SVGPathSeg/SVGPathSegList to the new SVGPropertyTearOff concept
2402         https://bugs.webkit.org/show_bug.cgi?id=49580
2403
2404         * WebView/WebRenderLayer.mm: Add missing StyledElement.h include.
2405
2406 2010-11-16  Stephanie Lewis  <slewis@apple.com>
2407
2408         Reviewed by Geoff Garen.
2409
2410         <rdar://problem/8624267> Leak creating offscreen webview running fast/dom tests
2411
2412         Make a static provider for WebDeviceOrientationProviderMock.  The old code allocated a new WebDeviceOrientationProviderMock for 
2413         every WebView, and the WebKit API doesn't support that ownership model.
2414
2415         * WebView/WebDeviceOrientationProviderMock.h:
2416         * WebView/WebDeviceOrientationProviderMock.mm:
2417         (+[WebDeviceOrientationProviderMock shared]):
2418
2419 2010-11-16  Dave Hyatt  <hyatt@apple.com>
2420
2421         Reviewed by Dan Bernstein.
2422
2423         https://bugs.webkit.org/show_bug.cgi?id=11004
2424         
2425         font-size:0 is ignored.  Remove the minimum font size of 1 in CSSStyleSelector.
2426         Change the pref value for minimum font size from 1 to 0.  Make sure to never use the NSFont's size,
2427         since it doesn't honor a size of 0.  Instead pass the size in to the FontPlatformData(NSFont*) version
2428         of the constructor rather than using [NSFont pointSize].
2429
2430         https://bugs.webkit.org/show_bug.cgi?id=49582
2431         
2432         Negative leading is not handled correctly.  There are two bugs here.  The first is that
2433         maxAscent and maxDescent can be negative, so we need a notion of whether or not we have
2434         set them before so that we can allow them to be < 0.
2435         
2436         The second issue is that we should understand where fonts will end up relative to
2437         our baseline (excluding line height), and only allow those boxes to impact ascent and
2438         descent if the actual font box (without factoring in line height) is above or below the
2439         root line box baseline.
2440
2441         Added fast/css/negative-leading.html
2442         
2443         These two bug fixes have to land together to keep the Acid 3 test rendering correctly.
2444
2445         * Misc/WebKitNSStringExtras.mm:
2446         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2447         (-[NSString _web_widthWithFont:]):
2448         * Misc/WebStringTruncator.mm:
2449         (fontFromNSFont):
2450         * WebView/WebPreferences.mm:
2451         (+[WebPreferences initialize]):
2452
2453 2010-11-16  Anders Carlsson  <andersca@apple.com>
2454
2455         Fix clang++ build.
2456
2457         * WebCoreSupport/WebFrameLoaderClient.mm:
2458
2459 2010-11-14  Kent Tamura  <tkent@chromium.org>
2460
2461         Reviewed by Andreas Kling.
2462
2463         KeyboardEvent::keyIdentifier() should return "const String&"
2464         https://bugs.webkit.org/show_bug.cgi?id=49426
2465
2466         * WebCoreSupport/WebEditorClient.mm:
2467         (selectorForKeyEvent):
2468           Change the type of a variable to have keyIdentifier(); String -> const String&
2469
2470 2010-11-12  John Knottenbelt  <jknotten@chromium.org>
2471
2472         Reviewed by Steve Block.
2473
2474         Rename GeolocationControllerClient to GeolocationClient.
2475         https://bugs.webkit.org/show_bug.cgi?id=49259
2476
2477         * WebCoreSupport/WebGeolocationClient.h: Renamed from WebKit/mac/WebCoreSupport/WebGeolocationControllerClient.h.
2478         (WebGeolocationClient::webView):
2479         (WebGeolocationClient::setEnableHighAccuracy):
2480         * WebCoreSupport/WebGeolocationClient.mm: Renamed from WebKit/mac/WebCoreSupport/WebGeolocationControllerClient.mm.
2481         (WebGeolocationClient::WebGeolocationClient):
2482         (WebGeolocationClient::geolocationDestroyed):
2483         (WebGeolocationClient::startUpdating):
2484         (WebGeolocationClient::stopUpdating):
2485         (WebGeolocationClient::lastPosition):
2486         * WebKit.order:
2487         * WebView/WebView.mm:
2488         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2489
2490 2010-11-10  Beth Dakin  <bdakin@apple.com>
2491
2492         Reviewed by Simon Fraser.
2493
2494         Fix for https://bugs.webkit.org/show_bug.cgi?id=49356 
2495         -[WebView _scaleWebView:] should take and origin and scroll the 
2496         document
2497         -and corresponding-
2498         <rdar://problem/8643921>
2499
2500         * WebView/WebView.mm:
2501         (-[WebView _scaleWebView:atOrigin:]):
2502         * WebView/WebViewPrivate.h:
2503
2504 2010-11-10  Csaba Osztrogonác  <ossy@webkit.org>
2505
2506         Reviewed by David Hyatt.
2507
2508         HTML5 Ruby support should be mandatory feature
2509         https://bugs.webkit.org/show_bug.cgi?id=49272
2510
2511         Remove Ruby as optional feature.
2512
2513         * Configurations/FeatureDefines.xcconfig:
2514
2515 2010-11-08  Ned Holbrook  <nholbrook@apple.com>
2516
2517         Reviewed by Adam Barth.
2518
2519         Avoid CFAttributedString creation in ComplexTextController by adopting UniChar provider SPI.
2520         https://bugs.webkit.org/show_bug.cgi?id=48886
2521
2522         * WebCoreSupport/WebSystemInterface.mm:
2523         (InitWebCoreSystemInterface):
2524
2525 2010-11-08  Nate Chapin  <japhet@chromium.org>
2526
2527         Unreviewed, build fix.
2528
2529         Clumsy typo in r71562.
2530
2531         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2532         (WebKit::HostedNetscapePluginStream::start):
2533
2534 2010-11-08  Nate Chapin  <japhet@chromium.org>
2535
2536         Reviewed by Alexey Proskuryakov.
2537
2538         Interface changes in https://bugs.webkit.org/show_bug.cgi?id=27165
2539
2540         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2541         (WebKit::HostedNetscapePluginStream::start): Move duplicate code into NetscapePluginStreamLoader
2542         * Plugins/WebNetscapePluginStream.mm:
2543         (WebNetscapePluginStream::start): Move duplicate code into NetscapePluginStreamLoader
2544         * WebView/WebView.mm:
2545         (-[WebView _dispatchPendingLoadRequests]): Use resourceLoadScheduler() instead of cache()->loader().
2546
2547 2010-11-08  Anders Carlsson  <andersca@apple.com>
2548
2549         Reviewed by Dan Bernstein.
2550
2551         Plug-in views should not assume that plugins are RenderEmbeddedObjects
2552         https://bugs.webkit.org/show_bug.cgi?id=49196
2553         <rdar://problem/8638467>
2554
2555         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2556         (-[WebHostedNetscapePluginView pluginHostDied]):
2557
2558 2010-11-08  Alexey Proskuryakov  <ap@apple.com>
2559
2560         Reviewed by Darin Adler.
2561
2562         https://bugs.webkit.org/show_bug.cgi?id=48685
2563         Notify UI process about focused frame
2564
2565         Added an empty implementation of the new ChromeClient method.
2566
2567         * WebCoreSupport/WebChromeClient.h:
2568         * WebCoreSupport/WebChromeClient.mm:
2569         (WebChromeClient::focusedFrameChanged):
2570
2571 2010-11-08  Anders Carlsson  <andersca@apple.com>
2572
2573         Build fix.
2574
2575         * MigrateHeaders.make:
2576
2577 2010-11-08  Anders Carlsson  <andersca@apple.com>
2578
2579         Reviewed by Adam Roben.
2580
2581         Remove use of HIGetScaleFactor
2582         https://bugs.webkit.org/show_bug.cgi?id=49186
2583         <rdar://problem/8618410>
2584
2585         Scale factors can vary on a display-by-display basis and it doesn't make sense
2586         to compute scale factor event coordinates like this.
2587
2588         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
2589         (getCarbonEvent):
2590
2591 2010-11-08  Simon Fraser  <simon.fraser@apple.com>
2592
2593         Reviewed by Sam Weinig.
2594
2595         Allow applets to participate in accelerated compositing
2596         https://bugs.webkit.org/show_bug.cgi?id=49117
2597         <rdar://problem/8625819>
2598         
2599         If Java is being loaded via the Netscape Plugin API, create a
2600         NetscapePluginWidget so that it has an implementation of platformLayer().
2601         
2602         Also clean up by using early returns.
2603
2604         * WebCoreSupport/WebFrameLoaderClient.mm:
2605
2606 2010-11-07  Adam Barth  <abarth@webkit.org>
2607
2608         Reviewed by Eric Seidel.
2609
2610         Rename Cache to MemoryCache
2611         https://bugs.webkit.org/show_bug.cgi?id=49159
2612
2613         * Misc/WebCache.mm:
2614         (+[WebCache statistics]):
2615         * WebCoreSupport/WebDeviceOrientationClient.mm:
2616         (WebDeviceOrientationClient::setController):
2617         * WebView/WebView.mm:
2618
2619 2010-11-05  Alexey Proskuryakov  <ap@apple.com>
2620
2621         Reviewed by Darin Adler.
2622
2623         https://bugs.webkit.org/show_bug.cgi?id=49100
2624         ASSERT([self window]) fails in -[WebBaseNetscapePluginView restartTimers]
2625
2626         * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView restartTimers]):
2627         Removed the assertion. Multiple callers provide no guarantee that the plug-in is still alive
2628         (see bug comments), and there seems to be no harm in executing this function in that case.
2629
2630 2010-11-05  Chris Marrin  <cmarrin@apple.com>
2631
2632         Reviewed by Simon Fraser.
2633
2634         Move resumeAnimations/suspendAnimations from Frame to AnimationController.
2635         https://bugs.webkit.org/show_bug.cgi?id=49073
2636
2637         * WebView/WebFrame.mm:
2638         (-[WebFrame _suspendAnimations]):
2639         (-[WebFrame _resumeAnimations]):
2640
2641 2010-11-04  Alexey Proskuryakov  <ap@apple.com>
2642
2643         Reviewed by Darin Adler.
2644
2645         https://bugs.webkit.org/show_bug.cgi?id=49008
2646         <rdar://problem/7906226> Frequent crashes on mail.yahoo.co.jp
2647
2648         Callers of NetscapePluginInstanceProxy::waitForReply() are not prepared to be deleted during
2649         the call, unless it returns 0. There are two reasons for NetscapePluginInstanceProxy to be
2650         deleted during wait:
2651         - plugin crashed;
2652         - plugin was stopped (e.g. due to a DOM modification performed by another reply that came in
2653         while waiting).
2654
2655         We didn't recognize the latter.
2656
2657         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2658         (WebKit::PluginDestroyDeferrer::~PluginDestroyDeferrer):
2659         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2660         (WebKit::NetscapePluginInstanceProxy::waitForReply):
2661         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2662         (WebKit::NetscapePluginInstanceProxy::didCallPluginFunction):
2663
2664 2010-11-05  Chris Marrin  <cmarrin@apple.com>
2665
2666         Reviewed by Simon Fraser.
2667
2668         Make suspendAnimations/resumeAnimations and setCSSAnimations traverse through subframes and remember state
2669         https://bugs.webkit.org/show_bug.cgi?id=46945
2670
2671         * WebView/WebFrame.mm:
2672         (-[WebFrame _suspendAnimations]):
2673         (-[WebFrame _resumeAnimations]):
2674
2675 2010-11-04  Jia Pu  <jpu@apple.com>
2676
2677         Reviewed by Dan Bernstein.
2678
2679         reversion bubble in WebViews
2680         https://bugs.webkit.org/show_bug.cgi?id=47630
2681         <rdar://problem/8530960>
2682
2683         This patch is to add reversion to correction panel. Please see WebCore/ChangeLog for detail.
2684
2685         * WebCoreSupport/WebEditorClient.h: Adopted new signature of base class method.
2686         * WebCoreSupport/WebEditorClient.mm: Adopted new signature of base class method. And code
2687           change to use new reversion API in AppKit.
2688         (WebEditorClient::WebEditorClient):
2689         (WebEditorClient::~WebEditorClient):
2690         (WebEditorClient::respondToChangedSelection):
2691         (WebEditorClient::showCorrectionPanel):
2692         (WebEditorClient::dismissCorrectionPanel):
2693         (WebEditorClient::isShowingCorrectionPanel):
2694
2695 2010-11-04  Mike Thole  <mthole@apple.com>
2696
2697         Reviewed by Dan Bernstein.
2698
2699         Title for images should use localized numerals
2700         https://bugs.webkit.org/show_bug.cgi?id=49017
2701
2702         * WebCoreSupport/WebPlatformStrategies.mm:
2703         (WebPlatformStrategies::imageTitle): Use localized numerals on Snow Leopard or newer.
2704
2705 2010-11-02  Daniel Bates  <dbates@rim.com>
2706
2707         Reviewed by Adam Barth.
2708
2709         For unnamed frames, window.name returns a generated name
2710         https://bugs.webkit.org/show_bug.cgi?id=6751
2711
2712         Part 1 of 2.
2713
2714         Substitute FrameTree::uniqueName() for FrameTree::name() in the Mac port. 
2715
2716         * WebView/WebFrame.mm:
2717         (-[WebFrame name]):
2718
2719 2010-11-01  Brady Eidson  <beidson@apple.com>
2720
2721         Reviewed by Anders Carlsson.
2722
2723         <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
2724         Context menu support for WebKit 2.
2725
2726         * WebCoreSupport/WebChromeClient.h:
2727         (WebChromeClient::showContextMenu):
2728
2729 2010-10-29  Daniel Bates  <dbates@rim.com>
2730
2731         No review, rolling out 70971.
2732         http://trac.webkit.org/changeset/70971
2733         https://bugs.webkit.org/show_bug.cgi?id=6751
2734
2735         Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
2736         it caused layout test failures on all bots. In particular, the
2737         child count in a generated frame name differs after this patch. We need
2738         to look into this further.
2739
2740         * WebView/WebFrame.mm:
2741         (-[WebFrame name]):
2742
2743 2010-10-28  Antonio Gomes  <agomes@rim.com>
2744
2745         Reviewed by Ojan Vafai.
2746
2747         Needs a "LinuxEditingBehavior", perhaps with a better name
2748         https://bugs.webkit.org/show_bug.cgi?id=36627
2749
2750         Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WebKitEditingUnixBehavior.
2751
2752         * WebView/WebFrame.mm:
2753         (core):
2754         * WebView/WebPreferencesPrivate.h:
2755
2756 2010-10-29  Daniel Bates  <dbates@rim.com>
2757
2758         Reviewed by Adam Barth.
2759
2760         For unnamed frames, window.name returns a generated name
2761         https://bugs.webkit.org/show_bug.cgi?id=6751
2762
2763         Modified Mac-port to use FrameTree::uniqueName().
2764
2765         * WebView/WebFrame.mm:
2766         (-[WebFrame name]):
2767
2768 2010-10-29  Darin Adler  <darin@apple.com>
2769
2770         Reviewed by Sam Weinig.
2771
2772         Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
2773         https://bugs.webkit.org/show_bug.cgi?id=48574
2774
2775         * History/WebBackForwardList.mm:
2776         Use BackForwardListImpl.
2777
2778 2010-10-29  Alexey Proskuryakov  <ap@apple.com>
2779
2780         Rubber-stamped by Sam Weinig.
2781
2782         Comment for usesDocumentViews explains it backwards. This flag is true in ToT, and we do
2783         create views for subframes.
2784
2785         * WebView/WebViewData.h: Double negation is better than a lie.
2786
2787 2010-10-27  Jer Noble  <jer.noble@apple.com>
2788
2789         Reviewed by Darin Adler.
2790
2791         Full screen video in Safari (still) exits full-screen if you switch to another 
2792         app on a multi-display system.
2793         https://bugs.webkit.org/show_bug.cgi?id=47364
2794         <rdar://problem/8382299>
2795         
2796         The FullScreen window does not technically close when it deactivates, but the 
2797         two NSWindows that make up the FullScreen feature should not hide when deactivated.
2798         
2799         * WebView/WebVideoFullscreenController.mm:
2800         (createBackgroundFullscreenWindow): Do not set hidesOnDeactivate.
2801         (-[WebVideoFullscreenWindow initWithContentRect:styleMask:backing:defer:]): Ditto.
2802         * WebView/WebVideoFullscreenHUDWindowController.mm:
2803         (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]): Ditto.
2804
2805 2010-10-29  Alexey Proskuryakov  <ap@apple.com>
2806
2807         Reviewed by Darin Adler.
2808
2809         https://bugs.webkit.org/show_bug.cgi?id=48576
2810         Let WebKit2 client know when a frame is a frameset
2811
2812         Added a blank implementation of the new FrameLoaderClient method.
2813
2814         * WebCoreSupport/WebFrameLoaderClient.h:
2815         * WebCoreSupport/WebFrameLoaderClient.mm:
2816         (WebFrameLoaderClient::dispatchDidBecomeFrameset):
2817
2818 2010-10-29  Csaba Osztrogonác  <ossy@webkit.org>
2819
2820         Reviewed by Adam Roben and David Kilzer.
2821
2822         Fix and cleanup of build systems
2823         https://bugs.webkit.org/show_bug.cgi?id=48342
2824
2825         * Configurations/FeatureDefines.xcconfig: Remove unnecessary ENABLE_SANDBOX.
2826
2827 2010-10-28  Dan Bernstein  <mitz@apple.com>
2828
2829         Reviewed by Mark Rowe.
2830
2831         LLVM compiler build fix
2832
2833         * Misc/WebDownload.mm:
2834         (-[WebDownload initWithRequest:delegate:]): Changed the delegate type from id to
2835         id<NSURLDownloadDelegate> to match the method signature in NSURLDownload.
2836
2837 2010-10-28  Ivan Krstić  <ike@apple.com>
2838
2839         Reviewed by Mark Rowe.
2840
2841         Remove unused experimental proxied panel interface.
2842         <rdar://problem/7237059>
2843
2844         * Plugins/Hosted/NetscapePluginHostManager.h:
2845         * Plugins/Hosted/NetscapePluginHostManager.mm:
2846         (WebKit::NetscapePluginHostManager::hostForPlugin):
2847         (WebKit::NetscapePluginHostManager::spawnPluginHost):
2848         (WebKit::NetscapePluginHostManager::instantiatePlugin):
2849         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2850         * Plugins/Hosted/WebKitPluginClient.defs:
2851         * Plugins/Hosted/WebKitPluginHost.defs:
2852         * WebCoreSupport/WebSystemInterface.mm:
2853         (InitWebCoreSystemInterface):
2854         * WebView/WebPreferenceKeysPrivate.h:
2855         * WebView/WebPreferences.mm:
2856         (+[WebPreferences initialize]):
2857         * WebView/WebPreferencesPrivate.h:
2858
2859 2010-10-27  Pratik Solanki  <psolanki@apple.com>
2860
2861         Reviewed by Darin Adler.
2862
2863         Improve memSize calculation in [WebView _setCacheModel]
2864         https://bugs.webkit.org/show_bug.cgi?id=48484
2865
2866         * WebView/WebView.mm:
2867         (roundUpToPowerOf2): Added. Utility function to calculate the nearest power of 2.
2868         (+[WebView _setCacheModel:]): Update memSize calculation to set it to the next
2869         bigger power of 2. Also update WebCore cache settings.
2870
2871 2010-10-26  Darin Adler  <darin@apple.com>
2872
2873         Reviewed by Sam Weinig.
2874
2875         WebKitTestRunner needs to support layoutTestController.dumpBackForwardList
2876         https://bugs.webkit.org/show_bug.cgi?id=42322
2877         rdar://problem/8193631
2878
2879         WebKitTestRunner needs to support layoutTestController.clearBackForwardList
2880         https://bugs.webkit.org/show_bug.cgi?id=42333
2881         rdar://problem/8193643
2882
2883         * History/WebBackForwardList.mm:
2884         (core): Return BackForwardListImpl.
2885         (kit): Take BackForwardListImpl.
2886         (-[WebBackForwardList initWithBackForwardList:]): Use BackForwardListImpl.
2887         (-[WebBackForwardList dealloc]): Ditto.
2888         (-[WebBackForwardList finalize]): Ditto.
2889         (-[WebBackForwardList description]): Ditto.
2890         (-[WebBackForwardList setPageCacheSize:]): Ditto.
2891         (-[WebBackForwardList pageCacheSize]): Ditto.
2892         * History/WebBackForwardListInternal.h: Ditto.
2893         * WebView/WebFrameView.mm:
2894         (-[WebFrameView keyDown:]): Ditto.
2895         * WebView/WebView.mm:
2896         (-[WebView initWithCoder:]): Ditto.
2897         (-[WebView encodeWithCoder:]): Ditto.
2898         (-[WebView backForwardList]): Ditto.
2899         (-[WebView setMaintainsBackForwardList:]): Ditto.
2900
2901 2010-10-27  Chris Rogers  <crogers@google.com>
2902
2903         Reviewed by Chris Marrin.
2904
2905         Add ENABLE_WEB_AUDIO feature enable flag (initially disabled) to build-webkit
2906         https://bugs.webkit.org/show_bug.cgi?id=48279
2907
2908         * Configurations/FeatureDefines.xcconfig:
2909
2910 2010-10-27  Beth Dakin  <bdakin@apple.com>
2911
2912         Reviewed by Darin Adler.
2913
2914         Fix for https://bugs.webkit.org/show_bug.cgi?id=48385 Add WebKit 
2915         SPI to scale a WebView
2916         -and corresponding-
2917         <rdar://problem/8107667>
2918
2919         This patch adds SPI to Mac WebKit that scales the page by the given 
2920         scale factor.
2921
2922         * WebView/WebView.mm:
2923         (-[WebView _scaleWebView:]):
2924         (-[WebView _viewScaleFactor]):
2925         * WebView/WebViewPrivate.h:
2926
2927 2010-10-27  Dan Bernstein  <mitz@apple.com>
2928
2929         Reviewed by Darin Adler.
2930
2931         REGRESSION (r70335): Incorrect article layout in Safari Reader
2932         https://bugs.webkit.org/show_bug.cgi?id=48436
2933
2934         * Misc/WebKitVersionChecks.h: Added WEBKIT_FIRST_VERSION_WITH_GET_MATCHED_CSS_RULES_RESTRICTIONS.
2935         * WebView/WebView.mm:
2936         (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Added. Returns YES for Safari linked against
2937         versions of WebKit that did not have the cross-origin restrictions in getMatchedCSSRules().
2938         (-[WebView _preferencesChangedNotification:]): Call Settings::setCrossOriginCheckInGetMatchedCSSRulesDisabled()
2939         based on the above.
2940
2941 2010-10-18  Jer Noble  <jer.noble@apple.com>
2942
2943         Reviewed by Eric Carlson.
2944
2945         Safari fullscreen media element tickles when it should not.
2946         
2947         https://bugs.webkit.org/show_bug.cgi?id=47861
2948
2949         * WebView/WebVideoFullscreenController.mm:
2950         (-[WebVideoFullscreenController updatePowerAssertions]):
2951
2952 2010-10-26  Jenn Braithwaite  <jennb@chromium.org>
2953
2954         Reviewed by Dmitry Titov.
2955
2956         Resource tracking failure when trying to move a frame between documents
2957         https://bugs.webkit.org/show_bug.cgi?id=44713
2958
2959         * WebCoreSupport/WebFrameLoaderClient.h:
2960         * WebCoreSupport/WebFrameLoaderClient.mm:
2961         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
2962         Empty method.
2963         (WebFrameLoaderClient::transferLoadingResourceFromPage):
2964         Update resource tracking for a resource load that has been transferred
2965         to a new page.
2966
2967 2010-10-25  Oliver Hunt  <oliver@apple.com>
2968
2969         Reviewed by Gavin Barraclough.
2970
2971         Remove exec and globalData arguments from jsNumber
2972         https://bugs.webkit.org/show_bug.cgi?id=48270
2973
2974         Mechanical removal of exec parameter to jsNumber
2975
2976         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2977         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
2978         * Plugins/Hosted/ProxyInstance.mm:
2979         (WebKit::ProxyInstance::numberValue):
2980
2981 2010-10-24  Dan Bernstein  <mitz@apple.com>
2982
2983         Reviewed by Anders Carlsson.
2984
2985         Expose HitTestResult::absoluteMediaURL() via WebKit API
2986         https://bugs.webkit.org/show_bug.cgi?id=48219
2987
2988         * Misc/WebElementDictionary.mm:
2989         (+[WebElementDictionary initializeLookupTable]): Map WebElementMediaURLKey to
2990         _absoluteMediaURL.
2991         (-[WebElementDictionary _absoluteMediaURL]): Added. Returns absoluteMediaURL().
2992         * WebKit.exp: Export WebElementMediaURLKey.
2993         * WebView/WebView.mm: Define WebElementMediaURLKey.
2994         * WebView/WebViewPrivate.h: Declare WebElementMediaURLKey.
2995
2996 2010-10-24  Dan Bernstein  <mitz@apple.com>
2997
2998         Reviewed by Simon Fraser.
2999
3000         Removed deprecated methods from the WebHTMLHighlighter private protocol.
3001
3002         * WebCoreSupport/WebChromeClient.mm:
3003         (WebChromeClient::customHighlightRect): Call -highlightRectForLine:representedNode:
3004         unconditionally.
3005         (WebChromeClient::paintCustomHighlight): Call
3006         -paintHighlightForBox:onLine:behindText:entireLine:representedNode: unconditionally.
3007         * WebView/WebHTMLViewPrivate.h:
3008
3009 2010-10-23  Xan Lopez  <xlopez@igalia.com>
3010
3011         Reviewed by Sam Weinig.
3012
3013         Unify globalData APIs
3014         https://bugs.webkit.org/show_bug.cgi?id=47969
3015
3016         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3017         (WebKit::NetscapePluginInstanceProxy::evaluate):
3018         (WebKit::NetscapePluginInstanceProxy::invoke):
3019         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3020         (WebKit::NetscapePluginInstanceProxy::construct):
3021         * WebView/WebScriptDebugDelegate.mm:
3022         (-[WebScriptCallFrame evaluateWebScript:]):
3023
3024 2010-10-23  David Kilzer  <ddkilzer@apple.com>
3025
3026         <http://webkit.org/b/48186> Remove unneeded WebHTMLRepresentationInternal.h header
3027
3028         Reviewed by Sam Weinig.
3029
3030         The only method defined in WebHTMLRepresentationInternal.h is
3031         also defined in WebHTMLRepresentation.h, so use that instead.
3032
3033         * WebView/WebHTMLRepresentationInternal.h: Removed.
3034
3035 2010-10-23  Alexey Proskuryakov  <ap@apple.com>
3036
3037         Reviewed by Anders Carlsson.
3038
3039         https://bugs.webkit.org/show_bug.cgi?id=48083
3040         <rdar://problem/8489082> Need WebKit2 API for private browsing (48083)
3041
3042         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize the new method.
3043
3044 2010-10-22  Sam Weinig  <sam@webkit.org>
3045
3046         Reviewed by Anders Carlsson.
3047
3048         WebKit2 needs to pass the current event modifier flags when requesting a new window
3049         https://bugs.webkit.org/show_bug.cgi?id=48140
3050
3051         * WebCoreSupport/WebChromeClient.h:
3052         * WebCoreSupport/WebChromeClient.mm:
3053         (WebChromeClient::createWindow):
3054         * WebCoreSupport/WebFrameLoaderClient.h:
3055         * WebCoreSupport/WebFrameLoaderClient.mm:
3056         (WebFrameLoaderClient::dispatchCreatePage):
3057         Add NavigationAction parameter.
3058
3059 2010-10-21  Andy Estes  <aestes@apple.com>
3060
3061         Reviewed by Eric Carlson.
3062
3063         WebKit shouldn't load a plug-in based on file extension if a MIME type
3064         is specified.
3065         https://bugs.webkit.org/show_bug.cgi?id=48046
3066
3067         If a MIME type is specified in an object or embed element, and that MIME
3068         type isn't supported by an installed plug-in, WebKit shouldn't attempt
3069         to find a plug-in based on the file extension of the url attribute.
3070         Doing so can lead to cases where a plug-in is loaded that can't handle
3071         resources of the MIME type specified by the author.
3072
3073         * WebCoreSupport/WebFrameLoaderClient.mm:
3074         (WebFrameLoaderClient::createPlugin): Only check for a pluginPackage by
3075         extension if MIME type is the empty string.
3076
3077 2010-10-20  Simon Fraser  <simon.fraser@apple.com>
3078
3079         Reviewed by Dan Bernstein.
3080
3081         Composited elements drawn twice when WebView is layer-backed
3082         https://bugs.webkit.org/show_bug.cgi?id=48024
3083         <rdar://problem/7916580>
3084         
3085         When drawing content in a layer-backed WebView, WebFrame's test
3086         for drawing to a bitmap succeeded, causing us to paint flattened
3087         compositing layers into the view. They would also be rendered
3088         by the normal compositing path, resulting in double rendering.
3089         
3090         Fix this by detecting when the WebHTMLView is being drawn into
3091         a layer, and avoiding flattening in that case.
3092
3093         * WebView/WebFrame.mm:
3094         (-[WebFrame _showFlattenedCompositingLayers:]):
3095         (-[WebFrame _drawRect:contentsOnly:]):
3096         * WebView/WebHTMLView.mm:
3097         (-[WebHTMLView drawLayer:inContext:]):
3098         (-[WebHTMLView _web_isDrawingIntoLayer]):
3099         * WebView/WebHTMLViewInternal.h:
3100
3101 2010-10-20  Dumitru Daniliuc  <dumi@chromium.org>
3102
3103         Reviewed by David Levin.
3104
3105         Repost the DatabaseTracker notifications to the main thread, if needed.
3106         https://bugs.webkit.org/show_bug.cgi?id=40655
3107
3108         * Storage/WebDatabaseTrackerClient.mm:
3109         (DidModifyOriginData::dispatchToMainThread):
3110         (DidModifyOriginData::DidModifyOriginData):
3111         (DidModifyOriginData::dispatchDidModifyOriginOnMainThread):
3112         (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
3113         (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
3114
3115 2010-10-20  Simon Fraser  <simon.fraser@apple.com>
3116
3117         Reviewed by Darin Adler.
3118
3119         REGRESSION(r67568-r67643): Some HTML/CSS renders upside down and backwards on Leopard
3120         https://bugs.webkit.org/show_bug.cgi?id=47369
3121         
3122         r46947 added code that limits the size of the layer-backed view on Leopard when
3123         the page height exceeds 4096px (later adjusted to 2048px in r48401).
3124         
3125         Later, r67576 altered the geometry flipping behavior to push the geometry flipping
3126         down into WebKit. However, the code that adjusts the hosting layer's sublayer transform
3127         to account for layer-backed view size-limiting was not fixed at the same time.
3128         This change corrects that.
3129
3130         * WebView/WebHTMLView.mm:
3131         (-[WebHTMLView _updateLayerHostingViewPosition]):
3132
3133 2010-10-19  Simon Fraser  <simon.fraser@apple.com>
3134
3135         Reviewed by Dan Bernstein.
3136
3137         <rdar://problem/8508422> Compositing layers aren't always displayed correctly in layer-backed WebViews
3138         
3139         AppKit has some special code to prevent it meddling with view's layers
3140         under layer-backed WebViews. When a layer-backed WebView became composited,
3141         this caused our layer to remain zero-sized. Fix this by manually
3142         setting the geometry for our layer, if the WebHTMLView has a layer.
3143         
3144         This does not seem to be a problem if the WebView becomes layer-backed, or
3145         stops being layer-backed after the WebView starts using compositing.
3146
3147         * WebView/WebHTMLView.mm:
3148         (-[WebHTMLView attachRootLayer:]):
3149
3150 2010-10-20  Dirk Schulze  <krit@webkit.org>
3151
3152         Reviewed by Nikolas Zimmermann.
3153
3154         Merge ColorSpace and ImageColorSpace enums
3155         https://bugs.webkit.org/show_bug.cgi?id=47922
3156
3157         Renamed ColorSpace enum entries DeviceColorSpace and sRGBColorSpace to ColorSpaceDeviceRGB and ColorSpaceSRGB
3158         to follow webkit style rules.
3159
3160         * Misc/WebKitNSStringExtras.mm:
3161         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
3162
3163 2010-10-19  Alexey Proskuryakov  <ap@apple.com>
3164
3165         Reviewed by Anders Carlsson.
3166
3167         https://bugs.webkit.org/show_bug.cgi?id=47933
3168         <rdar://problem/8494337> navigator.language doesn't work in WebKit2
3169
3170         * Misc/WebNSUserDefaultsExtras.mm: Moved code for computing default language to WebCore.
3171         We need to keep _webkit_preferredLanguageCode for Safari.
3172
3173         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface):
3174         Initialize wkCopyCFLocalizationPreferredName.
3175
3176         * WebCoreSupport/WebViewFactory.mm: Removed defaultLanguage. WebCore was the only caller.
3177
3178 2010-10-18  Alexey Proskuryakov  <ap@apple.com>
3179
3180         Reviewed by David Kilzer.
3181
3182         https://bugs.webkit.org/show_bug.cgi?id=47864
3183         Convert WebNSUserDefaultsExtras.m to .mm
3184
3185         Also, fixed some issues in the process:
3186         - removed locking, which was only necessary when this code was in Foundation;
3187         - fixed notification center observer to actually work (previously, it picked up changes
3188         when application preferences changed, not when system language did);
3189         - removed unused NSString category;
3190         - updated style.
3191
3192         * Misc/WebNSUserDefaultsExtras.m: Removed.
3193         * Misc/WebNSUserDefaultsExtras.mm: Copied from WebKit/mac/Misc/WebNSUserDefaultsExtras.m.
3194         (createHTTPStyleLanguageCode):
3195         (+[NSUserDefaults _webkit_defaultsDidChange]):
3196         (addLanguageChangeObserver):
3197         (+[NSUserDefaults _webkit_preferredLanguageCode]):
3198
3199 2010-10-18  Stuart Morgan  <stuartmorgan@chromium.org>
3200
3201         Reviewed by Eric Seidel.
3202
3203         Switch to using the new Carbon NPAPI event declarations, and remove
3204         the old ones.
3205
3206         https://bugs.webkit.org/show_bug.cgi?id=40784
3207
3208         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
3209         (WebNetscapePluginEventHandlerCarbon::mouseEntered):
3210         (WebNetscapePluginEventHandlerCarbon::mouseExited):
3211         (WebNetscapePluginEventHandlerCarbon::mouseMoved):
3212         (WebNetscapePluginEventHandlerCarbon::focusChanged):
3213
3214 2010-10-18  Pavel Podivilov  <podivilov@chromium.org>
3215
3216         Reviewed by Timothy Hatcher.
3217
3218         Web Inspector: disable private browsing for inspector
3219         https://bugs.webkit.org/show_bug.cgi?id=47827
3220
3221         * WebCoreSupport/WebInspectorClient.mm:
3222         (-[WebInspectorWindowController init]):
3223
3224 2010-10-14  Ilya Tikhonovsky  <loislo@chromium.org>
3225
3226         Reviewed by Pavel Feldman.
3227
3228         Web Inspector: inspector settings/properties/states management
3229         should be extracted into separate class.
3230
3231         We have a lot of flags/values in InspectorController.
3232         Some flags are persisting into profile.
3233         Others are part of inspector state for frontend.
3234         All these flags should keep their values after navigation.
3235         It'd be better to extract these flags/values into separate
3236         class which will care about theirs lifetime.
3237
3238         https://bugs.webkit.org/show_bug.cgi?id=47275
3239
3240         * WebCoreSupport/WebInspectorClient.mm:
3241         (-[WebInspectorWindowController showWindow:]):
3242         (-[WebInspectorWindowController attach]):
3243         (-[WebInspectorWindowController detach]):
3244
3245 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
3246
3247         Reviewed by Oliver Hunt.
3248
3249         https://bugs.webkit.org/show_bug.cgi?id=43987
3250         Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
3251         to construct their internal result string.  Remove ScriptString (this is now
3252         redundant).
3253
3254         * WebCoreSupport/WebFrameLoaderClient.mm:
3255
3256 2010-10-12  Andy Estes  <aestes@apple.com>
3257
3258         Rubber-stamped by Darin Adler.
3259
3260         Check in some cleanup from the previous commit.
3261
3262         * WebView/WebView.mm:
3263         (leakMailQuirksUserScriptPath): Renamed to indicate that this function
3264         leaks an NSString.
3265         (-[WebView _injectMailQuirksScript]): Moved a static initialization from
3266         a separate class method into the only method that used it and removed
3267         the now-unnecessary class method.
3268
3269 2010-10-12  Eric Seidel  <eric@webkit.org>
3270
3271         Reviewed by Darin Adler.
3272
3273         REGRESSION (new parser): Leopard/Tiger Mail <head>/<body> quirk is gone
3274         https://bugs.webkit.org/show_bug.cgi?id=45693
3275
3276         Re-implement this former WebCore parser quirk as a
3277         Mac-only userscript-based quirk.  As far as I can tell
3278         from Darin's description this should satisfy Mail's needs.
3279
3280         * Misc/MailQuirksUserScript.js: Added.
3281         * WebView/WebView.mm:
3282         (+[WebView _mailQuirksUserScript]):
3283         (-[WebView _injectMailQuirksScript]):
3284         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3285
3286 2010-10-12  Simon Fraser  <simon.fraser@apple.com>
3287
3288         Reviewed by Sam Weinig.
3289
3290         Add 'didDraw' callback for framerate tracking
3291         https://bugs.webkit.org/show_bug.cgi?id=47478
3292
3293         Add a callback at the end of -[WebHTMLView drawRect:] so
3294         a delegate can get notified when a draw happens.
3295         
3296         * WebView/WebHTMLView.mm:
3297         (-[WebHTMLView drawRect:]):
3298         * WebView/WebUIDelegatePrivate.h:
3299
3300 2010-10-11  Anders Carlsson  <andersca@apple.com>
3301
3302         Reviewed by Darin Adler.
3303
3304         Remove WebIconFetcher from WebKit and IconFetcher from WebCore
3305         https://bugs.webkit.org/show_bug.cgi?id=47523
3306
3307         Remove all traces of the WebKit WebIconFetcher class. It's SPI that nobody uses.
3308
3309         * Misc/WebIconFetcher.h: Removed.
3310         * Misc/WebIconFetcher.mm: Removed.
3311         * Misc/WebIconFetcherInternal.h: Removed.
3312         * WebView/WebFrame.mm:
3313         * WebView/WebFramePrivate.h:
3314
3315 2010-10-11  Jessie Berlin  <jberlin@apple.com>
3316
3317         Reviewed by Darin Adler.
3318
3319         Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal
3320         representation of a WebKit1 WebSerializedJSValue.
3321         https://bugs.webkit.org/show_bug.cgi?id=47439
3322
3323         * WebView/WebSerializedJSValue.mm:
3324         (-[WebSerializedJSValue internalRepresentation]):
3325         * WebView/WebSerializedJSValuePrivate.h:
3326
3327 2010-10-07  Jessie Berlin  <jberlin@apple.com>
3328
3329         Reviewed by Sam Weinig.
3330
3331         Add Private API for creating a WebKit1 WebSerializedJSValue from the internal
3332         representation of a WebKit2 WebSerializedScriptValue.
3333         https://bugs.webkit.org/show_bug.cgi?id=47390
3334
3335         * WebView/WebSerializedJSValue.mm:
3336         (-[WebSerializedJSValue initWithInternalRepresentation:]):
3337         Set the WebSerializedJSValuePrivate's WebCore::SerializedScriptValue to be the passed in
3338         internal representation.
3339         * WebView/WebSerializedJSValuePrivate.h: Added.
3340
3341 2010-10-07  Antonio Gomes  <agomes@rim.com>
3342
3343         Reviewed by Simon Fraser.
3344
3345         [Mac] [DRT] implement setSpatialNavigationEnabled
3346         https://bugs.webkit.org/show_bug.cgi?id=47291
3347
3348         Added the needed bits to make it possible to enabled spatial navigation
3349         for the Mac port. For now it is being only used by DRT.
3350
3351         * WebView/WebPreferenceKeysPrivate.h:
3352         * WebView/WebPreferences.mm:
3353         (+[WebPreferences initialize]):
3354         (-[WebPreferences isSpatialNavigationEnabled]):
3355         (-[WebPreferences setSpatialNavigationEnabled:]):
3356         * WebView/WebPreferencesPrivate.h:
3357         * WebView/WebView.mm:
3358         (-[WebView _preferencesChangedNotification:]):
3359
3360 2010-10-07  Jer Noble  <jer.noble@apple.com>
3361
3362         Fix the Leopard 64-bit build.
3363
3364         * Configurations/WebKit.xcconfig: Add CoreServices.framework/Frameworks to the 
3365             framework search path.
3366         * WebView/WebVideoFullscreenController.mm: Explicitly import <OSStatus/Power.h>.
3367
3368 2010-10-06  Jer Noble  <jer.noble@apple.com>
3369
3370         Reviewed by Darin Adler.
3371
3372         Screensaver starts while watching fullscreen playback.
3373         https://bugs.webkit.org/show_bug.cgi?id=47299
3374         <rdar://problem/8478956>
3375
3376         To disable the Screen Saver, we need to periodically call UpdateSystemActivity().  
3377
3378         * WebView/WebVideoFullscreenController.h: Added _tickleTimer.
3379         * WebView/WebVideoFullscreenController.mm:
3380         (-[WebVideoFullscreenController dealloc]): Invalidate _tickleTimer.
3381         (-[WebVideoFullscreenController _enableTickleTimer]): Create _tickleTimer. 
3382         (-[WebVideoFullscreenController _disableTickleTimer]): Invalidate _tickleTimer.
3383         (-[WebVideoFullscreenController _tickleTimerFired]): Call UpdateSystemActivity().
3384         (-[WebVideoFullscreenController updatePowerAssertions]): Call _enableTickleTimer 
3385             or _disableTickleTimer.
3386
3387 2010-10-05  Philippe Normand  <pnormand@igalia.com>
3388
3389         Reviewed by Martin Robinson.
3390
3391         check for ENABLE(GLIB_SUPPORT) in WebView
3392         https://bugs.webkit.org/show_bug.cgi?id=46788
3393
3394         Use ENABLE(GLIB_SUPPORT) in WebView to guard the glib runloop observer.
3395
3396         * WebView/WebView.mm:
3397         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3398         (-[WebView _close]):
3399         * WebView/WebViewData.h:
3400         * WebView/WebViewInternal.h:
3401
3402 2010-10-01  Anders Carlsson  <andersca@apple.com>
3403
3404         Fix Snow Leopard build.
3405
3406         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3407         (WebKit::NetscapePluginInstanceProxy::getProxy):
3408
3409 2010-10-01  Anders Carlsson  <andersca@apple.com>
3410
3411         Reviewed by Dan Bernstein.
3412
3413         Add proxy server query function proxyServersForURL and change the Mac plug-in code to use it
3414         https://bugs.webkit.org/show_bug.cgi?id=47022
3415         <rdar://problem/8504712>
3416
3417         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3418         (WebKit::NetscapePluginInstanceProxy::getProxy):
3419         * Plugins/WebBaseNetscapePluginView.h:
3420         * Plugins/WebBaseNetscapePluginView.mm:
3421         * Plugins/WebNetscapePluginView.mm:
3422         (-[WebNetscapePluginView getVariable:forURL:value:length:]):
3423
3424 2010-09-30  Darin Adler  <darin@apple.com>
3425
3426         Reviewed by Sam Weinig.
3427
3428         Remove remaining calls to deprecatedParseURL
3429         https://bugs.webkit.org/show_bug.cgi?id=26599
3430
3431         * DOM/WebDOMOperations.mm:
3432         (-[DOMDocument URLWithAttributeString:]):
3433         * WebCoreSupport/WebFrameLoaderClient.mm:
3434         (WebFrameLoaderClient::createPlugin):
3435         Call stripLeadingAndTrailingHTMLSpaces instead of deprecatedParseURL.
3436
3437 2010-09-30  Anders Carlsson  <andersca@apple.com>
3438
3439         Reviewed by Darin Adler.
3440
3441         -[DOMDocument _documentRange] throws an exception if there is no document element
3442         https://bugs.webkit.org/show_bug.cgi?id=46934
3443         <rdar://problem/8169260>
3444
3445         If there is no document element, just return an empty range. Otherwise we'll try to call
3446         Range::selectNode with a null Node which will throw a NOT_FOUND exception.
3447
3448         * DOM/WebDOMOperations.mm:
3449         (-[DOMDocument _documentRange]):
3450
3451 2010-09-30  Chris Marrin  <cmarrin@apple.com>
3452
3453         Reviewed by Simon Fraser.
3454
3455         Make 2D accelerated canvas rendering build on Mac
3456         https://bugs.webkit.org/show_bug.cgi?id=46007
3457         
3458         Added ACCELERATED_2D_CANVAS to FeatureDefines
3459
3460         * Configurations/FeatureDefines.xcconfig:
3461
3462 2010-09-30  Dan Bernstein  <mitz@apple.com>
3463
3464         Reviewed by John Sullivan.
3465
3466         Add printing SPI allowing full control over shrink-to-fit
3467         https://bugs.webkit.org/show_bug.cgi?id=46877
3468
3469         * WebView/WebHTMLView.mm:
3470         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Added.
3471         * WebView/WebHTMLViewPrivate.h:
3472
3473 2010-09-28  Johnny Ding  <jnd@chromium.org>
3474
3475         Reviewed by Adam Barth.
3476
3477         https://bugs.webkit.org/show_bug.cgi?id=41292
3478         Some windowed plugins did not handle events through EventHandler, so we
3479         never set right gesture state for those events.
3480         This change is to set right allowPopupsFromPlugin flag to current
3481         execution frame, so WeKit can always get right gesture state on Mac.
3482         From Mac Snow Leopard, the plugin is run under "WebKitPluginHost,app"
3483         process, that process passes the allowPopupsFromPlugin flag to
3484         WKPCEvaluate(in NetscapePluginHostProxy.mm), then flag is set in
3485         NetscapePluginInstanceProxy::evaluate.
3486
3487         * Plugins/WebNetscapePluginView.mm:
3488         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
3489
3490 2010-09-28  Jenn Braithwaite  <jennb@chromium.org>
3491
3492         Reviewed by Dmitry Titov.
3493
3494         Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
3495         https://bugs.webkit.org/show_bug.cgi?id=46663
3496
3497         * WebCoreSupport/WebFrameLoaderClient.h:
3498         * WebCoreSupport/WebFrameLoaderClient.mm:
3499         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
3500
3501 2010-09-26  Antonio Gomes  <agomes@rim.com>
3502
3503         Reviewed by Kenneth Rohde Christiansen.
3504
3505         DRT/Mac nodesFromRect support
3506
3507         [Mac][DRT] Implement LayoutTestController::nodesFromRect
3508         https://bugs.webkit.org/show_bug.cgi?id=46580
3509
3510         Implement nodesFromRect as a private method to access non-exposed Document
3511         methods, similarly to computedStyleIncludingVisitedInfo.
3512
3513         * WebView/WebView.mm: Added JSDocument.h and JSNodeList.h to the include list.
3514         These headers makes it possible to:
3515         1) Get a Document off of a JSDocument;
3516         2) Call toJS function, defined in JSNodeList.cpp|h so we can convert RefPtr<NodeList>
3517         gotten from Document::nodesFromRect to JS bindings.
3518         (-[WebView _nodesFromRect:forDocument:x:y:hPadding:vPadding:ignoreClipping:]):
3519         * WebView/WebViewPrivate.h: Added nodesFromRect method to access methods of the
3520         Document class not exposed to JavaScript. It works similarly to computedStyleIncludingVisitedInfo.
3521
3522 2010-09-24  Jia Pu  <jpu@apple.com>
3523
3524         Reviewed by Dan Bernstein.
3525
3526         automaticSpellingCorrectionEnabled isn't updated.
3527         https://bugs.webkit.org/show_bug.cgi?id=46486
3528         <rdar://problem/8475212>
3529
3530         * WebView/WebView.mm:
3531         (+[WebView initialize]): Should update "automaticSpellingCorrectionEnabled"
3532           instead of "automaticTextReplacementEnabled".
3533
3534 2010-09-23  Alexey Proskuryakov  <ap@apple.com>
3535
3536         Reviewed by Darin Adler.
3537
3538         https://bugs.webkit.org/show_bug.cgi?id=46380
3539         REGRESSION: Crash when downloading a file
3540
3541         Downloading cannot be tested in DRT.
3542
3543         * Misc/WebNSFileManagerExtras.m: (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
3544         Don't copy null strings.
3545
3546 2010-09-24  Ilya Tikhonovsky  <loislo@chromium.org>
3547