76a9332844540d0ec55026078c0251beee065f7d
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-03-13  Anders Carlsson  <andersca@apple.com>
2
3         Fix build.
4
5         * Misc/WebSharingServicePickerController.mm:
6
7 2014-03-13  Radu Stavila  <stavila@adobe.com>
8
9         Webkit not building on XCode 5.1 due to garbage collection no longer being supported
10         https://bugs.webkit.org/show_bug.cgi?id=130087
11
12         Reviewed by Mark Rowe.
13
14         Disable garbage collection on macosx when not using internal SDK.
15
16         * Configurations/Base.xcconfig:
17
18 2014-03-10  Darin Adler  <darin@apple.com>
19
20         Avoid copy-prone idiom "for (auto item : collection)"
21         https://bugs.webkit.org/show_bug.cgi?id=129990
22
23         Reviewed by Geoffrey Garen.
24
25         * WebView/WebFrame.mm:
26         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
27         Use auto*. Also removed uneeded ASSERT_NO_EXCEPTION, which is already
28         the default without specifying it explicitly.
29
30 2014-03-12  Brian Burg  <bburg@apple.com>
31
32         Web Inspector: Remove unused callId parameter from evaluateInWebInspector
33         https://bugs.webkit.org/show_bug.cgi?id=129744
34
35         Reviewed by Timothy Hatcher.
36
37         * WebInspector/WebInspector.mm:
38         (-[WebInspector evaluateInFrontend:script:]):
39         * WebInspector/WebInspectorPrivate.h:
40
41 2014-03-12  Dean Jackson  <dino@apple.com>
42
43         [WebGL] WebKit1 + WebKit2 iOS clients should check load policy
44         https://bugs.webkit.org/show_bug.cgi?id=130162
45
46         Reviewed by Simon Fraser.
47
48         Implement the webGLPolicyForURL methods, calling into WebKitSystemInterface.
49
50         * Configurations/WebKit.xcconfig: Add MobileAsset to iOS config.
51         * WebCoreSupport/WebFrameLoaderClient.h:
52         * WebCoreSupport/WebFrameLoaderClient.mm:
53
54 2014-03-12  Joseph Pecoraro  <pecoraro@apple.com>
55
56         Web Inspector: Disable REMOTE_INSPECTOR in earlier OS X releases
57         https://bugs.webkit.org/show_bug.cgi?id=130118
58
59         Reviewed by Timothy Hatcher.
60
61         * Configurations/FeatureDefines.xcconfig:
62
63         * WebCoreSupport/WebInspectorClient.mm:
64         (WebInspectorClient::indicate):
65         (WebInspectorClient::hideIndication):
66         Properly guard REMOTE_INSPECTOR only calls.
67
68 2014-03-12  Tim Horton  <timothy_horton@apple.com>
69
70         Build fix for ENABLE(IMAGE_CONTROLS) after 165479
71
72         * Misc/WebSharingServicePickerController.h:
73         * Misc/WebSharingServicePickerController.mm:
74         Don't use new-runtime features in code that has to build 32-bit.
75
76 2014-03-12  Anders Carlsson  <andersca@apple.com>
77
78         <rdar://problem/16307346> Add new WebKitLegacy.framework.
79
80         Reviewed by Dan Bernstein.
81
82         * Configurations/WebKitLegacy.xcconfig:
83         Add xcconfig file for the new framework.
84
85         * WebKitLegacy/Info.plist:
86         Add Info.plist for WebKitLegacy.framework.
87
88         * WebKitLegacy/MigrateHeadersToLegacy.make:
89         Add makefile that copies headers from WebKit to WebKitLegacy and rewrites includes from WebKit/ to WebKitLegacy/
90         * WebKitLegacy/WebKitLegacy.cpp:
91         Add an empty file so we'll have something to link.
92
93 2014-03-12  Tim Horton  <timothy_horton@apple.com>
94
95         Hook up image controls for WebKit1
96         https://bugs.webkit.org/show_bug.cgi?id=130062
97         <rdar://problem/15964809>
98
99         Reviewed by Brady Eidson.
100
101         * Misc/WebSharingServicePickerController.h: Added.
102         * Misc/WebSharingServicePickerController.mm: Added.
103         (-[WebSharingServicePickerController initWithImage:menuClient:]):
104         (-[WebSharingServicePickerController menu]):
105         (-[WebSharingServicePickerController sharingServicePicker:delegateForSharingService:]):
106         (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]):
107         (-[WebSharingServicePickerController sharingService:didShareItems:]):
108         (-[WebSharingServicePickerController sharingService:didFailToShareItems:error:]):
109         (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]):
110         Add a NSSharingServiceDelegate and NSSharingServicePickerDelegate, which will also
111         provide a NSMenu instance for WebContextMenuClient to pop up when image controls are needed.
112         When data is returned from the service, it is re-inserted into the image via replaceControlledImage.
113
114         * WebCoreSupport/WebContextMenuClient.h:
115         * WebCoreSupport/WebContextMenuClient.mm:
116         (WebContextMenuClient::contextMenuForEvent):
117         Factor out code to decide which NSMenu to use, so that we can use early-returns to simplify it.
118         If we hit an image with image controls, use the WebSharingServicePickerController's menu.
119
120         (WebContextMenuClient::showContextMenu):
121         (WebContextMenuClient::clearSharingServicePickerController):
122
123 2014-03-10  Jer Noble  <jer.noble@apple.com>
124
125         [iOS][WK1] Crash in HTMLMediaElement::createElementRenderer() - "-[NSSet addObject:]: object cannot be nil"
126         https://bugs.webkit.org/show_bug.cgi?id=129634
127
128         Reviewed by Eric Carlson.
129
130         If a plugin fails to create a NSView, a nil object is inserted into the WebPluginController's
131         pluginViews set. This is an exceptional case, so add an ASSERT so that this error will continue
132         to occur in debug builds, but also add an early return so as not to crash release builds.
133
134         * Plugins/WebPluginController.mm:
135         (+[WebPluginController addPlugInView:]):
136
137 2014-03-06  Alexey Proskuryakov  <ap@apple.com>
138
139         [Mac] Don't perform a round-trip through WebProcess before interpreting key events
140         https://bugs.webkit.org/show_bug.cgi?id=129812
141
142         Reviewed by Darin Adler.
143
144         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleInputMethodKeydown):
145         Added a FIXME. WebKit1/mac is the only port that uses this roundabout way to
146         interpret events, so it would simplify code if we switched it to WebKit2/mac model.
147
148 2014-03-08  Simon Fraser  <simon.fraser@apple.com>
149
150         [iOS Wk2] Can't scroll after going back to page in page cache
151         https://bugs.webkit.org/show_bug.cgi?id=129989
152         <rdar://problem/16217588>
153
154         Reviewed by Dan Bernstein.
155
156         iOS has a special FrameLoader::forceLayoutWithoutRecalculatingStyle()
157         function that is called instead of FrameView::forceLayout(). This was unimplemented
158         for the WK2 FrameLoaderClient, so no layout was forced, with the result
159         that the contentSize was never updated and scrolling was broken.
160         
161         Fix by renaming the client function to forceLayoutOnRestoreFromPageCache()
162         and having it return a bool to say whether the default forceLayout()
163         should be done. WK1 can then continue to have its custom behavior,
164         and Wk2 will simply do a forceLayout().
165         
166         Also remove FrameLaoderClient::forceLayout(), which was never called.
167
168         * WebCoreSupport/WebFrameLoaderClient.h:
169         * WebCoreSupport/WebFrameLoaderClient.mm:
170         (WebFrameLoaderClient::forceLayoutOnRestoreFromPageCache):
171
172 2014-03-07  Anders Carlsson  <andersca@apple.com>
173
174         Add the remaining WebKit2 headers to WEBKIT2_HEADERS
175         https://bugs.webkit.org/show_bug.cgi?id=129942
176         <rdar://problem/15920020>
177
178         Reviewed by Tim Horton.
179
180         * MigrateHeaders.make:
181
182 2014-03-07  Anders Carlsson  <andersca@apple.com>
183
184         MigrateHeaders.make should remove C SPI includes from WebKit2 headers
185         https://bugs.webkit.org/show_bug.cgi?id=129937
186         <rdar://problem/15920020>
187
188         Reviewed by Tim Horton.
189
190         * MigrateHeaders.make:
191         Add WKPreferences.h to WEBKIT2_HEADERS. 
192         Add a sed rule that deletes all lines that start with a # and contain <WebKit/*Ref.h>.
193
194 2014-03-07  Anders Carlsson  <andersca@apple.com>
195
196         Make it possible to copy WebKit2 headers to WebKit.framework
197         https://bugs.webkit.org/show_bug.cgi?id=129935
198         <rdar://problem/15920020>
199
200         Reviewed by Dan Bernstein.
201
202         * MigrateHeaders.make:
203         Gather a list of public and private WebKit2 headers and filter them against the WEBKIT2_HEADERS list.
204         The matching headers are copied to the respective Headers or PrivateHeaders directories under WebKit.framework,
205         and also have their #imports rewritten to reference WebKit instead of WebKit2.
206
207         * migrate-headers.sh: Added.
208         Set up the WEBKIT2_FRAMEWORKS_DIR if needed.
209
210 2014-03-07  Anders Carlsson  <andersca@apple.com>
211
212         Fix a typo
213         <rdar://problem/15920020>
214
215         Rubber-stamped by Dan Bernstein.
216
217         * Configurations/WebKit.xcconfig:
218
219 2014-03-07  Anders Carlsson  <andersca@apple.com>
220
221         Tweak the WebKit2 frameworks directories
222         https://bugs.webkit.org/show_bug.cgi?id=129910
223         <rdar://problem/15920020>
224
225         Reviewed by Dan Bernstein.
226
227         Use an SDK relative directory for production builds.
228
229         * Configurations/WebKit.xcconfig:
230
231 2014-03-07  Anders Carlsson  <andersca@apple.com>
232
233         Link WebKit.framework against WebKit2.framework and re-export all WebKit2 symbols
234         https://bugs.webkit.org/show_bug.cgi?id=129901
235         <rdar://problem/15920020>
236
237         Reviewed by Andreas Kling.
238
239         * Configurations/WebKit.xcconfig:
240
241 2014-03-06  Joseph Pecoraro  <pecoraro@apple.com>
242
243         Web Inspector: Expose the console object in JSContexts to interact with Web Inspector
244         https://bugs.webkit.org/show_bug.cgi?id=127944
245
246         Reviewed by Geoffrey Garen.
247
248         * WebCoreSupport/WebChromeClient.h:
249         * WebCoreSupport/WebChromeClient.mm:
250         Update namespaces.
251
252 2014-03-05  Eric Carlson  <eric.carlson@apple.com>
253
254         [iOS] Show external device name/type in placeholder
255         https://bugs.webkit.org/show_bug.cgi?id=129723
256
257         Reviewed by Jer Noble.
258
259         * WebCoreSupport/WebSystemInterface.mm:
260         (InitWebCoreSystemInterface):
261
262 2014-03-05  Simon Fraser  <simon.fraser@apple.com>
263
264         ObjC exception when dropping files into a WKView: drag and drop uses code from WebKit.framework
265         https://bugs.webkit.org/show_bug.cgi?id=129752
266
267         Reviewed by Enrica Casucci.
268         
269         Call URLByCanonicalizingURL() which is implemented in WebCore.
270
271         * Misc/WebNSURLExtras.mm:
272         (-[NSURL _webkit_canonicalize]):
273
274 2014-03-04  Zalan Bujtas  <zalan@apple.com>
275
276         Enable device pixel repaint rect tracking.
277         https://bugs.webkit.org/show_bug.cgi?id=129712
278
279         Reviewed by Simon Fraser.
280
281         Tracked repaint rects are device pixel snapped now to support hiDPI test cases.
282
283         * WebView/WebView.mm:
284         (-[WebView trackedRepaintRects]): Keep existing behavior for now.
285
286 2014-03-04  Simon Fraser  <simon.fraser@apple.com>
287
288         Allow iOS DumpRenderTree crashes to show application-specific information
289         https://bugs.webkit.org/show_bug.cgi?id=129705
290
291         Reviewed by David Kilzer.
292
293         Make the WKSI function SetCrashReportApplicationSpecificInformation available
294         in iOS simulator builds.
295
296         * WebCoreSupport/WebSystemInterface.mm:
297         (InitWebCoreSystemInterface):
298
299 2014-03-04  Mark Hahnenberg  <mhahnenberg@apple.com>
300
301         Merge API shims and JSLock
302         https://bugs.webkit.org/show_bug.cgi?id=129650
303
304         Reviewed by Mark Lam.
305
306         JSLock is now taking on all of APIEntryShim's responsibilities since there is never a reason 
307         to take just the JSLock. Ditto for DropAllLocks and APICallbackShim.
308
309         * WebView/WebFrame.mm:
310         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
311
312 2014-03-02  Darin Adler  <darin@apple.com>
313
314         Sort Mac platform export files so they merge better
315         https://bugs.webkit.org/show_bug.cgi?id=129581
316
317         Reviewed by Sam Weinig.
318
319         * WebKit.exp: Ran the new sort-export-file on this.
320
321 2014-03-02  Darin Adler  <darin@apple.com>
322
323         Change public text iterator API implementations to not depend on 16-bit character pointers
324         https://bugs.webkit.org/show_bug.cgi?id=129566
325
326         Reviewed by Anders Carlsson.
327
328         * WebView/WebTextIterator.mm:
329         (-[WebTextIterator initWithRange:]): Use make_unique instead of adoptPtr.
330         (-[WebTextIterator advance]): Clear out the upconverted text since we are moving on to the
331         next text.
332         (-[WebTextIterator currentTextPointer]): Upconvert if we have 8-bit text.
333         (-[WebTextIterator currentTextLength]): Call TextIterator::text().length() since we will
334         probably be removing TextIterator::length eventually.
335
336 2014-03-01  Pratik Solanki  <psolanki@apple.com>
337
338         [iOS] selectionImageForcingBlackText should return autoreleased object
339         https://bugs.webkit.org/show_bug.cgi?id=129437
340         <rdar://problem/15810384>
341
342         Reviewed by Darin Adler.
343
344         * WebView/WebHTMLView.mm:
345         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
346
347 2014-02-28  Dan Bernstein  <mitz@apple.com>
348
349         [Mac] Remove MailQuirksUserScript.js
350         https://bugs.webkit.org/show_bug.cgi?id=129536
351
352         Reviewed by Andy Estes.
353
354         * Configurations/WebKit.xcconfig: Removed from EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
355         * Misc/MailQuirksUserScript.js: Removed. This file has been unused since r147447.
356
357 2014-02-28  Timothy Hatcher  <timothy@apple.com>
358
359         Properly handle when Test.html is not present in Production builds.
360
361         https://bugs.webkit.org/show_bug.cgi?id=129506
362
363         Reviewed by Joseph Pecoraro.
364
365         * WebCoreSupport/WebInspectorClient.mm:
366         (-[WebInspectorWindowController inspectorTestPagePath]):
367         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
368
369 2014-02-27  Brian Burg  <bburg@apple.com>
370
371         Web Inspector: model tests should use a special Test.html inspector page
372         https://bugs.webkit.org/show_bug.cgi?id=129190
373
374         Reviewed by Timothy Hatcher.
375
376         Support creating a separate test inspector page, based on the value of
377         InspectorController::isUnderTest(). Modify the navigation policy to check
378         the URL against both normal and test inspector pages.
379
380         * WebCoreSupport/WebInspectorClient.mm:
381         (WebInspectorClient::openInspectorFrontend):
382         (-[WebInspectorWindowController init]):
383         (-[WebInspectorWindowController initWithInspectedWebView:isUnderTest:]):
384         Move the initial navigation of the inspector page to this method, and change
385         the URL based on the value of InspectorController::isUnderTest().
386
387         (-[WebInspectorWindowController inspectorTestPagePath]): Added.
388         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
389
390 2014-02-27  Pratik Solanki  <psolanki@apple.com>
391
392         Assertion failure at CachedResource.h:196: ASSERT(!m_purgeableData)
393         https://bugs.webkit.org/show_bug.cgi?id=129349
394         <rdar://problem/14871837>
395
396         Reviewed by Joseph Pecoraro.
397
398         The code for clearing out memory mapped notification callbacks is only needed when loading
399         PDFs. And in such cases, we always have dataSourceDelegate object. So make this code
400         conditional on its presence so that we don't trigger the assert for non-PDF main resources.
401
402         * WebView/WebDataSource.mm:
403         (-[WebDataSource dealloc]):
404
405 2014-02-26  Andy Estes  <aestes@apple.com>
406
407         [iOS] Support network state notification using CPNetworkObserver
408         https://bugs.webkit.org/show_bug.cgi?id=129358
409
410         Reviewed by Dan Bernstein.
411
412         * WebView/WebView.mm:
413         (-[WebView _setNetworkStateIsOnline:]): Retained an empty
414         implementation for binary compatibility for UIKit.
415         (+[WebView _doNotStartObservingNetworkReachability]): Called
416         Settings::setShouldOptOutOfNetworkStateObservation(true).
417         * WebView/WebViewPrivate.h: Removed declaration of
418         _setNetworkStateIsOnline: and declared
419         _doNotStartObservingNetworkReachability.
420
421 2014-02-25  Anders Carlsson  <andersca@apple.com>
422
423         Get rid of VisitedLinkStrategy
424         https://bugs.webkit.org/show_bug.cgi?id=129324
425
426         Reviewed by Dan Bernstein.
427
428         * WebCoreSupport/WebPlatformStrategies.h:
429         * WebCoreSupport/WebPlatformStrategies.mm:
430
431 2014-02-25  Sergio Villar Senin  <svillar@igalia.com>
432
433         [CSS Grid Layout] Add ENABLE flag
434         https://bugs.webkit.org/show_bug.cgi?id=129153
435
436         Reviewed by Simon Fraser.
437
438         Added ENABLE_CSS_GRID_LAYOUT feature flag.
439
440         * Configurations/FeatureDefines.xcconfig:
441
442 2014-02-24  Anders Carlsson  <andersca@apple.com>
443
444         Add WebViewGroup
445         https://bugs.webkit.org/show_bug.cgi?id=129280
446
447         Reviewed by Dan Bernstein.
448
449         This is a first step towards getting rid of page groups in WebCore. The idea is that
450         everything that is per page group in WebCore will be per page. In order to retain WebKit1 compatibility
451         WebViewGroup is going to take over more and more responsibility from WebCore::PageGroup.
452
453         * WebCoreSupport/WebViewGroup.h: Added.
454         * WebCoreSupport/WebViewGroup.mm: Added.
455         (webViewGroups):
456         (WebViewGroup::getOrCreate):
457         (WebViewGroup::WebViewGroup):
458         (WebViewGroup::~WebViewGroup):
459         (WebViewGroup::addWebView):
460         (WebViewGroup::removeWebView):
461         * WebView/WebView.mm:
462         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
463         (-[WebView _close]):
464         (-[WebView setGroupName:]):
465         * WebView/WebViewData.h:
466         * WebView/WebViewData.mm:
467
468 2014-02-24  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
469
470         Code cleanup: remove leftover ENABLE(WORKERS) macros and support.
471         https://bugs.webkit.org/show_bug.cgi?id=129255
472
473         Reviewed by Csaba Osztrogonác.
474
475         ENABLE_WORKERS macro was removed in r159679.
476         Support is now also removed from xcconfig files.
477
478         * Configurations/FeatureDefines.xcconfig:
479
480 2014-02-24  David Kilzer  <ddkilzer@apple.com>
481
482         Remove redundant setting in FeatureDefines.xcconfig
483
484         * Configurations/FeatureDefines.xcconfig:
485
486 2014-02-23  Sam Weinig  <sam@webkit.org>
487
488         Update FeatureDefines.xcconfig
489
490         Rubber-stamped by Anders Carlsson.
491
492         * Configurations/FeatureDefines.xcconfig:
493
494 2014-02-23  Sam Weinig  <sam@webkit.org>
495
496         Move telephone number detection behind its own ENABLE macro
497         https://bugs.webkit.org/show_bug.cgi?id=129236
498
499         Reviewed by Dean Jackson.
500
501         * Configurations/FeatureDefines.xcconfig:
502         Add ENABLE_TELEPHONE_NUMBER_DETECTION.
503
504 2014-02-21  Sam Weinig  <sam@webkit.org>
505
506         Expose phase and momentum phase as SPI on DOMWheelEvent
507         <rdar://problem/16110871>
508         https://bugs.webkit.org/show_bug.cgi?id=129184
509
510         Reviewed by Anders Carlsson.
511
512         * DOM/WebDOMOperations.mm:
513         (toNSEventPhase):
514         (-[DOMWheelEvent _phase]):
515         (-[DOMWheelEvent _momentumPhase]):
516         * DOM/WebDOMOperationsPrivate.h:
517         Expose _phase and _momentumPhase as SPI.
518
519         * MigrateHeaders.make:
520         Make DOMWheelEventInternal.h to WebKit.
521
522 2014-02-22  David Kilzer  <ddkilzer@apple.com>
523
524         Revert r164434 since it actually broke ASan builds
525         <http://webkit.org/b/128871>
526
527         * Configurations/WebKit.xcconfig: This caused -asan-blacklist to
528         be included twice on every compiler command, which caused clang
529         to error out.
530
531 2014-02-21  Brent Fulgham  <bfulgham@apple.com>
532
533         Extend media support for WebVTT sources
534         https://bugs.webkit.org/show_bug.cgi?id=129156
535
536         Reviewed by Eric Carlson.
537
538         * Configurations/FeatureDefines.xcconfig: Add new feature define for AVF_CAPTIONS
539
540 2014-02-20  Brady Eidson  <beidson@apple.com>
541
542         Add very basic image control rendering
543         https://bugs.webkit.org/show_bug.cgi?id=129080
544
545         Reviewed by Tim Horton.
546
547         Expose the imageControlsEnabled setting to WebKit1 so DRT can use it.
548
549         * WebView/WebPreferenceKeysPrivate.h:
550         * WebView/WebPreferences.mm:
551         (+[WebPreferences initialize]):
552         (-[WebPreferences imageControlsEnabled]):
553         (-[WebPreferences setImageControlsEnabled:]):
554         * WebView/WebPreferencesPrivate.h:
555
556         * WebView/WebView.mm:
557         (-[WebView _preferencesChanged:]):
558
559 2014-02-20  David Kilzer  <ddkilzer@apple.com>
560
561         [ASan] WebKit1 sources are not compiled using ASAN macros
562         <http://webkit.org/b/128871>
563
564         Reviewed by Brent Fulgham.
565
566         * Configurations/WebKit.xcconfig: Use $inherited for
567         OTHER_CFLAGS and OTHER_CPLUSPLUSFLAGS so that ASAN_OTHER_CFLAGS
568         and ASAN_OTHER_CPLUSPLUSFLAGS are inherited from
569         DebugRelease.xcconfig.
570
571 2014-02-19  Brady Eidson  <beidson@apple.com>
572
573         Add FeatureDefines for image controls
574         https://bugs.webkit.org/show_bug.cgi?id=129022
575
576         Reviewed by Jer Noble.
577
578         * Configurations/FeatureDefines.xcconfig:
579
580 2014-02-18  Sam Weinig  <sam@webkit.org>
581
582         Simplify HTML tokenizer parameterization down to what is used
583         https://bugs.webkit.org/show_bug.cgi?id=128977
584
585         Reviewed by Alexey Proskuryakov.
586
587         Remove unused _setCustomHTMLTokenizerTimeDelay and _setCustomHTMLTokenizerChunkSize SPI.
588
589         * WebView/WebView.mm:
590         * WebView/WebViewPrivate.h:
591
592 2014-02-17  Anders Carlsson  <andersca@apple.com>
593
594         Remove view source code
595         https://bugs.webkit.org/show_bug.cgi?id=127233
596
597         Reviewed by Antti Koivisto.
598
599         * WebView/WebView.mm:
600         * WebView/WebViewPrivate.h:
601
602 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
603
604         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
605         https://bugs.webkit.org/show_bug.cgi?id=128681
606
607         Reviewed by Timothy Hatcher.
608
609         Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
610         WebCore/inspector/*. Besides files in there, a few other files in
611         JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
612         and WebCore/testing were touched.
613
614         * WebCoreSupport/WebInspectorClient.h:
615         * WebCoreSupport/WebInspectorClient.mm:
616
617 2014-02-15  Alexey Proskuryakov  <ap@apple.com>
618
619         [Mac] Remove WebSerializedJSValue SPI
620         https://bugs.webkit.org/show_bug.cgi?id=128720
621
622         Reviewed by Anders Carlsson.
623
624         * WebKit.exp:
625         * WebView/WebSerializedJSValue.h: Removed.
626         * WebView/WebSerializedJSValue.mm: Removed.
627         * WebView/WebSerializedJSValuePrivate.h: Removed.
628
629 2014-02-15  Alexey Proskuryakov  <ap@apple.com>
630
631         [Mac] All WebKit clients should encrypt WebCrypto keys automatically
632         https://bugs.webkit.org/show_bug.cgi?id=128852
633
634         Reviewed by Oliver Hunt.
635
636         * WebCoreSupport/WebChromeClient.mm:
637         (WebChromeClient::wrapCryptoKey):
638         (WebChromeClient::unwrapCryptoKey):
639         Call the default implementation if key is not provided by a client.
640
641 2014-02-14  Anders Carlsson  <andersca@apple.com>
642
643         Control tints don't update inside WebViews
644         https://bugs.webkit.org/show_bug.cgi?id=128862
645
646         Reviewed by Ryosuke Niwa.
647
648         * WebView/WebView.mm:
649         (-[WebView _windowChangedKeyState]):
650         Call [super _windowChangedKeyState].
651
652 2014-02-13  Myles C. Maxfield  <mmaxfield@apple.com>
653
654         During a copy, position:fixed gets converted to position:absolute even if only part of the document is selected
655         https://bugs.webkit.org/show_bug.cgi?id=128688
656
657         Reviewed by Ryosuke Niwa.
658
659         Renames the ConvertPositionStyleOnCopy setting to ShouldConvertPositionStyleOnCopy
660
661         * WebView/WebPreferenceKeysPrivate.h:
662         * WebView/WebPreferences.mm:
663         (-[WebPreferences shouldConvertPositionStyleOnCopy]):
664         (-[WebPreferences setShouldConvertPositionStyleOnCopy:]):
665         * WebView/WebPreferencesPrivate.h:
666         * WebView/WebView.mm:
667         (-[WebView _preferencesChanged:]):
668
669 2014-02-13  Alexey Proskuryakov  <ap@apple.com>
670
671         [Mac] Add a WebKit1 SPI to get WebCrypto master key from a client
672         https://bugs.webkit.org/show_bug.cgi?id=128725
673
674         Reviewed by Anders Carlsson.
675
676         * WebCoreSupport/WebChromeClient.mm:
677         (WebChromeClient::wrapCryptoKey):
678         (WebChromeClient::unwrapCryptoKey):
679         * WebView/WebUIDelegatePrivate.h:
680         Looks like UIDelegate is the closest we have to a reasonable place.
681
682 2014-02-13  Dan Bernstein  <mitz@apple.com>
683
684         iOS build fix.
685
686         * WebView/WebView.mm:
687         (+[WebView registerForMemoryNotifications]):
688
689 2014-02-12  Alexey Proskuryakov  <ap@apple.com>
690
691         Wrap WebCrypto keys in SerializedScriptValue
692         https://bugs.webkit.org/show_bug.cgi?id=128680
693
694         Reviewed by Anders Carlsson.
695
696         Retrieve a master key (placeholder code for now), and use it to wrap key data.
697
698         * WebCoreSupport/WebChromeClient.mm:
699         (WebChromeClient::wrapCryptoKey):
700         (WebChromeClient::unwrapCryptoKey):
701
702 2014-02-11  Ryosuke Niwa  <rniwa@webkit.org>
703
704         Frame::rectForSelection shouldn't instantiate FrameSelection
705         https://bugs.webkit.org/show_bug.cgi?id=128587
706
707         Reviewed by Enrica Casucci.
708
709         * WebCoreSupport/WebEditorClient.h:
710         * WebCoreSupport/WebEditorClient.mm:
711         (WebEditorClient::WebEditorClient):
712         (WebEditorClient::respondToChangedSelection):
713
714 2014-02-10  Myles C. Maxfield  <mmaxfield@apple.com>
715
716         Convert position:sticky and position:fixed properties to position:static and position:absolute upon copy
717         https://bugs.webkit.org/show_bug.cgi?id=128194
718
719         Reviewed by Simon Fraser.
720
721         * WebView/WebPreferenceKeysPrivate.h:
722         * WebView/WebPreferences.mm:
723         (-[WebPreferences convertPositionStyleOnCopy]):
724         (-[WebPreferences setConvertPositionStyleOnCopy:]):
725         * WebView/WebPreferencesPrivate.h: Opt-in to new behavior
726         * WebView/WebView.mm:
727         (-[WebView _preferencesChanged:]):
728
729 2014-02-11  Andy Estes  <aestes@apple.com>
730
731         [Mac] connection:willStopBufferingData: no longer exists in NSURLConnectionDelegate
732         https://bugs.webkit.org/show_bug.cgi?id=128583
733
734         Reviewed by Anders Carlsson.
735
736         The delegate method was removed in Snow Leopard.
737
738         * Misc/WebDownload.mm:
739
740 2014-02-11  Alexey Proskuryakov  <ap@apple.com>
741
742         iOS build fix.
743
744         * WebCoreSupport/WebChromeClient.mm: Fixed incorrectly nested ifdefs.
745
746 2014-02-10  Alexey Proskuryakov  <ap@apple.com>
747
748         Add hooks for wrapping CryptoKeys in SerializedScriptValue
749         https://bugs.webkit.org/show_bug.cgi?id=128567
750
751         Reviewed by Anders Carlsson.
752
753         * WebCoreSupport/WebChromeClient.h:
754         * WebCoreSupport/WebChromeClient.mm:
755         (WebChromeClient::wrapCryptoKey):
756         (WebChromeClient::unwrapCryptoKey):
757         Dummy implementation, to be filled in later.
758
759 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
760
761         Cleanup the interface of FrameSelection
762         https://bugs.webkit.org/show_bug.cgi?id=128481
763
764         Reviewed by Andreas Kling.
765
766         * WebView/WebHTMLView.mm:
767         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
768         (-[WebHTMLView selectionRect]):
769         (-[WebHTMLView selectionImageRect]):
770
771 2014-02-08  Dan Bernstein  <mitz@apple.com>
772
773         Remove use of PLATFORM(MAC) from WebKit/mac
774         https://bugs.webkit.org/show_bug.cgi?id=128476
775
776         Reviewed by Anders Carlsson.
777
778         * WebCoreSupport/WebFrameLoaderClient.h:
779         * WebCoreSupport/WebSystemInterface.mm:
780         (InitWebCoreSystemInterface):
781
782 2014-02-08  Dan Bernstein  <mitz@apple.com>
783
784         Remove client-drawn highlights (-webkit-highlight, WebHTMLHighlighter)
785         https://bugs.webkit.org/show_bug.cgi?id=128456
786
787         Reviewed by Anders Carlsson.
788
789         * WebCoreSupport/WebChromeClient.h:
790         * WebCoreSupport/WebChromeClient.mm: Removed customHighlightRect and paintCustomHighlight.
791         * WebView/WebHTMLView.mm:
792         (-[WebHTMLViewPrivate dealloc]): Removed highlighters ivar.
793         (-[WebHTMLViewPrivate clear]): Ditto.
794         * WebView/WebHTMLViewInternal.h: Removed declaration.
795         * WebView/WebHTMLViewPrivate.h: Removed WebHTMLHighlighter protocol and method declarations.
796
797 2014-02-08  Dan Bernstein  <mitz@apple.com>
798
799         iOS build fix after r163712.
800
801         * WebCoreSupport/WebEditorClient.h:
802         * WebCoreSupport/WebEditorClient.mm:
803
804 2014-02-08  Darin Adler  <darin@apple.com>
805
806         Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters
807         https://bugs.webkit.org/show_bug.cgi?id=128233
808
809         Reviewed by Anders Carlsson.
810
811         * WebCoreSupport/WebEditorClient.h: Made most data members private. Moved inlines
812         for iOS out of the class definition. Fixed formatting. Added missing virtual keyword.
813         Changed interfaces to use StringView.
814
815         * WebCoreSupport/WebEditorClient.mm:
816         (WebEditorClient::checkTextOfParagraph): Use the new StringView::createNSStringWithoutCopying
817         function instead of a similar function that was local in this file.
818         (WebEditorClient::ignoreWordInSpellDocument): Tweaked formatting.
819         (WebEditorClient::checkSpellingOfString): Changed to take a StringView.
820         (WebEditorClient::checkGrammarOfString): Ditto.
821
822         * WebView/WebTextIterator.mm:
823         (-[WebTextIterator currentTextPointer]): Call TextIterator::deprecatedTextIteratorCharacters.
824         (-[WebTextIterator currentText]): Convert a the text to an NSString with TextIterator::text
825         instead of with TextIterator::characters/length.
826
827 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
828
829         Remove isInitialState flag from Page::setViewState
830         https://bugs.webkit.org/show_bug.cgi?id=128428
831
832         Reviewed by Sam Weinig.
833
834         * WebView/WebView.mm:
835         (-[WebView _commonInitializationWithFrameName:groupName:]):
836         (-[WebView _updateVisibilityState]):
837         (-[WebView _setIsVisible:]):
838         (-[WebView _setVisibilityState:isInitialState:]):
839         (-[WebView _windowWillOrderOnScreen:]):
840         (-[WebView _windowWillOrderOffScreen:]):
841             - don't pass isInitialState to setViewState.
842
843 2014-02-06  Filip Pizlo  <fpizlo@apple.com>
844
845         More FTL build scaffolding
846         https://bugs.webkit.org/show_bug.cgi?id=128330
847
848         Reviewed by Geoffrey Garen.
849
850         * Configurations/FeatureDefines.xcconfig:
851
852 2014-02-07  Dan Bernstein  <mitz@apple.com>
853
854         iOS build fix.
855
856         * Misc/WebElementDictionary.mm:
857         (+[WebElementDictionary initializeLookupTable]):
858         (-[WebElementDictionary _image]):
859         (-[WebElementDictionary _imageRect]):
860
861 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
862
863         Web Inspector: Add Console support to JSContext Inspection
864         https://bugs.webkit.org/show_bug.cgi?id=127941
865
866         Reviewed by Geoffrey Garen.
867
868         * WebCoreSupport/WebChromeClient.h:
869         * WebCoreSupport/WebChromeClient.mm:
870         (stringForMessageSource):
871         (stringForMessageLevel):
872         (WebChromeClient::addMessageToConsole):
873
874 2014-02-05  Gavin Barraclough  <barraclough@apple.com>
875
876         Change Page, FocusController to use ViewState
877         https://bugs.webkit.org/show_bug.cgi?id=126533
878
879         Reviewed by Tim Horton.
880
881         These classes currently maintain a set of separate fields to represent the view state;
882         combine these into a single field, and allow WebPage to send the combined update rather
883         than individual changes.
884
885         Maintain existing interface for WebKit1 clients.
886
887         * WebView/WebView.mm:
888         (-[WebView _windowWillOrderOnScreen:]):
889         (-[WebView _windowWillOrderOffScreen:]):
890             - remove calls to FocusController::setContentIsVisible, these are redundant
891               (this is handled when page visibility is set).
892
893 2014-02-05  Andreas Kling  <akling@apple.com>
894
895         Remove ENABLE(DIRECTORY_UPLOAD).
896         <https://webkit.org/b/128275>
897
898         Rubber-stamped by Ryosuke Niwa.
899
900         * Configurations/FeatureDefines.xcconfig:
901
902 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
903
904         Remove ENABLE(SVG) guards
905         https://bugs.webkit.org/show_bug.cgi?id=127991
906
907         Reviewed by Sam Weinig.
908
909         * Configurations/FeatureDefines.xcconfig:
910
911 2014-02-04  Andreas Kling  <akling@apple.com>
912
913         Remove <iframe seamless> support.
914         <https://webkit.org/b/128213>
915
916         Rubber-stamped by Antti Koivisto.
917
918         * Configurations/FeatureDefines.xcconfig:
919         * WebView/WebPreferenceKeysPrivate.h:
920         * WebView/WebPreferences.mm:
921         * WebView/WebPreferencesPrivate.h:
922         * WebView/WebView.mm:
923         (-[WebView _preferencesChanged:]):
924
925 2014-02-03  Dean Jackson  <dino@apple.com>
926
927         Feature flag for shape-inside
928         https://bugs.webkit.org/show_bug.cgi?id=128001
929
930         Reviewed by Simon Fraser.
931
932         Add CSS_SHAPE_INSIDE flag.
933
934         * Configurations/FeatureDefines.xcconfig:
935
936 2014-01-31  Ryosuke Niwa  <rniwa@webkit.org>
937
938         Remove inline member functions of FrameSelection that access m_selection
939         https://bugs.webkit.org/show_bug.cgi?id=127986
940
941         Reviewed by Enrica Casucci.
942
943         * WebView/WebFrame.mm:
944         (-[WebFrame hasEditableSelection]):
945         (-[WebFrame selectionAffinity]):
946         (-[WebFrame getDictationResultRanges:andMetadatas:]):
947         (-[WebFrame hasRichlyEditableSelection]):
948         (-[WebFrame focusedNodeHasContent]):
949         * WebView/WebHTMLView.mm:
950         (-[WebHTMLView readSelectionFromPasteboard:]):
951         (-[WebHTMLView _hasSelection]):
952         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
953         (-[WebHTMLView _hasInsertionPoint]):
954         (-[WebHTMLView _isEditable]):
955         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
956         (-[WebHTMLView maintainsInactiveSelection]):
957         (isTextInput):
958         (isInPasswordField):
959         * WebView/WebView.mm:
960         (-[WebView selectionAffinity]):
961
962 2014-01-31  Tim Horton  <timothy_horton@apple.com>
963
964         [wk2] PlatformCALayerRemoteCustom doesn't work on iOS
965         https://bugs.webkit.org/show_bug.cgi?id=128025
966         <rdar://problem/15950271>
967
968         Reviewed by Simon Fraser.
969
970         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
971         (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
972         Use the new macro name.
973
974 2014-01-30  David Kilzer  <ddkilzer@apple.com>
975
976         Add security-checked cast for WebCore::CachedImage
977         <http://webkit.org/b/127967>
978
979         Reviewed by Darin Adler.
980
981         * Misc/WebCache.mm:
982         (+[WebCache imageForURL:]):
983         - Use WebCore::toCachedImage().
984
985 2014-01-30  David Kilzer  <ddkilzer@apple.com>
986
987         De-virtual-ize CachedResource::isImage()
988         <http://webkit.org/b/127936>
989
990         Reviewed by Andreas Kling.
991
992         Also replace explicit type() checks with isImage().
993
994         * Misc/WebCache.mm:
995         (+[WebCache imageForURL:]): Use !isImage().
996
997 2014-01-30  Beth Dakin  <bdakin@apple.com>
998
999         https://bugs.webkit.org/show_bug.cgi?id=127371
1000         Explore new API that could be used to help build infinitely scrolling websites
1001         -and corresponding-
1002         <rdar://problem/15244768>
1003
1004         Reviewed by Sam Weinig.
1005
1006         FrameView::scrollPositionChangedViaPlatformWidget() now take two parameters 
1007         representing the old scroll position and the new position.
1008         * WebView/WebHTMLView.mm:
1009         (-[WebHTMLView _frameOrBoundsChanged]):
1010
1011 2014-01-30  Andrei Bucur  <abucur@adobe.com>
1012
1013         Remove the ACCELERATED_COMPOSITING flag
1014         https://bugs.webkit.org/show_bug.cgi?id=127833
1015
1016         Reviewed by Antti Koivisto.
1017
1018         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
1019         mandatory.
1020
1021         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1022         (-[WebHostedNetscapePluginView createPlugin]):
1023         (-[WebHostedNetscapePluginView createPluginLayer]):
1024         * Plugins/WebNetscapePluginView.mm:
1025         (-[WebNetscapePluginView createPlugin]):
1026         (-[WebNetscapePluginView getVariable:value:]):
1027         * Plugins/WebPluginController.mm:
1028         (-[WebPluginController superlayerForPluginView:]):
1029         * WebCoreSupport/WebChromeClient.h:
1030         (WebChromeClient::allowedCompositingTriggers):
1031         * WebCoreSupport/WebChromeClient.mm:
1032         * WebCoreSupport/WebFrameLoaderClient.mm:
1033         (PluginWidgetIOS::detachPluginLayer):
1034         (NetscapePluginWidget::platformLayer):
1035         * WebView/WebClipView.mm:
1036         (-[WebClipView _immediateScrollToPoint:]):
1037         * WebView/WebHTMLView.mm:
1038         (setNeedsDisplayInRect):
1039         (+[WebHTMLViewPrivate initialize]):
1040         (-[WebHTMLViewPrivate clear]):
1041         (-[WebHTMLView _setAsideSubviews]):
1042         (-[WebHTMLView hitTest:]):
1043         (-[WebHTMLView _isUsingAcceleratedCompositing]):
1044         (-[WebHTMLView _compositingLayersHostingView]):
1045         (-[WebHTMLView viewDidMoveToSuperview]):
1046         (-[WebHTMLView drawRect:]):
1047         * WebView/WebHTMLViewInternal.h:
1048         * WebView/WebRenderLayer.mm:
1049         (+[WebRenderLayer compositingInfoForLayer:]):
1050         * WebView/WebView.mm:
1051         (-[WebView _close]):
1052         (-[WebView _setMediaLayer:forPluginView:]):
1053         (-[WebView _postsAcceleratedCompositingNotifications]):
1054         (-[WebView _setPostsAcceleratedCompositingNotifications:]):
1055         (-[WebView _isUsingAcceleratedCompositing]):
1056         (-[WebView _isSoftwareRenderable]):
1057         (-[WebView close]):
1058         * WebView/WebViewData.h:
1059         * WebView/WebViewData.mm:
1060         (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
1061         * WebView/WebViewInternal.h:
1062
1063 2014-01-29  Csaba Osztrogonác  <ossy@webkit.org>
1064
1065         Remove ENABLE(JAVASCRIPT_DEBUGGER) leftovers
1066         https://bugs.webkit.org/show_bug.cgi?id=127845
1067
1068         Reviewed by Joseph Pecoraro.
1069
1070         * Configurations/FeatureDefines.xcconfig:
1071
1072 2014-01-29  Dan Bernstein  <mitz@apple.com>
1073
1074         Moved linking against common frameworks and a library from the .xcconfig file into the target.
1075
1076         Reviewed by Tim Horton.
1077
1078         * Configurations/WebKit.xcconfig:
1079
1080 2014-01-29  Ryosuke Niwa  <rniwa@webkit.org>
1081
1082         checkTextOfParagraph releases NSString twice
1083         https://bugs.webkit.org/show_bug.cgi?id=127881
1084         <rdar://problem/15937446>
1085
1086         Reviewed by Anders Carlsson.
1087
1088         textString is released once by an explicit call to release and again by it going out of scope.
1089         Don't do the explicit release.
1090
1091         The bug was spotted by Sam Weinig.
1092
1093         * WebCoreSupport/WebEditorClient.mm:
1094         (WebEditorClient::checkTextOfParagraph):
1095
1096 2014-01-29  Anders Carlsson  <andersca@apple.com>
1097
1098         Fix build.
1099
1100         * WebView/WebPDFView.mm:
1101         (_applicationInfoForMIMEType):
1102
1103 2014-01-28  Mark Rowe  <mrowe@apple.com>
1104
1105         <https://webkit.org/b/127767> Disable some deprecation warnings to fix the build.
1106
1107         Reviewed by Ryosuke Niwa.
1108
1109         * WebCoreSupport/PopupMenuMac.mm:
1110         (PopupMenuMac::populate):
1111
1112 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
1113
1114         WebKit1: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
1115         https://bugs.webkit.org/show_bug.cgi?id=127664
1116
1117         Reviewed by Darin Adler.
1118
1119         * Configurations/Base.xcconfig:
1120         * History/BinaryPropertyList.cpp:
1121         (BinaryPropertyListSerializer::appendObjectReference):
1122         (BinaryPropertyListSerializer::startObject):
1123         (BinaryPropertyListSerializer::addAggregateObjectReference):
1124         * WebView/WebPDFView.mm:
1125         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1126
1127 2014-01-27  Andy Estes  <aestes@apple.com>
1128
1129         Scrub WebKit API headers of WTF macros
1130         https://bugs.webkit.org/show_bug.cgi?id=127706
1131
1132         Reviewed by David Kilzer.
1133
1134         * Configurations/FeatureDefines.xcconfig: Added ENABLE_INSPECTOR.
1135         * WebView/WebPreferenceKeysPrivate.h: Changed ENABLE(REMOTE_INSPECTOR)
1136         to !defined(ENABLE_REMOTE_INSPECTOR) || ENABLE_REMOTE_INSPECTOR. We are
1137         in a TARGET_OS_IPHONE block, and ENABLE_REMOTE_INSPECTOR is enabled by
1138         default on iOS, so include this block unless the feature is explicitly
1139         disabled.
1140         * postprocess-headers.sh: Stopped processing ENABLE_IOS_TOUCH_EVENTS
1141         and ENABLE_IOS_GESTURE_EVENTS. These are now defined in DOMEvents.h.
1142
1143 2014-01-27  Tim Horton  <timothy_horton@apple.com>
1144
1145         Another iOS build fix.
1146
1147         * Misc/WebElementDictionary.mm:
1148         (-[WebElementDictionary _image]):
1149         We were apparently depending on Image::getNSImage() being defined
1150         (yet always returning nullptr) on iOS.
1151
1152 2014-01-26  David Kilzer  <ddkilzer@apple.com>
1153
1154         Remove duplicate settings for ENABLE(DISK_IMAGE_CACHE)
1155         <http://webkit.org/b/127669>
1156
1157         Reviewed by Joseph Pecoraro.
1158
1159         * WebView/WebPreferences.mm:
1160         (+[WebPreferences initialize]): Remove duplicate code.
1161
1162 2014-01-24  Andy Estes  <aestes@apple.com>
1163
1164         [iOS] Upstream changes in Tools/DumpRenderTree
1165         https://bugs.webkit.org/show_bug.cgi?id=127412
1166
1167         Reviewed by Simon Fraser.
1168
1169         * Misc/WebCoreStatistics.h: Included CGContext.h.
1170
1171 2014-01-26  Anders Carlsson  <andersca@apple.com>
1172
1173         Move history item visit count handling to WebKit
1174         https://bugs.webkit.org/show_bug.cgi?id=127659
1175
1176         Reviewed by Dan Bernstein.
1177
1178         Move code to deal with visit count and visit dates here from WebCore.
1179
1180         * History/HistoryPropertyList.mm:
1181         (HistoryPropertyListWriter::writeHistoryItem):
1182         * History/WebHistoryItem.mm:
1183         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
1184         (-[WebHistoryItem copyWithZone:]):
1185         (-[WebHistoryItem lastVisitedTimeInterval]):
1186         (-[WebHistoryItem initWithURLString:title:displayTitle:lastVisitedTimeInterval:]):
1187         (-[WebHistoryItem setVisitCount:]):
1188         (-[WebHistoryItem _mergeAutoCompleteHints:]):
1189         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1190         (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]):
1191         (-[WebHistoryItem _recordInitialVisit]):
1192         (timeToDay):
1193         (-[WebHistoryItem _padDailyCountsForNewVisit:]):
1194         (-[WebHistoryItem _collapseDailyVisitsToWeekly]):
1195         (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]):
1196         (-[WebHistoryItem _setLastVisitedTimeInterval:]):
1197         * History/WebHistoryItemInternal.h:
1198
1199 2014-01-26  Anders Carlsson  <andersca@apple.com>
1200
1201         Fix build.
1202
1203         Pass a WebHistoryItem to writeHistoryItem so we can extract _lastVisitWasHTTPNonGet from it.
1204
1205         * History/HistoryPropertyList.h:
1206         * History/HistoryPropertyList.mm:
1207         (HistoryPropertyListWriter::HistoryPropertyListWriter):
1208         (HistoryPropertyListWriter::buffer):
1209         (HistoryPropertyListWriter::releaseData):
1210         (HistoryPropertyListWriter::writeObjects):
1211         (HistoryPropertyListWriter::writeHistoryItem):
1212         * History/WebHistory.mm:
1213         (WebHistoryWriter::writeHistoryItems):
1214         * History/WebHistoryItem.mm:
1215
1216 2014-01-26  Anders Carlsson  <andersca@apple.com>
1217
1218         Move lastVisitWasHTTPNonGet out to WebHistoryItem
1219         https://bugs.webkit.org/show_bug.cgi?id=127657
1220
1221         Reviewed by Dan Bernstein.
1222
1223         Keep track of _lastVisitWasHTTPNonGet inside WebHistoryItem.
1224
1225         * History/WebHistory.mm:
1226         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]):
1227         Set entry->_private->_lastVisitWasHTTPNonGet.
1228
1229         * History/WebHistoryItem.h:
1230         Change @private to @package so we can get at WebHistoryItemPrivate from WebHistory.
1231
1232         * History/WebHistoryItem.mm:
1233         (-[WebHistoryItem copyWithZone:]):
1234         Assign _private->_lastVisitWasHTTPNonGet.
1235
1236         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1237         Set _private->_lastVisitWasHTTPNonGet.
1238
1239         * History/WebHistoryItemInternal.h:
1240         Move WebHistoryItemPrivate interface here.
1241
1242 2014-01-26  Anders Carlsson  <andersca@apple.com>
1243
1244         Turn WebHistoryItemPrivate back into a real Objective-C class
1245         https://bugs.webkit.org/show_bug.cgi?id=127653
1246
1247         Reviewed by Sam Weinig.
1248
1249         This is a first step towards moving some history specific code from WebCore::HistoryItem back into WebKit.
1250
1251         * History/WebHistoryItem.mm:
1252         (-[WebHistoryItem dealloc]):
1253         (-[WebHistoryItem finalize]):
1254         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
1255
1256 2014-01-25  Sam Weinig  <sam@webkit.org>
1257
1258         Remove unused support for DRAGGABLE_REGION
1259         https://bugs.webkit.org/show_bug.cgi?id=127642
1260
1261         Reviewed by Simon Fraser.
1262
1263         * Configurations/FeatureDefines.xcconfig:
1264
1265 2014-01-25  Anders Carlsson  <andersca@apple.com>
1266
1267         Remove an unused FrameLoaderClient function
1268         https://bugs.webkit.org/show_bug.cgi?id=127628
1269
1270         Reviewed by Andreas Kling.
1271
1272         * WebCoreSupport/WebFrameLoaderClient.h:
1273         * WebCoreSupport/WebFrameLoaderClient.mm:
1274
1275 2014-01-25  Anders Carlsson  <andersca@apple.com>
1276
1277         Build fix.
1278
1279         * WebView/WebViewData.h:
1280
1281 2014-01-25  Anders Carlsson  <andersca@apple.com>
1282
1283         Get rid of BackForwardController::isActive()
1284         https://bugs.webkit.org/show_bug.cgi?id=127604
1285
1286         Reviewed by Sam Weinig.
1287
1288         * WebCoreSupport/WebFrameLoaderClient.mm:
1289         (WebFrameLoaderClient::canCachePage):
1290         Move isActive logic here.
1291
1292 2014-01-24  Anders Carlsson  <andersca@apple.com>
1293
1294         Remove back/forward list related functions from Page
1295         https://bugs.webkit.org/show_bug.cgi?id=127596
1296
1297         Reviewed by Andreas Kling.
1298
1299         * WebView/WebFrameView.mm:
1300         (-[WebFrameView keyDown:keyDown:]):
1301         * WebView/WebView.mm:
1302         (-[WebView _loadBackForwardListFromOtherView:]):
1303         (-[WebView initWithCoder:]):
1304         (-[WebView encodeWithCoder:]):
1305         (-[WebView backForwardList]):
1306         (-[WebView setMaintainsBackForwardList:]):
1307         (-[WebView goBack]):
1308         (-[WebView goForward]):
1309         (-[WebView canGoBack]):
1310         (-[WebView canGoForward]):
1311
1312 2014-01-24  Anders Carlsson  <andersca@apple.com>
1313
1314         Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
1315         https://bugs.webkit.org/show_bug.cgi?id=127571
1316
1317         Reviewed by Antti Koivisto.
1318
1319         * WebView/WebView.mm:
1320         (-[WebView _preferencesChanged:]):
1321         Convert the layout interval to std::chrono::milliseconds.
1322
1323 2014-01-24  Zan Dobersek  <zdobersek@igalia.com>
1324
1325         Move HistoryItem to std::unique_ptr
1326         https://bugs.webkit.org/show_bug.cgi?id=127275
1327
1328         Reviewed by Darin Adler.
1329
1330         * History/WebHistoryItem.mm: The Vector object that's passed to HistoryItem::setRedirectURLs
1331         should now be handled by std::unique_ptr and passed on through move semantics.
1332         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1333
1334 2014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
1335
1336         Move RegularExpression into JavaScriptCore for inspector
1337         https://bugs.webkit.org/show_bug.cgi?id=127526
1338
1339         Reviewed by Geoffrey Garen.
1340
1341         * WebView/WebHTMLRepresentation.mm:
1342
1343 2014-01-23  Benjamin Poulain  <bpoulain@apple.com>
1344
1345         Remote Inspector uses the Page pointer before the page is created on iOS
1346         https://bugs.webkit.org/show_bug.cgi?id=127534
1347
1348         Reviewed by Joseph Pecoraro.
1349
1350         * WebView/WebView.mm:
1351         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1352
1353 2014-01-23  Jon Honeycutt  <jhoneycutt@apple.com>
1354
1355         Assertion failure in WebCore::PseudoElement::didRecalcStyle()
1356         <https://bugs.webkit.org/show_bug.cgi?id=126761>
1357         <rdar://problem/15793540>
1358
1359         Some areas of code were erroneously checking the value of
1360         RenderObject::isImage() rather than RenderObject::isRenderImage()
1361         before casting the object to RenderImage.
1362
1363         This could lead to an assertion failure for RenderListMarkers, which
1364         may return true for isImage(), but are not RenderImages.
1365
1366         Reviewed by Andy Estes.
1367
1368         * Misc/WebNSPasteboardExtras.mm:
1369         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
1370         Check isRenderImage() rather than isImage() before casting to
1371         RenderImage.
1372
1373 2014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
1374
1375         Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
1376         https://bugs.webkit.org/show_bug.cgi?id=127409
1377
1378         Reviewed by Geoffrey Garen.
1379
1380         * WebCoreSupport/WebInspectorClient.mm:
1381         (-[WebInspectorWindowController destroyInspectorView:]):
1382         Include InspectorDisconnectReason.
1383
1384 2014-01-23  Max Vujovic  <mvujovic@adobe.com>
1385
1386         Remove CSS Custom Filters code and tests
1387         https://bugs.webkit.org/show_bug.cgi?id=127382
1388
1389         Reviewed by Simon Fraser.
1390
1391         * Configurations/FeatureDefines.xcconfig:
1392         * WebView/WebPreferenceKeysPrivate.h:
1393         * WebView/WebPreferences.mm:
1394         (+[WebPreferences initialize]):
1395         * WebView/WebPreferencesPrivate.h:
1396         * WebView/WebView.mm:
1397         (-[WebView _preferencesChanged:]):
1398
1399 2014-01-22  Myles C. Maxfield  <mmaxfield@apple.com>
1400
1401         Remove CSS3_TEXT_DECORATION define
1402         https://bugs.webkit.org/show_bug.cgi?id=127333
1403
1404         Reviewed by Simon Fraser.
1405
1406         This is required for unprefixing the text-decoration-* CSS properties.
1407
1408         * Configurations/FeatureDefines.xcconfig:
1409
1410 2014-01-22  Dan Bernstein  <mitz@apple.com>
1411
1412         Build fix for iOS clients of WebUIDelegatePrivate.h.
1413
1414         * WebView/WebUIDelegatePrivate.h: Ensure that ENABLE_DASHBOARD_SUPPORT is defined on iOS.
1415
1416 2014-01-21  Dan Bernstein  <mitz@apple.com>
1417
1418         Added a method declaration that was missed in r161185.
1419
1420         Reviewed by Sam Weinig.
1421
1422         * WebView/WebViewPrivate.h: Declared -removeVisitedLink:.
1423
1424 2014-01-21  Commit Queue  <commit-queue@webkit.org>
1425
1426         Unreviewed, rolling out r162452.
1427         http://trac.webkit.org/changeset/162452
1428         https://bugs.webkit.org/show_bug.cgi?id=127366
1429
1430         broke a few tests on all Mac WebKit1 bots (Requested by
1431         thorton on #webkit).
1432
1433         * WebView/WebView.mm:
1434         (-[WebView _windowWillOrderOnScreen:]):
1435         (-[WebView _windowWillOrderOffScreen:]):
1436
1437 2014-01-21  Gavin Barraclough  <barraclough@apple.com>
1438
1439         Change Page, FocusController to use ViewState
1440         https://bugs.webkit.org/show_bug.cgi?id=126533
1441
1442         Reviewed by Tim Horton.
1443
1444         These classes currently maintain a set of separate fields to represent the view state;
1445         combine these into a single field, and allow WebPage to send the combined update rather
1446         than individual changes.
1447
1448         Maintain existing interface for WebKit1 clients.
1449
1450         * WebView/WebView.mm:
1451         (-[WebView _windowWillOrderOnScreen:]):
1452         (-[WebView _windowWillOrderOffScreen:]):
1453             - remove calls to FocusController::setContentIsVisible, these are redundant
1454               (this is handled when page visibility is set).
1455
1456 2014-01-20  Jeremy Jones  <jeremyj@apple.com>
1457
1458         Add AVKit fullscreen video interface.
1459         https://bugs.webkit.org/show_bug.cgi?id=126818
1460
1461         Reviewed by Eric Carlson.
1462
1463         * WebCoreSupport/WebChromeClient.h:
1464         * WebCoreSupport/WebChromeClient.mm:
1465         (WebChromeClient::supportsFullscreenForNode):
1466         Enable *FullscreenForNode for HTMLMediaElement for iOS
1467
1468         * WebView/WebPreferenceKeysPrivate.h:
1469         * WebView/WebPreferences.mm:
1470         (+[WebPreferences initialize]):
1471         (-[WebPreferences mediaPlaybackFullscreenAVKit]):
1472         (-[WebPreferences setMediaPlaybackFullscreenAVKit:]):
1473         * WebView/WebPreferencesPrivate.h:
1474         * WebView/WebView.mm:
1475         (-[WebView _preferencesChanged:]):
1476         (-[WebView _enterFullscreenForNode:WebCore::]):
1477         * WebView/WebViewInternal.h:
1478         Add a disabled pref mediaPlaybackFullscreenAVKit.
1479         Use WebVideoFullscreenControllerAVKit on iOS
1480
1481 2014-01-18  Brian Burg  <bburg@apple.com>
1482
1483         Web Inspector: Page should use std::unique_ptr for InspectorController
1484         https://bugs.webkit.org/show_bug.cgi?id=127068
1485
1486         Reviewed by Joseph Pecoraro.
1487
1488         Convert call sites to use a InspectorController reference.
1489         Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
1490
1491         * WebCoreSupport/WebInspectorClient.mm:
1492         (WebInspectorClient::openInspectorFrontend):
1493         (-[WebInspectorWindowController destroyInspectorView:]):
1494         * WebInspector/WebInspector.mm:
1495         (-[WebInspector showWindow]):
1496         (-[WebInspector isJavaScriptProfilingEnabled]):
1497         (-[WebInspector setJavaScriptProfilingEnabled:]):
1498         (-[WebInspector close:]):
1499         (-[WebInspector evaluateInFrontend:callId:script:]):
1500         * WebInspector/WebNodeHighlighter.mm:
1501         (-[WebNodeHighlighter highlight]):
1502
1503 2014-01-18  Anders Carlsson  <andersca@apple.com>
1504
1505         Remove ENABLE_THREADED_HTML_PARSER defines everywhere
1506         https://bugs.webkit.org/show_bug.cgi?id=127225
1507
1508         Reviewed by Andreas Kling.
1509
1510         This concludes the removal of over 8.8 million lines of threaded parser code.
1511
1512         * Configurations/FeatureDefines.xcconfig:
1513
1514 2014-01-17  Anders Carlsson  <andersca@apple.com>
1515
1516         Clean up PageCache classes
1517         https://bugs.webkit.org/show_bug.cgi?id=127202
1518
1519         Reviewed by Andreas Kling.
1520
1521         * WebCoreSupport/WebFrameLoaderClient.mm:
1522         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
1523         (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
1524
1525 2014-01-17  Anders Carlsson  <andersca@apple.com>
1526
1527         Remove another unused FrameLoaderClient callback
1528         https://bugs.webkit.org/show_bug.cgi?id=127192
1529
1530         Reviewed by Dan Bernstein.
1531
1532         * WebCoreSupport/WebFrameLoaderClient.h:
1533         * WebCoreSupport/WebFrameLoaderClient.mm:
1534
1535 2014-01-17  Anders Carlsson  <andersca@apple.com>
1536
1537         Move didPerformFirstNavigation() logic to -[WebView _didCommitLoadForFrame:]
1538         https://bugs.webkit.org/show_bug.cgi?id=127189
1539
1540         Reviewed by Dan Bernstein.
1541
1542         This is a first step towards completely eliminating the didPerformFirstNavigation() client callback.
1543         
1544         * WebCoreSupport/WebFrameLoaderClient.h:
1545         * WebCoreSupport/WebFrameLoaderClient.mm:
1546         Remove didPerformFirstNavigation() implementation.
1547
1548         * WebView/WebView.mm:
1549         (-[WebView _checkDidPerformFirstNavigation]):
1550         Check if we have both a current item and a previous item which indicates that we've navigated once.
1551         The old code was called before there was a current item but since this is called from _didCommitLoadForFrame
1552         we have to check that there's a current item as well.
1553
1554         (-[WebView _didCommitLoadForFrame:]):
1555         Call _didCommitLoadForFrame.
1556
1557         * WebView/WebViewData.h:
1558         Add new ivar.
1559
1560 2014-01-17  Alexey Proskuryakov  <ap@apple.com>
1561
1562         More iOS build fix.
1563
1564         * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
1565         NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain is not part of NSHTTPCookieAcceptPolicy enum.
1566
1567 2014-01-16  Daniel Bates  <dabates@apple.com>
1568
1569         [iOS] MobileSafari build fix. Declare iOS-specific method mainFrameIconURL
1570
1571         For now, add mainFrameIconURL() to WebView.h. We should further investigate its
1572         usage and API/SPI status.
1573
1574         * WebView/WebView.h:
1575
1576 2014-01-16  Alexey Proskuryakov  <ap@apple.com>
1577
1578         [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
1579         https://bugs.webkit.org/show_bug.cgi?id=127139
1580
1581         Reviewed by Brady Eidson.
1582
1583         * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
1584         Handle the new case.
1585
1586 2014-01-16  Daniel Bates  <dabates@apple.com>
1587
1588         [iOS] Fix UIKit build warning about undefined macro ENABLE_NETSCAPE_PLUGIN_API
1589
1590         * WebView/WebFramePrivate.h: Wrap use of ENABLE_NETSCAPE_PLUGIN_API in TARGET_OS_IPHONE.
1591
1592 2014-01-16  Anders Carlsson  <andersca@apple.com>
1593
1594         Change all uses of FINAL to final now that all our compilers support it
1595         https://bugs.webkit.org/show_bug.cgi?id=127142
1596
1597         Reviewed by Benjamin Poulain.
1598
1599         * WebCoreSupport/WebUserMediaClient.h:
1600         * WebView/WebScriptDebugger.h:
1601
1602 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
1603
1604         Remove workaround for compilers not supporting explicit override control
1605         https://bugs.webkit.org/show_bug.cgi?id=127111
1606
1607         Reviewed by Anders Carlsson.
1608
1609         Now all compilers support explicit override control, this workaround can be removed.
1610
1611         * Storage/WebDatabaseManagerClient.h:
1612         * Storage/WebStorageTrackerClient.h:
1613         * WebCoreSupport/WebAlternativeTextClient.h:
1614         * WebCoreSupport/WebChromeClient.h:
1615         * WebCoreSupport/WebContextMenuClient.h:
1616         * WebCoreSupport/WebDeviceOrientationClient.h:
1617         * WebCoreSupport/WebDragClient.h:
1618         * WebCoreSupport/WebEditorClient.h:
1619         * WebCoreSupport/WebFrameLoaderClient.h:
1620         * WebCoreSupport/WebFrameNetworkingContext.h:
1621         * WebCoreSupport/WebGeolocationClient.h:
1622         * WebCoreSupport/WebIconDatabaseClient.h:
1623         * WebCoreSupport/WebInspectorClient.h:
1624         * WebCoreSupport/WebNotificationClient.h:
1625         * WebCoreSupport/WebPlatformStrategies.h:
1626         * WebCoreSupport/WebProgressTrackerClient.h:
1627         * WebCoreSupport/WebUserMediaClient.h:
1628         * WebView/WebScriptDebugger.h:
1629         * WebView/WebViewData.h:
1630
1631 2014-01-16  Andy Estes  <aestes@apple.com>
1632
1633         [iOS] Fix build issues with exported headers
1634
1635         * DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
1636         TARGET_OS_IPHONE.
1637         * MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
1638         rules so that WebCoreFrameScrollView won't inadvertently get changed to
1639         WebKitFrameScrollView.
1640         * Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
1641         order to maintain source compatibility.
1642         * Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
1643         * Plugins/WebPluginPrivate.h: Removed.
1644         * Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
1645         with ENABLE_SQL_DATABASE.
1646         * WebView/WebViewPrivate.h: Added declaration of
1647         -[WebView _touchEventRegions] for source compatibility.
1648
1649 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
1650
1651         Fix the iOS build after r162114
1652
1653         Unreviewed.
1654
1655         * WebView/WebViewPrivate.h: I forgot to remove the declaration, fix that.
1656
1657 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
1658
1659         Move user agent code to WebCore and unify some code between OS X and iOS
1660         https://bugs.webkit.org/show_bug.cgi?id=127080
1661
1662         Reviewed by Sam Weinig.
1663
1664         * WebCoreSupport/WebSystemInterface.mm:
1665         (InitWebCoreSystemInterface):
1666         * WebView/WebView.mm:
1667         (userVisibleWebKitVersionString):
1668         (+[WebView _standardUserAgentWithApplicationName:]):
1669         (-[WebView _setUIWebViewUserAgentWithBuildVersion:]):
1670
1671 2014-01-15  Joseph Pecoraro  <pecoraro@apple.com>
1672
1673         [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge
1674         https://bugs.webkit.org/show_bug.cgi?id=127069
1675
1676         Reviewed by Timothy Hatcher.
1677
1678         * WebView/WebView.mm:
1679         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1680         (+[WebView _enableRemoteInspector]):
1681         (+[WebView _disableRemoteInspector]):
1682         (+[WebView _disableAutoStartRemoteInspector]):
1683         (+[WebView _isRemoteInspectorEnabled]):
1684         (+[WebView _hasRemoteInspectorSession]):
1685         (-[WebView allowsRemoteInspection]):
1686         Implement with RemoteInspector.h SPIs.
1687
1688         (-[WebView setAllowsRemoteInspection:]):
1689         (-[WebView setHostApplicationBundleId:name:]):
1690         Still unimplemented, update comment.
1691
1692         (-[WebView _didCommitLoadForFrame:]):
1693         Remove dead path, WebCore now pushes updates on navigations.
1694
1695         * WebView/WebViewData.h:
1696         * WebView/WebViewData.mm:
1697         (-[WebViewPrivate init]):
1698         Remove now unused ivar.
1699
1700 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
1701
1702         More iOS build fixing.
1703
1704         * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
1705         Removed a now unused local variable.
1706
1707 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
1708
1709         Build fix for iOS.
1710
1711         * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
1712         Update a remaining call site of _updatePrivateBrowsingStateFram:to:.
1713
1714 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
1715
1716         Crash when multiple WebView instances have different PrivateBrowsing settings
1717         https://bugs.webkit.org/show_bug.cgi?id=127019
1718
1719         * WebView/WebPreferences.mm: (-[WebPreferences _updatePrivateBrowsingStateTo:]):
1720         Added a null check to fix Safari crash on startup when extensions are enabled.
1721
1722 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
1723
1724         Crash when multiple WebView instances have different PrivateBrowsing settings
1725         https://bugs.webkit.org/show_bug.cgi?id=127019
1726
1727         Reviewed by Sam Weinig.
1728
1729         * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
1730         browsing session simply because one preferences object doesn't use private browsing.
1731         There could be others that do.
1732
1733         * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
1734         browsing, and only delete the private session when there are none any more.
1735
1736 2014-01-15  David Kilzer  <ddkilzer@apple.com>
1737
1738         [iOS] Missing RenderObject::style() symbol in WebDOMOperations.mm
1739
1740         Fixes the following linker error:
1741
1742             Undefined symbols for architecture x86_64:
1743               "__ZNK7WebCore12RenderObject5styleEv", referenced from:
1744                   -[DOMNode(WebDOMNodeOperations) isHorizontalWritingMode] in WebDOMOperations.o
1745
1746         * DOM/WebDOMOperations.mm: Include RenderElement.h instead of
1747         RenderObject.h since the inline RenderObject::style() method
1748         moved to the former header.
1749
1750 2014-01-15  Commit Queue  <commit-queue@webkit.org>
1751
1752         Unreviewed, rolling out r162054.
1753         http://trac.webkit.org/changeset/162054
1754         https://bugs.webkit.org/show_bug.cgi?id=127053
1755
1756         Causes assertion failures in DumpRenderTree (Requested by ap
1757         on #webkit).
1758
1759         * WebView/WebPreferences.mm:
1760         (-[WebPreferences initWithIdentifier:sendChangeNotification:initWithIdentifier:]):
1761         (-[WebPreferences initWithCoder:]):
1762         (+[WebPreferences standardPreferences]):
1763         (-[WebPreferences dealloc]):
1764         (-[WebPreferences setPrivateBrowsingEnabled:]):
1765         (-[WebPreferences _invalidateCachedPreferences]):
1766         * WebView/WebView.mm:
1767         (-[WebView _preferencesChanged:]):
1768
1769 2014-01-14  Alexey Proskuryakov  <ap@apple.com>
1770
1771         Crash when multiple WebView instances have different PrivateBrowsing settings
1772         https://bugs.webkit.org/show_bug.cgi?id=127019
1773
1774         Reviewed by Sam Weinig.
1775
1776         * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
1777         browsing session simply because one preferences object doesn't use private browsing.
1778         There could be others that do.
1779
1780         * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
1781         browsing, and only delete the private session when there are none any more.
1782
1783 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1784
1785         Fix the iOS build after r162034.
1786
1787         * WebCoreSupport/WebProgressTrackerClient.mm:
1788         * WebView/WebView.mm:
1789         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1790
1791 2014-01-14  Mark Rowe  <mrowe@apple.com>
1792
1793         Stop cmp from spewing useless info during postprocess-headers.sh.
1794
1795         * postprocess-headers.sh: Pass -s to silence cmp since we only care about the
1796         exit status.
1797
1798 2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>
1799
1800         [iOS] Crash in NavigatorBase::vendor loading apple.com
1801         https://bugs.webkit.org/show_bug.cgi?id=127028
1802
1803         Reviewed by Daniel Bates.
1804
1805         Fill in iOS WebKitSystemInterface functions.
1806
1807         * WebCoreSupport/WebSystemInterface.mm:
1808         (InitWebCoreSystemInterface):
1809
1810 2014-01-14  Anders Carlsson  <andersca@apple.com>
1811
1812         Create separate progress tracker clients
1813         https://bugs.webkit.org/show_bug.cgi?id=127025
1814
1815         Reviewed by Sam Weinig.
1816
1817         * WebCoreSupport/WebFrameLoaderClient.h:
1818         * WebCoreSupport/WebFrameLoaderClient.mm:
1819         * WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
1820         * WebCoreSupport/WebProgressTrackerClient.mm: Added.
1821         (WebProgressTrackerClient::WebProgressTrackerClient):
1822         (WebProgressTrackerClient::progressTrackerDestroyed):
1823         (WebProgressTrackerClient::willChangeEstimatedProgress):
1824         (WebProgressTrackerClient::didChangeEstimatedProgress):
1825         (WebProgressTrackerClient::progressStarted):
1826         (WebProgressTrackerClient::progressEstimateChanged):
1827         (WebProgressTrackerClient::progressFinished):
1828         * WebView/WebView.mm:
1829         (-[WebView _commonInitializationWithFrameName:groupName:]):
1830         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1831
1832 2014-01-14  Dean Jackson  <dino@apple.com>
1833
1834         Correct grave mistake in updating the pbxproj file rather than xcconfig.
1835
1836         * Configurations/WebKit.xcconfig:
1837
1838 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1839
1840         #define ENABLE_DASHBOARD_SUPPORT for iOS.
1841
1842         * WebView/WebViewPrivate.h:
1843
1844 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1845
1846         Clean up exports and headers for iOS.
1847         
1848         Need to export WebArchivePboardType on Mac and iOS.
1849
1850         * WebKit.exp:
1851         * WebKit.mac.exp:
1852
1853 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1854
1855         Fix header availability checks on iOS
1856         https://bugs.webkit.org/show_bug.cgi?id=127016
1857
1858         Reviewed by Andy Estes.
1859
1860         Make DOMTouch* and DOMGesture* headers public headers on iOS,
1861         and fix MigrateHeaders.make to skip availability checks when
1862         building for iOS.
1863
1864         * MigrateHeaders.make:
1865
1866 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1867
1868         Need to #import <WebCore/QuickLook.h>.
1869
1870         * WebView/WebDataSource.mm:
1871
1872 2014-01-14  Daniel Bates  <dabates@apple.com>
1873
1874         [iOS] Enable QuickLook
1875         https://bugs.webkit.org/show_bug.cgi?id=126954
1876
1877         Reviewed by David Kilzer.
1878
1879         Remove empty implementation for quickLookContentForURL: since we always enable QuickLook on iOS.
1880
1881         * WebView/WebView.mm:
1882         (-[WebView quickLookContentForURL:]):
1883
1884 2014-01-14  Dean Jackson  <dino@apple.com>
1885
1886         Move some Mac-only exports to WebKit.mac.exp for iOS build.
1887
1888         * WebKit.exp:
1889         * WebKit.mac.exp:
1890
1891 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1892
1893         Move some Mac-only exports to WebKit.mac.exp for iOS build.
1894
1895         * WebKit.exp:
1896         * WebKit.mac.exp:
1897
1898 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1899
1900         Fix iOS WK1 linking.
1901
1902         * Configurations/WebKit.xcconfig: We do need WebOpenPanelResultListener
1903         on iOS.
1904         * WebCoreSupport/WebOpenPanelResultListener.mm: Need <WebCore/Icon.h>
1905
1906 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
1907
1908         iOS build fixing: link WebKit against Security.framework on iOS.
1909
1910         * Configurations/WebKit.xcconfig:
1911
1912 2014-01-14  Dean Jackson  <dino@apple.com>
1913
1914         [WK1] Allow generated export files on iOS
1915         https://bugs.webkit.org/show_bug.cgi?id=127008
1916
1917         Reviewed by Simon Fraser.
1918
1919         Add a new Mac-only symbol file.
1920
1921         * WebKit.exp: To begin, move the WebIcon* into the Mac-specific exports.
1922         * WebKit.mac.exp: Added. New file holds Mac-only symbols.
1923
1924 2014-01-14  Brian J. Burg  <burg@cs.washington.edu>
1925
1926         Add ENABLE(WEB_REPLAY) feature flag to the build system
1927         https://bugs.webkit.org/show_bug.cgi?id=126949
1928
1929         Reviewed by Joseph Pecoraro.
1930
1931         * Configurations/FeatureDefines.xcconfig:
1932
1933 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
1934
1935         Fix the Mac build. WebViewPrivate.h declares quickLookContentForURL:
1936         for iOS, but the implementation conditionalizes on USE(QUICK_LOOK),
1937         which we are confused about.
1938
1939         * WebView/WebView.mm:
1940         (-[WebView quickLookContentForURL:]):
1941         * WebView/WebViewPrivate.h:
1942
1943 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
1944
1945         Fix the remaining compiler errors in iOS WK1.
1946
1947         * WebView/WebFrame.mm:
1948         (vectorForDictationPhrasesArray): Need this function on iOS.
1949         (-[WebFrame setSelectedDOMRange:affinity:closeTyping:]): We're already inside
1950         a huge if PLATFORM(IOS) block.
1951         (-[WebFrame resetTextAutosizingBeforeLayout]): Document now exposes RenderView.
1952         * WebView/WebFrameInternal.h: Declare vectorForDictationPhrasesArray() (not a good place for it!)
1953         * WebView/WebView.mm: #import cleanup for iOS.
1954         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Declare autoStartRemoteInspector
1955         here but this needs cleaning up (<rdar://problem/15810991>).
1956         (-[WebView setHostApplicationBundleId:name:]): No [WebView sharedWebInspectorServer] any more.
1957         (-[WebView _didCommitLoadForFrame:]): Ditto.
1958         * WebView/WebViewData.h: Add allowsRemoteInspection.
1959         * WebView/WebViewData.mm: Initialize allowsRemoteInspection
1960         (-[WebViewPrivate init]):
1961         * WebView/WebViewPrivate.h: Fumbled #ifdef.
1962
1963 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
1964
1965         More work towards getting iOS WK1 building.
1966
1967         * DOM/WebDOMOperations.mm: Need RenderObject.h.
1968         * DOM/WebDOMOperationsPrivate.h:
1969         * History/WebBackForwardList.mm: Need Foundation/NSGeometry.h for NSRect
1970         (-[WebBackForwardList dictionaryRepresentation]): Fix array iteration to match
1971         other code.
1972         * Misc/WebIconDatabase.h: #ifdef out functions that return NSImages.
1973         * Plugins/WebPluginController.mm: Need <WebCore/AudioSession.h>
1974         * WebCoreSupport/WebFrameLoaderClient.mm:
1975         (WebFrameLoaderClient::transitionToCommittedForNewPage): Some new code to
1976         handle the error case.
1977         * WebView/WebFrameView.mm: Avoid including some headers which pull in AppKit classes.
1978         * WebView/WebHTMLView.mm: Ditto.
1979         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Handle
1980         different return type of createDragImageForSelection().
1981         * WebView/WebPolicyDelegatePrivate.h:
1982         * WebView/WebPreferences.mm: <WebCore/AudioSession.h> and <AudioToolbox/AudioSession.h>
1983
1984 2014-01-13  Daniel Bates  <dabates@apple.com>
1985
1986         [iOS] Remove duplicate inclusions of header WAKView.h
1987         following <http://trac.webkit.org/changeset/161910>
1988
1989         * WebView/WebFrameView.h:
1990         * WebView/WebHTMLView.h:
1991
1992 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
1993
1994         Various iOS WebKit1 build fixes.
1995
1996         * Configurations/WebKit.xcconfig: Add more Mac-only files
1997         to the excluded files list for iOS.
1998         * DefaultDelegates/WebDefaultUIDelegate.m: Don't include WebJavaScriptTextInputPanel.h
1999         on iOS
2000         * History/WebHistory.h: NSCalendarDate doesn't exist on iOS.
2001         * Misc/WebDownload.h: Need WAKAppKitStubs.h
2002         * Misc/WebNSViewExtras.m: No WebNSPasteboardExtras on iOS
2003         * Storage/WebDatabaseManagerClient.mm: Need DatabaseTracker.h, no harm
2004         in including it for all platforms.
2005         * WebCoreSupport/WebEditorClient.h: Remove useless comment.
2006         * WebCoreSupport/WebEditorClient.mm:
2007         (nsStringWithoutCopying): Moved
2008         (WebEditorClient::checkTextOfParagraph): Modernized.
2009         * WebInspector/WebNodeHighlightView.mm: Need FloatQuad.h.
2010         * WebView/WebDataSource.mm: Need WebFrameViewInternal.h
2011         * WebView/WebDocument.h: Needs WAKView.h.
2012         * WebView/WebFrameView.h: Ditto.
2013         * WebView/WebHTMLView.h: Ditto.
2014         * WebView/WebPDFDocumentExtras.mm:
2015         (allScriptsInPDFDocument): No PDFDocument on iOS.
2016         * WebView/WebPolicyDelegate.h:
2017         * WebView/WebView.h: Fix incorrect #if.
2018
2019 2014-01-13  Daniel Bates  <dabates@apple.com>
2020
2021         [iOS] More build fixes for WebKit
2022
2023         * Configurations/Base.xcconfig: Removed extraneous definition of SUPPORTED_PLATFORMS.
2024         * Configurations/WebKit.xcconfig: Exclude more Mac-specific files when building for iOS:
2025         CarbonUtils.m, CarbonWindowAdapter.mm, CarbonWindowContentView.m, CarbonWindowFrame.m,
2026         HIViewAdapter.m, HIWebView.mm, MailQuirksUserScript.js, OutlookQuirksUserScript.js,
2027         PopupMenuMac.mm, SearchPopupMenuMac.mm, WebClipView.mm, WebInspectorClient.mm,
2028         WebNetscapeContainerCheckContextInfo.mm, WebNetscapeContainerCheckPrivate.mm, WebRenderNode.mm,
2029         WebStringTruncator.mm, and WebTextCompletionController.mm. I haven't verified the Mac-specific
2030         nature of each of these files. We may be able to reduce this list upon further investigation.
2031         * WebView/WebDocument.h: Include header <WebKit/WAKView.h> for definition of WAKView.
2032         * WebView/WebFrameView.h: Ditto.
2033         * WebView/WebUIDelegate.h: Ditto.
2034         * WebView/WebView.h: Ditto.
2035
2036 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
2037
2038         Include WAKAppKitStubs.h to get NSSelectionAffinity.
2039
2040         * WebView/WebEditingDelegate.h:
2041
2042 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
2043
2044         DOMTouch* etc should not be public headers on iOS.
2045         
2046         * MigrateHeaders.make:
2047
2048 2014-01-13  Andy Estes  <aestes@apple.com>
2049
2050         [iOS] Build Fix: switch back to calling postprocess-headers.sh
2051
2052         * postprocess-headers.sh:
2053
2054 2014-01-13  Zalan Bujtas  <zalan@apple.com>
2055
2056         Enable SUBPIXEL_LAYOUT on Mac
2057         <https://webkit.org/b/126283>
2058
2059         Reviewed by Simon Fraser.
2060
2061         * Configurations/FeatureDefines.xcconfig:
2062
2063 2014-01-12  Darin Adler  <darin@apple.com>
2064
2065         Add deprecatedCharacters as a synonym for characters and convert most call sites
2066         https://bugs.webkit.org/show_bug.cgi?id=126858
2067
2068         Reviewed by Anders Carlsson.
2069
2070         * History/BinaryPropertyList.cpp:
2071         (BinaryPropertyListSerializer::appendStringObject):
2072         Use deprecatedCharacters instead of characters.
2073
2074 2014-01-12  Darin Adler  <darin@apple.com>
2075
2076         Add type checking to isEqual methods
2077         https://bugs.webkit.org/show_bug.cgi?id=126862
2078
2079         Reviewed by Anders Carlsson.
2080
2081         * WebCoreSupport/WebSecurityOrigin.mm:
2082         (-[WebSecurityOrigin isEqual:]): Added a FIXME about the lack of a hash method
2083         override. Tweaked formatting.
2084
2085         * WebView/WebDashboardRegion.mm:
2086         (-[WebDashboardRegion isEqual:]): Added type checking on the argument. Added a
2087         FIXME about the lack of a hash method override.
2088
2089 2014-01-11  Alexey Proskuryakov  <ap@apple.com>
2090
2091         [Mac] [Windows] Stop scheduling network requests in WebCore
2092         https://bugs.webkit.org/show_bug.cgi?id=126789
2093         <rdar://problem/15114727>
2094
2095         Reviewed by Sam Weinig.
2096
2097         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated
2098         for new WKSI function names.
2099
2100 2014-01-10  Anders Carlsson  <andersca@apple.com>
2101
2102         Tweak ProgressTrackerClient functions
2103         https://bugs.webkit.org/show_bug.cgi?id=126808
2104
2105         Reviewed by Sam Weinig.
2106
2107         * WebCoreSupport/WebFrameLoaderClient.h:
2108         * WebCoreSupport/WebFrameLoaderClient.mm:
2109         (WebFrameLoaderClient::progressStarted):
2110         (WebFrameLoaderClient::progressEstimateChanged):
2111         (WebFrameLoaderClient::progressFinished):
2112
2113 2014-01-10  Anders Carlsson  <andersca@apple.com>
2114
2115         Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
2116         https://bugs.webkit.org/show_bug.cgi?id=126801
2117
2118         Reviewed by Sam Weinig.
2119
2120         * WebCoreSupport/WebFrameLoaderClient.h:
2121         * WebView/WebView.mm:
2122         (-[WebView _commonInitializationWithFrameName:groupName:]):
2123
2124 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2125
2126         Clean up architectures in xcconfig files
2127         <http://webkit.org/b/126794>
2128
2129         Reviewed by Andy Estes.
2130
2131         * Configurations/WebKit.xcconfig: Remove armv6, armv7f, ppc.
2132         - Add new arch.
2133
2134 2014-01-10  Yongjun Zhang  <yongjun_zhang@apple.com>
2135
2136         Clear unparented tiled layers on memory pressure.
2137         https://bugs.webkit.org/show_bug.cgi?id=126737
2138
2139         Reviewed by Simon Fraser.
2140
2141         * WebView/WebView.mm:
2142         (+[WebView _handleMemoryWarning]): Clear all unparented tiles when under memory pressure.
2143
2144 2014-01-10  Daniel Bates  <dabates@apple.com>
2145
2146         Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
2147         (https://bugs.webkit.org/show_bug.cgi?id=126698)
2148
2149         Tell Xcode that the supported platforms for all WebCore targets are iOS and OS X.
2150
2151         * Configurations/Base.xcconfig:
2152
2153 2014-01-09  Andy Estes  <aestes@apple.com>
2154
2155         [iOS] Upstream iOS changes to MigrateHeaders.make
2156         https://bugs.webkit.org/show_bug.cgi?id=126731
2157
2158         Reviewed by David Kilzer.
2159
2160         * MigrateHeaders.make: Migrate iOS-specific headers when building for iOS.
2161
2162 2014-01-10  Daniel Bates  <dabates@apple.com>
2163
2164         [iOS] Upstream WebCore and Tools miscellaneous changes
2165         https://bugs.webkit.org/show_bug.cgi?id=126698
2166
2167         Reviewed by David Kilzer.
2168
2169         * MigrateHeaders.make:
2170
2171 2014-01-08  Anders Carlsson  <andersca@apple.com>
2172
2173         Add WTF::StringView and use it for grammar checking
2174         https://bugs.webkit.org/show_bug.cgi?id=126644
2175
2176         Reviewed by Antti Koivisto.
2177
2178         * WebCoreSupport/WebEditorClient.h:
2179         * WebCoreSupport/WebEditorClient.mm:
2180         (WebEditorClient::checkTextOfParagraph):
2181         Update to match the new signature.
2182
2183         (nsStringWithoutCopying):
2184         New function that creates an NSString that references StringView data
2185         without copying the data. (If this function proves to be useful elsewhere, it could
2186         potentially be added to StringView).
2187
2188 2014-01-02  Andy Estes  <aestes@apple.com>
2189
2190         [iOS] Clean up some exported headers
2191         https://bugs.webkit.org/show_bug.cgi?id=126403
2192
2193         Reviewed by Simon Fraser.
2194
2195         Public header files that are completely excluded on iOS don't need
2196         !TARGET_OS_IPHONE guards since they are already listed in
2197         EXCLUDED_SOURCE_FILE_NAMES.
2198
2199         I also took the opportunity to sort EXCLUDED_SOURCE_FILE_NAMES and to
2200         clean up some #imports.
2201
2202         * Configurations/WebKit.xcconfig:
2203         * Misc/WebCache.h:
2204         * Misc/WebIconDatabasePrivate.h:
2205         * Misc/WebLocalizableStrings.h:
2206         * Misc/WebNSEventExtras.h:
2207         * Misc/WebNSPasteboardExtras.h:
2208         * Misc/WebNSWindowExtras.h:
2209         * Panels/WebPanelAuthenticationHandler.h:
2210         * Plugins/WebPluginsPrivate.h:
2211         * Storage/WebDatabaseManagerPrivate.h:
2212         * WebCoreSupport/WebJavaScriptTextInputPanel.h:
2213         * WebCoreSupport/WebKeyGenerator.h:
2214         * WebCoreSupport/WebSecurityOriginPrivate.h:
2215         * WebView/WebDashboardRegion.h:
2216         * WebView/WebDynamicScrollBarsView.h:
2217         * WebView/WebFrameView.h:
2218         * WebView/WebPreferenceKeysPrivate.h:
2219         * WebView/WebResourceLoadDelegatePrivate.h:
2220         * WebView/WebView.h:
2221
2222 2014-01-07  Seokju Kwon  <seokju@webkit.org>
2223
2224         Web Inspector: Remove leftover 'device metrics' code
2225         https://bugs.webkit.org/show_bug.cgi?id=126607
2226
2227         Reviewed by Joseph Pecoraro.
2228
2229         * WebKit.order: Update after removing InspectorClient::overrideDeviceMetrics().
2230
2231 2014-01-02  Andy Estes  <aestes@apple.com>
2232
2233         [iOS] Upstream WebKit support for various features
2234         https://bugs.webkit.org/show_bug.cgi?id=126413
2235
2236         Reviewed by Sam Weinig.
2237
2238         Upstream iOS WebKit changes needed for these features:
2239
2240         - ENABLE(DELETION_UI)
2241         - ENABLE(TOUCH_EVENTS)
2242         - USE(QUICK_LOOK)
2243         - USE(UIKIT_EDITING)
2244         - ENABLE(DISK_IMAGE_CACHE)
2245         - ENABLE(IOS_TEXT_AUTOSIZING)
2246         - ENABLE(ICONDATABASE)
2247         - ENABLE(DASHBOARD_SUPPORT)
2248
2249         * DefaultDelegates/WebDefaultEditingDelegate.m:
2250         * Misc/WebCache.mm:
2251         * WebCoreSupport/WebChromeClient.h:
2252         * WebView/WebDataSource.mm:
2253         (-[WebDataSource dealloc]):
2254         * WebView/WebEditingDelegatePrivate.h:
2255         * WebView/WebFrame.mm:
2256         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2257         * WebView/WebHTMLView.mm:
2258         (-[WebHTMLView maintainsInactiveSelection]):
2259         (-[WebHTMLView touch:]):
2260         * WebView/WebPreferences.mm:
2261         (+[WebPreferences initialize]):
2262         * WebView/WebPreferencesPrivate.h:
2263         * WebView/WebView.mm:
2264         (-[WebView _preferencesChanged:]):
2265         (-[WebView _cacheFrameLoadDelegateImplementations]):
2266         (-[WebView quickLookContentForURL:]):
2267         (-[WebView _touchEventRegions]):
2268         * WebView/WebViewPrivate.h:
2269
2270 2014-01-02  Andy Estes  <aestes@apple.com>
2271
2272         [iOS] Upstream a bug fix for plugin-backed media elements
2273         https://bugs.webkit.org/show_bug.cgi?id=126412
2274
2275         Reviewed by Eric Carlson.
2276
2277         Media elements backed by plug-ins should outlive being removed from the
2278         document, like their native counterparts do.
2279
2280         * Plugins/WebPluginController.h:
2281         * Plugins/WebPluginController.mm:
2282         (-[NSView isMediaPlugInProxyView]):
2283         (-[NSView setIsMediaPlugInProxyView:]):
2284         (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
2285         (-[WebPluginController mediaPlugInProxyViewCreated:]):
2286         (-[WebPluginController destroyPlugin:]):
2287         * WebCoreSupport/WebFrameLoaderClient.mm:
2288         (pluginView):
2289
2290 2014-01-07  Mark Rowe  <mrowe@apple.com>
2291
2292         <https://webkit.org/b/126562> DOMProgressEvent has unspecified availability
2293
2294         Reviewed by Ryosuke Niwa.
2295
2296         * MigrateHeaders.make: Ensure that public DOM headers do not have unspecified availability.
2297
2298 2014-01-06  Mark Rowe  <mrowe@apple.com>
2299
2300         Mountain Lion build fix after r161332.
2301
2302         * Carbon/HIWebView.h: Mountain Lion's version of CF_AVAILABLE_MAC doesn't accept a message
2303         argument so remove it.
2304
2305 2014-01-06  Mark Rowe  <mrowe@apple.com>
2306
2307         <https://webkit.org/b/126499> Move WebKit off the legacy WebKit availability macros
2308
2309         The legacy WebKit availability macros are verbose, confusing, and provide no benefit
2310         over using the system availability macros directly. The original vision was that
2311         they'd serve a cross-platform purpose but that never came to be.
2312
2313         Since WebKit1 is API on OS X but SPI on iOS, some indirection is still needed in the
2314         availability macros to allow the headers to advertise the API as unavailable on OS X
2315         without interfering with the ability to build on iOS. This is achieved by defining
2316         WEBKIT-prefixed versions of the Foundation availability macros that are defined to
2317         their NS-prefixed equivalents. The installed headers are post-processed to map these
2318         macros back to their Foundation equivalents.
2319
2320         Part of <rdar://problem/15512304>.
2321
2322         The OS X version used in the new availability macros is based on the mapping in
2323         JavaScriptCore/WebKitAvailability.h.
2324
2325         Reviewed by Sam Weinig.
2326
2327         * Carbon/CarbonUtils.h:
2328         * Carbon/HIWebView.h:
2329         * MigrateHeaders.make: Migrate WebKitAvailability.h from WebCore as an API header.
2330         * Plugins/WebPlugin.h:
2331         * Plugins/WebPluginViewFactory.h:
2332         * WebView/WebFrameLoadDelegate.h:
2333         * WebView/WebResourceLoadDelegatePrivate.h:
2334         * WebView/WebUIDelegate.h:
2335         * postprocess-headers.sh: Added. Extracted from the Xcode project. Extended to map the
2336         WEBKIT-prefixed macros to their NS-prefixed equivalents on OS X and to remove them on iOS.
2337
2338 2014-01-04  Zan Dobersek  <zdobersek@igalia.com>
2339
2340         Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
2341         https://bugs.webkit.org/show_bug.cgi?id=126439
2342
2343         Reviewed by Andreas Kling.
2344
2345         Instead of relying on std::pair and std::make_pair symbols being present in the current scope
2346         through the pair and make_pair symbols, the std:: specifier should be used explicitly.
2347
2348         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2349         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2350         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
2351         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
2352         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
2353         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
2354
2355 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
2356
2357         Remove WindowIsVisible
2358         https://bugs.webkit.org/show_bug.cgi?id=126270
2359
2360         Reviewed by Tim Horton.
2361
2362         We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
2363         The latter detects that the content is hidden in fewer cases than the former, and as such, the
2364         former is always preferable.
2365
2366         This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
2367         Plugin::windowVisibilityChanged.
2368
2369         * WebView/WebView.mm:
2370         (-[WebView _windowWillOrderOnScreen:]):
2371         (-[WebView _windowWillOrderOffScreen:]):
2372             - rename ContainingWindowIsVisible -> ContentIsVisible.
2373
2374 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
2375
2376         Merge didMoveOnscreen / page visibility to isVisible
2377         https://bugs.webkit.org/show_bug.cgi?id=126268
2378
2379         Reviewed by Tim Horton.
2380
2381         The onscreen state most closely tracks view visibility (though currently
2382         also tracks a mix of in-window state). Make more consistent, simplify,
2383         and move all animation suspension logic to Page, so it can be controlled
2384         by the PageThrottler.
2385
2386         * WebView/WebView.mm:
2387         (-[WebView _commonInitializationWithFrameName:groupName:]):
2388         (-[WebView _updateVisibilityState]):
2389             - _setVisibilityState:isInitialState: -> _setIsVisibile:isInitialState:.
2390         (-[WebView _setIsVisible:isInitialState:]):
2391             - added.
2392         (-[WebView _setVisibilityState:isInitialState:]):
2393             - setVisibilityState -> setIsVisible/setIsPrerender.
2394         (-[WebView viewWillMoveToWindow:]):
2395         (-[WebView viewDidMoveToWindow]):
2396             - remove redundant calls to willMoveOffscreen/didMoveOnscreen
2397               (this is handled by _updateVisibilityState).
2398
2399 2013-12-23  Oliver Hunt  <oliver@apple.com>
2400
2401         Refactor PutPropertySlot to be aware of custom properties
2402         https://bugs.webkit.org/show_bug.cgi?id=126187
2403
2404         Reviewed by Antti Koivisto.
2405
2406         Update for new method signatures.
2407
2408         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2409         (WebKit::NetscapePluginInstanceProxy::setProperty):
2410
2411 2013-12-31  Andy Estes  <aestes@apple.com>
2412
2413         [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
2414         https://bugs.webkit.org/show_bug.cgi?id=125746
2415
2416         Reviewed by David Kilzer.
2417
2418         This is a straight upstreaming of the various PLATFORM(IOS) changes
2419         made to Source/WebKit/ with the following modifications:
2420
2421         - Includes of <Cocoa/Cocoa.h> were generally replaced with an include
2422         of <Foundation/Foundation.h> followed by an include of
2423         <AppKit/AppKit.h> on non-iOS platforms. This assumes that nobody was
2424         relying on <Cocoa/Cocoa.h>'s inclusion of <CoreData/CoreData.h>.
2425
2426         - Includes of <Cocoa/Cocoa.h> and <Foundation/Foundation.h> were
2427         removed from files that include WebKitPrefix.h.
2428
2429         - Instances of 'iPhone (OS)' in comments were replaced with 'iOS', and
2430         other sensitive terms were elided.
2431
2432         - Various PLATFORM(IOS) blocks were simplified. For instance:
2433
2434             #if !PLATFORM(IOS)
2435             ...
2436             #endif
2437             #if PLATFORM(IOS)
2438             ...
2439             #endif
2440
2441         Was simplified to:
2442
2443             #if !PLATFORM(IOS)
2444             ...
2445             #else
2446             ...
2447             #endif
2448
2449         * Configurations/Base.xcconfig:
2450         * Configurations/DebugRelease.xcconfig:
2451         * Configurations/Version.xcconfig:
2452         * Configurations/WebKit.xcconfig:
2453         * Configurations/iOS.xcconfig: Added.
2454         * DOM/WebDOMOperations.mm:
2455         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2456         * DefaultDelegates/WebDefaultEditingDelegate.m:
2457         * DefaultDelegates/WebDefaultPolicyDelegate.m:
2458         * DefaultDelegates/WebDefaultUIDelegate.h:
2459         * DefaultDelegates/WebDefaultUIDelegate.m:
2460         * History/WebBackForwardList.mm:
2461         * History/WebHistory.mm:
2462         * History/WebHistoryItem.mm:
2463         * History/WebURLsWithTitles.m:
2464         * Misc/WebCache.mm:
2465         * Misc/WebDownload.mm:
2466         * Misc/WebElementDictionary.mm:
2467         * Misc/WebIconDatabase.mm:
2468         * Misc/WebIconDatabaseInternal.h:
2469         * Misc/WebKitNSStringExtras.mm:
2470         * Misc/WebKitSystemBits.m:
2471         * Misc/WebKitVersionChecks.h:
2472         * Misc/WebKitVersionChecks.m:
2473         * Misc/WebLocalizableStrings.mm:
2474         * Misc/WebNSArrayExtras.h:
2475         * Misc/WebNSArrayExtras.m:
2476         * Misc/WebNSControlExtras.h:
2477         * Misc/WebNSControlExtras.m:
2478         * Misc/WebNSDictionaryExtras.h:
2479         * Misc/WebNSDictionaryExtras.m:
2480         * Misc/WebNSEventExtras.m:
2481         * Misc/WebNSFileManagerExtras.mm:
2482         * Misc/WebNSImageExtras.h:
2483         * Misc/WebNSImageExtras.m:
2484         * Misc/WebNSPasteboardExtras.mm:
2485         * Misc/WebNSPrintOperationExtras.h:
2486         * Misc/WebNSPrintOperationExtras.m:
2487         * Misc/WebNSURLExtras.mm:
2488         * Misc/WebNSViewExtras.m:
2489         * Misc/WebNSWindowExtras.m:
2490         * Panels/WebAuthenticationPanel.h:
2491         * Panels/WebAuthenticationPanel.m:
2492         * Panels/WebPanelAuthenticationHandler.m:
2493         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2494         * Plugins/WebBasePluginPackage.h:
2495         * Plugins/WebBasePluginPackage.mm:
2496         * Plugins/WebJavaPlugIn.h:
2497         * Plugins/WebPluginContainerCheck.mm:
2498         * Plugins/WebPluginController.h:
2499         * Plugins/WebPluginController.mm:
2500         * Plugins/WebPluginDatabase.mm:
2501         * Plugins/WebPluginPackage.mm:
2502         * Plugins/WebPluginsPrivate.m:
2503         * Storage/WebDatabaseManager.mm:
2504         * Storage/WebDatabaseManagerClient.h:
2505         * Storage/WebDatabaseManagerClient.mm:
2506         * Storage/WebDatabaseManagerInternal.h: Added.
2507         * Storage/WebStorageManager.mm:
2508         * WebCoreSupport/CorrectionPanel.h:
2509         * WebCoreSupport/WebAlternativeTextClient.h:
2510         * WebCoreSupport/WebApplicationCache.mm:
2511         * WebCoreSupport/WebChromeClient.h:
2512         * WebCoreSupport/WebChromeClient.mm:
2513         * WebCoreSupport/WebContextMenuClient.mm:
2514         * WebCoreSupport/WebEditorClient.h:
2515         * WebCoreSupport/WebEditorClient.mm:
2516         * WebCoreSupport/WebFrameLoaderClient.h:
2517         * WebCoreSupport/WebFrameLoaderClient.mm:
2518         * WebCoreSupport/WebFrameNetworkingContext.h:
2519         * WebCoreSupport/WebFrameNetworkingContext.mm:
2520         * WebCoreSupport/WebGeolocationClient.h:
2521         * WebCoreSupport/WebGeolocationClient.mm:
2522         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
2523         * WebCoreSupport/WebKeyGenerator.mm:
2524         * WebCoreSupport/WebNotificationClient.mm:
2525         * WebCoreSupport/WebOpenPanelResultListener.mm:
2526         * WebCoreSupport/WebSecurityOrigin.mm:
2527         * WebCoreSupport/WebSystemInterface.mm:
2528         * WebKitPrefix.h:
2529         * WebView/WebArchive.mm:
2530         * WebView/WebClipView.h:
2531         * WebView/WebDataSource.mm:
2532         * WebView/WebDelegateImplementationCaching.h:
2533         * WebView/WebDelegateImplementationCaching.mm:
2534         * WebView/WebDeviceOrientation.mm:
2535         * WebView/WebDocumentInternal.h:
2536         * WebView/WebDocumentLoaderMac.mm:
2537         * WebView/WebDynamicScrollBarsViewInternal.h:
2538         * WebView/WebFormDelegate.m:
2539         * WebView/WebFrame.mm:
2540         * WebView/WebFrameInternal.h:
2541         * WebView/WebFrameView.mm:
2542         * WebView/WebFullScreenController.h:
2543         * WebView/WebFullScreenController.mm:
2544         * WebView/WebHTMLRepresentation.mm:
2545         * WebView/WebHTMLView.mm:
2546         * WebView/WebHTMLViewInternal.h:
2547         * WebView/WebPDFDocumentExtras.h:
2548         * WebView/WebPDFDocumentExtras.mm:
2549         * WebView/WebPDFRepresentation.h:
2550         * WebView/WebPDFRepresentation.mm:
2551         * WebView/WebPDFView.h:
2552         * WebView/WebPDFView.mm:
2553         * WebView/WebPreferences.mm:
2554         * WebView/WebResource.mm:
2555         * WebView/WebTextCompletionController.h:
2556         * WebView/WebTextIterator.mm:
2557         * WebView/WebView.mm:
2558         * WebView/WebViewData.h:
2559         * WebView/WebViewData.mm:
2560         * WebView/WebViewInternal.h:
2561
2562 2013-12-25  Commit Queue  <commit-queue@webkit.org>
2563
2564         Unreviewed, rolling out r161033 and r161074.
2565         http://trac.webkit.org/changeset/161033
2566         http://trac.webkit.org/changeset/161074
2567         https://bugs.webkit.org/show_bug.cgi?id=126240
2568
2569         Oliver says that a rollout would be better (Requested by ap on
2570         #webkit).
2571
2572         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2573         (WebKit::NetscapePluginInstanceProxy::setProperty):
2574
2575 2013-12-23  Oliver Hunt  <oliver@apple.com>
2576
2577         Refactor PutPropertySlot to be aware of custom properties
2578         https://bugs.webkit.org/show_bug.cgi?id=126187
2579
2580         Reviewed by msaboff.
2581
2582         Update for new method signatures.
2583
2584         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2585         (WebKit::NetscapePluginInstanceProxy::setProperty):
2586
2587 2013-12-23  Lucas Forschler  <lforschler@apple.com>
2588
2589         <rdar://problem/15682948> Update copyright strings
2590
2591         Reviewed by Dan Bernstein.
2592
2593         * Info.plist:
2594
2595 2013-12-19  Andy Estes  <aestes@apple.com>
2596
2597         Remove WebFilterEvaluator wrappers from WebKitSystemInterface
2598         https://bugs.webkit.org/show_bug.cgi?id=126028
2599
2600         Reviewed by Anders Carlsson.
2601
2602         * WebCoreSupport/WebSystemInterface.mm:
2603         (InitWebCoreSystemInterface): Don't INIT() removed function pointers.
2604
2605 2013-12-17  Gavin Barraclough  <barraclough@apple.com>
2606
2607         Remove PageVisibilityStateUnloaded
2608         https://bugs.webkit.org/show_bug.cgi?id=125869
2609
2610         Reviewed by Anders Carlsson.
2611
2612         This is not currently supported by WebKit, remove this enum value.
2613         We can always add this back later if/when we add support for this state.
2614
2615         * WebView/WebView.mm:
2616         (core):
2617         (kit):
2618         * WebView/WebViewPrivate.h:
2619             - removed PageVisibilityStateUnloaded/WebPageVisibilityStateUnloade
2620
2621 2013-12-14  Andy Estes  <aestes@apple.com>
2622
2623         [iOS] Upstream changes to WebKit Public and Private headers
2624         https://bugs.webkit.org/show_bug.cgi?id=125745
2625
2626         Reviewed by Dan Bernstein.
2627
2628         * Configurations/WebKit.xcconfig: Ignore headers that are completely
2629         excluded on iOS. This prevents empty headers from being installed into
2630         the iOS SDK.
2631         * DOM/WebDOMOperationsPrivate.h: Upstream iOS changes.
2632         * History/WebBackForwardListPrivate.h: Ditto.
2633         * History/WebHistoryItem.h: Ditto.
2634         * History/WebHistoryItemPrivate.h: Ditto.
2635         * Misc/WebCache.h: Ditto.
2636         * Misc/WebIconDatabase.h: Ditto.
2637         * Misc/WebIconDatabasePrivate.h: Ditto.
2638         * Misc/WebKitNSStringExtras.h: Ditto.
2639         * Misc/WebLocalizableStrings.h: Ditto.
2640         * Misc/WebNSEventExtras.h: Ditto.
2641         * Misc/WebNSFileManagerExtras.h: Ditto.
2642         * Misc/WebNSPasteboardExtras.h: Ditto.
2643         * Misc/WebNSURLExtras.h: Ditto.
2644         * Misc/WebNSViewExtras.h: Ditto.
2645         * Misc/WebNSWindowExtras.h: Ditto.
2646         * Panels/WebPanelAuthenticationHandler.h: Ditto.
2647         * Plugins/WebPlugin.h: Ditto.
2648         * Plugins/WebPluginContainer.h: Ditto.
2649         * Plugins/WebPluginContainerPrivate.h: Ditto.
2650         * Plugins/WebPluginDatabase.h: Ditto.
2651         * Plugins/WebPluginPrivate.h: Ditto.
2652         * Plugins/WebPluginViewFactory.h: Ditto.
2653         * Plugins/WebPluginsPrivate.h: Ditto.
2654         * Storage/WebDatabaseManagerPrivate.h: Ditto.
2655         * WebCoreSupport/WebApplicationCache.h: Ditto.
2656         * WebCoreSupport/WebJavaScriptTextInputPanel.h: Ditto.
2657         * WebCoreSupport/WebKeyGenerator.h: Ditto.
2658         * WebCoreSupport/WebSecurityOriginPrivate.h: Ditto.
2659         * WebView/WebDashboardRegion.h: Ditto.
2660         * WebView/WebDataSource.h: Ditto.
2661         * WebView/WebDataSourcePrivate.h: Ditto.
2662         * WebView/WebDocument.h: Ditto.
2663         * WebView/WebDocumentPrivate.h: Ditto.
2664         * WebView/WebDynamicScrollBarsView.h: Ditto.
2665         * WebView/WebEditingDelegate.h: Ditto.
2666         * WebView/WebEditingDelegatePrivate.h: Ditto.
2667         * WebView/WebFormDelegate.h: Ditto.
2668         * WebView/WebFrameLoadDelegate.h: Ditto.
2669         * WebView/WebFramePrivate.h: Ditto.
2670         * WebView/WebFrameView.h: Ditto.
2671         * WebView/WebFrameViewPrivate.h: Ditto.
2672         * WebView/WebHTMLRepresentation.h: Ditto.
2673         * WebView/WebHTMLView.h: Ditto.
2674         * WebView/WebHTMLViewPrivate.h: Ditto.
2675         * WebView/WebPolicyDelegate.h: Ditto.
2676         * WebView/WebPreferenceKeysPrivate.h: Ditto.
2677         * WebView/WebPreferences.h: Ditto.
2678         * WebView/WebPreferencesPrivate.h: Ditto.
2679         * WebView/WebRenderLayer.h: Ditto.
2680         * WebView/WebResourceLoadDelegatePrivate.h: Ditto.
2681         * WebView/WebResourcePrivate.h: Ditto.
2682         * WebView/WebUIDelegate.h: Ditto.
2683         * WebView/WebUIDelegatePrivate.h: Ditto.
2684         * WebView/WebView.h: Ditto.
2685         * WebView/WebViewPrivate.h: Ditto.
2686
2687 2013-12-15  Andy Estes  <aestes@apple.com>
2688
2689         [iOS] Upstream changes to FeatureDefines.xcconfig
2690         https://bugs.webkit.org/show_bug.cgi?id=125742
2691
2692         Reviewed by Dan Bernstein.
2693
2694         * Configurations/FeatureDefines.xcconfig:
2695
2696 2013-12-14  Andy Estes  <aestes@apple.com>
2697
2698         Unify FeatureDefines.xcconfig
2699         https://bugs.webkit.org/show_bug.cgi?id=125741
2700
2701         Rubber-stamped by Dan Bernstein.
2702
2703         * Configurations/FeatureDefines.xcconfig: Remove a stray space in
2704         FEATURE_DEFINES.
2705
2706 2013-12-11  Joseph Pecoraro  <pecoraro@apple.com>
2707
2708         Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore
2709         https://bugs.webkit.org/show_bug.cgi?id=125324
2710
2711         Reviewed by Timothy Hatcher.
2712
2713         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2714         * WebCoreSupport/WebInspectorClient.mm:
2715         * WebView/WebFrame.mm:
2716         * WebView/WebView.mm:
2717
2718 2013-12-03  Mark Rowe  <mrowe@apple.com>
2719
2720         <https://webkit.org/b/125139> Modernize the WebKit API headers
2721         <rdar://problem/15540175>
2722
2723         This consists of three main changes:
2724         1) Converting the return type of initializer methods to instancetype.
2725         2) Declaring properties rather than getters and setters.
2726         3) Declaring explicitly sized enums.
2727
2728         Changing the declarations from getters and setters to properties also required
2729         updating the headerdoc in a number of places.
2730
2731         Reviewed by Anders Carlsson.
2732
2733         * DOM/WebDOMOperations.h:
2734         * History/WebBackForwardList.h:
2735         * History/WebHistory.h:
2736         * History/WebHistoryItem.h:
2737         * History/WebHistoryItem.mm:
2738         * Plugins/WebPlugin.h:
2739         * Plugins/WebPluginContainer.h:
2740         * WebView/WebArchive.h:
2741         * WebView/WebArchive.mm:
2742         * WebView/WebDataSource.h:
2743         * WebView/WebDataSource.mm:
2744         * WebView/WebEditingDelegate.h:
2745         * WebView/WebFrame.h:
2746         * WebView/WebFrame.mm:
2747         * WebView/WebFrameView.h:
2748         * WebView/WebPolicyDelegate.h:
2749         * WebView/WebPreferences.h:
2750         * WebView/WebPreferences.mm:
2751         (-[WebPreferences cacheModel]): Cast to the enum.
2752         * WebView/WebResource.h:
2753         * WebView/WebResource.mm:
2754         * WebView/WebUIDelegate.h:
2755         * WebView/WebView.h:
2756         * WebView/WebView.mm:
2757         (+[WebView _didSetCacheModel]): Fix the return type.
2758
2759 2013-12-10  Mark Rowe  <mrowe@apple.com>
2760
2761         <http://webkit.org/b/125556> WebKit doesn't deal with longer bundle versions correctly
2762         <rdar://problem/15634192>
2763
2764         Reviewed by Dan Bernstein.
2765
2766         * WebView/WebView.mm:
2767         (createUserVisibleWebKitVersionString): Strip as many leading digits as is necessary to
2768         bring the major component of the version down to 3 digits.
2769
2770 2013-12-09  Sam Weinig  <sam@webkit.org>
2771
2772         Fix the build of projects including <WebKit/WebUIDelegatePrivate.h>
2773
2774         Rubber-stamped by Dan Bernstein.
2775
2776         * WebView/WebAllowDenyPolicyListener.h:
2777         Use TARGET_OS_IPHONE rather than PLATFORM(IOS) in an exposed header.
2778
2779 2013-12-05  Jer Noble  <jer.noble@apple.com>
2780
2781         [MSE] Add a runtime-setting for the MediaSource constructor.
2782         https://bugs.webkit.org/show_bug.cgi?id=125336
2783
2784         Reviewed by Eric Carlson.
2785
2786         Add a private WebPreference which controls the WebCore mediaSourceEnabled setting.
2787
2788         * WebView/WebPreferenceKeysPrivate.h:
2789         * WebView/WebPreferences.mm:
2790         (+[WebPreferences initialize]):
2791         (-[WebPreferences mediaSourceEnabled]):
2792         (-[WebPreferences setMediaSourceEnabled:]):
2793         * WebView/WebPreferencesPrivate.h:
2794         * WebView/WebView.mm:
2795         (-[WebView _preferencesChanged:]):
2796
2797 2013-12-05  Mark Lam  <mark.lam@apple.com>
2798
2799         C Loop LLINT layout test regressions.
2800         https://bugs.webkit.org/show_bug.cgi?id=125314.
2801
2802         Reviewed by Geoffrey Garen.
2803
2804         The regression was due to the ENABLE_LLINT_C_LOOP flag not being included
2805         in the build of the WebKit and WebKit2 components. As a result, some fields
2806         in JSC::VM were ifdef'ed out in WebCore and JSC, but not in WebKit and
2807         WebKit2. This resulted in VM::m_initializingObjectClass having 2 different
2808         offsets depending on whether it is accessed from WebCore and JSC or from
2809         WebKit and WebKit2, and chaos ensued.
2810
2811         This issue will manifest when we pass --cloop to build-webkit.
2812         The fix is simply to add ENABLE_LLINT_C_LOOP to FEATURE_DEFINES for WebKit
2813         and WebKit2.
2814
2815         * Configurations/FeatureDefines.xcconfig:
2816
2817 2013-12-04  Brian J. Burg  <burg@cs.washington.edu>
2818
2819         Consolidate various frame snapshot capabilities.
2820         https://bugs.webkit.org/show_bug.cgi?id=124325
2821
2822         Reviewed by Darin Adler.
2823
2824         Use new platform-independent methods instead of Mac methods.
2825
2826         * WebView/WebHTMLView.mm:
2827         (-[WebHTMLView _selectionDraggingImage]):
2828         (-[WebHTMLView selectionImageForcingBlackText:]):
2829
2830 2013-12-04  Andy Estes  <aestes@apple.com>
2831
2832         [iOS] Build projects with $(ARCHS_STANDARD_32_64_BIT)
2833         https://bugs.webkit.org/show_bug.cgi?id=125236
2834
2835         Reviewed by Sam Weinig.
2836
2837         $(ARCHS_STANDARD_32_64_BIT) is what we want for both device and simulator builds.
2838
2839         * Configurations/DebugRelease.xcconfig:
2840
2841 2013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
2842
2843         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
2844         https://bugs.webkit.org/show_bug.cgi?id=124613
2845
2846         Reviewed by Timothy Hatcher.
2847
2848         Remove the old ENABLE(REMOTE_INSPECTOR) connection management implementation.
2849
2850         * WebCoreSupport/WebInspectorClient.h:
2851         * WebCoreSupport/WebInspectorClient.mm:
2852         (WebInspectorClient::indicate):
2853         (WebInspectorClient::hideIndicate):
2854         Hook up WebView indication through this new path.
2855
2856         * WebCoreSupport/WebFrameLoaderClient.mm:
2857         (WebFrameLoaderClient::dispatchDidReceiveTitle):
2858         * WebCoreSupport/WebInspectorClient.h:
2859         * WebCoreSupport/WebInspectorClient.mm:
2860         (WebInspectorClient::WebInspectorClient):
2861         (WebInspectorClient::inspectorDestroyed):
2862         * WebInspector/remote/WebInspectorClientRegistry.h: Removed.
2863         * WebInspector/remote/WebInspectorClientRegistry.mm: Removed.
2864         * WebInspector/remote/WebInspectorRelayDefinitions.h: Removed.
2865         * WebInspector/remote/WebInspectorRemoteChannel.h: Removed.
2866         * WebInspector/remote/WebInspectorRemoteChannel.mm: Removed.
2867         * WebInspector/remote/WebInspectorServer.h: Removed.
2868         * WebInspector/remote/WebInspectorServer.mm: Removed.
2869         * WebInspector/remote/WebInspectorServerWebViewConnection.h: Removed.
2870         * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Removed.
2871         * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Removed.
2872         * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Removed.
2873         * WebInspector/remote/WebInspectorXPCWrapper.h: Removed.
2874         * WebInspector/remote/WebInspectorXPCWrapper.m: Removed.
2875         * WebKit.exp:
2876         * WebView/WebView.mm:
2877         (-[WebView _commonInitializationWithFrameName:groupName:]):
2878         (+[WebView _enableRemoteInspector]):
2879         (+[WebView _disableRemoteInspector]):
2880         (+[WebView _disableAutoStartRemoteInspector]):
2881         (+[WebView _isRemoteInspectorEnabled]):
2882         (+[WebView _hasRemoteInspectorSession]):
2883         (-[WebView allowsRemoteInspection]):
2884         (-[WebView setAllowsRemoteInspection:]):
2885         (-[WebView setIndicatingForRemoteInspector:]):
2886         (-[WebView setHostApplicationBundleId:name:]):
2887         (-[WebView _didCommitLoadForFrame:]):
2888         * WebView/WebViewData.h:
2889         * WebView/WebViewData.mm:
2890         (-[WebViewPrivate init]):
2891         (-[WebViewPrivate dealloc]):
2892         * WebView/WebViewInternal.h:
2893         * WebView/WebViewPrivate.h:
2894         Remove old REMOTE_INSPECTOR.
2895
2896 2013-12-02  Chris Fleizach  <cfleizach@apple.com>
2897
2898         AX: Crash in accessibilityRoot when Document goes away
2899         https://bugs.webkit.org/show_bug.cgi?id=125113
2900
2901         Reviewed by Tim Horton.
2902
2903         The AXObjectCache can sometimes be null if the render tree has been detached from the document.
2904
2905         * WebView/WebFrame.mm:
2906         (-[WebFrame accessibilityRoot]):
2907
2908 2013-11-28  Antti Koivisto  <antti@apple.com>
2909
2910         Remove feature: CSS variables
2911         https://bugs.webkit.org/show_bug.cgi?id=114119
2912
2913         Reviewed by Andreas Kling.
2914
2915         * Configurations/FeatureDefines.xcconfig:
2916
2917 2013-11-27  Sam Weinig  <sam@webkit.org>
2918
2919         Fix the iOS build.
2920
2921         * WebView/WebAllowDenyPolicyListener.h: Added.
2922         * WebView/WebUIDelegatePrivate.h:
2923         Move the WebAllowDenyPolicyListener protocol to its own file.
2924
2925 2013-11-21  Mark Rowe  <mrowe@apple.com>
2926
2927         <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
2928
2929         All modern versions of Xcode set it appropriately for our needs.
2930
2931         Reviewed by Alexey Proskuryakov.
2932
2933         * Configurations/Base.xcconfig:
2934
2935 2013-11-21  Mark Rowe  <mrowe@apple.com>
2936
2937         <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
2938
2939         Reviewed by Alexey Proskuryakov.
2940
2941         * Configurations/Base.xcconfig:
2942
2943 2013-11-21  Mark Rowe  <mrowe@apple.com>
2944
2945         <https://webkit.org/b/124700> Fix some deprecation warnings.
2946
2947         Reviewed by Anders Carlsson.
2948
2949         * Plugins/WebNetscapePluginStream.mm:
2950         (WebNetscapePluginStream::startStream): Move off a deprecated NSData method.
2951         * WebView/WebDataSource.mm:
2952         (-[WebDataSource _fileWrapperForURL:]): Move off a deprecated NSFileWrapper method.
2953         * WebView/WebHTMLView.mm:
2954         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
2955
2956 2013-11-20  Mark Lam  <mark.lam@apple.com>
2957
2958         Introducing VMEntryScope to update the VM stack limit.
2959         https://bugs.webkit.org/show_bug.cgi?id=124634.
2960
2961         Reviewed by Geoffrey Garen.
2962
2963         * WebView/WebScriptDebugger.mm:
2964         (WebScriptDebugger::sourceParsed):
2965
2966 2013-11-19  Ryosuke Niwa  <rniwa@webkit.org>
2967
2968         Enable HTMLTemplateElement on Mac port
2969         https://bugs.webkit.org/show_bug.cgi?id=124637
2970
2971         Reviewed by Tim Horton.
2972
2973         * Configurations/FeatureDefines.xcconfig:
2974
2975 2013-11-18  Commit Queue  <commit-queue@webkit.org>
2976
2977         Unreviewed, rolling out r159455.
2978         http://trac.webkit.org/changeset/159455
2979         https://bugs.webkit.org/show_bug.cgi?id=124568
2980
2981         broke two api tests (see bug 124564) (Requested by thorton on
2982         #webkit).
2983
2984         * WebView/WebHTMLView.mm:
2985         (-[WebHTMLView _selectionDraggingImage]):
2986         (-[WebHTMLView selectionImageForcingBlackText:]):
2987
2988 2013-11-18  Mark Rowe  <mrowe@apple.com>
2989
2990         Disable deprecation warnings related to NSCalendarDate in WebHistory.
2991
2992         Reviewed by Anders Carlsson.
2993
2994         * History/WebHistory.h: Use a #pragma to have the compiler treat this header as
2995         a system header, even when not included from a system location. This has the effect
2996         of suppressing warnings when including this header. It's a more general effect than
2997         we're after but is also less invasive than disabling deprecation warnings around
2998         the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
2999         in the future.
3000         * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
3001
3002 2013-11-18  David Hyatt  <hyatt@apple.com>
3003
3004         Add a quirk to not respect center text-align when positioning
3005
3006         <rdar://problem/15427571>
3007         https://bugs.webkit.org/show_bug.cgi?id=124522
3008
3009         Reviewed by Simon Fraser.
3010
3011         Added fast/block/legacy-text-align-position-quirk.html
3012
3013         * WebView/WebPreferenceKeysPrivate.h:
3014         * WebView/WebPreferences.mm:
3015         (+[WebPreferences initialize]):
3016         (-[WebPreferences useLegacyTextAlignPositionedElementBehavior]):
3017         (-[WebPreferences setUseLegacyTextAlignPositionedElementBehavior:]):
3018         * WebView/WebPreferencesPrivate.h:
3019         * WebView/WebView.mm:
3020         (-[WebView _preferencesChanged:]):
3021
3022 2013-11-18  Brian J. Burg  <burg@cs.washington.edu>
3023
3024         Consolidate various frame snapshot capabilities.
3025         https://bugs.webkit.org/show_bug.cgi?id=124325
3026
3027         Reviewed by Timothy Hatcher.
3028
3029         Use new platform-independent methods instead of Mac methods.
3030
3031         * WebView/WebHTMLView.mm:
3032         (-[WebHTMLView _selectionDraggingImage]):
3033         (-[WebHTMLView selectionImageForcingBlackText:]):
3034
3035 2013-11-18  Anders Carlsson  <andersca@apple.com>
3036
3037         Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
3038         https://bugs.webkit.org/show_bug.cgi?id=124523
3039
3040         Reviewed by Dan Bernstein.
3041
3042         * Plugins/Hosted/NetscapePluginHostManager.mm:
3043         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3044         (WebKit::NetscapePluginHostManager::didCreateWindow):
3045         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3046         (WebKit::NetscapePluginHostProxy::makeCurrentProcessFrontProcess):
3047         (WebKit::NetscapePluginHostProxy::makePluginHostProcessFrontProcess):
3048         (WebKit::NetscapePluginHostProxy::isPluginHostProcessFrontProcess):
3049
3050 2013-11-18  Anders Carlsson  <andersca@apple.com>
3051
3052         Ignore deprecation warnings for now.
3053
3054         * History/WebHistory.h:
3055
3056 2013-11-14  Anders Carlsson  <andersca@apple.com>
3057
3058         Reimplement getDayBoundaries using NSCalendar on 10.9
3059         https://bugs.webkit.org/show_bug.cgi?id=124379
3060
3061         Reviewed by Dan Bernstein.
3062
3063         * History/WebHistory.mm:
3064         (getDayBoundaries):
3065
3066 2013-11-14  Anders Carlsson  <andersca@apple.com>
3067
3068         Stop using deprecated NSPropertyListSerialization methods
3069         https://bugs.webkit.org/show_bug.cgi?id=124377
3070
3071         Reviewed by Mark Rowe.
3072
3073         * History/WebHistory.mm:
3074         (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
3075         * Plugins/Hosted/NetscapePluginHostManager.mm:
3076         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3077         (WebKit::NetscapePluginHostManager::instantiatePlugin):
3078         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3079         (WKPCIdentifierInfo):
3080         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3081         (WebKit::NetscapePluginInstanceProxy::enumerate):
3082         (WebKit::NetscapePluginInstanceProxy::marshalValue):
3083         (WebKit::NetscapePluginInstanceProxy::marshalValues):
3084         (WebKit::NetscapePluginInstanceProxy::demarshalValue):
3085         (WebKit::NetscapePluginInstanceProxy::demarshalValues):
3086         * Plugins/Hosted/ProxyInstance.mm:
3087         (WebKit::ProxyInstance::getPropertyNames):
3088
3089 2013-11-13  Joseph Pecoraro  <pecoraro@apple.com>
3090
3091         Unreviewed rollout of r159271, broke Mountain Lion build.
3092
3093         * History/WebHistory.h:
3094         * History/WebHistory.mm:
3095
3096 2013-11-13  Anders Carlsson  <andersca@apple.com>
3097
3098         Deprecate WebHistory methods that use NSCalendarDate
3099         https://bugs.webkit.org/show_bug.cgi?id=124329
3100         <rdar://problem/15441122>
3101
3102         Reviewed by Mark Rowe.
3103
3104         * History/WebHistory.h:
3105         Add NS_DEPRECATED_MAC to orderedLastVisitedDays and orderedItemsLastVisitedOnDay:.
3106         In order to not break the Mountain Lion build, define __NSd_10_9 if necessary.
3107         
3108         * History/WebHistory.mm:
3109         Ignore deprecation warnings in methods where NSCalendarDate is used.
3110
3111 2013-11-13  Gordon Sheridan  <gordon_sheridan@apple.com>
3112
3113         Removed deprecated download delegates.
3114         https://bugs.webkit.org/show_bug.cgi?id=124309
3115         <rdar://problem/13570414>
3116
3117         Reviewed by Anders Carlsson.
3118
3119         * Misc/WebDownload.mm:
3120         (-[WebDownloadInternal respondsToSelector:]):
3121         Removed download:shouldBeginChildDownloadOfSource:delegate and
3122         download:didBeginChildDownload.
3123
3124 2013-11-12  Alexey Proskuryakov  <ap@apple.com>
3125
3126         Disable WebCrypto on Mountain Lion
3127         https://bugs.webkit.org/show_bug.cgi?id=124261
3128
3129         Rubber-stamped by Sam Weinig.
3130
3131         * Configurations/FeatureDefines.xcconfig:
3132
3133 2013-11-12  Andy Estes  <aestes@apple.com>
3134
3135         [Mac] Fix some deprecation warnings
3136         https://bugs.webkit.org/show_bug.cgi?id=124252
3137
3138         Reviewed by Mark Rowe.
3139
3140         * Plugins/WebBasePluginPackage.mm:
3141         (-[WebBasePluginPackage pListForPath:createFile:]): Use +[NSPropertyListSerialization propertyListWithData:options:format:error:] instead of +[NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:].
3142
3143 2013-11-12  Anders Carlsson  <andersca@apple.com>
3144
3145         Remove -[WebHistoryItem _lastVisitedDate]
3146         https://bugs.webkit.org/show_bug.cgi?id=124250
3147
3148         Reviewed by Mark Rowe.
3149
3150         This method is not called by anyone and NSCalendarDate is deprecated so get rid of it.
3151
3152         * History/WebHistoryItem.mm:
3153         * History/WebHistoryItemPrivate.h:
3154
3155 2013-11-11  Anders Carlsson  <andersca@apple.com>
3156
3157         FrameFilter can just be an std::function instead
3158         https://bugs.webkit.org/show_bug.cgi?id=124176
3159
3160         Reviewed by Tim Horton.
3161
3162         * DOM/WebDOMOperations.mm:
3163         (-[DOMNode webArchiveByFilteringSubframes:]):
3164
3165 2013-11-11  Dan Bernstein  <mitz@apple.com>
3166
3167         [Mac] .exp files are not source code
3168         https://bugs.webkit.org/show_bug.cgi?id=124154
3169
3170         Reviewed by Andy Estes.
3171
3172         * Configurations/WebKit.xcconfig: Removed WebKit.iOS.exp from
3173         EXCLUDED_SOURCE_FILE_NAMES_macosx.
3174
3175 2013-11-09  Patrick Gansterer  <paroga@webkit.org>
3176
3177         Move RunLoop from WebCore to WTF
3178         https://bugs.webkit.org/show_bug.cgi?id=116606
3179
3180         Reviewed by Anders Carlsson.
3181
3182         * Carbon/CarbonWindowAdapter.mm:
3183         (+[CarbonWindowAdapter initialize]):
3184         * History/WebBackForwardList.mm:
3185         (+[WebBackForwardList initialize]):
3186         * History/WebHistoryItem.mm:
3187         (+[WebHistoryItem initialize]):
3188         * Misc/WebCache.mm:
3189         (+[WebCache initialize]):
3190         * Misc/WebElementDictionary.mm:
3191         (+[WebElementDictionary initialize]):
3192         * Misc/WebIconDatabase.mm:
3193         (+[WebIconDatabase initialize]):
3194         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3195         (+[WebHostedNetscapePluginView initialize]):
3196         * Plugins/WebBaseNetscapePluginView.mm:
3197         * Plugins/WebBasePluginPackage.mm:
3198         * Plugins/WebNetscapePluginView.mm:
3199         (+[WebNetscapePluginView initialize]):
3200         * WebCoreSupport/WebEditorClient.mm:
3201         (+[WebUndoStep initialize]):
3202         * WebCoreSupport/WebFrameLoaderClient.mm:
3203         * WebView/WebArchive.mm:
3204         (+[WebArchivePrivate initialize]):
3205         * WebView/WebDataSource.mm:
3206         (+[WebDataSource initialize]):
3207         * WebView/WebHTMLView.mm:
3208         (+[WebHTMLViewPrivate initialize]):
3209         (+[WebHTMLView initialize]):
3210         * WebView/WebPreferences.mm:
3211         (+[WebPreferences initialize]):
3212         * WebView/WebResource.mm:
3213         (+[WebResourcePrivate initialize]):
3214         * WebView/WebTextIterator.mm:
3215         (+[WebTextIteratorPrivate initialize]):
3216         * WebView/WebView.mm:
3217         (+[WebView initialize]):
3218         * WebView/WebViewData.mm:
3219         (+[WebViewPrivate initialize]):
3220
3221 2013-11-08  Mark Lam  <mark.lam@apple.com>
3222
3223         Move breakpoint (and exception break) functionality into JSC::Debugger.
3224         https://bugs.webkit.org/show_bug.cgi?id=121796.
3225
3226         Reviewed by Geoffrey Garen.
3227
3228         * WebView/WebScriptDebugger.h:
3229         * WebView/WebScriptDebugger.mm:
3230         (WebScriptDebugger::WebScriptDebugger):
3231         (WebScriptDebugger::handlePause):
3232
3233 2013-11-07  Joseph Pecoraro  <pecoraro@apple.com>
3234
3235         Remove a PLATFORM(IOS) from WebKit Private Header
3236         https://bugs.webkit.org/show_bug.cgi?id=124014
3237
3238         Reviewed by Timothy Hatcher.
3239
3240         Make the previously iOS only WebInspectorDidStartSearchingForNode
3241         and WebInspectorDidStopSearchingForNode notifications non iOS specific.
3242
3243         * WebCoreSupport/WebInspectorClient.h:
3244         * WebCoreSupport/WebInspectorClient.mm:
3245         (WebInspectorClient::didSetSearchingForNode):
3246         * WebInspector/WebInspector.h:
3247         * WebInspector/WebInspector.mm:
3248         * WebKit.exp:
3249
3250 2013-11-07  Mark Lam  <mark.lam@apple.com>
3251
3252         Cosmetic: rename xxxId to xxxID for ScriptId, SourceId, and BreakpointId.
3253         https://bugs.webkit.org/show_bug.cgi?id=123945.
3254
3255         Reviewed by Geoffrey Garen.
3256
3257         * WebView/WebScriptDebugger.mm:
3258         (WebScriptDebugger::exception):
3259
3260 2013-11-06  Daniel Bates  <dabates@apple.com>
3261
3262         [iOS] Upstream Letterpress effect
3263         https://bugs.webkit.org/show_bug.cgi?id=123932
3264
3265         Reviewed by Sam Weinig.
3266
3267         Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
3268         letterpress on iOS.
3269
3270         * Configurations/FeatureDefines.xcconfig:
3271
3272 2013-11-04  Alexey Proskuryakov  <ap@apple.com>
3273
3274         DumpRenderTree should reset its preferences file on launch
3275         https://bugs.webkit.org/show_bug.cgi?id=29751
3276
3277         Reviewed by Dan Bernstein.
3278
3279         * WebView/WebView.mm:
3280         (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
3281         Further fix reading of AppleKeyboardUIMode - reading it from kCFPreferencesAnyApplication
3282         domain meant that current application's domain was explcitly ignored, and the only
3283         way to override the setting in DRT was through argument domain.
3284
3285 2013-11-01  Jer Noble  <jer.noble@apple.com>
3286
3287         [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
3288         https://bugs.webkit.org/show_bug.cgi?id=123621
3289
3290         Reviewed by Eric Carlson.
3291
3292         Add a new isVideoPluginProxyEnabled setting.
3293
3294         * WebView/WebPreferenceKeysPrivate.h:
3295         * WebView/WebPreferences.mm:
3296         (+[WebPreferences initialize]): Set isVideoPluginProxyEnabled preference.
3297         (-[WebPreferences isVideoPluginProxyEnabled]): Pass through to Settings.
3298         * WebView/WebPreferencesPrivate.h:
3299         * WebView/WebView.mm:
3300         (-[WebView _preferencesChanged:]): Set isVideoPluginProxyEnabled preference.
3301
3302 2013-11-01  Andy Estes  <aestes@apple.com>
3303
3304         [iOS] Make some headers Private
3305         https://bugs.webkit.org/show_bug.cgi?id=123626
3306
3307         Reviewed by Andreas Kling.
3308
3309         * Configurations/WebKit.xcconfig: Exclude iOS Private headers from the Mac build.
3310
3311 2013-10-31  Alexey Proskuryakov  <ap@apple.com>
3312
3313         Enable WebCrypto on Mac
3314         https://bugs.webkit.org/show_bug.cgi?id=123587
3315
3316         Reviewed by Anders Carlsson.
3317
3318         * Configurations/FeatureDefines.xcconfig: Do it.
3319
3320 2013-10-30  Ryosuke Niwa  <rniwa@webkit.org>
3321
3322         Remove code for Mac Lion
3323         https://bugs.webkit.org/show_bug.cgi?id=123542
3324
3325         Reviewed by Anders Carlsson.
3326
3327         * WebView/WebHTMLView.mm:
3328         (-[WebHTMLView attachRootLayer:]):
3329         * WebView/WebView.mm:
3330
3331 2013-10-29  Andy Estes  <aestes@apple.com>
3332
3333         [iOS] Upstream Source/WebKit/ios/
3334         https://bugs.webkit.org/show_bug.cgi?id=123470
3335
3336         Reviewed by Sam Weinig.
3337
3338         * Configurations/WebKit.xcconfig: Excluded some iOS files from the Mac build.
3339
3340 2013-10-29  Alexey Proskuryakov  <ap@apple.com>
3341
3342         Result of focus-option-control-on-page.html depends on system preferences
3343         https://bugs.webkit.org/show_bug.cgi?id=123304
3344
3345         Reviewed by Simon Fraser.
3346
3347         * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
3348         Read the preference from its correct domain. This doesn't affect behavior in practice
3349         and isn't part of the fix, but it's a good opportunity to correct this code.
3350
3351 2013-10-29  Jer Noble  <jer.noble@apple.com>
3352
3353         [MSE] [Mac] Enable MediaSource on the Mac
3354         https://bugs.webkit.org/show_bug.cgi?id=122484
3355
3356         Reviewed by Darin Adler.
3357
3358         Enable ENABLE_MEDIA_SOURCE.
3359
3360         * Configurations/FeatureDefines.xcconfig:
3361
3362 2013-10-28  Joseph Pecoraro  <pecoraro@apple.com>
3363
3364         Upstream remaining PLATFORM(IOS) and ENABLE(REMOTE_INSPECTOR) pieces
3365         https://bugs.webkit.org/show_bug.cgi?id=123411
3366
3367         Reviewed by Timothy Hatcher.
3368
3369         Upstream iOS node highlighting and view indication.
3370
3371         * WebCoreSupport/WebInspectorClient.h:
3372         * WebInspector/WebInspector.h:
3373         * WebInspector/WebInspector.mm:
3374         * WebInspector/WebNodeHighlight.h:
3375         * WebInspector/WebNodeHighlight.mm:
3376         (-[WebHighlightLayer initWithHighlightView:webView:]):
3377         (-[WebHighlightLayer layoutSublayers]):
3378         (-[WebHighlightLayer actionForKey:]):
3379         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
3380         (-[WebNodeHighlight dealloc]):
3381         (-[WebNodeHighlight attach]):
3382         * WebInspector/WebNodeHighlightView.h:
3383         * WebInspector/WebNodeHighlightView.mm:
3384         (-[WebNodeHighlightView initWithWebNodeHighlight:]):
3385         (-[WebNodeHighlightView dealloc]):
3386         (-[WebNodeHighlightView _attach:numLayers:]):
3387         (findIntersectionOnLineBetweenPoints):
3388         (quadIntersection):
3389         (layerPathWithHole):
3390         (layerPath):
3391         (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
3392         (-[WebNodeHighlightView _layoutForRectsHighlight:parent:]):
3393         (-[WebNodeHighlightView layoutSublayers:]):
3394         * WebInspector/WebNodeHighlighter.mm:
3395         (-[WebNodeHighlighter highlight]):
3396         * WebView/WebIndicateLayer.h: Added.
3397         * WebView/WebIndicateLayer.mm: Added.
3398         (-[WebIndicateLayer layoutSublayers]):
3399         (-[WebIndicateLayer actionForKey:]):
3400         * WebView/WebView.mm:
3401         (-[WebView setIndicatingForRemoteInspector:]):
3402         (-[WebView setHostApplicationBundleId:name:]):
3403         (-[WebView hostApplicationBundleId]):
3404         (-[WebView hostApplicationName]):
3405         * WebView/WebViewData.h:
3406         * WebView/WebViewData.mm:
3407         (-[WebViewPrivate dealloc]):
3408
3409 2013-10-28  Myles C. Maxfield  <mmaxfield@apple.com>
3410
3411         Parsing support for -webkit-text-decoration-skip: ink
3412         https://bugs.webkit.org/show_bug.cgi?id=123358
3413
3414         Reviewed by Dean Jackson.
3415
3416         Adding ENABLE(CSS3_TEXT_DECORATION)
3417
3418         * Configurations/FeatureDefines.xcconfig:
3419
3420 2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
3421
3422         Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
3423         https://bugs.webkit.org/show_bug.cgi?id=123111
3424
3425         Reviewed by Timothy Hatcher.
3426
3427         The actual implementation at the WebCoreSupport/WebInspectorClient level
3428         is the same as INSPECTOR_SERVER. Give debuggable pages a pageIdentifer.
3429
3430         * Configurations/FeatureDefines.xcconfig:
3431         * Misc/WebKitLogging.h:
3432         Misc.
3433
3434         * WebCoreSupport/WebInspectorClient.h:
3435         (WebInspectorClient::pageId):
3436         (WebInspectorClient::setPageId):
3437         Give WebInspectorClient's a page identifier.
3438
3439         * WebCoreSupport/WebInspectorClient.mm:
3440         (WebInspectorClient::WebInspectorClient):
3441         (WebInspectorClient::inspectorDestroyed):
3442         (WebInspectorClient::sendMessageToFrontend):
3443         (WebInspectorClient::sendMessageToBackend):
3444         (WebInspectorClient::setupRemoteConnection):
3445         (WebInspectorClient::teardownRemoteConnection):
3446         (WebInspectorClient::hasLocalSession):
3447         (WebInspectorClient::canBeRemotelyInspected):
3448         (WebInspectorClient::inspectedWebView):
3449         A WebInspectorClient can be either local or remote. Add handling
3450         for remote connections.
3451
3452         * WebInspector/remote/WebInspectorClientRegistry.h: Added.
3453         * WebInspector/remote/WebInspectorClientRegistry.mm: Added.
3454         (+[WebInspectorClientRegistry sharedRegistry]):
3455         (-[WebInspectorClientRegistry init]):
3456         (-[WebInspectorClientRegistry _getNextAvailablePageId]):
3457         (-[WebInspectorClientRegistry registerClient:]):
3458         (-[WebInspectorClientRegistry unregisterClient:]):
3459         (-[WebInspectorClientRegistry clientForPageId:]):
3460         (-[WebInspectorClientRegistry inspectableWebViews]):
3461         Registry for all potentially debuggable pages. All WebInspectorClient instances.
3462
3463         * WebInspector/remote/WebInspectorRelayDefinitions.h: Added.
3464         Constants (message keys) shared between WebKit and the XPC process.
3465
3466         * WebInspector/remote/WebInspectorServer.h: Added.
3467         * WebInspector/remote/WebInspectorServer.mm: Added.
3468         (-[WebInspectorServer init]):
3469         (-[WebInspectorServer dealloc]):
3470         (-[WebInspectorServer start]):
3471         (-[WebInspectorServer stop]):
3472         (-[WebInspectorServer isEnabled]):
3473         (-[WebInspectorServer xpcConnection]):
3474         (-[WebInspectorServer setupXPCConnectionIfNeeded]):
3475         (-[WebInspectorServer pushListing]):
3476         (-[WebInspectorServer hasActiveDebugSession]):
3477         (-[WebInspectorServer setHasActiveDebugSession:]):
3478         (-[WebInspectorServer xpcConnection:receivedMessage:userInfo:]):
3479         (-[WebInspectorServer xpcConnectionFailed:]):
3480         (-[WebInspectorServer didRegisterClient:]):
3481         (-[WebInspectorServer didUnregisterClient:]):
3482         Singleton to start/stop remote inspection. Handles the connection to the XPC
3483         and hands off connections to the connection controller.
3484
3485         * WebInspector/remote/WebInspectorServerWebViewConnection.h: Added.
3486         * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Added.
3487         (-[WebInspectorServerWebViewConnection initWithController:connectionIdentifier:destination:identifier:]):
3488         (-[WebInspectorServerWebViewConnection setupChannel]):
3489         (-[WebInspectorServerWebViewConnection dealloc]):
3490         (-[WebInspectorServerWebViewConnection connectionIdentifier]):
3491         (-[WebInspectorServerWebViewConnection identifier]):
3492         (-[WebInspectorServerWebViewConnection clearChannel]):
3493         (-[WebInspectorServerWebViewConnection sendMessageToFrontend:]):
3494         (-[WebInspectorServerWebViewConnection sendMessageToBackend:]):
3495         (-[WebInspectorServerWebViewConnection receivedData:]):
3496         (-[WebInspectorServerWebViewConnection receivedDidClose:]):
3497         An individual remote debug session connection.
3498
3499         * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Added.
3500         * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Added.
3501         (-[WebInspectorServerWebViewConnectionController initWithServer:]):
3502         (-[WebInspectorServerWebViewConnectionController dealloc]):
3503         (-[WebInspectorServerWebViewConnectionController closeAllConnections]):
3504         (-[WebInspectorServerWebViewConnectionController _listingForWebView:pageId:registry:]):
3505         (-[WebInspectorServerWebViewConnectionController _pushListing:]):
3506         (-[WebInspectorServerWebViewConnectionController pushListing:]):
3507         (-[WebInspectorServerWebViewConnectionController pushListing]):
3508         (-[WebInspectorServerWebViewConnectionController _receivedSetup:]):
3509         (-[WebInspectorServerWebViewConnectionController _receivedData:]):
3510         (-[WebInspectorServerWebViewConnectionController _receivedDidClose:]):
3511         (-[WebInspectorServerWebViewConnectionController _receivedGetListing:]):
3512         (-[WebInspectorServerWebViewConnectionController _receivedIndicate:]):
3513         (-[WebInspectorServerWebViewConnectionController _receivedConnectionDied:]):
3514         (-[WebInspectorServerWebViewConnectionController receivedMessage:userInfo:]):
3515         (-[WebInspectorServerWebViewConnectionController connectionClosing:]):
3516         (-[WebInspectorServerWebViewConnectionController sendMessageToFrontend:userInfo:]):
3517         ConnectionController:
3518           - Holds all the current ongoing remote debug connections.
3519           - Simplifies multi-threaded work on iOS.
3520           - Dispatches incoming messages from the remote connection.
3521
3522         * WebInspector/remote/WebInspectorRemoteChannel.h: Added.
3523         * WebInspector/remote/WebInspectorRemoteChannel.mm: Added.
3524         (+[WebInspectorRemoteChannel createChannelForPageId:connection:]):
3525         (-[WebInspectorRemoteChannel initWithRemote:local:]):
3526         (-[WebInspectorRemoteChannel closeFromLocalSide]):
3527         (-[WebInspectorRemoteChannel closeFromRemoteSide]):
3528         (-[WebInspectorRemoteChannel sendMessageToFrontend:]):
3529         (-[WebInspectorRemoteChannel sendMessageToBackend:]):
3530         Thin interface between the remote connection and web inspector client.
3531         This simplifies breaking the connection from either side, e.g. the
3532         page closing, or the remote connection disconnecting.
3533
3534         * WebInspector/remote/WebInspectorXPCWrapper.h: Added.
3535         * WebInspector/remote/WebInspectorXPCWrapper.m: Added.
3536         (-[WebInspectorXPCWrapper initWithConnection:]):
3537         (-[WebInspectorXPCWrapper close]):
3538         (-[WebInspectorXPCWrapper dealloc]):
3539         (-[WebInspectorXPCWrapper _deserializeMessage:]):
3540         (-[WebInspectorXPCWrapper _handleEvent:]):
3541         (-[WebInspectorXPCWrapper sendMessage:userInfo:]):
3542         (-[WebInspectorXPCWrapper available]):
3543         * WebKit.exp:
3544         XPC Connection wrapper handling a simple message format.
3545
3546         * WebView/WebViewData.h:
3547         * WebView/WebViewData.mm:
3548         (-[WebViewPrivate init]):
3549         (-[WebViewPrivate dealloc]):
3550         * WebView/WebViewInternal.h:
3551         * WebView/WebViewPrivate.h:
3552         * WebView/WebView.mm:
3553         (-[WebView _commonInitializationWithFrameName:groupName:]):
3554         (+[WebView sharedWebInspectorServer]):
3555         (+[WebView _enableRemoteInspector]):
3556         (+[WebView _disableRemoteInspector]):
3557         (+[WebView _disableAutoStartRemoteInspector]):
3558         (+[WebView _isRemoteInspectorEnabled]):
3559         (+[WebView _hasRemoteInspectorSession]):
3560         (-[WebView canBeRemotelyInspected]):
3561         (-[WebView allowsRemoteInspection]):
3562         (-[WebView setAllowsRemoteInspection:]):
3563         (-[WebView setIndicatingForRemoteInspector:]):
3564         (-[WebView setRemoteInspectorUserInfo:]):
3565         (-[WebView remoteInspectorUserInfo]):
3566         Remote inspector private API.
3567           - Enable / disable globally
3568           - Allow / disallow per webview
3569           - Optionally attach a userInfo dictionary on the WebView that is published with listing.
3570           - Indicate a WebView (implementation to land later)
3571
3572         (-[WebView _didCommitLoadForFrame:]):
3573         * WebCoreSupport/WebFrameLoaderClient.mm:
3574         (WebFrameLoaderClient::dispatchDidReceiveTitle):
3575         Pages changed, pushed page listing.
3576
3577 2013-10-25  Mark Rowe  <mrowe@apple.com>
3578
3579         Fix or disable some deprecation warnings.
3580
3581         Reviewed by Darin Adler.
3582
3583         * Panels/WebAuthenticationPanel.m:
3584         (-[WebAuthenticationPanel cancel:]): On newer OS versions, use the modern API.
3585         (-[WebAuthenticationPanel logIn:]): Ditto.
3586         (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]): Ditto. Translate the
3587         response code in to the form that -sheetDidEnd:responseCode:contextInfo: expects.
3588         * WebView/WebClipView.mm:
3589         (-[WebClipView initWithFrame:]): Disable deprecation warnings since it's not obvious
3590         how to avoid calling -releaseGState here.
3591
3592 2013-10-24  Mark Rowe  <mrowe@apple.com>
3593
3594         Remove references to OS X 10.7 from Xcode configuration settings.
3595
3596         Now that we're not building for OS X 10.7 they're no longer needed.
3597
3598         Reviewed by Anders Carlsson.
3599
3600         * Configurations/Base.xcconfig:
3601         * Configurations/DebugRelease.xcconfig:
3602         * Configurations/FeatureDefines.xcconfig:
3603         * Configurations/Version.xcconfig:
3604
3605 2013-10-24  Mark Rowe  <mrowe@apple.com>
3606
3607         <rdar://problem/15312643> Prepare for the mysterious future.
3608
3609         Reviewed by David Kilzer.
3610
3611         * Configurations/Base.xcconfig:
3612         * Configurations/DebugRelease.xcconfig:
3613         * Configurations/FeatureDefines.xcconfig:
3614         * Configurations/Version.xcconfig:
3615
3616 2013-10-24  Anders Carlsson  <andersca@apple.com>
3617
3618         Stop bringing in the std namespace
3619         https://bugs.webkit.org/show_bug.cgi?id=123273
3620
3621         Reviewed by Andreas Kling.
3622
3623         * WebView/WebFrameView.mm:
3624         (-[WebFrameView _verticalPageScrollDistance]):
3625         (-[WebFrameView _horizontalPageScrollDistance]):
3626         * WebView/WebHTMLView.mm:
3627         (-[WebHTMLView _scaleFactorForPrintOperation:]):
3628         * WebView/WebView.mm:
3629         (+[WebView _setCacheModel:]):
3630         (+[WebView _maxCacheModelInAnyInstance]):
3631         (+[WebView _cacheModelChangedNotification:]):
3632         (+[WebView _preferencesRemovedNotification:]):
3633
3634 2013-10-22  Dean Jackson  <dino@apple.com>
3635
3636         [WebGL] Implement a software rendering option on Mac
3637         https://bugs.webkit.org/show_bug.cgi?id=123177
3638
3639         Reviewed by Tim Horton.
3640
3641         Implement a way to force software OpenGL rendering
3642         for WebGL, via a Setting/Preference.
3643
3644         * WebView/WebPreferenceKeysPrivate.h: New WebKitForceSoftwareWebGLRendering key.
3645         * WebView/WebPreferences.mm:
3646         (+[WebPreferences initialize]):
3647         (-[WebPreferences forceSoftwareWebGLRendering]):
3648         (-[WebPreferences setForceSoftwareWebGLRendering:]):
3649         * WebView/WebPreferencesPrivate.h:
3650         * WebView/WebView.mm:
3651         (-[WebView _preferencesChanged:]):
3652
3653 2013-10-21  Mark Rowe  <mrowe@apple.com>
3654
3655         Add a version of WebKitSystemInterface for Mavericks.
3656
3657         Reviewed by Ryosuke Niwa.
3658
3659         * Configurations/DebugRelease.xcconfig:
3660
3661 2013-10-21  Daniel Bates  <dabates@apple.com>
3662
3663         Remove platform #ifdefs from WebDataSourcePrivate.h
3664         https://bugs.webkit.org/show_bug.cgi?id=123120
3665         <rdar://problem/15275533>
3666
3667         Reviewed by Anders Carlsson.
3668
3669         * WebView/WebDataSource.mm:
3670         (-[WebDataSource _setAllowToBeMemoryMapped]): Define empty implementation when building without
3671         disk image cache enabled.
3672         (-[WebDataSource setDataSourceDelegate:]): Ditto.
3673         (-[WebDataSource dataSourceDelegate]): Return nullptr when building without disk image cache
3674         enabled on iOS.
3675         * WebView/WebDataSourcePrivate.h: Removed platform #ifdefs added in
3676         <http://trac.webkit.org/changeset/156918> (https://bugs.webkit.org/show_bug.cgi?id=121985)
3677
3678 2013-10-20  Mark Lam  <mark.lam@apple.com>
3679
3680         Avoid JSC debugger overhead unless needed.
3681         https://bugs.webkit.org/show_bug.cgi?id=123084.
3682
3683         Reviewed by Geoffrey Garen.
3684
3685         * WebView/WebScriptDebugger.mm:
3686         (WebScriptDebugger::WebScriptDebugger):
3687
3688 2013-10-19  Jer Noble  <jer.noble@apple.com>
3689
3690         Unreviewed roll out of r157695; broke Mac builds.
3691
3692         * Configurations/FeatureDefines.xcconfig:
3693
3694 2013-10-07  Jer Noble  <jer.noble@apple.com>
3695
3696         [MSE] [Mac] Enable MediaSource on the Mac
3697         https://bugs.webkit.org/show_bug.cgi?id=122484
3698
3699         Reviewed by Darin Adler.
3700
3701         Enable ENABLE_MEDIA_SOURCE.
3702
3703         * Configurations/FeatureDefines.xcconfig:
3704
3705 2013-10-19  Andreas Kling  <akling@apple.com>
3706
3707         Attempt to get Lion building.
3708
3709         * WebView/WebDataSource.mm:
3710
3711 2013-10-18  Anders Carlsson  <andersca@apple.com>
3712
3713         Remove spaces between template angle brackets
3714         https://bugs.webkit.org/show_bug.cgi?id=123040
3715
3716         Reviewed by Andreas Kling.
3717
3718         * History/WebHistory.mm:
3719         (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
3720         * History/WebHistoryItem.mm:
3721         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3722         * Plugins/Hosted/NetscapePluginHostProxy.h:
3723         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3724         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3725         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
3726         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
3727         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
3728         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
3729         (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
3730         * Plugins/WebNetscapePluginView.h:
3731         * Plugins/WebNetscapePluginView.mm:
3732         (-[WebNetscapePluginView destroyPlugin]):
3733         * Storage/WebDatabaseManager.mm:
3734         (-[WebDatabaseManager origins]):
3735         * Storage/WebStorageManager.mm:
3736         (-[WebStorageManager origins]):
3737         * WebCoreSupport/WebApplicationCache.mm:
3738         (+[WebApplicationCache originsWithCache]):
3739         * WebCoreSupport/WebEditorClient.h:
3740         * WebCoreSupport/WebEditorClient.mm:
3741         (WebEditorClient::getClientPasteboardDataForRange):
3742         (WebEditorClient::documentFragmentFromAttributedString):
3743         * WebCoreSupport/WebFrameLoaderClient.h:
3744         * WebCoreSupport/WebNotificationClient.h:
3745         * WebCoreSupport/WebNotificationClient.mm:
3746         (WebNotificationClient::show):
3747         (WebNotificationClient::clearNotifications):
3748         * WebView/WebArchive.mm:
3749         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
3750         (-[WebArchive subresources]):
3751         (-[WebArchive subframeArchives]):
3752         * WebView/WebDataSource.mm:
3753         (-[WebDataSource subresources]):
3754         * WebView/WebViewData.h:
3755
3756 2013-10-16  Jochen Eisinger  <jochen@chromium.org>
3757
3758         A page should exit fullscreen mode if it opens a new popup
3759         https://bugs.webkit.org/show_bug.cgi?id=122865
3760
3761         Reviewed by Jer Noble.
3762
3763         If a fullscreen page opens a popup, the popup would be hidden and
3764         therefore invisible to the user. To avoid this, exit fullscreen mode
3765         before opening a new window.
3766
3767         * WebCoreSupport/WebChromeClient.mm:
3768         (WebChromeClient::createWindow):
3769
3770 2013-10-15  Dean Jackson  <dino@apple.com>
3771
3772         Add ENABLE_WEB_ANIMATIONS flag
3773         https://bugs.webkit.org/show_bug.cgi?id=122871
3774
3775         Reviewed by Tim Horton.
3776
3777         Eventually might be http://dev.w3.org/fxtf/web-animations/
3778         but this is just engine-internal work at the moment.
3779
3780         * Configurations/FeatureDefines.xcconfig:
3781
3782 2013-10-15  Andy Estes  <aestes@apple.com>
3783
3784         Expose -[WebPluginPackage bundle] as SPI
3785         https://bugs.webkit.org/show_bug.cgi?id=122814
3786
3787         Reviewed by Anders Carlsson.
3788
3789         * Plugins/WebPluginPackage.mm:
3790         (-[WebPluginPackage bundle]): Defined.
3791         * Plugins/WebPluginPackagePrivate.h: Declared bundle as a method in a
3792         category on NSObject.
3793
3794 2013-10-12  Darin Adler  <darin@apple.com>
3795
3796         Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
3797         https://bugs.webkit.org/show_bug.cgi?id=122713
3798
3799         Reviewed by Sam Weinig.
3800
3801         * WebView/WebHTMLRepresentation.mm:
3802         (-[WebHTMLRepresentation elementWithName:inForm:]): Use asHTMLElement.
3803         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
3804
3805 2013-10-12  Adam Roben  <aroben@webkit.org>
3806
3807         WebViews inside OS X screen savers have large caches, but should not
3808         https://bugs.webkit.org/show_bug.cgi?id=122604
3809
3810         We use WebCacheModelDocumentViewer by default for apps linked against
3811         modern WebKit, and WebCacheModelDocumentBrowser for apps linked
3812         against legacy WebKit. ScreenSaverEngine.app doesn't link against
3813         WebKit at all, and thus falls into the legacy case by accident because
3814         NSVersionOfLinkTimeLibrary("WebKit") returns -1.
3815
3816         But WebViews inside screen savers are almost certainly not being used
3817         as browsers, so this large-ish cache specified by
3818         WebCacheModelDocumentBrowser is wasteful. This is likely true for all
3819         apps that don't directly link against WebKit, so now we use
3820         WebCacheModelDocumentViewer by default for those apps.
3821
3822         Reviewed by Darin Adler.
3823
3824         * WebView/WebPreferences.mm:
3825         (cacheModelForMainBundle): Use WebCacheModelDocumentViewer by default
3826         for apps that don't link against WebKit directly. Also converted to
3827         use @autoreleasepool {} and early returns while I was in here.
3828
3829 2013-10-12  Alexey Proskuryakov  <ap@apple.com>
3830
3831         Add a feature define for SubtleCrypto
3832         https://bugs.webkit.org/show_bug.cgi?id=122683
3833
3834         Reviewed by Anders Carlsson.
3835
3836         * Configurations/FeatureDefines.xcconfig:
3837
3838 2013-10-12  Darin Adler  <darin@apple.com>
3839
3840         Use unique_ptr instead of delete in a few places
3841         https://bugs.webkit.org/show_bug.cgi?id=122639
3842
3843         Reviewed by Anders Carlsson.
3844
3845         * History/WebHistory.mm:
3846         (-[WebHistoryPrivate init]): Use make_unique.
3847         (-[WebHistoryPrivate dealloc]): Don't delete.
3848         (-[WebHistoryPrivate finalize]): Don't delete.
3849         (-[WebHistoryPrivate data]): Use get.
3850
3851         * WebCoreSupport/WebFrameNetworkingContext.mm:
3852         (privateSession): Use NeverDestroyed here instead of a raw pointer.
3853         (WebFrameNetworkingContext::ensurePrivateBrowsingSession): Use the
3854         new function instead of direct global variable access.
3855         (WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
3856         (WebFrameNetworkingContext::storageSession): Ditto.
3857
3858         * WebView/WebFrame.mm:
3859         (-[WebFramePrivate dealloc]): Don't delete.
3860         (-[WebFramePrivate finalize]): Don't delete.
3861         (-[WebFrame _attachScriptDebugger]): Use make_unique.
3862         (-[WebFrame _detachScriptDebugger]): Don't delete.
3863         * WebView/WebFrameInternal.h: Use unique_ptr.
3864
3865 2013-10-11  Timothy Hatcher  <timothy@apple.com>
3866
3867         Remove preference support for picking the old Web Inspector.
3868         https://bugs.webkit.org/show_bug.cgi?id=122655
3869
3870         Reviewed by Alexey Proskuryakov.
3871
3872         * WebCoreSupport/WebInspectorClient.mm:
3873         (WebInspectorFrontendClient::localizedStringsURL):
3874         (-[WebInspectorWindowController inspectorPagePath]):
3875
3876 2013-10-10  Simon Fraser  <simon.fraser@apple.com>
3877
3878         Always force layout before flushing compositing layers
3879         https://bugs.webkit.org/show_bug.cgi?id=122626
3880
3881         Reviewed by Tim Horton.
3882         
3883         [m_webView _flushCompositingChanges] only actually flushes compositing
3884         layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
3885         returns in this case). In this situation, flushLayers() does actually try
3886         to force a layout, but on some platforms it's possible for something else
3887         to dirty layout before the runloop observer fires again. This can result
3888         in flushLayers() never actually managing to flush, which stalls visual
3889         updates.
3890         
3891         Fix by always calling -viewWillDraw (which updates layout) before flushing
3892         layers. This now matches WebKit2 behavior.
3893
3894         * WebView/WebView.mm:
3895         (LayerFlushController::flushLayers):
3896
3897 2013-10-10  Andy Estes  <aestes@apple.com>
3898
3899         Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones
3900         https://bugs.webkit.org/show_bug.cgi?id=122608
3901
3902         Reviewed by Dan Bernstein.
3903
3904         Based on patches by Dan Bernstein.
3905
3906         * WebView/WebView.mm:
3907         (-[WebView _setFontFallbackPrefersPictographs:]): Called
3908         WebCore::Settings::setFontFallbackPrefersPictographs().
3909         * WebView/WebViewPrivate.h:
3910
3911 2013-10-10  Mark Rowe  <mrowe@apple.com>
3912
3913         <rdar://problem/13341666> WebKit should always build against an SDK.
3914
3915         Have all projects default to building against the OS X Internal SDK for the Production
3916         configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
3917         to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
3918
3919         Reviewed by Dan Bernstein.
3920
3921         * Configurations/Base.xcconfig:
3922         * Configurations/DebugRelease.xcconfig:
3923
3924 2013-10-08  Darin Adler  <darin@apple.com>
3925
3926         WebNetscapePluginView should no longer use deleteAllValues
3927         https://bugs.webkit.org/show_bug.cgi?id=122495
3928
3929         Reviewed by Anders Carlsson.
3930
3931         * Plugins/WebNetscapePluginView.h: Use unique_ptr for both the pointer to
3932         the timers hash table, and for the values in the hash table.
3933
3934         * Plugins/WebNetscapePluginView.mm:
3935         (-[WebNetscapePluginView stopTimers]): Rewrote loop so it works with unique_ptr.
3936         (-[WebNetscapePluginView startTimers]): Ditto.
3937         (-[WebNetscapePluginView fini]): Removed unneeded code to delete timers.
3938         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]): Make
3939         the timers hash table with make-unique. Fixed the loop that chooses the timer
3940         ID so it won't ever try to use a deleted value, although that never happens
3941         in practice. Use HashMap::add instead of using both contains and set.
3942         Rearranged code so we don't need to make a raw pointer for the timer.
3943         (-[WebNetscapePluginView unscheduleTimer:]): Use remove instead of take/delete,
3944         since remove takes care of the deletion automatically since we are using the
3945         unique_ptr class.
3946
3947 2013-10-08  Darin Adler  <darin@apple.com>
3948
3949         Eliminate use of deleteAllValues in ProxyInstance
3950         https://bugs.webkit.org/show_bug.cgi?id=122499
3951
3952         Reviewed by Anders Carlsson.
3953
3954         * Plugins/Hosted/ProxyInstance.h: Use unique_ptr for map values in m_fields and m_methods.
3955
3956         * Plugins/Hosted/ProxyInstance.mm:
3957         (WebKit::ProxyInstance::~ProxyInstance): Removed calls to deleteAllValues.
3958         (WebKit::ProxyInstance::methodNamed): Use make_unique and get to deal with map entries
3959         that are unique_ptr. Also fixed a bug where this would do an expensive no-op if the map
3960         already had an entry with a null in it. We would call the plug-in, but eventually
3961         isNewEntry would be false so we would return null.
3962         (WebKit::ProxyInstance::fieldNamed): Use make_unique and get to deal with map entries
3963         that are unique_ptr.
3964
3965 2013-10-08  Darin Adler  <darin@apple.com>
3966
3967         Change NetscapePluginInstanceProxy::m_replies to use unique_ptr instead of deleteAllValues
3968         https://bugs.webkit.org/show_bug.cgi?id=122492
3969
3970         Reviewed by Andreas Kling.
3971
3972         * Plugins/Hosted/NetscapePluginHostManager.mm:
3973         (WebKit::NetscapePluginHostManager::instantiatePlugin): Use auto so this works with
3974         unique_ptr instead of auto_ptr.
3975         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3976         (WKPCGetScriptableNPObjectReply): Use make_unique instead of using new directly.
3977         (WKPCBooleanReply): Ditto.
3978         (WKPCBooleanAndDataReply): Ditto.
3979         (WKPCInstantiatePluginReply): Ditto.
3980         * Plugins/Hosted/NetscapePluginInstanceProxy.h: Changed m_replies to map to unique_ptr
3981         instead of to a raw pointer.
3982         (WebKit::NetscapePluginInstanceProxy::setCurrentReply): Changed to take a unique_ptr
3983         instead of a raw pointer since this takes ownership of the pointer.
3984         (WebKit::NetscapePluginInstanceProxy::waitForReply): Changed to return a unique_ptr
3985         instead of a auto_ptr because that's better. Use unique_ptr inside the function
3986         too to avoid the need for an explicit delete.
3987         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3988         (WebKit::NetscapePluginInstanceProxy::~NetscapePluginInstanceProxy): Removed the call to
3989         deleteAllValues.
3990         (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Removed unneeded initialization
3991         of a local variable that was already set in all code paths.
3992         (WebKit::NetscapePluginInstanceProxy::wheelEvent): Use auto so this works with unique_ptr
3993         instead of auto_ptr.
3994         (WebKit::NetscapePluginInstanceProxy::print): Ditto.
3995         (WebKit::NetscapePluginInstanceProxy::snapshot): Ditto. Ditto.
3996         (WebKit::NetscapePluginInstanceProxy::processRequestsAndWaitForReply): Changed to return
3997         a unique_ptr. Also removed an unneeded assertion.
3998         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): Use auto so this works
3999         with unique_ptr instead of auto_ptr.
4000
4001         * Plugins/Hosted/ProxyInstance.h: Changed return type of waitForReply to unique_ptr.
4002
4003         * Plugins/Hosted/ProxyInstance.mm:
4004         (WebKit::ProxyInstance::invoke): Use auto so this works with unique_ptr instead of auto_ptr.
4005         (WebKit::ProxyInstance::supportsInvokeDefaultMethod): Ditto.
4006         (WebKit::ProxyInstance::supportsConstruct): Ditto.
4007         (WebKit::ProxyInstance::getPropertyNames): Ditto.
4008         (WebKit::ProxyInstance::methodNamed): Ditto.
4009         (WebKit::ProxyInstance::fieldNamed): Ditto.
4010         (WebKit::ProxyInstance::fieldValue): Ditto.
4011         (WebKit::ProxyInstance::setFieldValue): Ditto.
4012
4013 2013-10-07  Sam Weinig  <sam@webkit.org>
4014
4015         CTTE: Use references in and around DragController
4016         https://bugs.webkit.org/show_bug.cgi?id=122427
4017
4018         Reviewed by Andreas Kling.
4019
4020         * WebCoreSupport/WebDragClient.h:
4021         * WebCoreSupport/WebDragClient.mm:
4022         (WebDragClient::actionMaskForDrag):
4023         (WebDragClient::willPerformDragDestinationAction):
4024         (WebDragClient::willPerformDragSourceAction):
4025         (WebDragClient::startDrag):
4026         (WebDragClient::declareAndWriteDragImage):
4027         * WebView/WebFrame.mm:
4028         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
4029         * WebView/WebHTMLView.mm:
4030         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
4031         * WebView/WebView.mm:
4032         (-[WebView draggingEntered:]):
4033         (-[WebView draggingUpdated:]):
4034         (-[WebView draggingExited:]):
4035         (-[WebView performDragOperation:]):
4036
4037 2013-10-05  Sam Weinig  <sam@webkit.org>
4038
4039         CTTE: Thread references through markup.h
4040         https://bugs.webkit.org/show_bug.cgi?id=122403
4041
4042         Reviewed by Darin Adler and Andreas Kling.
4043
4044         * DOM/WebDOMOperations.mm:
4045         (-[DOMNode markupString]):
4046         (-[DOMRange markupString]):
4047         * WebView/WebFrame.mm:
4048         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
4049         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
4050
4051 2013-10-05  Sam Weinig  <sam@webkit.org>
4052
4053         CTTE: Pass DocumentWriter around as a reference
4054         https://bugs.webkit.org/show_bug.cgi?id=122396
4055
4056         Reviewed by Andreas Kling.
4057
4058         * WebView/WebFrame.mm:
4059         (-[WebFrame _canProvideDocumentSource]):
4060
4061 2013-10-04  Alexey Proskuryakov  <ap@apple.com>
4062
4063         Don't preflight spell checker when calling -setContinuousSpellCheckingEnabled repeatedly
4064         https://bugs.webkit.org/show_bug.cgi?id=122329
4065
4066         Reviewed by Darin Adler.
4067
4068         * WebView/WebView.mm: (-[WebView setContinuousSpellCheckingEnabled:]): Don't do any
4069         work if preference didn't change (continuousSpellCheckingEnabled is a static that
4070         starts with false).
4071
4072 2013-10-04  Anders Carlsson  <andersca@apple.com>
4073
4074         FramePolicyFunction should be an std::function
4075         https://bugs.webkit.org/show_bug.cgi?id=122362
4076
4077         Reviewed by Darin Adler.
4078
4079         * WebCoreSupport/WebFrameLoaderClient.h:
4080         * WebCoreSupport/WebFrameLoaderClient.mm:
4081         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
4082         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
4083         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
4084         (WebFrameLoaderClient::dispatchWillSubmitForm):
4085
4086 2013-10-04  Mark Lam  <mark.lam@apple.com>
4087
4088         Change ScriptDebugServer to use DebuggerCallFrame instead of JavaScriptCallFrame.
4089         https://bugs.webkit.org/show_bug.cgi?id=121969.
4090
4091         Reviewed by Geoffrey Garen.
4092
4093         1. Make JavaScriptCallFrame a thin shell around the DebuggerCallFrame.
4094            DebuggerCallFrame now tracks whether it is valid instead of needing
4095            JavaScriptCallFrame do it.
4096         2. ScriptDebugServer now only instantiates an DebuggerCallFrame when needed
4097            just before it pauses and calls back to its client, and then invalidates
4098            it immediately when the callback returns. Every subsequent callback to
4099            the client will use a new instance of the DebuggerCallFrame.
4100         3. Similarly, ScriptDebugServer now only creates a JavaScriptCallFrame when
4101            it "pauses".
4102         4. DebuggerCallFrame only creates its caller DebuggerCallFrame when
4103            it is needed i.e. when the client calls callerFrame(). Similarly,
4104            JavaScriptCallFrame only creates its caller when it's requested.
4105         5. DebuggerCallFrame's line() and column() now returns a base-zero int.
4106         6. WebScriptDebugDelegate now only caches the functionName of the frame
4107            instead of the entire DebuggerCallFrame because that is all that is
4108            needed.
4109         7. Also removed evaluateInGlobalCallFrame() which is not used anywhere.
4110
4111         * WebView/WebScriptDebugDelegate.mm:
4112         (-[WebScriptCallFramePrivate dealloc]):
4113         (-[WebScriptCallFrame _initWithGlobalObject:functionName:exceptionValue:JSC::]):
4114         (-[WebScriptCallFrame functionName]):
4115         (-[WebScriptCallFrame exception]):
4116         * WebView/WebScriptDebugger.mm:
4117         (WebScriptDebugger::exception):
4118
4119 2013-10-04  Anders Carlsson  <andersca@apple.com>
4120
4121         Remove some unneeded code from WidgetMac
4122         https://bugs.webkit.org/show_bug.cgi?id=122355
4123
4124         Reviewed by Dan Bernstein.
4125
4126         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.
4127
4128         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
4129         * Plugins/WebBaseNetscapePluginView.h:
4130         * Plugins/WebBaseNetscapePluginView.mm:
4131
4132 2013-10-04  Daniel Bates  <dabates@apple.com>
4133
4134         [iOS] Upstream disk image cache
4135         https://bugs.webkit.org/show_bug.cgi?id=121985
4136
4137         Reviewed by Joseph Pecoraro.
4138
4139         * Misc/WebCache.mm:
4140         (+[WebCache statistics]):
4141         * WebView/WebDataSource.mm:
4142         (BufferMemoryMapped): Added.
4143         (-[WebDataSource _setAllowToBeMemoryMapped]): Added.
4144         (-[WebDataSource setDataSourceDelegate:]): Added.
4145         (-[WebDataSource dataSourceDelegate]): Added.
4146         (-[WebDataSource dealloc]):
4147         * WebView/WebDataSourcePrivate.h: Declared private delegate
4148         protocol, WebDataSourcePrivateDelegate.
4149         * WebView/WebPreferenceKeysPrivate.h:
4150         * WebView/WebPreferences.mm:
4151         (+[WebPreferences initialize]):
4152         (-[WebPreferences diskImageCacheEnabled]): Added.
4153         (-[WebPreferences setDiskImageCacheEnabled:]): Added.
4154         (-[WebPreferences diskImageCacheMinimumImageSize]): Added.
4155         (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Added.
4156         (-[WebPreferences diskImageCacheMaximumCacheSize]): Added.
4157         (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Added.
4158         (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Added.
4159         (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Added.
4160         * WebView/WebView.mm:
4161         (-[WebView _commonInitializationWithFrameName:groupName:]):
4162         (-[WebView _preferencesChanged:]):
4163
4164 2013-10-04  Anders Carlsson  <andersca@apple.com>
4165
4166         Remove WebAssertions.h
4167         https://bugs.webkit.org/show_bug.cgi?id=122328
4168
4169         Reviewed by Jessie Berlin.
4170
4171         * Misc/WebAssertions.h: Removed.
4172
4173 2013-10-03  Anders Carlsson  <andersca@apple.com>
4174
4175         Remove WebNSNotificationCenterExtras
4176         https://bugs.webkit.org/show_bug.cgi?id=122316
4177
4178         Reviewed by Dan Bernstein.
4179
4180         Use dispatch_async to ensure that notifications are posted on the main thread.
4181
4182         * Misc/WebIconDatabase.mm:
4183         (-[WebIconDatabase _sendNotificationForURL:]):
4184         (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
4185         * Misc/WebNSNotificationCenterExtras.h: Removed.
4186         * Misc/WebNSNotificationCenterExtras.m: Removed.
4187