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