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