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