REAL_PLATFORM_NAME build setting is no longer needed
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2012-10-27  Dan Bernstein  <mitz@apple.com>
2
3         REAL_PLATFORM_NAME build setting is no longer needed
4         https://bugs.webkit.org/show_bug.cgi?id=100587
5
6         Reviewed by Mark Rowe.
7
8         Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
9         to PLATFORM_NAME.
10
11         * Configurations/Base.xcconfig:
12         * Configurations/CompilerVersion.xcconfig:
13         * Configurations/DebugRelease.xcconfig:
14         * Configurations/FeatureDefines.xcconfig:
15         * Configurations/Version.xcconfig:
16         * Configurations/WebKit.xcconfig:
17
18 2012-10-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
19
20         Add feature flags for CSS Device Adaptation
21         https://bugs.webkit.org/show_bug.cgi?id=95960
22
23         Reviewed by Kenneth Rohde Christiansen.
24
25         * Configurations/FeatureDefines.xcconfig:
26
27 2012-10-25  Dominik Röttsches  <dominik.rottsches@intel.com>
28
29         Conditionalize XHR timeout support
30         https://bugs.webkit.org/show_bug.cgi?id=100356
31
32         Reviewed by Adam Barth.
33
34         Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
35         Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
36
37         * Configurations/FeatureDefines.xcconfig:
38
39 2012-10-24  Timothy Hatcher  <timothy@apple.com>
40
41         Fix a crash seen during the Inspector tests on the WebKit1 bots.
42
43         Reviewed by Filip Pizlo.
44
45         * WebCoreSupport/WebInspectorClient.mm:
46         (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
47         is not the same when the Inspector is docked.
48
49 2012-10-24  Brady Eidson  <beidson@apple.com>
50
51         Add a strategy for loader customization.
52         https://bugs.webkit.org/show_bug.cgi?id=100278
53
54         Reviewed by Alexey Proskuryakov.
55
56         * WebCoreSupport/WebPlatformStrategies.h:
57         (WebPlatformStrategies):
58         * WebCoreSupport/WebPlatformStrategies.mm:
59         (WebPlatformStrategies::createLoaderStrategy):
60
61 2012-10-24  Timothy Hatcher  <timothy@apple.com>
62
63         Make the Inspector WKView/WebView become the first responder when bringToFront is called.
64
65         https://bugs.webkit.org/show_bug.cgi?id=100209
66
67         Reviewed by Joseph Pecoraro.
68
69         * WebCoreSupport/WebInspectorClient.mm:
70         (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
71
72 2012-10-23  Alexey Proskuryakov  <ap@apple.com>
73
74         Add a strategy for shared workers
75         https://bugs.webkit.org/show_bug.cgi?id=100165
76
77         Reviewed by Brady Eidson.
78
79         * WebCoreSupport/WebPlatformStrategies.h:
80         * WebCoreSupport/WebPlatformStrategies.mm:
81         (WebPlatformStrategies::createPasteboardStrategy):
82         (WebPlatformStrategies::createSharedWorkerStrategy):
83         (WebPlatformStrategies::createVisitedLinkStrategy):
84
85 2012-10-24  Eric Carlson  <eric.carlson@apple.com>
86
87         Allow ports to override text track rendering style
88         https://bugs.webkit.org/show_bug.cgi?id=97800
89         <rdar://problem/12044964>
90
91         Reviewed by Maciej Stachowiak.
92
93         * WebCoreSupport/WebSystemInterface.mm:
94         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
95
96 2012-10-23  Dan Bernstein  <mitz@apple.com>
97
98         WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
99         https://bugs.webkit.org/show_bug.cgi?id=100188
100
101         Reviewed by Sam Weinig.
102
103         * WebView/WebView.mm:
104         (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
105         code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
106         default. Changed to refer to that default key by name.
107
108 2012-10-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
109
110         Add support for resolution media query
111         https://bugs.webkit.org/show_bug.cgi?id=99077
112
113         Reviewed by Antti Koivisto.
114
115         Add support for the RESOLUTION_MEDIA_QUERY feature flag.
116
117         * Configurations/FeatureDefines.xcconfig:
118
119 2012-10-21  Andreas Kling  <kling@webkit.org>
120
121         Remove Page::javaScriptURLsAreAllowed setting.
122         <http://webkit.org/b/99944>
123
124         Reviewed by Anders Carlsson.
125
126         * WebKit.order:
127         * WebView/WebView.mm:
128         * WebView/WebViewPrivate.h:
129
130 2012-10-19  Dongwoo Joshua Im  <dw.im@samsung.com>
131
132         Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
133         https://bugs.webkit.org/show_bug.cgi?id=99804
134
135         Reviewed by Julien Chaffraix.
136
137         CSS3 text related properties will be implemented under this flag,
138         including text decoration, text-align-last, and text-justify.
139
140         * Configurations/FeatureDefines.xcconfig:
141
142 2012-10-18  Pablo Flouret  <pablof@motorola.com>
143
144         Implement css3-conditional's @supports rule
145         https://bugs.webkit.org/show_bug.cgi?id=86146
146
147         Reviewed by Antti Koivisto.
148
149         * Configurations/FeatureDefines.xcconfig:
150             Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
151
152 2012-10-17  Joseph Pecoraro  <pecoraro@apple.com>
153
154         [Mac] Uninitialized Members in WebDataSourcePrivate
155         https://bugs.webkit.org/show_bug.cgi?id=99617
156
157         Reviewed by David Kilzer.
158
159         Initialize BOOL member variables.
160
161         * WebView/WebDataSource.mm:
162         (WebDataSourcePrivate::WebDataSourcePrivate):
163
164 2012-10-17  Mark Rowe  <mrowe@apple.com>
165
166         Fix the build with a newer version of clang.
167
168         Reviewed by Dan Bernstein.
169
170         Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
171         While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
172         with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
173         therefore generates a warning in newer versions of the compiler.
174
175         Fixes <rdar://problem/12503709>.
176
177         * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
178         * Misc/WebCoreStatistics.mm: Ditto.
179         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
180         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
181
182 2012-10-16  Jian Li  <jianli@chromium.org>
183
184         Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
185         https://bugs.webkit.org/show_bug.cgi?id=98975
186
187         Reviewed by Adam Barth.
188
189         Renaming is needed to better match with the draggable region code.
190
191         * Configurations/FeatureDefines.xcconfig:
192
193 2012-10-15  Dan Bernstein  <mitz@apple.com>
194
195         WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
196         https://bugs.webkit.org/show_bug.cgi?id=99113
197
198         Reviewed by Tim Horton.
199
200         * WebCoreSupport/WebSystemInterface.mm:
201         (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
202
203 2012-10-15  David Kilzer  <ddkilzer@apple.com>
204
205         Move framework and library linking into WebKit.xcconfig
206         <http://webkit.org/b/99284>
207
208         Reviewed by Mark Rowe.
209
210         * Configurations/WebKit.xcconfig: Move frameworks and libraries
211         link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
212
213 2012-10-14  Jon Lee  <jonlee@apple.com>
214
215         Allow notification origin permission request when no js callback is provided
216         https://bugs.webkit.org/show_bug.cgi?id=63615
217         <rdar://problem/11059590>
218
219         Reviewed by Sam Weinig.
220
221         Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
222         we do not fall through to calling the standard API's callback if the legacy API's callback is null.
223
224         * WebCoreSupport/WebNotificationClient.mm:
225         (WebCore):
226         (-[WebNotificationPolicyListener initWithVoidCallback:]):
227         (-[WebNotificationPolicyListener allow]):
228         (-[WebNotificationPolicyListener deny]):
229
230 2012-10-14  Sam Weinig  <sam@webkit.org>
231
232         Make UserScript and UserStyleSheet value objects that are copyable
233         https://bugs.webkit.org/show_bug.cgi?id=99275
234
235         Reviewed by Tim Horton.
236
237         * WebView/WebView.mm:
238         (-[WebView _injectMailQuirksScript]):
239         (-[WebView _injectOutlookQuirksScript]):
240         Update for new PageGroup function signatures.
241
242 2012-10-10  Brady Eidson  <beidson@apple.com>
243
244         Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
245         https://bugs.webkit.org/show_bug.cgi?id=98976
246
247         Reviewed by Anders Carlsson.
248
249         * WebView/WebDataSource.mm:
250         (-[WebDataSource data]):
251
252 2012-10-10  Jer Noble  <jer.noble@apple.com>
253
254         Disallow full screen mode keyboard access by default.
255         https://bugs.webkit.org/show_bug.cgi?id=98971
256         <rdar://problem/12474226>
257
258         Reviewed by Sam Weinig.
259
260         Only support full screen if keyboard access is not requested.
261
262         * WebView/WebView.mm:
263         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
264
265 2012-10-10  Jon Lee  <jonlee@apple.com>
266
267         [WK2] Activate plugins when user clicks on snapshot
268         https://bugs.webkit.org/show_bug.cgi?id=98328
269         <rdar://problem/12426681>
270
271         Reviewed by Brady Eidson.
272
273         * WebCoreSupport/WebFrameLoaderClient.h:
274         * WebCoreSupport/WebFrameLoaderClient.mm:
275         (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
276
277 2012-10-10  Brady Eidson  <beidson@apple.com>
278
279         Switch CachedResource over from SharedBuffer to a new ResourceBuffer
280         https://bugs.webkit.org/show_bug.cgi?id=98541
281
282         Reviewed by Anders Carlsson.
283
284         * WebView/WebHTMLView.mm:
285         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
286
287 2012-10-10  Simon Fraser  <simon.fraser@apple.com>
288
289         Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
290         https://bugs.webkit.org/show_bug.cgi?id=98839
291
292         Reviewed by Sam Weinig.
293
294         To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
295         in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
296         but store the computed rect in m_visibleRect.
297         
298         Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
299         layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
300
301         * WebView/WebFrame.mm:
302         (-[WebFrame _layerTreeAsText]):
303
304 2012-10-09  Jian Li  <jianli@chromium.org>
305
306         Update the CSS property used to support draggable regions.
307         https://bugs.webkit.org/show_bug.cgi?id=97156
308
309         Reviewed by Adam Barth.
310
311         The CSS property to support draggable regions, guarded under
312         WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
313         confusion with DASHBOARD_SUPPORT feature.
314
315         Also update the code to use the new name annotatedRegions to work for
316         both features.
317
318         * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
319         * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
320         * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
321         (WebChromeClient::annotatedRegionsChanged):
322         * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
323         (-[WebView _dashboardRegions]):
324
325 2012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
326
327         Unreviewed, rolling out r130811 and r130821.
328         http://trac.webkit.org/changeset/130811
329         http://trac.webkit.org/changeset/130821
330         https://bugs.webkit.org/show_bug.cgi?id=98831
331
332         Broke date-suggestion-picker-appearance-with-scroll-bar.html
333         (Requested by abarth|gardening on #webkit).
334
335         * WebView/WebFullScreenController.mm:
336         (screenRectOfContents):
337         * WebView/WebRenderNode.mm:
338         (copyRenderNode):
339
340 2012-10-08  Kiran Muppala  <cmuppala@apple.com>
341
342         Throttle DOM timers on hidden pages.
343         https://bugs.webkit.org/show_bug.cgi?id=98474
344
345         Reviewed by Maciej Stachowiak.
346
347         Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
348         DumpRenderTree to modify the visibility state of a page.  The latter
349         is needed to test throttling of timers on hidden pages through DumpRenderTree.
350
351         * Configurations/FeatureDefines.xcconfig:
352         * WebView/WebView.mm:
353         (-[WebView _setVisibilityState:isInitialState:]):
354         * WebView/WebViewPrivate.h:
355
356 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
357
358         Rename first/second to key/value in HashMap iterators
359         https://bugs.webkit.org/show_bug.cgi?id=82784
360
361         Reviewed by Eric Seidel.
362
363         * History/WebHistory.mm:
364         (-[WebHistoryPrivate removeItemFromDateCaches:]):
365         (-[WebHistoryPrivate orderedLastVisitedDays]):
366         (WebHistoryWriter::WebHistoryWriter):
367         * Misc/WebCoreStatistics.mm:
368         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
369         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
370         * Plugins/Hosted/NetscapePluginHostManager.mm:
371         (WebKit::NetscapePluginHostManager::hostForPlugin):
372         (WebKit::NetscapePluginHostManager::pluginHostDied):
373         (WebKit::NetscapePluginHostManager::didCreateWindow):
374         * Plugins/Hosted/NetscapePluginHostProxy.mm:
375         (WebKit::NetscapePluginHostProxy::pluginHostDied):
376         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
377         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
378         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
379         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
380         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
381         (WebKit::NetscapePluginInstanceProxy::destroy):
382         (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
383         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
384         * Plugins/Hosted/ProxyInstance.mm:
385         (WebKit::ProxyInstance::methodNamed):
386         (WebKit::ProxyInstance::fieldNamed):
387         * Plugins/WebNetscapePluginView.mm:
388         (-[WebNetscapePluginView stopTimers]):
389         (-[WebNetscapePluginView startTimers]):
390         * WebCoreSupport/WebNotificationClient.mm:
391         (WebNotificationClient::show):
392         (WebNotificationClient::clearNotifications):
393         (WebNotificationClient::notificationObjectDestroyed):
394         * WebView/WebHTMLView.mm:
395         (commandNameForSelector):
396
397 2012-10-06  Dan Bernstein  <mitz@apple.com>
398
399         WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
400         https://bugs.webkit.org/show_bug.cgi?id=98601
401
402         Reviewed by Darin Adler.
403
404         * WebView/WebView.mm:
405         (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
406         kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
407         the value YES.
408
409 2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
410
411         Unreviewed, rolling out r130556 and r130564.
412         http://trac.webkit.org/changeset/130556
413         http://trac.webkit.org/changeset/130564
414         https://bugs.webkit.org/show_bug.cgi?id=98572
415
416         The patch wasn't reviewed by a reviewer and it is breaking
417         Chromium Windows (Requested by jchaffraix on #webkit).
418
419         * WebCoreSupport/WebSystemInterface.mm:
420         (InitWebCoreSystemInterface):
421
422 2012-10-05  Tim Horton  <timothy_horton@apple.com>
423
424         [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
425         https://bugs.webkit.org/show_bug.cgi?id=98565
426         <rdar://problem/12436468>
427
428         Reviewed by Simon Fraser.
429
430         Add wkCGContextDrawsWithCorrectShadowOffsets.
431
432         * WebCoreSupport/WebSystemInterface.mm:
433         (InitWebCoreSystemInterface):
434
435 2012-10-04  Eric Carlson  <eric.carlson@apple.com>
436
437         Allow ports to override text track rendering style
438         https://bugs.webkit.org/show_bug.cgi?id=97800
439         <rdar://problem/12044964>
440
441         Reviewed by Silvia Pfeiffer.
442
443         Add WCSI support for new WKSI caption functions.
444
445         * WebCoreSupport/WebSystemInterface.mm:
446         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
447
448 2012-10-04  Jon Lee  <jonlee@apple.com>
449
450         Add a setting to enable plugin snapshotting
451         https://bugs.webkit.org/show_bug.cgi?id=98319
452         <rdar://problem/12426480>
453
454         Reviewed by Brady Eidson.
455
456         Expose plugInSnapshottingEnabled preference to WebKit clients.
457
458         * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
459         * WebView/WebPreferences.mm:
460         (+[WebPreferences initialize]): Setting is turned off by default.
461         (-[WebPreferences plugInSnapshottingEnabled]):
462         (-[WebPreferences setPlugInSnapshottingEnabled:]):
463         * WebView/WebPreferencesPrivate.h:
464         * WebView/WebView.mm:
465         (-[WebView _preferencesChanged:]): Update settings based on preference.
466
467 2012-10-04  Rik Cabanier  <cabanier@adobe.com>
468
469         Turn Compositing on by default in WebKit build
470         https://bugs.webkit.org/show_bug.cgi?id=98315
471
472         Reviewed by Simon Fraser.
473
474         enable -webkit-blend-mode on trunk.
475
476         * Configurations/FeatureDefines.xcconfig:
477
478 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
479
480         Final part of "sync" to "flush" renaming
481         https://bugs.webkit.org/show_bug.cgi?id=98430
482
483         Reviewed by Tim Horton.
484
485         Change method names on GraphicsLayer and GraphicsLayerClient that
486         refer to "sync" to use the term "flush" instead, to be consistent
487         with the rest of the code.
488
489         * WebView/WebView.mm:
490
491 2012-10-03  Benjamin Poulain  <bpoulain@apple.com>
492
493         [WK2] Support all attributes of GeolocationPosition
494         https://bugs.webkit.org/show_bug.cgi?id=98212
495
496         Reviewed by Sam Weinig.
497
498         Add an internal constructor for the sake of testing.
499         A similar API is used on iOS.
500
501         * WebView/WebGeolocationPosition.mm:
502         (-[WebGeolocationPosition initWithGeolocationPosition:]):
503
504 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
505
506         Standardize on "flush" terminology for compositing layer flushing/syncing
507         https://bugs.webkit.org/show_bug.cgi?id=98321
508
509         Reviewed by Simon Fraser.
510
511         Rename compositing-related methods that refer to "syncing" to instead
512         refer to "flushing".
513
514         * WebCoreSupport/WebChromeClient.h:
515         * WebCoreSupport/WebChromeClient.mm:
516         (WebChromeClient::scheduleCompositingLayerFlush):
517         * WebView/WebView.mm:
518         (-[WebView _flushCompositingChanges]):
519         (LayerFlushController::flushLayers):
520         (-[WebView _scheduleCompositingLayerFlush]):
521         * WebView/WebViewInternal.h:
522
523 == Rolled over to ChangeLog-2012-10-02 ==