Always enable ENABLE(XPATH)
[WebKit.git] / Source / WebKit / mac / ChangeLog
1 2011-10-18  Adam Barth  <abarth@webkit.org>
2
3         Always enable ENABLE(XPATH)
4         https://bugs.webkit.org/show_bug.cgi?id=70217
5
6         Reviewed by Eric Seidel.
7
8         * Configurations/FeatureDefines.xcconfig:
9
10 2011-10-14  Chris Marrin  <cmarrin@apple.com>
11
12         Throttle rate of requestAnimationFrame when page is not visible
13         https://bugs.webkit.org/show_bug.cgi?id=67873
14
15         Reviewed by Anders Carlsson.
16
17         Plumb through notification when the window is hidden/shown or
18         minimized/unminimized
19
20         * WebView/WebView.mm:
21         (-[WebView _windowWillOrderOnScreen:]):
22         (-[WebView _windowWillOrderOffScreen:]):
23
24 2011-10-16  Adam Barth  <abarth@webkit.org>
25
26         Always enable ENABLE(DOM_STORAGE)
27         https://bugs.webkit.org/show_bug.cgi?id=70189
28
29         Reviewed by Eric Seidel.
30
31         * Configurations/FeatureDefines.xcconfig:
32         * Storage/WebStorageManager.mm:
33         * Storage/WebStorageManagerInternal.h:
34         * Storage/WebStorageTrackerClient.h:
35         * Storage/WebStorageTrackerClient.mm:
36         (WebStorageTrackerClient::dispatchDidModifyOrigin):
37         * WebView/WebView.mm:
38         (-[WebView _commonInitializationWithFrameName:groupName:]):
39
40 2011-10-14  David Kilzer  <ddkilzer@apple.com>
41
42         <http://webkit.org/b/70158> Fix clang compiler warnings
43
44         Reviewed by Darin Adler.
45
46         The following two methods in WebDelegateImplementationCaching.h
47         are ambiguous in WebChromeClient::runJavaScriptPrompt() because
48         the compiler can't decide how to convert the WTF::String
49         defaultText argument:
50
51             id CallUIDelegate(WebView *, SEL, id, id);
52             id CallUIDelegate(WebView *, SEL, id, BOOL);
53
54         The fix is to perform the conversion explicitly.
55
56         * WebCoreSupport/WebChromeClient.mm:
57         (WebChromeClient::runJavaScriptPrompt): Extract a defaultString
58         variable to convert the WTF::String to an NSString*, then
59         use defaultString in place of defaultText.
60
61 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
62
63         Rename virtual put to putVirtual
64         https://bugs.webkit.org/show_bug.cgi?id=69851
65
66         Reviewed by Darin Adler.
67
68         Renamed virtual versions of put to putVirtual in prepration for 
69         adding the static put to the MethodTable in ClassInfo since the 
70         compiler gets mad if the virtual and static versions have the same 
71         name.
72
73         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
74         (WebKit::NetscapePluginInstanceProxy::setProperty):
75
76 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
77
78         Rename virtual deleteProperty to deletePropertyVirtual
79         https://bugs.webkit.org/show_bug.cgi?id=69884
80
81         Reviewed by Darin Adler.
82
83         Renamed virtual versions of deleteProperty to deletePropertyVirtual in prepration for 
84         adding the static deleteProperty to the MethodTable in ClassInfo since the 
85         compiler gets mad if the virtual and static versions have the same name.
86
87         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
88         (WebKit::NetscapePluginInstanceProxy::removeProperty):
89
90 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
91
92         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
93         https://bugs.webkit.org/show_bug.cgi?id=69964
94
95         Reviewed by Enrica Casucci.
96
97         * WebView/WebFrame.mm:
98         (-[WebFrame _convertToNSRange:]):
99         (-[WebFrame _convertToDOMRange:]):
100
101 2011-10-13  Mark Hahnenberg  <mhahnenberg@apple.com>
102
103         Rename virtual getConstructData to getConstructDataVirtual
104         https://bugs.webkit.org/show_bug.cgi?id=69872
105
106         Reviewed by Geoffrey Garen.
107
108         Renamed virtual getConstructData functions to getConstructDataVirtual to 
109         avoid conflicts when we add static getConstructData to the MethodTable.
110
111         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
112         (WebKit::NetscapePluginInstanceProxy::construct):
113
114 2011-10-13  Beth Dakin  <bdakin@apple.com>
115
116         https://bugs.webkit.org/show_bug.cgi?id=70050
117         DRT and WRT should have HiDPI testing capabilities
118
119         Reviewed by Darin Adler.
120
121         New method _backingScaleFactor matches SPI of a similar name that I added 
122         recently to WKPage in WebKit2. Equivalent functionality is needed for 
123         DumpRenderTree's HiDPI support.
124         * WebView/WebView.mm:
125         (-[WebView _backingScaleFactor]):
126         * WebView/WebViewPrivate.h:
127
128 2011-10-12  Chris Marrin  <cmarrin@apple.com>
129
130         Sync requestAnimationFrame callback to CVDisplayLink on Mac
131         https://bugs.webkit.org/show_bug.cgi?id=68911
132
133         Reviewed by Simon Fraser.
134
135         Add windowDidChangeScreen function which listens for the window changing
136         screens and passes the new displayID along to WebCore::Page. It also sends
137         one on windowWillOrderOnScreen, so the Page has a fresh displayID after it's
138         created.
139
140         * WebView/WebView.mm:
141         (-[WebView addWindowObserversForWindow:]):
142         (-[WebView removeWindowObservers]):
143         (-[WebView _windowDidChangeScreen:]):
144         (-[WebView _windowWillOrderOnScreen:]):
145
146 2011-10-12  Adam Barth  <abarth@webkit.org>
147
148         Remove ENABLE(XHTMLMP) and associated code
149         https://bugs.webkit.org/show_bug.cgi?id=69729
150
151         Reviewed by David Levin.
152
153         * Configurations/FeatureDefines.xcconfig:
154
155 2011-10-10  Nate Chapin  <japhet@chromium.org>
156
157         Use a CachedImageClient instead of CachedResourceClient
158         in WebHTMLView.
159         https://bugs.webkit.org/show_bug.cgi?id=69790
160
161         Reviewed by Adam Barth.
162
163         * WebView/WebHTMLView.mm:
164         (promisedDataClient):
165
166 2011-10-10  Mark Hahnenberg  <mhahnenberg@apple.com>
167
168         Remove getCallDataVirtual methods
169         https://bugs.webkit.org/show_bug.cgi?id=69186
170
171         Reviewed by Geoffrey Garen.
172
173         Removed all getCallDataVirtual methods and replaced their call sites 
174         with an explicit lookup in the MethodTable.
175
176         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
177         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
178
179 2011-10-10  Joseph Pecoraro  <joepeck@webkit.org>
180
181         Extract WebOpenPanelResultListener out into its own file
182         https://bugs.webkit.org/show_bug.cgi?id=69575
183
184         Reviewed by David Kilzer.
185
186         Extract the WebOpenPanelResultListener class out into
187         its own file. No functional change.
188
189         * WebCoreSupport/WebChromeClient.mm:
190         * WebCoreSupport/WebOpenPanelResultListener.h: Added.
191         * WebCoreSupport/WebOpenPanelResultListener.mm: Added.
192         (-[WebOpenPanelResultListener dealloc]):
193         (-[WebOpenPanelResultListener finalize]):
194         (-[WebOpenPanelResultListener cancel]):
195         (-[WebOpenPanelResultListener chooseFilename:]):
196         (-[WebOpenPanelResultListener chooseFilenames:]):
197         * WebView/WebUIDelegate.h:
198
199 2011-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
200
201         Unreviewed, rolling out r96996.
202         http://trac.webkit.org/changeset/96996
203         https://bugs.webkit.org/show_bug.cgi?id=69697
204
205         It broke all tests on the Qt bot (Requested by Ossy_night on
206         #webkit).
207
208         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
209         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
210
211 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
212
213         Remove getCallDataVirtual methods
214         https://bugs.webkit.org/show_bug.cgi?id=69186
215
216         Reviewed by Geoffrey Garen.
217
218         Removed all getCallDataVirtual methods and replaced their call sites 
219         with an explicit lookup in the MethodTable.
220
221         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
222         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
223
224 2011-10-06  Anders Carlsson  <andersca@apple.com>
225
226         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
227         https://bugs.webkit.org/show_bug.cgi?id=69586
228
229         Reviewed by Darin Adler.
230
231         * Configurations/Base.xcconfig:
232         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
233
234 2011-10-06  Anders Carlsson  <andersca@apple.com>
235
236         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
237         https://bugs.webkit.org/show_bug.cgi?id=69584
238
239         Reviewed by Darin Adler.
240
241         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
242
243         * Plugins/Hosted/HostedNetscapePluginStream.mm:
244         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
245
246 2011-10-03  Andy Estes  <aestes@apple.com>
247
248         Add an option to suppress rendering until the document's load event fires.
249         https://bugs.webkit.org/show_bug.cgi?id=69298
250
251         Reviewed by Simon Fraser.
252         
253         Add a new private WebPreference.
254
255         * WebView/WebPreferenceKeysPrivate.h:
256         * WebView/WebPreferences.mm:
257         (+[WebPreferences initialize]):
258         (-[WebPreferences setSuppressRenderingWhileInitiallyLoading:]):
259         (-[WebPreferences suppressRenderingWhileInitiallyLoading]):
260         * WebView/WebPreferencesPrivate.h:
261         * WebView/WebView.mm:
262         (-[WebView _preferencesChanged:]):
263
264 2011-10-05  Jer Noble  <jer.noble@apple.com>
265
266         Enable WEB_AUDIO by default in the WebKit/mac port.
267         https://bugs.webkit.org/show_bug.cgi?id=68587
268
269         Reviewed by Simon Fraser.
270
271         * Configurations/FeatureDefines.xcconfig:
272
273 2011-10-05  David Kilzer  <ddkilzer@apple.com>
274
275         <http://webkit.org/b/69386> REGRESSION: Curious Location of StorageTracker.db
276
277         Reviewed by Alexey Proskuryakov.
278
279         * Storage/WebStorageManager.mm:
280         (+[WebStorageManager _storageDirectoryPath]): Restore call to
281         -[NSString stringByStandardizingPath].  Also fix over-release of
282         sLocalStoragePath if the initial -objectForKey: call returned an
283         NSString object.  Use pthread_once to be thread-safe.
284
285 2011-10-04  Kent Tamura  <tkent@chromium.org>
286
287         Introduce feature flags for incomplete input types
288         https://bugs.webkit.org/show_bug.cgi?id=68971
289
290         Reviewed by Hajime Morita.
291
292         * Configurations/FeatureDefines.xcconfig:
293         Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
294
295 2011-10-03  Geoffrey Garen  <ggaren@apple.com>
296
297         Some JSValue cleanup
298         https://bugs.webkit.org/show_bug.cgi?id=69320
299
300         Reviewed by Darin Adler.
301
302         * WebView/WebView.mm:
303         (aeDescFromJSValue): Updated for JSC changes.
304
305 2011-10-04  Scott Graham  <scottmg@chromium.org>
306
307         Add GAMEPAD feature flag
308         https://bugs.webkit.org/show_bug.cgi?id=66859
309
310         Reviewed by Darin Fisher.
311
312         * Configurations/FeatureDefines.xcconfig:
313
314 2011-10-03  Jer Noble  <jer.noble@apple.com>
315
316         Unreviewed, rolling out r96526.
317         http://trac.webkit.org/changeset/96526
318         https://bugs.webkit.org/show_bug.cgi?id=68587
319
320         WEB_AUDIO has numerous 64->32 bit casting warnings, causing
321         build breakages where -Wall is enabled.
322
323         * Configurations/FeatureDefines.xcconfig:
324
325 2011-10-03  Jer Noble  <jer.noble@apple.com>
326
327         Enable WEB_AUDIO by default in the WebKit/mac port.
328         https://bugs.webkit.org/show_bug.cgi?id=68587
329
330         Reviewed by Simon Fraser.
331
332         * Configurations/FeatureDefines.xcconfig:
333
334 2011-10-02  Sam Weinig  <sam@webkit.org>
335
336         Strength reduce Mac only Frame::searchForLabelsBeforeElement and Frame::matchLabelsAgainstElement into callers
337         https://bugs.webkit.org/show_bug.cgi?id=69230
338
339         Reviewed by Anders Carlsson.
340
341         * WebView/WebHTMLRepresentation.mm:
342         (regExpForLabels):
343         (searchForLabelsBeforeElement):
344         (matchLabelsAgainstString):
345         (matchLabelsAgainstElement):
346         (-[WebHTMLRepresentation searchForLabels:beforeElement:resultDistance:resultIsInCellAbove:]):
347         (-[WebHTMLRepresentation matchLabels:againstElement:]):
348
349 2011-10-02  Alexey Proskuryakov  <ap@apple.com>
350
351         REGRESSION (r95474): Unable to type anywhere in nightly builds in WebKit1 mode
352         https://bugs.webkit.org/show_bug.cgi?id=68542
353
354         Reviewed by Mark Rowe.
355
356         * WebView/WebView.mm: (-[WebView _usesDocumentViews]): Re-add this method for now.
357
358 2011-10-01  Geoffrey Garen  <ggaren@apple.com>
359
360         Leopard build fix: Updated for Strong<T> changes.
361
362         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
363         * WebView/WebScriptDebugger.mm:
364
365 2011-09-28  Joseph Pecoraro  <joepeck@webkit.org>
366
367         ASSERT if WebView's UIDelegate does not implement webView:runOpenPanel
368         https://bugs.webkit.org/show_bug.cgi?id=69037
369
370         Reviewed by Alexey Proskuryakov.
371
372         * WebCoreSupport/WebChromeClient.mm:
373         (WebChromeClient::runOpenPanel):
374         If no delegate is implemented, dismiss the listener
375         with a cancel. It expects some action.
376
377 2011-09-28  Anton D'Auria  <adauria@apple.com>
378
379         Expose +[WebStorageManager _storageDirectoryPath] as SPI
380         https://bugs.webkit.org/show_bug.cgi?id=68951
381
382         Reviewed by Brady Eidson.
383
384         This patch exposes +[WebStorageManager _storageDirectoryPath], which
385         pulls the path from NSUserDefaults if the preference is set. Otherwise,
386         it falls back on the default path.
387
388         * Storage/WebStorageManager.mm:
389         (+[WebStorageManager _storageDirectoryPath]): Adding static variable
390         so that we don't reread user defaults repeatedly.
391         (WebKitInitializeStorageIfNecessary):
392         * Storage/WebStorageManagerPrivate.h:
393
394 2011-09-27  Andy Estes  <aestes@apple.com>
395
396         WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
397         https://bugs.webkit.org/show_bug.cgi?id=68863
398
399         Reviewed by Darin Adler.
400
401         The SolarWalk binary does not link against WebKit.framework directly,
402         so calling NSVersionOfLinkTimeLibrary() will not return the version of
403         WebKit against which SolarWalk was linked. Since Solar Walk has
404         released an update that addresses the issue for which this app-specific
405         hack was originally added, we should just remove the hack.
406
407         * Misc/SolarWalkQuirksUserScript.js: Removed.
408         * WebView/WebView.mm: Removed needsSolarWalkQuirksScript(),
409         leakSolarWalkQuirksUserScriptContents(), and
410         -[WebView _injectSolarWalkQuirksScript].
411         (-[WebView _commonInitializationWithFrameName:groupName:]): Do not
412         inject the Solar Walk quirks script.
413
414 2011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
415
416         Add static version of JSCell::getCallData
417         https://bugs.webkit.org/show_bug.cgi?id=68741
418
419         Reviewed by Darin Adler.
420
421         In this patch we just extract the bodies of the virtual getCallData methods
422         throughout the JSCell inheritance hierarchy out into static methods, which are 
423         now called from the virtual methods.  This is an intermediate step in trying to 
424         move the virtual-ness of getCallData into our own method table stored in 
425         ClassInfo.  We need to convert the methods to static methods because static methods 
426         can be represented as function pointers rather than pointers to member functions, and
427         function pointers are smaller and faster to call than pointers to member functions.
428
429         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
430         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
431
432 2011-09-23  Simon Fraser  <simon.fraser@apple.com>
433
434         Repaint tests don't work in WebKit2
435         https://bugs.webkit.org/show_bug.cgi?id=68453
436
437         Reviewed by Sam Weinig.
438
439         Have FrameView keep track of repaint rects when asked to, and
440         expose this set of repaint rects via private WebKit API for later
441         use by DumpRenderTree.
442
443         * WebView/WebView.mm:
444         (-[WebView setTracksRepaints:]):
445         (-[WebView isTrackingRepaints]):
446         (-[WebView resetTrackedRepaints]):
447         (-[WebView trackedRepaintRects]):
448         * WebView/WebViewPrivate.h:
449
450 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
451
452         Add custom vtable struct to ClassInfo struct
453         https://bugs.webkit.org/show_bug.cgi?id=68567
454
455         Reviewed by Oliver Hunt.
456
457         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
458         specified class in its ClassInfo.  Also added to it the first function to use 
459         this macro, visitChildren.  This is part of the process of getting rid of all 
460         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
461         that can't easily be converted to non-virtual functions will be put into 
462         this custom vtable structure.
463
464         * Plugins/Hosted/ProxyInstance.mm:
465         * Plugins/Hosted/ProxyRuntimeObject.mm:
466
467 2011-09-24  Adam Barth  <abarth@webkit.org>
468
469         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
470         https://bugs.webkit.org/show_bug.cgi?id=68767
471
472         Reviewed by Eric Seidel.
473
474         * Configurations/FeatureDefines.xcconfig:
475         * Misc/WebCache.mm:
476         (+[WebCache empty]):
477         * WebCoreSupport/WebApplicationCache.mm:
478         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
479         (-[WebApplicationCacheQuotaManager usage]):
480         (-[WebApplicationCacheQuotaManager quota]):
481         (-[WebApplicationCacheQuotaManager setQuota:]):
482         * WebCoreSupport/WebChromeClient.h:
483         * WebCoreSupport/WebChromeClient.mm:
484         * WebView/WebDataSource.mm:
485         (-[WebDataSource _transferApplicationCache:]):
486         * WebView/WebFrame.mm:
487         (-[WebFrame _cacheabilityDictionary]):
488         * WebView/WebView.mm:
489         (WebKitInitializeApplicationCachePathIfNecessary):
490
491 2011-09-23  Adam Klein  <adamk@chromium.org>
492
493         Add ENABLE_MUTATION_OBSERVERS feature flag
494         https://bugs.webkit.org/show_bug.cgi?id=68732
495
496         Reviewed by Ojan Vafai.
497
498         This flag will guard an implementation of the "Mutation Observers" proposed in
499         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
500
501         * Configurations/FeatureDefines.xcconfig:
502
503 2011-09-23  Anders Carlsson  <andersca@apple.com>
504
505         Axe WebImageRendererFactory
506         https://bugs.webkit.org/show_bug.cgi?id=68715
507
508         Reviewed by Darin Adler.
509
510         Remove WebImageRendererFactory, it was used by Safari 3, many a moon ago.
511
512         * WebCoreSupport/WebImageRendererFactory.m: Removed.
513
514 2011-09-23  Anders Carlsson  <andersca@apple.com>
515
516         Add OVERRIDE to a bunch of virtual member functions on clients
517         https://bugs.webkit.org/show_bug.cgi?id=68712
518
519         Reviewed by Sam Weinig.
520
521         * Configurations/Base.xcconfig:
522         * WebCoreSupport/WebChromeClient.h:
523         * WebCoreSupport/WebContextMenuClient.h:
524         * WebCoreSupport/WebDeviceOrientationClient.h:
525         * WebCoreSupport/WebDragClient.h:
526         * WebCoreSupport/WebEditorClient.h:
527         * WebCoreSupport/WebFrameLoaderClient.h:
528         * WebCoreSupport/WebFrameNetworkingContext.h:
529         * WebCoreSupport/WebGeolocationClient.h:
530         * WebCoreSupport/WebIconDatabaseClient.h:
531         * WebCoreSupport/WebInspectorClient.h:
532         * WebCoreSupport/WebPlatformStrategies.h:
533
534 2011-09-22  Dean Jackson  <dino@apple.com>
535
536         Add ENABLE_CSS_FILTERS
537         https://bugs.webkit.org/show_bug.cgi?id=68652
538
539         Reviewed by Simon Fraser.
540
541         * Configurations/FeatureDefines.xcconfig:
542
543 2011-09-22  Anders Carlsson  <andersca@apple.com>
544
545         Get rid of Widget::setBoundsSize
546         https://bugs.webkit.org/show_bug.cgi?id=68491
547
548         Reviewed by Sam Weinig.
549
550         This basically reverts http://trac.webkit.org/changeset/79167 and http://trac.webkit.org/changeset/75897
551         which were added to make zoom gestures work with WebKit1, but since we don't support zoom gestures in WebKit1
552         anymore, it's better for code cleanliness to get rid of Widget::setBoundsSize and the associated code. While this
553         will unfortunately break transformed iframes in WebKit1, but Simon says that it's an acceptable tradeoff.
554
555         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
556         (-[WebHostedNetscapePluginView updateAndSetWindow]):
557         * WebView/WebFrameView.mm:
558
559 2011-09-19  Jer Noble  <jer.noble@apple.com>
560
561         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
562         https://bugs.webkit.org/show_bug.cgi?id=68382
563
564         Reviewed by Darin Adler.
565
566         Initialize the webAudioEnabled preference to NO by default.
567
568         * WebView/WebPreferences.mm:
569         (+[WebPreferences initialize]):
570
571 2011-09-21  Anders Carlsson  <andersca@apple.com>
572
573         Remove checks for Leopard-only Objective-C APIs
574         https://bugs.webkit.org/show_bug.cgi?id=68579
575
576         Reviewed by Sam Weinig.
577
578         We can always assume that OBJC_API_VERSION is at least 2, it's been 2 since Leopard.
579
580         * Misc/WebNSObjectExtras.h:
581
582 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
583
584         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
585         https://bugs.webkit.org/show_bug.cgi?id=67702
586
587         Reviewed by Csaba Osztrogonác.
588
589         * WebCoreSupport/WebPlatformStrategies.h:
590         * WebCoreSupport/WebPlatformStrategies.mm:
591         (WebPlatformStrategies::isLinkVisited):
592
593 2011-09-20  Anders Carlsson  <andersca@apple.com>
594
595         Remove ScrollView::platformContentsSize
596         https://bugs.webkit.org/show_bug.cgi?id=68188
597
598         Reviewed by Darin Adler.
599
600         When creating the document view, make sure it's zero sized which matches the initial size
601         of the ScrollView. This is fine to do early since DocumentWriter::begin sets the contents
602         size to a zero size anyway.
603
604         * WebView/WebFrameView.mm:
605         (-[WebFrameView _makeDocumentViewForDataSource:]):
606
607 2011-09-19  Pavel Feldman  <pfeldman@google.com>
608
609         Web Inspector: streamline Console's MessageType and MessageSource semantics.
610         https://bugs.webkit.org/show_bug.cgi?id=68342
611
612         This change fixes semantics of the MessageSource and MessageType:
613         MessageSource is now the source of the message (be it Network, HTML
614         parser or Console API). MessageType is only defined for the Console API
615         messages and contains the name of the API call (log, dir, dirxml, etc.). 
616         Subsequent https://bugs.webkit.org/show_bug.cgi?id=66371 will make MessageType
617         private to the inspector.
618
619         Reviewed by Tony Gentilcore.
620
621         * WebCoreSupport/WebChromeClient.mm:
622         (stringForMessageSource):
623         (stringForMessageType):
624         * WebView/WebUIDelegatePrivate.h:
625
626 2011-09-19  Timothy Hatcher  <timothy@apple.com>
627
628         Make WebViews in NSPopovers render as they would in active windows.
629
630         The NSWindowDid{Become,Resign}KeyNotifications are not fired when NSPopovers
631         are shown or hidden since they share key with the parent window. So WebView
632         and WebHTMLView need to also observe the will order on/off screen notifications.
633
634         https://webkit.org/b/68402
635         rdar://problem/9754099
636
637         Reviewed by John Sullivan.
638
639         * WebView/WebHTMLView.mm:
640         (-[WebHTMLView _removeWindowObservers]): Remove order on/off screen notification obversers.
641         (-[WebHTMLView addWindowObservers]): Add order on/off screen notification obversers.
642         (-[WebHTMLView windowWillOrderOnScreen:]): Check if the window is already a key window,
643         which can be the case for NSPopovers.
644         (-[WebHTMLView windowWillOrderOffScreen:]): Remove the mouse moved observer.
645         * WebView/WebView.mm:
646         (-[WebView addWindowObserversForWindow:]): Add order off screen notification obverser.
647         (-[WebView removeWindowObservers]): Remove order off screen notification obverser.
648         (-[WebView _windowWillOrderOnScreen:]): Call _updateActiveState.
649         (-[WebView _windowWillOrderOffScreen:]): Ditto.
650
651 2011-09-19  Mark Rowe  <mrowe@apple.com>
652
653         <http://webkit.org/b/68421> Stop calling UpdateSystemActivity in places where we hold power assertions that achieve the same effect
654
655         On SnowLeopard and newer it's not necessary to call UpdateSystemActivity to prevent the screensaver from kicking
656         in as the NoDisplaySleep assertion now has that effect. It's also not necessary to hold both a NoDisplaySleep and
657         a NoIdleSleep assertion as the latter is implied by the former.
658
659         Adopt the DisplaySleepDisabler class that was added to WebCore and remove all of duplicated logic from WebFullScreenController.
660
661         Reviewed by Dan Bernstein.
662
663         * WebView/WebFullScreenController.h:
664         * WebView/WebFullScreenController.mm:
665         (-[WebFullScreenController dealloc]):
666         (-[WebFullScreenController _updatePowerAssertions]): Create a DisplaySleepDisabler instance when transitioning from permitting
667         display sleep to disabling display sleep. Clear out our reference when sleep should be permitted, destroying any
668         disabler that we own.
669
670 2011-09-19  Adam Barth  <abarth@webkit.org>
671
672         Always enable ENABLE(EVENTSOURCE)
673         https://bugs.webkit.org/show_bug.cgi?id=68414
674
675         Reviewed by Eric Seidel.
676
677         * Configurations/FeatureDefines.xcconfig:
678
679 2011-09-19  Anders Carlsson  <andersca@apple.com>
680
681         Fix crashes when running WebKit1 tests.
682
683         -[WebView _mustDrawUnionedRect:singleRects:count:] was removed, so just put back the
684         equivalent code directly into -[WebHTMLView drawRect:].
685
686         * WebView/WebHTMLView.mm:
687         (-[WebHTMLView drawRect:]):
688         * WebView/WebViewInternal.h:
689
690 2011-09-19  Anders Carlsson  <andersca@apple.com>
691
692         Remove the last remains of viewless WebKit1
693         https://bugs.webkit.org/show_bug.cgi?id=68388
694
695         Reviewed by Darin Adler.
696
697         * WebCoreSupport/WebFrameLoaderClient.mm:
698         (WebFrameLoaderClient::forceLayoutForNonHTML):
699         Remove null check.
700
701         * WebView/WebView.mm:
702         (-[WebView _commonInitializationWithFrameName:groupName:]):
703         Remove usesDocumentViews parameter and checks.
704
705         (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]):
706         Add an assertion that usesDocumentViews is always true.
707
708         (-[WebView _isUsingAcceleratedCompositing]):
709         Remove usesDocumentViews check.
710
711         (-[WebView _isSoftwareRenderable]):
712         Remove usesDocumentViews check.
713
714         (-[WebView initWithFrame:frameName:groupName:]):
715         Remove usesDocumentViews parameter and always pass YES to the _initWithFrame method.
716         
717         (-[WebView initWithCoder:]):
718         Remove usesDocumentViews parameter.
719
720         (-[WebView _frameViewAtWindowPoint:]):
721         Remove usesDocumentViews check.
722
723         * WebView/WebViewData.h:
724         Remove usesDocumentViews ivar.
725
726         * WebView/WebViewPrivate.h:
727         Remove usesDocumentViews parameters.
728
729 2011-09-19  Anders Carlsson  <andersca@apple.com>
730
731         Remove WebViewEventHandling.mm
732         https://bugs.webkit.org/show_bug.cgi?id=68387
733
734         Reviewed by Adam Roben.
735
736         WebViewEventHandling.mm was all about event handling in viewless WebKit, so rip it out since
737         we're getting rid of viewless WebKit1.
738
739         * WebView/WebView.mm:
740         (-[WebView _close]):
741         * WebView/WebViewData.h:
742         * WebView/WebViewEventHandling.mm: Removed.
743         * WebView/WebViewInternal.h:
744
745 2011-09-19  Anders Carlsson  <andersca@apple.com>
746
747         Remove -[WebView _selectionChanged] and -[WebView _setTooltip:]
748         https://bugs.webkit.org/show_bug.cgi?id=68385
749
750         Reviewed by Adam Roben.
751
752         Move these functions back into the respective clients and remove usesDocumentViews checks.
753
754         * WebCoreSupport/WebChromeClient.mm:
755         (WebChromeClient::setToolTip):
756         * WebCoreSupport/WebEditorClient.mm:
757         (WebEditorClient::respondToChangedSelection):
758         * WebView/WebView.mm:
759         * WebView/WebViewEventHandling.mm:
760         * WebView/WebViewInternal.h:
761
762 2011-09-19  Anders Carlsson  <andersca@apple.com>
763
764         Begin removing -[WebView _usesDocumentCalls] from WebView.mm
765         https://bugs.webkit.org/show_bug.cgi?id=68383
766
767         Reviewed by Adam Roben.
768
769         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
770         returns true, since viewless WebKit1 has been abandoned.
771
772         * WebView/WebView.mm:
773         (-[WebView selectedFrame]):
774         (-[WebView setHostWindow:]):
775         (-[WebView acceptsFirstResponder]):
776         (-[WebView becomeFirstResponder]):
777         (-[WebView _webcore_effectiveFirstResponder]):
778         (-[WebView setNextKeyView:]):
779         (-[WebView setHoverFeedbackSuspended:]):
780
781 2011-09-19  Anders Carlsson  <andersca@apple.com>
782
783         Remove calls to -[WebView _usesDocumentViews] from WebFrameLoaderClient.mm
784         https://bugs.webkit.org/show_bug.cgi?id=68379
785
786         Reviewed by Adam Roben.
787
788         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
789         returns true, since viewless WebKit1 has been abandoned.
790
791         * WebCoreSupport/WebFrameLoaderClient.mm:
792         (WebFrameLoaderClient::hasHTMLView):
793         (WebFrameLoaderClient::dispatchDidCommitLoad):
794         (WebFrameLoaderClient::transitionToCommittedForNewPage):
795         (WebFrameLoaderClient::createFrame):
796         * WebView/WebFrame.mm:
797         (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
798         (-[WebFrame _hasSelection]):
799         (-[WebFrame _clearSelection]):
800         (-[WebFrame _shouldFlattenCompositingLayers:]):
801         (-[WebFrame _dragSourceEndedAt:operation:]):
802         (-[WebFrame frameView]):
803
804 2011-09-19  Anders Carlsson  <andersca@apple.com>
805
806         Remove calls to -[WebView _usesDocumentViews]
807         https://bugs.webkit.org/show_bug.cgi?id=68377
808
809         Reviewed by Adam Roben.
810
811         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
812         returns true, since viewless WebKit1 has been abandoned.
813
814         * WebCoreSupport/WebChromeClient.mm:
815         (WebChromeClient::windowResizerRect):
816         (WebChromeClient::invalidateContentsAndWindow):
817         (WebChromeClient::screenToWindow):
818         (WebChromeClient::windowToScreen):
819         (WebChromeClient::platformPageClient):
820         (WebChromeClient::scrollRectIntoView):
821         (WebChromeClient::print):
822         * WebView/WebDataSource.mm:
823         (-[WebDataSource _receivedData:]):
824
825 2011-09-19  Dan Bernstein  <mitz@apple.com>
826
827         WebKit part of [mac] WebKit contains Objective-C classes that are not prefixed with its standard prefixes
828         https://bugs.webkit.org/show_bug.cgi?id=68323
829
830         Reviewed by Sam Weinig.
831
832         Renamed NonBlockingPanel to WebNonBlockingPanel.
833         Renamed ThreadEnabler to WebCocoaThreadingEnabler.
834         Renamed PDFPrefUpdatingProxy to WebPDFPrefUpdatingProxy.
835
836         * Misc/WebIconDatabase.mm:
837         (+[WebCocoaThreadingEnabler enableThreading]):
838         (importToWebCoreFormat):
839         * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
840         * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
841         * Panels/WebAuthenticationPanel.h:
842         * Panels/WebAuthenticationPanel.m: Renamed NonBlockingPanel to
843         WebNonBlockingPanel. Because Safari 5.1 uses NonBlockingPanel, this will
844         cause nightly builds to log an error message when showing the Safari
845         HTTP authentication sheet and disable the Quit command while the sheet
846         is disaplyed.
847         * WebView/WebPDFView.mm:
848         (-[WebPDFView initWithFrame:]):
849         (-[WebPDFView _updatePreferencesSoon]):
850
851 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
852
853         FrameLoaderClient BackForwardList-related methods are unsued
854         https://bugs.webkit.org/show_bug.cgi?id=68293
855
856         Reviewed by Darin Adler.
857
858         Remove FrameLoaderClient methods that were added by r51629, since only        
859         the old (since-deleted) Android port needed them.
860
861         * WebCoreSupport/WebFrameLoaderClient.h:
862         * WebCoreSupport/WebFrameLoaderClient.mm:
863         * WebKit.order:
864
865 2011-09-16  Simon Fraser  <simon.fraser@apple.com>
866
867         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
868         https://bugs.webkit.org/show_bug.cgi?id=68134
869
870         Reviewed by Sam Weinig.
871         
872         Hook up a private preference that enables the mock scrollbar theme.
873
874         * WebView/WebPreferenceKeysPrivate.h:
875         * WebView/WebPreferences.mm:
876         (-[WebPreferences mockScrollbarsEnabled]):
877         (-[WebPreferences setMockScrollbarsEnabled:]):
878         * WebView/WebPreferencesPrivate.h:
879
880 2011-09-15  Adam Barth  <abarth@webkit.org>
881
882         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
883         https://bugs.webkit.org/show_bug.cgi?id=68205
884
885         Reviewed by Eric Seidel.
886
887         * Storage/WebDatabaseManager.mm:
888         * Storage/WebDatabaseManagerInternal.h:
889         * Storage/WebDatabaseManagerPrivate.h:
890         * Storage/WebDatabaseQuotaManager.mm:
891         (-[WebDatabaseQuotaManager usage]):
892         (-[WebDatabaseQuotaManager quota]):
893         (-[WebDatabaseQuotaManager setQuota:]):
894         * Storage/WebDatabaseTrackerClient.h:
895         * Storage/WebDatabaseTrackerClient.mm:
896         * WebCoreSupport/WebChromeClient.h:
897         * WebCoreSupport/WebChromeClient.mm:
898         * WebCoreSupport/WebSecurityOrigin.mm:
899         (-[WebSecurityOrigin usage]):
900         (-[WebSecurityOrigin quota]):
901         (-[WebSecurityOrigin setQuota:]):
902         * WebView/WebFrame.mm:
903         (-[WebFrame _cacheabilityDictionary]):
904         * WebView/WebView.mm:
905         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
906         (-[WebView _preferencesChanged:]):
907
908 2011-09-15  Mark Hahnenberg  <mhahnenberg@apple.com>
909
910         Unzip initialization lists and constructors in JSCell hierarchy (7/7)
911         https://bugs.webkit.org/show_bug.cgi?id=68122
912
913         Reviewed by Geoffrey Garen.
914
915         Completed the seventh and final level of the refactoring to add finishCreation() 
916         methods to all classes within the JSCell hierarchy with non-trivial 
917         constructor bodies.
918
919         * Plugins/Hosted/ProxyInstance.mm:
920         (WebKit::ProxyRuntimeMethod::create):
921         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
922         * Plugins/Hosted/ProxyRuntimeObject.h:
923         (WebKit::ProxyRuntimeObject::create):
924         * Plugins/Hosted/ProxyRuntimeObject.mm:
925         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
926
927 2011-09-15  Kentaro Hara  <haraken@google.com>
928
929         A single line must not be split into two pages.
930         https://bugs.webkit.org/show_bug.cgi?id=65005
931
932         Reviewed by David Hyatt.
933
934         When the document width of a page is overflowed, the last line of the page can be
935         split into the next page. This is the regression caused by r88737. r88737 tried to
936         fix rounding errors in rendering calculations by expanding and shrinking a page
937         using one common method, resizePageRectsKeepingRatio(), but overlooked the case where
938         a document width gets overflowed.
939
940         Test: printing/single-line-must-not-be-split-into-two-pages.html
941
942         * WebView/WebHTMLView.mm:
943         (-[WebHTMLView _web_setPrintingModeRecursive]): Passes an original page size to setPrinting().
944         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
945         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
946         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Ditto.
947         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]): Ditto.
948         (-[WebHTMLView _endPrintMode]): Ditto.
949         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]): Ditto.
950         (-[WebHTMLView _endScreenPaginationMode]): Ditto.
951         (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]): Ditto.
952         (-[WebHTMLView layout]): Ditto.
953         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]): Ditto.
954         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
955         (-[WebHTMLView setPageWidthForPrinting:]): Ditto.
956
957 2011-09-15  Eric Seidel  <eric@webkit.org>
958
959         Remove ENABLE(SVG_AS_IMAGE) since all major ports have it on by default
960         https://bugs.webkit.org/show_bug.cgi?id=68182
961
962         Reviewed by Adam Barth.
963
964         * Configurations/FeatureDefines.xcconfig:
965
966 2011-09-15  Eric Seidel  <eric@webkit.org>
967
968         Remove ENABLE_SVG_ANIMATION as all major ports have it on by default
969         https://bugs.webkit.org/show_bug.cgi?id=68022
970
971         Reviewed by Ryosuke Niwa.
972
973         * Configurations/FeatureDefines.xcconfig:
974
975 2011-09-14  Anders Carlsson  <andersca@apple.com>
976
977         Get rid of WebCoreViewFactory and its WebViewFactory subclass
978         https://bugs.webkit.org/show_bug.cgi?id=68124
979
980         Reviewed by Sam Weinig.
981
982         * WebCoreSupport/WebContextMenuClient.mm:
983         * WebCoreSupport/WebViewFactory.h: Removed.
984         * WebCoreSupport/WebViewFactory.mm: Removed.
985         * WebView/WebFrameView.mm:
986         (-[WebFrameView initWithFrame:]):
987
988 2011-09-14  Mark Hahnenberg  <mhahnenberg@apple.com>
989
990         Unzip initialization lists and constructors in JSCell hierarchy (6/7)
991         https://bugs.webkit.org/show_bug.cgi?id=67692
992
993         Reviewed by Geoffrey Garen.
994
995         Completed the sixth level of the refactoring to add finishCreation() 
996         methods to all classes within the JSCell hierarchy with non-trivial 
997         constructor bodies.
998
999         This primarily consists of pushing the calls to finishCreation() down 
1000         into the constructors of the subclasses of the fifth level of the hierarchy 
1001         as well as pulling the finishCreation() calls out into the class's corresponding
1002         create() method if it has one.  Doing both simultaneously allows us to 
1003         maintain the invariant that the finishCreation() method chain is called exactly 
1004         once during the creation of an object, since calling it any other number of 
1005         times (0, 2, or more) will cause an assertion failure.
1006
1007         * Plugins/Hosted/ProxyInstance.mm:
1008         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
1009         (WebKit::ProxyRuntimeMethod::finishCreation):
1010
1011 2011-09-13  Eric Seidel  <eric@webkit.org>
1012
1013         Remove ENABLE_SVG_USE as <use> is required by HTML5
1014         https://bugs.webkit.org/show_bug.cgi?id=68019
1015
1016         Reviewed by Ryosuke Niwa.
1017
1018         * Configurations/FeatureDefines.xcconfig:
1019
1020 2011-09-13  Anders Carlsson  <andersca@apple.com>
1021
1022         Disable C++ exceptions when building with clang
1023         https://bugs.webkit.org/show_bug.cgi?id=68031
1024         <rdar://problem/9556880>
1025
1026         Reviewed by Mark Rowe.
1027
1028         * Configurations/Base.xcconfig:
1029
1030 2011-09-13  Eric Seidel  <eric@webkit.org>
1031
1032         Remove ENABLE_SVG_FOREIGN_OBJECT as it is a required part of HTML5
1033         https://bugs.webkit.org/show_bug.cgi?id=68018
1034
1035         Reviewed by Ryosuke Niwa.
1036
1037         * Configurations/FeatureDefines.xcconfig:
1038
1039 2011-09-09  Oliver Hunt  <oliver@apple.com>
1040
1041         Remove support for anonymous storage from jsobjects
1042         https://bugs.webkit.org/show_bug.cgi?id=67881
1043
1044         Reviewed by Sam Weinig.
1045
1046         Remove the use of AnonymousSlotCount
1047
1048         * Plugins/Hosted/ProxyInstance.mm:
1049         (WebKit::ProxyRuntimeMethod::createStructure):
1050         * Plugins/Hosted/ProxyRuntimeObject.h:
1051         (WebKit::ProxyRuntimeObject::createStructure):
1052
1053 2011-09-09  Chris Marrin  <cmarrin@apple.com>
1054
1055         requestAnimationFrame doesn't throttle on Mac
1056         https://bugs.webkit.org/show_bug.cgi?id=67171
1057
1058         Reviewed by Simon Fraser.
1059
1060         Removed runLoopObserver for requestAnimationFrame. It's now
1061         done by a Timer in ScriptedAnimationController in WebCore.
1062
1063         * WebCoreSupport/WebChromeClient.h:
1064         * WebCoreSupport/WebChromeClient.mm:
1065         * WebView/WebView.mm:
1066         (-[WebView _close]):
1067         * WebView/WebViewData.h:
1068         * WebView/WebViewInternal.h:
1069
1070 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
1071
1072         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
1073         https://bugs.webkit.org/show_bug.cgi?id=67250
1074
1075         Reviewed by Simon Fraser.
1076
1077         * WebView/WebView.mm:
1078         (-[WebView _scaleWebView:atOrigin:]):
1079         (-[WebView _viewScaleFactor]):
1080
1081 2011-09-09  Mark Hahnenberg  <mhahnenberg@apple.com>
1082
1083         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
1084         https://bugs.webkit.org/show_bug.cgi?id=67420
1085
1086         Reviewed by Geoffrey Garen.
1087
1088         Completed the fifth level of the refactoring to add finishCreation() 
1089         methods to all classes within the JSCell hierarchy with non-trivial 
1090         constructor bodies.
1091
1092         This primarily consists of pushing the calls to finishCreation() down 
1093         into the constructors of the subclasses of the second level of the hierarchy 
1094         as well as pulling the finishCreation() calls out into the class's corresponding
1095         create() method if it has one.  Doing both simultaneously allows us to 
1096         maintain the invariant that the finishCreation() method chain is called exactly 
1097         once during the creation of an object, since calling it any other number of 
1098         times (0, 2, or more) will cause an assertion failure.
1099
1100         * Plugins/Hosted/ProxyRuntimeObject.h:
1101         * Plugins/Hosted/ProxyRuntimeObject.mm:
1102         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
1103         (WebKit::ProxyRuntimeObject::finishCreation):
1104
1105 2011-09-08  Sam Weinig  <sam@webkit.org>
1106
1107         Remove the Completion object from JSC, I have never liked it
1108         https://bugs.webkit.org/show_bug.cgi?id=67755
1109
1110         Reviewed by Gavin Barraclough.
1111
1112         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1113         (WebKit::NetscapePluginInstanceProxy::evaluate):
1114
1115 2011-09-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1116
1117         Unreviewed, rolling out r94627 and r94632.
1118         http://trac.webkit.org/changeset/94627
1119         http://trac.webkit.org/changeset/94632
1120         https://bugs.webkit.org/show_bug.cgi?id=67698
1121
1122         It broke tests on GTK and Qt (Requested by Ossy on #webkit).
1123
1124         * Plugins/Hosted/ProxyRuntimeObject.h:
1125         * Plugins/Hosted/ProxyRuntimeObject.mm:
1126         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
1127
1128 2011-09-06  Mark Hahnenberg  <mhahnenberg@apple.com>
1129
1130         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
1131         https://bugs.webkit.org/show_bug.cgi?id=67420
1132
1133         Reviewed by Geoffrey Garen.
1134
1135         Completed the fifth level of the refactoring to add finishCreation() 
1136         methods to all classes within the JSCell hierarchy with non-trivial 
1137         constructor bodies.
1138
1139         This primarily consists of pushing the calls to finishCreation() down 
1140         into the constructors of the subclasses of the second level of the hierarchy 
1141         as well as pulling the finishCreation() calls out into the class's corresponding
1142         create() method if it has one.  Doing both simultaneously allows us to 
1143         maintain the invariant that the finishCreation() method chain is called exactly 
1144         once during the creation of an object, since calling it any other number of 
1145         times (0, 2, or more) will cause an assertion failure.
1146
1147         * Plugins/Hosted/ProxyRuntimeObject.h:
1148         * Plugins/Hosted/ProxyRuntimeObject.mm:
1149         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
1150         (WebKit::ProxyRuntimeObject::finishCreation):
1151
1152 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
1153
1154         Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
1155         https://bugs.webkit.org/show_bug.cgi?id=67569
1156
1157         Reviewed by Antonio Gomes.
1158
1159         * WebView/WebHTMLView.mm:
1160         (-[WebHTMLView _updateSelectionForInputManager]):
1161
1162 2011-09-05  Oliver Hunt  <oliver@apple.com>
1163
1164         An object's structure should reference the global object responsible for its creation
1165         https://bugs.webkit.org/show_bug.cgi?id=67624
1166
1167         Reviewed by Gavin Barraclough.
1168
1169         Update for new Structure::create() globalObject parameter.
1170
1171         * Plugins/Hosted/ProxyInstance.mm:
1172         (WebKit::ProxyRuntimeMethod::createStructure):
1173         * Plugins/Hosted/ProxyRuntimeObject.h:
1174         (WebKit::ProxyRuntimeObject::createStructure):
1175
1176 2011-09-01  Mark Rowe  <mrowe@apple.com>
1177
1178         Fix the build by adding some more missing return types.
1179
1180         * WebView/WebDashboardRegion.h:
1181         * WebView/WebDashboardRegion.mm:
1182         (-[WebDashboardRegion initWithRect:clip:type:]):
1183
1184 2011-09-01  Tim Horton  <timothy_horton@apple.com>
1185
1186         REGRESSION: Rendering artifacts on a rotated, pattern filled shape
1187         https://bugs.webkit.org/show_bug.cgi?id=53055
1188         <rdar://problem/8910917>
1189
1190         Reviewed by Simon Fraser.
1191
1192         Introduce wkCGPatternCreateWithImageAndTransform.
1193
1194         * WebCoreSupport/WebSystemInterface.mm:
1195         (InitWebCoreSystemInterface):
1196
1197 2011-08-31  Beth Dakin  <bdakin@apple.com>
1198
1199         https://bugs.webkit.org/show_bug.cgi?id=67322
1200         Re-name overrideBackingScaleFactor
1201
1202         Reviewed by John Sullivan.
1203
1204         _setOverrideBackingScaleFactor is now _setCustomBackingScaleFactor
1205         * WebView/WebView.mm:
1206         (-[WebView _setCustomBackingScaleFactor:]):
1207         (-[WebView _deviceScaleFactor]):
1208         * WebView/WebViewData.h:
1209         * WebView/WebViewPrivate.h:
1210
1211 2011-08-30  Dan Bernstein  <mitz@apple.com>
1212
1213         <rdar://problem/9281695> Add text search API for getting the DOM range of a text match
1214         https://bugs.webkit.org/show_bug.cgi?id=67230
1215
1216         Reviewed by Darin Adler.
1217
1218         * WebView/WebHTMLView.mm:
1219         * WebView/WebView.mm:
1220         (coreOptions): Moved this function from WebHTMLView.mm to here and made
1221         it accessible from both this file and WebHTMLView.mm.
1222         (-[WebView DOMRangeOfString:relativeTo:options:]): Added this new API.
1223         * WebView/WebViewInternal.h:
1224         * WebView/WebViewPrivate.h:
1225
1226 2011-08-30  Beth Dakin  <bdakin@apple.com>
1227
1228         https://bugs.webkit.org/show_bug.cgi?id=67150
1229         Would like API to use a custom device scale factor for a particular WebView/WKView
1230         -and corresponding-
1231         <rdar://problem/10041016>
1232
1233         Reviewed by Darin Adler.
1234
1235         New API is _setOverrideBackingScaleFactor:(CGFloat)
1236         * WebView/WebView.mm:
1237         (-[WebView _setOverrideBackingScaleFactor:]):
1238         (-[WebView _deviceScaleFactor]):
1239         * WebView/WebViewData.h:
1240         * WebView/WebViewPrivate.h:
1241
1242 2011-08-30  Aaron Colwell  <acolwell@chromium.org>
1243
1244         Add MediaSource API to HTMLMediaElement
1245         https://bugs.webkit.org/show_bug.cgi?id=64731
1246
1247         Reviewed by Eric Carlson.
1248
1249         * Configurations/FeatureDefines.xcconfig:
1250
1251 2011-08-29  Alexey Proskuryakov  <ap@apple.com>
1252
1253         DumpRenderTree should begin each test with an empty cookie store
1254         https://bugs.webkit.org/show_bug.cgi?id=63545
1255         <rdar://problem/5666907>
1256
1257         Reviewed by Darin Adler.
1258
1259         * WebView/WebPreferences.mm:
1260         (+[WebPreferences initialize]):
1261         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
1262         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
1263         * WebView/WebPreferencesPrivate.h:
1264         Exposed an SPI to use a private default session. It's separate from private browsing,
1265         because some tests enable the latter, and we don't want to mix them up.
1266         Also exposed an SPI to set cookie accept policy regardless of what session we are currently
1267         using.
1268
1269         * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated to use currentStorageSession()
1270         instead of privateBrowsingStorageSession().
1271
1272 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1273
1274         The unused ScrollView* argument can and should be removed from
1275         scrollRectIntoView.
1276         https://bugs.webkit.org/show_bug.cgi?id=67117
1277
1278         Reviewed by Darin Adler.
1279
1280         * WebCoreSupport/WebChromeClient.h:
1281         * WebCoreSupport/WebChromeClient.mm:
1282         (WebChromeClient::scrollRectIntoView):
1283
1284 2011-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
1285
1286         Unreviewed, rolling out r93987, r93992, r93995, r93998, and
1287         r93999.
1288         http://trac.webkit.org/changeset/93987
1289         http://trac.webkit.org/changeset/93992
1290         http://trac.webkit.org/changeset/93995
1291         http://trac.webkit.org/changeset/93998
1292         http://trac.webkit.org/changeset/93999
1293         https://bugs.webkit.org/show_bug.cgi?id=67147
1294
1295         Many failing tests (Requested by ap on #webkit).
1296
1297         * WebView/WebPreferences.mm:
1298         (+[WebPreferences initialize]):
1299         * WebView/WebPreferencesPrivate.h:
1300
1301 2011-08-26  Alexey Proskuryakov  <ap@apple.com>
1302
1303         DumpRenderTree should begin each test with an empty cookie store
1304         https://bugs.webkit.org/show_bug.cgi?id=63545
1305         <rdar://problem/5666907>
1306
1307         Reviewed by Darin Adler.
1308
1309         * WebView/WebPreferences.mm:
1310         (+[WebPreferences initialize]):
1311         (+[WebPreferences _usePrivateSessionForNetworkLoading]):
1312         * WebView/WebPreferencesPrivate.h:
1313         Exposed an SPI to use a private default session. It's separate from private browsing,
1314         because some tests enable the latter, and we don't want to mix them up.
1315
1316 2011-08-23  Chris Marrin  <cmarrin@apple.com>
1317
1318         [mac] requestAnimationFrame support for mac port
1319         https://bugs.webkit.org/show_bug.cgi?id=59146
1320
1321         Reviewed by Simon Fraser.
1322
1323         Implement requestAnimationFrame for WebKit. Add a
1324         CFRunLoopObserver to WebView, which runs just before
1325         the syncCompositingState RLO and calls into the 
1326         ScriptedAnimationController if scheduleAnimation() has
1327         been called.
1328
1329         * Configurations/FeatureDefines.xcconfig:
1330         * WebCoreSupport/WebChromeClient.h:
1331         * WebCoreSupport/WebChromeClient.mm:
1332         (WebChromeClient::scheduleAnimation):
1333         * WebView/WebView.mm:
1334         (-[WebView _close]):
1335         (-[WebView _unscheduleAnimation]):
1336         (-[WebView _scheduleCompositingLayerSync]):
1337         (requestAnimationFrameRunLoopObserverCallback):
1338         (-[WebView _scheduleAnimation]):
1339         * WebView/WebViewData.h:
1340         * WebView/WebViewInternal.h:
1341
1342 2011-08-24  Alexey Proskuryakov  <ap@apple.com>
1343
1344         Plug-in tests are flaky on Mac
1345         https://bugs.webkit.org/show_bug.cgi?id=66822
1346
1347         Reviewed by Anders Carlsson.
1348
1349         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1350         (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript):
1351         Protect objects that can be removed by a script.
1352
1353         * WebView/WebFrame.mm:
1354         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Ditto.
1355         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): Ditto.
1356         Also fixed some nonsense code.
1357
1358 2011-08-23  Mark Hahnenberg  <mhahnenberg@apple.com>
1359
1360         Add checks to ensure allocation does not take place during initialization of GC-managed objects
1361         https://bugs.webkit.org/show_bug.cgi?id=65288
1362
1363         Reviewed by Darin Adler.
1364
1365         Adding the new validation functionality.  In its current state, it will performs checks, 
1366         but they don't fail unless you do allocation in the arguments to the parent constructor in the 
1367         initialization list of a class.  The allocateCell() method turns on the global flag disallowing any new 
1368         allocations, and the constructorBody() method in JSCell turns it off.  This way, allocation is still 
1369         allowed in constructor bodies while other refactoring efforts continue.
1370
1371         * Plugins/Hosted/ProxyRuntimeObject.h:
1372         (WebKit::ProxyRuntimeObject::create):
1373         * Plugins/Hosted/ProxyRuntimeObject.mm:
1374         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
1375
1376 2011-08-18  Beth Dakin  <bdakin@apple.com>
1377
1378         Reviewed by Sam Weinig.
1379
1380         https://bugs.webkit.org/show_bug.cgi?id=66495
1381         Lion-specific scroller SPIs can use forward declaration instead of 
1382         WebKitSystemInterface
1383
1384         * WebCoreSupport/WebSystemInterface.mm:
1385         (InitWebCoreSystemInterface):
1386
1387 2011-08-18  Anders Carlsson  <andersca@apple.com>
1388
1389         More C++0x libc++ build fixes
1390         https://bugs.webkit.org/show_bug.cgi?id=66476
1391
1392         Reviewed by Adam Roben.
1393
1394         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1395         (WKPCSetException):
1396         Use a WTF String here instead of an STL string.
1397
1398         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1399         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
1400         std::make_pair now takes rvalue references, so get rid of the template arguments and let
1401         the compiler deduce them instead.
1402
1403 2011-08-18  Adam Roben  <aroben@apple.com>
1404
1405         Update the device scale factor when the WebView's window changes
1406
1407         Fixes <http://webkit.org/b/66412> <rdar://problem/9971958> WebKit doesn't react when a
1408         WebView is moved between windows with different backing scale factors
1409
1410         Reviewed by Anders Carlsson.
1411
1412         * WebView/WebView.mm:
1413         (-[WebView viewDidMoveToWindow]): Call setDeviceScaleFactor because our new window (or no
1414         window at all) might have a different backing scale factor than the previous one.
1415         (-[WebView _deviceScaleFactor]): Moved to the WebFileInternal category.
1416
1417 2011-08-17  Adam Roben  <aroben@apple.com>
1418
1419         Make WebCore keep track of the current device scale factor
1420
1421         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
1422         device scale factor
1423
1424         Reviewed by Darin Adler.
1425
1426         * WebCoreSupport/WebChromeClient.h:
1427         * WebCoreSupport/WebChromeClient.mm:
1428         Moved code to calculate the device scale factor from here...
1429
1430         * WebView/WebView.mm:
1431         (-[WebView _deviceScaleFactor]):
1432         ...to here.
1433
1434         (-[WebView _windowDidChangeResolution:]): Now calls Page::setDeviceScaleFactor.
1435
1436 2011-08-17  Dan Bernstein  <mitz@apple.com>
1437
1438         Removed some code that is not needed when building for Leopard or later.
1439
1440         Reviewed by Anders Carlsson.
1441
1442         * WebCoreSupport/WebContextMenuClient.mm:
1443         (fixMenusToSendToOldClients): Removed check for Tiger Mail.
1444         * WebCoreSupport/WebFrameLoaderClient.mm:
1445         (WebFrameLoaderClient::objectContentType):
1446         * WebView/WebView.mm:
1447         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1448         (-[WebView _preferencesChanged:]):
1449
1450 2011-08-17  Dan Bernstein  <mitz@apple.com>
1451
1452         Eliminate the WebCGFloat compatibility definition that was needed for Tiger.
1453
1454         Rubber-stamped by Anders Carlsson.
1455
1456         * WebView/WebHTMLViewPrivate.h:
1457
1458 2011-08-17  Dan Bernstein  <mitz@apple.com>
1459
1460         Eliminate the WebNSInteger and WebNSUInteger compatibility definitions that were
1461         needed for Tiger.
1462
1463         Reviewed by Darin Adler.
1464
1465         * History/WebBackForwardList.h:
1466         * WebView/WebDocumentInternal.h:
1467         * WebView/WebHTMLRepresentation.h:
1468         * WebView/WebPreferences.h:
1469         * WebView/WebResourceLoadDelegate.h:
1470         * WebView/WebResourceLoadDelegatePrivate.h:
1471         * WebView/WebScriptDebugDelegate.h:
1472         * WebView/WebTextIterator.h:
1473         * WebView/WebUIDelegate.h:
1474         * WebView/WebView.h:
1475         * WebView/WebViewPrivate.h:
1476
1477 2011-08-15  Dmitry Titov  <dimich@chromium.org>
1478
1479         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
1480         https://bugs.webkit.org/show_bug.cgi?id=66165
1481
1482         Reviewed by Darin Fisher.
1483
1484         * WebCoreSupport/WebFrameLoaderClient.h:
1485         * WebCoreSupport/WebFrameLoaderClient.mm:
1486         (WebFrameLoaderClient::transferLoadingResourceFromPage):
1487
1488 2011-08-15  Mark Hahnenberg  <mhahnenberg@apple.com>
1489
1490         Refactor JS objects to allocate in static create methods rather than constructors
1491         https://bugs.webkit.org/show_bug.cgi?id=65347
1492
1493         Reviewed by Geoffrey Garen.
1494
1495         Removed all calls to deprecatedGetDOMObject from initialization lists as part of a 
1496         larger refactoring to get rid of all allocation during initialization.
1497
1498         * Plugins/Hosted/ProxyInstance.mm:
1499         (WebKit::ProxyRuntimeMethod::create):
1500         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
1501
1502 2011-08-15  Adam Roben  <aroben@apple.com>
1503
1504         Update pages' style and content scale when the window's backing scale factor changes
1505
1506         Unfortunately, I couldn't think of a way to test this in an automated fashion.
1507
1508         Fixes <http://webkit.org/b/66229> <rdar://problem/9906269> WebKit doesn't react to device
1509         scale factor changes
1510
1511         Reviewed by Simon Fraser.
1512
1513         * WebView/WebView.mm:
1514         (-[WebView addWindowObserversForWindow:]):
1515         (-[WebView removeWindowObservers]):
1516         Listen for the notification that tells us the window's backing scale has changed.
1517
1518         (-[WebView _windowDidChangeResolution:]): Tell the page about the change to the device scale
1519         factor so that, e.g., scale-factor-dependent media queries will be reevaluated.
1520
1521 2011-08-10  Adam Roben  <aroben@apple.com>
1522
1523         Clear up scale factor terminology
1524
1525         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
1526         software is running, and one that is per-Page and can be controlled via API calls. This
1527         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
1528         code use those names. It should introduce no behavior changes.
1529
1530         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
1531         device scale factor
1532
1533         Reviewed by Simon Fraser.
1534
1535         * Misc/WebNSControlExtras.m:
1536         (-[NSControl sizeToFitAndAdjustWindowHeight]): Updated this function to use more modern
1537         AppKit scale factor terminology. (This is unrelated to the rest of the patch.)
1538
1539         * WebCoreSupport/WebChromeClient.h:
1540         * WebCoreSupport/WebChromeClient.mm:
1541
1542 2011-08-13  Dan Bernstein  <mitz@apple.com>
1543
1544         Changed the value of WebKitShowsToolTipOverTruncatedTextPreferenceKey to match the naming everywhere else.
1545
1546         Reviewed by Joseph Pecoraro.
1547
1548         * WebView/WebPreferenceKeysPrivate.h:
1549
1550 2011-08-13  Sam Weinig  <sam@webkit.org>
1551
1552         Remove unused variables from WebView/WebFullScreenController.h
1553         https://bugs.webkit.org/show_bug.cgi?id=66194
1554
1555         Reviewed by Dan Bernstein.
1556
1557         * WebView/WebFullScreenController.h:
1558         Remove a few variables which were not used.
1559
1560 2011-08-12  Dan Bernstein  <mitz@apple.com>
1561
1562         Add an option to automatically show tooltips (with the full text) over truncated text
1563         https://bugs.webkit.org/show_bug.cgi?id=66178
1564
1565         Reviewed by Simon Fraser.
1566
1567         * WebView/WebPreferenceKeysPrivate.h: Defined a preference key.
1568         * WebView/WebPreferences.mm:
1569         (+[WebPreferences initialize]): Added a default value of NO for the
1570         ShowsToolTipOverTruncatedText preference.
1571         (-[WebPreferences showsToolTipOverTruncatedText]): Added this getter.
1572         (-[WebPreferences setShowsToolTipOverTruncatedText:]): Added this setter.
1573         * WebView/WebPreferencesPrivate.h:
1574         * WebView/WebView.mm:
1575         (-[WebView _preferencesChanged:]): Added call to Settings::setShowsToolTipOverTruncatedText().
1576
1577 2011-08-12  Sam Weinig  <sam@webkit.org>
1578
1579         Use __builtin_trap() for CRASH when building with clang
1580         https://bugs.webkit.org/show_bug.cgi?id=66152
1581
1582         Reviewed by Anders Carlsson.
1583
1584         * Plugins/WebBaseNetscapePluginView.mm:
1585         (-[WebBaseNetscapePluginView setAttributeKeys:andValues:]):
1586         (-[WebBaseNetscapePluginView handleMouseMoved:]):
1587         (-[WebBaseNetscapePluginView handleMouseEntered:]):
1588         (-[WebBaseNetscapePluginView handleMouseExited:]):
1589         (-[WebBaseNetscapePluginView focusChanged]):
1590         (-[WebBaseNetscapePluginView windowFocusChanged:]):
1591         (-[WebBaseNetscapePluginView createPlugin]):
1592         (-[WebBaseNetscapePluginView loadStream]):
1593         (-[WebBaseNetscapePluginView shouldStop]):
1594         (-[WebBaseNetscapePluginView destroyPlugin]):
1595         (-[WebBaseNetscapePluginView updateAndSetWindow]):
1596         (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
1597         (-[WebBaseNetscapePluginView pluginLayer]):
1598         (-[WebBaseNetscapePluginView getFormValue:]):
1599         Remove the ASSERT_NOT_REACHED from the base class methods. They were not
1600         adding much value and were getting in the way of making the static analyzer
1601         work. A better way to do this would be to use a formal protocol.
1602
1603 2011-08-12  Mark Rowe  <mrowe@apple.com>
1604
1605         Be more forward-looking in the choice of compiler.
1606
1607         Rubber-stamped by Jon Honeycutt.
1608
1609         * Configurations/CompilerVersion.xcconfig:
1610
1611 2011-08-10  David Hyatt  <hyatt@apple.com>
1612
1613         https://bugs.webkit.org/show_bug.cgi?id=66004
1614
1615         Removing the CSS Regions and Exclusions ifdefs.
1616
1617         Reviewed by Adam Roben.
1618
1619         * Configurations/FeatureDefines.xcconfig:
1620
1621 2011-08-09  Mark Hahnenberg  <mhahnenberg@apple.com>
1622
1623         Add ParentClass typedef in all JSC classes
1624         https://bugs.webkit.org/show_bug.cgi?id=65731
1625
1626         Reviewed by Oliver Hunt.
1627
1628         Just added the Base typedefs in all the classes that are a subclass of JSCell 
1629         to point at their parent classes.  This is a change to support future changes to the way
1630         constructors and destructors are implemented in JS objects, among other things.
1631
1632         * Plugins/Hosted/ProxyInstance.mm:
1633         * Plugins/Hosted/ProxyRuntimeObject.h:
1634
1635 2011-08-08  Chris Marrin  <cmarrin@apple.com>
1636
1637         Logic to compute visible display rect in GraphicsLayerCA::syncCompositingState
1638         https://bugs.webkit.org/show_bug.cgi?id=65708
1639
1640         Supply initial display rects for the full-screen case
1641
1642         Reviewed by Simon Fraser.
1643
1644         * WebView/WebFullScreenController.mm:
1645         (-[WebFullScreenController enterFullscreen:]):
1646         (-[WebFullScreenController exitFullscreen]):
1647
1648 2011-08-06  Joseph Pecoraro  <joepeck@webkit.org>
1649
1650         Potential Leaks - RetainPtr<> over retaining Create'd objects
1651         https://bugs.webkit.org/show_bug.cgi?id=65806
1652
1653         Reviewed by Darin Adler.
1654
1655         Fix a possible leak by adopting an allocation instead of retaining it.
1656
1657         * WebView/WebView.mm:
1658         (-[WebView previousValidKeyView]):
1659
1660 2011-08-05  Anders Carlsson  <andersca@apple.com>
1661
1662         Remove PluginHalter
1663         https://bugs.webkit.org/show_bug.cgi?id=65729
1664
1665         Reviewed by Darin Adler.
1666
1667         Remove plug-in halter and associated classes.
1668
1669         * Plugins/WebBaseNetscapePluginView.h:
1670         * Plugins/WebBaseNetscapePluginView.mm:
1671         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
1672         (-[WebBaseNetscapePluginView start]):
1673         (-[WebBaseNetscapePluginView stop]):
1674         * WebCoreSupport/WebPluginHalterClient.h: Removed.
1675         * WebCoreSupport/WebPluginHalterClient.mm: Removed.
1676         * WebView/WebPreferenceKeysPrivate.h:
1677         * WebView/WebPreferences.mm:
1678         (+[WebPreferences initialize]):
1679         * WebView/WebPreferencesPrivate.h:
1680         * WebView/WebView.mm:
1681         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1682         (-[WebView _preferencesChanged:]):
1683         * WebView/WebViewPrivate.h:
1684
1685 2011-08-04  Mark Rowe  <mrowe@apple.com>
1686
1687         Future-proof Xcode configuration settings.
1688
1689         * Configurations/Base.xcconfig:
1690         * Configurations/DebugRelease.xcconfig:
1691         * Configurations/Version.xcconfig:
1692         * Configurations/WebKit.xcconfig:
1693
1694 2011-08-03  Kent Tamura  <tkent@chromium.org>
1695
1696         Fix incorrect checks for HTMLMediaElement
1697         https://bugs.webkit.org/show_bug.cgi?id=65590
1698
1699         Reviewed by Dimitri Glazkov.
1700
1701         <video> and <audio> can be an HTMLElement instance instead of
1702         HTMLMediaElement if MediaPlayer::isAvailable() returns false or
1703         the media feature is disabled at runtime.
1704
1705         * WebView/WebFullScreenController.mm:
1706         (-[WebFullScreenController _isAnyMoviePlaying]):
1707
1708 2011-08-03  Mark Rowe  <mrowe@apple.com>
1709
1710         Bring some order to FeatureDefines.xcconfig to make it easier to follow.
1711
1712         Reviewed by Sam Weinig.
1713
1714         * Configurations/FeatureDefines.xcconfig:
1715
1716 2011-08-03  Mark Rowe  <mrowe@apple.com>
1717
1718         Clean up FeatureDefines.xcconfig to remove some unnecessary conditional settings
1719
1720         Reviewed by Dave Kilzer.
1721
1722         * Configurations/FeatureDefines.xcconfig:
1723
1724 2011-08-03  Joseph Pecoraro  <joepeck@webkit.org>
1725
1726         Web Inspector: Remove InspectorFrontendHost load/saveSessionSetting
1727         https://bugs.webkit.org/show_bug.cgi?id=65582
1728
1729         Reviewed by Pavel Feldman.
1730
1731         * WebCoreSupport/WebInspectorClient.h:
1732         * WebCoreSupport/WebInspectorClient.mm:
1733
1734 2011-08-03  Pavel Feldman  <pfeldman@google.com>
1735
1736         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
1737         https://bugs.webkit.org/show_bug.cgi?id=65510
1738
1739         Reviewed by Yury Semikhatsky.
1740
1741         * WebInspector/WebNodeHighlightView.mm:
1742         (-[WebNodeHighlightView drawRect:]):
1743
1744 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
1745
1746         Web Inspector: remove Node parameter from the InspectorClient::highlight
1747         https://bugs.webkit.org/show_bug.cgi?id=65549
1748
1749         Reviewed by Yury Semikhatsky.
1750
1751         * WebCoreSupport/WebInspectorClient.h:
1752         * WebCoreSupport/WebInspectorClient.mm:
1753         (WebInspectorClient::highlight):
1754         * WebInspector/WebNodeHighlighter.h:
1755         * WebInspector/WebNodeHighlighter.mm:
1756         (-[WebNodeHighlighter highlight]):
1757
1758 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
1759
1760         Remove inclusion of MainThread.h from Threading.h
1761         https://bugs.webkit.org/show_bug.cgi?id=65081
1762
1763         Reviewed by Darin Adler.
1764
1765         Add missing include statements for MainThread.
1766
1767         * Carbon/CarbonWindowAdapter.mm:
1768         * History/WebBackForwardList.mm:
1769         * History/WebHistoryItem.mm:
1770         * Misc/WebElementDictionary.mm:
1771         * Misc/WebIconDatabase.mm:
1772         * Misc/WebLocalizableStrings.mm:
1773         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1774         * Plugins/WebBaseNetscapePluginView.mm:
1775         * Plugins/WebBasePluginPackage.mm:
1776         * Plugins/WebNetscapePluginView.mm:
1777         * WebCoreSupport/WebEditorClient.mm:
1778         * WebCoreSupport/WebFrameLoaderClient.mm:
1779         * WebView/WebArchive.mm:
1780         * WebView/WebDataSource.mm:
1781         * WebView/WebHTMLView.mm:
1782         * WebView/WebResource.mm:
1783         * WebView/WebTextIterator.mm:
1784         * WebView/WebView.mm:
1785         * WebView/WebViewData.mm:
1786
1787 2011-07-28  Dan Bernstein  <mitz@apple.com>
1788
1789         <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds
1790
1791         Reviewed by Darin Adler.
1792
1793         * WebCoreSupport/WebSystemInterface.mm:
1794         (InitWebCoreSystemInterface): Initialize wkGetVerticalGlyphsForCharacters.
1795
1796 2011-07-28  Brady Eidson  <beidson@apple.com>
1797
1798         <rdar://problem/9714337> and https://bugs.webkit.org/show_bug.cgi?id=65306
1799         WebKitInitializeStorageIfNecessary() can take awhile performing i/o, isn't necessary for every WebView
1800
1801         Reviewed by Maciej Stachowiak.
1802
1803         * Storage/WebStorageManager.mm:
1804         (WebKitInitializeStorageIfNecessary): Pass the client along in initializeTracker().
1805
1806 2011-07-27  Mark Hahnenberg  <mhahnenberg@apple.com>
1807
1808         Remove operator new from JSCell
1809         https://bugs.webkit.org/show_bug.cgi?id=64999
1810
1811         Reviewed by Oliver Hunt.
1812
1813         Removed the implementation of operator new in JSCell, so any further uses
1814         will not successfully link.  Also removed any remaining uses of operator new.
1815
1816         * Plugins/Hosted/ProxyInstance.mm:
1817         (WebKit::ProxyInstance::newRuntimeObject):
1818         (WebKit::ProxyRuntimeMethod::create):
1819         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
1820         (WebKit::ProxyInstance::getMethod):
1821         * Plugins/Hosted/ProxyRuntimeObject.h:
1822         (WebKit::ProxyRuntimeObject::create):
1823         * WebView/WebScriptDebugDelegate.mm:
1824         (-[WebScriptCallFrame scopeChain]):
1825
1826 2011-07-26  Dan Bernstein  <mitz@apple.com>
1827
1828         <rdar://problem/9842889> Add a generic pictograph font family
1829         https://bugs.webkit.org/show_bug.cgi?id=65197
1830
1831         Reviewed by Anders Carlsson.
1832
1833         * WebView/WebPreferenceKeysPrivate.h: Added WebKitPictographFontPreferenceKey.
1834         * WebView/WebPreferences.mm:
1835         (+[WebPreferences initialize]): Set the default pictograph font family to
1836         "Apple Color Emoji".
1837         (-[WebPreferences pictographFontFamily]): Added this getter.
1838         (-[WebPreferences setPictographFontFamily:]): Added this setter.
1839         * WebView/WebPreferencesPrivate.h:
1840         * WebView/WebView.mm:
1841         (-[WebView _preferencesChanged:]): Pass the preference through to WebCore.
1842
1843 2011-07-25  Ian Henderson  <ianh@apple.com>
1844
1845         WebFrame should have a method to determine its visual emptiness
1846         https://bugs.webkit.org/show_bug.cgi?id=64223
1847
1848         Reviewed by Dan Bernstein.
1849
1850         * WebView/WebFrame.mm:
1851         (-[WebFrame _isVisuallyNonEmpty]): Pipe the isVisuallyNonEmpty method
1852         through WebKit.
1853         * WebView/WebFramePrivate.h:
1854
1855 2011-07-19  Leo Yang  <leoyang.webkit@gmail.com>
1856
1857         SVG: Missing implementation of <altGlyphDef>, <altGlyphItem> and <glyphRef>
1858         https://bugs.webkit.org/show_bug.cgi?id=60850
1859
1860         Reviewed by Nikolas Zimmermann.
1861
1862         SVG spec: http://www.w3.org/TR/SVG/text.html#AlternateGlyphDefinitions.
1863         This patch is to implement SVG <altGlyphDef>, <altGlyphItem> and <glyphRef>
1864         elements for alternative glyph features.
1865
1866         * MigrateHeaders.make:
1867
1868 2011-07-18  Andy Estes  <aestes@apple.com>
1869
1870         Solar Walk app-specific hack accidentally strips stylesheets from the document.
1871         https://bugs.webkit.org/show_bug.cgi?id=64777
1872
1873         Reviewed by Adam Barth.
1874         
1875         Solar Walk uses a self-closed title tag in its documents ("<title />").
1876         The HTML5 parser does not recognize this as a valid self-closing tag,
1877         so it treats the remainder of the document as title text.
1878         
1879         We work around this in WebKit by injecting a script that calls
1880         document.write() on the contents of document.title, thereby restoring
1881         the contents of the document. Unfortunately this overwrote several
1882         <style> tags that existed before the <title>, thereby causing the
1883         document to not have the intended styling.
1884         
1885         Fix this by having the injected script concatenate document.title to
1886         the document instead of overwriting it during document.write(). We can
1887         also take the opportunity to remove document.title since it does not
1888         contain useful information.
1889
1890         * Misc/SolarWalkQuirksUserScript.js:
1891
1892 2011-07-18  Dean Jackson  <dino@apple.com>
1893
1894         https://bugs.webkit.org/show_bug.cgi?id=64742
1895         Expose WebPreferences for media playback requiring user gestures and inline playback
1896
1897         Reviewed by Simon Fraser.
1898
1899         Two new WebPreferences: MediaPlaybackRequiresUserGesture and
1900         MediaPlaybackAllowsInline.
1901
1902         * WebView/WebPreferenceKeysPrivate.h:
1903         * WebView/WebPreferences.mm:
1904         (+[WebPreferences initialize]):
1905         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
1906         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
1907         (-[WebPreferences mediaPlaybackAllowsInline]):
1908         (-[WebPreferences setMediaPlaybackAllowsInline:]):
1909         * WebView/WebPreferencesPrivate.h:
1910         * WebView/WebView.mm:
1911         (-[WebView _preferencesChanged:]):
1912
1913 2011-07-18  Pratik Solanki  <psolanki@apple.com>
1914
1915         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
1916         Get webkit to compile with USE(CFNETWORK) enabled on Mac
1917
1918         Reviewed by David Kilzer.
1919
1920         Create an NSURLDownload from the CF objects that we have.
1921
1922         * Misc/WebDownload.mm:
1923         (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]):
1924         * Misc/WebDownloadInternal.h:
1925         * WebCoreSupport/WebFrameLoaderClient.mm:
1926         (WebFrameLoaderClient::download):
1927
1928 2011-07-15  Pratik Solanki  <psolanki@apple.com>
1929
1930         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
1931         Get webkit to compile with USE(CFNETWORK) enabled on Mac
1932
1933         Reviewed by David Kilzer.
1934
1935         New WebKitSystemInterface functions for CFNetwork-based loader.
1936
1937         * WebCoreSupport/WebSystemInterface.mm:
1938         (InitWebCoreSystemInterface):
1939
1940 2011-07-15  Tim Horton  <timothy_horton@apple.com>
1941
1942         Overlay scrollbars in overflow areas no longer pulse when revealed
1943         https://bugs.webkit.org/show_bug.cgi?id=64606
1944         <rdar://problem/9390674>
1945
1946         Reviewed by Simon Fraser.
1947
1948         Ensure that the state of the scrollbar implementation is kept in sync
1949         with WebCore's internal representation. Previously, we synchronized them
1950         at paint time, causing pulsing to be skipped due to the scrollbars being
1951         disabled.
1952
1953         * WebCoreSupport/WebSystemInterface.mm:
1954         (InitWebCoreSystemInterface):
1955
1956 2011-07-15  Andy Estes  <aestes@apple.com>
1957
1958         Rename applicationIsSolarWalk() to applicationIsSolarWalkMac().
1959         https://bugs.webkit.org/show_bug.cgi?id=64641
1960
1961         Reviewed by Brian Weinstein.
1962
1963         * WebView/WebView.mm:
1964         (needsSolarWalkQuirksScript): Call applicationIsSolarWalkMac().
1965
1966 2011-07-15  Dan Bernstein  <mitz@apple.com>
1967
1968         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
1969         https://bugs.webkit.org/show_bug.cgi?id=64615
1970
1971         Reviewed by Anders Carlsson.
1972
1973         * WebCoreSupport/WebChromeClient.h:
1974         * WebCoreSupport/WebChromeClient.mm:
1975         (WebChromeClient::setCursorHiddenUntilMouseMoves): Added. Calls
1976         +[NSCursor setHiddenUntilMouseMoves:].
1977
1978 2011-07-14  Gavin Barraclough  <barraclough@apple.com>
1979
1980         https://bugs.webkit.org/show_bug.cgi?id=64250
1981         Global strict mode function leaking global object as "this".
1982
1983         Reviewed by Oliver Hunt.
1984
1985         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1986         (WebKit::NetscapePluginInstanceProxy::invoke):
1987         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1988             - Change call to pass DOM Window shell, instead of the global varaible object.
1989
1990 2011-07-13  Joseph Pecoraro  <joepeck@webkit.org>
1991
1992         Improve names of some ApplicationCacheStorage accessor methods
1993         https://bugs.webkit.org/show_bug.cgi?id=64433
1994
1995         Reviewed by Alexey Proskuryakov.
1996
1997         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
1998         (-[WebApplicationCacheQuotaManager usage]):
1999         (-[WebApplicationCacheQuotaManager quota]):
2000         Renamed methods.
2001
2002 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
2003
2004         ApplicationCache update should not immediately fail when reaching per-origin quota
2005         https://bugs.webkit.org/show_bug.cgi?id=64177
2006
2007         Reviewed by Alexey Proskuryakov.
2008
2009         * WebView/WebUIDelegatePrivate.h:
2010         * DefaultDelegates/WebDefaultUIDelegate.m:
2011         (-[WebDefaultUIDelegate webView:exceededApplicationCacheOriginQuotaForSecurityOrigin:spaceNeeded:]):
2012         Update the delegate to include a space needed parameter.
2013
2014         * WebCoreSupport/WebChromeClient.h:
2015         * WebCoreSupport/WebChromeClient.mm:
2016         (WebChromeClient::reachedApplicationCacheOriginQuota):
2017         Call the delegate with the new space needed information.
2018
2019 2011-07-12  Adam Roben  <aroben@apple.com>
2020
2021         Delete some redundant code in WebHTMLView
2022
2023         This code had no user-visible effect, as we were just duplicating work that AppKit would do
2024         for us at a slightly different time.
2025
2026         Fixes <http://webkit.org/b/64390> WebHTMLView sets its root layer's transform unnecessarily
2027
2028         Reviewed by Simon Fraser.
2029
2030         * WebView/WebHTMLView.mm:
2031         (-[WebHTMLView viewDidMoveToWindow]):
2032         (-[WebHTMLView attachRootLayer:]):
2033         Don't bother setting the root layer's transform to account for the scale factor. AppKit
2034         takes care of this for us nowadays.
2035
2036 2011-07-10  Kenichi Ishibashi  <bashi@chromium.org>
2037
2038         Let plugins participate in form submission
2039         https://bugs.webkit.org/show_bug.cgi?id=13061
2040
2041         Adds methods to get form value from NPAPI plugins.
2042
2043         Reviewed by Anders Carlsson.
2044
2045         * Plugins/Hosted/WebHostedNetscapePluginView.h:
2046         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2047         (-[WebHostedNetscapePluginView getFormValue:]): Added.
2048         * Plugins/WebBaseNetscapePluginView.h:
2049         * Plugins/WebBaseNetscapePluginView.mm:
2050         (-[WebBaseNetscapePluginView getFormValue:]): Added.
2051         * Plugins/WebNetscapePluginPackage.h:
2052         * Plugins/WebNetscapePluginPackage.mm:
2053         (-[WebNetscapePluginPackage browserFuncs]): Added.
2054         * Plugins/WebNetscapePluginView.h:
2055         * Plugins/WebNetscapePluginView.mm:
2056         (-[WebNetscapePluginView getFormValue:]): Added.
2057         * WebCoreSupport/WebFrameLoaderClient.mm:
2058         (NetscapePluginWidget::getFormValue): Added.
2059
2060 2011-07-04  Dan Bernstein  <mitz@apple.com>
2061
2062         Moved handling of frame size changes into its own method.
2063
2064         Reviewed by Oliver Hunt.
2065
2066         * WebView/WebFrameView.mm:
2067         (-[WebFrameView _frameSizeChanged]): Added. Moved code here...
2068         (-[WebFrameView setFrameSize:]): ...from here.
2069         * WebView/WebFrameViewInternal.h:
2070
2071 2011-07-01  Adele Peterson  <adele@apple.com>
2072
2073         Reviewed by Darin Adler.
2074
2075         WebKit part of fix for https://bugs.webkit.org/show_bug.cgi?id=63851
2076         <rdar://problem/8981062> Crash when loading a document in an editable WebView that has a subframe with an unstyled body
2077
2078         * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
2079         Only call applyEditingStyleToBodyElement for the main frame.  There's no need to apply break-word, 
2080         space, and after-white-space properties to subframes in the editable document.
2081
2082 2011-07-01  Andy Estes  <aestes@apple.com>
2083
2084         Reviewed by Mark Rowe.
2085
2086         Simplify MailQuirksUserScript.js
2087         https://bugs.webkit.org/show_bug.cgi?id=63800
2088         
2089         MailQuirksUserScript.js is injected into WebViews in Mail.app on
2090         Leopard to resolve an incompatibility between it and the HTML5 parser.
2091         It did so by taking all nodes in the document between <html> and <body>
2092         and moving them to be children of <body>. This maintains Mail.app's
2093         assumption that document.firstChild.firstChild == document.body.
2094         
2095         While this script fixed a specific issue with the Signature panel in
2096         Mail.app, it caused regressions in other WebViews. Since the issue with
2097         the Signature panel is with the empty <head> node implicitly created by
2098         the parser, we can simplify this script by removing this implicit
2099         <head> in the case it has no attributes and no children. This fixes the
2100         Signature panel without affecting other WebViews that have non-trivial
2101         <head> nodes.
2102
2103         * Misc/MailQuirksUserScript.js: If <head> exists but has no attributes
2104         and no children, remove it.
2105
2106 2011-06-30  Dan Bernstein  <mitz@apple.com>
2107
2108         Reviewed by Adele Peterson.
2109
2110         Add +[WebView _allowsRoundingHacks]
2111         https://bugs.webkit.org/show_bug.cgi?id=63734
2112
2113         * WebView/WebView.mm:
2114         (+[WebView _allowsRoundingHacks]): Added this accessor.
2115         * WebView/WebViewPrivate.h:
2116
2117 2011-06-29  Darin Adler  <darin@apple.com>
2118
2119         Reviewed by Dan Bernstein.
2120
2121         [Mac] Use system cursors instead of custom bitmaps where possible
2122         https://bugs.webkit.org/show_bug.cgi?id=63679
2123
2124         * WebCoreSupport/WebSystemInterface.mm:
2125         (InitWebCoreSystemInterface): Added WKCursor.
2126
2127 2011-06-28  Ilya Sherman  <isherman@chromium.org>
2128
2129         Reviewed by Adam Barth.
2130
2131         form.autocomplete="off" does not work
2132         https://bugs.webkit.org/show_bug.cgi?id=35823
2133
2134         * WebView/WebHTMLRepresentation.mm:
2135         (-[WebHTMLRepresentation elementDoesAutoComplete:]): Update callsite.
2136
2137 2011-06-26  Mark Rowe  <mrowe@apple.com>
2138
2139         Reviewed by Dan Bernstein.
2140
2141         Use a separate file name for Lion's WebKitSystemInterface.
2142
2143         * Configurations/DebugRelease.xcconfig:
2144
2145 2011-06-24  Dan Bernstein  <mitz@apple.com>
2146
2147         Reviewed by Anders Carlsson.
2148
2149         Add an option to enable legacy rounding hacks
2150         https://bugs.webkit.org/show_bug.cgi?id=63363
2151
2152         * Misc/WebKitNSStringExtras.mm:
2153         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2154         Disabled rounding hacks.
2155         (-[NSString _web_widthWithFont:]): Ditto.
2156         * WebView/WebView.mm:
2157         (+[WebView _setAllowsRoundingHacks:]): Added this setter.
2158         * WebView/WebViewPrivate.h:
2159
2160 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
2161
2162         Reviewed by Dimitri Glazkov.
2163
2164         Convert shadow DOM-related tests to use window.internals
2165         https://bugs.webkit.org/show_bug.cgi?id=61671
2166
2167         Remove shadow DOM-related methods from Mac API. These are not
2168         required any more.
2169
2170         * DOM/WebDOMOperations.mm:
2171         * DOM/WebDOMOperationsPrivate.h:
2172
2173 2011-06-24  Yuta Kitamura  <yutak@chromium.org>
2174
2175         Reviewed by Adam Barth.
2176
2177         WebSocket: Add run-time flag for new HyBi protocol
2178         https://bugs.webkit.org/show_bug.cgi?id=60348
2179
2180         Make a new flag (Setting::m_useHixie76WebSocketProtocol)
2181         switchable from WebView and WebPreferences.
2182
2183         * WebView/WebPreferenceKeysPrivate.h:
2184         * WebView/WebPreferences.mm:
2185         (+[WebPreferences initialize]):
2186         (-[WebPreferences setHixie76WebSocketProtocolEnabled:]):
2187         (-[WebPreferences isHixie76WebSocketProtocolEnabled]):
2188         * WebView/WebPreferencesPrivate.h:
2189         * WebView/WebView.mm:
2190         (-[WebView _preferencesChanged:]):
2191
2192 2011-06-22  Sam Weinig  <sam@webkit.org>
2193
2194         Roll out r89469 (Add preference for setting the html parser depth limit)
2195
2196         The preference is not needed at this time, so there is no reason to expose it.
2197
2198         * WebView/WebPreferenceKeysPrivate.h:
2199         * WebView/WebPreferences.mm:
2200         (+[WebPreferences initialize]):
2201         * WebView/WebPreferencesPrivate.h:
2202         * WebView/WebView.mm:
2203         (-[WebView _preferencesChanged:]):
2204
2205 2011-06-22  Sam Weinig  <sam@webkit.org>
2206
2207         Reviewed by Adam Barth.
2208
2209         Add preference for setting the html parser depth limit
2210         https://bugs.webkit.org/show_bug.cgi?id=63163
2211
2212         * WebView/WebPreferenceKeysPrivate.h:
2213         * WebView/WebPreferences.mm:
2214         (+[WebPreferences initialize]):
2215         (-[WebPreferences setMaximumHTMLParserDOMTreeDepth:]):
2216         (-[WebPreferences maximumHTMLParserDOMTreeDepth]):
2217         * WebView/WebPreferencesPrivate.h:
2218         * WebView/WebView.mm:
2219         (-[WebView _preferencesChanged:]):
2220         Add private preference for setting the parser depth limit.
2221
2222 2011-06-22  Ryosuke Niwa  <rniwa@webkit.org>
2223
2224         Reviewed by Darin Adler.
2225
2226         Make instantiation of legacy editing position more explicit
2227         https://bugs.webkit.org/show_bug.cgi?id=63037
2228
2229         Create new positions since we can't create a legacy editing position outside of WebCore anymore.
2230
2231         * WebView/WebFrame.mm:
2232         (-[WebFrame _smartDeleteRangeForProposedRange:]): Calls createLegacyEditingPosition.
2233         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]): Ditto.
2234
2235 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
2236
2237         Reviewed by Kent Tamura.
2238
2239         FileChooser should be only created when we need to choose files.
2240         https://bugs.webkit.org/show_bug.cgi?id=63039
2241
2242         * WebCoreSupport/WebChromeClient.mm:
2243         (WebChromeClient::runOpenPanel): Changed to use settings.
2244
2245 2011-06-21  MORITA Hajime  <morrita@google.com>
2246
2247         Unreviewed, rolling out r89401 and r89403.
2248         http://trac.webkit.org/changeset/89401
2249         http://trac.webkit.org/changeset/89403
2250         https://bugs.webkit.org/show_bug.cgi?id=62970
2251
2252         Breaks mac build and mistakenly enables the spellcheck API
2253
2254         * Configurations/FeatureDefines.xcconfig:
2255
2256 2011-06-20  MORITA Hajime  <morrita@google.com>
2257
2258         Reviewed by Kent Tamura.
2259
2260         Spellcheck API should be build-able.
2261         https://bugs.webkit.org/show_bug.cgi?id=62970
2262
2263         No new tests, changing only build related files
2264
2265         * Configurations/FeatureDefines.xcconfig:
2266
2267 2011-06-21  Sheriff Bot  <webkit.review.bot@gmail.com>
2268
2269         Unreviewed, rolling out r89354.
2270         http://trac.webkit.org/changeset/89354
2271         https://bugs.webkit.org/show_bug.cgi?id=63099
2272
2273         Broke tests on Mac (Requested by rniwa on #webkit).
2274
2275         * WebCoreSupport/WebInspectorClient.mm:
2276         (-[WebInspectorWindowController destroyInspectorView:]):
2277         * WebInspector/WebInspector.mm:
2278         (-[WebInspector show:]):
2279         (-[WebInspector showConsole:]):
2280         (-[WebInspector isDebuggingJavaScript]):
2281         (-[WebInspector toggleDebuggingJavaScript:]):
2282         (-[WebInspector startDebuggingJavaScript:]):
2283         (-[WebInspector stopDebuggingJavaScript:]):
2284         (-[WebInspector isProfilingJavaScript]):
2285         (-[WebInspector toggleProfilingJavaScript:]):
2286         (-[WebInspector startProfilingJavaScript:]):
2287         (-[WebInspector stopProfilingJavaScript:]):
2288         (-[WebInspector isJavaScriptProfilingEnabled]):
2289         (-[WebInspector setJavaScriptProfilingEnabled:]):
2290         (-[WebInspector isTimelineProfilingEnabled]):
2291         (-[WebInspector setTimelineProfilingEnabled:]):
2292         (-[WebInspector setFrontend:]):
2293         (-[WebInspector showWindow:]):
2294         * WebInspector/WebInspectorFrontend.h:
2295         * WebInspector/WebInspectorFrontend.mm:
2296         * WebInspector/WebInspectorPrivate.h:
2297
2298 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
2299
2300         Reviewed by Yury Semikhatsky.
2301
2302         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
2303         https://bugs.webkit.org/show_bug.cgi?id=62985
2304
2305         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
2306         methods for plumbing the menu action handlers through the WebKit and WebCore.
2307         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
2308         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
2309         WebKit/win and WebKit2 to follow.
2310
2311         * WebCoreSupport/WebInspectorClient.mm:
2312         (-[WebInspectorWindowController destroyInspectorView:]):
2313         * WebInspector/WebInspector.mm:
2314         (-[WebInspector showWindow]):
2315         (-[WebInspector show:]):
2316         (-[WebInspector showConsole:]):
2317         (-[WebInspector isDebuggingJavaScript]):
2318         (-[WebInspector toggleDebuggingJavaScript:]):
2319         (-[WebInspector startDebuggingJavaScript:]):
2320         (-[WebInspector stopDebuggingJavaScript:]):
2321         (-[WebInspector isProfilingJavaScript]):
2322         (-[WebInspector toggleProfilingJavaScript:]):
2323         (-[WebInspector startProfilingJavaScript:]):
2324         (-[WebInspector stopProfilingJavaScript:]):
2325         (-[WebInspector isJavaScriptProfilingEnabled]):
2326         (-[WebInspector setJavaScriptProfilingEnabled:]):
2327         (-[WebInspector isTimelineProfilingEnabled]):
2328         (-[WebInspector setTimelineProfilingEnabled:]):
2329         (-[WebInspector setFrontend:]):
2330         (-[WebInspector releaseFrontend]):
2331         (-[WebInspector showWindow:]):
2332         * WebInspector/WebInspectorFrontend.h:
2333         * WebInspector/WebInspectorFrontend.mm:
2334         (-[WebInspectorFrontend isDebuggingEnabled]):
2335         (-[WebInspectorFrontend setDebuggingEnabled:]):
2336         (-[WebInspectorFrontend isProfilingJavaScript]):
2337         (-[WebInspectorFrontend startProfilingJavaScript]):
2338         (-[WebInspectorFrontend stopProfilingJavaScript]):
2339         (-[WebInspectorFrontend isJavaScriptProfilingEnabled]):
2340         (-[WebInspectorFrontend setJavaScriptProfilingEnabled:]):
2341         (-[WebInspectorFrontend isTimelineProfilingEnabled]):
2342         (-[WebInspectorFrontend setTimelineProfilingEnabled:]):
2343         * WebInspector/WebInspectorPrivate.h:
2344
2345 2011-06-01  Jer Noble  <jer.noble@apple.com>
2346
2347         Reviewed by Eric Carlson.
2348
2349         Move Full Screen Controllers into WebCore.
2350
2351         Remove dependency on QTKit from wekitExitFullscreen()
2352         https://bugs.webkit.org/show_bug.cgi?id=61843
2353
2354         WebVideoFullscreenController, WebVideoFullscreenHUDController, and WebWindowAnimation
2355         have been moved into WebCore.
2356
2357         * WebCoreSupport/WebSystemInterface.mm:
2358         (InitWebCoreSystemInterface): Add support for four WKSI functions in WCSI.
2359         * WebView/WebFullScreenController.mm: Remove unused #include.
2360         * WebView/WebView.mm: Change the include location of 
2361             WebVideoFullscreenController.h
2362
2363 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
2364
2365         Reviewed by Darin Adler.
2366
2367         Separate concerns of loading file icons and choosing files.
2368         https://bugs.webkit.org/show_bug.cgi?id=62931
2369
2370         * WebCoreSupport/WebChromeClient.h:
2371         * WebCoreSupport/WebChromeClient.mm:
2372         (WebChromeClient::loadIconForFiles): Renamed.
2373
2374 2011-06-18  Andrew Wellington  <andrew@webkit.org>
2375
2376         Reviewed by Alexey Proskuryakov.
2377
2378         https://bugs.webkit.org/show_bug.cgi?id=62843
2379         WebKit Mac API calls didReceiveAuthenticationChallenge instead of
2380         didCancelAuthenticationChallenge
2381
2382         * WebView/WebView.mm:
2383         (-[WebView _cacheResourceLoadDelegateImplementations]):
2384
2385 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2386
2387         Unreviewed, rolling out r89026.
2388         http://trac.webkit.org/changeset/89026
2389         https://bugs.webkit.org/show_bug.cgi?id=62804
2390
2391         These patches were likely correct.  I'll investigate the
2392         browser_test failures. (Requested by abarth on #webkit).
2393
2394         * WebView/WebVideoFullscreenHUDWindowController.mm:
2395         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
2396
2397 2011-06-16  Vitaly Repeshko  <vitalyr@chromium.org>
2398
2399         Unreviewed.
2400
2401         Revert Adam's user gesture patch series r89002, r89005, r89007, r89018
2402         https://bugs.webkit.org/show_bug.cgi?id=62796
2403
2404         The patches broke chromium browser tests.
2405
2406         * WebView/WebVideoFullscreenHUDWindowController.mm:
2407         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
2408
2409 2011-06-16  Adam Barth  <abarth@webkit.org>
2410
2411         Reviewed by Eric Seidel.
2412
2413         Remove HTMLVideoElement::processingUserGesture
2414         https://bugs.webkit.org/show_bug.cgi?id=62784
2415
2416         * WebView/WebVideoFullscreenHUDWindowController.mm:
2417         (-[WebVideoFullscreenHUDWindowController setPlaying:]):
2418
2419 2011-06-15  Adam Barth  <abarth@webkit.org>
2420
2421         Reviewed by Eric Seidel.
2422
2423         Remove ScriptController::setAllowPopupsFromPlugin
2424         https://bugs.webkit.org/show_bug.cgi?id=62706
2425
2426         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2427         (WebKit::NetscapePluginInstanceProxy::evaluate):
2428         * Plugins/WebNetscapePluginView.mm:
2429         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
2430
2431 2011-06-15  David Kilzer  <ddkilzer@apple.com>
2432
2433         <http://webkit.org/b/62745> Convert WebNSFileManagerExtras.m to Objective-C++
2434
2435         Reviewed by Joseph Pecoraro.
2436
2437         * Misc/WebNSFileManagerExtras.mm: Renamed from Source/WebKit/mac/Misc/WebNSFileManagerExtras.m.
2438         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
2439         Added static_cast<MetaDataInfo *>.
2440
2441 2011-06-14  Stephanie Lewis  <slewis@apple.com>
2442
2443         Rubber stamped by Oliver Hunt.
2444
2445         <rdar://problem/9511169>
2446         Update order files.
2447
2448         * WebKit.order:
2449
2450 2011-06-13  Kentaro Hara  <haraken@google.com>
2451
2452         Reviewed by Alexey Proskuryakov.
2453
2454         Add resizePageRectsKeepingRatio(), which expands/shrinks a page, keeping the ratio of the original page
2455         https://bugs.webkit.org/show_bug.cgi?id=61256
2456
2457         In order to prevent rounding error caused by expanding/shrinking a page
2458         using different calculation here and there, I added a common calculation
2459         method, resizePageRectsKeepingRatio(), which expands/shrinks a page,
2460         keeping the ratio of width and height of the original page.
2461         [WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]
2462         and [WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]
2463         use resizePageRectsKeepingRatio() to expand/shrink a page.
2464
2465         Test: printing/page-count-with-one-word.html
2466
2467         * WebView/WebHTMLView.mm:
2468         (-[WebHTMLView _web_setPrintingModeRecursive]):
2469         (-[WebHTMLView _web_clearPrintingModeRecursive]):
2470         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
2471         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumShrinkRatio:]):
2472         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
2473         (-[WebHTMLView _endPrintMode]):
2474         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
2475         (-[WebHTMLView _endScreenPaginationMode]):
2476         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumShrinkRatio:adjustingViewSize:]):
2477         (-[WebHTMLView layout]):
2478         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
2479         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
2480         (-[WebHTMLView setPageWidthForPrinting:]):
2481
2482 2011-06-13  Tony Chang  <tony@chromium.org>
2483
2484         Reviewed by Dimitri Glazkov.
2485
2486         rename ENABLE_NEW_FLEXBOX to ENABLE_CSS3_FLEXBOX
2487         https://bugs.webkit.org/show_bug.cgi?id=62578
2488
2489         * Configurations/FeatureDefines.xcconfig:
2490
2491 2011-06-13  Tony Chang  <tony@chromium.org>
2492
2493         Reviewed by Adam Barth.
2494
2495         rename ENABLE_FLEXBOX to ENABLE_NEW_FLEXBOX
2496         https://bugs.webkit.org/show_bug.cgi?id=62545
2497
2498         * Configurations/FeatureDefines.xcconfig:
2499
2500 2011-06-12  Adam Barth  <abarth@webkit.org>
2501
2502         Reviewed by Alexey Proskuryakov.
2503
2504         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
2505         https://bugs.webkit.org/show_bug.cgi?id=62516
2506
2507         * WebCoreSupport/WebFrameLoaderClient.h:
2508         * WebCoreSupport/WebFrameLoaderClient.mm:
2509         (WebFrameLoaderClient::interruptedForPolicyChangeError):
2510
2511 2011-06-12  Adam Barth  <abarth@webkit.org>
2512
2513         Reviewed by Eric Seidel.
2514
2515         Remove FrameLoader::isProcessingUserGesture
2516         https://bugs.webkit.org/show_bug.cgi?id=62519
2517
2518         * WebView/WebView.mm:
2519         (-[WebView _isProcessingUserGesture]):
2520
2521 2011-06-12  Adam Barth  <abarth@webkit.org>
2522
2523         Reviewed by Alexey Proskuryakov.
2524
2525         Remove trival "forward-to-client" member functions from FrameLoader
2526         https://bugs.webkit.org/show_bug.cgi?id=62510
2527
2528         * WebCoreSupport/WebFrameNetworkingContext.mm:
2529         (WebFrameNetworkingContext::blockedError):
2530
2531 2011-06-10  Tony Chang  <tony@chromium.org>
2532
2533         Reviewed by Ojan Vafai.
2534
2535         add a compile guard ENABLE(FLEXBOX)
2536         https://bugs.webkit.org/show_bug.cgi?id=62049
2537
2538         * Configurations/FeatureDefines.xcconfig:
2539
2540 2011-06-06  Michael Saboff  <msaboff@apple.com>
2541
2542         Reviewed by Geoffrey Garen.
2543
2544         Fonts returned by FontCache::getFontDataForCharacters() are never released
2545         https://bugs.webkit.org/show_bug.cgi?id=61875
2546
2547         This change allows fonts allocated as system fallback fonts to be
2548         released.  Previously, the reference counts for these fonts grew
2549         without bound.  This is implemented as an auto release class that wraps
2550         accesses to the cache for system fallback fonts. All such accesses are
2551         via the method FontCache::getFontDataForCharacters. The new class is
2552         called FontCachePurgePreventer. When such an object exists, it protects
2553         these fonts from deletion.
2554
2555         See more comments for this defect in Source/WebCore/ChangeLog.
2556
2557         * Misc/WebKitNSStringExtras.mm:
2558         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2559         (-[NSString _web_widthWithFont:]):
2560         Wrapped code accessing fallback fonts with local
2561         FontCachePurgePreventer in these methods.
2562
2563         * Misc/WebStringTruncator.mm:
2564         (+[WebStringTruncator centerTruncateString:toWidth:]):
2565         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
2566         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
2567         (+[WebStringTruncator widthOfString:font:]):
2568         Wrapped code accessing fallback fonts with local
2569         FontCachePurgePreventer in these methods.
2570
2571 2011-06-06  Peter Kasting  <pkasting@google.com>
2572
2573         Reviewed by Antonio Gomes.
2574
2575         Remove unnecessary args from scroll functions.
2576         https://bugs.webkit.org/show_bug.cgi?id=61648
2577
2578         * WebView/WebFrame.mm:
2579         (-[WebFrame _scrollDOMRangeToVisible:]):
2580
2581 2011-06-06  Alexandru Chiculita  <achicu@adobe.com>
2582
2583         Reviewed by Kent Tamura.
2584
2585         Add ENABLE_CSS_EXCLUSIONS support for build-webkit script
2586         https://bugs.webkit.org/show_bug.cgi?id=61628
2587
2588         * Configurations/FeatureDefines.xcconfig:
2589
2590 2011-06-06  Mihnea Ovidenie  <mihnea@adobe.com>
2591
2592         Reviewed by Kent Tamura.
2593
2594         Add ENABLE(CSS_REGIONS) guard for CSS Regions support
2595         https://bugs.webkit.org/show_bug.cgi?id=61631
2596
2597         * Configurations/FeatureDefines.xcconfig:
2598
2599 2011-06-02  Anders Carlsson  <andersca@apple.com>
2600
2601         Reviewed by Sam Weinig.
2602
2603         Need a way to install the memory pressure handler without initializing WebKit1
2604         https://bugs.webkit.org/show_bug.cgi?id=61975
2605
2606         Add a WebInstallMemoryPressureHandler function which will install the memory pressure handler.
2607         -[WebView WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:] will do this,
2608         but we'd like to be able to install a memory pressure handler without creating a WebView or even
2609         calling any WebView method since that will call +[WebView initialize].
2610
2611         * WebKit.exp:
2612         * WebView/WebView.mm:
2613         (WebInstallMemoryPressureHandler):
2614         * WebView/WebViewPrivate.h:
2615
2616 2011-05-27  Stephanie Lewis  <slewis@apple.com>
2617
2618         Unreviewed.
2619
2620         Fix a typo in the order_file flag.
2621
2622         * Configurations/Base.xcconfig:
2623
2624 2011-05-27  Stephanie Lewis  <slewis@apple.com>
2625
2626         Rubber Stamped by Adam Roben.
2627
2628         Update Order Files.  Use -order_file flag since it can order more of the binary.
2629
2630         * Configurations/Base.xcconfig:
2631         * WebKit.order:
2632
2633 2011-05-25  Stephanie Lewis  <slewis@apple.com>
2634
2635         Reviewed by Brady Eidson.
2636
2637         https://bugs.webkit.org/show_bug.cgi?id=61407
2638         part of <rdar://problem/8675177>
2639         Remove Quicklook pref.  Moving it enirely down into WebCore so it can
2640         be calculated only on reloads.
2641
2642         * WebView/WebPreferenceKeysPrivate.h:
2643         * WebView/WebPreferences.mm:
2644         (+[WebPreferences initialize]):
2645         * WebView/WebPreferencesPrivate.h:
2646         * WebView/WebView.mm:
2647         (-[WebView _preferencesChanged:]):
2648
2649 2011-05-24  Jer Noble  <jer.noble@apple.com>
2650
2651         Reviewed by Darin Adler.
2652
2653         Video fails to play on Vimeo
2654         https://bugs.webkit.org/show_bug.cgi?id=61403
2655
2656         * WebCoreSupport/WebSystemInterface.mm:
2657         (InitWebCoreSystemInterface): Added support for wkAVAssetResolvedURL and
2658             wkQTMovieResolvedURL.
2659
2660 2011-05-24  Keishi Hattori  <keishi@webkit.org>
2661
2662         Reviewed by Kent Tamura.
2663
2664         Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
2665         https://bugs.webkit.org/show_bug.cgi?id=61273
2666
2667         * Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.
2668
2669 2011-05-24  Adam Barth  <abarth@webkit.org>
2670
2671         Reviewed by Eric Seidel.
2672
2673         Add FIXME comments about removing FrameLoader::isProcessingUserGesture
2674         https://bugs.webkit.org/show_bug.cgi?id=61395
2675
2676         * WebView/WebView.mm:
2677         (-[WebView _isProcessingUserGesture]):
2678
2679 2011-05-24  Michael Saboff  <msaboff@apple.com>
2680
2681         Reviewed by Geoffrey Garen.
2682
2683         Improve handling in WebCore of low memory situations
2684         https://bugs.webkit.org/show_bug.cgi?id=61222
2685
2686         Added call to enable memory pressure handling.
2687
2688         * WebView/WebView.mm:
2689         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2690         * WebView/WebViewInternal.h:
2691
2692 2011-05-24  Jay Civelli  <jcivelli@chromium.org>
2693
2694         Rubberstamped by David Kilzer.
2695
2696         Updated some files that I forgot in my previous MHTML CL.
2697
2698         * Configurations/FeatureDefines.xcconfig:
2699
2700 2011-05-20  Jeremy Noble  <jer.noble@apple.com>
2701
2702         Reviewed by Simon Fraser.
2703
2704         Stack overflow in WebFullScreenController when built on Leopard and run on SnowLeopard.
2705         https://bugs.webkit.org/show_bug.cgi?id=61224
2706
2707         Remove the CATransaction(SnowLeopardConvenience) functions, and replace them with the Leopard
2708         versions of same.
2709
2710         * WebView/WebFullScreenController.mm:
2711         (-[WebFullScreenController windowDidEnterFullscreen:]):
2712         (-[WebFullScreenController enterFullscreen:]):
2713         (-[WebFullScreenController exitFullscreen]):
2714         (-[WebFullscreenWindow setRendererLayer:]):
2715
2716 2011-05-20  Andy Estes  <aestes@apple.com>
2717
2718         Reviewed by Darin Adler.
2719
2720         WebView loses firstResponder status when entering full-screen mode.
2721         https://bugs.webkit.org/show_bug.cgi?id=61153
2722
2723         * Misc/WebNSWindowExtras.h:
2724         * Misc/WebNSWindowExtras.m:
2725         (-[NSWindow makeResponder:firstResponderIfDescendantOfView:]): Add a
2726         convenience method to NSWindow that makes the given NSResponder first
2727         responder only if it is a descendant of the given view.
2728         * WebView/WebFullScreenController.mm:
2729         (-[WebFullScreenController windowDidEnterFullscreen:]): If the WebView
2730         was a descendant of the browser window's first responder when entering
2731         full-screen mode, set the full-screen window's first responder to that
2732         same NSResponder.
2733         (-[WebFullScreenController exitFullscreen]): Do the reverse of what is
2734         done in windowDidEnterFullscreen:.
2735
2736 2011-05-20  Enrica Casucci  <enrica@apple.com>
2737
2738         Reviewed by David Kilzer.
2739
2740         Add delegate methods about focus and blur to all elements.
2741         https://bugs.webkit.org/show_bug.cgi?id=61218
2742
2743         We want to have delegates for these events for all the elements, not only the form elements.
2744         The patch changes the name of the methods in a way that is not form element specific.
2745
2746         * WebCoreSupport/WebChromeClient.h:
2747         * WebCoreSupport/WebChromeClient.mm:
2748         (WebChromeClient::elementDidFocus):
2749         (WebChromeClient::elementDidBlur):
2750         * WebView/WebUIDelegatePrivate.h:
2751
2752 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
2753
2754         Reviewed by Sam Weinig.
2755
2756         numberOfActiveAnimations() can include animations from documents in the page cache
2757         https://bugs.webkit.org/show_bug.cgi?id=53641
2758
2759         Pass the Frame's document as the one to count animations on.
2760
2761         * WebView/WebFrame.mm:
2762         (-[WebFrame _numberOfActiveAnimations]):
2763
2764 2011-05-17  Timothy Hatcher  <timothy@apple.com>
2765
2766         Update the the context menu to reflect the system search provider on Mac.
2767
2768         <rdar://problem/9198419>
2769
2770         Reviewed by Sam Weinig.
2771
2772         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2773         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): Use wkCopyDefaultSearchProviderDisplayName to
2774         create the web search context menu title.
2775         * WebCoreSupport/WebSystemInterface.mm:
2776         (InitWebCoreSystemInterface): Added CopyDefaultSearchProviderDisplayName.
2777
2778 2011-05-16  Emil A Eklund  <eae@chromium.org>
2779
2780         Reviewed by Eric Seidel.
2781
2782         Replace docTop/Right/Bottom/Left/Width/Height with documentRect
2783         https://bugs.webkit.org/show_bug.cgi?id=60743
2784
2785         Replace uses of docWidth/Height with documentRect.
2786
2787         * WebView/WebFrame.mm:
2788         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
2789
2790 2011-05-16  Yuzo Fujishima  <yuzo@google.com>
2791
2792         Reviewed by Antti Koivisto.
2793
2794         Fix for Bug 43704 - Web font is printed as blank if it is not cached
2795         https://bugs.webkit.org/show_bug.cgi?id=43704
2796
2797         * WebView/WebHTMLView.mm:
2798         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]): Use ResourceCacheValidationSuppressor to allow stale resources in printing.
2799
2800 2011-05-16  David Kilzer  <ddkilzer@apple.com>
2801
2802         <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
2803         <rdar://problem/9446430>
2804
2805         Reviewed by Mark Rowe.
2806
2807         * Configurations/Base.xcconfig: Fixed typo.
2808
2809 2011-05-13  Jon Lee  <jonlee@apple.com>
2810
2811         Reviewed by Simon Fraser.
2812
2813         Can't horizontally scroll iframes and overflow because wheel events are always accepted
2814         https://bugs.webkit.org/show_bug.cgi?id=60779
2815
2816         * WebCoreSupport/WebChromeClient.h:
2817         (WebChromeClient::numWheelEventHandlersChanged): Default impl of new ChromeClient method
2818         (WebChromeClient::shouldRubberBandInDirection): Default impl of new ChromeClient method
2819
2820 2011-05-13  Sam Weinig  <sam@webkit.org>
2821
2822         Reviewed by Anders Carlsson.
2823
2824         Prune #includes from FrameView.h (Part 2)
2825         https://bugs.webkit.org/show_bug.cgi?id=60748
2826
2827         - Update files that were depending on FrameView.h #including Frame.h or
2828           Page.h.
2829
2830         * WebView/WebClipView.mm:
2831         * WebView/WebHTMLView.mm:
2832         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
2833
2834 2011-05-12  Pratik Solanki  <psolanki@apple.com>
2835
2836         Reviewed by Antti Koivisto.
2837
2838         Part of WebCore should use CFNetwork-based loader on Mac
2839         https://bugs.webkit.org/show_bug.cgi?id=51836
2840
2841         Use CFRunLoop when using CFNetwork.
2842
2843         * WebView/WebView.mm:
2844         (-[WebView scheduleInRunLoop:forMode:]):
2845         (-[WebView unscheduleFromRunLoop:forMode:]):
2846
2847 2011-05-12  Pratik Solanki  <psolanki@apple.com>
2848
2849         Reviewed by Antti Koivisto.
2850
2851         Part of WebCore should use CFNetwork-based loader on Mac
2852         https://bugs.webkit.org/show_bug.cgi?id=51836
2853
2854         Include AuthenticationCF.h header file.
2855
2856         * Misc/WebDownload.mm:
2857         * Plugins/WebBaseNetscapePluginView.mm:
2858         * WebCoreSupport/WebFrameLoaderClient.mm:
2859
2860 2011-05-12  Adele Peterson  <adele@apple.com>
2861
2862         Reviewed by Darin Adler and Adam Barth.
2863
2864         Fix for <rdar://problem/9253454> Solar Walk For Mac: Info window is blank (HTML5 parser)
2865         https://bugs.webkit.org/show_bug.cgi?id=60685
2866
2867         Solar Walk uses a self closing title tag, so to match the behavior of the old parser, 
2868         we use a UserScript to write the contents of the title element to the end of the document so it can be re-parsed.
2869
2870         * Misc/SolarWalkQuirksUserScript.js: Added.
2871         * WebView/WebView.mm:
2872         (needsSolarWalkQuirksScript):
2873         (leakSolarWalkQuirksUserScriptContents):
2874         (-[WebView _injectSolarWalkQuirksScript]):
2875         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2876
2877 2011-05-12  Jia Pu  <jpu@apple.com>
2878
2879         Reviewed by Darin Adler.
2880
2881         Regression caused by changeset 86281
2882         https://bugs.webkit.org/show_bug.cgi?id=60712
2883         <rdar://problem/9427970>
2884
2885         Removed the condition variable. [NSSpellChecker dismissCorrectionIndicatorForView:] is blocking.
2886         So handleAcceptedReplacement() triggered by dismissInternal() will return before dismissInternal()
2887         returns. So we don't need to use the condition to coordinate between these two function. In fact,
2888         all callbacks are delivered on main thread. We don't really need any locking here.
2889
2890         Since now we don't have distinction between dismiss() and dismissSoon(). dismissSoon() has
2891         been removed.
2892
2893         * WebCoreSupport/CorrectionPanel.h:
2894         * WebCoreSupport/CorrectionPanel.mm:
2895         (CorrectionPanel::CorrectionPanel):
2896         (CorrectionPanel::show):
2897         (CorrectionPanel::dismiss):
2898         (CorrectionPanel::dismissInternal):
2899         (CorrectionPanel::handleAcceptedReplacement):
2900         * WebCoreSupport/WebEditorClient.mm:
2901         (WebEditorClient::dismissCorrectionPanelSoon):
2902
2903 2011-05-12  Patrick Gansterer  <paroga@webkit.org>
2904
2905         Reviewed by Adam Barth.
2906
2907         Enable OwnPtr strict mode in PluginHalter
2908         https://bugs.webkit.org/show_bug.cgi?id=60681
2909
2910         * WebView/WebView.mm:
2911         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2912
2913 2011-05-12  Nikolas Zimmermann  <nzimmermann@rim.com>
2914
2915         Reviewed by Darin Adler.
2916
2917         String operator+ reallocates unnecessarily when concatting > 2 strings
2918         https://bugs.webkit.org/show_bug.cgi?id=58420
2919
2920         Provide a faster String append operator. See Source/JavaScriptCore/ChangeLog for details.
2921
2922         * WebView/WebFrame.mm: Explicitely cast to Strings first, so operator NSString*() can be invoked.
2923         (-[WebFrame _stringWithDocumentTypeStringAndMarkupString:]):
2924
2925 2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
2926
2927         Reviewed by Darin Adler.
2928
2929         Perform some forward declarations suggested by include-what-you-use
2930         https://bugs.webkit.org/show_bug.cgi?id=60545
2931
2932         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2933         * WebView/WebFrame.mm:
2934
2935 2011-05-11  Jia Pu  <jpu@apple.com>
2936
2937         Reviewed by Darin Adler.
2938
2939         CorrectionPanel sometimes hangs in dismissSoon().
2940         https://bugs.webkit.org/show_bug.cgi?id=60599
2941         <rdar://problem/9313628>
2942
2943         Make sure dismissSoon() won't wait indefinitely if handleAcceptedReplacement() sets m_resultForSynchronousDismissal
2944         to nil. Added a designated variable m_isDismissing, instead of piggy-backing m_resultForSynchronousDismissal,
2945         for condition checking.
2946
2947         * WebCoreSupport/CorrectionPanel.h:
2948         * WebCoreSupport/CorrectionPanel.mm:
2949         (CorrectionPanel::CorrectionPanel):
2950         (CorrectionPanel::show):
2951         (CorrectionPanel::dismissSoon):
2952         (CorrectionPanel::dismissInternal):
2953         (CorrectionPanel::handleAcceptedReplacement):
2954
2955 2011-05-10  Anton D'Auria  <adauria@apple.com>
2956
2957         Reviewed by David Levin.
2958
2959         Add ApplicationCache API to get disk usage per origin
2960         https://bugs.webkit.org/show_bug.cgi?id=57127
2961
2962         Added Mac port API.
2963
2964         * WebCoreSupport/WebApplicationCache.h:
2965         * WebCoreSupport/WebApplicationCache.mm:
2966         (+[WebApplicationCache diskUsageForOrigin:]):
2967
2968 2011-05-10  Anton D'Auria  <adauria@apple.com>
2969
2970         Reviewed by Alexey Proskuryakov.
2971
2972         Add ApplicationCache API to get disk usage per origin
2973         https://bugs.webkit.org/show_bug.cgi?id=57127
2974
2975         Added Mac port API.
2976
2977         * WebCoreSupport/WebApplicationCache.h:
2978         * WebCoreSupport/WebApplicationCache.mm:
2979         (+[WebApplicationCache diskUsageForOrigin:]):
2980
2981 2011-05-10  Beth Dakin  <bdakin@apple.com>
2982
2983         Reviewed by Darin Adler.
2984
2985         https://bugs.webkit.org/show_bug.cgi?id=60582
2986         Crash switching overlay/non-overlay scrollbar preference still possible
2987         -and corresponding-
2988         <rdar://problem/9323983>
2989
2990         * WebCoreSupport/WebSystemInterface.mm:
2991         (InitWebCoreSystemInterface):
2992
2993 2011-05-09  Jeremy Noble  <jer.noble@apple.com>
2994
2995         Reviewed by Darin Adler.
2996
2997         Command-~/Exposé to another window while <video> is in full screen, breaks Safari, eventually leading to crash
2998         https://bugs.webkit.org/show_bug.cgi?id=60496
2999
3000         When animating into and out of full screen, order out and back in the original webView window,
3001         disabling animations when necessary.  The exitFullscreen method was targeting the wrong window,
3002         as the webView is hosted in the full screen window when we ask for it's parent window.
3003
3004         * WebView/WebFullScreenController.mm:
3005         (-[WebFullScreenController windowDidEnterFullscreen:]):
3006         (-[WebFullScreenController exitFullscreen]):
3007
3008 2011-05-04  Philippe Normand  <pnormand@igalia.com>
3009
3010         Reviewed by Dimitri Glazkov.
3011
3012         Implement LayoutTestController::pseudoShadowId()
3013         https://bugs.webkit.org/show_bug.cgi?id=60034
3014
3015         * DOM/WebDOMOperations.mm:
3016         (-[DOMElement _shadowPseudoId]):
3017         * DOM/WebDOMOperationsPrivate.h:
3018
3019 2011-05-05  Dan Bernstein  <mitz@apple.com>
3020
3021         Reviewed by Simon Fraser.
3022
3023         WebKit part of <rdar://problem/9155590> Broken animation in iAd producer
3024
3025         * WebCoreSupport/WebSystemInterface.mm:
3026         (InitWebCoreSystemInterface): Initialize wkExecutableWasLinkedOnOrBeforeSnowLeopard.
3027
3028 2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
3029
3030         Reviewed by Eric Seidel.
3031
3032         Rename SelectionController to FrameSelection
3033         https://bugs.webkit.org/show_bug.cgi?id=60234
3034
3035         * WebView/WebFrame.mm:
3036         (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
3037         * WebView/WebFrameInternal.h:
3038         * WebView/WebHTMLView.mm:
3039         * WebView/WebTextCompletionController.mm:
3040         (-[WebTextCompletionController doCompletion]):
3041         * WebView/WebView.mm:
3042
3043 2011-05-04  Cris Neckar  <cdn@chromium.org>
3044
3045         Reviewed by Adam Barth.
3046
3047         Expose WebView directly through ChromeClient.
3048         https://bugs.webkit.org/show_bug.cgi?id=49902
3049
3050         * WebCoreSupport/WebChromeClient.h:
3051         (WebChromeClient::webView):
3052         * WebView/WebFrame.mm:
3053         (kit):
3054
3055 2011-05-04  Tao Bai  <michaelbai@chromium.org>
3056
3057         Reviewed by David Kilzer.
3058
3059         Populate touch-icon url to FrameLoaderClient
3060         https://bugs.webkit.org/show_bug.cgi?id=59143
3061
3062         Respect the interface change in FrameLoaderClient.
3063
3064         * Configurations/FeatureDefines.xcconfig:
3065         * WebCoreSupport/WebFrameLoaderClient.h:
3066         * WebCoreSupport/WebFrameLoaderClient.mm:
3067         (WebFrameLoaderClient::dispatchDidChangeIcons):
3068
3069 2011-05-03  Julien Chaffraix  <jchaffraix@codeaurora.org>
3070
3071         Reviewed by Dimitri Glazkov.
3072
3073         Element:shadowRoot & Element::ensureShadowRoot should return ShadowRoot*
3074         https://bugs.webkit.org/show_bug.cgi?id=58703
3075
3076         * DOM/WebDOMOperations.mm: Added #include for ShadowRoot.h.
3077
3078 2011-05-02  Adam Roben  <aroben@apple.com>
3079
3080         Take advantage of implicit conversion from nullptr_t to PassOwnPtr
3081
3082         Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr
3083         doesn't work, but should
3084
3085         Reviewed by Adam Barth.
3086
3087         * History/WebHistory.mm:
3088         * Plugins/WebNetscapePluginEventHandler.mm:
3089         * WebView/WebView.mm:
3090
3091 2011-05-02  Brady Eidson  <beidson@apple.com>
3092
3093         Reviewed by Anders Carlsson.
3094
3095         <rdar://problem/9340945> and https://bugs.webkit.org/show_bug.cgi?id=59973
3096         In Aperture, a WebView might be dealloc'ed before it finishes loading.
3097
3098         * WebView/WebView.mm:
3099         (needsSelfRetainWhileLoadingQuirk):
3100         (-[WebView _didStartProvisionalLoadForFrame:]): If we need the quirk, retain self.
3101         (-[WebView _didFinishLoadForFrame:]): If we need the quirk, release self on a delay.
3102         (-[WebView _didFailLoadWithError:forFrame:]): Ditto.
3103         (-[WebView _didFailProvisionalLoadWithError:forFrame:]): Ditto.
3104
3105 2011-05-02  Adam Barth  <abarth@webkit.org>
3106
3107         Reviewed by David Levin.
3108
3109         PLATFORM(MAC) should (almost!) build with strict PassOwnPtr
3110         https://bugs.webkit.org/show_bug.cgi?id=59924
3111
3112         * History/WebHistory.mm:
3113         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]):
3114         * Plugins/WebBaseNetscapePluginView.mm:
3115         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
3116         * WebCoreSupport/WebFrameLoaderClient.mm:
3117         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
3118         * WebView/WebView.mm:
3119         (-[WebView _injectMailQuirksScript]):
3120         (-[WebView _injectOutlookQuirksScript]):
3121         (toStringVector):
3122
3123 2011-05-02  Sam Weinig  <sam@webkit.org>
3124
3125         Reviewed by Adam Barth.
3126
3127         Prune some #includes from DOMWindow.h
3128         https://bugs.webkit.org/show_bug.cgi?id=59907
3129
3130         * Plugins/WebBaseNetscapePluginView.mm:
3131         * WebView/WebFrame.mm:
3132         Add now missing SecurityOrigin.h #includes.
3133
3134 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
3135
3136         Reviewed by Eric Seidel.
3137
3138         Get rid of versions of sendContextMenuEvent and eventMayStartDrag that takes NSEvent
3139         https://bugs.webkit.org/show_bug.cgi?id=59837
3140
3141         Call sendContextMenuEvent and eventMayStartDrag with PlatformMouseEvent instead of NSEvent.
3142
3143         * WebView/WebHTMLView.mm:
3144         (-[WebHTMLView menuForEvent:]):
3145         (-[WebHTMLView acceptsFirstMouse:]):
3146         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
3147
3148 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
3149
3150         Reviewed by Eric Seidel.
3151
3152         Move currentKeyboardEvent from EventHandlerMac.mm to WebHTMLView.mm
3153         https://bugs.webkit.org/show_bug.cgi?id=59835
3154
3155         Moved currentKeyboardEvent.
3156
3157         * WebView/WebHTMLView.mm:
3158         (currentKeyboardEvent):
3159         (-[WebHTMLView becomeFirstResponder]):
3160
3161 2011-04-29  Dean Jackson  <dino@apple.com>
3162
3163         Reviewed by Simon Fraser.
3164
3165         Add ENABLE macro for WebKitAnimation
3166         https://bugs.webkit.org/show_bug.cgi?id=59729
3167
3168         Add new feature to toggle WebKit Animation API.
3169
3170         * Configurations/FeatureDefines.xcconfig:
3171
3172 2011-04-28  David Kilzer  <ddkilzer@apple.com>
3173
3174         <http://webkit.org/b/59758> Fix static analyzer warnings for missing assignment to 'self' in -init methods
3175
3176         Reviewed by Anders Carlsson.
3177
3178         * History/WebHistory.mm:
3179         (-[WebHistoryPrivate init]):
3180         * Misc/WebElementDictionary.mm:
3181         (-[WebElementDictionary initWithHitTestResult:]):
3182         * Misc/WebIconDatabase.mm:
3183         (-[WebIconDatabase init]):
3184         * Plugins/WebPluginController.mm:
3185         (-[WebPluginController initWithDocumentView:]):
3186         * Plugins/WebPluginRequest.m:
3187         (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
3188         * WebCoreSupport/WebEditorClient.mm:
3189         (-[WebEditCommand initWithEditCommand:]):
3190         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
3191         (-[WebJavaScriptTextInputPanel initWithPrompt:text:]):
3192         * WebView/WebNavigationData.mm:
3193         (-[WebNavigationData initWithURLString:title:originalRequest:response:hasSubstituteData:clientRedirectSource:]):
3194
3195 2011-04-28  David Levin  <levin@chromium.org>
3196
3197         Reviewed by Adam Barth.
3198
3199         Remove IMAGE_RESIZER related code.
3200         https://bugs.webkit.org/show_bug.cgi?id=59735
3201
3202         * Configurations/FeatureDefines.xcconfig:
3203
3204 2011-04-28  Adam Barth  <abarth@webkit.org>
3205
3206         Reviewed by Eric Seidel.
3207
3208         Remove WML
3209         https://bugs.webkit.org/show_bug.cgi?id=59678
3210
3211         Remove WML-related configuration options and private APIs.
3212
3213         * Configurations/FeatureDefines.xcconfig:
3214         * WebCoreSupport/WebChromeClient.mm:
3215         (stringForMessageSource):
3216         * WebView/WebFramePrivate.h:
3217         * WebView/WebUIDelegatePrivate.h:
3218
3219 2011-04-28  Brian Weinstein  <bweinstein@apple.com>
3220
3221         Reviewed by Timothy Hatcher.
3222
3223         Web Inspector: REGRESSION(85051): Develop Menu items are wrong when inspector is frontmost window
3224         https://bugs.webkit.org/show_bug.cgi?id=59747
3225
3226         Restore functions that were removed in r85051. They were needed when the inspector is the frontmost window.
3227         Also update them to call _inspectedWebView.get() - since it's a RetainPtr now.
3228
3229         * WebCoreSupport/WebInspectorClient.mm:
3230         (-[WebInspectorWindowController showWebInspector:]):
3231         (-[WebInspectorWindowController showErrorConsole:]):
3232         (-[WebInspectorWindowController toggleDebuggingJavaScript:]):
3233         (-[WebInspectorWindowController toggleProfilingJavaScript:]):
3234         (-[WebInspectorWindowController validateUserInterfaceItem:]):
3235
3236 2011-04-28  David Kilzer  <ddkilzer@apple.com>
3237
3238         <http://webkit.org/b/59725> -[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:] leaks a CALayer
3239
3240         Reviewed by Dan Bernstein.
3241
3242         * WebView/WebFullScreenController.mm:
3243         (-[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:]):
3244         Use a RetainPtr to hold the CALayer and to fix the leak.
3245
3246 2011-04-28  David Kilzer  <ddkilzer@apple.com>
3247
3248         Follow-up fix: <http://webkit.org/b/59727> -[WebPDFView menuForEvent:] leaks NSMenuItem objects
3249
3250         Addresses review comment from Darin Adler.
3251
3252         * WebView/WebPDFView.mm:
3253         (-[WebPDFView menuForEvent:]): Use a local variable and -release
3254         instead of -autorelease.
3255
3256 2011-04-28  Anders Carlsson  <andersca@apple.com>
3257
3258         Fix a thinko - separateRealmLabel is not an NSImageView.
3259
3260         * Panels/WebAuthenticationPanel.h:
3261
3262 2011-04-28  David Kilzer  <ddkilzer@apple.com>
3263
3264         <http://webkit.org/b/59727> -[WebPDFView menuForEvent:] leaks NSMenuItem objects
3265
3266         Reviewed by Dan Bernstein.
3267
3268         * WebView/WebPDFView.mm:
3269         (-[WebPDFView menuForEvent:]): Call -autorelease after copying
3270         each NSMenuItem.  Regressed in r9566 for Bug 3711.
3271
3272 2011-04-28  Enrica Casucci  <enrica@apple.com>
3273
3274         Reviewed by Beth Dakin.
3275
3276         Momentum scroll tweak for WebKit.
3277         https://bugs.webkit.org/show_bug.cgi?id=59723
3278         <rdar://problem/9259933>
3279
3280         * WebView/WebDynamicScrollBarsView.mm:
3281         (-[WebDynamicScrollBarsView scrollWheel:]): Changed constant.
3282
3283 2011-04-27  Anders Carlsson  <andersca@apple.com>
3284
3285         Follow-up Leopard build fix.
3286
3287         * Carbon/HIViewAdapter.m:
3288         (_webkit_NSView_setNeedsDisplayInRect):
3289
3290 2011-04-27  Anders Carlsson  <andersca@apple.com>
3291
3292         More clang++ 32-bit build fixes.
3293
3294         * Carbon/CarbonWindowAdapter.mm:
3295         (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
3296         (-[CarbonWindowAdapter setContentView:]):
3297         (-[CarbonWindowAdapter _handleContentBoundsChanged]):
3298         * Carbon/HIViewAdapter.m:
3299         (_webkit_NSView_setNeedsDisplayInRect):
3300         * Panels/WebAuthenticationPanel.h:
3301         * Plugins/WebBaseNetscapePluginView.mm:
3302         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
3303         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
3304         (getCarbonEvent):
3305         * WebCoreSupport/WebChromeClient.mm:
3306         (WebChromeClient::scrollRectIntoView):
3307         * WebCoreSupport/WebViewFactory.mm:
3308         (-[WebViewFactory accessibilityConvertScreenRect:]):
3309         * WebView/WebFrameView.mm:
3310         (-[WebFrameView _scrollToBeginningOfDocument]):
3311         (-[WebFrameView _scrollToEndOfDocument]):
3312         * WebView/WebFullScreenController.mm:
3313         (-[WebFullScreenController windowDidEnterFullscreen:]):
3314         * WebView/WebHTMLView.mm:
3315         (-[WebHTMLView _hitViewForEvent:]):
3316         (coreGraphicsScreenPointForAppKitScreenPoint):
3317         * WebView/WebPDFView.mm:
3318         (-[WebPDFView setScrollPoint:]):
3319
3320 2011-04-27  Yury Semikhatsky  <yurys@chromium.org>
3321
3322         Reviewed by Pavel Feldman.
3323
3324         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
3325         https://bugs.webkit.org/show_bug.cgi?id=44230
3326
3327         Use RetainPtr access inspected view from the inspector one to avoid inspected view being deleted before
3328         inspector is closed.
3329
3330         * WebCoreSupport/WebInspectorClient.mm: store reference to inspected view in RetainPtr. Despite the removed
3331         comment in initWithInspectedWebView this doesn't introduce cyclic reference since there are no retaining
3332         pointers to the WebInspectorWindowController from the inspected page or from the WebInspectorClient.
3333         There is only one reference to it from WebInspectorFrontendClient which is held by the inspector
3334         front-end page.
3335
3336         Drive-by fix: removed several unused methods which are currently implemented in mac/WebInspector/WebInspector.mm
3337         (-[WebInspectorWindowController initWithInspectedWebView:]):
3338         (-[WebInspectorWindowController close]):
3339         (-[WebInspectorWindowController showWindow:]):
3340         (-[WebInspectorWindowController setAttachedWindowHeight:]):
3341         (-[WebInspectorWindowController destroyInspectorView:]):
3342
3343 2011-04-26  Sam Weinig  <sam@webkit.org>
3344
3345         Reviewed by David Hyatt.
3346
3347         Remove Datagrid from the tree
3348         https://bugs.webkit.org/show_bug.cgi?id=59543
3349
3350         * Configurations/FeatureDefines.xcconfig:
3351         Remove feature.
3352
3353 2011-04-26  Dan Bernstein  <mitz@apple.com>
3354
3355         Reviewed by Mark Rowe.
3356
3357         Choose the compiler based on the Xcode version for Snow Leopard debug builds.
3358
3359         * Configurations/Base.xcconfig:
3360         * Configurations/CompilerVersion.xcconfig: Added.
3361
3362 2011-04-25  Adam Barth  <abarth@webkit.org>
3363
3364         Reviewed by David Levin.
3365
3366         WebKit2 should play nice with strict OwnPtrs
3367         https://bugs.webkit.org/show_bug.cgi?id=59426
3368
3369         Fix include ordering.
3370
3371         * WebView/WebDeviceOrientationProviderMock.mm:
3372
3373 2011-04-25  Adam Barth  <abarth@webkit.org>
3374
3375         Reviewed by David Levin.
3376
3377         WebKit1 should build cleanly with strict OwnPtrs
3378         https://bugs.webkit.org/show_bug.cgi?id=59424
3379
3380         * History/WebHistoryItem.mm:
3381         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3382         * Plugins/WebNetscapePluginEventHandler.h:
3383         * Plugins/WebNetscapePluginEventHandler.mm:
3384         (WebNetscapePluginEventHandler::create):
3385         * Plugins/WebNetscapePluginView.mm:
3386         (-[WebNetscapePluginView createPlugin]):
3387         * WebView/WebDeviceOrientationProviderMock.mm:
3388         * WebView/WebTextIterator.mm:
3389         (-[WebTextIterator initWithRange:]):
3390
3391 2011-04-25  Jon Lee  <jonlee@apple.com>
3392
3393         Reviewed by Maciej Stachowiak.
3394
3395         Overlay scroller hard to see on pages with dark background (59183)
3396         https://bugs.webkit.org/show_bug.cgi?id=59183
3397         <rdar://problem/8975367>
3398         
3399         * WebCoreSupport/WebSystemInterface.mm:
3400         (InitWebCoreSystemInterface): adding method to allow changing style
3401
3402 2011-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>
3403
3404         Unreviewed, rolling out r84740.
3405         http://trac.webkit.org/changeset/84740
3406         https://bugs.webkit.org/show_bug.cgi?id=59290
3407
3408         change breaks apple internal builds and is incorrect
3409         (Requested by smfr on #webkit).
3410
3411         * WebCoreSupport/WebSystemInterface.mm:
3412         (InitWebCoreSystemInterface):
3413
3414 2011-04-22  Jon Lee  <jonlee@apple.com>
3415
3416         Reviewed by Beth Dakin.
3417
3418         Overlay scroller hard to see on pages with dark background (59183)
3419         https://bugs.webkit.org/show_bug.cgi?id=59183
3420         <rdar://problem/8975367>
3421         
3422         * WebCoreSupport/WebSystemInterface.mm:
3423         (InitWebCoreSystemInterface): adding method to allow changing style
3424
3425 2011-04-19  Jer Noble  <jer.noble@apple.com>
3426
3427         Reviewed by Daniel Bates.
3428
3429         Full Screen from within an <iframe> does not cause <iframe> to resize.
3430         https://bugs.webkit.org/show_bug.cgi?id=58638
3431
3432         Tests: fullscreen/full-screen-frameset-allowed.html
3433                fullscreen/full-screen-frameset-not-allowed.html
3434
3435         Return the _element's document instead of the WKView's document, which 
3436         will be different in the case of elements within <iframe>s.
3437
3438         * WebView/WebFullScreenController.mm:
3439         (-[WebFullScreenController _document]):
3440
3441 2011-04-22  Jer Noble  <jer.noble@apple.com>
3442
3443         Reviewed by Maciej Stachowiak.
3444
3445         Disable MediaPlayerPrivateAVFoundation when using old full screen mode.
3446         https://bugs.webkit.org/show_bug.cgi?id=59147
3447
3448         Add a new user default preference, and plumb that preference down to WebCore
3449         Settings. Allow the fullScreenEnabled preference to override the new 
3450         isAVFoundationEnabled preference, so that clients of the legacy full screen
3451         mode will continue to use that mode normally.
3452
3453         * WebView/WebPreferenceKeysPrivate.h: Add new preference key.
3454         * WebView/WebPreferences.mm:
3455         (+[WebPreferences initialize]): Set the default value of new
3456             preference.
3457         (-[WebPreferences setAVFoundationEnabled:]): Added.
3458         (-[WebPreferences isAVFoundationEnabled]): Added.
3459         * WebView/WebPreferencesPrivate.h:
3460         * WebView/WebView.mm:
3461         (-[WebView _preferencesChanged:]): Update the WebCore settings with the
3462             new values from WebPreferences.
3463
3464 2011-04-22  Sam Weinig  <sam@webkit.org>
3465
3466         Reviewed by Gavin Barraclough.
3467
3468         Remove remaining uses of deprecated version of toJS
3469         https://bugs.webkit.org/show_bug.cgi?id=59170
3470
3471         * DOM/WebDOMOperations.mm:
3472         (-[DOMElement _shadowRoot:]):
3473         (-[DOMElement _ensureShadowRoot:]):
3474         Replace use of deprecated toJS overload with explicit call to deprecatedGlobalObjectForPrototype.
3475
3476 2011-04-21  Maciej Stachowiak  <mjs@apple.com>
3477
3478         Reviewed by Adam Roben.
3479
3480         Add a feature define to allow <details> and <summary> to be disabled
3481         https://bugs.webkit.org/show_bug.cgi?id=59118
3482         <rdar://problem/9257045>
3483
3484         * Configurations/FeatureDefines.xcconfig:
3485
3486 2011-04-21  Ryosuke Niwa  <rniwa@webkit.org>
3487
3488         Reviewed by Sam Weinig.
3489
3490         Add Frame* to the argument lists of canCopyCut and canPaste
3491         https://bugs.webkit.org/show_bug.cgi?id=59153
3492
3493         * WebCoreSupport/WebEditorClient.h:
3494         * WebCoreSupport/WebEditorClient.mm:
3495         (WebEditorClient::canCopyCut):
3496         (WebEditorClient::canPaste):
3497
3498 2011-04-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3499
3500         Unreviewed, rolling out r82052.
3501         http://trac.webkit.org/changeset/82052
3502         https://bugs.webkit.org/show_bug.cgi?id=59135
3503
3504         New full screen api should be opt-in, not opt-out. (Requested
3505         by jernoble on #webkit).
3506
3507         * WebView/WebPreferences.mm:
3508         (+[WebPreferences initialize]):
3509
3510 2011-04-21  Beth Dakin  <bdakin@apple.com>
3511
3512         Reviewed by Dan Bernstein.
3513
3514         https://bugs.webkit.org/show_bug.cgi?id=59048
3515         Need to track whether overlay scrollbar is currently visible and in lower-
3516         righthand corner
3517         -and corresponding-
3518         <rdar://problem/9211232>
3519
3520         A new WebSystemInterface is needed for this.
3521         * WebCoreSupport/WebSystemInterface.mm:
3522         (InitWebCoreSystemInterface):
3523
3524 2011-04-21  Dirk Schulze  <krit@webkit.org>
3525
3526         Reviewed by Nikolas Zimmermann.
3527
3528         SVG feDropShadow implementation of SVG Filters 1.2
3529         https://bugs.webkit.org/show_bug.cgi?id=52513
3530
3531         * MigrateHeaders.make:
3532
3533 2011-04-20  Dominic Cooney  <dominicc@chromium.org>
3534
3535         Reviewed by Dimitri Glazkov.
3536
3537         layoutTestController can create and destroy shadow DOM
3538         https://bugs.webkit.org/show_bug.cgi?id=59058
3539
3540         Support for new methods in Mac DRT.
3541
3542         * DOM/WebDOMOperations.mm:
3543         (-[DOMElement _ensureShadowRoot:]):
3544         (-[DOMElement _removeShadowRoot]):
3545         * DOM/WebDOMOperationsPrivate.h:
3546
3547 2011-04-20  Eric Carlson  <eric.carlson@apple.com>
3548
3549         Reviewed by Dan Bernstein.
3550
3551         Adopt QTKit API for listing and deleting file in its media cache.
3552         <rdar://problem/9130029> 
3553
3554         * WebCoreSupport/WebSystemInterface.mm:
3555         (InitWebCoreSystemInterface): Initialize new functions.
3556
3557 2011-04-19  Matthew Delaney  <mdelaney@apple.com>
3558
3559         Reviewed by Simon Fraser.
3560
3561         WebPreferences in WebKit1 should have CanvasUsesAcceleratedDrawing set to NO by default
3562         https://bugs.webkit.org/show_bug.cgi?id=58936
3563
3564         * WebView/WebPreferences.mm:
3565         (+[WebPreferences initialize]):
3566
3567 2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
3568
3569         Reviewed by Pavel Feldman.
3570
3571         Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
3572         https://bugs.webkit.org/show_bug.cgi?id=58883
3573
3574         * WebCoreSupport/WebFrameLoaderClient.h:
3575         * WebCoreSupport/WebFrameLoaderClient.mm:
3576         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
3577
3578 2011-04-18  Jia Pu  <jpu@apple.com>
3579
3580         Reviewed by Mark Rowe.
3581
3582         WebKit needs to stop importing <AppKit/NSTextChecker.h>
3583         https://bugs.webkit.org/show_bug.cgi?id=58798
3584         <rdar://problem/9294938>
3585
3586         Use public header <AppKit/NSSpellChecker.h> instead.
3587
3588         * WebCoreSupport/CorrectionPanel.h:
3589         * WebCoreSupport/CorrectionPanel.mm:
3590         (correctionIndicatorType):
3591         (CorrectionPanel::show):
3592         (CorrectionPanel::dismissInternal):
3593         (CorrectionPanel::handleAcceptedReplacement):
3594         * WebCoreSupport/WebEditorClient.mm:
3595         * WebView/WebView.mm:
3596
3597 2011-04-17  Cameron Zwarich  <zwarich@apple.com>
3598
3599         Reviewed by Timothy Hatcher.
3600
3601         Stop using -[NSString initWithContentsOfFile:]
3602         https://bugs.webkit.org/show_bug.cgi?id=58763
3603
3604         -[NSString initWithContentsOfFile:] was deprecated in 10.4, so we should stop using it.
3605
3606         * WebView/WebView.mm:
3607         (leakMailQuirksUserScriptContents):
3608         (leakOutlookQuirksUserScriptContents):
3609
3610 2011-04-17  David Kilzer  <ddkilzer@apple.com>
3611
3612         <http://webkit.org/b/58463> Switch HTTP pipelining from user default to private setting
3613         <rdar://problem/9268729>
3614
3615         Reviewed by Dan Bernstein.
3616
3617         This replaces support for the WebKitEnableHTTPPipelining user
3618         default with methods on the WebCore::ResourceRequest class in
3619         WebCore, the WebView class in WebKit1, and the WebContext class
3620         in WebKit2.  It also removes support for the
3621         WebKitForceHTTPPipeliningPriorityHigh user default which was not
3622         needed.
3623
3624         * WebView/WebView.mm:
3625         (+[WebView(WebPrivate) _HTTPPipeliningEnabled]): Added.
3626         (+[WebView(WebPrivate) _setHTTPPipeliningEnabled:]): Added.
3627         * WebView/WebViewPrivate.h:
3628         (+[WebView(WebPrivate) _HTTPPipeliningEnabled]): Added declaration.
3629         (+[WebView(WebPrivate) _setHTTPPipeliningEnabled:]): Added declaration.
3630
3631 2011-04-17  Joseph Pecoraro  <joepeck@webkit.org>
3632
3633         Reviewed by Dan Bernstein.
3634
3635         Assign to self in WebInspectorWindowController constructors
3636         https://bugs.webkit.org/show_bug.cgi?id=58749
3637
3638         * WebCoreSupport/WebInspectorClient.mm:
3639         (-[WebInspectorWindowController init]):
3640         (-[WebInspectorWindowController initWithInspectedWebView:]):
3641
3642 2011-04-17  Joseph Pecoraro  <joepeck@webkit.org>
3643
3644         Reviewed by Timothy Hatcher.
3645
3646         Move WebNodeHighlighter into its own file