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