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