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