5da6e931c6b039c573af73e3cc0cf58223806b1f
[WebKit-https.git] / WebKit / mac / ChangeLog
1 2010-09-28  Jenn Braithwaite  <jennb@chromium.org>
2
3         Reviewed by Dmitry Titov.
4
5         Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
6         https://bugs.webkit.org/show_bug.cgi?id=46663
7
8         * WebCoreSupport/WebFrameLoaderClient.h:
9         * WebCoreSupport/WebFrameLoaderClient.mm:
10         (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
11
12 2010-09-26  Antonio Gomes  <agomes@rim.com>
13
14         Reviewed by Kenneth Rohde Christiansen.
15
16         DRT/Mac nodesFromRect support
17
18         [Mac][DRT] Implement LayoutTestController::nodesFromRect
19         https://bugs.webkit.org/show_bug.cgi?id=46580
20
21         Implement nodesFromRect as a private method to access non-exposed Document
22         methods, similarly to computedStyleIncludingVisitedInfo.
23
24         * WebView/WebView.mm: Added JSDocument.h and JSNodeList.h to the include list.
25         These headers makes it possible to:
26         1) Get a Document off of a JSDocument;
27         2) Call toJS function, defined in JSNodeList.cpp|h so we can convert RefPtr<NodeList>
28         gotten from Document::nodesFromRect to JS bindings.
29         (-[WebView _nodesFromRect:forDocument:x:y:hPadding:vPadding:ignoreClipping:]):
30         * WebView/WebViewPrivate.h: Added nodesFromRect method to access methods of the
31         Document class not exposed to JavaScript. It works similarly to computedStyleIncludingVisitedInfo.
32
33 2010-09-24  Jia Pu  <jpu@apple.com>
34
35         Reviewed by Dan Bernstein.
36
37         automaticSpellingCorrectionEnabled isn't updated.
38         https://bugs.webkit.org/show_bug.cgi?id=46486
39         <rdar://problem/8475212>
40
41         * WebView/WebView.mm:
42         (+[WebView initialize]): Should update "automaticSpellingCorrectionEnabled"
43           instead of "automaticTextReplacementEnabled".
44
45 2010-09-23  Alexey Proskuryakov  <ap@apple.com>
46
47         Reviewed by Darin Adler.
48
49         https://bugs.webkit.org/show_bug.cgi?id=46380
50         REGRESSION: Crash when downloading a file
51
52         Downloading cannot be tested in DRT.
53
54         * Misc/WebNSFileManagerExtras.m: (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
55         Don't copy null strings.
56
57 2010-09-24  Ilya Tikhonovsky  <loislo@chromium.org>
58
59         Reviewed by Yury Semikhatsky.
60
61         Web Inspector: CRASH at node highlight on MAC Safari.
62         1) run-safari --debug
63         2) open inspector
64         3) open elements panel
65         4) hover mouse over elements panel items multiple times
66         5) CRASH
67         Looks like it is a race condition. WebNodeHighlightView doesn't check
68         the pointer to WebNodeHighligh object and it can be nil.
69
70         https://bugs.webkit.org/show_bug.cgi?id=46261
71
72         * WebInspector/WebNodeHighlightView.mm:
73         (-[WebNodeHighlightView drawRect:]):
74
75 2010-09-23  Andy Estes  <aestes@apple.com>
76
77         Reviewed by Darin Adler.
78
79         REGRESSION (r61285): some Dashboard widgets are always invisible due to
80         HTML parser changes.
81         https://bugs.webkit.org/show_bug.cgi?id=46435
82
83         Enable pre-HTML5 parser quirks if Dashboard is in backward compatibility
84         mode.
85
86         * WebView/WebView.mm:
87         (-[WebView _needsPreHTML5ParserQuirks]): Renamed from
88         shouldUsePreHTML5ParserQuirks(). Return true if
89         WebCore::Settings::usesDashboardCompatibilityMode() is true.
90         (-[WebView _preferencesChangedNotification:]):
91         (-[WebView _setDashboardBehavior:to:]): Enable pre-HTML5 parser quirks
92         if Dashboard behavior is set to backward compatibility mode.
93
94 2010-09-23  Matthew Delaney  <mdelaney@apple.com>
95
96         Reviewed by Simon Fraser.
97
98         Reduce minimum DOMTimer interval
99         https://bugs.webkit.org/show_bug.cgi?id=45362
100
101         * WebView/WebView.mm:
102         Updating set interval call to use Settings' static version inside
103         one time init block.
104
105 2010-09-22  Andy Estes  <aestes@apple.com>
106
107         Reviewed by Darin Adler.
108
109         REGRESSION (r61285): Microsoft Entourage 2008 does not invoke My Day window
110         https://bugs.webkit.org/show_bug.cgi?id=46334
111
112         Microsoft My Day loads scripts using self-closing script tags, markup
113         which is incompatible with the HTML5 parser. Enable parser quirks for
114         this application.
115
116         * WebView/WebView.mm:
117         (shouldUsePreHTML5ParserQuirks): Return true if the application is
118         Microsoft My Day and was linked against a version of WebKit prior to the
119         introduction of the HTML5 parser.
120
121 2010-09-23  Nate Chapin  <japhet@chromium.org>
122
123         Reviewed by Darin Fisher.
124
125         Add hyperlink auditing settings (i.e., <a ping>).
126         https://bugs.webkit.org/show_bug.cgi?id=30458
127
128         * WebView/WebPreferenceKeysPrivate.h:
129         * WebView/WebPreferences.mm:
130         (+[WebPreferences initialize]):
131         (-[WebPreferences setMemoryInfoEnabled:]):
132         (-[WebPreferences hyperlinkAuditingEnabled]):
133         (-[WebPreferences setHyperlinkAuditingEnabled:]):
134         * WebView/WebPreferencesPrivate.h:
135         * WebView/WebView.mm:
136         (-[WebView _preferencesChangedNotification:]):
137
138 2010-09-22  Alexey Proskuryakov  <ap@apple.com>
139
140         Reviewed by Anders Carlsson.
141
142         https://bugs.webkit.org/show_bug.cgi?id=43667
143         ASSERT failure in NetscapePluginInstanceProxy::disconnectStream
144
145         Test: plugins/get-javascript-url.html
146
147         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
148         (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript): Add the stream to m_streams, just
149         like any other one.
150
151 2010-09-21  Darin Adler  <darin@apple.com>
152
153         Reviewed by Anders Carlsson.
154
155         Fix some Objective-C GC problems and use RetainPtr instead of HardRetain/Release
156         https://bugs.webkit.org/show_bug.cgi?id=46220
157
158         * Misc/WebNSFileManagerExtras.m:
159         (setMetaData): Use CFRelease instead of HardRelease.
160         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Use CFStringCreateCopy
161         instead of -[NSObject copy] combined with HardRetainWithNSRelease.
162
163 2010-09-22  Balazs Kelemen  <kb@inf.u-szeged.hu>
164
165         Reviewed by Kenneth Rohde Christiansen.
166
167         PluginStrategy should satisfy the needs of Qt
168         https://bugs.webkit.org/show_bug.cgi?id=45857
169         No new functionality so no new tests.
170
171         * WebCoreSupport/WebPlatformStrategies.h:
172         * WebCoreSupport/WebPlatformStrategies.mm:
173         (WebPlatformStrategies::getPluginInfo):
174
175 2010-09-22  Paul Knight  <pknight@apple.com>
176
177         Reviewed by Simon Fraser.
178
179         -[WebView _scheduleCompositingLayerSync] should wake the run loop
180         https://bugs.webkit.org/show_bug.cgi?id=46226
181
182         Call CFRunLoopWakeUp to make sure the run loop is not sleeping, which could delay layer painting.
183
184         * WebView/WebView.mm:
185         (-[WebView _scheduleCompositingLayerSync]):
186
187 2010-09-21  Andy Estes  <aestes@apple.com>
188
189         Reviewed by Darin Adler.
190
191         REGRESSION (r61285): AIM 2.1.296: Code rendered as text in Welcome screen
192         https://bugs.webkit.org/show_bug.cgi?id=46134
193
194         AIM clients linked against versions of WebKit prior to the introduction
195         of the HTML5 parser contain markup incompatible with the new parser.
196         Enable parser quirks in this case to remain compatible with these
197         clients.
198
199         * WebView/WebView.mm:
200         (shouldUsePreHTML5ParserQuirks): Returns true if the embedding
201         application is AIM and was linked against a version of WebKit prior to
202         the introduction of the HTML5 parser, or if the
203         WebKitPreHTML5ParserQuirks WebPreference is enabled.
204         (-[WebView _preferencesChangedNotification:]): Call
205         WebCore::Settings::setUsePreHTML5ParserQuirks().
206
207 2010-09-21  Steve Block  <steveblock@google.com>
208
209         Reviewed by Jeremy Orlow.
210
211         DeviceOrientationClient and DeviceMotionClient should have controllerDestroyed() methods
212         https://bugs.webkit.org/show_bug.cgi?id=45891
213
214         Implements WebDeviceOrientationClient::deviceOrientationControllerDestroyed to delete the client.
215
216         * WebCoreSupport/WebDeviceOrientationClient.h:
217         * WebCoreSupport/WebDeviceOrientationClient.mm:
218         (WebDeviceOrientationClient::deviceOrientationControllerDestroyed):
219
220 2010-09-20  Philippe Normand  <pnormand@igalia.com>
221
222         Reviewed by Eric Carlson.
223
224         [GTK] enhanced context menu for media elements
225         https://bugs.webkit.org/show_bug.cgi?id=45021
226
227         New localized strings for the media element context-menu.
228
229         * WebCoreSupport/WebPlatformStrategies.h:
230         * WebCoreSupport/WebPlatformStrategies.mm:
231         (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
232         (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
233         (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
234         (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
235         (WebPlatformStrategies::contextMenuItemTagToggleMediaControls):
236         (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop):
237         (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen):
238         (WebPlatformStrategies::contextMenuItemTagMediaPlay):
239         (WebPlatformStrategies::contextMenuItemTagMediaPause):
240         (WebPlatformStrategies::contextMenuItemTagMediaMute):
241
242 2010-09-20  Andy Estes  <aestes@apple.com>
243
244         Reviewed by Adam Barth.
245
246         REGRESSION (HTML5 Parser): Pages broken due to <tag<tag> parsing changes
247         https://bugs.webkit.org/show_bug.cgi?id=40961
248
249         Implement WebKitUsePreHTML5ParserQuirks preference.
250
251         * WebView/WebPreferenceKeysPrivate.h:
252         * WebView/WebPreferences.mm:
253         (+[WebPreferences initialize]): Default WebKitUsePreHTML5ParserQuirks to
254         false.
255         (-[WebPreferences usePreHTML5ParserQuirks]):
256         (-[WebPreferences setUsePreHTML5ParserQuirks:]):
257         * WebView/WebPreferencesPrivate.h:
258         * WebView/WebView.mm:
259         (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings
260         with the value of WebKitUsePreHTML5ParserQuirks when a preference
261         changes.
262
263 2010-09-20  Enrica Casucci  <enrica@apple.com>
264
265         Reviewed by Sam Weinig.
266
267         Pasteboard doesn't work in WebKit2.
268         https://bugs.webkit.org/show_bug.cgi?id=42317
269         <rdar://problem/7660537>
270
271         Some changes to fix style inconsistencies.
272         Added OBJC 2.0 style enumeration.
273         
274         * WebCoreSupport/WebEditorClient.h:
275         * WebCoreSupport/WebEditorClient.mm:
276         (WebEditorClient::userVisibleString):
277         (createExcludedElementsForAttributedStringConversion):
278         (WebEditorClient::documentFragmentFromAttributedString): Changed parameter to be
279         a Vector of RefPtr.
280         (WebEditorClient::setInsertionPasteboard):
281         (WebEditorClient::pasteboardTypesForSelection):
282
283 2010-09-17  David Hyatt  <hyatt@apple.com>
284
285         Reviewed by Simon Fraser.
286
287         https://bugs.webkit.org/show_bug.cgi?id=45993, convert printing to the new pagination model.
288
289         Make printing store the page height in the RenderView and push that into the layout state to
290         use the new pagination model.  The old pagination model is retained because it is still used
291         for embedded WebViews.
292
293         * WebView/WebHTMLView.mm:
294         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
295
296 2010-09-17  Darin Adler  <darin@apple.com>
297
298         Reviewed by Sam Weinig.
299
300         REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
301         https://bugs.webkit.org/show_bug.cgi?id=42863
302
303         * WebView/WebView.mm:
304         (-[WebView _setZoomMultiplier:isTextOnly:]):
305         Call functions on Frame instead of FrameView.
306
307 2010-09-17  Matthew Delaney  <mdelaney@apple.com>
308
309         Reviewed by Simon Fraser.
310
311         Reduce minimum DOMTimer interval
312         https://bugs.webkit.org/show_bug.cgi?id=45362
313
314         * WebView/WebView.mm: Added in a call to set the mimimum allowed DOMTimer to 4ms.
315
316 2010-09-17  Chris Marrin  <cmarrin@apple.com>
317
318         Reviewed by Simon Fraser.
319
320         Add WebKitAccelerated2dCanvasEnabled flag to WebKit for Mac
321         https://bugs.webkit.org/show_bug.cgi?id=45911
322
323         * WebView/WebPreferenceKeysPrivate.h:
324         * WebView/WebPreferences.mm:
325         (+[WebPreferences initialize]):
326         (-[WebPreferences accelerated2dCanvasEnabled]):
327         (-[WebPreferences setAccelerated2dCanvasEnabled:]):
328         * WebView/WebPreferencesPrivate.h:
329         * WebView/WebView.mm:
330         (-[WebView _preferencesChangedNotification:]):
331
332 2010-09-17  Jia Pu  <jpu@apple.com>
333
334         Reviewed by Dan Bernstein.
335
336         WebKit should use system wide spell checking preference when application specific one isn't set.
337         https://bugs.webkit.org/show_bug.cgi?id=45789
338         <rdar://problem/8416041>
339
340         * WebView/WebView.mm:
341         (+[WebView initialize]): Use system wide autocorrection and text substitution preferences
342           when the application level preferences are not set.
343
344 2010-09-16  John Sullivan  <sullivan@apple.com>
345
346         Reviewed by Darin Adler.
347
348         <rdar://problem/8395558>
349         https://bugs.webkit.org/show_bug.cgi?id=45938
350         _web_makePluginViewsPerformSelector:: mutates subviews array while iterating it
351
352         * WebView/WebHTMLView.mm:
353         (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]):
354         Converted from -[NSArray _web_makePluginViewsPerformSelector:withObject:]. The old method
355         was only ever called on the result of -[WebHTMLView subviews]. By moving that knowledge into
356         this helper method, it can't be used incorrectly. Now it makes a copy of [WebHTMLView subviews]
357         before enumerating it, to ensure that the selector can't mutate the array being enumerated.
358         (-[WebHTMLView viewWillMoveToHostWindow:]):
359         Updated for _web_makePluginSubviewsPerformSelector:: signature change.
360         (-[WebHTMLView viewDidMoveToHostWindow]):
361         Ditto.
362
363 2010-09-16  Darin Adler  <darin@apple.com>
364
365         Reviewed by Andreas Kling.
366
367         Reduce use of HTMLInputElement::inputType so we can remove it later
368         https://bugs.webkit.org/show_bug.cgi?id=45903
369
370         * WebView/WebHTMLRepresentation.mm:
371         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Use isPasswordField.
372         (-[WebHTMLRepresentation elementIsPassword:]): Use isPasswordField.
373
374 2010-09-16  Patrick Gansterer  <paroga@paroga.com>
375
376         Reviewed by Darin Adler.
377
378         Always use a valid string when setting WebKitUserStyleSheetLocationPreferenceKey.
379         https://bugs.webkit.org/show_bug.cgi?id=41510
380
381         This prevents usage of nil value, which would cause an uncaught exception.
382
383         * WebView/WebPreferences.mm:
384         (-[WebPreferences setUserStyleSheetLocation:]):
385
386 2010-09-16  Dan Bernstein  <mitz@apple.com>
387
388         Reverted the previous change because r67628 has been reverted.
389
390         * WebCoreSupport/WebPlatformStrategies.h:
391         * WebCoreSupport/WebPlatformStrategies.mm:
392
393 2010-09-16  Dan Bernstein  <mitz@apple.com>
394
395         Build fix after r67628. Added context menu item localizable strings for the items
396         added in r67628, following equivalent menu items in Mac OS X when possible. However,
397         this set of menu items does not make much sense for Mac OS X, and this should be
398         addressed separately.
399
400         * WebCoreSupport/WebPlatformStrategies.h:
401         * WebCoreSupport/WebPlatformStrategies.mm:
402         (WebPlatformStrategies::contextMenuItemTagOpenMediaInNewWindow):
403         (WebPlatformStrategies::contextMenuItemTagCopyMediaLinkToClipboard):
404         (WebPlatformStrategies::contextMenuItemTagToggleMediaControls):
405         (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop):
406         (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen):
407         (WebPlatformStrategies::contextMenuItemTagMediaPlay):
408         (WebPlatformStrategies::contextMenuItemTagMediaPause):
409         (WebPlatformStrategies::contextMenuItemTagMediaMute):
410         (WebPlatformStrategies::contextMenuItemTagMediaUnMute):
411
412 2010-09-16  Eric Uhrhane  <ericu@chromium.org>
413
414         Reviewed by Jian Li.
415
416         Unify FILE_SYSTEM and FILE_WRITER enables under the name FILE_SYSTEM.
417         https://bugs.webkit.org/show_bug.cgi?id=45798
418
419         * Configurations/FeatureDefines.xcconfig:
420
421 2010-09-15  Simon Fraser  <simon.fraser@apple.com>
422
423         Reviewed by Adam Roben.
424
425         https://bugs.webkit.org/show_bug.cgi?id=44715
426         maps.google.com flips upside down when zooming map using trackpad in WebKit2 on Mac
427
428         Move geometry flipping to platform-specific code.
429
430         * WebView/WebHTMLView.mm:
431         (-[WebHTMLView attachRootLayer:]):
432
433 2010-09-14  Jia Pu  <jpu@apple.com>
434
435         Reviewed by Dan Bernstein.
436
437         Only intercept ESC key press when autocorrection UI is visible.
438         https://bugs.webkit.org/show_bug.cgi?id=45071
439
440         * WebCoreSupport/WebEditorClient.h: Added declaration of isShowingCorrectionPanel(),
441           which provides an inteface to query whether autocorrection panel is shown.
442
443         * WebCoreSupport/WebEditorClient.mm:
444         (WebEditorClient::WebEditorClient): Defined a constant, InvalidCorrectionPanelTag,
445           for invalid correction panel tag. Replaced -1 with this constant.
446         (WebEditorClient::dismissCorrectionPanel): Ditto
447         (WebEditorClient::isShowingCorrectionPanel): Query whether autocorrection panel is shown.
448
449 2010-09-14  Mark Rowe  <mrowe@apple.com>
450
451         Reviewed by John Sullivan.
452
453         Part of <rdar://problem/8420003>.  Make it possible to override the version number used in linked-in-or-after checks.
454
455         * Misc/WebKitVersionChecks.h: Remove two unused functions from the header and add a method to set the overriden version.
456         * Misc/WebKitVersionChecks.m:
457         (WebKitLinkedOnOrAfter):
458         (setWebKitLinkTimeVersion): Set the overridden version.
459         (WebKitLinkTimeVersion): Return the overridden version if set, otherwise do the old thing.
460         * WebView/WebPreferences.mm:
461         (+[WebPreferences setWebKitLinkTimeVersion:]): Call through to set the overridden version.
462         * WebView/WebPreferencesPrivate.h:
463
464 2010-09-14  Eric Seidel  <eric@webkit.org>
465
466         Unreviewed, reverting changes r67451 and r67451.
467         Broke lots of builders.
468
469         Only intercept ESC key press when autocorrection UI is visible.
470         https://bugs.webkit.org/show_bug.cgi?id=45071
471
472         * WebCoreSupport/WebEditorClient.h:
473         * WebCoreSupport/WebEditorClient.mm:
474         (WebEditorClient::WebEditorClient):
475         (WebEditorClient::dismissCorrectionPanel):
476
477 2010-09-14  Jia Pu  <jpu@apple.com>
478
479         Reviewed by Dan Bernstein.
480
481         Only intercept ESC key press when autocorrection UI is visible.
482         https://bugs.webkit.org/show_bug.cgi?id=45071
483
484         * WebCoreSupport/WebEditorClient.h: Added declaration of isShowingCorrectionPanel(),
485           which provides an inteface to query whether autocorrection panel is shown.
486
487         * WebCoreSupport/WebEditorClient.mm:
488         (WebEditorClient::WebEditorClient): Defined a constant, InvalidCorrectionPanelTag,
489           for invalid correction panel tag. Replaced -1 with this constant.
490         (WebEditorClient::dismissCorrectionPanel): Ditto
491         (WebEditorClient::isShowingCorrectionPanel): Query whether autocorrection panel is shown.
492
493 2010-09-13  Darin Adler  <darin@apple.com>
494
495         Reviewed by Adam Barth.
496
497         Preparation for eliminating deprecatedParseURL
498         https://bugs.webkit.org/show_bug.cgi?id=45695
499
500         * DOM/WebDOMOperations.mm:
501         (-[DOMDocument webFrame]): Get rid of unneeded local variable.
502         (-[DOMDocument URLWithAttributeString:]): Remove unhelpful comment.
503
504 2010-09-13  Enrica Casucci  <enrica@apple.com>
505
506         Reviewed by Sam Weinig.
507
508         Paste should be implemented in WebCore like Copy and Cut for Mac also.
509         https://bugs.webkit.org/show_bug.cgi?id=45494
510         <rdar://problem/7660537>
511
512         On the Mac platform, the implementation of the paste operation is all done
513         at the WebKit level. In order to support it on WebKit2 it is necessary to
514         refactor the code and move this functionality at the level of WebCore like
515         we already have on Windows.
516         The original code relies on some in AppKit functions that call back into
517         WebKit causing problems in WebKit2. All this functionality has been moved
518         at the level of the editor client where it can be dealt with appropriately.
519
520         * WebCoreSupport/WebEditorClient.h:
521         * WebCoreSupport/WebEditorClient.mm:
522         (excludedElementsForAttributedStringConversion):
523         (WebEditorClient::documentFragmentFromAttributedString): Added.
524         (WebEditorClient::setInsertionPasteboard):
525         * WebCoreSupport/WebFrameLoaderClient.h:
526         * WebCoreSupport/WebFrameLoaderClient.mm:
527         (WebFrameLoaderClient::canShowMIMETypeAsHTML): Re-implemented at the level
528         of the editor client.
529         * WebView/WebHTMLView.mm: Removed paste method.
530
531 2010-09-13  John Sullivan  <sullivan@apple.com>
532
533         Reviewed by Adam Roben.
534
535         https://bugs.webkit.org/show_bug.cgi?id=45677
536         [WebView canMarkAllTextMatches] can crash if called after [WebView close]
537         
538         <rdar://problem/8404890>
539
540         * WebView/WebView.mm:
541         (-[WebView canMarkAllTextMatches]):
542         Return NO immediately if the webview has already been closed. This was an overlooked
543         case from the fix for 45175.
544
545 2010-09-10  MORITA Hajime  <morrita@google.com>
546
547         Reviewed by Tony Chang.
548
549         [Chromium] Implement textInputController.hasSpellingMarker() for Chromium
550         https://bugs.webkit.org/show_bug.cgi?id=45441
551
552         Moved the actual logic of hasSpellingMarker into WebCore to share
553         it with other ports.
554
555         * WebView/WebFrame.mm:
556         (-[WebFrame hasSpellingMarker:length:]):
557
558 2010-09-11  Adam Barth  <abarth@webkit.org>
559
560         Reviewed by Sam Weinig.
561
562         Make SecurityOrigin::canDisplay an instance function
563         https://bugs.webkit.org/show_bug.cgi?id=45219
564
565         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
566         (WebKit::NetscapePluginInstanceProxy::loadRequest):
567         * Plugins/WebNetscapePluginStream.mm:
568         (WebNetscapePluginStream::WebNetscapePluginStream):
569         * Plugins/WebNetscapePluginView.mm:
570         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
571         * Plugins/WebPluginContainerCheck.mm:
572         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
573         * WebView/WebFrame.mm:
574         (-[WebFrame _allowsFollowingLink:]):
575
576 2010-09-10  Sam Weinig  <sam@webkit.org>
577
578         Reviewed by Darin Adler.
579
580         Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom.
581         Precursor to <rdar://problem/7660657>
582         https://bugs.webkit.org/show_bug.cgi?id=45522
583
584         * WebView/WebView.mm:
585         (-[WebView _preferencesChangedNotification:]):
586         (-[WebView _setZoomMultiplier:isTextOnly:]):
587         (-[WebView _realZoomMultiplierIsTextOnly]):
588         * WebView/WebViewData.h:
589         * WebView/WebViewData.mm:
590         (-[WebViewPrivate init]):
591         Move tracking of text only zoom here from WebCore.
592
593 2010-09-10  Stephanie Lewis  <slewis@apple.com>
594
595         Reviewed by Alexey Proskuryakov.
596
597         Refactor JavaScriptCore memory statistics so that WebKit doesn't need to know about the JIT and
598         other implementation details of JavaScriptCore.  Necessary to fix PPC build.
599         
600         https://bugs.webkit.org/show_bug.cgi?id=45528
601
602         * Misc/WebCoreStatistics.mm:
603         (+[WebCoreStatistics memoryStatistics]):
604
605 2010-09-10  Darin Adler  <darin@apple.com>
606
607         Reviewed by Sam Weinig.
608
609         Move some Dashboard stuff from WebCore to WebKit along with a bit more FrameMac cleanup
610         https://bugs.webkit.org/show_bug.cgi?id=45582
611
612         * MigrateHeaders.make: Removed WebDashboardRegion.h from the set of header to copy.
613
614         * WebCoreSupport/WebChromeClient.mm:
615         (WebChromeClient::dashboardRegionsChanged): Changed this to call
616         -[WebView _dashboardRegions] so we don't have two copies of that code.
617
618         * WebView/WebDashboardRegion.h: Copied from WebCore/page/mac/WebDashboardRegion.h.
619         * WebView/WebDashboardRegion.mm: Copied from WebCore/page/mac/WebDashboardRegion.m.
620
621         * WebView/WebView.mm:
622         (-[WebView _dashboardRegions]): Moved the code from Frame::dashboardRegions here.
623
624 2010-09-10  Adam Barth  <abarth@webkit.org>
625
626         Reviewed by Darin Fisher.
627
628         Move code from WebKit-layer to DocumentLoader
629         https://bugs.webkit.org/show_bug.cgi?id=45569
630
631         This code is the most confused, but now should be a bit cleaner.
632         There's still a magical fake-setting for creating renderers that needs
633         to be cleaned up, but we can do that in a separate patch.
634
635         * WebView/WebFrame.mm:
636         (-[WebFrame _commitData:]):
637         * WebView/WebFrameInternal.h:
638         * WebView/WebHTMLRepresentation.mm:
639         (-[WebHTMLRepresentation receivedData:withDataSource:]):
640         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
641
642 2010-09-09  Darin Adler  <darin@apple.com>
643
644         Reviewed by Adam Barth.
645
646         Move functions from Frame to SelectionController as planned
647         https://bugs.webkit.org/show_bug.cgi?id=45508
648
649         * WebView/WebFrame.mm:
650         (-[WebFrame _selectionGranularity]):
651         (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
652         (-[WebFrame _typingStyle]):
653         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
654         * WebView/WebHTMLRepresentation.mm:
655         (-[WebHTMLRepresentation currentForm]):
656         * WebView/WebHTMLView.mm:
657         (-[WebHTMLView jumpToSelection:]):
658         (-[WebHTMLView centerSelectionInVisibleArea:]):
659         (-[WebHTMLView _canSmartCopyOrDelete]):
660         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
661         (-[WebHTMLView selectionRect]):
662         (-[WebHTMLView selectionTextRects]):
663         (-[WebHTMLView selectionImageRect]):
664         * WebView/WebView.mm:
665         (-[WebView setEditable:]):
666         Call functions on selection().
667
668 2010-09-10  Adam Barth  <abarth@webkit.org>
669
670         Reviewed by Eric Seidel.
671
672         Main resource bytes shouldn't bounce through FrameLoader
673         https://bugs.webkit.org/show_bug.cgi?id=45496
674
675         Now return the bytes to the DocumentLoader.
676
677         Previously, we were checking the document for null.  However, Frame can
678         never have a null document, so this check is no longer needed.
679
680         * WebView/WebFrame.mm:
681         (-[WebFrame _addData:]):
682
683 2010-09-09  John Therrell  <jtherrell@apple.com>
684
685         Reviewed by Alexey Proskuryakov.
686
687         Added statistics sampling and reporting for JavaScriptCore's RegisterFile and ExecutableAllocator classes
688         https://bugs.webkit.org/show_bug.cgi?id=45134
689
690         Added ability to enable new JavaScriptCore statistics sampling and reporting for RegisterFile 
691         and ExecutableAllocator classes. Added reporting of JavaScriptCore's stack committed memory 
692         and JIT code committed memory statistics to WebCoreStatistics memoryStatistics.
693
694         * Misc/WebCoreStatistics.mm:
695         (+[WebCoreStatistics memoryStatistics]):
696         Added statistics reporting for JSC RegisterFile and ExecutableAllocator.
697
698 2010-09-09  Jer Noble  <jer.noble@apple.com>
699
700         Reviewed by Mark Rowe.
701
702         Use of ENABLE macro in WebUIDelegatePrivate.h breaks use from outside WebKit
703         <rdar://problem/8412657>
704
705         * WebView/WebUIDelegatePrivate.h: Use ENABLE_FULLSCREEN_API instead of ENABLE(FULLSCREEN_API)
706
707 2010-09-08  Darin Adler  <darin@apple.com>
708
709         Reviewed by Adam Barth.
710
711         Move functions from Frame to Editor as planned
712         https://bugs.webkit.org/show_bug.cgi?id=45218
713
714         * WebView/WebFrame.mm:
715         (-[WebFrame _selectedString]):
716         (-[WebFrame _firstRectForDOMRange:]):
717         (-[WebFrame _markDOMRange]):
718         (-[WebFrame _setTypingStyle:withUndoAction:]):
719         * WebView/WebHTMLRepresentation.mm:
720         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
721         * WebView/WebHTMLView.mm:
722         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
723         (-[WebHTMLView toggleBaseWritingDirection:]):
724         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
725         (-[WebHTMLView countMatchesForText:caseSensitive:limit:markMatches:]):
726         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
727         (-[WebHTMLView markedTextMatchesAreHighlighted]):
728         * WebView/WebView.mm:
729         (-[WebView setEditable:]):
730         Changed call sites to use editor().
731
732 2010-09-08  MORITA Hajime  <morrita@google.com>
733
734         Reviewed by Tony Chang.
735
736         spelling underline gets lost on backspace
737         https://bugs.webkit.org/show_bug.cgi?id=41423
738
739         Switched to use a anchorNode of the selection instead of a focused
740         node for finer control of node selection in spellingNode():
741         With the focused node, we cannot select other nodes but the first
742         child of that node. In some case, we need to inspect these.
743
744         The API is only for LayoutTests, and the change is compatible for
745         existing test cases.
746         
747         * WebView/WebFrame.mm:
748         (spellingNode):
749
750 2010-09-08  Adam Barth  <abarth@webkit.org>
751
752         Rubber-stamped by Eric Seidel.
753
754         Rename DocLoader to CachedResourceLoader because that's what it does.
755
756         * WebView/WebFrame.mm:
757
758 2010-09-07  Anders Carlsson  <andersca@apple.com>
759
760         Reviewed by Oliver Hunt.
761
762         Fix clang++ build.
763
764         * Misc/WebLocalizableStrings.h:
765         Fix a struct/tag mismatch.
766
767         * WebView/WebDeviceOrientationProviderMock.mm:
768         (-[WebDeviceOrientationProviderMock init]):
769         Remove stray semicolon.
770
771         * WebView/WebViewData.h:
772         Remove unused class forward declaration.
773
774 2010-09-07  Anders Carlsson  <andersca@apple.com>
775
776         Reviewed by Darin Adler.
777
778         <rdar://problem/8381749> -Wcast-align warning emitted when building with clang
779
780         Remove the -Wcast-align-warning since it isn't really useful, and clang is more aggressive about warning than gcc.
781         
782         * Configurations/Base.xcconfig:
783
784 2010-09-06  Adam Barth  <abarth@webkit.org>
785
786         Reviewed by Darin Adler.
787
788         Rename SecurityOrigin::canLoad to canDisplay
789         https://bugs.webkit.org/show_bug.cgi?id=45214
790
791         Propagate name change.
792
793         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
794         (WebKit::NetscapePluginInstanceProxy::loadRequest):
795         * Plugins/WebNetscapePluginStream.mm:
796         (WebNetscapePluginStream::WebNetscapePluginStream):
797         * Plugins/WebNetscapePluginView.mm:
798         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
799         * Plugins/WebPluginContainerCheck.mm:
800         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
801         * WebView/WebFrame.mm:
802         (-[WebFrame _allowsFollowingLink:]):
803
804 2010-09-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
805
806         Reviewed by Darin Adler.
807
808         Add NetworkingContext to avoid layer violations
809         https://bugs.webkit.org/show_bug.cgi?id=42292
810
811         Add Mac's specific implementation of FrameNetworkingContext.
812
813         * WebCoreSupport/WebFrameLoaderClient.h:
814         * WebCoreSupport/WebFrameLoaderClient.mm:
815         * WebCoreSupport/WebFrameNetworkingContext.mm:
816         (WebFrameNetworkingContext::needsSiteSpecificQuirks):
817         (WebFrameNetworkingContext::localFileContentSniffingEnabled):
818         (WebFrameNetworkingContext::scheduledRunLoopPairs):
819         (WebFrameNetworkingContext::blockedError):
820
821 2010-09-03  John Sullivan  <sullivan@apple.com>
822
823         Reviewed by Dan Bernstein.
824         
825         https://bugs.webkit.org/show_bug.cgi?id=45175
826         [WebView unmarkAllTextMatches] will crash if the webview is already closed
827
828         Made this and related methods robust against being called when the WebView is closed.
829
830         * WebView/WebView.mm:
831         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
832         Bail out if the WebView is closed.
833         (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]):
834         Ditto.
835         (-[WebView unmarkAllTextMatches]):
836         Ditto.
837         (-[WebView rectsForTextMatches]):
838         Ditto.
839
840 2010-09-03  Hironori Bono  <hbono@chromium.org>
841
842         Reviewed by Kent Tamura.
843
844         Adds textInputController.hasSpellingMarker() to avoid using pixel tests for spellchecking tests
845         and implements it for Mac.
846         https://bugs.webkit.org/show_bug.cgi?id=41832
847
848         * WebView/WebFrame.mm: Implemented [WebFrame hasSpellingMarker:length:].
849         (spellingNode):
850         (-[WebFrame hasSpellingMarker:length:]):
851         * WebView/WebFramePrivate.h: Added [WebFrame hasSpellingMarker:length:] so TextInputController can use it.
852
853 2010-09-02  Yury Semikhatsky  <yurys@chromium.org>
854
855         Reviewed by Pavel Feldman.
856
857         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
858         https://bugs.webkit.org/show_bug.cgi?id=44230
859
860         * WebCoreSupport/WebInspectorClient.h:
861         * WebCoreSupport/WebInspectorClient.mm:
862         (WebInspectorFrontendClient::closeWindow):
863         (WebInspectorFrontendClient::disconnectFromBackend):
864         (-[WebInspectorWindowController windowShouldClose:]):
865         (-[WebInspectorWindowController destroyInspectorView:]):
866
867 2010-09-02  Steve Block  <steveblock@google.com>
868
869         Reviewed by Adam Barth.
870
871         Hook up LayoutTestController.setMockDeviceOrientation() on Mac.
872         https://bugs.webkit.org/show_bug.cgi?id=43181
873
874         This patch hooks up the mock device orientation client on Mac for use
875         in DumpRenderTree.
876
877         The patch adds a new WebDeviceOrientationClient for Mac. This client acts
878         as a proxy to either a real or mock device orientation provider, both of
879         which implement a new WebDeviceOrientationProvider interface.
880
881         The provider is created by the embedder and passed to the WebView, from
882         where WebDeviceOrientationClient can access it.
883
884         The mock provider, WebDeviceOrientationProviderMock, is a wrapper around
885         the existing WebCore mock.
886
887         * WebCoreSupport/WebDeviceOrientationClient.h: Added.
888         * WebCoreSupport/WebDeviceOrientationClient.mm: Added.
889         (WebDeviceOrientationClient::WebDeviceOrientationClient):
890         (WebDeviceOrientationClient::setController):
891         (WebDeviceOrientationClient::startUpdating):
892         (WebDeviceOrientationClient::stopUpdating):
893         (WebDeviceOrientationClient::lastOrientation):
894         * WebKit.exp:
895         * WebView/WebDeviceOrientation.h: Added.
896         * WebView/WebDeviceOrientation.mm: Added.
897         (-[WebDeviceOrientation initWithCoreDeviceOrientation:WebCore::]):
898         (core):
899         (-[WebDeviceOrientation initWithCanProvideAlpha:alpha:canProvideBeta:beta:canProvideGamma:gamma:]):
900         (-[WebDeviceOrientation dealloc]):
901         * WebView/WebDeviceOrientationInternal.h: Added.
902         * WebView/WebDeviceOrientationProvider.h: Added.
903         * WebView/WebDeviceOrientationProviderMock.h: Added.
904         * WebView/WebDeviceOrientationProviderMock.mm: Added.
905         (-[WebDeviceOrientationProviderMockInternal setOrientation:]):
906         (-[WebDeviceOrientationProviderMockInternal setController:]):
907         (-[WebDeviceOrientationProviderMockInternal startUpdating]):
908         (-[WebDeviceOrientationProviderMockInternal stopUpdating]):
909         (-[WebDeviceOrientationProviderMockInternal lastOrientation]):
910         (-[WebDeviceOrientationProviderMock init]):
911         (-[WebDeviceOrientationProviderMock dealloc]):
912         (-[WebDeviceOrientationProviderMock setOrientation:]):
913         (-[WebDeviceOrientationProviderMock setController:]):
914         (-[WebDeviceOrientationProviderMock startUpdating]):
915         (-[WebDeviceOrientationProviderMock stopUpdating]):
916         (-[WebDeviceOrientationProviderMock lastOrientation]):
917         * WebView/WebDeviceOrientationProviderMockInternal.h: Added.
918         * WebView/WebView.mm:
919         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
920         (-[WebView _setDeviceOrientationProvider:]):
921         (-[WebView _deviceOrientationProvider]):
922         * WebView/WebViewData.h:
923         * WebView/WebViewPrivate.h:
924
925 2010-09-01  Jia Pu  <jpu@apple.com>
926
927         Reviewed by Dan Bernstein.
928
929         Add support for autocorrection UI on Mac OS X.
930         https://bugs.webkit.org/show_bug.cgi?id=44958
931         <rdar://problem/7326847>
932
933         See detailed high level description in WebCore/ChangeLog.
934
935         * WebCoreSupport/WebEditorClient.h: Added new member methods declared in
936           EditorClient. Added m_correctionPanelTag to store the ID of current autocorrection UI object.
937
938         * WebCoreSupport/WebEditorClient.mm:
939         (WebEditorClient::WebEditorClient): Initialize m_correctionPanelTag.
940         (WebEditorClient::~WebEditorClient): Make sure the autocorrection UI is
941           dismissed before destroying the object.
942         (WebEditorClient::respondToChangedSelection): Dismiss autocorrection UI whenever the selection changes.
943         (WebEditorClient::showCorrectionPanel): Show autocorrection UI.
944         (WebEditorClient::dismissCorrectionPanel): Dismiss autocorrection UI.
945
946 2010-09-01  Mark Rowe  <mrowe@apple.com>
947
948         Reviewed by Adam Roben.
949
950         <rdar://problem/8374711> WebKit needs to compile without access to QuickDraw private headers.
951
952         * Carbon/HIViewAdapter.m:
953         * Carbon/HIWebView.mm:
954         * Misc/QuickDrawCompatibility.h: Added.
955         * Plugins/WebNetscapePluginView.mm:
956
957 2010-08-31  Dave Hyatt  <hyatt@apple.com>
958
959         Reviewed by Sam Weinig.
960
961         https://bugs.webkit.org/show_bug.cgi?id=44863, disentangle style recalc from layout, so that
962         the former can occur in more places without having to do the latter.
963
964         Eliminate Mac-specific code for style re-application and recursive layout/style updating in 
965         favor of the cross-platform code that all the other ports use.
966
967         * Carbon/HIWebView.mm:
968         (Draw):
969         * WebCoreSupport/WebFrameLoaderClient.mm:
970         (WebFrameLoaderClient::forceLayout):
971         * WebView/WebHTMLView.mm:
972         (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]):
973         (-[WebHTMLView viewWillDraw]):
974         (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
975         (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
976         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
977         (-[WebHTMLView reapplyStyles]):
978         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
979         (-[WebHTMLView setNeedsToApplyStyles:]):
980         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]):
981         (-[WebHTMLView _layoutIfNeeded]):
982         (-[WebHTMLView _web_updateLayoutAndStyleIfNeededRecursive]):
983         * WebView/WebHTMLViewInternal.h:
984         * WebView/WebView.mm:
985         (-[WebView _viewWillDrawInternal]):
986
987 2010-08-31  Sam Weinig  <sam@webkit.org>
988
989         Reviewed by Darin Adler.
990
991         Add ability to count text matches without marking
992         https://bugs.webkit.org/show_bug.cgi?id=43996
993
994         Safari needs to be able to count text matches without triggering lots of repainting.
995         Rename markAllMatchesForText: to countMatchesForText: and add a markMatches:
996         parameter.  For backwards compatibility markAllMatchesForText: calls
997         countMatchesForText: and passes YES for markMatches:.
998
999         * WebView/WebDocumentInternal.h:
1000         * WebView/WebHTMLView.mm:
1001         (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]):
1002         (-[WebHTMLView countMatchesForText:caseSensitive:limit:markMatches:]):
1003         * WebView/WebPDFView.mm:
1004         (-[WebPDFView markAllMatchesForText:caseSensitive:limit:]):
1005         (-[WebPDFView countMatchesForText:caseSensitive:limit:markMatches:]):
1006         * WebView/WebView.mm:
1007         (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]):
1008         (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]):
1009         * WebView/WebViewPrivate.h:
1010
1011 2010-08-31  Darin Adler  <darin@apple.com>
1012
1013         Reviewed by Anders Carlsson.
1014
1015         * WebInspector/WebInspectorFrontend.mm:
1016         (-[WebInspectorFrontend initWithFrontendClient:]): Remove a stray semicolon.
1017
1018 2010-08-30  Mark Rowe  <mrowe@apple.com>
1019
1020         Reviewed by Darin Adler.
1021
1022         <rdar://problem/8369736> WebKit build fails.
1023
1024         Temporarily add some extra includes in order to get things building again until <rdar://problem/8374711> is addressed.
1025
1026         * Carbon/HIViewAdapter.m:
1027         * Carbon/HIWebView.mm:
1028         * Plugins/WebNetscapePluginView.mm:
1029
1030 2010-08-30  Andy Estes  <aestes@apple.com>
1031
1032         Reviewed by Darin Adler.
1033
1034         REGRESSION (r66156): Sites using AppleConnect for authentication fail to log in.
1035         https://bugs.webkit.org/show_bug.cgi?id=44865
1036
1037         After http://trac.webkit.org/changeset/66156, sites using the AppleConnect plug-in
1038         for authentication fail to log in. This is due to a bug in AppleConnect that r66156
1039         exposed, but since this will have a significant impact on users of WebKit nightly
1040         builds, a plugin-specific hack should be added while the underlying issue is being
1041         addressed.
1042
1043         * WebCoreSupport/WebFrameLoaderClient.mm:
1044         (WebFrameLoaderClient::createPlugin): Convert plug-in parameter names to lowercase
1045         if the plugin is of type 'application/x-snkp'.
1046
1047 2010-08-27  Jer Noble  <jer.noble@apple.com>
1048
1049         Reviewed by Eric Carlson.
1050
1051         text/plain non-video files cause <video> to hang (while reading them?)
1052         https://bugs.webkit.org/show_bug.cgi?id=44212
1053         
1054         Add the new WebKitSystemInterface function WKQTMovieDisableComponent to
1055         the initialization routine.
1056
1057         * WebCoreSupport/WebSystemInterface.mm:
1058         (InitWebCoreSystemInterface): Initialize WKQTMovieDisableComponent.
1059
1060 2010-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1061
1062         Unreviewed, rolling out r66198.
1063         http://trac.webkit.org/changeset/66198
1064         https://bugs.webkit.org/show_bug.cgi?id=44856
1065
1066         It made tests crash on Qt bot (Requested by Ossy_ on #webkit).
1067
1068         * WebCoreSupport/WebInspectorClient.h:
1069         * WebCoreSupport/WebInspectorClient.mm:
1070         (WebInspectorFrontendClient::closeWindow):
1071         (-[WebInspectorWindowController windowShouldClose:]):
1072         (-[WebInspectorWindowController destroyInspectorView]):
1073
1074 2010-08-28  Darin Adler  <darin@apple.com>
1075
1076         Reviewed by Sam Weinig.
1077
1078         Make an internal method used by Apple Mail into SPI
1079         https://bugs.webkit.org/show_bug.cgi?id=44832
1080         rdar://problem/5748951
1081
1082         * WebView/WebFrame.mm:
1083         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Moved this method
1084         from the internal section to the private section.
1085         * WebView/WebFrameInternal.h: Moved the method declaration out of here.
1086         * WebView/WebFramePrivate.h: Moved the method declaration in here.
1087
1088 2010-08-27  Jer Noble  <jer.noble@apple.com>
1089
1090         Reviewed by Eric Carlson.
1091
1092         Add JavaScript API to allow a page to go fullscreen.
1093         rdar://problem/6867795
1094
1095         Added chrome client overrides which support entering and exiting full screen.  A new preference has
1096         been added (setFullScreenEnabled:) to control at runtime whether full screen support is enabled 
1097         (defaults to disabled).  Added a new WebKitFullScreenListener callback object which notifies WebCore
1098         when the chrome has started/finished its full screen animation.
1099
1100         * Configurations/FeatureDefines.xcconfig:
1101         * WebCoreSupport/WebChromeClient.h:
1102         * WebCoreSupport/WebChromeClient.mm:
1103         (WebChromeClient::supportsFullscreenForElement):
1104         (WebChromeClient::enterFullscreenForElement):
1105         (WebChromeClient::exitFullscreenForElement):
1106         (-[WebKitFullScreenListener initWithElement:]):
1107         (-[WebKitFullScreenListener webkitWillEnterFullScreen]):
1108         (-[WebKitFullScreenListener webkitDidEnterFullScreen]):
1109         (-[WebKitFullScreenListener webkitWillExitFullScreen]):
1110         (-[WebKitFullScreenListener webkitDidExitFullScreen]):
1111         * WebView/WebPreferenceKeysPrivate.h:
1112         * WebView/WebPreferences.h:
1113         * WebView/WebPreferences.mm:
1114         (+[WebPreferences initialize]):
1115         (-[WebPreferences setFullScreenEnabled:]):
1116         (-[WebPreferences fullScreenEnabled]):
1117         * WebView/WebUIDelegatePrivate.h:
1118         * WebView/WebView.mm:
1119         (-[WebView _preferencesChangedNotification:]):
1120
1121 2010-08-27  David Hyatt  <hyatt@apple.com>
1122
1123         Reviewed by Simon Fraser.
1124
1125         https://bugs.webkit.org/show_bug.cgi?id=44788, implement HTML5-compliant doctype switching.
1126
1127         Rename the various modes to match the HTML5 specification:
1128             ParseMode -> CompatibilityMode
1129             CompatMode -> QuirksMode
1130             AlmostStrictMode -> LimitedQuirksMode
1131             StrictMode -> NoQuirksMode
1132             
1133         Remove the htmlHacks() accessor from RenderStyle and make rendering code just go to the document
1134         instead.  This makes switching modes avoid forcing all RenderStyles to detect as changed.
1135         
1136         Clean up user stylesheets to minimize style recalculation when the mode is switched.
1137         
1138         Fix bugs with the propagation of correct modes in the HTML5 parser.  Make sure the
1139         dummy document created for fragment parsing properly inherits the real document's CompatibilityMode.
1140         Make sure the tree builder properly changes the insertion mode to "BeforeHTML" after handling
1141         a doctype token.
1142         
1143         determineParseMode -> setCompatibilityModeFromDoctype, and it now implements the HTML5 algorithm
1144         precisely.
1145
1146         * WebView/WebView.mm:
1147         (-[WebView _preferencesChangedNotification:]):
1148
1149 2010-08-27  Yury Semikhatsky  <yurys@chromium.org>
1150
1151         Reviewed by Pavel Feldman.
1152
1153         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
1154         https://bugs.webkit.org/show_bug.cgi?id=44230
1155
1156         * WebCoreSupport/WebInspectorClient.h:
1157         * WebCoreSupport/WebInspectorClient.mm:
1158         (WebInspectorFrontendClient::closeWindow):
1159         (WebInspectorFrontendClient::disconnectFromBackend):
1160         (-[WebInspectorWindowController windowShouldClose:]):
1161         (-[WebInspectorWindowController destroyInspectorView:]):
1162
1163 2010-08-26  Yury Semikhatsky  <yurys@chromium.org>
1164
1165         Unreviewed. Revert r66103 since Qt tests are failing.
1166
1167         * WebCoreSupport/WebInspectorClient.h:
1168         * WebCoreSupport/WebInspectorClient.mm:
1169         (WebInspectorFrontendClient::closeWindow):
1170         (-[WebInspectorWindowController windowShouldClose:]):
1171         (-[WebInspectorWindowController destroyInspectorView]):
1172
1173 2010-08-26  Yury Semikhatsky  <yurys@chromium.org>
1174
1175         Reviewed by Pavel Feldman.
1176
1177         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
1178         https://bugs.webkit.org/show_bug.cgi?id=44230
1179
1180         * WebCoreSupport/WebInspectorClient.h:
1181         * WebCoreSupport/WebInspectorClient.mm:
1182         (WebInspectorFrontendClient::closeWindow):
1183         (WebInspectorFrontendClient::disconnectFromBackend):
1184         (-[WebInspectorWindowController windowShouldClose:]):
1185         (-[WebInspectorWindowController destroyInspectorView:]):
1186
1187 2010-08-24  Eric Seidel  <eric@webkit.org>
1188
1189         Reviewed by Adam Barth.
1190
1191         Remove HTML5 parser testing infrastructure now that we don't need it
1192         https://bugs.webkit.org/show_bug.cgi?id=44581
1193
1194         * WebView/WebPreferenceKeysPrivate.h:
1195         * WebView/WebPreferences.mm:
1196         (+[WebPreferences initialize]):
1197         * WebView/WebPreferencesPrivate.h:
1198         * WebView/WebView.mm:
1199         (-[WebView _preferencesChangedNotification:]):
1200
1201 2010-08-24  Sam Weinig  <sam@webkit.org>
1202
1203         Reviewed by Oliver Hunt.
1204
1205         Paste event fires twice for mac WebKit
1206         <rdar://problem/8094611>
1207         https://bugs.webkit.org/show_bug.cgi?id=44535
1208
1209         The mac implementation of paste in WebKit was accidentally calling 
1210         Editor::tryDHTMLPaste twice, once in -[WebHTMLView paste:] and once
1211         in Editor::pasteAsPlainText (which is called -[WebHTMLView paste:]).
1212         Use the new pasteAsPlainTextBypassingDHTML function to bypass the
1213         second call.
1214
1215         * WebView/WebHTMLView.mm:
1216         (-[WebHTMLView paste:]):
1217
1218 2010-08-24  Daniel Cheng  <dcheng@chromium.org>
1219
1220         Reviewed by Eric Seidel.
1221
1222         [chromium] Generate drag images for HTML elements and selections.
1223         https://bugs.webkit.org/show_bug.cgi?id=43449
1224
1225         Fix up calls to Frame::nodeImage, which has a new signature.
1226
1227         * Plugins/WebBaseNetscapePluginView.mm:
1228         (-[WebBaseNetscapePluginView halt]):
1229
1230 2010-08-23  Mike Thole  <mthole@apple.com>
1231
1232         Reviewed by Dan Bernstein.
1233
1234         WebPDFView should remove itself as the delegate of its PDFView before being dealloced
1235         https://bugs.webkit.org/show_bug.cgi?id=44441
1236
1237         * WebView/WebPDFView.mm:
1238         (-[WebPDFView dealloc]): Set the PDFView's delegate to nil.
1239
1240 2010-08-22  Daniel Bates  <dbates@rim.com>
1241
1242         Reviewed by Eric Seidel.
1243
1244         Encapsulate document marker management into DocumentMarkerController
1245         https://bugs.webkit.org/show_bug.cgi?id=44383
1246
1247         Modify call sites in the Apple Mac port to use DocumentMarkerController.
1248
1249         No functionality was changed, so no new tests.
1250
1251         * WebView/WebFrame.mm:
1252         (-[WebFrame _unmarkAllBadGrammar]):
1253         (-[WebFrame _unmarkAllMisspellings]):
1254         * WebView/WebHTMLView.mm:
1255         (-[WebHTMLView unmarkAllTextMatches]):
1256         (-[WebHTMLView rectsForTextMatches]):
1257
1258 2010-08-19  David Kilzer  <ddkilzer@apple.com>
1259
1260         <http://webkit.org/b/44285> Fix compilation with NETSCAPE_PLUGIN_API disabled
1261
1262         Reviewed by Joseph Pecoraro.
1263
1264         * Plugins/Hosted/HostedNetscapePluginStream.mm: Changed
1265         USE(PLUGIN_HOST_PROCESS) to
1266         USE(PLUGIN_HOST_PROCESS) && ENABLE(NETSCAPE_PLUGIN_API).
1267         * Plugins/Hosted/NetscapePluginHostManager.mm: Ditto.
1268         * Plugins/Hosted/NetscapePluginHostProxy.mm: Ditto.
1269         * Plugins/Hosted/NetscapePluginInstanceProxy.mm: Ditto.
1270         * Plugins/Hosted/ProxyInstance.mm: Ditto.
1271         * Plugins/Hosted/WebHostedNetscapePluginView.mm: Ditto.
1272         * WebCoreSupport/WebChromeClient.mm: Ditto.
1273         (WebChromeClient::createWindow):
1274         * WebCoreSupport/WebFrameLoaderClient.mm: Ditto.
1275         (WebFrameLoaderClient::dispatchCreatePage):
1276         * WebView/WebHTMLView.mm:
1277         (needsCursorRectsSupportAtPoint): Added #if
1278         ENABLE(NETSCAPE_PLUGIN_API) and #endif macros as needed.
1279         * WebView/WebView.mm:
1280         (+[WebView _isNodeHaltedPlugin:]): Ditto.
1281         (+[WebView _hasPluginForNodeBeenHalted:]): Ditto.
1282         (+[WebView _restartHaltedPluginForNode:]): Ditto.
1283
1284 2010-08-17  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1285
1286         Reviewed by Darin Adler.
1287
1288         Add NetworkingContext to avoid layer violations
1289         https://bugs.webkit.org/show_bug.cgi?id=42292
1290
1291         Preparation: Just add the files to the build system.
1292
1293         * WebCoreSupport/WebFrameNetworkingContext.h: Added.
1294         Placeholder with tentative code that might be changed when landing
1295         the rest of it.
1296         * WebCoreSupport/WebFrameNetworkingContext.mm: Added.
1297         Empty placeholder for now.
1298
1299 2010-08-17  Brady Eidson  <beidson@apple.com>
1300
1301         Reviewed by Sam Weinig.
1302
1303         Navigating back/forward during a modal dialog causes a crash when the modal dialog is dismissed.
1304         <rdar://problem/8313579> and https://bugs.webkit.org/show_bug.cgi?id=44131
1305
1306         * WebView/WebView.mm:
1307         (-[WebView canGoBack]): Return false if loads are deferred.
1308         (-[WebView canGoForward]): Ditto.
1309
1310 2010-08-14  Joseph Pecoraro  <joepeck@webkit.org>
1311
1312         Reviewed by Pavel Feldman.
1313
1314         Web Inspector: -[WebInspector attach] and detach should work
1315         https://bugs.webkit.org/show_bug.cgi?id=43924
1316
1317         For actions that relate only to the Web Inspector's Frontend
1318         window (actions on the InspectorFrontendClient) the new Obj-C
1319         wrapper class WebInspectorFrontend can be used. For now, this
1320         is just attach and detach.
1321
1322         * WebCoreSupport/WebInspectorClient.mm:
1323         (WebInspectorClient::openInspectorFrontend): setup and attach the WebInspectorFrontend to the WebInspector.
1324         * WebInspector/WebInspector.h:
1325         * WebInspector/WebInspector.mm:
1326         (-[WebInspector dealloc]):
1327         (-[WebInspector attach:]): delegate to the frontend.
1328         (-[WebInspector detach:]): delegate to the frontend.
1329         (-[WebInspector setFrontend:]):
1330         * WebInspector/WebInspectorFrontend.h: Added.
1331         * WebInspector/WebInspectorFrontend.mm: Added.
1332         (-[WebInspectorFrontend initWithFrontendClient:]):
1333         (-[WebInspectorFrontend attach]):
1334         (-[WebInspectorFrontend detach]):
1335         * WebInspector/WebInspectorPrivate.h:
1336
1337 2010-08-13  Gavin Barraclough  <barraclough@apple.com>
1338
1339         Rubber stamped by Sam Weinig.
1340         Switch String::/UString::ascii() to return a CString.
1341
1342         * Plugins/Hosted/ProxyInstance.mm:
1343         (WebKit::ProxyInstance::methodsNamed):
1344         (WebKit::ProxyInstance::fieldNamed):
1345
1346 2010-08-13  Gavin Barraclough  <barraclough@apple.com>
1347
1348         Reviewed by Sam Weinig
1349
1350         Unify UString::UTF8String() & String::utf8() methods,
1351         remove UString::cost() & make atArrayIndex a free function.
1352
1353         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1354         (WebKit::NetscapePluginInstanceProxy::enumerate):
1355
1356 2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1357
1358         Unreviewed, rolling out r65295.
1359         http://trac.webkit.org/changeset/65295
1360         https://bugs.webkit.org/show_bug.cgi?id=43950
1361
1362         It broke 4 sputnik tests (Requested by Ossy on #webkit).
1363
1364         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1365         (WebKit::NetscapePluginInstanceProxy::enumerate):
1366
1367 2010-08-12  Gavin Barraclough  <barraclough@apple.com>
1368
1369         Reviewed by Sam Weinig
1370
1371         Unify UString::UTF8String() & String::utf8() methods,
1372         remove UString::cost() & make atArrayIndex a free function.
1373
1374         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1375         (WebKit::NetscapePluginInstanceProxy::enumerate):
1376
1377 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
1378
1379         Revert for now
1380         https://bugs.webkit.org/show_bug.cgi?id=43794 
1381
1382         * WebView/WebView.mm:
1383         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1384         (-[WebView _preferencesChangedNotification:]):
1385
1386 2010-08-10  Jeremy Orlow  <jorlow@chromium.org>
1387
1388         Reviewed by Adam Barth.
1389
1390         Some settings are linked to the PageGroup not the Page.  Create a new class for those.
1391         https://bugs.webkit.org/show_bug.cgi?id=43794
1392
1393         Change WebView to use the new GroupSettings class rather than Settings for the
1394         settings that moved.  This is sub-optimal since the settings aren't really
1395         per-view, but we can't really change the API at this point.
1396
1397         * WebView/WebView.mm:
1398         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1399         (-[WebView _preferencesChangedNotification:]):
1400
1401 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
1402
1403         Rubber stamps by Darin Adler & Sam Weinig.
1404
1405         Bug 43867 - Some UString cleanup
1406
1407         Change JSC::UString data(), size(), and from(), to characters(), length(), and number() to match WTF::String.
1408         Move string concatenation methods to a new header to simplify down UString.h.  Remove is8Bit().
1409
1410         * WebView/WebScriptDebugger.mm:
1411         (toNSString):
1412
1413 2010-08-10  David Hyatt  <hyatt@apple.com>
1414
1415         Reviewed by Dan Bernstein.
1416
1417         https://bugs.webkit.org/show_bug.cgi?id=43806, add ability to paginate screen content.
1418         
1419         Add SPI for entering and exiting screen pagination mode.  This is similar to printing mode but it can be done for on-screen
1420         content.
1421
1422         * WebView/WebHTMLView.mm:
1423         (-[WebHTMLView _web_setPrintingModeRecursive]):
1424         (-[WebHTMLView _web_clearPrintingModeRecursive]):
1425         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
1426         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
1427         (-[WebHTMLView _endPrintMode]):
1428         (-[WebHTMLView _isInScreenPaginationMode]):
1429         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
1430         (-[WebHTMLView _endScreenPaginationMode]):
1431         (-[WebHTMLView reapplyStyles]):
1432         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]):
1433         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
1434         (-[WebHTMLView setPageWidthForPrinting:]):
1435         * WebView/WebHTMLViewPrivate.h:
1436
1437 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
1438
1439         Build fix (update more includes)
1440
1441         * Plugins/Hosted/NetscapePluginHostManager.h:
1442
1443 2010-08-10  Chris Marrin  <cmarrin@apple.com>
1444
1445         Reviewed by Oliver Hunt.
1446
1447         Add suspendAnimations/resumeAnimation API to DRT
1448         https://bugs.webkit.org/show_bug.cgi?id=43733
1449         
1450         Mac specific API. Plumbs suspendAnimations/resumeAnimations down to WebCore.
1451
1452         * WebView/WebFrame.mm:
1453         (-[WebFrame _suspendAnimations]):
1454         (-[WebFrame _resumeAnimations]):
1455         * WebView/WebFramePrivate.h:
1456
1457 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
1458
1459         Rubber stamped by Sam Weinig
1460
1461         Bug 43817 - Remove UString::Rep
1462         UString::Rep has for a long time been replaced by UStringImpl (Rep
1463         remaining as a typedef).  UStringImpl has since been removed too
1464         (unified with StringImpl). Remove Rep, rename rep() to impl() and
1465         m_rep to m_impl.  Also add impl() method to Identifier, and rename
1466         its UString member from _ustring to m_string.
1467
1468         * Plugins/Hosted/ProxyInstance.mm:
1469         (WebKit::ProxyInstance::methodsNamed):
1470         (WebKit::ProxyInstance::fieldNamed):
1471
1472 2010-08-06  Gavin Barraclough  <barraclough@apple.com>
1473
1474         Rubber stamped by Sam Weinig
1475
1476         Bug 43594 - Add string forwards to Forward.h
1477         This allows us to remove forward declarations for these classes from
1478         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
1479
1480         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1481         * Plugins/WebBaseNetscapePluginView.h:
1482         * WebCoreSupport/WebFrameLoaderClient.h:
1483         * WebCoreSupport/WebIconDatabaseClient.h:
1484         * WebCoreSupport/WebPluginHalterClient.h:
1485         * WebView/WebViewInternal.h:
1486
1487 2010-08-04  MORITA Hajime  <morrita@google.com>
1488
1489         Reviewed by Tony Chang.
1490
1491         Pasting should fire textInput event.
1492         https://bugs.webkit.org/show_bug.cgi?id=42958
1493
1494         On paste, invoke Editor instead of direct command invocation,
1495         which allows dispatching events before actual paste.
1496
1497         * WebView/WebHTMLView.mm:
1498         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
1499
1500 2010-08-06  Yongjun Zhang  <yongjun_zhang@apple.com>
1501
1502         Reviewed by Eric Seidel.
1503
1504         add "const" to WebChromeClient::webView().
1505         https://bugs.webkit.org/show_bug.cgi?id=43631
1506
1507         Change WebChromeClient::webView() to be const because ChromeClient::didReceiveViewportArguments
1508         is const method now, and calling webView() inside port-specific didReceiveViewportArguments
1509         implementation fails compiling if webView() is not const.
1510
1511         * WebCoreSupport/WebChromeClient.h:
1512         (WebChromeClient::webView):
1513
1514 2010-08-06  Jessie Berlin  <jberlin@apple.com>
1515
1516         Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
1517         Unreviewed.
1518
1519         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1520         * Plugins/WebBaseNetscapePluginView.h:
1521         * WebCoreSupport/WebFrameLoaderClient.h:
1522         * WebCoreSupport/WebIconDatabaseClient.h:
1523         * WebCoreSupport/WebPluginHalterClient.h:
1524         * WebView/WebViewInternal.h:
1525
1526 2010-08-05  Joseph Pecoraro  <joepeck@webkit.org>
1527
1528         Reviewed by David Kilzer.
1529
1530         Remove Invalid Asserts for Application Cache Quotas
1531         https://bugs.webkit.org/show_bug.cgi?id=43585
1532
1533         Removed Invalid ASSERTs that would always happen for quotas
1534         that were not noQuota().
1535
1536         * WebView/WebPreferences.mm:
1537         (-[WebPreferences applicationCacheTotalQuota]):
1538         (-[WebPreferences applicationCacheDefaultOriginQuota]):
1539
1540 2010-08-05  Gavin Barraclough  <barraclough@apple.com>
1541
1542         Rubber stamped by Sam Weinig
1543
1544         Bug 43594 - Add string forwards to Forward.h
1545         This allows us to remove forward declarations for these classes from
1546         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
1547
1548         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1549         * Plugins/WebBaseNetscapePluginView.h:
1550         * WebCoreSupport/WebFrameLoaderClient.h:
1551         * WebCoreSupport/WebIconDatabaseClient.h:
1552         * WebCoreSupport/WebPluginHalterClient.h:
1553         * WebView/WebViewInternal.h:
1554
1555 2010-08-05  Jian Li  <jianli@chromium.org>
1556
1557         Reviewed by David Levin.
1558
1559         Unify blob related feature defines to ENABLE(BLOB).
1560         https://bugs.webkit.org/show_bug.cgi?id=43081
1561
1562         * Configurations/FeatureDefines.xcconfig:
1563
1564 2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
1565
1566         Reviewed by David Kilzer.
1567
1568         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
1569         https://bugs.webkit.org/show_bug.cgi?id=40627
1570
1571         Part 6 - LayoutTest and Cleanup
1572
1573         * WebCoreSupport/WebApplicationCache.h:
1574         * WebCoreSupport/WebApplicationCache.mm:
1575         (+[WebApplicationCache setMaximumSize:]): refactor out deleting the application caches.
1576         (+[WebApplicationCache deleteAllApplicationCaches]): delete application caches.
1577
1578 2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
1579
1580         Reviewed by David Kilzer.
1581
1582         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
1583         https://bugs.webkit.org/show_bug.cgi?id=40627
1584
1585         Part 5 - Refactor Quota Management in WebSecurityOrigin into Managers
1586
1587         Per-Origin quotas exist for Databases and Application Caches. Clients
1588         given a WebSecurityOrigin have the ability to set the quota for any
1589         per-origin quota type. This puts quota management into an interface
1590         and WebSecurityOrigin allows access to quota managers for the
1591         different types of quotas.
1592
1593         This also deprecates the old methods on WebSecurityOrigin. They are
1594         left in for now to prevent breaking older clients.
1595
1596           The WebQuotaManager interface allows querying and modifying a
1597           per-origin quota. This is implemented for both Databases and
1598           Application Caches.
1599
1600         * Misc/WebQuotaManager.h: Added. Interface for quota management (usage, quota, setQuota).
1601         * Storage/WebDatabaseQuotaManager.h: Added.
1602         * Storage/WebDatabaseQuotaManager.mm: Added.
1603         (-[WebDatabaseQuotaManager origin]):
1604         (-[WebDatabaseQuotaManager usage]):
1605         (-[WebDatabaseQuotaManager quota]):
1606         (-[WebDatabaseQuotaManager setQuota:]):
1607         * Storage/WebDatabaseSecurityOrigin.h: Removed.
1608         * Storage/WebDatabaseSecurityOrigin.mm: Removed.
1609         * WebCoreSupport/WebApplicationCacheQuotaManager.h: Added.
1610         * WebCoreSupport/WebApplicationCacheQuotaManager.mm: Added.
1611         (-[WebApplicationCacheQuotaManager origin]):
1612         (-[WebApplicationCacheQuotaManager usage]):
1613         (-[WebApplicationCacheQuotaManager quota]):
1614         (-[WebApplicationCacheQuotaManager setQuota:]):
1615         * WebCoreSupport/WebSecurityOriginPrivate.h: Added a category to access managers. Deprecated old methods.
1616
1617           Remove the WebSecurityOrigin sub-classes. Managers are better.
1618
1619         * WebCoreSupport/WebApplicationCacheSecurityOrigin.h: Removed.
1620         * WebCoreSupport/WebApplicationCacheSecurityOrigin.mm: Removed.
1621
1622           Create the managers lazily. Change old style calls to make use
1623           of the managers.
1624
1625         * WebCoreSupport/WebChromeClient.mm:
1626         (WebChromeClient::exceededDatabaseQuota):
1627         (WebChromeClient::reachedApplicationCacheOriginQuota):
1628         * WebCoreSupport/WebSecurityOrigin.mm:
1629         (-[WebSecurityOrigin applicationCacheQuotaManager]):
1630         (-[WebSecurityOrigin databaseQuotaManager]):
1631         (-[WebSecurityOrigin dealloc]): release the managers if they exist.
1632
1633 2010-08-03  Alex Milowski  <alex@milowski.com>
1634
1635         Reviewed by Beth Dakin.
1636
1637         Changed the ENABLE_MATHML value to enable MathML by default.
1638
1639         * Configurations/FeatureDefines.xcconfig:
1640
1641 2010-08-02  Brady Eidson  <beidson@apple.com>
1642
1643         Reviewed by Anders Carlsson.
1644
1645         Add VisitedLinkStrategy for each platform to implement
1646         https://bugs.webkit.org/show_bug.cgi?id=43393
1647
1648         * WebCoreSupport/WebPlatformStrategies.h:
1649         * WebCoreSupport/WebPlatformStrategies.mm:
1650         (WebPlatformStrategies::createVisitedLinkStrategy):
1651         (WebPlatformStrategies::isLinkVisited): Call back into PageGroup's visited links.
1652         (WebPlatformStrategies::addVisitedLink): Ditto.
1653
1654 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
1655
1656         Reviewed by Darin Fisher.
1657
1658         PopupMenu refactoring in preparation to WebKit2
1659         https://bugs.webkit.org/show_bug.cgi?id=42592
1660
1661         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
1662         instances, concrete classes that inherit from ChromeClient needed to be changed to
1663         implement the new methods.
1664
1665         * WebCoreSupport/WebChromeClient.h:
1666         * WebCoreSupport/WebChromeClient.mm:
1667         (WebChromeClient::selectItemWritingDirectionIsNatural):
1668         (WebChromeClient::createPopupMenu):
1669         (WebChromeClient::createSearchPopupMenu):
1670
1671 2010-08-02  Jeremy Orlow  <jorlow@chromium.org>
1672
1673         Speculative revert of 64425 due to Chromium instability
1674         https://bugs.webkit.org/show_bug.cgi?id=43347
1675
1676         * WebCoreSupport/WebChromeClient.h:
1677         * WebCoreSupport/WebChromeClient.mm:
1678
1679 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
1680
1681         Reviewed by Darin Fisher.
1682
1683         PopupMenu refactoring in preparation to WebKit2
1684         https://bugs.webkit.org/show_bug.cgi?id=42592
1685
1686         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
1687         instances, concrete classes that inherit from ChromeClient needed to be changed to
1688         implement the new methods.
1689
1690         * WebCoreSupport/WebChromeClient.h:
1691         * WebCoreSupport/WebChromeClient.mm:
1692         (WebChromeClient::selectItemWritingDirectionIsNatural):
1693         (WebChromeClient::createPopupMenu):
1694         (WebChromeClient::createSearchPopupMenu):
1695
1696 2010-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1697
1698         Unreviewed, rolling out r64422.
1699         http://trac.webkit.org/changeset/64422
1700         https://bugs.webkit.org/show_bug.cgi?id=43304
1701
1702         Build fixes are needed for Snow Leopard and Windows.
1703         (Requested by lca on #webkit).
1704
1705         * WebCoreSupport/WebChromeClient.h:
1706         * WebCoreSupport/WebChromeClient.mm:
1707
1708 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
1709
1710         Reviewed by Darin Fisher.
1711
1712         PopupMenu refactoring in preparation to WebKit2
1713         https://bugs.webkit.org/show_bug.cgi?id=42592
1714
1715         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
1716         instances, concrete classes that inherit from ChromeClient needed to be changed to
1717         implement the new methods.
1718
1719         * WebCoreSupport/WebChromeClient.h:
1720         * WebCoreSupport/WebChromeClient.mm:
1721         (WebChromeClient::selectItemWritingDirectionIsNatural):
1722         (WebChromeClient::createPopupMenu):
1723         (WebChromeClient::createSearchPopupMenu):
1724
1725 2010-07-31  David Kilzer  <ddkilzer@apple.com>
1726
1727         <http://webkit.org/b/43300> Simplify variables in *.xcconfig files after adding iOS support
1728
1729         Reviewed by Darin Adler.
1730
1731         * Configurations/WebKit.xcconfig: Extracted
1732         PRODUCTION_FRAMEWORKS_DIR and PRODUCTION_ROOT variables.
1733
1734 2010-07-30  Dan Bernstein  <mitz@apple.com>
1735
1736         Reviewed by Darin Adler.
1737
1738         <rdar://problem/8257783> Short documents may print a second blank page
1739         https://bugs.webkit.org/show_bug.cgi?id=43271
1740
1741         * WebView/WebHTMLView.mm:
1742         (-[WebHTMLView _web_setPrintingModeRecursive]): Updated for additional height parameter
1743         to _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:.
1744         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
1745         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
1746         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]): Added height parameter,
1747         which is scaled and passed on to _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:.
1748         (-[WebHTMLView _endPrintMode]): Updated for additional height parameter to
1749         _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:.
1750         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]): Added
1751         height parameter, which is passed on to FrameView::forceLayoutForPagination().
1752         (-[WebHTMLView layout]): Updated for additional height parameter.
1753         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:]): Added height
1754         parameter, which is passed on to -layoutToMinimumPageWidth:height:maximumPageWidth:adjustViewSize:.
1755         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Updated for additional height
1756         parameter.
1757         (-[WebHTMLView setPageWidthForPrinting:]): Ditto.
1758         (-[WebHTMLView knowsPageRange:]): Pass the available height on the page on to
1759         _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize.
1760         * WebView/WebHTMLViewPrivate.h: 
1761
1762 2010-07-30  Joseph Pecoraro  <joepeck@webkit.org>
1763
1764         Fix for tests that broke after r64400. Tracking a more
1765         ideal solution in https://bugs.webkit.org/show_bug.cgi?id=40627
1766
1767         Switch the interface back to (unsigned long long), and move
1768         the WebDatabaseSecurityOrigin implementation up into WebSecurityOrigin.
1769         The subclasses' implementations were not getting called.
1770
1771         * Storage/WebDatabaseSecurityOrigin.mm:
1772         * WebCoreSupport/WebApplicationCacheSecurityOrigin.mm:
1773         (-[WebApplicationCacheSecurityOrigin quota]):
1774         (-[WebApplicationCacheSecurityOrigin setQuota:]):
1775         * WebCoreSupport/WebSecurityOrigin.mm:
1776         (-[WebSecurityOrigin usage]):
1777         (-[WebSecurityOrigin quota]):
1778         (-[WebSecurityOrigin setQuota:]):
1779         * WebCoreSupport/WebSecurityOriginPrivate.h:
1780
1781 2010-07-30  Joseph Pecoraro  <joepeck@webkit.org>
1782
1783         Reviewed by David Kilzer.
1784
1785         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
1786         https://bugs.webkit.org/show_bug.cgi?id=40627
1787
1788         Part 4 - Client Notification when the Quota is Reached
1789
1790         Notify the WebKit client when the per-origin quota is reached
1791         via a delegate method reachedApplicationCacheOriginQuota.
1792
1793           Refactor the WebSecurityOrigin class to be generic enough to
1794           allow quota management of both Databases or Application Caches
1795           via subclasses.
1796
1797         * Storage/WebDatabaseSecurityOrigin.h: Added.
1798         * Storage/WebDatabaseSecurityOrigin.mm: Added.
1799         (-[WebDatabaseSecurityOrigin quota]):
1800         (-[WebDatabaseSecurityOrigin setQuota:]):
1801         * WebCoreSupport/WebApplicationCacheSecurityOrigin.h: Added.
1802         * WebCoreSupport/WebApplicationCacheSecurityOrigin.mm: Added.
1803         (-[WebApplicationCacheSecurityOrigin quota]):
1804         (-[WebApplicationCacheSecurityOrigin setQuota:]):
1805         * Storage/WebSecurityOrigin.mm: Removed. (Moved to WebCoreSupport)
1806         * Storage/WebSecurityOriginPrivate.h: Removed. (Moved to WebCoreSupport)
1807         * WebCoreSupport/WebSecurityOrigin.mm: Added.
1808         (-[WebSecurityOrigin usage]): to be implemented by subclasses.
1809         (-[WebSecurityOrigin quota]): to be implemented by subclasses.
1810         (-[WebSecurityOrigin setQuota:]): to be implemented by subclasses.
1811         * WebCoreSupport/WebSecurityOriginInternal.h: Renamed from WebKit/mac/Storage/WebSecurityOriginInternal.h.
1812         * WebCoreSupport/WebSecurityOriginPrivate.h: Added.
1813
1814           Turn the notification into a WebUI Delegate to call. Following
1815           the example of Databases.
1816
1817         * DefaultDelegates/WebDefaultUIDelegate.m:
1818         (-[WebDefaultUIDelegate webView:exceededApplicationCacheOriginQuotaForSecurityOrigin:]):
1819         * WebCoreSupport/WebChromeClient.h:
1820         * WebCoreSupport/WebChromeClient.mm:
1821         (WebChromeClient::exceededDatabaseQuota): use the Databases Security Origin subclass.
1822         (WebChromeClient::reachedApplicationCacheOriginQuota): use the Application Cache Security Origin subclass.
1823         * WebView/WebUIDelegatePrivate.h:
1824
1825 2010-07-30  Joseph Pecoraro  <joepeck@webkit.org>
1826
1827         Reviewed by David Kilzer.
1828
1829         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
1830         https://bugs.webkit.org/show_bug.cgi?id=40627
1831
1832         Part 1 - Add Total and Per-Origin Quota Preferences.
1833
1834         Allow the application cache total size to be a preference, and
1835         add a new preference for the default per-origin quota.
1836
1837           Storage quotas were int64_t (long long). Boilerplate for
1838           these types added for consistency.
1839
1840         * Misc/WebNSDictionaryExtras.h:
1841         * Misc/WebNSDictionaryExtras.m:
1842         (-[NSMutableDictionary _webkit_setLongLong:forKey:]):
1843         * WebCoreSupport/WebApplicationCache.h: setters and accessors for WebCore's cacheStorage.
1844         * WebCoreSupport/WebApplicationCache.mm:
1845         (+[WebApplicationCache maximumSize:]):
1846         (+[WebApplicationCache setMaximumSize:]):
1847         (+[WebApplicationCache defaultOriginQuota]):
1848         (+[WebApplicationCache setDefaultOriginQuota:]):
1849         * WebView/WebPreferenceKeysPrivate.h:
1850         * WebView/WebPreferences.mm:
1851         (+[WebPreferences initialize]): defaults to noQuota for both preferences.
1852         (-[WebPreferences _longLongValueForKey:]):
1853         (-[WebPreferences _setLongLongValue:forKey:]):
1854         (-[WebPreferences applicationCacheTotalQuota]):
1855         (-[WebPreferences setApplicationCacheTotalQuota:]):
1856         (-[WebPreferences applicationCacheDefaultOriginQuota]):
1857         (-[WebPreferences setApplicationCacheDefaultOriginQuota:]):
1858         * WebView/WebPreferencesPrivate.h:
1859         * WebView/WebView.mm:
1860         (-[WebView _preferencesChangedNotification:]): respect updates to the preferences.
1861
1862 2010-07-30  Andy Estes  <aestes@apple.com>
1863
1864         Reviewed by David Kilzer.
1865
1866         Add Xcode support for compiling WebKit against iOS SDKs.
1867         https://bugs.webkit.org/show_bug.cgi?id=42796
1868
1869         * Configurations/Base.xcconfig:
1870         * Configurations/DebugRelease.xcconfig:
1871         * Configurations/FeatureDefines.xcconfig:
1872         * Configurations/Version.xcconfig:
1873         * Configurations/WebKit.xcconfig:
1874
1875 2010-07-26  Steve Block  <steveblock@google.com>
1876
1877         Reviewed by Jeremy Orlow.
1878
1879         Page clients should be passed to Page constructor via structure of pointers
1880         https://bugs.webkit.org/show_bug.cgi?id=42834
1881
1882         * WebView/WebView.mm:
1883         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1884
1885 2010-07-27  Kinuko Yasuda  <kinuko@chromium.org>
1886
1887         Reviewed by Ojan Vafai.
1888
1889         Add FILE_SYSTEM build flag for FileSystem API
1890         https://bugs.webkit.org/show_bug.cgi?id=42915
1891
1892         * Configurations/FeatureDefines.xcconfig:
1893
1894 2010-07-27  Steve Block  <steveblock@google.com>
1895
1896         Reviewed by Jeremy Orlow.
1897
1898         Client-based Geolocation does not pass enableHighAccuracy option to controller and client
1899         https://bugs.webkit.org/show_bug.cgi?id=40374
1900
1901         Stub out setEnableHighAccuracy method for the Mac port.
1902
1903         * WebCoreSupport/WebGeolocationControllerClient.h:
1904         (WebGeolocationControllerClient::setEnableHighAccuracy):
1905
1906 2010-07-22  Sam Weinig  <sam@webkit.org>
1907
1908         Reviewed by Maciej Stachowiak.
1909
1910         Fix for <rdar://problem/8222626>
1911         Send textDidChangeInTextField delegate callback only in response to typing or other forms of user text input.
1912
1913         The function name no longer perfectly matches the behavior, but I didn't want to break any existing clients. Maybe we
1914         should migrate to a new function name eventually
1915
1916         * WebCoreSupport/WebEditorClient.mm:
1917         (WebEditorClient::textDidChangeInTextField):
1918
1919 2010-07-22  Sam Weinig  <sam@webkit.org>
1920
1921         Reviewed by Anders Carlsson.
1922
1923         Patch for https://bugs.webkit.org/show_bug.cgi?id=42836
1924         Add localized strings stubs for WebKit2.
1925
1926         - Convert WebKit (mac) to use a LocalizationStrategy rather than the WebCoreViewFactory
1927           for localized strings.
1928
1929         Gets us below 200 tests failing in WebKitTestRunner.
1930
1931         * WebCoreSupport/WebContextMenuClient.mm:
1932         (fixMenusReceivedFromOldClients): Use LocalizedStrings rather than the factory.
1933         * WebCoreSupport/WebPlatformStrategies.h:
1934         * WebCoreSupport/WebPlatformStrategies.mm:
1935         * WebCoreSupport/WebViewFactory.mm:
1936
1937 2010-07-21  Brady Eidson  <beidson@apple.com>
1938
1939         Reviewed by Geoffrey Garen.
1940
1941         Break out "scheme registration" functionality from SecurityOrigin to a SchemeRegistry
1942         https://bugs.webkit.org/show_bug.cgi?id=42783
1943
1944         * WebView/WebView.mm:
1945         (+[WebView _registerURLSchemeAsSecure:]):
1946         (+[WebView registerURLSchemeAsLocal:]):
1947
1948 2010-07-21  Simon Fraser  <simon.fraser@apple.com>
1949
1950         Reviewed by Anders Carlsson.
1951
1952         Composited layers don't scroll in WebKit2
1953         https://bugs.webkit.org/show_bug.cgi?id=42771
1954
1955         Prep work: FrameView::scrollPositionChanged() sounds like a generic "did scroll" bottleneck,
1956         but this is deceiving. It's only every called on one platform (Mac) when the NSScrollView gets
1957         scrolled, so rename it to FrameView::scrollPositionChangedViaPlatformWidget().
1958
1959         * WebView/WebHTMLView.mm:
1960         (-[WebHTMLView _frameOrBoundsChanged]):
1961
1962 2010-07-21  Eric Carlson  <eric.carlson@apple.com>
1963
1964         Reviewed by Simon Fraser.
1965
1966         Update plug-in proxy backed <video> and <audio> elements.
1967         https://bugs.webkit.org/show_bug.cgi?id=42770
1968         <rdar://problem/7963467>
1969
1970         * Plugins/WebPluginController.h:
1971         * Plugins/WebPluginController.mm:
1972         (-[WebPluginController dealloc]): Release _viewsNotInDocument.
1973         (-[WebPluginController stopAllPlugins]): Stop plug-ins not in the document.
1974         (-[WebPluginController pluginViewCreated:]): New, add a View (plug-in) to _viewsNotInDocument.
1975         (+[WebPluginController pluginViewHidden:]): New, remove the view (plug-in) from pluginViews.
1976         (-[WebPluginController addPlugin:]): Remove the new plug-in from _viewsNotInDocument.
1977
1978         * WebCoreSupport/WebFrameLoaderClient.h:
1979         * WebCoreSupport/WebFrameLoaderClient.mm:
1980         (WebFrameLoaderClient::createPlugin): Remove PLUGIN_PROXY_FOR_VIDEO code, the media
1981         player proxy plug-in should never be allocated by this method.
1982         (WebFrameLoaderClient::createMediaPlayerProxyPlugin): New, allocate a media player proxy.
1983
1984         * WebView/WebView.mm:
1985         (-[WebView _videoProxyPluginForMIMEType:]): New. Identical to _pluginForMIMEType except it doesn't
1986         consider the arePlugInsEnabled preference.
1987         * WebView/WebViewInternal.h:
1988
1989
1990 2010-07-19  Chris Marrin  <cmarrin@apple.com>
1991
1992         Reviewed by Darin Adler.
1993
1994         https://bugs.webkit.org/show_bug.cgi?id=42118
1995         Disable WebGL on Leopard for now. 
1996
1997         LayoutTests fail on some graphics hardware on Leopard because one of the features we use,
1998         GL_ARB_framebuffer_object, is not universally available in Leopard like it is in
1999         SnowLeopard. This will allow LayoutTests to pass on Leopard until we add logic to use a
2000         software OpenGL driver on machines without this support.
2001
2002         * Configurations/FeatureDefines.xcconfig:
2003
2004 2010-07-18  Anders Carlsson  <andersca@apple.com>
2005
2006         Reviewed by Sam Weinig.
2007
2008         Move PluginWidget to WebKit
2009         https://bugs.webkit.org/show_bug.cgi?id=42530
2010
2011         * Plugins/WebBaseNetscapePluginView.h:
2012         * Plugins/WebBaseNetscapePluginView.mm:
2013         (-[WebBaseNetscapePluginView pluginLayer]):
2014         Add default pluginLayer implementation.
2015
2016         * WebCoreSupport/WebFrameLoaderClient.mm:
2017         (PluginWidget::PluginWidget):
2018         (PluginWidget::invalidateRect):
2019         Move the guts of PluginWidget here from WebCore.
2020         
2021         (NetscapePluginWidget::platformLayer):
2022         Get the layer from the plug-in view.
2023
2024 2010-07-18  David Kilzer  <ddkilzer@apple.com>
2025
2026         <http://webkit.org/b/42522> Add missing (id) return type to Obj-C methods
2027
2028         Reviewed by Dan Bernstein.
2029
2030         * Carbon/CarbonWindowAdapter.mm:
2031         (-[NSWindow(HIWebFrameView) _initContent:styleMask:backing:defer:contentView:]):
2032         (-[CarbonWindowAdapter _destroyRealWindow:]):
2033         (-[CarbonWindowAdapter _clearModalWindowLevel]):
2034         * Misc/WebIconDatabase.mm:
2035         (-[WebIconDatabase init]):
2036         * Misc/WebNSPasteboardExtras.mm:
2037         (-[NSFilePromiseDragSource initWithSource:]):
2038         * WebView/WebHTMLRepresentation.mm:
2039         (-[WebHTMLRepresentation init]):
2040         * WebView/WebPreferences.mm:
2041         (-[WebPreferences init]):
2042         * WebView/WebView.mm:
2043         (-[WebView UIDelegate]):
2044         (-[WebView resourceLoadDelegate]):
2045         (-[WebView downloadDelegate]):
2046         (-[WebView policyDelegate]):
2047         (-[WebView frameLoadDelegate]):
2048
2049 2010-07-16  Zhe Su  <suzhe@chromium.org>
2050
2051         Reviewed by Darin Adler.
2052
2053         REGRESSION(r61484): Broke focus behaviour on Qt and probably other platforms
2054         https://bugs.webkit.org/show_bug.cgi?id=42253
2055
2056         Dummy implementation of EditorClient::willSetInputMethodState.
2057
2058         * WebCoreSupport/WebEditorClient.h:
2059         * WebCoreSupport/WebEditorClient.mm:
2060         (WebEditorClient::willSetInputMethodState):
2061
2062 2010-07-16  Dan Bernstein  <mitz@apple.com>
2063
2064         Reviewed by Sam Weinig.
2065
2066         Part of <rdar://problem/7233974> Deprecate +[WebView _setShouldUseFontSmoothing:]
2067         https://bugs.webkit.org/show_bug.cgi?id=29355
2068
2069         * Misc/WebKitNSStringExtras.h:
2070         * Misc/WebKitNSStringExtras.mm:
2071         (-[NSString _web_drawAtPoint:font:textColor:]): Now calls through to
2072         -_web_drawAtPoint:font:textColor:allowingFontSmoothing: passing YES for the last
2073         parameter.
2074         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Added
2075         allowingFontSmoothing:. If font smoothing is not allowed, sets the font smoothing
2076         mode to antialiased. Otherwise, sets it to auto.
2077         (-[NSString _web_drawDoubledAtPoint:withTopColor:bottomColor:font:]): Instead of
2078         changing the font smoothing setting in the graphics context, call
2079         -_web_drawAtPoint:font:textColor:allowingFontSmoothing: passing NO for the last
2080         parameter.
2081
2082 2010-07-16  Anders Carlsson  <andersca@apple.com>
2083
2084         Reviewed by Sam Weinig.
2085
2086         Remove semicolons from Objective-C method declarations.
2087
2088         * WebView/WebRenderLayer.mm:
2089         (+[WebRenderLayer nameForLayer:]):
2090         (+[WebRenderLayer compositingInfoForLayer:]):
2091
2092 2010-07-16  Mikhail Naganov  <mnaganov@chromium.org>
2093
2094         Reviewed by Pavel Feldman.
2095
2096         Make JS memory stats available via 'Performance' object (Web Timing).
2097         This statistics is populated only if 'WebKitMemoryInfoEnabled'
2098         preference is set.
2099
2100         'console.memory' is kept until Web Timing object becomes visible by
2101         default (currently it is hidden under compile-time flag).  These stats
2102         are guarded with the same preference.
2103
2104         https://bugs.webkit.org/show_bug.cgi?id=41617
2105
2106         * WebKit.order:
2107         * WebView/WebPreferenceKeysPrivate.h:
2108         * WebView/WebPreferences.mm:
2109         (+[WebPreferences initialize]):
2110         (-[WebPreferences memoryInfoEnabled]):
2111         (-[WebPreferences setMemoryInfoEnabled:]):
2112         * WebView/WebPreferencesPrivate.h:
2113         * WebView/WebView.mm:
2114         (-[WebView _preferencesChangedNotification:]):
2115
2116 2010-07-15  Shinichiro Hamaji  <hamaji@chromium.org>
2117
2118         Reviewed by Darin Adler.
2119
2120         Printing test results differ between machines, we should use ImageDiff instead
2121         https://bugs.webkit.org/show_bug.cgi?id=20011
2122
2123         * Misc/WebCoreStatistics.h:
2124         * Misc/WebCoreStatistics.mm:
2125         (-[WebFrame printToCGContext:cgContext:pageWidthInPixels:]):
2126
2127 2010-07-15  Daniel Bates  <dbates@rim.com>
2128
2129         Reviewed by Darin Adler.
2130
2131         [Mac] Implement LayoutTestController::markerTextForListItem()
2132         https://bugs.webkit.org/show_bug.cgi?id=37929
2133
2134         Implements support for markerTextForListItem in the Mac port.
2135
2136         * DOM/WebDOMOperations.mm:
2137         (+[DOMElement _DOMElementFromJSContext]): Added.
2138         (-[DOMElement _markerTextForListItem]): Added.
2139         * DOM/WebDOMOperationsPrivate.h:
2140
2141 2010-07-14  Simon Fraser  <simon.fraser@apple.com>
2142
2143         Fix non-ACCELERATED_COMPOSITING build.
2144
2145         * WebView/WebRenderLayer.mm:
2146         (+[WebRenderLayer compositingInfoForLayer:]):
2147
2148 2010-07-14  Simon Fraser  <simon.fraser@apple.com>
2149
2150         Reviewed by John Sullivan.
2151
2152         <rdar://problem/8186963> Expose information about compositing layers.
2153
2154         Use RenderLayerBacking::compositingLayerType() to add more information about compositing to
2155         WebRenderLayer, via a compositingInfo property. Also show element classnames.
2156         
2157         Also add separator items between the various z-order lists.
2158         
2159         * WebView/WebRenderLayer.h:
2160         * WebView/WebRenderLayer.mm:
2161         (+[WebRenderLayer nameForLayer:]):
2162         (+[WebRenderLayer compositingInfoForLayer:]):
2163         (-[WebRenderLayer initWithRenderLayer:]):
2164         (-[WebRenderLayer initWithName:]):
2165         (-[WebRenderLayer initWithWebFrame:]):
2166         (-[WebRenderLayer dealloc]):
2167         (-[WebRenderLayer buildDescendantLayers:]):
2168         (-[WebRenderLayer compositingInfo]):
2169         (-[WebRenderLayer isComposited]):
2170         (-[WebRenderLayer isSeparator]):
2171
2172 2010-07-14  Darin Adler  <darin@apple.com>
2173
2174         Another try at fixing the Tiger build.
2175
2176         Avoid non-ASCII in source files to keep Tiger compiler happy.
2177
2178         * WebView/WebRenderLayer.mm:
2179         (+[WebRenderLayer nameForLayer:]): Use %C for the non-ASCII characters.
2180
2181 2010-07-14  Sam Weinig  <sam@webkit.org>
2182
2183         Reviewed by Darin Adler.
2184
2185         Patch for https://bugs.webkit.org/show_bug.cgi?id=42232
2186         Make changing Cursors work in WebKit2.
2187
2188         * WebCoreSupport/WebChromeClient.h:
2189         * WebCoreSupport/WebChromeClient.mm:
2190         (WebChromeClient::setCursor):
2191         * WebView/WebView.mm:
2192         Implement cursor changing at the WebKit level for the sake of WebKit2.
2193         This functionality is being moved from WidgetMac.mm.
2194         (+[WebView _pointingHandCursor]):
2195         Update to use platformCursor() instead of impl().
2196
2197 2010-07-13  Simon Fraser  <simon.fraser@apple.com>
2198
2199         Fix Tiger build.
2200
2201         Avoid non-ASCII in souce files to keep Tiger compiler happy.
2202
2203         * WebView/WebRenderLayer.mm:
2204         (+[WebRenderLayer nameForLayer:]):
2205
2206 2010-07-13  Simon Fraser  <simon.fraser@apple.com>
2207
2208         Reviewed by Dan Bernstein.
2209
2210         <rdar://problem/8186963> Expose RenderLayer hierarchy via Obj-C for debugging.
2211
2212         Add a WebRenderLayer class that reflects the RenderLayer tree into a hierarchy
2213         of Objective-C objects suitable for display in an outline view.
2214         
2215         * WebKit.exp: Export the WebRenderLayer Objective-C class.
2216         * WebView/WebRenderLayer.h: Added.
2217         * WebView/WebRenderLayer.mm: Added.
2218
2219 2010-07-07  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2220
2221         Reviewed by Darin Adler.
2222
2223         Prevent assertion/duplicate loads for non-deferred subtitute-data loads
2224
2225         https://bugs.webkit.org/show_bug.cgi?id=30879
2226
2227         MainResourceLoader uses the member m_initialRequest to store requests for future
2228         deferred loads. When doing the actual load in handleDataLoadNow(), we therefore
2229         have to clear this request so that subsequent entries into the loader will not
2230         start yet another load.
2231
2232         This can happen as a result of a PageGroupLoadDeferrer going out of scope when
2233         returning from Chrome::runJavaScriptAlert(), which calls setDeferredLoading(false),
2234         but only in the case of using both substitute-data and non-deferred main resource
2235         load together. That's why two new DRT functions were added:
2236
2237          * queueLoadHTMLString()
2238          * setDeferMainResourceLoad()
2239
2240         The change adds DRT hooks for Mac, Win and Qt for these two functions. For Mac
2241         and Win the hook uses new SPI in WebDataSource. For Qt a new static member was
2242         added to the FrameLoaderClientQt and accessed though DumpRenderTreeSupportQt.
2243
2244         * WebView/WebDataSource.mm:
2245         (-[WebDataSource _setDeferMainResourceDataLoad:]):
2246         * WebView/WebDataSourcePrivate.h:
2247
2248 2010-07-13  Philippe Normand  <pnormand@igalia.com>
2249
2250         Rubber-stamped by Xan Lopez.
2251
2252         Updated the copyright headers of the files modified in r62476.
2253
2254         * WebView/WebView.mm:
2255         * WebView/WebViewData.h:
2256         * WebView/WebViewInternal.h:
2257
2258 2010-07-09  Alexey Proskuryakov  <ap@apple.com>
2259
2260         Reviewed by Darin Adler.
2261
2262         https://bugs.webkit.org/show_bug.cgi?id=13075
2263         XMLHttpRequest with failed authentication should set status to 401
2264
2265         https://bugs.webkit.org/show_bug.cgi?id=6871
2266         <rdar://problem/3363403> 401 error page is never shown
2267
2268         * Panels/WebPanelAuthenticationHandler.m:
2269         (-[WebPanelAuthenticationHandler startAuthentication:window:]): Updated a comment - this
2270         code cancels loading, not authentication (canceling authentication means telling to
2271         continue without credentials).
2272         (-[WebPanelAuthenticationHandler _authenticationDoneWithChallenge:result:]): If there were
2273         no credentials provided, tell to continue without any. There may be alternative content
2274         returned with 401.
2275
2276 2010-07-09  Leon Clarke  <leonclarke@google.com>
2277
2278         Reviewed by Adam Barth.
2279
2280         add support for link prefetching
2281         https://bugs.webkit.org/show_bug.cgi?id=3652
2282
2283         * Configurations/FeatureDefines.xcconfig:
2284
2285 2010-07-08  Aaron Boodman  <aa@chromium.org>
2286
2287         Reviewed by Timothy Hatcher.
2288
2289         Add the ability for user scripts and user styles to affect just the top frame.
2290
2291         https://bugs.webkit.org/show_bug.cgi?id=41529
2292
2293         * WebView/WebView.mm:
2294         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:]):
2295         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
2296         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:]):
2297         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
2298         * WebView/WebViewPrivate.h:
2299
2300 2010-07-08  Adele Peterson  <adele@apple.com>
2301
2302         Reviewed by Jon Honeycutt, Adam Roben, and Darin Adler.
2303
2304         Fix for https://bugs.webkit.org/show_bug.cgi?id=41721
2305         <rdar://problem/8158561> Missing plug-in indicator should have a pressed state
2306
2307         Implement shouldMissingPluginMessageBeButton.
2308
2309         * WebCoreSupport/WebChromeClient.h:
2310         * WebCoreSupport/WebChromeClient.mm:
2311         (WebChromeClient::shouldMissingPluginMessageBeButton):
2312
2313 2010-07-08  Brady Eidson  <beidson@apple.com>
2314
2315         Reviewed by Tim Hatcher.
2316
2317         <rdar://problem/8136327> - Crash in Entourage calling WebCache method from background thread
2318
2319         * Misc/WebCache.mm:
2320         (+[WebCache setDisabled:]): Forward the call to the main thread if called from a background thread.
2321
2322         * Misc/WebNSObjectExtras.h:
2323         * Misc/WebNSObjectExtras.mm:
2324         (+[NSObject _webkit_invokeOnMainThread]): Add a class version of the main thread invoker.
2325
2326 2010-07-08  Mike Thole  <mthole@apple.com>
2327
2328         Reviewed by Darin Adler.
2329
2330         Patch for https://bugs.webkit.org/show_bug.cgi?id=41896
2331         Crash under allScriptsInPDFDocument() in WebPDFDocumentExtras.mm for certain PDFs
2332
2333         * WebView/WebPDFDocumentExtras.mm:
2334         (allScriptsInPDFDocument): Null-check 'data', as CGPDFStreamCopyData() may have returned 0.
2335
2336 2010-07-08  Sam Weinig  <sam@webkit.org>
2337
2338         Reviewed by Anders Carlsson.
2339
2340         Patch for https://bugs.webkit.org/show_bug.cgi?id=41826
2341         Convert BackForwardList to an abstract base class and add BackForwardListImpl
2342         as the concrete implementation of it.
2343
2344         * History/WebBackForwardList.mm:
2345         (-[WebBackForwardList init]):
2346         (-[WebBackForwardList setPageCacheSize:]):
2347         (-[WebBackForwardList pageCacheSize]):
2348
2349 2010-07-07  Sam Weinig  <sam@webkit.org>
2350
2351         Reviewed by Anders Carlsson.
2352
2353         Patch for https://bugs.webkit.org/show_bug.cgi?id=41772
2354         Add basic piping for BackForwardControllerClient.
2355
2356         * WebView/WebView.mm:
2357         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2358
2359 2010-07-07  Anders Carlsson  <andersca@apple.com>
2360
2361         Reviewed by Sam Weinig.
2362
2363         Change requestURL to a KURL.
2364         https://bugs.webkit.org/show_bug.cgi?id=41775
2365
2366         * Plugins/WebNetscapePluginStream.h:
2367         (WebNetscapePluginStream::setRequestURL):
2368         * Plugins/WebNetscapePluginStream.mm:
2369         (WebNetscapePluginStream::pluginCancelledConnectionError):
2370         (WebNetscapePluginStream::errorForReason):
2371         (WebNetscapePluginStream::startStream):
2372         (WebNetscapePluginStream::didReceiveResponse):
2373         (WebNetscapePluginStream::destroyStream):
2374
2375 2010-07-07  Anders Carlsson  <andersca@apple.com>
2376
2377         Reviewed by Sam Weinig.
2378
2379         Rename the WebBaseNetscapePluginStream.cpp and .h files to WebNetscapePluginStream.cpp and .h to match the class name.
2380
2381         * Plugins/WebNetscapePluginStream.h: Renamed from WebKit/mac/Plugins/WebBaseNetscapePluginStream.h.
2382         * Plugins/WebNetscapePluginStream.mm: Renamed from WebKit/mac/Plugins/WebBaseNetscapePluginStream.mm.
2383
2384 2010-07-06  Steve Falkenburg  <sfalken@apple.com>
2385
2386         Reviewed by Simon Fraser.
2387
2388         Expose URL matching from WebUserContentURLPattern
2389         https://bugs.webkit.org/show_bug.cgi?id=41726
2390         <rdar://problem/7910144>
2391
2392         We previously had a way to construct WebUserContentURLPattern
2393         instances via WebKit, but no way for callers to perform matching.
2394         This patch adds the matchesURL functionality to allow for this.
2395
2396         * Misc/WebUserContentURLPattern.h: Added matchesURL.
2397         * Misc/WebUserContentURLPattern.mm:
2398         (-[WebUserContentURLPattern matchesURL:]): Added. Calls through to WebCore::UserContentURLPattern::matches.
2399
2400 2010-06-23  Philippe Normand  <pnormand@igalia.com>
2401
2402         Reviewed by Eric Carlson.
2403
2404         [GStreamer] on Mac OS use a runloop observer to process the glib context iterations
2405         https://bugs.webkit.org/show_bug.cgi?id=35747
2406
2407         If VIDEO and GSTREAMER are enabled, make the WebView start a
2408         runloop observer that will trigger the glib main context
2409         iterations. Those are needed by the GStreamer player only at the
2410         moment but could later be used for other GLib-dependant components
2411         if required.
2412
2413         * WebView/WebView.mm:
2414         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2415         (-[WebView _close]):
2416         (-[WebView _clearGlibLoopObserver]):
2417         (glibContextIterationCallback):
2418         (-[WebView _scheduleGlibContextIterations]):
2419         * WebView/WebViewData.h:
2420         * WebView/WebViewInternal.h:
2421
2422 2010-07-03  Jon Honeycutt  <jhoneycutt@apple.com>
2423
2424         The missing plug-in indicator should be clickable
2425
2426         https://bugs.webkit.org/show_bug.cgi?id=41550
2427         <rdar://problem/8132162>
2428
2429         From an original patch by Kevin Decker.
2430
2431         Reviewed by Darin Adler.
2432
2433         * WebCoreSupport/WebChromeClient.h:
2434         Declare an override of missingPluginButtonClicked().
2435
2436         * WebCoreSupport/WebChromeClient.mm:
2437         (WebChromeClient::missingPluginButtonClicked):
2438         Call the UIDelegate's method.
2439
2440         * WebView/WebUIDelegatePrivate.h:
2441         Declare didPressMissingPluginButton.
2442
2443 2010-07-01  Timothy Hatcher  <timothy@apple.com>
2444
2445         Provide a WebView preference to disable DNS prefetching.
2446
2447         https://bugs.webkit.org/show_bug.cgi?id=28825
2448         rdar://problem/7181249
2449
2450         Reviewed by Darin Adler.
2451
2452         * WebView/WebPreferenceKeysPrivate.h: Added WebKitDNSPrefetchingEnabledPreferenceKey.
2453         * WebView/WebPreferences.mm:
2454         (+[WebPreferences initialize]): Set WebKitDNSPrefetchingEnabledPreferenceKey to YES.
2455         (-[WebPreferences isDNSPrefetchingEnabled]): Added. Return WebKitDNSPrefetchingEnabledPreferenceKey's value.
2456         (-[WebPreferences setDNSPrefetchingEnabled:]): Added. Set WebKitDNSPrefetchingEnabledPreferenceKey's value.
2457         * WebView/WebPreferencesPrivate.h: Added isDNSPrefetchingEnabled and setDNSPrefetchingEnabled:.
2458         * WebView/WebView.mm:
2459         (-[WebView _preferencesChangedNotification:]): Call WebCore::Settings::setDNSPrefetchingEnabled.
2460
2461 2010-07-01  Alexey Proskuryakov  <ap@apple.com>
2462
2463         Reviewed by Anders Carlsson.
2464
2465         <rdar://problem/8148656> <https://bugs.webkit.org/show_bug.cgi?id=41431>
2466         REGRESSION (r49411): Various crashes due to JavaScript execution during plug-in destruction
2467
2468         Strengthen m_inDestroy "swipe under the carpet" fix.
2469
2470         * Plugins/Hosted/NetscapePluginInstanceProxy.h: Added a long comment about m_inDestroy, and
2471         changed it to static.
2472
2473         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2474         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): m_inDestroy is now
2475         static, so we don't initialize it in constructor.
2476         (WebKit::NetscapePluginInstanceProxy::destroy): Assert that we aren't already destroying
2477         some plug-in.
2478         (WebKit::NetscapePluginInstanceProxy::evaluate): This function accidentally lacked an
2479         m_inDestroy check in r42789.
2480
2481 2010-06-29  Zoltan Herczeg  <zherczeg@webkit.org>
2482
2483         Reviewed by Nikolas Zimmermann.
2484
2485         Add ConvolveMatrixElement to MigrateHeaders.make
2486         https://bugs.webkit.org/show_bug.cgi?id=5861
2487
2488         * MigrateHeaders.make:
2489
2490 2010-06-23  John Gregg  <johnnyg@google.com>
2491
2492         Reviewed by Kent Tamura.
2493
2494         add ENABLE_DIRECTORY_UPLOAD build support
2495         https://bugs.webkit.org/show_bug.cgi?id=41100
2496
2497         * Configurations/FeatureDefines.xcconfig:
2498
2499 2010-06-28  Eric Seidel  <eric@webkit.org>
2500
2501         Reviewed by Adam Barth.
2502
2503         Make it possible to test the new HTML5 TreeBuilder
2504         https://bugs.webkit.org/show_bug.cgi?id=41276
2505
2506         Adam was concerned that someone might make their port
2507         depend on this setting (I guess we had some trouble with that
2508         with the HTML5Parser setting), so I littered the code with warnings.
2509
2510         test-html5-parser now tests this code path.
2511
2512         * WebView/WebPreferenceKeysPrivate.h:
2513         * WebView/WebPreferences.mm:
2514         (+[WebPreferences initialize]):
2515         (-[WebPreferences html5TreeBuilderEnabled]):
2516         (-[WebPreferences setHTML5TreeBuilderEnabled:]):
2517         * WebView/WebPreferencesPrivate.h:
2518         * WebView/WebView.mm:
2519         (-[WebView _preferencesChangedNotification:]):
2520
2521 2010-06-25  Yuzo Fujishima  <yuzo@google.com>
2522
2523         Reviewed by Shinichiro Hamaji.
2524
2525         Improve default value handling for page format properties.
2526         https://bugs.webkit.org/show_bug.cgi?id=41150
2527
2528         * Misc/WebCoreStatistics.h:
2529         * Misc/WebCoreStatistics.mm:
2530         (-[WebFrame pageSizeAndMarginsInPixels:pageNumber:width:height:marginTop:marginRight:marginBottom:]):
2531
2532 2010-06-26  Tony Gentilcore  <tonyg@chromium.org>
2533
2534         Reviewed by Dimitri Glazkov.
2535
2536         Add an ENABLE_WEB_TIMING option for enabling Web Timing support.
2537         https://bugs.webkit.org/show_bug.cgi?id=38924
2538
2539         * Configurations/FeatureDefines.xcconfig:
2540
2541 2010-06-24  Jer Noble  <jer.noble@apple.com>
2542
2543         Reviewed by Eric Carlson.
2544
2545         Full-screened content doesn't keep the display on: Safari not grabbing a power assertion?
2546         https://bugs.webkit.org/show_bug.cgi?id=40939
2547         rdar://problem/7996172
2548         
2549         Take a IOKit power assertion when playing video in fullscreen mode.  Release the
2550         assertion when paused in fullscreen mode, and when exiting fullscreen mode.
2551
2552         * WebView/WebVideoFullscreenController.h:
2553         * WebView/WebVideoFullscreenController.mm:
2554         (-[WebVideoFullscreenController windowDidExitFullscreen]): Call updatePowerAssertions.
2555         (-[WebVideoFullscreenController windowDidEnterFullscreen]): Call updatePowerAssertions.
2556         (-[WebVideoFullscreenController _disableIdleDisplaySleep]):
2557         (-[WebVideoFullscreenController _enableIdleDisplaySleep]):
2558         (-[WebVideoFullscreenController _disableIdleSystemSleep]):
2559         (-[WebVideoFullscreenController _enableIdleSystemSleep]):
2560         (-[WebVideoFullscreenController updatePowerAssertions]): Call _(enable|disable)Idle(System|Display)sleep depending on current playback rate and fullscreen status.
2561         (-[WebVideoFullscreenController rateChanged:]): Call updatePowerAssertions.
2562
2563 2010-06-24  Jer Noble  <jer.noble@apple.com>
2564
2565         Reviewed by Darin Adler.
2566
2567         Playing movie full screen on second monitor hides menu bar and title bar on main monitor
2568         https://bugs.webkit.org/show_bug.cgi?id=40933
2569         rdar://problem/7858452
2570         
2571         Remove all references to GetSystemUIMode and SetSystemUIMode.  Replace these calls with 
2572         [NSApplication setPresentationOptions:].  Do not auto-hide the menu bar if the fullscreen
2573         screen is does not contain the menu-bar.  Do not auto-hide the dock if the fullscreen screen
2574         is both not the menu-bar screen and not the dock screen.
2575
2576         * WebView/WebVideoFullscreenController.mm:
2577         (-[WebVideoFullscreenController windowDidLoad]): Register the applicationDidChangeScreenParameters: listener.
2578         (-[WebVideoFullscreenController windowDidExitFullscreen]): Calls updateMenuAndDockForFullscreen.
2579         (-[WebVideoFullscreenController windowDidEnterFullscreen]): Calls updateMenuAndDockForFullscreen.
2580         (-[WebVideoFullscreenController applicationDidChangeScreenParameters:]):  New notification handler; catches NSApplicationDidChangeScreenParameters.
2581         (-[WebVideoFullscreenController updateMenuAndDockForFullscreen]): Hide/show the menu-bar and dock according to the fullscreen window's screen.
2582
2583 2010-06-24  Jer Noble  <jer.noble@apple.com>
2584
2585         Reviewed by Eric Carlson.
2586
2587         Full screen video in Safari exits full-screen if you switch to another app
2588         https://bugs.webkit.org/show_bug.cgi?id=40635
2589         rdar://problem/7885101
2590
2591         Implement the following rules for exiting full screen when switching apps:
2592         1. If the system has a single screen, switching apps will cause Safari to exit full-screen.
2593         2. Otherwise, if the full-screen screen is the "main screen" (the one with the title bar), 
2594            switching apps will cause Safari to exit full-screen.
2595         3. Overriding rules 1 & 2, if the full-screen screen is not on the "current space", 
2596            switching apps will NOT cause Safari to exit full-screen.
2597
2598         * WebView/WebVideoFullscreenController.mm:
2599         (-[WebVideoFullscreenController windowDidLoad]):
2600         (-[WebVideoFullscreenController applicationDidResignActive:]):
2601
2602 2010-06-24  Adele Peterson  <adele@apple.com>
2603
2604         Reviewed by Sam Weinig.
2605
2606         Updated fix for <rdar://problem/8093680> "Paste and Match Style" should fire paste events
2607         https://bugs.webkit.org/show_bug.cgi?id=41085
2608
2609         * WebView/WebHTMLView.mm: Use the WebCore command system for the pasteAsPlainText selector.
2610         Also remove internal methods that no one is using.
2611
2612 2010-06-24  Damian Kaleta  <dkaleta@apple.com>
2613
2614         Reviewed by Sam Weinig.
2615
2616         Added an ObjC wrapper to Node::renderRect(bool&).
2617
2618         * DOM/WebDOMOperations.mm:
2619         (-[DOMNode _renderRect:]):
2620         * DOM/WebDOMOperationsPrivate.h:
2621
2622 2010-06-24  Adele Peterson  <adele@apple.com>
2623
2624         Reviewed by Eric Carlson.
2625
2626         Fix for <rdar://problem/8093680> "Paste and Match Style" should fire paste events
2627         https://bugs.webkit.org/show_bug.cgi?id=41085
2628
2629         * WebView/WebHTMLView.mm: (-[WebHTMLView pasteAsPlainText:]): Reuse code in WebCore
2630         which does everything done here and also fires paste events.
2631
2632 2010-06-23  Yuzo Fujishima  <yuzo@google.com>
2633
2634         Reviewed by Shinichiro Hamaji.
2635
2636         Implement page format data programming interface.
2637         Add methods for testing.
2638         https://bugs.webkit.org/show_bug.cgi?id=37538
2639
2640         * Misc/WebCoreStatistics.h:
2641         * Misc/WebCoreStatistics.mm:
2642         (-[WebFrame isPageBoxVisible:]):
2643         (-[WebFrame pageAreaRectInPixels:]):
2644         (-[WebFrame preferredPageSizeInPixels:]):
2645
2646 2010-06-22  Anders Carlsson  <andersca@apple.com>
2647
2648         Reviewed by Sam Weinig.
2649
2650         Get rid of more USE_LIBDISPATCH code.
2651
2652         * Plugins/Hosted/NetscapePluginHostProxy.h:
2653
2654 2010-06-22  Anders Carlsson  <andersca@apple.com>
2655
2656         Reviewed by Sam Weinig.
2657
2658         Get rid of the USE_LIBDISPATCH code.
2659
2660         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2661         (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
2662         (WebKit::NetscapePluginHostProxy::~NetscapePluginHostProxy):
2663
2664 2010-06-22  Anders Carlsson  <andersca@apple.com>
2665
2666         Reviewed by Sam Weinig.
2667
2668         Wean NetscapePluginHostManager of any knowledge about WebNetscapePluginPackage
2669         https://bugs.webkit.org/show_bug.cgi?id=41006
2670
2671         * Plugins/Hosted/NetscapePluginHostManager.h:
2672         * Plugins/Hosted/NetscapePluginHostManager.mm:
2673         (WebKit::NetscapePluginHostManager::hostForPlugin):
2674         (WebKit::NetscapePluginHostManager::spawnPluginHost):
2675         (WebKit::NetscapePluginHostManager::instantiatePlugin):
2676         (WebKit::NetscapePluginHostManager::createPropertyListFile):
2677         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2678         (-[WebHostedNetscapePluginView createPlugin]):
2679         * Plugins/WebNetscapePluginPackage.mm:
2680         (-[WebNetscapePluginPackage createPropertyListFile]):
2681
2682 2010-06-21  Anders Carlsson  <andersca@apple.com>
2683
2684         Reviewed by Sam Weinig.
2685
2686         Fix an off-by-one bug I introduced.
2687
2688         * Plugins/WebNetscapePluginPackage.mm:
2689         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
2690
2691 2010-06-21  Nate Chapin  <japhet@chromium.org>
2692
2693         Reviewed by Adam Barth.
2694
2695         FrameLoader cleanup: Split high level subframe and plugin
2696         loading functions into a separate class.
2697         https://bugs.webkit.org/show_bug.cgi?id=40453
2698
2699         * WebView/WebFrame.mm:
2700         (-[WebFrame _cacheabilityDictionary]):
2701
2702 2010-06-21  Anders Carlsson  <andersca@apple.com>
2703
2704         Another Tiger build fix.
2705
2706         * Plugins/WebNetscapePluginPackage.mm:
2707         (-[WebNetscapePluginPackage _tryLoad]):
2708
2709 2010-06-21  Anders Carlsson  <andersca@apple.com>
2710
2711         Reviewed by Sam Weinig.
2712
2713         More WebBasePluginPackage cleanup
2714         https://bugs.webkit.org/show_bug.cgi?id=40944
2715
2716         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2717         (WebKit::HostedNetscapePluginStream::pluginCancelledConnectionError):
2718         * Plugins/Hosted/NetscapePluginHostManager.mm:
2719         (WebKit::NetscapePluginHostManager::spawnPluginHost):
2720         * Plugins/WebBaseNetscapePluginStream.mm:
2721         (WebNetscapePluginStream::pluginCancelledConnectionError):
2722         * Plugins/WebBaseNetscapePluginView.mm:
2723         (WebHaltablePlugin::pluginName):
2724         * Plugins/WebBasePluginPackage.h:
2725         * Plugins/WebBasePluginPackage.mm:
2726         (-[WebBasePluginPackage initWithPath:]):
2727         (-[WebBasePluginPackage _objectForInfoDictionaryKey:]):
2728         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2729         (-[WebBasePluginPackage load]):
2730         (-[WebBasePluginPackage dealloc]):
2731         (-[WebBasePluginPackage finalize]):
2732         (-[WebBasePluginPackage pluginInfo]):
2733         (-[WebBasePluginPackage supportsExtension:]):
2734         (-[WebBasePluginPackage supportsMIMEType:WebCore::]):
2735         (-[WebBasePluginPackage MIMETypeForExtension:]):
2736         (-[WebBasePluginPackage isJavaPlugIn]):
2737         (-[WebBasePluginPackage versionNumber]):
2738         (-[WebBasePluginPackage WebCore::]):
2739         * Plugins/WebNetscapePluginPackage.mm:
2740         (-[WebNetscapePluginPackage openResourceFile]):
2741         (-[WebNetscapePluginPackage closeResourceFile:]):
2742         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
2743         (-[WebNetscapePluginPackage _initWithPath:]):
2744         (-[WebNetscapePluginPackage _applyDjVuWorkaround]):
2745         (-[WebNetscapePluginPackage _tryLoad]):
2746         (-[WebNetscapePluginPackage supportsSnapshotting]):
2747         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
2748         * Plugins/WebPluginDatabase.mm:
2749         (-[WebPluginDatabase refresh]):
2750         (-[WebPluginDatabase _removePlugin:]):
2751         * Plugins/WebPluginPackage.mm:
2752         (-[WebPluginPackage initWithPath:]):
2753         (-[WebPluginPackage load]):
2754         * WebCoreSupport/WebFrameLoaderClient.mm:
2755         (WebFrameLoaderClient::createPlugin):
2756         * WebCoreSupport/WebPlatformStrategies.mm:
2757         (WebPlatformStrategies::getPluginInfo):
2758
2759 2010-06-21  Anders Carlsson  <andersca@apple.com>
2760
2761         Another PowerPC build fix.
2762
2763         * Plugins/WebNetscapePluginPackage.mm:
2764         (-[WebNetscapePluginPackage openResourceFile]):
2765         (-[WebNetscapePluginPackage _tryLoad]):
2766
2767 2010-06-21  Anders Carlsson  <andersca@apple.com>
2768
2769         Try to fix the PowerPC build.
2770
2771         * Plugins/WebNetscapePluginPackage.mm:
2772         (-[WebNetscapePluginPackage _tryLoad]):
2773
2774 2010-06-21  Nate Chapin  <japhet@chromium.org>
2775
2776         Reviewed by Adam Barth.
2777
2778         Update relevant calls into FrameLoader to make use of 
2779         FrameLoaderStateMachine.
2780         https://bugs.webkit.org/show_bug.cgi?id=39695
2781
2782         * WebCoreSupport/WebFrameLoaderClient.mm:
2783         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2784         * WebView/WebFrame.mm:
2785         (-[WebFrame _firstLayoutDone]):
2786
2787 2010-06-21  Dimitri Glazkov  <dglazkov@chromium.org>
2788
2789         Reviewed by Dan Bernstein.
2790
2791         Chromium/Mac build fix.
2792
2793         * WebCoreSupport/WebSystemInterface.mm: Change the order of wtf/Platform.h include to let other 
2794             headers smell it.
2795
2796 2010-06-21  Anders Carlsson  <andersca@apple.com>
2797
2798         Reviewed by Dan Bernstein.
2799
2800         Make all of WebKit build with clang++
2801
2802         * DefaultDelegates/WebDefaultPolicyDelegate.m:
2803         (-[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]):
2804         * Plugins/Hosted/NetscapePluginHostManager.mm:
2805         * Plugins/WebBaseNetscapePluginView.mm:
2806         (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]):
2807         * WebView/WebDynamicScrollBarsView.mm:
2808         (-[WebDynamicScrollBarsView setSuppressLayout:]):
2809         * WebView/WebHTMLRepresentation.mm:
2810         * WebView/WebNavigationData.mm:
2811         (-[WebNavigationData initWithURLString:title:originalRequest:response:hasSubstituteData:clientRedirectSource:]):
2812         * WebView/WebPDFRepresentation.mm:
2813         (-[WebPDFRepresentation setDataSource:]):
2814         (-[WebPDFRepresentation receivedData:withDataSource:]):
2815         (-[WebPDFRepresentation receivedError:withDataSource:]):
2816         * WebView/WebResource.mm:
2817         (-[WebResource description]):
2818         * WebView/WebSerializedJSValue.mm:
2819         (-[WebSerializedJSValue initWithValue:context:exception:]):
2820         * WebView/WebVideoFullscreenController.mm:
2821         (-[WebVideoFullscreenController WebCore::]):
2822         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
2823         (-[WebVideoFullscreenController setDelegate:]):
2824         (-[WebVideoFullscreenController enterFullscreen:]):
2825         * WebView/WebView.mm:
2826         (-[WebView _openFrameInNewWindowFromMenu:]):
2827         (-[WebView _geolocationDidChangePosition:]):
2828
2829 2010-06-21  Anders Carlsson  <andersca@apple.com>
2830
2831         Reviewed by Sam Weinig.
2832
2833         Remove unused dictionary ivars from WebBasePluginPackage
2834         https://bugs.webkit.org/show_bug.cgi?id=40928
2835
2836         * Plugins/WebBasePluginPackage.h:
2837         * Plugins/WebBasePluginPackage.mm:
2838         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2839         (-[WebBasePluginPackage dealloc]):
2840         * Plugins/WebNetscapePluginPackage.mm:
2841         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
2842
2843 2010-06-21  Dan Bernstein  <mitz@apple.com>
2844
2845         Build fix
2846
2847         * WebCoreSupport/WebSystemInterface.mm:
2848         (InitWebCoreSystemInterface):
2849
2850 2010-06-21  Dan Bernstein  <mitz@apple.com>
2851
2852         Reviewed by Darin Adler.
2853
2854         WebKit part of implementing the 'hyphens' and 'hyphenate-character' properties
2855         https://bugs.webkit.org/show_bug.cgi?id=10228
2856
2857         * WebCoreSupport/WebSystemInterface.mm:
2858         (InitWebCoreSystemInterface): Initialize wkGetHyphenationLocationBeforeIndex.
2859
2860 2010-06-21  Satish Sampath  <satish@chromium.org>
2861
2862         Reviewed by Steve Block.
2863
2864         Speech Input Patch 0: Added compilation argument to conditionally compile pending patches.
2865         https://bugs.webkit.org/show_bug.cgi?id=40878
2866
2867         * Configurations/FeatureDefines.xcconfig:
2868
2869 2010-06-20  Anders Carlsson  <andersca@apple.com>
2870
2871         Fix Tiger build.
2872
2873         * Plugins/WebNetscapePluginPackage.mm:
2874
2875 2010-06-20  Anders Carlsson  <andersca@apple.com>
2876
2877         Reviewed by Dan Bernstein.
2878
2879         Get rid of the old MIMETypes getter method
2880         https://bugs.webkit.org/show_bug.cgi?id=40898
2881
2882         * Plugins/WebBasePluginPackage.h:
2883         * Plugins/WebBasePluginPackage.mm:
2884         (-[WebBasePluginPackage supportsExtension:]):
2885         (-[WebBasePluginPackage supportsMIMEType:WebCore::]):
2886         (-[WebBasePluginPackage MIMETypeForExtension:]):
2887         * Plugins/WebPluginDatabase.mm:
2888         (-[WebPluginDatabase refresh]):
2889         (-[WebPluginDatabase _removePlugin:]):
2890
2891 2010-06-20  Anders Carlsson  <andersca@apple.com>
2892
2893         Reviewed by Dan Bernstein.
2894
2895         Remove bogus const qualifiers.
2896
2897         * WebCoreSupport/WebPasteboardHelper.h:
2898         * WebCoreSupport/WebPasteboardHelper.mm:
2899         (WebPasteboardHelper::urlFromPasteboard):
2900         (WebPasteboardHelper::plainTextFromPasteboard):
2901         (WebPasteboardHelper::fragmentFromPasteboard):
2902
2903 2010-06-20  Anders Carlsson  <andersca@apple.com>
2904
2905         Reviewed by Dan Bernstein.
2906
2907         Get rid of the extensionToMIME mapping in WebBasePluginPackage
2908         https://bugs.webkit.org/show_bug.cgi?id=40897
2909
2910         Instead of using the extensionToMIME mutable dictionary, use the MIME types vector.
2911         While this makes lookup of MIME types based on extensions linear instead of constant,
2912         the number of extensions per plug-in is too small for it to matter.
2913
2914         * Plugins/WebBasePluginPackage.h:
2915         * Plugins/WebBasePluginPackage.mm:
2916         (-[WebBasePluginPackage initWithPath:]):
2917         (-[WebBasePluginPackage dealloc]):
2918         (-[WebBasePluginPackage supportsExtension:]):
2919         (-[WebBasePluginPackage MIMETypeForExtension:]):
2920         (-[WebBasePluginPackage setMIMEToExtensionsDictionary:]):
2921
2922 2010-06-20  Anders Carlsson  <andersca@apple.com>
2923
2924         Reviewed by Dan Bernstein.
2925
2926         Add a MimeClassInfo Vector to WebBasePluginPackage
2927         https://bugs.webkit.org/show_bug.cgi?id=40896
2928
2929         * Plugins/WebBasePluginPackage.h:
2930         * Plugins/WebBasePluginPackage.mm:
2931         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2932         (-[WebBasePluginPackage WebCore::]):
2933         * Plugins/WebNetscapePluginPackage.mm:
2934         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
2935         * WebCoreSupport/WebPlatformStrategies.mm:
2936         (WebPlatformStrategies::getPluginInfo):
2937
2938 2010-06-20  Anders Carlsson  <andersca@apple.com>
2939
2940         Reviewed by Dan Bernstein.
2941
2942         Move the NSBundle ivar to WebPluginPackage
2943         https://bugs.webkit.org/show_bug.cgi?id=40894
2944
2945         * Plugins/WebBasePluginPackage.h:
2946         * Plugins/WebBasePluginPackage.mm:
2947         (-[WebBasePluginPackage initWithPath:]):
2948         (-[WebBasePluginPackage _objectForInfoDictionaryKey:]):
2949         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2950         (-[WebBasePluginPackage load]):
2951         (-[WebBasePluginPackage dealloc]):
2952         * Plugins/WebNetscapePluginPackage.mm:
2953         (-[WebNetscapePluginPackage _initWithPath:]):
2954         * Plugins/WebPluginPackage.h:
2955         * Plugins/WebPluginPackage.mm:
2956         (-[WebPluginPackage initWithPath:]):
2957         (-[WebPluginPackage dealloc]):
2958         (-[WebPluginPackage viewFactory]):
2959         (-[WebPluginPackage load]):
2960
2961 2010-06-20  Anders Carlsson  <andersca@apple.com>
2962
2963         Reviewed by Sam Weinig.
2964
2965         Remove -[WebBasePluginPackage bundle]
2966         https://bugs.webkit.org/show_bug.cgi?id=40892
2967
2968         Add -[WebBasePluginPackage bundleIdentifier] and switch clients over to it.
2969         
2970         Move the supportsSnapshotting method over to the plug-in package.
2971         
2972         * Plugins/Hosted/NetscapePluginHostManager.mm:
2973         (WebKit::NetscapePluginHostManager::hostForPackage):
2974         * Plugins/WebBaseNetscapePluginView.mm:
2975         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
2976         (-[WebBaseNetscapePluginView supportsSnapshotting]):
2977         * Plugins/WebBasePluginPackage.h:
2978         * Plugins/WebBasePluginPackage.mm:
2979         (-[WebBasePluginPackage isQuickTimePlugIn]):
2980         (-[WebBasePluginPackage isJavaPlugIn]):
2981         (-[WebBasePluginPackage WebCore::]):
2982         Call bundleIdentifier directly instead of asking the bundle 
2983         * Plugins/WebNetscapePluginPackage.h:
2984         * Plugins/WebNetscapePluginPackage.mm:
2985         (-[WebNetscapePluginPackage supportsSnapshotting]):
2986         * Plugins/WebNetscapePluginView.mm:
2987         (-[WebNetscapePluginView setAttributeKeys:andValues:]):
2988         (-[WebNetscapePluginView _createPlugin]):
2989         * Plugins/WebPluginDatabase.mm:
2990         (checkCandidate):
2991
2992 2010-06-20  Anders Carlsson  <andersca@apple.com>
2993
2994         Reviewed by Dan Bernstein.
2995
2996         Change some WebPluginDabase ivars to use WebCore::String instead of NSString.
2997         https://bugs.webkit.org/show_bug.cgi?id=40869
2998         
2999         Re-land r61459, with extra null-checks in WebFrameLoaderClient.
3000
3001         * Plugins/Hosted/NetscapePluginHostManager.mm:
3002         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3003         * Plugins/WebBasePluginPackage.h:
3004         * Plugins/WebBasePluginPackage.mm:
3005         (-[WebBasePluginPackage initWithPath:]):
3006         (-[WebBasePluginPackage getPluginInfoFromPLists]):
3007         (-[WebBasePluginPackage dealloc]):
3008         (-[WebBasePluginPackage name]):
3009         (-[WebBasePluginPackage path]):
3010         (-[WebBasePluginPackage filename]):
3011         (-[WebBasePluginPackage pluginDescription]):
3012         (-[WebBasePluginPackage description]):
3013         (-[WebBasePluginPackage isJavaPlugIn]):
3014         * Plugins/WebNetscapePluginPackage.mm:
3015         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
3016         (-[WebNetscapePluginPackage _tryLoad]):
3017         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
3018         * Plugins/WebPluginPackage.mm:
3019         (-[WebPluginPackage load]):
3020         * WebCoreSupport/WebFrameLoaderClient.mm:
3021         (WebFrameLoaderClient::createPlugin):
3022
3023 2010-06-18  Adam Barth  <abarth@webkit.org>
3024
3025         Unreviewed, rolling out r61459.
3026         http://trac.webkit.org/changeset/61459
3027         https://bugs.webkit.org/show_bug.cgi?id=40869
3028
3029         Seems to have broken two tests on the Tiger buildbot:
3030
3031         dom/html/level2/html/AppletsCollection.html
3032         plugins/qt-qwidget-plugin.html
3033
3034         Anders wasn't on #webkit...
3035
3036         * Plugins/Hosted/NetscapePluginHostManager.mm:
3037         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3038         * Plugins/WebBasePluginPackage.h:
3039         * Plugins/WebBasePluginPackage.mm:
3040         (-[WebBasePluginPackage initWithPath:]):
3041         (-[WebBasePluginPackage getPluginInfoFromPLists]):
3042         (-[WebBasePluginPackage dealloc]):
3043         (-[WebBasePluginPackage name]):
3044         (-[WebBasePluginPackage path]):
3045         (-[WebBasePluginPackage filename]):
3046         (-[WebBasePluginPackage pluginDescription]):
3047         (-[WebBasePluginPackage setName:]):
3048         (-[WebBasePluginPackage setPath:]):
3049         (-[WebBasePluginPackage setPluginDescription:]):
3050         (-[WebBasePluginPackage description]):
3051         (-[WebBasePluginPackage isJavaPlugIn]):
3052         * Plugins/WebNetscapePluginPackage.mm:
3053         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
3054         (-[WebNetscapePluginPackage _tryLoad]):
3055         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
3056         * Plugins/WebPluginPackage.mm:
3057         (-[WebPluginPackage load]):
3058
3059 2010-06-18  Anders Carlsson  <andersca@apple.com>
3060
3061         Fix Tiger build.
3062
3063         * Plugins/WebBasePluginPackage.mm:
3064         (-[WebBasePluginPackage isJavaPlugIn]):
3065
3066 2010-06-18  Anders Carlsson  <andersca@apple.com>
3067
3068         Reviewed by Sam Weinig.
3069
3070         Change some WebPluginDabase ivars to use WebCore::String instead of NSString.
3071         https://bugs.webkit.org/show_bug.cgi?id=40869
3072
3073         * Plugins/Hosted/NetscapePluginHostManager.mm:
3074         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3075         * Plugins/WebBasePluginPackage.h:
3076         * Plugins/WebBasePluginPackage.mm:
3077         (-[WebBasePluginPackage initWithPath:]):
3078         (-[WebBasePluginPackage getPluginInfoFromPLists]):
3079         (-[WebBasePluginPackage dealloc]):
3080         (-[WebBasePluginPackage name]):
3081         (-[WebBasePluginPackage path]):
3082         (-[WebBasePluginPackage filename]):
3083         (-[WebBasePluginPackage pluginDescription]):
3084         (-[WebBasePluginPackage description]):
3085         (-[WebBasePluginPackage isJavaPlugIn]):
3086         * Plugins/WebNetscapePluginPackage.mm:
3087         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
3088         (-[WebNetscapePluginPackage _tryLoad]):
3089         (-[WebNetscapePluginPackage _unloadWithShutdown:]):
3090         * Plugins/WebPluginPackage.mm:
3091         (-[WebPluginPackage load]):
3092
3093 2010-06-18  Anders Carlsson  <andersca@apple.com>
3094
3095         Reviewed by Sam Weinig.
3096
3097         Rename WebPluginPackage.m to make it an Objective-C++ file.
3098         
3099         * Plugins/WebPluginPackage.m: Removed.
3100         * Plugins/WebPluginPackage.mm: Copied from Plugins/WebPluginPackage.m.
3101
3102 2010-06-18  Anders Carlsson  <andersca@apple.com>
3103
3104         Reviewed by Sam Weinig.
3105
3106         Get rid of the NSEnumerators from WebBasePluginPackage
3107         https://bugs.webkit.org/show_bug.cgi?id=40868
3108
3109         * Plugins/WebBasePluginPackage.h:
3110         * Plugins/WebBasePluginPackage.mm:
3111         (-[WebBasePluginPackage MIMETypes]):
3112         (-[WebBasePluginPackage supportsExtension:]):
3113         (-[WebBasePluginPackage supportsMIMEType:]):
3114         * Plugins/WebPluginDatabase.mm:
3115         (-[WebPluginDatabase pluginForMIMEType:]):
3116         (-[WebPluginDatabase pluginForExtension:]):
3117         (-[WebPluginDatabase refresh]):
3118         (-[WebPluginDatabase _removePlugin:]):
3119         * WebCoreSupport/WebPlatformStrategies.mm:
3120         (WebPlatformStrategies::getPluginInfo):
3121
3122 2010-06-18  Anders Carlsson  <andersca@apple.com>
3123
3124         Reviewed by Sam Weinig.
3125
3126         Make WebCoreSystemInterface.h a C++ only header
3127         https://bugs.webkit.org/show_bug.cgi?id=40867
3128
3129         * WebCoreSupport/WebSystemInterface.h:
3130         * WebCoreSupport/WebSystemInterface.m: Removed.
3131         * WebCoreSupport/WebSystemInterface.mm: Copied from WebKit/mac/WebCoreSupport/WebSystemInterface.m.
3132
3133 2010-06-18  Anders Carlsson  <andersca@apple.com>
3134
3135         Reviewed by Sam Weinig.
3136
3137         Clean up WebPluginDatabase.mm
3138         https://bugs.webkit.org/show_bug.cgi?id=40866
3139
3140         * Plugins/WebBasePluginPackage.h:
3141         * Plugins/WebBasePluginPackage.mm:
3142         (pathByResolvingSymlinksAndAliases):
3143         (-[WebBasePluginPackage initWithPath:]):
3144         Change an instance method into a static function.
3145         
3146         * Plugins/WebPluginDatabase.mm:
3147         (PluginPackageCandidates::PluginPackageCandidates):
3148         (PluginPackageCandidates::update):
3149         (PluginPackageCandidates::bestCandidate):
3150         Add a new PluginPackageCandidates class.
3151         
3152         (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]):
3153         Use PluginPackageCandidates here.
3154
3155 2010-06-18  Anders Carlsson  <andersca@apple.com>
3156
3157         Fix Tiger build.
3158         
3159         * WebCoreSupport/WebPlatformStrategies.mm:
3160
3161 2010-06-18  Anders Carlsson  <andersca@apple.com>
3162
3163         Reviewed by Darin Adler.
3164
3165         Get rid of PluginDataMac.mm and use the plug-in strategy instead
3166         https://bugs.webkit.org/show_bug.cgi?id=40860
3167
3168         * Plugins/WebBasePluginPackage.h:
3169         * WebCoreSupport/WebPlatformStrategies.h:
3170         * WebCoreSupport/WebPlatformStrategies.mm:
3171         (WebPlatformStrategies::createPluginStrategy):
3172         (WebPlatformStrategies::refreshPlugins):
3173         (WebPlatformStrategies::getPluginInfo):
3174         * WebCoreSupport/WebViewFactory.mm:
3175
3176 2010-06-18  Anders Carlsson  <andersca@apple.com>
3177
3178         Reviewed by Dan Bernstein.
3179
3180         Add stubbed out WebPlatformStrategies class to WebKit.
3181         https://bugs.webkit.org/show_bug.cgi?id=40851
3182
3183         * WebCoreSupport/WebPlatformStrategies.h: Added.
3184         * WebCoreSupport/WebPlatformStrategies.mm: Added.
3185         (WebPlatformStrategies::initialize):
3186         (WebPlatformStrategies::WebPlatformStrategies):
3187         (WebPlatformStrategies::createPluginStrategy):
3188         * WebView/WebView.mm:
3189         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3190
3191 2010-06-15  Dumitru Daniliuc  <dumi@chromium.org>
3192
3193         Reviewed by Adam Barth.
3194
3195         Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase.
3196         https://bugs.webkit.org/show_bug.cgi?id=39041
3197
3198         * WebView/WebView.mm:
3199         (-[WebView _preferencesChangedNotification:]):
3200
3201 2010-06-17  Darin Adler  <darin@apple.com>
3202
3203         Reviewed by Sam Weinig.
3204
3205         Use adoptRef and create functions in more code paths
3206         https://bugs.webkit.org/show_bug.cgi?id=40760
3207
3208         * Plugins/Hosted/NetscapePluginInstanceProxy.h: Made create no longer
3209         be an inline function.
3210
3211         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3212         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
3213         Moved the call to addPluginInstance out of here.
3214         (WebKit::NetscapePluginInstanceProxy::create): Move it in here.
3215         This makes sure we call adoptRef on the new proxy before any caller
3216         calls ref on it.
3217
3218 2010-06-16  Eric Seidel  <eric@webkit.org>
3219
3220         Reviewed by Adam Barth.
3221
3222         Enable HTML5 Parser in Safari on Mac
3223         https://bugs.webkit.org/show_bug.cgi?id=40739
3224
3225         The HTML5 parser is probably off on all webkit ports.
3226         We should either flip the meaning of the default so that
3227         "false" means HTML5 on all ports, or we'll have to write
3228         more code like this for all the other ports.
3229
3230         * WebView/WebPreferences.mm:
3231         (+[WebPreferences initialize]):
3232
3233 2010-06-15  Mark Rowe  <mrowe@apple.com>
3234
3235         Reviewed by Sam Weinig.
3236
3237         Don't leak WebGeolocationPositionInternal and GeolocationPosition instances for every WebGeolocationPosition created.
3238
3239         * WebView/WebGeolocationPosition.mm:
3240         (-[WebGeolocationPosition dealloc]): Implement -dealloc and release our WebGeolocationPositionInternal instance.
3241
3242 2010-06-10  Yuzo Fujishima  <yuzo@google.com>
3243
3244         Reviewed by Shinichiro Hamaji.
3245
3246         Implement render style selection for pages to support CSS3 Paged Media.
3247         https://bugs.webkit.org/show_bug.cgi?id=35961
3248
3249         * Misc/WebCoreStatistics.h:
3250         * Misc/WebCoreStatistics.mm:
3251         (-[WebFrame pageProperty:propertyName:]):
3252
3253 2010-06-15  Darin Adler  <darin@apple.com>
3254
3255         Reviewed by Adam Barth.
3256
3257         Move functions out of Frame class that were marked "move to Chrome"
3258         https://bugs.webkit.org/show_bug.cgi?id=39636
3259
3260         * WebView/WebView.mm:
3261         (-[WebView shouldClose]): Call shouldClose on FrameLoader instead of
3262         going through Frame.
3263
3264 2010-06-15  Anders Carlsson  <andersca@apple.com>
3265
3266         Reviewed by Dan Bernstein.
3267
3268         Remove getPluginInfoFromBundleAndMIMEDictionary:
3269
3270         * Plugins/WebBasePluginPackage.mm:
3271
3272 2010-06-15  Anders Carlsson  <andersca@apple.com>
3273
3274         Reviewed by Dan Bernstein.
3275
3276         Fold getPluginInfoFromBundleAndMIMEDictionary: into its sole caller.
3277
3278         * Plugins/WebBasePluginPackage.mm:
3279         (-[WebBasePluginPackage getPluginInfoFromPLists]):
3280
3281 2010-06-11  Simon Fraser  <simon.fraser@apple.com>
3282
3283         Reviewed by Darin Adler.
3284
3285         <rdar://problem/8084721> Pages using accelerated compositing fail to update correctly in Carbon apps
3286         
3287         The run loop observer used to commit compositing layer changes does not do
3288         updates if [window viewsNeedDisplay] is true, because this indicates that a delayed window
3289         update is pending (added in r58623).
3290         
3291         However, Carbon apps don't use the NSWindow updating mechanism, so [window viewsNeedDisplay] always returns YES.
3292         This caused us to never sync compositing layers.
3293         
3294         So detect if the current window is wrapping a carbon window, and in that case consult the root
3295         HIView to detect if display is pending.
3296
3297         * WebView/WebView.mm:
3298         (layerSyncRunLoopObserverCallBack):
3299
3300 2010-06-15  Dan Bernstein  <mitz@apple.com>
3301
3302         Reviewed by John Sullivan.
3303
3304         <rdar://problem/8077032> REGRESSION (r50796): Black background on AppleScript generated email
3305
3306         Test: platform/mac/editing/input/NSBackgroundColor-transparent.html
3307
3308         r50796 changed the initial background color from invalid to transparent. As a result,
3309         NSAttributedStrings returned from +_web_attributedStringFromRange started including the
3310         NSBackgroundColor attribute, with a transparent color as the value. This caused problems for
3311         components in the system that ignore the alpha component, turning the color into opaque black.
3312
3313         * Misc/WebNSAttributedStringExtras.mm:
3314         (+[NSAttributedString _web_attributedStringFromRange:]): Change to not include the background
3315         and foreground color attributes if the color are transparent.
3316
3317 2010-06-14  Ilya Tikhonovsky  <loislo@chromium.org>
3318
3319         Reviewed by Pavel Feldman.
3320
3321         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
3322         data from inspected page to WebInspector as JSON string via http. The native
3323         serialization to JSON string is supported by InspectorValue's classes. This patch
3324         has the implementation of sendMessageToFrontend function. WebKit version of it still
3325         uses ScriptFunctionCall and will be switched to another transport a little bit later.
3326         https://bugs.webkit.org/show_bug.cgi?id=40134
3327
3328         * WebCoreSupport/WebInspectorClient.h:
3329         * WebCoreSupport/WebInspectorClient.mm:
3330         (WebInspectorClient::WebInspectorClient):
3331         (WebInspectorClient::openInspectorFrontend):
3332
3333 2010-06-10  David Hyatt  <hyatt@apple.com>
3334
3335         Reviewed by John Sullivan.
3336
3337         https://bugs.webkit.org/show_bug.cgi?id=40441, back out the original fix for 29601, since it has broken continuous
3338         wheel delta values.
3339
3340         * WebView/WebDynamicScrollBarsView.mm:
3341         (-[WebDynamicScrollBarsView scrollWheel:]):
3342
3343 2010-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3344
3345         Unreviewed, rolling out r60889.
3346         http://trac.webkit.org/changeset/60889
3347         https://bugs.webkit.org/show_bug.cgi?id=40365
3348
3349         gtk bot has some kind of memory corruption (Requested by
3350         loislo on #webkit).
3351
3352         * WebCoreSupport/WebInspectorClient.h:
3353         * WebCoreSupport/WebInspectorClient.mm:
3354         (WebInspectorClient::WebInspectorClient):
3355         (WebInspectorClient::openInspectorFrontend):
3356         (-[WebInspectorWindowController destroyInspectorView]):
3357
3358 2010-06-07  Ilya Tikhonovsky  <loislo@chromium.org>
3359
3360         Reviewed by Pavel Feldman.
3361
3362         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
3363         data from inspected page to WebInspector as JSON string via http. The native
3364         serialization to JSON string is supported by InspectorValue's classes. This patch
3365         has the implementation of sendMessageToFrontend function. WebKit version of it still
3366         uses ScriptFunctionCall and will be switched to another transport a little bit later.
3367         https://bugs.webkit.org/show_bug.cgi?id=40134
3368
3369         * WebCoreSupport/WebInspectorClient.h:
3370         * WebCoreSupport/WebInspectorClient.mm:
3371         (WebInspectorClient::WebInspectorClient):
3372         (WebInspectorClient::openInspectorFrontend):
3373
3374 2010-06-08  Mark Rowe  <mrowe@apple.com>
3375
3376         Reviewed by Adele Peterson.
3377
3378         <rdar://problem/8072136> REGRESSION (r56051): Inspect Element context menu does nothing in applications linked against 10.4 SDK
3379
3380         * WebCoreSupport/WebContextMenuClient.mm:
3381         (fixMenusReceivedFromOldClients): Fix up the tag on the Inspect Element menu item. This ensures that even if the
3382         context menu layout doesn't match our expectations that the menu item will continue to trigger the web inspector.
3383
3384 2010-06-08  Antonio Gomes  <tonikitoo@webkit.org>
3385
3386         Reviewed by Ojan Vafai and Darin Adler.
3387
3388         Refactor platform dependent editing behavior code out of Settings
3389         https://bugs.webkit.org/show_bug.cgi?id=39854
3390
3391         EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
3392         EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
3393
3394         * WebView/WebFrame.mm:
3395         (core):
3396         * WebView/WebFrameInternal.h:
3397         * WebView/WebView.mm:
3398         (-[WebView _preferencesChangedNotification:]):
3399
3400 2010-06-06  MORITA Hajime  <morrita@google.com>
3401
3402         Unreviewd, follow up to r60820
3403
3404         https://bugs.webkit.org/show_bug.cgi?id=40219
3405         [Mac] ENABLE_METER_TAG should be enabled
3406         
3407         Added ENABLE_METER_TAG.
3408
3409         * Configurations/FeatureDefines.xcconfig:
3410
3411 2010-06-06  Gavin Barraclough  <barraclough@apple.com>
3412
3413         Reviewed by Sam Weinig.
3414
3415         Bug 40214 - Clean up error construction / throwing in JSC.
3416         
3417         The one egregious insanity here is that creating an error requires
3418         a VM-entry-esqe-host call (the string argument is wrapped as a JS
3419         object & pushed on the RegisterFile, then unwrapped back to a
3420         UString).  Changing this also means you only require a global
3421         object, not an ExecState, to create an error.
3422
3423         The methods to create error objects are also parameterized
3424         requiring a switch on the type, which can be made cleaner and
3425         faster by moving to a separate method per error type.  Code to add
3426         divot information to error had been duplicated, and is coalesced
3427         back into a single function.
3428
3429         Convenience methods added to create & throw type & syntax error
3430         with a default error message, since this is a common case.
3431
3432         Also, errors are currently thrown either using
3433         "throwError(exec, error)" or "exec->setException(error)" - unify
3434         on the former, since this is more commonly used.  Add
3435         "throwVMError(exec, error)" equivalents, as a convenience for
3436         cases where the result was being wrapped in "JSValue::encode(...)".
3437
3438         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3439         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
3440         * Plugins/Hosted/ProxyInstance.mm:
3441         (WebKit::ProxyInstance::invokeMethod):
3442
3443 2010-06-02  Gavin Barraclough  <barraclough@apple.com>
3444
3445         Reviewed by Oliver Hunt.
3446
3447         Bug 40094 - The return type of NativeFunction should be EncodedJSValue
3448         On Windows & Linux, using JSVALUE32_64, EncodedJSValue is returned in registers, but JSValue is not.
3449
3450         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3451         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3452         (WebKit::NetscapePluginInstanceProxy::invoke):
3453
3454 2010-06-02  Sterling Swigart  <sswigart@google.com>
3455
3456         Reviewed by David Levin.
3457
3458         Image Resizer Patch 0: Added compilation argument to conditionally compile pending patches.
3459         https://bugs.webkit.org/show_bug.cgi?id=39906
3460
3461         * Configurations/FeatureDefines.xcconfig:
3462
3463 2010-06-01  David Hyatt  <hyatt@apple.com>
3464
3465         Reviewed by Anders Carlsson.
3466
3467         Add a preference for paginating during layout (the new model for computing page breaks).
3468
3469         * WebView/WebPreferenceKeysPrivate.h:
3470         * WebView/WebPreferences.mm:
3471         (-[WebPreferences paginateDuringLayoutEnabled]):
3472         (-[WebPreferences setPaginateDuringLayoutEnabled:]):
3473         * WebView/WebPreferencesPrivate.h:
3474         * WebView/WebView.mm:
3475         (-[WebView _preferencesChangedNotification:]):
3476
3477 2010-06-01  Kevin Decker  <kdecker@apple.com>
3478
3479         Reviewed by Simon Fraser.
3480
3481         https://bugs.webkit.org/show_bug.cgi?id=40025
3482         <rdar://problem/8046273> All Flash content crashes after installing CS5 Design Premium.
3483         
3484         * Plugins/WebBaseNetscapePluginView.mm:
3485         (-[WebBaseNetscapePluginView supportsSnapshotting]): Do not support snapshotting Flash 10.1 if
3486         the version is less than 10.1.53.60.
3487
3488 2010-06-01  Alexey Proskuryakov  <ap@apple.com>
3489
3490         Reviewed by Sam Weinig.
3491
3492         https://bugs.webkit.org/show_bug.cgi?id=39434
3493         REGRESSION (r59811): Geolocation callbacks cannot be created
3494
3495         Removing unused WebGeolocationMock.
3496
3497         * WebCoreSupport/WebGeolocationMock.mm: Removed.
3498         * WebCoreSupport/WebGeolocationMockPrivate.h: Removed.
3499         * WebKit.exp:
3500
3501 2010-05-30  Darin Adler  <darin@apple.com>
3502
3503         Reviewed by Sam Weinig.
3504
3505         Make more HTML DOM members private, especially constructors, third and final batch
3506         https://bugs.webkit.org/show_bug.cgi?id=39916
3507
3508         * WebView/WebHTMLRepresentation.mm:
3509         (-[WebHTMLRepresentation elementWithName:inForm:]): Use the new HTMLFormElement
3510         function, associatedElements, rather than getting directly at a data member
3511         named formElements.
3512         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
3513
3514 2010-05-28  Geoffrey Garen  <ggaren@apple.com>
3515
3516         Reviewed by Sam Weinig, Gavin Barraclough, Oliver Hunt.
3517
3518         Simplified the host calling convention.
3519
3520         PART ONE: Functional code changes.
3521         
3522         [ None in WebKit ]
3523         
3524         PART TWO: Global search and replace.
3525         
3526         In the areas below, I used global search-and-replace to change
3527             (ExecState*, JSObject*, JSValue, const ArgList&) => (ExecState*)
3528             args.size() => exec->argumentCount()
3529             args.at(i) => exec->argument(i)
3530
3531         * Plugins/Hosted/ProxyInstance.h:
3532         * Plugins/Hosted/ProxyInstance.mm:
3533         (WebKit::ProxyInstance::invoke):
3534         (WebKit::ProxyInstance::invokeMethod):
3535         (WebKit::ProxyInstance::invokeDefaultMethod):
3536
3537 2010-05-27  Beth Dakin  <bdakin@apple.com>
3538
3539         Reviewed by Simon Fraser.
3540
3541         Change z-component to 1.
3542
3543         * WebView/WebHTMLView.mm:
3544         (-[WebHTMLView viewDidMoveToWindow]):
3545         (-[WebHTMLView attachRootLayer:]):
3546
3547 2010-05-26  Simon Fraser  <simon.fraser@apple.com>
3548
3549         Reviewed by Beth Dakin and Darin Adler.
3550
3551         Fix for <rdar://problem/7464703> HiDPI: [Layers] Compositing layers 
3552         do not scale properly when running with a resolution independent 
3553         scale
3554
3555         Apply the userSpaceScaleFactor as a scale on the layerHostingView.
3556
3557         * WebView/WebHTMLView.mm:
3558         (-[WebHTMLView viewDidMoveToWindow]):
3559         (-[WebHTMLView attachRootLayer:]):
3560
3561 2010-05-25  Alexey Proskuryakov  <ap@apple.com>
3562
3563         Reviewed by Darin Adler.
3564
3565         https://bugs.webkit.org/show_bug.cgi?id=39621
3566         <rdar://problem/8009738> Extreme memory growth on DOM Hanoi test
3567
3568         Removed formStateDidChange support, which is not needed by any client.
3569
3570         * WebCoreSupport/WebChromeClient.h:
3571         (WebChromeClient::formStateDidChange):
3572         * WebCoreSupport/WebChromeClient.mm:
3573         * WebView/WebUIDelegatePrivate.h:
3574
3575 2010-05-25  Brady Eidson  <beidson@apple.com>
3576
3577         Reviewed by Darin Adler.
3578
3579         Database origins aren't populated at launch (missing db in prefs sheet, possible other symptoms)
3580         <rdar://problem/8013233> and https://bugs.webkit.org/show_bug.cgi?id=39486
3581
3582         * Storage/WebDatabaseManager.mm:
3583         (WebKitInitializeDatabasesIfNecessary): Call initializeTracker() instead of trying to set the path on
3584           an already created tracker that already has its origins populated.
3585
3586 2010-05-24  Darin Adler  <darin@apple.com>
3587
3588         Reviewed by Eric Seidel.
3589
3590         Move view-related functions from Frame to FrameView
3591         https://bugs.webkit.org/show_bug.cgi?id=39366
3592
3593         * WebView/WebView.mm:
3594         (-[WebView _setZoomMultiplier:isTextOnly:]): Call function on FrameView.
3595         (-[WebView setEditable:]): Get rid of call to empty function,
3596         removeEditingStyleFromBodyElement.
3597
3598 2010-05-21  David Hyatt  <hyatt@apple.com>
3599
3600         Reviewed by Dan Bernstein.
3601
3602         https://bugs.webkit.org/show_bug.cgi?id=39420
3603
3604         Make sure everyone who needs to is using visitedDependentColor rather than accessing styles
3605         directly.
3606
3607         * Misc/WebNSAttributedStringExtras.mm:
3608         (+[NSAttributedString _web_attributedStringFromRange:]):
3609         * WebView/WebFrame.mm:
3610         (-[WebFrame _bodyBackgroundColor]):
3611
3612 2010-05-21  Oliver Hunt  <oliver@apple.com>
3613
3614         Reviewed by Geoffrey Garen.
3615
3616         All callable objects should have a global object reference
3617         https://bugs.webkit.org/show_bug.cgi?id=39495
3618
3619         Update the plugin proxy to handle the need for global object.
3620
3621         * Plugins/Hosted/ProxyInstance.mm:
3622         (WebKit::ProxyInstance::newRuntimeObject):
3623         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
3624         (WebKit::ProxyInstance::getMethod):
3625         * Plugins/Hosted/ProxyRuntimeObject.h:
3626         * Plugins/Hosted/ProxyRuntimeObject.mm:
3627         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3628
3629 2010-05-21  Steve Block  <steveblock@google.com>
3630
3631         Reviewed by Jeremy Orlow.
3632
3633         Add DeviceOrientation and DeviceOrientationClient
3634         https://bugs.webkit.org/show_bug.cgi?id=39479
3635
3636         * WebView/WebView.mm:
3637         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3638
3639 2010-05-20  Mike Thole  <mthole@apple.com>
3640
3641         Reviewed by Dave Hyatt.
3642
3643         When using a scale factor > 1, scrollbars sometimes appear when not necessary
3644         https://bugs.webkit.org/show_bug.cgi?id=39458
3645
3646         * WebView/WebDynamicScrollBarsView.mm:
3647         (-[WebDynamicScrollBarsView updateScrollers]): Round up non-integral sizes from AppKit
3648         so that they can be compared against the integral document size.
3649
3650 2010-05-20  Kevin Decker  <kdecker@apple.com>
3651
3652         Reviewed by Anders Carlsson.
3653
3654         https://bugs.webkit.org/show_bug.cgi?id=39441
3655         <rdar://problem/7985715> Flash context menu is both horizontally and vertically offset from point of click
3656         <rdar://problem/7986109> Youtube video controller UI entirely missing
3657         <rdar://problem/7986154> Flash content paints at horizontally and vertically shifted locations (within the plug-in region)
3658
3659         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3660         (-[WebHostedNetscapePluginView updateAndSetWindow]): The base coordinates of a window and
3661          it's contentView happen to be the equal at a userSpaceScaleFactor of 1. For non-1.0 scale
3662          factors this assumption is false. Accordingly we now convert to the window contentView
3663         coordinate system when computing bounds in "window" and the visible rect.
3664         * Plugins/WebNetscapePluginView.mm:
3665         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]): Ditto.
3666
3667 2010-05-20  Steve Block  <steveblock@google.com>
3668
3669         Reviewed by Jeremy Orlow.
3670
3671         Provide bindings for DeviceOrientation
3672         https://bugs.webkit.org/show_bug.cgi?id=39210
3673
3674         Adds ENABLE_DEVICE_ORIENTATION to XCode project file, always disabled.
3675
3676         * Configurations/FeatureDefines.xcconfig:
3677
3678 2010-05-20  Martin Robinson  <mrobinson@webkit.org>
3679
3680         Reviewed by Ojan Vafai.
3681
3682         Expose the editing behavior setting in DRT to test all editing code paths
3683         https://bugs.webkit.org/show_bug.cgi?id=38603
3684
3685         * WebView/WebFrame.mm:
3686         (core):
3687         * WebView/WebFrameInternal.h: Added a conversion method from the API enum to the WebCore enum.
3688         * WebView/WebPreferenceKeysPrivate.h: Added a preference key for the new setting.
3689         * WebView/WebPreferences.mm:
3690         (+[WebPreferences initialize]): Initialize the EditingBehavior to Mac style.
3691         (-[WebPreferences editingBehavior]): Added.
3692         (-[WebPreferences setEditingBehavior:]): Added.
3693         * WebView/WebPreferencesPrivate.h: Added the new API points to the private API.
3694         * WebView/WebView.mm:
3695         (-[WebView _preferencesChangedNotification:]): Set the editing behavior via the WebPreferences setting.
3696
3697 2010-05-19  Anders Carlsson  <andersca@apple.com>
3698
3699         Reviewed by Kevin Decker and Simon Fraser.
3700
3701         <rdar://problem/8004528> 
3702         REGRESSION: Coordinate system for Core Animation NPAPI plug-ins is flipped with accelerated compositing turned on
3703         
3704         When needed, create a new CALayer and set it's geometry to be flipped. Add the plug-in layer as a sublayer and then return
3705         the newly created layer.
3706
3707         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3708         (-[WebHostedNetscapePluginView createPlugin]):
3709         * Plugins/WebNetscapePluginView.mm:
3710         (-[WebNetscapePluginView createPlugin]):
3711
3712 2010-05-18  Tony Chang  <tony@chromium.org>
3713
3714         Reviewed by Darin Adler.
3715
3716         https://bugs.webkit.org/show_bug.cgi?id=24943
3717         Command-B and Command-I do not generate keydown events in contentEditable regions.
3718
3719         Manual test because performKeyEquivalent is not called by DRT.
3720
3721         Test: manual-tests/style-keypress-events.html
3722
3723         * WebView/WebHTMLView.mm:
3724         (-[WebHTMLView performKeyEquivalent:]): Move style key handling until after webcore gets a chance to handle the event
3725
3726 2010-05-18  Daniel Cheng  <dcheng@chromium.org>
3727
3728         Reviewed by Darin Adler, Jian Li.
3729
3730         DragData::asURL() shouldn't do file validity checks
3731         https://bugs.webkit.org/show_bug.cgi?id=38711
3732
3733         Change [NSPasteboard _web_bestURL] to still return a file URL for paths
3734         that don't exist. Callers who care about the existence of the file or
3735         whether or not it is a directory should check themselves when they
3736         want to use the file. The directory check has been left in for now,
3737         since the Mac implementation of ResourceHandle, which uses this function
3738         indirectly via DragController::performDrag) handles directories somewhat
3739         non-intuitively: it opens the parent directory in the Finder, rather
3740         than opening the directory itself.
3741
3742         * Misc/WebNSPasteboardExtras.mm:
3743         (-[NSPasteboard _web_bestURL]):
3744
3745 2010-05-18  Eric Seidel  <eric@webkit.org>
3746
3747         Reviewed by Adam Barth (and Maciej Stachowiak).
3748
3749         Make it possible to enable the new HTML5Tokenizer for testing
3750         https://bugs.webkit.org/show_bug.cgi?id=39275
3751
3752         Expose the WebCore::Settings::html5ParserEnabled as a private WebKit setting.
3753
3754         * WebView/WebPreferenceKeysPrivate.h:
3755         * WebView/WebPreferences.mm:
3756         (-[WebPreferences html5ParserEnabled]):
3757         (-[WebPreferences setHTML5ParserEnabled:]):
3758         * WebView/WebPreferencesPrivate.h:
3759         * WebView/WebView.mm:
3760         (-[WebView _preferencesChangedNotification:]):
3761
3762 2010-05-17  Sheriff Bot  <webkit.review.bot@gmail.com>
3763
3764         Unreviewed, rolling out r59652.
3765         http://trac.webkit.org/changeset/59652
3766         https://bugs.webkit.org/show_bug.cgi?id=39268
3767
3768         file-input-files-access test is broken on Mac (Requested by
3769         dcheng on #webkit).
3770
3771         * Misc/WebNSPasteboardExtras.mm:
3772         (-[NSPasteboard _web_bestURL]):
3773
3774 2010-05-17  Daniel Cheng  <dcheng@chromium.org>
3775
3776         Reviewed by Darin Adler.
3777
3778         DragData::asURL() shouldn't do file validity checks
3779         https://bugs.webkit.org/show_bug.cgi?id=38711
3780
3781         Change [NSPasteboard _web_bestURL] to still return a file URL for paths
3782         that don't exist. Callers who care about the existence of the file or
3783         whether or not it is a directory should check themselves when they
3784         want to use the file. The directory check has been left in for now,
3785         since the Mac implementation of ResourceHandle, which uses this function
3786         indirectly via DragController::performDrag) handles directories somewhat
3787         non-intuitively: it opens the parent directory in the Finder, rather
3788         than opening the directory itself.
3789
3790         * Misc/WebNSPasteboardExtras.mm:
3791         (-[NSPasteboard _web_bestURL]):
3792
3793 2010-05-14  Stephanie Lewis  <slewis@apple.com>
3794
3795         Rubber-stamped by Mark Rowe.
3796
3797         Update order files.
3798
3799         * WebKit.order:
3800
3801 2010-05-13  Timothy Hatcher  <timothy@apple.com>
3802
3803         Allow reporting exceptions that occur when using JavaScriptCore APIs
3804         to the Web Inspector.
3805
3806         <rdar://problem/7975410>
3807
3808         Reviewed by Sam Weinig.
3809
3810         * WebView/WebView.mm:
3811         (+[WebView _reportException:inContext:]): Call WebCore::reportException after checking
3812         that the global object is a DOMWindow.
3813         * WebView/WebViewPrivate.h: Added _reportException:inContext:.
3814
3815 2010-05-13  Alexey Proskuryakov  <ap@apple.com>
3816
3817         Reviewed by Darin Adler.
3818
3819         https://bugs.webkit.org/show_bug.cgi?id=39089
3820         <rdar://problem/7974044> Domain names in Russian '.рф' domain are displayed as punycode
3821
3822         Add a custom check for this domain. Currently, this is the only non-ASCII TLD, we'll
3823         investigate a more extensible solution when there are more, and we know what the
3824         typical restictions are.
3825
3826         * Misc/WebNSURLExtras.mm:
3827         (allCharactersAllowedByTLDRules):
3828         (-[NSString _web_mapHostNameWithRange:encode:makeString:]):
3829
3830 2010-05-12  Simon Fraser  <simon.fraser@apple.com>
3831
3832         Reviewed by David Hyatt.
3833
3834         Composited plug-ins can cause missed painting
3835         https://bugs.webkit.org/show_bug.cgi?id=39033
3836         <rdar://problem/7972478>
3837         
3838         Eagerly enable compositing mode via the enclosing FrameView when the plug-in tells us it wants
3839         to do compositing.
3840
3841         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3842         (-[WebHostedNetscapePluginView createPlugin]):
3843         * Plugins/WebNetscapePluginView.mm:
3844         (-[WebNetscapePluginView createPlugin]):
3845
3846 2010-05-12  Jer Noble  <jer.noble@apple.com>
3847
3848         Reviewed by Darin Adler.
3849
3850         Bug 38689: #34005 will break fullscreen video playback
3851         https://bugs.webkit.org/show_bug.cgi?id=38689
3852
3853         Use the new definition of PlatformMedia to check the actual type 
3854         returned by MediaPlayer.
3855         
3856         * WebView/WebVideoFullscreenController.mm:
3857         (-[WebVideoFullscreenController windowDidLoad]):
3858
3859 2010-05-11  Mark Rowe  <mrowe@apple.com>
3860
3861         Fix the world.
3862
3863         In r59162 a change was made to WebCore's FeatureDefines.xcconfig that enabled FILE_READER and FILE_WRITER.
3864         The author and reviewer of that patch ignored the carefully-worded warning at the top of that file asking
3865         that changes to the file be kept in sync across JavaScriptCore, WebCore and WebKit, as well as being kept
3866         in sync with build-webkit.  This led to WebCore and WebKit having different views of Document's vtable
3867         and results in crashes in Safari shortly after launch when virtual function calls resulted in the wrong
3868         function in WebCore being called.
3869
3870         We fix this by bringing the FeatureDefines.xcconfig files in to sync.  Based on the ChangeLog message and
3871         other changes in r59162 it appears that enabling FILE_WRITER was unintentional so that particular change
3872         has been reverted.
3873
3874         * Configurations/FeatureDefines.xcconfig:
3875
3876 2010-05-10  Simon Fraser  <simon.fraser@apple.com>
3877
3878         Reviewed by Anders Carlsson.
3879
3880         Allow compositing layers to be connected across iframe boundaries on Mac
3881         https://bugs.webkit.org/show_bug.cgi?id=38856
3882         
3883         When painting an iframe into a compositing layer, the "PaintBehaviorFlattenCompositingLayers"
3884         flag was mistakenly set, because we'd detect that we were drawing into a bitmap. This caused
3885         content to show up in both compositing layers, and the painted background inside the iframe.
3886         
3887         Fix by taking the flattening state from the parent frame, if there is one. For the root
3888         frame, we continue to look to see if we're painting into a bitmap.
3889
3890         * WebView/WebFrame.mm:
3891         (-[WebFrame _drawRect:contentsOnly:]):
3892
3893 2010-05-10  Timothy Hatcher  <timothy@apple.com>
3894
3895         Fix a crash when closing a WebView while the Web Inspector is open.
3896
3897         <rdar://problem/7966830>
3898
3899         Reviewed by Mark Rowe.
3900
3901         * WebCoreSupport/WebInspectorClient.mm:
3902         (-[WebInspectorWindowController destroyInspectorView]): Null check Page since it can be null.
3903         * WebView/WebView.mm:
3904         (-[WebView _close]): Null out _private->page before deleting the page, so code called
3905         during destruction don't access a half deleted Page object.
3906
3907 2010-05-10  Anders Carlsson  <andersca@apple.com>
3908
3909         Unbreak the world. (Fix Mac builds).
3910
3911         * Plugins/Hosted/WebKitPluginHostTypes.h:
3912
3913 2010-05-10  Anders Carlsson  <andersca@apple.com>
3914
3915         Reviewed by Simon Fraser.
3916
3917         Change the order of the RendererType enum values, so that old versions of WebKitPluginHost will
3918         use accelerated compositing and not layer backed views.
3919
3920         * Plugins/Hosted/WebKitPluginHostTypes.h:
3921
3922 2010-05-07  Anders Carlsson  <andersca@apple.com>
3923
3924         Reviewed by Sam Weinig and Simon Fraser.
3925
3926         <rdar://problem/7947356>
3927         QT Plug-in in hardware-accelerated WebKit is missing the controller
3928
3929         Replace the useSoftwareRenderer boolean with an enum that lets the plug-in host opt into using a layer
3930         backed NSView instead of inserting the layer into the WebCore layer hierarchy.
3931
3932         * Plugins/Hosted/NetscapePluginHostManager.mm:
3933         (WebKit::NetscapePluginHostManager::instantiatePlugin):
3934         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3935         (WKPCInstantiatePluginReply):
3936         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3937         (WebKit::NetscapePluginInstanceProxy::rendererType):
3938         (WebKit::NetscapePluginInstanceProxy::setRendererType):
3939         (WebKit::NetscapePluginInstanceProxy::InstantiatePluginReply::InstantiatePluginReply):
3940         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3941         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
3942         Replace the useSoftwareRenderer boolean everywhere with the RendererType enum.
3943         
3944         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3945         (-[WebHostedNetscapePluginView createPlugin]):
3946         Only go into full compositing mode when the renderer type returned is UseAcceleratedCompositing.
3947         Otherwise, use a layer backed NSView.
3948
3949         * Plugins/Hosted/WebKitPluginHostTypes.h:
3950         Add a RendererType enum.
3951
3952 2010-05-06  Anders Carlsson  <andersca@apple.com>
3953
3954         Reviewed by Darin Adler and Dan Bernstein..
3955
3956         REGRESSION (r51617): when plugins are disabled, plugins show up as garbage characters
3957         https://bugs.webkit.org/show_bug.cgi?id=38698
3958         <rdar://problem/7942075>
3959
3960         When the plug-in database is initialized, we will register all the MIME types it supports with the global
3961         WebView dictionary. When plug-ins are disabled for a single web view, the MIME types still need to be 
3962         in the global mapping (because other web views might still have plug-ins enabled).
3963         
3964         Prior to r51617 we would always look at the plug-in database to determine that the MIME type belongs to a 
3965         plug-in, but now we won't even touch the plug-in database when plug-ins are disabled.
3966         
3967         In order to fix this, a new set of registered MIME types that are known to be plug-ins is added. When
3968         +[WebView _viewClass:andRepresentationClass:forMIMEType:allowingPlugins:] is called and allowingPlugins is FALSE
3969         we check if the MIME type is a known plug-in MIME type and return false in that case.
3970         
3971         * Plugins/WebPluginDatabase.mm:
3972         (-[WebPluginDatabase refresh]):
3973         (-[WebPluginDatabase _removePlugin:]):
3974         * WebView/WebView.mm:
3975         (knownPluginMIMETypes):
3976         (+[WebView _registerPluginMIMEType:]):
3977         (+[WebView _unregisterPluginMIMEType:]):
3978         (+[WebView _viewClass:andRepresentationClass:forMIMEType:allowingPlugins:]):
3979         * WebView/WebViewInternal.h:
3980
3981 2010-05-06  Dan Bernstein  <mitz@apple.com>
3982
3983         Reviewed by Simon Fraser.
3984
3985         <rdar://problem/7951285> REGRESSION (r58847): Composited iframe content obscures Safari's application chrome
3986
3987         Fixed this other regression from r58847. The regression was caused by overriding -visibleRect to
3988         return the WebClipView’s full bounds. AppKit uses -visibleRect to determine the geometry
3989         of the surface for the child WebFrameView. The fix is to restrict the special behavior of
3990         -[WebClipView visibleRect] to when AppKit is consulting it for the purpose of invalidating
3991         areas while scrolling.
3992
3993         * WebView/WebClipView.h:
3994         * WebView/WebClipView.mm:
3995         (-[WebClipView visibleRect]): If the WebClipView is not scrolling, always return
3996         [super visibleRect]. 
3997         (-[WebClipView _immediateScrollToPoint:]): Override this internal NSClipView method
3998         to set a flag telling -visibleRect that the view is scrolling.
3999         * WebView/WebView.mm:
4000         (layerSyncRunLoopObserverCallBack): Ensure that screen updates, disabled by AppKit
4001         when it thinks an upcoming window flush will re-enable them, are enabled here in
4002         case the -setNeedsDisplayInRect: override has prevented the window from needing to be
4003         flushed.
4004
4005 2010-05-06  Steve Block  <steveblock@google.com>
4006
4007         Reviewed by Eric Seidel.
4008
4009         MAC_JAVA_BRIDGE should be renamed JAVA_BRIDGE
4010         https://bugs.webkit.org/show_bug.cgi?id=38544
4011
4012         * WebCoreSupport/WebFrameLoaderClient.h:
4013         * WebCoreSupport/WebFrameLoaderClient.mm:
4014
4015 2010-05-05  Dan Bernstein  <mitz@apple.com>
4016
4017         Reviewed by Mark Rowe.
4018
4019         Fixed a crash when closing Top Sites after r58847.
4020
4021         * WebView/WebFrameView.mm:
4022         (-[WebFrameView webFrame]): Null-check _private.
4023
4024 2010-05-05  Dan Bernstein  <mitz@apple.com>
4025
4026         Rubber-stamped by Mark Rowe.
4027
4028         Fixed test crashes after r58847.
4029
4030         * WebView/WebHTMLView.mm:
4031         (setNeedsDisplayInRect): Null-check the frame.
4032
4033 2010-05-05  Dan Bernstein  <mitz@apple.com>
4034
4035         Reviewed by Simon Fraser.
4036
4037         <rdar://problem/7932072> Iframes in composited layers don’t repaint correctly (affects Yahoo! Mail with Flash Player 10.1)
4038         https://bugs.webkit.org/show_bug.cgi?id=38427
4039
4040         * WebView/WebClipView.m: Renamed to WebClipView.mm.
4041         * WebView/WebClipView.mm:
4042         (-[WebClipView visibleRect]): Added this override, which for instances used for WebFrameViews in
4043         composited layers, returns the clip view’s entire bounds. This prevents drawing from being clipped to
4044         AppKit’s idea of what part of the view would be visible if it was drawn as part of the view hierarchy.
4045         Since it is drawn into a compositing layer, that’s irrelevant, and we should not be clipping.
4046         * WebView/WebHTMLView.mm:
4047         (setCursor): Style tweak.
4048         (setNeedsDisplayInRect): Added. Replaces the default implementation of -[NSView setNeedsDisplayInRect:],
4049         so that if the receiver is a descendant of a WebFrameView that draws into a composited layer, the invalidation
4050         is routed back through the WebCore FrameView, which propagates it to the layer.
4051         (+[WebHTMLViewPrivate initialize]): Swizzle the setNeedsDisplayInRect: override in.
4052         (-[WebHTMLView visibleRect]): Removed whitespace.
4053         * WebView/WebView.mm:
4054         (layerSyncRunLoopObserverCallBack): If we bailed out on syncing, due to pending layout, do an eager layout
4055         in preparation for the displaying of compositing layers.
4056
4057 2010-05-05  John Sullivan  <sullivan@apple.com>
4058
4059         <rdar://problem/7942606> Output appears in Console when exiting Safari with multiple windows opened
4060
4061         Reviewed by Mark Rowe.
4062
4063         * WebView/WebView.mm:
4064         (+[WebView closeAllWebViews]):
4065         Make copy of allWebViewsSet to avoid mutating it while iterating through it.
4066
4067 2010-05-04  Simon Fraser  <simon.fraser@apple.com>
4068
4069         Reviewed by Dan Bernstein.
4070
4071         Improve check for drawing into the window that was added in r58623
4072         https://bugs.webkit.org/show_bug.cgi?id=38562
4073         
4074         Rather than assuming that any non-bitmap context is the window's context,
4075         compare the current graphics context with -[NSWindow graphicsContext] to
4076         determine that we're drawing into the window.
4077
4078         * WebView/WebHTMLView.mm:
4079         (-[WebHTMLView drawRect:]):
4080
4081 2010-05-04  Ada Chan  <adachan@apple.com>
4082
4083         Reviewed by David Kilzer.
4084
4085         https://bugs.webkit.org/show_bug.cgi?id=38555
4086         
4087         Small code refactoring: move the logic to figure out the path to the 
4088         databases directory to another method.
4089
4090         * Storage/WebDatabaseManager.mm:
4091         (databasesDirectoryPath):
4092         (WebKitInitializeDatabasesIfNecessary):
4093
4094 2010-05-04  Beth Dakin  <bdakin@apple.com>
4095
4096         Reviewed by Mike Thole.
4097
4098         Fix for <rdar://problem/7818509> Crash occurs when exiting Safari
4099
4100         We can avoid this crash if we call [self _removeFromAllWebViewsSet] 
4101         even in the case when we are doing a fastDocumentTeardown. This is 
4102         a much safer approach.
4103         * WebView/WebView.mm:
4104         (-[WebView _close]):
4105
4106 2010-05-03  Abhishek Arya  <inferno@chromium.org>
4107
4108         Reviewed by Adam Barth.
4109
4110         Add support for controlling clipboard access from javascript.
4111         Clipboard access from javascript is disabled by default.
4112         https://bugs.webkit.org/show_bug.cgi?id=27751
4113
4114         * WebView/WebPreferenceKeysPrivate.h:
4115         * WebView/WebPreferences.mm:
4116         (+[WebPreferences initialize]):
4117         (-[WebPreferences javaScriptCanAccessClipboard]):
4118         (-[WebPreferences setJavaScriptCanAccessClipboard:]):
4119         * WebView/WebPreferencesPrivate.h:
4120         * WebView/WebView.mm:
4121         (-[WebView _preferencesChangedNotification:]):
4122
4123 2010-05-03  Jens Alfke  <snej@chromium.org>
4124
4125         Reviewed by Darin Fisher.
4126
4127         [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
4128         https://bugs.webkit.org/show_bug.cgi?id=38397
4129
4130         No tests (functionality is exposed only through native WebKit API.)
4131
4132         * WebCoreSupport/WebFrameLoaderClient.h:
4133         (WebFrameLoaderClient::dispatchWillSendSubmitEvent):
4134
4135 2010-04-30  Simon Fraser  <simon.fraser@apple.com>
4136
4137         Reviewed by Dan Bernstein.
4138
4139         <rdar://problem/7477071> REGRESSION: Bad flicker when wheel-scrolling Google Maps, iPad gallery and other sites
4140
4141         Sites that frequently toggle content in and out of compositing layers (like http://www.tumblr.com/boothed)
4142         can cause flickering because of unsychronized compositing layer and view-based updates. There were two
4143         underlying issues:
4144         
4145         1. On SnowLeopard, AppKit can throttle window updates, thus breaking an assumption that
4146            NSView drawing will happen on the runloop cycle after a repaint. This provided a window
4147            for the layerSyncRunLoopObserver to fire and commit layer changes too early.
4148            
4149            Fix this by having the layerSyncRunLoopObserver in WebView check to see if a display is pending,
4150            and not commit layer changes in that case. We'll commit layer changes later when we
4151            finally draw.
4152            
4153         2. The change in r49269 was wrong; it was attempting to fix an issue that was actually caused
4154            by -drawRects: coming in for page snapshots. The correct approach is to avoid hitting the
4155            synchronization and update disabling code in WebHTMLView for draws that are not to the screen.
4156         
4157         * WebView/WebHTMLView.mm:
4158         (-[WebHTMLView drawRect:]):
4159         * WebView/WebView.mm:
4160         (layerSyncRunLoopObserverCallBack):
4161         (-[WebView _scheduleCompositingLayerSync]):
4162
4163 2010-04-30  Anders Carlsson  <andersca@apple.com>
4164
4165         Part of the previous part (forgot to save).
4166
4167         * Plugins/WebNetscapePluginView.mm:
4168         (-[WebNetscapePluginView stopTimers]):
4169         (-[WebNetscapePluginView startTimers]):
4170         (-[WebNetscapePluginView checkIfAllowedToLoadURL:frame:callbackFunc:context:]):
4171         (-[WebNetscapePluginView _containerCheckResult:contextInfo:]):
4172         (-[WebNetscapePluginView cancelCheckIfAllowedToLoadURL:]):
4173         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
4174         (-[WebNetscapePluginView unscheduleTimer:]):
4175         (-[WebNetscapePluginView getVariable:forURL:value:length:]):
4176         (-[WebNetscapePluginView setVariable:forURL:value:length:]):
4177
4178 2010-04-30  Anders Carlsson  <andersca@apple.com>
4179
4180         Reviewed by Darin Adler.
4181
4182         Use C99 integer types in more places.
4183
4184         * Plugins/WebNetscapePluginView.mm:
4185         (getNPRect):
4186
4187 2010-04-30  Anders Carlsson  <andersca@apple.com>
4188
4189         Fix Tiger build.
4190
4191         * Plugins/WebBaseNetscapePluginStream.h:
4192         * Plugins/WebBaseNetscapePluginStream.mm:
4193         (WebNetscapePluginStream::startStream):
4194
4195 2010-04-30  Anders Carlsson  <andersca@apple.com>
4196
4197         Another 32-bit build fix.
4198
4199         * Plugins/WebNetscapePluginView.mm:
4200         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
4201
4202 2010-04-30  Anders Carlsson  <andersca@apple.com>
4203
4204         Fix 32-bit build (again).
4205
4206         * Plugins/WebNetscapeContainerCheckContextInfo.h:
4207         * Plugins/WebNetscapeContainerCheckContextInfo.mm:
4208         (-[WebNetscapeContainerCheckContextInfo initWithCheckRequestID:callbackFunc:context:]):
4209         (-[WebNetscapeContainerCheckContextInfo checkRequestID]):
4210         (-[WebNetscapeContainerCheckContextInfo callback]):
4211         * Plugins/WebNetscapePluginPackage.h:
4212
4213 2010-04-30  Anders Carlsson  <andersca@apple.com>
4214
4215         Fix 32-bit build.
4216
4217         * Plugins/WebNetscapeContainerCheckContextInfo.h:
4218         * Plugins/WebNetscapeContainerCheckContextInfo.mm:
4219         (-[WebNetscapeContainerCheckContextInfo initWithCheckRequestID:callbackFunc:context:]):
4220         * Plugins/WebNetscapeContainerCheckPrivate.h:
4221         * Plugins/WebNetscapePluginPackage.mm:
4222         (functionPointerForTVector):
4223         * Plugins/WebNetscapePluginView.mm:
4224         (PluginTimer::PluginTimer):
4225         (-[WebNetscapePluginView checkIfAllowedToLoadURL:frame:callbackFunc:context:]):
4226         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
4227
4228 2010-04-30  Anders Carlsson  <andersca@apple.com>
4229
4230         Reviewed by Timothy Hatcher.
4231
4232         Next step towards fixing
4233         
4234         https://bugs.webkit.org/show_bug.cgi?id=20784
4235         move npapi.h to C99 integer types
4236
4237   &nbs