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