Source/WebCore:
[WebKit.git] / Source / WebKit / win / ChangeLog
1 2015-07-24  Brent Fulgham  <bfulgham@apple.com>
2
3         [Win] Connect UserScript and UserStyleSheet through WebView.
4         https://bugs.webkit.org/show_bug.cgi?id=147279
5         <rdar://problem/21990767>
6
7         Reviewed by Dean Jackson.
8
9         * Interfaces/IWebViewPrivate.idl: Add updated API for 'addUserScriptToGroup' and
10         'addUserStyleSheetToGroup'
11         * WebView.cpp:
12         (WebView::addUserScriptToGroup): Add implementation.
13         (toStringVector): Added helper function.
14         (WebView::addUserStyleSheetToGroup): Add implementation.
15         (WebView::removeUserScriptFromGroup): Ditto.
16         (WebView::removeUserStyleSheetFromGroup): Ditto.
17         (WebView::removeUserScriptsFromGroup): Ditto.
18         (WebView::removeUserStyleSheetsFromGroup): Ditto.
19         (WebView::removeAllUserContentFromGroup): Ditto.
20         * WebView.h:
21
22 2015-07-24  Yusuke Suzuki  <utatane.tea@gmail.com>
23
24         Remove runtime flags for symbols
25         https://bugs.webkit.org/show_bug.cgi?id=147246
26
27         Reviewed by Alex Christensen.
28
29         * Interfaces/IWebPreferencesPrivate.idl:
30
31 2015-07-23  Alex Christensen  <achristensen@webkit.org>
32
33         Unreviewed build fix after r187245.
34
35         * WebView.cpp:
36         WM_DPICHANGED is #defined, which causes problems if we try to use it as a variable name.
37
38 2015-07-23  Alex Christensen  <achristensen@webkit.org>
39
40         Remove compile and runtime flags for promises.
41         https://bugs.webkit.org/show_bug.cgi?id=147244
42
43         Reviewed by Yusuke Suzuki.
44
45         * Interfaces/IWebPreferencesPrivate.idl:
46
47 2015-07-23  Brent Fulgham  <bfulgham@apple.com>
48
49         [Win] Implement High DPI support features
50         https://bugs.webkit.org/show_bug.cgi?id=146335
51         <rdar://problem/21558269>
52
53         Reviewed by Alex Christensen.
54
55         * WebCoreSupport/WebFrameLoaderClient.cpp:
56         (WebFrameLoaderClient::transitionToCommittedForNewPage): Size
57         page for current device scale factor.
58         * WebFrame.cpp:
59         (WebFrame::paintDocumentRectToContext): Account for device scale factor.
60         (WebFrame::paintScrollViewRectToContextAtPoint): Ditto.
61         * WebView.cpp:
62         (WebView::repaint): Adjust paint rect for device scale factor.
63         (WebView::scrollBackingStore): Adjust coordinates for scale factor.
64         (WebView::sizeChanged): Ditto.
65         (WebView::updateBackingStore): Ditto.
66         (WebView::paint): Ditto.
67         (WebView::paintIntoBackingStore): Ditto.
68         (WebView::handleContextMenuEvent): Ditto.
69         (WebView::gestureNotify): Ditto.
70         (WebView::gesture): Ditto.
71         (WebView::initializeToolTipWindow): Adjust max tool tip width
72         for device scale factor.
73         (WebView::selectionRect): Adjust coordinates for scale factor.
74         (WebView::elementAtPoint): Ditto.
75         (WebView::scrollOffset): Ditto.
76         (WebView::scrollBy): Ditto.
77         (WebView::visibleContentRect): Ditto.
78         (WebView::paintContents): Ditto.
79         * WebView.h:
80
81 2015-07-23  Sungmann Cho  <sungmann.cho@navercorp.com>
82
83         [Win] Fix typos in PluginViewWin.cpp: kWebPluginViewdowClassName -> kWebPluginViewClassName
84         https://bugs.webkit.org/show_bug.cgi?id=147214
85
86         Reviewed by Csaba Osztrogonác.
87
88         * Plugins/PluginViewWin.cpp:
89         (WebCore::registerPluginView):
90         (WebCore::PluginView::platformStart):
91
92 2015-07-22  Alex Christensen  <achristensen@webkit.org>
93
94         Fix quirks in CMake build on Mac and Windows
95         https://bugs.webkit.org/show_bug.cgi?id=147174
96
97         Reviewed by Gyuyoung Kim.
98
99         * WebView.cpp:
100         Include winuser.h to get definitions of touch-related structures like tagGESTUREINFO.
101
102 2015-07-21  Sungmann Cho  <sungmann.cho@navercorp.com>
103
104         [Win] Add needTouchEvents() stub to WebChromeClient.h for a successful build with ENABLE_TOUCH_EVENTS=ON
105         https://bugs.webkit.org/show_bug.cgi?id=147141
106
107         Reviewed by Darin Adler.
108
109         * WebCoreSupport/WebChromeClient.h:
110
111 2015-07-21  Per Arne Vollan  <peavo@outlook.com>
112
113         WinLauncher does not start on WinXP.
114         https://bugs.webkit.org/show_bug.cgi?id=147147
115
116         Reviewed by Alex Christensen.
117
118         ANGLE requires Win7, accelerated compositing must be disabled on earlier Windows versions.
119
120         * WebCoreSupport/AcceleratedCompositingContext.cpp:
121         (AcceleratedCompositingContext::acceleratedCompositingAvailable):
122
123 2015-07-19  David Kilzer  <ddkilzer@apple.com>
124
125         REGRESSION (r187002): Broke the Windows build: Reduce PassRefPtr in WebKit2 - 3
126         <https://bugs.webkit.org/show_bug.cgi?id=146995>
127
128         Attempt to fix the Windows build.
129
130         * WebCoreSupport/WebFrameLoaderClient.cpp:
131         (WebFrameLoaderClient::createDocumentLoader):
132         (WebFrameLoaderClient::createFrame):
133         (WebFrameLoaderClient::createPlugin):
134         * WebCoreSupport/WebFrameLoaderClient.h:
135         * WebDocumentLoader.cpp:
136         (WebDocumentLoader::create):
137         * WebDocumentLoader.h:
138
139 2015-07-18  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
140
141         Reduce PassRefPtr in WebKit2 - 3
142         https://bugs.webkit.org/show_bug.cgi?id=146995
143
144         Reviewed by Daniel Bates.
145
146         To remove PassRefPtr, this patch reduces use of PassRefPtr in WebKit2.
147         Because some uses depend on WebCore, WebCore, WK1 ports are modified as well.
148
149         * WebCoreSupport/WebFrameLoaderClient.cpp:
150         (WebFrameLoaderClient::createDocumentLoader):
151         * WebCoreSupport/WebFrameLoaderClient.h:
152
153 2015-07-16  Brent Fulgham  <bfulgham@apple.com>
154
155         [Win] Gross workaround to fix build after r186858.
156
157         * WebView.cpp:
158         (WebView::unused5): Force export of WebCore symbol through
159         WebKit.dll.
160
161 2015-07-15  Brent Fulgham  <bfulgham@apple.com>
162
163         [Win] Maintain consistent COM Interfaces
164         https://bugs.webkit.org/show_bug.cgi?id=146983
165         <rdar://problem/21822278>
166
167         Reviewed by Dean Jackson.
168
169         Keep WebKit's COM interface compatible with software
170         linked against earlier WebKit releases:
171         1. Update IDL to present the same interface as earlier
172            releases of WebKit.
173         2. Add new interface objects (i.g., IWebFrame2) extending
174            earlier interfaces when adding new methods.
175         3. Update our internal software to use the correct interface
176            objects.
177
178         * DefaultPolicyDelegate.cpp:
179         (DefaultPolicyDelegate::decidePolicyForNavigationAction):
180         * Interfaces/IWebEditingDelegate.idl:
181         * Interfaces/IWebFrame.idl:
182         * Interfaces/IWebPreferencesPrivate.idl:
183         * Interfaces/IWebSecurityOrigin.idl:
184         * Interfaces/IWebUIDelegatePrivate.idl:
185         * Interfaces/IWebViewPrivate.idl:
186         * Interfaces/WebKit.idl:
187         * WebCoreSupport/WebEditorClient.cpp:
188         (WebEditorClient::shouldInsertNode):
189         * WebFrame.cpp:
190         (WebFrame::updateBackground):
191         (WebFrame::isMainFrame):
192         * WebFrame.h:
193         * WebPreferences.cpp:
194         (WebPreferences::initializeDefaultSettings):
195         (WebPreferences::QueryInterface):
196         (WebPreferences::setMockScrollbarsEnabled):
197         (WebPreferences::screenFontSubstitutionEnabled):
198         (WebPreferences::setScreenFontSubstitutionEnabled):
199         (WebPreferences::hyperlinkAuditingEnabled):
200         (WebPreferences::unused4):
201         (WebPreferences::shouldPaintNativeControls):
202         (WebPreferences::setShouldPaintNativeControls):
203         (WebPreferences::setDeveloperExtrasEnabled):
204         (WebPreferences::authorAndUserStylesEnabled):
205         (WebPreferences::inApplicationChromeMode):
206         * WebPreferences.h:
207         * WebSecurityOrigin.cpp:
208         (WebSecurityOrigin::QueryInterface):
209         (WebSecurityOrigin::setQuota):
210         (WebSecurityOrigin::initWithURL):
211         * WebSecurityOrigin.h:
212         * WebView.cpp:
213         (WebView::QueryInterface):
214         (WebView::notifyPreferencesChanged):
215         (WebView::selectedRangeForTesting):
216         (WebView::setLoadResourcesSerially):
217         * WebView.h:
218
219 2015-07-09  Per Arne Vollan  <peavo@outlook.com>
220
221         [Win] Add memory pressure handler.
222         https://bugs.webkit.org/show_bug.cgi?id=146685
223
224         Reviewed by Brent Fulgham.
225
226         * WebView.cpp:
227         (WebView::initWithFrame): Install memory pressure handler.
228
229 2015-07-08  Daniel Bates  <dabates@apple.com>
230
231         Attempt to fix the Apple Windows build after <https://trac.webkit.org/changeset/186566>
232         (https://bugs.webkit.org/show_bug.cgi?id=146591)
233
234         Update implementation of PluginView::create() to return a Ref<PluginView> object
235         instead of a PassRefPtr<PluginView> object.
236
237         * Plugins/PluginView.cpp:
238         (WebCore::PluginView::create):
239
240 2015-07-07  Brady Eidson  <beidson@apple.com>
241
242         HTTP Auth cached after disabling private browsing/reset.
243         <rdar://problem/8293055> and https://bugs.webkit.org/show_bug.cgi?id=146654
244
245         Reviewed by Tim Horton.
246
247         * WebDownloadCFNet.cpp:
248         (WebDownload::didReceiveAuthenticationChallenge):
249
250 2015-07-04  Chris Dumez  <cdumez@apple.com>
251
252         Drop RefPtr::clear() method
253         https://bugs.webkit.org/show_bug.cgi?id=146556
254
255         Reviewed by Brady Eidson.
256
257         Drop RefPtr::clear() method in favor of "= nullptr;" pattern.
258
259 2015-06-30  Simon Fraser  <simon.fraser@apple.com>
260
261         Fix Mac and Windows builds.
262
263         * WebCoreSupport/AcceleratedCompositingContext.cpp:
264         (AcceleratedCompositingContext::flushPendingLayerChanges):
265         * WebView.cpp:
266         (WebView::flushPendingGraphicsLayerChanges):
267
268 2015-06-30  Brent Fulgham  <bfulgham@apple.com>
269
270         [Win] webViewAddMessageToConsole always gets 1 for isError
271         https://bugs.webkit.org/show_bug.cgi?id=146457
272         <rdar://problem/21606395>
273
274         Reviewed by Zalan Bujtas.
275
276         * WebCoreSupport/WebChromeClient.cpp:
277         (messageIsError): Added.
278         (WebChromeClient::addMessageToConsole): Only pass true for
279         isError if the message is an error message.
280
281 2015-06-30  Per Arne Vollan  <peavo@outlook.com>
282
283         [WinCairo] Compile error, WebEditorClient::didApplyStyle() should not have any parameters.
284         https://bugs.webkit.org/show_bug.cgi?id=146450
285
286         Reviewed by Csaba Osztrogonác.
287
288         * WebCoreSupport/WebEditorClient.cpp:
289         (WebEditorClient::shouldApplyStyle):
290         (WebEditorClient::didApplyStyle):
291         * WebCoreSupport/WebEditorClient.h:
292
293 2015-06-27  Ryosuke Niwa  <rniwa@webkit.org>
294
295         Font panel doesn't get updated when bolding text via cmd+b in Mail on OS X
296         https://bugs.webkit.org/show_bug.cgi?id=146379
297
298         Reviewed by Darin Adler.
299
300         * WebCoreSupport/WebEditorClient.cpp:
301         (WebEditorClient::didApplyStyle): Added.
302         * WebCoreSupport/WebEditorClient.h:
303
304 2015-06-26  Per Arne Vollan  <peavo@outlook.com>
305
306         WinLauncher fails to download files.
307         https://bugs.webkit.org/show_bug.cgi?id=146242
308
309         Reviewed by Alex Christensen.
310
311         Don't start download when there is no download delegate.
312
313         * WebView.cpp:
314         (WebView::downloadURL):
315
316 2015-06-26  Hyungwook Lee  <hyungwook.lee@navercorp.com>
317
318         [Win] Implement WebViewGroup to support WebView::addxxxToGroup().
319         https://bugs.webkit.org/show_bug.cgi?id=145908
320
321         Reviewed by Brent Fulgham.
322
323         Make WebViewGroup class sharing on Mac and Win port.
324
325         * WebCoreSupport/WebVisitedLinkStore.cpp:
326         (visitedLinkStores):
327         (WebVisitedLinkStore::create):
328         (WebVisitedLinkStore::WebVisitedLinkStore):
329         (WebVisitedLinkStore::~WebVisitedLinkStore):
330         (WebVisitedLinkStore::setShouldTrackVisitedLinks):
331         (WebVisitedLinkStore::removeAllVisitedLinks):
332         (WebVisitedLinkStore::singleton): Deleted.
333         * WebCoreSupport/WebVisitedLinkStore.h:
334         * WebView.cpp:
335         (toURL):
336         (localStorageDatabasePath):
337         (WebView::WebView):
338         (WebView::~WebView):
339         (WebView::shouldInitializeTrackPointHack):
340         (WebView::initWithFrame):
341         (WebView::setGroupName):
342         (WebView::addVisitedLinks):
343         * WebView.h:
344
345 2015-06-25  Brent Fulgham  <bfulgham@apple.com>
346
347         [Win] Need implementation of layoutTestController.setBackingScaleFactor
348         https://bugs.webkit.org/show_bug.cgi?id=87919
349         <rdar://problem/11563242>
350
351         Reviewed by Dean Jackson.
352
353         Connect the test infrastructure for High DPI tests to Windows. This
354         involved adding a new accessor to the IWebViewPrivate interface, and
355         providing a rudimentary implemenation of DPI support on Windows.
356
357         * Interfaces/IWebViewPrivate.idl: Add new API to set/get scaling
358         factor.
359         * WebView.cpp:
360         (WebView::initWithFrame): Initialize the device scale factor.
361         (WebView::setHostWindow): Ditto.
362         (WebView::windowAncestryDidChange): Ditto.
363         (WebView::deviceScaleFactor): Added. Check current window for scaling
364         factor. If no windows exist, check main screen.
365         (WebView::setCustomBackingScaleFactor): Added.
366         (WebView::backingScaleFactor): Added.
367         * WebView.h:
368
369 2015-06-24  Anders Carlsson  <andersca@apple.com>
370
371         Move PluginMainThreadScheduler to WebKit/win
372         https://bugs.webkit.org/show_bug.cgi?id=146289
373
374         Reviewed by Tim Horton.
375
376         * Plugins/PluginMainThreadScheduler.cpp: Renamed from Source/WebCore/plugins/PluginMainThreadScheduler.cpp.
377         (WebCore::PluginMainThreadScheduler::scheduler):
378         (WebCore::PluginMainThreadScheduler::PluginMainThreadScheduler):
379         (WebCore::PluginMainThreadScheduler::scheduleCall):
380         (WebCore::PluginMainThreadScheduler::registerPlugin):
381         (WebCore::PluginMainThreadScheduler::unregisterPlugin):
382         (WebCore::PluginMainThreadScheduler::dispatchCallsForPlugin):
383         (WebCore::PluginMainThreadScheduler::dispatchCalls):
384         (WebCore::PluginMainThreadScheduler::mainThreadCallback):
385         * Plugins/PluginMainThreadScheduler.h: Renamed from Source/WebCore/plugins/PluginMainThreadScheduler.h.
386         (WebCore::PluginMainThreadScheduler::Call::Call):
387         (WebCore::PluginMainThreadScheduler::Call::performCall):
388         * Plugins/PluginView.cpp:
389
390 2015-06-23  Anders Carlsson  <andersca@apple.com>
391
392         Remove windowResizerRect code, nobody is using it anymore
393         https://bugs.webkit.org/show_bug.cgi?id=146265
394
395         Reviewed by Beth Dakin.
396
397         * WebCoreSupport/WebChromeClient.cpp:
398         (WebChromeClient::windowResizerRect): Deleted.
399         * WebCoreSupport/WebChromeClient.h:
400
401 2015-06-23  Per Arne Vollan  <peavo@outlook.com>
402
403         [WinCairo] WebDownload::initWithRequest is not implemented.
404         https://bugs.webkit.org/show_bug.cgi?id=146203
405
406         Reviewed by Alex Christensen.
407
408         Implement method to start download from a IWebURLRequest object.
409
410         * WebDownloadCurl.cpp:
411         (WebDownload::initWithRequest): Implemented.
412
413 2015-06-18  Anders Carlsson  <andersca@apple.com>
414
415         Remove shouldInterruptJavaScript
416         https://bugs.webkit.org/show_bug.cgi?id=146118
417
418         Reviewed by Antti Koivisto.
419
420         * Interfaces/IWebUIDelegatePrivate.idl:
421         * WebCoreSupport/WebChromeClient.cpp:
422         (WebChromeClient::shouldInterruptJavaScript): Deleted.
423         * WebCoreSupport/WebChromeClient.h:
424
425 2015-06-17  Hyungwook Lee  <hyungwook.lee@navercorp.com>
426
427         [Win]Implement layoutTestController.dispatchPendingLoadRequests.
428         https://bugs.webkit.org/show_bug.cgi?id=26481
429
430         Reviewed by Darin Adler.
431
432         Implement WebView::dispatchPendingLoadRequests() private API for test runner.
433
434         * Interfaces/IWebViewPrivate.idl:
435         * WebView.cpp:
436         (WebView::scaleWebView):
437         (WebView::dispatchPendingLoadRequests):
438         * WebView.h:
439
440 2015-06-17  Commit Queue  <commit-queue@webkit.org>
441
442         Unreviewed, rolling out r185636.
443         https://bugs.webkit.org/show_bug.cgi?id=146068
444
445         Caused many crashes on Windows (Requested by ap on #webkit).
446
447         Reverted changeset:
448
449         "[Win] Implement WebViewGroup to support
450         WebView::addxxxToGroup()."
451         https://bugs.webkit.org/show_bug.cgi?id=145908
452         http://trac.webkit.org/changeset/185636
453
454 2015-06-16  Hyungwook Lee  <hyungwook.lee@navercorp.com>
455
456         [Win] Implement WebViewGroup to support WebView::addxxxToGroup().
457         https://bugs.webkit.org/show_bug.cgi?id=145908
458
459         Reviewed by Brent Fulgham.
460
461         Make WebViewGroup class sharing on Mac and Win port.
462
463         * WebCoreSupport/WebVisitedLinkStore.cpp:
464         (visitedLinkStores):
465         (WebVisitedLinkStore::create):
466         (WebVisitedLinkStore::WebVisitedLinkStore):
467         (WebVisitedLinkStore::~WebVisitedLinkStore):
468         (WebVisitedLinkStore::setShouldTrackVisitedLinks):
469         (WebVisitedLinkStore::removeAllVisitedLinks):
470         (WebVisitedLinkStore::singleton): Deleted.
471         * WebCoreSupport/WebVisitedLinkStore.h:
472         * WebView.cpp:
473         (WebView::~WebView):
474         (WebView::initWithFrame):
475         (WebView::setGroupName):
476         (WebView::addVisitedLinks):
477         * WebView.h:
478
479 2015-06-13  Chris Dumez  <cdumez@apple.com>
480
481         [WK2] API::Navigation objects are leaked on history navigation to HistoryItems in PageCache
482         https://bugs.webkit.org/show_bug.cgi?id=145948
483
484         Reviewed by Darin Adler.
485
486         Add empty implementation for new
487         FrameLoaderClient::updatedCachedDocumentLoader().
488
489         * WebCoreSupport/WebFrameLoaderClient.h:
490
491 2015-06-11  Mark Lam  <mark.lam@apple.com>
492
493         WebCore::reportException() needs to be able to accept a raw thrown value in addition to Exception objects.
494         https://bugs.webkit.org/show_bug.cgi?id=145872
495
496         Reviewed by Michael Saboff.
497
498         * WebView.cpp:
499         (WebView::reportException):
500         - Don't assume we have an Exception object.  Let WebCore::reportException() take
501           care of it.
502
503 2015-06-09  Hyungwook Lee  <hyungwook.lee@navercorp.com>
504
505         Implement dumpProgressFinishedCallback() for Win layoutTestController.
506         https://bugs.webkit.org/show_bug.cgi?id=66773
507
508         Reviewed by Darin Adler.
509
510         * WebView.cpp:
511         (WebView::setFrameLoadDelegatePrivate):
512
513 2015-06-08  Chris Dumez  <cdumez@apple.com>
514
515         Access GCController instance via GCController::singleton() instead of a free function
516         https://bugs.webkit.org/show_bug.cgi?id=145776
517
518         Reviewed by Darin Adler.
519
520         Access GCController instance via GCController::singleton() instead of a
521         free function as per coding style and for consistency with other
522         singleton classes in the codebase.
523
524         * WebCoreStatistics.cpp:
525         (WebCoreStatistics::garbageCollectJavaScriptObjects):
526         (WebCoreStatistics::garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging):
527         (WebCoreStatistics::setJavaScriptGarbageCollectorTimerEnabled):
528         * WebJavaScriptCollector.cpp:
529         (WebJavaScriptCollector::collect):
530         (WebJavaScriptCollector::collectOnAlternateThread):
531
532 2015-06-05  Mark Lam  <mark.lam@apple.com>
533
534         finally blocks should not set the exception stack trace when re-throwing the exception.
535         https://bugs.webkit.org/show_bug.cgi?id=145525
536
537         Reviewed by Geoffrey Garen.
538
539         * WebView.cpp:
540         (WebView::reportException):
541         - Changed to use the new Exception object.
542
543 2015-06-02  Brady Eidson  <beidson@apple.com>
544
545         WebKit policy delegate should suggest if a navigation should be allowed to open URLs externally.
546         rdar://problem/21025301 and https://bugs.webkit.org/show_bug.cgi?id=145280
547
548         Reviewed by Alex Christensen.
549
550         * Plugins/PluginView.cpp:
551         (WebCore::PluginView::start):
552         (WebCore::PluginView::performRequest):
553         (WebCore::PluginView::getURLNotify):
554         (WebCore::PluginView::getURL):
555         (WebCore::PluginView::handlePost):
556         
557         * WebCoreSupport/WebContextMenuClient.cpp:
558         (WebContextMenuClient::searchWithGoogle):
559         
560         * WebFrame.cpp:
561         (WebFrame::loadRequest):
562         (WebFrame::loadData):
563
564 2015-05-26  Jon Honeycutt  <jhoneycutt@apple.com>
565
566         [iOS] When viewing an MJPEG stream as the main resource, only the first
567         frame paints
568
569         <https://bugs.webkit.org/show_bug.cgi?id=145185>
570         <rdar://problem/20124694>
571
572         Reviewed by Darin Adler.
573
574         * WebCoreSupport/WebFrameLoaderClient.h:
575         Stubbed new functions that aren't used on Windows.
576
577 2015-05-22  Jon Lee  <jonlee@apple.com>
578
579         Rename MediaPlaybackAllowsInline
580         https://bugs.webkit.org/show_bug.cgi?id=145315
581
582         Reviewed by Eric Carlson.
583
584         Our API uses allowsInlineMediaPlayback. Our symbols should reflect the same.
585
586         * WebView.cpp:
587         (WebView::notifyPreferencesChanged): Use the new name.
588
589 2015-05-22  Jon Lee  <jonlee@apple.com>
590
591         Unreviewed build fix for Windows.
592
593         * WebView.cpp:
594         (WebView::notifyPreferencesChanged):
595
596 2015-05-19  Brady Eidson  <beidson@apple.com>
597
598         X-Frame-Options headers not respected when loading from application cache.
599         <rdar://problem/14877623> and https://bugs.webkit.org/show_bug.cgi?id=131800
600
601         Reviewed by Alexey Proskuryakov.
602
603         * WebFrame.cpp:
604         (WebFrame::loadData):
605
606 2015-05-11  Brent Fulgham  <bfulgham@apple.com>
607
608         [Win] Move Windows build target to Windows 7 (or newer)
609         https://bugs.webkit.org/show_bug.cgi?id=144890
610         <rdar://problem/20707307>
611
612         Reviewed by Anders Carlsson.
613
614         Update linked SDK and minimal Windows level to be compatible with
615         Windows 7 or newer.
616
617         * WebKitPrefix.h:
618
619 2015-05-05  Csaba Osztrogonác  <ossy@webkit.org>
620
621         Unreviewed WinCairo buildfix after r183807.
622
623         * WebCoreSupport/AcceleratedCompositingContext.cpp:
624         (AcceleratedCompositingContext::initialize):
625         (AcceleratedCompositingContext::acceleratedCompositingAvailable):
626
627 2015-04-28  Ryuan Choi  <ryuan.choi@navercorp.com>
628
629         [CoordinatedGraphics] Merge TILED_BACKING_STORE guard with COORDINATED_GRAPHICS
630         https://bugs.webkit.org/show_bug.cgi?id=143001
631
632         Reviewed by Gyuyoung Kim.
633
634         * WebCoreSupport/WebChromeClient.h:
635         (WebChromeClient::delegatedScrollRequested):
636         Deleted because WIN does not use Coordinated Graphics.
637
638 2015-04-28  Joseph Pecoraro  <pecoraro@apple.com>
639
640         Fix common typo "targetting" => "targeting"
641         https://bugs.webkit.org/show_bug.cgi?id=144349
642
643         Reviewed by Daniel Bates.
644
645         * Interfaces/IWebPolicyDelegate.idl:
646
647 2015-04-28  Brady Eidson  <beidson@apple.com>
648
649         Consolidate most "frame load" arguments into FrameLoadRequest.
650         https://bugs.webkit.org/show_bug.cgi?id=144276
651
652         Reviewed by Alexey Proskuryakov.
653
654         * Plugins/PluginView.cpp:
655         (WebCore::PluginView::start):
656         (WebCore::PluginView::getURLNotify):
657         (WebCore::PluginView::getURL):
658         (WebCore::PluginView::handlePost):
659
660 2015-04-27  Brady Eidson  <beidson@apple.com>
661
662         Unreviewed build fix after r183405
663
664         * WebActionPropertyBag.cpp:
665         (WebActionPropertyBag::Read): Cast the enum class to a LONG.
666
667 2015-04-23  Andy Estes  <aestes@apple.com>
668
669         Try to fix the Windows build after r183234.
670
671         * FullscreenVideoController.cpp:
672         (FullscreenVideoController::FullscreenVideoController): FullscreenVideoController inherits privately from
673         WebCore::MediaPlayerPrivateFullscreenClient, so make_unique isn't allowed to upcast. Add an explicit upcast.
674
675 2015-04-23  Darin Adler  <darin@apple.com>
676
677         Another round of removing use of OwnPtr, PassOwnPtr, and deleteOwnedPtr
678         https://bugs.webkit.org/show_bug.cgi?id=144090
679
680         Reviewed by Anders Carlsson.
681
682         * FullscreenVideoController.cpp:
683         (FullscreenVideoController::FullscreenVideoController):
684         (FullscreenVideoController::exitFullscreen):
685         * FullscreenVideoController.h:
686         * Plugins/PluginView.h:
687         * Plugins/PluginViewWin.cpp:
688         (WebCore::PluginView::wndProc):
689         * WebCoreSupport/AcceleratedCompositingContext.h:
690         * WebCoreSupport/WebChromeClient.cpp:
691         (WebChromeClient::WebChromeClient):
692         * WebCoreSupport/WebChromeClient.h:
693         * WebCoreSupport/WebEditorClient.h:
694         * WebCoreSupport/WebFrameLoaderClient.cpp:
695         (WebFrameLoaderClient::WebFrameLoaderClient):
696         * WebCoreSupport/WebFrameLoaderClient.h:
697         * WebCoreSupport/WebInspectorClient.cpp:
698         (WebInspectorClient::highlight):
699         * WebCoreSupport/WebInspectorClient.h:
700         * WebElementPropertyBag.cpp:
701         (WebElementPropertyBag::WebElementPropertyBag):
702         * WebElementPropertyBag.h:
703         * WebFrame.h:
704         * WebHistoryItem.cpp:
705         * WebNodeHighlight.cpp:
706         * WebNotificationCenter.cpp:
707         (WebNotificationCenter::WebNotificationCenter):
708         * WebNotificationCenter.h:
709         Use make_unique and unique_ptr instead of adoptPtr and OwnPtr.
710
711 2015-04-23  Andreas Kling  <akling@apple.com>
712
713         There should only be one way to get the system memory size.
714         <https://webkit.org/b/144081>
715
716         Reviewed by Antti Koivisto.
717
718         * WebView.cpp:
719         (WebView::setCacheModel):
720
721 2015-04-13  Jer Noble  <jer.noble@apple.com>
722
723         [Fullscreen] ChromeClient::exitVideoFullscreen() should take a pointer to a HTMLVideoElement.
724         https://bugs.webkit.org/show_bug.cgi?id=143674
725
726         Reviewed by Darin Adler.
727
728         * WebCoreSupport/WebChromeClient.cpp:
729         (WebChromeClient::enterVideoFullscreenForVideoElement): Takes a reference.
730         (WebChromeClient::exitVideoFullscreenForVideoElement): Renamed from exitVideoFullscreen().
731         (WebChromeClient::exitVideoFullscreen): Deleted.
732         * WebCoreSupport/WebChromeClient.h:
733         * WebView.cpp:
734         (WebView::enterVideoFullscreenForVideoElement): Takes a reference.
735         (WebView::exitVideoFullscreenForVideoElement): Renamed from exitVideoFullscreen().
736         (WebView::exitVideoFullscreen): Deleted.
737         * WebView.h:
738
739 2015-04-13  Beth Dakin  <bdakin@apple.com>
740
741         Add force property to MouseEvents
742         https://bugs.webkit.org/show_bug.cgi?id=143569
743         -and corresponding-
744         rdar://problem/20472954
745
746         Reviewed by Darin Adler.
747
748         PlatformMouseEvent takes a force parameter.
749         * WebDropSource.cpp:
750         (generateMouseEvent):
751
752 2015-04-13  Per Arne Vollan  <peavo@outlook.com>
753
754         [Win] Incorrect parameter order in call to WebView::repaint.
755         https://bugs.webkit.org/show_bug.cgi?id=143666
756
757         Reviewed by Brent Fulgham.
758
759         The 'immediate' default parameter has been forgotten.
760
761         * WebCoreSupport/WebChromeClient.cpp:
762         (WebChromeClient::invalidateRootView):
763         (WebChromeClient::invalidateContentsAndRootView):
764         (WebChromeClient::invalidateContentsForSlowScroll):
765
766 2015-04-11  Yusuke Suzuki  <utatane.tea@gmail.com>
767
768         [ES6] Enable Symbol in web pages
769         https://bugs.webkit.org/show_bug.cgi?id=143375
770
771         Reviewed by Ryosuke Niwa.
772
773         * Interfaces/IWebPreferencesPrivate.idl:
774
775 2015-04-10  Per Arne Vollan  <peavo@outlook.com>
776
777         [Win] Implement some methods in DOMHTMLDocument interface.
778         https://bugs.webkit.org/show_bug.cgi?id=143602
779
780         Reviewed by Alex Christensen.
781
782         * DOMHTMLClasses.cpp:
783         (DOMHTMLDocument::open):
784         (DOMHTMLDocument::close):
785         (DOMHTMLDocument::write):
786         (DOMHTMLDocument::writeln):
787
788 2015-04-09  Chris Dumez  <cdumez@apple.com>
789
790         [WK2][iOS] editorState() should not cause a synchronous layout
791         https://bugs.webkit.org/show_bug.cgi?id=142536
792         <rdar://problem/20041506>
793
794         Reviewed by Enrica Casucci.
795
796         Provide implementation for EditorClient::didChangeSelectionAndUpdateLayout().
797
798         * WebCoreSupport/WebEditorClient.h:
799
800 2015-04-08  Brady Eidson  <beidson@apple.com>
801
802         Expose the "Share" menu for links, images, and media.
803         <rdar://problem/20435340> and https://bugs.webkit.org/show_bug.cgi?id=143502
804
805         Reviewed by Tim Horton.
806
807         * WebCoreSupport/WebContextMenuClient.cpp:
808         (WebContextMenuClient::shareMenuItem):
809         * WebCoreSupport/WebContextMenuClient.h:
810
811 2015-04-08  Anders Carlsson  <andersca@apple.com>
812
813         Add a WebApplicationCache::storage() and use it instead of the WebCore singleton
814         https://bugs.webkit.org/show_bug.cgi?id=143525
815
816         Reviewed by Antti Koivisto.
817
818         * WebApplicationCache.cpp:
819         (WebApplicationCache::storage):
820         (WebApplicationCache::maximumSize):
821         (WebApplicationCache::setMaximumSize):
822         (WebApplicationCache::defaultOriginQuota):
823         (WebApplicationCache::setDefaultOriginQuota):
824         (WebApplicationCache::diskUsageForOrigin):
825         (WebApplicationCache::deleteAllApplicationCaches):
826         (WebApplicationCache::deleteCacheForOrigin):
827         (WebApplicationCache::originsWithCache):
828         * WebApplicationCache.h:
829
830 2015-04-01  Simon Fraser  <simon.fraser@apple.com>
831
832         Fix Windows build.
833
834         * WebCoreSupport/WebChromeClient.h:
835         (WebChromeClient::numWheelEventHandlersChanged): Deleted.
836
837 2015-03-25  Per Arne Vollan  <peavo@outlook.com>
838
839         [WinCairo] Crash when plugin window is destroyed.
840         https://bugs.webkit.org/show_bug.cgi?id=142905
841
842         Reviewed by Alex Christensen.
843
844         When a plugin window is destroyed with the Win32 api function DestroyWindow,
845         the system will send a synchronous WM_PARENTNOTIFY message to the WebView.
846         The WebView window procedure will, when processing the WM_PARENTNOTIFY message,
847         call UpdateWindow to paint synchronously. This will cause reentrancy problems,
848         since we're already called from WebCore code, and then reenter WebCore painting code.
849         We should avoid calling UpdateWindow when handling the WM_PARENTNOTIFY message.
850
851         * WebView.cpp:
852         (WebView::WebViewWndProc):
853         (WebView::updateWindowIfNeeded):
854         * WebView.h:
855
856 2015-03-19  Chris Dumez  <cdumez@apple.com>
857
858         Clean up DOMTimer related settings
859         https://bugs.webkit.org/show_bug.cgi?id=142837
860
861         Reviewed by Darin Adler.
862
863         Stop setting the DOMTimers' default minimum interval to 4ms as this
864         is now the default.
865
866         * WebView.cpp:
867         (WebView::initWithFrame):
868         (WebView::defaultMinimumTimerInterval):
869
870 2015-03-16  Conrad Shultz  <conrad_shultz@apple.com>
871
872         Allow clients to selectively disable plug-ins
873         https://bugs.webkit.org/show_bug.cgi?id=142506
874
875         Reviewed by Anders Carlsson.
876
877         * WebCoreSupport/WebPlatformStrategies.h:
878         * WebCoreSupport/WebPlatformStrategies.cpp:
879         (WebPlatformStrategies::getWebVisiblePluginInfo):
880         Wrap getPluginInfo();
881
882         * WebView.cpp:
883         (WebView::canShowMIMEType):
884         Update to reflect function rename.
885
886 2015-03-13  Commit Queue  <commit-queue@webkit.org>
887
888         Unreviewed, rolling out r181483.
889         https://bugs.webkit.org/show_bug.cgi?id=142688
890
891         Caused use-after-free on many tests (Requested by ap on
892         #webkit).
893
894         Reverted changeset:
895
896         "Allow clients to selectively disable plug-ins"
897         https://bugs.webkit.org/show_bug.cgi?id=142506
898         http://trac.webkit.org/changeset/181483
899
900 2015-03-10  Conrad Shultz  <conrad_shultz@apple.com>
901
902         Allow clients to selectively disable plug-ins
903         https://bugs.webkit.org/show_bug.cgi?id=142506
904
905         Reviewed by Anders Carlsson.
906
907         * WebCoreSupport/WebPlatformStrategies.h:
908         * WebCoreSupport/WebPlatformStrategies.cpp:
909         (WebPlatformStrategies::getWebVisiblePluginInfo):
910         Wrap getPluginInfo();
911
912         * WebView.cpp:
913         (WebView::canShowMIMEType):
914         Update to reflect function rename.
915
916 2015-03-04  Brent Fulgham  <bfulgham@apple.com>
917
918         [Win] AX: Implement support for ARIA 1.1 'switch' role
919         https://bugs.webkit.org/show_bug.cgi?id=142016
920         <rdar://problem/19953264>
921
922         Reviewed by Chris Fleizach.
923
924         The changes in Bug 141986 did not update the proper Windows routines to
925         support the new ARIA 1.1 role. This turned out to be trivial.
926
927         * AccessibleBase.cpp:
928         (MSAARole): Provide MSAA role for 'switch'. Also correct 'ToggleButtonRole',
929         which was improperly reporting as 'push button'.
930
931 2015-03-04  Yusuke Suzuki  <utatane.tea@gmail.com>
932
933         Hide Promise with runtime flags under Cocoa JSContext API
934         https://bugs.webkit.org/show_bug.cgi?id=141965
935
936         Reviewed by Filip Pizlo.
937
938         Add new JSC runtime flag, PromiseDisabled.
939
940         * Interfaces/IWebPreferences.idl:
941         * Interfaces/IWebPreferencesPrivate.idl:
942
943 2015-03-03  Chris Dumez  <cdumez@apple.com>
944
945         Access ApplicationCacheStorage global instance via singleton() static member function
946         https://bugs.webkit.org/show_bug.cgi?id=142239
947
948         Reviewed by Anders Carlsson.
949
950         Access ApplicationCacheStorage global instance via singleton() static
951         member function as per WebKit coding style.
952
953 2015-03-01  Chris Dumez  <cdumez@apple.com>
954
955         Make NotificationCenter / Notification suspendable
956         https://bugs.webkit.org/show_bug.cgi?id=142117
957         <rdar://problem/19923085>
958
959         Reviewed by Andreas Kling.
960
961         Provide implementation for NotificationClient::hasPendingPermissionRequests().
962
963         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
964         (WebDesktopNotificationsDelegate::requestPermission):
965         (hasPendingPermissionRequests):
966         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
967
968 2015-02-26  Brent Fulgham  <bfulgham@apple.com>
969
970         [Win] Remove remaining SafariTheme cruft
971         https://bugs.webkit.org/show_bug.cgi?id=142075
972
973         Reviewed by Anders Carlsson.
974
975         Remove reference to SafariTheme-switching preference.
976
977         * Interfaces/IWebPreferencesPrivate.idl:
978         * WebKitClassFactory.cpp:
979         (WebKitClassFactory::WebKitClassFactory):
980         (WebKitClassFactory::QueryInterface):
981         (WebKitClassFactory::AddRef):
982         (WebKitClassFactory::Release):
983         (WebKitClassFactory::CreateInstance):
984         (WebKitClassFactory::LockServer):
985         * WebPreferences.cpp:
986         (WebPreferences::shouldPaintNativeControls): Deleted.
987         (WebPreferences::setShouldPaintNativeControls): Deleted.
988         * WebPreferences.h:
989         * WebView.cpp:
990         (WebView::initWithFrame):
991         (WebView::notifyPreferencesChanged):
992
993 2015-02-26  Chris Dumez  <cdumez@apple.com>
994
995         Rename DatabaseManager::manager() to DatabaseManager::singleton()
996         https://bugs.webkit.org/show_bug.cgi?id=142054
997
998         Reviewed by Ryosuke Niwa.
999
1000         Rename DatabaseManager::manager() to DatabaseManager::singleton() as
1001         per coding style and use WTF::NeverDestroyed.
1002
1003         * WebDatabaseManager.cpp:
1004         (WebDatabaseManager::sharedWebDatabaseManager):
1005         (WebDatabaseManager::origins):
1006         (WebDatabaseManager::databasesWithOrigin):
1007         (WebDatabaseManager::detailsForDatabase):
1008         (WebDatabaseManager::deleteAllDatabases):
1009         (WebDatabaseManager::deleteOrigin):
1010         (WebDatabaseManager::deleteDatabase):
1011         (WebDatabaseManager::setQuota):
1012         (WebKitInitializeWebDatabasesIfNecessary):
1013         * WebSecurityOrigin.cpp:
1014         (WebSecurityOrigin::usage):
1015         (WebSecurityOrigin::quota):
1016         (WebSecurityOrigin::setQuota):
1017         * WebView.cpp:
1018         (WebView::notifyPreferencesChanged):
1019
1020 2015-02-25  Brent Fulgham  <bfulgham@apple.com>
1021
1022         [Win] Use WEBCORE_EXPORT instead of Definition file
1023         https://bugs.webkit.org/show_bug.cgi?id=141734
1024
1025         Reviewed by Alex Christensen.
1026
1027         * CFDictionaryPropertyBag.h: Add required export macros.
1028         * Interfaces/WebKit.idl: Ditto.
1029         * WebCoreStatistics.cpp: Add missing #include (required
1030         now that we are exporting more symbols.)
1031         * WebKitCOMAPI.h: Add required export macros.
1032         * WebKitDLL.h: Ditto.
1033         * WebKitPrefix.h: Ditto.
1034         * WebView.cpp: Add missing #include required using new
1035         due to new export mechanism.
1036
1037 2015-02-24  Yusuke Suzuki  <utatane.tea@gmail.com>
1038
1039         REGRESSION(r179429): Can't type comments in Facebook
1040         https://bugs.webkit.org/show_bug.cgi?id=141859
1041
1042         Reviewed by Brent Fulgham.
1043
1044         Added Windows support.
1045
1046         * Interfaces/IWebPreferences.idl:
1047         * Interfaces/IWebPreferencesPrivate.idl:
1048         * WebPreferenceKeysPrivate.h:
1049         * WebPreferences.cpp:
1050         (WebPreferences::initializeDefaultSettings):
1051         (WebPreferences::javaScriptRuntimeFlags):
1052         (WebPreferences::setJavaScriptRuntimeFlags):
1053         (WebPreferences::isWebSecurityEnabled):
1054         * WebPreferences.h:
1055         * WebView.cpp:
1056         (WebView::notifyPreferencesChanged):
1057
1058 2015-02-18  Chris Dumez  <cdumez@apple.com>
1059
1060         Access FontCache global instance via singleton() static member function
1061         https://bugs.webkit.org/show_bug.cgi?id=141726
1062
1063         Reviewed by Daniel Bates.
1064
1065         Access FontCache global instance via singleton() static member function,
1066         as per coding style.
1067
1068 2015-02-09  Brian J. Burg  <burg@cs.washington.edu>
1069
1070         Web Inspector: remove some unnecessary Inspector prefixes from class names in Inspector namespace
1071         https://bugs.webkit.org/show_bug.cgi?id=141372
1072
1073         Reviewed by Joseph Pecoraro.
1074
1075         * WebCoreSupport/WebInspectorClient.cpp:
1076         (WebInspectorFrontendClient::destroyInspectorView):
1077
1078 2015-02-11  Brent Fulgham  <bfulgham@apple.com>
1079
1080         [Win] [64-bit] Work around MSVC2013 Runtime Bug
1081         https://bugs.webkit.org/show_bug.cgi?id=141498
1082         <rdar://problem/19803642>
1083
1084         Reviewed by Anders Carlsson.
1085
1086         Disable FMA3 instruction use in the MSVC math library to
1087         work around a VS2013 runtime crash. We can remove this
1088         workaround when we switch to VS2015.
1089
1090         * WebKitDLL.cpp: Call _set_FMA3_enable(0) to disable FMA3 support.
1091
1092 2015-02-11  peavo@outlook.com  <peavo@outlook.com>
1093
1094         [WinCairo] Accelerated compositing should be disabled when graphics card does not support it.
1095         https://bugs.webkit.org/show_bug.cgi?id=140667
1096
1097         Reviewed by Alex Christensen.
1098
1099         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1100         (AcceleratedCompositingContext::scrollNonCompositedContents):
1101         (AcceleratedCompositingContext::acceleratedCompositingAvailable):
1102         * WebCoreSupport/AcceleratedCompositingContext.h:
1103         * WebView.cpp:
1104         (WebView::notifyPreferencesChanged):
1105
1106 2015-02-09  Brent Fulgham  <bfulgham@apple.com>
1107
1108         AX: [Win] OBJID_CLIENT comparisons broken in 64-bit builds
1109         https://bugs.webkit.org/show_bug.cgi?id=141391
1110         <rdar://problem/19767342>
1111
1112         Reviewed by Anders Carlsson.
1113
1114         * WebView.cpp:
1115         (WebView::onGetObject): Cast lParam as LONG to ensure proper word size for
1116         comparison against OBJID_CLIENT.
1117
1118 2015-02-07  Chris Dumez  <cdumez@apple.com>
1119
1120         Add Vector::removeFirstMatching() / removeAllMatching() methods taking lambda functions
1121         https://bugs.webkit.org/show_bug.cgi?id=141321
1122
1123         Reviewed by Darin Adler.
1124
1125         Use new Vector::removeFirstMatching() / removeAllMatching() methods.
1126
1127 2015-02-02  Chris Dumez  <cdumez@apple.com>
1128
1129         Access MemoryCache singleton using MemoryCache::singleton()
1130         https://bugs.webkit.org/show_bug.cgi?id=141104
1131
1132         Reviewed by Andreas Kling.
1133
1134         Access MemoryCache singleton using MemoryCache::singleton() static
1135         member function, instead of a free function, as per the recent
1136         coding style discussion on WebKit-dev.
1137
1138 2015-01-30  Chris Dumez  <cdumez@apple.com>
1139
1140         Rename shared() static member functions to singleton() for singleton classes.
1141         https://bugs.webkit.org/show_bug.cgi?id=141088
1142
1143         Reviewed by Ryosuke Niwa and Benjamin Poulain.
1144
1145         Rename shared() static member functions to singleton() for singleton
1146         classes as per the recent coding style change.
1147
1148 2015-01-29  Brent Fulgham  <bfulgham@apple.com>
1149
1150         [Win] Build fix after r179368.
1151
1152         * Interfaces/IWebPreferencesPrivate.idl:
1153         * WebPreferences.cpp:
1154         (WebPreferences::screenFontSubstitutionEnabled): Deleted.
1155         (WebPreferences::setScreenFontSubstitutionEnabled): Deleted.
1156         * WebPreferences.h:
1157         * WebView.cpp:
1158         (WebView::notifyPreferencesChanged):
1159
1160 2015-01-29  Sam Weinig  <sam@webkit.org>
1161
1162         Remove support for screen font substitution
1163         https://bugs.webkit.org/show_bug.cgi?id=141038
1164
1165         Reviewed by Tim Horton.
1166
1167         * WebPreferenceKeysPrivate.h:
1168         * WebPreferences.cpp:
1169         (WebPreferences::screenFontSubstitutionEnabled):
1170         (WebPreferences::setScreenFontSubstitutionEnabled):
1171         Remove implementations. Have this setting set on windows didn't have any effect before,
1172         so this doesn't change behavior.
1173
1174 2015-01-29  Chris Dumez  <cdumez@apple.com>
1175
1176         Clean up / modernize PageCache class
1177         https://bugs.webkit.org/show_bug.cgi?id=141009
1178
1179         Reviewed by Darin Adler.
1180
1181         Clean up / modernize PageCache class.
1182
1183         * WebView.cpp:
1184         (WebView::setCacheModel):
1185
1186 2015-01-28  peavo@outlook.com  <peavo@outlook.com>
1187
1188         [WinCairo] Message loop is flooded with timer messages when animating in accelerated compositing mode.
1189         https://bugs.webkit.org/show_bug.cgi?id=140985
1190
1191         Reviewed by Brent Fulgham.
1192
1193         The animation timer has zero timeout, which makes it hard for other messages to slip through.
1194
1195         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1196         (AcceleratedCompositingContext::scheduleLayerFlush):
1197
1198 2015-01-28  Chris Dumez  <cdumez@apple.com>
1199
1200         Fix typo in markPagesForVistedLinkStyleRecalc()
1201         https://bugs.webkit.org/show_bug.cgi?id=140977
1202
1203         Reviewed by Darin Adler.
1204
1205         * WebCoreSupport/WebVisitedLinkStore.cpp:
1206         (WebVisitedLinkStore::removeAllVisitedLinks):
1207         (WebVisitedLinkStore::addVisitedLinkHash):
1208
1209 2015-01-28  Chris Dumez  <cdumez@apple.com>
1210
1211         Rename pageCache() to PageCache::shared() and return a reference
1212         https://bugs.webkit.org/show_bug.cgi?id=140983
1213
1214         Reviewed by Andreas Kling.
1215
1216         Rename pageCache() to PageCache::shared() as this is a singleton class
1217         and have it return a reference instead of a pointer.
1218
1219         * WebCoreStatistics.cpp:
1220         (WebCoreStatistics::cachedPageCount):
1221         (WebCoreStatistics::cachedFrameCount):
1222         * WebCoreSupport/WebVisitedLinkStore.cpp:
1223         (WebVisitedLinkStore::removeAllVisitedLinks):
1224         (WebVisitedLinkStore::addVisitedLinkHash):
1225         * WebView.cpp:
1226         (WebView::setCacheModel):
1227
1228 2015-01-27  Chris Dumez  <cdumez@apple.com>
1229
1230         Use a Ref<CachedResourceLoader> in Document instead of a RefPtr
1231         https://bugs.webkit.org/show_bug.cgi?id=140971
1232
1233         Reviewed by Andreas Kling.
1234
1235         Use more references instead of pointers.
1236
1237         * WebDataSource.cpp:
1238         (WebDataSource::subresourceForURL):
1239
1240 2015-01-26  Brent Fulgham  <bfulgham@apple.com>
1241
1242         [Win] ASSERTION FAILED !m_ptr under AccessibilityController::winAddNotificationListener
1243         https://bugs.webkit.org/show_bug.cgi?id=87426
1244         <rdar://problem/11527899>
1245
1246         Reviewed by Darin Adler.
1247
1248         Revise COMPtr to work better with our HashMap implementation. Use
1249         modern loop syntax.
1250
1251         * WebHistory.cpp:
1252         (WebHistory::visitedURL): Adjust for new COMPtr changes.
1253         * WebPreferences.cpp:
1254         (WebPreferences::getInstanceForIdentifier): Ditto.
1255         (WebPreferences::removeReferenceForIdentifier): Ditto.
1256         * WebView.cpp:
1257         (WebView::setEditable): Ditto.
1258
1259 2015-01-26  Chris Dumez  <cdumez@apple.com>
1260
1261         Rename Document::body() to Document::bodyOrFrameset() for clarity
1262         https://bugs.webkit.org/show_bug.cgi?id=140902
1263
1264         Reviewed by Andreas Kling.
1265
1266         Rename Document::body() to Document::bodyOrFrameset() for clarity. This
1267         method does not necessarily return an HTMLBodyElement, it can also
1268         return a frameset as per the specification:
1269         http://www.w3.org/TR/html5/dom.html#dom-tree-accessors
1270
1271         This method is often misused internally (the caller is only interested
1272         in the <body> element). I will fix these instances in a follow-up patch,
1273         this patch is only renaming mechanically.
1274
1275 2015-01-25  peavo@outlook.com  <peavo@outlook.com>
1276
1277         [Win] Add WebKit message loop interface.
1278         https://bugs.webkit.org/show_bug.cgi?id=140857
1279
1280         Reviewed by Brent Fulgham.
1281
1282         Added message loop interface which will run the message loop,
1283         and perform required tasks (like calling CFRunLoopRunInMode)
1284         on each iteration of the loop.
1285
1286         * ForEachCoClass.h:
1287         * Interfaces/WebKit.idl:
1288         * Interfaces/WebKitMessageLoop.idl: Added.
1289         * WebKitClassFactory.cpp:
1290         * WebKitMessageLoop.cpp: Added.
1291         (WebKitMessageLoop::WebKitMessageLoop):
1292         (WebKitMessageLoop::~WebKitMessageLoop):
1293         (WebKitMessageLoop::createInstance):
1294         (WebKitMessageLoop::QueryInterface):
1295         (WebKitMessageLoop::AddRef):
1296         (WebKitMessageLoop::Release):
1297         (WebKitMessageLoop::run):
1298         (WebKitMessageLoop::performMessageLoopTasks):
1299         * WebKitMessageLoop.h: Added.
1300
1301 2015-01-23  Brent Fulgham  <bfulgham@apple.com>
1302
1303         [Win] Teach WebKit to provide IAccessible2 'get_language'
1304         https://bugs.webkit.org/show_bug.cgi?id=140839
1305
1306         Reviewed by Dean Jackson.
1307
1308         * AccessibleBase.cpp:
1309         (AccessibleBase::get_locale): Wrap the Webore::AccessibleObject::language
1310         result in an IA2Locale structure to statisfy the IAccessible2 specification.
1311
1312 2015-01-22  Brent Fulgham  <bfulgham@apple.com>
1313
1314         [Win] Unreviewed test fix after r178965.
1315
1316         * WebView.cpp: Supply missing implementation of 'setEditable'. It
1317         currently asserts, causing all debug tests to fail.
1318
1319 2015-01-22  peavo@outlook.com  <peavo@outlook.com>
1320
1321         [Win] No plugin content on some sites.
1322         https://bugs.webkit.org/show_bug.cgi?id=140780
1323
1324         Reviewed by Anders Carlsson.
1325
1326         Add override modifier to bindingInstance method.
1327
1328         * Plugins/PluginView.h:
1329
1330 2015-01-22  Brent Fulgham  <bfulgham@apple.com>
1331
1332         [Win] Expose missing editing features through WebView interface
1333         https://bugs.webkit.org/show_bug.cgi?id=140773
1334         <rdar://problem/19565421>
1335
1336         Reviewed by Dean Jackson.
1337
1338         Connect the various WebView editing delegate methods to our
1339         test infrastructure. Also prefer _bstr_t to raw BSTR types
1340         to simplify life cycle management.
1341
1342         * DOMCoreClasses.cpp: Flesh out the DOMRange object.
1343         (DOMElement::createInstance):
1344         (DOMRange::QueryInterface):
1345         (DOMRange::DOMRange):
1346         (DOMRange::~DOMRange):
1347         (DOMRange::createInstance):
1348         (DOMRange::startContainer):
1349         (DOMRange::startOffset):
1350         (DOMRange::endContainer):
1351         (DOMRange::endOffset):
1352         (DOMRange::collapsed):
1353         (DOMRange::commonAncestorContainer):
1354         (DOMRange::setStart):
1355         (DOMRange::setEnd):
1356         (DOMRange::setStartBefore):
1357         (DOMRange::setStartAfter):
1358         (DOMRange::setEndBefore):
1359         (DOMRange::setEndAfter):
1360         (DOMRange::collapse):
1361         (DOMRange::selectNode):
1362         (DOMRange::selectNodeContents):
1363         (DOMRange::compareBoundaryPoints):
1364         (DOMRange::deleteContents):
1365         (DOMRange::extractContents):
1366         (DOMRange::cloneContents):
1367         (DOMRange::insertNode):
1368         (DOMRange::surroundContents):
1369         (DOMRange::cloneRange):
1370         (DOMRange::toString):
1371         (DOMRange::detach):
1372         * DOMCoreClasses.h:
1373         (DOMRange::AddRef):
1374         (DOMRange::Release):
1375         (DOMRange::throwException):
1376         (DOMRange::callWebScriptMethod):
1377         (DOMRange::evaluateWebScript):
1378         (DOMRange::removeWebScriptKey):
1379         (DOMRange::stringRepresentation):
1380         (DOMRange::webScriptValueAtIndex):
1381         (DOMRange::setWebScriptValueAtIndex):
1382         (DOMRange::setException):
1383         * Interfaces/IWebEditingDelegate.idl:
1384         * Interfaces/IWebView.idl:
1385         * WebCoreSupport/WebEditorClient.cpp: Connect more methods
1386         to actual editing features in WebCore.
1387         (WebEditorClient::shouldBeginEditing):
1388         (WebEditorClient::shouldEndEditing):
1389         (WebEditorClient::didBeginEditing):
1390         (WebEditorClient::respondToChangedContents):
1391         (WebEditorClient::respondToChangedSelection):
1392         (WebEditorClient::didEndEditing):
1393         (WebEditorClient::shouldDeleteRange):
1394         (WebEditorClient::shouldInsertNode):
1395         (WebEditorClient::shouldInsertText):
1396         (WebEditorClient::shouldChangeSelectedRange):
1397         (WebEditorClient::webViewDidChangeTypingStyle):
1398         (WebEditorClient::webViewDidChangeSelection):
1399         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
1400         * WebView.cpp:
1401         (WebView::setEditingDelegate): Added.
1402
1403 2015-01-21  Brent Fulgham  <bfulgham@apple.com>
1404
1405         [Win] eventSender does not support scalePageBy
1406         https://bugs.webkit.org/show_bug.cgi?id=140726
1407         <rdar://problem/19549865>
1408
1409         Reviewed by Dean Jackson.
1410
1411         * Interfaces/IWebViewPrivate.idl: Add scaleWebView API.
1412         * WebView.cpp:
1413         (WebView::scaleWebView): 
1414         Connect WebCore implementation to the Windows COM interface.
1415         * WebView.h:
1416
1417 2015-01-21  Csaba Osztrogonác  <ossy@webkit.org>
1418
1419         Remove ENABLE(INSPECTOR) ifdef guards
1420         https://bugs.webkit.org/show_bug.cgi?id=140668
1421
1422         Reviewed by Darin Adler.
1423
1424         * WebCoreSupport/WebInspectorClient.cpp:
1425         (registerWindowClass):
1426         * WebInspector.cpp:
1427         (WebInspector::setTimelineProfilingEnabled):
1428         * WebNodeHighlight.cpp:
1429         (WebNodeHighlight::WebNodeHighlight):
1430         (WebNodeHighlight::update):
1431         * WebNodeHighlight.h:
1432         * WebView.cpp:
1433         (WebView::WebView):
1434         (WebView::close):
1435         (WebView::initWithFrame):
1436         (WebView::inspector):
1437         * WebView.h:
1438
1439 2015-01-20  Csaba Osztrogonác  <ossy@webkit.org>
1440
1441         Remove non-Windows cruft from WebKit/win/Plugins
1442         https://bugs.webkit.org/show_bug.cgi?id=140675
1443
1444         Reviewed by Anders Carlsson.
1445
1446         * Plugins/PluginDatabase.cpp:
1447         (WebCore::PluginDatabase::defaultPluginDirectories):
1448         (WebCore::PluginDatabase::isPreferredPluginDirectory):
1449         (WebCore::PluginDatabase::getPluginPathsInDirectories):
1450         * Plugins/PluginDebug.cpp:
1451         (WebCore::prettyNameForNPNVariable):
1452         (WebCore::prettyNameForNPPVariable):
1453         (WebCore::prettyNameForDrawingModel): Deleted.
1454         (WebCore::prettyNameForEventModel): Deleted.
1455         * Plugins/PluginDebug.h:
1456         * Plugins/PluginPackage.cpp:
1457         (WebCore::PluginPackage::compareFileVersion):
1458         (WebCore::PluginPackage::determineQuirks): Deleted.
1459         (WebCore::PluginPackage::determineModuleVersionFromDescription): Deleted.
1460         (WebCore::PluginPackage::hash): Deleted.
1461         (WebCore::PluginPackage::equal): Deleted.
1462         * Plugins/PluginView.cpp:
1463         (WebCore::PluginView::setFrameRect):
1464         (WebCore::PluginView::handleEvent):
1465         (WebCore::PluginView::stop):
1466         (WebCore::PluginView::setValue):
1467         (WebCore::PluginView::PluginView):
1468         * Plugins/PluginView.h:
1469         (WebCore::PluginView::platformPluginWidget): Deleted.
1470         (WebCore::PluginView::setPlatformPluginWidget): Deleted.
1471         * Plugins/PluginViewWin.cpp:
1472         (windowHandleForPageClient):
1473         (WebCore::PluginView::hookedBeginPaint):
1474         (WebCore::PluginView::hookedEndPaint):
1475         (WebCore::hook):
1476         (WebCore::registerPluginView):
1477         (WebCore::PluginView::paint):
1478         (WebCore::PluginView::handleMouseEvent):
1479         (WebCore::PluginView::setNPWindowRect):
1480         (WebCore::PluginView::platformStart):
1481         (WebCore::PluginView::snapshot):
1482         * Plugins/npapi.cpp:
1483         (NPN_InvalidateRect):
1484
1485 2015-01-19  Brent Fulgham  <bfulgham@apple.com>
1486
1487         [Win] Periodic failure in DumpRenderTree related to WebActionPropertyBag::Read
1488         https://bugs.webkit.org/show_bug.cgi?id=139906
1489
1490         Reviewed by Dean Jackson.
1491
1492         WebKit on Windows was creating uninitialized VARIANT structures, then attempting
1493         to use them. This patch fixes that.
1494
1495         Identified by dom/html/level2/html/HTMLIFrameElement03.html (and others)
1496
1497         * COMEnumVariant.h:
1498         (COMEnumVariant<ContainerType>::Next):
1499         * COMPropertyBag.h:
1500         (HashType>::Read):
1501         * DefaultPolicyDelegate.cpp:
1502         (DefaultPolicyDelegate::decidePolicyForNavigationAction):
1503         * WebActionPropertyBag.cpp:
1504         (WebActionPropertyBag::Read):
1505         * WebDatabaseManager.cpp:
1506         (DatabaseDetailsPropertyBag::Read):
1507         * WebElementPropertyBag.cpp:
1508         (WebElementPropertyBag::Read):
1509         * WebFrame.cpp:
1510         (EnumChildFrames::Next):
1511         * WebView.cpp:
1512         (WebView::notifyDidAddIcon):
1513
1514 2015-01-15  Csaba Osztrogonác  <ossy@webkit.org>
1515
1516         Remove ENABLE(SQL_DATABASE) guards
1517         https://bugs.webkit.org/show_bug.cgi?id=140434
1518
1519         Reviewed by Darin Adler.
1520
1521         * ForEachCoClass.h:
1522         * WebCoreSupport/WebChromeClient.cpp:
1523         (WebChromeClient::exceededDatabaseQuota):
1524         * WebCoreSupport/WebChromeClient.h:
1525         * WebDatabaseManager.cpp:
1526         (WebKitInitializeWebDatabasesIfNecessary):
1527         * WebDatabaseManager.h:
1528         * WebSecurityOrigin.cpp:
1529         (WebSecurityOrigin::usage):
1530         (WebSecurityOrigin::quota):
1531         (WebSecurityOrigin::setQuota):
1532         * WebView.cpp:
1533         (WebView::initWithFrame):
1534         (WebView::notifyPreferencesChanged):
1535
1536 2015-01-15  Brent Fulgham  <bfulgham@apple.com>
1537
1538         [Win] Unreviewed build fix after r178510
1539
1540         Correct #include and declarations from Font->FontCascade
1541
1542         * DOMCoreClasses.cpp:
1543         (DOMElement::font):
1544         * FullscreenVideoController.cpp:
1545         (FullscreenVideoController::draw):
1546         * WebKitGraphics.cpp:
1547         * WebPreferences.cpp:
1548
1549 2015-01-14  Chris Dumez  <cdumez@apple.com>
1550
1551         Make 'TypeName' parameter unnecessary in CSSPropertyNames.in
1552         https://bugs.webkit.org/show_bug.cgi?id=140347
1553
1554         Reviewed by Darin Adler.
1555
1556         Call FontDescription::setIsItalic() instead of setItalic() as the
1557         call site passes a boolean.
1558
1559         * WebKitGraphics.cpp:
1560         (makeFont):
1561
1562 2015-01-11  Sam Weinig  <sam@webkit.org>
1563
1564         Remove support for SharedWorkers
1565         https://bugs.webkit.org/show_bug.cgi?id=140344
1566
1567         Reviewed by Anders Carlsson.
1568
1569         * WebCoreSupport/WebPlatformStrategies.cpp:
1570         (WebPlatformStrategies::createSharedWorkerStrategy): Deleted.
1571         * WebCoreSupport/WebPlatformStrategies.h:
1572
1573 2015-01-10  peavo@outlook.com  <peavo@outlook.com>
1574
1575         [WinCairo] Accelerated compositing has stopped working.
1576         https://bugs.webkit.org/show_bug.cgi?id=140334
1577
1578         Reviewed by Brent Fulgham.
1579
1580         The method GraphicsLayerTextureMapper::flushCompositingStateForThisLayerOnly()
1581         is not updating the backingstore anymore, we need to call the new method
1582         GraphicsLayerTextureMapper::updateBackingStoreIncludingSubLayers().
1583
1584         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1585         (AcceleratedCompositingContext::flushPendingLayerChanges):
1586         (AcceleratedCompositingContext::flushAndRenderLayers):
1587
1588 2015-01-09  Anders Carlsson  <andersca@apple.com>
1589
1590         Get rid of the database strategy
1591         https://bugs.webkit.org/show_bug.cgi?id=140322
1592
1593         Reviewed by Sam Weinig.
1594
1595         * WebCoreSupport/WebPlatformStrategies.cpp:
1596         (WebPlatformStrategies::createDatabaseStrategy): Deleted.
1597         * WebCoreSupport/WebPlatformStrategies.h:
1598
1599 2015-01-06  Anders Carlsson  <andersca@apple.com>
1600
1601         Move the Windows only plug-in code to WebKit/win
1602         https://bugs.webkit.org/show_bug.cgi?id=140133
1603
1604         Reviewed by Darin Adler.
1605
1606         * Plugins/PaintHooks.asm: Renamed from Source/WebCore/plugins/win/PaintHooks.asm.
1607         * Plugins/PluginDatabase.cpp: Renamed from Source/WebCore/plugins/PluginDatabase.cpp.
1608         (WebCore::persistentPluginMetadataCachePath):
1609         (WebCore::PluginDatabase::PluginDatabase):
1610         (WebCore::PluginDatabase::installedPlugins):
1611         (WebCore::PluginDatabase::isMIMETypeRegistered):
1612         (WebCore::PluginDatabase::addExtraPluginDirectory):
1613         (WebCore::PluginDatabase::refresh):
1614         (WebCore::PluginDatabase::plugins):
1615         (WebCore::PluginDatabase::preferredPluginCompare):
1616         (WebCore::PluginDatabase::pluginForMIMEType):
1617         (WebCore::PluginDatabase::MIMETypeForExtension):
1618         (WebCore::PluginDatabase::findPlugin):
1619         (WebCore::PluginDatabase::setPreferredPluginForMIMEType):
1620         (WebCore::PluginDatabase::fileExistsAndIsNotDisabled):
1621         (WebCore::PluginDatabase::getDeletedPlugins):
1622         (WebCore::PluginDatabase::add):
1623         (WebCore::PluginDatabase::remove):
1624         (WebCore::PluginDatabase::clear):
1625         (WebCore::PluginDatabase::removeDisabledPluginFile):
1626         (WebCore::PluginDatabase::addDisabledPluginFile):
1627         (WebCore::PluginDatabase::defaultPluginDirectories):
1628         (WebCore::PluginDatabase::isPreferredPluginDirectory):
1629         (WebCore::PluginDatabase::getPluginPathsInDirectories):
1630         (WebCore::fillBufferWithContentsOfFile):
1631         (WebCore::readUTF8String):
1632         (WebCore::readTime):
1633         (WebCore::PluginDatabase::loadPersistentMetadataCache):
1634         (WebCore::writeUTF8String):
1635         (WebCore::writeTime):
1636         (WebCore::PluginDatabase::updatePersistentMetadataCache):
1637         (WebCore::PluginDatabase::isPersistentMetadataCacheEnabled):
1638         (WebCore::PluginDatabase::setPersistentMetadataCacheEnabled):
1639         (WebCore::PluginDatabase::persistentMetadataCachePath):
1640         (WebCore::PluginDatabase::setPersistentMetadataCachePath):
1641         * Plugins/PluginDatabase.h: Renamed from Source/WebCore/plugins/PluginDatabase.h.
1642         (WebCore::PluginDatabase::setPluginDirectories):
1643         (WebCore::PluginDatabase::pluginDirectories):
1644         * Plugins/PluginDatabaseWin.cpp: Renamed from Source/WebCore/plugins/win/PluginDatabaseWin.cpp.
1645         (WebCore::addPluginPathsFromRegistry):
1646         (WebCore::PluginDatabase::getPluginPathsInDirectories):
1647         (WebCore::parseVersionString):
1648         (WebCore::compareVersions):
1649         (WebCore::addMozillaPluginDirectories):
1650         (WebCore::addWindowsMediaPlayerPluginDirectory):
1651         (WebCore::addAdobeAcrobatPluginDirectory):
1652         (WebCore::addJavaPluginDirectory):
1653         (WebCore::safariPluginsDirectory):
1654         (WebCore::addMacromediaPluginDirectories):
1655         (WebCore::PluginDatabase::defaultPluginDirectories):
1656         (WebCore::PluginDatabase::isPreferredPluginDirectory):
1657         * Plugins/PluginDebug.cpp: Renamed from Source/WebCore/plugins/PluginDebug.cpp.
1658         (WebCore::prettyNameForNPError):
1659         (WebCore::prettyNameForDrawingModel):
1660         (WebCore::prettyNameForEventModel):
1661         (WebCore::prettyNameForNPNVariable):
1662         (WebCore::prettyNameForNPPVariable):
1663         (WebCore::prettyNameForNPNURLVariable):
1664         * Plugins/PluginDebug.h: Renamed from Source/WebCore/plugins/PluginDebug.h.
1665         * Plugins/PluginMessageThrottlerWin.cpp: Renamed from Source/WebCore/plugins/win/PluginMessageThrottlerWin.cpp.
1666         (WebCore::PluginMessageThrottlerWin::PluginMessageThrottlerWin):
1667         (WebCore::PluginMessageThrottlerWin::~PluginMessageThrottlerWin):
1668         (WebCore::PluginMessageThrottlerWin::appendMessage):
1669         (WebCore::PluginMessageThrottlerWin::processQueuedMessage):
1670         (WebCore::PluginMessageThrottlerWin::messageThrottleTimerFired):
1671         (WebCore::PluginMessageThrottlerWin::allocateMessage):
1672         (WebCore::PluginMessageThrottlerWin::isInlineMessage):
1673         (WebCore::PluginMessageThrottlerWin::freeMessage):
1674         * Plugins/PluginMessageThrottlerWin.h: Renamed from Source/WebCore/plugins/win/PluginMessageThrottlerWin.h.
1675         * Plugins/PluginPackage.cpp: Renamed from Source/WebCore/plugins/PluginPackage.cpp.
1676         (WebCore::PluginPackage::~PluginPackage):
1677         (WebCore::PluginPackage::freeLibrarySoon):
1678         (WebCore::PluginPackage::freeLibraryTimerFired):
1679         (WebCore::PluginPackage::compare):
1680         (WebCore::PluginPackage::PluginPackage):
1681         (WebCore::PluginPackage::unload):
1682         (WebCore::PluginPackage::unloadWithoutShutdown):
1683         (WebCore::PluginPackage::setEnabled):
1684         (WebCore::PluginPackage::createPackage):
1685         (WebCore::PluginPackage::createPackageFromCache):
1686         (WebCore::PluginPackage::determineQuirks):
1687         (WebCore::PluginPackage::determineModuleVersionFromDescription):
1688         (WebCore::getListFromVariantArgs):
1689         (WebCore::makeSource):
1690         (WebCore::NPN_Evaluate):
1691         (WebCore::NPN_Invoke):
1692         (WebCore::PluginPackage::initializeBrowserFuncs):
1693         (WebCore::PluginPackage::hash):
1694         (WebCore::PluginPackage::equal):
1695         (WebCore::PluginPackage::compareFileVersion):
1696         (WebCore::PluginPackage::ensurePluginLoaded):
1697         * Plugins/PluginPackage.h: Renamed from Source/WebCore/plugins/PluginPackage.h.
1698         (WebCore::PluginPackage::name):
1699         (WebCore::PluginPackage::description):
1700         (WebCore::PluginPackage::path):
1701         (WebCore::PluginPackage::fileName):
1702         (WebCore::PluginPackage::parentDirectory):
1703         (WebCore::PluginPackage::module):
1704         (WebCore::PluginPackage::lastModified):
1705         (WebCore::PluginPackage::mimeToDescriptions):
1706         (WebCore::PluginPackage::mimeToExtensions):
1707         (WebCore::PluginPackage::isEnabled):
1708         (WebCore::PluginPackage::pluginFuncs):
1709         (WebCore::PluginPackage::quirks):
1710         (WebCore::PluginPackage::version):
1711         (WebCore::PluginPackage::fullMIMEDescription):
1712         (WebCore::PluginPackageHash::hash):
1713         (WebCore::PluginPackageHash::equal):
1714         * Plugins/PluginPackageWin.cpp: Renamed from Source/WebCore/plugins/win/PluginPackageWin.cpp.
1715         (WebCore::getVersionInfo):
1716         (WebCore::PluginPackage::isPluginBlacklisted):
1717         (WebCore::PluginPackage::determineQuirks):
1718         (WebCore::PluginPackage::fetchInfo):
1719         (WebCore::PluginPackage::load):
1720         (WebCore::PluginPackage::hash):
1721         (WebCore::PluginPackage::equal):
1722         (WebCore::PluginPackage::NPVersion):
1723         * Plugins/PluginQuirkSet.h: Renamed from Source/WebCore/plugins/PluginQuirkSet.h.
1724         (WebCore::PluginQuirkSet::PluginQuirkSet):
1725         (WebCore::PluginQuirkSet::add):
1726         (WebCore::PluginQuirkSet::contains):
1727         * Plugins/PluginStream.cpp: Renamed from Source/WebCore/plugins/PluginStream.cpp.
1728         (WebCore::streams):
1729         (WebCore::PluginStream::PluginStream):
1730         (WebCore::PluginStream::~PluginStream):
1731         (WebCore::PluginStream::start):
1732         (WebCore::PluginStream::stop):
1733         (WebCore::lastModifiedDate):
1734         (WebCore::PluginStream::startStream):
1735         (WebCore::PluginStream::ownerForStream):
1736         (WebCore::PluginStream::cancelAndDestroyStream):
1737         (WebCore::PluginStream::destroyStream):
1738         (WebCore::PluginStream::delayDeliveryTimerFired):
1739         (WebCore::PluginStream::deliverData):
1740         (WebCore::PluginStream::sendJavaScriptStream):
1741         (WebCore::PluginStream::didReceiveResponse):
1742         (WebCore::PluginStream::didReceiveData):
1743         (WebCore::PluginStream::didFail):
1744         (WebCore::PluginStream::didFinishLoading):
1745         (WebCore::PluginStream::wantsAllStreams):
1746         * Plugins/PluginStream.h: Renamed from Source/WebCore/plugins/PluginStream.h.
1747         (WebCore::PluginStreamClient::~PluginStreamClient):
1748         (WebCore::PluginStreamClient::streamDidFinishLoading):
1749         (WebCore::PluginStream::create):
1750         (WebCore::PluginStream::setLoadManually):
1751         * Plugins/PluginView.cpp: Renamed from Source/WebCore/plugins/PluginView.cpp.
1752         (WebCore::instanceMap):
1753         (WebCore::scriptStringIfJavaScriptURL):
1754         (WebCore::PluginView::popPopupsStateTimerFired):
1755         (WebCore::PluginView::windowClipRect):
1756         (WebCore::PluginView::setFrameRect):
1757         (WebCore::PluginView::frameRectsChanged):
1758         (WebCore::PluginView::clipRectChanged):
1759         (WebCore::PluginView::handleEvent):
1760         (WebCore::PluginView::init):
1761         (WebCore::PluginView::startOrAddToUnstartedList):
1762         (WebCore::PluginView::start):
1763         (WebCore::PluginView::mediaCanStart):
1764         (WebCore::PluginView::~PluginView):
1765         (WebCore::PluginView::stop):
1766         (WebCore::PluginView::setCurrentPluginView):
1767         (WebCore::PluginView::currentPluginView):
1768         (WebCore::createUTF8String):
1769         (WebCore::PluginView::performRequest):
1770         (WebCore::PluginView::requestTimerFired):
1771         (WebCore::PluginView::scheduleRequest):
1772         (WebCore::PluginView::load):
1773         (WebCore::makeURL):
1774         (WebCore::PluginView::getURLNotify):
1775         (WebCore::PluginView::getURL):
1776         (WebCore::PluginView::postURLNotify):
1777         (WebCore::PluginView::postURL):
1778         (WebCore::PluginView::newStream):
1779         (WebCore::PluginView::write):
1780         (WebCore::PluginView::destroyStream):
1781         (WebCore::PluginView::status):
1782         (WebCore::PluginView::setValue):
1783         (WebCore::PluginView::invalidateTimerFired):
1784         (WebCore::PluginView::pushPopupsEnabledState):
1785         (WebCore::PluginView::popPopupsEnabledState):
1786         (WebCore::PluginView::arePopupsAllowed):
1787         (WebCore::PluginView::setJavaScriptPaused):
1788         (WebCore::PluginView::npObject):
1789         (WebCore::PluginView::bindingInstance):
1790         (WebCore::PluginView::disconnectStream):
1791         (WebCore::PluginView::setParameters):
1792         (WebCore::PluginView::PluginView):
1793         (WebCore::PluginView::focusPluginElement):
1794         (WebCore::PluginView::didReceiveResponse):
1795         (WebCore::PluginView::didReceiveData):
1796         (WebCore::PluginView::didFinishLoading):
1797         (WebCore::PluginView::didFail):
1798         (WebCore::PluginView::setCallingPlugin):
1799         (WebCore::PluginView::isCallingPlugin):
1800         (WebCore::PluginView::create):
1801         (WebCore::PluginView::freeStringArray):
1802         (WebCore::startsWithBlankLine):
1803         (WebCore::locationAfterFirstBlankLine):
1804         (WebCore::findEOL):
1805         (WebCore::capitalizeRFC822HeaderFieldName):
1806         (WebCore::parseRFC822HeaderFields):
1807         (WebCore::PluginView::handlePost):
1808         (WebCore::PluginView::invalidateWindowlessPluginRect):
1809         (WebCore::PluginView::paintMissingPluginIcon):
1810         (WebCore::PluginView::userAgent):
1811         (WebCore::PluginView::userAgentStatic):
1812         (WebCore::PluginView::lifeSupportTimerFired):
1813         (WebCore::PluginView::keepAlive):
1814         (WebCore::PluginView::getValueStatic):
1815         (WebCore::PluginView::getValue):
1816         (WebCore::getFrame):
1817         (WebCore::PluginView::getValueForURL):
1818         (WebCore::PluginView::setValueForURL):
1819         (WebCore::PluginView::getAuthenticationInfo):
1820         (WebCore::PluginView::privateBrowsingStateChanged):
1821         * Plugins/PluginView.h: Renamed from Source/WebCore/plugins/PluginView.h.
1822         (WebCore::PluginRequest::PluginRequest):
1823         (WebCore::PluginRequest::frameLoadRequest):
1824         (WebCore::PluginRequest::notifyData):
1825         (WebCore::PluginRequest::sendNotification):
1826         (WebCore::PluginRequest::shouldAllowPopups):
1827         (WebCore::PluginManualLoader::~PluginManualLoader):
1828         (WebCore::PluginView::plugin):
1829         (WebCore::PluginView::instance):
1830         (WebCore::PluginView::status):
1831         (WebCore::PluginView::streamDidFinishLoading):
1832         (WebCore::PluginView::parentFrame):
1833         (WebCore::PluginView::pluginsPage):
1834         (WebCore::PluginView::mimeType):
1835         (WebCore::PluginView::url):
1836         (WebCore::PluginView::pluginWndProc):
1837         (WebCore::PluginView::platformPluginWidget):
1838         (WebCore::PluginView::setPlatformPluginWidget):
1839         (WebCore::toPluginView):
1840         * Plugins/PluginViewWin.cpp: Renamed from Source/WebCore/plugins/win/PluginViewWin.cpp.
1841         (windowHandleForPageClient):
1842         (WebCore::PluginView::hookedBeginPaint):
1843         (WebCore::PluginView::hookedEndPaint):
1844         (WebCore::hook):
1845         (WebCore::setUpOffscreenPaintingHooks):
1846         (WebCore::registerPluginView):
1847         (WebCore::PluginView::PluginViewWndProc):
1848         (WebCore::isWindowsMessageUserGesture):
1849         (WebCore::contentsToNativeWindow):
1850         (WebCore::PluginView::wndProc):
1851         (WebCore::PluginView::updatePluginWidget):
1852         (WebCore::PluginView::setFocus):
1853         (WebCore::PluginView::show):
1854         (WebCore::PluginView::hide):
1855         (WebCore::PluginView::dispatchNPEvent):
1856         (WebCore::PluginView::paintIntoTransformedContext):
1857         (WebCore::PluginView::paintWindowedPluginIntoContext):
1858         (WebCore::PluginView::paint):
1859         (WebCore::PluginView::handleKeyboardEvent):
1860         (WebCore::PluginView::handleMouseEvent):
1861         (WebCore::PluginView::setParent):
1862         (WebCore::PluginView::setParentVisible):
1863         (WebCore::PluginView::setNPWindowRect):
1864         (WebCore::PluginView::handlePostReadFile):
1865         (WebCore::PluginView::platformGetValueStatic):
1866         (WebCore::PluginView::platformGetValue):
1867         (WebCore::PluginView::invalidateRect):
1868         (WebCore::PluginView::invalidateRegion):
1869         (WebCore::PluginView::forceRedraw):
1870         (WebCore::PluginView::platformStart):
1871         (WebCore::PluginView::platformDestroy):
1872         (WebCore::PluginView::snapshot):
1873         * Plugins/npapi.cpp: Renamed from Source/WebCore/plugins/npapi.cpp.
1874         (pluginViewForInstance):
1875         (NPN_MemAlloc):
1876         (NPN_MemFree):
1877         (NPN_MemFlush):
1878         (NPN_ReloadPlugins):
1879         (NPN_RequestRead):
1880         (NPN_GetURLNotify):
1881         (NPN_GetURL):
1882         (NPN_PostURLNotify):
1883         (NPN_PostURL):
1884         (NPN_NewStream):
1885         (NPN_Write):
1886         (NPN_DestroyStream):
1887         (NPN_UserAgent):
1888         (NPN_Status):
1889         (NPN_InvalidateRect):
1890         (NPN_InvalidateRegion):
1891         (NPN_ForceRedraw):
1892         (NPN_GetValue):
1893         (NPN_SetValue):
1894         (NPN_GetJavaEnv):
1895         (NPN_GetJavaPeer):
1896         (NPN_PushPopupsEnabledState):
1897         (NPN_PopPopupsEnabledState):
1898         (NPN_PluginThreadAsyncCall):
1899         (NPN_GetValueForURL):
1900         (NPN_SetValueForURL):
1901         (NPN_GetAuthenticationInfo):
1902         (NPN_PopUpContextMenu):
1903
1904 2015-01-08  Dean Jackson  <dino@apple.com>
1905
1906         Text not drawn or white-on-white for "Close Page"/"Go Back" button on safe browsing warning page
1907         https://bugs.webkit.org/show_bug.cgi?id=140232
1908         <rdar://problem/19371010>
1909
1910         Reviewed by Anders Carlsson.
1911
1912         Remove the applicationChromeMode setting, but leave stubs in to make
1913         sure existing binaries don't break.
1914
1915         * WebPreferences.cpp:
1916         (WebPreferences::initializeDefaultSettings):
1917         (WebPreferences::inApplicationChromeMode):
1918         (WebPreferences::setApplicationChromeMode):
1919         * WebView.cpp:
1920         (WebView::notifyPreferencesChanged):
1921
1922 2015-01-07  Brent Fulgham  <bfulgham@apple.com>
1923
1924         [Win] WindowCloseTimer is an ActiveDOMObject and must call suspendIfNeeded
1925         https://bugs.webkit.org/show_bug.cgi?id=140184
1926         <rdar://problem/19399740>
1927
1928         Reviewed by Jer Noble.
1929
1930         This bug was found in fast/loader/stateobjects/popstate-fires-with-page-cache.html
1931
1932         * WebView.cpp:
1933         (WindowCloseTimer::create): Modify to ensure a call to suspendIfNeeded is made
1934         during the creation process.
1935
1936 2015-01-07  Zan Dobersek  <zdobersek@igalia.com>
1937
1938         [TexMap] m_layer member in GraphicsLayerTextureMapper is always non-null
1939         https://bugs.webkit.org/show_bug.cgi?id=140135
1940
1941         Reviewed by Darin Adler.
1942
1943         GraphicsLayerTextureMapper::layer() now returns a reference,
1944         so the call sites are updated.
1945
1946         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1947         (AcceleratedCompositingContext::initialize):
1948         (AcceleratedCompositingContext::startedAnimation):
1949         (AcceleratedCompositingContext::compositeLayersToContext):
1950
1951 2015-01-06  Anders Carlsson  <andersca@apple.com>
1952
1953         Add a WebKit1 database provider
1954         https://bugs.webkit.org/show_bug.cgi?id=140126
1955
1956         Reviewed by Sam Weinig.
1957
1958         Set the database provider.
1959
1960         * WebView.cpp:
1961         (WebView::initWithFrame):
1962
1963 2015-01-06  Commit Queue  <commit-queue@webkit.org>
1964
1965         Unreviewed, rolling out r177963.
1966         https://bugs.webkit.org/show_bug.cgi?id=140136
1967
1968         Caused lots of crashes (Requested by smfr on #webkit).
1969
1970         Reverted changeset:
1971
1972         "Add a WebKit1 database provider"
1973         https://bugs.webkit.org/show_bug.cgi?id=140126
1974         http://trac.webkit.org/changeset/177963
1975
1976 2015-01-06  Anders Carlsson  <andersca@apple.com>
1977
1978         Add a WebKit1 database provider
1979         https://bugs.webkit.org/show_bug.cgi?id=140126
1980
1981         Reviewed by Sam Weinig.
1982
1983         Set the database provider.
1984
1985         * WebView.cpp:
1986         (WebView::initWithFrame):
1987
1988 2014-12-29  Anders Carlsson  <andersca@apple.com>
1989
1990         Another attempt at fixing the build.
1991
1992         * WebKitDLL.cpp:
1993         (shutDownWebKit):
1994
1995 2014-12-29  Anders Carlsson  <andersca@apple.com>
1996
1997         Try to fix the Windows build.
1998
1999         * WebKitDLL.cpp:
2000         (shutDownWebKit):
2001
2002 2014-12-19  peavo@outlook.com  <peavo@outlook.com>
2003
2004         [WinCairo] Crash after failing to create GL context in accelerated compositing mode.
2005         https://bugs.webkit.org/show_bug.cgi?id=139830
2006
2007         Reviewed by Alex Christensen.
2008
2009         There is missing a null pointer check.
2010
2011         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2012         (AcceleratedCompositingContext::initialize):
2013
2014 2014-12-19  Brent Fulgham  <bfulgham@apple.com>
2015
2016         [Win] Add accessor for serializing HTTP loads.
2017         https://bugs.webkit.org/show_bug.cgi?id=139817
2018
2019         Reviewed by Mark Lam.
2020
2021         * Interfaces/IWebViewPrivate.idl: Add new method.
2022         * WebView.cpp:
2023         (WebView::setLoadResourcesSerially): Provide implementation.
2024         * WebView.h:
2025
2026 2014-12-18  peavo@outlook.com  <peavo@outlook.com>
2027
2028         [WinCairo] Compile error in code for creating GL context.
2029         https://bugs.webkit.org/show_bug.cgi?id=139782
2030
2031         Reviewed by Alex Christensen.
2032
2033         The GLContext::createContextForWindow method has changed return type to std::unique_ptr.
2034
2035         * WebCoreSupport/AcceleratedCompositingContext.h:
2036
2037 2014-12-18  Brent Fulgham  <bfulgham@apple.com>
2038
2039         [Win] Update DumpRenderTree to more closely match Mac version
2040         https://bugs.webkit.org/show_bug.cgi?id=139799
2041
2042         Reviewed by Tim Horton.
2043
2044         * Interfaces/IWebSecurityOrigin.idl: Add initializer from URL.
2045         * Interfaces/WebKit.idl: Add CLSID so we can instantiate a
2046         WebSecurityOrigin from COM.
2047         * WebApplicationCache.h: Decorate class declaration with CLSID
2048         to support COM introspection.
2049         * WebSecurityOrigin.cpp: Get rid of meaningless STDMETHODCALLTYPE
2050         declarations inside implementation.
2051         (WebSecurityOrigin::QueryInterface):
2052         (WebSecurityOrigin::AddRef):
2053         (WebSecurityOrigin::Release):
2054         (WebSecurityOrigin::protocol):
2055         (WebSecurityOrigin::host):
2056         (WebSecurityOrigin::port):
2057         (WebSecurityOrigin::usage):
2058         (WebSecurityOrigin::quota):
2059         (WebSecurityOrigin::setQuota):
2060         (WebSecurityOrigin::initWithURL): Added.
2061         * WebSecurityOrigin.h:
2062
2063 2014-12-18  Brent Fulgham  <bfulgham@apple.com>
2064
2065         [Win] Correct Windows tests after Bug 139149.
2066         https://bugs.webkit.org/show_bug.cgi?id=139781
2067
2068         Reviewed by Anders Carlsson.
2069
2070         * Interfaces/IWebApplicationCache.idl: Added.
2071         * Interfaces/WebKit.idl: Add new IDL file.
2072         * WebActionPropertyBag.cpp:
2073         (WebActionPropertyBag::Read): Remove old debugging message.
2074         * WebApplicationCache.cpp: Added.
2075         (WebApplicationCache::WebApplicationCache):
2076         (WebApplicationCache::~WebApplicationCache):
2077         (WebApplicationCache::createInstance):
2078         (WebApplicationCache::QueryInterface):
2079         (WebApplicationCache::AddRef):
2080         (WebApplicationCache::Release):
2081         (WebApplicationCache::maximumSize):
2082         (WebApplicationCache::setMaximumSize):
2083         (WebApplicationCache::defaultOriginQuota):
2084         (WebApplicationCache::setDefaultOriginQuota):
2085         (WebApplicationCache::diskUsageForOrigin):
2086         (WebApplicationCache::deleteAllApplicationCaches):
2087         (WebApplicationCache::deleteCacheForOrigin):
2088         (WebApplicationCache::originsWithCache):
2089         * WebApplicationCache.h: Added.
2090         * WebKitClassFactory.cpp: Add new interface header.
2091
2092 2014-12-17  Anders Carlsson  <andersca@apple.com>
2093
2094         Get rid of FrameLoader::defaultObjectContentType
2095         https://bugs.webkit.org/show_bug.cgi?id=139758
2096
2097         Reviewed by Geoffrey Garen.
2098
2099         * WebCoreSupport/WebFrameLoaderClient.cpp:
2100         (WebFrameLoaderClient::objectContentType):
2101
2102 2014-12-16  Andreas Kling  <akling@apple.com>
2103
2104         Use Ref for SecurityOrigin.
2105         <https://webkit.org/b/139710>
2106
2107         Reviewed by Anders Carlsson.
2108
2109         * WebDatabaseManager.cpp:
2110         (WebDatabaseManager::setQuota):
2111         * WebView.cpp:
2112         (WebView::addOriginAccessWhitelistEntry):
2113         (WebView::removeOriginAccessWhitelistEntry):
2114
2115 2014-12-11  Alexey Proskuryakov  <ap@apple.com>
2116
2117         REGRESSION (Async Text Input): Text input method state is not reset when reloading a page
2118         https://bugs.webkit.org/show_bug.cgi?id=139504
2119         rdar://problem/19034674
2120
2121         Reviewed by Enrica Casucci.
2122
2123         Stub out new client calls, this patch doesn't attempt to make any changes on Windows.
2124
2125         * WebCoreSupport/WebEditorClient.cpp:
2126         (WebEditorClient::discardedComposition):
2127         * WebCoreSupport/WebEditorClient.h:
2128
2129 2014-12-10  Anders Carlsson  <andersca@apple.com>
2130
2131         Get rid of the storage strategy
2132         https://bugs.webkit.org/show_bug.cgi?id=139519
2133
2134         Reviewed by Antti Koivisto.
2135
2136         * WebCoreSupport/WebPlatformStrategies.cpp:
2137         (WebPlatformStrategies::createStorageStrategy): Deleted.
2138         * WebCoreSupport/WebPlatformStrategies.h:
2139
2140 2014-12-08  Anders Carlsson  <andersca@apple.com>
2141
2142         Use the new storage namespace provider in WebKit1
2143         https://bugs.webkit.org/show_bug.cgi?id=139425
2144
2145         Reviewed by Tim Horton.
2146
2147         * WebView.cpp:
2148         (localStorageDatabasePath):
2149         Helper from getting the local storage database path given a WebPreferences instance.
2150
2151         (WebView::initWithFrame):
2152         Create a storage namespace provider.
2153
2154 2014-12-09  Commit Queue  <commit-queue@webkit.org>
2155
2156         Unreviewed, rolling out r177037.
2157         https://bugs.webkit.org/show_bug.cgi?id=139464
2158
2159         broke ~50 API tests (Requested by thorton on #webkit).
2160
2161         Reverted changeset:
2162
2163         "Use the new storage namespace provider in WebKit1"
2164         https://bugs.webkit.org/show_bug.cgi?id=139425
2165         http://trac.webkit.org/changeset/177037
2166
2167 2014-12-08  Anders Carlsson  <andersca@apple.com>
2168
2169         Use the new storage namespace provider in WebKit1
2170         https://bugs.webkit.org/show_bug.cgi?id=139425
2171
2172         Reviewed by Tim Horton.
2173
2174         * WebView.cpp:
2175         (localStorageDatabasePath):
2176         Helper from getting the local storage database path given a WebPreferences instance.
2177
2178         (WebView::initWithFrame):
2179         Create a storage namespace provider.
2180
2181 2014-12-05  Anders Carlsson  <andersca@apple.com>
2182
2183         Get rid of config.h includes and include config.h in the prefix header instead
2184         https://bugs.webkit.org/show_bug.cgi?id=139323
2185
2186         Reviewed by Brent Fulgham.
2187
2188         This is making it easier to share code between WebKit1 for Mac and WebKit1 for Windows.
2189
2190         * AccessibleBase.cpp:
2191         * AccessibleDocument.cpp:
2192         * AccessibleImage.cpp:
2193         * AccessibleTextImpl.cpp:
2194         * CFDictionaryPropertyBag.cpp:
2195         * DOMCSSClasses.cpp:
2196         * DOMCoreClasses.cpp:
2197         * DOMEventsClasses.cpp:
2198         * DOMHTMLClasses.cpp:
2199         * DefaultDownloadDelegate.cpp:
2200         * DefaultPolicyDelegate.cpp:
2201         * ForEachCoClass.cpp:
2202         * FullscreenVideoController.cpp:
2203         * MarshallingHelpers.cpp:
2204         * MemoryStream.cpp:
2205         * WebActionPropertyBag.cpp:
2206         * WebArchive.cpp:
2207         * WebBackForwardList.cpp:
2208         * WebCache.cpp:
2209         * WebCoreStatistics.cpp:
2210         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2211         * WebCoreSupport/EmbeddedWidget.cpp:
2212         * WebCoreSupport/WebChromeClient.cpp:
2213         * WebCoreSupport/WebContextMenuClient.cpp:
2214         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
2215         * WebCoreSupport/WebDragClient.cpp:
2216         * WebCoreSupport/WebEditorClient.cpp:
2217         * WebCoreSupport/WebFrameLoaderClient.cpp:
2218         * WebCoreSupport/WebFrameNetworkingContext.cpp:
2219         * WebCoreSupport/WebGeolocationClient.cpp:
2220         * WebCoreSupport/WebInspectorClient.cpp:
2221         * WebCoreSupport/WebInspectorDelegate.cpp:
2222         * WebCoreSupport/WebPlatformStrategies.cpp:
2223         * WebCoreSupport/WebVisitedLinkStore.cpp:
2224         * WebDataSource.cpp:
2225         * WebDatabaseManager.cpp:
2226         * WebDocumentLoader.cpp:
2227         * WebDownload.cpp:
2228         * WebDownloadCFNet.cpp:
2229         * WebDownloadCurl.cpp:
2230         * WebDropSource.cpp:
2231         * WebElementPropertyBag.cpp:
2232         * WebError.cpp:
2233         * WebFrame.cpp:
2234         * WebFramePolicyListener.cpp:
2235         * WebGeolocationPolicyListener.cpp:
2236         * WebGeolocationPosition.cpp:
2237         * WebHTMLRepresentation.cpp:
2238         * WebHistory.cpp:
2239         * WebHistoryItem.cpp:
2240         * WebIconDatabase.cpp:
2241         * WebInspector.cpp:
2242         * WebJavaScriptCollector.cpp:
2243         * WebKitCOMAPI.cpp:
2244         * WebKitClassFactory.cpp:
2245         * WebKitDLL.cpp:
2246         * WebKitGraphics.cpp:
2247         * WebKitLogging.cpp:
2248         * WebKitPrefix.h:
2249         * WebKitStatistics.cpp:
2250         * WebKitSystemBits.cpp:
2251         * WebLocalizableStrings.cpp:
2252         * WebMutableURLRequest.cpp:
2253         * WebNavigationData.cpp:
2254         * WebNodeHighlight.cpp:
2255         * WebNotification.cpp:
2256         * WebNotificationCenter.cpp:
2257         * WebPreferences.cpp:
2258         * WebResource.cpp:
2259         * WebScriptObject.cpp:
2260         * WebScriptWorld.cpp:
2261         * WebSecurityOrigin.cpp:
2262         * WebSerializedJSValue.cpp:
2263         * WebTextRenderer.cpp:
2264         * WebURLAuthenticationChallenge.cpp:
2265         * WebURLAuthenticationChallengeSender.cpp:
2266         * WebURLAuthenticationChallengeSenderCFNet.cpp:
2267         * WebURLAuthenticationChallengeSenderCurl.cpp:
2268         * WebURLCredential.cpp:
2269         * WebURLProtectionSpace.cpp:
2270         * WebURLResponse.cpp:
2271         * WebUserContentURLPattern.cpp:
2272         * WebView.cpp:
2273         * WebWorkersPrivate.cpp:
2274
2275 2014-12-05  Anders Carlsson  <andersca@apple.com>
2276
2277         Follow-up build fix.
2278
2279         * WebCoreSupport/WebVisitedLinkStore.cpp:
2280         (WebVisitedLinkStore::shared):
2281
2282 2014-12-04  Anders Carlsson  <andersca@apple.com>
2283
2284         Don't use NeverDestroyed with a RefCounted object.
2285
2286         * WebCoreSupport/WebVisitedLinkStore.cpp:
2287         (WebVisitedLinkStore::shared):
2288
2289 2014-12-03  peavo@outlook.com  <peavo@outlook.com>
2290
2291         [TexMap] Redundant method in GraphicsLayerTextureMapper.
2292         https://bugs.webkit.org/show_bug.cgi?id=138005
2293
2294         Reviewed by Alex Christensen.
2295
2296         The TextureMapperLayer method descendantsOrSelfHaveRunningAnimations() can be used
2297         instead of the GraphicsLayerTextureMapper method startedAnimation().
2298
2299         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2300         (AcceleratedCompositingContext::startedAnimation):
2301
2302 2014-12-02  Anders Carlsson  <andersca@apple.com>
2303
2304         Remove more Windows cruft
2305         https://bugs.webkit.org/show_bug.cgi?id=139189
2306
2307         Reviewed by Andreas Kling.
2308
2309         * WebCoreSupport/WebFrameLoaderClient.cpp:
2310         (WebFrameLoaderClient::createNetworkingContext):
2311         * WebCoreSupport/WebFrameNetworkingContext.h:
2312         (WebFrameNetworkingContext::create):
2313         (WebFrameNetworkingContext::WebFrameNetworkingContext):
2314         (WebFrameNetworkingContext::userAgent): Deleted.
2315
2316 2014-12-02  Anders Carlsson  <andersca@apple.com>
2317
2318         Remove visited link handling from PageGroup
2319         https://bugs.webkit.org/show_bug.cgi?id=139185
2320
2321         Reviewed by Sam Weinig.
2322
2323         * WebCoreSupport/WebChromeClient.cpp:
2324         (WebChromeClient::populateVisitedLinks): Deleted.
2325         * WebCoreSupport/WebChromeClient.h:
2326
2327 2014-12-01  Anders Carlsson  <andersca@apple.com>
2328
2329         Remove IWebCookieManager on Windows
2330         https://bugs.webkit.org/show_bug.cgi?id=139144
2331
2332         Reviewed by Sam Weinig.
2333
2334         Remove WebCookieManager.
2335
2336         * ForEachCoClass.h:
2337         * Interfaces/IWebCookieManager.idl: Removed.
2338         * Interfaces/WebKit.idl:
2339         * WebCookieManager.cpp: Removed.
2340         * WebCookieManager.h: Removed.
2341         * WebCookieManagerCFNet.cpp: Removed.
2342         * WebCookieManagerCurl.cpp: Removed.
2343         * WebKitClassFactory.cpp:
2344
2345 2014-11-29  Anders Carlsson  <andersca@apple.com>
2346
2347         Switch over to using WebVisitedLinkStore on Windows
2348         https://bugs.webkit.org/show_bug.cgi?id=139103
2349
2350         Reviewed by Antti Koivisto.
2351
2352         * WebCoreSupport/WebChromeClient.cpp:
2353         (WebChromeClient::populateVisitedLinks):
2354         * WebHistory.cpp:
2355         (WebHistory::setOptionalSharedHistory):
2356         (WebHistory::removeAllItems):
2357         (WebHistory::setVisitedLinkTrackingEnabled):
2358         (WebHistory::removeAllVisitedLinks):
2359         (WebHistory::removeItemForURLString):
2360         (WebHistory::addVisitedLinksToVisitedLinkStore):
2361         (WebHistory::addVisitedLinksToPageGroup): Deleted.
2362         * WebHistory.h:
2363         * WebView.cpp:
2364         (WebView::initWithFrame):
2365
2366 2014-11-29  Anders Carlsson  <andersca@apple.com>
2367
2368         Another build fix.
2369
2370         * WebHistory.cpp:
2371         (WebHistory::addVisitedLinksToVisitedLinkStore):
2372
2373 2014-11-29  Anders Carlsson  <andersca@apple.com>
2374
2375         Another build fix.
2376
2377         * WebHistory.cpp:
2378         (WebHistory::addVisitedLinksToVisitedLinkStore):
2379         (WebHistory::removeAllVisitedLinks): Deleted.
2380         (WebHistory::setHistoryItemLimit): Deleted.
2381
2382 2014-11-29  Anders Carlsson  <andersca@apple.com>
2383
2384         Try to fix build.
2385
2386         * WebHistory.h:
2387
2388 2014-11-29  Anders Carlsson  <andersca@apple.com>
2389
2390         Stub out more of WebVisitedLinkStore on Windows
2391         https://bugs.webkit.org/show_bug.cgi?id=139098
2392
2393         Reviewed by Sam Weinig.
2394
2395         * WebCoreSupport/WebVisitedLinkStore.cpp:
2396         (WebVisitedLinkStore::WebVisitedLinkStore):
2397         Initialize m_visitedLinksPopulated to false.
2398
2399         (WebVisitedLinkStore::setShouldTrackVisitedLinks):
2400         Update s_shouldTrackVisitedLinks and remove all visited links if needed.
2401
2402         (WebVisitedLinkStore::removeAllVisitedLinks):
2403         Remove all hashes from our shared link store.
2404
2405         (WebVisitedLinkStore::addVisitedLink):
2406         Compute the visited link hash and add it to the store.
2407
2408         (WebVisitedLinkStore::isLinkVisited):
2409         Populate visited links and then look up the hash in our hash map.
2410
2411         (WebVisitedLinkStore::populateVisitedLinksIfNeeded):
2412         Call out to the history delegate or populate visited links from shared history.
2413
2414         (WebVisitedLinkStore::addVisitedLinkHash):
2415         Add the hash if we're tracking hashes.
2416
2417         (WebVisitedLinkStore::removeVisitedLinkHashes):
2418         Clear the map.
2419
2420         * WebCoreSupport/WebVisitedLinkStore.h:
2421         Add members.
2422
2423         * WebHistory.cpp:
2424         (WebHistory::addVisitedLinksToVisitedLinkStore):
2425         New function that adds visited links from the history to a given store.
2426
2427         * WebHistory.h:
2428         Add new member.
2429
2430         * WebView.cpp:
2431         (WebView::addVisitedLinks):
2432         Add links to the visited link store as well.
2433
2434 2014-11-27  Anders Carlsson  <andersca@apple.com>
2435
2436         Add a stubbed out WebVisitedLinkStore class on Windows
2437         https://bugs.webkit.org/show_bug.cgi?id=139078
2438
2439         Reviewed by Sam Weinig.
2440
2441         * WebCoreSupport/WebVisitedLinkStore.cpp: Added.
2442         (WebVisitedLinkStore::shared):
2443         (WebVisitedLinkStore::WebVisitedLinkStore):
2444         (WebVisitedLinkStore::~WebVisitedLinkStore):
2445         (WebVisitedLinkStore::isLinkVisited):
2446         (WebVisitedLinkStore::addVisitedLink):
2447         * WebCoreSupport/WebVisitedLinkStore.h: Added.
2448
2449 2014-11-24  Anders Carlsson  <andersca@apple.com>
2450
2451         Stub out user content WebView member functions on Windows
2452         https://bugs.webkit.org/show_bug.cgi?id=139033
2453
2454         Reviewed by Sam Weinig.
2455
2456         These functions aren't used by any clients and hinder getting rid of PageGroup.
2457         If it turns out they're still needed we can copy the user content controller code from Mac Legacy WebKit.
2458
2459         * WebView.cpp:
2460         (WebView::addUserScriptToGroup):
2461         (WebView::addUserStyleSheetToGroup):
2462         (WebView::removeUserScriptFromGroup):
2463         (WebView::removeUserStyleSheetFromGroup):
2464         (WebView::removeUserScriptsFromGroup):
2465         (WebView::removeUserStyleSheetsFromGroup):
2466         (WebView::removeAllUserContentFromGroup):
2467         (toStringVector): Deleted.
2468
2469 2014-11-21  Jer Noble  <jer.noble@apple.com>
2470
2471         Support multiple signatures of diagnostic logging.
2472         https://bugs.webkit.org/show_bug.cgi?id=138690
2473
2474         Reviewed by Anders Carlsson.
2475
2476         Page::PageClients has been renamed PageConfiguration.
2477
2478         * WebView.cpp:
2479         (WebView::initWithFrame):
2480
2481 2014-11-21  Anders Carlsson  <andersca@apple.com>
2482
2483         Another Windows build fix.
2484
2485         * FullscreenVideoController.cpp:
2486         (FullscreenVideoController::FullscreenVideoController):
2487
2488 2014-11-21  Anders Carlsson  <andersca@apple.com>
2489
2490         Remove the Timer parameters from timer callbacks
2491         https://bugs.webkit.org/show_bug.cgi?id=138974
2492
2493         Reviewed by Antti Koivisto.
2494
2495         * FullscreenVideoController.cpp:
2496         (FullscreenVideoController::timerFired):
2497         * FullscreenVideoController.h:
2498
2499 2014-11-21  Anders Carlsson  <andersca@apple.com>
2500
2501         Make memoryCache() return a reference
2502         https://bugs.webkit.org/show_bug.cgi?id=138939
2503
2504         Reviewed by Antti Koivisto.
2505
2506         * WebCache.cpp:
2507         (WebCache::statistics):
2508         (WebCache::empty):
2509         (WebCache::setDisabled):
2510         (WebCache::disabled):
2511         * WebView.cpp:
2512         (WebView::setCacheModel):
2513
2514 2014-11-16  Zan Dobersek  <zdobersek@igalia.com>
2515
2516         [TexMap] Add typecasting support for GraphicsLayerTextureMapper
2517         https://bugs.webkit.org/show_bug.cgi?id=138741
2518
2519         Reviewed by Martin Robinson.
2520
2521         Switch to using downcast<GraphicsLayerTextureMapper>() and replace
2522         uses of toTextureMapperLayer() with downcasting and calling
2523         the GraphicsLayerTextureMapper::layer() method.
2524
2525         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2526         (AcceleratedCompositingContext::initialize):
2527         (AcceleratedCompositingContext::startedAnimation):
2528         (AcceleratedCompositingContext::compositeLayersToContext):
2529
2530 2014-11-12  Chris Dumez  <cdumez@apple.com>
2531
2532         Have DOMTimer deal with more ScriptExecutionContext references
2533         https://bugs.webkit.org/show_bug.cgi?id=138679
2534
2535         Reviewed by Andreas Kling.
2536
2537         Update WindowCloseTimer to deal with ScriptExecutionContext references
2538         instead of pointers as it subclasses SuspendableTimer and its
2539         constructor takes a ScriptExecutionContext& in argument.
2540
2541         * WebView.cpp:
2542         (WindowCloseTimer::create):
2543         (WindowCloseTimer::WindowCloseTimer):
2544
2545 2014-11-05  Jer Noble  <jer.noble@apple.com>
2546
2547         De-templatize Timer
2548         https://bugs.webkit.org/show_bug.cgi?id=138450
2549
2550         Reviewed by Anders Carlsson.
2551
2552         * FullscreenVideoController.cpp:
2553         (FullscreenVideoController::timerFired):
2554         * FullscreenVideoController.h:
2555
2556 2014-11-04  Darin Adler  <darin@apple.com>
2557
2558         Eliminate ResourceBuffer and use SharedBuffer directly instead
2559         https://bugs.webkit.org/show_bug.cgi?id=138174
2560
2561         Reviewed by Antti Koivisto.
2562
2563         * WebDataSource.cpp:
2564         (WebDataSource::data): Use SharedBuffer directly.
2565         (WebDataSource::subresourceForURL): Ditto.
2566
2567 2014-11-03  Commit Queue  <commit-queue@webkit.org>
2568
2569         Unreviewed, rolling out r175406, r175413, and r175423.
2570         https://bugs.webkit.org/show_bug.cgi?id=138327
2571
2572         Multipart tests are still broken (Requested by ap on #webkit).
2573
2574         Reverted changesets:
2575
2576         "Eliminate ResourceBuffer and use SharedBuffer directly
2577         instead"
2578         https://bugs.webkit.org/show_bug.cgi?id=138174
2579         http://trac.webkit.org/changeset/175406
2580
2581         "Unreviewed, iOS build fix since 175406."
2582         http://trac.webkit.org/changeset/175413
2583
2584         "Fix assertion in CachedResource::addDataBuffer"
2585         http://trac.webkit.org/changeset/175423
2586
2587 2014-11-03  Sungmann Cho  <sungmann.cho@navercorp.com>
2588
2589         AX: Fix some minor typos related to the word "accessibility".
2590         https://bugs.webkit.org/show_bug.cgi?id=138299
2591
2592         Reviewed by Chris Fleizach.
2593
2594         No new tests, no behavior change.
2595
2596         * AccessibleBase.h:
2597
2598 2014-10-31  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2599
2600         Use std::unique_ptr for TypeCountSet
2601         https://bugs.webkit.org/show_bug.cgi?id=138242
2602
2603         Reviewed by Andreas Kling.
2604
2605         * WebCoreStatistics.cpp:
2606         (WebCoreStatistics::javaScriptProtectedObjectTypeCounts): Use std::unique_ptr<> instead of OwnPtr.
2607         (WebCoreStatistics::javaScriptObjectTypeCounts): ditto.
2608
2609 2014-10-30  Darin Adler  <darin@apple.com>
2610
2611         Eliminate ResourceBuffer and use SharedBuffer directly instead
2612         https://bugs.webkit.org/show_bug.cgi?id=138174
2613
2614         Reviewed by Antti Koivisto.
2615
2616         * WebDataSource.cpp:
2617         (WebDataSource::data): Use SharedBuffer directly.
2618         (WebDataSource::subresourceForURL): Ditto.
2619
2620 2014-10-20  peavo@outlook.com  <peavo@outlook.com>
2621
2622         [WinCairo] Crash in ATI display driver in accelerated compositing mode.
2623         https://bugs.webkit.org/show_bug.cgi?id=137879
2624
2625         Reviewed by Darin Adler.
2626
2627         Speculative fix; don't enable antialiasing when drawing textures.
2628
2629         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2630         (AcceleratedCompositingContext::initialize):
2631
2632 2014-10-20  Chris Dumez  <cdumez@apple.com>
2633
2634         Use is<>() / downcast<>() for Accessibility objects
2635         https://bugs.webkit.org/show_bug.cgi?id=137286
2636
2637         Reviewed by Darin Adler.
2638
2639         Use is<>() / downcast<>() for Accessibility objects.
2640
2641         * AccessibleBase.cpp:
2642         (AccessibleBase::accSelect):
2643         * AccessibleImage.cpp:
2644         (AccessibleImage::name):
2645
2646 2014-10-18  peavo@outlook.com  <peavo@outlook.com>
2647
2648         [WinCairo] Repaint issues with accelerated compositing.
2649         https://bugs.webkit.org/show_bug.cgi?id=137850
2650
2651         Reviewed by Brent Fulgham.
2652
2653         There is sometimes missing content in accelerated compositing mode.
2654         This is caused by not invalidating the non composited layer,
2655         and not rendering when a flush did not complete.
2656
2657         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2658         (AcceleratedCompositingContext::flushAndRenderLayers): Also render when flush did not complete.
2659         (AcceleratedCompositingContext::setNeedsDisplayInRect): Deleted.
2660         * WebCoreSupport/AcceleratedCompositingContext.h: Ditto.
2661         * WebView.cpp:
2662         (WebView::addToDirtyRegion): Invalidate non composited layer.
2663         (WebView::flushPendingGraphicsLayerChanges): Flush layers.
2664
2665 2014-10-17  Chris Dumez  <cdumez@apple.com>
2666
2667         Use is<>() / downcast<>() for RenderBox
2668         https://bugs.webkit.org/show_bug.cgi?id=137804
2669
2670         Reviewed by Andreas Kling.
2671
2672         Use is<>() / downcast<>() for RenderBox and clean up the surrounding
2673         code.
2674
2675         * WebView.cpp:
2676         (WebView::gestureNotify):
2677
2678 2014-10-17  peavo@outlook.com  <peavo@outlook.com>
2679
2680         [WinCairo] Accelerated compositing is not implemented.
2681         https://bugs.webkit.org/show_bug.cgi?id=137345
2682
2683         Reviewed by Brent Fulgham.
2684
2685         This patch is based on GTK, and the texture mapper graphics layer type.
2686
2687         * WebCoreSupport/AcceleratedCompositingContext.cpp: Added.
2688         (WebKit::AcceleratedCompositingContext::AcceleratedCompositingContext):
2689         (WebKit::getWebViewSize):
2690         (WebKit::AcceleratedCompositingContext::initialize):
2691         (WebKit::AcceleratedCompositingContext::~AcceleratedCompositingContext):
2692         (WebKit::AcceleratedCompositingContext::stopAnyPendingLayerFlush):
2693         (WebKit::AcceleratedCompositingContext::enabled):
2694         (WebKit::AcceleratedCompositingContext::prepareForRendering):
2695         (WebKit::AcceleratedCompositingContext::startedAnimation):
2696         (WebKit::AcceleratedCompositingContext::compositeLayersToContext):
2697         (WebKit::AcceleratedCompositingContext::setRootCompositingLayer):
2698         (WebKit::AcceleratedCompositingContext::setNonCompositedContentsNeedDisplay):
2699         (WebKit::AcceleratedCompositingContext::setNeedsDisplayInRect):
2700         (WebKit::AcceleratedCompositingContext::resizeRootLayer):
2701         (WebKit::AcceleratedCompositingContext::scrollNonCompositedContents):
2702         (WebKit::AcceleratedCompositingContext::scheduleLayerFlush):
2703         (WebKit::AcceleratedCompositingContext::flushPendingLayerChanges):
2704         (WebKit::AcceleratedCompositingContext::flushPendingLayerChangesSoon):
2705         (WebKit::AcceleratedCompositingContext::flushAndRenderLayers):
2706         (WebKit::AcceleratedCompositingContext::layerFlushTimerFired):
2707         (WebKit::AcceleratedCompositingContext::notifyAnimationStarted):
2708         (WebKit::AcceleratedCompositingContext::notifyFlushRequired):
2709         (WebKit::AcceleratedCompositingContext::paintContents):
2710         * WebCoreSupport/AcceleratedCompositingContext.h: Added.
2711         (WebKit::AcceleratedCompositingContext::LayerFlushTimer::LayerFlushTimer):
2712         (WebKit::AcceleratedCompositingContext::LayerFlushTimer::fired):
2713         * WebView.cpp:
2714         (WebView::WebView):
2715         (WebView::addToDirtyRegion):
2716         (WebView::scrollBackingStore):
2717         (WebView::sizeChanged):
2718         (WebView::paint):
2719         (WebView::setRootChildLayer):
2720         (WebView::flushPendingGraphicsLayerChangesSoon):
2721         (WebView::setAcceleratedCompositing):
2722         * WebView.h:
2723
2724 2014-10-16  Commit Queue  <commit-queue@webkit.org>
2725
2726         Unreviewed, rolling out r174754.
2727         https://bugs.webkit.org/show_bug.cgi?id=137789
2728
2729         Speculative fix for Windows test was ineffective. (Requested
2730         by rfong on #webkit).
2731
2732         Reverted changeset:
2733
2734         "[Windows] Add some more logging to debug Windows test
2735         issues."
2736         http://trac.webkit.org/changeset/174754
2737
2738 2014-10-15  Roger Fong  <roger_fong@apple.com>
2739
2740         [Windows] Add some more logging to debug Windows test issues.
2741
2742         * WebActionPropertyBag.cpp:
2743         (WebActionPropertyBag::Read):
2744
2745 2014-10-14  Roger Fong  <roger_fong@apple.com>
2746
2747         [Windows] Add some logging to debug random crashing when running layout tests on Windows.
2748
2749         * WebActionPropertyBag.cpp:
2750         (WebActionPropertyBag::Read):
2751
2752 2014-10-13  Brent Fulgham  <bfulgham@apple.com>
2753
2754         [Win] Implement a page load profiling tool
2755         https://bugs.webkit.org/show_bug.cgi?id=137673
2756
2757         Reviewed by Dean Jackson.
2758
2759         Add a new predicate (isMainFrame) to the IWebFrame interface so
2760         that we can make decisions about a frames position in the page
2761         load hierarchy in client programs.
2762
2763         * Interfaces/IWebFrame.idl: Added new isMainFrame
2764         predicate to interface definition.
2765         * WebFrame.cpp:
2766         (WebFrame::isMainFrame): Added.
2767         * WebFrame.h:
2768
2769 2014-10-13  Chris Dumez  <cdumez@apple.com>
2770
2771         Use is<>() / downcast<>() for PlatformCALayer subclasses
2772         https://bugs.webkit.org/show_bug.cgi?id=137661
2773
2774         Reviewed by Simon Fraser.
2775
2776         Use is<>() / downcast<>() for PlatformCALayer subclasses and clean up 
2777         the surrounding code.
2778
2779         * FullscreenVideoController.cpp:
2780         (FullscreenVideoController::enterFullscreen):
2781
2782 2014-10-10  Chris Dumez  <cdumez@apple.com>
2783
2784         Use is<>() / downcast<>() for RenderElement
2785         https://bugs.webkit.org/show_bug.cgi?id=137622
2786
2787         Reviewed by Benjamin Poulain.
2788
2789         Use is<>() / downcast<>() for RenderElement and clean up the
2790         surrounding code.
2791
2792         * WebFrame.cpp:
2793         (WebFrame::pauseAnimation):
2794         (WebFrame::pauseTransition):
2795
2796 2014-10-09  Chris Dumez  <cdumez@apple.com>
2797
2798         Use is<>() / downcast<>() for Widget subclasses
2799         https://bugs.webkit.org/show_bug.cgi?id=137549
2800
2801         Reviewed by Darin Adler.
2802
2803         Use is<>() / downcast<>() for Widget subclasses and clean up the
2804         surrounding code.
2805
2806         * WebCoreSupport/EmbeddedWidget.cpp:
2807         (EmbeddedWidget::frameRectsChanged):
2808
2809 2014-10-08  Brent Fulgham  <bfulgham@apple.com>
2810
2811         [Win] Resolve various static analyzer warnings in WebKit.
2812         https://bugs.webkit.org/show_bug.cgi?id=137531
2813
2814         Reviewed by Dean Jackson.
2815
2816         * MarshallingHelpers.cpp:
2817         (MarshallingHelpers::safeArrayToIntArray): Handle possible failure of
2818         SafeArrayGetElement call.
2819         (MarshallingHelpers::safeArrayToIUnknownArray): Ditto.
2820         * MemoryStream.cpp:
2821         (MemoryStream::CopyTo): Zero-initialize 'written' to silence warning. 
2822         * WebCoreSupport/WebChromeClient.cpp:
2823         (WebChromeClient::exceededDatabaseQuota): Handle possible failure of
2824         GetModuleFileName.
2825         * WebHistory.cpp:
2826         (getDayBoundaries): Handle possible failure of TzSpecificLocalTimeToSystemTime
2827         * WebView.cpp:
2828         (WebView::shouldInitializeTrackPointHack): Zero initialize return value.
2829         (WebView::dispatchDidReceiveIconFromWebFrame): Avoid possible DeleteObject
2830         call on a null bitmap handle.
2831         (WebView::standardUserAgentWithApplicationName): Get rid of spurious
2832         pointer dereference.
2833
2834 2014-10-02  Tim Horton  <timothy_horton@apple.com>
2835
2836         Move PageOverlay[Controller] to WebCore
2837         https://bugs.webkit.org/show_bug.cgi?id=137164
2838         <rdar://problem/18508258>
2839
2840         Reviewed by Anders Carlsson.
2841
2842         * WebCoreSupport/WebChromeClient.cpp:
2843         (WebChromeClient::attachViewOverlayGraphicsLayer):
2844         * WebCoreSupport/WebChromeClient.h:
2845         Add an empty ChromeClient override.
2846
2847 2014-10-01  Christophe Dumez  <cdumez@apple.com>
2848
2849         Have is<>(T*) function do a null check on the pointer argument
2850         https://bugs.webkit.org/show_bug.cgi?id=137333
2851
2852         Reviewed by Gavin Barraclough.
2853
2854         Have is<>(T*) function do a null check on the argument instead of a
2855         simple assertion. This makes sense for 2 reasons:
2856         1. It is more consistent with downcast<>(T*), which will succeed even
2857            if the argument is a nullptr.
2858         2. It simplifies the code a bit as it gets rid of a lot of explicit
2859            null checks.
2860
2861         * DOMCoreClasses.cpp:
2862         (DOMElement::createInstance):
2863         * DOMHTMLClasses.cpp:
2864         (DOMHTMLDocument::body):
2865         (DOMHTMLDocument::forms):
2866         (DOMHTMLElement::idName):
2867         (DOMHTMLElement::innerText):
2868         (DOMHTMLElement::setInnerText):
2869         (DOMHTMLFormElement::action):
2870         (DOMHTMLFormElement::method):
2871         (DOMHTMLOptionElement::text):
2872         (DOMHTMLOptionElement::label):
2873         (DOMHTMLInputElement::form):
2874         (DOMHTMLInputElement::disabled):
2875         (DOMHTMLInputElement::readOnly):
2876         (DOMHTMLInputElement::setType):
2877         (DOMHTMLInputElement::value):
2878         (DOMHTMLInputElement::setValue):
2879         (DOMHTMLInputElement::setValueForUser):
2880         (DOMHTMLInputElement::select):
2881         (DOMHTMLInputElement::setSelectionStart):
2882         (DOMHTMLInputElement::selectionStart):
2883         (DOMHTMLInputElement::setSelectionEnd):
2884         (DOMHTMLInputElement::selectionEnd):
2885         (DOMHTMLInputElement::isTextField):
2886         (DOMHTMLInputElement::rectOnScreen):
2887         (DOMHTMLInputElement::replaceCharactersInRange):
2888         (DOMHTMLInputElement::selectedRange):
2889         (DOMHTMLInputElement::setAutofilled):
2890         (DOMHTMLInputElement::isAutofilled):
2891         (DOMHTMLInputElement::isUserEdited):
2892         (DOMHTMLTextAreaElement::form):
2893         (DOMHTMLTextAreaElement::value):
2894         (DOMHTMLTextAreaElement::setValue):
2895         (DOMHTMLTextAreaElement::select):
2896         (DOMHTMLTextAreaElement::isUserEdited):
2897         * WebFrame.cpp:
2898         (formElementFromDOMElement):
2899         (inputElementFromDOMElement):
2900         (WebFrame::elementWithName):
2901
2902 2014-09-30  Christophe Dumez  <cdumez@apple.com>
2903
2904         Generalize is<>() / downcast<>() support to all types
2905         https://bugs.webkit.org/show_bug.cgi?id=137243
2906
2907         Reviewed by Benjamin Poulain.
2908
2909         Generalize is<>() / downcast<>() support to all types, not just Nodes.
2910
2911         * DOMCoreClasses.cpp:
2912         (DOMElement::createInstance):
2913
2914 2014-09-30  Chris Dumez  <cdumez@apple.com>
2915
2916         Use is<>() / downcast<>() for Element
2917         https://bugs.webkit.org/show_bug.cgi?id=137241
2918
2919         Reviewed by Andreas Kling.
2920
2921         Use is<>() / downcast<>() for Element instead of isElementNode() /
2922         toElement().
2923
2924         * DOMEventsClasses.cpp:
2925         (DOMMouseEvent::toElement):
2926         * DOMEventsClasses.h:
2927
2928 2014-09-29  Christophe Dumez  <cdumez@apple.com>
2929
2930         Make is<>() / downcast<>() work for HTMLDocument and its subclasses
2931         https://bugs.webkit.org/show_bug.cgi?id=137169
2932
2933         Reviewed by Darin Adler.
2934
2935         Use is<>() / downcast<>() for HTMLDocument and its subclasses.
2936
2937         * DOMHTMLClasses.cpp:
2938         (DOMHTMLDocument::URL):
2939         (DOMHTMLDocument::body):
2940         (DOMHTMLDocument::forms):
2941
2942 2014-09-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2943
2944         Use std::unique_ptr for ContextMenuController
2945         https://bugs.webkit.org/show_bug.cgi?id=137178
2946
2947         Reviewed by Darin Adler.
2948
2949         Switch to using std::unique_ptr instead of OwnPtr and PassOwnPtr
2950         for ContextMenuController class. Inherited class is changed by this use as well.
2951
2952         * WebCoreSupport/WebContextMenuClient.cpp:
2953         (WebContextMenuClient::customizeMenu):
2954         * WebCoreSupport/WebContextMenuClient.h:
2955
2956 2014-09-26  Christophe Dumez  <cdumez@apple.com>
2957
2958         Stop using legacy NODE_TYPE_CASTS() macro for HTML Elements
2959         https://bugs.webkit.org/show_bug.cgi?id=137137
2960
2961         Reviewed by Benjamin Poulain.
2962
2963         Use is<>() / downcast<>() where appropriate.
2964
2965         * DOMHTMLClasses.cpp:
2966         (DOMHTMLElement::idName):
2967         (DOMHTMLElement::innerText):
2968         (DOMHTMLElement::setInnerText):
2969
2970 2014-09-25  Brent Fulgham  <bfulgham@apple.com>
2971
2972         [Win] Debug builds of TestWebKitAPI are crashing.
2973         https://bugs.webkit.org/show_bug.cgi?id=133553
2974
2975         Reviewed by Dean Jackson.
2976
2977         Switch from global static HashTable to a NeverDestroyed object.
2978         Modify all accessors of the global static to use the new
2979         NeverDestroyed accessor method.
2980
2981         * AccessibleBase.cpp:
2982         (AccessibleBase::AccessibleBase):
2983         (AccessibleBase::~AccessibleBase):
2984         * CFDictionaryPropertyBag.cpp:
2985         (CFDictionaryPropertyBag::CFDictionaryPropertyBag):
2986         (CFDictionaryPropertyBag::~CFDictionaryPropertyBag):
2987         * DefaultDownloadDelegate.cpp:
2988         (DefaultDownloadDelegate::DefaultDownloadDelegate):
2989         (DefaultDownloadDelegate::~DefaultDownloadDelegate):
2990         * DefaultPolicyDelegate.cpp:
2991         (DefaultPolicyDelegate::DefaultPolicyDelegate):
2992         (DefaultPolicyDelegate::~DefaultPolicyDelegate):
2993         * MemoryStream.cpp:
2994         (MemoryStream::MemoryStream):
2995         (MemoryStream::~MemoryStream):
2996         * WebActionPropertyBag.cpp:
2997         (WebActionPropertyBag::WebActionPropertyBag):
2998         (WebActionPropertyBag::~WebActionPropertyBag):
2999         * WebArchive.cpp:
3000         (WebArchive::WebArchive):
3001         (WebArchive::~WebArchive):
3002         * WebBackForwardList.cpp:
3003         (WebBackForwardList::WebBackForwardList):
3004         (WebBackForwardList::~WebBackForwardList):
3005         * WebCache.cpp:
3006         (WebCache::WebCache):
3007         (WebCache::~WebCache):
3008         * WebCookieManager.cpp:
3009         (WebCookieManager::WebCookieManager):
3010         (WebCookieManager::~WebCookieManager):
3011         * WebCoreStatistics.cpp:
3012         (WebCoreStatistics::WebCoreStatistics):
3013         (WebCoreStatistics::~WebCoreStatistics):
3014         * WebDataSource.cpp:
3015         (WebDataSource::~WebDataSource):
3016         * WebDatabaseManager.cpp:
3017         (WebDatabaseManager::WebDatabaseManager):
3018         (WebDatabaseManager::~WebDatabaseManager):
3019         * WebDocumentLoader.cpp:
3020         (WebDocumentLoader::WebDocumentLoader):
3021         (WebDocumentLoader::~WebDocumentLoader):
3022         * WebDownload.cpp:
3023         (WebDownload::WebDownload):
3024         (WebDownload::~WebDownload):
3025         * WebDropSource.cpp:
3026         (WebDropSource::WebDropSource):
3027         (WebDropSource::~WebDropSource):
3028         * WebElementPropertyBag.cpp:
3029         (WebElementPropertyBag::WebElementPropertyBag):
3030         (WebElementPropertyBag::~WebElementPropertyBag):
3031         * WebError.cpp:
3032         (WebError::WebError):
3033         (WebError::~WebError):
3034         * WebFrame.cpp:
3035         (WebFrame::WebFrame):
3036         (WebFrame::~WebFrame):
3037         * WebFramePolicyListener.cpp:
3038         (WebFramePolicyListener::WebFramePolicyListener):
3039         (WebFramePolicyListener::~WebFramePolicyListener):
3040         * WebGeolocationPolicyListener.cpp:
3041         (WebGeolocationPolicyListener::WebGeolocationPolicyListener):
3042         (WebGeolocationPolicyListener::~WebGeolocationPolicyListener):
3043         * WebGeolocationPosition.cpp:
3044         (WebGeolocationPosition::WebGeolocationPosition):
3045         (WebGeolocationPosition::~WebGeolocationPosition):
3046         * WebHTMLRepresentation.cpp:
3047         (WebHTMLRepresentation::WebHTMLRepresentation):
3048         (WebHTMLRepresentation::~WebHTMLRepresentation):
3049         * WebHistory.cpp:
3050         (WebHistory::WebHistory):
3051         (WebHistory::~WebHistory):
3052         * WebHistoryItem.cpp:
3053         (WebHistoryItem::WebHistoryItem):
3054         (WebHistoryItem::~WebHistoryItem):
3055         * WebIconDatabase.cpp:
3056         (WebIconDatabase::WebIconDatabase):
3057         (WebIconDatabase::~WebIconDatabase):
3058         * WebInspector.cpp:
3059         (WebInspector::WebInspector):
3060         (WebInspector::~WebInspector):
3061         * WebJavaScriptCollector.cpp:
3062         (WebJavaScriptCollector::WebJavaScriptCollector):
3063         (WebJavaScriptCollector::~WebJavaScriptCollector):
3064         * WebKitClassFactory.cpp:
3065         (WebKitClassFactory::WebKitClassFactory):
3066         (WebKitClassFactory::~WebKitClassFactory):
3067         * WebKitDLL.cpp: Also switch to NeverDestroyed HashTable for
3068         the global class name count.
3069         * WebKitDLL.h:
3070         * WebKitStatistics.cpp:
3071         (WebKitStatistics::WebKitStatistics):
3072         (WebKitStatistics::~WebKitStatistics):
3073         (WebKitStatistics::comClassNameCounts):
3074         * WebMutableURLRequest.cpp:
3075         (WebMutableURLRequest::WebMutableURLRequest):
3076         (WebMutableURLRequest::~WebMutableURLRequest):
3077         * WebNavigationData.cpp:
3078         (WebNavigationData::WebNavigationData):
3079         (WebNavigationData::~WebNavigationData):
3080         * WebNotification.cpp:
3081         (WebNotification::WebNotification):
3082         (WebNotification::~WebNotification):
3083         * WebNotificationCenter.cpp:
3084         (WebNotificationCenter::WebNotificationCenter):
3085         (WebNotificationCenter::~WebNotificationCenter):
3086         * WebPreferences.cpp:
3087         (webPreferencesInstances):
3088         (WebPreferences::WebPreferences):
3089         (WebPreferences::~WebPreferences):
3090         (WebPreferences::getInstanceForIdentifier):
3091         (WebPreferences::setInstance):
3092         (WebPreferences::removeReferenceForIdentifier):
3093         * WebResource.cpp:
3094         (WebResource::WebResource):
3095         (WebResource::~WebResource):
3096         * WebScriptObject.cpp:
3097         (WebScriptObject::WebScriptObject):
3098         (WebScriptObject::~WebScriptObject):
3099         * WebScriptWorld.cpp:
3100         (WebScriptWorld::WebScriptWorld):
3101         (WebScriptWorld::~WebScriptWorld):
3102         * WebSecurityOrigin.cpp:
3103         (WebSecurityOrigin::WebSecurityOrigin):
3104         (WebSecurityOrigin::~WebSecurityOrigin):
3105         * WebSerializedJSValue.cpp:
3106         (WebSerializedJSValue::WebSerializedJSValue):
3107         (WebSerializedJSValue::~WebSerializedJSValue):
3108         * WebTextRenderer.cpp:
3109         (WebTextRenderer::WebTextRenderer):
3110         (WebTextRenderer::~WebTextRenderer):
3111         * WebURLAuthenticationChallenge.cpp:
3112         (WebURLAuthenticationChallenge::WebURLAuthenticationChallenge):
3113         (WebURLAuthenticationChallenge::~WebURLAuthenticationChallenge):
3114         * WebURLAuthenticationChallengeSender.cpp:
3115         (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
3116         (WebURLAuthenticationChallengeSender::~WebURLAuthenticationChallengeSender):
3117         * WebURLCredential.cpp:
3118         (WebURLCredential::WebURLCredential):
3119         (WebURLCredential::~WebURLCredential):
3120         * WebURLProtectionSpace.cpp:
3121         (WebURLProtectionSpace::WebURLProtectionSpace):
3122         (WebURLProtectionSpace::~WebURLProtectionSpace):
3123         * WebURLResponse.cpp:
3124         (:m_refCount):
3125         (WebURLResponse::~WebURLResponse):
3126         * WebUserContentURLPattern.cpp:
3127         (WebUserContentURLPattern::WebUserContentURLPattern):
3128         (WebUserContentURLPattern::~WebUserContentURLPattern):
3129         * WebView.cpp:
3130         (pendingDeleteBackingStoreSet): Switch from a global static
3131         value to a NeverDestroyed object wrapped by an accessor function.
3132         (WebView::WebView): Ditto.
3133         (WebView::~WebView): Ditto.
3134         (WebView::deleteBackingStore): Ditto.
3135         (WebView::deleteBackingStoreSoon): Ditto,
3136         (WebView::cancelDeleteBackingStoreSoon): Ditto.
3137         * WebWorkersPrivate.cpp: Switch from a global static value for
3138         the preferences objects t a NeverDestroyed container.
3139         (WebWorkersPrivate::WebWorkersPrivate): Ditto.
3140         (WebWorkersPrivate::~WebWorkersPrivate): Ditto.
3141
3142 2014-09-25  Christophe Dumez  <cdumez@apple.com>
3143
3144         Use is<HTML*Element>() instead of isHTML*Element() - Part 2
3145         https://bugs.webkit.org/show_bug.cgi?id=137103
3146
3147         Reviewed by Benjamin Poulain.
3148
3149         Use is<HTML*Element>() instead of isHTML*Element().
3150
3151         * DOMCoreClasses.cpp:
3152         (DOMElement::createInstance):
3153         * DOMHTMLClasses.cpp:
3154         (DOMHTMLFormElement::action):
3155         (DOMHTMLFormElement::method):
3156         * WebFrame.cpp:
3157         (formElementFromDOMElement):
3158
3159 2014-09-24  Christophe Dumez  <cdumez@apple.com>
3160
3161         Add initial is<>() / downcast<>() support for any type of Nodes
3162         https://bugs.webkit.org/show_bug.cgi?id=137056
3163
3164         Reviewed by Benjamin Poulain.
3165
3166         Use is<HTMLFormControlElement>() / downcast<HTMLFormControlElement>()
3167         instead of isFormControlElement() / toHTMLFormControlElement().
3168
3169         * WebFrame.cpp:
3170         (WebFrame::elementWithName):
3171
3172 2014-09-24  Christophe Dumez  <cdumez@apple.com>
3173
3174         Unreviewed build fix after r173932.
3175
3176         Unreviewed build fix after r173932 for Windows. Use WebCore:: namespace
3177         explicitely in DOMCoreClasses.cpp.
3178
3179         * DOMCoreClasses.cpp:
3180         (DOMElement::createInstance):
3181
3182 2014-09-24  Christophe Dumez  <cdumez@apple.com>
3183
3184         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
3185         https://bugs.webkit.org/show_bug.cgi?id=137068
3186
3187         Reviewed by Ryosuke Niwa.
3188
3189         Start using is<HTML*Element>() instead of isHTML*Element().
3190         Remaining usages will be updated in a follow-up patch to
3191         reduce the size of the change.
3192
3193         * DOMCoreClasses.cpp:
3194         (DOMElement::createInstance):
3195         * DOMHTMLClasses.cpp:
3196         (DOMHTMLOptionElement::text):
3197         (DOMHTMLOptionElement::label):
3198         (DOMHTMLInputElement::form):
3199         (DOMHTMLInputElement::disabled):
3200         (DOMHTMLInputElement::readOnly):
3201         (DOMHTMLInputElement::setType):
3202         (DOMHTMLInputElement::value):
3203         (DOMHTMLInputElement::setValue):
3204         (DOMHTMLInputElement::setValueForUser):
3205         (DOMHTMLInputElement::select):
3206         (DOMHTMLInputElement::setSelectionStart):
3207         (DOMHTMLInputElement::selectionStart):
3208         (DOMHTMLInputElement::setSelectionEnd):
3209         (DOMHTMLInputElement::selectionEnd):
3210         (DOMHTMLInputElement::isTextField):
3211         (DOMHTMLInputElement::rectOnScreen):
3212         (DOMHTMLInputElement::replaceCharactersInRange):
3213         (DOMHTMLInputElement::selectedRange):
3214         (DOMHTMLInputElement::setAutofilled):
3215         (DOMHTMLInputElement::isAutofilled):
3216         (DOMHTMLInputElement::isUserEdited):
3217         (DOMHTMLTextAreaElement::form):
3218         (DOMHTMLTextAreaElement::value):
3219         (DOMHTMLTextAreaElement::setValue):
3220         (DOMHTMLTextAreaElement::select):
3221         (DOMHTMLTextAreaElement::isUserEdited):
3222         * WebFrame.cpp:
3223         (inputElementFromDOMElement):
3224
3225 2014-09-21  Timothy Hatcher  <timothy@apple.com>
3226
3227         Make the Web Inspector use a separate web process.
3228
3229         https://bugs.webkit.org/show_bug.cgi?id=135120
3230
3231         Reviewed by Anders Carlsson.
3232
3233         * WebCoreSupport/WebInspectorClient.cpp:
3234         (WebInspectorClient::openInspectorFrontend):
3235         * WebCoreSupport/WebInspectorClient.h:
3236         (WebInspectorClient::frontendClient):
3237         Own WebInspectorFrontendClient instead of moving it.
3238
3239 2014-09-23  Christophe Dumez  <cdumez@apple.com>
3240
3241         Unreviewed build fix after r173893.
3242
3243         Partial revert of r173893 to fix debug builds.
3244
3245         * DOMHTMLClasses.cpp:
3246         (DOMHTMLDocument::URL):
3247         (DOMHTMLDocument::body):
3248         (DOMHTMLDocument::forms):
3249
3250 2014-09-23  Chris Dumez  <cdumez@apple.com>
3251
3252         Use downcast<HTML*Element>() instead of toHTML*Element()
3253         https://bugs.webkit.org/show_bug.cgi?id=137007
3254
3255         Reviewed by Benjamin Poulain.
3256
3257         Use downcast<HTML*Element>() instead of toHTML*Element().
3258
3259         * DOMHTMLClasses.cpp:
3260         (DOMHTMLDocument::URL):
3261         (DOMHTMLDocument::body):
3262         (DOMHTMLDocument::forms):
3263         (DOMHTMLFormElement::action):
3264         (DOMHTMLFormElement::method):
3265         (DOMHTMLSelectElement::options):
3266         (DOMHTMLSelectElement::activateItemAtIndex):
3267         (DOMHTMLOptionElement::text):
3268         (DOMHTMLOptionElement::label):
3269         (DOMHTMLInputElement::form):
3270         (DOMHTMLInputElement::disabled):
3271         (DOMHTMLInputElement::readOnly):
3272         (DOMHTMLInputElement::setType):
3273         (DOMHTMLInputElement::value):
3274         (DOMHTMLInputElement::setValue):
3275         (DOMHTMLInputElement::setValueForUser):
3276         (DOMHTMLInputElement::select):
3277         (DOMHTMLInputElement::setSelectionStart):
3278         (DOMHTMLInputElement::selectionStart):
3279         (DOMHTMLInputElement::setSelectionEnd):
3280         (DOMHTMLInputElement::selectionEnd):
3281         (DOMHTMLInputElement::isTextField):
3282         (DOMHTMLInputElement::replaceCharactersInRange):
3283         (DOMHTMLInputElement::selectedRange):
3284         (DOMHTMLInputElement::setAutofilled):
3285         (DOMHTMLInputElement::isAutofilled):
3286         (DOMHTMLInputElement::isUserEdited):
3287         (DOMHTMLTextAreaElement::form):
3288         (DOMHTMLTextAreaElement::value):
3289         (DOMHTMLTextAreaElement::setValue):
3290         (DOMHTMLTextAreaElement::select):
3291         (DOMHTMLTextAreaElement::isUserEdited):
3292         (DOMHTMLIFrameElement::contentFrame):
3293         * WebFrame.cpp:
3294         (formElementFromDOMElement):
3295         (inputElementFromDOMElement):
3296
3297 2014-09-21  Chris Dumez  <cdumez@apple.com>
3298
3299         Generate Element casting helper functions
3300         https://bugs.webkit.org/show_bug.cgi?id=136839
3301
3302         Reviewed by Darin Adler.
3303
3304         Use JSXXX::toWrapped() instead of toXXX() function.
3305
3306         * WebView.cpp:
3307         (WebView::elementFromJS):
3308
3309 2014-09-06  Brian J. Burg  <burg@cs.washington.edu>
3310
3311         Web Inspector: convert DockSide to an enum class
3312         https://bugs.webkit.org/show_bug.cgi?id=136601
3313
3314         Reviewed by Timothy Hatcher.
3315
3316         * WebCoreSupport/WebInspectorClient.cpp:
3317         (WebInspectorFrontendClient::frontendLoaded):
3318
3319 2014-09-04  Antti Koivisto  <antti@apple.com>
3320
3321         Try to fix windows build.
3322
3323         * WebURLResponse.cpp:
3324         (WebURLResponse::createInstance):
3325         (WebURLResponse::initWithURL):
3326
3327 2014-09-02  Brian J. Burg  <burg@cs.washington.edu>
3328
3329         Web Inspector: fix prefixes for subclasses of JSC::ConsoleClient
3330         https://bugs.webkit.org/show_bug.cgi?id=136476
3331
3332         Reviewed by Timothy Hatcher.
3333
3334         * WebCoreStatistics.cpp:
3335         (WebCoreStatistics::shouldPrintExceptions):
3336         (WebCoreStatistics::setShouldPrintExceptions):
3337
3338 2014-09-02  Maciej Stachowiak  <mjs@apple.com>
3339
3340         Clean up naming for and slightly refactor legacy video fullscreen support
3341         https://bugs.webkit.org/show_bug.cgi?id=136446
3342
3343         Reviewed by Jer Noble.
3344
3345         Key changes:
3346         supportsFullscreenForNode(Node*) --> supportsVideoFullscreen()
3347         enterFullscreenForNode(Node*) --> enterVideoFullscreenForVideoElement(HTMLVideoElement*)
3348         exitFullscreenForNode(Node*) --> exitVideoFullscreen()
3349         
3350         The old versions had unnecessary parameters, did not clearly distinguish their purpose
3351         from enterFullscreenForElement and friends, and wrongly claimed generality to all Nodes.
3352         Also changed many other places to use HTMLVideoElement* instead of Node* or 
3353         HTMLMediaElement* when they were in fact only used for video elements and would only
3354         work for such.
3355
3356         * WebCoreSupport/WebChromeClient.cpp:
3357         (WebChromeClient::supportsVideoFullscreen): Adjust for the
3358         main refactoring.
3359         (WebChromeClient::enterVideoFullscreenForVideoElement): ditto
3360         (WebChromeClient::exitVideoFullscreen): ditto
3361         * WebCoreSupport/WebChromeClient.h:
3362         * WebView.cpp:
3363         (WebView::enterVideoFullscreenForVideoElement): Adjust for the 
3364         main refactoring.
3365         (WebView::exitVideoFullscreen): ditto.
3366         * WebView.h:
3367         * FullscreenVideoController.cpp: Use video elements, not media elements throughout
3368         (FullscreenVideoController::LayerClient::platformCALayerLayoutSublayersOfLayer):
3369         (FullscreenVideoController::setVideoElement):
3370         (FullscreenVideoController::enterFullscreen):
3371         (FullscreenVideoController::exitFullscreen):
3372         (FullscreenVideoController::canPlay):
3373         (FullscreenVideoController::play):
3374         (FullscreenVideoController::pause):
3375         (FullscreenVideoController::volume):
3376         (FullscreenVideoController::setVolume):
3377         (FullscreenVideoController::currentTime):
3378         (FullscreenVideoController::setCurrentTime):
3379         (FullscreenVideoController::duration):
3380         (FullscreenVideoController::beginScrubbing):
3381         (FullscreenVideoController::endScrubbing):
3382         (FullscreenVideoController::onChar):
3383         (FullscreenVideoController::onKeyDown):
3384         (FullscreenVideoController::onMouseUp):
3385         * FullscreenVideoController.h:
3386         (FullscreenVideoController::videoElement):
3387
3388 2014-09-03  Brent Fulgham  <bfulgham@apple.com>
3389
3390         Unreviewed build fix after r173200.
3391
3392         * WebView.cpp:
3393         (WebView::setCacheModel): Use appropriate types for cache sizes to be
3394         64-bit clean on CFNetwork compile.
3395
3396 2014-09-02  peavo@outlook.com  <peavo@outlook.com>
3397
3398         [WinCairo] Memory cache capacity is not set.
3399         https://bugs.webkit.org/show_bug.cgi?id=136432
3400
3401         Reviewed by Alex Christensen.
3402
3403         Reuse code from AppleWin to set memory and disk cache capacity.
3404
3405         * WebKitSystemBits.cpp:
3406         (WebVolumeFreeSize):
3407         * WebKitSystemBits.h:
3408         * WebView.cpp:
3409         (WebView::setCacheModel):
3410
3411 2014-08-26  Brent Fulgham  <bfulgham@apple.com>
3412
3413         [Win] WebKit IDL incorrectly passes HWND as OLE_HANDLE
3414         https://bugs.webkit.org/show_bug.cgi?id=136258
3415         <rdar://problem/18134138>
3416
3417         Reviewed by Tim Horton.
3418
3419         Avoid 32/64-bit truncation by preventing 64-bit HWND (and other)
3420         values from passing through the 32-bit OLE_HANDLE data type.
3421
3422         * Interfaces/IWebDocument.idl:
3423         * Interfaces/IWebEmbeddedView.idl:
3424         * Interfaces/IWebErrorPrivate.idl:
3425         * Interfaces/IWebFrameLoadDelegate.idl:
3426         * Interfaces/IWebFramePrivate.idl:
3427         * Interfaces/IWebHistoryItem.idl:
3428         * Interfaces/IWebIconDatabase.idl:
3429         * Interfaces/IWebMutableURLRequestPrivate.idl:
3430         * Interfaces/IWebUIDelegate.idl:
3431         * Interfaces/IWebUIDelegatePrivate.idl:
3432         * Interfaces/IWebURLResponsePrivate.idl:
3433         * Interfaces/IWebView.idl:
3434         * Interfaces/IWebViewPrivate.idl:
3435         * WebCoreSupport/EmbeddedWidget.cpp:
3436         (EmbeddedWidget::createWindow):
3437         * WebCoreSupport/WebChromeClient.cpp:
3438         (WebChromeClient::rootViewToScreen):
3439         (WebChromeClient::screenToRootView):
3440         (WebChromeClient::platformPageClient):
3441         (WebChromeClient::runOpenPanel):
3442         (WebChromeClient::setCursor):
3443         * WebCoreSupport/WebContextMenuClient.cpp:
3444         (WebContextMenuClient::customizeMenu):
3445         * WebCoreSupport/WebFrameLoaderClient.cpp:
3446         (WebFrameLoaderClient::createPlugin):
3447         * WebCoreSupport/WebInspectorClient.cpp:
3448         (WebInspectorClient::openInspectorFrontend):
3449         (WebInspectorClient::highlight):
3450         (WebInspectorFrontendClient::setAttachedWindowHeight):
3451         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
3452         (WebInspectorFrontendClient::showWindowWithoutNotifications):
3453         * WebCoreSupport/WebInspectorClient.h:
3454         * WebCoreSupport/WebInspectorDelegate.cpp:
3455         * WebCoreSupport/WebInspectorDelegate.h:
3456         (WebInspectorDelegate::webViewFirstResponder):
3457         (WebInspectorDelegate::makeFirstResponder):
3458         (WebInspectorDelegate::contextMenuItemsForElement):
3459         (WebInspectorDelegate::trackCustomPopupMenu):
3460         (WebInspectorDelegate::addCustomMenuDrawingData):
3461         (WebInspectorDelegate::cleanUpCustomMenuDrawingData):
3462         (WebInspectorDelegate::drawHeaderInRect):
3463         (WebInspectorDelegate::drawFooterInRect):
3464         * WebDropSource.cpp:
3465         (generateMouseEvent):
3466         (WebDropSource::GiveFeedback):
3467         * WebError.cpp:
3468         (WebError::sslPeerCertificate):
3469         * WebError.h:
3470         * WebFrame.cpp:
3471         (WebFrame::paintDocumentRectToContext):
3472         (WebFrame::paintScrollViewRectToContextAtPoint):
3473         (WebFrame::createSubframeWithOwnerElement):
3474         (WebFrame::initWithWebView):
3475         (WebFrame::drawHeader):
3476         (WebFrame::drawFooter):
3477         * WebFrame.h:
3478         * WebHistoryItem.cpp:
3479         (WebHistoryItem::icon):
3480         * WebHistoryItem.h:
3481         * WebIconDatabase.cpp:
3482         (WebIconDatabase::iconForURL):
3483         (WebIconDatabase::defaultIconWithSize):
3484         * WebIconDatabase.h:
3485         * WebMutableURLRequest.cpp:
3486         (WebMutableURLRequest::setClientCertificate):
3487         * WebMutableURLRequest.h:
3488         * WebNodeHighlight.cpp:
3489         (WebNodeHighlight::WebNodeHighlight):
3490         * WebURLResponse.cpp:
3491         (WebURLResponse::sslPeerCertificate):
3492         * WebURLResponse.h:
3493         * WebView.cpp:
3494         (WebView::paintIntoBackingStore):
3495         (WebView::handleContextMenuEvent):
3496         (WebView::onInitMenuPopup):
3497         (WebView::onUninitMenuPopup):
3498         (WebView::WebViewWndProc):
3499         (WebView::dispatchDidReceiveIconFromWebFrame):
3500         (WebView::setHostWindow):
3501         (WebView::hostWindow):
3502         (WebView::generateSelectionImage):
3503         (WebView::mainFrameIcon):
3504         (WebView::viewWindow):
3505         (WebView::paintDocumentRectToContext):
3506         (WebView::paintScrollViewRectToContextAtPoint):
3507         (WebView::backingStore):
3508         (WebView::fullScreenClientSetParentWindow):
3509         * WebView.h:
3510
3511 2014-08-21  Alex Christensen  <achristensen@webkit.org>
3512
3513         [Win] Unreviewed build fix after r172849.
3514
3515         * WebKitPrefix.h:
3516         Defined WEBCORE_EXPORT.
3517
3518 2014-08-19  Pratik Solanki  <psolanki@apple.com>
3519
3520         Remove PurgeableBuffer since it is not very useful any more
3521         https://bugs.webkit.org/show_bug.cgi?id=135939
3522
3523         Reviewed by Andreas Kling.
3524
3525         * WebCache.cpp:
3526         (WebCache::statistics):
3527
3528 2014-08-18  Commit Queue  <commit-queue@webkit.org>
3529
3530         Unreviewed, rolling out r172736.
3531         https://bugs.webkit.org/show_bug.cgi?id=136060
3532
3533         Caused 14% PLT regressions (Requested by rniwa on #webkit).
3534
3535         Reverted changeset:
3536
3537         "Remove PurgeableBuffer since it is not very useful any more"
3538         https://bugs.webkit.org/show_bug.cgi?id=135939
3539         http://trac.webkit.org/changeset/172736
3540
3541 2014-08-18  Pratik Solanki  <psolanki@apple.com>
3542
3543         Remove PurgeableBuffer since it is not very useful any more
3544         https://bugs.webkit.org/show_bug.cgi?id=135939
3545
3546         Reviewed by Geoffrey Garen.
3547
3548         * WebCache.cpp:
3549         (WebCache::statistics):
3550
3551 2014-07-27  Pratik Solanki  <psolanki@apple.com>
3552
3553         Remove unused preference keys
3554         https://bugs.webkit.org/show_bug.cgi?id=135280
3555
3556         Reviewed by Darin Adler.
3557
3558         * WebPreferenceKeysPrivate.h:
3559
3560 2014-07-22  Brent Fulgham  <bfulgham@apple.com>
3561
3562         [Win] Build fix after r171370.
3563
3564         * WebCoreSupport/WebEditorClient.h: Add override
3565         for new 'overflowScrollPositionChanged'.
3566
3567 2014-07-03  Daniel Bates  <dabates@apple.com>
3568
3569         Add WTF::move()
3570         https://bugs.webkit.org/show_bug.cgi?id=134500
3571
3572         Rubber-stamped by Anders Carlsson.
3573
3574         Substitute WTF::move() for std::move().
3575
3576         * WebCoreSupport/WebInspectorClient.cpp:
3577         (WebInspectorClient::openInspectorFrontend):
3578         (WebInspectorFrontendClient::WebInspectorFrontendClient):
3579         * WebHistory.cpp:
3580         (createUserInfoFromArray):
3581         * WebHistoryItem.cpp:
3582         (WebHistoryItem::initFromDictionaryRepresentation):
3583         * WebView.cpp:
3584         (WebView::addToDirtyRegion):
3585         (WebView::scrollBackingStore):
3586
3587 2014-06-26  Brady Eidson  <beidson@apple.com>
3588
3589         Remove use of PlatformStrategies for Gamepad API.
3590         https://bugs.webkit.org/show_bug.cgi?id=134348
3591
3592         Reviewed by Dean Jackson.
3593
3594         * WebCoreSupport/WebPlatformStrategies.cpp:
3595         (WebPlatformStrategies::createGamepadStrategy): Deleted.
3596         * WebCoreSupport/WebPlatformStrategies.h:
3597
3598 2014-06-25  Brent Fulgham  <bfulgham@apple.com>
3599
3600         [Win] Expose Cache Information to WinLauncher
3601         https://bugs.webkit.org/show_bug.cgi?id=134318
3602
3603         Reviewed by Dean Jackson.
3604
3605         * Interfaces/IWebCoreStatistics.idl: Add missing
3606         API added to WebKit since this was last updated.
3607         * WebCache.cpp:
3608         (WebCache::statistics): Add missing elements for
3609         purgable and purged data.
3610         * WebCoreStatistics.cpp: Provide implementaions.
3611         * WebCoreStatistics.h: Ditto.
3612
3613 2014-06-25  Brady Eidson  <beidson@apple.com>
3614
3615         Add new platform gamepad abstractions
3616         https://bugs.webkit.org/show_bug.cgi?id=134325
3617
3618         Reviewed by Dean Jackson.
3619
3620         * WebCoreSupport/WebPlatformStrategies.cpp:
3621         (WebPlatformStrategies::createGamepadStrategy):
3622         * WebCoreSupport/WebPlatformStrategies.h:
3623
3624 2014-06-19  Anders Carlsson  <andersca@apple.com>
3625
3626         Try to fix Windows build.
3627
3628         * WebFrame.h:
3629
3630 2014-06-18  Anders Carlsson  <andersca@apple.com>
3631
3632         Make FrameLoadType a strongly typed enum
3633         https://bugs.webkit.org/show_bug.cgi?id=134047
3634
3635         Reviewed by Andreas Kling.
3636
3637         * WebView.cpp:
3638         (WebView::goToBackForwardItem):
3639         (WebView::loadBackForwardListFromOtherView):
3640
3641 2014-06-18  Anders Carlsson  <andersca@apple.com>
3642
3643         Remove IWebFramePrivate::loadType
3644         https://bugs.webkit.org/show_bug.cgi?id=134044
3645
3646         Reviewed by Tim Horton.
3647
3648         * Interfaces/IWebFramePrivate.idl:
3649         * WebFrame.cpp:
3650         (WebFrame::loadType): Deleted.
3651         (WebFrame::unused2): Deleted.
3652         * WebFrame.h:
3653
3654 2014-06-12  Brent Fulgham  <bfulgham@apple.com>
3655
3656         [Win] Avoid crashes in code that converted CFDictionaries to HashMap
3657         https://bugs.webkit.org/show_bug.cgi?id=133813
3658         <rdar://problem/17291647>
3659
3660         Reviewed by Tim Horton.
3661
3662         * WebHistory.cpp: Add empty string checks to avoid crashes in
3663         hash function.
3664         (WebHistory::removeItem):
3665         (WebHistory::add