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