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