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