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