Improve PageVisibility API with enums
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2013-01-28  Joseph Pecoraro  <pecoraro@apple.com>
2
3         Improve PageVisibility API with enums
4         https://bugs.webkit.org/show_bug.cgi?id=107364
5
6         Reviewed by Sam Weinig.
7
8         * WebView/WebView.mm:
9         * WebView/WebViewPrivate.h:
10         (core):
11         (-[WebView _setVisibilityState:isInitialState:]):
12         Switch the private API form int to a WebPageVisibilityState enum.
13
14 2013-01-28  Adam Barth  <abarth@webkit.org>
15
16         Remove webkitNotifications.createHTMLNotification
17         https://bugs.webkit.org/show_bug.cgi?id=107598
18
19         Reviewed by Benjamin Poulain.
20
21         * Configurations/FeatureDefines.xcconfig:
22
23 2013-01-25  Andy Estes  <aestes@apple.com>
24
25         Wrap content filtering code in an object
26         https://bugs.webkit.org/show_bug.cgi?id=107914
27
28         Reviewed by Alexey Proskuryakov.
29
30         * WebCoreSupport/WebSystemInterface.mm:
31         (InitWebCoreSystemInterface): Updated to reflect changes in WKSI.
32
33 2013-01-24  Dan Bernstein  <mitz@apple.com>
34
35         WebNavigationData does not distinguish between an empty title and a missing title
36         https://bugs.webkit.org/show_bug.cgi?id=107917
37
38         Reviewed by Andy Estes.
39
40         * WebCoreSupport/WebFrameLoaderClient.mm:
41         (nilOrNSString): Added this helper function.
42         (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with a nil
43         title, rather than the empty string, if the document does not have a title.
44
45 2013-01-24  Mark Hahnenberg  <mhahnenberg@apple.com>
46
47         Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h
48         https://bugs.webkit.org/show_bug.cgi?id=107327
49
50         Reviewed by Filip Pizlo.
51
52         We're renaming these two files, so we have to replace the names everywhere.
53
54         * DOM/WebDOMOperations.mm:
55         * ForwardingHeaders/runtime/JSCJSValue.h: Copied from Source/WebKit/mac/ForwardingHeaders/runtime/JSValue.h.
56         * ForwardingHeaders/runtime/JSValue.h: Removed.
57         * WebView/WebFrame.mm:
58         * WebView/WebView.mm:
59
60 2013-01-22  Anders Carlsson  <andersca@apple.com>
61
62         Use a platforom strategy for local storage
63         https://bugs.webkit.org/show_bug.cgi?id=107600
64
65         Reviewed by Andreas Kling.
66
67         Update for new storage strategy.
68
69         * WebCoreSupport/WebPlatformStrategies.h:
70         (WebPlatformStrategies):
71         * WebCoreSupport/WebPlatformStrategies.mm:
72         (WebPlatformStrategies::createStorageStrategy):
73
74 2013-01-21  Kentaro Hara  <haraken@chromium.org>
75
76         Implement UIEvent constructor
77         https://bugs.webkit.org/show_bug.cgi?id=107430
78
79         Reviewed by Adam Barth.
80
81         Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
82
83         UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
84         which is enabled on Safari and Chromium for now.
85
86         * Configurations/FeatureDefines.xcconfig:
87
88 2013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
89
90         [Mac] Enable Page Visibility (PAGE_VISIBILITY_API)
91         https://bugs.webkit.org/show_bug.cgi?id=107230
92
93         Reviewed by David Kilzer.
94
95         * Configurations/FeatureDefines.xcconfig:
96
97 2013-01-22  Tim Horton  <timothy_horton@apple.com>
98
99         PDFPlugin: Build PDFPlugin everywhere, enable at runtime
100         https://bugs.webkit.org/show_bug.cgi?id=107117
101
102         Reviewed by Alexey Proskuryakov.
103
104         Since PDFLayerController SPI is all forward-declared, the plugin should build
105         on all Mac platforms, and can be enabled at runtime.
106
107         * Configurations/FeatureDefines.xcconfig:
108
109 2013-01-21  Dirk Schulze  <dschulze@adobe.com>
110
111         Add build flag for Canvas's Path object (disabled by default)
112         https://bugs.webkit.org/show_bug.cgi?id=107473
113
114         Reviewed by Dean Jackson.
115
116         * Configurations/FeatureDefines.xcconfig:
117
118 2013-01-17  Andy Estes  <aestes@apple.com>
119
120         Add a USE() macro for content filtering code
121         https://bugs.webkit.org/show_bug.cgi?id=107098
122
123         Reviewed by Mark Rowe.
124
125         * WebCoreSupport/WebSystemInterface.mm:
126         (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).
127
128 2013-01-19  Philip Rogers  <pdr@google.com>
129
130         Merge SVGStylable into SVGStyledElement
131         https://bugs.webkit.org/show_bug.cgi?id=106877
132
133         SVG2 changes element inheritance so all SVGElements are stylable. As a first-step towards a
134         cleaner class hierarchy, this patch moves SVGStylable into SVGStyledElement.
135
136         Reviewed by Dirk Schulze.
137
138         * MigrateHeaders.make:
139
140 2013-01-18  Seokju Kwon  <seokju.kwon@gmail.com>
141
142         Add explicit keyword to constructors in platform-specific InspectorClient
143         https://bugs.webkit.org/show_bug.cgi?id=107255
144
145         Reviewed by Kentaro Hara.
146
147         Add explicit keyword to constructors that take one argument
148         in platform-specific implementation of InspectorClient.
149
150         * WebCoreSupport/WebInspectorClient.h:
151         (WebInspectorClient):
152
153 2013-01-15  Jer Noble  <jer.noble@apple.com>
154
155         Add a Setting to disable QTKit media engine.
156         https://bugs.webkit.org/show_bug.cgi?id=106972
157
158         Reviewed by Eric Carlson.
159
160         Add WebKit API to set QTKit enabled setting from user defaults.
161
162         * WebView/WebPreferenceKeysPrivate.h:
163         * WebView/WebPreferences.mm:
164         (+[WebPreferences initialize]): Set WebCore settings based on user defaults.
165         (-[WebPreferences setQTKitEnabled:]): Pass through to WebCore.
166         (-[WebPreferences isQTKitEnabled]): Ditto.
167         * WebView/WebPreferencesPrivate.h:
168         * WebView/WebView.mm:
169         (-[WebView _preferencesChanged:]): Synchronize WebKit/WebCore settings.
170
171 2013-01-15  Enrica Casucci  <enrica@apple.com>
172
173         Add a new set of WebKit2 APIs for text search and
174         search results management.
175         https://bugs.webkit.org/show_bug.cgi?id=106834.
176         <rdar://problem/12597159>
177
178         Reviewed by Simon Fraser.
179         
180         Adding new API to perform text search in WebKit2 without using
181         the stock UI. The new interface provides all the information
182         necessary to write a custom UI for search.
183
184         Added new TextWebKitAPI test.
185
186         * WebView/WebHTMLView.mm:
187         (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
188         Modified to reflect the changes to Editor::countMatchesForText interface.
189
190 2013-01-10  Zan Dobersek  <zandobersek@gmail.com>
191
192         Remove the ENABLE_ANIMATION_API feature define occurences
193         https://bugs.webkit.org/show_bug.cgi?id=106544
194
195         Reviewed by Simon Fraser.
196
197         The Animation API code was removed in r137243. The ENABLE_ANIMATION_API
198         feature define handling still lingers in various build systems and configurations
199         but is of no use, so it should be removed.
200
201         * Configurations/FeatureDefines.xcconfig:
202
203 2013-01-08  Mark Lam  <mark.lam@apple.com>
204
205         Removed the need for the ProposedDatabase mechanism.
206         https://bugs.webkit.org/show_bug.cgi?id=106292.
207
208         Reviewed by Sam Weinig.
209
210         * WebCoreSupport/WebChromeClient.h:
211         * WebCoreSupport/WebChromeClient.mm:
212         (WebChromeClient::exceededDatabaseQuota):
213
214 2013-01-07  Dan Bernstein  <mitz@apple.com>
215
216         [mac] WebKit1 clients can’t tell when a frame has been removed from the hierarchy
217         https://bugs.webkit.org/show_bug.cgi?id=106261
218
219         Reviewed by Simon Fraser.
220
221         Test: TestWebKitAPI/Tests/mac/WebViewDidRemoveFrameFromHierarchy.mm.
222
223         Added -[WebFrameLoadDelegate webView:didRemoveFrameFromHierarchy:].
224
225         * WebCoreSupport/WebFrameLoaderClient.mm:
226         (WebFrameLoaderClient::detachedFromParent2): Added a call to the new frame load delegate
227         method.
228         * WebView/WebDelegateImplementationCaching.h:
229         (WebFrameLoadDelegateImplementationCache): Added the new method to the cache.
230         * WebView/WebFrameLoadDelegatePrivate.h: Declared the new delegate method.
231         * WebView/WebView.mm:
232         (-[WebView _cacheFrameLoadDelegateImplementations]): Added the new method to the cache.
233
234 2013-01-07  Mike West  <mkwst@chromium.org>
235
236         Make the IFRAME_SEAMLESS flag runtime-enabled.
237         https://bugs.webkit.org/show_bug.cgi?id=106213
238
239         Reviewed by Ojan Vafai.
240
241         * WebView/WebPreferenceKeysPrivate.h:
242         * WebView/WebPreferences.mm:
243         (-[WebPreferences seamlessIFramesEnabled]):
244         (-[WebPreferences setSeamlessIFramesEnabled:]):
245         * WebView/WebPreferencesPrivate.h:
246         * WebView/WebView.mm:
247         (-[WebView _preferencesChanged:]):
248             Add a seamless IFrame preference to WebPreferences, and use it to
249             toggle the runtime state of the feature as appropriate.
250
251 2013-01-04  Adam Klein  <adamk@chromium.org>
252
253         Remove ENABLE_MUTATION_OBSERVERS #define
254         https://bugs.webkit.org/show_bug.cgi?id=105459
255
256         Reviewed by Ryosuke Niwa.
257
258         * Configurations/FeatureDefines.xcconfig:
259
260 2013-01-01  Dan Bernstein  <mitz@apple.com>
261
262         <rdar://problem/12942239> Update copyright strings
263
264         Reviewed by Sam Weinig.
265
266         * Info.plist:
267
268 2012-12-29  Adam Roben  <aroben@webkit.org>
269
270         Web Inspector: Mac WK1 Inspector can't save/load timeline data
271         https://bugs.webkit.org/show_bug.cgi?id=105547
272
273         Reviewed by Pavel Feldman.
274
275         * WebCoreSupport/WebInspectorClient.h: Declared new overrides and
276         member variables necessary for save support.
277
278         * WebCoreSupport/WebInspectorClient.mm:
279         (WebInspectorFrontendClient::save):
280         (WebInspectorFrontendClient::append):
281         Implemented these to make saving timeline data work. (It seems to me
282         the InspectorFrontendClient API could be cleaned up a bit. I had to
283         look at Chromium source code to determine that I needed to call back
284         into the InspectorFrontendAPI JS object after saving/appending, and
285         that I needed to keep a map of passed URLs -> chosen URLs.)
286
287         (-[WebInspectorWindowController window:willPositionSheet:usingRect:]):
288         Tweaked the position of the sheet so that open/save sheets look a
289         little bette.r
290
291         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
292         Implemented to make loading timeline data work.
293
294 2012-12-28  Mark Rowe  <mrowe@apple.com>
295
296         Move logic for extracting the OS X marketing version in to WebCore
297         <http://webkit.org/b/105841> / <rdar://problem/10736041>
298
299         Reviewed by Dan Bernstein.
300
301         * WebCoreSupport/WebSystemInterface.mm:
302         (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol.
303         * WebView/WebView.mm:
304         (systemMarketingVersionForUserAgentString): Call the WebCore function instead of the WKSI function.
305         (+[WebView _standardUserAgentWithApplicationName:]): Retain the result now that our helper doesn't
306         do that for us.
307
308 2012-12-27  Sam Weinig  <sam@webkit.org>
309
310         Attempt to fix the tests.
311
312         * WebView/WebPreferences.mm:
313         (+[WebPreferences initialize]):
314
315 2012-12-23  Alexey Proskuryakov  <ap@apple.com>
316
317         <rdar://problem/12808377> Network process should respect cookie accept policy
318         https://bugs.webkit.org/show_bug.cgi?id=105684
319
320         Reviewed by Sam Weinig.
321
322         * WebCoreSupport/WebPlatformStrategies.h:
323         * WebCoreSupport/WebPlatformStrategies.mm:
324         CookiesStrategy no longer has notifyCookiesChanged().
325
326 2012-12-22  Alexey Proskuryakov  <ap@apple.com>
327
328         Add a separate class for networking related storage
329         https://bugs.webkit.org/show_bug.cgi?id=105676
330
331         Reviewed by Sam Weinig.
332
333         * WebCoreSupport/WebFrameLoaderClient.mm:
334         Updated for ResourceHandle include changes.
335
336         * WebCoreSupport/WebFrameNetworkingContext.h:
337         * WebCoreSupport/WebFrameNetworkingContext.mm:
338         This class is now simpler, with more session tracking being in WebCore now.
339
340         * WebCoreSupport/WebPlatformStrategies.h:
341         * WebCoreSupport/WebPlatformStrategies.mm:
342         (WebPlatformStrategies::cookiesForDOM):
343         (WebPlatformStrategies::setCookiesFromDOM):
344         (WebPlatformStrategies::cookiesEnabled):
345         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
346         (WebPlatformStrategies::getRawCookies):
347         (WebPlatformStrategies::deleteCookie):
348         We no longer need a function for default cookie storage! Other cookie functions
349         now take a session.
350
351         * WebView/WebPreferences.mm:
352         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Initialize WCSI before
353         calling a WebCore that uses it.
354         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Use
355         NetworkStorageSession for session tracking.
356
357         * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated for networking
358         context now returning a class for session.
359
360 2012-12-20  Ilya Tikhonovsky  <loislo@chromium.org>
361
362         Unreviewed build fix for chromium mac after r138206.
363
364         * WebCoreSupport/WebSystemInterface.mm:
365         (InitWebCoreSystemInterface):
366
367 2012-12-19  Alexey Proskuryakov  <ap@apple.com>
368
369         <rdar://problem/12890242> [WK2 NetworkProcess] Client doesn't receive SSL certificates
370         https://bugs.webkit.org/show_bug.cgi?id=105467
371
372         Reviewed by Brady Eidson.
373
374         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize
375         a WKSI function we've been missing.
376
377 2012-12-19  Alexis Menard  <alexis@webkit.org>
378
379         Implement CSS parsing for CSS transitions unprefixed.
380         https://bugs.webkit.org/show_bug.cgi?id=104804
381
382         Reviewed by Dean Jackson.
383
384         Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
385         to cover the work of unprefixing Transforms, Animations and 
386         Transitions. It will let the possibility of each ports to turn it off 
387         in their release branches until we're confident that these CSS 
388         properties are ready to be unprefixed.
389
390         * Configurations/FeatureDefines.xcconfig:
391
392 2012-12-18  Alexey Proskuryakov  <ap@apple.com>
393
394         Remove unnecessary functions from CookiesStrategy
395         https://bugs.webkit.org/show_bug.cgi?id=105369
396
397         Reviewed by Brady Eidson.
398
399         * WebCoreSupport/WebPlatformStrategies.h:
400         * WebCoreSupport/WebPlatformStrategies.mm:
401
402 2012-12-18  Alice Liu  <alice.liu@apple.com>
403
404         Add SPI to WebKit1 WebFrame for hit testing
405         https://bugs.webkit.org/show_bug.cgi?id=105106
406
407         Reviewed by Dan Bernstein.
408
409         * WebView/WebFrame.mm:
410         (-[WebFrame elementAtPoint:]): Added. Takes an NSPoint to feed to the WebCore::Frame for hit-testing.
411         Creates a WebElementDictionary from that WebCore::HitTestResult, and returns the element dictionary. 
412         * WebView/WebFramePrivate.h:
413
414 2012-12-18  Alice Liu  <alice.liu@apple.com>
415
416         Add SPI to WebKit1 WebFrame for node conversion to JSValueRef
417         https://bugs.webkit.org/show_bug.cgi?id=105262
418
419         Reviewed by Anders Carlsson.
420
421         * WebView/WebFrame.mm:
422         (-[WebFrame jsWrapper:forWorld:]): Added. Takes a DOMNode and WebScriptWorld and provides a JSValueRef
423         for the WebCore::Node in that particular WebScriptWorld.
424         * WebView/WebFramePrivate.h:
425
426 2012-12-18  Beth Dakin  <bdakin@apple.com>
427
428         https://bugs.webkit.org/show_bug.cgi?id=102579
429         [mac] Enable scaled cursors
430
431         Reviewed by Dean Jackson.
432
433         * Configurations/FeatureDefines.xcconfig:
434
435 2012-12-16  Levi Weintraub  <leviw@chromium.org>
436
437         Push pixel snapping logic into TransformState
438         https://bugs.webkit.org/show_bug.cgi?id=101779
439
440         Reviewed by Simon Fraser.
441
442         * WebView/WebFullScreenController.mm:
443         (screenRectOfContents): Removed SnapOffsetForTransforms as it's no longer needed.
444
445 2012-12-15  Anders Carlsson  <andersca@apple.com>
446
447         Rename FrameLoaderClient::download to convertMainResourceLoadToDownload
448         https://bugs.webkit.org/show_bug.cgi?id=105122
449
450         Reviewed by Andreas Kling.
451
452         Update for WebCore changes.
453
454         * WebCoreSupport/WebFrameLoaderClient.h:
455         (WebFrameLoaderClient):
456         * WebCoreSupport/WebFrameLoaderClient.mm:
457         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
458
459 2012-12-15  Mark Lam  <mark.lam@apple.com>
460
461         Re-landing patch for "Introducing the DatabaseStrategy and database servers".
462         https://bugs.webkit.org/show_bug.cgi?id=104934.
463
464         Not reviewed.
465
466         Merged from r137767. Previously reviewed by Sam Weinig.
467
468         * WebCoreSupport/WebPlatformStrategies.h:
469         (WebPlatformStrategies):
470         * WebCoreSupport/WebPlatformStrategies.mm:
471         (WebPlatformStrategies::createDatabaseStrategy):
472
473 2012-12-14  Mark Lam  <mark.lam@apple.com>
474
475         The WebView should initialize the platform strategies before initializing other sub-systems.
476         https://bugs.webkit.org/show_bug.cgi?id=105083.
477
478         Reviewed by Alexey Proskuryakov.
479
480         * WebView/WebView.mm:
481         (-[WebView _commonInitializationWithFrameName:groupName:]):
482
483 2012-12-14  Sheriff Bot  <webkit.review.bot@gmail.com>
484
485         Unreviewed, rolling out r137767.
486         http://trac.webkit.org/changeset/137767
487         https://bugs.webkit.org/show_bug.cgi?id=105062
488
489         Broke Mac builds. (Requested by mlam on #webkit).
490
491         * WebCoreSupport/WebPlatformStrategies.h:
492         (WebPlatformStrategies):
493         * WebCoreSupport/WebPlatformStrategies.mm:
494
495 2012-12-14  Mark Lam  <mark.lam@apple.com>
496
497         Introducing the DatabaseStrategy and database servers.
498         https://bugs.webkit.org/show_bug.cgi?id=104934.
499
500         Reviewed by Sam Weinig.
501
502         The database server is currently a placeholder that does nothing.
503
504         * WebCoreSupport/WebPlatformStrategies.h:
505         (WebPlatformStrategies):
506         * WebCoreSupport/WebPlatformStrategies.mm:
507         (WebPlatformStrategies::createDatabaseStrategy):
508
509 2012-12-13  Alexey Proskuryakov  <ap@apple.com>
510
511         <rdar://problem/12838354> Per-Tab WebProcess: DOM cookie access functions should respect private browsing
512         https://bugs.webkit.org/show_bug.cgi?id=104691
513
514         Reviewed by Sam Weinig.
515
516         * WebCoreSupport/WebFrameNetworkingContext.h:
517         * WebCoreSupport/WebFrameNetworkingContext.mm:
518         (WebFrameNetworkingContext::inPrivateBrowsingMode):
519         (WebFrameNetworkingContext::storageSession):
520         Implemented inPrivateBrowsingMode().
521
522 2012-12-12  Mark Lam  <mark.lam@apple.com>
523
524         Encapsulate externally used webdatabase APIs in DatabaseManager.
525         https://bugs.webkit.org/show_bug.cgi?id=104741.
526
527         Reviewed by Sam Weinig.
528
529         Use DatabaseManager instead of accessing DatabaseTracker, AbstractDatabase,
530         and DatabaseContext directly. This is to prepare for upcoming webkit2
531         refactoring.
532
533         * Storage/WebDatabaseManager.mm:
534         (-[WebDatabaseManager origins]):
535         (-[WebDatabaseManager databasesWithOrigin:]):
536         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
537         (-[WebDatabaseManager deleteAllDatabases]):
538         (-[WebDatabaseManager deleteOrigin:]):
539         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
540         (WebKitInitializeDatabasesIfNecessary):
541         * Storage/WebDatabaseManagerClient.h: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.h.
542         (WebDatabaseManagerClient):
543         * Storage/WebDatabaseManagerClient.mm: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.mm.
544         (WebDatabaseManagerClient::sharedWebDatabaseManagerClient):
545         (WebDatabaseManagerClient::WebDatabaseManagerClient):
546         (WebDatabaseManagerClient::~WebDatabaseManagerClient):
547         (DidModifyOriginData::dispatchToMainThread):
548         (DidModifyOriginData::DidModifyOriginData):
549         (DidModifyOriginData):
550         (WebDatabaseManagerClient::dispatchDidModifyOrigin):
551         (WebDatabaseManagerClient::dispatchDidModifyDatabase):
552         * Storage/WebDatabaseQuotaManager.mm:
553         (-[WebDatabaseQuotaManager usage]):
554         (-[WebDatabaseQuotaManager quota]):
555         (-[WebDatabaseQuotaManager setQuota:]):
556         * Storage/WebDatabaseTrackerClient.h: Removed.
557         * Storage/WebDatabaseTrackerClient.mm: Removed.
558         * WebCoreSupport/WebSecurityOrigin.mm:
559         (-[WebSecurityOrigin usage]):
560         (-[WebSecurityOrigin quota]):
561         (-[WebSecurityOrigin setQuota:]):
562         * WebKit.order:
563         * WebView/WebFrame.mm:
564         (-[WebFrame _cacheabilityDictionary]):
565         * WebView/WebView.mm:
566         (-[WebView _preferencesChanged:]):
567
568 2012-12-12  Alexey Proskuryakov  <ap@apple.com>
569
570         Make LOG() work in WebProcess and NetworkProcess
571         https://bugs.webkit.org/show_bug.cgi?id=104718
572
573         Reviewed by Tim Horton.
574
575         * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between
576         WebCore and WebKit versions of this file.
577
578 2012-12-11  Mike West  <mkwst@chromium.org>
579
580         Web Inspector: ConsoleTypes should not expose MessageType - it should be private to inspector.
581         https://bugs.webkit.org/show_bug.cgi?id=66371
582
583         Reviewed by Pavel Feldman.
584
585         Drops WebCore::MessageType from the addMessageToConsole method.
586
587         * WebCoreSupport/WebChromeClient.h:
588         (WebChromeClient):
589         * WebCoreSupport/WebChromeClient.mm:
590         (WebChromeClient::addMessageToConsole):
591
592 2012-12-09  Antti Koivisto  <antti@apple.com>
593
594         Factor node traversal into standalone functions
595         https://bugs.webkit.org/show_bug.cgi?id=104507
596
597         Reviewed by Eric Seidel.
598     
599         * WebView/WebHTMLRepresentation.mm:
600         (searchForLabelsBeforeElement):
601
602 2012-12-10  Alexis Menard  <alexis@webkit.org>
603
604         [CSS3 Backgrounds and Borders] Remove CSS3_BACKGROUND feature flag.
605         https://bugs.webkit.org/show_bug.cgi?id=104539
606
607         Reviewed by Antonio Gomes.
608
609         As discussed on webkit-dev it is not needed to keep this feature flag 
610         as support for <position> type is a small feature that is already 
611         implemented by three other UAs. It was useful while landing this 
612         feature as partial bits were landed one after one.
613
614         * Configurations/FeatureDefines.xcconfig:
615
616 2012-12-06  Rick Byers  <rbyers@chromium.org>
617
618         CSS cursor property should support webkit-image-set
619         https://bugs.webkit.org/show_bug.cgi?id=99493
620
621         Reviewed by Beth Dakin.
622
623         Add ENABLE_MOUSE_CURSOR_SCALE - disabled by default.
624
625         * Configurations/FeatureDefines.xcconfig:
626
627 2012-12-03  Yury Semikhatsky  <yurys@chromium.org>
628
629         Unreviewed. Fix Mac compilation after r136448.
630
631         * WebCoreSupport/WebChromeClient.mm:
632         (stringForMessageType):
633
634 2012-12-03  Alexis Menard  <alexis@webkit.org>
635
636         [Mac] Enable CSS3 background-position offset by default.
637         https://bugs.webkit.org/show_bug.cgi?id=103905
638
639         Reviewed by Simon Fraser.
640
641         Turn the flag on by default.
642
643         * Configurations/FeatureDefines.xcconfig:
644
645 2012-12-02  Yongjun Zhang  <yongjun_zhang@apple.com>
646
647         Need a method to close all idle localstorage databases immediately.
648         https://bugs.webkit.org/show_bug.cgi?id=103469
649
650         Reviewed by David Kilzer.
651
652         Add a new method to WebStorageManager that we can call to close all
653         idle local storage databases.
654
655         * Storage/WebStorageManager.mm:
656         (+[WebStorageManager closeIdleLocalStorageDatabases]):
657         * Storage/WebStorageManagerPrivate.h:
658
659 2012-11-30  Mihai Maerean  <mmaerean@adobe.com>
660
661         [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled
662         https://bugs.webkit.org/show_bug.cgi?id=101192
663
664         Reviewed by Hajime Morita.
665
666         Removed the CSS Regions flag in Settings and switched to using the new flag I have added in RuntimeEnabledFeatures.
667
668         Tests: No new tests because there is no functional change.
669
670         * WebView/WebView.mm:
671         (-[WebView _preferencesChanged:]):
672
673 2012-11-29  Rafael Weinstein  <rafaelw@chromium.org>
674
675         [HTMLTemplateElement] Add feature flag
676         https://bugs.webkit.org/show_bug.cgi?id=103694
677
678         Reviewed by Adam Barth.
679
680         This flag will guard the implementation of the HTMLTemplateElement.
681         http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html
682
683         * Configurations/FeatureDefines.xcconfig:
684
685 2012-11-29  Alexey Proskuryakov  <ap@apple.com>
686
687         [WK2] Forward cookie jar calls to NetworkProcess
688         https://bugs.webkit.org/show_bug.cgi?id=103457
689
690         Reviewed by Darin Adler.
691
692         * WebCoreSupport/WebPlatformStrategies.h:
693         (WebPlatformStrategies):
694         * WebCoreSupport/WebPlatformStrategies.mm:
695         (WebPlatformStrategies::cookiesForDOM):
696         (WebPlatformStrategies::setCookiesFromDOM):
697         (WebPlatformStrategies::cookiesEnabled):
698         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
699         (WebPlatformStrategies::getRawCookies):
700         (WebPlatformStrategies::deleteCookie):
701         (WebPlatformStrategies::getHostnamesWithCookies):
702         (WebPlatformStrategies::deleteCookiesForHostname):
703         (WebPlatformStrategies::deleteAllCookies):
704         (WebPlatformStrategies::getPluginInfo):
705         (WebPlatformStrategies::bufferForType):
706         WebKit1 strategy just uses PlatformCookieJar.
707
708 2012-11-28  Beth Dakin  <bdakin@apple.com>
709
710         https://bugs.webkit.org/show_bug.cgi?id=102970
711         [WK1] REGRESSION (r129545): Main frame doesn't rubberband unless 
712         WebFrameLoadDelegate implements -webView:didFirstLayoutInFrame:
713
714         Reviewed by Sam Weinig.
715
716         We should always register for DidFirstLayout in WK1 since we do work 
717         at that time besides just calling the delegate function.
718         * WebView/WebView.mm:
719         (-[WebView _cacheFrameLoadDelegateImplementations]):
720
721 2012-11-27  Michael Saboff  <msaboff@apple.com>
722
723         TextIterator unnecessarily converts 8 bit strings to 16 bits
724         https://bugs.webkit.org/show_bug.cgi?id=103295
725
726         Reviewed by Brent Fulgham.
727
728         Updated _stringForRange to use plainText() instead of removed plainTextToMallocAllocatedBuffer().
729
730         * WebView/WebFrame.mm:
731         (-[WebFrame _stringForRange:]):
732
733 2012-11-27  James Simonsen  <simonjam@chromium.org>
734
735         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
736         https://bugs.webkit.org/show_bug.cgi?id=102151
737
738         Reviewed by Adam Barth.
739
740         * Plugins/WebPluginController.mm:
741         * WebView/WebFrame.mm:
742         (-[WebFrame loadRequest:]):
743         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
744
745 2012-11-27  Pratik Solanki  <psolanki@apple.com>
746
747         objc/objc-runtime.h does not exist on all PLATFORM(MAC)
748         https://bugs.webkit.org/show_bug.cgi?id=101780
749
750         Reviewed by Brent Fulgham.
751
752         Clean up header includes so we don't include objc/objc-runtime.h.
753
754         * Carbon/HIWebView.mm:
755         (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
756         * Plugins/WebNetscapePluginView.mm:
757         * Plugins/WebPluginContainerCheck.mm:
758         (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
759         * Plugins/WebPluginController.mm:
760         * WebCoreSupport/WebCachedFramePlatformData.h:
761         * WebCoreSupport/WebDeviceOrientationClient.mm:
762         * WebView/WebDelegateImplementationCaching.mm:
763         * WebView/WebHTMLView.mm:
764         * WebView/WebPDFDocumentExtras.mm:
765         * WebView/WebPolicyDelegate.mm:
766         (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
767         * WebView/WebView.mm:
768
769 2012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
770
771         Unreviewed, rolling out r135786.
772         http://trac.webkit.org/changeset/135786
773         https://bugs.webkit.org/show_bug.cgi?id=103379
774
775         It made 3 plugin tests timeout on several platforms (Requested
776         by Ossy on #webkit).
777
778         * Plugins/WebPluginController.mm:
779         * WebView/WebFrame.mm:
780         (-[WebFrame loadRequest:]):
781         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
782
783 2012-11-26  James Simonsen  <simonjam@chromium.org>
784
785         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
786         https://bugs.webkit.org/show_bug.cgi?id=102151
787
788         Reviewed by Adam Barth.
789
790         * Plugins/WebPluginController.mm:
791         * WebView/WebFrame.mm:
792         (-[WebFrame loadRequest:]):
793         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
794
795 2012-11-23  Alexis Menard  <alexis@webkit.org>
796
797         [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.
798         https://bugs.webkit.org/show_bug.cgi?id=102104
799
800         Reviewed by Julien Chaffraix.
801
802         Protect the new feature behind a feature flag.
803
804         * Configurations/FeatureDefines.xcconfig:
805
806 2012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
807
808         Disambiguate innerNodeFramePoint and mainFramePoint
809         https://bugs.webkit.org/show_bug.cgi?id=98139
810
811         Reviewed by Julien Chaffraix.
812
813         Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint.
814
815         * WebCoreSupport/WebContextMenuClient.mm:
816         (WebContextMenuClient::showContextMenu):
817
818 2012-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
819
820         Unreviewed, rolling out r135295.
821         http://trac.webkit.org/changeset/135295
822         https://bugs.webkit.org/show_bug.cgi?id=102834
823
824         This patch causes assertion to some layout tests on chromium
825         (Requested by jianli on #webkit).
826
827         * Plugins/WebPluginController.mm:
828         * WebView/WebFrame.mm:
829         (-[WebFrame loadRequest:]):
830         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
831
832 2012-11-20  James Simonsen  <simonjam@chromium.org>
833
834         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
835         https://bugs.webkit.org/show_bug.cgi?id=102151
836
837         Reviewed by Adam Barth.
838
839         * Plugins/WebPluginController.mm:
840         * WebView/WebFrame.mm:
841         (-[WebFrame loadRequest:]):
842         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
843
844 2012-11-19  Kihong Kwon  <kihong.kwon@samsung.com>
845
846         Add PROXIMITY_EVENTS feature
847         https://bugs.webkit.org/show_bug.cgi?id=102658
848
849         Reviewed by Kentaro Hara.
850
851         Add PROXIMITY_EVENTS feature to xcode project for WebKit.
852
853         * Configurations/FeatureDefines.xcconfig:
854
855 2012-11-16  Tony Chang  <tony@chromium.org>
856
857         Remove ENABLE_CSS_HIERARCHIES since it's no longer in use
858         https://bugs.webkit.org/show_bug.cgi?id=102554
859
860         Reviewed by Andreas Kling.
861
862         As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 ,
863         we're going to revist this feature once additional vendor support is
864         achieved.
865
866         * Configurations/FeatureDefines.xcconfig:
867
868 2012-11-15  Alexey Proskuryakov  <ap@apple.com>
869
870         Private Browsing is a per-page setting that sets a global value
871         https://bugs.webkit.org/show_bug.cgi?id=67870
872
873         Reviewed by Sam Weinig.
874
875         * WebCoreSupport/WebFrameNetworkingContext.h:
876         * WebCoreSupport/WebFrameNetworkingContext.mm:
877         Moved functions for managing global sessions from WebCore.
878
879         * WebCoreSupport/WebPlatformStrategies.h:
880         * WebCoreSupport/WebPlatformStrategies.mm:
881         (WebPlatformStrategies::defaultCookieStorage): Added. Uses WebFrameNetworkingContext
882         to reach the storage.
883
884         * WebView/WebPreferences.mm:
885         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Ditto.
886         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Ditto.
887
888         * WebView/WebPreferencesPrivate.h: Added a comment explaining that two functions
889         are not generic enough for use outside DRT (one of them had "testing" in name,
890         but another did not).
891
892         * WebView/WebView.mm:
893         (-[WebView _preferencesChanged:]): Create a global private browsing session when
894         the first view with private browsing is created, delete it when any window with
895         it disabled is created (since this comes from preferences, it applies to all
896         views equally, even though we are dealing with a single one here).
897         (-[WebView _cachedResponseForURL:]): Use main frame's networking context instead of
898         a global one.
899
900 2012-11-13  Timothy Hatcher  <timothy@apple.com>
901
902         Adjust the Web Inspector window title frame if needed to prevent it from intersecting the dock button.
903
904         https://bugs.webkit.org/show_bug.cgi?id=102073
905
906         Reviewed by Joseph Pecoraro.
907
908         * WebCoreSupport/WebInspectorClient.mm:
909         (-[WebInspectorWindow _customTitleFrame]): Added. Adjust the title frame.
910
911 2012-11-12  Simon Fraser  <simon.fraser@apple.com>
912
913         Build fix after r134346 and 134347.
914         
915         Use frameView.isFlipped, not frameView.flipped in the assertion.
916
917         * WebCoreSupport/WebInspectorClient.mm:
918         (-[WebInspectorWindowController window]):
919
920 2012-11-12  Timothy Hatcher  <timothy@apple.com>
921
922         Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
923
924         https://bugs.webkit.org/show_bug.cgi?id=102025
925
926         Reviewed by Joseph Pecoraro.
927
928         * Resources/Dock.pdf: Added.
929         * WebCoreSupport/WebInspectorClient.h:
930         * WebCoreSupport/WebInspectorClient.mm:
931         (-[WebInspectorWindow _cursorForResizeDirection:]): Added.
932         (WebInspectorClient::didResizeMainFrame): Call attachAvailabilityChanged instead.
933         (WebInspectorFrontendClient::attachAvailabilityChanged): Added.
934         (-[WebInspectorWindowController window]): Create the dock button and add it.
935         (-[WebInspectorWindowController attachWindow:]): Added.
936         (-[WebInspectorWindowController attach]): Call setAttachedWindow.
937         (-[WebInspectorWindowController detach]): Ditto.
938         (-[WebInspectorWindowController setDockingUnavailable:]): Added. Update hidden state of the dock button.
939
940 2012-11-08  Timothy Hatcher  <timothy@apple.com>
941
942         Always use a textured window for the Web Inspector.
943
944         https://bugs.webkit.org/show_bug.cgi?id=101693
945
946         Reviewed by Joseph Pecoraro.
947
948         * WebCoreSupport/WebInspectorClient.mm:
949         (-[WebInspectorWindowController window]): Removed the conditional for a textured window.
950
951 2012-11-08  Roger Fong  <roger_fong@apple.com>
952
953         Null check URL key entries into WebHistory hash table. 
954         https://bugs.webkit.org/show_bug.cgi?id=101664
955         <rdar://problem/12440852>
956
957         Reviewed by Brady Eidson.
958         
959         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.
960         This prevents the desired page navigation from taking effect. This is a workaround for the problem.
961         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
962         so that navigation can continue as expected.
963
964         * History/WebHistory.mm:
965         (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]):
966
967 2012-11-07  Andreas Kling  <akling@apple.com>
968
969         Remove build-webkit dependency on Java SDK for Apple Mac WebKit.
970         <http://webkit.org/b/101492>
971
972         Reviewed by Anders Carlsson.
973
974         * Plugins/WebJavaPlugIn.h: Removed.
975
976 2012-11-06  Adam Barth  <abarth@webkit.org>
977
978         Unreviewed attempt to fix the chromium-mac build.
979
980         * WebCoreSupport/WebSystemInterface.mm:
981         (InitWebCoreSystemInterface):
982
983 2012-11-06  Anders Carlsson  <andersca@apple.com>
984
985         Update Java related WKSI function names
986         https://bugs.webkit.org/show_bug.cgi?id=101414
987
988         Reviewed by Sam Weinig.
989
990         * WebCoreSupport/WebChromeClient.mm:
991         (WebChromeClient::unavailablePluginButtonClicked):
992         * WebCoreSupport/WebFrameLoaderClient.mm:
993         (isPlugInInactive):
994
995 2012-11-06  Alexey Proskuryakov  <ap@apple.com>
996
997         Clean up which storage cookie jar functions use
998         https://bugs.webkit.org/show_bug.cgi?id=101395
999
1000         Reviewed by Brady Eidson.
1001
1002         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated for
1003         two new functions.
1004
1005 2012-11-06  Andrey Lushnikov  <lushnikov@google.com>
1006
1007         Added console.clear() method
1008
1009         Web Inspector: add console.clear()
1010         https://bugs.webkit.org/show_bug.cgi?id=101021
1011
1012         Reviewed by Vsevolod Vlasov.
1013
1014         * WebCoreSupport/WebChromeClient.mm:
1015         (stringForMessageType): Added ClearMessageType case to switch
1016
1017 2012-11-05  Alexey Proskuryakov  <ap@apple.com>
1018
1019         Get rid of setCookieStoragePrivateBrowsingEnabled.
1020         https://bugs.webkit.org/show_bug.cgi?id=101247
1021
1022         Reviewed by Brady Eidson.
1023
1024         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We no longer
1025         have this function.
1026
1027 2012-11-03  Alexey Proskuryakov  <ap@apple.com>
1028
1029         Get rid of USE(CFURLSTORAGESESSIONS)
1030         https://bugs.webkit.org/show_bug.cgi?id=101131
1031
1032         Reviewed by Sam Weinig.
1033
1034         * WebView/WebPreferences.mm:
1035         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
1036         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
1037         * WebView/WebView.mm:
1038         (-[WebView _cachedResponseForURL:]):
1039
1040 2012-11-02  Anders Carlsson  <andersca@apple.com>
1041
1042         Don't instantiate the Java plug-in if it's inactive
1043         https://bugs.webkit.org/show_bug.cgi?id=101102
1044         <rdar://problem/12595679>
1045
1046         Reviewed by Andreas Kling.
1047
1048         * WebCoreSupport/WebChromeClient.mm:
1049         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
1050         The RenderEmbeddedObject::PluginInactive reason should always result in a button being shown.
1051
1052         (WebChromeClient::unavailablePluginButtonClicked):
1053         If the Java plug-in is inactive, call WKJLReportWebComponentsUsed() to reactivate the plug-in and
1054         then reload the page.
1055
1056         * WebCoreSupport/WebFrameLoaderClient.mm:
1057         (isOracleJavaPlugIn):
1058         (isPlugInInactive):
1059         Helper functions.
1060
1061         (WebFrameLoaderClient::createPlugin):
1062         If the plug-in is inactive, set the appropriate unavailability reason on the renderer.
1063
1064 2012-11-02  Simon Fraser  <simon.fraser@apple.com>
1065
1066         Enable SUBPIXEL_LAYOUT on Mac
1067         https://bugs.webkit.org/show_bug.cgi?id=101076
1068
1069         Reviewed by Dave Hyatt.
1070
1071         Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES.
1072
1073         * Configurations/FeatureDefines.xcconfig:
1074
1075 2012-11-02  Adam Barth  <abarth@webkit.org>
1076
1077         ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development
1078         https://bugs.webkit.org/show_bug.cgi?id=100711
1079
1080         Reviewed by Eric Seidel.
1081
1082         * Configurations/FeatureDefines.xcconfig:
1083
1084 2012-11-01  Adam Roben  <aroben@webkit.org>
1085
1086         [WK1] Fixed-position elements jiggle up and down slightly during scrolling on a Retina display
1087         https://bugs.webkit.org/show_bug.cgi?id=100957
1088
1089         Reviewed by Simon Fraser.
1090
1091         WebCore doesn't yet support subpixel scrolling. WebKit2 forces
1092         scrolling to always be integral. Now WebKit1 forces this as well.
1093
1094         I'm not sure how to write a test for this.
1095
1096         * WebView/WebDynamicScrollBarsView.mm:
1097         (shouldRoundScrollOrigin): Returns YES if there are any position:fixed
1098         or position:sticky elements in the page.
1099         (-[WebDynamicScrollBarsView scrollClipView:toPoint:]): Round the
1100         scroll origin to the nearest pixel if needed.
1101
1102 2012-10-31  Anders Carlsson  <andersca@apple.com>
1103
1104         Fix build.
1105         <rdar://problem/12612207>.
1106
1107         Reviewed by Sam Weinig.
1108
1109         * Panels/WebAuthenticationPanel.m:
1110         (-[WebAuthenticationPanel loadNib]):
1111
1112 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
1113
1114         [Mac] Sync up FeatureDefine Configuration Files
1115         https://bugs.webkit.org/show_bug.cgi?id=100171
1116
1117         Reviewed by David Kilzer.
1118
1119         Follow up to better coordinate with iOS feature defines. Make:
1120
1121           - ENABLE_FILTERS always on
1122           - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values
1123
1124         * Configurations/FeatureDefines.xcconfig:
1125
1126 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
1127
1128         [Mac] Sync up FeatureDefine Configuration Files
1129         https://bugs.webkit.org/show_bug.cgi?id=100171
1130
1131         Reviewed by David Kilzer.
1132
1133         Ensure an identical FeatureDefine files across all projects. Changes:
1134
1135           - ENABLE_CSS_BOX_DECORATION_BREAK should be in all
1136           - ENABLE_PDFKIT_PLUGIN should be in all
1137           - ENABLE_RESOLUTION_MEDIA_QUERY should be in all
1138           - ENABLE_ENCRYPTED_MEDIA should be in all
1139           - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value
1140           - Some alphabetical ordering cleanup
1141
1142         * Configurations/FeatureDefines.xcconfig:
1143
1144 2012-10-29  Anders Carlsson  <andersca@apple.com>
1145
1146         Build WebKit as C++11 on Mac
1147         https://bugs.webkit.org/show_bug.cgi?id=100720
1148
1149         Reviewed by Daniel Bates.
1150
1151         * Configurations/Base.xcconfig:
1152         Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
1153
1154         * History/WebBackForwardList.mm:
1155         (-[WebBackForwardList description]):
1156         * History/WebHistoryItem.mm:
1157         (-[WebHistoryItem description]):
1158         Add static_casts to prevent implicit type conversions in non-constant initializer lists.
1159
1160 2012-10-28  Mark Rowe  <mrowe@apple.com>
1161
1162         Simplify Xcode configuration settings that used to vary between OS versions.
1163
1164         Reviewed by Dan Bernstein.
1165
1166         * Configurations/Base.xcconfig:
1167         * Configurations/DebugRelease.xcconfig:
1168         * Configurations/WebKit.xcconfig:
1169
1170 2012-10-28  Mark Rowe  <mrowe@apple.com>
1171
1172         Remove references to unsupported OS and Xcode versions.
1173
1174         Reviewed by Anders Carlsson.
1175
1176         * Configurations/Base.xcconfig:
1177         * Configurations/CompilerVersion.xcconfig: Removed.
1178         * Configurations/DebugRelease.xcconfig:
1179         * Configurations/Version.xcconfig:
1180
1181 2012-10-29  Enrica Casucci  <enrica@apple.com>
1182
1183         Add ENABLE_USERSELECT_ALL feature flag.
1184         https://bugs.webkit.org/show_bug.cgi?id=100559
1185
1186         Reviewed by Eric Seidel.
1187
1188         * Configurations/FeatureDefines.xcconfig:
1189
1190 2012-10-27  Alexey Proskuryakov  <ap@apple.com>
1191
1192         All tests crash in WebKit1 mode
1193         https://bugs.webkit.org/show_bug.cgi?id=100602
1194
1195         Reviewed by Sam Weinig.
1196
1197         * WebView/WebView.mm: (+[WebView _setLoadResourcesSerially:]): Resource load
1198         scheduler is created via a strategy, so strategies need to be initialized before
1199         using it.
1200
1201 2012-10-27  Dan Bernstein  <mitz@apple.com>
1202
1203         REAL_PLATFORM_NAME build setting is no longer needed
1204         https://bugs.webkit.org/show_bug.cgi?id=100587
1205
1206         Reviewed by Mark Rowe.
1207
1208         Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
1209         to PLATFORM_NAME.
1210
1211         * Configurations/Base.xcconfig:
1212         * Configurations/CompilerVersion.xcconfig:
1213         * Configurations/DebugRelease.xcconfig:
1214         * Configurations/FeatureDefines.xcconfig:
1215         * Configurations/Version.xcconfig:
1216         * Configurations/WebKit.xcconfig:
1217
1218 2012-10-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
1219
1220         Add feature flags for CSS Device Adaptation
1221         https://bugs.webkit.org/show_bug.cgi?id=95960
1222
1223         Reviewed by Kenneth Rohde Christiansen.
1224
1225         * Configurations/FeatureDefines.xcconfig:
1226
1227 2012-10-25  Dominik Röttsches  <dominik.rottsches@intel.com>
1228
1229         Conditionalize XHR timeout support
1230         https://bugs.webkit.org/show_bug.cgi?id=100356
1231
1232         Reviewed by Adam Barth.
1233
1234         Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
1235         Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
1236
1237         * Configurations/FeatureDefines.xcconfig:
1238
1239 2012-10-24  Timothy Hatcher  <timothy@apple.com>
1240
1241         Fix a crash seen during the Inspector tests on the WebKit1 bots.
1242
1243         Reviewed by Filip Pizlo.
1244
1245         * WebCoreSupport/WebInspectorClient.mm:
1246         (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
1247         is not the same when the Inspector is docked.
1248
1249 2012-10-24  Brady Eidson  <beidson@apple.com>
1250
1251         Add a strategy for loader customization.
1252         https://bugs.webkit.org/show_bug.cgi?id=100278
1253
1254         Reviewed by Alexey Proskuryakov.
1255
1256         * WebCoreSupport/WebPlatformStrategies.h:
1257         (WebPlatformStrategies):
1258         * WebCoreSupport/WebPlatformStrategies.mm:
1259         (WebPlatformStrategies::createLoaderStrategy):
1260
1261 2012-10-24  Timothy Hatcher  <timothy@apple.com>
1262
1263         Make the Inspector WKView/WebView become the first responder when bringToFront is called.
1264
1265         https://bugs.webkit.org/show_bug.cgi?id=100209
1266
1267         Reviewed by Joseph Pecoraro.
1268
1269         * WebCoreSupport/WebInspectorClient.mm:
1270         (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
1271
1272 2012-10-23  Alexey Proskuryakov  <ap@apple.com>
1273
1274         Add a strategy for shared workers
1275         https://bugs.webkit.org/show_bug.cgi?id=100165
1276
1277         Reviewed by Brady Eidson.
1278
1279         * WebCoreSupport/WebPlatformStrategies.h:
1280         * WebCoreSupport/WebPlatformStrategies.mm:
1281         (WebPlatformStrategies::createPasteboardStrategy):
1282         (WebPlatformStrategies::createSharedWorkerStrategy):
1283         (WebPlatformStrategies::createVisitedLinkStrategy):
1284
1285 2012-10-24  Eric Carlson  <eric.carlson@apple.com>
1286
1287         Allow ports to override text track rendering style
1288         https://bugs.webkit.org/show_bug.cgi?id=97800
1289         <rdar://problem/12044964>
1290
1291         Reviewed by Maciej Stachowiak.
1292
1293         * WebCoreSupport/WebSystemInterface.mm:
1294         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
1295
1296 2012-10-23  Dan Bernstein  <mitz@apple.com>
1297
1298         WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
1299         https://bugs.webkit.org/show_bug.cgi?id=100188
1300
1301         Reviewed by Sam Weinig.
1302
1303         * WebView/WebView.mm:
1304         (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
1305         code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
1306         default. Changed to refer to that default key by name.
1307
1308 2012-10-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1309
1310         Add support for resolution media query
1311         https://bugs.webkit.org/show_bug.cgi?id=99077
1312
1313         Reviewed by Antti Koivisto.
1314
1315         Add support for the RESOLUTION_MEDIA_QUERY feature flag.
1316
1317         * Configurations/FeatureDefines.xcconfig:
1318
1319 2012-10-21  Andreas Kling  <kling@webkit.org>
1320
1321         Remove Page::javaScriptURLsAreAllowed setting.
1322         <http://webkit.org/b/99944>
1323
1324         Reviewed by Anders Carlsson.
1325
1326         * WebKit.order:
1327         * WebView/WebView.mm:
1328         * WebView/WebViewPrivate.h:
1329
1330 2012-10-19  Dongwoo Joshua Im  <dw.im@samsung.com>
1331
1332         Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
1333         https://bugs.webkit.org/show_bug.cgi?id=99804
1334
1335         Reviewed by Julien Chaffraix.
1336
1337         CSS3 text related properties will be implemented under this flag,
1338         including text decoration, text-align-last, and text-justify.
1339
1340         * Configurations/FeatureDefines.xcconfig:
1341
1342 2012-10-18  Pablo Flouret  <pablof@motorola.com>
1343
1344         Implement css3-conditional's @supports rule
1345         https://bugs.webkit.org/show_bug.cgi?id=86146
1346
1347         Reviewed by Antti Koivisto.
1348
1349         * Configurations/FeatureDefines.xcconfig:
1350             Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
1351
1352 2012-10-17  Joseph Pecoraro  <pecoraro@apple.com>
1353
1354         [Mac] Uninitialized Members in WebDataSourcePrivate
1355         https://bugs.webkit.org/show_bug.cgi?id=99617
1356
1357         Reviewed by David Kilzer.
1358
1359         Initialize BOOL member variables.
1360
1361         * WebView/WebDataSource.mm:
1362         (WebDataSourcePrivate::WebDataSourcePrivate):
1363
1364 2012-10-17  Mark Rowe  <mrowe@apple.com>
1365
1366         Fix the build with a newer version of clang.
1367
1368         Reviewed by Dan Bernstein.
1369
1370         Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
1371         While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
1372         with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
1373         therefore generates a warning in newer versions of the compiler.
1374
1375         Fixes <rdar://problem/12503709>.
1376
1377         * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
1378         * Misc/WebCoreStatistics.mm: Ditto.
1379         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
1380         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
1381
1382 2012-10-16  Jian Li  <jianli@chromium.org>
1383
1384         Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
1385         https://bugs.webkit.org/show_bug.cgi?id=98975
1386
1387         Reviewed by Adam Barth.
1388
1389         Renaming is needed to better match with the draggable region code.
1390
1391         * Configurations/FeatureDefines.xcconfig:
1392
1393 2012-10-15  Dan Bernstein  <mitz@apple.com>
1394
1395         WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
1396         https://bugs.webkit.org/show_bug.cgi?id=99113
1397
1398         Reviewed by Tim Horton.
1399
1400         * WebCoreSupport/WebSystemInterface.mm:
1401         (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
1402
1403 2012-10-15  David Kilzer  <ddkilzer@apple.com>
1404
1405         Move framework and library linking into WebKit.xcconfig
1406         <http://webkit.org/b/99284>
1407
1408         Reviewed by Mark Rowe.
1409
1410         * Configurations/WebKit.xcconfig: Move frameworks and libraries
1411         link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
1412
1413 2012-10-14  Jon Lee  <jonlee@apple.com>
1414
1415         Allow notification origin permission request when no js callback is provided
1416         https://bugs.webkit.org/show_bug.cgi?id=63615
1417         <rdar://problem/11059590>
1418
1419         Reviewed by Sam Weinig.
1420
1421         Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
1422         we do not fall through to calling the standard API's callback if the legacy API's callback is null.
1423
1424         * WebCoreSupport/WebNotificationClient.mm:
1425         (WebCore):
1426         (-[WebNotificationPolicyListener initWithVoidCallback:]):
1427         (-[WebNotificationPolicyListener allow]):
1428         (-[WebNotificationPolicyListener deny]):
1429
1430 2012-10-14  Sam Weinig  <sam@webkit.org>
1431
1432         Make UserScript and UserStyleSheet value objects that are copyable
1433         https://bugs.webkit.org/show_bug.cgi?id=99275
1434
1435         Reviewed by Tim Horton.
1436
1437         * WebView/WebView.mm:
1438         (-[WebView _injectMailQuirksScript]):
1439         (-[WebView _injectOutlookQuirksScript]):
1440         Update for new PageGroup function signatures.
1441
1442 2012-10-10  Brady Eidson  <beidson@apple.com>
1443
1444         Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
1445         https://bugs.webkit.org/show_bug.cgi?id=98976
1446
1447         Reviewed by Anders Carlsson.
1448
1449         * WebView/WebDataSource.mm:
1450         (-[WebDataSource data]):
1451
1452 2012-10-10  Jer Noble  <jer.noble@apple.com>
1453
1454         Disallow full screen mode keyboard access by default.
1455         https://bugs.webkit.org/show_bug.cgi?id=98971
1456         <rdar://problem/12474226>
1457
1458         Reviewed by Sam Weinig.
1459
1460         Only support full screen if keyboard access is not requested.
1461
1462         * WebView/WebView.mm:
1463         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
1464
1465 2012-10-10  Jon Lee  <jonlee@apple.com>
1466
1467         [WK2] Activate plugins when user clicks on snapshot
1468         https://bugs.webkit.org/show_bug.cgi?id=98328
1469         <rdar://problem/12426681>
1470
1471         Reviewed by Brady Eidson.
1472
1473         * WebCoreSupport/WebFrameLoaderClient.h:
1474         * WebCoreSupport/WebFrameLoaderClient.mm:
1475         (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
1476
1477 2012-10-10  Brady Eidson  <beidson@apple.com>
1478
1479         Switch CachedResource over from SharedBuffer to a new ResourceBuffer
1480         https://bugs.webkit.org/show_bug.cgi?id=98541
1481
1482         Reviewed by Anders Carlsson.
1483
1484         * WebView/WebHTMLView.mm:
1485         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
1486
1487 2012-10-10  Simon Fraser  <simon.fraser@apple.com>
1488
1489         Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
1490         https://bugs.webkit.org/show_bug.cgi?id=98839
1491
1492         Reviewed by Sam Weinig.
1493
1494         To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
1495         in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
1496         but store the computed rect in m_visibleRect.
1497         
1498         Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
1499         layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
1500
1501         * WebView/WebFrame.mm:
1502         (-[WebFrame _layerTreeAsText]):
1503
1504 2012-10-09  Jian Li  <jianli@chromium.org>
1505
1506         Update the CSS property used to support draggable regions.
1507         https://bugs.webkit.org/show_bug.cgi?id=97156
1508
1509         Reviewed by Adam Barth.
1510
1511         The CSS property to support draggable regions, guarded under
1512         WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
1513         confusion with DASHBOARD_SUPPORT feature.
1514
1515         Also update the code to use the new name annotatedRegions to work for
1516         both features.
1517
1518         * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
1519         * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
1520         * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
1521         (WebChromeClient::annotatedRegionsChanged):
1522         * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
1523         (-[WebView _dashboardRegions]):
1524
1525 2012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1526
1527         Unreviewed, rolling out r130811 and r130821.
1528         http://trac.webkit.org/changeset/130811
1529         http://trac.webkit.org/changeset/130821
1530         https://bugs.webkit.org/show_bug.cgi?id=98831
1531
1532         Broke date-suggestion-picker-appearance-with-scroll-bar.html
1533         (Requested by abarth|gardening on #webkit).
1534
1535         * WebView/WebFullScreenController.mm:
1536         (screenRectOfContents):
1537         * WebView/WebRenderNode.mm:
1538         (copyRenderNode):
1539
1540 2012-10-08  Kiran Muppala  <cmuppala@apple.com>
1541
1542         Throttle DOM timers on hidden pages.
1543         https://bugs.webkit.org/show_bug.cgi?id=98474
1544
1545         Reviewed by Maciej Stachowiak.
1546
1547         Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
1548         DumpRenderTree to modify the visibility state of a page.  The latter
1549         is needed to test throttling of timers on hidden pages through DumpRenderTree.
1550
1551         * Configurations/FeatureDefines.xcconfig:
1552         * WebView/WebView.mm:
1553         (-[WebView _setVisibilityState:isInitialState:]):
1554         * WebView/WebViewPrivate.h:
1555
1556 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1557
1558         Rename first/second to key/value in HashMap iterators
1559         https://bugs.webkit.org/show_bug.cgi?id=82784
1560
1561         Reviewed by Eric Seidel.
1562
1563         * History/WebHistory.mm:
1564         (-[WebHistoryPrivate removeItemFromDateCaches:]):
1565         (-[WebHistoryPrivate orderedLastVisitedDays]):
1566         (WebHistoryWriter::WebHistoryWriter):
1567         * Misc/WebCoreStatistics.mm:
1568         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
1569         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
1570         * Plugins/Hosted/NetscapePluginHostManager.mm:
1571         (WebKit::NetscapePluginHostManager::hostForPlugin):
1572         (WebKit::NetscapePluginHostManager::pluginHostDied):
1573         (WebKit::NetscapePluginHostManager::didCreateWindow):
1574         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1575         (WebKit::NetscapePluginHostProxy::pluginHostDied):
1576         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1577         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
1578         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
1579         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
1580         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
1581         (WebKit::NetscapePluginInstanceProxy::destroy):
1582         (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
1583         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
1584         * Plugins/Hosted/ProxyInstance.mm:
1585         (WebKit::ProxyInstance::methodNamed):
1586         (WebKit::ProxyInstance::fieldNamed):
1587         * Plugins/WebNetscapePluginView.mm:
1588         (-[WebNetscapePluginView stopTimers]):
1589         (-[WebNetscapePluginView startTimers]):
1590         * WebCoreSupport/WebNotificationClient.mm:
1591         (WebNotificationClient::show):
1592         (WebNotificationClient::clearNotifications):
1593         (WebNotificationClient::notificationObjectDestroyed):
1594         * WebView/WebHTMLView.mm:
1595         (commandNameForSelector):
1596
1597 2012-10-06  Dan Bernstein  <mitz@apple.com>
1598
1599         WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
1600         https://bugs.webkit.org/show_bug.cgi?id=98601
1601
1602         Reviewed by Darin Adler.
1603
1604         * WebView/WebView.mm:
1605         (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
1606         kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
1607         the value YES.
1608
1609 2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
1610
1611         Unreviewed, rolling out r130556 and r130564.
1612         http://trac.webkit.org/changeset/130556
1613         http://trac.webkit.org/changeset/130564
1614         https://bugs.webkit.org/show_bug.cgi?id=98572
1615
1616         The patch wasn't reviewed by a reviewer and it is breaking
1617         Chromium Windows (Requested by jchaffraix on #webkit).
1618
1619         * WebCoreSupport/WebSystemInterface.mm:
1620         (InitWebCoreSystemInterface):
1621
1622 2012-10-05  Tim Horton  <timothy_horton@apple.com>
1623
1624         [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
1625         https://bugs.webkit.org/show_bug.cgi?id=98565
1626         <rdar://problem/12436468>
1627
1628         Reviewed by Simon Fraser.
1629
1630         Add wkCGContextDrawsWithCorrectShadowOffsets.
1631
1632         * WebCoreSupport/WebSystemInterface.mm:
1633         (InitWebCoreSystemInterface):
1634
1635 2012-10-04  Eric Carlson  <eric.carlson@apple.com>
1636
1637         Allow ports to override text track rendering style
1638         https://bugs.webkit.org/show_bug.cgi?id=97800
1639         <rdar://problem/12044964>
1640
1641         Reviewed by Silvia Pfeiffer.
1642
1643         Add WCSI support for new WKSI caption functions.
1644
1645         * WebCoreSupport/WebSystemInterface.mm:
1646         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
1647
1648 2012-10-04  Jon Lee  <jonlee@apple.com>
1649
1650         Add a setting to enable plugin snapshotting
1651         https://bugs.webkit.org/show_bug.cgi?id=98319
1652         <rdar://problem/12426480>
1653
1654         Reviewed by Brady Eidson.
1655
1656         Expose plugInSnapshottingEnabled preference to WebKit clients.
1657
1658         * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
1659         * WebView/WebPreferences.mm:
1660         (+[WebPreferences initialize]): Setting is turned off by default.
1661         (-[WebPreferences plugInSnapshottingEnabled]):
1662         (-[WebPreferences setPlugInSnapshottingEnabled:]):
1663         * WebView/WebPreferencesPrivate.h:
1664         * WebView/WebView.mm:
1665         (-[WebView _preferencesChanged:]): Update settings based on preference.
1666
1667 2012-10-04  Rik Cabanier  <cabanier@adobe.com>
1668
1669         Turn Compositing on by default in WebKit build
1670         https://bugs.webkit.org/show_bug.cgi?id=98315
1671
1672         Reviewed by Simon Fraser.
1673
1674         enable -webkit-blend-mode on trunk.
1675
1676         * Configurations/FeatureDefines.xcconfig:
1677
1678 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
1679
1680         Final part of "sync" to "flush" renaming
1681         https://bugs.webkit.org/show_bug.cgi?id=98430
1682
1683         Reviewed by Tim Horton.
1684
1685         Change method names on GraphicsLayer and GraphicsLayerClient that
1686         refer to "sync" to use the term "flush" instead, to be consistent
1687         with the rest of the code.
1688
1689         * WebView/WebView.mm:
1690
1691 2012-10-03  Benjamin Poulain  <bpoulain@apple.com>
1692
1693         [WK2] Support all attributes of GeolocationPosition
1694         https://bugs.webkit.org/show_bug.cgi?id=98212
1695
1696         Reviewed by Sam Weinig.
1697
1698         Add an internal constructor for the sake of testing.
1699         A similar API is used on iOS.
1700
1701         * WebView/WebGeolocationPosition.mm:
1702         (-[WebGeolocationPosition initWithGeolocationPosition:]):
1703
1704 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
1705
1706         Standardize on "flush" terminology for compositing layer flushing/syncing
1707         https://bugs.webkit.org/show_bug.cgi?id=98321
1708
1709         Reviewed by Simon Fraser.
1710
1711         Rename compositing-related methods that refer to "syncing" to instead
1712         refer to "flushing".
1713
1714         * WebCoreSupport/WebChromeClient.h:
1715         * WebCoreSupport/WebChromeClient.mm:
1716         (WebChromeClient::scheduleCompositingLayerFlush):
1717         * WebView/WebView.mm:
1718         (-[WebView _flushCompositingChanges]):
1719         (LayerFlushController::flushLayers):
1720         (-[WebView _scheduleCompositingLayerFlush]):
1721         * WebView/WebViewInternal.h:
1722
1723 == Rolled over to ChangeLog-2012-10-02 ==