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