REGRESSION(r146025): WebKit applications can't apply underline or strike through
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2013-04-15  Ryosuke Niwa  <rniwa@webkit.org>
2
3         REGRESSION(r146025): WebKit applications can't apply underline or strike through
4         https://bugs.webkit.org/show_bug.cgi?id=114662
5
6         Reviewed by Enrica Casucci.
7
8         Use -webkit- prefixes to apply underline. There should be no further compatibility issues
9         since -khtml- was used only internally to pass the information down to WebCore.
10
11         Unfortunately, we can't test this code like any other font panel bug.
12
13         In the long run, we need to add some abstraction layer around font panel to make this testable
14         or else we'll keep regressing this feature.
15
16         * WebView/WebHTMLView.mm:
17         (-[WebHTMLView _styleFromFontAttributes:]):
18         (-[WebHTMLView _styleForAttributeChange:]):
19
20 2013-04-15  Anders Carlsson  <andersca@apple.com>
21
22         plugins/get-url-beforeunload-destroys-plugin.html crashes in WebKit1
23         https://bugs.webkit.org/show_bug.cgi?id=114653
24         <rdar://problem/13659541>
25
26         Reviewed by Sam Weinig.
27
28         Protect the NetscapePluginInstanceProxy since it can otherwise go away.
29
30         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
31         (WebKit::NetscapePluginInstanceProxy::performRequest):
32
33 2013-04-14  Sam Weinig  <sam@webkit.org>
34
35         Move Mac specific snapshotting code into its own file
36         https://bugs.webkit.org/show_bug.cgi?id=114597
37
38         Reviewed by Andreas Kling.
39
40         * WebView/WebHTMLView.mm:
41         (-[WebHTMLView _selectionDraggingImage]):
42         (-[WebHTMLView selectionImageForcingBlackText:]):
43
44 2013-04-14  Andreas Kling  <akling@apple.com>
45
46         Move CSSOM classes to using MutableStylePropertySet over StylePropertySet.
47         <http://webkit.org/b/114581>
48
49         Reviewed by Anders Carlsson.
50
51         * WebCoreSupport/WebEditorClient.mm:
52         (WebEditorClient::shouldApplyStyle):
53         * WebView/WebFrame.mm:
54         (-[WebFrame _typingStyle]):
55
56 2013-04-10  Sam Weinig  <sam@webkit.org>
57
58         Make Frame's ScriptController an OwnPtr and remove the #include
59         https://bugs.webkit.org/show_bug.cgi?id=114105
60
61         Reviewed by Dean Jackson.
62
63         * Plugins/Hosted/HostedNetscapePluginStream.mm:
64         * Plugins/WebNetscapePluginStream.mm:
65         * Plugins/WebPluginContainerCheck.mm:
66         * WebCoreSupport/WebGeolocationClient.mm:
67         * WebCoreSupport/WebInspectorClient.mm:
68         * WebView/WebFrame.mm:
69
70 2013-04-13  Anders Carlsson  <andersca@apple.com>
71
72         Add form delegate method that's invoked right before sending a submit event to a form element
73         https://bugs.webkit.org/show_bug.cgi?id=114575
74
75         Reviewed by Dan Bernstein.
76
77         * MigrateHeaders.make:
78         Copy DOMHTMLFormElementInternal.h over to WebKit.
79
80         * WebCoreSupport/WebFrameLoaderClient.mm:
81         (makeFormFieldValuesDictionary):
82         New helper function that returns the values of a form in dictionary form.
83
84         (WebFrameLoaderClient::dispatchWillSendSubmitEvent):
85         Call the right delegate method.
86
87         (WebFrameLoaderClient::dispatchWillSubmitForm):
88         Use the helper function.
89
90         * WebView/WebDelegateImplementationCaching.h:
91         * WebView/WebDelegateImplementationCaching.mm:
92         (CallFormDelegate):
93         Add another overload.
94
95         * WebView/WebFormDelegate.h:
96         * WebView/WebFormDelegate.m:
97         (-[WebFormDelegate willSendSubmitEventToForm:inFrame:withValues:]):
98         Add a default implementation.
99
100 2013-04-10  Benjamin Poulain  <bpoulain@apple.com>
101
102         Mass remove all the empty directories
103
104         Rubberstamped by Ryosuke Niwa.
105
106         * ForwardingHeaders/wtf/unicode/icu: Removed.
107
108 2013-04-08  Anders Carlsson  <andersca@apple.com>
109
110         Remove unneeded headers from FrameLoader.h
111         https://bugs.webkit.org/show_bug.cgi?id=114223
112
113         Reviewed by Geoffrey Garen.
114
115         Include HistoryController.h from WebCore.
116
117         * WebCoreSupport/WebFrameLoaderClient.mm:
118         * WebView/WebView.mm:
119
120 2013-04-09  Geoffrey Garen  <ggaren@apple.com>
121
122         Removed bitrotted TimeoutChecker code
123         https://bugs.webkit.org/show_bug.cgi?id=114336
124
125         Reviewed by Alexey Proskuryakov.
126
127         This mechanism hasn't worked for a while.
128
129         MarkL is working on a new version of this feature with a distinct
130         implementation.
131
132         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
133         (WebKit::NetscapePluginInstanceProxy::evaluate):
134
135 2013-04-08  Benjamin Poulain  <benjamin@webkit.org>
136
137         Remove HTML Notification
138         https://bugs.webkit.org/show_bug.cgi?id=114231
139
140         Reviewed by Ryosuke Niwa.
141
142         * Configurations/FeatureDefines.xcconfig:
143
144 2013-04-05  Anders Carlsson  <andersca@apple.com>
145
146         Stop building Objective-C bindings for the SVG DOM
147         https://bugs.webkit.org/show_bug.cgi?id=114076
148
149         Reviewed by Geoffrey Garen.
150
151         The DOM SVG Objective-C bindings have never been exposed as API, and not building them cuts WebCore build by 10%.
152
153         * Configurations/FeatureDefines.xcconfig:
154         * MigrateHeaders.make:
155
156 2013-04-05  Timothy Hatcher  <timothy@apple.com>
157
158         Allow the Web Inspector to use WebSQL.
159
160         This fixes an exception on load in the Safari Web Inspector.
161
162         https://webkit.org/b/114040
163         rdar://problem/13581422
164
165         Reviewed by Anders Carlsson.
166
167         * WebCoreSupport/WebInspectorClient.mm:
168         (-[WebInspectorWindowController webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): Added.
169
170 2013-04-02  Timothy Hatcher  <timothy@apple.com>
171
172         Provide a user default that can be used to disable docking of the Web Inspector.
173
174         The user default is "WebKit Web Inspector Setting - inspectorAttachDisabled".
175
176         https://webkit.org/b/113779
177         rdar://problem/13446021
178
179         Reviewed by Joseph Pecoraro.
180
181         * WebCoreSupport/WebInspectorClient.h:
182         (WebInspectorClient::inspectorAttachDisabled): Added.
183         (WebInspectorClient::setInspectorAttachDisabled): Added.
184
185         * WebCoreSupport/WebInspectorClient.mm:
186         (WebInspectorClient::didResizeMainFrame):
187         (-[WebInspectorWindowController window]):
188         (-[WebInspectorWindowController showWindow:]):
189         Check inspectorAttachDisabled() in places where we attach or update the dock button.
190
191 2013-04-02  Alexey Proskuryakov  <ap@apple.com>
192
193         [Mac] Remove WKCreateNSURLConnectionDelegateProxy
194         https://bugs.webkit.org/show_bug.cgi?id=113810
195
196         Reviewed by Anders Carlsson.
197
198         * WebCoreSupport/WebSystemInterface.mm:
199         (InitWebCoreSystemInterface):
200
201 2013-04-02  Alexey Proskuryakov  <ap@apple.com>
202
203         <rdar://problem/13551119> [WK2] Crashes in NetworkProcess when canceling loads
204         https://bugs.webkit.org/show_bug.cgi?id=113803
205
206         Reviewed by Darin Adler.
207
208         * WebCoreSupport/WebFrameLoaderClient.mm:
209         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
210         Just pass nil instead of proxy.
211
212 2013-04-01  Ryosuke Niwa  <rniwa@webkit.org>
213
214         WebKit/mac shouldn't have code for Mac 10.5 and earlier
215         https://bugs.webkit.org/show_bug.cgi?id=113746
216
217         Reviewed by Darin Adler.
218
219         Deleted the code for 10.5 and removed if-defs for 10.6.
220
221         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
222         (-[WebHostedNetscapePluginView createPlugin]):
223         * Plugins/WebBaseNetscapePluginView.mm:
224         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
225         * Plugins/WebNetscapePluginView.mm:
226         (-[WebNetscapePluginView createPlugin]):
227         (-[WebNetscapePluginView getVariable:forURL:value:length:]):
228         (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]):
229         * WebCoreSupport/WebChromeClient.mm:
230         (WebChromeClient::selectItemWritingDirectionIsNatural):
231         (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection):
232         * WebCoreSupport/WebEditorClient.mm:
233         (core):
234         (WebEditorClient::checkTextOfParagraph):
235         (WebEditorClient::requestCheckingOfString):
236         * WebView/WebDynamicScrollBarsView.mm:
237         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
238         * WebView/WebFullScreenController.mm:
239         (-[WebFullScreenController _updateMenuAndDockForFullScreen]):
240         * WebView/WebHTMLView.mm:
241         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
242         (-[WebHTMLView _frameOrBoundsChanged]):
243         (+[WebHTMLView _insertablePasteboardTypes]):
244         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
245         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
246         (writingDirectionKeyBindingsEnabled):
247         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
248         (-[WebHTMLView attachRootLayer:]):
249         * WebView/WebHTMLViewInternal.h:
250         * WebView/WebPDFDocumentExtras.mm:
251         * WebView/WebPreferences.mm:
252         (+[WebPreferences initialize]):
253         * WebView/WebResourceInternal.h:
254         * WebView/WebScriptDebugDelegate.h:
255         * WebView/WebView.mm:
256         (-[WebView _commonInitializationWithFrameName:groupName:]):
257         (-[WebView _preferencesChanged:]):
258         (+[WebView initialize]):
259         (clientNeedsWebViewInitThreadWorkaround):
260         (-[WebView validateUserInterfaceItemWithoutDelegate:]):
261         (-[WebView setGrammarCheckingEnabled:]):
262         (-[WebView isAutomaticQuoteSubstitutionEnabled]):
263         (-[WebView isAutomaticLinkDetectionEnabled]):
264         (-[WebView isAutomaticDashSubstitutionEnabled]):
265         (-[WebView isAutomaticTextReplacementEnabled]):
266         (-[WebView isAutomaticSpellingCorrectionEnabled]):
267         (-[WebView _searchWithSpotlightFromMenu:]):
268         (WebInstallMemoryPressureHandler):
269         * WebView/WebViewPrivate.h:
270
271 2013-04-01  Tim Horton  <timothy_horton@apple.com>
272
273         WebCache should do the normal initialization dance
274         https://bugs.webkit.org/show_bug.cgi?id=113722
275         <rdar://problem/13424530>
276
277         Reviewed by Anders Carlsson.
278
279         In case a WebKit1 client uses WebCache before creating a WebView (or any of the other
280         initialization-ready classes), we should do the initialization work in WebCache as well.
281
282         * Misc/WebCache.mm:
283         (+[WebCache initialize]):
284
285 2013-03-26  Timothy Hatcher  <timothy@apple.com>
286
287         Add support for dock-to-right of the Web Inspector in the Mac port.
288
289         Unfortunately this requires Safari changes, so it is disabled in the nightly builds.
290
291         https://webkit.org/b/113341
292         rdar://problem/10368152
293
294         Reviewed by Joseph Pecoraro.
295
296         * Resources/Dock.pdf: Updated.
297         * WebCoreSupport/WebInspectorClient.h:
298         (WebInspectorFrontendClient):
299         * WebCoreSupport/WebInspectorClient.mm:
300         (WebInspectorFrontendClient::frontendLoaded):
301         (WebInspectorFrontendClient::attachWindow):
302         (WebInspectorFrontendClient::setAttachedWindowWidth):
303         (-[WebInspectorWindowController attachWindow:]):
304         (-[WebInspectorWindowController attach]):
305         (-[WebInspectorWindowController detach]):
306         * WebInspector/WebInspectorFrontend.mm:
307         (-[WebInspectorFrontend attach]):
308
309 2013-03-26  Tim Horton  <timothy_horton@apple.com>
310
311         Unreviewed attempted cr-mac build fix.
312
313         * WebCoreSupport/WebSystemInterface.mm:
314         (InitWebCoreSystemInterface):
315
316 2013-03-26  Hayato Ito  <hayato@chromium.org>
317
318         Allow ShadowContents in HitTests by default.
319         https://bugs.webkit.org/show_bug.cgi?id=113171
320
321         Reviewed by Dimitri Glazkov.
322
323         * WebView/WebFrame.mm:
324         (-[WebFrame elementAtPoint:]):
325         * WebView/WebHTMLView.mm:
326         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
327
328 2013-03-26  Tim Horton  <timothy_horton@apple.com>
329
330         [ca] Tell CA to clean up unused resources if a given WebProcess won't be drawing
331         https://bugs.webkit.org/show_bug.cgi?id=107539
332         <rdar://problem/13032692>
333
334         Reviewed by Simon Fraser.
335
336         Update WebSystemInterface.
337
338         * WebCoreSupport/WebSystemInterface.mm:
339         (InitWebCoreSystemInterface):
340
341 2013-03-26  Sergio Villar Senin  <svillar@igalia.com>
342
343         Implement overtype mode for editable content
344         https://bugs.webkit.org/show_bug.cgi?id=112126
345
346         Reviewed by Ryosuke Niwa.
347
348         Added the OverWrite editing command to the WebCore editing
349         commands lists.
350
351         * WebView/WebHTMLView.mm:
352         * WebView/WebView.h:
353         * WebView/WebView.mm:
354
355 2013-03-25  Kent Tamura  <tkent@chromium.org>
356
357         Rename ENABLE_INPUT_TYPE_DATETIME
358         https://bugs.webkit.org/show_bug.cgi?id=113254
359
360         Reviewed by Kentaro Hara.
361
362         Rename ENABLE_INPUT_TYPE_DATETIME to ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE.
363         Actually I'd like to remove the code, but we shouldn't remove it yet
364         because we shipped products with it on some platforms.
365
366         * Configurations/FeatureDefines.xcconfig:
367
368 2013-03-21  Kiran Muppala  <cmuppala@apple.com>
369
370         Add runtime setting for hidden page DOM timer throttling and CSS animation suspension
371         https://bugs.webkit.org/show_bug.cgi?id=112308
372
373         Reviewed by Gavin Barraclough.
374
375         Add private preference for enabling/disabling hidden page DOM timer
376         throttling and CSS animation suspension.  The preference should be
377         disabled by default to avoid compatibility issues.
378
379         * WebView/WebPreferenceKeysPrivate.h:
380         * WebView/WebPreferences.mm:
381         (+[WebPreferences initialize]):
382         (-[WebPreferences hiddenPageDOMTimerThrottlingEnabled]):
383         (-[WebPreferences setHiddenPageDOMTimerThrottlingEnabled:]):
384         (-[WebPreferences hiddenPageCSSAnimationSuspensionEnabled]):
385         (-[WebPreferences setHiddenPageCSSAnimationSuspensionEnabled:]):
386         * WebView/WebPreferencesPrivate.h:
387         * WebView/WebView.mm:
388         (-[WebView _preferencesChanged:]):
389
390 2013-03-19  Ryosuke Niwa  <rniwa@webkit.org>
391
392         Another Mac build fix attempt after r146239.
393
394         * WebCoreSupport/WebFrameNetworkingContext.h:
395         (WebFrameNetworkingContext):
396
397 2013-03-19  Ryosuke Niwa  <rniwa@webkit.org>
398
399         Mac build fix attempt after r146239.
400
401         * WebCoreSupport/WebFrameNetworkingContext.h:
402
403 2013-03-19  Sergey Ryazanov  <serya@chromium.org>
404
405         Web Inspector: split Console into two entities, a web-facing bound object and page console.
406         https://bugs.webkit.org/show_bug.cgi?id=111578
407
408         Reviewed by Vsevolod Vlasov.
409
410         Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary.
411
412         * Misc/WebCoreStatistics.mm:
413         (+[WebCoreStatistics shouldPrintExceptions]):
414         (+[WebCoreStatistics setShouldPrintExceptions:]):
415
416 2013-03-17  Adam Barth  <abarth@webkit.org>
417
418         Legacy CSS vendor prefixes should only work for Dashboard
419         https://bugs.webkit.org/show_bug.cgi?id=111890
420
421         Reviewed by Eric Seidel.
422
423         Enable legacy CSS vendor prefixes when we've been asked to turn on
424         Dashboard compatibility mode.
425
426         * WebView/WebView.mm:
427         (-[WebView _setDashboardBehavior:to:]):
428
429 2013-03-16  Pratik Solanki  <psolanki@apple.com>
430
431         Disable High DPI Canvas on iOS
432         https://bugs.webkit.org/show_bug.cgi?id=112511
433
434         Reviewed by Joseph Pecoraro.
435
436         * Configurations/FeatureDefines.xcconfig:
437
438 2013-03-15  Timothy Hatcher  <timothy@apple.com>
439
440         Disable suppressesIncrementalRendering for the Web Inspector.
441
442         This ends up causing the Inspector to show blank for a couple seconds before
443         it does its first paint. During that time the bare window chrome is showing
444         when the Inspector's background and other simple elements count be painting.
445         This causes the Inspector to look like it is loading slower than reality.
446
447         https://bugs.webkit.org/show_bug.cgi?id=112300
448         rdar://problem/13412219
449  
450         Reviewed by Geoff Garen.
451
452         * WebCoreSupport/WebInspectorClient.mm:
453         (-[WebInspectorWindowController init]): Disable suppressesIncrementalRendering.
454
455 2013-03-15  Nate Chapin  <japhet@chromium.org>
456
457         Hide MainResourceLoader from the outside world
458         https://bugs.webkit.org/show_bug.cgi?id=109971
459
460         Reviewed by Adam Barth.
461
462         * WebCoreSupport/WebFrameLoaderClient.h:
463         (WebFrameLoaderClient):
464         * WebCoreSupport/WebFrameLoaderClient.mm:
465         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
466
467 2013-03-15  Abhishek Arya  <inferno@chromium.org>
468
469         Replace static_casts with to* helper functions.
470         https://bugs.webkit.org/show_bug.cgi?id=112401
471
472         Reviewed by Stephen Chenney.
473
474         to* helper functions are preferred over static_cast calls since they
475         help to catch bad casts easily on the testing infrastructure.
476
477         * WebView/WebRenderNode.mm:
478         (copyRenderNode):
479         * WebView/WebView.mm:
480         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
481
482 2013-03-14  Manuel Rego Casasnovas  <rego@igalia.com>
483
484         Add selectTrailingWhitespaceEnabled setting to WebCore::Page
485         https://bugs.webkit.org/show_bug.cgi?id=109404
486
487         Reviewed by Tony Chang.
488
489         Use new settings for smartInsertDeleteEnabled and
490         selectTrailingWhitespaceEnabled.
491
492         * WebCoreSupport/WebEditorClient.mm:
493         (WebEditorClient::smartInsertDeleteEnabled):
494         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
495         * WebView/WebView.mm:
496         (-[WebView _commonInitializationWithFrameName:groupName:]): Initialize
497         settings from NSUserDefaults.
498         (-[WebView setSelectTrailingWhitespaceEnabled:]):
499         (-[WebView isSelectTrailingWhitespaceEnabled]):
500         (-[WebView setSmartInsertDeleteEnabled:]):
501         (-[WebView smartInsertDeleteEnabled]):
502         * WebView/WebViewData.h:
503         * WebView/WebViewData.mm:
504         (-[WebViewPrivate init]):
505
506 2013-03-14  Abhishek Arya  <inferno@chromium.org>
507
508         Replace static_casts with to* helper functions.
509         https://bugs.webkit.org/show_bug.cgi?id=112296
510
511         Reviewed by Kentaro Hara.
512
513         to* helper functions are preferred over static_cast calls since they
514         help to catch bad casts easily on the testing infrastructure.
515
516         * WebCoreSupport/WebFrameLoaderClient.mm:
517         (applyAppleDictionaryApplicationQuirkNonInlinePart):
518         * WebView/WebHTMLRepresentation.mm:
519         (searchForLabelsBeforeElement):
520
521 2013-03-14  Alice Liu  <alice.liu@apple.com>
522
523         Add to HistoryItem a way to know if its underlying CachedPage has expired.
524         https://bugs.webkit.org/show_bug.cgi?id=110652
525
526         Reviewed by Brady Eidson.
527
528         * History/WebHistoryItem.mm:
529         (-[WebHistoryItem _isInPageCache]): Added. Just calls and returns core imple's function. 
530         (-[WebHistoryItem _hasCachedPageExpired]): Same thing. 
531         * History/WebHistoryItemPrivate.h:
532         * WebView/WebPreferences.mm:
533         (-[WebPreferences _backForwardCacheExpirationInterval]): Address fixme, now that WebCore::Settings
534         has getters and setters with default value.
535         * WebView/WebView.mm:
536         (-[WebView _preferencesChanged:]): call setBackForwardCacheExpirationInterval similar to other settings.
537
538 2013-03-13  Rik Cabanier  <cabanier@adobe.com>
539
540         create runtime flags for CSS Compositing
541         https://bugs.webkit.org/show_bug.cgi?id=111818
542
543         Reviewed by Ryosuke Niwa.
544
545         Added a preference to enable CSS compositing.
546
547         * WebView/WebPreferenceKeysPrivate.h:
548         * WebView/WebPreferences.mm:
549         (+[WebPreferences initialize]):
550         (-[WebPreferences cssCompositingEnabled]):
551         (-[WebPreferences setCSSCompositingEnabled:]):
552         * WebView/WebPreferencesPrivate.h:
553         * WebView/WebView.mm:
554         (-[WebView _preferencesChanged:]):
555
556 2013-03-13  Ryosuke Niwa  <rniwa@webkit.org>
557
558         Threaded HTML Parser is missing feature define flags in all but Chromium port's build files
559         https://bugs.webkit.org/show_bug.cgi?id=112277
560
561         Reviewed by Adam Barth.
562
563         * Configurations/FeatureDefines.xcconfig:
564
565 2013-03-13  Pavel Feldman  <pfeldman@chromium.org>
566
567         Web Inspector: get rid of hiddenPanels filter
568         https://bugs.webkit.org/show_bug.cgi?id=112252
569
570         Reviewed by Vsevolod Vlasov.
571
572         * WebCoreSupport/WebInspectorClient.h:
573         (WebInspectorFrontendClient):
574         * WebCoreSupport/WebInspectorClient.mm:
575         * WebKit.order:
576
577 2013-03-12  Geoffrey Garen  <ggaren@apple.com>
578
579         Moved RunLoopTimer and SchedulePair to WTF
580         https://bugs.webkit.org/show_bug.cgi?id=112171
581
582         Reviewed by Oliver Hunt.
583
584         This will allow us to use timers in lower level primitives without
585         duplicating all the code.
586
587         * WebCoreSupport/WebFrameNetworkingContext.h:
588         (WebFrameNetworkingContext):
589
590 2013-03-12  Abhishek Arya  <inferno@chromium.org>
591
592         Replace static_casts with to* functions.
593         https://bugs.webkit.org/show_bug.cgi?id=112072
594
595         Reviewed by Philip Rogers.
596
597         to* functions are preferred over static_cast calls since they
598         help to catch bad casts easily on the testing infrastructure.
599
600         * WebView/WebView.mm:
601         (-[WebView _enterFullscreenForNode:WebCore::]):
602
603 2013-03-11  Sheriff Bot  <webkit.review.bot@gmail.com>
604
605         Unreviewed, rolling out r145462.
606         http://trac.webkit.org/changeset/145462
607         https://bugs.webkit.org/show_bug.cgi?id=112097
608
609         Compilation failure in PluginView.cpp (Requested by jamesr_ on
610         #webkit).
611
612         * WebView/WebView.mm:
613         (-[WebView _enterFullscreenForNode:WebCore::]):
614
615 2013-03-11  Abhishek Arya  <inferno@chromium.org>
616
617         Replace static_casts with to* functions.
618         https://bugs.webkit.org/show_bug.cgi?id=112072
619
620         Reviewed by Philip Rogers.
621
622         to* functions are preferred over static_cast calls since they
623         help to catch bad casts easily on the testing infrastructure.
624
625         * WebView/WebView.mm:
626         (-[WebView _enterFullscreenForNode:WebCore::]):
627
628 2013-03-11  Jochen Eisinger  <jochen@chromium.org>
629
630         Rename DefinitelyProcessingUserGesture to DefinitelyProcessingNewUserGesture
631         https://bugs.webkit.org/show_bug.cgi?id=111959
632
633         Reviewed by Alexey Proskuryakov.
634
635         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
636         (WebKit::NetscapePluginInstanceProxy::evaluate):
637         * Plugins/WebNetscapePluginView.mm:
638         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
639
640 2013-03-11  Abhishek Arya  <inferno@chromium.org>
641
642         Replace static_cast with to* helper functions.
643         https://bugs.webkit.org/show_bug.cgi?id=112045
644
645         Reviewed by Eric Seidel.
646
647         * WebView/WebRenderLayer.mm:
648         (+[WebRenderLayer nameForLayer:]):
649
650 2013-03-11  Jer Noble  <jer.noble@apple.com>
651
652         Unreviewed build fix.  Remove stray brace which crept into r145409.
653
654         * WebView/WebFullScreenController.mm:
655         (-[WebFullScreenController performClose:]):
656
657 2013-01-30  Jer Noble  <jer.noble@apple.com>
658
659         Mac: Cmd-w should close full screen window.
660         https://bugs.webkit.org/show_bug.cgi?id=108406
661
662         Reviewed by Darin Adler.
663
664         Allow the user to close the full screen window with Cmd-w by making the full screen window
665         closable, and by intercepting performClose:.
666
667         * WebView/WebFullScreenController.mm:
668         (-[WebFullScreenController init]): Create a closable full screen window.
669         (-[WebFullScreenController performClose:]): When we receive a close request in full screen mode,
670             animate out of full screen.
671
672 2013-03-07  Anders Carlsson  <andersca@apple.com>
673
674         Add didFocusTextField:inFrame to WebFormDelegate
675         https://bugs.webkit.org/show_bug.cgi?id=111804
676
677         Reviewed by Dan Bernstein.
678
679         * WebCoreSupport/WebChromeClient.mm:
680         (WebChromeClient::focusedNodeChanged):
681         * WebView/WebFormDelegate.h:
682         * WebView/WebFormDelegate.m:
683         (-[WebFormDelegate didFocusTextField:inFrame:]):
684
685 2013-03-04  Jer Noble  <jer.noble@apple.com>
686
687         Default mouse cursor behavior should be auto-hide for full screen video with custom controls
688         https://bugs.webkit.org/show_bug.cgi?id=107601
689
690         Reviewed by Beth Dakin.
691
692         Enable the CURSOR_VISIBILITY feature.
693
694         * Configurations/FeatureDefines.xcconfig:
695
696 2013-03-05  Geoffrey Garen  <ggaren@apple.com>
697
698         Removed some dead code in the page cache
699         https://bugs.webkit.org/show_bug.cgi?id=111525
700
701         Reviewed by Alexey Proskuryakov.
702
703         Page cache autorelease doesn't exist anymore, so there's no need to keep
704         around these olds hacks.
705
706         This fixes <rdar://problem/4886761> Fix bizarre WebWindowWatcher policy in WebHistoryItem.
707
708         * History/WebHistoryItem.mm:
709         (+[WebHistoryItem _releaseAllPendingPageCaches]):
710         * History/WebHistoryItemInternal.h:
711         * Misc/WebCoreStatistics.mm:
712         (+[WebCoreStatistics autoreleasedPageCount]):
713         * WebView/WebView.mm:
714         (-[WebView _commonInitializationWithFrameName:groupName:]):
715
716 2013-03-06  Dmitry Zvorygin  <zvorygin@chromium.org>
717
718         Introduce new message sources for logging.
719         https://bugs.webkit.org/show_bug.cgi?id=110968
720
721         Reviewed by Pavel Feldman.
722
723         * WebCoreSupport/WebChromeClient.mm:
724         * WebView/WebUIDelegatePrivate.h:
725
726 2013-03-05  Kent Tamura  <tkent@chromium.org>
727
728         Rename WebCore/editing/visible_units.* to VisibleUnits.*
729         https://bugs.webkit.org/show_bug.cgi?id=111426
730
731         Reviewed by Alexey Proskuryakov.
732
733         * WebView/WebFrame.mm:
734
735 2013-03-05  James Robinson  <jamesr@chromium.org>
736
737         ContainerNode::setActive should not sleep for 100ms on platforms that do not implement synchronous repaint(true) semantics
738         https://bugs.webkit.org/show_bug.cgi?id=87054
739
740         Reviewed by Darin Adler.
741
742         The Mac WebKit1 port supports immediate invalidations.
743
744         * WebCoreSupport/WebChromeClient.h:
745         (WebChromeClient):
746         * WebCoreSupport/WebChromeClient.mm:
747         (WebChromeClient::supportsImmediateInvalidation):
748
749 2013-03-05  David Kilzer  <ddkilzer@apple.com>
750
751         BUILD FIX (r144698): Only enable SPEECH_SYNTHESIS for Mac
752         <http://webkit.org/b/106742>
753
754         Fixes the following build failures:
755
756             Undefined symbols for architecture i386:
757               "__ZTVN7WebCore25PlatformSpeechSynthesizerE", referenced from:
758                   __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
759               NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
760               "__ZN7WebCore25PlatformSpeechSynthesizer19initializeVoiceListEv", referenced from:
761                   __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
762             ld: symbol(s) not found for architecture i386
763
764         * Configurations/FeatureDefines.xcconfig:
765         - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
766
767 2013-03-04  David Kilzer  <ddkilzer@apple.com>
768
769         BUILD FIX (r144662): Import JSBase.h in WebFrameLoadDelegate.h
770         <http://webkit.org/b/111269>
771
772         Fixes the following build failure:
773
774             In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11:
775             In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29:
776             Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:41:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef]
777             #if JSC_OBJC_API_ENABLED
778                 ^
779             Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:207:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef]
780             #if JSC_OBJC_API_ENABLED
781                 ^
782             2 errors generated.
783
784         * WebView/WebFrameLoadDelegate.h: Include JSBase.h.
785
786 2013-03-04  Chris Fleizach  <cfleizach@apple.com>
787
788         Support WebSpeech - Speech Synthesis
789         https://bugs.webkit.org/show_bug.cgi?id=106742
790
791         Reviewed by Simon Fraser.
792
793         Enable speech synthesis for the Mac.
794
795         * Configurations/FeatureDefines.xcconfig:
796
797 2013-03-04  Mark Hahnenberg  <mhahnenberg@apple.com>
798
799         Remove contextInternalContext from JSContextInternal.h
800         https://bugs.webkit.org/show_bug.cgi?id=111356
801
802         Reviewed by Geoffrey Garen.
803
804         We don't need it any more since we have globalContextRef in JSContext.
805
806         * WebView/WebScriptWorld.mm:
807         (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
808
809 2013-03-04  Laszlo Gombos  <l.gombos@samsung.com>
810
811         JSC_OBJC_API_ENABLED should be removed from FeatureDefines.h
812         https://bugs.webkit.org/show_bug.cgi?id=111269
813
814         Reviewed by Mark Hahnenberg.
815
816         Include JavaScriptCore/JSBase.h for the definition of JSC_OBJC_API_ENABLED.
817
818         * WebView/WebDelegateImplementationCaching.h:
819
820 2013-03-04  Kunihiko Sakamoto  <ksakamoto@chromium.org>
821
822         Add build flag for FontLoader
823         https://bugs.webkit.org/show_bug.cgi?id=111289
824
825         Reviewed by Benjamin Poulain.
826
827         Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default).
828
829         * Configurations/FeatureDefines.xcconfig:
830
831 2013-03-03  Benjamin Poulain  <benjamin@webkit.org>
832
833         [Mac] Get rid of a useless method from DOMHTMLInputElement
834         https://bugs.webkit.org/show_bug.cgi?id=111279
835
836         Reviewed by Sam Weinig.
837
838         * DOM/WebDOMOperations.mm:
839         * DOM/WebDOMOperationsPrivate.h:
840         setValueForUser: is already privately exposed by DOMHTMLInputElement,
841         no need to have it twice.
842
843 2013-03-03  Adam Barth  <abarth@webkit.org>
844
845         Unreviewed attempted build fix. Adds back some includes removed in
846         http://trac.webkit.org/changeset/144565.
847
848         * DOM/WebDOMOperations.mm:
849         * Misc/WebNSPasteboardExtras.mm:
850         * WebCoreSupport/WebFrameNetworkingContext.mm:
851         * WebView/WebRenderLayer.mm:
852         * WebView/WebRenderNode.mm:
853
854 2013-03-03  Adam Barth  <abarth@webkit.org>
855
856         Unreviewed rollout of http://trac.webkit.org/r144530
857         As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and
858         https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a
859         large number of ASSERTs in chromium-win.
860
861         * DOM/WebDOMOperations.mm:
862         * Misc/WebNSPasteboardExtras.mm:
863         * WebCoreSupport/WebFrameNetworkingContext.mm:
864         * WebView/WebRenderLayer.mm:
865         * WebView/WebRenderNode.mm:
866
867 2013-02-18  Darin Adler  <darin@apple.com>
868
869         Cut down the number of source files that depend on Clipboard.h
870         https://bugs.webkit.org/show_bug.cgi?id=110030
871
872         Reviewed by Ryosuke Niwa.
873
874         * WebView/WebPDFView.mm: Add include of Clipboard.h since we use it
875         here and the world no longer includes it everywhere.
876
877 2013-03-02  Benjamin Poulain  <bpoulain@apple.com>
878
879         Move computedStyleIncludingVisitedInfo from TestRunner to Internals
880         https://bugs.webkit.org/show_bug.cgi?id=109772
881
882         Reviewed by Andreas Kling.
883
884         * WebView/WebView.mm:
885         * WebView/WebViewPrivate.h:
886
887 2013-03-02  David Kilzer  <ddkilzer@apple.com>
888
889         BUILD FIX (r143637): Predeclare JSContext as an Objective-C class
890         <http://webkit.org/b/106059>
891
892         Fixes the following build failure:
893
894             In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11:
895             In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29:
896             Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:215:64: error: expected a type
897             - (void)webView:(WebView *)webView didCreateJavaScriptContext:(JSContext *)context forFrame:(WebFrame *)frame;
898                                                                            ^
899             1 error generated.
900
901         * WebView/WebFrameLoadDelegate.h: Add @class JSContext
902         declaration.
903
904 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
905
906         Reduce amount of rebuilding when touching networking headers
907         https://bugs.webkit.org/show_bug.cgi?id=111035
908
909         Reviewed by Eric Seidel.
910
911         Adding includes that are now necessary because WebCore headers don't have them
912         any more.
913
914         * DOM/WebDOMOperations.mm:
915         * Misc/WebNSPasteboardExtras.mm:
916         * WebCoreSupport/WebFrameNetworkingContext.mm:
917         * WebView/WebRenderLayer.mm:
918         * WebView/WebRenderNode.mm:
919
920 2013-03-01  Jason Anderssen  <janderssen@gmail.com>
921
922         Move markerTextForListItem from TestRunner to Internals
923         https://bugs.webkit.org/show_bug.cgi?id=110939
924
925         Reviewed by Benjamin Poulain.
926
927         * DOM/WebDOMOperations.mm:
928         * DOM/WebDOMOperationsPrivate.h:
929
930 2013-02-28  Sam Weinig  <sam@webkit.org>
931
932         Add SPI for marking a WebView as doing things on behalf of another process
933         https://bugs.webkit.org/show_bug.cgi?id=111125
934
935         Reviewed by Alexey Proskuryakov.
936
937         * WebCoreSupport/WebFrameNetworkingContext.h:
938         (WebFrameNetworkingContext):
939         * WebCoreSupport/WebFrameNetworkingContext.mm:
940         (WebFrameNetworkingContext::sourceApplicationAuditData):
941         * WebView/WebView.mm:
942         (-[WebView _setSourceApplicationAuditData:]):
943         (-[WebView _sourceApplicationAuditData]):
944         * WebView/WebViewData.h:
945         * WebView/WebViewData.mm:
946         (-[WebViewPrivate dealloc]):
947         * WebView/WebViewPrivate.h:
948         Add SPI for setting a source application for a WebView.
949
950 2013-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
951
952         Unreviewed, rolling out r144422 and r144424.
953         http://trac.webkit.org/changeset/144422
954         http://trac.webkit.org/changeset/144424
955         https://bugs.webkit.org/show_bug.cgi?id=111167
956
957         Caused over 20 tests to fail assertion on Chromium Win port as
958         ASSERTION FAILED: m_platformRequestUpdated (Requested by
959         toyoshim on #webkit).
960
961         * DOM/WebDOMOperations.mm:
962         * Misc/WebNSPasteboardExtras.mm:
963         * WebCoreSupport/WebFrameNetworkingContext.mm:
964         * WebView/WebRenderLayer.mm:
965         * WebView/WebRenderNode.mm:
966
967 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
968
969         Reduce amount of rebuilding when touching networking headers
970         https://bugs.webkit.org/show_bug.cgi?id=111035
971
972         Reviewed by Eric Seidel.
973
974         Adding includes that are now necessary because WebCore headers don't have them
975         any more.
976
977         * DOM/WebDOMOperations.mm:
978         * Misc/WebNSPasteboardExtras.mm:
979         * WebCoreSupport/WebFrameNetworkingContext.mm:
980         * WebView/WebRenderLayer.mm:
981         * WebView/WebRenderNode.mm:
982
983 2013-02-27  John Bauman  <jbauman@chromium.org>
984
985         Plugin in iframe may not display
986         https://bugs.webkit.org/show_bug.cgi?id=109879
987
988         Reviewed by Simon Fraser.
989
990         Ensure NetscapePluginWidget informs the plugin view of the cliprect change directly.
991
992         * Plugins/WebBaseNetscapePluginView.h:
993         * WebCoreSupport/WebFrameLoaderClient.mm:
994         (NetscapePluginWidget::clipRectChanged):
995
996 2013-02-26  Alexey Proskuryakov  <ap@apple.com>
997
998         Don't add a body to platform request until necessary
999         https://bugs.webkit.org/show_bug.cgi?id=110900
1000
1001         Reviewed by Brady Eidson.
1002
1003         WebKit1 behavior is unchanged, body is added on every conversion.
1004
1005         * WebCoreSupport/WebFrameLoaderClient.mm:
1006         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1007         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1008         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
1009         (WebFrameLoaderClient::dispatchWillSendRequest):
1010         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1011         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1012         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1013         (WebFrameLoaderClient::updateGlobalHistory):
1014         (WebFrameLoaderClient::canHandleRequest):
1015         * WebView/WebDataSource.mm:
1016         (-[WebDataSource initialRequest]):
1017         (-[WebDataSource request]):
1018         * WebView/WebFrame.mm:
1019         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
1020
1021 2013-02-27  Glenn Adams  <glenn@skynav.com>
1022
1023         Add ENABLE_CSS3_TEXT_LINE_BREAK flag.
1024         https://bugs.webkit.org/show_bug.cgi?id=110944
1025
1026         Reviewed by Dean Jackson.
1027
1028         * Configurations/FeatureDefines.xcconfig:
1029
1030 2013-02-26  Jer Noble  <jer.noble@apple.com>
1031
1032         Unreviewed build fix; use correct macro for platform name in FeatureDefines.xcconfig.
1033
1034         * Configurations/FeatureDefines.xcconfig:
1035
1036 2013-02-26  Dmitry Zvorygin  <zvorygin@chromium.org>
1037
1038         Merged Tip and Debug log levels for web console.
1039         https://bugs.webkit.org/show_bug.cgi?id=109919
1040
1041         Reviewed by Pavel Feldman.
1042
1043         In every component either TIP or DEBUG level was used for reporting,
1044         but not both. This patch is prerequisite for Web Inspector console log filtering.
1045
1046         * WebCoreSupport/WebChromeClient.mm:
1047         (stringForMessageLevel):
1048         * WebView/WebUIDelegatePrivate.h:
1049
1050
1051 2013-02-21  Jeffrey Pfau  <jpfau@apple.com>
1052
1053         Optionally partition cache to prevent using cache for tracking
1054         https://bugs.webkit.org/show_bug.cgi?id=110269
1055
1056         Reviewed by Maciej Stachowiak.
1057
1058         Update WKSI bindings and add feature defines.
1059
1060         * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
1061         * WebCoreSupport/WebSystemInterface.mm:
1062         (InitWebCoreSystemInterface):
1063
1064 2013-02-25  Jer Noble  <jer.noble@apple.com>
1065
1066         Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files.
1067         https://bugs.webkit.org/show_bug.cgi?id=110806
1068
1069         Reviewed by Alexey Proskuryakov.
1070     
1071         Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
1072
1073         * Configurations/FeatureDefines.xcconfig:
1074
1075 2013-02-25  Andreas Kling  <akling@apple.com>
1076
1077         Reduce amount of code that includes StylePropertySet.h
1078         <http://webkit.org/b/101149>
1079
1080         Reviewed by Antti Koivisto.
1081
1082         * WebCoreSupport/WebEditorClient.mm:
1083         * WebView/WebFrame.mm:
1084         * WebView/WebView.mm:
1085
1086 2013-02-24  Andreas Kling  <akling@apple.com>
1087
1088         Reduce include graph of JSDOMBinding.h
1089         <http://webkit.org/b/110709>
1090
1091         Reviewed by Antti Koivisto.
1092
1093         * WebView/WebHTMLView.mm:
1094
1095 2013-02-21  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
1096
1097         Allow to retrieve the request data from abstract TextCheckingRequest to be accessible for WK2
1098         https://bugs.webkit.org/show_bug.cgi?id=110208
1099
1100         Reviewed by Hajime Morrita.
1101
1102         * WebCoreSupport/WebEditorClient.mm:
1103         (WebEditorClient::didCheckSucceed):
1104         (WebEditorClient::requestCheckingOfString):
1105         Extract the request data as it is the member of 'TextCheckingRequest'.
1106
1107 2013-02-19  Mark Hahnenberg  <mhahnenberg@apple.com>
1108
1109         Objective-C API: Need a way to use the Objective-C JavaScript API with WebKit
1110         https://bugs.webkit.org/show_bug.cgi?id=106059
1111
1112         Reviewed by Geoffrey Garen.
1113
1114         Addition of appropriate delegate callbacks and support to the WebKit API.
1115
1116         * WebCoreSupport/WebFrameLoaderClient.mm:
1117         * WebView/WebDelegateImplementationCaching.h:
1118         (WebFrameLoadDelegateImplementationCache):
1119         * WebView/WebFrame.h:
1120         * WebView/WebFrame.mm:
1121         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1122         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
1123         (-[WebFrame _javaScriptContextForScriptWorld:]):
1124         (-[WebFrame javaScriptContext]):
1125         * WebView/WebFrameLoadDelegate.h:
1126         * WebView/WebFramePrivate.h:
1127         * WebView/WebScriptDebugDelegate.mm:
1128         (-[WebScriptCallFrame _convertValueToObjcValue:JSC::]):
1129         (-[WebScriptCallFrame exception]):
1130         (-[WebScriptCallFrame evaluateWebScript:]):
1131         * WebView/WebScriptWorld.h:
1132         * WebView/WebScriptWorld.mm:
1133         (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
1134         * WebView/WebView.mm:
1135         (-[WebView _cacheFrameLoadDelegateImplementations]):
1136         (aeDescFromJSValue):
1137         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
1138         (-[WebView _computedStyleIncludingVisitedInfo:forElement:]):
1139
1140 2013-02-20  Dirk Schulze  <krit@webkit.org>
1141
1142         Enable CANVAS_PATH flag
1143         https://bugs.webkit.org/show_bug.cgi?id=108508
1144
1145         Reviewed by Simon Fraser.
1146
1147         Enable CANVAS_PATH flag on trunk.
1148
1149         * Configurations/FeatureDefines.xcconfig:
1150
1151 2013-02-19  Tim Horton  <timothy_horton@apple.com>
1152
1153         Clarify isInWindow vs. isVisible path through to RenderLayerCompositor
1154         https://bugs.webkit.org/show_bug.cgi?id=110261
1155         <rdar://problem/13196122>
1156
1157         Reviewed by Simon Fraser.
1158
1159         * WebView/WebView.mm:
1160         (-[WebView viewWillMoveToWindow:]):
1161         (-[WebView viewDidMoveToWindow]):
1162         Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
1163
1164 2013-02-18  Anders Carlsson  <andersca@apple.com>
1165
1166         Add a DefaultHash for RefPtr<SecurityOrigin>
1167         https://bugs.webkit.org/show_bug.cgi?id=110170
1168
1169         Reviewed by Andreas Kling.
1170
1171         Remove all explicit uses of SecurityOriginHash.
1172
1173         * WebCoreSupport/WebApplicationCache.mm:
1174         (+[WebApplicationCache originsWithCache]):
1175
1176 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
1177
1178         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
1179         https://bugs.webkit.org/show_bug.cgi?id=109996
1180
1181         Reviewed by Simon Fraser.
1182
1183         * WebCoreSupport/WebSystemInterface.mm:
1184         (InitWebCoreSystemInterface):
1185
1186 2013-02-15  Sheriff Bot  <webkit.review.bot@gmail.com>
1187
1188         Unreviewed, rolling out r143088.
1189         http://trac.webkit.org/changeset/143088
1190         https://bugs.webkit.org/show_bug.cgi?id=110000
1191
1192         Breaks the build (Requested by dgorbik on #webkit).
1193
1194         * WebCoreSupport/WebSystemInterface.mm:
1195         (InitWebCoreSystemInterface):
1196
1197 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
1198
1199         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
1200         https://bugs.webkit.org/show_bug.cgi?id=109996
1201
1202         Reviewed by Simon Fraser.
1203
1204         * WebCoreSupport/WebSystemInterface.mm:
1205         (InitWebCoreSystemInterface):
1206
1207 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1208
1209         Simplify hitTestResultAtPoint and nodesFromRect APIs
1210         https://bugs.webkit.org/show_bug.cgi?id=95720
1211
1212         Reviewed by Julien Chaffraix.
1213
1214         Update calls to new API.
1215
1216         * WebCoreSupport/WebFrameLoaderClient.mm:
1217         (WebFrameLoaderClient::actionDictionary):
1218         * WebView/WebFrame.mm:
1219         (-[WebFrame elementAtPoint:]):
1220         * WebView/WebHTMLView.mm:
1221         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
1222
1223 2013-02-14  David Kilzer  <ddkilzer@apple.com>
1224
1225         [Mac] Clean up WARNING_CFLAGS
1226         <http://webkit.org/b/109747>
1227         <rdar://problem/13208373>
1228
1229         Reviewed by Mark Rowe.
1230
1231         * Configurations/Base.xcconfig: Use
1232         GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
1233         -Wshorten-64-to-32 rather than WARNING_CFLAGS.
1234
1235 2013-02-13  Zan Dobersek  <zdobersek@igalia.com>
1236
1237         The 'global isinf/isnan' compiler quirk required when using clang with libstdc++
1238         https://bugs.webkit.org/show_bug.cgi?id=109325
1239
1240         Reviewed by Anders Carlsson.
1241
1242         Prefix calls to the isinf and isnan methods with std::, declaring we want to use the
1243         two methods as they're provided by the C++ standard library being used.
1244
1245         * tests/DecimalTest.cpp:
1246         (TEST_F):
1247
1248 2013-02-12  Joseph Pecoraro  <pecoraro@apple.com>
1249
1250         [iOS] Enable PAGE_VISIBILITY_API
1251         https://bugs.webkit.org/show_bug.cgi?id=109399
1252
1253         Reviewed by David Kilzer.
1254
1255         * Configurations/FeatureDefines.xcconfig:
1256
1257 2013-02-12  David Kilzer  <ddkilzer@apple.com>
1258
1259         BUILD FIX (r142576): WK1 build fails when ENABLE(DELETION_UI) is off
1260         <https://bugs.webkit.org/show_bug.cgi?id=109534>
1261
1262         Fixes the following build failure:
1263
1264             WebEditorClient.mm:243:23: error: out-of-line definition of 'shouldShowDeleteInterface' does not match any declaration in 'WebEditorClient'
1265             bool WebEditorClient::shouldShowDeleteInterface(HTMLElement* element)
1266                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
1267
1268         * WebCoreSupport/WebEditorClient.mm:
1269         (WebEditorClient::shouldShowDeleteInterface): Protect with
1270         ENABLE(DELETION_UI) macro.
1271
1272 2013-02-11  Ryosuke Niwa  <rniwa@webkit.org>
1273
1274         Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
1275         https://bugs.webkit.org/show_bug.cgi?id=109534
1276
1277         Reviewed by Anders Carlsson.
1278
1279         * WebCoreSupport/WebEditorClient.h:
1280
1281 2013-02-11  Benjamin Poulain  <benjamin@webkit.org>
1282
1283         Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
1284         https://bugs.webkit.org/show_bug.cgi?id=109349
1285
1286         Reviewed by Sam Weinig.
1287
1288         * WebView/WebView.mm:
1289         * WebView/WebViewPrivate.h:
1290
1291 2013-02-10  Dan Bernstein  <mitz@apple.com>
1292
1293         Added *.pdf to EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
1294
1295         Rubber-stamped by Anders Carlsson.
1296
1297         * Configurations/WebKit.xcconfig:
1298
1299 2013-02-10  Jae Hyun Park  <jae.park08@gmail.com>
1300
1301         Rename ENABLE(GLIB_SUPPORT) to USE(GLIB)
1302         https://bugs.webkit.org/show_bug.cgi?id=104266
1303
1304         Reviewed by Philippe Normand.
1305
1306         Using USE(GLIB) instead of ENABLE(GLIB_SUPPORT) is more consistent with
1307         the existing macro naming conventions.
1308
1309         From Platform.h
1310         USE() - use a particular third-party library or optional OS service
1311         ENABLE() - turn on a specific feature of WebKit
1312
1313         * WebView/WebView.mm:
1314         (-[WebView _commonInitializationWithFrameName:groupName:]):
1315         (-[WebView _close]):
1316         * WebView/WebViewData.h:
1317         * WebView/WebViewInternal.h:
1318
1319 2013-02-08  Benjamin Poulain  <bpoulain@apple.com>
1320
1321         Move workerThreadCount from TestRunner to WebCore Internals
1322         https://bugs.webkit.org/show_bug.cgi?id=109239
1323
1324         Reviewed by Darin Adler.
1325
1326         Get rid of WebWorkersPrivate, which was only needed for DRT.
1327
1328         * WebKit.exp:
1329         * Workers/WebWorkersPrivate.h: Removed.
1330         * Workers/WebWorkersPrivate.mm: Removed.
1331
1332 2013-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1333
1334         Unreviewed, rolling out r142212.
1335         http://trac.webkit.org/changeset/142212
1336         https://bugs.webkit.org/show_bug.cgi?id=109255
1337
1338         Causes ASSERT(!m_installed) on launch (Requested by smfr on
1339         #webkit).
1340
1341         * WebView/WebView.mm:
1342         (-[WebView _commonInitializationWithFrameName:groupName:]):
1343         (WebInstallMemoryPressureHandler):
1344
1345 2013-02-06  Gavin Barraclough  <barraclough@apple.com>
1346
1347         PluginProcess should quit immediately if idle in response to low-memory notifications
1348         https://bugs.webkit.org/show_bug.cgi?id=109103
1349         <rdar://problem/12679827>
1350
1351         Reviewed by Darin Adler.
1352
1353         * WebView/WebView.mm:
1354         (-[WebView _commonInitializationWithFrameName:groupName:]):
1355             - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
1356         (WebInstallMemoryPressureHandler):
1357             - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
1358
1359 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
1360
1361         Move pauseAnimation/pauseTransition from TestRunner to Internals
1362         https://bugs.webkit.org/show_bug.cgi?id=109107
1363
1364         Reviewed by Anders Carlsson.
1365
1366         * WebView/WebFrame.mm:
1367         * WebView/WebFramePrivate.h:
1368
1369 2013-02-06  Mike West  <mkwst@chromium.org>
1370
1371         Add an ENABLE_NOSNIFF feature flag.
1372         https://bugs.webkit.org/show_bug.cgi?id=109029
1373
1374         Reviewed by Jochen Eisinger.
1375
1376         This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
1377         when processing script and other resource types.
1378
1379         * Configurations/FeatureDefines.xcconfig:
1380
1381 2013-02-04  Benjamin Poulain  <bpoulain@apple.com>
1382
1383         Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
1384         https://bugs.webkit.org/show_bug.cgi?id=108741
1385
1386         Reviewed by Tony Chang.
1387
1388         * WebView/WebFrame.mm:
1389         * WebView/WebFramePrivate.h:
1390
1391 2013-02-04  Enrica Casucci  <enrica@apple.com>
1392
1393         Add specific EditActions for Bold and Italic commands.
1394         https://bugs.webkit.org/show_bug.cgi?id=108842.
1395         <rdar://problem/13098252>
1396
1397         Reviewed by Ryosuke Niwa.
1398
1399         * WebCoreSupport/WebEditorClient.mm:
1400         (undoNameForEditAction):
1401
1402 2013-02-03  David Kilzer  <ddkilzer@apple.com>
1403
1404         Upstream ENABLE_PDFKIT_PLUGIN settting
1405         <http://webkit.org/b/108792>
1406
1407         Reviewed by Tim Horton.
1408
1409         * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
1410         on iOS since PDFKit is a Mac-only framework.
1411
1412 2013-02-02  David Kilzer  <ddkilzer@apple.com>
1413
1414         Upstream iOS FeatureDefines
1415         <http://webkit.org/b/108753>
1416
1417         Reviewed by Anders Carlsson.
1418
1419         * Configurations/FeatureDefines.xcconfig:
1420         - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
1421         - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
1422         - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
1423           PLATFORM_NAME variant to reduce future merge conflicts. 
1424
1425 2013-02-01  Alexis Menard  <alexis@webkit.org>
1426
1427         Enable unprefixed CSS transitions by default.
1428         https://bugs.webkit.org/show_bug.cgi?id=108216
1429
1430         Reviewed by Dean Jackson.
1431
1432         Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
1433         to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to 
1434         guard the unprefixing work for CSS Transforms and animations.
1435
1436         * Configurations/FeatureDefines.xcconfig:
1437
1438 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
1439
1440         Editor::m_compositionNode not updated on HTMLInputElement::setValue()
1441         https://bugs.webkit.org/show_bug.cgi?id=107737
1442
1443         Reviewed by Ryosuke Niwa.
1444
1445         * WebView/WebHTMLView.mm:
1446         (-[WebHTMLView _updateSelectionForInputManager]):
1447
1448 2013-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1449
1450         Unreviewed, rolling out r141479.
1451         http://trac.webkit.org/changeset/141479
1452         https://bugs.webkit.org/show_bug.cgi?id=108564
1453
1454         breaks chromium test (Requested by morrita on #webkit).
1455
1456         * WebView/WebHTMLView.mm:
1457         (-[WebHTMLView _updateSelectionForInputManager]):
1458
1459 2013-01-31  Enrica Casucci  <enrica@apple.com>
1460
1461         Mac: Editor::baseWritingDirectionForSelectionStart should return WritingDirection instead of NSWritingDirection.
1462         https://bugs.webkit.org/show_bug.cgi?id=108519.
1463
1464         Reviewed by Sam Weinig.
1465
1466         There is no need to use AppKit types here.
1467         baseWritingDirectionForSelectionStart now returns WritingDirection and
1468         WebHTMLView toggleWritingDirection has been modified accordingly.
1469
1470         * WebView/WebHTMLView.mm:
1471         (-[WebHTMLView toggleBaseWritingDirection:]):
1472
1473 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
1474
1475         Editor::m_compositionNode not updated on HTMLInputElement::setValue()
1476         https://bugs.webkit.org/show_bug.cgi?id=107737
1477
1478         Reviewed by Ryosuke Niwa.
1479
1480         * WebView/WebHTMLView.mm:
1481         (-[WebHTMLView _updateSelectionForInputManager]):
1482
1483 2013-01-31  Joseph Pecoraro  <pecoraro@apple.com>
1484
1485         Disable ENABLE_FULLSCREEN_API on iOS
1486         https://bugs.webkit.org/show_bug.cgi?id=108250
1487
1488         Reviewed by Benjamin Poulain.
1489
1490         * Configurations/FeatureDefines.xcconfig:
1491
1492 2013-01-31  Enrica Casucci  <enrica@apple.com>
1493
1494         WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
1495         https://bugs.webkit.org/show_bug.cgi?id=108396.
1496         <rdar://problem/12920461>
1497
1498         Reviewed by Alexey Proskuryakov.
1499
1500         Adds stub implementation for WebKit of the new EditorClient methods.
1501
1502         * WebCoreSupport/WebEditorClient.h:
1503         * WebCoreSupport/WebEditorClient.mm:
1504         (WebEditorClient::willWriteSelectionToPasteboard):
1505         (WebEditorClient::getClientPasteboardDataForRange):
1506
1507 2013-01-31  Brady Eidson  <beidson@apple.com>
1508
1509         Lack of a log level string should not obliterate compiled in logging channel state.
1510         https://bugs.webkit.org/show_bug.cgi?id=108502
1511
1512         Reviewed by Alexey Proskuryakov and Sam Weinig.
1513
1514         * Misc/WebKitLogging.m: If there's no log level string, leave the channel state alone.
1515
1516 2013-01-29  Sheriff Bot  <webkit.review.bot@gmail.com>
1517
1518         Unreviewed, rolling out r140983.
1519         http://trac.webkit.org/changeset/140983
1520         https://bugs.webkit.org/show_bug.cgi?id=108277
1521
1522         Unfortunately, this API has one last client (Requested by
1523         abarth on #webkit).
1524
1525         * Configurations/FeatureDefines.xcconfig:
1526
1527 2012-11-28  Jer Noble  <jer.noble@apple.com>
1528
1529         Allow clients to ask for the WebView/WKView placeholder view when in full screen mode.
1530         https://bugs.webkit.org/show_bug.cgi?id=103558
1531         <rdar://problem/12763112>
1532
1533         Reviewed by Benjamin Poulain.
1534
1535         Clients may want to behave differently when their WebView/WKView has been swapped out by a placeholder
1536         view when in full screen mode.  Add a simple accessor for the existing placeholder view to
1537         WebFullScreenController and WebView.
1538
1539         * WebView/WebFullScreenController.h:
1540         * WebView/WebFullScreenController.mm:
1541         (-[WebFullScreenController webViewPlaceholder]): Added simple accessor.
1542         * WebView/WebView.mm:
1543         (-[WebView fullScreenPlaceholderView]): Added simple accessor.
1544
1545 2013-01-28  Pratik Solanki  <psolanki@apple.com>
1546
1547         PLATFORM(IOS) should come before __MAC_OS_X_VERSION_MIN_REQUIRED
1548         https://bugs.webkit.org/show_bug.cgi?id=108101
1549
1550         Reviewed by Benjamin Poulain.
1551
1552         Since iOS does not define __MAC_OS_X_VERSION_MIN_REQUIRED, any usage of
1553         __MAC_OS_X_VERSION_MIN_REQUIRED should be after a PLATFORM(IOS) check.
1554
1555         * WebCoreSupport/WebSystemInterface.mm:
1556         (InitWebCoreSystemInterface):
1557
1558 2013-01-28  Joseph Pecoraro  <pecoraro@apple.com>
1559
1560         [Mac] Update PageVisibilityState when WebView is hidden / visible
1561         https://bugs.webkit.org/show_bug.cgi?id=107509
1562
1563         Reviewed by Sam Weinig.
1564
1565         * WebView/WebView.mm:
1566         * WebView/WebViewPrivate.h:
1567         (-[WebView _commonInitializationWithFrameName:groupName:]):
1568         Set the initial visibility of the page.
1569
1570         (-[WebView addWindowObserversForWindow:]):
1571         (-[WebView removeWindowObservers]):
1572         (-[WebView _isViewVisible]):
1573         (-[WebView _updateVisibilityState]):
1574         (-[WebView viewDidMoveToWindow]):
1575         (-[WebView _windowVisibilityChanged:]):
1576         Update visibility state in the same ways WK2 does. This involves
1577         listening for some new NSWindow delegates.
1578
1579 2013-01-28  Joseph Pecoraro  <pecoraro@apple.com>
1580
1581         Improve PageVisibility API with enums
1582         https://bugs.webkit.org/show_bug.cgi?id=107364
1583
1584         Reviewed by Sam Weinig.
1585
1586         * WebView/WebView.mm:
1587         * WebView/WebViewPrivate.h:
1588         (core):
1589         (-[WebView _setVisibilityState:isInitialState:]):
1590         Switch the private API form int to a WebPageVisibilityState enum.
1591
1592 2013-01-28  Adam Barth  <abarth@webkit.org>
1593
1594         Remove webkitNotifications.createHTMLNotification
1595         https://bugs.webkit.org/show_bug.cgi?id=107598
1596
1597         Reviewed by Benjamin Poulain.
1598
1599         * Configurations/FeatureDefines.xcconfig:
1600
1601 2013-01-25  Andy Estes  <aestes@apple.com>
1602
1603         Wrap content filtering code in an object
1604         https://bugs.webkit.org/show_bug.cgi?id=107914
1605
1606         Reviewed by Alexey Proskuryakov.
1607
1608         * WebCoreSupport/WebSystemInterface.mm:
1609         (InitWebCoreSystemInterface): Updated to reflect changes in WKSI.
1610
1611 2013-01-24  Dan Bernstein  <mitz@apple.com>
1612
1613         WebNavigationData does not distinguish between an empty title and a missing title
1614         https://bugs.webkit.org/show_bug.cgi?id=107917
1615
1616         Reviewed by Andy Estes.
1617
1618         * WebCoreSupport/WebFrameLoaderClient.mm:
1619         (nilOrNSString): Added this helper function.
1620         (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with a nil
1621         title, rather than the empty string, if the document does not have a title.
1622
1623 2013-01-24  Mark Hahnenberg  <mhahnenberg@apple.com>
1624
1625         Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h
1626         https://bugs.webkit.org/show_bug.cgi?id=107327
1627
1628         Reviewed by Filip Pizlo.
1629
1630         We're renaming these two files, so we have to replace the names everywhere.
1631
1632         * DOM/WebDOMOperations.mm:
1633         * ForwardingHeaders/runtime/JSCJSValue.h: Copied from Source/WebKit/mac/ForwardingHeaders/runtime/JSValue.h.
1634         * ForwardingHeaders/runtime/JSValue.h: Removed.
1635         * WebView/WebFrame.mm:
1636         * WebView/WebView.mm:
1637
1638 2013-01-22  Anders Carlsson  <andersca@apple.com>
1639
1640         Use a platforom strategy for local storage
1641         https://bugs.webkit.org/show_bug.cgi?id=107600
1642
1643         Reviewed by Andreas Kling.
1644
1645         Update for new storage strategy.
1646
1647         * WebCoreSupport/WebPlatformStrategies.h:
1648         (WebPlatformStrategies):
1649         * WebCoreSupport/WebPlatformStrategies.mm:
1650         (WebPlatformStrategies::createStorageStrategy):
1651
1652 2013-01-21  Kentaro Hara  <haraken@chromium.org>
1653
1654         Implement UIEvent constructor
1655         https://bugs.webkit.org/show_bug.cgi?id=107430
1656
1657         Reviewed by Adam Barth.
1658
1659         Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
1660
1661         UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
1662         which is enabled on Safari and Chromium for now.
1663
1664         * Configurations/FeatureDefines.xcconfig:
1665
1666 2013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
1667
1668         [Mac] Enable Page Visibility (PAGE_VISIBILITY_API)
1669         https://bugs.webkit.org/show_bug.cgi?id=107230
1670
1671         Reviewed by David Kilzer.
1672
1673         * Configurations/FeatureDefines.xcconfig:
1674
1675 2013-01-22  Tim Horton  <timothy_horton@apple.com>
1676
1677         PDFPlugin: Build PDFPlugin everywhere, enable at runtime
1678         https://bugs.webkit.org/show_bug.cgi?id=107117
1679
1680         Reviewed by Alexey Proskuryakov.
1681
1682         Since PDFLayerController SPI is all forward-declared, the plugin should build
1683         on all Mac platforms, and can be enabled at runtime.
1684
1685         * Configurations/FeatureDefines.xcconfig:
1686
1687 2013-01-21  Dirk Schulze  <dschulze@adobe.com>
1688
1689         Add build flag for Canvas's Path object (disabled by default)
1690         https://bugs.webkit.org/show_bug.cgi?id=107473
1691
1692         Reviewed by Dean Jackson.
1693
1694         * Configurations/FeatureDefines.xcconfig:
1695
1696 2013-01-17  Andy Estes  <aestes@apple.com>
1697
1698         Add a USE() macro for content filtering code
1699         https://bugs.webkit.org/show_bug.cgi?id=107098
1700
1701         Reviewed by Mark Rowe.
1702
1703         * WebCoreSupport/WebSystemInterface.mm:
1704         (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).
1705
1706 2013-01-19  Philip Rogers  <pdr@google.com>
1707
1708         Merge SVGStylable into SVGStyledElement
1709         https://bugs.webkit.org/show_bug.cgi?id=106877
1710
1711         SVG2 changes element inheritance so all SVGElements are stylable. As a first-step towards a
1712         cleaner class hierarchy, this patch moves SVGStylable into SVGStyledElement.
1713
1714         Reviewed by Dirk Schulze.
1715
1716         * MigrateHeaders.make:
1717
1718 2013-01-18  Seokju Kwon  <seokju.kwon@gmail.com>
1719
1720         Add explicit keyword to constructors in platform-specific InspectorClient
1721         https://bugs.webkit.org/show_bug.cgi?id=107255
1722
1723         Reviewed by Kentaro Hara.
1724
1725         Add explicit keyword to constructors that take one argument
1726         in platform-specific implementation of InspectorClient.
1727
1728         * WebCoreSupport/WebInspectorClient.h:
1729         (WebInspectorClient):
1730
1731 2013-01-15  Jer Noble  <jer.noble@apple.com>
1732
1733         Add a Setting to disable QTKit media engine.
1734         https://bugs.webkit.org/show_bug.cgi?id=106972
1735
1736         Reviewed by Eric Carlson.
1737
1738         Add WebKit API to set QTKit enabled setting from user defaults.
1739
1740         * WebView/WebPreferenceKeysPrivate.h:
1741         * WebView/WebPreferences.mm:
1742         (+[WebPreferences initialize]): Set WebCore settings based on user defaults.
1743         (-[WebPreferences setQTKitEnabled:]): Pass through to WebCore.
1744         (-[WebPreferences isQTKitEnabled]): Ditto.
1745         * WebView/WebPreferencesPrivate.h:
1746         * WebView/WebView.mm:
1747         (-[WebView _preferencesChanged:]): Synchronize WebKit/WebCore settings.
1748
1749 2013-01-15  Enrica Casucci  <enrica@apple.com>
1750
1751         Add a new set of WebKit2 APIs for text search and
1752         search results management.
1753         https://bugs.webkit.org/show_bug.cgi?id=106834.
1754         <rdar://problem/12597159>
1755
1756         Reviewed by Simon Fraser.
1757         
1758         Adding new API to perform text search in WebKit2 without using
1759         the stock UI. The new interface provides all the information
1760         necessary to write a custom UI for search.
1761
1762         Added new TextWebKitAPI test.
1763
1764         * WebView/WebHTMLView.mm:
1765         (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
1766         Modified to reflect the changes to Editor::countMatchesForText interface.
1767
1768 2013-01-10  Zan Dobersek  <zandobersek@gmail.com>
1769
1770         Remove the ENABLE_ANIMATION_API feature define occurences
1771         https://bugs.webkit.org/show_bug.cgi?id=106544
1772
1773         Reviewed by Simon Fraser.
1774
1775         The Animation API code was removed in r137243. The ENABLE_ANIMATION_API
1776         feature define handling still lingers in various build systems and configurations
1777         but is of no use, so it should be removed.
1778
1779         * Configurations/FeatureDefines.xcconfig:
1780
1781 2013-01-08  Mark Lam  <mark.lam@apple.com>
1782
1783         Removed the need for the ProposedDatabase mechanism.
1784         https://bugs.webkit.org/show_bug.cgi?id=106292.
1785
1786         Reviewed by Sam Weinig.
1787
1788         * WebCoreSupport/WebChromeClient.h:
1789         * WebCoreSupport/WebChromeClient.mm:
1790         (WebChromeClient::exceededDatabaseQuota):
1791
1792 2013-01-07  Dan Bernstein  <mitz@apple.com>
1793
1794         [mac] WebKit1 clients can’t tell when a frame has been removed from the hierarchy
1795         https://bugs.webkit.org/show_bug.cgi?id=106261
1796
1797         Reviewed by Simon Fraser.
1798
1799         Test: TestWebKitAPI/Tests/mac/WebViewDidRemoveFrameFromHierarchy.mm.
1800
1801         Added -[WebFrameLoadDelegate webView:didRemoveFrameFromHierarchy:].
1802
1803         * WebCoreSupport/WebFrameLoaderClient.mm:
1804         (WebFrameLoaderClient::detachedFromParent2): Added a call to the new frame load delegate
1805         method.
1806         * WebView/WebDelegateImplementationCaching.h:
1807         (WebFrameLoadDelegateImplementationCache): Added the new method to the cache.
1808         * WebView/WebFrameLoadDelegatePrivate.h: Declared the new delegate method.
1809         * WebView/WebView.mm:
1810         (-[WebView _cacheFrameLoadDelegateImplementations]): Added the new method to the cache.
1811
1812 2013-01-07  Mike West  <mkwst@chromium.org>
1813
1814         Make the IFRAME_SEAMLESS flag runtime-enabled.
1815         https://bugs.webkit.org/show_bug.cgi?id=106213
1816
1817         Reviewed by Ojan Vafai.
1818
1819         * WebView/WebPreferenceKeysPrivate.h:
1820         * WebView/WebPreferences.mm:
1821         (-[WebPreferences seamlessIFramesEnabled]):
1822         (-[WebPreferences setSeamlessIFramesEnabled:]):
1823         * WebView/WebPreferencesPrivate.h:
1824         * WebView/WebView.mm:
1825         (-[WebView _preferencesChanged:]):
1826             Add a seamless IFrame preference to WebPreferences, and use it to
1827             toggle the runtime state of the feature as appropriate.
1828
1829 2013-01-04  Adam Klein  <adamk@chromium.org>
1830
1831         Remove ENABLE_MUTATION_OBSERVERS #define
1832         https://bugs.webkit.org/show_bug.cgi?id=105459
1833
1834         Reviewed by Ryosuke Niwa.
1835
1836         * Configurations/FeatureDefines.xcconfig:
1837
1838 2013-01-01  Dan Bernstein  <mitz@apple.com>
1839
1840         <rdar://problem/12942239> Update copyright strings
1841
1842         Reviewed by Sam Weinig.
1843
1844         * Info.plist:
1845
1846 2012-12-29  Adam Roben  <aroben@webkit.org>
1847
1848         Web Inspector: Mac WK1 Inspector can't save/load timeline data
1849         https://bugs.webkit.org/show_bug.cgi?id=105547
1850
1851         Reviewed by Pavel Feldman.
1852
1853         * WebCoreSupport/WebInspectorClient.h: Declared new overrides and
1854         member variables necessary for save support.
1855
1856         * WebCoreSupport/WebInspectorClient.mm:
1857         (WebInspectorFrontendClient::save):
1858         (WebInspectorFrontendClient::append):
1859         Implemented these to make saving timeline data work. (It seems to me
1860         the InspectorFrontendClient API could be cleaned up a bit. I had to
1861         look at Chromium source code to determine that I needed to call back
1862         into the InspectorFrontendAPI JS object after saving/appending, and
1863         that I needed to keep a map of passed URLs -> chosen URLs.)
1864
1865         (-[WebInspectorWindowController window:willPositionSheet:usingRect:]):
1866         Tweaked the position of the sheet so that open/save sheets look a
1867         little bette.r
1868
1869         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
1870         Implemented to make loading timeline data work.
1871
1872 2012-12-28  Mark Rowe  <mrowe@apple.com>
1873
1874         Move logic for extracting the OS X marketing version in to WebCore
1875         <http://webkit.org/b/105841> / <rdar://problem/10736041>
1876
1877         Reviewed by Dan Bernstein.
1878
1879         * WebCoreSupport/WebSystemInterface.mm:
1880         (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol.
1881         * WebView/WebView.mm:
1882         (systemMarketingVersionForUserAgentString): Call the WebCore function instead of the WKSI function.
1883         (+[WebView _standardUserAgentWithApplicationName:]): Retain the result now that our helper doesn't
1884         do that for us.
1885
1886 2012-12-27  Sam Weinig  <sam@webkit.org>
1887
1888         Attempt to fix the tests.
1889
1890         * WebView/WebPreferences.mm:
1891         (+[WebPreferences initialize]):
1892
1893 2012-12-23  Alexey Proskuryakov  <ap@apple.com>
1894
1895         <rdar://problem/12808377> Network process should respect cookie accept policy
1896         https://bugs.webkit.org/show_bug.cgi?id=105684
1897
1898         Reviewed by Sam Weinig.
1899
1900         * WebCoreSupport/WebPlatformStrategies.h:
1901         * WebCoreSupport/WebPlatformStrategies.mm:
1902         CookiesStrategy no longer has notifyCookiesChanged().
1903
1904 2012-12-22  Alexey Proskuryakov  <ap@apple.com>
1905
1906         Add a separate class for networking related storage
1907         https://bugs.webkit.org/show_bug.cgi?id=105676
1908
1909         Reviewed by Sam Weinig.
1910
1911         * WebCoreSupport/WebFrameLoaderClient.mm:
1912         Updated for ResourceHandle include changes.
1913
1914         * WebCoreSupport/WebFrameNetworkingContext.h:
1915         * WebCoreSupport/WebFrameNetworkingContext.mm:
1916         This class is now simpler, with more session tracking being in WebCore now.
1917
1918         * WebCoreSupport/WebPlatformStrategies.h:
1919         * WebCoreSupport/WebPlatformStrategies.mm:
1920         (WebPlatformStrategies::cookiesForDOM):
1921         (WebPlatformStrategies::setCookiesFromDOM):
1922         (WebPlatformStrategies::cookiesEnabled):
1923         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
1924         (WebPlatformStrategies::getRawCookies):
1925         (WebPlatformStrategies::deleteCookie):
1926         We no longer need a function for default cookie storage! Other cookie functions
1927         now take a session.
1928
1929         * WebView/WebPreferences.mm:
1930         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Initialize WCSI before
1931         calling a WebCore that uses it.
1932         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Use
1933         NetworkStorageSession for session tracking.
1934
1935         * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated for networking
1936         context now returning a class for session.
1937
1938 2012-12-20  Ilya Tikhonovsky  <loislo@chromium.org>
1939
1940         Unreviewed build fix for chromium mac after r138206.
1941
1942         * WebCoreSupport/WebSystemInterface.mm:
1943         (InitWebCoreSystemInterface):
1944
1945 2012-12-19  Alexey Proskuryakov  <ap@apple.com>
1946
1947         <rdar://problem/12890242> [WK2 NetworkProcess] Client doesn't receive SSL certificates
1948         https://bugs.webkit.org/show_bug.cgi?id=105467
1949
1950         Reviewed by Brady Eidson.
1951
1952         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize
1953         a WKSI function we've been missing.
1954
1955 2012-12-19  Alexis Menard  <alexis@webkit.org>
1956
1957         Implement CSS parsing for CSS transitions unprefixed.
1958         https://bugs.webkit.org/show_bug.cgi?id=104804
1959
1960         Reviewed by Dean Jackson.
1961
1962         Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
1963         to cover the work of unprefixing Transforms, Animations and 
1964         Transitions. It will let the possibility of each ports to turn it off 
1965         in their release branches until we're confident that these CSS 
1966         properties are ready to be unprefixed.
1967
1968         * Configurations/FeatureDefines.xcconfig:
1969
1970 2012-12-18  Alexey Proskuryakov  <ap@apple.com>
1971
1972         Remove unnecessary functions from CookiesStrategy
1973         https://bugs.webkit.org/show_bug.cgi?id=105369
1974
1975         Reviewed by Brady Eidson.
1976
1977         * WebCoreSupport/WebPlatformStrategies.h:
1978         * WebCoreSupport/WebPlatformStrategies.mm:
1979
1980 2012-12-18  Alice Liu  <alice.liu@apple.com>
1981
1982         Add SPI to WebKit1 WebFrame for hit testing
1983         https://bugs.webkit.org/show_bug.cgi?id=105106
1984
1985         Reviewed by Dan Bernstein.
1986
1987         * WebView/WebFrame.mm:
1988         (-[WebFrame elementAtPoint:]): Added. Takes an NSPoint to feed to the WebCore::Frame for hit-testing.
1989         Creates a WebElementDictionary from that WebCore::HitTestResult, and returns the element dictionary. 
1990         * WebView/WebFramePrivate.h:
1991
1992 2012-12-18  Alice Liu  <alice.liu@apple.com>
1993
1994         Add SPI to WebKit1 WebFrame for node conversion to JSValueRef
1995         https://bugs.webkit.org/show_bug.cgi?id=105262
1996
1997         Reviewed by Anders Carlsson.
1998
1999         * WebView/WebFrame.mm:
2000         (-[WebFrame jsWrapper:forWorld:]): Added. Takes a DOMNode and WebScriptWorld and provides a JSValueRef
2001         for the WebCore::Node in that particular WebScriptWorld.
2002         * WebView/WebFramePrivate.h:
2003
2004 2012-12-18  Beth Dakin  <bdakin@apple.com>
2005
2006         https://bugs.webkit.org/show_bug.cgi?id=102579
2007         [mac] Enable scaled cursors
2008
2009         Reviewed by Dean Jackson.
2010
2011         * Configurations/FeatureDefines.xcconfig:
2012
2013 2012-12-16  Levi Weintraub  <leviw@chromium.org>
2014
2015         Push pixel snapping logic into TransformState
2016         https://bugs.webkit.org/show_bug.cgi?id=101779
2017
2018         Reviewed by Simon Fraser.
2019
2020         * WebView/WebFullScreenController.mm:
2021         (screenRectOfContents): Removed SnapOffsetForTransforms as it's no longer needed.
2022
2023 2012-12-15  Anders Carlsson  <andersca@apple.com>
2024
2025         Rename FrameLoaderClient::download to convertMainResourceLoadToDownload
2026         https://bugs.webkit.org/show_bug.cgi?id=105122
2027
2028         Reviewed by Andreas Kling.
2029
2030         Update for WebCore changes.
2031
2032         * WebCoreSupport/WebFrameLoaderClient.h:
2033         (WebFrameLoaderClient):
2034         * WebCoreSupport/WebFrameLoaderClient.mm:
2035         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
2036
2037 2012-12-15  Mark Lam  <mark.lam@apple.com>
2038
2039         Re-landing patch for "Introducing the DatabaseStrategy and database servers".
2040         https://bugs.webkit.org/show_bug.cgi?id=104934.
2041
2042         Not reviewed.
2043
2044         Merged from r137767. Previously reviewed by Sam Weinig.
2045
2046         * WebCoreSupport/WebPlatformStrategies.h:
2047         (WebPlatformStrategies):
2048         * WebCoreSupport/WebPlatformStrategies.mm:
2049         (WebPlatformStrategies::createDatabaseStrategy):
2050
2051 2012-12-14  Mark Lam  <mark.lam@apple.com>
2052
2053         The WebView should initialize the platform strategies before initializing other sub-systems.
2054         https://bugs.webkit.org/show_bug.cgi?id=105083.
2055
2056         Reviewed by Alexey Proskuryakov.
2057
2058         * WebView/WebView.mm:
2059         (-[WebView _commonInitializationWithFrameName:groupName:]):
2060
2061 2012-12-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2062
2063         Unreviewed, rolling out r137767.
2064         http://trac.webkit.org/changeset/137767
2065         https://bugs.webkit.org/show_bug.cgi?id=105062
2066
2067         Broke Mac builds. (Requested by mlam on #webkit).
2068
2069         * WebCoreSupport/WebPlatformStrategies.h:
2070         (WebPlatformStrategies):
2071         * WebCoreSupport/WebPlatformStrategies.mm:
2072
2073 2012-12-14  Mark Lam  <mark.lam@apple.com>
2074
2075         Introducing the DatabaseStrategy and database servers.
2076         https://bugs.webkit.org/show_bug.cgi?id=104934.
2077
2078         Reviewed by Sam Weinig.
2079
2080         The database server is currently a placeholder that does nothing.
2081
2082         * WebCoreSupport/WebPlatformStrategies.h:
2083         (WebPlatformStrategies):
2084         * WebCoreSupport/WebPlatformStrategies.mm:
2085         (WebPlatformStrategies::createDatabaseStrategy):
2086
2087 2012-12-13  Alexey Proskuryakov  <ap@apple.com>
2088
2089         <rdar://problem/12838354> Per-Tab WebProcess: DOM cookie access functions should respect private browsing
2090         https://bugs.webkit.org/show_bug.cgi?id=104691
2091
2092         Reviewed by Sam Weinig.
2093
2094         * WebCoreSupport/WebFrameNetworkingContext.h:
2095         * WebCoreSupport/WebFrameNetworkingContext.mm:
2096         (WebFrameNetworkingContext::inPrivateBrowsingMode):
2097         (WebFrameNetworkingContext::storageSession):
2098         Implemented inPrivateBrowsingMode().
2099
2100 2012-12-12  Mark Lam  <mark.lam@apple.com>
2101
2102         Encapsulate externally used webdatabase APIs in DatabaseManager.
2103         https://bugs.webkit.org/show_bug.cgi?id=104741.
2104
2105         Reviewed by Sam Weinig.
2106
2107         Use DatabaseManager instead of accessing DatabaseTracker, AbstractDatabase,
2108         and DatabaseContext directly. This is to prepare for upcoming webkit2
2109         refactoring.
2110
2111         * Storage/WebDatabaseManager.mm:
2112         (-[WebDatabaseManager origins]):
2113         (-[WebDatabaseManager databasesWithOrigin:]):
2114         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
2115         (-[WebDatabaseManager deleteAllDatabases]):
2116         (-[WebDatabaseManager deleteOrigin:]):
2117         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
2118         (WebKitInitializeDatabasesIfNecessary):
2119         * Storage/WebDatabaseManagerClient.h: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.h.
2120         (WebDatabaseManagerClient):
2121         * Storage/WebDatabaseManagerClient.mm: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.mm.
2122         (WebDatabaseManagerClient::sharedWebDatabaseManagerClient):
2123         (WebDatabaseManagerClient::WebDatabaseManagerClient):
2124         (WebDatabaseManagerClient::~WebDatabaseManagerClient):
2125         (DidModifyOriginData::dispatchToMainThread):
2126         (DidModifyOriginData::DidModifyOriginData):
2127         (DidModifyOriginData):
2128         (WebDatabaseManagerClient::dispatchDidModifyOrigin):
2129         (WebDatabaseManagerClient::dispatchDidModifyDatabase):
2130         * Storage/WebDatabaseQuotaManager.mm:
2131         (-[WebDatabaseQuotaManager usage]):
2132         (-[WebDatabaseQuotaManager quota]):
2133         (-[WebDatabaseQuotaManager setQuota:]):
2134         * Storage/WebDatabaseTrackerClient.h: Removed.
2135         * Storage/WebDatabaseTrackerClient.mm: Removed.
2136         * WebCoreSupport/WebSecurityOrigin.mm:
2137         (-[WebSecurityOrigin usage]):
2138         (-[WebSecurityOrigin quota]):
2139         (-[WebSecurityOrigin setQuota:]):
2140         * WebKit.order:
2141         * WebView/WebFrame.mm:
2142         (-[WebFrame _cacheabilityDictionary]):
2143         * WebView/WebView.mm:
2144         (-[WebView _preferencesChanged:]):
2145
2146 2012-12-12  Alexey Proskuryakov  <ap@apple.com>
2147
2148         Make LOG() work in WebProcess and NetworkProcess
2149         https://bugs.webkit.org/show_bug.cgi?id=104718
2150
2151         Reviewed by Tim Horton.
2152
2153         * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between
2154         WebCore and WebKit versions of this file.
2155
2156 2012-12-11  Mike West  <mkwst@chromium.org>
2157
2158         Web Inspector: ConsoleTypes should not expose MessageType - it should be private to inspector.
2159         https://bugs.webkit.org/show_bug.cgi?id=66371
2160
2161         Reviewed by Pavel Feldman.
2162
2163         Drops WebCore::MessageType from the addMessageToConsole method.
2164
2165         * WebCoreSupport/WebChromeClient.h:
2166         (WebChromeClient):
2167         * WebCoreSupport/WebChromeClient.mm:
2168         (WebChromeClient::addMessageToConsole):
2169
2170 2012-12-09  Antti Koivisto  <antti@apple.com>
2171
2172         Factor node traversal into standalone functions
2173         https://bugs.webkit.org/show_bug.cgi?id=104507
2174
2175         Reviewed by Eric Seidel.
2176     
2177         * WebView/WebHTMLRepresentation.mm:
2178         (searchForLabelsBeforeElement):
2179
2180 2012-12-10  Alexis Menard  <alexis@webkit.org>
2181
2182         [CSS3 Backgrounds and Borders] Remove CSS3_BACKGROUND feature flag.
2183         https://bugs.webkit.org/show_bug.cgi?id=104539
2184
2185         Reviewed by Antonio Gomes.
2186
2187         As discussed on webkit-dev it is not needed to keep this feature flag 
2188         as support for <position> type is a small feature that is already 
2189         implemented by three other UAs. It was useful while landing this 
2190         feature as partial bits were landed one after one.
2191
2192         * Configurations/FeatureDefines.xcconfig:
2193
2194 2012-12-06  Rick Byers  <rbyers@chromium.org>
2195
2196         CSS cursor property should support webkit-image-set
2197         https://bugs.webkit.org/show_bug.cgi?id=99493
2198
2199         Reviewed by Beth Dakin.
2200
2201         Add ENABLE_MOUSE_CURSOR_SCALE - disabled by default.
2202
2203         * Configurations/FeatureDefines.xcconfig:
2204
2205 2012-12-03  Yury Semikhatsky  <yurys@chromium.org>
2206
2207         Unreviewed. Fix Mac compilation after r136448.
2208
2209         * WebCoreSupport/WebChromeClient.mm:
2210         (stringForMessageType):
2211
2212 2012-12-03  Alexis Menard  <alexis@webkit.org>
2213
2214         [Mac] Enable CSS3 background-position offset by default.
2215         https://bugs.webkit.org/show_bug.cgi?id=103905
2216
2217         Reviewed by Simon Fraser.
2218
2219         Turn the flag on by default.
2220
2221         * Configurations/FeatureDefines.xcconfig:
2222
2223 2012-12-02  Yongjun Zhang  <yongjun_zhang@apple.com>
2224
2225         Need a method to close all idle localstorage databases immediately.
2226         https://bugs.webkit.org/show_bug.cgi?id=103469
2227
2228         Reviewed by David Kilzer.
2229
2230         Add a new method to WebStorageManager that we can call to close all
2231         idle local storage databases.
2232
2233         * Storage/WebStorageManager.mm:
2234         (+[WebStorageManager closeIdleLocalStorageDatabases]):
2235         * Storage/WebStorageManagerPrivate.h:
2236
2237 2012-11-30  Mihai Maerean  <mmaerean@adobe.com>
2238
2239         [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled
2240         https://bugs.webkit.org/show_bug.cgi?id=101192
2241
2242         Reviewed by Hajime Morita.
2243
2244         Removed the CSS Regions flag in Settings and switched to using the new flag I have added in RuntimeEnabledFeatures.
2245
2246         Tests: No new tests because there is no functional change.
2247
2248         * WebView/WebView.mm:
2249         (-[WebView _preferencesChanged:]):
2250
2251 2012-11-29  Rafael Weinstein  <rafaelw@chromium.org>
2252
2253         [HTMLTemplateElement] Add feature flag
2254         https://bugs.webkit.org/show_bug.cgi?id=103694
2255
2256         Reviewed by Adam Barth.
2257
2258         This flag will guard the implementation of the HTMLTemplateElement.
2259         http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html
2260
2261         * Configurations/FeatureDefines.xcconfig:
2262
2263 2012-11-29  Alexey Proskuryakov  <ap@apple.com>
2264
2265         [WK2] Forward cookie jar calls to NetworkProcess
2266         https://bugs.webkit.org/show_bug.cgi?id=103457
2267
2268         Reviewed by Darin Adler.
2269
2270         * WebCoreSupport/WebPlatformStrategies.h:
2271         (WebPlatformStrategies):
2272         * WebCoreSupport/WebPlatformStrategies.mm:
2273         (WebPlatformStrategies::cookiesForDOM):
2274         (WebPlatformStrategies::setCookiesFromDOM):
2275         (WebPlatformStrategies::cookiesEnabled):
2276         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
2277         (WebPlatformStrategies::getRawCookies):
2278         (WebPlatformStrategies::deleteCookie):
2279         (WebPlatformStrategies::getHostnamesWithCookies):
2280         (WebPlatformStrategies::deleteCookiesForHostname):
2281         (WebPlatformStrategies::deleteAllCookies):
2282         (WebPlatformStrategies::getPluginInfo):
2283         (WebPlatformStrategies::bufferForType):
2284         WebKit1 strategy just uses PlatformCookieJar.
2285
2286 2012-11-28  Beth Dakin  <bdakin@apple.com>
2287
2288         https://bugs.webkit.org/show_bug.cgi?id=102970
2289         [WK1] REGRESSION (r129545): Main frame doesn't rubberband unless 
2290         WebFrameLoadDelegate implements -webView:didFirstLayoutInFrame:
2291
2292         Reviewed by Sam Weinig.
2293
2294         We should always register for DidFirstLayout in WK1 since we do work 
2295         at that time besides just calling the delegate function.
2296         * WebView/WebView.mm:
2297         (-[WebView _cacheFrameLoadDelegateImplementations]):
2298
2299 2012-11-27  Michael Saboff  <msaboff@apple.com>
2300
2301         TextIterator unnecessarily converts 8 bit strings to 16 bits
2302         https://bugs.webkit.org/show_bug.cgi?id=103295
2303
2304         Reviewed by Brent Fulgham.
2305
2306         Updated _stringForRange to use plainText() instead of removed plainTextToMallocAllocatedBuffer().
2307
2308         * WebView/WebFrame.mm:
2309         (-[WebFrame _stringForRange:]):
2310
2311 2012-11-27  James Simonsen  <simonjam@chromium.org>
2312
2313         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
2314         https://bugs.webkit.org/show_bug.cgi?id=102151
2315
2316         Reviewed by Adam Barth.
2317
2318         * Plugins/WebPluginController.mm:
2319         * WebView/WebFrame.mm:
2320         (-[WebFrame loadRequest:]):
2321         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2322
2323 2012-11-27  Pratik Solanki  <psolanki@apple.com>
2324
2325         objc/objc-runtime.h does not exist on all PLATFORM(MAC)
2326         https://bugs.webkit.org/show_bug.cgi?id=101780
2327
2328         Reviewed by Brent Fulgham.
2329
2330         Clean up header includes so we don't include objc/objc-runtime.h.
2331
2332         * Carbon/HIWebView.mm:
2333         (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
2334         * Plugins/WebNetscapePluginView.mm:
2335         * Plugins/WebPluginContainerCheck.mm:
2336         (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
2337         * Plugins/WebPluginController.mm:
2338         * WebCoreSupport/WebCachedFramePlatformData.h:
2339         * WebCoreSupport/WebDeviceOrientationClient.mm:
2340         * WebView/WebDelegateImplementationCaching.mm:
2341         * WebView/WebHTMLView.mm:
2342         * WebView/WebPDFDocumentExtras.mm:
2343         * WebView/WebPolicyDelegate.mm:
2344         (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
2345         * WebView/WebView.mm:
2346
2347 2012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
2348
2349         Unreviewed, rolling out r135786.
2350         http://trac.webkit.org/changeset/135786
2351         https://bugs.webkit.org/show_bug.cgi?id=103379
2352
2353         It made 3 plugin tests timeout on several platforms (Requested
2354         by Ossy on #webkit).
2355
2356         * Plugins/WebPluginController.mm:
2357         * WebView/WebFrame.mm:
2358         (-[WebFrame loadRequest:]):
2359         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2360
2361 2012-11-26  James Simonsen  <simonjam@chromium.org>
2362
2363         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
2364         https://bugs.webkit.org/show_bug.cgi?id=102151
2365
2366         Reviewed by Adam Barth.
2367
2368         * Plugins/WebPluginController.mm:
2369         * WebView/WebFrame.mm:
2370         (-[WebFrame loadRequest:]):
2371         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2372
2373 2012-11-23  Alexis Menard  <alexis@webkit.org>
2374
2375         [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.
2376         https://bugs.webkit.org/show_bug.cgi?id=102104
2377
2378         Reviewed by Julien Chaffraix.
2379
2380         Protect the new feature behind a feature flag.
2381
2382         * Configurations/FeatureDefines.xcconfig:
2383
2384 2012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2385
2386         Disambiguate innerNodeFramePoint and mainFramePoint
2387         https://bugs.webkit.org/show_bug.cgi?id=98139
2388
2389         Reviewed by Julien Chaffraix.
2390
2391         Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint.
2392
2393         * WebCoreSupport/WebContextMenuClient.mm:
2394         (WebContextMenuClient::showContextMenu):
2395
2396 2012-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
2397
2398         Unreviewed, rolling out r135295.
2399         http://trac.webkit.org/changeset/135295
2400         https://bugs.webkit.org/show_bug.cgi?id=102834
2401
2402         This patch causes assertion to some layout tests on chromium
2403         (Requested by jianli on #webkit).
2404
2405         * Plugins/WebPluginController.mm:
2406         * WebView/WebFrame.mm:
2407         (-[WebFrame loadRequest:]):
2408         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2409
2410 2012-11-20  James Simonsen  <simonjam@chromium.org>
2411
2412         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
2413         https://bugs.webkit.org/show_bug.cgi?id=102151
2414
2415         Reviewed by Adam Barth.
2416
2417         * Plugins/WebPluginController.mm:
2418         * WebView/WebFrame.mm:
2419         (-[WebFrame loadRequest:]):
2420         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2421
2422 2012-11-19  Kihong Kwon  <kihong.kwon@samsung.com>
2423
2424         Add PROXIMITY_EVENTS feature
2425         https://bugs.webkit.org/show_bug.cgi?id=102658
2426
2427         Reviewed by Kentaro Hara.
2428
2429         Add PROXIMITY_EVENTS feature to xcode project for WebKit.
2430
2431         * Configurations/FeatureDefines.xcconfig:
2432
2433 2012-11-16  Tony Chang  <tony@chromium.org>
2434
2435         Remove ENABLE_CSS_HIERARCHIES since it's no longer in use
2436         https://bugs.webkit.org/show_bug.cgi?id=102554
2437
2438         Reviewed by Andreas Kling.
2439
2440         As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 ,
2441         we're going to revist this feature once additional vendor support is
2442         achieved.
2443
2444         * Configurations/FeatureDefines.xcconfig:
2445
2446 2012-11-15  Alexey Proskuryakov  <ap@apple.com>
2447
2448         Private Browsing is a per-page setting that sets a global value
2449         https://bugs.webkit.org/show_bug.cgi?id=67870
2450
2451         Reviewed by Sam Weinig.
2452
2453         * WebCoreSupport/WebFrameNetworkingContext.h:
2454         * WebCoreSupport/WebFrameNetworkingContext.mm:
2455         Moved functions for managing global sessions from WebCore.
2456
2457         * WebCoreSupport/WebPlatformStrategies.h:
2458         * WebCoreSupport/WebPlatformStrategies.mm:
2459         (WebPlatformStrategies::defaultCookieStorage): Added. Uses WebFrameNetworkingContext
2460         to reach the storage.
2461
2462         * WebView/WebPreferences.mm:
2463         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Ditto.
2464         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Ditto.
2465
2466         * WebView/WebPreferencesPrivate.h: Added a comment explaining that two functions
2467         are not generic enough for use outside DRT (one of them had "testing" in name,
2468         but another did not).
2469
2470         * WebView/WebView.mm:
2471         (-[WebView _preferencesChanged:]): Create a global private browsing session when
2472         the first view with private browsing is created, delete it when any window with
2473         it disabled is created (since this comes from preferences, it applies to all
2474         views equally, even though we are dealing with a single one here).
2475         (-[WebView _cachedResponseForURL:]): Use main frame's networking context instead of
2476         a global one.
2477
2478 2012-11-13  Timothy Hatcher  <timothy@apple.com>
2479
2480         Adjust the Web Inspector window title frame if needed to prevent it from intersecting the dock button.
2481
2482         https://bugs.webkit.org/show_bug.cgi?id=102073
2483
2484         Reviewed by Joseph Pecoraro.
2485
2486         * WebCoreSupport/WebInspectorClient.mm:
2487         (-[WebInspectorWindow _customTitleFrame]): Added. Adjust the title frame.
2488
2489 2012-11-12  Simon Fraser  <simon.fraser@apple.com>
2490
2491         Build fix after r134346 and 134347.
2492         
2493         Use frameView.isFlipped, not frameView.flipped in the assertion.
2494
2495         * WebCoreSupport/WebInspectorClient.mm:
2496         (-[WebInspectorWindowController window]):
2497
2498 2012-11-12  Timothy Hatcher  <timothy@apple.com>
2499
2500         Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
2501
2502         https://bugs.webkit.org/show_bug.cgi?id=102025
2503
2504         Reviewed by Joseph Pecoraro.
2505
2506         * Resources/Dock.pdf: Added.
2507         * WebCoreSupport/WebInspectorClient.h:
2508         * WebCoreSupport/WebInspectorClient.mm:
2509         (-[WebInspectorWindow _cursorForResizeDirection:]): Added.
2510         (WebInspectorClient::didResizeMainFrame): Call attachAvailabilityChanged instead.
2511         (WebInspectorFrontendClient::attachAvailabilityChanged): Added.
2512         (-[WebInspectorWindowController window]): Create the dock button and add it.
2513         (-[WebInspectorWindowController attachWindow:]): Added.
2514         (-[WebInspectorWindowController attach]): Call setAttachedWindow.
2515         (-[WebInspectorWindowController detach]): Ditto.
2516         (-[WebInspectorWindowController setDockingUnavailable:]): Added. Update hidden state of the dock button.
2517
2518 2012-11-08  Timothy Hatcher  <timothy@apple.com>
2519
2520         Always use a textured window for the Web Inspector.
2521
2522         https://bugs.webkit.org/show_bug.cgi?id=101693
2523
2524         Reviewed by Joseph Pecoraro.
2525
2526         * WebCoreSupport/WebInspectorClient.mm:
2527         (-[WebInspectorWindowController window]): Removed the conditional for a textured window.
2528
2529 2012-11-08  Roger Fong  <roger_fong@apple.com>
2530
2531         Null check URL key entries into WebHistory hash table. 
2532         https://bugs.webkit.org/show_bug.cgi?id=101664
2533         <rdar://problem/12440852>
2534
2535         Reviewed by Brady Eidson.
2536         
2537         Sometimes the _entriesByURL hash table used to keep track of web history is erroneously passed in null key entries, which causes an exception to fire.
2538         This prevents the desired page navigation from taking effect. This is a workaround for the problem.
2539         Ideally we would figure out where the null values for the key are coming from but for now we'll just set it to "" to prevent the exception from being thrown
2540         so that navigation can continue as expected.
2541
2542         * History/WebHistory.mm:
2543         (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]):
2544
2545 2012-11-07  Andreas Kling  <akling@apple.com>
2546
2547         Remove build-webkit dependency on Java SDK for Apple Mac WebKit.
2548         <http://webkit.org/b/101492>
2549
2550         Reviewed by Anders Carlsson.
2551
2552         * Plugins/WebJavaPlugIn.h: Removed.
2553
2554 2012-11-06  Adam Barth  <abarth@webkit.org>
2555
2556         Unreviewed attempt to fix the chromium-mac build.
2557
2558         * WebCoreSupport/WebSystemInterface.mm:
2559         (InitWebCoreSystemInterface):
2560
2561 2012-11-06  Anders Carlsson  <andersca@apple.com>
2562
2563         Update Java related WKSI function names
2564         https://bugs.webkit.org/show_bug.cgi?id=101414
2565
2566         Reviewed by Sam Weinig.
2567
2568         * WebCoreSupport/WebChromeClient.mm:
2569         (WebChromeClient::unavailablePluginButtonClicked):
2570         * WebCoreSupport/WebFrameLoaderClient.mm:
2571         (isPlugInInactive):
2572
2573 2012-11-06  Alexey Proskuryakov  <ap@apple.com>
2574
2575         Clean up which storage cookie jar functions use
2576         https://bugs.webkit.org/show_bug.cgi?id=101395
2577
2578         Reviewed by Brady Eidson.
2579
2580         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated for
2581         two new functions.
2582
2583 2012-11-06  Andrey Lushnikov  <lushnikov@google.com>
2584
2585         Added console.clear() method
2586
2587         Web Inspector: add console.clear()
2588         https://bugs.webkit.org/show_bug.cgi?id=101021
2589
2590         Reviewed by Vsevolod Vlasov.
2591
2592         * WebCoreSupport/WebChromeClient.mm:
2593         (stringForMessageType): Added ClearMessageType case to switch
2594
2595 2012-11-05  Alexey Proskuryakov  <ap@apple.com>
2596
2597         Get rid of setCookieStoragePrivateBrowsingEnabled.
2598         https://bugs.webkit.org/show_bug.cgi?id=101247
2599
2600         Reviewed by Brady Eidson.
2601
2602         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We no longer
2603         have this function.
2604
2605 2012-11-03  Alexey Proskuryakov  <ap@apple.com>
2606
2607         Get rid of USE(CFURLSTORAGESESSIONS)
2608         https://bugs.webkit.org/show_bug.cgi?id=101131
2609
2610         Reviewed by Sam Weinig.
2611
2612         * WebView/WebPreferences.mm:
2613         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
2614         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
2615         * WebView/WebView.mm:
2616         (-[WebView _cachedResponseForURL:]):
2617
2618 2012-11-02  Anders Carlsson  <andersca@apple.com>
2619
2620         Don't instantiate the Java plug-in if it's inactive
2621         https://bugs.webkit.org/show_bug.cgi?id=101102
2622         <rdar://problem/12595679>
2623
2624         Reviewed by Andreas Kling.
2625
2626         * WebCoreSupport/WebChromeClient.mm:
2627         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
2628         The RenderEmbeddedObject::PluginInactive reason should always result in a button being shown.
2629
2630         (WebChromeClient::unavailablePluginButtonClicked):
2631         If the Java plug-in is inactive, call WKJLReportWebComponentsUsed() to reactivate the plug-in and
2632         then reload the page.
2633
2634         * WebCoreSupport/WebFrameLoaderClient.mm:
2635         (isOracleJavaPlugIn):
2636         (isPlugInInactive):
2637         Helper functions.
2638
2639         (WebFrameLoaderClient::createPlugin):
2640         If the plug-in is inactive, set the appropriate unavailability reason on the renderer.
2641
2642 2012-11-02  Simon Fraser  <simon.fraser@apple.com>
2643
2644         Enable SUBPIXEL_LAYOUT on Mac
2645         https://bugs.webkit.org/show_bug.cgi?id=101076
2646
2647         Reviewed by Dave Hyatt.
2648
2649         Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES.
2650
2651         * Configurations/FeatureDefines.xcconfig:
2652
2653 2012-11-02  Adam Barth  <abarth@webkit.org>
2654
2655         ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development
2656         https://bugs.webkit.org/show_bug.cgi?id=100711
2657
2658         Reviewed by Eric Seidel.
2659
2660         * Configurations/FeatureDefines.xcconfig:
2661
2662 2012-11-01  Adam Roben  <aroben@webkit.org>
2663
2664         [WK1] Fixed-position elements jiggle up and down slightly during scrolling on a Retina display
2665         https://bugs.webkit.org/show_bug.cgi?id=100957
2666
2667         Reviewed by Simon Fraser.
2668
2669         WebCore doesn't yet support subpixel scrolling. WebKit2 forces
2670         scrolling to always be integral. Now WebKit1 forces this as well.
2671
2672         I'm not sure how to write a test for this.
2673
2674         * WebView/WebDynamicScrollBarsView.mm:
2675         (shouldRoundScrollOrigin): Returns YES if there are any position:fixed
2676         or position:sticky elements in the page.
2677         (-[WebDynamicScrollBarsView scrollClipView:toPoint:]): Round the
2678         scroll origin to the nearest pixel if needed.
2679
2680 2012-10-31  Anders Carlsson  <andersca@apple.com>
2681
2682         Fix build.
2683         <rdar://problem/12612207>.
2684
2685         Reviewed by Sam Weinig.
2686
2687         * Panels/WebAuthenticationPanel.m:
2688         (-[WebAuthenticationPanel loadNib]):
2689
2690 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
2691
2692         [Mac] Sync up FeatureDefine Configuration Files
2693         https://bugs.webkit.org/show_bug.cgi?id=100171
2694
2695         Reviewed by David Kilzer.
2696
2697         Follow up to better coordinate with iOS feature defines. Make:
2698
2699           - ENABLE_FILTERS always on
2700           - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values
2701
2702         * Configurations/FeatureDefines.xcconfig:
2703
2704 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
2705
2706         [Mac] Sync up FeatureDefine Configuration Files
2707         https://bugs.webkit.org/show_bug.cgi?id=100171
2708
2709         Reviewed by David Kilzer.
2710
2711         Ensure an identical FeatureDefine files across all projects. Changes:
2712
2713           - ENABLE_CSS_BOX_DECORATION_BREAK should be in all
2714           - ENABLE_PDFKIT_PLUGIN should be in all
2715           - ENABLE_RESOLUTION_MEDIA_QUERY should be in all
2716           - ENABLE_ENCRYPTED_MEDIA should be in all
2717           - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value
2718           - Some alphabetical ordering cleanup
2719
2720         * Configurations/FeatureDefines.xcconfig:
2721
2722 2012-10-29  Anders Carlsson  <andersca@apple.com>
2723
2724         Build WebKit as C++11 on Mac
2725         https://bugs.webkit.org/show_bug.cgi?id=100720
2726
2727         Reviewed by Daniel Bates.
2728
2729         * Configurations/Base.xcconfig:
2730         Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
2731
2732         * History/WebBackForwardList.mm:
2733         (-[WebBackForwardList description]):
2734         * History/WebHistoryItem.mm:
2735         (-[WebHistoryItem description]):
2736         Add static_casts to prevent implicit type conversions in non-constant initializer lists.
2737
2738 2012-10-28  Mark Rowe  <mrowe@apple.com>
2739
2740         Simplify Xcode configuration settings that used to vary between OS versions.
2741
2742         Reviewed by Dan Bernstein.
2743
2744         * Configurations/Base.xcconfig:
2745         * Configurations/DebugRelease.xcconfig:
2746         * Configurations/WebKit.xcconfig:
2747
2748 2012-10-28  Mark Rowe  <mrowe@apple.com>
2749
2750         Remove references to unsupported OS and Xcode versions.
2751
2752         Reviewed by Anders Carlsson.
2753
2754         * Configurations/Base.xcconfig:
2755         * Configurations/CompilerVersion.xcconfig: Removed.
2756         * Configurations/DebugRelease.xcconfig:
2757         * Configurations/Version.xcconfig:
2758
2759 2012-10-29  Enrica Casucci  <enrica@apple.com>
2760
2761         Add ENABLE_USERSELECT_ALL feature flag.
2762         https://bugs.webkit.org/show_bug.cgi?id=100559
2763
2764         Reviewed by Eric Seidel.
2765
2766         * Configurations/FeatureDefines.xcconfig:
2767
2768 2012-10-27  Alexey Proskuryakov  <ap@apple.com>
2769
2770         All tests crash in WebKit1 mode
2771         https://bugs.webkit.org/show_bug.cgi?id=100602
2772
2773         Reviewed by Sam Weinig.
2774
2775         * WebView/WebView.mm: (+[WebView _setLoadResourcesSerially:]): Resource load
2776         scheduler is created via a strategy, so strategies need to be initialized before
2777         using it.
2778
2779 2012-10-27  Dan Bernstein  <mitz@apple.com>
2780
2781         REAL_PLATFORM_NAME build setting is no longer needed
2782         https://bugs.webkit.org/show_bug.cgi?id=100587
2783
2784         Reviewed by Mark Rowe.
2785
2786         Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
2787         to PLATFORM_NAME.
2788
2789         * Configurations/Base.xcconfig:
2790         * Configurations/CompilerVersion.xcconfig:
2791         * Configurations/DebugRelease.xcconfig:
2792         * Configurations/FeatureDefines.xcconfig:
2793         * Configurations/Version.xcconfig:
2794         * Configurations/WebKit.xcconfig:
2795
2796 2012-10-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
2797
2798         Add feature flags for CSS Device Adaptation
2799         https://bugs.webkit.org/show_bug.cgi?id=95960
2800
2801         Reviewed by Kenneth Rohde Christiansen.
2802
2803         * Configurations/FeatureDefines.xcconfig:
2804
2805 2012-10-25  Dominik Röttsches  <dominik.rottsches@intel.com>
2806
2807         Conditionalize XHR timeout support
2808         https://bugs.webkit.org/show_bug.cgi?id=100356
2809
2810         Reviewed by Adam Barth.
2811
2812         Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
2813         Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
2814
2815         * Configurations/FeatureDefines.xcconfig:
2816
2817 2012-10-24  Timothy Hatcher  <timothy@apple.com>
2818
2819         Fix a crash seen during the Inspector tests on the WebKit1 bots.
2820
2821         Reviewed by Filip Pizlo.
2822
2823         * WebCoreSupport/WebInspectorClient.mm:
2824         (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
2825         is not the same when the Inspector is docked.
2826
2827 2012-10-24  Brady Eidson  <beidson@apple.com>
2828
2829         Add a strategy for loader customization.
2830         https://bugs.webkit.org/show_bug.cgi?id=100278
2831
2832         Reviewed by Alexey Proskuryakov.
2833
2834         * WebCoreSupport/WebPlatformStrategies.h:
2835         (WebPlatformStrategies):
2836         * WebCoreSupport/WebPlatformStrategies.mm:
2837         (WebPlatformStrategies::createLoaderStrategy):
2838
2839 2012-10-24  Timothy Hatcher  <timothy@apple.com>
2840
2841         Make the Inspector WKView/WebView become the first responder when bringToFront is called.
2842
2843         https://bugs.webkit.org/show_bug.cgi?id=100209
2844
2845         Reviewed by Joseph Pecoraro.
2846
2847         * WebCoreSupport/WebInspectorClient.mm:
2848         (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
2849
2850 2012-10-23  Alexey Proskuryakov  <ap@apple.com>
2851
2852         Add a strategy for shared workers
2853         https://bugs.webkit.org/show_bug.cgi?id=100165
2854
2855         Reviewed by Brady Eidson.
2856
2857         * WebCoreSupport/WebPlatformStrategies.h:
2858         * WebCoreSupport/WebPlatformStrategies.mm:
2859         (WebPlatformStrategies::createPasteboardStrategy):
2860         (WebPlatformStrategies::createSharedWorkerStrategy):
2861         (WebPlatformStrategies::createVisitedLinkStrategy):
2862
2863 2012-10-24  Eric Carlson  <eric.carlson@apple.com>
2864
2865         Allow ports to override text track rendering style
2866         https://bugs.webkit.org/show_bug.cgi?id=97800
2867         <rdar://problem/12044964>
2868
2869         Reviewed by Maciej Stachowiak.
2870
2871         * WebCoreSupport/WebSystemInterface.mm:
2872         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
2873
2874 2012-10-23  Dan Bernstein  <mitz@apple.com>
2875
2876         WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
2877         https://bugs.webkit.org/show_bug.cgi?id=100188
2878
2879         Reviewed by Sam Weinig.
2880
2881         * WebView/WebView.mm:
2882         (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
2883         code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
2884         default. Changed to refer to that default key by name.
2885
2886 2012-10-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2887
2888         Add support for resolution media query
2889         https://bugs.webkit.org/show_bug.cgi?id=99077
2890
2891         Reviewed by Antti Koivisto.
2892
2893         Add support for the RESOLUTION_MEDIA_QUERY feature flag.
2894
2895         * Configurations/FeatureDefines.xcconfig:
2896
2897 2012-10-21  Andreas Kling  <kling@webkit.org>
2898
2899         Remove Page::javaScriptURLsAreAllowed setting.
2900         <http://webkit.org/b/99944>
2901
2902         Reviewed by Anders Carlsson.
2903
2904         * WebKit.order:
2905         * WebView/WebView.mm:
2906         * WebView/WebViewPrivate.h:
2907
2908 2012-10-19  Dongwoo Joshua Im  <dw.im@samsung.com>
2909
2910         Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
2911         https://bugs.webkit.org/show_bug.cgi?id=99804
2912
2913         Reviewed by Julien Chaffraix.
2914
2915         CSS3 text related properties will be implemented under this flag,
2916         including text decoration, text-align-last, and text-justify.
2917
2918         * Configurations/FeatureDefines.xcconfig:
2919
2920 2012-10-18  Pablo Flouret  <pablof@motorola.com>
2921
2922         Implement css3-conditional's @supports rule
2923         https://bugs.webkit.org/show_bug.cgi?id=86146
2924
2925         Reviewed by Antti Koivisto.
2926
2927         * Configurations/FeatureDefines.xcconfig:
2928             Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
2929
2930 2012-10-17  Joseph Pecoraro  <pecoraro@apple.com>
2931
2932         [Mac] Uninitialized Members in WebDataSourcePrivate
2933         https://bugs.webkit.org/show_bug.cgi?id=99617
2934
2935         Reviewed by David Kilzer.
2936
2937         Initialize BOOL member variables.
2938
2939         * WebView/WebDataSource.mm:
2940         (WebDataSourcePrivate::WebDataSourcePrivate):
2941
2942 2012-10-17  Mark Rowe  <mrowe@apple.com>
2943
2944         Fix the build with a newer version of clang.
2945
2946         Reviewed by Dan Bernstein.
2947
2948         Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
2949         While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
2950         with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
2951         therefore generates a warning in newer versions of the compiler.
2952
2953         Fixes <rdar://problem/12503709>.
2954
2955         * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
2956         * Misc/WebCoreStatistics.mm: Ditto.
2957         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
2958         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
2959
2960 2012-10-16  Jian Li  <jianli@chromium.org>
2961
2962         Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
2963         https://bugs.webkit.org/show_bug.cgi?id=98975
2964
2965         Reviewed by Adam Barth.
2966
2967         Renaming is needed to better match with the draggable region code.
2968
2969         * Configurations/FeatureDefines.xcconfig:
2970
2971 2012-10-15  Dan Bernstein  <mitz@apple.com>
2972
2973         WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
2974         https://bugs.webkit.org/show_bug.cgi?id=99113
2975
2976         Reviewed by Tim Horton.
2977
2978         * WebCoreSupport/WebSystemInterface.mm:
2979         (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
2980
2981 2012-10-15  David Kilzer  <ddkilzer@apple.com>
2982
2983         Move framework and library linking into WebKit.xcconfig
2984         <http://webkit.org/b/99284>
2985
2986         Reviewed by Mark Rowe.
2987
2988         * Configurations/WebKit.xcconfig: Move frameworks and libraries
2989         link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
2990
2991 2012-10-14  Jon Lee  <jonlee@apple.com>
2992
2993         Allow notification origin permission request when no js callback is provided
2994         https://bugs.webkit.org/show_bug.cgi?id=63615
2995         <rdar://problem/11059590>
2996
2997         Reviewed by Sam Weinig.
2998
2999         Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
3000         we do not fall through to calling the standard API's callback if the legacy API's callback is null.
3001
3002         * WebCoreSupport/WebNotificationClient.mm:
3003         (WebCore):
3004         (-[WebNotificationPolicyListener initWithVoidCallback:]):
3005         (-[WebNotificationPolicyListener allow]):
3006         (-[WebNotificationPolicyListener deny]):
3007
3008 2012-10-14  Sam Weinig  <sam@webkit.org>
3009
3010         Make UserScript and UserStyleSheet value objects that are copyable
3011         https://bugs.webkit.org/show_bug.cgi?id=99275
3012
3013         Reviewed by Tim Horton.
3014
3015         * WebView/WebView.mm:
3016         (-[WebView _injectMailQuirksScript]):
3017         (-[WebView _injectOutlookQuirksScript]):
3018         Update for new PageGroup function signatures.
3019
3020 2012-10-10  Brady Eidson  <beidson@apple.com>
3021
3022         Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
3023         https://bugs.webkit.org/show_bug.cgi?id=98976
3024
3025         Reviewed by Anders Carlsson.
3026
3027         * WebView/WebDataSource.mm:
3028         (-[WebDataSource data]):
3029
3030 2012-10-10  Jer Noble  <jer.noble@apple.com>
3031
3032         Disallow full screen mode keyboard access by default.
3033         https://bugs.webkit.org/show_bug.cgi?id=98971
3034         <rdar://problem/12474226>
3035
3036         Reviewed by Sam Weinig.
3037
3038         Only support full screen if keyboard access is not requested.
3039
3040         * WebView/WebView.mm:
3041         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
3042
3043 2012-10-10  Jon Lee  <jonlee@apple.com>
3044
3045         [WK2] Activate plugins when user clicks on snapshot
3046         https://bugs.webkit.org/show_bug.cgi?id=98328
3047         <rdar://problem/12426681>
3048
3049         Reviewed by Brady Eidson.
3050
3051         * WebCoreSupport/WebFrameLoaderClient.h:
3052         * WebCoreSupport/WebFrameLoaderClient.mm:
3053         (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
3054
3055 2012-10-10  Brady Eidson  <beidson@apple.com>
3056
3057         Switch CachedResource over from SharedBuffer to a new ResourceBuffer
3058         https://bugs.webkit.org/show_bug.cgi?id=98541
3059
3060         Reviewed by Anders Carlsson.
3061
3062         * WebView/WebHTMLView.mm:
3063         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
3064
3065 2012-10-10  Simon Fraser  <simon.fraser@apple.com>
3066
3067         Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
3068         https://bugs.webkit.org/show_bug.cgi?id=98839
3069
3070         Reviewed by Sam Weinig.
3071
3072         To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
3073         in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
3074         but store the computed rect in m_visibleRect.
3075         
3076         Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
3077         layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
3078
3079         * WebView/WebFrame.mm:
3080         (-[WebFrame _layerTreeAsText]):
3081
3082 2012-10-09  Jian Li  <jianli@chromium.org>
3083
3084         Update the CSS property used to support draggable regions.
3085         https://bugs.webkit.org/show_bug.cgi?id=97156
3086
3087         Reviewed by Adam Barth.
3088
3089         The CSS property to support draggable regions, guarded under
3090         WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
3091         confusion with DASHBOARD_SUPPORT feature.
3092
3093         Also update the code to use the new name annotatedRegions to work for
3094         both features.
3095
3096         * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
3097         * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
3098         * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
3099         (WebChromeClient::annotatedRegionsChanged):
3100         * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
3101         (-[WebView _dashboardRegions]):
3102
3103 2012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3104
3105         Unreviewed, rolling out r130811 and r130821.
3106         http://trac.webkit.org/changeset/130811
3107         http://trac.webkit.org/changeset/130821
3108         https://bugs.webkit.org/show_bug.cgi?id=98831
3109
3110         Broke date-suggestion-picker-appearance-with-scroll-bar.html
3111         (Requested by abarth|gardening on #webkit).
3112
3113         * WebView/WebFullScreenController.mm:
3114         (screenRectOfContents):
3115         * WebView/WebRenderNode.mm:
3116         (copyRenderNode):
3117
3118 2012-10-08  Kiran Muppala  <cmuppala@apple.com>
3119
3120         Throttle DOM timers on hidden pages.
3121         https://bugs.webkit.org/show_bug.cgi?id=98474
3122
3123         Reviewed by Maciej Stachowiak.
3124
3125         Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
3126         DumpRenderTree to modify the visibility state of a page.  The latter
3127         is needed to test throttling of timers on hidden pages through DumpRenderTree.
3128
3129         * Configurations/FeatureDefines.xcconfig:
3130         * WebView/WebView.mm:
3131         (-[WebView _setVisibilityState:isInitialState:]):
3132         * WebView/WebViewPrivate.h:
3133
3134 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3135
3136         Rename first/second to key/value in HashMap iterators
3137         https://bugs.webkit.org/show_bug.cgi?id=82784
3138
3139         Reviewed by Eric Seidel.
3140
3141         * History/WebHistory.mm:
3142         (-[WebHistoryPrivate removeItemFromDateCaches:]):
3143         (-[WebHistoryPrivate orderedLastVisitedDays]):
3144         (WebHistoryWriter::WebHistoryWriter):
3145         * Misc/WebCoreStatistics.mm:
3146         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
3147         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
3148         * Plugins/Hosted/NetscapePluginHostManager.mm:
3149         (WebKit::NetscapePluginHostManager::hostForPlugin):
3150         (WebKit::NetscapePluginHostManager::pluginHostDied):
3151         (WebKit::NetscapePluginHostManager::didCreateWindow):
3152         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3153         (WebKit::NetscapePluginHostProxy::pluginHostDied):
3154         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3155         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
3156         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
3157         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
3158         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
3159         (WebKit::NetscapePluginInstanceProxy::destroy):
3160         (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
3161         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
3162         * Plugins/Hosted/ProxyInstance.mm:
3163         (WebKit::ProxyInstance::methodNamed):
3164         (WebKit::ProxyInstance::fieldNamed):
3165         * Plugins/WebNetscapePluginView.mm:
3166         (-[WebNetscapePluginView stopTimers]):
3167         (-[WebNetscapePluginView startTimers]):
3168         * WebCoreSupport/WebNotificationClient.mm:
3169         (WebNotificationClient::show):
3170         (WebNotificationClient::clearNotifications):
3171         (WebNotificationClient::notificationObjectDestroyed):
3172         * WebView/WebHTMLView.mm:
3173         (commandNameForSelector):
3174
3175 2012-10-06  Dan Bernstein  <mitz@apple.com>
3176
3177         WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
3178         https://bugs.webkit.org/show_bug.cgi?id=98601
3179
3180         Reviewed by Darin Adler.
3181
3182         * WebView/WebView.mm:
3183         (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
3184         kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
3185         the value YES.
3186
3187 2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
3188
3189         Unreviewed, rolling out r130556 and r130564.
3190         http://trac.webkit.org/changeset/130556
3191         http://trac.webkit.org/changeset/130564
3192         https://bugs.webkit.org/show_bug.cgi?id=98572
3193
3194         The patch wasn't reviewed by a reviewer and it is breaking
3195         Chromium Windows (Requested by jchaffraix on #webkit).
3196
3197         * WebCoreSupport/WebSystemInterface.mm:
3198         (InitWebCoreSystemInterface):
3199
3200 2012-10-05  Tim Horton  <timothy_horton@apple.com>
3201
3202         [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
3203         https://bugs.webkit.org/show_bug.cgi?id=98565
3204         <rdar://problem/12436468>
3205
3206         Reviewed by Simon Fraser.
3207
3208         Add wkCGContextDrawsWithCorrectShadowOffsets.
3209
3210         * WebCoreSupport/WebSystemInterface.mm:
3211         (InitWebCoreSystemInterface):
3212
3213 2012-10-04  Eric Carlson  <eric.carlson@apple.com>
3214
3215         Allow ports to override text track rendering style
3216         https://bugs.webkit.org/show_bug.cgi?id=97800
3217         <rdar://problem/12044964>
3218
3219         Reviewed by Silvia Pfeiffer.
3220
3221         Add WCSI support for new WKSI caption functions.
3222
3223         * WebCoreSupport/WebSystemInterface.mm:
3224         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
3225
3226 2012-10-04  Jon Lee  <jonlee@apple.com>
3227
3228         Add a setting to enable plugin snapshotting
3229         https://bugs.webkit.org/show_bug.cgi?id=98319
3230         <rdar://problem/12426480>
3231
3232         Reviewed by Brady Eidson.
3233
3234         Expose plugInSnapshottingEnabled preference to WebKit clients.
3235
3236         * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
3237         * WebView/WebPreferences.mm:
3238         (+[WebPreferences initialize]): Setting is turned off by default.
3239         (-[WebPreferences plugInSnapshottingEnabled]):
3240         (-[WebPreferences setPlugInSnapshottingEnabled:]):
3241         * WebView/WebPreferencesPrivate.h:
3242         * WebView/WebView.mm:
3243         (-[WebView _preferencesChanged:]): Update settings based on preference.
3244
3245 2012-10-04  Rik Cabanier  <cabanier@adobe.com>
3246
3247         Turn Compositing on by default in WebKit build
3248         https://bugs.webkit.org/show_bug.cgi?id=98315
3249
3250         Reviewed by Simon Fraser.
3251
3252         enable -webkit-blend-mode on trunk.
3253
3254         * Configurations/FeatureDefines.xcconfig:
3255
3256 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
3257
3258         Final part of "sync" to "flush" renaming
3259         https://bugs.webkit.org/show_bug.cgi?id=98430
3260
3261         Reviewed by Tim Horton.
3262
3263         Change method names on GraphicsLayer and GraphicsLayerClient that
3264         refer to "sync" to use the term "flush" instead, to be consistent
3265         with the rest of the code.
3266
3267         * WebView/WebView.mm:
3268
3269 2012-10-03  Benjamin Poulain  <bpoulain@apple.com>
3270
3271         [WK2] Support all attributes of GeolocationPosition
3272         https://bugs.webkit.org/show_bug.cgi?id=98212
3273
3274         Reviewed by Sam Weinig.
3275
3276         Add an internal constructor for the sake of testing.
3277         A similar API is used on iOS.
3278
3279         * WebView/WebGeolocationPosition.mm:
3280         (-[WebGeolocationPosition initWithGeolocationPosition:]):
3281
3282 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
3283
3284         Standardize on "flush" terminology for compositing layer flushing/syncing
3285         https://bugs.webkit.org/show_bug.cgi?id=98321
3286
3287         Reviewed by Simon Fraser.
3288
3289         Rename compositing-related methods that refer to "syncing" to instead
3290         refer to "flushing".
3291
3292         * WebCoreSupport/WebChromeClient.h:
3293         * WebCoreSupport/WebChromeClient.mm:
3294         (WebChromeClient::scheduleCompositingLayerFlush):
3295         * WebView/WebView.mm:
3296         (-[WebView _flushCompositingChanges]):
3297         (LayerFlushController::flushLayers):
3298         (-[WebView _scheduleCompositingLayerFlush]):
3299         * WebView/WebViewInternal.h:
3300
3301 == Rolled over to ChangeLog-2012-10-02 ==