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