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