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