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