Rubber Stamped by Adam Roben.
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2011-05-27  Stephanie Lewis  <slewis@apple.com>
2
3         Rubber Stamped by Adam Roben.
4
5         Update Order Files.  Use -order_file flag since it can order more of the binary.
6
7         * Configurations/Base.xcconfig:
8         * WebKit.order:
9
10 2011-05-25  Stephanie Lewis  <slewis@apple.com>
11
12         Reviewed by Brady Eidson.
13
14         https://bugs.webkit.org/show_bug.cgi?id=61407
15         part of <rdar://problem/8675177>
16         Remove Quicklook pref.  Moving it enirely down into WebCore so it can
17         be calculated only on reloads.
18
19         * WebView/WebPreferenceKeysPrivate.h:
20         * WebView/WebPreferences.mm:
21         (+[WebPreferences initialize]):
22         * WebView/WebPreferencesPrivate.h:
23         * WebView/WebView.mm:
24         (-[WebView _preferencesChanged:]):
25
26 2011-05-24  Jer Noble  <jer.noble@apple.com>
27
28         Reviewed by Darin Adler.
29
30         Video fails to play on Vimeo
31         https://bugs.webkit.org/show_bug.cgi?id=61403
32
33         * WebCoreSupport/WebSystemInterface.mm:
34         (InitWebCoreSystemInterface): Added support for wkAVAssetResolvedURL and
35             wkQTMovieResolvedURL.
36
37 2011-05-24  Keishi Hattori  <keishi@webkit.org>
38
39         Reviewed by Kent Tamura.
40
41         Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
42         https://bugs.webkit.org/show_bug.cgi?id=61273
43
44         * Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.
45
46 2011-05-24  Adam Barth  <abarth@webkit.org>
47
48         Reviewed by Eric Seidel.
49
50         Add FIXME comments about removing FrameLoader::isProcessingUserGesture
51         https://bugs.webkit.org/show_bug.cgi?id=61395
52
53         * WebView/WebView.mm:
54         (-[WebView _isProcessingUserGesture]):
55
56 2011-05-24  Michael Saboff  <msaboff@apple.com>
57
58         Reviewed by Geoffrey Garen.
59
60         Improve handling in WebCore of low memory situations
61         https://bugs.webkit.org/show_bug.cgi?id=61222
62
63         Added call to enable memory pressure handling.
64
65         * WebView/WebView.mm:
66         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
67         * WebView/WebViewInternal.h:
68
69 2011-05-24  Jay Civelli  <jcivelli@chromium.org>
70
71         Rubberstamped by David Kilzer.
72
73         Updated some files that I forgot in my previous MHTML CL.
74
75         * Configurations/FeatureDefines.xcconfig:
76
77 2011-05-20  Jeremy Noble  <jer.noble@apple.com>
78
79         Reviewed by Simon Fraser.
80
81         Stack overflow in WebFullScreenController when built on Leopard and run on SnowLeopard.
82         https://bugs.webkit.org/show_bug.cgi?id=61224
83
84         Remove the CATransaction(SnowLeopardConvenience) functions, and replace them with the Leopard
85         versions of same.
86
87         * WebView/WebFullScreenController.mm:
88         (-[WebFullScreenController windowDidEnterFullscreen:]):
89         (-[WebFullScreenController enterFullscreen:]):
90         (-[WebFullScreenController exitFullscreen]):
91         (-[WebFullscreenWindow setRendererLayer:]):
92
93 2011-05-20  Andy Estes  <aestes@apple.com>
94
95         Reviewed by Darin Adler.
96
97         WebView loses firstResponder status when entering full-screen mode.
98         https://bugs.webkit.org/show_bug.cgi?id=61153
99
100         * Misc/WebNSWindowExtras.h:
101         * Misc/WebNSWindowExtras.m:
102         (-[NSWindow makeResponder:firstResponderIfDescendantOfView:]): Add a
103         convenience method to NSWindow that makes the given NSResponder first
104         responder only if it is a descendant of the given view.
105         * WebView/WebFullScreenController.mm:
106         (-[WebFullScreenController windowDidEnterFullscreen:]): If the WebView
107         was a descendant of the browser window's first responder when entering
108         full-screen mode, set the full-screen window's first responder to that
109         same NSResponder.
110         (-[WebFullScreenController exitFullscreen]): Do the reverse of what is
111         done in windowDidEnterFullscreen:.
112
113 2011-05-20  Enrica Casucci  <enrica@apple.com>
114
115         Reviewed by David Kilzer.
116
117         Add delegate methods about focus and blur to all elements.
118         https://bugs.webkit.org/show_bug.cgi?id=61218
119
120         We want to have delegates for these events for all the elements, not only the form elements.
121         The patch changes the name of the methods in a way that is not form element specific.
122
123         * WebCoreSupport/WebChromeClient.h:
124         * WebCoreSupport/WebChromeClient.mm:
125         (WebChromeClient::elementDidFocus):
126         (WebChromeClient::elementDidBlur):
127         * WebView/WebUIDelegatePrivate.h:
128
129 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
130
131         Reviewed by Sam Weinig.
132
133         numberOfActiveAnimations() can include animations from documents in the page cache
134         https://bugs.webkit.org/show_bug.cgi?id=53641
135
136         Pass the Frame's document as the one to count animations on.
137
138         * WebView/WebFrame.mm:
139         (-[WebFrame _numberOfActiveAnimations]):
140
141 2011-05-17  Timothy Hatcher  <timothy@apple.com>
142
143         Update the the context menu to reflect the system search provider on Mac.
144
145         <rdar://problem/9198419>
146
147         Reviewed by Sam Weinig.
148
149         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
150         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): Use wkCopyDefaultSearchProviderDisplayName to
151         create the web search context menu title.
152         * WebCoreSupport/WebSystemInterface.mm:
153         (InitWebCoreSystemInterface): Added CopyDefaultSearchProviderDisplayName.
154
155 2011-05-16  Emil A Eklund  <eae@chromium.org>
156
157         Reviewed by Eric Seidel.
158
159         Replace docTop/Right/Bottom/Left/Width/Height with documentRect
160         https://bugs.webkit.org/show_bug.cgi?id=60743
161
162         Replace uses of docWidth/Height with documentRect.
163
164         * WebView/WebFrame.mm:
165         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
166
167 2011-05-16  Yuzo Fujishima  <yuzo@google.com>
168
169         Reviewed by Antti Koivisto.
170
171         Fix for Bug 43704 - Web font is printed as blank if it is not cached
172         https://bugs.webkit.org/show_bug.cgi?id=43704
173
174         * WebView/WebHTMLView.mm:
175         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]): Use ResourceCacheValidationSuppressor to allow stale resources in printing.
176
177 2011-05-16  David Kilzer  <ddkilzer@apple.com>
178
179         <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
180         <rdar://problem/9446430>
181
182         Reviewed by Mark Rowe.
183
184         * Configurations/Base.xcconfig: Fixed typo.
185
186 2011-05-13  Jon Lee  <jonlee@apple.com>
187
188         Reviewed by Simon Fraser.
189
190         Can't horizontally scroll iframes and overflow because wheel events are always accepted
191         https://bugs.webkit.org/show_bug.cgi?id=60779
192
193         * WebCoreSupport/WebChromeClient.h:
194         (WebChromeClient::numWheelEventHandlersChanged): Default impl of new ChromeClient method
195         (WebChromeClient::shouldRubberBandInDirection): Default impl of new ChromeClient method
196
197 2011-05-13  Sam Weinig  <sam@webkit.org>
198
199         Reviewed by Anders Carlsson.
200
201         Prune #includes from FrameView.h (Part 2)
202         https://bugs.webkit.org/show_bug.cgi?id=60748
203
204         - Update files that were depending on FrameView.h #including Frame.h or
205           Page.h.
206
207         * WebView/WebClipView.mm:
208         * WebView/WebHTMLView.mm:
209         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
210
211 2011-05-12  Pratik Solanki  <psolanki@apple.com>
212
213         Reviewed by Antti Koivisto.
214
215         Part of WebCore should use CFNetwork-based loader on Mac
216         https://bugs.webkit.org/show_bug.cgi?id=51836
217
218         Use CFRunLoop when using CFNetwork.
219
220         * WebView/WebView.mm:
221         (-[WebView scheduleInRunLoop:forMode:]):
222         (-[WebView unscheduleFromRunLoop:forMode:]):
223
224 2011-05-12  Pratik Solanki  <psolanki@apple.com>
225
226         Reviewed by Antti Koivisto.
227
228         Part of WebCore should use CFNetwork-based loader on Mac
229         https://bugs.webkit.org/show_bug.cgi?id=51836
230
231         Include AuthenticationCF.h header file.
232
233         * Misc/WebDownload.mm:
234         * Plugins/WebBaseNetscapePluginView.mm:
235         * WebCoreSupport/WebFrameLoaderClient.mm:
236
237 2011-05-12  Adele Peterson  <adele@apple.com>
238
239         Reviewed by Darin Adler and Adam Barth.
240
241         Fix for <rdar://problem/9253454> Solar Walk For Mac: Info window is blank (HTML5 parser)
242         https://bugs.webkit.org/show_bug.cgi?id=60685
243
244         Solar Walk uses a self closing title tag, so to match the behavior of the old parser, 
245         we use a UserScript to write the contents of the title element to the end of the document so it can be re-parsed.
246
247         * Misc/SolarWalkQuirksUserScript.js: Added.
248         * WebView/WebView.mm:
249         (needsSolarWalkQuirksScript):
250         (leakSolarWalkQuirksUserScriptContents):
251         (-[WebView _injectSolarWalkQuirksScript]):
252         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
253
254 2011-05-12  Jia Pu  <jpu@apple.com>
255
256         Reviewed by Darin Adler.
257
258         Regression caused by changeset 86281
259         https://bugs.webkit.org/show_bug.cgi?id=60712
260         <rdar://problem/9427970>
261
262         Removed the condition variable. [NSSpellChecker dismissCorrectionIndicatorForView:] is blocking.
263         So handleAcceptedReplacement() triggered by dismissInternal() will return before dismissInternal()
264         returns. So we don't need to use the condition to coordinate between these two function. In fact,
265         all callbacks are delivered on main thread. We don't really need any locking here.
266
267         Since now we don't have distinction between dismiss() and dismissSoon(). dismissSoon() has
268         been removed.
269
270         * WebCoreSupport/CorrectionPanel.h:
271         * WebCoreSupport/CorrectionPanel.mm:
272         (CorrectionPanel::CorrectionPanel):
273         (CorrectionPanel::show):
274         (CorrectionPanel::dismiss):
275         (CorrectionPanel::dismissInternal):
276         (CorrectionPanel::handleAcceptedReplacement):
277         * WebCoreSupport/WebEditorClient.mm:
278         (WebEditorClient::dismissCorrectionPanelSoon):
279
280 2011-05-12  Patrick Gansterer  <paroga@webkit.org>
281
282         Reviewed by Adam Barth.
283
284         Enable OwnPtr strict mode in PluginHalter
285         https://bugs.webkit.org/show_bug.cgi?id=60681
286
287         * WebView/WebView.mm:
288         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
289
290 2011-05-12  Nikolas Zimmermann  <nzimmermann@rim.com>
291
292         Reviewed by Darin Adler.
293
294         String operator+ reallocates unnecessarily when concatting > 2 strings
295         https://bugs.webkit.org/show_bug.cgi?id=58420
296
297         Provide a faster String append operator. See Source/JavaScriptCore/ChangeLog for details.
298
299         * WebView/WebFrame.mm: Explicitely cast to Strings first, so operator NSString*() can be invoked.
300         (-[WebFrame _stringWithDocumentTypeStringAndMarkupString:]):
301
302 2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
303
304         Reviewed by Darin Adler.
305
306         Perform some forward declarations suggested by include-what-you-use
307         https://bugs.webkit.org/show_bug.cgi?id=60545
308
309         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
310         * WebView/WebFrame.mm:
311
312 2011-05-11  Jia Pu  <jpu@apple.com>
313
314         Reviewed by Darin Adler.
315
316         CorrectionPanel sometimes hangs in dismissSoon().
317         https://bugs.webkit.org/show_bug.cgi?id=60599
318         <rdar://problem/9313628>
319
320         Make sure dismissSoon() won't wait indefinitely if handleAcceptedReplacement() sets m_resultForSynchronousDismissal
321         to nil. Added a designated variable m_isDismissing, instead of piggy-backing m_resultForSynchronousDismissal,
322         for condition checking.
323
324         * WebCoreSupport/CorrectionPanel.h:
325         * WebCoreSupport/CorrectionPanel.mm:
326         (CorrectionPanel::CorrectionPanel):
327         (CorrectionPanel::show):
328         (CorrectionPanel::dismissSoon):
329         (CorrectionPanel::dismissInternal):
330         (CorrectionPanel::handleAcceptedReplacement):
331
332 2011-05-10  Anton D'Auria  <adauria@apple.com>
333
334         Reviewed by David Levin.
335
336         Add ApplicationCache API to get disk usage per origin
337         https://bugs.webkit.org/show_bug.cgi?id=57127
338
339         Added Mac port API.
340
341         * WebCoreSupport/WebApplicationCache.h:
342         * WebCoreSupport/WebApplicationCache.mm:
343         (+[WebApplicationCache diskUsageForOrigin:]):
344
345 2011-05-10  Anton D'Auria  <adauria@apple.com>
346
347         Reviewed by Alexey Proskuryakov.
348
349         Add ApplicationCache API to get disk usage per origin
350         https://bugs.webkit.org/show_bug.cgi?id=57127
351
352         Added Mac port API.
353
354         * WebCoreSupport/WebApplicationCache.h:
355         * WebCoreSupport/WebApplicationCache.mm:
356         (+[WebApplicationCache diskUsageForOrigin:]):
357
358 2011-05-10  Beth Dakin  <bdakin@apple.com>
359
360         Reviewed by Darin Adler.
361
362         https://bugs.webkit.org/show_bug.cgi?id=60582
363         Crash switching overlay/non-overlay scrollbar preference still possible
364         -and corresponding-
365         <rdar://problem/9323983>
366
367         * WebCoreSupport/WebSystemInterface.mm:
368         (InitWebCoreSystemInterface):
369
370 2011-05-09  Jeremy Noble  <jer.noble@apple.com>
371
372         Reviewed by Darin Adler.
373
374         Command-~/Exposé to another window while <video> is in full screen, breaks Safari, eventually leading to crash
375         https://bugs.webkit.org/show_bug.cgi?id=60496
376
377         When animating into and out of full screen, order out and back in the original webView window,
378         disabling animations when necessary.  The exitFullscreen method was targeting the wrong window,
379         as the webView is hosted in the full screen window when we ask for it's parent window.
380
381         * WebView/WebFullScreenController.mm:
382         (-[WebFullScreenController windowDidEnterFullscreen:]):
383         (-[WebFullScreenController exitFullscreen]):
384
385 2011-05-04  Philippe Normand  <pnormand@igalia.com>
386
387         Reviewed by Dimitri Glazkov.
388
389         Implement LayoutTestController::pseudoShadowId()
390         https://bugs.webkit.org/show_bug.cgi?id=60034
391
392         * DOM/WebDOMOperations.mm:
393         (-[DOMElement _shadowPseudoId]):
394         * DOM/WebDOMOperationsPrivate.h:
395
396 2011-05-05  Dan Bernstein  <mitz@apple.com>
397
398         Reviewed by Simon Fraser.
399
400         WebKit part of <rdar://problem/9155590> Broken animation in iAd producer
401
402         * WebCoreSupport/WebSystemInterface.mm:
403         (InitWebCoreSystemInterface): Initialize wkExecutableWasLinkedOnOrBeforeSnowLeopard.
404
405 2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
406
407         Reviewed by Eric Seidel.
408
409         Rename SelectionController to FrameSelection
410         https://bugs.webkit.org/show_bug.cgi?id=60234
411
412         * WebView/WebFrame.mm:
413         (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
414         * WebView/WebFrameInternal.h:
415         * WebView/WebHTMLView.mm:
416         * WebView/WebTextCompletionController.mm:
417         (-[WebTextCompletionController doCompletion]):
418         * WebView/WebView.mm:
419
420 2011-05-04  Cris Neckar  <cdn@chromium.org>
421
422         Reviewed by Adam Barth.
423
424         Expose WebView directly through ChromeClient.
425         https://bugs.webkit.org/show_bug.cgi?id=49902
426
427         * WebCoreSupport/WebChromeClient.h:
428         (WebChromeClient::webView):
429         * WebView/WebFrame.mm:
430         (kit):
431
432 2011-05-04  Tao Bai  <michaelbai@chromium.org>
433
434         Reviewed by David Kilzer.
435
436         Populate touch-icon url to FrameLoaderClient
437         https://bugs.webkit.org/show_bug.cgi?id=59143
438
439         Respect the interface change in FrameLoaderClient.
440
441         * Configurations/FeatureDefines.xcconfig:
442         * WebCoreSupport/WebFrameLoaderClient.h:
443         * WebCoreSupport/WebFrameLoaderClient.mm:
444         (WebFrameLoaderClient::dispatchDidChangeIcons):
445
446 2011-05-03  Julien Chaffraix  <jchaffraix@codeaurora.org>
447
448         Reviewed by Dimitri Glazkov.
449
450         Element:shadowRoot & Element::ensureShadowRoot should return ShadowRoot*
451         https://bugs.webkit.org/show_bug.cgi?id=58703
452
453         * DOM/WebDOMOperations.mm: Added #include for ShadowRoot.h.
454
455 2011-05-02  Adam Roben  <aroben@apple.com>
456
457         Take advantage of implicit conversion from nullptr_t to PassOwnPtr
458
459         Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr
460         doesn't work, but should
461
462         Reviewed by Adam Barth.
463
464         * History/WebHistory.mm:
465         * Plugins/WebNetscapePluginEventHandler.mm:
466         * WebView/WebView.mm:
467
468 2011-05-02  Brady Eidson  <beidson@apple.com>
469
470         Reviewed by Anders Carlsson.
471
472         <rdar://problem/9340945> and https://bugs.webkit.org/show_bug.cgi?id=59973
473         In Aperture, a WebView might be dealloc'ed before it finishes loading.
474
475         * WebView/WebView.mm:
476         (needsSelfRetainWhileLoadingQuirk):
477         (-[WebView _didStartProvisionalLoadForFrame:]): If we need the quirk, retain self.
478         (-[WebView _didFinishLoadForFrame:]): If we need the quirk, release self on a delay.
479         (-[WebView _didFailLoadWithError:forFrame:]): Ditto.
480         (-[WebView _didFailProvisionalLoadWithError:forFrame:]): Ditto.
481
482 2011-05-02  Adam Barth  <abarth@webkit.org>
483
484         Reviewed by David Levin.
485
486         PLATFORM(MAC) should (almost!) build with strict PassOwnPtr
487         https://bugs.webkit.org/show_bug.cgi?id=59924
488
489         * History/WebHistory.mm:
490         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]):
491         * Plugins/WebBaseNetscapePluginView.mm:
492         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
493         * WebCoreSupport/WebFrameLoaderClient.mm:
494         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
495         * WebView/WebView.mm:
496         (-[WebView _injectMailQuirksScript]):
497         (-[WebView _injectOutlookQuirksScript]):
498         (toStringVector):
499
500 2011-05-02  Sam Weinig  <sam@webkit.org>
501
502         Reviewed by Adam Barth.
503
504         Prune some #includes from DOMWindow.h
505         https://bugs.webkit.org/show_bug.cgi?id=59907
506
507         * Plugins/WebBaseNetscapePluginView.mm:
508         * WebView/WebFrame.mm:
509         Add now missing SecurityOrigin.h #includes.
510
511 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
512
513         Reviewed by Eric Seidel.
514
515         Get rid of versions of sendContextMenuEvent and eventMayStartDrag that takes NSEvent
516         https://bugs.webkit.org/show_bug.cgi?id=59837
517
518         Call sendContextMenuEvent and eventMayStartDrag with PlatformMouseEvent instead of NSEvent.
519
520         * WebView/WebHTMLView.mm:
521         (-[WebHTMLView menuForEvent:]):
522         (-[WebHTMLView acceptsFirstMouse:]):
523         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
524
525 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
526
527         Reviewed by Eric Seidel.
528
529         Move currentKeyboardEvent from EventHandlerMac.mm to WebHTMLView.mm
530         https://bugs.webkit.org/show_bug.cgi?id=59835
531
532         Moved currentKeyboardEvent.
533
534         * WebView/WebHTMLView.mm:
535         (currentKeyboardEvent):
536         (-[WebHTMLView becomeFirstResponder]):
537
538 2011-04-29  Dean Jackson  <dino@apple.com>
539
540         Reviewed by Simon Fraser.
541
542         Add ENABLE macro for WebKitAnimation
543         https://bugs.webkit.org/show_bug.cgi?id=59729
544
545         Add new feature to toggle WebKit Animation API.
546
547         * Configurations/FeatureDefines.xcconfig:
548
549 2011-04-28  David Kilzer  <ddkilzer@apple.com>
550
551         <http://webkit.org/b/59758> Fix static analyzer warnings for missing assignment to 'self' in -init methods
552
553         Reviewed by Anders Carlsson.
554
555         * History/WebHistory.mm:
556         (-[WebHistoryPrivate init]):
557         * Misc/WebElementDictionary.mm:
558         (-[WebElementDictionary initWithHitTestResult:]):
559         * Misc/WebIconDatabase.mm:
560         (-[WebIconDatabase init]):
561         * Plugins/WebPluginController.mm:
562         (-[WebPluginController initWithDocumentView:]):
563         * Plugins/WebPluginRequest.m:
564         (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
565         * WebCoreSupport/WebEditorClient.mm:
566         (-[WebEditCommand initWithEditCommand:]):
567         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
568         (-[WebJavaScriptTextInputPanel initWithPrompt:text:]):
569         * WebView/WebNavigationData.mm:
570         (-[WebNavigationData initWithURLString:title:originalRequest:response:hasSubstituteData:clientRedirectSource:]):
571
572 2011-04-28  David Levin  <levin@chromium.org>
573
574         Reviewed by Adam Barth.
575
576         Remove IMAGE_RESIZER related code.
577         https://bugs.webkit.org/show_bug.cgi?id=59735
578
579         * Configurations/FeatureDefines.xcconfig:
580
581 2011-04-28  Adam Barth  <abarth@webkit.org>
582
583         Reviewed by Eric Seidel.
584
585         Remove WML
586         https://bugs.webkit.org/show_bug.cgi?id=59678
587
588         Remove WML-related configuration options and private APIs.
589
590         * Configurations/FeatureDefines.xcconfig:
591         * WebCoreSupport/WebChromeClient.mm:
592         (stringForMessageSource):
593         * WebView/WebFramePrivate.h:
594         * WebView/WebUIDelegatePrivate.h:
595
596 2011-04-28  Brian Weinstein  <bweinstein@apple.com>
597
598         Reviewed by Timothy Hatcher.
599
600         Web Inspector: REGRESSION(85051): Develop Menu items are wrong when inspector is frontmost window
601         https://bugs.webkit.org/show_bug.cgi?id=59747
602
603         Restore functions that were removed in r85051. They were needed when the inspector is the frontmost window.
604         Also update them to call _inspectedWebView.get() - since it's a RetainPtr now.
605
606         * WebCoreSupport/WebInspectorClient.mm:
607         (-[WebInspectorWindowController showWebInspector:]):
608         (-[WebInspectorWindowController showErrorConsole:]):
609         (-[WebInspectorWindowController toggleDebuggingJavaScript:]):
610         (-[WebInspectorWindowController toggleProfilingJavaScript:]):
611         (-[WebInspectorWindowController validateUserInterfaceItem:]):
612
613 2011-04-28  David Kilzer  <ddkilzer@apple.com>
614
615         <http://webkit.org/b/59725> -[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:] leaks a CALayer
616
617         Reviewed by Dan Bernstein.
618
619         * WebView/WebFullScreenController.mm:
620         (-[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:]):
621         Use a RetainPtr to hold the CALayer and to fix the leak.
622
623 2011-04-28  David Kilzer  <ddkilzer@apple.com>
624
625         Follow-up fix: <http://webkit.org/b/59727> -[WebPDFView menuForEvent:] leaks NSMenuItem objects
626
627         Addresses review comment from Darin Adler.
628
629         * WebView/WebPDFView.mm:
630         (-[WebPDFView menuForEvent:]): Use a local variable and -release
631         instead of -autorelease.
632
633 2011-04-28  Anders Carlsson  <andersca@apple.com>
634
635         Fix a thinko - separateRealmLabel is not an NSImageView.
636
637         * Panels/WebAuthenticationPanel.h:
638
639 2011-04-28  David Kilzer  <ddkilzer@apple.com>
640
641         <http://webkit.org/b/59727> -[WebPDFView menuForEvent:] leaks NSMenuItem objects
642
643         Reviewed by Dan Bernstein.
644
645         * WebView/WebPDFView.mm:
646         (-[WebPDFView menuForEvent:]): Call -autorelease after copying
647         each NSMenuItem.  Regressed in r9566 for Bug 3711.
648
649 2011-04-28  Enrica Casucci  <enrica@apple.com>
650
651         Reviewed by Beth Dakin.
652
653         Momentum scroll tweak for WebKit.
654         https://bugs.webkit.org/show_bug.cgi?id=59723
655         <rdar://problem/9259933>
656
657         * WebView/WebDynamicScrollBarsView.mm:
658         (-[WebDynamicScrollBarsView scrollWheel:]): Changed constant.
659
660 2011-04-27  Anders Carlsson  <andersca@apple.com>
661
662         Follow-up Leopard build fix.
663
664         * Carbon/HIViewAdapter.m:
665         (_webkit_NSView_setNeedsDisplayInRect):
666
667 2011-04-27  Anders Carlsson  <andersca@apple.com>
668
669         More clang++ 32-bit build fixes.
670
671         * Carbon/CarbonWindowAdapter.mm:
672         (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
673         (-[CarbonWindowAdapter setContentView:]):
674         (-[CarbonWindowAdapter _handleContentBoundsChanged]):
675         * Carbon/HIViewAdapter.m:
676         (_webkit_NSView_setNeedsDisplayInRect):
677         * Panels/WebAuthenticationPanel.h:
678         * Plugins/WebBaseNetscapePluginView.mm:
679         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
680         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
681         (getCarbonEvent):
682         * WebCoreSupport/WebChromeClient.mm:
683         (WebChromeClient::scrollRectIntoView):
684         * WebCoreSupport/WebViewFactory.mm:
685         (-[WebViewFactory accessibilityConvertScreenRect:]):
686         * WebView/WebFrameView.mm:
687         (-[WebFrameView _scrollToBeginningOfDocument]):
688         (-[WebFrameView _scrollToEndOfDocument]):
689         * WebView/WebFullScreenController.mm:
690         (-[WebFullScreenController windowDidEnterFullscreen:]):
691         * WebView/WebHTMLView.mm:
692         (-[WebHTMLView _hitViewForEvent:]):
693         (coreGraphicsScreenPointForAppKitScreenPoint):
694         * WebView/WebPDFView.mm:
695         (-[WebPDFView setScrollPoint:]):
696
697 2011-04-27  Yury Semikhatsky  <yurys@chromium.org>
698
699         Reviewed by Pavel Feldman.
700
701         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
702         https://bugs.webkit.org/show_bug.cgi?id=44230
703
704         Use RetainPtr access inspected view from the inspector one to avoid inspected view being deleted before
705         inspector is closed.
706
707         * WebCoreSupport/WebInspectorClient.mm: store reference to inspected view in RetainPtr. Despite the removed
708         comment in initWithInspectedWebView this doesn't introduce cyclic reference since there are no retaining
709         pointers to the WebInspectorWindowController from the inspected page or from the WebInspectorClient.
710         There is only one reference to it from WebInspectorFrontendClient which is held by the inspector
711         front-end page.
712
713         Drive-by fix: removed several unused methods which are currently implemented in mac/WebInspector/WebInspector.mm
714         (-[WebInspectorWindowController initWithInspectedWebView:]):
715         (-[WebInspectorWindowController close]):
716         (-[WebInspectorWindowController showWindow:]):
717         (-[WebInspectorWindowController setAttachedWindowHeight:]):
718         (-[WebInspectorWindowController destroyInspectorView:]):
719
720 2011-04-26  Sam Weinig  <sam@webkit.org>
721
722         Reviewed by David Hyatt.
723
724         Remove Datagrid from the tree
725         https://bugs.webkit.org/show_bug.cgi?id=59543
726
727         * Configurations/FeatureDefines.xcconfig:
728         Remove feature.
729
730 2011-04-26  Dan Bernstein  <mitz@apple.com>
731
732         Reviewed by Mark Rowe.
733
734         Choose the compiler based on the Xcode version for Snow Leopard debug builds.
735
736         * Configurations/Base.xcconfig:
737         * Configurations/CompilerVersion.xcconfig: Added.
738
739 2011-04-25  Adam Barth  <abarth@webkit.org>
740
741         Reviewed by David Levin.
742
743         WebKit2 should play nice with strict OwnPtrs
744         https://bugs.webkit.org/show_bug.cgi?id=59426
745
746         Fix include ordering.
747
748         * WebView/WebDeviceOrientationProviderMock.mm:
749
750 2011-04-25  Adam Barth  <abarth@webkit.org>
751
752         Reviewed by David Levin.
753
754         WebKit1 should build cleanly with strict OwnPtrs
755         https://bugs.webkit.org/show_bug.cgi?id=59424
756
757         * History/WebHistoryItem.mm:
758         (-[WebHistoryItem initFromDictionaryRepresentation:]):
759         * Plugins/WebNetscapePluginEventHandler.h:
760         * Plugins/WebNetscapePluginEventHandler.mm:
761         (WebNetscapePluginEventHandler::create):
762         * Plugins/WebNetscapePluginView.mm:
763         (-[WebNetscapePluginView createPlugin]):
764         * WebView/WebDeviceOrientationProviderMock.mm:
765         * WebView/WebTextIterator.mm:
766         (-[WebTextIterator initWithRange:]):
767
768 2011-04-25  Jon Lee  <jonlee@apple.com>
769
770         Reviewed by Maciej Stachowiak.
771
772         Overlay scroller hard to see on pages with dark background (59183)
773         https://bugs.webkit.org/show_bug.cgi?id=59183
774         <rdar://problem/8975367>
775         
776         * WebCoreSupport/WebSystemInterface.mm:
777         (InitWebCoreSystemInterface): adding method to allow changing style
778
779 2011-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>
780
781         Unreviewed, rolling out r84740.
782         http://trac.webkit.org/changeset/84740
783         https://bugs.webkit.org/show_bug.cgi?id=59290
784
785         change breaks apple internal builds and is incorrect
786         (Requested by smfr on #webkit).
787
788         * WebCoreSupport/WebSystemInterface.mm:
789         (InitWebCoreSystemInterface):
790
791 2011-04-22  Jon Lee  <jonlee@apple.com>
792
793         Reviewed by Beth Dakin.
794
795         Overlay scroller hard to see on pages with dark background (59183)
796         https://bugs.webkit.org/show_bug.cgi?id=59183
797         <rdar://problem/8975367>
798         
799         * WebCoreSupport/WebSystemInterface.mm:
800         (InitWebCoreSystemInterface): adding method to allow changing style
801
802 2011-04-19  Jer Noble  <jer.noble@apple.com>
803
804         Reviewed by Daniel Bates.
805
806         Full Screen from within an <iframe> does not cause <iframe> to resize.
807         https://bugs.webkit.org/show_bug.cgi?id=58638
808
809         Tests: fullscreen/full-screen-frameset-allowed.html
810                fullscreen/full-screen-frameset-not-allowed.html
811
812         Return the _element's document instead of the WKView's document, which 
813         will be different in the case of elements within <iframe>s.
814
815         * WebView/WebFullScreenController.mm:
816         (-[WebFullScreenController _document]):
817
818 2011-04-22  Jer Noble  <jer.noble@apple.com>
819
820         Reviewed by Maciej Stachowiak.
821
822         Disable MediaPlayerPrivateAVFoundation when using old full screen mode.
823         https://bugs.webkit.org/show_bug.cgi?id=59147
824
825         Add a new user default preference, and plumb that preference down to WebCore
826         Settings. Allow the fullScreenEnabled preference to override the new 
827         isAVFoundationEnabled preference, so that clients of the legacy full screen
828         mode will continue to use that mode normally.
829
830         * WebView/WebPreferenceKeysPrivate.h: Add new preference key.
831         * WebView/WebPreferences.mm:
832         (+[WebPreferences initialize]): Set the default value of new
833             preference.
834         (-[WebPreferences setAVFoundationEnabled:]): Added.
835         (-[WebPreferences isAVFoundationEnabled]): Added.
836         * WebView/WebPreferencesPrivate.h:
837         * WebView/WebView.mm:
838         (-[WebView _preferencesChanged:]): Update the WebCore settings with the
839             new values from WebPreferences.
840
841 2011-04-22  Sam Weinig  <sam@webkit.org>
842
843         Reviewed by Gavin Barraclough.
844
845         Remove remaining uses of deprecated version of toJS
846         https://bugs.webkit.org/show_bug.cgi?id=59170
847
848         * DOM/WebDOMOperations.mm:
849         (-[DOMElement _shadowRoot:]):
850         (-[DOMElement _ensureShadowRoot:]):
851         Replace use of deprecated toJS overload with explicit call to deprecatedGlobalObjectForPrototype.
852
853 2011-04-21  Maciej Stachowiak  <mjs@apple.com>
854
855         Reviewed by Adam Roben.
856
857         Add a feature define to allow <details> and <summary> to be disabled
858         https://bugs.webkit.org/show_bug.cgi?id=59118
859         <rdar://problem/9257045>
860
861         * Configurations/FeatureDefines.xcconfig:
862
863 2011-04-21  Ryosuke Niwa  <rniwa@webkit.org>
864
865         Reviewed by Sam Weinig.
866
867         Add Frame* to the argument lists of canCopyCut and canPaste
868         https://bugs.webkit.org/show_bug.cgi?id=59153
869
870         * WebCoreSupport/WebEditorClient.h:
871         * WebCoreSupport/WebEditorClient.mm:
872         (WebEditorClient::canCopyCut):
873         (WebEditorClient::canPaste):
874
875 2011-04-21  Sheriff Bot  <webkit.review.bot@gmail.com>
876
877         Unreviewed, rolling out r82052.
878         http://trac.webkit.org/changeset/82052
879         https://bugs.webkit.org/show_bug.cgi?id=59135
880
881         New full screen api should be opt-in, not opt-out. (Requested
882         by jernoble on #webkit).
883
884         * WebView/WebPreferences.mm:
885         (+[WebPreferences initialize]):
886
887 2011-04-21  Beth Dakin  <bdakin@apple.com>
888
889         Reviewed by Dan Bernstein.
890
891         https://bugs.webkit.org/show_bug.cgi?id=59048
892         Need to track whether overlay scrollbar is currently visible and in lower-
893         righthand corner
894         -and corresponding-
895         <rdar://problem/9211232>
896
897         A new WebSystemInterface is needed for this.
898         * WebCoreSupport/WebSystemInterface.mm:
899         (InitWebCoreSystemInterface):
900
901 2011-04-21  Dirk Schulze  <krit@webkit.org>
902
903         Reviewed by Nikolas Zimmermann.
904
905         SVG feDropShadow implementation of SVG Filters 1.2
906         https://bugs.webkit.org/show_bug.cgi?id=52513
907
908         * MigrateHeaders.make:
909
910 2011-04-20  Dominic Cooney  <dominicc@chromium.org>
911
912         Reviewed by Dimitri Glazkov.
913
914         layoutTestController can create and destroy shadow DOM
915         https://bugs.webkit.org/show_bug.cgi?id=59058
916
917         Support for new methods in Mac DRT.
918
919         * DOM/WebDOMOperations.mm:
920         (-[DOMElement _ensureShadowRoot:]):
921         (-[DOMElement _removeShadowRoot]):
922         * DOM/WebDOMOperationsPrivate.h:
923
924 2011-04-20  Eric Carlson  <eric.carlson@apple.com>
925
926         Reviewed by Dan Bernstein.
927
928         Adopt QTKit API for listing and deleting file in its media cache.
929         <rdar://problem/9130029> 
930
931         * WebCoreSupport/WebSystemInterface.mm:
932         (InitWebCoreSystemInterface): Initialize new functions.
933
934 2011-04-19  Matthew Delaney  <mdelaney@apple.com>
935
936         Reviewed by Simon Fraser.
937
938         WebPreferences in WebKit1 should have CanvasUsesAcceleratedDrawing set to NO by default
939         https://bugs.webkit.org/show_bug.cgi?id=58936
940
941         * WebView/WebPreferences.mm:
942         (+[WebPreferences initialize]):
943
944 2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
945
946         Reviewed by Pavel Feldman.
947
948         Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
949         https://bugs.webkit.org/show_bug.cgi?id=58883
950
951         * WebCoreSupport/WebFrameLoaderClient.h:
952         * WebCoreSupport/WebFrameLoaderClient.mm:
953         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
954
955 2011-04-18  Jia Pu  <jpu@apple.com>
956
957         Reviewed by Mark Rowe.
958
959         WebKit needs to stop importing <AppKit/NSTextChecker.h>
960         https://bugs.webkit.org/show_bug.cgi?id=58798
961         <rdar://problem/9294938>
962
963         Use public header <AppKit/NSSpellChecker.h> instead.
964
965         * WebCoreSupport/CorrectionPanel.h:
966         * WebCoreSupport/CorrectionPanel.mm:
967         (correctionIndicatorType):
968         (CorrectionPanel::show):
969         (CorrectionPanel::dismissInternal):
970         (CorrectionPanel::handleAcceptedReplacement):
971         * WebCoreSupport/WebEditorClient.mm:
972         * WebView/WebView.mm:
973
974 2011-04-17  Cameron Zwarich  <zwarich@apple.com>
975
976         Reviewed by Timothy Hatcher.
977
978         Stop using -[NSString initWithContentsOfFile:]
979         https://bugs.webkit.org/show_bug.cgi?id=58763
980
981         -[NSString initWithContentsOfFile:] was deprecated in 10.4, so we should stop using it.
982
983         * WebView/WebView.mm:
984         (leakMailQuirksUserScriptContents):
985         (leakOutlookQuirksUserScriptContents):
986
987 2011-04-17  David Kilzer  <ddkilzer@apple.com>
988
989         <http://webkit.org/b/58463> Switch HTTP pipelining from user default to private setting
990         <rdar://problem/9268729>
991
992         Reviewed by Dan Bernstein.
993
994         This replaces support for the WebKitEnableHTTPPipelining user
995         default with methods on the WebCore::ResourceRequest class in
996         WebCore, the WebView class in WebKit1, and the WebContext class
997         in WebKit2.  It also removes support for the
998         WebKitForceHTTPPipeliningPriorityHigh user default which was not
999         needed.
1000
1001         * WebView/WebView.mm:
1002         (+[WebView(WebPrivate) _HTTPPipeliningEnabled]): Added.
1003         (+[WebView(WebPrivate) _setHTTPPipeliningEnabled:]): Added.
1004         * WebView/WebViewPrivate.h:
1005         (+[WebView(WebPrivate) _HTTPPipeliningEnabled]): Added declaration.
1006         (+[WebView(WebPrivate) _setHTTPPipeliningEnabled:]): Added declaration.
1007
1008 2011-04-17  Joseph Pecoraro  <joepeck@webkit.org>
1009
1010         Reviewed by Dan Bernstein.
1011
1012         Assign to self in WebInspectorWindowController constructors
1013         https://bugs.webkit.org/show_bug.cgi?id=58749
1014
1015         * WebCoreSupport/WebInspectorClient.mm:
1016         (-[WebInspectorWindowController init]):
1017         (-[WebInspectorWindowController initWithInspectedWebView:]):
1018
1019 2011-04-17  Joseph Pecoraro  <joepeck@webkit.org>
1020
1021         Reviewed by Timothy Hatcher.
1022
1023         Move WebNodeHighlighter into its own file
1024         https://bugs.webkit.org/show_bug.cgi?id=58746
1025
1026         Extract this class into its own file alongside the
1027         other WebNodeHighlight files. In doing so do some
1028         cleanup on WebInspectorClient removing some methods
1029         that were never called.
1030
1031         * WebCoreSupport/WebInspectorClient.mm:
1032         (WebInspectorClient::WebInspectorClient): style fix.
1033         * WebInspector/WebNodeHighlighter.h: Added.
1034         * WebInspector/WebNodeHighlighter.mm: Added.
1035         (-[WebNodeHighlighter initWithInspectedWebView:]): call super init.
1036         (-[WebNodeHighlighter dealloc]):
1037         (-[WebNodeHighlighter highlightNode:]):
1038         (-[WebNodeHighlighter hideHighlight]):
1039         (-[WebNodeHighlighter didAttachWebNodeHighlight:]):
1040         (-[WebNodeHighlighter willDetachWebNodeHighlight:]):
1041
1042 2011-04-15  Jia Pu  <jpu@apple.com>
1043
1044         Reviewed by Dan Bernstein.
1045
1046         [Mac] WebKit needs to convert the bounding box of autocorrected word to view coordinate.
1047         https://bugs.webkit.org/show_bug.cgi?id=58717
1048
1049         Convert the bounding box from window coordinate to view coordinate, which is expected by NSCorrectionPanel.
1050
1051         * WebCoreSupport/CorrectionPanel.mm:
1052         (CorrectionPanel::show):
1053
1054 2011-04-15  Shishir Agrawal  <shishir@chromium.org>
1055
1056         Reviewed by James Robinson.
1057
1058         Add a flag to guard Page Visibility API changes.
1059         https://bugs.webkit.org/show_bug.cgi?id=58464
1060
1061         * Configurations/FeatureDefines.xcconfig:
1062
1063 2011-04-15  Oliver Hunt  <oliver@apple.com>
1064
1065         GC allocate Structure
1066         https://bugs.webkit.org/show_bug.cgi?id=58483
1067
1068         Rolling r83894 r83827 r83810 r83809 r83808 back in with
1069         a workaround for the gcc bug seen by the gtk bots
1070
1071         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1072         * Plugins/Hosted/ProxyInstance.mm:
1073         (WebKit::ProxyRuntimeMethod::createStructure):
1074         * Plugins/Hosted/ProxyRuntimeObject.h:
1075         (WebKit::ProxyRuntimeObject::createStructure):
1076
1077 2011-04-14  Alexey Proskuryakov  <ap@apple.com>
1078
1079         Reviewed by Dan Bernstein.
1080
1081         WebKit2: Password field input does not switch to ASCII-compatible source
1082         https://bugs.webkit.org/show_bug.cgi?id=58583
1083         <rdar://problem/9059651>
1084
1085         Now that WebCore doesn't set secure input mode, WebKit has to. Happily, it already has the
1086         necessary logic, needed to return a nil text input context when in password fields.
1087
1088         * WebView/WebHTMLView.mm:
1089         (-[WebHTMLView close]): If the view is still enforcing secure event mode, stop.
1090         (-[WebHTMLView windowDidBecomeKey:]): Call _updateSecureInputState.
1091         (-[WebHTMLView windowDidResignKey:]): Ditto.
1092         (-[WebHTMLView becomeFirstResponder]): Call _updateSecureInputState. It's a bit tricky
1093         because the first responder is still different an this point, so set a boolean variable to
1094         let _updateSecureInputState know what's going on.
1095         (-[WebHTMLView resignFirstResponder]): Disable secure event mode if it's on.
1096         (-[WebHTMLView _updateSecureInputState]): Update HIToolbox secure event input state and
1097         allowed input sources accorsing to current selection.
1098         (-[WebHTMLView _updateSelectionForInputManager]): Call _updateSecureInputState.
1099
1100 2011-04-15  Sam Weinig  <sam@webkit.org>
1101
1102         Reviewed by Maciej Stachowiak.
1103
1104         Make mac WebKit1 use the default localization strategy
1105         https://bugs.webkit.org/show_bug.cgi?id=58628
1106
1107         * WebCoreSupport/WebPlatformStrategies.h:
1108         * WebCoreSupport/WebPlatformStrategies.mm:
1109         Remove the localization strategy code. The equivalent is now
1110         in WebCore/platform/DefaultLocalizationStrategy.cpp.
1111
1112 2011-04-15  Anna Cavender  <annacc@chromium.org>
1113
1114         Reviewed by Eric Carlson.
1115
1116         Renaming TRACK feature define to VIDEO_TRACK
1117         https://bugs.webkit.org/show_bug.cgi?id=53556
1118
1119         * Configurations/FeatureDefines.xcconfig:
1120
1121 2011-04-14  Pratik Solanki  <psolanki@apple.com>
1122
1123         Reviewed by David Kilzer.
1124
1125         Set minimum priority for fast lane connections
1126         https://bugs.webkit.org/show_bug.cgi?id=58353
1127
1128         * WebCoreSupport/WebSystemInterface.mm:
1129         (InitWebCoreSystemInterface): Support for new WKSI method WKSetHTTPPipeliningMinimumFastLanePriority.
1130
1131 2011-04-13  Sam Weinig  <sam@webkit.org>
1132
1133         Reviewed by Gavin Barraclough.
1134
1135         WebKit2 doesn't keep overlay scrollers shown while scroll gesture held
1136         <rdar://problem/9260518>
1137
1138         * WebCoreSupport/WebSystemInterface.mm:
1139         (InitWebCoreSystemInterface):
1140         Initialize new WKSI functions.
1141
1142 2011-04-13  David Kilzer  <ddkilzer@apple.com>
1143
1144         <http://webkit.org/b/58172> Fix -Wcast-align warning in WebBasePluginPackage.mm
1145
1146         Reviewed by Anders Carlsson.
1147
1148         Fixes the following warning with -Wcast-align enabled:
1149
1150             Source/WebKit/mac/Plugins/WebBasePluginPackage.mm:402:21:{402:21-402:93}{402:39-402:93}: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'struct fat_arch *' increases required alignment from 1 to 4 [-Werror,-Wcast-align,3]
1151                          archs = (struct fat_arch*)((uint8_t*)rawData.data() + sizeof(struct fat_header));
1152                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1153
1154         * Plugins/WebBasePluginPackage.mm:
1155         (-[WebBasePluginPackage isNativeLibraryData:]): Added
1156         COMPILE_ASSERT() to make sure our pointer math is valid.
1157         Removed cast to (uint8_t*) and divide sizeof(struct fat_header)
1158         by sizeof(uint32_t) to fix the pointer math.  Replaced C-style
1159         casts with reinterpret_cast.
1160
1161 2011-04-12  Enrica Casucci  <enrica@apple.com>
1162
1163         Reviewed by Alexey Proskuryakov.
1164
1165         Infinite recursion in WebHTMLView executeSavedKeypressCommands.
1166         https://bugs.webkit.org/show_bug.cgi?id=58382
1167         <rdar://problem/9239370>
1168
1169         Execution of some editing commands could trigger a call to selectedRange that
1170         internally calls executeSavedKeypressCommands creating an infinite recursion.
1171
1172         * WebView/WebHTMLView.mm:
1173         (-[WebHTMLView _executeSavedKeypressCommands]): Added a flag to avoid recursion.
1174         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Added flag initialization.
1175
1176 2011-04-12  Alice Liu  <alice.liu@apple.com>
1177
1178         Reviewed by Sam Weinig.
1179
1180         https://bugs.webkit.org/show_bug.cgi?id=58292
1181         Provide new setting to allow site icon loading despite disabling automatic image loading in general.
1182
1183         * WebView/WebPreferenceKeysPrivate.h: Add preference key.
1184         * WebView/WebPreferences.mm:
1185         (+[WebPreferences initialize]): Initialize to false.
1186         (-[WebPreferences setLoadsSiteIconsIgnoringImageLoadingPreference:]): Added.
1187         (-[WebPreferences loadsSiteIconsIgnoringImageLoadingPreference]): Added.
1188         * WebView/WebPreferencesPrivate.h: Add setter/getter definitions.
1189         * WebView/WebView.mm:
1190         (-[WebView _preferencesChanged:]): Add to settings that get propagated upon changes. 
1191
1192 2011-04-11  Alexey Proskuryakov  <ap@apple.com>
1193
1194         Reviewed by Maciej Stachowiak.
1195
1196         WebKit2: Safari doesn't respect cmd-arrows (and variations) as custom keyboard shortcuts
1197         https://bugs.webkit.org/show_bug.cgi?id=58175
1198         <rdar://problem/9060555>
1199
1200         * WebView/WebFrameView.mm: (-[WebFrameView keyDown:]): Added a comment explaining how this
1201         should be changed to match WebKit2.
1202
1203 2011-04-06  Timothy Hatcher  <timothy@apple.com>
1204
1205         Fix a bug where the context menu does not show in PDF documents if there is no
1206         UI delegate or the UI delegate does not respond to the context menu selector.
1207
1208         https://webkit.org/b/57958
1209
1210         Reviewed by Darin Adler.
1211
1212         * WebView/WebView.mm:
1213         (-[WebView _menuForElement:defaultItems:]): CallUIDelegate returns nil
1214         if UIDelegate is nil or doesn't respond to the selector. So check that
1215         here to distinguish between using defaultMenuItems or the delegate
1216         really returning nil to say "no context menu".
1217
1218 2011-04-11  Jer Noble  <jer.noble@apple.com>
1219
1220         Unreviewed; roll out unintentional change to WebFullScreenController.mm.
1221
1222         * WebView/WebFullScreenController.mm:
1223         (-[WebFullScreenController enterFullscreen:]):
1224
1225 2011-04-08  Geoffrey Garen  <ggaren@apple.com>
1226
1227         Reviewed by Oliver Hunt.
1228
1229         A few heap-related renames and file moves.
1230         
1231         WeakGCPtr<T> => Weak<T>
1232         Global<T> => Strong<T>
1233         collector/ => heap/
1234         collector/* => heap/*
1235         runtime/WeakGCPtr.h => heap/Weak.h
1236         
1237         (Eventually, even more files should move into the heap directory. Like
1238         Heap.h and Heap.cpp, for example.)
1239
1240         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1241         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1242         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
1243         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
1244         (WebKit::NetscapePluginInstanceProxy::evaluate):
1245         * WebView/WebScriptDebugger.h:
1246
1247 2011-04-08  Alexey Proskuryakov  <ap@apple.com>
1248
1249         Reviewed by Darin Adler.
1250
1251         WebKit2: Safari doesn't respect cmd-arrows (and variations) as custom keyboard shortcuts
1252         https://bugs.webkit.org/show_bug.cgi?id=58175
1253         <rdar://problem/9060555>
1254
1255         * WebView/WebFrameView.mm: (-[WebFrameView keyDown:]): Added a comment explaining how this
1256         should be changed to match WebKit2.
1257
1258 2011-04-08  Alpha Lam  <hclam@chromium.org>
1259
1260         Unreviewed, rolling out r83335.
1261         http://trac.webkit.org/changeset/83335
1262         https://bugs.webkit.org/show_bug.cgi?id=53556
1263
1264         GTK and QT bots are broken
1265
1266         * Configurations/FeatureDefines.xcconfig:
1267
1268 2011-04-07  Anna Cavender  <annacc@chromium.org>
1269
1270         Reviewed by Eric Carlson.
1271
1272         Setup ENABLE(TRACK) feature define
1273         https://bugs.webkit.org/show_bug.cgi?id=53556
1274
1275         * Configurations/FeatureDefines.xcconfig:
1276
1277 2011-04-08  Maciej Stachowiak  <mjs@apple.com>
1278
1279         Reviewed by Darin Adler.
1280
1281         -[WebView setPreferences:] can take a lot of time if loading lots of webviews at once
1282         https://bugs.webkit.org/show_bug.cgi?id=58128
1283         <rdar://problem/9244553>
1284         
1285         The root of the problem here was an O(N^2) issue - each WebView,
1286         upon having its preferences initialized, would broadcast a
1287         notification that was listened to by all other WebViews sharing
1288         its preferences.
1289         
1290         To maintain the API contract, I split the notification into two,
1291         one that is for public API consumption, and the other which is for
1292         internal use only. Changes that don't need to be picked up by
1293         other WebViews broadcast the public notification only. And we
1294         avoid WebView broadcasting a notification just to get itself to
1295         update.
1296
1297         * Misc/WebIconDatabase.mm:
1298         (-[WebIconDatabase _startUpIconDatabase]):
1299         (-[WebIconDatabase _shutDownIconDatabase]):
1300         * Plugins/WebBaseNetscapePluginView.mm:
1301         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
1302         (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
1303         (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
1304         (-[WebBaseNetscapePluginView viewWillMoveToHostWindow:]):
1305         * WebView/WebPreferences.mm:
1306         (-[WebPreferences initWithIdentifier:]):
1307         (-[WebPreferences _setStringValue:forKey:]):
1308         (-[WebPreferences _setIntegerValue:forKey:]):
1309         (-[WebPreferences _setFloatValue:forKey:]):
1310         (-[WebPreferences _setBoolValue:forKey:]):
1311         (-[WebPreferences _setLongLongValue:forKey:]):
1312         (-[WebPreferences _setUnsignedLongLongValue:forKey:]):
1313         (-[WebPreferences _postPreferencesChangedNotification]):
1314         (-[WebPreferences _postPreferencesChangedAPINotification]):
1315         * WebView/WebPreferencesPrivate.h:
1316         * WebView/WebView.mm:
1317         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1318         (-[WebView _preferencesChangedNotification:]):
1319         (-[WebView _preferencesChanged:]):
1320         (-[WebView setUsesPageCache:]):
1321         (+[WebView initialize]):
1322         (-[WebView setPreferences:]):
1323         (-[WebView _keyboardUIMode]):
1324         * WebView/WebViewInternal.h:
1325
1326 2011-04-07  Andrew Scherkus  <scherkus@chromium.org>
1327
1328         Revert ENABLE_TRACK patch due to compile failures.
1329
1330         * Configurations/FeatureDefines.xcconfig:
1331
1332 2011-04-07  Alexey Proskuryakov  <ap@apple.com>
1333
1334         Reviewed by Anders Carlsson.
1335
1336         REGRESSION (WebKit2): Reverse conversion doesn't work in Kotoeri
1337         https://bugs.webkit.org/show_bug.cgi?id=58066
1338         <rdar://problem/8965302>
1339
1340         * WebView/WebHTMLRepresentation.mm:
1341         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
1342         * WebView/WebHTMLView.mm:
1343         (-[WebHTMLView attributedSubstringFromRange:]):
1344         (-[WebHTMLView attributedString]):
1345         (-[WebHTMLView selectedAttributedString]):
1346         Updated for editingAttributedStringFromRange: now taking a WebCore::Range instead of DOMRange.
1347
1348 2011-04-07  Andy Estes  <aestes@apple.com>
1349
1350         Reviewed by Darin Adler.
1351
1352         REGRESSION (r64712): Microsoft Outlook 2011: original message contents
1353         not included when replying to an email.
1354         https://bugs.webkit.org/show_bug.cgi?id=57794
1355         
1356         Outlook populates a reply message by creating an empty WebView and
1357         using DOM API to populate the WebView's empty document with content
1358         from the original message. It expects the initial empty document to
1359         simply be "<html></html>", and it proceeds to dynamically create and
1360         append a BODY node and add the original message content as a child of
1361         that node. Outlook then takes the innerHTML of the frame's first body
1362         element and copies it into a *new* document that is displayed and
1363         edited in the reply message window.
1364         
1365         Due to implementing the HTML5 tree building algorithm in r64712,
1366         initial empty documents went from being "<html></html>" to being
1367         "<html><head></head><body></body></html>". Outlook still dynamically
1368         creates a BODY node to parent the original message content, but this
1369         BODY node duplicates the one created by the tree builder. When Outlook
1370         then takes the innerHTML of the first body element to populate the
1371         reply message window it gets the empty body element created by the
1372         parser, not the one it created with the original message content.
1373         
1374         Fix this by injecting a user script into the initial empty document
1375         that removes the HEAD and BODY nodes created by the parser. This
1376         ensures that the BODY created by Outlook is the only BODY in the
1377         document.
1378
1379         * Misc/OutlookQuirksUserScript.js: Added.
1380         * WebView/WebView.mm:
1381         (leakMailQuirksUserScriptContents):
1382         (-[WebView _injectMailQuirksScript]):
1383         (needsOutlookQuirksScript):
1384         (leakOutlookQuirksUserScriptContents):
1385         (-[WebView _injectOutlookQuirksScript]):
1386         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1387
1388 2011-04-06  Dai Mikurube  <dmikurube@chromium.org>
1389
1390         Reviewed by David Levin.
1391
1392         Add QUOTA build flag for unified quota API
1393         https://bugs.webkit.org/show_bug.cgi?id=57918
1394
1395         * Configurations/FeatureDefines.xcconfig: Added QUOTA build flag
1396
1397 2011-04-06  Robert Sesek  <rsesek@chromium.org>
1398
1399         Reviewed by Alexey Proskuryakov.
1400
1401         Move code duplicated between the WebKit/mac and WebKit2 down to WebCore because Chromium will need it too
1402         https://bugs.webkit.org/show_bug.cgi?id=54969
1403
1404         * WebView/WebFrame.mm:
1405         (-[WebFrame _convertToNSRange:]): Moved duplicated code to WebCore
1406         (-[WebFrame _characterRangeAtPoint:]): Moved duplicated code to WebCore
1407
1408 2011-04-05  Alexey Proskuryakov  <ap@apple.com>
1409
1410         Reviewed by Darin Adler.
1411
1412         Move attributedStringFromRange down to WebCore
1413         https://bugs.webkit.org/show_bug.cgi?id=57905
1414
1415         * Misc/WebNSAttributedStringExtras.h: Removed.
1416         * Misc/WebNSAttributedStringExtras.mm: Removed.
1417         * WebView/WebHTMLRepresentation.mm:
1418         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
1419         * WebView/WebHTMLView.mm:
1420         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
1421         (-[WebHTMLView attributedSubstringFromRange:]):
1422         (-[WebHTMLView attributedString]):
1423         (-[WebHTMLView selectedAttributedString]):
1424         * WebView/WebPDFView.mm:
1425         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
1426
1427 2011-04-04  MORITA Hajime  <morrita@google.com>
1428
1429         Reviewed by Ryosuke Niwa.
1430
1431         [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
1432         https://bugs.webkit.org/show_bug.cgi?id=56085
1433
1434         Removed NSTextCheckingResult to SpellCheckingResult convertion, and extracted
1435         NSTextCheckingResult to TextCheckingResult convertio from checkTextOfParagraph method.
1436         for requestCheckingOfString method.
1437         
1438         * WebCoreSupport/WebEditorClient.h:
1439         * WebCoreSupport/WebEditorClient.mm:
1440         (toCoreTextCheckingResults):
1441         (WebEditorClient::checkTextOfParagraph):
1442         (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:types:WebCore::results:]):
1443         (-[WebEditorSpellCheckResponder perform]):
1444         (WebEditorClient::requestCheckingOfString):
1445         * WebView/WebFrame.mm:
1446         (-[WebFrame markersForSelectionStartAsText]):
1447         * WebView/WebFramePrivate.h:
1448
1449 2011-04-05  Anders Carlsson  <andersca@apple.com>
1450
1451         Didn't mean to land this.
1452
1453         * Plugins/WebNetscapePluginView.mm:
1454         (-[WebNetscapePluginView getVariable:value:]):
1455
1456 2011-04-04  David Kilzer  <ddkilzer@apple.com>
1457
1458         <http://webkit.org/b/57384> CFNetwork and WebCore load priorities should match
1459
1460         Reviewed by Alexey Proskuryakov.
1461
1462         * WebCoreSupport/WebSystemInterface.mm:
1463         (InitWebCoreSystemInterface): Added initialization for
1464         wkSetHTTPPipeliningMaximumPriority().
1465
1466 2011-04-04  Alexey Proskuryakov  <ap@apple.com>
1467
1468         Reviewed by Dan Bernstein.
1469
1470         REGRESSION (WebKit2): Caps-Lock indicator sometimes doesn't appear in WebKit2
1471         https://bugs.webkit.org/show_bug.cgi?id=51230
1472         <rdar://problem/8780989>
1473
1474         * WebView/WebHTMLView.mm: (-[WebHTMLView flagsChanged:]): Moved Caps Lock handling from
1475         WebKits to WebCore, because WebKit shouldn't be smart.
1476
1477 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
1478
1479         Reviewed by Darin Adler.
1480
1481         REGRESSION: Assertion failure when executing a complex custom key binding
1482         https://bugs.webkit.org/show_bug.cgi?id=57681
1483
1484         * WebView/WebHTMLView.mm: (-[WebHTMLView hasMarkedText]): There is no need to execute saved
1485         commands when they can't possibly change the result.
1486
1487 2011-04-01  Anders Carlsson  <andersca@apple.com>
1488
1489         Reviewed by Sam Weinig.
1490
1491         Shockwave plug-in doesn't accept mouse events
1492         https://bugs.webkit.org/show_bug.cgi?id=57653
1493         <rdar://problem/8483273>
1494
1495         Fix an unrelated bug found by the added test.
1496
1497         * Plugins/WebBaseNetscapePluginView.mm:
1498         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
1499         Make sure to always set destX and destY.
1500
1501 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
1502
1503         Reviewed by Darin Adler.
1504
1505         Make WebKit2 text input handling more like WebKit1
1506         https://bugs.webkit.org/show_bug.cgi?id=57649
1507
1508         * WebView/WebFrameInternal.h: Expose _convertToDOMRange for use in WebHTMLView.
1509         * WebView/WebHTMLView.mm:
1510         (-[WebHTMLView _executeSavedKeypressCommands]): Renamed, since these are not editor commands.
1511         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Updated for the renamed _executeSavedKeypressCommands.
1512         (-[WebHTMLView characterIndexForPoint:]): Ditto.
1513         (-[WebHTMLView firstRectForCharacterRange:]): Ditto.
1514         (-[WebHTMLView selectedRange]): Ditto.
1515         (-[WebHTMLView markedRange]): Ditto.
1516         (-[WebHTMLView attributedSubstringFromRange:]): Ditto.
1517         (-[WebHTMLView hasMarkedText]): Ditto.
1518         (-[WebHTMLView unmarkText]): Ditto.
1519         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto. Changed the comment about the argument
1520         type into an assertion. Removed resetting interpretKeyEventsParameters to 0, as we shouldn't
1521         be able to call text input protocol methods from here (and we didn't even reset it back on
1522         return). Changed to retrieve all data before starting to apply actions to better match WK2 code.
1523         (-[WebHTMLView insertText:]): Ditto.
1524
1525 2011-04-01  Timothy Hatcher  <timothy@apple.com>
1526
1527         Make momentum scroll event latching work in WebKit2 on Mac.
1528
1529         <rdar://problem/8751861>
1530
1531         Reviewed by Darin Adler.
1532
1533         * WebCoreSupport/WebSystemInterface.mm:
1534         (InitWebCoreSystemInterface): Remove IsLatchingWheelEvent, add GetNSEventMomentumPhase.
1535         * WebView/WebDynamicScrollBarsView.mm:
1536         (-[WebDynamicScrollBarsView scrollWheel:]): Use WKGetNSEventMomentumPhase to set isLatchingEvent.
1537
1538 2011-03-31  Darin Adler  <darin@apple.com>
1539
1540         Reviewed by Anders Carlsson.
1541
1542         Assertion failure in -[WebHTMLView _handleStyleKeyEquivalent:]
1543         https://bugs.webkit.org/show_bug.cgi?id=26667
1544
1545         * WebView/WebHTMLView.mm:
1546         (-[WebHTMLView _handleStyleKeyEquivalent:]): Handle the case where WebView is
1547         nil rather than asserting that it is non-nil. One case where WebView will be nil
1548         is when the frame is closed, but in any case where it is nil, the correct thing
1549         to do is to not try to handle the style key.
1550
1551 2011-03-31  Alexey Proskuryakov  <ap@apple.com>
1552
1553         Patch by John Harvey, reviewed and tweaked by me.
1554
1555         <rdar://problem/8644403> Should notify TSM that plug-ins would show a bottom input window for marked text.
1556
1557         * Plugins/Hosted/WebTextInputWindowController.m:
1558         (-[WebTextInputPanel _interpretKeyEvent:string:]):
1559
1560 2011-03-31  Evan Martin  <evan@chromium.org>
1561
1562         Reviewed by Eric Seidel.
1563
1564         <title> should support dir attribute
1565         https://bugs.webkit.org/show_bug.cgi?id=50961
1566
1567         Update to new FrameLoaderClient interface.
1568
1569         * WebCoreSupport/WebFrameLoaderClient.h:
1570         * WebCoreSupport/WebFrameLoaderClient.mm:
1571         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1572         (WebFrameLoaderClient::setTitle):
1573
1574 2011-03-30  Dominic Cooney  <dominicc@google.com>
1575
1576         Reviewed by Dimitri Glazkov.
1577
1578         Adds layoutTestController.shadowRoot accessor to Mac DRT.
1579         https://bugs.webkit.org/show_bug.cgi?id=57415
1580
1581         * DOM/WebDOMOperations.mm:
1582         (-[DOMElement _shadowRoot:]):
1583         * DOM/WebDOMOperationsPrivate.h:
1584
1585 2011-03-30  Alexey Proskuryakov  <ap@apple.com>
1586
1587         Reviewed by Darin Adler.
1588
1589         WebHTMLView shouldn't resend noop: commands
1590         https://bugs.webkit.org/show_bug.cgi?id=57504
1591         <rdar://problem/9209390>
1592
1593         * WebView/WebHTMLView.mm: (-[WebHTMLView _executeSavedEditingCommands]): Filter out NOOPs,
1594         which we get e.g. when handling Cmd-key combos.
1595
1596 2011-03-30  Alexey Proskuryakov  <ap@apple.com>
1597
1598         Reviewed by Darin Adler.
1599
1600         REGRESSION (r82320): Spacebar no longer pages down
1601         https://bugs.webkit.org/show_bug.cgi?id=57423
1602         <rdar://problem/9207702>
1603
1604         Also includes some unrelated cleanup that I had in my tree.
1605
1606         * WebView/WebHTMLView.mm:
1607         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Added an assertion that the event is
1608         being dispatched to the right frame.
1609         (-[WebHTMLView setMarkedText:selectedRange:]): Use 0 for a pointer, not NULL.
1610         (-[WebHTMLView doCommandBySelector:]): Update eventInterpretationHadSideEffects with "|=".
1611         Even if this specific command hasn't been handled, that doesn't nullify side effects from
1612         previous commands.
1613         (-[WebHTMLView insertText:]): Besides looking at the return value of insertText() to fix the
1614         bug, removed setting _private->interpretKeyEventsParameters to 0. I don't see any way for
1615         another WebHTMLView NSTextInput method to be called from within insertText:, so no one is
1616         going to look at it.
1617
1618 2011-03-30  Sam Weinig  <sam@webkit.org>
1619
1620         Reviewed by Brady Eidson.
1621
1622         WebKit2: Attempting to view css file from url causes it to download
1623         <rdar://problem/9102611>
1624         https://bugs.webkit.org/show_bug.cgi?id=57501
1625
1626         * WebView/WebHTMLRepresentation.h:
1627         * WebView/WebHTMLRepresentation.mm:
1628         (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
1629         * WebView/WebHTMLView.mm:
1630         (+[WebHTMLView unsupportedTextMIMETypes]):
1631         Re-factor unsupportedTextMIMETypes to pull from WebCore's
1632         MIMETypeRegistry, so that the list can be shared with WebKit2.
1633
1634 2011-03-29  Beth Dakin  <bdakin@apple.com>
1635
1636         Reviewed by Maciej Stachowiak.
1637
1638         Fix for https://bugs.webkit.org/show_bug.cgi?id=57408 
1639         webkit-min-device-pixel-ratio media query doesn't work post-SnowLeopard 
1640         -and corresponding-
1641         <rdar://problem/8665411>
1642
1643         * Misc/WebNSControlExtras.m:
1644         (-[NSControl sizeToFitAndAdjustWindowHeight]):
1645         * WebCoreSupport/WebChromeClient.mm:
1646         (WebChromeClient::scaleFactor):
1647         * WebView/WebHTMLView.mm:
1648         (-[WebHTMLView viewDidMoveToWindow]):
1649         (-[WebHTMLView attachRootLayer:]):
1650
1651 2011-03-29  Kent Tamura  <tkent@chromium.org>
1652
1653         Reviewed by Dimitri Glazkov.
1654
1655         Make validation message bubble testable
1656         https://bugs.webkit.org/show_bug.cgi?id=57290
1657
1658         * WebView/WebView.mm:
1659         (-[WebView _preferencesChangedNotification:]): Copy the private value of
1660           the timer magnification to WebCore::Settings.
1661         (-[WebView validationMessageTimerMagnification]): Added.
1662         (-[WebView setValidationMessageTimerMagnification:]): Added.
1663         * WebView/WebViewData.h: Declare a member for the timer magnification.
1664         * WebView/WebViewData.mm:
1665         (-[WebViewPrivate init]): Initialize the timer magnification.
1666         * WebView/WebViewPrivate.h:
1667           Declare a setter and a getter for the timer magnification.
1668
1669 2011-03-29  Kent Tamura  <tkent@chromium.org>
1670
1671         Reviewed by Dimitri Glazkov.
1672
1673         [Mac] Enable interactive-validation tests on Mac DRT
1674         https://bugs.webkit.org/show_bug.cgi?id=57308
1675
1676         * WebView/WebView.mm:
1677         (-[WebView _preferencesChangedNotification:]):
1678           Convey a WebView flag for interactive validation to WebCore::Settings.
1679         (-[WebView interactiveFormValidationEnabled]): Added.
1680         (-[WebView setInteractiveFormValidationEnabled:]): Added.
1681         * WebView/WebViewData.h: Add interactiveFormValidationEnabled.
1682         * WebView/WebViewData.mm:
1683         (-[WebViewPrivate init]): Initialize interactiveFormValidationEnabled.
1684         * WebView/WebViewPrivate.h: Add setter and getter for interactiveFormValidationEnabled.
1685
1686 2011-03-29  Timothy Hatcher  <timothy@apple.com>
1687
1688         Update the order of the context menu to better match AppKit on Mac.
1689
1690         <rdar://problem/9054893>
1691
1692         Reviewed by John Sullivan.
1693
1694         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1695         (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): Update the order of items.
1696         * WebCoreSupport/WebPlatformStrategies.h:
1697         * WebCoreSupport/WebPlatformStrategies.mm:
1698         (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary): Added argument for selected string.
1699
1700 2011-03-29  Alexey Proskuryakov  <ap@apple.com>
1701
1702         Reviewed by Darin Adler.
1703
1704         https://bugs.webkit.org/show_bug.cgi?id=57379
1705         Clean up WK1 key event handling logic
1706
1707         No bugs knowingly fixed, but this makes the code more consistent.
1708
1709         * WebView/WebHTMLView.mm:
1710         (struct WebHTMLViewInterpretKeyEventsParameters): Renamed eventWasHandled to
1711         eventInterpretationHadSideEffects, because "handled" doesn't really mean much.
1712         (-[WebHTMLView _executeSavedEditingCommands]): Factored out from _interpretKeyEvent for use
1713         from other functions. We need to execute saved commands when an input method asks for current
1714         state, because providing stale state could confuse it.
1715         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Heavily commented, and updated for other
1716         changes.
1717         (-[WebHTMLView characterIndexForPoint:]): Call _executeSavedEditingCommands, because otherwise,
1718         the answer would be stale.
1719         (-[WebHTMLView firstRectForCharacterRange:]): Ditto.
1720         (-[WebHTMLView selectedRange]): Ditto.
1721         (-[WebHTMLView markedRange]): Ditto.
1722         (-[WebHTMLView attributedSubstringFromRange:]): Ditto.
1723         (-[WebHTMLView hasMarkedText]): Ditto.
1724         (-[WebHTMLView unmarkText]): Call _executeSavedEditingCommands, because otherwise, we'd be
1725         operating on stale data. Also, updated for eventWasHandled renaming.
1726         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
1727         (-[WebHTMLView doCommandBySelector:]): Removed special handling for noop:. I verified that
1728         it's no longer needed for bug 14522, presumably due to WebCore level changes. It was also
1729         fragile, because there is no guarantee about when noop: is sent (also, a custom key binding
1730         could have a noop: as one of its commands, although that's hardly practical).
1731         Added the same "from input method" logic that we have in insertText: - I don't know of any
1732         IMs that call this method, but we clearly need to execute it as part of IM processing when
1733         there is marked text.
1734         (-[WebHTMLView insertText:]): Removed a confusing check for [text length]. Always set
1735         eventInterpretationHadSideEffects to true, becasue there is no reason to try multiple times
1736         if current selection isn't editable. This is different from doCommandBySelector:, where we
1737         need to give super class a chance to handle the event if our processing fails.
1738         Removed a nonsense "consumedByIM = true" assignment - we no longer need it now that the
1739         return value of _interpretKeyEvent is computed differently.
1740
1741 2011-03-28  Adele Peterson  <adele@apple.com>
1742
1743         Reviewed by Eric Seidel.
1744
1745         Fix for <rdar://problem/9112694> REGRESSION (r79411): "Check grammar with spelling" context menu doesn't check as you type
1746         https://bugs.webkit.org/show_bug.cgi?id=57173
1747
1748         * WebView/WebFrame.mm:
1749         (-[WebFrame hasSpellingMarker:length:]): Call new selectionStartHasMarkerFor method instead of selectionStartHasSpellingMarkerFor.
1750         (-[WebFrame hasGrammarMarker:length:]): Call new selectionStartHasMarkerFor method.
1751         * WebView/WebFramePrivate.h: Add hasGrammarMarker so grammar marking can be tested.
1752
1753 2011-03-28  Alexey Proskuryakov  <ap@apple.com>
1754
1755         Reviewed by Darin Adler.
1756
1757         https://bugs.webkit.org/show_bug.cgi?id=57260
1758         Clean up text input code a little
1759
1760         * WebCoreSupport/WebEditorClient.mm:
1761         (WebEditorClient::handleKeyboardEvent):
1762         (WebEditorClient::handleInputMethodKeydown):
1763         * WebView/WebHTMLViewInternal.h:
1764         Renamed _interceptEditingKeyEvent:shouldSaveCommand:, becasue it doesn't really intercept
1765         anything. It's just a version it interpretKeyEvents: that tells us whether it was handled,
1766         and also possibly saves resulting commands for later execution.
1767
1768         * WebView/WebHTMLView.mm:
1769         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Changed to use early return. Changed
1770         return value in case platformEvent is null to be less mysterious. Moved receivedNOOP from
1771         WebHTMLViewPrivate to WebHTMLViewInterpretKeyEventsParameters, as this is just part of event
1772         handling state, like the other booleans there. Don't call interpretKeyEvents: again simply
1773         because the first call resulted in no saved commands, becasue it's confusing and apparently
1774         useless (I couldn't find any broken behavior).
1775         (-[WebHTMLView unmarkText]): Cleaned upo BOOL vs. bool constants.
1776         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
1777         (-[WebHTMLView doCommandBySelector:]): Ditto.
1778         (-[WebHTMLView insertText:]): Ditto.
1779
1780         * WebView/WebViewInternal.h: There was no _interceptEditingKeyEvent:shouldSaveCommand:
1781         method on WebView.
1782
1783 2011-03-27  Jer Noble  <jer.noble@apple.com>
1784
1785         Reviewed by Maciej Stachowiak.
1786
1787         Full Screen: disable keyboard access by default
1788         https://bugs.webkit.org/show_bug.cgi?id=56684
1789
1790         Take into account whether keyboard access was requested when deciding whether full
1791         screen mode is supported.
1792
1793         * WebCoreSupport/WebChromeClient.h:
1794         * WebCoreSupport/WebChromeClient.mm:
1795         (WebChromeClient::supportsFullScreenForElement):
1796         * WebView/WebView.mm:
1797         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
1798         * WebView/WebViewInternal.h:
1799
1800 2011-03-26  Jer Noble  <jer.noble@apple.com>
1801
1802         Reviewed by Eric Carlson.
1803
1804         Enable the Full Screen API by default in WebKit/mac and WebKit2
1805         https://bugs.webkit.org/show_bug.cgi?id=56956
1806
1807         * WebView/WebPreferences.mm:
1808         (+[WebPreferences initialize]): Default the WebKitFullScreenEnabled preference to true.
1809
1810 2011-03-25  Andy Estes  <aestes@apple.com>
1811
1812         Reviewed by Adele Peterson.
1813
1814         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
1815         https://bugs.webkit.org/show_bug.cgi?id=49016
1816
1817         Update objectContentType() implementation to handle the
1818         shouldPreferPlugInsForImages flag.
1819
1820         * WebCoreSupport/WebFrameLoaderClient.h:
1821         * WebCoreSupport/WebFrameLoaderClient.mm:
1822         (WebFrameLoaderClient::objectContentType):
1823
1824 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1825
1826         Unreviewed, rolling out r81939.
1827         http://trac.webkit.org/changeset/81939
1828         https://bugs.webkit.org/show_bug.cgi?id=57084
1829
1830         Rolling out 81939, as it's causing a number of app cache test
1831         failures. (Requested by jernoble on #webkit).
1832
1833         * WebView/WebView.mm:
1834         (-[WebView _preferencesChangedNotification:]):
1835
1836 2011-03-23  Jer Noble  <jer.noble@apple.com>
1837
1838         Reviewed by Maciej Stachowiak.
1839
1840         Application Cache should save audio/ and video/ mime types as flat files
1841         https://bugs.webkit.org/show_bug.cgi?id=53784
1842         <rdar://problem/8932473>
1843
1844         No new tests.
1845
1846         Initialize the AppCache Total size quotas with the values for WebKitPreferences
1847         upon startup.
1848
1849         * WebView/WebView.mm:
1850         (-[WebView _preferencesChangedNotification:]):
1851
1852 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1853
1854         Unreviewed, rolling out r81916 and r81917.
1855         http://trac.webkit.org/changeset/81916
1856         http://trac.webkit.org/changeset/81917
1857         https://bugs.webkit.org/show_bug.cgi?id=57071
1858
1859         broke a test on platforms that do not have QuickTime installed
1860         (Requested by estes on #webkit).
1861
1862         * WebCoreSupport/WebFrameLoaderClient.h:
1863         * WebCoreSupport/WebFrameLoaderClient.mm:
1864         (WebFrameLoaderClient::objectContentType):
1865
1866 2011-03-24  Andy Estes  <aestes@apple.com>
1867
1868         Reviewed by Darin Adler.
1869
1870         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
1871         https://bugs.webkit.org/show_bug.cgi?id=49016
1872
1873         Update objectContentType() implementation to handle the
1874         shouldPreferPlugInsForImages flag.
1875
1876         * WebCoreSupport/WebFrameLoaderClient.h:
1877         * WebCoreSupport/WebFrameLoaderClient.mm:
1878         (WebFrameLoaderClient::objectContentType):
1879
1880 2011-03-24  Geoffrey Garen  <ggaren@apple.com>
1881
1882         Reviewed by Oliver Hunt.
1883
1884         Ensure that all compilation takes place within a dynamic global object scope
1885         https://bugs.webkit.org/show_bug.cgi?id=57054
1886
1887         * WebView/WebScriptDebugDelegate.mm:
1888         (-[WebScriptCallFrame evaluateWebScript:]): Updated for signature change.
1889
1890 2011-03-24  Jia Pu  <jpu@apple.com>
1891
1892         Reviewed by Darin Adler.
1893
1894         Dismissed reversion suggestion is incorrectly learned.
1895         https://bugs.webkit.org/show_bug.cgi?id=57039
1896
1897         CorrectionPanel should always use [NSSpellChecker dismissCorrectionBubbleForView].
1898         [NSSpellChecker cancelCorrectionBubbleForView] is reserved for situation where correction panel
1899         is dismissed explicitly by ESC key or clicking the dimiss button. Misusing these causes
1900         incorrect automatic learning.
1901
1902         * WebCoreSupport/CorrectionPanel.mm:
1903         (CorrectionPanel::dismissInternal):
1904
1905 2011-03-24  David Kilzer  <ddkilzer@apple.com>
1906
1907         <http://webkit.org/b/56993> ENABLE_PLUGIN_PROXY_FOR_VIDEO should be defined to 0 on Mac OS X
1908
1909         Reviewed by Joseph Pecoraro.
1910
1911         * Plugins/WebPluginContainerPrivate.h: Changed value of
1912         ENABLE_PLUGIN_PROXY_FOR_VIDEO from 1 to 0.
1913
1914 2011-03-23  Jia Pu  <jpu@apple.com>
1915
1916         Reviewed by Darin Adler.
1917
1918         Hook up new AppKit autocorrection UI with WK2.
1919         https://bugs.webkit.org/show_bug.cgi?id=56055
1920         <rdar://problem/8947463>
1921
1922         Please see WebCore/ChangeLog for detail.
1923
1924         * WebCoreSupport/CorrectionPanel.h: Added.
1925         (CorrectionPanel::isShowing):
1926         * WebCoreSupport/CorrectionPanel.mm: Added.
1927         (correctionBubbleType):
1928         (CorrectionPanel::CorrectionPanel):
1929         (CorrectionPanel::~CorrectionPanel):
1930         (CorrectionPanel::show):
1931         (CorrectionPanel::dismiss):
1932         (CorrectionPanel::dismissSoon):
1933         (CorrectionPanel::dismissInternal):
1934         (CorrectionPanel::recordAutocorrectionResponse):
1935         * WebCoreSupport/WebEditorClient.h:
1936         * WebCoreSupport/WebEditorClient.mm:
1937         (WebEditorClient::WebEditorClient):
1938         (WebEditorClient::showCorrectionPanel):
1939         (WebEditorClient::dismissCorrectionPanel):
1940         (WebEditorClient::dismissCorrectionPanelSoon):
1941         (WebEditorClient::recordAutocorrectionResponse):
1942         * WebView/WebView.mm:
1943         (-[WebView handleCorrectionPanelResult:]):
1944         * WebView/WebViewPrivate.h:
1945
1946 2011-03-23  Enrica Casucci  <enrica@apple.com>
1947
1948         Reviewed by Alexey Proskuryakov.
1949
1950         Services menu item to convert selected Simplified/Traditional Chinese Text is not working.
1951         https://bugs.webkit.org/show_bug.cgi?id=56974
1952         <rdar://problem/8284642>
1953
1954         This fixes a regression introduced by http://trac.webkit.org/changeset/61794
1955         where readSelectionFromPasteboard was accidentally removed.
1956         This method and writeSelectionToPasteboard are needed to support Mac OS X
1957         services.
1958         
1959         * WebView/WebHTMLView.mm:
1960         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Added.
1961         (-[WebHTMLView readSelectionFromPasteboard:]): Added.
1962
1963 2011-03-23  Brady Eidson  <beidson@apple.com>
1964
1965         Reviewed by Sam Weinig.
1966
1967         Change IconDatabase opening to allow for arbitrary filenames
1968         https://bugs.webkit.org/show_bug.cgi?id=56977
1969
1970         * Misc/WebIconDatabase.mm:
1971         (-[WebIconDatabase _startUpIconDatabase]):
1972
1973 2011-03-22  Anton D'Auria  <adauria@apple.com>
1974
1975         Reviewed by Alexey Proskuryakov.
1976
1977         Add +[WebApplicationCache getOriginsWithCache]
1978         https://bugs.webkit.org/show_bug.cgi?id=56722
1979
1980         Call existing WebCore::ApplicationCacheStorage::getOriginsWithCache API.
1981
1982         * WebCoreSupport/WebApplicationCache.h:
1983         * WebCoreSupport/WebApplicationCache.mm:
1984         (+[WebApplicationCache originsWithCache]):
1985
1986 2011-03-22  Anders Carlsson  <andersca@apple.com>
1987
1988         Reviewed by Sam Weinig.
1989
1990         OBJECT element with DivX source is always downloaded
1991         https://bugs.webkit.org/show_bug.cgi?id=56879
1992
1993         * Plugins/WebBasePluginPackage.mm:
1994         (-[WebBasePluginPackage getPluginInfoFromPLists]):
1995         Always try to split every element in the "WebPluginExtensions" array, since the DivX plug-in
1996         specifies multiple file extensions in a single element.
1997
1998 2011-03-22  Brady Eidson  <beidson@apple.com>
1999
2000         Reviewed by Sam Weinig.
2001
2002         <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56876
2003         WK2 Icon DB: Expand IconDatabaseClient interface and move it to the main thread
2004
2005         Note that while the new client calls always come through on the main thread, our mechanisms to
2006         route dispatches to the main thread are still valid and will still work.
2007
2008         Update to the new IconDatabaseClient interface:
2009         * WebCoreSupport/WebIconDatabaseClient.h:
2010         * WebCoreSupport/WebIconDatabaseClient.mm:
2011         (WebIconDatabaseClient::didRemoveAllIcons):
2012         (WebIconDatabaseClient::didImportIconURLForPageURL):
2013         (WebIconDatabaseClient::didImportIconDataForPageURL):
2014         (WebIconDatabaseClient::didChangeIconForPageURL):
2015         (WebIconDatabaseClient::didFinishURLImport):
2016
2017 2011-03-22  Matthew Delaney  <mdelaney@apple.com>
2018
2019         Reviewed by Simon Fraser.
2020
2021         Have WebKit push acceleratedDrawing preferences to settings
2022         https://bugs.webkit.org/show_bug.cgi?id=56792
2023
2024         * WebView/WebView.mm:
2025
2026 2011-03-21  Nate Chapin  <japhet@chromium.org>
2027
2028         Reviewed by Brady Eidson.
2029
2030         Expose a preference to use caching quirks for QuickLook,
2031         and use it if the QuickLook framework is loaded.
2032
2033         https://bugs.webkit.org/show_bug.cgi?id=38690
2034
2035         * WebView/WebPreferenceKeysPrivate.h:
2036         * WebView/WebPreferences.mm:
2037         (useQuickLookQuirks):
2038         (+[WebPreferences initialize]):
2039         (-[WebPreferences useQuickLookResourceCachingQuirks]):
2040         * WebView/WebPreferencesPrivate.h:
2041         * WebView/WebView.mm:
2042         (-[WebView _preferencesChangedNotification:]):
2043
2044 2011-03-21  Chris Fleizach  <cfleizach@apple.com>
2045
2046         Reviewed by Darin Adler.
2047
2048         AX: showContextMenu not working in WK2
2049         https://bugs.webkit.org/show_bug.cgi?id=56734
2050
2051         Implement showContextMenu() so accessibility related code can call this
2052         independent of whether WK1 or WK2 is running.
2053
2054         * WebCoreSupport/WebChromeClient.h:
2055         * WebCoreSupport/WebChromeClient.mm:
2056         (WebChromeClient::showContextMenu):
2057
2058 2011-03-21  Chang Shu  <cshu@webkit.org>
2059
2060         Reviewed by Alexey Proskuryakov.
2061
2062         REGRESSION (r79953): Can't type in MS Outlook 2011
2063         https://bugs.webkit.org/show_bug.cgi?id=56665
2064
2065         r79953 removed the WebView level editablity which is persistent no matter whether
2066         underlying document itself is changed and editability gets lost. The resolution is to
2067         set this WebView editable value to WebCore. This avoids the callback from WebCore to
2068         WebKit which was the main goal in r79953 to improve performance.
2069
2070         * WebView/WebView.mm:
2071         (-[WebView setEditable:]):
2072         (-[WebView isEditable]):
2073
2074 2011-03-19  Anton D'Auria  <adauria@apple.com>
2075
2076         Reviewed by Alexey Proskuryakov.
2077
2078         ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
2079         https://bugs.webkit.org/show_bug.cgi?id=56415
2080         
2081         Use new ApplicationCache API to delete all cache for an origin.
2082
2083         * WebCoreSupport/WebApplicationCache.h:
2084         * WebCoreSupport/WebApplicationCache.mm:
2085         (+[WebApplicationCache deleteOrigin:]):
2086
2087 2011-03-17  Brady Eidson  <beidson@apple.com>
2088
2089         Reviewed by Sam Weinig.
2090
2091         https://bugs.webkit.org/show_bug.cgi?id=56425
2092         More groundwork for WebKit2 IconDatabase
2093
2094         Update already-used function names:
2095         * Misc/WebIconDatabase.mm:
2096         (-[WebIconDatabase iconForURL:withSize:cache:]):
2097         (-[WebIconDatabase iconURLForURL:]):
2098         * WebView/WebView.mm:
2099         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
2100
2101 2011-03-18  Pavel Podivilov  <podivilov@chromium.org>
2102
2103         Reviewed by Yury Semikhatsky.
2104
2105         Web Inspector: implement inspector session storage.
2106         https://bugs.webkit.org/show_bug.cgi?id=56643
2107
2108         * WebCoreSupport/WebInspectorClient.h:
2109         * WebCoreSupport/WebInspectorClient.mm:
2110         (WebInspectorClient::saveSessionSetting):
2111         (WebInspectorClient::loadSessionSetting):
2112         (WebInspectorFrontendClient::saveSessionSetting):
2113         (WebInspectorFrontendClient::loadSessionSetting):
2114         (-[WebInspectorWindowController inspectorClient]):
2115
2116 2011-03-17  Geoffrey Garen  <ggaren@apple.com>
2117
2118         Reviewed by Oliver Hunt.
2119
2120         Fixed a leak seen on the buildbot.
2121
2122         * WebCoreSupport/WebInspectorClient.mm:
2123         (WebInspectorClient::openInspectorFrontend): Smart pointers are smart.
2124
2125 2011-03-16  Jeff Johnson  <github@lapcatsoftware.com>
2126
2127         Reviewed by Alexey Proskuryakov.
2128
2129         Logic error in -[WebHTMLView close]
2130         https://bugs.webkit.org/show_bug.cgi?id=56445
2131
2132         Page is always nil at this point, because [self _webView] is nil,
2133         so the conditional code is never run.
2134
2135         * WebView/WebHTMLView.mm:
2136         (-[WebHTMLView close]):
2137
2138 2011-03-16  Chris Fleizach  <cfleizach@apple.com>
2139
2140         Reviewed by Darin Adler.
2141
2142         WK2: Need to propagate enhanced accessibility flag from UI -> web process
2143         https://bugs.webkit.org/show_bug.cgi?id=56379
2144
2145         * WebView/WebFrame.mm:
2146         (-[WebFrame accessibilityRoot]):
2147
2148 2011-03-15  Oliver Hunt  <oliver@apple.com>
2149
2150         Reviewed by Geoffrey Garen.
2151
2152         Make Structure creation require a JSGlobalData
2153         https://bugs.webkit.org/show_bug.cgi?id=56438
2154
2155         Mechanical change to make all Structure creation use a JSGlobalData&
2156
2157         * Plugins/Hosted/ProxyInstance.mm:
2158         (WebKit::ProxyRuntimeMethod::createStructure):
2159         * Plugins/Hosted/ProxyRuntimeObject.h:
2160         (WebKit::ProxyRuntimeObject::createStructure):
2161
2162 2011-03-15  Alexey Proskuryakov  <ap@apple.com>
2163
2164         Forgot to save a modification to this file when committing.
2165
2166         * WebCoreSupport/WebKeyGenerator.mm: Changed "Apple Computer" to "Apple" in copyright header.
2167
2168 2011-03-15  Alexey Proskuryakov  <ap@apple.com>
2169
2170         Reviewed by Darin Adler.
2171
2172         REGRESSION (WebKit2): keygen element doesn't work
2173         https://bugs.webkit.org/show_bug.cgi?id=56402
2174         <rdar://problem/9006545>
2175
2176         * WebCoreSupport/WebKeyGenerator.h:
2177         * WebCoreSupport/WebKeyGenerator.m: Removed.
2178         * WebCoreSupport/WebKeyGenerator.mm: Copied from Source/WebKit/mac/WebCoreSupport/WebKeyGenerator.m.
2179         (+[WebKeyGenerator sharedGenerator]):
2180         (toWebCertificateParseResult):
2181         WebCore no longer needs WebKeyGenerator. Safari still does need a part of it, so keeping
2182         this misnamed and misplaced code for now.
2183
2184         * WebCoreSupport/WebPlatformStrategies.h:
2185         * WebCoreSupport/WebPlatformStrategies.mm:
2186         (WebPlatformStrategies::keygenMenuItem512):
2187         (WebPlatformStrategies::keygenMenuItem1024):
2188         (WebPlatformStrategies::keygenMenuItem2048):
2189         (WebPlatformStrategies::keygenKeychainItemName):
2190         Added strings used by keygen.
2191
2192         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize a WebCore
2193         pointer to a function used by keygen.
2194
2195         * WebView/WebFrameView.mm: (-[WebFrameView initWithFrame:]): WebKeyGenerator can be lazily
2196         initialized now.
2197
2198 2011-03-15  Beth Dakin  <bdakin@apple.com>
2199
2200         Reviewed by Simon Fraser.
2201
2202         WebKit part of <rdar://problem/9075624> Overlay scrollbars slow down PLT by 6%
2203
2204         New WebKitystemInterface function to force the scrollbars to flash
2205         * WebCoreSupport/WebSystemInterface.mm:
2206         (InitWebCoreSystemInterface):
2207
2208 2011-03-15  Ilya Sherman  <isherman@chromium.org>
2209
2210         Reviewed by Tony Chang.
2211
2212         Autofilled form elements are assigned fixed background color but not text color
2213         https://bugs.webkit.org/show_bug.cgi?id=48382
2214
2215         * DOM/WebDOMOperations.mm:
2216         (-[DOMHTMLInputElement _setAutofilled:]): Added (wrapper).
2217         * DOM/WebDOMOperationsPrivate.h:
2218
2219 2011-03-15  Adam Roben  <aroben@apple.com>
2220
2221         Fix a leak in WebStorageTrackerClient::dispatchDidModifyOrigin
2222
2223         Fixes <http://webkit.org/b/56385> SecurityOrigin leaks seen in
2224         WebStorageTrackerClient::dispatchDidModifyOrigin
2225
2226         Reviewed by Antti Koivisto.
2227
2228         * Storage/WebStorageTrackerClient.mm:
2229         (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread): Adopt the reference passed
2230         to us by dispatchDidModifyOrigin.
2231         (WebStorageTrackerClient::dispatchDidModifyOrigin): Added a comment and removed an
2232         unnecessary cast.
2233
2234 2011-03-15  Kevin Ollivier  <kevino@theolliviers.com>
2235
2236         Reviewed by Darin Adler.
2237
2238         Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
2239         info into the headers rather than in export symbol definition files, but disable it on 
2240         all platforms initially so we can deal with port build issues one port at a time.
2241         
2242         https://bugs.webkit.org/show_bug.cgi?id=27551
2243
2244         * WebKitPrefix.h:
2245
2246 2011-03-14  Brady Eidson  <beidson@apple.com>
2247
2248         Reviewed by Anders Carlsson.
2249
2250         https://bugs.webkit.org/show_bug.cgi?id=56320
2251         Remove HistoryItem::icon() and the WebCore dependency on "IconDatabaseBase::defaultIcon()"
2252
2253         * History/WebHistoryItem.mm:
2254         (-[WebHistoryItem icon]): This far-future FIXME is now irrelevant.
2255
2256 2011-03-13  Pratik Solanki  <psolanki@apple.com>
2257
2258         Reviewed by Brady Eidson.
2259
2260         Make adjustMIMETypeIfNecessary use CFNetwork directly
2261         https://bugs.webkit.org/show_bug.cgi?id=55912
2262
2263         * WebCoreSupport/WebSystemInterface.mm:
2264         (InitWebCoreSystemInterface): Support for new WKSI functions.
2265
2266 2011-03-12  Mark Rowe  <mrowe@apple.com>
2267
2268         Fix the 32-bit build.
2269
2270         * Carbon/CarbonWindowAdapter.mm:
2271         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]): Use a more appropriate format specifier.
2272         (-[CarbonWindowAdapter _carbonWindowClass]): Ditto.
2273
2274 2011-03-11  Brady Eidson  <beidson@apple.com>
2275
2276         Reviewed by Anders Carlsson
2277
2278         <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56216
2279         Rework disabled IconDatabase builds while allowing for a pluggable icon database implementation.
2280
2281         * Misc/WebIconDatabase.mm:
2282         (+[WebIconDatabase _checkIntegrityBeforeOpening]): Call these static methods on IconDatabase::, not iconDatabase().
2283         (-[WebIconDatabase _startUpIconDatabase]): Ditto.
2284         (importToWebCoreFormat):
2285
2286 2011-03-11  Anton D'Auria  <adauria@apple.com>
2287
2288         Reviewed and landed by Brady Eidson.
2289
2290         https://bugs.webkit.org/show_bug.cgi?id=51878
2291         Add WebKit1 API to view and delete local storage
2292
2293         * Storage/WebStorageManager.mm: Added.
2294         (+[WebStorageManager sharedWebStorageManager]):
2295         (-[WebStorageManager origins]):
2296         (-[WebStorageManager deleteAllOrigins]):
2297         (-[WebStorageManager deleteOrigin:]):
2298         (-[WebStorageManager syncLocalStorage]):
2299         (-[WebStorageManager syncFileSystemAndTrackerDatabase]):
2300         (storageDirectoryPath):
2301         (WebKitInitializeStorageIfNecessary):
2302         * Storage/WebStorageManagerInternal.h: Added.
2303         * Storage/WebStorageManagerPrivate.h: Added.
2304         * Storage/WebStorageTrackerClient.h: Added.
2305         * Storage/WebStorageTrackerClient.mm: Added.
2306         (WebStorageTrackerClient::sharedWebStorageTrackerClient):
2307         (WebStorageTrackerClient::WebStorageTrackerClient):
2308         (WebStorageTrackerClient::~WebStorageTrackerClient):
2309         (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread):
2310         (WebStorageTrackerClient::dispatchDidModifyOrigin):
2311         * WebCoreSupport/WebSecurityOrigin.mm:
2312         (-[WebSecurityOrigin protocol]):
2313         (-[WebSecurityOrigin host]):
2314         (-[WebSecurityOrigin databaseIdentifier]):
2315         (-[WebSecurityOrigin domain]):
2316         (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
2317         * WebCoreSupport/WebSecurityOriginPrivate.h:
2318         * WebKit.exp:
2319         * WebView/WebView.mm:
2320         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2321
2322 2011-03-10  Anders Carlsson  <andersca@apple.com>
2323
2324         Reviewed by Sam Weinig.
2325
2326         <rdar://problem/9117047>
2327         Don't paint more than 60 times per second even when scrolling
2328
2329         * WebView/WebClipView.mm:
2330         (-[WebClipView _immediateScrollToPoint:]):
2331
2332 2011-03-09  Matthew Delaney  <mdelaney@apple.com>
2333
2334         Reviewed by Simon Fraser.
2335
2336         Plumb through settings for accelerated drawing for canvas
2337         https://bugs.webkit.org/show_bug.cgi?id=56039
2338
2339         * WebView/WebPreferenceKeysPrivate.h:
2340         * WebView/WebPreferences.mm:
2341         * WebView/WebPreferencesPrivate.h:
2342
2343 2011-03-10  Ryosuke Niwa  <rniwa@webkit.org>
2344
2345         Reviewed by Tony Chang.
2346
2347         VisiblePosition's next and previous should take an enum instead of a boolean
2348         https://bugs.webkit.org/show_bug.cgi?id=56135
2349
2350         SelectionController::isAll now takes EditingBoundaryCrossingRule instead of
2351         StayInEditableContent.
2352
2353         * WebView/WebView.mm:
2354         (-[WebView _selectionIsAll]):
2355
2356 2011-03-09  Jessie Berlin  <jberlin@apple.com>
2357
2358         Reviewed by Adam Roben.
2359
2360         Use the Cookie Storage from the Private Browsing Storage Session directly
2361         https://bugs.webkit.org/show_bug.cgi?id=55986
2362
2363         * WebCoreSupport/WebSystemInterface.mm:
2364         (InitWebCoreSystemInterface):
2365
2366 2011-03-08  Darin Adler  <darin@apple.com>
2367
2368         Reviewed by Timothy Hatcher.
2369
2370         Promote a method used outside WebKit from internal to private
2371         https://bugs.webkit.org/show_bug.cgi?id=55949
2372
2373         * Misc/WebNSPasteboardExtras.mm: Removed an unused category declaration.
2374         Minor tweak, not directly related to the rest of this patch.
2375
2376         * WebView/WebFrame.mm:
2377         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]): Moved
2378         this method from the internal category into the private category.
2379         Streamlined the code a bit.
2380
2381         * WebView/WebFrameInternal.h: Removed _computePageRects method.
2382         * WebView/WebFramePrivate.h: Added _computePageRects method.
2383
2384 2011-03-07  Ryosuke Niwa  <rniwa@webkit.org>
2385
2386         Reviewed by Darin Adler.
2387
2388         selectionHasStyle and selectionStartHasStyle should use EditingStyle
2389         https://bugs.webkit.org/show_bug.cgi?id=55902
2390
2391         selectionHasStyle now takes a property id and a value instead of a CSSMutableStyleDeclaration.
2392
2393         * WebView/WebHTMLView.mm: Removed unused selectionHasStyle.
2394         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Calls Editor::selectionHasStyle.
2395
2396 2011-03-07  Dan Bernstein  <mitz@apple.com>
2397
2398         LLVM Compiler build fix.
2399
2400         * WebCoreSupport/WebEditorClient.mm:
2401         (WebEditorClient::checkGrammarOfString):
2402
2403 2011-03-07  Chris Fleizach  <cfleizach@apple.com>
2404
2405         Reviewed by Beth Dakin.
2406
2407         AX: WK1 needs to use ScrollView attachment for AXScrollArea, WK2 does not
2408         https://bugs.webkit.org/show_bug.cgi?id=55706
2409
2410         Make sure WebDynamicScrollBarsView appear in the AX tree in WK1 (since this object
2411         returns the scroll bar objects).
2412         Make the accessibilityRoot object be the web area in WK1 because WebDynamicScrollBarsView
2413         will expect that as its child, instead of the WebCore ScrollView object.
2414
2415         * WebView/WebDynamicScrollBarsView.mm:
2416         (-[WebDynamicScrollBarsView accessibilityIsIgnored]):
2417         * WebView/WebFrame.mm:
2418         (-[WebFrame accessibilityRoot]):
2419
2420 2011-03-07  Sam Weinig  <sam@webkit.org>
2421
2422         Reviewed by Anders Carlsson.
2423
2424         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
2425         https://bugs.webkit.org/show_bug.cgi?id=55827
2426
2427         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
2428         and pass the entire response, instead of just the MIMEType.
2429
2430         * WebCoreSupport/WebFrameLoaderClient.h:
2431         * WebCoreSupport/WebFrameLoaderClient.mm:
2432         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2433
2434 2011-03-06  Dan Bernstein  <mitz@apple.com>
2435
2436         LLVM Compiler build fix.
2437
2438         * DOM/WebDOMOperations.mm:
2439         (-[DOMHTMLInputElement _setValueForUser:]):
2440
2441 2011-03-06  Jessie Berlin  <jberlin@apple.com>
2442
2443         Reviewed by Sam Weinig.
2444
2445         WebKit2: Use CFNetwork Sessions API.
2446         https://bugs.webkit.org/show_bug.cgi?id=55435.
2447
2448         When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
2449         Private Browsing Storage Session.
2450
2451         * WebCoreSupport/WebSystemInterface.mm:
2452         (InitWebCoreSystemInterface):
2453         Add support for using the new WKSI functions in WebCore.
2454
2455 2011-03-05  Ilya Sherman  <isherman@chromium.org>
2456
2457         Reviewed by Darin Adler.
2458
2459         HTMLInputElement::setValue() should schedule change event when the element is focused
2460         In service of https://code.google.com/p/chromium/issues/detail?id=42716
2461         https://bugs.webkit.org/show_bug.cgi?id=53160
2462
2463         * DOM/WebDOMOperations.mm:
2464         (-[DOMHTMLInputElement _setValueForUser:]): Expose HTMLInputElement::setValueForUser() to tests
2465         * DOM/WebDOMOperationsPrivate.h:
2466         * WebView/WebViewInternal.h:
2467
2468 2011-03-04  Jia Pu  <jpu@apple.com>
2469
2470         Reviewed by Darin Adler.
2471
2472         On Mac, the bounding box sent to EditorClient::showCorrectionPanel() is incorrect when the correction occurs in an iframe.
2473         https://bugs.webkit.org/show_bug.cgi?id=55717
2474         <rdar://problem/9018127>
2475
2476         With the change in WebCore, the bounding box passed into EditorClient::showCorrectionPanel()
2477         is already in window coordinate. We don't need to do further conversion anymore.
2478
2479         * WebCoreSupport/WebEditorClient.mm:
2480         (WebEditorClient::showCorrectionPanel):
2481
2482 2011-03-04  Jessie Berlin  <jberlin@apple.com>
2483
2484         Reviewed by Maciej Stachowiak.
2485
2486         WebKit2: Use CFNetwork Sessions API.
2487         https://bugs.webkit.org/show_bug.cgi?id=55435.
2488
2489         When Private Browsing is enabled, get the cached url response from the cache associated with
2490         the Private Browsing Storage Session.
2491
2492         * WebView/WebView.mm:
2493         (-[WebView _cachedResponseForURL:]):
2494
2495 2011-03-03  Anders Carlsson  <andersca@apple.com>
2496
2497         Reviewed by Sam Weinig.
2498
2499         Get rid of Page::globalHistoryItem
2500         https://bugs.webkit.org/show_bug.cgi?id=55738
2501
2502         * WebCoreSupport/WebFrameLoaderClient.h:
2503         * WebCoreSupport/WebFrameLoaderClient.mm:
2504         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
2505         Get the current history item and update it using -[WebView _setGlobalHistoryItem:].
2506     
2507         * WebView/WebView.mm:
2508         (-[WebView _globalHistoryItem]):
2509         (-[WebView _setGlobalHistoryItem:]):
2510         Set _globalHistoryItem ivar.
2511
2512         * WebView/WebViewData.h:
2513         * WebView/WebViewData.mm:
2514         Add _globalHistoryItem ivar.
2515
2516 2011-03-03  Brady Eidson  <beidson@apple.com>
2517
2518         Reviewed by Darin Adler.
2519
2520         https://bugs.webkit.org/show_bug.cgi?id=55721
2521         Global IconDatabase should be returned by reference, not as a pointer
2522
2523         * Misc/WebCoreStatistics.mm:
2524         (+[WebCoreStatistics iconPageURLMappingCount]):
2525         (+[WebCoreStatistics iconRetainedPageURLCount]):
2526         (+[WebCoreStatistics iconRecordCount]):
2527         (+[WebCoreStatistics iconsWithDataCount]):
2528         * Misc/WebIconDatabase.mm:
2529         (-[WebIconDatabase init]):
2530         (-[WebIconDatabase iconForURL:withSize:cache:]):
2531         (-[WebIconDatabase iconURLForURL:]):
2532         (-[WebIconDatabase defaultIconWithSize:]):
2533         (-[WebIconDatabase retainIconForURL:]):
2534         (-[WebIconDatabase releaseIconForURL:]):
2535         (-[WebIconDatabase isEnabled]):
2536         (-[WebIconDatabase setEnabled:]):
2537         (-[WebIconDatabase removeAllIcons]):
2538         (+[WebIconDatabase _checkIntegrityBeforeOpening]):
2539         (-[WebIconDatabase _startUpIconDatabase]):
2540         (-[WebIconDatabase _applicationWillTerminate:]):
2541         (-[WebIconDatabase _resetCachedWebPreferences:]):
2542         (importToWebCoreFormat):
2543         * WebView/WebView.mm:
2544         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
2545
2546 2011-03-03  Jessie Berlin  <jberlin@apple.com>
2547
2548         Reviewed by Adam Roben.
2549
2550         WebKit2: Use CFNetwork Sessions API.
2551         https://bugs.webkit.org/show_bug.cgi?id=55435.
2552
2553         Set the Private Browsing Storage Session on requests when Private Browsing is enabled.
2554
2555         * WebCoreSupport/WebSystemInterface.mm:
2556         (InitWebCoreSystemInterface):
2557         Support using WKCopyRequestWithStorageSession in WebCore.
2558
2559 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
2560
2561         Reviewed by Darin Adler.
2562
2563         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
2564         https://bugs.webkit.org/show_bug.cgi?id=55633
2565         <rdar://problem/8963023>
2566
2567         * WebCoreSupport/WebChromeClient.h:
2568         * WebCoreSupport/WebChromeClient.mm:
2569         Removed tabsToLinks(). Mac WebKit already implements keyboardUIMode().
2570
2571         * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
2572         Removed an incorrect comment. We actually get a value of 2 on Snow Leopard, and we don't
2573         require both bits to be set. The rest of the comment might be wrong too, but I'm not sure,
2574         so I've preserved it.
2575
2576 2011-03-02  Jessie Berlin  <jberlin@apple.com>
2577
2578         Rubber-stamped by Dan Bernstein.
2579
2580         Fix crashes in private browsing tests in WK1 on Snow Leopard.
2581
2582         * WebCoreSupport/WebSystemInterface.mm:
2583         (InitWebCoreSystemInterface):
2584         Put the INIT call for wkCreatePrivateStorageSession outside of the
2585         #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
2586         guards.
2587
2588 2011-03-02  Jessie Berlin  <jberlin@apple.com>
2589
2590         Reviewed by Adam Roben.
2591
2592         WebKit2: Use CFNetwork Sessions API.
2593         https://bugs.webkit.org/show_bug.cgi?id=55435.
2594
2595         Add the ability to create a Private Browsing Storage Session.
2596
2597         * WebCoreSupport/WebSystemInterface.mm:
2598         (InitWebCoreSystemInterface):
2599         Support calling wkCreatePrivateStorageSession from WebCore.
2600
2601 2011-03-02  Daniel Cheng  <dcheng@chromium.org>
2602
2603         Reviewed by David Levin.
2604
2605         Add feature define for data transfer items
2606         https://bugs.webkit.org/show_bug.cgi?id=55510
2607
2608         * Configurations/FeatureDefines.xcconfig:
2609
2610 2011-03-02  Sam Weinig  <sam@webkit.org>
2611
2612         Reviewed by Anders Carlsson.
2613
2614         Fix remaining localization issues by piping all localized strings through WebCore's
2615         localization bottleneck.
2616         <rdar://problem/8728860>
2617
2618         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2619         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
2620         * Misc/WebKitErrors.m:
2621         * Misc/WebLocalizableStringsInternal.h: Added.
2622         * Misc/WebLocalizableStringsInternal.mm: Added.
2623         (WebLocalizedStringInternal):
2624         * Panels/WebAuthenticationPanel.m:
2625         (-[WebAuthenticationPanel setUpForChallenge:]):
2626         * Plugins/Hosted/NetscapePluginHostManager.mm:
2627         (WebKit::NetscapePluginHostManager::spawnPluginHost):
2628         * WebCoreSupport/WebEditorClient.mm:
2629         (undoNameForEditAction):
2630         * WebCoreSupport/WebInspectorClient.mm:
2631         (WebInspectorFrontendClient::updateWindowTitle):
2632         (-[WebInspectorWindowController validateUserInterfaceItem:]):
2633         * WebCoreSupport/WebKeyGenerator.m:
2634         (-[WebKeyGenerator strengthMenuItemTitles]):
2635         (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]):
2636         * WebCoreSupport/WebPlatformStrategies.mm:
2637         * WebView/WebHTMLView.mm:
2638         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
2639         * WebView/WebPDFView.mm:
2640         (-[WebPDFView menuForEvent:]):
2641
2642 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
2643
2644         Reviewed by Adam Roben.
2645
2646         Part of WebKit2: Need a way to send notifications to client when cookies change
2647         https://bugs.webkit.org/show_bug.cgi?id=55427
2648         <rdar://problem/9056027>
2649         
2650         Add stubs for CookiesStrategy on Mac WebKit1.
2651
2652         * WebCoreSupport/WebPlatformStrategies.h:
2653         * WebCoreSupport/WebPlatformStrategies.mm:
2654         (WebPlatformStrategies::createCookiesStrategy):
2655         (WebPlatformStrategies::notifyCookiesChanged):
2656
2657 2011-03-01  Philippe Normand  <pnormand@igalia.com>
2658
2659         Reviewed by Eric Carlson.
2660
2661         [GStreamer] support in mac video fullscreen controller
2662         https://bugs.webkit.org/show_bug.cgi?id=52280
2663
2664         Factored the code to configure the video overlay in a new private
2665         method of the controller and added GStreamer support to it.
2666
2667         * WebView/WebVideoFullscreenController.h:
2668         * WebView/WebVideoFullscreenController.mm:
2669         (-[WebVideoFullscreenController setupVideoOverlay:]):
2670         (-[WebVideoFullscreenController windowDidLoad]):
2671         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
2672         (-[WebVideoFullscreenController windowDidExitFullscreen]):
2673
2674 2011-02-23  Joseph Pecoraro  <joepeck@webkit.org>
2675
2676         Reviewed by Timothy Hatcher.
2677
2678         All Console Messages should be passed to ChromeClients.
2679         https://bugs.webkit.org/show_bug.cgi?id=54926
2680
2681         Add a new private UIDelegate method, -webView:addMessageToConsole:withSource:,
2682         which supersedes -webView:addMessageToConsole if it exists. The new delegate
2683         does not filter to only JavaScript originated console messages. The old
2684         delegate is left around for clients that expect filtered messages, like
2685         DashCode and older versions of Safari.
2686
2687         The dictionary message passed to the delegate now includes more information
2688         about the message source, type, and level.
2689
2690         * WebCoreSupport/WebChromeClient.mm:
2691         (stringForMessageSource):
2692         (stringForMessageType):
2693         (stringForMessageLevel):
2694         (WebChromeClient::addMessageToConsole):
2695         * WebView/WebUIDelegatePrivate.h:
2696
2697 2011-03-01  Levi Weintraub  <leviw@chromium.org>
2698
2699         Reviewed by Ryosuke Niwa.
2700
2701         Stop instantiating legacy editing Positions in VisiblePosition
2702         https://bugs.webkit.org/show_bug.cgi?id=52919
2703
2704         Changing usage of legacy VisiblePosition constructor. Since we were dealing
2705         with positions from DOM Ranges, we're guaranteed a parent-anchored position.
2706
2707         * WebView/WebFrame.mm:
2708         (-[WebFrame _caretRectAtPosition:affinity:]):
2709         * WebView/WebFrameInternal.h:
2710         * WebView/WebTextCompletionController.mm:
2711         (-[WebTextCompletionController doCompletion]):
2712
2713 2011-03-01  Sam Weinig  <sam@webkit.org>
2714
2715         Reviewed by Timothy Hatcher.
2716
2717         WebKit2 needs to be made localizable
2718         https://bugs.webkit.org/show_bug.cgi?id=55483
2719
2720         * WebCoreSupport/WebPlatformStrategies.mm:
2721         Use WebCore's localizedString function instead of WebLocalizableStrings
2722         since WebCore is now responsible for localization.
2723
2724 2011-02-25 Steve Block <steveblock@google.com>
2725
2726         Reviewed by Jeremy Orlow.
2727
2728         Bridge.h should not include BridgeJSC.h
2729         https://bugs.webkit.org/show_bug.cgi?id=55212
2730
2731         Include BridgeJSC.h directly instead.
2732
2733         * Plugins/Hosted/ProxyInstance.h:
2734         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2735
2736 2011-02-28  Chang Shu  <cshu@webkit.org>
2737
2738         Reviewed by Ryosuke Niwa.
2739
2740         Remove the support of Frame::isContentEditable and its dependencies.
2741         https://bugs.webkit.org/show_bug.cgi?id=54292
2742
2743         Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
2744
2745         * WebCoreSupport/WebEditorClient.h:
2746         * WebCoreSupport/WebEditorClient.mm:
2747         * WebView/WebView.mm:
2748         (-[WebView setEditable:]):
2749         (-[WebView isEditable]):
2750         * WebView/WebViewData.h:
2751
2752 2011-02-28  Oliver Hunt  <oliver@apple.com>
2753
2754         Reviewed by Gavin Barraclough.
2755
2756         Make ScopeChainNode GC allocated
2757         https://bugs.webkit.org/show_bug.cgi?id=55283
2758
2759         More updates for the absence of the ScopeChain class
2760
2761         * WebView/WebScriptDebugDelegate.mm:
2762         (-[WebScriptCallFrame scopeChain]):
2763
2764 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
2765
2766         Reviewed by Pavel Feldman.
2767
2768         DumpRenderTree should reset frame opener between tests.
2769         https://bugs.webkit.org/show_bug.cgi?id=54874
2770
2771         Added clearOpener method to WebFramePrivate.
2772
2773         * WebView/WebFrame.mm:
2774         (-[WebFrame _clearOpener]):
2775         * WebView/WebFramePrivate.h:
2776
2777 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2778
2779         Unreviewed, rolling out r79764.
2780         http://trac.webkit.org/changeset/79764
2781         https://bugs.webkit.org/show_bug.cgi?id=55295
2782
2783         "broke Chromium builds" (Requested by rniwa on #webkit).
2784
2785         * WebView/WebFrame.mm:
2786         * WebView/WebFramePrivate.h:
2787
2788 2011-02-26  Yongjun Zhang  <yongjun_zhang@apple.com>
2789
2790         Reviewed by David Kilzer.
2791
2792         https://bugs.webkit.org/show_bug.cgi?id=48781
2793
2794         Add a resource load delegate method to query if WebCore should paint the default broken image for failed images.
2795
2796         Add a new resource load client method (shouldPaintBrokenImage).  WebKit client can decide if WebCore
2797         should paint the default broken image when an image fails to load or decode.  The method also passes the
2798         URL of the failed image.
2799
2800         * WebCoreSupport/WebFrameLoaderClient.h:
2801         * WebCoreSupport/WebFrameLoaderClient.mm:
2802         (WebFrameLoaderClient::shouldPaintBrokenImage):
2803         * WebView/WebDelegateImplementationCaching.h:
2804         * WebView/WebDelegateImplementationCaching.mm: Added case for passing one object.
2805         (CallResourceLoadDelegateReturningBoolean):
2806         * WebView/WebResourceLoadDelegatePrivate.h:
2807         * WebView/WebView.mm:
2808         (-[WebView _cacheResourceLoadDelegateImplementations]):
2809
2810 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
2811
2812         Reviewed by Pavel Feldman.
2813
2814         DumpRenderTree should reset frame opener between tests.
2815         https://bugs.webkit.org/show_bug.cgi?id=54874
2816
2817         Added clearOpener method to WebFramePrivate.
2818
2819         * WebView/WebFrame.mm:
2820         (-[WebFrame _clearOpener]):
2821         * WebView/WebFramePrivate.h:
2822
2823 2011-02-25  Mark Rowe  <mrowe@apple.com>
2824
2825         <rdar://problem/8902546> Build fix.
2826
2827         * Misc/QuickDrawCompatibility.h:
2828
2829 2011-02-24  Anders Carlsson  <andersca@apple.com>
2830
2831         Fix clang build.
2832
2833         * WebCoreSupport/WebKeyGenerator.m:
2834         (toWebCertificateParseResult):
2835         (-[WebKeyGenerator addCertificatesToKeychainFromData:]):
2836         * WebView/WebTextCompletionController.mm:
2837
2838 2011-02-24  Peter Kasting  <pkasting@google.com>
2839
2840         Reviewed by Eric Seidel.
2841
2842         Drop the "U; " encryption level from the User Agent string.
2843         https://bugs.webkit.org/show_bug.cgi?id=54566
2844
2845         * WebView/WebView.mm:
2846         (+[WebView _standardUserAgentWithApplicationName:]):
2847
2848 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
2849
2850         Unreviewed, rolling out r79570.
2851         http://trac.webkit.org/changeset/79570
2852         https://bugs.webkit.org/show_bug.cgi?id=54874
2853
2854         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
2855         was not updated
2856
2857         * WebView/WebFrame.mm:
2858         * WebView/WebFramePrivate.h:
2859
2860 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
2861
2862         Reviewed by Alexey Proskuryakov.
2863
2864         DumpRenderTree should reset frame opener between tests.
2865         https://bugs.webkit.org/show_bug.cgi?id=54874
2866
2867         Added clearOpener method to WebFramePrivate.
2868
2869         * WebView/WebFrame.mm:
2870         (-[WebFrame _clearOpener]):
2871         * WebView/WebFramePrivate.h:
2872
2873 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2874
2875         Reviewed by Alexey Proskuryakov.
2876
2877         Drop the language tag part from the User Agent string
2878         https://bugs.webkit.org/show_bug.cgi?id=54560
2879
2880         * WebView/WebView.mm:
2881         (+[WebView _standardUserAgentWithApplicationName:]): Drop the
2882         language tag part.
2883
2884 2011-02-22  Brady Eidson  <beidson@apple.com>
2885
2886         Reviewed by Anders Carlsson.
2887
2888         Part of <rdar://problem/8762042> and https://bugs.webkit.org/show_bug.cgi?id=54514
2889         API to view and delete Application Cache data by origin.
2890
2891         * WebCoreSupport/WebApplicationCache.mm:
2892         (+[WebApplicationCache deleteAllApplicationCaches]): Move this implementation into WebCore itself.
2893
2894 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
2895
2896         Reviewed by Kent Tamura.
2897
2898         Rename Position::node() to Position::deprecatedNode()
2899         https://bugs.webkit.org/show_bug.cgi?id=54622
2900
2901         * WebView/WebFrame.mm:
2902         (-[WebFrame _smartDeleteRangeForProposedRange:]):
2903
2904 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
2905
2906         Reviewed by Kent Tamura.
2907
2908         Rename Position::node() to Position::deprecatedNode()
2909         https://bugs.webkit.org/show_bug.cgi?id=54622
2910         
2911         Done the rename.
2912
2913         * WebView/WebFrame.mm:
2914         (-[WebFrame _smartDeleteRangeForProposedRange:]): Since newStart and newEnd are parent-anchored,
2915         use containerNode() and offsetInContainerNode() instead of deprecated member functions.
2916
2917 2011-02-18  Gavin Barraclough  <barraclough@apple.com>
2918
2919         Reviewed by Sam Weinig.
2920
2921         Bug 54786 - Devirtualize JSCell::classInfo()
2922
2923         Instead of making a virtual function call, add a pointer to the ClassInfo
2924         onto Structure.
2925
2926         This removes a virtual function call, and paves the way towards removing all
2927         the createStructure methods, and StructureFlags/AnonymousSlotCount properties
2928         (these should be able to move onto ClassInfo).
2929
2930         Calls to Structure::create must now pass a pointer to the ClassInfo for the
2931         structure. All objects now have a ClassInfo pointer, non-object cell types
2932         still do not.
2933
2934         Changes are most mechanical, involving three steps:
2935             * Remove virtual classInfo() methods.
2936             * Add &s_info parameter to calls to Structure::create.
2937             * Rename ClassInfo static members on classes from 'info' to 's_info',
2938               for consistency.
2939
2940         * Plugins/Hosted/ProxyInstance.mm:
2941         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2942         (WebKit::ProxyRuntimeMethod::createStructure):
2943         * Plugins/Hosted/ProxyRuntimeObject.h:
2944         (WebKit::ProxyRuntimeObject::createStructure):
2945         * Plugins/Hosted/ProxyRuntimeObject.mm:
2946         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2947         * WebView/WebView.mm:
2948         (aeDescFromJSValue):
2949
2950 2011-02-19  Brian Ryner  <bryner@chromium.org>
2951
2952         Reviewed by Adam Barth.
2953
2954         Add missing #include of DocumentLoader.h, needed since the transitive
2955         include through Document.h is removed.
2956         https://bugs.webkit.org/show_bug.cgi?id=50489
2957
2958         * WebView/WebFrame.mm:
2959
2960 2011-02-19  Charlie Reis  <creis@chromium.org>
2961
2962         Reviewed by Mihai Parparita.
2963
2964         Ensure loading has stopped in HistoryController::goToItem
2965         https://bugs.webkit.org/show_bug.cgi?id=54517
2966
2967         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
2968
2969         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
2970
2971         * WebCoreSupport/WebFrameLoaderClient.mm:
2972         (WebFrameLoaderClient::shouldStopLoadingForHistoryItem): Added.
2973         * WebCoreSupport/WebFrameLoaderClient.h:
2974
2975 2011-02-16  David Hyatt  <hyatt@apple.com>
2976
2977         Reviewed by Dan Bernstein.
2978
2979         https://bugs.webkit.org/show_bug.cgi?id=54244
2980         
2981         Convert the line box tree to floating point and eliminate font rounding hacks.  This patch removes all of the rounding
2982         hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
2983         
2984         The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
2985         been changed as well.
2986         
2987         In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
2988         
2989         Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
2990         
2991         Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
2992         still have a precise floating point position.
2993
2994         Justification will now allow subpixel positioning to occur as well.  Platforms that don't support subpixel positioning should already
2995         be rounding justification spacing in their font code.
2996
2997         Many layout test results change on Mac, since rounding hacks were used there and are now gone.
2998
2999         * Misc/WebKitNSStringExtras.mm:
3000         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
3001         (-[NSString _web_widthWithFont:]):
3002
3003 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
3004
3005         Reviewed by Adam Roben.
3006
3007         HTML5 <details> and <summary>: localized text
3008         https://bugs.webkit.org/show_bug.cgi?id=54260
3009
3010         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
3011         provide the default label to be used by a <details> tag that has no <summary> child.
3012
3013         * WebCoreSupport/WebPlatformStrategies.h:
3014         * WebCoreSupport/WebPlatformStrategies.mm:
3015         (WebPlatformStrategies::defaultDetailsSummaryText):
3016
3017 2011-02-16  Matthew Delaney  <mdelaney@apple.com>
3018
3019         Reviewed by Simon Fraser.
3020
3021         Allow acceleratesDrawing for WebKit2
3022         https://bugs.webkit.org/show_bug.cgi?id=54511
3023
3024         Plumb through preference for accelerated drawing.
3025         
3026         * WebView/WebPreferenceKeysPrivate.h:
3027         * WebView/WebPreferences.mm:
3028         (+[WebPreferences initialize]):
3029         (-[WebPreferences acceleratedDrawingEnabled]):
3030         (-[WebPreferences setAcceleratedDrawingEnabled:]):
3031         * WebView/WebPreferencesPrivate.h:
3032
3033 2011-02-15  David Kilzer  <ddkilzer@apple.com>
3034
3035         <http://webkit.org/b/54505> Move -[WebDynamicScrollBarsView inProgrammaticScroll] to WebDynamicScrollBarsViewInternal.h
3036
3037         Reviewed by Darin Adler.
3038
3039         * WebView/WebDynamicScrollBarsView.h:
3040         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Removed
3041         declaration.
3042         * WebView/WebDynamicScrollBarsView.mm:
3043         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Moved
3044         implementation into correct category.
3045         * WebView/WebDynamicScrollBarsViewInternal.h:
3046         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Added
3047         declaration.
3048         * WebView/WebHTMLView.mm: Included
3049         WebDynamicScrollBarsViewInternal.h instead of
3050         WebDynamicScrollBarsView.h.
3051
3052 2011-02-14  Oliver Hunt  <oliver@apple.com>
3053
3054         Reviewed by Gavin Barraclough and Geoff Garen.
3055
3056         Refactor handles and weak pointers to become nicer and more automatic
3057         https://bugs.webkit.org/show_bug.cgi?id=54415
3058
3059         Update to use Global<> instead of ProtectedPtr, and refactored slightly
3060         to get global data to places it's needed for when we're assigning to
3061         Global<>s
3062
3063         * ForwardingHeaders/collector/handles/Global.h: Added.
3064         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3065         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3066         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get):
3067         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
3068         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
3069         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
3070         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
3071         (WebKit::NetscapePluginInstanceProxy::evaluate):
3072         (WebKit::NetscapePluginInstanceProxy::invoke):
3073         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3074         (WebKit::NetscapePluginInstanceProxy::construct):
3075         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
3076         * WebView/WebScriptDebugger.h:
3077         * WebView/WebScriptDebugger.mm:
3078         (WebScriptDebugger::WebScriptDebugger):
3079
3080 2011-02-15  Jia Pu  <jpu@apple.com>
3081
3082         Reviewed by Darin Adler.
3083
3084         Autocorrection should respect undo.
3085         https://bugs.webkit.org/show_bug.cgi?id=52221
3086         <rdar://problem/8663399>
3087
3088         Please see WebCore/ChangeLog for detailed description.
3089
3090         * WebCoreSupport/WebEditorClient.h: Updated for the new function declared in EditorClient.
3091
3092         * WebCoreSupport/WebEditorClient.mm:
3093         (WebEditorClient::recordAutocorrectionResponse): Ditto.
3094
3095         * WebView/WebFrame.mm:
3096         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
3097              Adopted new signature of ReplaceSelectionCommand::create().
3098
3099 2011-02-15  David Kilzer  <ddkilzer@apple.com>
3100
3101         <http://webkit.org/b/54485> Fix spelling of -inProgramaticScroll
3102
3103         Reviewed by Darin Adler.
3104
3105         * WebView/WebDynamicScrollBarsView.h:
3106         * WebView/WebDynamicScrollBarsView.mm:
3107         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Renamed from
3108         -inProgramaticScroll.
3109         * WebView/WebHTMLView.mm:
3110         (-[WebHTMLView _frameOrBoundsChanged]): Corrected method name.
3111
3112 2011-02-15  Kenneth Russell  <kbr@google.com>
3113
3114         Reviewed by Darin Fisher.
3115
3116         Allow controlling minimum DOMTimer interval on a per-page basis
3117         https://bugs.webkit.org/show_bug.cgi?id=54312
3118
3119         Added needed methods to implement LayoutTestController's new
3120         setMinimumTimerInterval method.
3121
3122         * WebView/WebView.mm:
3123         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3124         (+[WebView _defaultMinimumTimerInterval]):
3125         (-[WebView _setMinimumTimerInterval:]):
3126         * WebView/WebViewPrivate.h:
3127
3128 2011-02-11  Geoffrey Garen  <ggaren@apple.com>
3129
3130         Reviewed by Oliver Hunt.
3131
3132         A little more encapsulation for the heap: Removed CollectorHeapIterator
3133         https://bugs.webkit.org/show_bug.cgi?id=54298
3134
3135         * Misc/WebCoreStatistics.mm:
3136         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
3137         (+[WebCoreStatistics javaScriptObjectTypeCounts]): Updated for new typedef.
3138
3139 2011-02-10  Nate Chapin  <japhet@chromium.org>
3140
3141         Reviewed by Adam Barth.
3142
3143         Update calls to DocumentWriter.
3144         https://bugs.webkit.org/show_bug.cgi?id=50489
3145
3146         * WebView/WebFrame.mm:
3147         (-[WebFrame _canProvideDocumentSource]):
3148
3149 2011-02-10  Chris Fleizach  <cfleizach@apple.com>
3150
3151         Reviewed by Anders Carlsson.
3152
3153         AX: AX needs to stop using WebCoreViewFactory
3154         https://bugs.webkit.org/show_bug.cgi?id=54153
3155
3156         * WebCoreSupport/WebSystemInterface.mm:
3157         (InitWebCoreSystemInterface):
3158
3159 2011-02-10  Peter Varga  <pvarga@webkit.org>
3160
3161         Reviewed by Csaba Osztrogonác.
3162
3163         Remove PCRE source from trunk
3164         https://bugs.webkit.org/show_bug.cgi?id=54188
3165
3166         * ForwardingHeaders/pcre/pcre.h: Removed.
3167
3168 2011-02-09  Pavel Feldman  <pfeldman@chromium.org>
3169
3170         Reviewed by Yury Semikhatsky.
3171
3172         Web Inspector: follow up on InspectorAgent split -
3173         removing unnecessary methods from InspectorController.
3174         https://bugs.webkit.org/show_bug.cgi?id=54093
3175
3176         * WebInspector/WebInspector.mm:
3177         (-[WebInspector showConsole:]):
3178         (-[WebInspector stopProfilingJavaScript:]):
3179
3180 2011-02-08  Dan Bernstein  <mitz@apple.com>
3181
3182         Reviewed by Jon Honeycutt and Maciej Stachowiak.
3183
3184         <rdar://problem/8959420> Find in Mail no longer cycles around
3185
3186         * WebView/WebHTMLView.mm:
3187         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Set
3188         the wrap option according to the flag.
3189
3190 2011-02-08  Sheriff Bot  <webkit.review.bot@gmail.com>
3191
3192         Unreviewed, rolling out r77980.
3193         http://trac.webkit.org/changeset/77980
3194         https://bugs.webkit.org/show_bug.cgi?id=54043
3195
3196         "Crashes on Windows and Linux..." (Requested by leviw on
3197         #webkit).
3198
3199         * WebView/WebFrame.mm:
3200         (-[WebFrame _caretRectAtNode:offset:affinity:]):
3201         * WebView/WebFrameInternal.h:
3202         * WebView/WebTextCompletionController.mm:
3203         (-[WebTextCompletionController doCompletion]):
3204
3205 2011-02-08  Levi Weintraub  <leviw@chromium.org>
3206
3207         Reviewed by Ryosuke Niwa.
3208
3209         Stop instantiating legacy editing Positions in VisiblePosition
3210         https://bugs.webkit.org/show_bug.cgi?id=52919
3211
3212         Changing usage of legacy VisiblePosition constructor. Since we were dealing
3213         with positions from DOM Ranges, we're guaranteed a parent-anchored position.
3214
3215         * WebView/WebFrame.mm:
3216         (-[WebFrame _caretRectAtPosition:affinity:]):
3217         * WebView/WebFrameInternal.h:
3218         * WebView/WebTextCompletionController.mm:
3219         (-[WebTextCompletionController doCompletion]):
3220
3221 2011-02-08  Adam Barth  <abarth@webkit.org>
3222
3223         Reviewed by Eric Seidel.
3224
3225         Remove orphan code from old parser
3226         https://bugs.webkit.org/show_bug.cgi?id=53984
3227
3228         * WebCoreSupport/WebChromeClient.h:
3229
3230 2011-02-02  Ilya Tikhonovsky  <loislo@chromium.org>
3231
3232         Reviewed by Yury Semikhatsky.
3233
3234         Web Inspector: move InspectorController's methods from InspectorAgent to InspectorController.
3235
3236         https://bugs.webkit.org/show_bug.cgi?id=53169
3237
3238         Minor change enforced by major changes in WebCore/inspector/InspectorController.
3239
3240         * WebInspector/WebInspector.mm:
3241         (-[WebInspector isTimelineProfilingEnabled]):
3242
3243 2011-02-07  Enrica Casucci  <enrica@apple.com>
3244
3245         Reviewed Adam Roben and Darin Adler.
3246
3247         WebKit2: drag and drop support on Windows.
3248         https://bugs.webkit.org/show_bug.cgi?id=52775
3249
3250         Removed createDragImageForLink from DragClient.
3251
3252         * WebCoreSupport/WebDragClient.h:
3253         * WebCoreSupport/WebDragClient.mm:
3254         (WebDragClient::startDrag):
3255
3256 2011-02-03  Yury Semikhatsky  <yurys@chromium.org>
3257
3258         Reviewed by Pavel Feldman.
3259
3260         Web Inspector: remove settings related methods from InspectorClient
3261         https://bugs.webkit.org/show_bug.cgi?id=53686
3262
3263         * WebCoreSupport/WebInspectorClient.h:
3264         * WebCoreSupport/WebInspectorClient.mm:
3265         (WebInspectorClient::openInspectorFrontend):
3266         (WebInspectorFrontendClient::WebInspectorFrontendClient):
3267
3268 2011-02-03  James Kozianski  <koz@chromium.org>
3269
3270         Reviewed by Dimitri Glazkov.
3271
3272         Add navigator.registerProtocolHandler behind a flag.
3273         https://bugs.webkit.org/show_bug.cgi?id=52609
3274
3275         * Configurations/FeatureDefines.xcconfig:
3276
3277 2011-02-03  Adam Langley  <agl@chromium.org>
3278
3279         Reviewed by Adam Barth.
3280
3281         Plumb mixed script URL to FrameLoaderClient
3282         https://bugs.webkit.org/show_bug.cgi?id=52384
3283
3284         Regressions covered by http/tests/security/mixedContent/*
3285
3286         * WebCoreSupport/WebFrameLoaderClient.h:
3287         * WebCoreSupport/WebFrameLoaderClient.mm:
3288         (WebFrameLoaderClient::didRunInsecureContent):
3289
3290 2011-02-03  Beth Dakin  <bdakin@apple.com>
3291
3292         Reviewed by Sam Weinig.
3293
3294         Fix for <rdar://problem/8944544> Ability to animate track
3295         for WKPainter scrollers
3296
3297         * WebCoreSupport/WebSystemInterface.mm:
3298         (InitWebCoreSystemInterface):
3299
3300 2011-02-02  Mark Rowe  <mrowe@apple.com>
3301
3302         Reviewed by Beth Dakin.
3303
3304         <rdar://problem/8928367> Crash when loading canvas pages inside HTMLCanvasElement::createImageBuffer().
3305
3306         * WebCoreSupport/WebSystemInterface.mm:
3307         (InitWebCoreSystemInterface): Add some missing initializers.
3308
3309 2011-02-02  Steve Lacey  <sjl@chromium.org>
3310
3311         Reviewed by Eric Carlson.
3312
3313         Implement basic media statistics on media elements.
3314         https://bugs.webkit.org/show_bug.cgi?id=53322
3315
3316         * Configurations/FeatureDefines.xcconfig:
3317
3318 2011-02-01  Sam Weinig  <sam@webkit.org>
3319
3320         Reviewed by Beth Dakin.
3321
3322         Part 2 for <rdar://problem/8492788>
3323         Adopt WKScrollbarPainterController
3324
3325         Use header detection to define scrollbar painting controller #define.
3326
3327         * WebCoreSupport/WebSystemInterface.mm:
3328         (InitWebCoreSystemInterface):
3329
3330 2011-02-01  David Hyatt  <hyatt@apple.com>
3331
3332         Reviewed by Oliver Hunt.
3333
3334         https://bugs.webkit.org/show_bug.cgi?id=53520
3335         
3336         Remove the physical terminology from IntRect and FloatRect.
3337         
3338         Now that we have flipped RenderBlocks for vertical-rl and horizontal-bt writing modes,
3339         we need to update our terminology to be more accurate.
3340
3341         I'm borrowing a page from AppKit here (which also supports flipped NSViews) and
3342         renaming right() and bottom() to maxX() and maxY().  These terms remain accurate
3343         even for flipped rectangles.
3344
3345         * WebView/WebHTMLView.mm:
3346         (setNeedsDisplayInRect):
3347
3348 2011-02-01  Beth Dakin  <bdakin@apple.com>
3349
3350         Reviewed by Sam Weinig.
3351
3352         Fix for <rdar://problem/8492788> Adopt WKScrollbarPainterController
3353
3354         * WebCoreSupport/WebSystemInterface.mm:
3355         (InitWebCoreSystemInterface):
3356
3357 2011-02-01  Dave Hyatt  <hyatt@apple.com>
3358
3359         Reviewed by Darin Adler.
3360
3361         https://bugs.webkit.org/show_bug.cgi?id=46422, make printing and pagination work
3362         with vertical text.
3363
3364         Change printing functions to check writing-mode and properly swap width and height
3365         as needed.
3366
3367         * WebView/WebDynamicScrollBarsView.mm:
3368         (-[WebDynamicScrollBarsView setScrollOrigin:updatePositionAtAll:immediately:]):
3369         * WebView/WebFrame.mm:
3370         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
3371         * WebView/WebFrameInternal.h:
3372         * WebView/WebHTMLView.mm:
3373         (-[WebHTMLView _web_setPrintingModeRecursive]):
3374         (-[WebHTMLView _web_clearPrintingModeRecursive]):
3375         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
3376         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]):
3377         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
3378         (-[WebHTMLView _endPrintMode]):
3379         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
3380         (-[WebHTMLView _endScreenPaginationMode]):
3381         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
3382         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:maximumPageLogicalWidth:adjustViewSize:paginateScreenContent:]):
3383         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
3384         (-[WebHTMLView _scaleFactorForPrintOperation:]):
3385         (-[WebHTMLView setPageWidthForPrinting:]):
3386         (-[WebHTMLView knowsPageRange:]):
3387
3388 2011-01-31  Oliver Hunt  <oliver@apple.com>
3389
3390         Convert markstack to a slot visitor API
3391         https://bugs.webkit.org/show_bug.cgi?id=53219
3392
3393         rolling r77098, r77099, r77100, r77109, and
3394         r77111 back in, along with a few more Qt fix attempts.
3395
3396         * WebView/WebScriptDebugDelegate.mm:
3397         (-[WebScriptCallFrame scopeChain]):
3398
3399 2011-01-30  Csaba Osztrogonác  <ossy@webkit.org>
3400
3401         Unreviewed, rolling out r77098, r77099, r77100, r77109, and
3402         r77111.
3403         http://trac.webkit.org/changeset/77098
3404         http://trac.webkit.org/changeset/77099
3405         http://trac.webkit.org/changeset/77100
3406         http://trac.webkit.org/changeset/77109
3407         http://trac.webkit.org/changeset/77111
3408         https://bugs.webkit.org/show_bug.cgi?id=53219
3409
3410         Qt build is broken
3411
3412         * WebView/WebScriptDebugDelegate.mm:
3413         (-[WebScriptCallFrame scopeChain]):
3414
3415 2011-01-30  Oliver Hunt  <oliver@apple.com>
3416
3417         Convert markstack to a slot visitor API
3418         https://bugs.webkit.org/show_bug.cgi?id=53219
3419
3420         rolling r77006 and r77020 back in.
3421
3422         * WebView/WebScriptDebugDelegate.mm:
3423         (-[WebScriptCallFrame scopeChain]):
3424
3425 2011-01-28  Geoffrey Garen  <ggaren@apple.com>
3426
3427         Reviewed by Maciej Stachowiak.
3428
3429         Some more Heap cleanup.
3430         https://bugs.webkit.org/show_bug.cgi?id=53357
3431
3432         Updated for JavaScriptCore changes.
3433
3434         * Misc/WebCoreStatistics.mm:
3435         (+[WebCoreStatistics memoryStatistics]):
3436
3437 2011-01-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3438
3439         Unreviewed, rolling out r77006 and r77020.
3440         http://trac.webkit.org/changeset/77006
3441         http://trac.webkit.org/changeset/77020
3442         https://bugs.webkit.org/show_bug.cgi?id=53360
3443
3444         "Broke Windows tests" (Requested by rniwa on #webkit).
3445
3446         * WebView/WebScriptDebugDelegate.mm:
3447         (-[WebScriptCallFrame scopeChain]):
3448
3449 2011-01-27  Oliver Hunt  <oliver@apple.com>
3450
3451         Reviewed by Geoffrey Garen.
3452
3453         Convert markstack to a slot visitor API
3454         https://bugs.webkit.org/show_bug.cgi?id=53219
3455
3456         Update to new marking api
3457
3458         * WebView/WebScriptDebugDelegate.mm:
3459         (-[WebScriptCallFrame scopeChain]):
3460
3461 2011-01-28  Dan Bernstein  <mitz@apple.com>
3462
3463         Reviewed by Sam Weinig.
3464
3465         <select> can't display right-to-left (rtl) languages
3466         https://bugs.webkit.org/show_bug.cgi?id=19785
3467
3468         * WebCoreSupport/WebChromeClient.h:
3469         * WebCoreSupport/WebChromeClient.mm:
3470         (WebChromeClient::selectItemWritingDirectionIsNatural): Changed to return false.
3471         (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added. Returns true.
3472
3473 2011-01-27  Sheriff Bot  <webkit.review.bot@gmail.com>
3474
3475         Unreviewed, rolling out r76891.
3476         http://trac.webkit.org/changeset/76891
3477         https://bugs.webkit.org/show_bug.cgi?id=53280
3478
3479         Makes every layout test crash (Requested by othermaciej on
3480         #webkit).
3481
3482         * Misc/WebIconDatabase.mm:
3483         (-[ThreadEnabler threadEnablingSelector:]):
3484         (importToWebCoreFormat):
3485
3486 2011-01-27  Nate Chapin  <japhet@chromium.org>
3487
3488         Reviewed by Adam Barth.
3489
3490         Use Document::url() instead of FrameLoader::url().
3491         https://bugs.webkit.org/show_bug.cgi?id=41165
3492
3493         * WebView/WebView.mm:
3494         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
3495
3496 2011-01-27  Dan Bernstein  <mitz@apple.com>
3497
3498         Rubber-stamped by Anders Carlsson.
3499
3500         Reverted an accidental change in r76561.
3501
3502         * WebView/WebHTMLView.mm:
3503
3504 2011-01-26  David Kilzer  <ddkilzer@apple.com>
3505
3506         <http://webkit.org/b/53192> Add experimental support for HTTP pipelining in CFNetwork
3507         <rdar://problem/8821760>
3508
3509         Reviewed by Antti Koivisto.
3510
3511         * WebCoreSupport/WebSystemInterface.mm:
3512         (InitWebCoreSystemInterface): Added initialization for
3513         GetHTTPPipeliningPriority and SetHTTPPipeliningPriority.
3514
3515 2011-01-26  Beth Dakin  <bdakin@apple.com>
3516
3517         Reviewed by Darin Adler.
3518
3519         Fix for <rdar://problem/8895140> Adopt WKScrollbar metrics 
3520         when using WKScrollbars.
3521
3522         * WebCoreSupport/WebSystemInterface.mm:
3523         (InitWebCoreSystemInterface):
3524
3525 2011-01-25  Darin Adler  <darin@apple.com>
3526
3527         Reviewed by Anders Carlsson.
3528
3529         WebKit is using CSBackupSetItemExcluded incorrectly
3530         https://bugs.webkit.org/show_bug.cgi?id=53095
3531         rdar://problem/8790540
3532
3533         * Misc/WebIconDatabase.mm:
3534         (importToWebCoreFormat): Removed code that was calling CSBackupSetItemExcluded.
3535         It was incorrect, and this responsibility has been moved to WebCore.
3536
3537 2011-01-24  Chris Marrin  <cmarrin@apple.com>
3538
3539         Reviewed by Eric Seidel.
3540
3541         Change ENABLE_3D_CANVAS to ENABLE_WEBGL
3542         https://bugs.webkit.org/show_bug.cgi?id=53041
3543
3544         * Configurations/FeatureDefines.xcconfig:
3545
3546 2011-01-25  Yury Semikhatsky  <yurys@chromium.org>
3547
3548         Reviewed by Pavel Feldman.
3549
3550         Web Inspector: remove "attached" state related methods from InspectorAgent
3551         https://bugs.webkit.org/show_bug.cgi?id=53086
3552
3553         * WebCoreSupport/WebInspectorClient.h:
3554         * WebCoreSupport/WebInspectorClient.mm:
3555         (-[WebInspectorWindowController showWindow:]):
3556         (-[WebInspectorWindowController attach]):
3557         (-[WebInspectorWindowController detach]):
3558
3559 2011-01-23  Dan Bernstein  <mitz@apple.com>
3560
3561         Reviewed by John Sullivan.
3562
3563         <rdar://problem/6097826> Mail's cursor does not become a resize cursor when moving mouse from scrolled email to the horizontal splitter
3564
3565         * WebCoreSupport/WebChromeClient.mm: