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