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