1 2014-01-23 Joseph Pecoraro <pecoraro@apple.com>
3 Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
4 https://bugs.webkit.org/show_bug.cgi?id=127409
6 Reviewed by Geoffrey Garen.
8 * WebCoreSupport/WebInspectorClient.mm:
9 (-[WebInspectorWindowController destroyInspectorView:]):
10 Include InspectorDisconnectReason.
12 2014-01-23 Max Vujovic <mvujovic@adobe.com>
14 Remove CSS Custom Filters code and tests
15 https://bugs.webkit.org/show_bug.cgi?id=127382
17 Reviewed by Simon Fraser.
19 * Configurations/FeatureDefines.xcconfig:
20 * WebView/WebPreferenceKeysPrivate.h:
21 * WebView/WebPreferences.mm:
22 (+[WebPreferences initialize]):
23 * WebView/WebPreferencesPrivate.h:
25 (-[WebView _preferencesChanged:]):
27 2014-01-22 Myles C. Maxfield <mmaxfield@apple.com>
29 Remove CSS3_TEXT_DECORATION define
30 https://bugs.webkit.org/show_bug.cgi?id=127333
32 Reviewed by Simon Fraser.
34 This is required for unprefixing the text-decoration-* CSS properties.
36 * Configurations/FeatureDefines.xcconfig:
38 2014-01-22 Dan Bernstein <mitz@apple.com>
40 Build fix for iOS clients of WebUIDelegatePrivate.h.
42 * WebView/WebUIDelegatePrivate.h: Ensure that ENABLE_DASHBOARD_SUPPORT is defined on iOS.
44 2014-01-21 Dan Bernstein <mitz@apple.com>
46 Added a method declaration that was missed in r161185.
48 Reviewed by Sam Weinig.
50 * WebView/WebViewPrivate.h: Declared -removeVisitedLink:.
52 2014-01-21 Commit Queue <commit-queue@webkit.org>
54 Unreviewed, rolling out r162452.
55 http://trac.webkit.org/changeset/162452
56 https://bugs.webkit.org/show_bug.cgi?id=127366
58 broke a few tests on all Mac WebKit1 bots (Requested by
62 (-[WebView _windowWillOrderOnScreen:]):
63 (-[WebView _windowWillOrderOffScreen:]):
65 2014-01-21 Gavin Barraclough <barraclough@apple.com>
67 Change Page, FocusController to use ViewState
68 https://bugs.webkit.org/show_bug.cgi?id=126533
70 Reviewed by Tim Horton.
72 These classes currently maintain a set of separate fields to represent the view state;
73 combine these into a single field, and allow WebPage to send the combined update rather
74 than individual changes.
76 Maintain existing interface for WebKit1 clients.
79 (-[WebView _windowWillOrderOnScreen:]):
80 (-[WebView _windowWillOrderOffScreen:]):
81 - remove calls to FocusController::setContentIsVisible, these are redundant
82 (this is handled when page visibility is set).
84 2014-01-20 Jeremy Jones <jeremyj@apple.com>
86 Add AVKit fullscreen video interface.
87 https://bugs.webkit.org/show_bug.cgi?id=126818
89 Reviewed by Eric Carlson.
91 * WebCoreSupport/WebChromeClient.h:
92 * WebCoreSupport/WebChromeClient.mm:
93 (WebChromeClient::supportsFullscreenForNode):
94 Enable *FullscreenForNode for HTMLMediaElement for iOS
96 * WebView/WebPreferenceKeysPrivate.h:
97 * WebView/WebPreferences.mm:
98 (+[WebPreferences initialize]):
99 (-[WebPreferences mediaPlaybackFullscreenAVKit]):
100 (-[WebPreferences setMediaPlaybackFullscreenAVKit:]):
101 * WebView/WebPreferencesPrivate.h:
102 * WebView/WebView.mm:
103 (-[WebView _preferencesChanged:]):
104 (-[WebView _enterFullscreenForNode:WebCore::]):
105 * WebView/WebViewInternal.h:
106 Add a disabled pref mediaPlaybackFullscreenAVKit.
107 Use WebVideoFullscreenControllerAVKit on iOS
109 2014-01-18 Brian Burg <bburg@apple.com>
111 Web Inspector: Page should use std::unique_ptr for InspectorController
112 https://bugs.webkit.org/show_bug.cgi?id=127068
114 Reviewed by Joseph Pecoraro.
116 Convert call sites to use a InspectorController reference.
117 Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
119 * WebCoreSupport/WebInspectorClient.mm:
120 (WebInspectorClient::openInspectorFrontend):
121 (-[WebInspectorWindowController destroyInspectorView:]):
122 * WebInspector/WebInspector.mm:
123 (-[WebInspector showWindow]):
124 (-[WebInspector isJavaScriptProfilingEnabled]):
125 (-[WebInspector setJavaScriptProfilingEnabled:]):
126 (-[WebInspector close:]):
127 (-[WebInspector evaluateInFrontend:callId:script:]):
128 * WebInspector/WebNodeHighlighter.mm:
129 (-[WebNodeHighlighter highlight]):
131 2014-01-18 Anders Carlsson <andersca@apple.com>
133 Remove ENABLE_THREADED_HTML_PARSER defines everywhere
134 https://bugs.webkit.org/show_bug.cgi?id=127225
136 Reviewed by Andreas Kling.
138 This concludes the removal of over 8.8 million lines of threaded parser code.
140 * Configurations/FeatureDefines.xcconfig:
142 2014-01-17 Anders Carlsson <andersca@apple.com>
144 Clean up PageCache classes
145 https://bugs.webkit.org/show_bug.cgi?id=127202
147 Reviewed by Andreas Kling.
149 * WebCoreSupport/WebFrameLoaderClient.mm:
150 (WebFrameLoaderClient::savePlatformDataToCachedFrame):
151 (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
153 2014-01-17 Anders Carlsson <andersca@apple.com>
155 Remove another unused FrameLoaderClient callback
156 https://bugs.webkit.org/show_bug.cgi?id=127192
158 Reviewed by Dan Bernstein.
160 * WebCoreSupport/WebFrameLoaderClient.h:
161 * WebCoreSupport/WebFrameLoaderClient.mm:
163 2014-01-17 Anders Carlsson <andersca@apple.com>
165 Move didPerformFirstNavigation() logic to -[WebView _didCommitLoadForFrame:]
166 https://bugs.webkit.org/show_bug.cgi?id=127189
168 Reviewed by Dan Bernstein.
170 This is a first step towards completely eliminating the didPerformFirstNavigation() client callback.
172 * WebCoreSupport/WebFrameLoaderClient.h:
173 * WebCoreSupport/WebFrameLoaderClient.mm:
174 Remove didPerformFirstNavigation() implementation.
176 * WebView/WebView.mm:
177 (-[WebView _checkDidPerformFirstNavigation]):
178 Check if we have both a current item and a previous item which indicates that we've navigated once.
179 The old code was called before there was a current item but since this is called from _didCommitLoadForFrame
180 we have to check that there's a current item as well.
182 (-[WebView _didCommitLoadForFrame:]):
183 Call _didCommitLoadForFrame.
185 * WebView/WebViewData.h:
188 2014-01-17 Alexey Proskuryakov <ap@apple.com>
192 * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
193 NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain is not part of NSHTTPCookieAcceptPolicy enum.
195 2014-01-16 Daniel Bates <dabates@apple.com>
197 [iOS] MobileSafari build fix. Declare iOS-specific method mainFrameIconURL
199 For now, add mainFrameIconURL() to WebView.h. We should further investigate its
200 usage and API/SPI status.
204 2014-01-16 Alexey Proskuryakov <ap@apple.com>
206 [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
207 https://bugs.webkit.org/show_bug.cgi?id=127139
209 Reviewed by Brady Eidson.
211 * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
214 2014-01-16 Daniel Bates <dabates@apple.com>
216 [iOS] Fix UIKit build warning about undefined macro ENABLE_NETSCAPE_PLUGIN_API
218 * WebView/WebFramePrivate.h: Wrap use of ENABLE_NETSCAPE_PLUGIN_API in TARGET_OS_IPHONE.
220 2014-01-16 Anders Carlsson <andersca@apple.com>
222 Change all uses of FINAL to final now that all our compilers support it
223 https://bugs.webkit.org/show_bug.cgi?id=127142
225 Reviewed by Benjamin Poulain.
227 * WebCoreSupport/WebUserMediaClient.h:
228 * WebView/WebScriptDebugger.h:
230 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
232 Remove workaround for compilers not supporting explicit override control
233 https://bugs.webkit.org/show_bug.cgi?id=127111
235 Reviewed by Anders Carlsson.
237 Now all compilers support explicit override control, this workaround can be removed.
239 * Storage/WebDatabaseManagerClient.h:
240 * Storage/WebStorageTrackerClient.h:
241 * WebCoreSupport/WebAlternativeTextClient.h:
242 * WebCoreSupport/WebChromeClient.h:
243 * WebCoreSupport/WebContextMenuClient.h:
244 * WebCoreSupport/WebDeviceOrientationClient.h:
245 * WebCoreSupport/WebDragClient.h:
246 * WebCoreSupport/WebEditorClient.h:
247 * WebCoreSupport/WebFrameLoaderClient.h:
248 * WebCoreSupport/WebFrameNetworkingContext.h:
249 * WebCoreSupport/WebGeolocationClient.h:
250 * WebCoreSupport/WebIconDatabaseClient.h:
251 * WebCoreSupport/WebInspectorClient.h:
252 * WebCoreSupport/WebNotificationClient.h:
253 * WebCoreSupport/WebPlatformStrategies.h:
254 * WebCoreSupport/WebProgressTrackerClient.h:
255 * WebCoreSupport/WebUserMediaClient.h:
256 * WebView/WebScriptDebugger.h:
257 * WebView/WebViewData.h:
259 2014-01-16 Andy Estes <aestes@apple.com>
261 [iOS] Fix build issues with exported headers
263 * DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
265 * MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
266 rules so that WebCoreFrameScrollView won't inadvertently get changed to
267 WebKitFrameScrollView.
268 * Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
269 order to maintain source compatibility.
270 * Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
271 * Plugins/WebPluginPrivate.h: Removed.
272 * Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
273 with ENABLE_SQL_DATABASE.
274 * WebView/WebViewPrivate.h: Added declaration of
275 -[WebView _touchEventRegions] for source compatibility.
277 2014-01-15 Benjamin Poulain <bpoulain@apple.com>
279 Fix the iOS build after r162114
283 * WebView/WebViewPrivate.h: I forgot to remove the declaration, fix that.
285 2014-01-15 Benjamin Poulain <bpoulain@apple.com>
287 Move user agent code to WebCore and unify some code between OS X and iOS
288 https://bugs.webkit.org/show_bug.cgi?id=127080
290 Reviewed by Sam Weinig.
292 * WebCoreSupport/WebSystemInterface.mm:
293 (InitWebCoreSystemInterface):
294 * WebView/WebView.mm:
295 (userVisibleWebKitVersionString):
296 (+[WebView _standardUserAgentWithApplicationName:]):
297 (-[WebView _setUIWebViewUserAgentWithBuildVersion:]):
299 2014-01-15 Joseph Pecoraro <pecoraro@apple.com>
301 [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge
302 https://bugs.webkit.org/show_bug.cgi?id=127069
304 Reviewed by Timothy Hatcher.
306 * WebView/WebView.mm:
307 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
308 (+[WebView _enableRemoteInspector]):
309 (+[WebView _disableRemoteInspector]):
310 (+[WebView _disableAutoStartRemoteInspector]):
311 (+[WebView _isRemoteInspectorEnabled]):
312 (+[WebView _hasRemoteInspectorSession]):
313 (-[WebView allowsRemoteInspection]):
314 Implement with RemoteInspector.h SPIs.
316 (-[WebView setAllowsRemoteInspection:]):
317 (-[WebView setHostApplicationBundleId:name:]):
318 Still unimplemented, update comment.
320 (-[WebView _didCommitLoadForFrame:]):
321 Remove dead path, WebCore now pushes updates on navigations.
323 * WebView/WebViewData.h:
324 * WebView/WebViewData.mm:
325 (-[WebViewPrivate init]):
326 Remove now unused ivar.
328 2014-01-15 Alexey Proskuryakov <ap@apple.com>
330 More iOS build fixing.
332 * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
333 Removed a now unused local variable.
335 2014-01-15 Alexey Proskuryakov <ap@apple.com>
339 * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
340 Update a remaining call site of _updatePrivateBrowsingStateFram:to:.
342 2014-01-15 Alexey Proskuryakov <ap@apple.com>
344 Crash when multiple WebView instances have different PrivateBrowsing settings
345 https://bugs.webkit.org/show_bug.cgi?id=127019
347 * WebView/WebPreferences.mm: (-[WebPreferences _updatePrivateBrowsingStateTo:]):
348 Added a null check to fix Safari crash on startup when extensions are enabled.
350 2014-01-15 Alexey Proskuryakov <ap@apple.com>
352 Crash when multiple WebView instances have different PrivateBrowsing settings
353 https://bugs.webkit.org/show_bug.cgi?id=127019
355 Reviewed by Sam Weinig.
357 * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
358 browsing session simply because one preferences object doesn't use private browsing.
359 There could be others that do.
361 * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
362 browsing, and only delete the private session when there are none any more.
364 2014-01-15 David Kilzer <ddkilzer@apple.com>
366 [iOS] Missing RenderObject::style() symbol in WebDOMOperations.mm
368 Fixes the following linker error:
370 Undefined symbols for architecture x86_64:
371 "__ZNK7WebCore12RenderObject5styleEv", referenced from:
372 -[DOMNode(WebDOMNodeOperations) isHorizontalWritingMode] in WebDOMOperations.o
374 * DOM/WebDOMOperations.mm: Include RenderElement.h instead of
375 RenderObject.h since the inline RenderObject::style() method
376 moved to the former header.
378 2014-01-15 Commit Queue <commit-queue@webkit.org>
380 Unreviewed, rolling out r162054.
381 http://trac.webkit.org/changeset/162054
382 https://bugs.webkit.org/show_bug.cgi?id=127053
384 Causes assertion failures in DumpRenderTree (Requested by ap
387 * WebView/WebPreferences.mm:
388 (-[WebPreferences initWithIdentifier:sendChangeNotification:initWithIdentifier:]):
389 (-[WebPreferences initWithCoder:]):
390 (+[WebPreferences standardPreferences]):
391 (-[WebPreferences dealloc]):
392 (-[WebPreferences setPrivateBrowsingEnabled:]):
393 (-[WebPreferences _invalidateCachedPreferences]):
394 * WebView/WebView.mm:
395 (-[WebView _preferencesChanged:]):
397 2014-01-14 Alexey Proskuryakov <ap@apple.com>
399 Crash when multiple WebView instances have different PrivateBrowsing settings
400 https://bugs.webkit.org/show_bug.cgi?id=127019
402 Reviewed by Sam Weinig.
404 * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
405 browsing session simply because one preferences object doesn't use private browsing.
406 There could be others that do.
408 * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
409 browsing, and only delete the private session when there are none any more.
411 2014-01-14 Simon Fraser <simon.fraser@apple.com>
413 Fix the iOS build after r162034.
415 * WebCoreSupport/WebProgressTrackerClient.mm:
416 * WebView/WebView.mm:
417 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
419 2014-01-14 Mark Rowe <mrowe@apple.com>
421 Stop cmp from spewing useless info during postprocess-headers.sh.
423 * postprocess-headers.sh: Pass -s to silence cmp since we only care about the
426 2014-01-14 Joseph Pecoraro <pecoraro@apple.com>
428 [iOS] Crash in NavigatorBase::vendor loading apple.com
429 https://bugs.webkit.org/show_bug.cgi?id=127028
431 Reviewed by Daniel Bates.
433 Fill in iOS WebKitSystemInterface functions.
435 * WebCoreSupport/WebSystemInterface.mm:
436 (InitWebCoreSystemInterface):
438 2014-01-14 Anders Carlsson <andersca@apple.com>
440 Create separate progress tracker clients
441 https://bugs.webkit.org/show_bug.cgi?id=127025
443 Reviewed by Sam Weinig.
445 * WebCoreSupport/WebFrameLoaderClient.h:
446 * WebCoreSupport/WebFrameLoaderClient.mm:
447 * WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
448 * WebCoreSupport/WebProgressTrackerClient.mm: Added.
449 (WebProgressTrackerClient::WebProgressTrackerClient):
450 (WebProgressTrackerClient::progressTrackerDestroyed):
451 (WebProgressTrackerClient::willChangeEstimatedProgress):
452 (WebProgressTrackerClient::didChangeEstimatedProgress):
453 (WebProgressTrackerClient::progressStarted):
454 (WebProgressTrackerClient::progressEstimateChanged):
455 (WebProgressTrackerClient::progressFinished):
456 * WebView/WebView.mm:
457 (-[WebView _commonInitializationWithFrameName:groupName:]):
458 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
460 2014-01-14 Dean Jackson <dino@apple.com>
462 Correct grave mistake in updating the pbxproj file rather than xcconfig.
464 * Configurations/WebKit.xcconfig:
466 2014-01-14 Simon Fraser <simon.fraser@apple.com>
468 #define ENABLE_DASHBOARD_SUPPORT for iOS.
470 * WebView/WebViewPrivate.h:
472 2014-01-14 Simon Fraser <simon.fraser@apple.com>
474 Clean up exports and headers for iOS.
476 Need to export WebArchivePboardType on Mac and iOS.
481 2014-01-14 Simon Fraser <simon.fraser@apple.com>
483 Fix header availability checks on iOS
484 https://bugs.webkit.org/show_bug.cgi?id=127016
486 Reviewed by Andy Estes.
488 Make DOMTouch* and DOMGesture* headers public headers on iOS,
489 and fix MigrateHeaders.make to skip availability checks when
492 * MigrateHeaders.make:
494 2014-01-14 Simon Fraser <simon.fraser@apple.com>
496 Need to #import <WebCore/QuickLook.h>.
498 * WebView/WebDataSource.mm:
500 2014-01-14 Daniel Bates <dabates@apple.com>
502 [iOS] Enable QuickLook
503 https://bugs.webkit.org/show_bug.cgi?id=126954
505 Reviewed by David Kilzer.
507 Remove empty implementation for quickLookContentForURL: since we always enable QuickLook on iOS.
509 * WebView/WebView.mm:
510 (-[WebView quickLookContentForURL:]):
512 2014-01-14 Dean Jackson <dino@apple.com>
514 Move some Mac-only exports to WebKit.mac.exp for iOS build.
519 2014-01-14 Simon Fraser <simon.fraser@apple.com>
521 Move some Mac-only exports to WebKit.mac.exp for iOS build.
526 2014-01-14 Simon Fraser <simon.fraser@apple.com>
530 * Configurations/WebKit.xcconfig: We do need WebOpenPanelResultListener
532 * WebCoreSupport/WebOpenPanelResultListener.mm: Need <WebCore/Icon.h>
534 2014-01-14 Simon Fraser <simon.fraser@apple.com>
536 iOS build fixing: link WebKit against Security.framework on iOS.
538 * Configurations/WebKit.xcconfig:
540 2014-01-14 Dean Jackson <dino@apple.com>
542 [WK1] Allow generated export files on iOS
543 https://bugs.webkit.org/show_bug.cgi?id=127008
545 Reviewed by Simon Fraser.
547 Add a new Mac-only symbol file.
549 * WebKit.exp: To begin, move the WebIcon* into the Mac-specific exports.
550 * WebKit.mac.exp: Added. New file holds Mac-only symbols.
552 2014-01-14 Brian J. Burg <burg@cs.washington.edu>
554 Add ENABLE(WEB_REPLAY) feature flag to the build system
555 https://bugs.webkit.org/show_bug.cgi?id=126949
557 Reviewed by Joseph Pecoraro.
559 * Configurations/FeatureDefines.xcconfig:
561 2014-01-13 Simon Fraser <simon.fraser@apple.com>
563 Fix the Mac build. WebViewPrivate.h declares quickLookContentForURL:
564 for iOS, but the implementation conditionalizes on USE(QUICK_LOOK),
565 which we are confused about.
567 * WebView/WebView.mm:
568 (-[WebView quickLookContentForURL:]):
569 * WebView/WebViewPrivate.h:
571 2014-01-13 Simon Fraser <simon.fraser@apple.com>
573 Fix the remaining compiler errors in iOS WK1.
575 * WebView/WebFrame.mm:
576 (vectorForDictationPhrasesArray): Need this function on iOS.
577 (-[WebFrame setSelectedDOMRange:affinity:closeTyping:]): We're already inside
578 a huge if PLATFORM(IOS) block.
579 (-[WebFrame resetTextAutosizingBeforeLayout]): Document now exposes RenderView.
580 * WebView/WebFrameInternal.h: Declare vectorForDictationPhrasesArray() (not a good place for it!)
581 * WebView/WebView.mm: #import cleanup for iOS.
582 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Declare autoStartRemoteInspector
583 here but this needs cleaning up (<rdar://problem/15810991>).
584 (-[WebView setHostApplicationBundleId:name:]): No [WebView sharedWebInspectorServer] any more.
585 (-[WebView _didCommitLoadForFrame:]): Ditto.
586 * WebView/WebViewData.h: Add allowsRemoteInspection.
587 * WebView/WebViewData.mm: Initialize allowsRemoteInspection
588 (-[WebViewPrivate init]):
589 * WebView/WebViewPrivate.h: Fumbled #ifdef.
591 2014-01-13 Simon Fraser <simon.fraser@apple.com>
593 More work towards getting iOS WK1 building.
595 * DOM/WebDOMOperations.mm: Need RenderObject.h.
596 * DOM/WebDOMOperationsPrivate.h:
597 * History/WebBackForwardList.mm: Need Foundation/NSGeometry.h for NSRect
598 (-[WebBackForwardList dictionaryRepresentation]): Fix array iteration to match
600 * Misc/WebIconDatabase.h: #ifdef out functions that return NSImages.
601 * Plugins/WebPluginController.mm: Need <WebCore/AudioSession.h>
602 * WebCoreSupport/WebFrameLoaderClient.mm:
603 (WebFrameLoaderClient::transitionToCommittedForNewPage): Some new code to
604 handle the error case.
605 * WebView/WebFrameView.mm: Avoid including some headers which pull in AppKit classes.
606 * WebView/WebHTMLView.mm: Ditto.
607 (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Handle
608 different return type of createDragImageForSelection().
609 * WebView/WebPolicyDelegatePrivate.h:
610 * WebView/WebPreferences.mm: <WebCore/AudioSession.h> and <AudioToolbox/AudioSession.h>
612 2014-01-13 Daniel Bates <dabates@apple.com>
614 [iOS] Remove duplicate inclusions of header WAKView.h
615 following <http://trac.webkit.org/changeset/161910>
617 * WebView/WebFrameView.h:
618 * WebView/WebHTMLView.h:
620 2014-01-13 Simon Fraser <simon.fraser@apple.com>
622 Various iOS WebKit1 build fixes.
624 * Configurations/WebKit.xcconfig: Add more Mac-only files
625 to the excluded files list for iOS.
626 * DefaultDelegates/WebDefaultUIDelegate.m: Don't include WebJavaScriptTextInputPanel.h
628 * History/WebHistory.h: NSCalendarDate doesn't exist on iOS.
629 * Misc/WebDownload.h: Need WAKAppKitStubs.h
630 * Misc/WebNSViewExtras.m: No WebNSPasteboardExtras on iOS
631 * Storage/WebDatabaseManagerClient.mm: Need DatabaseTracker.h, no harm
632 in including it for all platforms.
633 * WebCoreSupport/WebEditorClient.h: Remove useless comment.
634 * WebCoreSupport/WebEditorClient.mm:
635 (nsStringWithoutCopying): Moved
636 (WebEditorClient::checkTextOfParagraph): Modernized.
637 * WebInspector/WebNodeHighlightView.mm: Need FloatQuad.h.
638 * WebView/WebDataSource.mm: Need WebFrameViewInternal.h
639 * WebView/WebDocument.h: Needs WAKView.h.
640 * WebView/WebFrameView.h: Ditto.
641 * WebView/WebHTMLView.h: Ditto.
642 * WebView/WebPDFDocumentExtras.mm:
643 (allScriptsInPDFDocument): No PDFDocument on iOS.
644 * WebView/WebPolicyDelegate.h:
645 * WebView/WebView.h: Fix incorrect #if.
647 2014-01-13 Daniel Bates <dabates@apple.com>
649 [iOS] More build fixes for WebKit
651 * Configurations/Base.xcconfig: Removed extraneous definition of SUPPORTED_PLATFORMS.
652 * Configurations/WebKit.xcconfig: Exclude more Mac-specific files when building for iOS:
653 CarbonUtils.m, CarbonWindowAdapter.mm, CarbonWindowContentView.m, CarbonWindowFrame.m,
654 HIViewAdapter.m, HIWebView.mm, MailQuirksUserScript.js, OutlookQuirksUserScript.js,
655 PopupMenuMac.mm, SearchPopupMenuMac.mm, WebClipView.mm, WebInspectorClient.mm,
656 WebNetscapeContainerCheckContextInfo.mm, WebNetscapeContainerCheckPrivate.mm, WebRenderNode.mm,
657 WebStringTruncator.mm, and WebTextCompletionController.mm. I haven't verified the Mac-specific
658 nature of each of these files. We may be able to reduce this list upon further investigation.
659 * WebView/WebDocument.h: Include header <WebKit/WAKView.h> for definition of WAKView.
660 * WebView/WebFrameView.h: Ditto.
661 * WebView/WebUIDelegate.h: Ditto.
662 * WebView/WebView.h: Ditto.
664 2014-01-13 Simon Fraser <simon.fraser@apple.com>
666 Include WAKAppKitStubs.h to get NSSelectionAffinity.
668 * WebView/WebEditingDelegate.h:
670 2014-01-13 Simon Fraser <simon.fraser@apple.com>
672 DOMTouch* etc should not be public headers on iOS.
674 * MigrateHeaders.make:
676 2014-01-13 Andy Estes <aestes@apple.com>
678 [iOS] Build Fix: switch back to calling postprocess-headers.sh
680 * postprocess-headers.sh:
682 2014-01-13 Zalan Bujtas <zalan@apple.com>
684 Enable SUBPIXEL_LAYOUT on Mac
685 <https://webkit.org/b/126283>
687 Reviewed by Simon Fraser.
689 * Configurations/FeatureDefines.xcconfig:
691 2014-01-12 Darin Adler <darin@apple.com>
693 Add deprecatedCharacters as a synonym for characters and convert most call sites
694 https://bugs.webkit.org/show_bug.cgi?id=126858
696 Reviewed by Anders Carlsson.
698 * History/BinaryPropertyList.cpp:
699 (BinaryPropertyListSerializer::appendStringObject):
700 Use deprecatedCharacters instead of characters.
702 2014-01-12 Darin Adler <darin@apple.com>
704 Add type checking to isEqual methods
705 https://bugs.webkit.org/show_bug.cgi?id=126862
707 Reviewed by Anders Carlsson.
709 * WebCoreSupport/WebSecurityOrigin.mm:
710 (-[WebSecurityOrigin isEqual:]): Added a FIXME about the lack of a hash method
711 override. Tweaked formatting.
713 * WebView/WebDashboardRegion.mm:
714 (-[WebDashboardRegion isEqual:]): Added type checking on the argument. Added a
715 FIXME about the lack of a hash method override.
717 2014-01-11 Alexey Proskuryakov <ap@apple.com>
719 [Mac] [Windows] Stop scheduling network requests in WebCore
720 https://bugs.webkit.org/show_bug.cgi?id=126789
721 <rdar://problem/15114727>
723 Reviewed by Sam Weinig.
725 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated
726 for new WKSI function names.
728 2014-01-10 Anders Carlsson <andersca@apple.com>
730 Tweak ProgressTrackerClient functions
731 https://bugs.webkit.org/show_bug.cgi?id=126808
733 Reviewed by Sam Weinig.
735 * WebCoreSupport/WebFrameLoaderClient.h:
736 * WebCoreSupport/WebFrameLoaderClient.mm:
737 (WebFrameLoaderClient::progressStarted):
738 (WebFrameLoaderClient::progressEstimateChanged):
739 (WebFrameLoaderClient::progressFinished):
741 2014-01-10 Anders Carlsson <andersca@apple.com>
743 Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
744 https://bugs.webkit.org/show_bug.cgi?id=126801
746 Reviewed by Sam Weinig.
748 * WebCoreSupport/WebFrameLoaderClient.h:
749 * WebView/WebView.mm:
750 (-[WebView _commonInitializationWithFrameName:groupName:]):
752 2014-01-10 David Kilzer <ddkilzer@apple.com>
754 Clean up architectures in xcconfig files
755 <http://webkit.org/b/126794>
757 Reviewed by Andy Estes.
759 * Configurations/WebKit.xcconfig: Remove armv6, armv7f, ppc.
762 2014-01-10 Yongjun Zhang <yongjun_zhang@apple.com>
764 Clear unparented tiled layers on memory pressure.
765 https://bugs.webkit.org/show_bug.cgi?id=126737
767 Reviewed by Simon Fraser.
769 * WebView/WebView.mm:
770 (+[WebView _handleMemoryWarning]): Clear all unparented tiles when under memory pressure.
772 2014-01-10 Daniel Bates <dabates@apple.com>
774 Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
775 (https://bugs.webkit.org/show_bug.cgi?id=126698)
777 Tell Xcode that the supported platforms for all WebCore targets are iOS and OS X.
779 * Configurations/Base.xcconfig:
781 2014-01-09 Andy Estes <aestes@apple.com>
783 [iOS] Upstream iOS changes to MigrateHeaders.make
784 https://bugs.webkit.org/show_bug.cgi?id=126731
786 Reviewed by David Kilzer.
788 * MigrateHeaders.make: Migrate iOS-specific headers when building for iOS.
790 2014-01-10 Daniel Bates <dabates@apple.com>
792 [iOS] Upstream WebCore and Tools miscellaneous changes
793 https://bugs.webkit.org/show_bug.cgi?id=126698
795 Reviewed by David Kilzer.
797 * MigrateHeaders.make:
799 2014-01-08 Anders Carlsson <andersca@apple.com>
801 Add WTF::StringView and use it for grammar checking
802 https://bugs.webkit.org/show_bug.cgi?id=126644
804 Reviewed by Antti Koivisto.
806 * WebCoreSupport/WebEditorClient.h:
807 * WebCoreSupport/WebEditorClient.mm:
808 (WebEditorClient::checkTextOfParagraph):
809 Update to match the new signature.
811 (nsStringWithoutCopying):
812 New function that creates an NSString that references StringView data
813 without copying the data. (If this function proves to be useful elsewhere, it could
814 potentially be added to StringView).
816 2014-01-02 Andy Estes <aestes@apple.com>
818 [iOS] Clean up some exported headers
819 https://bugs.webkit.org/show_bug.cgi?id=126403
821 Reviewed by Simon Fraser.
823 Public header files that are completely excluded on iOS don't need
824 !TARGET_OS_IPHONE guards since they are already listed in
825 EXCLUDED_SOURCE_FILE_NAMES.
827 I also took the opportunity to sort EXCLUDED_SOURCE_FILE_NAMES and to
828 clean up some #imports.
830 * Configurations/WebKit.xcconfig:
832 * Misc/WebIconDatabasePrivate.h:
833 * Misc/WebLocalizableStrings.h:
834 * Misc/WebNSEventExtras.h:
835 * Misc/WebNSPasteboardExtras.h:
836 * Misc/WebNSWindowExtras.h:
837 * Panels/WebPanelAuthenticationHandler.h:
838 * Plugins/WebPluginsPrivate.h:
839 * Storage/WebDatabaseManagerPrivate.h:
840 * WebCoreSupport/WebJavaScriptTextInputPanel.h:
841 * WebCoreSupport/WebKeyGenerator.h:
842 * WebCoreSupport/WebSecurityOriginPrivate.h:
843 * WebView/WebDashboardRegion.h:
844 * WebView/WebDynamicScrollBarsView.h:
845 * WebView/WebFrameView.h:
846 * WebView/WebPreferenceKeysPrivate.h:
847 * WebView/WebResourceLoadDelegatePrivate.h:
850 2014-01-07 Seokju Kwon <seokju@webkit.org>
852 Web Inspector: Remove leftover 'device metrics' code
853 https://bugs.webkit.org/show_bug.cgi?id=126607
855 Reviewed by Joseph Pecoraro.
857 * WebKit.order: Update after removing InspectorClient::overrideDeviceMetrics().
859 2014-01-02 Andy Estes <aestes@apple.com>
861 [iOS] Upstream WebKit support for various features
862 https://bugs.webkit.org/show_bug.cgi?id=126413
864 Reviewed by Sam Weinig.
866 Upstream iOS WebKit changes needed for these features:
868 - ENABLE(DELETION_UI)
869 - ENABLE(TOUCH_EVENTS)
872 - ENABLE(DISK_IMAGE_CACHE)
873 - ENABLE(IOS_TEXT_AUTOSIZING)
874 - ENABLE(ICONDATABASE)
875 - ENABLE(DASHBOARD_SUPPORT)
877 * DefaultDelegates/WebDefaultEditingDelegate.m:
879 * WebCoreSupport/WebChromeClient.h:
880 * WebView/WebDataSource.mm:
881 (-[WebDataSource dealloc]):
882 * WebView/WebEditingDelegatePrivate.h:
883 * WebView/WebFrame.mm:
884 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
885 * WebView/WebHTMLView.mm:
886 (-[WebHTMLView maintainsInactiveSelection]):
887 (-[WebHTMLView touch:]):
888 * WebView/WebPreferences.mm:
889 (+[WebPreferences initialize]):
890 * WebView/WebPreferencesPrivate.h:
891 * WebView/WebView.mm:
892 (-[WebView _preferencesChanged:]):
893 (-[WebView _cacheFrameLoadDelegateImplementations]):
894 (-[WebView quickLookContentForURL:]):
895 (-[WebView _touchEventRegions]):
896 * WebView/WebViewPrivate.h:
898 2014-01-02 Andy Estes <aestes@apple.com>
900 [iOS] Upstream a bug fix for plugin-backed media elements
901 https://bugs.webkit.org/show_bug.cgi?id=126412
903 Reviewed by Eric Carlson.
905 Media elements backed by plug-ins should outlive being removed from the
906 document, like their native counterparts do.
908 * Plugins/WebPluginController.h:
909 * Plugins/WebPluginController.mm:
910 (-[NSView isMediaPlugInProxyView]):
911 (-[NSView setIsMediaPlugInProxyView:]):
912 (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
913 (-[WebPluginController mediaPlugInProxyViewCreated:]):
914 (-[WebPluginController destroyPlugin:]):
915 * WebCoreSupport/WebFrameLoaderClient.mm:
918 2014-01-07 Mark Rowe <mrowe@apple.com>
920 <https://webkit.org/b/126562> DOMProgressEvent has unspecified availability
922 Reviewed by Ryosuke Niwa.
924 * MigrateHeaders.make: Ensure that public DOM headers do not have unspecified availability.
926 2014-01-06 Mark Rowe <mrowe@apple.com>
928 Mountain Lion build fix after r161332.
930 * Carbon/HIWebView.h: Mountain Lion's version of CF_AVAILABLE_MAC doesn't accept a message
931 argument so remove it.
933 2014-01-06 Mark Rowe <mrowe@apple.com>
935 <https://webkit.org/b/126499> Move WebKit off the legacy WebKit availability macros
937 The legacy WebKit availability macros are verbose, confusing, and provide no benefit
938 over using the system availability macros directly. The original vision was that
939 they'd serve a cross-platform purpose but that never came to be.
941 Since WebKit1 is API on OS X but SPI on iOS, some indirection is still needed in the
942 availability macros to allow the headers to advertise the API as unavailable on OS X
943 without interfering with the ability to build on iOS. This is achieved by defining
944 WEBKIT-prefixed versions of the Foundation availability macros that are defined to
945 their NS-prefixed equivalents. The installed headers are post-processed to map these
946 macros back to their Foundation equivalents.
948 Part of <rdar://problem/15512304>.
950 The OS X version used in the new availability macros is based on the mapping in
951 JavaScriptCore/WebKitAvailability.h.
953 Reviewed by Sam Weinig.
955 * Carbon/CarbonUtils.h:
956 * Carbon/HIWebView.h:
957 * MigrateHeaders.make: Migrate WebKitAvailability.h from WebCore as an API header.
958 * Plugins/WebPlugin.h:
959 * Plugins/WebPluginViewFactory.h:
960 * WebView/WebFrameLoadDelegate.h:
961 * WebView/WebResourceLoadDelegatePrivate.h:
962 * WebView/WebUIDelegate.h:
963 * postprocess-headers.sh: Added. Extracted from the Xcode project. Extended to map the
964 WEBKIT-prefixed macros to their NS-prefixed equivalents on OS X and to remove them on iOS.
966 2014-01-04 Zan Dobersek <zdobersek@igalia.com>
968 Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
969 https://bugs.webkit.org/show_bug.cgi?id=126439
971 Reviewed by Andreas Kling.
973 Instead of relying on std::pair and std::make_pair symbols being present in the current scope
974 through the pair and make_pair symbols, the std:: specifier should be used explicitly.
976 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
977 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
978 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
979 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
980 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
981 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
983 2014-01-02 Gavin Barraclough <barraclough@apple.com>
985 Remove WindowIsVisible
986 https://bugs.webkit.org/show_bug.cgi?id=126270
988 Reviewed by Tim Horton.
990 We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
991 The latter detects that the content is hidden in fewer cases than the former, and as such, the
992 former is always preferable.
994 This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
995 Plugin::windowVisibilityChanged.
997 * WebView/WebView.mm:
998 (-[WebView _windowWillOrderOnScreen:]):
999 (-[WebView _windowWillOrderOffScreen:]):
1000 - rename ContainingWindowIsVisible -> ContentIsVisible.
1002 2014-01-02 Gavin Barraclough <barraclough@apple.com>
1004 Merge didMoveOnscreen / page visibility to isVisible
1005 https://bugs.webkit.org/show_bug.cgi?id=126268
1007 Reviewed by Tim Horton.
1009 The onscreen state most closely tracks view visibility (though currently
1010 also tracks a mix of in-window state). Make more consistent, simplify,
1011 and move all animation suspension logic to Page, so it can be controlled
1012 by the PageThrottler.
1014 * WebView/WebView.mm:
1015 (-[WebView _commonInitializationWithFrameName:groupName:]):
1016 (-[WebView _updateVisibilityState]):
1017 - _setVisibilityState:isInitialState: -> _setIsVisibile:isInitialState:.
1018 (-[WebView _setIsVisible:isInitialState:]):
1020 (-[WebView _setVisibilityState:isInitialState:]):
1021 - setVisibilityState -> setIsVisible/setIsPrerender.
1022 (-[WebView viewWillMoveToWindow:]):
1023 (-[WebView viewDidMoveToWindow]):
1024 - remove redundant calls to willMoveOffscreen/didMoveOnscreen
1025 (this is handled by _updateVisibilityState).
1027 2013-12-23 Oliver Hunt <oliver@apple.com>
1029 Refactor PutPropertySlot to be aware of custom properties
1030 https://bugs.webkit.org/show_bug.cgi?id=126187
1032 Reviewed by Antti Koivisto.
1034 Update for new method signatures.
1036 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1037 (WebKit::NetscapePluginInstanceProxy::setProperty):
1039 2013-12-31 Andy Estes <aestes@apple.com>
1041 [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
1042 https://bugs.webkit.org/show_bug.cgi?id=125746
1044 Reviewed by David Kilzer.
1046 This is a straight upstreaming of the various PLATFORM(IOS) changes
1047 made to Source/WebKit/ with the following modifications:
1049 - Includes of <Cocoa/Cocoa.h> were generally replaced with an include
1050 of <Foundation/Foundation.h> followed by an include of
1051 <AppKit/AppKit.h> on non-iOS platforms. This assumes that nobody was
1052 relying on <Cocoa/Cocoa.h>'s inclusion of <CoreData/CoreData.h>.
1054 - Includes of <Cocoa/Cocoa.h> and <Foundation/Foundation.h> were
1055 removed from files that include WebKitPrefix.h.
1057 - Instances of 'iPhone (OS)' in comments were replaced with 'iOS', and
1058 other sensitive terms were elided.
1060 - Various PLATFORM(IOS) blocks were simplified. For instance:
1077 * Configurations/Base.xcconfig:
1078 * Configurations/DebugRelease.xcconfig:
1079 * Configurations/Version.xcconfig:
1080 * Configurations/WebKit.xcconfig:
1081 * Configurations/iOS.xcconfig: Added.
1082 * DOM/WebDOMOperations.mm:
1083 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1084 * DefaultDelegates/WebDefaultEditingDelegate.m:
1085 * DefaultDelegates/WebDefaultPolicyDelegate.m:
1086 * DefaultDelegates/WebDefaultUIDelegate.h:
1087 * DefaultDelegates/WebDefaultUIDelegate.m:
1088 * History/WebBackForwardList.mm:
1089 * History/WebHistory.mm:
1090 * History/WebHistoryItem.mm:
1091 * History/WebURLsWithTitles.m:
1093 * Misc/WebDownload.mm:
1094 * Misc/WebElementDictionary.mm:
1095 * Misc/WebIconDatabase.mm:
1096 * Misc/WebIconDatabaseInternal.h:
1097 * Misc/WebKitNSStringExtras.mm:
1098 * Misc/WebKitSystemBits.m:
1099 * Misc/WebKitVersionChecks.h:
1100 * Misc/WebKitVersionChecks.m:
1101 * Misc/WebLocalizableStrings.mm:
1102 * Misc/WebNSArrayExtras.h:
1103 * Misc/WebNSArrayExtras.m:
1104 * Misc/WebNSControlExtras.h:
1105 * Misc/WebNSControlExtras.m:
1106 * Misc/WebNSDictionaryExtras.h:
1107 * Misc/WebNSDictionaryExtras.m:
1108 * Misc/WebNSEventExtras.m:
1109 * Misc/WebNSFileManagerExtras.mm:
1110 * Misc/WebNSImageExtras.h:
1111 * Misc/WebNSImageExtras.m:
1112 * Misc/WebNSPasteboardExtras.mm:
1113 * Misc/WebNSPrintOperationExtras.h:
1114 * Misc/WebNSPrintOperationExtras.m:
1115 * Misc/WebNSURLExtras.mm:
1116 * Misc/WebNSViewExtras.m:
1117 * Misc/WebNSWindowExtras.m:
1118 * Panels/WebAuthenticationPanel.h:
1119 * Panels/WebAuthenticationPanel.m:
1120 * Panels/WebPanelAuthenticationHandler.m:
1121 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1122 * Plugins/WebBasePluginPackage.h:
1123 * Plugins/WebBasePluginPackage.mm:
1124 * Plugins/WebJavaPlugIn.h:
1125 * Plugins/WebPluginContainerCheck.mm:
1126 * Plugins/WebPluginController.h:
1127 * Plugins/WebPluginController.mm:
1128 * Plugins/WebPluginDatabase.mm:
1129 * Plugins/WebPluginPackage.mm:
1130 * Plugins/WebPluginsPrivate.m:
1131 * Storage/WebDatabaseManager.mm:
1132 * Storage/WebDatabaseManagerClient.h:
1133 * Storage/WebDatabaseManagerClient.mm:
1134 * Storage/WebDatabaseManagerInternal.h: Added.
1135 * Storage/WebStorageManager.mm:
1136 * WebCoreSupport/CorrectionPanel.h:
1137 * WebCoreSupport/WebAlternativeTextClient.h:
1138 * WebCoreSupport/WebApplicationCache.mm:
1139 * WebCoreSupport/WebChromeClient.h:
1140 * WebCoreSupport/WebChromeClient.mm:
1141 * WebCoreSupport/WebContextMenuClient.mm:
1142 * WebCoreSupport/WebEditorClient.h:
1143 * WebCoreSupport/WebEditorClient.mm:
1144 * WebCoreSupport/WebFrameLoaderClient.h:
1145 * WebCoreSupport/WebFrameLoaderClient.mm:
1146 * WebCoreSupport/WebFrameNetworkingContext.h:
1147 * WebCoreSupport/WebFrameNetworkingContext.mm:
1148 * WebCoreSupport/WebGeolocationClient.h:
1149 * WebCoreSupport/WebGeolocationClient.mm:
1150 * WebCoreSupport/WebJavaScriptTextInputPanel.m:
1151 * WebCoreSupport/WebKeyGenerator.mm:
1152 * WebCoreSupport/WebNotificationClient.mm:
1153 * WebCoreSupport/WebOpenPanelResultListener.mm:
1154 * WebCoreSupport/WebSecurityOrigin.mm:
1155 * WebCoreSupport/WebSystemInterface.mm:
1157 * WebView/WebArchive.mm:
1158 * WebView/WebClipView.h:
1159 * WebView/WebDataSource.mm:
1160 * WebView/WebDelegateImplementationCaching.h:
1161 * WebView/WebDelegateImplementationCaching.mm:
1162 * WebView/WebDeviceOrientation.mm:
1163 * WebView/WebDocumentInternal.h:
1164 * WebView/WebDocumentLoaderMac.mm:
1165 * WebView/WebDynamicScrollBarsViewInternal.h:
1166 * WebView/WebFormDelegate.m:
1167 * WebView/WebFrame.mm:
1168 * WebView/WebFrameInternal.h:
1169 * WebView/WebFrameView.mm:
1170 * WebView/WebFullScreenController.h:
1171 * WebView/WebFullScreenController.mm:
1172 * WebView/WebHTMLRepresentation.mm:
1173 * WebView/WebHTMLView.mm:
1174 * WebView/WebHTMLViewInternal.h:
1175 * WebView/WebPDFDocumentExtras.h:
1176 * WebView/WebPDFDocumentExtras.mm:
1177 * WebView/WebPDFRepresentation.h:
1178 * WebView/WebPDFRepresentation.mm:
1179 * WebView/WebPDFView.h:
1180 * WebView/WebPDFView.mm:
1181 * WebView/WebPreferences.mm:
1182 * WebView/WebResource.mm:
1183 * WebView/WebTextCompletionController.h:
1184 * WebView/WebTextIterator.mm:
1185 * WebView/WebView.mm:
1186 * WebView/WebViewData.h:
1187 * WebView/WebViewData.mm:
1188 * WebView/WebViewInternal.h:
1190 2013-12-25 Commit Queue <commit-queue@webkit.org>
1192 Unreviewed, rolling out r161033 and r161074.
1193 http://trac.webkit.org/changeset/161033
1194 http://trac.webkit.org/changeset/161074
1195 https://bugs.webkit.org/show_bug.cgi?id=126240
1197 Oliver says that a rollout would be better (Requested by ap on
1200 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1201 (WebKit::NetscapePluginInstanceProxy::setProperty):
1203 2013-12-23 Oliver Hunt <oliver@apple.com>
1205 Refactor PutPropertySlot to be aware of custom properties
1206 https://bugs.webkit.org/show_bug.cgi?id=126187
1208 Reviewed by msaboff.
1210 Update for new method signatures.
1212 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1213 (WebKit::NetscapePluginInstanceProxy::setProperty):
1215 2013-12-23 Lucas Forschler <lforschler@apple.com>
1217 <rdar://problem/15682948> Update copyright strings
1219 Reviewed by Dan Bernstein.
1223 2013-12-19 Andy Estes <aestes@apple.com>
1225 Remove WebFilterEvaluator wrappers from WebKitSystemInterface
1226 https://bugs.webkit.org/show_bug.cgi?id=126028
1228 Reviewed by Anders Carlsson.
1230 * WebCoreSupport/WebSystemInterface.mm:
1231 (InitWebCoreSystemInterface): Don't INIT() removed function pointers.
1233 2013-12-17 Gavin Barraclough <barraclough@apple.com>
1235 Remove PageVisibilityStateUnloaded
1236 https://bugs.webkit.org/show_bug.cgi?id=125869
1238 Reviewed by Anders Carlsson.
1240 This is not currently supported by WebKit, remove this enum value.
1241 We can always add this back later if/when we add support for this state.
1243 * WebView/WebView.mm:
1246 * WebView/WebViewPrivate.h:
1247 - removed PageVisibilityStateUnloaded/WebPageVisibilityStateUnloade
1249 2013-12-14 Andy Estes <aestes@apple.com>
1251 [iOS] Upstream changes to WebKit Public and Private headers
1252 https://bugs.webkit.org/show_bug.cgi?id=125745
1254 Reviewed by Dan Bernstein.
1256 * Configurations/WebKit.xcconfig: Ignore headers that are completely
1257 excluded on iOS. This prevents empty headers from being installed into
1259 * DOM/WebDOMOperationsPrivate.h: Upstream iOS changes.
1260 * History/WebBackForwardListPrivate.h: Ditto.
1261 * History/WebHistoryItem.h: Ditto.
1262 * History/WebHistoryItemPrivate.h: Ditto.
1263 * Misc/WebCache.h: Ditto.
1264 * Misc/WebIconDatabase.h: Ditto.
1265 * Misc/WebIconDatabasePrivate.h: Ditto.
1266 * Misc/WebKitNSStringExtras.h: Ditto.
1267 * Misc/WebLocalizableStrings.h: Ditto.
1268 * Misc/WebNSEventExtras.h: Ditto.
1269 * Misc/WebNSFileManagerExtras.h: Ditto.
1270 * Misc/WebNSPasteboardExtras.h: Ditto.
1271 * Misc/WebNSURLExtras.h: Ditto.
1272 * Misc/WebNSViewExtras.h: Ditto.
1273 * Misc/WebNSWindowExtras.h: Ditto.
1274 * Panels/WebPanelAuthenticationHandler.h: Ditto.
1275 * Plugins/WebPlugin.h: Ditto.
1276 * Plugins/WebPluginContainer.h: Ditto.
1277 * Plugins/WebPluginContainerPrivate.h: Ditto.
1278 * Plugins/WebPluginDatabase.h: Ditto.
1279 * Plugins/WebPluginPrivate.h: Ditto.
1280 * Plugins/WebPluginViewFactory.h: Ditto.
1281 * Plugins/WebPluginsPrivate.h: Ditto.
1282 * Storage/WebDatabaseManagerPrivate.h: Ditto.
1283 * WebCoreSupport/WebApplicationCache.h: Ditto.
1284 * WebCoreSupport/WebJavaScriptTextInputPanel.h: Ditto.
1285 * WebCoreSupport/WebKeyGenerator.h: Ditto.
1286 * WebCoreSupport/WebSecurityOriginPrivate.h: Ditto.
1287 * WebView/WebDashboardRegion.h: Ditto.
1288 * WebView/WebDataSource.h: Ditto.
1289 * WebView/WebDataSourcePrivate.h: Ditto.
1290 * WebView/WebDocument.h: Ditto.
1291 * WebView/WebDocumentPrivate.h: Ditto.
1292 * WebView/WebDynamicScrollBarsView.h: Ditto.
1293 * WebView/WebEditingDelegate.h: Ditto.
1294 * WebView/WebEditingDelegatePrivate.h: Ditto.
1295 * WebView/WebFormDelegate.h: Ditto.
1296 * WebView/WebFrameLoadDelegate.h: Ditto.
1297 * WebView/WebFramePrivate.h: Ditto.
1298 * WebView/WebFrameView.h: Ditto.
1299 * WebView/WebFrameViewPrivate.h: Ditto.
1300 * WebView/WebHTMLRepresentation.h: Ditto.
1301 * WebView/WebHTMLView.h: Ditto.
1302 * WebView/WebHTMLViewPrivate.h: Ditto.
1303 * WebView/WebPolicyDelegate.h: Ditto.
1304 * WebView/WebPreferenceKeysPrivate.h: Ditto.
1305 * WebView/WebPreferences.h: Ditto.
1306 * WebView/WebPreferencesPrivate.h: Ditto.
1307 * WebView/WebRenderLayer.h: Ditto.
1308 * WebView/WebResourceLoadDelegatePrivate.h: Ditto.
1309 * WebView/WebResourcePrivate.h: Ditto.
1310 * WebView/WebUIDelegate.h: Ditto.
1311 * WebView/WebUIDelegatePrivate.h: Ditto.
1312 * WebView/WebView.h: Ditto.
1313 * WebView/WebViewPrivate.h: Ditto.
1315 2013-12-15 Andy Estes <aestes@apple.com>
1317 [iOS] Upstream changes to FeatureDefines.xcconfig
1318 https://bugs.webkit.org/show_bug.cgi?id=125742
1320 Reviewed by Dan Bernstein.
1322 * Configurations/FeatureDefines.xcconfig:
1324 2013-12-14 Andy Estes <aestes@apple.com>
1326 Unify FeatureDefines.xcconfig
1327 https://bugs.webkit.org/show_bug.cgi?id=125741
1329 Rubber-stamped by Dan Bernstein.
1331 * Configurations/FeatureDefines.xcconfig: Remove a stray space in
1334 2013-12-11 Joseph Pecoraro <pecoraro@apple.com>
1336 Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore
1337 https://bugs.webkit.org/show_bug.cgi?id=125324
1339 Reviewed by Timothy Hatcher.
1341 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1342 * WebCoreSupport/WebInspectorClient.mm:
1343 * WebView/WebFrame.mm:
1344 * WebView/WebView.mm:
1346 2013-12-03 Mark Rowe <mrowe@apple.com>
1348 <https://webkit.org/b/125139> Modernize the WebKit API headers
1349 <rdar://problem/15540175>
1351 This consists of three main changes:
1352 1) Converting the return type of initializer methods to instancetype.
1353 2) Declaring properties rather than getters and setters.
1354 3) Declaring explicitly sized enums.
1356 Changing the declarations from getters and setters to properties also required
1357 updating the headerdoc in a number of places.
1359 Reviewed by Anders Carlsson.
1361 * DOM/WebDOMOperations.h:
1362 * History/WebBackForwardList.h:
1363 * History/WebHistory.h:
1364 * History/WebHistoryItem.h:
1365 * History/WebHistoryItem.mm:
1366 * Plugins/WebPlugin.h:
1367 * Plugins/WebPluginContainer.h:
1368 * WebView/WebArchive.h:
1369 * WebView/WebArchive.mm:
1370 * WebView/WebDataSource.h:
1371 * WebView/WebDataSource.mm:
1372 * WebView/WebEditingDelegate.h:
1373 * WebView/WebFrame.h:
1374 * WebView/WebFrame.mm:
1375 * WebView/WebFrameView.h:
1376 * WebView/WebPolicyDelegate.h:
1377 * WebView/WebPreferences.h:
1378 * WebView/WebPreferences.mm:
1379 (-[WebPreferences cacheModel]): Cast to the enum.
1380 * WebView/WebResource.h:
1381 * WebView/WebResource.mm:
1382 * WebView/WebUIDelegate.h:
1383 * WebView/WebView.h:
1384 * WebView/WebView.mm:
1385 (+[WebView _didSetCacheModel]): Fix the return type.
1387 2013-12-10 Mark Rowe <mrowe@apple.com>
1389 <http://webkit.org/b/125556> WebKit doesn't deal with longer bundle versions correctly
1390 <rdar://problem/15634192>
1392 Reviewed by Dan Bernstein.
1394 * WebView/WebView.mm:
1395 (createUserVisibleWebKitVersionString): Strip as many leading digits as is necessary to
1396 bring the major component of the version down to 3 digits.
1398 2013-12-09 Sam Weinig <sam@webkit.org>
1400 Fix the build of projects including <WebKit/WebUIDelegatePrivate.h>
1402 Rubber-stamped by Dan Bernstein.
1404 * WebView/WebAllowDenyPolicyListener.h:
1405 Use TARGET_OS_IPHONE rather than PLATFORM(IOS) in an exposed header.
1407 2013-12-05 Jer Noble <jer.noble@apple.com>
1409 [MSE] Add a runtime-setting for the MediaSource constructor.
1410 https://bugs.webkit.org/show_bug.cgi?id=125336
1412 Reviewed by Eric Carlson.
1414 Add a private WebPreference which controls the WebCore mediaSourceEnabled setting.
1416 * WebView/WebPreferenceKeysPrivate.h:
1417 * WebView/WebPreferences.mm:
1418 (+[WebPreferences initialize]):
1419 (-[WebPreferences mediaSourceEnabled]):
1420 (-[WebPreferences setMediaSourceEnabled:]):
1421 * WebView/WebPreferencesPrivate.h:
1422 * WebView/WebView.mm:
1423 (-[WebView _preferencesChanged:]):
1425 2013-12-05 Mark Lam <mark.lam@apple.com>
1427 C Loop LLINT layout test regressions.
1428 https://bugs.webkit.org/show_bug.cgi?id=125314.
1430 Reviewed by Geoffrey Garen.
1432 The regression was due to the ENABLE_LLINT_C_LOOP flag not being included
1433 in the build of the WebKit and WebKit2 components. As a result, some fields
1434 in JSC::VM were ifdef'ed out in WebCore and JSC, but not in WebKit and
1435 WebKit2. This resulted in VM::m_initializingObjectClass having 2 different
1436 offsets depending on whether it is accessed from WebCore and JSC or from
1437 WebKit and WebKit2, and chaos ensued.
1439 This issue will manifest when we pass --cloop to build-webkit.
1440 The fix is simply to add ENABLE_LLINT_C_LOOP to FEATURE_DEFINES for WebKit
1443 * Configurations/FeatureDefines.xcconfig:
1445 2013-12-04 Brian J. Burg <burg@cs.washington.edu>
1447 Consolidate various frame snapshot capabilities.
1448 https://bugs.webkit.org/show_bug.cgi?id=124325
1450 Reviewed by Darin Adler.
1452 Use new platform-independent methods instead of Mac methods.
1454 * WebView/WebHTMLView.mm:
1455 (-[WebHTMLView _selectionDraggingImage]):
1456 (-[WebHTMLView selectionImageForcingBlackText:]):
1458 2013-12-04 Andy Estes <aestes@apple.com>
1460 [iOS] Build projects with $(ARCHS_STANDARD_32_64_BIT)
1461 https://bugs.webkit.org/show_bug.cgi?id=125236
1463 Reviewed by Sam Weinig.
1465 $(ARCHS_STANDARD_32_64_BIT) is what we want for both device and simulator builds.
1467 * Configurations/DebugRelease.xcconfig:
1469 2013-12-03 Joseph Pecoraro <pecoraro@apple.com>
1471 Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
1472 https://bugs.webkit.org/show_bug.cgi?id=124613
1474 Reviewed by Timothy Hatcher.
1476 Remove the old ENABLE(REMOTE_INSPECTOR) connection management implementation.
1478 * WebCoreSupport/WebInspectorClient.h:
1479 * WebCoreSupport/WebInspectorClient.mm:
1480 (WebInspectorClient::indicate):
1481 (WebInspectorClient::hideIndicate):
1482 Hook up WebView indication through this new path.
1484 * WebCoreSupport/WebFrameLoaderClient.mm:
1485 (WebFrameLoaderClient::dispatchDidReceiveTitle):
1486 * WebCoreSupport/WebInspectorClient.h:
1487 * WebCoreSupport/WebInspectorClient.mm:
1488 (WebInspectorClient::WebInspectorClient):
1489 (WebInspectorClient::inspectorDestroyed):
1490 * WebInspector/remote/WebInspectorClientRegistry.h: Removed.
1491 * WebInspector/remote/WebInspectorClientRegistry.mm: Removed.
1492 * WebInspector/remote/WebInspectorRelayDefinitions.h: Removed.
1493 * WebInspector/remote/WebInspectorRemoteChannel.h: Removed.
1494 * WebInspector/remote/WebInspectorRemoteChannel.mm: Removed.
1495 * WebInspector/remote/WebInspectorServer.h: Removed.
1496 * WebInspector/remote/WebInspectorServer.mm: Removed.
1497 * WebInspector/remote/WebInspectorServerWebViewConnection.h: Removed.
1498 * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Removed.
1499 * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Removed.
1500 * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Removed.
1501 * WebInspector/remote/WebInspectorXPCWrapper.h: Removed.
1502 * WebInspector/remote/WebInspectorXPCWrapper.m: Removed.
1504 * WebView/WebView.mm:
1505 (-[WebView _commonInitializationWithFrameName:groupName:]):
1506 (+[WebView _enableRemoteInspector]):
1507 (+[WebView _disableRemoteInspector]):
1508 (+[WebView _disableAutoStartRemoteInspector]):
1509 (+[WebView _isRemoteInspectorEnabled]):
1510 (+[WebView _hasRemoteInspectorSession]):
1511 (-[WebView allowsRemoteInspection]):
1512 (-[WebView setAllowsRemoteInspection:]):
1513 (-[WebView setIndicatingForRemoteInspector:]):
1514 (-[WebView setHostApplicationBundleId:name:]):
1515 (-[WebView _didCommitLoadForFrame:]):
1516 * WebView/WebViewData.h:
1517 * WebView/WebViewData.mm:
1518 (-[WebViewPrivate init]):
1519 (-[WebViewPrivate dealloc]):
1520 * WebView/WebViewInternal.h:
1521 * WebView/WebViewPrivate.h:
1522 Remove old REMOTE_INSPECTOR.
1524 2013-12-02 Chris Fleizach <cfleizach@apple.com>
1526 AX: Crash in accessibilityRoot when Document goes away
1527 https://bugs.webkit.org/show_bug.cgi?id=125113
1529 Reviewed by Tim Horton.
1531 The AXObjectCache can sometimes be null if the render tree has been detached from the document.
1533 * WebView/WebFrame.mm:
1534 (-[WebFrame accessibilityRoot]):
1536 2013-11-28 Antti Koivisto <antti@apple.com>
1538 Remove feature: CSS variables
1539 https://bugs.webkit.org/show_bug.cgi?id=114119
1541 Reviewed by Andreas Kling.
1543 * Configurations/FeatureDefines.xcconfig:
1545 2013-11-27 Sam Weinig <sam@webkit.org>
1549 * WebView/WebAllowDenyPolicyListener.h: Added.
1550 * WebView/WebUIDelegatePrivate.h:
1551 Move the WebAllowDenyPolicyListener protocol to its own file.
1553 2013-11-21 Mark Rowe <mrowe@apple.com>
1555 <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
1557 All modern versions of Xcode set it appropriately for our needs.
1559 Reviewed by Alexey Proskuryakov.
1561 * Configurations/Base.xcconfig:
1563 2013-11-21 Mark Rowe <mrowe@apple.com>
1565 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
1567 Reviewed by Alexey Proskuryakov.
1569 * Configurations/Base.xcconfig:
1571 2013-11-21 Mark Rowe <mrowe@apple.com>
1573 <https://webkit.org/b/124700> Fix some deprecation warnings.
1575 Reviewed by Anders Carlsson.
1577 * Plugins/WebNetscapePluginStream.mm:
1578 (WebNetscapePluginStream::startStream): Move off a deprecated NSData method.
1579 * WebView/WebDataSource.mm:
1580 (-[WebDataSource _fileWrapperForURL:]): Move off a deprecated NSFileWrapper method.
1581 * WebView/WebHTMLView.mm:
1582 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
1584 2013-11-20 Mark Lam <mark.lam@apple.com>
1586 Introducing VMEntryScope to update the VM stack limit.
1587 https://bugs.webkit.org/show_bug.cgi?id=124634.
1589 Reviewed by Geoffrey Garen.
1591 * WebView/WebScriptDebugger.mm:
1592 (WebScriptDebugger::sourceParsed):
1594 2013-11-19 Ryosuke Niwa <rniwa@webkit.org>
1596 Enable HTMLTemplateElement on Mac port
1597 https://bugs.webkit.org/show_bug.cgi?id=124637
1599 Reviewed by Tim Horton.
1601 * Configurations/FeatureDefines.xcconfig:
1603 2013-11-18 Commit Queue <commit-queue@webkit.org>
1605 Unreviewed, rolling out r159455.
1606 http://trac.webkit.org/changeset/159455
1607 https://bugs.webkit.org/show_bug.cgi?id=124568
1609 broke two api tests (see bug 124564) (Requested by thorton on
1612 * WebView/WebHTMLView.mm:
1613 (-[WebHTMLView _selectionDraggingImage]):
1614 (-[WebHTMLView selectionImageForcingBlackText:]):
1616 2013-11-18 Mark Rowe <mrowe@apple.com>
1618 Disable deprecation warnings related to NSCalendarDate in WebHistory.
1620 Reviewed by Anders Carlsson.
1622 * History/WebHistory.h: Use a #pragma to have the compiler treat this header as
1623 a system header, even when not included from a system location. This has the effect
1624 of suppressing warnings when including this header. It's a more general effect than
1625 we're after but is also less invasive than disabling deprecation warnings around
1626 the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
1628 * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
1630 2013-11-18 David Hyatt <hyatt@apple.com>
1632 Add a quirk to not respect center text-align when positioning
1634 <rdar://problem/15427571>
1635 https://bugs.webkit.org/show_bug.cgi?id=124522
1637 Reviewed by Simon Fraser.
1639 Added fast/block/legacy-text-align-position-quirk.html
1641 * WebView/WebPreferenceKeysPrivate.h:
1642 * WebView/WebPreferences.mm:
1643 (+[WebPreferences initialize]):
1644 (-[WebPreferences useLegacyTextAlignPositionedElementBehavior]):
1645 (-[WebPreferences setUseLegacyTextAlignPositionedElementBehavior:]):
1646 * WebView/WebPreferencesPrivate.h:
1647 * WebView/WebView.mm:
1648 (-[WebView _preferencesChanged:]):
1650 2013-11-18 Brian J. Burg <burg@cs.washington.edu>
1652 Consolidate various frame snapshot capabilities.
1653 https://bugs.webkit.org/show_bug.cgi?id=124325
1655 Reviewed by Timothy Hatcher.
1657 Use new platform-independent methods instead of Mac methods.
1659 * WebView/WebHTMLView.mm:
1660 (-[WebHTMLView _selectionDraggingImage]):
1661 (-[WebHTMLView selectionImageForcingBlackText:]):
1663 2013-11-18 Anders Carlsson <andersca@apple.com>
1665 Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
1666 https://bugs.webkit.org/show_bug.cgi?id=124523
1668 Reviewed by Dan Bernstein.
1670 * Plugins/Hosted/NetscapePluginHostManager.mm:
1671 (WebKit::NetscapePluginHostManager::spawnPluginHost):
1672 (WebKit::NetscapePluginHostManager::didCreateWindow):
1673 * Plugins/Hosted/NetscapePluginHostProxy.mm:
1674 (WebKit::NetscapePluginHostProxy::makeCurrentProcessFrontProcess):
1675 (WebKit::NetscapePluginHostProxy::makePluginHostProcessFrontProcess):
1676 (WebKit::NetscapePluginHostProxy::isPluginHostProcessFrontProcess):
1678 2013-11-18 Anders Carlsson <andersca@apple.com>
1680 Ignore deprecation warnings for now.
1682 * History/WebHistory.h:
1684 2013-11-14 Anders Carlsson <andersca@apple.com>
1686 Reimplement getDayBoundaries using NSCalendar on 10.9
1687 https://bugs.webkit.org/show_bug.cgi?id=124379
1689 Reviewed by Dan Bernstein.
1691 * History/WebHistory.mm:
1694 2013-11-14 Anders Carlsson <andersca@apple.com>
1696 Stop using deprecated NSPropertyListSerialization methods
1697 https://bugs.webkit.org/show_bug.cgi?id=124377
1699 Reviewed by Mark Rowe.
1701 * History/WebHistory.mm:
1702 (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1703 * Plugins/Hosted/NetscapePluginHostManager.mm:
1704 (WebKit::NetscapePluginHostManager::spawnPluginHost):
1705 (WebKit::NetscapePluginHostManager::instantiatePlugin):
1706 * Plugins/Hosted/NetscapePluginHostProxy.mm:
1707 (WKPCIdentifierInfo):
1708 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1709 (WebKit::NetscapePluginInstanceProxy::enumerate):
1710 (WebKit::NetscapePluginInstanceProxy::marshalValue):
1711 (WebKit::NetscapePluginInstanceProxy::marshalValues):
1712 (WebKit::NetscapePluginInstanceProxy::demarshalValue):
1713 (WebKit::NetscapePluginInstanceProxy::demarshalValues):
1714 * Plugins/Hosted/ProxyInstance.mm:
1715 (WebKit::ProxyInstance::getPropertyNames):
1717 2013-11-13 Joseph Pecoraro <pecoraro@apple.com>
1719 Unreviewed rollout of r159271, broke Mountain Lion build.
1721 * History/WebHistory.h:
1722 * History/WebHistory.mm:
1724 2013-11-13 Anders Carlsson <andersca@apple.com>
1726 Deprecate WebHistory methods that use NSCalendarDate
1727 https://bugs.webkit.org/show_bug.cgi?id=124329
1728 <rdar://problem/15441122>
1730 Reviewed by Mark Rowe.
1732 * History/WebHistory.h:
1733 Add NS_DEPRECATED_MAC to orderedLastVisitedDays and orderedItemsLastVisitedOnDay:.
1734 In order to not break the Mountain Lion build, define __NSd_10_9 if necessary.
1736 * History/WebHistory.mm:
1737 Ignore deprecation warnings in methods where NSCalendarDate is used.
1739 2013-11-13 Gordon Sheridan <gordon_sheridan@apple.com>
1741 Removed deprecated download delegates.
1742 https://bugs.webkit.org/show_bug.cgi?id=124309
1743 <rdar://problem/13570414>
1745 Reviewed by Anders Carlsson.
1747 * Misc/WebDownload.mm:
1748 (-[WebDownloadInternal respondsToSelector:]):
1749 Removed download:shouldBeginChildDownloadOfSource:delegate and
1750 download:didBeginChildDownload.
1752 2013-11-12 Alexey Proskuryakov <ap@apple.com>
1754 Disable WebCrypto on Mountain Lion
1755 https://bugs.webkit.org/show_bug.cgi?id=124261
1757 Rubber-stamped by Sam Weinig.
1759 * Configurations/FeatureDefines.xcconfig:
1761 2013-11-12 Andy Estes <aestes@apple.com>
1763 [Mac] Fix some deprecation warnings
1764 https://bugs.webkit.org/show_bug.cgi?id=124252
1766 Reviewed by Mark Rowe.
1768 * Plugins/WebBasePluginPackage.mm:
1769 (-[WebBasePluginPackage pListForPath:createFile:]): Use +[NSPropertyListSerialization propertyListWithData:options:format:error:] instead of +[NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:].
1771 2013-11-12 Anders Carlsson <andersca@apple.com>
1773 Remove -[WebHistoryItem _lastVisitedDate]
1774 https://bugs.webkit.org/show_bug.cgi?id=124250
1776 Reviewed by Mark Rowe.
1778 This method is not called by anyone and NSCalendarDate is deprecated so get rid of it.
1780 * History/WebHistoryItem.mm:
1781 * History/WebHistoryItemPrivate.h:
1783 2013-11-11 Anders Carlsson <andersca@apple.com>
1785 FrameFilter can just be an std::function instead
1786 https://bugs.webkit.org/show_bug.cgi?id=124176
1788 Reviewed by Tim Horton.
1790 * DOM/WebDOMOperations.mm:
1791 (-[DOMNode webArchiveByFilteringSubframes:]):
1793 2013-11-11 Dan Bernstein <mitz@apple.com>
1795 [Mac] .exp files are not source code
1796 https://bugs.webkit.org/show_bug.cgi?id=124154
1798 Reviewed by Andy Estes.
1800 * Configurations/WebKit.xcconfig: Removed WebKit.iOS.exp from
1801 EXCLUDED_SOURCE_FILE_NAMES_macosx.
1803 2013-11-09 Patrick Gansterer <paroga@webkit.org>
1805 Move RunLoop from WebCore to WTF
1806 https://bugs.webkit.org/show_bug.cgi?id=116606
1808 Reviewed by Anders Carlsson.
1810 * Carbon/CarbonWindowAdapter.mm:
1811 (+[CarbonWindowAdapter initialize]):
1812 * History/WebBackForwardList.mm:
1813 (+[WebBackForwardList initialize]):
1814 * History/WebHistoryItem.mm:
1815 (+[WebHistoryItem initialize]):
1817 (+[WebCache initialize]):
1818 * Misc/WebElementDictionary.mm:
1819 (+[WebElementDictionary initialize]):
1820 * Misc/WebIconDatabase.mm:
1821 (+[WebIconDatabase initialize]):
1822 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1823 (+[WebHostedNetscapePluginView initialize]):
1824 * Plugins/WebBaseNetscapePluginView.mm:
1825 * Plugins/WebBasePluginPackage.mm:
1826 * Plugins/WebNetscapePluginView.mm:
1827 (+[WebNetscapePluginView initialize]):
1828 * WebCoreSupport/WebEditorClient.mm:
1829 (+[WebUndoStep initialize]):
1830 * WebCoreSupport/WebFrameLoaderClient.mm:
1831 * WebView/WebArchive.mm:
1832 (+[WebArchivePrivate initialize]):
1833 * WebView/WebDataSource.mm:
1834 (+[WebDataSource initialize]):
1835 * WebView/WebHTMLView.mm:
1836 (+[WebHTMLViewPrivate initialize]):
1837 (+[WebHTMLView initialize]):
1838 * WebView/WebPreferences.mm:
1839 (+[WebPreferences initialize]):
1840 * WebView/WebResource.mm:
1841 (+[WebResourcePrivate initialize]):
1842 * WebView/WebTextIterator.mm:
1843 (+[WebTextIteratorPrivate initialize]):
1844 * WebView/WebView.mm:
1845 (+[WebView initialize]):
1846 * WebView/WebViewData.mm:
1847 (+[WebViewPrivate initialize]):
1849 2013-11-08 Mark Lam <mark.lam@apple.com>
1851 Move breakpoint (and exception break) functionality into JSC::Debugger.
1852 https://bugs.webkit.org/show_bug.cgi?id=121796.
1854 Reviewed by Geoffrey Garen.
1856 * WebView/WebScriptDebugger.h:
1857 * WebView/WebScriptDebugger.mm:
1858 (WebScriptDebugger::WebScriptDebugger):
1859 (WebScriptDebugger::handlePause):
1861 2013-11-07 Joseph Pecoraro <pecoraro@apple.com>
1863 Remove a PLATFORM(IOS) from WebKit Private Header
1864 https://bugs.webkit.org/show_bug.cgi?id=124014
1866 Reviewed by Timothy Hatcher.
1868 Make the previously iOS only WebInspectorDidStartSearchingForNode
1869 and WebInspectorDidStopSearchingForNode notifications non iOS specific.
1871 * WebCoreSupport/WebInspectorClient.h:
1872 * WebCoreSupport/WebInspectorClient.mm:
1873 (WebInspectorClient::didSetSearchingForNode):
1874 * WebInspector/WebInspector.h:
1875 * WebInspector/WebInspector.mm:
1878 2013-11-07 Mark Lam <mark.lam@apple.com>
1880 Cosmetic: rename xxxId to xxxID for ScriptId, SourceId, and BreakpointId.
1881 https://bugs.webkit.org/show_bug.cgi?id=123945.
1883 Reviewed by Geoffrey Garen.
1885 * WebView/WebScriptDebugger.mm:
1886 (WebScriptDebugger::exception):
1888 2013-11-06 Daniel Bates <dabates@apple.com>
1890 [iOS] Upstream Letterpress effect
1891 https://bugs.webkit.org/show_bug.cgi?id=123932
1893 Reviewed by Sam Weinig.
1895 Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
1898 * Configurations/FeatureDefines.xcconfig:
1900 2013-11-04 Alexey Proskuryakov <ap@apple.com>
1902 DumpRenderTree should reset its preferences file on launch
1903 https://bugs.webkit.org/show_bug.cgi?id=29751
1905 Reviewed by Dan Bernstein.
1907 * WebView/WebView.mm:
1908 (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1909 Further fix reading of AppleKeyboardUIMode - reading it from kCFPreferencesAnyApplication
1910 domain meant that current application's domain was explcitly ignored, and the only
1911 way to override the setting in DRT was through argument domain.
1913 2013-11-01 Jer Noble <jer.noble@apple.com>
1915 [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
1916 https://bugs.webkit.org/show_bug.cgi?id=123621
1918 Reviewed by Eric Carlson.
1920 Add a new isVideoPluginProxyEnabled setting.
1922 * WebView/WebPreferenceKeysPrivate.h:
1923 * WebView/WebPreferences.mm:
1924 (+[WebPreferences initialize]): Set isVideoPluginProxyEnabled preference.
1925 (-[WebPreferences isVideoPluginProxyEnabled]): Pass through to Settings.
1926 * WebView/WebPreferencesPrivate.h:
1927 * WebView/WebView.mm:
1928 (-[WebView _preferencesChanged:]): Set isVideoPluginProxyEnabled preference.
1930 2013-11-01 Andy Estes <aestes@apple.com>
1932 [iOS] Make some headers Private
1933 https://bugs.webkit.org/show_bug.cgi?id=123626
1935 Reviewed by Andreas Kling.
1937 * Configurations/WebKit.xcconfig: Exclude iOS Private headers from the Mac build.
1939 2013-10-31 Alexey Proskuryakov <ap@apple.com>
1941 Enable WebCrypto on Mac
1942 https://bugs.webkit.org/show_bug.cgi?id=123587
1944 Reviewed by Anders Carlsson.
1946 * Configurations/FeatureDefines.xcconfig: Do it.
1948 2013-10-30 Ryosuke Niwa <rniwa@webkit.org>
1950 Remove code for Mac Lion
1951 https://bugs.webkit.org/show_bug.cgi?id=123542
1953 Reviewed by Anders Carlsson.
1955 * WebView/WebHTMLView.mm:
1956 (-[WebHTMLView attachRootLayer:]):
1957 * WebView/WebView.mm:
1959 2013-10-29 Andy Estes <aestes@apple.com>
1961 [iOS] Upstream Source/WebKit/ios/
1962 https://bugs.webkit.org/show_bug.cgi?id=123470
1964 Reviewed by Sam Weinig.
1966 * Configurations/WebKit.xcconfig: Excluded some iOS files from the Mac build.
1968 2013-10-29 Alexey Proskuryakov <ap@apple.com>
1970 Result of focus-option-control-on-page.html depends on system preferences
1971 https://bugs.webkit.org/show_bug.cgi?id=123304
1973 Reviewed by Simon Fraser.
1975 * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1976 Read the preference from its correct domain. This doesn't affect behavior in practice
1977 and isn't part of the fix, but it's a good opportunity to correct this code.
1979 2013-10-29 Jer Noble <jer.noble@apple.com>
1981 [MSE] [Mac] Enable MediaSource on the Mac
1982 https://bugs.webkit.org/show_bug.cgi?id=122484
1984 Reviewed by Darin Adler.
1986 Enable ENABLE_MEDIA_SOURCE.
1988 * Configurations/FeatureDefines.xcconfig:
1990 2013-10-28 Joseph Pecoraro <pecoraro@apple.com>
1992 Upstream remaining PLATFORM(IOS) and ENABLE(REMOTE_INSPECTOR) pieces
1993 https://bugs.webkit.org/show_bug.cgi?id=123411
1995 Reviewed by Timothy Hatcher.
1997 Upstream iOS node highlighting and view indication.
1999 * WebCoreSupport/WebInspectorClient.h:
2000 * WebInspector/WebInspector.h:
2001 * WebInspector/WebInspector.mm:
2002 * WebInspector/WebNodeHighlight.h:
2003 * WebInspector/WebNodeHighlight.mm:
2004 (-[WebHighlightLayer initWithHighlightView:webView:]):
2005 (-[WebHighlightLayer layoutSublayers]):
2006 (-[WebHighlightLayer actionForKey:]):
2007 (-[WebNodeHighlight initWithTargetView:inspectorController:]):
2008 (-[WebNodeHighlight dealloc]):
2009 (-[WebNodeHighlight attach]):
2010 * WebInspector/WebNodeHighlightView.h:
2011 * WebInspector/WebNodeHighlightView.mm:
2012 (-[WebNodeHighlightView initWithWebNodeHighlight:]):
2013 (-[WebNodeHighlightView dealloc]):
2014 (-[WebNodeHighlightView _attach:numLayers:]):
2015 (findIntersectionOnLineBetweenPoints):
2017 (layerPathWithHole):
2019 (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
2020 (-[WebNodeHighlightView _layoutForRectsHighlight:parent:]):
2021 (-[WebNodeHighlightView layoutSublayers:]):
2022 * WebInspector/WebNodeHighlighter.mm:
2023 (-[WebNodeHighlighter highlight]):
2024 * WebView/WebIndicateLayer.h: Added.
2025 * WebView/WebIndicateLayer.mm: Added.
2026 (-[WebIndicateLayer layoutSublayers]):
2027 (-[WebIndicateLayer actionForKey:]):
2028 * WebView/WebView.mm:
2029 (-[WebView setIndicatingForRemoteInspector:]):
2030 (-[WebView setHostApplicationBundleId:name:]):
2031 (-[WebView hostApplicationBundleId]):
2032 (-[WebView hostApplicationName]):
2033 * WebView/WebViewData.h:
2034 * WebView/WebViewData.mm:
2035 (-[WebViewPrivate dealloc]):
2037 2013-10-28 Myles C. Maxfield <mmaxfield@apple.com>
2039 Parsing support for -webkit-text-decoration-skip: ink
2040 https://bugs.webkit.org/show_bug.cgi?id=123358
2042 Reviewed by Dean Jackson.
2044 Adding ENABLE(CSS3_TEXT_DECORATION)
2046 * Configurations/FeatureDefines.xcconfig:
2048 2013-10-25 Joseph Pecoraro <pecoraro@apple.com>
2050 Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
2051 https://bugs.webkit.org/show_bug.cgi?id=123111
2053 Reviewed by Timothy Hatcher.
2055 The actual implementation at the WebCoreSupport/WebInspectorClient level
2056 is the same as INSPECTOR_SERVER. Give debuggable pages a pageIdentifer.
2058 * Configurations/FeatureDefines.xcconfig:
2059 * Misc/WebKitLogging.h:
2062 * WebCoreSupport/WebInspectorClient.h:
2063 (WebInspectorClient::pageId):
2064 (WebInspectorClient::setPageId):
2065 Give WebInspectorClient's a page identifier.
2067 * WebCoreSupport/WebInspectorClient.mm:
2068 (WebInspectorClient::WebInspectorClient):
2069 (WebInspectorClient::inspectorDestroyed):
2070 (WebInspectorClient::sendMessageToFrontend):
2071 (WebInspectorClient::sendMessageToBackend):
2072 (WebInspectorClient::setupRemoteConnection):
2073 (WebInspectorClient::teardownRemoteConnection):
2074 (WebInspectorClient::hasLocalSession):
2075 (WebInspectorClient::canBeRemotelyInspected):
2076 (WebInspectorClient::inspectedWebView):
2077 A WebInspectorClient can be either local or remote. Add handling
2078 for remote connections.
2080 * WebInspector/remote/WebInspectorClientRegistry.h: Added.
2081 * WebInspector/remote/WebInspectorClientRegistry.mm: Added.
2082 (+[WebInspectorClientRegistry sharedRegistry]):
2083 (-[WebInspectorClientRegistry init]):
2084 (-[WebInspectorClientRegistry _getNextAvailablePageId]):
2085 (-[WebInspectorClientRegistry registerClient:]):
2086 (-[WebInspectorClientRegistry unregisterClient:]):
2087 (-[WebInspectorClientRegistry clientForPageId:]):
2088 (-[WebInspectorClientRegistry inspectableWebViews]):
2089 Registry for all potentially debuggable pages. All WebInspectorClient instances.
2091 * WebInspector/remote/WebInspectorRelayDefinitions.h: Added.
2092 Constants (message keys) shared between WebKit and the XPC process.
2094 * WebInspector/remote/WebInspectorServer.h: Added.
2095 * WebInspector/remote/WebInspectorServer.mm: Added.
2096 (-[WebInspectorServer init]):
2097 (-[WebInspectorServer dealloc]):
2098 (-[WebInspectorServer start]):
2099 (-[WebInspectorServer stop]):
2100 (-[WebInspectorServer isEnabled]):
2101 (-[WebInspectorServer xpcConnection]):
2102 (-[WebInspectorServer setupXPCConnectionIfNeeded]):
2103 (-[WebInspectorServer pushListing]):
2104 (-[WebInspectorServer hasActiveDebugSession]):
2105 (-[WebInspectorServer setHasActiveDebugSession:]):
2106 (-[WebInspectorServer xpcConnection:receivedMessage:userInfo:]):
2107 (-[WebInspectorServer xpcConnectionFailed:]):
2108 (-[WebInspectorServer didRegisterClient:]):
2109 (-[WebInspectorServer didUnregisterClient:]):
2110 Singleton to start/stop remote inspection. Handles the connection to the XPC
2111 and hands off connections to the connection controller.
2113 * WebInspector/remote/WebInspectorServerWebViewConnection.h: Added.
2114 * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Added.
2115 (-[WebInspectorServerWebViewConnection initWithController:connectionIdentifier:destination:identifier:]):
2116 (-[WebInspectorServerWebViewConnection setupChannel]):
2117 (-[WebInspectorServerWebViewConnection dealloc]):
2118 (-[WebInspectorServerWebViewConnection connectionIdentifier]):
2119 (-[WebInspectorServerWebViewConnection identifier]):
2120 (-[WebInspectorServerWebViewConnection clearChannel]):
2121 (-[WebInspectorServerWebViewConnection sendMessageToFrontend:]):
2122 (-[WebInspectorServerWebViewConnection sendMessageToBackend:]):
2123 (-[WebInspectorServerWebViewConnection receivedData:]):
2124 (-[WebInspectorServerWebViewConnection receivedDidClose:]):
2125 An individual remote debug session connection.
2127 * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Added.
2128 * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Added.
2129 (-[WebInspectorServerWebViewConnectionController initWithServer:]):
2130 (-[WebInspectorServerWebViewConnectionController dealloc]):
2131 (-[WebInspectorServerWebViewConnectionController closeAllConnections]):
2132 (-[WebInspectorServerWebViewConnectionController _listingForWebView:pageId:registry:]):
2133 (-[WebInspectorServerWebViewConnectionController _pushListing:]):
2134 (-[WebInspectorServerWebViewConnectionController pushListing:]):
2135 (-[WebInspectorServerWebViewConnectionController pushListing]):
2136 (-[WebInspectorServerWebViewConnectionController _receivedSetup:]):
2137 (-[WebInspectorServerWebViewConnectionController _receivedData:]):
2138 (-[WebInspectorServerWebViewConnectionController _receivedDidClose:]):
2139 (-[WebInspectorServerWebViewConnectionController _receivedGetListing:]):
2140 (-[WebInspectorServerWebViewConnectionController _receivedIndicate:]):
2141 (-[WebInspectorServerWebViewConnectionController _receivedConnectionDied:]):
2142 (-[WebInspectorServerWebViewConnectionController receivedMessage:userInfo:]):
2143 (-[WebInspectorServerWebViewConnectionController connectionClosing:]):
2144 (-[WebInspectorServerWebViewConnectionController sendMessageToFrontend:userInfo:]):
2145 ConnectionController:
2146 - Holds all the current ongoing remote debug connections.
2147 - Simplifies multi-threaded work on iOS.
2148 - Dispatches incoming messages from the remote connection.
2150 * WebInspector/remote/WebInspectorRemoteChannel.h: Added.
2151 * WebInspector/remote/WebInspectorRemoteChannel.mm: Added.
2152 (+[WebInspectorRemoteChannel createChannelForPageId:connection:]):
2153 (-[WebInspectorRemoteChannel initWithRemote:local:]):
2154 (-[WebInspectorRemoteChannel closeFromLocalSide]):
2155 (-[WebInspectorRemoteChannel closeFromRemoteSide]):
2156 (-[WebInspectorRemoteChannel sendMessageToFrontend:]):
2157 (-[WebInspectorRemoteChannel sendMessageToBackend:]):
2158 Thin interface between the remote connection and web inspector client.
2159 This simplifies breaking the connection from either side, e.g. the
2160 page closing, or the remote connection disconnecting.
2162 * WebInspector/remote/WebInspectorXPCWrapper.h: Added.
2163 * WebInspector/remote/WebInspectorXPCWrapper.m: Added.
2164 (-[WebInspectorXPCWrapper initWithConnection:]):
2165 (-[WebInspectorXPCWrapper close]):
2166 (-[WebInspectorXPCWrapper dealloc]):
2167 (-[WebInspectorXPCWrapper _deserializeMessage:]):
2168 (-[WebInspectorXPCWrapper _handleEvent:]):
2169 (-[WebInspectorXPCWrapper sendMessage:userInfo:]):
2170 (-[WebInspectorXPCWrapper available]):
2172 XPC Connection wrapper handling a simple message format.
2174 * WebView/WebViewData.h:
2175 * WebView/WebViewData.mm:
2176 (-[WebViewPrivate init]):
2177 (-[WebViewPrivate dealloc]):
2178 * WebView/WebViewInternal.h:
2179 * WebView/WebViewPrivate.h:
2180 * WebView/WebView.mm:
2181 (-[WebView _commonInitializationWithFrameName:groupName:]):
2182 (+[WebView sharedWebInspectorServer]):
2183 (+[WebView _enableRemoteInspector]):
2184 (+[WebView _disableRemoteInspector]):
2185 (+[WebView _disableAutoStartRemoteInspector]):
2186 (+[WebView _isRemoteInspectorEnabled]):
2187 (+[WebView _hasRemoteInspectorSession]):
2188 (-[WebView canBeRemotelyInspected]):
2189 (-[WebView allowsRemoteInspection]):
2190 (-[WebView setAllowsRemoteInspection:]):
2191 (-[WebView setIndicatingForRemoteInspector:]):
2192 (-[WebView setRemoteInspectorUserInfo:]):
2193 (-[WebView remoteInspectorUserInfo]):
2194 Remote inspector private API.
2195 - Enable / disable globally
2196 - Allow / disallow per webview
2197 - Optionally attach a userInfo dictionary on the WebView that is published with listing.
2198 - Indicate a WebView (implementation to land later)
2200 (-[WebView _didCommitLoadForFrame:]):
2201 * WebCoreSupport/WebFrameLoaderClient.mm:
2202 (WebFrameLoaderClient::dispatchDidReceiveTitle):
2203 Pages changed, pushed page listing.
2205 2013-10-25 Mark Rowe <mrowe@apple.com>
2207 Fix or disable some deprecation warnings.
2209 Reviewed by Darin Adler.
2211 * Panels/WebAuthenticationPanel.m:
2212 (-[WebAuthenticationPanel cancel:]): On newer OS versions, use the modern API.
2213 (-[WebAuthenticationPanel logIn:]): Ditto.
2214 (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]): Ditto. Translate the
2215 response code in to the form that -sheetDidEnd:responseCode:contextInfo: expects.
2216 * WebView/WebClipView.mm:
2217 (-[WebClipView initWithFrame:]): Disable deprecation warnings since it's not obvious
2218 how to avoid calling -releaseGState here.
2220 2013-10-24 Mark Rowe <mrowe@apple.com>
2222 Remove references to OS X 10.7 from Xcode configuration settings.
2224 Now that we're not building for OS X 10.7 they're no longer needed.
2226 Reviewed by Anders Carlsson.
2228 * Configurations/Base.xcconfig:
2229 * Configurations/DebugRelease.xcconfig:
2230 * Configurations/FeatureDefines.xcconfig:
2231 * Configurations/Version.xcconfig:
2233 2013-10-24 Mark Rowe <mrowe@apple.com>
2235 <rdar://problem/15312643> Prepare for the mysterious future.
2237 Reviewed by David Kilzer.
2239 * Configurations/Base.xcconfig:
2240 * Configurations/DebugRelease.xcconfig:
2241 * Configurations/FeatureDefines.xcconfig:
2242 * Configurations/Version.xcconfig:
2244 2013-10-24 Anders Carlsson <andersca@apple.com>
2246 Stop bringing in the std namespace
2247 https://bugs.webkit.org/show_bug.cgi?id=123273
2249 Reviewed by Andreas Kling.
2251 * WebView/WebFrameView.mm:
2252 (-[WebFrameView _verticalPageScrollDistance]):
2253 (-[WebFrameView _horizontalPageScrollDistance]):
2254 * WebView/WebHTMLView.mm:
2255 (-[WebHTMLView _scaleFactorForPrintOperation:]):
2256 * WebView/WebView.mm:
2257 (+[WebView _setCacheModel:]):
2258 (+[WebView _maxCacheModelInAnyInstance]):
2259 (+[WebView _cacheModelChangedNotification:]):
2260 (+[WebView _preferencesRemovedNotification:]):
2262 2013-10-22 Dean Jackson <dino@apple.com>
2264 [WebGL] Implement a software rendering option on Mac
2265 https://bugs.webkit.org/show_bug.cgi?id=123177
2267 Reviewed by Tim Horton.
2269 Implement a way to force software OpenGL rendering
2270 for WebGL, via a Setting/Preference.
2272 * WebView/WebPreferenceKeysPrivate.h: New WebKitForceSoftwareWebGLRendering key.
2273 * WebView/WebPreferences.mm:
2274 (+[WebPreferences initialize]):
2275 (-[WebPreferences forceSoftwareWebGLRendering]):
2276 (-[WebPreferences setForceSoftwareWebGLRendering:]):
2277 * WebView/WebPreferencesPrivate.h:
2278 * WebView/WebView.mm:
2279 (-[WebView _preferencesChanged:]):
2281 2013-10-21 Mark Rowe <mrowe@apple.com>
2283 Add a version of WebKitSystemInterface for Mavericks.
2285 Reviewed by Ryosuke Niwa.
2287 * Configurations/DebugRelease.xcconfig:
2289 2013-10-21 Daniel Bates <dabates@apple.com>
2291 Remove platform #ifdefs from WebDataSourcePrivate.h
2292 https://bugs.webkit.org/show_bug.cgi?id=123120
2293 <rdar://problem/15275533>
2295 Reviewed by Anders Carlsson.
2297 * WebView/WebDataSource.mm:
2298 (-[WebDataSource _setAllowToBeMemoryMapped]): Define empty implementation when building without
2299 disk image cache enabled.
2300 (-[WebDataSource setDataSourceDelegate:]): Ditto.
2301 (-[WebDataSource dataSourceDelegate]): Return nullptr when building without disk image cache
2303 * WebView/WebDataSourcePrivate.h: Removed platform #ifdefs added in
2304 <http://trac.webkit.org/changeset/156918> (https://bugs.webkit.org/show_bug.cgi?id=121985)
2306 2013-10-20 Mark Lam <mark.lam@apple.com>
2308 Avoid JSC debugger overhead unless needed.
2309 https://bugs.webkit.org/show_bug.cgi?id=123084.
2311 Reviewed by Geoffrey Garen.
2313 * WebView/WebScriptDebugger.mm:
2314 (WebScriptDebugger::WebScriptDebugger):
2316 2013-10-19 Jer Noble <jer.noble@apple.com>
2318 Unreviewed roll out of r157695; broke Mac builds.
2320 * Configurations/FeatureDefines.xcconfig:
2322 2013-10-07 Jer Noble <jer.noble@apple.com>
2324 [MSE] [Mac] Enable MediaSource on the Mac
2325 https://bugs.webkit.org/show_bug.cgi?id=122484
2327 Reviewed by Darin Adler.
2329 Enable ENABLE_MEDIA_SOURCE.
2331 * Configurations/FeatureDefines.xcconfig:
2333 2013-10-19 Andreas Kling <akling@apple.com>
2335 Attempt to get Lion building.
2337 * WebView/WebDataSource.mm:
2339 2013-10-18 Anders Carlsson <andersca@apple.com>
2341 Remove spaces between template angle brackets
2342 https://bugs.webkit.org/show_bug.cgi?id=123040
2344 Reviewed by Andreas Kling.
2346 * History/WebHistory.mm:
2347 (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
2348 * History/WebHistoryItem.mm:
2349 (-[WebHistoryItem initFromDictionaryRepresentation:]):
2350 * Plugins/Hosted/NetscapePluginHostProxy.h:
2351 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2352 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2353 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
2354 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
2355 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
2356 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
2357 (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
2358 * Plugins/WebNetscapePluginView.h:
2359 * Plugins/WebNetscapePluginView.mm:
2360 (-[WebNetscapePluginView destroyPlugin]):
2361 * Storage/WebDatabaseManager.mm:
2362 (-[WebDatabaseManager origins]):
2363 * Storage/WebStorageManager.mm:
2364 (-[WebStorageManager origins]):
2365 * WebCoreSupport/WebApplicationCache.mm:
2366 (+[WebApplicationCache originsWithCache]):
2367 * WebCoreSupport/WebEditorClient.h:
2368 * WebCoreSupport/WebEditorClient.mm:
2369 (WebEditorClient::getClientPasteboardDataForRange):
2370 (WebEditorClient::documentFragmentFromAttributedString):
2371 * WebCoreSupport/WebFrameLoaderClient.h:
2372 * WebCoreSupport/WebNotificationClient.h:
2373 * WebCoreSupport/WebNotificationClient.mm:
2374 (WebNotificationClient::show):
2375 (WebNotificationClient::clearNotifications):
2376 * WebView/WebArchive.mm:
2377 (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2378 (-[WebArchive subresources]):
2379 (-[WebArchive subframeArchives]):
2380 * WebView/WebDataSource.mm:
2381 (-[WebDataSource subresources]):
2382 * WebView/WebViewData.h:
2384 2013-10-16 Jochen Eisinger <jochen@chromium.org>
2386 A page should exit fullscreen mode if it opens a new popup
2387 https://bugs.webkit.org/show_bug.cgi?id=122865
2389 Reviewed by Jer Noble.
2391 If a fullscreen page opens a popup, the popup would be hidden and
2392 therefore invisible to the user. To avoid this, exit fullscreen mode
2393 before opening a new window.
2395 * WebCoreSupport/WebChromeClient.mm:
2396 (WebChromeClient::createWindow):
2398 2013-10-15 Dean Jackson <dino@apple.com>
2400 Add ENABLE_WEB_ANIMATIONS flag
2401 https://bugs.webkit.org/show_bug.cgi?id=122871
2403 Reviewed by Tim Horton.
2405 Eventually might be http://dev.w3.org/fxtf/web-animations/
2406 but this is just engine-internal work at the moment.
2408 * Configurations/FeatureDefines.xcconfig:
2410 2013-10-15 Andy Estes <aestes@apple.com>
2412 Expose -[WebPluginPackage bundle] as SPI
2413 https://bugs.webkit.org/show_bug.cgi?id=122814
2415 Reviewed by Anders Carlsson.
2417 * Plugins/WebPluginPackage.mm:
2418 (-[WebPluginPackage bundle]): Defined.
2419 * Plugins/WebPluginPackagePrivate.h: Declared bundle as a method in a
2420 category on NSObject.
2422 2013-10-12 Darin Adler <darin@apple.com>
2424 Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
2425 https://bugs.webkit.org/show_bug.cgi?id=122713
2427 Reviewed by Sam Weinig.
2429 * WebView/WebHTMLRepresentation.mm:
2430 (-[WebHTMLRepresentation elementWithName:inForm:]): Use asHTMLElement.
2431 (-[WebHTMLRepresentation controlsInForm:]): Ditto.
2433 2013-10-12 Adam Roben <aroben@webkit.org>
2435 WebViews inside OS X screen savers have large caches, but should not
2436 https://bugs.webkit.org/show_bug.cgi?id=122604
2438 We use WebCacheModelDocumentViewer by default for apps linked against
2439 modern WebKit, and WebCacheModelDocumentBrowser for apps linked
2440 against legacy WebKit. ScreenSaverEngine.app doesn't link against
2441 WebKit at all, and thus falls into the legacy case by accident because
2442 NSVersionOfLinkTimeLibrary("WebKit") returns -1.
2444 But WebViews inside screen savers are almost certainly not being used
2445 as browsers, so this large-ish cache specified by
2446 WebCacheModelDocumentBrowser is wasteful. This is likely true for all
2447 apps that don't directly link against WebKit, so now we use
2448 WebCacheModelDocumentViewer by default for those apps.
2450 Reviewed by Darin Adler.
2452 * WebView/WebPreferences.mm:
2453 (cacheModelForMainBundle): Use WebCacheModelDocumentViewer by default
2454 for apps that don't link against WebKit directly. Also converted to
2455 use @autoreleasepool {} and early returns while I was in here.
2457 2013-10-12 Alexey Proskuryakov <ap@apple.com>
2459 Add a feature define for SubtleCrypto
2460 https://bugs.webkit.org/show_bug.cgi?id=122683
2462 Reviewed by Anders Carlsson.
2464 * Configurations/FeatureDefines.xcconfig:
2466 2013-10-12 Darin Adler <darin@apple.com>
2468 Use unique_ptr instead of delete in a few places
2469 https://bugs.webkit.org/show_bug.cgi?id=122639
2471 Reviewed by Anders Carlsson.
2473 * History/WebHistory.mm:
2474 (-[WebHistoryPrivate init]): Use make_unique.
2475 (-[WebHistoryPrivate dealloc]): Don't delete.
2476 (-[WebHistoryPrivate finalize]): Don't delete.
2477 (-[WebHistoryPrivate data]): Use get.
2479 * WebCoreSupport/WebFrameNetworkingContext.mm:
2480 (privateSession): Use NeverDestroyed here instead of a raw pointer.
2481 (WebFrameNetworkingContext::ensurePrivateBrowsingSession): Use the
2482 new function instead of direct global variable access.
2483 (WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
2484 (WebFrameNetworkingContext::storageSession): Ditto.
2486 * WebView/WebFrame.mm:
2487 (-[WebFramePrivate dealloc]): Don't delete.
2488 (-[WebFramePrivate finalize]): Don't delete.
2489 (-[WebFrame _attachScriptDebugger]): Use make_unique.
2490 (-[WebFrame _detachScriptDebugger]): Don't delete.
2491 * WebView/WebFrameInternal.h: Use unique_ptr.
2493 2013-10-11 Timothy Hatcher <timothy@apple.com>
2495 Remove preference support for picking the old Web Inspector.
2496 https://bugs.webkit.org/show_bug.cgi?id=122655
2498 Reviewed by Alexey Proskuryakov.
2500 * WebCoreSupport/WebInspectorClient.mm:
2501 (WebInspectorFrontendClient::localizedStringsURL):
2502 (-[WebInspectorWindowController inspectorPagePath]):
2504 2013-10-10 Simon Fraser <simon.fraser@apple.com>
2506 Always force layout before flushing compositing layers
2507 https://bugs.webkit.org/show_bug.cgi?id=122626
2509 Reviewed by Tim Horton.
2511 [m_webView _flushCompositingChanges] only actually flushes compositing
2512 layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
2513 returns in this case). In this situation, flushLayers() does actually try
2514 to force a layout, but on some platforms it's possible for something else
2515 to dirty layout before the runloop observer fires again. This can result
2516 in flushLayers() never actually managing to flush, which stalls visual
2519 Fix by always calling -viewWillDraw (which updates layout) before flushing
2520 layers. This now matches WebKit2 behavior.
2522 * WebView/WebView.mm:
2523 (LayerFlushController::flushLayers):
2525 2013-10-10 Andy Estes <aestes@apple.com>
2527 Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones
2528 https://bugs.webkit.org/show_bug.cgi?id=122608
2530 Reviewed by Dan Bernstein.
2532 Based on patches by Dan Bernstein.
2534 * WebView/WebView.mm:
2535 (-[WebView _setFontFallbackPrefersPictographs:]): Called
2536 WebCore::Settings::setFontFallbackPrefersPictographs().
2537 * WebView/WebViewPrivate.h:
2539 2013-10-10 Mark Rowe <mrowe@apple.com>
2541 <rdar://problem/13341666> WebKit should always build against an SDK.
2543 Have all projects default to building against the OS X Internal SDK for the Production
2544 configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
2545 to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
2547 Reviewed by Dan Bernstein.
2549 * Configurations/Base.xcconfig:
2550 * Configurations/DebugRelease.xcconfig:
2552 2013-10-08 Darin Adler <darin@apple.com>
2554 WebNetscapePluginView should no longer use deleteAllValues
2555 https://bugs.webkit.org/show_bug.cgi?id=122495
2557 Reviewed by Anders Carlsson.
2559 * Plugins/WebNetscapePluginView.h: Use unique_ptr for both the pointer to
2560 the timers hash table, and for the values in the hash table.
2562 * Plugins/WebNetscapePluginView.mm:
2563 (-[WebNetscapePluginView stopTimers]): Rewrote loop so it works with unique_ptr.
2564 (-[WebNetscapePluginView startTimers]): Ditto.
2565 (-[WebNetscapePluginView fini]): Removed unneeded code to delete timers.
2566 (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]): Make
2567 the timers hash table with make-unique. Fixed the loop that chooses the timer
2568 ID so it won't ever try to use a deleted value, although that never happens
2569 in practice. Use HashMap::add instead of using both contains and set.
2570 Rearranged code so we don't need to make a raw pointer for the timer.
2571 (-[WebNetscapePluginView unscheduleTimer:]): Use remove instead of take/delete,
2572 since remove takes care of the deletion automatically since we are using the
2575 2013-10-08 Darin Adler <darin@apple.com>
2577 Eliminate use of deleteAllValues in ProxyInstance
2578 https://bugs.webkit.org/show_bug.cgi?id=122499
2580 Reviewed by Anders Carlsson.
2582 * Plugins/Hosted/ProxyInstance.h: Use unique_ptr for map values in m_fields and m_methods.
2584 * Plugins/Hosted/ProxyInstance.mm:
2585 (WebKit::ProxyInstance::~ProxyInstance): Removed calls to deleteAllValues.
2586 (WebKit::ProxyInstance::methodNamed): Use make_unique and get to deal with map entries
2587 that are unique_ptr. Also fixed a bug where this would do an expensive no-op if the map
2588 already had an entry with a null in it. We would call the plug-in, but eventually
2589 isNewEntry would be false so we would return null.
2590 (WebKit::ProxyInstance::fieldNamed): Use make_unique and get to deal with map entries
2591 that are unique_ptr.
2593 2013-10-08 Darin Adler <darin@apple.com>
2595 Change NetscapePluginInstanceProxy::m_replies to use unique_ptr instead of deleteAllValues
2596 https://bugs.webkit.org/show_bug.cgi?id=122492
2598 Reviewed by Andreas Kling.
2600 * Plugins/Hosted/NetscapePluginHostManager.mm:
2601 (WebKit::NetscapePluginHostManager::instantiatePlugin): Use auto so this works with
2602 unique_ptr instead of auto_ptr.
2603 * Plugins/Hosted/NetscapePluginHostProxy.mm:
2604 (WKPCGetScriptableNPObjectReply): Use make_unique instead of using new directly.
2605 (WKPCBooleanReply): Ditto.
2606 (WKPCBooleanAndDataReply): Ditto.
2607 (WKPCInstantiatePluginReply): Ditto.
2608 * Plugins/Hosted/NetscapePluginInstanceProxy.h: Changed m_replies to map to unique_ptr
2609 instead of to a raw pointer.
2610 (WebKit::NetscapePluginInstanceProxy::setCurrentReply): Changed to take a unique_ptr
2611 instead of a raw pointer since this takes ownership of the pointer.
2612 (WebKit::NetscapePluginInstanceProxy::waitForReply): Changed to return a unique_ptr
2613 instead of a auto_ptr because that's better. Use unique_ptr inside the function
2614 too to avoid the need for an explicit delete.
2615 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2616 (WebKit::NetscapePluginInstanceProxy::~NetscapePluginInstanceProxy): Removed the call to
2618 (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Removed unneeded initialization
2619 of a local variable that was already set in all code paths.
2620 (WebKit::NetscapePluginInstanceProxy::wheelEvent): Use auto so this works with unique_ptr
2621 instead of auto_ptr.
2622 (WebKit::NetscapePluginInstanceProxy::print): Ditto.
2623 (WebKit::NetscapePluginInstanceProxy::snapshot): Ditto. Ditto.
2624 (WebKit::NetscapePluginInstanceProxy::processRequestsAndWaitForReply): Changed to return
2625 a unique_ptr. Also removed an unneeded assertion.
2626 (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): Use auto so this works
2627 with unique_ptr instead of auto_ptr.
2629 * Plugins/Hosted/ProxyInstance.h: Changed return type of waitForReply to unique_ptr.
2631 * Plugins/Hosted/ProxyInstance.mm:
2632 (WebKit::ProxyInstance::invoke): Use auto so this works with unique_ptr instead of auto_ptr.
2633 (WebKit::ProxyInstance::supportsInvokeDefaultMethod): Ditto.
2634 (WebKit::ProxyInstance::supportsConstruct): Ditto.
2635 (WebKit::ProxyInstance::getPropertyNames): Ditto.
2636 (WebKit::ProxyInstance::methodNamed): Ditto.
2637 (WebKit::ProxyInstance::fieldNamed): Ditto.
2638 (WebKit::ProxyInstance::fieldValue): Ditto.
2639 (WebKit::ProxyInstance::setFieldValue): Ditto.
2641 2013-10-07 Sam Weinig <sam@webkit.org>
2643 CTTE: Use references in and around DragController
2644 https://bugs.webkit.org/show_bug.cgi?id=122427
2646 Reviewed by Andreas Kling.
2648 * WebCoreSupport/WebDragClient.h:
2649 * WebCoreSupport/WebDragClient.mm:
2650 (WebDragClient::actionMaskForDrag):
2651 (WebDragClient::willPerformDragDestinationAction):
2652 (WebDragClient::willPerformDragSourceAction):
2653 (WebDragClient::startDrag):
2654 (WebDragClient::declareAndWriteDragImage):
2655 * WebView/WebFrame.mm:
2656 (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
2657 * WebView/WebHTMLView.mm:
2658 (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
2659 * WebView/WebView.mm:
2660 (-[WebView draggingEntered:]):
2661 (-[WebView draggingUpdated:]):
2662 (-[WebView draggingExited:]):
2663 (-[WebView performDragOperation:]):
2665 2013-10-05 Sam Weinig <sam@webkit.org>
2667 CTTE: Thread references through markup.h
2668 https://bugs.webkit.org/show_bug.cgi?id=122403
2670 Reviewed by Darin Adler and Andreas Kling.
2672 * DOM/WebDOMOperations.mm:
2673 (-[DOMNode markupString]):
2674 (-[DOMRange markupString]):
2675 * WebView/WebFrame.mm:
2676 (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
2677 (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
2679 2013-10-05 Sam Weinig <sam@webkit.org>
2681 CTTE: Pass DocumentWriter around as a reference
2682 https://bugs.webkit.org/show_bug.cgi?id=122396
2684 Reviewed by Andreas Kling.
2686 * WebView/WebFrame.mm:
2687 (-[WebFrame _canProvideDocumentSource]):
2689 2013-10-04 Alexey Proskuryakov <ap@apple.com>
2691 Don't preflight spell checker when calling -setContinuousSpellCheckingEnabled repeatedly
2692 https://bugs.webkit.org/show_bug.cgi?id=122329
2694 Reviewed by Darin Adler.
2696 * WebView/WebView.mm: (-[WebView setContinuousSpellCheckingEnabled:]): Don't do any
2697 work if preference didn't change (continuousSpellCheckingEnabled is a static that
2700 2013-10-04 Anders Carlsson <andersca@apple.com>
2702 FramePolicyFunction should be an std::function
2703 https://bugs.webkit.org/show_bug.cgi?id=122362
2705 Reviewed by Darin Adler.
2707 * WebCoreSupport/WebFrameLoaderClient.h:
2708 * WebCoreSupport/WebFrameLoaderClient.mm:
2709 (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2710 (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2711 (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2712 (WebFrameLoaderClient::dispatchWillSubmitForm):
2714 2013-10-04 Mark Lam <mark.lam@apple.com>
2716 Change ScriptDebugServer to use DebuggerCallFrame instead of JavaScriptCallFrame.
2717 https://bugs.webkit.org/show_bug.cgi?id=121969.
2719 Reviewed by Geoffrey Garen.
2721 1. Make JavaScriptCallFrame a thin shell around the DebuggerCallFrame.
2722 DebuggerCallFrame now tracks whether it is valid instead of needing
2723 JavaScriptCallFrame do it.
2724 2. ScriptDebugServer now only instantiates an DebuggerCallFrame when needed
2725 just before it pauses and calls back to its client, and then invalidates
2726 it immediately when the callback returns. Every subsequent callback to
2727 the client will use a new instance of the DebuggerCallFrame.
2728 3. Similarly, ScriptDebugServer now only creates a JavaScriptCallFrame when
2730 4. DebuggerCallFrame only creates its caller DebuggerCallFrame when
2731 it is needed i.e. when the client calls callerFrame(). Similarly,
2732 JavaScriptCallFrame only creates its caller when it's requested.
2733 5. DebuggerCallFrame's line() and column() now returns a base-zero int.
2734 6. WebScriptDebugDelegate now only caches the functionName of the frame
2735 instead of the entire DebuggerCallFrame because that is all that is
2737 7. Also removed evaluateInGlobalCallFrame() which is not used anywhere.
2739 * WebView/WebScriptDebugDelegate.mm:
2740 (-[WebScriptCallFramePrivate dealloc]):
2741 (-[WebScriptCallFrame _initWithGlobalObject:functionName:exceptionValue:JSC::]):
2742 (-[WebScriptCallFrame functionName]):
2743 (-[WebScriptCallFrame exception]):
2744 * WebView/WebScriptDebugger.mm:
2745 (WebScriptDebugger::exception):
2747 2013-10-04 Anders Carlsson <andersca@apple.com>
2749 Remove some unneeded code from WidgetMac
2750 https://bugs.webkit.org/show_bug.cgi?id=122355
2752 Reviewed by Dan Bernstein.
2754 Remove code to handle the visible rect changing, it's not needed anymore since we always put Netscape plug-ins into their own layers now.
2756 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2757 * Plugins/WebBaseNetscapePluginView.h:
2758 * Plugins/WebBaseNetscapePluginView.mm:
2760 2013-10-04 Daniel Bates <dabates@apple.com>
2762 [iOS] Upstream disk image cache
2763 https://bugs.webkit.org/show_bug.cgi?id=121985
2765 Reviewed by Joseph Pecoraro.
2768 (+[WebCache statistics]):
2769 * WebView/WebDataSource.mm:
2770 (BufferMemoryMapped): Added.
2771 (-[WebDataSource _setAllowToBeMemoryMapped]): Added.
2772 (-[WebDataSource setDataSourceDelegate:]): Added.
2773 (-[WebDataSource dataSourceDelegate]): Added.
2774 (-[WebDataSource dealloc]):
2775 * WebView/WebDataSourcePrivate.h: Declared private delegate
2776 protocol, WebDataSourcePrivateDelegate.
2777 * WebView/WebPreferenceKeysPrivate.h:
2778 * WebView/WebPreferences.mm:
2779 (+[WebPreferences initialize]):
2780 (-[WebPreferences diskImageCacheEnabled]): Added.
2781 (-[WebPreferences setDiskImageCacheEnabled:]): Added.
2782 (-[WebPreferences diskImageCacheMinimumImageSize]): Added.
2783 (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Added.
2784 (-[WebPreferences diskImageCacheMaximumCacheSize]): Added.
2785 (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Added.
2786 (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Added.
2787 (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Added.
2788 * WebView/WebView.mm:
2789 (-[WebView _commonInitializationWithFrameName:groupName:]):
2790 (-[WebView _preferencesChanged:]):
2792 2013-10-04 Anders Carlsson <andersca@apple.com>
2794 Remove WebAssertions.h
2795 https://bugs.webkit.org/show_bug.cgi?id=122328
2797 Reviewed by Jessie Berlin.
2799 * Misc/WebAssertions.h: Removed.
2801 2013-10-03 Anders Carlsson <andersca@apple.com>
2803 Remove WebNSNotificationCenterExtras
2804 https://bugs.webkit.org/show_bug.cgi?id=122316
2806 Reviewed by Dan Bernstein.
2808 Use dispatch_async to ensure that notifications are posted on the main thread.
2810 * Misc/WebIconDatabase.mm:
2811 (-[WebIconDatabase _sendNotificationForURL:]):
2812 (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
2813 * Misc/WebNSNotificationCenterExtras.h: Removed.
2814 * Misc/WebNSNotificationCenterExtras.m: Removed.
2816 2013-10-03 Sam Weinig <sam@webkit.org>
2818 Remove shouldRubberBandInDirection from the WKBundlePageUIClient
2819 https://bugs.webkit.org/show_bug.cgi?id=122309
2821 Reviewed by Andreas Kling.
2823 * WebCoreSupport/WebChromeClient.h:
2825 2013-10-03 Anders Carlsson <andersca@apple.com>
2827 Ignore deprecation warnings
2828 https://bugs.webkit.org/show_bug.cgi?id=122302
2830 Reviewed by Mark Rowe.
2832 * Misc/WebIconDatabase.mm:
2833 (-[WebIconDatabase _scaleIcon:toSize:]):
2835 * Misc/WebNSImageExtras.m:
2836 (-[NSImage _web_scaleToMaxSize:]):
2837 (-[NSImage _web_dissolveToFraction:]):
2838 * Misc/WebNSViewExtras.m:
2839 (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
2840 (-[NSView _web_convertRect:toView:]):
2841 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2842 (WebKit::NetscapePluginInstanceProxy::mouseEvent):
2843 * Plugins/Hosted/WebTextInputWindowController.m:
2844 (-[WebTextInputPanel _interpretKeyEvent:string:]):
2845 * Plugins/WebBaseNetscapePluginView.mm:
2846 (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
2847 * WebCoreSupport/WebDragClient.mm:
2848 (WebDragClient::startDrag):
2849 * WebInspector/WebNodeHighlight.mm:
2850 (-[WebNodeHighlight _computeHighlightWindowFrame]):
2851 * WebView/WebFullScreenController.mm:
2852 (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
2853 (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
2854 * WebView/WebHTMLView.mm:
2855 (+[WebHTMLView _postFlagsChangedEvent:]):
2856 (-[WebHTMLView _updateMouseoverWithFakeEvent]):
2857 (-[WebHTMLView _autoscroll]):
2858 (-[WebHTMLView mouseDown:]):
2859 (-[WebHTMLView mouseDragged:]):
2860 (-[WebHTMLView mouseUp:]):
2861 (-[WebHTMLView accessibilityHitTest:]):
2862 (-[WebHTMLView _executeSavedKeypressCommands]):
2863 (-[WebHTMLView attachRootLayer:]):
2864 (-[WebHTMLView textStorage]):
2865 (-[WebHTMLView _updateSelectionForInputManager]):
2866 * WebView/WebTextCompletionController.mm:
2867 (-[WebTextCompletionController _buildUI]):
2868 (-[WebTextCompletionController _placePopupWindow:]):
2870 2013-10-01 Sam Weinig <sam@webkit.org>
2872 CTTE: DOMWrapperWorlds should be passed around by reference
2873 https://bugs.webkit.org/show_bug.cgi?id=122206
2875 Reviewed by Andreas Kling.
2877 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2878 (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
2879 (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
2880 (WebKit::NetscapePluginInstanceProxy::evaluate):
2881 * WebCoreSupport/WebFrameLoaderClient.h:
2882 * WebCoreSupport/WebFrameLoaderClient.mm:
2883 * WebView/WebFrame.mm:
2884 (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
2885 (-[WebFrame _globalContextForScriptWorld:]):
2886 (-[WebFrame jsWrapperForNode:inScriptWorld:]):
2887 * WebView/WebScriptWorld.mm:
2888 (+[WebScriptWorld standardWorld]):
2889 (+[WebScriptWorld findOrCreateWorld:]):
2890 * WebView/WebScriptWorldInternal.h:
2891 * WebView/WebView.mm:
2892 (-[WebView _injectOutlookQuirksScript]):
2893 (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
2894 (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
2895 (+[WebView _removeUserScriptFromGroup:world:url:]):
2896 (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
2897 (+[WebView _removeUserScriptsFromGroup:world:]):
2898 (+[WebView _removeUserStyleSheetsFromGroup:world:]):
2900 2013-09-30 Sam Weinig <sam@webkit.org>
2902 Remove support for DOMFileSystem
2903 https://bugs.webkit.org/show_bug.cgi?id=122137
2905 Reviewed by Anders Carlsson.
2907 * Configurations/FeatureDefines.xcconfig:
2909 2013-09-30 Benjamin Poulain <benjamin@webkit.org>
2911 Remove the code guarded by STYLE_SCOPED
2912 https://bugs.webkit.org/show_bug.cgi?id=122123
2914 Reviewed by Anders Carlsson.
2916 * Configurations/FeatureDefines.xcconfig:
2918 2013-09-30 Mark Rowe <mrowe@apple.com>
2920 Fix the build when building against an SDK.
2922 Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
2923 the compiler command lines. It can't know to do this for the system framework search paths
2924 we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
2926 * Configurations/WebKit.xcconfig:
2928 2013-09-29 Mark Rowe <mrowe@apple.com>
2932 Ensure that C++ and Objective-C++ files build with the right compiler flags.
2934 * Configurations/WebKit.xcconfig:
2936 2013-09-28 Mark Rowe <mrowe@apple.com>
2938 Fix some failures with newer versions of clang.
2940 Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
2941 usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
2942 as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
2943 flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
2944 in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
2946 Reviewed by Dan Bernstein.
2948 * Configurations/DebugRelease.xcconfig:
2949 * Configurations/WebKit.xcconfig:
2951 2013-09-28 Mark Rowe <mrowe@apple.com>
2953 Take Xcode's advice and enable some extra warnings.
2955 Reviewed by Sam Weinig.
2957 * Configurations/Base.xcconfig:
2959 2013-09-28 Darin Adler <darin@apple.com>
2961 Add Frame::mainFrame and Frame::isMainFrame
2962 https://bugs.webkit.org/show_bug.cgi?id=122064
2964 Reviewed by Andreas Kling.
2966 * WebCoreSupport/WebFrameLoaderClient.mm:
2967 (WebFrameLoaderClient::canHandleRequest):
2968 (WebFrameLoaderClient::transitionToCommittedForNewPage):
2969 * WebView/WebFrameView.mm:
2970 (-[WebFrameView _install]):
2973 2013-09-28 Mark Rowe <mrowe@apple.com>
2975 WebKit fails to build with newer versions of clang.
2977 Reviewed by Sam Weinig.
2979 * Carbon/HIWebView.mm: Remove an unused function.
2980 * History/BinaryPropertyList.cpp: #if a constant that's only used in 64-bit.
2981 * Misc/WebIconDatabase.mm: Remove two unused constants.
2982 * Plugins/WebBaseNetscapePluginView.mm: Remove an unused constant.
2983 * WebCoreSupport/WebEditorClient.mm: Ditto.
2985 2013-09-27 Enrica Casucci <enrica@apple.com>
2987 Upstream changes to Pasteboard implementation for iOS.
2988 https://bugs.webkit.org/show_bug.cgi?id=121818
2990 Reviewed by Benjamin Poulain.
2992 * WebCoreSupport/WebPlatformStrategies.h:
2993 * WebCoreSupport/WebPlatformStrategies.mm:
2994 (WebPlatformStrategies::writeToPasteboard):
2995 (WebPlatformStrategies::getPasteboardItemsCount):
2996 (WebPlatformStrategies::readBufferFromPasteboard):
2997 (WebPlatformStrategies::readURLFromPasteboard):
2998 (WebPlatformStrategies::readStringFromPasteboard):
2999 (WebPlatformStrategies::changeCount):
3001 2013-09-26 Darin Adler <darin@apple.com>
3004 https://bugs.webkit.org/show_bug.cgi?id=16214
3006 Reviewed by Andreas Kling.
3008 * many files: Renamed, using script.
3010 2013-09-06 Jer Noble <jer.noble@apple.com>
3012 [Mac] Implement the media controls in JavaScript.
3013 https://bugs.webkit.org/show_bug.cgi?id=120895
3015 Reviewed by Dean Jackson.
3017 Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
3019 * Configurations/FeatureDefines.xcconfig:
3021 2013-09-27 Darin Adler <darin@apple.com>
3023 Add empty MainFrame class
3024 https://bugs.webkit.org/show_bug.cgi?id=121770
3026 Reviewed by Andreas Kling.
3028 * WebCoreSupport/WebDragClient.mm:
3029 * WebCoreSupport/WebInspectorClient.mm:
3030 * WebCoreSupport/WebPlatformStrategies.mm:
3031 * WebView/WebFrame.mm:
3032 * WebView/WebHTMLView.mm:
3033 * WebView/WebView.mm:
3034 Include MainFrame.h instead of Frame.h as needed.
3036 2013-09-26 Eric Carlson <eric.carlson@apple.com>
3038 [MediaStream] make MediaStream testable
3039 https://bugs.webkit.org/show_bug.cgi?id=121967
3041 Reviewed by Dean Jackson.
3043 * WebCoreSupport/WebUserMediaClient.h: Added.
3044 * WebCoreSupport/WebUserMediaClient.mm: Added.
3046 * WebView/WebUIDelegatePrivate.h: Declare decidePolicyForUserMediaRequestFromOrigin:listener:
3048 * WebView/WebView.mm:
3049 (-[WebView _commonInitializationWithFrameName:groupName:]): Register WebUserMediaClient.
3050 (-[WebView _setUserMediaClient:]): New.
3051 (-[WebView _userMediaClient]): New.
3052 * WebView/WebViewData.h:
3053 * WebView/WebViewPrivate.h:
3055 2013-09-25 Sam Weinig <sam@webkit.org>
3057 Pass a JSC::VM& to JS bindings object creation functions, rather than a JSC::ExecState*
3058 https://bugs.webkit.org/show_bug.cgi?id=121934
3060 Reviewed by Geoffrey Garen.
3062 * Plugins/Hosted/ProxyInstance.mm:
3063 (WebKit::ProxyInstance::newRuntimeObject):
3064 * Plugins/Hosted/ProxyRuntimeObject.h:
3065 (WebKit::ProxyRuntimeObject::create):
3066 * Plugins/Hosted/ProxyRuntimeObject.mm:
3067 (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3068 (WebKit::ProxyRuntimeObject::finishCreation):
3070 2013-09-25 Brady Eidson <beidson@apple.com>
3072 Enable the IndexedDB build on Mac, but leave the feature non-functional
3073 https://bugs.webkit.org/show_bug.cgi?id=121918
3075 Reviewed by Alexey Proskuryakov.
3077 * Configurations/FeatureDefines.xcconfig:
3079 2013-09-25 Commit Queue <commit-queue@webkit.org>
3081 Unreviewed, rolling out r156432.
3082 http://trac.webkit.org/changeset/156432
3083 https://bugs.webkit.org/show_bug.cgi?id=121932
3085 some integer conversion things that need brady to fix
3086 (Requested by thorton on #webkit).
3088 * Configurations/FeatureDefines.xcconfig:
3090 2013-09-25 Brady Eidson <beidson@apple.com>
3092 Enable the IndexedDB build on Mac, but leave the feature non-functional
3093 https://bugs.webkit.org/show_bug.cgi?id=121918
3095 Reviewed by Alexey Proskuryakov.
3097 * Configurations/FeatureDefines.xcconfig:
3099 2013-09-25 Brent Fulgham <bfulgham@apple.com>
3101 Refactor RuntimeEnabledFeatures as a Singleton.
3102 https://bugs.webkit.org/show_bug.cgi?id=121883.
3104 Reviewed by Jer Noble.
3106 * WebView/WebView.mm:
3107 (-[WebView _preferencesChanged:]): Use singleton accessor.
3108 (-[WebView _setDashboardBehavior:to:]): Ditto.
3110 2013-09-25 Brady Eidson <beidson@apple.com>
3112 FeatureDefine.xcconfig cleanup (They should all be identical).
3113 https://bugs.webkit.org/show_bug.cgi?id=121921
3115 Reviewed by Mark Rowe.
3117 * Configurations/FeatureDefines.xcconfig:
3119 2013-09-24 Mark Lam <mark.lam@apple.com>
3121 Change JSC debug hooks to pass a CallFrame* instead of a DebuggerCallFrame.
3122 https://bugs.webkit.org/show_bug.cgi?id=121867.
3124 Reviewed by Geoffrey Garen.
3126 * WebView/WebScriptDebugDelegate.mm:
3127 (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:exceptionValue:JSC::]):
3128 (-[WebScriptCallFrame exception]):
3129 * WebView/WebScriptDebugger.h:
3130 * WebView/WebScriptDebugger.mm:
3131 (WebScriptDebugger::exception):
3133 2013-09-24 Enrica Casucci <enrica@apple.com>
3135 Upstream changes to Pasteboard implementation for iOS.
3136 https://bugs.webkit.org/show_bug.cgi?id=121818
3138 Reviewed by Darin Adler.
3140 * WebCoreSupport/WebPlatformStrategies.h:
3141 * WebCoreSupport/WebPlatformStrategies.mm:
3142 (WebPlatformStrategies::writeToPasteboard):
3144 2013-09-24 Mark Rowe <mrowe@apple.com>
3146 <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
3148 Reviewed by Dan Bernstein.
3150 * Configurations/Base.xcconfig:
3152 2013-09-21 Mark Lam <mark.lam@apple.com>
3154 Remove unused code in WebKit/mac's WebScriptDebugDelegate.
3155 https://bugs.webkit.org/show_bug.cgi?id=121706.
3157 Reviewed by Timothy Hatcher.
3159 WebScriptDebugDelegate's didEnterCallFrame, willExecuteStatement,
3160 and willLeaveCallFrame are not in use. Removed them and all methods
3161 and fields used for supporting them.
3163 * WebView/WebDelegateImplementationCaching.h:
3164 * WebView/WebScriptDebugDelegate.h:
3165 * WebView/WebScriptDebugDelegate.mm:
3166 (-[WebScriptCallFramePrivate dealloc]):
3167 (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:]):
3168 * WebView/WebScriptDebugger.h:
3169 (WebScriptDebugger::globalObject):
3170 (WebScriptDebugger::callEvent):
3171 (WebScriptDebugger::atStatement):
3172 (WebScriptDebugger::returnEvent):
3173 (WebScriptDebugger::willExecuteProgram):
3174 (WebScriptDebugger::didExecuteProgram):
3175 (WebScriptDebugger::didReachBreakpoint):
3176 * WebView/WebScriptDebugger.mm:
3177 (WebScriptDebugger::WebScriptDebugger):
3178 (WebScriptDebugger::exception):
3179 * WebView/WebView.mm:
3180 (-[WebView _cacheScriptDebugDelegateImplementations]):
3182 2013-09-18 Anders Carlsson <andersca@apple.com>
3184 RefPtrHashMap should work with move only types
3185 https://bugs.webkit.org/show_bug.cgi?id=121564
3187 Reviewed by Andreas Kling.
3189 * Plugins/Hosted/ProxyInstance.mm:
3190 (WebKit::ProxyInstance::methodNamed):
3191 (WebKit::ProxyInstance::fieldNamed):
3193 2013-09-16 Enrica Casucci <enrica@apple.com>
3195 Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
3196 https://bugs.webkit.org/show_bug.cgi?id=121464
3198 Reviewed by Darin Adler.
3200 This method was only implemented in WebEditorClient.mm for Mac where it was
3201 calling a private delegate that is no longer in use.
3203 * DefaultDelegates/WebDefaultEditingDelegate.m:
3204 * WebCoreSupport/WebEditorClient.h:
3205 * WebCoreSupport/WebEditorClient.mm:
3206 * WebView/WebEditingDelegatePrivate.h:
3208 2013-09-13 Anders Carlsson <andersca@apple.com>
3210 Use nullptr instead of 0 in calls to HashMap::add
3211 https://bugs.webkit.org/show_bug.cgi?id=121322
3213 Reviewed by Sam Weinig.
3215 * Plugins/Hosted/NetscapePluginHostManager.mm:
3216 (WebKit::NetscapePluginHostManager::hostForPlugin):
3218 2013-09-13 Dan Bernstein <mitz@apple.com>
3220 [mac WK1] Introduce WebViewWillCloseNotification
3221 https://bugs.webkit.org/show_bug.cgi?id=121321
3223 Reviewed by Sam Weinig.
3225 * WebKit.exp: Exported WebViewWillCloseNotification.
3226 * WebView/WebView.mm:
3227 (-[WebView _close]): Send WebViewWillCloseNotification before closing the WebView.
3228 * WebView/WebViewPrivate.h: Declared WebViewWillCloseNotification.
3230 2013-09-13 Tim Horton <timothy_horton@apple.com>
3232 REGRESSION (r155615): Lots of reftests fail with single line or single pixel differences
3233 https://bugs.webkit.org/show_bug.cgi?id=121245
3235 Reviewed by Darin Adler.
3237 Similar to https://bugs.webkit.org/show_bug.cgi?id=120963,
3238 we need to manually ensure that some pieces of persistent
3239 CoreGraphics state are restored after PDFKit changes them.
3241 In this case, we bookend our restoration around the various
3242 _recursiveDisplay... functions that we also use in WebHTMLView.
3244 * WebView/WebPDFView.mm:
3245 (-[WebPDFView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
3246 (-[WebPDFView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
3247 (-[WebPDFView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
3248 (-[WebPDFView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
3250 2013-09-12 Anders Carlsson <andersca@apple.com>
3252 SharedBuffer::createNSData should return a RetainPtr<NSData>
3253 https://bugs.webkit.org/show_bug.cgi?id=121237
3255 Reviewed by Darin Adler.
3257 Update for WebCore changes. This also fixes a leak where we'd create an NSFileWrapper from NSData but never release the data.
3259 * WebView/WebDataSource.mm:
3260 (-[WebDataSource data]):
3261 * WebView/WebHTMLRepresentation.mm:
3262 (-[WebHTMLRepresentation documentSource]):
3263 * WebView/WebHTMLView.mm:
3264 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
3265 * WebView/WebResource.mm:
3266 (-[WebResource encodeWithCoder:]):
3267 (-[WebResource data]):
3269 2013-09-12 Mark Lam <mark.lam@apple.com>
3271 Change debug hooks to pass sourceID and position info via the DebuggerCallFrame.
3272 https://bugs.webkit.org/show_bug.cgi?id=121214.
3274 Reviewed by Geoffrey Garen.
3276 * webview/WebScriptDebugger.h:
3277 * WebView/WebScriptDebugger.mm:
3278 (WebScriptDebugger::WebScriptDebugger):
3279 (WebScriptDebugger::callEvent):
3280 (WebScriptDebugger::atStatement):
3281 (WebScriptDebugger::returnEvent):
3282 (WebScriptDebugger::exception):
3283 (WebScriptDebugger::willExecuteProgram):
3284 (WebScriptDebugger::didExecuteProgram):
3285 (WebScriptDebugger::didReachBreakpoint):
3287 2013-09-11 Gyuyoung Kim <gyuyoung.kim@samsung.com>
3289 Generate more HTML type checks and casting
3290 https://bugs.webkit.org/show_bug.cgi?id=121080
3292 Reviewed by Andreas Kling.
3294 Clean-up remained functions of HTML elements using auto-generated isFooElement(),
3295 and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
3297 Besides this patch clean-up unnecessary checks which are being supported by
3298 auto-generated isFooElement().
3300 No new tests, no behavior change.
3302 * Plugins/WebPluginController.mm:
3303 * WebCoreSupport/WebChromeClient.mm:
3304 (WebChromeClient::supportsFullscreenForNode):
3305 * WebView/WebView.mm:
3306 (-[WebView _enterFullscreenForNode:WebCore::]):
3308 2013-09-10 Daniel Bates <dabates@apple.com>
3310 [iOS] Upstream text autosizing
3311 https://bugs.webkit.org/show_bug.cgi?id=121111
3313 Reviewed by Andy Estes and Sam Weinig.
3315 * WebView/WebFrame.mm:
3316 (-[WebFrame resetTextAutosizingBeforeLayout]): Added.
3317 (-[WebFrame _setVisibleSize:]): Added.
3318 (-[WebFrame _setTextAutosizingWidth:]): Added.
3319 * WebView/WebFramePrivate.h:
3320 * WebView/WebPreferenceKeysPrivate.h:
3321 * WebView/WebPreferences.mm:
3322 (+[WebPreferences initialize]):
3323 (-[WebPreferences _setMinimumZoomFontSize:]): Added.
3324 (-[WebPreferences _minimumZoomFontSize]): Added.
3326 2013-09-09 Dean Jackson <dino@apple.com>
3328 [WebGL] Allow multithreaded OpenGL contexts
3329 https://bugs.webkit.org/show_bug.cgi?id=121062
3331 Reviewed by Simon Fraser.
3333 Expose a new preference "multithreadedWebGLEnabled".
3335 * WebView/WebPreferenceKeysPrivate.h:
3336 * WebView/WebPreferences.mm:
3337 (+[WebPreferences initialize]):
3338 (-[WebPreferences multithreadedWebGLEnabled]):
3339 (-[WebPreferences setMultithreadedWebGLEnabled:]):
3340 * WebView/WebPreferencesPrivate.h:
3341 * WebView/WebView.mm:
3342 (-[WebView _preferencesChanged:]):
3344 2013-09-09 Dean Jackson <dino@apple.com>
3346 Enable WebGL for OS X nightlies
3347 https://bugs.webkit.org/show_bug.cgi?id=121040
3349 Reviewed by Beth Dakin.
3351 * WebView/WebPreferences.mm:
3352 (+[WebPreferences initialize]): Set WebPreference to YES.
3354 2013-09-06 Ryosuke Niwa <rniwa@webkit.org>
3356 Range::ownerDocument should return Document&
3357 https://bugs.webkit.org/show_bug.cgi?id=120908
3359 Reviewed by Andreas Kling.
3361 * WebView/WebPDFView.mm:
3364 2013-09-05 Andreas Kling <akling@apple.com>
3366 ScrollView::children() should return a reference.
3367 <https://webkit.org/b/120795>
3369 Reviewed by Anders Carlsson.
3371 * WebView/WebView.mm:
3372 (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
3374 2013-09-04 Mark Rowe <mrowe@apple.com>
3376 <https://webkit.org/b/120707> Make WebKit's localizable strings mechanism usable under ARC
3378 WebKit's localizable strings mechanism is also used outside of WebKit so it needs to work
3379 both with and without ARC.
3381 Reviewed by Anders Carlsson.
3383 * Misc/WebLocalizableStrings.h: Mark the bundle member as unretained. This matches how the
3384 member is used within WebLocalizableStrings.mm.
3386 2013-09-02 Darin Adler <darin@apple.com>
3388 [Mac] No need for HardAutorelease, which is same as CFBridgingRelease
3389 https://bugs.webkit.org/show_bug.cgi?id=120569
3391 Reviewed by Andy Estes.
3393 * Misc/WebNSFileManagerExtras.mm:
3394 (-[NSFileManager _webkit_startupVolumeName]): Removed some unneeded locals.
3395 Got rid of the pointless ref/leakRef/HardAutorelease dance, and replaced it
3396 with a [[x copy] autorelease].
3398 * Misc/WebNSURLExtras.mm:
3399 (-[NSURL _web_URLWithLowercasedScheme]): Use CFBridgingRelease, and got rid
3400 of unneeded type casts.
3402 * Plugins/WebBasePluginPackage.mm:
3403 (+[WebBasePluginPackage preferredLocalizationName]): Use CFBridgingRelease.
3404 * WebView/WebPDFRepresentation.mm:
3405 (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Ditto.
3407 * WebView/WebView.mm:
3408 (+[WebView _setCacheModel:]): Use CFBridgingRelease and got rid of unneeded
3411 2013-08-30 Antti Koivisto <antti@apple.com>
3413 Remove code behind ENABLE(DIALOG_ELEMENT)
3414 https://bugs.webkit.org/show_bug.cgi?id=120467
3416 Reviewed by Darin Adler.
3418 * Configurations/FeatureDefines.xcconfig:
3420 2013-08-29 Sam Weinig <sam@webkit.org>
3422 Add ENABLE gaurds for Promises
3423 https://bugs.webkit.org/show_bug.cgi?id=120488
3425 Reviewed by Andreas Kling.
3427 * Configurations/FeatureDefines.xcconfig:
3429 2013-08-29 Joseph Pecoraro <pecoraro@apple.com>
3431 Web Inspector: Download Web Archive of Inspected Page
3432 https://bugs.webkit.org/show_bug.cgi?id=119774
3434 Reviewed by Timothy Hatcher.
3436 Update to support InspectorFrontendHost.save's new base64Encoded
3437 parameter. It means the incoming content is binary data, not a string.
3439 * WebCoreSupport/WebInspectorClient.h:
3440 * WebCoreSupport/WebInspectorClient.mm:
3441 (WebInspectorFrontendClient::save):
3443 2013-08-28 Chris Curtis <chris_curtis@apple.com>
3445 https://bugs.webkit.org/show_bug.cgi?id=119548
3446 Refactoring Exception throws.
3448 Reviewed by Geoffrey Garen.
3450 Moved setting an exception into the vm, These functions changed to use the new functionality.
3452 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3453 (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
3454 * Plugins/Hosted/ProxyInstance.mm:
3455 (WebKit::ProxyInstance::invokeMethod):
3457 2013-08-27 Anders Carlsson <andersca@apple.com>
3461 * Plugins/Hosted/ProxyInstance.h:
3462 * Plugins/Hosted/ProxyInstance.mm:
3463 (WebKit::ProxyInstance::methodNamed):
3464 (WebKit::ProxyInstance::fieldNamed):
3466 2013-08-23 Andy Estes <aestes@apple.com>
3468 Fix issues found by the Clang Static Analyzer
3469 https://bugs.webkit.org/show_bug.cgi?id=120230
3471 Reviewed by Darin Adler.
3473 * Misc/WebNSFileManagerExtras.mm:
3474 (-[NSFileManager _webkit_startupVolumeName]): Used HardAutorelease()
3475 instead of WebCFAutorelease().
3476 * Misc/WebNSObjectExtras.h: Removed definition of WebCFAutorelease().
3477 * Misc/WebNSURLExtras.mm:
3478 (-[NSURL _web_URLWithLowercasedScheme]): Used HardAutorelease()
3479 instead of WebCFAutorelease().
3480 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3481 (-[WebHostedNetscapePluginView createPluginLayer]): Stop leaking
3482 CGColors (CALayer retains its backgroundColor property despite the
3483 property attributes claiming otherwise).
3484 * Plugins/WebBasePluginPackage.mm:
3485 (+[WebBasePluginPackage preferredLocalizationName]): Used
3486 HardAutorelease() instead of WebCFAutorelease().
3487 * WebView/WebDeviceOrientationProviderMock.mm:
3488 (-[WebDeviceOrientationProviderMockInternal lastOrientation]): Stop
3489 leaking WebDeviceOrientations.
3490 * WebView/WebPDFRepresentation.mm:
3491 (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Used
3492 HardAutorelease() instead of WebCFAutorelease().
3493 * WebView/WebView.mm:
3494 (+[WebView _setCacheModel:]): Ditto.
3495 (-[WebView _removeObjectForIdentifier:]): Ditto.
3497 2013-08-26 Alexey Proskuryakov <ap@apple.com>
3499 [Mac] can-read-in-dragstart-event.html and can-read-in-copy-and-cut-events.html fail
3500 https://bugs.webkit.org/show_bug.cgi?id=113094
3502 Reviewed by Darin Adler.
3504 Return new pasteboard change count from all functions that change it.
3506 * WebCoreSupport/WebPlatformStrategies.h:
3507 * WebCoreSupport/WebPlatformStrategies.mm:
3508 (WebPlatformStrategies::copy):
3509 (WebPlatformStrategies::changeCount):
3510 (WebPlatformStrategies::addTypes):
3511 (WebPlatformStrategies::setTypes):
3512 (WebPlatformStrategies::setBufferForType):
3513 (WebPlatformStrategies::setPathnamesForType):
3514 (WebPlatformStrategies::setStringForType):
3516 2013-08-26 Andreas Kling <akling@apple.com>
3518 Unreviewed build fix.
3520 * WebView/WebFrame.mm:
3521 (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
3523 2013-08-26 Andreas Kling <akling@apple.com>
3525 WebCore: Let Page create the main Frame.
3526 <https://webkit.org/b/119964>
3528 Reviewed by Anders Carlsson.
3530 * WebCoreSupport/WebFrameLoaderClient.h:
3531 (WebFrameLoaderClient::setWebFrame):
3533 Make it possible to construct a WebFrameLoaderClient with a null WebFrame*.
3534 A WebFrame* is later hooked up with a call to setWebFrame().
3536 * WebView/WebFrame.mm:
3537 (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
3539 Customized this method to wrap the Page::mainFrame() instead of creating a
3542 * WebView/WebView.mm:
3543 (-[WebView _commonInitializationWithFrameName:groupName:]):
3545 Add a WebFrameLoaderClient to the PageClients passed to Page().
3547 2013-08-25 Darin Adler <darin@apple.com>
3549 Frame should not have a documentTypeString member function
3550 https://bugs.webkit.org/show_bug.cgi?id=120262
3552 Reviewed by Andreas Kling.
3554 * WebView/WebFrame.mm: Removed _stringWithDocumentTypeStringAndMarkupString:
3555 internal method, which was not used anywhere in WebKit. Internal methods are
3556 only for use within WebKit, as opposed to public and private methods that can
3558 * WebView/WebFrameInternal.h: Ditto.
3560 2013-08-24 Darin Adler <darin@apple.com>
3562 Frame::tree should return a reference instead of a pointer
3563 https://bugs.webkit.org/show_bug.cgi?id=120259
3565 Reviewed by Andreas Kling.
3567 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3568 (WebKit::NetscapePluginInstanceProxy::performRequest):
3569 * Plugins/WebBaseNetscapePluginView.mm:
3570 (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]):
3571 * Plugins/WebNetscapePluginView.mm:
3572 (-[WebNetscapePluginView loadPluginRequest:]):
3573 * WebCoreSupport/WebFrameLoaderClient.mm:
3574 (applyAppleDictionaryApplicationQuirkNonInlinePart):
3575 (WebFrameLoaderClient::prepareForDataSourceReplacement):
3576 (WebFrameLoaderClient::createFrame):
3577 * WebView/WebFrame.mm:
3578 (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
3579 (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
3580 (-[WebFrame _unmarkAllBadGrammar]):
3581 (-[WebFrame _unmarkAllMisspellings]):
3582 (-[WebFrame _atMostOneFrameHasSelection]):
3583 (-[WebFrame _findFrameWithSelection]):
3584 (-[WebFrame _drawRect:contentsOnly:]):
3585 (-[WebFrame _isDescendantOfFrame:]):
3586 (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
3587 (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
3589 (-[WebFrame findFrameNamed:]):
3590 (-[WebFrame parentFrame]):
3591 (-[WebFrame childFrames]):
3592 * WebView/WebView.mm:
3593 (-[WebView _attachScriptDebuggerToAllFrames]):
3594 (-[WebView _detachScriptDebuggerFromAllFrames]):
3595 (-[WebView _clearMainFrameName]):
3596 (-[WebView _isUsingAcceleratedCompositing]):
3597 (-[WebView _isSoftwareRenderable]):
3598 (-[WebView setHostWindow:]):
3600 Use tree(). instead of tree()->.
3602 2013-08-23 Beth Dakin <bdakin@apple.com>
3604 REGRESSION (r132545): Some PDFs generated by WebKit are blank when viewed in
3606 https://bugs.webkit.org/show_bug.cgi?id=120240
3608 <rdar://problem/14634453>
3610 Reviewed by Anders Carlsson.
3612 Hook up new WebSystemInterface API to find out if the current context is the PDF
3615 * WebCoreSupport/WebSystemInterface.mm:
3616 (InitWebCoreSystemInterface):
3618 2013-08-20 Pratik Solanki <psolanki@apple.com>
3620 <https://webkit.org/b/120029> Document::markers() should return a reference
3622 Reviewed by Andreas Kling.
3624 Document::m_markers is never NULL so return a reference from Document::markers(). Also mark
3625 m_markers as const and initialize it in member initialization.
3627 * WebView/WebFrame.mm:
3628 (-[WebFrame _unmarkAllBadGrammar]):
3629 (-[WebFrame _unmarkAllMisspellings]):
3630 * WebView/WebHTMLView.mm:
3631 (-[WebHTMLView unmarkAllTextMatches]):
3632 (-[WebHTMLView rectsForTextMatches]):
3634 2013-08-19 Ryosuke Niwa <rniwa@webkit.org>
3636 <https://webkit.org/b/120049> Delete code for Snow Leopard
3638 Reviewed by Benjamin Poulain.
3640 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
3641 (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
3642 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
3643 * Misc/WebNSControlExtras.m:
3644 (-[NSControl sizeToFitAndAdjustWindowHeight]):
3645 * Misc/WebNSFileManagerExtras.mm:
3646 * WebCoreSupport/WebEditorClient.mm:
3647 (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
3648 (WebEditorClient::getGuessesForWord):
3649 * WebCoreSupport/WebFrameLoaderClient.mm:
3650 (WebFrameLoaderClient::dispatchDidLayout):
3651 (WebFrameLoaderClient::provisionalLoadStarted):
3652 * WebCoreSupport/WebSystemInterface.mm:
3653 (InitWebCoreSystemInterface):
3655 * WebView/WebDynamicScrollBarsView.mm:
3656 (-[WebDynamicScrollBarsView scrollWheel:]):
3657 * WebView/WebFullScreenController.mm:
3658 (convertRectToScreen):
3659 (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
3660 (-[WebFullScreenController exitFullScreen]):
3661 * WebView/WebHTMLView.mm:
3662 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
3663 (-[WebHTMLView removeMouseMovedObserver]):
3664 (-[WebHTMLView windowDidBecomeKey:]):
3665 (-[WebHTMLView windowDidResignKey:]):
3666 * WebView/WebView.mm:
3667 (-[WebView _deviceScaleFactor]):
3669 2013-08-19 Ryosuke Niwa <rniwa@webkit.org>
3671 <https://webkit.org/b/120051> Remove the Mail thread workaround
3673 Reviewed by Sam Weinig.
3675 Remove the workaround for a very old version of Mail added in r39455.
3677 * WebView/WebArchive.mm:
3678 (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
3679 (-[WebArchive mainResource]):
3680 (-[WebArchive subresources]):
3681 (-[WebArchive subframeArchives]):
3682 * WebView/WebFrameView.mm:
3683 (-[WebFrameView initWithFrame:]):
3684 * WebView/WebResource.mm:
3685 (-[WebResource data]):
3686 (-[WebResource URL]):
3687 (-[WebResource MIMEType]):
3688 (-[WebResource textEncodingName]):
3689 (-[WebResource frameName]):
3690 (-[WebResource _ignoreWhenUnarchiving]):
3691 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
3692 (-[WebResource _suggestedFilename]):
3693 (-[WebResource _response]):
3694 (-[WebResource _stringValue]):
3696 2013-08-19 Pratik Solanki <psolanki@apple.com>
3698 <https://webkit.org/b/119918> Frame::selection() should return a reference
3700 Reviewed by Darin Adler.
3702 m_selection is never NULL so return a reference from Frame::selection(). Also removed some
3703 unnecessary null checks and assert diff ts exposed as a result.
3705 * Plugins/WebPluginController.mm:
3706 * WebView/WebFrame.mm:
3707 (-[WebFrame _hasSelection]):
3708 (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
3709 (-[WebFrame _selectionGranularity]):
3710 (-[WebFrame _convertToNSRange:]):
3711 (-[WebFrame _convertToDOMRange:]):
3712 (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
3713 (-[WebFrame _typingStyle]):
3714 (-[WebFrame _selectedNSRange]):
3715 (-[WebFrame _selectNSRange:]):
3716 (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
3717 (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
3718 * WebView/WebHTMLRepresentation.mm:
3719 (-[WebHTMLRepresentation currentForm]):
3720 * WebView/WebHTMLView.mm:
3721 (-[WebHTMLView readSelectionFromPasteboard:]):
3722 (-[WebHTMLView _selectedRange]):
3723 (-[WebHTMLView _hasSelection]):
3724 (-[WebHTMLView _hasSelectionOrInsertionPoint]):
3725 (-[WebHTMLView _hasInsertionPoint]):
3726 (-[WebHTMLView _isEditable]):
3727 (-[WebHTMLView jumpToSelection:]):
3728 (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
3729 (-[WebHTMLView maintainsInactiveSelection]):
3731 (isInPasswordField):
3732 (-[WebHTMLView centerSelectionInVisibleArea:]):
3733 (-[WebHTMLView _canSmartCopyOrDelete]):
3734 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
3735 (-[WebHTMLView _updateSelectionForInputManager]):
3736 (-[WebHTMLView selectionRect]):
3737 (-[WebHTMLView selectionTextRects]):
3738 (-[WebHTMLView selectionImageRect]):
3739 (-[WebHTMLView selectAll]):
3740 (-[WebHTMLView deselectAll]):
3741 (-[WebHTMLView selectedAttributedString]):
3742 * WebView/WebTextCompletionController.mm:
3743 (-[WebTextCompletionController doCompletion]):
3744 * WebView/WebView.mm:
3745 (-[WebView setSelectedDOMRange:affinity:]):
3746 (-[WebView selectedDOMRange]):
3747 (-[WebView selectionAffinity]):
3748 (-[WebView setEditable:]):
3749 (-[WebView _selectionIsCaret]):
3750 (-[WebView _selectionIsAll]):
3752 2013-08-17 Darin Adler <darin@apple.com>
3754 <https://webkit.org/b/119941> Make Page::dragController return a reference
3756 Reviewed by Andreas Kling.
3758 * WebView/WebFrameView.mm:
3759 (-[WebFrameView _setDocumentView:]):
3760 * WebView/WebHTMLView.mm:
3761 (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
3762 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
3763 * WebView/WebView.mm:
3764 (-[WebView _setInitiatedDrag:]):
3765 (-[WebView draggingEntered:]):
3766 (-[WebView draggingUpdated:]):
3767 (-[WebView draggingExited:]):
3768 (-[WebView performDragOperation:]):
3769 (-[WebView moveDragCaretToPoint:]):
3770 (-[WebView removeDragCaret]):
3773 2013-08-16 Pratik Solanki <psolanki@apple.com>
3775 <https://webkit.org/b/119852> Frame::scriptController() should return a reference
3777 Reviewed by Andreas Kling.
3779 m_script is never NULL so we can just return a reference. Also remove some pointless null
3780 checks as a result of doing this.
3782 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3783 (WebKit::NetscapePluginInstanceProxy::cleanup):
3784 (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
3785 (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
3786 (WebKit::NetscapePluginInstanceProxy::evaluate):
3787 (WebKit::NetscapePluginInstanceProxy::invoke):
3788 (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3789 (WebKit::NetscapePluginInstanceProxy::construct):
3790 (WebKit::NetscapePluginInstanceProxy::getProperty):
3791 (WebKit::NetscapePluginInstanceProxy::setProperty):
3792 (WebKit::NetscapePluginInstanceProxy::removeProperty):
3793 (WebKit::NetscapePluginInstanceProxy::hasProperty):
3794 (WebKit::NetscapePluginInstanceProxy::hasMethod):
3795 (WebKit::NetscapePluginInstanceProxy::enumerate):
3796 (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
3797 * Plugins/WebNetscapePluginView.mm:
3798 (-[WebNetscapePluginView getVariable:value:]):
3799 (-[WebNetscapePluginView _destroyPlugin]):
3800 * Plugins/WebPluginController.mm:
3801 * WebCoreSupport/WebFrameLoaderClient.mm:
3802 * WebCoreSupport/WebInspectorClient.mm:
3803 (WebInspectorFrontendClient::save):
3804 (WebInspectorFrontendClient::append):
3805 * WebView/WebFrame.mm:
3806 (-[WebFrame _attachScriptDebugger]):
3807 (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
3808 (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
3809 (-[WebFrame _globalContextForScriptWorld:]):
3810 (-[WebFrame jsWrapperForNode:inScriptWorld:]):
3811 (-[WebFrame windowObject]):
3812 (-[WebFrame globalContext]):
3813 (-[WebFrame javaScriptContext]):
3814 * WebView/WebScriptDebugger.mm:
3815 (WebScriptDebugger::initGlobalCallFrame):
3816 (WebScriptDebugger::callEvent):
3817 * WebView/WebView.mm:
3818 (-[WebView windowScriptObject]):
3819 (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
3821 2013-08-15 Anders Carlsson <andersca@apple.com>
3823 <https://webkit.org/b/119859> Frame::loader() should return a reference
3825 Reviewed by Andreas Kling.
3827 * Plugins/Hosted/HostedNetscapePluginStream.mm:
3828 (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
3829 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3830 (WebKit::NetscapePluginInstanceProxy::performRequest):
3831 (WebKit::NetscapePluginInstanceProxy::loadRequest):
3832 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3833 (-[WebHostedNetscapePluginView pluginView:receivedResponse:]):
3834 * Plugins/WebBaseNetscapePluginView.mm:
3835 (-[WebBaseNetscapePluginView requestWithURLCString:]):
3836 * Plugins/WebNetscapePluginStream.mm:
3837 (WebNetscapePluginStream::WebNetscapePluginStream):
3838 * Plugins/WebNetscapePluginView.mm:
3839 (-[WebNetscapePluginView loadStream]):
3840 (-[WebNetscapePluginView pluginView:receivedResponse:]):
3841 (-[WebNetscapePluginView loadPluginRequest:]):
3842 (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
3843 * Plugins/WebPluginController.mm:
3844 * WebCoreSupport/WebFrameLoaderClient.mm:
3845 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
3846 (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
3847 (WebFrameLoaderClient::dispatchWillSubmitForm):
3848 (WebFrameLoaderClient::updateGlobalHistory):
3849 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
3850 (WebFrameLoaderClient::restoreViewState):
3851 (WebFrameLoaderClient::transitionToCommittedForNewPage):
3852 (WebFrameLoaderClient::createFrame):
3853 * WebCoreSupport/WebFrameNetworkingContext.mm:
3854 (WebFrameNetworkingContext::blockedError):
3855 * WebCoreSupport/WebPlatformStrategies.mm:
3856 (WebPlatformStrategies::getPluginInfo):
3857 * WebView/WebFrame.mm:
3859 (-[WebFrame _dataSource]):
3860 (-[WebFrame _canProvideDocumentSource]):
3861 (-[WebFrame _commitData:]):
3862 (-[WebFrame _firstLayoutDone]):
3863 (-[WebFrame _loadType]):
3864 (-[WebFrame _cacheabilityDictionary]):
3865 (-[WebFrame _clearOpener]):
3866 (-[WebFrame provisionalDataSource]):
3867 (-[WebFrame dataSource]):
3868 (-[WebFrame loadRequest:]):
3869 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
3870 (-[WebFrame loadArchive:]):
3871 (-[WebFrame stopLoading]):
3872 (-[WebFrame reload]):
3873 (-[WebFrame reloadFromOrigin]):
3874 * WebView/WebHTMLRepresentation.mm:
3875 (-[WebHTMLRepresentation receivedData:withDataSource:]):
3876 * WebView/WebHTMLView.mm:
3877 (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
3878 * WebView/WebPDFView.mm:
3879 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3880 * WebView/WebRenderLayer.mm:
3881 (-[WebRenderLayer initWithWebFrame:]):
3882 * WebView/WebRenderNode.mm:
3883 (-[WebRenderNode _initWithCoreFrame:]):
3884 * WebView/WebView.mm:
3885 (-[WebView _close]):
3886 (-[WebView _loadBackForwardListFromOtherView:]):
3887 (-[WebView _cachedResponseForURL:]):
3888 (-[WebView setCustomTextEncodingName:]):
3889 (-[WebView shouldClose]):
3891 2013-08-15 Anders Carlsson <andersca@apple.com>
3893 <https://webkit.org/b/119854> REGRESSION (r153379): Serious drawing issues with WebViews
3894 <rdar://problem/14698870>
3896 Reviewed by Simon Fraser.
3898 Don't set aside subviews if they have already been set aside.
3900 * WebView/WebHTMLView.mm:
3901 (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
3903 2013-08-15 Eric Carlson <eric.carlson@apple.com>
3905 [Mac] Remove "legacy" media UI
3906 https://bugs.webkit.org/show_bug.cgi?id=119752
3908 Reviewed by Jer Noble.
3910 * WebCoreSupport/WebSystemInterface.mm:
3911 (InitWebCoreSystemInterface): Remove MediaControllerThemeAvailable.
3913 2013-08-14 Tim Horton <timothy_horton@apple.com>
3915 Remotely hosted plugins don’t work in window-server-hosted WebKit1 views
3916 https://bugs.webkit.org/show_bug.cgi?id=119709
3917 <rdar://problem/14717572>
3919 Reviewed by Anders Carlsson.
3921 * Plugins/Hosted/NetscapePluginHostManager.h:
3922 Add hostLayersInWindowServer argument to instantiatePlugin.
3924 * Plugins/Hosted/NetscapePluginHostManager.mm:
3925 (WebKit::NetscapePluginHostManager::instantiatePlugin):
3926 Add hostLayersInWindowServer argument to instantiatePlugin, and pass it through to WebKitPluginHost.
3928 * Plugins/Hosted/NetscapePluginHostProxy.mm:
3929 (WKPCLayerHostingModeChanged):
3930 Forward the notification that the plugin host changed its layer hosting mode
3931 to the instance proxy.
3933 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3934 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3935 (WebKit::NetscapePluginInstanceProxy::setShouldHostLayersInWindowServer):
3936 Ask the plugin host to re-host its layers when the layer hosting mode changes.
3938 (WebKit::NetscapePluginInstanceProxy::layerHostingModeChanged):
3939 Inform the WebHostedNetscapePluginView of the new layer hosting mode
3940 when it changes. Also, store the new CAContext ID.
3942 * Plugins/Hosted/WebHostedNetscapePluginView.h:
3943 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3944 (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
3945 Determine whether the WebView's current window uses window-server hosting for its layers.
3947 (-[WebHostedNetscapePluginView createPlugin]):
3948 Drive-by spelling fix.
3949 Factor _pluginLayer initialization out into createPluginLayer.
3950 Instantiate the plugin with the appropriate layer hosting mode.
3952 (-[WebHostedNetscapePluginView createPluginLayer]):
3954 (-[WebHostedNetscapePluginView setHostsLayersInWindowServer:]):
3955 Create a new _pluginLayer if the layer hosting mode changes.
3956 Attach the new _pluginLayer to our parent layer.
3958 (-[WebHostedNetscapePluginView updateAndSetWindow]):
3959 Inform the NetscapePluginInstanceProxy if the layer hosting mode changes,
3960 so it can inform the plugin host. We will asynchronously receive a reply
3961 with the new hosting mode and renderContextID and switch to the new CAContext,
3962 in setHostsLayersInWindowServer:.
3964 * Plugins/Hosted/WebKitPluginClient.defs:
3965 * Plugins/Hosted/WebKitPluginHost.defs:
3967 2013-08-14 Tim Horton <timothy_horton@apple.com>
3969 REGRESSION (r153877): Plugin scanning slows creation of WebViews
3970 https://bugs.webkit.org/show_bug.cgi?id=119665
3971 <rdar://problem/14716549>
3973 Reviewed by Darin Adler.
3975 * Plugins/WebPluginDatabase.h:
3976 * Plugins/WebPluginDatabase.mm:
3977 (+[WebPluginDatabase sharedDatabaseIfExists]): Added.
3979 * WebCoreSupport/WebPlatformStrategies.mm:
3980 (WebPlatformStrategies::refreshPlugins):
3981 Only refresh the plugin database if it's already been loaded.
3983 2013-08-14 Jer Noble <jer.noble@apple.com>
3985 Revert r154019; causes >50 tests to fail on WebKit1 bots.
3987 * Plugins/Hosted/NetscapePluginHostManager.h:
3988 * Plugins/Hosted/NetscapePluginHostManager.mm:
3989 (WebKit::NetscapePluginHostManager::instantiatePlugin):
3990 * Plugins/Hosted/NetscapePluginHostProxy.mm:
3991 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3992 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3993 * Plugins/Hosted/WebHostedNetscapePluginView.h:
3994 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3995 (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
3996 (-[WebHostedNetscapePluginView createPlugin]):
3997 (-[WebHostedNetscapePluginView updateAndSetWindow]):
3998 * Plugins/Hosted/WebKitPluginClient.defs:
3999 * Plugins/Hosted/WebKitPluginHost.defs:
4001 2013-08-13 Filip Pizlo <fpizlo@apple.com>
4003 Foo::s_info should be Foo::info(), so that you can change how the s_info is actually linked
4004 https://bugs.webkit.org/show_bug.cgi?id=119770
4006 Reviewed by Mark Hahnenberg.
4008 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
4009 (WebKit::getObjectID):
4010 (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
4011 (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
4012 * Plugins/Hosted/ProxyInstance.mm:
4013 (WebKit::ProxyRuntimeMethod::finishCreation):
4014 (WebKit::ProxyInstance::invokeMethod):
4015 * Plugins/Hosted/ProxyRuntimeObject.h:
4016 (WebKit::ProxyRuntimeObject::createStructure):
4017 * WebView/WebView.mm:
4018 (aeDescFromJSValue):
4020 2013-08-13 Anders Carlsson <andersca@apple.com>
4022 <https://webkit.org/b/119777> Get rid of two gotos
4024 Reviewed by Tim Horton.
4026 * WebView/WebHTMLView.mm:
4027 (-[WebHTMLView mouseDown:]):
4028 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
4030 2013-08-13 Tim Horton <timothy_horton@apple.com>
4032 Remotely hosted plugins don’t work in window-server-hosted WebKit1 views
4033 https://bugs.webkit.org/show_bug.cgi?id=119709
4034 <rdar://problem/14717572>
4036 Reviewed by Anders Carlsson.
4038 * Plugins/Hosted/NetscapePluginHostManager.h:
4039 Add hostLayersInWindowServer argument to instantiatePlugin.
4041 * Plugins/Hosted/NetscapePluginHostManager.mm:
4042 (WebKit::NetscapePluginHostManager::instantiatePlugin):
4043 Add hostLayersInWindowServer argument to instantiatePlugin, and pass it through to WebKitPluginHost.
4045 * Plugins/Hosted/NetscapePluginHostProxy.mm:
4046 (WKPCLayerHostingModeChanged):
4047 Forward the notification that the plugin host changed its layer hosting mode
4048 to the instance proxy.
4050 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
4051 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
4052 (WebKit::NetscapePluginInstanceProxy::setShouldHostLayersInWindowServer):
4053 Ask the plugin host to re-host its layers when the layer hosting mode changes.
4055 (WebKit::NetscapePluginInstanceProxy::layerHostingModeChanged):
4056 Inform the WebHostedNetscapePluginView of the new layer hosting mode
4057 when it changes. Also, store the new CAContext ID.
4059 * Plugins/Hosted/WebHostedNetscapePluginView.h:
4060 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
4061 (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
4062 Determine whether the WebView's current window uses window-server hosting for its layers.
4064 (-[WebHostedNetscapePluginView createPlugin]):
4065 Drive-by spelling fix.
4066 Factor _pluginLayer initialization out into createPluginLayer.
4067 Instantiate the plugin with the appropriate layer hosting mode.
4069 (-[WebHostedNetscapePluginView createPluginLayer]):
4071 (-[WebHostedNetscapePluginView setHostsLayersInWindowServer:]):
4072 Create a new _pluginLayer if the layer hosting mode changes.
4073 Attach the new _pluginLayer to our parent layer.
4075 (-[WebHostedNetscapePluginView updateAndSetWindow]):
4076 Inform the NetscapePluginInstanceProxy if the layer hosting mode changes,
4077 so it can inform the plugin host. We will asynchronously receive a reply
4078 with the new hosting mode and renderContextID and switch to the new CAContext,
4079 in setHostsLayersInWindowServer:.
4081 * Plugins/Hosted/WebKitPluginClient.defs:
4082 * Plugins/Hosted/WebKitPluginHost.defs:
4084 2013-08-08 Tim Horton <timothy_horton@apple.com>
4086 navigator.plugins has plugins in it when plugins are disabled
4087 https://bugs.webkit.org/show_bug.cgi?id=119607
4088 <rdar://problem/14678030>
4090 Reviewed by Anders Carlsson.
4092 * WebCoreSupport/WebPlatformStrategies.mm:
4093 (WebPlatformStrategies::getPluginInfo):
4094 If plugins are disabled for the given page, give WebCore an empty list of
4095 plugins. If WebKit1 had any application plugins, we'd return just them
4098 2013-08-06 Stephanie Lewis <slewis@apple.com>
4100 Update Order Files for Safari
4101 <rdar://problem/14517392>
4107 2013-08-04 Sam Weinig <sam@webkit.org>
4109 Remove support for HTML5 MicroData
4110 https://bugs.webkit.org/show_bug.cgi?id=119480
4112 Reviewed by Anders Carlsson.
4114 * Configurations/FeatureDefines.xcconfig:
4116 2013-07-23 David Farler <dfarler@apple.com>
4118 Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
4119 https://bugs.webkit.org/show_bug.cgi?id=117762
4121 Reviewed by Mark Rowe.
4123 * Configurations/DebugRelease.xcconfig:
4124 Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS, LDFLAGS.
4125 * Configurations/WebKit.xcconfig:
4126 Add ASAN_OTHER_LDFLAGS.
4128 2013-07-26 Mark Rowe <mrowe@apple.com>
4130 Logging should be configurable using human-readable channel names rather than crazy bitmasks
4131 <http://webkit.org/b/119031>
4133 Implement shared logic for initializing logging channels based on human-readable channel names in WTF,
4134 and rework the WebCore, WebKit and WebKit2 logging initialization on top of it.
4136 Logging channels may now be enabled by providing a comma-separated list of channel names, with the special
4137 "all" name enabling all channels. Channel names prefixed with a leading "-" will result in the named channel
4138 being disabled. For instance, specifying "all,-history,-loading" will result in all logging channels except
4139 for history and loading being enabled.
4141 For OS X developers, this also changes the name of the user defaults used to enable logging. This is done to allow
4142 the old user defaults to remain set for those people that need to switch between version of WebKit before and
4143 after this change. Where the old user default keys were WebCoreLogLevel, WebKitLogLevel and WebKit2LogLevel,
4144 the new user default keys are WebCoreLogging, WebKitLogging and WebKit2Logging.
4146 For GTK developers, this changes the separator used in the WEBKIT_DEBUG environment variable to a comma for
4147 consistency with the other platforms and to enable more code sharing.