[Win] Fix build break after r232815 (SupportedPluginIdentifier)
[WebKit-https.git] / Source / WebKitLegacy / win / ChangeLog
1 2018-06-14  Basuke Suzuki  <Basuke.Suzuki@sony.com>
2
3         [Win] Fix build break after r232815 (SupportedPluginIdentifier)
4         https://bugs.webkit.org/show_bug.cgi?id=186623
5
6         Reviewed by Youenn Fablet.
7
8         * WebCoreSupport/WebPluginInfoProvider.cpp:
9         (WebPluginInfoProvider::pluginInfo):
10         (WebPluginInfoProvider::webVisiblePluginInfo):
11         * WebCoreSupport/WebPluginInfoProvider.h:
12
13 2018-06-13  Chris Dumez  <cdumez@apple.com>
14
15         PSON: http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-top-frame-redirect-collusion.html ASSERTS with process swap enabled
16         https://bugs.webkit.org/show_bug.cgi?id=186545
17
18         Reviewed by Brady Eidson.
19
20         Update client delegate now that parameter type has changed.
21
22         * WebCoreSupport/WebFrameLoaderClient.cpp:
23         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
24         * WebCoreSupport/WebFrameLoaderClient.h:
25
26 2018-06-11  Chris Dumez  <cdumez@apple.com>
27
28         http/tests/security/cors-post-redirect-307.html fails with PSON enabled
29         https://bugs.webkit.org/show_bug.cgi?id=186441
30
31         Reviewed by Brady Eidson.
32
33         Rename existing flag to something a bit more generic, now that it is used for
34         more things than bypassing the navigation policy check.
35
36         * WebView.cpp:
37         (WebView::goToBackForwardItem):
38         (WebView::loadBackForwardListFromOtherView):
39
40 2018-06-04  Chris Dumez  <cdumez@apple.com>
41
42         Rename "Cross-Origin-Options" HTTP header to "Cross-Origin-Window-Policy"
43         https://bugs.webkit.org/show_bug.cgi?id=186287
44         <rdar://problem/40783352>
45
46         Reviewed by Youenn Fablet.
47
48         * Interfaces/IWebPreferencesPrivate.idl:
49         * WebPreferenceKeysPrivate.h:
50         * WebPreferences.cpp:
51         (WebPreferences::initializeDefaultSettings):
52         (WebPreferences::crossOriginWindowPolicySupportEnabled):
53         (WebPreferences::setCrossOriginWindowPolicySupportEnabled):
54         * WebPreferences.h:
55         * WebView.cpp:
56         (WebView::notifyPreferencesChanged):
57
58 2018-05-30  Yusuke Suzuki  <utatane.tea@gmail.com>
59
60         [JSC] Pass VM& parameter as much as possible
61         https://bugs.webkit.org/show_bug.cgi?id=186085
62
63         Reviewed by Saam Barati.
64
65         * Plugins/PluginPackage.cpp:
66         (WebCore::NPN_Invoke):
67
68 2018-05-30  Fujii Hironori  <Hironori.Fujii@sony.com>
69
70         REGRESSION(r232316) [Win] error C2039: 'event': is not a member of 'WebCore::NavigationAction'
71         https://bugs.webkit.org/show_bug.cgi?id=186125
72
73         Unreviewed build fix
74
75         * WebActionPropertyBag.cpp:
76         (WebActionPropertyBag::Read):
77         (findMouseEvent): Deleted.
78
79 2018-05-27  Fujii Hironori  <Hironori.Fujii@sony.com>
80
81         REGRESSION(r232198) [WinCairo] cannot convert from 'WTF::StringView' to 'const WTF::String'
82         https://bugs.webkit.org/show_bug.cgi?id=186027
83
84         Unreviewed build fix
85
86         * WebMutableURLRequest.cpp:
87         (WebMutableURLRequest::setAllowsAnyHTTPSCertificate):
88         (WebMutableURLRequest::setClientCertificate):
89
90 2018-05-25  Chris Dumez  <cdumez@apple.com>
91
92         Minor ApplicationCacheStorage clean up
93         https://bugs.webkit.org/show_bug.cgi?id=185984
94
95         Reviewed by Youenn Fablet.
96
97         * WebApplicationCache.cpp:
98         (WebApplicationCache::originsWithCache):
99
100 2018-05-24  Chris Dumez  <cdumez@apple.com>
101
102         Reduce copying of FontCascadeDescription objects by moving them around
103         https://bugs.webkit.org/show_bug.cgi?id=185963
104
105         Reviewed by Simon Fraser.
106
107         Reduce copying of FontCascadeDescription objects by moving them around when possible.
108
109         * FullscreenVideoController.cpp:
110         (FullscreenVideoController::draw):
111
112 2018-05-15  Antoine Quint  <graouts@apple.com>
113
114         [Web Animations] Expose Web Animations CSS integration as an experimental feature
115         https://bugs.webkit.org/show_bug.cgi?id=185647
116
117         Reviewed by Dean Jackson.
118
119         Rename the Web Animations CSS integration flag.
120
121         * Interfaces/IWebPreferencesPrivate.idl:
122         * WebPreferenceKeysPrivate.h:
123         * WebPreferences.cpp:
124         (WebPreferences::initializeDefaultSettings):
125         (WebPreferences::webAnimationsCSSIntegrationEnabled):
126         (WebPreferences::setWebAnimationsCSSIntegrationEnabled):
127         (WebPreferences::cssAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled): Deleted.
128         (WebPreferences::setCSSAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled): Deleted.
129         * WebPreferences.h:
130         * WebView.cpp:
131         (WebView::notifyPreferencesChanged):
132
133 2018-05-10  Fujii Hironori  <Hironori.Fujii@sony.com>
134
135         REGRESSION(r231622) [Win] Crashes for null dereference of prefsPrivate in WebView::notifyPreferencesChanged
136         https://bugs.webkit.org/show_bug.cgi?id=185505
137
138         Unreviewed serious crash fix
139
140         Windows port crashes soon since Bug 184996.
141
142         * WebPreferences.cpp:
143         (WebPreferences::QueryInterface): Added IID_IWebPreferencesPrivate7.
144         * WebPreferences.h: Inherit IWebPreferencesPrivate7 instead of IWebPreferencesPrivate6.
145
146 2018-05-07  Daniel Bates  <dabates@apple.com>
147
148         Substitute CrossOriginPreflightResultCache::clear() for CrossOriginPreflightResultCache::empty()
149         https://bugs.webkit.org/show_bug.cgi?id=185170
150
151         Reviewed by Per Arne Vollan.
152
153         * WebCache.cpp:
154         (WebCache::empty):
155
156 2018-04-27  Chris Dumez  <cdumez@apple.com>
157
158         Use WindowProxy instead of DOMWindow in our IDL
159         https://bugs.webkit.org/show_bug.cgi?id=185022
160
161         Reviewed by Sam Weinig.
162
163         * DOMCoreClasses.cpp:
164         (DOMDocument::getComputedStyle):
165
166 2018-04-23  Daniel Bates  <dabates@apple.com>
167
168         Implement Same-Site cookies
169         https://bugs.webkit.org/show_bug.cgi?id=159464
170         <rdar://problem/27196358>
171
172         Reviewed by Brent Fulgham.
173
174         Pass the Same-Site info through the strategy.
175
176         * WebCoreSupport/WebPlatformStrategies.cpp:
177         (WebPlatformStrategies::cookiesForDOM):
178         (WebPlatformStrategies::setCookiesFromDOM):
179         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
180         (WebPlatformStrategies::getRawCookies):
181         * WebCoreSupport/WebPlatformStrategies.h:
182
183 2018-04-23  Daniel Bates  <dabates@apple.com>
184
185         Implement Same-Site cookies
186         https://bugs.webkit.org/show_bug.cgi?id=159464
187         <rdar://problem/27196358>
188
189         Reviewed by Brent Fulgham.
190
191         Pass the Same-Site info through the strategy.
192
193         * WebCoreSupport/WebPlatformStrategies.cpp:
194         (WebPlatformStrategies::cookiesForDOM):
195         (WebPlatformStrategies::setCookiesFromDOM):
196         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
197         (WebPlatformStrategies::getRawCookies):
198         * WebCoreSupport/WebPlatformStrategies.h:
199
200 2018-04-20  Youenn Fablet  <youenn@apple.com>
201
202         Make PluginData cache its web visible plugins
203         https://bugs.webkit.org/show_bug.cgi?id=184421
204
205         Reviewed by Chris Dumez.
206
207         * WebCoreSupport/WebPluginInfoProvider.cpp:
208         (WebPluginInfoProvider::pluginInfo):
209         (WebPluginInfoProvider::webVisiblePluginInfo):
210         * WebCoreSupport/WebPluginInfoProvider.h:
211
212 2018-04-19  Chris Dumez  <cdumez@apple.com>
213
214         Rename JSDOMWindowProxy to JSWindowProxy
215         https://bugs.webkit.org/show_bug.cgi?id=184797
216
217         Reviewed by Sam Weinig.
218
219         Rename JSDOMWindowProxy to JSWindowProxy for consistency with WindowProxy.
220
221         * WebFrame.cpp:
222         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
223
224 2018-04-17  Jonathan Bedard  <jbedard@apple.com>
225
226         Unreviewed rollout of r230632. Regression in memory usage.
227
228         That bug tracked in https://bugs.webkit.org/show_bug.cgi?id=184569.
229
230         * WebPreferences.cpp:
231         (WebPreferences::initializeDefaultSettings):
232
233 2018-04-17  Chris Dumez  <cdumez@apple.com>
234
235         Unreviewed attempt to fix the Windows build after r230721
236
237         * WebCoreSupport/WebFrameLoaderClient.cpp:
238         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
239
240 2018-04-17  Chris Dumez  <cdumez@apple.com>
241
242         REGRESSION (r229831): CMD-clicking an iCloud web app link unexpectedly opens that link in a new tab and the current tab
243         https://bugs.webkit.org/show_bug.cgi?id=184678
244         <rdar://problem/39422122>
245
246         Reviewed by Alex Christensen.
247
248         Add new parameter to dispatchDecidePolicyForNavigationAction.
249
250         * WebCoreSupport/WebFrameLoaderClient.cpp:
251         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
252         * WebCoreSupport/WebFrameLoaderClient.h:
253
254 2018-04-12  Antoine Quint  <graouts@apple.com>
255
256         [Web Animations] Turn CSS Animations and CSS Transitions as Web Animations on by default
257         https://bugs.webkit.org/show_bug.cgi?id=184569
258         <rdar://problem/38671301>
259
260         Reviewed by Jon Lee.
261
262         Make sure Web Animations and CSS Animations and CSS Transitions are enabled by default on Windows.
263
264         * WebPreferences.cpp:
265
266 2018-04-05  Yusuke Suzuki  <utatane.tea@gmail.com>
267
268         [WTF] Remove StaticLock
269         https://bugs.webkit.org/show_bug.cgi?id=184332
270
271         Reviewed by Mark Lam.
272
273         * WebKitQuartzCoreAdditions/CAView.cpp:
274         (WKQCA::CAView::releaseAllD3DResources):
275         * WebLocalizableStrings.cpp:
276
277 2018-04-03  Chris Dumez  <cdumez@apple.com>
278
279         Drop MainFrame class
280         https://bugs.webkit.org/show_bug.cgi?id=184191
281
282         Reviewed by Darin Adler.
283
284         Drop MainFrame class and move contents into Page / Frame since there is a 1:1
285         relationship between the Page and the MainFrame.
286
287         This is ground work for introducing LocalFrame / RemoteFrame concepts.
288
289         * WebCoreSupport/AcceleratedCompositingContext.cpp:
290         * WebCoreSupport/WebContextMenuClient.cpp:
291         * WebCoreSupport/WebDragClient.cpp:
292         * WebDropSource.cpp:
293         * WebFrame.cpp:
294         * WebView.cpp:
295
296 2018-03-26  Chris Dumez  <cdumez@apple.com>
297
298         Use SecurityOriginData more consistently in Service Worker code
299         https://bugs.webkit.org/show_bug.cgi?id=183969
300
301         Reviewed by Darin Adler.
302
303         Use SecurityOrigin::data() instead of SecurityOriginData::fromSecurityOrigin().
304
305         * WebDatabaseManager.cpp:
306         (WebDatabaseManager::databasesWithOrigin):
307         (WebDatabaseManager::deleteOrigin):
308         (WebDatabaseManager::deleteDatabase):
309         (WebDatabaseManager::setQuota):
310         * WebSecurityOrigin.cpp:
311         (WebSecurityOrigin::usage):
312         (WebSecurityOrigin::quota):
313         (WebSecurityOrigin::setQuota):
314
315 2018-03-26  Brent Fulgham  <bfulgham@apple.com>
316
317         Warn against cookie access in the WebContent process using ProcessPrivilege assertions
318         https://bugs.webkit.org/show_bug.cgi?id=183911
319         <rdar://problem/38762306>
320
321         Reviewed by Youenn Fablet.
322
323         Initialize the ProcessPrivilege and Cookie API access levels for single-process use.
324
325         * WebView.cpp:
326         (WebView::WebView):
327
328 2018-03-25  Commit Queue  <commit-queue@webkit.org>
329
330         Unreviewed, rolling out r229954.
331         https://bugs.webkit.org/show_bug.cgi?id=184000
332
333         Caused many layout tests to crash on Apple High Sierra,
334         Sierra, iOS Simulator and GTK Linux Debug test bots (Requested
335         by dydz on #webkit).
336
337         Reverted changeset:
338
339         "Use SecurityOriginData more consistently in Service Worker
340         code"
341         https://bugs.webkit.org/show_bug.cgi?id=183969
342         https://trac.webkit.org/changeset/229954
343
344 2018-03-24  Chris Dumez  <cdumez@apple.com>
345
346         Use SecurityOriginData more consistently in Service Worker code
347         https://bugs.webkit.org/show_bug.cgi?id=183969
348
349         Reviewed by Darin Adler.
350
351         Use SecurityOrigin::data() instead of SecurityOriginData::fromSecurityOrigin().
352
353         * WebDatabaseManager.cpp:
354         (WebDatabaseManager::databasesWithOrigin):
355         (WebDatabaseManager::deleteOrigin):
356         (WebDatabaseManager::deleteDatabase):
357         (WebDatabaseManager::setQuota):
358         * WebSecurityOrigin.cpp:
359         (WebSecurityOrigin::usage):
360         (WebSecurityOrigin::quota):
361         (WebSecurityOrigin::setQuota):
362
363 2018-03-23  Chris Dumez  <cdumez@apple.com>
364
365         Unreviewed attempt to fix Windows build after r229926.
366
367         * WebView.cpp:
368
369 2018-03-23  Brady Eidson  <beidson@apple.com>
370
371         Go to back/forward list items after a process-swapped navigation.
372         <rdar://problem/38690544> and https://bugs.webkit.org/show_bug.cgi?id=183920
373
374         Reviewed by Andy Estes.
375
376         * WebView.cpp:
377         (WebView::goToBackForwardItem):
378         (WebView::loadBackForwardListFromOtherView):
379
380 2018-03-23  Miguel Gomez  <magomez@igalia.com>
381
382         [GTK][WPE] Avoid software color conversion inside BitmapTextureGL
383         https://bugs.webkit.org/show_bug.cgi?id=183892
384
385         Remove the UpdateContentsFlag parameter as it's not used anymore.
386
387         Reviewed by Žan Doberšek.
388
389         * WebCoreSupport/AcceleratedCompositingContext.cpp:
390         (AcceleratedCompositingContext::acceleratedCompositingAvailable):
391
392 2018-03-15  Yousuke Kimoto  <yousuke.kimoto@sony.com>
393
394         [WinCairo] Fix build errors when ENABLE_NETSCAPE_PLUGIN_API is turned off
395         https://bugs.webkit.org/show_bug.cgi?id=183335
396
397         Reviewed by Alex Christensen.
398
399         * Plugins/PluginDatabaseWin.cpp:
400         * Plugins/PluginMessageThrottlerWin.cpp:
401         (WebCore::PluginMessageThrottlerWin::processQueuedMessage):
402         * Plugins/PluginPackageWin.cpp:
403         (WebCore::PluginPackage::load):
404         * Plugins/PluginView.h:
405         * Plugins/PluginViewWin.cpp:
406         * Plugins/npapi.cpp:
407         * WebCoreSupport/WebFrameLoaderClient.cpp:
408         (WebFrameLoaderClient::createPlugin):
409         (WebFrameLoaderClient::createJavaAppletWidget):
410         * WebView.cpp:
411         (WebView::WebViewWndProc):
412
413 2018-03-13  Ross Kirsling  <ross.kirsling@sony.com>
414
415         [Win] Layout Test fast/html/menuitem-element.html is failing.
416         https://bugs.webkit.org/show_bug.cgi?id=179299
417
418         Reviewed by Per Arne Vollan.
419
420         * Interfaces/IWebPreferencesPrivate.idl:
421         * WebPreferenceKeysPrivate.h:
422         * WebPreferences.cpp:
423         (WebPreferences::menuItemElementEnabled):
424         (WebPreferences::setMenuItemElementEnabled):
425         * WebPreferences.h:
426         * WebView.cpp:
427         (WebView::notifyPreferencesChanged):
428         Add private web preference "menuItemElementEnabled".
429
430 2018-03-12  Antoine Quint  <graouts@apple.com>
431
432         [Web Animations] Implement CSS Animations and CSS Transitions as Web Animations
433         https://bugs.webkit.org/show_bug.cgi?id=183504
434         <rdar://problem/38372965>
435
436         Reviewed by Dean Jackson and Jon Lee.
437
438         Add the missing WebKitLegacy support the cssAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled flag
439         which is required for the matching <!-- webkit-test-runner --> flag to work in DumpRenderTree.
440
441         * Interfaces/IWebPreferencesPrivate.idl:
442         * WebPreferences.cpp:
443         (WebPreferences::cssAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled):
444         (WebPreferences::setCSSAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled):
445         * WebPreferenceKeysPrivate.h
446         * WebPreferences.h:
447         * WebView.cpp:
448         (WebView::notifyPreferencesChanged):
449
450 2018-03-08  Yusuke Suzuki  <utatane.tea@gmail.com>
451
452         [JSC] Add inherits<T>(VM&) leveraging JSCast fast path
453         https://bugs.webkit.org/show_bug.cgi?id=183429
454
455         Reviewed by Mark Lam.
456
457         * WebFrame.cpp:
458         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
459
460 2018-03-08  Tim Horton  <timothy_horton@apple.com>
461
462         Stop linking ApplicationServices directly
463         https://bugs.webkit.org/show_bug.cgi?id=182867
464         <rdar://problem/38252142>
465
466         Reviewed by Alex Christensen.
467
468         The frameworks that we use that live inside ApplicationServices
469         have mostly moved out, so import them directly.
470
471         * FullscreenVideoController.cpp:
472
473 2018-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
474
475         Fix std::make_unique / new[] using system malloc
476         https://bugs.webkit.org/show_bug.cgi?id=182975
477
478         Reviewed by JF Bastien.
479
480         Use Vector instead.
481
482         * MarshallingHelpers.cpp:
483         (MarshallingHelpers::safeArrayToStringArray):
484         (MarshallingHelpers::safeArrayToIntArray):
485         * Plugins/PluginPackageWin.cpp:
486         (WebCore::PluginPackage::fetchInfo):
487         * WebPreferences.cpp:
488         (WebPreferences::copyWebKitPreferencesToCFPreferences):
489         * WebView.cpp:
490         (WebView::onMenuCommand):
491
492 2018-03-04  Yusuke Suzuki  <utatane.tea@gmail.com>
493
494         [WTF] Move currentCPUTime and sleep(Seconds) to CPUTime.h and Seconds.h respectively
495         https://bugs.webkit.org/show_bug.cgi?id=183312
496
497         Reviewed by Mark Lam.
498
499         Remove wtf/CurrentTime.h include pragma.
500
501         * WebDownload.cpp:
502         * WebDownloadCFNet.cpp:
503         * WebDropSource.cpp:
504
505 2018-03-01  Yusuke Suzuki  <utatane.tea@gmail.com>
506
507         Remove monotonicallyIncreasingTime
508         https://bugs.webkit.org/show_bug.cgi?id=182911
509
510         Reviewed by Michael Catanzaro.
511
512         * FullscreenVideoController.cpp:
513         (FullscreenVideoController::LayerClient::platformCALayerAnimationStarted):
514         * Plugins/PluginMessageThrottlerWin.cpp:
515         (WebCore::PluginMessageThrottlerWin::PluginMessageThrottlerWin):
516         (WebCore::PluginMessageThrottlerWin::appendMessage):
517         * Plugins/PluginMessageThrottlerWin.h:
518         * WebView.cpp:
519         (WebView::notifyAnimationStarted):
520         * WebView.h:
521
522 2018-03-01  Ross Kirsling  <ross.kirsling@sony.com>
523
524         [Win][DRT] Implement setSpatialNavigationEnabled.
525         https://bugs.webkit.org/show_bug.cgi?id=183166
526
527         Reviewed by Per Arne Vollan.
528
529         Create a non-dummy implementation of the private preference in Win WKL to support layout tests.
530
531         * Interfaces/IWebPreferencesPrivate.idl:
532         * WebPreferenceKeysPrivate.h:
533         * WebPreferences.cpp:
534         (WebPreferences::initializeDefaultSettings):
535         (WebPreferences::spatialNavigationEnabled):
536         (WebPreferences::setSpatialNavigationEnabled):
537         * WebPreferences.h:
538         * WebView.cpp:
539         (WebView::notifyPreferencesChanged):
540
541 2018-02-28  Alex Christensen  <achristensen@webkit.org>
542
543         Reduce use of NetworkingContext in WebKit
544         https://bugs.webkit.org/show_bug.cgi?id=183213
545
546         Reviewed by Brady Eidson.
547
548         * Plugins/PluginView.cpp:
549         (WebCore::PluginView::getValueForURL):
550
551 2018-02-26  Don Olmstead  <don.olmstead@sony.com>
552
553         Fix WebCore includes within WebKitLegacy
554         https://bugs.webkit.org/show_bug.cgi?id=183147
555
556         Reviewed by Tim Horton.
557
558         * Plugins/PluginDatabase.cpp:
559         * Plugins/PluginDatabaseWin.cpp:
560         * Plugins/PluginDebug.cpp:
561         * Plugins/PluginDebug.h:
562         * Plugins/PluginMainThreadScheduler.cpp:
563         * Plugins/PluginMessageThrottlerWin.cpp:
564         * Plugins/PluginMessageThrottlerWin.h:
565         * Plugins/PluginPackage.cpp:
566         * Plugins/PluginPackage.h:
567         * Plugins/PluginPackageWin.cpp:
568         * Plugins/PluginStream.cpp:
569         * Plugins/PluginStream.h:
570         * Plugins/PluginView.cpp:
571         * Plugins/PluginView.h:
572         * Plugins/PluginViewWin.cpp:
573         * Plugins/npapi.cpp:
574         * WebCoreSupport/WebChromeClient.cpp:
575         * WebCoreSupport/WebContextMenuClient.cpp:
576         * WebCoreSupport/WebFrameLoaderClient.cpp:
577         * WebCoreSupport/WebInspectorClient.cpp:
578         * WebCoreSupport/WebPlatformStrategies.cpp:
579         * WebFrame.cpp:
580         * WebKitMessageLoop.cpp:
581         * WebView.cpp:
582         * storage/WebDatabaseProvider.cpp:
583
584 2018-02-22  Yusuke Suzuki  <utatane.tea@gmail.com>
585
586         Remove currentTime() / currentTimeMS()
587         https://bugs.webkit.org/show_bug.cgi?id=183052
588
589         Reviewed by Mark Lam.
590
591         * WebCoreSupport/WebFrameLoaderClient.cpp:
592         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
593         * WebCoreSupport/WebFrameLoaderClient.h:
594         * WebDownload.h:
595         * WebDownloadCFNet.cpp:
596         (WebDownload::didStart):
597         (WebDownload::didReceiveData):
598         (WebDownload::didFinish):
599
600 2018-02-21  Don Olmstead  <don.olmstead@sony.com>
601
602         [CMake][Win] Use cmakeconfig.h rather than config.h and Platform.h
603         https://bugs.webkit.org/show_bug.cgi?id=182883
604
605         Reviewed by Per Arne Vollan.
606
607         * WebKitPrefix.h:
608
609 2018-02-16  Dean Jackson  <dino@apple.com>
610
611         Use OPENGL macros to be more clear about which OpenGL/ES WebGL uses on Cocoa
612         https://bugs.webkit.org/show_bug.cgi?id=182894
613
614         Reviewed by Tim Horton.
615
616         Rename OPENGL_ES_2 to OPENGL_ES.
617
618         * WebCoreSupport/AcceleratedCompositingContext.cpp:
619
620 2018-02-16  Youenn Fablet  <youenn@apple.com>
621
622         Allow specifying which plug-ins are supported
623         https://bugs.webkit.org/show_bug.cgi?id=182748
624
625         Reviewed by Chris Dumez.
626
627         * WebCoreSupport/WebPluginInfoProvider.cpp:
628         (WebPluginInfoProvider::getPluginInfo):
629         * WebCoreSupport/WebPluginInfoProvider.h:
630
631 2018-02-15  Don Olmstead  <don.olmstead@sony.com>
632
633         WebCore headers should not be included relatively within dependent projects
634         https://bugs.webkit.org/show_bug.cgi?id=182805
635
636         Reviewed by Chris Dumez.
637
638         * FullscreenVideoController.h:
639
640 2018-02-13  Commit Queue  <commit-queue@webkit.org>
641
642         Unreviewed, rolling out r228431.
643         https://bugs.webkit.org/show_bug.cgi?id=182766
644
645         Regressed CMake build stability (Requested by dolmstead on
646         #webkit).
647
648         Reverted changeset:
649
650         "[CMake] Make WebCore headers copies"
651         https://bugs.webkit.org/show_bug.cgi?id=182512
652         https://trac.webkit.org/changeset/228431
653
654 2018-02-13  Don Olmstead  <don.olmstead@sony.com>
655
656         [CMake] Make WebCore headers copies
657         https://bugs.webkit.org/show_bug.cgi?id=182512
658
659         Reviewed by Keith Miller.
660
661         * FullscreenVideoController.h:
662         * Plugins/PluginDatabase.cpp:
663         * Plugins/PluginDatabaseWin.cpp:
664         * Plugins/PluginDebug.cpp:
665         * Plugins/PluginMainThreadScheduler.cpp:
666         * Plugins/PluginMessageThrottlerWin.cpp:
667         * Plugins/PluginPackage.cpp:
668         * Plugins/PluginPackageWin.cpp:
669         * Plugins/PluginStream.cpp:
670         * Plugins/PluginView.cpp:
671         * Plugins/PluginViewWin.cpp:
672         * Plugins/npapi.cpp:
673         * WebKitMessageLoop.cpp:
674         * WebKitPrefix.h:
675         * storage/WebDatabaseProvider.cpp:
676
677 2018-01-13  Darin Adler  <darin@apple.com>
678
679         Event improvements
680         https://bugs.webkit.org/show_bug.cgi?id=179591
681
682         Reviewed by Chris Dumez.
683
684         * Plugins/PluginView.cpp: Removed include of ScriptValue.h.
685         * WebFrame.cpp: Ditto.
686
687         * WebScriptWorld.cpp:
688         (WebScriptWorld::scriptWorldForGlobalContext): Pass reference to currentWorld.
689
690         * WebView.cpp: Removed include of ScriptValue.h.
691         (WebView::handleEditingKeyboardEvent): Updated for name change from
692         keyEvent to underlyingPlatformEvent.
693
694 2018-02-06  Don Olmstead  <don.olmstead@sony.com>
695
696         Remove WebCore/ForwardingHeaders directory
697         https://bugs.webkit.org/show_bug.cgi?id=182347
698
699         Reviewed by Keith Miller.
700
701         * Plugins/PluginView.cpp:
702         * Plugins/PluginViewWin.cpp:
703         * WebCoreSupport/WebInspectorClient.cpp:
704         * WebCoreSupport/WebInspectorClient.h:
705         * WebFrame.cpp:
706         * WebJavaScriptCollector.cpp:
707         * WebView.cpp:
708
709 2018-01-24  Wenson Hsieh  <wenson_hsieh@apple.com>
710
711         Unreviewed, another attempt to fix the Windows build after r227479.
712
713         * WebFrame.cpp:
714         (WebFrame::elementWithName):
715
716 2018-01-24  Wenson Hsieh  <wenson_hsieh@apple.com>
717
718         Unreviewed, try to fix the Windows build after r227479.
719
720         Tweak some Windows WebKitLegacy code to use updated HTMLFormElement methods.
721
722         * WebFrame.cpp:
723         (WebFrame::elementWithName):
724         (WebFrame::controlsInForm):
725
726 2018-01-19  Per Arne Vollan  <pvollan@apple.com>
727
728         [Win] Compile error: 'WebKitQuartzCoreAdditionsBase.h' not found.
729         https://bugs.webkit.org/show_bug.cgi?id=181859
730         <rdar://problem/36659886>
731
732         Reviewed by Alex Christensen.
733         
734         Use local include patch.
735
736         * WebKitQuartzCoreAdditions/API/WKCACFImage.h:
737         * WebKitQuartzCoreAdditions/API/WKCACFView.h:
738         * WebKitQuartzCoreAdditions/API/WKCACFViewPrivate.h:
739
740 2018-01-17  Youenn Fablet  <youenn@apple.com>
741
742         Put fetch Request.keepalive behind a runtime flag
743         https://bugs.webkit.org/show_bug.cgi?id=181592
744
745         Reviewed by Chris Dumez.
746
747         * WebPreferences.cpp:
748         (WebPreferences::fetchAPIKeepAliveEnabled):
749         (WebPreferences::setFetchAPIKeepAliveEnabled):
750         * WebPreferences.h:
751         * WebView.cpp:
752         (WebView::notifyPreferencesChanged):
753
754 2018-01-17  Wenson Hsieh  <wenson_hsieh@apple.com>
755
756         Add injected bundle SPI to replace subresource URLs when dropping or pasting rich content
757         https://bugs.webkit.org/show_bug.cgi?id=181637
758         <rdar://problem/36508471>
759
760         Reviewed by Tim Horton.
761
762         Add a stub implementation of replacementURLForResource. See WebCore and WebKit ChangeLogs for more detail.
763
764         * WebCoreSupport/WebEditorClient.cpp:
765         (WebEditorClient::replacementURLForResource):
766         * WebCoreSupport/WebEditorClient.h:
767
768 2017-12-28  Yusuke Suzuki  <utatane.tea@gmail.com>
769
770         Remove std::chrono completely
771         https://bugs.webkit.org/show_bug.cgi?id=181186
772
773         Reviewed by Alex Christensen.
774
775         * Plugins/PluginStream.cpp:
776         (WebCore::lastModifiedDateMS):
777
778 2018-01-02  Fujii Hironori  <Hironori.Fujii@sony.com>
779
780         [Win] Web Inspector: Wrongly placed inspector highlight in HiDPI
781         https://bugs.webkit.org/show_bug.cgi?id=181173
782
783         Reviewed by Alex Christensen.
784
785         * WebNodeHighlight.cpp:
786         (WebNodeHighlight::update): Scale the GraphicsContext.
787
788 2017-12-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
789
790         REGRESSION(r225769): Build error with constexpr std::max // std::min in libdstdc++4
791         https://bugs.webkit.org/show_bug.cgi?id=181160
792
793         Reviewed by Myles C. Maxfield.
794
795         * Plugins/PluginView.cpp:
796         (WebCore::PluginView::handlePost): Disambiguate usage of min (Use the version from stdlib).
797
798 2017-12-21  Jeremy Jones  <jeremyj@apple.com>
799
800         Enable picture-in-picture from inline element on suspend.
801         https://bugs.webkit.org/show_bug.cgi?id=180942
802         rdar://problem/34745234
803
804         Reviewed by Jer Noble.
805
806         Update signature of enterVideoFullscreenForVideoElement.
807
808         * WebCoreSupport/WebChromeClient.cpp:
809         (WebChromeClient::enterVideoFullscreenForVideoElement):
810         * WebCoreSupport/WebChromeClient.h:
811
812 2017-12-18  Fujii Hironori  <Hironori.Fujii@sony.com>
813
814         [Win] SHOULD NEVER BE REACHED in WebFrameLoaderClient::pageID
815         https://bugs.webkit.org/show_bug.cgi?id=180926
816
817         Reviewed by Tim Horton.
818
819         Apply the same change of mac/WebCoreSupport/WebFrameLoaderClient.mm
820         of r225934 to win/WebCoreSupport/WebFrameLoaderClient.cpp.
821
822         * WebCoreSupport/WebFrameLoaderClient.cpp:
823         (WebFrameLoaderClient::frameID const): Removed RELEASE_ASSERT_NOT_REACHED.
824         (WebFrameLoaderClient::pageID const): Ditto.
825
826 2017-12-16  Yusuke Suzuki  <utatane.tea@gmail.com>
827
828         Remove unnecessary boolean result of start() functions
829         https://bugs.webkit.org/show_bug.cgi?id=180856
830
831         Reviewed by Darin Adler.
832
833         It always returns true.
834
835         * WebDownloadCurl.cpp:
836         (WebDownload::start):
837
838 2017-12-14  John Wilander  <wilander@apple.com>
839
840         Storage Access API: Implement frame-specific access in the document.cookie layer
841         https://bugs.webkit.org/show_bug.cgi?id=180682
842         <rdar://problem/35982257>
843
844         Reviewed by Alex Christensen.
845
846         CookiesStrategy::cookiesForDOM(), CookiesStrategy::setCookiesFromDOM(),
847         CookiesStrategy::cookieRequestHeaderFieldValue(), and
848         CookiesStrategy::getRawCookies() now take optional parameters for
849         frameID and pageID to allow frame-specific scoping of cookies.
850
851         This change makes the return values of FrameLoaderClient::frameID()
852         and FrameLoaderClient::pageID() std::optional<uint64_t> so that
853         WebCore can call those getters and get the right return values in
854         WebKit and std:nullopt in WebKitLegacy.
855
856         * WebCoreSupport/WebFrameLoaderClient.cpp:
857         (WebFrameLoaderClient::pageID const):
858         (WebFrameLoaderClient::frameID const):
859             Now return an optional.
860         * WebCoreSupport/WebFrameLoaderClient.h:
861         * WebCoreSupport/WebPlatformStrategies.cpp:
862         (WebPlatformStrategies::cookiesForDOM):
863         (WebPlatformStrategies::setCookiesFromDOM):
864         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
865         (WebPlatformStrategies::getRawCookies):
866         * WebCoreSupport/WebPlatformStrategies.h:
867
868 2017-12-12  Yusuke Suzuki  <utatane.tea@gmail.com>
869
870         [WTF] Thread::create should have Thread::tryCreate
871         https://bugs.webkit.org/show_bug.cgi?id=180333
872
873         Reviewed by Darin Adler.
874
875         * WebKitQuartzCoreAdditions/CVDisplayLink.cpp:
876         (WKQCA::CVDisplayLink::start):
877
878 2017-12-08  Yusuke Suzuki  <utatane.tea@gmail.com>
879
880         Use StaticLock and Lock instead of Mutex in Windows WebKitLegacy
881         https://bugs.webkit.org/show_bug.cgi?id=180572
882
883         Reviewed by Mark Lam.
884
885         Use StaticLock and drop DEPRECATED_DEFINE_STATIC_LOCAL.
886         Also we use Lock instead of Mutex.
887
888         * WebKitQuartzCoreAdditions/CAD3DRenderer.cpp:
889         (WKQCA::CAD3DRenderer::swapChain):
890         (WKQCA::CAD3DRenderer::renderAndPresent):
891         (WKQCA::CAD3DRenderer::renderToImage):
892         (WKQCA::CAD3DRenderer::setDeviceIsLost):
893         (WKQCA::CAD3DRenderer::renderInternal):
894         * WebKitQuartzCoreAdditions/CAD3DRenderer.h:
895         * WebKitQuartzCoreAdditions/CAView.cpp:
896         (WKQCA::CAView::Handle::create):
897         Return Ref<Handle> instead of RefPtr<>.
898
899         (WKQCA::CAView::Handle::lock):
900         (WKQCA::CAView::Handle::view const):
901         (WKQCA::CAView::Handle::clear):
902         (WKQCA::views):
903         (WKQCA::viewsNeedingUpdate):
904         (WKQCA::CAView::releaseAllD3DResources):
905         (WKQCA::CAView::CAView):
906         (WKQCA::CAView::~CAView):
907         (WKQCA::CAView::setLayer):
908         (WKQCA::CAView::update):
909         (WKQCA::CAView::drawToWindow):
910         (WKQCA::CAView::drawToWindowInternal):
911         (WKQCA::CAView::drawToImage):
912         (WKQCA::CAView::willDraw):
913         (WKQCA::CAView::drawIntoDC):
914         (WKQCA::CAView::setShouldInvertColors):
915         (WKQCA::CAView::scheduleNextDraw):
916         (WKQCA::CAView::displayLinkReachedCAMediaTime):
917         (WKQCA::CAView::contextDidChange):
918         (WKQCA::CAView::updateSoon):
919         (WKQCA::CAView::updateViewsNow):
920         (WKQCA::CAView::d3dDevice9):
921         (WKQCA::CAView::Handle::mutex): Deleted.
922         (WKQCA::globalStateMutex): Deleted.
923         (): Deleted.
924         * WebKitQuartzCoreAdditions/CAView.h:
925
926 2017-12-07  Yusuke Suzuki  <utatane.tea@gmail.com>
927
928         Use StaticLock instead of NeverDestroyed<Lock>
929         https://bugs.webkit.org/show_bug.cgi?id=180507
930
931         Reviewed by Saam Barati.
932
933         * WebLocalizableStrings.cpp:
934         (findCachedString):
935         (cacheString):
936         (mainBundleLocStrings): Deleted.
937         (frameworkLocStringsMutex): Deleted.
938
939 2017-12-05  Per Arne Vollan  <pvollan@apple.com>
940
941         [Win] Scrollbars are sometimes not rendered in accelerated compositing mode.
942         https://bugs.webkit.org/show_bug.cgi?id=180431
943         <rdar://problem/34531264>
944
945         Reviewed by Simon Fraser.
946
947         Fix the signatures of GraphicsLayerClient that should have been overridden, and use
948         'override' to make sure this doesn't break in the future.
949
950         * WebView.cpp:
951         (WebView::notifyAnimationStarted):
952         (WebView::paintContents):
953         * WebView.h:
954
955 2017-11-23  Darin Adler  <darin@apple.com>
956
957         Fix dictionary leak in lookup, convert FindOptions to OptionSet, tweak code style nearby
958         https://bugs.webkit.org/show_bug.cgi?id=179981
959
960         Reviewed by Sam Weinig.
961
962         * WebView.cpp:
963         (WebView::searchFor): Use |= instead of | to build FindOptions.
964         (WebView::markAllMatchesForText): Create FindOptions with |= instead of |.
965         (WebView::findString): Create FindOptions with |=; the old code just passed a
966         WebKit FindOptions through without converting to WebCore::FindOptions.
967
968 2017-11-23  Darin Adler  <darin@apple.com>
969
970         Reduce WTF::String operations that do unnecessary Unicode operations instead of ASCII
971         https://bugs.webkit.org/show_bug.cgi?id=179907
972
973         Reviewed by Sam Weinig.
974
975         * Plugins/PluginDatabaseWin.cpp:
976         (WebCore::PluginDatabase::getPluginPathsInDirectories const): Use
977         startsWithLettersIgnoringASCIICase and endsWithIgnoringASCIICase.
978         * WebDownloadCFNet.cpp:
979         (WebDownload::initToResumeWithBundle): Use endsWithIgnoringASCIICase.
980
981         * WebView.cpp:
982         (WebView::markAllMatchesForText): Fix old code that was passing TextCaseSensitivity
983         to a function that actually takes FindOptions. By luck, TextCaseSensitive happens to
984         be 0, which is correct FindOptions for case sensitive matching, and TextCaseInsensitive
985         happens to be 1, which is correct FindOptions for case insensitive matching, so fixing
986         the code does not cause any change in behavior.
987
988 2017-11-22  Ali Juma  <ajuma@chromium.org>
989
990         Implement VisualViewport API attributes
991         https://bugs.webkit.org/show_bug.cgi?id=179385
992
993         Reviewed by Frédéric Wang.
994
995         Add a VisualViewportAPI preference.
996
997         * Interfaces/IWebPreferencesPrivate.idl:
998         * WebPreferenceKeysPrivate.h:
999         * WebPreferences.cpp:
1000         (WebPreferences::initializeDefaultSettings):
1001         (WebPreferences::visualViewportAPIEnabled):
1002         (WebPreferences::setVisualViewportAPIEnabled):
1003         * WebPreferences.h:
1004         * WebView.cpp:
1005         (WebView::notifyPreferencesChanged):
1006
1007 2017-11-22  Commit Queue  <commit-queue@webkit.org>
1008
1009         Unreviewed, rolling out r225093.
1010         https://bugs.webkit.org/show_bug.cgi?id=179938
1011
1012         Compilation failed on WinCairo 64-bit Release (Requested by
1013         fredw on #webkit).
1014
1015         Reverted changeset:
1016
1017         "Implement VisualViewport API attributes"
1018         https://bugs.webkit.org/show_bug.cgi?id=179385
1019         https://trac.webkit.org/changeset/225093
1020
1021 2017-11-21  Ali Juma  <ajuma@chromium.org>
1022
1023         Implement VisualViewport API attributes
1024         https://bugs.webkit.org/show_bug.cgi?id=179385
1025
1026         Reviewed by Frédéric Wang.
1027
1028         Add a VisualViewportAPI preference.
1029
1030         * Interfaces/IWebPreferencesPrivate.idl:
1031         * WebPreferenceKeysPrivate.h:
1032         * WebPreferences.cpp:
1033         (WebPreferences::initializeDefaultSettings):
1034         (WebPreferences::visualViewportAPIEnabled):
1035         (WebPreferences::setVisualViewportAPIEnabled):
1036         * WebPreferences.h:
1037         * WebView.cpp:
1038         (WebView::notifyPreferencesChanged):
1039
1040 2017-11-14  Alex Christensen  <achristensen@webkit.org>
1041
1042         Clean up old URL parser remnants
1043         https://bugs.webkit.org/show_bug.cgi?id=179573
1044
1045         Reviewed by Darin Adler.
1046
1047         * WebCoreSupport/WebContextMenuClient.cpp:
1048         (WebContextMenuClient::searchWithGoogle):
1049         Use https if we do end up searching with google.
1050
1051 2017-11-12  Darin Adler  <darin@apple.com>
1052
1053         More is<> and downcast<>, less static_cast<>
1054         https://bugs.webkit.org/show_bug.cgi?id=179600
1055
1056         Reviewed by Chris Dumez.
1057
1058         * WebView.cpp:
1059         (WebView::handleEditingKeyboardEvent): Use downcast.
1060
1061 2017-11-09  Christopher Reid  <chris.reid@sony.com>
1062
1063         Use enum classes within FileSystem
1064         https://bugs.webkit.org/show_bug.cgi?id=175172
1065
1066         Reviewed by Darin Adler.
1067
1068         * Plugins/PluginDatabase.cpp:
1069
1070 2017-11-06  Per Arne Vollan  <pvollan@apple.com>
1071
1072         [Win] Add WebKitQuartzCoreAdditions library.
1073         https://bugs.webkit.org/show_bug.cgi?id=179331
1074
1075         Reviewed by Alex Christensen.
1076
1077         * WebKitQuartzCoreAdditions: Added.
1078         * WebKitQuartzCoreAdditions/API: Added.
1079         * WebKitQuartzCoreAdditions/API/WKCACFImage.cpp: Added.
1080         (toImage):
1081         (WKCACFImageGetWidth):
1082         (WKCACFImageGetHeight):
1083         (WKCACFImageCopyFileMapping):
1084         (WKCACFImageCreateWithImage):
1085         (WKCACFImageFinalize):
1086         (WKCACFImageCopyFormattingDescription):
1087         (WKCACFImageCopyDebugDescription):
1088         (WKCACFImageGetTypeID):
1089         * WebKitQuartzCoreAdditions/API/WKCACFImage.h: Added.
1090         * WebKitQuartzCoreAdditions/API/WKCACFImageInternal.h: Added.
1091         * WebKitQuartzCoreAdditions/API/WKCACFView.cpp: Added.
1092         (toView):
1093         (toImpl):
1094         (WKCACFViewCreate):
1095         (WKCACFViewSetLayer):
1096         (WKCACFViewUpdate):
1097         (WKCACFViewFlushContext):
1098         (WKCACFViewInvalidateRects):
1099         (WKCACFViewCanDraw):
1100         (WKCACFViewDraw):
1101         (WKCACFViewCopyDrawnImage):
1102         (WKCACFViewDrawIntoDC):
1103         (contextDidChangeCallback):
1104         (WKCACFViewSetContextDidChangeCallback):
1105         (WKCACFViewGetLastCommitTime):
1106         (WKCACFViewSetContextUserData):
1107         (WKCACFViewGetContext):
1108         (WKCACFViewFinalize):
1109         (WKCACFViewCopyFormattingDescription):
1110         (WKCACFViewCopyDebugDescription):
1111         (WKCACFViewGetTypeID):
1112         (WKCACFViewSetShouldInvertColors):
1113         (WKCACFViewGetD3DDevice9):
1114         * WebKitQuartzCoreAdditions/API/WKCACFView.h: Added.
1115         * WebKitQuartzCoreAdditions/API/WKCACFViewPrivate.h: Added.
1116         * WebKitQuartzCoreAdditions/API/WebKitQuartzCoreAdditions.cpp: Added.
1117         (WKQCA::dllInstance):
1118         (DllMain):
1119         (WKCACFShutDown):
1120         * WebKitQuartzCoreAdditions/API/WebKitQuartzCoreAdditionsBase.h: Added.
1121         * WebKitQuartzCoreAdditions/CAD3DRenderer.cpp: Added.
1122         (WKQCA::D3DPostProcessingContext::D3DPostProcessingContext):
1123         (WKQCA::d3d):
1124         (WKQCA::initialPresentationParameters):
1125         (WKQCA::CAD3DRenderer::shared):
1126         (WKQCA::CAD3DRenderer::CAD3DRenderer):
1127         (WKQCA::CAD3DRenderer::swapChain):
1128         (WKQCA::CAD3DRenderer::createD3DPostProcessingContext):
1129         (WKQCA::hardwareCapabilitiesIndicateCoreAnimationSupport):
1130         (WKQCA::CAD3DRenderer::initialize):
1131         (WKQCA::D3DMatrixOrthoOffCenterRH):
1132         (WKQCA::prepareDevice):
1133         (WKQCA::updateBounds):
1134         (WKQCA::CAD3DRenderer::renderAndPresent):
1135         (WKQCA::CAD3DRenderer::renderToImage):
1136         (WKQCA::CAD3DRenderer::setDeviceIsLost):
1137         (WKQCA::CAD3DRenderer::renderInternal):
1138         (WKQCA::CAD3DRenderer::postProcess):
1139         (WKQCA::CAD3DRenderer::resetD3DDevice):
1140         (WKQCA::CAD3DRenderer::createShaderIfNeeded):
1141         (WKQCA::CAD3DRenderer::release):
1142         * WebKitQuartzCoreAdditions/CAD3DRenderer.h: Added.
1143         (WKQCA::D3DPostProcessingContext::sceneTexture const):
1144         (WKQCA::D3DPostProcessingContext::overlayQuad const):
1145         (WKQCA::CAD3DRenderer::d3dDevice9 const):
1146         * WebKitQuartzCoreAdditions/CAView.cpp: Added.
1147         (WKQCA::CAView::Handle::create):
1148         (WKQCA::CAView::Handle::~Handle):
1149         (WKQCA::CAView::Handle::mutex):
1150         (WKQCA::CAView::Handle::view const):
1151         (WKQCA::CAView::Handle::clear):
1152         (WKQCA::CAView::Handle::Handle):
1153         (WKQCA::globalStateMutex):
1154         (WKQCA::registerMessageWindowClass):
1155         (WKQCA::createMessageWindow):
1156         (WKQCA::CAView::releaseAllD3DResources):
1157         (WKQCA::CAView::CAView):
1158         (WKQCA::CAView::~CAView):
1159         (WKQCA::CAView::create):
1160         (WKQCA::CAView::setContextDidChangeCallback):
1161         (WKQCA::CAView::setLayer):
1162         (WKQCA::CAView::update):
1163         (WKQCA::CAView::invalidateRects):
1164         (WKQCA::CAView::drawToWindow):
1165         (WKQCA::CAView::drawToWindowInternal):
1166         (WKQCA::CAView::drawToImage):
1167         (WKQCA::CAView::willDraw):
1168         (WKQCA::CAView::didDraw):
1169         (WKQCA::CAView::drawIntoDC):
1170         (WKQCA::CAView::setShouldInvertColors):
1171         (WKQCA::CAView::scheduleNextDraw):
1172         (WKQCA::CAView::displayLinkReachedCAMediaTime):
1173         (WKQCA::CAView::contextDidChangeCallback):
1174         (WKQCA::CAView::contextDidChange):
1175         (WKQCA::CAView::updateSoon):
1176         (WKQCA::CAView::updateViewsNow):
1177         (WKQCA::CAView::d3dDevice9):
1178         * WebKitQuartzCoreAdditions/CAView.h: Added.
1179         (WKQCA::CAView::context const):
1180         (WKQCA::CAView::canDraw const):
1181         (WKQCA::CAView::ContextDidChangeCallback::ContextDidChangeCallback):
1182         * WebKitQuartzCoreAdditions/CMakeLists.txt: Added.
1183         * WebKitQuartzCoreAdditions/CVDisplayLink.cpp: Added.
1184         (WKQCA::CVDisplayLink::CVDisplayLink):
1185         (WKQCA::CVDisplayLink::~CVDisplayLink):
1186         (WKQCA::CVDisplayLink::create):
1187         (WKQCA::CVDisplayLink::start):
1188         (WKQCA::CVDisplayLink::stop):
1189         (WKQCA::CVDisplayLink::setPaused):
1190         (WKQCA::CVDisplayLink::runIOThread):
1191         * WebKitQuartzCoreAdditions/CVDisplayLink.h: Added.
1192         * WebKitQuartzCoreAdditions/CVDisplayLinkClient.h: Added.
1193         (WKQCA::CVDisplayLinkClient::~CVDisplayLinkClient):
1194         * WebKitQuartzCoreAdditions/Image.cpp: Added.
1195         (WKQCA::numBytesForSize):
1196         (WKQCA::Image::create):
1197         (WKQCA::Image::Image):
1198         (WKQCA::Image::~Image):
1199         (WKQCA::bitmapInfo):
1200         (WKQCA::Image::createDIB const):
1201         (WKQCA::Image::copyFileMapping):
1202         * WebKitQuartzCoreAdditions/Image.h: Added.
1203         (WKQCA::Image::size const):
1204         * WebKitQuartzCoreAdditions/ImageConversion.cpp: Added.
1205         (WKQCA::getBackBufferRectAsRenderTarget):
1206         (WKQCA::getSystemMemoryCopy):
1207         (WKQCA::copyRectToBitmap):
1208         (WKQCA::getImageCopy):
1209         (WKQCA::getBackBufferRectAsImage):
1210         * WebKitQuartzCoreAdditions/ImageConversion.h: Added.
1211         * WebKitQuartzCoreAdditions/InvertColorPS.hlsl: Added.
1212         * WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsInternal.h: Added.
1213         * WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsPrefix.cpp: Added.
1214         * WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsPrefix.h: Added.
1215
1216 2017-11-06  Christopher Reid  <chris.reid@sony.com>
1217
1218         Use enum classes within FileSystem
1219         https://bugs.webkit.org/show_bug.cgi?id=175172
1220
1221         Reviewed by Myles C. Maxfield.
1222
1223         * Plugins/PluginDatabase.cpp:
1224
1225 2017-11-02  Maciej Stachowiak  <mjs@apple.com>
1226
1227         Don't try to guess plugin MIME type from a file extension in a URL (no observable effect)
1228         https://bugs.webkit.org/show_bug.cgi?id=178333
1229
1230         Reviewed by Darin Adler.
1231
1232         * WebCoreSupport/WebFrameLoaderClient.cpp:
1233         (WebFrameLoaderClient::objectContentType): Remove unnecessary call to mimeTypeFromURL
1234
1235 2017-11-02  Alex Christensen  <achristensen@webkit.org>
1236
1237         Use CompletionHandlers for redirects
1238         https://bugs.webkit.org/show_bug.cgi?id=179163
1239
1240         Reviewed by Tim Horton.
1241
1242         * Plugins/PluginStream.cpp:
1243         (WebCore::PluginStream::willSendRequest):
1244         * Plugins/PluginStream.h:
1245         (WebCore::PluginStreamClient::~PluginStreamClient):
1246         (WebCore::PluginStreamClient::streamDidFinishLoading):
1247         (WebCore::PluginStream::create):
1248         (WebCore::PluginStream::setLoadManually):
1249
1250 2017-11-02  Christopher Reid  <chris.reid@sony.com>
1251
1252         Add a FileSystem namespace to FileSystem.cpp
1253         https://bugs.webkit.org/show_bug.cgi?id=179063
1254
1255         Reviewed by Darin Adler.
1256
1257         * Plugins/PluginDatabase.cpp:
1258         * Plugins/PluginPackage.cpp:
1259         * Plugins/PluginStream.cpp:
1260         * Plugins/PluginStream.h:
1261         * WebApplicationCache.cpp:
1262         * WebDatabaseManager.cpp:
1263         * WebDownloadCurl.cpp:
1264         * WebPreferences.cpp:
1265         * WebView.cpp:
1266
1267 2017-10-31  Alex Christensen  <achristensen@webkit.org>
1268
1269         Fix Windows build after r224260
1270
1271         * WebView.cpp:
1272         (WebView::gesture):
1273
1274 2017-10-28  Zalan Bujtas  <zalan@apple.com>
1275
1276         [FrameView::layout cleanup] Move core layout logic to a separate class.
1277         https://bugs.webkit.org/show_bug.cgi?id=178771
1278         <rdar://problem/35166542>
1279
1280         Reviewed by Simon Fraser.
1281
1282         Move layout code out from FrameView to LayoutContext.
1283
1284         * WebFrame.cpp:
1285         (WebFrame::layout):
1286
1287 2017-10-26  Alex Christensen  <achristensen@webkit.org>
1288
1289         Fix Windows build
1290         https://bugs.webkit.org/show_bug.cgi?id=178892
1291
1292         * AccessibleBase.cpp:
1293         (MSAARole):
1294
1295 2017-10-26  Alex Christensen  <achristensen@webkit.org>
1296
1297         Fix Windows build
1298         https://bugs.webkit.org/show_bug.cgi?id=178892
1299
1300         * AccessibleBase.cpp:
1301         (AccessibleBase::state const):
1302         (MSAARole):
1303
1304 2017-10-25  Youenn Fablet  <youenn@apple.com>
1305
1306         Enable ServiceWorker to fetch resources
1307         https://bugs.webkit.org/show_bug.cgi?id=178673
1308
1309         Reviewed by Brady Eidson.
1310
1311         Added implementation to the new getters.
1312         They are noop in the context of WK1.
1313
1314         * WebCoreSupport/WebFrameLoaderClient.cpp:
1315         (WebFrameLoaderClient::pageID const):
1316         (WebFrameLoaderClient::frameID const):
1317         (WebFrameLoaderClient::sessionID const):
1318         * WebCoreSupport/WebFrameLoaderClient.h:
1319
1320 2017-10-20  Antoine Quint  <graouts@apple.com>
1321
1322         [Web Animations] Provide basic timeline and animation interfaces
1323         https://bugs.webkit.org/show_bug.cgi?id=178526
1324
1325         Reviewed by Dean Jackson.
1326
1327         Remove the WEB_ANIMATIONS compile-time flag.
1328
1329         * WebView.cpp:
1330         (WebView::notifyPreferencesChanged):
1331
1332 2017-10-20  Basuke Suzuki  <Basuke.Suzuki@sony.com>
1333
1334         [Curl] Clean up old style code in old curl files.
1335         https://bugs.webkit.org/show_bug.cgi?id=178569
1336
1337         Reviewed by Ryosuke Niwa.
1338
1339         * WebCache.cpp:
1340         (WebCache::cacheFolder):
1341         (WebCache::setCacheFolder):
1342         * WebView.cpp:
1343         (WebView::setCacheModel):
1344
1345 2017-10-19  Sam Weinig  <sam@webkit.org>
1346
1347         [Settings] Move global settings into their own file
1348         https://bugs.webkit.org/show_bug.cgi?id=178512
1349
1350         Reviewed by Darin Adler.
1351
1352         Moves all global settigns out of SettingsBase and into the new DeprecatedGlobalSettings.
1353
1354         * WebView.cpp:
1355         (WebView::initWithFrame):
1356
1357 2017-10-17  Jiewen Tan  <jiewen_tan@apple.com>
1358
1359         Replace some stack raw pointers with RefPtrs within WebCore/html
1360         https://bugs.webkit.org/show_bug.cgi?id=178201
1361         <rdar://problem/34841692>
1362
1363         Reviewed by Ryosuke Niwa.
1364
1365         * WebView.cpp:
1366         (WebView::handleEditingKeyboardEvent):
1367         Change the type of node as toNode() is changed to return RefPtr.
1368
1369 2017-10-16  Sam Weinig  <sam@webkit.org>
1370
1371         [Settings] Remove all custom code from Settings.h/cpp
1372         https://bugs.webkit.org/show_bug.cgi?id=178330
1373
1374         Reviewed by Simon Fraser.
1375
1376         * WebView.cpp:
1377         (WebView::notifyPreferencesChanged):
1378             
1379             Update for naming changes of FrameFlattening now that it is an enum class.
1380
1381 2017-10-11  Chris Dumez  <cdumez@apple.com>
1382
1383         Modernize Geolocation code
1384         https://bugs.webkit.org/show_bug.cgi?id=178148
1385
1386         Reviewed by Ryosuke Niwa.
1387
1388         * WebCoreSupport/WebGeolocationClient.cpp:
1389         (WebGeolocationClient::lastPosition):
1390         * WebCoreSupport/WebGeolocationClient.h:
1391         * WebGeolocationPosition.cpp:
1392         (WebGeolocationPosition::initWithTimestamp):
1393         (core):
1394         * WebGeolocationPosition.h:
1395         (WebGeolocationPosition::impl const):
1396
1397 2017-10-05  Chris Dumez  <cdumez@apple.com>
1398
1399         Drop unused parameters for CookiesStrategy::cookiesEnabled()
1400         https://bugs.webkit.org/show_bug.cgi?id=177957
1401
1402         Reviewed by Alex Christensen.
1403
1404         * WebCoreSupport/WebPlatformStrategies.cpp:
1405         (WebPlatformStrategies::cookiesEnabled):
1406         * WebCoreSupport/WebPlatformStrategies.h:
1407
1408 2017-10-03  Basuke Suzuki  <Basuke.Suzuki@sony.com>
1409
1410         [Curl] Reimplement CurlDownload with CurlRequest
1411         https://bugs.webkit.org/show_bug.cgi?id=177779
1412
1413         Reviewed by Alex Christensen.
1414
1415         * WebDownload.h:
1416         * WebDownloadCurl.cpp:
1417         (WebDownload::init):
1418         (WebDownload::didReceiveResponse):
1419
1420 2017-09-29  Chris Dumez  <cdumez@apple.com>
1421
1422         Split some logic out of VisitedLinkStore and make it reusable
1423         https://bugs.webkit.org/show_bug.cgi?id=177575
1424
1425         Reviewed by Alex Christensen.
1426
1427         * WebCoreSupport/WebVisitedLinkStore.cpp:
1428         (WebVisitedLinkStore::addVisitedLink):
1429         (WebVisitedLinkStore::isLinkVisited):
1430         (WebVisitedLinkStore::addVisitedLinkHash):
1431         * WebCoreSupport/WebVisitedLinkStore.h:
1432
1433 2017-09-25  Alex Christensen  <achristensen@webkit.org>
1434
1435         Make PolicyAction an encodable enum class
1436         https://bugs.webkit.org/show_bug.cgi?id=177480
1437
1438         Reviewed by Antti Koivisto.
1439
1440         * WebCoreSupport/WebFrameLoaderClient.cpp:
1441         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1442         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1443         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1444         * WebFramePolicyListener.cpp:
1445         (WebFramePolicyListener::use):
1446         (WebFramePolicyListener::download):
1447         (WebFramePolicyListener::ignore):
1448         (WebFramePolicyListener::continueSubmit):
1449
1450 2017-09-07  Per Arne Vollan  <pvollan@apple.com>
1451
1452         [Win] fast/canvas/2d.getPath.modification.html is failing.
1453         https://bugs.webkit.org/show_bug.cgi?id=176534
1454
1455         Reviewed by Alex Christensen.
1456
1457         We need to enable Inspector additions at runtime in order to expose the getPath function.
1458
1459         * Interfaces/IWebPreferencesPrivate.idl:
1460         * WebPreferenceKeysPrivate.h:
1461         * WebPreferences.cpp:
1462         (WebPreferences::initializeDefaultSettings):
1463         (WebPreferences::setDataTransferItemsEnabled):
1464         (WebPreferences::inspectorAdditionsEnabled):
1465         (WebPreferences::setInspectorAdditionsEnabled):
1466         * WebPreferences.h:
1467         * WebView.cpp:
1468         (WebView::notifyPreferencesChanged):
1469
1470 2017-09-07  Alex Christensen  <achristensen@webkit.org>
1471
1472         Modernize Geolocation code
1473         https://bugs.webkit.org/show_bug.cgi?id=176496
1474
1475         Reviewed by Andy Estes.
1476
1477         * WebCoreSupport/WebGeolocationClient.cpp:
1478         (WebGeolocationClient::requestPermission):
1479         * WebCoreSupport/WebGeolocationClient.h:
1480         (WebGeolocationClient::setEnableHighAccuracy): Deleted.
1481         (WebGeolocationClient::cancelPermissionRequest): Deleted.
1482         * WebGeolocationPolicyListener.h:
1483         * WebView.cpp:
1484         (WebView::initWithFrame):
1485         (WebView::geolocationDidFailWithError):
1486
1487 2017-09-07  Per Arne Vollan  <pvollan@apple.com>
1488
1489         [Win] Enable DatatransferItems in DRT.
1490         https://bugs.webkit.org/show_bug.cgi?id=176424
1491
1492         Reviewed by Brent Fulgham.
1493
1494         * Interfaces/IWebPreferencesPrivate.idl:
1495         * WebPreferenceKeysPrivate.h:
1496         * WebPreferences.cpp:
1497         (WebPreferences::initializeDefaultSettings):
1498         (WebPreferences::QueryInterface):
1499         (WebPreferences::isSecureContextAttributeEnabled):
1500         (WebPreferences::dataTransferItemsEnabled):
1501         (WebPreferences::setDataTransferItemsEnabled):
1502         * WebPreferences.h:
1503         * WebView.cpp:
1504         (WebView::notifyPreferencesChanged):
1505
1506 2017-08-28  Brent Fulgham  <bfulgham@apple.com>
1507
1508         Unreviewed build fix #2 after r221275.
1509
1510         * WebCoreSupport/WebPlatformStrategies.cpp:
1511         (WebPlatformStrategies::cookieRequestHeaderFieldValue): Correct return type and arguments
1512         to match new API.
1513         * WebCoreSupport/WebPlatformStrategies.h: Update signatures.
1514
1515 2017-08-28  Brent Fulgham  <bfulgham@apple.com>
1516
1517         Unreviewed build fix after r221275.
1518
1519         * WebCoreSupport/WebPlatformStrategies.cpp:
1520         (WebPlatformStrategies::cookieRequestHeaderFieldValue): Correct return type and arguments
1521         to match new API.
1522
1523 2017-08-28  Per Arne Vollan  <pvollan@apple.com>
1524
1525         [Win] The test http/tests/misc/policy-delegate-called-twice.html is crashing.
1526         https://bugs.webkit.org/show_bug.cgi?id=176031
1527
1528         Reviewed by Brent Fulgham.
1529
1530         When the function in the FramePolicyFunction parameter is called, it has already been moved
1531         to an internal member by the setUpPolicyListener method, and is no longer valid. Invoke the
1532         function by using the stored member instead.
1533
1534         * WebCoreSupport/WebFrameLoaderClient.cpp:
1535         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1536         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1537         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1538
1539 2017-08-22  Wenson Hsieh  <wenson_hsieh@apple.com>
1540
1541         Unreviewed, try to fix the Windows build after r221064
1542
1543         didEndUserTriggeredSelectionChanges is virtual, and needs to be overridden in WebEditorClient.
1544
1545         * WebCoreSupport/WebEditorClient.h:
1546
1547 2017-08-22  Wenson Hsieh  <wenson_hsieh@apple.com>
1548
1549         [WK2] EditorState updates should be rolled into the layer update lifecycle when possible
1550         https://bugs.webkit.org/show_bug.cgi?id=175370
1551         <rdar://problem/33799806>
1552
1553         Reviewed by Ryosuke Niwa.
1554
1555         Adjust WebEditorClient for interface changes.
1556
1557         * WebCoreSupport/WebEditorClient.h:
1558
1559 2017-08-22  Brent Fulgham  <bfulgham@apple.com>
1560
1561         Unreviewed build fix after r221017.
1562
1563         Correct copy/paste error.
1564
1565         * WebCoreSupport/WebPlatformStrategies.cpp:
1566         (WebPlatformStrategies::cookiesForDOM):
1567
1568 2017-08-22  Brent Fulgham  <bfulgham@apple.com>
1569
1570         Unreviewed build fix after r221017.
1571
1572         * WebCoreSupport/WebPlatformStrategies.cpp:
1573         (WebPlatformStrategies::cookiesForDOM): Update for new signature.
1574         * WebCoreSupport/WebPlatformStrategies.h:
1575
1576 2017-08-22  Alex Christensen  <achristensen@webkit.org>
1577
1578         Remove ChromeClient::scrollbarsModeDidChange
1579         https://bugs.webkit.org/show_bug.cgi?id=175805
1580
1581         Reviewed by Daniel Bates.
1582
1583         * WebCoreSupport/WebChromeClient.h:
1584
1585 2017-08-22  Alex Christensen  <achristensen@webkit.org>
1586
1587         Remove ChromeClient::hasOpenedPopup
1588         https://bugs.webkit.org/show_bug.cgi?id=175804
1589
1590         Reviewed by Sam Weinig.
1591
1592         * WebCoreSupport/WebChromeClient.cpp:
1593         (WebChromeClient::hasOpenedPopup const): Deleted.
1594         * WebCoreSupport/WebChromeClient.h:
1595
1596 2017-08-18  Per Arne Vollan  <pvollan@apple.com>
1597
1598         [Win] accessibility/heading-crash-after-hidden.html is a flaky crash.
1599         https://bugs.webkit.org/show_bug.cgi?id=173536
1600
1601         Reviewed by Brent Fulgham.
1602
1603         If the tree state is dirty, accessible objects are deleted while iterating over children
1604         under AccessibilityNodeObject::textUnderElement when the style is updated. Make sure the
1605         style is updated before this method is called.
1606
1607         * AccessibleBase.cpp:
1608         (AccessibleBase::getAccessibilityObjectForChild):
1609
1610 2017-08-17  Don Olmstead  <don.olmstead@sony.com>
1611
1612         [PAL] Move SessionID into PAL
1613         https://bugs.webkit.org/show_bug.cgi?id=174192
1614
1615         Reviewed by Antti Koivisto.
1616
1617         * WebCoreSupport/WebFrameLoaderClient.cpp:
1618         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1619         * WebCoreSupport/WebFrameLoaderClient.h:
1620         * WebCoreSupport/WebFrameNetworkingContext.cpp:
1621         (WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
1622         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
1623         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
1624         (WebFrameNetworkingContext::storageSession const):
1625         * WebCoreSupport/WebPlatformStrategies.cpp:
1626         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
1627         * WebCoreSupport/WebPlatformStrategies.h:
1628
1629 2017-08-15  Youenn Fablet  <youenn@apple.com>
1630
1631         [Cache API] Adding generic support for CacheStorage and Cache methods
1632         https://bugs.webkit.org/show_bug.cgi?id=175455
1633
1634         Reviewed by Chris Dumez.
1635
1636         * WebView.cpp:
1637         (WebView::initWithFrame):
1638
1639 2017-08-13  Manuel Rego Casasnovas  <rego@igalia.com>
1640
1641         Composition underline color is always black
1642         https://bugs.webkit.org/show_bug.cgi?id=174675
1643
1644         Reviewed by Ryosuke Niwa.
1645
1646         * WebView.cpp:
1647         (WebView::setCompositionForTesting): Use text color for
1648         composition underline.
1649
1650 2017-08-09  Daniel Bates  <dabates@apple.com>
1651
1652         REGRESSION (r219013): OAuth flows are broken when redirecting back to application after authentication
1653         https://bugs.webkit.org/show_bug.cgi?id=175247
1654         <rdar://problem/33679804>
1655
1656         Reviewed by Brady Eidson.
1657
1658         Plumb knowledge of whether a navigation was in response to receiving a redirect response.
1659         We do not actually make use of this knowledge in WebKitLegacy because we do not know of any
1660         clients that need to make use of this information at this time. If such a needs comes up
1661         then we can expose API/SPI similar to what we do for WebKit.
1662
1663         * WebCoreSupport/WebFrameLoaderClient.cpp:
1664         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1665         * WebCoreSupport/WebFrameLoaderClient.h:
1666
1667 2017-07-25  Said Abou-Hallawa  <sabouhallawa@apple.com>
1668
1669         Async image decoding for large images should be disabled after the first time a tile is painted
1670         https://bugs.webkit.org/show_bug.cgi?id=174451
1671         <rdar://problem/31246421>
1672
1673         Reviewed by Simon Fraser.
1674
1675         * FullscreenVideoController.cpp:
1676         (FullscreenVideoController::LayerClient::platformCALayerPaintContents):
1677         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1678         (AcceleratedCompositingContext::paintContents):
1679         * WebCoreSupport/AcceleratedCompositingContext.h:
1680
1681 2017-07-23  Darin Adler  <darin@apple.com>
1682
1683         More NeverDestroyed and related cleanup
1684         https://bugs.webkit.org/show_bug.cgi?id=174745
1685
1686         Reviewed by Alex Christensen.
1687
1688         * Plugins/PluginDatabase.cpp:
1689         (WebCore::persistentPluginMetadataCachePath): Use NeverDestroyed
1690         instead of DEPRECATED_DEFINE_STATIC_LOCAL.
1691         * Plugins/PluginMainThreadScheduler.cpp:
1692         (WebCore::PluginMainThreadScheduler::scheduler): Ditto.
1693         * Plugins/PluginMainThreadScheduler.h: Ditto.
1694         * WebCoreSupport/WebPlatformStrategies.cpp:
1695         (WebPlatformStrategies::initialize): Ditto.
1696         * WebCoreSupport/WebPlatformStrategies.h: Ditto.
1697         * WebHistory.cpp:
1698         (sharedHistoryStorage): Ditto.
1699         * WebLocalizableStrings.cpp:
1700         (mainBundleLocStrings): Ditto.
1701         (frameworkLocStringsMutex): Ditto.
1702         (frameworkLocStrings): Ditto.
1703         * WebView.cpp:
1704         (WebView::standardUserAgentWithApplicationName): Ditto.
1705         Also changed to keep one global string with the prefix of the user agent string
1706         instead of keeping two globals with pieces of that prefix.
1707
1708 2017-07-24  Chris Dumez  <cdumez@apple.com>
1709
1710         Make ExceptionCode a proper enumeration
1711         https://bugs.webkit.org/show_bug.cgi?id=174771
1712
1713         Reviewed by Sam Weinig.
1714
1715         Make ExceptionCode a proper enumeration instead of a typedef to uint8_t.
1716
1717         * DOMCoreClasses.cpp:
1718         (DOMDocument::createEvent):
1719         * WebView.cpp:
1720         (WebView::prepareCandidateWindow):
1721
1722 2017-07-21  Andreas Kling  <akling@apple.com>
1723
1724         Use more references in event dispatch code
1725         https://bugs.webkit.org/show_bug.cgi?id=174681
1726
1727         Reviewed by Geoffrey Garen.
1728
1729         * DOMEventsClasses.cpp:
1730         (WebEventListener::handleEvent):
1731         * DOMEventsClasses.h:
1732         * Plugins/PluginView.cpp:
1733         (WebCore::PluginView::handleEvent):
1734         * Plugins/PluginView.h:
1735
1736 2017-07-20  Brady Eidson  <beidson@apple.com>
1737
1738         Remove WebIconDatabase from WebKitLegacy/win.
1739         https://bugs.webkit.org/show_bug.cgi?id=174608
1740
1741         Reviewed by Alex Christensen.
1742
1743         It is unused.
1744         
1745         * ForEachCoClass.h:
1746
1747         * Interfaces/IWebIconDatabase.idl: Removed.
1748
1749         * Interfaces/WebKit.idl:
1750
1751         * WebCoreStatistics.cpp:
1752         (WebCoreStatistics::iconPageURLMappingCount):
1753         (WebCoreStatistics::iconRetainedPageURLCount):
1754         (WebCoreStatistics::iconRecordCount):
1755         (WebCoreStatistics::iconsWithDataCount):
1756
1757         * WebIconDatabase.cpp: Removed.
1758         * WebIconDatabase.h: Removed.
1759         * WebKitClassFactory.cpp:
1760
1761         * WebKitDLL.cpp:
1762         (shutDownWebKit):
1763
1764         * WebKitLogging.h:
1765
1766         * WebView.cpp:
1767         (WebView::close):
1768         (WebView::notifyDidAddIcon):
1769         (WebView::registerForIconNotification):
1770         (WebView::dispatchDidReceiveIconFromWebFrame):
1771         (WebView::onNotify):
1772
1773 2017-07-18  Matt Lewis  <jlewis3@apple.com>
1774
1775         Unreviewed, rolling out r219610.
1776
1777         This caused an api failure on all platforms for the test
1778         SnapshotImageLargeAsyncDecoding
1779
1780         Reverted changeset:
1781
1782         "Async image decoding for large images should be disabled
1783         after the first time a tile is painted"
1784         https://bugs.webkit.org/show_bug.cgi?id=174451
1785         http://trac.webkit.org/changeset/219610
1786
1787 2017-07-18  Said Abou-Hallawa  <sabouhallawa@apple.com>
1788
1789         Async image decoding for large images should be disabled after the first time a tile is painted
1790         https://bugs.webkit.org/show_bug.cgi?id=174451
1791
1792         Reviewed by Simon Fraser.
1793
1794         * FullscreenVideoController.cpp:
1795         (FullscreenVideoController::LayerClient::platformCALayerPaintContents):
1796         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1797         (AcceleratedCompositingContext::paintContents):
1798         * WebCoreSupport/AcceleratedCompositingContext.h:
1799
1800 2017-07-14  Basuke Suzuki  <Basuke.Suzuki@sony.com>
1801
1802         [Curl] Don't start downloading more than once for same request
1803         https://bugs.webkit.org/show_bug.cgi?id=174172
1804
1805         Reviewed by Alex Christensen.
1806
1807         * WebDownloadCurl.cpp:
1808         (WebDownload::init):
1809
1810 2017-07-12  Daniel Bates  <dabates@apple.com>
1811
1812         Rename NavigationInitiatedByMainFrame to InitiatedByMainFrame
1813         https://bugs.webkit.org/show_bug.cgi?id=174427
1814
1815         Rubber-stamped by Brady Eidson.
1816
1817         * Plugins/PluginView.cpp:
1818         (WebCore::PluginView::start):
1819         (WebCore::PluginView::getURLNotify):
1820         (WebCore::PluginView::getURL):
1821         (WebCore::PluginView::handlePost):
1822
1823 2017-07-05  Don Olmstead  <don.olmstead@sony.com>
1824
1825         [WTF] Move SoftLinking.h into WTF
1826         https://bugs.webkit.org/show_bug.cgi?id=174000
1827
1828         Reviewed by Alex Christensen.
1829
1830         * WebKitClassFactory.cpp:
1831         * WebView.cpp:
1832
1833 2017-07-05  Brady Eidson  <beidson@apple.com>
1834
1835         Allow navigations in subframes to get a ShouldOpenExternalURLsPolicy of "ShouldAllow".
1836         <rdar://problem/22485589> and https://bugs.webkit.org/show_bug.cgi?id=174178
1837
1838         Reviewed by Alex Christensen.
1839
1840         Adopt to the new constructor for FrameLoadRequest.
1841
1842         * Plugins/PluginView.cpp:
1843         (WebCore::PluginView::start):
1844         (WebCore::PluginView::getURLNotify):
1845         (WebCore::PluginView::getURL):
1846         (WebCore::PluginView::handlePost):
1847
1848 2017-07-03  Brady Eidson  <beidson@apple.com>
1849
1850         Switch all WebKit API related to favicons from WebIconDatabase over to new WebCore::IconLoader mechanism.
1851         https://bugs.webkit.org/show_bug.cgi?id=174073
1852
1853         Reviewed by Andy Estes.
1854
1855         * WebCoreSupport/WebFrameLoaderClient.cpp:
1856         (WebFrameLoaderClient::dispatchDidReceiveIcon): Deleted.
1857         (WebFrameLoaderClient::registerForIconNotification): Deleted.
1858         * WebCoreSupport/WebFrameLoaderClient.h:
1859
1860 2017-07-01  Ryosuke Niwa  <rniwa@webkit.org>
1861
1862         Frame.h doesn't need to include FrameLoader.h, IntRect.h, and NavigationScheduler.h
1863         https://bugs.webkit.org/show_bug.cgi?id=174004
1864
1865         Reviewed by Simon Fraser.
1866
1867         * WebCoreSupport/WebFrameLoaderClient.cpp:
1868         (WebFrameLoaderClient::transitionToCommittedForNewPage):
1869
1870 2017-06-30  Daniel Bates  <dabates@apple.com>
1871
1872         API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo
1873         https://bugs.webkit.org/show_bug.cgi?id=165160
1874         <rdar://problem/29451999>
1875
1876         Reviewed by Brady Eidson.
1877
1878         Pass the document that is requesting the load to the loader.
1879
1880         * Plugins/PluginView.cpp:
1881         (WebCore::PluginView::start):
1882         (WebCore::PluginView::getURLNotify):
1883         (WebCore::PluginView::getURL):
1884         (WebCore::PluginView::handlePost):
1885
1886 2017-06-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1887
1888         Refactor drag start codepaths to plumb a DragItem to client layers
1889         https://bugs.webkit.org/show_bug.cgi?id=173832
1890         Work towards <rdar://problem/32236827>
1891
1892         Reviewed by Ryosuke Niwa and Tim Horton.
1893
1894         Adjust for changes to WebDragClient::startDrag by pulling information out of DragItem.
1895
1896         * WebCoreSupport/WebDragClient.cpp:
1897         (WebDragClient::startDrag):
1898         * WebCoreSupport/WebDragClient.h:
1899
1900 2017-06-25  Konstantin Tokarev  <annulen@yandex.ru>
1901
1902         Remove excessive headers from JavaScriptCore
1903         https://bugs.webkit.org/show_bug.cgi?id=173812
1904
1905         Reviewed by Darin Adler.
1906
1907         * Plugins/PluginPackage.cpp:
1908
1909 2017-06-22  Daniel Bates  <dabates@apple.com>
1910
1911         Make FrameLoadRequest a move-only type
1912         https://bugs.webkit.org/show_bug.cgi?id=173682
1913
1914         Reviewed by Alex Christensen and Darin Adler.
1915
1916         A FrameLoadRequest groups together the information to perform a load into a single object
1917         that is more manageable to pass around than its constituent parts. Code that receives a
1918         FrameLoadRequest is expected to extract out the information it needs to complete its task.
1919         And it does not make sense to re-use the same FrameLoadRequest object for more than one
1920         load. Therefore, it is sufficient to make FrameLoadRequest a move-only type.
1921
1922         * Plugins/PluginView.cpp:
1923         (WebCore::PluginView::start):
1924         (WebCore::PluginView::performRequest):
1925         (WebCore::PluginView::load):
1926         (WebCore::PluginView::getURLNotify):
1927         (WebCore::PluginView::getURL):
1928         (WebCore::PluginView::handlePost):
1929         * Plugins/PluginView.h:
1930         (WebCore::PluginRequest::PluginRequest):
1931
1932 2017-06-22  Daniel Bates  <dabates@apple.com>
1933
1934         [Win] Cleanup: Remove unnecessary include of header FrameLoadRequest.h
1935         https://bugs.webkit.org/show_bug.cgi?id=173683
1936
1937         Reviewed by Alex Christensen.
1938
1939         Neither file PluginViewWin.cpp nor WebContextMenuClient.cpp need to include
1940         header FrameLoadRequest.h. The former includes FrameLoadRequest.h indirectly
1941         by including PluginView.h. The latter does not make use of the functionality
1942         provided by FrameLoadRequest.h.
1943
1944         * Plugins/PluginViewWin.cpp:
1945         * WebCoreSupport/WebContextMenuClient.cpp:
1946
1947 2017-06-21  Daniel Bates  <dabates@apple.com>
1948
1949         Cleanup FrameLoadRequest
1950         https://bugs.webkit.org/show_bug.cgi?id=173564
1951         <rdar://problem/32903570>
1952
1953         Reviewed by Brent Fulgham.
1954
1955         * Plugins/PluginView.cpp:
1956         (WebCore::PluginView::start): Explicitly pass an empty ResourceRequest (we populate it after
1957         we instantiate the FrameLoadRequest) and pass the null-string for the target frame name as
1958         we do not have one. Use C++11 brace initialization syntax.
1959         (WebCore::PluginView::getURLNotify): Explicitly pass the null-string for the target frame
1960         name as we do not have one. Use C++11 brace initialization syntax.
1961         (WebCore::PluginView::getURL): Ditto.
1962         (WebCore::PluginView::handlePost): Move instantiation of FrameLoadRequest from the top of the
1963         function to closer to where it is actually used. Explicitly pass the null-string for the target
1964         frame name as we do not have one. Use C++11 brace initialization syntax.
1965
1966 2017-06-20  Daniel Bates  <dabates@apple.com>
1967
1968         Have FrameLoadRequest takes a Frame& instead of a Frame*
1969         https://bugs.webkit.org/show_bug.cgi?id=173614
1970         <rdar://problem/32884890>
1971
1972         Reviewed by Brent Fulgham.
1973
1974         * Plugins/PluginView.cpp:
1975         (WebCore::PluginView::performRequest):
1976         * WebFrame.cpp:
1977         (WebFrame::loadRequest):
1978
1979 2017-06-19  Chris Dumez  <cdumez@apple.com>
1980
1981         Use WTF::Function instead of std::function in more places in WebCore/
1982         https://bugs.webkit.org/show_bug.cgi?id=173535
1983
1984         Reviewed by Antti Koivisto.
1985
1986         Use WTF::Function instead of std::function in more places in WebCore/ to avoid copying.
1987
1988         * WebCoreSupport/WebFrameLoaderClient.cpp:
1989         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1990         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1991         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1992         (WebFrameLoaderClient::dispatchWillSubmitForm):
1993         (WebFrameLoaderClient::setUpPolicyListener):
1994         (WebFrameLoaderClient::receivedPolicyDecision):
1995         * WebCoreSupport/WebFrameLoaderClient.h:
1996
1997 2017-05-14 Frederic Wang  <fwang@igalia.com>
1998
1999         Add heuristic to avoid flattening "fullscreen" iframes
2000         https://bugs.webkit.org/show_bug.cgi?id=171914
2001
2002         Reviewed by Simon Fraser.
2003
2004         This commit ajusts the window port to internally use the new preference type for frame flattening.
2005         However, the "partial frame flattening" value is not exposed yet.
2006
2007         * WebView.cpp:
2008         (WebView::notifyPreferencesChanged): Use the new type for frame flattening.
2009
2010 2017-06-17  Chris Dumez  <cdumez@apple.com>
2011
2012         Use WTF::Function instead of std::function in WebKit2/
2013         https://bugs.webkit.org/show_bug.cgi?id=173504
2014
2015         Reviewed by Darin Adler.
2016
2017         Use WTF::Function instead of std::function in WebKit2/ to avoid
2018         unnecessary copying.
2019
2020         * Plugins/PluginStream.cpp:
2021         (WebCore::PluginStream::willSendRequest):
2022         * Plugins/PluginStream.h:
2023
2024 2017-06-16  Sam Weinig  <sam@webkit.org>
2025
2026         [WebIDL] Remove custom bindings for HTMLDocument
2027         https://bugs.webkit.org/show_bug.cgi?id=173444
2028
2029         Reviewed by Darin Adler.
2030
2031         * DOMHTMLClasses.cpp:
2032         (DOMHTMLDocument::write):
2033         (DOMHTMLDocument::writeln):
2034         Update for new signature of write/writeln.
2035
2036 2017-06-16  Daniel Bates  <dabates@apple.com>
2037
2038         Cleanup: WebContextMenuClient::searchWithGoogle() should parse URL using URL { URL { }, ... }
2039         instead of URL { ParsedURLString, ... }
2040         https://bugs.webkit.org/show_bug.cgi?id=173495
2041         <rdar://problem/32827445>
2042
2043         Reviewed by Alex Christensen.
2044
2045         URL(ParsedURLString, ...) should only be used with a string that was the result of URL::string().
2046         Otherwise, it will cause an assertion failure if the canonicalized URL differs from the string.
2047         Although it is unlikely that the hardcoded string in WebContextMenuClient::searchWithGoogle()
2048         would differ from the canonicalized URL it is best practice to use URL(URL(), ...) to
2049         parse an arbitrary string that looks like a URL.
2050
2051         Also modernize the code using C++14 idioms.
2052
2053         * WebCoreSupport/WebContextMenuClient.cpp:
2054         (WebContextMenuClient::searchWithGoogle):
2055
2056 2017-06-15  Fujii Hironori  <Hironori.Fujii@sony.com>
2057
2058         [Win] WebKit shouldn't include the forwarding header of WebKit itself
2059         https://bugs.webkit.org/show_bug.cgi?id=173352
2060
2061         Reviewed by Alex Christensen.
2062
2063         * WebKitPrefix.h: Include WebKit.h of DerivedSources/WebKit instead of DerivedSources/ForwardingHeaders.
2064
2065 2017-06-14  Per Arne Vollan  <pvollan@apple.com>
2066
2067         [Win] WebKit fails to paint the bottom lines of the window at 125% scale.
2068         https://bugs.webkit.org/show_bug.cgi?id=173318
2069
2070         Reviewed by Darin Adler.
2071
2072         The logical frame size is currently calculated by scaling the frame size in pixels,
2073         and rounding the coordinates to the nearest integers. The computed logical frame
2074         size will in some cases be smaller than the scaled frame size in pixels, since it is
2075         represented as an IntSize. In these cases, the bottom line will not be painted.
2076         Instead of calculating the logical frame size by rounding the scaled frame in
2077         pixels, find the enclosing rectangle of the scaled frame rectangle in pixels.
2078
2079         * WebCoreSupport/WebFrameLoaderClient.cpp:
2080         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2081
2082 2017-06-13  Daniel Bates  <dabates@apple.com>
2083
2084         Implement W3C Secure Contexts Draft Specification
2085         https://bugs.webkit.org/show_bug.cgi?id=158121
2086         <rdar://problem/26012994>
2087
2088         Reviewed by Brent Fulgham.
2089
2090         Part 4
2091
2092         Adds a preference to toggle the runtime enabled feature flag isSecureContextAttributeEnabled.
2093
2094         * Interfaces/IWebPreferencesPrivate.idl: Bump the version.
2095         * WebPreferenceKeysPrivate.h:
2096         * WebPreferences.cpp:
2097         (WebPreferences::initializeDefaultSettings):
2098         (WebPreferences::QueryInterface):
2099         (WebPreferences::setIsSecureContextAttributeEnabled):
2100         (WebPreferences::isSecureContextAttributeEnabled):
2101         * WebPreferences.h:
2102         * WebView.cpp:
2103         (WebView::notifyPreferencesChanged):
2104
2105 2017-06-13  Per Arne Vollan  <pvollan@apple.com>
2106
2107         [Win] WebKit fails to paint the bottom lines of the window at 125% scale.
2108         https://bugs.webkit.org/show_bug.cgi?id=173318
2109
2110         Reviewed by Alex Christensen.
2111
2112         The logical frame size is currently calculated by scaling the frame size in pixels,
2113         and rounding the coordinates to the nearest integers. The computed logical frame
2114         size will in some cases be smaller than the scaled frame size in pixels, since it is
2115         represented as an IntSize. In these cases, the bottom line will not be painted.
2116         Instead of calculating the logical frame size by rounding the scaled frame in
2117         pixels, find the enclosing rectangle of the scaled frame rectangle in pixels.
2118  
2119         * WebView.cpp:
2120         (WebView::sizeChanged):
2121
2122 2017-06-13  Sam Weinig  <sam@webkit.org>
2123
2124         Rename JSDOMWindowShell to JSDOMWindowProxy to match the HTML5 spec.
2125         https://bugs.webkit.org/show_bug.cgi?id=80733
2126
2127         Reviewed by Chris Dumez.
2128
2129         * WebFrame.cpp:
2130         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
2131
2132 2017-06-12  Daewoong Jang  <daewoong.jang@navercorp.com>
2133
2134         Remove WebCore::unloadModule and related data types
2135         https://bugs.webkit.org/show_bug.cgi?id=173231
2136
2137         Reviewed by Darin Adler.
2138
2139         * Plugins/PlatformModule.h: Added.
2140         (WebCore::PlatformModuleVersion::PlatformModuleVersion):
2141         * Plugins/PluginPackage.cpp:
2142         (WebCore::PluginPackage::freeLibraryTimerFired):
2143         * Plugins/PluginPackage.h:
2144
2145 2017-06-09  Wenson Hsieh  <wenson_hsieh@apple.com>
2146
2147         [iOS DnD] Add a hook to perform two-step drops in editable content
2148         https://bugs.webkit.org/show_bug.cgi?id=172992
2149         <rdar://problem/32590174>
2150
2151         Reviewed by Tim Horton.
2152
2153         Add a stub implementation for performTwoStepDrop on Windows.
2154
2155         * WebCoreSupport/WebEditorClient.h:
2156
2157 2017-06-04  Konstantin Tokarev  <annulen@yandex.ru>
2158
2159         Fix build of Windows-specific code with ICU 59.1
2160         https://bugs.webkit.org/show_bug.cgi?id=172729
2161
2162         Reviewed by Darin Adler.
2163
2164         Fix conversions from WTF::String to wchar_t* and vice versa.
2165
2166         * Plugins/PluginDatabaseWin.cpp:
2167         (WebCore::addPluginPathsFromRegistry):
2168         (WebCore::PluginDatabase::getPluginPathsInDirectories):
2169         (WebCore::addMozillaPluginDirectories):
2170         (WebCore::addWindowsMediaPlayerPluginDirectory):
2171         (WebCore::addAdobeAcrobatPluginDirectory):
2172         (WebCore::addJavaPluginDirectory):
2173         (WebCore::safariPluginsDirectory):
2174         (WebCore::addMacromediaPluginDirectories):
2175         * Plugins/PluginPackageWin.cpp:
2176         (WebCore::getVersionInfo):
2177         (WebCore::PluginPackage::fetchInfo):
2178         (WebCore::PluginPackage::load):
2179         * Plugins/PluginViewWin.cpp:
2180         (WebCore::PluginView::handlePostReadFile):
2181
2182 2017-05-30  Per Arne Vollan  <pvollan@apple.com>
2183
2184         [Win] fast/shadow-dom/fullscreen-in-slot-fullscreenElement.html is flaky.
2185         https://bugs.webkit.org/show_bug.cgi?id=172709
2186
2187         Reviewed by Brent Fulgham.
2188
2189         Add method to exit fullscreen mode.
2190
2191         * Interfaces/IWebViewPrivate.idl:
2192         * WebView.cpp:
2193         (WebView::exitFullscreenIfNeeded):
2194         * WebView.h:
2195
2196 2017-05-24  Per Arne Vollan  <pvollan@apple.com>
2197
2198         [Win] Create unique network storage session for each DRT.
2199         https://bugs.webkit.org/show_bug.cgi?id=172540
2200
2201         Reviewed by Brent Fulgham.
2202
2203         During layout testing, each DRT instance should have its own network storage session.
2204
2205         * Interfaces/IWebPreferencesPrivate.idl:
2206         * WebPreferences.cpp:
2207         (WebPreferences::switchNetworkLoaderToNewTestingSession):
2208         * WebPreferences.h:
2209
2210 2017-05-24  Fujii Hironori  <Hironori.Fujii@sony.com>
2211
2212         [WinCairo] AcceleratedCompositingContext.h: error C3668: 'AcceleratedCompositingContext::paintContents': method with override specifier 'override' did not override any base class methods
2213         https://bugs.webkit.org/show_bug.cgi?id=172535
2214
2215         Reviewed by Konstantin Tokarev.
2216
2217         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2218         (AcceleratedCompositingContext::paintContents): Append the fifth argument.
2219         * WebCoreSupport/AcceleratedCompositingContext.h: Ditto.
2220
2221 2017-05-14  Per Arne Vollan  <pvollan@apple.com>
2222
2223         [Win] fast/cookies/local-file-can-set-cookies.html is flaky.
2224         https://bugs.webkit.org/show_bug.cgi?id=172071
2225
2226         Reviewed by Alexey Proskuryakov.
2227
2228         We need to delete all cookies after each test.
2229
2230         * Interfaces/IWebPreferencesPrivate.idl:
2231         * WebPreferences.cpp:
2232         (WebPreferences::linkPreloadEnabled):
2233         (WebPreferences::clearNetworkLoaderSession):
2234         * WebPreferences.h:
2235
2236 2017-05-13  Chris Dumez  <cdumez@apple.com>
2237
2238         Stop using RefPtr::release()
2239         https://bugs.webkit.org/show_bug.cgi?id=172074
2240
2241         Reviewed by Geoffrey Garen.
2242
2243         * WebFrame.cpp:
2244         (WebFrame::loadPlainTextString):
2245         (WebFrame::loadHTMLString):
2246         * WebFramePolicyListener.cpp:
2247         (WebFramePolicyListener::receivedPolicyDecision):
2248
2249 2017-05-13  Chris Dumez  <cdumez@apple.com>
2250
2251         Drop uses of PassRefPtr in WebKit/win
2252         https://bugs.webkit.org/show_bug.cgi?id=172067
2253
2254         Reviewed by Yusuke Suzuki.
2255
2256         * DOMEventsClasses.cpp:
2257         (DOMEvent::DOMEvent):
2258         (DOMEvent::createInstance):
2259         * DOMEventsClasses.h:
2260         (DOMUIEvent::DOMUIEvent):
2261         (DOMKeyboardEvent::DOMKeyboardEvent):
2262         (DOMMouseEvent::DOMMouseEvent):
2263         (DOMMutationEvent::DOMMutationEvent):
2264         (DOMOverflowEvent::DOMOverflowEvent):
2265         (DOMWheelEvent::DOMWheelEvent):
2266         * MemoryStream.cpp:
2267         (MemoryStream::MemoryStream):
2268         (MemoryStream::createInstance):
2269         * MemoryStream.h:
2270         * Plugins/PluginDatabase.cpp:
2271         (WebCore::PluginDatabase::refresh):
2272         (WebCore::PluginDatabase::add):
2273         (WebCore::PluginDatabase::loadPersistentMetadataCache):
2274         * Plugins/PluginDatabase.h:
2275         * Plugins/PluginPackage.cpp:
2276         (WebCore::PluginPackage::createPackage):
2277         (WebCore::PluginPackage::createPackageFromCache):
2278         * Plugins/PluginPackage.h:
2279         * Plugins/PluginStream.h:
2280         (WebCore::PluginStream::create):
2281         * WebActionPropertyBag.cpp:
2282         (WebActionPropertyBag::WebActionPropertyBag):
2283         (WebActionPropertyBag::createInstance):
2284         * WebActionPropertyBag.h:
2285         * WebArchive.cpp:
2286         (WebArchive::createInstance):
2287         (WebArchive::WebArchive):
2288         * WebArchive.h:
2289         * WebBackForwardList.cpp:
2290         (WebBackForwardList::WebBackForwardList):
2291         (WebBackForwardList::createInstance):
2292         * WebBackForwardList.h:
2293         * WebCoreSupport/EmbeddedWidget.cpp:
2294         (EmbeddedWidget::create):
2295         * WebCoreSupport/EmbeddedWidget.h:
2296         * WebCoreSupport/WebChromeClient.h:
2297         * WebFrame.cpp:
2298         (WebFrame::loadData):
2299         (WebFrame::createSubframeWithOwnerElement):
2300         * WebFrame.h:
2301         * WebFramePolicyListener.cpp:
2302         (WebFramePolicyListener::WebFramePolicyListener):
2303         (WebFramePolicyListener::createInstance):
2304         * WebFramePolicyListener.h:
2305         * WebGeolocationPolicyListener.cpp:
2306         (WebGeolocationPolicyListener::createInstance):
2307         (WebGeolocationPolicyListener::WebGeolocationPolicyListener):
2308         * WebGeolocationPolicyListener.h:
2309         * WebHistoryItem.cpp:
2310         (WebHistoryItem::WebHistoryItem):
2311         (WebHistoryItem::createInstance):
2312         * WebHistoryItem.h:
2313         * WebMutableURLRequest.cpp:
2314         (WebMutableURLRequest::setFormData):
2315         (WebMutableURLRequest::formData):
2316         * WebMutableURLRequest.h:
2317         * WebResource.cpp:
2318         (WebResource::createInstance):
2319         * WebResource.h:
2320         * WebScriptWorld.cpp:
2321         (WebScriptWorld::WebScriptWorld):
2322         (WebScriptWorld::createInstance):
2323         * WebScriptWorld.h:
2324         * WebURLAuthenticationChallengeSender.cpp:
2325         (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
2326         (WebURLAuthenticationChallengeSender::createInstance):
2327         * WebURLAuthenticationChallengeSender.h:
2328         * WebView.cpp:
2329         (WebView::setFullScreenElement):
2330         * WebView.h:
2331
2332 2017-05-11  Chris Dumez  <cdumez@apple.com>
2333
2334         Drop remaining uses of PassRefPtr in WebCore
2335         https://bugs.webkit.org/show_bug.cgi?id=172013
2336
2337         Reviewed by Yusuke Suzuki.
2338
2339         * Plugins/PluginView.cpp:
2340         (WebCore::PluginView::bindingInstance):
2341
2342 2017-05-11  Chris Dumez  <cdumez@apple.com>
2343
2344         Stop using PassRefPtr in platform/graphics
2345         https://bugs.webkit.org/show_bug.cgi?id=171977
2346
2347         Reviewed by Alex Christensen.
2348
2349         Build fix.
2350
2351         * FullscreenVideoController.cpp:
2352         (FullscreenVideoController::enterFullscreen):
2353         * WebKitDLL.cpp:
2354         (loadResourceIntoBuffer):
2355
2356 2017-05-09  Sam Weinig  <sam@webkit.org>
2357
2358         Remove support for legacy Notifications
2359         https://bugs.webkit.org/show_bug.cgi?id=171487
2360
2361         Reviewed by Jon Lee.
2362
2363         * WebCoreSupport/WebChromeClient.cpp:
2364         (WebChromeClient::WebChromeClient):
2365         * WebCoreSupport/WebChromeClient.h:
2366         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
2367         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
2368         Remove legacy notification specific code.
2369
2370 2017-05-09  Dean Jackson  <dino@apple.com>
2371
2372         Fix Windows build.
2373
2374         * Plugins/PluginView.h:
2375         * Plugins/PluginViewWin.cpp:
2376         (WebCore::PluginView::paint):
2377
2378 2017-05-06  Alexey Proskuryakov  <ap@apple.com>
2379
2380         REGRESSION (r216294): The new test fails on WebKit1
2381         https://bugs.webkit.org/show_bug.cgi?id=171780
2382
2383         Rolling back https://trac.webkit.org/r216294, https://trac.webkit.org/r216296,
2384         https://trac.webkit.org/216299, https://trac.webkit.org/216330
2385
2386         * Plugins/PluginView.h:
2387         * Plugins/PluginViewWin.cpp:
2388         (WebCore::PluginView::paint):
2389
2390 2017-05-06  Simon Fraser  <simon.fraser@apple.com>
2391
2392         Fix Windows build after r216294.
2393
2394         * Plugins/PluginView.h:
2395         * Plugins/PluginViewWin.cpp:
2396         (WebCore::PluginView::paint):
2397
2398 2017-05-04  Commit Queue  <commit-queue@webkit.org>
2399
2400         Unreviewed, rolling out r216206.
2401         https://bugs.webkit.org/show_bug.cgi?id=171714
2402
2403         Multiple LayoutTests crashing in Document::page() (Requested
2404         by ap on #webkit).
2405
2406         Reverted changeset:
2407
2408         "Remove support for legacy Notifications"
2409         https://bugs.webkit.org/show_bug.cgi?id=171487
2410         http://trac.webkit.org/changeset/216206
2411
2412 2017-05-04  Don Olmstead  <don.olmstead@am.sony.com>
2413
2414         [Win] Remove redundant macros that are set in the CMake config
2415         https://bugs.webkit.org/show_bug.cgi?id=171571
2416
2417         Reviewed by Brent Fulgham.
2418
2419         * COMEnumVariant.h:
2420         * COMPropertyBag.h:
2421         * WebKitPrefix.h:
2422
2423 2017-05-04  Sam Weinig  <sam@webkit.org>
2424
2425         Remove support for legacy Notifications
2426         https://bugs.webkit.org/show_bug.cgi?id=171487
2427
2428         Reviewed by Jon Lee.
2429
2430         * WebCoreSupport/WebChromeClient.cpp:
2431         (WebChromeClient::WebChromeClient):
2432         * WebCoreSupport/WebChromeClient.h:
2433         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
2434         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
2435         Remove legacy notification specific code.
2436
2437 2017-04-27  Alex Christensen  <achristensen@webkit.org>
2438
2439         Modernize Frame.h
2440         https://bugs.webkit.org/show_bug.cgi?id=171357
2441
2442         Reviewed by Andy Estes.
2443
2444         * WebCoreSupport/WebEditorClient.cpp:
2445         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
2446         * WebCoreSupport/WebEditorClient.h:
2447
2448 2017-04-20  Fujii Hironori  <Hironori.Fujii@sony.com>
2449
2450         [WinCairo] Fix build break after updating ANGLE
2451         https://bugs.webkit.org/show_bug.cgi?id=170980
2452
2453         Reviewed by Brent Fulgham.
2454
2455         * WebCoreSupport/AcceleratedCompositingContext.cpp: Define GL_GLEXT_PROTOTYPES.
2456
2457 2017-04-19  Brent Fulgham  <bfulgham@apple.com>
2458
2459         [Win] REGRESSION(r215486): Windows Release build is broken
2460         https://bugs.webkit.org/show_bug.cgi?id=171024
2461         <rdar://problem/31722618>
2462
2463         Reviewed by Mark Lam.
2464
2465         Windows WebKit refers to a handful of JSC methods that are always
2466         inline. We need to include 'HeapInlines.h' to get the implementation
2467         of these methods.
2468
2469         * Plugins/PluginPackage.cpp:
2470         * WebFrame.cpp:
2471         * WebView.cpp:
2472
2473 2017-04-15  Wenson Hsieh  <wenson_hsieh@apple.com>
2474
2475         Unreviewed, fix the Windows build after r215385
2476
2477         r215385 introduced a new virtual method on ChromeClient that needs to be implemented in WebChromeClient for
2478         Windows in WebKit1.
2479
2480         * WebCoreSupport/WebChromeClient.cpp:
2481         (WebChromeClient::createIconForFiles):
2482         * WebCoreSupport/WebChromeClient.h:
2483
2484 2017-04-10  Chris Dumez  <cdumez@apple.com>
2485
2486         Drop Timer::startOneShot() overload taking a double
2487         https://bugs.webkit.org/show_bug.cgi?id=170659
2488
2489         Reviewed by Yusuke Suzuki.
2490
2491         Drop Timer::startOneShot() overload taking a double as people should use Seconds type now.
2492
2493         * Plugins/PluginMessageThrottlerWin.cpp:
2494         (WebCore::PluginMessageThrottlerWin::appendMessage):
2495         (WebCore::PluginMessageThrottlerWin::messageThrottleTimerFired):
2496         * Plugins/PluginViewWin.cpp:
2497         (WebCore::PluginView::invalidateRect):
2498         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2499         (AcceleratedCompositingContext::scheduleLayerFlush):
2500
2501 2017-04-09  Chris Dumez  <cdumez@apple.com>
2502
2503         Drop Timer::startRepeating() overload taking a double
2504         https://bugs.webkit.org/show_bug.cgi?id=170656
2505
2506         Reviewed by Yusuke Suzuki.
2507
2508         Drop Timer::startRepeating() overload taking a double as people should use Seconds type now.
2509
2510         * FullscreenVideoController.cpp:
2511
2512 2017-04-09  Chris Dumez  <cdumez@apple.com>
2513
2514         Start dropping Timer API dealing with double
2515         https://bugs.webkit.org/show_bug.cgi?id=170649
2516
2517         Reviewed by Yusuke Suzuki.
2518
2519         Start dropping Timer API dealing with double as people should use Seconds now.
2520
2521         * Plugins/PluginPackage.cpp:
2522         (WebCore::PluginPackage::freeLibrarySoon):
2523         * Plugins/PluginStream.cpp:
2524         (WebCore::PluginStream::deliverData):
2525         * Plugins/PluginView.cpp:
2526         (WebCore::PluginView::requestTimerFired):
2527         (WebCore::PluginView::scheduleRequest):
2528         (WebCore::PluginView::setJavaScriptPaused):
2529         (WebCore::PluginView::keepAlive):
2530         * Plugins/PluginViewWin.cpp:
2531         (WebCore::PluginView::wndProc):
2532         * WebView.cpp:
2533         (WebView::closeWindowSoon):
2534
2535 2017-04-08  Chris Dumez  <cdumez@apple.com>
2536
2537         Drop std::chrono support from Timer class
2538         https://bugs.webkit.org/show_bug.cgi?id=170645
2539
2540         Reviewed by Sam Weinig.
2541
2542         Drop std::chrono support from Timer class now that we prefer using Seconds type.
2543
2544         * WebView.cpp:
2545         (WebView::setCacheModel):
2546
2547 2017-03-31  Fujii Hironori  <Hironori.Fujii@sony.com>
2548
2549         [WinCairo] WebCore::PlatformDisplay::terminateEGLDisplay causes a crash in libGLESv2.dll while processing atexit
2550         https://bugs.webkit.org/show_bug.cgi?id=170331
2551
2552         Reviewed by Michael Catanzaro.
2553
2554         * WebKitDLL.cpp:
2555         (shutDownWebKit): Call PlatformDisplay::shutDownEglDisplays in shutDownWebKit.
2556
2557 2017-03-30  James Craig  <jcraig@apple.com>
2558
2559         AX: Expose a new AXSubrole for explicit ARIA "group" role
2560         https://bugs.webkit.org/show_bug.cgi?id=169810
2561         <rdar://problem/31039693>
2562
2563         Reviewed by Chris Fleizach.
2564
2565         Account for Windows platform role mapping.
2566
2567         * AccessibleBase.cpp:
2568         (MSAARole):
2569
2570 2017-03-24  Wenson Hsieh  <wenson_hsieh@apple.com>
2571
2572         [WK2] Add a UI delegate SPI hook to enable or disable navigation on drop
2573         https://bugs.webkit.org/show_bug.cgi?id=169168
2574         <rdar://problem/30688374>
2575
2576         Reviewed by Tim Horton.
2577
2578         Minor tweak to adjust for a changed interface. See WebKit and WebCore ChangeLogs for more information.
2579
2580         * WebCoreSupport/WebDragClient.cpp:
2581         (WebDragClient::actionMaskForDrag):
2582         * WebCoreSupport/WebDragClient.h:
2583
2584 2017-03-13  Per Arne Vollan  <pvollan@apple.com>
2585
2586         [Win] Compile fix.
2587         https://bugs.webkit.org/show_bug.cgi?id=169545
2588
2589         Reviewed by Brent Fulgham.
2590
2591         Fix inconsistent dll linkage warnings.
2592  
2593         * WebKitDLL.cpp:
2594         * WebKitDLL.h:
2595
2596 2017-03-13  Per Arne Vollan  <pvollan@apple.com>
2597
2598         Unreviewed Win build fix.
2599         
2600         WebCore::CookiesStrategy::addCookie has been removed, we should also remove the override.
2601
2602         * WebCoreSupport/WebPlatformStrategies.cpp:
2603         (WebPlatformStrategies::addCookie): Deleted.
2604         (WebPlatformStrategies::addCookie): Deleted.
2605         * WebCoreSupport/WebPlatformStrategies.h:
2606
2607 2017-03-10  Brent Fulgham  <bfulgham@apple.com>
2608
2609         [Win] Re-export a few symbols for backwards compatibility
2610         https://bugs.webkit.org/show_bug.cgi?id=169490
2611         <rdar://problem/30983623>
2612
2613         Reviewed by Dean Jackson.
2614
2615         Re-introduce a workaround that re-exports a few JavaScriptCore functions
2616         that had been erroneously exported by WebKit in older builds. This
2617         is needed so that we do not break certain old software still being used.
2618
2619         * WebKitDLL.cpp:
2620         (DllMain): Bind functions at startup.
2621         (bindJavaScriptTrampoline): Find JavaScriptCore library functions and
2622         re-export them from WebKit.dll.
2623         * WebKitDLL.h: Only advertise these functions when building WebKt itself.
2624
2625 2017-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
2626
2627         Expand font-weight and font-stretch to take any number
2628         https://bugs.webkit.org/show_bug.cgi?id=168889
2629
2630         Reviewed by Simon Fraser.
2631
2632         Migrate off old enum types.
2633
2634         * WebKitGraphics.cpp:
2635         (makeFont):
2636
2637 2017-03-02  Sam Weinig  <sam@webkit.org>
2638
2639         Rename htmlediting.h/cpp to Editing.h/cpp
2640         https://bugs.webkit.org/show_bug.cgi?id=169103
2641
2642         Reviewed by Alex Christensen.
2643
2644         * AccessibleTextImpl.cpp:
2645
2646 2017-03-01  Alex Christensen  <achristensen@webkit.org>
2647
2648         Actually fix Windows build.
2649
2650         * WebFrame.cpp:
2651         (WebFrame::invalidate):
2652         r213266 changed Style::Force to ResolveStyleType::Rebuild, so I did so here.
2653
2654 2017-03-01  Alex Christensen  <achristensen@webkit.org>
2655
2656         Fix Windows build after r213266
2657         https://bugs.webkit.org/show_bug.cgi?id=169049
2658
2659         * WebFrame.cpp:
2660         (WebFrame::invalidate):
2661
2662 2017-02-27  Per Arne Vollan  <pvollan@apple.com>
2663
2664         [Win] Http preload tests are failing.
2665         https://bugs.webkit.org/show_bug.cgi?id=168910
2666
2667         Reviewed by Alex Christensen.
2668
2669         The feature is not enabled.
2670
2671         * WebView.cpp:
2672         (WebView::notifyPreferencesChanged):
2673
2674 2017-02-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2675
2676         Better handle Thread and RunLoop initialization
2677         https://bugs.webkit.org/show_bug.cgi?id=167828
2678
2679         Reviewed by Yusuke Suzuki.
2680
2681         Remove unnecessary call to WTF::initializeMainThread().
2682
2683         * WebView.cpp:
2684         (WebView::WebView):
2685
2686 2017-02-20  Per Arne Vollan  <pvollan@apple.com>
2687
2688         [Win] Custom scale factor is not applied in all cases.
2689         https://bugs.webkit.org/show_bug.cgi?id=168117
2690
2691         Reviewed by Brent Fulgham.
2692
2693         We should not call the function deviceScaleFactorForWindow directly, since this
2694         will return the system scale factor, and ignore the custom scale factor.
2695
2696         * WebView.cpp:
2697         (WebView::handleContextMenuEvent):
2698         (WebView::handleMouseEvent):
2699         (WebView::setAcceleratedCompositing):
2700
2701 2017-02-16  Daniel Bates  <dabates@apple.com>
2702
2703         Remove Chromium-specific code to call FrameLoaderClient::redirectDataToPlugin(nullptr)
2704         https://bugs.webkit.org/show_bug.cgi?id=168417
2705         <rdar://problem/30541748>
2706
2707         Reviewed by Brent Fulgham.
2708
2709         Update override of FrameLoaderClient::redirectDataToPlugin() to take a Widget& instead of a
2710         Widget* as it is always called with a valid Widget.
2711
2712         * WebCoreSupport/WebFrameLoaderClient.cpp:
2713         (WebFrameLoaderClient::redirectDataToPlugin):
2714         * WebCoreSupport/WebFrameLoaderClient.h:
2715
2716 2017-02-15  Anders Carlsson  <andersca@apple.com>
2717
2718         Another attempt at fixing the Windows build.
2719
2720         * WebCoreSupport/WebDragClient.cpp:
2721         (WebDragClient::startDrag):
2722
2723 2017-02-15  Anders Carlsson  <andersca@apple.com>
2724
2725         Try to fix the Windows build.
2726
2727         * WebCoreSupport/WebDragClient.h:
2728
2729 2017-02-15  Anders Carlsson  <andersca@apple.com>
2730
2731         Modernize DragClient::startDrag somewhat
2732         https://bugs.webkit.org/show_bug.cgi?id=168379
2733
2734         Reviewed by Tim Horton.
2735
2736         Update for WebCore changes.
2737
2738         * WebCoreSupport/WebDragClient.cpp:
2739         (WebDragClient::startDrag):
2740
2741 2017-02-10  Daniel Bates  <dabates@apple.com>
2742
2743         Attempt to fix the WinCairo 64-Bit Release build following <https://trac.webkit.org/changeset/212173>
2744         (https://bugs.webkit.org/show_bug.cgi?id=166774)
2745
2746         Touch WebKit.idl in the hopes that it will cause CMake to regenerate the COM interface files.
2747
2748         * Interfaces/WebKit.idl:
2749
2750 2017-02-10  Daniel Bates  <dabates@apple.com>
2751
2752         Detach frame from document when entering page cache
2753         https://bugs.webkit.org/show_bug.cgi?id=166774
2754         <rdar://problem/29904368>
2755
2756         Reviewed by Chris Dumez.
2757
2758         * Interfaces/IWebPreferencesPrivate.idl:
2759         * WebPreferenceKeysPrivate.h:
2760         * WebPreferences.cpp:
2761         (WebPreferences::initializeDefaultSettings):
2762         (WebPreferences::setAllowsPageCacheWithWindowOpener): Deleted.
2763         (WebPreferences::allowsPageCacheWithWindowOpener): Deleted.
2764         * WebPreferences.h:
2765         * WebView.cpp:
2766         (WebView::notifyPreferencesChanged):
2767
2768 2017-02-10  Joseph Pecoraro  <pecoraro@apple.com>
2769
2770         [Resource Timing] Enable Resource Timing by default in Tests
2771         https://bugs.webkit.org/show_bug.cgi?id=168145
2772
2773         Reviewed by Ryosuke Niwa.
2774
2775         * Interfaces/IWebPreferencesPrivate.idl:
2776         * WebPreferenceKeysPrivate.h:
2777         * WebPreferences.cpp:
2778         (WebPreferences::initializeDefaultSettings):
2779         (WebPreferences::setResourceTimingEnabled):
2780         (WebPreferences::resourceTimingEnabled):
2781         * WebPreferences.h:
2782         * WebView.cpp:
2783         (WebView::notifyPreferencesChanged):
2784
2785 2017-02-06  Alex Christensen  <achristensen@webkit.org>
2786
2787         More build fixes after r211751
2788         https://bugs.webkit.org/show_bug.cgi?id=166998
2789
2790         * WebDownloadCFNet.cpp:
2791         (WebDownload::didReceiveAuthenticationChallenge):
2792
2793 2017-02-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
2794
2795         Rename AnimationController to CSSAnimationController
2796         https://bugs.webkit.org/show_bug.cgi?id=167829
2797
2798         Reviewed by Simon Fraser.
2799
2800         * WebFrame.cpp:
2801
2802 2017-02-02  Wenson Hsieh  <wenson_hsieh@apple.com>
2803
2804         Drag images should be anchored to the mouse location
2805         https://bugs.webkit.org/show_bug.cgi?id=167690
2806         <rdar://problem/30295261>
2807
2808         Reviewed by Enrica Casucci.
2809
2810         Adds some plumbing for the anchor point in the WK1 client layer.
2811
2812         * WebCoreSupport/WebDragClient.cpp:
2813         (WebDragClient::startDrag):
2814         * WebCoreSupport/WebDragClient.h:
2815
2816 2017-02-02  Per Arne Vollan  <pvollan@apple.com>
2817
2818         [Win][HiDPI] Scale factor is applied twice in accelerated compositing mode.
2819         https://bugs.webkit.org/show_bug.cgi?id=167732
2820
2821         Reviewed by Brent Fulgham.
2822
2823         Backing layer should not be scaled when CACFLayerSetContentsScale is used for scaling.
2824
2825         * WebView.cpp:
2826         (WebView::setAcceleratedCompositing):
2827
2828 2017-02-02  Chris Dumez  <cdumez@apple.com>
2829
2830         [Crash] com.apple.WebKit.WebContent at WebKit: WebKit::WebPage::fromCorePage()
2831         https://bugs.webkit.org/show_bug.cgi?id=167738
2832         <rdar://problem/30229990>
2833
2834         Reviewed by Andreas Kling.
2835
2836         The BackForwardClient no longer needs to worry about removing HistoryItems
2837         from the PageCache now that WebCore takes care of it.
2838
2839         * BackForwardList.cpp:
2840         (BackForwardList::close):
2841
2842 2017-01-28  Yoav Weiss  <yoav@yoav.ws>
2843
2844         Add Link Preload as an off-by-default experimental feature menu item.
2845         https://bugs.webkit.org/show_bug.cgi?id=167201
2846
2847         Reviewed by Ryosuke Niwa.
2848
2849         * WebPreferenceKeysPrivate.h:
2850         * WebPreferences.cpp:
2851         (WebPreferences::initializeDefaultSettings):
2852         (WebPreferences::valueForKey):
2853         (WebPreferences::setLinkPreloadEnabled):
2854         (WebPreferences::linkPreloadEnabled):
2855         * WebPreferences.h:
2856         * Interfaces/IWebPreferencesPrivate.idl:
2857
2858 2017-01-28  Joseph Pecoraro  <pecoraro@apple.com>
2859
2860         Add User Timing Experimental Feature
2861         https://bugs.webkit.org/show_bug.cgi?id=167542
2862         <rdar://problem/22746307>
2863
2864         Reviewed by Ryosuke Niwa.
2865
2866         * Interfaces/IWebPreferencesPrivate.idl:
2867         * WebPreferenceKeysPrivate.h:
2868         * WebPreferences.cpp:
2869         (WebPreferences::initializeDefaultSettings):
2870         (WebPreferences::setUserTimingEnabled):
2871         (WebPreferences::userTimingEnabled):
2872         * WebPreferences.h:
2873         * WebView.cpp:
2874         (WebView::notifyPreferencesChanged):
2875         Add setting for User Timing runtime enabled feature.
2876
2877 2017-01-26  Chris Dumez  <cdumez@apple.com>
2878
2879         Crash when navigating back to a page in PacheCache when one of its frames has been removed
2880         https://bugs.webkit.org/show_bug.cgi?id=167421
2881         <rdar://problem/30188490>
2882
2883         Reviewed by Darin Adler.
2884
2885         Add a new setting allowing layout tests to enable PageCache in a window
2886         that has an opener, for convenience.
2887
2888         * WebPreferenceKeysPrivate.h:
2889         * WebPreferences.cpp:
2890         (WebPreferences::initializeDefaultSettings):
2891         * WebPreferences.h:
2892
2893 2017-01-26  Keith Miller  <keith_miller@apple.com>
2894
2895         classInfo should take a VM so it is not materialized from the object on each call
2896         https://bugs.webkit.org/show_bug.cgi?id=167424
2897
2898         Rubber Stamped by Michael Saboff.
2899
2900         Previously, classInfo() would get the VM from the target's
2901         MarkedBlock.  Most callers already have a VM on hand, so it is
2902         wasteful to compute the VM from the marked block every time. This
2903         patch refactors some of the most common callers of classInfo(),
2904         jsDynamicCast and inherits to take a VM as well.
2905
2906         * WebFrame.cpp:
2907         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
2908         * WebView.cpp:
2909         (WebView::elementFromJS):
2910
2911 2017-01-26  Per Arne Vollan  <pvollan@apple.com>
2912
2913         Crash when setting custom scale factor.
2914         https://bugs.webkit.org/show_bug.cgi?id=167369
2915
2916         Reviewed by Sam Weinig.
2917
2918         Add null pointer check.
2919
2920         * WebView.cpp:
2921         (WebView::setCustomBackingScaleFactor):
2922
2923 2017-01-24  Youenn Fablet  <youennf@gmail.com>
2924
2925         [WebRTC] Introduce libwebrtc abstraction for WK1/WK2 implementations
2926         https://bugs.webkit.org/show_bug.cgi?id=167294
2927
2928         Reviewed by Alex Christensen.
2929
2930         * WebView.cpp:
2931         (WebView::initWithFrame):
2932
2933 2017-01-23  Chris Dumez  <cdumez@apple.com>
2934
2935         REGRESSION (r211033): ASSERTION FAILED: m_ptr in com.apple.WebCore: WTF::RefPtr<WebCore::Element>::operator* const + 70
2936         https://bugs.webkit.org/show_bug.cgi?id=167308
2937         <rdar://problem/30144964>
2938
2939         Unreviewed, do a partial revert of r211033 to fix assertion.
2940
2941         * WebCoreSupport/WebChromeClient.cpp:
2942         (WebChromeClient::exitFullScreenForElement):
2943
2944 2017-01-20  Darin Adler  <darin@apple.com>
2945
2946         Remove PassRefPtr from "page" directory of WebCore, also deploy references
2947         https://bugs.webkit.org/show_bug.cgi?id=167224
2948
2949         Reviewed by Chris Dumez.
2950
2951         * Plugins/PluginView.cpp:
2952         (WebCore::PluginView::status): Pass reference.
2953         (WebCore::PluginView::focusPluginElement): Ditto.
2954
2955         * WebCoreSupport/WebChromeClient.cpp:
2956         (WebChromeClient::createWindow): Updated for change to ChromeClient.
2957         (WebChromeClient::runBeforeUnloadConfirmPanel): Ditto.
2958         (WebChromeClient::runJavaScriptAlert): Ditto.
2959         (WebChromeClient::runJavaScriptConfirm): Ditto.
2960         (WebChromeClient::runJavaScriptPrompt): Ditto.
2961         (WebChromeClient::contentsSizeChanged): Ditto.
2962         (WebChromeClient::unavailablePluginButtonClicked): Ditto.
2963         (WebChromeClient::print): Ditto.
2964         (WebChromeClient::exceededDatabaseQuota): Ditto.
2965         (WebChromeClient::reachedApplicationCacheOriginQuota): Ditto.
2966         (WebChromeClient::attachRootGraphicsLayer): Ditto.
2967         (WebChromeClient::attachViewOverlayGraphicsLayer): Ditto.
2968         (WebChromeClient::enterVideoFullscreenForVideoElement): Ditto.
2969         (WebChromeClient::createPopupMenu): Ditto.
2970         (WebChromeClient::createSearchPopupMenu): Ditto.
2971         (WebChromeClient::supportsFullScreenForElement): Ditto.
2972         (WebChromeClient::enterFullScreenForElement): Ditto.
2973         (WebChromeClient::exitFullScreenForElement): Ditto.
2974         (WebChromeClient::shouldUseTiledBackingForFrameView): Ditto.
2975         * WebCoreSupport/WebChromeClient.h: Ditto.
2976
2977 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
2978
2979         Remove never changing IndexedDB RuntimeEnabledFeature
2980         https://bugs.webkit.org/show_bug.cgi?id=167278
2981
2982         Reviewed by Darin Adler.
2983
2984         * WebView.cpp:
2985         (WebView::notifyPreferencesChanged):
2986
2987 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
2988
2989         Cleanup RuntimeEnabledFeatures
2990         https://bugs.webkit.org/show_bug.cgi?id=167228
2991
2992         Reviewed by Simon Fraser.
2993
2994         * WebView.cpp:
2995         (WebView::notifyPreferencesChanged):
2996
2997 2017-01-20  Alex Christensen  <achristensen@webkit.org>
2998
2999         Build Fix for Windows DumpRenderTree after r210976
3000         https://bugs.webkit.org/show_bug.cgi?id=167115
3001
3002         * WebPreferences.h:
3003         Remove extra space.
3004         * IWebPreferencesPrivate.idl:
3005         Add new interface functions.
3006         * WebView.cpp:
3007         We use new functions that are only in IWebPreferencesPrivate4,
3008         so instantiate that COM object instead of version 3.
3009
3010 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
3011
3012         Build Fix for Windows DumpRenderTree after r210976
3013
3014         * WebPreferenceKeysPrivate.h:
3015         * WebPreferences.cpp:
3016         (WebPreferences::initializeDefaultSettings):
3017         (WebPreferences::setWebAnimationsEnabled):
3018         (WebPreferences::webAnimationsEnabled):
3019         * WebPreferences.h:
3020         * WebView.cpp:
3021         Add toggle APIs for WebAnimations.
3022
3023 2017-01-19  Chris Dumez  <cdumez@apple.com>
3024
3025         iterable<> should be enabled on WK1
3026         https://bugs.webkit.org/show_bug.cgi?id=167221
3027         <rdar://problem/30108531>
3028
3029         Reviewed by Youenn Fablet.
3030
3031         * Interfaces/IWebPreferencesPrivate.idl:
3032         * WebPreferenceKeysPrivate.h:
3033         * WebPreferences.cpp:
3034         (WebPreferences::setDOMIteratorEnabled): Deleted.
3035         (WebPreferences::domIteratorEnabled): Deleted.
3036         * WebPreferences.h:
3037         * WebView.cpp:
3038         (WebView::notifyPreferencesChanged):
3039
3040 2017-01-18  Alex Christensen  <achristensen@webkit.org>
3041
3042         Fix WinCairo build after r210845.
3043         https://bugs.webkit.org/show_bug.cgi?id=167055
3044
3045         * WebCoreSupport/WebFrameLoaderClient.cpp:
3046         * WebCoreSupport/WebFrameLoaderClient.h:
3047         shouldCacheResponse isn't used when loading with libcurl.
3048         It was dead code before Darin added "override".
3049         WebCore/FrameLoaderClient.h has this inside of USE(CFURLCONNECTION) macros, now we have them here, too.
3050
3051 2017-01-18  Andreas Kling  <akling@apple.com>
3052
3053         Document::securityOrigin() should return a reference.
3054         <https://webkit.org/b/167124>
3055
3056         Reviewed by Sam Weinig.
3057
3058         * Plugins/PluginView.cpp:
3059         (WebCore::PluginView::load):
3060         * WebCoreSupport/WebChromeClient.cpp:
3061         (WebChromeClient::exceededDatabaseQuota):
3062         * WebCoreSupport/WebFrameLoaderClient.cpp:
3063         (WebFrameLoaderClient::didRunInsecureContent):
3064         * WebCoreSupport/WebFrameLoaderClient.h:
3065         * WebCoreSupport/WebGeolocationClient.cpp:
3066         (WebGeolocationClient::requestPermission):
3067         * WebFrame.cpp:
3068         (WebFrame::allowsFollowingLink):
3069
3070 2017-01-15  Darin Adler  <darin@apple.com>
3071
3072         Remove PassRefPtr from "loader" directory of WebCore
3073         https://bugs.webkit.org/show_bug.cgi?id=167055
3074
3075         Reviewed by Alex Christensen.
3076
3077         * Plugins/PluginView.cpp:
3078         (WebCore::PluginView::mediaCanStart): Fix call to dispatchDidFailToStartPlugin
3079         by calling it directly on WebFrameLoaderClient. If my theory is correct, the old
3080         call has been broken and doing nothing since r177941, two years ago, which made
3081         the argument types different between FrameLoaderClient and WebFrameLoaderClient,
3082         leaving WebFrameLoaderClient::dispatchDidFailToStartPlugin as dead code.
3083
3084         * WebCoreSupport/WebChromeClient.cpp:
3085         (WebChromeClient::runOpenPanel): Updated for change to ChromeClient.
3086         * WebCoreSupport/WebChromeClient.h: Ditto.
3087
3088         * WebCoreSupport/WebEditorClient.cpp:
3089         (WebEditorUndoCommand::WebEditorUndoCommand): Take a reference instead of
3090         a PassRefPtr. Also use Ref instead of RefPtr.
3091         (WebEditorClient::shouldChangeTypingStyle): Deleted. Empty function that was
3092         never called.
3093         (WebEditorClient::webViewDidChangeTypingStyle): Ditto.
3094         (WebEditorClient::webViewDidChangeSelection): Ditto.
3095         (WebEditorClient::registerUndoStep):  Take reference instead of PassRefPtr.
3096         (WebEditorClient::registerRedoStep): Ditto.
3097         * WebCoreSupport/WebEditorClient.h: Updated for the above. Also marked the
3098         class and member functions final and made them all private, which will
3099         help us catch if there are any that don't correctly match WebCore.
3100
3101         * WebCoreSupport/WebFrameLoaderClient.cpp:
3102         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Updated
3103         for change to ChromeClient.
3104         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
3105         (WebFrameLoaderClient::dispatchWillSendSubmitEvent): Ditto.
3106         (WebFrameLoaderClient::dispatchWillSubmitForm): Ditto.
3107         (WebFrameLoaderClient::createFrame): Ditto. Also merged two functions into
3108         one because one was private and only called by the other.
3109         (WebFrameLoaderClient::createPlugin): Ditto.
3110         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
3111         (WebFrameLoaderClient::createNetworkingContext): Ditto.
3112         * WebCoreSupport/WebFrameLoaderClient.h: Ditto.
3113
3114         * WebCoreSupport/WebFrameNetworkingContext.h:
3115         (WebFrameNetworkingContext::create): Return a Ref instead of a PassRefPtr.
3116
3117 2017-01-12  Joseph Pecoraro  <pecoraro@apple.com>
3118
3119         Remove unnecessary includes of Page.h
3120         https://bugs.webkit.org/show_bug.cgi?id=166996
3121
3122         Reviewed by Yusuke Suzuki.
3123
3124         * AccessibleTextImpl.cpp:
3125         * BackForwardList.cpp:
3126
3127 2017-01-06  Darin Adler  <darin@apple.com>
3128
3129         Remove PassRefPtr use from "inspector", "platform/sql", and "platform/text"
3130         https://bugs.webkit.org/show_bug.cgi?id=166797
3131
3132         Reviewed by Alex Christensen.
3133
3134         * WebCoreSupport/WebEditorClient.h: Update argument to take a reference
3135         instead of a PassRefPtr.
3136
3137 2017-01-05  Andreas Kling  <akling@apple.com>
3138
3139         Remove ChromeClient::needTouchEvents().
3140         <https://webkit.org/b/166723>
3141
3142         Rubber-stamped by Antti Koivisto.
3143
3144         * WebCoreSupport/WebChromeClient.h:
3145
3146 2017-01-04  Darin Adler  <darin@apple.com>
3147
3148         Remove PassRefPtr use from the "html" directory, other improvements
3149         https://bugs.webkit.org/show_bug.cgi?id=166635
3150
3151         Reviewed by Alex Christensen.
3152
3153         * WebCoreSupport/WebChromeClient.cpp:
3154         (WebChromeClient::loadIconForFiles): Take a reference instead of a pointer.
3155         * WebCoreSupport/WebChromeClient.h: Updated for the above.
3156
3157 2016-12-30  Darin Adler  <darin@apple.com>
3158
3159         Remove PassRefPtr use from the "dom" directory, related cleanup
3160         https://bugs.webkit.org/show_bug.cgi?id=166569
3161
3162         Reviewed by Alex Christensen.
3163
3164         * WebCoreSupport/WebFrameLoaderClient.cpp:
3165         (WebFrameLoaderClient::dispatchDidReceiveTitle): Updated since StringWithDirection::title
3166         is now a data member, not a function member.
3167         (WebFrameLoaderClient::updateGlobalHistory): Ditto.
3168         (WebFrameLoaderClient::setTitle): Ditto.
3169         * WebDataSource.cpp:
3170         (WebDataSource::pageTitle): Ditto.
3171
3172 2016-12-25  Yusuke Suzuki  <utatane.tea@gmail.com>
3173
3174         Propagate the source origin as much as possible
3175         https://bugs.webkit.org/show_bug.cgi?id=166348
3176
3177         Reviewed by Darin Adler.
3178
3179         * Plugins/PluginPackage.cpp:
3180         (WebCore::NPN_Evaluate):
3181         (WebCore::makeSource): Deleted.
3182
3183 2016-12-22  Andy Estes  <aestes@apple.com>
3184
3185         Make WebCore::EditorInsertAction an enum class
3186         https://bugs.webkit.org/show_bug.cgi?id=166424
3187
3188         Reviewed by Brent Fulgham.
3189
3190         * WebCoreSupport/WebEditorClient.cpp:
3191         (kit):
3192         (WebEditorClient::shouldInsertNode):
3193         (WebEditorClient::shouldInsertText):
3194
3195 2016-12-19  Yusuke Suzuki  <utatane.tea@gmail.com>
3196
3197         [ES6] Enable ES6 Modules
3198         https://bugs.webkit.org/show_bug.cgi?id=165849
3199
3200         Reviewed by Geoffrey Garen.
3201
3202         * Interfaces/IWebPreferencesPrivate.idl:
3203         * WebPreferenceKeysPrivate.h:
3204         * WebPreferences.cpp:
3205         (WebPreferences::setES6ModulesEnabled): Deleted.
3206         (WebPreferences::es6ModulesEnabled): Deleted.
3207         * WebPreferences.h:
3208         * WebView.cpp:
3209         (WebView::notifyPreferencesChanged):
3210
3211 2016-12-10  Filip Pizlo  <fpizlo@apple.com>
3212
3213         The DOM should have an advancing wavefront opaque root barrier
3214         https://bugs.webkit.org/show_bug.cgi?id=165712
3215
3216         Reviewed by Yusuke Suzuki.
3217         
3218         Propagate the JSDOMWindowBase::commonVM() -> commonVM() change.
3219
3220         * Plugins/PluginView.cpp:
3221         (WebCore::PluginView::start):
3222         (WebCore::PluginView::stop):
3223         (WebCore::PluginView::performRequest):
3224         (WebCore::PluginView::npObject):
3225         (WebCore::PluginView::privateBrowsingStateChanged):
3226         * Plugins/PluginViewWin.cpp:
3227         (WebCore::PluginView::dispatchNPEvent):
3228         (WebCore::PluginView::handleKeyboardEvent):
3229         (WebCore::PluginView::handleMouseEvent):
3230         (WebCore::PluginView::setNPWindowRect):
3231         * WebCoreStatistics.cpp:
3232         (WebCoreStatistics::javaScriptObjectsCount):
3233         (WebCoreStatistics::javaScriptGlobalObjectsCount):
3234         (WebCoreStatistics::javaScriptProtectedObjectsCount):
3235         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
3236         (WebCoreStatistics::javaScriptProtectedObjectTypeCounts):
3237         (WebCoreStatistics::javaScriptObjectTypeCounts):
3238         (WebCoreStatistics::shouldPrintExceptions):
3239         (WebCoreStatistics::setShouldPrintExceptions):
3240         (WebCoreStatistics::memoryStatistics):
3241         * WebJavaScriptCollector.cpp:
3242         (WebJavaScriptCollector::objectCount):
3243
3244 2016-12-09  Geoffrey Garen  <ggaren@apple.com>
3245
3246         TextPosition and OrdinalNumber should be more like idiomatic numbers
3247         https://bugs.webkit.org/show_bug.cgi?id=165678
3248
3249         Reviewed by Filip Pizlo.
3250
3251         Adopt default constructor.
3252
3253         * Plugins/PluginPackage.cpp:
3254         (WebCore::makeSource):
3255
3256 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
3257
3258         Enable SharedArrayBuffer, remove the flag
3259         https://bugs.webkit.org/show_bug.cgi?id=165614
3260
3261         Rubber stamped by Geoffrey Garen.
3262
3263         * Interfaces/IWebPreferencesPrivate.idl:
3264
3265 2016-11-26  Yusuke Suzuki  <utatane.tea@gmail.com>
3266
3267         [WTF] Import std::optional reference implementation as WTF::Optional
3268         https://bugs.webkit.org/show_bug.cgi?id=164199
3269
3270         Reviewed by Saam Barati and Sam Weinig.
3271
3272         Use WTF::Optional::value_or.
3273
3274         * Plugins/PluginView.cpp:
3275         (WebCore::PluginView::performRequest):
3276         * WebCoreSupport/WebFrameLoaderClient.cpp:
3277         (WebFrameLoaderClient::dispatchDidCommitLoad):
3278         * WebCoreSupport/WebFrameLoaderClient.h:
3279         * WebSecurityOrigin.cpp:
3280         (WebSecurityOrigin::port):
3281
3282 2016-11-19  Simon Fraser  <simon.fraser@apple.com>
3283
3284         [iOS WK2] When zoomed in and panning on pages with fixed bars, parts of the bars are sometimes missing
3285         https://bugs.webkit.org/show_bug.cgi?id=164855
3286
3287         Reviewed by Sam Weinig.
3288         
3289         Remove the "inStableState" parameter from flushCompositingState() etc.
3290
3291         * WebCoreSupport/AcceleratedCompositingContext.cpp:
3292         (AcceleratedCompositingContext::flushPendingLayerChanges):
3293         * WebView.cpp:
3294         (WebView::flushPendingGraphicsLayerChanges):
3295
3296 2016-11-16  Yusuke Suzuki  <utatane.tea@gmail.com>
3297
3298         [ES6][WebCore] Change ES6_MODULES compile time flag to runtime flag
3299         https://bugs.webkit.org/show_bug.cgi?id=164827
3300
3301         Reviewed by Ryosuke Niwa.
3302
3303         * Interfaces/IWebPreferencesPrivate.idl:
3304         * WebPreferenceKeysPrivate.h:
3305         * WebPreferences.cpp:
3306         (WebPreferences::setES6ModulesEnabled):
3307         (WebPreferences::es6ModulesEnabled):
3308         * WebPreferences.h:
3309         * WebView.cpp:
3310         (WebView::notifyPreferencesChanged):
3311
3312 2016-11-14  Alex Christensen  <achristensen@webkit.org>
3313
3314         Move SecurityOrigin::createFromDatabaseIdentifier to SecurityOriginData
3315         https://bugs.webkit.org/show_bug.cgi?id=164720
3316
3317         Reviewed by Brady Eidson.
3318
3319         * WebDatabaseManager.cpp:
3320         (DidModifyOriginData::dispatchToMainThread):
3321         (DidModifyOriginData::DidModifyOriginData):
3322         (WebDatabaseManager::dispatchDidModifyOrigin):
3323         (WebDatabaseManager::dispatchDidModifyDatabase):
3324         * WebDatabaseManager.h:
3325         * WebSecurityOrigin.cpp:
3326         (WebSecurityOrigin::usage):
3327         (WebSecurityOrigin::quota):
3328         (WebSecurityOrigin::setQuota):
3329
3330 2016-11-13  Darin Adler  <darin@apple.com>
3331
3332         Fix exception handling in SQL database code, streamline and update code
3333         https://bugs.webkit.org/show_bug.cgi?id=164685
3334
3335         Reviewed by Sam Weinig.
3336
3337         * WebDatabaseManager.cpp:
3338         (WebDatabaseManager::origins): Use DatabaseTracker.
3339         (WebDatabaseManager::databasesWithOrigin): Ditto.
3340         (WebDatabaseManager::detailsForDatabase): Use reference.
3341         (WebDatabaseManager::deleteAllDatabases): Use DatabaseTracker.
3342         (WebDatabaseManager::deleteOrigin): Ditto.
3343         (WebDatabaseManager::deleteDatabase): Ditto.
3344         (WebDatabaseManager::dispatchDidModifyOrigin): Use reference
3345         and DatabaseTracker.
3346         (WebDatabaseManager::setQuota): Ditto.
3347         (WebDatabaseManager::dispatchDidModifyDatabase): Ditto.
3348         * WebDatabaseManager.h: Updated client functions to take a reference.
3349
3350         * WebSecurityOrigin.cpp:
3351         (WebSecurityOrigin::usage): Update to use DatabaseTracker.
3352         (WebSecurityOrigin::quota): Ditto.
3353         (WebSecurityOrigin::setQuota): Ditto.
3354
3355 2016-11-11  Eric Carlson  <eric.carlson@apple.com>
3356
3357         [MediaStream] defer resolution of getUserMedia promise made in a background tab
3358         https://bugs.webkit.org/show_bug.cgi?id=164643
3359         <rdar://problem/29048317>
3360
3361         Unreviewed build fix after r208606.
3362
3363         * Plugins/PluginView.cpp:
3364         (WebCore::PluginView::mediaCanStart):
3365         * Plugins/PluginView.h:
3366
3367 2016-11-11  Darin Adler  <darin@apple.com>
3368
3369         Move Node from ExceptionCode to ExceptionOr
3370         https://bugs.webkit.org/show_bug.cgi?id=164515
3371
3372         Reviewed by Sam Weinig.
3373
3374         * DOMCoreClasses.cpp:
3375         (DOMNode::insertBefore): Update exception handling.
3376         (DOMNode::removeChild): Ditto.
3377
3378 2016-10-14  Carlos Garcia Campos  <cgarcia@igalia.com>
3379
3380         MemoryPressureHandler shouldn't know how to release WebCore memory
3381         https://bugs.webkit.org/show_bug.cgi?id=160497
3382
3383         Reviewed by Michael Catanzaro.
3384
3385         Set the low memory handler before installing the memory pressure handler.
3386
3387         * WebView.cpp:
3388         (WebView::initWithFrame):
3389
3390 2016-11-09  Alex Christensen  <achristensen@webkit.org>
3391
3392         Fix Windows build after r208499
3393         https://bugs.webkit.org/show_bug.cgi?id=164562
3394
3395         * WebKitDLL.cpp:
3396         (shutDownWebKit):
3397
3398 2016-11-09  Darin Adler  <darin@apple.com>
3399
3400         Move Range from ExceptionCode to ExceptionOr
3401         https://bugs.webkit.org/show_bug.cgi?id=164457
3402
3403         Reviewed by Alex Christensen.
3404
3405         * WebView.cpp:
3406         (WebView::onIMERequestCharPosition): Updated for new exception handling.
3407
3408 2016-11-09  Darin Adler  <darin@apple.com>
3409
3410         Move EventTarget from ExceptionCode to ExceptionOr
3411         https://bugs.webkit.org/show_bug.cgi?id=164465
3412
3413         Reviewed by Youenn Fablet.
3414
3415         * DOMCoreClasses.cpp:
3416         (DOMNode::dispatchEvent): Updated exception handling.
3417         (DOMWindow::dispatchEvent): Ditto.
3418
3419 2016-11-04  Wenson Hsieh  <wenson_hsieh@apple.com>
3420
3421         Safari does not emit composition end if blurred for dead key / Japanese IME
3422         https://bugs.webkit.org/show_bug.cgi?id=164369
3423         <rdar://problem/29050439>
3424
3425         Reviewed by Ryosuke Niwa.
3426
3427         Add a stub implementation of canceledComposition.
3428
3429         * WebCoreSupport/WebEditorClient.cpp:
3430         (WebEditorClient::canceledComposition):
3431         * WebCoreSupport/WebEditorClient.h:
3432
3433 2016-11-04  Per Arne Vollan  <pvollan@apple.com>
3434
3435         [Win] Page visibility tests are timing out.
3436         https://bugs.webkit.org/show_bug.cgi?id=164363
3437
3438         Reviewed by Brent Fulgham.
3439
3440         Add method to set page visibility.
3441
3442         * Interfaces/IWebViewPrivate.idl:
3443         * WebView.cpp:
3444         (WebView::QueryInterface):
3445         (WebView::findString):
3446         (WebView::setVisibilityState):
3447         * WebView.h:
3448
3449 2016-11-01  Ryosuke Niwa  <rniwa@webkit.org>
3450
3451         Remove CUSTOM_ELEMENTS build flag
3452         https://bugs.webkit.org/show_bug.cgi?id=164267
3453
3454         Reviewed by Antti Koivisto.
3455
3456         Removed the build flag.
3457
3458         * WebView.cpp:
3459         (WebView::notifyPreferencesChanged):
3460
3461 2016-10-29  Filip Pizlo  <fpizlo@apple.com>
3462
3463         JSC should support SharedArrayBuffer
3464         https://bugs.webkit.org/show_bug.cgi?id=163986
3465
3466         Reviewed by Keith Miller.
3467
3468         Support the RuntimeFlag.
3469
3470         * Interfaces/IWebPreferencesPrivate.idl:
3471
3472 2016-10-31  Joseph Pecoraro  <pecoraro@apple.com>
3473
3474         Use #pragma once in WebCore
3475         https://bugs.webkit.org/show_bug.cgi?id=164194
3476
3477         Rubber-stamped by Sam Weinig.
3478
3479         * WebCoreSupport/WebContextMenuClient.cpp:
3480         (WebContextMenuClient::isSpeaking):
3481         (WebContextMenuClient::shareMenuItem): Deleted.
3482         * WebCoreSupport/WebContextMenuClient.h:
3483         Remove this dead code since r192333.
3484
3485 2016-10-31  Darin Adler  <darin@apple.com>
3486
3487         Convert Document from ExceptionCode to Exception
3488         https://bugs.webkit.org/show_bug.cgi?id=164212
3489
3490         Reviewed by Alex Christensen.
3491
3492         * DOMCoreClasses.cpp:
3493         (DOMDocument::createElement): Updated exception handling.
3494         (DOMDocument::createEvent): Ditto.
3495
3496 2016-10-30  Darin Adler  <darin@apple.com>
3497
3498         Move Element, NamedNodeMap, and DOMStringMap from ExceptionCode to Exception
3499         https://bugs.webkit.org/show_bug.cgi?id=164206
3500
3501         Reviewed by Chris Dumez.
3502
3503         * DOMCoreClasses.cpp:
3504         (DOMElement::setAttribute): Updated exception handling.
3505         * DOMHTMLClasses.cpp:
3506         (DOMHTMLElement::setInnerHTML): Ditto.
3507
3508 2016-10-30  Brent Fulgham  <bfulgham@apple.com>
3509
3510         Unreviewed build fix (Direct2D)
3511
3512         * WebView.cpp:
3513         (WebView::paintWithDirect2D): Update for revised GraphicsContext
3514         begin/end draw behavior.
3515
3516 2016-10-28  Darin Adler  <darin@apple.com>
3517
3518         Move all classes in the HTML directory from ExceptionCode to Exception
3519         https://bugs.webkit.org/show_bug.cgi?id=163876
3520
3521         Reviewed by Sam Weinig.
3522
3523         * DOMHTMLClasses.cpp:
3524         (DOMHTMLElement::setInnerText): Update exception handling.
3525         * FullscreenVideoController.cpp:
3526         (FullscreenVideoController::setVolume): Ditto.
3527
3528 2016-10-27  Brent Fulgham  <bfulgham@apple.com>
3529
3530         Unreviewed build fix.
3531
3532         * WebView.cpp:
3533         (WebView::paintWithDirect2D): Correct merge error.
3534
3535 2016-10-25  Brent Fulgham  <bfulgham@apple.com>
3536
3537         [Win][Direct2D] Create a RAII Helper Class for the Render Target
3538         https://bugs.webkit.org/show_bug.cgi?id=164005
3539
3540         Reviewed by Alex Christensen.
3541
3542         * WebView.cpp:
3543         (WebView::sizeChanged): Construct RenderTarget with higher-resolution display timer.
3544         (WebView::paintWithDirect2D): Revise to use new RenderTargetHelper class.
3545
3546 2016-10-27  Wenson Hsieh  <wenson_hsieh@apple.com>
3547
3548         Support "insertFromDrop" and "deleteByDrag" for the InputEvent spec
3549         https://bugs.webkit.org/show_bug.cgi?id=163948
3550         <rdar://problem/28921433>
3551
3552         Reviewed by Darin Adler.
3553
3554         Add support for new drag and drop-related EditAction enum values.
3555
3556         * WebCoreSupport/WebEditorClient.cpp:
3557         (undoNameForEditAction):
3558
3559 2016-10-26  Brian Burg  <bburg@apple.com>
3560
3561         Web Inspector: remove unused bool return value from FrontendChannel::sendMessageToFrontend
3562         https://bugs.webkit.org/show_bug.cgi?id=164046
3563
3564         Reviewed by Joseph Pecoraro.
3565
3566         * WebCoreSupport/WebInspectorClient.h:
3567
3568 2016-10-19  Alex Christensen  <achristensen@webkit.org>
3569
3570         Revert r207151
3571         https://bugs.webkit.org/show_bug.cgi?id=163675
3572
3573         Reviewed by Brent Fulgham.
3574
3575         * DefaultDownloadDelegate.h:
3576         * WebCoreSupport/WebFrameLoaderClient.cpp:
3577         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
3578         * WebCoreSupport/WebFrameNetworkingContext.cpp:
3579         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
3580         * WebCoreSupport/WebFrameNetworkingContext.h:
3581         * WebCoreSupport/WebPlatformStrategies.cpp:
3582         * WebDownload.h:
3583         * WebError.cpp:
3584         (WebError::localizedDescription):
3585         (WebError::sslPeerCertificate):
3586         * WebError.h:
3587         * WebMutableURLRequest.cpp:
3588         (WebMutableURLRequest::mutableCopy):
3589         * WebURLAuthenticationChallenge.cpp:
3590         (WebURLAuthenticationChallenge::initWithProtectionSpace):
3591         (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
3592         * WebURLResponse.cpp:
3593         (WebURLResponse::sslPeerCertificate):
3594         * WebURLResponse.h:
3595         * WebView.cpp:
3596         (WebView::setCacheModel):
3597         (WebView::canHandleRequest):
3598         (WebView::notifyPreferencesChanged):
3599         (updateSharedSettingsFromPreferencesIfNeeded):
3600
3601 2016-10-18  Darin Adler  <darin@apple.com>
3602
3603         Move many miscellaneous classes from ExceptionCode to Exception
3604         https://bugs.webkit.org/show_bug.cgi?id=163645
3605
3606         Reviewed by Ryosuke Niwa.
3607
3608         * DOMCoreClasses.cpp:
3609         (DOMDocument::getComputedStyle): Use ptr instead of get since the return
3610         value is now Ref instead of RefPtr.
3611
3612 2016-10-18  Anders Carlsson  <andersca@apple.com>
3613
3614         Try to fix the Windows build.
3615
3616         * WebHistoryItem.cpp:
3617         (WebHistoryItem::redirectURLs):
3618
3619 2016-10-18  Anders Carlsson  <andersca@apple.com>
3620
3621         Move some history specific HistoryItem code to WebHistoryItem
3622         https://bugs.webkit.org/show_bug.cgi?id=163567
3623
3624         Reviewed by Tim Horton.
3625
3626         Remove these, they aren't used.
3627
3628         * WebCoreSupport/WebFrameLoaderClient.cpp:
3629         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
3630         * WebHistory.cpp:
3631         (WebHistory::visitedURL):
3632         * WebHistoryItem.cpp:
3633         (WebHistoryItem::initFromDictionaryRepresentation):
3634         (WebHistoryItem::dictionaryRepresentation):
3635
3636 2016-10-16  Darin Adler  <darin@apple.com>
3637
3638         Move CSS classes from ExceptionCode to Exception
3639         https://bugs.webkit.org/show_bug.cgi?id=163494
3640
3641         Reviewed by Sam Weinig.
3642
3643         * DOMCSSClasses.cpp:
3644         (DOMCSSStyleDeclaration::setCssText): Remove ExceptionCode handling.
3645         (DOMCSSStyleDeclaration::setProperty): Ditto.
3646
3647 2016-10-12  Anders Carlsson  <andersca@apple.com>
3648
3649         Copy BackForwardList from WebCore to WebKit/win
3650         https://bugs.webkit.org/show_bug.cgi?id=163360
3651
3652         Reviewed by Alex Christensen.
3653
3654         Use our local BackForwardList class instead of WebCore::BackForwardList.
3655
3656         * BackForwardList.cpp: Added.
3657         * BackForwardList.h: Added.
3658         * WebBackForwardList.h:
3659         * WebView.cpp:
3660         (WebView::initWithFrame):
3661         (WebView::backForwardList):
3662
3663 2016-10-13  Anders Carlsson  <andersca@apple.com>
3664
3665         Get rid of the HistoryItemVector typedef
3666         https://bugs.webkit.org/show_bug.cgi?id=163398
3667
3668         Reviewed by Beth Dakin.
3669
3670         Expand the HistoryitemVector typedef instead to make it more clear what types we are dealing with.
3671
3672         * WebBackForwardList.cpp:
3673         (WebBackForwardList::backListWithLimit):
3674         (WebBackForwardList::forwardListWithLimit):
3675         * WebHistoryItem.cpp:
3676         (WebHistoryItem::children):
3677
3678 2016-10-12  Brent Fulgham  <bfulgham@apple.com>
3679
3680         [Win] Unreviewed build fix after r207218.
3681
3682         The CQ-landed patch used the old USE(CFNETWORK) compiler guard.
3683         It should be using USE(CFURLCONNECTION).
3684
3685         * WebCache.cpp: Missed one!
3686
3687 2016-10-12  Brent Fulgham  <bfulgham@apple.com>
3688
3689         [Win] Unreviewed build fix after r207218.
3690
3691         The CQ-landed patch used the old USE(CFNETWORK) compiler guard.
3692         It should be using USE(CFURLCONNECTION).
3693
3694         * WebCache.cpp:
3695         (WebCache::cacheFolder):
3696         (WebCache::setCacheFolder):
3697
3698 2016-10-12  Per Arne Vollan  <pvollan@apple.com>
3699
3700         [Win] Parallel DRTs are sharing preferences and cache.
3701         https://bugs.webkit.org/show_bug.cgi?id=163013
3702
3703         Reviewed by Brent Fulgham.
3704
3705         Make it possible for a WebKit client to use separate preferences and cache.
3706
3707         * Interfaces/IWebPreferencesPrivate.idl:
3708         * WebApplicationCache.cpp:
3709         (applicationCachePath):
3710         * WebCache.cpp:
3711         (WebCache::cacheFolder):
3712         (WebCache::setCacheFolder):
3713         * WebDatabaseManager.cpp:
3714         (databasesDirectory):
3715         * WebPreferences.cpp:
3716         (WebPreferences::applicationId):
3717         (WebPreferences::valueForKey):
3718         (WebPreferences::setValueForKey):
3719         (WebPreferences::save):
3720         (WebPreferences::QueryInterface):
3721         (WebPreferences::modernMediaControlsEnabled):
3722         (WebPreferences::setApplicationId):
3723         * WebPreferences.h:
3724         * WebView.cpp:
3725         (WebView::setCacheModel):
3726
3727 2016-10-11  Alex Christensen  <achristensen@webkit.org>
3728
3729         Remove dead networking code
3730         https://bugs.webkit.org/show_bug.cgi?id=163263
3731
3732         Reviewed by Daniel Bates.
3733
3734         * DefaultDownloadDelegate.h:
3735         * WebCoreSupport/WebFrameLoaderClient.cpp:
3736         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
3737         * WebCoreSupport/WebFrameNetworkingContext.cpp:
3738         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
3739         * WebCoreSupport/WebFrameNetworkingContext.h:
3740         * WebCoreSupport/WebPlatformStrategies.cpp:
3741         * WebDownload.h:
3742         * WebError.cpp:
3743         (WebError::localizedDescription):
3744         (WebError::sslPeerCertificate):
3745         * WebError.h:
3746         * WebMutableURLRequest.cpp:
3747         (WebMutableURLRequest::mutableCopy):
3748         * WebURLAuthenticationChallenge.cpp:
3749         (WebURLAuthenticationChallenge::initWithProtectionSpace):
3750         (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
3751         * WebURLResponse.cpp:
3752         (WebURLResponse::sslPeerCertificate):
3753         * WebURLResponse.h:
3754         * WebView.cpp:
3755         (WebView::setCacheModel):
3756         (WebView::canHandleRequest):
3757         (WebView::notifyPreferencesChanged):
3758         (updateSharedSettingsFromPreferencesIfNeeded):
3759
3760 2016-10-11  Ryan Haddad  <ryanhaddad@apple.com>
3761
3762         Unreviewed, rolling out r207067.
3763
3764         This change caused webkitpy test failures.
3765
3766         Reverted changeset:
3767
3768         "[Win] Parallel DRTs are sharing preferences and cache."
3769         https://bugs.webkit.org/show_bug.cgi?id=163013
3770         http://trac.webkit.org/changeset/207067
3771
3772 2016-10-11  Per Arne Vollan  <pvollan@apple.com>
3773
3774         [Win] Parallel DRTs are sharing preferences and cache.
3775         https://bugs.webkit.org/show_bug.cgi?id=163013
3776
3777         Reviewed by Brent Fulgham.
3778
3779         Make it possible for a WebKit client to use separate preferences and cache.
3780
3781         * Interfaces/IWebPreferencesPrivate.idl:
3782         * WebApplicationCache.cpp:
3783         (applicationCachePath):
3784         * WebCache.cpp:
3785         (WebCache::cacheFolder):
3786         (WebCache::setCacheFolder):
3787         * WebDatabaseManager.cpp:
3788         (databasesDirectory):
3789         * WebPreferences.cpp:
3790         (WebPreferences::applicationId):
3791         (WebPreferences::valueForKey):
3792         (WebPreferences::setValueForKey):
3793         (WebPreferences::save):
3794         (WebPreferences::QueryInterface):
3795         (WebPreferences::modernMediaControlsEnabled):
3796         (WebPreferences::setApplicationId):
3797         * WebPreferences.h:
3798         * WebView.cpp:
3799         (WebView::setCacheModel):
3800
3801 2016-10-09  Wenson Hsieh  <wenson_hsieh@apple.com>
3802
3803         Support InputEvent.inputType for the new InputEvent spec
3804         https://bugs.webkit.org/show_bug.cgi?id=163025
3805         <rdar://problem/28658092>
3806
3807         Reviewed by Darin Adler.
3808
3809         * WebCoreSupport/WebEditorClient.cpp:
3810         (undoNameForEditAction):
3811
3812 2016-10-04  Brent Fulgham  <bfulgham@apple.com>
3813
3814         [Win][Direct2D] Connect WebCore/WebKit Drawing
3815         https://bugs.webkit.org/show_bug.cgi?id=162924
3816
3817         Reviewed by Alex Christensen.
3818
3819         Update the Windows WebKit layer to optionally use the Direct2D
3820         backend.
3821
3822         * FullscreenVideoController.cpp: Disable some CoreAnimation-based
3823         accelerated compositing logic.
3824         * FullscreenVideoController.h:
3825         * WebFrame.cpp:
3826         (WebFrame::spoolPages): Disable in Direct2D.
3827         * WebView.cpp:
3828         (WebView::ensureBackingStore): Add Direct2D logic.
3829         (WebView::scrollBackingStore): Ditto.
3830         (WebView::sizeChanged): Ditto.
3831         (WebView::paintWithDirect2D): Added.
3832         (WebView::WebViewWndProc): Call Direct2D paint routine.
3833         * WebView.h:
3834
3835 2016-10-02  Darin Adler  <darin@apple.com>
3836
3837         Rename ExceptionCode-based exception handling to "legacy"
3838         https://bugs.webkit.org/show_bug.cgi?id=162859
3839
3840         Reviewed by Chris Dumez.
3841
3842         * Interfaces/DOMEvents.idl: Let the script rename here (in a comment).
3843
3844 2016-09-29  Konstantin Tokarev  <annulen@yandex.ru>
3845
3846         Fixed compilation of PluginView when NETSCAPE_PLUGIN_API is disabled
3847         https://bugs.webkit.org/show_bug.cgi?id=162725
3848
3849         Reviewed by Alex Christensen.
3850
3851         Fix for r206460, streamDidFinishLoading() does not override anything
3852         when NETSCAPE_PLUGIN_API is disabled because PlugivView does not
3853         inherit PluginStreamClient in this case.
3854
3855         * Plugins/PluginView.h:
3856
3857 2016-09-27  Konstantin Tokarev  <annulen@yandex.ru>
3858
3859         Use override specifiers in PluginView
3860         https://bugs.webkit.org/show_bug.cgi?id=162628
3861
3862         Reviewed by Alex Christensen.
3863
3864         * Plugins/PluginView.h:
3865
3866 2016-09-23  Antoine Quint  <graouts@apple.com>
3867
3868         Add a new runtime flag for work on modern media controls (off by default)
3869         https://bugs.webkit.org/show_bug.cgi?id=162420
3870         <rdar://problem/27989489>
3871
3872         Reviewed by Eric Carlson.
3873
3874         * Interfaces/IWebPreferencesPrivate.idl:
3875         * WebPreferenceKeysPrivate.h:
3876         * WebPreferences.cpp:
3877         (WebPreferences::setModernMediaControlsEnabled):
3878         (WebPreferences::modernMediaControlsEnabled):
3879         (WebPreferences::setCustomElementsEnabled): Deleted.
3880         * WebPreferences.h:
3881         * WebView.cpp:
3882         (WebView::notifyPreferencesChanged):
3883
3884 2016-09-15  Brady Eidson  <beidson@apple.com>
3885
3886         WKWebView.hasOnlySecureContent always returns "YES" after going back to a CachedPage (even if it has http resources).
3887         <rdar://problem/27681261> and https://bugs.webkit.org/show_bug.cgi?id=162043
3888
3889         Reviewed by Brent Fulgham. 
3890
3891         * WebCoreSupport/WebFrameLoaderClient.cpp:
3892         (WebFrameLoaderClient::dispatchDidCommitLoad):
3893         * WebCoreSupport/WebFrameLoaderClient.h:
3894
3895 2016-09-07  Mark Lam  <mark.lam@apple.com>
3896
3897         Add CatchScope and force all exception checks to be via ThrowScope or CatchScope.
3898         https://bugs.webkit.org/show_bug.cgi?id=161498
3899
3900         Reviewed by Geoffrey Garen.
3901
3902         * Plugins/PluginPackage.cpp:
3903         (WebCore::NPN_Evaluate):
3904         (WebCore::NPN_Invoke):
3905
3906 2016-09-06  Per Arne Vollan  <pvollan@apple.com>
3907
3908         [Win] Null pointer crash under WebView::scrollOffset.
3909         https://bugs.webkit.org/show_bug.cgi?id=161620
3910
3911         Reviewed by Darin Adler.
3912
3913         Added null pointer checks.
3914
3915         * WebView.cpp:
3916         (WebView::scrollOffset):
3917         (WebView::scrollBy):
3918         (WebView::visibleContentRect):
3919
3920 2016-09-03  Darin Adler  <darin@apple.com>
3921
3922         Streamline DOMImplementation, and move it to our new DOM exception system
3923         https://bugs.webkit.org/show_bug.cgi?id=161295
3924
3925         Reviewed by Ryosuke Niwa.
3926
3927         * WebFrame.cpp:
3928         (WebFrame::canProvideDocumentSource): Updated to use isXMLMIMEType in its new
3929         location in MIMETypeRegistry instead of in DOMImplementation.
3930
3931 2016-09-02  Ryosuke Niwa  <rniwa@webkit.org>
3932
3933         Build fix attempt after r205381.
3934
3935         * WebCoreSupport/WebEditorClient.h:
3936
3937 2016-08-31  Keith Rollin  <krollin@apple.com>
3938
3939         WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages
3940         https://bugs.webkit.org/show_bug.cgi?id=160969
3941         <rdar://problem/26068734>
3942
3943         Reviewed by Simon Fraser.
3944
3945         Enable subsystem- and channel-related data and functions when using
3946         RELEASE_LOG macros. Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL,
3947         and LOG_CHANNEL_ADDRESS macros that are now defined in WTF.
3948
3949         * WebKitLogging.cpp:
3950         * WebKitLogging.h:
3951         * WebView.cpp:
3952         (WebView::initWithFrame):
3953
3954 2016-08-16  Carlos Garcia Campos  <cgarcia@igalia.com>
3955
3956         [GTK] Accelerated compositing does not work in Wayland
3957         https://bugs.webkit.org/show_bug.cgi?id=115803
3958
3959         Reviewed by Michael Catanzaro.
3960
3961         Update to the new GLContext API.
3962
3963         * WebCoreSupport/AcceleratedCompositingContext.cpp:
3964         (AcceleratedCompositingContext::initialize):
3965         (AcceleratedCompositingContext::acceleratedCompositingAvailable):
3966
3967 2016-08-21  Alex Christensen  <achristensen@webkit.org>
3968
3969         Use Document& instead of Document* when getting cookies
3970         https://bugs.webkit.org/show_bug.cgi?id=161011
3971
3972         Reviewed by Darin Adler.
3973
3974         * Plugins/PluginView.cpp:
3975         (WebCore::PluginView::getValueForURL):
3976
3977 2016-08-16  Simon Fraser  <simon.fraser@apple.com>
3978
3979         Rename didLayout(LayoutMilestones) to didReachLayoutMilestone(), and related WK2 functions
3980         https://bugs.webkit.org/show_bug.cgi?id=160923
3981
3982         Reviewed by Tim Horton.
3983
3984         didLayout(LayoutMilestones) -> didReachLayoutMilestone(LayoutMilestones)
3985         dispatchDidLayout(LayoutMilestones) -> dispatchDidReachLayoutMilestone(LayoutMilestones)
3986
3987         * WebCoreSupport/WebFrameLoaderClient.cpp:
3988         (WebFrameLoaderClient::dispatchDidReachLayoutMilestone):
3989         (WebFrameLoaderClient::dispatchDidLayout): Deleted.
3990         * WebCoreSupport/WebFrameLoaderClient.h:
3991
3992 2016-08-18  Anders Carlsson  <andersca@apple.com>
3993
3994         Move an NPAPI-only function from WebCore to WebKit
3995         https://bugs.webkit.org/show_bug.cgi?id=160967
3996
3997         Reviewed by Sam Weinig.
3998
3999         * Plugins/PluginView.cpp:
4000         (WebCore::PluginView::~PluginView):
4001         (WebCore::PluginView::PluginView):
4002         (WebCore::PluginView::getValue):
4003         * Plugins/PluginView.h:
4004
4005 2016-08-15  Joseph Pecoraro  <pecoraro@apple.com>
4006
4007         Remove unused includes of wtf headers
4008         https://bugs.webkit.org/show_bug.cgi?id=160839
4009
4010         Reviewed by Alex Christensen.
4011
4012         * WebFrame.h:
4013
4014 2016-08-09  Alex Christensen  <achristensen@webkit.org>
4015
4016         Move NetworkStorageSession management to WebCore
4017         https://bugs.webkit.org/show_bug.cgi?id=160173
4018
4019         Reviewed by Brady Eidson.
4020
4021         * WebCoreSupport/WebFrameNetworkingContext.cpp:
4022         (identifierBase):
4023         (WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
4024         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
4025         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
4026         (WebFrameNetworkingContext::blockedError):
4027         (WebFrameNetworkingContext::storageSession):
4028         (privateSession): Deleted.
4029         * WebCoreSupport/WebPlatformStrategies.cpp:
4030         (WebPlatformStrategies::createPasteboardStrategy):
4031         (WebPlatformStrategies::createBlobRegistry):
4032
4033 2016-08-09  Anders Carlsson  <andersca@apple.com>
4034
4035         Instantiate WebKit plug-ins at layout time, instead of at style resolution time
4036         https://bugs.webkit.org/show_bug.cgi?id=160715
4037
4038         Reviewed by Tim Horton.
4039
4040         * WebCoreSupport/WebFrameLoaderClient.cpp:
4041         (WebFrameLoaderClient::objectContentType):
4042
4043 2016-08-09  Per Arne Vollan  <pvollan@apple.com>
4044
4045         [Win] Crash in MiniBrowser.
4046         https://bugs.webkit.org/show_bug.cgi?id=160686
4047
4048         Reviewed by Sam Weinig.
4049
4050         We need to specify a plugin info provider object in the page configuration.
4051
4052         * WebView.cpp:
4053         (WebView::initWithFrame):
4054
4055 2016-08-09  Anders Carlsson  <andersca@apple.com>
4056
4057         Fix build.
4058
4059         * WebCoreSupport/WebPlatformStrategies.h:
4060
4061 2016-08-09  Anders Carlsson  <andersca@apple.com>
4062
4063         Get rid of PluginStrategy
4064         https://bugs.webkit.org/show_bug.cgi?id=160696
4065
4066         Reviewed by Dan Bernstein.
4067
4068         * WebCoreSupport/WebPlatformStrategies.cpp:
4069         (WebPlatformStrategies::createPluginStrategy): Deleted.
4070
4071 2016-08-09  Anders Carlsson  <andersca@apple.com>
4072
4073         Move plug-in enumeration from WebPlatformStrategies to WebPluginInfoProvider
4074         https://bugs.webkit.org/show_bug.cgi?id=160694
4075
4076         Reviewed by Dan Bernstein.
4077
4078         * WebCoreSupport/WebPlatformStrategies.cpp:
4079         (WebPlatformStrategies::createPluginStrategy):
4080         (WebPlatformStrategies::refreshPlugins): Deleted.
4081         (WebPlatformStrategies::getPluginInfo): Deleted.
4082         (WebPlatformStrategies::getWebVisiblePluginInfo): Deleted.
4083         * WebCoreSupport/WebPlatformStrategies.h:
4084         * WebCoreSupport/WebPluginInfoProvider.cpp:
4085         (WebPluginInfoProvider::refreshPlugins):
4086         (WebPluginInfoProvider::getPluginInfo):
4087         (WebPluginInfoProvider::getWebVisiblePluginInfo):
4088
4089 2016-08-08  Anders Carlsson  <andersca@apple.com>
4090
4091         Add a new PluginInfoProvider class, to replace PluginStrategy
4092         https://bugs.webkit.org/show_bug.cgi?id=160670
4093
4094         Reviewed by Sam Weinig.
4095
4096         Add a new WebPluginInfoProvider - it just calls through to the plug-in strategy for now.
4097
4098         * WebCoreSupport/WebPluginInfoProvider.cpp: Added.
4099         (WebPluginInfoProvider::singleton):
4100         (WebPluginInfoProvider::WebPluginInfoProvider):
4101         (WebPluginInfoProvider::~WebPluginInfoProvider):
4102         (WebPluginInfoProvider::refreshPlugins):
4103         (WebPluginInfoProvider::getPluginInfo):
4104         (WebPluginInfoProvider::getWebVisiblePluginInfo):
4105         * WebCoreSupport/WebPluginInfoProvider.h: Added.
4106
4107 2016-07-29  Csaba Osztrogonác  <ossy@webkit.org>
4108
4109         Remove PassRef.h after r177259
4110         https://bugs.webkit.org/show_bug.cgi?id=160348
4111
4112         Reviewed by Andreas Kling.
4113
4114         * WebCoreSupport/WebVisitedLinkStore.h:
4115
4116 2016-07-27  Alex Christensen  <achristensen@webkit.org>
4117
4118         Fix Win debug build after r203749.
4119
4120         * WebView.cpp:
4121
4122 2016-07-26  Simon Fraser  <simon.fraser@apple.com>
4123
4124         Allow LOG macros to be used outside the namespace, and other logging cleanup
4125         https://bugs.webkit.org/show_bug.cgi?id=160216
4126
4127         Reviewed by Anders Carlsson.
4128
4129         Fix some issues with the LOG macros.
4130         
4131         First, they were not usable outside the WebKit namespace in WebKit2 code. Fix by moving
4132         its log channels outside of the namespace (they are protected by a unique prefix anyway).
4133         
4134         Second, allow LOG_WITH_STREAM to be used in WebKit2 by moving that and a helper macro
4135         into LogMacros.h, which is exported from WebCore as a private header.
4136         
4137         Third, split the Logging.h header into two. Logging.h remains for framework-internal
4138         log channels and log macros. Add LogInitialization.h which is external, and used to
4139         initialize the channels.
4140         
4141         Finally unify "initializeLogChannels" and "initializeLoggingChannels" terminology everywhere.
4142
4143         * WebKitLogging.cpp:
4144         * WebKitLogging.h:
4145         * WebView.cpp:
4146         (WebView::initWithFrame):
4147
4148 2016-07-23  Chris Dumez  <cdumez@apple.com>
4149
4150         Unreviewed, fix Windows build after r203623.
4151
4152         * DOMCoreClasses.cpp:
4153         (DOMDocument::getComputedStyle):
4154
4155 2016-07-22  Per Arne Vollan  <pvollan@apple.com>
4156
4157         IWebView::mainFrame crashes if called after IWebView::close
4158         https://bugs.webkit.org/show_bug.cgi?id=32868
4159
4160         Reviewed by Brent Fulgham.
4161
4162         After deleting the page in WebView::close the mainframe object may be deleted. 
4163