Made -[WebHistoryItem copyWithZone:] allocate an object of the same class as the...
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2012-01-10  Dan Bernstein  <mitz@apple.com>
2
3         Made -[WebHistoryItem copyWithZone:] allocate an object of the same class as the receiver.
4
5         Reviewed by Mark Rowe.
6
7         * History/WebHistoryItem.mm:
8         (-[WebHistoryItem copyWithZone:]):
9
10 2012-01-10  Chris Marrin  <cmarrin@apple.com>
11
12         Wrapped allowedCompositingTriggers in ACCELERATED_COMPOSITING ifdef to make non-accelerated builds work
13
14         Unreviewed.
15
16         * WebCoreSupport/WebChromeClient.h:
17
18 2012-01-10  Chris Marrin  <cmarrin@apple.com>
19
20         Turn off the FilterTrigger in WebKit and WebKit2
21         https://bugs.webkit.org/show_bug.cgi?id=75914
22
23         Reviewed by Simon Fraser.
24
25         Implement allowedCompositingTriggers to turn on all compositing triggers except FilterTrigger.
26
27         * WebCoreSupport/WebChromeClient.h:
28         (WebChromeClient::allowedCompositingTriggers):
29
30 2012-01-10  Dan Bernstein  <mitz@apple.com>
31
32         Change -[WebHistoryItem copyWithZone:] to not use NSCopyObject()
33         https://bugs.webkit.org/show_bug.cgi?id=75980
34
35         Reviewed by Mark Rowe.
36
37         * History/WebHistoryItem.mm:
38         (-[WebHistoryItem copyWithZone:]): Replaced NSCopyObject() with
39         -alloc, -initWithWebCoreHistoryItem:.
40
41 2012-01-06  Simon Fraser  <simon.fraser@apple.com>
42
43         Mitigate scrollbar differences when running pixel tests
44         https://bugs.webkit.org/show_bug.cgi?id=67217
45
46         Reviewed by Dan Bernstein.
47         
48         Make it possible to register a custom NSScroller class, which
49         the WebDynamicScrollBarsView will use when mock scrollbars are enabled.
50         
51         Also ensure that the WebPreferences mock scrollbars preference is
52         migrated into Settings.
53
54         * WebView/WebDynamicScrollBarsView.h:
55         * WebView/WebDynamicScrollBarsView.mm:
56         (+[WebDynamicScrollBarsView _horizontalScrollerClass]):
57         (+[WebDynamicScrollBarsView _verticalScrollerClass]):
58         (+[WebDynamicScrollBarsView setCustomScrollerClass:]):
59         * WebView/WebView.mm:
60         (-[WebView _preferencesChanged:]):
61
62 2012-01-05  Dan Bernstein  <mitz@apple.com>
63
64         <rdar://problem/10633760> Update copyright strings
65
66         Reviewed by Mark Rowe.
67
68         * Info.plist:
69
70 2012-01-05  Pratik Solanki  <psolanki@apple.com>
71
72         WebFrameLoaderClient::userAgent does unnecessary NSString/NSURL conversions
73         https://bugs.webkit.org/show_bug.cgi?id=75586
74
75         Reviewed by Alexey Proskuryakov.
76
77         We do unnecessary KURL->NSURL* and String<->NSString* when calling [WebView
78         userAgentForURL:] from WebFrameLoaderClient::userAgent. Instead we add a separate function,
79         _userAgentString that returns a WTF::String to make this call faster.
80
81         * WebCoreSupport/WebFrameLoaderClient.mm:
82         (WebFrameLoaderClient::userAgent):
83         * WebView/WebView.mm:
84         (-[WebView _userAgentString]):
85         (-[WebView userAgentForURL:]):
86         * WebView/WebViewInternal.h:
87
88 2012-01-04  Anders Carlsson  <andersca@apple.com>
89
90         Ambiguous if-then-else in Source/WebKit/mac/Misc/WebNSPasteboardExtras.mm
91         https://bugs.webkit.org/show_bug.cgi?id=75447
92
93         Reviewed by Brian Weinstein.
94
95         Resolve the ambiguity.
96
97         * Misc/WebNSPasteboardExtras.mm:
98         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:source:]):
99
100 2012-01-04  Mihnea Ovidenie  <mihnea@adobe.com>
101
102         [Mac]Fix build after changeset 103997
103         https://bugs.webkit.org/show_bug.cgi?id=75530
104
105         Reviewed by Andreas Kling.
106
107         * WebView/WebFrame.mm:
108         * WebView/WebHTMLView.mm:
109         * WebView/WebPDFView.mm:
110         * WebView/WebView.mm:
111
112 2012-01-03  Jon Lee  <jonlee@apple.com>
113
114         Leak of WebNotificationClient when page is destroyed
115         https://bugs.webkit.org/show_bug.cgi?id=74980
116         <rdar://problem/10611231>
117
118         Reviewed by Mark Rowe.
119
120         * WebCoreSupport/WebNotificationClient.h:
121         * WebCoreSupport/WebNotificationClient.mm:
122         (WebNotificationClient::notificationControllerDestroyed): Remove the instance.
123
124 2012-01-02  Dan Bernstein  <mitz@apple.com>
125
126         [mac] Remove -[WebView setHoverFeedbackSuspended:]
127         https://bugs.webkit.org/show_bug.cgi?id=75406
128
129         Reviewed by Tim Hatcher.
130
131         * WebView/WebHTMLView.mm:
132         (-[WebHTMLView _updateMouseoverWithEvent:]): Removed check for suspended hover updates.
133         * WebView/WebHTMLViewInternal.h: Removed -_hoverFeedbackSuspendedChanged.
134         * WebView/WebView.mm:
135         (-[WebView setHoverFeedbackSuspended:]): Left empty implementation to support versions of
136         Safari that call this.
137         (-[WebView isHoverFeedbackSuspended]): Left implementation that always returns NO to support
138         versions of Safari that call this.
139         * WebView/WebViewData.h: Removed hoverFeedbackSuspended ivar.
140         * WebView/WebViewPrivate.h: Removed method definitions.
141
142 2011-12-31  Dan Bernstein  <mitz@apple.com>
143
144         WebKit/mac changes for: REGRESSION (WebKit2): Cursor, hover states not updated when page scrolls under stationary mouse pointer
145         https://bugs.webkit.org/show_bug.cgi?id=75405
146
147         Reviewed by Anders Carlsson.
148
149         Removed the WebKit/mac mechanism for dispatching fake mouse moved events
150         when an HTML frame scrolls, since FrameView now does this.
151
152         * WebView/WebHTMLView.mm:
153         (-[WebHTMLViewPrivate dealloc]): Removed an assertion about a removed ivar.
154         (-[WebHTMLView _updateMouseoverWithFakeEvent]): Removed call to
155         -_cancelUpdateMouseoverTimer.
156         (-[WebHTMLView _frameOrBoundsChanged]): Removed code to schedule a timer
157         for dispatching a mouse moved event on scroll.
158         (-[WebHTMLView close]): Removed call to _cancelUpdateMouseoverTimer.
159         (-[WebHTMLView viewWillMoveToWindow:]): Ditto.
160         (-[WebHTMLView mouseDown:]): Ditto.
161
162 2011-12-23  Ryosuke Niwa  <rniwa@webkit.org>
163
164         Chromium Mac build fix.
165
166         * WebCoreSupport/WebSystemInterface.mm:
167         (InitWebCoreSystemInterface):
168
169 2011-12-21  Sam Weinig  <sam@webkit.org>
170
171         Start extracting platform specific bits out of PlatformEvents
172         https://bugs.webkit.org/show_bug.cgi?id=75063
173
174         Reviewed by Anders Carlsson.
175
176         * WebCoreSupport/WebSystemInterface.mm:
177         (InitWebCoreSystemInterface):
178         * WebView/WebFrame.mm:
179         * WebView/WebHTMLView.mm:
180         (-[WebHTMLView menuForEvent:]):
181         (-[WebHTMLView acceptsFirstMouse:]):
182         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
183         (currentKeyboardEvent):
184         (-[WebHTMLView flagsChanged:]):
185         * WebView/WebPDFView.mm:
186         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
187         * WebView/WebView.mm:
188
189 2011-12-21  Timothy Hatcher  <timothy@apple.com>
190
191         Web Inspector: suppress incremental rendering and use application chrome mode
192
193         https://webkit.org/b/75026
194
195         Reviewed by Joseph Pecoraro.
196
197         * WebCoreSupport/WebInspectorClient.mm:
198         (-[WebInspectorWindowController init]): Sort the preferences, remove the Leopard font family setting,
199         set suppress incremental rendering and use application chrome mode.
200
201 2011-12-20  Pavel Feldman  <pavel.feldman@gmail.com>
202
203         Web Inspector: reproducible crash after closing web inspector and browser window  (iCab)
204         https://bugs.webkit.org/show_bug.cgi?id=74255
205
206         Reviewed by Yury Semikhatsky.
207
208         * WebCoreSupport/WebInspectorClient.h:
209         * WebCoreSupport/WebInspectorClient.mm:
210         (WebInspectorClient::bringFrontendToFront):
211         (-[WebInspectorWindowController destroyInspectorView:]):
212
213 2011-12-19  Eric Carlson  <eric.carlson@apple.com>
214
215         Enable <track> for Mac build
216         https://bugs.webkit.org/show_bug.cgi?id=74838
217
218         Reviewed by Darin Adler.
219
220         * Configurations/FeatureDefines.xcconfig:
221
222 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
223
224         Rename registerCommandFor(Undo|Redo) to register(Undo|Redo)Step
225         https://bugs.webkit.org/show_bug.cgi?id=74748
226
227         Reviewed by Eric Seidel.
228
229         * WebCoreSupport/WebEditorClient.h:
230         * WebCoreSupport/WebEditorClient.mm:
231         (WebEditorClient::registerUndoOrRedoStep):
232         (WebEditorClient::registerUndoStep):
233         (WebEditorClient::registerRedoStep):
234
235 2011-12-16  Sam Weinig  <sam@webkit.org>
236
237         Give PlatformEvents a base class
238         https://bugs.webkit.org/show_bug.cgi?id=74685
239
240         Reviewed by Anders Carlsson.
241
242         Add a base class for PlatformMouseEvent, PlatformKeyboardEvent, PlatformWheelEvent
243         and PlatformGestureEvent and move Type enumeration and modifiers down to it.
244
245         * WebView/WebFrame.mm:
246         (-[WebFrame _dragSourceEndedAt:operation:]):
247         * WebView/WebHTMLView.mm:
248         (currentKeyboardEvent):
249         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
250         * WebView/WebPDFView.mm:
251         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
252
253 2011-12-16  Simon Fraser  <simon.fraser@apple.com>
254
255         Fix a #elsif fumble in my earlier commit.
256
257         * WebView/WebHTMLView.mm:
258         (-[WebHTMLView attachRootLayer:]):
259
260 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
261
262         Only EditCommandComposition should implement unapply and reapply
263         https://bugs.webkit.org/show_bug.cgi?id=74490
264
265         Reviewed by Eric Seidel.
266
267         * WebCoreSupport/WebEditorClient.h:
268         * WebCoreSupport/WebEditorClient.mm:
269         (-[WebUndoStep initWithUndoStep:]):
270         (-[WebUndoStep dealloc]):
271         (+[WebUndoStep stepWithUndoStep:]):
272         (-[WebUndoStep step]):
273         (-[WebEditorUndoTarget undoEditing:]):
274         (-[WebEditorUndoTarget redoEditing:]):
275         (WebEditorClient::registerCommandForUndoOrRedo):
276         (WebEditorClient::registerCommandForUndo):
277         (WebEditorClient::registerCommandForRedo):
278
279 2011-12-16  Simon Fraser  <simon.fraser@apple.com>
280
281         <rdar://problem/10589427> Avoid calling -setGeometryFlipped ourselves on the layer hosting view's layer
282
283         Reviewed by Sam Weinig.
284         
285         Now that we're using a flipped view to host the compositing layers,
286         we should not set geometryFlipped on the root layer ourselves.
287
288         * WebView/WebHTMLView.mm:
289         (-[WebHTMLView attachRootLayer:]):
290
291 2011-12-16  Mark Hahnenberg  <mhahnenberg@apple.com>
292
293         De-virtualize destructors
294         https://bugs.webkit.org/show_bug.cgi?id=74331
295
296         Reviewed by Geoffrey Garen.
297
298         * Plugins/Hosted/ProxyRuntimeObject.h: Remove empty virtual destructor.
299         * Plugins/Hosted/ProxyRuntimeObject.mm:
300
301 2011-12-14  Ryosuke Niwa  <rniwa@webkit.org>
302
303         Mac build fix after r102874.
304
305         * WebCoreSupport/WebChromeClient.mm:
306
307 2011-12-14  Jing Zhao  <jingzhao@chromium.org>
308
309         Opening two popup menus by dispatchEvent() makes problems.
310         https://bugs.webkit.org/show_bug.cgi?id=73304
311
312         Reviewed by Kent Tamura.
313
314         * WebCoreSupport/WebChromeClient.h: Overrides hasOpenedPopup().
315         * WebCoreSupport/WebChromeClient.mm:
316         (WebChromeClient::hasOpenedPopup): Not implemented.
317
318 2011-12-14  Michael Saboff  <msaboff@apple.com>
319
320         Mac WebScriptDebugger crashes beneath sourceParsed()
321         https://bugs.webkit.org/show_bug.cgi?id=74564
322
323         Reviewed by Gavin Barraclough.
324
325         * WebView/WebScriptDebugger.mm:
326         (toNSString): Change to use ->characters() method to
327         actually get characters for string conversion.
328
329 2011-12-14  Hajime Morrita  <morrita@chromium.org>
330
331         JS_INLINE and WTF_INLINE should be visible from WebCore
332         https://bugs.webkit.org/show_bug.cgi?id=73191
333
334         Reviewed by Kevin Ollivier.
335
336         Removed macro definitions which is now provided by Platform.h
337
338         * WebKitPrefix.h:
339
340 2011-12-13  Jon Lee  <jonlee@apple.com>
341
342         Enable notifications on Mac.
343
344         Reviewed by Sam Weinig.
345
346         * Configurations/FeatureDefines.xcconfig:
347
348 2011-12-12  Ryosuke Niwa  <rniwa@webkit.org>
349
350         WebKit code shouldn't be calling applyCommand directly
351         https://bugs.webkit.org/show_bug.cgi?id=74337
352
353         Reviewed by Darin Adler.
354
355         * WebView/WebFrame.mm:
356         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
357
358 2011-12-12  Brady Eidson  <beidson@apple.com>
359
360         Page cache should support pages with plugins.
361         <rdar://problem/5190122> and https://bugs.webkit.org/show_bug.cgi?id=13634
362
363         Expose a WebKit preference for the page cache supporting plugins (on by default).
364
365         Reviewed by Anders Carlsson.
366
367         * WebView/WebPreferenceKeysPrivate.h:
368
369         * WebView/WebPreferences.mm:
370         (-[WebPreferences pageCacheSupportsPlugins]):
371         (-[WebPreferences setPageCacheSupportsPlugins:]):
372         * WebView/WebPreferencesPrivate.h:
373
374         * WebView/WebView.mm:
375         (-[WebView _preferencesChanged:]):
376
377 2011-12-12  Dan Bernstein  <mitz@apple.com>
378
379         <rdar://problem/10328474> Text highlight changes to gray selection color when menu extra is shown
380
381         Reviewed by John Sullivan.
382
383         * WebView/WebView.mm:
384         (-[WebView _updateActiveState]): Changed to use -[NSWindow _hasKeyAppearance] instead
385         of -isKeyWindow. The former also returns YES when a menu extra is open.
386         (-[WebView addWindowObserversForWindow:]): Removed code to observe
387         NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification.
388         (-[WebView removeWindowObservers]): Removed code to stop observing the above.
389         (-[WebView _windowChangedKeyState]): Overridden this to call _updateActiveState.
390         This is called when the result of -_hasKeyAppearance changes.
391         (-[WebView _windowWillOrderOnScreen:]): Removed call to _updateActiveState,
392         previously needed for popovers, because _windowChangedKeyState is invoked
393         at the right time for them.
394         (-[WebView _windowWillOrderOffScreen:]): Ditto.
395
396 2011-12-07  Mark Rowe  <mrowe@apple.com>
397
398         Fix the 32-bit build.
399
400         Ignore some warnings that only occur in 32-bit.
401
402         * Plugins/WebNetscapePluginPackage.mm:
403
404 2011-12-07  Mary Wu  <mary.wu@torchmobile.com.cn>
405
406         Change function name InitializeLoggingChannelsIfNecessary to follow coding style guideline
407         https://bugs.webkit.org/show_bug.cgi?id=73986
408
409         Reviewed by Kenneth Rohde Christiansen.
410
411         * WebView/WebView.mm:
412         (-[WebView _commonInitializationWithFrameName:groupName:]):
413
414 2011-12-06  Alexey Proskuryakov  <ap@apple.com>
415
416         REGRESSION (WebKit2): Kill ring is not cleared when selection changes
417         https://bugs.webkit.org/show_bug.cgi?id=73888
418         <rdar://problem/10532310>
419
420         Reviewed by Mark Rowe.
421
422         * WebView/WebHTMLView.mm:
423         (-[WebHTMLView becomeFirstResponder]): Added a FIXME comment.
424         (-[WebHTMLView _selectionChanged]): Moved the code to clear kill ring to WebCore. The rest
425         of kill ring implementation is there, so it makes no sense to have this call in WebKits.
426
427 2011-12-05  Anders Carlsson  <andersca@apple.com>
428
429         Make LayerFlushSchedulerClient::flushLayers indicate whether the flush was successful or not
430         https://bugs.webkit.org/show_bug.cgi?id=73862
431
432         Reviewed by Andy Estes.
433
434         Remove the call to LayerFlushScheduler::invalidate and return true instead. Return false for the cases
435         where we don't want the layer flush scheduler to be invalidated.
436
437         * WebView/WebView.mm:
438         (LayerFlushController::flushLayers):
439         * WebView/WebViewData.h:
440
441 2011-12-05  Eric Carlson  <eric.carlson@apple.com>
442
443         Add WebKit preferences for text track settings
444         https://bugs.webkit.org/show_bug.cgi?id=73721
445
446         Reviewed by John Sullivan.
447
448         * WebView/WebPreferenceKeysPrivate.h: Added #define for shouldDisplaySubtitles, shouldDisplayCaptions, 
449         and shouldDisplayTextDescriptions properties.
450
451         * WebView/WebPreferences.mm:
452         (+[WebPreferences initialize]): Initialize new preferences to NO.
453         (-[WebPreferences setShouldDisplaySubtitles:]): Added.
454         (-[WebPreferences shouldDisplaySubtitles]): Ditto.
455         (-[WebPreferences setShouldDisplayCaptions:]): Ditto.
456         (-[WebPreferences shouldDisplayCaptions]): Ditto.
457         (-[WebPreferences setShouldDisplayTextDescriptions:]): Ditto.
458         (-[WebPreferences shouldDisplayTextDescriptions]): Ditto.
459         * WebView/WebPreferencesPrivate.h:
460
461         * WebView/WebView.mm:
462         (-[WebView _preferencesChanged:]): Updates WebCore settings from WebKit prefs.
463
464 2011-12-03  Dan Bernstein  <mitz@apple.com>
465
466         <rdar://problem/10523721> Crash at WebCore::SubresourceLoader::releaseResources
467         Reviewed by Darin Adler.
468
469         * WebView/WebView.mm:
470         (-[WebView _removeObjectForIdentifier:]): Changed the CFRelease(self) into
471         a WebCFAutorelease(self). This prevents re-entry into this method due to
472         the WebView closing and canceling all subresource loads, including the
473         one we have just removed.
474
475 2011-12-02  David Levin  <levin@chromium.org>
476
477         Rename WTF class from TemporarilyChange to TemporaryChange.
478         https://bugs.webkit.org/show_bug.cgi?id=73479
479
480         Reviewed by Eric Seidel.
481
482         * ForwardingHeaders/wtf/TemporarilyChange.h: Removed.
483         * ForwardingHeaders/wtf/TemporaryChange.h: Added.
484
485 2011-12-02  Simon Fraser  <simon.fraser@apple.com>
486
487         <rdar://problem/10423627> Layers are flipped in WebKit1 views
488
489         Reviewed by Sam Weinig.
490         
491         Host the compositing layers in an NSView which is flipped, which helps AppKit
492         get the geometry right in some situations.
493
494         * WebView/WebHTMLView.mm:
495         (-[WebLayerHostingFlippedView isFlipped]):
496         (-[WebHTMLView attachRootLayer:]):
497
498 2011-12-02  Hajime Morrita  <morrita@chromium.org>
499
500         Unreviewed, rolling out r101751 and r101775.
501         http://trac.webkit.org/changeset/101751
502         http://trac.webkit.org/changeset/101775
503         https://bugs.webkit.org/show_bug.cgi?id=73191
504
505         breaks Windows build
506
507         * WebKitPrefix.h:
508
509 2011-12-01  Hajime Morrita  <morrita@chromium.org>
510
511         JS_INLINE and WTF_INLINE should be visible from WebCore
512         https://bugs.webkit.org/show_bug.cgi?id=73191
513
514         Reviewed by Kevin Ollivier.
515
516         Removed macro definitions which is now provided by Platform.h
517
518         * WebKitPrefix.h:
519
520 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
521
522         Remove an unneeded argument from FrameLoaderClient::download
523         https://bugs.webkit.org/show_bug.cgi?id=73486
524
525         Reviewed by Andreas Kling.
526
527         * WebCoreSupport/WebFrameLoaderClient.h:
528         * WebCoreSupport/WebFrameLoaderClient.mm:
529         (WebFrameLoaderClient::download):
530         Updated for the change.
531
532 2011-11-30  Dan Bernstein  <mitz@apple.com>
533
534         WebKit/mac part of: Allow the length of a page along the pagination axis to differ from the length of the view
535         https://bugs.webkit.org/show_bug.cgi?id=73476
536
537         Reviewed by Anders Carlsson.
538
539         * WebView/WebView.mm:
540         (-[WebView _setPageLength:]): Added this accessor.
541         (-[WebView _pageLength]): Ditto.
542         * WebView/WebViewPrivate.h:
543
544 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
545
546         Download page URL should be set by WebCore
547         https://bugs.webkit.org/show_bug.cgi?id=73358
548
549         Reviewed by Darin Adler.
550
551         * WebCoreSupport/WebFrameLoaderClient.h: Removed setOriginalURLForDownload, which is now
552         in WebCore.
553
554         * WebCoreSupport/WebFrameLoaderClient.mm:
555         (WebFrameLoaderClient::download): There is no need to set original URL post factum any more.
556         (WebFrameLoaderClient::startDownload): Ditto.
557
558 2011-11-29  David Levin  <levin@chromium.org>
559
560         Add a way to revert a variable to its previous value after leaving a scope.
561         https://bugs.webkit.org/show_bug.cgi?id=73371
562
563         Reviewed by Adam Barth.
564
565         * ForwardingHeaders/wtf/TemporarilyChange.h: Added.
566
567 2011-11-29  Jessie Berlin  <jberlin@apple.com>
568
569         WKKeyValueStorageManagerGetKeyValueStorageOrigins may not report the correct list of origins
570         the first time it is called.
571         https://bugs.webkit.org/show_bug.cgi?id=73374 (<rdar://problem/10196057>)
572
573         Reviewed by Brady Eidson.
574
575         * Storage/WebStorageTrackerClient.h:
576         * Storage/WebStorageTrackerClient.mm:
577         (WebStorageTrackerClient::didFinishLoadingOrigins):
578
579 2011-11-15  Anders Carlsson  <andersca@apple.com>
580
581         DragClient::dragSourceActionMaskForPoint should use root view coordinates
582         https://bugs.webkit.org/show_bug.cgi?id=72409
583
584         Reviewed by Sam Weinig.
585
586         * WebCoreSupport/WebDragClient.mm:
587         (WebDragClient::dragSourceActionMaskForPoint):
588         Use -[WebView _convertPointFromRootView:] to convert the point to the web view coordinate system.
589
590 2011-11-15  Anders Carlsson  <andersca@apple.com>
591
592         EditorClient::showCorrectionPanel should pass the string bounding box in root view coordinates
593         https://bugs.webkit.org/show_bug.cgi?id=72408
594
595         Reviewed by Sam Weinig.
596
597         * WebCoreSupport/CorrectionPanel.mm:
598         (CorrectionPanel::show):
599         Convert the bounding rect to web view coordinates.
600
601         * WebView/WebView.mm:
602         (-[WebView _convertPointFromRootView:]):
603         (-[WebView _convertRectFromRootView:]):
604         * WebView/WebViewInternal.h:
605         Add helper methods for converting from root view coordinates to web view coordinates.
606
607 2011-11-29  Roland Steiner  <rolandsteiner@chromium.org>
608
609         <style scoped>: add ENABLE(STYLE_SCOPED) flag to WebKit
610         https://bugs.webkit.org/show_bug.cgi?id=72848
611
612         Reviewed by Dimitri Glazkov.
613
614         * Configurations/FeatureDefines.xcconfig:
615
616 2011-11-28  Jon Lee  <jonlee@apple.com>
617
618         Create skeleton framework for notifications support in WK2
619         https://bugs.webkit.org/show_bug.cgi?id=73253
620         <rdar://problem/10356943>
621
622         Reviewed by Sam Weinig.
623
624         * Configurations/FeatureDefines.xcconfig: Split out ENABLE_NOTIFICATIONS based on platform.
625
626         * WebCoreSupport/WebNotificationClient.h: Added.
627         (WebNotificationClient::webView):
628         * WebCoreSupport/WebNotificationClient.mm: Added. Implemented as stubs for now.
629         (WebNotificationClient::WebNotificationClient):
630         (WebNotificationClient::show):
631         (WebNotificationClient::cancel):
632         (WebNotificationClient::notificationObjectDestroyed):
633         (WebNotificationClient::requestPermission):
634         (WebNotificationClient::cancelRequestsForPermission):
635         (WebNotificationClient::checkPermission):
636         * WebView/WebView.mm: Set PageClient's notification client to an instance of this stubbed class.
637
638 2011-11-28  Adam Roben  <aroben@apple.com>
639
640         Properly retain the OS X version string
641
642         Fixes <http://webkit.org/b/73214> REGRESSION (r101215): Crash on launch beneath +[WebView
643         _standardUserAgentWithApplicationName:]
644
645         Reviewed by Antti Koivisto.
646
647         * WebView/WebView.mm:
648         (createMacOSXVersionString): Retain the string we're returning, since this function is
649         supposed to return an owning reference to the caller.
650
651 2011-11-28  Hayato Ito  <hayato@chromium.org>
652
653         Fix chromium canary build after r101215.
654         Unreviewed. Build fix.
655
656         * WebCoreSupport/WebSystemInterface.mm:
657         (InitWebCoreSystemInterface):
658
659 2011-11-27  Mark Rowe  <mrowe@apple.com>
660
661         <http://webkit.org/b/72665> Switch to a more modern approach to retrieving the OS marketing version
662
663         Reviewed by Dan Bernstein.
664
665         * WebCoreSupport/WebSystemInterface.mm:
666         (InitWebCoreSystemInterface): Set up wkGetMacOSXVersionString.
667         * WebView/WebView.mm:
668         (createMacOSXVersionString): Use WKGetMacOSXVersionString.
669
670 2011-11-26  Pavel Feldman  <pfeldman@google.com>
671
672         Web Inspector: remove disconnectFromBackend from the protocol.
673         https://bugs.webkit.org/show_bug.cgi?id=73127
674
675         Reviewed by Yury Semikhatsky.
676
677         * WebCoreSupport/WebInspectorClient.h:
678         * WebCoreSupport/WebInspectorClient.mm:
679         (WebInspectorClient::inspectorDestroyed):
680         (WebInspectorClient::closeInspectorFrontend):
681
682 2011-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
683
684         Unreviewed, rolling out r101193.
685         http://trac.webkit.org/changeset/101193
686         https://bugs.webkit.org/show_bug.cgi?id=73158
687
688         Breaks Windows and Qt minimal. (Requested by pfeldman on
689         #webkit).
690
691         * WebCoreSupport/WebInspectorClient.h:
692         * WebCoreSupport/WebInspectorClient.mm:
693         (WebInspectorClient::inspectorDestroyed):
694
695 2011-11-26  Pavel Feldman  <pfeldman@google.com>
696
697         Web Inspector: remove disconnectFromBackend from the protocol.
698         https://bugs.webkit.org/show_bug.cgi?id=73127
699
700         Reviewed by Yury Semikhatsky.
701
702         * WebCoreSupport/WebInspectorClient.h:
703         * WebCoreSupport/WebInspectorClient.mm:
704         (WebInspectorClient::inspectorDestroyed):
705         (WebInspectorClient::closeInspectorFrontend):
706
707 2011-11-22  Pavel Feldman  <pfeldman@google.com>
708
709         Web Inspector: remove Inspector::bringToFront from the protocol.
710         https://bugs.webkit.org/show_bug.cgi?id=72937
711
712         Reviewed by Yury Semikhatsky.
713
714         * WebCoreSupport/WebInspectorClient.h:
715         * WebCoreSupport/WebInspectorClient.mm:
716         (WebInspectorClient::openInspectorFrontend):
717         (WebInspectorClient::bringFrontendToFront):
718
719 2011-11-21  Mark Rowe  <mrowe@apple.com>
720
721         Fix the SnowLeopard build.
722
723         * Misc/WebNSFileManagerExtras.mm: Forward-declare DADiskCreateFromVolumePath on SnowLeopard as it was
724         not yet declared in a public header.
725
726 2011-11-20  Mark Rowe  <mrowe@apple.com>
727
728         <http://webkit.org/b/72661> Switch to a more modern approach to retrieving the startup volume name
729
730         Use the DiskArbitration framework to retrieve the name of the startup volume rather than using Carbon
731         File Manager APIs.
732
733         Reviewed by Dan Bernstein.
734
735         * Misc/WebNSFileManagerExtras.mm:
736         (-[NSFileManager _webkit_startupVolumeName]): Retrieve a DADiskRef for the startup volume and copy
737         the volume name from its description dictionary.
738
739 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
740
741         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
742         https://bugs.webkit.org/show_bug.cgi?id=62985
743
744         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
745         methods for plumbing the menu action handlers through the WebKit and WebCore.
746         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
747         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
748         WebKit/win and WebKit2 to follow.
749
750         Reviewed by Yury Semikhatsky.
751
752         * WebCoreSupport/WebInspectorClient.mm:
753         (-[WebInspectorWindowController destroyInspectorView:]):
754         * WebInspector/WebInspector.mm:
755         (-[WebInspector showWindow]):
756         (-[WebInspector show:]):
757         (-[WebInspector showConsole:]):
758         (-[WebInspector isDebuggingJavaScript]):
759         (-[WebInspector toggleDebuggingJavaScript:]):
760         (-[WebInspector startDebuggingJavaScript:]):
761         (-[WebInspector stopDebuggingJavaScript:]):
762         (-[WebInspector isProfilingJavaScript]):
763         (-[WebInspector toggleProfilingJavaScript:]):
764         (-[WebInspector startProfilingJavaScript:]):
765         (-[WebInspector stopProfilingJavaScript:]):
766         (-[WebInspector isJavaScriptProfilingEnabled]):
767         (-[WebInspector setJavaScriptProfilingEnabled:]):
768         (-[WebInspector isTimelineProfilingEnabled]):
769         (-[WebInspector setTimelineProfilingEnabled:]):
770         (-[WebInspector setFrontend:]):
771         (-[WebInspector releaseFrontend]):
772         (-[WebInspector showWindow:]):
773         * WebInspector/WebInspectorFrontend.h:
774         * WebInspector/WebInspectorFrontend.mm:
775         (-[WebInspectorFrontend isDebuggingEnabled]):
776         (-[WebInspectorFrontend setDebuggingEnabled:]):
777         (-[WebInspectorFrontend isProfilingJavaScript]):
778         (-[WebInspectorFrontend startProfilingJavaScript]):
779         (-[WebInspectorFrontend stopProfilingJavaScript]):
780         (-[WebInspectorFrontend isJavaScriptProfilingEnabled]):
781         (-[WebInspectorFrontend setJavaScriptProfilingEnabled:]):
782         (-[WebInspectorFrontend isTimelineProfilingEnabled]):
783         (-[WebInspectorFrontend setTimelineProfilingEnabled:]):
784         * WebInspector/WebInspectorPrivate.h:
785
786 2011-11-21  Jochen Eisinger  <jochen@chromium.org>
787
788         Implement Meta referrer
789         https://bugs.webkit.org/show_bug.cgi?id=72674
790
791         Reviewed by Adam Barth.
792
793         * Plugins/Hosted/HostedNetscapePluginStream.mm:
794         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
795         * Plugins/WebNetscapePluginStream.mm:
796         (WebNetscapePluginStream::WebNetscapePluginStream):
797
798 2011-10-17  Antonio Gomes  <agomes@rim.com>
799
800         Pass a Frame* parameter in EditorClient::respondToChangedSelection
801         https://bugs.webkit.org/show_bug.cgi?id=70248
802
803         Reviewed by Ryosuke Niwa.
804
805         * WebCoreSupport/WebEditorClient.h:
806         * WebCoreSupport/WebEditorClient.mm: Make use of the newly added Frame* parameter.
807         (WebEditorClient::respondToChangedSelection):
808
809 2011-11-17  Mark Rowe  <mrowe@apple.com>
810
811         <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
812         switch away from the deprecated APIs.
813
814         Reviewed by Sam Weinig.
815
816         * Plugins/WebBasePluginPackage.mm:
817         * Plugins/WebNetscapePluginPackage.mm:
818         (-[WebNetscapePluginPackage _tryLoad]):
819
820 2011-11-18  Anton D'Auria  <adauria@apple.com>
821
822         bool WebChromeClient::shouldInterruptJavaScript casts pointer to bool and always returns true
823         https://bugs.webkit.org/show_bug.cgi?id=72568
824
825         Reviewed by David Kilzer.
826
827         WebChromeClient::shouldInterruptJavaScript called CallUIDelegate, which used an id
828         as the return value, which was then cast to a bool and always returned true. This
829         patch uses CallUIDelegateReturningBoolean instead of CallUIDelegate, with the default
830         return value of NO.
831
832         * WebCoreSupport/WebChromeClient.mm:
833         (WebChromeClient::shouldInterruptJavaScript):
834
835 2011-11-16  Dan Bernstein  <mitz@apple.com>
836
837         WebKit/mac part of <rdar://problem/10262242> Add API for paginated display
838         https://bugs.webkit.org/show_bug.cgi?id=72537
839
840         Reviewed by Anders Carlsson.
841
842         * WebView/WebView.mm:
843         (-[WebView _setPaginationMode:]): Added this accessor.
844         (-[WebView _paginationMode]): Ditto.
845         (-[WebView _setGapBetweenPages:]): Ditto.
846         (-[WebView _gapBetweenPages]): Ditto.
847         (-[WebView _pageCount]): Ditto.
848         * WebView/WebViewPrivate.h: Defined WebPaginationMode enum and values.
849
850 2011-11-15  Andy Estes  <aestes@apple.com>
851
852         Consolidate the logic that creates run loop observers for flushing layer tree changes to CoreAnimation
853         https://bugs.webkit.org/show_bug.cgi?id=72106
854
855         Reviewed by Anders Carlsson.
856
857         Remove code that schedules layer flushes and use LayerFlushScheduler instead.
858
859         * WebView/WebView.mm:
860         (-[WebView _close]): Invalidate the run loop observer and destroy the
861         LayerFlushController.
862         (LayerFlushController::flushLayers): Perform the work that
863         layerSyncRunLoopObserverCallBack used to do.
864         (-[WebView _scheduleCompositingLayerSync]): If layerFlushController has
865         yet to be created, create it, then schedule a layer flush.
866         * WebView/WebViewData.h:
867         (LayerFlushController::create): Create a LayerFlushController that
868         implements the LayerFlushSchedulerClient interface and contains a
869         LayerFlushScheduler with itself as the client.
870         * WebView/WebViewData.mm:
871         (LayerFlushController::scheduleLayerFlush):
872         (LayerFlushController::invalidateObserver):
873         (LayerFlushController::LayerFlushController):
874
875 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
876
877         Rename ReferrerPolicy to clarify its meaning
878         https://bugs.webkit.org/show_bug.cgi?id=72420
879
880         Reviewed by Nate Chapin.
881
882         * WebView/WebPDFView.mm:
883         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
884
885 2011-11-15  Anders Carlsson  <andersca@apple.com>
886
887         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
888         https://bugs.webkit.org/show_bug.cgi?id=72397
889
890         Reviewed by Dan Bernstein.
891
892         * WebCoreSupport/WebChromeClient.h:
893         * WebCoreSupport/WebChromeClient.mm:
894         (WebChromeClient::screenToRootView):
895         (WebChromeClient::rootViewToScreen):
896
897 2011-11-14  Anders Carlsson  <andersca@apple.com>
898
899         HostWindow invalidation functions should use root view coordinates
900         https://bugs.webkit.org/show_bug.cgi?id=72338
901
902         Reviewed by Dan Bernstein.
903
904         * WebCoreSupport/WebChromeClient.h:
905         * WebCoreSupport/WebChromeClient.mm:
906         (WebChromeClient::invalidateRootView):
907         (WebChromeClient::invalidateContentsAndRootView):
908         (WebChromeClient::invalidateContentsForSlowScroll):
909
910 2011-11-14  Julien Chaffraix  <jchaffraix@webkit.org>
911
912         Add --css-grid-layout to build-webkit and the build systems
913         https://bugs.webkit.org/show_bug.cgi?id=72320
914
915         Reviewed by Ojan Vafai.
916
917         * Configurations/FeatureDefines.xcconfig:
918
919 2011-11-14  Tony Chang  <tony@chromium.org>
920
921         Remove the CSS3_FLEXBOX compile time flag and enable on all ports
922         https://bugs.webkit.org/show_bug.cgi?id=72196
923
924         Reviewed by Ojan Vafai.
925
926         * Configurations/FeatureDefines.xcconfig:
927
928 2011-11-07  Adam Barth  <abarth@webkit.org>
929
930         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
931         https://bugs.webkit.org/show_bug.cgi?id=71755
932
933         Reviewed by Eric Seidel.
934
935         * Plugins/Hosted/HostedNetscapePluginStream.mm:
936         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
937         * Plugins/WebNetscapePluginStream.mm:
938         (WebNetscapePluginStream::WebNetscapePluginStream):
939         * WebView/WebView.mm:
940         (-[WebView _commonInitializationWithFrameName:groupName:]):
941         (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
942         (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
943         (+[WebView _resetOriginAccessWhitelists]):
944
945 2011-11-08  Joseph Pecoraro  <pecoraro@apple.com>
946
947         Move NSRange / DOMRange functions back to WebFrameInternal
948         https://bugs.webkit.org/show_bug.cgi?id=71844
949
950         Reviewed by Alexey Proskuryakov.
951
952         * WebView/WebFrame.mm:
953         (-[WebFrame _convertNSRangeToDOMRange:]):
954         (-[WebFrame _convertDOMRangeToNSRange:]):
955         * WebView/WebFrameInternal.h:
956         * WebView/WebFramePrivate.h:
957
958 2011-11-08  Michael Saboff  <msaboff@apple.com>
959
960         Towards 8 Bit Strings: Templatize JSC::Parser class by Lexer type
961         https://bugs.webkit.org/show_bug.cgi?id=71761
962
963         Changed WKPCEvaluate() to use emptyString() when the source is
964         zero length.
965
966         Reviewed by Gavin Barraclough.
967
968         * Plugins/Hosted/NetscapePluginHostProxy.mm:
969         (WKPCEvaluate):
970
971 2011-11-08  Beth Dakin  <bdakin@apple.com>
972
973         https://bugs.webkit.org/show_bug.cgi?id=71856
974         WebKit should use new NSWindowDidChangeBackingPropertiesNotification instead of 
975         old NSWindowDidChangeResolutionNotification
976         -and corresponding-
977         <rdar://problem/10317253>
978
979         Reviewed by Tim Hatcher.
980
981         * WebView/WebView.mm:
982         (-[WebView addWindowObserversForWindow:]):
983         (-[WebView removeWindowObservers]):
984
985         We have to check that the backing scale factor actually changed since this 
986         notification can also be used to signify other changes. 
987         (-[WebView _windowDidChangeBackingProperties:]):
988
989 2011-11-07  Adam Barth  <abarth@webkit.org>
990
991         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
992         https://bugs.webkit.org/show_bug.cgi?id=71750
993
994         Reviewed by Eric Seidel.
995
996         * WebView/WebView.mm:
997         (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
998
999 2011-11-07  Jessie Berlin  <jberlin@apple.com>
1000
1001         Need a way to allow a scheme access to Local Storage and Databases while Private Browsing is
1002         enabled.
1003         https://bugs.webkit.org/show_bug.cgi?id=71631
1004
1005         Reviewed by Jon Honeycutt.
1006
1007         Add WebKit1 API to register a scheme as ignoring Private Browsing for Local Storage and
1008         Databases.
1009
1010         * WebView/WebView.mm:
1011         (+[WebView _registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:]):
1012         Call through to the SchemeRegistry function.
1013         (+[WebView _registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing:]):
1014         Ditto.
1015         * WebView/WebViewPrivate.h:
1016
1017 2011-11-03  Mark Hahnenberg  <mhahnenberg@apple.com>
1018
1019         De-virtualize JSObject::getPropertyNames
1020         https://bugs.webkit.org/show_bug.cgi?id=71306
1021
1022         Reviewed by Darin Adler.
1023
1024         Added getPropertyNames to the MethodTable, changed all the virtual 
1025         implementations of getPropertyNames to static ones, and replaced 
1026         all call sites with corresponding lookups in the MethodTable.
1027
1028         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1029         (WebKit::NetscapePluginInstanceProxy::enumerate):
1030
1031 2011-11-02  Darin Adler  <darin@apple.com>
1032
1033         Change remaining callers of releaseRef to call leakRef
1034         https://bugs.webkit.org/show_bug.cgi?id=71422
1035
1036         Reviewed by Darin Fisher.
1037
1038         * History/WebBackForwardList.mm:
1039         (-[WebBackForwardList initWithBackForwardList:]):
1040         * History/WebHistoryItem.mm:
1041         (-[WebHistoryItem copyWithZone:]):
1042         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
1043         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1044         (-[WebHostedNetscapePluginView createPlugin]):
1045         * Plugins/WebNetscapePluginView.mm:
1046         (-[WebNetscapePluginView createPlugin]):
1047         * WebCoreSupport/WebOpenPanelResultListener.mm:
1048         * WebView/WebDataSource.mm:
1049         (-[WebDataSource _initWithDocumentLoader:]):
1050         * WebView/WebResource.mm:
1051         (-[WebResourcePrivate initWithCoreResource:]):
1052         Use leakRef.
1053
1054 2011-11-02  Joseph Pecoraro  <pecoraro@apple.com>
1055
1056         Move NSRange / DOMRange conversion functions to WebFramePrivate
1057         https://bugs.webkit.org/show_bug.cgi?id=71435
1058
1059         Reviewed by Sam Weinig.
1060
1061         Move conversion functions to WebFramePrivate,
1062         and remove the no longer used versions.
1063
1064         * WebView/WebFrame.mm:
1065         (-[WebFrame _convertNSRangeToDOMRange:]):
1066         (-[WebFrame _convertDOMRangeToNSRange:]):
1067         * WebView/WebFrameInternal.h:
1068         * WebView/WebFramePrivate.h:
1069
1070 2011-11-02  Dean Jackson  <dino@apple.com>
1071
1072         Add ENABLE_CSS_SHADERS flag
1073         https://bugs.webkit.org/show_bug.cgi?id=71394
1074
1075         Reviewed by Sam Weinig.
1076
1077         * Configurations/FeatureDefines.xcconfig:
1078
1079 2011-11-02  Jon Lee  <jonlee@apple.com>
1080
1081         Expand DragController to provide more information about the dragging session
1082         https://bugs.webkit.org/show_bug.cgi?id=71324
1083         <rdar://problem/10379175>
1084
1085         Reviewed by Darin Adler.
1086
1087         * WebView/WebView.mm:
1088         (-[WebView draggingEntered:]): DragOperation is now inside the DragSession struct.
1089         (-[WebView draggingUpdated:]):
1090
1091 2011-11-02  Tom Sepez  <tsepez@chromium.org>
1092
1093         XSSAuditor is silent
1094         https://bugs.webkit.org/show_bug.cgi?id=70973
1095
1096         Reviewed by Adam Barth.
1097
1098         * WebCoreSupport/WebFrameLoaderClient.h:
1099         * WebCoreSupport/WebFrameLoaderClient.mm:
1100         (WebFrameLoaderClient::didRunInsecureContent):
1101         (WebFrameLoaderClient::didDetectXSS):
1102         * WebView/WebDelegateImplementationCaching.h:
1103         * WebView/WebFrameLoadDelegatePrivate.h:
1104         * WebView/WebView.mm:
1105         (-[WebView _cacheFrameLoadDelegateImplementations]):
1106
1107 2011-11-01  Darin Adler  <darin@apple.com>
1108
1109         Crash in PDF code when script has illegal UTF-8 or UTF-16 sequences
1110         https://bugs.webkit.org/show_bug.cgi?id=71289
1111
1112         Reviewed by Dan Bernstein.
1113
1114         Just adding a null check. I don't have access to an actual PDF with
1115         this problem but crashes from the field indicate they exist.
1116
1117         * WebView/WebPDFDocumentExtras.mm:
1118         (allScriptsInPDFDocument): Skip the code to add the script text
1119         to an array when the script is null.
1120
1121 2011-10-28  John Sullivan  <sullivan@apple.com>
1122
1123         WebKit part of:
1124         https://bugs.webkit.org/show_bug.cgi?id=71142
1125         Whether backspace goes Back should be configurable
1126
1127         Reviewed by Sam Weinig.
1128
1129         * WebView/WebFrameView.mm:
1130         (-[WebFrameView keyDown:]):
1131         Honor the new preference.
1132
1133         * WebView/WebPreferenceKeysPrivate.h:
1134         Added #define for WebKitBackspaceKeyNavigationEnabledKey
1135         
1136         * WebView/WebPreferences.mm:
1137         (+[WebPreferences initialize]):
1138         Initialize new pref to YES, to match current behavior.
1139         (-[WebPreferences setBackspaceKeyNavigationEnabled:]):
1140         New method, standard prefs setter.
1141         (-[WebPreferences backspaceKeyNavigationEnabled]):
1142         New method, standard prefs getter.
1143
1144         * WebView/WebPreferencesPrivate.h:
1145         Declared new methods.
1146         
1147         * WebView/WebView.mm:
1148         (-[WebView _preferencesChanged:]):
1149         Updates WebCore settings from WebKit prefs.
1150
1151 2011-10-28  Jochen Eisinger  <jochen@chromium.org>
1152
1153         Rename a number of methods mentioning JavaScript to just Script instead
1154         https://bugs.webkit.org/show_bug.cgi?id=71105
1155
1156         Reviewed by Adam Barth.
1157
1158         * WebView/WebView.mm:
1159         (-[WebView _preferencesChanged:]):
1160
1161 2011-10-27  Joseph Pecoraro  <pecoraro@apple.com>
1162
1163         Reviewed by David Kilzer.
1164
1165         Make FeatureDefines Identical Across OS X Projects
1166         https://bugs.webkit.org/show_bug.cgi?id=71051
1167
1168         * Configurations/FeatureDefines.xcconfig:
1169
1170 2011-10-27  Mark Hahnenberg  <mhahnenberg@apple.com>
1171
1172         De-virtualize JSCell::toThisObject
1173         https://bugs.webkit.org/show_bug.cgi?id=70958
1174
1175         Reviewed by Geoffrey Garen.
1176
1177         Converted all instances of toThisObject to static functions, 
1178         added toThisObject to the MethodTable, and replaced all call sites
1179         with a corresponding lookup in the MethodTable.
1180
1181         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1182         (WebKit::NetscapePluginInstanceProxy::invoke):
1183         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1184
1185 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1186
1187         Remove deletePropertyVirtual
1188         https://bugs.webkit.org/show_bug.cgi?id=70738
1189
1190         Reviewed by Geoffrey Garen.
1191
1192         Removed all declarations and definitions of deletePropertyVirtual.
1193         Also replaced all call sites to deletePropertyVirtual with a 
1194         corresponding lookup in the MethodTable.
1195
1196         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1197         (WebKit::NetscapePluginInstanceProxy::removeProperty):
1198
1199 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1200
1201         Remove putVirtual
1202         https://bugs.webkit.org/show_bug.cgi?id=70740
1203
1204         Reviewed by Geoffrey Garen.
1205
1206         Removed all declarations and definitions of putVirtual.
1207         Also replaced all call sites to putVirtual with a 
1208         corresponding lookup in the MethodTable.
1209
1210         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1211         (WebKit::NetscapePluginInstanceProxy::setProperty):
1212
1213 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
1214
1215         Removed SharedUChar and tightened language around its previous uses
1216         https://bugs.webkit.org/show_bug.cgi?id=70698
1217
1218         Reviewed by David Levin.
1219
1220         - Renamed "threadSafeCopy" and "crossThreadCopy" to "isolatedCopy" because
1221         the former names gave the dangerous misimpression that the resulting object
1222         was thread-safe, which is not true.
1223
1224         * Storage/WebDatabaseTrackerClient.mm:
1225         (DidModifyOriginData::dispatchToMainThread):
1226
1227 2011-10-24  Michael Saboff  <msaboff@apple.com>
1228
1229         WebKit doesn't build with recent changes to libdispatch
1230         https://bugs.webkit.org/show_bug.cgi?id=70737
1231
1232         Added initialization for new WebKitSystemInterface function 
1233         CreateVMPressureDispatchOnMainQueue.
1234
1235         Reviewed by Geoffrey Garen.
1236
1237         * WebCoreSupport/WebSystemInterface.mm:
1238         (InitWebCoreSystemInterface):
1239
1240 2011-10-23  Mark Hahnenberg  <mhahnenberg@apple.com>
1241
1242         Remove getConstructDataVirtual
1243         https://bugs.webkit.org/show_bug.cgi?id=70638
1244
1245         Reviewed by Darin Adler.
1246
1247         Removed all declarations and definitions of getConstructDataVirtual.
1248         Also replaced all call sites to getConstructDataVirtual with a 
1249         corresponding lookup in the MethodTable.
1250
1251         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1252         (WebKit::NetscapePluginInstanceProxy::construct):
1253
1254 2011-10-20  Ian Henderson  <ianh@apple.com>
1255
1256         https://bugs.webkit.org/show_bug.cgi?id=70541
1257         There are two WebFrameLoadDelegatePrivate categories on NSObject
1258
1259         Reviewed by David Kilzer.
1260
1261         * WebView/WebViewPrivate.h: Rename the private delegate categories in
1262         WebViewPrivate.h with a "WebView" prefix to avoid collision.
1263
1264 2011-10-20  Alexey Proskuryakov  <ap@apple.com>
1265
1266         REGRESSION (r96823): Contextual menu closes immediately when control-clicking in Flash plug-in
1267         https://bugs.webkit.org/show_bug.cgi?id=70534
1268         <rdar://problem/10308827>
1269
1270         Reviewed by Darin Adler.
1271
1272         * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): Return true
1273         for contextmenu event, so that plug-ins won't get a default WebKit context menu. We can't
1274         know if the plug-in is handling mousedown (or even mouseup) by displaying a menu.
1275
1276 2011-10-19  Beth Dakin  <bdakin@apple.com>
1277
1278         https://bugs.webkit.org/show_bug.cgi?id=70396
1279         Focus rings are too thin in HiDPI in WebKit2
1280         -and corresponding-
1281         <rdar://problem/10086876>
1282
1283         Reviewed by Dan Bernstein.
1284
1285         Rename wkSetPatternBaseCTM to wkSetBaseCTM
1286         * WebCoreSupport/WebSystemInterface.mm:
1287         (InitWebCoreSystemInterface):
1288
1289         To create a HiDPI context in DRT, we have to set the base CTM, which currently 
1290         requires CG SPI, so we have to do it through WebKitSystemInterface.
1291         * WebView/WebView.mm:
1292         (-[WebView _setBaseCTM:forContext:]):
1293         * WebView/WebViewPrivate.h:
1294
1295 2011-10-18  Adam Barth  <abarth@webkit.org>
1296
1297         Always enable ENABLE(XPATH)
1298         https://bugs.webkit.org/show_bug.cgi?id=70217
1299
1300         Reviewed by Eric Seidel.
1301
1302         * Configurations/FeatureDefines.xcconfig:
1303
1304 2011-10-14  Chris Marrin  <cmarrin@apple.com>
1305
1306         Throttle rate of requestAnimationFrame when page is not visible
1307         https://bugs.webkit.org/show_bug.cgi?id=67873
1308
1309         Reviewed by Anders Carlsson.
1310
1311         Plumb through notification when the window is hidden/shown or
1312         minimized/unminimized
1313
1314         * WebView/WebView.mm:
1315         (-[WebView _windowWillOrderOnScreen:]):
1316         (-[WebView _windowWillOrderOffScreen:]):
1317
1318 2011-10-16  Adam Barth  <abarth@webkit.org>
1319
1320         Always enable ENABLE(DOM_STORAGE)
1321         https://bugs.webkit.org/show_bug.cgi?id=70189
1322
1323         Reviewed by Eric Seidel.
1324
1325         * Configurations/FeatureDefines.xcconfig:
1326         * Storage/WebStorageManager.mm:
1327         * Storage/WebStorageManagerInternal.h:
1328         * Storage/WebStorageTrackerClient.h:
1329         * Storage/WebStorageTrackerClient.mm:
1330         (WebStorageTrackerClient::dispatchDidModifyOrigin):
1331         * WebView/WebView.mm:
1332         (-[WebView _commonInitializationWithFrameName:groupName:]):
1333
1334 2011-10-14  David Kilzer  <ddkilzer@apple.com>
1335
1336         <http://webkit.org/b/70158> Fix clang compiler warnings
1337
1338         Reviewed by Darin Adler.
1339
1340         The following two methods in WebDelegateImplementationCaching.h
1341         are ambiguous in WebChromeClient::runJavaScriptPrompt() because
1342         the compiler can't decide how to convert the WTF::String
1343         defaultText argument:
1344
1345             id CallUIDelegate(WebView *, SEL, id, id);
1346             id CallUIDelegate(WebView *, SEL, id, BOOL);
1347
1348         The fix is to perform the conversion explicitly.
1349
1350         * WebCoreSupport/WebChromeClient.mm:
1351         (WebChromeClient::runJavaScriptPrompt): Extract a defaultString
1352         variable to convert the WTF::String to an NSString*, then
1353         use defaultString in place of defaultText.
1354
1355 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
1356
1357         Rename virtual put to putVirtual
1358         https://bugs.webkit.org/show_bug.cgi?id=69851
1359
1360         Reviewed by Darin Adler.
1361
1362         Renamed virtual versions of put to putVirtual in prepration for 
1363         adding the static put to the MethodTable in ClassInfo since the 
1364         compiler gets mad if the virtual and static versions have the same 
1365         name.
1366
1367         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1368         (WebKit::NetscapePluginInstanceProxy::setProperty):
1369
1370 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
1371
1372         Rename virtual deleteProperty to deletePropertyVirtual
1373         https://bugs.webkit.org/show_bug.cgi?id=69884
1374
1375         Reviewed by Darin Adler.
1376
1377         Renamed virtual versions of deleteProperty to deletePropertyVirtual in prepration for 
1378         adding the static deleteProperty to the MethodTable in ClassInfo since the 
1379         compiler gets mad if the virtual and static versions have the same name.
1380
1381         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1382         (WebKit::NetscapePluginInstanceProxy::removeProperty):
1383
1384 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
1385
1386         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
1387         https://bugs.webkit.org/show_bug.cgi?id=69964
1388
1389         Reviewed by Enrica Casucci.
1390
1391         * WebView/WebFrame.mm:
1392         (-[WebFrame _convertToNSRange:]):
1393         (-[WebFrame _convertToDOMRange:]):
1394
1395 2011-10-13  Mark Hahnenberg  <mhahnenberg@apple.com>
1396
1397         Rename virtual getConstructData to getConstructDataVirtual
1398         https://bugs.webkit.org/show_bug.cgi?id=69872
1399
1400         Reviewed by Geoffrey Garen.
1401
1402         Renamed virtual getConstructData functions to getConstructDataVirtual to 
1403         avoid conflicts when we add static getConstructData to the MethodTable.
1404
1405         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1406         (WebKit::NetscapePluginInstanceProxy::construct):
1407
1408 2011-10-13  Beth Dakin  <bdakin@apple.com>
1409
1410         https://bugs.webkit.org/show_bug.cgi?id=70050
1411         DRT and WRT should have HiDPI testing capabilities
1412
1413         Reviewed by Darin Adler.
1414
1415         New method _backingScaleFactor matches SPI of a similar name that I added 
1416         recently to WKPage in WebKit2. Equivalent functionality is needed for 
1417         DumpRenderTree's HiDPI support.
1418         * WebView/WebView.mm:
1419         (-[WebView _backingScaleFactor]):
1420         * WebView/WebViewPrivate.h:
1421
1422 2011-10-12  Chris Marrin  <cmarrin@apple.com>
1423
1424         Sync requestAnimationFrame callback to CVDisplayLink on Mac
1425         https://bugs.webkit.org/show_bug.cgi?id=68911
1426
1427         Reviewed by Simon Fraser.
1428
1429         Add windowDidChangeScreen function which listens for the window changing
1430         screens and passes the new displayID along to WebCore::Page. It also sends
1431         one on windowWillOrderOnScreen, so the Page has a fresh displayID after it's
1432         created.
1433
1434         * WebView/WebView.mm:
1435         (-[WebView addWindowObserversForWindow:]):
1436         (-[WebView removeWindowObservers]):
1437         (-[WebView _windowDidChangeScreen:]):
1438         (-[WebView _windowWillOrderOnScreen:]):
1439
1440 2011-10-12  Adam Barth  <abarth@webkit.org>
1441
1442         Remove ENABLE(XHTMLMP) and associated code
1443         https://bugs.webkit.org/show_bug.cgi?id=69729
1444
1445         Reviewed by David Levin.
1446
1447         * Configurations/FeatureDefines.xcconfig:
1448
1449 2011-10-10  Nate Chapin  <japhet@chromium.org>
1450
1451         Use a CachedImageClient instead of CachedResourceClient
1452         in WebHTMLView.
1453         https://bugs.webkit.org/show_bug.cgi?id=69790
1454
1455         Reviewed by Adam Barth.
1456
1457         * WebView/WebHTMLView.mm:
1458         (promisedDataClient):
1459
1460 2011-10-10  Mark Hahnenberg  <mhahnenberg@apple.com>
1461
1462         Remove getCallDataVirtual methods
1463         https://bugs.webkit.org/show_bug.cgi?id=69186
1464
1465         Reviewed by Geoffrey Garen.
1466
1467         Removed all getCallDataVirtual methods and replaced their call sites 
1468         with an explicit lookup in the MethodTable.
1469
1470         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1471         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1472
1473 2011-10-10  Joseph Pecoraro  <joepeck@webkit.org>
1474
1475         Extract WebOpenPanelResultListener out into its own file
1476         https://bugs.webkit.org/show_bug.cgi?id=69575
1477
1478         Reviewed by David Kilzer.
1479
1480         Extract the WebOpenPanelResultListener class out into
1481         its own file. No functional change.
1482
1483         * WebCoreSupport/WebChromeClient.mm:
1484         * WebCoreSupport/WebOpenPanelResultListener.h: Added.
1485         * WebCoreSupport/WebOpenPanelResultListener.mm: Added.
1486         (-[WebOpenPanelResultListener dealloc]):
1487         (-[WebOpenPanelResultListener finalize]):
1488         (-[WebOpenPanelResultListener cancel]):
1489         (-[WebOpenPanelResultListener chooseFilename:]):
1490         (-[WebOpenPanelResultListener chooseFilenames:]):
1491         * WebView/WebUIDelegate.h:
1492
1493 2011-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
1494
1495         Unreviewed, rolling out r96996.
1496         http://trac.webkit.org/changeset/96996
1497         https://bugs.webkit.org/show_bug.cgi?id=69697
1498
1499         It broke all tests on the Qt bot (Requested by Ossy_night on
1500         #webkit).
1501
1502         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1503         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1504
1505 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
1506
1507         Remove getCallDataVirtual methods
1508         https://bugs.webkit.org/show_bug.cgi?id=69186
1509
1510         Reviewed by Geoffrey Garen.
1511
1512         Removed all getCallDataVirtual methods and replaced their call sites 
1513         with an explicit lookup in the MethodTable.
1514
1515         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1516         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1517
1518 2011-10-06  Anders Carlsson  <andersca@apple.com>
1519
1520         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
1521         https://bugs.webkit.org/show_bug.cgi?id=69586
1522
1523         Reviewed by Darin Adler.
1524
1525         * Configurations/Base.xcconfig:
1526         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
1527
1528 2011-10-06  Anders Carlsson  <andersca@apple.com>
1529
1530         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
1531         https://bugs.webkit.org/show_bug.cgi?id=69584
1532
1533         Reviewed by Darin Adler.
1534
1535         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
1536
1537         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1538         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1539
1540 2011-10-03  Andy Estes  <aestes@apple.com>
1541
1542         Add an option to suppress rendering until the document's load event fires.
1543         https://bugs.webkit.org/show_bug.cgi?id=69298
1544
1545         Reviewed by Simon Fraser.
1546         
1547         Add a new private WebPreference.
1548
1549         * WebView/WebPreferenceKeysPrivate.h:
1550         * WebView/WebPreferences.mm:
1551         (+[WebPreferences initialize]):
1552         (-[WebPreferences setSuppressRenderingWhileInitiallyLoading:]):
1553         (-[WebPreferences suppressRenderingWhileInitiallyLoading]):
1554         * WebView/WebPreferencesPrivate.h:
1555         * WebView/WebView.mm:
1556         (-[WebView _preferencesChanged:]):
1557
1558 2011-10-05  Jer Noble  <jer.noble@apple.com>
1559
1560         Enable WEB_AUDIO by default in the WebKit/mac port.
1561         https://bugs.webkit.org/show_bug.cgi?id=68587
1562
1563         Reviewed by Simon Fraser.
1564
1565         * Configurations/FeatureDefines.xcconfig:
1566
1567 2011-10-05  David Kilzer  <ddkilzer@apple.com>
1568
1569         <http://webkit.org/b/69386> REGRESSION: Curious Location of StorageTracker.db
1570
1571         Reviewed by Alexey Proskuryakov.
1572
1573         * Storage/WebStorageManager.mm:
1574         (+[WebStorageManager _storageDirectoryPath]): Restore call to
1575         -[NSString stringByStandardizingPath].  Also fix over-release of
1576         sLocalStoragePath if the initial -objectForKey: call returned an
1577         NSString object.  Use pthread_once to be thread-safe.
1578
1579 2011-10-04  Kent Tamura  <tkent@chromium.org>
1580
1581         Introduce feature flags for incomplete input types
1582         https://bugs.webkit.org/show_bug.cgi?id=68971
1583
1584         Reviewed by Hajime Morita.
1585
1586         * Configurations/FeatureDefines.xcconfig:
1587         Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
1588
1589 2011-10-03  Geoffrey Garen  <ggaren@apple.com>
1590
1591         Some JSValue cleanup
1592         https://bugs.webkit.org/show_bug.cgi?id=69320
1593
1594         Reviewed by Darin Adler.
1595
1596         * WebView/WebView.mm:
1597         (aeDescFromJSValue): Updated for JSC changes.
1598
1599 2011-10-04  Scott Graham  <scottmg@chromium.org>
1600
1601         Add GAMEPAD feature flag
1602         https://bugs.webkit.org/show_bug.cgi?id=66859
1603
1604         Reviewed by Darin Fisher.
1605
1606         * Configurations/FeatureDefines.xcconfig:
1607
1608 2011-10-03  Jer Noble  <jer.noble@apple.com>
1609
1610         Unreviewed, rolling out r96526.
1611         http://trac.webkit.org/changeset/96526
1612         https://bugs.webkit.org/show_bug.cgi?id=68587
1613
1614         WEB_AUDIO has numerous 64->32 bit casting warnings, causing
1615         build breakages where -Wall is enabled.
1616
1617         * Configurations/FeatureDefines.xcconfig:
1618
1619 2011-10-03  Jer Noble  <jer.noble@apple.com>
1620
1621         Enable WEB_AUDIO by default in the WebKit/mac port.
1622         https://bugs.webkit.org/show_bug.cgi?id=68587
1623
1624         Reviewed by Simon Fraser.
1625
1626         * Configurations/FeatureDefines.xcconfig:
1627
1628 2011-10-02  Sam Weinig  <sam@webkit.org>
1629
1630         Strength reduce Mac only Frame::searchForLabelsBeforeElement and Frame::matchLabelsAgainstElement into callers
1631         https://bugs.webkit.org/show_bug.cgi?id=69230
1632
1633         Reviewed by Anders Carlsson.
1634
1635         * WebView/WebHTMLRepresentation.mm:
1636         (regExpForLabels):
1637         (searchForLabelsBeforeElement):
1638         (matchLabelsAgainstString):
1639         (matchLabelsAgainstElement):
1640         (-[WebHTMLRepresentation searchForLabels:beforeElement:resultDistance:resultIsInCellAbove:]):
1641         (-[WebHTMLRepresentation matchLabels:againstElement:]):
1642
1643 2011-10-02  Alexey Proskuryakov  <ap@apple.com>
1644
1645         REGRESSION (r95474): Unable to type anywhere in nightly builds in WebKit1 mode
1646         https://bugs.webkit.org/show_bug.cgi?id=68542
1647
1648         Reviewed by Mark Rowe.
1649
1650         * WebView/WebView.mm: (-[WebView _usesDocumentViews]): Re-add this method for now.
1651
1652 2011-10-01  Geoffrey Garen  <ggaren@apple.com>
1653
1654         Leopard build fix: Updated for Strong<T> changes.
1655
1656         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1657         * WebView/WebScriptDebugger.mm:
1658
1659 2011-09-28  Joseph Pecoraro  <joepeck@webkit.org>
1660
1661         ASSERT if WebView's UIDelegate does not implement webView:runOpenPanel
1662         https://bugs.webkit.org/show_bug.cgi?id=69037
1663
1664         Reviewed by Alexey Proskuryakov.
1665
1666         * WebCoreSupport/WebChromeClient.mm:
1667         (WebChromeClient::runOpenPanel):
1668         If no delegate is implemented, dismiss the listener
1669         with a cancel. It expects some action.
1670
1671 2011-09-28  Anton D'Auria  <adauria@apple.com>
1672
1673         Expose +[WebStorageManager _storageDirectoryPath] as SPI
1674         https://bugs.webkit.org/show_bug.cgi?id=68951
1675
1676         Reviewed by Brady Eidson.
1677
1678         This patch exposes +[WebStorageManager _storageDirectoryPath], which
1679         pulls the path from NSUserDefaults if the preference is set. Otherwise,
1680         it falls back on the default path.
1681
1682         * Storage/WebStorageManager.mm:
1683         (+[WebStorageManager _storageDirectoryPath]): Adding static variable
1684         so that we don't reread user defaults repeatedly.
1685         (WebKitInitializeStorageIfNecessary):
1686         * Storage/WebStorageManagerPrivate.h:
1687
1688 2011-09-27  Andy Estes  <aestes@apple.com>
1689
1690         WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
1691         https://bugs.webkit.org/show_bug.cgi?id=68863
1692
1693         Reviewed by Darin Adler.
1694
1695         The SolarWalk binary does not link against WebKit.framework directly,
1696         so calling NSVersionOfLinkTimeLibrary() will not return the version of
1697         WebKit against which SolarWalk was linked. Since Solar Walk has
1698         released an update that addresses the issue for which this app-specific
1699         hack was originally added, we should just remove the hack.
1700
1701         * Misc/SolarWalkQuirksUserScript.js: Removed.
1702         * WebView/WebView.mm: Removed needsSolarWalkQuirksScript(),
1703         leakSolarWalkQuirksUserScriptContents(), and
1704         -[WebView _injectSolarWalkQuirksScript].
1705         (-[WebView _commonInitializationWithFrameName:groupName:]): Do not
1706         inject the Solar Walk quirks script.
1707
1708 2011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
1709
1710         Add static version of JSCell::getCallData
1711         https://bugs.webkit.org/show_bug.cgi?id=68741
1712
1713         Reviewed by Darin Adler.
1714
1715         In this patch we just extract the bodies of the virtual getCallData methods
1716         throughout the JSCell inheritance hierarchy out into static methods, which are 
1717         now called from the virtual methods.  This is an intermediate step in trying to 
1718         move the virtual-ness of getCallData into our own method table stored in 
1719         ClassInfo.  We need to convert the methods to static methods because static methods 
1720         can be represented as function pointers rather than pointers to member functions, and
1721         function pointers are smaller and faster to call than pointers to member functions.
1722
1723         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1724         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1725
1726 2011-09-23  Simon Fraser  <simon.fraser@apple.com>
1727
1728         Repaint tests don't work in WebKit2
1729         https://bugs.webkit.org/show_bug.cgi?id=68453
1730
1731         Reviewed by Sam Weinig.
1732
1733         Have FrameView keep track of repaint rects when asked to, and
1734         expose this set of repaint rects via private WebKit API for later
1735         use by DumpRenderTree.
1736
1737         * WebView/WebView.mm:
1738         (-[WebView setTracksRepaints:]):
1739         (-[WebView isTrackingRepaints]):
1740         (-[WebView resetTrackedRepaints]):
1741         (-[WebView trackedRepaintRects]):
1742         * WebView/WebViewPrivate.h:
1743
1744 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1745
1746         Add custom vtable struct to ClassInfo struct
1747         https://bugs.webkit.org/show_bug.cgi?id=68567
1748
1749         Reviewed by Oliver Hunt.
1750
1751         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
1752         specified class in its ClassInfo.  Also added to it the first function to use 
1753         this macro, visitChildren.  This is part of the process of getting rid of all 
1754         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
1755         that can't easily be converted to non-virtual functions will be put into 
1756         this custom vtable structure.
1757
1758         * Plugins/Hosted/ProxyInstance.mm:
1759         * Plugins/Hosted/ProxyRuntimeObject.mm:
1760
1761 2011-09-24  Adam Barth  <abarth@webkit.org>
1762
1763         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
1764         https://bugs.webkit.org/show_bug.cgi?id=68767
1765
1766         Reviewed by Eric Seidel.
1767
1768         * Configurations/FeatureDefines.xcconfig:
1769         * Misc/WebCache.mm:
1770         (+[WebCache empty]):
1771         * WebCoreSupport/WebApplicationCache.mm:
1772         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
1773         (-[WebApplicationCacheQuotaManager usage]):
1774         (-[WebApplicationCacheQuotaManager quota]):
1775         (-[WebApplicationCacheQuotaManager setQuota:]):
1776         * WebCoreSupport/WebChromeClient.h:
1777         * WebCoreSupport/WebChromeClient.mm:
1778         * WebView/WebDataSource.mm:
1779         (-[WebDataSource _transferApplicationCache:]):
1780         * WebView/WebFrame.mm:
1781         (-[WebFrame _cacheabilityDictionary]):
1782         * WebView/WebView.mm:
1783         (WebKitInitializeApplicationCachePathIfNecessary):
1784
1785 2011-09-23  Adam Klein  <adamk@chromium.org>
1786
1787         Add ENABLE_MUTATION_OBSERVERS feature flag
1788         https://bugs.webkit.org/show_bug.cgi?id=68732
1789
1790         Reviewed by Ojan Vafai.
1791
1792         This flag will guard an implementation of the "Mutation Observers" proposed in
1793         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
1794
1795         * Configurations/FeatureDefines.xcconfig:
1796
1797 2011-09-23  Anders Carlsson  <andersca@apple.com>
1798
1799         Axe WebImageRendererFactory
1800         https://bugs.webkit.org/show_bug.cgi?id=68715
1801
1802         Reviewed by Darin Adler.
1803
1804         Remove WebImageRendererFactory, it was used by Safari 3, many a moon ago.
1805
1806         * WebCoreSupport/WebImageRendererFactory.m: Removed.
1807
1808 2011-09-23  Anders Carlsson  <andersca@apple.com>
1809
1810         Add OVERRIDE to a bunch of virtual member functions on clients
1811         https://bugs.webkit.org/show_bug.cgi?id=68712
1812
1813         Reviewed by Sam Weinig.
1814
1815         * Configurations/Base.xcconfig:
1816         * WebCoreSupport/WebChromeClient.h:
1817         * WebCoreSupport/WebContextMenuClient.h:
1818         * WebCoreSupport/WebDeviceOrientationClient.h:
1819         * WebCoreSupport/WebDragClient.h:
1820         * WebCoreSupport/WebEditorClient.h:
1821         * WebCoreSupport/WebFrameLoaderClient.h:
1822         * WebCoreSupport/WebFrameNetworkingContext.h:
1823         * WebCoreSupport/WebGeolocationClient.h:
1824         * WebCoreSupport/WebIconDatabaseClient.h:
1825         * WebCoreSupport/WebInspectorClient.h:
1826         * WebCoreSupport/WebPlatformStrategies.h:
1827
1828 2011-09-22  Dean Jackson  <dino@apple.com>
1829
1830         Add ENABLE_CSS_FILTERS
1831         https://bugs.webkit.org/show_bug.cgi?id=68652
1832
1833         Reviewed by Simon Fraser.
1834
1835         * Configurations/FeatureDefines.xcconfig:
1836
1837 2011-09-22  Anders Carlsson  <andersca@apple.com>
1838
1839         Get rid of Widget::setBoundsSize
1840         https://bugs.webkit.org/show_bug.cgi?id=68491
1841
1842         Reviewed by Sam Weinig.
1843
1844         This basically reverts http://trac.webkit.org/changeset/79167 and http://trac.webkit.org/changeset/75897
1845         which were added to make zoom gestures work with WebKit1, but since we don't support zoom gestures in WebKit1
1846         anymore, it's better for code cleanliness to get rid of Widget::setBoundsSize and the associated code. While this
1847         will unfortunately break transformed iframes in WebKit1, but Simon says that it's an acceptable tradeoff.
1848
1849         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1850         (-[WebHostedNetscapePluginView updateAndSetWindow]):
1851         * WebView/WebFrameView.mm:
1852
1853 2011-09-19  Jer Noble  <jer.noble@apple.com>
1854
1855         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
1856         https://bugs.webkit.org/show_bug.cgi?id=68382
1857
1858         Reviewed by Darin Adler.
1859
1860         Initialize the webAudioEnabled preference to NO by default.
1861
1862         * WebView/WebPreferences.mm:
1863         (+[WebPreferences initialize]):
1864
1865 2011-09-21  Anders Carlsson  <andersca@apple.com>
1866
1867         Remove checks for Leopard-only Objective-C APIs
1868         https://bugs.webkit.org/show_bug.cgi?id=68579
1869
1870         Reviewed by Sam Weinig.
1871
1872         We can always assume that OBJC_API_VERSION is at least 2, it's been 2 since Leopard.
1873
1874         * Misc/WebNSObjectExtras.h:
1875
1876 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
1877
1878         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
1879         https://bugs.webkit.org/show_bug.cgi?id=67702
1880
1881         Reviewed by Csaba Osztrogonác.
1882
1883         * WebCoreSupport/WebPlatformStrategies.h:
1884         * WebCoreSupport/WebPlatformStrategies.mm:
1885         (WebPlatformStrategies::isLinkVisited):
1886
1887 2011-09-20  Anders Carlsson  <andersca@apple.com>
1888
1889         Remove ScrollView::platformContentsSize
1890         https://bugs.webkit.org/show_bug.cgi?id=68188
1891
1892         Reviewed by Darin Adler.
1893
1894         When creating the document view, make sure it's zero sized which matches the initial size
1895         of the ScrollView. This is fine to do early since DocumentWriter::begin sets the contents
1896         size to a zero size anyway.
1897
1898         * WebView/WebFrameView.mm:
1899         (-[WebFrameView _makeDocumentViewForDataSource:]):
1900
1901 2011-09-19  Pavel Feldman  <pfeldman@google.com>
1902
1903         Web Inspector: streamline Console's MessageType and MessageSource semantics.
1904         https://bugs.webkit.org/show_bug.cgi?id=68342
1905
1906         This change fixes semantics of the MessageSource and MessageType:
1907         MessageSource is now the source of the message (be it Network, HTML
1908         parser or Console API). MessageType is only defined for the Console API
1909         messages and contains the name of the API call (log, dir, dirxml, etc.). 
1910         Subsequent https://bugs.webkit.org/show_bug.cgi?id=66371 will make MessageType
1911         private to the inspector.
1912
1913         Reviewed by Tony Gentilcore.
1914
1915         * WebCoreSupport/WebChromeClient.mm:
1916         (stringForMessageSource):
1917         (stringForMessageType):
1918         * WebView/WebUIDelegatePrivate.h:
1919
1920 2011-09-19  Timothy Hatcher  <timothy@apple.com>
1921
1922         Make WebViews in NSPopovers render as they would in active windows.
1923
1924         The NSWindowDid{Become,Resign}KeyNotifications are not fired when NSPopovers
1925         are shown or hidden since they share key with the parent window. So WebView
1926         and WebHTMLView need to also observe the will order on/off screen notifications.
1927
1928         https://webkit.org/b/68402
1929         rdar://problem/9754099
1930
1931         Reviewed by John Sullivan.
1932
1933         * WebView/WebHTMLView.mm:
1934         (-[WebHTMLView _removeWindowObservers]): Remove order on/off screen notification obversers.
1935         (-[WebHTMLView addWindowObservers]): Add order on/off screen notification obversers.
1936         (-[WebHTMLView windowWillOrderOnScreen:]): Check if the window is already a key window,
1937         which can be the case for NSPopovers.
1938         (-[WebHTMLView windowWillOrderOffScreen:]): Remove the mouse moved observer.
1939         * WebView/WebView.mm:
1940         (-[WebView addWindowObserversForWindow:]): Add order off screen notification obverser.
1941         (-[WebView removeWindowObservers]): Remove order off screen notification obverser.
1942         (-[WebView _windowWillOrderOnScreen:]): Call _updateActiveState.
1943         (-[WebView _windowWillOrderOffScreen:]): Ditto.
1944
1945 2011-09-19  Mark Rowe  <mrowe@apple.com>
1946
1947         <http://webkit.org/b/68421> Stop calling UpdateSystemActivity in places where we hold power assertions that achieve the same effect
1948
1949         On SnowLeopard and newer it's not necessary to call UpdateSystemActivity to prevent the screensaver from kicking
1950         in as the NoDisplaySleep assertion now has that effect. It's also not necessary to hold both a NoDisplaySleep and
1951         a NoIdleSleep assertion as the latter is implied by the former.
1952
1953         Adopt the DisplaySleepDisabler class that was added to WebCore and remove all of duplicated logic from WebFullScreenController.
1954
1955         Reviewed by Dan Bernstein.
1956
1957         * WebView/WebFullScreenController.h:
1958         * WebView/WebFullScreenController.mm:
1959         (-[WebFullScreenController dealloc]):
1960         (-[WebFullScreenController _updatePowerAssertions]): Create a DisplaySleepDisabler instance when transitioning from permitting
1961         display sleep to disabling display sleep. Clear out our reference when sleep should be permitted, destroying any
1962         disabler that we own.
1963
1964 2011-09-19  Adam Barth  <abarth@webkit.org>
1965
1966         Always enable ENABLE(EVENTSOURCE)
1967         https://bugs.webkit.org/show_bug.cgi?id=68414
1968
1969         Reviewed by Eric Seidel.
1970
1971         * Configurations/FeatureDefines.xcconfig:
1972
1973 2011-09-19  Anders Carlsson  <andersca@apple.com>
1974
1975         Fix crashes when running WebKit1 tests.
1976
1977         -[WebView _mustDrawUnionedRect:singleRects:count:] was removed, so just put back the
1978         equivalent code directly into -[WebHTMLView drawRect:].
1979
1980         * WebView/WebHTMLView.mm:
1981         (-[WebHTMLView drawRect:]):
1982         * WebView/WebViewInternal.h:
1983
1984 2011-09-19  Anders Carlsson  <andersca@apple.com>
1985
1986         Remove the last remains of viewless WebKit1
1987         https://bugs.webkit.org/show_bug.cgi?id=68388
1988
1989         Reviewed by Darin Adler.
1990
1991         * WebCoreSupport/WebFrameLoaderClient.mm:
1992         (WebFrameLoaderClient::forceLayoutForNonHTML):
1993         Remove null check.
1994
1995         * WebView/WebView.mm:
1996         (-[WebView _commonInitializationWithFrameName:groupName:]):
1997         Remove usesDocumentViews parameter and checks.
1998
1999         (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]):
2000         Add an assertion that usesDocumentViews is always true.
2001
2002         (-[WebView _isUsingAcceleratedCompositing]):
2003         Remove usesDocumentViews check.
2004
2005         (-[WebView _isSoftwareRenderable]):
2006         Remove usesDocumentViews check.
2007
2008         (-[WebView initWithFrame:frameName:groupName:]):
2009         Remove usesDocumentViews parameter and always pass YES to the _initWithFrame method.
2010         
2011         (-[WebView initWithCoder:]):
2012         Remove usesDocumentViews parameter.
2013
2014         (-[WebView _frameViewAtWindowPoint:]):
2015         Remove usesDocumentViews check.
2016
2017         * WebView/WebViewData.h:
2018         Remove usesDocumentViews ivar.
2019
2020         * WebView/WebViewPrivate.h:
2021         Remove usesDocumentViews parameters.
2022
2023 2011-09-19  Anders Carlsson  <andersca@apple.com>
2024
2025         Remove WebViewEventHandling.mm
2026         https://bugs.webkit.org/show_bug.cgi?id=68387
2027
2028         Reviewed by Adam Roben.
2029
2030         WebViewEventHandling.mm was all about event handling in viewless WebKit, so rip it out since
2031         we're getting rid of viewless WebKit1.
2032
2033         * WebView/WebView.mm:
2034         (-[WebView _close]):
2035         * WebView/WebViewData.h:
2036         * WebView/WebViewEventHandling.mm: Removed.
2037         * WebView/WebViewInternal.h:
2038
2039 2011-09-19  Anders Carlsson  <andersca@apple.com>
2040
2041         Remove -[WebView _selectionChanged] and -[WebView _setTooltip:]
2042         https://bugs.webkit.org/show_bug.cgi?id=68385
2043
2044         Reviewed by Adam Roben.
2045
2046         Move these functions back into the respective clients and remove usesDocumentViews checks.
2047
2048         * WebCoreSupport/WebChromeClient.mm:
2049         (WebChromeClient::setToolTip):
2050         * WebCoreSupport/WebEditorClient.mm:
2051         (WebEditorClient::respondToChangedSelection):
2052         * WebView/WebView.mm:
2053         * WebView/WebViewEventHandling.mm:
2054         * WebView/WebViewInternal.h:
2055
2056 2011-09-19  Anders Carlsson  <andersca@apple.com>
2057
2058         Begin removing -[WebView _usesDocumentCalls] from WebView.mm
2059         https://bugs.webkit.org/show_bug.cgi?id=68383
2060
2061         Reviewed by Adam Roben.
2062
2063         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
2064         returns true, since viewless WebKit1 has been abandoned.
2065
2066         * WebView/WebView.mm:
2067         (-[WebView selectedFrame]):
2068         (-[WebView setHostWindow:]):
2069         (-[WebView acceptsFirstResponder]):
2070         (-[WebView becomeFirstResponder]):
2071         (-[WebView _webcore_effectiveFirstResponder]):
2072         (-[WebView setNextKeyView:]):
2073         (-[WebView setHoverFeedbackSuspended:]):
2074
2075 2011-09-19  Anders Carlsson  <andersca@apple.com>
2076
2077         Remove calls to -[WebView _usesDocumentViews] from WebFrameLoaderClient.mm
2078         https://bugs.webkit.org/show_bug.cgi?id=68379
2079
2080         Reviewed by Adam Roben.
2081
2082         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
2083         returns true, since viewless WebKit1 has been abandoned.
2084
2085         * WebCoreSupport/WebFrameLoaderClient.mm:
2086         (WebFrameLoaderClient::hasHTMLView):
2087         (WebFrameLoaderClient::dispatchDidCommitLoad):
2088         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2089         (WebFrameLoaderClient::createFrame):
2090         * WebView/WebFrame.mm:
2091         (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
2092         (-[WebFrame _hasSelection]):
2093         (-[WebFrame _clearSelection]):
2094         (-[WebFrame _shouldFlattenCompositingLayers:]):
2095         (-[WebFrame _dragSourceEndedAt:operation:]):
2096         (-[WebFrame frameView]):
2097
2098 2011-09-19  Anders Carlsson  <andersca@apple.com>
2099
2100         Remove calls to -[WebView _usesDocumentViews]
2101         https://bugs.webkit.org/show_bug.cgi?id=68377
2102
2103         Reviewed by Adam Roben.
2104
2105         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
2106         returns true, since viewless WebKit1 has been abandoned.
2107
2108         * WebCoreSupport/WebChromeClient.mm:
2109         (WebChromeClient::windowResizerRect):
2110         (WebChromeClient::invalidateContentsAndWindow):
2111         (WebChromeClient::screenToWindow):
2112         (WebChromeClient::windowToScreen):
2113         (WebChromeClient::platformPageClient):
2114         (WebChromeClient::scrollRectIntoView):
2115         (WebChromeClient::print):
2116         * WebView/WebDataSource.mm:
2117         (-[WebDataSource _receivedData:]):
2118
2119 2011-09-19  Dan Bernstein  <mitz@apple.com>
2120
2121         WebKit part of [mac] WebKit contains Objective-C classes that are not prefixed with its standard prefixes
2122         https://bugs.webkit.org/show_bug.cgi?id=68323
2123
2124         Reviewed by Sam Weinig.
2125
2126         Renamed NonBlockingPanel to WebNonBlockingPanel.
2127         Renamed ThreadEnabler to WebCocoaThreadingEnabler.
2128         Renamed PDFPrefUpdatingProxy to WebPDFPrefUpdatingProxy.
2129
2130         * Misc/WebIconDatabase.mm:
2131         (+[WebCocoaThreadingEnabler enableThreading]):
2132         (importToWebCoreFormat):
2133         * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
2134         * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
2135         * Panels/WebAuthenticationPanel.h:
2136         * Panels/WebAuthenticationPanel.m: Renamed NonBlockingPanel to
2137         WebNonBlockingPanel. Because Safari 5.1 uses NonBlockingPanel, this will
2138         cause nightly builds to log an error message when showing the Safari
2139         HTTP authentication sheet and disable the Quit command while the sheet
2140         is disaplyed.
2141         * WebView/WebPDFView.mm:
2142         (-[WebPDFView initWithFrame:]):
2143         (-[WebPDFView _updatePreferencesSoon]):
2144
2145 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
2146
2147         FrameLoaderClient BackForwardList-related methods are unsued
2148         https://bugs.webkit.org/show_bug.cgi?id=68293
2149
2150         Reviewed by Darin Adler.
2151
2152         Remove FrameLoaderClient methods that were added by r51629, since only        
2153         the old (since-deleted) Android port needed them.
2154
2155         * WebCoreSupport/WebFrameLoaderClient.h:
2156         * WebCoreSupport/WebFrameLoaderClient.mm:
2157         * WebKit.order:
2158
2159 2011-09-16  Simon Fraser  <simon.fraser@apple.com>
2160
2161         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
2162         https://bugs.webkit.org/show_bug.cgi?id=68134
2163
2164         Reviewed by Sam Weinig.
2165         
2166         Hook up a private preference that enables the mock scrollbar theme.
2167
2168         * WebView/WebPreferenceKeysPrivate.h:
2169         * WebView/WebPreferences.mm:
2170         (-[WebPreferences mockScrollbarsEnabled]):
2171         (-[WebPreferences setMockScrollbarsEnabled:]):
2172         * WebView/WebPreferencesPrivate.h:
2173
2174 2011-09-15  Adam Barth  <abarth@webkit.org>
2175
2176         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
2177         https://bugs.webkit.org/show_bug.cgi?id=68205
2178
2179         Reviewed by Eric Seidel.
2180
2181         * Storage/WebDatabaseManager.mm:
2182         * Storage/WebDatabaseManagerInternal.h:
2183         * Storage/WebDatabaseManagerPrivate.h:
2184         * Storage/WebDatabaseQuotaManager.mm:
2185         (-[WebDatabaseQuotaManager usage]):
2186         (-[WebDatabaseQuotaManager quota]):
2187         (-[WebDatabaseQuotaManager setQuota:]):
2188         * Storage/WebDatabaseTrackerClient.h:
2189         * Storage/WebDatabaseTrackerClient.mm:
2190         * WebCoreSupport/WebChromeClient.h:
2191         * WebCoreSupport/WebChromeClient.mm:
2192         * WebCoreSupport/WebSecurityOrigin.mm:
2193         (-[WebSecurityOrigin usage]):
2194         (-[WebSecurityOrigin quota]):
2195         (-[WebSecurityOrigin setQuota:]):
2196         * WebView/WebFrame.mm:
2197         (-[WebFrame _cacheabilityDictionary]):
2198         * WebView/WebView.mm:
2199         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2200         (-[WebView _preferencesChanged:]):
2201
2202 2011-09-15  Mark Hahnenberg  <mhahnenberg@apple.com>
2203
2204         Unzip initialization lists and constructors in JSCell hierarchy (7/7)
2205         https://bugs.webkit.org/show_bug.cgi?id=68122
2206
2207         Reviewed by Geoffrey Garen.
2208
2209         Completed the seventh and final level of the refactoring to add finishCreation() 
2210         methods to all classes within the JSCell hierarchy with non-trivial 
2211         constructor bodies.
2212
2213         * Plugins/Hosted/ProxyInstance.mm:
2214         (WebKit::ProxyRuntimeMethod::create):
2215         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2216         * Plugins/Hosted/ProxyRuntimeObject.h:
2217         (WebKit::ProxyRuntimeObject::create):
2218         * Plugins/Hosted/ProxyRuntimeObject.mm:
2219         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2220
2221 2011-09-15  Kentaro Hara  <haraken@google.com>
2222
2223         A single line must not be split into two pages.
2224         https://bugs.webkit.org/show_bug.cgi?id=65005
2225
2226         Reviewed by David Hyatt.
2227
2228         When the document width of a page is overflowed, the last line of the page can be
2229         split into the next page. This is the regression caused by r88737. r88737 tried to
2230         fix rounding errors in rendering calculations by expanding and shrinking a page
2231         using one common method, resizePageRectsKeepingRatio(), but overlooked the case where
2232         a document width gets overflowed.
2233
2234         Test: printing/single-line-must-not-be-split-into-two-pages.html
2235
2236         * WebView/WebHTMLView.mm:
2237         (-[WebHTMLView _web_setPrintingModeRecursive]): Passes an original page size to setPrinting().
2238         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
2239         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
2240         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Ditto.
2241         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]): Ditto.
2242         (-[WebHTMLView _endPrintMode]): Ditto.
2243         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]): Ditto.
2244         (-[WebHTMLView _endScreenPaginationMode]): Ditto.
2245         (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]): Ditto.
2246         (-[WebHTMLView layout]): Ditto.
2247         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]): Ditto.
2248         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
2249         (-[WebHTMLView setPageWidthForPrinting:]): Ditto.
2250
2251 2011-09-15  Eric Seidel  <eric@webkit.org>
2252
2253         Remove ENABLE(SVG_AS_IMAGE) since all major ports have it on by default
2254         https://bugs.webkit.org/show_bug.cgi?id=68182
2255
2256         Reviewed by Adam Barth.
2257
2258         * Configurations/FeatureDefines.xcconfig:
2259
2260 2011-09-15  Eric Seidel  <eric@webkit.org>
2261
2262         Remove ENABLE_SVG_ANIMATION as all major ports have it on by default
2263         https://bugs.webkit.org/show_bug.cgi?id=68022
2264
2265         Reviewed by Ryosuke Niwa.
2266
2267         * Configurations/FeatureDefines.xcconfig:
2268
2269 2011-09-14  Anders Carlsson  <andersca@apple.com>
2270
2271         Get rid of WebCoreViewFactory and its WebViewFactory subclass
2272         https://bugs.webkit.org/show_bug.cgi?id=68124
2273
2274         Reviewed by Sam Weinig.
2275
2276         * WebCoreSupport/WebContextMenuClient.mm:
2277         * WebCoreSupport/WebViewFactory.h: Removed.
2278         * WebCoreSupport/WebViewFactory.mm: Removed.
2279         * WebView/WebFrameView.mm:
2280         (-[WebFrameView initWithFrame:]):
2281
2282 2011-09-14  Mark Hahnenberg  <mhahnenberg@apple.com>
2283
2284         Unzip initialization lists and constructors in JSCell hierarchy (6/7)
2285         https://bugs.webkit.org/show_bug.cgi?id=67692
2286
2287         Reviewed by Geoffrey Garen.
2288
2289         Completed the sixth level of the refactoring to add finishCreation() 
2290         methods to all classes within the JSCell hierarchy with non-trivial 
2291         constructor bodies.
2292
2293         This primarily consists of pushing the calls to finishCreation() down 
2294         into the constructors of the subclasses of the fifth level of the hierarchy 
2295         as well as pulling the finishCreation() calls out into the class's corresponding
2296         create() method if it has one.  Doing both simultaneously allows us to 
2297         maintain the invariant that the finishCreation() method chain is called exactly 
2298         once during the creation of an object, since calling it any other number of 
2299         times (0, 2, or more) will cause an assertion failure.
2300
2301         * Plugins/Hosted/ProxyInstance.mm:
2302         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2303         (WebKit::ProxyRuntimeMethod::finishCreation):
2304
2305 2011-09-13  Eric Seidel  <eric@webkit.org>
2306
2307         Remove ENABLE_SVG_USE as <use> is required by HTML5
2308         https://bugs.webkit.org/show_bug.cgi?id=68019
2309
2310         Reviewed by Ryosuke Niwa.
2311
2312         * Configurations/FeatureDefines.xcconfig:
2313
2314 2011-09-13  Anders Carlsson  <andersca@apple.com>
2315
2316         Disable C++ exceptions when building with clang
2317         https://bugs.webkit.org/show_bug.cgi?id=68031
2318         <rdar://problem/9556880>
2319
2320         Reviewed by Mark Rowe.
2321
2322         * Configurations/Base.xcconfig:
2323
2324 2011-09-13  Eric Seidel  <eric@webkit.org>
2325
2326         Remove ENABLE_SVG_FOREIGN_OBJECT as it is a required part of HTML5
2327         https://bugs.webkit.org/show_bug.cgi?id=68018
2328
2329         Reviewed by Ryosuke Niwa.
2330
2331         * Configurations/FeatureDefines.xcconfig:
2332
2333 2011-09-09  Oliver Hunt  <oliver@apple.com>
2334
2335         Remove support for anonymous storage from jsobjects
2336         https://bugs.webkit.org/show_bug.cgi?id=67881
2337
2338         Reviewed by Sam Weinig.
2339
2340         Remove the use of AnonymousSlotCount
2341
2342         * Plugins/Hosted/ProxyInstance.mm:
2343         (WebKit::ProxyRuntimeMethod::createStructure):
2344         * Plugins/Hosted/ProxyRuntimeObject.h:
2345         (WebKit::ProxyRuntimeObject::createStructure):
2346
2347 2011-09-09  Chris Marrin  <cmarrin@apple.com>
2348
2349         requestAnimationFrame doesn't throttle on Mac
2350         https://bugs.webkit.org/show_bug.cgi?id=67171
2351
2352         Reviewed by Simon Fraser.
2353
2354         Removed runLoopObserver for requestAnimationFrame. It's now
2355         done by a Timer in ScriptedAnimationController in WebCore.
2356
2357         * WebCoreSupport/WebChromeClient.h:
2358         * WebCoreSupport/WebChromeClient.mm:
2359         * WebView/WebView.mm:
2360         (-[WebView _close]):
2361         * WebView/WebViewData.h:
2362         * WebView/WebViewInternal.h:
2363
2364 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
2365
2366         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
2367         https://bugs.webkit.org/show_bug.cgi?id=67250
2368
2369         Reviewed by Simon Fraser.
2370
2371         * WebView/WebView.mm:
2372         (-[WebView _scaleWebView:atOrigin:]):
2373         (-[WebView _viewScaleFactor]):
2374
2375 2011-09-09  Mark Hahnenberg  <mhahnenberg@apple.com>
2376
2377         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
2378         https://bugs.webkit.org/show_bug.cgi?id=67420
2379
2380         Reviewed by Geoffrey Garen.
2381
2382         Completed the fifth level of the refactoring to add finishCreation() 
2383         methods to all classes within the JSCell hierarchy with non-trivial 
2384         constructor bodies.
2385
2386         This primarily consists of pushing the calls to finishCreation() down 
2387         into the constructors of the subclasses of the second level of the hierarchy 
2388         as well as pulling the finishCreation() calls out into the class's corresponding
2389         create() method if it has one.  Doing both simultaneously allows us to 
2390         maintain the invariant that the finishCreation() method chain is called exactly 
2391         once during the creation of an object, since calling it any other number of 
2392         times (0, 2, or more) will cause an assertion failure.
2393
2394         * Plugins/Hosted/ProxyRuntimeObject.h:
2395         * Plugins/Hosted/ProxyRuntimeObject.mm:
2396         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2397         (WebKit::ProxyRuntimeObject::finishCreation):
2398
2399 2011-09-08  Sam Weinig  <sam@webkit.org>
2400
2401         Remove the Completion object from JSC, I have never liked it
2402         https://bugs.webkit.org/show_bug.cgi?id=67755
2403
2404         Reviewed by Gavin Barraclough.
2405
2406         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2407         (WebKit::NetscapePluginInstanceProxy::evaluate):
2408
2409 2011-09-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2410
2411         Unreviewed, rolling out r94627 and r94632.
2412         http://trac.webkit.org/changeset/94627
2413         http://trac.webkit.org/changeset/94632
2414         https://bugs.webkit.org/show_bug.cgi?id=67698
2415
2416         It broke tests on GTK and Qt (Requested by Ossy on #webkit).
2417
2418         * Plugins/Hosted/ProxyRuntimeObject.h:
2419         * Plugins/Hosted/ProxyRuntimeObject.mm:
2420         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2421
2422 2011-09-06  Mark Hahnenberg  <mhahnenberg@apple.com>
2423
2424         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
2425         https://bugs.webkit.org/show_bug.cgi?id=67420
2426
2427         Reviewed by Geoffrey Garen.
2428
2429         Completed the fifth level of the refactoring to add finishCreation() 
2430         methods to all classes within the JSCell hierarchy with non-trivial 
2431         constructor bodies.
2432
2433         This primarily consists of pushing the calls to finishCreation() down 
2434         into the constructors of the subclasses of the second level of the hierarchy 
2435         as well as pulling the finishCreation() calls out into the class's corresponding
2436         create() method if it has one.  Doing both simultaneously allows us to 
2437         maintain the invariant that the finishCreation() method chain is called exactly 
2438         once during the creation of an object, since calling it any other number of 
2439         times (0, 2, or more) will cause an assertion failure.
2440
2441         * Plugins/Hosted/ProxyRuntimeObject.h:
2442         * Plugins/Hosted/ProxyRuntimeObject.mm:
2443         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2444         (WebKit::ProxyRuntimeObject::finishCreation):
2445
2446 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
2447
2448         Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
2449         https://bugs.webkit.org/show_bug.cgi?id=67569
2450
2451         Reviewed by Antonio Gomes.
2452
2453         * WebView/WebHTMLView.mm:
2454         (-[WebHTMLView _updateSelectionForInputManager]):
2455
2456 2011-09-05  Oliver Hunt  <oliver@apple.com>
2457
2458         An object's structure should reference the global object responsible for its creation
2459         https://bugs.webkit.org/show_bug.cgi?id=67624
2460
2461         Reviewed by Gavin Barraclough.
2462
2463         Update for new Structure::create() globalObject parameter.
2464
2465         * Plugins/Hosted/ProxyInstance.mm:
2466         (WebKit::ProxyRuntimeMethod::createStructure):
2467         * Plugins/Hosted/ProxyRuntimeObject.h:
2468         (WebKit::ProxyRuntimeObject::createStructure):
2469
2470 2011-09-01  Mark Rowe  <mrowe@apple.com>
2471
2472         Fix the build by adding some more missing return types.
2473
2474         * WebView/WebDashboardRegion.h:
2475         * WebView/WebDashboardRegion.mm:
2476         (-[WebDashboardRegion initWithRect:clip:type:]):
2477
2478 2011-09-01  Tim Horton  <timothy_horton@apple.com>
2479
2480         REGRESSION: Rendering artifacts on a rotated, pattern filled shape
2481         https://bugs.webkit.org/show_bug.cgi?id=53055
2482         <rdar://problem/8910917>
2483
2484         Reviewed by Simon Fraser.
2485
2486         Introduce wkCGPatternCreateWithImageAndTransform.
2487
2488         * WebCoreSupport/WebSystemInterface.mm:
2489         (InitWebCoreSystemInterface):
2490
2491 2011-08-31  Beth Dakin  <bdakin@apple.com>
2492
2493         https://bugs.webkit.org/show_bug.cgi?id=67322
2494         Re-name overrideBackingScaleFactor
2495
2496         Reviewed by John Sullivan.
2497
2498         _setOverrideBackingScaleFactor is now _setCustomBackingScaleFactor
2499         * WebView/WebView.mm:
2500         (-[WebView _setCustomBackingScaleFactor:]):
2501         (-[WebView _deviceScaleFactor]):
2502         * WebView/WebViewData.h:
2503         * WebView/WebViewPrivate.h:
2504
2505 2011-08-30  Dan Bernstein  <mitz@apple.com>
2506
2507         <rdar://problem/9281695> Add text search API for getting the DOM range of a text match
2508         https://bugs.webkit.org/show_bug.cgi?id=67230
2509
2510         Reviewed by Darin Adler.
2511
2512         * WebView/WebHTMLView.mm:
2513         * WebView/WebView.mm:
2514         (coreOptions): Moved this function from WebHTMLView.mm to here and made
2515         it accessible from both this file and WebHTMLView.mm.
2516         (-[WebView DOMRangeOfString:relativeTo:options:]): Added this new API.
2517         * WebView/WebViewInternal.h:
2518         * WebView/WebViewPrivate.h:
2519
2520 2011-08-30  Beth Dakin  <bdakin@apple.com>
2521
2522         https://bugs.webkit.org/show_bug.cgi?id=67150
2523         Would like API to use a custom device scale factor for a particular WebView/WKView
2524         -and corresponding-
2525         <rdar://problem/10041016>
2526
2527         Reviewed by Darin Adler.
2528
2529         New API is _setOverrideBackingScaleFactor:(CGFloat)
2530         * WebView/WebView.mm:
2531         (-[WebView _setOverrideBackingScaleFactor:]):
2532         (-[WebView _deviceScaleFactor]):
2533         * WebView/WebViewData.h:
2534         * WebView/WebViewPrivate.h:
2535
2536 2011-08-30  Aaron Colwell  <acolwell@chromium.org>
2537
2538         Add MediaSource API to HTMLMediaElement
2539         https://bugs.webkit.org/show_bug.cgi?id=64731
2540
2541         Reviewed by Eric Carlson.
2542
2543         * Configurations/FeatureDefines.xcconfig:
2544
2545 2011-08-29  Alexey Proskuryakov  <ap@apple.com>
2546
2547         DumpRenderTree should begin each test with an empty cookie store
2548         https://bugs.webkit.org/show_bug.cgi?id=63545
2549         <rdar://problem/5666907>
2550
2551         Reviewed by Darin Adler.
2552
2553         * WebView/WebPreferences.mm:
2554         (+[WebPreferences initialize]):
2555         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
2556         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
2557         * WebView/WebPreferencesPrivate.h:
2558         Exposed an SPI to use a private default session. It's separate from private browsing,
2559         because some tests enable the latter, and we don't want to mix them up.
2560         Also exposed an SPI to set cookie accept policy regardless of what session we are currently
2561         using.
2562
2563         * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated to use currentStorageSession()
2564         instead of privateBrowsingStorageSession().
2565
2566 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
2567
2568         The unused ScrollView* argument can and should be removed from
2569         scrollRectIntoView.
2570         https://bugs.webkit.org/show_bug.cgi?id=67117
2571
2572         Reviewed by Darin Adler.
2573
2574         * WebCoreSupport/WebChromeClient.h:
2575         * WebCoreSupport/WebChromeClient.mm:
2576         (WebChromeClient::scrollRectIntoView):
2577
2578 2011-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2579
2580         Unreviewed, rolling out r93987, r93992, r93995, r93998, and
2581         r93999.
2582         http://trac.webkit.org/changeset/93987
2583         http://trac.webkit.org/changeset/93992
2584         http://trac.webkit.org/changeset/93995
2585         http://trac.webkit.org/changeset/93998
2586         http://trac.webkit.org/changeset/93999
2587         https://bugs.webkit.org/show_bug.cgi?id=67147
2588
2589         Many failing tests (Requested by ap on #webkit).
2590
2591         * WebView/WebPreferences.mm:
2592         (+[WebPreferences initialize]):
2593         * WebView/WebPreferencesPrivate.h:
2594
2595 2011-08-26  Alexey Proskuryakov  <ap@apple.com>
2596
2597         DumpRenderTree should begin each test with an empty cookie store
2598         https://bugs.webkit.org/show_bug.cgi?id=63545
2599         <rdar://problem/5666907>
2600
2601         Reviewed by Darin Adler.
2602
2603         * WebView/WebPreferences.mm:
2604         (+[WebPreferences initialize]):
2605         (+[WebPreferences _usePrivateSessionForNetworkLoading]):
2606         * WebView/WebPreferencesPrivate.h:
2607         Exposed an SPI to use a private default session. It's separate from private browsing,
2608         because some tests enable the latter, and we don't want to mix them up.
2609
2610 2011-08-23  Chris Marrin  <cmarrin@apple.com>
2611
2612         [mac] requestAnimationFrame support for mac port
2613         https://bugs.webkit.org/show_bug.cgi?id=59146
2614
2615         Reviewed by Simon Fraser.
2616
2617         Implement requestAnimationFrame for WebKit. Add a
2618         CFRunLoopObserver to WebView, which runs just before
2619         the syncCompositingState RLO and calls into the 
2620         ScriptedAnimationController if scheduleAnimation() has
2621         been called.
2622
2623         * Configurations/FeatureDefines.xcconfig:
2624         * WebCoreSupport/WebChromeClient.h:
2625         * WebCoreSupport/WebChromeClient.mm:
2626         (WebChromeClient::scheduleAnimation):
2627         * WebView/WebView.mm:
2628         (-[WebView _close]):
2629         (-[WebView _unscheduleAnimation]):
2630         (-[WebView _scheduleCompositingLayerSync]):
2631         (requestAnimationFrameRunLoopObserverCallback):
2632         (-[WebView _scheduleAnimation]):
2633         * WebView/WebViewData.h:
2634         * WebView/WebViewInternal.h:
2635
2636 2011-08-24  Alexey Proskuryakov  <ap@apple.com>
2637
2638         Plug-in tests are flaky on Mac
2639         https://bugs.webkit.org/show_bug.cgi?id=66822
2640
2641         Reviewed by Anders Carlsson.
2642
2643         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2644         (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript):
2645         Protect objects that can be removed by a script.
2646
2647         * WebView/WebFrame.mm:
2648         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Ditto.
2649         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): Ditto.
2650         Also fixed some nonsense code.
2651
2652 2011-08-23  Mark Hahnenberg  <mhahnenberg@apple.com>
2653
2654         Add checks to ensure allocation does not take place during initialization of GC-managed objects
2655         https://bugs.webkit.org/show_bug.cgi?id=65288
2656
2657         Reviewed by Darin Adler.
2658
2659         Adding the new validation functionality.  In its current state, it will performs checks, 
2660         but they don't fail unless you do allocation in the arguments to the parent constructor in the 
2661         initialization list of a class.  The allocateCell() method turns on the global flag disallowing any new 
2662         allocations, and the constructorBody() method in JSCell turns it off.  This way, allocation is still 
2663         allowed in constructor bodies while other refactoring efforts continue.
2664
2665         * Plugins/Hosted/ProxyRuntimeObject.h:
2666         (WebKit::ProxyRuntimeObject::create):
2667         * Plugins/Hosted/ProxyRuntimeObject.mm:
2668         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2669
2670 2011-08-18  Beth Dakin  <bdakin@apple.com>
2671
2672         Reviewed by Sam Weinig.
2673
2674         https://bugs.webkit.org/show_bug.cgi?id=66495
2675         Lion-specific scroller SPIs can use forward declaration instead of 
2676         WebKitSystemInterface
2677
2678         * WebCoreSupport/WebSystemInterface.mm:
2679         (InitWebCoreSystemInterface):
2680
2681 2011-08-18  Anders Carlsson  <andersca@apple.com>
2682
2683         More C++0x libc++ build fixes
2684         https://bugs.webkit.org/show_bug.cgi?id=66476
2685
2686         Reviewed by Adam Roben.
2687
2688         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2689         (WKPCSetException):
2690         Use a WTF String here instead of an STL string.
2691
2692         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2693         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
2694         std::make_pair now takes rvalue references, so get rid of the template arguments and let
2695         the compiler deduce them instead.
2696
2697 2011-08-18  Adam Roben  <aroben@apple.com>
2698
2699         Update the device scale factor when the WebView's window changes
2700
2701         Fixes <http://webkit.org/b/66412> <rdar://problem/9971958> WebKit doesn't react when a
2702         WebView is moved between windows with different backing scale factors
2703
2704         Reviewed by Anders Carlsson.
2705
2706         * WebView/WebView.mm:
2707         (-[WebView viewDidMoveToWindow]): Call setDeviceScaleFactor because our new window (or no
2708         window at all) might have a different backing scale factor than the previous one.
2709         (-[WebView _deviceScaleFactor]): Moved to the WebFileInternal category.
2710
2711 2011-08-17  Adam Roben  <aroben@apple.com>
2712
2713         Make WebCore keep track of the current device scale factor
2714
2715         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
2716         device scale factor
2717
2718         Reviewed by Darin Adler.
2719
2720         * WebCoreSupport/WebChromeClient.h:
2721         * WebCoreSupport/WebChromeClient.mm:
2722         Moved code to calculate the device scale factor from here...
2723
2724         * WebView/WebView.mm:
2725         (-[WebView _deviceScaleFactor]):
2726         ...to here.
2727
2728         (-[WebView _windowDidChangeResolution:]): Now calls Page::setDeviceScaleFactor.
2729
2730 2011-08-17  Dan Bernstein  <mitz@apple.com>
2731
2732         Removed some code that is not needed when building for Leopard or later.
2733
2734         Reviewed by Anders Carlsson.
2735
2736         * WebCoreSupport/WebContextMenuClient.mm:
2737         (fixMenusToSendToOldClients): Removed check for Tiger Mail.
2738         * WebCoreSupport/WebFrameLoaderClient.mm:
2739         (WebFrameLoaderClient::objectContentType):
2740         * WebView/WebView.mm:
2741         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2742         (-[WebView _preferencesChanged:]):
2743
2744 2011-08-17  Dan Bernstein  <mitz@apple.com>
2745
2746         Eliminate the WebCGFloat compatibility definition that was needed for Tiger.
2747
2748         Rubber-stamped by Anders Carlsson.
2749
2750         * WebView/WebHTMLViewPrivate.h:
2751
2752 2011-08-17  Dan Bernstein  <mitz@apple.com>
2753
2754         Eliminate the WebNSInteger and WebNSUInteger compatibility definitions that were
2755         needed for Tiger.
2756
2757         Reviewed by Darin Adler.
2758
2759         * History/WebBackForwardList.h:
2760         * WebView/WebDocumentInternal.h:
2761         * WebView/WebHTMLRepresentation.h:
2762         * WebView/WebPreferences.h:
2763         * WebView/WebResourceLoadDelegate.h:
2764         * WebView/WebResourceLoadDelegatePrivate.h:
2765         * WebView/WebScriptDebugDelegate.h:
2766         * WebView/WebTextIterator.h:
2767         * WebView/WebUIDelegate.h:
2768         * WebView/WebView.h:
2769         * WebView/WebViewPrivate.h:
2770
2771 2011-08-15  Dmitry Titov  <dimich@chromium.org>
2772
2773         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
2774         https://bugs.webkit.org/show_bug.cgi?id=66165
2775
2776         Reviewed by Darin Fisher.
2777
2778         * WebCoreSupport/WebFrameLoaderClient.h:
2779         * WebCoreSupport/WebFrameLoaderClient.mm:
2780         (WebFrameLoaderClient::transferLoadingResourceFromPage):
2781
2782 2011-08-15  Mark Hahnenberg  <mhahnenberg@apple.com>
2783
2784         Refactor JS objects to allocate in static create methods rather than constructors
2785         https://bugs.webkit.org/show_bug.cgi?id=65347
2786
2787         Reviewed by Geoffrey Garen.
2788
2789         Removed all calls to deprecatedGetDOMObject from initialization lists as part of a 
2790         larger refactoring to get rid of all allocation during initialization.
2791
2792         * Plugins/Hosted/ProxyInstance.mm:
2793         (WebKit::ProxyRuntimeMethod::create):
2794         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2795
2796 2011-08-15  Adam Roben  <aroben@apple.com>
2797
2798         Update pages' style and content scale when the window's backing scale factor changes
2799
2800         Unfortunately, I couldn't think of a way to test this in an automated fashion.
2801
2802         Fixes <http://webkit.org/b/66229> <rdar://problem/9906269> WebKit doesn't react to device
2803         scale factor changes
2804
2805         Reviewed by Simon Fraser.
2806
2807         * WebView/WebView.mm:
2808         (-[WebView addWindowObserversForWindow:]):
2809         (-[WebView removeWindowObservers]):
2810         Listen for the notification that tells us the window's backing scale has changed.
2811
2812         (-[WebView _windowDidChangeResolution:]): Tell the page about the change to the device scale
2813         factor so that, e.g., scale-factor-dependent media queries will be reevaluated.
2814
2815 2011-08-10  Adam Roben  <aroben@apple.com>
2816
2817         Clear up scale factor terminology
2818
2819         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
2820         software is running, and one that is per-Page and can be controlled via API calls. This
2821         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
2822         code use those names. It should introduce no behavior changes.
2823
2824         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
2825         device scale factor
2826
2827         Reviewed by Simon Fraser.
2828
2829         * Misc/WebNSControlExtras.m:
2830         (-[NSControl sizeToFitAndAdjustWindowHeight]): Updated this function to use more modern
2831         AppKit scale factor terminology. (This is unrelated to the rest of the patch.)
2832
2833         * WebCoreSupport/WebChromeClient.h:
2834         * WebCoreSupport/WebChromeClient.mm:
2835
2836 2011-08-13  Dan Bernstein  <mitz@apple.com>
2837
2838         Changed the value of WebKitShowsToolTipOverTruncatedTextPreferenceKey to match the naming everywhere else.
2839
2840         Reviewed by Joseph Pecoraro.
2841
2842         * WebView/WebPreferenceKeysPrivate.h:
2843
2844 2011-08-13  Sam Weinig  <sam@webkit.org>
2845
2846         Remove unused variables from WebView/WebFullScreenController.h
2847         https://bugs.webkit.org/show_bug.cgi?id=66194
2848
2849         Reviewed by Dan Bernstein.
2850
2851         * WebView/WebFullScreenController.h:
2852         Remove a few variables which were not used.
2853
2854 2011-08-12  Dan Bernstein  <mitz@apple.com>
2855
2856         Add an option to automatically show tooltips (with the full text) over truncated text
2857         https://bugs.webkit.org/show_bug.cgi?id=66178
2858
2859         Reviewed by Simon Fraser.
2860
2861         * WebView/WebPreferenceKeysPrivate.h: Defined a preference key.
2862         * WebView/WebPreferences.mm:
2863         (+[WebPreferences initialize]): Added a default value of NO for the
2864         ShowsToolTipOverTruncatedText preference.
2865         (-[WebPreferences showsToolTipOverTruncatedText]): Added this getter.
2866         (-[WebPreferences setShowsToolTipOverTruncatedText:]): Added this setter.
2867         * WebView/WebPreferencesPrivate.h:
2868         * WebView/WebView.mm:
2869         (-[WebView _preferencesChanged:]): Added call to Settings::setShowsToolTipOverTruncatedText().
2870
2871 2011-08-12  Sam Weinig  <sam@webkit.org>
2872
2873         Use __builtin_trap() for CRASH when building with clang
2874         https://bugs.webkit.org/show_bug.cgi?id=66152
2875
2876         Reviewed by Anders Carlsson.
2877
2878         * Plugins/WebBaseNetscapePluginView.mm:
2879         (-[WebBaseNetscapePluginView setAttributeKeys:andValues:]):
2880         (-[WebBaseNetscapePluginView handleMouseMoved:]):
2881         (-[WebBaseNetscapePluginView handleMouseEntered:]):
2882         (-[WebBaseNetscapePluginView handleMouseExited:]):
2883         (-[WebBaseNetscapePluginView focusChanged]):
2884         (-[WebBaseNetscapePluginView windowFocusChanged:]):
2885         (-[WebBaseNetscapePluginView createPlugin]):
2886         (-[WebBaseNetscapePluginView loadStream]):
2887         (-[WebBaseNetscapePluginView shouldStop]):
2888         (-[WebBaseNetscapePluginView destroyPlugin]):
2889         (-[WebBaseNetscapePluginView updateAndSetWindow]):
2890         (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
2891         (-[WebBaseNetscapePluginView pluginLayer]):
2892         (-[WebBaseNetscapePluginView getFormValue:]):
2893         Remove the ASSERT_NOT_REACHED from the base class methods. They were not
2894         adding much value and were getting in the way of making the static analyzer
2895         work. A better way to do this would be to use a formal protocol.
2896
2897 2011-08-12  Mark Rowe  <mrowe@apple.com>
2898
2899         Be more forward-looking in the choice of compiler.
2900
2901         Rubber-stamped by Jon Honeycutt.
2902
2903         * Configurations/CompilerVersion.xcconfig:
2904
2905 2011-08-10  David Hyatt  <hyatt@apple.com>
2906
2907         https://bugs.webkit.org/show_bug.cgi?id=66004
2908
2909         Removing the CSS Regions and Exclusions ifdefs.
2910
2911         Reviewed by Adam Roben.
2912
2913         * Configurations/FeatureDefines.xcconfig:
2914
2915 2011-08-09  Mark Hahnenberg  <mhahnenberg@apple.com>
2916
2917         Add ParentClass typedef in all JSC classes
2918         https://bugs.webkit.org/show_bug.cgi?id=65731
2919
2920         Reviewed by Oliver Hunt.
2921
2922         Just added the Base typedefs in all the classes that are a subclass of JSCell 
2923         to point at their parent classes.  This is a change to support future changes to the way
2924         constructors and destructors are implemented in JS objects, among other things.
2925
2926         * Plugins/Hosted/ProxyInstance.mm:
2927         * Plugins/Hosted/ProxyRuntimeObject.h:
2928
2929 2011-08-08  Chris Marrin  <cmarrin@apple.com>
2930
2931         Logic to compute visible display rect in GraphicsLayerCA::syncCompositingState
2932         https://bugs.webkit.org/show_bug.cgi?id=65708
2933
2934         Supply initial display rects for the full-screen case
2935
2936         Reviewed by Simon Fraser.
2937
2938         * WebView/WebFullScreenController.mm:
2939         (-[WebFullScreenController enterFullscreen:]):
2940         (-[WebFullScreenController exitFullscreen]):
2941
2942 2011-08-06  Joseph Pecoraro  <joepeck@webkit.org>
2943
2944         Potential Leaks - RetainPtr<> over retaining Create'd objects
2945         https://bugs.webkit.org/show_bug.cgi?id=65806
2946
2947         Reviewed by Darin Adler.
2948
2949         Fix a possible leak by adopting an allocation instead of retaining it.
2950
2951         * WebView/WebView.mm:
2952         (-[WebView previousValidKeyView]):
2953
2954 2011-08-05  Anders Carlsson  <andersca@apple.com>
2955
2956         Remove PluginHalter
2957         https://bugs.webkit.org/show_bug.cgi?id=65729
2958
2959         Reviewed by Darin Adler.
2960
2961         Remove plug-in halter and associated classes.
2962
2963         * Plugins/WebBaseNetscapePluginView.h:
2964         * Plugins/WebBaseNetscapePluginView.mm:
2965         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
2966         (-[WebBaseNetscapePluginView start]):
2967         (-[WebBaseNetscapePluginView stop]):
2968         * WebCoreSupport/WebPluginHalterClient.h: Removed.
2969         * WebCoreSupport/WebPluginHalterClient.mm: Removed.
2970         * WebView/WebPreferenceKeysPrivate.h:
2971         * WebView/WebPreferences.mm:
2972         (+[WebPreferences initialize]):
2973         * WebView/WebPreferencesPrivate.h:
2974         * WebView/WebView.mm:
2975         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2976         (-[WebView _preferencesChanged:]):
2977         * WebView/WebViewPrivate.h:
2978
2979 2011-08-04  Mark Rowe  <mrowe@apple.com>
2980
2981         Future-proof Xcode configuration settings.
2982
2983         * Configurations/Base.xcconfig:
2984         * Configurations/DebugRelease.xcconfig:
2985         * Configurations/Version.xcconfig:
2986         * Configurations/WebKit.xcconfig:
2987
2988 2011-08-03  Kent Tamura  <tkent@chromium.org>
2989
2990         Fix incorrect checks for HTMLMediaElement
2991         https://bugs.webkit.org/show_bug.cgi?id=65590
2992
2993         Reviewed by Dimitri Glazkov.
2994
2995         <video> and <audio> can be an HTMLElement instance instead of
2996         HTMLMediaElement if MediaPlayer::isAvailable() returns false or
2997         the media feature is disabled at runtime.
2998
2999         * WebView/WebFullScreenController.mm:
3000         (-[WebFullScreenController _isAnyMoviePlaying]):
3001
3002 2011-08-03  Mark Rowe  <mrowe@apple.com>
3003
3004         Bring some order to FeatureDefines.xcconfig to make it easier to follow.
3005
3006         Reviewed by Sam Weinig.
3007
3008         * Configurations/FeatureDefines.xcconfig:
3009
3010 2011-08-03  Mark Rowe  <mrowe@apple.com>
3011
3012         Clean up FeatureDefines.xcconfig to remove some unnecessary conditional settings
3013
3014         Reviewed by Dave Kilzer.
3015
3016         * Configurations/FeatureDefines.xcconfig:
3017
3018 2011-08-03  Joseph Pecoraro  <joepeck@webkit.org>
3019
3020         Web Inspector: Remove InspectorFrontendHost load/saveSessionSetting
3021         https://bugs.webkit.org/show_bug.cgi?id=65582
3022
3023         Reviewed by Pavel Feldman.
3024
3025         * WebCoreSupport/WebInspectorClient.h:
3026         * WebCoreSupport/WebInspectorClient.mm:
3027
3028 2011-08-03  Pavel Feldman  <pfeldman@google.com>
3029
3030         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
3031         https://bugs.webkit.org/show_bug.cgi?id=65510
3032
3033         Reviewed by Yury Semikhatsky.
3034
3035         * WebInspector/WebNodeHighlightView.mm:
3036         (-[WebNodeHighlightView drawRect:]):
3037
3038 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
3039
3040         Web Inspector: remove Node parameter from the InspectorClient::highlight
3041         https://bugs.webkit.org/show_bug.cgi?id=65549
3042
3043         Reviewed by Yury Semikhatsky.
3044
3045         * WebCoreSupport/WebInspectorClient.h:
3046         * WebCoreSupport/WebInspectorClient.mm:
3047         (WebInspectorClient::highlight):
3048         * WebInspector/WebNodeHighlighter.h:
3049         * WebInspector/WebNodeHighlighter.mm:
3050         (-[WebNodeHighlighter highlight]):
3051
3052 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
3053
3054         Remove inclusion of MainThread.h from Threading.h
3055         https://bugs.webkit.org/show_bug.cgi?id=65081
3056
3057         Reviewed by Darin Adler.
3058
3059         Add missing include statements for MainThread.
3060
3061         * Carbon/CarbonWindowAdapter.mm:
3062         * History/WebBackForwardList.mm:
3063         * History/WebHistoryItem.mm:
3064         * Misc/WebElementDictionary.mm:
3065         * Misc/WebIconDatabase.mm:
3066         * Misc/WebLocalizableStrings.mm:
3067         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3068         * Plugins/WebBaseNetscapePluginView.mm:
3069         * Plugins/WebBasePluginPackage.mm:
3070         * Plugins/WebNetscapePluginView.mm:
3071         * WebCoreSupport/WebEditorClient.mm:
3072         * WebCoreSupport/WebFrameLoaderClient.mm:
3073         * WebView/WebArchive.mm:
3074         * WebView/WebDataSource.mm:
3075         * WebView/WebHTMLView.mm:
3076         * WebView/WebResource.mm:
3077         * WebView/WebTextIterator.mm:
3078         * WebView/WebView.mm:
3079         * WebView/WebViewData.mm:
3080
3081 2011-07-28  Dan Bernstein  <mitz@apple.com>
3082
3083         <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds
3084
3085         Reviewed by Darin Adler.
3086
3087         * WebCoreSupport/WebSystemInterface.mm:
3088         (InitWebCoreSystemInterface): Initialize wkGetVerticalGlyphsForCharacters.
3089
3090 2011-07-28  Brady Eidson  <beidson@apple.com>
3091
3092         <rdar://problem/9714337> and https://bugs.webkit.org/show_bug.cgi?id=65306
3093         WebKitInitializeStorageIfNecessary() can take awhile performing i/o, isn't necessary for every WebView
3094
3095         Reviewed by Maciej Stachowiak.
3096
3097         * Storage/WebStorageManager.mm:
3098         (WebKitInitializeStorageIfNecessary): Pass the client along in initializeTracker().
3099
3100 2011-07-27  Mark Hahnenberg  <mhahnenberg@apple.com>
3101
3102         Remove operator new from JSCell
3103         https://bugs.webkit.org/show_bug.cgi?id=64999
3104
3105         Reviewed by Oliver Hunt.
3106
3107         Removed the implementation of operator new in JSCell, so any further uses
3108         will not successfully link.  Also removed any remaining uses of operator new.
3109
3110         * Plugins/Hosted/ProxyInstance.mm:
3111         (WebKit::ProxyInstance::newRuntimeObject):
3112         (WebKit::ProxyRuntimeMethod::create):
3113         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
3114         (WebKit::ProxyInstance::getMethod):
3115         * Plugins/Hosted/ProxyRuntimeObject.h:
3116         (WebKit::ProxyRuntimeObject::create):
3117         * WebView/WebScriptDebugDelegate.mm:
3118         (-[WebScriptCallFrame scopeChain]):
3119
3120 2011-07-26  Dan Bernstein  <mitz@apple.com>
3121
3122         <rdar://problem/9842889> Add a generic pictograph font family
3123         https://bugs.webkit.org/show_bug.cgi?id=65197
3124
3125         Reviewed by Anders Carlsson.
3126
3127         * WebView/WebPreferenceKeysPrivate.h: Added WebKitPictographFontPreferenceKey.
3128         * WebView/WebPreferences.mm:
3129         (+[WebPreferences initialize]): Set the default pictograph font family to
3130         "Apple Color Emoji".
3131         (-[WebPreferences pictographFontFamily]): Added this getter.
3132         (-[WebPreferences setPictographFontFamily:]): Added this setter.
3133         * WebView/WebPreferencesPrivate.h:
3134         * WebView/WebView.mm:
3135         (-[WebView _preferencesChanged:]): Pass the preference through to WebCore.
3136
3137 2011-07-25  Ian Henderson  <ianh@apple.com>
3138
3139         WebFrame should have a method to determine its visual emptiness
3140         https://bugs.webkit.org/show_bug.cgi?id=64223
3141
3142         Reviewed by Dan Bernstein.
3143
3144         * WebView/WebFrame.mm:
3145         (-[WebFrame _isVisuallyNonEmpty]): Pipe the isVisuallyNonEmpty method
3146         through WebKit.
3147         * WebView/WebFramePrivate.h:
3148
3149 2011-07-19  Leo Yang  <leoyang.webkit@gmail.com>
3150
3151         SVG: Missing implementation of <altGlyphDef>, <altGlyphItem> and <glyphRef>
3152         https://bugs.webkit.org/show_bug.cgi?id=60850
3153
3154         Reviewed by Nikolas Zimmermann.
3155
3156         SVG spec: http://www.w3.org/TR/SVG/text.html#AlternateGlyphDefinitions.
3157         This patch is to implement SVG <altGlyphDef>, <altGlyphItem> and <glyphRef>
3158         elements for alternative glyph features.
3159
3160         * MigrateHeaders.make:
3161
3162 2011-07-18  Andy Estes  <aestes@apple.com>
3163
3164         Solar Walk app-specific hack accidentally strips stylesheets from the document.
3165         https://bugs.webkit.org/show_bug.cgi?id=64777
3166
3167         Reviewed by Adam Barth.
3168         
3169         Solar Walk uses a self-closed title tag in its documents ("<title />").
3170         The HTML5 parser does not recognize this as a valid self-closing tag,
3171         so it treats the remainder of the document as title text.
3172         
3173         We work around this in WebKit by injecting a script that calls
3174         document.write() on the contents of document.title, thereby restoring
3175         the contents of the document. Unfortunately this overwrote several
3176         <style> tags that existed before the <title>, thereby causing the
3177         document to not have the intended styling.
3178         
3179         Fix this by having the injected script concatenate document.title to
3180         the document instead of overwriting it during document.write(). We can
3181         also take the opportunity to remove document.title since it does not
3182         contain useful information.
3183
3184         * Misc/SolarWalkQuirksUserScript.js:
3185
3186 2011-07-18  Dean Jackson  <dino@apple.com>
3187
3188         https://bugs.webkit.org/show_bug.cgi?id=64742
3189         Expose WebPreferences for media playback requiring user gestures and inline playback
3190
3191         Reviewed by Simon Fraser.
3192
3193         Two new WebPreferences: MediaPlaybackRequiresUserGesture and
3194         MediaPlaybackAllowsInline.
3195
3196         * WebView/WebPreferenceKeysPrivate.h:
3197         * WebView/WebPreferences.mm:
3198         (+[WebPreferences initialize]):
3199         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
3200         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
3201         (-[WebPreferences mediaPlaybackAllowsInline]):
3202         (-[WebPreferences setMediaPlaybackAllowsInline:]):
3203         * WebView/WebPreferencesPrivate.h:
3204         * WebView/WebView.mm:
3205         (-[WebView _preferencesChanged:]):
3206
3207 2011-07-18  Pratik Solanki  <psolanki@apple.com>
3208
3209         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
3210         Get webkit to compile with USE(CFNETWORK) enabled on Mac
3211
3212         Reviewed by David Kilzer.
3213
3214         Create an NSURLDownload from the CF objects that we have.
3215
3216         * Misc/WebDownload.mm:
3217         (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]):
3218         * Misc/WebDownloadInternal.h:
3219         * WebCoreSupport/WebFrameLoaderClient.mm:
3220         (WebFrameLoaderClient::download):
3221
3222 2011-07-15  Pratik Solanki  <psolanki@apple.com>
3223
3224         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
3225         Get webkit to compile with USE(CFNETWORK) enabled on Mac
3226
3227         Reviewed by David Kilzer.
3228
3229         New WebKitSystemInterface functions for CFNetwork-based loader.
3230
3231         * WebCoreSupport/WebSystemInterface.mm:
3232         (InitWebCoreSystemInterface):
3233
3234 2011-07-15  Tim Horton  <timothy_horton@apple.com>
3235
3236         Overlay scrollbars in overflow areas no longer pulse when revealed
3237         https://bugs.webkit.org/show_bug.cgi?id=64606
3238         <rdar://problem/9390674>
3239
3240         Reviewed by Simon Fraser.
3241
3242         Ensure that the state of the scrollbar implementation is kept in sync
3243         with WebCore's internal representation. Previously, we synchronized them
3244         at paint time, causing pulsing to be skipped due to the scrollbars being
3245         disabled.
3246
3247         * WebCoreSupport/WebSystemInterface.mm:
3248         (InitWebCoreSystemInterface):
3249
3250 2011-07-15  Andy Estes  <aestes@apple.com>
3251
3252         Rename applicationIsSolarWalk() to applicationIsSolarWalkMac().
3253         https://bugs.webkit.org/show_bug.cgi?id=64641
3254
3255         Reviewed by Brian Weinstein.
3256
3257         * WebView/WebView.mm:
3258         (needsSolarWalkQuirksScript): Call applicationIsSolarWalkMac().
3259
3260 2011-07-15  Dan Bernstein  <mitz@apple.com>
3261
3262         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
3263         https://bugs.webkit.org/show_bug.cgi?id=64615
3264
3265         Reviewed by Anders Carlsson.
3266
3267         * WebCoreSupport/WebChromeClient.h:
3268         * WebCoreSupport/WebChromeClient.mm:
3269         (WebChromeClient::setCursorHiddenUntilMouseMoves): Added. Calls
3270         +[NSCursor setHiddenUntilMouseMoves:].
3271
3272 2011-07-14  Gavin Barraclough  <barraclough@apple.com>
3273
3274         https://bugs.webkit.org/show_bug.cgi?id=64250
3275         Global strict mode function leaking global object as "this".
3276
3277         Reviewed by Oliver Hunt.
3278
3279         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3280         (WebKit::NetscapePluginInstanceProxy::invoke):
3281         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3282             - Change call to pass DOM Window shell, instead of the global varaible object.
3283
3284 2011-07-13  Joseph Pecoraro  <joepeck@webkit.org>
3285
3286         Improve names of some ApplicationCacheStorage accessor methods
3287         https://bugs.webkit.org/show_bug.cgi?id=64433
3288
3289         Reviewed by Alexey Proskuryakov.
3290
3291         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
3292         (-[WebApplicationCacheQuotaManager usage]):
3293         (-[WebApplicationCacheQuotaManager quota]):
3294         Renamed methods.
3295
3296 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
3297
3298         ApplicationCache update should not immediately fail when reaching per-origin quota
3299         https://bugs.webkit.org/show_bug.cgi?id=64177
3300
3301         Reviewed by Alexey Proskuryakov.
3302
3303         * WebView/WebUIDelegatePrivate.h:
3304         * DefaultDelegates/WebDefaultUIDelegate.m:
3305         (-[WebDefaultUIDelegate webView:exceededApplicationCacheOriginQuotaForSecurityOrigin:spaceNeeded:]):
3306         Update the delegate to include a space needed parameter.
3307
3308         * WebCoreSupport/WebChromeClient.h:
3309         * WebCoreSupport/WebChromeClient.mm:
3310         (WebChromeClient::reachedApplicationCacheOriginQuota):
3311         Call the delegate with the new space needed information.
3312
3313 2011-07-12  Adam Roben  <aroben@apple.com>
3314
3315         Delete some redundant code in WebHTMLView
3316
3317         This code had no user-visible effect, as we were just duplicating work that AppKit would do
3318         for us at a slightly different time.
3319
3320         Fixes <http://webkit.org/b/64390> WebHTMLView sets its root layer's transform unnecessarily
3321
3322         Reviewed by Simon Fraser.
3323
3324         * WebView/WebHTMLView.mm:
3325         (-[WebHTMLView viewDidMoveToWindow]):
3326         (-[WebHTMLView attachRootLayer:]):
3327         Don't bother setting the root layer's transform to account for the scale factor. AppKit
3328         takes care of this for us nowadays.
3329
3330 2011-07-10  Kenichi Ishibashi  <bashi@chromium.org>
3331
3332         Let plugins participate in form submission
3333         https://bugs.webkit.org/show_bug.cgi?id=13061
3334
3335         Adds methods to get form value from NPAPI plugins.
3336
3337         Reviewed by Anders Carlsson.
3338
3339         * Plugins/Hosted/WebHostedNetscapePluginView.h:
3340         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3341         (-[WebHostedNetscapePluginView getFormValue:]): Added.
3342         * Plugins/WebBaseNetscapePluginView.h:
3343         * Plugins/WebBaseNetscapePluginView.mm:
3344         (-[WebBaseNetscapePluginView getFormValue:]): Added.
3345         * Plugins/WebNetscapePluginPackage.h:
3346         * Plugins/WebNetscapePluginPackage.mm:
3347         (-[WebNetscapePluginPackage browserFuncs]): Added.
3348         * Plugins/WebNetscapePluginView.h:
3349         * Plugins/WebNetscapePluginView.mm:
3350         (-[WebNetscapePluginView getFormValue:]): Added.
3351         * WebCoreSupport/WebFrameLoaderClient.mm:
3352         (NetscapePluginWidget::getFormValue): Added.
3353
3354 2011-07-04  Dan Bernstein  <mitz@apple.com>
3355
3356         Moved handling of frame size changes into its own method.
3357
3358         Reviewed by Oliver Hunt.
3359
3360         * WebView/WebFrameView.mm:
3361         (-[WebFrameView _frameSizeChanged]): Added. Moved code here...
3362         (-[WebFrameView setFrameSize:]): ...from here.
3363         * WebView/WebFrameViewInternal.h:
3364
3365 2011-07-01  Adele Peterson  <adele@apple.com>
3366
3367         Reviewed by Darin Adler.
3368
3369         WebKit part of fix for https://bugs.webkit.org/show_bug.cgi?id=63851
3370         <rdar://problem/8981062> Crash when loading a document in an editable WebView that has a subframe with an unstyled body
3371
3372         * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
3373         Only call applyEditingStyleToBodyElement for the main frame.  There's no need to apply break-word, 
3374         space, and after-white-space properties to subframes in the editable document.
3375
3376 2011-07-01  Andy Estes  <aestes@apple.com>
3377
3378         Reviewed by Mark Rowe.
3379
3380         Simplify MailQuirksUserScript.js
3381         https://bugs.webkit.org/show_bug.cgi?id=63800
3382         
3383         MailQuirksUserScript.js is injected into WebViews in Mail.app on
3384         Leopard to resolve an incompatibility between it and the HTML5 parser.
3385         It did so by taking all nodes in the document between <html> and <body>
3386         and moving them to be children of <body>. This maintains Mail.app's
3387         assumption that document.firstChild.firstChild == document.body.
3388         
3389         While this script fixed a specific issue with the Signature panel in
3390         Mail.app, it caused regressions in other WebViews. Since the issue with
3391         the Signature panel is with the empty <head> node implicitly created by
3392         the parser, we can simplify this script by removing this implicit
3393         <head> in the case it has no attributes and no children. This fixes the
3394         Signature panel without affecting other WebViews that have non-trivial
3395         <head> nodes.
3396
3397         * Misc/MailQuirksUserScript.js: If <head> exists but has no attributes
3398         and no children, remove it.
3399
3400 2011-06-30  Dan Bernstein  <mitz@apple.com>
3401
3402         Reviewed by Adele Peterson.
3403
3404         Add +[WebView _allowsRoundingHacks]
3405         https://bugs.webkit.org/show_bug.cgi?id=63734
3406
3407         * WebView/WebView.mm:
3408         (+[WebView _allowsRoundingHacks]): Added this accessor.
3409         * WebView/WebViewPrivate.h:
3410
3411 2011-06-29  Darin Adler  <darin@apple.com>
3412
3413         Reviewed by Dan Bernstein.
3414
3415         [Mac] Use system cursors instead of custom bitmaps where possible
3416         https://bugs.webkit.org/show_bug.cgi?id=63679
3417
3418         * WebCoreSupport/WebSystemInterface.mm:
3419         (InitWebCoreSystemInterface): Added WKCursor.
3420
3421 2011-06-28  Ilya Sherman  <isherman@chromium.org>
3422
3423         Reviewed by Adam Barth.
3424
3425         form.autocomplete="off" does not work
3426         https://bugs.webkit.org/show_bug.cgi?id=35823
3427
3428         * WebView/WebHTMLRepresentation.mm:
3429         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Update callsite.
3430
3431 2011-06-26  Mark Rowe  <mrowe@apple.com>
3432
3433         Reviewed by Dan Bernstein.
3434
3435         Use a separate file name for Lion's WebKitSystemInterface.
3436
3437         * Configurations/DebugRelease.xcconfig:
3438
3439 2011-06-24  Dan Bernstein  <mitz@apple.com>
3440
3441         Reviewed by Anders Carlsson.
3442
3443         Add an option to enable legacy rounding hacks
3444         https://bugs.webkit.org/show_bug.cgi?id=63363
3445
3446         * Misc/WebKitNSStringExtras.mm:
3447         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
3448         Disabled rounding hacks.
3449         (-[NSString _web_widthWithFont:]): Ditto.
3450         * WebView/WebView.mm:
3451         (+[WebView _setAllowsRoundingHacks:]): Added this setter.
3452         * WebView/WebViewPrivate.h:
3453
3454 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
3455
3456         Reviewed by Dimitri Glazkov.
3457
3458         Convert shadow DOM-related tests to use window.internals
3459         https://bugs.webkit.org/show_bug.cgi?id=61671
3460
3461         Remove shadow DOM-related methods from Mac API. These are not
3462         required any more.
3463
3464         * DOM/WebDOMOperations.mm:
3465         * DOM/WebDOMOperationsPrivate.h:
3466
3467 2011-06-24  Yuta Kitamura  <yutak@chromium.org>
3468
3469         Reviewed by Adam Barth.
3470
3471         WebSocket: Add run-time flag for new HyBi protocol
3472         https://bugs.webkit.org/show_bug.cgi?id=60348
3473
3474         Make a new flag (Setting::m_useHixie76WebSocketProtocol)
3475         switchable from WebView and WebPreferences.
3476
3477         * WebView/WebPreferenceKeysPrivate.h:
3478         * WebView/WebPreferences.mm:
3479         (+[WebPreferences initialize]):
3480         (-[WebPreferences setHixie76WebSocketProtocolEnabled:]):
3481         (-[WebPreferences isHixie76WebSocketProtocolEnabled]):
3482         * WebView/WebPreferencesPrivate.h:
3483         * WebView/WebView.mm:
3484         (-[WebView _preferencesChanged:]):
3485
3486 2011-06-22  Sam Weinig  <sam@webkit.org>
3487
3488         Roll out r89469 (Add preference for setting the html parser depth limit)
3489
3490         The preference is not needed at this time, so there is no reason to expose it.
3491
3492         * WebView/WebPreferenceKeysPrivate.h:
3493         * WebView/WebPreferences.mm:
3494         (+[WebPreferences initialize]):
3495         * WebView/WebPreferencesPrivate.h:
3496         * WebView/WebView.mm:
3497         (-[WebView _preferencesChanged:]):
3498
3499 2011-06-22  Sam Weinig  <sam@webkit.org>
3500
3501         Reviewed by Adam Barth.
3502
3503         Add preference for setting the html parser depth limit
3504         https://bugs.webkit.org/show_bug.cgi?id=63163
3505
3506         * WebView/WebPreferenceKeysPrivate.h:
3507         * WebView/WebPreferences.mm:
3508         (+[WebPreferences initialize]):
3509         (-[WebPreferences setMaximumHTMLParserDOMTreeDepth:]):
3510         (-[WebPreferences maximumHTMLParserDOMTreeDepth]):
3511         * WebView/WebPreferencesPrivate.h:
3512         * WebView/WebView.mm:
3513         (-[WebView _preferencesChanged:]):
3514         Add private preference for setting the parser depth limit.
3515
3516 2011-06-22  Ryosuke Niwa  <rniwa@webkit.org>
3517
3518         Reviewed by Darin Adler.
3519
3520         Make instantiation of legacy editing position more explicit
3521         https://bugs.webkit.org/show_bug.cgi?id=63037
3522
3523         Create new positions since we can't create a legacy editing position outside of WebCore anymore.
3524
3525         * WebView/WebFrame.mm:
3526         (-[WebFrame _smartDeleteRangeForProposedRange:]): Calls createLegacyEditingPosition.
3527         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
3528
3529 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
3530
3531         Reviewed by Kent Tamura.
3532
3533         FileChooser should be only created when we need to choose files.
3534         https://bugs.webkit.org/show_bug.cgi?id=63039
3535
3536         * WebCoreSupport/WebChromeClient.mm:
3537         (WebChromeClient::runOpenPanel): Changed to use settings.
3538
3539 2011-06-21  MORITA Hajime  <morrita@google.com>
3540
3541         Unreviewed, rolling out r89401 and r89403.
3542         http://trac.webkit.org/changeset/89401
3543         http://trac.webkit.org/changeset/89403
3544         https://bugs.webkit.org/show_bug.cgi?id=62970
3545
3546         Breaks mac build and mistakenly enables the spellcheck API
3547
3548         * Configurations/FeatureDefines.xcconfig:
3549
3550 2011-06-20  MORITA Hajime  <morrita@google.com>
3551
3552         Reviewed by Kent Tamura.
3553
3554         Spellcheck API should be build-able.
3555         https://bugs.webkit.org/show_bug.cgi?id=62970
3556
3557         No new tests, changing only build related files
3558
3559         * Configurations/FeatureDefines.xcconfig:
3560
3561 2011-06-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3562
3563         Unreviewed, rolling out r89354.
3564         http://trac.webkit.org/changeset/89354
3565         https://bugs.webkit.org/show_bug.cgi?id=63099
3566
3567         Broke tests on Mac (Requested by rniwa on #webkit).
3568
3569         * WebCoreSupport/WebInspectorClient.mm:
3570     &nb