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