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