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