[CSSRegions] when WebKit uses V8, there should be a single variable to store if the...
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2012-11-30  Mihai Maerean  <mmaerean@adobe.com>
2
3         [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled
4         https://bugs.webkit.org/show_bug.cgi?id=101192
5
6         Reviewed by Hajime Morita.
7
8         Removed the CSS Regions flag in Settings and switched to using the new flag I have added in RuntimeEnabledFeatures.
9
10         Tests: No new tests because there is no functional change.
11
12         * WebView/WebView.mm:
13         (-[WebView _preferencesChanged:]):
14
15 2012-11-29  Rafael Weinstein  <rafaelw@chromium.org>
16
17         [HTMLTemplateElement] Add feature flag
18         https://bugs.webkit.org/show_bug.cgi?id=103694
19
20         Reviewed by Adam Barth.
21
22         This flag will guard the implementation of the HTMLTemplateElement.
23         http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html
24
25         * Configurations/FeatureDefines.xcconfig:
26
27 2012-11-29  Alexey Proskuryakov  <ap@apple.com>
28
29         [WK2] Forward cookie jar calls to NetworkProcess
30         https://bugs.webkit.org/show_bug.cgi?id=103457
31
32         Reviewed by Darin Adler.
33
34         * WebCoreSupport/WebPlatformStrategies.h:
35         (WebPlatformStrategies):
36         * WebCoreSupport/WebPlatformStrategies.mm:
37         (WebPlatformStrategies::cookiesForDOM):
38         (WebPlatformStrategies::setCookiesFromDOM):
39         (WebPlatformStrategies::cookiesEnabled):
40         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
41         (WebPlatformStrategies::getRawCookies):
42         (WebPlatformStrategies::deleteCookie):
43         (WebPlatformStrategies::getHostnamesWithCookies):
44         (WebPlatformStrategies::deleteCookiesForHostname):
45         (WebPlatformStrategies::deleteAllCookies):
46         (WebPlatformStrategies::getPluginInfo):
47         (WebPlatformStrategies::bufferForType):
48         WebKit1 strategy just uses PlatformCookieJar.
49
50 2012-11-28  Beth Dakin  <bdakin@apple.com>
51
52         https://bugs.webkit.org/show_bug.cgi?id=102970
53         [WK1] REGRESSION (r129545): Main frame doesn't rubberband unless 
54         WebFrameLoadDelegate implements -webView:didFirstLayoutInFrame:
55
56         Reviewed by Sam Weinig.
57
58         We should always register for DidFirstLayout in WK1 since we do work 
59         at that time besides just calling the delegate function.
60         * WebView/WebView.mm:
61         (-[WebView _cacheFrameLoadDelegateImplementations]):
62
63 2012-11-27  Michael Saboff  <msaboff@apple.com>
64
65         TextIterator unnecessarily converts 8 bit strings to 16 bits
66         https://bugs.webkit.org/show_bug.cgi?id=103295
67
68         Reviewed by Brent Fulgham.
69
70         Updated _stringForRange to use plainText() instead of removed plainTextToMallocAllocatedBuffer().
71
72         * WebView/WebFrame.mm:
73         (-[WebFrame _stringForRange:]):
74
75 2012-11-27  James Simonsen  <simonjam@chromium.org>
76
77         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
78         https://bugs.webkit.org/show_bug.cgi?id=102151
79
80         Reviewed by Adam Barth.
81
82         * Plugins/WebPluginController.mm:
83         * WebView/WebFrame.mm:
84         (-[WebFrame loadRequest:]):
85         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
86
87 2012-11-27  Pratik Solanki  <psolanki@apple.com>
88
89         objc/objc-runtime.h does not exist on all PLATFORM(MAC)
90         https://bugs.webkit.org/show_bug.cgi?id=101780
91
92         Reviewed by Brent Fulgham.
93
94         Clean up header includes so we don't include objc/objc-runtime.h.
95
96         * Carbon/HIWebView.mm:
97         (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
98         * Plugins/WebNetscapePluginView.mm:
99         * Plugins/WebPluginContainerCheck.mm:
100         (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
101         * Plugins/WebPluginController.mm:
102         * WebCoreSupport/WebCachedFramePlatformData.h:
103         * WebCoreSupport/WebDeviceOrientationClient.mm:
104         * WebView/WebDelegateImplementationCaching.mm:
105         * WebView/WebHTMLView.mm:
106         * WebView/WebPDFDocumentExtras.mm:
107         * WebView/WebPolicyDelegate.mm:
108         (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
109         * WebView/WebView.mm:
110
111 2012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
112
113         Unreviewed, rolling out r135786.
114         http://trac.webkit.org/changeset/135786
115         https://bugs.webkit.org/show_bug.cgi?id=103379
116
117         It made 3 plugin tests timeout on several platforms (Requested
118         by Ossy on #webkit).
119
120         * Plugins/WebPluginController.mm:
121         * WebView/WebFrame.mm:
122         (-[WebFrame loadRequest:]):
123         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
124
125 2012-11-26  James Simonsen  <simonjam@chromium.org>
126
127         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
128         https://bugs.webkit.org/show_bug.cgi?id=102151
129
130         Reviewed by Adam Barth.
131
132         * Plugins/WebPluginController.mm:
133         * WebView/WebFrame.mm:
134         (-[WebFrame loadRequest:]):
135         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
136
137 2012-11-23  Alexis Menard  <alexis@webkit.org>
138
139         [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.
140         https://bugs.webkit.org/show_bug.cgi?id=102104
141
142         Reviewed by Julien Chaffraix.
143
144         Protect the new feature behind a feature flag.
145
146         * Configurations/FeatureDefines.xcconfig:
147
148 2012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
149
150         Disambiguate innerNodeFramePoint and mainFramePoint
151         https://bugs.webkit.org/show_bug.cgi?id=98139
152
153         Reviewed by Julien Chaffraix.
154
155         Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint.
156
157         * WebCoreSupport/WebContextMenuClient.mm:
158         (WebContextMenuClient::showContextMenu):
159
160 2012-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
161
162         Unreviewed, rolling out r135295.
163         http://trac.webkit.org/changeset/135295
164         https://bugs.webkit.org/show_bug.cgi?id=102834
165
166         This patch causes assertion to some layout tests on chromium
167         (Requested by jianli on #webkit).
168
169         * Plugins/WebPluginController.mm:
170         * WebView/WebFrame.mm:
171         (-[WebFrame loadRequest:]):
172         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
173
174 2012-11-20  James Simonsen  <simonjam@chromium.org>
175
176         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
177         https://bugs.webkit.org/show_bug.cgi?id=102151
178
179         Reviewed by Adam Barth.
180
181         * Plugins/WebPluginController.mm:
182         * WebView/WebFrame.mm:
183         (-[WebFrame loadRequest:]):
184         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
185
186 2012-11-19  Kihong Kwon  <kihong.kwon@samsung.com>
187
188         Add PROXIMITY_EVENTS feature
189         https://bugs.webkit.org/show_bug.cgi?id=102658
190
191         Reviewed by Kentaro Hara.
192
193         Add PROXIMITY_EVENTS feature to xcode project for WebKit.
194
195         * Configurations/FeatureDefines.xcconfig:
196
197 2012-11-16  Tony Chang  <tony@chromium.org>
198
199         Remove ENABLE_CSS_HIERARCHIES since it's no longer in use
200         https://bugs.webkit.org/show_bug.cgi?id=102554
201
202         Reviewed by Andreas Kling.
203
204         As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 ,
205         we're going to revist this feature once additional vendor support is
206         achieved.
207
208         * Configurations/FeatureDefines.xcconfig:
209
210 2012-11-15  Alexey Proskuryakov  <ap@apple.com>
211
212         Private Browsing is a per-page setting that sets a global value
213         https://bugs.webkit.org/show_bug.cgi?id=67870
214
215         Reviewed by Sam Weinig.
216
217         * WebCoreSupport/WebFrameNetworkingContext.h:
218         * WebCoreSupport/WebFrameNetworkingContext.mm:
219         Moved functions for managing global sessions from WebCore.
220
221         * WebCoreSupport/WebPlatformStrategies.h:
222         * WebCoreSupport/WebPlatformStrategies.mm:
223         (WebPlatformStrategies::defaultCookieStorage): Added. Uses WebFrameNetworkingContext
224         to reach the storage.
225
226         * WebView/WebPreferences.mm:
227         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Ditto.
228         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Ditto.
229
230         * WebView/WebPreferencesPrivate.h: Added a comment explaining that two functions
231         are not generic enough for use outside DRT (one of them had "testing" in name,
232         but another did not).
233
234         * WebView/WebView.mm:
235         (-[WebView _preferencesChanged:]): Create a global private browsing session when
236         the first view with private browsing is created, delete it when any window with
237         it disabled is created (since this comes from preferences, it applies to all
238         views equally, even though we are dealing with a single one here).
239         (-[WebView _cachedResponseForURL:]): Use main frame's networking context instead of
240         a global one.
241
242 2012-11-13  Timothy Hatcher  <timothy@apple.com>
243
244         Adjust the Web Inspector window title frame if needed to prevent it from intersecting the dock button.
245
246         https://bugs.webkit.org/show_bug.cgi?id=102073
247
248         Reviewed by Joseph Pecoraro.
249
250         * WebCoreSupport/WebInspectorClient.mm:
251         (-[WebInspectorWindow _customTitleFrame]): Added. Adjust the title frame.
252
253 2012-11-12  Simon Fraser  <simon.fraser@apple.com>
254
255         Build fix after r134346 and 134347.
256         
257         Use frameView.isFlipped, not frameView.flipped in the assertion.
258
259         * WebCoreSupport/WebInspectorClient.mm:
260         (-[WebInspectorWindowController window]):
261
262 2012-11-12  Timothy Hatcher  <timothy@apple.com>
263
264         Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
265
266         https://bugs.webkit.org/show_bug.cgi?id=102025
267
268         Reviewed by Joseph Pecoraro.
269
270         * Resources/Dock.pdf: Added.
271         * WebCoreSupport/WebInspectorClient.h:
272         * WebCoreSupport/WebInspectorClient.mm:
273         (-[WebInspectorWindow _cursorForResizeDirection:]): Added.
274         (WebInspectorClient::didResizeMainFrame): Call attachAvailabilityChanged instead.
275         (WebInspectorFrontendClient::attachAvailabilityChanged): Added.
276         (-[WebInspectorWindowController window]): Create the dock button and add it.
277         (-[WebInspectorWindowController attachWindow:]): Added.
278         (-[WebInspectorWindowController attach]): Call setAttachedWindow.
279         (-[WebInspectorWindowController detach]): Ditto.
280         (-[WebInspectorWindowController setDockingUnavailable:]): Added. Update hidden state of the dock button.
281
282 2012-11-08  Timothy Hatcher  <timothy@apple.com>
283
284         Always use a textured window for the Web Inspector.
285
286         https://bugs.webkit.org/show_bug.cgi?id=101693
287
288         Reviewed by Joseph Pecoraro.
289
290         * WebCoreSupport/WebInspectorClient.mm:
291         (-[WebInspectorWindowController window]): Removed the conditional for a textured window.
292
293 2012-11-08  Roger Fong  <roger_fong@apple.com>
294
295         Null check URL key entries into WebHistory hash table. 
296         https://bugs.webkit.org/show_bug.cgi?id=101664
297         <rdar://problem/12440852>
298
299         Reviewed by Brady Eidson.
300         
301         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.
302         This prevents the desired page navigation from taking effect. This is a workaround for the problem.
303         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
304         so that navigation can continue as expected.
305
306         * History/WebHistory.mm:
307         (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]):
308
309 2012-11-07  Andreas Kling  <akling@apple.com>
310
311         Remove build-webkit dependency on Java SDK for Apple Mac WebKit.
312         <http://webkit.org/b/101492>
313
314         Reviewed by Anders Carlsson.
315
316         * Plugins/WebJavaPlugIn.h: Removed.
317
318 2012-11-06  Adam Barth  <abarth@webkit.org>
319
320         Unreviewed attempt to fix the chromium-mac build.
321
322         * WebCoreSupport/WebSystemInterface.mm:
323         (InitWebCoreSystemInterface):
324
325 2012-11-06  Anders Carlsson  <andersca@apple.com>
326
327         Update Java related WKSI function names
328         https://bugs.webkit.org/show_bug.cgi?id=101414
329
330         Reviewed by Sam Weinig.
331
332         * WebCoreSupport/WebChromeClient.mm:
333         (WebChromeClient::unavailablePluginButtonClicked):
334         * WebCoreSupport/WebFrameLoaderClient.mm:
335         (isPlugInInactive):
336
337 2012-11-06  Alexey Proskuryakov  <ap@apple.com>
338
339         Clean up which storage cookie jar functions use
340         https://bugs.webkit.org/show_bug.cgi?id=101395
341
342         Reviewed by Brady Eidson.
343
344         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated for
345         two new functions.
346
347 2012-11-06  Andrey Lushnikov  <lushnikov@google.com>
348
349         Added console.clear() method
350
351         Web Inspector: add console.clear()
352         https://bugs.webkit.org/show_bug.cgi?id=101021
353
354         Reviewed by Vsevolod Vlasov.
355
356         * WebCoreSupport/WebChromeClient.mm:
357         (stringForMessageType): Added ClearMessageType case to switch
358
359 2012-11-05  Alexey Proskuryakov  <ap@apple.com>
360
361         Get rid of setCookieStoragePrivateBrowsingEnabled.
362         https://bugs.webkit.org/show_bug.cgi?id=101247
363
364         Reviewed by Brady Eidson.
365
366         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We no longer
367         have this function.
368
369 2012-11-03  Alexey Proskuryakov  <ap@apple.com>
370
371         Get rid of USE(CFURLSTORAGESESSIONS)
372         https://bugs.webkit.org/show_bug.cgi?id=101131
373
374         Reviewed by Sam Weinig.
375
376         * WebView/WebPreferences.mm:
377         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
378         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
379         * WebView/WebView.mm:
380         (-[WebView _cachedResponseForURL:]):
381
382 2012-11-02  Anders Carlsson  <andersca@apple.com>
383
384         Don't instantiate the Java plug-in if it's inactive
385         https://bugs.webkit.org/show_bug.cgi?id=101102
386         <rdar://problem/12595679>
387
388         Reviewed by Andreas Kling.
389
390         * WebCoreSupport/WebChromeClient.mm:
391         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
392         The RenderEmbeddedObject::PluginInactive reason should always result in a button being shown.
393
394         (WebChromeClient::unavailablePluginButtonClicked):
395         If the Java plug-in is inactive, call WKJLReportWebComponentsUsed() to reactivate the plug-in and
396         then reload the page.
397
398         * WebCoreSupport/WebFrameLoaderClient.mm:
399         (isOracleJavaPlugIn):
400         (isPlugInInactive):
401         Helper functions.
402
403         (WebFrameLoaderClient::createPlugin):
404         If the plug-in is inactive, set the appropriate unavailability reason on the renderer.
405
406 2012-11-02  Simon Fraser  <simon.fraser@apple.com>
407
408         Enable SUBPIXEL_LAYOUT on Mac
409         https://bugs.webkit.org/show_bug.cgi?id=101076
410
411         Reviewed by Dave Hyatt.
412
413         Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES.
414
415         * Configurations/FeatureDefines.xcconfig:
416
417 2012-11-02  Adam Barth  <abarth@webkit.org>
418
419         ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development
420         https://bugs.webkit.org/show_bug.cgi?id=100711
421
422         Reviewed by Eric Seidel.
423
424         * Configurations/FeatureDefines.xcconfig:
425
426 2012-11-01  Adam Roben  <aroben@webkit.org>
427
428         [WK1] Fixed-position elements jiggle up and down slightly during scrolling on a Retina display
429         https://bugs.webkit.org/show_bug.cgi?id=100957
430
431         Reviewed by Simon Fraser.
432
433         WebCore doesn't yet support subpixel scrolling. WebKit2 forces
434         scrolling to always be integral. Now WebKit1 forces this as well.
435
436         I'm not sure how to write a test for this.
437
438         * WebView/WebDynamicScrollBarsView.mm:
439         (shouldRoundScrollOrigin): Returns YES if there are any position:fixed
440         or position:sticky elements in the page.
441         (-[WebDynamicScrollBarsView scrollClipView:toPoint:]): Round the
442         scroll origin to the nearest pixel if needed.
443
444 2012-10-31  Anders Carlsson  <andersca@apple.com>
445
446         Fix build.
447         <rdar://problem/12612207>.
448
449         Reviewed by Sam Weinig.
450
451         * Panels/WebAuthenticationPanel.m:
452         (-[WebAuthenticationPanel loadNib]):
453
454 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
455
456         [Mac] Sync up FeatureDefine Configuration Files
457         https://bugs.webkit.org/show_bug.cgi?id=100171
458
459         Reviewed by David Kilzer.
460
461         Follow up to better coordinate with iOS feature defines. Make:
462
463           - ENABLE_FILTERS always on
464           - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values
465
466         * Configurations/FeatureDefines.xcconfig:
467
468 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
469
470         [Mac] Sync up FeatureDefine Configuration Files
471         https://bugs.webkit.org/show_bug.cgi?id=100171
472
473         Reviewed by David Kilzer.
474
475         Ensure an identical FeatureDefine files across all projects. Changes:
476
477           - ENABLE_CSS_BOX_DECORATION_BREAK should be in all
478           - ENABLE_PDFKIT_PLUGIN should be in all
479           - ENABLE_RESOLUTION_MEDIA_QUERY should be in all
480           - ENABLE_ENCRYPTED_MEDIA should be in all
481           - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value
482           - Some alphabetical ordering cleanup
483
484         * Configurations/FeatureDefines.xcconfig:
485
486 2012-10-29  Anders Carlsson  <andersca@apple.com>
487
488         Build WebKit as C++11 on Mac
489         https://bugs.webkit.org/show_bug.cgi?id=100720
490
491         Reviewed by Daniel Bates.
492
493         * Configurations/Base.xcconfig:
494         Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
495
496         * History/WebBackForwardList.mm:
497         (-[WebBackForwardList description]):
498         * History/WebHistoryItem.mm:
499         (-[WebHistoryItem description]):
500         Add static_casts to prevent implicit type conversions in non-constant initializer lists.
501
502 2012-10-28  Mark Rowe  <mrowe@apple.com>
503
504         Simplify Xcode configuration settings that used to vary between OS versions.
505
506         Reviewed by Dan Bernstein.
507
508         * Configurations/Base.xcconfig:
509         * Configurations/DebugRelease.xcconfig:
510         * Configurations/WebKit.xcconfig:
511
512 2012-10-28  Mark Rowe  <mrowe@apple.com>
513
514         Remove references to unsupported OS and Xcode versions.
515
516         Reviewed by Anders Carlsson.
517
518         * Configurations/Base.xcconfig:
519         * Configurations/CompilerVersion.xcconfig: Removed.
520         * Configurations/DebugRelease.xcconfig:
521         * Configurations/Version.xcconfig:
522
523 2012-10-29  Enrica Casucci  <enrica@apple.com>
524
525         Add ENABLE_USERSELECT_ALL feature flag.
526         https://bugs.webkit.org/show_bug.cgi?id=100559
527
528         Reviewed by Eric Seidel.
529
530         * Configurations/FeatureDefines.xcconfig:
531
532 2012-10-27  Alexey Proskuryakov  <ap@apple.com>
533
534         All tests crash in WebKit1 mode
535         https://bugs.webkit.org/show_bug.cgi?id=100602
536
537         Reviewed by Sam Weinig.
538
539         * WebView/WebView.mm: (+[WebView _setLoadResourcesSerially:]): Resource load
540         scheduler is created via a strategy, so strategies need to be initialized before
541         using it.
542
543 2012-10-27  Dan Bernstein  <mitz@apple.com>
544
545         REAL_PLATFORM_NAME build setting is no longer needed
546         https://bugs.webkit.org/show_bug.cgi?id=100587
547
548         Reviewed by Mark Rowe.
549
550         Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
551         to PLATFORM_NAME.
552
553         * Configurations/Base.xcconfig:
554         * Configurations/CompilerVersion.xcconfig:
555         * Configurations/DebugRelease.xcconfig:
556         * Configurations/FeatureDefines.xcconfig:
557         * Configurations/Version.xcconfig:
558         * Configurations/WebKit.xcconfig:
559
560 2012-10-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
561
562         Add feature flags for CSS Device Adaptation
563         https://bugs.webkit.org/show_bug.cgi?id=95960
564
565         Reviewed by Kenneth Rohde Christiansen.
566
567         * Configurations/FeatureDefines.xcconfig:
568
569 2012-10-25  Dominik Röttsches  <dominik.rottsches@intel.com>
570
571         Conditionalize XHR timeout support
572         https://bugs.webkit.org/show_bug.cgi?id=100356
573
574         Reviewed by Adam Barth.
575
576         Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
577         Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
578
579         * Configurations/FeatureDefines.xcconfig:
580
581 2012-10-24  Timothy Hatcher  <timothy@apple.com>
582
583         Fix a crash seen during the Inspector tests on the WebKit1 bots.
584
585         Reviewed by Filip Pizlo.
586
587         * WebCoreSupport/WebInspectorClient.mm:
588         (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
589         is not the same when the Inspector is docked.
590
591 2012-10-24  Brady Eidson  <beidson@apple.com>
592
593         Add a strategy for loader customization.
594         https://bugs.webkit.org/show_bug.cgi?id=100278
595
596         Reviewed by Alexey Proskuryakov.
597
598         * WebCoreSupport/WebPlatformStrategies.h:
599         (WebPlatformStrategies):
600         * WebCoreSupport/WebPlatformStrategies.mm:
601         (WebPlatformStrategies::createLoaderStrategy):
602
603 2012-10-24  Timothy Hatcher  <timothy@apple.com>
604
605         Make the Inspector WKView/WebView become the first responder when bringToFront is called.
606
607         https://bugs.webkit.org/show_bug.cgi?id=100209
608
609         Reviewed by Joseph Pecoraro.
610
611         * WebCoreSupport/WebInspectorClient.mm:
612         (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
613
614 2012-10-23  Alexey Proskuryakov  <ap@apple.com>
615
616         Add a strategy for shared workers
617         https://bugs.webkit.org/show_bug.cgi?id=100165
618
619         Reviewed by Brady Eidson.
620
621         * WebCoreSupport/WebPlatformStrategies.h:
622         * WebCoreSupport/WebPlatformStrategies.mm:
623         (WebPlatformStrategies::createPasteboardStrategy):
624         (WebPlatformStrategies::createSharedWorkerStrategy):
625         (WebPlatformStrategies::createVisitedLinkStrategy):
626
627 2012-10-24  Eric Carlson  <eric.carlson@apple.com>
628
629         Allow ports to override text track rendering style
630         https://bugs.webkit.org/show_bug.cgi?id=97800
631         <rdar://problem/12044964>
632
633         Reviewed by Maciej Stachowiak.
634
635         * WebCoreSupport/WebSystemInterface.mm:
636         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
637
638 2012-10-23  Dan Bernstein  <mitz@apple.com>
639
640         WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
641         https://bugs.webkit.org/show_bug.cgi?id=100188
642
643         Reviewed by Sam Weinig.
644
645         * WebView/WebView.mm:
646         (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
647         code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
648         default. Changed to refer to that default key by name.
649
650 2012-10-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
651
652         Add support for resolution media query
653         https://bugs.webkit.org/show_bug.cgi?id=99077
654
655         Reviewed by Antti Koivisto.
656
657         Add support for the RESOLUTION_MEDIA_QUERY feature flag.
658
659         * Configurations/FeatureDefines.xcconfig:
660
661 2012-10-21  Andreas Kling  <kling@webkit.org>
662
663         Remove Page::javaScriptURLsAreAllowed setting.
664         <http://webkit.org/b/99944>
665
666         Reviewed by Anders Carlsson.
667
668         * WebKit.order:
669         * WebView/WebView.mm:
670         * WebView/WebViewPrivate.h:
671
672 2012-10-19  Dongwoo Joshua Im  <dw.im@samsung.com>
673
674         Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
675         https://bugs.webkit.org/show_bug.cgi?id=99804
676
677         Reviewed by Julien Chaffraix.
678
679         CSS3 text related properties will be implemented under this flag,
680         including text decoration, text-align-last, and text-justify.
681
682         * Configurations/FeatureDefines.xcconfig:
683
684 2012-10-18  Pablo Flouret  <pablof@motorola.com>
685
686         Implement css3-conditional's @supports rule
687         https://bugs.webkit.org/show_bug.cgi?id=86146
688
689         Reviewed by Antti Koivisto.
690
691         * Configurations/FeatureDefines.xcconfig:
692             Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
693
694 2012-10-17  Joseph Pecoraro  <pecoraro@apple.com>
695
696         [Mac] Uninitialized Members in WebDataSourcePrivate
697         https://bugs.webkit.org/show_bug.cgi?id=99617
698
699         Reviewed by David Kilzer.
700
701         Initialize BOOL member variables.
702
703         * WebView/WebDataSource.mm:
704         (WebDataSourcePrivate::WebDataSourcePrivate):
705
706 2012-10-17  Mark Rowe  <mrowe@apple.com>
707
708         Fix the build with a newer version of clang.
709
710         Reviewed by Dan Bernstein.
711
712         Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
713         While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
714         with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
715         therefore generates a warning in newer versions of the compiler.
716
717         Fixes <rdar://problem/12503709>.
718
719         * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
720         * Misc/WebCoreStatistics.mm: Ditto.
721         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
722         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
723
724 2012-10-16  Jian Li  <jianli@chromium.org>
725
726         Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
727         https://bugs.webkit.org/show_bug.cgi?id=98975
728
729         Reviewed by Adam Barth.
730
731         Renaming is needed to better match with the draggable region code.
732
733         * Configurations/FeatureDefines.xcconfig:
734
735 2012-10-15  Dan Bernstein  <mitz@apple.com>
736
737         WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
738         https://bugs.webkit.org/show_bug.cgi?id=99113
739
740         Reviewed by Tim Horton.
741
742         * WebCoreSupport/WebSystemInterface.mm:
743         (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
744
745 2012-10-15  David Kilzer  <ddkilzer@apple.com>
746
747         Move framework and library linking into WebKit.xcconfig
748         <http://webkit.org/b/99284>
749
750         Reviewed by Mark Rowe.
751
752         * Configurations/WebKit.xcconfig: Move frameworks and libraries
753         link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
754
755 2012-10-14  Jon Lee  <jonlee@apple.com>
756
757         Allow notification origin permission request when no js callback is provided
758         https://bugs.webkit.org/show_bug.cgi?id=63615
759         <rdar://problem/11059590>
760
761         Reviewed by Sam Weinig.
762
763         Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
764         we do not fall through to calling the standard API's callback if the legacy API's callback is null.
765
766         * WebCoreSupport/WebNotificationClient.mm:
767         (WebCore):
768         (-[WebNotificationPolicyListener initWithVoidCallback:]):
769         (-[WebNotificationPolicyListener allow]):
770         (-[WebNotificationPolicyListener deny]):
771
772 2012-10-14  Sam Weinig  <sam@webkit.org>
773
774         Make UserScript and UserStyleSheet value objects that are copyable
775         https://bugs.webkit.org/show_bug.cgi?id=99275
776
777         Reviewed by Tim Horton.
778
779         * WebView/WebView.mm:
780         (-[WebView _injectMailQuirksScript]):
781         (-[WebView _injectOutlookQuirksScript]):
782         Update for new PageGroup function signatures.
783
784 2012-10-10  Brady Eidson  <beidson@apple.com>
785
786         Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
787         https://bugs.webkit.org/show_bug.cgi?id=98976
788
789         Reviewed by Anders Carlsson.
790
791         * WebView/WebDataSource.mm:
792         (-[WebDataSource data]):
793
794 2012-10-10  Jer Noble  <jer.noble@apple.com>
795
796         Disallow full screen mode keyboard access by default.
797         https://bugs.webkit.org/show_bug.cgi?id=98971
798         <rdar://problem/12474226>
799
800         Reviewed by Sam Weinig.
801
802         Only support full screen if keyboard access is not requested.
803
804         * WebView/WebView.mm:
805         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
806
807 2012-10-10  Jon Lee  <jonlee@apple.com>
808
809         [WK2] Activate plugins when user clicks on snapshot
810         https://bugs.webkit.org/show_bug.cgi?id=98328
811         <rdar://problem/12426681>
812
813         Reviewed by Brady Eidson.
814
815         * WebCoreSupport/WebFrameLoaderClient.h:
816         * WebCoreSupport/WebFrameLoaderClient.mm:
817         (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
818
819 2012-10-10  Brady Eidson  <beidson@apple.com>
820
821         Switch CachedResource over from SharedBuffer to a new ResourceBuffer
822         https://bugs.webkit.org/show_bug.cgi?id=98541
823
824         Reviewed by Anders Carlsson.
825
826         * WebView/WebHTMLView.mm:
827         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
828
829 2012-10-10  Simon Fraser  <simon.fraser@apple.com>
830
831         Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
832         https://bugs.webkit.org/show_bug.cgi?id=98839
833
834         Reviewed by Sam Weinig.
835
836         To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
837         in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
838         but store the computed rect in m_visibleRect.
839         
840         Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
841         layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
842
843         * WebView/WebFrame.mm:
844         (-[WebFrame _layerTreeAsText]):
845
846 2012-10-09  Jian Li  <jianli@chromium.org>
847
848         Update the CSS property used to support draggable regions.
849         https://bugs.webkit.org/show_bug.cgi?id=97156
850
851         Reviewed by Adam Barth.
852
853         The CSS property to support draggable regions, guarded under
854         WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
855         confusion with DASHBOARD_SUPPORT feature.
856
857         Also update the code to use the new name annotatedRegions to work for
858         both features.
859
860         * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
861         * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
862         * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
863         (WebChromeClient::annotatedRegionsChanged):
864         * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
865         (-[WebView _dashboardRegions]):
866
867 2012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
868
869         Unreviewed, rolling out r130811 and r130821.
870         http://trac.webkit.org/changeset/130811
871         http://trac.webkit.org/changeset/130821
872         https://bugs.webkit.org/show_bug.cgi?id=98831
873
874         Broke date-suggestion-picker-appearance-with-scroll-bar.html
875         (Requested by abarth|gardening on #webkit).
876
877         * WebView/WebFullScreenController.mm:
878         (screenRectOfContents):
879         * WebView/WebRenderNode.mm:
880         (copyRenderNode):
881
882 2012-10-08  Kiran Muppala  <cmuppala@apple.com>
883
884         Throttle DOM timers on hidden pages.
885         https://bugs.webkit.org/show_bug.cgi?id=98474
886
887         Reviewed by Maciej Stachowiak.
888
889         Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
890         DumpRenderTree to modify the visibility state of a page.  The latter
891         is needed to test throttling of timers on hidden pages through DumpRenderTree.
892
893         * Configurations/FeatureDefines.xcconfig:
894         * WebView/WebView.mm:
895         (-[WebView _setVisibilityState:isInitialState:]):
896         * WebView/WebViewPrivate.h:
897
898 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
899
900         Rename first/second to key/value in HashMap iterators
901         https://bugs.webkit.org/show_bug.cgi?id=82784
902
903         Reviewed by Eric Seidel.
904
905         * History/WebHistory.mm:
906         (-[WebHistoryPrivate removeItemFromDateCaches:]):
907         (-[WebHistoryPrivate orderedLastVisitedDays]):
908         (WebHistoryWriter::WebHistoryWriter):
909         * Misc/WebCoreStatistics.mm:
910         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
911         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
912         * Plugins/Hosted/NetscapePluginHostManager.mm:
913         (WebKit::NetscapePluginHostManager::hostForPlugin):
914         (WebKit::NetscapePluginHostManager::pluginHostDied):
915         (WebKit::NetscapePluginHostManager::didCreateWindow):
916         * Plugins/Hosted/NetscapePluginHostProxy.mm:
917         (WebKit::NetscapePluginHostProxy::pluginHostDied):
918         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
919         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
920         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
921         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
922         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
923         (WebKit::NetscapePluginInstanceProxy::destroy):
924         (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
925         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
926         * Plugins/Hosted/ProxyInstance.mm:
927         (WebKit::ProxyInstance::methodNamed):
928         (WebKit::ProxyInstance::fieldNamed):
929         * Plugins/WebNetscapePluginView.mm:
930         (-[WebNetscapePluginView stopTimers]):
931         (-[WebNetscapePluginView startTimers]):
932         * WebCoreSupport/WebNotificationClient.mm:
933         (WebNotificationClient::show):
934         (WebNotificationClient::clearNotifications):
935         (WebNotificationClient::notificationObjectDestroyed):
936         * WebView/WebHTMLView.mm:
937         (commandNameForSelector):
938
939 2012-10-06  Dan Bernstein  <mitz@apple.com>
940
941         WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
942         https://bugs.webkit.org/show_bug.cgi?id=98601
943
944         Reviewed by Darin Adler.
945
946         * WebView/WebView.mm:
947         (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
948         kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
949         the value YES.
950
951 2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
952
953         Unreviewed, rolling out r130556 and r130564.
954         http://trac.webkit.org/changeset/130556
955         http://trac.webkit.org/changeset/130564
956         https://bugs.webkit.org/show_bug.cgi?id=98572
957
958         The patch wasn't reviewed by a reviewer and it is breaking
959         Chromium Windows (Requested by jchaffraix on #webkit).
960
961         * WebCoreSupport/WebSystemInterface.mm:
962         (InitWebCoreSystemInterface):
963
964 2012-10-05  Tim Horton  <timothy_horton@apple.com>
965
966         [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
967         https://bugs.webkit.org/show_bug.cgi?id=98565
968         <rdar://problem/12436468>
969
970         Reviewed by Simon Fraser.
971
972         Add wkCGContextDrawsWithCorrectShadowOffsets.
973
974         * WebCoreSupport/WebSystemInterface.mm:
975         (InitWebCoreSystemInterface):
976
977 2012-10-04  Eric Carlson  <eric.carlson@apple.com>
978
979         Allow ports to override text track rendering style
980         https://bugs.webkit.org/show_bug.cgi?id=97800
981         <rdar://problem/12044964>
982
983         Reviewed by Silvia Pfeiffer.
984
985         Add WCSI support for new WKSI caption functions.
986
987         * WebCoreSupport/WebSystemInterface.mm:
988         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
989
990 2012-10-04  Jon Lee  <jonlee@apple.com>
991
992         Add a setting to enable plugin snapshotting
993         https://bugs.webkit.org/show_bug.cgi?id=98319
994         <rdar://problem/12426480>
995
996         Reviewed by Brady Eidson.
997
998         Expose plugInSnapshottingEnabled preference to WebKit clients.
999
1000         * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
1001         * WebView/WebPreferences.mm:
1002         (+[WebPreferences initialize]): Setting is turned off by default.
1003         (-[WebPreferences plugInSnapshottingEnabled]):
1004         (-[WebPreferences setPlugInSnapshottingEnabled:]):
1005         * WebView/WebPreferencesPrivate.h:
1006         * WebView/WebView.mm:
1007         (-[WebView _preferencesChanged:]): Update settings based on preference.
1008
1009 2012-10-04  Rik Cabanier  <cabanier@adobe.com>
1010
1011         Turn Compositing on by default in WebKit build
1012         https://bugs.webkit.org/show_bug.cgi?id=98315
1013
1014         Reviewed by Simon Fraser.
1015
1016         enable -webkit-blend-mode on trunk.
1017
1018         * Configurations/FeatureDefines.xcconfig:
1019
1020 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
1021
1022         Final part of "sync" to "flush" renaming
1023         https://bugs.webkit.org/show_bug.cgi?id=98430
1024
1025         Reviewed by Tim Horton.
1026
1027         Change method names on GraphicsLayer and GraphicsLayerClient that
1028         refer to "sync" to use the term "flush" instead, to be consistent
1029         with the rest of the code.
1030
1031         * WebView/WebView.mm:
1032
1033 2012-10-03  Benjamin Poulain  <bpoulain@apple.com>
1034
1035         [WK2] Support all attributes of GeolocationPosition
1036         https://bugs.webkit.org/show_bug.cgi?id=98212
1037
1038         Reviewed by Sam Weinig.
1039
1040         Add an internal constructor for the sake of testing.
1041         A similar API is used on iOS.
1042
1043         * WebView/WebGeolocationPosition.mm:
1044         (-[WebGeolocationPosition initWithGeolocationPosition:]):
1045
1046 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
1047
1048         Standardize on "flush" terminology for compositing layer flushing/syncing
1049         https://bugs.webkit.org/show_bug.cgi?id=98321
1050
1051         Reviewed by Simon Fraser.
1052
1053         Rename compositing-related methods that refer to "syncing" to instead
1054         refer to "flushing".
1055
1056         * WebCoreSupport/WebChromeClient.h:
1057         * WebCoreSupport/WebChromeClient.mm:
1058         (WebChromeClient::scheduleCompositingLayerFlush):
1059         * WebView/WebView.mm:
1060         (-[WebView _flushCompositingChanges]):
1061         (LayerFlushController::flushLayers):
1062         (-[WebView _scheduleCompositingLayerFlush]):
1063         * WebView/WebViewInternal.h:
1064
1065 == Rolled over to ChangeLog-2012-10-02 ==