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