280dc0b63af0b9bca3383021928f120b053d9fed
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2011-08-03  Pavel Feldman  <pfeldman@google.com>
2
3         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
4         https://bugs.webkit.org/show_bug.cgi?id=65510
5
6         Reviewed by Yury Semikhatsky.
7
8         * WebInspector/WebNodeHighlightView.mm:
9         (-[WebNodeHighlightView drawRect:]):
10
11 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
12
13         Web Inspector: remove Node parameter from the InspectorClient::highlight
14         https://bugs.webkit.org/show_bug.cgi?id=65549
15
16         Reviewed by Yury Semikhatsky.
17
18         * WebCoreSupport/WebInspectorClient.h:
19         * WebCoreSupport/WebInspectorClient.mm:
20         (WebInspectorClient::highlight):
21         * WebInspector/WebNodeHighlighter.h:
22         * WebInspector/WebNodeHighlighter.mm:
23         (-[WebNodeHighlighter highlight]):
24
25 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
26
27         Remove inclusion of MainThread.h from Threading.h
28         https://bugs.webkit.org/show_bug.cgi?id=65081
29
30         Reviewed by Darin Adler.
31
32         Add missing include statements for MainThread.
33
34         * Carbon/CarbonWindowAdapter.mm:
35         * History/WebBackForwardList.mm:
36         * History/WebHistoryItem.mm:
37         * Misc/WebElementDictionary.mm:
38         * Misc/WebIconDatabase.mm:
39         * Misc/WebLocalizableStrings.mm:
40         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
41         * Plugins/WebBaseNetscapePluginView.mm:
42         * Plugins/WebBasePluginPackage.mm:
43         * Plugins/WebNetscapePluginView.mm:
44         * WebCoreSupport/WebEditorClient.mm:
45         * WebCoreSupport/WebFrameLoaderClient.mm:
46         * WebView/WebArchive.mm:
47         * WebView/WebDataSource.mm:
48         * WebView/WebHTMLView.mm:
49         * WebView/WebResource.mm:
50         * WebView/WebTextIterator.mm:
51         * WebView/WebView.mm:
52         * WebView/WebViewData.mm:
53
54 2011-07-28  Dan Bernstein  <mitz@apple.com>
55
56         <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds
57
58         Reviewed by Darin Adler.
59
60         * WebCoreSupport/WebSystemInterface.mm:
61         (InitWebCoreSystemInterface): Initialize wkGetVerticalGlyphsForCharacters.
62
63 2011-07-28  Brady Eidson  <beidson@apple.com>
64
65         <rdar://problem/9714337> and https://bugs.webkit.org/show_bug.cgi?id=65306
66         WebKitInitializeStorageIfNecessary() can take awhile performing i/o, isn't necessary for every WebView
67
68         Reviewed by Maciej Stachowiak.
69
70         * Storage/WebStorageManager.mm:
71         (WebKitInitializeStorageIfNecessary): Pass the client along in initializeTracker().
72
73 2011-07-27  Mark Hahnenberg  <mhahnenberg@apple.com>
74
75         Remove operator new from JSCell
76         https://bugs.webkit.org/show_bug.cgi?id=64999
77
78         Reviewed by Oliver Hunt.
79
80         Removed the implementation of operator new in JSCell, so any further uses
81         will not successfully link.  Also removed any remaining uses of operator new.
82
83         * Plugins/Hosted/ProxyInstance.mm:
84         (WebKit::ProxyInstance::newRuntimeObject):
85         (WebKit::ProxyRuntimeMethod::create):
86         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
87         (WebKit::ProxyInstance::getMethod):
88         * Plugins/Hosted/ProxyRuntimeObject.h:
89         (WebKit::ProxyRuntimeObject::create):
90         * WebView/WebScriptDebugDelegate.mm:
91         (-[WebScriptCallFrame scopeChain]):
92
93 2011-07-26  Dan Bernstein  <mitz@apple.com>
94
95         <rdar://problem/9842889> Add a generic pictograph font family
96         https://bugs.webkit.org/show_bug.cgi?id=65197
97
98         Reviewed by Anders Carlsson.
99
100         * WebView/WebPreferenceKeysPrivate.h: Added WebKitPictographFontPreferenceKey.
101         * WebView/WebPreferences.mm:
102         (+[WebPreferences initialize]): Set the default pictograph font family to
103         "Apple Color Emoji".
104         (-[WebPreferences pictographFontFamily]): Added this getter.
105         (-[WebPreferences setPictographFontFamily:]): Added this setter.
106         * WebView/WebPreferencesPrivate.h:
107         * WebView/WebView.mm:
108         (-[WebView _preferencesChanged:]): Pass the preference through to WebCore.
109
110 2011-07-25  Ian Henderson  <ianh@apple.com>
111
112         WebFrame should have a method to determine its visual emptiness
113         https://bugs.webkit.org/show_bug.cgi?id=64223
114
115         Reviewed by Dan Bernstein.
116
117         * WebView/WebFrame.mm:
118         (-[WebFrame _isVisuallyNonEmpty]): Pipe the isVisuallyNonEmpty method
119         through WebKit.
120         * WebView/WebFramePrivate.h:
121
122 2011-07-19  Leo Yang  <leoyang.webkit@gmail.com>
123
124         SVG: Missing implementation of <altGlyphDef>, <altGlyphItem> and <glyphRef>
125         https://bugs.webkit.org/show_bug.cgi?id=60850
126
127         Reviewed by Nikolas Zimmermann.
128
129         SVG spec: http://www.w3.org/TR/SVG/text.html#AlternateGlyphDefinitions.
130         This patch is to implement SVG <altGlyphDef>, <altGlyphItem> and <glyphRef>
131         elements for alternative glyph features.
132
133         * MigrateHeaders.make:
134
135 2011-07-18  Andy Estes  <aestes@apple.com>
136
137         Solar Walk app-specific hack accidentally strips stylesheets from the document.
138         https://bugs.webkit.org/show_bug.cgi?id=64777
139
140         Reviewed by Adam Barth.
141         
142         Solar Walk uses a self-closed title tag in its documents ("<title />").
143         The HTML5 parser does not recognize this as a valid self-closing tag,
144         so it treats the remainder of the document as title text.
145         
146         We work around this in WebKit by injecting a script that calls
147         document.write() on the contents of document.title, thereby restoring
148         the contents of the document. Unfortunately this overwrote several
149         <style> tags that existed before the <title>, thereby causing the
150         document to not have the intended styling.
151         
152         Fix this by having the injected script concatenate document.title to
153         the document instead of overwriting it during document.write(). We can
154         also take the opportunity to remove document.title since it does not
155         contain useful information.
156
157         * Misc/SolarWalkQuirksUserScript.js:
158
159 2011-07-18  Dean Jackson  <dino@apple.com>
160
161         https://bugs.webkit.org/show_bug.cgi?id=64742
162         Expose WebPreferences for media playback requiring user gestures and inline playback
163
164         Reviewed by Simon Fraser.
165
166         Two new WebPreferences: MediaPlaybackRequiresUserGesture and
167         MediaPlaybackAllowsInline.
168
169         * WebView/WebPreferenceKeysPrivate.h:
170         * WebView/WebPreferences.mm:
171         (+[WebPreferences initialize]):
172         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
173         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
174         (-[WebPreferences mediaPlaybackAllowsInline]):
175         (-[WebPreferences setMediaPlaybackAllowsInline:]):
176         * WebView/WebPreferencesPrivate.h:
177         * WebView/WebView.mm:
178         (-[WebView _preferencesChanged:]):
179
180 2011-07-18  Pratik Solanki  <psolanki@apple.com>
181
182         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
183         Get webkit to compile with USE(CFNETWORK) enabled on Mac
184
185         Reviewed by David Kilzer.
186
187         Create an NSURLDownload from the CF objects that we have.
188
189         * Misc/WebDownload.mm:
190         (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]):
191         * Misc/WebDownloadInternal.h:
192         * WebCoreSupport/WebFrameLoaderClient.mm:
193         (WebFrameLoaderClient::download):
194
195 2011-07-15  Pratik Solanki  <psolanki@apple.com>
196
197         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
198         Get webkit to compile with USE(CFNETWORK) enabled on Mac
199
200         Reviewed by David Kilzer.
201
202         New WebKitSystemInterface functions for CFNetwork-based loader.
203
204         * WebCoreSupport/WebSystemInterface.mm:
205         (InitWebCoreSystemInterface):
206
207 2011-07-15  Tim Horton  <timothy_horton@apple.com>
208
209         Overlay scrollbars in overflow areas no longer pulse when revealed
210         https://bugs.webkit.org/show_bug.cgi?id=64606
211         <rdar://problem/9390674>
212
213         Reviewed by Simon Fraser.
214
215         Ensure that the state of the scrollbar implementation is kept in sync
216         with WebCore's internal representation. Previously, we synchronized them
217         at paint time, causing pulsing to be skipped due to the scrollbars being
218         disabled.
219
220         * WebCoreSupport/WebSystemInterface.mm:
221         (InitWebCoreSystemInterface):
222
223 2011-07-15  Andy Estes  <aestes@apple.com>
224
225         Rename applicationIsSolarWalk() to applicationIsSolarWalkMac().
226         https://bugs.webkit.org/show_bug.cgi?id=64641
227
228         Reviewed by Brian Weinstein.
229
230         * WebView/WebView.mm:
231         (needsSolarWalkQuirksScript): Call applicationIsSolarWalkMac().
232
233 2011-07-15  Dan Bernstein  <mitz@apple.com>
234
235         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
236         https://bugs.webkit.org/show_bug.cgi?id=64615
237
238         Reviewed by Anders Carlsson.
239
240         * WebCoreSupport/WebChromeClient.h:
241         * WebCoreSupport/WebChromeClient.mm:
242         (WebChromeClient::setCursorHiddenUntilMouseMoves): Added. Calls
243         +[NSCursor setHiddenUntilMouseMoves:].
244
245 2011-07-14  Gavin Barraclough  <barraclough@apple.com>
246
247         https://bugs.webkit.org/show_bug.cgi?id=64250
248         Global strict mode function leaking global object as "this".
249
250         Reviewed by Oliver Hunt.
251
252         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
253         (WebKit::NetscapePluginInstanceProxy::invoke):
254         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
255             - Change call to pass DOM Window shell, instead of the global varaible object.
256
257 2011-07-13  Joseph Pecoraro  <joepeck@webkit.org>
258
259         Improve names of some ApplicationCacheStorage accessor methods
260         https://bugs.webkit.org/show_bug.cgi?id=64433
261
262         Reviewed by Alexey Proskuryakov.
263
264         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
265         (-[WebApplicationCacheQuotaManager usage]):
266         (-[WebApplicationCacheQuotaManager quota]):
267         Renamed methods.
268
269 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
270
271         ApplicationCache update should not immediately fail when reaching per-origin quota
272         https://bugs.webkit.org/show_bug.cgi?id=64177
273
274         Reviewed by Alexey Proskuryakov.
275
276         * WebView/WebUIDelegatePrivate.h:
277         * DefaultDelegates/WebDefaultUIDelegate.m:
278         (-[WebDefaultUIDelegate webView:exceededApplicationCacheOriginQuotaForSecurityOrigin:spaceNeeded:]):
279         Update the delegate to include a space needed parameter.
280
281         * WebCoreSupport/WebChromeClient.h:
282         * WebCoreSupport/WebChromeClient.mm:
283         (WebChromeClient::reachedApplicationCacheOriginQuota):
284         Call the delegate with the new space needed information.
285
286 2011-07-12  Adam Roben  <aroben@apple.com>
287
288         Delete some redundant code in WebHTMLView
289
290         This code had no user-visible effect, as we were just duplicating work that AppKit would do
291         for us at a slightly different time.
292
293         Fixes <http://webkit.org/b/64390> WebHTMLView sets its root layer's transform unnecessarily
294
295         Reviewed by Simon Fraser.
296
297         * WebView/WebHTMLView.mm:
298         (-[WebHTMLView viewDidMoveToWindow]):
299         (-[WebHTMLView attachRootLayer:]):
300         Don't bother setting the root layer's transform to account for the scale factor. AppKit
301         takes care of this for us nowadays.
302
303 2011-07-10  Kenichi Ishibashi  <bashi@chromium.org>
304
305         Let plugins participate in form submission
306         https://bugs.webkit.org/show_bug.cgi?id=13061
307
308         Adds methods to get form value from NPAPI plugins.
309
310         Reviewed by Anders Carlsson.
311
312         * Plugins/Hosted/WebHostedNetscapePluginView.h:
313         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
314         (-[WebHostedNetscapePluginView getFormValue:]): Added.
315         * Plugins/WebBaseNetscapePluginView.h:
316         * Plugins/WebBaseNetscapePluginView.mm:
317         (-[WebBaseNetscapePluginView getFormValue:]): Added.
318         * Plugins/WebNetscapePluginPackage.h:
319         * Plugins/WebNetscapePluginPackage.mm:
320         (-[WebNetscapePluginPackage browserFuncs]): Added.
321         * Plugins/WebNetscapePluginView.h:
322         * Plugins/WebNetscapePluginView.mm:
323         (-[WebNetscapePluginView getFormValue:]): Added.
324         * WebCoreSupport/WebFrameLoaderClient.mm:
325         (NetscapePluginWidget::getFormValue): Added.
326
327 2011-07-04  Dan Bernstein  <mitz@apple.com>
328
329         Moved handling of frame size changes into its own method.
330
331         Reviewed by Oliver Hunt.
332
333         * WebView/WebFrameView.mm:
334         (-[WebFrameView _frameSizeChanged]): Added. Moved code here...
335         (-[WebFrameView setFrameSize:]): ...from here.
336         * WebView/WebFrameViewInternal.h:
337
338 2011-07-01  Adele Peterson  <adele@apple.com>
339
340         Reviewed by Darin Adler.
341
342         WebKit part of fix for https://bugs.webkit.org/show_bug.cgi?id=63851
343         <rdar://problem/8981062> Crash when loading a document in an editable WebView that has a subframe with an unstyled body
344
345         * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
346         Only call applyEditingStyleToBodyElement for the main frame.  There's no need to apply break-word, 
347         space, and after-white-space properties to subframes in the editable document.
348
349 2011-07-01  Andy Estes  <aestes@apple.com>
350
351         Reviewed by Mark Rowe.
352
353         Simplify MailQuirksUserScript.js
354         https://bugs.webkit.org/show_bug.cgi?id=63800
355         
356         MailQuirksUserScript.js is injected into WebViews in Mail.app on
357         Leopard to resolve an incompatibility between it and the HTML5 parser.
358         It did so by taking all nodes in the document between <html> and <body>
359         and moving them to be children of <body>. This maintains Mail.app's
360         assumption that document.firstChild.firstChild == document.body.
361         
362         While this script fixed a specific issue with the Signature panel in
363         Mail.app, it caused regressions in other WebViews. Since the issue with
364         the Signature panel is with the empty <head> node implicitly created by
365         the parser, we can simplify this script by removing this implicit
366         <head> in the case it has no attributes and no children. This fixes the
367         Signature panel without affecting other WebViews that have non-trivial
368         <head> nodes.
369
370         * Misc/MailQuirksUserScript.js: If <head> exists but has no attributes
371         and no children, remove it.
372
373 2011-06-30  Dan Bernstein  <mitz@apple.com>
374
375         Reviewed by Adele Peterson.
376
377         Add +[WebView _allowsRoundingHacks]
378         https://bugs.webkit.org/show_bug.cgi?id=63734
379
380         * WebView/WebView.mm:
381         (+[WebView _allowsRoundingHacks]): Added this accessor.
382         * WebView/WebViewPrivate.h:
383
384 2011-06-29  Darin Adler  <darin@apple.com>
385
386         Reviewed by Dan Bernstein.
387
388         [Mac] Use system cursors instead of custom bitmaps where possible
389         https://bugs.webkit.org/show_bug.cgi?id=63679
390
391         * WebCoreSupport/WebSystemInterface.mm:
392         (InitWebCoreSystemInterface): Added WKCursor.
393
394 2011-06-28  Ilya Sherman  <isherman@chromium.org>
395
396         Reviewed by Adam Barth.
397
398         form.autocomplete="off" does not work
399         https://bugs.webkit.org/show_bug.cgi?id=35823
400
401         * WebView/WebHTMLRepresentation.mm:
402         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Update callsite.
403
404 2011-06-26  Mark Rowe  <mrowe@apple.com>
405
406         Reviewed by Dan Bernstein.
407
408         Use a separate file name for Lion's WebKitSystemInterface.
409
410         * Configurations/DebugRelease.xcconfig:
411
412 2011-06-24  Dan Bernstein  <mitz@apple.com>
413
414         Reviewed by Anders Carlsson.
415
416         Add an option to enable legacy rounding hacks
417         https://bugs.webkit.org/show_bug.cgi?id=63363
418
419         * Misc/WebKitNSStringExtras.mm:
420         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
421         Disabled rounding hacks.
422         (-[NSString _web_widthWithFont:]): Ditto.
423         * WebView/WebView.mm:
424         (+[WebView _setAllowsRoundingHacks:]): Added this setter.
425         * WebView/WebViewPrivate.h:
426
427 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
428
429         Reviewed by Dimitri Glazkov.
430
431         Convert shadow DOM-related tests to use window.internals
432         https://bugs.webkit.org/show_bug.cgi?id=61671
433
434         Remove shadow DOM-related methods from Mac API. These are not
435         required any more.
436
437         * DOM/WebDOMOperations.mm:
438         * DOM/WebDOMOperationsPrivate.h:
439
440 2011-06-24  Yuta Kitamura  <yutak@chromium.org>
441
442         Reviewed by Adam Barth.
443
444         WebSocket: Add run-time flag for new HyBi protocol
445         https://bugs.webkit.org/show_bug.cgi?id=60348
446
447         Make a new flag (Setting::m_useHixie76WebSocketProtocol)
448         switchable from WebView and WebPreferences.
449
450         * WebView/WebPreferenceKeysPrivate.h:
451         * WebView/WebPreferences.mm:
452         (+[WebPreferences initialize]):
453         (-[WebPreferences setHixie76WebSocketProtocolEnabled:]):
454         (-[WebPreferences isHixie76WebSocketProtocolEnabled]):
455         * WebView/WebPreferencesPrivate.h:
456         * WebView/WebView.mm:
457         (-[WebView _preferencesChanged:]):
458
459 2011-06-22  Sam Weinig  <sam@webkit.org>
460
461         Roll out r89469 (Add preference for setting the html parser depth limit)
462
463         The preference is not needed at this time, so there is no reason to expose it.
464
465         * WebView/WebPreferenceKeysPrivate.h:
466         * WebView/WebPreferences.mm:
467         (+[WebPreferences initialize]):
468         * WebView/WebPreferencesPrivate.h:
469         * WebView/WebView.mm:
470         (-[WebView _preferencesChanged:]):
471
472 2011-06-22  Sam Weinig  <sam@webkit.org>
473
474         Reviewed by Adam Barth.
475
476         Add preference for setting the html parser depth limit
477         https://bugs.webkit.org/show_bug.cgi?id=63163
478
479         * WebView/WebPreferenceKeysPrivate.h:
480         * WebView/WebPreferences.mm:
481         (+[WebPreferences initialize]):
482         (-[WebPreferences setMaximumHTMLParserDOMTreeDepth:]):
483         (-[WebPreferences maximumHTMLParserDOMTreeDepth]):
484         * WebView/WebPreferencesPrivate.h:
485         * WebView/WebView.mm:
486         (-[WebView _preferencesChanged:]):
487         Add private preference for setting the parser depth limit.
488
489 2011-06-22  Ryosuke Niwa  <rniwa@webkit.org>
490
491         Reviewed by Darin Adler.
492
493         Make instantiation of legacy editing position more explicit
494         https://bugs.webkit.org/show_bug.cgi?id=63037
495
496         Create new positions since we can't create a legacy editing position outside of WebCore anymore.
497
498         * WebView/WebFrame.mm:
499         (-[WebFrame _smartDeleteRangeForProposedRange:]): Calls createLegacyEditingPosition.
500         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
501
502 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
503
504         Reviewed by Kent Tamura.
505
506         FileChooser should be only created when we need to choose files.
507         https://bugs.webkit.org/show_bug.cgi?id=63039
508
509         * WebCoreSupport/WebChromeClient.mm:
510         (WebChromeClient::runOpenPanel): Changed to use settings.
511
512 2011-06-21  MORITA Hajime  <morrita@google.com>
513
514         Unreviewed, rolling out r89401 and r89403.
515         http://trac.webkit.org/changeset/89401
516         http://trac.webkit.org/changeset/89403
517         https://bugs.webkit.org/show_bug.cgi?id=62970
518
519         Breaks mac build and mistakenly enables the spellcheck API
520
521         * Configurations/FeatureDefines.xcconfig:
522
523 2011-06-20  MORITA Hajime  <morrita@google.com>
524
525         Reviewed by Kent Tamura.
526
527         Spellcheck API should be build-able.
528         https://bugs.webkit.org/show_bug.cgi?id=62970
529
530         No new tests, changing only build related files
531
532         * Configurations/FeatureDefines.xcconfig:
533
534 2011-06-21  Sheriff Bot  <webkit.review.bot@gmail.com>
535
536         Unreviewed, rolling out r89354.
537         http://trac.webkit.org/changeset/89354
538         https://bugs.webkit.org/show_bug.cgi?id=63099
539
540         Broke tests on Mac (Requested by rniwa on #webkit).
541
542         * WebCoreSupport/WebInspectorClient.mm:
543         (-[WebInspectorWindowController destroyInspectorView:]):
544         * WebInspector/WebInspector.mm:
545         (-[WebInspector show:]):
546         (-[WebInspector showConsole:]):
547         (-[WebInspector isDebuggingJavaScript]):
548         (-[WebInspector toggleDebuggingJavaScript:]):
549         (-[WebInspector startDebuggingJavaScript:]):
550         (-[WebInspector stopDebuggingJavaScript:]):
551         (-[WebInspector isProfilingJavaScript]):
552         (-[WebInspector toggleProfilingJavaScript:]):
553         (-[WebInspector startProfilingJavaScript:]):
554         (-[WebInspector stopProfilingJavaScript:]):
555         (-[WebInspector isJavaScriptProfilingEnabled]):
556         (-[WebInspector setJavaScriptProfilingEnabled:]):
557         (-[WebInspector isTimelineProfilingEnabled]):
558         (-[WebInspector setTimelineProfilingEnabled:]):
559         (-[WebInspector setFrontend:]):
560         (-[WebInspector showWindow:]):
561         * WebInspector/WebInspectorFrontend.h:
562         * WebInspector/WebInspectorFrontend.mm:
563         * WebInspector/WebInspectorPrivate.h:
564
565 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
566
567         Reviewed by Yury Semikhatsky.
568
569         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
570         https://bugs.webkit.org/show_bug.cgi?id=62985
571
572         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
573         methods for plumbing the menu action handlers through the WebKit and WebCore.
574         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
575         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
576         WebKit/win and WebKit2 to follow.
577
578         * WebCoreSupport/WebInspectorClient.mm:
579         (-[WebInspectorWindowController destroyInspectorView:]):
580         * WebInspector/WebInspector.mm:
581         (-[WebInspector showWindow]):
582         (-[WebInspector show:]):
583         (-[WebInspector showConsole:]):
584         (-[WebInspector isDebuggingJavaScript]):
585         (-[WebInspector toggleDebuggingJavaScript:]):
586         (-[WebInspector startDebuggingJavaScript:]):
587         (-[WebInspector stopDebuggingJavaScript:]):
588         (-[WebInspector isProfilingJavaScript]):
589         (-[WebInspector toggleProfilingJavaScript:]):
590         (-[WebInspector startProfilingJavaScript:]):
591         (-[WebInspector stopProfilingJavaScript:]):
592         (-[WebInspector isJavaScriptProfilingEnabled]):
593         (-[WebInspector setJavaScriptProfilingEnabled:]):
594         (-[WebInspector isTimelineProfilingEnabled]):
595         (-[WebInspector setTimelineProfilingEnabled:]):
596         (-[WebInspector setFrontend:]):
597         (-[WebInspector releaseFrontend]):
598         (-[WebInspector showWindow:]):
599         * WebInspector/WebInspectorFrontend.h:
600         * WebInspector/WebInspectorFrontend.mm:
601         (-[WebInspectorFrontend isDebuggingEnabled]):
602         (-[WebInspectorFrontend setDebuggingEnabled:]):
603         (-[WebInspectorFrontend isProfilingJavaScript]):
604         (-[WebInspectorFrontend startProfilingJavaScript]):
605         (-[WebInspectorFrontend stopProfilingJavaScript]):
606         (-[WebInspectorFrontend isJavaScriptProfilingEnabled]):
607         (-[WebInspectorFrontend setJavaScriptProfilingEnabled:]):
608         (-[WebInspectorFrontend isTimelineProfilingEnabled]):
609         (-[WebInspectorFrontend setTimelineProfilingEnabled:]):
610         * WebInspector/WebInspectorPrivate.h:
611
612 2011-06-01  Jer Noble  <jer.noble@apple.com>
613
614         Reviewed by Eric Carlson.
615
616         Move Full Screen Controllers into WebCore.
617
618         Remove dependency on QTKit from wekitExitFullscreen()
619         https://bugs.webkit.org/show_bug.cgi?id=61843
620
621         WebVideoFullscreenController, WebVideoFullscreenHUDController, and WebWindowAnimation
622         have been moved into WebCore.
623
624         * WebCoreSupport/WebSystemInterface.mm:
625         (InitWebCoreSystemInterface): Add support for four WKSI functions in WCSI.
626         * WebView/WebFullScreenController.mm: Remove unused #include.
627         * WebView/WebView.mm: Change the include location of 
628             WebVideoFullscreenController.h
629
630 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
631
632         Reviewed by Darin Adler.
633
634         Separate concerns of loading file icons and choosing files.
635         https://bugs.webkit.org/show_bug.cgi?id=62931
636
637         * WebCoreSupport/WebChromeClient.h:
638         * WebCoreSupport/WebChromeClient.mm:
639         (WebChromeClient::loadIconForFiles): Renamed.
640
641 2011-06-18  Andrew Wellington  <andrew@webkit.org>
642
643         Reviewed by Alexey Proskuryakov.
644
645         https://bugs.webkit.org/show_bug.cgi?id=62843
646         WebKit Mac API calls didReceiveAuthenticationChallenge instead of
647         didCancelAuthenticationChallenge
648
649         * WebView/WebView.mm:
650         (-[WebView _cacheResourceLoadDelegateImplementations]):
651
652 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
653
654         Unreviewed, rolling out r89026.
655         http://trac.webkit.org/changeset/89026
656         https://bugs.webkit.org/show_bug.cgi?id=62804
657
658         These patches were likely correct.  I'll investigate the
659         browser_test failures. (Requested by abarth on #webkit).
660
661         * WebView/WebVideoFullscreenHUDWindowController.mm:
662         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
663
664 2011-06-16  Vitaly Repeshko  <vitalyr@chromium.org>
665
666         Unreviewed.
667
668         Revert Adam's user gesture patch series r89002, r89005, r89007, r89018
669         https://bugs.webkit.org/show_bug.cgi?id=62796
670
671         The patches broke chromium browser tests.
672
673         * WebView/WebVideoFullscreenHUDWindowController.mm:
674         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
675
676 2011-06-16  Adam Barth  <abarth@webkit.org>
677
678         Reviewed by Eric Seidel.
679
680         Remove HTMLVideoElement::processingUserGesture
681         https://bugs.webkit.org/show_bug.cgi?id=62784
682
683         * WebView/WebVideoFullscreenHUDWindowController.mm:
684         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
685
686 2011-06-15  Adam Barth  <abarth@webkit.org>
687
688         Reviewed by Eric Seidel.
689
690         Remove ScriptController::setAllowPopupsFromPlugin
691         https://bugs.webkit.org/show_bug.cgi?id=62706
692
693         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
694         (WebKit::NetscapePluginInstanceProxy::evaluate):
695         * Plugins/WebNetscapePluginView.mm:
696         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
697
698 2011-06-15  David Kilzer  <ddkilzer@apple.com>
699
700         <http://webkit.org/b/62745> Convert WebNSFileManagerExtras.m to Objective-C++
701
702         Reviewed by Joseph Pecoraro.
703
704         * Misc/WebNSFileManagerExtras.mm: Renamed from Source/WebKit/mac/Misc/WebNSFileManagerExtras.m.
705         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
706         Added static_cast<MetaDataInfo *>.
707
708 2011-06-14  Stephanie Lewis  <slewis@apple.com>
709
710         Rubber stamped by Oliver Hunt.
711
712         <rdar://problem/9511169>
713         Update order files.
714
715         * WebKit.order:
716
717 2011-06-13  Kentaro Hara  <haraken@google.com>
718
719         Reviewed by Alexey Proskuryakov.
720
721         Add resizePageRectsKeepingRatio(), which expands/shrinks a page, keeping the ratio of the original page
722         https://bugs.webkit.org/show_bug.cgi?id=61256
723
724         In order to prevent rounding error caused by expanding/shrinking a page
725         using different calculation here and there, I added a common calculation
726         method, resizePageRectsKeepingRatio(), which expands/shrinks a page,
727         keeping the ratio of width and height of the original page.
728         [WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]
729         and [WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]
730         use resizePageRectsKeepingRatio() to expand/shrink a page.
731
732         Test: printing/page-count-with-one-word.html
733
734         * WebView/WebHTMLView.mm:
735         (-[WebHTMLView _web_setPrintingModeRecursive]):
736         (-[WebHTMLView _web_clearPrintingModeRecursive]):
737         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
738         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumShrinkRatio:]):
739         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
740         (-[WebHTMLView _endPrintMode]):
741         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
742         (-[WebHTMLView _endScreenPaginationMode]):
743         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumShrinkRatio:adjustingViewSize:]):
744         (-[WebHTMLView layout]):
745         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
746         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
747         (-[WebHTMLView setPageWidthForPrinting:]):
748
749 2011-06-13  Tony Chang  <tony@chromium.org>
750
751         Reviewed by Dimitri Glazkov.
752
753         rename ENABLE_NEW_FLEXBOX to ENABLE_CSS3_FLEXBOX
754         https://bugs.webkit.org/show_bug.cgi?id=62578
755
756         * Configurations/FeatureDefines.xcconfig:
757
758 2011-06-13  Tony Chang  <tony@chromium.org>
759
760         Reviewed by Adam Barth.
761
762         rename ENABLE_FLEXBOX to ENABLE_NEW_FLEXBOX
763         https://bugs.webkit.org/show_bug.cgi?id=62545
764
765         * Configurations/FeatureDefines.xcconfig:
766
767 2011-06-12  Adam Barth  <abarth@webkit.org>
768
769         Reviewed by Alexey Proskuryakov.
770
771         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
772         https://bugs.webkit.org/show_bug.cgi?id=62516
773
774         * WebCoreSupport/WebFrameLoaderClient.h:
775         * WebCoreSupport/WebFrameLoaderClient.mm:
776         (WebFrameLoaderClient::interruptedForPolicyChangeError):
777
778 2011-06-12  Adam Barth  <abarth@webkit.org>
779
780         Reviewed by Eric Seidel.
781
782         Remove FrameLoader::isProcessingUserGesture
783         https://bugs.webkit.org/show_bug.cgi?id=62519
784
785         * WebView/WebView.mm:
786         (-[WebView _isProcessingUserGesture]):
787
788 2011-06-12  Adam Barth  <abarth@webkit.org>
789
790         Reviewed by Alexey Proskuryakov.
791
792         Remove trival "forward-to-client" member functions from FrameLoader
793         https://bugs.webkit.org/show_bug.cgi?id=62510
794
795         * WebCoreSupport/WebFrameNetworkingContext.mm:
796         (WebFrameNetworkingContext::blockedError):
797
798 2011-06-10  Tony Chang  <tony@chromium.org>
799
800         Reviewed by Ojan Vafai.
801
802         add a compile guard ENABLE(FLEXBOX)
803         https://bugs.webkit.org/show_bug.cgi?id=62049
804
805         * Configurations/FeatureDefines.xcconfig:
806
807 2011-06-06  Michael Saboff  <msaboff@apple.com>
808
809         Reviewed by Geoffrey Garen.
810
811         Fonts returned by FontCache::getFontDataForCharacters() are never released
812         https://bugs.webkit.org/show_bug.cgi?id=61875
813
814         This change allows fonts allocated as system fallback fonts to be
815         released.  Previously, the reference counts for these fonts grew
816         without bound.  This is implemented as an auto release class that wraps
817         accesses to the cache for system fallback fonts. All such accesses are
818         via the method FontCache::getFontDataForCharacters. The new class is
819         called FontCachePurgePreventer. When such an object exists, it protects
820         these fonts from deletion.
821
822         See more comments for this defect in Source/WebCore/ChangeLog.
823
824         * Misc/WebKitNSStringExtras.mm:
825         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
826         (-[NSString _web_widthWithFont:]):
827         Wrapped code accessing fallback fonts with local
828         FontCachePurgePreventer in these methods.
829
830         * Misc/WebStringTruncator.mm:
831         (+[WebStringTruncator centerTruncateString:toWidth:]):
832         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
833         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
834         (+[WebStringTruncator widthOfString:font:]):
835         Wrapped code accessing fallback fonts with local
836         FontCachePurgePreventer in these methods.
837
838 2011-06-06  Peter Kasting  <pkasting@google.com>
839
840         Reviewed by Antonio Gomes.
841
842         Remove unnecessary args from scroll functions.
843         https://bugs.webkit.org/show_bug.cgi?id=61648
844
845         * WebView/WebFrame.mm:
846         (-[WebFrame _scrollDOMRangeToVisible:]):
847
848 2011-06-06  Alexandru Chiculita  <achicu@adobe.com>
849
850         Reviewed by Kent Tamura.
851
852         Add ENABLE_CSS_EXCLUSIONS support for build-webkit script
853         https://bugs.webkit.org/show_bug.cgi?id=61628
854
855         * Configurations/FeatureDefines.xcconfig:
856
857 2011-06-06  Mihnea Ovidenie  <mihnea@adobe.com>
858
859         Reviewed by Kent Tamura.
860
861         Add ENABLE(CSS_REGIONS) guard for CSS Regions support
862         https://bugs.webkit.org/show_bug.cgi?id=61631
863
864         * Configurations/FeatureDefines.xcconfig:
865
866 2011-06-02  Anders Carlsson  <andersca@apple.com>
867
868         Reviewed by Sam Weinig.
869
870         Need a way to install the memory pressure handler without initializing WebKit1
871         https://bugs.webkit.org/show_bug.cgi?id=61975
872
873         Add a WebInstallMemoryPressureHandler function which will install the memory pressure handler.
874         -[WebView WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:] will do this,
875         but we'd like to be able to install a memory pressure handler without creating a WebView or even
876         calling any WebView method since that will call +[WebView initialize].
877
878         * WebKit.exp:
879         * WebView/WebView.mm:
880         (WebInstallMemoryPressureHandler):
881         * WebView/WebViewPrivate.h:
882
883 2011-05-27  Stephanie Lewis  <slewis@apple.com>
884
885         Unreviewed.
886
887         Fix a typo in the order_file flag.
888
889         * Configurations/Base.xcconfig:
890
891 2011-05-27  Stephanie Lewis  <slewis@apple.com>
892
893         Rubber Stamped by Adam Roben.
894
895         Update Order Files.  Use -order_file flag since it can order more of the binary.
896
897         * Configurations/Base.xcconfig:
898         * WebKit.order:
899
900 2011-05-25  Stephanie Lewis  <slewis@apple.com>
901
902         Reviewed by Brady Eidson.
903
904         https://bugs.webkit.org/show_bug.cgi?id=61407
905         part of <rdar://problem/8675177>
906         Remove Quicklook pref.  Moving it enirely down into WebCore so it can
907         be calculated only on reloads.
908
909         * WebView/WebPreferenceKeysPrivate.h:
910         * WebView/WebPreferences.mm:
911         (+[WebPreferences initialize]):
912         * WebView/WebPreferencesPrivate.h:
913         * WebView/WebView.mm:
914         (-[WebView _preferencesChanged:]):
915
916 2011-05-24  Jer Noble  <jer.noble@apple.com>
917
918         Reviewed by Darin Adler.
919
920         Video fails to play on Vimeo
921         https://bugs.webkit.org/show_bug.cgi?id=61403
922
923         * WebCoreSupport/WebSystemInterface.mm:
924         (InitWebCoreSystemInterface): Added support for wkAVAssetResolvedURL and
925             wkQTMovieResolvedURL.
926
927 2011-05-24  Keishi Hattori  <keishi@webkit.org>
928
929         Reviewed by Kent Tamura.
930
931         Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
932         https://bugs.webkit.org/show_bug.cgi?id=61273
933
934         * Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.
935
936 2011-05-24  Adam Barth  <abarth@webkit.org>
937
938         Reviewed by Eric Seidel.
939
940         Add FIXME comments about removing FrameLoader::isProcessingUserGesture
941         https://bugs.webkit.org/show_bug.cgi?id=61395
942
943         * WebView/WebView.mm:
944         (-[WebView _isProcessingUserGesture]):
945
946 2011-05-24  Michael Saboff  <msaboff@apple.com>
947
948         Reviewed by Geoffrey Garen.
949
950         Improve handling in WebCore of low memory situations
951         https://bugs.webkit.org/show_bug.cgi?id=61222
952
953         Added call to enable memory pressure handling.
954
955         * WebView/WebView.mm:
956         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
957         * WebView/WebViewInternal.h:
958
959 2011-05-24  Jay Civelli  <jcivelli@chromium.org>
960
961         Rubberstamped by David Kilzer.
962
963         Updated some files that I forgot in my previous MHTML CL.
964
965         * Configurations/FeatureDefines.xcconfig:
966
967 2011-05-20  Jeremy Noble  <jer.noble@apple.com>
968
969         Reviewed by Simon Fraser.
970
971         Stack overflow in WebFullScreenController when built on Leopard and run on SnowLeopard.
972         https://bugs.webkit.org/show_bug.cgi?id=61224
973
974         Remove the CATransaction(SnowLeopardConvenience) functions, and replace them with the Leopard
975         versions of same.
976
977         * WebView/WebFullScreenController.mm:
978         (-[WebFullScreenController windowDidEnterFullscreen:]):
979         (-[WebFullScreenController enterFullscreen:]):
980         (-[WebFullScreenController exitFullscreen]):
981         (-[WebFullscreenWindow setRendererLayer:]):
982
983 2011-05-20  Andy Estes  <aestes@apple.com>
984
985         Reviewed by Darin Adler.
986
987         WebView loses firstResponder status when entering full-screen mode.
988         https://bugs.webkit.org/show_bug.cgi?id=61153
989
990         * Misc/WebNSWindowExtras.h:
991         * Misc/WebNSWindowExtras.m:
992         (-[NSWindow makeResponder:firstResponderIfDescendantOfView:]): Add a
993         convenience method to NSWindow that makes the given NSResponder first
994         responder only if it is a descendant of the given view.
995         * WebView/WebFullScreenController.mm:
996         (-[WebFullScreenController windowDidEnterFullscreen:]): If the WebView
997         was a descendant of the browser window's first responder when entering
998         full-screen mode, set the full-screen window's first responder to that
999         same NSResponder.
1000         (-[WebFullScreenController exitFullscreen]): Do the reverse of what is
1001         done in windowDidEnterFullscreen:.
1002
1003 2011-05-20  Enrica Casucci  <enrica@apple.com>
1004
1005         Reviewed by David Kilzer.
1006
1007         Add delegate methods about focus and blur to all elements.
1008         https://bugs.webkit.org/show_bug.cgi?id=61218
1009
1010         We want to have delegates for these events for all the elements, not only the form elements.
1011         The patch changes the name of the methods in a way that is not form element specific.
1012
1013         * WebCoreSupport/WebChromeClient.h:
1014         * WebCoreSupport/WebChromeClient.mm:
1015         (WebChromeClient::elementDidFocus):
1016         (WebChromeClient::elementDidBlur):
1017         * WebView/WebUIDelegatePrivate.h:
1018
1019 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
1020
1021         Reviewed by Sam Weinig.
1022
1023         numberOfActiveAnimations() can include animations from documents in the page cache
1024         https://bugs.webkit.org/show_bug.cgi?id=53641
1025
1026         Pass the Frame's document as the one to count animations on.
1027
1028         * WebView/WebFrame.mm:
1029         (-[WebFrame _numberOfActiveAnimations]):
1030
1031 2011-05-17  Timothy Hatcher  <timothy@apple.com>
1032
1033         Update the the context menu to reflect the system search provider on Mac.
1034
1035         <rdar://problem/9198419>
1036
1037         Reviewed by Sam Weinig.
1038
1039         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1040         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): Use wkCopyDefaultSearchProviderDisplayName to
1041         create the web search context menu title.
1042         * WebCoreSupport/WebSystemInterface.mm:
1043         (InitWebCoreSystemInterface): Added CopyDefaultSearchProviderDisplayName.
1044
1045 2011-05-16  Emil A Eklund  <eae@chromium.org>
1046
1047         Reviewed by Eric Seidel.
1048
1049         Replace docTop/Right/Bottom/Left/Width/Height with documentRect
1050         https://bugs.webkit.org/show_bug.cgi?id=60743
1051
1052         Replace uses of docWidth/Height with documentRect.
1053
1054         * WebView/WebFrame.mm:
1055         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
1056
1057 2011-05-16  Yuzo Fujishima  <yuzo@google.com>
1058
1059         Reviewed by Antti Koivisto.
1060
1061         Fix for Bug 43704 - Web font is printed as blank if it is not cached
1062         https://bugs.webkit.org/show_bug.cgi?id=43704
1063
1064         * WebView/WebHTMLView.mm:
1065         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]): Use ResourceCacheValidationSuppressor to allow stale resources in printing.
1066
1067 2011-05-16  David Kilzer  <ddkilzer@apple.com>
1068
1069         <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
1070         <rdar://problem/9446430>
1071
1072         Reviewed by Mark Rowe.
1073
1074         * Configurations/Base.xcconfig: Fixed typo.
1075
1076 2011-05-13  Jon Lee  <jonlee@apple.com>
1077
1078         Reviewed by Simon Fraser.
1079
1080         Can't horizontally scroll iframes and overflow because wheel events are always accepted
1081         https://bugs.webkit.org/show_bug.cgi?id=60779
1082
1083         * WebCoreSupport/WebChromeClient.h:
1084         (WebChromeClient::numWheelEventHandlersChanged): Default impl of new ChromeClient method
1085         (WebChromeClient::shouldRubberBandInDirection): Default impl of new ChromeClient method
1086
1087 2011-05-13  Sam Weinig  <sam@webkit.org>
1088
1089         Reviewed by Anders Carlsson.
1090
1091         Prune #includes from FrameView.h (Part 2)
1092         https://bugs.webkit.org/show_bug.cgi?id=60748
1093
1094         - Update files that were depending on FrameView.h #including Frame.h or
1095           Page.h.
1096
1097         * WebView/WebClipView.mm:
1098         * WebView/WebHTMLView.mm:
1099         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
1100
1101 2011-05-12  Pratik Solanki  <psolanki@apple.com>
1102
1103         Reviewed by Antti Koivisto.
1104
1105         Part of WebCore should use CFNetwork-based loader on Mac
1106         https://bugs.webkit.org/show_bug.cgi?id=51836
1107
1108         Use CFRunLoop when using CFNetwork.
1109
1110         * WebView/WebView.mm:
1111         (-[WebView scheduleInRunLoop:forMode:]):
1112         (-[WebView unscheduleFromRunLoop:forMode:]):
1113
1114 2011-05-12  Pratik Solanki  <psolanki@apple.com>
1115
1116         Reviewed by Antti Koivisto.
1117
1118         Part of WebCore should use CFNetwork-based loader on Mac
1119         https://bugs.webkit.org/show_bug.cgi?id=51836
1120
1121         Include AuthenticationCF.h header file.
1122
1123         * Misc/WebDownload.mm:
1124         * Plugins/WebBaseNetscapePluginView.mm:
1125         * WebCoreSupport/WebFrameLoaderClient.mm:
1126
1127 2011-05-12  Adele Peterson  <adele@apple.com>
1128
1129         Reviewed by Darin Adler and Adam Barth.
1130
1131         Fix for <rdar://problem/9253454> Solar Walk For Mac: Info window is blank (HTML5 parser)
1132         https://bugs.webkit.org/show_bug.cgi?id=60685
1133
1134         Solar Walk uses a self closing title tag, so to match the behavior of the old parser, 
1135         we use a UserScript to write the contents of the title element to the end of the document so it can be re-parsed.
1136
1137         * Misc/SolarWalkQuirksUserScript.js: Added.
1138         * WebView/WebView.mm:
1139         (needsSolarWalkQuirksScript):
1140         (leakSolarWalkQuirksUserScriptContents):
1141         (-[WebView _injectSolarWalkQuirksScript]):
1142         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1143
1144 2011-05-12  Jia Pu  <jpu@apple.com>
1145
1146         Reviewed by Darin Adler.
1147
1148         Regression caused by changeset 86281
1149         https://bugs.webkit.org/show_bug.cgi?id=60712
1150         <rdar://problem/9427970>
1151
1152         Removed the condition variable. [NSSpellChecker dismissCorrectionIndicatorForView:] is blocking.
1153         So handleAcceptedReplacement() triggered by dismissInternal() will return before dismissInternal()
1154         returns. So we don't need to use the condition to coordinate between these two function. In fact,
1155         all callbacks are delivered on main thread. We don't really need any locking here.
1156
1157         Since now we don't have distinction between dismiss() and dismissSoon(). dismissSoon() has
1158         been removed.
1159
1160         * WebCoreSupport/CorrectionPanel.h:
1161         * WebCoreSupport/CorrectionPanel.mm:
1162         (CorrectionPanel::CorrectionPanel):
1163         (CorrectionPanel::show):
1164         (CorrectionPanel::dismiss):
1165         (CorrectionPanel::dismissInternal):
1166         (CorrectionPanel::handleAcceptedReplacement):
1167         * WebCoreSupport/WebEditorClient.mm:
1168         (WebEditorClient::dismissCorrectionPanelSoon):
1169
1170 2011-05-12  Patrick Gansterer  <paroga@webkit.org>
1171
1172         Reviewed by Adam Barth.
1173
1174         Enable OwnPtr strict mode in PluginHalter
1175         https://bugs.webkit.org/show_bug.cgi?id=60681
1176
1177         * WebView/WebView.mm:
1178         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1179
1180 2011-05-12  Nikolas Zimmermann  <nzimmermann@rim.com>
1181
1182         Reviewed by Darin Adler.
1183
1184         String operator+ reallocates unnecessarily when concatting > 2 strings
1185         https://bugs.webkit.org/show_bug.cgi?id=58420
1186
1187         Provide a faster String append operator. See Source/JavaScriptCore/ChangeLog for details.
1188
1189         * WebView/WebFrame.mm: Explicitely cast to Strings first, so operator NSString*() can be invoked.
1190         (-[WebFrame _stringWithDocumentTypeStringAndMarkupString:]):
1191
1192 2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
1193
1194         Reviewed by Darin Adler.
1195
1196         Perform some forward declarations suggested by include-what-you-use
1197         https://bugs.webkit.org/show_bug.cgi?id=60545
1198
1199         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1200         * WebView/WebFrame.mm:
1201
1202 2011-05-11  Jia Pu  <jpu@apple.com>
1203
1204         Reviewed by Darin Adler.
1205
1206         CorrectionPanel sometimes hangs in dismissSoon().
1207         https://bugs.webkit.org/show_bug.cgi?id=60599
1208         <rdar://problem/9313628>
1209
1210         Make sure dismissSoon() won't wait indefinitely if handleAcceptedReplacement() sets m_resultForSynchronousDismissal
1211         to nil. Added a designated variable m_isDismissing, instead of piggy-backing m_resultForSynchronousDismissal,
1212         for condition checking.
1213
1214         * WebCoreSupport/CorrectionPanel.h:
1215         * WebCoreSupport/CorrectionPanel.mm:
1216         (CorrectionPanel::CorrectionPanel):
1217         (CorrectionPanel::show):
1218         (CorrectionPanel::dismissSoon):
1219         (CorrectionPanel::dismissInternal):
1220         (CorrectionPanel::handleAcceptedReplacement):
1221
1222 2011-05-10  Anton D'Auria  <adauria@apple.com>
1223
1224         Reviewed by David Levin.
1225
1226         Add ApplicationCache API to get disk usage per origin
1227         https://bugs.webkit.org/show_bug.cgi?id=57127
1228
1229         Added Mac port API.
1230
1231         * WebCoreSupport/WebApplicationCache.h:
1232         * WebCoreSupport/WebApplicationCache.mm:
1233         (+[WebApplicationCache diskUsageForOrigin:]):
1234
1235 2011-05-10  Anton D'Auria  <adauria@apple.com>
1236
1237         Reviewed by Alexey Proskuryakov.
1238
1239         Add ApplicationCache API to get disk usage per origin
1240         https://bugs.webkit.org/show_bug.cgi?id=57127
1241
1242         Added Mac port API.
1243
1244         * WebCoreSupport/WebApplicationCache.h:
1245         * WebCoreSupport/WebApplicationCache.mm:
1246         (+[WebApplicationCache diskUsageForOrigin:]):
1247
1248 2011-05-10  Beth Dakin  <bdakin@apple.com>
1249
1250         Reviewed by Darin Adler.
1251
1252         https://bugs.webkit.org/show_bug.cgi?id=60582
1253         Crash switching overlay/non-overlay scrollbar preference still possible
1254         -and corresponding-
1255         <rdar://problem/9323983>
1256
1257         * WebCoreSupport/WebSystemInterface.mm:
1258         (InitWebCoreSystemInterface):
1259
1260 2011-05-09  Jeremy Noble  <jer.noble@apple.com>
1261
1262         Reviewed by Darin Adler.
1263
1264         Command-~/Exposé to another window while <video> is in full screen, breaks Safari, eventually leading to crash
1265         https://bugs.webkit.org/show_bug.cgi?id=60496
1266
1267         When animating into and out of full screen, order out and back in the original webView window,
1268         disabling animations when necessary.  The exitFullscreen method was targeting the wrong window,
1269         as the webView is hosted in the full screen window when we ask for it's parent window.
1270
1271         * WebView/WebFullScreenController.mm:
1272         (-[WebFullScreenController windowDidEnterFullscreen:]):
1273         (-[WebFullScreenController exitFullscreen]):
1274
1275 2011-05-04  Philippe Normand  <pnormand@igalia.com>
1276
1277         Reviewed by Dimitri Glazkov.
1278
1279         Implement LayoutTestController::pseudoShadowId()
1280         https://bugs.webkit.org/show_bug.cgi?id=60034
1281
1282         * DOM/WebDOMOperations.mm:
1283         (-[DOMElement _shadowPseudoId]):
1284         * DOM/WebDOMOperationsPrivate.h:
1285
1286 2011-05-05  Dan Bernstein  <mitz@apple.com>
1287
1288         Reviewed by Simon Fraser.
1289
1290         WebKit part of <rdar://problem/9155590> Broken animation in iAd producer
1291
1292         * WebCoreSupport/WebSystemInterface.mm:
1293         (InitWebCoreSystemInterface): Initialize wkExecutableWasLinkedOnOrBeforeSnowLeopard.
1294
1295 2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
1296
1297         Reviewed by Eric Seidel.
1298
1299         Rename SelectionController to FrameSelection
1300         https://bugs.webkit.org/show_bug.cgi?id=60234
1301
1302         * WebView/WebFrame.mm:
1303         (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
1304         * WebView/WebFrameInternal.h:
1305         * WebView/WebHTMLView.mm:
1306         * WebView/WebTextCompletionController.mm:
1307         (-[WebTextCompletionController doCompletion]):
1308         * WebView/WebView.mm:
1309
1310 2011-05-04  Cris Neckar  <cdn@chromium.org>
1311
1312         Reviewed by Adam Barth.
1313
1314         Expose WebView directly through ChromeClient.
1315         https://bugs.webkit.org/show_bug.cgi?id=49902
1316
1317         * WebCoreSupport/WebChromeClient.h:
1318         (WebChromeClient::webView):
1319         * WebView/WebFrame.mm:
1320         (kit):
1321
1322 2011-05-04  Tao Bai  <michaelbai@chromium.org>
1323
1324         Reviewed by David Kilzer.
1325
1326         Populate touch-icon url to FrameLoaderClient
1327         https://bugs.webkit.org/show_bug.cgi?id=59143
1328
1329         Respect the interface change in FrameLoaderClient.
1330
1331         * Configurations/FeatureDefines.xcconfig:
1332         * WebCoreSupport/WebFrameLoaderClient.h:
1333         * WebCoreSupport/WebFrameLoaderClient.mm:
1334         (WebFrameLoaderClient::dispatchDidChangeIcons):
1335
1336 2011-05-03  Julien Chaffraix  <jchaffraix@codeaurora.org>
1337
1338         Reviewed by Dimitri Glazkov.
1339
1340         Element:shadowRoot & Element::ensureShadowRoot should return ShadowRoot*
1341         https://bugs.webkit.org/show_bug.cgi?id=58703
1342
1343         * DOM/WebDOMOperations.mm: Added #include for ShadowRoot.h.
1344
1345 2011-05-02  Adam Roben  <aroben@apple.com>
1346
1347         Take advantage of implicit conversion from nullptr_t to PassOwnPtr
1348
1349         Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr
1350         doesn't work, but should
1351
1352         Reviewed by Adam Barth.
1353
1354         * History/WebHistory.mm:
1355         * Plugins/WebNetscapePluginEventHandler.mm:
1356         * WebView/WebView.mm:
1357
1358 2011-05-02  Brady Eidson  <beidson@apple.com>
1359
1360         Reviewed by Anders Carlsson.
1361
1362         <rdar://problem/9340945> and https://bugs.webkit.org/show_bug.cgi?id=59973
1363         In Aperture, a WebView might be dealloc'ed before it finishes loading.
1364
1365         * WebView/WebView.mm:
1366         (needsSelfRetainWhileLoadingQuirk):
1367         (-[WebView _didStartProvisionalLoadForFrame:]): If we need the quirk, retain self.
1368         (-[WebView _didFinishLoadForFrame:]): If we need the quirk, release self on a delay.
1369         (-[WebView _didFailLoadWithError:forFrame:]): Ditto.
1370         (-[WebView _didFailProvisionalLoadWithError:forFrame:]): Ditto.
1371
1372 2011-05-02  Adam Barth  <abarth@webkit.org>
1373
1374         Reviewed by David Levin.
1375
1376         PLATFORM(MAC) should (almost!) build with strict PassOwnPtr
1377         https://bugs.webkit.org/show_bug.cgi?id=59924
1378
1379         * History/WebHistory.mm:
1380         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]):
1381         * Plugins/WebBaseNetscapePluginView.mm:
1382         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
1383         * WebCoreSupport/WebFrameLoaderClient.mm:
1384         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
1385         * WebView/WebView.mm:
1386         (-[WebView _injectMailQuirksScript]):
1387         (-[WebView _injectOutlookQuirksScript]):
1388         (toStringVector):
1389
1390 2011-05-02  Sam Weinig  <sam@webkit.org>
1391
1392         Reviewed by Adam Barth.
1393
1394         Prune some #includes from DOMWindow.h
1395         https://bugs.webkit.org/show_bug.cgi?id=59907
1396
1397         * Plugins/WebBaseNetscapePluginView.mm:
1398         * WebView/WebFrame.mm:
1399         Add now missing SecurityOrigin.h #includes.
1400
1401 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
1402
1403         Reviewed by Eric Seidel.
1404
1405         Get rid of versions of sendContextMenuEvent and eventMayStartDrag that takes NSEvent
1406         https://bugs.webkit.org/show_bug.cgi?id=59837
1407
1408         Call sendContextMenuEvent and eventMayStartDrag with PlatformMouseEvent instead of NSEvent.
1409
1410         * WebView/WebHTMLView.mm:
1411         (-[WebHTMLView menuForEvent:]):
1412         (-[WebHTMLView acceptsFirstMouse:]):
1413         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
1414
1415 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
1416
1417         Reviewed by Eric Seidel.
1418
1419         Move currentKeyboardEvent from EventHandlerMac.mm to WebHTMLView.mm
1420         https://bugs.webkit.org/show_bug.cgi?id=59835
1421
1422         Moved currentKeyboardEvent.
1423
1424         * WebView/WebHTMLView.mm:
1425         (currentKeyboardEvent):
1426         (-[WebHTMLView becomeFirstResponder]):
1427
1428 2011-04-29  Dean Jackson  <dino@apple.com>
1429
1430         Reviewed by Simon Fraser.
1431
1432         Add ENABLE macro for WebKitAnimation
1433         https://bugs.webkit.org/show_bug.cgi?id=59729
1434
1435         Add new feature to toggle WebKit Animation API.
1436
1437         * Configurations/FeatureDefines.xcconfig:
1438
1439 2011-04-28  David Kilzer  <ddkilzer@apple.com>
1440
1441         <http://webkit.org/b/59758> Fix static analyzer warnings for missing assignment to 'self' in -init methods
1442
1443         Reviewed by Anders Carlsson.
1444
1445         * History/WebHistory.mm:
1446         (-[WebHistoryPrivate init]):
1447         * Misc/WebElementDictionary.mm:
1448         (-[WebElementDictionary initWithHitTestResult:]):
1449         * Misc/WebIconDatabase.mm:
1450         (-[WebIconDatabase init]):
1451         * Plugins/WebPluginController.mm:
1452         (-[WebPluginController initWithDocumentView:]):
1453         * Plugins/WebPluginRequest.m:
1454         (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
1455         * WebCoreSupport/WebEditorClient.mm:
1456         (-[WebEditCommand initWithEditCommand:]):
1457         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
1458         (-[WebJavaScriptTextInputPanel initWithPrompt:text:]):
1459         * WebView/WebNavigationData.mm:
1460         (-[WebNavigationData initWithURLString:title:originalRequest:response:hasSubstituteData:clientRedirectSource:]):
1461
1462 2011-04-28  David Levin  <levin@chromium.org>
1463
1464         Reviewed by Adam Barth.
1465
1466         Remove IMAGE_RESIZER related code.
1467         https://bugs.webkit.org/show_bug.cgi?id=59735
1468
1469         * Configurations/FeatureDefines.xcconfig:
1470
1471 2011-04-28  Adam Barth  <abarth@webkit.org>
1472
1473         Reviewed by Eric Seidel.
1474
1475         Remove WML
1476         https://bugs.webkit.org/show_bug.cgi?id=59678
1477
1478         Remove WML-related configuration options and private APIs.
1479
1480         * Configurations/FeatureDefines.xcconfig:
1481         * WebCoreSupport/WebChromeClient.mm:
1482         (stringForMessageSource):
1483         * WebView/WebFramePrivate.h:
1484         * WebView/WebUIDelegatePrivate.h:
1485
1486 2011-04-28  Brian Weinstein  <bweinstein@apple.com>
1487
1488         Reviewed by Timothy Hatcher.
1489
1490         Web Inspector: REGRESSION(85051): Develop Menu items are wrong when inspector is frontmost window
1491         https://bugs.webkit.org/show_bug.cgi?id=59747
1492
1493         Restore functions that were removed in r85051. They were needed when the inspector is the frontmost window.
1494         Also update them to call _inspectedWebView.get() - since it's a RetainPtr now.
1495
1496         * WebCoreSupport/WebInspectorClient.mm:
1497         (-[WebInspectorWindowController showWebInspector:]):
1498         (-[WebInspectorWindowController showErrorConsole:]):
1499         (-[WebInspectorWindowController toggleDebuggingJavaScript:]):
1500         (-[WebInspectorWindowController toggleProfilingJavaScript:]):
1501         (-[WebInspectorWindowController validateUserInterfaceItem:]):
1502
1503 2011-04-28  David Kilzer  <ddkilzer@apple.com>
1504
1505         <http://webkit.org/b/59725> -[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:] leaks a CALayer
1506
1507         Reviewed by Dan Bernstein.
1508
1509         * WebView/WebFullScreenController.mm:
1510         (-[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:]):
1511         Use a RetainPtr to hold the CALayer and to fix the leak.
1512
1513 2011-04-28  David Kilzer  <ddkilzer@apple.com>
1514
1515         Follow-up fix: <http://webkit.org/b/59727> -[WebPDFView menuForEvent:] leaks NSMenuItem objects
1516
1517         Addresses review comment from Darin Adler.
1518
1519         * WebView/WebPDFView.mm:
1520         (-[WebPDFView menuForEvent:]): Use a local variable and -release
1521         instead of -autorelease.
1522
1523 2011-04-28  Anders Carlsson  <andersca@apple.com>
1524
1525         Fix a thinko - separateRealmLabel is not an NSImageView.
1526
1527         * Panels/WebAuthenticationPanel.h:
1528
1529 2011-04-28  David Kilzer  <ddkilzer@apple.com>
1530
1531         <http://webkit.org/b/59727> -[WebPDFView menuForEvent:] leaks NSMenuItem objects
1532
1533         Reviewed by Dan Bernstein.
1534
1535         * WebView/WebPDFView.mm:
1536         (-[WebPDFView menuForEvent:]): Call -autorelease after copying
1537         each NSMenuItem.  Regressed in r9566 for Bug 3711.
1538
1539 2011-04-28  Enrica Casucci  <enrica@apple.com>
1540
1541         Reviewed by Beth Dakin.
1542
1543         Momentum scroll tweak for WebKit.
1544         https://bugs.webkit.org/show_bug.cgi?id=59723
1545         <rdar://problem/9259933>
1546
1547         * WebView/WebDynamicScrollBarsView.mm:
1548         (-[WebDynamicScrollBarsView scrollWheel:]): Changed constant.
1549
1550 2011-04-27  Anders Carlsson  <andersca@apple.com>
1551
1552         Follow-up Leopard build fix.
1553
1554         * Carbon/HIViewAdapter.m:
1555         (_webkit_NSView_setNeedsDisplayInRect):
1556
1557 2011-04-27  Anders Carlsson  <andersca@apple.com>
1558
1559         More clang++ 32-bit build fixes.
1560
1561         * Carbon/CarbonWindowAdapter.mm:
1562         (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
1563         (-[CarbonWindowAdapter setContentView:]):
1564         (-[CarbonWindowAdapter _handleContentBoundsChanged]):
1565         * Carbon/HIViewAdapter.m:
1566         (_webkit_NSView_setNeedsDisplayInRect):
1567         * Panels/WebAuthenticationPanel.h:
1568         * Plugins/WebBaseNetscapePluginView.mm:
1569         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
1570         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1571         (getCarbonEvent):
1572         * WebCoreSupport/WebChromeClient.mm:
1573         (WebChromeClient::scrollRectIntoView):
1574         * WebCoreSupport/WebViewFactory.mm:
1575         (-[WebViewFactory accessibilityConvertScreenRect:]):
1576         * WebView/WebFrameView.mm:
1577         (-[WebFrameView _scrollToBeginningOfDocument]):
1578         (-[WebFrameView _scrollToEndOfDocument]):
1579         * WebView/WebFullScreenController.mm:
1580         (-[WebFullScreenController windowDidEnterFullscreen:]):
1581         * WebView/WebHTMLView.mm:
1582         (-[WebHTMLView _hitViewForEvent:]):
1583         (coreGraphicsScreenPointForAppKitScreenPoint):
1584         * WebView/WebPDFView.mm:
1585         (-[WebPDFView setScrollPoint:]):
1586
1587 2011-04-27  Yury Semikhatsky  <yurys@chromium.org>
1588
1589         Reviewed by Pavel Feldman.
1590
1591         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
1592         https://bugs.webkit.org/show_bug.cgi?id=44230
1593
1594         Use RetainPtr access inspected view from the inspector one to avoid inspected view being deleted before
1595         inspector is closed.
1596
1597         * WebCoreSupport/WebInspectorClient.mm: store reference to inspected view in RetainPtr. Despite the removed
1598         comment in initWithInspectedWebView this doesn't introduce cyclic reference since there are no retaining
1599         pointers to the WebInspectorWindowController from the inspected page or from the WebInspectorClient.
1600         There is only one reference to it from WebInspectorFrontendClient which is held by the inspector
1601         front-end page.
1602
1603         Drive-by fix: removed several unused methods which are currently implemented in mac/WebInspector/WebInspector.mm
1604         (-[WebInspectorWindowController initWithInspectedWebView:]):
1605         (-[WebInspectorWindowController close]):
1606         (-[WebInspectorWindowController showWindow:]):
1607         (-[WebInspectorWindowController setAttachedWindowHeight:]):
1608         (-[WebInspectorWindowController destroyInspectorView:]):
1609
1610 2011-04-26  Sam Weinig  <sam@webkit.org>
1611
1612         Reviewed by David Hyatt.
1613
1614         Remove Datagrid from the tree
1615         https://bugs.webkit.org/show_bug.cgi?id=59543
1616
1617         * Configurations/FeatureDefines.xcconfig:
1618         Remove feature.
1619
1620 2011-04-26  Dan Bernstein  <mitz@apple.com>
1621
1622         Reviewed by Mark Rowe.
1623
1624         Choose the compiler based on the Xcode version for Snow Leopard debug builds.
1625
1626         * Configurations/Base.xcconfig:
1627         * Configurations/CompilerVersion.xcconfig: Added.
1628
1629 2011-04-25  Adam Barth  <abarth@webkit.org>
1630
1631         Reviewed by David Levin.
1632
1633         WebKit2 should play nice with strict OwnPtrs
1634         https://bugs.webkit.org/show_bug.cgi?id=59426
1635
1636         Fix include ordering.
1637
1638         * WebView/WebDeviceOrientationProviderMock.mm:
1639
1640 2011-04-25  Adam Barth  <abarth@webkit.org>
1641
1642         Reviewed by David Levin.
1643
1644         WebKit1 should build cleanly with strict OwnPtrs
1645         https://bugs.webkit.org/show_bug.cgi?id=59424
1646
1647         * History/WebHistoryItem.mm:
1648         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1649         * Plugins/WebNetscapePluginEventHandler.h:
1650         * Plugins/WebNetscapePluginEventHandler.mm:
1651         (WebNetscapePluginEventHandler::create):
1652         * Plugins/WebNetscapePluginView.mm:
1653         (-[WebNetscapePluginView createPlugin]):
1654         * WebView/WebDeviceOrientationProviderMock.mm:
1655         * WebView/WebTextIterator.mm:
1656         (-[WebTextIterator initWithRange:]):
1657
1658 2011-04-25  Jon Lee  <jonlee@apple.com>
1659
1660         Reviewed by Maciej Stachowiak.
1661
1662         Overlay scroller hard to see on pages with dark background (59183)
1663         https://bugs.webkit.org/show_bug.cgi?id=59183
1664         <rdar://problem/8975367>
1665         
1666         * WebCoreSupport/WebSystemInterface.mm:
1667         (InitWebCoreSystemInterface): adding method to allow changing style
1668
1669 2011-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>
1670
1671         Unreviewed, rolling out r84740.
1672         http://trac.webkit.org/changeset/84740
1673         https://bugs.webkit.org/show_bug.cgi?id=59290
1674
1675         change breaks apple internal builds and is incorrect
1676         (Requested by smfr on #webkit).
1677
1678         * WebCoreSupport/WebSystemInterface.mm:
1679         (InitWebCoreSystemInterface):
1680
1681 2011-04-22  Jon Lee  <jonlee@apple.com>
1682
1683         Reviewed by Beth Dakin.
1684
1685         Overlay scroller hard to see on pages with dark background (59183)
1686         https://bugs.webkit.org/show_bug.cgi?id=59183
1687         <rdar://problem/8975367>
1688         
1689         * WebCoreSupport/WebSystemInterface.mm:
1690         (InitWebCoreSystemInterface): adding method to allow changing style
1691
1692 2011-04-19  Jer Noble  <jer.noble@apple.com>
1693
1694         Reviewed by Daniel Bates.
1695
1696         Full Screen from within an <iframe> does not cause <iframe> to resize.
1697         https://bugs.webkit.org/show_bug.cgi?id=58638
1698
1699         Tests: fullscreen/full-screen-frameset-allowed.html
1700                fullscreen/full-screen-frameset-not-allowed.html
1701
1702         Return the _element's document instead of the WKView's document, which 
1703         will be different in the case of elements within <iframe>s.
1704
1705         * WebView/WebFullScreenController.mm:
1706         (-[WebFullScreenController _document]):
1707
1708 2011-04-22  Jer Noble  <jer.noble@apple.com>
1709
1710         Reviewed by Maciej Stachowiak.
1711
1712         Disable MediaPlayerPrivateAVFoundation when using old full screen mode.
1713         https://bugs.webkit.org/show_bug.cgi?id=59147
1714
1715         Add a new user default preference, and plumb that preference down to WebCore
1716         Settings. Allow the fullScreenEnabled preference to override the new 
1717         isAVFoundationEnabled preference, so that clients of the legacy full screen
1718         mode will continue to use that mode normally.
1719
1720         * WebView/WebPreferenceKeysPrivate.h: Add new preference key.
1721         * WebView/WebPreferences.mm:
1722         (+[WebPreferences initialize]): Set the default value of new
1723             preference.
1724         (-[WebPreferences setAVFoundationEnabled:]): Added.
1725         (-[WebPreferences isAVFoundationEnabled]): Added.
1726         * WebView/WebPreferencesPrivate.h:
1727         * WebView/WebView.mm:
1728         (-[WebView _preferencesChanged:]): Update the WebCore settings with the
1729             new values from WebPreferences.
1730
1731 2011-04-22  Sam Weinig  <sam@webkit.org>
1732
1733         Reviewed by Gavin Barraclough.
1734
1735         Remove remaining uses of deprecated version of toJS
1736         https://bugs.webkit.org/show_bug.cgi?id=59170
1737
1738         * DOM/WebDOMOperations.mm:
1739         (-[DOMElement _shadowRoot:]):
1740         (-[DOMElement _ensureShadowRoot:]):
1741         Replace use of deprecated toJS overload with explicit call to deprecatedGlobalObjectForPrototype.
1742
1743 2011-04-21  Maciej Stachowiak  <mjs@apple.com>
1744
1745         Reviewed by Adam Roben.
1746
1747         Add a feature define to allow <details> and <summary> to be disabled
1748         https://bugs.webkit.org/show_bug.cgi?id=59118
1749         <rdar://problem/9257045>
1750
1751         * Configurations/FeatureDefines.xcconfig:
1752
1753 2011-04-21  Ryosuke Niwa  <rniwa@webkit.org>
1754
1755         Reviewed by Sam Weinig.
1756
1757         Add Frame* to the argument lists of canCopyCut and canPaste
1758         https://bugs.webkit.org/show_bug.cgi?id=59153
1759
1760         * WebCoreSupport/WebEditorClient.h:
1761         * WebCoreSupport/WebEditorClient.mm:
1762         (WebEditorClient::canCopyCut):
1763         (WebEditorClient::canPaste):
1764
1765 2011-04-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1766
1767         Unreviewed, rolling out r82052.
1768         http://trac.webkit.org/changeset/82052
1769         https://bugs.webkit.org/show_bug.cgi?id=59135
1770
1771         New full screen api should be opt-in, not opt-out. (Requested
1772         by jernoble on #webkit).
1773
1774         * WebView/WebPreferences.mm:
1775         (+[WebPreferences initialize]):
1776
1777 2011-04-21  Beth Dakin  <bdakin@apple.com>
1778
1779         Reviewed by Dan Bernstein.
1780
1781         https://bugs.webkit.org/show_bug.cgi?id=59048
1782         Need to track whether overlay scrollbar is currently visible and in lower-
1783         righthand corner
1784         -and corresponding-
1785         <rdar://problem/9211232>
1786
1787         A new WebSystemInterface is needed for this.
1788         * WebCoreSupport/WebSystemInterface.mm:
1789         (InitWebCoreSystemInterface):
1790
1791 2011-04-21  Dirk Schulze  <krit@webkit.org>
1792
1793         Reviewed by Nikolas Zimmermann.
1794
1795         SVG feDropShadow implementation of SVG Filters 1.2
1796         https://bugs.webkit.org/show_bug.cgi?id=52513
1797
1798         * MigrateHeaders.make:
1799
1800 2011-04-20  Dominic Cooney  <dominicc@chromium.org>
1801
1802         Reviewed by Dimitri Glazkov.
1803
1804         layoutTestController can create and destroy shadow DOM
1805         https://bugs.webkit.org/show_bug.cgi?id=59058
1806
1807         Support for new methods in Mac DRT.
1808
1809         * DOM/WebDOMOperations.mm:
1810         (-[DOMElement _ensureShadowRoot:]):
1811         (-[DOMElement _removeShadowRoot]):
1812         * DOM/WebDOMOperationsPrivate.h:
1813
1814 2011-04-20  Eric Carlson  <eric.carlson@apple.com>
1815
1816         Reviewed by Dan Bernstein.
1817
1818         Adopt QTKit API for listing and deleting file in its media cache.
1819         <rdar://problem/9130029> 
1820
1821         * WebCoreSupport/WebSystemInterface.mm:
1822         (InitWebCoreSystemInterface): Initialize new functions.
1823
1824 2011-04-19  Matthew Delaney  <mdelaney@apple.com>
1825
1826         Reviewed by Simon Fraser.
1827
1828         WebPreferences in WebKit1 should have CanvasUsesAcceleratedDrawing set to NO by default
1829         https://bugs.webkit.org/show_bug.cgi?id=58936
1830
1831         * WebView/WebPreferences.mm:
1832         (+[WebPreferences initialize]):
1833
1834 2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
1835
1836         Reviewed by Pavel Feldman.
1837
1838         Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
1839         https://bugs.webkit.org/show_bug.cgi?id=58883
1840
1841         * WebCoreSupport/WebFrameLoaderClient.h:
1842         * WebCoreSupport/WebFrameLoaderClient.mm:
1843         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
1844
1845 2011-04-18  Jia Pu  <jpu@apple.com>
1846
1847         Reviewed by Mark Rowe.
1848
1849         WebKit needs to stop importing <AppKit/NSTextChecker.h>
1850         https://bugs.webkit.org/show_bug.cgi?id=58798
1851         <rdar://problem/9294938>
1852
1853         Use public header <AppKit/NSSpellChecker.h> instead.
1854
1855         * WebCoreSupport/CorrectionPanel.h:
1856         * WebCoreSupport/CorrectionPanel.mm:
1857         (correctionIndicatorType):
1858         (CorrectionPanel::show):
1859         (CorrectionPanel::dismissInternal):
1860         (CorrectionPanel::handleAcceptedReplacement):
1861         * WebCoreSupport/WebEditorClient.mm:
1862         * WebView/WebView.mm:
1863
1864 2011-04-17  Cameron Zwarich  <zwarich@apple.com>
1865
1866         Reviewed by Timothy Hatcher.
1867
1868         Stop using -[NSString initWithContentsOfFile:]
1869         https://bugs.webkit.org/show_bug.cgi?id=58763
1870
1871         -[NSString initWithContentsOfFile:] was deprecated in 10.4, so we should stop using it.
1872
1873         * WebView/WebView.mm:
1874         (leakMailQuirksUserScriptContents):
1875         (leakOutlookQuirksUserScriptContents):
1876
1877 2011-04-17  David Kilzer  <ddkilzer@apple.com>
1878
1879         <http://webkit.org/b/58463> Switch HTTP pipelining from user default to private setting
1880         <rdar://problem/9268729>
1881
1882         Reviewed by Dan Bernstein.
1883
1884         This replaces support for the WebKitEnableHTTPPipelining user
1885         default with methods on the WebCore::ResourceRequest class in
1886         WebCore, the WebView class in WebKit1, and the WebContext class
1887         in WebKit2.  It also removes support for the
1888         WebKitForceHTTPPipeliningPriorityHigh user default which was not
1889         needed.
1890
1891         * WebView/WebView.mm:
1892         (+[WebView(WebPrivate) _HTTPPipeliningEnabled]): Added.
1893         (+[WebView(WebPrivate) _setHTTPPipeliningEnabled:]): Added.
1894         * WebView/WebViewPrivate.h:
1895         (+[WebView(WebPrivate) _HTTPPipeliningEnabled]): Added declaration.
1896         (+[WebView(WebPrivate) _setHTTPPipeliningEnabled:]): Added declaration.
1897
1898 2011-04-17  Joseph Pecoraro  <joepeck@webkit.org>
1899
1900         Reviewed by Dan Bernstein.
1901
1902         Assign to self in WebInspectorWindowController constructors
1903         https://bugs.webkit.org/show_bug.cgi?id=58749
1904
1905         * WebCoreSupport/WebInspectorClient.mm:
1906         (-[WebInspectorWindowController init]):
1907         (-[WebInspectorWindowController initWithInspectedWebView:]):
1908
1909 2011-04-17  Joseph Pecoraro  <joepeck@webkit.org>
1910
1911         Reviewed by Timothy Hatcher.
1912
1913         Move WebNodeHighlighter into its own file
1914         https://bugs.webkit.org/show_bug.cgi?id=58746
1915
1916         Extract this class into its own file alongside the
1917         other WebNodeHighlight files. In doing so do some
1918         cleanup on WebInspectorClient removing some methods
1919         that were never called.
1920
1921         * WebCoreSupport/WebInspectorClient.mm:
1922         (WebInspectorClient::WebInspectorClient): style fix.
1923         * WebInspector/WebNodeHighlighter.h: Added.
1924         * WebInspector/WebNodeHighlighter.mm: Added.
1925         (-[WebNodeHighlighter initWithInspectedWebView:]): call super init.
1926         (-[WebNodeHighlighter dealloc]):
1927         (-[WebNodeHighlighter highlightNode:]):
1928         (-[WebNodeHighlighter hideHighlight]):
1929         (-[WebNodeHighlighter didAttachWebNodeHighlight:]):
1930         (-[WebNodeHighlighter willDetachWebNodeHighlight:]):
1931
1932 2011-04-15  Jia Pu  <jpu@apple.com>
1933
1934         Reviewed by Dan Bernstein.
1935
1936         [Mac] WebKit needs to convert the bounding box of autocorrected word to view coordinate.
1937         https://bugs.webkit.org/show_bug.cgi?id=58717
1938
1939         Convert the bounding box from window coordinate to view coordinate, which is expected by NSCorrectionPanel.
1940
1941         * WebCoreSupport/CorrectionPanel.mm:
1942         (CorrectionPanel::show):
1943
1944 2011-04-15  Shishir Agrawal  <shishir@chromium.org>
1945
1946         Reviewed by James Robinson.
1947
1948         Add a flag to guard Page Visibility API changes.
1949         https://bugs.webkit.org/show_bug.cgi?id=58464
1950
1951         * Configurations/FeatureDefines.xcconfig:
1952
1953 2011-04-15  Oliver Hunt  <oliver@apple.com>
1954
1955         GC allocate Structure
1956         https://bugs.webkit.org/show_bug.cgi?id=58483
1957
1958         Rolling r83894 r83827 r83810 r83809 r83808 back in with
1959         a workaround for the gcc bug seen by the gtk bots
1960
1961         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1962         * Plugins/Hosted/ProxyInstance.mm:
1963         (WebKit::ProxyRuntimeMethod::createStructure):
1964         * Plugins/Hosted/ProxyRuntimeObject.h:
1965         (WebKit::ProxyRuntimeObject::createStructure):
1966
1967 2011-04-14  Alexey Proskuryakov  <ap@apple.com>
1968
1969         Reviewed by Dan Bernstein.
1970
1971         WebKit2: Password field input does not switch to ASCII-compatible source
1972         https://bugs.webkit.org/show_bug.cgi?id=58583
1973         <rdar://problem/9059651>
1974
1975         Now that WebCore doesn't set secure input mode, WebKit has to. Happily, it already has the
1976         necessary logic, needed to return a nil text input context when in password fields.
1977
1978         * WebView/WebHTMLView.mm:
1979         (-[WebHTMLView close]): If the view is still enforcing secure event mode, stop.
1980         (-[WebHTMLView windowDidBecomeKey:]): Call _updateSecureInputState.
1981         (-[WebHTMLView windowDidResignKey:]): Ditto.
1982         (-[WebHTMLView becomeFirstResponder]): Call _updateSecureInputState. It's a bit tricky
1983         because the first responder is still different an this point, so set a boolean variable to
1984         let _updateSecureInputState know what's going on.
1985         (-[WebHTMLView resignFirstResponder]): Disable secure event mode if it's on.
1986         (-[WebHTMLView _updateSecureInputState]): Update HIToolbox secure event input state and
1987         allowed input sources accorsing to current selection.
1988         (-[WebHTMLView _updateSelectionForInputManager]): Call _updateSecureInputState.
1989
1990 2011-04-15  Sam Weinig  <sam@webkit.org>
1991
1992         Reviewed by Maciej Stachowiak.
1993
1994         Make mac WebKit1 use the default localization strategy
1995         https://bugs.webkit.org/show_bug.cgi?id=58628
1996
1997         * WebCoreSupport/WebPlatformStrategies.h:
1998         * WebCoreSupport/WebPlatformStrategies.mm:
1999         Remove the localization strategy code. The equivalent is now
2000         in WebCore/platform/DefaultLocalizationStrategy.cpp.
2001
2002 2011-04-15  Anna Cavender  <annacc@chromium.org>
2003
2004         Reviewed by Eric Carlson.
2005
2006         Renaming TRACK feature define to VIDEO_TRACK
2007         https://bugs.webkit.org/show_bug.cgi?id=53556
2008
2009         * Configurations/FeatureDefines.xcconfig:
2010
2011 2011-04-14  Pratik Solanki  <psolanki@apple.com>
2012
2013         Reviewed by David Kilzer.
2014
2015         Set minimum priority for fast lane connections
2016         https://bugs.webkit.org/show_bug.cgi?id=58353
2017
2018         * WebCoreSupport/WebSystemInterface.mm:
2019         (InitWebCoreSystemInterface): Support for new WKSI method WKSetHTTPPipeliningMinimumFastLanePriority.
2020
2021 2011-04-13  Sam Weinig  <sam@webkit.org>
2022
2023         Reviewed by Gavin Barraclough.
2024
2025         WebKit2 doesn't keep overlay scrollers shown while scroll gesture held
2026         <rdar://problem/9260518>
2027
2028         * WebCoreSupport/WebSystemInterface.mm:
2029         (InitWebCoreSystemInterface):
2030         Initialize new WKSI functions.
2031
2032 2011-04-13  David Kilzer  <ddkilzer@apple.com>
2033
2034         <http://webkit.org/b/58172> Fix -Wcast-align warning in WebBasePluginPackage.mm
2035
2036         Reviewed by Anders Carlsson.
2037
2038         Fixes the following warning with -Wcast-align enabled:
2039
2040             Source/WebKit/mac/Plugins/WebBasePluginPackage.mm:402:21:{402:21-402:93}{402:39-402:93}: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'struct fat_arch *' increases required alignment from 1 to 4 [-Werror,-Wcast-align,3]
2041                          archs = (struct fat_arch*)((uint8_t*)rawData.data() + sizeof(struct fat_header));
2042                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2043
2044         * Plugins/WebBasePluginPackage.mm:
2045         (-[WebBasePluginPackage isNativeLibraryData:]): Added
2046         COMPILE_ASSERT() to make sure our pointer math is valid.
2047         Removed cast to (uint8_t*) and divide sizeof(struct fat_header)
2048         by sizeof(uint32_t) to fix the pointer math.  Replaced C-style
2049         casts with reinterpret_cast.
2050
2051 2011-04-12  Enrica Casucci  <enrica@apple.com>
2052
2053         Reviewed by Alexey Proskuryakov.
2054
2055         Infinite recursion in WebHTMLView executeSavedKeypressCommands.
2056         https://bugs.webkit.org/show_bug.cgi?id=58382
2057         <rdar://problem/9239370>
2058
2059         Execution of some editing commands could trigger a call to selectedRange that
2060         internally calls executeSavedKeypressCommands creating an infinite recursion.
2061
2062         * WebView/WebHTMLView.mm:
2063         (-[WebHTMLView _executeSavedKeypressCommands]): Added a flag to avoid recursion.
2064         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Added flag initialization.
2065
2066 2011-04-12  Alice Liu  <alice.liu@apple.com>
2067
2068         Reviewed by Sam Weinig.
2069
2070         https://bugs.webkit.org/show_bug.cgi?id=58292
2071         Provide new setting to allow site icon loading despite disabling automatic image loading in general.
2072
2073         * WebView/WebPreferenceKeysPrivate.h: Add preference key.
2074         * WebView/WebPreferences.mm:
2075         (+[WebPreferences initialize]): Initialize to false.
2076         (-[WebPreferences setLoadsSiteIconsIgnoringImageLoadingPreference:]): Added.
2077         (-[WebPreferences loadsSiteIconsIgnoringImageLoadingPreference]): Added.
2078         * WebView/WebPreferencesPrivate.h: Add setter/getter definitions.
2079         * WebView/WebView.mm:
2080         (-[WebView _preferencesChanged:]): Add to settings that get propagated upon changes. 
2081
2082 2011-04-11  Alexey Proskuryakov  <ap@apple.com>
2083
2084         Reviewed by Maciej Stachowiak.
2085
2086         WebKit2: Safari doesn't respect cmd-arrows (and variations) as custom keyboard shortcuts
2087         https://bugs.webkit.org/show_bug.cgi?id=58175
2088         <rdar://problem/9060555>
2089
2090         * WebView/WebFrameView.mm: (-[WebFrameView keyDown:]): Added a comment explaining how this
2091         should be changed to match WebKit2.
2092
2093 2011-04-06  Timothy Hatcher  <timothy@apple.com>
2094
2095         Fix a bug where the context menu does not show in PDF documents if there is no
2096         UI delegate or the UI delegate does not respond to the context menu selector.
2097
2098         https://webkit.org/b/57958
2099
2100         Reviewed by Darin Adler.
2101
2102         * WebView/WebView.mm:
2103         (-[WebView _menuForElement:defaultItems:]): CallUIDelegate returns nil
2104         if UIDelegate is nil or doesn't respond to the selector. So check that
2105         here to distinguish between using defaultMenuItems or the delegate
2106         really returning nil to say "no context menu".
2107
2108 2011-04-11  Jer Noble  <jer.noble@apple.com>
2109
2110         Unreviewed; roll out unintentional change to WebFullScreenController.mm.
2111
2112         * WebView/WebFullScreenController.mm:
2113         (-[WebFullScreenController enterFullscreen:]):
2114
2115 2011-04-08  Geoffrey Garen  <ggaren@apple.com>
2116
2117         Reviewed by Oliver Hunt.
2118
2119         A few heap-related renames and file moves.
2120         
2121         WeakGCPtr<T> => Weak<T>
2122         Global<T> => Strong<T>
2123         collector/ => heap/
2124         collector/* => heap/*
2125         runtime/WeakGCPtr.h => heap/Weak.h
2126         
2127         (Eventually, even more files should move into the heap directory. Like
2128         Heap.h and Heap.cpp, for example.)
2129
2130         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2131         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2132         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
2133         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
2134         (WebKit::NetscapePluginInstanceProxy::evaluate):
2135         * WebView/WebScriptDebugger.h:
2136
2137 2011-04-08  Alexey Proskuryakov  <ap@apple.com>
2138
2139         Reviewed by Darin Adler.
2140
2141         WebKit2: Safari doesn't respect cmd-arrows (and variations) as custom keyboard shortcuts
2142         https://bugs.webkit.org/show_bug.cgi?id=58175
2143         <rdar://problem/9060555>
2144
2145         * WebView/WebFrameView.mm: (-[WebFrameView keyDown:]): Added a comment explaining how this
2146         should be changed to match WebKit2.
2147
2148 2011-04-08  Alpha Lam  <hclam@chromium.org>
2149
2150         Unreviewed, rolling out r83335.
2151         http://trac.webkit.org/changeset/83335
2152         https://bugs.webkit.org/show_bug.cgi?id=53556
2153
2154         GTK and QT bots are broken
2155
2156         * Configurations/FeatureDefines.xcconfig:
2157
2158 2011-04-07  Anna Cavender  <annacc@chromium.org>
2159
2160         Reviewed by Eric Carlson.
2161
2162         Setup ENABLE(TRACK) feature define
2163         https://bugs.webkit.org/show_bug.cgi?id=53556
2164
2165         * Configurations/FeatureDefines.xcconfig:
2166
2167 2011-04-08  Maciej Stachowiak  <mjs@apple.com>
2168
2169         Reviewed by Darin Adler.
2170
2171         -[WebView setPreferences:] can take a lot of time if loading lots of webviews at once
2172         https://bugs.webkit.org/show_bug.cgi?id=58128
2173         <rdar://problem/9244553>
2174         
2175         The root of the problem here was an O(N^2) issue - each WebView,
2176         upon having its preferences initialized, would broadcast a
2177         notification that was listened to by all other WebViews sharing
2178         its preferences.
2179         
2180         To maintain the API contract, I split the notification into two,
2181         one that is for public API consumption, and the other which is for
2182         internal use only. Changes that don't need to be picked up by
2183         other WebViews broadcast the public notification only. And we
2184         avoid WebView broadcasting a notification just to get itself to
2185         update.
2186
2187         * Misc/WebIconDatabase.mm:
2188         (-[WebIconDatabase _startUpIconDatabase]):
2189         (-[WebIconDatabase _shutDownIconDatabase]):
2190         * Plugins/WebBaseNetscapePluginView.mm:
2191         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
2192         (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
2193         (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
2194         (-[WebBaseNetscapePluginView viewWillMoveToHostWindow:]):
2195         * WebView/WebPreferences.mm:
2196         (-[WebPreferences initWithIdentifier:]):
2197         (-[WebPreferences _setStringValue:forKey:]):
2198         (-[WebPreferences _setIntegerValue:forKey:]):
2199         (-[WebPreferences _setFloatValue:forKey:]):
2200         (-[WebPreferences _setBoolValue:forKey:]):
2201         (-[WebPreferences _setLongLongValue:forKey:]):
2202         (-[WebPreferences _setUnsignedLongLongValue:forKey:]):
2203         (-[WebPreferences _postPreferencesChangedNotification]):
2204         (-[WebPreferences _postPreferencesChangedAPINotification]):
2205         * WebView/WebPreferencesPrivate.h:
2206         * WebView/WebView.mm:
2207         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2208         (-[WebView _preferencesChangedNotification:]):
2209         (-[WebView _preferencesChanged:]):
2210         (-[WebView setUsesPageCache:]):
2211         (+[WebView initialize]):
2212         (-[WebView setPreferences:]):
2213         (-[WebView _keyboardUIMode]):
2214         * WebView/WebViewInternal.h:
2215
2216 2011-04-07  Andrew Scherkus  <scherkus@chromium.org>
2217
2218         Revert ENABLE_TRACK patch due to compile failures.
2219
2220         * Configurations/FeatureDefines.xcconfig:
2221
2222 2011-04-07  Alexey Proskuryakov  <ap@apple.com>
2223
2224         Reviewed by Anders Carlsson.
2225
2226         REGRESSION (WebKit2): Reverse conversion doesn't work in Kotoeri
2227         https://bugs.webkit.org/show_bug.cgi?id=58066
2228         <rdar://problem/8965302>
2229
2230         * WebView/WebHTMLRepresentation.mm:
2231         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
2232         * WebView/WebHTMLView.mm:
2233         (-[WebHTMLView attributedSubstringFromRange:]):
2234         (-[WebHTMLView attributedString]):
2235         (-[WebHTMLView selectedAttributedString]):
2236         Updated for editingAttributedStringFromRange: now taking a WebCore::Range instead of DOMRange.
2237
2238 2011-04-07  Andy Estes  <aestes@apple.com>
2239
2240         Reviewed by Darin Adler.
2241
2242         REGRESSION (r64712): Microsoft Outlook 2011: original message contents
2243         not included when replying to an email.
2244         https://bugs.webkit.org/show_bug.cgi?id=57794
2245         
2246         Outlook populates a reply message by creating an empty WebView and
2247         using DOM API to populate the WebView's empty document with content
2248         from the original message. It expects the initial empty document to
2249         simply be "<html></html>", and it proceeds to dynamically create and
2250         append a BODY node and add the original message content as a child of
2251         that node. Outlook then takes the innerHTML of the frame's first body
2252         element and copies it into a *new* document that is displayed and
2253         edited in the reply message window.
2254         
2255         Due to implementing the HTML5 tree building algorithm in r64712,
2256         initial empty documents went from being "<html></html>" to being
2257         "<html><head></head><body></body></html>". Outlook still dynamically
2258         creates a BODY node to parent the original message content, but this
2259         BODY node duplicates the one created by the tree builder. When Outlook
2260         then takes the innerHTML of the first body element to populate the
2261         reply message window it gets the empty body element created by the
2262         parser, not the one it created with the original message content.
2263         
2264         Fix this by injecting a user script into the initial empty document
2265         that removes the HEAD and BODY nodes created by the parser. This
2266         ensures that the BODY created by Outlook is the only BODY in the
2267         document.
2268
2269         * Misc/OutlookQuirksUserScript.js: Added.
2270         * WebView/WebView.mm:
2271         (leakMailQuirksUserScriptContents):
2272         (-[WebView _injectMailQuirksScript]):
2273         (needsOutlookQuirksScript):
2274         (leakOutlookQuirksUserScriptContents):
2275         (-[WebView _injectOutlookQuirksScript]):
2276         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2277
2278 2011-04-06  Dai Mikurube  <dmikurube@chromium.org>
2279
2280         Reviewed by David Levin.
2281
2282         Add QUOTA build flag for unified quota API
2283         https://bugs.webkit.org/show_bug.cgi?id=57918
2284
2285         * Configurations/FeatureDefines.xcconfig: Added QUOTA build flag
2286
2287 2011-04-06  Robert Sesek  <rsesek@chromium.org>
2288
2289         Reviewed by Alexey Proskuryakov.
2290
2291         Move code duplicated between the WebKit/mac and WebKit2 down to WebCore because Chromium will need it too
2292         https://bugs.webkit.org/show_bug.cgi?id=54969
2293
2294         * WebView/WebFrame.mm:
2295         (-[WebFrame _convertToNSRange:]): Moved duplicated code to WebCore
2296         (-[WebFrame _characterRangeAtPoint:]): Moved duplicated code to WebCore
2297
2298 2011-04-05  Alexey Proskuryakov  <ap@apple.com>
2299
2300         Reviewed by Darin Adler.
2301
2302         Move attributedStringFromRange down to WebCore
2303         https://bugs.webkit.org/show_bug.cgi?id=57905
2304
2305         * Misc/WebNSAttributedStringExtras.h: Removed.
2306         * Misc/WebNSAttributedStringExtras.mm: Removed.
2307         * WebView/WebHTMLRepresentation.mm:
2308         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
2309         * WebView/WebHTMLView.mm:
2310         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
2311         (-[WebHTMLView attributedSubstringFromRange:]):
2312         (-[WebHTMLView attributedString]):
2313         (-[WebHTMLView selectedAttributedString]):
2314         * WebView/WebPDFView.mm:
2315         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
2316
2317 2011-04-04  MORITA Hajime  <morrita@google.com>
2318
2319         Reviewed by Ryosuke Niwa.
2320
2321         [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
2322         https://bugs.webkit.org/show_bug.cgi?id=56085
2323
2324         Removed NSTextCheckingResult to SpellCheckingResult convertion, and extracted
2325         NSTextCheckingResult to TextCheckingResult convertio from checkTextOfParagraph method.
2326         for requestCheckingOfString method.
2327         
2328         * WebCoreSupport/WebEditorClient.h:
2329         * WebCoreSupport/WebEditorClient.mm:
2330         (toCoreTextCheckingResults):
2331         (WebEditorClient::checkTextOfParagraph):
2332         (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:types:WebCore::results:]):
2333         (-[WebEditorSpellCheckResponder perform]):
2334         (WebEditorClient::requestCheckingOfString):
2335         * WebView/WebFrame.mm:
2336         (-[WebFrame markersForSelectionStartAsText]):
2337         * WebView/WebFramePrivate.h:
2338
2339 2011-04-05  Anders Carlsson  <andersca@apple.com>
2340
2341         Didn't mean to land this.
2342
2343         * Plugins/WebNetscapePluginView.mm:
2344         (-[WebNetscapePluginView getVariable:value:]):
2345
2346 2011-04-04  David Kilzer  <ddkilzer@apple.com>
2347
2348         <http://webkit.org/b/57384> CFNetwork and WebCore load priorities should match
2349
2350         Reviewed by Alexey Proskuryakov.
2351
2352         * WebCoreSupport/WebSystemInterface.mm:
2353         (InitWebCoreSystemInterface): Added initialization for
2354         wkSetHTTPPipeliningMaximumPriority().
2355
2356 2011-04-04  Alexey Proskuryakov  <ap@apple.com>
2357
2358         Reviewed by Dan Bernstein.
2359
2360         REGRESSION (WebKit2): Caps-Lock indicator sometimes doesn't appear in WebKit2
2361         https://bugs.webkit.org/show_bug.cgi?id=51230
2362         <rdar://problem/8780989>
2363
2364         * WebView/WebHTMLView.mm: (-[WebHTMLView flagsChanged:]): Moved Caps Lock handling from
2365         WebKits to WebCore, because WebKit shouldn't be smart.
2366
2367 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
2368
2369         Reviewed by Darin Adler.
2370
2371         REGRESSION: Assertion failure when executing a complex custom key binding
2372         https://bugs.webkit.org/show_bug.cgi?id=57681
2373
2374         * WebView/WebHTMLView.mm: (-[WebHTMLView hasMarkedText]): There is no need to execute saved
2375         commands when they can't possibly change the result.
2376
2377 2011-04-01  Anders Carlsson  <andersca@apple.com>
2378
2379         Reviewed by Sam Weinig.
2380
2381         Shockwave plug-in doesn't accept mouse events
2382         https://bugs.webkit.org/show_bug.cgi?id=57653
2383         <rdar://problem/8483273>
2384
2385         Fix an unrelated bug found by the added test.
2386
2387         * Plugins/WebBaseNetscapePluginView.mm:
2388         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
2389         Make sure to always set destX and destY.
2390
2391 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
2392
2393         Reviewed by Darin Adler.
2394
2395         Make WebKit2 text input handling more like WebKit1
2396         https://bugs.webkit.org/show_bug.cgi?id=57649
2397
2398         * WebView/WebFrameInternal.h: Expose _convertToDOMRange for use in WebHTMLView.
2399         * WebView/WebHTMLView.mm:
2400         (-[WebHTMLView _executeSavedKeypressCommands]): Renamed, since these are not editor commands.
2401         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Updated for the renamed _executeSavedKeypressCommands.
2402         (-[WebHTMLView characterIndexForPoint:]): Ditto.
2403         (-[WebHTMLView firstRectForCharacterRange:]): Ditto.
2404         (-[WebHTMLView selectedRange]): Ditto.
2405         (-[WebHTMLView markedRange]): Ditto.
2406         (-[WebHTMLView attributedSubstringFromRange:]): Ditto.
2407         (-[WebHTMLView hasMarkedText]): Ditto.
2408         (-[WebHTMLView unmarkText]): Ditto.
2409         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto. Changed the comment about the argument
2410         type into an assertion. Removed resetting interpretKeyEventsParameters to 0, as we shouldn't
2411         be able to call text input protocol methods from here (and we didn't even reset it back on
2412         return). Changed to retrieve all data before starting to apply actions to better match WK2 code.
2413         (-[WebHTMLView insertText:]): Ditto.
2414
2415 2011-04-01  Timothy Hatcher  <timothy@apple.com>
2416
2417         Make momentum scroll event latching work in WebKit2 on Mac.
2418
2419         <rdar://problem/8751861>
2420
2421         Reviewed by Darin Adler.
2422
2423         * WebCoreSupport/WebSystemInterface.mm:
2424         (InitWebCoreSystemInterface): Remove IsLatchingWheelEvent, add GetNSEventMomentumPhase.
2425         * WebView/WebDynamicScrollBarsView.mm:
2426         (-[WebDynamicScrollBarsView scrollWheel:]): Use WKGetNSEventMomentumPhase to set isLatchingEvent.
2427
2428 2011-03-31  Darin Adler  <darin@apple.com>
2429
2430         Reviewed by Anders Carlsson.
2431
2432         Assertion failure in -[WebHTMLView _handleStyleKeyEquivalent:]
2433         https://bugs.webkit.org/show_bug.cgi?id=26667
2434
2435         * WebView/WebHTMLView.mm:
2436         (-[WebHTMLView _handleStyleKeyEquivalent:]): Handle the case where WebView is
2437         nil rather than asserting that it is non-nil. One case where WebView will be nil
2438         is when the frame is closed, but in any case where it is nil, the correct thing
2439         to do is to not try to handle the style key.
2440
2441 2011-03-31  Alexey Proskuryakov  <ap@apple.com>
2442
2443         Patch by John Harvey, reviewed and tweaked by me.
2444
2445         <rdar://problem/8644403> Should notify TSM that plug-ins would show a bottom input window for marked text.
2446
2447         * Plugins/Hosted/WebTextInputWindowController.m:
2448         (-[WebTextInputPanel _interpretKeyEvent:string:]):
2449
2450 2011-03-31  Evan Martin  <evan@chromium.org>
2451
2452         Reviewed by Eric Seidel.
2453
2454         <title> should support dir attribute
2455         https://bugs.webkit.org/show_bug.cgi?id=50961
2456
2457         Update to new FrameLoaderClient interface.
2458
2459         * WebCoreSupport/WebFrameLoaderClient.h:
2460         * WebCoreSupport/WebFrameLoaderClient.mm:
2461         (WebFrameLoaderClient::dispatchDidReceiveTitle):
2462         (WebFrameLoaderClient::setTitle):
2463
2464 2011-03-30  Dominic Cooney  <dominicc@google.com>
2465
2466         Reviewed by Dimitri Glazkov.
2467
2468         Adds layoutTestController.shadowRoot accessor to Mac DRT.
2469         https://bugs.webkit.org/show_bug.cgi?id=57415
2470
2471         * DOM/WebDOMOperations.mm:
2472         (-[DOMElement _shadowRoot:]):
2473         * DOM/WebDOMOperationsPrivate.h:
2474
2475 2011-03-30  Alexey Proskuryakov  <ap@apple.com>
2476
2477         Reviewed by Darin Adler.
2478
2479         WebHTMLView shouldn't resend noop: commands
2480         https://bugs.webkit.org/show_bug.cgi?id=57504
2481         <rdar://problem/9209390>
2482
2483         * WebView/WebHTMLView.mm: (-[WebHTMLView _executeSavedEditingCommands]): Filter out NOOPs,
2484         which we get e.g. when handling Cmd-key combos.
2485
2486 2011-03-30  Alexey Proskuryakov  <ap@apple.com>
2487
2488         Reviewed by Darin Adler.
2489
2490         REGRESSION (r82320): Spacebar no longer pages down
2491         https://bugs.webkit.org/show_bug.cgi?id=57423
2492         <rdar://problem/9207702>
2493
2494         Also includes some unrelated cleanup that I had in my tree.
2495
2496         * WebView/WebHTMLView.mm:
2497         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Added an assertion that the event is
2498         being dispatched to the right frame.
2499         (-[WebHTMLView setMarkedText:selectedRange:]): Use 0 for a pointer, not NULL.
2500         (-[WebHTMLView doCommandBySelector:]): Update eventInterpretationHadSideEffects with "|=".
2501         Even if this specific command hasn't been handled, that doesn't nullify side effects from
2502         previous commands.
2503         (-[WebHTMLView insertText:]): Besides looking at the return value of insertText() to fix the
2504         bug, removed setting _private->interpretKeyEventsParameters to 0. I don't see any way for
2505         another WebHTMLView NSTextInput method to be called from within insertText:, so no one is
2506         going to look at it.
2507
2508 2011-03-30  Sam Weinig  <sam@webkit.org>
2509
2510         Reviewed by Brady Eidson.
2511
2512         WebKit2: Attempting to view css file from url causes it to download
2513         <rdar://problem/9102611>
2514         https://bugs.webkit.org/show_bug.cgi?id=57501
2515
2516         * WebView/WebHTMLRepresentation.h:
2517         * WebView/WebHTMLRepresentation.mm:
2518         (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
2519         * WebView/WebHTMLView.mm:
2520         (+[WebHTMLView unsupportedTextMIMETypes]):
2521         Re-factor unsupportedTextMIMETypes to pull from WebCore's
2522         MIMETypeRegistry, so that the list can be shared with WebKit2.
2523
2524 2011-03-29  Beth Dakin  <bdakin@apple.com>
2525
2526         Reviewed by Maciej Stachowiak.
2527
2528         Fix for https://bugs.webkit.org/show_bug.cgi?id=57408 
2529         webkit-min-device-pixel-ratio media query doesn't work post-SnowLeopard 
2530         -and corresponding-
2531         <rdar://problem/8665411>
2532
2533         * Misc/WebNSControlExtras.m:
2534         (-[NSControl sizeToFitAndAdjustWindowHeight]):
2535         * WebCoreSupport/WebChromeClient.mm:
2536         (WebChromeClient::scaleFactor):
2537         * WebView/WebHTMLView.mm:
2538         (-[WebHTMLView viewDidMoveToWindow]):
2539         (-[WebHTMLView attachRootLayer:]):
2540
2541 2011-03-29  Kent Tamura  <tkent@chromium.org>
2542
2543         Reviewed by Dimitri Glazkov.
2544
2545         Make validation message bubble testable
2546         https://bugs.webkit.org/show_bug.cgi?id=57290
2547
2548         * WebView/WebView.mm:
2549         (-[WebView _preferencesChangedNotification:]): Copy the private value of
2550           the timer magnification to WebCore::Settings.
2551         (-[WebView validationMessageTimerMagnification]): Added.
2552         (-[WebView setValidationMessageTimerMagnification:]): Added.
2553         * WebView/WebViewData.h: Declare a member for the timer magnification.
2554         * WebView/WebViewData.mm:
2555         (-[WebViewPrivate init]): Initialize the timer magnification.
2556         * WebView/WebViewPrivate.h:
2557           Declare a setter and a getter for the timer magnification.
2558
2559 2011-03-29  Kent Tamura  <tkent@chromium.org>
2560
2561         Reviewed by Dimitri Glazkov.
2562
2563         [Mac] Enable interactive-validation tests on Mac DRT
2564         https://bugs.webkit.org/show_bug.cgi?id=57308
2565
2566         * WebView/WebView.mm:
2567         (-[WebView _preferencesChangedNotification:]):
2568           Convey a WebView flag for interactive validation to WebCore::Settings.
2569         (-[WebView interactiveFormValidationEnabled]): Added.
2570         (-[WebView setInteractiveFormValidationEnabled:]): Added.
2571         * WebView/WebViewData.h: Add interactiveFormValidationEnabled.
2572         * WebView/WebViewData.mm:
2573         (-[WebViewPrivate init]): Initialize interactiveFormValidationEnabled.
2574         * WebView/WebViewPrivate.h: Add setter and getter for interactiveFormValidationEnabled.
2575
2576 2011-03-29  Timothy Hatcher  <timothy@apple.com>
2577
2578         Update the order of the context menu to better match AppKit on Mac.
2579
2580         <rdar://problem/9054893>
2581
2582         Reviewed by John Sullivan.
2583
2584         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2585         (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): Update the order of items.
2586         * WebCoreSupport/WebPlatformStrategies.h:
2587         * WebCoreSupport/WebPlatformStrategies.mm:
2588         (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary): Added argument for selected string.
2589
2590 2011-03-29  Alexey Proskuryakov  <ap@apple.com>
2591
2592         Reviewed by Darin Adler.
2593
2594         https://bugs.webkit.org/show_bug.cgi?id=57379
2595         Clean up WK1 key event handling logic
2596
2597         No bugs knowingly fixed, but this makes the code more consistent.
2598
2599         * WebView/WebHTMLView.mm:
2600         (struct WebHTMLViewInterpretKeyEventsParameters): Renamed eventWasHandled to
2601         eventInterpretationHadSideEffects, because "handled" doesn't really mean much.
2602         (-[WebHTMLView _executeSavedEditingCommands]): Factored out from _interpretKeyEvent for use
2603         from other functions. We need to execute saved commands when an input method asks for current
2604         state, because providing stale state could confuse it.
2605         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Heavily commented, and updated for other
2606         changes.
2607         (-[WebHTMLView characterIndexForPoint:]): Call _executeSavedEditingCommands, because otherwise,
2608         the answer would be stale.
2609         (-[WebHTMLView firstRectForCharacterRange:]): Ditto.
2610         (-[WebHTMLView selectedRange]): Ditto.
2611         (-[WebHTMLView markedRange]): Ditto.
2612         (-[WebHTMLView attributedSubstringFromRange:]): Ditto.
2613         (-[WebHTMLView hasMarkedText]): Ditto.
2614         (-[WebHTMLView unmarkText]): Call _executeSavedEditingCommands, because otherwise, we'd be
2615         operating on stale data. Also, updated for eventWasHandled renaming.
2616         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
2617         (-[WebHTMLView doCommandBySelector:]): Removed special handling for noop:. I verified that
2618         it's no longer needed for bug 14522, presumably due to WebCore level changes. It was also
2619         fragile, because there is no guarantee about when noop: is sent (also, a custom key binding
2620         could have a noop: as one of its commands, although that's hardly practical).
2621         Added the same "from input method" logic that we have in insertText: - I don't know of any
2622         IMs that call this method, but we clearly need to execute it as part of IM processing when
2623         there is marked text.
2624         (-[WebHTMLView insertText:]): Removed a confusing check for [text length]. Always set
2625         eventInterpretationHadSideEffects to true, becasue there is no reason to try multiple times
2626         if current selection isn't editable. This is different from doCommandBySelector:, where we
2627         need to give super class a chance to handle the event if our processing fails.
2628         Removed a nonsense "consumedByIM = true" assignment - we no longer need it now that the
2629         return value of _interpretKeyEvent is computed differently.
2630
2631 2011-03-28  Adele Peterson  <adele@apple.com>
2632
2633         Reviewed by Eric Seidel.
2634
2635         Fix for <rdar://problem/9112694> REGRESSION (r79411): "Check grammar with spelling" context menu doesn't check as you type
2636         https://bugs.webkit.org/show_bug.cgi?id=57173
2637
2638         * WebView/WebFrame.mm:
2639         (-[WebFrame hasSpellingMarker:length:]): Call new selectionStartHasMarkerFor method instead of selectionStartHasSpellingMarkerFor.
2640         (-[WebFrame hasGrammarMarker:length:]): Call new selectionStartHasMarkerFor method.
2641         * WebView/WebFramePrivate.h: Add hasGrammarMarker so grammar marking can be tested.
2642
2643 2011-03-28  Alexey Proskuryakov  <ap@apple.com>
2644
2645         Reviewed by Darin Adler.
2646
2647         https://bugs.webkit.org/show_bug.cgi?id=57260
2648         Clean up text input code a little
2649
2650         * WebCoreSupport/WebEditorClient.mm:
2651         (WebEditorClient::handleKeyboardEvent):
2652         (WebEditorClient::handleInputMethodKeydown):
2653         * WebView/WebHTMLViewInternal.h:
2654         Renamed _interceptEditingKeyEvent:shouldSaveCommand:, becasue it doesn't really intercept
2655         anything. It's just a version it interpretKeyEvents: that tells us whether it was handled,
2656         and also possibly saves resulting commands for later execution.
2657
2658         * WebView/WebHTMLView.mm:
2659         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Changed to use early return. Changed
2660         return value in case platformEvent is null to be less mysterious. Moved receivedNOOP from
2661         WebHTMLViewPrivate to WebHTMLViewInterpretKeyEventsParameters, as this is just part of event
2662         handling state, like the other booleans there. Don't call interpretKeyEvents: again simply
2663         because the first call resulted in no saved commands, becasue it's confusing and apparently
2664         useless (I couldn't find any broken behavior).
2665         (-[WebHTMLView unmarkText]): Cleaned upo BOOL vs. bool constants.
2666         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
2667         (-[WebHTMLView doCommandBySelector:]): Ditto.
2668         (-[WebHTMLView insertText:]): Ditto.
2669
2670         * WebView/WebViewInternal.h: There was no _interceptEditingKeyEvent:shouldSaveCommand:
2671         method on WebView.
2672
2673 2011-03-27  Jer Noble  <jer.noble@apple.com>
2674
2675         Reviewed by Maciej Stachowiak.
2676
2677         Full Screen: disable keyboard access by default
2678         https://bugs.webkit.org/show_bug.cgi?id=56684
2679
2680         Take into account whether keyboard access was requested when deciding whether full
2681         screen mode is supported.
2682
2683         * WebCoreSupport/WebChromeClient.h:
2684         * WebCoreSupport/WebChromeClient.mm:
2685         (WebChromeClient::supportsFullScreenForElement):
2686         * WebView/WebView.mm:
2687         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
2688         * WebView/WebViewInternal.h:
2689
2690 2011-03-26  Jer Noble  <jer.noble@apple.com>
2691
2692         Reviewed by Eric Carlson.
2693
2694         Enable the Full Screen API by default in WebKit/mac and WebKit2
2695         https://bugs.webkit.org/show_bug.cgi?id=56956
2696
2697         * WebView/WebPreferences.mm:
2698         (+[WebPreferences initialize]): Default the WebKitFullScreenEnabled preference to true.
2699
2700 2011-03-25  Andy Estes  <aestes@apple.com>
2701
2702         Reviewed by Adele Peterson.
2703
2704         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
2705         https://bugs.webkit.org/show_bug.cgi?id=49016
2706
2707         Update objectContentType() implementation to handle the
2708         shouldPreferPlugInsForImages flag.
2709
2710         * WebCoreSupport/WebFrameLoaderClient.h:
2711         * WebCoreSupport/WebFrameLoaderClient.mm:
2712         (WebFrameLoaderClient::objectContentType):
2713
2714 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2715
2716         Unreviewed, rolling out r81939.
2717         http://trac.webkit.org/changeset/81939
2718         https://bugs.webkit.org/show_bug.cgi?id=57084
2719
2720         Rolling out 81939, as it's causing a number of app cache test
2721         failures. (Requested by jernoble on #webkit).
2722
2723         * WebView/WebView.mm:
2724         (-[WebView _preferencesChangedNotification:]):
2725
2726 2011-03-23  Jer Noble  <jer.noble@apple.com>
2727
2728         Reviewed by Maciej Stachowiak.
2729
2730         Application Cache should save audio/ and video/ mime types as flat files
2731         https://bugs.webkit.org/show_bug.cgi?id=53784
2732         <rdar://problem/8932473>
2733
2734         No new tests.
2735
2736         Initialize the AppCache Total size quotas with the values for WebKitPreferences
2737         upon startup.
2738
2739         * WebView/WebView.mm:
2740         (-[WebView _preferencesChangedNotification:]):
2741
2742 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2743
2744         Unreviewed, rolling out r81916 and r81917.
2745         http://trac.webkit.org/changeset/81916
2746         http://trac.webkit.org/changeset/81917
2747         https://bugs.webkit.org/show_bug.cgi?id=57071
2748
2749         broke a test on platforms that do not have QuickTime installed
2750         (Requested by estes on #webkit).
2751
2752         * WebCoreSupport/WebFrameLoaderClient.h:
2753         * WebCoreSupport/WebFrameLoaderClient.mm:
2754         (WebFrameLoaderClient::objectContentType):
2755
2756 2011-03-24  Andy Estes  <aestes@apple.com>
2757
2758         Reviewed by Darin Adler.
2759
2760         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
2761         https://bugs.webkit.org/show_bug.cgi?id=49016
2762
2763         Update objectContentType() implementation to handle the
2764         shouldPreferPlugInsForImages flag.
2765
2766         * WebCoreSupport/WebFrameLoaderClient.h:
2767         * WebCoreSupport/WebFrameLoaderClient.mm:
2768         (WebFrameLoaderClient::objectContentType):
2769
2770 2011-03-24  Geoffrey Garen  <ggaren@apple.com>
2771
2772         Reviewed by Oliver Hunt.
2773
2774         Ensure that all compilation takes place within a dynamic global object scope
2775         https://bugs.webkit.org/show_bug.cgi?id=57054
2776
2777         * WebView/WebScriptDebugDelegate.mm:
2778         (-[WebScriptCallFrame evaluateWebScript:]): Updated for signature change.
2779
2780 2011-03-24  Jia Pu  <jpu@apple.com>
2781
2782         Reviewed by Darin Adler.
2783
2784         Dismissed reversion suggestion is incorrectly learned.
2785         https://bugs.webkit.org/show_bug.cgi?id=57039
2786
2787         CorrectionPanel should always use [NSSpellChecker dismissCorrectionBubbleForView].
2788         [NSSpellChecker cancelCorrectionBubbleForView] is reserved for situation where correction panel
2789         is dismissed explicitly by ESC key or clicking the dimiss button. Misusing these causes
2790         incorrect automatic learning.
2791
2792         * WebCoreSupport/CorrectionPanel.mm:
2793         (CorrectionPanel::dismissInternal):
2794
2795 2011-03-24  David Kilzer  <ddkilzer@apple.com>
2796
2797         <http://webkit.org/b/56993> ENABLE_PLUGIN_PROXY_FOR_VIDEO should be defined to 0 on Mac OS X
2798
2799         Reviewed by Joseph Pecoraro.
2800
2801         * Plugins/WebPluginContainerPrivate.h: Changed value of
2802         ENABLE_PLUGIN_PROXY_FOR_VIDEO from 1 to 0.
2803
2804 2011-03-23  Jia Pu  <jpu@apple.com>
2805
2806         Reviewed by Darin Adler.
2807
2808         Hook up new AppKit autocorrection UI with WK2.
2809         https://bugs.webkit.org/show_bug.cgi?id=56055
2810         <rdar://problem/8947463>
2811
2812         Please see WebCore/ChangeLog for detail.
2813
2814         * WebCoreSupport/CorrectionPanel.h: Added.
2815         (CorrectionPanel::isShowing):
2816         * WebCoreSupport/CorrectionPanel.mm: Added.
2817         (correctionBubbleType):
2818         (CorrectionPanel::CorrectionPanel):
2819         (CorrectionPanel::~CorrectionPanel):
2820         (CorrectionPanel::show):
2821         (CorrectionPanel::dismiss):
2822         (CorrectionPanel::dismissSoon):
2823         (CorrectionPanel::dismissInternal):
2824         (CorrectionPanel::recordAutocorrectionResponse):
2825         * WebCoreSupport/WebEditorClient.h:
2826         * WebCoreSupport/WebEditorClient.mm:
2827         (WebEditorClient::WebEditorClient):
2828         (WebEditorClient::showCorrectionPanel):
2829         (WebEditorClient::dismissCorrectionPanel):
2830         (WebEditorClient::dismissCorrectionPanelSoon):
2831         (WebEditorClient::recordAutocorrectionResponse):
2832         * WebView/WebView.mm:
2833         (-[WebView handleCorrectionPanelResult:]):
2834         * WebView/WebViewPrivate.h:
2835
2836 2011-03-23  Enrica Casucci  <enrica@apple.com>
2837
2838         Reviewed by Alexey Proskuryakov.
2839
2840         Services menu item to convert selected Simplified/Traditional Chinese Text is not working.
2841         https://bugs.webkit.org/show_bug.cgi?id=56974
2842         <rdar://problem/8284642>
2843
2844         This fixes a regression introduced by http://trac.webkit.org/changeset/61794
2845         where readSelectionFromPasteboard was accidentally removed.
2846         This method and writeSelectionToPasteboard are needed to support Mac OS X
2847         services.
2848         
2849         * WebView/WebHTMLView.mm:
2850         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Added.
2851         (-[WebHTMLView readSelectionFromPasteboard:]): Added.
2852
2853 2011-03-23  Brady Eidson  <beidson@apple.com>
2854
2855         Reviewed by Sam Weinig.
2856
2857         Change IconDatabase opening to allow for arbitrary filenames
2858         https://bugs.webkit.org/show_bug.cgi?id=56977
2859
2860         * Misc/WebIconDatabase.mm:
2861         (-[WebIconDatabase _startUpIconDatabase]):
2862
2863 2011-03-22  Anton D'Auria  <adauria@apple.com>
2864
2865         Reviewed by Alexey Proskuryakov.
2866
2867         Add +[WebApplicationCache getOriginsWithCache]
2868         https://bugs.webkit.org/show_bug.cgi?id=56722
2869
2870         Call existing WebCore::ApplicationCacheStorage::getOriginsWithCache API.
2871
2872         * WebCoreSupport/WebApplicationCache.h:
2873         * WebCoreSupport/WebApplicationCache.mm:
2874         (+[WebApplicationCache originsWithCache]):
2875
2876 2011-03-22  Anders Carlsson  <andersca@apple.com>
2877
2878         Reviewed by Sam Weinig.
2879
2880         OBJECT element with DivX source is always downloaded
2881         https://bugs.webkit.org/show_bug.cgi?id=56879
2882
2883         * Plugins/WebBasePluginPackage.mm:
2884         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2885         Always try to split every element in the "WebPluginExtensions" array, since the DivX plug-in
2886         specifies multiple file extensions in a single element.
2887
2888 2011-03-22  Brady Eidson  <beidson@apple.com>
2889
2890         Reviewed by Sam Weinig.
2891
2892         <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56876
2893         WK2 Icon DB: Expand IconDatabaseClient interface and move it to the main thread
2894
2895         Note that while the new client calls always come through on the main thread, our mechanisms to
2896         route dispatches to the main thread are still valid and will still work.
2897
2898         Update to the new IconDatabaseClient interface:
2899         * WebCoreSupport/WebIconDatabaseClient.h:
2900         * WebCoreSupport/WebIconDatabaseClient.mm:
2901         (WebIconDatabaseClient::didRemoveAllIcons):
2902         (WebIconDatabaseClient::didImportIconURLForPageURL):
2903         (WebIconDatabaseClient::didImportIconDataForPageURL):
2904         (WebIconDatabaseClient::didChangeIconForPageURL):
2905         (WebIconDatabaseClient::didFinishURLImport):
2906
2907 2011-03-22  Matthew Delaney  <mdelaney@apple.com>
2908
2909         Reviewed by Simon Fraser.
2910
2911         Have WebKit push acceleratedDrawing preferences to settings
2912         https://bugs.webkit.org/show_bug.cgi?id=56792
2913
2914         * WebView/WebView.mm:
2915
2916 2011-03-21  Nate Chapin  <japhet@chromium.org>
2917
2918         Reviewed by Brady Eidson.
2919
2920         Expose a preference to use caching quirks for QuickLook,
2921         and use it if the QuickLook framework is loaded.
2922
2923         https://bugs.webkit.org/show_bug.cgi?id=38690
2924
2925         * WebView/WebPreferenceKeysPrivate.h:
2926         * WebView/WebPreferences.mm:
2927         (useQuickLookQuirks):
2928         (+[WebPreferences initialize]):
2929         (-[WebPreferences useQuickLookResourceCachingQuirks]):
2930         * WebView/WebPreferencesPrivate.h:
2931         * WebView/WebView.mm:
2932         (-[WebView _preferencesChangedNotification:]):
2933
2934 2011-03-21  Chris Fleizach  <cfleizach@apple.com>
2935
2936         Reviewed by Darin Adler.
2937
2938         AX: showContextMenu not working in WK2
2939         https://bugs.webkit.org/show_bug.cgi?id=56734
2940
2941         Implement showContextMenu() so accessibility related code can call this
2942         independent of whether WK1 or WK2 is running.
2943
2944         * WebCoreSupport/WebChromeClient.h:
2945         * WebCoreSupport/WebChromeClient.mm:
2946         (WebChromeClient::showContextMenu):
2947
2948 2011-03-21  Chang Shu  <cshu@webkit.org>
2949
2950         Reviewed by Alexey Proskuryakov.
2951
2952         REGRESSION (r79953): Can't type in MS Outlook 2011
2953         https://bugs.webkit.org/show_bug.cgi?id=56665
2954
2955         r79953 removed the WebView level editablity which is persistent no matter whether
2956         underlying document itself is changed and editability gets lost. The resolution is to
2957         set this WebView editable value to WebCore. This avoids the callback from WebCore to
2958         WebKit which was the main goal in r79953 to improve performance.
2959
2960         * WebView/WebView.mm:
2961         (-[WebView setEditable:]):
2962         (-[WebView isEditable]):
2963
2964 2011-03-19  Anton D'Auria  <adauria@apple.com>
2965
2966         Reviewed by Alexey Proskuryakov.
2967
2968         ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
2969         https://bugs.webkit.org/show_bug.cgi?id=56415
2970         
2971         Use new ApplicationCache API to delete all cache for an origin.
2972
2973         * WebCoreSupport/WebApplicationCache.h:
2974         * WebCoreSupport/WebApplicationCache.mm:
2975         (+[WebApplicationCache deleteOrigin:]):
2976
2977 2011-03-17  Brady Eidson  <beidson@apple.com>
2978
2979         Reviewed by Sam Weinig.
2980
2981         https://bugs.webkit.org/show_bug.cgi?id=56425
2982         More groundwork for WebKit2 IconDatabase
2983
2984         Update already-used function names:
2985         * Misc/WebIconDatabase.mm:
2986         (-[WebIconDatabase iconForURL:withSize:cache:]):
2987         (-[WebIconDatabase iconURLForURL:]):
2988         * WebView/WebView.mm:
2989         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
2990
2991 2011-03-18  Pavel Podivilov  <podivilov@chromium.org>
2992
2993         Reviewed by Yury Semikhatsky.
2994
2995         Web Inspector: implement inspector session storage.
2996         https://bugs.webkit.org/show_bug.cgi?id=56643
2997
2998         * WebCoreSupport/WebInspectorClient.h:
2999         * WebCoreSupport/WebInspectorClient.mm:
3000         (WebInspectorClient::saveSessionSetting):
3001         (WebInspectorClient::loadSessionSetting):
3002         (WebInspectorFrontendClient::saveSessionSetting):
3003         (WebInspectorFrontendClient::loadSessionSetting):
3004         (-[WebInspectorWindowController inspectorClient]):
3005
3006 2011-03-17  Geoffrey Garen  <ggaren@apple.com>
3007
3008         Reviewed by Oliver Hunt.
3009
3010         Fixed a leak seen on the buildbot.
3011
3012         * WebCoreSupport/WebInspectorClient.mm:
3013         (WebInspectorClient::openInspectorFrontend): Smart pointers are smart.
3014
3015 2011-03-16  Jeff Johnson  <github@lapcatsoftware.com>
3016
3017         Reviewed by Alexey Proskuryakov.
3018
3019         Logic error in -[WebHTMLView close]
3020         https://bugs.webkit.org/show_bug.cgi?id=56445
3021
3022         Page is always nil at this point, because [self _webView] is nil,
3023         so the conditional code is never run.
3024
3025         * WebView/WebHTMLView.mm:
3026         (-[WebHTMLView close]):
3027
3028 2011-03-16  Chris Fleizach  <cfleizach@apple.com>
3029
3030         Reviewed by Darin Adler.
3031
3032         WK2: Need to propagate enhanced accessibility flag from UI -> web process
3033         https://bugs.webkit.org/show_bug.cgi?id=56379
3034
3035         * WebView/WebFrame.mm:
3036         (-[WebFrame accessibilityRoot]):
3037
3038 2011-03-15  Oliver Hunt  <oliver@apple.com>
3039
3040         Reviewed by Geoffrey Garen.
3041
3042         Make Structure creation require a JSGlobalData
3043         https://bugs.webkit.org/show_bug.cgi?id=56438
3044
3045         Mechanical change to make all Structure creation use a JSGlobalData&
3046
3047         * Plugins/Hosted/ProxyInstance.mm:
3048         (WebKit::ProxyRuntimeMethod::createStructure):
3049         * Plugins/Hosted/ProxyRuntimeObject.h:
3050         (WebKit::ProxyRuntimeObject::createStructure):
3051
3052 2011-03-15  Alexey Proskuryakov  <ap@apple.com>
3053
3054         Forgot to save a modification to this file when committing.
3055
3056         * WebCoreSupport/WebKeyGenerator.mm: Changed "Apple Computer" to "Apple" in copyright header.
3057
3058 2011-03-15  Alexey Proskuryakov  <ap@apple.com>
3059
3060         Reviewed by Darin Adler.
3061
3062         REGRESSION (WebKit2): keygen element doesn't work
3063         https://bugs.webkit.org/show_bug.cgi?id=56402
3064         <rdar://problem/9006545>
3065
3066         * WebCoreSupport/WebKeyGenerator.h:
3067         * WebCoreSupport/WebKeyGenerator.m: Removed.
3068         * WebCoreSupport/WebKeyGenerator.mm: Copied from Source/WebKit/mac/WebCoreSupport/WebKeyGenerator.m.
3069         (+[WebKeyGenerator sharedGenerator]):
3070         (toWebCertificateParseResult):
3071         WebCore no longer needs WebKeyGenerator. Safari still does need a part of it, so keeping
3072         this misnamed and misplaced code for now.
3073
3074         * WebCoreSupport/WebPlatformStrategies.h:
3075         * WebCoreSupport/WebPlatformStrategies.mm:
3076         (WebPlatformStrategies::keygenMenuItem512):
3077         (WebPlatformStrategies::keygenMenuItem1024):
3078         (WebPlatformStrategies::keygenMenuItem2048):
3079         (WebPlatformStrategies::keygenKeychainItemName):
3080         Added strings used by keygen.
3081
3082         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize a WebCore
3083         pointer to a function used by keygen.
3084
3085         * WebView/WebFrameView.mm: (-[WebFrameView initWithFrame:]): WebKeyGenerator can be lazily
3086         initialized now.
3087
3088 2011-03-15  Beth Dakin  <bdakin@apple.com>
3089
3090         Reviewed by Simon Fraser.
3091
3092         WebKit part of <rdar://problem/9075624> Overlay scrollbars slow down PLT by 6%
3093
3094         New WebKitystemInterface function to force the scrollbars to flash
3095         * WebCoreSupport/WebSystemInterface.mm:
3096         (InitWebCoreSystemInterface):
3097
3098 2011-03-15  Ilya Sherman  <isherman@chromium.org>
3099
3100         Reviewed by Tony Chang.
3101
3102         Autofilled form elements are assigned fixed background color but not text color
3103         https://bugs.webkit.org/show_bug.cgi?id=48382
3104
3105         * DOM/WebDOMOperations.mm:
3106         (-[DOMHTMLInputElement _setAutofilled:]): Added (wrapper).
3107         * DOM/WebDOMOperationsPrivate.h:
3108
3109 2011-03-15  Adam Roben  <aroben@apple.com>
3110
3111         Fix a leak in WebStorageTrackerClient::dispatchDidModifyOrigin
3112
3113         Fixes <http://webkit.org/b/56385> SecurityOrigin leaks seen in
3114         WebStorageTrackerClient::dispatchDidModifyOrigin
3115
3116         Reviewed by Antti Koivisto.
3117
3118         * Storage/WebStorageTrackerClient.mm:
3119         (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread): Adopt the reference passed
3120         to us by dispatchDidModifyOrigin.
3121         (WebStorageTrackerClient::dispatchDidModifyOrigin): Added a comment and removed an
3122         unnecessary cast.
3123
3124 2011-03-15  Kevin Ollivier  <kevino@theolliviers.com>
3125
3126         Reviewed by Darin Adler.
3127
3128         Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
3129         info into the headers rather than in export symbol definition files, but disable it on 
3130         all platforms initially so we can deal with port build issues one port at a time.
3131         
3132         https://bugs.webkit.org/show_bug.cgi?id=27551
3133
3134         * WebKitPrefix.h:
3135
3136 2011-03-14  Brady Eidson  <beidson@apple.com>
3137
3138         Reviewed by Anders Carlsson.
3139
3140         https://bugs.webkit.org/show_bug.cgi?id=56320
3141         Remove HistoryItem::icon() and the WebCore dependency on "IconDatabaseBase::defaultIcon()"
3142
3143         * History/WebHistoryItem.mm:
3144         (-[WebHistoryItem icon]): This far-future FIXME is now irrelevant.
3145
3146 2011-03-13  Pratik Solanki  <psolanki@apple.com>
3147
3148         Reviewed by Brady Eidson.
3149
3150         Make adjustMIMETypeIfNecessary use CFNetwork directly
3151         https://bugs.webkit.org/show_bug.cgi?id=55912
3152
3153         * WebCoreSupport/WebSystemInterface.mm:
3154         (InitWebCoreSystemInterface): Support for new WKSI functions.
3155
3156 2011-03-12  Mark Rowe  <mrowe@apple.com>
3157
3158         Fix the 32-bit build.
3159
3160         * Carbon/CarbonWindowAdapter.mm:
3161         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]): Use a more appropriate format specifier.
3162         (-[CarbonWindowAdapter _carbonWindowClass]): Ditto.
3163
3164 2011-03-11  Brady Eidson  <beidson@apple.com>
3165
3166         Reviewed by Anders Carlsson
3167
3168         <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56216
3169         Rework disabled IconDatabase builds while allowing for a pluggable icon database implementation.
3170
3171         * Misc/WebIconDatabase.mm:
3172         (+[WebIconDatabase _checkIntegrityBeforeOpening]): Call these static methods on IconDatabase::, not iconDatabase().
3173         (-[WebIconDatabase _startUpIconDatabase]): Ditto.
3174         (importToWebCoreFormat):
3175
3176 2011-03-11  Anton D'Auria  <adauria@apple.com>
3177
3178         Reviewed and landed by Brady Eidson.
3179
3180         https://bugs.webkit.org/show_bug.cgi?id=51878
3181         Add WebKit1 API to view and delete local storage
3182
3183         * Storage/WebStorageManager.mm: Added.
3184         (+[WebStorageManager sharedWebStorageManager]):
3185         (-[WebStorageManager origins]):
3186         (-[WebStorageManager deleteAllOrigins]):
3187         (-[WebStorageManager deleteOrigin:]):
3188         (-[WebStorageManager syncLocalStorage]):
3189         (-[WebStorageManager syncFileSystemAndTrackerDatabase]):
3190         (storageDirectoryPath):
3191         (WebKitInitializeStorageIfNecessary):
3192         * Storage/WebStorageManagerInternal.h: Added.
3193         * Storage/WebStorageManagerPrivate.h: Added.
3194         * Storage/WebStorageTrackerClient.h: Added.
3195         * Storage/WebStorageTrackerClient.mm: Added.
3196         (WebStorageTrackerClient::sharedWebStorageTrackerClient):
3197         (WebStorageTrackerClient::WebStorageTrackerClient):
3198         (WebStorageTrackerClient::~WebStorageTrackerClient):
3199         (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread):
3200         (WebStorageTrackerClient::dispatchDidModifyOrigin):
3201         * WebCoreSupport/WebSecurityOrigin.mm:
3202         (-[WebSecurityOrigin protocol]):
3203         (-[WebSecurityOrigin host]):
3204         (-[WebSecurityOrigin databaseIdentifier]):
3205         (-[WebSecurityOrigin domain]):
3206         (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
3207         * WebCoreSupport/WebSecurityOriginPrivate.h:
3208         * WebKit.exp:
3209         * WebView/WebView.mm:
3210         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3211
3212 2011-03-10  Anders Carlsson  <andersca@apple.com>
3213
3214         Reviewed by Sam Weinig.
3215
3216         <rdar://problem/9117047>
3217         Don't paint more than 60 times per second even when scrolling
3218
3219         * WebView/WebClipView.mm:
3220         (-[WebClipView _immediateScrollToPoint:]):
3221
3222 2011-03-09  Matthew Delaney  <mdelaney@apple.com>
3223
3224         Reviewed by Simon Fraser.
3225
3226         Plumb through settings for accelerated drawing for canvas
3227         https://bugs.webkit.org/show_bug.cgi?id=56039
3228
3229         * WebView/WebPreferenceKeysPrivate.h:
3230         * WebView/WebPreferences.mm:
3231         * WebView/WebPreferencesPrivate.h:
3232
3233 2011-03-10  Ryosuke Niwa  <rniwa@webkit.org>
3234
3235         Reviewed by Tony Chang.
3236
3237         VisiblePosition's next and previous should take an enum instead of a boolean
3238         https://bugs.webkit.org/show_bug.cgi?id=56135
3239
3240         SelectionController::isAll now takes EditingBoundaryCrossingRule instead of
3241         StayInEditableContent.
3242
3243         * WebView/WebView.mm:
3244         (-[WebView _selectionIsAll]):
3245
3246 2011-03-09  Jessie Berlin  <jberlin@apple.com>
3247
3248         Reviewed by Adam Roben.
3249
3250         Use the Cookie Storage from the Private Browsing Storage Session directly
3251         https://bugs.webkit.org/show_bug.cgi?id=55986
3252
3253         * WebCoreSupport/WebSystemInterface.mm:
3254         (InitWebCoreSystemInterface):
3255
3256 2011-03-08  Darin Adler  <darin@apple.com>
3257
3258         Reviewed by Timothy Hatcher.
3259
3260         Promote a method used outside WebKit from internal to private
3261         https://bugs.webkit.org/show_bug.cgi?id=55949
3262
3263         * Misc/WebNSPasteboardExtras.mm: Removed an unused category declaration.
3264         Minor tweak, not directly related to the rest of this patch.
3265
3266         * WebView/WebFrame.mm:
3267         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]): Moved
3268         this method from the internal category into the private category.
3269         Streamlined the code a bit.
3270
3271         * WebView/WebFrameInternal.h: Removed _computePageRects method.
3272         * WebView/WebFramePrivate.h: Added _computePageRects method.
3273
3274 2011-03-07  Ryosuke Niwa  <rniwa@webkit.org>
3275
3276         Reviewed by Darin Adler.
3277
3278         selectionHasStyle and selectionStartHasStyle should use EditingStyle
3279         https://bugs.webkit.org/show_bug.cgi?id=55902
3280
3281         selectionHasStyle now takes a property id and a value instead of a CSSMutableStyleDeclaration.
3282
3283         * WebView/WebHTMLView.mm: Removed unused selectionHasStyle.
3284         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Calls Editor::selectionHasStyle.
3285
3286 2011-03-07  Dan Bernstein  <mitz@apple.com>
3287
3288         LLVM Compiler build fix.
3289
3290         * WebCoreSupport/WebEditorClient.mm:
3291         (WebEditorClient::checkGrammarOfString):
3292
3293 2011-03-07  Chris Fleizach  <cfleizach@apple.com>
3294
3295         Reviewed by Beth Dakin.
3296
3297         AX: WK1 needs to use ScrollView attachment for AXScrollArea, WK2 does not
3298         https://bugs.webkit.org/show_bug.cgi?id=55706
3299
3300         Make sure WebDynamicScrollBarsView appear in the AX tree in WK1 (since this object
3301         returns the scroll bar objects).
3302         Make the accessibilityRoot object be the web area in WK1 because WebDynamicScrollBarsView
3303         will expect that as its child, instead of the WebCore ScrollView object.
3304
3305         * WebView/WebDynamicScrollBarsView.mm:
3306         (-[WebDynamicScrollBarsView accessibilityIsIgnored]):
3307         * WebView/WebFrame.mm:
3308         (-[WebFrame accessibilityRoot]):
3309
3310 2011-03-07  Sam Weinig  <sam@webkit.org>
3311
3312         Reviewed by Anders Carlsson.
3313
3314         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
3315         https://bugs.webkit.org/show_bug.cgi?id=55827
3316
3317         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
3318         and pass the entire response, instead of just the MIMEType.
3319
3320         * WebCoreSupport/WebFrameLoaderClient.h:
3321         * WebCoreSupport/WebFrameLoaderClient.mm:
3322         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
3323
3324 2011-03-06  Dan Bernstein  <mitz@apple.com>
3325
3326         LLVM Compiler build fix.
3327
3328         * DOM/WebDOMOperations.mm:
3329         (-[DOMHTMLInputElement _setValueForUser:]):
3330
3331 2011-03-06  Jessie Berlin  <jberlin@apple.com>
3332
3333         Reviewed by Sam Weinig.
3334
3335         WebKit2: Use CFNetwork Sessions API.
3336         https://bugs.webkit.org/show_bug.cgi?id=55435.
3337
3338         When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
3339         Private Browsing Storage Session.
3340
3341         * WebCoreSupport/WebSystemInterface.mm:
3342         (InitWebCoreSystemInterface):
3343         Add support for using the new WKSI functions in WebCore.
3344
3345 2011-03-05  Ilya Sherman  <isherman@chromium.org>
3346
3347         Reviewed by Darin Adler.
3348
3349         HTMLInputElement::setValue() should schedule change event when the element is focused
3350         In service of https://code.google.com/p/chromium/issues/detail?id=42716
3351         https://bugs.webkit.org/show_bug.cgi?id=53160
3352
3353         * DOM/WebDOMOperations.mm:
3354         (-[DOMHTMLInputElement _setValueForUser:]): Expose HTMLInputElement::setValueForUser() to tests
3355         * DOM/WebDOMOperationsPrivate.h:
3356         * WebView/WebViewInternal.h:
3357
3358 2011-03-04  Jia Pu  <jpu@apple.com>
3359
3360         Reviewed by Darin Adler.
3361
3362         On Mac, the bounding box sent to EditorClient::showCorrectionPanel() is incorrect when the correction occurs in an iframe.
3363         https://bugs.webkit.org/show_bug.cgi?id=55717
3364         <rdar://problem/9018127>
3365
3366         With the change in WebCore, the bounding box passed into EditorClient::showCorrectionPanel()
3367         is already in window coordinate. We don't need to do further conversion anymore.
3368
3369         * WebCoreSupport/WebEditorClient.mm:
3370         (WebEditorClient::showCorrectionPanel):
3371
3372 2011-03-04  Jessie Berlin  <jberlin@apple.com>
3373
3374         Reviewed by Maciej Stachowiak.
3375
3376         WebKit2: Use CFNetwork Sessions API.
3377         https://bugs.webkit.org/show_bug.cgi?id=55435.
3378
3379         When Private Browsing is enabled, get the cached url response from the cache associated with
3380         the Private Browsing Storage Session.
3381
3382         * WebView/WebView.mm:
3383         (-[WebView _cachedResponseForURL:]):
3384
3385 2011-03-03  Anders Carlsson  <andersca@apple.com>
3386
3387         Reviewed by Sam Weinig.
3388
3389         Get rid of Page::globalHistoryItem
3390         https://bugs.webkit.org/show_bug.cgi?id=55738
3391
3392         * WebCoreSupport/WebFrameLoaderClient.h:
3393         * WebCoreSupport/WebFrameLoaderClient.mm:
3394         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
3395         Get the current history item and update it using -[WebView _setGlobalHistoryItem:].
3396     
3397         * WebView/WebView.mm:
3398         (-[WebView _globalHistoryItem]):
3399         (-[WebView _setGlobalHistoryItem:]):
3400         Set _globalHistoryItem ivar.
3401
3402         * WebView/WebViewData.h:
3403         * WebView/WebViewData.mm:
3404         Add _globalHistoryItem ivar.
3405
3406 2011-03-03  Brady Eidson  <beidson@apple.com>
3407
3408         Reviewed by Darin Adler.
3409
3410         https://bugs.webkit.org/show_bug.cgi?id=55721
3411         Global IconDatabase should be returned by reference, not as a pointer
3412
3413         * Misc/WebCoreStatistics.mm:
3414         (+[WebCoreStatistics iconPageURLMappingCount]):
3415         (+[WebCoreStatistics iconRetainedPageURLCount]):
3416         (+[WebCoreStatistics iconRecordCount]):
3417         (+[WebCoreStatistics iconsWithDataCount]):
3418         * Misc/WebIconDatabase.mm:
3419         (-[WebIconDatabase init]):
3420         (-[WebIconDatabase iconForURL:withSize:cache:]):
3421         (-[WebIconDatabase iconURLForURL:]):
3422         (-[WebIconDatabase defaultIconWithSize:]):
3423         (-[WebIconDatabase retainIconForURL:]):
3424         (-[WebIconDatabase releaseIconForURL:]):
3425         (-[WebIconDatabase isEnabled]):
3426         (-[WebIconDatabase setEnabled:]):
3427         (-[WebIconDatabase removeAllIcons]):
3428         (+[WebIconDatabase _checkIntegrityBeforeOpening]):
3429         (-[WebIconDatabase _startUpIconDatabase]):
3430         (-[WebIconDatabase _applicationWillTerminate:]):
3431         (-[WebIconDatabase _resetCachedWebPreferences:]):
3432         (importToWebCoreFormat):
3433         * WebView/WebView.mm:
3434         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
3435
3436 2011-03-03  Jessie Berlin  <jberlin@apple.com>
3437
3438         Reviewed by Adam Roben.
3439
3440         WebKit2: Use CFNetwork Sessions API.
3441         https://bugs.webkit.org/show_bug.cgi?id=55435.
3442
3443         Set the Private Browsing Storage Session on requests when Private Browsing is enabled.
3444
3445         * WebCoreSupport/WebSystemInterface.mm:
3446         (InitWebCoreSystemInterface):
3447         Support using WKCopyRequestWithStorageSession in WebCore.
3448
3449 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
3450
3451         Reviewed by Darin Adler.
3452
3453         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
3454         https://bugs.webkit.org/show_bug.cgi?id=55633
3455         <rdar://problem/8963023>
3456
3457         * WebCoreSupport/WebChromeClient.h:
3458         * WebCoreSupport/WebChromeClient.mm:
3459         Removed tabsToLinks(). Mac WebKit already implements keyboardUIMode().
3460
3461         * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
3462         Removed an incorrect comment. We actually get a value of 2 on Snow Leopard, and we don't
3463         require both bits to be set. The rest of the comment might be wrong too, but I'm not sure,
3464         so I've preserved it.
3465
3466 2011-03-02  Jessie Berlin  <jberlin@apple.com>
3467
3468         Rubber-stamped by Dan Bernstein.
3469
3470         Fix crashes in private browsing tests in WK1 on Snow Leopard.
3471
3472         * WebCoreSupport/WebSystemInterface.mm:
3473         (InitWebCoreSystemInterface):
3474         Put the INIT call for wkCreatePrivateStorageSession outside of the
3475         #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
3476         guards.
3477
3478 2011-03-02  Jessie Berlin  <jberlin@apple.com>
3479
3480         Reviewed by Adam Roben.
3481
3482         WebKit2: Use CFNetwork Sessions API.
3483         https://bugs.webkit.org/show_bug.cgi?id=55435.
3484
3485         Add the ability to create a Private Browsing Storage Session.
3486
3487         * WebCoreSupport/WebSystemInterface.mm:
3488         (InitWebCoreSystemInterface):
3489         Support calling wkCreatePrivateStorageSession from WebCore.
3490
3491 2011-03-02  Daniel Cheng  <dcheng@chromium.org>
3492
3493         Reviewed by David Levin.
3494
3495         Add feature define for data transfer items
3496         https://bugs.webkit.org/show_bug.cgi?id=55510
3497
3498         * Configurations/FeatureDefines.xcconfig:
3499
3500 2011-03-02  Sam Weinig  <sam@webkit.org>
3501
3502         Reviewed by Anders Carlsson.
3503
3504         Fix remaining localization issues by piping all localized strings through WebCore's
3505         localization bottleneck.
3506         <rdar://problem/8728860>
3507
3508         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
3509         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
3510         * Misc/WebKitErrors.m:
3511         * Misc/WebLocalizableStringsInternal.h: Added.
3512         * Misc/WebLocalizableStringsInternal.mm: Added.
3513         (WebLocalizedStringInternal):
3514         * Panels/WebAuthenticationPanel.m:
3515         (-[WebAuthenticationPanel setUpForChallenge:]):
3516         * Plugins/Hosted/NetscapePluginHostManager.mm:
3517         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3518         * WebCoreSupport/WebEditorClient.mm:
3519         (undoNameForEditAction):
3520         * WebCoreSupport/WebInspectorClient.mm:
3521         (WebInspectorFrontendClient::updateWindowTitle):
3522         (-[WebInspectorWindowController validateUserInterfaceItem:]):
3523         * WebCoreSupport/WebKeyGenerator.m:
3524         (-[WebKeyGenerator strengthMenuItemTitles]):
3525         (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]):
3526         * WebCoreSupport/WebPlatformStrategies.mm:
3527         * WebView/WebHTMLView.mm:
3528         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
3529         * WebView/WebPDFView.mm:
3530         (-[WebPDFView menuForEvent:]):
3531
3532 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
3533
3534         Reviewed by Adam Roben.
3535
3536         Part of WebKit2: Need a way to send notifications to client when cookies change
3537         https://bugs.webkit.org/show_bug.cgi?id=55427
3538         <rdar://problem/9056027>
3539         
3540         Add stubs for CookiesStrategy on Mac WebKit1.
3541
3542         * WebCoreSupport/WebPlatformStrategies.h:
3543         * WebCoreSupport/WebPlatformStrategies.mm:
3544         (WebPlatformStrategies::createCookiesStrategy):
3545         (WebPlatformStrategies::notifyCookiesChanged):
3546
3547 2011-03-01  Philippe Normand  <pnormand@igalia.com>
3548
3549         Reviewed by Eric Carlson.
3550
3551         [GStreamer] support in mac video fullscreen controller
3552         https://bugs.webkit.org/show_bug.cgi?id=52280
3553
3554         Factored the code to configure the video overlay in a new private
3555         method of the controller and added GStreamer support to it.
3556
3557         * WebView/WebVideoFullscreenController.h:
3558         * WebView/WebVideoFullscreenController.mm:
3559         (-[WebVideoFullscreenController setupVideoOverlay:]):
3560         (-[WebVideoFullscreenController windowDidLoad]):
3561         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
3562         (-[WebVideoFullscreenController windowDidExitFullscreen]):
3563
3564 2011-02-23  Joseph Pecoraro  <joepeck@webkit.org>
3565
3566         Reviewed by Timothy Hatcher.
3567
3568         All Console Messages should be passed to ChromeClients.
3569         https://bugs.webkit.org/show_bug.cgi?id=54926
3570
3571         Add a new private UIDelegate method, -webView:addMessageToConsole:withSource:,
3572         which supersedes -webView:addMessageToConsole if it exists. The new delegate
3573         does not filter to only JavaScript originated console messages. The old
3574         delegate is left around for clients that expect filtered messages, like
3575         DashCode and older versions of Safari.
3576
3577         The dictionary message passed to the delegate now includes more information
3578         about the message source, type, and level.
3579
3580         * WebCoreSupport/WebChromeClient.mm:
3581         (stringForMessageSource):
3582         (stringForMessageType):
3583         (stringForMessageLevel):
3584         (WebChromeClient::addMessageToConsole):
3585         * WebView/WebUIDelegatePrivate.h:
3586
3587 2011-03-01  Levi Weintraub  <leviw@chromium.org>
3588
3589         Reviewed by Ryosuke Niwa.
3590
3591         Stop instantiating legacy editing Positions in VisiblePosition
3592         https://bugs.webkit.org/show_bug.cgi?id=52919
3593
3594         Changing usage of legacy VisiblePosition constructor. Since we were dealing
3595         with positions from DOM Ranges, we're guaranteed a parent-anchored position.
3596
3597         * WebView/WebFrame.mm:
3598         (-[WebFrame _caretRectAtPosition:affinity:]):
3599         * WebView/WebFrameInternal.h:
3600         * WebView/WebTextCompletionController.mm:
3601         (-[WebTextCompletionController doCompletion]):
3602
3603 2011-03-01  Sam Weinig  <sam@webkit.org>
3604
3605         Reviewed by Timothy Hatcher.
3606
3607         WebKit2 needs to be made localizable
3608         https://bugs.webkit.org/show_bug.cgi?id=55483
3609
3610         * WebCoreSupport/WebPlatformStrategies.mm:
3611         Use WebCore's localizedString function instead of WebLocalizableStrings
3612         since WebCore is now responsible for localization.
3613
3614 2011-02-25 Steve Block <steveblock@google.com>
3615
3616         Reviewed by Jeremy Orlow.
3617
3618         Bridge.h should not include BridgeJSC.h
3619         https://bugs.webkit.org/show_bug.cgi?id=55212
3620
3621         Include BridgeJSC.h directly instead.
3622
3623         * Plugins/Hosted/ProxyInstance.h:
3624         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3625
3626 2011-02-28  Chang Shu  <cshu@webkit.org>
3627
3628         Reviewed by Ryosuke Niwa.
3629
3630         Remove the support of Frame::isContentEditable and its dependencies.
3631         https://bugs.webkit.org/show_bug.cgi?id=54292
3632
3633         Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
3634
3635         * WebCoreSupport/WebEditorClient.h:
3636         * WebCoreSupport/WebEditorClient.mm:
3637         * WebView/WebView.mm:
3638         (-[WebView setEditable:]):
3639         (-[WebView isEditable]):
3640         * WebView/WebViewData.h:
3641
3642 2011-02-28  Oliver Hunt  <oliver@apple.com>
3643
3644         Reviewed by Gavin Barraclough.
3645
3646         Make ScopeChainNode GC allocated
3647         https://bugs.webkit.org/show_bug.cgi?id=55283
3648
3649         More updates for the absence of the ScopeChain class
3650
3651         * WebView/WebScriptDebugDelegate.mm:
3652         (-[WebScriptCallFrame scopeChain]):
3653
3654 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
3655
3656         Reviewed by Pavel Feldman.
3657
3658         DumpRenderTree should reset frame opener between tests.
3659         https://bugs.webkit.org/show_bug.cgi?id=54874
3660
3661         Added clearOpener method to WebFramePrivate.
3662
3663         * WebView/WebFrame.mm:
3664         (-[WebFrame _clearOpener]):
3665         * WebView/WebFramePrivate.h:
3666
3667 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
3668
3669         Unreviewed, rolling out r79764.
3670         http://trac.webkit.org/changeset/79764
3671         https://bugs.webkit.org/show_bug.cgi?id=55295
3672
3673         "broke Chromium builds" (Requested by rniwa on #webkit).
3674
3675         * WebView/WebFrame.mm:
3676         * WebView/WebFramePrivate.h:
3677
3678 2011-02-26  Yongjun Zhang  <yongjun_zhang@apple.com>
3679
3680         Reviewed by David Kilzer.
3681
3682         https://bugs.webkit.org/show_bug.cgi?id=48781
3683
3684         Add a resource load delegate method to query if WebCore should paint the default broken image for failed images.
3685
3686         Add a new resource load client method (shouldPaintBrokenImage).  WebKit client can decide if WebCore
3687         should paint the default broken image when an image fails to load or decode.  The method also passes the
3688         URL of the failed image.
3689
3690         * WebCoreSupport/WebFrameLoaderClient.h:
3691         * WebCoreSupport/WebFrameLoaderClient.mm:
3692         (WebFrameLoaderClient::shouldPaintBrokenImage):
3693         * WebView/WebDelegateImplementationCaching.h:
3694         * WebView/WebDelegateImplementationCaching.mm: Added case for passing one object.
3695         (CallResourceLoadDelegateReturningBoolean):
3696         * WebView/WebResourceLoadDelegatePrivate.h:
3697         * WebView/WebView.mm:
3698         (-[WebView _cacheResourceLoadDelegateImplementations]):
3699
3700 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
3701
3702         Reviewed by Pavel Feldman.
3703
3704         DumpRenderTree should reset frame opener between tests.
3705         https://bugs.webkit.org/show_bug.cgi?id=54874
3706
3707         Added clearOpener method to WebFramePrivate.
3708
3709         * WebView/WebFrame.mm:
3710         (-[WebFrame _clearOpener]):
3711         * WebView/WebFramePrivate.h:
3712
3713 2011-02-25  Mark Rowe  <mrowe@apple.com>
3714
3715         <rdar://problem/8902546> Build fix.
3716
3717         * Misc/QuickDrawCompatibility.h:
3718
3719 2011-02-24  Anders Carlsson  <andersca@apple.com>
3720
3721         Fix clang build.
3722
3723         * WebCoreSupport/WebKeyGenerator.m:
3724         (toWebCertificateParseResult):
3725         (-[WebKeyGenerator addCertificatesToKeychainFromData:]):
3726         * WebView/WebTextCompletionController.mm:
3727
3728 2011-02-24  Peter Kasting  <pkasting@google.com>
3729
3730         Reviewed by Eric Seidel.
3731
3732         Drop the "U; " encryption level from the User Agent string.
3733         https://bugs.webkit.org/show_bug.cgi?id=54566
3734
3735         * WebView/WebView.mm:
3736         (+[WebView _standardUserAgentWithApplicationName:]):
3737
3738 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
3739
3740         Unreviewed, rolling out r79570.
3741         http://trac.webkit.org/changeset/79570
3742         https://bugs.webkit.org/show_bug.cgi?id=54874
3743
3744         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
3745         was not updated
3746
3747         * WebView/WebFrame.mm:
3748         * WebView/WebFramePrivate.h:
3749
3750 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
3751
3752         Reviewed by Alexey Proskuryakov.
3753
3754         DumpRenderTree should reset frame opener between tests.
3755         https://bugs.webkit.org/show_bug.cgi?id=54874
3756
3757         Added clearOpener method to WebFramePrivate.
3758
3759         * WebView/WebFrame.mm:
3760         (-[WebFrame _clearOpener]):
3761         * WebView/WebFramePrivate.h:
3762
3763 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3764
3765         Reviewed by Alexey Proskuryakov.
3766
3767         Drop the language tag part from the User Agent string
3768         https://bugs.webkit.org/show_bug.cgi?id=54560
3769
3770         * WebView/WebView.mm:
3771         (+[WebView _standardUserAgentWithApplicationName:]): Drop the
3772         language tag part.
3773
3774 2011-02-22  Brady Eidson  <beidson@apple.com>
3775
3776         Reviewed by Anders Carlsson.
3777
3778         Part of <rdar://problem/8762042> and https://bugs.webkit.org/show_bug.cgi?id=54514
3779         API to view and delete Application Cache data by origin.
3780
3781         * WebCoreSupport/WebApplicationCache.mm:
3782         (+[WebApplicationCache deleteAllApplicationCaches]): Move this implementation into WebCore itself.
3783
3784 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
3785
3786         Reviewed by Kent Tamura.
3787
3788         Rename Position::node() to Position::deprecatedNode()
3789         https://bugs.webkit.org/show_bug.cgi?id=54622
3790
3791         * WebView/WebFrame.mm:
3792         (-[WebFrame _smartDeleteRangeForProposedRange:]):
3793
3794 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
3795
3796         Reviewed by Kent Tamura.
3797
3798         Rename Position::node() to Position::deprecatedNode()
3799         https://bugs.webkit.org/show_bug.cgi?id=54622
3800         
3801         Done the rename.
3802
3803         * WebView/WebFrame.mm:
3804         (-[WebFrame _smartDeleteRangeForProposedRange:]): Since newStart and newEnd are parent-anchored,
3805         use containerNode() and offsetInContainerNode() instead of deprecated member functions.
3806
3807 2011-02-18  Gavin Barraclough  <barraclough@apple.com>
3808
3809         Reviewed by Sam Weinig.
3810
3811         Bug 54786 - Devirtualize JSCell::classInfo()
3812
3813         Instead of making a virtual function call, add a pointer to the ClassInfo
3814         onto Structure.
3815
3816         This removes a virtual function call, and paves the way towards removing all
3817         the createStructure methods, and StructureFlags/AnonymousSlotCount properties
3818         (these should be able to move onto ClassInfo).
3819
3820         Calls to Structure::create must now pass a pointer to the ClassInfo for the
3821         structure. All objects now have a ClassInfo pointer, non-object cell types
3822         still do not.
3823
3824         Changes are most mechanical, involving three steps:
3825             * Remove virtual classInfo() methods.
3826             * Add &s_info parameter to calls to Structure::create.
3827             * Rename ClassInfo static members on classes from 'info' to 's_info',
3828               for consistency.
3829
3830         * Plugins/Hosted/ProxyInstance.mm:
3831         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
3832         (WebKit::ProxyRuntimeMethod::createStructure):
3833         * Plugins/Hosted/ProxyRuntimeObject.h:
3834         (WebKit::ProxyRuntimeObject::createStructure):
3835         * Plugins/Hosted/ProxyRuntimeObject.mm:
3836         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3837         * WebView/WebView.mm:
3838         (aeDescFromJSValue):
3839
3840 2011-02-19  Brian Ryner  <bryner@chromium.org>
3841
3842         Reviewed by Adam Barth.
3843
3844         Add missing #include of DocumentLoader.h, needed since the transitive
3845         include through Document.h is removed.
3846         https://bugs.webkit.org/show_bug.cgi?id=50489
3847
3848         * WebView/WebFrame.mm:
3849
3850 2011-02-19  Charlie Reis  <creis@chromium.org>
3851
3852         Reviewed by Mihai Parparita.
3853
3854         Ensure loading has stopped in HistoryController::goToItem
3855         https://bugs.webkit.org/show_bug.cgi?id=54517
3856
3857         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
3858
3859         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
3860
3861         * WebCoreSupport/WebFrameLoaderClient.mm:
3862         (WebFrameLoaderClient::shouldStopLoadingForHistoryItem): Added.
3863         * WebCoreSupport/WebFrameLoaderClient.h:
3864
3865 2011-02-16  David Hyatt  <hyatt@apple.com>
3866
3867         Reviewed by Dan Bernstein.
3868
3869         https://bugs.webkit.org/show_bug.cgi?id=54244
3870         
3871         Convert the line box tree to floating point and eliminate font rounding hacks.  This patch removes all of the rounding
3872         hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
3873         
3874         The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
3875         been changed as well.
3876         
3877         In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
3878         
3879         Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
3880         
3881         Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
3882         still have a precise floating point position.
3883
3884         Justification will now allow subpixel positioning to occur as well.  Platforms that don't support subpixel positioning should already
3885         be rounding justification spacing in their font code.
3886
3887         Many layout test results change on Mac, since rounding hacks were used there and are now gone.
3888
3889         * Misc/WebKitNSStringExtras.mm:
3890         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
3891         (-[NSString _web_widthWithFont:]):
3892
3893 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
3894
3895         Reviewed by Adam Roben.
3896
3897         HTML5 <details> and <summary>: localized text
3898         https://bugs.webkit.org/show_bug.cgi?id=54260
3899
3900         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
3901         provide the default label to be used by a <details> tag that has no <summary> child.
3902
3903         * WebCoreSupport/WebPlatformStrategies.h:
3904         * WebCoreSupport/WebPlatformStrategies.mm:
3905         (WebPlatformStrategies::defaultDetailsSummaryText):
3906
3907 2011-02-16  Matthew Delaney  <mdelaney@apple.com>
3908
3909         Reviewed by Simon Fraser.
3910
3911         Allow acceleratesDrawing for WebKit2
3912         https://bugs.webkit.org/show_bug.cgi?id=54511
3913
3914         Plumb through preference for accelerated drawing.
3915         
3916         * WebView/WebPreferenceKeysPrivate.h:
3917         * WebView/WebPreferences.mm:
3918         (+[WebPreferences initialize]):
3919         (-[WebPreferences acceleratedDrawingEnabled]):
3920         (-[WebPreferences setAcceleratedDrawingEnabled:]):
3921         * WebView/WebPreferencesPrivate.h:
3922
3923 2011-02-15  David Kilzer  <ddkilzer@apple.com>
3924
3925         <http://webkit.org/b/54505> Move -[WebDynamicScrollBarsView inProgrammaticScroll] to WebDynamicScrollBarsViewInternal.h
3926
3927         Reviewed by Darin Adler.
3928
3929         * WebView/WebDynamicScrollBarsView.h:
3930         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Removed
3931         declaration.
3932         * WebView/WebDynamicScrollBarsView.mm:
3933         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Moved
3934         implementation into correct category.
3935         * WebView/WebDynamicScrollBarsViewInternal.h:
3936         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Added
3937         declaration.
3938         * WebView/WebHTMLView.mm: Included
3939         WebDynamicScrollBarsViewInternal.h instead of
3940         WebDynamicScrollBarsView.h.
3941
3942 2011-02-14  Oliver Hunt  <oliver@apple.com>
3943
3944         Reviewed by Gavin Barraclough and Geoff Garen.
3945
3946         Refactor handles and weak pointers to become nicer and more automatic
3947         https://bugs.webkit.org/show_bug.cgi?id=54415
3948
3949         Update to use Global<> instead of ProtectedPtr, and refactored slightly
3950         to get global data to places it's needed for when we're assigning to
3951         Global<>s
3952
3953         * ForwardingHeaders/collector/handles/Global.h: Added.
3954         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3955         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3956         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get):
3957         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
3958         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
3959         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
3960         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
3961         (WebKit::NetscapePluginInstanceProxy::evaluate):
3962         (WebKit::NetscapePluginInstanceProxy::invoke):
3963         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3964         (WebKit::NetscapePluginInstanceProxy::construct):
3965         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
3966         * WebView/WebScriptDebugger.h:
3967         * WebView/WebScriptDebugger.mm:
3968         (WebScriptDebugger::WebScriptDebugger):
3969
3970 2011-02-15  Jia Pu  <jpu@apple.com>
3971
3972         Reviewed by Darin Adler.
3973
3974         Autocorrection should respect undo.
3975         https://bugs.webkit.org/show_bug.cgi?id=52221
3976         <rdar://problem/8663399>
3977
3978         Please see WebCore/ChangeLog for detailed description.
3979
3980         * WebCoreSupport/WebEditorClient.h: Updated for the new function declared in EditorClient.
3981
3982         * WebCoreSupport/WebEditorClient.mm:
3983         (WebEditorClient::recordAutocorrectionResponse): Ditto.
3984
3985         * WebView/WebFrame.mm:
3986         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
3987              Adopted new signature of ReplaceSelectionCommand::create().
3988
3989 2011-02-15  David Kilzer  <ddkilzer@apple.com>
3990
3991         <http://webkit.org/b/54485> Fix spelling of -inProgramaticScroll
3992
3993         Reviewed by Darin Adler.
3994
3995         * WebView/WebDynamicScrollBarsView.h:
3996         * WebView/WebDynamicScrollBarsView.mm:
3997         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Renamed from
3998         -inProgramaticScroll.
3999         * WebView/WebHTMLView.mm:
4000         (-[WebHTMLView _frameOrBoundsChanged]): Corrected method name.
4001
4002 2011-02-15  Kenneth Russell  <kbr@google.com>
4003
4004         Reviewed by Darin Fisher.
4005
4006         Allow controlling minimum DOMTimer interval on a per-page basis
4007         https://bugs.webkit.org/show_bug.cgi?id=54312
4008
4009         Added needed methods to implement LayoutTestController's new
4010         setMinimumTimerInterval method.
4011
4012         * WebView/WebView.mm:
4013         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
4014         (+[WebView _defaultMinimumTimerInterval]):
4015         (-[WebView _setMinimumTimerInterval:]):
4016         * WebView/WebViewPrivate.h:
4017
4018 2011-02-11  Geoffrey Garen  <ggaren@apple.com>
4019
4020         Reviewed by Oliver Hunt.
4021
4022         A little more encapsulation for the heap: Removed CollectorHeapIterator
4023         https://bugs.webkit.org/show_bug.cgi?id=54298
4024
4025         * Misc/WebCoreStatistics.mm:
4026         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
4027         (+[WebCoreStatistics javaScriptObjectTypeCounts]): Updated for new typedef.
4028
4029 2011-02-10  Nate Chapin  <japhet@chromium.org>
4030
4031         Reviewed by Adam Barth.
4032
4033         Update calls to DocumentWriter.
4034         https://bugs.webkit.org/show_bug.cgi?id=50489
4035
4036         * WebView/WebFrame.mm:
4037         (-[WebFrame _canProvideDocumentSource]):
4038
4039 2011-02-10  Chris Fleizach  <cfleizach@apple.com>
4040
4041         Reviewed by Anders Carlsson.
4042
4043         AX: AX needs to stop using WebCoreViewFactory
4044         https://bugs.webkit.org/show_bug.cgi?id=54153
4045
4046         * WebCoreSupport/WebSystemInterface.mm:
4047         (InitWebCoreSystemInterface):
4048
4049 2011-02-10  Peter Varga  <pvarga@webkit.org>
4050
4051         Reviewed by Csaba Osztrogonác.
4052
4053         Remove PCRE source from trunk
4054         https://bugs.webkit.org/show_bug.cgi?id=54188
4055
4056         * ForwardingHeaders/pcre/pcre.h: Removed.
4057
4058 2011-02-09  Pavel Feldman  <pfeldman@chromium.org>
4059
4060         Reviewed by Yury Semikhatsky.
4061
4062         Web Inspector: follow up on InspectorAgent split -
4063         removing unnecessary methods from InspectorController.
4064         https://bugs.webkit.org/show_bug.cgi?id=54093
4065
4066         * WebInspector/WebInspector.mm:
4067         (-[WebInspector showConsole:]):
4068         (-[WebInspector stopProfilingJavaScript:]):
4069
4070 2011-02-08  Dan Bernstein  <mitz@apple.com>
4071
4072         Reviewed by Jon Honeycutt and Maciej Stachowiak.
4073
4074         <rdar://problem/8959420> Find in Mail no longer cycles around
4075
4076         * WebView/WebHTMLView.mm:
4077         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Set
4078         the wrap option according to the flag.
4079
4080 2011-02-08  Sheriff Bot  <webkit.review.bot@gmail.com>
4081
4082         Unreviewed, rolling out r77980.
4083         http://trac.webkit.org/changeset/77980
4084         https://bugs.webkit.org/show_bug.cgi?id=54043
4085
4086         "Crashes on Windows and Linux..." (Requested by leviw on
4087         #webkit).
4088
4089         * WebView/WebFrame.mm:
4090         (-[WebFrame _caretRectAtNode:offset:affinity:]):
4091         * WebView/WebFrameInternal.h:
4092         * WebView/WebTextCompletionController.mm:
4093         (-[WebTextCompletionController doCompletion]):
4094
4095 2011-02-08  Levi Weintraub  <leviw@chromium.org>
4096
4097         Reviewed by Ryosuke Niwa.
4098
4099         Stop instantiating legacy editing Positions in VisiblePosition
4100         https://bugs.webkit.org/show_bug.cgi?id=52919
4101
4102         Changing usage of legacy VisiblePosition constructor. Since we were dealing
4103         with positions from DOM Ranges, we're guaranteed a parent-anchored position.
4104
4105         * WebView/WebFrame.mm:
4106         (-[WebFrame _caretRectAtPosition:affinity:]):
4107         * WebView/WebFrameInternal.h:
4108         * WebView/WebTextCompletionController.mm:
4109         (-[WebTextCompletionController doCompletion]):
4110
4111 2011-02-08  Adam Barth  <abarth@webkit.org>
4112
4113         Reviewed by Eric Seidel.
4114
4115         Remove orphan code from old parser
4116         https://bugs.webkit.org/show_bug.cgi?id=53984
4117
4118         * WebCoreSupport/WebChromeClient.h:
4119
4120 2011-02-02  Ilya Tikhonovsky  <loislo@chromium.org>
4121
4122         Reviewed by Yury Semikhatsky.
4123
4124         Web Inspector: move InspectorController's methods from InspectorAgent to InspectorController.
4125
4126         https://bugs.webkit.org/show_bug.cgi?id=53169
4127
4128         Minor change enforced by major changes in WebCore/inspector/InspectorController.
4129
4130         * WebInspector/WebInspector.mm:
4131         (-[WebInspector isTimelineProfilingEnabled]):
4132
4133 2011-02-07  Enrica Casucci  <enrica@apple.com>
4134
4135         Reviewed Adam Roben and Darin Adler.
4136
4137         WebKit2: drag and drop support on Windows.
4138         https://bugs.webkit.org/show_bug.cgi?id=52775
4139
4140         Removed createDragImageForLink from DragClient.
4141
4142         * WebCoreSupport/WebDragClient.h:
4143         * WebCoreSupport/WebDragClient.mm:
4144         (WebDragClient::startDrag):
4145
4146 2011-02-03  Yury Semikhatsky  <yurys@chromium.org>
4147
4148         Reviewed by Pavel Feldman.
4149
4150         Web Inspector: remove settings related methods from InspectorClient
4151         https://bugs.webkit.org/show_bug.cgi?id=53686
4152
4153         * WebCoreSupport/WebInspectorClient.h:
4154         * WebCoreSupport/WebInspectorClient.mm:
4155         (WebInspectorClient::openInspectorFrontend):
4156         (WebInspectorFrontendClient::WebInspectorFrontendClient):
4157
4158 2011-02-03  James Kozianski  <koz@chromium.org>
4159
4160         Reviewed by Dimitri Glazkov.
4161
4162         Add navigator.registerProtocolHandler behind a flag.
4163         https://bugs.webkit.org/show_bug.cgi?id=52609
4164
4165         * Configurations/FeatureDefines.xcconfig:
4166
4167 2011-02-03  Adam Langley  <agl@chromium.org>
4168
4169         Reviewed by Adam Barth.
4170
4171         Plumb mixed script URL to FrameLoaderClient
4172         https://bugs.webkit.org/show_bug.cgi?id=52384
4173
4174         Regressions covered by http/tests/security/mixedContent/*
4175
4176         * WebCoreSupport/WebFrameLoaderClient.h:
4177         * WebCoreSupport/WebFrameLoaderClient.mm:
4178         (WebFrameLoaderClient::didRunInsecureContent):
4179
4180 2011-02-03  Beth Dakin  <bdakin@apple.com>
4181
4182         Reviewed by Sam Weinig.
4183
4184         Fix for <rdar://problem/8944544> Ability to animate track
4185         for WKPainter scrollers
4186
4187         * WebCoreSupport/WebSystemInterface.mm:
4188         (InitWebCoreSystemInterface):