1 2014-01-23 Jon Honeycutt <jhoneycutt@apple.com>
3 Assertion failure in WebCore::PseudoElement::didRecalcStyle()
4 <https://bugs.webkit.org/show_bug.cgi?id=126761>
5 <rdar://problem/15793540>
7 Some areas of code were erroneously checking the value of
8 RenderObject::isImage() rather than RenderObject::isRenderImage()
9 before casting the object to RenderImage.
11 This could lead to an assertion failure for RenderListMarkers, which
12 may return true for isImage(), but are not RenderImages.
14 Reviewed by Andy Estes.
16 * Misc/WebNSPasteboardExtras.mm:
17 (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
18 Check isRenderImage() rather than isImage() before casting to
21 2014-01-23 Joseph Pecoraro <pecoraro@apple.com>
23 Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
24 https://bugs.webkit.org/show_bug.cgi?id=127409
26 Reviewed by Geoffrey Garen.
28 * WebCoreSupport/WebInspectorClient.mm:
29 (-[WebInspectorWindowController destroyInspectorView:]):
30 Include InspectorDisconnectReason.
32 2014-01-23 Max Vujovic <mvujovic@adobe.com>
34 Remove CSS Custom Filters code and tests
35 https://bugs.webkit.org/show_bug.cgi?id=127382
37 Reviewed by Simon Fraser.
39 * Configurations/FeatureDefines.xcconfig:
40 * WebView/WebPreferenceKeysPrivate.h:
41 * WebView/WebPreferences.mm:
42 (+[WebPreferences initialize]):
43 * WebView/WebPreferencesPrivate.h:
45 (-[WebView _preferencesChanged:]):
47 2014-01-22 Myles C. Maxfield <mmaxfield@apple.com>
49 Remove CSS3_TEXT_DECORATION define
50 https://bugs.webkit.org/show_bug.cgi?id=127333
52 Reviewed by Simon Fraser.
54 This is required for unprefixing the text-decoration-* CSS properties.
56 * Configurations/FeatureDefines.xcconfig:
58 2014-01-22 Dan Bernstein <mitz@apple.com>
60 Build fix for iOS clients of WebUIDelegatePrivate.h.
62 * WebView/WebUIDelegatePrivate.h: Ensure that ENABLE_DASHBOARD_SUPPORT is defined on iOS.
64 2014-01-21 Dan Bernstein <mitz@apple.com>
66 Added a method declaration that was missed in r161185.
68 Reviewed by Sam Weinig.
70 * WebView/WebViewPrivate.h: Declared -removeVisitedLink:.
72 2014-01-21 Commit Queue <commit-queue@webkit.org>
74 Unreviewed, rolling out r162452.
75 http://trac.webkit.org/changeset/162452
76 https://bugs.webkit.org/show_bug.cgi?id=127366
78 broke a few tests on all Mac WebKit1 bots (Requested by
82 (-[WebView _windowWillOrderOnScreen:]):
83 (-[WebView _windowWillOrderOffScreen:]):
85 2014-01-21 Gavin Barraclough <barraclough@apple.com>
87 Change Page, FocusController to use ViewState
88 https://bugs.webkit.org/show_bug.cgi?id=126533
90 Reviewed by Tim Horton.
92 These classes currently maintain a set of separate fields to represent the view state;
93 combine these into a single field, and allow WebPage to send the combined update rather
94 than individual changes.
96 Maintain existing interface for WebKit1 clients.
99 (-[WebView _windowWillOrderOnScreen:]):
100 (-[WebView _windowWillOrderOffScreen:]):
101 - remove calls to FocusController::setContentIsVisible, these are redundant
102 (this is handled when page visibility is set).
104 2014-01-20 Jeremy Jones <jeremyj@apple.com>
106 Add AVKit fullscreen video interface.
107 https://bugs.webkit.org/show_bug.cgi?id=126818
109 Reviewed by Eric Carlson.
111 * WebCoreSupport/WebChromeClient.h:
112 * WebCoreSupport/WebChromeClient.mm:
113 (WebChromeClient::supportsFullscreenForNode):
114 Enable *FullscreenForNode for HTMLMediaElement for iOS
116 * WebView/WebPreferenceKeysPrivate.h:
117 * WebView/WebPreferences.mm:
118 (+[WebPreferences initialize]):
119 (-[WebPreferences mediaPlaybackFullscreenAVKit]):
120 (-[WebPreferences setMediaPlaybackFullscreenAVKit:]):
121 * WebView/WebPreferencesPrivate.h:
122 * WebView/WebView.mm:
123 (-[WebView _preferencesChanged:]):
124 (-[WebView _enterFullscreenForNode:WebCore::]):
125 * WebView/WebViewInternal.h:
126 Add a disabled pref mediaPlaybackFullscreenAVKit.
127 Use WebVideoFullscreenControllerAVKit on iOS
129 2014-01-18 Brian Burg <bburg@apple.com>
131 Web Inspector: Page should use std::unique_ptr for InspectorController
132 https://bugs.webkit.org/show_bug.cgi?id=127068
134 Reviewed by Joseph Pecoraro.
136 Convert call sites to use a InspectorController reference.
137 Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
139 * WebCoreSupport/WebInspectorClient.mm:
140 (WebInspectorClient::openInspectorFrontend):
141 (-[WebInspectorWindowController destroyInspectorView:]):
142 * WebInspector/WebInspector.mm:
143 (-[WebInspector showWindow]):
144 (-[WebInspector isJavaScriptProfilingEnabled]):
145 (-[WebInspector setJavaScriptProfilingEnabled:]):
146 (-[WebInspector close:]):
147 (-[WebInspector evaluateInFrontend:callId:script:]):
148 * WebInspector/WebNodeHighlighter.mm:
149 (-[WebNodeHighlighter highlight]):
151 2014-01-18 Anders Carlsson <andersca@apple.com>
153 Remove ENABLE_THREADED_HTML_PARSER defines everywhere
154 https://bugs.webkit.org/show_bug.cgi?id=127225
156 Reviewed by Andreas Kling.
158 This concludes the removal of over 8.8 million lines of threaded parser code.
160 * Configurations/FeatureDefines.xcconfig:
162 2014-01-17 Anders Carlsson <andersca@apple.com>
164 Clean up PageCache classes
165 https://bugs.webkit.org/show_bug.cgi?id=127202
167 Reviewed by Andreas Kling.
169 * WebCoreSupport/WebFrameLoaderClient.mm:
170 (WebFrameLoaderClient::savePlatformDataToCachedFrame):
171 (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
173 2014-01-17 Anders Carlsson <andersca@apple.com>
175 Remove another unused FrameLoaderClient callback
176 https://bugs.webkit.org/show_bug.cgi?id=127192
178 Reviewed by Dan Bernstein.
180 * WebCoreSupport/WebFrameLoaderClient.h:
181 * WebCoreSupport/WebFrameLoaderClient.mm:
183 2014-01-17 Anders Carlsson <andersca@apple.com>
185 Move didPerformFirstNavigation() logic to -[WebView _didCommitLoadForFrame:]
186 https://bugs.webkit.org/show_bug.cgi?id=127189
188 Reviewed by Dan Bernstein.
190 This is a first step towards completely eliminating the didPerformFirstNavigation() client callback.
192 * WebCoreSupport/WebFrameLoaderClient.h:
193 * WebCoreSupport/WebFrameLoaderClient.mm:
194 Remove didPerformFirstNavigation() implementation.
196 * WebView/WebView.mm:
197 (-[WebView _checkDidPerformFirstNavigation]):
198 Check if we have both a current item and a previous item which indicates that we've navigated once.
199 The old code was called before there was a current item but since this is called from _didCommitLoadForFrame
200 we have to check that there's a current item as well.
202 (-[WebView _didCommitLoadForFrame:]):
203 Call _didCommitLoadForFrame.
205 * WebView/WebViewData.h:
208 2014-01-17 Alexey Proskuryakov <ap@apple.com>
212 * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
213 NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain is not part of NSHTTPCookieAcceptPolicy enum.
215 2014-01-16 Daniel Bates <dabates@apple.com>
217 [iOS] MobileSafari build fix. Declare iOS-specific method mainFrameIconURL
219 For now, add mainFrameIconURL() to WebView.h. We should further investigate its
220 usage and API/SPI status.
224 2014-01-16 Alexey Proskuryakov <ap@apple.com>
226 [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
227 https://bugs.webkit.org/show_bug.cgi?id=127139
229 Reviewed by Brady Eidson.
231 * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
234 2014-01-16 Daniel Bates <dabates@apple.com>
236 [iOS] Fix UIKit build warning about undefined macro ENABLE_NETSCAPE_PLUGIN_API
238 * WebView/WebFramePrivate.h: Wrap use of ENABLE_NETSCAPE_PLUGIN_API in TARGET_OS_IPHONE.
240 2014-01-16 Anders Carlsson <andersca@apple.com>
242 Change all uses of FINAL to final now that all our compilers support it
243 https://bugs.webkit.org/show_bug.cgi?id=127142
245 Reviewed by Benjamin Poulain.
247 * WebCoreSupport/WebUserMediaClient.h:
248 * WebView/WebScriptDebugger.h:
250 2014-01-16 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
252 Remove workaround for compilers not supporting explicit override control
253 https://bugs.webkit.org/show_bug.cgi?id=127111
255 Reviewed by Anders Carlsson.
257 Now all compilers support explicit override control, this workaround can be removed.
259 * Storage/WebDatabaseManagerClient.h:
260 * Storage/WebStorageTrackerClient.h:
261 * WebCoreSupport/WebAlternativeTextClient.h:
262 * WebCoreSupport/WebChromeClient.h:
263 * WebCoreSupport/WebContextMenuClient.h:
264 * WebCoreSupport/WebDeviceOrientationClient.h:
265 * WebCoreSupport/WebDragClient.h:
266 * WebCoreSupport/WebEditorClient.h:
267 * WebCoreSupport/WebFrameLoaderClient.h:
268 * WebCoreSupport/WebFrameNetworkingContext.h:
269 * WebCoreSupport/WebGeolocationClient.h:
270 * WebCoreSupport/WebIconDatabaseClient.h:
271 * WebCoreSupport/WebInspectorClient.h:
272 * WebCoreSupport/WebNotificationClient.h:
273 * WebCoreSupport/WebPlatformStrategies.h:
274 * WebCoreSupport/WebProgressTrackerClient.h:
275 * WebCoreSupport/WebUserMediaClient.h:
276 * WebView/WebScriptDebugger.h:
277 * WebView/WebViewData.h:
279 2014-01-16 Andy Estes <aestes@apple.com>
281 [iOS] Fix build issues with exported headers
283 * DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
285 * MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
286 rules so that WebCoreFrameScrollView won't inadvertently get changed to
287 WebKitFrameScrollView.
288 * Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
289 order to maintain source compatibility.
290 * Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
291 * Plugins/WebPluginPrivate.h: Removed.
292 * Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
293 with ENABLE_SQL_DATABASE.
294 * WebView/WebViewPrivate.h: Added declaration of
295 -[WebView _touchEventRegions] for source compatibility.
297 2014-01-15 Benjamin Poulain <bpoulain@apple.com>
299 Fix the iOS build after r162114
303 * WebView/WebViewPrivate.h: I forgot to remove the declaration, fix that.
305 2014-01-15 Benjamin Poulain <bpoulain@apple.com>
307 Move user agent code to WebCore and unify some code between OS X and iOS
308 https://bugs.webkit.org/show_bug.cgi?id=127080
310 Reviewed by Sam Weinig.
312 * WebCoreSupport/WebSystemInterface.mm:
313 (InitWebCoreSystemInterface):
314 * WebView/WebView.mm:
315 (userVisibleWebKitVersionString):
316 (+[WebView _standardUserAgentWithApplicationName:]):
317 (-[WebView _setUIWebViewUserAgentWithBuildVersion:]):
319 2014-01-15 Joseph Pecoraro <pecoraro@apple.com>
321 [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge
322 https://bugs.webkit.org/show_bug.cgi?id=127069
324 Reviewed by Timothy Hatcher.
326 * WebView/WebView.mm:
327 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
328 (+[WebView _enableRemoteInspector]):
329 (+[WebView _disableRemoteInspector]):
330 (+[WebView _disableAutoStartRemoteInspector]):
331 (+[WebView _isRemoteInspectorEnabled]):
332 (+[WebView _hasRemoteInspectorSession]):
333 (-[WebView allowsRemoteInspection]):
334 Implement with RemoteInspector.h SPIs.
336 (-[WebView setAllowsRemoteInspection:]):
337 (-[WebView setHostApplicationBundleId:name:]):
338 Still unimplemented, update comment.
340 (-[WebView _didCommitLoadForFrame:]):
341 Remove dead path, WebCore now pushes updates on navigations.
343 * WebView/WebViewData.h:
344 * WebView/WebViewData.mm:
345 (-[WebViewPrivate init]):
346 Remove now unused ivar.
348 2014-01-15 Alexey Proskuryakov <ap@apple.com>
350 More iOS build fixing.
352 * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
353 Removed a now unused local variable.
355 2014-01-15 Alexey Proskuryakov <ap@apple.com>
359 * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
360 Update a remaining call site of _updatePrivateBrowsingStateFram:to:.
362 2014-01-15 Alexey Proskuryakov <ap@apple.com>
364 Crash when multiple WebView instances have different PrivateBrowsing settings
365 https://bugs.webkit.org/show_bug.cgi?id=127019
367 * WebView/WebPreferences.mm: (-[WebPreferences _updatePrivateBrowsingStateTo:]):
368 Added a null check to fix Safari crash on startup when extensions are enabled.
370 2014-01-15 Alexey Proskuryakov <ap@apple.com>
372 Crash when multiple WebView instances have different PrivateBrowsing settings
373 https://bugs.webkit.org/show_bug.cgi?id=127019
375 Reviewed by Sam Weinig.
377 * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
378 browsing session simply because one preferences object doesn't use private browsing.
379 There could be others that do.
381 * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
382 browsing, and only delete the private session when there are none any more.
384 2014-01-15 David Kilzer <ddkilzer@apple.com>
386 [iOS] Missing RenderObject::style() symbol in WebDOMOperations.mm
388 Fixes the following linker error:
390 Undefined symbols for architecture x86_64:
391 "__ZNK7WebCore12RenderObject5styleEv", referenced from:
392 -[DOMNode(WebDOMNodeOperations) isHorizontalWritingMode] in WebDOMOperations.o
394 * DOM/WebDOMOperations.mm: Include RenderElement.h instead of
395 RenderObject.h since the inline RenderObject::style() method
396 moved to the former header.
398 2014-01-15 Commit Queue <commit-queue@webkit.org>
400 Unreviewed, rolling out r162054.
401 http://trac.webkit.org/changeset/162054
402 https://bugs.webkit.org/show_bug.cgi?id=127053
404 Causes assertion failures in DumpRenderTree (Requested by ap
407 * WebView/WebPreferences.mm:
408 (-[WebPreferences initWithIdentifier:sendChangeNotification:initWithIdentifier:]):
409 (-[WebPreferences initWithCoder:]):
410 (+[WebPreferences standardPreferences]):
411 (-[WebPreferences dealloc]):
412 (-[WebPreferences setPrivateBrowsingEnabled:]):
413 (-[WebPreferences _invalidateCachedPreferences]):
414 * WebView/WebView.mm:
415 (-[WebView _preferencesChanged:]):
417 2014-01-14 Alexey Proskuryakov <ap@apple.com>
419 Crash when multiple WebView instances have different PrivateBrowsing settings
420 https://bugs.webkit.org/show_bug.cgi?id=127019
422 Reviewed by Sam Weinig.
424 * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
425 browsing session simply because one preferences object doesn't use private browsing.
426 There could be others that do.
428 * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
429 browsing, and only delete the private session when there are none any more.
431 2014-01-14 Simon Fraser <simon.fraser@apple.com>
433 Fix the iOS build after r162034.
435 * WebCoreSupport/WebProgressTrackerClient.mm:
436 * WebView/WebView.mm:
437 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
439 2014-01-14 Mark Rowe <mrowe@apple.com>
441 Stop cmp from spewing useless info during postprocess-headers.sh.
443 * postprocess-headers.sh: Pass -s to silence cmp since we only care about the
446 2014-01-14 Joseph Pecoraro <pecoraro@apple.com>
448 [iOS] Crash in NavigatorBase::vendor loading apple.com
449 https://bugs.webkit.org/show_bug.cgi?id=127028
451 Reviewed by Daniel Bates.
453 Fill in iOS WebKitSystemInterface functions.
455 * WebCoreSupport/WebSystemInterface.mm:
456 (InitWebCoreSystemInterface):
458 2014-01-14 Anders Carlsson <andersca@apple.com>
460 Create separate progress tracker clients
461 https://bugs.webkit.org/show_bug.cgi?id=127025
463 Reviewed by Sam Weinig.
465 * WebCoreSupport/WebFrameLoaderClient.h:
466 * WebCoreSupport/WebFrameLoaderClient.mm:
467 * WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
468 * WebCoreSupport/WebProgressTrackerClient.mm: Added.
469 (WebProgressTrackerClient::WebProgressTrackerClient):
470 (WebProgressTrackerClient::progressTrackerDestroyed):
471 (WebProgressTrackerClient::willChangeEstimatedProgress):
472 (WebProgressTrackerClient::didChangeEstimatedProgress):
473 (WebProgressTrackerClient::progressStarted):
474 (WebProgressTrackerClient::progressEstimateChanged):
475 (WebProgressTrackerClient::progressFinished):
476 * WebView/WebView.mm:
477 (-[WebView _commonInitializationWithFrameName:groupName:]):
478 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
480 2014-01-14 Dean Jackson <dino@apple.com>
482 Correct grave mistake in updating the pbxproj file rather than xcconfig.
484 * Configurations/WebKit.xcconfig:
486 2014-01-14 Simon Fraser <simon.fraser@apple.com>
488 #define ENABLE_DASHBOARD_SUPPORT for iOS.
490 * WebView/WebViewPrivate.h:
492 2014-01-14 Simon Fraser <simon.fraser@apple.com>
494 Clean up exports and headers for iOS.
496 Need to export WebArchivePboardType on Mac and iOS.
501 2014-01-14 Simon Fraser <simon.fraser@apple.com>
503 Fix header availability checks on iOS
504 https://bugs.webkit.org/show_bug.cgi?id=127016
506 Reviewed by Andy Estes.
508 Make DOMTouch* and DOMGesture* headers public headers on iOS,
509 and fix MigrateHeaders.make to skip availability checks when
512 * MigrateHeaders.make:
514 2014-01-14 Simon Fraser <simon.fraser@apple.com>
516 Need to #import <WebCore/QuickLook.h>.
518 * WebView/WebDataSource.mm:
520 2014-01-14 Daniel Bates <dabates@apple.com>
522 [iOS] Enable QuickLook
523 https://bugs.webkit.org/show_bug.cgi?id=126954
525 Reviewed by David Kilzer.
527 Remove empty implementation for quickLookContentForURL: since we always enable QuickLook on iOS.
529 * WebView/WebView.mm:
530 (-[WebView quickLookContentForURL:]):
532 2014-01-14 Dean Jackson <dino@apple.com>
534 Move some Mac-only exports to WebKit.mac.exp for iOS build.
539 2014-01-14 Simon Fraser <simon.fraser@apple.com>
541 Move some Mac-only exports to WebKit.mac.exp for iOS build.
546 2014-01-14 Simon Fraser <simon.fraser@apple.com>
550 * Configurations/WebKit.xcconfig: We do need WebOpenPanelResultListener
552 * WebCoreSupport/WebOpenPanelResultListener.mm: Need <WebCore/Icon.h>
554 2014-01-14 Simon Fraser <simon.fraser@apple.com>
556 iOS build fixing: link WebKit against Security.framework on iOS.
558 * Configurations/WebKit.xcconfig:
560 2014-01-14 Dean Jackson <dino@apple.com>
562 [WK1] Allow generated export files on iOS
563 https://bugs.webkit.org/show_bug.cgi?id=127008
565 Reviewed by Simon Fraser.
567 Add a new Mac-only symbol file.
569 * WebKit.exp: To begin, move the WebIcon* into the Mac-specific exports.
570 * WebKit.mac.exp: Added. New file holds Mac-only symbols.
572 2014-01-14 Brian J. Burg <burg@cs.washington.edu>
574 Add ENABLE(WEB_REPLAY) feature flag to the build system
575 https://bugs.webkit.org/show_bug.cgi?id=126949
577 Reviewed by Joseph Pecoraro.
579 * Configurations/FeatureDefines.xcconfig:
581 2014-01-13 Simon Fraser <simon.fraser@apple.com>
583 Fix the Mac build. WebViewPrivate.h declares quickLookContentForURL:
584 for iOS, but the implementation conditionalizes on USE(QUICK_LOOK),
585 which we are confused about.
587 * WebView/WebView.mm:
588 (-[WebView quickLookContentForURL:]):
589 * WebView/WebViewPrivate.h:
591 2014-01-13 Simon Fraser <simon.fraser@apple.com>
593 Fix the remaining compiler errors in iOS WK1.
595 * WebView/WebFrame.mm:
596 (vectorForDictationPhrasesArray): Need this function on iOS.
597 (-[WebFrame setSelectedDOMRange:affinity:closeTyping:]): We're already inside
598 a huge if PLATFORM(IOS) block.
599 (-[WebFrame resetTextAutosizingBeforeLayout]): Document now exposes RenderView.
600 * WebView/WebFrameInternal.h: Declare vectorForDictationPhrasesArray() (not a good place for it!)
601 * WebView/WebView.mm: #import cleanup for iOS.
602 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Declare autoStartRemoteInspector
603 here but this needs cleaning up (<rdar://problem/15810991>).
604 (-[WebView setHostApplicationBundleId:name:]): No [WebView sharedWebInspectorServer] any more.
605 (-[WebView _didCommitLoadForFrame:]): Ditto.
606 * WebView/WebViewData.h: Add allowsRemoteInspection.
607 * WebView/WebViewData.mm: Initialize allowsRemoteInspection
608 (-[WebViewPrivate init]):
609 * WebView/WebViewPrivate.h: Fumbled #ifdef.
611 2014-01-13 Simon Fraser <simon.fraser@apple.com>
613 More work towards getting iOS WK1 building.
615 * DOM/WebDOMOperations.mm: Need RenderObject.h.
616 * DOM/WebDOMOperationsPrivate.h:
617 * History/WebBackForwardList.mm: Need Foundation/NSGeometry.h for NSRect
618 (-[WebBackForwardList dictionaryRepresentation]): Fix array iteration to match
620 * Misc/WebIconDatabase.h: #ifdef out functions that return NSImages.
621 * Plugins/WebPluginController.mm: Need <WebCore/AudioSession.h>
622 * WebCoreSupport/WebFrameLoaderClient.mm:
623 (WebFrameLoaderClient::transitionToCommittedForNewPage): Some new code to
624 handle the error case.
625 * WebView/WebFrameView.mm: Avoid including some headers which pull in AppKit classes.
626 * WebView/WebHTMLView.mm: Ditto.
627 (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Handle
628 different return type of createDragImageForSelection().
629 * WebView/WebPolicyDelegatePrivate.h:
630 * WebView/WebPreferences.mm: <WebCore/AudioSession.h> and <AudioToolbox/AudioSession.h>
632 2014-01-13 Daniel Bates <dabates@apple.com>
634 [iOS] Remove duplicate inclusions of header WAKView.h
635 following <http://trac.webkit.org/changeset/161910>
637 * WebView/WebFrameView.h:
638 * WebView/WebHTMLView.h:
640 2014-01-13 Simon Fraser <simon.fraser@apple.com>
642 Various iOS WebKit1 build fixes.
644 * Configurations/WebKit.xcconfig: Add more Mac-only files
645 to the excluded files list for iOS.
646 * DefaultDelegates/WebDefaultUIDelegate.m: Don't include WebJavaScriptTextInputPanel.h
648 * History/WebHistory.h: NSCalendarDate doesn't exist on iOS.
649 * Misc/WebDownload.h: Need WAKAppKitStubs.h
650 * Misc/WebNSViewExtras.m: No WebNSPasteboardExtras on iOS
651 * Storage/WebDatabaseManagerClient.mm: Need DatabaseTracker.h, no harm
652 in including it for all platforms.
653 * WebCoreSupport/WebEditorClient.h: Remove useless comment.
654 * WebCoreSupport/WebEditorClient.mm:
655 (nsStringWithoutCopying): Moved
656 (WebEditorClient::checkTextOfParagraph): Modernized.
657 * WebInspector/WebNodeHighlightView.mm: Need FloatQuad.h.
658 * WebView/WebDataSource.mm: Need WebFrameViewInternal.h
659 * WebView/WebDocument.h: Needs WAKView.h.
660 * WebView/WebFrameView.h: Ditto.
661 * WebView/WebHTMLView.h: Ditto.
662 * WebView/WebPDFDocumentExtras.mm:
663 (allScriptsInPDFDocument): No PDFDocument on iOS.
664 * WebView/WebPolicyDelegate.h:
665 * WebView/WebView.h: Fix incorrect #if.
667 2014-01-13 Daniel Bates <dabates@apple.com>
669 [iOS] More build fixes for WebKit
671 * Configurations/Base.xcconfig: Removed extraneous definition of SUPPORTED_PLATFORMS.
672 * Configurations/WebKit.xcconfig: Exclude more Mac-specific files when building for iOS:
673 CarbonUtils.m, CarbonWindowAdapter.mm, CarbonWindowContentView.m, CarbonWindowFrame.m,
674 HIViewAdapter.m, HIWebView.mm, MailQuirksUserScript.js, OutlookQuirksUserScript.js,
675 PopupMenuMac.mm, SearchPopupMenuMac.mm, WebClipView.mm, WebInspectorClient.mm,
676 WebNetscapeContainerCheckContextInfo.mm, WebNetscapeContainerCheckPrivate.mm, WebRenderNode.mm,
677 WebStringTruncator.mm, and WebTextCompletionController.mm. I haven't verified the Mac-specific
678 nature of each of these files. We may be able to reduce this list upon further investigation.
679 * WebView/WebDocument.h: Include header <WebKit/WAKView.h> for definition of WAKView.
680 * WebView/WebFrameView.h: Ditto.
681 * WebView/WebUIDelegate.h: Ditto.
682 * WebView/WebView.h: Ditto.
684 2014-01-13 Simon Fraser <simon.fraser@apple.com>
686 Include WAKAppKitStubs.h to get NSSelectionAffinity.
688 * WebView/WebEditingDelegate.h:
690 2014-01-13 Simon Fraser <simon.fraser@apple.com>
692 DOMTouch* etc should not be public headers on iOS.
694 * MigrateHeaders.make:
696 2014-01-13 Andy Estes <aestes@apple.com>
698 [iOS] Build Fix: switch back to calling postprocess-headers.sh
700 * postprocess-headers.sh:
702 2014-01-13 Zalan Bujtas <zalan@apple.com>
704 Enable SUBPIXEL_LAYOUT on Mac
705 <https://webkit.org/b/126283>
707 Reviewed by Simon Fraser.
709 * Configurations/FeatureDefines.xcconfig:
711 2014-01-12 Darin Adler <darin@apple.com>
713 Add deprecatedCharacters as a synonym for characters and convert most call sites
714 https://bugs.webkit.org/show_bug.cgi?id=126858
716 Reviewed by Anders Carlsson.
718 * History/BinaryPropertyList.cpp:
719 (BinaryPropertyListSerializer::appendStringObject):
720 Use deprecatedCharacters instead of characters.
722 2014-01-12 Darin Adler <darin@apple.com>
724 Add type checking to isEqual methods
725 https://bugs.webkit.org/show_bug.cgi?id=126862
727 Reviewed by Anders Carlsson.
729 * WebCoreSupport/WebSecurityOrigin.mm:
730 (-[WebSecurityOrigin isEqual:]): Added a FIXME about the lack of a hash method
731 override. Tweaked formatting.
733 * WebView/WebDashboardRegion.mm:
734 (-[WebDashboardRegion isEqual:]): Added type checking on the argument. Added a
735 FIXME about the lack of a hash method override.
737 2014-01-11 Alexey Proskuryakov <ap@apple.com>
739 [Mac] [Windows] Stop scheduling network requests in WebCore
740 https://bugs.webkit.org/show_bug.cgi?id=126789
741 <rdar://problem/15114727>
743 Reviewed by Sam Weinig.
745 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated
746 for new WKSI function names.
748 2014-01-10 Anders Carlsson <andersca@apple.com>
750 Tweak ProgressTrackerClient functions
751 https://bugs.webkit.org/show_bug.cgi?id=126808
753 Reviewed by Sam Weinig.
755 * WebCoreSupport/WebFrameLoaderClient.h:
756 * WebCoreSupport/WebFrameLoaderClient.mm:
757 (WebFrameLoaderClient::progressStarted):
758 (WebFrameLoaderClient::progressEstimateChanged):
759 (WebFrameLoaderClient::progressFinished):
761 2014-01-10 Anders Carlsson <andersca@apple.com>
763 Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
764 https://bugs.webkit.org/show_bug.cgi?id=126801
766 Reviewed by Sam Weinig.
768 * WebCoreSupport/WebFrameLoaderClient.h:
769 * WebView/WebView.mm:
770 (-[WebView _commonInitializationWithFrameName:groupName:]):
772 2014-01-10 David Kilzer <ddkilzer@apple.com>
774 Clean up architectures in xcconfig files
775 <http://webkit.org/b/126794>
777 Reviewed by Andy Estes.
779 * Configurations/WebKit.xcconfig: Remove armv6, armv7f, ppc.
782 2014-01-10 Yongjun Zhang <yongjun_zhang@apple.com>
784 Clear unparented tiled layers on memory pressure.
785 https://bugs.webkit.org/show_bug.cgi?id=126737
787 Reviewed by Simon Fraser.
789 * WebView/WebView.mm:
790 (+[WebView _handleMemoryWarning]): Clear all unparented tiles when under memory pressure.
792 2014-01-10 Daniel Bates <dabates@apple.com>
794 Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
795 (https://bugs.webkit.org/show_bug.cgi?id=126698)
797 Tell Xcode that the supported platforms for all WebCore targets are iOS and OS X.
799 * Configurations/Base.xcconfig:
801 2014-01-09 Andy Estes <aestes@apple.com>
803 [iOS] Upstream iOS changes to MigrateHeaders.make
804 https://bugs.webkit.org/show_bug.cgi?id=126731
806 Reviewed by David Kilzer.
808 * MigrateHeaders.make: Migrate iOS-specific headers when building for iOS.
810 2014-01-10 Daniel Bates <dabates@apple.com>
812 [iOS] Upstream WebCore and Tools miscellaneous changes
813 https://bugs.webkit.org/show_bug.cgi?id=126698
815 Reviewed by David Kilzer.
817 * MigrateHeaders.make:
819 2014-01-08 Anders Carlsson <andersca@apple.com>
821 Add WTF::StringView and use it for grammar checking
822 https://bugs.webkit.org/show_bug.cgi?id=126644
824 Reviewed by Antti Koivisto.
826 * WebCoreSupport/WebEditorClient.h:
827 * WebCoreSupport/WebEditorClient.mm:
828 (WebEditorClient::checkTextOfParagraph):
829 Update to match the new signature.
831 (nsStringWithoutCopying):
832 New function that creates an NSString that references StringView data
833 without copying the data. (If this function proves to be useful elsewhere, it could
834 potentially be added to StringView).
836 2014-01-02 Andy Estes <aestes@apple.com>
838 [iOS] Clean up some exported headers
839 https://bugs.webkit.org/show_bug.cgi?id=126403
841 Reviewed by Simon Fraser.
843 Public header files that are completely excluded on iOS don't need
844 !TARGET_OS_IPHONE guards since they are already listed in
845 EXCLUDED_SOURCE_FILE_NAMES.
847 I also took the opportunity to sort EXCLUDED_SOURCE_FILE_NAMES and to
848 clean up some #imports.
850 * Configurations/WebKit.xcconfig:
852 * Misc/WebIconDatabasePrivate.h:
853 * Misc/WebLocalizableStrings.h:
854 * Misc/WebNSEventExtras.h:
855 * Misc/WebNSPasteboardExtras.h:
856 * Misc/WebNSWindowExtras.h:
857 * Panels/WebPanelAuthenticationHandler.h:
858 * Plugins/WebPluginsPrivate.h:
859 * Storage/WebDatabaseManagerPrivate.h:
860 * WebCoreSupport/WebJavaScriptTextInputPanel.h:
861 * WebCoreSupport/WebKeyGenerator.h:
862 * WebCoreSupport/WebSecurityOriginPrivate.h:
863 * WebView/WebDashboardRegion.h:
864 * WebView/WebDynamicScrollBarsView.h:
865 * WebView/WebFrameView.h:
866 * WebView/WebPreferenceKeysPrivate.h:
867 * WebView/WebResourceLoadDelegatePrivate.h:
870 2014-01-07 Seokju Kwon <seokju@webkit.org>
872 Web Inspector: Remove leftover 'device metrics' code
873 https://bugs.webkit.org/show_bug.cgi?id=126607
875 Reviewed by Joseph Pecoraro.
877 * WebKit.order: Update after removing InspectorClient::overrideDeviceMetrics().
879 2014-01-02 Andy Estes <aestes@apple.com>
881 [iOS] Upstream WebKit support for various features
882 https://bugs.webkit.org/show_bug.cgi?id=126413
884 Reviewed by Sam Weinig.
886 Upstream iOS WebKit changes needed for these features:
888 - ENABLE(DELETION_UI)
889 - ENABLE(TOUCH_EVENTS)
892 - ENABLE(DISK_IMAGE_CACHE)
893 - ENABLE(IOS_TEXT_AUTOSIZING)
894 - ENABLE(ICONDATABASE)
895 - ENABLE(DASHBOARD_SUPPORT)
897 * DefaultDelegates/WebDefaultEditingDelegate.m:
899 * WebCoreSupport/WebChromeClient.h:
900 * WebView/WebDataSource.mm:
901 (-[WebDataSource dealloc]):
902 * WebView/WebEditingDelegatePrivate.h:
903 * WebView/WebFrame.mm:
904 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
905 * WebView/WebHTMLView.mm:
906 (-[WebHTMLView maintainsInactiveSelection]):
907 (-[WebHTMLView touch:]):
908 * WebView/WebPreferences.mm:
909 (+[WebPreferences initialize]):
910 * WebView/WebPreferencesPrivate.h:
911 * WebView/WebView.mm:
912 (-[WebView _preferencesChanged:]):
913 (-[WebView _cacheFrameLoadDelegateImplementations]):
914 (-[WebView quickLookContentForURL:]):
915 (-[WebView _touchEventRegions]):
916 * WebView/WebViewPrivate.h:
918 2014-01-02 Andy Estes <aestes@apple.com>
920 [iOS] Upstream a bug fix for plugin-backed media elements
921 https://bugs.webkit.org/show_bug.cgi?id=126412
923 Reviewed by Eric Carlson.
925 Media elements backed by plug-ins should outlive being removed from the
926 document, like their native counterparts do.
928 * Plugins/WebPluginController.h:
929 * Plugins/WebPluginController.mm:
930 (-[NSView isMediaPlugInProxyView]):
931 (-[NSView setIsMediaPlugInProxyView:]):
932 (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
933 (-[WebPluginController mediaPlugInProxyViewCreated:]):
934 (-[WebPluginController destroyPlugin:]):
935 * WebCoreSupport/WebFrameLoaderClient.mm:
938 2014-01-07 Mark Rowe <mrowe@apple.com>
940 <https://webkit.org/b/126562> DOMProgressEvent has unspecified availability
942 Reviewed by Ryosuke Niwa.
944 * MigrateHeaders.make: Ensure that public DOM headers do not have unspecified availability.
946 2014-01-06 Mark Rowe <mrowe@apple.com>
948 Mountain Lion build fix after r161332.
950 * Carbon/HIWebView.h: Mountain Lion's version of CF_AVAILABLE_MAC doesn't accept a message
951 argument so remove it.
953 2014-01-06 Mark Rowe <mrowe@apple.com>
955 <https://webkit.org/b/126499> Move WebKit off the legacy WebKit availability macros
957 The legacy WebKit availability macros are verbose, confusing, and provide no benefit
958 over using the system availability macros directly. The original vision was that
959 they'd serve a cross-platform purpose but that never came to be.
961 Since WebKit1 is API on OS X but SPI on iOS, some indirection is still needed in the
962 availability macros to allow the headers to advertise the API as unavailable on OS X
963 without interfering with the ability to build on iOS. This is achieved by defining
964 WEBKIT-prefixed versions of the Foundation availability macros that are defined to
965 their NS-prefixed equivalents. The installed headers are post-processed to map these
966 macros back to their Foundation equivalents.
968 Part of <rdar://problem/15512304>.
970 The OS X version used in the new availability macros is based on the mapping in
971 JavaScriptCore/WebKitAvailability.h.
973 Reviewed by Sam Weinig.
975 * Carbon/CarbonUtils.h:
976 * Carbon/HIWebView.h:
977 * MigrateHeaders.make: Migrate WebKitAvailability.h from WebCore as an API header.
978 * Plugins/WebPlugin.h:
979 * Plugins/WebPluginViewFactory.h:
980 * WebView/WebFrameLoadDelegate.h:
981 * WebView/WebResourceLoadDelegatePrivate.h:
982 * WebView/WebUIDelegate.h:
983 * postprocess-headers.sh: Added. Extracted from the Xcode project. Extended to map the
984 WEBKIT-prefixed macros to their NS-prefixed equivalents on OS X and to remove them on iOS.
986 2014-01-04 Zan Dobersek <zdobersek@igalia.com>
988 Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
989 https://bugs.webkit.org/show_bug.cgi?id=126439
991 Reviewed by Andreas Kling.
993 Instead of relying on std::pair and std::make_pair symbols being present in the current scope
994 through the pair and make_pair symbols, the std:: specifier should be used explicitly.
996 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
997 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
998 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
999 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
1000 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
1001 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
1003 2014-01-02 Gavin Barraclough <barraclough@apple.com>
1005 Remove WindowIsVisible
1006 https://bugs.webkit.org/show_bug.cgi?id=126270
1008 Reviewed by Tim Horton.
1010 We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
1011 The latter detects that the content is hidden in fewer cases than the former, and as such, the
1012 former is always preferable.
1014 This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
1015 Plugin::windowVisibilityChanged.
1017 * WebView/WebView.mm:
1018 (-[WebView _windowWillOrderOnScreen:]):
1019 (-[WebView _windowWillOrderOffScreen:]):
1020 - rename ContainingWindowIsVisible -> ContentIsVisible.
1022 2014-01-02 Gavin Barraclough <barraclough@apple.com>
1024 Merge didMoveOnscreen / page visibility to isVisible
1025 https://bugs.webkit.org/show_bug.cgi?id=126268
1027 Reviewed by Tim Horton.
1029 The onscreen state most closely tracks view visibility (though currently
1030 also tracks a mix of in-window state). Make more consistent, simplify,
1031 and move all animation suspension logic to Page, so it can be controlled
1032 by the PageThrottler.
1034 * WebView/WebView.mm:
1035 (-[WebView _commonInitializationWithFrameName:groupName:]):
1036 (-[WebView _updateVisibilityState]):
1037 - _setVisibilityState:isInitialState: -> _setIsVisibile:isInitialState:.
1038 (-[WebView _setIsVisible:isInitialState:]):
1040 (-[WebView _setVisibilityState:isInitialState:]):
1041 - setVisibilityState -> setIsVisible/setIsPrerender.
1042 (-[WebView viewWillMoveToWindow:]):
1043 (-[WebView viewDidMoveToWindow]):
1044 - remove redundant calls to willMoveOffscreen/didMoveOnscreen
1045 (this is handled by _updateVisibilityState).
1047 2013-12-23 Oliver Hunt <oliver@apple.com>
1049 Refactor PutPropertySlot to be aware of custom properties
1050 https://bugs.webkit.org/show_bug.cgi?id=126187
1052 Reviewed by Antti Koivisto.
1054 Update for new method signatures.
1056 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1057 (WebKit::NetscapePluginInstanceProxy::setProperty):
1059 2013-12-31 Andy Estes <aestes@apple.com>
1061 [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
1062 https://bugs.webkit.org/show_bug.cgi?id=125746
1064 Reviewed by David Kilzer.
1066 This is a straight upstreaming of the various PLATFORM(IOS) changes
1067 made to Source/WebKit/ with the following modifications:
1069 - Includes of <Cocoa/Cocoa.h> were generally replaced with an include
1070 of <Foundation/Foundation.h> followed by an include of
1071 <AppKit/AppKit.h> on non-iOS platforms. This assumes that nobody was
1072 relying on <Cocoa/Cocoa.h>'s inclusion of <CoreData/CoreData.h>.
1074 - Includes of <Cocoa/Cocoa.h> and <Foundation/Foundation.h> were
1075 removed from files that include WebKitPrefix.h.
1077 - Instances of 'iPhone (OS)' in comments were replaced with 'iOS', and
1078 other sensitive terms were elided.
1080 - Various PLATFORM(IOS) blocks were simplified. For instance:
1097 * Configurations/Base.xcconfig:
1098 * Configurations/DebugRelease.xcconfig:
1099 * Configurations/Version.xcconfig:
1100 * Configurations/WebKit.xcconfig:
1101 * Configurations/iOS.xcconfig: Added.
1102 * DOM/WebDOMOperations.mm:
1103 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1104 * DefaultDelegates/WebDefaultEditingDelegate.m:
1105 * DefaultDelegates/WebDefaultPolicyDelegate.m:
1106 * DefaultDelegates/WebDefaultUIDelegate.h:
1107 * DefaultDelegates/WebDefaultUIDelegate.m:
1108 * History/WebBackForwardList.mm:
1109 * History/WebHistory.mm:
1110 * History/WebHistoryItem.mm:
1111 * History/WebURLsWithTitles.m:
1113 * Misc/WebDownload.mm:
1114 * Misc/WebElementDictionary.mm:
1115 * Misc/WebIconDatabase.mm:
1116 * Misc/WebIconDatabaseInternal.h:
1117 * Misc/WebKitNSStringExtras.mm:
1118 * Misc/WebKitSystemBits.m:
1119 * Misc/WebKitVersionChecks.h:
1120 * Misc/WebKitVersionChecks.m:
1121 * Misc/WebLocalizableStrings.mm:
1122 * Misc/WebNSArrayExtras.h:
1123 * Misc/WebNSArrayExtras.m:
1124 * Misc/WebNSControlExtras.h:
1125 * Misc/WebNSControlExtras.m:
1126 * Misc/WebNSDictionaryExtras.h:
1127 * Misc/WebNSDictionaryExtras.m:
1128 * Misc/WebNSEventExtras.m:
1129 * Misc/WebNSFileManagerExtras.mm:
1130 * Misc/WebNSImageExtras.h:
1131 * Misc/WebNSImageExtras.m:
1132 * Misc/WebNSPasteboardExtras.mm:
1133 * Misc/WebNSPrintOperationExtras.h:
1134 * Misc/WebNSPrintOperationExtras.m:
1135 * Misc/WebNSURLExtras.mm:
1136 * Misc/WebNSViewExtras.m:
1137 * Misc/WebNSWindowExtras.m:
1138 * Panels/WebAuthenticationPanel.h:
1139 * Panels/WebAuthenticationPanel.m:
1140 * Panels/WebPanelAuthenticationHandler.m:
1141 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1142 * Plugins/WebBasePluginPackage.h:
1143 * Plugins/WebBasePluginPackage.mm:
1144 * Plugins/WebJavaPlugIn.h:
1145 * Plugins/WebPluginContainerCheck.mm:
1146 * Plugins/WebPluginController.h:
1147 * Plugins/WebPluginController.mm:
1148 * Plugins/WebPluginDatabase.mm:
1149 * Plugins/WebPluginPackage.mm:
1150 * Plugins/WebPluginsPrivate.m:
1151 * Storage/WebDatabaseManager.mm:
1152 * Storage/WebDatabaseManagerClient.h:
1153 * Storage/WebDatabaseManagerClient.mm:
1154 * Storage/WebDatabaseManagerInternal.h: Added.
1155 * Storage/WebStorageManager.mm:
1156 * WebCoreSupport/CorrectionPanel.h:
1157 * WebCoreSupport/WebAlternativeTextClient.h:
1158 * WebCoreSupport/WebApplicationCache.mm:
1159 * WebCoreSupport/WebChromeClient.h:
1160 * WebCoreSupport/WebChromeClient.mm:
1161 * WebCoreSupport/WebContextMenuClient.mm:
1162 * WebCoreSupport/WebEditorClient.h:
1163 * WebCoreSupport/WebEditorClient.mm:
1164 * WebCoreSupport/WebFrameLoaderClient.h:
1165 * WebCoreSupport/WebFrameLoaderClient.mm:
1166 * WebCoreSupport/WebFrameNetworkingContext.h:
1167 * WebCoreSupport/WebFrameNetworkingContext.mm:
1168 * WebCoreSupport/WebGeolocationClient.h:
1169 * WebCoreSupport/WebGeolocationClient.mm:
1170 * WebCoreSupport/WebJavaScriptTextInputPanel.m:
1171 * WebCoreSupport/WebKeyGenerator.mm:
1172 * WebCoreSupport/WebNotificationClient.mm:
1173 * WebCoreSupport/WebOpenPanelResultListener.mm:
1174 * WebCoreSupport/WebSecurityOrigin.mm:
1175 * WebCoreSupport/WebSystemInterface.mm:
1177 * WebView/WebArchive.mm:
1178 * WebView/WebClipView.h:
1179 * WebView/WebDataSource.mm:
1180 * WebView/WebDelegateImplementationCaching.h:
1181 * WebView/WebDelegateImplementationCaching.mm:
1182 * WebView/WebDeviceOrientation.mm:
1183 * WebView/WebDocumentInternal.h:
1184 * WebView/WebDocumentLoaderMac.mm:
1185 * WebView/WebDynamicScrollBarsViewInternal.h:
1186 * WebView/WebFormDelegate.m:
1187 * WebView/WebFrame.mm:
1188 * WebView/WebFrameInternal.h:
1189 * WebView/WebFrameView.mm:
1190 * WebView/WebFullScreenController.h:
1191 * WebView/WebFullScreenController.mm:
1192 * WebView/WebHTMLRepresentation.mm:
1193 * WebView/WebHTMLView.mm:
1194 * WebView/WebHTMLViewInternal.h:
1195 * WebView/WebPDFDocumentExtras.h:
1196 * WebView/WebPDFDocumentExtras.mm:
1197 * WebView/WebPDFRepresentation.h:
1198 * WebView/WebPDFRepresentation.mm:
1199 * WebView/WebPDFView.h:
1200 * WebView/WebPDFView.mm:
1201 * WebView/WebPreferences.mm:
1202 * WebView/WebResource.mm:
1203 * WebView/WebTextCompletionController.h:
1204 * WebView/WebTextIterator.mm:
1205 * WebView/WebView.mm:
1206 * WebView/WebViewData.h:
1207 * WebView/WebViewData.mm:
1208 * WebView/WebViewInternal.h:
1210 2013-12-25 Commit Queue <commit-queue@webkit.org>
1212 Unreviewed, rolling out r161033 and r161074.
1213 http://trac.webkit.org/changeset/161033
1214 http://trac.webkit.org/changeset/161074
1215 https://bugs.webkit.org/show_bug.cgi?id=126240
1217 Oliver says that a rollout would be better (Requested by ap on
1220 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1221 (WebKit::NetscapePluginInstanceProxy::setProperty):
1223 2013-12-23 Oliver Hunt <oliver@apple.com>
1225 Refactor PutPropertySlot to be aware of custom properties
1226 https://bugs.webkit.org/show_bug.cgi?id=126187
1228 Reviewed by msaboff.
1230 Update for new method signatures.
1232 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1233 (WebKit::NetscapePluginInstanceProxy::setProperty):
1235 2013-12-23 Lucas Forschler <lforschler@apple.com>
1237 <rdar://problem/15682948> Update copyright strings
1239 Reviewed by Dan Bernstein.
1243 2013-12-19 Andy Estes <aestes@apple.com>
1245 Remove WebFilterEvaluator wrappers from WebKitSystemInterface
1246 https://bugs.webkit.org/show_bug.cgi?id=126028
1248 Reviewed by Anders Carlsson.
1250 * WebCoreSupport/WebSystemInterface.mm:
1251 (InitWebCoreSystemInterface): Don't INIT() removed function pointers.
1253 2013-12-17 Gavin Barraclough <barraclough@apple.com>
1255 Remove PageVisibilityStateUnloaded
1256 https://bugs.webkit.org/show_bug.cgi?id=125869
1258 Reviewed by Anders Carlsson.
1260 This is not currently supported by WebKit, remove this enum value.
1261 We can always add this back later if/when we add support for this state.
1263 * WebView/WebView.mm:
1266 * WebView/WebViewPrivate.h:
1267 - removed PageVisibilityStateUnloaded/WebPageVisibilityStateUnloade
1269 2013-12-14 Andy Estes <aestes@apple.com>
1271 [iOS] Upstream changes to WebKit Public and Private headers
1272 https://bugs.webkit.org/show_bug.cgi?id=125745
1274 Reviewed by Dan Bernstein.
1276 * Configurations/WebKit.xcconfig: Ignore headers that are completely
1277 excluded on iOS. This prevents empty headers from being installed into
1279 * DOM/WebDOMOperationsPrivate.h: Upstream iOS changes.
1280 * History/WebBackForwardListPrivate.h: Ditto.
1281 * History/WebHistoryItem.h: Ditto.
1282 * History/WebHistoryItemPrivate.h: Ditto.
1283 * Misc/WebCache.h: Ditto.
1284 * Misc/WebIconDatabase.h: Ditto.
1285 * Misc/WebIconDatabasePrivate.h: Ditto.
1286 * Misc/WebKitNSStringExtras.h: Ditto.
1287 * Misc/WebLocalizableStrings.h: Ditto.
1288 * Misc/WebNSEventExtras.h: Ditto.
1289 * Misc/WebNSFileManagerExtras.h: Ditto.
1290 * Misc/WebNSPasteboardExtras.h: Ditto.
1291 * Misc/WebNSURLExtras.h: Ditto.
1292 * Misc/WebNSViewExtras.h: Ditto.
1293 * Misc/WebNSWindowExtras.h: Ditto.
1294 * Panels/WebPanelAuthenticationHandler.h: Ditto.
1295 * Plugins/WebPlugin.h: Ditto.
1296 * Plugins/WebPluginContainer.h: Ditto.
1297 * Plugins/WebPluginContainerPrivate.h: Ditto.
1298 * Plugins/WebPluginDatabase.h: Ditto.
1299 * Plugins/WebPluginPrivate.h: Ditto.
1300 * Plugins/WebPluginViewFactory.h: Ditto.
1301 * Plugins/WebPluginsPrivate.h: Ditto.
1302 * Storage/WebDatabaseManagerPrivate.h: Ditto.
1303 * WebCoreSupport/WebApplicationCache.h: Ditto.
1304 * WebCoreSupport/WebJavaScriptTextInputPanel.h: Ditto.
1305 * WebCoreSupport/WebKeyGenerator.h: Ditto.
1306 * WebCoreSupport/WebSecurityOriginPrivate.h: Ditto.
1307 * WebView/WebDashboardRegion.h: Ditto.
1308 * WebView/WebDataSource.h: Ditto.
1309 * WebView/WebDataSourcePrivate.h: Ditto.
1310 * WebView/WebDocument.h: Ditto.
1311 * WebView/WebDocumentPrivate.h: Ditto.
1312 * WebView/WebDynamicScrollBarsView.h: Ditto.
1313 * WebView/WebEditingDelegate.h: Ditto.
1314 * WebView/WebEditingDelegatePrivate.h: Ditto.
1315 * WebView/WebFormDelegate.h: Ditto.
1316 * WebView/WebFrameLoadDelegate.h: Ditto.
1317 * WebView/WebFramePrivate.h: Ditto.
1318 * WebView/WebFrameView.h: Ditto.
1319 * WebView/WebFrameViewPrivate.h: Ditto.
1320 * WebView/WebHTMLRepresentation.h: Ditto.
1321 * WebView/WebHTMLView.h: Ditto.
1322 * WebView/WebHTMLViewPrivate.h: Ditto.
1323 * WebView/WebPolicyDelegate.h: Ditto.
1324 * WebView/WebPreferenceKeysPrivate.h: Ditto.
1325 * WebView/WebPreferences.h: Ditto.
1326 * WebView/WebPreferencesPrivate.h: Ditto.
1327 * WebView/WebRenderLayer.h: Ditto.
1328 * WebView/WebResourceLoadDelegatePrivate.h: Ditto.
1329 * WebView/WebResourcePrivate.h: Ditto.
1330 * WebView/WebUIDelegate.h: Ditto.
1331 * WebView/WebUIDelegatePrivate.h: Ditto.
1332 * WebView/WebView.h: Ditto.
1333 * WebView/WebViewPrivate.h: Ditto.
1335 2013-12-15 Andy Estes <aestes@apple.com>
1337 [iOS] Upstream changes to FeatureDefines.xcconfig
1338 https://bugs.webkit.org/show_bug.cgi?id=125742
1340 Reviewed by Dan Bernstein.
1342 * Configurations/FeatureDefines.xcconfig:
1344 2013-12-14 Andy Estes <aestes@apple.com>
1346 Unify FeatureDefines.xcconfig
1347 https://bugs.webkit.org/show_bug.cgi?id=125741
1349 Rubber-stamped by Dan Bernstein.
1351 * Configurations/FeatureDefines.xcconfig: Remove a stray space in
1354 2013-12-11 Joseph Pecoraro <pecoraro@apple.com>
1356 Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore
1357 https://bugs.webkit.org/show_bug.cgi?id=125324
1359 Reviewed by Timothy Hatcher.
1361 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1362 * WebCoreSupport/WebInspectorClient.mm:
1363 * WebView/WebFrame.mm:
1364 * WebView/WebView.mm:
1366 2013-12-03 Mark Rowe <mrowe@apple.com>
1368 <https://webkit.org/b/125139> Modernize the WebKit API headers
1369 <rdar://problem/15540175>
1371 This consists of three main changes:
1372 1) Converting the return type of initializer methods to instancetype.
1373 2) Declaring properties rather than getters and setters.
1374 3) Declaring explicitly sized enums.
1376 Changing the declarations from getters and setters to properties also required
1377 updating the headerdoc in a number of places.
1379 Reviewed by Anders Carlsson.
1381 * DOM/WebDOMOperations.h:
1382 * History/WebBackForwardList.h:
1383 * History/WebHistory.h:
1384 * History/WebHistoryItem.h:
1385 * History/WebHistoryItem.mm:
1386 * Plugins/WebPlugin.h:
1387 * Plugins/WebPluginContainer.h:
1388 * WebView/WebArchive.h:
1389 * WebView/WebArchive.mm:
1390 * WebView/WebDataSource.h:
1391 * WebView/WebDataSource.mm:
1392 * WebView/WebEditingDelegate.h:
1393 * WebView/WebFrame.h:
1394 * WebView/WebFrame.mm:
1395 * WebView/WebFrameView.h:
1396 * WebView/WebPolicyDelegate.h:
1397 * WebView/WebPreferences.h:
1398 * WebView/WebPreferences.mm:
1399 (-[WebPreferences cacheModel]): Cast to the enum.
1400 * WebView/WebResource.h:
1401 * WebView/WebResource.mm:
1402 * WebView/WebUIDelegate.h:
1403 * WebView/WebView.h:
1404 * WebView/WebView.mm:
1405 (+[WebView _didSetCacheModel]): Fix the return type.
1407 2013-12-10 Mark Rowe <mrowe@apple.com>
1409 <http://webkit.org/b/125556> WebKit doesn't deal with longer bundle versions correctly
1410 <rdar://problem/15634192>
1412 Reviewed by Dan Bernstein.
1414 * WebView/WebView.mm:
1415 (createUserVisibleWebKitVersionString): Strip as many leading digits as is necessary to
1416 bring the major component of the version down to 3 digits.
1418 2013-12-09 Sam Weinig <sam@webkit.org>
1420 Fix the build of projects including <WebKit/WebUIDelegatePrivate.h>
1422 Rubber-stamped by Dan Bernstein.
1424 * WebView/WebAllowDenyPolicyListener.h:
1425 Use TARGET_OS_IPHONE rather than PLATFORM(IOS) in an exposed header.
1427 2013-12-05 Jer Noble <jer.noble@apple.com>
1429 [MSE] Add a runtime-setting for the MediaSource constructor.
1430 https://bugs.webkit.org/show_bug.cgi?id=125336
1432 Reviewed by Eric Carlson.
1434 Add a private WebPreference which controls the WebCore mediaSourceEnabled setting.
1436 * WebView/WebPreferenceKeysPrivate.h:
1437 * WebView/WebPreferences.mm:
1438 (+[WebPreferences initialize]):
1439 (-[WebPreferences mediaSourceEnabled]):
1440 (-[WebPreferences setMediaSourceEnabled:]):
1441 * WebView/WebPreferencesPrivate.h:
1442 * WebView/WebView.mm:
1443 (-[WebView _preferencesChanged:]):
1445 2013-12-05 Mark Lam <mark.lam@apple.com>
1447 C Loop LLINT layout test regressions.
1448 https://bugs.webkit.org/show_bug.cgi?id=125314.
1450 Reviewed by Geoffrey Garen.
1452 The regression was due to the ENABLE_LLINT_C_LOOP flag not being included
1453 in the build of the WebKit and WebKit2 components. As a result, some fields
1454 in JSC::VM were ifdef'ed out in WebCore and JSC, but not in WebKit and
1455 WebKit2. This resulted in VM::m_initializingObjectClass having 2 different
1456 offsets depending on whether it is accessed from WebCore and JSC or from
1457 WebKit and WebKit2, and chaos ensued.
1459 This issue will manifest when we pass --cloop to build-webkit.
1460 The fix is simply to add ENABLE_LLINT_C_LOOP to FEATURE_DEFINES for WebKit
1463 * Configurations/FeatureDefines.xcconfig:
1465 2013-12-04 Brian J. Burg <burg@cs.washington.edu>
1467 Consolidate various frame snapshot capabilities.
1468 https://bugs.webkit.org/show_bug.cgi?id=124325
1470 Reviewed by Darin Adler.
1472 Use new platform-independent methods instead of Mac methods.
1474 * WebView/WebHTMLView.mm:
1475 (-[WebHTMLView _selectionDraggingImage]):
1476 (-[WebHTMLView selectionImageForcingBlackText:]):
1478 2013-12-04 Andy Estes <aestes@apple.com>
1480 [iOS] Build projects with $(ARCHS_STANDARD_32_64_BIT)
1481 https://bugs.webkit.org/show_bug.cgi?id=125236
1483 Reviewed by Sam Weinig.
1485 $(ARCHS_STANDARD_32_64_BIT) is what we want for both device and simulator builds.
1487 * Configurations/DebugRelease.xcconfig:
1489 2013-12-03 Joseph Pecoraro <pecoraro@apple.com>
1491 Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
1492 https://bugs.webkit.org/show_bug.cgi?id=124613
1494 Reviewed by Timothy Hatcher.
1496 Remove the old ENABLE(REMOTE_INSPECTOR) connection management implementation.
1498 * WebCoreSupport/WebInspectorClient.h:
1499 * WebCoreSupport/WebInspectorClient.mm:
1500 (WebInspectorClient::indicate):
1501 (WebInspectorClient::hideIndicate):
1502 Hook up WebView indication through this new path.
1504 * WebCoreSupport/WebFrameLoaderClient.mm:
1505 (WebFrameLoaderClient::dispatchDidReceiveTitle):
1506 * WebCoreSupport/WebInspectorClient.h:
1507 * WebCoreSupport/WebInspectorClient.mm:
1508 (WebInspectorClient::WebInspectorClient):
1509 (WebInspectorClient::inspectorDestroyed):
1510 * WebInspector/remote/WebInspectorClientRegistry.h: Removed.
1511 * WebInspector/remote/WebInspectorClientRegistry.mm: Removed.
1512 * WebInspector/remote/WebInspectorRelayDefinitions.h: Removed.
1513 * WebInspector/remote/WebInspectorRemoteChannel.h: Removed.
1514 * WebInspector/remote/WebInspectorRemoteChannel.mm: Removed.
1515 * WebInspector/remote/WebInspectorServer.h: Removed.
1516 * WebInspector/remote/WebInspectorServer.mm: Removed.
1517 * WebInspector/remote/WebInspectorServerWebViewConnection.h: Removed.
1518 * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Removed.
1519 * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Removed.
1520 * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Removed.
1521 * WebInspector/remote/WebInspectorXPCWrapper.h: Removed.
1522 * WebInspector/remote/WebInspectorXPCWrapper.m: Removed.
1524 * WebView/WebView.mm:
1525 (-[WebView _commonInitializationWithFrameName:groupName:]):
1526 (+[WebView _enableRemoteInspector]):
1527 (+[WebView _disableRemoteInspector]):
1528 (+[WebView _disableAutoStartRemoteInspector]):
1529 (+[WebView _isRemoteInspectorEnabled]):
1530 (+[WebView _hasRemoteInspectorSession]):
1531 (-[WebView allowsRemoteInspection]):
1532 (-[WebView setAllowsRemoteInspection:]):
1533 (-[WebView setIndicatingForRemoteInspector:]):
1534 (-[WebView setHostApplicationBundleId:name:]):
1535 (-[WebView _didCommitLoadForFrame:]):
1536 * WebView/WebViewData.h:
1537 * WebView/WebViewData.mm:
1538 (-[WebViewPrivate init]):
1539 (-[WebViewPrivate dealloc]):
1540 * WebView/WebViewInternal.h:
1541 * WebView/WebViewPrivate.h:
1542 Remove old REMOTE_INSPECTOR.
1544 2013-12-02 Chris Fleizach <cfleizach@apple.com>
1546 AX: Crash in accessibilityRoot when Document goes away
1547 https://bugs.webkit.org/show_bug.cgi?id=125113
1549 Reviewed by Tim Horton.
1551 The AXObjectCache can sometimes be null if the render tree has been detached from the document.
1553 * WebView/WebFrame.mm:
1554 (-[WebFrame accessibilityRoot]):
1556 2013-11-28 Antti Koivisto <antti@apple.com>
1558 Remove feature: CSS variables
1559 https://bugs.webkit.org/show_bug.cgi?id=114119
1561 Reviewed by Andreas Kling.
1563 * Configurations/FeatureDefines.xcconfig:
1565 2013-11-27 Sam Weinig <sam@webkit.org>
1569 * WebView/WebAllowDenyPolicyListener.h: Added.
1570 * WebView/WebUIDelegatePrivate.h:
1571 Move the WebAllowDenyPolicyListener protocol to its own file.
1573 2013-11-21 Mark Rowe <mrowe@apple.com>
1575 <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
1577 All modern versions of Xcode set it appropriately for our needs.
1579 Reviewed by Alexey Proskuryakov.
1581 * Configurations/Base.xcconfig:
1583 2013-11-21 Mark Rowe <mrowe@apple.com>
1585 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
1587 Reviewed by Alexey Proskuryakov.
1589 * Configurations/Base.xcconfig:
1591 2013-11-21 Mark Rowe <mrowe@apple.com>
1593 <https://webkit.org/b/124700> Fix some deprecation warnings.
1595 Reviewed by Anders Carlsson.
1597 * Plugins/WebNetscapePluginStream.mm:
1598 (WebNetscapePluginStream::startStream): Move off a deprecated NSData method.
1599 * WebView/WebDataSource.mm:
1600 (-[WebDataSource _fileWrapperForURL:]): Move off a deprecated NSFileWrapper method.
1601 * WebView/WebHTMLView.mm:
1602 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
1604 2013-11-20 Mark Lam <mark.lam@apple.com>
1606 Introducing VMEntryScope to update the VM stack limit.
1607 https://bugs.webkit.org/show_bug.cgi?id=124634.
1609 Reviewed by Geoffrey Garen.
1611 * WebView/WebScriptDebugger.mm:
1612 (WebScriptDebugger::sourceParsed):
1614 2013-11-19 Ryosuke Niwa <rniwa@webkit.org>
1616 Enable HTMLTemplateElement on Mac port
1617 https://bugs.webkit.org/show_bug.cgi?id=124637
1619 Reviewed by Tim Horton.
1621 * Configurations/FeatureDefines.xcconfig:
1623 2013-11-18 Commit Queue <commit-queue@webkit.org>
1625 Unreviewed, rolling out r159455.
1626 http://trac.webkit.org/changeset/159455
1627 https://bugs.webkit.org/show_bug.cgi?id=124568
1629 broke two api tests (see bug 124564) (Requested by thorton on
1632 * WebView/WebHTMLView.mm:
1633 (-[WebHTMLView _selectionDraggingImage]):
1634 (-[WebHTMLView selectionImageForcingBlackText:]):
1636 2013-11-18 Mark Rowe <mrowe@apple.com>
1638 Disable deprecation warnings related to NSCalendarDate in WebHistory.
1640 Reviewed by Anders Carlsson.
1642 * History/WebHistory.h: Use a #pragma to have the compiler treat this header as
1643 a system header, even when not included from a system location. This has the effect
1644 of suppressing warnings when including this header. It's a more general effect than
1645 we're after but is also less invasive than disabling deprecation warnings around
1646 the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
1648 * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
1650 2013-11-18 David Hyatt <hyatt@apple.com>
1652 Add a quirk to not respect center text-align when positioning
1654 <rdar://problem/15427571>
1655 https://bugs.webkit.org/show_bug.cgi?id=124522
1657 Reviewed by Simon Fraser.
1659 Added fast/block/legacy-text-align-position-quirk.html
1661 * WebView/WebPreferenceKeysPrivate.h:
1662 * WebView/WebPreferences.mm:
1663 (+[WebPreferences initialize]):
1664 (-[WebPreferences useLegacyTextAlignPositionedElementBehavior]):
1665 (-[WebPreferences setUseLegacyTextAlignPositionedElementBehavior:]):
1666 * WebView/WebPreferencesPrivate.h:
1667 * WebView/WebView.mm:
1668 (-[WebView _preferencesChanged:]):
1670 2013-11-18 Brian J. Burg <burg@cs.washington.edu>
1672 Consolidate various frame snapshot capabilities.
1673 https://bugs.webkit.org/show_bug.cgi?id=124325
1675 Reviewed by Timothy Hatcher.
1677 Use new platform-independent methods instead of Mac methods.
1679 * WebView/WebHTMLView.mm:
1680 (-[WebHTMLView _selectionDraggingImage]):
1681 (-[WebHTMLView selectionImageForcingBlackText:]):
1683 2013-11-18 Anders Carlsson <andersca@apple.com>
1685 Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
1686 https://bugs.webkit.org/show_bug.cgi?id=124523
1688 Reviewed by Dan Bernstein.
1690 * Plugins/Hosted/NetscapePluginHostManager.mm:
1691 (WebKit::NetscapePluginHostManager::spawnPluginHost):
1692 (WebKit::NetscapePluginHostManager::didCreateWindow):
1693 * Plugins/Hosted/NetscapePluginHostProxy.mm:
1694 (WebKit::NetscapePluginHostProxy::makeCurrentProcessFrontProcess):
1695 (WebKit::NetscapePluginHostProxy::makePluginHostProcessFrontProcess):
1696 (WebKit::NetscapePluginHostProxy::isPluginHostProcessFrontProcess):
1698 2013-11-18 Anders Carlsson <andersca@apple.com>
1700 Ignore deprecation warnings for now.
1702 * History/WebHistory.h:
1704 2013-11-14 Anders Carlsson <andersca@apple.com>
1706 Reimplement getDayBoundaries using NSCalendar on 10.9
1707 https://bugs.webkit.org/show_bug.cgi?id=124379
1709 Reviewed by Dan Bernstein.
1711 * History/WebHistory.mm:
1714 2013-11-14 Anders Carlsson <andersca@apple.com>
1716 Stop using deprecated NSPropertyListSerialization methods
1717 https://bugs.webkit.org/show_bug.cgi?id=124377
1719 Reviewed by Mark Rowe.
1721 * History/WebHistory.mm:
1722 (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1723 * Plugins/Hosted/NetscapePluginHostManager.mm:
1724 (WebKit::NetscapePluginHostManager::spawnPluginHost):
1725 (WebKit::NetscapePluginHostManager::instantiatePlugin):
1726 * Plugins/Hosted/NetscapePluginHostProxy.mm:
1727 (WKPCIdentifierInfo):
1728 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1729 (WebKit::NetscapePluginInstanceProxy::enumerate):
1730 (WebKit::NetscapePluginInstanceProxy::marshalValue):
1731 (WebKit::NetscapePluginInstanceProxy::marshalValues):
1732 (WebKit::NetscapePluginInstanceProxy::demarshalValue):
1733 (WebKit::NetscapePluginInstanceProxy::demarshalValues):
1734 * Plugins/Hosted/ProxyInstance.mm:
1735 (WebKit::ProxyInstance::getPropertyNames):
1737 2013-11-13 Joseph Pecoraro <pecoraro@apple.com>
1739 Unreviewed rollout of r159271, broke Mountain Lion build.
1741 * History/WebHistory.h:
1742 * History/WebHistory.mm:
1744 2013-11-13 Anders Carlsson <andersca@apple.com>
1746 Deprecate WebHistory methods that use NSCalendarDate
1747 https://bugs.webkit.org/show_bug.cgi?id=124329
1748 <rdar://problem/15441122>
1750 Reviewed by Mark Rowe.
1752 * History/WebHistory.h:
1753 Add NS_DEPRECATED_MAC to orderedLastVisitedDays and orderedItemsLastVisitedOnDay:.
1754 In order to not break the Mountain Lion build, define __NSd_10_9 if necessary.
1756 * History/WebHistory.mm:
1757 Ignore deprecation warnings in methods where NSCalendarDate is used.
1759 2013-11-13 Gordon Sheridan <gordon_sheridan@apple.com>
1761 Removed deprecated download delegates.
1762 https://bugs.webkit.org/show_bug.cgi?id=124309
1763 <rdar://problem/13570414>
1765 Reviewed by Anders Carlsson.
1767 * Misc/WebDownload.mm:
1768 (-[WebDownloadInternal respondsToSelector:]):
1769 Removed download:shouldBeginChildDownloadOfSource:delegate and
1770 download:didBeginChildDownload.
1772 2013-11-12 Alexey Proskuryakov <ap@apple.com>
1774 Disable WebCrypto on Mountain Lion
1775 https://bugs.webkit.org/show_bug.cgi?id=124261
1777 Rubber-stamped by Sam Weinig.
1779 * Configurations/FeatureDefines.xcconfig:
1781 2013-11-12 Andy Estes <aestes@apple.com>
1783 [Mac] Fix some deprecation warnings
1784 https://bugs.webkit.org/show_bug.cgi?id=124252
1786 Reviewed by Mark Rowe.
1788 * Plugins/WebBasePluginPackage.mm:
1789 (-[WebBasePluginPackage pListForPath:createFile:]): Use +[NSPropertyListSerialization propertyListWithData:options:format:error:] instead of +[NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:].
1791 2013-11-12 Anders Carlsson <andersca@apple.com>
1793 Remove -[WebHistoryItem _lastVisitedDate]
1794 https://bugs.webkit.org/show_bug.cgi?id=124250
1796 Reviewed by Mark Rowe.
1798 This method is not called by anyone and NSCalendarDate is deprecated so get rid of it.
1800 * History/WebHistoryItem.mm:
1801 * History/WebHistoryItemPrivate.h:
1803 2013-11-11 Anders Carlsson <andersca@apple.com>
1805 FrameFilter can just be an std::function instead
1806 https://bugs.webkit.org/show_bug.cgi?id=124176
1808 Reviewed by Tim Horton.
1810 * DOM/WebDOMOperations.mm:
1811 (-[DOMNode webArchiveByFilteringSubframes:]):
1813 2013-11-11 Dan Bernstein <mitz@apple.com>
1815 [Mac] .exp files are not source code
1816 https://bugs.webkit.org/show_bug.cgi?id=124154
1818 Reviewed by Andy Estes.
1820 * Configurations/WebKit.xcconfig: Removed WebKit.iOS.exp from
1821 EXCLUDED_SOURCE_FILE_NAMES_macosx.
1823 2013-11-09 Patrick Gansterer <paroga@webkit.org>
1825 Move RunLoop from WebCore to WTF
1826 https://bugs.webkit.org/show_bug.cgi?id=116606
1828 Reviewed by Anders Carlsson.
1830 * Carbon/CarbonWindowAdapter.mm:
1831 (+[CarbonWindowAdapter initialize]):
1832 * History/WebBackForwardList.mm:
1833 (+[WebBackForwardList initialize]):
1834 * History/WebHistoryItem.mm:
1835 (+[WebHistoryItem initialize]):
1837 (+[WebCache initialize]):
1838 * Misc/WebElementDictionary.mm:
1839 (+[WebElementDictionary initialize]):
1840 * Misc/WebIconDatabase.mm:
1841 (+[WebIconDatabase initialize]):
1842 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1843 (+[WebHostedNetscapePluginView initialize]):
1844 * Plugins/WebBaseNetscapePluginView.mm:
1845 * Plugins/WebBasePluginPackage.mm:
1846 * Plugins/WebNetscapePluginView.mm:
1847 (+[WebNetscapePluginView initialize]):
1848 * WebCoreSupport/WebEditorClient.mm:
1849 (+[WebUndoStep initialize]):
1850 * WebCoreSupport/WebFrameLoaderClient.mm:
1851 * WebView/WebArchive.mm:
1852 (+[WebArchivePrivate initialize]):
1853 * WebView/WebDataSource.mm:
1854 (+[WebDataSource initialize]):
1855 * WebView/WebHTMLView.mm:
1856 (+[WebHTMLViewPrivate initialize]):
1857 (+[WebHTMLView initialize]):
1858 * WebView/WebPreferences.mm:
1859 (+[WebPreferences initialize]):
1860 * WebView/WebResource.mm:
1861 (+[WebResourcePrivate initialize]):
1862 * WebView/WebTextIterator.mm:
1863 (+[WebTextIteratorPrivate initialize]):
1864 * WebView/WebView.mm:
1865 (+[WebView initialize]):
1866 * WebView/WebViewData.mm:
1867 (+[WebViewPrivate initialize]):
1869 2013-11-08 Mark Lam <mark.lam@apple.com>
1871 Move breakpoint (and exception break) functionality into JSC::Debugger.
1872 https://bugs.webkit.org/show_bug.cgi?id=121796.
1874 Reviewed by Geoffrey Garen.
1876 * WebView/WebScriptDebugger.h:
1877 * WebView/WebScriptDebugger.mm:
1878 (WebScriptDebugger::WebScriptDebugger):
1879 (WebScriptDebugger::handlePause):
1881 2013-11-07 Joseph Pecoraro <pecoraro@apple.com>
1883 Remove a PLATFORM(IOS) from WebKit Private Header
1884 https://bugs.webkit.org/show_bug.cgi?id=124014
1886 Reviewed by Timothy Hatcher.
1888 Make the previously iOS only WebInspectorDidStartSearchingForNode
1889 and WebInspectorDidStopSearchingForNode notifications non iOS specific.
1891 * WebCoreSupport/WebInspectorClient.h:
1892 * WebCoreSupport/WebInspectorClient.mm:
1893 (WebInspectorClient::didSetSearchingForNode):
1894 * WebInspector/WebInspector.h:
1895 * WebInspector/WebInspector.mm:
1898 2013-11-07 Mark Lam <mark.lam@apple.com>
1900 Cosmetic: rename xxxId to xxxID for ScriptId, SourceId, and BreakpointId.
1901 https://bugs.webkit.org/show_bug.cgi?id=123945.
1903 Reviewed by Geoffrey Garen.
1905 * WebView/WebScriptDebugger.mm:
1906 (WebScriptDebugger::exception):
1908 2013-11-06 Daniel Bates <dabates@apple.com>
1910 [iOS] Upstream Letterpress effect
1911 https://bugs.webkit.org/show_bug.cgi?id=123932
1913 Reviewed by Sam Weinig.
1915 Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
1918 * Configurations/FeatureDefines.xcconfig:
1920 2013-11-04 Alexey Proskuryakov <ap@apple.com>
1922 DumpRenderTree should reset its preferences file on launch
1923 https://bugs.webkit.org/show_bug.cgi?id=29751
1925 Reviewed by Dan Bernstein.
1927 * WebView/WebView.mm:
1928 (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1929 Further fix reading of AppleKeyboardUIMode - reading it from kCFPreferencesAnyApplication
1930 domain meant that current application's domain was explcitly ignored, and the only
1931 way to override the setting in DRT was through argument domain.
1933 2013-11-01 Jer Noble <jer.noble@apple.com>
1935 [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
1936 https://bugs.webkit.org/show_bug.cgi?id=123621
1938 Reviewed by Eric Carlson.
1940 Add a new isVideoPluginProxyEnabled setting.
1942 * WebView/WebPreferenceKeysPrivate.h:
1943 * WebView/WebPreferences.mm:
1944 (+[WebPreferences initialize]): Set isVideoPluginProxyEnabled preference.
1945 (-[WebPreferences isVideoPluginProxyEnabled]): Pass through to Settings.
1946 * WebView/WebPreferencesPrivate.h:
1947 * WebView/WebView.mm:
1948 (-[WebView _preferencesChanged:]): Set isVideoPluginProxyEnabled preference.
1950 2013-11-01 Andy Estes <aestes@apple.com>
1952 [iOS] Make some headers Private
1953 https://bugs.webkit.org/show_bug.cgi?id=123626
1955 Reviewed by Andreas Kling.
1957 * Configurations/WebKit.xcconfig: Exclude iOS Private headers from the Mac build.
1959 2013-10-31 Alexey Proskuryakov <ap@apple.com>
1961 Enable WebCrypto on Mac
1962 https://bugs.webkit.org/show_bug.cgi?id=123587
1964 Reviewed by Anders Carlsson.
1966 * Configurations/FeatureDefines.xcconfig: Do it.
1968 2013-10-30 Ryosuke Niwa <rniwa@webkit.org>
1970 Remove code for Mac Lion
1971 https://bugs.webkit.org/show_bug.cgi?id=123542
1973 Reviewed by Anders Carlsson.
1975 * WebView/WebHTMLView.mm:
1976 (-[WebHTMLView attachRootLayer:]):
1977 * WebView/WebView.mm:
1979 2013-10-29 Andy Estes <aestes@apple.com>
1981 [iOS] Upstream Source/WebKit/ios/
1982 https://bugs.webkit.org/show_bug.cgi?id=123470
1984 Reviewed by Sam Weinig.
1986 * Configurations/WebKit.xcconfig: Excluded some iOS files from the Mac build.
1988 2013-10-29 Alexey Proskuryakov <ap@apple.com>
1990 Result of focus-option-control-on-page.html depends on system preferences
1991 https://bugs.webkit.org/show_bug.cgi?id=123304
1993 Reviewed by Simon Fraser.
1995 * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1996 Read the preference from its correct domain. This doesn't affect behavior in practice
1997 and isn't part of the fix, but it's a good opportunity to correct this code.
1999 2013-10-29 Jer Noble <jer.noble@apple.com>
2001 [MSE] [Mac] Enable MediaSource on the Mac
2002 https://bugs.webkit.org/show_bug.cgi?id=122484
2004 Reviewed by Darin Adler.
2006 Enable ENABLE_MEDIA_SOURCE.
2008 * Configurations/FeatureDefines.xcconfig:
2010 2013-10-28 Joseph Pecoraro <pecoraro@apple.com>
2012 Upstream remaining PLATFORM(IOS) and ENABLE(REMOTE_INSPECTOR) pieces
2013 https://bugs.webkit.org/show_bug.cgi?id=123411
2015 Reviewed by Timothy Hatcher.
2017 Upstream iOS node highlighting and view indication.
2019 * WebCoreSupport/WebInspectorClient.h:
2020 * WebInspector/WebInspector.h:
2021 * WebInspector/WebInspector.mm:
2022 * WebInspector/WebNodeHighlight.h:
2023 * WebInspector/WebNodeHighlight.mm:
2024 (-[WebHighlightLayer initWithHighlightView:webView:]):
2025 (-[WebHighlightLayer layoutSublayers]):
2026 (-[WebHighlightLayer actionForKey:]):
2027 (-[WebNodeHighlight initWithTargetView:inspectorController:]):
2028 (-[WebNodeHighlight dealloc]):
2029 (-[WebNodeHighlight attach]):
2030 * WebInspector/WebNodeHighlightView.h:
2031 * WebInspector/WebNodeHighlightView.mm:
2032 (-[WebNodeHighlightView initWithWebNodeHighlight:]):
2033 (-[WebNodeHighlightView dealloc]):
2034 (-[WebNodeHighlightView _attach:numLayers:]):
2035 (findIntersectionOnLineBetweenPoints):
2037 (layerPathWithHole):
2039 (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
2040 (-[WebNodeHighlightView _layoutForRectsHighlight:parent:]):
2041 (-[WebNodeHighlightView layoutSublayers:]):
2042 * WebInspector/WebNodeHighlighter.mm:
2043 (-[WebNodeHighlighter highlight]):
2044 * WebView/WebIndicateLayer.h: Added.
2045 * WebView/WebIndicateLayer.mm: Added.
2046 (-[WebIndicateLayer layoutSublayers]):
2047 (-[WebIndicateLayer actionForKey:]):
2048 * WebView/WebView.mm:
2049 (-[WebView setIndicatingForRemoteInspector:]):
2050 (-[WebView setHostApplicationBundleId:name:]):
2051 (-[WebView hostApplicationBundleId]):
2052 (-[WebView hostApplicationName]):
2053 * WebView/WebViewData.h:
2054 * WebView/WebViewData.mm:
2055 (-[WebViewPrivate dealloc]):
2057 2013-10-28 Myles C. Maxfield <mmaxfield@apple.com>
2059 Parsing support for -webkit-text-decoration-skip: ink
2060 https://bugs.webkit.org/show_bug.cgi?id=123358
2062 Reviewed by Dean Jackson.
2064 Adding ENABLE(CSS3_TEXT_DECORATION)
2066 * Configurations/FeatureDefines.xcconfig:
2068 2013-10-25 Joseph Pecoraro <pecoraro@apple.com>
2070 Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
2071 https://bugs.webkit.org/show_bug.cgi?id=123111
2073 Reviewed by Timothy Hatcher.
2075 The actual implementation at the WebCoreSupport/WebInspectorClient level
2076 is the same as INSPECTOR_SERVER. Give debuggable pages a pageIdentifer.
2078 * Configurations/FeatureDefines.xcconfig:
2079 * Misc/WebKitLogging.h:
2082 * WebCoreSupport/WebInspectorClient.h:
2083 (WebInspectorClient::pageId):
2084 (WebInspectorClient::setPageId):
2085 Give WebInspectorClient's a page identifier.
2087 * WebCoreSupport/WebInspectorClient.mm:
2088 (WebInspectorClient::WebInspectorClient):
2089 (WebInspectorClient::inspectorDestroyed):
2090 (WebInspectorClient::sendMessageToFrontend):
2091 (WebInspectorClient::sendMessageToBackend):
2092 (WebInspectorClient::setupRemoteConnection):
2093 (WebInspectorClient::teardownRemoteConnection):
2094 (WebInspectorClient::hasLocalSession):
2095 (WebInspectorClient::canBeRemotelyInspected):
2096 (WebInspectorClient::inspectedWebView):
2097 A WebInspectorClient can be either local or remote. Add handling
2098 for remote connections.
2100 * WebInspector/remote/WebInspectorClientRegistry.h: Added.
2101 * WebInspector/remote/WebInspectorClientRegistry.mm: Added.
2102 (+[WebInspectorClientRegistry sharedRegistry]):
2103 (-[WebInspectorClientRegistry init]):
2104 (-[WebInspectorClientRegistry _getNextAvailablePageId]):
2105 (-[WebInspectorClientRegistry registerClient:]):
2106 (-[WebInspectorClientRegistry unregisterClient:]):
2107 (-[WebInspectorClientRegistry clientForPageId:]):
2108 (-[WebInspectorClientRegistry inspectableWebViews]):
2109 Registry for all potentially debuggable pages. All WebInspectorClient instances.
2111 * WebInspector/remote/WebInspectorRelayDefinitions.h: Added.
2112 Constants (message keys) shared between WebKit and the XPC process.
2114 * WebInspector/remote/WebInspectorServer.h: Added.
2115 * WebInspector/remote/WebInspectorServer.mm: Added.
2116 (-[WebInspectorServer init]):
2117 (-[WebInspectorServer dealloc]):
2118 (-[WebInspectorServer start]):
2119 (-[WebInspectorServer stop]):
2120 (-[WebInspectorServer isEnabled]):
2121 (-[WebInspectorServer xpcConnection]):
2122 (-[WebInspectorServer setupXPCConnectionIfNeeded]):
2123 (-[WebInspectorServer pushListing]):
2124 (-[WebInspectorServer hasActiveDebugSession]):
2125 (-[WebInspectorServer setHasActiveDebugSession:]):
2126 (-[WebInspectorServer xpcConnection:receivedMessage:userInfo:]):
2127 (-[WebInspectorServer xpcConnectionFailed:]):
2128 (-[WebInspectorServer didRegisterClient:]):
2129 (-[WebInspectorServer didUnregisterClient:]):
2130 Singleton to start/stop remote inspection. Handles the connection to the XPC
2131 and hands off connections to the connection controller.
2133 * WebInspector/remote/WebInspectorServerWebViewConnection.h: Added.
2134 * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Added.
2135 (-[WebInspectorServerWebViewConnection initWithController:connectionIdentifier:destination:identifier:]):
2136 (-[WebInspectorServerWebViewConnection setupChannel]):
2137 (-[WebInspectorServerWebViewConnection dealloc]):
2138 (-[WebInspectorServerWebViewConnection connectionIdentifier]):
2139 (-[WebInspectorServerWebViewConnection identifier]):
2140 (-[WebInspectorServerWebViewConnection clearChannel]):
2141 (-[WebInspectorServerWebViewConnection sendMessageToFrontend:]):
2142 (-[WebInspectorServerWebViewConnection sendMessageToBackend:]):
2143 (-[WebInspectorServerWebViewConnection receivedData:]):
2144 (-[WebInspectorServerWebViewConnection receivedDidClose:]):
2145 An individual remote debug session connection.
2147 * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Added.
2148 * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Added.
2149 (-[WebInspectorServerWebViewConnectionController initWithServer:]):
2150 (-[WebInspectorServerWebViewConnectionController dealloc]):
2151 (-[WebInspectorServerWebViewConnectionController closeAllConnections]):
2152 (-[WebInspectorServerWebViewConnectionController _listingForWebView:pageId:registry:]):
2153 (-[WebInspectorServerWebViewConnectionController _pushListing:]):
2154 (-[WebInspectorServerWebViewConnectionController pushListing:]):
2155 (-[WebInspectorServerWebViewConnectionController pushListing]):
2156 (-[WebInspectorServerWebViewConnectionController _receivedSetup:]):
2157 (-[WebInspectorServerWebViewConnectionController _receivedData:]):
2158 (-[WebInspectorServerWebViewConnectionController _receivedDidClose:]):
2159 (-[WebInspectorServerWebViewConnectionController _receivedGetListing:]):
2160 (-[WebInspectorServerWebViewConnectionController _receivedIndicate:]):
2161 (-[WebInspectorServerWebViewConnectionController _receivedConnectionDied:]):
2162 (-[WebInspectorServerWebViewConnectionController receivedMessage:userInfo:]):
2163 (-[WebInspectorServerWebViewConnectionController connectionClosing:]):
2164 (-[WebInspectorServerWebViewConnectionController sendMessageToFrontend:userInfo:]):
2165 ConnectionController:
2166 - Holds all the current ongoing remote debug connections.
2167 - Simplifies multi-threaded work on iOS.
2168 - Dispatches incoming messages from the remote connection.
2170 * WebInspector/remote/WebInspectorRemoteChannel.h: Added.
2171 * WebInspector/remote/WebInspectorRemoteChannel.mm: Added.
2172 (+[WebInspectorRemoteChannel createChannelForPageId:connection:]):
2173 (-[WebInspectorRemoteChannel initWithRemote:local:]):
2174 (-[WebInspectorRemoteChannel closeFromLocalSide]):
2175 (-[WebInspectorRemoteChannel closeFromRemoteSide]):
2176 (-[WebInspectorRemoteChannel sendMessageToFrontend:]):
2177 (-[WebInspectorRemoteChannel sendMessageToBackend:]):
2178 Thin interface between the remote connection and web inspector client.
2179 This simplifies breaking the connection from either side, e.g. the
2180 page closing, or the remote connection disconnecting.
2182 * WebInspector/remote/WebInspectorXPCWrapper.h: Added.
2183 * WebInspector/remote/WebInspectorXPCWrapper.m: Added.
2184 (-[WebInspectorXPCWrapper initWithConnection:]):
2185 (-[WebInspectorXPCWrapper close]):
2186 (-[WebInspectorXPCWrapper dealloc]):
2187 (-[WebInspectorXPCWrapper _deserializeMessage:]):
2188 (-[WebInspectorXPCWrapper _handleEvent:]):
2189 (-[WebInspectorXPCWrapper sendMessage:userInfo:]):
2190 (-[WebInspectorXPCWrapper available]):
2192 XPC Connection wrapper handling a simple message format.
2194 * WebView/WebViewData.h:
2195 * WebView/WebViewData.mm:
2196 (-[WebViewPrivate init]):
2197 (-[WebViewPrivate dealloc]):
2198 * WebView/WebViewInternal.h:
2199 * WebView/WebViewPrivate.h:
2200 * WebView/WebView.mm:
2201 (-[WebView _commonInitializationWithFrameName:groupName:]):
2202 (+[WebView sharedWebInspectorServer]):
2203 (+[WebView _enableRemoteInspector]):
2204 (+[WebView _disableRemoteInspector]):
2205 (+[WebView _disableAutoStartRemoteInspector]):
2206 (+[WebView _isRemoteInspectorEnabled]):
2207 (+[WebView _hasRemoteInspectorSession]):
2208 (-[WebView canBeRemotelyInspected]):
2209 (-[WebView allowsRemoteInspection]):
2210 (-[WebView setAllowsRemoteInspection:]):
2211 (-[WebView setIndicatingForRemoteInspector:]):
2212 (-[WebView setRemoteInspectorUserInfo:]):
2213 (-[WebView remoteInspectorUserInfo]):
2214 Remote inspector private API.
2215 - Enable / disable globally
2216 - Allow / disallow per webview
2217 - Optionally attach a userInfo dictionary on the WebView that is published with listing.
2218 - Indicate a WebView (implementation to land later)
2220 (-[WebView _didCommitLoadForFrame:]):
2221 * WebCoreSupport/WebFrameLoaderClient.mm:
2222 (WebFrameLoaderClient::dispatchDidReceiveTitle):
2223 Pages changed, pushed page listing.
2225 2013-10-25 Mark Rowe <mrowe@apple.com>
2227 Fix or disable some deprecation warnings.
2229 Reviewed by Darin Adler.
2231 * Panels/WebAuthenticationPanel.m:
2232 (-[WebAuthenticationPanel cancel:]): On newer OS versions, use the modern API.
2233 (-[WebAuthenticationPanel logIn:]): Ditto.
2234 (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]): Ditto. Translate the
2235 response code in to the form that -sheetDidEnd:responseCode:contextInfo: expects.
2236 * WebView/WebClipView.mm:
2237 (-[WebClipView initWithFrame:]): Disable deprecation warnings since it's not obvious
2238 how to avoid calling -releaseGState here.
2240 2013-10-24 Mark Rowe <mrowe@apple.com>
2242 Remove references to OS X 10.7 from Xcode configuration settings.
2244 Now that we're not building for OS X 10.7 they're no longer needed.
2246 Reviewed by Anders Carlsson.
2248 * Configurations/Base.xcconfig:
2249 * Configurations/DebugRelease.xcconfig:
2250 * Configurations/FeatureDefines.xcconfig:
2251 * Configurations/Version.xcconfig:
2253 2013-10-24 Mark Rowe <mrowe@apple.com>
2255 <rdar://problem/15312643> Prepare for the mysterious future.
2257 Reviewed by David Kilzer.
2259 * Configurations/Base.xcconfig:
2260 * Configurations/DebugRelease.xcconfig:
2261 * Configurations/FeatureDefines.xcconfig:
2262 * Configurations/Version.xcconfig:
2264 2013-10-24 Anders Carlsson <andersca@apple.com>
2266 Stop bringing in the std namespace
2267 https://bugs.webkit.org/show_bug.cgi?id=123273
2269 Reviewed by Andreas Kling.
2271 * WebView/WebFrameView.mm:
2272 (-[WebFrameView _verticalPageScrollDistance]):
2273 (-[WebFrameView _horizontalPageScrollDistance]):
2274 * WebView/WebHTMLView.mm:
2275 (-[WebHTMLView _scaleFactorForPrintOperation:]):
2276 * WebView/WebView.mm:
2277 (+[WebView _setCacheModel:]):
2278 (+[WebView _maxCacheModelInAnyInstance]):
2279 (+[WebView _cacheModelChangedNotification:]):
2280 (+[WebView _preferencesRemovedNotification:]):
2282 2013-10-22 Dean Jackson <dino@apple.com>
2284 [WebGL] Implement a software rendering option on Mac
2285 https://bugs.webkit.org/show_bug.cgi?id=123177
2287 Reviewed by Tim Horton.
2289 Implement a way to force software OpenGL rendering
2290 for WebGL, via a Setting/Preference.
2292 * WebView/WebPreferenceKeysPrivate.h: New WebKitForceSoftwareWebGLRendering key.
2293 * WebView/WebPreferences.mm:
2294 (+[WebPreferences initialize]):
2295 (-[WebPreferences forceSoftwareWebGLRendering]):
2296 (-[WebPreferences setForceSoftwareWebGLRendering:]):
2297 * WebView/WebPreferencesPrivate.h:
2298 * WebView/WebView.mm:
2299 (-[WebView _preferencesChanged:]):
2301 2013-10-21 Mark Rowe <mrowe@apple.com>
2303 Add a version of WebKitSystemInterface for Mavericks.
2305 Reviewed by Ryosuke Niwa.
2307 * Configurations/DebugRelease.xcconfig:
2309 2013-10-21 Daniel Bates <dabates@apple.com>
2311 Remove platform #ifdefs from WebDataSourcePrivate.h
2312 https://bugs.webkit.org/show_bug.cgi?id=123120
2313 <rdar://problem/15275533>
2315 Reviewed by Anders Carlsson.
2317 * WebView/WebDataSource.mm:
2318 (-[WebDataSource _setAllowToBeMemoryMapped]): Define empty implementation when building without
2319 disk image cache enabled.
2320 (-[WebDataSource setDataSourceDelegate:]): Ditto.
2321 (-[WebDataSource dataSourceDelegate]): Return nullptr when building without disk image cache
2323 * WebView/WebDataSourcePrivate.h: Removed platform #ifdefs added in
2324 <http://trac.webkit.org/changeset/156918> (https://bugs.webkit.org/show_bug.cgi?id=121985)
2326 2013-10-20 Mark Lam <mark.lam@apple.com>
2328 Avoid JSC debugger overhead unless needed.
2329 https://bugs.webkit.org/show_bug.cgi?id=123084.
2331 Reviewed by Geoffrey Garen.
2333 * WebView/WebScriptDebugger.mm:
2334 (WebScriptDebugger::WebScriptDebugger):
2336 2013-10-19 Jer Noble <jer.noble@apple.com>
2338 Unreviewed roll out of r157695; broke Mac builds.
2340 * Configurations/FeatureDefines.xcconfig:
2342 2013-10-07 Jer Noble <jer.noble@apple.com>
2344 [MSE] [Mac] Enable MediaSource on the Mac
2345 https://bugs.webkit.org/show_bug.cgi?id=122484
2347 Reviewed by Darin Adler.
2349 Enable ENABLE_MEDIA_SOURCE.
2351 * Configurations/FeatureDefines.xcconfig:
2353 2013-10-19 Andreas Kling <akling@apple.com>
2355 Attempt to get Lion building.
2357 * WebView/WebDataSource.mm:
2359 2013-10-18 Anders Carlsson <andersca@apple.com>
2361 Remove spaces between template angle brackets
2362 https://bugs.webkit.org/show_bug.cgi?id=123040
2364 Reviewed by Andreas Kling.
2366 * History/WebHistory.mm:
2367 (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
2368 * History/WebHistoryItem.mm:
2369 (-[WebHistoryItem initFromDictionaryRepresentation:]):
2370 * Plugins/Hosted/NetscapePluginHostProxy.h:
2371 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2372 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2373 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
2374 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
2375 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
2376 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
2377 (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
2378 * Plugins/WebNetscapePluginView.h:
2379 * Plugins/WebNetscapePluginView.mm:
2380 (-[WebNetscapePluginView destroyPlugin]):
2381 * Storage/WebDatabaseManager.mm:
2382 (-[WebDatabaseManager origins]):
2383 * Storage/WebStorageManager.mm:
2384 (-[WebStorageManager origins]):
2385 * WebCoreSupport/WebApplicationCache.mm:
2386 (+[WebApplicationCache originsWithCache]):
2387 * WebCoreSupport/WebEditorClient.h:
2388 * WebCoreSupport/WebEditorClient.mm:
2389 (WebEditorClient::getClientPasteboardDataForRange):
2390 (WebEditorClient::documentFragmentFromAttributedString):
2391 * WebCoreSupport/WebFrameLoaderClient.h:
2392 * WebCoreSupport/WebNotificationClient.h:
2393 * WebCoreSupport/WebNotificationClient.mm:
2394 (WebNotificationClient::show):
2395 (WebNotificationClient::clearNotifications):
2396 * WebView/WebArchive.mm:
2397 (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2398 (-[WebArchive subresources]):
2399 (-[WebArchive subframeArchives]):
2400 * WebView/WebDataSource.mm:
2401 (-[WebDataSource subresources]):
2402 * WebView/WebViewData.h:
2404 2013-10-16 Jochen Eisinger <jochen@chromium.org>
2406 A page should exit fullscreen mode if it opens a new popup
2407 https://bugs.webkit.org/show_bug.cgi?id=122865
2409 Reviewed by Jer Noble.
2411 If a fullscreen page opens a popup, the popup would be hidden and
2412 therefore invisible to the user. To avoid this, exit fullscreen mode
2413 before opening a new window.
2415 * WebCoreSupport/WebChromeClient.mm:
2416 (WebChromeClient::createWindow):
2418 2013-10-15 Dean Jackson <dino@apple.com>
2420 Add ENABLE_WEB_ANIMATIONS flag
2421 https://bugs.webkit.org/show_bug.cgi?id=122871
2423 Reviewed by Tim Horton.
2425 Eventually might be http://dev.w3.org/fxtf/web-animations/
2426 but this is just engine-internal work at the moment.
2428 * Configurations/FeatureDefines.xcconfig:
2430 2013-10-15 Andy Estes <aestes@apple.com>
2432 Expose -[WebPluginPackage bundle] as SPI
2433 https://bugs.webkit.org/show_bug.cgi?id=122814
2435 Reviewed by Anders Carlsson.
2437 * Plugins/WebPluginPackage.mm:
2438 (-[WebPluginPackage bundle]): Defined.
2439 * Plugins/WebPluginPackagePrivate.h: Declared bundle as a method in a
2440 category on NSObject.
2442 2013-10-12 Darin Adler <darin@apple.com>
2444 Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
2445 https://bugs.webkit.org/show_bug.cgi?id=122713
2447 Reviewed by Sam Weinig.
2449 * WebView/WebHTMLRepresentation.mm:
2450 (-[WebHTMLRepresentation elementWithName:inForm:]): Use asHTMLElement.
2451 (-[WebHTMLRepresentation controlsInForm:]): Ditto.
2453 2013-10-12 Adam Roben <aroben@webkit.org>
2455 WebViews inside OS X screen savers have large caches, but should not
2456 https://bugs.webkit.org/show_bug.cgi?id=122604
2458 We use WebCacheModelDocumentViewer by default for apps linked against
2459 modern WebKit, and WebCacheModelDocumentBrowser for apps linked
2460 against legacy WebKit. ScreenSaverEngine.app doesn't link against
2461 WebKit at all, and thus falls into the legacy case by accident because
2462 NSVersionOfLinkTimeLibrary("WebKit") returns -1.
2464 But WebViews inside screen savers are almost certainly not being used
2465 as browsers, so this large-ish cache specified by
2466 WebCacheModelDocumentBrowser is wasteful. This is likely true for all
2467 apps that don't directly link against WebKit, so now we use
2468 WebCacheModelDocumentViewer by default for those apps.
2470 Reviewed by Darin Adler.
2472 * WebView/WebPreferences.mm:
2473 (cacheModelForMainBundle): Use WebCacheModelDocumentViewer by default
2474 for apps that don't link against WebKit directly. Also converted to
2475 use @autoreleasepool {} and early returns while I was in here.
2477 2013-10-12 Alexey Proskuryakov <ap@apple.com>
2479 Add a feature define for SubtleCrypto
2480 https://bugs.webkit.org/show_bug.cgi?id=122683
2482 Reviewed by Anders Carlsson.
2484 * Configurations/FeatureDefines.xcconfig:
2486 2013-10-12 Darin Adler <darin@apple.com>
2488 Use unique_ptr instead of delete in a few places
2489 https://bugs.webkit.org/show_bug.cgi?id=122639
2491 Reviewed by Anders Carlsson.
2493 * History/WebHistory.mm:
2494 (-[WebHistoryPrivate init]): Use make_unique.
2495 (-[WebHistoryPrivate dealloc]): Don't delete.
2496 (-[WebHistoryPrivate finalize]): Don't delete.
2497 (-[WebHistoryPrivate data]): Use get.
2499 * WebCoreSupport/WebFrameNetworkingContext.mm:
2500 (privateSession): Use NeverDestroyed here instead of a raw pointer.
2501 (WebFrameNetworkingContext::ensurePrivateBrowsingSession): Use the
2502 new function instead of direct global variable access.
2503 (WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
2504 (WebFrameNetworkingContext::storageSession): Ditto.
2506 * WebView/WebFrame.mm:
2507 (-[WebFramePrivate dealloc]): Don't delete.
2508 (-[WebFramePrivate finalize]): Don't delete.
2509 (-[WebFrame _attachScriptDebugger]): Use make_unique.
2510 (-[WebFrame _detachScriptDebugger]): Don't delete.
2511 * WebView/WebFrameInternal.h: Use unique_ptr.
2513 2013-10-11 Timothy Hatcher <timothy@apple.com>
2515 Remove preference support for picking the old Web Inspector.
2516 https://bugs.webkit.org/show_bug.cgi?id=122655
2518 Reviewed by Alexey Proskuryakov.
2520 * WebCoreSupport/WebInspectorClient.mm:
2521 (WebInspectorFrontendClient::localizedStringsURL):
2522 (-[WebInspectorWindowController inspectorPagePath]):
2524 2013-10-10 Simon Fraser <simon.fraser@apple.com>
2526 Always force layout before flushing compositing layers
2527 https://bugs.webkit.org/show_bug.cgi?id=122626
2529 Reviewed by Tim Horton.
2531 [m_webView _flushCompositingChanges] only actually flushes compositing
2532 layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
2533 returns in this case). In this situation, flushLayers() does actually try
2534 to force a layout, but on some platforms it's possible for something else
2535 to dirty layout before the runloop observer fires again. This can result
2536 in flushLayers() never actually managing to flush, which stalls visual
2539 Fix by always calling -viewWillDraw (which updates layout) before flushing
2540 layers. This now matches WebKit2 behavior.
2542 * WebView/WebView.mm:
2543 (LayerFlushController::flushLayers):
2545 2013-10-10 Andy Estes <aestes@apple.com>
2547 Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones
2548 https://bugs.webkit.org/show_bug.cgi?id=122608
2550 Reviewed by Dan Bernstein.
2552 Based on patches by Dan Bernstein.
2554 * WebView/WebView.mm:
2555 (-[WebView _setFontFallbackPrefersPictographs:]): Called
2556 WebCore::Settings::setFontFallbackPrefersPictographs().
2557 * WebView/WebViewPrivate.h:
2559 2013-10-10 Mark Rowe <mrowe@apple.com>
2561 <rdar://problem/13341666> WebKit should always build against an SDK.
2563 Have all projects default to building against the OS X Internal SDK for the Production
2564 configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
2565 to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
2567 Reviewed by Dan Bernstein.
2569 * Configurations/Base.xcconfig:
2570 * Configurations/DebugRelease.xcconfig:
2572 2013-10-08 Darin Adler <darin@apple.com>
2574 WebNetscapePluginView should no longer use deleteAllValues
2575 https://bugs.webkit.org/show_bug.cgi?id=122495
2577 Reviewed by Anders Carlsson.
2579 * Plugins/WebNetscapePluginView.h: Use unique_ptr for both the pointer to
2580 the timers hash table, and for the values in the hash table.
2582 * Plugins/WebNetscapePluginView.mm:
2583 (-[WebNetscapePluginView stopTimers]): Rewrote loop so it works with unique_ptr.
2584 (-[WebNetscapePluginView startTimers]): Ditto.
2585 (-[WebNetscapePluginView fini]): Removed unneeded code to delete timers.
2586 (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]): Make
2587 the timers hash table with make-unique. Fixed the loop that chooses the timer
2588 ID so it won't ever try to use a deleted value, although that never happens
2589 in practice. Use HashMap::add instead of using both contains and set.
2590 Rearranged code so we don't need to make a raw pointer for the timer.
2591 (-[WebNetscapePluginView unscheduleTimer:]): Use remove instead of take/delete,
2592 since remove takes care of the deletion automatically since we are using the
2595 2013-10-08 Darin Adler <darin@apple.com>
2597 Eliminate use of deleteAllValues in ProxyInstance
2598 https://bugs.webkit.org/show_bug.cgi?id=122499
2600 Reviewed by Anders Carlsson.
2602 * Plugins/Hosted/ProxyInstance.h: Use unique_ptr for map values in m_fields and m_methods.
2604 * Plugins/Hosted/ProxyInstance.mm:
2605 (WebKit::ProxyInstance::~ProxyInstance): Removed calls to deleteAllValues.
2606 (WebKit::ProxyInstance::methodNamed): Use make_unique and get to deal with map entries
2607 that are unique_ptr. Also fixed a bug where this would do an expensive no-op if the map
2608 already had an entry with a null in it. We would call the plug-in, but eventually
2609 isNewEntry would be false so we would return null.
2610 (WebKit::ProxyInstance::fieldNamed): Use make_unique and get to deal with map entries
2611 that are unique_ptr.
2613 2013-10-08 Darin Adler <darin@apple.com>
2615 Change NetscapePluginInstanceProxy::m_replies to use unique_ptr instead of deleteAllValues
2616 https://bugs.webkit.org/show_bug.cgi?id=122492
2618 Reviewed by Andreas Kling.
2620 * Plugins/Hosted/NetscapePluginHostManager.mm:
2621 (WebKit::NetscapePluginHostManager::instantiatePlugin): Use auto so this works with
2622 unique_ptr instead of auto_ptr.
2623 * Plugins/Hosted/NetscapePluginHostProxy.mm:
2624 (WKPCGetScriptableNPObjectReply): Use make_unique instead of using new directly.
2625 (WKPCBooleanReply): Ditto.
2626 (WKPCBooleanAndDataReply): Ditto.
2627 (WKPCInstantiatePluginReply): Ditto.
2628 * Plugins/Hosted/NetscapePluginInstanceProxy.h: Changed m_replies to map to unique_ptr
2629 instead of to a raw pointer.
2630 (WebKit::NetscapePluginInstanceProxy::setCurrentReply): Changed to take a unique_ptr
2631 instead of a raw pointer since this takes ownership of the pointer.
2632 (WebKit::NetscapePluginInstanceProxy::waitForReply): Changed to return a unique_ptr
2633 instead of a auto_ptr because that's better. Use unique_ptr inside the function
2634 too to avoid the need for an explicit delete.
2635 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2636 (WebKit::NetscapePluginInstanceProxy::~NetscapePluginInstanceProxy): Removed the call to
2638 (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Removed unneeded initialization
2639 of a local variable that was already set in all code paths.
2640 (WebKit::NetscapePluginInstanceProxy::wheelEvent): Use auto so this works with unique_ptr
2641 instead of auto_ptr.
2642 (WebKit::NetscapePluginInstanceProxy::print): Ditto.
2643 (WebKit::NetscapePluginInstanceProxy::snapshot): Ditto. Ditto.
2644 (WebKit::NetscapePluginInstanceProxy::processRequestsAndWaitForReply): Changed to return
2645 a unique_ptr. Also removed an unneeded assertion.
2646 (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): Use auto so this works
2647 with unique_ptr instead of auto_ptr.
2649 * Plugins/Hosted/ProxyInstance.h: Changed return type of waitForReply to unique_ptr.
2651 * Plugins/Hosted/ProxyInstance.mm:
2652 (WebKit::ProxyInstance::invoke): Use auto so this works with unique_ptr instead of auto_ptr.
2653 (WebKit::ProxyInstance::supportsInvokeDefaultMethod): Ditto.
2654 (WebKit::ProxyInstance::supportsConstruct): Ditto.
2655 (WebKit::ProxyInstance::getPropertyNames): Ditto.
2656 (WebKit::ProxyInstance::methodNamed): Ditto.
2657 (WebKit::ProxyInstance::fieldNamed): Ditto.
2658 (WebKit::ProxyInstance::fieldValue): Ditto.
2659 (WebKit::ProxyInstance::setFieldValue): Ditto.
2661 2013-10-07 Sam Weinig <sam@webkit.org>
2663 CTTE: Use references in and around DragController
2664 https://bugs.webkit.org/show_bug.cgi?id=122427
2666 Reviewed by Andreas Kling.
2668 * WebCoreSupport/WebDragClient.h:
2669 * WebCoreSupport/WebDragClient.mm:
2670 (WebDragClient::actionMaskForDrag):
2671 (WebDragClient::willPerformDragDestinationAction):
2672 (WebDragClient::willPerformDragSourceAction):
2673 (WebDragClient::startDrag):
2674 (WebDragClient::declareAndWriteDragImage):
2675 * WebView/WebFrame.mm:
2676 (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
2677 * WebView/WebHTMLView.mm:
2678 (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
2679 * WebView/WebView.mm:
2680 (-[WebView draggingEntered:]):
2681 (-[WebView draggingUpdated:]):
2682 (-[WebView draggingExited:]):
2683 (-[WebView performDragOperation:]):
2685 2013-10-05 Sam Weinig <sam@webkit.org>
2687 CTTE: Thread references through markup.h
2688 https://bugs.webkit.org/show_bug.cgi?id=122403
2690 Reviewed by Darin Adler and Andreas Kling.
2692 * DOM/WebDOMOperations.mm:
2693 (-[DOMNode markupString]):
2694 (-[DOMRange markupString]):
2695 * WebView/WebFrame.mm:
2696 (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
2697 (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
2699 2013-10-05 Sam Weinig <sam@webkit.org>
2701 CTTE: Pass DocumentWriter around as a reference
2702 https://bugs.webkit.org/show_bug.cgi?id=122396
2704 Reviewed by Andreas Kling.
2706 * WebView/WebFrame.mm:
2707 (-[WebFrame _canProvideDocumentSource]):
2709 2013-10-04 Alexey Proskuryakov <ap@apple.com>
2711 Don't preflight spell checker when calling -setContinuousSpellCheckingEnabled repeatedly
2712 https://bugs.webkit.org/show_bug.cgi?id=122329
2714 Reviewed by Darin Adler.
2716 * WebView/WebView.mm: (-[WebView setContinuousSpellCheckingEnabled:]): Don't do any
2717 work if preference didn't change (continuousSpellCheckingEnabled is a static that
2720 2013-10-04 Anders Carlsson <andersca@apple.com>
2722 FramePolicyFunction should be an std::function
2723 https://bugs.webkit.org/show_bug.cgi?id=122362
2725 Reviewed by Darin Adler.
2727 * WebCoreSupport/WebFrameLoaderClient.h:
2728 * WebCoreSupport/WebFrameLoaderClient.mm:
2729 (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2730 (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2731 (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2732 (WebFrameLoaderClient::dispatchWillSubmitForm):
2734 2013-10-04 Mark Lam <mark.lam@apple.com>
2736 Change ScriptDebugServer to use DebuggerCallFrame instead of JavaScriptCallFrame.
2737 https://bugs.webkit.org/show_bug.cgi?id=121969.
2739 Reviewed by Geoffrey Garen.
2741 1. Make JavaScriptCallFrame a thin shell around the DebuggerCallFrame.
2742 DebuggerCallFrame now tracks whether it is valid instead of needing
2743 JavaScriptCallFrame do it.
2744 2. ScriptDebugServer now only instantiates an DebuggerCallFrame when needed
2745 just before it pauses and calls back to its client, and then invalidates
2746 it immediately when the callback returns. Every subsequent callback to
2747 the client will use a new instance of the DebuggerCallFrame.
2748 3. Similarly, ScriptDebugServer now only creates a JavaScriptCallFrame when
2750 4. DebuggerCallFrame only creates its caller DebuggerCallFrame when
2751 it is needed i.e. when the client calls callerFrame(). Similarly,
2752 JavaScriptCallFrame only creates its caller when it's requested.
2753 5. DebuggerCallFrame's line() and column() now returns a base-zero int.
2754 6. WebScriptDebugDelegate now only caches the functionName of the frame
2755 instead of the entire DebuggerCallFrame because that is all that is
2757 7. Also removed evaluateInGlobalCallFrame() which is not used anywhere.
2759 * WebView/WebScriptDebugDelegate.mm:
2760 (-[WebScriptCallFramePrivate dealloc]):
2761 (-[WebScriptCallFrame _initWithGlobalObject:functionName:exceptionValue:JSC::]):
2762 (-[WebScriptCallFrame functionName]):
2763 (-[WebScriptCallFrame exception]):
2764 * WebView/WebScriptDebugger.mm:
2765 (WebScriptDebugger::exception):
2767 2013-10-04 Anders Carlsson <andersca@apple.com>
2769 Remove some unneeded code from WidgetMac
2770 https://bugs.webkit.org/show_bug.cgi?id=122355
2772 Reviewed by Dan Bernstein.
2774 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.
2776 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2777 * Plugins/WebBaseNetscapePluginView.h:
2778 * Plugins/WebBaseNetscapePluginView.mm:
2780 2013-10-04 Daniel Bates <dabates@apple.com>
2782 [iOS] Upstream disk image cache
2783 https://bugs.webkit.org/show_bug.cgi?id=121985
2785 Reviewed by Joseph Pecoraro.
2788 (+[WebCache statistics]):
2789 * WebView/WebDataSource.mm:
2790 (BufferMemoryMapped): Added.
2791 (-[WebDataSource _setAllowToBeMemoryMapped]): Added.
2792 (-[WebDataSource setDataSourceDelegate:]): Added.
2793 (-[WebDataSource dataSourceDelegate]): Added.
2794 (-[WebDataSource dealloc]):
2795 * WebView/WebDataSourcePrivate.h: Declared private delegate
2796 protocol, WebDataSourcePrivateDelegate.
2797 * WebView/WebPreferenceKeysPrivate.h:
2798 * WebView/WebPreferences.mm:
2799 (+[WebPreferences initialize]):
2800 (-[WebPreferences diskImageCacheEnabled]): Added.
2801 (-[WebPreferences setDiskImageCacheEnabled:]): Added.
2802 (-[WebPreferences diskImageCacheMinimumImageSize]): Added.
2803 (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Added.
2804 (-[WebPreferences diskImageCacheMaximumCacheSize]): Added.
2805 (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Added.
2806 (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Added.
2807 (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Added.
2808 * WebView/WebView.mm:
2809 (-[WebView _commonInitializationWithFrameName:groupName:]):
2810 (-[WebView _preferencesChanged:]):
2812 2013-10-04 Anders Carlsson <andersca@apple.com>
2814 Remove WebAssertions.h
2815 https://bugs.webkit.org/show_bug.cgi?id=122328
2817 Reviewed by Jessie Berlin.
2819 * Misc/WebAssertions.h: Removed.
2821 2013-10-03 Anders Carlsson <andersca@apple.com>
2823 Remove WebNSNotificationCenterExtras
2824 https://bugs.webkit.org/show_bug.cgi?id=122316
2826 Reviewed by Dan Bernstein.
2828 Use dispatch_async to ensure that notifications are posted on the main thread.
2830 * Misc/WebIconDatabase.mm:
2831 (-[WebIconDatabase _sendNotificationForURL:]):
2832 (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
2833 * Misc/WebNSNotificationCenterExtras.h: Removed.
2834 * Misc/WebNSNotificationCenterExtras.m: Removed.
2836 2013-10-03 Sam Weinig <sam@webkit.org>
2838 Remove shouldRubberBandInDirection from the WKBundlePageUIClient
2839 https://bugs.webkit.org/show_bug.cgi?id=122309
2841 Reviewed by Andreas Kling.
2843 * WebCoreSupport/WebChromeClient.h:
2845 2013-10-03 Anders Carlsson <andersca@apple.com>
2847 Ignore deprecation warnings
2848 https://bugs.webkit.org/show_bug.cgi?id=122302
2850 Reviewed by Mark Rowe.
2852 * Misc/WebIconDatabase.mm:
2853 (-[WebIconDatabase _scaleIcon:toSize:]):
2855 * Misc/WebNSImageExtras.m:
2856 (-[NSImage _web_scaleToMaxSize:]):
2857 (-[NSImage _web_dissolveToFraction:]):
2858 * Misc/WebNSViewExtras.m:
2859 (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
2860 (-[NSView _web_convertRect:toView:]):
2861 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2862 (WebKit::NetscapePluginInstanceProxy::mouseEvent):
2863 * Plugins/Hosted/WebTextInputWindowController.m:
2864 (-[WebTextInputPanel _interpretKeyEvent:string:]):
2865 * Plugins/WebBaseNetscapePluginView.mm:
2866 (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
2867 * WebCoreSupport/WebDragClient.mm:
2868 (WebDragClient::startDrag):
2869 * WebInspector/WebNodeHighlight.mm:
2870 (-[WebNodeHighlight _computeHighlightWindowFrame]):
2871 * WebView/WebFullScreenController.mm:
2872 (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
2873 (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
2874 * WebView/WebHTMLView.mm:
2875 (+[WebHTMLView _postFlagsChangedEvent:]):
2876 (-[WebHTMLView _updateMouseoverWithFakeEvent]):
2877 (-[WebHTMLView _autoscroll]):
2878 (-[WebHTMLView mouseDown:]):
2879 (-[WebHTMLView mouseDragged:]):
2880 (-[WebHTMLView mouseUp:]):
2881 (-[WebHTMLView accessibilityHitTest:]):
2882 (-[WebHTMLView _executeSavedKeypressCommands]):
2883 (-[WebHTMLView attachRootLayer:]):
2884 (-[WebHTMLView textStorage]):
2885 (-[WebHTMLView _updateSelectionForInputManager]):
2886 * WebView/WebTextCompletionController.mm:
2887 (-[WebTextCompletionController _buildUI]):
2888 (-[WebTextCompletionController _placePopupWindow:]):
2890 2013-10-01 Sam Weinig <sam@webkit.org>
2892 CTTE: DOMWrapperWorlds should be passed around by reference
2893 https://bugs.webkit.org/show_bug.cgi?id=122206
2895 Reviewed by Andreas Kling.
2897 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2898 (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
2899 (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
2900 (WebKit::NetscapePluginInstanceProxy::evaluate):
2901 * WebCoreSupport/WebFrameLoaderClient.h:
2902 * WebCoreSupport/WebFrameLoaderClient.mm:
2903 * WebView/WebFrame.mm:
2904 (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
2905 (-[WebFrame _globalContextForScriptWorld:]):
2906 (-[WebFrame jsWrapperForNode:inScriptWorld:]):
2907 * WebView/WebScriptWorld.mm:
2908 (+[WebScriptWorld standardWorld]):
2909 (+[WebScriptWorld findOrCreateWorld:]):
2910 * WebView/WebScriptWorldInternal.h:
2911 * WebView/WebView.mm:
2912 (-[WebView _injectOutlookQuirksScript]):
2913 (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
2914 (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
2915 (+[WebView _removeUserScriptFromGroup:world:url:]):
2916 (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
2917 (+[WebView _removeUserScriptsFromGroup:world:]):
2918 (+[WebView _removeUserStyleSheetsFromGroup:world:]):
2920 2013-09-30 Sam Weinig <sam@webkit.org>
2922 Remove support for DOMFileSystem
2923 https://bugs.webkit.org/show_bug.cgi?id=122137
2925 Reviewed by Anders Carlsson.
2927 * Configurations/FeatureDefines.xcconfig:
2929 2013-09-30 Benjamin Poulain <benjamin@webkit.org>
2931 Remove the code guarded by STYLE_SCOPED
2932 https://bugs.webkit.org/show_bug.cgi?id=122123
2934 Reviewed by Anders Carlsson.
2936 * Configurations/FeatureDefines.xcconfig:
2938 2013-09-30 Mark Rowe <mrowe@apple.com>
2940 Fix the build when building against an SDK.
2942 Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
2943 the compiler command lines. It can't know to do this for the system framework search paths
2944 we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
2946 * Configurations/WebKit.xcconfig:
2948 2013-09-29 Mark Rowe <mrowe@apple.com>
2952 Ensure that C++ and Objective-C++ files build with the right compiler flags.
2954 * Configurations/WebKit.xcconfig:
2956 2013-09-28 Mark Rowe <mrowe@apple.com>
2958 Fix some failures with newer versions of clang.
2960 Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
2961 usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
2962 as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
2963 flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
2964 in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
2966 Reviewed by Dan Bernstein.
2968 * Configurations/DebugRelease.xcconfig:
2969 * Configurations/WebKit.xcconfig:
2971 2013-09-28 Mark Rowe <mrowe@apple.com>
2973 Take Xcode's advice and enable some extra warnings.
2975 Reviewed by Sam Weinig.
2977 * Configurations/Base.xcconfig:
2979 2013-09-28 Darin Adler <darin@apple.com>
2981 Add Frame::mainFrame and Frame::isMainFrame
2982 https://bugs.webkit.org/show_bug.cgi?id=122064
2984 Reviewed by Andreas Kling.
2986 * WebCoreSupport/WebFrameLoaderClient.mm:
2987 (WebFrameLoaderClient::canHandleRequest):
2988 (WebFrameLoaderClient::transitionToCommittedForNewPage):
2989 * WebView/WebFrameView.mm:
2990 (-[WebFrameView _install]):
2993 2013-09-28 Mark Rowe <mrowe@apple.com>
2995 WebKit fails to build with newer versions of clang.
2997 Reviewed by Sam Weinig.
2999 * Carbon/HIWebView.mm: Remove an unused function.
3000 * History/BinaryPropertyList.cpp: #if a constant that's only used in 64-bit.
3001 * Misc/WebIconDatabase.mm: Remove two unused constants.
3002 * Plugins/WebBaseNetscapePluginView.mm: Remove an unused constant.
3003 * WebCoreSupport/WebEditorClient.mm: Ditto.
3005 2013-09-27 Enrica Casucci <enrica@apple.com>
3007 Upstream changes to Pasteboard implementation for iOS.
3008 https://bugs.webkit.org/show_bug.cgi?id=121818
3010 Reviewed by Benjamin Poulain.
3012 * WebCoreSupport/WebPlatformStrategies.h:
3013 * WebCoreSupport/WebPlatformStrategies.mm:
3014 (WebPlatformStrategies::writeToPasteboard):
3015 (WebPlatformStrategies::getPasteboardItemsCount):
3016 (WebPlatformStrategies::readBufferFromPasteboard):
3017 (WebPlatformStrategies::readURLFromPasteboard):
3018 (WebPlatformStrategies::readStringFromPasteboard):
3019 (WebPlatformStrategies::changeCount):
3021 2013-09-26 Darin Adler <darin@apple.com>
3024 https://bugs.webkit.org/show_bug.cgi?id=16214
3026 Reviewed by Andreas Kling.
3028 * many files: Renamed, using script.
3030 2013-09-06 Jer Noble <jer.noble@apple.com>
3032 [Mac] Implement the media controls in JavaScript.
3033 https://bugs.webkit.org/show_bug.cgi?id=120895
3035 Reviewed by Dean Jackson.
3037 Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
3039 * Configurations/FeatureDefines.xcconfig:
3041 2013-09-27 Darin Adler <darin@apple.com>
3043 Add empty MainFrame class
3044 https://bugs.webkit.org/show_bug.cgi?id=121770
3046 Reviewed by Andreas Kling.
3048 * WebCoreSupport/WebDragClient.mm:
3049 * WebCoreSupport/WebInspectorClient.mm:
3050 * WebCoreSupport/WebPlatformStrategies.mm:
3051 * WebView/WebFrame.mm:
3052 * WebView/WebHTMLView.mm:
3053 * WebView/WebView.mm:
3054 Include MainFrame.h instead of Frame.h as needed.
3056 2013-09-26 Eric Carlson <eric.carlson@apple.com>
3058 [MediaStream] make MediaStream testable
3059 https://bugs.webkit.org/show_bug.cgi?id=121967
3061 Reviewed by Dean Jackson.
3063 * WebCoreSupport/WebUserMediaClient.h: Added.
3064 * WebCoreSupport/WebUserMediaClient.mm: Added.
3066 * WebView/WebUIDelegatePrivate.h: Declare decidePolicyForUserMediaRequestFromOrigin:listener:
3068 * WebView/WebView.mm:
3069 (-[WebView _commonInitializationWithFrameName:groupName:]): Register WebUserMediaClient.
3070 (-[WebView _setUserMediaClient:]): New.
3071 (-[WebView _userMediaClient]): New.
3072 * WebView/WebViewData.h:
3073 * WebView/WebViewPrivate.h:
3075 2013-09-25 Sam Weinig <sam@webkit.org>
3077 Pass a JSC::VM& to JS bindings object creation functions, rather than a JSC::ExecState*
3078 https://bugs.webkit.org/show_bug.cgi?id=121934
3080 Reviewed by Geoffrey Garen.
3082 * Plugins/Hosted/ProxyInstance.mm:
3083 (WebKit::ProxyInstance::newRuntimeObject):
3084 * Plugins/Hosted/ProxyRuntimeObject.h:
3085 (WebKit::ProxyRuntimeObject::create):
3086 * Plugins/Hosted/ProxyRuntimeObject.mm:
3087 (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3088 (WebKit::ProxyRuntimeObject::finishCreation):
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 Commit Queue <commit-queue@webkit.org>
3101 Unreviewed, rolling out r156432.
3102 http://trac.webkit.org/changeset/156432
3103 https://bugs.webkit.org/show_bug.cgi?id=121932
3105 some integer conversion things that need brady to fix
3106 (Requested by thorton on #webkit).
3108 * Configurations/FeatureDefines.xcconfig:
3110 2013-09-25 Brady Eidson <beidson@apple.com>
3112 Enable the IndexedDB build on Mac, but leave the feature non-functional
3113 https://bugs.webkit.org/show_bug.cgi?id=121918
3115 Reviewed by Alexey Proskuryakov.
3117 * Configurations/FeatureDefines.xcconfig:
3119 2013-09-25 Brent Fulgham <bfulgham@apple.com>
3121 Refactor RuntimeEnabledFeatures as a Singleton.
3122 https://bugs.webkit.org/show_bug.cgi?id=121883.
3124 Reviewed by Jer Noble.
3126 * WebView/WebView.mm:
3127 (-[WebView _preferencesChanged:]): Use singleton accessor.
3128 (-[WebView _setDashboardBehavior:to:]): Ditto.
3130 2013-09-25 Brady Eidson <beidson@apple.com>
3132 FeatureDefine.xcconfig cleanup (They should all be identical).
3133 https://bugs.webkit.org/show_bug.cgi?id=121921
3135 Reviewed by Mark Rowe.
3137 * Configurations/FeatureDefines.xcconfig:
3139 2013-09-24 Mark Lam <mark.lam@apple.com>
3141 Change JSC debug hooks to pass a CallFrame* instead of a DebuggerCallFrame.
3142 https://bugs.webkit.org/show_bug.cgi?id=121867.
3144 Reviewed by Geoffrey Garen.
3146 * WebView/WebScriptDebugDelegate.mm:
3147 (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:exceptionValue:JSC::]):
3148 (-[WebScriptCallFrame exception]):
3149 * WebView/WebScriptDebugger.h:
3150 * WebView/WebScriptDebugger.mm:
3151 (WebScriptDebugger::exception):
3153 2013-09-24 Enrica Casucci <enrica@apple.com>
3155 Upstream changes to Pasteboard implementation for iOS.
3156 https://bugs.webkit.org/show_bug.cgi?id=121818
3158 Reviewed by Darin Adler.
3160 * WebCoreSupport/WebPlatformStrategies.h:
3161 * WebCoreSupport/WebPlatformStrategies.mm:
3162 (WebPlatformStrategies::writeToPasteboard):
3164 2013-09-24 Mark Rowe <mrowe@apple.com>
3166 <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
3168 Reviewed by Dan Bernstein.
3170 * Configurations/Base.xcconfig:
3172 2013-09-21 Mark Lam <mark.lam@apple.com>
3174 Remove unused code in WebKit/mac's WebScriptDebugDelegate.
3175 https://bugs.webkit.org/show_bug.cgi?id=121706.
3177 Reviewed by Timothy Hatcher.
3179 WebScriptDebugDelegate's didEnterCallFrame, willExecuteStatement,
3180 and willLeaveCallFrame are not in use. Removed them and all methods
3181 and fields used for supporting them.
3183 * WebView/WebDelegateImplementationCaching.h:
3184 * WebView/WebScriptDebugDelegate.h:
3185 * WebView/WebScriptDebugDelegate.mm:
3186 (-[WebScriptCallFramePrivate dealloc]):
3187 (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:]):
3188 * WebView/WebScriptDebugger.h:
3189 (WebScriptDebugger::globalObject):
3190 (WebScriptDebugger::callEvent):
3191 (WebScriptDebugger::atStatement):
3192 (WebScriptDebugger::returnEvent):
3193 (WebScriptDebugger::willExecuteProgram):
3194 (WebScriptDebugger::didExecuteProgram):
3195 (WebScriptDebugger::didReachBreakpoint):
3196 * WebView/WebScriptDebugger.mm:
3197 (WebScriptDebugger::WebScriptDebugger):
3198 (WebScriptDebugger::exception):
3199 * WebView/WebView.mm:
3200 (-[WebView _cacheScriptDebugDelegateImplementations]):
3202 2013-09-18 Anders Carlsson <andersca@apple.com>
3204 RefPtrHashMap should work with move only types
3205 https://bugs.webkit.org/show_bug.cgi?id=121564
3207 Reviewed by Andreas Kling.
3209 * Plugins/Hosted/ProxyInstance.mm:
3210 (WebKit::ProxyInstance::methodNamed):
3211 (WebKit::ProxyInstance::fieldNamed):
3213 2013-09-16 Enrica Casucci <enrica@apple.com>
3215 Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
3216 https://bugs.webkit.org/show_bug.cgi?id=121464
3218 Reviewed by Darin Adler.
3220 This method was only implemented in WebEditorClient.mm for Mac where it was
3221 calling a private delegate that is no longer in use.
3223 * DefaultDelegates/WebDefaultEditingDelegate.m:
3224 * WebCoreSupport/WebEditorClient.h:
3225 * WebCoreSupport/WebEditorClient.mm:
3226 * WebView/WebEditingDelegatePrivate.h:
3228 2013-09-13 Anders Carlsson <andersca@apple.com>
3230 Use nullptr instead of 0 in calls to HashMap::add
3231 https://bugs.webkit.org/show_bug.cgi?id=121322
3233 Reviewed by Sam Weinig.
3235 * Plugins/Hosted/NetscapePluginHostManager.mm:
3236 (WebKit::NetscapePluginHostManager::hostForPlugin):
3238 2013-09-13 Dan Bernstein <mitz@apple.com>
3240 [mac WK1] Introduce WebViewWillCloseNotification
3241 https://bugs.webkit.org/show_bug.cgi?id=121321
3243 Reviewed by Sam Weinig.
3245 * WebKit.exp: Exported WebViewWillCloseNotification.
3246 * WebView/WebView.mm:
3247 (-[WebView _close]): Send WebViewWillCloseNotification before closing the WebView.
3248 * WebView/WebViewPrivate.h: Declared WebViewWillCloseNotification.
3250 2013-09-13 Tim Horton <timothy_horton@apple.com>
3252 REGRESSION (r155615): Lots of reftests fail with single line or single pixel differences
3253 https://bugs.webkit.org/show_bug.cgi?id=121245
3255 Reviewed by Darin Adler.
3257 Similar to https://bugs.webkit.org/show_bug.cgi?id=120963,
3258 we need to manually ensure that some pieces of persistent
3259 CoreGraphics state are restored after PDFKit changes them.
3261 In this case, we bookend our restoration around the various
3262 _recursiveDisplay... functions that we also use in WebHTMLView.
3264 * WebView/WebPDFView.mm:
3265 (-[WebPDFView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
3266 (-[WebPDFView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
3267 (-[WebPDFView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
3268 (-[WebPDFView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
3270 2013-09-12 Anders Carlsson <andersca@apple.com>
3272 SharedBuffer::createNSData should return a RetainPtr<NSData>
3273 https://bugs.webkit.org/show_bug.cgi?id=121237
3275 Reviewed by Darin Adler.
3277 Update for WebCore changes. This also fixes a leak where we'd create an NSFileWrapper from NSData but never release the data.
3279 * WebView/WebDataSource.mm:
3280 (-[WebDataSource data]):
3281 * WebView/WebHTMLRepresentation.mm:
3282 (-[WebHTMLRepresentation documentSource]):
3283 * WebView/WebHTMLView.mm:
3284 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
3285 * WebView/WebResource.mm:
3286 (-[WebResource encodeWithCoder:]):
3287 (-[WebResource data]):
3289 2013-09-12 Mark Lam <mark.lam@apple.com>
3291 Change debug hooks to pass sourceID and position info via the DebuggerCallFrame.
3292 https://bugs.webkit.org/show_bug.cgi?id=121214.
3294 Reviewed by Geoffrey Garen.
3296 * webview/WebScriptDebugger.h:
3297 * WebView/WebScriptDebugger.mm:
3298 (WebScriptDebugger::WebScriptDebugger):
3299 (WebScriptDebugger::callEvent):
3300 (WebScriptDebugger::atStatement):
3301 (WebScriptDebugger::returnEvent):
3302 (WebScriptDebugger::exception):
3303 (WebScriptDebugger::willExecuteProgram):
3304 (WebScriptDebugger::didExecuteProgram):
3305 (WebScriptDebugger::didReachBreakpoint):
3307 2013-09-11 Gyuyoung Kim <gyuyoung.kim@samsung.com>
3309 Generate more HTML type checks and casting
3310 https://bugs.webkit.org/show_bug.cgi?id=121080
3312 Reviewed by Andreas Kling.
3314 Clean-up remained functions of HTML elements using auto-generated isFooElement(),
3315 and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
3317 Besides this patch clean-up unnecessary checks which are being supported by
3318 auto-generated isFooElement().
3320 No new tests, no behavior change.
3322 * Plugins/WebPluginController.mm:
3323 * WebCoreSupport/WebChromeClient.mm:
3324 (WebChromeClient::supportsFullscreenForNode):
3325 * WebView/WebView.mm:
3326 (-[WebView _enterFullscreenForNode:WebCore::]):
3328 2013-09-10 Daniel Bates <dabates@apple.com>
3330 [iOS] Upstream text autosizing
3331 https://bugs.webkit.org/show_bug.cgi?id=121111
3333 Reviewed by Andy Estes and Sam Weinig.
3335 * WebView/WebFrame.mm:
3336 (-[WebFrame resetTextAutosizingBeforeLayout]): Added.
3337 (-[WebFrame _setVisibleSize:]): Added.
3338 (-[WebFrame _setTextAutosizingWidth:]): Added.
3339 * WebView/WebFramePrivate.h:
3340 * WebView/WebPreferenceKeysPrivate.h:
3341 * WebView/WebPreferences.mm:
3342 (+[WebPreferences initialize]):
3343 (-[WebPreferences _setMinimumZoomFontSize:]): Added.
3344 (-[WebPreferences _minimumZoomFontSize]): Added.
3346 2013-09-09 Dean Jackson <dino@apple.com>
3348 [WebGL] Allow multithreaded OpenGL contexts
3349 https://bugs.webkit.org/show_bug.cgi?id=121062
3351 Reviewed by Simon Fraser.
3353 Expose a new preference "multithreadedWebGLEnabled".
3355 * WebView/WebPreferenceKeysPrivate.h:
3356 * WebView/WebPreferences.mm:
3357 (+[WebPreferences initialize]):
3358 (-[WebPreferences multithreadedWebGLEnabled]):
3359 (-[WebPreferences setMultithreadedWebGLEnabled:]):
3360 * WebView/WebPreferencesPrivate.h:
3361 * WebView/WebView.mm:
3362 (-[WebView _preferencesChanged:]):
3364 2013-09-09 Dean Jackson <dino@apple.com>
3366 Enable WebGL for OS X nightlies
3367 https://bugs.webkit.org/show_bug.cgi?id=121040
3369 Reviewed by Beth Dakin.
3371 * WebView/WebPreferences.mm:
3372 (+[WebPreferences initialize]): Set WebPreference to YES.
3374 2013-09-06 Ryosuke Niwa <rniwa@webkit.org>
3376 Range::ownerDocument should return Document&
3377 https://bugs.webkit.org/show_bug.cgi?id=120908
3379 Reviewed by Andreas Kling.
3381 * WebView/WebPDFView.mm:
3384 2013-09-05 Andreas Kling <akling@apple.com>
3386 ScrollView::children() should return a reference.
3387 <https://webkit.org/b/120795>
3389 Reviewed by Anders Carlsson.
3391 * WebView/WebView.mm:
3392 (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
3394 2013-09-04 Mark Rowe <mrowe@apple.com>
3396 <https://webkit.org/b/120707> Make WebKit's localizable strings mechanism usable under ARC
3398 WebKit's localizable strings mechanism is also used outside of WebKit so it needs to work
3399 both with and without ARC.
3401 Reviewed by Anders Carlsson.
3403 * Misc/WebLocalizableStrings.h: Mark the bundle member as unretained. This matches how the
3404 member is used within WebLocalizableStrings.mm.
3406 2013-09-02 Darin Adler <darin@apple.com>
3408 [Mac] No need for HardAutorelease, which is same as CFBridgingRelease
3409 https://bugs.webkit.org/show_bug.cgi?id=120569
3411 Reviewed by Andy Estes.
3413 * Misc/WebNSFileManagerExtras.mm:
3414 (-[NSFileManager _webkit_startupVolumeName]): Removed some unneeded locals.
3415 Got rid of the pointless ref/leakRef/HardAutorelease dance, and replaced it
3416 with a [[x copy] autorelease].
3418 * Misc/WebNSURLExtras.mm:
3419 (-[NSURL _web_URLWithLowercasedScheme]): Use CFBridgingRelease, and got rid
3420 of unneeded type casts.
3422 * Plugins/WebBasePluginPackage.mm:
3423 (+[WebBasePluginPackage preferredLocalizationName]): Use CFBridgingRelease.
3424 * WebView/WebPDFRepresentation.mm:
3425 (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Ditto.
3427 * WebView/WebView.mm:
3428 (+[WebView _setCacheModel:]): Use CFBridgingRelease and got rid of unneeded
3431 2013-08-30 Antti Koivisto <antti@apple.com>
3433 Remove code behind ENABLE(DIALOG_ELEMENT)
3434 https://bugs.webkit.org/show_bug.cgi?id=120467
3436 Reviewed by Darin Adler.
3438 * Configurations/FeatureDefines.xcconfig:
3440 2013-08-29 Sam Weinig <sam@webkit.org>
3442 Add ENABLE gaurds for Promises
3443 https://bugs.webkit.org/show_bug.cgi?id=120488
3445 Reviewed by Andreas Kling.
3447 * Configurations/FeatureDefines.xcconfig:
3449 2013-08-29 Joseph Pecoraro <pecoraro@apple.com>
3451 Web Inspector: Download Web Archive of Inspected Page
3452 https://bugs.webkit.org/show_bug.cgi?id=119774
3454 Reviewed by Timothy Hatcher.
3456 Update to support InspectorFrontendHost.save's new base64Encoded
3457 parameter. It means the incoming content is binary data, not a string.
3459 * WebCoreSupport/WebInspectorClient.h:
3460 * WebCoreSupport/WebInspectorClient.mm:
3461 (WebInspectorFrontendClient::save):
3463 2013-08-28 Chris Curtis <chris_curtis@apple.com>
3465 https://bugs.webkit.org/show_bug.cgi?id=119548
3466 Refactoring Exception throws.
3468 Reviewed by Geoffrey Garen.
3470 Moved setting an exception into the vm, These functions changed to use the new functionality.
3472 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3473 (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
3474 * Plugins/Hosted/ProxyInstance.mm:
3475 (WebKit::ProxyInstance::invokeMethod):
3477 2013-08-27 Anders Carlsson <andersca@apple.com>
3481 * Plugins/Hosted/ProxyInstance.h:
3482 * Plugins/Hosted/ProxyInstance.mm:
3483 (WebKit::ProxyInstance::methodNamed):
3484 (WebKit::ProxyInstance::fieldNamed):
3486 2013-08-23 Andy Estes <aestes@apple.com>
3488 Fix issues found by the Clang Static Analyzer
3489 https://bugs.webkit.org/show_bug.cgi?id=120230
3491 Reviewed by Darin Adler.
3493 * Misc/WebNSFileManagerExtras.mm:
3494 (-[NSFileManager _webkit_startupVolumeName]): Used HardAutorelease()
3495 instead of WebCFAutorelease().
3496 * Misc/WebNSObjectExtras.h: Removed definition of WebCFAutorelease().
3497 * Misc/WebNSURLExtras.mm:
3498 (-[NSURL _web_URLWithLowercasedScheme]): Used HardAutorelease()
3499 instead of WebCFAutorelease().
3500 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3501 (-[WebHostedNetscapePluginView createPluginLayer]): Stop leaking
3502 CGColors (CALayer retains its backgroundColor property despite the
3503 property attributes claiming otherwise).
3504 * Plugins/WebBasePluginPackage.mm:
3505 (+[WebBasePluginPackage preferredLocalizationName]): Used
3506 HardAutorelease() instead of WebCFAutorelease().
3507 * WebView/WebDeviceOrientationProviderMock.mm:
3508 (-[WebDeviceOrientationProviderMockInternal lastOrientation]): Stop
3509 leaking WebDeviceOrientations.
3510 * WebView/WebPDFRepresentation.mm:
3511 (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Used
3512 HardAutorelease() instead of WebCFAutorelease().
3513 * WebView/WebView.mm:
3514 (+[WebView _setCacheModel:]): Ditto.
3515 (-[WebView _removeObjectForIdentifier:]): Ditto.
3517 2013-08-26 Alexey Proskuryakov <ap@apple.com>
3519 [Mac] can-read-in-dragstart-event.html and can-read-in-copy-and-cut-events.html fail
3520 https://bugs.webkit.org/show_bug.cgi?id=113094
3522 Reviewed by Darin Adler.
3524 Return new pasteboard change count from all functions that change it.
3526 * WebCoreSupport/WebPlatformStrategies.h:
3527 * WebCoreSupport/WebPlatformStrategies.mm:
3528 (WebPlatformStrategies::copy):
3529 (WebPlatformStrategies::changeCount):
3530 (WebPlatformStrategies::addTypes):
3531 (WebPlatformStrategies::setTypes):
3532 (WebPlatformStrategies::setBufferForType):
3533 (WebPlatformStrategies::setPathnamesForType):
3534 (WebPlatformStrategies::setStringForType):
3536 2013-08-26 Andreas Kling <akling@apple.com>
3538 Unreviewed build fix.
3540 * WebView/WebFrame.mm: