Use is<>() / downcast<>() for Accessibility objects
[WebKit-https.git] / Source / WebKit / win / ChangeLog
1 2014-10-20  Chris Dumez  <cdumez@apple.com>
2
3         Use is<>() / downcast<>() for Accessibility objects
4         https://bugs.webkit.org/show_bug.cgi?id=137286
5
6         Reviewed by Darin Adler.
7
8         Use is<>() / downcast<>() for Accessibility objects.
9
10         * AccessibleBase.cpp:
11         (AccessibleBase::accSelect):
12         * AccessibleImage.cpp:
13         (AccessibleImage::name):
14
15 2014-10-18  peavo@outlook.com  <peavo@outlook.com>
16
17         [WinCairo] Repaint issues with accelerated compositing.
18         https://bugs.webkit.org/show_bug.cgi?id=137850
19
20         Reviewed by Brent Fulgham.
21
22         There is sometimes missing content in accelerated compositing mode.
23         This is caused by not invalidating the non composited layer,
24         and not rendering when a flush did not complete.
25
26         * WebCoreSupport/AcceleratedCompositingContext.cpp:
27         (AcceleratedCompositingContext::flushAndRenderLayers): Also render when flush did not complete.
28         (AcceleratedCompositingContext::setNeedsDisplayInRect): Deleted.
29         * WebCoreSupport/AcceleratedCompositingContext.h: Ditto.
30         * WebView.cpp:
31         (WebView::addToDirtyRegion): Invalidate non composited layer.
32         (WebView::flushPendingGraphicsLayerChanges): Flush layers.
33
34 2014-10-17  Chris Dumez  <cdumez@apple.com>
35
36         Use is<>() / downcast<>() for RenderBox
37         https://bugs.webkit.org/show_bug.cgi?id=137804
38
39         Reviewed by Andreas Kling.
40
41         Use is<>() / downcast<>() for RenderBox and clean up the surrounding
42         code.
43
44         * WebView.cpp:
45         (WebView::gestureNotify):
46
47 2014-10-17  peavo@outlook.com  <peavo@outlook.com>
48
49         [WinCairo] Accelerated compositing is not implemented.
50         https://bugs.webkit.org/show_bug.cgi?id=137345
51
52         Reviewed by Brent Fulgham.
53
54         This patch is based on GTK, and the texture mapper graphics layer type.
55
56         * WebCoreSupport/AcceleratedCompositingContext.cpp: Added.
57         (WebKit::AcceleratedCompositingContext::AcceleratedCompositingContext):
58         (WebKit::getWebViewSize):
59         (WebKit::AcceleratedCompositingContext::initialize):
60         (WebKit::AcceleratedCompositingContext::~AcceleratedCompositingContext):
61         (WebKit::AcceleratedCompositingContext::stopAnyPendingLayerFlush):
62         (WebKit::AcceleratedCompositingContext::enabled):
63         (WebKit::AcceleratedCompositingContext::prepareForRendering):
64         (WebKit::AcceleratedCompositingContext::startedAnimation):
65         (WebKit::AcceleratedCompositingContext::compositeLayersToContext):
66         (WebKit::AcceleratedCompositingContext::setRootCompositingLayer):
67         (WebKit::AcceleratedCompositingContext::setNonCompositedContentsNeedDisplay):
68         (WebKit::AcceleratedCompositingContext::setNeedsDisplayInRect):
69         (WebKit::AcceleratedCompositingContext::resizeRootLayer):
70         (WebKit::AcceleratedCompositingContext::scrollNonCompositedContents):
71         (WebKit::AcceleratedCompositingContext::scheduleLayerFlush):
72         (WebKit::AcceleratedCompositingContext::flushPendingLayerChanges):
73         (WebKit::AcceleratedCompositingContext::flushPendingLayerChangesSoon):
74         (WebKit::AcceleratedCompositingContext::flushAndRenderLayers):
75         (WebKit::AcceleratedCompositingContext::layerFlushTimerFired):
76         (WebKit::AcceleratedCompositingContext::notifyAnimationStarted):
77         (WebKit::AcceleratedCompositingContext::notifyFlushRequired):
78         (WebKit::AcceleratedCompositingContext::paintContents):
79         * WebCoreSupport/AcceleratedCompositingContext.h: Added.
80         (WebKit::AcceleratedCompositingContext::LayerFlushTimer::LayerFlushTimer):
81         (WebKit::AcceleratedCompositingContext::LayerFlushTimer::fired):
82         * WebView.cpp:
83         (WebView::WebView):
84         (WebView::addToDirtyRegion):
85         (WebView::scrollBackingStore):
86         (WebView::sizeChanged):
87         (WebView::paint):
88         (WebView::setRootChildLayer):
89         (WebView::flushPendingGraphicsLayerChangesSoon):
90         (WebView::setAcceleratedCompositing):
91         * WebView.h:
92
93 2014-10-16  Commit Queue  <commit-queue@webkit.org>
94
95         Unreviewed, rolling out r174754.
96         https://bugs.webkit.org/show_bug.cgi?id=137789
97
98         Speculative fix for Windows test was ineffective. (Requested
99         by rfong on #webkit).
100
101         Reverted changeset:
102
103         "[Windows] Add some more logging to debug Windows test
104         issues."
105         http://trac.webkit.org/changeset/174754
106
107 2014-10-15  Roger Fong  <roger_fong@apple.com>
108
109         [Windows] Add some more logging to debug Windows test issues.
110
111         * WebActionPropertyBag.cpp:
112         (WebActionPropertyBag::Read):
113
114 2014-10-14  Roger Fong  <roger_fong@apple.com>
115
116         [Windows] Add some logging to debug random crashing when running layout tests on Windows.
117
118         * WebActionPropertyBag.cpp:
119         (WebActionPropertyBag::Read):
120
121 2014-10-13  Brent Fulgham  <bfulgham@apple.com>
122
123         [Win] Implement a page load profiling tool
124         https://bugs.webkit.org/show_bug.cgi?id=137673
125
126         Reviewed by Dean Jackson.
127
128         Add a new predicate (isMainFrame) to the IWebFrame interface so
129         that we can make decisions about a frames position in the page
130         load hierarchy in client programs.
131
132         * Interfaces/IWebFrame.idl: Added new isMainFrame
133         predicate to interface definition.
134         * WebFrame.cpp:
135         (WebFrame::isMainFrame): Added.
136         * WebFrame.h:
137
138 2014-10-13  Chris Dumez  <cdumez@apple.com>
139
140         Use is<>() / downcast<>() for PlatformCALayer subclasses
141         https://bugs.webkit.org/show_bug.cgi?id=137661
142
143         Reviewed by Simon Fraser.
144
145         Use is<>() / downcast<>() for PlatformCALayer subclasses and clean up 
146         the surrounding code.
147
148         * FullscreenVideoController.cpp:
149         (FullscreenVideoController::enterFullscreen):
150
151 2014-10-10  Chris Dumez  <cdumez@apple.com>
152
153         Use is<>() / downcast<>() for RenderElement
154         https://bugs.webkit.org/show_bug.cgi?id=137622
155
156         Reviewed by Benjamin Poulain.
157
158         Use is<>() / downcast<>() for RenderElement and clean up the
159         surrounding code.
160
161         * WebFrame.cpp:
162         (WebFrame::pauseAnimation):
163         (WebFrame::pauseTransition):
164
165 2014-10-09  Chris Dumez  <cdumez@apple.com>
166
167         Use is<>() / downcast<>() for Widget subclasses
168         https://bugs.webkit.org/show_bug.cgi?id=137549
169
170         Reviewed by Darin Adler.
171
172         Use is<>() / downcast<>() for Widget subclasses and clean up the
173         surrounding code.
174
175         * WebCoreSupport/EmbeddedWidget.cpp:
176         (EmbeddedWidget::frameRectsChanged):
177
178 2014-10-08  Brent Fulgham  <bfulgham@apple.com>
179
180         [Win] Resolve various static analyzer warnings in WebKit.
181         https://bugs.webkit.org/show_bug.cgi?id=137531
182
183         Reviewed by Dean Jackson.
184
185         * MarshallingHelpers.cpp:
186         (MarshallingHelpers::safeArrayToIntArray): Handle possible failure of
187         SafeArrayGetElement call.
188         (MarshallingHelpers::safeArrayToIUnknownArray): Ditto.
189         * MemoryStream.cpp:
190         (MemoryStream::CopyTo): Zero-initialize 'written' to silence warning. 
191         * WebCoreSupport/WebChromeClient.cpp:
192         (WebChromeClient::exceededDatabaseQuota): Handle possible failure of
193         GetModuleFileName.
194         * WebHistory.cpp:
195         (getDayBoundaries): Handle possible failure of TzSpecificLocalTimeToSystemTime
196         * WebView.cpp:
197         (WebView::shouldInitializeTrackPointHack): Zero initialize return value.
198         (WebView::dispatchDidReceiveIconFromWebFrame): Avoid possible DeleteObject
199         call on a null bitmap handle.
200         (WebView::standardUserAgentWithApplicationName): Get rid of spurious
201         pointer dereference.
202
203 2014-10-02  Tim Horton  <timothy_horton@apple.com>
204
205         Move PageOverlay[Controller] to WebCore
206         https://bugs.webkit.org/show_bug.cgi?id=137164
207         <rdar://problem/18508258>
208
209         Reviewed by Anders Carlsson.
210
211         * WebCoreSupport/WebChromeClient.cpp:
212         (WebChromeClient::attachViewOverlayGraphicsLayer):
213         * WebCoreSupport/WebChromeClient.h:
214         Add an empty ChromeClient override.
215
216 2014-10-01  Christophe Dumez  <cdumez@apple.com>
217
218         Have is<>(T*) function do a null check on the pointer argument
219         https://bugs.webkit.org/show_bug.cgi?id=137333
220
221         Reviewed by Gavin Barraclough.
222
223         Have is<>(T*) function do a null check on the argument instead of a
224         simple assertion. This makes sense for 2 reasons:
225         1. It is more consistent with downcast<>(T*), which will succeed even
226            if the argument is a nullptr.
227         2. It simplifies the code a bit as it gets rid of a lot of explicit
228            null checks.
229
230         * DOMCoreClasses.cpp:
231         (DOMElement::createInstance):
232         * DOMHTMLClasses.cpp:
233         (DOMHTMLDocument::body):
234         (DOMHTMLDocument::forms):
235         (DOMHTMLElement::idName):
236         (DOMHTMLElement::innerText):
237         (DOMHTMLElement::setInnerText):
238         (DOMHTMLFormElement::action):
239         (DOMHTMLFormElement::method):
240         (DOMHTMLOptionElement::text):
241         (DOMHTMLOptionElement::label):
242         (DOMHTMLInputElement::form):
243         (DOMHTMLInputElement::disabled):
244         (DOMHTMLInputElement::readOnly):
245         (DOMHTMLInputElement::setType):
246         (DOMHTMLInputElement::value):
247         (DOMHTMLInputElement::setValue):
248         (DOMHTMLInputElement::setValueForUser):
249         (DOMHTMLInputElement::select):
250         (DOMHTMLInputElement::setSelectionStart):
251         (DOMHTMLInputElement::selectionStart):
252         (DOMHTMLInputElement::setSelectionEnd):
253         (DOMHTMLInputElement::selectionEnd):
254         (DOMHTMLInputElement::isTextField):
255         (DOMHTMLInputElement::rectOnScreen):
256         (DOMHTMLInputElement::replaceCharactersInRange):
257         (DOMHTMLInputElement::selectedRange):
258         (DOMHTMLInputElement::setAutofilled):
259         (DOMHTMLInputElement::isAutofilled):
260         (DOMHTMLInputElement::isUserEdited):
261         (DOMHTMLTextAreaElement::form):
262         (DOMHTMLTextAreaElement::value):
263         (DOMHTMLTextAreaElement::setValue):
264         (DOMHTMLTextAreaElement::select):
265         (DOMHTMLTextAreaElement::isUserEdited):
266         * WebFrame.cpp:
267         (formElementFromDOMElement):
268         (inputElementFromDOMElement):
269         (WebFrame::elementWithName):
270
271 2014-09-30  Christophe Dumez  <cdumez@apple.com>
272
273         Generalize is<>() / downcast<>() support to all types
274         https://bugs.webkit.org/show_bug.cgi?id=137243
275
276         Reviewed by Benjamin Poulain.
277
278         Generalize is<>() / downcast<>() support to all types, not just Nodes.
279
280         * DOMCoreClasses.cpp:
281         (DOMElement::createInstance):
282
283 2014-09-30  Chris Dumez  <cdumez@apple.com>
284
285         Use is<>() / downcast<>() for Element
286         https://bugs.webkit.org/show_bug.cgi?id=137241
287
288         Reviewed by Andreas Kling.
289
290         Use is<>() / downcast<>() for Element instead of isElementNode() /
291         toElement().
292
293         * DOMEventsClasses.cpp:
294         (DOMMouseEvent::toElement):
295         * DOMEventsClasses.h:
296
297 2014-09-29  Christophe Dumez  <cdumez@apple.com>
298
299         Make is<>() / downcast<>() work for HTMLDocument and its subclasses
300         https://bugs.webkit.org/show_bug.cgi?id=137169
301
302         Reviewed by Darin Adler.
303
304         Use is<>() / downcast<>() for HTMLDocument and its subclasses.
305
306         * DOMHTMLClasses.cpp:
307         (DOMHTMLDocument::URL):
308         (DOMHTMLDocument::body):
309         (DOMHTMLDocument::forms):
310
311 2014-09-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
312
313         Use std::unique_ptr for ContextMenuController
314         https://bugs.webkit.org/show_bug.cgi?id=137178
315
316         Reviewed by Darin Adler.
317
318         Switch to using std::unique_ptr instead of OwnPtr and PassOwnPtr
319         for ContextMenuController class. Inherited class is changed by this use as well.
320
321         * WebCoreSupport/WebContextMenuClient.cpp:
322         (WebContextMenuClient::customizeMenu):
323         * WebCoreSupport/WebContextMenuClient.h:
324
325 2014-09-26  Christophe Dumez  <cdumez@apple.com>
326
327         Stop using legacy NODE_TYPE_CASTS() macro for HTML Elements
328         https://bugs.webkit.org/show_bug.cgi?id=137137
329
330         Reviewed by Benjamin Poulain.
331
332         Use is<>() / downcast<>() where appropriate.
333
334         * DOMHTMLClasses.cpp:
335         (DOMHTMLElement::idName):
336         (DOMHTMLElement::innerText):
337         (DOMHTMLElement::setInnerText):
338
339 2014-09-25  Brent Fulgham  <bfulgham@apple.com>
340
341         [Win] Debug builds of TestWebKitAPI are crashing.
342         https://bugs.webkit.org/show_bug.cgi?id=133553
343
344         Reviewed by Dean Jackson.
345
346         Switch from global static HashTable to a NeverDestroyed object.
347         Modify all accessors of the global static to use the new
348         NeverDestroyed accessor method.
349
350         * AccessibleBase.cpp:
351         (AccessibleBase::AccessibleBase):
352         (AccessibleBase::~AccessibleBase):
353         * CFDictionaryPropertyBag.cpp:
354         (CFDictionaryPropertyBag::CFDictionaryPropertyBag):
355         (CFDictionaryPropertyBag::~CFDictionaryPropertyBag):
356         * DefaultDownloadDelegate.cpp:
357         (DefaultDownloadDelegate::DefaultDownloadDelegate):
358         (DefaultDownloadDelegate::~DefaultDownloadDelegate):
359         * DefaultPolicyDelegate.cpp:
360         (DefaultPolicyDelegate::DefaultPolicyDelegate):
361         (DefaultPolicyDelegate::~DefaultPolicyDelegate):
362         * MemoryStream.cpp:
363         (MemoryStream::MemoryStream):
364         (MemoryStream::~MemoryStream):
365         * WebActionPropertyBag.cpp:
366         (WebActionPropertyBag::WebActionPropertyBag):
367         (WebActionPropertyBag::~WebActionPropertyBag):
368         * WebArchive.cpp:
369         (WebArchive::WebArchive):
370         (WebArchive::~WebArchive):
371         * WebBackForwardList.cpp:
372         (WebBackForwardList::WebBackForwardList):
373         (WebBackForwardList::~WebBackForwardList):
374         * WebCache.cpp:
375         (WebCache::WebCache):
376         (WebCache::~WebCache):
377         * WebCookieManager.cpp:
378         (WebCookieManager::WebCookieManager):
379         (WebCookieManager::~WebCookieManager):
380         * WebCoreStatistics.cpp:
381         (WebCoreStatistics::WebCoreStatistics):
382         (WebCoreStatistics::~WebCoreStatistics):
383         * WebDataSource.cpp:
384         (WebDataSource::~WebDataSource):
385         * WebDatabaseManager.cpp:
386         (WebDatabaseManager::WebDatabaseManager):
387         (WebDatabaseManager::~WebDatabaseManager):
388         * WebDocumentLoader.cpp:
389         (WebDocumentLoader::WebDocumentLoader):
390         (WebDocumentLoader::~WebDocumentLoader):
391         * WebDownload.cpp:
392         (WebDownload::WebDownload):
393         (WebDownload::~WebDownload):
394         * WebDropSource.cpp:
395         (WebDropSource::WebDropSource):
396         (WebDropSource::~WebDropSource):
397         * WebElementPropertyBag.cpp:
398         (WebElementPropertyBag::WebElementPropertyBag):
399         (WebElementPropertyBag::~WebElementPropertyBag):
400         * WebError.cpp:
401         (WebError::WebError):
402         (WebError::~WebError):
403         * WebFrame.cpp:
404         (WebFrame::WebFrame):
405         (WebFrame::~WebFrame):
406         * WebFramePolicyListener.cpp:
407         (WebFramePolicyListener::WebFramePolicyListener):
408         (WebFramePolicyListener::~WebFramePolicyListener):
409         * WebGeolocationPolicyListener.cpp:
410         (WebGeolocationPolicyListener::WebGeolocationPolicyListener):
411         (WebGeolocationPolicyListener::~WebGeolocationPolicyListener):
412         * WebGeolocationPosition.cpp:
413         (WebGeolocationPosition::WebGeolocationPosition):
414         (WebGeolocationPosition::~WebGeolocationPosition):
415         * WebHTMLRepresentation.cpp:
416         (WebHTMLRepresentation::WebHTMLRepresentation):
417         (WebHTMLRepresentation::~WebHTMLRepresentation):
418         * WebHistory.cpp:
419         (WebHistory::WebHistory):
420         (WebHistory::~WebHistory):
421         * WebHistoryItem.cpp:
422         (WebHistoryItem::WebHistoryItem):
423         (WebHistoryItem::~WebHistoryItem):
424         * WebIconDatabase.cpp:
425         (WebIconDatabase::WebIconDatabase):
426         (WebIconDatabase::~WebIconDatabase):
427         * WebInspector.cpp:
428         (WebInspector::WebInspector):
429         (WebInspector::~WebInspector):
430         * WebJavaScriptCollector.cpp:
431         (WebJavaScriptCollector::WebJavaScriptCollector):
432         (WebJavaScriptCollector::~WebJavaScriptCollector):
433         * WebKitClassFactory.cpp:
434         (WebKitClassFactory::WebKitClassFactory):
435         (WebKitClassFactory::~WebKitClassFactory):
436         * WebKitDLL.cpp: Also switch to NeverDestroyed HashTable for
437         the global class name count.
438         * WebKitDLL.h:
439         * WebKitStatistics.cpp:
440         (WebKitStatistics::WebKitStatistics):
441         (WebKitStatistics::~WebKitStatistics):
442         (WebKitStatistics::comClassNameCounts):
443         * WebMutableURLRequest.cpp:
444         (WebMutableURLRequest::WebMutableURLRequest):
445         (WebMutableURLRequest::~WebMutableURLRequest):
446         * WebNavigationData.cpp:
447         (WebNavigationData::WebNavigationData):
448         (WebNavigationData::~WebNavigationData):
449         * WebNotification.cpp:
450         (WebNotification::WebNotification):
451         (WebNotification::~WebNotification):
452         * WebNotificationCenter.cpp:
453         (WebNotificationCenter::WebNotificationCenter):
454         (WebNotificationCenter::~WebNotificationCenter):
455         * WebPreferences.cpp:
456         (webPreferencesInstances):
457         (WebPreferences::WebPreferences):
458         (WebPreferences::~WebPreferences):
459         (WebPreferences::getInstanceForIdentifier):
460         (WebPreferences::setInstance):
461         (WebPreferences::removeReferenceForIdentifier):
462         * WebResource.cpp:
463         (WebResource::WebResource):
464         (WebResource::~WebResource):
465         * WebScriptObject.cpp:
466         (WebScriptObject::WebScriptObject):
467         (WebScriptObject::~WebScriptObject):
468         * WebScriptWorld.cpp:
469         (WebScriptWorld::WebScriptWorld):
470         (WebScriptWorld::~WebScriptWorld):
471         * WebSecurityOrigin.cpp:
472         (WebSecurityOrigin::WebSecurityOrigin):
473         (WebSecurityOrigin::~WebSecurityOrigin):
474         * WebSerializedJSValue.cpp:
475         (WebSerializedJSValue::WebSerializedJSValue):
476         (WebSerializedJSValue::~WebSerializedJSValue):
477         * WebTextRenderer.cpp:
478         (WebTextRenderer::WebTextRenderer):
479         (WebTextRenderer::~WebTextRenderer):
480         * WebURLAuthenticationChallenge.cpp:
481         (WebURLAuthenticationChallenge::WebURLAuthenticationChallenge):
482         (WebURLAuthenticationChallenge::~WebURLAuthenticationChallenge):
483         * WebURLAuthenticationChallengeSender.cpp:
484         (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
485         (WebURLAuthenticationChallengeSender::~WebURLAuthenticationChallengeSender):
486         * WebURLCredential.cpp:
487         (WebURLCredential::WebURLCredential):
488         (WebURLCredential::~WebURLCredential):
489         * WebURLProtectionSpace.cpp:
490         (WebURLProtectionSpace::WebURLProtectionSpace):
491         (WebURLProtectionSpace::~WebURLProtectionSpace):
492         * WebURLResponse.cpp:
493         (:m_refCount):
494         (WebURLResponse::~WebURLResponse):
495         * WebUserContentURLPattern.cpp:
496         (WebUserContentURLPattern::WebUserContentURLPattern):
497         (WebUserContentURLPattern::~WebUserContentURLPattern):
498         * WebView.cpp:
499         (pendingDeleteBackingStoreSet): Switch from a global static
500         value to a NeverDestroyed object wrapped by an accessor function.
501         (WebView::WebView): Ditto.
502         (WebView::~WebView): Ditto.
503         (WebView::deleteBackingStore): Ditto.
504         (WebView::deleteBackingStoreSoon): Ditto,
505         (WebView::cancelDeleteBackingStoreSoon): Ditto.
506         * WebWorkersPrivate.cpp: Switch from a global static value for
507         the preferences objects t a NeverDestroyed container.
508         (WebWorkersPrivate::WebWorkersPrivate): Ditto.
509         (WebWorkersPrivate::~WebWorkersPrivate): Ditto.
510
511 2014-09-25  Christophe Dumez  <cdumez@apple.com>
512
513         Use is<HTML*Element>() instead of isHTML*Element() - Part 2
514         https://bugs.webkit.org/show_bug.cgi?id=137103
515
516         Reviewed by Benjamin Poulain.
517
518         Use is<HTML*Element>() instead of isHTML*Element().
519
520         * DOMCoreClasses.cpp:
521         (DOMElement::createInstance):
522         * DOMHTMLClasses.cpp:
523         (DOMHTMLFormElement::action):
524         (DOMHTMLFormElement::method):
525         * WebFrame.cpp:
526         (formElementFromDOMElement):
527
528 2014-09-24  Christophe Dumez  <cdumez@apple.com>
529
530         Add initial is<>() / downcast<>() support for any type of Nodes
531         https://bugs.webkit.org/show_bug.cgi?id=137056
532
533         Reviewed by Benjamin Poulain.
534
535         Use is<HTMLFormControlElement>() / downcast<HTMLFormControlElement>()
536         instead of isFormControlElement() / toHTMLFormControlElement().
537
538         * WebFrame.cpp:
539         (WebFrame::elementWithName):
540
541 2014-09-24  Christophe Dumez  <cdumez@apple.com>
542
543         Unreviewed build fix after r173932.
544
545         Unreviewed build fix after r173932 for Windows. Use WebCore:: namespace
546         explicitely in DOMCoreClasses.cpp.
547
548         * DOMCoreClasses.cpp:
549         (DOMElement::createInstance):
550
551 2014-09-24  Christophe Dumez  <cdumez@apple.com>
552
553         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
554         https://bugs.webkit.org/show_bug.cgi?id=137068
555
556         Reviewed by Ryosuke Niwa.
557
558         Start using is<HTML*Element>() instead of isHTML*Element().
559         Remaining usages will be updated in a follow-up patch to
560         reduce the size of the change.
561
562         * DOMCoreClasses.cpp:
563         (DOMElement::createInstance):
564         * DOMHTMLClasses.cpp:
565         (DOMHTMLOptionElement::text):
566         (DOMHTMLOptionElement::label):
567         (DOMHTMLInputElement::form):
568         (DOMHTMLInputElement::disabled):
569         (DOMHTMLInputElement::readOnly):
570         (DOMHTMLInputElement::setType):
571         (DOMHTMLInputElement::value):
572         (DOMHTMLInputElement::setValue):
573         (DOMHTMLInputElement::setValueForUser):
574         (DOMHTMLInputElement::select):
575         (DOMHTMLInputElement::setSelectionStart):
576         (DOMHTMLInputElement::selectionStart):
577         (DOMHTMLInputElement::setSelectionEnd):
578         (DOMHTMLInputElement::selectionEnd):
579         (DOMHTMLInputElement::isTextField):
580         (DOMHTMLInputElement::rectOnScreen):
581         (DOMHTMLInputElement::replaceCharactersInRange):
582         (DOMHTMLInputElement::selectedRange):
583         (DOMHTMLInputElement::setAutofilled):
584         (DOMHTMLInputElement::isAutofilled):
585         (DOMHTMLInputElement::isUserEdited):
586         (DOMHTMLTextAreaElement::form):
587         (DOMHTMLTextAreaElement::value):
588         (DOMHTMLTextAreaElement::setValue):
589         (DOMHTMLTextAreaElement::select):
590         (DOMHTMLTextAreaElement::isUserEdited):
591         * WebFrame.cpp:
592         (inputElementFromDOMElement):
593
594 2014-09-21  Timothy Hatcher  <timothy@apple.com>
595
596         Make the Web Inspector use a separate web process.
597
598         https://bugs.webkit.org/show_bug.cgi?id=135120
599
600         Reviewed by Anders Carlsson.
601
602         * WebCoreSupport/WebInspectorClient.cpp:
603         (WebInspectorClient::openInspectorFrontend):
604         * WebCoreSupport/WebInspectorClient.h:
605         (WebInspectorClient::frontendClient):
606         Own WebInspectorFrontendClient instead of moving it.
607
608 2014-09-23  Christophe Dumez  <cdumez@apple.com>
609
610         Unreviewed build fix after r173893.
611
612         Partial revert of r173893 to fix debug builds.
613
614         * DOMHTMLClasses.cpp:
615         (DOMHTMLDocument::URL):
616         (DOMHTMLDocument::body):
617         (DOMHTMLDocument::forms):
618
619 2014-09-23  Chris Dumez  <cdumez@apple.com>
620
621         Use downcast<HTML*Element>() instead of toHTML*Element()
622         https://bugs.webkit.org/show_bug.cgi?id=137007
623
624         Reviewed by Benjamin Poulain.
625
626         Use downcast<HTML*Element>() instead of toHTML*Element().
627
628         * DOMHTMLClasses.cpp:
629         (DOMHTMLDocument::URL):
630         (DOMHTMLDocument::body):
631         (DOMHTMLDocument::forms):
632         (DOMHTMLFormElement::action):
633         (DOMHTMLFormElement::method):
634         (DOMHTMLSelectElement::options):
635         (DOMHTMLSelectElement::activateItemAtIndex):
636         (DOMHTMLOptionElement::text):
637         (DOMHTMLOptionElement::label):
638         (DOMHTMLInputElement::form):
639         (DOMHTMLInputElement::disabled):
640         (DOMHTMLInputElement::readOnly):
641         (DOMHTMLInputElement::setType):
642         (DOMHTMLInputElement::value):
643         (DOMHTMLInputElement::setValue):
644         (DOMHTMLInputElement::setValueForUser):
645         (DOMHTMLInputElement::select):
646         (DOMHTMLInputElement::setSelectionStart):
647         (DOMHTMLInputElement::selectionStart):
648         (DOMHTMLInputElement::setSelectionEnd):
649         (DOMHTMLInputElement::selectionEnd):
650         (DOMHTMLInputElement::isTextField):
651         (DOMHTMLInputElement::replaceCharactersInRange):
652         (DOMHTMLInputElement::selectedRange):
653         (DOMHTMLInputElement::setAutofilled):
654         (DOMHTMLInputElement::isAutofilled):
655         (DOMHTMLInputElement::isUserEdited):
656         (DOMHTMLTextAreaElement::form):
657         (DOMHTMLTextAreaElement::value):
658         (DOMHTMLTextAreaElement::setValue):
659         (DOMHTMLTextAreaElement::select):
660         (DOMHTMLTextAreaElement::isUserEdited):
661         (DOMHTMLIFrameElement::contentFrame):
662         * WebFrame.cpp:
663         (formElementFromDOMElement):
664         (inputElementFromDOMElement):
665
666 2014-09-21  Chris Dumez  <cdumez@apple.com>
667
668         Generate Element casting helper functions
669         https://bugs.webkit.org/show_bug.cgi?id=136839
670
671         Reviewed by Darin Adler.
672
673         Use JSXXX::toWrapped() instead of toXXX() function.
674
675         * WebView.cpp:
676         (WebView::elementFromJS):
677
678 2014-09-06  Brian J. Burg  <burg@cs.washington.edu>
679
680         Web Inspector: convert DockSide to an enum class
681         https://bugs.webkit.org/show_bug.cgi?id=136601
682
683         Reviewed by Timothy Hatcher.
684
685         * WebCoreSupport/WebInspectorClient.cpp:
686         (WebInspectorFrontendClient::frontendLoaded):
687
688 2014-09-04  Antti Koivisto  <antti@apple.com>
689
690         Try to fix windows build.
691
692         * WebURLResponse.cpp:
693         (WebURLResponse::createInstance):
694         (WebURLResponse::initWithURL):
695
696 2014-09-02  Brian J. Burg  <burg@cs.washington.edu>
697
698         Web Inspector: fix prefixes for subclasses of JSC::ConsoleClient
699         https://bugs.webkit.org/show_bug.cgi?id=136476
700
701         Reviewed by Timothy Hatcher.
702
703         * WebCoreStatistics.cpp:
704         (WebCoreStatistics::shouldPrintExceptions):
705         (WebCoreStatistics::setShouldPrintExceptions):
706
707 2014-09-02  Maciej Stachowiak  <mjs@apple.com>
708
709         Clean up naming for and slightly refactor legacy video fullscreen support
710         https://bugs.webkit.org/show_bug.cgi?id=136446
711
712         Reviewed by Jer Noble.
713
714         Key changes:
715         supportsFullscreenForNode(Node*) --> supportsVideoFullscreen()
716         enterFullscreenForNode(Node*) --> enterVideoFullscreenForVideoElement(HTMLVideoElement*)
717         exitFullscreenForNode(Node*) --> exitVideoFullscreen()
718         
719         The old versions had unnecessary parameters, did not clearly distinguish their purpose
720         from enterFullscreenForElement and friends, and wrongly claimed generality to all Nodes.
721         Also changed many other places to use HTMLVideoElement* instead of Node* or 
722         HTMLMediaElement* when they were in fact only used for video elements and would only
723         work for such.
724
725         * WebCoreSupport/WebChromeClient.cpp:
726         (WebChromeClient::supportsVideoFullscreen): Adjust for the
727         main refactoring.
728         (WebChromeClient::enterVideoFullscreenForVideoElement): ditto
729         (WebChromeClient::exitVideoFullscreen): ditto
730         * WebCoreSupport/WebChromeClient.h:
731         * WebView.cpp:
732         (WebView::enterVideoFullscreenForVideoElement): Adjust for the 
733         main refactoring.
734         (WebView::exitVideoFullscreen): ditto.
735         * WebView.h:
736         * FullscreenVideoController.cpp: Use video elements, not media elements throughout
737         (FullscreenVideoController::LayerClient::platformCALayerLayoutSublayersOfLayer):
738         (FullscreenVideoController::setVideoElement):
739         (FullscreenVideoController::enterFullscreen):
740         (FullscreenVideoController::exitFullscreen):
741         (FullscreenVideoController::canPlay):
742         (FullscreenVideoController::play):
743         (FullscreenVideoController::pause):
744         (FullscreenVideoController::volume):
745         (FullscreenVideoController::setVolume):
746         (FullscreenVideoController::currentTime):
747         (FullscreenVideoController::setCurrentTime):
748         (FullscreenVideoController::duration):
749         (FullscreenVideoController::beginScrubbing):
750         (FullscreenVideoController::endScrubbing):
751         (FullscreenVideoController::onChar):
752         (FullscreenVideoController::onKeyDown):
753         (FullscreenVideoController::onMouseUp):
754         * FullscreenVideoController.h:
755         (FullscreenVideoController::videoElement):
756
757 2014-09-03  Brent Fulgham  <bfulgham@apple.com>
758
759         Unreviewed build fix after r173200.
760
761         * WebView.cpp:
762         (WebView::setCacheModel): Use appropriate types for cache sizes to be
763         64-bit clean on CFNetwork compile.
764
765 2014-09-02  peavo@outlook.com  <peavo@outlook.com>
766
767         [WinCairo] Memory cache capacity is not set.
768         https://bugs.webkit.org/show_bug.cgi?id=136432
769
770         Reviewed by Alex Christensen.
771
772         Reuse code from AppleWin to set memory and disk cache capacity.
773
774         * WebKitSystemBits.cpp:
775         (WebVolumeFreeSize):
776         * WebKitSystemBits.h:
777         * WebView.cpp:
778         (WebView::setCacheModel):
779
780 2014-08-26  Brent Fulgham  <bfulgham@apple.com>
781
782         [Win] WebKit IDL incorrectly passes HWND as OLE_HANDLE
783         https://bugs.webkit.org/show_bug.cgi?id=136258
784         <rdar://problem/18134138>
785
786         Reviewed by Tim Horton.
787
788         Avoid 32/64-bit truncation by preventing 64-bit HWND (and other)
789         values from passing through the 32-bit OLE_HANDLE data type.
790
791         * Interfaces/IWebDocument.idl:
792         * Interfaces/IWebEmbeddedView.idl:
793         * Interfaces/IWebErrorPrivate.idl:
794         * Interfaces/IWebFrameLoadDelegate.idl:
795         * Interfaces/IWebFramePrivate.idl:
796         * Interfaces/IWebHistoryItem.idl:
797         * Interfaces/IWebIconDatabase.idl:
798         * Interfaces/IWebMutableURLRequestPrivate.idl:
799         * Interfaces/IWebUIDelegate.idl:
800         * Interfaces/IWebUIDelegatePrivate.idl:
801         * Interfaces/IWebURLResponsePrivate.idl:
802         * Interfaces/IWebView.idl:
803         * Interfaces/IWebViewPrivate.idl:
804         * WebCoreSupport/EmbeddedWidget.cpp:
805         (EmbeddedWidget::createWindow):
806         * WebCoreSupport/WebChromeClient.cpp:
807         (WebChromeClient::rootViewToScreen):
808         (WebChromeClient::screenToRootView):
809         (WebChromeClient::platformPageClient):
810         (WebChromeClient::runOpenPanel):
811         (WebChromeClient::setCursor):
812         * WebCoreSupport/WebContextMenuClient.cpp:
813         (WebContextMenuClient::customizeMenu):
814         * WebCoreSupport/WebFrameLoaderClient.cpp:
815         (WebFrameLoaderClient::createPlugin):
816         * WebCoreSupport/WebInspectorClient.cpp:
817         (WebInspectorClient::openInspectorFrontend):
818         (WebInspectorClient::highlight):
819         (WebInspectorFrontendClient::setAttachedWindowHeight):
820         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
821         (WebInspectorFrontendClient::showWindowWithoutNotifications):
822         * WebCoreSupport/WebInspectorClient.h:
823         * WebCoreSupport/WebInspectorDelegate.cpp:
824         * WebCoreSupport/WebInspectorDelegate.h:
825         (WebInspectorDelegate::webViewFirstResponder):
826         (WebInspectorDelegate::makeFirstResponder):
827         (WebInspectorDelegate::contextMenuItemsForElement):
828         (WebInspectorDelegate::trackCustomPopupMenu):
829         (WebInspectorDelegate::addCustomMenuDrawingData):
830         (WebInspectorDelegate::cleanUpCustomMenuDrawingData):
831         (WebInspectorDelegate::drawHeaderInRect):
832         (WebInspectorDelegate::drawFooterInRect):
833         * WebDropSource.cpp:
834         (generateMouseEvent):
835         (WebDropSource::GiveFeedback):
836         * WebError.cpp:
837         (WebError::sslPeerCertificate):
838         * WebError.h:
839         * WebFrame.cpp:
840         (WebFrame::paintDocumentRectToContext):
841         (WebFrame::paintScrollViewRectToContextAtPoint):
842         (WebFrame::createSubframeWithOwnerElement):
843         (WebFrame::initWithWebView):
844         (WebFrame::drawHeader):
845         (WebFrame::drawFooter):
846         * WebFrame.h:
847         * WebHistoryItem.cpp:
848         (WebHistoryItem::icon):
849         * WebHistoryItem.h:
850         * WebIconDatabase.cpp:
851         (WebIconDatabase::iconForURL):
852         (WebIconDatabase::defaultIconWithSize):
853         * WebIconDatabase.h:
854         * WebMutableURLRequest.cpp:
855         (WebMutableURLRequest::setClientCertificate):
856         * WebMutableURLRequest.h:
857         * WebNodeHighlight.cpp:
858         (WebNodeHighlight::WebNodeHighlight):
859         * WebURLResponse.cpp:
860         (WebURLResponse::sslPeerCertificate):
861         * WebURLResponse.h:
862         * WebView.cpp:
863         (WebView::paintIntoBackingStore):
864         (WebView::handleContextMenuEvent):
865         (WebView::onInitMenuPopup):
866         (WebView::onUninitMenuPopup):
867         (WebView::WebViewWndProc):
868         (WebView::dispatchDidReceiveIconFromWebFrame):
869         (WebView::setHostWindow):
870         (WebView::hostWindow):
871         (WebView::generateSelectionImage):
872         (WebView::mainFrameIcon):
873         (WebView::viewWindow):
874         (WebView::paintDocumentRectToContext):
875         (WebView::paintScrollViewRectToContextAtPoint):
876         (WebView::backingStore):
877         (WebView::fullScreenClientSetParentWindow):
878         * WebView.h:
879
880 2014-08-21  Alex Christensen  <achristensen@webkit.org>
881
882         [Win] Unreviewed build fix after r172849.
883
884         * WebKitPrefix.h:
885         Defined WEBCORE_EXPORT.
886
887 2014-08-19  Pratik Solanki  <psolanki@apple.com>
888
889         Remove PurgeableBuffer since it is not very useful any more
890         https://bugs.webkit.org/show_bug.cgi?id=135939
891
892         Reviewed by Andreas Kling.
893
894         * WebCache.cpp:
895         (WebCache::statistics):
896
897 2014-08-18  Commit Queue  <commit-queue@webkit.org>
898
899         Unreviewed, rolling out r172736.
900         https://bugs.webkit.org/show_bug.cgi?id=136060
901
902         Caused 14% PLT regressions (Requested by rniwa on #webkit).
903
904         Reverted changeset:
905
906         "Remove PurgeableBuffer since it is not very useful any more"
907         https://bugs.webkit.org/show_bug.cgi?id=135939
908         http://trac.webkit.org/changeset/172736
909
910 2014-08-18  Pratik Solanki  <psolanki@apple.com>
911
912         Remove PurgeableBuffer since it is not very useful any more
913         https://bugs.webkit.org/show_bug.cgi?id=135939
914
915         Reviewed by Geoffrey Garen.
916
917         * WebCache.cpp:
918         (WebCache::statistics):
919
920 2014-07-27  Pratik Solanki  <psolanki@apple.com>
921
922         Remove unused preference keys
923         https://bugs.webkit.org/show_bug.cgi?id=135280
924
925         Reviewed by Darin Adler.
926
927         * WebPreferenceKeysPrivate.h:
928
929 2014-07-22  Brent Fulgham  <bfulgham@apple.com>
930
931         [Win] Build fix after r171370.
932
933         * WebCoreSupport/WebEditorClient.h: Add override
934         for new 'overflowScrollPositionChanged'.
935
936 2014-07-03  Daniel Bates  <dabates@apple.com>
937
938         Add WTF::move()
939         https://bugs.webkit.org/show_bug.cgi?id=134500
940
941         Rubber-stamped by Anders Carlsson.
942
943         Substitute WTF::move() for std::move().
944
945         * WebCoreSupport/WebInspectorClient.cpp:
946         (WebInspectorClient::openInspectorFrontend):
947         (WebInspectorFrontendClient::WebInspectorFrontendClient):
948         * WebHistory.cpp:
949         (createUserInfoFromArray):
950         * WebHistoryItem.cpp:
951         (WebHistoryItem::initFromDictionaryRepresentation):
952         * WebView.cpp:
953         (WebView::addToDirtyRegion):
954         (WebView::scrollBackingStore):
955
956 2014-06-26  Brady Eidson  <beidson@apple.com>
957
958         Remove use of PlatformStrategies for Gamepad API.
959         https://bugs.webkit.org/show_bug.cgi?id=134348
960
961         Reviewed by Dean Jackson.
962
963         * WebCoreSupport/WebPlatformStrategies.cpp:
964         (WebPlatformStrategies::createGamepadStrategy): Deleted.
965         * WebCoreSupport/WebPlatformStrategies.h:
966
967 2014-06-25  Brent Fulgham  <bfulgham@apple.com>
968
969         [Win] Expose Cache Information to WinLauncher
970         https://bugs.webkit.org/show_bug.cgi?id=134318
971
972         Reviewed by Dean Jackson.
973
974         * Interfaces/IWebCoreStatistics.idl: Add missing
975         API added to WebKit since this was last updated.
976         * WebCache.cpp:
977         (WebCache::statistics): Add missing elements for
978         purgable and purged data.
979         * WebCoreStatistics.cpp: Provide implementaions.
980         * WebCoreStatistics.h: Ditto.
981
982 2014-06-25  Brady Eidson  <beidson@apple.com>
983
984         Add new platform gamepad abstractions
985         https://bugs.webkit.org/show_bug.cgi?id=134325
986
987         Reviewed by Dean Jackson.
988
989         * WebCoreSupport/WebPlatformStrategies.cpp:
990         (WebPlatformStrategies::createGamepadStrategy):
991         * WebCoreSupport/WebPlatformStrategies.h:
992
993 2014-06-19  Anders Carlsson  <andersca@apple.com>
994
995         Try to fix Windows build.
996
997         * WebFrame.h:
998
999 2014-06-18  Anders Carlsson  <andersca@apple.com>
1000
1001         Make FrameLoadType a strongly typed enum
1002         https://bugs.webkit.org/show_bug.cgi?id=134047
1003
1004         Reviewed by Andreas Kling.
1005
1006         * WebView.cpp:
1007         (WebView::goToBackForwardItem):
1008         (WebView::loadBackForwardListFromOtherView):
1009
1010 2014-06-18  Anders Carlsson  <andersca@apple.com>
1011
1012         Remove IWebFramePrivate::loadType
1013         https://bugs.webkit.org/show_bug.cgi?id=134044
1014
1015         Reviewed by Tim Horton.
1016
1017         * Interfaces/IWebFramePrivate.idl:
1018         * WebFrame.cpp:
1019         (WebFrame::loadType): Deleted.
1020         (WebFrame::unused2): Deleted.
1021         * WebFrame.h:
1022
1023 2014-06-12  Brent Fulgham  <bfulgham@apple.com>
1024
1025         [Win] Avoid crashes in code that converted CFDictionaries to HashMap
1026         https://bugs.webkit.org/show_bug.cgi?id=133813
1027         <rdar://problem/17291647>
1028
1029         Reviewed by Tim Horton.
1030
1031         * WebHistory.cpp: Add empty string checks to avoid crashes in
1032         hash function.
1033         (WebHistory::removeItem):
1034         (WebHistory::addItem):
1035         (WebHistory::visitedURL):
1036         (WebHistory::itemForURL):
1037         (WebHistory::removeItemForURLString):
1038         (WebHistory::itemForURLString):
1039         * WebPreferences.cpp: Ditto.
1040         (WebPreferences::getInstanceForIdentifier):
1041         (WebPreferences::setInstance):
1042         (WebPreferences::removeReferenceForIdentifier):
1043         * WebView.cpp: Ditto. Also convert OwnPtr uses in this file
1044         to std::unique_ptr.
1045         (WebView::close):
1046         (WebView::handleMouseEvent):
1047         (WebView::registerEmbeddedViewMIMEType):
1048         (WebView::shouldUseEmbeddedView):
1049         (WebView::enterFullscreenForNode):
1050         (WebView::fullScreenController):
1051         * WebView.h:
1052
1053 2014-05-07  Hyowon Kim  <hw1008.kim@samsung.com>
1054
1055         GraphicsLayer::client() should return a reference.
1056         https://bugs.webkit.org/show_bug.cgi?id=126372
1057
1058         Reviewed by Simon Fraser.
1059
1060         GraphicsLayers always have a GraphicsLayerClient attached,
1061         so make client() a reference and remove some unnecessary branches.
1062         The author of the changes in the mac port is Andreas Kling <akling@apple.com>.
1063
1064         * WebView.cpp:
1065         (WebView::setAcceleratedCompositing):
1066
1067 2014-04-30  Alexey Proskuryakov  <ap@apple.com>
1068
1069         Roll out fix for https://bugs.webkit.org/show_bug.cgi?id=131637:
1070         Clean up unnecessary methods in the BackForwardClient interface
1071
1072         It broke a regression test and an API test.
1073
1074         * WebBackForwardList.cpp:
1075         (WebBackForwardList::WebBackForwardList):
1076         (WebBackForwardList::~WebBackForwardList):
1077         (WebBackForwardList::createInstance):
1078         * WebBackForwardList.h:
1079         * WebView.cpp:
1080         (WebView::backForwardList):
1081         (WebView::canGoBack):
1082         (WebView::canGoForward):
1083         (WebView::loadBackForwardListFromOtherView):
1084
1085 2014-04-30  Brian J. Burg  <burg@cs.washington.edu>
1086
1087         Clean up unnecessary methods in the BackForwardClient interface
1088         https://bugs.webkit.org/show_bug.cgi?id=131637
1089
1090         Reviewed by Andreas Kling.
1091
1092         Remove uses of reference counting for BackForwardList.
1093         Use BackForwardController instead of BackForwardClient where possible.
1094
1095         * WebBackForwardList.cpp:
1096         (WebBackForwardList::WebBackForwardList):
1097         (WebBackForwardList::~WebBackForwardList):
1098         (WebBackForwardList::createInstance):
1099         * WebBackForwardList.h:
1100         * WebView.cpp:
1101         (WebView::backForwardList):
1102         (WebView::canGoBack):
1103         (WebView::canGoForward):
1104         (WebView::loadBackForwardListFromOtherView):
1105
1106 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
1107
1108         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
1109         https://bugs.webkit.org/show_bug.cgi?id=132110
1110
1111         Reviewed by Tim Horton.
1112
1113         Updates callers to use '.' instead of '->'.
1114
1115         No new tests are necessary because there should be no behavior change.
1116
1117         * WebCoreStatistics.cpp:
1118         (WebCoreStatistics::cachedFontDataCount):
1119         (WebCoreStatistics::cachedFontDataInactiveCount):
1120         (WebCoreStatistics::purgeInactiveFontData):
1121
1122 2014-04-22  Alex Christensen  <achristensen@webkit.org>
1123
1124         Begin implementation of video using Media Foundation.
1125         https://bugs.webkit.org/show_bug.cgi?id=131830
1126
1127         Reviewed by Brent Fulgham.
1128
1129         * FullscreenVideoController.cpp:
1130         * WebView.cpp:
1131         Added new USE(MEDIA_FOUNDATION) flag to prevent using the unsupported fullscreen api.
1132
1133 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
1134
1135         Eliminate DragSession structure
1136         https://bugs.webkit.org/show_bug.cgi?id=131465
1137
1138         Reviewed by Benjamin Poulain.
1139
1140         * WebView.cpp:
1141         (WebView::DragEnter):
1142         (WebView::DragOver):
1143
1144 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
1145
1146         Rename some dragging functions
1147         https://bugs.webkit.org/show_bug.cgi?id=131460
1148
1149         Reviewed by Tim Horton.
1150
1151         Renamed performDrag to performDragOperation.
1152
1153         * WebView.cpp: (WebView::Drop):
1154
1155 2014-04-02  Mark Rowe  <mrowe@apple.com>
1156
1157         Build fix after r166684.
1158
1159         * WebCoreSupport/WebContextMenuClient.cpp:
1160         (WebContextMenuClient::searchWithGoogle):
1161
1162 2014-04-02  Martin Hock  <mhock@apple.com>
1163
1164         Unify private browsing with sessions.
1165         https://bugs.webkit.org/show_bug.cgi?id=130099
1166
1167         Reviewed by Alexey Proskuryakov.
1168
1169         * WebCoreSupport/WebFrameLoaderClient.cpp: Change WebCore::Settings::privateBrowsingEnabled() to Page::sessionID().isEphemeral().
1170         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
1171         * WebCoreSupport/WebFrameNetworkingContext.cpp: Ditto.
1172         (WebFrameNetworkingContext::storageSession):
1173         * WebView.cpp: Change WebCore::Settings::setPrivateBrowsingEnabled() to Page::enableLegacyPrivateBrowsing().
1174         (WebView::notifyPreferencesChanged):
1175
1176 2014-03-22  Darin Adler  <darin@apple.com>
1177
1178         Remove String::deprecatedCharacters
1179         https://bugs.webkit.org/show_bug.cgi?id=126854
1180
1181         Reviewed by Sam Weinig.
1182
1183         * WebKitStatistics.cpp:
1184         (WebKitStatistics::comClassNameCounts): Update to not use Vector::append(String).
1185
1186 2014-03-17  Brent Fulgham  <bfulgham@apple.com>
1187
1188         Provide preference to enable additional AVFoundation options
1189         https://bugs.webkit.org/show_bug.cgi?id=130275
1190
1191         Reviewed by Eric Carlson.
1192
1193         * Interfaces/IWebPreferencesPrivate.idl: Added new preference.
1194         * WebPreferenceKeysPrivate.h: Ditto.
1195         * WebPreferences.cpp:
1196         (WebPreferences::initializeDefaultSettings): Initialize preference to false.
1197         (WebPreferences::isInheritURIQueryComponentEnabled): Added.
1198         (WebPreferences::setEnableInheritURIQueryComponent): Added.
1199         * WebPreferences.h:
1200         * WebView.cpp:
1201         (WebView::notifyPreferencesChanged): Handle new preference.
1202
1203 2014-03-16  Darin Adler  <darin@apple.com>
1204
1205         Remove all deprecatedCharacters use from WebKit
1206         https://bugs.webkit.org/show_bug.cgi?id=130305
1207
1208         Reviewed by Andreas Kling.
1209
1210         * AccessibleTextImpl.cpp:
1211         (AccessibleText::get_text): Use BString instead of SysAllocStringLen,
1212         which handles String directly.
1213         (AccessibleText::get_textBeforeOffset): Ditto.
1214         (AccessibleText::get_textAfterOffset): Ditto.
1215         (AccessibleText::get_textAtOffset): Ditto.
1216         (AccessibleText::get_attributes): Ditto.
1217         * DOMCSSClasses.cpp:
1218         (DOMCSSStyleDeclaration::getPropertyValue): Ditto.
1219         * DOMCoreClasses.cpp:
1220         (DOMNode::nodeValue): Ditto.
1221         (DOMElement::getAttribute): Ditto.
1222         (DOMElement::font): Rework this to leak a string, since it returns a
1223         pointer to a font family name's characters with no defined lifetime.
1224
1225         * DOMHTMLClasses.cpp:
1226         (DOMHTMLElement::innerText): Use BString's String-based constructor,
1227         instead of explicitly passing a character pointer.
1228         (DOMHTMLFormElement::action): Ditto.
1229         (DOMHTMLFormElement::method): Ditto.
1230         (DOMHTMLInputElement::value): Ditto.
1231         (DOMHTMLTextAreaElement::value): Ditto.
1232
1233         * MarshallingHelpers.cpp:
1234         (MarshallingHelpers::PathStringToFileCFURLRef): Use String::createCFString.
1235
1236         * WebCoreSupport/WebEditorClient.cpp:
1237         (WebEditorClient::checkSpellingOfString): Use StringView::upconvertedCharacters.
1238         (WebEditorClient::checkGrammarOfString): Ditto.
1239
1240         * WebDataSource.cpp:
1241         (WebDataSource::unreachableURL): Use BString's String-based constructor,
1242         instead of explicitly passing a character pointer.
1243
1244         * WebDownload.cpp:
1245         (WebDownload::bundlePathForTargetPath): Use BString instead of SysAllocStringLen.
1246
1247         * WebDownloadCFNet.cpp:
1248         (WebDownload::didFinish): Use BString's String-based constructor,
1249         instead of explicitly passing a character pointer.
1250         * WebDownloadCurl.cpp:
1251         (WebDownload::didReceiveResponse): Ditto.
1252
1253         * WebElementPropertyBag.cpp:
1254         (convertStringToVariant): Use BString instead of SysAllocStringLen.
1255         * WebFrame.cpp:
1256         (WebFrame::searchForLabelsBeforeElement): Ditto.
1257         (WebFrame::matchLabelsAgainstElement): Ditto.
1258
1259         * WebHistory.cpp:
1260         (WebHistory::addVisitedLinksToPageGroup): Use a better loop and call
1261         visitedLinkHash, since it can take a String.
1262
1263         * WebKitGraphics.cpp:
1264         (CenterTruncateStringToWidth): Use StringView::getCharactersWithUpconvert.
1265         (RightTruncateStringToWidth): Ditto.
1266
1267         * WebView.cpp:
1268         (WebView::applicationNameForUserAgent): Use BString instead of SysAllocStringLen.
1269         (WebView::customUserAgent): Ditto.
1270         (WebView::groupName): Ditto.
1271         (WebView::selectedText): Ditto.
1272         (WebView::onIMERequestReconvertString): Use StringView::getCharactersWithUpconvert.
1273
1274 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
1275
1276         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
1277         https://bugs.webkit.org/show_bug.cgi?id=130276
1278         <rdar://problem/16266927>
1279         
1280         Reviewed by Simon Fraser.
1281
1282         * CFDictionaryPropertyBag.cpp:
1283         * CFDictionaryPropertyBag.h:
1284         * CodeAnalysisConfig.h:
1285         * DOMCSSClasses.cpp:
1286         * DOMCSSClasses.h:
1287         * DOMCoreClasses.cpp:
1288         * DOMCoreClasses.h:
1289         * DOMEventsClasses.cpp:
1290         * DOMEventsClasses.h:
1291         * DOMHTMLClasses.cpp:
1292         * DOMHTMLClasses.h:
1293         * DefaultDownloadDelegate.cpp:
1294         * DefaultDownloadDelegate.h:
1295         * DefaultPolicyDelegate.cpp:
1296         * DefaultPolicyDelegate.h:
1297         * ForEachCoClass.cpp:
1298         * ForEachCoClass.h:
1299         * FullscreenVideoController.cpp:
1300         * FullscreenVideoController.h:
1301         * Interfaces/AccessibilityDelegate.idl:
1302         * Interfaces/DOMCSS.idl:
1303         * Interfaces/DOMCore.idl:
1304         * Interfaces/DOMEvents.idl:
1305         * Interfaces/DOMExtensions.idl:
1306         * Interfaces/DOMHTML.idl:
1307         * Interfaces/DOMPrivate.idl:
1308         * Interfaces/DOMRange.idl:
1309         * Interfaces/DOMWindow.idl:
1310         * Interfaces/IGEN_DOMObject.idl:
1311         * Interfaces/IWebArchive.idl:
1312         * Interfaces/IWebBackForwardList.idl:
1313         * Interfaces/IWebBackForwardListPrivate.idl:
1314         * Interfaces/IWebCache.idl:
1315         * Interfaces/IWebDataSource.idl:
1316         * Interfaces/IWebDatabaseManager.idl:
1317         * Interfaces/IWebDocument.idl:
1318         * Interfaces/IWebDownload.idl:
1319         * Interfaces/IWebEditingDelegate.idl:
1320         * Interfaces/IWebError.idl:
1321         * Interfaces/IWebErrorPrivate.idl:
1322         * Interfaces/IWebFormDelegate.idl:
1323         * Interfaces/IWebFrame.idl:
1324         * Interfaces/IWebFrameLoadDelegate.idl:
1325         * Interfaces/IWebFrameLoadDelegatePrivate.idl:
1326         * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
1327         * Interfaces/IWebFramePrivate.idl:
1328         * Interfaces/IWebFrameView.idl:
1329         * Interfaces/IWebHTMLRepresentation.idl:
1330         * Interfaces/IWebHTTPURLResponse.idl:
1331         * Interfaces/IWebHistory.idl:
1332         * Interfaces/IWebHistoryDelegate.idl:
1333         * Interfaces/IWebHistoryItem.idl:
1334         * Interfaces/IWebHistoryItemPrivate.idl:
1335         * Interfaces/IWebHistoryPrivate.idl:
1336         * Interfaces/IWebIconDatabase.idl:
1337         * Interfaces/IWebInspector.idl:
1338         * Interfaces/IWebInspectorPrivate.idl:
1339         * Interfaces/IWebJavaScriptCollector.idl:
1340         * Interfaces/IWebKitStatistics.idl:
1341         * Interfaces/IWebMutableURLRequest.idl:
1342         * Interfaces/IWebMutableURLRequestPrivate.idl:
1343         * Interfaces/IWebNavigationData.idl:
1344         * Interfaces/IWebNotification.idl:
1345         * Interfaces/IWebNotificationCenter.idl:
1346         * Interfaces/IWebNotificationObserver.idl:
1347         * Interfaces/IWebPolicyDelegate.idl:
1348         * Interfaces/IWebPolicyDelegatePrivate.idl:
1349         * Interfaces/IWebPreferences.idl:
1350         * Interfaces/IWebPreferencesPrivate.idl:
1351         * Interfaces/IWebResource.idl:
1352         * Interfaces/IWebResourceLoadDelegate.idl:
1353         * Interfaces/IWebResourceLoadDelegatePrivate.idl:
1354         * Interfaces/IWebResourceLoadDelegatePrivate2.idl:
1355         * Interfaces/IWebScriptObject.idl:
1356         * Interfaces/IWebSecurityOrigin.idl:
1357         * Interfaces/IWebSerializedJSValuePrivate.idl:
1358         * Interfaces/IWebTextRenderer.idl:
1359         * Interfaces/IWebUIDelegate.idl:
1360         * Interfaces/IWebUIDelegatePrivate.idl:
1361         * Interfaces/IWebURLAuthenticationChallenge.idl:
1362         * Interfaces/IWebURLRequest.idl:
1363         * Interfaces/IWebURLResponse.idl:
1364         * Interfaces/IWebURLResponsePrivate.idl:
1365         * Interfaces/IWebUndoManager.idl:
1366         * Interfaces/IWebUndoTarget.idl:
1367         * Interfaces/IWebView.idl:
1368         * Interfaces/IWebViewPrivate.idl:
1369         * Interfaces/WebKit.idl:
1370         * Interfaces/WebScrollbarTypes.idl:
1371         * MarshallingHelpers.cpp:
1372         * MarshallingHelpers.h:
1373         * MemoryStream.cpp:
1374         * MemoryStream.h:
1375         * ProgIDMacros.h:
1376         * WebActionPropertyBag.cpp:
1377         * WebActionPropertyBag.h:
1378         * WebBackForwardList.cpp:
1379         * WebBackForwardList.h:
1380         * WebCache.cpp:
1381         * WebCache.h:
1382         * WebCachedFramePlatformData.h:
1383         * WebCoreSupport/WebChromeClient.cpp:
1384         * WebCoreSupport/WebChromeClient.h:
1385         * WebCoreSupport/WebContextMenuClient.cpp:
1386         * WebCoreSupport/WebContextMenuClient.h:
1387         * WebCoreSupport/WebDragClient.cpp:
1388         * WebCoreSupport/WebDragClient.h:
1389         * WebCoreSupport/WebEditorClient.cpp:
1390         * WebCoreSupport/WebEditorClient.h:
1391         * WebCoreSupport/WebFrameLoaderClient.cpp:
1392         * WebCoreSupport/WebFrameLoaderClient.h:
1393         * WebCoreSupport/WebInspectorClient.cpp:
1394         * WebCoreSupport/WebInspectorClient.h:
1395         * WebCoreSupport/WebInspectorDelegate.cpp:
1396         * WebCoreSupport/WebInspectorDelegate.h:
1397         * WebDataSource.cpp:
1398         * WebDataSource.h:
1399         * WebDatabaseManager.cpp:
1400         * WebDatabaseManager.h:
1401         * WebDocumentLoader.cpp:
1402         * WebDocumentLoader.h:
1403         * WebDownload.cpp:
1404         * WebDownload.h:
1405         * WebDownloadCFNet.cpp:
1406         * WebDownloadCurl.cpp:
1407         * WebDropSource.cpp:
1408         * WebDropSource.h:
1409         * WebElementPropertyBag.cpp:
1410         * WebElementPropertyBag.h:
1411         * WebError.cpp:
1412         * WebError.h:
1413         * WebFrame.cpp:
1414         * WebFrame.h:
1415         * WebFramePolicyListener.cpp:
1416         * WebFramePolicyListener.h:
1417         * WebHTMLRepresentation.cpp:
1418         * WebHTMLRepresentation.h:
1419         * WebHistory.cpp:
1420         * WebHistory.h:
1421         * WebHistoryItem.cpp:
1422         * WebHistoryItem.h:
1423         * WebIconDatabase.cpp:
1424         * WebIconDatabase.h:
1425         * WebInspector.cpp:
1426         * WebInspector.h:
1427         * WebJavaScriptCollector.cpp:
1428         * WebJavaScriptCollector.h:
1429         * WebKitCOMAPI.cpp:
1430         * WebKitCOMAPI.h:
1431         * WebKitClassFactory.cpp:
1432         * WebKitClassFactory.h:
1433         * WebKitDLL.cpp:
1434         * WebKitDLL.h:
1435         * WebKitGraphics.cpp:
1436         * WebKitGraphics.h:
1437         * WebKitLogging.cpp:
1438         * WebKitLogging.h:
1439         * WebKitPrefix.cpp:
1440         * WebKitPrefix.h:
1441         * WebKitStatistics.cpp:
1442         * WebKitStatistics.h:
1443         * WebKitStatisticsPrivate.h:
1444         * WebKitSystemBits.cpp:
1445         * WebKitSystemBits.h:
1446         * WebLocalizableStrings.cpp:
1447         * WebLocalizableStrings.h:
1448         * WebMutableURLRequest.cpp:
1449         * WebMutableURLRequest.h:
1450         * WebNavigationData.cpp:
1451         * WebNavigationData.h:
1452         * WebNodeHighlight.cpp:
1453         * WebNodeHighlight.h:
1454         * WebNotification.cpp:
1455         * WebNotification.h:
1456         * WebNotificationCenter.cpp:
1457         * WebNotificationCenter.h:
1458         * WebPreferenceKeysPrivate.h:
1459         * WebPreferences.cpp:
1460         * WebPreferences.h:
1461         * WebResource.cpp:
1462         * WebResource.h:
1463         * WebScriptObject.cpp:
1464         * WebScriptObject.h:
1465         * WebSecurityOrigin.cpp:
1466         * WebSecurityOrigin.h:
1467         * WebTextRenderer.cpp:
1468         * WebTextRenderer.h:
1469         * WebURLAuthenticationChallenge.cpp:
1470         * WebURLAuthenticationChallenge.h:
1471         * WebURLAuthenticationChallengeSender.cpp:
1472         * WebURLAuthenticationChallengeSender.h:
1473         * WebURLAuthenticationChallengeSenderCFNet.cpp:
1474         * WebURLAuthenticationChallengeSenderCurl.cpp:
1475         * WebURLCredential.cpp:
1476         * WebURLCredential.h:
1477         * WebURLProtectionSpace.cpp:
1478         * WebURLProtectionSpace.h:
1479         * WebURLResponse.cpp:
1480         * WebURLResponse.h:
1481         * WebView.cpp:
1482         * WebView.h:
1483
1484 2014-03-12  Sergio Villar Senin  <svillar@igalia.com>
1485
1486         Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
1487         https://bugs.webkit.org/show_bug.cgi?id=129612
1488
1489         Reviewed by Darin Adler.
1490
1491         For new code use static NeverDestroyed<T> instead.
1492
1493         * WebCoreSupport/WebPlatformStrategies.cpp:
1494         (WebPlatformStrategies::initialize):
1495         * WebHistory.cpp:
1496         (sharedHistoryStorage):
1497         * WebLocalizableStrings.cpp:
1498         (mainBundleLocStrings):
1499         (frameworkLocStringsMutex):
1500         (frameworkLocStrings):
1501         * WebView.cpp:
1502         (WebView::standardUserAgentWithApplicationName):
1503
1504 2014-03-13  Brian Burg  <bburg@apple.com>
1505
1506         Unreviewed build fix for Mac Windows after r165545.
1507         https://bugs.webkit.org/show_bug.cgi?id=129744
1508
1509         Reviewed by Timothy Hatcher.
1510
1511         * Interfaces/IWebInspectorPrivate.idl: Remove callId from IWebInspectorPrivate.
1512
1513 2014-03-12  Brian Burg  <bburg@apple.com>
1514
1515         Web Inspector: Remove unused callId parameter from evaluateInWebInspector
1516         https://bugs.webkit.org/show_bug.cgi?id=129744
1517
1518         Reviewed by Timothy Hatcher.
1519
1520         * WebInspector.cpp:
1521         (WebInspector::evaluateInFrontend):
1522         * WebInspector.h:
1523
1524 2014-03-06  Joseph Pecoraro  <pecoraro@apple.com>
1525
1526         Web Inspector: Expose the console object in JSContexts to interact with Web Inspector
1527         https://bugs.webkit.org/show_bug.cgi?id=127944
1528
1529         Reviewed by Geoffrey Garen.
1530
1531         * WebCoreSupport/WebChromeClient.h:
1532         Update namespaces.
1533
1534 2014-03-04  Zalan Bujtas  <zalan@apple.com>
1535
1536         Subpixel rendering: Make GraphicsLayer::fillRect FloatRoundedRect based and cleanup dependencies.
1537         https://bugs.webkit.org/show_bug.cgi?id=129557
1538
1539         Reviewed by Simon Fraser.
1540
1541         This is the preparation for snapping rounded rects to device pixel position. It enables
1542         device pixel aware border-radius painting.
1543
1544         No change in functionality.
1545
1546         * FullscreenVideoController.cpp:
1547         (HUDSlider::draw):
1548         (FullscreenVideoController::draw):
1549
1550 2014-03-02  Darin Adler  <darin@apple.com>
1551
1552         Streamline use of TextIterator, cutting down includes and use of soon-to-be-deleted functions
1553         https://bugs.webkit.org/show_bug.cgi?id=129592
1554
1555         Reviewed by Sam Weinig.
1556
1557         * WebCoreSupport/WebEditorClient.cpp: Added now-needed include.
1558
1559 2014-02-25  Anders Carlsson  <andersca@apple.com>
1560
1561         Get rid of VisitedLinkStrategy
1562         https://bugs.webkit.org/show_bug.cgi?id=129324
1563
1564         Reviewed by Dan Bernstein.
1565
1566         * WebCoreSupport/WebPlatformStrategies.cpp:
1567         (WebPlatformStrategies::getPluginInfo):
1568         * WebCoreSupport/WebPlatformStrategies.h:
1569
1570 2014-02-24  Renata Hodovan  <rhodovan.u-szeged@partner.samsung.com>
1571
1572         Get rid of the unused 'immediate' parameters from repaint related functions
1573         https://bugs.webkit.org/show_bug.cgi?id=129111
1574
1575         Reviewed by Simon Fraser.
1576
1577         Removing the 'immediate' parameters from repaint related functions - accoring
1578         to the FIXME in RenderView::repaintViewRectangle() - since they have no effect.
1579
1580         * WebCoreSupport/WebChromeClient.cpp:
1581         (WebChromeClient::invalidateRootView):
1582         (WebChromeClient::invalidateContentsAndRootView):
1583         (WebChromeClient::invalidateContentsForSlowScroll):
1584         * WebCoreSupport/WebChromeClient.h:
1585
1586 2014-02-20  Csaba Osztrogonác  <ossy@webkit.org>
1587
1588         Get rid of redundant Platform.h includes
1589         https://bugs.webkit.org/show_bug.cgi?id=128817
1590
1591         Reviewed by Brent Fulgham.
1592
1593         * WebDownloadCFNet.cpp:
1594         * WebDownloadCurl.cpp:
1595         * WebURLResponse.cpp:
1596
1597 2014-02-18  Sam Weinig  <sam@webkit.org>
1598
1599         Simplify HTML tokenizer parameterization down to what is used
1600         https://bugs.webkit.org/show_bug.cgi?id=128977
1601
1602         Reviewed by Alexey Proskuryakov.
1603
1604         Remove unused SPI.
1605
1606         * WebView.cpp:
1607         (WebView::setCustomHTMLTokenizerTimeDelay):
1608         (WebView::setCustomHTMLTokenizerChunkSize):
1609
1610 2014-02-17  Anders Carlsson  <andersca@apple.com>
1611
1612         Remove view source code
1613         https://bugs.webkit.org/show_bug.cgi?id=127233
1614
1615         Reviewed by Antti Koivisto.
1616
1617         * WebFrame.cpp:
1618         (WebFrame::inViewSourceMode):
1619         (WebFrame::setInViewSourceMode):
1620         * WebView.cpp:
1621         (WebView::setInViewSourceMode):
1622         (WebView::inViewSourceMode):
1623
1624 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
1625
1626         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
1627         https://bugs.webkit.org/show_bug.cgi?id=128681
1628
1629         Reviewed by Timothy Hatcher.
1630
1631         Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
1632         WebCore/inspector/*. Besides files in there, a few other files in
1633         JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
1634         and WebCore/testing were touched.
1635
1636         * WebCoreSupport/WebInspectorClient.cpp:
1637         * WebCoreSupport/WebInspectorClient.h:
1638
1639 2014-02-14  Brent Fulgham  <bfulgham@apple.com>
1640
1641         [Win] Make tests more consistent with Mac platform
1642         https://bugs.webkit.org/show_bug.cgi?id=128848
1643
1644         Reviewed by Simon Fraser.
1645
1646         * Interfaces/IWebPreferencesPrivate.idl: Add access to the
1647         mock scrollbar and screen font substitution features.
1648         * WebPreferenceKeysPrivate.h: Ditto
1649         * WebPreferences.cpp: Ditto
1650         (WebPreferences::mockScrollbarsEnabled):
1651         (WebPreferences::setMockScrollbarsEnabled):
1652         (WebPreferences::screenFontSubstitutionEnabled):
1653         (WebPreferences::setScreenFontSubstitutionEnabled):
1654         * WebPreferences.h: Ditto
1655         * WebView.cpp:
1656         (WebView::notifyPreferencesChanged): Ditto
1657
1658 2014-02-11  Zalan Bujtas  <zalan@apple.com>
1659
1660         Subpixel rendering: Make GraphicsLayerClient::paintContents's clip rect subpixel based.
1661         https://bugs.webkit.org/show_bug.cgi?id=128460
1662
1663         Reviewed by Simon Fraser.
1664
1665         GraphicsClient::paintContents takes clipRect as FloatRect now so that we can paint on
1666         subpixel position.
1667
1668         No change in functionality.
1669
1670         * WebView.cpp:
1671         (WebView::paintContents):
1672         * WebView.h:
1673
1674 2014-02-11  Alex Christensen  <achristensen@webkit.org>
1675
1676         Fixed pointer truncation on Win64.
1677         https://bugs.webkit.org/show_bug.cgi?id=128211
1678
1679         Reviewed by Brent Fulgham.
1680
1681         * WebCoreSupport/EmbeddedWidget.cpp:
1682         (EmbeddedWidget::createWindow):
1683         * WebCoreSupport/WebContextMenuClient.cpp:
1684         (WebContextMenuClient::customizeMenu):
1685         * WebCoreSupport/WebFrameLoaderClient.cpp:
1686         (WebFrameLoaderClient::createPlugin):
1687         * WebCoreSupport/WebInspectorClient.cpp:
1688         (WebInspectorClient::WebInspectorClient):
1689         (WebInspectorClient::openInspectorFrontend):
1690         (WebInspectorClient::highlight):
1691         (WebInspectorClient::releaseFrontend):
1692         (WebInspectorFrontendClient::setAttachedWindowHeight):
1693         (WebInspectorFrontendClient::closeWindowWithoutNotifications):
1694         * WebCoreSupport/WebInspectorClient.h:
1695         * WebDropSource.cpp:
1696         (generateMouseEvent):
1697         * WebFrame.cpp:
1698         (WebFrame::createSubframeWithOwnerElement):
1699         (WebFrame::initWithWebView):
1700         Removed all casts from &HWND to OLE_HANDLE*.
1701
1702 2014-02-11  peavo@outlook.com  <peavo@outlook.com>
1703
1704         [WinCairo] Compile error related to toString function.
1705         https://bugs.webkit.org/show_bug.cgi?id=128607
1706
1707         Reviewed by Brent Fulgham.
1708
1709         * WebView.cpp:
1710         (toString): Added another toString function to make sure we are not trying to use WTF::toString.
1711
1712 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
1713
1714         Cleanup the interface of FrameSelection
1715         https://bugs.webkit.org/show_bug.cgi?id=128481
1716
1717         Reviewed by Andreas Kling.
1718
1719         * WebView.cpp:
1720         (WebView::selectionRect):
1721
1722 2014-02-08  Darin Adler  <darin@apple.com>
1723
1724         Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters
1725         https://bugs.webkit.org/show_bug.cgi?id=128233
1726
1727         Reviewed by Anders Carlsson.
1728
1729         * WebCoreSupport/WebEditorClient.cpp:
1730         (WebEditorClient::checkSpellingOfString): Use StringView.
1731         (WebEditorClient::checkGrammarOfString): Ditto.
1732         * WebCoreSupport/WebEditorClient.h: Ditto.
1733
1734 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
1735
1736         Web Inspector: Add Console support to JSContext Inspection
1737         https://bugs.webkit.org/show_bug.cgi?id=127941
1738
1739         Reviewed by Geoffrey Garen.
1740
1741         * WebCoreSupport/WebChromeClient.h:
1742
1743 2014-02-06  Brent Fulgham  <bfulgham@apple.com>
1744
1745         [Win] Correct IME Regression after r141479
1746         https://bugs.webkit.org/show_bug.cgi?id=128323
1747         <rdar://problem/15952986>
1748
1749         Reviewed by Tim Horton.
1750
1751         * WebView.cpp:
1752         (WebView::updateSelectionForIME): Refactoring flipped the meaning of the test used
1753         to select the resetIME case. Corrected for behavior of new cancel method.
1754
1755 2014-02-04  Andreas Kling  <akling@apple.com>
1756
1757         Remove <iframe seamless> support.
1758         <https://webkit.org/b/128213>
1759
1760         Rubber-stamped by Antti Koivisto.
1761
1762         * WebPreferences.h:
1763         * WebView.cpp:
1764         (WebView::notifyPreferencesChanged):
1765
1766 2014-02-03  Darin Adler  <darin@apple.com>
1767
1768         Try to fix the WinCairo build.
1769
1770         * WebDownloadCurl.cpp:
1771         (WebDownload::didReceiveResponse): characters -> deprecatedCharacters.
1772
1773 2014-02-02  Darin Adler  <darin@apple.com>
1774
1775         Still more characters -> deprecatedCharacters (EWS keeps finding more)
1776         https://bugs.webkit.org/show_bug.cgi?id=128076
1777
1778         Reviewed by Andreas Kling.
1779
1780         * AccessibleTextImpl.cpp:
1781         (AccessibleText::get_text):
1782         (AccessibleText::get_textBeforeOffset):
1783         (AccessibleText::get_textAfterOffset):
1784         (AccessibleText::get_textAtOffset):
1785         (AccessibleText::get_attributes):
1786         * DOMCSSClasses.cpp:
1787         (DOMCSSStyleDeclaration::getPropertyValue):
1788         * DOMCoreClasses.cpp:
1789         (DOMNode::nodeValue):
1790         (DOMElement::getAttribute):
1791         (DOMElement::font):
1792         * DOMHTMLClasses.cpp:
1793         (DOMHTMLElement::innerText):
1794         (DOMHTMLFormElement::action):
1795         (DOMHTMLFormElement::method):
1796         (DOMHTMLInputElement::value):
1797         (DOMHTMLTextAreaElement::value):
1798         * MarshallingHelpers.cpp:
1799         (MarshallingHelpers::PathStringToFileCFURLRef):
1800         * WebDataSource.cpp:
1801         (WebDataSource::unreachableURL):
1802         * WebDownload.cpp:
1803         (WebDownload::bundlePathForTargetPath):
1804         * WebDownloadCFNet.cpp:
1805         (WebDownload::didFinish):
1806         * WebElementPropertyBag.cpp:
1807         (convertStringToVariant):
1808         * WebFrame.cpp:
1809         (WebFrame::searchForLabelsBeforeElement):
1810         (WebFrame::matchLabelsAgainstElement):
1811         * WebHistory.cpp:
1812         (WebHistory::addVisitedLinksToPageGroup):
1813         * WebKitGraphics.cpp:
1814         (CenterTruncateStringToWidth):
1815         (RightTruncateStringToWidth):
1816         * WebView.cpp:
1817         (WebView::applicationNameForUserAgent):
1818         (WebView::customUserAgent):
1819         (WebView::groupName):
1820         (WebView::selectedText):
1821         (WebView::onIMERequestReconvertString):
1822         Use deprecatedCharacters.
1823
1824 2014-01-30  Andrei Bucur  <abucur@adobe.com>
1825
1826         Remove the ACCELERATED_COMPOSITING flag
1827         https://bugs.webkit.org/show_bug.cgi?id=127833
1828
1829         Reviewed by Antti Koivisto.
1830
1831         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
1832         mandatory.
1833
1834         Another patch will be required to remove the flag support from the Win build system.
1835
1836         * FullscreenVideoController.cpp:
1837         (FullscreenVideoController::LayerClient::platformCALayerLayoutSublayersOfLayer):
1838         (FullscreenVideoController::FullscreenVideoController):
1839         (FullscreenVideoController::~FullscreenVideoController):
1840         (FullscreenVideoController::enterFullscreen):
1841         * FullscreenVideoController.h:
1842         * WebCoreSupport/WebChromeClient.cpp:
1843         (WebChromeClient::scheduleCompositingLayerFlush):
1844         * WebCoreSupport/WebChromeClient.h:
1845         (WebChromeClient::setNeedsOneShotDrawingSynchronization):
1846         * WebPreferences.cpp:
1847         (WebPreferences::acceleratedCompositingEnabled):
1848         * WebView.cpp:
1849         (WebView::WebView):
1850         (WebView::~WebView):
1851         (WebView::close):
1852         (WebView::repaint):
1853         (WebView::addToDirtyRegion):
1854         (WebView::scrollBackingStore):
1855         (WebView::sizeChanged):
1856         (WebView::updateBackingStore):
1857         (WebView::paint):
1858         (WebView::setShouldInvertColors):
1859         (WebView::WebViewWndProc):
1860         (WebView::notifyPreferencesChanged):
1861         (WebView::setAcceleratedCompositing):
1862         * WebView.h:
1863
1864 2014-01-29  Alex Christensen  <achristensen@webkit.org>
1865
1866         Prepare for accelerated compositing on WinCairo.
1867         https://bugs.webkit.org/show_bug.cgi?id=127843
1868
1869         Reviewed by Anders Carlsson.
1870
1871         * WebPreferences.cpp:
1872         Moved CACFLayerTreeHost.h inclusion to Apple-specific includes
1873         to avoid compile errors in WinCairo when using accelerated compositing.
1874
1875 2014-01-26  Anders Carlsson  <andersca@apple.com>
1876
1877         Follow-up build fix.
1878
1879         * WebHistoryItem.cpp:
1880         (WebHistoryItem::visitedWithTitle):
1881
1882 2014-01-26  Anders Carlsson  <andersca@apple.com>
1883
1884         Remove even more Windows history code.
1885
1886         * WebHistory.cpp:
1887         (WebHistory::removeItemForURLString):
1888         * WebHistoryItem.cpp:
1889         (WebHistoryItem::initFromDictionaryRepresentation):
1890         (WebHistoryItem::dictionaryRepresentation):
1891         (WebHistoryItem::getDailyVisitCounts):
1892         (WebHistoryItem::getWeeklyVisitCounts):
1893         (WebHistoryItem::recordInitialVisit):
1894         (WebHistoryItem::initWithURLString):
1895
1896 2014-01-26  Anders Carlsson  <andersca@apple.com>
1897
1898         Another follow-up build fix.
1899
1900         * WebHistory.cpp:
1901         (WebHistory::removeAllItems):
1902         (WebHistory::orderedItemsLastVisitedOnDay):
1903         * WebHistoryItem.cpp:
1904         (WebHistoryItem::initFromDictionaryRepresentation):
1905         (WebHistoryItem::dictionaryRepresentation):
1906         (WebHistoryItem::visitCount):
1907         (WebHistoryItem::setVisitCount):
1908
1909 2014-01-26  Anders Carlsson  <andersca@apple.com>
1910
1911         Remove more history gunk.
1912
1913         * WebHistory.cpp:
1914         (WebHistory::orderedLastVisitedDays):
1915         (WebHistory::addItem):
1916         (WebHistory::visitedURL):
1917         (WebHistory::removeItemForURLString):
1918         * WebHistory.h:
1919         * WebHistoryItem.cpp:
1920         (WebHistoryItem::initFromDictionaryRepresentation):
1921         (WebHistoryItem::dictionaryRepresentation):
1922         (WebHistoryItem::mergeAutoCompleteHints):
1923         (WebHistoryItem::setLastVisitedTimeInterval):
1924         (WebHistoryItem::initWithURLString):
1925         (WebHistoryItem::lastVisitedTimeInterval):
1926
1927 2014-01-26  Anders Carlsson  <andersca@apple.com>
1928
1929         Build fix.
1930
1931         * WebHistoryItem.cpp:
1932         (WebHistoryItem::initFromDictionaryRepresentation):
1933         (WebHistoryItem::dictionaryRepresentation):
1934
1935 2014-01-26  Anders Carlsson  <andersca@apple.com>
1936
1937         Move lastVisitWasHTTPNonGet out to WebHistoryItem
1938         https://bugs.webkit.org/show_bug.cgi?id=127657
1939
1940         Reviewed by Dan Bernstein.
1941
1942         Remove uses of lastVisitWasHTTPNonGet.
1943
1944         * WebHistory.cpp:
1945         (WebHistory::visitedURL):
1946         * WebHistoryItem.cpp:
1947         (WebHistoryItem::initFromDictionaryRepresentation):
1948         (WebHistoryItem::lastVisitWasHTTPNonGet):
1949         (WebHistoryItem::setLastVisitWasHTTPNonGet):
1950
1951 2014-01-25  Anders Carlsson  <andersca@apple.com>
1952
1953         Remove an unused FrameLoaderClient function
1954         https://bugs.webkit.org/show_bug.cgi?id=127628
1955
1956         Reviewed by Andreas Kling.
1957
1958         * WebCoreSupport/WebFrameLoaderClient.cpp:
1959         * WebCoreSupport/WebFrameLoaderClient.h:
1960
1961 2014-01-25  Anders Carlsson  <andersca@apple.com>
1962
1963         Modernize HashTable threading code
1964         https://bugs.webkit.org/show_bug.cgi?id=127621
1965
1966         Reviewed by Darin Adler.
1967
1968         Explicitly include headers that used to be brought in by HashTable.h
1969
1970         * WebLocalizableStrings.cpp:
1971
1972 2014-01-24  Anders Carlsson  <andersca@apple.com>
1973
1974         Remove back/forward list related functions from Page
1975         https://bugs.webkit.org/show_bug.cgi?id=127596
1976
1977         Reviewed by Andreas Kling.
1978
1979         * WebView.cpp:
1980         (WebView::keyDown):
1981         (WebView::goBack):
1982         (WebView::goForward):
1983
1984 2014-01-24  Zan Dobersek  <zdobersek@igalia.com>
1985
1986         Move HistoryItem to std::unique_ptr
1987         https://bugs.webkit.org/show_bug.cgi?id=127275
1988
1989         Reviewed by Darin Adler.
1990
1991         * WebHistoryItem.cpp: The Vector object that's passed to HistoryItem::setRedirectURLs
1992         should now be handled by std::unique_ptr and passed on through move semantics.
1993         (WebHistoryItem::initFromDictionaryRepresentation):
1994
1995 2014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
1996
1997         Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
1998         https://bugs.webkit.org/show_bug.cgi?id=127409
1999
2000         Reviewed by Geoffrey Garen.
2001
2002         * WebCoreSupport/WebInspectorClient.cpp:
2003         (WebInspectorFrontendClient::destroyInspectorView):
2004         Include InspectorDisconnectReason.
2005
2006 2014-01-23  Simon Fraser  <simon.fraser@apple.com>
2007
2008         Another Windows fix.
2009
2010         * WebFrame.cpp:
2011         (WebFrame::frameBounds):
2012
2013 2014-01-23  peavo@outlook.com  <peavo@outlook.com>
2014
2015         [WinCairo] Compile error.
2016         https://bugs.webkit.org/show_bug.cgi?id=127500
2017
2018         Reviewed by Brent Fulgham.
2019
2020         * WebCache.cpp:
2021         (WebCache::cacheFolder): CurlCacheManager::getCacheDirectory() has changed name to cacheDirectory().
2022
2023 2014-01-23  peavo@outlook.com  <peavo@outlook.com>
2024
2025         [Curl] There is no way to specify cache folder.
2026         https://bugs.webkit.org/show_bug.cgi?id=125028
2027
2028         Reviewed by Brent Fulgham.
2029
2030         Added interface methods to set and get cache folder location.
2031
2032         * Interfaces/IWebCache.idl:
2033         * WebCache.cpp:
2034         (WebCache::disabled):
2035         (WebCache::cacheFolder):
2036         (WebCache::setCacheFolder):
2037         * WebCache.h:
2038
2039 2014-01-21  peavo@outlook.com  <peavo@outlook.com>
2040
2041         [WinCairo][Curl] Download request has incorrect user agent string.
2042         https://bugs.webkit.org/show_bug.cgi?id=127110
2043
2044         Reviewed by Brent Fulgham.
2045
2046         * WebDownloadCurl.cpp:
2047         (WebDownload::init): Set user agent string in download request.
2048         * WebView.cpp:
2049         (WebView::downloadURL): Avoid early return if no ResourceHandle is provided.
2050
2051 2014-01-18  Brian Burg  <bburg@apple.com>
2052
2053         Web Inspector: Page should use std::unique_ptr for InspectorController
2054         https://bugs.webkit.org/show_bug.cgi?id=127068
2055
2056         Reviewed by Joseph Pecoraro.
2057
2058         Convert call sites to use a InspectorController reference.
2059
2060         * WebCoreSupport/WebInspectorClient.cpp:
2061         (WebInspectorClient::openInspectorFrontend):
2062         (WebInspectorFrontendClient::destroyInspectorView):
2063         (WebInspectorFrontendClient::onClose):
2064         * WebInspector.cpp:
2065         (WebInspector::show):
2066         (WebInspector::close):
2067         (WebInspector::isJavaScriptProfilingEnabled):
2068         (WebInspector::setJavaScriptProfilingEnabled):
2069         (WebInspector::evaluateInFrontend):
2070         * WebNodeHighlight.cpp:
2071         (WebNodeHighlight::update):
2072
2073 2014-01-17  Anders Carlsson  <andersca@apple.com>
2074
2075         Clean up PageCache classes
2076         https://bugs.webkit.org/show_bug.cgi?id=127202
2077
2078         Reviewed by Andreas Kling.
2079
2080         * WebCoreSupport/WebFrameLoaderClient.cpp:
2081         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
2082
2083 2014-01-17  Anders Carlsson  <andersca@apple.com>
2084
2085         Remove another unused FrameLoaderClient callback
2086         https://bugs.webkit.org/show_bug.cgi?id=127192
2087
2088         Reviewed by Dan Bernstein.
2089
2090         * WebCoreSupport/WebFrameLoaderClient.cpp:
2091         * WebCoreSupport/WebFrameLoaderClient.h:
2092
2093 2014-01-17  Anders Carlsson  <andersca@apple.com>
2094
2095         Remove didPerformFirstNavigation from all FrameLoaderClient subclasses
2096         https://bugs.webkit.org/show_bug.cgi?id=127190
2097
2098         Reviewed by Dan Bernstein.
2099
2100         * WebCoreSupport/WebFrameLoaderClient.cpp:
2101         * WebCoreSupport/WebFrameLoaderClient.h:
2102
2103 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
2104
2105         Remove workaround for compilers not supporting explicit override control
2106         https://bugs.webkit.org/show_bug.cgi?id=127111
2107
2108         Reviewed by Anders Carlsson.
2109
2110         Now all compilers support explicit override control, this workaround can be removed.
2111
2112         * AccessibleDocument.h:
2113         * FullscreenVideoController.cpp:
2114         * WebCoreSupport/WebChromeClient.h:
2115         * WebCoreSupport/WebFrameLoaderClient.h:
2116         * WebCoreSupport/WebFrameNetworkingContext.h:
2117         * WebCoreSupport/WebInspectorClient.h:
2118         * WebHistory.h:
2119
2120 2014-01-10  Anders Carlsson  <andersca@apple.com>
2121
2122         Tweak ProgressTrackerClient functions
2123         https://bugs.webkit.org/show_bug.cgi?id=126808
2124
2125         Reviewed by Sam Weinig.
2126
2127         * WebCoreSupport/WebFrameLoaderClient.cpp:
2128         (WebFrameLoaderClient::progressStarted):
2129         (WebFrameLoaderClient::progressEstimateChanged):
2130         (WebFrameLoaderClient::progressFinished):
2131         * WebCoreSupport/WebFrameLoaderClient.h:
2132
2133 2014-01-10  Anders Carlsson  <andersca@apple.com>
2134
2135         Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
2136         https://bugs.webkit.org/show_bug.cgi?id=126801
2137
2138         Reviewed by Sam Weinig.
2139
2140         * WebCoreSupport/WebFrameLoaderClient.h:
2141         * WebView.cpp:
2142         (WebView::initWithFrame):
2143
2144 2014-01-08  peavo@outlook.com  <peavo@outlook.com>
2145
2146         [WinCairo] Compile error.
2147         https://bugs.webkit.org/show_bug.cgi?id=126534
2148
2149         Reviewed by Brent Fulgham.
2150
2151         * WebKitPrefix.h: Define __STDC_LIMIT_MACROS, so INTMAX_MAX will be defined (needed by std C++ library).
2152
2153 2014-01-06  László Langó  <lango@inf.u-szeged.hu>
2154
2155         Use unsigned consistently, and check for invalid casts when calling into SharedBuffer from other code.
2156         https://bugs.webkit.org/show_bug.cgi?id=124579
2157
2158         Reviewed by Anders Carlsson.
2159
2160         * WebKitDLL.cpp:
2161         (loadResourceIntoBuffer):
2162
2163 2013-12-30  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2164
2165         Cleanup static_cast<HTMLFormElement*> by using toHTMLFormElement()
2166         https://bugs.webkit.org/show_bug.cgi?id=126309
2167
2168         Reviewed by Andreas Kling.
2169
2170         To detect bad type casts, it would be good to use toHTMLFormElement() instead of
2171         using manual type cast. Additionally FORM_ASSOCIATED_ELEMENT_TYPE_CASTS is introduced newly
2172         to do it.
2173
2174         * WebFrame.cpp:
2175         (WebFrame::elementWithName):
2176
2177 2013-12-17  Alex Christensen  <achristensen@webkit.org>
2178
2179         [WinCairo] Compile fixes for GStreamer on Windows.
2180         https://bugs.webkit.org/show_bug.cgi?id=124867
2181
2182         Reviewed by Philippe Normand.
2183
2184         * WebView.cpp:
2185         (WebView::enterFullscreenForNode):
2186         (WebView::exitFullscreen):
2187         GStreamer in WebKit does not support fullscreen, so
2188         I added #if !USE(GSTREAMER) to the fullscreen code to get it to compile.
2189
2190 2013-12-11  Joseph Pecoraro  <pecoraro@apple.com>
2191
2192         Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore
2193         https://bugs.webkit.org/show_bug.cgi?id=125324
2194
2195         Reviewed by Timothy Hatcher.
2196
2197         * WebFrame.cpp:
2198         * WebView.cpp:
2199
2200 2013-12-04  Brent Fulgham  <bfulgham@apple.com>
2201
2202         [Win] Exiting from Media Full Screen mode via 'escape' key does not work properly
2203         https://bugs.webkit.org/show_bug.cgi?id=125272
2204
2205         Reviewed by Jer Noble.
2206
2207         * WebView.cpp:
2208         (WebView::fullScreenClientWillExitFullScreen): Change to webkitCancelFullScreen method call
2209         to more closely match Media Control behavior.
2210
2211 2013-12-04  Brian J. Burg  <burg@cs.washington.edu>
2212
2213         Consolidate various frame snapshot capabilities.
2214         https://bugs.webkit.org/show_bug.cgi?id=124325
2215
2216         Reviewed by Darin Adler.
2217
2218         * DOMCoreClasses.cpp:
2219         (DOMElement::renderedImage): use createDragImageForNode.
2220
2221 2013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
2222
2223         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
2224         https://bugs.webkit.org/show_bug.cgi?id=124613
2225
2226         Reviewed by Timothy Hatcher.
2227
2228         * WebCoreSupport/WebInspectorClient.h:
2229
2230 2013-11-25  peavo@outlook.com  <peavo@outlook.com>
2231
2232         [Win] WebKit version in user agent string is incorrect.
2233         https://bugs.webkit.org/show_bug.cgi?id=124454
2234
2235         Reviewed by Brent Fulgham.
2236
2237         * WebView.cpp: Use WebKit version from WebKitVersion.h in user agent.
2238         (webKitVersionString):
2239
2240 2013-11-21  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
2241
2242         Remove ENABLE_WORKERS
2243         https://bugs.webkit.org/show_bug.cgi?id=105784
2244
2245         Reviewed by Darin Adler.
2246
2247         * WebWorkersPrivate.cpp:
2248         (WebWorkersPrivate::workerThreadCount):
2249
2250 2013-11-18  Commit Queue  <commit-queue@webkit.org>
2251
2252         Unreviewed, rolling out r159455.
2253         http://trac.webkit.org/changeset/159455
2254         https://bugs.webkit.org/show_bug.cgi?id=124568
2255
2256         broke two api tests (see bug 124564) (Requested by thorton on
2257         #webkit).
2258
2259         * DOMCoreClasses.cpp:
2260         (DOMElement::renderedImage):
2261
2262 2013-11-18  Commit Queue  <commit-queue@webkit.org>
2263
2264         Unreviewed, rolling out r159430.
2265         http://trac.webkit.org/changeset/159430
2266         https://bugs.webkit.org/show_bug.cgi?id=124548
2267
2268         WebCore can know nothing about nor use files from WebKit/
2269         (Requested by thorton on #webkit).
2270
2271         * WebView.cpp:
2272         (webKitVersionString):
2273
2274 2013-11-18  Brian J. Burg  <burg@cs.washington.edu>
2275
2276         Consolidate various frame snapshot capabilities.
2277         https://bugs.webkit.org/show_bug.cgi?id=124325
2278
2279         Reviewed by Timothy Hatcher.
2280
2281         * DOMCoreClasses.cpp:
2282         (DOMElement::renderedImage): use createDragImageForNode.
2283
2284 2013-11-18  peavo@outlook.com  <peavo@outlook.com>
2285
2286         [Win] Optimization, no need to erase background before paint.
2287         https://bugs.webkit.org/show_bug.cgi?id=124453
2288
2289         Reviewed by Brent Fulgham.
2290
2291         As the paint will blit a bitmap onto the invalid area (no alpha),
2292         there is no need to erase the background first, as this will be overwritten by the blit.
2293
2294         * WebView.cpp:
2295         (WebView::WebViewWndProc): Avoid erasing background before paint.
2296
2297 2013-11-18  peavo@outlook.com  <peavo@outlook.com>
2298
2299         [Win] WebKit version in user agent string is incorrect.
2300         https://bugs.webkit.org/show_bug.cgi?id=124454
2301
2302         Reviewed by Brent Fulgham.
2303
2304         * WebView.cpp:
2305         (webKitVersionString): Create WebKit version string from WebKitVersion.h.
2306
2307 2013-11-15  Jer Noble  <jer.noble@apple.com>
2308
2309         Unreviewed Win build fix; setCurrentTime() no longer takes an exception parameter.
2310
2311         * FullscreenVideoController.cpp:
2312         (FullscreenVideoController::setCurrentTime):
2313
2314 2013-11-12  Alex Christensen  <achristensen@webkit.org>
2315
2316         [WinCairo] Preparation for ENABLE(VIDEO).
2317         https://bugs.webkit.org/show_bug.cgi?id=57420
2318
2319         Reviewed by Martin Robinson.
2320
2321         * FullscreenVideoController.cpp:
2322         Don't compile if using GStreamer.
2323
2324 2013-11-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2325
2326         [AX] Clean up static_cast<> to cast from AccessibilityObject 
2327         https://bugs.webkit.org/show_bug.cgi?id=124032
2328
2329         Reviewed by Mario Sanchez Prada.
2330
2331         Use toAccessibilityListBox instead of using static_cast<AccessibilityListBox*>.
2332
2333         * AccessibleBase.cpp:
2334         (AccessibleBase::accSelect):
2335
2336 2013-11-05  Ryosuke Niwa  <rniwa@webkit.org>
2337
2338         Windows build fix attempt after r158704.
2339
2340         * FullscreenVideoController.cpp:
2341
2342 2013-11-01  Patrick Gansterer  <paroga@webkit.org>
2343
2344         [WIN] Reduce usage of CFSTR() in WebPreferences
2345         https://bugs.webkit.org/show_bug.cgi?id=121827
2346
2347         Reviewed by Brent Fulgham.
2348
2349         This moved the dependency on CF to a few functions only
2350         and is a first step to make it compile without CF.
2351
2352         * WebPreferences.cpp:
2353         * WebPreferences.h:
2354
2355 2013-10-31  Alex Christensen  <achristensen@webkit.org>
2356
2357         Compile fix for VS2012.
2358         https://bugs.webkit.org/show_bug.cgi?id=123599
2359
2360         Reviewed by Brent Fulgham.
2361
2362         * WebCoreSupport/WebFrameLoaderClient.cpp:
2363         (WebFrameLoaderClient::WebFramePolicyListenerPrivate::WebFramePolicyListenerPrivate):
2364         (WebFrameLoaderClient::cancelPolicyCheck):
2365         (WebFrameLoaderClient::receivedPolicyDecision):
2366         Use nullptr instead of 0 for m_policyFunction, which is a std::function.
2367
2368 2013-10-31  Patrick Gansterer  <paroga@webkit.org>
2369
2370         [WIN] Make WebHistory compile without USE(CF)
2371         https://bugs.webkit.org/show_bug.cgi?id=122010
2372
2373         Reviewed by Brent Fulgham.
2374
2375         Add an alternative code path for !USE(CF) to be able to
2376         compile WebHistory without the CoreFoundation library.
2377
2378         * COMVariantSetter.h: Add support for setting a Vector.
2379         * WebHistory.cpp:
2380         (createUserInfoFromArray):
2381         (createUserInfoFromHistoryItem):
2382         (WebHistory::removeAllItems):
2383         (WebHistory::removeItem):
2384         (WebHistory::addItem):
2385         (WebHistory::visitedURL):
2386         * WebHistory.h:
2387
2388 2013-10-30  Myles C. Maxfield  <mmaxfield@apple.com>
2389
2390         WebKit/win/WebKitGraphics.h:void WebDrawText(WebTextRenderInfo*); is never called
2391         https://bugs.webkit.org/show_bug.cgi?id=123485
2392
2393         Reviewed by Brent Fulgham.
2394
2395         Removed unused WebDrawText implementation.
2396
2397         * WebKitGraphics.cpp:
2398         * WebKitGraphics.h:
2399
2400 2013-10-30  Patrick Gansterer  <paroga@webkit.org>
2401
2402         [WIN] Add missing USE(CFNETWORK) to WebError.h
2403         https://bugs.webkit.org/show_bug.cgi?id=121834
2404
2405         Reviewed by Brent Fulgham.
2406
2407         WebError.cpp uses USE(CFNETWORK), so add it to the header too.
2408
2409         * WebError.h:
2410
2411 2013-10-30  peavo@outlook.com  <peavo@outlook.com>
2412
2413         [Curl][Win] Suggested filename of download is not url decoded.
2414         https://bugs.webkit.org/show_bug.cgi?id=123511
2415
2416         Reviewed by Brent Fulgham.
2417
2418         * WebDownloadCurl.cpp:
2419         (WebDownload::didReceiveResponse): Url decode suggested filename.
2420
2421 2013-10-28  Tim Horton  <timothy_horton@apple.com>
2422
2423         Make TileController manipulate PlatformCALayers instead of CALayers
2424         https://bugs.webkit.org/show_bug.cgi?id=123279
2425
2426         Reviewed by Simon Fraser.
2427
2428         * FullscreenVideoController.cpp:
2429         (FullscreenVideoController::LayerClient::platformCALayerPaintContents):
2430         (FullscreenVideoController::LayerClient::platformCALayerIncrementRepaintCount):
2431         Adjust for new parameters on PlatformCALayerClient callbacks.
2432
2433 2013-10-23  Alex Christensen  <achristensen@webkit.org>
2434
2435         Separated USE(CA) from USE(ACCELERATED_COMPOSITING) to prepare WinCairo for accelerated compositing.
2436         https://bugs.webkit.org/show_bug.cgi?id=123214
2437
2438         Reviewed by Brent Fulgham.
2439
2440         * WebCoreSupport/WebChromeClient.h:
2441         (WebChromeClient::delegatedScrollRequested): Added empty function.
2442         * WebPreferences.cpp:
2443         (WebPreferences::acceleratedCompositingEnabled):
2444         Return true for non-CA ports using accelerated compositing.
2445         * WebView.cpp:
2446         (WebView::~WebView):
2447         (WebView::sizeChanged):
2448         (WebView::paint):
2449         (WebView::setShouldInvertColors):
2450         (WebView::flushPendingGraphicsLayerChangesSoon):
2451         (WebView::setAcceleratedCompositing):
2452         * WebView.h:
2453         Added USE(CA) where necessary to compile WinCairo with accelerated compositing.
2454
2455 2013-10-16  Tim Horton  <timothy_horton@apple.com>
2456
2457         Attempt to fix the Windows build after http://trac.webkit.org/changeset/157547.
2458
2459         Apparently some *more* Windows code uses setFrame and I missed it.
2460
2461         * FullscreenVideoController.cpp:
2462         (FullscreenVideoController::LayerClient::platformCALayerLayoutSublayersOfLayer):
2463
2464 2013-10-16  Jochen Eisinger  <jochen@chromium.org>
2465
2466         A page should exit fullscreen mode if it opens a new popup
2467         https://bugs.webkit.org/show_bug.cgi?id=122865
2468
2469         Reviewed by Jer Noble.
2470
2471         If a fullscreen page opens a popup, the popup would be hidden and
2472         therefore invisible to the user. To avoid this, exit fullscreen mode
2473         before opening a new window.
2474
2475         * WebCoreSupport/WebChromeClient.cpp:
2476         (WebChromeClient::createWindow):
2477
2478 2013-10-15  Joseph Pecoraro  <pecoraro@apple.com>
2479
2480         Web Inspector: Remove Windows old front-end related code
2481         https://bugs.webkit.org/show_bug.cgi?id=122845
2482
2483         Reviewed by Brent Fulgham.
2484
2485         * WebCoreSupport/WebInspectorClient.cpp:
2486         (WebInspectorClient::openInspectorFrontend):
2487
2488 2013-10-14  Roger Fong  <roger_fong@apple.com>
2489
2490         Windows select element doesn't draw RTL properly.
2491         https://bugs.webkit.org/show_bug.cgi?id=122785.
2492
2493         Reviewed by Brent Fulgham.
2494
2495         * WebCoreSupport/WebChromeClient.cpp:
2496         (WebChromeClient::selectItemWritingDirectionIsNatural):
2497         (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection):
2498
2499 2013-10-14  Tim Horton  <timothy_horton@apple.com>
2500
2501         Virtualize PlatformCALayer
2502         https://bugs.webkit.org/show_bug.cgi?id=122672
2503
2504         Reviewed by Anders Carlsson.
2505
2506         * FullscreenVideoController.cpp:
2507         (FullscreenVideoController::FullscreenVideoController):
2508         Include PlatformCALayerWin.h and explicitly make PlatformCALayerWins here.
2509
2510 2013-10-12  Darin Adler  <darin@apple.com>
2511
2512         Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
2513         https://bugs.webkit.org/show_bug.cgi?id=122713
2514
2515         Reviewed by Sam Weinig.
2516
2517         * WebFrame.cpp:
2518         (WebFrame::controlsInForm): Use asHTMLElement.
2519
2520 2013-10-12  Darin Adler  <darin@apple.com>
2521
2522         Use unique_ptr instead of delete in a few places
2523         https://bugs.webkit.org/show_bug.cgi?id=122639
2524
2525         Reviewed by Anders Carlsson.
2526
2527         * WebCoreSupport/WebFrameNetworkingContext.cpp:
2528         (privateSession):
2529         (identifierBase):
2530         (WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
2531         (WebFrameNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
2532         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
2533         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
2534         (WebFrameNetworkingContext::storageSession):
2535
2536 2013-10-10  Anders Carlsson  <andersca@apple.com>
2537
2538         Fix build.
2539         
2540         * Interfaces/WebKit.idl:
2541         Oops, didn't mean to remove the uuid for WebURLResponse.
2542
2543 2013-10-10  Anders Carlsson  <andersca@apple.com>
2544
2545         Remove WebScrollBar
2546         https://bugs.webkit.org/show_bug.cgi?id=122623
2547
2548         Reviewed by Brent Fulgham.
2549
2550         WebScrollBar isn't used by anyone, remove it.
2551
2552         * ForEachCoClass.h:
2553         * Interfaces/IWebScrollBarDelegatePrivate.idl: Removed.
2554         * Interfaces/IWebScrollBarPrivate.idl: Removed.
2555         * Interfaces/WebKit.idl:
2556         * WebKitClassFactory.cpp:
2557         (WebKitClassFactory::CreateInstance):
2558         * WebScrollBar.cpp: Removed.
2559         * WebScrollBar.h: Removed.
2560
2561 2013-10-10  Beth Dakin  <bdakin@apple.com>
2562
2563         Build fix after http://trac.webkit.org/changeset/157253
2564
2565         * WebScrollBar.h:
2566
2567 2013-10-09  peavo@outlook.com  <peavo@outlook.com>
2568
2569         [Win] BeginPaint should only be called in response to WM_PAINT.
2570         https://bugs.webkit.org/show_bug.cgi?id=122549
2571
2572         Reviewed by Brent Fulgham.
2573
2574         According to the documentation, the Win32 api function BeginPaint should only be called in response to a WM_PAINT message.
2575         Currently, the WebView window procedure might call this function (via WebView::paint(0, 0)) for all types of messages.
2576         Also, there is potential for double drawing. If some message is dispatched before WM_PAINT, WebView::paint(0, 0) will be called.
2577         This call does not validate the area drawn, so later the WM_PAINT will arrive, drawing the same area.
2578         This can be fixed by calling the Win32 function UpdateWindow(), which will do a synchronous window update, and validate the area.
2579
2580         * WebView.cpp:
2581         (WebView::WebViewWndProc): Use Win32 function UpdateWindow() to draw invalid area.
2582
2583 2013-10-07  Sam Weinig  <sam@webkit.org>
2584
2585         Consolidate findString functions
2586         https://bugs.webkit.org/show_bug.cgi?id=122480
2587
2588         Reviewed by Darin Adler.
2589
2590         * WebView.cpp:
2591         (WebView::searchFor):
2592
2593 2013-10-07  Sam Weinig  <sam@webkit.org>
2594
2595         CTTE: Use references in and around DragController
2596         https://bugs.webkit.org/show_bug.cgi?id=122427
2597
2598         Reviewed by Andreas Kling.
2599
2600         * WebCoreSupport/WebDragClient.cpp:
2601         (WebDragClient::actionMaskForDrag):
2602         (WebDragClient::willPerformDragDestinationAction):
2603         (WebDragClient::willPerformDragSourceAction):
2604         (WebDragClient::startDrag):
2605         * WebCoreSupport/WebDragClient.h:
2606
2607 2013-10-04  Anders Carlsson  <andersca@apple.com>
2608
2609         FramePolicyFunction should be an std::function
2610         https://bugs.webkit.org/show_bug.cgi?id=122362
2611
2612         Reviewed by Darin Adler.
2613
2614         * WebCoreSupport/WebFrameLoaderClient.cpp:
2615         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2616         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2617         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2618         (WebFrameLoaderClient::dispatchWillSubmitForm):
2619         (WebFrameLoaderClient::receivedPolicyDecision):
2620
2621 2013-10-03  Sam Weinig  <sam@webkit.org>
2622
2623         Remove shouldRubberBandInDirection from the WKBundlePageUIClient
2624         https://bugs.webkit.org/show_bug.cgi?id=122309
2625
2626         Reviewed by Andreas Kling.
2627
2628         * WebCoreSupport/WebChromeClient.h:
2629
2630 2013-10-02  Roger Fong  <roger_fong@apple.com>
2631
2632         [Windows] Unreviewed build fix.
2633
2634         * WebScriptWorld.cpp:
2635         (WebScriptWorld::findOrCreateWorld):
2636
2637 2013-10-01  Sam Weinig  <sam@webkit.org>
2638
2639         CTTE: DOMWrapperWorlds should be passed around by reference
2640         https://bugs.webkit.org/show_bug.cgi?id=122206
2641
2642         Reviewed by Andreas Kling.
2643
2644         * WebCoreSupport/WebFrameLoaderClient.cpp:
2645         (WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
2646         * WebCoreSupport/WebFrameLoaderClient.h:
2647         * WebScriptWorld.cpp:
2648         (WebScriptWorld::standardWorld):
2649         (WebScriptWorld::findOrCreateWorld):
2650         * WebScriptWorld.h:
2651         (WebScriptWorld::world):
2652
2653 2013-10-01  Alex Christensen  <achristensen@webkit.org>
2654
2655         Implemented createWebViewWithRequest in WinLauncher.
2656         https://bugs.webkit.org/show_bug.cgi?id=122069
2657
2658         Reviewed by Brent Fulgham.
2659
2660         * WebCoreSupport/WebChromeClient.cpp:
2661         (WebChromeClient::createWindow):
2662         * WebCoreSupport/WebFrameLoaderClient.cpp:
2663         (WebFrameLoaderClient::dispatchCreatePage):
2664         Pass request url from the NavigationAction to createWebViewWithRequest.
2665
2666 2013-09-30  Andreas Kling  <akling@apple.com>
2667
2668         Try to fix the Windows build.
2669
2670         * WebFrame.cpp:
2671         (WebFrame::pauseAnimation):
2672         (WebFrame::pauseTransition):
2673
2674 2013-09-27  Roger Fong  <roger_fong@apple.com>
2675
2676         [Windows] Unreviewed build fix following r156560.
2677
2678         * WebView.h:
2679
2680 2013-09-26  Darin Adler  <darin@apple.com>
2681
2682         rename KURL to URL
2683         https://bugs.webkit.org/show_bug.cgi?id=16214
2684
2685         Reviewed by Andreas Kling.
2686
2687         * many files: Renamed, using script.
2688
2689 2013-09-27  Darin Adler  <darin@apple.com>
2690
2691         Add empty MainFrame class
2692         https://bugs.webkit.org/show_bug.cgi?id=121770
2693
2694         Reviewed by Andreas Kling.
2695
2696         * win/WebCoreSupport/WebDragClient.cpp:
2697         * win/WebCoreSupport/WebContextMenuClient.cpp:
2698         * win/WebDropSource.cpp:
2699         * win/WebFrame.cpp:
2700         * win/WebView.cpp:
2701         Include MainFrame.h instead of Frame.h as needed.
2702
2703 2013-09-25  Roger Fong  <roger_fong@apple.com>
2704
2705         [Windows] Attempting to scroll from a non-scrollable layer results the main document getting scrolled.
2706         https://bugs.webkit.org/show_bug.cgi?id=121889.
2707         <rdar://problem/15072441>
2708
2709         Reviewed by Timothy Horton.
2710
2711         * WebView.cpp:
2712         (WebView::gesture): 
2713         Call scrollByRecursively on the current RenderLayer's enclosingScrollableLayer to make sure that the method
2714         doesn't bail early and end up just scrolling the main document instead of the next scrollable layer in the RenderLayer tree.
2715
2716 2013-09-25  Patrick Gansterer  <paroga@webkit.org>
2717
2718         [WIN] Replace CF time functions with Windows API functions in WebHistory
2719         https://bugs.webkit.org/show_bug.cgi?id=121599
2720
2721         Reviewed by Brent Fulgham.
2722
2723         This reduces the dependencies on the CoreFoundation library.
2724
2725         * WebHistory.cpp:
2726         (addDayToSystemTime):
2727         (getDayBoundaries):
2728         (beginningOfDay):
2729         (dateKey):
2730         (WebHistory::orderedLastVisitedDays):
2731         * WebHistory.h:
2732
2733 2013-09-24  Brent Fulgham  <bfulgham@apple.com>
2734
2735         [Windows] Refactor RuntimeEnabledFeatures as a Singleton.
2736         https://bugs.webkit.org/show_bug.cgi?id=121883
2737
2738         Reviewed by Jer Noble.
2739
2740         * WebView.cpp:
2741         (WebView::notifyPreferencesChanged): Use singleton accessor
2742
2743 2013-09-24  Roger Fong  <roger_fong@apple.com>
2744
2745         [Windows] Overpanning occurs even when what is being panned isn't the main document.
2746         https://bugs.webkit.org/show_bug.cgi?id=121885.
2747         <rdar://problem/15072332>.
2748
2749         Reviewed by Brent Fulgham.
2750
2751         * WebView.cpp:
2752         (WebView::gestureNotify):
2753         (WebView::gesture):
2754
2755 2013-09-24  Brent Fulgham  <bfulgham@apple.com>
2756
2757         [Windows] Unreviewed crash fix after r156321.
2758
2759         Fix a few mistakes in the use of Vectors and counting that introduced test crashes.
2760
2761         * WebHistory.cpp:
2762         (WebHistory::removeAllItems): Loop termination tried to test an unsigned for negative size.
2763         (WebHistory::removeItemFromDateCaches): Vector was being created with empty entries.
2764         (WebHistory::addItemToDateCaches): Ditto.
2765
2766 2013-09-24  Patrick Gansterer  <paroga@webkit.org>
2767
2768         Make WebHistory more type safe
2769         https://bugs.webkit.org/show_bug.cgi?id=121801
2770
2771         Reviewed by Brent Fulgham.
2772
2773         Use a WTF::Vector instead of a CFMutableArray to avoid
2774         casting from void* all the time when accessing the entries.
2775         This reduces the dependencies on CoreFoundation too.
2776
2777         * WebHistory.cpp:
2778         (getDayBoundaries):
2779         (beginningOfDay):
2780         (dateKey):
2781         (WebHistory::orderedItemsLastVisitedOnDay):
2782         (WebHistory::removeItemFromDateCaches):
2783         (WebHistory::addItemToDateCaches):
2784         * WebHistory.h:
2785
2786 2013-09-23  Patrick Gansterer  <paroga@webkit.org>
2787
2788         [WIN] Implement WebMutableURLRequest::setHTTPBody()
2789         https://bugs.webkit.org/show_bug.cgi?id=91920
2790
2791         Reviewed by Brent Fulgham.
2792
2793         * WebMutableURLRequest.cpp:
2794         (WebMutableURLRequest::setHTTPBody):
2795         (WebMutableURLRequest::setHTTPBodyStream):
2796
2797 2013-09-23  Patrick Gansterer  <paroga@webkit.org>
2798
2799         use NOMINMAX instead of #define min min
2800         https://bugs.webkit.org/show_bug.cgi?id=73563
2801
2802         Reviewed by Brent Fulgham.
2803
2804         Use NOMINMAX instead of #define min/max as a cleaner
2805         way of ensuring that Windows system header files don't
2806         define min/max as macro in the first place.
2807
2808         * WebKitPrefix.h:
2809
2810 2013-09-22  Sam Weinig  <sam@webkit.org>
2811
2812         Try to fix the windows build (take 2).
2813
2814         * DOMEventsClasses.cpp:
2815         (DOMEvent::createInstance):
2816
2817 2013-09-22  Sam Weinig  <sam@webkit.org>
2818
2819         Try to fix the windows build.
2820
2821         * DOMEventsClasses.cpp:
2822         (DOMEvent::createInstance):
2823
2824 2013-09-20  Roger Fong  <roger_fong@apple.com>
2825
2826         Handle panning gestures messages properly on Windows.
2827         https://bugs.webkit.org/show_bug.cgi?id=121711.
2828
2829         Reviewed by Brent Fulgham.
2830
2831         This fixes a number of issues with panning gestures on Windows.
2832         1. Two finger panning in one direction can sometimes cause some unexpected scrolling 
2833         in the other direction when the gesture first begins (directions meaning horizontal and vertical)
2834         2. Single finger horizontal panning should only be disabled when attempting to select text.
2835         3. Scrolling via panning should be clamped, other wise we can scroll contents completely out of the scrollview.
2836         4. Horizontal overpan should work.
2837         5. Overpan should occur whenever we scroll to the extents of whichever scroll view we're currently scrolling.
2838
2839         * WebView.cpp:
2840         (WebView::gestureNotify):
2841         (WebView::gesture):
2842
2843 2013-09-20  Patrick Gansterer  <paroga@webkit.org>
2844
2845         Fix MIDL files for Visual Studio 2012
2846         https://bugs.webkit.org/show_bug.cgi?id=121552
2847
2848         Reviewed by Brent Fulgham.
2849
2850         The MIDL compiler shipped with Visual Studio 2012 does not accept forward declarations
2851         with typedefs. Use the struct keyword in the function signature to fix this problem.
2852
2853         * Interfaces/DOMPrivate.idl:
2854
2855 2013-09-20  Patrick Gansterer  <paroga@webkit.org>
2856
2857         Remove duplicated secondsPerDay variables
2858         https://bugs.webkit.org/show_bug.cgi?id=121601
2859
2860         Reviewed by Andreas Kling.
2861
2862         Use secondsPerDay from DateMath.h instead of defining it again.
2863
2864         * MarshallingHelpers.cpp:
2865
2866 2013-09-20  Csaba Osztrogonác  <ossy@webkit.org>
2867
2868         Add covariant RenderElement* Element::renderer()
2869         https://bugs.webkit.org/show_bug.cgi?id=121638
2870
2871         Unreviewed buildfix after r156144.
2872
2873         * DOMCoreClasses.cpp:
2874         (DOMElement::boundingBox):
2875         (DOMElement::font):
2876
2877 2013-09-18  Brent Fulgham  <bfulgham@apple.com>
2878
2879         [Windows] Build fix after r156063.
2880
2881         * WebHistory.h: std::unique is an algorithm; std::unique_ptr is what we want here!
2882
2883 2013-09-18  Sam Weinig  <sam@webkit.org>
2884
2885         Replace use of OwnArrayPtr<Foo> with std::unique_ptr<Foo[]> in WebKit and WebKit2
2886         https://bugs.webkit.org/show_bug.cgi?id=121568
2887
2888         Reviewed by Andreas Kling.
2889
2890         * WebHistory.cpp:
2891         (WebHistory::removeAllItems):
2892         (WebHistory::orderedLastVisitedDays):
2893         (WebHistory::addItemToDateCaches):
2894         (WebHistory::removeItemFromDateCaches):
2895         * WebHistory.h:
2896         * WebPreferences.cpp:
2897         (WebPreferences::copyWebKitPreferencesToCFPreferences):
2898
2899 2013-09-18  Patrick Gansterer  <paroga@webkit.org>
2900
2901         Make WebHistory more type safe
2902         https://bugs.webkit.org/show_bug.cgi?id=119389
2903
2904         Reviewed by Brent Fulgham.
2905
2906         Use a WTF::HashMap instead of a CFMutableDictionary to avoid
2907         casting from void* all the time when accessing the entries.
2908         This reduces the dependencies on CoreFoundation too.
2909
2910         * WebHistory.cpp:
2911         (WebHistory::WebHistory):
2912         (WebHistory::removeAllItems):
2913         (WebHistory::allItems):
2914         (WebHistory::removeItem):
2915         (WebHistory::addItem):
2916         (WebHistory::visitedURL):
2917         (WebHistory::itemForURL):
2918         (WebHistory::removeItemForURLString):
2919         (WebHistory::itemForURLString):
2920         (WebHistory::addVisitedLinksToPageGroup):
2921         * WebHistory.h:
2922
2923 2013-09-17  Brent Fulgham  <bfulgham@apple.com>
2924
2925         [Windows] Speculative build fix after r155963
2926
2927         * WebKitCOMAPI.cpp:
2928         (classFactory): Use nullptr rather than 0 for HashMap.
2929
2930 2013-09-16  Enrica Casucci  <enrica@apple.com>
2931
2932         Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
2933         https://bugs.webkit.org/show_bug.cgi?id=121464
2934
2935         Reviewed by Darin Adler.
2936
2937         * WebCoreSupport/WebEditorClient.cpp:
2938         * WebCoreSupport/WebEditorClient.h:
2939
2940 2013-09-16  Brent Fulgham  <bfulgham@apple.com>
2941
2942         [Windows] Rendering stops when mouse is moving for some types of animations.
2943         https://bugs.webkit.org/show_bug.cgi?id=121329
2944
2945         Reviewed by Anders Carlsson.
2946
2947         * WebView.cpp:
2948         (WebView::WebView): Add new display flag.
2949         (WebView::repaint): Mark view as needing a display operation.
2950         (WebView::addToDirtyRegion): Ditto
2951         (WebView::scrollBackingStore): Ditto
2952         (WebView::sizeChanged): Ditto
2953         (WebView::updateBackingStore): Ditto
2954         (WebView::performLayeredWindowUpdate): Mark the WebView as having been
2955         moved to screen.
2956         (WebView::paintIntoWindow): Ditto
2957         (WebView::WebViewWndProc): If the view needs display, and it was not done during
2958         this message loop iteration, draw the screen.
2959         * WebView.h:
2960         (WebView::needsDisplay): Added
2961
2962 2013-09-15  Patrick Gansterer  <paroga@webkit.org>
2963
2964         Remove dependency on CoreFoundation from WebIconDatabase
2965         https://bugs.webkit.org/show_bug.cgi?id=119387
2966
2967         Reviewed by Brent Fulgham.
2968
2969         * COMVariantSetter.h:
2970         (COMVariant::operator&):
2971         (COMVariant::operator->):
2972         * WebIconDatabase.cpp:
2973         (WebIconDatabase::iconDatabaseNotificationUserInfoURLKey):
2974         (postDidAddIconNotification):
2975         * WebIconDatabase.h:
2976         * WebView.cpp:
2977         (WebView::notifyDidAddIcon):
2978
2979 2013-09-11  Brent Fulgham  <bfulgham@apple.com>
2980
2981         [Windows] Avoid converting from IntSize->SIZE->IntSize
2982         https://bugs.webkit.org/show_bug.cgi?id=121180
2983
2984         Reviewed by Anders Carlsson.
2985
2986         * WebIconDatabase.cpp:
2987         (WebIconDatabase::iconForURL): Guard against null SIZE argument.
2988         This was dereferenced with checking before! Use IntSize arguments.
2989         (WebIconDatabase::defaultIconWithSize): Used passed-in IntSize.
2990         (createDIB): Take an IntSize argument.
2991         (WebIconDatabase::getOrCreateSharedBitmap): Take IntSize argument.
2992         (WebIconDatabase::getOrCreateDefaultIconBitmap): Ditto.
2993         * WebIconDatabase.h: Update for IntSize arguments.
2994         * WebView.cpp:
2995         (WebView::dispatchDidReceiveIconFromWebFrame): Pass address of
2996         IntSize directly, rather than casting to SIZE first.
2997
2998 2013-09-11  Brent Fulgham  <bfulgham@apple.com>
2999
3000         [Windows] Unreviewed build correction after r155507.
3001
3002         * WebCoreSupport/WebChromeClient.cpp: Add missing header include
3003         to define isHTMLVideoElement.
3004
3005 2013-09-11  peavo@outlook.com  <peavo@outlook.com>
3006
3007         [Win] Compile error when VIDEO is not enabled.
3008         https://bugs.webkit.org/show_bug.cgi?id=121156
3009
3010         Reviewed by Andreas Kling.
3011
3012         * WebView.cpp:
3013         (WebView::enterFullscreenForNode): Protect isHTMLVideoElement() function with ENABLE(VIDEO) guard.
3014
3015 2013-09-11  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3016
3017         Generate more HTML type checks and casting
3018         https://bugs.webkit.org/show_bug.cgi?id=121080
3019
3020         Reviewed by Andreas Kling.
3021
3022         Clean-up remained functions of HTML elements using auto-generated isFooElement(),
3023         and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
3024
3025         Besides this patch clean-up unnecessary checks which are being supported by
3026         auto-generated isFooElement().
3027
3028         * WebCoreSupport/WebChromeClient.cpp:
3029         (WebChromeClient::supportsFullscreenForNode):
3030         * WebView.cpp:
3031         (WebView::enterFullscreenForNode):
3032
3033 2013-09-10  Brent Fulgham  <bfulgham@apple.com>
3034
3035         [Windows] Create SharedGDIObject Class Template
3036         https://bugs.webkit.org/show_bug.cgi?id=121037
3037
3038         Reviewed by Anders Carlsson.
3039
3040         * WebView.cpp: Change implementations to use the new SharedGDIObject
3041         class.
3042         (WebView::addToDirtyRegion):
3043         (WebView::scrollBackingStore):
3044         (WebView::updateBackingStore):
3045         (WebView::performLayeredWindowUpdate):
3046         (WebView::paint):
3047         (WebView::backingStore):
3048         * WebView.h: Ditto.
3049
3050 2013-09-09  Brent Fulgham  <bfulgham@apple.com>
3051
3052         [Windows] Change from using OwnPtr<GDI Stuff> to new GDIObject template.
3053         https://bugs.webkit.org/show_bug.cgi?id=120778
3054
3055         Reviewed by Anders Carlsson.
3056
3057         * FullscreenVideoController.cpp:
3058         (FullscreenVideoController::createHUDWindow): Switch to GDIObject.
3059         (FullscreenVideoController::draw): Ditto.
3060         * FullscreenVideoController.h:
3061         * WebCoreSupport/EmbeddedWidget.cpp:
3062         (EmbeddedWidget::frameRectsChanged): Switch to GDIObject.
3063         * WebNodeHighlight.cpp:
3064         (WebNodeHighlight::update): Switch to GDIObject.
3065         * WebView.cpp:
3066         (WebView::scrollBackingStore): Switch to GDIObject.
3067         (WebView::updateBackingStore): Ditto.
3068         (WebView::performLayeredWindowUpdate): Ditto.
3069         (WebView::paint): Ditto.
3070         (WebView::paintIntoBackingStore): Ditto.
3071         (WebView::paintIntoWindow): Ditto.
3072         (WebView::generateSelectionImage): Ditto.
3073
3074 2013-09-05  Roger Fong  <roger_fong@apple.com>
3075
3076         [Windows] Implement text offset methods of IAccessibleText interface.
3077         https://bugs.webkit.org/show_bug.cgi?id=120820.
3078         <rdar://problem/14925242>
3079
3080         Reviewed by Brenet Fulgham.
3081
3082         * AccessibleTextImpl.cpp:
3083         (AccessibleText::get_textBeforeOffset):
3084         (AccessibleText::get_textAfterOffset):
3085         (AccessibleText::get_textAtOffset):
3086         (AccessibleText::isInRange):
3087         * AccessibleTextImpl.h:
3088
3089 2013-08-30  Andreas Kling  <akling@apple.com>
3090
3091         Windows build fix for Document& Node::document().
3092
3093         * DOMCoreClasses.cpp:
3094         (DOMNode::createInstance):
3095
3096 2013-08-28  Brent Fulgham  <bfulgham@apple.com>
3097
3098         [Windows] LayoutTests on Windows debug fails and exits early
3099         https://bugs.webkit.org/show_bug.cgi?id=120438
3100
3101         Reviewed by Tim Horton.
3102
3103         Visual Studio mishandles char* containing utf8-content. Must manually
3104         escape non-ASCII characters so the byte stream is correct for localized
3105         string lookup.
3106
3107         * WebCoreSupport/WebFrameLoaderClient.cpp:
3108         (WebFrameLoaderClient::cannotShowURLError): Replace unicode apostrophe
3109         character with utf8-byte equivalent.
3110         (WebFrameLoaderClient::cannotShowMIMETypeError): Ditto.
3111         (WebFrameLoaderClient::dispatchDidFailToStartPlugin): Ditto.
3112
3113 2013-08-28  Brent Fulgham  <bfulgham@apple.com>
3114
3115         [Windows] Provide useful error messages for WebKitErrorDomain errors
3116         https://bugs.webkit.org/show_bug.cgi?id=120428
3117
3118         Reviewed by Anders Carlsson.
3119
3120         * WebCoreSupport/WebFrameLoaderClient.cpp:
3121         (WebFrameLoaderClient::cancelledError): Provide text for this error.
3122         (WebFrameLoaderClient::blockedError): Hook up WEB_UI_STRING for this error.
3123         (WebFrameLoaderClient::cannotShowURLError): Ditto
3124         (WebFrameLoaderClient::interruptedForPolicyChangeError): Ditto
3125         (WebFrameLoaderClient::cannotShowMIMETypeError): Ditto
3126         (WebFrameLoaderClient::fileDoesNotExistError): Provide text for this error.
3127         (WebFrameLoaderClient::pluginWillHandleLoadError): Hook up WEB_UI_STRING for this error.
3128         (WebFrameLoaderClient::dispatchDidFailToStartPlugin): Ditto.
3129         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
3130         (WebFrameLoaderClient::webHistory): Remove blank line above method.
3131
3132 2013-08-27  Brent Fulgham  <bfulgham@apple.com>
3133
3134         [Windows] Loader is not properly determining supported MIME types
3135         https://bugs.webkit.org/show_bug.cgi?id=120383
3136
3137         Reviewed by Eric Carlson.
3138
3139         * WebCoreSupport/WebFrameLoaderClient.cpp:
3140         (WebFrameLoaderClient::canShowMIMEType): Modify to ask WebView if it can
3141         display the media type. Use new helper function to avoid converting a String
3142         to BSTR, only to immediatly be converted from BSTR back to String.
3143         (WebFrameLoaderClient::canShowMIMETypeAsHTML): Ditto.
3144         * WebView.cpp:
3145         (WebView::canShowMIMEType): Move logic to a new (similarly named) helper function.
3146         (WebView::canShowMIMETypeAsHTML): Ditto.
3147         * WebView.h: Add declaration for two new helper functions.
3148
3149 2013-08-26  Ryosuke Niwa  <rniwa@webkit.org>
3150
3151         Another Windows build fix after r154658.
3152
3153         * WebView.cpp:
3154         (WebView::shouldClose):
3155
3156 2013-08-26  Roger Fong  <roger_fong@apple.com>
3157
3158         Unreviewed. Add missing interface files that were left out in r154627.
3159
3160         * Interfaces/Accessible2/AccessibleEditableText.idl: Added.
3161         * Interfaces/Accessible2/AccessibleText.idl: Added.
3162         * Interfaces/Accessible2/AccessibleText2.idl: Added.
3163
3164 2013-08-26  Brent Fulgham  <bfulgham@apple.com>
3165
3166         [Windows] Let Page create the main Frame.
3167         https://bugs.webkit.org/show_bug.cgi?id=120323
3168
3169         Reviewed by Anders Carlsson.
3170
3171         * WebCoreSupport/WebFrameLoaderClient.cpp:
3172         (WebFrameLoaderClient::WebFrameLoaderClient): Remove assertion that frame
3173         is passed as construction argument.
3174         (WebFrameLoaderClient::createFrame): Call new 'createSubframeWithOwnerElement'
3175         * WebCoreSupport/WebFrameLoaderClient.h: Update constructor to
3176         handle case of no default frame argument.
3177         (WebFrameLoaderClient::setWebFrame): Added.
3178         * WebFrame.cpp:
3179         (WebFrame::createSubframeWithOwnerElement): Renamed from 'init'.
3180         (WebFrame::initWithWebFrameView): Added for new page-driven load path.
3181         * WebFrame.h: Added new method signatures.
3182         * WebView.cpp:
3183         (WebView::initWithFrame): Update to match behavior of other ports.
3184
3185 2013-08-23  Roger Fong  <roger_fong@apple.com>
3186
3187         <https://bugs.webkit.org/show_bug.cgi?id=119829> Add IAccessibleText and IAccessibleEditableText implementation.
3188
3189         Reviewed by Chris Fleizach.
3190
3191         Add IAccessibleText and IAccessibleEditableText interfaces and implementation to AppleWin port.
3192
3193         * AccessibleBase.cpp:
3194         (AccessibleBase::createInstance): Create an AccessibleText instance when necessary.
3195         (AccessibleBase::QueryService):
3196         * AccessibleBase.h:
3197         * AccessibleTextImpl.cpp: Added.
3198         (AccessibleText::AccessibleText):
3199         (AccessibleText::addSelection):
3200         (AccessibleText::get_attributes): Not Implemented
3201         (AccessibleText::get_caretOffset):
3202         (AccessibleText::get_characterExtents):
3203         (AccessibleText::get_nSelections):
3204         (AccessibleText::get_offsetAtPoint):
3205         (AccessibleText::get_selection):
3206         (AccessibleText::get_text):
3207         (AccessibleText::get_textBeforeOffset): Not Implemented
3208         (AccessibleText::get_textAfterOffset): Not Implemented
3209         (AccessibleText::get_textAtOffset): Not Implemented
3210         (AccessibleText::removeSelection):
3211         (AccessibleText::setCaretOffset):
3212         (AccessibleText::setSelection):
3213         (AccessibleText::get_nCharacters):
3214         (AccessibleText::scrollSubstringTo):
3215         (AccessibleText::scrollSubstringToPoint):
3216         (AccessibleText::get_newText): Not Implemented
3217         (AccessibleText::get_oldText): Not Implemented
3218         (AccessibleText::get_attributeRange): Not Implemented
3219         (AccessibleText::copyText):
3220         (AccessibleText::deleteText):
3221         (AccessibleText::insertText):
3222         (AccessibleText::cutText):
3223         (AccessibleText::pasteText):
3224         (AccessibleText::replaceText):
3225         (AccessibleText::setAttributes): Not Implemented
3226         (AccessibleText::QueryInterface):
3227         (AccessibleText::Release):
3228         (AccessibleText::convertSpecialOffset):
3229         (AccessibleText::initialCheck):
3230         * AccessibleTextImpl.h: Added.
3231         (AccessibleText::~AccessibleText):
3232         (AccessibleText::AddRef):
3233
3234 2013-08-24  Darin Adler  <darin@apple.com>
3235
3236         Frame::tree should return a reference instead of a pointer
3237         https://bugs.webkit.org/show_bug.cgi?id=120259
3238
3239         Reviewed by Andreas Kling.
3240
3241         * WebCoreSupport/WebFrameLoaderClient.cpp:
3242         (WebFrameLoaderClient::createFrame):
3243         * WebFrame.cpp:
3244         (WebFrame::name):
3245         (WebFrame::findFrameNamed):
3246         (WebFrame::parentFrame):
3247         (EnumChildFrames::EnumChildFrames):
3248         (EnumChildFrames::Next):
3249         (EnumChildFrames::Skip):
3250         (EnumChildFrames::Reset):
3251         (WebFrame::isDescendantOfFrame):
3252         (WebFrame::unmarkAllMisspellings):
3253         (WebFrame::unmarkAllBadGrammar):
3254         * WebView.cpp:
3255         (WebView::initWithFrame):
3256         (incrementFrame):
3257         (WebView::clearMainFrameName):
3258         Use tree(). instead of tree()->.
3259
3260 2013-08-23  Brent Fulgham  <bfulgham@apple.com>
3261
3262         [Windows] Refactor WebFrame to compose with WebFrameLoaderClient
3263         https://bugs.webkit.org/show_bug.cgi?id=120092
3264
3265         Reviewed by Anders Carlsson.
3266
3267         Revise WebFrame implementation on Windows to no longer subclass from
3268         WebFrameLoaderClient, instead using a fully-functional WebFrameLoaderClient
3269         as a helper object to perform the tasks, as is done in the other
3270         ports. This is a step towards completing
3271         https://bugs.webkit.org/show_bug.cgi?id=119964.
3272
3273         * WebCoreSupport/WebFrameLoaderClient.cpp: Add a new 'private data'
3274         object to house the policy delegate and function.
3275         (WebFrameLoaderClient::WebFramePolicyListenerPrivate::WebFramePolicyListenerPrivate):
3276         Create the new private data object.
3277         (WebFrameLoaderClient::WebFramePolicyListenerPrivate::~WebFramePolicyListenerPrivate):
3278         Destroy the new private data object.
3279         (WebFrameLoaderClient::WebFrameLoaderClient): Moved from WebFrame.cpp
3280         (WebFrameLoaderClient::frameLoaderDestroyed): Ditto
3281         (WebFrameLoaderClient::makeRepresentation): Ditto
3282         (WebFrameLoaderClient::forceLayoutForNonHTML): Ditto
3283         (WebFrameLoaderClient::setCopiesOnScroll): Ditto
3284         (WebFrameLoaderClient::detachedFromParent2): Ditto
3285         (WebFrameLoaderClient::detachedFromParent3): Ditto
3286         (WebFrameLoaderClient::convertMainResourceLoadToDownload): Ditto
3287         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache): Ditto
3288         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad): Ditto
3289         (WebFrameLoaderClient::dispatchDidFailLoad): Ditto
3290         (WebFrameLoaderClient::dispatchDecidePolicyForResponse): Ditto
3291         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Ditto
3292         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto
3293         (WebFrameLoaderClient::dispatchUnableToImplementPolicy): Ditto
3294         (WebFrameLoaderClient::dispatchWillSendSubmitEvent): Ditto
3295         (WebFrameLoaderClient::dispatchWillSubmitForm): Ditto
3296         (WebFrameLoaderClient::startDownload): Ditto
3297         (WebFrameLoaderClient::willChangeTitle): Ditto
3298         (WebFrameLoaderClient::didChangeTitle): Ditto
3299         (WebFrameLoaderClient::cancelledError): Ditto
3300         (WebFrameLoaderClient::blockedError): Ditto
3301         (WebFrameLoaderClient::cannotShowURLError): Ditto
3302         (WebFrameLoaderClient::interruptedForPolicyChangeError): Ditto
3303         (WebFrameLoaderClient::cannotShowMIMETypeError): Ditto
3304         (WebFrameLoaderClient::fileDoesNotExistError): Ditto
3305         (WebFrameLoaderClient::pluginWillHandleLoadError): Ditto
3306         (WebFrameLoaderClient::shouldFallBack): Ditto
3307         (WebFrameLoaderClient::canHandleRequest): Ditto
3308         (WebFrameLoaderClient::canShowMIMEType): Ditto
3309         (WebFrameLoaderClient::canShowMIMETypeAsHTML): Ditto
3310         (WebFrameLoaderClient::representationExistsForURLScheme): Ditto
3311         (WebFrameLoaderClient::generatedMIMETypeForURLScheme): Ditto
3312         (WebFrameLoaderClient::frameLoadCompleted): Ditto
3313         (WebFrameLoaderClient::saveViewStateToItem): Ditto
3314         (WebFrameLoaderClient::restoreViewState): Ditto
3315         (WebFrameLoaderClient::provisionalLoadStarted): Ditto
3316         (WebFrameLoaderClient::didFinishLoad): Ditto
3317         (WebFrameLoaderClient::prepareForDataSourceReplacement): Ditto
3318         (WebFrameLoaderClient::userAgent): Ditto
3319         (WebFrameLoaderClient::objectContentType): Ditto
3320         (WebFrameLoaderClient::createJavaAppletWidget): Ditto
3321         (WebFrameLoaderClient::overrideMediaType): Ditto
3322         (WebFrameLoaderClient::documentElementAvailable): Ditto
3323         (WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld): Ditto
3324         (WebFrameLoaderClient::registerForIconNotification): Ditto
3325         (WebFrameLoaderClient::didPerformFirstNavigation): Ditto
3326         (WebFrameLoaderClient::createNetworkingContext): Ditto
3327         (WebFrameLoaderClient::shouldAlwaysUsePluginDocument): Ditto
3328         (WebFrameLoaderClient::revertToProvisionalState): Ditto
3329         (WebFrameLoaderClient::setMainFrameDocumentReady): Ditto
3330         (WebFrameLoaderClient::cancelPolicyCheck): Ditto
3331         (WebFrameLoaderClient::setUpPolicyListener): Ditto
3332         (WebFrameLoaderClient::receivedPolicyDecision): Ditto
3333         * WebCoreSupport/WebFrameLoaderClient.h:
3334         (WebFrameLoaderClient::webFrame): Add accessor method
3335         * WebDataSource.cpp:
3336         (WebDataSource::representation): Loader client is now
3337         a WebFrameLoaderClient (not a WebFrame).
3338         (WebDataSource::webFrame): Ditto
3339         * WebElementPropertyBag.cpp:
3340         (WebElementPropertyBag::Read): Loader client is now
3341         a WebFrameLoaderClient (not a WebFrame)
3342         * WebFrame.cpp:
3343         (kit): Revise for WebFrameLoaderClient use.
3344         (WebFrame::WebFramePrivate::WebFramePrivate): Remove
3345         WebFramePolicyListener and FramePolicyFunction, since
3346         they are no longer needed here. They were moved to
3347         the WebFrameLoaderClient object.
3348         (WebFrame::WebFrame): No longer inheriting from
3349         WebFramePolicyListener.
3350         (WebFrame::init): Frame::create now needs to be supplied
3351         with a new WebFramePolicyListener, rather than 'this'
3352         * WebFrame.h:
3353         * WebFramePolicyListener.cpp:
3354         (WebFramePolicyListener::receivedPolicyDecision): Loader
3355         client is now a WebFramePolicyClient, not a WebFrame.
3356
3357 2013-08-22  Andreas Kling  <akling@apple.com>
3358
3359         Another Windows build fix.
3360
3361         * WebDataSource.cpp:
3362         (WebDataSource::subresourceForURL):
3363
3364 2013-08-22  Andreas Kling  <akling@apple.com>
3365
3366         Windows build juice.
3367
3368         * WebDataSource.cpp:
3369         (WebDataSource::representation):
3370         (WebDataSource::webFrame):
3371         * WebElementPropertyBag.cpp:
3372         (WebElementPropertyBag::Read):
3373         * WebFramePolicyListener.cpp:
3374         (WebFramePolicyListener::receivedPolicyDecision):
3375
3376 2013-08-21  Brent Fulgham  <bfulgham@apple.com>
3377
3378         <https://webkit.org/b/120125> [Windows] Correct Tooltip Text
3379
3380         Reviewed by Anders Carlsson.
3381
3382         * WebCoreSupport/WebChromeClient.cpp:
3383         (WebChromeClient::runOpenPanel): Make sure valid strings are passed to the File Open
3384         API call.
3385         * WebView.cpp:
3386         (WebView::setToolTip): Correct tooltip text (avoid passing address to temporary
3387         return value.)
3388
3389 2013-08-20  Brent Fulgham  <bfulgham@apple.com>
3390
3391         <https://webkit.org/b/120098> [Windows] Enable the New Web Inspector
3392
3393         Reviewed by Brian Weinstein.
3394
3395         * WebCoreSupport/WebInspectorClient.cpp:
3396         (WebInspectorClient::openInspectorFrontend): Use the new inspector
3397         if present in the WebKit distribution.
3398         (WebInspectorFrontendClient::localizedStringsURL): Use the new
3399         Web Inspector's localized strings (if present).
3400
3401 2013-08-20  Pratik Solanki  <psolanki@apple.com>
3402
3403         <https://webkit.org/b/120029> Document::markers() should return a reference
3404
3405         Reviewed by Andreas Kling.
3406
3407         Document::m_markers is never NULL so return a reference from Document::markers(). Also mark
3408         m_markers as const and initialize it in member initialization.
3409
3410         * WebFrame.cpp:
3411         (WebFrame::unmarkAllMisspellings):
3412         (WebFrame::unmarkAllBadGrammar):
3413         * WebView.cpp:
3414         (WebView::rectsForTextMatches):
3415
3416 2013-08-19  Pratik Solanki  <psolanki@apple.com>
3417
3418         <https://webkit.org/b/119918> Frame::selection() should return a reference
3419
3420         Reviewed by Darin Adler.
3421
3422         m_selection is never NULL so return a reference from Frame::selection(). Also removed some
3423         unnecessary null checks and assert diff ts exposed as a result.
3424
3425         * WebFrame.cpp:
3426         (WebFrame::currentForm):
3427         * WebView.cpp:
3428         (WebView::updateFocusedAndActiveState):
3429         (WebView::selectionRect):
3430         (WebView::centerSelectionInVisibleArea):
3431         (WebView::hasSelectedRange):
3432         (WebView::replaceSelectionWithText):
3433         (WebView::clearSelection):
3434         (WebView::prepareCandidateWindow):
3435         (WebView::onIMERequestCharPosition):
3436         (WebView::onIMERequestReconvertString):
3437         (WebView::firstRectForCharacterRangeForTesting):
3438         (WebView::selectedRangeForTesting):
3439
3440 2013-08-17  Andreas Kling  <akling@apple.com>
3441
3442         Windows build fix after r154219.
3443
3444         * WebFrame.cpp:
3445         (WebFrame::dispatchDidClearWindowObjectInWorld):
3446
3447 2013-08-17  Darin Adler  <darin@apple.com>
3448
3449         <https://webkit.org/b/119941> Make Page::dragController return a reference
3450
3451         Reviewed by Andreas Kling.
3452
3453         * WebCoreSupport/WebDragClient.cpp:
3454         (WebDragClient::startDrag):
3455         * WebView.cpp:
3456         (WebView::keyStateToDragOperation):
3457         (WebView::DragEnter):
3458         (WebView::DragOver):
3459         (WebView::DragLeave):
3460         (WebView::Drop):
3461         Updated call sites.
3462
3463 2013-08-16  Pratik Solanki  <psolanki@apple.com>
3464
3465         <https://webkit.org/b/119852> Frame::scriptController() should return a reference
3466
3467         Reviewed by Andreas Kling.
3468
3469         m_script is never NULL so we can just return a reference. Also remove some pointless null
3470         checks as a result of doing this.
3471
3472         * WebFrame.cpp:
3473         (WebFrame::globalContext):
3474         (WebFrame::globalContextForScriptWorld):
3475         (WebFrame::dispatchDidClearWindowObjectInWorld):
3476         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
3477         * WebView.cpp:
3478         (WebView::stringByEvaluatingJavaScriptFromString):
3479
3480 2013-08-16  Andreas Kling  <akling@apple.com>
3481
3482         Windows build juice.
3483
3484         * WebView.cpp:
3485         (WebView::paintIntoBackingStore):
3486
3487 2013-08-15  Brent Fulgham  <bfulgham@apple.com>
3488
3489         [Windows] Consolidate WebKit Bundle handling
3490         https://bugs.webkit.org/show_bug.cgi?id=119869
3491
3492         Reviewed by Tim Horton.
3493
3494         * WebCoreSupport/WebInspectorClient.cpp:
3495         (WebInspectorClient::openInspectorFrontend): Switch to new
3496         WebCore::webkitBundle() method.
3497         (WebInspectorFrontendClient::localizedStringsURL): Ditto.
3498
3499 2013-08-15  Anders Carlsson  <andersca@apple.com>
3500
3501         <https://webkit.org/b/119859> Frame::loader() should return a reference
3502
3503         Reviewed by Andreas Kling.
3504
3505         * WebCoreSupport/WebContextMenuClient.cpp:
3506         (WebContextMenuClient::searchWithGoogle):
3507         * WebCoreSupport/WebFrameLoaderClient.cpp:
3508         (WebFrameLoaderClient::updateGlobalHistory):
3509         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
3510         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
3511         (WebFrameLoaderClient::createFrame):
3512         (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
3513         * WebCoreSupport/WebFrameNetworkingContext.cpp:
3514         (WebFrameNetworkingContext::blockedError):
3515         (WebFrameNetworkingContext::referrer):
3516         * WebElementPropertyBag.cpp:
3517         (WebElementPropertyBag::Read):
3518         * WebFrame.cpp:
3519         (kit):
3520         (WebFrame::reloadFromOrigin):
3521         (WebFrame::loadRequest):
3522         (WebFrame::loadData):
3523         (WebFrame::dataSource):
3524         (WebFrame::provisionalDataSource):
3525         (WebFrame::stopLoading):
3526         (WebFrame::reload):
3527         (WebFrame::firstLayoutDone):
3528         (WebFrame::loadType):
3529         (WebFrame::clearOpener):
3530         (WebFrame::dispatchWillSubmitForm):
3531         (WebFrame::receivedPolicyDecision):
3532         (WebFrame::dispatchDecidePolicyForResponse):
3533         (WebFrame::dispatchDecidePolicyForNewWindowAction):
3534         (WebFrame::dispatchDecidePolicyForNavigationAction):
3535         (WebFrame::createJavaAppletWidget):
3536         * WebFramePolicyListener.cpp:
3537         (WebFramePolicyListener::receivedPolicyDecision):
3538         * WebView.cpp:
3539         (WebView::close):
3540         (WebView::canShowMIMEType):
3541         (WebView::setCustomTextEncodingName):
3542         (WebView::loadBackForwardListFromOtherView):
3543         (WebView::shouldClose):
3544
3545 2013-08-12  Andreas Kling  <akling@apple.com>
3546
3547         More Windows build juice.
3548
3549         * WebView.cpp:
3550         (WebView::notifyPreferencesChanged):
3551
3552 2013-08-09  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3553
3554         Add support for KeyboardEvent.location attribute
3555         https://bugs.webkit.org/show_bug.cgi?id=119326
3556
3557         Reviewed by Benjamin Poulain.
3558
3559         Add new location attribute to DOMKeyboardEvent.
3560
3561         * DOMEventsClasses.cpp:
3562         (DOMKeyboardEvent::location):
3563         * DOMEventsClasses.h:
3564         * Interfaces/DOMEvents.idl:
3565
3566 2013-08-07  Antti Koivisto  <antti@apple.com>
3567
3568         Try to fix Win WK1 build.
3569
3570         Not reviewed.
3571
3572         * WebFrame.cpp:
3573         (WebFrame::invalidate):
3574
3575 2013-08-07  Patrick Gansterer  <paroga@webkit.org>
3576
3577         Remove dependency on CoreFoundation from WebURLResponse
3578         https://bugs.webkit.org/show_bug.cgi?id=119390
3579
3580         Reviewed by Brent Fulgham.
3581
3582         * WebURLResponse.cpp:
3583         (localizedShortDescriptionForStatusCode):
3584         (WebURLResponse::localizedStringForStatusCode):
3585
3586 2013-08-05  Mark Rowe  <mrowe@apple.com>
3587
3588         Another Windows release build fix.
3589
3590         * WebKitLogging.cpp: Wrap the implementation file in !LOG_DISABLED #if's too.
3591
3592 2013-08-05 &nbs