Mac build fix
[WebKit.git] / Source / WebKit / mac / ChangeLog
1 2012-02-17  Mihnea Ovidenie  <mihnea@adobe.com>
2
3         CSS regions enabled by default
4         https://bugs.webkit.org/show_bug.cgi?id=78525
5
6         Reviewed by David Hyatt.
7
8         Add a runtime preference to enable/disable regions functionality at runtime(WebKitCSSRegionsEnabled).
9         CSSRegions are still enabled by default.
10         In DRT, use layoutTestController.overridePreference("WebKitCSSRegionsEnabled", "0") to disable the css regions functionality.
11
12         * WebView/WebPreferenceKeysPrivate.h:
13         * WebView/WebPreferences.mm:
14         (+[WebPreferences initialize]):
15         (-[WebPreferences cssRegionsEnabled]):
16         (-[WebPreferences setCSSRegionsEnabled:]):
17         * WebView/WebPreferencesPrivate.h:
18         * WebView/WebView.mm:
19         (-[WebView _preferencesChanged:]):
20
21 2012-02-17  Enrica Casucci  <enrica@apple.com>
22
23         Refactor DragData class to use PlatformStrategies in the Mac implementation.
24         https://bugs.webkit.org/show_bug.cgi?id=78768
25
26         Reviewed by Darin Adler.
27
28         * WebCoreSupport/WebPlatformStrategies.h: Added color() method.
29         * WebCoreSupport/WebPlatformStrategies.mm:
30         (WebPlatformStrategies::color):
31
32 2012-02-16  Brady Eidson  <beidson@apple.com>
33
34         <rdar://problem/10616280> and https://bugs.webkit.org/show_bug.cgi?id=78767
35         REGRESSION (r90471) - iAd Producer 2.0.1 produces blank pages
36
37         Reviewed by Sam Weinig.
38
39         * WebView/WebView.mm:
40         (-[WebView _needsIsLoadingInAPISenseQuirk]):
41         (-[WebView _preferencesChanged:]):
42
43 2012-02-15  Enrica Casucci  <enrica@apple.com>
44
45         Refactor ClipboardMac class to use PlatformStrategies.
46         https://bugs.webkit.org/show_bug.cgi?id=78554
47
48         Reviewed by Anders Carlsson.
49
50         * WebCoreSupport/WebDragClient.h: Changed methods signature to use name based pasteboard.
51         * WebCoreSupport/WebDragClient.mm: Ditto.
52         (WebDragClient::willPerformDragSourceAction):
53         (WebDragClient::startDrag):
54         (WebDragClient::declareAndWriteDragImage):
55         * WebCoreSupport/WebPlatformStrategies.h: Added new methods.
56         * WebCoreSupport/WebPlatformStrategies.mm:
57         (WebPlatformStrategies::changeCount):
58         (WebPlatformStrategies::uniqueName):
59
60 2012-02-15  Sadrul Habib Chowdhury  <sadrul@chromium.org>
61
62         Notify ChromeClient when touch-event handlers are installed/removed.
63         https://bugs.webkit.org/show_bug.cgi?id=77440
64
65         Reviewed by Darin Fisher and Ryosuke Niwa.
66
67         * WebCoreSupport/WebChromeClient.h:
68
69 2012-02-14  Matt Lilek  <mrl@apple.com>
70
71         Don't ENABLE_DASHBOARD_SUPPORT unconditionally on all Mac platforms
72         https://bugs.webkit.org/show_bug.cgi?id=78629
73
74         Reviewed by David Kilzer.
75
76         * Configurations/FeatureDefines.xcconfig:
77
78 2012-02-14  Alexey Proskuryakov  <ap@apple.com>
79
80         [Mac][Win][WK2] Switch to RFC 6455 protocol for WebSockets
81         https://bugs.webkit.org/show_bug.cgi?id=78541
82         <rdar://problem/10036695>
83
84         Reviewed by Kent Tamura.
85
86         * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Changed default value of the
87         preference.
88
89 2012-02-11  Nikolas Zimmermann  <nzimmermann@rim.com>
90
91         Convert svg/animations to use SMIL methods for driving the timeline
92         https://bugs.webkit.org/show_bug.cgi?id=78422
93
94         Reviewed by Dirk Schulze.
95
96         Remove SVG animation sampling functionality provided for DRT, which no longer uses it.
97         Instead we switched the svg/animations tests to use SVGSVGElement.setCurrentTime.
98
99         * WebKit.order:
100         * WebView/WebFrame.mm:
101         * WebView/WebFramePrivate.h:
102
103 2012-02-13  Enrica Casucci  <enrica@apple.com>
104
105          Refactor Mac platform implementation of the Pasteboard class to use Platform Strategies.
106          https://bugs.webkit.org/show_bug.cgi?id=78282
107  
108          This patch removes any accesss to the NSPasteboard object from the Pasteboard class which
109          now makes use of a new pasteboardStrategy object that is implemented both in WebKit and
110          WebKit2. The actual access to NSPasteboard is now performed inside the PlatformPasteboard
111          class. Currently both WebKit and WebKit2 use the same implementation of the PasteboardStrategy
112          interface but this one more step in the direction of removing access to NSPasteboard from
113          the WebProcess.
114          As part of the refactoring the I've reduced to a minimum the use of OBJ-C classes.
115          
116          Reviewed by Anders Carlsson.
117  
118          * WebCoreSupport/WebPlatformStrategies.h: Added PasteboardStrategy.
119          * WebCoreSupport/WebPlatformStrategies.mm: Added implementation of PasteboardStrategy interface.
120          (WebPlatformStrategies::createPasteboardStrategy):
121          (WebPlatformStrategies::getTypes):
122          (WebPlatformStrategies::bufferForType):
123          (WebPlatformStrategies::getPathnamesForType):
124          (WebPlatformStrategies::stringForType):
125          (WebPlatformStrategies::copy):
126          (WebPlatformStrategies::setTypes):
127          (WebPlatformStrategies::setBufferForType):
128          (WebPlatformStrategies::setPathnamesForType):
129          (WebPlatformStrategies::setStringForType):
130
131 2012-02-12  Hajime Morrita  <morrita@chromium.org>
132
133         Page should have less intrusive way to associate API implementation objects.
134         https://bugs.webkit.org/show_bug.cgi?id=78085
135
136         Reviewed by Adam Barth.
137
138         * WebView/WebView.mm:
139         (-[WebView _commonInitializationWithFrameName:groupName:]):
140
141 2012-02-11  Sheriff Bot  <webkit.review.bot@gmail.com>
142
143         Unreviewed, rolling out r107435.
144         http://trac.webkit.org/changeset/107435
145         https://bugs.webkit.org/show_bug.cgi?id=78410
146
147         It broke the Qt build (Requested by Ossy on #webkit).
148
149         * WebCoreSupport/WebPlatformStrategies.h:
150         (WebPlatformStrategies):
151         * WebCoreSupport/WebPlatformStrategies.mm:
152         (WebPlatformStrategies::addVisitedLink):
153
154 2012-02-10  Adam Klein  <adamk@chromium.org>
155
156         Enable MUTATION_OBSERVERS by default on all platforms
157         https://bugs.webkit.org/show_bug.cgi?id=78196
158
159         Reviewed by Ojan Vafai.
160
161         * Configurations/FeatureDefines.xcconfig:
162
163 2012-02-10  Enrica Casucci  <enrica@apple.com>
164
165         Refactor Mac platform implementation of the Pasteboard class to use Platform Strategies.
166         https://bugs.webkit.org/show_bug.cgi?id=78282
167
168         This patch removes any accesss to the NSPasteboard object from the Pasteboard class which
169         now makes use of a new pasteboardStrategy object that is implemented both in WebKit and
170         WebKit2. The actual access to NSPasteboard is now performed inside the PlatformPasteboard
171         class. Currently both WebKit and WebKit2 use the same implementation of the PasteboardStrategy
172         interface but this one more step in the direction of removing access to NSPasteboard from
173         the WebProcess.
174         As part of the refactoring the I've reduced to a minimum the use of OBJ-C classes.
175         
176         Reviewed by Anders Carlsson.
177
178         * WebCoreSupport/WebPlatformStrategies.h: Added PasteboardStrategy.
179         * WebCoreSupport/WebPlatformStrategies.mm: Added implementation of PasteboardStrategy interface.
180         (WebPlatformStrategies::createPasteboardStrategy):
181         (WebPlatformStrategies::getTypes):
182         (WebPlatformStrategies::bufferForType):
183         (WebPlatformStrategies::getPathnamesForType):
184         (WebPlatformStrategies::stringForType):
185         (WebPlatformStrategies::copy):
186         (WebPlatformStrategies::setTypes):
187         (WebPlatformStrategies::setBufferForType):
188         (WebPlatformStrategies::setPathnamesForType):
189         (WebPlatformStrategies::setStringForType):
190
191 2012-02-10  Benjamin Poulain  <bpoulain@apple.com>
192
193         [Mac] DYLIB_INSTALL_NAME_BASE should not be prefixed by the SDKROOT
194         https://bugs.webkit.org/show_bug.cgi?id=78320
195
196         Reviewed by Joseph Pecoraro.
197
198         <rdar://problem/10839750>
199
200         * Configurations/WebKit.xcconfig:
201
202 2012-02-09  Alexey Proskuryakov  <ap@apple.com>
203
204         REGRESSION (r104885): Articles not displayed in Vienna RSS reader
205         https://bugs.webkit.org/show_bug.cgi?id=78280
206         <rdar://problem/10762545>
207
208         Reviewed by Oliver Hunt.
209
210         * Misc/WebNSURLExtras.h:
211         * Misc/WebNSURLExtras.mm: (-[NSURL _webkit_URLFromURLOrPath]):
212         Added a method to create a URL from a path, similarly to what KURL used to do.
213
214         * WebView/WebFrame.mm: (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):
215         Use it in an API where a known regression occurred.
216
217 2012-02-07  Antti Koivisto  <antti@apple.com>
218
219         REGRESSION (r106681): Null check missing in [WebFrame(WebInternal) _typingStyle]
220         https://bugs.webkit.org/show_bug.cgi?id=78080
221
222         Reviewed by Reviewed by Andreas Kling, Darin Adler and Dan Bernstein.
223
224         * WebView/WebFrame.mm:
225         (-[WebFrame _typingStyle]):
226
227 2012-02-07  Tony Chang  <tony@chromium.org>
228
229         merge DashboardSupportCSSPropertyNames.in into CSSPropertyNames.in
230         https://bugs.webkit.org/show_bug.cgi?id=78036
231
232         Reviewed by Darin Adler.
233
234         * Configurations/FeatureDefines.xcconfig: Add ENABLE_DASHBOARD_SUPPORT to FEATURE_DEFINES.
235
236 2012-02-06  Anders Carlsson  <andersca@apple.com>
237
238         Overlay scrollbars flash when window is simply activated
239         https://bugs.webkit.org/show_bug.cgi?id=77911
240         <rdar://problem/10211995>
241
242         Reviewed by Kenneth Russell.
243
244         * WebView/WebView.mm:
245         (-[WebView _windowWillOrderOnScreen:]):
246         (-[WebView _windowWillOrderOffScreen:]):
247         Call FocusController::setContainingWindowIsVisible.
248
249
250 2012-02-06  Matthew Delaney  <mdelaney@apple.com>
251
252         toDataURL() uses stale data after putImageData()
253         https://bugs.webkit.org/show_bug.cgi?id=65767
254
255         Reviewed by Chris Marrin.
256
257         * WebCoreSupport/WebSystemInterface.mm: 
258
259 2012-02-03  Antti Koivisto  <antti@apple.com>
260
261         Rename CSSMutableStyleDeclaration.h/.cpp to StylePropertySet.h/.cpp 
262         https://bugs.webkit.org/show_bug.cgi?id=77779
263
264         Reviewed by Darin Adler.
265
266         * WebView/WebHTMLView.mm:
267
268 2012-02-03  Antti Koivisto  <antti@apple.com>
269
270         https://bugs.webkit.org/show_bug.cgi?id=77740
271         Split CSSMutableStyleDeclaration into separate internal and CSSOM types 
272
273         Reviewed by Andreas Kling and Darin Adler.
274
275         * WebView/WebFrame.mm:
276         (-[WebFrame _typingStyle]):
277
278 2012-02-03  Beth Dakin  <bdakin@apple.com>
279
280         https://bugs.webkit.org/show_bug.cgi?id=77691
281         Fix PlatformScreen layering violation and PlatformScreenMac's incorrect use 
282         of device scale
283
284         Reviewed by Andy Estes.
285
286         toUserSpace() and toDeviceSpace() don't need to take device scale. Also 
287         restore a comment that I needlessly removed.
288         * WebCoreSupport/WebChromeClient.mm:
289         (WebChromeClient::setWindowRect):
290         (WebChromeClient::windowRect):
291
292 2012-02-01  Dan Bernstein  <mitz@apple.com>
293
294         WebKit/mac part of <rdar://problem/10442663> Paginated display does not respect page-break-{before,after}
295         https://bugs.webkit.org/show_bug.cgi?id=77505
296
297         Reviewed by Darin Adler.
298
299         * WebView/WebView.mm:
300         (-[WebView _setPaginationBehavesLikeColumns:]): Added this setter.
301         (-[WebView _paginationBehavesLikeColumns]): Added this getter.
302         * WebView/WebViewPrivate.h:
303
304 2012-01-25  Eric Seidel  <eric@webkit.org>
305
306         HTMLIsIndexElement should not expose HTMLInputElement properties
307         https://bugs.webkit.org/show_bug.cgi?id=76095
308
309         Reviewed by Adam Barth.
310
311         * MigrateHeaders.make:
312
313 2012-01-31  Pablo Flouret  <pablof@motorola.com>
314
315         Fix compilation errors on build-webkit --debug --no-workers on mac.
316         https://bugs.webkit.org/show_bug.cgi?id=75869
317
318         Reviewed by Adam Barth.
319
320         * Workers/WebWorkersPrivate.mm:
321         (+[WebWorkersPrivate workerThreadCount]):
322
323 2012-01-30  Beth Dakin  <bdakin@apple.com>
324
325         https://bugs.webkit.org/show_bug.cgi?id=77263
326         PlatformScreenMac should not rely on NSWindow for important bits of data
327
328         Reviewed by Geoff Garen.
329
330         toUserSpace() and toDeviceSpace() now take a parameter for the 
331         deviceScaleFactor.
332         * WebCoreSupport/WebChromeClient.mm:
333         (windowScaleFactor):
334         (WebChromeClient::setWindowRect):
335         (WebChromeClient::windowRect):
336
337 2012-01-25  Mark Rowe  <mrowe@apple.com>
338
339         Build in to an alternate location when USE_STAGING_INSTALL_PATH is set.
340
341         <rdar://problem/10609417> Adopt USE_STAGING_INSTALL_PATH
342
343         Reviewed by David Kilzer.
344
345         * Configurations/WebKit.xcconfig: Define NORMAL_WEBKIT_FRAMEWORKS_DIR, which contains
346         the path where WebKit is normally installed. Update WEBKIT_FRAMEWORKS_DIR to point to
347         the staged frameworks directory when USE_STAGING_INSTALL_PATH is set. Define
348         NORMAL_PRODUCTION_FRAMEWORKS_DIR, which contains the path where our public frameworks
349         are normally installed. Update PRODUCTION_FRAMEWORKS_DIR to point to the staged frameworks
350         directory when USE_STAGING_INSTALL_PATH is set. Always set the framework's install name
351         based on the normal framework location. This prevents an incorrect install name from being
352         used when installing in to the staged frameworks directory. Look for our other frameworks
353         in the staged frameworks directory when USE_STAGING_INSTALL_PATH is set. Update
354         WEBCORE_PRIVATE_HEADERS_DIR to find WebCore at the top level of the staged frameworks
355         directory when USE_STAGING_INSTALL_PATH is set, rather than finding it embedded inside of
356         WebKit.framework.
357
358 2012-01-25  Eric Seidel  <eric@webkit.org>
359
360         HTMLIsIndexElement should not expose HTMLInputElement properties
361         https://bugs.webkit.org/show_bug.cgi?id=76095
362
363         Reviewed by Adam Barth.
364
365         * MigrateHeaders.make:
366
367 2012-01-25  Hajime Morita  <morrita@google.com>
368
369         ENABLE_SHADOW_DOM should be available via build-webkit --shadow-dom
370         https://bugs.webkit.org/show_bug.cgi?id=76863
371
372         Reviewed by Dimitri Glazkov.
373
374         Added a feature flag.
375
376         * Configurations/FeatureDefines.xcconfig:
377
378 2012-01-25  Enrica Casucci  <enrica@apple.com>
379
380         WebView should implement typingAttributes methods to work correctly with the Inspector bar in Mail.
381         https://bugs.webkit.org/show_bug.cgi?id=76951
382         <rdar://problem/9325158>
383
384         Reviewed by Alexey Proskuryakov.
385
386         * WebView/WebHTMLView.mm: Removed typingAttributes implementation.
387         * WebView/WebView.mm:
388         (-[WebView typingAttributes]): Added.
389
390 2012-01-24  Enrica Casucci  <enrica@apple.com>
391
392         WebHTMLView should implement typingAttributes methods to work correctly with the Inspector bar in Mail.
393         https://bugs.webkit.org/show_bug.cgi?id=76951
394         <rdar://problem/9325158>
395
396         The Inspector bar calls the typingAttributes methods on the clients that support it
397         to retrieve the set of attributes representing the style at the selection and uses
398         this information to update the state of the B, I and U buttons.
399         If this method is not supported, it defaults to the attributes of the previous
400         character position, reporting an incorrect state.
401         This occurs only when we have a caret selection.
402         
403         Reviewed by Alexey Proskuryakov.
404
405         * WebView/WebHTMLView.mm:
406         (-[WebHTMLView _styleForAttributeChange:]): Removed dead code.
407         (-[WebHTMLView _updateFontPanel]): Removed comment that doesn't apply anymore.
408         (-[WebHTMLView typingAttributes]): Added.
409
410 2012-01-24  Benjamin Poulain  <bpoulain@apple.com>
411
412         pageCacheSupportsPlugins should default to true on WebKit1
413         https://bugs.webkit.org/show_bug.cgi?id=76891
414
415         Reviewed by Joseph Pecoraro.
416
417         The default was left out of r102619 by accident.
418
419         * WebView/WebPreferences.mm:
420         (+[WebPreferences initialize]):
421
422 2012-01-23  Geoffrey Garen  <ggaren@apple.com>
423
424         JSValue::toString() should return a JSString* instead of a UString
425         https://bugs.webkit.org/show_bug.cgi?id=76861
426
427         Reviewed by Gavin Barraclough.
428
429         Mechanical changes to call value() after calling toString(), to
430         convert from "JS string" (JSString*) to "C++ string" (UString), since
431         toString() no longer returns a "C++ string".
432
433         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
434         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
435         * WebView/WebFrame.mm:
436         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
437         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
438
439 2012-01-20  Sam Weinig  <sam@webkit.org>
440
441         Make WebCore RunLoop work for WebKit1
442         https://bugs.webkit.org/show_bug.cgi?id=76739
443
444         Reviewed by Anders Carlsson.
445
446         * Carbon/CarbonWindowAdapter.mm:
447         (+[CarbonWindowAdapter initialize]):
448         * History/WebBackForwardList.mm:
449         (+[WebBackForwardList initialize]):
450         * History/WebHistoryItem.mm:
451         (+[WebHistoryItem initialize]):
452         * Misc/WebElementDictionary.mm:
453         (+[WebElementDictionary initialize]):
454         * Misc/WebIconDatabase.mm:
455         (+[WebIconDatabase initialize]):
456         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
457         (+[WebHostedNetscapePluginView initialize]):
458         * Plugins/WebBaseNetscapePluginView.mm:
459         * Plugins/WebBasePluginPackage.mm:
460         * Plugins/WebNetscapePluginView.mm:
461         (+[WebNetscapePluginView initialize]):
462         * WebCoreSupport/WebEditorClient.mm:
463         (+[WebUndoStep initialize]):
464         * WebCoreSupport/WebFrameLoaderClient.mm:
465         * WebView/WebArchive.mm:
466         (+[WebArchivePrivate initialize]):
467         * WebView/WebDataSource.mm:
468         (+[WebDataSourcePrivate initialize]):
469         * WebView/WebHTMLView.mm:
470         (+[WebHTMLViewPrivate initialize]):
471         (+[WebHTMLView initialize]):
472         * WebView/WebResource.mm:
473         (+[WebResourcePrivate initialize]):
474         * WebView/WebTextIterator.mm:
475         (+[WebTextIteratorPrivate initialize]):
476         * WebView/WebView.mm:
477         (+[WebView initialize]):
478         * WebView/WebViewData.mm:
479         (+[WebViewPrivate initialize]):
480         Initialized the main run loop in addition to other initialization.
481
482 2012-01-20  Simon Fraser  <simon.fraser@apple.com>
483
484         https://bugs.webkit.org/show_bug.cgi?id=76444
485         
486         #if ENABLE(CSS_SHADERS) cannot appear in framework headers.
487         This breaks builds.
488
489         * WebView/WebPreferences.mm:
490         * WebView/WebPreferencesPrivate.h:
491
492 2012-01-20  Alexandru Chiculita  <achicu@adobe.com>
493
494         CSS Shaders: Add a Settings flag to enable/disable CSS Shaders at runtime
495         https://bugs.webkit.org/show_bug.cgi?id=76444
496
497         Added private WebPreference property called "WebKitCSSCustomFilterEnabled".
498         
499         Reviewed by Nikolas Zimmermann.
500
501         * WebView/WebPreferenceKeysPrivate.h:
502         * WebView/WebPreferences.mm:
503         (+[WebPreferences initialize]):
504         (-[WebPreferences cssCustomFilterEnabled]):
505         (-[WebPreferences setCSSCustomFilterEnabled:]):
506         * WebView/WebPreferencesPrivate.h:
507         * WebView/WebView.mm:
508         (-[WebView _preferencesChanged:]):
509
510 2012-01-17  Enrica Casucci  <enrica@apple.com>
511
512         Missing NSForegroundColorAttributeName should be treated as black instead of transparent.
513         https://bugs.webkit.org/show_bug.cgi?id=76490
514         <rdar://problem/9460733>
515         
516         Starting with Lion, there is no more NSForegroundColor attribute in the dictionary
517         if the color matches the default (solid black).
518         The fix consists in treating the lack of color as solid black instead of transparent as
519         we did before.
520
521         Added a TestWebKitAPI test.
522         
523         Reviewed by Darin Adler and Dan Bernstein.
524
525         * WebView/WebHTMLView.mm:
526         (-[WebHTMLView _styleForAttributeChange:]):
527
528 2012-01-17  Matthew Delaney  <mdelaney@apple.com>
529
530         On post-Lion releases, preserve the Lion behavior where WebKit explicitly calls -setGeometryFlipped on the hosting layer for applications that were linked on Lion or earlier.
531         <rdar://problem/10692025>
532
533         Reviewed by Simon Fraser.
534
535         * WebCoreSupport/WebSystemInterface.mm: Init newly added function.
536         * WebView/WebHTMLView.mm: Added case for post-Lion builds that calls -setGeometryFlipped if the app is linked on or before Lion.
537
538 2012-01-17  Enrica Casucci  <enrica@apple.com>
539
540         REGRESSION (r101413): Correction panel overlaps misspelled text.
541         https://bugs.webkit.org/show_bug.cgi?id=74589
542         <rdar://problem/10585115>
543
544         When converting the rectangle from the root view, we need
545         to take into account the height of the rectangle.
546         
547         Reviewed by Anders Carlsson.
548
549         * WebView/WebView.mm:
550         (-[WebView _convertRectFromRootView:]):
551
552 2012-01-16  Simon Fraser  <simon.fraser@apple.com>
553
554         <rdar://problem/10703228> ASSERTION FAILED: Uncaught exception - Cannot lock focus on image <NSImage 0x1206572a0 Size={0, 0} Reps=( )>, because it is size zero loading techcrunch.com
555
556         Reviewed by Anders Carlsson.
557         
558         Avoid trying to create image snapshots for zero-sized plugins, because
559         it causes -[NSView lockFocus] to throw an exception.
560
561         * Plugins/WebBaseNetscapePluginView.mm:
562         (-[WebBaseNetscapePluginView cacheSnapshot]):
563
564 2012-01-16  Alexey Proskuryakov  <ap@apple.com>
565
566         A follow-up fix for:
567         A warning is logged to console when typing a bare "/" in Safari address bar
568         https://bugs.webkit.org/show_bug.cgi?id=76236
569
570         <rdar://problem/10702986>        
571
572         Reviewed by John Sullivan.
573
574         * Misc/WebNSURLExtras.mm: (+[NSURL _web_URLWithData:relativeToURL:]): It's OK to have a
575         path when there is a base URL.
576
577 2012-01-16  Jon Lee  <jonlee@apple.com>
578
579         Build fix for r105086.
580
581         * Configurations/FeatureDefines.xcconfig:
582
583 2012-01-12  Alexey Proskuryakov  <ap@apple.com>
584
585         A warning is logged to console when typing a bare "/" in Safari address bar
586         https://bugs.webkit.org/show_bug.cgi?id=76236
587
588         Reviewed by John Sullivan.
589
590         * Misc/WebNSURLExtras.mm: (+[NSURL _web_URLWithData:relativeToURL:]): Bail out early for paths.
591
592 2012-01-16  Pablo Flouret  <pablof@motorola.com>
593
594         Fix compilation errors on build-webkit --debug --no-svg --no-svg-fonts --no-svg-dom-objc-bindings on mac.
595         https://bugs.webkit.org/show_bug.cgi?id=75865
596
597         Reviewed by Hajime Morita.
598
599         * WebView/WebFrame.mm:
600         (-[WebFrame _pauseSVGAnimation:onSMILNode:atTime:]):
601
602 2012-01-15  Pablo Flouret  <pablof@motorola.com>
603
604         Fix compilation errors on build-webkit --debug --no-video on mac.
605         https://bugs.webkit.org/show_bug.cgi?id=75867
606
607         Reviewed by Philippe Normand.
608
609         - WebChromeClient::fullScreenRendererChanged() declaration wrongly guarded
610           by VIDEO feature instead of FULLSCREEN_API.
611         - _isAnyMoviePlaying implementation depends on VIDEO.
612
613         * WebCoreSupport/WebChromeClient.h:
614         * WebView/WebFullScreenController.mm:
615         (-[WebFullScreenController _isAnyMoviePlaying]):
616
617 2012-01-11  Beth Dakin  <bdakin@apple.com>
618
619         https://bugs.webkit.org/show_bug.cgi?id=75904
620         WebKit 1: Scrollbar uiStateTransitionProgress requires tracking the mouse all 
621         the time
622         -and corresponding-
623         <rdar://problem/10498816>
624
625         Reviewed by Darin Adler.
626
627         New ivar trackingAreaForNonKeyWindow stores our NSTrackingArea whenever we 
628         have one.
629         * WebView/WebHTMLView.mm:
630         (-[WebHTMLViewPrivate dealloc]):
631         (-[WebHTMLViewPrivate clear]):
632
633         When we know that mouse movements won't affect anything other than 
634         scrollbars, call our new function passMouseMovedEventToScrollbars(), 
635         otherwise we'll call the old mouseMoved().
636         (mouseEventIsPartOfClickOrDrag):
637         (-[WebHTMLView _updateMouseoverWithEvent:]):
638
639         Make sure not to remove the mouse observer when there are legacy scrollbars.
640         (-[WebHTMLView removeMouseMovedObserver]):
641
642         Set up a tracking area when the window is not key to ensure that the WebView 
643         gets the relevant events. Remove it when the window is key again so that we 
644         rely on the existing mechanism.
645         (-[WebHTMLView windowDidBecomeKey:]):
646         (-[WebHTMLView windowDidResignKey:]):
647
648 2012-01-10  Dan Bernstein  <mitz@apple.com>
649
650         Made -[WebHistoryItem copyWithZone:] allocate an object of the same class as the receiver.
651
652         Reviewed by Mark Rowe.
653
654         * History/WebHistoryItem.mm:
655         (-[WebHistoryItem copyWithZone:]):
656
657 2012-01-10  Chris Marrin  <cmarrin@apple.com>
658
659         Wrapped allowedCompositingTriggers in ACCELERATED_COMPOSITING ifdef to make non-accelerated builds work
660
661         Unreviewed.
662
663         * WebCoreSupport/WebChromeClient.h:
664
665 2012-01-10  Chris Marrin  <cmarrin@apple.com>
666
667         Turn off the FilterTrigger in WebKit and WebKit2
668         https://bugs.webkit.org/show_bug.cgi?id=75914
669
670         Reviewed by Simon Fraser.
671
672         Implement allowedCompositingTriggers to turn on all compositing triggers except FilterTrigger.
673
674         * WebCoreSupport/WebChromeClient.h:
675         (WebChromeClient::allowedCompositingTriggers):
676
677 2012-01-10  Dan Bernstein  <mitz@apple.com>
678
679         Change -[WebHistoryItem copyWithZone:] to not use NSCopyObject()
680         https://bugs.webkit.org/show_bug.cgi?id=75980
681
682         Reviewed by Mark Rowe.
683
684         * History/WebHistoryItem.mm:
685         (-[WebHistoryItem copyWithZone:]): Replaced NSCopyObject() with
686         -alloc, -initWithWebCoreHistoryItem:.
687
688 2012-01-06  Simon Fraser  <simon.fraser@apple.com>
689
690         Mitigate scrollbar differences when running pixel tests
691         https://bugs.webkit.org/show_bug.cgi?id=67217
692
693         Reviewed by Dan Bernstein.
694         
695         Make it possible to register a custom NSScroller class, which
696         the WebDynamicScrollBarsView will use when mock scrollbars are enabled.
697         
698         Also ensure that the WebPreferences mock scrollbars preference is
699         migrated into Settings.
700
701         * WebView/WebDynamicScrollBarsView.h:
702         * WebView/WebDynamicScrollBarsView.mm:
703         (+[WebDynamicScrollBarsView _horizontalScrollerClass]):
704         (+[WebDynamicScrollBarsView _verticalScrollerClass]):
705         (+[WebDynamicScrollBarsView setCustomScrollerClass:]):
706         * WebView/WebView.mm:
707         (-[WebView _preferencesChanged:]):
708
709 2012-01-05  Dan Bernstein  <mitz@apple.com>
710
711         <rdar://problem/10633760> Update copyright strings
712
713         Reviewed by Mark Rowe.
714
715         * Info.plist:
716
717 2012-01-05  Pratik Solanki  <psolanki@apple.com>
718
719         WebFrameLoaderClient::userAgent does unnecessary NSString/NSURL conversions
720         https://bugs.webkit.org/show_bug.cgi?id=75586
721
722         Reviewed by Alexey Proskuryakov.
723
724         We do unnecessary KURL->NSURL* and String<->NSString* when calling [WebView
725         userAgentForURL:] from WebFrameLoaderClient::userAgent. Instead we add a separate function,
726         _userAgentString that returns a WTF::String to make this call faster.
727
728         * WebCoreSupport/WebFrameLoaderClient.mm:
729         (WebFrameLoaderClient::userAgent):
730         * WebView/WebView.mm:
731         (-[WebView _userAgentString]):
732         (-[WebView userAgentForURL:]):
733         * WebView/WebViewInternal.h:
734
735 2012-01-04  Anders Carlsson  <andersca@apple.com>
736
737         Ambiguous if-then-else in Source/WebKit/mac/Misc/WebNSPasteboardExtras.mm
738         https://bugs.webkit.org/show_bug.cgi?id=75447
739
740         Reviewed by Brian Weinstein.
741
742         Resolve the ambiguity.
743
744         * Misc/WebNSPasteboardExtras.mm:
745         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:source:]):
746
747 2012-01-04  Mihnea Ovidenie  <mihnea@adobe.com>
748
749         [Mac]Fix build after changeset 103997
750         https://bugs.webkit.org/show_bug.cgi?id=75530
751
752         Reviewed by Andreas Kling.
753
754         * WebView/WebFrame.mm:
755         * WebView/WebHTMLView.mm:
756         * WebView/WebPDFView.mm:
757         * WebView/WebView.mm:
758
759 2012-01-03  Jon Lee  <jonlee@apple.com>
760
761         Leak of WebNotificationClient when page is destroyed
762         https://bugs.webkit.org/show_bug.cgi?id=74980
763         <rdar://problem/10611231>
764
765         Reviewed by Mark Rowe.
766
767         * WebCoreSupport/WebNotificationClient.h:
768         * WebCoreSupport/WebNotificationClient.mm:
769         (WebNotificationClient::notificationControllerDestroyed): Remove the instance.
770
771 2012-01-02  Dan Bernstein  <mitz@apple.com>
772
773         [mac] Remove -[WebView setHoverFeedbackSuspended:]
774         https://bugs.webkit.org/show_bug.cgi?id=75406
775
776         Reviewed by Tim Hatcher.
777
778         * WebView/WebHTMLView.mm:
779         (-[WebHTMLView _updateMouseoverWithEvent:]): Removed check for suspended hover updates.
780         * WebView/WebHTMLViewInternal.h: Removed -_hoverFeedbackSuspendedChanged.
781         * WebView/WebView.mm:
782         (-[WebView setHoverFeedbackSuspended:]): Left empty implementation to support versions of
783         Safari that call this.
784         (-[WebView isHoverFeedbackSuspended]): Left implementation that always returns NO to support
785         versions of Safari that call this.
786         * WebView/WebViewData.h: Removed hoverFeedbackSuspended ivar.
787         * WebView/WebViewPrivate.h: Removed method definitions.
788
789 2011-12-31  Dan Bernstein  <mitz@apple.com>
790
791         WebKit/mac changes for: REGRESSION (WebKit2): Cursor, hover states not updated when page scrolls under stationary mouse pointer
792         https://bugs.webkit.org/show_bug.cgi?id=75405
793
794         Reviewed by Anders Carlsson.
795
796         Removed the WebKit/mac mechanism for dispatching fake mouse moved events
797         when an HTML frame scrolls, since FrameView now does this.
798
799         * WebView/WebHTMLView.mm:
800         (-[WebHTMLViewPrivate dealloc]): Removed an assertion about a removed ivar.
801         (-[WebHTMLView _updateMouseoverWithFakeEvent]): Removed call to
802         -_cancelUpdateMouseoverTimer.
803         (-[WebHTMLView _frameOrBoundsChanged]): Removed code to schedule a timer
804         for dispatching a mouse moved event on scroll.
805         (-[WebHTMLView close]): Removed call to _cancelUpdateMouseoverTimer.
806         (-[WebHTMLView viewWillMoveToWindow:]): Ditto.
807         (-[WebHTMLView mouseDown:]): Ditto.
808
809 2011-12-23  Ryosuke Niwa  <rniwa@webkit.org>
810
811         Chromium Mac build fix.
812
813         * WebCoreSupport/WebSystemInterface.mm:
814         (InitWebCoreSystemInterface):
815
816 2011-12-21  Sam Weinig  <sam@webkit.org>
817
818         Start extracting platform specific bits out of PlatformEvents
819         https://bugs.webkit.org/show_bug.cgi?id=75063
820
821         Reviewed by Anders Carlsson.
822
823         * WebCoreSupport/WebSystemInterface.mm:
824         (InitWebCoreSystemInterface):
825         * WebView/WebFrame.mm:
826         * WebView/WebHTMLView.mm:
827         (-[WebHTMLView menuForEvent:]):
828         (-[WebHTMLView acceptsFirstMouse:]):
829         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
830         (currentKeyboardEvent):
831         (-[WebHTMLView flagsChanged:]):
832         * WebView/WebPDFView.mm:
833         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
834         * WebView/WebView.mm:
835
836 2011-12-21  Timothy Hatcher  <timothy@apple.com>
837
838         Web Inspector: suppress incremental rendering and use application chrome mode
839
840         https://webkit.org/b/75026
841
842         Reviewed by Joseph Pecoraro.
843
844         * WebCoreSupport/WebInspectorClient.mm:
845         (-[WebInspectorWindowController init]): Sort the preferences, remove the Leopard font family setting,
846         set suppress incremental rendering and use application chrome mode.
847
848 2011-12-20  Pavel Feldman  <pavel.feldman@gmail.com>
849
850         Web Inspector: reproducible crash after closing web inspector and browser window  (iCab)
851         https://bugs.webkit.org/show_bug.cgi?id=74255
852
853         Reviewed by Yury Semikhatsky.
854
855         * WebCoreSupport/WebInspectorClient.h:
856         * WebCoreSupport/WebInspectorClient.mm:
857         (WebInspectorClient::bringFrontendToFront):
858         (-[WebInspectorWindowController destroyInspectorView:]):
859
860 2011-12-19  Eric Carlson  <eric.carlson@apple.com>
861
862         Enable <track> for Mac build
863         https://bugs.webkit.org/show_bug.cgi?id=74838
864
865         Reviewed by Darin Adler.
866
867         * Configurations/FeatureDefines.xcconfig:
868
869 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
870
871         Rename registerCommandFor(Undo|Redo) to register(Undo|Redo)Step
872         https://bugs.webkit.org/show_bug.cgi?id=74748
873
874         Reviewed by Eric Seidel.
875
876         * WebCoreSupport/WebEditorClient.h:
877         * WebCoreSupport/WebEditorClient.mm:
878         (WebEditorClient::registerUndoOrRedoStep):
879         (WebEditorClient::registerUndoStep):
880         (WebEditorClient::registerRedoStep):
881
882 2011-12-16  Sam Weinig  <sam@webkit.org>
883
884         Give PlatformEvents a base class
885         https://bugs.webkit.org/show_bug.cgi?id=74685
886
887         Reviewed by Anders Carlsson.
888
889         Add a base class for PlatformMouseEvent, PlatformKeyboardEvent, PlatformWheelEvent
890         and PlatformGestureEvent and move Type enumeration and modifiers down to it.
891
892         * WebView/WebFrame.mm:
893         (-[WebFrame _dragSourceEndedAt:operation:]):
894         * WebView/WebHTMLView.mm:
895         (currentKeyboardEvent):
896         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
897         * WebView/WebPDFView.mm:
898         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
899
900 2011-12-16  Simon Fraser  <simon.fraser@apple.com>
901
902         Fix a #elsif fumble in my earlier commit.
903
904         * WebView/WebHTMLView.mm:
905         (-[WebHTMLView attachRootLayer:]):
906
907 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
908
909         Only EditCommandComposition should implement unapply and reapply
910         https://bugs.webkit.org/show_bug.cgi?id=74490
911
912         Reviewed by Eric Seidel.
913
914         * WebCoreSupport/WebEditorClient.h:
915         * WebCoreSupport/WebEditorClient.mm:
916         (-[WebUndoStep initWithUndoStep:]):
917         (-[WebUndoStep dealloc]):
918         (+[WebUndoStep stepWithUndoStep:]):
919         (-[WebUndoStep step]):
920         (-[WebEditorUndoTarget undoEditing:]):
921         (-[WebEditorUndoTarget redoEditing:]):
922         (WebEditorClient::registerCommandForUndoOrRedo):
923         (WebEditorClient::registerCommandForUndo):
924         (WebEditorClient::registerCommandForRedo):
925
926 2011-12-16  Simon Fraser  <simon.fraser@apple.com>
927
928         <rdar://problem/10589427> Avoid calling -setGeometryFlipped ourselves on the layer hosting view's layer
929
930         Reviewed by Sam Weinig.
931         
932         Now that we're using a flipped view to host the compositing layers,
933         we should not set geometryFlipped on the root layer ourselves.
934
935         * WebView/WebHTMLView.mm:
936         (-[WebHTMLView attachRootLayer:]):
937
938 2011-12-16  Mark Hahnenberg  <mhahnenberg@apple.com>
939
940         De-virtualize destructors
941         https://bugs.webkit.org/show_bug.cgi?id=74331
942
943         Reviewed by Geoffrey Garen.
944
945         * Plugins/Hosted/ProxyRuntimeObject.h: Remove empty virtual destructor.
946         * Plugins/Hosted/ProxyRuntimeObject.mm:
947
948 2011-12-14  Ryosuke Niwa  <rniwa@webkit.org>
949
950         Mac build fix after r102874.
951
952         * WebCoreSupport/WebChromeClient.mm:
953
954 2011-12-14  Jing Zhao  <jingzhao@chromium.org>
955
956         Opening two popup menus by dispatchEvent() makes problems.
957         https://bugs.webkit.org/show_bug.cgi?id=73304
958
959         Reviewed by Kent Tamura.
960
961         * WebCoreSupport/WebChromeClient.h: Overrides hasOpenedPopup().
962         * WebCoreSupport/WebChromeClient.mm:
963         (WebChromeClient::hasOpenedPopup): Not implemented.
964
965 2011-12-14  Michael Saboff  <msaboff@apple.com>
966
967         Mac WebScriptDebugger crashes beneath sourceParsed()
968         https://bugs.webkit.org/show_bug.cgi?id=74564
969
970         Reviewed by Gavin Barraclough.
971
972         * WebView/WebScriptDebugger.mm:
973         (toNSString): Change to use ->characters() method to
974         actually get characters for string conversion.
975
976 2011-12-14  Hajime Morrita  <morrita@chromium.org>
977
978         JS_INLINE and WTF_INLINE should be visible from WebCore
979         https://bugs.webkit.org/show_bug.cgi?id=73191
980
981         Reviewed by Kevin Ollivier.
982
983         Removed macro definitions which is now provided by Platform.h
984
985         * WebKitPrefix.h:
986
987 2011-12-13  Jon Lee  <jonlee@apple.com>
988
989         Enable notifications on Mac.
990
991         Reviewed by Sam Weinig.
992
993         * Configurations/FeatureDefines.xcconfig:
994
995 2011-12-12  Ryosuke Niwa  <rniwa@webkit.org>
996
997         WebKit code shouldn't be calling applyCommand directly
998         https://bugs.webkit.org/show_bug.cgi?id=74337
999
1000         Reviewed by Darin Adler.
1001
1002         * WebView/WebFrame.mm:
1003         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
1004
1005 2011-12-12  Brady Eidson  <beidson@apple.com>
1006
1007         Page cache should support pages with plugins.
1008         <rdar://problem/5190122> and https://bugs.webkit.org/show_bug.cgi?id=13634
1009
1010         Expose a WebKit preference for the page cache supporting plugins (on by default).
1011
1012         Reviewed by Anders Carlsson.
1013
1014         * WebView/WebPreferenceKeysPrivate.h:
1015
1016         * WebView/WebPreferences.mm:
1017         (-[WebPreferences pageCacheSupportsPlugins]):
1018         (-[WebPreferences setPageCacheSupportsPlugins:]):
1019         * WebView/WebPreferencesPrivate.h:
1020
1021         * WebView/WebView.mm:
1022         (-[WebView _preferencesChanged:]):
1023
1024 2011-12-12  Dan Bernstein  <mitz@apple.com>
1025
1026         <rdar://problem/10328474> Text highlight changes to gray selection color when menu extra is shown
1027
1028         Reviewed by John Sullivan.
1029
1030         * WebView/WebView.mm:
1031         (-[WebView _updateActiveState]): Changed to use -[NSWindow _hasKeyAppearance] instead
1032         of -isKeyWindow. The former also returns YES when a menu extra is open.
1033         (-[WebView addWindowObserversForWindow:]): Removed code to observe
1034         NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification.
1035         (-[WebView removeWindowObservers]): Removed code to stop observing the above.
1036         (-[WebView _windowChangedKeyState]): Overridden this to call _updateActiveState.
1037         This is called when the result of -_hasKeyAppearance changes.
1038         (-[WebView _windowWillOrderOnScreen:]): Removed call to _updateActiveState,
1039         previously needed for popovers, because _windowChangedKeyState is invoked
1040         at the right time for them.
1041         (-[WebView _windowWillOrderOffScreen:]): Ditto.
1042
1043 2011-12-07  Mark Rowe  <mrowe@apple.com>
1044
1045         Fix the 32-bit build.
1046
1047         Ignore some warnings that only occur in 32-bit.
1048
1049         * Plugins/WebNetscapePluginPackage.mm:
1050
1051 2011-12-07  Mary Wu  <mary.wu@torchmobile.com.cn>
1052
1053         Change function name InitializeLoggingChannelsIfNecessary to follow coding style guideline
1054         https://bugs.webkit.org/show_bug.cgi?id=73986
1055
1056         Reviewed by Kenneth Rohde Christiansen.
1057
1058         * WebView/WebView.mm:
1059         (-[WebView _commonInitializationWithFrameName:groupName:]):
1060
1061 2011-12-06  Alexey Proskuryakov  <ap@apple.com>
1062
1063         REGRESSION (WebKit2): Kill ring is not cleared when selection changes
1064         https://bugs.webkit.org/show_bug.cgi?id=73888
1065         <rdar://problem/10532310>
1066
1067         Reviewed by Mark Rowe.
1068
1069         * WebView/WebHTMLView.mm:
1070         (-[WebHTMLView becomeFirstResponder]): Added a FIXME comment.
1071         (-[WebHTMLView _selectionChanged]): Moved the code to clear kill ring to WebCore. The rest
1072         of kill ring implementation is there, so it makes no sense to have this call in WebKits.
1073
1074 2011-12-05  Anders Carlsson  <andersca@apple.com>
1075
1076         Make LayerFlushSchedulerClient::flushLayers indicate whether the flush was successful or not
1077         https://bugs.webkit.org/show_bug.cgi?id=73862
1078
1079         Reviewed by Andy Estes.
1080
1081         Remove the call to LayerFlushScheduler::invalidate and return true instead. Return false for the cases
1082         where we don't want the layer flush scheduler to be invalidated.
1083
1084         * WebView/WebView.mm:
1085         (LayerFlushController::flushLayers):
1086         * WebView/WebViewData.h:
1087
1088 2011-12-05  Eric Carlson  <eric.carlson@apple.com>
1089
1090         Add WebKit preferences for text track settings
1091         https://bugs.webkit.org/show_bug.cgi?id=73721
1092
1093         Reviewed by John Sullivan.
1094
1095         * WebView/WebPreferenceKeysPrivate.h: Added #define for shouldDisplaySubtitles, shouldDisplayCaptions, 
1096         and shouldDisplayTextDescriptions properties.
1097
1098         * WebView/WebPreferences.mm:
1099         (+[WebPreferences initialize]): Initialize new preferences to NO.
1100         (-[WebPreferences setShouldDisplaySubtitles:]): Added.
1101         (-[WebPreferences shouldDisplaySubtitles]): Ditto.
1102         (-[WebPreferences setShouldDisplayCaptions:]): Ditto.
1103         (-[WebPreferences shouldDisplayCaptions]): Ditto.
1104         (-[WebPreferences setShouldDisplayTextDescriptions:]): Ditto.
1105         (-[WebPreferences shouldDisplayTextDescriptions]): Ditto.
1106         * WebView/WebPreferencesPrivate.h:
1107
1108         * WebView/WebView.mm:
1109         (-[WebView _preferencesChanged:]): Updates WebCore settings from WebKit prefs.
1110
1111 2011-12-03  Dan Bernstein  <mitz@apple.com>
1112
1113         <rdar://problem/10523721> Crash at WebCore::SubresourceLoader::releaseResources
1114         Reviewed by Darin Adler.
1115
1116         * WebView/WebView.mm:
1117         (-[WebView _removeObjectForIdentifier:]): Changed the CFRelease(self) into
1118         a WebCFAutorelease(self). This prevents re-entry into this method due to
1119         the WebView closing and canceling all subresource loads, including the
1120         one we have just removed.
1121
1122 2011-12-02  David Levin  <levin@chromium.org>
1123
1124         Rename WTF class from TemporarilyChange to TemporaryChange.
1125         https://bugs.webkit.org/show_bug.cgi?id=73479
1126
1127         Reviewed by Eric Seidel.
1128
1129         * ForwardingHeaders/wtf/TemporarilyChange.h: Removed.
1130         * ForwardingHeaders/wtf/TemporaryChange.h: Added.
1131
1132 2011-12-02  Simon Fraser  <simon.fraser@apple.com>
1133
1134         <rdar://problem/10423627> Layers are flipped in WebKit1 views
1135
1136         Reviewed by Sam Weinig.
1137         
1138         Host the compositing layers in an NSView which is flipped, which helps AppKit
1139         get the geometry right in some situations.
1140
1141         * WebView/WebHTMLView.mm:
1142         (-[WebLayerHostingFlippedView isFlipped]):
1143         (-[WebHTMLView attachRootLayer:]):
1144
1145 2011-12-02  Hajime Morrita  <morrita@chromium.org>
1146
1147         Unreviewed, rolling out r101751 and r101775.
1148         http://trac.webkit.org/changeset/101751
1149         http://trac.webkit.org/changeset/101775
1150         https://bugs.webkit.org/show_bug.cgi?id=73191
1151
1152         breaks Windows build
1153
1154         * WebKitPrefix.h:
1155
1156 2011-12-01  Hajime Morrita  <morrita@chromium.org>
1157
1158         JS_INLINE and WTF_INLINE should be visible from WebCore
1159         https://bugs.webkit.org/show_bug.cgi?id=73191
1160
1161         Reviewed by Kevin Ollivier.
1162
1163         Removed macro definitions which is now provided by Platform.h
1164
1165         * WebKitPrefix.h:
1166
1167 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
1168
1169         Remove an unneeded argument from FrameLoaderClient::download
1170         https://bugs.webkit.org/show_bug.cgi?id=73486
1171
1172         Reviewed by Andreas Kling.
1173
1174         * WebCoreSupport/WebFrameLoaderClient.h:
1175         * WebCoreSupport/WebFrameLoaderClient.mm:
1176         (WebFrameLoaderClient::download):
1177         Updated for the change.
1178
1179 2011-11-30  Dan Bernstein  <mitz@apple.com>
1180
1181         WebKit/mac part of: Allow the length of a page along the pagination axis to differ from the length of the view
1182         https://bugs.webkit.org/show_bug.cgi?id=73476
1183
1184         Reviewed by Anders Carlsson.
1185
1186         * WebView/WebView.mm:
1187         (-[WebView _setPageLength:]): Added this accessor.
1188         (-[WebView _pageLength]): Ditto.
1189         * WebView/WebViewPrivate.h:
1190
1191 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
1192
1193         Download page URL should be set by WebCore
1194         https://bugs.webkit.org/show_bug.cgi?id=73358
1195
1196         Reviewed by Darin Adler.
1197
1198         * WebCoreSupport/WebFrameLoaderClient.h: Removed setOriginalURLForDownload, which is now
1199         in WebCore.
1200
1201         * WebCoreSupport/WebFrameLoaderClient.mm:
1202         (WebFrameLoaderClient::download): There is no need to set original URL post factum any more.
1203         (WebFrameLoaderClient::startDownload): Ditto.
1204
1205 2011-11-29  David Levin  <levin@chromium.org>
1206
1207         Add a way to revert a variable to its previous value after leaving a scope.
1208         https://bugs.webkit.org/show_bug.cgi?id=73371
1209
1210         Reviewed by Adam Barth.
1211
1212         * ForwardingHeaders/wtf/TemporarilyChange.h: Added.
1213
1214 2011-11-29  Jessie Berlin  <jberlin@apple.com>
1215
1216         WKKeyValueStorageManagerGetKeyValueStorageOrigins may not report the correct list of origins
1217         the first time it is called.
1218         https://bugs.webkit.org/show_bug.cgi?id=73374 (<rdar://problem/10196057>)
1219
1220         Reviewed by Brady Eidson.
1221
1222         * Storage/WebStorageTrackerClient.h:
1223         * Storage/WebStorageTrackerClient.mm:
1224         (WebStorageTrackerClient::didFinishLoadingOrigins):
1225
1226 2011-11-15  Anders Carlsson  <andersca@apple.com>
1227
1228         DragClient::dragSourceActionMaskForPoint should use root view coordinates
1229         https://bugs.webkit.org/show_bug.cgi?id=72409
1230
1231         Reviewed by Sam Weinig.
1232
1233         * WebCoreSupport/WebDragClient.mm:
1234         (WebDragClient::dragSourceActionMaskForPoint):
1235         Use -[WebView _convertPointFromRootView:] to convert the point to the web view coordinate system.
1236
1237 2011-11-15  Anders Carlsson  <andersca@apple.com>
1238
1239         EditorClient::showCorrectionPanel should pass the string bounding box in root view coordinates
1240         https://bugs.webkit.org/show_bug.cgi?id=72408
1241
1242         Reviewed by Sam Weinig.
1243
1244         * WebCoreSupport/CorrectionPanel.mm:
1245         (CorrectionPanel::show):
1246         Convert the bounding rect to web view coordinates.
1247
1248         * WebView/WebView.mm:
1249         (-[WebView _convertPointFromRootView:]):
1250         (-[WebView _convertRectFromRootView:]):
1251         * WebView/WebViewInternal.h:
1252         Add helper methods for converting from root view coordinates to web view coordinates.
1253
1254 2011-11-29  Roland Steiner  <rolandsteiner@chromium.org>
1255
1256         <style scoped>: add ENABLE(STYLE_SCOPED) flag to WebKit
1257         https://bugs.webkit.org/show_bug.cgi?id=72848
1258
1259         Reviewed by Dimitri Glazkov.
1260
1261         * Configurations/FeatureDefines.xcconfig:
1262
1263 2011-11-28  Jon Lee  <jonlee@apple.com>
1264
1265         Create skeleton framework for notifications support in WK2
1266         https://bugs.webkit.org/show_bug.cgi?id=73253
1267         <rdar://problem/10356943>
1268
1269         Reviewed by Sam Weinig.
1270
1271         * Configurations/FeatureDefines.xcconfig: Split out ENABLE_NOTIFICATIONS based on platform.
1272
1273         * WebCoreSupport/WebNotificationClient.h: Added.
1274         (WebNotificationClient::webView):
1275         * WebCoreSupport/WebNotificationClient.mm: Added. Implemented as stubs for now.
1276         (WebNotificationClient::WebNotificationClient):
1277         (WebNotificationClient::show):
1278         (WebNotificationClient::cancel):
1279         (WebNotificationClient::notificationObjectDestroyed):
1280         (WebNotificationClient::requestPermission):
1281         (WebNotificationClient::cancelRequestsForPermission):
1282         (WebNotificationClient::checkPermission):
1283         * WebView/WebView.mm: Set PageClient's notification client to an instance of this stubbed class.
1284
1285 2011-11-28  Adam Roben  <aroben@apple.com>
1286
1287         Properly retain the OS X version string
1288
1289         Fixes <http://webkit.org/b/73214> REGRESSION (r101215): Crash on launch beneath +[WebView
1290         _standardUserAgentWithApplicationName:]
1291
1292         Reviewed by Antti Koivisto.
1293
1294         * WebView/WebView.mm:
1295         (createMacOSXVersionString): Retain the string we're returning, since this function is
1296         supposed to return an owning reference to the caller.
1297
1298 2011-11-28  Hayato Ito  <hayato@chromium.org>
1299
1300         Fix chromium canary build after r101215.
1301         Unreviewed. Build fix.
1302
1303         * WebCoreSupport/WebSystemInterface.mm:
1304         (InitWebCoreSystemInterface):
1305
1306 2011-11-27  Mark Rowe  <mrowe@apple.com>
1307
1308         <http://webkit.org/b/72665> Switch to a more modern approach to retrieving the OS marketing version
1309
1310         Reviewed by Dan Bernstein.
1311
1312         * WebCoreSupport/WebSystemInterface.mm:
1313         (InitWebCoreSystemInterface): Set up wkGetMacOSXVersionString.
1314         * WebView/WebView.mm:
1315         (createMacOSXVersionString): Use WKGetMacOSXVersionString.
1316
1317 2011-11-26  Pavel Feldman  <pfeldman@google.com>
1318
1319         Web Inspector: remove disconnectFromBackend from the protocol.
1320         https://bugs.webkit.org/show_bug.cgi?id=73127
1321
1322         Reviewed by Yury Semikhatsky.
1323
1324         * WebCoreSupport/WebInspectorClient.h:
1325         * WebCoreSupport/WebInspectorClient.mm:
1326         (WebInspectorClient::inspectorDestroyed):
1327         (WebInspectorClient::closeInspectorFrontend):
1328
1329 2011-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
1330
1331         Unreviewed, rolling out r101193.
1332         http://trac.webkit.org/changeset/101193
1333         https://bugs.webkit.org/show_bug.cgi?id=73158
1334
1335         Breaks Windows and Qt minimal. (Requested by pfeldman on
1336         #webkit).
1337
1338         * WebCoreSupport/WebInspectorClient.h:
1339         * WebCoreSupport/WebInspectorClient.mm:
1340         (WebInspectorClient::inspectorDestroyed):
1341
1342 2011-11-26  Pavel Feldman  <pfeldman@google.com>
1343
1344         Web Inspector: remove disconnectFromBackend from the protocol.
1345         https://bugs.webkit.org/show_bug.cgi?id=73127
1346
1347         Reviewed by Yury Semikhatsky.
1348
1349         * WebCoreSupport/WebInspectorClient.h:
1350         * WebCoreSupport/WebInspectorClient.mm:
1351         (WebInspectorClient::inspectorDestroyed):
1352         (WebInspectorClient::closeInspectorFrontend):
1353
1354 2011-11-22  Pavel Feldman  <pfeldman@google.com>
1355
1356         Web Inspector: remove Inspector::bringToFront from the protocol.
1357         https://bugs.webkit.org/show_bug.cgi?id=72937
1358
1359         Reviewed by Yury Semikhatsky.
1360
1361         * WebCoreSupport/WebInspectorClient.h:
1362         * WebCoreSupport/WebInspectorClient.mm:
1363         (WebInspectorClient::openInspectorFrontend):
1364         (WebInspectorClient::bringFrontendToFront):
1365
1366 2011-11-21  Mark Rowe  <mrowe@apple.com>
1367
1368         Fix the SnowLeopard build.
1369
1370         * Misc/WebNSFileManagerExtras.mm: Forward-declare DADiskCreateFromVolumePath on SnowLeopard as it was
1371         not yet declared in a public header.
1372
1373 2011-11-20  Mark Rowe  <mrowe@apple.com>
1374
1375         <http://webkit.org/b/72661> Switch to a more modern approach to retrieving the startup volume name
1376
1377         Use the DiskArbitration framework to retrieve the name of the startup volume rather than using Carbon
1378         File Manager APIs.
1379
1380         Reviewed by Dan Bernstein.
1381
1382         * Misc/WebNSFileManagerExtras.mm:
1383         (-[NSFileManager _webkit_startupVolumeName]): Retrieve a DADiskRef for the startup volume and copy
1384         the volume name from its description dictionary.
1385
1386 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
1387
1388         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
1389         https://bugs.webkit.org/show_bug.cgi?id=62985
1390
1391         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
1392         methods for plumbing the menu action handlers through the WebKit and WebCore.
1393         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
1394         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
1395         WebKit/win and WebKit2 to follow.
1396
1397         Reviewed by Yury Semikhatsky.
1398
1399         * WebCoreSupport/WebInspectorClient.mm:
1400         (-[WebInspectorWindowController destroyInspectorView:]):
1401         * WebInspector/WebInspector.mm:
1402         (-[WebInspector showWindow]):
1403         (-[WebInspector show:]):
1404         (-[WebInspector showConsole:]):
1405         (-[WebInspector isDebuggingJavaScript]):
1406         (-[WebInspector toggleDebuggingJavaScript:]):
1407         (-[WebInspector startDebuggingJavaScript:]):
1408         (-[WebInspector stopDebuggingJavaScript:]):
1409         (-[WebInspector isProfilingJavaScript]):
1410         (-[WebInspector toggleProfilingJavaScript:]):
1411         (-[WebInspector startProfilingJavaScript:]):
1412         (-[WebInspector stopProfilingJavaScript:]):
1413         (-[WebInspector isJavaScriptProfilingEnabled]):
1414         (-[WebInspector setJavaScriptProfilingEnabled:]):
1415         (-[WebInspector isTimelineProfilingEnabled]):
1416         (-[WebInspector setTimelineProfilingEnabled:]):
1417         (-[WebInspector setFrontend:]):
1418         (-[WebInspector releaseFrontend]):
1419         (-[WebInspector showWindow:]):
1420         * WebInspector/WebInspectorFrontend.h:
1421         * WebInspector/WebInspectorFrontend.mm:
1422         (-[WebInspectorFrontend isDebuggingEnabled]):
1423         (-[WebInspectorFrontend setDebuggingEnabled:]):
1424         (-[WebInspectorFrontend isProfilingJavaScript]):
1425         (-[WebInspectorFrontend startProfilingJavaScript]):
1426         (-[WebInspectorFrontend stopProfilingJavaScript]):
1427         (-[WebInspectorFrontend isJavaScriptProfilingEnabled]):
1428         (-[WebInspectorFrontend setJavaScriptProfilingEnabled:]):
1429         (-[WebInspectorFrontend isTimelineProfilingEnabled]):
1430         (-[WebInspectorFrontend setTimelineProfilingEnabled:]):
1431         * WebInspector/WebInspectorPrivate.h:
1432
1433 2011-11-21  Jochen Eisinger  <jochen@chromium.org>
1434
1435         Implement Meta referrer
1436         https://bugs.webkit.org/show_bug.cgi?id=72674
1437
1438         Reviewed by Adam Barth.
1439
1440         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1441         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
1442         * Plugins/WebNetscapePluginStream.mm:
1443         (WebNetscapePluginStream::WebNetscapePluginStream):
1444
1445 2011-10-17  Antonio Gomes  <agomes@rim.com>
1446
1447         Pass a Frame* parameter in EditorClient::respondToChangedSelection
1448         https://bugs.webkit.org/show_bug.cgi?id=70248
1449
1450         Reviewed by Ryosuke Niwa.
1451
1452         * WebCoreSupport/WebEditorClient.h:
1453         * WebCoreSupport/WebEditorClient.mm: Make use of the newly added Frame* parameter.
1454         (WebEditorClient::respondToChangedSelection):
1455
1456 2011-11-17  Mark Rowe  <mrowe@apple.com>
1457
1458         <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
1459         switch away from the deprecated APIs.
1460
1461         Reviewed by Sam Weinig.
1462
1463         * Plugins/WebBasePluginPackage.mm:
1464         * Plugins/WebNetscapePluginPackage.mm:
1465         (-[WebNetscapePluginPackage _tryLoad]):
1466
1467 2011-11-18  Anton D'Auria  <adauria@apple.com>
1468
1469         bool WebChromeClient::shouldInterruptJavaScript casts pointer to bool and always returns true
1470         https://bugs.webkit.org/show_bug.cgi?id=72568
1471
1472         Reviewed by David Kilzer.
1473
1474         WebChromeClient::shouldInterruptJavaScript called CallUIDelegate, which used an id
1475         as the return value, which was then cast to a bool and always returned true. This
1476         patch uses CallUIDelegateReturningBoolean instead of CallUIDelegate, with the default
1477         return value of NO.
1478
1479         * WebCoreSupport/WebChromeClient.mm:
1480         (WebChromeClient::shouldInterruptJavaScript):
1481
1482 2011-11-16  Dan Bernstein  <mitz@apple.com>
1483
1484         WebKit/mac part of <rdar://problem/10262242> Add API for paginated display
1485         https://bugs.webkit.org/show_bug.cgi?id=72537
1486
1487         Reviewed by Anders Carlsson.
1488
1489         * WebView/WebView.mm:
1490         (-[WebView _setPaginationMode:]): Added this accessor.
1491         (-[WebView _paginationMode]): Ditto.
1492         (-[WebView _setGapBetweenPages:]): Ditto.
1493         (-[WebView _gapBetweenPages]): Ditto.
1494         (-[WebView _pageCount]): Ditto.
1495         * WebView/WebViewPrivate.h: Defined WebPaginationMode enum and values.
1496
1497 2011-11-15  Andy Estes  <aestes@apple.com>
1498
1499         Consolidate the logic that creates run loop observers for flushing layer tree changes to CoreAnimation
1500         https://bugs.webkit.org/show_bug.cgi?id=72106
1501
1502         Reviewed by Anders Carlsson.
1503
1504         Remove code that schedules layer flushes and use LayerFlushScheduler instead.
1505
1506         * WebView/WebView.mm:
1507         (-[WebView _close]): Invalidate the run loop observer and destroy the
1508         LayerFlushController.
1509         (LayerFlushController::flushLayers): Perform the work that
1510         layerSyncRunLoopObserverCallBack used to do.
1511         (-[WebView _scheduleCompositingLayerSync]): If layerFlushController has
1512         yet to be created, create it, then schedule a layer flush.
1513         * WebView/WebViewData.h:
1514         (LayerFlushController::create): Create a LayerFlushController that
1515         implements the LayerFlushSchedulerClient interface and contains a
1516         LayerFlushScheduler with itself as the client.
1517         * WebView/WebViewData.mm:
1518         (LayerFlushController::scheduleLayerFlush):
1519         (LayerFlushController::invalidateObserver):
1520         (LayerFlushController::LayerFlushController):
1521
1522 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
1523
1524         Rename ReferrerPolicy to clarify its meaning
1525         https://bugs.webkit.org/show_bug.cgi?id=72420
1526
1527         Reviewed by Nate Chapin.
1528
1529         * WebView/WebPDFView.mm:
1530         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1531
1532 2011-11-15  Anders Carlsson  <andersca@apple.com>
1533
1534         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
1535         https://bugs.webkit.org/show_bug.cgi?id=72397
1536
1537         Reviewed by Dan Bernstein.
1538
1539         * WebCoreSupport/WebChromeClient.h:
1540         * WebCoreSupport/WebChromeClient.mm:
1541         (WebChromeClient::screenToRootView):
1542         (WebChromeClient::rootViewToScreen):
1543
1544 2011-11-14  Anders Carlsson  <andersca@apple.com>
1545
1546         HostWindow invalidation functions should use root view coordinates
1547         https://bugs.webkit.org/show_bug.cgi?id=72338
1548
1549         Reviewed by Dan Bernstein.
1550
1551         * WebCoreSupport/WebChromeClient.h:
1552         * WebCoreSupport/WebChromeClient.mm:
1553         (WebChromeClient::invalidateRootView):
1554         (WebChromeClient::invalidateContentsAndRootView):
1555         (WebChromeClient::invalidateContentsForSlowScroll):
1556
1557 2011-11-14  Julien Chaffraix  <jchaffraix@webkit.org>
1558
1559         Add --css-grid-layout to build-webkit and the build systems
1560         https://bugs.webkit.org/show_bug.cgi?id=72320
1561
1562         Reviewed by Ojan Vafai.
1563
1564         * Configurations/FeatureDefines.xcconfig:
1565
1566 2011-11-14  Tony Chang  <tony@chromium.org>
1567
1568         Remove the CSS3_FLEXBOX compile time flag and enable on all ports
1569         https://bugs.webkit.org/show_bug.cgi?id=72196
1570
1571         Reviewed by Ojan Vafai.
1572
1573         * Configurations/FeatureDefines.xcconfig:
1574
1575 2011-11-07  Adam Barth  <abarth@webkit.org>
1576
1577         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
1578         https://bugs.webkit.org/show_bug.cgi?id=71755
1579
1580         Reviewed by Eric Seidel.
1581
1582         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1583         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
1584         * Plugins/WebNetscapePluginStream.mm:
1585         (WebNetscapePluginStream::WebNetscapePluginStream):
1586         * WebView/WebView.mm:
1587         (-[WebView _commonInitializationWithFrameName:groupName:]):
1588         (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
1589         (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
1590         (+[WebView _resetOriginAccessWhitelists]):
1591
1592 2011-11-08  Joseph Pecoraro  <pecoraro@apple.com>
1593
1594         Move NSRange / DOMRange functions back to WebFrameInternal
1595         https://bugs.webkit.org/show_bug.cgi?id=71844
1596
1597         Reviewed by Alexey Proskuryakov.
1598
1599         * WebView/WebFrame.mm:
1600         (-[WebFrame _convertNSRangeToDOMRange:]):
1601         (-[WebFrame _convertDOMRangeToNSRange:]):
1602         * WebView/WebFrameInternal.h:
1603         * WebView/WebFramePrivate.h:
1604
1605 2011-11-08  Michael Saboff  <msaboff@apple.com>
1606
1607         Towards 8 Bit Strings: Templatize JSC::Parser class by Lexer type
1608         https://bugs.webkit.org/show_bug.cgi?id=71761
1609
1610         Changed WKPCEvaluate() to use emptyString() when the source is
1611         zero length.
1612
1613         Reviewed by Gavin Barraclough.
1614
1615         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1616         (WKPCEvaluate):
1617
1618 2011-11-08  Beth Dakin  <bdakin@apple.com>
1619
1620         https://bugs.webkit.org/show_bug.cgi?id=71856
1621         WebKit should use new NSWindowDidChangeBackingPropertiesNotification instead of 
1622         old NSWindowDidChangeResolutionNotification
1623         -and corresponding-
1624         <rdar://problem/10317253>
1625
1626         Reviewed by Tim Hatcher.
1627
1628         * WebView/WebView.mm:
1629         (-[WebView addWindowObserversForWindow:]):
1630         (-[WebView removeWindowObservers]):
1631
1632         We have to check that the backing scale factor actually changed since this 
1633         notification can also be used to signify other changes. 
1634         (-[WebView _windowDidChangeBackingProperties:]):
1635
1636 2011-11-07  Adam Barth  <abarth@webkit.org>
1637
1638         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
1639         https://bugs.webkit.org/show_bug.cgi?id=71750
1640
1641         Reviewed by Eric Seidel.
1642
1643         * WebView/WebView.mm:
1644         (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
1645
1646 2011-11-07  Jessie Berlin  <jberlin@apple.com>
1647
1648         Need a way to allow a scheme access to Local Storage and Databases while Private Browsing is
1649         enabled.
1650         https://bugs.webkit.org/show_bug.cgi?id=71631
1651
1652         Reviewed by Jon Honeycutt.
1653
1654         Add WebKit1 API to register a scheme as ignoring Private Browsing for Local Storage and
1655         Databases.
1656
1657         * WebView/WebView.mm:
1658         (+[WebView _registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:]):
1659         Call through to the SchemeRegistry function.
1660         (+[WebView _registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing:]):
1661         Ditto.
1662         * WebView/WebViewPrivate.h:
1663
1664 2011-11-03  Mark Hahnenberg  <mhahnenberg@apple.com>
1665
1666         De-virtualize JSObject::getPropertyNames
1667         https://bugs.webkit.org/show_bug.cgi?id=71306
1668
1669         Reviewed by Darin Adler.
1670
1671         Added getPropertyNames to the MethodTable, changed all the virtual 
1672         implementations of getPropertyNames to static ones, and replaced 
1673         all call sites with corresponding lookups in the MethodTable.
1674
1675         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1676         (WebKit::NetscapePluginInstanceProxy::enumerate):
1677
1678 2011-11-02  Darin Adler  <darin@apple.com>
1679
1680         Change remaining callers of releaseRef to call leakRef
1681         https://bugs.webkit.org/show_bug.cgi?id=71422
1682
1683         Reviewed by Darin Fisher.
1684
1685         * History/WebBackForwardList.mm:
1686         (-[WebBackForwardList initWithBackForwardList:]):
1687         * History/WebHistoryItem.mm:
1688         (-[WebHistoryItem copyWithZone:]):
1689         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
1690         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1691         (-[WebHostedNetscapePluginView createPlugin]):
1692         * Plugins/WebNetscapePluginView.mm:
1693         (-[WebNetscapePluginView createPlugin]):
1694         * WebCoreSupport/WebOpenPanelResultListener.mm:
1695         * WebView/WebDataSource.mm:
1696         (-[WebDataSource _initWithDocumentLoader:]):
1697         * WebView/WebResource.mm:
1698         (-[WebResourcePrivate initWithCoreResource:]):
1699         Use leakRef.
1700
1701 2011-11-02  Joseph Pecoraro  <pecoraro@apple.com>
1702
1703         Move NSRange / DOMRange conversion functions to WebFramePrivate
1704         https://bugs.webkit.org/show_bug.cgi?id=71435
1705
1706         Reviewed by Sam Weinig.
1707
1708         Move conversion functions to WebFramePrivate,
1709         and remove the no longer used versions.
1710
1711         * WebView/WebFrame.mm:
1712         (-[WebFrame _convertNSRangeToDOMRange:]):
1713         (-[WebFrame _convertDOMRangeToNSRange:]):
1714         * WebView/WebFrameInternal.h:
1715         * WebView/WebFramePrivate.h:
1716
1717 2011-11-02  Dean Jackson  <dino@apple.com>
1718
1719         Add ENABLE_CSS_SHADERS flag
1720         https://bugs.webkit.org/show_bug.cgi?id=71394
1721
1722         Reviewed by Sam Weinig.
1723
1724         * Configurations/FeatureDefines.xcconfig:
1725
1726 2011-11-02  Jon Lee  <jonlee@apple.com>
1727
1728         Expand DragController to provide more information about the dragging session
1729         https://bugs.webkit.org/show_bug.cgi?id=71324
1730         <rdar://problem/10379175>
1731
1732         Reviewed by Darin Adler.
1733
1734         * WebView/WebView.mm:
1735         (-[WebView draggingEntered:]): DragOperation is now inside the DragSession struct.
1736         (-[WebView draggingUpdated:]):
1737
1738 2011-11-02  Tom Sepez  <tsepez@chromium.org>
1739
1740         XSSAuditor is silent
1741         https://bugs.webkit.org/show_bug.cgi?id=70973
1742
1743         Reviewed by Adam Barth.
1744
1745         * WebCoreSupport/WebFrameLoaderClient.h:
1746         * WebCoreSupport/WebFrameLoaderClient.mm:
1747         (WebFrameLoaderClient::didRunInsecureContent):
1748         (WebFrameLoaderClient::didDetectXSS):
1749         * WebView/WebDelegateImplementationCaching.h:
1750         * WebView/WebFrameLoadDelegatePrivate.h:
1751         * WebView/WebView.mm:
1752         (-[WebView _cacheFrameLoadDelegateImplementations]):
1753
1754 2011-11-01  Darin Adler  <darin@apple.com>
1755
1756         Crash in PDF code when script has illegal UTF-8 or UTF-16 sequences
1757         https://bugs.webkit.org/show_bug.cgi?id=71289
1758
1759         Reviewed by Dan Bernstein.
1760
1761         Just adding a null check. I don't have access to an actual PDF with
1762         this problem but crashes from the field indicate they exist.
1763
1764         * WebView/WebPDFDocumentExtras.mm:
1765         (allScriptsInPDFDocument): Skip the code to add the script text
1766         to an array when the script is null.
1767
1768 2011-10-28  John Sullivan  <sullivan@apple.com>
1769
1770         WebKit part of:
1771         https://bugs.webkit.org/show_bug.cgi?id=71142
1772         Whether backspace goes Back should be configurable
1773
1774         Reviewed by Sam Weinig.
1775
1776         * WebView/WebFrameView.mm:
1777         (-[WebFrameView keyDown:]):
1778         Honor the new preference.
1779
1780         * WebView/WebPreferenceKeysPrivate.h:
1781         Added #define for WebKitBackspaceKeyNavigationEnabledKey
1782         
1783         * WebView/WebPreferences.mm:
1784         (+[WebPreferences initialize]):
1785         Initialize new pref to YES, to match current behavior.
1786         (-[WebPreferences setBackspaceKeyNavigationEnabled:]):
1787         New method, standard prefs setter.
1788         (-[WebPreferences backspaceKeyNavigationEnabled]):
1789         New method, standard prefs getter.
1790
1791         * WebView/WebPreferencesPrivate.h:
1792         Declared new methods.
1793         
1794         * WebView/WebView.mm:
1795         (-[WebView _preferencesChanged:]):
1796         Updates WebCore settings from WebKit prefs.
1797
1798 2011-10-28  Jochen Eisinger  <jochen@chromium.org>
1799
1800         Rename a number of methods mentioning JavaScript to just Script instead
1801         https://bugs.webkit.org/show_bug.cgi?id=71105
1802
1803         Reviewed by Adam Barth.
1804
1805         * WebView/WebView.mm:
1806         (-[WebView _preferencesChanged:]):
1807
1808 2011-10-27  Joseph Pecoraro  <pecoraro@apple.com>
1809
1810         Reviewed by David Kilzer.
1811
1812         Make FeatureDefines Identical Across OS X Projects
1813         https://bugs.webkit.org/show_bug.cgi?id=71051
1814
1815         * Configurations/FeatureDefines.xcconfig:
1816
1817 2011-10-27  Mark Hahnenberg  <mhahnenberg@apple.com>
1818
1819         De-virtualize JSCell::toThisObject
1820         https://bugs.webkit.org/show_bug.cgi?id=70958
1821
1822         Reviewed by Geoffrey Garen.
1823
1824         Converted all instances of toThisObject to static functions, 
1825         added toThisObject to the MethodTable, and replaced all call sites
1826         with a corresponding lookup in the MethodTable.
1827
1828         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1829         (WebKit::NetscapePluginInstanceProxy::invoke):
1830         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1831
1832 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1833
1834         Remove deletePropertyVirtual
1835         https://bugs.webkit.org/show_bug.cgi?id=70738
1836
1837         Reviewed by Geoffrey Garen.
1838
1839         Removed all declarations and definitions of deletePropertyVirtual.
1840         Also replaced all call sites to deletePropertyVirtual with a 
1841         corresponding lookup in the MethodTable.
1842
1843         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1844         (WebKit::NetscapePluginInstanceProxy::removeProperty):
1845
1846 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1847
1848         Remove putVirtual
1849         https://bugs.webkit.org/show_bug.cgi?id=70740
1850
1851         Reviewed by Geoffrey Garen.
1852
1853         Removed all declarations and definitions of putVirtual.
1854         Also replaced all call sites to putVirtual with a 
1855         corresponding lookup in the MethodTable.
1856
1857         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1858         (WebKit::NetscapePluginInstanceProxy::setProperty):
1859
1860 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
1861
1862         Removed SharedUChar and tightened language around its previous uses
1863         https://bugs.webkit.org/show_bug.cgi?id=70698
1864
1865         Reviewed by David Levin.
1866
1867         - Renamed "threadSafeCopy" and "crossThreadCopy" to "isolatedCopy" because
1868         the former names gave the dangerous misimpression that the resulting object
1869         was thread-safe, which is not true.
1870
1871         * Storage/WebDatabaseTrackerClient.mm:
1872         (DidModifyOriginData::dispatchToMainThread):
1873
1874 2011-10-24  Michael Saboff  <msaboff@apple.com>
1875
1876         WebKit doesn't build with recent changes to libdispatch
1877         https://bugs.webkit.org/show_bug.cgi?id=70737
1878
1879         Added initialization for new WebKitSystemInterface function 
1880         CreateVMPressureDispatchOnMainQueue.
1881
1882         Reviewed by Geoffrey Garen.
1883
1884         * WebCoreSupport/WebSystemInterface.mm:
1885         (InitWebCoreSystemInterface):
1886
1887 2011-10-23  Mark Hahnenberg  <mhahnenberg@apple.com>
1888
1889         Remove getConstructDataVirtual
1890         https://bugs.webkit.org/show_bug.cgi?id=70638
1891
1892         Reviewed by Darin Adler.
1893
1894         Removed all declarations and definitions of getConstructDataVirtual.
1895         Also replaced all call sites to getConstructDataVirtual with a 
1896         corresponding lookup in the MethodTable.
1897
1898         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1899         (WebKit::NetscapePluginInstanceProxy::construct):
1900
1901 2011-10-20  Ian Henderson  <ianh@apple.com>
1902
1903         https://bugs.webkit.org/show_bug.cgi?id=70541
1904         There are two WebFrameLoadDelegatePrivate categories on NSObject
1905
1906         Reviewed by David Kilzer.
1907
1908         * WebView/WebViewPrivate.h: Rename the private delegate categories in
1909         WebViewPrivate.h with a "WebView" prefix to avoid collision.
1910
1911 2011-10-20  Alexey Proskuryakov  <ap@apple.com>
1912
1913         REGRESSION (r96823): Contextual menu closes immediately when control-clicking in Flash plug-in
1914         https://bugs.webkit.org/show_bug.cgi?id=70534
1915         <rdar://problem/10308827>
1916
1917         Reviewed by Darin Adler.
1918
1919         * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): Return true
1920         for contextmenu event, so that plug-ins won't get a default WebKit context menu. We can't
1921         know if the plug-in is handling mousedown (or even mouseup) by displaying a menu.
1922
1923 2011-10-19  Beth Dakin  <bdakin@apple.com>
1924
1925         https://bugs.webkit.org/show_bug.cgi?id=70396
1926         Focus rings are too thin in HiDPI in WebKit2
1927         -and corresponding-
1928         <rdar://problem/10086876>
1929
1930         Reviewed by Dan Bernstein.
1931
1932         Rename wkSetPatternBaseCTM to wkSetBaseCTM
1933         * WebCoreSupport/WebSystemInterface.mm:
1934         (InitWebCoreSystemInterface):
1935
1936         To create a HiDPI context in DRT, we have to set the base CTM, which currently 
1937         requires CG SPI, so we have to do it through WebKitSystemInterface.
1938         * WebView/WebView.mm:
1939         (-[WebView _setBaseCTM:forContext:]):
1940         * WebView/WebViewPrivate.h:
1941
1942 2011-10-18  Adam Barth  <abarth@webkit.org>
1943
1944         Always enable ENABLE(XPATH)
1945         https://bugs.webkit.org/show_bug.cgi?id=70217
1946
1947         Reviewed by Eric Seidel.
1948
1949         * Configurations/FeatureDefines.xcconfig:
1950
1951 2011-10-14  Chris Marrin  <cmarrin@apple.com>
1952
1953         Throttle rate of requestAnimationFrame when page is not visible
1954         https://bugs.webkit.org/show_bug.cgi?id=67873
1955
1956         Reviewed by Anders Carlsson.
1957
1958         Plumb through notification when the window is hidden/shown or
1959         minimized/unminimized
1960
1961         * WebView/WebView.mm:
1962         (-[WebView _windowWillOrderOnScreen:]):
1963         (-[WebView _windowWillOrderOffScreen:]):
1964
1965 2011-10-16  Adam Barth  <abarth@webkit.org>
1966
1967         Always enable ENABLE(DOM_STORAGE)
1968         https://bugs.webkit.org/show_bug.cgi?id=70189
1969
1970         Reviewed by Eric Seidel.
1971
1972         * Configurations/FeatureDefines.xcconfig:
1973         * Storage/WebStorageManager.mm:
1974         * Storage/WebStorageManagerInternal.h:
1975         * Storage/WebStorageTrackerClient.h:
1976         * Storage/WebStorageTrackerClient.mm:
1977         (WebStorageTrackerClient::dispatchDidModifyOrigin):
1978         * WebView/WebView.mm:
1979         (-[WebView _commonInitializationWithFrameName:groupName:]):
1980
1981 2011-10-14  David Kilzer  <ddkilzer@apple.com>
1982
1983         <http://webkit.org/b/70158> Fix clang compiler warnings
1984
1985         Reviewed by Darin Adler.
1986
1987         The following two methods in WebDelegateImplementationCaching.h
1988         are ambiguous in WebChromeClient::runJavaScriptPrompt() because
1989         the compiler can't decide how to convert the WTF::String
1990         defaultText argument:
1991
1992             id CallUIDelegate(WebView *, SEL, id, id);
1993             id CallUIDelegate(WebView *, SEL, id, BOOL);
1994
1995         The fix is to perform the conversion explicitly.
1996
1997         * WebCoreSupport/WebChromeClient.mm:
1998         (WebChromeClient::runJavaScriptPrompt): Extract a defaultString
1999         variable to convert the WTF::String to an NSString*, then
2000         use defaultString in place of defaultText.
2001
2002 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
2003
2004         Rename virtual put to putVirtual
2005         https://bugs.webkit.org/show_bug.cgi?id=69851
2006
2007         Reviewed by Darin Adler.
2008
2009         Renamed virtual versions of put to putVirtual in prepration for 
2010         adding the static put to the MethodTable in ClassInfo since the 
2011         compiler gets mad if the virtual and static versions have the same 
2012         name.
2013
2014         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2015         (WebKit::NetscapePluginInstanceProxy::setProperty):
2016
2017 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
2018
2019         Rename virtual deleteProperty to deletePropertyVirtual
2020         https://bugs.webkit.org/show_bug.cgi?id=69884
2021
2022         Reviewed by Darin Adler.
2023
2024         Renamed virtual versions of deleteProperty to deletePropertyVirtual in prepration for 
2025         adding the static deleteProperty to the MethodTable in ClassInfo since the 
2026         compiler gets mad if the virtual and static versions have the same name.
2027
2028         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2029         (WebKit::NetscapePluginInstanceProxy::removeProperty):
2030
2031 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
2032
2033         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
2034         https://bugs.webkit.org/show_bug.cgi?id=69964
2035
2036         Reviewed by Enrica Casucci.
2037
2038         * WebView/WebFrame.mm:
2039         (-[WebFrame _convertToNSRange:]):
2040         (-[WebFrame _convertToDOMRange:]):
2041
2042 2011-10-13  Mark Hahnenberg  <mhahnenberg@apple.com>
2043
2044         Rename virtual getConstructData to getConstructDataVirtual
2045         https://bugs.webkit.org/show_bug.cgi?id=69872
2046
2047         Reviewed by Geoffrey Garen.
2048
2049         Renamed virtual getConstructData functions to getConstructDataVirtual to 
2050         avoid conflicts when we add static getConstructData to the MethodTable.
2051
2052         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2053         (WebKit::NetscapePluginInstanceProxy::construct):
2054
2055 2011-10-13  Beth Dakin  <bdakin@apple.com>
2056
2057         https://bugs.webkit.org/show_bug.cgi?id=70050
2058         DRT and WRT should have HiDPI testing capabilities
2059
2060         Reviewed by Darin Adler.
2061
2062         New method _backingScaleFactor matches SPI of a similar name that I added 
2063         recently to WKPage in WebKit2. Equivalent functionality is needed for 
2064         DumpRenderTree's HiDPI support.
2065         * WebView/WebView.mm:
2066         (-[WebView _backingScaleFactor]):
2067         * WebView/WebViewPrivate.h:
2068
2069 2011-10-12  Chris Marrin  <cmarrin@apple.com>
2070
2071         Sync requestAnimationFrame callback to CVDisplayLink on Mac
2072         https://bugs.webkit.org/show_bug.cgi?id=68911
2073
2074         Reviewed by Simon Fraser.
2075
2076         Add windowDidChangeScreen function which listens for the window changing
2077         screens and passes the new displayID along to WebCore::Page. It also sends
2078         one on windowWillOrderOnScreen, so the Page has a fresh displayID after it's
2079         created.
2080
2081         * WebView/WebView.mm:
2082         (-[WebView addWindowObserversForWindow:]):
2083         (-[WebView removeWindowObservers]):
2084         (-[WebView _windowDidChangeScreen:]):
2085         (-[WebView _windowWillOrderOnScreen:]):
2086
2087 2011-10-12  Adam Barth  <abarth@webkit.org>
2088
2089         Remove ENABLE(XHTMLMP) and associated code
2090         https://bugs.webkit.org/show_bug.cgi?id=69729
2091
2092         Reviewed by David Levin.
2093
2094         * Configurations/FeatureDefines.xcconfig:
2095
2096 2011-10-10  Nate Chapin  <japhet@chromium.org>
2097
2098         Use a CachedImageClient instead of CachedResourceClient
2099         in WebHTMLView.
2100         https://bugs.webkit.org/show_bug.cgi?id=69790
2101
2102         Reviewed by Adam Barth.
2103
2104         * WebView/WebHTMLView.mm:
2105         (promisedDataClient):
2106
2107 2011-10-10  Mark Hahnenberg  <mhahnenberg@apple.com>
2108
2109         Remove getCallDataVirtual methods
2110         https://bugs.webkit.org/show_bug.cgi?id=69186
2111
2112         Reviewed by Geoffrey Garen.
2113
2114         Removed all getCallDataVirtual methods and replaced their call sites 
2115         with an explicit lookup in the MethodTable.
2116
2117         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2118         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2119
2120 2011-10-10  Joseph Pecoraro  <joepeck@webkit.org>
2121
2122         Extract WebOpenPanelResultListener out into its own file
2123         https://bugs.webkit.org/show_bug.cgi?id=69575
2124
2125         Reviewed by David Kilzer.
2126
2127         Extract the WebOpenPanelResultListener class out into
2128         its own file. No functional change.
2129
2130         * WebCoreSupport/WebChromeClient.mm:
2131         * WebCoreSupport/WebOpenPanelResultListener.h: Added.
2132         * WebCoreSupport/WebOpenPanelResultListener.mm: Added.
2133         (-[WebOpenPanelResultListener dealloc]):
2134         (-[WebOpenPanelResultListener finalize]):
2135         (-[WebOpenPanelResultListener cancel]):
2136         (-[WebOpenPanelResultListener chooseFilename:]):
2137         (-[WebOpenPanelResultListener chooseFilenames:]):
2138         * WebView/WebUIDelegate.h:
2139
2140 2011-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
2141
2142         Unreviewed, rolling out r96996.
2143         http://trac.webkit.org/changeset/96996
2144         https://bugs.webkit.org/show_bug.cgi?id=69697
2145
2146         It broke all tests on the Qt bot (Requested by Ossy_night on
2147         #webkit).
2148
2149         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2150         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2151
2152 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
2153
2154         Remove getCallDataVirtual methods
2155         https://bugs.webkit.org/show_bug.cgi?id=69186
2156
2157         Reviewed by Geoffrey Garen.
2158
2159         Removed all getCallDataVirtual methods and replaced their call sites 
2160         with an explicit lookup in the MethodTable.
2161
2162         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2163         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2164
2165 2011-10-06  Anders Carlsson  <andersca@apple.com>
2166
2167         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
2168         https://bugs.webkit.org/show_bug.cgi?id=69586
2169
2170         Reviewed by Darin Adler.
2171
2172         * Configurations/Base.xcconfig:
2173         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
2174
2175 2011-10-06  Anders Carlsson  <andersca@apple.com>
2176
2177         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
2178         https://bugs.webkit.org/show_bug.cgi?id=69584
2179
2180         Reviewed by Darin Adler.
2181
2182         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
2183
2184         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2185         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2186
2187 2011-10-03  Andy Estes  <aestes@apple.com>
2188
2189         Add an option to suppress rendering until the document's load event fires.
2190         https://bugs.webkit.org/show_bug.cgi?id=69298
2191
2192         Reviewed by Simon Fraser.
2193         
2194         Add a new private WebPreference.
2195
2196         * WebView/WebPreferenceKeysPrivate.h:
2197         * WebView/WebPreferences.mm:
2198         (+[WebPreferences initialize]):
2199         (-[WebPreferences setSuppressRenderingWhileInitiallyLoading:]):
2200         (-[WebPreferences suppressRenderingWhileInitiallyLoading]):
2201         * WebView/WebPreferencesPrivate.h:
2202         * WebView/WebView.mm:
2203         (-[WebView _preferencesChanged:]):
2204
2205 2011-10-05  Jer Noble  <jer.noble@apple.com>
2206
2207         Enable WEB_AUDIO by default in the WebKit/mac port.
2208         https://bugs.webkit.org/show_bug.cgi?id=68587
2209
2210         Reviewed by Simon Fraser.
2211
2212         * Configurations/FeatureDefines.xcconfig:
2213
2214 2011-10-05  David Kilzer  <ddkilzer@apple.com>
2215
2216         <http://webkit.org/b/69386> REGRESSION: Curious Location of StorageTracker.db
2217
2218         Reviewed by Alexey Proskuryakov.
2219
2220         * Storage/WebStorageManager.mm:
2221         (+[WebStorageManager _storageDirectoryPath]): Restore call to
2222         -[NSString stringByStandardizingPath].  Also fix over-release of
2223         sLocalStoragePath if the initial -objectForKey: call returned an
2224         NSString object.  Use pthread_once to be thread-safe.
2225
2226 2011-10-04  Kent Tamura  <tkent@chromium.org>
2227
2228         Introduce feature flags for incomplete input types
2229         https://bugs.webkit.org/show_bug.cgi?id=68971
2230
2231         Reviewed by Hajime Morita.
2232
2233         * Configurations/FeatureDefines.xcconfig:
2234         Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
2235
2236 2011-10-03  Geoffrey Garen  <ggaren@apple.com>
2237
2238         Some JSValue cleanup
2239         https://bugs.webkit.org/show_bug.cgi?id=69320
2240
2241         Reviewed by Darin Adler.
2242
2243         * WebView/WebView.mm:
2244         (aeDescFromJSValue): Updated for JSC changes.
2245
2246 2011-10-04  Scott Graham  <scottmg@chromium.org>
2247
2248         Add GAMEPAD feature flag
2249         https://bugs.webkit.org/show_bug.cgi?id=66859
2250
2251         Reviewed by Darin Fisher.
2252
2253         * Configurations/FeatureDefines.xcconfig:
2254
2255 2011-10-03  Jer Noble  <jer.noble@apple.com>
2256
2257         Unreviewed, rolling out r96526.
2258         http://trac.webkit.org/changeset/96526
2259         https://bugs.webkit.org/show_bug.cgi?id=68587
2260
2261         WEB_AUDIO has numerous 64->32 bit casting warnings, causing
2262         build breakages where -Wall is enabled.
2263
2264         * Configurations/FeatureDefines.xcconfig:
2265
2266 2011-10-03  Jer Noble  <jer.noble@apple.com>
2267
2268         Enable WEB_AUDIO by default in the WebKit/mac port.
2269         https://bugs.webkit.org/show_bug.cgi?id=68587
2270
2271         Reviewed by Simon Fraser.
2272
2273         * Configurations/FeatureDefines.xcconfig:
2274
2275 2011-10-02  Sam Weinig  <sam@webkit.org>
2276
2277         Strength reduce Mac only Frame::searchForLabelsBeforeElement and Frame::matchLabelsAgainstElement into callers
2278         https://bugs.webkit.org/show_bug.cgi?id=69230
2279
2280         Reviewed by Anders Carlsson.
2281
2282         * WebView/WebHTMLRepresentation.mm:
2283         (regExpForLabels):
2284         (searchForLabelsBeforeElement):
2285         (matchLabelsAgainstString):
2286         (matchLabelsAgainstElement):
2287         (-[WebHTMLRepresentation searchForLabels:beforeElement:resultDistance:resultIsInCellAbove:]):
2288         (-[WebHTMLRepresentation matchLabels:againstElement:]):
2289
2290 2011-10-02  Alexey Proskuryakov  <ap@apple.com>
2291
2292         REGRESSION (r95474): Unable to type anywhere in nightly builds in WebKit1 mode
2293         https://bugs.webkit.org/show_bug.cgi?id=68542
2294
2295         Reviewed by Mark Rowe.
2296
2297         * WebView/WebView.mm: (-[WebView _usesDocumentViews]): Re-add this method for now.
2298
2299 2011-10-01  Geoffrey Garen  <ggaren@apple.com>
2300
2301         Leopard build fix: Updated for Strong<T> changes.
2302
2303         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2304         * WebView/WebScriptDebugger.mm:
2305
2306 2011-09-28  Joseph Pecoraro  <joepeck@webkit.org>
2307
2308         ASSERT if WebView's UIDelegate does not implement webView:runOpenPanel
2309         https://bugs.webkit.org/show_bug.cgi?id=69037
2310
2311         Reviewed by Alexey Proskuryakov.
2312
2313         * WebCoreSupport/WebChromeClient.mm:
2314         (WebChromeClient::runOpenPanel):
2315         If no delegate is implemented, dismiss the listener
2316         with a cancel. It expects some action.
2317
2318 2011-09-28  Anton D'Auria  <adauria@apple.com>
2319
2320         Expose +[WebStorageManager _storageDirectoryPath] as SPI
2321         https://bugs.webkit.org/show_bug.cgi?id=68951
2322
2323         Reviewed by Brady Eidson.
2324
2325         This patch exposes +[WebStorageManager _storageDirectoryPath], which
2326         pulls the path from NSUserDefaults if the preference is set. Otherwise,
2327         it falls back on the default path.
2328
2329         * Storage/WebStorageManager.mm:
2330         (+[WebStorageManager _storageDirectoryPath]): Adding static variable
2331         so that we don't reread user defaults repeatedly.
2332         (WebKitInitializeStorageIfNecessary):
2333         * Storage/WebStorageManagerPrivate.h:
2334
2335 2011-09-27  Andy Estes  <aestes@apple.com>
2336
2337         WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
2338         https://bugs.webkit.org/show_bug.cgi?id=68863
2339
2340         Reviewed by Darin Adler.
2341
2342         The SolarWalk binary does not link against WebKit.framework directly,
2343         so calling NSVersionOfLinkTimeLibrary() will not return the version of
2344         WebKit against which SolarWalk was linked. Since Solar Walk has
2345         released an update that addresses the issue for which this app-specific
2346         hack was originally added, we should just remove the hack.
2347
2348         * Misc/SolarWalkQuirksUserScript.js: Removed.
2349         * WebView/WebView.mm: Removed needsSolarWalkQuirksScript(),
2350         leakSolarWalkQuirksUserScriptContents(), and
2351         -[WebView _injectSolarWalkQuirksScript].
2352         (-[WebView _commonInitializationWithFrameName:groupName:]): Do not
2353         inject the Solar Walk quirks script.
2354
2355 2011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
2356
2357         Add static version of JSCell::getCallData
2358         https://bugs.webkit.org/show_bug.cgi?id=68741
2359
2360         Reviewed by Darin Adler.
2361
2362         In this patch we just extract the bodies of the virtual getCallData methods
2363         throughout the JSCell inheritance hierarchy out into static methods, which are 
2364         now called from the virtual methods.  This is an intermediate step in trying to 
2365         move the virtual-ness of getCallData into our own method table stored in 
2366         ClassInfo.  We need to convert the methods to static methods because static methods 
2367         can be represented as function pointers rather than pointers to member functions, and
2368         function pointers are smaller and faster to call than pointers to member functions.
2369
2370         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2371         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2372
2373 2011-09-23  Simon Fraser  <simon.fraser@apple.com>
2374
2375         Repaint tests don't work in WebKit2
2376         https://bugs.webkit.org/show_bug.cgi?id=68453
2377
2378         Reviewed by Sam Weinig.
2379
2380         Have FrameView keep track of repaint rects when asked to, and
2381         expose this set of repaint rects via private WebKit API for later
2382         use by DumpRenderTree.
2383
2384         * WebView/WebView.mm:
2385         (-[WebView setTracksRepaints:]):
2386         (-[WebView isTrackingRepaints]):
2387         (-[WebView resetTrackedRepaints]):
2388         (-[WebView trackedRepaintRects]):
2389         * WebView/WebViewPrivate.h:
2390
2391 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
2392
2393         Add custom vtable struct to ClassInfo struct
2394         https://bugs.webkit.org/show_bug.cgi?id=68567
2395
2396         Reviewed by Oliver Hunt.
2397
2398         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
2399         specified class in its ClassInfo.  Also added to it the first function to use 
2400         this macro, visitChildren.  This is part of the process of getting rid of all 
2401         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
2402         that can't easily be converted to non-virtual functions will be put into 
2403         this custom vtable structure.
2404
2405         * Plugins/Hosted/ProxyInstance.mm:
2406         * Plugins/Hosted/ProxyRuntimeObject.mm:
2407
2408 2011-09-24  Adam Barth  <abarth@webkit.org>
2409
2410         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
2411         https://bugs.webkit.org/show_bug.cgi?id=68767
2412
2413         Reviewed by Eric Seidel.
2414
2415         * Configurations/FeatureDefines.xcconfig:
2416         * Misc/WebCache.mm:
2417         (+[WebCache empty]):
2418         * WebCoreSupport/WebApplicationCache.mm:
2419         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
2420         (-[WebApplicationCacheQuotaManager usage]):
2421         (-[WebApplicationCacheQuotaManager quota]):
2422         (-[WebApplicationCacheQuotaManager setQuota:]):
2423         * WebCoreSupport/WebChromeClient.h:
2424         * WebCoreSupport/WebChromeClient.mm:
2425         * WebView/WebDataSource.mm:
2426         (-[WebDataSource _transferApplicationCache:]):
2427         * WebView/WebFrame.mm:
2428         (-[WebFrame _cacheabilityDictionary]):
2429         * WebView/WebView.mm:
2430         (WebKitInitializeApplicationCachePathIfNecessary):
2431
2432 2011-09-23  Adam Klein  <adamk@chromium.org>
2433
2434         Add ENABLE_MUTATION_OBSERVERS feature flag
2435         https://bugs.webkit.org/show_bug.cgi?id=68732
2436
2437         Reviewed by Ojan Vafai.
2438
2439         This flag will guard an implementation of the "Mutation Observers" proposed in
2440         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
2441
2442         * Configurations/FeatureDefines.xcconfig:
2443
2444 2011-09-23  Anders Carlsson  <andersca@apple.com>
2445
2446         Axe WebImageRendererFactory
2447         https://bugs.webkit.org/show_bug.cgi?id=68715
2448
2449         Reviewed by Darin Adler.
2450
2451         Remove WebImageRendererFactory, it was used by Safari 3, many a moon ago.
2452
2453         * WebCoreSupport/WebImageRendererFactory.m: Removed.
2454
2455 2011-09-23  Anders Carlsson  <andersca@apple.com>
2456
2457         Add OVERRIDE to a bunch of virtual member functions on clients
2458         https://bugs.webkit.org/show_bug.cgi?id=68712
2459
2460         Reviewed by Sam Weinig.
2461
2462         * Configurations/Base.xcconfig:
2463         * WebCoreSupport/WebChromeClient.h:
2464         * WebCoreSupport/WebContextMenuClient.h:
2465         * WebCoreSupport/WebDeviceOrientationClient.h:
2466         * WebCoreSupport/WebDragClient.h:
2467         * WebCoreSupport/WebEditorClient.h:
2468         * WebCoreSupport/WebFrameLoaderClient.h:
2469         * WebCoreSupport/WebFrameNetworkingContext.h:
2470         * WebCoreSupport/WebGeolocationClient.h:
2471         * WebCoreSupport/WebIconDatabaseClient.h:
2472         * WebCoreSupport/WebInspectorClient.h:
2473         * WebCoreSupport/WebPlatformStrategies.h:
2474
2475 2011-09-22  Dean Jackson  <dino@apple.com>
2476
2477         Add ENABLE_CSS_FILTERS
2478         https://bugs.webkit.org/show_bug.cgi?id=68652
2479
2480         Reviewed by Simon Fraser.
2481
2482         * Configurations/FeatureDefines.xcconfig:
2483
2484 2011-09-22  Anders Carlsson  <andersca@apple.com>
2485
2486         Get rid of Widget::setBoundsSize
2487         https://bugs.webkit.org/show_bug.cgi?id=68491
2488
2489         Reviewed by Sam Weinig.
2490
2491         This basically reverts http://trac.webkit.org/changeset/79167 and http://trac.webkit.org/changeset/75897
2492         which were added to make zoom gestures work with WebKit1, but since we don't support zoom gestures in WebKit1
2493         anymore, it's better for code cleanliness to get rid of Widget::setBoundsSize and the associated code. While this
2494         will unfortunately break transformed iframes in WebKit1, but Simon says that it's an acceptable tradeoff.
2495
2496         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2497         (-[WebHostedNetscapePluginView updateAndSetWindow]):
2498         * WebView/WebFrameView.mm:
2499
2500 2011-09-19  Jer Noble  <jer.noble@apple.com>
2501
2502         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
2503         https://bugs.webkit.org/show_bug.cgi?id=68382
2504
2505         Reviewed by Darin Adler.
2506
2507         Initialize the webAudioEnabled preference to NO by default.
2508
2509         * WebView/WebPreferences.mm:
2510         (+[WebPreferences initialize]):
2511
2512 2011-09-21  Anders Carlsson  <andersca@apple.com>
2513
2514         Remove checks for Leopard-only Objective-C APIs
2515         https://bugs.webkit.org/show_bug.cgi?id=68579
2516
2517         Reviewed by Sam Weinig.
2518
2519         We can always assume that OBJC_API_VERSION is at least 2, it's been 2 since Leopard.
2520
2521         * Misc/WebNSObjectExtras.h:
2522
2523 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
2524
2525         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
2526         https://bugs.webkit.org/show_bug.cgi?id=67702
2527
2528         Reviewed by Csaba Osztrogon√°c.
2529
2530         * WebCoreSupport/WebPlatformStrategies.h:
2531         * WebCoreSupport/WebPlatformStrategies.mm:
2532         (WebPlatformStrategies::isLinkVisited):
2533
2534 2011-09-20  Anders Carlsson  <andersca@apple.com>
2535
2536         Remove ScrollView::platformContentsSize
2537         https://bugs.webkit.org/show_bug.cgi?id=68188
2538
2539         Reviewed by Darin Adler.
2540
2541         When creating the document view, make sure it's zero sized which matches the initial size
2542         of the ScrollView. This is fine to do early since DocumentWriter::begin sets the contents
2543         size to a zero size anyway.
2544
2545         * WebView/WebFrameView.mm:
2546         (-[WebFrameView _makeDocumentViewForDataSource:]):
2547
2548 2011-09-19  Pavel Feldman  <pfeldman@google.com>
2549
2550         Web Inspector: streamline Console's MessageType and MessageSource semantics.
2551         https://bugs.webkit.org/show_bug.cgi?id=68342
2552
2553         This change fixes semantics of the MessageSource and MessageType:
2554         MessageSource is now the source of the message (be it Network, HTML
2555         parser or Console API). MessageType is only defined for the Console API
2556         messages and contains the name of the API call (log, dir, dirxml, etc.). 
2557         Subsequent https://bugs.webkit.org/show_bug.cgi?id=66371 will make MessageType
2558         private to the inspector.
2559
2560         Reviewed by Tony Gentilcore.
2561
2562         * WebCoreSupport/WebChromeClient.mm:
2563         (stringForMessageSource):
2564         (stringForMessageType):
2565         * WebView/WebUIDelegatePrivate.h:
2566
2567 2011-09-19  Timothy Hatcher  <timothy@apple.com>
2568
2569         Make WebViews in NSPopovers render as they would in active windows.
2570
2571         The NSWindowDid{Become,Resign}KeyNotifications are not fired when NSPopovers
2572         are shown or hidden since they share key with the parent window. So WebView
2573         and WebHTMLView need to also observe the will order on/off screen notifications.
2574
2575         https://webkit.org/b/68402
2576         rdar://problem/9754099
2577
2578         Reviewed by John Sullivan.
2579
2580         * WebView/WebHTMLView.mm:
2581         (-[WebHTMLView _removeWindowObservers]): Remove order on/off screen notification obversers.
2582         (-[WebHTMLView addWindowObservers]): Add order on/off screen notification obversers.
2583         (-[WebHTMLView windowWillOrderOnScreen:]): Check if the window is already a key window,
2584         which can be the case for NSPopovers.
2585         (-[WebHTMLView windowWillOrderOffScreen:]): Remove the mouse moved observer.
2586         * WebView/WebView.mm:
2587         (-[WebView addWindowObserversForWindow:]): Add order off screen notification obverser.
2588         (-[WebView removeWindowObservers]): Remove order off screen notification obverser.
2589         (-[WebView _windowWillOrderOnScreen:]): Call _updateActiveState.
2590         (-[WebView _windowWillOrderOffScreen:]): Ditto.
2591
2592 2011-09-19  Mark Rowe  <mrowe@apple.com>
2593
2594         <http://webkit.org/b/68421> Stop calling UpdateSystemActivity in places where we hold power assertions that achieve the same effect
2595
2596         On SnowLeopard and newer it's not necessary to call UpdateSystemActivity to prevent the screensaver from kicking
2597         in as the NoDisplaySleep assertion now has that effect. It's also not necessary to hold both a NoDisplaySleep and
2598         a NoIdleSleep assertion as the latter is implied by the former.
2599
2600         Adopt the DisplaySleepDisabler class that was added to WebCore and remove all of duplicated logic from WebFullScreenController.
2601
2602         Reviewed by Dan Bernstein.
2603
2604         * WebView/WebFullScreenController.h:
2605         * WebView/WebFullScreenController.mm:
2606         (-[WebFullScreenController dealloc]):
2607         (-[WebFullScreenController _updatePowerAssertions]): Create a DisplaySleepDisabler instance when transitioning from permitting
2608         display sleep to disabling display sleep. Clear out our reference when sleep should be permitted, destroying any
2609         disabler that we own.
2610
2611 2011-09-19  Adam Barth  <abarth@webkit.org>
2612
2613         Always enable ENABLE(EVENTSOURCE)
2614         https://bugs.webkit.org/show_bug.cgi?id=68414
2615
2616         Reviewed by Eric Seidel.
2617
2618         * Configurations/FeatureDefines.xcconfig:
2619
2620 2011-09-19  Anders Carlsson  <andersca@apple.com>
2621
2622         Fix crashes when running WebKit1 tests.
2623
2624         -[WebView _mustDrawUnionedRect:singleRects:count:] was removed, so just put back the
2625         equivalent code directly into -[WebHTMLView drawRect:].
2626
2627         * WebView/WebHTMLView.mm:
2628         (-[WebHTMLView drawRect:]):
2629         * WebView/WebViewInternal.h:
2630
2631 2011-09-19  Anders Carlsson  <andersca@apple.com>
2632
2633         Remove the last remains of viewless WebKit1
2634         https://bugs.webkit.org/show_bug.cgi?id=68388
2635
2636         Reviewed by Darin Adler.
2637
2638         * WebCoreSupport/WebFrameLoaderClient.mm:
2639         (WebFrameLoaderClient::forceLayoutForNonHTML):
2640         Remove null check.
2641
2642         * WebView/WebView.mm:
2643         (-[WebView _commonInitializationWithFrameName:groupName:]):
2644         Remove usesDocumentViews parameter and checks.
2645
2646         (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]):
2647         Add an assertion that usesDocumentViews is always true.
2648
2649         (-[WebView _isUsingAcceleratedCompositing]):
2650         Remove usesDocumentViews check.
2651
2652         (-[WebView _isSoftwareRenderable]):
2653         Remove usesDocumentViews check.
2654
2655         (-[WebView initWithFrame:frameName:groupName:]):
2656         Remove usesDocumentViews parameter and always pass YES to the _initWithFrame method.
2657         
2658         (-[WebView initWithCoder:]):
2659         Remove usesDocumentViews parameter.
2660
2661         (-[WebView _frameViewAtWindowPoint:]):
2662         Remove usesDocumentViews check.
2663
2664         * WebView/WebViewData.h:
2665         Remove usesDocumentViews ivar.
2666
2667         * WebView/WebViewPrivate.h:
2668         Remove usesDocumentViews parameters.
2669
2670 2011-09-19  Anders Carlsson  <andersca@apple.com>
2671
2672         Remove WebViewEventHandling.mm
2673         https://bugs.webkit.org/show_bug.cgi?id=68387
2674
2675         Reviewed by Adam Roben.
2676
2677         WebViewEventHandling.mm was all about event handling in viewless WebKit, so rip it out since
2678         we're getting rid of viewless WebKit1.
2679
2680         * WebView/WebView.mm:
2681         (-[WebView _close]):
2682         * WebView/WebViewData.h:
2683         * WebView/WebViewEventHandling.mm: Removed.
2684         * WebView/WebViewInternal.h:
2685
2686 2011-09-19  Anders Carlsson  <andersca@apple.com>
2687
2688         Remove -[WebView _selectionChanged] and -[WebView _setTooltip:]
2689         https://bugs.webkit.org/show_bug.cgi?id=68385
2690
2691         Reviewed by Adam Roben.
2692
2693         Move these functions back into the respective clients and remove usesDocumentViews checks.
2694
2695         * WebCoreSupport/WebChromeClient.mm:
2696         (WebChromeClient::setToolTip):
2697         * WebCoreSupport/WebEditorClient.mm:
2698         (WebEditorClient::respondToChangedSelection):
2699         * WebView/WebView.mm:
2700         * WebView/WebViewEventHandling.mm:
2701         * WebView/WebViewInternal.h:
2702
2703 2011-09-19  Anders Carlsson  <andersca@apple.com>
2704
2705         Begin removing -[WebView _usesDocumentCalls] from WebView.mm
2706         https://bugs.webkit.org/show_bug.cgi?id=68383
2707
2708         Reviewed by Adam Roben.
2709
2710         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
2711         returns true, since viewless WebKit1 has been abandoned.
2712
2713         * WebView/WebView.mm:
2714         (-[WebView selectedFrame]):
2715         (-[WebView setHostWindow:]):
2716         (-[WebView acceptsFirstResponder]):
2717         (-[WebView becomeFirstResponder]):
2718         (-[WebView _webcore_effectiveFirstResponder]):
2719         (-[WebView setNextKeyView:]):
2720         (-[WebView setHoverFeedbackSuspended:]):
2721
2722 2011-09-19  Anders Carlsson  <andersca@apple.com>
2723
2724         Remove calls to -[WebView _usesDocumentViews] from WebFrameLoaderClient.mm
2725         https://bugs.webkit.org/show_bug.cgi?id=68379
2726
2727         Reviewed by Adam Roben.
2728
2729         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
2730         returns true, since viewless WebKit1 has been abandoned.
2731
2732         * WebCoreSupport/WebFrameLoaderClient.mm:
2733         (WebFrameLoaderClient::hasHTMLView):
2734         (WebFrameLoaderClient::dispatchDidCommitLoad):
2735         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2736         (WebFrameLoaderClient::createFrame):
2737         * WebView/WebFrame.mm:
2738         (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
2739         (-[WebFrame _hasSelection]):
2740         (-[WebFrame _clearSelection]):
2741         (-[WebFrame _shouldFlattenCompositingLayers:]):
2742         (-[WebFrame _dragSourceEndedAt:operation:]):
2743         (-[WebFrame frameView]):
2744
2745 2011-09-19  Anders Carlsson  <andersca@apple.com>
2746
2747         Remove calls to -[WebView _usesDocumentViews]
2748         https://bugs.webkit.org/show_bug.cgi?id=68377
2749
2750         Reviewed by Adam Roben.
2751
2752         Remove checks and begin assuming that -[WebView _usesDocumentViews] always 
2753         returns true, since viewless WebKit1 has been abandoned.
2754
2755         * WebCoreSupport/WebChromeClient.mm:
2756         (WebChromeClient::windowResizerRect):
2757         (WebChromeClient::invalidateContentsAndWindow):
2758         (WebChromeClient::screenToWindow):
2759         (WebChromeClient::windowToScreen):
2760         (WebChromeClient::platformPageClient):
2761         (WebChromeClient::scrollRectIntoView):
2762         (WebChromeClient::print):
2763         * WebView/WebDataSource.mm:
2764         (-[WebDataSource _receivedData:]):
2765
2766 2011-09-19  Dan Bernstein  <mitz@apple.com>
2767
2768         WebKit part of [mac] WebKit contains Objective-C classes that are not prefixed with its standard prefixes
2769         https://bugs.webkit.org/show_bug.cgi?id=68323
2770
2771         Reviewed by Sam Weinig.
2772
2773         Renamed NonBlockingPanel to WebNonBlockingPanel.
2774         Renamed ThreadEnabler to WebCocoaThreadingEnabler.
2775         Renamed PDFPrefUpdatingProxy to WebPDFPrefUpdatingProxy.
2776
2777         * Misc/WebIconDatabase.mm:
2778         (+[WebCocoaThreadingEnabler enableThreading]):
2779         (importToWebCoreFormat):
2780         * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
2781         * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
2782         * Panels/WebAuthenticationPanel.h:
2783         * Panels/WebAuthenticationPanel.m: Renamed NonBlockingPanel to
2784         WebNonBlockingPanel. Because Safari 5.1 uses NonBlockingPanel, this will
2785         cause nightly builds to log an error message when showing the Safari
2786         HTTP authentication sheet and disable the Quit command while the sheet
2787         is disaplyed.
2788         * WebView/WebPDFView.mm:
2789         (-[WebPDFView initWithFrame:]):
2790         (-[WebPDFView _updatePreferencesSoon]):
2791
2792 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
2793
2794         FrameLoaderClient BackForwardList-related methods are unsued
2795         https://bugs.webkit.org/show_bug.cgi?id=68293
2796
2797         Reviewed by Darin Adler.
2798
2799         Remove FrameLoaderClient methods that were added by r51629, since only        
2800         the old (since-deleted) Android port needed them.
2801
2802         * WebCoreSupport/WebFrameLoaderClient.h:
2803         * WebCoreSupport/WebFrameLoaderClient.mm:
2804         * WebKit.order:
2805
2806 2011-09-16  Simon Fraser  <simon.fraser@apple.com>
2807
2808         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
2809         https://bugs.webkit.org/show_bug.cgi?id=68134
2810
2811         Reviewed by Sam Weinig.
2812         
2813         Hook up a private preference that enables the mock scrollbar theme.
2814
2815         * WebView/WebPreferenceKeysPrivate.h:
2816         * WebView/WebPreferences.mm:
2817         (-[WebPreferences mockScrollbarsEnabled]):
2818         (-[WebPreferences setMockScrollbarsEnabled:]):
2819         * WebView/WebPreferencesPrivate.h:
2820
2821 2011-09-15  Adam Barth  <abarth@webkit.org>
2822
2823         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
2824         https://bugs.webkit.org/show_bug.cgi?id=68205
2825
2826         Reviewed by Eric Seidel.
2827
2828         * Storage/WebDatabaseManager.mm:
2829         * Storage/WebDatabaseManagerInternal.h:
2830         * Storage/WebDatabaseManagerPrivate.h:
2831         * Storage/WebDatabaseQuotaManager.mm:
2832         (-[WebDatabaseQuotaManager usage]):
2833         (-[WebDatabaseQuotaManager quota]):
2834         (-[WebDatabaseQuotaManager setQuota:]):
2835         * Storage/WebDatabaseTrackerClient.h:
2836         * Storage/WebDatabaseTrackerClient.mm:
2837         * WebCoreSupport/WebChromeClient.h:
2838         * WebCoreSupport/WebChromeClient.mm:
2839         * WebCoreSupport/WebSecurityOrigin.mm:
2840         (-[WebSecurityOrigin usage]):
2841         (-[WebSecurityOrigin quota]):
2842         (-[WebSecurityOrigin setQuota:]):
2843         * WebView/WebFrame.mm:
2844         (-[WebFrame _cacheabilityDictionary]):
2845         * WebView/WebView.mm:
2846         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2847         (-[WebView _preferencesChanged:]):
2848
2849 2011-09-15  Mark Hahnenberg  <mhahnenberg@apple.com>
2850
2851         Unzip initialization lists and constructors in JSCell hierarchy (7/7)
2852         https://bugs.webkit.org/show_bug.cgi?id=68122
2853
2854         Reviewed by Geoffrey Garen.
2855
2856         Completed the seventh and final level of the refactoring to add finishCreation() 
2857         methods to all classes within the JSCell hierarchy with non-trivial 
2858         constructor bodies.
2859
2860         * Plugins/Hosted/ProxyInstance.mm:
2861         (WebKit::ProxyRuntimeMethod::create):
2862         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2863         * Plugins/Hosted/ProxyRuntimeObject.h:
2864         (WebKit::ProxyRuntimeObject::create):
2865         * Plugins/Hosted/ProxyRuntimeObject.mm:
2866         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2867
2868 2011-09-15  Kentaro Hara  <haraken@google.com>
2869
2870         A single line must not be split into two pages.
2871         https://bugs.webkit.org/show_bug.cgi?id=65005
2872
2873         Reviewed by David Hyatt.
2874
2875         When the document width of a page is overflowed, the last line of the page can be
2876         split into the next page. This is the regression caused by r88737. r88737 tried to
2877         fix rounding errors in rendering calculations by expanding and shrinking a page
2878         using one common method, resizePageRectsKeepingRatio(), but overlooked the case where
2879         a document width gets overflowed.
2880
2881         Test: printing/single-line-must-not-be-split-into-two-pages.html
2882
2883         * WebView/WebHTMLView.mm:
2884         (-[WebHTMLView _web_setPrintingModeRecursive]): Passes an original page size to setPrinting().
2885         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
2886         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
2887         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Ditto.
2888         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]): Ditto.
2889         (-[WebHTMLView _endPrintMode]): Ditto.
2890         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]): Ditto.
2891         (-[WebHTMLView _endScreenPaginationMode]): Ditto.
2892         (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]): Ditto.
2893         (-[WebHTMLView layout]): Ditto.
2894         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]): Ditto.
2895         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Ditto.
2896         (-[WebHTMLView setPageWidthForPrinting:]): Ditto.
2897
2898 2011-09-15  Eric Seidel  <eric@webkit.org>
2899
2900         Remove ENABLE(SVG_AS_IMAGE) since all major ports have it on by default
2901         https://bugs.webkit.org/show_bug.cgi?id=68182
2902
2903         Reviewed by Adam Barth.
2904
2905         * Configurations/FeatureDefines.xcconfig:
2906
2907 2011-09-15  Eric Seidel  <eric@webkit.org>
2908
2909         Remove ENABLE_SVG_ANIMATION as all major ports have it on by default
2910         https://bugs.webkit.org/show_bug.cgi?id=68022
2911
2912         Reviewed by Ryosuke Niwa.
2913
2914         * Configurations/FeatureDefines.xcconfig:
2915
2916 2011-09-14  Anders Carlsson  <andersca@apple.com>
2917
2918         Get rid of WebCoreViewFactory and its WebViewFactory subclass
2919         https://bugs.webkit.org/show_bug.cgi?id=68124
2920
2921         Reviewed by Sam Weinig.
2922
2923         * WebCoreSupport/WebContextMenuClient.mm:
2924         * WebCoreSupport/WebViewFactory.h: Removed.
2925         * WebCoreSupport/WebViewFactory.mm: Removed.
2926         * WebView/WebFrameView.mm:
2927         (-[WebFrameView initWithFrame:]):
2928
2929 2011-09-14  Mark Hahnenberg  <mhahnenberg@apple.com>
2930
2931         Unzip initialization lists and constructors in JSCell hierarchy (6/7)
2932         https://bugs.webkit.org/show_bug.cgi?id=67692
2933
2934         Reviewed by Geoffrey Garen.
2935
2936         Completed the sixth level of the refactoring to add finishCreation() 
2937         methods to all classes within the JSCell hierarchy with non-trivial 
2938         constructor bodies.
2939
2940         This primarily consists of pushing the calls to finishCreation() down 
2941         into the constructors of the subclasses of the fifth level of the hierarchy 
2942         as well as pulling the finishCreation() calls out into the class's corresponding
2943         create() method if it has one.  Doing both simultaneously allows us to 
2944         maintain the invariant that the finishCreation() method chain is called exactly 
2945         once during the creation of an object, since calling it any other number of 
2946         times (0, 2, or more) will cause an assertion failure.
2947
2948         * Plugins/Hosted/ProxyInstance.mm:
2949         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2950         (WebKit::ProxyRuntimeMethod::finishCreation):
2951
2952 2011-09-13  Eric Seidel  <eric@webkit.org>
2953
2954         Remove ENABLE_SVG_USE as <use> is required by HTML5
2955         https://bugs.webkit.org/show_bug.cgi?id=68019
2956
2957         Reviewed by Ryosuke Niwa.
2958
2959         * Configurations/FeatureDefines.xcconfig:
2960
2961 2011-09-13  Anders Carlsson  <andersca@apple.com>
2962
2963         Disable C++ exceptions when building with clang
2964         https://bugs.webkit.org/show_bug.cgi?id=68031
2965         <rdar://problem/9556880>
2966
2967         Reviewed by Mark Rowe.
2968
2969         * Configurations/Base.xcconfig:
2970
2971 2011-09-13  Eric Seidel  <eric@webkit.org>
2972
2973         Remove ENABLE_SVG_FOREIGN_OBJECT as it is a required part of HTML5
2974         https://bugs.webkit.org/show_bug.cgi?id=68018
2975
2976         Reviewed by Ryosuke Niwa.
2977
2978         * Configurations/FeatureDefines.xcconfig:
2979
2980 2011-09-09  Oliver Hunt  <oliver@apple.com>
2981
2982         Remove support for anonymous storage from jsobjects
2983         https://bugs.webkit.org/show_bug.cgi?id=67881
2984
2985         Reviewed by Sam Weinig.
2986
2987         Remove the use of AnonymousSlotCount
2988
2989         * Plugins/Hosted/ProxyInstance.mm:
2990         (WebKit::ProxyRuntimeMethod::createStructure):
2991         * Plugins/Hosted/ProxyRuntimeObject.h:
2992         (WebKit::ProxyRuntimeObject::createStructure):
2993
2994 2011-09-09  Chris Marrin  <cmarrin@apple.com>
2995
2996         requestAnimationFrame doesn't throttle on Mac
2997         https://bugs.webkit.org/show_bug.cgi?id=67171
2998
2999         Reviewed by Simon Fraser.
3000
3001         Removed runLoopObserver for requestAnimationFrame. It's now
3002         done by a Timer in ScriptedAnimationController in WebCore.
3003
3004         * WebCoreSupport/WebChromeClient.h:
3005         * WebCoreSupport/WebChromeClient.mm:
3006         * WebView/WebView.mm:
3007         (-[WebView _close]):
3008         * WebView/WebViewData.h:
3009         * WebView/WebViewInternal.h:
3010
3011 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
3012
3013         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
3014         https://bugs.webkit.org/show_bug.cgi?id=67250
3015
3016         Reviewed by Simon Fraser.
3017
3018         * WebView/WebView.mm:
3019         (-[WebView _scaleWebView:atOrigin:]):
3020         (-[WebView _viewScaleFactor]):
3021
3022 2011-09-09  Mark Hahnenberg  <mhahnenberg@apple.com>
3023
3024         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
3025         https://bugs.webkit.org/show_bug.cgi?id=67420
3026
3027         Reviewed by Geoffrey Garen.
3028
3029         Completed the fifth level of the refactoring to add finishCreation() 
3030         methods to all classes within the JSCell hierarchy with non-trivial 
3031         constructor bodies.
3032
3033         This primarily consists of pushing the calls to finishCreation() down 
3034         into the constructors of the subclasses of the second level of the hierarchy 
3035         as well as pulling the finishCreation() calls out into the class's corresponding
3036         create() method if it has one.  Doing both simultaneously allows us to 
3037         maintain the invariant that the finishCreation() method chain is called exactly 
3038         once during the creation of an object, since calling it any other number of 
3039         times (0, 2, or more) will cause an assertion failure.
3040
3041         * Plugins/Hosted/ProxyRuntimeObject.h:
3042         * Plugins/Hosted/ProxyRuntimeObject.mm:
3043         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3044         (WebKit::ProxyRuntimeObject::finishCreation):
3045
3046 2011-09-08  Sam Weinig  <sam@webkit.org>
3047
3048         Remove the Completion object from JSC, I have never liked it
3049         https://bugs.webkit.org/show_bug.cgi?id=67755
3050
3051         Reviewed by Gavin Barraclough.
3052
3053         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3054         (WebKit::NetscapePluginInstanceProxy::evaluate):
3055
3056 2011-09-07  Sheriff Bot  <webkit.review.bot@gmail.com>
3057
3058         Unreviewed, rolling out r94627 and r94632.
3059         http://trac.webkit.org/changeset/94627
3060         http://trac.webkit.org/changeset/94632
3061         https://bugs.webkit.org/show_bug.cgi?id=67698
3062
3063         It broke tests on GTK and Qt (Requested by Ossy on #webkit).
3064
3065         * Plugins/Hosted/ProxyRuntimeObject.h:
3066         * Plugins/Hosted/ProxyRuntimeObject.mm:
3067         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3068
3069 2011-09-06  Mark Hahnenberg  <mhahnenberg@apple.com>
3070
3071         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
3072         https://bugs.webkit.org/show_bug.cgi?id=67420
3073
3074         Reviewed by Geoffrey Garen.
3075
3076         Completed the fifth level of the refactoring to add finishCreation() 
3077         methods to all classes within the JSCell hierarchy with non-trivial 
3078         constructor bodies.
3079
3080         This primarily consists of pushing the calls to finishCreation() down 
3081         into the constructors of the subclasses of the second level of the hierarchy 
3082         as well as pulling the finishCreation() calls out into the class's corresponding
3083         create() method if it has one.  Doing both simultaneously allows us to 
3084         maintain the invariant that the finishCreation() method chain is called exactly 
3085         once during the creation of an object, since calling it any other number of 
3086         times (0, 2, or more) will cause an assertion failure.
3087
3088         * Plugins/Hosted/ProxyRuntimeObject.h:
3089         * Plugins/Hosted/ProxyRuntimeObject.mm:
3090         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3091         (WebKit::ProxyRuntimeObject::finishCreation):
3092
3093 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
3094
3095         Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
3096         https://bugs.webkit.org/show_bug.cgi?id=67569
3097
3098         Reviewed by Antonio Gomes.
3099
3100         * WebView/WebHTMLView.mm:
3101         (-[WebHTMLView _updateSelectionForInputManager]):
3102
3103 2011-09-05  Oliver Hunt  <oliver@apple.com>
3104
3105         An object's structure should reference the global object responsible for its creation
3106         https://bugs.webkit.org/show_bug.cgi?id=67624
3107
3108         Reviewed by Gavin Barraclough.
3109
3110         Update for new Structure::create() globalObject parameter.
3111
3112         * Plugins/Hosted/ProxyInstance.mm:
3113         (WebKit::ProxyRuntimeMethod::createStructure):
3114         * Plugins/Hosted/ProxyRuntimeObject.h:
3115         (WebKit::ProxyRuntimeObject::createStructure):
3116
3117 2011-09-01  Mark Rowe  <mrowe@apple.com>
3118
3119         Fix the build by adding some more missing return types.
3120
3121         * WebView/WebDashboardRegion.h:
3122         * WebView/WebDashboardRegion.mm:
3123         (-[WebDashboardRegion initWithRect:clip:type:]):
3124
3125 2011-09-01  Tim Horton  <timothy_horton@apple.com>
3126
3127         REGRESSION: Rendering artifacts on a rotated, pattern filled shape
3128         https://bugs.webkit.org/show_bug.cgi?id=53055
3129         <rdar://problem/8910917>
3130
3131         Reviewed by Simon Fraser.
3132
3133         Introduce wkCGPatternCreateWithImageAndTransform.
3134
3135         * WebCoreSupport/WebSystemInterface.mm:
3136         (InitWebCoreSystemInterface):
3137
3138 2011-08-31  Beth Dakin  <bdakin@apple.com>
3139
3140         https://bugs.webkit.org/show_bug.cgi?id=67322
3141         Re-name overrideBackingScaleFactor
3142
3143         Reviewed by John Sullivan.
3144
3145         _setOverrideBackingScaleFactor is now _setCustomBackingScaleFactor
3146         * WebView/WebView.mm:
3147         (-[WebView _setCustomBackingScaleFactor:]):
3148         (-[WebView _deviceScaleFactor]):
3149         * WebView/WebViewData.h:
3150         * WebView/WebViewPrivate.h:
3151
3152 2011-08-30  Dan Bernstein  <mitz@apple.com>
3153
3154         <rdar://problem/9281695> Add text search API for getting the DOM range of a text match
3155         https://bugs.webkit.org/show_bug.cgi?id=67230
3156
3157         Reviewed by Darin Adler.
3158
3159         * WebView/WebHTMLView.mm:
3160         * WebView/WebView.mm:
3161         (coreOptions): Moved this function from WebHTMLView.mm to here and made
3162         it accessible from both this file and WebHTMLView.mm.
3163         (-[WebView DOMRangeOfString:relativeTo:options:]): Added this new API.
3164         * WebView/WebViewInternal.h:
3165         * WebView/WebViewPrivate.h:
3166
3167 2011-08-30  Beth Dakin  <bdakin@apple.com>
3168
3169         https://bugs.webkit.org/show_bug.cgi?id=67150
3170         Would like API to use a custom device scale factor for a particular WebView/WKView
3171         -and corresponding-
3172         <rdar://problem/10041016>
3173
3174         Reviewed by Darin Adler.
3175
3176         New API is _setOverrideBackingScaleFactor:(CGFloat)
3177         * WebView/WebView.mm:
3178         (-[WebView _setOverrideBackingScaleFactor:]):
3179         (-[WebView _deviceScaleFactor]):
3180         * WebView/WebViewData.h:
3181         * WebView/WebViewPrivate.h:
3182
3183 2011-08-30  Aaron Colwell  <acolwell@chromium.org>
3184
3185         Add MediaSource API to HTMLMediaElement
3186         https://bugs.webkit.org/show_bug.cgi?id=64731
3187
3188         Reviewed by Eric Carlson.
3189
3190         * Configurations/FeatureDefines.xcconfig:
3191
3192 2011-08-29  Alexey Proskuryakov  <ap@apple.com>
3193
3194         DumpRenderTree should begin each test with an empty cookie store
3195         https://bugs.webkit.org/show_bug.cgi?id=63545
3196         <rdar://problem/5666907>
3197
3198         Reviewed by Darin Adler.
3199
3200         * WebView/WebPreferences.mm:
3201         (+[WebPreferences initialize]):
3202         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
3203         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
3204         * WebView/WebPreferencesPrivate.h:
3205         Exposed an SPI to use a private default session. It's separate from private browsing,
3206         because some tests enable the latter, and we don't want to mix them up.
3207         Also exposed an SPI to set cookie accept policy regardless of what session we are currently
3208         using.
3209
3210         * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated to use currentStorageSession()
3211         instead of privateBrowsingStorageSession().
3212
3213 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
3214
3215         The unused ScrollView* argument can and should be removed from
3216         scrollRectIntoView.
3217         https://bugs.webkit.org/show_bug.cgi?id=67117
3218
3219         Reviewed by Darin Adler.
3220
3221         * WebCoreSupport/WebChromeClient.h:
3222         * WebCoreSupport/WebChromeClient.mm:
3223         (WebChromeClient::scrollRectIntoView):
3224
3225 2011-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
3226
3227         Unreviewed, rolling out r93987, r93992, r93995, r93998, and
3228         r93999.
3229         http://trac.webkit.org/changeset/93987
3230         http://trac.webkit.org/changeset/93992
3231         http://trac.webkit.org/changeset/93995
3232         http://trac.webkit.org/changeset/93998
3233         http://trac.webkit.org/changeset/93999
3234         https://bugs.webkit.org/show_bug.cgi?id=67147
3235
3236         Many failing tests (Requested by ap on #webkit).
3237
3238         * WebView/WebPreferences.mm:
3239         (+[WebPreferences initialize]):
3240         * WebView/WebPreferencesPrivate.h:
3241
3242 2011-08-26  Alexey Proskuryakov  <ap@apple.com>
3243
3244         DumpRenderTree should begin each test with an empty cookie store
3245         https://bugs.webkit.org/show_bug.cgi?id=63545
3246         <rdar://problem/5666907>
3247
3248         Reviewed by Darin Adler.
3249
3250         * WebView/WebPreferences.mm:
3251         (+[WebPreferences initialize]):
3252         (+[WebPreferences _usePrivateSessionForNetworkLoading]):
3253         * WebView/WebPreferencesPrivate.h:
3254         Exposed an SPI to use a private default session. It's separate from private browsing,
3255         because some tests enable the latter, and we don't want to mix them up.
3256
3257 2011-08-23  Chris Marrin  <cmarrin@apple.com>
3258
3259         [mac] requestAnimationFrame support for mac port
3260         https://bugs.webkit.org/show_bug.cgi?id=59146
3261
3262         Reviewed by Simon Fraser.
3263
3264         Implement requestAnimationFrame for WebKit. Add a
3265         CFRunLoopObserver to WebView, which runs just before
3266         the syncCompositingState RLO and calls into the 
3267         ScriptedAnimationController if scheduleAnimation() has
3268         been called.
3269
3270         * Configurations/FeatureDefines.xcconfig:
3271         * WebCoreSupport/WebChromeClient.h:
3272         * WebCoreSupport/WebChromeClient.mm:
3273         (WebChromeClient::scheduleAnimation):
3274         * WebView/WebView.mm:
3275         (-[WebView _close]):
3276         (-[WebView _unscheduleAnimation]):
3277         (-[WebView _scheduleCompositingLayerSync]):
3278         (requestAnimationFrameRunLoopObserverCallback):
3279         (-[WebView _scheduleAnimation]):
3280         * WebView/WebViewData.h:
3281         * WebView/WebViewInternal.h:
3282
3283 2011-08-24  Alexey Proskuryakov  <ap@apple.com>
3284
3285         Plug-in tests are flaky on Mac
3286         https://bugs.webkit.org/show_bug.cgi?id=66822
3287
3288         Reviewed by Anders Carlsson.
3289
3290         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3291         (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript):
3292         Protect objects that can be removed by a script.
3293
3294         * WebView/WebFrame.mm:
3295         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Ditto.
3296         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): Ditto.
3297         Also fixed some nonsense code.
3298
3299 2011-08-23  Mark Hahnenberg  <mhahnenberg@apple.com>
3300
3301         Add checks to ensure allocation does not take place during initialization of GC-managed objects
3302         https://bugs.webkit.org/show_bug.cgi?id=65288
3303
3304         Reviewed by Darin Adler.
3305
3306         Adding the new validation functionality.  In its current state, it will performs checks, 
3307         but they don't fail unless you do allocation in the arguments to the parent constructor in the 
3308         initialization list of a class.  The allocateCell() method turns on the global flag disallowing any new 
3309         allocations, and the constructorBody() method in JSCell turns it off.  This way, allocation is still 
3310         allowed in constructor bodies while other refactoring efforts continue.
3311
3312         * Plugins/Hosted/ProxyRuntimeObject.h:
3313         (WebKit::ProxyRuntimeObject::create):
3314         * Plugins/Hosted/ProxyRuntimeObject.mm:
3315         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3316
3317 2011-08-18  Beth Dakin  <bdakin@apple.com>
3318
3319         Reviewed by Sam Weinig.
3320
3321         https://bugs.webkit.org/show_bug.cgi?id=66495
3322         Lion-specific scroller SPIs can use forward declaration instead of 
3323         WebKitSystemInterface
3324
3325         * WebCoreSupport/WebSystemInterface.mm:
3326         (InitWebCoreSystemInterface):
3327
3328 2011-08-18  Anders Carlsson  <andersca@apple.com>
3329
3330         More C++0x libc++ build fixes
3331         https://bugs.webkit.org/show_bug.cgi?id=66476
3332
3333         Reviewed by Adam Roben.
3334
3335         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3336         (WKPCSetException):
3337         Use a WTF String here instead of an STL string.
3338
3339         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3340         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
3341         std::make_pair now takes rvalue references, so get rid of the template arguments and let
3342         the compiler deduce them instead.
3343
3344 2011-08-18  Adam Roben  <aroben@apple.com>
3345
3346         Update the device scale factor when the WebView's window changes
3347
3348         Fixes <http://webkit.org/b/66412> <rdar://problem/9971958> WebKit doesn't react when a
3349         WebView is moved between windows with different backing scale factors
3350
3351         Reviewed by Anders Carlsson.
3352
3353         * WebView/WebView.mm:
3354         (-[WebView viewDidMoveToWindow]): Call setDeviceScaleFactor because our new window (or no
3355         window at all) might have a different backing scale factor than the previous one.
3356         (-[WebView _deviceScaleFactor]): Moved to the WebFileInternal category.
3357
3358 2011-08-17  Adam Roben  <aroben@apple.com>
3359
3360         Make WebCore keep track of the current device scale factor
3361
3362         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
3363         device scale factor
3364
3365         Reviewed by Darin Adler.
3366
3367         * WebCoreSupport/WebChromeClient.h:
3368         * WebCoreSupport/WebChromeClient.mm:
3369         Moved code to calculate the device scale factor from here...
3370
3371         * WebView/WebView.mm:
3372         (-[WebView _deviceScaleFactor]):
3373         ...to here.
3374
3375         (-[WebView _windowDidChangeResolution:]): Now calls Page::setDeviceScaleFactor.
3376
3377 2011-08-17  Dan Bernstein  <mitz@apple.com>
3378
3379         Removed some code that is not needed when building for Leopard or later.
3380
3381         Reviewed by Anders Carlsson.
3382
3383         * WebCoreSupport/WebContextMenuClient.mm:
3384         (fixMenusToSendToOldClients): Removed check for Tiger Mail.
3385         * WebCoreSupport/WebFrameLoaderClient.mm:
3386         (WebFrameLoaderClient::objectContentType):
3387         * WebView/WebView.mm:
3388         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3389         (-[WebView _preferencesChanged:]):
3390
3391 2011-08-17  Dan Bernstein  <mitz@apple.com>
3392
3393         Eliminate the WebCGFloat compatibility definition that was needed for Tiger.
3394
3395         Rubber-stamped by Anders Carlsson.
3396
3397         * WebView/WebHTMLViewPrivate.h:
3398
3399 2011-08-17  Dan Bernstein  <mitz@apple.com>
3400
3401         Eliminate the WebNSInteger and WebNSUInteger compatibility definitions that were
3402         needed for Tiger.
3403
3404         Reviewed by Darin Adler.
3405
3406         * History/WebBackForwardList.h:
3407         * WebView/WebDocumentInternal.h:
3408         * WebView/WebHTMLRepresentation.h:
3409         * WebView/WebPreferences.h:
3410         * WebView/WebResourceLoadDelegate.h:
3411         * WebView/WebResourceLoadDelegatePrivate.h:
3412         * WebView/WebScriptDebugDelegate.h:
3413         * WebView/WebTextIterator.h:
3414         * WebView/WebUIDelegate.h:
3415         * WebView/WebView.h:
3416         * WebView/WebViewPrivate.h:
3417
3418 2011-08-15  Dmitry Titov  <dimich@chromium.org>
3419
3420         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
3421         https://bugs.webkit.org/show_bug.cgi?id=66165
3422
3423         Reviewed by Darin Fisher.
3424
3425         * WebCoreSupport/WebFrameLoaderClient.h:
3426         * WebCoreSupport/WebFrameLoaderClient.mm:
3427         (WebFrameLoaderClient::transferLoadingResourceFromPage):
3428
3429 2011-08-15  Mark Hahnenberg  <mhahnenberg@apple.com>
3430
3431         Refactor JS objects to allocate in static create methods rather than constructors
3432         https://bugs.webkit.org/show_bug.cgi?id=65347
3433
3434         Reviewed by Geoffrey Garen.
3435
3436         Removed all calls to deprecatedGetDOMObject from initialization lists as part of a 
3437         larger refactoring to get rid of all allocation during initialization.
3438
3439         * Plugins/Hosted/ProxyInstance.mm:
3440         (WebKit::ProxyRuntimeMethod::create):
3441         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
3442
3443 2011-08-15  Adam Roben  <aroben@apple.com>
3444
3445         Update pages' style and content scale when the window's backing scale factor changes
3446
3447         Unfortunately, I couldn't think of a way to test this in an automated fashion.
3448
3449         Fixes <http://webkit.org/b/66229> <rdar://problem/9906269> WebKit doesn't react to device
3450         scale factor changes
3451
3452         Reviewed by Simon Fraser.
3453
3454         * WebView/WebView.mm:
3455         (-[WebView addWindowObserversForWindow:]):
3456         (-[WebView removeWindowObservers]):
3457         Listen for the notification that tells us the window's backing scale has changed.
3458
3459         (-[WebView _windowDidChangeResolution:]): Tell the page about the change to the device scale
3460         factor so that, e.g., scale-factor-dependent media queries will be reevaluated.
3461
3462 2011-08-10  Adam Roben  <aroben@apple.com>
3463
3464         Clear up scale factor terminology
3465
3466         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
3467         software is running, and one that is per-Page and can be controlled via API calls. This
3468         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
3469         code use those names. It should introduce no behavior changes.
3470
3471         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
3472         device scale factor
3473
3474         Reviewed by Simon Fraser.
3475
3476         * Misc/WebNSControlExtras.m:
3477         (-[NSControl sizeToFitAndAdjustWindowHeight]): Updated this function to use more modern
3478         AppKit scale factor terminology. (This is unrelated to the rest of the patch.)
3479
3480         * WebCoreSupport/WebChromeClient.h:
3481         * WebCoreSupport/WebChromeClient.mm:
3482
3483 2011-08-13  Dan Bernstein  <mitz@apple.com>
3484
3485         Changed the value of WebKitShowsToolTipOverTruncatedTextPreferenceKey to match the naming everywhere else.
3486
3487         Reviewed by Joseph Pecoraro.
3488
3489         * WebView/WebPreferenceKeysPrivate.h:
3490
3491 2011-08-13  Sam Weinig  <sam@webkit.org>
3492
3493         Remove unused variables from WebView/WebFullScreenController.h
3494         https://bugs.webkit.org/show_bug.cgi?id=66194
3495
3496         Reviewed by Dan Bernstein.
3497
3498         * WebView/WebFullScreenController.h:
3499         Remove a few variables which were not used.
3500
3501 2011-08-12  Dan Bernstein  <mitz@apple.com>
3502
3503         Add an option to automatically show tooltips (with the full text) over truncated text
3504         https://bugs.webkit.org/show_bug.cgi?id=66178
3505
3506         Reviewed by Simon Fraser.
3507
3508         * WebView/WebPreferenceKeysPrivate.h: Defined a preference key.
3509         * WebView/WebPreferences.mm:
3510         (+[WebPreferences initialize]): Added a default value of NO for the
3511         ShowsToolTipOverTruncatedText preference.
3512         (-[WebPreferences showsToolTipOverTruncatedText]): Added this getter.
3513         (-[WebPreferences setShowsToolTipOverTruncatedText:]): Added this setter.
3514         * WebView/WebPreferencesPrivate.h:
3515         * WebView/WebView.mm:
3516         (-[WebView _preferencesChanged:]): Added call to Settings::setShowsToolTipOverTruncatedText().
3517
3518 2011-08-12  Sam Weinig  <sam@webkit.org>
3519
3520         Use __builtin_trap() for CRASH when building with clang
3521         https://bugs.webkit.org/show_bug.cgi?id=66152
3522
3523         Reviewed by Anders Carlsson.
3524
3525         * Plugins/WebBaseNetscapePluginView.mm:
3526         (-[WebBaseNetscapePluginView setAttributeKeys:andValues:]):
3527         (-[WebBaseNetscapePluginView handleMouseMoved:]):
3528         (-[WebBaseNetscapePluginView handleMouseEntered:]):
3529         (-[WebBaseNetscapePluginView handleMouseExited:]):
3530         (-[WebBaseNetscapePluginView focusChanged]):
3531         (-[WebBaseNetscapePluginView windowFocusChanged:]):
3532         (-[WebBaseNetscapePluginView createPlugin]):
3533         (-[WebBaseNetscapePluginView loadStream]):
3534         (-[WebBaseNetscapePluginView shouldStop]):
3535         (-[WebBaseNetscapePluginView destroyPlugin]):
3536         (-[WebBaseNetscapePluginView updateAndSetWindow]):
3537         (-[WebBaseNetscapePluginView sendModifierEventWithKeyCode:character:]):
3538         (-[WebBaseNetscapePluginView pluginLayer]):
3539         (-[WebBaseNetscapePluginView getFormValue:]):
3540         Remove the ASSERT_NOT_REACHED from the base class methods. They were not
3541         adding much value and were getting in the way of making the static analyzer
3542         work. A better way to do this would be to use a formal protocol.
3543
3544 2011-08-12  Mark Rowe  <mrowe@apple.com>
3545
3546         Be more forward-looking in the choice of compiler.
3547
3548         Rubber-stamped by Jon Honeycutt.
3549
3550         * Configurations/CompilerVersion.xcconfig:
3551
3552 2011-08-10  David Hyatt  <hyatt@apple.com>
3553
3554         https://bugs.webkit.org/show_bug.cgi?id=66004
3555
3556         Removing the CSS Regions and Exclusions ifdefs.
3557
3558         Reviewed by Adam Roben.
3559
3560         * Configurations/FeatureDefines.xcconfig:
3561
3562 2011-08-09  Mark Hahnenberg  <mhahnenberg@apple.com>
3563
3564         Add ParentClass typedef in all JSC classes
3565         https://bugs.webkit.org/show_bug.cgi?id=65731
3566
3567         Reviewed by Oliver Hunt.
3568
3569         Just added the Base typedefs in all the classes that are a subclass of JSCell 
3570         to point at their parent classes.  This is a change to support future changes to the way
3571         constructors and destructors are implemented in JS objects, among other things.
3572
3573         * Plugins/Hosted/ProxyInstance.mm:
3574         * Plugins/Hosted/ProxyRuntimeObject.h:
3575
3576 2011-08-08  Chris Marrin  <cmarrin@apple.com>
3577
3578         Logic to compute visible display rect in GraphicsLayerCA::syncCompositingState
3579         https://bugs.webkit.org/show_bug.cgi?id=65708
3580
3581         Supply initial display rects for the full-screen case
3582
3583         Reviewed by Simon Fraser.
3584
3585         * WebView/WebFullScreenController.mm:
3586         (-[WebFullScreenController enterFullscreen:]):
3587         (-[WebFullScreenController exitFullscreen]):
3588
3589 2011-08-06  Joseph Pecoraro  <joepeck@webkit.org>
3590
3591         Potential Leaks - RetainPtr<> over retaining Create'd objects
3592         https://bugs.webkit.org/show_bug.cgi?id=65806
3593
3594         Reviewed by Darin Adler.
3595
3596         Fix a possible leak by adopting an allocation instead of retaining it.
3597
3598         * WebView/WebView.mm:
3599         (-[WebView previousValidKeyView]):
3600
3601 2011-08-05  Anders Carlsson  <andersca@apple.com>
3602
3603         Remove PluginHalter
3604         https://bugs.webkit.org/show_bug.cgi?id=65729
3605
3606         Reviewed by Darin Adler.
3607
3608         Remove plug-in halter and associated classes.
3609
3610         * Plugins/WebBaseNetscapePluginView.h:
3611         * Plugins/WebBaseNetscapePluginView.mm:
3612         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
3613         (-[WebBaseNetscapePluginView start]):
3614         (-[WebBaseNetscapePluginView stop]):
3615         * WebCoreSupport/WebPluginHalterClient.h: Removed.
3616         * WebCoreSupport/WebPluginHalterClient.mm: Removed.
3617         * WebView/WebPreferenceKeysPrivate.h:
3618         * WebView/WebPreferences.mm:
3619         (+[WebPreferences initialize]):
3620         * WebView/WebPreferencesPrivate.h:
3621         * WebView/WebView.mm:
3622         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3623         (-[WebView _preferencesChanged:]):
3624         * WebView/WebViewPrivate.h:
3625
3626 2011-08-04  Mark Rowe  <mrowe@apple.com>
3627
3628         Future-proof Xcode configuration settings.
3629
3630         * Configurations/Base.xcconfig:
3631         * Configurations/DebugRelease.xcconfig:
3632         * Configurations/Version.xcconfig:
3633         * Configurations/WebKit.xcconfig:
3634
3635 2011-08-03  Kent Tamura  <tkent@chromium.org>
3636
3637         Fix incorrect checks for HTMLMediaElement
3638         https://bugs.webkit.org/show_bug.cgi?id=65590