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