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