blob: e5cf1fee629919a0d61b3de5ab7f9c9f48468ac9 [file] [log] [blame]
dbates@webkit.org0debed22014-01-13 22:29:01 +000012014-01-13 Daniel Bates <dabates@apple.com>
2
3 [iOS] More build fixes for WebKit
4
5 * Configurations/Base.xcconfig: Removed extraneous definition of SUPPORTED_PLATFORMS.
6 * Configurations/WebKit.xcconfig: Exclude more Mac-specific files when building for iOS:
7 CarbonUtils.m, CarbonWindowAdapter.mm, CarbonWindowContentView.m, CarbonWindowFrame.m,
8 HIViewAdapter.m, HIWebView.mm, MailQuirksUserScript.js, OutlookQuirksUserScript.js,
9 PopupMenuMac.mm, SearchPopupMenuMac.mm, WebClipView.mm, WebInspectorClient.mm,
10 WebNetscapeContainerCheckContextInfo.mm, WebNetscapeContainerCheckPrivate.mm, WebRenderNode.mm,
11 WebStringTruncator.mm, and WebTextCompletionController.mm. I haven't verified the Mac-specific
12 nature of each of these files. We may be able to reduce this list upon further investigation.
13 * WebView/WebDocument.h: Include header <WebKit/WAKView.h> for definition of WAKView.
14 * WebView/WebFrameView.h: Ditto.
15 * WebView/WebUIDelegate.h: Ditto.
16 * WebView/WebView.h: Ditto.
17
simon.fraser@apple.com995fb6b2014-01-13 19:13:55 +0000182014-01-13 Simon Fraser <simon.fraser@apple.com>
19
simon.fraser@apple.com9a7c80e2014-01-13 19:32:25 +000020 Include WAKAppKitStubs.h to get NSSelectionAffinity.
21
22 * WebView/WebEditingDelegate.h:
23
242014-01-13 Simon Fraser <simon.fraser@apple.com>
25
simon.fraser@apple.com995fb6b2014-01-13 19:13:55 +000026 DOMTouch* etc should not be public headers on iOS.
27
28 * MigrateHeaders.make:
29
aestes@apple.com1e5b5042014-01-13 18:20:44 +0000302014-01-13 Andy Estes <aestes@apple.com>
31
32 [iOS] Build Fix: switch back to calling postprocess-headers.sh
33
34 * postprocess-headers.sh:
35
zalan@apple.com8803cd22014-01-13 17:17:07 +0000362014-01-13 Zalan Bujtas <zalan@apple.com>
37
38 Enable SUBPIXEL_LAYOUT on Mac
39 <https://webkit.org/b/126283>
40
41 Reviewed by Simon Fraser.
42
43 * Configurations/FeatureDefines.xcconfig:
44
darin@apple.comc3d87012014-01-13 02:27:42 +0000452014-01-12 Darin Adler <darin@apple.com>
46
darin@apple.comda57a4d2014-01-13 02:29:47 +000047 Add deprecatedCharacters as a synonym for characters and convert most call sites
48 https://bugs.webkit.org/show_bug.cgi?id=126858
49
50 Reviewed by Anders Carlsson.
51
52 * History/BinaryPropertyList.cpp:
53 (BinaryPropertyListSerializer::appendStringObject):
54 Use deprecatedCharacters instead of characters.
55
562014-01-12 Darin Adler <darin@apple.com>
57
darin@apple.comc3d87012014-01-13 02:27:42 +000058 Add type checking to isEqual methods
59 https://bugs.webkit.org/show_bug.cgi?id=126862
60
61 Reviewed by Anders Carlsson.
62
63 * WebCoreSupport/WebSecurityOrigin.mm:
64 (-[WebSecurityOrigin isEqual:]): Added a FIXME about the lack of a hash method
65 override. Tweaked formatting.
66
67 * WebView/WebDashboardRegion.mm:
68 (-[WebDashboardRegion isEqual:]): Added type checking on the argument. Added a
69 FIXME about the lack of a hash method override.
70
ap@apple.coma3f87d32014-01-12 04:20:13 +0000712014-01-11 Alexey Proskuryakov <ap@apple.com>
72
73 [Mac] [Windows] Stop scheduling network requests in WebCore
74 https://bugs.webkit.org/show_bug.cgi?id=126789
75 <rdar://problem/15114727>
76
77 Reviewed by Sam Weinig.
78
79 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated
80 for new WKSI function names.
81
andersca@apple.comd3f29af2014-01-11 06:33:01 +0000822014-01-10 Anders Carlsson <andersca@apple.com>
83
andersca@apple.com487a5bb2014-01-11 07:33:48 +000084 Tweak ProgressTrackerClient functions
85 https://bugs.webkit.org/show_bug.cgi?id=126808
86
87 Reviewed by Sam Weinig.
88
89 * WebCoreSupport/WebFrameLoaderClient.h:
90 * WebCoreSupport/WebFrameLoaderClient.mm:
91 (WebFrameLoaderClient::progressStarted):
92 (WebFrameLoaderClient::progressEstimateChanged):
93 (WebFrameLoaderClient::progressFinished):
94
952014-01-10 Anders Carlsson <andersca@apple.com>
96
andersca@apple.comd3f29af2014-01-11 06:33:01 +000097 Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
98 https://bugs.webkit.org/show_bug.cgi?id=126801
99
100 Reviewed by Sam Weinig.
101
102 * WebCoreSupport/WebFrameLoaderClient.h:
103 * WebView/WebView.mm:
104 (-[WebView _commonInitializationWithFrameName:groupName:]):
105
ddkilzer@apple.com82647122014-01-11 02:19:33 +00001062014-01-10 David Kilzer <ddkilzer@apple.com>
107
108 Clean up architectures in xcconfig files
109 <http://webkit.org/b/126794>
110
111 Reviewed by Andy Estes.
112
113 * Configurations/WebKit.xcconfig: Remove armv6, armv7f, ppc.
114 - Add new arch.
115
commit-queue@webkit.org73b323e2014-01-10 22:10:44 +00001162014-01-10 Yongjun Zhang <yongjun_zhang@apple.com>
117
118 Clear unparented tiled layers on memory pressure.
119 https://bugs.webkit.org/show_bug.cgi?id=126737
120
121 Reviewed by Simon Fraser.
122
123 * WebView/WebView.mm:
124 (+[WebView _handleMemoryWarning]): Clear all unparented tiles when under memory pressure.
125
dbates@webkit.org07d63ef2014-01-10 20:38:41 +00001262014-01-10 Daniel Bates <dabates@apple.com>
127
128 Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
129 (https://bugs.webkit.org/show_bug.cgi?id=126698)
130
131 Tell Xcode that the supported platforms for all WebCore targets are iOS and OS X.
132
133 * Configurations/Base.xcconfig:
134
aestes@apple.com4476a952014-01-10 19:32:56 +00001352014-01-09 Andy Estes <aestes@apple.com>
136
137 [iOS] Upstream iOS changes to MigrateHeaders.make
138 https://bugs.webkit.org/show_bug.cgi?id=126731
139
140 Reviewed by David Kilzer.
141
142 * MigrateHeaders.make: Migrate iOS-specific headers when building for iOS.
143
dbates@webkit.orgf435ee12014-01-10 17:06:52 +00001442014-01-10 Daniel Bates <dabates@apple.com>
145
146 [iOS] Upstream WebCore and Tools miscellaneous changes
147 https://bugs.webkit.org/show_bug.cgi?id=126698
148
149 Reviewed by David Kilzer.
150
151 * MigrateHeaders.make:
152
andersca@apple.coma2cf5702014-01-08 21:19:21 +00001532014-01-08 Anders Carlsson <andersca@apple.com>
154
155 Add WTF::StringView and use it for grammar checking
156 https://bugs.webkit.org/show_bug.cgi?id=126644
157
158 Reviewed by Antti Koivisto.
159
160 * WebCoreSupport/WebEditorClient.h:
161 * WebCoreSupport/WebEditorClient.mm:
162 (WebEditorClient::checkTextOfParagraph):
163 Update to match the new signature.
164
165 (nsStringWithoutCopying):
166 New function that creates an NSString that references StringView data
167 without copying the data. (If this function proves to be useful elsewhere, it could
168 potentially be added to StringView).
169
aestes@apple.com155516b2014-01-08 03:26:02 +00001702014-01-02 Andy Estes <aestes@apple.com>
171
172 [iOS] Clean up some exported headers
173 https://bugs.webkit.org/show_bug.cgi?id=126403
174
175 Reviewed by Simon Fraser.
176
177 Public header files that are completely excluded on iOS don't need
178 !TARGET_OS_IPHONE guards since they are already listed in
179 EXCLUDED_SOURCE_FILE_NAMES.
180
181 I also took the opportunity to sort EXCLUDED_SOURCE_FILE_NAMES and to
182 clean up some #imports.
183
184 * Configurations/WebKit.xcconfig:
185 * Misc/WebCache.h:
186 * Misc/WebIconDatabasePrivate.h:
187 * Misc/WebLocalizableStrings.h:
188 * Misc/WebNSEventExtras.h:
189 * Misc/WebNSPasteboardExtras.h:
190 * Misc/WebNSWindowExtras.h:
191 * Panels/WebPanelAuthenticationHandler.h:
192 * Plugins/WebPluginsPrivate.h:
193 * Storage/WebDatabaseManagerPrivate.h:
194 * WebCoreSupport/WebJavaScriptTextInputPanel.h:
195 * WebCoreSupport/WebKeyGenerator.h:
196 * WebCoreSupport/WebSecurityOriginPrivate.h:
197 * WebView/WebDashboardRegion.h:
198 * WebView/WebDynamicScrollBarsView.h:
199 * WebView/WebFrameView.h:
200 * WebView/WebPreferenceKeysPrivate.h:
201 * WebView/WebResourceLoadDelegatePrivate.h:
202 * WebView/WebView.h:
203
seokju@webkit.org4a2db1d2014-01-08 02:20:46 +00002042014-01-07 Seokju Kwon <seokju@webkit.org>
205
206 Web Inspector: Remove leftover 'device metrics' code
207 https://bugs.webkit.org/show_bug.cgi?id=126607
208
209 Reviewed by Joseph Pecoraro.
210
211 * WebKit.order: Update after removing InspectorClient::overrideDeviceMetrics().
212
aestes@apple.comb47b3362014-01-08 00:42:18 +00002132014-01-02 Andy Estes <aestes@apple.com>
214
aestes@apple.com2cae60c2014-01-08 00:42:20 +0000215 [iOS] Upstream WebKit support for various features
216 https://bugs.webkit.org/show_bug.cgi?id=126413
217
218 Reviewed by Sam Weinig.
219
220 Upstream iOS WebKit changes needed for these features:
221
222 - ENABLE(DELETION_UI)
223 - ENABLE(TOUCH_EVENTS)
224 - USE(QUICK_LOOK)
225 - USE(UIKIT_EDITING)
226 - ENABLE(DISK_IMAGE_CACHE)
227 - ENABLE(IOS_TEXT_AUTOSIZING)
228 - ENABLE(ICONDATABASE)
229 - ENABLE(DASHBOARD_SUPPORT)
230
231 * DefaultDelegates/WebDefaultEditingDelegate.m:
232 * Misc/WebCache.mm:
233 * WebCoreSupport/WebChromeClient.h:
234 * WebView/WebDataSource.mm:
235 (-[WebDataSource dealloc]):
236 * WebView/WebEditingDelegatePrivate.h:
237 * WebView/WebFrame.mm:
238 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
239 * WebView/WebHTMLView.mm:
240 (-[WebHTMLView maintainsInactiveSelection]):
241 (-[WebHTMLView touch:]):
242 * WebView/WebPreferences.mm:
243 (+[WebPreferences initialize]):
244 * WebView/WebPreferencesPrivate.h:
245 * WebView/WebView.mm:
246 (-[WebView _preferencesChanged:]):
247 (-[WebView _cacheFrameLoadDelegateImplementations]):
248 (-[WebView quickLookContentForURL:]):
249 (-[WebView _touchEventRegions]):
250 * WebView/WebViewPrivate.h:
251
2522014-01-02 Andy Estes <aestes@apple.com>
253
aestes@apple.comb47b3362014-01-08 00:42:18 +0000254 [iOS] Upstream a bug fix for plugin-backed media elements
255 https://bugs.webkit.org/show_bug.cgi?id=126412
256
257 Reviewed by Eric Carlson.
258
259 Media elements backed by plug-ins should outlive being removed from the
260 document, like their native counterparts do.
261
262 * Plugins/WebPluginController.h:
263 * Plugins/WebPluginController.mm:
264 (-[NSView isMediaPlugInProxyView]):
265 (-[NSView setIsMediaPlugInProxyView:]):
266 (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
267 (-[WebPluginController mediaPlugInProxyViewCreated:]):
268 (-[WebPluginController destroyPlugin:]):
269 * WebCoreSupport/WebFrameLoaderClient.mm:
270 (pluginView):
271
mrowe@apple.comf31b0572014-01-07 09:46:36 +00002722014-01-07 Mark Rowe <mrowe@apple.com>
273
274 <https://webkit.org/b/126562> DOMProgressEvent has unspecified availability
275
276 Reviewed by Ryosuke Niwa.
277
278 * MigrateHeaders.make: Ensure that public DOM headers do not have unspecified availability.
279
mrowe@apple.com7d764722014-01-06 08:15:52 +00002802014-01-06 Mark Rowe <mrowe@apple.com>
281
mrowe@apple.com062c8e62014-01-06 17:22:39 +0000282 Mountain Lion build fix after r161332.
283
284 * Carbon/HIWebView.h: Mountain Lion's version of CF_AVAILABLE_MAC doesn't accept a message
285 argument so remove it.
286
2872014-01-06 Mark Rowe <mrowe@apple.com>
288
mrowe@apple.com7d764722014-01-06 08:15:52 +0000289 <https://webkit.org/b/126499> Move WebKit off the legacy WebKit availability macros
290
291 The legacy WebKit availability macros are verbose, confusing, and provide no benefit
292 over using the system availability macros directly. The original vision was that
293 they'd serve a cross-platform purpose but that never came to be.
294
295 Since WebKit1 is API on OS X but SPI on iOS, some indirection is still needed in the
296 availability macros to allow the headers to advertise the API as unavailable on OS X
297 without interfering with the ability to build on iOS. This is achieved by defining
298 WEBKIT-prefixed versions of the Foundation availability macros that are defined to
299 their NS-prefixed equivalents. The installed headers are post-processed to map these
300 macros back to their Foundation equivalents.
301
302 Part of <rdar://problem/15512304>.
303
304 The OS X version used in the new availability macros is based on the mapping in
305 JavaScriptCore/WebKitAvailability.h.
306
307 Reviewed by Sam Weinig.
308
309 * Carbon/CarbonUtils.h:
310 * Carbon/HIWebView.h:
311 * MigrateHeaders.make: Migrate WebKitAvailability.h from WebCore as an API header.
312 * Plugins/WebPlugin.h:
313 * Plugins/WebPluginViewFactory.h:
314 * WebView/WebFrameLoadDelegate.h:
315 * WebView/WebResourceLoadDelegatePrivate.h:
316 * WebView/WebUIDelegate.h:
317 * postprocess-headers.sh: Added. Extracted from the Xcode project. Extended to map the
318 WEBKIT-prefixed macros to their NS-prefixed equivalents on OS X and to remove them on iOS.
319
zandobersek@gmail.com83a31192014-01-04 17:26:52 +00003202014-01-04 Zan Dobersek <zdobersek@igalia.com>
321
322 Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
323 https://bugs.webkit.org/show_bug.cgi?id=126439
324
325 Reviewed by Andreas Kling.
326
327 Instead of relying on std::pair and std::make_pair symbols being present in the current scope
328 through the pair and make_pair symbols, the std:: specifier should be used explicitly.
329
330 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
331 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
332 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
333 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
334 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
335 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
336
barraclough@apple.com21294932014-01-02 22:06:14 +00003372014-01-02 Gavin Barraclough <barraclough@apple.com>
338
barraclough@apple.com2f3625c2014-01-02 22:35:58 +0000339 Remove WindowIsVisible
340 https://bugs.webkit.org/show_bug.cgi?id=126270
341
342 Reviewed by Tim Horton.
343
344 We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
345 The latter detects that the content is hidden in fewer cases than the former, and as such, the
346 former is always preferable.
347
348 This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
349 Plugin::windowVisibilityChanged.
350
351 * WebView/WebView.mm:
352 (-[WebView _windowWillOrderOnScreen:]):
353 (-[WebView _windowWillOrderOffScreen:]):
354 - rename ContainingWindowIsVisible -> ContentIsVisible.
355
3562014-01-02 Gavin Barraclough <barraclough@apple.com>
357
barraclough@apple.com21294932014-01-02 22:06:14 +0000358 Merge didMoveOnscreen / page visibility to isVisible
359 https://bugs.webkit.org/show_bug.cgi?id=126268
360
361 Reviewed by Tim Horton.
362
363 The onscreen state most closely tracks view visibility (though currently
364 also tracks a mix of in-window state). Make more consistent, simplify,
365 and move all animation suspension logic to Page, so it can be controlled
366 by the PageThrottler.
367
368 * WebView/WebView.mm:
369 (-[WebView _commonInitializationWithFrameName:groupName:]):
370 (-[WebView _updateVisibilityState]):
371 - _setVisibilityState:isInitialState: -> _setIsVisibile:isInitialState:.
372 (-[WebView _setIsVisible:isInitialState:]):
373 - added.
374 (-[WebView _setVisibilityState:isInitialState:]):
375 - setVisibilityState -> setIsVisible/setIsPrerender.
376 (-[WebView viewWillMoveToWindow:]):
377 (-[WebView viewDidMoveToWindow]):
378 - remove redundant calls to willMoveOffscreen/didMoveOnscreen
379 (this is handled by _updateVisibilityState).
380
oliver@apple.com68848412014-01-02 20:56:20 +00003812013-12-23 Oliver Hunt <oliver@apple.com>
382
383 Refactor PutPropertySlot to be aware of custom properties
384 https://bugs.webkit.org/show_bug.cgi?id=126187
385
386 Reviewed by Antti Koivisto.
387
388 Update for new method signatures.
389
390 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
391 (WebKit::NetscapePluginInstanceProxy::setProperty):
392
aestes@apple.coma43fba52013-12-31 23:46:34 +00003932013-12-31 Andy Estes <aestes@apple.com>
aestes@apple.com77b111e2013-12-24 07:42:44 +0000394
aestes@apple.combf5bca02013-12-24 02:07:30 +0000395 [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
396 https://bugs.webkit.org/show_bug.cgi?id=125746
397
398 Reviewed by David Kilzer.
399
400 This is a straight upstreaming of the various PLATFORM(IOS) changes
401 made to Source/WebKit/ with the following modifications:
402
403 - Includes of <Cocoa/Cocoa.h> were generally replaced with an include
404 of <Foundation/Foundation.h> followed by an include of
405 <AppKit/AppKit.h> on non-iOS platforms. This assumes that nobody was
406 relying on <Cocoa/Cocoa.h>'s inclusion of <CoreData/CoreData.h>.
407
408 - Includes of <Cocoa/Cocoa.h> and <Foundation/Foundation.h> were
409 removed from files that include WebKitPrefix.h.
410
411 - Instances of 'iPhone (OS)' in comments were replaced with 'iOS', and
412 other sensitive terms were elided.
413
414 - Various PLATFORM(IOS) blocks were simplified. For instance:
415
416 #if !PLATFORM(IOS)
417 ...
418 #endif
419 #if PLATFORM(IOS)
420 ...
421 #endif
422
423 Was simplified to:
424
425 #if !PLATFORM(IOS)
426 ...
427 #else
428 ...
429 #endif
430
431 * Configurations/Base.xcconfig:
432 * Configurations/DebugRelease.xcconfig:
433 * Configurations/Version.xcconfig:
434 * Configurations/WebKit.xcconfig:
435 * Configurations/iOS.xcconfig: Added.
436 * DOM/WebDOMOperations.mm:
437 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
438 * DefaultDelegates/WebDefaultEditingDelegate.m:
439 * DefaultDelegates/WebDefaultPolicyDelegate.m:
440 * DefaultDelegates/WebDefaultUIDelegate.h:
441 * DefaultDelegates/WebDefaultUIDelegate.m:
442 * History/WebBackForwardList.mm:
443 * History/WebHistory.mm:
444 * History/WebHistoryItem.mm:
445 * History/WebURLsWithTitles.m:
446 * Misc/WebCache.mm:
447 * Misc/WebDownload.mm:
448 * Misc/WebElementDictionary.mm:
449 * Misc/WebIconDatabase.mm:
450 * Misc/WebIconDatabaseInternal.h:
451 * Misc/WebKitNSStringExtras.mm:
452 * Misc/WebKitSystemBits.m:
453 * Misc/WebKitVersionChecks.h:
454 * Misc/WebKitVersionChecks.m:
455 * Misc/WebLocalizableStrings.mm:
456 * Misc/WebNSArrayExtras.h:
457 * Misc/WebNSArrayExtras.m:
458 * Misc/WebNSControlExtras.h:
459 * Misc/WebNSControlExtras.m:
460 * Misc/WebNSDictionaryExtras.h:
461 * Misc/WebNSDictionaryExtras.m:
462 * Misc/WebNSEventExtras.m:
463 * Misc/WebNSFileManagerExtras.mm:
464 * Misc/WebNSImageExtras.h:
465 * Misc/WebNSImageExtras.m:
466 * Misc/WebNSPasteboardExtras.mm:
467 * Misc/WebNSPrintOperationExtras.h:
468 * Misc/WebNSPrintOperationExtras.m:
469 * Misc/WebNSURLExtras.mm:
470 * Misc/WebNSViewExtras.m:
471 * Misc/WebNSWindowExtras.m:
472 * Panels/WebAuthenticationPanel.h:
473 * Panels/WebAuthenticationPanel.m:
474 * Panels/WebPanelAuthenticationHandler.m:
475 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
476 * Plugins/WebBasePluginPackage.h:
477 * Plugins/WebBasePluginPackage.mm:
478 * Plugins/WebJavaPlugIn.h:
479 * Plugins/WebPluginContainerCheck.mm:
480 * Plugins/WebPluginController.h:
481 * Plugins/WebPluginController.mm:
482 * Plugins/WebPluginDatabase.mm:
483 * Plugins/WebPluginPackage.mm:
484 * Plugins/WebPluginsPrivate.m:
485 * Storage/WebDatabaseManager.mm:
486 * Storage/WebDatabaseManagerClient.h:
487 * Storage/WebDatabaseManagerClient.mm:
488 * Storage/WebDatabaseManagerInternal.h: Added.
489 * Storage/WebStorageManager.mm:
490 * WebCoreSupport/CorrectionPanel.h:
491 * WebCoreSupport/WebAlternativeTextClient.h:
492 * WebCoreSupport/WebApplicationCache.mm:
493 * WebCoreSupport/WebChromeClient.h:
494 * WebCoreSupport/WebChromeClient.mm:
495 * WebCoreSupport/WebContextMenuClient.mm:
496 * WebCoreSupport/WebEditorClient.h:
497 * WebCoreSupport/WebEditorClient.mm:
498 * WebCoreSupport/WebFrameLoaderClient.h:
499 * WebCoreSupport/WebFrameLoaderClient.mm:
500 * WebCoreSupport/WebFrameNetworkingContext.h:
501 * WebCoreSupport/WebFrameNetworkingContext.mm:
502 * WebCoreSupport/WebGeolocationClient.h:
503 * WebCoreSupport/WebGeolocationClient.mm:
504 * WebCoreSupport/WebJavaScriptTextInputPanel.m:
505 * WebCoreSupport/WebKeyGenerator.mm:
506 * WebCoreSupport/WebNotificationClient.mm:
507 * WebCoreSupport/WebOpenPanelResultListener.mm:
508 * WebCoreSupport/WebSecurityOrigin.mm:
509 * WebCoreSupport/WebSystemInterface.mm:
510 * WebKitPrefix.h:
511 * WebView/WebArchive.mm:
512 * WebView/WebClipView.h:
513 * WebView/WebDataSource.mm:
514 * WebView/WebDelegateImplementationCaching.h:
515 * WebView/WebDelegateImplementationCaching.mm:
516 * WebView/WebDeviceOrientation.mm:
517 * WebView/WebDocumentInternal.h:
518 * WebView/WebDocumentLoaderMac.mm:
519 * WebView/WebDynamicScrollBarsViewInternal.h:
520 * WebView/WebFormDelegate.m:
521 * WebView/WebFrame.mm:
522 * WebView/WebFrameInternal.h:
523 * WebView/WebFrameView.mm:
524 * WebView/WebFullScreenController.h:
525 * WebView/WebFullScreenController.mm:
526 * WebView/WebHTMLRepresentation.mm:
527 * WebView/WebHTMLView.mm:
528 * WebView/WebHTMLViewInternal.h:
529 * WebView/WebPDFDocumentExtras.h:
530 * WebView/WebPDFDocumentExtras.mm:
531 * WebView/WebPDFRepresentation.h:
532 * WebView/WebPDFRepresentation.mm:
533 * WebView/WebPDFView.h:
534 * WebView/WebPDFView.mm:
535 * WebView/WebPreferences.mm:
536 * WebView/WebResource.mm:
537 * WebView/WebTextCompletionController.h:
538 * WebView/WebTextIterator.mm:
539 * WebView/WebView.mm:
540 * WebView/WebViewData.h:
541 * WebView/WebViewData.mm:
542 * WebView/WebViewInternal.h:
543
aestes@apple.coma43fba52013-12-31 23:46:34 +00005442013-12-25 Commit Queue <commit-queue@webkit.org>
545
546 Unreviewed, rolling out r161033 and r161074.
547 http://trac.webkit.org/changeset/161033
548 http://trac.webkit.org/changeset/161074
549 https://bugs.webkit.org/show_bug.cgi?id=126240
550
551 Oliver says that a rollout would be better (Requested by ap on
552 #webkit).
553
554 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
555 (WebKit::NetscapePluginInstanceProxy::setProperty):
556
oliver@apple.comdecf2082013-12-24 00:11:25 +00005572013-12-23 Oliver Hunt <oliver@apple.com>
558
559 Refactor PutPropertySlot to be aware of custom properties
560 https://bugs.webkit.org/show_bug.cgi?id=126187
561
562 Reviewed by msaboff.
563
564 Update for new method signatures.
565
566 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
567 (WebKit::NetscapePluginInstanceProxy::setProperty):
568
lforschler@apple.comaf2230e2013-12-23 18:45:18 +00005692013-12-23 Lucas Forschler <lforschler@apple.com>
570
571 <rdar://problem/15682948> Update copyright strings
572
573 Reviewed by Dan Bernstein.
574
575 * Info.plist:
576
aestes@apple.comd9d03942013-12-20 00:48:27 +00005772013-12-19 Andy Estes <aestes@apple.com>
578
579 Remove WebFilterEvaluator wrappers from WebKitSystemInterface
580 https://bugs.webkit.org/show_bug.cgi?id=126028
581
582 Reviewed by Anders Carlsson.
583
584 * WebCoreSupport/WebSystemInterface.mm:
585 (InitWebCoreSystemInterface): Don't INIT() removed function pointers.
586
barraclough@apple.comd6b494c2013-12-17 23:42:56 +00005872013-12-17 Gavin Barraclough <barraclough@apple.com>
588
589 Remove PageVisibilityStateUnloaded
590 https://bugs.webkit.org/show_bug.cgi?id=125869
591
592 Reviewed by Anders Carlsson.
593
594 This is not currently supported by WebKit, remove this enum value.
595 We can always add this back later if/when we add support for this state.
596
597 * WebView/WebView.mm:
598 (core):
599 (kit):
600 * WebView/WebViewPrivate.h:
aestes@apple.combf5bca02013-12-24 02:07:30 +0000601 - removed PageVisibilityStateUnloaded/WebPageVisibilityStateUnloade
barraclough@apple.comd6b494c2013-12-17 23:42:56 +0000602
aestes@apple.combf5bca02013-12-24 02:07:30 +00006032013-12-14 Andy Estes <aestes@apple.com>
aestes@apple.com4a2703a2013-12-15 21:08:51 +0000604
aestes@apple.comcdafea32013-12-15 21:13:54 +0000605 [iOS] Upstream changes to WebKit Public and Private headers
606 https://bugs.webkit.org/show_bug.cgi?id=125745
607
608 Reviewed by Dan Bernstein.
609
610 * Configurations/WebKit.xcconfig: Ignore headers that are completely
611 excluded on iOS. This prevents empty headers from being installed into
612 the iOS SDK.
613 * DOM/WebDOMOperationsPrivate.h: Upstream iOS changes.
614 * History/WebBackForwardListPrivate.h: Ditto.
615 * History/WebHistoryItem.h: Ditto.
616 * History/WebHistoryItemPrivate.h: Ditto.
617 * Misc/WebCache.h: Ditto.
618 * Misc/WebIconDatabase.h: Ditto.
619 * Misc/WebIconDatabasePrivate.h: Ditto.
620 * Misc/WebKitNSStringExtras.h: Ditto.
621 * Misc/WebLocalizableStrings.h: Ditto.
622 * Misc/WebNSEventExtras.h: Ditto.
623 * Misc/WebNSFileManagerExtras.h: Ditto.
624 * Misc/WebNSPasteboardExtras.h: Ditto.
625 * Misc/WebNSURLExtras.h: Ditto.
626 * Misc/WebNSViewExtras.h: Ditto.
627 * Misc/WebNSWindowExtras.h: Ditto.
628 * Panels/WebPanelAuthenticationHandler.h: Ditto.
629 * Plugins/WebPlugin.h: Ditto.
630 * Plugins/WebPluginContainer.h: Ditto.
631 * Plugins/WebPluginContainerPrivate.h: Ditto.
632 * Plugins/WebPluginDatabase.h: Ditto.
633 * Plugins/WebPluginPrivate.h: Ditto.
634 * Plugins/WebPluginViewFactory.h: Ditto.
635 * Plugins/WebPluginsPrivate.h: Ditto.
636 * Storage/WebDatabaseManagerPrivate.h: Ditto.
637 * WebCoreSupport/WebApplicationCache.h: Ditto.
638 * WebCoreSupport/WebJavaScriptTextInputPanel.h: Ditto.
639 * WebCoreSupport/WebKeyGenerator.h: Ditto.
640 * WebCoreSupport/WebSecurityOriginPrivate.h: Ditto.
641 * WebView/WebDashboardRegion.h: Ditto.
642 * WebView/WebDataSource.h: Ditto.
643 * WebView/WebDataSourcePrivate.h: Ditto.
644 * WebView/WebDocument.h: Ditto.
645 * WebView/WebDocumentPrivate.h: Ditto.
646 * WebView/WebDynamicScrollBarsView.h: Ditto.
647 * WebView/WebEditingDelegate.h: Ditto.
648 * WebView/WebEditingDelegatePrivate.h: Ditto.
649 * WebView/WebFormDelegate.h: Ditto.
650 * WebView/WebFrameLoadDelegate.h: Ditto.
651 * WebView/WebFramePrivate.h: Ditto.
652 * WebView/WebFrameView.h: Ditto.
653 * WebView/WebFrameViewPrivate.h: Ditto.
654 * WebView/WebHTMLRepresentation.h: Ditto.
655 * WebView/WebHTMLView.h: Ditto.
656 * WebView/WebHTMLViewPrivate.h: Ditto.
657 * WebView/WebPolicyDelegate.h: Ditto.
658 * WebView/WebPreferenceKeysPrivate.h: Ditto.
659 * WebView/WebPreferences.h: Ditto.
660 * WebView/WebPreferencesPrivate.h: Ditto.
661 * WebView/WebRenderLayer.h: Ditto.
662 * WebView/WebResourceLoadDelegatePrivate.h: Ditto.
663 * WebView/WebResourcePrivate.h: Ditto.
664 * WebView/WebUIDelegate.h: Ditto.
665 * WebView/WebUIDelegatePrivate.h: Ditto.
666 * WebView/WebView.h: Ditto.
667 * WebView/WebViewPrivate.h: Ditto.
668
6692013-12-15 Andy Estes <aestes@apple.com>
670
aestes@apple.com4a2703a2013-12-15 21:08:51 +0000671 [iOS] Upstream changes to FeatureDefines.xcconfig
672 https://bugs.webkit.org/show_bug.cgi?id=125742
673
674 Reviewed by Dan Bernstein.
675
676 * Configurations/FeatureDefines.xcconfig:
677
aestes@apple.coma17bc152013-12-15 00:11:10 +00006782013-12-14 Andy Estes <aestes@apple.com>
679
680 Unify FeatureDefines.xcconfig
681 https://bugs.webkit.org/show_bug.cgi?id=125741
682
683 Rubber-stamped by Dan Bernstein.
684
685 * Configurations/FeatureDefines.xcconfig: Remove a stray space in
686 FEATURE_DEFINES.
687
joepeck@webkit.orga3198442013-12-11 22:40:23 +00006882013-12-11 Joseph Pecoraro <pecoraro@apple.com>
689
690 Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore
691 https://bugs.webkit.org/show_bug.cgi?id=125324
692
693 Reviewed by Timothy Hatcher.
694
695 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
696 * WebCoreSupport/WebInspectorClient.mm:
697 * WebView/WebFrame.mm:
698 * WebView/WebView.mm:
699
mrowe@apple.com28611202013-12-11 09:27:32 +00007002013-12-03 Mark Rowe <mrowe@apple.com>
701
702 <https://webkit.org/b/125139> Modernize the WebKit API headers
703 <rdar://problem/15540175>
704
705 This consists of three main changes:
706 1) Converting the return type of initializer methods to instancetype.
707 2) Declaring properties rather than getters and setters.
708 3) Declaring explicitly sized enums.
709
710 Changing the declarations from getters and setters to properties also required
711 updating the headerdoc in a number of places.
712
713 Reviewed by Anders Carlsson.
714
715 * DOM/WebDOMOperations.h:
716 * History/WebBackForwardList.h:
717 * History/WebHistory.h:
718 * History/WebHistoryItem.h:
719 * History/WebHistoryItem.mm:
720 * Plugins/WebPlugin.h:
721 * Plugins/WebPluginContainer.h:
722 * WebView/WebArchive.h:
723 * WebView/WebArchive.mm:
724 * WebView/WebDataSource.h:
725 * WebView/WebDataSource.mm:
726 * WebView/WebEditingDelegate.h:
727 * WebView/WebFrame.h:
728 * WebView/WebFrame.mm:
729 * WebView/WebFrameView.h:
730 * WebView/WebPolicyDelegate.h:
731 * WebView/WebPreferences.h:
732 * WebView/WebPreferences.mm:
733 (-[WebPreferences cacheModel]): Cast to the enum.
734 * WebView/WebResource.h:
735 * WebView/WebResource.mm:
736 * WebView/WebUIDelegate.h:
737 * WebView/WebView.h:
738 * WebView/WebView.mm:
739 (+[WebView _didSetCacheModel]): Fix the return type.
740
mrowe@apple.com75cc4702013-12-11 07:25:45 +00007412013-12-10 Mark Rowe <mrowe@apple.com>
742
743 <http://webkit.org/b/125556> WebKit doesn't deal with longer bundle versions correctly
744 <rdar://problem/15634192>
745
746 Reviewed by Dan Bernstein.
747
748 * WebView/WebView.mm:
749 (createUserVisibleWebKitVersionString): Strip as many leading digits as is necessary to
750 bring the major component of the version down to 3 digits.
751
weinig@apple.comedecfb92013-12-09 20:38:28 +00007522013-12-09 Sam Weinig <sam@webkit.org>
753
754 Fix the build of projects including <WebKit/WebUIDelegatePrivate.h>
755
756 Rubber-stamped by Dan Bernstein.
757
758 * WebView/WebAllowDenyPolicyListener.h:
759 Use TARGET_OS_IPHONE rather than PLATFORM(IOS) in an exposed header.
760
jer.noble@apple.com9c31d752013-12-07 00:56:24 +00007612013-12-05 Jer Noble <jer.noble@apple.com>
762
763 [MSE] Add a runtime-setting for the MediaSource constructor.
764 https://bugs.webkit.org/show_bug.cgi?id=125336
765
766 Reviewed by Eric Carlson.
767
768 Add a private WebPreference which controls the WebCore mediaSourceEnabled setting.
769
770 * WebView/WebPreferenceKeysPrivate.h:
771 * WebView/WebPreferences.mm:
772 (+[WebPreferences initialize]):
773 (-[WebPreferences mediaSourceEnabled]):
774 (-[WebPreferences setMediaSourceEnabled:]):
775 * WebView/WebPreferencesPrivate.h:
776 * WebView/WebView.mm:
777 (-[WebView _preferencesChanged:]):
778
mark.lam@apple.comf6c72962013-12-06 05:15:28 +00007792013-12-05 Mark Lam <mark.lam@apple.com>
780
781 C Loop LLINT layout test regressions.
782 https://bugs.webkit.org/show_bug.cgi?id=125314.
783
784 Reviewed by Geoffrey Garen.
785
786 The regression was due to the ENABLE_LLINT_C_LOOP flag not being included
787 in the build of the WebKit and WebKit2 components. As a result, some fields
788 in JSC::VM were ifdef'ed out in WebCore and JSC, but not in WebKit and
789 WebKit2. This resulted in VM::m_initializingObjectClass having 2 different
790 offsets depending on whether it is accessed from WebCore and JSC or from
791 WebKit and WebKit2, and chaos ensued.
792
793 This issue will manifest when we pass --cloop to build-webkit.
794 The fix is simply to add ENABLE_LLINT_C_LOOP to FEATURE_DEFINES for WebKit
795 and WebKit2.
796
797 * Configurations/FeatureDefines.xcconfig:
798
commit-queue@webkit.org2dd8bf02013-12-05 03:08:40 +00007992013-12-04 Brian J. Burg <burg@cs.washington.edu>
800
801 Consolidate various frame snapshot capabilities.
802 https://bugs.webkit.org/show_bug.cgi?id=124325
803
804 Reviewed by Darin Adler.
805
806 Use new platform-independent methods instead of Mac methods.
807
808 * WebView/WebHTMLView.mm:
809 (-[WebHTMLView _selectionDraggingImage]):
810 (-[WebHTMLView selectionImageForcingBlackText:]):
811
aestes@apple.com24122192013-12-04 19:33:15 +00008122013-12-04 Andy Estes <aestes@apple.com>
813
814 [iOS] Build projects with $(ARCHS_STANDARD_32_64_BIT)
815 https://bugs.webkit.org/show_bug.cgi?id=125236
816
817 Reviewed by Sam Weinig.
818
819 $(ARCHS_STANDARD_32_64_BIT) is what we want for both device and simulator builds.
820
821 * Configurations/DebugRelease.xcconfig:
822
joepeck@webkit.orgd2ecf372013-12-04 18:20:37 +00008232013-12-03 Joseph Pecoraro <pecoraro@apple.com>
824
825 Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
826 https://bugs.webkit.org/show_bug.cgi?id=124613
827
828 Reviewed by Timothy Hatcher.
829
830 Remove the old ENABLE(REMOTE_INSPECTOR) connection management implementation.
831
832 * WebCoreSupport/WebInspectorClient.h:
833 * WebCoreSupport/WebInspectorClient.mm:
834 (WebInspectorClient::indicate):
835 (WebInspectorClient::hideIndicate):
836 Hook up WebView indication through this new path.
837
838 * WebCoreSupport/WebFrameLoaderClient.mm:
839 (WebFrameLoaderClient::dispatchDidReceiveTitle):
840 * WebCoreSupport/WebInspectorClient.h:
841 * WebCoreSupport/WebInspectorClient.mm:
842 (WebInspectorClient::WebInspectorClient):
843 (WebInspectorClient::inspectorDestroyed):
844 * WebInspector/remote/WebInspectorClientRegistry.h: Removed.
845 * WebInspector/remote/WebInspectorClientRegistry.mm: Removed.
846 * WebInspector/remote/WebInspectorRelayDefinitions.h: Removed.
847 * WebInspector/remote/WebInspectorRemoteChannel.h: Removed.
848 * WebInspector/remote/WebInspectorRemoteChannel.mm: Removed.
849 * WebInspector/remote/WebInspectorServer.h: Removed.
850 * WebInspector/remote/WebInspectorServer.mm: Removed.
851 * WebInspector/remote/WebInspectorServerWebViewConnection.h: Removed.
852 * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Removed.
853 * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Removed.
854 * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Removed.
855 * WebInspector/remote/WebInspectorXPCWrapper.h: Removed.
856 * WebInspector/remote/WebInspectorXPCWrapper.m: Removed.
857 * WebKit.exp:
858 * WebView/WebView.mm:
859 (-[WebView _commonInitializationWithFrameName:groupName:]):
860 (+[WebView _enableRemoteInspector]):
861 (+[WebView _disableRemoteInspector]):
862 (+[WebView _disableAutoStartRemoteInspector]):
863 (+[WebView _isRemoteInspectorEnabled]):
864 (+[WebView _hasRemoteInspectorSession]):
865 (-[WebView allowsRemoteInspection]):
866 (-[WebView setAllowsRemoteInspection:]):
867 (-[WebView setIndicatingForRemoteInspector:]):
868 (-[WebView setHostApplicationBundleId:name:]):
869 (-[WebView _didCommitLoadForFrame:]):
870 * WebView/WebViewData.h:
871 * WebView/WebViewData.mm:
872 (-[WebViewPrivate init]):
873 (-[WebViewPrivate dealloc]):
874 * WebView/WebViewInternal.h:
875 * WebView/WebViewPrivate.h:
876 Remove old REMOTE_INSPECTOR.
877
cfleizach@apple.com134cb182013-12-03 18:44:32 +00008782013-12-02 Chris Fleizach <cfleizach@apple.com>
879
880 AX: Crash in accessibilityRoot when Document goes away
881 https://bugs.webkit.org/show_bug.cgi?id=125113
882
883 Reviewed by Tim Horton.
884
885 The AXObjectCache can sometimes be null if the render tree has been detached from the document.
886
887 * WebView/WebFrame.mm:
888 (-[WebFrame accessibilityRoot]):
889
antti@apple.comc6dce2e2013-11-28 15:46:53 +00008902013-11-28 Antti Koivisto <antti@apple.com>
891
892 Remove feature: CSS variables
893 https://bugs.webkit.org/show_bug.cgi?id=114119
894
895 Reviewed by Andreas Kling.
896
897 * Configurations/FeatureDefines.xcconfig:
898
weinig@apple.comfd0086d2013-11-28 03:14:43 +00008992013-11-27 Sam Weinig <sam@webkit.org>
900
901 Fix the iOS build.
902
903 * WebView/WebAllowDenyPolicyListener.h: Added.
904 * WebView/WebUIDelegatePrivate.h:
905 Move the WebAllowDenyPolicyListener protocol to its own file.
906
mrowe@apple.com01352df2013-11-22 02:55:19 +00009072013-11-21 Mark Rowe <mrowe@apple.com>
908
mrowe@apple.com836db132013-11-22 03:04:12 +0000909 <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
910
911 All modern versions of Xcode set it appropriately for our needs.
912
913 Reviewed by Alexey Proskuryakov.
914
915 * Configurations/Base.xcconfig:
916
9172013-11-21 Mark Rowe <mrowe@apple.com>
918
mrowe@apple.com2a0e83e2013-11-22 02:57:41 +0000919 <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
920
921 Reviewed by Alexey Proskuryakov.
922
923 * Configurations/Base.xcconfig:
924
9252013-11-21 Mark Rowe <mrowe@apple.com>
926
mrowe@apple.com01352df2013-11-22 02:55:19 +0000927 <https://webkit.org/b/124700> Fix some deprecation warnings.
928
929 Reviewed by Anders Carlsson.
930
931 * Plugins/WebNetscapePluginStream.mm:
932 (WebNetscapePluginStream::startStream): Move off a deprecated NSData method.
933 * WebView/WebDataSource.mm:
934 (-[WebDataSource _fileWrapperForURL:]): Move off a deprecated NSFileWrapper method.
935 * WebView/WebHTMLView.mm:
936 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
937
mark.lam@apple.com30721252013-11-21 05:29:42 +00009382013-11-20 Mark Lam <mark.lam@apple.com>
939
940 Introducing VMEntryScope to update the VM stack limit.
941 https://bugs.webkit.org/show_bug.cgi?id=124634.
942
943 Reviewed by Geoffrey Garen.
944
945 * WebView/WebScriptDebugger.mm:
946 (WebScriptDebugger::sourceParsed):
947
rniwa@webkit.orgf70fb822013-11-20 06:57:41 +00009482013-11-19 Ryosuke Niwa <rniwa@webkit.org>
949
950 Enable HTMLTemplateElement on Mac port
951 https://bugs.webkit.org/show_bug.cgi?id=124637
952
953 Reviewed by Tim Horton.
954
955 * Configurations/FeatureDefines.xcconfig:
956
commit-queue@webkit.orgdd9a0462013-11-19 07:53:37 +00009572013-11-18 Commit Queue <commit-queue@webkit.org>
958
959 Unreviewed, rolling out r159455.
960 http://trac.webkit.org/changeset/159455
961 https://bugs.webkit.org/show_bug.cgi?id=124568
962
963 broke two api tests (see bug 124564) (Requested by thorton on
964 #webkit).
965
966 * WebView/WebHTMLView.mm:
967 (-[WebHTMLView _selectionDraggingImage]):
968 (-[WebHTMLView selectionImageForcingBlackText:]):
969
mrowe@apple.com596c3c82013-11-19 05:14:36 +00009702013-11-18 Mark Rowe <mrowe@apple.com>
971
972 Disable deprecation warnings related to NSCalendarDate in WebHistory.
973
974 Reviewed by Anders Carlsson.
975
976 * History/WebHistory.h: Use a #pragma to have the compiler treat this header as
977 a system header, even when not included from a system location. This has the effect
978 of suppressing warnings when including this header. It's a more general effect than
979 we're after but is also less invasive than disabling deprecation warnings around
980 the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
981 in the future.
982 * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
983
hyatt@apple.coma5626692013-11-18 23:08:30 +00009842013-11-18 David Hyatt <hyatt@apple.com>
985
986 Add a quirk to not respect center text-align when positioning
987
988 <rdar://problem/15427571>
989 https://bugs.webkit.org/show_bug.cgi?id=124522
990
991 Reviewed by Simon Fraser.
992
993 Added fast/block/legacy-text-align-position-quirk.html
994
995 * WebView/WebPreferenceKeysPrivate.h:
996 * WebView/WebPreferences.mm:
997 (+[WebPreferences initialize]):
998 (-[WebPreferences useLegacyTextAlignPositionedElementBehavior]):
999 (-[WebPreferences setUseLegacyTextAlignPositionedElementBehavior:]):
1000 * WebView/WebPreferencesPrivate.h:
1001 * WebView/WebView.mm:
1002 (-[WebView _preferencesChanged:]):
1003
commit-queue@webkit.org6978d8e2013-11-18 22:10:33 +000010042013-11-18 Brian J. Burg <burg@cs.washington.edu>
1005
1006 Consolidate various frame snapshot capabilities.
1007 https://bugs.webkit.org/show_bug.cgi?id=124325
1008
1009 Reviewed by Timothy Hatcher.
1010
1011 Use new platform-independent methods instead of Mac methods.
1012
1013 * WebView/WebHTMLView.mm:
1014 (-[WebHTMLView _selectionDraggingImage]):
1015 (-[WebHTMLView selectionImageForcingBlackText:]):
1016
andersca@apple.com17f52192013-11-18 18:42:34 +000010172013-11-18 Anders Carlsson <andersca@apple.com>
1018
andersca@apple.coma8be6882013-11-18 18:54:21 +00001019 Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
1020 https://bugs.webkit.org/show_bug.cgi?id=124523
1021
1022 Reviewed by Dan Bernstein.
1023
1024 * Plugins/Hosted/NetscapePluginHostManager.mm:
1025 (WebKit::NetscapePluginHostManager::spawnPluginHost):
1026 (WebKit::NetscapePluginHostManager::didCreateWindow):
1027 * Plugins/Hosted/NetscapePluginHostProxy.mm:
1028 (WebKit::NetscapePluginHostProxy::makeCurrentProcessFrontProcess):
1029 (WebKit::NetscapePluginHostProxy::makePluginHostProcessFrontProcess):
1030 (WebKit::NetscapePluginHostProxy::isPluginHostProcessFrontProcess):
1031
10322013-11-18 Anders Carlsson <andersca@apple.com>
1033
andersca@apple.com17f52192013-11-18 18:42:34 +00001034 Ignore deprecation warnings for now.
1035
1036 * History/WebHistory.h:
1037
andersca@apple.com831bbe52013-11-14 21:14:40 +000010382013-11-14 Anders Carlsson <andersca@apple.com>
1039
andersca@apple.com0fd28da2013-11-14 22:02:47 +00001040 Reimplement getDayBoundaries using NSCalendar on 10.9
1041 https://bugs.webkit.org/show_bug.cgi?id=124379
1042
1043 Reviewed by Dan Bernstein.
1044
1045 * History/WebHistory.mm:
1046 (getDayBoundaries):
1047
10482013-11-14 Anders Carlsson <andersca@apple.com>
1049
andersca@apple.com831bbe52013-11-14 21:14:40 +00001050 Stop using deprecated NSPropertyListSerialization methods
1051 https://bugs.webkit.org/show_bug.cgi?id=124377
1052
1053 Reviewed by Mark Rowe.
1054
1055 * History/WebHistory.mm:
1056 (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1057 * Plugins/Hosted/NetscapePluginHostManager.mm:
1058 (WebKit::NetscapePluginHostManager::spawnPluginHost):
1059 (WebKit::NetscapePluginHostManager::instantiatePlugin):
1060 * Plugins/Hosted/NetscapePluginHostProxy.mm:
1061 (WKPCIdentifierInfo):
1062 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1063 (WebKit::NetscapePluginInstanceProxy::enumerate):
1064 (WebKit::NetscapePluginInstanceProxy::marshalValue):
1065 (WebKit::NetscapePluginInstanceProxy::marshalValues):
1066 (WebKit::NetscapePluginInstanceProxy::demarshalValue):
1067 (WebKit::NetscapePluginInstanceProxy::demarshalValues):
1068 * Plugins/Hosted/ProxyInstance.mm:
1069 (WebKit::ProxyInstance::getPropertyNames):
1070
joepeck@webkit.org5a820f22013-11-14 03:08:27 +000010712013-11-13 Joseph Pecoraro <pecoraro@apple.com>
1072
1073 Unreviewed rollout of r159271, broke Mountain Lion build.
1074
1075 * History/WebHistory.h:
1076 * History/WebHistory.mm:
1077
andersca@apple.com05174502013-11-14 02:58:05 +000010782013-11-13 Anders Carlsson <andersca@apple.com>
1079
1080 Deprecate WebHistory methods that use NSCalendarDate
1081 https://bugs.webkit.org/show_bug.cgi?id=124329
1082 <rdar://problem/15441122>
1083
1084 Reviewed by Mark Rowe.
1085
1086 * History/WebHistory.h:
1087 Add NS_DEPRECATED_MAC to orderedLastVisitedDays and orderedItemsLastVisitedOnDay:.
1088 In order to not break the Mountain Lion build, define __NSd_10_9 if necessary.
1089
1090 * History/WebHistory.mm:
1091 Ignore deprecation warnings in methods where NSCalendarDate is used.
1092
commit-queue@webkit.orgd5c3c0e2013-11-13 23:20:27 +000010932013-11-13 Gordon Sheridan <gordon_sheridan@apple.com>
1094
1095 Removed deprecated download delegates.
1096 https://bugs.webkit.org/show_bug.cgi?id=124309
1097 <rdar://problem/13570414>
1098
1099 Reviewed by Anders Carlsson.
1100
1101 * Misc/WebDownload.mm:
1102 (-[WebDownloadInternal respondsToSelector:]):
1103 Removed download:shouldBeginChildDownloadOfSource:delegate and
1104 download:didBeginChildDownload.
1105
ap@apple.combb221002013-11-13 07:24:54 +000011062013-11-12 Alexey Proskuryakov <ap@apple.com>
1107
1108 Disable WebCrypto on Mountain Lion
1109 https://bugs.webkit.org/show_bug.cgi?id=124261
1110
1111 Rubber-stamped by Sam Weinig.
1112
1113 * Configurations/FeatureDefines.xcconfig:
1114
aestes@apple.comc7c19a02013-11-13 02:04:18 +000011152013-11-12 Andy Estes <aestes@apple.com>
1116
1117 [Mac] Fix some deprecation warnings
1118 https://bugs.webkit.org/show_bug.cgi?id=124252
1119
1120 Reviewed by Mark Rowe.
1121
1122 * Plugins/WebBasePluginPackage.mm:
1123 (-[WebBasePluginPackage pListForPath:createFile:]): Use +[NSPropertyListSerialization propertyListWithData:options:format:error:] instead of +[NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:].
1124
andersca@apple.com05014cb2013-11-13 01:50:07 +000011252013-11-12 Anders Carlsson <andersca@apple.com>
1126
1127 Remove -[WebHistoryItem _lastVisitedDate]
1128 https://bugs.webkit.org/show_bug.cgi?id=124250
1129
1130 Reviewed by Mark Rowe.
1131
1132 This method is not called by anyone and NSCalendarDate is deprecated so get rid of it.
1133
1134 * History/WebHistoryItem.mm:
1135 * History/WebHistoryItemPrivate.h:
1136
andersca@apple.com54b12052013-11-12 01:51:39 +000011372013-11-11 Anders Carlsson <andersca@apple.com>
1138
1139 FrameFilter can just be an std::function instead
1140 https://bugs.webkit.org/show_bug.cgi?id=124176
1141
1142 Reviewed by Tim Horton.
1143
1144 * DOM/WebDOMOperations.mm:
1145 (-[DOMNode webArchiveByFilteringSubframes:]):
1146
mitz@apple.comaecd5cb2013-11-11 18:00:41 +000011472013-11-11 Dan Bernstein <mitz@apple.com>
1148
1149 [Mac] .exp files are not source code
1150 https://bugs.webkit.org/show_bug.cgi?id=124154
1151
1152 Reviewed by Andy Estes.
1153
1154 * Configurations/WebKit.xcconfig: Removed WebKit.iOS.exp from
1155 EXCLUDED_SOURCE_FILE_NAMES_macosx.
1156
paroga@webkit.orgf8108ef2013-11-09 20:59:28 +000011572013-11-09 Patrick Gansterer <paroga@webkit.org>
1158
1159 Move RunLoop from WebCore to WTF
1160 https://bugs.webkit.org/show_bug.cgi?id=116606
1161
1162 Reviewed by Anders Carlsson.
1163
1164 * Carbon/CarbonWindowAdapter.mm:
1165 (+[CarbonWindowAdapter initialize]):
1166 * History/WebBackForwardList.mm:
1167 (+[WebBackForwardList initialize]):
1168 * History/WebHistoryItem.mm:
1169 (+[WebHistoryItem initialize]):
1170 * Misc/WebCache.mm:
1171 (+[WebCache initialize]):
1172 * Misc/WebElementDictionary.mm:
1173 (+[WebElementDictionary initialize]):
1174 * Misc/WebIconDatabase.mm:
1175 (+[WebIconDatabase initialize]):
1176 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1177 (+[WebHostedNetscapePluginView initialize]):
1178 * Plugins/WebBaseNetscapePluginView.mm:
1179 * Plugins/WebBasePluginPackage.mm:
1180 * Plugins/WebNetscapePluginView.mm:
1181 (+[WebNetscapePluginView initialize]):
1182 * WebCoreSupport/WebEditorClient.mm:
1183 (+[WebUndoStep initialize]):
1184 * WebCoreSupport/WebFrameLoaderClient.mm:
1185 * WebView/WebArchive.mm:
1186 (+[WebArchivePrivate initialize]):
1187 * WebView/WebDataSource.mm:
1188 (+[WebDataSource initialize]):
1189 * WebView/WebHTMLView.mm:
1190 (+[WebHTMLViewPrivate initialize]):
1191 (+[WebHTMLView initialize]):
1192 * WebView/WebPreferences.mm:
1193 (+[WebPreferences initialize]):
1194 * WebView/WebResource.mm:
1195 (+[WebResourcePrivate initialize]):
1196 * WebView/WebTextIterator.mm:
1197 (+[WebTextIteratorPrivate initialize]):
1198 * WebView/WebView.mm:
1199 (+[WebView initialize]):
1200 * WebView/WebViewData.mm:
1201 (+[WebViewPrivate initialize]):
1202
mark.lam@apple.com26c53402013-11-08 20:03:50 +000012032013-11-08 Mark Lam <mark.lam@apple.com>
1204
1205 Move breakpoint (and exception break) functionality into JSC::Debugger.
1206 https://bugs.webkit.org/show_bug.cgi?id=121796.
1207
1208 Reviewed by Geoffrey Garen.
1209
1210 * WebView/WebScriptDebugger.h:
1211 * WebView/WebScriptDebugger.mm:
1212 (WebScriptDebugger::WebScriptDebugger):
1213 (WebScriptDebugger::handlePause):
1214
commit-queue@webkit.orgaed705b2013-11-07 23:46:21 +000012152013-11-07 Joseph Pecoraro <pecoraro@apple.com>
1216
1217 Remove a PLATFORM(IOS) from WebKit Private Header
1218 https://bugs.webkit.org/show_bug.cgi?id=124014
1219
1220 Reviewed by Timothy Hatcher.
1221
1222 Make the previously iOS only WebInspectorDidStartSearchingForNode
1223 and WebInspectorDidStopSearchingForNode notifications non iOS specific.
1224
1225 * WebCoreSupport/WebInspectorClient.h:
1226 * WebCoreSupport/WebInspectorClient.mm:
1227 (WebInspectorClient::didSetSearchingForNode):
1228 * WebInspector/WebInspector.h:
1229 * WebInspector/WebInspector.mm:
1230 * WebKit.exp:
1231
mark.lam@apple.comf1735512013-11-07 20:17:13 +000012322013-11-07 Mark Lam <mark.lam@apple.com>
1233
1234 Cosmetic: rename xxxId to xxxID for ScriptId, SourceId, and BreakpointId.
1235 https://bugs.webkit.org/show_bug.cgi?id=123945.
1236
1237 Reviewed by Geoffrey Garen.
1238
1239 * WebView/WebScriptDebugger.mm:
1240 (WebScriptDebugger::exception):
1241
dbates@webkit.org5c168d72013-11-07 00:39:11 +000012422013-11-06 Daniel Bates <dabates@apple.com>
1243
1244 [iOS] Upstream Letterpress effect
1245 https://bugs.webkit.org/show_bug.cgi?id=123932
1246
1247 Reviewed by Sam Weinig.
1248
1249 Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
1250 letterpress on iOS.
1251
1252 * Configurations/FeatureDefines.xcconfig:
1253
ap@apple.com7865e102013-11-05 07:05:59 +000012542013-11-04 Alexey Proskuryakov <ap@apple.com>
1255
1256 DumpRenderTree should reset its preferences file on launch
1257 https://bugs.webkit.org/show_bug.cgi?id=29751
1258
1259 Reviewed by Dan Bernstein.
1260
1261 * WebView/WebView.mm:
1262 (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1263 Further fix reading of AppleKeyboardUIMode - reading it from kCFPreferencesAnyApplication
1264 domain meant that current application's domain was explcitly ignored, and the only
1265 way to override the setting in DRT was through argument domain.
1266
jer.noble@apple.combff86892013-11-04 22:53:32 +000012672013-11-01 Jer Noble <jer.noble@apple.com>
1268
1269 [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
1270 https://bugs.webkit.org/show_bug.cgi?id=123621
1271
1272 Reviewed by Eric Carlson.
1273
1274 Add a new isVideoPluginProxyEnabled setting.
1275
1276 * WebView/WebPreferenceKeysPrivate.h:
1277 * WebView/WebPreferences.mm:
1278 (+[WebPreferences initialize]): Set isVideoPluginProxyEnabled preference.
1279 (-[WebPreferences isVideoPluginProxyEnabled]): Pass through to Settings.
1280 * WebView/WebPreferencesPrivate.h:
1281 * WebView/WebView.mm:
1282 (-[WebView _preferencesChanged:]): Set isVideoPluginProxyEnabled preference.
1283
aestes@apple.comec462442013-11-01 21:06:46 +000012842013-11-01 Andy Estes <aestes@apple.com>
1285
1286 [iOS] Make some headers Private
1287 https://bugs.webkit.org/show_bug.cgi?id=123626
1288
1289 Reviewed by Andreas Kling.
1290
1291 * Configurations/WebKit.xcconfig: Exclude iOS Private headers from the Mac build.
1292
ap@apple.com13a73332013-10-31 21:50:01 +000012932013-10-31 Alexey Proskuryakov <ap@apple.com>
1294
1295 Enable WebCrypto on Mac
1296 https://bugs.webkit.org/show_bug.cgi?id=123587
1297
1298 Reviewed by Anders Carlsson.
1299
1300 * Configurations/FeatureDefines.xcconfig: Do it.
1301
rniwa@webkit.org63c3a042013-10-31 00:14:28 +000013022013-10-30 Ryosuke Niwa <rniwa@webkit.org>
1303
1304 Remove code for Mac Lion
1305 https://bugs.webkit.org/show_bug.cgi?id=123542
1306
1307 Reviewed by Anders Carlsson.
1308
1309 * WebView/WebHTMLView.mm:
1310 (-[WebHTMLView attachRootLayer:]):
1311 * WebView/WebView.mm:
1312
aestes@apple.comc7dec4b2013-10-30 23:48:35 +000013132013-10-29 Andy Estes <aestes@apple.com>
1314
1315 [iOS] Upstream Source/WebKit/ios/
1316 https://bugs.webkit.org/show_bug.cgi?id=123470
1317
1318 Reviewed by Sam Weinig.
1319
1320 * Configurations/WebKit.xcconfig: Excluded some iOS files from the Mac build.
1321
ap@apple.com769414f2013-10-30 06:53:32 +000013222013-10-29 Alexey Proskuryakov <ap@apple.com>
1323
1324 Result of focus-option-control-on-page.html depends on system preferences
1325 https://bugs.webkit.org/show_bug.cgi?id=123304
1326
1327 Reviewed by Simon Fraser.
1328
1329 * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1330 Read the preference from its correct domain. This doesn't affect behavior in practice
1331 and isn't part of the fix, but it's a good opportunity to correct this code.
1332
jer.noble@apple.com69589092013-10-29 22:03:07 +000013332013-10-29 Jer Noble <jer.noble@apple.com>
1334
1335 [MSE] [Mac] Enable MediaSource on the Mac
1336 https://bugs.webkit.org/show_bug.cgi?id=122484
1337
1338 Reviewed by Darin Adler.
1339
1340 Enable ENABLE_MEDIA_SOURCE.
1341
1342 * Configurations/FeatureDefines.xcconfig:
1343
commit-queue@webkit.org5d05e882013-10-28 22:08:51 +000013442013-10-28 Joseph Pecoraro <pecoraro@apple.com>
1345
1346 Upstream remaining PLATFORM(IOS) and ENABLE(REMOTE_INSPECTOR) pieces
1347 https://bugs.webkit.org/show_bug.cgi?id=123411
1348
1349 Reviewed by Timothy Hatcher.
1350
1351 Upstream iOS node highlighting and view indication.
1352
1353 * WebCoreSupport/WebInspectorClient.h:
1354 * WebInspector/WebInspector.h:
1355 * WebInspector/WebInspector.mm:
1356 * WebInspector/WebNodeHighlight.h:
1357 * WebInspector/WebNodeHighlight.mm:
1358 (-[WebHighlightLayer initWithHighlightView:webView:]):
1359 (-[WebHighlightLayer layoutSublayers]):
1360 (-[WebHighlightLayer actionForKey:]):
1361 (-[WebNodeHighlight initWithTargetView:inspectorController:]):
1362 (-[WebNodeHighlight dealloc]):
1363 (-[WebNodeHighlight attach]):
1364 * WebInspector/WebNodeHighlightView.h:
1365 * WebInspector/WebNodeHighlightView.mm:
1366 (-[WebNodeHighlightView initWithWebNodeHighlight:]):
1367 (-[WebNodeHighlightView dealloc]):
1368 (-[WebNodeHighlightView _attach:numLayers:]):
1369 (findIntersectionOnLineBetweenPoints):
1370 (quadIntersection):
1371 (layerPathWithHole):
1372 (layerPath):
1373 (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
1374 (-[WebNodeHighlightView _layoutForRectsHighlight:parent:]):
1375 (-[WebNodeHighlightView layoutSublayers:]):
1376 * WebInspector/WebNodeHighlighter.mm:
1377 (-[WebNodeHighlighter highlight]):
1378 * WebView/WebIndicateLayer.h: Added.
1379 * WebView/WebIndicateLayer.mm: Added.
1380 (-[WebIndicateLayer layoutSublayers]):
1381 (-[WebIndicateLayer actionForKey:]):
1382 * WebView/WebView.mm:
1383 (-[WebView setIndicatingForRemoteInspector:]):
1384 (-[WebView setHostApplicationBundleId:name:]):
1385 (-[WebView hostApplicationBundleId]):
1386 (-[WebView hostApplicationName]):
1387 * WebView/WebViewData.h:
1388 * WebView/WebViewData.mm:
1389 (-[WebViewPrivate dealloc]):
1390
commit-queue@webkit.org01719202013-10-28 21:05:35 +000013912013-10-28 Myles C. Maxfield <mmaxfield@apple.com>
1392
1393 Parsing support for -webkit-text-decoration-skip: ink
1394 https://bugs.webkit.org/show_bug.cgi?id=123358
1395
1396 Reviewed by Dean Jackson.
1397
1398 Adding ENABLE(CSS3_TEXT_DECORATION)
1399
1400 * Configurations/FeatureDefines.xcconfig:
1401
joepeck@webkit.org1367d772013-10-25 20:59:15 +000014022013-10-25 Joseph Pecoraro <pecoraro@apple.com>
1403
1404 Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
1405 https://bugs.webkit.org/show_bug.cgi?id=123111
1406
1407 Reviewed by Timothy Hatcher.
1408
1409 The actual implementation at the WebCoreSupport/WebInspectorClient level
1410 is the same as INSPECTOR_SERVER. Give debuggable pages a pageIdentifer.
1411
1412 * Configurations/FeatureDefines.xcconfig:
1413 * Misc/WebKitLogging.h:
1414 Misc.
1415
1416 * WebCoreSupport/WebInspectorClient.h:
1417 (WebInspectorClient::pageId):
1418 (WebInspectorClient::setPageId):
1419 Give WebInspectorClient's a page identifier.
1420
1421 * WebCoreSupport/WebInspectorClient.mm:
1422 (WebInspectorClient::WebInspectorClient):
1423 (WebInspectorClient::inspectorDestroyed):
1424 (WebInspectorClient::sendMessageToFrontend):
1425 (WebInspectorClient::sendMessageToBackend):
1426 (WebInspectorClient::setupRemoteConnection):
1427 (WebInspectorClient::teardownRemoteConnection):
1428 (WebInspectorClient::hasLocalSession):
1429 (WebInspectorClient::canBeRemotelyInspected):
1430 (WebInspectorClient::inspectedWebView):
1431 A WebInspectorClient can be either local or remote. Add handling
1432 for remote connections.
1433
1434 * WebInspector/remote/WebInspectorClientRegistry.h: Added.
1435 * WebInspector/remote/WebInspectorClientRegistry.mm: Added.
1436 (+[WebInspectorClientRegistry sharedRegistry]):
1437 (-[WebInspectorClientRegistry init]):
1438 (-[WebInspectorClientRegistry _getNextAvailablePageId]):
1439 (-[WebInspectorClientRegistry registerClient:]):
1440 (-[WebInspectorClientRegistry unregisterClient:]):
1441 (-[WebInspectorClientRegistry clientForPageId:]):
1442 (-[WebInspectorClientRegistry inspectableWebViews]):
1443 Registry for all potentially debuggable pages. All WebInspectorClient instances.
1444
1445 * WebInspector/remote/WebInspectorRelayDefinitions.h: Added.
1446 Constants (message keys) shared between WebKit and the XPC process.
1447
1448 * WebInspector/remote/WebInspectorServer.h: Added.
1449 * WebInspector/remote/WebInspectorServer.mm: Added.
1450 (-[WebInspectorServer init]):
1451 (-[WebInspectorServer dealloc]):
1452 (-[WebInspectorServer start]):
1453 (-[WebInspectorServer stop]):
1454 (-[WebInspectorServer isEnabled]):
1455 (-[WebInspectorServer xpcConnection]):
1456 (-[WebInspectorServer setupXPCConnectionIfNeeded]):
1457 (-[WebInspectorServer pushListing]):
1458 (-[WebInspectorServer hasActiveDebugSession]):
1459 (-[WebInspectorServer setHasActiveDebugSession:]):
1460 (-[WebInspectorServer xpcConnection:receivedMessage:userInfo:]):
1461 (-[WebInspectorServer xpcConnectionFailed:]):
1462 (-[WebInspectorServer didRegisterClient:]):
1463 (-[WebInspectorServer didUnregisterClient:]):
1464 Singleton to start/stop remote inspection. Handles the connection to the XPC
1465 and hands off connections to the connection controller.
1466
1467 * WebInspector/remote/WebInspectorServerWebViewConnection.h: Added.
1468 * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Added.
1469 (-[WebInspectorServerWebViewConnection initWithController:connectionIdentifier:destination:identifier:]):
1470 (-[WebInspectorServerWebViewConnection setupChannel]):
1471 (-[WebInspectorServerWebViewConnection dealloc]):
1472 (-[WebInspectorServerWebViewConnection connectionIdentifier]):
1473 (-[WebInspectorServerWebViewConnection identifier]):
1474 (-[WebInspectorServerWebViewConnection clearChannel]):
1475 (-[WebInspectorServerWebViewConnection sendMessageToFrontend:]):
1476 (-[WebInspectorServerWebViewConnection sendMessageToBackend:]):
1477 (-[WebInspectorServerWebViewConnection receivedData:]):
1478 (-[WebInspectorServerWebViewConnection receivedDidClose:]):
1479 An individual remote debug session connection.
1480
1481 * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Added.
1482 * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Added.
1483 (-[WebInspectorServerWebViewConnectionController initWithServer:]):
1484 (-[WebInspectorServerWebViewConnectionController dealloc]):
1485 (-[WebInspectorServerWebViewConnectionController closeAllConnections]):
1486 (-[WebInspectorServerWebViewConnectionController _listingForWebView:pageId:registry:]):
1487 (-[WebInspectorServerWebViewConnectionController _pushListing:]):
1488 (-[WebInspectorServerWebViewConnectionController pushListing:]):
1489 (-[WebInspectorServerWebViewConnectionController pushListing]):
1490 (-[WebInspectorServerWebViewConnectionController _receivedSetup:]):
1491 (-[WebInspectorServerWebViewConnectionController _receivedData:]):
1492 (-[WebInspectorServerWebViewConnectionController _receivedDidClose:]):
1493 (-[WebInspectorServerWebViewConnectionController _receivedGetListing:]):
1494 (-[WebInspectorServerWebViewConnectionController _receivedIndicate:]):
1495 (-[WebInspectorServerWebViewConnectionController _receivedConnectionDied:]):
1496 (-[WebInspectorServerWebViewConnectionController receivedMessage:userInfo:]):
1497 (-[WebInspectorServerWebViewConnectionController connectionClosing:]):
1498 (-[WebInspectorServerWebViewConnectionController sendMessageToFrontend:userInfo:]):
1499 ConnectionController:
1500 - Holds all the current ongoing remote debug connections.
1501 - Simplifies multi-threaded work on iOS.
1502 - Dispatches incoming messages from the remote connection.
1503
1504 * WebInspector/remote/WebInspectorRemoteChannel.h: Added.
1505 * WebInspector/remote/WebInspectorRemoteChannel.mm: Added.
1506 (+[WebInspectorRemoteChannel createChannelForPageId:connection:]):
1507 (-[WebInspectorRemoteChannel initWithRemote:local:]):
1508 (-[WebInspectorRemoteChannel closeFromLocalSide]):
1509 (-[WebInspectorRemoteChannel closeFromRemoteSide]):
1510 (-[WebInspectorRemoteChannel sendMessageToFrontend:]):
1511 (-[WebInspectorRemoteChannel sendMessageToBackend:]):
1512 Thin interface between the remote connection and web inspector client.
1513 This simplifies breaking the connection from either side, e.g. the
1514 page closing, or the remote connection disconnecting.
1515
1516 * WebInspector/remote/WebInspectorXPCWrapper.h: Added.
1517 * WebInspector/remote/WebInspectorXPCWrapper.m: Added.
1518 (-[WebInspectorXPCWrapper initWithConnection:]):
1519 (-[WebInspectorXPCWrapper close]):
1520 (-[WebInspectorXPCWrapper dealloc]):
1521 (-[WebInspectorXPCWrapper _deserializeMessage:]):
1522 (-[WebInspectorXPCWrapper _handleEvent:]):
1523 (-[WebInspectorXPCWrapper sendMessage:userInfo:]):
1524 (-[WebInspectorXPCWrapper available]):
1525 * WebKit.exp:
1526 XPC Connection wrapper handling a simple message format.
1527
1528 * WebView/WebViewData.h:
1529 * WebView/WebViewData.mm:
1530 (-[WebViewPrivate init]):
1531 (-[WebViewPrivate dealloc]):
1532 * WebView/WebViewInternal.h:
1533 * WebView/WebViewPrivate.h:
1534 * WebView/WebView.mm:
1535 (-[WebView _commonInitializationWithFrameName:groupName:]):
1536 (+[WebView sharedWebInspectorServer]):
1537 (+[WebView _enableRemoteInspector]):
1538 (+[WebView _disableRemoteInspector]):
1539 (+[WebView _disableAutoStartRemoteInspector]):
1540 (+[WebView _isRemoteInspectorEnabled]):
1541 (+[WebView _hasRemoteInspectorSession]):
1542 (-[WebView canBeRemotelyInspected]):
1543 (-[WebView allowsRemoteInspection]):
1544 (-[WebView setAllowsRemoteInspection:]):
1545 (-[WebView setIndicatingForRemoteInspector:]):
1546 (-[WebView setRemoteInspectorUserInfo:]):
1547 (-[WebView remoteInspectorUserInfo]):
1548 Remote inspector private API.
1549 - Enable / disable globally
1550 - Allow / disallow per webview
1551 - Optionally attach a userInfo dictionary on the WebView that is published with listing.
1552 - Indicate a WebView (implementation to land later)
1553
1554 (-[WebView _didCommitLoadForFrame:]):
1555 * WebCoreSupport/WebFrameLoaderClient.mm:
1556 (WebFrameLoaderClient::dispatchDidReceiveTitle):
1557 Pages changed, pushed page listing.
1558
mrowe@apple.com618799e2013-10-25 20:16:56 +000015592013-10-25 Mark Rowe <mrowe@apple.com>
1560
1561 Fix or disable some deprecation warnings.
1562
1563 Reviewed by Darin Adler.
1564
1565 * Panels/WebAuthenticationPanel.m:
1566 (-[WebAuthenticationPanel cancel:]): On newer OS versions, use the modern API.
1567 (-[WebAuthenticationPanel logIn:]): Ditto.
1568 (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]): Ditto. Translate the
1569 response code in to the form that -sheetDidEnd:responseCode:contextInfo: expects.
1570 * WebView/WebClipView.mm:
1571 (-[WebClipView initWithFrame:]): Disable deprecation warnings since it's not obvious
1572 how to avoid calling -releaseGState here.
1573
mrowe@apple.com8c1df3f2013-10-25 01:42:41 +000015742013-10-24 Mark Rowe <mrowe@apple.com>
1575
mrowe@apple.comc835bc52013-10-25 04:04:16 +00001576 Remove references to OS X 10.7 from Xcode configuration settings.
1577
1578 Now that we're not building for OS X 10.7 they're no longer needed.
1579
1580 Reviewed by Anders Carlsson.
1581
1582 * Configurations/Base.xcconfig:
1583 * Configurations/DebugRelease.xcconfig:
1584 * Configurations/FeatureDefines.xcconfig:
1585 * Configurations/Version.xcconfig:
1586
15872013-10-24 Mark Rowe <mrowe@apple.com>
1588
mrowe@apple.com8c1df3f2013-10-25 01:42:41 +00001589 <rdar://problem/15312643> Prepare for the mysterious future.
1590
1591 Reviewed by David Kilzer.
1592
1593 * Configurations/Base.xcconfig:
1594 * Configurations/DebugRelease.xcconfig:
1595 * Configurations/FeatureDefines.xcconfig:
1596 * Configurations/Version.xcconfig:
1597
andersca@apple.comff9adb82013-10-25 01:15:36 +000015982013-10-24 Anders Carlsson <andersca@apple.com>
1599
1600 Stop bringing in the std namespace
1601 https://bugs.webkit.org/show_bug.cgi?id=123273
1602
1603 Reviewed by Andreas Kling.
1604
1605 * WebView/WebFrameView.mm:
1606 (-[WebFrameView _verticalPageScrollDistance]):
1607 (-[WebFrameView _horizontalPageScrollDistance]):
1608 * WebView/WebHTMLView.mm:
1609 (-[WebHTMLView _scaleFactorForPrintOperation:]):
1610 * WebView/WebView.mm:
1611 (+[WebView _setCacheModel:]):
1612 (+[WebView _maxCacheModelInAnyInstance]):
1613 (+[WebView _cacheModelChangedNotification:]):
1614 (+[WebView _preferencesRemovedNotification:]):
1615
dino@apple.com9312a532013-10-23 01:52:14 +000016162013-10-22 Dean Jackson <dino@apple.com>
1617
1618 [WebGL] Implement a software rendering option on Mac
1619 https://bugs.webkit.org/show_bug.cgi?id=123177
1620
1621 Reviewed by Tim Horton.
1622
1623 Implement a way to force software OpenGL rendering
1624 for WebGL, via a Setting/Preference.
1625
1626 * WebView/WebPreferenceKeysPrivate.h: New WebKitForceSoftwareWebGLRendering key.
1627 * WebView/WebPreferences.mm:
1628 (+[WebPreferences initialize]):
1629 (-[WebPreferences forceSoftwareWebGLRendering]):
1630 (-[WebPreferences setForceSoftwareWebGLRendering:]):
1631 * WebView/WebPreferencesPrivate.h:
1632 * WebView/WebView.mm:
1633 (-[WebView _preferencesChanged:]):
1634
mrowe@apple.com59498bd2013-10-22 01:27:50 +000016352013-10-21 Mark Rowe <mrowe@apple.com>
1636
1637 Add a version of WebKitSystemInterface for Mavericks.
1638
1639 Reviewed by Ryosuke Niwa.
1640
1641 * Configurations/DebugRelease.xcconfig:
1642
dbates@webkit.org7ebd6552013-10-21 22:46:32 +000016432013-10-21 Daniel Bates <dabates@apple.com>
1644
1645 Remove platform #ifdefs from WebDataSourcePrivate.h
1646 https://bugs.webkit.org/show_bug.cgi?id=123120
1647 <rdar://problem/15275533>
1648
1649 Reviewed by Anders Carlsson.
1650
1651 * WebView/WebDataSource.mm:
1652 (-[WebDataSource _setAllowToBeMemoryMapped]): Define empty implementation when building without
1653 disk image cache enabled.
1654 (-[WebDataSource setDataSourceDelegate:]): Ditto.
1655 (-[WebDataSource dataSourceDelegate]): Return nullptr when building without disk image cache
1656 enabled on iOS.
1657 * WebView/WebDataSourcePrivate.h: Removed platform #ifdefs added in
1658 <http://trac.webkit.org/changeset/156918> (https://bugs.webkit.org/show_bug.cgi?id=121985)
1659
mark.lam@apple.com47001432013-10-21 22:00:40 +000016602013-10-20 Mark Lam <mark.lam@apple.com>
1661
1662 Avoid JSC debugger overhead unless needed.
1663 https://bugs.webkit.org/show_bug.cgi?id=123084.
1664
1665 Reviewed by Geoffrey Garen.
1666
1667 * WebView/WebScriptDebugger.mm:
1668 (WebScriptDebugger::WebScriptDebugger):
1669
jer.noble@apple.com711b1be2013-10-20 05:42:46 +000016702013-10-19 Jer Noble <jer.noble@apple.com>
1671
1672 Unreviewed roll out of r157695; broke Mac builds.
1673
1674 * Configurations/FeatureDefines.xcconfig:
1675
jer.noble@apple.com2f5af662013-10-20 04:58:04 +000016762013-10-07 Jer Noble <jer.noble@apple.com>
1677
1678 [MSE] [Mac] Enable MediaSource on the Mac
1679 https://bugs.webkit.org/show_bug.cgi?id=122484
1680
1681 Reviewed by Darin Adler.
1682
1683 Enable ENABLE_MEDIA_SOURCE.
1684
1685 * Configurations/FeatureDefines.xcconfig:
1686
akling@apple.com9f3bcdd2013-10-19 14:26:49 +000016872013-10-19 Andreas Kling <akling@apple.com>
1688
1689 Attempt to get Lion building.
1690
1691 * WebView/WebDataSource.mm:
1692
andersca@apple.comc3523f82013-10-18 23:41:24 +000016932013-10-18 Anders Carlsson <andersca@apple.com>
1694
1695 Remove spaces between template angle brackets
1696 https://bugs.webkit.org/show_bug.cgi?id=123040
1697
1698 Reviewed by Andreas Kling.
1699
1700 * History/WebHistory.mm:
1701 (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
1702 * History/WebHistoryItem.mm:
1703 (-[WebHistoryItem initFromDictionaryRepresentation:]):
1704 * Plugins/Hosted/NetscapePluginHostProxy.h:
1705 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1706 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1707 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
1708 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
1709 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
1710 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
1711 (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
1712 * Plugins/WebNetscapePluginView.h:
1713 * Plugins/WebNetscapePluginView.mm:
1714 (-[WebNetscapePluginView destroyPlugin]):
1715 * Storage/WebDatabaseManager.mm:
1716 (-[WebDatabaseManager origins]):
1717 * Storage/WebStorageManager.mm:
1718 (-[WebStorageManager origins]):
1719 * WebCoreSupport/WebApplicationCache.mm:
1720 (+[WebApplicationCache originsWithCache]):
1721 * WebCoreSupport/WebEditorClient.h:
1722 * WebCoreSupport/WebEditorClient.mm:
1723 (WebEditorClient::getClientPasteboardDataForRange):
1724 (WebEditorClient::documentFragmentFromAttributedString):
1725 * WebCoreSupport/WebFrameLoaderClient.h:
1726 * WebCoreSupport/WebNotificationClient.h:
1727 * WebCoreSupport/WebNotificationClient.mm:
1728 (WebNotificationClient::show):
1729 (WebNotificationClient::clearNotifications):
1730 * WebView/WebArchive.mm:
1731 (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
1732 (-[WebArchive subresources]):
1733 (-[WebArchive subframeArchives]):
1734 * WebView/WebDataSource.mm:
1735 (-[WebDataSource subresources]):
1736 * WebView/WebViewData.h:
1737
jochen@chromium.org6aaeed52013-10-16 22:20:13 +000017382013-10-16 Jochen Eisinger <jochen@chromium.org>
1739
1740 A page should exit fullscreen mode if it opens a new popup
1741 https://bugs.webkit.org/show_bug.cgi?id=122865
1742
1743 Reviewed by Jer Noble.
1744
1745 If a fullscreen page opens a popup, the popup would be hidden and
1746 therefore invisible to the user. To avoid this, exit fullscreen mode
1747 before opening a new window.
1748
1749 * WebCoreSupport/WebChromeClient.mm:
1750 (WebChromeClient::createWindow):
1751
dino@apple.come9a3ed52013-10-16 00:34:53 +000017522013-10-15 Dean Jackson <dino@apple.com>
1753
1754 Add ENABLE_WEB_ANIMATIONS flag
1755 https://bugs.webkit.org/show_bug.cgi?id=122871
1756
1757 Reviewed by Tim Horton.
1758
1759 Eventually might be http://dev.w3.org/fxtf/web-animations/
1760 but this is just engine-internal work at the moment.
1761
1762 * Configurations/FeatureDefines.xcconfig:
1763
aestes@apple.comae262892013-10-15 20:28:49 +000017642013-10-15 Andy Estes <aestes@apple.com>
1765
1766 Expose -[WebPluginPackage bundle] as SPI
1767 https://bugs.webkit.org/show_bug.cgi?id=122814
1768
1769 Reviewed by Anders Carlsson.
1770
1771 * Plugins/WebPluginPackage.mm:
1772 (-[WebPluginPackage bundle]): Defined.
1773 * Plugins/WebPluginPackagePrivate.h: Declared bundle as a method in a
1774 category on NSObject.
1775
darin@apple.comad14cd22013-10-13 06:54:56 +000017762013-10-12 Darin Adler <darin@apple.com>
1777
1778 Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
1779 https://bugs.webkit.org/show_bug.cgi?id=122713
1780
1781 Reviewed by Sam Weinig.
1782
1783 * WebView/WebHTMLRepresentation.mm:
1784 (-[WebHTMLRepresentation elementWithName:inForm:]): Use asHTMLElement.
1785 (-[WebHTMLRepresentation controlsInForm:]): Ditto.
1786
aroben@webkit.org1d298a02013-10-13 04:05:49 +000017872013-10-12 Adam Roben <aroben@webkit.org>
1788
1789 WebViews inside OS X screen savers have large caches, but should not
1790 https://bugs.webkit.org/show_bug.cgi?id=122604
1791
1792 We use WebCacheModelDocumentViewer by default for apps linked against
1793 modern WebKit, and WebCacheModelDocumentBrowser for apps linked
1794 against legacy WebKit. ScreenSaverEngine.app doesn't link against
1795 WebKit at all, and thus falls into the legacy case by accident because
1796 NSVersionOfLinkTimeLibrary("WebKit") returns -1.
1797
1798 But WebViews inside screen savers are almost certainly not being used
1799 as browsers, so this large-ish cache specified by
1800 WebCacheModelDocumentBrowser is wasteful. This is likely true for all
1801 apps that don't directly link against WebKit, so now we use
1802 WebCacheModelDocumentViewer by default for those apps.
1803
1804 Reviewed by Darin Adler.
1805
1806 * WebView/WebPreferences.mm:
1807 (cacheModelForMainBundle): Use WebCacheModelDocumentViewer by default
1808 for apps that don't link against WebKit directly. Also converted to
1809 use @autoreleasepool {} and early returns while I was in here.
1810
ap@apple.com7ff3fdf2013-10-12 18:34:14 +000018112013-10-12 Alexey Proskuryakov <ap@apple.com>
1812
1813 Add a feature define for SubtleCrypto
1814 https://bugs.webkit.org/show_bug.cgi?id=122683
1815
1816 Reviewed by Anders Carlsson.
1817
1818 * Configurations/FeatureDefines.xcconfig:
1819
darin@apple.com43d90a92013-10-12 14:15:33 +000018202013-10-12 Darin Adler <darin@apple.com>
1821
1822 Use unique_ptr instead of delete in a few places
1823 https://bugs.webkit.org/show_bug.cgi?id=122639
1824
1825 Reviewed by Anders Carlsson.
1826
1827 * History/WebHistory.mm:
1828 (-[WebHistoryPrivate init]): Use make_unique.
1829 (-[WebHistoryPrivate dealloc]): Don't delete.
1830 (-[WebHistoryPrivate finalize]): Don't delete.
1831 (-[WebHistoryPrivate data]): Use get.
1832
1833 * WebCoreSupport/WebFrameNetworkingContext.mm:
1834 (privateSession): Use NeverDestroyed here instead of a raw pointer.
1835 (WebFrameNetworkingContext::ensurePrivateBrowsingSession): Use the
1836 new function instead of direct global variable access.
1837 (WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
1838 (WebFrameNetworkingContext::storageSession): Ditto.
1839
1840 * WebView/WebFrame.mm:
1841 (-[WebFramePrivate dealloc]): Don't delete.
1842 (-[WebFramePrivate finalize]): Don't delete.
1843 (-[WebFrame _attachScriptDebugger]): Use make_unique.
1844 (-[WebFrame _detachScriptDebugger]): Don't delete.
1845 * WebView/WebFrameInternal.h: Use unique_ptr.
1846
timothy@apple.com2e9de952013-10-11 23:09:02 +000018472013-10-11 Timothy Hatcher <timothy@apple.com>
1848
1849 Remove preference support for picking the old Web Inspector.
1850 https://bugs.webkit.org/show_bug.cgi?id=122655
1851
1852 Reviewed by Alexey Proskuryakov.
1853
1854 * WebCoreSupport/WebInspectorClient.mm:
1855 (WebInspectorFrontendClient::localizedStringsURL):
1856 (-[WebInspectorWindowController inspectorPagePath]):
1857
simon.fraser@apple.comd3873552013-10-11 00:30:29 +000018582013-10-10 Simon Fraser <simon.fraser@apple.com>
1859
1860 Always force layout before flushing compositing layers
1861 https://bugs.webkit.org/show_bug.cgi?id=122626
1862
1863 Reviewed by Tim Horton.
1864
1865 [m_webView _flushCompositingChanges] only actually flushes compositing
1866 layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
1867 returns in this case). In this situation, flushLayers() does actually try
1868 to force a layout, but on some platforms it's possible for something else
1869 to dirty layout before the runloop observer fires again. This can result
1870 in flushLayers() never actually managing to flush, which stalls visual
1871 updates.
1872
1873 Fix by always calling -viewWillDraw (which updates layout) before flushing
1874 layers. This now matches WebKit2 behavior.
1875
1876 * WebView/WebView.mm:
1877 (LayerFlushController::flushLayers):
1878
aestes@apple.com765bd952013-10-10 23:05:22 +000018792013-10-10 Andy Estes <aestes@apple.com>
1880
1881 Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones
1882 https://bugs.webkit.org/show_bug.cgi?id=122608
1883
1884 Reviewed by Dan Bernstein.
1885
1886 Based on patches by Dan Bernstein.
1887
1888 * WebView/WebView.mm:
1889 (-[WebView _setFontFallbackPrefersPictographs:]): Called
1890 WebCore::Settings::setFontFallbackPrefersPictographs().
1891 * WebView/WebViewPrivate.h:
1892
mrowe@apple.com1b50c5d2013-10-10 19:48:19 +000018932013-10-10 Mark Rowe <mrowe@apple.com>
1894
1895 <rdar://problem/13341666> WebKit should always build against an SDK.
1896
1897 Have all projects default to building against the OS X Internal SDK for the Production
1898 configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
1899 to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
1900
1901 Reviewed by Dan Bernstein.
1902
1903 * Configurations/Base.xcconfig:
1904 * Configurations/DebugRelease.xcconfig:
1905
darin@apple.com56e7a232013-10-08 07:45:46 +000019062013-10-08 Darin Adler <darin@apple.com>
1907
darin@apple.comc4fc1b92013-10-08 16:31:36 +00001908 WebNetscapePluginView should no longer use deleteAllValues
1909 https://bugs.webkit.org/show_bug.cgi?id=122495
1910
1911 Reviewed by Anders Carlsson.
1912
1913 * Plugins/WebNetscapePluginView.h: Use unique_ptr for both the pointer to
1914 the timers hash table, and for the values in the hash table.
1915
1916 * Plugins/WebNetscapePluginView.mm:
1917 (-[WebNetscapePluginView stopTimers]): Rewrote loop so it works with unique_ptr.
1918 (-[WebNetscapePluginView startTimers]): Ditto.
1919 (-[WebNetscapePluginView fini]): Removed unneeded code to delete timers.
1920 (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]): Make
1921 the timers hash table with make-unique. Fixed the loop that chooses the timer
1922 ID so it won't ever try to use a deleted value, although that never happens
1923 in practice. Use HashMap::add instead of using both contains and set.
1924 Rearranged code so we don't need to make a raw pointer for the timer.
1925 (-[WebNetscapePluginView unscheduleTimer:]): Use remove instead of take/delete,
1926 since remove takes care of the deletion automatically since we are using the
1927 unique_ptr class.
1928
19292013-10-08 Darin Adler <darin@apple.com>
1930
darin@apple.com16380782013-10-08 14:56:54 +00001931 Eliminate use of deleteAllValues in ProxyInstance
1932 https://bugs.webkit.org/show_bug.cgi?id=122499
1933
1934 Reviewed by Anders Carlsson.
1935
1936 * Plugins/Hosted/ProxyInstance.h: Use unique_ptr for map values in m_fields and m_methods.
1937
1938 * Plugins/Hosted/ProxyInstance.mm:
1939 (WebKit::ProxyInstance::~ProxyInstance): Removed calls to deleteAllValues.
1940 (WebKit::ProxyInstance::methodNamed): Use make_unique and get to deal with map entries
1941 that are unique_ptr. Also fixed a bug where this would do an expensive no-op if the map
1942 already had an entry with a null in it. We would call the plug-in, but eventually
1943 isNewEntry would be false so we would return null.
1944 (WebKit::ProxyInstance::fieldNamed): Use make_unique and get to deal with map entries
1945 that are unique_ptr.
1946
19472013-10-08 Darin Adler <darin@apple.com>
1948
darin@apple.com56e7a232013-10-08 07:45:46 +00001949 Change NetscapePluginInstanceProxy::m_replies to use unique_ptr instead of deleteAllValues
1950 https://bugs.webkit.org/show_bug.cgi?id=122492
1951
1952 Reviewed by Andreas Kling.
1953
1954 * Plugins/Hosted/NetscapePluginHostManager.mm:
1955 (WebKit::NetscapePluginHostManager::instantiatePlugin): Use auto so this works with
1956 unique_ptr instead of auto_ptr.
1957 * Plugins/Hosted/NetscapePluginHostProxy.mm:
1958 (WKPCGetScriptableNPObjectReply): Use make_unique instead of using new directly.
1959 (WKPCBooleanReply): Ditto.
1960 (WKPCBooleanAndDataReply): Ditto.
1961 (WKPCInstantiatePluginReply): Ditto.
1962 * Plugins/Hosted/NetscapePluginInstanceProxy.h: Changed m_replies to map to unique_ptr
1963 instead of to a raw pointer.
1964 (WebKit::NetscapePluginInstanceProxy::setCurrentReply): Changed to take a unique_ptr
1965 instead of a raw pointer since this takes ownership of the pointer.
1966 (WebKit::NetscapePluginInstanceProxy::waitForReply): Changed to return a unique_ptr
1967 instead of a auto_ptr because that's better. Use unique_ptr inside the function
1968 too to avoid the need for an explicit delete.
1969 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1970 (WebKit::NetscapePluginInstanceProxy::~NetscapePluginInstanceProxy): Removed the call to
1971 deleteAllValues.
1972 (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Removed unneeded initialization
1973 of a local variable that was already set in all code paths.
1974 (WebKit::NetscapePluginInstanceProxy::wheelEvent): Use auto so this works with unique_ptr
1975 instead of auto_ptr.
1976 (WebKit::NetscapePluginInstanceProxy::print): Ditto.
1977 (WebKit::NetscapePluginInstanceProxy::snapshot): Ditto. Ditto.
1978 (WebKit::NetscapePluginInstanceProxy::processRequestsAndWaitForReply): Changed to return
1979 a unique_ptr. Also removed an unneeded assertion.
1980 (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): Use auto so this works
1981 with unique_ptr instead of auto_ptr.
1982
1983 * Plugins/Hosted/ProxyInstance.h: Changed return type of waitForReply to unique_ptr.
1984
1985 * Plugins/Hosted/ProxyInstance.mm:
1986 (WebKit::ProxyInstance::invoke): Use auto so this works with unique_ptr instead of auto_ptr.
1987 (WebKit::ProxyInstance::supportsInvokeDefaultMethod): Ditto.
1988 (WebKit::ProxyInstance::supportsConstruct): Ditto.
1989 (WebKit::ProxyInstance::getPropertyNames): Ditto.
1990 (WebKit::ProxyInstance::methodNamed): Ditto.
1991 (WebKit::ProxyInstance::fieldNamed): Ditto.
1992 (WebKit::ProxyInstance::fieldValue): Ditto.
1993 (WebKit::ProxyInstance::setFieldValue): Ditto.
1994
commit-queue@webkit.orgf2934962013-10-07 20:34:35 +000019952013-10-07 Sam Weinig <sam@webkit.org>
1996
1997 CTTE: Use references in and around DragController
1998 https://bugs.webkit.org/show_bug.cgi?id=122427
1999
2000 Reviewed by Andreas Kling.
2001
2002 * WebCoreSupport/WebDragClient.h:
2003 * WebCoreSupport/WebDragClient.mm:
2004 (WebDragClient::actionMaskForDrag):
2005 (WebDragClient::willPerformDragDestinationAction):
2006 (WebDragClient::willPerformDragSourceAction):
2007 (WebDragClient::startDrag):
2008 (WebDragClient::declareAndWriteDragImage):
2009 * WebView/WebFrame.mm:
2010 (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
2011 * WebView/WebHTMLView.mm:
2012 (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
2013 * WebView/WebView.mm:
2014 (-[WebView draggingEntered:]):
2015 (-[WebView draggingUpdated:]):
2016 (-[WebView draggingExited:]):
2017 (-[WebView performDragOperation:]):
2018
weinig@apple.comee87b2f2013-10-05 23:59:58 +000020192013-10-05 Sam Weinig <sam@webkit.org>
2020
weinig@apple.com65ea5f32013-10-06 19:18:54 +00002021 CTTE: Thread references through markup.h
2022 https://bugs.webkit.org/show_bug.cgi?id=122403
2023
2024 Reviewed by Darin Adler and Andreas Kling.
2025
2026 * DOM/WebDOMOperations.mm:
2027 (-[DOMNode markupString]):
2028 (-[DOMRange markupString]):
2029 * WebView/WebFrame.mm:
2030 (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
2031 (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
2032
20332013-10-05 Sam Weinig <sam@webkit.org>
2034
weinig@apple.comee87b2f2013-10-05 23:59:58 +00002035 CTTE: Pass DocumentWriter around as a reference
2036 https://bugs.webkit.org/show_bug.cgi?id=122396
2037
2038 Reviewed by Andreas Kling.
2039
2040 * WebView/WebFrame.mm:
2041 (-[WebFrame _canProvideDocumentSource]):
2042
ap@apple.com88d71322013-10-05 06:40:44 +000020432013-10-04 Alexey Proskuryakov <ap@apple.com>
2044
2045 Don't preflight spell checker when calling -setContinuousSpellCheckingEnabled repeatedly
2046 https://bugs.webkit.org/show_bug.cgi?id=122329
2047
2048 Reviewed by Darin Adler.
2049
2050 * WebView/WebView.mm: (-[WebView setContinuousSpellCheckingEnabled:]): Don't do any
2051 work if preference didn't change (continuousSpellCheckingEnabled is a static that
2052 starts with false).
2053
andersca@apple.com61e33322013-10-05 04:52:04 +000020542013-10-04 Anders Carlsson <andersca@apple.com>
2055
2056 FramePolicyFunction should be an std::function
2057 https://bugs.webkit.org/show_bug.cgi?id=122362
2058
2059 Reviewed by Darin Adler.
2060
2061 * WebCoreSupport/WebFrameLoaderClient.h:
2062 * WebCoreSupport/WebFrameLoaderClient.mm:
2063 (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2064 (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2065 (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2066 (WebFrameLoaderClient::dispatchWillSubmitForm):
2067
mark.lam@apple.comaf032dd2013-10-05 00:51:31 +000020682013-10-04 Mark Lam <mark.lam@apple.com>
2069
2070 Change ScriptDebugServer to use DebuggerCallFrame instead of JavaScriptCallFrame.
2071 https://bugs.webkit.org/show_bug.cgi?id=121969.
2072
2073 Reviewed by Geoffrey Garen.
2074
2075 1. Make JavaScriptCallFrame a thin shell around the DebuggerCallFrame.
2076 DebuggerCallFrame now tracks whether it is valid instead of needing
2077 JavaScriptCallFrame do it.
2078 2. ScriptDebugServer now only instantiates an DebuggerCallFrame when needed
2079 just before it pauses and calls back to its client, and then invalidates
2080 it immediately when the callback returns. Every subsequent callback to
2081 the client will use a new instance of the DebuggerCallFrame.
2082 3. Similarly, ScriptDebugServer now only creates a JavaScriptCallFrame when
2083 it "pauses".
2084 4. DebuggerCallFrame only creates its caller DebuggerCallFrame when
2085 it is needed i.e. when the client calls callerFrame(). Similarly,
2086 JavaScriptCallFrame only creates its caller when it's requested.
2087 5. DebuggerCallFrame's line() and column() now returns a base-zero int.
2088 6. WebScriptDebugDelegate now only caches the functionName of the frame
2089 instead of the entire DebuggerCallFrame because that is all that is
2090 needed.
2091 7. Also removed evaluateInGlobalCallFrame() which is not used anywhere.
2092
2093 * WebView/WebScriptDebugDelegate.mm:
2094 (-[WebScriptCallFramePrivate dealloc]):
2095 (-[WebScriptCallFrame _initWithGlobalObject:functionName:exceptionValue:JSC::]):
2096 (-[WebScriptCallFrame functionName]):
2097 (-[WebScriptCallFrame exception]):
2098 * WebView/WebScriptDebugger.mm:
2099 (WebScriptDebugger::exception):
2100
andersca@apple.com3e56e962013-10-04 22:46:15 +000021012013-10-04 Anders Carlsson <andersca@apple.com>
2102
2103 Remove some unneeded code from WidgetMac
2104 https://bugs.webkit.org/show_bug.cgi?id=122355
2105
2106 Reviewed by Dan Bernstein.
2107
2108 Remove code to handle the visible rect changing, it's not needed anymore since we always put Netscape plug-ins into their own layers now.
2109
2110 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2111 * Plugins/WebBaseNetscapePluginView.h:
2112 * Plugins/WebBaseNetscapePluginView.mm:
2113
dbates@webkit.org05ddaa92013-10-04 22:41:11 +000021142013-10-04 Daniel Bates <dabates@apple.com>
2115
2116 [iOS] Upstream disk image cache
2117 https://bugs.webkit.org/show_bug.cgi?id=121985
2118
2119 Reviewed by Joseph Pecoraro.
2120
2121 * Misc/WebCache.mm:
2122 (+[WebCache statistics]):
2123 * WebView/WebDataSource.mm:
2124 (BufferMemoryMapped): Added.
2125 (-[WebDataSource _setAllowToBeMemoryMapped]): Added.
2126 (-[WebDataSource setDataSourceDelegate:]): Added.
2127 (-[WebDataSource dataSourceDelegate]): Added.
2128 (-[WebDataSource dealloc]):
2129 * WebView/WebDataSourcePrivate.h: Declared private delegate
2130 protocol, WebDataSourcePrivateDelegate.
2131 * WebView/WebPreferenceKeysPrivate.h:
2132 * WebView/WebPreferences.mm:
2133 (+[WebPreferences initialize]):
2134 (-[WebPreferences diskImageCacheEnabled]): Added.
2135 (-[WebPreferences setDiskImageCacheEnabled:]): Added.
2136 (-[WebPreferences diskImageCacheMinimumImageSize]): Added.
2137 (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Added.
2138 (-[WebPreferences diskImageCacheMaximumCacheSize]): Added.
2139 (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Added.
2140 (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Added.
2141 (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Added.
2142 * WebView/WebView.mm:
2143 (-[WebView _commonInitializationWithFrameName:groupName:]):
2144 (-[WebView _preferencesChanged:]):
2145
andersca@apple.comab351292013-10-04 15:26:44 +000021462013-10-04 Anders Carlsson <andersca@apple.com>
2147
2148 Remove WebAssertions.h
2149 https://bugs.webkit.org/show_bug.cgi?id=122328
2150
2151 Reviewed by Jessie Berlin.
2152
2153 * Misc/WebAssertions.h: Removed.
2154
andersca@apple.com2ba84462013-10-04 04:38:29 +000021552013-10-03 Anders Carlsson <andersca@apple.com>
2156
2157 Remove WebNSNotificationCenterExtras
2158 https://bugs.webkit.org/show_bug.cgi?id=122316
2159
2160 Reviewed by Dan Bernstein.
2161
2162 Use dispatch_async to ensure that notifications are posted on the main thread.
2163
2164 * Misc/WebIconDatabase.mm:
2165 (-[WebIconDatabase _sendNotificationForURL:]):
2166 (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
2167 * Misc/WebNSNotificationCenterExtras.h: Removed.
2168 * Misc/WebNSNotificationCenterExtras.m: Removed.
2169
weinig@apple.comc10a5f72013-10-04 03:08:46 +000021702013-10-03 Sam Weinig <sam@webkit.org>
2171
2172 Remove shouldRubberBandInDirection from the WKBundlePageUIClient
2173 https://bugs.webkit.org/show_bug.cgi?id=122309
2174
2175 Reviewed by Andreas Kling.
2176
2177 * WebCoreSupport/WebChromeClient.h:
2178
andersca@apple.com7ec40e22013-10-03 22:15:08 +000021792013-10-03 Anders Carlsson <andersca@apple.com>
2180
2181 Ignore deprecation warnings
2182 https://bugs.webkit.org/show_bug.cgi?id=122302
2183
2184 Reviewed by Mark Rowe.
2185
2186 * Misc/WebIconDatabase.mm:
2187 (-[WebIconDatabase _scaleIcon:toSize:]):
2188 (webGetNSImage):
2189 * Misc/WebNSImageExtras.m:
2190 (-[NSImage _web_scaleToMaxSize:]):
2191 (-[NSImage _web_dissolveToFraction:]):
2192 * Misc/WebNSViewExtras.m:
2193 (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
2194 (-[NSView _web_convertRect:toView:]):
2195 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2196 (WebKit::NetscapePluginInstanceProxy::mouseEvent):
2197 * Plugins/Hosted/WebTextInputWindowController.m:
2198 (-[WebTextInputPanel _interpretKeyEvent:string:]):
2199 * Plugins/WebBaseNetscapePluginView.mm:
2200 (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
2201 * WebCoreSupport/WebDragClient.mm:
2202 (WebDragClient::startDrag):
2203 * WebInspector/WebNodeHighlight.mm:
2204 (-[WebNodeHighlight _computeHighlightWindowFrame]):
2205 * WebView/WebFullScreenController.mm:
2206 (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
2207 (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
2208 * WebView/WebHTMLView.mm:
2209 (+[WebHTMLView _postFlagsChangedEvent:]):
2210 (-[WebHTMLView _updateMouseoverWithFakeEvent]):
2211 (-[WebHTMLView _autoscroll]):
2212 (-[WebHTMLView mouseDown:]):
2213 (-[WebHTMLView mouseDragged:]):
2214 (-[WebHTMLView mouseUp:]):
2215 (-[WebHTMLView accessibilityHitTest:]):
2216 (-[WebHTMLView _executeSavedKeypressCommands]):
2217 (-[WebHTMLView attachRootLayer:]):
2218 (-[WebHTMLView textStorage]):
2219 (-[WebHTMLView _updateSelectionForInputManager]):
2220 * WebView/WebTextCompletionController.mm:
2221 (-[WebTextCompletionController _buildUI]):
2222 (-[WebTextCompletionController _placePopupWindow:]):
2223
weinig@apple.com8f716032013-10-02 17:03:09 +000022242013-10-01 Sam Weinig <sam@webkit.org>
2225
2226 CTTE: DOMWrapperWorlds should be passed around by reference
2227 https://bugs.webkit.org/show_bug.cgi?id=122206
2228
2229 Reviewed by Andreas Kling.
2230
2231 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2232 (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
2233 (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
2234 (WebKit::NetscapePluginInstanceProxy::evaluate):
2235 * WebCoreSupport/WebFrameLoaderClient.h:
2236 * WebCoreSupport/WebFrameLoaderClient.mm:
2237 * WebView/WebFrame.mm:
2238 (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
2239 (-[WebFrame _globalContextForScriptWorld:]):
2240 (-[WebFrame jsWrapperForNode:inScriptWorld:]):
2241 * WebView/WebScriptWorld.mm:
2242 (+[WebScriptWorld standardWorld]):
2243 (+[WebScriptWorld findOrCreateWorld:]):
2244 * WebView/WebScriptWorldInternal.h:
2245 * WebView/WebView.mm:
2246 (-[WebView _injectOutlookQuirksScript]):
2247 (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
2248 (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
2249 (+[WebView _removeUserScriptFromGroup:world:url:]):
2250 (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
2251 (+[WebView _removeUserScriptsFromGroup:world:]):
2252 (+[WebView _removeUserStyleSheetsFromGroup:world:]):
2253
weinig@apple.com7df82b32013-10-01 04:33:34 +000022542013-09-30 Sam Weinig <sam@webkit.org>
2255
2256 Remove support for DOMFileSystem
2257 https://bugs.webkit.org/show_bug.cgi?id=122137
2258
2259 Reviewed by Anders Carlsson.
2260
2261 * Configurations/FeatureDefines.xcconfig:
2262
benjamin@webkit.org32bbc4c2013-09-30 22:43:47 +000022632013-09-30 Benjamin Poulain <benjamin@webkit.org>
2264
2265 Remove the code guarded by STYLE_SCOPED
2266 https://bugs.webkit.org/show_bug.cgi?id=122123
2267
2268 Reviewed by Anders Carlsson.
2269
2270 * Configurations/FeatureDefines.xcconfig:
2271
mrowe@apple.com013b13b2013-09-30 18:09:55 +000022722013-09-30 Mark Rowe <mrowe@apple.com>
2273
2274 Fix the build when building against an SDK.
2275
2276 Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
2277 the compiler command lines. It can't know to do this for the system framework search paths
2278 we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
2279
2280 * Configurations/WebKit.xcconfig:
2281
mrowe@apple.comcd657cf2013-09-30 05:30:50 +000022822013-09-29 Mark Rowe <mrowe@apple.com>
2283
2284 Fix the Lion build.
2285
2286 Ensure that C++ and Objective-C++ files build with the right compiler flags.
2287
2288 * Configurations/WebKit.xcconfig:
2289
mrowe@apple.comc11deac2013-09-28 19:15:48 +000022902013-09-28 Mark Rowe <mrowe@apple.com>
2291
mrowe@apple.coma75e9222013-09-28 20:01:30 +00002292 Fix some failures with newer versions of clang.
2293
2294 Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
2295 usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
2296 as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
2297 flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
2298 in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
2299
2300 Reviewed by Dan Bernstein.
2301
2302 * Configurations/DebugRelease.xcconfig:
2303 * Configurations/WebKit.xcconfig:
2304
23052013-09-28 Mark Rowe <mrowe@apple.com>
2306
mrowe@apple.comc11deac2013-09-28 19:15:48 +00002307 Take Xcode's advice and enable some extra warnings.
2308
2309 Reviewed by Sam Weinig.
2310
2311 * Configurations/Base.xcconfig:
2312
darin@apple.com0e83ab12013-09-28 17:19:04 +000023132013-09-28 Darin Adler <darin@apple.com>
2314
2315 Add Frame::mainFrame and Frame::isMainFrame
2316 https://bugs.webkit.org/show_bug.cgi?id=122064
2317
2318 Reviewed by Andreas Kling.
2319
2320 * WebCoreSupport/WebFrameLoaderClient.mm:
2321 (WebFrameLoaderClient::canHandleRequest):
2322 (WebFrameLoaderClient::transitionToCommittedForNewPage):
2323 * WebView/WebFrameView.mm:
2324 (-[WebFrameView _install]):
2325 Call isMainFrame.
2326
mrowe@apple.com71c9e4d2013-09-28 10:25:30 +000023272013-09-28 Mark Rowe <mrowe@apple.com>
2328
2329 WebKit fails to build with newer versions of clang.
2330
2331 Reviewed by Sam Weinig.
2332
2333 * Carbon/HIWebView.mm: Remove an unused function.
2334 * History/BinaryPropertyList.cpp: #if a constant that's only used in 64-bit.
2335 * Misc/WebIconDatabase.mm: Remove two unused constants.
2336 * Plugins/WebBaseNetscapePluginView.mm: Remove an unused constant.
2337 * WebCoreSupport/WebEditorClient.mm: Ditto.
2338
enrica@apple.com38848ef2013-09-27 23:29:34 +000023392013-09-27 Enrica Casucci <enrica@apple.com>
2340
2341 Upstream changes to Pasteboard implementation for iOS.
2342 https://bugs.webkit.org/show_bug.cgi?id=121818
2343
2344 Reviewed by Benjamin Poulain.
2345
2346 * WebCoreSupport/WebPlatformStrategies.h:
2347 * WebCoreSupport/WebPlatformStrategies.mm:
2348 (WebPlatformStrategies::writeToPasteboard):
2349 (WebPlatformStrategies::getPasteboardItemsCount):
2350 (WebPlatformStrategies::readBufferFromPasteboard):
2351 (WebPlatformStrategies::readURLFromPasteboard):
2352 (WebPlatformStrategies::readStringFromPasteboard):
2353 (WebPlatformStrategies::changeCount):
2354
darin@apple.com5ffbb5c2013-09-27 16:39:41 +000023552013-09-26 Darin Adler <darin@apple.com>
2356
2357 rename KURL to URL
2358 https://bugs.webkit.org/show_bug.cgi?id=16214
2359
2360 Reviewed by Andreas Kling.
2361
2362 * many files: Renamed, using script.
2363
jer.noble@apple.comb8744b32013-09-27 16:05:05 +000023642013-09-06 Jer Noble <jer.noble@apple.com>
2365
2366 [Mac] Implement the media controls in JavaScript.
2367 https://bugs.webkit.org/show_bug.cgi?id=120895
2368
2369 Reviewed by Dean Jackson.
2370
2371 Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
2372
2373 * Configurations/FeatureDefines.xcconfig:
2374
darin@apple.comade301a2013-09-27 15:09:01 +000023752013-09-27 Darin Adler <darin@apple.com>
2376
2377 Add empty MainFrame class
2378 https://bugs.webkit.org/show_bug.cgi?id=121770
2379
2380 Reviewed by Andreas Kling.
2381
2382 * WebCoreSupport/WebDragClient.mm:
2383 * WebCoreSupport/WebInspectorClient.mm:
2384 * WebCoreSupport/WebPlatformStrategies.mm:
2385 * WebView/WebFrame.mm:
2386 * WebView/WebHTMLView.mm:
2387 * WebView/WebView.mm:
2388 Include MainFrame.h instead of Frame.h as needed.
2389
eric.carlson@apple.com01bf7ee2013-09-27 01:08:17 +000023902013-09-26 Eric Carlson <eric.carlson@apple.com>
2391
2392 [MediaStream] make MediaStream testable
2393 https://bugs.webkit.org/show_bug.cgi?id=121967
2394
2395 Reviewed by Dean Jackson.
2396
2397 * WebCoreSupport/WebUserMediaClient.h: Added.
2398 * WebCoreSupport/WebUserMediaClient.mm: Added.
2399
2400 * WebView/WebUIDelegatePrivate.h: Declare decidePolicyForUserMediaRequestFromOrigin:listener:
2401
2402 * WebView/WebView.mm:
2403 (-[WebView _commonInitializationWithFrameName:groupName:]): Register WebUserMediaClient.
2404 (-[WebView _setUserMediaClient:]): New.
2405 (-[WebView _userMediaClient]): New.
2406 * WebView/WebViewData.h:
2407 * WebView/WebViewPrivate.h:
2408
weinig@apple.comd721a972013-09-26 19:09:04 +000024092013-09-25 Sam Weinig <sam@webkit.org>
2410
2411 Pass a JSC::VM& to JS bindings object creation functions, rather than a JSC::ExecState*
2412 https://bugs.webkit.org/show_bug.cgi?id=121934
2413
2414 Reviewed by Geoffrey Garen.
2415
2416 * Plugins/Hosted/ProxyInstance.mm:
2417 (WebKit::ProxyInstance::newRuntimeObject):
2418 * Plugins/Hosted/ProxyRuntimeObject.h:
2419 (WebKit::ProxyRuntimeObject::create):
2420 * Plugins/Hosted/ProxyRuntimeObject.mm:
2421 (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2422 (WebKit::ProxyRuntimeObject::finishCreation):
2423
beidson@apple.combd83826e2013-09-26 04:15:56 +000024242013-09-25 Brady Eidson <beidson@apple.com>
2425
2426 Enable the IndexedDB build on Mac, but leave the feature non-functional
2427 https://bugs.webkit.org/show_bug.cgi?id=121918
2428
2429 Reviewed by Alexey Proskuryakov.
2430
2431 * Configurations/FeatureDefines.xcconfig:
2432
commit-queue@webkit.org88640ce2013-09-26 01:03:17 +000024332013-09-25 Commit Queue <commit-queue@webkit.org>
2434
2435 Unreviewed, rolling out r156432.
2436 http://trac.webkit.org/changeset/156432
2437 https://bugs.webkit.org/show_bug.cgi?id=121932
2438
2439 some integer conversion things that need brady to fix
2440 (Requested by thorton on #webkit).
2441
2442 * Configurations/FeatureDefines.xcconfig:
2443
beidson@apple.com86024232013-09-25 23:21:55 +000024442013-09-25 Brady Eidson <beidson@apple.com>
2445
2446 Enable the IndexedDB build on Mac, but leave the feature non-functional
2447 https://bugs.webkit.org/show_bug.cgi?id=121918
2448
2449 Reviewed by Alexey Proskuryakov.
2450
2451 * Configurations/FeatureDefines.xcconfig:
2452
bfulgham@apple.com234e0122013-09-25 22:18:34 +000024532013-09-25 Brent Fulgham <bfulgham@apple.com>
2454
2455 Refactor RuntimeEnabledFeatures as a Singleton.
2456 https://bugs.webkit.org/show_bug.cgi?id=121883.
2457
2458 Reviewed by Jer Noble.
2459
2460 * WebView/WebView.mm:
2461 (-[WebView _preferencesChanged:]): Use singleton accessor.
2462 (-[WebView _setDashboardBehavior:to:]): Ditto.
2463
beidson@apple.com613b2fb2013-09-25 20:58:30 +000024642013-09-25 Brady Eidson <beidson@apple.com>
2465
2466 FeatureDefine.xcconfig cleanup (They should all be identical).
2467 https://bugs.webkit.org/show_bug.cgi?id=121921
2468
2469 Reviewed by Mark Rowe.
2470
2471 * Configurations/FeatureDefines.xcconfig:
2472
mark.lam@apple.come72693d2013-09-24 23:52:57 +000024732013-09-24 Mark Lam <mark.lam@apple.com>
2474
2475 Change JSC debug hooks to pass a CallFrame* instead of a DebuggerCallFrame.
2476 https://bugs.webkit.org/show_bug.cgi?id=121867.
2477
2478 Reviewed by Geoffrey Garen.
2479
2480 * WebView/WebScriptDebugDelegate.mm:
2481 (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:exceptionValue:JSC::]):
2482 (-[WebScriptCallFrame exception]):
2483 * WebView/WebScriptDebugger.h:
2484 * WebView/WebScriptDebugger.mm:
2485 (WebScriptDebugger::exception):
2486
enrica@apple.com0c27b722013-09-24 19:35:30 +000024872013-09-24 Enrica Casucci <enrica@apple.com>
2488
2489 Upstream changes to Pasteboard implementation for iOS.
2490 https://bugs.webkit.org/show_bug.cgi?id=121818
2491
2492 Reviewed by Darin Adler.
2493
2494 * WebCoreSupport/WebPlatformStrategies.h:
2495 * WebCoreSupport/WebPlatformStrategies.mm:
2496 (WebPlatformStrategies::writeToPasteboard):
2497
mrowe@apple.coma8625302013-09-24 19:18:46 +000024982013-09-24 Mark Rowe <mrowe@apple.com>
2499
2500 <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
2501
2502 Reviewed by Dan Bernstein.
2503
2504 * Configurations/Base.xcconfig:
2505
mark.lam@apple.comfad38282013-09-22 07:34:49 +000025062013-09-21 Mark Lam <mark.lam@apple.com>
2507
2508 Remove unused code in WebKit/mac's WebScriptDebugDelegate.
2509 https://bugs.webkit.org/show_bug.cgi?id=121706.
2510
2511 Reviewed by Timothy Hatcher.
2512
2513 WebScriptDebugDelegate's didEnterCallFrame, willExecuteStatement,
2514 and willLeaveCallFrame are not in use. Removed them and all methods
2515 and fields used for supporting them.
2516
2517 * WebView/WebDelegateImplementationCaching.h:
2518 * WebView/WebScriptDebugDelegate.h:
2519 * WebView/WebScriptDebugDelegate.mm:
2520 (-[WebScriptCallFramePrivate dealloc]):
2521 (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:]):
2522 * WebView/WebScriptDebugger.h:
2523 (WebScriptDebugger::globalObject):
2524 (WebScriptDebugger::callEvent):
2525 (WebScriptDebugger::atStatement):
2526 (WebScriptDebugger::returnEvent):
2527 (WebScriptDebugger::willExecuteProgram):
2528 (WebScriptDebugger::didExecuteProgram):
2529 (WebScriptDebugger::didReachBreakpoint):
2530 * WebView/WebScriptDebugger.mm:
2531 (WebScriptDebugger::WebScriptDebugger):
2532 (WebScriptDebugger::exception):
2533 * WebView/WebView.mm:
2534 (-[WebView _cacheScriptDebugDelegateImplementations]):
2535
andersca@apple.com1895f482013-09-18 19:51:28 +000025362013-09-18 Anders Carlsson <andersca@apple.com>
2537
2538 RefPtrHashMap should work with move only types
2539 https://bugs.webkit.org/show_bug.cgi?id=121564
2540
2541 Reviewed by Andreas Kling.
2542
2543 * Plugins/Hosted/ProxyInstance.mm:
2544 (WebKit::ProxyInstance::methodNamed):
2545 (WebKit::ProxyInstance::fieldNamed):
2546
enrica@apple.com70fbd1e2013-09-17 17:20:03 +000025472013-09-16 Enrica Casucci <enrica@apple.com>
2548
2549 Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
2550 https://bugs.webkit.org/show_bug.cgi?id=121464
2551
2552 Reviewed by Darin Adler.
2553
2554 This method was only implemented in WebEditorClient.mm for Mac where it was
2555 calling a private delegate that is no longer in use.
2556
2557 * DefaultDelegates/WebDefaultEditingDelegate.m:
2558 * WebCoreSupport/WebEditorClient.h:
2559 * WebCoreSupport/WebEditorClient.mm:
2560 * WebView/WebEditingDelegatePrivate.h:
2561
andersca@apple.comb9b4add2013-09-13 23:05:52 +000025622013-09-13 Anders Carlsson <andersca@apple.com>
2563
2564 Use nullptr instead of 0 in calls to HashMap::add
2565 https://bugs.webkit.org/show_bug.cgi?id=121322
2566
2567 Reviewed by Sam Weinig.
2568
2569 * Plugins/Hosted/NetscapePluginHostManager.mm:
2570 (WebKit::NetscapePluginHostManager::hostForPlugin):
2571
mitz@apple.com266fd102013-09-13 21:38:55 +000025722013-09-13 Dan Bernstein <mitz@apple.com>
2573
2574 [mac WK1] Introduce WebViewWillCloseNotification
2575 https://bugs.webkit.org/show_bug.cgi?id=121321
2576
2577 Reviewed by Sam Weinig.
2578
2579 * WebKit.exp: Exported WebViewWillCloseNotification.
2580 * WebView/WebView.mm:
2581 (-[WebView _close]): Send WebViewWillCloseNotification before closing the WebView.
2582 * WebView/WebViewPrivate.h: Declared WebViewWillCloseNotification.
2583
timothy_horton@apple.com3c36a4b2013-09-13 10:08:36 +000025842013-09-13 Tim Horton <timothy_horton@apple.com>
2585
2586 REGRESSION (r155615): Lots of reftests fail with single line or single pixel differences
2587 https://bugs.webkit.org/show_bug.cgi?id=121245
2588
2589 Reviewed by Darin Adler.
2590
2591 Similar to https://bugs.webkit.org/show_bug.cgi?id=120963,
2592 we need to manually ensure that some pieces of persistent
2593 CoreGraphics state are restored after PDFKit changes them.
2594
2595 In this case, we bookend our restoration around the various
2596 _recursiveDisplay... functions that we also use in WebHTMLView.
2597
2598 * WebView/WebPDFView.mm:
2599 (-[WebPDFView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
2600 (-[WebPDFView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
2601 (-[WebPDFView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
2602 (-[WebPDFView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
2603
andersca@apple.comac6917c2013-09-12 19:52:04 +000026042013-09-12 Anders Carlsson <andersca@apple.com>
2605
2606 SharedBuffer::createNSData should return a RetainPtr<NSData>
2607 https://bugs.webkit.org/show_bug.cgi?id=121237
2608
2609 Reviewed by Darin Adler.
2610
2611 Update for WebCore changes. This also fixes a leak where we'd create an NSFileWrapper from NSData but never release the data.
2612
2613 * WebView/WebDataSource.mm:
2614 (-[WebDataSource data]):
2615 * WebView/WebHTMLRepresentation.mm:
2616 (-[WebHTMLRepresentation documentSource]):
2617 * WebView/WebHTMLView.mm:
2618 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
2619 * WebView/WebResource.mm:
2620 (-[WebResource encodeWithCoder:]):
2621 (-[WebResource data]):
2622
mark.lam@apple.com649480f2013-09-12 16:27:55 +000026232013-09-12 Mark Lam <mark.lam@apple.com>
2624
2625 Change debug hooks to pass sourceID and position info via the DebuggerCallFrame.
2626 https://bugs.webkit.org/show_bug.cgi?id=121214.
2627
2628 Reviewed by Geoffrey Garen.
2629
2630 * webview/WebScriptDebugger.h:
2631 * WebView/WebScriptDebugger.mm:
2632 (WebScriptDebugger::WebScriptDebugger):
2633 (WebScriptDebugger::callEvent):
2634 (WebScriptDebugger::atStatement):
2635 (WebScriptDebugger::returnEvent):
2636 (WebScriptDebugger::exception):
2637 (WebScriptDebugger::willExecuteProgram):
2638 (WebScriptDebugger::didExecuteProgram):
2639 (WebScriptDebugger::didReachBreakpoint):
2640
gyuyoung.kim@samsung.com29a26622013-09-11 08:02:57 +000026412013-09-11 Gyuyoung Kim <gyuyoung.kim@samsung.com>
2642
2643 Generate more HTML type checks and casting
2644 https://bugs.webkit.org/show_bug.cgi?id=121080
2645
2646 Reviewed by Andreas Kling.
2647
2648 Clean-up remained functions of HTML elements using auto-generated isFooElement(),
2649 and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
2650
2651 Besides this patch clean-up unnecessary checks which are being supported by
2652 auto-generated isFooElement().
2653
2654 No new tests, no behavior change.
2655
2656 * Plugins/WebPluginController.mm:
2657 * WebCoreSupport/WebChromeClient.mm:
2658 (WebChromeClient::supportsFullscreenForNode):
2659 * WebView/WebView.mm:
2660 (-[WebView _enterFullscreenForNode:WebCore::]):
2661
dbates@webkit.orgacb8f4f2013-09-11 02:39:05 +000026622013-09-10 Daniel Bates <dabates@apple.com>
2663
2664 [iOS] Upstream text autosizing
2665 https://bugs.webkit.org/show_bug.cgi?id=121111
2666
2667 Reviewed by Andy Estes and Sam Weinig.
2668
2669 * WebView/WebFrame.mm:
2670 (-[WebFrame resetTextAutosizingBeforeLayout]): Added.
2671 (-[WebFrame _setVisibleSize:]): Added.
2672 (-[WebFrame _setTextAutosizingWidth:]): Added.
2673 * WebView/WebFramePrivate.h:
2674 * WebView/WebPreferenceKeysPrivate.h:
2675 * WebView/WebPreferences.mm:
2676 (+[WebPreferences initialize]):
2677 (-[WebPreferences _setMinimumZoomFontSize:]): Added.
2678 (-[WebPreferences _minimumZoomFontSize]): Added.
2679
dino@apple.com2d7d8c02013-09-09 20:30:01 +000026802013-09-09 Dean Jackson <dino@apple.com>
2681
dino@apple.com1642b092013-09-10 01:27:23 +00002682 [WebGL] Allow multithreaded OpenGL contexts
2683 https://bugs.webkit.org/show_bug.cgi?id=121062
2684
2685 Reviewed by Simon Fraser.
2686
2687 Expose a new preference "multithreadedWebGLEnabled".
2688
2689 * WebView/WebPreferenceKeysPrivate.h:
2690 * WebView/WebPreferences.mm:
2691 (+[WebPreferences initialize]):
2692 (-[WebPreferences multithreadedWebGLEnabled]):
2693 (-[WebPreferences setMultithreadedWebGLEnabled:]):
2694 * WebView/WebPreferencesPrivate.h:
2695 * WebView/WebView.mm:
2696 (-[WebView _preferencesChanged:]):
2697
26982013-09-09 Dean Jackson <dino@apple.com>
2699
dino@apple.com2d7d8c02013-09-09 20:30:01 +00002700 Enable WebGL for OS X nightlies
2701 https://bugs.webkit.org/show_bug.cgi?id=121040
2702
2703 Reviewed by Beth Dakin.
2704
2705 * WebView/WebPreferences.mm:
2706 (+[WebPreferences initialize]): Set WebPreference to YES.
2707
rniwa@webkit.org55f28e52013-09-07 02:08:06 +000027082013-09-06 Ryosuke Niwa <rniwa@webkit.org>
2709
2710 Range::ownerDocument should return Document&
2711 https://bugs.webkit.org/show_bug.cgi?id=120908
2712
2713 Reviewed by Andreas Kling.
2714
2715 * WebView/WebPDFView.mm:
2716 (isFrameInRange):
2717
akling@apple.com41153f42013-09-06 00:35:00 +000027182013-09-05 Andreas Kling <akling@apple.com>
2719
2720 ScrollView::children() should return a reference.
2721 <https://webkit.org/b/120795>
2722
2723 Reviewed by Anders Carlsson.
2724
2725 * WebView/WebView.mm:
2726 (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
2727
mrowe@apple.com63990842013-09-05 00:49:56 +000027282013-09-04 Mark Rowe <mrowe@apple.com>
2729
2730 <https://webkit.org/b/120707> Make WebKit's localizable strings mechanism usable under ARC
2731
2732 WebKit's localizable strings mechanism is also used outside of WebKit so it needs to work
2733 both with and without ARC.
2734
2735 Reviewed by Anders Carlsson.
2736
2737 * Misc/WebLocalizableStrings.h: Mark the bundle member as unretained. This matches how the
2738 member is used within WebLocalizableStrings.mm.
2739
darin@apple.com7ee2f272013-09-02 18:55:05 +000027402013-09-02 Darin Adler <darin@apple.com>
2741
2742 [Mac] No need for HardAutorelease, which is same as CFBridgingRelease
2743 https://bugs.webkit.org/show_bug.cgi?id=120569
2744
2745 Reviewed by Andy Estes.
2746
2747 * Misc/WebNSFileManagerExtras.mm:
2748 (-[NSFileManager _webkit_startupVolumeName]): Removed some unneeded locals.
2749 Got rid of the pointless ref/leakRef/HardAutorelease dance, and replaced it
2750 with a [[x copy] autorelease].
2751
2752 * Misc/WebNSURLExtras.mm:
2753 (-[NSURL _web_URLWithLowercasedScheme]): Use CFBridgingRelease, and got rid
2754 of unneeded type casts.
2755
2756 * Plugins/WebBasePluginPackage.mm:
2757 (+[WebBasePluginPackage preferredLocalizationName]): Use CFBridgingRelease.
2758 * WebView/WebPDFRepresentation.mm:
2759 (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Ditto.
2760
2761 * WebView/WebView.mm:
2762 (+[WebView _setCacheModel:]): Use CFBridgingRelease and got rid of unneeded
2763 type cast.
2764
antti@apple.com12e3b732013-08-30 09:29:05 +000027652013-08-30 Antti Koivisto <antti@apple.com>
2766
2767 Remove code behind ENABLE(DIALOG_ELEMENT)
2768 https://bugs.webkit.org/show_bug.cgi?id=120467
2769
2770 Reviewed by Darin Adler.
2771
2772 * Configurations/FeatureDefines.xcconfig:
2773
weinig@apple.comb7188852013-08-29 22:54:38 +000027742013-08-29 Sam Weinig <sam@webkit.org>
2775
2776 Add ENABLE gaurds for Promises
2777 https://bugs.webkit.org/show_bug.cgi?id=120488
2778
2779 Reviewed by Andreas Kling.
2780
2781 * Configurations/FeatureDefines.xcconfig:
2782
joepeck@webkit.orge061c7f2013-08-29 18:58:39 +000027832013-08-29 Joseph Pecoraro <pecoraro@apple.com>
2784
2785 Web Inspector: Download Web Archive of Inspected Page
2786 https://bugs.webkit.org/show_bug.cgi?id=119774
2787
2788 Reviewed by Timothy Hatcher.
2789
2790 Update to support InspectorFrontendHost.save's new base64Encoded
2791 parameter. It means the incoming content is binary data, not a string.
2792
2793 * WebCoreSupport/WebInspectorClient.h:
2794 * WebCoreSupport/WebInspectorClient.mm:
2795 (WebInspectorFrontendClient::save):
2796
commit-queue@webkit.org3f922f92013-08-29 00:28:42 +000027972013-08-28 Chris Curtis <chris_curtis@apple.com>
2798
2799 https://bugs.webkit.org/show_bug.cgi?id=119548
2800 Refactoring Exception throws.
2801
2802 Reviewed by Geoffrey Garen.
2803
2804 Moved setting an exception into the vm, These functions changed to use the new functionality.
2805
2806 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2807 (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
2808 * Plugins/Hosted/ProxyInstance.mm:
2809 (WebKit::ProxyInstance::invokeMethod):
2810
andersca@apple.come0c781592013-08-27 21:38:12 +000028112013-08-27 Anders Carlsson <andersca@apple.com>
2812
2813 Fix build.
2814
2815 * Plugins/Hosted/ProxyInstance.h:
2816 * Plugins/Hosted/ProxyInstance.mm:
2817 (WebKit::ProxyInstance::methodNamed):
2818 (WebKit::ProxyInstance::fieldNamed):
2819
aestes@apple.coma8726542013-08-26 22:40:55 +000028202013-08-23 Andy Estes <aestes@apple.com>
2821
2822 Fix issues found by the Clang Static Analyzer
2823 https://bugs.webkit.org/show_bug.cgi?id=120230
2824
2825 Reviewed by Darin Adler.
2826
2827 * Misc/WebNSFileManagerExtras.mm:
2828 (-[NSFileManager _webkit_startupVolumeName]): Used HardAutorelease()
2829 instead of WebCFAutorelease().
2830 * Misc/WebNSObjectExtras.h: Removed definition of WebCFAutorelease().
2831 * Misc/WebNSURLExtras.mm:
2832 (-[NSURL _web_URLWithLowercasedScheme]): Used HardAutorelease()
2833 instead of WebCFAutorelease().
2834 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2835 (-[WebHostedNetscapePluginView createPluginLayer]): Stop leaking
2836 CGColors (CALayer retains its backgroundColor property despite the
2837 property attributes claiming otherwise).
2838 * Plugins/WebBasePluginPackage.mm:
2839 (+[WebBasePluginPackage preferredLocalizationName]): Used
2840 HardAutorelease() instead of WebCFAutorelease().
2841 * WebView/WebDeviceOrientationProviderMock.mm:
2842 (-[WebDeviceOrientationProviderMockInternal lastOrientation]): Stop
2843 leaking WebDeviceOrientations.
2844 * WebView/WebPDFRepresentation.mm:
2845 (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Used
2846 HardAutorelease() instead of WebCFAutorelease().
2847 * WebView/WebView.mm:
2848 (+[WebView _setCacheModel:]): Ditto.
2849 (-[WebView _removeObjectForIdentifier:]): Ditto.
2850
ap@apple.com430f15b2013-08-26 21:11:12 +000028512013-08-26 Alexey Proskuryakov <ap@apple.com>
2852
2853 [Mac] can-read-in-dragstart-event.html and can-read-in-copy-and-cut-events.html fail
2854 https://bugs.webkit.org/show_bug.cgi?id=113094
2855
2856 Reviewed by Darin Adler.
2857
2858 Return new pasteboard change count from all functions that change it.
2859
2860 * WebCoreSupport/WebPlatformStrategies.h:
2861 * WebCoreSupport/WebPlatformStrategies.mm:
2862 (WebPlatformStrategies::copy):
2863 (WebPlatformStrategies::changeCount):
2864 (WebPlatformStrategies::addTypes):
2865 (WebPlatformStrategies::setTypes):
2866 (WebPlatformStrategies::setBufferForType):
2867 (WebPlatformStrategies::setPathnamesForType):
2868 (WebPlatformStrategies::setStringForType):
2869
akling@apple.com8e830e42013-08-26 17:54:33 +000028702013-08-26 Andreas Kling <akling@apple.com>
2871
akling@apple.comccc2ab72013-08-26 18:18:57 +00002872 Unreviewed build fix.
2873
2874 * WebView/WebFrame.mm:
2875 (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
2876
28772013-08-26 Andreas Kling <akling@apple.com>
2878
akling@apple.com8e830e42013-08-26 17:54:33 +00002879 WebCore: Let Page create the main Frame.
2880 <https://webkit.org/b/119964>
2881
2882 Reviewed by Anders Carlsson.
2883
2884 * WebCoreSupport/WebFrameLoaderClient.h:
2885 (WebFrameLoaderClient::setWebFrame):
2886
2887 Make it possible to construct a WebFrameLoaderClient with a null WebFrame*.
2888 A WebFrame* is later hooked up with a call to setWebFrame().
2889
2890 * WebView/WebFrame.mm:
2891 (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
2892
2893 Customized this method to wrap the Page::mainFrame() instead of creating a
2894 new Frame.
2895
2896 * WebView/WebView.mm:
2897 (-[WebView _commonInitializationWithFrameName:groupName:]):
2898
2899 Add a WebFrameLoaderClient to the PageClients passed to Page().
2900
darin@apple.com70055d62013-08-25 10:15:43 +000029012013-08-25 Darin Adler <darin@apple.com>
2902
2903 Frame should not have a documentTypeString member function
2904 https://bugs.webkit.org/show_bug.cgi?id=120262
2905
2906 Reviewed by Andreas Kling.
2907
2908 * WebView/WebFrame.mm: Removed _stringWithDocumentTypeStringAndMarkupString:
2909 internal method, which was not used anywhere in WebKit. Internal methods are
2910 only for use within WebKit, as opposed to public and private methods that can
2911 be used outside.
2912 * WebView/WebFrameInternal.h: Ditto.
2913
darin@apple.comfed4d162013-08-25 02:28:06 +000029142013-08-24 Darin Adler <darin@apple.com>
2915
2916 Frame::tree should return a reference instead of a pointer
2917 https://bugs.webkit.org/show_bug.cgi?id=120259
2918
2919 Reviewed by Andreas Kling.
2920
2921 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2922 (WebKit::NetscapePluginInstanceProxy::performRequest):
2923 * Plugins/WebBaseNetscapePluginView.mm:
2924 (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]):
2925 * Plugins/WebNetscapePluginView.mm:
2926 (-[WebNetscapePluginView loadPluginRequest:]):
2927 * WebCoreSupport/WebFrameLoaderClient.mm:
2928 (applyAppleDictionaryApplicationQuirkNonInlinePart):
2929 (WebFrameLoaderClient::prepareForDataSourceReplacement):
2930 (WebFrameLoaderClient::createFrame):
2931 * WebView/WebFrame.mm:
2932 (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
2933 (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
2934 (-[WebFrame _unmarkAllBadGrammar]):
2935 (-[WebFrame _unmarkAllMisspellings]):
2936 (-[WebFrame _atMostOneFrameHasSelection]):
2937 (-[WebFrame _findFrameWithSelection]):
2938 (-[WebFrame _drawRect:contentsOnly:]):
2939 (-[WebFrame _isDescendantOfFrame:]):
2940 (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
2941 (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
2942 (-[WebFrame name]):
2943 (-[WebFrame findFrameNamed:]):
2944 (-[WebFrame parentFrame]):
2945 (-[WebFrame childFrames]):
2946 * WebView/WebView.mm:
2947 (-[WebView _attachScriptDebuggerToAllFrames]):
2948 (-[WebView _detachScriptDebuggerFromAllFrames]):
2949 (-[WebView _clearMainFrameName]):
2950 (-[WebView _isUsingAcceleratedCompositing]):
2951 (-[WebView _isSoftwareRenderable]):
2952 (-[WebView setHostWindow:]):
2953 (incrementFrame):
2954 Use tree(). instead of tree()->.
2955
bdakin@apple.coma1231c32013-08-23 22:57:07 +000029562013-08-23 Beth Dakin <bdakin@apple.com>
2957
2958 REGRESSION (r132545): Some PDFs generated by WebKit are blank when viewed in
2959 Adobe Reader
2960 https://bugs.webkit.org/show_bug.cgi?id=120240
2961 -and corresponding-
2962 <rdar://problem/14634453>
2963
2964 Reviewed by Anders Carlsson.
2965
2966 Hook up new WebSystemInterface API to find out if the current context is the PDF
2967 context.
2968
2969 * WebCoreSupport/WebSystemInterface.mm:
2970 (InitWebCoreSystemInterface):
2971
psolanki@apple.com469f39e2013-08-20 18:59:17 +000029722013-08-20 Pratik Solanki <psolanki@apple.com>
2973
2974 <https://webkit.org/b/120029> Document::markers() should return a reference
2975
2976 Reviewed by Andreas Kling.
2977
2978 Document::m_markers is never NULL so return a reference from Document::markers(). Also mark
2979 m_markers as const and initialize it in member initialization.
2980
2981 * WebView/WebFrame.mm:
2982 (-[WebFrame _unmarkAllBadGrammar]):
2983 (-[WebFrame _unmarkAllMisspellings]):
2984 * WebView/WebHTMLView.mm:
2985 (-[WebHTMLView unmarkAllTextMatches]):
2986 (-[WebHTMLView rectsForTextMatches]):
2987
rniwa@webkit.org70b7f392013-08-20 05:34:46 +000029882013-08-19 Ryosuke Niwa <rniwa@webkit.org>
2989
rniwa@webkit.org3feac412013-08-20 06:12:39 +00002990 <https://webkit.org/b/120049> Delete code for Snow Leopard
2991
2992 Reviewed by Benjamin Poulain.
2993
2994 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2995 (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
2996 (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
2997 * Misc/WebNSControlExtras.m:
2998 (-[NSControl sizeToFitAndAdjustWindowHeight]):
2999 * Misc/WebNSFileManagerExtras.mm:
3000 * WebCoreSupport/WebEditorClient.mm:
3001 (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
3002 (WebEditorClient::getGuessesForWord):
3003 * WebCoreSupport/WebFrameLoaderClient.mm:
3004 (WebFrameLoaderClient::dispatchDidLayout):
3005 (WebFrameLoaderClient::provisionalLoadStarted):
3006 * WebCoreSupport/WebSystemInterface.mm:
3007 (InitWebCoreSystemInterface):
3008 * WebKitPrefix.h:
3009 * WebView/WebDynamicScrollBarsView.mm:
3010 (-[WebDynamicScrollBarsView scrollWheel:]):
3011 * WebView/WebFullScreenController.mm:
3012 (convertRectToScreen):
3013 (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
3014 (-[WebFullScreenController exitFullScreen]):
3015 * WebView/WebHTMLView.mm:
3016 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
3017 (-[WebHTMLView removeMouseMovedObserver]):
3018 (-[WebHTMLView windowDidBecomeKey:]):
3019 (-[WebHTMLView windowDidResignKey:]):
3020 * WebView/WebView.mm:
3021 (-[WebView _deviceScaleFactor]):
3022
30232013-08-19 Ryosuke Niwa <rniwa@webkit.org>
3024
rniwa@webkit.org70b7f392013-08-20 05:34:46 +00003025 <https://webkit.org/b/120051> Remove the Mail thread workaround
3026
3027 Reviewed by Sam Weinig.
3028
3029 Remove the workaround for a very old version of Mail added in r39455.
3030
3031 * WebView/WebArchive.mm:
3032 (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
3033 (-[WebArchive mainResource]):
3034 (-[WebArchive subresources]):
3035 (-[WebArchive subframeArchives]):
3036 * WebView/WebFrameView.mm:
3037 (-[WebFrameView initWithFrame:]):
3038 * WebView/WebResource.mm:
3039 (-[WebResource data]):
3040 (-[WebResource URL]):
3041 (-[WebResource MIMEType]):
3042 (-[WebResource textEncodingName]):
3043 (-[WebResource frameName]):
3044 (-[WebResource _ignoreWhenUnarchiving]):
3045 (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
3046 (-[WebResource _suggestedFilename]):
3047 (-[WebResource _response]):
3048 (-[WebResource _stringValue]):
3049
psolanki@apple.com87ae63d2013-08-19 18:09:12 +000030502013-08-19 Pratik Solanki <psolanki@apple.com>
3051
3052 <https://webkit.org/b/119918> Frame::selection() should return a reference
3053
3054 Reviewed by Darin Adler.
3055
3056 m_selection is never NULL so return a reference from Frame::selection(). Also removed some
3057 unnecessary null checks and assert diff ts exposed as a result.
3058
3059 * Plugins/WebPluginController.mm:
3060 * WebView/WebFrame.mm:
3061 (-[WebFrame _hasSelection]):
3062 (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
3063 (-[WebFrame _selectionGranularity]):
3064 (-[WebFrame _convertToNSRange:]):
3065 (-[WebFrame _convertToDOMRange:]):
3066 (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
3067 (-[WebFrame _typingStyle]):
3068 (-[WebFrame _selectedNSRange]):
3069 (-[WebFrame _selectNSRange:]):
3070 (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
3071 (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
3072 * WebView/WebHTMLRepresentation.mm:
3073 (-[WebHTMLRepresentation currentForm]):
3074 * WebView/WebHTMLView.mm:
3075 (-[WebHTMLView readSelectionFromPasteboard:]):
3076 (-[WebHTMLView _selectedRange]):
3077 (-[WebHTMLView _hasSelection]):
3078 (-[WebHTMLView _hasSelectionOrInsertionPoint]):
3079 (-[WebHTMLView _hasInsertionPoint]):
3080 (-[WebHTMLView _isEditable]):
3081 (-[WebHTMLView jumpToSelection:]):
3082 (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
3083 (-[WebHTMLView maintainsInactiveSelection]):
3084 (isTextInput):
3085 (isInPasswordField):
3086 (-[WebHTMLView centerSelectionInVisibleArea:]):
3087 (-[WebHTMLView _canSmartCopyOrDelete]):
3088 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
3089 (-[WebHTMLView _updateSelectionForInputManager]):
3090 (-[WebHTMLView selectionRect]):
3091 (-[WebHTMLView selectionTextRects]):
3092 (-[WebHTMLView selectionImageRect]):
3093 (-[WebHTMLView selectAll]):
3094 (-[WebHTMLView deselectAll]):
3095 (-[WebHTMLView selectedAttributedString]):
3096 * WebView/WebTextCompletionController.mm:
3097 (-[WebTextCompletionController doCompletion]):
3098 * WebView/WebView.mm:
3099 (-[WebView setSelectedDOMRange:affinity:]):
3100 (-[WebView selectedDOMRange]):
3101 (-[WebView selectionAffinity]):
3102 (-[WebView setEditable:]):
3103 (-[WebView _selectionIsCaret]):
3104 (-[WebView _selectionIsAll]):
3105
darin@apple.coma5e48bb2013-08-17 14:27:20 +000031062013-08-17 Darin Adler <darin@apple.com>
3107
3108 <https://webkit.org/b/119941> Make Page::dragController return a reference
3109
3110 Reviewed by Andreas Kling.
3111
3112 * WebView/WebFrameView.mm:
3113 (-[WebFrameView _setDocumentView:]):
3114 * WebView/WebHTMLView.mm:
3115 (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
3116 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
3117 * WebView/WebView.mm:
3118 (-[WebView _setInitiatedDrag:]):
3119 (-[WebView draggingEntered:]):
3120 (-[WebView draggingUpdated:]):
3121 (-[WebView draggingExited:]):
3122 (-[WebView performDragOperation:]):
3123 (-[WebView moveDragCaretToPoint:]):
3124 (-[WebView removeDragCaret]):
3125 Updated call sites.
3126
psolanki@apple.comc5b5dad2013-08-16 17:55:32 +000031272013-08-16 Pratik Solanki <psolanki@apple.com>
3128
3129 <https://webkit.org/b/119852> Frame::scriptController() should return a reference
3130
3131 Reviewed by Andreas Kling.
3132
3133 m_script is never NULL so we can just return a reference. Also remove some pointless null
3134 checks as a result of doing this.
3135
3136 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3137 (WebKit::NetscapePluginInstanceProxy::cleanup):
3138 (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
3139 (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
3140 (WebKit::NetscapePluginInstanceProxy::evaluate):
3141 (WebKit::NetscapePluginInstanceProxy::invoke):
3142 (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3143 (WebKit::NetscapePluginInstanceProxy::construct):
3144 (WebKit::NetscapePluginInstanceProxy::getProperty):
3145 (WebKit::NetscapePluginInstanceProxy::setProperty):
3146 (WebKit::NetscapePluginInstanceProxy::removeProperty):
3147 (WebKit::NetscapePluginInstanceProxy::hasProperty):
3148 (WebKit::NetscapePluginInstanceProxy::hasMethod):
3149 (WebKit::NetscapePluginInstanceProxy::enumerate):
3150 (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
3151 * Plugins/WebNetscapePluginView.mm:
3152 (-[WebNetscapePluginView getVariable:value:]):
3153 (-[WebNetscapePluginView _destroyPlugin]):
3154 * Plugins/WebPluginController.mm:
3155 * WebCoreSupport/WebFrameLoaderClient.mm:
3156 * WebCoreSupport/WebInspectorClient.mm:
3157 (WebInspectorFrontendClient::save):
3158 (WebInspectorFrontendClient::append):
3159 * WebView/WebFrame.mm:
3160 (-[WebFrame _attachScriptDebugger]):
3161 (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
3162 (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
3163 (-[WebFrame _globalContextForScriptWorld:]):
3164 (-[WebFrame jsWrapperForNode:inScriptWorld:]):
3165 (-[WebFrame windowObject]):
3166 (-[WebFrame globalContext]):
3167 (-[WebFrame javaScriptContext]):
3168 * WebView/WebScriptDebugger.mm:
3169 (WebScriptDebugger::initGlobalCallFrame):
3170 (WebScriptDebugger::callEvent):
3171 * WebView/WebView.mm:
3172 (-[WebView windowScriptObject]):
3173 (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
3174
andersca@apple.com48482fb2013-08-15 18:50:48 +000031752013-08-15 Anders Carlsson <andersca@apple.com>
3176
andersca@apple.comdf550b92013-08-15 22:17:17 +00003177 <https://webkit.org/b/119859> Frame::loader() should return a reference
3178
3179 Reviewed by Andreas Kling.
3180
3181 * Plugins/Hosted/HostedNetscapePluginStream.mm:
3182 (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
3183 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3184 (WebKit::NetscapePluginInstanceProxy::performRequest):
3185 (WebKit::NetscapePluginInstanceProxy::loadRequest):
3186 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3187 (-[WebHostedNetscapePluginView pluginView:receivedResponse:]):
3188 * Plugins/WebBaseNetscapePluginView.mm:
3189 (-[WebBaseNetscapePluginView requestWithURLCString:]):
3190 * Plugins/WebNetscapePluginStream.mm:
3191 (WebNetscapePluginStream::WebNetscapePluginStream):
3192 * Plugins/WebNetscapePluginView.mm:
3193 (-[WebNetscapePluginView loadStream]):
3194 (-[WebNetscapePluginView pluginView:receivedResponse:]):
3195 (-[WebNetscapePluginView loadPluginRequest:]):
3196 (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
3197 * Plugins/WebPluginController.mm:
3198 * WebCoreSupport/WebFrameLoaderClient.mm:
3199 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
3200 (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
3201 (WebFrameLoaderClient::dispatchWillSubmitForm):
3202 (WebFrameLoaderClient::updateGlobalHistory):
3203 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
3204 (WebFrameLoaderClient::restoreViewState):
3205 (WebFrameLoaderClient::transitionToCommittedForNewPage):
3206 (WebFrameLoaderClient::createFrame):
3207 * WebCoreSupport/WebFrameNetworkingContext.mm:
3208 (WebFrameNetworkingContext::blockedError):
3209 * WebCoreSupport/WebPlatformStrategies.mm:
3210 (WebPlatformStrategies::getPluginInfo):
3211 * WebView/WebFrame.mm:
3212 (kit):
3213 (-[WebFrame _dataSource]):
3214 (-[WebFrame _canProvideDocumentSource]):
3215 (-[WebFrame _commitData:]):
3216 (-[WebFrame _firstLayoutDone]):
3217 (-[WebFrame _loadType]):
3218 (-[WebFrame _cacheabilityDictionary]):
3219 (-[WebFrame _clearOpener]):
3220 (-[WebFrame provisionalDataSource]):
3221 (-[WebFrame dataSource]):
3222 (-[WebFrame loadRequest:]):
3223 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
3224 (-[WebFrame loadArchive:]):
3225 (-[WebFrame stopLoading]):
3226 (-[WebFrame reload]):
3227 (-[WebFrame reloadFromOrigin]):
3228 * WebView/WebHTMLRepresentation.mm:
3229 (-[WebHTMLRepresentation receivedData:withDataSource:]):
3230 * WebView/WebHTMLView.mm:
3231 (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
3232 * WebView/WebPDFView.mm:
3233 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3234 * WebView/WebRenderLayer.mm:
3235 (-[WebRenderLayer initWithWebFrame:]):
3236 * WebView/WebRenderNode.mm:
3237 (-[WebRenderNode _initWithCoreFrame:]):
3238 * WebView/WebView.mm:
3239 (-[WebView _close]):
3240 (-[WebView _loadBackForwardListFromOtherView:]):
3241 (-[WebView _cachedResponseForURL:]):
3242 (-[WebView setCustomTextEncodingName:]):
3243 (-[WebView shouldClose]):
3244
32452013-08-15 Anders Carlsson <andersca@apple.com>
3246
andersca@apple.com48482fb2013-08-15 18:50:48 +00003247 <https://webkit.org/b/119854> REGRESSION (r153379): Serious drawing issues with WebViews
3248 <rdar://problem/14698870>
3249
3250 Reviewed by Simon Fraser.
3251
3252 Don't set aside subviews if they have already been set aside.
3253
3254 * WebView/WebHTMLView.mm:
3255 (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
3256
eric.carlson@apple.come323d0c2013-08-15 18:48:27 +000032572013-08-15 Eric Carlson <eric.carlson@apple.com>
3258
3259 [Mac] Remove "legacy" media UI
3260 https://bugs.webkit.org/show_bug.cgi?id=119752
3261
3262 Reviewed by Jer Noble.
3263
3264 * WebCoreSupport/WebSystemInterface.mm:
3265 (InitWebCoreSystemInterface): Remove MediaControllerThemeAvailable.
3266
timothy_horton@apple.comc48a3042013-08-14 20:21:05 +000032672013-08-14 Tim Horton <timothy_horton@apple.com>
3268
timothy_horton@apple.com12551e32013-08-14 23:03:23 +00003269 Remotely hosted plugins don’t work in window-server-hosted WebKit1 views
3270 https://bugs.webkit.org/show_bug.cgi?id=119709
3271 <rdar://problem/14717572>
3272
3273 Reviewed by Anders Carlsson.
3274
3275 * Plugins/Hosted/NetscapePluginHostManager.h:
3276 Add hostLayersInWindowServer argument to instantiatePlugin.
3277
3278 * Plugins/Hosted/NetscapePluginHostManager.mm:
3279 (WebKit::NetscapePluginHostManager::instantiatePlugin):
3280 Add hostLayersInWindowServer argument to instantiatePlugin, and pass it through to WebKitPluginHost.
3281
3282 * Plugins/Hosted/NetscapePluginHostProxy.mm:
3283 (WKPCLayerHostingModeChanged):
3284 Forward the notification that the plugin host changed its layer hosting mode
3285 to the instance proxy.
3286
3287 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3288 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3289 (WebKit::NetscapePluginInstanceProxy::setShouldHostLayersInWindowServer):
3290 Ask the plugin host to re-host its layers when the layer hosting mode changes.
3291
3292 (WebKit::NetscapePluginInstanceProxy::layerHostingModeChanged):
3293 Inform the WebHostedNetscapePluginView of the new layer hosting mode
3294 when it changes. Also, store the new CAContext ID.
3295
3296 * Plugins/Hosted/WebHostedNetscapePluginView.h:
3297 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3298 (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
3299 Determine whether the WebView's current window uses window-server hosting for its layers.
3300
3301 (-[WebHostedNetscapePluginView createPlugin]):
3302 Drive-by spelling fix.
3303 Factor _pluginLayer initialization out into createPluginLayer.
3304 Instantiate the plugin with the appropriate layer hosting mode.
3305
3306 (-[WebHostedNetscapePluginView createPluginLayer]):
3307
3308 (-[WebHostedNetscapePluginView setHostsLayersInWindowServer:]):
3309 Create a new _pluginLayer if the layer hosting mode changes.
3310 Attach the new _pluginLayer to our parent layer.
3311
3312 (-[WebHostedNetscapePluginView updateAndSetWindow]):
3313 Inform the NetscapePluginInstanceProxy if the layer hosting mode changes,
3314 so it can inform the plugin host. We will asynchronously receive a reply
3315 with the new hosting mode and renderContextID and switch to the new CAContext,
3316 in setHostsLayersInWindowServer:.
3317
3318 * Plugins/Hosted/WebKitPluginClient.defs:
3319 * Plugins/Hosted/WebKitPluginHost.defs:
3320
33212013-08-14 Tim Horton <timothy_horton@apple.com>
3322
timothy_horton@apple.comc48a3042013-08-14 20:21:05 +00003323 REGRESSION (r153877): Plugin scanning slows creation of WebViews
3324 https://bugs.webkit.org/show_bug.cgi?id=119665
3325 <rdar://problem/14716549>
3326
3327 Reviewed by Darin Adler.
3328
3329 * Plugins/WebPluginDatabase.h:
3330 * Plugins/WebPluginDatabase.mm:
3331 (+[WebPluginDatabase sharedDatabaseIfExists]): Added.
3332
3333 * WebCoreSupport/WebPlatformStrategies.mm:
3334 (WebPlatformStrategies::refreshPlugins):
3335 Only refresh the plugin database if it's already been loaded.
3336
jer.noble@apple.come4c94d22013-08-14 16:19:21 +000033372013-08-14 Jer Noble <jer.noble@apple.com>
3338
3339 Revert r154019; causes >50 tests to fail on WebKit1 bots.
3340
3341 * Plugins/Hosted/NetscapePluginHostManager.h:
3342 * Plugins/Hosted/NetscapePluginHostManager.mm:
3343 (WebKit::NetscapePluginHostManager::instantiatePlugin):
3344 * Plugins/Hosted/NetscapePluginHostProxy.mm:
3345 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3346 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3347 * Plugins/Hosted/WebHostedNetscapePluginView.h:
3348 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3349 (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
3350 (-[WebHostedNetscapePluginView createPlugin]):
3351 (-[WebHostedNetscapePluginView updateAndSetWindow]):
3352 * Plugins/Hosted/WebKitPluginClient.defs:
3353 * Plugins/Hosted/WebKitPluginHost.defs:
3354
fpizlo@apple.com10ae2d02013-08-14 02:41:47 +000033552013-08-13 Filip Pizlo <fpizlo@apple.com>
3356
3357 Foo::s_info should be Foo::info(), so that you can change how the s_info is actually linked
3358 https://bugs.webkit.org/show_bug.cgi?id=119770
3359
3360 Reviewed by Mark Hahnenberg.
3361
3362 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3363 (WebKit::getObjectID):
3364 (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
3365 (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
3366 * Plugins/Hosted/ProxyInstance.mm:
3367 (WebKit::ProxyRuntimeMethod::finishCreation):
3368 (WebKit::ProxyInstance::invokeMethod):
3369 * Plugins/Hosted/ProxyRuntimeObject.h:
3370 (WebKit::ProxyRuntimeObject::createStructure):
3371 * WebView/WebView.mm:
3372 (aeDescFromJSValue):
3373
andersca@apple.com959c6db2013-08-14 00:12:59 +000033742013-08-13 Anders Carlsson <andersca@apple.com>
3375
3376 <https://webkit.org/b/119777> Get rid of two gotos
3377
3378 Reviewed by Tim Horton.
3379
3380 * WebView/WebHTMLView.mm:
3381 (-[WebHTMLView mouseDown:]):
3382 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
3383
timothy_horton@apple.com2ce08b12013-08-13 20:33:23 +000033842013-08-13 Tim Horton <timothy_horton@apple.com>
3385
3386 Remotely hosted plugins don’t work in window-server-hosted WebKit1 views
3387 https://bugs.webkit.org/show_bug.cgi?id=119709
3388 <rdar://problem/14717572>
3389
3390 Reviewed by Anders Carlsson.
3391
3392 * Plugins/Hosted/NetscapePluginHostManager.h:
3393 Add hostLayersInWindowServer argument to instantiatePlugin.
3394
3395 * Plugins/Hosted/NetscapePluginHostManager.mm:
3396 (WebKit::NetscapePluginHostManager::instantiatePlugin):
3397 Add hostLayersInWindowServer argument to instantiatePlugin, and pass it through to WebKitPluginHost.
3398
3399 * Plugins/Hosted/NetscapePluginHostProxy.mm:
3400 (WKPCLayerHostingModeChanged):
3401 Forward the notification that the plugin host changed its layer hosting mode
3402 to the instance proxy.
3403
3404 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3405 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3406 (WebKit::NetscapePluginInstanceProxy::setShouldHostLayersInWindowServer):
3407 Ask the plugin host to re-host its layers when the layer hosting mode changes.
3408
3409 (WebKit::NetscapePluginInstanceProxy::layerHostingModeChanged):
3410 Inform the WebHostedNetscapePluginView of the new layer hosting mode
3411 when it changes. Also, store the new CAContext ID.
3412
3413 * Plugins/Hosted/WebHostedNetscapePluginView.h:
3414 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3415 (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
3416 Determine whether the WebView's current window uses window-server hosting for its layers.
3417
3418 (-[WebHostedNetscapePluginView createPlugin]):
3419 Drive-by spelling fix.
3420 Factor _pluginLayer initialization out into createPluginLayer.
3421 Instantiate the plugin with the appropriate layer hosting mode.
3422
3423 (-[WebHostedNetscapePluginView createPluginLayer]):
3424
3425 (-[WebHostedNetscapePluginView setHostsLayersInWindowServer:]):
3426 Create a new _pluginLayer if the layer hosting mode changes.
3427 Attach the new _pluginLayer to our parent layer.
3428
3429 (-[WebHostedNetscapePluginView updateAndSetWindow]):
3430 Inform the NetscapePluginInstanceProxy if the layer hosting mode changes,
3431 so it can inform the plugin host. We will asynchronously receive a reply
3432 with the new hosting mode and renderContextID and switch to the new CAContext,
3433 in setHostsLayersInWindowServer:.
3434
3435 * Plugins/Hosted/WebKitPluginClient.defs:
3436 * Plugins/Hosted/WebKitPluginHost.defs:
3437
timothy_horton@apple.comc70f870b2013-08-09 06:44:27 +000034382013-08-08 Tim Horton <timothy_horton@apple.com>
3439
3440 navigator.plugins has plugins in it when plugins are disabled
3441 https://bugs.webkit.org/show_bug.cgi?id=119607
3442 <rdar://problem/14678030>
3443
3444 Reviewed by Anders Carlsson.
3445
3446 * WebCoreSupport/WebPlatformStrategies.mm:
3447 (WebPlatformStrategies::getPluginInfo):
3448 If plugins are disabled for the given page, give WebCore an empty list of
3449 plugins. If WebKit1 had any application plugins, we'd return just them
3450 instead.
3451
slewis@apple.com64cd50b2013-08-07 02:41:27 +000034522013-08-06 Stephanie Lewis <slewis@apple.com>
3453
3454 Update Order Files for Safari
3455 <rdar://problem/14517392>
3456
3457 Unreviewed.
3458
3459 * WebKit.order:
3460
weinig@apple.comb49e18e2013-08-06 23:22:53 +000034612013-08-04 Sam Weinig <sam@webkit.org>
3462
3463 Remove support for HTML5 MicroData
3464 https://bugs.webkit.org/show_bug.cgi?id=119480
3465
3466 Reviewed by Anders Carlsson.
3467
3468 * Configurations/FeatureDefines.xcconfig:
3469
dfarler@apple.com5bb6d5ef52013-08-06 17:43:57 +000034702013-07-23 David Farler <dfarler@apple.com>
3471
3472 Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
3473 https://bugs.webkit.org/show_bug.cgi?id=117762
3474
3475 Reviewed by Mark Rowe.
3476
3477 * Configurations/DebugRelease.xcconfig:
3478 Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS, LDFLAGS.
3479 * Configurations/WebKit.xcconfig:
3480 Add ASAN_OTHER_LDFLAGS.
3481
mrowe@apple.come6021b92013-08-06 02:53:49 +000034822013-07-26 Mark Rowe <mrowe@apple.com>
3483
3484 Logging should be configurable using human-readable channel names rather than crazy bitmasks
3485 <http://webkit.org/b/119031>
3486
3487 Implement shared logic for initializing logging channels based on human-readable channel names in WTF,
3488 and rework the WebCore, WebKit and WebKit2 logging initialization on top of it.
3489
3490 Logging channels may now be enabled by providing a comma-separated list of channel names, with the special
3491 "all" name enabling all channels. Channel names prefixed with a leading "-" will result in the named channel
3492 being disabled. For instance, specifying "all,-history,-loading" will result in all logging channels except
3493 for history and loading being enabled.
3494
3495 For OS X developers, this also changes the name of the user defaults used to enable logging. This is done to allow
3496 the old user defaults to remain set for those people that need to switch between version of WebKit before and
3497 after this change. Where the old user default keys were WebCoreLogLevel, WebKitLogLevel and WebKit2LogLevel,
3498 the new user default keys are WebCoreLogging, WebKitLogging and WebKit2Logging.
3499
3500 For GTK developers, this changes the separator used in the WEBKIT_DEBUG environment variable to a comma for
3501 consistency with the other platforms and to enable more code sharing.
3502
3503 While doing this work I've also taken the opportunity to eliminate the need to touch multiple files when
3504 adding a new logging channel. Now only the header in the relevant project needs to be updated.
3505
3506 Reviewed by Sam Weinig.
3507
3508 * Misc/WebKitLogging.h: Declare a WEBKIT_LOG_CHANNELS macro that can be used to apply a preprocessor macro
3509 across the set of all logging channels. Use this macro to declare the logging channels.
3510 * Misc/WebKitLogging.m: Use WEBKIT_LOG_CHANNELS to define all of the channels. Pass the channels and the
3511 preference value to the new WTF function that handles the initialization.
3512 * WebView/WebPreferenceKeysPrivate.h: Remove a key that does not need to be here.
3513 * WebView/WebView.mm: Switch from WebCore's InitializeLogging.h to Logging.h.
3514
commit-queue@webkit.org72312302013-08-02 02:07:34 +000035152013-08-01 Ruth Fong <ruth_fong@apple.com>
3516
3517 [Forms: color] <input type='color'> popover color well implementation
3518 <rdar://problem/14411008> and https://bugs.webkit.org/show_bug.cgi?id=119356
3519
3520 Reviewed by Benjamin Poulain.
3521
3522 * Configurations/FeatureDefines.xcconfig: Added and enabled INPUT_TYPE_COLOR_POPOVER.
3523
timothy_horton@apple.com346f8d72013-08-01 00:06:51 +000035242013-07-31 Tim Horton <timothy_horton@apple.com>
3525
3526 Remove didFinishLoad order quirk
3527 https://bugs.webkit.org/show_bug.cgi?id=119354
3528 <rdar://problem/11510686>
3529
3530 Reviewed by Alexey Proskuryakov.
3531
3532 * Misc/WebKitVersionChecks.h:
3533 * WebView/WebView.mm:
3534 (-[WebView _preferencesChanged:]):
3535 Don't set the now-removed preference.
3536
kseo@webkit.orgffc41582013-07-31 23:54:09 +000035372013-07-31 Kwang Yul Seo <skyul@company100.net>
3538
3539 Use emptyString instead of String("")
3540 https://bugs.webkit.org/show_bug.cgi?id=119335
3541
3542 Reviewed by Darin Adler.
3543
3544 Use emptyString() instead of String("") because it is better style and
3545 faster. This is a followup to r116908, removing all occurrences of
3546 String("") from WebKit.
3547
3548 * WebCoreSupport/WebFrameLoaderClient.mm:
3549 (WebFrameLoaderClient::userAgent):
3550
commit-queue@webkit.org23815482013-07-31 20:47:46 +000035512013-07-31 Ruth Fong <ruth_fong@apple.com>
3552
3553 <input type=color> Mac UI behaviour
3554 <rdar://problem/10269922> and https://bugs.webkit.org/show_bug.cgi?id=61276
3555
3556 Reviewed by Brady Eidson.
3557
3558 * Configurations/FeatureDefines.xcconfig: Enabled INPUT_TYPE_COLOR.
3559 * WebCoreSupport/WebChromeClient.h:
3560 * WebCoreSupport/WebChromeClient.mm:
3561 (WebChromeClient::createColorPicker): Added stub implementation.
3562
dino@apple.comd336f0b2013-07-27 00:57:31 +000035632013-07-26 Dean Jackson <dino@apple.com>
3564
3565 Allow new transitions to run even when controller is suspended
3566 https://bugs.webkit.org/show_bug.cgi?id=119171
3567 <rdar://problem/14511404>
3568
3569 Reviewed by Simon Fraser.
3570
3571 Expose a new SPI on WebView that triggers the (buggy) old behaviour
3572 for animations, such that any newly created animations will start even
3573 when the document is supposedly suspended. It turns out that client content was
3574 unknowingly relying on this behaviour - e.g. suspending a view, loading a
3575 bunch of new content, bringing the view on screen and then unsuspending. In this
3576 situation, we were not running CSS transitions, because the page was suspended.
3577 However, JS was still triggering them, and content was expecting a transitionEnd event.
3578
3579 * WebView/WebView.mm:
3580 (-[WebView allowsNewCSSAnimationsWhileSuspended]): Calls into AnimationController.
3581 (-[WebView setAllowsNewCSSAnimationsWhileSuspended:]): Ditto.
3582 * WebView/WebViewPrivate.h: New methods listed above.
3583
andersca@apple.com47b35992013-07-26 20:39:57 +000035842013-07-26 Anders Carlsson <andersca@apple.com>
3585
3586 Add another method that we need to set aside subviews for
3587 https://bugs.webkit.org/show_bug.cgi?id=119157
3588 <rdar://problem/14554723>
3589
3590 Reviewed by Beth Dakin.
3591
3592 * WebView/WebHTMLView.mm:
3593 (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
3594 (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
3595
akling@apple.com96b365f2013-07-25 23:57:40 +000035962013-07-25 Andreas Kling <akling@apple.com>
3597
3598 ChromeClient::focusedNodeChanged() should be focusedElementChanged().
3599 <http://webkit.org/b/119110>
3600
3601 Reviewed by Anders Carlsson.
3602
3603 * WebCoreSupport/WebChromeClient.h:
3604 * WebCoreSupport/WebChromeClient.mm:
3605 (WebChromeClient::focusedElementChanged):
3606
oliver@apple.come2fe4ce2013-07-25 03:59:41 +000036072013-05-05 Geoffrey Garen <ggaren@apple.com>
3608
3609 Rolled back in r149527 with crash fixed.
3610
3611 Reviewed by Oliver Hunt.
3612
3613 Rationalized 'this' value conversion
3614 https://bugs.webkit.org/show_bug.cgi?id=115542
3615
commit-queue@webkit.orgeab043f2013-07-17 23:32:43 +000036162013-07-17 Commit Queue <commit-queue@webkit.org>
3617
3618 Unreviewed, rolling out r152701, r152703, r152739, r152754,
3619 and r152756.
3620 http://trac.webkit.org/changeset/152701
3621 http://trac.webkit.org/changeset/152703
3622 http://trac.webkit.org/changeset/152739
3623 http://trac.webkit.org/changeset/152754
3624 http://trac.webkit.org/changeset/152756
3625 https://bugs.webkit.org/show_bug.cgi?id=118821
3626
3627 this was a buggy fix and we're going to try something
3628 different (Requested by thorton on #webkit).
3629
3630 * WebCoreSupport/WebChromeClient.h:
3631 * WebCoreSupport/WebChromeClient.mm:
3632 (WebChromeClient::shouldUnavailablePluginMessageBeButton):
3633
kangil.han@samsung.comb6fa4052013-07-17 07:12:11 +000036342013-07-17 Kangil Han <kangil.han@samsung.com>
3635
3636 Use toHTMLMediaElement
3637 https://bugs.webkit.org/show_bug.cgi?id=118727
3638
3639 Reviewed by Ryosuke Niwa.
3640
3641 To avoid direct use of static_cast, this patch uses toHTMLMediaElement for code cleanup.
3642
3643 * WebView/WebView.mm:
3644 (-[WebView _enterFullscreenForNode:WebCore::]):
3645
simon.fraser@apple.com84c27dc2013-07-16 18:44:45 +000036462013-07-16 Simon Fraser <simon.fraser@apple.com>
3647
3648 Protect against the LayerFlushController being deleted inside its flushLayers() callback
3649 https://bugs.webkit.org/show_bug.cgi?id=118741
3650 <rdar://problem/14402651>
3651
3652 Reviewed by Tim Horton.
3653
3654 It's possible (especially on iOS) for the LayerFlushController to be destroyed
3655 inside its callback, via -[WebView _close]. Protect against this by making
3656 it refcounted, and holding a ref across the callback.
3657
3658 Due to the odd relationship in which LayerFlushController owns its LayerFlushScheduler
3659 by value, we achieve this by allowing subclasses of LayerFlushScheduler
3660 to override runLoopObserverCallback(). WebViewLayerFlushScheduler uses the
3661 override to protect the owner of the LayerFlushScheduler, which is the
3662 LayerFlushController, when the callback is firing.
3663
3664 * WebView/WebView.mm:
3665 (-[WebView _close]):
3666 * WebView/WebViewData.h:
3667 (WebViewLayerFlushScheduler::~WebViewLayerFlushScheduler):
3668 (LayerFlushController::create):
3669 * WebView/WebViewData.mm:
3670 (LayerFlushController::invalidate):
3671 (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
3672
jberlin@webkit.orgfa3a5642013-07-16 18:04:15 +000036732013-07-16 Jessie Berlin <jberlin@apple.com>
3674
3675 Fix some NSDictionary misuse pointed out by the clang static analyzer
3676 https://bugs.webkit.org/show_bug.cgi?id=118736
3677
3678 Reviewed by Anders Carlsson.
3679
3680 * Plugins/Hosted/NetscapePluginHostManager.mm:
3681 (WebKit::NetscapePluginHostManager::spawnPluginHost):
3682 Explicitly cast the CFStringRef to an NSString *.
3683 * WebCoreSupport/WebEditorClient.mm:
3684 (WebEditorClient::documentFragmentFromAttributedString):
3685 Do not put a key with a nil value pair into the NSDictionary.
3686
timothy_horton@apple.com7a561712013-07-16 04:01:36 +000036872013-07-15 Tim Horton <timothy_horton@apple.com>
3688
3689 Update blocked/missing plug-in UI
3690 https://bugs.webkit.org/show_bug.cgi?id=118347
3691 <rdar://problem/14209318>
3692
3693 Reviewed by Sam Weinig.
3694 Patch by Antoine Quint, Anders Carlsson, Sam Weinig, and myself.
3695
3696 * WebCoreSupport/WebChromeClient.h:
3697 * WebCoreSupport/WebChromeClient.mm:
3698 (WebChromeClient::shouldUnavailablePluginMessageIncludeButton):
3699 Rename from shouldUnavailablePluginMessageBeButton to
3700 shouldUnavailablePluginMessageIncludeButton for accuracy.
3701
jonlee@apple.com8f711b72013-07-15 17:16:12 +000037022013-07-14 Jon Lee <jonlee@apple.com>
3703
3704 [WK2] Calling Notification.requestPermission() without a callback crashes
3705 https://bugs.webkit.org/show_bug.cgi?id=118654
3706 <rdar://problem/14293352>
3707
3708 Reviewed by Alexey Proskuryakov.
3709
3710 * WebCoreSupport/WebNotificationClient.mm:
3711 (-[WebNotificationPolicyListener initWithCallback:]): The callback can be NULL, so remove the ASSERT.
3712 (-[WebNotificationPolicyListener allow]): Check for the callback before asking it to handle the event.
3713 (-[WebNotificationPolicyListener deny]): Ditto.
3714
jberlin@webkit.org21d13542013-07-12 23:59:16 +000037152013-07-12 Jessie Berlin <jberlin@apple.com>
3716
3717 Remove some dead stores pointed out by the clang static analyzer.
3718 https://bugs.webkit.org/show_bug.cgi?id=118608
3719
3720 Reviewed by Anders Carlsson.
3721
3722 * Plugins/Hosted/NetscapePluginHostManager.mm:
3723 (WebKit::NetscapePluginHostManager::instantiatePlugin):
3724 kr is never read after this point, so there is no reason to assign to it.
3725
3726 * Plugins/WebBasePluginPackage.mm:
3727 (-[WebBasePluginPackage getPluginInfoFromPLists]):
3728 The extensions array is only used in the while loop. Move the declaration to the first place
3729 it is used in the while loop. Since it is always reassigned at that location, and since it
3730 is never read after the subsequent for loop, the assignment to an array containing the empty
3731 string is never used. Remove it.
3732 Similarly, the value of the description is always overwritten before used to assign to
3733 mimeClassInfo.desc or to pluginInfo.desc, so the code to assign it to the empty string is
3734 never used. Remove it.
3735
3736 * WebView/WebTextCompletionController.mm:
3737 (-[WebTextCompletionController _placePopupWindow:]):
3738 maxWidth is never read (and never was since it was added in r7311) after it is used on the
3739 line above to set windowFrame.size.width.
3740
mitz@apple.com1e1de202013-07-11 22:33:11 +000037412013-07-11 Dan Bernstein <mitz@apple.com>
3742
3743 [mac] No API for getting the page visibility state of a WebView
3744 https://bugs.webkit.org/show_bug.cgi?id=118578
3745
3746 Reviewed by Simon Fraser.
3747
3748 * WebView/WebView.mm:
3749 (kit): Added. Converts from WebCore::PageVisibilityState to WebPageVisibilityState.
3750 (-[WebView _visibilityState]): Added.
3751 * WebView/WebViewPrivate.h: Declared -_visibilityState.
3752
timothy@apple.com1f2a1f42013-07-11 15:43:53 +000037532013-07-11 Timothy Hatcher <timothy@apple.com>
3754
3755 Revert r152267 and soft link WebInspectorUI.framework again.
3756
3757 https://bugs.webkit.org/show_bug.cgi?id=118544
3758
3759 Reviewed by David Kilzer.
3760
3761 * Configurations/WebKit.xcconfig:
3762 * WebCoreSupport/WebInspectorClient.mm:
3763 (useWebKitWebInspector):
3764
jberlin@webkit.orge8197fc2013-07-10 15:52:47 +000037652013-07-10 Jessie Berlin <jberlin@apple.com>
3766
3767 Remove some dead code from WebNSURLExtras _web_hostString
3768 https://bugs.webkit.org/show_bug.cgi?id=118519
3769
3770 Reviewed by Anders Carlsson.
3771
3772 * Misc/WebNSURLExtras.mm:
3773 (-[NSURL _web_hostString]):
3774 NSString initWithData:encoding: does not throw an exception when passing nil for the data, so
3775 just delete the code that wasn't being run.
3776
jer.noble@apple.comd9e9b412013-07-09 22:58:45 +000037772013-07-09 Jeremy Noble <jer.noble@apple.com>
3778
3779 Reviewed by Simon Fraser.
3780
3781 Remember the scroll position and restore after exiting full-screen mode.
3782 https://bugs.webkit.org/show_bug.cgi?id=61956
3783 <rdar://problem/9544461>
3784
3785 Call into the main FrameView to save the scroll position before swapping the
3786 WebView into the full-screen window, and restore the scroll position after
3787 swapping the WebView back into the browser window.
3788
3789 * WebView/WebFullScreenController.h:
3790 * WebView/WebFullScreenController.mm:
3791 (-[WebFullScreenController windowDidEnterFullscreen:]): Save the scroll position.
3792 (-[WebFullScreenController exitFullscreen]): Restore the scroll position.
3793
commit-queue@webkit.org797e3562013-07-04 19:53:19 +000037942013-07-04 Yongjun Zhang <yongjun_zhang@apple.com>
3795
3796 Add a method to get unreachable URL from WebFrame.
3797 https://bugs.webkit.org/show_bug.cgi?id=118399
3798
3799 Normally we could use [[WebFrame dataSource] unreachableURL] to get the failed URL. However, if the frame has not
3800 loaded (FrameLoader::frameHasLoaded() is false), we will get a nil dataSource and we won't be able to get unreachableURL.
3801 We can add a method to always return the unreachableURL regardless if the frame has loaded or not.
3802
3803 Reviewed by Dan Bernstein.
3804
3805 * WebView/WebFrame.mm:
3806 (-[WebFrame _unreachableURL]):
3807 * WebView/WebFramePrivate.h:
3808
commit-queue@webkit.orgfacf3f42013-07-03 10:13:34 +000038092013-07-03 Zalan Bujtas <zalan@apple.com>
3810
3811 H&R Block 2010 Help window can not be reopened.
3812 https://bugs.webkit.org/show_bug.cgi?id=118342
3813
3814 Reviewed by Antti Koivisto.
3815
3816 http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that
3817 only the opener can (re)focus() a particular window.
3818 H&R Block app relies on the relaxed window.focus() rules.
3819
3820 * WebView/WebView.mm:
3821 (shouldRestrictWindowFocus):
3822 (-[WebView _preferencesChanged:]):
3823
timothy@apple.com3bc89112013-07-01 22:23:11 +000038242013-07-01 Timothy Hatcher <timothy@apple.com>
3825
3826 Link to WebInspectorUI.framework at build time instead of soft linking.
3827
3828 https://bugs.webkit.org/show_bug.cgi?id=118261
3829
3830 Reviewed by Joseph Pecoraro.
3831
3832 * Configurations/WebKit.xcconfig:
3833 * WebCoreSupport/WebInspectorClient.mm:
3834 (useWebKitWebInspector):
3835
jochen@chromium.org4f58f492013-07-01 19:24:19 +000038362013-07-01 Jochen Eisinger <jochen@chromium.org>
3837
3838 Remove support for consumable user gestures
3839 https://bugs.webkit.org/show_bug.cgi?id=118247
3840
3841 Reviewed by Geoffrey Garen.
3842
3843 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3844 (WebKit::NetscapePluginInstanceProxy::evaluate):
3845 * Plugins/WebNetscapePluginView.mm:
3846 (-[WebNetscapePluginView sendEvent:isDrawRect:]):
3847
jer.noble@apple.comde0138e2013-07-01 18:40:27 +000038482013-06-27 Jer Noble <jer.noble@apple.com>
3849
3850 Audio in apps which embed WebViews is corrupted.
3851 https://bugs.webkit.org/show_bug.cgi?id=118163
3852
3853 Reviewed by Maciej Stachowiak.
3854
3855 Expose the WebCore lowPowerVideoAudioBufferSizeEnabled setting to WebKit clients.
3856
3857 * WebView/WebPreferenceKeysPrivate.h:
3858 * WebView/WebPreferences.mm:
3859 (+[WebPreferences initialize]):
3860 (-[WebPreferences lowPowerVideoAudioBufferSizeEnabled]):
3861 (-[WebPreferences setLowPowerVideoAudioBufferSizeEnabled:]):
3862 * WebView/WebPreferencesPrivate.h:
3863 * WebView/WebView.mm:
3864 (-[WebView _preferencesChanged:]):
3865
kangil.han@samsung.comb5a972a2013-07-01 10:43:48 +000038662013-07-01 Kangil Han <kangil.han@samsung.com>
3867
3868 Adopt toHTMLTextAreaElement for code cleanup
3869 https://bugs.webkit.org/show_bug.cgi?id=118226
3870
3871 Reviewed by Andreas Kling.
3872
3873 To enhance readability, this patch adopts toHTMLTextAreaElement.
3874 This also helps out to reduce duplicated use of static_cast.
3875
3876 * WebCoreSupport/WebEditorClient.mm:
3877 (WebEditorClient::textDidChangeInTextArea):
3878
kangil.han@samsung.comc5593722013-06-28 02:26:41 +000038792013-06-27 Kangil Han <kangil.han@samsung.com>
3880
3881 Adopt is/toHTMLInputElement for code cleanup
3882 https://bugs.webkit.org/show_bug.cgi?id=118130
3883
3884 Reviewed by Antti Koivisto.
3885
3886 To enhance readability, this patch adopts is/toHTMLInputElement.
3887 This also helps out to reduce duplicated use of static_cast.
3888
3889 * DOM/WebDOMOperations.mm:
3890 (-[DOMHTMLInputElement _setAutofilled:]):
3891 * WebCoreSupport/WebChromeClient.mm:
3892 (WebChromeClient::focusedNodeChanged):
3893 * WebCoreSupport/WebEditorClient.mm:
3894 (WebEditorClient::textFieldDidBeginEditing):
3895 (WebEditorClient::textFieldDidEndEditing):
3896 (WebEditorClient::textDidChangeInTextField):
3897 (WebEditorClient::doTextFieldCommandFromEvent):
3898 (WebEditorClient::textWillBeDeletedInTextField):
3899 * WebView/WebHTMLRepresentation.mm:
3900 (inputElementFromDOMElement):
3901
kangil.han@samsung.coma0df4a62013-06-26 07:44:01 +000039022013-06-26 Kangil Han <kangil.han@samsung.com>
3903
3904 Adopt is/toHTMLAudioElement for code cleanup
3905 https://bugs.webkit.org/show_bug.cgi?id=117985
3906
3907 Reviewed by Jer Noble.
3908
3909 To enhance readibility, this patch adopts is/toHTMLAudioElement.
3910 This also helps out to reduce duplicated use of static_cast.
3911
3912 * Plugins/WebPluginController.mm:
3913
simon.fraser@apple.com711a5792013-06-24 21:02:36 +000039142013-06-24 Simon Fraser <simon.fraser@apple.com>
3915
3916 Move displayID stuff from Widget to Chrome
3917 https://bugs.webkit.org/show_bug.cgi?id=117944
3918
3919 Reviewed by Anders Carlsson.
3920
3921 In r151877 I polluted Widget with displayID-related stuff. This would
3922 be better on HostWindow, so move it there. This is a net code reduction,
3923 and eliminates PlatformScreenMac.h, and the NSScreen category.
3924
3925 * WebView/WebView.mm:
3926 (-[WebView doWindowDidChangeScreen]): Go via chrome().
3927
ch.dumez@sisa.samsung.com9805aa32013-06-21 10:34:57 +000039282013-06-21 Christophe Dumez <ch.dumez@sisa.samsung.com>
3929
3930 REGRESSION (r150663): Using webkitAudioContext in Inspector makes it undefined everywhere
3931 https://bugs.webkit.org/show_bug.cgi?id=117825
3932
3933 Reviewed by Kentaro Hara.
3934
3935 Use Settings to enable Web Audio instead of RuntimeEnabledFeatures.
3936
3937 * WebView/WebView.mm:
3938 (-[WebView _preferencesChanged:]):
3939
simon.fraser@apple.coma0186022013-06-20 21:28:20 +000039402013-06-20 Simon Fraser <simon.fraser@apple.com>
3941
3942 FrameView needs to initialize paintsEntireContents on creation
3943 https://bugs.webkit.org/show_bug.cgi?id=117844
3944
3945 Reviewed by Anders Carlsson.
3946
3947 In WebKit1, if the WebView is layer-backed, WebHTMLView gets a layer.
3948 In this mode, FrameView::paintsEntireContents() is true. However,
3949 we would only call setPaintsEntireContents(true) on the FrameView
3950 when the view's layer-backed status changes. FrameView also needs
3951 to fetch this state when it is initialized, because we may be creating
3952 a new FrameView for an already layer-backed WebHTMLView.
3953
3954 * WebCoreSupport/WebChromeClient.h:
3955 * WebCoreSupport/WebChromeClient.mm:
3956 (WebChromeClient::shouldPaintEntireContents):
3957
benjamin@webkit.orgac28bde2013-06-19 22:41:17 +000039582013-06-19 Benjamin Poulain <bpoulain@apple.com>
3959
3960 Use the PlatformEvent timestamp when creating a DOM Event
3961 https://bugs.webkit.org/show_bug.cgi?id=117179
3962
3963 Reviewed by Darin Adler.
3964
3965 * WebView/WebPDFView.mm:
3966 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3967
roger_fong@apple.coma6b7dc32013-06-18 20:14:32 +000039682013-06-18 Roger Fong <roger_fong@apple.com>
3969
roger_fong@apple.comccb07032013-06-18 20:28:26 +00003970 Unreviewed. Build fix for Mac.
3971
3972 * WebCoreSupport/WebFrameNetworkingContext.h:
3973 (WebFrameNetworkingContext::create):
3974 (WebFrameNetworkingContext::WebFrameNetworkingContext):
3975
39762013-06-18 Roger Fong <roger_fong@apple.com>
3977
roger_fong@apple.coma6b7dc32013-06-18 20:14:32 +00003978 Re-implement WebFrameNetworkingContext.
3979 <rdar://problem/13174821>.
3980
3981 Reviewed by Alexey Proskuryakov.
3982
3983 * WebCoreSupport/WebFrameNetworkingContext.h: Added.
3984 (WebFrameNetworkingContext::create):
3985 (WebFrameNetworkingContext::WebFrameNetworkingContext):
3986 (WebFrameNetworkingContext::userAgent):
3987 * WebCoreSupport/WebFrameNetworkingContext.mm: Added.
3988 (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
3989 (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
3990 (WebFrameNetworkingContext::needsSiteSpecificQuirks):
3991 (WebFrameNetworkingContext::localFileContentSniffingEnabled):
3992 (WebFrameNetworkingContext::scheduledRunLoopPairs):
3993 (WebFrameNetworkingContext::sourceApplicationAuditData):
3994 (WebFrameNetworkingContext::blockedError):
3995 (WebFrameNetworkingContext::storageSession):
3996
ap@apple.com8984f012013-06-18 20:05:08 +000039972013-06-18 Alexey Proskuryakov <ap@apple.com>
3998
3999 <rdar://problem/13174821> Remove files with an incorrect license.
4000
4001 Rubber-stamped by Maciej Stachowiak.
4002
4003 This will break the build, stay tuned for a fix coming soon.
4004
4005 * WebCoreSupport/WebFrameNetworkingContext.h: Removed.
4006 * WebCoreSupport/WebFrameNetworkingContext.mm: Removed.
4007
michael.bruning@digia.comf9bd3442013-06-17 14:35:05 +000040082013-06-17 Michael Brüning <michael.bruning@digia.com>
4009
4010 [Qt] Remove Qt specific QTKIT flagged code.
4011 https://bugs.webkit.org/show_bug.cgi?id=117635
4012
4013 Reviewed by Simon Hausmann.
4014
4015 Due to disabling QTKIT for Qt in r151546, the
4016 code the flags that are not taken into account
4017 anymore and the code that has been rendered
4018 unreachable by this are removed.
4019
4020 * WebView/WebView.mm:
4021 (-[WebView _preferencesChanged:]):
4022
g.czajkowski@samsung.com7e0d38d2013-06-17 13:32:09 +000040232013-06-17 Grzegorz Czajkowski <g.czajkowski@samsung.com>
4024
4025 Unreviewed, rolling out r151632.
4026 http://trac.webkit.org/changeset/151632
4027 https://bugs.webkit.org/show_bug.cgi?id=117585
4028
4029 Debug build error ASSERT(WTF_USE_GRAMMAR_CHECKING) for non MAC
4030 platforms
4031
4032 * WebCoreSupport/WebContextMenuClient.mm:
4033 (fixMenusReceivedFromOldClients):
4034
g.czajkowski@samsung.com9facbdb2013-06-17 07:28:52 +000040352013-06-14 Grzegorz Czajkowski <g.czajkowski@samsung.com>
4036
4037 Context menu grammar checking items are available when GRAMMAR_CHECKING macro is off
4038 https://bugs.webkit.org/show_bug.cgi?id=117585
4039
4040 Reviewed by Anders Carlsson.
4041
4042 Add GRAMMAR_CHECKING guard to the context menu grammar items.
4043
4044 * WebCoreSupport/WebContextMenuClient.mm:
4045 (fixMenusReceivedFromOldClients):
4046
jer.noble@apple.com0adc53a2013-06-14 22:27:35 +000040472013-06-13 Jer Noble <jer.noble@apple.com>
4048
4049 Add support for AVFoundation-backed HTMLMediaElements in the WebVideoFullScreenController.
4050 https://bugs.webkit.org/show_bug.cgi?id=117597
4051
4052 Reviewed by Eric Carlson.
4053
4054 Allow AVFoundation to be enabled even when the FullScreen API is disabled.
4055
4056 * WebView/WebView.mm:
4057 (-[WebView _preferencesChanged:]):
4058
andersca@apple.com3acc4d12013-06-13 00:34:45 +000040592013-06-12 Anders Carlsson <andersca@apple.com>
4060
4061 Remove the notion of inactive plug-ins
4062 https://bugs.webkit.org/show_bug.cgi?id=117570
4063 <rdar://problem/13484213>
4064
4065 Reviewed by Tim Horton.
4066
4067 Remove code that deals with inactive plug-ins.
4068
4069 * WebCoreSupport/WebChromeClient.mm:
4070 (WebChromeClient::shouldUnavailablePluginMessageBeButton):
4071 (WebChromeClient::unavailablePluginButtonClicked):
4072 * WebCoreSupport/WebFrameLoaderClient.mm:
4073 (WebFrameLoaderClient::createPlugin):
4074
zandobersek@gmail.comee606792013-06-12 08:45:44 +000040752013-06-12 Zan Dobersek <zdobersek@igalia.com>
4076
4077 Remove memoryInfoEnabled, quantizedMemoryInfoEnabled settings
4078 https://bugs.webkit.org/show_bug.cgi?id=117512
4079
4080 Reviewed by Darin Adler.
4081
4082 * WebKit.order: Remove the memoryInfoEnabled entry.
4083 * WebView/WebPreferenceKeysPrivate.h: Remove WebKitMemoryInfoEnabledPreferenceKey.
4084 * WebView/WebPreferences.mm: Remove memoryInfoEnabled, setMemoryInfoEnabled methods.
4085 (+[WebPreferences initialize]): Don't set the default value for the WebKitMemoryInfoEnabledPreferenceKey, the preference is being removed.
4086 * WebView/WebPreferencesPrivate.h: Remove memoryInfoEnabled, setMemoryInfoEnabled method declarations.
4087 * WebView/WebView.mm:
4088 (-[WebView _preferencesChanged:]): Remove the call to Settings::setMemoryInfoEnabled, the setting is being removed.
4089
timothy@apple.comec1c7b32013-06-11 19:16:51 +000040902013-06-06 Timothy Hatcher <timothy@apple.com>
4091
4092 Update the framework bundle identifier for the Web Inspector.
4093
4094 Reviewed by Mark Rowe.
4095
4096 * WebCoreSupport/WebInspectorClient.mm:
4097 (useWebKitWebInspector):
4098 (WebInspectorFrontendClient::localizedStringsURL):
4099 (-[WebInspectorWindowController inspectorPagePath]):
4100
betravis@adobe.comed90c982013-06-05 23:05:57 +000041012013-06-05 Bear Travis <betravis@adobe.com>
4102
4103 [CSS Exclusions][CSS Shapes] Split CSS Exclusions & Shapes compile & runtime flags
4104 https://bugs.webkit.org/show_bug.cgi?id=117172
4105
4106 Reviewed by Alexandru Chiculita.
4107
4108 Adding the CSS_SHAPES compile flag.
4109
4110 * Configurations/FeatureDefines.xcconfig:
4111
akling@apple.comf75b6ed2013-06-01 09:39:59 +000041122013-06-01 Andreas Kling <akling@apple.com>
4113
akling@apple.combdc2e452013-06-01 09:48:33 +00004114 Remove unnused WebDOMNodeOperationsInternal category.
4115 <http://webkit.org/b/117105>
4116
4117 Reviewed by Ryosuke Niwa.
4118
4119 _subresourceURLs had no clients.
4120
4121 * DOM/WebDOMOperations.mm:
4122
41232013-06-01 Andreas Kling <akling@apple.com>
4124
akling@apple.comf75b6ed2013-06-01 09:39:59 +00004125 Move Node::hasID() and hasClass() to Element.
4126 <http://webkit.org/b/117104>
4127
4128 Reviewed by Ryosuke Niwa.
4129
4130 * WebView/WebRenderLayer.mm:
4131 (+[WebRenderLayer nameForLayer:]):
4132
slewis@apple.com2a1d67c2013-05-31 21:44:26 +000041332013-05-31 Stephanie Lewis <slewis@apple.com>
4134
4135 Update low memory handler to use new memory pressure notifications on new OS versions.
4136 <rdar://problem/14027095>
4137
4138 Reviewed by Mark Rowe.
4139
4140 * WebCoreSupport/WebSystemInterface.mm:
4141 (InitWebCoreSystemInterface):
4142
jpfau@apple.comda154402013-05-30 17:52:33 +000041432013-05-29 Jeffrey Pfau <jpfau@apple.com>
4144
4145 [Mac] Enable cache partitioning and the public suffix list on 10.8
4146 <rdar://problem/13679019>
4147
4148 Rubber-stamped by David Kilzer.
4149
4150 * Configurations/FeatureDefines.xcconfig:
4151
commit-queue@webkit.org484a0892013-05-30 04:30:56 +000041522013-05-29 Joseph Pecoraro <pecoraro@apple.com>
4153
4154 Web Inspector: get rid of obsolete InspectorFrontendHost.hiddenPanels()
4155 https://bugs.webkit.org/show_bug.cgi?id=60152
4156
4157 Reviewed by Andreas Kling.
4158
4159 * WebCoreSupport/WebInspectorClient.mm:
4160
commit-queue@webkit.org226ae982013-05-29 02:23:41 +000041612013-05-28 Joseph Pecoraro <pecoraro@apple.com>
4162
4163 Drag to move DOM nodes does not work
4164 https://bugs.webkit.org/show_bug.cgi?id=116865
4165
4166 Do not block drag events on the WebKit 1 Web Inspector WebView.
4167
4168 Reviewed by Timothy Hatcher.
4169
4170 * WebCoreSupport/WebInspectorClient.mm:
4171
akling@apple.com2d7fedc2013-05-28 12:46:31 +000041722013-05-28 Andreas Kling <akling@apple.com>
4173
4174 Document::setFocusedNode() should be setFocusedElement().
4175 <http://webkit.org/b/116857>
4176
4177 Reviewed by Antti Koivisto.
4178
4179 * WebView/WebHTMLView.mm:
4180 (-[WebHTMLView clearFocus]):
4181 (-[WebHTMLView becomeFirstResponder]):
4182
akling@apple.coma3b58ff2013-05-26 02:27:32 +000041832013-05-25 Andreas Kling <akling@apple.com>
4184
4185 Remove Document::getFocusableNodes().
4186 <http://webkit.org/b/116773>
4187
4188 Reviewed by Joseph Pecoraro.
4189
4190 Remove the private _focusableNodes API on DOMDocument, it has no clients.
4191
4192 * DOM/WebDOMOperations.mm:
4193 * DOM/WebDOMOperationsPrivate.h:
4194
simon.fraser@apple.comdc674b32013-05-25 23:56:01 +000041952013-05-25 Simon Fraser <simon.fraser@apple.com>
4196
4197 Unprefix Page Visibility API
4198 https://bugs.webkit.org/show_bug.cgi?id=102340
4199
4200 Reviewed by Tim Horton.
4201
4202 Renaming of the "preview" state to "unloaded".
4203
4204 * WebView/WebView.mm:
4205 * WebView/WebViewPrivate.h:
4206
mitz@apple.comac89a602013-05-25 17:57:19 +000042072013-05-25 Dan Bernstein <mitz@apple.com>
4208
4209 <rdar://problem/13924889> -webView:didPerformClientRedirectFromURL:toURL:inFrame: should be given the redirecting URL as the “from” URL
4210 https://bugs.webkit.org/show_bug.cgi?id=116733
4211
4212 Reviewed by Adele Peterson.
4213
4214 By the time the history controller calls updateGlobalHistoryRedirectLinks(), the document
4215 loader already reflects the destination URL. In order to be able to provide the immediate
4216 source URL to the delegate, we make WebFrame track a URL and provisional URL, updating them
4217 in response to FrameLoader callbacks in exactly the same way WebFrameProxy maintains its
4218 m_url and m_provisionalURL member variables.
4219
4220 * WebCoreSupport/WebFrameLoaderClient.mm:
4221 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Update
4222 provisionalURL.
4223 (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage): Update url.
4224 (WebFrameLoaderClient::dispatchDidPushStateWithinPage): Ditto.
4225 (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage): Ditto.
4226 (WebFrameLoaderClient::dispatchDidPopStateWithinPage): Ditto.
4227 (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Update provisionalURL.
4228 (WebFrameLoaderClient::dispatchDidCommitLoad): Update URL and provisionalURL.
4229 (WebFrameLoaderClient::dispatchDidFailProvisionalLoad): Clear provisionalURL.
4230 (WebFrameLoaderClient::dispatchDidFailLoad): Added an assertion.
4231 (WebFrameLoaderClient::dispatchDidFinishLoad): Ditto.
4232 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): Pass the last committed URL as the
4233 source, rather than clientRedirectSourceForHistory().
4234 * WebView/WebFrameInternal.h: Added url and provisionalURL ivars to WebFramePrivate.
4235
andersca@apple.com7d2c6d62013-05-24 23:30:36 +000042362013-05-24 Anders Carlsson <andersca@apple.com>
4237
andersca@apple.com6cd28b792013-05-24 23:52:21 +00004238 Remove using namespace std from Mac WebKit1
4239 https://bugs.webkit.org/show_bug.cgi?id=116747
4240
4241 Reviewed by Sam Weinig.
4242
4243 Use explicit std:: qualifiers instead.
4244
4245 * History/BinaryPropertyList.cpp:
4246 (IntegerArray::deletedValueSize):
4247 (BinaryPropertyListPlan::invalidObjectReference):
4248 (bytesNeeded):
4249 * History/WebHistory.mm:
4250 (-[WebHistoryPrivate orderedLastVisitedDays]):
4251 (WebHistoryWriter::WebHistoryWriter):
4252 * History/WebHistoryItem.mm:
4253 (-[WebHistoryItem initFromDictionaryRepresentation:]):
4254 * Plugins/Hosted/NetscapePluginHostManager.mm:
4255 (WebKit::NetscapePluginHostManager::instantiatePlugin):
4256 * Plugins/Hosted/NetscapePluginHostProxy.mm:
4257 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
4258 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
4259 (WebKit::NetscapePluginInstanceProxy::wheelEvent):
4260 (WebKit::NetscapePluginInstanceProxy::print):
4261 (WebKit::NetscapePluginInstanceProxy::snapshot):
4262 (WebKit::NetscapePluginInstanceProxy::loadURL):
4263 (WebKit::NetscapePluginInstanceProxy::createBindingsInstance):
4264 * Plugins/Hosted/ProxyInstance.mm:
4265 (WebKit::ProxyInstance::invoke):
4266 (WebKit::ProxyInstance::supportsInvokeDefaultMethod):
4267 (WebKit::ProxyInstance::supportsConstruct):
4268 (WebKit::ProxyInstance::getPropertyNames):
4269 (WebKit::ProxyInstance::methodNamed):
4270 (WebKit::ProxyInstance::fieldNamed):
4271 (WebKit::ProxyInstance::fieldValue):
4272 (WebKit::ProxyInstance::setFieldValue):
4273 * Plugins/WebBasePluginPackage.mm:
4274 (-[WebBasePluginPackage supportsExtension:]):
4275 (-[WebBasePluginPackage MIMETypeForExtension:]):
4276 * Plugins/WebNetscapePluginStream.mm:
4277 (WebNetscapePluginStream::deliverData):
4278 * Plugins/WebNetscapePluginView.mm:
4279 (PluginTimer::start):
4280 (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
4281 * WebCoreSupport/WebFrameLoaderClient.mm:
4282 * WebView/WebFrame.mm:
4283 * WebView/WebHTMLView.mm:
4284 (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
4285 * WebView/WebTextCompletionController.mm:
4286 (-[WebTextCompletionController _placePopupWindow:]):
4287
42882013-05-24 Anders Carlsson <andersca@apple.com>
4289
andersca@apple.com7d2c6d62013-05-24 23:30:36 +00004290 Move history property list writer to WebKit
4291 https://bugs.webkit.org/show_bug.cgi?id=116746
4292
4293 Reviewed by Tim Horton.
4294
4295 Move WebCore history files to WebKit since they're only used by WebKit now.
4296
4297 * History/BinaryPropertyList.cpp: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.cpp.
4298 * History/BinaryPropertyList.h: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.h.
4299 * History/HistoryPropertyList.cpp: Renamed from Source/WebCore/history/cf/HistoryPropertyList.cpp.
4300 * History/HistoryPropertyList.h: Renamed from Source/WebCore/history/cf/HistoryPropertyList.h.
4301 * History/WebHistory.mm:
4302
ch.dumez@sisa.samsung.com99856b92013-05-24 22:57:29 +000043032013-05-24 Christophe Dumez <ch.dumez@sisa.samsung.com>
4304
4305 Remove custom code for webkitAudioContext global constructor getter
4306 https://bugs.webkit.org/show_bug.cgi?id=116530
4307
4308 Reviewed by Geoffrey Garen.
4309
4310 Use RuntimeEnabledFeatures instead of Settings to toggle Web Audio support.
4311
4312 * WebView/WebView.mm:
4313 (-[WebView _preferencesChanged:]):
4314
andersca@apple.comef7981e2013-05-23 20:08:21 +000043152013-05-23 Anders Carlsson <andersca@apple.com>
4316
4317 Crash in convertMainResourceLoadToDownload when downloading file by option-return
4318 https://bugs.webkit.org/show_bug.cgi?id=116451
4319
4320 Reviewed by Andreas Kling.
4321
4322 If the main resource loader is null, create a new download instead since there's no existing loader to convert.
4323
4324 * WebCoreSupport/WebFrameLoaderClient.mm:
4325 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
4326
simon.fraser@apple.come6f87ce2013-05-22 19:06:13 +000043272013-05-22 Simon Fraser <simon.fraser@apple.com>
4328
4329 Fix issues with focus rings on search fields
4330 https://bugs.webkit.org/show_bug.cgi?id=116591
4331
4332 Reviewed by Darin Adler.
4333
4334 In WebKit1, focus rings didn't render correctly on some OSes until
4335 some other control drew a focus ring, which changes internal AppKit state
4336 on the focused view. Fix by overriding an internal AppKit method to always
4337 disable AppKit's "automatic" focus ring drawing.
4338
4339 * WebView/WebHTMLView.mm:
4340 (-[WebHTMLView _automaticFocusRingDisabled]):
4341
ddkilzer@apple.com9b6f4232013-05-20 14:44:54 +000043422013-05-20 David Kilzer <ddkilzer@apple.com>
4343
4344 Synchronize FeatureDefines.xcconfig
4345
4346 * Configurations/FeatureDefines.xcconfig: Add a newline to the
4347 end of the file.
4348
andersca@apple.com247ec592013-05-19 20:38:28 +000043492013-05-19 Anders Carlsson <andersca@apple.com>
4350
andersca@apple.coma82aee42013-05-19 22:57:32 +00004351 Remove link prerendering code
4352 https://bugs.webkit.org/show_bug.cgi?id=116415
4353
4354 Reviewed by Darin Adler.
4355
4356 This code was only used by Chromium and is dead now.
4357
4358 * Configurations/FeatureDefines.xcconfig:
4359
43602013-05-19 Anders Carlsson <andersca@apple.com>
4361
andersca@apple.com247ec592013-05-19 20:38:28 +00004362 Remove ChromeClient::webView()
4363 https://bugs.webkit.org/show_bug.cgi?id=116054
4364
4365 Reviewed by Darin Adler.
4366
4367 This blatantly horrible layer violation was only used to know if a ChromeClient is an empty
4368 client or not. We already have a (slightly less horrible) way to do that.
4369
4370 * WebCoreSupport/WebChromeClient.h:
4371 (WebChromeClient):
4372
andersca@apple.comed2df532013-05-17 15:55:20 +000043732013-05-17 Anders Carlsson <andersca@apple.com>
4374
andersca@apple.com0cacc312013-05-17 17:40:17 +00004375 Accessing null function pointers is bad.
4376
4377 * WebCoreSupport/WebFrameLoaderClient.mm:
4378
43792013-05-17 Anders Carlsson <andersca@apple.com>
4380
andersca@apple.combaba5722013-05-17 16:57:59 +00004381 Make kit(Frame*) more robust
4382 https://bugs.webkit.org/show_bug.cgi?id=116324
4383
4384 Reviewed by Darin Adler.
4385
4386 Check that the frame loader's client isn't the EmptyFrameLoaderClient (or a subclass thereof)
4387 before casting to WebFrameLoaderClient.
4388
4389 * WebView/WebFrame.mm:
4390 (kit):
4391
43922013-05-17 Anders Carlsson <andersca@apple.com>
4393
andersca@apple.com58107652013-05-17 16:47:33 +00004394 Move the policy function to WebFramePolicyListener
4395 https://bugs.webkit.org/show_bug.cgi?id=116323
4396
4397 Reviewed by Darin Adler.
4398
4399 There's no need for the WebFrameLoaaderClient to hold on to the policy function,
4400 so move it to WebFramePolicyListener. This gets rid of another WebFrameLoaderClient cast.
4401
4402 * WebCoreSupport/WebFrameLoaderClient.mm:
4403 (WebFrameLoaderClient::setUpPolicyListener):
4404 Pass the policy function when creating the WebFramePolicyListener object.
4405
44062013-05-17 Anders Carlsson <andersca@apple.com>
4407
andersca@apple.com1264df62013-05-17 16:34:35 +00004408 WebFramePolicyListener should keep its Frame in a RefPtr
4409 https://bugs.webkit.org/show_bug.cgi?id=116322
4410
4411 Reviewed by Darin Adler.
4412
4413 * WebCoreSupport/WebFrameLoaderClient.mm:
4414 (-[WebFramePolicyListener initWithWebCoreFrame:]):
4415 No need to ref the frame, the RefPtr does that for us.
4416
4417 (-[WebFramePolicyListener invalidate]):
4418 Just set the frame to null.
4419
4420 (-[WebFramePolicyListener dealloc]):
4421 Remove call to deref, that's done automatically now.
4422
4423 (-[WebFramePolicyListener finalize]):
4424 Remove this method. (We could have kept it just for the assertion but I didn't think that was necessary).
4425
4426 (-[WebFramePolicyListener receivedPolicyDecision:):
4427 Use release() to transfer ownership.
4428
44292013-05-17 Anders Carlsson <andersca@apple.com>
4430
andersca@apple.comed2df532013-05-17 15:55:20 +00004431 Reduce number of WebFrameLoaderClient static casts in WebKit
4432 https://bugs.webkit.org/show_bug.cgi?id=116320
4433
4434 Reviewed by Antti Koivisto.
4435
4436 We already have a function to return a WebFrame from a WebCore::Frame, use it.
4437
4438 * DOM/WebDOMOperations.mm:
4439 (WebFrameFilter::shouldIncludeSubframe):
4440 * WebView/WebDataSource.mm:
4441 (-[WebDataSource webFrame]):
4442
rniwa@webkit.org46b670f2013-05-17 02:46:25 +000044432013-05-16 Commit Queue <commit-queue@webkit.org>
4444
4445 Unreviewed, rolling out r150034.
4446 http://trac.webkit.org/changeset/150034
4447 https://bugs.webkit.org/show_bug.cgi?id=116257
4448
4449 This work around doesn't work due to another bug NSUndoManager
4450 has (Requested by rniwa on #webkit).
4451
4452 * WebCoreSupport/WebEditorClient.mm:
4453 (WebEditorClient::registerUndoOrRedoStep):
4454
timothy_horton@apple.come48c1472013-05-17 00:42:03 +000044552013-05-16 Tim Horton <timothy_horton@apple.com>
4456
4457 PDFPlugins don't load when plugins are disabled, but they should
4458 https://bugs.webkit.org/show_bug.cgi?id=75790
4459 <rdar://problem/11650197>
4460
4461 Reviewed by Anders Carlsson.
4462
4463 * Plugins/WebBasePluginPackage.mm:
4464 (-[WebBasePluginPackage getPluginInfoFromPLists]):
4465 * Plugins/WebNetscapePluginPackage.mm:
4466 (-[WebNetscapePluginPackage getPluginInfoFromResources]):
4467 Nothing loaded via WebBasePluginPackage or WebNetscapePluginPackage
4468 is an application plugin.
4469
4470 * WebView/WebFrame.mm:
4471 (-[WebFrame _canProvideDocumentSource]):
4472 Previously, this caller depended on pluginData() returning null if
4473 plug-ins were disabled. Since that is no longer the case, we have to
4474 check if we can use plug-ins, and otherwise ignore non-application-plug-ins.
4475
akling@apple.combd774812013-05-17 00:03:01 +000044762013-05-16 Andreas Kling <akling@apple.com>
4477
4478 Page::chrome() should return a reference.
4479 <http://webkit.org/b/116185>
4480
4481 Reviewed by Anders Carlsson.
4482
mitz@apple.com05fa6472013-05-16 20:50:06 +000044832013-05-16 Dan Bernstein <mitz@apple.com>
4484
4485 -webView:updateHistoryTitle:forURL: does not pass a frame to the delegate
4486 https://bugs.webkit.org/show_bug.cgi?id=116243
4487
4488 Reviewed by Anders Carlsson.
4489
4490 Added a WebFrame parameter to the delegate method.
4491
4492 * WebCoreSupport/WebFrameLoaderClient.mm:
4493 (WebFrameLoaderClient::setTitle): Pass the frame to the delegate. Maintain
4494 compatibility with clients that implement the old delegate method that
4495 doesn’t take a frame.
4496 * WebView/WebDelegateImplementationCaching.h:
4497 (WebHistoryDelegateImplementationCache): Added a field to cache the
4498 implementation of the old delegate method.
4499 * WebView/WebHistoryDelegate.h: Changed the signature of the delegate method.
4500 * WebView/WebView.mm:
4501 (-[WebView _cacheHistoryDelegateImplementations]): Cache the implementation
4502 of the new delegate method, but also check for the old one.
4503
simon.fraser@apple.com0b007592013-05-16 18:40:16 +000045042013-05-16 Simon Fraser <simon.fraser@apple.com>
4505
4506 Re-land r150168 with some OS version guards.
4507
4508 * WebView/WebFrameView.mm:
4509 (-[WebFrameView drawRect:]):
4510 (-[WebFrameView wantsUpdateLayer]):
4511 (-[WebFrameView updateLayer]):
4512
commit-queue@webkit.org8e721ae2013-05-16 10:07:01 +000045132013-05-16 Commit Queue <commit-queue@webkit.org>
4514
4515 Unreviewed, rolling out r150168.
4516 http://trac.webkit.org/changeset/150168
4517 https://bugs.webkit.org/show_bug.cgi?id=116214
4518
4519 broke the world on Mountain Lion (Requested by thorton on
4520 #webkit).
4521
4522 * WebView/WebFrameView.mm:
4523 (-[WebFrameView drawRect:]):
4524
simon.fraser@apple.com262abec2013-05-16 02:05:38 +000045252013-05-15 Simon Fraser <simon.fraser@apple.com>
4526
4527 Avoid backing store for the WebFrameView's layer when the WebView is layer-backed
4528 https://bugs.webkit.org/show_bug.cgi?id=116172
4529
4530 Reviewed by Tim Horton.
4531
4532 When the WebView is layer-backed, AppKit will create a layer with backing store for
4533 the WebFrameView because it implements drawRect:. However, this method only paints
4534 when there is no documentView, so this layer’s backing store is wasteful.
4535
4536 We can avoid allocation of this backing store by implementing -wantsUpdateLayer
4537 and -updateLayer, and setting the view’s backgroundColor.
4538
4539 * WebView/WebFrameView.mm:
4540 (-[WebFrameView wantsUpdateLayer]):
4541 (-[WebFrameView updateLayer]):
4542
andersca@apple.comb4170922013-05-15 19:47:47 +000045432013-05-13 Anders Carlsson <andersca@apple.com>
4544
4545 Frame::editor() should return a reference
4546 https://bugs.webkit.org/show_bug.cgi?id=116037
4547
4548 Reviewed by Darin Adler.
4549
4550 * WebView/WebFrame.mm:
4551 (-[WebFrame _selectedString]):
4552 (-[WebFrame _firstRectForDOMRange:]):
4553 (-[WebFrame _markDOMRange]):
4554 (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
4555 (-[WebFrame _setTypingStyle:withUndoAction:]):
4556 (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
4557 * WebView/WebHTMLRepresentation.mm:
4558 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
4559 * WebView/WebHTMLView.mm:
4560 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
4561 (-[WebHTMLView _shouldDeleteRange:]):
4562 (-[WebHTMLView _canEdit]):
4563 (-[WebHTMLView _canEditRichly]):
4564 (-[WebHTMLView _insertOrderedList]):
4565 (-[WebHTMLView _insertUnorderedList]):
4566 (-[WebHTMLView _canIncreaseSelectionListLevel]):
4567 (-[WebHTMLView _canDecreaseSelectionListLevel]):
4568 (-[WebHTMLView _increaseSelectionListLevel]):
4569 (-[WebHTMLView _increaseSelectionListLevelOrdered]):
4570 (-[WebHTMLView _increaseSelectionListLevelUnordered]):
4571 (-[WebHTMLView _decreaseSelectionListLevel]):
4572 (-[WebHTMLView Editor::coreCommandBySelector:]):
4573 (-[WebHTMLView Editor::coreCommandByName:]):
4574 (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
4575 (-[WebHTMLView becomeFirstResponder]):
4576 (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
4577 (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
4578 (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
4579 (-[WebHTMLView checkSpelling:]):
4580 (-[WebHTMLView showGuessPanel:]):
4581 (-[WebHTMLView toggleBaseWritingDirection:]):
4582 (-[WebHTMLView changeBaseWritingDirection:]):
4583 (-[WebHTMLView _changeBaseWritingDirectionTo:]):
4584 (-[WebHTMLView _updateFontPanel]):
4585 (-[WebHTMLView markedRange]):
4586 (-[WebHTMLView hasMarkedText]):
4587 (-[WebHTMLView unmarkText]):
4588 (-[WebHTMLView setMarkedText:selectedRange:]):
4589 (-[WebHTMLView doCommandBySelector:]):
4590 (-[WebHTMLView insertText:]):
4591 (-[WebHTMLView _updateSelectionForInputManager]):
4592 (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
4593 (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
4594 (-[WebHTMLView markedTextMatchesAreHighlighted]):
4595 (-[WebHTMLView _findString:options:]):
4596 * WebView/WebView.mm:
4597 (-[WebView _executeCoreCommandByName:value:]):
4598 (-[WebView editableDOMRangeForPoint:]):
4599 (-[WebView setEditable:]):
4600 (-[WebView deleteSelection]):
4601 (-[WebView applyStyle:]):
4602 (-[WebView typingAttributes]):
4603 (-[WebView _simplifyMarkup:endNode:]):
4604 (-[WebView handleAcceptedAlternativeText:]):
4605
darin@apple.combb9f15d42013-05-15 16:44:20 +000046062013-05-15 Darin Adler <darin@apple.com>
4607
darin@apple.com8f3cf4c2013-05-15 17:24:03 +00004608 [Mac] Remove the ClipboardMac class and header file
4609 https://bugs.webkit.org/show_bug.cgi?id=116165
4610
4611 Reviewed by Anders Carlsson.
4612
4613 * WebCoreSupport/WebDragClient.mm: Import Clipboard.h instead of ClipboardMac.h.
4614
46152013-05-15 Darin Adler <darin@apple.com>
4616
darin@apple.combb9f15d42013-05-15 16:44:20 +00004617 [Mac] Thin out the ClipboardMac class and header file to prepare for deleting them
4618 https://bugs.webkit.org/show_bug.cgi?id=116159
4619
4620 Reviewed by Andreas Kling.
4621
4622 * WebCoreSupport/WebDragClient.mm:
4623 (WebDragClient::willPerformDragSourceAction): Changed to get the pasteboard name
4624 without going through the ClipboardMac class.
4625 (WebDragClient::startDrag): Ditto.
4626
bdakin@apple.com5e1a2d22013-05-15 04:35:26 +000046272013-05-14 Beth Dakin <bdakin@apple.com>
4628
4629 Printing in 1Password app is broken with screen fonts disabled
4630 https://bugs.webkit.org/show_bug.cgi?id=116133
4631 -and corresponding-
4632 <rdar://problem/13162981>
4633
4634 Reviewed by Anders Carlsson.
4635
4636 Return YES from [WebPreferences screenFontSubstitutionEnabled] for versions of the
4637 1Password app that were linked on or before MountainLion.
4638
4639 * WebView/WebPreferences.mm:
4640 (needsScreenFontsEnabledQuirk):
4641 (-[WebPreferences screenFontSubstitutionEnabled]):
4642
mitz@apple.com7466ca32013-05-14 06:52:50 +000046432013-05-13 Dan Bernstein <mitz@apple.com>
4644
4645 Make -[WebNavigationData url] the destination of the navigation
4646 https://bugs.webkit.org/show_bug.cgi?id=114904
4647
4648 Reviewed by Dave Kilzer.
4649
4650 * WebCoreSupport/WebFrameLoaderClient.mm:
4651 (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with the
4652 current URL, not the original request URL.
4653
andersca@apple.comedea63a2013-05-13 23:17:59 +000046542013-05-13 Anders Carlsson <andersca@apple.com>
4655
4656 Remove ChromeClient::willPopupMenu
4657 https://bugs.webkit.org/show_bug.cgi?id=116063
4658
4659 Reviewed by Andreas Kling.
4660
4661 ChromeClient::willPopupMenu is only called in one place from WebKit, so just move the function to the call site.
4662
4663 * WebCoreSupport/PopupMenuMac.mm:
4664 (PopupMenuMac::show):
4665 * WebCoreSupport/WebChromeClient.h:
4666 * WebCoreSupport/WebChromeClient.mm:
4667
timothy@apple.com4c595c22013-05-13 21:53:43 +000046682013-05-12 Timothy Hatcher <timothy@apple.com>
4669
4670 Add support for updating the Web Inspector toolbar height.
4671
4672 https://bugs.webkit.org/show_bug.cgi?id=115996
4673
4674 Reviewed by Joseph Pecoraro and Benjamin Poulain.
4675
4676 * WebCoreSupport/WebInspectorClient.h:
4677 * WebCoreSupport/WebInspectorClient.mm:
4678 (WebInspectorFrontendClient::setToolbarHeight):
4679
rniwa@webkit.org27ced7b2013-05-13 20:07:20 +000046802013-05-13 Ryosuke Niwa <rniwa@webkit.org>
4681
4682 Sometimes NSUndoManager can get into an inconsistent state
4683 https://bugs.webkit.org/show_bug.cgi?id=116050
4684
4685 Reviewed by Enrica Casucci.
4686
4687 Always group undo items to work around a bug in NSUndoManager that manifests
4688 when we call removeAllActionsWithTarget.
4689
4690 * WebCoreSupport/WebEditorClient.mm:
4691 (WebEditorClient::registerUndoOrRedoStep):
4692
commit-queue@webkit.org77cff302013-05-13 08:53:48 +000046932013-05-13 Zalan Bujtas <zalan@apple.com>
4694
4695 WebProcess consuming very high CPU on linkedin.com
4696 https://bugs.webkit.org/show_bug.cgi?id=115601
4697
4698 Reviewed by Andreas Kling.
4699
4700 Disable WEB_TIMING_MINIMAL.
4701 Turn off window.performance and performance.now(). Some JS frameworks expect
4702 additional Web Timing APIs, when performance.now() is available.
4703
4704 * Configurations/FeatureDefines.xcconfig:
4705
darin@apple.com47ab3772013-05-13 08:37:33 +000047062013-05-13 Darin Adler <darin@apple.com>
4707
4708 [Mac] Layer-backed WebViews draw their background color even when setDrawsBackground:NO was called
4709 https://bugs.webkit.org/show_bug.cgi?id=116014
4710 <rdar://problem/12781227>
4711
4712 Reviewed by Dan Bernstein.
4713
4714 * WebView/WebFrame.mm:
4715 (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]): Remove calls to setBackgroundColor: and
4716 setDrawsBackground: on the document view. These were added to support a hypothetical document view
4717 that wanted to draw its background like WebHTMLView does, but this was never communicated as a
4718 document view protocol, formal or informal, and it's unlikely that it was ever used. The bug was
4719 caused because there is an -[NSView setDrawsBackground:] method, probably an internal one, and we
4720 were calling it unintentionally on a WebHTMLView.
4721
andersca@apple.comed9bde72013-05-13 04:24:20 +000047222013-05-12 Anders Carlsson <andersca@apple.com>
4723
4724 Stop including UnusedParam.h
4725 https://bugs.webkit.org/show_bug.cgi?id=116003
4726
4727 Reviewed by Sam Weinig.
4728
4729 UnusedParam.h is empty now so there's no need to include it anymore.
4730
4731 * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
4732 * WebView/WebDashboardRegion.mm:
4733 * WebView/WebFullScreenController.mm:
4734
akling@apple.comd40ce332013-05-12 23:16:30 +000047352013-05-12 Andreas Kling <akling@apple.com>
4736
4737 Unload event listeners should prevent Safari from insta-killing the web process on last tab close.
4738 <http://webkit.org/b/115988>
4739 <rdar://problem/13870943>
4740
4741 Reviewed by Anders Carlsson.
4742
4743 * WebCoreSupport/WebChromeClient.h:
4744 * WebCoreSupport/WebChromeClient.mm:
4745 (WebChromeClient::enableSuddenTermination):
4746 (WebChromeClient::disableSuddenTermination):
4747
commit-queue@webkit.orgf96037c2013-05-11 05:03:10 +000047482013-05-10 Brian J. Burg <burg@cs.washington.edu>
4749
4750 Web Inspector: Implement WK2 version of WebInspectorFrontendClient::save
4751 https://bugs.webkit.org/show_bug.cgi?id=115564
4752
4753 Reviewed by Benjamin Poulain.
4754
4755 Clean up save() and append() implementations.
4756
4757 * WebCoreSupport/WebInspectorClient.h:
4758 * WebCoreSupport/WebInspectorClient.mm:
4759 (WebInspectorFrontendClient::save):
4760 (WebInspectorFrontendClient::append):
4761
l.gombos@samsung.com85167b02013-05-11 01:59:15 +000047622013-05-10 Laszlo Gombos <l.gombos@samsung.com>
4763
4764 Remove Mac OS X Leopard (10.5) support
4765 https://bugs.webkit.org/show_bug.cgi?id=107964
4766
4767 Reviewed by Ryosuke Niwa.
4768
4769 Removed the code for 10.5 and removed if-def for 10.6.
4770
4771 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
4772 * Misc/WebKitErrors.m:
4773 (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]):
4774 * WebCoreSupport/WebSystemInterface.mm:
4775 (InitWebCoreSystemInterface):
4776 * WebView/WebClipView.mm:
4777 (-[WebClipView _immediateScrollToPoint:]):
4778 * WebView/WebFrameView.mm:
4779 (-[WebFrameView initWithFrame:]):
4780 * WebView/WebView.mm:
4781
mrowe@apple.comcf10e282013-05-08 07:00:31 +000047822013-05-07 Mark Rowe <mrowe@apple.com>
4783
4784 <rdar://problem/13633007> WebKit and others fail to build headers due to build root dependency
4785
4786 Reviewed by Sam Weinig.
4787
4788 * Configurations/WebKit.xcconfig: Look for WebCore's headers within the SDK if we're building against one.
4789
mikhail.pozdnyakov@intel.com7e3c2cf2013-05-07 07:23:43 +000047902013-05-07 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
4791
4792 HashTraits<RefPtr<P> >::PeekType should be raw pointer for better performance
4793 https://bugs.webkit.org/show_bug.cgi?id=115646
4794
4795 Reviewed by Darin Adler.
4796
4797 * Plugins/Hosted/NetscapePluginHostProxy.mm:
4798 (WebKit::NetscapePluginHostProxy::pluginInstance):
4799 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
4800 (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad):
4801 Updated accordingly to new HashMap<.., RefPtr>::get() semantics.
4802
dino@apple.comf221e462013-05-05 04:43:05 +000048032013-05-04 Dean Jackson <dino@apple.com>
4804
4805 Animations and Transitions should not start when globally suspended
4806 https://bugs.webkit.org/show_bug.cgi?id=114915
4807
4808 Reviewed by Sam Weinig.
4809
4810 The WebView private API cssAnimationsSuspended did not necessarily
4811 reflect the reality of the Frame's AnimationController value because it
4812 was caching rather than asking directly. While the WebCore part of this
4813 patch ensured loading the Document wouldn't resume all animations, it
4814 is still better to ask directly.
4815
4816 * WebView/WebView.mm:
4817 (-[WebView cssAnimationsSuspended]): Call into AnimationController.
4818 (-[WebView setCSSAnimationsSuspended:]): Ditto.
4819 * WebView/WebViewData.h: Remove cssAnimationsSuspended boolean.
4820 * WebView/WebViewData.mm: Ditto.
4821 (-[WebViewPrivate init]):
4822
weinig@apple.comd04c0e92013-05-05 02:35:08 +000048232013-05-04 Sam Weinig <sam@webkit.org>
4824
4825 Move PopupMenuMac and SearchPopupMenuMac to Source/WebKit/mac
4826 matching where they are in WebKit2.
4827
4828 Reviewed by Anders Carlsson.
4829
4830 * WebCoreSupport/PopupMenuMac.h: Copied from WebCore/platform/mac/PopupMenuMac.h.
4831 * WebCoreSupport/PopupMenuMac.mm: Copied from WebCore/platform/mac/PopupMenuMac.mm.
4832 * WebCoreSupport/SearchPopupMenuMac.h: Copied from WebCore/platform/mac/SearchPopupMenuMac.h.
4833 * WebCoreSupport/SearchPopupMenuMac.mm: Copied from WebCore/platform/mac/SearchPopupMenuMac.mm.
4834 * WebCoreSupport/WebChromeClient.mm:
4835
andersca@apple.com388bf2c2013-05-04 19:04:27 +000048362013-05-04 Anders Carlsson <andersca@apple.com>
4837
4838 Get rid of -[NSMutableDictionary _webkit_setObject:forUncopiedKey:]
4839 https://bugs.webkit.org/show_bug.cgi?id=115592
4840
4841 Reviewed by Beth Dakin.
4842
4843 Using CFDictionarySetValue to set a key without having to copy it is not supported. Use NSMapTable with strong pointers instead.
4844
4845 * Misc/WebNSDictionaryExtras.h:
4846 * Misc/WebNSDictionaryExtras.m:
4847 * Panels/WebPanelAuthenticationHandler.h:
4848 (NSURLAuthenticationChallenge):
4849 * Panels/WebPanelAuthenticationHandler.m:
4850 (-[WebPanelAuthenticationHandler init]):
4851 (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
4852 (-[WebPanelAuthenticationHandler tryNextChallengeForWindow:]):
4853 (-[WebPanelAuthenticationHandler startAuthentication:window:]):
4854 (-[WebPanelAuthenticationHandler cancelAuthentication:]):
4855 * Plugins/WebNetscapePluginView.h:
4856 * Plugins/WebNetscapePluginView.mm:
4857 (-[WebNetscapePluginView destroyPlugin]):
4858 (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
4859 (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
4860 (-[WebNetscapePluginView loadPluginRequest:]):
4861
rniwa@webkit.org7c46afc2013-05-02 01:54:27 +000048622011-05-01 Ryosuke Niwa <rniwa@webkit.org>
4863
4864 [Mac] WebKit doesn't enable or disable autocorrections when system preferences are changed
4865 https://bugs.webkit.org/show_bug.cgi?id=115463
4866
4867 Reviewed by Darin Adler.
4868
4869 Observe the default notification center for changes to autocorrection preferences.
4870 Note system preferences may also update WebAutomatic* defaults.
4871
4872 * WebView/WebView.mm:
4873 (+[WebView initialize]):
4874 (+[WebView _shouldAutomaticTextReplacementBeEnabled]):
4875 (+[WebView _didChangeAutomaticTextReplacementEnabled:]):
4876 (+[WebView _shouldAutomaticSpellingCorrectionBeEnabled]):
4877 (+[WebView _didChangeAutomaticSpellingCorrectionEnabled:]):
4878 (+[WebView _shouldAutomaticQuoteSubstitutionBeEnabled]):
4879 (+[WebView _shouldAutomaticDashSubstitutionBeEnabled]):
4880 (+[WebView _didChangeAutomaticQuoteSubstitutionEnabled:]):
4881 (+[WebView _didChangeAutomaticDashSubstitutionEnabled:]):
4882
benjamin@webkit.orgb8f36522013-05-01 21:22:24 +000048832013-05-01 Benjamin Poulain <bpoulain@apple.com>
4884
4885 Fix the function names of r149453
4886
4887 Unreviewed.
4888
4889 I forgot to follow one of Darin's review comment. This patch
4890 fixes the function names to follow CF naming conventions.
4891
4892 * WebView/WebHTMLRepresentation.mm:
4893 (newArrayWithStrings):
4894 (newArrayByConcatenatingArrays):
4895 (+[WebHTMLRepresentation supportedMIMETypes]):
4896 (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
4897 (+[WebHTMLRepresentation supportedImageMIMETypes]):
4898 (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
4899
benjamin@webkit.org13fba082013-05-01 21:02:13 +000049002013-05-01 Benjamin Poulain <benjamin@webkit.org>
4901
4902 Simplify WebHTMLRepresentation supportedMIMETypes methods
4903 https://bugs.webkit.org/show_bug.cgi?id=115314
4904
4905 Reviewed by Darin Adler.
4906
4907 The initialization was surprisingly complex because of DEFINE_STATIC_LOCAL.
4908 First, a new pointer was allocated on the heap with fast malloc (for RetainPtr<NSArray>).
4909 Then a new NSMutableArray was allocated but immediately put on the autorelease pool.
4910 Finally, that array was retained by the RetainPtr.
4911
4912 This patch changes the code to only leak the NSMutableArray memory. There
4913 is no fastMalloc, nor any use of the autorelease pool.
4914
4915 * WebView/WebHTMLRepresentation.mm:
4916 (createArrayWithStrings):
4917 (createArrayByConcatenatingArrays):
4918 (+[WebHTMLRepresentation supportedMIMETypes]):
4919 (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
4920 (+[WebHTMLRepresentation supportedImageMIMETypes]):
4921 (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
4922
darin@apple.com472751a2013-05-01 05:19:09 +000049232013-04-30 Darin Adler <darin@apple.com>
4924
4925 [Mac] Remove adoptNS/retain pairs, since the two cancel each other out
4926 https://bugs.webkit.org/show_bug.cgi?id=115426
4927
4928 Reviewed by Anders Carlsson.
4929
4930 * Plugins/WebNetscapePluginStream.mm:
4931 (WebNetscapePluginStream::deliverDataToFile): Remove adoptNS and release.
4932
ggaren@apple.com58bf4ea2013-04-30 21:55:43 +000049332013-04-30 Geoffrey Garen <ggaren@apple.com>
4934
4935 Objective-C JavaScriptCore API should publicly support bridging to C
4936 https://bugs.webkit.org/show_bug.cgi?id=115447
4937
4938 Reviewed by Mark Hahnenberg.
4939
4940 * WebView/WebFrame.mm:
4941 (-[WebFrame _javaScriptContextForScriptWorld:]):
4942 * WebView/WebScriptWorld.mm:
4943 (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
4944
andersca@apple.coma1b27c52013-04-30 17:49:58 +000049452013-04-30 Anders Carlsson <andersca@apple.com>
4946
4947 More StorageTracker cleanup
4948 https://bugs.webkit.org/show_bug.cgi?id=115429
4949
4950 Reviewed by Andreas Kling.
4951
4952 Call PageGroup::syncLocalStorage directly.
4953
4954 * Storage/WebStorageManager.mm:
4955 (-[WebStorageManager syncLocalStorage]):
4956
commit-queue@webkit.org0d670bb2013-04-30 10:54:08 +000049572013-04-30 Zalan Bujtas <zalan@apple.com>
4958
4959 Animations fail to start on http://www.google.com/insidesearch/howsearchworks/thestory/
4960 https://bugs.webkit.org/show_bug.cgi?id=111244
4961
4962 Reviewed by David Kilzer.
4963
4964 Enable performance.now() as a minimal subset of Web Timing API.
4965 It returns DOMHighResTimeStamp, a monotonically increasing value representing the
4966 number of milliseconds from the start of the navigation of the current document.
4967 JS libraries use this API to check against the requestAnimationFrame() timestamp.
4968
4969 * Configurations/FeatureDefines.xcconfig:
4970
cfleizach@apple.come25cff52013-04-30 00:46:42 +000049712013-04-29 Chris Fleizach <cfleizach@apple.com>
4972
4973 WEB SPEECH: need to identify the default voice per language
4974 https://bugs.webkit.org/show_bug.cgi?id=115366
4975
4976 Reviewed by Tim Horton.
4977
4978 * WebCoreSupport/WebSystemInterface.mm:
4979 (InitWebCoreSystemInterface):
4980
dino@apple.com5b3ac5a2013-04-28 21:52:25 +000049812013-04-28 Dean Jackson <dino@apple.com>
4982
4983 [Mac] Disable canvas backing store scaling (HIGH_DPI_CANVAS)
4984 https://bugs.webkit.org/show_bug.cgi?id=115310
4985
4986 Reviewed by Simon Fraser.
4987
4988 Remove ENABLE_HIGH_DPI_CANVAS_macosx.
4989
4990 * Configurations/FeatureDefines.xcconfig:
4991
darin@apple.com051fed92013-04-28 03:51:20 +000049922013-04-27 Darin Adler <darin@apple.com>
4993
4994 Move from constructor and member function adoptCF/NS to free function adoptCF/NS.
4995 https://bugs.webkit.org/show_bug.cgi?id=115307
4996
4997 Reviewed by Geoffrey Garen.
4998
4999 This change was done by a global replace followed by compiling and inspecting for
5000 cases that needed to be tweaked by hand.
5001
5002 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
5003 (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
5004 * Misc/WebNSFileManagerExtras.mm:
5005 (-[NSFileManager _webkit_startupVolumeName]):
5006 * Plugins/Hosted/HostedNetscapePluginStream.mm:
5007 (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
5008 * Plugins/Hosted/NetscapePluginHostManager.mm:
5009 (WebKit::NetscapePluginHostManager::spawnPluginHost):
5010 (WebKit::NetscapePluginHostManager::instantiatePlugin):
5011 * Plugins/Hosted/NetscapePluginHostProxy.mm:
5012 (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
5013 (WebKit::NetscapePluginHostProxy::beginModal):
5014 (WKPCBooleanAndDataReply):
5015 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5016 (WebKit::NetscapePluginInstanceProxy::print):
5017 (WebKit::NetscapePluginInstanceProxy::snapshot):
5018 (WebKit::NetscapePluginInstanceProxy::status):
5019 (WebKit::NetscapePluginInstanceProxy::loadURL):
5020 (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript):
5021 (WebKit::NetscapePluginInstanceProxy::enumerate):
5022 (WebKit::NetscapePluginInstanceProxy::marshalValue):
5023 (WebKit::NetscapePluginInstanceProxy::marshalValues):
5024 (WebKit::NetscapePluginInstanceProxy::demarshalValue):
5025 (WebKit::NetscapePluginInstanceProxy::demarshalValues):
5026 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
5027 (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
5028 (-[WebHostedNetscapePluginView createPlugin]):
5029 * Plugins/WebBaseNetscapePluginView.mm:
5030 (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
5031 (-[WebBaseNetscapePluginView cacheSnapshot]):
5032 (WebKit::getAuthenticationInfo):
5033 * Plugins/WebBasePluginPackage.mm:
5034 (-[WebBasePluginPackage initWithPath:]):
5035 * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
5036 (WebNetscapePluginEventHandlerCarbon::startTimers):
5037 * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
5038 (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
5039 (WebNetscapePluginEventHandlerCocoa::handleTSMEvent):
5040 * Plugins/WebNetscapePluginPackage.mm:
5041 (-[WebNetscapePluginPackage _initWithPath:]):
5042 * Plugins/WebNetscapePluginStream.mm:
5043 (WebNetscapePluginStream::WebNetscapePluginStream):
5044 (WebNetscapePluginStream::deliverData):
5045 (WebNetscapePluginStream::deliverDataToFile):
5046 (WebNetscapePluginStream::didReceiveData):
5047 * Plugins/WebNetscapePluginView.mm:
5048 (-[WebNetscapePluginView createPlugin]):
5049 (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
5050 (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
5051 * Storage/WebDatabaseManagerClient.mm:
5052 (WebDatabaseManagerClient::dispatchDidModifyOrigin):
5053 (WebDatabaseManagerClient::dispatchDidModifyDatabase):
5054 * Storage/WebStorageTrackerClient.mm:
5055 (WebStorageTrackerClient::dispatchDidModifyOrigin):
5056 * WebCoreSupport/CorrectionPanel.mm:
5057 (CorrectionPanel::handleAcceptedReplacement):
5058 * WebCoreSupport/WebApplicationCache.mm:
5059 (+[WebApplicationCache originsWithCache]):
5060 * WebCoreSupport/WebFrameLoaderClient.mm:
5061 (WebFrameLoaderClient::didRunInsecureContent):
5062 * WebCoreSupport/WebInspectorClient.mm:
5063 (WebInspectorClient::WebInspectorClient):
5064 (WebInspectorClient::openInspectorFrontend):
5065 * WebView/WebFullScreenController.mm:
5066 (-[WebFullScreenController enterFullScreen:]):
5067 * WebView/WebPDFDocumentExtras.mm:
5068 (allScriptsInPDFDocument):
5069 * WebView/WebPreferences.mm:
5070 (-[WebPreferences initWithIdentifier:]):
5071 (-[WebPreferences initWithCoder:]):
5072 * WebView/WebScriptDebugger.mm:
5073 (WebScriptDebugger::initGlobalCallFrame):
5074 (WebScriptDebugger::callEvent):
5075 * WebView/WebView.mm:
5076 (-[WebView previousValidKeyView]):
5077 Use adoptNS and adoptCF free functions.
5078
roger_fong@apple.com15e60a32013-04-26 21:19:43 +000050792013-04-25 Roger Fong <roger_fong@apple.com>
5080
5081 Disable sub-pixel layout on mac.
5082 https://bugs.webkit.org/show_bug.cgi?id=114999.
5083
5084 Reviewed by Simon Fraser.
5085
5086 * Configurations/FeatureDefines.xcconfig:
5087
simon.fraser@apple.com1e867bc2013-04-26 21:13:19 +000050882013-04-26 Simon Fraser <simon.fraser@apple.com>
5089
5090 Layer-backed WebViews don't repaint content outside the visible area
5091 https://bugs.webkit.org/show_bug.cgi?id=115275
5092
5093 Reviewed by Beth Dakin.
5094
5095 When a client of WebView makes the WebView be layer-backed, then
5096 AppKit propagaes the layer-backing down to the WebHTMLView (but
5097 no further).
5098
5099 In this situation, we had a bug where content that was not
5100 in the visible content rect would not get repainted, because
5101 WebCore clips repaints to the visible rect.
5102
5103 Fix by calling ScrollView::setPaintsEntireContents(bool) from
5104 -[WebHTMLView setLayer:], saying that we need
5105 to paint the entire contents if we have a layer.
5106
5107 * WebView/WebHTMLView.mm:
5108 (-[WebHTMLView setLayer:]):
5109
cfleizach@apple.com892a8552013-04-26 00:27:56 +000051102013-04-25 Chris Fleizach <cfleizach@apple.com>
5111
5112 WEB SPEECH: language support does not work as expected
5113 https://bugs.webkit.org/show_bug.cgi?id=115119
5114
5115 Reviewed by Alexey Proskuryakov.
5116
5117 * WebCoreSupport/WebSystemInterface.mm:
5118 (InitWebCoreSystemInterface):
5119
simon.fraser@apple.com5e6671e2013-04-25 22:37:22 +000051202013-04-25 Simon Fraser <simon.fraser@apple.com>
5121
5122 Build fix for smart compliers.
5123
5124 Reviewed by Tim Horton.
5125
5126 [NSDictionary dictionaryWithObjectsAndKeys:] returns an NSDictionary,
5127 not a NSMutableDictionary.
5128
5129 * WebCoreSupport/WebEditorClient.mm:
5130 (WebEditorClient::updateSpellingUIWithGrammarString):
5131
joepeck@webkit.org379c8a12013-04-25 18:31:05 +000051322013-04-25 Joseph Pecoraro <pecoraro@apple.com>
5133
5134 Web Inspector: ConsoleMessage should include line and column number where possible
5135 https://bugs.webkit.org/show_bug.cgi?id=114929
5136
5137 Reviewed by Timothy Hatcher.
5138
5139 * WebCoreSupport/WebChromeClient.h:
5140 * WebCoreSupport/WebChromeClient.mm:
5141 (WebChromeClient::addMessageToConsole):
5142
jberlin@webkit.org2b4d3982013-04-24 15:15:50 +000051432013-04-24 Jessie Berlin <jberlin@apple.com>
5144
5145 Assertion failure (crash in release) attempting to delete database storage in WK1 without
5146 creating a WebView first
5147 https://bugs.webkit.org/show_bug.cgi?id=115065
5148
5149 Reviewed by Brady Eidson.
5150
5151 Make sure the WebPlatformStrategies is initialized before using the WebDatabaseManager.
5152
5153 * Storage/WebDatabaseManager.mm:
5154 (-[WebDatabaseManager init]):
5155 Move the logic from WebKitInitializeDatabasesIfNecessary here, and add a call to
5156 WebPlatformStrategies::initializeIfNecessary.
5157
5158 * Storage/WebDatabaseManagerInternal.h: Removed.
5159
5160 * WebCoreSupport/WebPlatformStrategies.h:
5161 (WebPlatformStrategies):
5162 Change "initialize" to "initalizeIfNecessary".
5163 * WebCoreSupport/WebPlatformStrategies.mm:
5164 (WebPlatformStrategies::initializeIfNecessary):
5165 Only call setPlatformStrategies once.
5166
5167 * WebView/WebView.mm:
5168 (-[WebView _commonInitializationWithFrameName:groupName:]):
5169 Updated for the name change from initialize to initializeIfNecessary.
5170 Instead of calling WebKitInitializeDatabasesIfNecessary, call [WebDatabaseManager
5171 sharedWebDatabaseManager].
5172 (+[WebView _setLoadResourcesSerially:]):
5173 Updated for the name change from initialize to initializeIfNecessary.
5174
graouts@apple.comd66f4a32013-04-23 09:50:15 +000051752013-04-23 Antoine Quint <graouts@apple.com>
5176
5177 Initial advance of text runs should be taken into account
5178 https://bugs.webkit.org/show_bug.cgi?id=114949
5179
5180 Reviewed by Darin Adler.
5181
5182 Adding support for new method CTRunGetInitialAdvance in WebKitSystemInterface.
5183
5184 * WebCoreSupport/WebSystemInterface.mm:
5185 (InitWebCoreSystemInterface):
5186
benjamin@webkit.org9d72cb02013-04-22 22:52:23 +000051872013-04-22 Benjamin Poulain <benjamin@webkit.org>
5188
5189 Remove the memory instrumentation code
5190 https://bugs.webkit.org/show_bug.cgi?id=114931
5191
5192 Reviewed by Andreas Kling.
5193
5194 * WebView/WebRenderLayer.mm:
5195
aestes@apple.com9c9e7b12013-04-18 23:32:20 +000051962013-04-18 Andy Estes <aestes@apple.com>
5197
5198 REGRESSION (r116645): Versions app's UI is munged in HiDPI due to background-size being reset to 'auto' when background short-hand is also specified
5199 https://bugs.webkit.org/show_bug.cgi?id=114833
5200
5201 Reviewed by David Kilzer.
5202
5203 The Versions app specifies both a background-size and a background
5204 shorthand CSS property, and its UI is broken after r116645 which resets
5205 background-size to 'auto' if the background shorthand property is
5206 specified.
5207
5208 This patch enables the useLegacyBackgroundSizeShorthandBehavior setting
5209 added in r147034 to restore the expected behavior if the embedder is
5210 Versions.app and it was linked against a version of WebKit that had the
5211 legacy behavior.
5212
5213 * Misc/WebKitVersionChecks.h:
5214 * WebView/WebView.mm:
5215 (shouldUseLegacyBackgroundSizeShorthandBehavior):
5216 (-[WebView _commonInitializationWithFrameName:groupName:]):
5217
weinig@apple.comcbb9fc02013-04-18 22:34:26 +000052182013-04-18 Sam Weinig <sam@webkit.org>
5219
5220 Network Process crashing trying to read in IDNScriptWhiteList.txt
5221 https://bugs.webkit.org/show_bug.cgi?id=114827
5222
5223 Reviewed by Anders Carlsson.
5224
5225 Move IDNScriptWhiteList.txt from WebKit to WebCore, so that the NetworkProcess does not have to link against
5226 WebKit. It was a layering violation for WebCore to be trying to access WebKit resources anyway.
5227
5228 * Resources/IDNScriptWhiteList.txt: Removed.
5229
ggaren@apple.com9a9a4b52013-04-18 19:32:17 +000052302013-04-17 Geoffrey Garen <ggaren@apple.com>
5231
5232 Renamed JSGlobalData to VM
5233 https://bugs.webkit.org/show_bug.cgi?id=114777
5234
5235 Reviewed by Phil Pizlo.
5236
5237 * Misc/WebCoreStatistics.mm:
5238 (+[WebCoreStatistics javaScriptObjectsCount]):
5239 (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
5240 (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
5241 (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
5242 (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
5243 (+[WebCoreStatistics javaScriptObjectTypeCounts]):
5244 (+[WebCoreStatistics shouldPrintExceptions]):
5245 (+[WebCoreStatistics setShouldPrintExceptions:]):
5246 (+[WebCoreStatistics memoryStatistics]):
5247 (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
5248 * Plugins/Hosted/NetscapePluginHostProxy.mm:
5249 (identifierFromIdentifierRep):
5250 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
5251 (LocalObjectMap):
5252 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5253 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
5254 (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
5255 (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
5256 (WebKit::NetscapePluginInstanceProxy::evaluate):
5257 (WebKit::NetscapePluginInstanceProxy::addValueToArray):
5258 * Plugins/Hosted/ProxyInstance.mm:
5259 (WebKit::ProxyRuntimeMethod::create):
5260 (WebKit::ProxyRuntimeMethod::createStructure):
5261 (WebKit::ProxyRuntimeMethod::finishCreation):
5262 (WebKit::ProxyInstance::getPropertyNames):
5263 * Plugins/Hosted/ProxyRuntimeObject.h:
5264 (WebKit::ProxyRuntimeObject::create):
5265 (WebKit::ProxyRuntimeObject::createStructure):
5266 * Plugins/WebNetscapePluginStream.mm:
5267 (WebNetscapePluginStream::wantsAllStreams):
5268 * Plugins/WebNetscapePluginView.mm:
5269 (-[WebNetscapePluginView sendEvent:isDrawRect:]):
5270 (-[WebNetscapePluginView privateBrowsingModeDidChange]):
5271 (-[WebNetscapePluginView setWindowIfNecessary]):
5272 (-[WebNetscapePluginView createPluginScriptableObject]):
5273 (-[WebNetscapePluginView getFormValue:]):
5274 (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
5275 (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
5276 (-[WebNetscapePluginView loadPluginRequest:]):
5277 (-[WebNetscapePluginView _printedPluginBitmap]):
5278 * Plugins/WebPluginController.mm:
5279 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
5280 (-[WebPluginController stopOnePlugin:]):
5281 (-[WebPluginController destroyOnePlugin:]):
5282 (-[WebPluginController startAllPlugins]):
5283 (-[WebPluginController addPlugin:]):
5284 * WebKit.order:
5285 * WebView/WebScriptDebugDelegate.mm:
5286 (-[WebScriptCallFrame scopeChain]):
5287 (-[WebScriptCallFrame evaluateWebScript:]):
5288 * WebView/WebScriptDebugger.mm:
5289 (WebScriptDebugger::WebScriptDebugger):
5290
bdakin@apple.com6209dbe2013-04-17 03:55:36 +000052912013-04-16 Beth Dakin <bdakin@apple.com>
5292
5293 Re-name Page::layoutMilestones() to Page::requestedLayoutMilestones()
5294 https://bugs.webkit.org/show_bug.cgi?id=114713
5295
5296 Reviewed by Simon Fraser.
5297
5298 * WebView/WebView.mm:
5299 (-[WebView _layoutMilestones]):
5300
weinig@apple.com13d777f2013-04-16 21:54:22 +000053012013-04-15 Sam Weinig <sam@webkit.org>
5302
5303 Remove more #includes from Frame.h
5304 https://bugs.webkit.org/show_bug.cgi?id=114642
5305
5306 Reviewed by Anders Carlsson.
5307
5308 * WebView/WebFrame.mm:
5309 * WebView/WebHTMLRepresentation.mm:
5310 * WebView/WebView.mm:
5311
ap@apple.come7b48f72013-04-16 18:56:15 +000053122013-04-16 Alexey Proskuryakov <ap@apple.com>
5313
5314 Remove unused AlternativeTextClient::dismissDictationAlternativeUI
5315 https://bugs.webkit.org/show_bug.cgi?id=114598
5316
5317 Reviewed by Ryosuke Niwa.
5318
5319 * WebCoreSupport/WebAlternativeTextClient.h:
5320 * WebCoreSupport/WebAlternativeTextClient.mm:
5321 * WebView/WebView.mm:
5322 * WebView/WebViewInternal.h:
5323
rniwa@webkit.org5340bbc2013-04-16 18:25:38 +000053242013-04-15 Ryosuke Niwa <rniwa@webkit.org>
5325
5326 REGRESSION(r146025): WebKit applications can't apply underline or strike through
5327 https://bugs.webkit.org/show_bug.cgi?id=114662
5328
5329 Reviewed by Enrica Casucci.
5330
5331 Use -webkit- prefixes to apply underline. There should be no further compatibility issues
5332 since -khtml- was used only internally to pass the information down to WebCore.
5333
5334 Unfortunately, we can't test this code like any other font panel bug.
5335
5336 In the long run, we need to add some abstraction layer around font panel to make this testable
5337 or else we'll keep regressing this feature.
5338
5339 * WebView/WebHTMLView.mm:
5340 (-[WebHTMLView _styleFromFontAttributes:]):
5341 (-[WebHTMLView _styleForAttributeChange:]):
5342
andersca@apple.com4b142ad2013-04-16 01:20:31 +000053432013-04-15 Anders Carlsson <andersca@apple.com>
5344
5345 plugins/get-url-beforeunload-destroys-plugin.html crashes in WebKit1
5346 https://bugs.webkit.org/show_bug.cgi?id=114653
5347 <rdar://problem/13659541>
5348
5349 Reviewed by Sam Weinig.
5350
5351 Protect the NetscapePluginInstanceProxy since it can otherwise go away.
5352
5353 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5354 (WebKit::NetscapePluginInstanceProxy::performRequest):
5355
weinig@apple.com197a9e12013-04-14 23:32:18 +000053562013-04-14 Sam Weinig <sam@webkit.org>
5357
5358 Move Mac specific snapshotting code into its own file
5359 https://bugs.webkit.org/show_bug.cgi?id=114597
5360
5361 Reviewed by Andreas Kling.
5362
5363 * WebView/WebHTMLView.mm:
5364 (-[WebHTMLView _selectionDraggingImage]):
5365 (-[WebHTMLView selectionImageForcingBlackText:]):
5366
akling@apple.comb977e612013-04-14 15:19:59 +000053672013-04-14 Andreas Kling <akling@apple.com>
5368
5369 Move CSSOM classes to using MutableStylePropertySet over StylePropertySet.
5370 <http://webkit.org/b/114581>
5371
5372 Reviewed by Anders Carlsson.
5373
5374 * WebCoreSupport/WebEditorClient.mm:
5375 (WebEditorClient::shouldApplyStyle):
5376 * WebView/WebFrame.mm:
5377 (-[WebFrame _typingStyle]):
5378
weinig@apple.com123e4aa2013-04-14 00:54:27 +000053792013-04-10 Sam Weinig <sam@webkit.org>
5380
5381 Make Frame's ScriptController an OwnPtr and remove the #include
5382 https://bugs.webkit.org/show_bug.cgi?id=114105
5383
5384 Reviewed by Dean Jackson.
5385
5386 * Plugins/Hosted/HostedNetscapePluginStream.mm:
5387 * Plugins/WebNetscapePluginStream.mm:
5388 * Plugins/WebPluginContainerCheck.mm:
5389 * WebCoreSupport/WebGeolocationClient.mm:
5390 * WebCoreSupport/WebInspectorClient.mm:
5391 * WebView/WebFrame.mm:
5392
andersca@apple.come5e98f72013-04-13 22:28:34 +000053932013-04-13 Anders Carlsson <andersca@apple.com>
5394
5395 Add form delegate method that's invoked right before sending a submit event to a form element
5396 https://bugs.webkit.org/show_bug.cgi?id=114575
5397
5398 Reviewed by Dan Bernstein.
5399
5400 * MigrateHeaders.make:
5401 Copy DOMHTMLFormElementInternal.h over to WebKit.
5402
5403 * WebCoreSupport/WebFrameLoaderClient.mm:
5404 (makeFormFieldValuesDictionary):
5405 New helper function that returns the values of a form in dictionary form.
5406
5407 (WebFrameLoaderClient::dispatchWillSendSubmitEvent):
5408 Call the right delegate method.
5409
5410 (WebFrameLoaderClient::dispatchWillSubmitForm):
5411 Use the helper function.
5412
5413 * WebView/WebDelegateImplementationCaching.h:
5414 * WebView/WebDelegateImplementationCaching.mm:
5415 (CallFormDelegate):
5416 Add another overload.
5417
5418 * WebView/WebFormDelegate.h:
5419 * WebView/WebFormDelegate.m:
5420 (-[WebFormDelegate willSendSubmitEventToForm:inFrame:withValues:]):
5421 Add a default implementation.
5422
benjamin@webkit.org8cee4972013-04-11 00:20:36 +000054232013-04-10 Benjamin Poulain <bpoulain@apple.com>
5424
5425 Mass remove all the empty directories
5426
5427 Rubberstamped by Ryosuke Niwa.
5428
5429 * ForwardingHeaders/wtf/unicode/icu: Removed.
5430
andersca@apple.com9b9d83b2013-04-10 19:11:20 +000054312013-04-08 Anders Carlsson <andersca@apple.com>
5432
5433 Remove unneeded headers from FrameLoader.h
5434 https://bugs.webkit.org/show_bug.cgi?id=114223
5435
5436 Reviewed by Geoffrey Garen.
5437
5438 Include HistoryController.h from WebCore.
5439
5440 * WebCoreSupport/WebFrameLoaderClient.mm:
5441 * WebView/WebView.mm:
5442
ggaren@apple.com285b5e22013-04-10 18:51:47 +000054432013-04-09 Geoffrey Garen <ggaren@apple.com>
5444
5445 Removed bitrotted TimeoutChecker code
5446 https://bugs.webkit.org/show_bug.cgi?id=114336
5447
5448 Reviewed by Alexey Proskuryakov.
5449
5450 This mechanism hasn't worked for a while.
5451
5452 MarkL is working on a new version of this feature with a distinct
5453 implementation.
5454
5455 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5456 (WebKit::NetscapePluginInstanceProxy::evaluate):
5457
benjamin@webkit.orgde455ba72013-04-09 03:15:52 +000054582013-04-08 Benjamin Poulain <benjamin@webkit.org>
5459
5460 Remove HTML Notification
5461 https://bugs.webkit.org/show_bug.cgi?id=114231
5462
5463 Reviewed by Ryosuke Niwa.
5464
5465 * Configurations/FeatureDefines.xcconfig:
5466
andersca@apple.com8b914b12013-04-06 00:42:49 +000054672013-04-05 Anders Carlsson <andersca@apple.com>
5468
5469 Stop building Objective-C bindings for the SVG DOM
5470 https://bugs.webkit.org/show_bug.cgi?id=114076
5471
5472 Reviewed by Geoffrey Garen.
5473
5474 The DOM SVG Objective-C bindings have never been exposed as API, and not building them cuts WebCore build by 10%.
5475
5476 * Configurations/FeatureDefines.xcconfig:
5477 * MigrateHeaders.make:
5478
timothy@apple.com909cf7c2013-04-05 16:40:31 +000054792013-04-05 Timothy Hatcher <timothy@apple.com>
5480
5481 Allow the Web Inspector to use WebSQL.
5482
5483 This fixes an exception on load in the Safari Web Inspector.
5484
5485 https://webkit.org/b/114040
5486 rdar://problem/13581422
5487
5488 Reviewed by Anders Carlsson.
5489
5490 * WebCoreSupport/WebInspectorClient.mm:
5491 (-[WebInspectorWindowController webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): Added.
5492
timothy@apple.com7c416e72013-04-02 19:06:39 +000054932013-04-02 Timothy Hatcher <timothy@apple.com>
5494
5495 Provide a user default that can be used to disable docking of the Web Inspector.
5496
5497 The user default is "WebKit Web Inspector Setting - inspectorAttachDisabled".
5498
5499 https://webkit.org/b/113779
5500 rdar://problem/13446021
5501
5502 Reviewed by Joseph Pecoraro.
5503
5504 * WebCoreSupport/WebInspectorClient.h:
5505 (WebInspectorClient::inspectorAttachDisabled): Added.
5506 (WebInspectorClient::setInspectorAttachDisabled): Added.
5507
5508 * WebCoreSupport/WebInspectorClient.mm:
5509 (WebInspectorClient::didResizeMainFrame):
5510 (-[WebInspectorWindowController window]):
5511 (-[WebInspectorWindowController showWindow:]):
5512 Check inspectorAttachDisabled() in places where we attach or update the dock button.
5513
ap@apple.come55d3a42013-04-02 18:36:35 +000055142013-04-02 Alexey Proskuryakov <ap@apple.com>
5515
ap@apple.com0b3479b2013-04-02 19:52:22 +00005516 [Mac] Remove WKCreateNSURLConnectionDelegateProxy
5517 https://bugs.webkit.org/show_bug.cgi?id=113810
5518
5519 Reviewed by Anders Carlsson.
5520
5521 * WebCoreSupport/WebSystemInterface.mm:
5522 (InitWebCoreSystemInterface):
5523
55242013-04-02 Alexey Proskuryakov <ap@apple.com>
5525
ap@apple.come55d3a42013-04-02 18:36:35 +00005526 <rdar://problem/13551119> [WK2] Crashes in NetworkProcess when canceling loads
5527 https://bugs.webkit.org/show_bug.cgi?id=113803
5528
5529 Reviewed by Darin Adler.
5530
5531 * WebCoreSupport/WebFrameLoaderClient.mm:
5532 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
5533 Just pass nil instead of proxy.
5534
rniwa@webkit.orga072ef02013-04-02 17:35:33 +000055352013-04-01 Ryosuke Niwa <rniwa@webkit.org>
5536
5537 WebKit/mac shouldn't have code for Mac 10.5 and earlier
5538 https://bugs.webkit.org/show_bug.cgi?id=113746
5539
5540 Reviewed by Darin Adler.
5541
5542 Deleted the code for 10.5 and removed if-defs for 10.6.
5543
5544 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
5545 (-[WebHostedNetscapePluginView createPlugin]):
5546 * Plugins/WebBaseNetscapePluginView.mm:
5547 (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
5548 * Plugins/WebNetscapePluginView.mm:
5549 (-[WebNetscapePluginView createPlugin]):
5550 (-[WebNetscapePluginView getVariable:forURL:value:length:]):
5551 (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]):
5552 * WebCoreSupport/WebChromeClient.mm:
5553 (WebChromeClient::selectItemWritingDirectionIsNatural):
5554 (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection):
5555 * WebCoreSupport/WebEditorClient.mm:
5556 (core):
5557 (WebEditorClient::checkTextOfParagraph):
5558 (WebEditorClient::requestCheckingOfString):
5559 * WebView/WebDynamicScrollBarsView.mm:
5560 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
5561 * WebView/WebFullScreenController.mm:
5562 (-[WebFullScreenController _updateMenuAndDockForFullScreen]):
5563 * WebView/WebHTMLView.mm:
5564 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
5565 (-[WebHTMLView _frameOrBoundsChanged]):
5566 (+[WebHTMLView _insertablePasteboardTypes]):
5567 (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
5568 (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
5569 (writingDirectionKeyBindingsEnabled):
5570 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
5571 (-[WebHTMLView attachRootLayer:]):
5572 * WebView/WebHTMLViewInternal.h:
5573 * WebView/WebPDFDocumentExtras.mm:
5574 * WebView/WebPreferences.mm:
5575 (+[WebPreferences initialize]):
5576 * WebView/WebResourceInternal.h:
5577 * WebView/WebScriptDebugDelegate.h:
5578 * WebView/WebView.mm:
5579 (-[WebView _commonInitializationWithFrameName:groupName:]):
5580 (-[WebView _preferencesChanged:]):
5581 (+[WebView initialize]):
5582 (clientNeedsWebViewInitThreadWorkaround):
5583 (-[WebView validateUserInterfaceItemWithoutDelegate:]):
5584 (-[WebView setGrammarCheckingEnabled:]):
5585 (-[WebView isAutomaticQuoteSubstitutionEnabled]):
5586 (-[WebView isAutomaticLinkDetectionEnabled]):
5587 (-[WebView isAutomaticDashSubstitutionEnabled]):
5588 (-[WebView isAutomaticTextReplacementEnabled]):
5589 (-[WebView isAutomaticSpellingCorrectionEnabled]):
5590 (-[WebView _searchWithSpotlightFromMenu:]):
5591 (WebInstallMemoryPressureHandler):
5592 * WebView/WebViewPrivate.h:
5593
timothy_horton@apple.com52ca0ab2013-04-01 21:33:39 +000055942013-04-01 Tim Horton <timothy_horton@apple.com>
5595
5596 WebCache should do the normal initialization dance
5597 https://bugs.webkit.org/show_bug.cgi?id=113722
5598 <rdar://problem/13424530>
5599
5600 Reviewed by Anders Carlsson.
5601
5602 In case a WebKit1 client uses WebCache before creating a WebView (or any of the other
5603 initialization-ready classes), we should do the initialization work in WebCache as well.
5604
5605 * Misc/WebCache.mm:
5606 (+[WebCache initialize]):
5607
timothy@apple.com3e6451e2013-03-27 20:34:39 +000056082013-03-26 Timothy Hatcher <timothy@apple.com>
5609
5610 Add support for dock-to-right of the Web Inspector in the Mac port.
5611
5612 Unfortunately this requires Safari changes, so it is disabled in the nightly builds.
5613
5614 https://webkit.org/b/113341
5615 rdar://problem/10368152
5616
5617 Reviewed by Joseph Pecoraro.
5618
5619 * Resources/Dock.pdf: Updated.
5620 * WebCoreSupport/WebInspectorClient.h:
5621 (WebInspectorFrontendClient):
5622 * WebCoreSupport/WebInspectorClient.mm:
5623 (WebInspectorFrontendClient::frontendLoaded):
5624 (WebInspectorFrontendClient::attachWindow):
5625 (WebInspectorFrontendClient::setAttachedWindowWidth):
5626 (-[WebInspectorWindowController attachWindow:]):
5627 (-[WebInspectorWindowController attach]):
5628 (-[WebInspectorWindowController detach]):
5629 * WebInspector/WebInspectorFrontend.mm:
5630 (-[WebInspectorFrontend attach]):
5631
timothy_horton@apple.comf6a2bec2013-03-27 02:49:45 +000056322013-03-26 Tim Horton <timothy_horton@apple.com>
5633
5634 Unreviewed attempted cr-mac build fix.
5635
5636 * WebCoreSupport/WebSystemInterface.mm:
5637 (InitWebCoreSystemInterface):
5638
hayato@chromium.orgaf1544e2013-03-27 02:40:01 +000056392013-03-26 Hayato Ito <hayato@chromium.org>
5640
5641 Allow ShadowContents in HitTests by default.
5642 https://bugs.webkit.org/show_bug.cgi?id=113171
5643
5644 Reviewed by Dimitri Glazkov.
5645
5646 * WebView/WebFrame.mm:
5647 (-[WebFrame elementAtPoint:]):
5648 * WebView/WebHTMLView.mm:
5649 (-[WebHTMLView elementAtPoint:allowShadowContent:]):
5650
timothy_horton@apple.com15745132013-03-27 01:20:42 +000056512013-03-26 Tim Horton <timothy_horton@apple.com>
5652
5653 [ca] Tell CA to clean up unused resources if a given WebProcess won't be drawing
5654 https://bugs.webkit.org/show_bug.cgi?id=107539
5655 <rdar://problem/13032692>
5656
5657 Reviewed by Simon Fraser.
5658
5659 Update WebSystemInterface.
5660
5661 * WebCoreSupport/WebSystemInterface.mm:
5662 (InitWebCoreSystemInterface):
5663
sergio@webkit.org1874d7a2013-03-26 17:58:11 +000056642013-03-26 Sergio Villar Senin <svillar@igalia.com>
5665
5666 Implement overtype mode for editable content
5667 https://bugs.webkit.org/show_bug.cgi?id=112126
5668
5669 Reviewed by Ryosuke Niwa.
5670
5671 Added the OverWrite editing command to the WebCore editing
5672 commands lists.
5673
5674 * WebView/WebHTMLView.mm:
5675 * WebView/WebView.h:
5676 * WebView/WebView.mm:
5677
tkent@chromium.org866ba1b2013-03-26 03:28:51 +000056782013-03-25 Kent Tamura <tkent@chromium.org>
5679
5680 Rename ENABLE_INPUT_TYPE_DATETIME
5681 https://bugs.webkit.org/show_bug.cgi?id=113254
5682
5683 Reviewed by Kentaro Hara.
5684
5685 Rename ENABLE_INPUT_TYPE_DATETIME to ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE.
5686 Actually I'd like to remove the code, but we shouldn't remove it yet
5687 because we shipped products with it on some platforms.
5688
5689 * Configurations/FeatureDefines.xcconfig:
5690
cmuppala@apple.coma756fa62013-03-23 02:15:36 +000056912013-03-21 Kiran Muppala <cmuppala@apple.com>
5692
5693 Add runtime setting for hidden page DOM timer throttling and CSS animation suspension
5694 https://bugs.webkit.org/show_bug.cgi?id=112308
5695
5696 Reviewed by Gavin Barraclough.
5697
5698 Add private preference for enabling/disabling hidden page DOM timer
5699 throttling and CSS animation suspension. The preference should be
5700 disabled by default to avoid compatibility issues.
5701
5702 * WebView/WebPreferenceKeysPrivate.h:
5703 * WebView/WebPreferences.mm:
5704 (+[WebPreferences initialize]):
5705 (-[WebPreferences hiddenPageDOMTimerThrottlingEnabled]):
5706 (-[WebPreferences setHiddenPageDOMTimerThrottlingEnabled:]):
5707 (-[WebPreferences hiddenPageCSSAnimationSuspensionEnabled]):
5708 (-[WebPreferences setHiddenPageCSSAnimationSuspensionEnabled:]):
5709 * WebView/WebPreferencesPrivate.h:
5710 * WebView/WebView.mm:
5711 (-[WebView _preferencesChanged:]):
5712
rniwa@webkit.orgf9bc0b32013-03-19 20:04:38 +000057132013-03-19 Ryosuke Niwa <rniwa@webkit.org>
5714
rniwa@webkit.org466c2be2013-03-19 20:22:43 +00005715 Another Mac build fix attempt after r146239.
5716
5717 * WebCoreSupport/WebFrameNetworkingContext.h:
5718 (WebFrameNetworkingContext):
5719
57202013-03-19 Ryosuke Niwa <rniwa@webkit.org>
5721
rniwa@webkit.orgf9bc0b32013-03-19 20:04:38 +00005722 Mac build fix attempt after r146239.
5723
5724 * WebCoreSupport/WebFrameNetworkingContext.h:
5725
commit-queue@webkit.org7195ba52013-03-19 15:54:14 +000057262013-03-19 Sergey Ryazanov <serya@chromium.org>
5727
5728 Web Inspector: split Console into two entities, a web-facing bound object and page console.
5729 https://bugs.webkit.org/show_bug.cgi?id=111578
5730
5731 Reviewed by Vsevolod Vlasov.
5732
5733 Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary.
5734
5735 * Misc/WebCoreStatistics.mm:
5736 (+[WebCoreStatistics shouldPrintExceptions]):
5737 (+[WebCoreStatistics setShouldPrintExceptions:]):
5738
abarth@webkit.org72f1b412013-03-17 21:39:31 +000057392013-03-17 Adam Barth <abarth@webkit.org>
5740
5741 Legacy CSS vendor prefixes should only work for Dashboard
5742 https://bugs.webkit.org/show_bug.cgi?id=111890
5743
5744 Reviewed by Eric Seidel.
5745
5746 Enable legacy CSS vendor prefixes when we've been asked to turn on
5747 Dashboard compatibility mode.
5748
5749 * WebView/WebView.mm:
5750 (-[WebView _setDashboardBehavior:to:]):
5751
psolanki@apple.comc9ba86e2013-03-17 06:46:49 +000057522013-03-16 Pratik Solanki <psolanki@apple.com>
5753
5754 Disable High DPI Canvas on iOS
5755 https://bugs.webkit.org/show_bug.cgi?id=112511
5756
5757 Reviewed by Joseph Pecoraro.
5758
5759 * Configurations/FeatureDefines.xcconfig:
5760
timothy@apple.comf71c5192013-03-15 23:30:13 +000057612013-03-15 Timothy Hatcher <timothy@apple.com>
5762
5763 Disable suppressesIncrementalRendering for the Web Inspector.
5764
5765 This ends up causing the Inspector to show blank for a couple seconds before
5766 it does its first paint. During that time the bare window chrome is showing
5767 when the Inspector's background and other simple elements count be painting.
5768 This causes the Inspector to look like it is loading slower than reality.
5769
5770 https://bugs.webkit.org/show_bug.cgi?id=112300
5771 rdar://problem/13412219
5772
5773 Reviewed by Geoff Garen.
5774
5775 * WebCoreSupport/WebInspectorClient.mm:
5776 (-[WebInspectorWindowController init]): Disable suppressesIncrementalRendering.
5777
japhet@chromium.org7a771242013-03-15 17:45:06 +000057782013-03-15 Nate Chapin <japhet@chromium.org>
5779
5780 Hide MainResourceLoader from the outside world
5781 https://bugs.webkit.org/show_bug.cgi?id=109971
5782
5783 Reviewed by Adam Barth.
5784
5785 * WebCoreSupport/WebFrameLoaderClient.h:
5786 (WebFrameLoaderClient):
5787 * WebCoreSupport/WebFrameLoaderClient.mm:
5788 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
5789
inferno@chromium.org92242cb2013-03-15 17:31:20 +000057902013-03-15 Abhishek Arya <inferno@chromium.org>
5791
5792 Replace static_casts with to* helper functions.
5793 https://bugs.webkit.org/show_bug.cgi?id=112401
5794
5795 Reviewed by Stephen Chenney.
5796
5797 to* helper functions are preferred over static_cast calls since they
5798 help to catch bad casts easily on the testing infrastructure.
5799
5800 * WebView/WebRenderNode.mm:
5801 (copyRenderNode):
5802 * WebView/WebView.mm:
5803 (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
5804
commit-queue@webkit.org826c3d72013-03-14 21:54:17 +000058052013-03-14 Manuel Rego Casasnovas <rego@igalia.com>
5806
5807 Add selectTrailingWhitespaceEnabled setting to WebCore::Page
5808 https://bugs.webkit.org/show_bug.cgi?id=109404
5809
5810 Reviewed by Tony Chang.
5811
5812 Use new settings for smartInsertDeleteEnabled and
5813 selectTrailingWhitespaceEnabled.
5814
5815 * WebCoreSupport/WebEditorClient.mm:
5816 (WebEditorClient::smartInsertDeleteEnabled):
5817 (WebEditorClient::isSelectTrailingWhitespaceEnabled):
5818 * WebView/WebView.mm:
5819 (-[WebView _commonInitializationWithFrameName:groupName:]): Initialize
5820 settings from NSUserDefaults.
5821 (-[WebView setSelectTrailingWhitespaceEnabled:]):
5822 (-[WebView isSelectTrailingWhitespaceEnabled]):
5823 (-[WebView setSmartInsertDeleteEnabled:]):
5824 (-[WebView smartInsertDeleteEnabled]):
5825 * WebView/WebViewData.h:
5826 * WebView/WebViewData.mm:
5827 (-[WebViewPrivate init]):
5828
inferno@chromium.org9aa9e8d2013-03-14 16:08:06 +000058292013-03-14 Abhishek Arya <inferno@chromium.org>
5830
5831 Replace static_casts with to* helper functions.
5832 https://bugs.webkit.org/show_bug.cgi?id=112296
5833
5834 Reviewed by Kentaro Hara.
5835
5836 to* helper functions are preferred over static_cast calls since they
5837 help to catch bad casts easily on the testing infrastructure.
5838
5839 * WebCoreSupport/WebFrameLoaderClient.mm:
5840 (applyAppleDictionaryApplicationQuirkNonInlinePart):
5841 * WebView/WebHTMLRepresentation.mm:
5842 (searchForLabelsBeforeElement):
5843
alice.liu@apple.com03a44192013-03-14 07:30:59 +000058442013-03-14 Alice Liu <alice.liu@apple.com>
5845
5846 Add to HistoryItem a way to know if its underlying CachedPage has expired.
5847 https://bugs.webkit.org/show_bug.cgi?id=110652
5848
5849 Reviewed by Brady Eidson.
5850
5851 * History/WebHistoryItem.mm:
5852 (-[WebHistoryItem _isInPageCache]): Added. Just calls and returns core imple's function.
5853 (-[WebHistoryItem _hasCachedPageExpired]): Same thing.
5854 * History/WebHistoryItemPrivate.h:
5855 * WebView/WebPreferences.mm:
5856 (-[WebPreferences _backForwardCacheExpirationInterval]): Address fixme, now that WebCore::Settings
5857 has getters and setters with default value.
5858 * WebView/WebView.mm:
5859 (-[WebView _preferencesChanged:]): call setBackForwardCacheExpirationInterval similar to other settings.
5860
commit-queue@webkit.org63a7cee2013-03-14 03:52:55 +000058612013-03-13 Rik Cabanier <cabanier@adobe.com>
5862
5863 create runtime flags for CSS Compositing
5864 https://bugs.webkit.org/show_bug.cgi?id=111818
5865
5866 Reviewed by Ryosuke Niwa.
5867
5868 Added a preference to enable CSS compositing.
5869
5870 * WebView/WebPreferenceKeysPrivate.h:
5871 * WebView/WebPreferences.mm:
5872 (+[WebPreferences initialize]):
5873 (-[WebPreferences cssCompositingEnabled]):
5874 (-[WebPreferences setCSSCompositingEnabled:]):
5875 * WebView/WebPreferencesPrivate.h:
5876 * WebView/WebView.mm:
5877 (-[WebView _preferencesChanged:]):
5878
rniwa@webkit.orgd55ccf02013-03-13 22:57:56 +000058792013-03-13 Ryosuke Niwa <rniwa@webkit.org>
5880
5881 Threaded HTML Parser is missing feature define flags in all but Chromium port's build files
5882 https://bugs.webkit.org/show_bug.cgi?id=112277
5883
5884 Reviewed by Adam Barth.
5885
5886 * Configurations/FeatureDefines.xcconfig:
5887
pfeldman@chromium.org98d8ed62013-03-13 14:17:45 +000058882013-03-13 Pavel Feldman <pfeldman@chromium.org>
5889
5890 Web Inspector: get rid of hiddenPanels filter
5891 https://bugs.webkit.org/show_bug.cgi?id=112252
5892
5893 Reviewed by Vsevolod Vlasov.
5894
5895 * WebCoreSupport/WebInspectorClient.h:
5896 (WebInspectorFrontendClient):
5897 * WebCoreSupport/WebInspectorClient.mm:
5898 * WebKit.order:
5899
ggaren@apple.comb1a29842013-03-12 22:04:06 +000059002013-03-12 Geoffrey Garen <ggaren@apple.com>
5901
5902 Moved RunLoopTimer and SchedulePair to WTF
5903 https://bugs.webkit.org/show_bug.cgi?id=112171
5904
5905 Reviewed by Oliver Hunt.
5906
5907 This will allow us to use timers in lower level primitives without
5908 duplicating all the code.
5909
5910 * WebCoreSupport/WebFrameNetworkingContext.h:
5911 (WebFrameNetworkingContext):
5912
inferno@chromium.org371c01a2013-03-12 17:44:37 +000059132013-03-12 Abhishek Arya <inferno@chromium.org>
5914
5915 Replace static_casts with to* functions.
5916 https://bugs.webkit.org/show_bug.cgi?id=112072
5917
5918 Reviewed by Philip Rogers.
5919
5920 to* functions are preferred over static_cast calls since they
5921 help to catch bad casts easily on the testing infrastructure.
5922
5923 * WebView/WebView.mm:
5924 (-[WebView _enterFullscreenForNode:WebCore::]):
5925
commit-queue@webkit.org879eeb52013-03-12 03:00:16 +000059262013-03-11 Sheriff Bot <webkit.review.bot@gmail.com>
5927
5928 Unreviewed, rolling out r145462.
5929 http://trac.webkit.org/changeset/145462
5930 https://bugs.webkit.org/show_bug.cgi?id=112097
5931
5932 Compilation failure in PluginView.cpp (Requested by jamesr_ on
5933 #webkit).
5934
5935 * WebView/WebView.mm:
5936 (-[WebView _enterFullscreenForNode:WebCore::]):
5937
inferno@chromium.org228bd362013-03-12 01:59:09 +000059382013-03-11 Abhishek Arya <inferno@chromium.org>
5939
5940 Replace static_casts with to* functions.
5941 https://bugs.webkit.org/show_bug.cgi?id=112072
5942
5943 Reviewed by Philip Rogers.
5944
5945 to* functions are preferred over static_cast calls since they
5946 help to catch bad casts easily on the testing infrastructure.
5947
5948 * WebView/WebView.mm:
5949 (-[WebView _enterFullscreenForNode:WebCore::]):
5950
jochen@chromium.org03ba0512013-03-12 01:15:57 +000059512013-03-11 Jochen Eisinger <jochen@chromium.org>
5952
5953 Rename DefinitelyProcessingUserGesture to DefinitelyProcessingNewUserGesture
5954 https://bugs.webkit.org/show_bug.cgi?id=111959
5955
5956 Reviewed by Alexey Proskuryakov.
5957
5958 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5959 (WebKit::NetscapePluginInstanceProxy::evaluate):
5960 * Plugins/WebNetscapePluginView.mm:
5961 (-[WebNetscapePluginView sendEvent:isDrawRect:]):
5962
inferno@chromium.orgb9af1c12013-03-12 00:50:46 +000059632013-03-11 Abhishek Arya <inferno@chromium.org>
5964
5965 Replace static_cast with to* helper functions.
5966 https://bugs.webkit.org/show_bug.cgi?id=112045
5967
5968 Reviewed by Eric Seidel.
5969
5970 * WebView/WebRenderLayer.mm:
5971 (+[WebRenderLayer nameForLayer:]):
5972
jer.noble@apple.com3428ed52013-03-11 22:22:33 +000059732013-03-11 Jer Noble <jer.noble@apple.com>
5974
5975 Unreviewed build fix. Remove stray brace which crept into r145409.
5976
5977 * WebView/WebFullScreenController.mm:
5978 (-[WebFullScreenController performClose:]):
5979
jer.noble@apple.com97ded592013-03-11 21:51:19 +000059802013-01-30 Jer Noble <jer.noble@apple.com>
5981
5982 Mac: Cmd-w should close full screen window.
5983 https://bugs.webkit.org/show_bug.cgi?id=108406
5984
5985 Reviewed by Darin Adler.
5986
5987 Allow the user to close the full screen window with Cmd-w by making the full screen window
5988 closable, and by intercepting performClose:.
5989
5990 * WebView/WebFullScreenController.mm:
5991 (-[WebFullScreenController init]): Create a closable full screen window.
5992 (-[WebFullScreenController performClose:]): When we receive a close request in full screen mode,
5993 animate out of full screen.
5994
andersca@apple.com735da702013-03-08 02:29:48 +000059952013-03-07 Anders Carlsson <andersca@apple.com>
5996
5997 Add didFocusTextField:inFrame to WebFormDelegate
5998 https://bugs.webkit.org/show_bug.cgi?id=111804
5999
6000 Reviewed by Dan Bernstein.
6001
6002 * WebCoreSupport/WebChromeClient.mm:
6003 (WebChromeClient::focusedNodeChanged):
6004 * WebView/WebFormDelegate.h:
6005 * WebView/WebFormDelegate.m:
6006 (-[WebFormDelegate didFocusTextField:inFrame:]):
6007
jer.noble@apple.come0173752013-03-07 00:27:59 +000060082013-03-04 Jer Noble <jer.noble@apple.com>
6009
6010 Default mouse cursor behavior should be auto-hide for full screen video with custom controls
6011 https://bugs.webkit.org/show_bug.cgi?id=107601
6012
6013 Reviewed by Beth Dakin.
6014
6015 Enable the CURSOR_VISIBILITY feature.
6016
6017 * Configurations/FeatureDefines.xcconfig:
6018
ggaren@apple.com40e50782013-03-06 19:28:42 +000060192013-03-05 Geoffrey Garen <ggaren@apple.com>
6020
6021 Removed some dead code in the page cache
6022 https://bugs.webkit.org/show_bug.cgi?id=111525
6023
6024 Reviewed by Alexey Proskuryakov.
6025
6026 Page cache autorelease doesn't exist anymore, so there's no need to keep
6027 around these olds hacks.
6028
6029 This fixes <rdar://problem/4886761> Fix bizarre WebWindowWatcher policy in WebHistoryItem.
6030
6031 * History/WebHistoryItem.mm:
6032 (+[WebHistoryItem _releaseAllPendingPageCaches]):
6033 * History/WebHistoryItemInternal.h:
6034 * Misc/WebCoreStatistics.mm:
6035 (+[WebCoreStatistics autoreleasedPageCount]):
6036 * WebView/WebView.mm:
6037 (-[WebView _commonInitializationWithFrameName:groupName:]):
6038
commit-queue@webkit.orgc79ed842013-03-06 18:55:52 +000060392013-03-06 Dmitry Zvorygin <zvorygin@chromium.org>
6040
6041 Introduce new message sources for logging.
6042 https://bugs.webkit.org/show_bug.cgi?id=110968
6043
6044 Reviewed by Pavel Feldman.
6045
6046 * WebCoreSupport/WebChromeClient.mm:
6047 * WebView/WebUIDelegatePrivate.h:
6048
tkent@chromium.org8c35c122013-03-06 13:00:14 +000060492013-03-05 Kent Tamura <tkent@chromium.org>
6050
6051 Rename WebCore/editing/visible_units.* to VisibleUnits.*
6052 https://bugs.webkit.org/show_bug.cgi?id=111426
6053
6054 Reviewed by Alexey Proskuryakov.
6055
6056 * WebView/WebFrame.mm:
6057
commit-queue@webkit.org3257b232013-03-05 19:56:51 +000060582013-03-05 James Robinson <jamesr@chromium.org>
6059
6060 ContainerNode::setActive should not sleep for 100ms on platforms that do not implement synchronous repaint(true) semantics
6061 https://bugs.webkit.org/show_bug.cgi?id=87054
6062
6063 Reviewed by Darin Adler.
6064
6065 The Mac WebKit1 port supports immediate invalidations.
6066
6067 * WebCoreSupport/WebChromeClient.h:
6068 (WebChromeClient):
6069 * WebCoreSupport/WebChromeClient.mm:
6070 (WebChromeClient::supportsImmediateInvalidation):
6071
ddkilzer@apple.com8a4ac922013-03-05 16:58:53 +000060722013-03-05 David Kilzer <ddkilzer@apple.com>
6073
6074 BUILD FIX (r144698): Only enable SPEECH_SYNTHESIS for Mac
6075 <http://webkit.org/b/106742>
6076
6077 Fixes the following build failures:
6078
6079 Undefined symbols for architecture i386:
6080 "__ZTVN7WebCore25PlatformSpeechSynthesizerE", referenced from:
6081 __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
6082 NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
6083 "__ZN7WebCore25PlatformSpeechSynthesizer19initializeVoiceListEv", referenced from:
6084 __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
6085 ld: symbol(s) not found for architecture i386
6086
6087 * Configurations/FeatureDefines.xcconfig:
6088 - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
6089
ddkilzer@apple.com20a1ef62013-03-05 05:27:04 +000060902013-03-04 David Kilzer <ddkilzer@apple.com>
6091
6092 BUILD FIX (r144662): Import JSBase.h in WebFrameLoadDelegate.h
6093 <http://webkit.org/b/111269>
6094
6095 Fixes the following build failure:
6096
6097 In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11:
6098 In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29:
6099 Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:41:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef]
6100 #if JSC_OBJC_API_ENABLED
6101 ^
6102 Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:207:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef]
6103 #if JSC_OBJC_API_ENABLED
6104 ^
6105 2 errors generated.
6106
6107 * WebView/WebFrameLoadDelegate.h: Include JSBase.h.
6108
cfleizach@apple.coma9931ed2013-03-05 01:13:23 +000061092013-03-04 Chris Fleizach <cfleizach@apple.com>
6110
6111 Support WebSpeech - Speech Synthesis
6112 https://bugs.webkit.org/show_bug.cgi?id=106742
6113
6114 Reviewed by Simon Fraser.
6115
6116 Enable speech synthesis for the Mac.
6117
6118 * Configurations/FeatureDefines.xcconfig:
6119
mhahnenberg@apple.comf3520b72013-03-04 21:47:29 +000061202013-03-04 Mark Hahnenberg <mhahnenberg@apple.com>
6121
6122 Remove contextInternalContext from JSContextInternal.h
6123 https://bugs.webkit.org/show_bug.cgi?id=111356
6124
6125 Reviewed by Geoffrey Garen.
6126
6127 We don't need it any more since we have globalContextRef in JSContext.
6128
6129 * WebView/WebScriptWorld.mm:
6130 (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
6131
l.gombos@samsung.com0264c9e2013-03-04 21:11:33 +000061322013-03-04 Laszlo Gombos <l.gombos@samsung.com>
6133
6134 JSC_OBJC_API_ENABLED should be removed from FeatureDefines.h
6135 https://bugs.webkit.org/show_bug.cgi?id=111269
6136
6137 Reviewed by Mark Hahnenberg.
6138
6139 Include JavaScriptCore/JSBase.h for the definition of JSC_OBJC_API_ENABLED.
6140
6141 * WebView/WebDelegateImplementationCaching.h:
6142
commit-queue@webkit.org375fe102013-03-04 11:40:56 +000061432013-03-04 Kunihiko Sakamoto <ksakamoto@chromium.org>
6144
6145 Add build flag for FontLoader
6146 https://bugs.webkit.org/show_bug.cgi?id=111289
6147
6148 Reviewed by Benjamin Poulain.
6149
6150 Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default).
6151
6152 * Configurations/FeatureDefines.xcconfig:
6153
benjamin@webkit.org05f1e042013-03-04 06:28:55 +000061542013-03-03 Benjamin Poulain <benjamin@webkit.org>
6155
6156 [Mac] Get rid of a useless method from DOMHTMLInputElement
6157 https://bugs.webkit.org/show_bug.cgi?id=111279
6158
6159 Reviewed by Sam Weinig.
6160
6161 * DOM/WebDOMOperations.mm:
6162 * DOM/WebDOMOperationsPrivate.h:
6163 setValueForUser: is already privately exposed by DOMHTMLInputElement,
6164 no need to have it twice.
6165
abarth@webkit.orgfa616dd2013-03-03 09:16:26 +000061662013-03-03 Adam Barth <abarth@webkit.org>
6167
abarth@webkit.org401a3792013-03-03 10:12:59 +00006168 Unreviewed attempted build fix. Adds back some includes removed in
6169 http://trac.webkit.org/changeset/144565.
6170
6171 * DOM/WebDOMOperations.mm:
6172 * Misc/WebNSPasteboardExtras.mm:
6173 * WebCoreSupport/WebFrameNetworkingContext.mm:
6174 * WebView/WebRenderLayer.mm:
6175 * WebView/WebRenderNode.mm:
6176
61772013-03-03 Adam Barth <abarth@webkit.org>
6178
abarth@webkit.orgfa616dd2013-03-03 09:16:26 +00006179 Unreviewed rollout of http://trac.webkit.org/r144530
6180 As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and
6181 https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a
6182 large number of ASSERTs in chromium-win.
6183
6184 * DOM/WebDOMOperations.mm:
6185 * Misc/WebNSPasteboardExtras.mm:
6186 * WebCoreSupport/WebFrameNetworkingContext.mm:
6187 * WebView/WebRenderLayer.mm:
6188 * WebView/WebRenderNode.mm:
6189
darin@apple.com569b13f2013-03-03 05:55:53 +000061902013-02-18 Darin Adler <darin@apple.com>
6191
6192 Cut down the number of source files that depend on Clipboard.h
6193 https://bugs.webkit.org/show_bug.cgi?id=110030
6194
6195 Reviewed by Ryosuke Niwa.
6196
6197 * WebView/WebPDFView.mm: Add include of Clipboard.h since we use it
6198 here and the world no longer includes it everywhere.
6199
benjamin@webkit.org599049a2013-03-03 00:08:44 +000062002013-03-02 Benjamin Poulain <bpoulain@apple.com>
6201
6202 Move computedStyleIncludingVisitedInfo from TestRunner to Internals
6203 https://bugs.webkit.org/show_bug.cgi?id=109772
6204
6205 Reviewed by Andreas Kling.
6206
6207 * WebView/WebView.mm:
6208 * WebView/WebViewPrivate.h:
6209
ddkilzer@apple.come6494ce2013-03-02 23:36:00 +000062102013-03-02 David Kilzer <ddkilzer@apple.com>
6211
6212 BUILD FIX (r143637): Predeclare JSContext as an Objective-C class
6213 <http://webkit.org/b/106059>
6214
6215 Fixes the following build failure:
6216
6217 In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11:
6218 In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29:
6219 Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:215:64: error: expected a type
6220 - (void)webView:(WebView *)webView didCreateJavaScriptContext:(JSContext *)context forFrame:(WebFrame *)frame;
6221 ^
6222 1 error generated.
6223
6224 * WebView/WebFrameLoadDelegate.h: Add @class JSContext
6225 declaration.
6226
ap@apple.comfc363ce2013-03-02 06:36:29 +000062272013-02-28 Alexey Proskuryakov <ap@apple.com>
6228
6229 Reduce amount of rebuilding when touching networking headers
6230 https://bugs.webkit.org/show_bug.cgi?id=111035
6231
6232 Reviewed by Eric Seidel.
6233
6234 Adding includes that are now necessary because WebCore headers don't have them
6235 any more.
6236
6237 * DOM/WebDOMOperations.mm:
6238 * Misc/WebNSPasteboardExtras.mm:
6239 * WebCoreSupport/WebFrameNetworkingContext.mm:
6240 * WebView/WebRenderLayer.mm:
6241 * WebView/WebRenderNode.mm:
6242
commit-queue@webkit.orgf094d712013-03-02 05:06:30 +000062432013-03-01 Jason Anderssen <janderssen@gmail.com>
6244
6245 Move markerTextForListItem from TestRunner to Internals
6246 https://bugs.webkit.org/show_bug.cgi?id=110939
6247
6248 Reviewed by Benjamin Poulain.
6249
6250 * DOM/WebDOMOperations.mm:
6251 * DOM/WebDOMOperationsPrivate.h:
6252
weinig@apple.comb07df4162013-03-01 21:32:43 +000062532013-02-28 Sam Weinig <sam@webkit.org>
6254
6255 Add SPI for marking a WebView as doing things on behalf of another process
6256 https://bugs.webkit.org/show_bug.cgi?id=111125
6257
6258 Reviewed by Alexey Proskuryakov.
6259
6260 * WebCoreSupport/WebFrameNetworkingContext.h:
6261 (WebFrameNetworkingContext):
6262 * WebCoreSupport/WebFrameNetworkingContext.mm:
6263 (WebFrameNetworkingContext::sourceApplicationAuditData):
6264 * WebView/WebView.mm:
6265 (-[WebView _setSourceApplicationAuditData:]):
6266 (-[WebView _sourceApplicationAuditData]):
6267 * WebView/WebViewData.h:
6268 * WebView/WebViewData.mm:
6269 (-[WebViewPrivate dealloc]):
6270 * WebView/WebViewPrivate.h:
6271 Add SPI for setting a source application for a WebView.
6272
commit-queue@webkit.org0b87a6c2013-03-01 13:30:17 +000062732013-03-01 Sheriff Bot <webkit.review.bot@gmail.com>
6274
6275 Unreviewed, rolling out r144422 and r144424.
6276 http://trac.webkit.org/changeset/144422
6277 http://trac.webkit.org/changeset/144424
6278 https://bugs.webkit.org/show_bug.cgi?id=111167
6279
6280 Caused over 20 tests to fail assertion on Chromium Win port as
6281 ASSERTION FAILED: m_platformRequestUpdated (Requested by
6282 toyoshim on #webkit).
6283
6284 * DOM/WebDOMOperations.mm:
6285 * Misc/WebNSPasteboardExtras.mm:
6286 * WebCoreSupport/WebFrameNetworkingContext.mm:
6287 * WebView/WebRenderLayer.mm:
6288 * WebView/WebRenderNode.mm:
6289
ap@apple.comb2f13722013-03-01 07:26:10 +000062902013-02-28 Alexey Proskuryakov <ap@apple.com>
6291
6292 Reduce amount of rebuilding when touching networking headers
6293 https://bugs.webkit.org/show_bug.cgi?id=111035
6294
6295 Reviewed by Eric Seidel.
6296
6297 Adding includes that are now necessary because WebCore headers don't have them
6298 any more.
6299
6300 * DOM/WebDOMOperations.mm:
6301 * Misc/WebNSPasteboardExtras.mm:
6302 * WebCoreSupport/WebFrameNetworkingContext.mm:
6303 * WebView/WebRenderLayer.mm:
6304 * WebView/WebRenderNode.mm:
6305
commit-queue@webkit.org216b5ea2013-02-27 22:05:07 +000063062013-02-27 John Bauman <jbauman@chromium.org>
6307
6308 Plugin in iframe may not display
6309 https://bugs.webkit.org/show_bug.cgi?id=109879
6310
6311 Reviewed by Simon Fraser.
6312
6313 Ensure NetscapePluginWidget informs the plugin view of the cliprect change directly.
6314
6315 * Plugins/WebBaseNetscapePluginView.h:
6316 * WebCoreSupport/WebFrameLoaderClient.mm:
6317 (NetscapePluginWidget::clipRectChanged):
6318
ap@apple.com0c4b51f2013-02-27 19:14:16 +000063192013-02-26 Alexey Proskuryakov <ap@apple.com>
6320
6321 Don't add a body to platform request until necessary
6322 https://bugs.webkit.org/show_bug.cgi?id=110900
6323
6324 Reviewed by Brady Eidson.
6325
6326 WebKit1 behavior is unchanged, body is added on every conversion.
6327
6328 * WebCoreSupport/WebFrameLoaderClient.mm:
6329 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
6330 (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
6331 (WebFrameLoaderClient::assignIdentifierToInitialRequest):
6332 (WebFrameLoaderClient::dispatchWillSendRequest):
6333 (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
6334 (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
6335 (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
6336 (WebFrameLoaderClient::updateGlobalHistory):
6337 (WebFrameLoaderClient::canHandleRequest):
6338 * WebView/WebDataSource.mm:
6339 (-[WebDataSource initialRequest]):
6340 (-[WebDataSource request]):
6341 * WebView/WebFrame.mm:
6342 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
6343
glenn@skynav.com4ec5fea2013-02-27 18:46:00 +000063442013-02-27 Glenn Adams <glenn@skynav.com>
6345
6346 Add ENABLE_CSS3_TEXT_LINE_BREAK flag.
6347 https://bugs.webkit.org/show_bug.cgi?id=110944
6348
6349 Reviewed by Dean Jackson.
6350
6351 * Configurations/FeatureDefines.xcconfig:
6352
jer.noble@apple.com96f647a2013-02-26 20:51:43 +000063532013-02-26 Jer Noble <jer.noble@apple.com>
6354
6355 Unreviewed build fix; use correct macro for platform name in FeatureDefines.xcconfig.
6356
6357 * Configurations/FeatureDefines.xcconfig:
6358
commit-queue@webkit.orgc588b482013-02-26 16:37:50 +000063592013-02-26 Dmitry Zvorygin <zvorygin@chromium.org>
6360
6361 Merged Tip and Debug log levels for web console.
6362 https://bugs.webkit.org/show_bug.cgi?id=109919
6363
6364 Reviewed by Pavel Feldman.
6365
6366 In every component either TIP or DEBUG level was used for reporting,
6367 but not both. This patch is prerequisite for Web Inspector console log filtering.
6368
6369 * WebCoreSupport/WebChromeClient.mm:
6370 (stringForMessageLevel):
6371 * WebView/WebUIDelegatePrivate.h:
6372
6373
jpfau@apple.com97c6a7f2013-02-26 00:49:17 +000063742013-02-21 Jeffrey Pfau <jpfau@apple.com>
6375
6376 Optionally partition cache to prevent using cache for tracking
6377 https://bugs.webkit.org/show_bug.cgi?id=110269
6378
6379 Reviewed by Maciej Stachowiak.
6380
6381 Update WKSI bindings and add feature defines.
6382
6383 * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
6384 * WebCoreSupport/WebSystemInterface.mm:
6385 (InitWebCoreSystemInterface):
6386
jer.noble@apple.com9c219252013-02-26 00:21:51 +000063872013-02-25 Jer Noble <jer.noble@apple.com>
6388
6389 Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files.
6390 https://bugs.webkit.org/show_bug.cgi?id=110806
6391
6392 Reviewed by Alexey Proskuryakov.
6393
6394 Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
6395
6396 * Configurations/FeatureDefines.xcconfig:
6397
akling@apple.com179f7df2013-02-25 15:49:25 +000063982013-02-25 Andreas Kling <akling@apple.com>
6399
6400 Reduce amount of code that includes StylePropertySet.h
6401 <http://webkit.org/b/101149>
6402
6403 Reviewed by Antti Koivisto.
6404
6405 * WebCoreSupport/WebEditorClient.mm:
6406 * WebView/WebFrame.mm:
6407 * WebView/WebView.mm:
6408
akling@apple.comb15671a2013-02-24 13:01:06 +000064092013-02-24 Andreas Kling <akling@apple.com>
6410
6411 Reduce include graph of JSDOMBinding.h
6412 <http://webkit.org/b/110709>
6413
6414 Reviewed by Antti Koivisto.
6415
6416 * WebView/WebHTMLView.mm:
6417
g.czajkowski@samsung.com27d1d762013-02-22 06:00:50 +000064182013-02-21 Grzegorz Czajkowski <g.czajkowski@samsung.com>
6419
6420 Allow to retrieve the request data from abstract TextCheckingRequest to be accessible for WK2
6421 https://bugs.webkit.org/show_bug.cgi?id=110208
6422
6423 Reviewed by Hajime Morrita.
6424
6425 * WebCoreSupport/WebEditorClient.mm:
6426 (WebEditorClient::didCheckSucceed):
6427 (WebEditorClient::requestCheckingOfString):
6428 Extract the request data as it is the member of 'TextCheckingRequest'.
6429
mhahnenberg@apple.comf0712f92013-02-21 20:00:33 +000064302013-02-19 Mark Hahnenberg <mhahnenberg@apple.com>
6431
6432 Objective-C API: Need a way to use the Objective-C JavaScript API with WebKit
6433 https://bugs.webkit.org/show_bug.cgi?id=106059
6434
6435 Reviewed by Geoffrey Garen.
6436
6437 Addition of appropriate delegate callbacks and support to the WebKit API.
6438
6439 * WebCoreSupport/WebFrameLoaderClient.mm:
6440 * WebView/WebDelegateImplementationCaching.h:
6441 (WebFrameLoadDelegateImplementationCache):
6442 * WebView/WebFrame.h:
6443 * WebView/WebFrame.mm:
6444 (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
6445 (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
6446 (-[WebFrame _javaScriptContextForScriptWorld:]):
6447 (-[WebFrame javaScriptContext]):
6448 * WebView/WebFrameLoadDelegate.h:
6449 * WebView/WebFramePrivate.h:
6450 * WebView/WebScriptDebugDelegate.mm:
6451 (-[WebScriptCallFrame _convertValueToObjcValue:JSC::]):
6452 (-[WebScriptCallFrame exception]):
6453 (-[WebScriptCallFrame evaluateWebScript:]):
6454 * WebView/WebScriptWorld.h:
6455 * WebView/WebScriptWorld.mm:
6456 (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
6457 * WebView/WebView.mm:
6458 (-[WebView _cacheFrameLoadDelegateImplementations]):
6459 (aeDescFromJSValue):
6460 (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
6461 (-[WebView _computedStyleIncludingVisitedInfo:forElement:]):
6462
krit@webkit.org8a0aef22013-02-20 22:14:04 +000064632013-02-20 Dirk Schulze <krit@webkit.org>
6464
6465 Enable CANVAS_PATH flag
6466 https://bugs.webkit.org/show_bug.cgi?id=108508
6467
6468 Reviewed by Simon Fraser.
6469
6470 Enable CANVAS_PATH flag on trunk.
6471
6472 * Configurations/FeatureDefines.xcconfig:
6473
timothy_horton@apple.come884ddb2013-02-20 05:53:02 +000064742013-02-19 Tim Horton <timothy_horton@apple.com>
6475
6476 Clarify isInWindow vs. isVisible path through to RenderLayerCompositor
6477 https://bugs.webkit.org/show_bug.cgi?id=110261
6478 <rdar://problem/13196122>
6479
6480 Reviewed by Simon Fraser.
6481
6482 * WebView/WebView.mm:
6483 (-[WebView viewWillMoveToWindow:]):
6484 (-[WebView viewDidMoveToWindow]):
6485 Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
6486
andersca@apple.com79eee902013-02-19 02:55:26 +000064872013-02-18 Anders Carlsson <andersca@apple.com>
6488
6489 Add a DefaultHash for RefPtr<SecurityOrigin>
6490 https://bugs.webkit.org/show_bug.cgi?id=110170
6491
6492 Reviewed by Andreas Kling.
6493
6494 Remove all explicit uses of SecurityOriginHash.
6495
6496 * WebCoreSupport/WebApplicationCache.mm:
6497 (+[WebApplicationCache originsWithCache]):
6498
benjamin@webkit.org5ff01302013-02-16 05:19:33 +000064992013-02-15 Eric Carlson <eric.carlson@apple.com>
6500
6501 [Mac] remove wkCaptionAppearance from WebKitSystemInterface
6502 https://bugs.webkit.org/show_bug.cgi?id=109996
6503
6504 Reviewed by Simon Fraser.
6505
6506 * WebCoreSupport/WebSystemInterface.mm:
6507 (InitWebCoreSystemInterface):
6508
commit-queue@webkit.org04402ce2013-02-16 04:31:14 +000065092013-02-15 Sheriff Bot <webkit.review.bot@gmail.com>
6510
6511 Unreviewed, rolling out r143088.
6512 http://trac.webkit.org/changeset/143088
6513 https://bugs.webkit.org/show_bug.cgi?id=110000
6514
6515 Breaks the build (Requested by dgorbik on #webkit).
6516
6517 * WebCoreSupport/WebSystemInterface.mm:
6518 (InitWebCoreSystemInterface):
6519
eric.carlson@apple.com706002f2013-02-16 02:33:40 +000065202013-02-15 Eric Carlson <eric.carlson@apple.com>
6521
6522 [Mac] remove wkCaptionAppearance from WebKitSystemInterface
6523 https://bugs.webkit.org/show_bug.cgi?id=109996
6524
6525 Reviewed by Simon Fraser.
6526
6527 * WebCoreSupport/WebSystemInterface.mm:
6528 (InitWebCoreSystemInterface):
6529
allan.jensen@digia.comeb0e1f92013-02-15 10:46:33 +000065302013-02-15 Allan Sandfeld Jensen <allan.jensen@digia.com>
6531
6532 Simplify hitTestResultAtPoint and nodesFromRect APIs
6533 https://bugs.webkit.org/show_bug.cgi?id=95720
6534
6535 Reviewed by Julien Chaffraix.
6536
6537 Update calls to new API.
6538
6539 * WebCoreSupport/WebFrameLoaderClient.mm:
6540 (WebFrameLoaderClient::actionDictionary):
6541 * WebView/WebFrame.mm:
6542 (-[WebFrame elementAtPoint:]):
6543 * WebView/WebHTMLView.mm:
6544 (-[WebHTMLView elementAtPoint:allowShadowContent:]):
6545
ddkilzer@apple.comf8d0ba42013-02-14 21:16:47 +000065462013-02-14 David Kilzer <ddkilzer@apple.com>
6547
6548 [Mac] Clean up WARNING_CFLAGS
6549 <http://webkit.org/b/109747>
6550 <rdar://problem/13208373>
6551
6552 Reviewed by Mark Rowe.
6553
6554 * Configurations/Base.xcconfig: Use
6555 GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
6556 -Wshorten-64-to-32 rather than WARNING_CFLAGS.
6557
zandobersek@gmail.com9182d472013-02-13 23:01:21 +000065582013-02-13 Zan Dobersek <zdobersek@igalia.com>
6559
6560 The 'global isinf/isnan' compiler quirk required when using clang with libstdc++
6561 https://bugs.webkit.org/show_bug.cgi?id=109325
6562
6563 Reviewed by Anders Carlsson.
6564
6565 Prefix calls to the isinf and isnan methods with std::, declaring we want to use the
6566 two methods as they're provided by the C++ standard library being used.
6567
6568 * tests/DecimalTest.cpp:
6569 (TEST_F):
6570
commit-queue@webkit.org154e1792013-02-13 02:13:50 +000065712013-02-12 Joseph Pecoraro <pecoraro@apple.com>
6572
6573 [iOS] Enable PAGE_VISIBILITY_API
6574 https://bugs.webkit.org/show_bug.cgi?id=109399
6575
6576 Reviewed by David Kilzer.
6577
6578 * Configurations/FeatureDefines.xcconfig:
6579
ddkilzer@apple.com6c8d38d2013-02-12 16:45:26 +000065802013-02-12 David Kilzer <ddkilzer@apple.com>
6581
6582 BUILD FIX (r142576): WK1 build fails when ENABLE(DELETION_UI) is off
6583 <https://bugs.webkit.org/show_bug.cgi?id=109534>
6584
6585 Fixes the following build failure:
6586
6587 WebEditorClient.mm:243:23: error: out-of-line definition of 'shouldShowDeleteInterface' does not match any declaration in 'WebEditorClient'
6588 bool WebEditorClient::shouldShowDeleteInterface(HTMLElement* element)
6589 ^~~~~~~~~~~~~~~~~~~~~~~~~
6590
6591 * WebCoreSupport/WebEditorClient.mm:
6592 (WebEditorClient::shouldShowDeleteInterface): Protect with
6593 ENABLE(DELETION_UI) macro.
6594
rniwa@webkit.org4098b4e2013-02-12 04:55:35 +000065952013-02-11 Ryosuke Niwa <rniwa@webkit.org>
6596
6597 Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
6598 https://bugs.webkit.org/show_bug.cgi?id=109534
6599
6600 Reviewed by Anders Carlsson.
6601
6602 * WebCoreSupport/WebEditorClient.h:
6603
benjamin@webkit.orgeee9a0d2013-02-11 21:41:01 +000066042013-02-11 Benjamin Poulain <benjamin@webkit.org>
6605
6606 Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
6607 https://bugs.webkit.org/show_bug.cgi?id=109349
6608
6609 Reviewed by Sam Weinig.
6610
6611 * WebView/WebView.mm:
6612 * WebView/WebViewPrivate.h:
6613
mitz@apple.come4e91a62013-02-10 17:48:53 +000066142013-02-10 Dan Bernstein <mitz@apple.com>
6615
6616 Added *.pdf to EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
6617
6618 Rubber-stamped by Anders Carlsson.
6619
6620 * Configurations/WebKit.xcconfig:
6621
commit-queue@webkit.org245e4842013-02-10 11:23:23 +000066222013-02-10 Jae Hyun Park <jae.park08@gmail.com>
6623
6624 Rename ENABLE(GLIB_SUPPORT) to USE(GLIB)
6625 https://bugs.webkit.org/show_bug.cgi?id=104266
6626
6627 Reviewed by Philippe Normand.
6628
6629 Using USE(GLIB) instead of ENABLE(GLIB_SUPPORT) is more consistent with
6630 the existing macro naming conventions.
6631
6632 From Platform.h
6633 USE() - use a particular third-party library or optional OS service
6634 ENABLE() - turn on a specific feature of WebKit
6635
6636 * WebView/WebView.mm:
6637 (-[WebView _commonInitializationWithFrameName:groupName:]):
6638 (-[WebView _close]):
6639 * WebView/WebViewData.h:
6640 * WebView/WebViewInternal.h:
6641
benjamin@webkit.orgb9181b32013-02-09 05:17:53 +000066422013-02-08 Benjamin Poulain <bpoulain@apple.com>
6643
6644 Move workerThreadCount from TestRunner to WebCore Internals
6645 https://bugs.webkit.org/show_bug.cgi?id=109239
6646
6647 Reviewed by Darin Adler.
6648
6649 Get rid of WebWorkersPrivate, which was only needed for DRT.
6650
6651 * WebKit.exp:
6652 * Workers/WebWorkersPrivate.h: Removed.
6653 * Workers/WebWorkersPrivate.mm: Removed.
6654
commit-queue@webkit.org045bc7a2013-02-08 05:32:45 +000066552013-02-07 Sheriff Bot <webkit.review.bot@gmail.com>
6656
6657 Unreviewed, rolling out r142212.
6658 http://trac.webkit.org/changeset/142212
6659 https://bugs.webkit.org/show_bug.cgi?id=109255
6660
6661 Causes ASSERT(!m_installed) on launch (Requested by smfr on
6662 #webkit).
6663
6664 * WebView/WebView.mm:
6665 (-[WebView _commonInitializationWithFrameName:groupName:]):
6666 (WebInstallMemoryPressureHandler):
6667
barraclough@apple.com0f146df2013-02-08 01:22:05 +000066682013-02-06 Gavin Barraclough <barraclough@apple.com>
6669
6670 PluginProcess should quit immediately if idle in response to low-memory notifications
6671 https://bugs.webkit.org/show_bug.cgi?id=109103
6672 <rdar://problem/12679827>
6673
6674 Reviewed by Darin Adler.
6675
6676 * WebView/WebView.mm:
6677 (-[WebView _commonInitializationWithFrameName:groupName:]):
6678 - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
6679 (WebInstallMemoryPressureHandler):
6680 - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
6681
benjamin@webkit.org84dbb0d2013-02-07 21:34:32 +000066822013-02-07 Benjamin Poulain <bpoulain@apple.com>
6683
6684 Move pauseAnimation/pauseTransition from TestRunner to Internals
6685 https://bugs.webkit.org/show_bug.cgi?id=109107
6686
6687 Reviewed by Anders Carlsson.
6688
6689 * WebView/WebFrame.mm:
6690 * WebView/WebFramePrivate.h:
6691
mkwst@chromium.orgebd38582013-02-06 12:07:10 +000066922013-02-06 Mike West <mkwst@chromium.org>
6693
6694 Add an ENABLE_NOSNIFF feature flag.
6695 https://bugs.webkit.org/show_bug.cgi?id=109029
6696
6697 Reviewed by Jochen Eisinger.
6698
6699 This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
6700 when processing script and other resource types.
6701
6702 * Configurations/FeatureDefines.xcconfig:
6703
benjamin@webkit.org99308ba2013-02-05 04:21:13 +000067042013-02-04 Benjamin Poulain <bpoulain@apple.com>
6705
6706 Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
6707 https://bugs.webkit.org/show_bug.cgi?id=108741
6708
6709 Reviewed by Tony Chang.
6710
6711 * WebView/WebFrame.mm:
6712 * WebView/WebFramePrivate.h:
6713
enrica@apple.com70fd2d72013-02-04 21:22:01 +000067142013-02-04 Enrica Casucci <enrica@apple.com>
6715
6716 Add specific EditActions for Bold and Italic commands.
6717 https://bugs.webkit.org/show_bug.cgi?id=108842.
6718 <rdar://problem/13098252>
6719
6720 Reviewed by Ryosuke Niwa.
6721
6722 * WebCoreSupport/WebEditorClient.mm:
6723 (undoNameForEditAction):
6724
ddkilzer@apple.com5116cad2013-02-04 07:16:37 +000067252013-02-03 David Kilzer <ddkilzer@apple.com>
6726
6727 Upstream ENABLE_PDFKIT_PLUGIN settting
6728 <http://webkit.org/b/108792>
6729
6730 Reviewed by Tim Horton.
6731
6732 * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
6733 on iOS since PDFKit is a Mac-only framework.
6734
ddkilzer@apple.com0bbb80c2013-02-02 19:02:36 +000067352013-02-02 David Kilzer <ddkilzer@apple.com>
6736
6737 Upstream iOS FeatureDefines
6738 <http://webkit.org/b/108753>
6739
6740 Reviewed by Anders Carlsson.
6741
6742 * Configurations/FeatureDefines.xcconfig:
6743 - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
6744 - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
6745 - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO. Add
6746 PLATFORM_NAME variant to reduce future merge conflicts.
6747
alexis@webkit.org5b4483d2013-02-01 12:16:51 +000067482013-02-01 Alexis Menard <alexis@webkit.org>
6749
6750 Enable unprefixed CSS transitions by default.
6751 https://bugs.webkit.org/show_bug.cgi?id=108216
6752
6753 Reviewed by Dean Jackson.
6754
6755 Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
6756 to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
6757 guard the unprefixing work for CSS Transforms and animations.
6758
6759 * Configurations/FeatureDefines.xcconfig:
6760
commit-queue@webkit.orgdc62d202013-02-01 07:43:13 +000067612013-01-31 Aurimas Liutikas <aurimas@chromium.org>
6762
6763 Editor::m_compositionNode not updated on HTMLInputElement::setValue()
6764 https://bugs.webkit.org/show_bug.cgi?id=107737
6765
6766 Reviewed by Ryosuke Niwa.
6767
6768 * WebView/WebHTMLView.mm:
6769 (-[WebHTMLView _updateSelectionForInputManager]):
6770
commit-queue@webkit.org8ae7c362013-02-01 03:20:48 +000067712013-01-31 Sheriff Bot <webkit.review.bot@gmail.com>
6772
6773 Unreviewed, rolling out r141479.
6774 http://trac.webkit.org/changeset/141479
6775 https://bugs.webkit.org/show_bug.cgi?id=108564
6776
6777 breaks chromium test (Requested by morrita on #webkit).
6778
6779 * WebView/WebHTMLView.mm:
6780 (-[WebHTMLView _updateSelectionForInputManager]):
6781
enrica@apple.com92ce58d2013-02-01 01:25:28 +000067822013-01-31 Enrica Casucci <enrica@apple.com>
6783
6784 Mac: Editor::baseWritingDirectionForSelectionStart should return WritingDirection instead of NSWritingDirection.
6785 https://bugs.webkit.org/show_bug.cgi?id=108519.
6786
6787 Reviewed by Sam Weinig.
6788
6789 There is no need to use AppKit types here.
6790 baseWritingDirectionForSelectionStart now returns WritingDirection and
6791 WebHTMLView toggleWritingDirection has been modified accordingly.
6792
6793 * WebView/WebHTMLView.mm:
6794 (-[WebHTMLView toggleBaseWritingDirection:]):
6795
commit-queue@webkit.org74f942e2013-01-31 21:50:17 +000067962013-01-31 Aurimas Liutikas <aurimas@chromium.org>
6797
6798 Editor::m_compositionNode not updated on HTMLInputElement::setValue()
6799 https://bugs.webkit.org/show_bug.cgi?id=107737
6800
6801 Reviewed by Ryosuke Niwa.
6802
6803 * WebView/WebHTMLView.mm:
6804 (-[WebHTMLView _updateSelectionForInputManager]):
6805
joepeck@webkit.orgd59be5b2013-01-31 21:42:46 +000068062013-01-31 Joseph Pecoraro <pecoraro@apple.com>
6807
6808 Disable ENABLE_FULLSCREEN_API on iOS
6809 https://bugs.webkit.org/show_bug.cgi?id=108250
6810
6811 Reviewed by Benjamin Poulain.
6812
6813 * Configurations/FeatureDefines.xcconfig:
6814
enrica@apple.com7eb1d5b2013-01-31 21:14:58 +000068152013-01-31 Enrica Casucci <enrica@apple.com>
6816
6817 WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
6818 https://bugs.webkit.org/show_bug.cgi?id=108396.
6819 <rdar://problem/12920461>
6820
6821 Reviewed by Alexey Proskuryakov.
6822
6823 Adds stub implementation for WebKit of the new EditorClient methods.
6824
6825 * WebCoreSupport/WebEditorClient.h:
6826 * WebCoreSupport/WebEditorClient.mm:
6827 (WebEditorClient::willWriteSelectionToPasteboard):
6828 (WebEditorClient::getClientPasteboardDataForRange):
6829
beidson@apple.com8418a022013-01-31 19:06:51 +000068302013-01-31 Brady Eidson <beidson@apple.com>
6831
6832 Lack of a log level string should not obliterate compiled in logging channel state.
6833 https://bugs.webkit.org/show_bug.cgi?id=108502
6834
6835 Reviewed by Alexey Proskuryakov and Sam Weinig.
6836
6837 * Misc/WebKitLogging.m: If there's no log level string, leave the channel state alone.
6838
commit-queue@webkit.org2499ccc2013-01-30 02:30:56 +000068392013-01-29 Sheriff Bot <webkit.review.bot@gmail.com>
6840
6841 Unreviewed, rolling out r140983.
6842 http://trac.webkit.org/changeset/140983
6843 https://bugs.webkit.org/show_bug.cgi?id=108277
6844
6845 Unfortunately, this API has one last client (Requested by
6846 abarth on #webkit).
6847
6848 * Configurations/FeatureDefines.xcconfig:
6849
jer.noble@apple.com0219d642013-01-29 23:54:46 +000068502012-11-28 Jer Noble <jer.noble@apple.com>
6851
6852 Allow clients to ask for the WebView/WKView placeholder view when in full screen mode.
6853 https://bugs.webkit.org/show_bug.cgi?id=103558
6854 <rdar://problem/12763112>
6855
6856 Reviewed by Benjamin Poulain.
6857
6858 Clients may want to behave differently when their WebView/WKView has been swapped out by a placeholder
6859 view when in full screen mode. Add a simple accessor for the existing placeholder view to
6860 WebFullScreenController and WebView.
6861
6862 * WebView/WebFullScreenController.h:
6863 * WebView/WebFullScreenController.mm:
6864 (-[WebFullScreenController webViewPlaceholder]): Added simple accessor.
6865 * WebView/WebView.mm:
6866 (-[WebView fullScreenPlaceholderView]): Added simple accessor.
6867
psolanki@apple.com1fa6d922013-01-29 00:18:29 +000068682013-01-28 Pratik Solanki <psolanki@apple.com>
6869
6870 PLATFORM(IOS) should come before __MAC_OS_X_VERSION_MIN_REQUIRED
6871 https://bugs.webkit.org/show_bug.cgi?id=108101
6872
6873 Reviewed by Benjamin Poulain.
6874
6875 Since iOS does not define __MAC_OS_X_VERSION_MIN_REQUIRED, any usage of
6876 __MAC_OS_X_VERSION_MIN_REQUIRED should be after a PLATFORM(IOS) check.
6877
6878 * WebCoreSupport/WebSystemInterface.mm:
6879 (InitWebCoreSystemInterface):
6880
joepeck@webkit.org5fd52db2013-01-28 22:38:23 +000068812013-01-28 Joseph Pecoraro <pecoraro@apple.com>
6882
joepeck@webkit.org2152e362013-01-28 22:38:26 +00006883 [Mac] Update PageVisibilityState when WebView is hidden / visible
6884 https://bugs.webkit.org/show_bug.cgi?id=107509
6885
6886 Reviewed by Sam Weinig.
6887
6888 * WebView/WebView.mm:
6889 * WebView/WebViewPrivate.h:
6890 (-[WebView _commonInitializationWithFrameName:groupName:]):
6891 Set the initial visibility of the page.
6892
6893 (-[WebView addWindowObserversForWindow:]):
6894 (-[WebView removeWindowObservers]):
6895 (-[WebView _isViewVisible]):
6896 (-[WebView _updateVisibilityState]):
6897 (-[WebView viewDidMoveToWindow]):
6898 (-[WebView _windowVisibilityChanged:]):
6899 Update visibility state in the same ways WK2 does. This involves
6900 listening for some new NSWindow delegates.
6901
69022013-01-28 Joseph Pecoraro <pecoraro@apple.com>
6903
joepeck@webkit.org5fd52db2013-01-28 22:38:23 +00006904 Improve PageVisibility API with enums
6905 https://bugs.webkit.org/show_bug.cgi?id=107364
6906
6907 Reviewed by Sam Weinig.
6908
6909 * WebView/WebView.mm:
6910 * WebView/WebViewPrivate.h:
6911 (core):
6912 (-[WebView _setVisibilityState:isInitialState:]):
6913 Switch the private API form int to a WebPageVisibilityState enum.
6914
abarth@webkit.orgbdac8e62013-01-28 19:23:05 +000069152013-01-28 Adam Barth <abarth@webkit.org>
6916
6917 Remove webkitNotifications.createHTMLNotification
6918 https://bugs.webkit.org/show_bug.cgi?id=107598
6919
6920 Reviewed by Benjamin Poulain.
6921
6922 * Configurations/FeatureDefines.xcconfig:
6923
aestes@apple.com39673492013-01-26 00:10:46 +000069242013-01-25 Andy Estes <aestes@apple.com>
6925
6926 Wrap content filtering code in an object
6927 https://bugs.webkit.org/show_bug.cgi?id=107914
6928
6929 Reviewed by Alexey Proskuryakov.
6930
6931 * WebCoreSupport/WebSystemInterface.mm:
6932 (InitWebCoreSystemInterface): Updated to reflect changes in WKSI.
6933
mitz@apple.comfacb2262013-01-25 08:21:37 +000069342013-01-24 Dan Bernstein <mitz@apple.com>
6935
6936 WebNavigationData does not distinguish between an empty title and a missing title
6937 https://bugs.webkit.org/show_bug.cgi?id=107917
6938
6939 Reviewed by Andy Estes.
6940
6941 * WebCoreSupport/WebFrameLoaderClient.mm:
6942 (nilOrNSString): Added this helper function.
6943 (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with a nil
6944 title, rather than the empty string, if the document does not have a title.
6945
mhahnenberg@apple.comc1bc9d32013-01-24 21:39:55 +000069462013-01-24 Mark Hahnenberg <mhahnenberg@apple.com>
6947
6948 Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h
6949 https://bugs.webkit.org/show_bug.cgi?id=107327
6950
6951 Reviewed by Filip Pizlo.
6952
6953 We're renaming these two files, so we have to replace the names everywhere.
6954
6955 * DOM/WebDOMOperations.mm:
6956 * ForwardingHeaders/runtime/JSCJSValue.h: Copied from Source/WebKit/mac/ForwardingHeaders/runtime/JSValue.h.
6957 * ForwardingHeaders/runtime/JSValue.h: Removed.
6958 * WebView/WebFrame.mm:
6959 * WebView/WebView.mm:
6960
andersca@apple.com89cf38d2013-01-23 03:07:08 +000069612013-01-22 Anders Carlsson <andersca@apple.com>
6962
6963 Use a platforom strategy for local storage
6964 https://bugs.webkit.org/show_bug.cgi?id=107600
6965
6966 Reviewed by Andreas Kling.
6967
6968 Update for new storage strategy.
6969
6970 * WebCoreSupport/WebPlatformStrategies.h:
6971 (WebPlatformStrategies):
6972 * WebCoreSupport/WebPlatformStrategies.mm:
6973 (WebPlatformStrategies::createStorageStrategy):
6974
haraken@chromium.org7b8ddba2013-01-23 01:50:02 +000069752013-01-21 Kentaro Hara <haraken@chromium.org>
6976
6977 Implement UIEvent constructor
6978 https://bugs.webkit.org/show_bug.cgi?id=107430
6979
6980 Reviewed by Adam Barth.
6981
6982 Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
6983
6984 UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
6985 which is enabled on Safari and Chromium for now.
6986
6987 * Configurations/FeatureDefines.xcconfig:
6988
joepeck@webkit.orgf8be7cc2013-01-22 22:13:59 +000069892013-01-22 Joseph Pecoraro <pecoraro@apple.com>
6990
6991 [Mac] Enable Page Visibility (PAGE_VISIBILITY_API)
6992 https://bugs.webkit.org/show_bug.cgi?id=107230
6993
6994 Reviewed by David Kilzer.
6995
6996 * Configurations/FeatureDefines.xcconfig:
6997
timothy_horton@apple.com20c87f22013-01-22 08:38:29 +000069982013-01-22 Tim Horton <timothy_horton@apple.com>
6999
7000 PDFPlugin: Build PDFPlugin everywhere, enable at runtime
7001 https://bugs.webkit.org/show_bug.cgi?id=107117
7002
7003 Reviewed by Alexey Proskuryakov.
7004
7005 Since PDFLayerController SPI is all forward-declared, the plugin should build
7006 on all Mac platforms, and can be enabled at runtime.
7007
7008 * Configurations/FeatureDefines.xcconfig:
7009
commit-queue@webkit.orgd5f9fe52013-01-22 02:26:20 +000070102013-01-21 Dirk Schulze <dschulze@adobe.com>
7011
7012 Add build flag for Canvas's Path object (disabled by default)
7013 https://bugs.webkit.org/show_bug.cgi?id=107473
7014
7015 Reviewed by Dean Jackson.
7016
7017 * Configurations/FeatureDefines.xcconfig:
7018
aestes@apple.comff62b4f2013-01-21 22:43:56 +000070192013-01-17 Andy Estes <aestes@apple.com>
7020
7021 Add a USE() macro for content filtering code
7022 https://bugs.webkit.org/show_bug.cgi?id=107098
7023
7024 Reviewed by Mark Rowe.
7025
7026 * WebCoreSupport/WebSystemInterface.mm:
7027 (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).
7028
pdr@google.comc960fba2013-01-20 03:12:17 +000070292013-01-19 Philip Rogers <pdr@google.com>
7030
7031 Merge SVGStylable into SVGStyledElement
7032 https://bugs.webkit.org/show_bug.cgi?id=106877
7033
7034 SVG2 changes element inheritance so all SVGElements are stylable. As a first-step towards a
7035 cleaner class hierarchy, this patch moves SVGStylable into SVGStyledElement.
7036
7037 Reviewed by Dirk Schulze.
7038
7039 * MigrateHeaders.make:
7040
commit-queue@webkit.org29bbb682013-01-18 15:43:24 +000070412013-01-18 Seokju Kwon <seokju.kwon@gmail.com>
7042
7043 Add explicit keyword to constructors in platform-specific InspectorClient
7044 https://bugs.webkit.org/show_bug.cgi?id=107255
7045
7046 Reviewed by Kentaro Hara.
7047
7048 Add explicit keyword to constructors that take one argument
7049 in platform-specific implementation of InspectorClient.
7050
7051 * WebCoreSupport/WebInspectorClient.h:
7052 (WebInspectorClient):
7053
jer.noble@apple.come0fcb882013-01-16 19:19:59 +000070542013-01-15 Jer Noble <jer.noble@apple.com>
7055
7056 Add a Setting to disable QTKit media engine.
7057 https://bugs.webkit.org/show_bug.cgi?id=106972
7058
7059 Reviewed by Eric Carlson.
7060
7061 Add WebKit API to set QTKit enabled setting from user defaults.
7062
7063 * WebView/WebPreferenceKeysPrivate.h:
7064 * WebView/WebPreferences.mm:
7065 (+[WebPreferences initialize]): Set WebCore settings based on user defaults.
7066 (-[WebPreferences setQTKitEnabled:]): Pass through to WebCore.
7067 (-[WebPreferences isQTKitEnabled]): Ditto.
7068 * WebView/WebPreferencesPrivate.h:
7069 * WebView/WebView.mm:
7070 (-[WebView _preferencesChanged:]): Synchronize WebKit/WebCore settings.
7071
enrica@apple.comebd80c22013-01-15 23:00:59 +000070722013-01-15 Enrica Casucci <enrica@apple.com>
7073
7074 Add a new set of WebKit2 APIs for text search and
7075 search results management.
7076 https://bugs.webkit.org/show_bug.cgi?id=106834.
7077 <rdar://problem/12597159>
7078
7079 Reviewed by Simon Fraser.
7080
7081 Adding new API to perform text search in WebKit2 without using
7082 the stock UI. The new interface provides all the information
7083 necessary to write a custom UI for search.
7084
7085 Added new TextWebKitAPI test.
7086
7087 * WebView/WebHTMLView.mm:
7088 (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
7089 Modified to reflect the changes to Editor::countMatchesForText interface.
7090
zandobersek@gmail.com1594f892013-01-10 17:29:45 +000070912013-01-10 Zan Dobersek <zandobersek@gmail.com>
7092
7093 Remove the ENABLE_ANIMATION_API feature define occurences
7094 https://bugs.webkit.org/show_bug.cgi?id=106544
7095
7096 Reviewed by Simon Fraser.
7097
7098 The Animation API code was removed in r137243. The ENABLE_ANIMATION_API
7099 feature define handling still lingers in various build systems and configurations
7100 but is of no use, so it should be removed.
7101
7102 * Configurations/FeatureDefines.xcconfig:
7103
mark.lam@apple.com0a3d6de2013-01-08 18:47:28 +000071042013-01-08 Mark Lam <mark.lam@apple.com>
7105
7106 Removed the need for the ProposedDatabase mechanism.
7107 https://bugs.webkit.org/show_bug.cgi?id=106292.
7108
7109 Reviewed by Sam Weinig.
7110
7111 * WebCoreSupport/WebChromeClient.h:
7112 * WebCoreSupport/WebChromeClient.mm:
7113 (WebChromeClient::exceededDatabaseQuota):
7114
mitz@apple.comae97f6d2013-01-07 23:26:41 +000071152013-01-07 Dan Bernstein <mitz@apple.com>
7116
7117 [mac] WebKit1 clients can’t tell when a frame has been removed from the hierarchy
7118 https://bugs.webkit.org/show_bug.cgi?id=106261
7119
7120 Reviewed by Simon Fraser.
7121
7122 Test: TestWebKitAPI/Tests/mac/WebViewDidRemoveFrameFromHierarchy.mm.
7123
7124 Added -[WebFrameLoadDelegate webView:didRemoveFrameFromHierarchy:].
7125
7126 * WebCoreSupport/WebFrameLoaderClient.mm:
7127 (WebFrameLoaderClient::detachedFromParent2): Added a call to the new frame load delegate
7128 method.
7129 * WebView/WebDelegateImplementationCaching.h:
7130 (WebFrameLoadDelegateImplementationCache): Added the new method to the cache.
7131 * WebView/WebFrameLoadDelegatePrivate.h: Declared the new delegate method.
7132 * WebView/WebView.mm:
7133 (-[WebView _cacheFrameLoadDelegateImplementations]): Added the new method to the cache.
7134
mkwst@chromium.org29b1e2f2013-01-07 21:45:42 +000071352013-01-07 Mike West <mkwst@chromium.org>
7136
7137 Make the IFRAME_SEAMLESS flag runtime-enabled.
7138 https://bugs.webkit.org/show_bug.cgi?id=106213
7139
7140 Reviewed by Ojan Vafai.
7141
7142 * WebView/WebPreferenceKeysPrivate.h:
7143 * WebView/WebPreferences.mm:
7144 (-[WebPreferences seamlessIFramesEnabled]):
7145 (-[WebPreferences setSeamlessIFramesEnabled:]):
7146 * WebView/WebPreferencesPrivate.h:
7147 * WebView/WebView.mm:
7148 (-[WebView _preferencesChanged:]):
7149 Add a seamless IFrame preference to WebPreferences, and use it to
7150 toggle the runtime state of the feature as appropriate.
7151
adamk@chromium.orga0129592013-01-04 18:24:47 +000071522013-01-04 Adam Klein <adamk@chromium.org>
7153
7154 Remove ENABLE_MUTATION_OBSERVERS #define
7155 https://bugs.webkit.org/show_bug.cgi?id=105459
7156
7157 Reviewed by Ryosuke Niwa.
7158
7159 * Configurations/FeatureDefines.xcconfig:
7160
mitz@apple.comb1fc16dc2013-01-02 04:18:32 +000071612013-01-01 Dan Bernstein <mitz@apple.com>
7162
7163 <rdar://problem/12942239> Update copyright strings
7164
7165 Reviewed by Sam Weinig.
7166
7167 * Info.plist:
7168
aroben@webkit.org519ba092012-12-29 16:14:21 +000071692012-12-29 Adam Roben <aroben@webkit.org>
7170
7171 Web Inspector: Mac WK1 Inspector can't save/load timeline data
7172 https://bugs.webkit.org/show_bug.cgi?id=105547
7173
7174 Reviewed by Pavel Feldman.
7175
7176 * WebCoreSupport/WebInspectorClient.h: Declared new overrides and
7177 member variables necessary for save support.
7178
7179 * WebCoreSupport/WebInspectorClient.mm:
7180 (WebInspectorFrontendClient::save):
7181 (WebInspectorFrontendClient::append):
7182 Implemented these to make saving timeline data work. (It seems to me
7183 the InspectorFrontendClient API could be cleaned up a bit. I had to
7184 look at Chromium source code to determine that I needed to call back
7185 into the InspectorFrontendAPI JS object after saving/appending, and
7186 that I needed to keep a map of passed URLs -> chosen URLs.)
7187
7188 (-[WebInspectorWindowController window:willPositionSheet:usingRect:]):
7189 Tweaked the position of the sheet so that open/save sheets look a
7190 little bette.r
7191
7192 (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
7193 Implemented to make loading timeline data work.
7194
mrowe@apple.come553ba22012-12-29 02:05:38 +000071952012-12-28 Mark Rowe <mrowe@apple.com>
7196
7197 Move logic for extracting the OS X marketing version in to WebCore
7198 <http://webkit.org/b/105841> / <rdar://problem/10736041>
7199
7200 Reviewed by Dan Bernstein.
7201
7202 * WebCoreSupport/WebSystemInterface.mm:
7203 (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol.
7204 * WebView/WebView.mm:
7205 (systemMarketingVersionForUserAgentString): Call the WebCore function instead of the WKSI function.
7206 (+[WebView _standardUserAgentWithApplicationName:]): Retain the result now that our helper doesn't
7207 do that for us.
7208
weinig@apple.comfbfc08f2012-12-27 18:57:59 +000072092012-12-27 Sam Weinig <sam@webkit.org>
7210
7211 Attempt to fix the tests.
7212
7213 * WebView/WebPreferences.mm:
7214 (+[WebPreferences initialize]):
7215
ap@apple.coma6354cb2012-12-24 01:29:47 +000072162012-12-23 Alexey Proskuryakov <ap@apple.com>
7217
7218 <rdar://problem/12808377> Network process should respect cookie accept policy
7219 https://bugs.webkit.org/show_bug.cgi?id=105684
7220
7221 Reviewed by Sam Weinig.
7222
7223 * WebCoreSupport/WebPlatformStrategies.h:
7224 * WebCoreSupport/WebPlatformStrategies.mm:
7225 CookiesStrategy no longer has notifyCookiesChanged().
7226
ap@apple.comf18b8092012-12-23 02:15:18 +000072272012-12-22 Alexey Proskuryakov <ap@apple.com>
7228
7229 Add a separate class for networking related storage
7230 https://bugs.webkit.org/show_bug.cgi?id=105676
7231
7232 Reviewed by Sam Weinig.
7233
7234 * WebCoreSupport/WebFrameLoaderClient.mm:
7235 Updated for ResourceHandle include changes.
7236
7237 * WebCoreSupport/WebFrameNetworkingContext.h:
7238 * WebCoreSupport/WebFrameNetworkingContext.mm:
7239 This class is now simpler, with more session tracking being in WebCore now.
7240
7241 * WebCoreSupport/WebPlatformStrategies.h:
7242 * WebCoreSupport/WebPlatformStrategies.mm:
7243 (WebPlatformStrategies::cookiesForDOM):
7244 (WebPlatformStrategies::setCookiesFromDOM):
7245 (WebPlatformStrategies::cookiesEnabled):
7246 (WebPlatformStrategies::cookieRequestHeaderFieldValue):
7247 (WebPlatformStrategies::getRawCookies):
7248 (WebPlatformStrategies::deleteCookie):
7249 We no longer need a function for default cookie storage! Other cookie functions
7250 now take a session.
7251
7252 * WebView/WebPreferences.mm:
7253 (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Initialize WCSI before
7254 calling a WebCore that uses it.
7255 (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Use
7256 NetworkStorageSession for session tracking.
7257
7258 * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated for networking
7259 context now returning a class for session.
7260
loislo@chromium.org1f839b32012-12-20 08:49:58 +000072612012-12-20 Ilya Tikhonovsky <loislo@chromium.org>
7262
7263 Unreviewed build fix for chromium mac after r138206.
7264
7265 * WebCoreSupport/WebSystemInterface.mm:
7266 (InitWebCoreSystemInterface):
7267
ap@apple.com61423822012-12-20 00:58:25 +000072682012-12-19 Alexey Proskuryakov <ap@apple.com>
7269
7270 <rdar://problem/12890242> [WK2 NetworkProcess] Client doesn't receive SSL certificates
7271 https://bugs.webkit.org/show_bug.cgi?id=105467
7272
7273 Reviewed by Brady Eidson.
7274
7275 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize
7276 a WKSI function we've been missing.
7277
alexis@webkit.orgcfa6ca72012-12-19 19:35:57 +000072782012-12-19 Alexis Menard <alexis@webkit.org>
7279
7280 Implement CSS parsing for CSS transitions unprefixed.
7281 https://bugs.webkit.org/show_bug.cgi?id=104804
7282
7283 Reviewed by Dean Jackson.
7284
7285 Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
7286 to cover the work of unprefixing Transforms, Animations and
7287 Transitions. It will let the possibility of each ports to turn it off
7288 in their release branches until we're confident that these CSS
7289 properties are ready to be unprefixed.
7290
7291 * Configurations/FeatureDefines.xcconfig:
7292
ap@apple.combffdd572012-12-19 04:21:48 +000072932012-12-18 Alexey Proskuryakov <ap@apple.com>
7294
7295 Remove unnecessary functions from CookiesStrategy
7296 https://bugs.webkit.org/show_bug.cgi?id=105369
7297
ap@apple.com6eb88492012-12-19 04:23:31 +00007298 Reviewed by Brady Eidson.
ap@apple.combffdd572012-12-19 04:21:48 +00007299
7300 * WebCoreSupport/WebPlatformStrategies.h:
7301 * WebCoreSupport/WebPlatformStrategies.mm:
7302
alice.liu@apple.com15b028d2012-12-19 02:33:57 +000073032012-12-18 Alice Liu <alice.liu@apple.com>
7304
alice.liu@apple.comc2377212012-12-19 03:00:02 +00007305 Add SPI to WebKit1 WebFrame for hit testing
7306 https://bugs.webkit.org/show_bug.cgi?id=105106
7307
7308 Reviewed by Dan Bernstein.
7309
7310 * WebView/WebFrame.mm:
7311 (-[WebFrame elementAtPoint:]): Added. Takes an NSPoint to feed to the WebCore::Frame for hit-testing.
7312 Creates a WebElementDictionary from that WebCore::HitTestResult, and returns the element dictionary.
7313 * WebView/WebFramePrivate.h:
7314
73152012-12-18 Alice Liu <alice.liu@apple.com>
7316
alice.liu@apple.com15b028d2012-12-19 02:33:57 +00007317 Add SPI to WebKit1 WebFrame for node conversion to JSValueRef
7318 https://bugs.webkit.org/show_bug.cgi?id=105262
7319
7320 Reviewed by Anders Carlsson.
7321
7322 * WebView/WebFrame.mm:
7323 (-[WebFrame jsWrapper:forWorld:]): Added. Takes a DOMNode and WebScriptWorld and provides a JSValueRef
7324 for the WebCore::Node in that particular WebScriptWorld.
7325 * WebView/WebFramePrivate.h:
7326
bdakin@apple.com9a0f89d2012-12-18 22:25:11 +000073272012-12-18 Beth Dakin <bdakin@apple.com>
7328
7329 https://bugs.webkit.org/show_bug.cgi?id=102579
7330 [mac] Enable scaled cursors
7331
7332 Reviewed by Dean Jackson.
7333
7334 * Configurations/FeatureDefines.xcconfig:
7335
leviw@chromium.org104fddd2012-12-16 21:50:20 +000073362012-12-16 Levi Weintraub <leviw@chromium.org>
7337
7338 Push pixel snapping logic into TransformState
7339 https://bugs.webkit.org/show_bug.cgi?id=101779
7340
7341 Reviewed by Simon Fraser.
7342
7343 * WebView/WebFullScreenController.mm:
7344 (screenRectOfContents): Removed SnapOffsetForTransforms as it's no longer needed.
7345
andersca@apple.comd1dace92012-12-16 20:30:40 +000073462012-12-15 Anders Carlsson <andersca@apple.com>
7347
7348 Rename FrameLoaderClient::download to convertMainResourceLoadToDownload
7349 https://bugs.webkit.org/show_bug.cgi?id=105122
7350
7351 Reviewed by Andreas Kling.
7352
7353 Update for WebCore changes.
7354
7355 * WebCoreSupport/WebFrameLoaderClient.h:
7356 (WebFrameLoaderClient):
7357 * WebCoreSupport/WebFrameLoaderClient.mm:
7358 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
7359
mark.lam@apple.com266a1d72012-12-15 08:09:53 +000073602012-12-15 Mark Lam <mark.lam@apple.com>
7361
7362 Re-landing patch for "Introducing the DatabaseStrategy and database servers".
7363 https://bugs.webkit.org/show_bug.cgi?id=104934.
7364
7365 Not reviewed.
7366
7367 Merged from r137767. Previously reviewed by Sam Weinig.
7368
7369 * WebCoreSupport/WebPlatformStrategies.h:
7370 (WebPlatformStrategies):
7371 * WebCoreSupport/WebPlatformStrategies.mm:
7372 (WebPlatformStrategies::createDatabaseStrategy):
7373
mark.lam@apple.comeaf29482012-12-15 06:15:39 +000073742012-12-14 Mark Lam <mark.lam@apple.com>
7375
7376 The WebView should initialize the platform strategies before initializing other sub-systems.
7377 https://bugs.webkit.org/show_bug.cgi?id=105083.
7378
7379 Reviewed by Alexey Proskuryakov.
7380
7381 * WebView/WebView.mm:
7382 (-[WebView _commonInitializationWithFrameName:groupName:]):
7383
commit-queue@webkit.org13209152012-12-14 23:40:22 +000073842012-12-14 Sheriff Bot <webkit.review.bot@gmail.com>
7385
7386 Unreviewed, rolling out r137767.
7387 http://trac.webkit.org/changeset/137767
7388 https://bugs.webkit.org/show_bug.cgi?id=105062
7389
7390 Broke Mac builds. (Requested by mlam on #webkit).
7391
7392 * WebCoreSupport/WebPlatformStrategies.h:
7393 (WebPlatformStrategies):
7394 * WebCoreSupport/WebPlatformStrategies.mm:
7395
mark.lam@apple.com6122d622012-12-14 21:57:58 +000073962012-12-14 Mark Lam <mark.lam@apple.com>
7397
7398 Introducing the DatabaseStrategy and database servers.
7399 https://bugs.webkit.org/show_bug.cgi?id=104934.
7400
7401 Reviewed by Sam Weinig.
7402
7403 The database server is currently a placeholder that does nothing.
7404
7405 * WebCoreSupport/WebPlatformStrategies.h:
7406 (WebPlatformStrategies):
7407 * WebCoreSupport/WebPlatformStrategies.mm:
7408 (WebPlatformStrategies::createDatabaseStrategy):
7409
ap@apple.com9ef92582012-12-13 21:48:03 +000074102012-12-13 Alexey Proskuryakov <ap@apple.com>
7411
7412 <rdar://problem/12838354> Per-Tab WebProcess: DOM cookie access functions should respect private browsing
7413 https://bugs.webkit.org/show_bug.cgi?id=104691
7414
7415 Reviewed by Sam Weinig.
7416
7417 * WebCoreSupport/WebFrameNetworkingContext.h:
7418 * WebCoreSupport/WebFrameNetworkingContext.mm:
7419 (WebFrameNetworkingContext::inPrivateBrowsingMode):
7420 (WebFrameNetworkingContext::storageSession):
7421 Implemented inPrivateBrowsingMode().
7422
mark.lam@apple.com45beb072012-12-12 23:04:20 +000074232012-12-12 Mark Lam <mark.lam@apple.com>
7424
7425 Encapsulate externally used webdatabase APIs in DatabaseManager.
7426 https://bugs.webkit.org/show_bug.cgi?id=104741.
7427
7428 Reviewed by Sam Weinig.
7429
7430 Use DatabaseManager instead of accessing DatabaseTracker, AbstractDatabase,
7431 and DatabaseContext directly. This is to prepare for upcoming webkit2
7432 refactoring.
7433
7434 * Storage/WebDatabaseManager.mm:
7435 (-[WebDatabaseManager origins]):
7436 (-[WebDatabaseManager databasesWithOrigin:]):
7437 (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
7438 (-[WebDatabaseManager deleteAllDatabases]):
7439 (-[WebDatabaseManager deleteOrigin:]):
7440 (-[WebDatabaseManager deleteDatabase:withOrigin:]):
7441 (WebKitInitializeDatabasesIfNecessary):
7442 * Storage/WebDatabaseManagerClient.h: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.h.
7443 (WebDatabaseManagerClient):
7444 * Storage/WebDatabaseManagerClient.mm: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.mm.
7445 (WebDatabaseManagerClient::sharedWebDatabaseManagerClient):
7446 (WebDatabaseManagerClient::WebDatabaseManagerClient):
7447 (WebDatabaseManagerClient::~WebDatabaseManagerClient):
7448 (DidModifyOriginData::dispatchToMainThread):
7449 (DidModifyOriginData::DidModifyOriginData):
7450 (DidModifyOriginData):
7451 (WebDatabaseManagerClient::dispatchDidModifyOrigin):
7452 (WebDatabaseManagerClient::dispatchDidModifyDatabase):
7453 * Storage/WebDatabaseQuotaManager.mm:
7454 (-[WebDatabaseQuotaManager usage]):
7455 (-[WebDatabaseQuotaManager quota]):
7456 (-[WebDatabaseQuotaManager setQuota:]):
7457 * Storage/WebDatabaseTrackerClient.h: Removed.
7458 * Storage/WebDatabaseTrackerClient.mm: Removed.
7459 * WebCoreSupport/WebSecurityOrigin.mm:
7460 (-[WebSecurityOrigin usage]):
7461 (-[WebSecurityOrigin quota]):
7462 (-[WebSecurityOrigin setQuota:]):
7463 * WebKit.order:
7464 * WebView/WebFrame.mm:
7465 (-[WebFrame _cacheabilityDictionary]):
7466 * WebView/WebView.mm:
7467 (-[WebView _preferencesChanged:]):
7468
ap@apple.comf34a94f2012-12-12 19:07:30 +000074692012-12-12 Alexey Proskuryakov <ap@apple.com>
7470
7471 Make LOG() work in WebProcess and NetworkProcess
7472 https://bugs.webkit.org/show_bug.cgi?id=104718
7473
7474 Reviewed by Tim Horton.
7475
7476 * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between
7477 WebCore and WebKit versions of this file.
7478
mkwst@chromium.org236e8982012-12-11 16:10:06 +000074792012-12-11 Mike West <mkwst@chromium.org>
7480
7481 Web Inspector: ConsoleTypes should not expose MessageType - it should be private to inspector.
7482 https://bugs.webkit.org/show_bug.cgi?id=66371
7483
7484 Reviewed by Pavel Feldman.
7485
7486 Drops WebCore::MessageType from the addMessageToConsole method.
7487
7488 * WebCoreSupport/WebChromeClient.h:
7489 (WebChromeClient):
7490 * WebCoreSupport/WebChromeClient.mm:
7491 (WebChromeClient::addMessageToConsole):
7492
antti@apple.com5d47b582012-12-11 00:13:29 +000074932012-12-09 Antti Koivisto <antti@apple.com>
7494
7495 Factor node traversal into standalone functions
7496 https://bugs.webkit.org/show_bug.cgi?id=104507
7497
7498 Reviewed by Eric Seidel.
7499
7500 * WebView/WebHTMLRepresentation.mm:
7501 (searchForLabelsBeforeElement):
7502
alexis@webkit.org67ab9922012-12-10 17:25:58 +000075032012-12-10 Alexis Menard <alexis@webkit.org>
7504
7505 [CSS3 Backgrounds and Borders] Remove CSS3_BACKGROUND feature flag.
7506 https://bugs.webkit.org/show_bug.cgi?id=104539
7507
7508 Reviewed by Antonio Gomes.
7509
7510 As discussed on webkit-dev it is not needed to keep this feature flag
7511 as support for <position> type is a small feature that is already
7512 implemented by three other UAs. It was useful while landing this
7513 feature as partial bits were landed one after one.
7514
7515 * Configurations/FeatureDefines.xcconfig:
7516
commit-queue@webkit.orgd318ebe2012-12-07 03:07:24 +000075172012-12-06 Rick Byers <rbyers@chromium.org>
7518
7519 CSS cursor property should support webkit-image-set
7520 https://bugs.webkit.org/show_bug.cgi?id=99493
7521
7522 Reviewed by Beth Dakin.
7523
7524 Add ENABLE_MOUSE_CURSOR_SCALE - disabled by default.
7525
7526 * Configurations/FeatureDefines.xcconfig:
7527
yurys@chromium.orgc946dc22012-12-04 00:34:25 +000075282012-12-03 Yury Semikhatsky <yurys@chromium.org>
7529
7530 Unreviewed. Fix Mac compilation after r136448.
7531
7532 * WebCoreSupport/WebChromeClient.mm:
7533 (stringForMessageType):
7534
alexis@webkit.orgdb2d30a2012-12-03 18:46:06 +000075352012-12-03 Alexis Menard <alexis@webkit.org>
7536
7537 [Mac] Enable CSS3 background-position offset by default.
7538 https://bugs.webkit.org/show_bug.cgi?id=103905
7539
7540 Reviewed by Simon Fraser.
7541
7542 Turn the flag on by default.
7543
7544 * Configurations/FeatureDefines.xcconfig:
7545
commit-queue@webkit.orgeb3a7032012-12-02 10:31:42 +000075462012-12-02 Yongjun Zhang <yongjun_zhang@apple.com>
7547
7548 Need a method to close all idle localstorage databases immediately.
7549 https://bugs.webkit.org/show_bug.cgi?id=103469
7550
7551 Reviewed by David Kilzer.
7552
7553 Add a new method to WebStorageManager that we can call to close all
7554 idle local storage databases.
7555
7556 * Storage/WebStorageManager.mm:
7557 (+[WebStorageManager closeIdleLocalStorageDatabases]):
7558 * Storage/WebStorageManagerPrivate.h:
7559
commit-queue@webkit.org8c520bc2012-11-30 08:48:28 +000075602012-11-30 Mihai Maerean <mmaerean@adobe.com>
7561
7562 [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled
7563 https://bugs.webkit.org/show_bug.cgi?id=101192
7564
7565 Reviewed by Hajime Morita.
7566
7567 Removed the CSS Regions flag in Settings and switched to using the new flag I have added in RuntimeEnabledFeatures.
7568
7569 Tests: No new tests because there is no functional change.
7570
7571 * WebView/WebView.mm:
7572 (-[WebView _preferencesChanged:]):
7573
rafaelw@chromium.orgecc5b852012-11-30 05:40:27 +000075742012-11-29 Rafael Weinstein <rafaelw@chromium.org>
7575
7576 [HTMLTemplateElement] Add feature flag
7577 https://bugs.webkit.org/show_bug.cgi?id=103694
7578
7579 Reviewed by Adam Barth.
7580
7581 This flag will guard the implementation of the HTMLTemplateElement.
7582 http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html
7583
7584 * Configurations/FeatureDefines.xcconfig:
7585
ap@apple.com043d6112012-11-30 02:32:51 +000075862012-11-29 Alexey Proskuryakov <ap@apple.com>
7587
7588 [WK2] Forward cookie jar calls to NetworkProcess
7589 https://bugs.webkit.org/show_bug.cgi?id=103457
7590
7591 Reviewed by Darin Adler.
7592
7593 * WebCoreSupport/WebPlatformStrategies.h:
7594 (WebPlatformStrategies):
7595 * WebCoreSupport/WebPlatformStrategies.mm:
7596 (WebPlatformStrategies::cookiesForDOM):
7597 (WebPlatformStrategies::setCookiesFromDOM):
7598 (WebPlatformStrategies::cookiesEnabled):
7599 (WebPlatformStrategies::cookieRequestHeaderFieldValue):
7600 (WebPlatformStrategies::getRawCookies):
7601 (WebPlatformStrategies::deleteCookie):
7602 (WebPlatformStrategies::getHostnamesWithCookies):
7603 (WebPlatformStrategies::deleteCookiesForHostname):
7604 (WebPlatformStrategies::deleteAllCookies):
7605 (WebPlatformStrategies::getPluginInfo):
7606 (WebPlatformStrategies::bufferForType):
7607 WebKit1 strategy just uses PlatformCookieJar.
7608
bdakin@apple.comc5c72502012-11-28 19:37:15 +000076092012-11-28 Beth Dakin <bdakin@apple.com>
7610
7611 https://bugs.webkit.org/show_bug.cgi?id=102970
7612 [WK1] REGRESSION (r129545): Main frame doesn't rubberband unless
7613 WebFrameLoadDelegate implements -webView:didFirstLayoutInFrame:
7614
7615 Reviewed by Sam Weinig.
7616
7617 We should always register for DidFirstLayout in WK1 since we do work
7618 at that time besides just calling the delegate function.
7619 * WebView/WebView.mm:
7620 (-[WebView _cacheFrameLoadDelegateImplementations]):
7621
msaboff@apple.com5a772532012-11-28 05:27:34 +000076222012-11-27 Michael Saboff <msaboff@apple.com>
7623
7624 TextIterator unnecessarily converts 8 bit strings to 16 bits
7625 https://bugs.webkit.org/show_bug.cgi?id=103295
7626
7627 Reviewed by Brent Fulgham.
7628
7629 Updated _stringForRange to use plainText() instead of removed plainTextToMallocAllocatedBuffer().
7630
7631 * WebView/WebFrame.mm:
7632 (-[WebFrame _stringForRange:]):
7633
simonjam@chromium.orgc98850b2012-11-28 01:07:36 +000076342012-11-27 James Simonsen <simonjam@chromium.org>
7635
7636 Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
7637 https://bugs.webkit.org/show_bug.cgi?id=102151
7638
7639 Reviewed by Adam Barth.
7640
7641 * Plugins/WebPluginController.mm:
7642 * WebView/WebFrame.mm:
7643 (-[WebFrame loadRequest:]):
7644 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
7645
psolanki@apple.combcd2d2f2012-11-27 18:58:42 +000076462012-11-27 Pratik Solanki <psolanki@apple.com>
7647
7648 objc/objc-runtime.h does not exist on all PLATFORM(MAC)
7649 https://bugs.webkit.org/show_bug.cgi?id=101780
7650
7651 Reviewed by Brent Fulgham.
7652
7653 Clean up header includes so we don't include objc/objc-runtime.h.
7654
7655 * Carbon/HIWebView.mm:
7656 (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
7657 * Plugins/WebNetscapePluginView.mm:
7658 * Plugins/WebPluginContainerCheck.mm:
7659 (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
7660 * Plugins/WebPluginController.mm:
7661 * WebCoreSupport/WebCachedFramePlatformData.h:
7662 * WebCoreSupport/WebDeviceOrientationClient.mm:
7663 * WebView/WebDelegateImplementationCaching.mm:
7664 * WebView/WebHTMLView.mm:
7665 * WebView/WebPDFDocumentExtras.mm:
7666 * WebView/WebPolicyDelegate.mm:
7667 (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
7668 * WebView/WebView.mm:
7669
ossy@webkit.orgc0222342012-11-27 09:40:53 +000076702012-11-27 Sheriff Bot <webkit.review.bot@gmail.com>
7671
7672 Unreviewed, rolling out r135786.
7673 http://trac.webkit.org/changeset/135786
7674 https://bugs.webkit.org/show_bug.cgi?id=103379
7675
7676 It made 3 plugin tests timeout on several platforms (Requested
7677 by Ossy on #webkit).
7678
7679 * Plugins/WebPluginController.mm:
7680 * WebView/WebFrame.mm:
7681 (-[WebFrame loadRequest:]):
7682 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
7683
simonjam@chromium.org135b0f52012-11-27 00:17:49 +000076842012-11-26 James Simonsen <simonjam@chromium.org>
7685
7686 Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
7687 https://bugs.webkit.org/show_bug.cgi?id=102151
7688
7689 Reviewed by Adam Barth.
7690
7691 * Plugins/WebPluginController.mm:
7692 * WebView/WebFrame.mm:
7693 (-[WebFrame loadRequest:]):
7694 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
7695
alexis@webkit.orgd4f31662012-11-23 21:24:10 +000076962012-11-23 Alexis Menard <alexis@webkit.org>
7697
7698 [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.
7699 https://bugs.webkit.org/show_bug.cgi?id=102104
7700
7701 Reviewed by Julien Chaffraix.
7702
7703 Protect the new feature behind a feature flag.
7704
7705 * Configurations/FeatureDefines.xcconfig:
7706
allan.jensen@digia.comaf418fd2012-11-21 15:45:42 +000077072012-11-21 Allan Sandfeld Jensen <allan.jensen@digia.com>
7708
7709 Disambiguate innerNodeFramePoint and mainFramePoint
7710 https://bugs.webkit.org/show_bug.cgi?id=98139
7711
7712 Reviewed by Julien Chaffraix.
7713
7714 Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint.
7715
7716 * WebCoreSupport/WebContextMenuClient.mm:
7717 (WebContextMenuClient::showContextMenu):
7718
commit-queue@webkit.orgcee39322012-11-20 22:08:37 +000077192012-11-20 Sheriff Bot <webkit.review.bot@gmail.com>
7720
7721 Unreviewed, rolling out r135295.
7722 http://trac.webkit.org/changeset/135295
7723 https://bugs.webkit.org/show_bug.cgi?id=102834
7724
7725 This patch causes assertion to some layout tests on chromium
7726 (Requested by jianli on #webkit).
7727
7728 * Plugins/WebPluginController.mm:
7729 * WebView/WebFrame.mm:
7730 (-[WebFrame loadRequest:]):
7731 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
7732
simonjam@chromium.orge0ac21d2012-11-20 18:30:34 +000077332012-11-20 James Simonsen <simonjam@chromium.org>
7734
7735 Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
7736 https://bugs.webkit.org/show_bug.cgi?id=102151
7737
7738 Reviewed by Adam Barth.
7739
7740 * Plugins/WebPluginController.mm:
7741 * WebView/WebFrame.mm:
7742 (-[WebFrame loadRequest:]):
7743 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
7744
kihong.kwon@samsung.com9ed51c52012-11-19 15:42:53 +000077452012-11-19 Kihong Kwon <kihong.kwon@samsung.com>
7746
7747 Add PROXIMITY_EVENTS feature
7748 https://bugs.webkit.org/show_bug.cgi?id=102658
7749
7750 Reviewed by Kentaro Hara.
7751
7752 Add PROXIMITY_EVENTS feature to xcode project for WebKit.
7753
7754 * Configurations/FeatureDefines.xcconfig:
7755
tony@chromium.orgc4e04ba2012-11-16 23:59:24 +000077562012-11-16 Tony Chang <tony@chromium.org>
7757
7758 Remove ENABLE_CSS_HIERARCHIES since it's no longer in use
7759 https://bugs.webkit.org/show_bug.cgi?id=102554
7760
7761 Reviewed by Andreas Kling.
7762
7763 As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 ,
7764 we're going to revist this feature once additional vendor support is
7765 achieved.
7766
7767 * Configurations/FeatureDefines.xcconfig:
7768
ap@apple.com9ffc45d2012-11-16 17:46:50 +000077692012-11-15 Alexey Proskuryakov <ap@apple.com>
7770
7771 Private Browsing is a per-page setting that sets a global value
7772 https://bugs.webkit.org/show_bug.cgi?id=67870
7773
7774 Reviewed by Sam Weinig.
7775
7776 * WebCoreSupport/WebFrameNetworkingContext.h:
7777 * WebCoreSupport/WebFrameNetworkingContext.mm:
7778 Moved functions for managing global sessions from WebCore.
7779
7780 * WebCoreSupport/WebPlatformStrategies.h:
7781 * WebCoreSupport/WebPlatformStrategies.mm:
7782 (WebPlatformStrategies::defaultCookieStorage): Added. Uses WebFrameNetworkingContext
7783 to reach the storage.
7784
7785 * WebView/WebPreferences.mm:
7786 (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Ditto.
7787 (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Ditto.
7788
7789 * WebView/WebPreferencesPrivate.h: Added a comment explaining that two functions
7790 are not generic enough for use outside DRT (one of them had "testing" in name,
7791 but another did not).
7792
7793 * WebView/WebView.mm:
7794 (-[WebView _preferencesChanged:]): Create a global private browsing session when
7795 the first view with private browsing is created, delete it when any window with
7796 it disabled is created (since this comes from preferences, it applies to all
7797 views equally, even though we are dealing with a single one here).
7798 (-[WebView _cachedResponseForURL:]): Use main frame's networking context instead of
7799 a global one.
7800
timothy@apple.com15244632012-11-13 21:10:37 +000078012012-11-13 Timothy Hatcher <timothy@apple.com>
7802
7803 Adjust the Web Inspector window title frame if needed to prevent it from intersecting the dock button.
7804
7805 https://bugs.webkit.org/show_bug.cgi?id=102073
7806
7807 Reviewed by Joseph Pecoraro.
7808
7809 * WebCoreSupport/WebInspectorClient.mm:
7810 (-[WebInspectorWindow _customTitleFrame]): Added. Adjust the title frame.
7811
simon.fraser@apple.combe6d5832012-11-13 04:55:49 +000078122012-11-12 Simon Fraser <simon.fraser@apple.com>
7813
7814 Build fix after r134346 and 134347.
7815
7816 Use frameView.isFlipped, not frameView.flipped in the assertion.
7817
7818 * WebCoreSupport/WebInspectorClient.mm:
7819 (-[WebInspectorWindowController window]):
7820
timothy@apple.com34e8d4b2012-11-13 04:05:18 +000078212012-11-12 Timothy Hatcher <timothy@apple.com>
7822
7823 Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
7824
7825 https://bugs.webkit.org/show_bug.cgi?id=102025
7826
7827 Reviewed by Joseph Pecoraro.
7828
7829 * Resources/Dock.pdf: Added.
7830 * WebCoreSupport/WebInspectorClient.h:
7831 * WebCoreSupport/WebInspectorClient.mm:
7832 (-[WebInspectorWindow _cursorForResizeDirection:]): Added.
7833 (WebInspectorClient::didResizeMainFrame): Call attachAvailabilityChanged instead.
7834 (WebInspectorFrontendClient::attachAvailabilityChanged): Added.
7835 (-[WebInspectorWindowController window]): Create the dock button and add it.
7836 (-[WebInspectorWindowController attachWindow:]): Added.
7837 (-[WebInspectorWindowController attach]): Call setAttachedWindow.
7838 (-[WebInspectorWindowController detach]): Ditto.
7839 (-[WebInspectorWindowController setDockingUnavailable:]): Added. Update hidden state of the dock button.
7840
timothy@apple.com25c40e22012-11-09 06:46:47 +000078412012-11-08 Timothy Hatcher <timothy@apple.com>
7842
7843 Always use a textured window for the Web Inspector.
7844
7845 https://bugs.webkit.org/show_bug.cgi?id=101693
7846
7847 Reviewed by Joseph Pecoraro.
7848
7849 * WebCoreSupport/WebInspectorClient.mm:
7850 (-[WebInspectorWindowController window]): Removed the conditional for a textured window.
7851
roger_fong@apple.comd77093c2012-11-09 01:20:29 +000078522012-11-08 Roger Fong <roger_fong@apple.com>
7853
7854 Null check URL key entries into WebHistory hash table.
7855 https://bugs.webkit.org/show_bug.cgi?id=101664
7856 <rdar://problem/12440852>
7857
7858 Reviewed by Brady Eidson.
7859
7860 Sometimes the _entriesByURL hash table used to keep track of web history is erroneously passed in null key entries, which causes an exception to fire.
7861 This prevents the desired page navigation from taking effect. This is a workaround for the problem.
7862 Ideally we would figure out where the null values for the key are coming from but for now we'll just set it to "" to prevent the exception from being thrown
7863 so that navigation can continue as expected.
7864
7865 * History/WebHistory.mm:
7866 (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]):
7867
commit-queue@webkit.org3159a612012-11-07 21:10:11 +000078682012-11-07 Andreas Kling <akling@apple.com>
7869
7870 Remove build-webkit dependency on Java SDK for Apple Mac WebKit.
7871 <http://webkit.org/b/101492>
7872
7873 Reviewed by Anders Carlsson.
7874
7875 * Plugins/WebJavaPlugIn.h: Removed.
7876
abarth@webkit.orgb0b75d22012-11-07 05:28:47 +000078772012-11-06 Adam Barth <abarth@webkit.org>
7878
7879 Unreviewed attempt to fix the chromium-mac build.
7880
7881 * WebCoreSupport/WebSystemInterface.mm:
7882 (InitWebCoreSystemInterface):
7883
andersca@apple.com3a222ba2012-11-07 01:58:54 +000078842012-11-06 Anders Carlsson <andersca@apple.com>
7885
7886 Update Java related WKSI function names
7887 https://bugs.webkit.org/show_bug.cgi?id=101414
7888
7889 Reviewed by Sam Weinig.
7890
7891 * WebCoreSupport/WebChromeClient.mm:
7892 (WebChromeClient::unavailablePluginButtonClicked):
7893 * WebCoreSupport/WebFrameLoaderClient.mm:
7894 (isPlugInInactive):
7895
ap@apple.com165592b2012-11-07 00:41:30 +000078962012-11-06 Alexey Proskuryakov <ap@apple.com>
7897
7898 Clean up which storage cookie jar functions use
7899 https://bugs.webkit.org/show_bug.cgi?id=101395
7900
7901 Reviewed by Brady Eidson.
7902
7903 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated for
7904 two new functions.
7905
commit-queue@webkit.org8e628312012-11-06 16:14:27 +000079062012-11-06 Andrey Lushnikov <lushnikov@google.com>
7907
7908 Added console.clear() method
7909
7910 Web Inspector: add console.clear()
7911 https://bugs.webkit.org/show_bug.cgi?id=101021
7912
7913 Reviewed by Vsevolod Vlasov.
7914
7915 * WebCoreSupport/WebChromeClient.mm:
7916 (stringForMessageType): Added ClearMessageType case to switch
7917
ap@apple.com37986302012-11-05 22:07:46 +000079182012-11-05 Alexey Proskuryakov <ap@apple.com>
7919
7920 Get rid of setCookieStoragePrivateBrowsingEnabled.
7921 https://bugs.webkit.org/show_bug.cgi?id=101247
7922
7923 Reviewed by Brady Eidson.
7924
7925 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We no longer
7926 have this function.
7927
ap@apple.comc5d6a752012-11-04 00:35:30 +000079282012-11-03 Alexey Proskuryakov <ap@apple.com>
7929
7930 Get rid of USE(CFURLSTORAGESESSIONS)
7931 https://bugs.webkit.org/show_bug.cgi?id=101131
7932
7933 Reviewed by Sam Weinig.
7934
7935 * WebView/WebPreferences.mm:
7936 (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
7937 (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
7938 * WebView/WebView.mm:
7939 (-[WebView _cachedResponseForURL:]):
7940
andersca@apple.comad480cf2012-11-02 23:39:33 +000079412012-11-02 Anders Carlsson <andersca@apple.com>
7942
7943 Don't instantiate the Java plug-in if it's inactive
7944 https://bugs.webkit.org/show_bug.cgi?id=101102
7945 <rdar://problem/12595679>
7946
7947 Reviewed by Andreas Kling.
7948
7949 * WebCoreSupport/WebChromeClient.mm:
7950 (WebChromeClient::shouldUnavailablePluginMessageBeButton):
7951 The RenderEmbeddedObject::PluginInactive reason should always result in a button being shown.
7952
7953 (WebChromeClient::unavailablePluginButtonClicked):
7954 If the Java plug-in is inactive, call WKJLReportWebComponentsUsed() to reactivate the plug-in and
7955 then reload the page.
7956
7957 * WebCoreSupport/WebFrameLoaderClient.mm:
7958 (isOracleJavaPlugIn):
7959 (isPlugInInactive):
7960 Helper functions.
7961
7962 (WebFrameLoaderClient::createPlugin):
7963 If the plug-in is inactive, set the appropriate unavailability reason on the renderer.
7964
simon.fraser@apple.com2396f372012-11-02 21:35:02 +000079652012-11-02 Simon Fraser <simon.fraser@apple.com>
7966
7967 Enable SUBPIXEL_LAYOUT on Mac
7968 https://bugs.webkit.org/show_bug.cgi?id=101076
7969
7970 Reviewed by Dave Hyatt.
7971
7972 Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES.
7973
7974 * Configurations/FeatureDefines.xcconfig:
7975
abarth@webkit.org3df3cc92012-11-02 19:01:01 +000079762012-11-02 Adam Barth <abarth@webkit.org>
7977
7978 ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development
7979 https://bugs.webkit.org/show_bug.cgi?id=100711
7980
7981 Reviewed by Eric Seidel.
7982
7983 * Configurations/FeatureDefines.xcconfig:
7984
aroben@webkit.orgaef47702012-11-01 20:57:46 +000079852012-11-01 Adam Roben <aroben@webkit.org>
7986
7987 [WK1] Fixed-position elements jiggle up and down slightly during scrolling on a Retina display
7988 https://bugs.webkit.org/show_bug.cgi?id=100957
7989
7990 Reviewed by Simon Fraser.
7991
7992 WebCore doesn't yet support subpixel scrolling. WebKit2 forces
7993 scrolling to always be integral. Now WebKit1 forces this as well.
7994
7995 I'm not sure how to write a test for this.
7996
7997 * WebView/WebDynamicScrollBarsView.mm:
7998 (shouldRoundScrollOrigin): Returns YES if there are any position:fixed
7999 or position:sticky elements in the page.
8000 (-[WebDynamicScrollBarsView scrollClipView:toPoint:]): Round the
8001 scroll origin to the nearest pixel if needed.
8002
andersca@apple.coma50f5292012-11-01 01:59:46 +000080032012-10-31 Anders Carlsson <andersca@apple.com>
8004
8005 Fix build.
8006 <rdar://problem/12612207>.
8007
8008 Reviewed by Sam Weinig.
8009
8010 * Panels/WebAuthenticationPanel.m:
8011 (-[WebAuthenticationPanel loadNib]):
8012
joepeck@webkit.org9848b5f2012-10-30 23:24:19 +000080132012-10-30 Joseph Pecoraro <pecoraro@apple.com>
8014
8015 [Mac] Sync up FeatureDefine Configuration Files
8016 https://bugs.webkit.org/show_bug.cgi?id=100171
8017
8018 Reviewed by David Kilzer.
8019
joepeck@webkit.org48adea12012-10-30 23:50:46 +00008020 Follow up to better coordinate with iOS feature defines. Make:
8021
8022 - ENABLE_FILTERS always on
8023 - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values
8024
8025 * Configurations/FeatureDefines.xcconfig:
8026
80272012-10-30 Joseph Pecoraro <pecoraro@apple.com>
8028
8029 [Mac] Sync up FeatureDefine Configuration Files
8030 https://bugs.webkit.org/show_bug.cgi?id=100171
8031
8032 Reviewed by David Kilzer.
8033
joepeck@webkit.org9848b5f2012-10-30 23:24:19 +00008034 Ensure an identical FeatureDefine files across all projects. Changes:
8035
8036 - ENABLE_CSS_BOX_DECORATION_BREAK should be in all
8037 - ENABLE_PDFKIT_PLUGIN should be in all
8038 - ENABLE_RESOLUTION_MEDIA_QUERY should be in all
8039 - ENABLE_ENCRYPTED_MEDIA should be in all
8040 - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value
8041 - Some alphabetical ordering cleanup
8042
8043 * Configurations/FeatureDefines.xcconfig:
8044
andersca@apple.com3c8717b2012-10-30 18:07:13 +000080452012-10-29 Anders Carlsson <andersca@apple.com>
8046
8047 Build WebKit as C++11 on Mac
8048 https://bugs.webkit.org/show_bug.cgi?id=100720
8049
8050 Reviewed by Daniel Bates.
8051
8052 * Configurations/Base.xcconfig:
8053 Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
8054
8055 * History/WebBackForwardList.mm:
8056 (-[WebBackForwardList description]):
8057 * History/WebHistoryItem.mm:
8058 (-[WebHistoryItem description]):
8059 Add static_casts to prevent implicit type conversions in non-constant initializer lists.
8060
mrowe@apple.com5b132012012-10-29 23:35:56 +000080612012-10-28 Mark Rowe <mrowe@apple.com>
8062
mrowe@apple.comfb7aaa432012-10-29 23:36:03 +00008063 Simplify Xcode configuration settings that used to vary between OS versions.
8064
8065 Reviewed by Dan Bernstein.
8066
8067 * Configurations/Base.xcconfig:
8068 * Configurations/DebugRelease.xcconfig:
8069 * Configurations/WebKit.xcconfig:
8070
80712012-10-28 Mark Rowe <mrowe@apple.com>
8072
mrowe@apple.com5b132012012-10-29 23:35:56 +00008073 Remove references to unsupported OS and Xcode versions.
8074
8075 Reviewed by Anders Carlsson.
8076
8077 * Configurations/Base.xcconfig:
8078 * Configurations/CompilerVersion.xcconfig: Removed.
8079 * Configurations/DebugRelease.xcconfig:
8080 * Configurations/Version.xcconfig:
8081
enrica@apple.comae9b0992012-10-29 17:10:19 +000080822012-10-29 Enrica Casucci <enrica@apple.com>
8083
8084 Add ENABLE_USERSELECT_ALL feature flag.
8085 https://bugs.webkit.org/show_bug.cgi?id=100559
8086
8087 Reviewed by Eric Seidel.
8088
8089 * Configurations/FeatureDefines.xcconfig:
8090
ap@apple.com17d35052012-10-28 06:10:56 +000080912012-10-27 Alexey Proskuryakov <ap@apple.com>
8092
8093 All tests crash in WebKit1 mode
8094 https://bugs.webkit.org/show_bug.cgi?id=100602
8095
8096 Reviewed by Sam Weinig.
8097
8098 * WebView/WebView.mm: (+[WebView _setLoadResourcesSerially:]): Resource load
8099 scheduler is created via a strategy, so strategies need to be initialized before
8100 using it.
8101
mitz@apple.comba174332012-10-27 16:14:53 +000081022012-10-27 Dan Bernstein <mitz@apple.com>
8103
8104 REAL_PLATFORM_NAME build setting is no longer needed
8105 https://bugs.webkit.org/show_bug.cgi?id=100587
8106
8107 Reviewed by Mark Rowe.
8108
8109 Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
8110 to PLATFORM_NAME.
8111
8112 * Configurations/Base.xcconfig:
8113 * Configurations/CompilerVersion.xcconfig:
8114 * Configurations/DebugRelease.xcconfig:
8115 * Configurations/FeatureDefines.xcconfig:
8116 * Configurations/Version.xcconfig:
8117 * Configurations/WebKit.xcconfig:
8118
commit-queue@webkit.orgb885adc2012-10-26 10:20:33 +000081192012-10-26 Thiago Marcos P. Santos <thiago.santos@intel.com>
8120
8121 Add feature flags for CSS Device Adaptation
8122 https://bugs.webkit.org/show_bug.cgi?id=95960
8123
8124 Reviewed by Kenneth Rohde Christiansen.
8125
8126 * Configurations/FeatureDefines.xcconfig:
8127
dominik.rottsches@intel.com6bf0b302012-10-25 19:26:47 +000081282012-10-25 Dominik Röttsches <dominik.rottsches@intel.com>
8129
8130 Conditionalize XHR timeout support
8131 https://bugs.webkit.org/show_bug.cgi?id=100356
8132
8133 Reviewed by Adam Barth.
8134
8135 Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
8136 Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
8137
8138 * Configurations/FeatureDefines.xcconfig:
8139
timothy@apple.comfc7d6f62012-10-24 21:37:19 +000081402012-10-24 Timothy Hatcher <timothy@apple.com>
8141
8142 Fix a crash seen during the Inspector tests on the WebKit1 bots.
8143
8144 Reviewed by Filip Pizlo.
8145
8146 * WebCoreSupport/WebInspectorClient.mm:
8147 (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
8148 is not the same when the Inspector is docked.
8149
beidson@apple.com888d153a2012-10-24 20:49:23 +000081502012-10-24 Brady Eidson <beidson@apple.com>
8151
8152 Add a strategy for loader customization.
8153 https://bugs.webkit.org/show_bug.cgi?id=100278
8154
8155 Reviewed by Alexey Proskuryakov.
8156
8157 * WebCoreSupport/WebPlatformStrategies.h:
8158 (WebPlatformStrategies):
8159 * WebCoreSupport/WebPlatformStrategies.mm:
8160 (WebPlatformStrategies::createLoaderStrategy):
8161
timothy@apple.comc9dc9682012-10-24 19:00:50 +000081622012-10-24 Timothy Hatcher <timothy@apple.com>
8163
8164 Make the Inspector WKView/WebView become the first responder when bringToFront is called.
8165
8166 https://bugs.webkit.org/show_bug.cgi?id=100209
8167
8168 Reviewed by Joseph Pecoraro.
8169
8170 * WebCoreSupport/WebInspectorClient.mm:
8171 (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
8172
ap@apple.com9416a2e2012-10-24 17:28:14 +000081732012-10-23 Alexey Proskuryakov <ap@apple.com>
8174
8175 Add a strategy for shared workers
8176 https://bugs.webkit.org/show_bug.cgi?id=100165
8177
8178 Reviewed by Brady Eidson.
8179
8180 * WebCoreSupport/WebPlatformStrategies.h:
8181 * WebCoreSupport/WebPlatformStrategies.mm:
8182 (WebPlatformStrategies::createPasteboardStrategy):
8183 (WebPlatformStrategies::createSharedWorkerStrategy):
8184 (WebPlatformStrategies::createVisitedLinkStrategy):
8185
eric.carlson@apple.com68e8da72012-10-24 14:24:43 +000081862012-10-24 Eric Carlson <eric.carlson@apple.com>
8187
8188 Allow ports to override text track rendering style
8189 https://bugs.webkit.org/show_bug.cgi?id=97800
8190 <rdar://problem/12044964>
8191
8192 Reviewed by Maciej Stachowiak.
8193
8194 * WebCoreSupport/WebSystemInterface.mm:
8195 (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
8196
mitz@apple.comebbb0102012-10-24 05:13:12 +000081972012-10-23 Dan Bernstein <mitz@apple.com>
8198
8199 WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
8200 https://bugs.webkit.org/show_bug.cgi?id=100188
8201
8202 Reviewed by Sam Weinig.
8203
8204 * WebView/WebView.mm:
8205 (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
8206 code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
8207 default. Changed to refer to that default key by name.
8208
kenneth@webkit.org2a707b52012-10-23 15:15:43 +000082092012-10-23 Kenneth Rohde Christiansen <kenneth@webkit.org>
8210
8211 Add support for resolution media query
8212 https://bugs.webkit.org/show_bug.cgi?id=99077
8213
8214 Reviewed by Antti Koivisto.
8215
8216 Add support for the RESOLUTION_MEDIA_QUERY feature flag.
8217
8218 * Configurations/FeatureDefines.xcconfig:
8219
kling@webkit.org7d22c9e2012-10-22 02:37:56 +000082202012-10-21 Andreas Kling <kling@webkit.org>
8221
8222 Remove Page::javaScriptURLsAreAllowed setting.
8223 <http://webkit.org/b/99944>
8224
8225 Reviewed by Anders Carlsson.
8226
8227 * WebKit.order:
8228 * WebView/WebView.mm:
8229 * WebView/WebViewPrivate.h:
8230
commit-queue@webkit.org85886a92012-10-19 18:53:11 +000082312012-10-19 Dongwoo Joshua Im <dw.im@samsung.com>
8232
8233 Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
8234 https://bugs.webkit.org/show_bug.cgi?id=99804
8235
8236 Reviewed by Julien Chaffraix.
8237
8238 CSS3 text related properties will be implemented under this flag,
8239 including text decoration, text-align-last, and text-justify.
8240
8241 * Configurations/FeatureDefines.xcconfig:
8242
commit-queue@webkit.org80d18442012-10-18 18:43:15 +000082432012-10-18 Pablo Flouret <pablof@motorola.com>
8244
8245 Implement css3-conditional's @supports rule
8246 https://bugs.webkit.org/show_bug.cgi?id=86146
8247
8248 Reviewed by Antti Koivisto.
8249
8250 * Configurations/FeatureDefines.xcconfig:
8251 Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
8252
commit-queue@webkit.org8d0f6982012-10-17 19:02:30 +000082532012-10-17 Joseph Pecoraro <pecoraro@apple.com>
8254
8255 [Mac] Uninitialized Members in WebDataSourcePrivate
8256 https://bugs.webkit.org/show_bug.cgi?id=99617
8257
8258 Reviewed by David Kilzer.
8259
8260 Initialize BOOL member variables.
8261
8262 * WebView/WebDataSource.mm:
8263 (WebDataSourcePrivate::WebDataSourcePrivate):
8264
mrowe@apple.com7db4b422012-10-17 08:15:47 +000082652012-10-17 Mark Rowe <mrowe@apple.com>
8266
8267 Fix the build with a newer version of clang.
8268
8269 Reviewed by Dan Bernstein.
8270
8271 Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
8272 While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
8273 with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
8274 therefore generates a warning in newer versions of the compiler.
8275
8276 Fixes <rdar://problem/12503709>.
8277
8278 * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
8279 * Misc/WebCoreStatistics.mm: Ditto.
8280 (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
8281 (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
8282
jianli@chromium.org9acde012012-10-17 00:14:47 +000082832012-10-16 Jian Li <jianli@chromium.org>
8284
8285 Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
8286 https://bugs.webkit.org/show_bug.cgi?id=98975
8287
8288 Reviewed by Adam Barth.
8289
8290 Renaming is needed to better match with the draggable region code.
8291
8292 * Configurations/FeatureDefines.xcconfig:
8293
mitz@apple.comb71def62012-10-15 21:50:53 +000082942012-10-15 Dan Bernstein <mitz@apple.com>
8295
8296 WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
8297 https://bugs.webkit.org/show_bug.cgi?id=99113
8298
8299 Reviewed by Tim Horton.
8300
8301 * WebCoreSupport/WebSystemInterface.mm:
8302 (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
8303
ddkilzer@apple.coma407f592012-10-15 20:51:36 +000083042012-10-15 David Kilzer <ddkilzer@apple.com>
8305
8306 Move framework and library linking into WebKit.xcconfig
8307 <http://webkit.org/b/99284>
8308
8309 Reviewed by Mark Rowe.
8310
8311 * Configurations/WebKit.xcconfig: Move frameworks and libraries
8312 link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
8313
jonlee@apple.com2ee4bbe2012-10-14 23:50:30 +000083142012-10-14 Jon Lee <jonlee@apple.com>
8315
8316 Allow notification origin permission request when no js callback is provided
8317 https://bugs.webkit.org/show_bug.cgi?id=63615
8318 <rdar://problem/11059590>
8319
8320 Reviewed by Sam Weinig.
8321
8322 Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
8323 we do not fall through to calling the standard API's callback if the legacy API's callback is null.
8324
8325 * WebCoreSupport/WebNotificationClient.mm:
8326 (WebCore):
8327 (-[WebNotificationPolicyListener initWithVoidCallback:]):
8328 (-[WebNotificationPolicyListener allow]):
8329 (-[WebNotificationPolicyListener deny]):
8330
weinig@apple.com1a6cf372012-10-14 21:55:53 +000083312012-10-14 Sam Weinig <sam@webkit.org>
8332
8333 Make UserScript and UserStyleSheet value objects that are copyable
8334 https://bugs.webkit.org/show_bug.cgi?id=99275
8335
8336 Reviewed by Tim Horton.
8337
8338 * WebView/WebView.mm:
8339 (-[WebView _injectMailQuirksScript]):
8340 (-[WebView _injectOutlookQuirksScript]):
8341 Update for new PageGroup function signatures.
8342
beidson@apple.com1b1b9402012-10-11 18:29:32 +000083432012-10-10 Brady Eidson <beidson@apple.com>
8344
8345 Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
8346 https://bugs.webkit.org/show_bug.cgi?id=98976
8347
8348 Reviewed by Anders Carlsson.
8349
8350 * WebView/WebDataSource.mm:
8351 (-[WebDataSource data]):
8352
jer.noble@apple.com218244a2012-10-11 06:40:02 +000083532012-10-10 Jer Noble <jer.noble@apple.com>
8354
8355 Disallow full screen mode keyboard access by default.
8356 https://bugs.webkit.org/show_bug.cgi?id=98971
8357 <rdar://problem/12474226>
8358
8359 Reviewed by Sam Weinig.
8360
8361 Only support full screen if keyboard access is not requested.
8362
8363 * WebView/WebView.mm:
8364 (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
8365
jonlee@apple.com1c74e392012-10-10 23:23:13 +000083662012-10-10 Jon Lee <jonlee@apple.com>
8367
8368 [WK2] Activate plugins when user clicks on snapshot
8369 https://bugs.webkit.org/show_bug.cgi?id=98328
8370 <rdar://problem/12426681>
8371
8372 Reviewed by Brady Eidson.
8373
8374 * WebCoreSupport/WebFrameLoaderClient.h:
8375 * WebCoreSupport/WebFrameLoaderClient.mm:
8376 (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
8377
beidson@apple.com9bf57722012-10-10 20:23:17 +000083782012-10-10 Brady Eidson <beidson@apple.com>
8379
8380 Switch CachedResource over from SharedBuffer to a new ResourceBuffer
8381 https://bugs.webkit.org/show_bug.cgi?id=98541
8382
8383 Reviewed by Anders Carlsson.
8384
8385 * WebView/WebHTMLView.mm:
8386 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
8387
simon.fraser@apple.combbe04532012-10-10 17:49:17 +000083882012-10-10 Simon Fraser <simon.fraser@apple.com>
8389
8390 Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
8391 https://bugs.webkit.org/show_bug.cgi?id=98839
8392
8393 Reviewed by Sam Weinig.
8394
8395 To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
8396 in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
8397 but store the computed rect in m_visibleRect.
8398
8399 Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
8400 layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
8401
8402 * WebView/WebFrame.mm:
8403 (-[WebFrame _layerTreeAsText]):
8404
jianli@chromium.orgbd81dfe2012-10-10 00:06:59 +000084052012-10-09 Jian Li <jianli@chromium.org>
8406
8407 Update the CSS property used to support draggable regions.
8408 https://bugs.webkit.org/show_bug.cgi?id=97156
8409
8410 Reviewed by Adam Barth.
8411
8412 The CSS property to support draggable regions, guarded under
8413 WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
8414 confusion with DASHBOARD_SUPPORT feature.
8415
8416 Also update the code to use the new name annotatedRegions to work for
8417 both features.
8418
8419 * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
8420 * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
8421 * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
8422 (WebChromeClient::annotatedRegionsChanged):
8423 * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
8424 (-[WebView _dashboardRegions]):
8425
commit-queue@webkit.orga2a40f82012-10-09 23:21:08 +000084262012-10-09 Sheriff Bot <webkit.review.bot@gmail.com>
8427
8428 Unreviewed, rolling out r130811 and r130821.
8429 http://trac.webkit.org/changeset/130811
8430 http://trac.webkit.org/changeset/130821
8431 https://bugs.webkit.org/show_bug.cgi?id=98831
8432
8433 Broke date-suggestion-picker-appearance-with-scroll-bar.html
8434 (Requested by abarth|gardening on #webkit).
8435
8436 * WebView/WebFullScreenController.mm:
8437 (screenRectOfContents):
8438 * WebView/WebRenderNode.mm:
8439 (copyRenderNode):
8440
commit-queue@webkit.org9b4ec582012-10-09 05:45:48 +000084412012-10-08 Kiran Muppala <cmuppala@apple.com>
8442
8443 Throttle DOM timers on hidden pages.
8444 https://bugs.webkit.org/show_bug.cgi?id=98474
8445
8446 Reviewed by Maciej Stachowiak.
8447
8448 Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
8449 DumpRenderTree to modify the visibility state of a page. The latter
8450 is needed to test throttling of timers on hidden pages through DumpRenderTree.
8451
8452 * Configurations/FeatureDefines.xcconfig:
8453 * WebView/WebView.mm:
8454 (-[WebView _setVisibilityState:isInitialState:]):
8455 * WebView/WebViewPrivate.h:
8456
benjamin@webkit.orgee554052012-10-07 23:12:07 +000084572012-10-07 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
8458
8459 Rename first/second to key/value in HashMap iterators
8460 https://bugs.webkit.org/show_bug.cgi?id=82784
8461
8462 Reviewed by Eric Seidel.
8463
8464 * History/WebHistory.mm:
8465 (-[WebHistoryPrivate removeItemFromDateCaches:]):
8466 (-[WebHistoryPrivate orderedLastVisitedDays]):
8467 (WebHistoryWriter::WebHistoryWriter):
8468 * Misc/WebCoreStatistics.mm:
8469 (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
8470 (+[WebCoreStatistics javaScriptObjectTypeCounts]):
8471 * Plugins/Hosted/NetscapePluginHostManager.mm:
8472 (WebKit::NetscapePluginHostManager::hostForPlugin):
8473 (WebKit::NetscapePluginHostManager::pluginHostDied):
8474 (WebKit::NetscapePluginHostManager::didCreateWindow):
8475 * Plugins/Hosted/NetscapePluginHostProxy.mm:
8476 (WebKit::NetscapePluginHostProxy::pluginHostDied):
8477 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8478 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
8479 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
8480 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
8481 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
8482 (WebKit::NetscapePluginInstanceProxy::destroy):
8483 (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
8484 (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
8485 * Plugins/Hosted/ProxyInstance.mm:
8486 (WebKit::ProxyInstance::methodNamed):
8487 (WebKit::ProxyInstance::fieldNamed):
8488 * Plugins/WebNetscapePluginView.mm:
8489 (-[WebNetscapePluginView stopTimers]):
8490 (-[WebNetscapePluginView startTimers]):
8491 * WebCoreSupport/WebNotificationClient.mm:
8492 (WebNotificationClient::show):
8493 (WebNotificationClient::clearNotifications):
8494 (WebNotificationClient::notificationObjectDestroyed):
8495 * WebView/WebHTMLView.mm:
8496 (commandNameForSelector):
8497
mitz@apple.com708bc632012-10-06 18:37:38 +000084982012-10-06 Dan Bernstein <mitz@apple.com>
8499
8500 WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
8501 https://bugs.webkit.org/show_bug.cgi?id=98601
8502
8503 Reviewed by Darin Adler.
8504
8505 * WebView/WebView.mm:
8506 (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
8507 kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
8508 the value YES.
8509
commit-queue@webkit.orgf583bb12012-10-05 23:28:42 +000085102012-10-05 Sheriff Bot <webkit.review.bot@gmail.com>
8511
8512 Unreviewed, rolling out r130556 and r130564.
8513 http://trac.webkit.org/changeset/130556
8514 http://trac.webkit.org/changeset/130564
8515 https://bugs.webkit.org/show_bug.cgi?id=98572
8516
8517 The patch wasn't reviewed by a reviewer and it is breaking
8518 Chromium Windows (Requested by jchaffraix on #webkit).
8519
8520 * WebCoreSupport/WebSystemInterface.mm:
8521 (InitWebCoreSystemInterface):
8522
timothy_horton@apple.comba51c882012-10-05 22:56:38 +000085232012-10-05 Tim Horton <timothy_horton@apple.com>
8524
8525 [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
8526 https://bugs.webkit.org/show_bug.cgi?id=98565
8527 <rdar://problem/12436468>
8528
8529 Reviewed by Simon Fraser.
8530
8531 Add wkCGContextDrawsWithCorrectShadowOffsets.
8532
8533 * WebCoreSupport/WebSystemInterface.mm:
8534 (InitWebCoreSystemInterface):
8535
jer.noble@apple.com0846d8d2012-10-05 21:57:04 +000085362012-10-04 Eric Carlson <eric.carlson@apple.com>
8537
8538 Allow ports to override text track rendering style
8539 https://bugs.webkit.org/show_bug.cgi?id=97800
8540 <rdar://problem/12044964>
8541
8542 Reviewed by Silvia Pfeiffer.
8543
8544 Add WCSI support for new WKSI caption functions.
8545
8546 * WebCoreSupport/WebSystemInterface.mm:
8547 (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
8548
jonlee@apple.com3f4a62e2012-10-05 17:53:04 +000085492012-10-04 Jon Lee <jonlee@apple.com>
8550
8551 Add a setting to enable plugin snapshotting
8552 https://bugs.webkit.org/show_bug.cgi?id=98319
8553 <rdar://problem/12426480>
8554
8555 Reviewed by Brady Eidson.
8556
8557 Expose plugInSnapshottingEnabled preference to WebKit clients.
8558
8559 * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
8560 * WebView/WebPreferences.mm:
8561 (+[WebPreferences initialize]): Setting is turned off by default.
8562 (-[WebPreferences plugInSnapshottingEnabled]):
8563 (-[WebPreferences setPlugInSnapshottingEnabled:]):
8564 * WebView/WebPreferencesPrivate.h:
8565 * WebView/WebView.mm:
8566 (-[WebView _preferencesChanged:]): Update settings based on preference.
8567
commit-queue@webkit.org68423ae2012-10-05 04:56:44 +000085682012-10-04 Rik Cabanier <cabanier@adobe.com>
8569
8570 Turn Compositing on by default in WebKit build
8571 https://bugs.webkit.org/show_bug.cgi?id=98315
8572
8573 Reviewed by Simon Fraser.
8574
8575 enable -webkit-blend-mode on trunk.
8576
8577 * Configurations/FeatureDefines.xcconfig:
8578
simon.fraser@apple.comdf44c012012-10-05 00:43:04 +000085792012-10-04 Simon Fraser <simon.fraser@apple.com>
8580
8581 Final part of "sync" to "flush" renaming
8582 https://bugs.webkit.org/show_bug.cgi?id=98430
8583
8584 Reviewed by Tim Horton.
8585
8586 Change method names on GraphicsLayer and GraphicsLayerClient that
8587 refer to "sync" to use the term "flush" instead, to be consistent
8588 with the rest of the code.
8589
8590 * WebView/WebView.mm:
8591
benjamin@webkit.org4bad4cc2012-10-04 19:10:18 +000085922012-10-03 Benjamin Poulain <bpoulain@apple.com>
8593
8594 [WK2] Support all attributes of GeolocationPosition
8595 https://bugs.webkit.org/show_bug.cgi?id=98212
8596
8597 Reviewed by Sam Weinig.
8598
8599 Add an internal constructor for the sake of testing.
8600 A similar API is used on iOS.
8601
8602 * WebView/WebGeolocationPosition.mm:
8603 (-[WebGeolocationPosition initWithGeolocationPosition:]):
8604
simon.fraser@apple.comcad7e8e2012-10-04 16:16:19 +000086052012-10-04 Simon Fraser <simon.fraser@apple.com>
8606
8607 Standardize on "flush" terminology for compositing layer flushing/syncing
8608 https://bugs.webkit.org/show_bug.cgi?id=98321
8609
8610 Reviewed by Simon Fraser.
8611
8612 Rename compositing-related methods that refer to "syncing" to instead
8613 refer to "flushing".
8614
8615 * WebCoreSupport/WebChromeClient.h:
8616 * WebCoreSupport/WebChromeClient.mm:
8617 (WebChromeClient::scheduleCompositingLayerFlush):
8618 * WebView/WebView.mm:
8619 (-[WebView _flushCompositingChanges]):
8620 (LayerFlushController::flushLayers):
8621 (-[WebView _scheduleCompositingLayerFlush]):
8622 * WebView/WebViewInternal.h:
8623
simon.fraser@apple.comeec26cb2012-10-03 00:24:16 +00008624== Rolled over to ChangeLog-2012-10-02 ==