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