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