1 2011-03-02 Sam Weinig <sam@webkit.org>
3 Reviewed by Anders Carlsson.
5 Fix remaining localization issues by piping all localized strings through WebCore's
6 localization bottleneck.
7 <rdar://problem/8728860>
9 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
10 (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
11 * Misc/WebKitErrors.m:
12 * Misc/WebLocalizableStringsInternal.h: Added.
13 * Misc/WebLocalizableStringsInternal.mm: Added.
14 (WebLocalizedStringInternal):
15 * Panels/WebAuthenticationPanel.m:
16 (-[WebAuthenticationPanel setUpForChallenge:]):
17 * Plugins/Hosted/NetscapePluginHostManager.mm:
18 (WebKit::NetscapePluginHostManager::spawnPluginHost):
19 * WebCoreSupport/WebEditorClient.mm:
20 (undoNameForEditAction):
21 * WebCoreSupport/WebInspectorClient.mm:
22 (WebInspectorFrontendClient::updateWindowTitle):
23 (-[WebInspectorWindowController validateUserInterfaceItem:]):
24 * WebCoreSupport/WebKeyGenerator.m:
25 (-[WebKeyGenerator strengthMenuItemTitles]):
26 (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]):
27 * WebCoreSupport/WebPlatformStrategies.mm:
28 * WebView/WebHTMLView.mm:
29 (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
30 * WebView/WebPDFView.mm:
31 (-[WebPDFView menuForEvent:]):
33 2011-03-01 Brian Weinstein <bweinstein@apple.com>
35 Reviewed by Adam Roben.
37 Part of WebKit2: Need a way to send notifications to client when cookies change
38 https://bugs.webkit.org/show_bug.cgi?id=55427
39 <rdar://problem/9056027>
41 Add stubs for CookiesStrategy on Mac WebKit1.
43 * WebCoreSupport/WebPlatformStrategies.h:
44 * WebCoreSupport/WebPlatformStrategies.mm:
45 (WebPlatformStrategies::createCookiesStrategy):
46 (WebPlatformStrategies::notifyCookiesChanged):
48 2011-03-01 Philippe Normand <pnormand@igalia.com>
50 Reviewed by Eric Carlson.
52 [GStreamer] support in mac video fullscreen controller
53 https://bugs.webkit.org/show_bug.cgi?id=52280
55 Factored the code to configure the video overlay in a new private
56 method of the controller and added GStreamer support to it.
58 * WebView/WebVideoFullscreenController.h:
59 * WebView/WebVideoFullscreenController.mm:
60 (-[WebVideoFullscreenController setupVideoOverlay:]):
61 (-[WebVideoFullscreenController windowDidLoad]):
62 (-[WebVideoFullscreenController setMediaElement:WebCore::]):
63 (-[WebVideoFullscreenController windowDidExitFullscreen]):
65 2011-02-23 Joseph Pecoraro <joepeck@webkit.org>
67 Reviewed by Timothy Hatcher.
69 All Console Messages should be passed to ChromeClients.
70 https://bugs.webkit.org/show_bug.cgi?id=54926
72 Add a new private UIDelegate method, -webView:addMessageToConsole:withSource:,
73 which supersedes -webView:addMessageToConsole if it exists. The new delegate
74 does not filter to only JavaScript originated console messages. The old
75 delegate is left around for clients that expect filtered messages, like
76 DashCode and older versions of Safari.
78 The dictionary message passed to the delegate now includes more information
79 about the message source, type, and level.
81 * WebCoreSupport/WebChromeClient.mm:
82 (stringForMessageSource):
83 (stringForMessageType):
84 (stringForMessageLevel):
85 (WebChromeClient::addMessageToConsole):
86 * WebView/WebUIDelegatePrivate.h:
88 2011-03-01 Levi Weintraub <leviw@chromium.org>
90 Reviewed by Ryosuke Niwa.
92 Stop instantiating legacy editing Positions in VisiblePosition
93 https://bugs.webkit.org/show_bug.cgi?id=52919
95 Changing usage of legacy VisiblePosition constructor. Since we were dealing
96 with positions from DOM Ranges, we're guaranteed a parent-anchored position.
98 * WebView/WebFrame.mm:
99 (-[WebFrame _caretRectAtPosition:affinity:]):
100 * WebView/WebFrameInternal.h:
101 * WebView/WebTextCompletionController.mm:
102 (-[WebTextCompletionController doCompletion]):
104 2011-03-01 Sam Weinig <sam@webkit.org>
106 Reviewed by Timothy Hatcher.
108 WebKit2 needs to be made localizable
109 https://bugs.webkit.org/show_bug.cgi?id=55483
111 * WebCoreSupport/WebPlatformStrategies.mm:
112 Use WebCore's localizedString function instead of WebLocalizableStrings
113 since WebCore is now responsible for localization.
115 2011-02-25 Steve Block <steveblock@google.com>
117 Reviewed by Jeremy Orlow.
119 Bridge.h should not include BridgeJSC.h
120 https://bugs.webkit.org/show_bug.cgi?id=55212
122 Include BridgeJSC.h directly instead.
124 * Plugins/Hosted/ProxyInstance.h:
125 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
127 2011-02-28 Chang Shu <cshu@webkit.org>
129 Reviewed by Ryosuke Niwa.
131 Remove the support of Frame::isContentEditable and its dependencies.
132 https://bugs.webkit.org/show_bug.cgi?id=54292
134 Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
136 * WebCoreSupport/WebEditorClient.h:
137 * WebCoreSupport/WebEditorClient.mm:
138 * WebView/WebView.mm:
139 (-[WebView setEditable:]):
140 (-[WebView isEditable]):
141 * WebView/WebViewData.h:
143 2011-02-28 Oliver Hunt <oliver@apple.com>
145 Reviewed by Gavin Barraclough.
147 Make ScopeChainNode GC allocated
148 https://bugs.webkit.org/show_bug.cgi?id=55283
150 More updates for the absence of the ScopeChain class
152 * WebView/WebScriptDebugDelegate.mm:
153 (-[WebScriptCallFrame scopeChain]):
155 2011-02-26 Vsevolod Vlasov <vsevik@chromium.org>
157 Reviewed by Pavel Feldman.
159 DumpRenderTree should reset frame opener between tests.
160 https://bugs.webkit.org/show_bug.cgi?id=54874
162 Added clearOpener method to WebFramePrivate.
164 * WebView/WebFrame.mm:
165 (-[WebFrame _clearOpener]):
166 * WebView/WebFramePrivate.h:
168 2011-02-26 Sheriff Bot <webkit.review.bot@gmail.com>
170 Unreviewed, rolling out r79764.
171 http://trac.webkit.org/changeset/79764
172 https://bugs.webkit.org/show_bug.cgi?id=55295
174 "broke Chromium builds" (Requested by rniwa on #webkit).
176 * WebView/WebFrame.mm:
177 * WebView/WebFramePrivate.h:
179 2011-02-26 Yongjun Zhang <yongjun_zhang@apple.com>
181 Reviewed by David Kilzer.
183 https://bugs.webkit.org/show_bug.cgi?id=48781
185 Add a resource load delegate method to query if WebCore should paint the default broken image for failed images.
187 Add a new resource load client method (shouldPaintBrokenImage). WebKit client can decide if WebCore
188 should paint the default broken image when an image fails to load or decode. The method also passes the
189 URL of the failed image.
191 * WebCoreSupport/WebFrameLoaderClient.h:
192 * WebCoreSupport/WebFrameLoaderClient.mm:
193 (WebFrameLoaderClient::shouldPaintBrokenImage):
194 * WebView/WebDelegateImplementationCaching.h:
195 * WebView/WebDelegateImplementationCaching.mm: Added case for passing one object.
196 (CallResourceLoadDelegateReturningBoolean):
197 * WebView/WebResourceLoadDelegatePrivate.h:
198 * WebView/WebView.mm:
199 (-[WebView _cacheResourceLoadDelegateImplementations]):
201 2011-02-26 Vsevolod Vlasov <vsevik@chromium.org>
203 Reviewed by Pavel Feldman.
205 DumpRenderTree should reset frame opener between tests.
206 https://bugs.webkit.org/show_bug.cgi?id=54874
208 Added clearOpener method to WebFramePrivate.
210 * WebView/WebFrame.mm:
211 (-[WebFrame _clearOpener]):
212 * WebView/WebFramePrivate.h:
214 2011-02-25 Mark Rowe <mrowe@apple.com>
216 <rdar://problem/8902546> Build fix.
218 * Misc/QuickDrawCompatibility.h:
220 2011-02-24 Anders Carlsson <andersca@apple.com>
224 * WebCoreSupport/WebKeyGenerator.m:
225 (toWebCertificateParseResult):
226 (-[WebKeyGenerator addCertificatesToKeychainFromData:]):
227 * WebView/WebTextCompletionController.mm:
229 2011-02-24 Peter Kasting <pkasting@google.com>
231 Reviewed by Eric Seidel.
233 Drop the "U; " encryption level from the User Agent string.
234 https://bugs.webkit.org/show_bug.cgi?id=54566
236 * WebView/WebView.mm:
237 (+[WebView _standardUserAgentWithApplicationName:]):
239 2011-02-24 Andrew Wilson <atwilson@chromium.org>
241 Unreviewed, rolling out r79570.
242 http://trac.webkit.org/changeset/79570
243 https://bugs.webkit.org/show_bug.cgi?id=54874
245 Breaks chromium build because glue/mocks/mock_web_frame.h/cc
248 * WebView/WebFrame.mm:
249 * WebView/WebFramePrivate.h:
251 2011-02-24 Vsevolod Vlasov <vsevik@chromium.org>
253 Reviewed by Alexey Proskuryakov.
255 DumpRenderTree should reset frame opener between tests.
256 https://bugs.webkit.org/show_bug.cgi?id=54874
258 Added clearOpener method to WebFramePrivate.
260 * WebView/WebFrame.mm:
261 (-[WebFrame _clearOpener]):
262 * WebView/WebFramePrivate.h:
264 2011-02-22 Laszlo Gombos <laszlo.1.gombos@nokia.com>
266 Reviewed by Alexey Proskuryakov.
268 Drop the language tag part from the User Agent string
269 https://bugs.webkit.org/show_bug.cgi?id=54560
271 * WebView/WebView.mm:
272 (+[WebView _standardUserAgentWithApplicationName:]): Drop the
275 2011-02-22 Brady Eidson <beidson@apple.com>
277 Reviewed by Anders Carlsson.
279 Part of <rdar://problem/8762042> and https://bugs.webkit.org/show_bug.cgi?id=54514
280 API to view and delete Application Cache data by origin.
282 * WebCoreSupport/WebApplicationCache.mm:
283 (+[WebApplicationCache deleteAllApplicationCaches]): Move this implementation into WebCore itself.
285 2011-02-17 Ryosuke Niwa <rniwa@webkit.org>
287 Reviewed by Kent Tamura.
289 Rename Position::node() to Position::deprecatedNode()
290 https://bugs.webkit.org/show_bug.cgi?id=54622
292 * WebView/WebFrame.mm:
293 (-[WebFrame _smartDeleteRangeForProposedRange:]):
295 2011-02-17 Ryosuke Niwa <rniwa@webkit.org>
297 Reviewed by Kent Tamura.
299 Rename Position::node() to Position::deprecatedNode()
300 https://bugs.webkit.org/show_bug.cgi?id=54622
304 * WebView/WebFrame.mm:
305 (-[WebFrame _smartDeleteRangeForProposedRange:]): Since newStart and newEnd are parent-anchored,
306 use containerNode() and offsetInContainerNode() instead of deprecated member functions.
308 2011-02-18 Gavin Barraclough <barraclough@apple.com>
310 Reviewed by Sam Weinig.
312 Bug 54786 - Devirtualize JSCell::classInfo()
314 Instead of making a virtual function call, add a pointer to the ClassInfo
317 This removes a virtual function call, and paves the way towards removing all
318 the createStructure methods, and StructureFlags/AnonymousSlotCount properties
319 (these should be able to move onto ClassInfo).
321 Calls to Structure::create must now pass a pointer to the ClassInfo for the
322 structure. All objects now have a ClassInfo pointer, non-object cell types
325 Changes are most mechanical, involving three steps:
326 * Remove virtual classInfo() methods.
327 * Add &s_info parameter to calls to Structure::create.
328 * Rename ClassInfo static members on classes from 'info' to 's_info',
331 * Plugins/Hosted/ProxyInstance.mm:
332 (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
333 (WebKit::ProxyRuntimeMethod::createStructure):
334 * Plugins/Hosted/ProxyRuntimeObject.h:
335 (WebKit::ProxyRuntimeObject::createStructure):
336 * Plugins/Hosted/ProxyRuntimeObject.mm:
337 (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
338 * WebView/WebView.mm:
341 2011-02-19 Brian Ryner <bryner@chromium.org>
343 Reviewed by Adam Barth.
345 Add missing #include of DocumentLoader.h, needed since the transitive
346 include through Document.h is removed.
347 https://bugs.webkit.org/show_bug.cgi?id=50489
349 * WebView/WebFrame.mm:
351 2011-02-19 Charlie Reis <creis@chromium.org>
353 Reviewed by Mihai Parparita.
355 Ensure loading has stopped in HistoryController::goToItem
356 https://bugs.webkit.org/show_bug.cgi?id=54517
358 Add a FrameLoaderClient callback for whether to stop loading before goToItem.
360 Test: http/tests/navigation/forward-to-fragment-fires-onload.html
362 * WebCoreSupport/WebFrameLoaderClient.mm:
363 (WebFrameLoaderClient::shouldStopLoadingForHistoryItem): Added.
364 * WebCoreSupport/WebFrameLoaderClient.h:
366 2011-02-16 David Hyatt <hyatt@apple.com>
368 Reviewed by Dan Bernstein.
370 https://bugs.webkit.org/show_bug.cgi?id=54244
372 Convert the line box tree to floating point and eliminate font rounding hacks. This patch removes all of the rounding
373 hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
375 The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
376 been changed as well.
378 In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
380 Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
382 Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
383 still have a precise floating point position.
385 Justification will now allow subpixel positioning to occur as well. Platforms that don't support subpixel positioning should already
386 be rounding justification spacing in their font code.
388 Many layout test results change on Mac, since rounding hacks were used there and are now gone.
390 * Misc/WebKitNSStringExtras.mm:
391 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
392 (-[NSString _web_widthWithFont:]):
394 2011-02-10 Luiz Agostini <luiz.agostini@openbossa.org>
396 Reviewed by Adam Roben.
398 HTML5 <details> and <summary>: localized text
399 https://bugs.webkit.org/show_bug.cgi?id=54260
401 The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
402 provide the default label to be used by a <details> tag that has no <summary> child.
404 * WebCoreSupport/WebPlatformStrategies.h:
405 * WebCoreSupport/WebPlatformStrategies.mm:
406 (WebPlatformStrategies::defaultDetailsSummaryText):
408 2011-02-16 Matthew Delaney <mdelaney@apple.com>
410 Reviewed by Simon Fraser.
412 Allow acceleratesDrawing for WebKit2
413 https://bugs.webkit.org/show_bug.cgi?id=54511
415 Plumb through preference for accelerated drawing.
417 * WebView/WebPreferenceKeysPrivate.h:
418 * WebView/WebPreferences.mm:
419 (+[WebPreferences initialize]):
420 (-[WebPreferences acceleratedDrawingEnabled]):
421 (-[WebPreferences setAcceleratedDrawingEnabled:]):
422 * WebView/WebPreferencesPrivate.h:
424 2011-02-15 David Kilzer <ddkilzer@apple.com>
426 <http://webkit.org/b/54505> Move -[WebDynamicScrollBarsView inProgrammaticScroll] to WebDynamicScrollBarsViewInternal.h
428 Reviewed by Darin Adler.
430 * WebView/WebDynamicScrollBarsView.h:
431 (-[WebDynamicScrollBarsView inProgrammaticScroll]): Removed
433 * WebView/WebDynamicScrollBarsView.mm:
434 (-[WebDynamicScrollBarsView inProgrammaticScroll]): Moved
435 implementation into correct category.
436 * WebView/WebDynamicScrollBarsViewInternal.h:
437 (-[WebDynamicScrollBarsView inProgrammaticScroll]): Added
439 * WebView/WebHTMLView.mm: Included
440 WebDynamicScrollBarsViewInternal.h instead of
441 WebDynamicScrollBarsView.h.
443 2011-02-14 Oliver Hunt <oliver@apple.com>
445 Reviewed by Gavin Barraclough and Geoff Garen.
447 Refactor handles and weak pointers to become nicer and more automatic
448 https://bugs.webkit.org/show_bug.cgi?id=54415
450 Update to use Global<> instead of ProtectedPtr, and refactored slightly
451 to get global data to places it's needed for when we're assigning to
454 * ForwardingHeaders/collector/handles/Global.h: Added.
455 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
456 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
457 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get):
458 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
459 (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
460 (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
461 (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
462 (WebKit::NetscapePluginInstanceProxy::evaluate):
463 (WebKit::NetscapePluginInstanceProxy::invoke):
464 (WebKit::NetscapePluginInstanceProxy::invokeDefault):
465 (WebKit::NetscapePluginInstanceProxy::construct):
466 (WebKit::NetscapePluginInstanceProxy::addValueToArray):
467 * WebView/WebScriptDebugger.h:
468 * WebView/WebScriptDebugger.mm:
469 (WebScriptDebugger::WebScriptDebugger):
471 2011-02-15 Jia Pu <jpu@apple.com>
473 Reviewed by Darin Adler.
475 Autocorrection should respect undo.
476 https://bugs.webkit.org/show_bug.cgi?id=52221
477 <rdar://problem/8663399>
479 Please see WebCore/ChangeLog for detailed description.
481 * WebCoreSupport/WebEditorClient.h: Updated for the new function declared in EditorClient.
483 * WebCoreSupport/WebEditorClient.mm:
484 (WebEditorClient::recordAutocorrectionResponse): Ditto.
486 * WebView/WebFrame.mm:
487 (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
488 Adopted new signature of ReplaceSelectionCommand::create().
490 2011-02-15 David Kilzer <ddkilzer@apple.com>
492 <http://webkit.org/b/54485> Fix spelling of -inProgramaticScroll
494 Reviewed by Darin Adler.
496 * WebView/WebDynamicScrollBarsView.h:
497 * WebView/WebDynamicScrollBarsView.mm:
498 (-[WebDynamicScrollBarsView inProgrammaticScroll]): Renamed from
499 -inProgramaticScroll.
500 * WebView/WebHTMLView.mm:
501 (-[WebHTMLView _frameOrBoundsChanged]): Corrected method name.
503 2011-02-15 Kenneth Russell <kbr@google.com>
505 Reviewed by Darin Fisher.
507 Allow controlling minimum DOMTimer interval on a per-page basis
508 https://bugs.webkit.org/show_bug.cgi?id=54312
510 Added needed methods to implement LayoutTestController's new
511 setMinimumTimerInterval method.
513 * WebView/WebView.mm:
514 (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
515 (+[WebView _defaultMinimumTimerInterval]):
516 (-[WebView _setMinimumTimerInterval:]):
517 * WebView/WebViewPrivate.h:
519 2011-02-11 Geoffrey Garen <ggaren@apple.com>
521 Reviewed by Oliver Hunt.
523 A little more encapsulation for the heap: Removed CollectorHeapIterator
524 https://bugs.webkit.org/show_bug.cgi?id=54298
526 * Misc/WebCoreStatistics.mm:
527 (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
528 (+[WebCoreStatistics javaScriptObjectTypeCounts]): Updated for new typedef.
530 2011-02-10 Nate Chapin <japhet@chromium.org>
532 Reviewed by Adam Barth.
534 Update calls to DocumentWriter.
535 https://bugs.webkit.org/show_bug.cgi?id=50489
537 * WebView/WebFrame.mm:
538 (-[WebFrame _canProvideDocumentSource]):
540 2011-02-10 Chris Fleizach <cfleizach@apple.com>
542 Reviewed by Anders Carlsson.
544 AX: AX needs to stop using WebCoreViewFactory
545 https://bugs.webkit.org/show_bug.cgi?id=54153
547 * WebCoreSupport/WebSystemInterface.mm:
548 (InitWebCoreSystemInterface):
550 2011-02-10 Peter Varga <pvarga@webkit.org>
552 Reviewed by Csaba Osztrogonác.
554 Remove PCRE source from trunk
555 https://bugs.webkit.org/show_bug.cgi?id=54188
557 * ForwardingHeaders/pcre/pcre.h: Removed.
559 2011-02-09 Pavel Feldman <pfeldman@chromium.org>
561 Reviewed by Yury Semikhatsky.
563 Web Inspector: follow up on InspectorAgent split -
564 removing unnecessary methods from InspectorController.
565 https://bugs.webkit.org/show_bug.cgi?id=54093
567 * WebInspector/WebInspector.mm:
568 (-[WebInspector showConsole:]):
569 (-[WebInspector stopProfilingJavaScript:]):
571 2011-02-08 Dan Bernstein <mitz@apple.com>
573 Reviewed by Jon Honeycutt and Maciej Stachowiak.
575 <rdar://problem/8959420> Find in Mail no longer cycles around
577 * WebView/WebHTMLView.mm:
578 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Set
579 the wrap option according to the flag.
581 2011-02-08 Sheriff Bot <webkit.review.bot@gmail.com>
583 Unreviewed, rolling out r77980.
584 http://trac.webkit.org/changeset/77980
585 https://bugs.webkit.org/show_bug.cgi?id=54043
587 "Crashes on Windows and Linux..." (Requested by leviw on
590 * WebView/WebFrame.mm:
591 (-[WebFrame _caretRectAtNode:offset:affinity:]):
592 * WebView/WebFrameInternal.h:
593 * WebView/WebTextCompletionController.mm:
594 (-[WebTextCompletionController doCompletion]):
596 2011-02-08 Levi Weintraub <leviw@chromium.org>
598 Reviewed by Ryosuke Niwa.
600 Stop instantiating legacy editing Positions in VisiblePosition
601 https://bugs.webkit.org/show_bug.cgi?id=52919
603 Changing usage of legacy VisiblePosition constructor. Since we were dealing
604 with positions from DOM Ranges, we're guaranteed a parent-anchored position.
606 * WebView/WebFrame.mm:
607 (-[WebFrame _caretRectAtPosition:affinity:]):
608 * WebView/WebFrameInternal.h:
609 * WebView/WebTextCompletionController.mm:
610 (-[WebTextCompletionController doCompletion]):
612 2011-02-08 Adam Barth <abarth@webkit.org>
614 Reviewed by Eric Seidel.
616 Remove orphan code from old parser
617 https://bugs.webkit.org/show_bug.cgi?id=53984
619 * WebCoreSupport/WebChromeClient.h:
621 2011-02-02 Ilya Tikhonovsky <loislo@chromium.org>
623 Reviewed by Yury Semikhatsky.
625 Web Inspector: move InspectorController's methods from InspectorAgent to InspectorController.
627 https://bugs.webkit.org/show_bug.cgi?id=53169
629 Minor change enforced by major changes in WebCore/inspector/InspectorController.
631 * WebInspector/WebInspector.mm:
632 (-[WebInspector isTimelineProfilingEnabled]):
634 2011-02-07 Enrica Casucci <enrica@apple.com>
636 Reviewed Adam Roben and Darin Adler.
638 WebKit2: drag and drop support on Windows.
639 https://bugs.webkit.org/show_bug.cgi?id=52775
641 Removed createDragImageForLink from DragClient.
643 * WebCoreSupport/WebDragClient.h:
644 * WebCoreSupport/WebDragClient.mm:
645 (WebDragClient::startDrag):
647 2011-02-03 Yury Semikhatsky <yurys@chromium.org>
649 Reviewed by Pavel Feldman.
651 Web Inspector: remove settings related methods from InspectorClient
652 https://bugs.webkit.org/show_bug.cgi?id=53686
654 * WebCoreSupport/WebInspectorClient.h:
655 * WebCoreSupport/WebInspectorClient.mm:
656 (WebInspectorClient::openInspectorFrontend):
657 (WebInspectorFrontendClient::WebInspectorFrontendClient):
659 2011-02-03 James Kozianski <koz@chromium.org>
661 Reviewed by Dimitri Glazkov.
663 Add navigator.registerProtocolHandler behind a flag.
664 https://bugs.webkit.org/show_bug.cgi?id=52609
666 * Configurations/FeatureDefines.xcconfig:
668 2011-02-03 Adam Langley <agl@chromium.org>
670 Reviewed by Adam Barth.
672 Plumb mixed script URL to FrameLoaderClient
673 https://bugs.webkit.org/show_bug.cgi?id=52384
675 Regressions covered by http/tests/security/mixedContent/*
677 * WebCoreSupport/WebFrameLoaderClient.h:
678 * WebCoreSupport/WebFrameLoaderClient.mm:
679 (WebFrameLoaderClient::didRunInsecureContent):
681 2011-02-03 Beth Dakin <bdakin@apple.com>
683 Reviewed by Sam Weinig.
685 Fix for <rdar://problem/8944544> Ability to animate track
686 for WKPainter scrollers
688 * WebCoreSupport/WebSystemInterface.mm:
689 (InitWebCoreSystemInterface):
691 2011-02-02 Mark Rowe <mrowe@apple.com>
693 Reviewed by Beth Dakin.
695 <rdar://problem/8928367> Crash when loading canvas pages inside HTMLCanvasElement::createImageBuffer().
697 * WebCoreSupport/WebSystemInterface.mm:
698 (InitWebCoreSystemInterface): Add some missing initializers.
700 2011-02-02 Steve Lacey <sjl@chromium.org>
702 Reviewed by Eric Carlson.
704 Implement basic media statistics on media elements.
705 https://bugs.webkit.org/show_bug.cgi?id=53322
707 * Configurations/FeatureDefines.xcconfig:
709 2011-02-01 Sam Weinig <sam@webkit.org>
711 Reviewed by Beth Dakin.
713 Part 2 for <rdar://problem/8492788>
714 Adopt WKScrollbarPainterController
716 Use header detection to define scrollbar painting controller #define.
718 * WebCoreSupport/WebSystemInterface.mm:
719 (InitWebCoreSystemInterface):
721 2011-02-01 David Hyatt <hyatt@apple.com>
723 Reviewed by Oliver Hunt.
725 https://bugs.webkit.org/show_bug.cgi?id=53520
727 Remove the physical terminology from IntRect and FloatRect.
729 Now that we have flipped RenderBlocks for vertical-rl and horizontal-bt writing modes,
730 we need to update our terminology to be more accurate.
732 I'm borrowing a page from AppKit here (which also supports flipped NSViews) and
733 renaming right() and bottom() to maxX() and maxY(). These terms remain accurate
734 even for flipped rectangles.
736 * WebView/WebHTMLView.mm:
737 (setNeedsDisplayInRect):
739 2011-02-01 Beth Dakin <bdakin@apple.com>
741 Reviewed by Sam Weinig.
743 Fix for <rdar://problem/8492788> Adopt WKScrollbarPainterController
745 * WebCoreSupport/WebSystemInterface.mm:
746 (InitWebCoreSystemInterface):
748 2011-02-01 Dave Hyatt <hyatt@apple.com>
750 Reviewed by Darin Adler.
752 https://bugs.webkit.org/show_bug.cgi?id=46422, make printing and pagination work
755 Change printing functions to check writing-mode and properly swap width and height
758 * WebView/WebDynamicScrollBarsView.mm:
759 (-[WebDynamicScrollBarsView setScrollOrigin:updatePositionAtAll:immediately:]):
760 * WebView/WebFrame.mm:
761 (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
762 * WebView/WebFrameInternal.h:
763 * WebView/WebHTMLView.mm:
764 (-[WebHTMLView _web_setPrintingModeRecursive]):
765 (-[WebHTMLView _web_clearPrintingModeRecursive]):
766 (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
767 (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]):
768 (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
769 (-[WebHTMLView _endPrintMode]):
770 (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
771 (-[WebHTMLView _endScreenPaginationMode]):
772 (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
773 (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:maximumPageLogicalWidth:adjustViewSize:paginateScreenContent:]):
774 (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
775 (-[WebHTMLView _scaleFactorForPrintOperation:]):
776 (-[WebHTMLView setPageWidthForPrinting:]):
777 (-[WebHTMLView knowsPageRange:]):
779 2011-01-31 Oliver Hunt <oliver@apple.com>
781 Convert markstack to a slot visitor API
782 https://bugs.webkit.org/show_bug.cgi?id=53219
784 rolling r77098, r77099, r77100, r77109, and
785 r77111 back in, along with a few more Qt fix attempts.
787 * WebView/WebScriptDebugDelegate.mm:
788 (-[WebScriptCallFrame scopeChain]):
790 2011-01-30 Csaba Osztrogonác <ossy@webkit.org>
792 Unreviewed, rolling out r77098, r77099, r77100, r77109, and
794 http://trac.webkit.org/changeset/77098
795 http://trac.webkit.org/changeset/77099
796 http://trac.webkit.org/changeset/77100
797 http://trac.webkit.org/changeset/77109
798 http://trac.webkit.org/changeset/77111
799 https://bugs.webkit.org/show_bug.cgi?id=53219
803 * WebView/WebScriptDebugDelegate.mm:
804 (-[WebScriptCallFrame scopeChain]):
806 2011-01-30 Oliver Hunt <oliver@apple.com>
808 Convert markstack to a slot visitor API
809 https://bugs.webkit.org/show_bug.cgi?id=53219
811 rolling r77006 and r77020 back in.
813 * WebView/WebScriptDebugDelegate.mm:
814 (-[WebScriptCallFrame scopeChain]):
816 2011-01-28 Geoffrey Garen <ggaren@apple.com>
818 Reviewed by Maciej Stachowiak.
820 Some more Heap cleanup.
821 https://bugs.webkit.org/show_bug.cgi?id=53357
823 Updated for JavaScriptCore changes.
825 * Misc/WebCoreStatistics.mm:
826 (+[WebCoreStatistics memoryStatistics]):
828 2011-01-28 Sheriff Bot <webkit.review.bot@gmail.com>
830 Unreviewed, rolling out r77006 and r77020.
831 http://trac.webkit.org/changeset/77006
832 http://trac.webkit.org/changeset/77020
833 https://bugs.webkit.org/show_bug.cgi?id=53360
835 "Broke Windows tests" (Requested by rniwa on #webkit).
837 * WebView/WebScriptDebugDelegate.mm:
838 (-[WebScriptCallFrame scopeChain]):
840 2011-01-27 Oliver Hunt <oliver@apple.com>
842 Reviewed by Geoffrey Garen.
844 Convert markstack to a slot visitor API
845 https://bugs.webkit.org/show_bug.cgi?id=53219
847 Update to new marking api
849 * WebView/WebScriptDebugDelegate.mm:
850 (-[WebScriptCallFrame scopeChain]):
852 2011-01-28 Dan Bernstein <mitz@apple.com>
854 Reviewed by Sam Weinig.
856 <select> can't display right-to-left (rtl) languages
857 https://bugs.webkit.org/show_bug.cgi?id=19785
859 * WebCoreSupport/WebChromeClient.h:
860 * WebCoreSupport/WebChromeClient.mm:
861 (WebChromeClient::selectItemWritingDirectionIsNatural): Changed to return false.
862 (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added. Returns true.
864 2011-01-27 Sheriff Bot <webkit.review.bot@gmail.com>
866 Unreviewed, rolling out r76891.
867 http://trac.webkit.org/changeset/76891
868 https://bugs.webkit.org/show_bug.cgi?id=53280
870 Makes every layout test crash (Requested by othermaciej on
873 * Misc/WebIconDatabase.mm:
874 (-[ThreadEnabler threadEnablingSelector:]):
875 (importToWebCoreFormat):
877 2011-01-27 Nate Chapin <japhet@chromium.org>
879 Reviewed by Adam Barth.
881 Use Document::url() instead of FrameLoader::url().
882 https://bugs.webkit.org/show_bug.cgi?id=41165
884 * WebView/WebView.mm:
885 (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
887 2011-01-27 Dan Bernstein <mitz@apple.com>
889 Rubber-stamped by Anders Carlsson.
891 Reverted an accidental change in r76561.
893 * WebView/WebHTMLView.mm:
895 2011-01-26 David Kilzer <ddkilzer@apple.com>
897 <http://webkit.org/b/53192> Add experimental support for HTTP pipelining in CFNetwork
898 <rdar://problem/8821760>
900 Reviewed by Antti Koivisto.
902 * WebCoreSupport/WebSystemInterface.mm:
903 (InitWebCoreSystemInterface): Added initialization for
904 GetHTTPPipeliningPriority and SetHTTPPipeliningPriority.
906 2011-01-26 Beth Dakin <bdakin@apple.com>
908 Reviewed by Darin Adler.
910 Fix for <rdar://problem/8895140> Adopt WKScrollbar metrics
911 when using WKScrollbars.
913 * WebCoreSupport/WebSystemInterface.mm:
914 (InitWebCoreSystemInterface):
916 2011-01-25 Darin Adler <darin@apple.com>
918 Reviewed by Anders Carlsson.
920 WebKit is using CSBackupSetItemExcluded incorrectly
921 https://bugs.webkit.org/show_bug.cgi?id=53095
922 rdar://problem/8790540
924 * Misc/WebIconDatabase.mm:
925 (importToWebCoreFormat): Removed code that was calling CSBackupSetItemExcluded.
926 It was incorrect, and this responsibility has been moved to WebCore.
928 2011-01-24 Chris Marrin <cmarrin@apple.com>
930 Reviewed by Eric Seidel.
932 Change ENABLE_3D_CANVAS to ENABLE_WEBGL
933 https://bugs.webkit.org/show_bug.cgi?id=53041
935 * Configurations/FeatureDefines.xcconfig:
937 2011-01-25 Yury Semikhatsky <yurys@chromium.org>
939 Reviewed by Pavel Feldman.
941 Web Inspector: remove "attached" state related methods from InspectorAgent
942 https://bugs.webkit.org/show_bug.cgi?id=53086
944 * WebCoreSupport/WebInspectorClient.h:
945 * WebCoreSupport/WebInspectorClient.mm:
946 (-[WebInspectorWindowController showWindow:]):
947 (-[WebInspectorWindowController attach]):
948 (-[WebInspectorWindowController detach]):
950 2011-01-23 Dan Bernstein <mitz@apple.com>
952 Reviewed by John Sullivan.
954 <rdar://problem/6097826> Mail's cursor does not become a resize cursor when moving mouse from scrolled email to the horizontal splitter
956 * WebCoreSupport/WebChromeClient.mm:
957 (WebChromeClient::setCursor): If the current cursor comes from a cursor rect, do not override it.
959 2011-01-22 Alexey Proskuryakov <ap@apple.com>
961 Reviewed by Darin Adler.
963 https://bugs.webkit.org/show_bug.cgi?id=52473
964 Auto-scaling to avoid orphans is broken, remove dysfunctional code
966 * WebView/WebHTMLView.mm:
967 (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]):
968 (-[WebHTMLView _scaleFactorForPrintOperation:]):
969 (-[WebHTMLView knowsPageRange:]):
971 2011-01-21 Mark Rowe <mrowe@apple.com>
973 Rubber-stamped by Jon Honeycutt.
975 Fix the build when using Clang by removing some unused variables.
977 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
978 (-[WebHostedNetscapePluginView updateAndSetWindow]):
979 * WebView/WebFullScreenController.mm:
980 (-[WebFullScreenController enterFullscreen:]):
981 (-[WebFullScreenController exitFullscreen]):
983 2011-01-21 Chris Rogers <crogers@google.com>
985 Reviewed by Darin Fisher.
987 Add run-time enable support for the web audio API
988 https://bugs.webkit.org/show_bug.cgi?id=52741
990 * WebView/WebPreferenceKeysPrivate.h:
991 * WebView/WebPreferences.mm:
992 (-[WebPreferences webAudioEnabled]):
993 (-[WebPreferences setWebAudioEnabled:]):
994 * WebView/WebPreferencesPrivate.h:
995 * WebView/WebView.mm:
996 (-[WebView _preferencesChangedNotification:]):
998 2011-01-20 John Sullivan <sullivan@apple.com>
1000 Reviewed by Mark Rowe.
1002 Shift-tab doesn't cycle through fields in http authentication panel
1003 https://bugs.webkit.org/show_bug.cgi?id=52850
1005 * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
1006 * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
1007 Re-wired the key loop so that there aren't two views with the same nextKeyView.
1009 2011-01-20 Beth Dakin <bdakin@apple.com>
1011 Reviewed by Geoffrey Garen.
1013 Fix for <rdar://problem/8890255>
1015 Allow WebKitSystemInterface to draw scrollbars
1017 * WebCoreSupport/WebSystemInterface.mm:
1018 (InitWebCoreSystemInterface):
1020 2011-01-19 Simon Fraser <simon.fraser@apple.com>
1022 Reviewed by Sam Weinig.
1024 GraphicsLayers in subframes can get sync'd multiple times
1025 https://bugs.webkit.org/show_bug.cgi?id=52489
1027 * WebView/WebView.mm:
1028 (-[WebView _syncCompositingChanges]): syncCompositingStateRecursive()
1029 was renamed to syncCompositingStateIncludingSubframes().
1031 2011-01-19 Darin Adler <darin@apple.com>
1033 Reviewed by Sam Weinig.
1035 Would like script debugging protocol method to differentiate between caught and uncaught exceptions
1036 https://bugs.webkit.org/show_bug.cgi?id=52104
1037 rdar://problem/8704226
1039 * WebView/WebDelegateImplementationCaching.h:
1040 Fix type of second integer in CallScriptDebugDelegate function overload
1041 to be int to match the actual Objective-C method. Added a new overload
1042 that includes a BOOL in the right place. Added a boolean named
1043 exceptionWasRaisedExpectsHasHandlerFlag.
1045 * WebView/WebDelegateImplementationCaching.mm:
1046 (CallDelegate): Added overloads as above.
1047 (CallScriptDebugDelegate): Ditto.
1049 * WebView/WebScriptDebugDelegate.h: Added new method with the additional
1050 boolean argument. Marked the old method informally deprecated.
1052 * WebView/WebScriptDebugger.mm:
1053 (WebScriptDebugger::exception): Added code to call with or without the
1054 boolean depending on exceptionWasRaisedExpectsHasHandlerFlag.
1056 * WebView/WebView.mm:
1057 (-[WebView _cacheScriptDebugDelegateImplementations]): Set up the
1058 exceptionWasRaisedExpectsHasHandlerFlag. Also fixed old code that was not
1059 guaranteed to set didParseSourceExpectsBaseLineNumber to NO.
1061 2011-01-19 Tony Gentilcore <tonyg@chromium.org>
1063 Reviewed by Mihai Parparita.
1065 Perform some forward declaration
1066 https://bugs.webkit.org/show_bug.cgi?id=52522
1068 * Misc/WebKitNSStringExtras.mm:
1070 2011-01-19 Pavel Podivilov <podivilov@chromium.org>
1072 Reviewed by Yury Semikhatsky.
1074 Web Inspector: [JSC] scripts have incorrect starting line (always 1).
1075 https://bugs.webkit.org/show_bug.cgi?id=52721
1077 * WebView/WebScriptDebugger.h:
1078 * WebView/WebScriptDebugger.mm:
1080 (WebScriptDebugger::sourceParsed):
1082 2011-01-19 Levi Weintraub <leviw@google.com>
1084 Reviewed by Ryosuke Niwa.
1086 Updating to use Position::parentAnchoredEquivalent instead of
1087 the old htmlediting rangeCompliantEquivalent.
1089 remove rangeCompliantEquivalent and replace it with Position methods
1090 https://bugs.webkit.org/show_bug.cgi?id=25057
1092 * WebView/WebFrame.mm:
1093 (-[WebFrame _smartDeleteRangeForProposedRange:]):
1095 2011-01-18 Chris Fleizach <cfleizach@apple.com>
1097 Reviewed by Darin Adler.
1099 REGRESSION: A problem with Voiceover and finding links
1100 https://bugs.webkit.org/show_bug.cgi?id=52324
1102 * WebView/WebDynamicScrollBarsView.mm:
1103 (-[WebDynamicScrollBarsView accessibilityIsIgnored]):
1105 2011-01-17 David Kilzer <ddkilzer@apple.com>
1107 <http://webkit.org/b/52596> Add missing DOMDocument/DOMDocumentFragment headers to Xcode project
1109 Reviewed by Dan Bernstein.
1111 * MigrateHeaders.make: Copy DOMDocumentFragmentPrivate.h and
1112 DOMDocumentPrivate.h to the PrivateHeaders directory.
1114 2011-01-17 Enrica Casucci <enrica@apple.com>
1116 Reviewed by Alexey Proskuryakov.
1118 Drag and drop support: refactoring of image from link and image from selection
1119 https://bugs.webkit.org/show_bug.cgi?id=52496
1121 This work cleans up the Mac code and makes it more similar to the Windows implementation,
1122 avoiding the use of an NSView when the FrameView can be used.
1123 The refactoring is a necessary step towards the complete support of drag and drop
1126 * WebCoreSupport/WebDragClient.mm:
1127 (WebDragClient::createDragImageForLink): Added.
1128 * WebView/WebHTMLView.mm: Removed dragImageFromLink and dragImageFromURL.
1129 * WebView/WebHTMLViewPrivate.h: Removed dragImageFromLink and dragImageFromURL.
1131 2011-01-17 Pavel Feldman <pfeldman@chromium.org>
1133 Reviewed by Yury Semikhatsky.
1135 Web Inspector: simplify debugger enabling routine.
1136 https://bugs.webkit.org/show_bug.cgi?id=52472
1138 * WebInspector/WebInspector.mm:
1139 (-[WebInspector startDebuggingJavaScript:]):
1141 2011-01-16 Dan Bernstein <mitz@apple.com>
1143 Reviewed by Simon Fraser.
1145 Assertion failure (!inSetWindow) with in-process plug-in in plugins/destroy-on-setwindow.html
1146 https://bugs.webkit.org/show_bug.cgi?id=52550
1148 * Plugins/WebNetscapePluginView.mm:
1149 (-[WebNetscapePluginView setWindowIfNecessary]): Removed the assertion, making sure
1150 that inSetWindow remains YES until we exit the top-level setWindowIfNecessary.
1152 2011-01-16 Simon Fraser <simon.fraser@apple.com>
1154 Reviewed by Dan Bernstein.
1156 Issues with iframes and plugins when the WebView is scaled.
1157 <rdar://problem/6213380>
1159 When _scaleWebView has been called on a WebView, iframes
1160 in WebKit1 render and hit-test incorrectly, and plug-ins don't scale up.
1161 This is caused by AppKit NSViews not playing nicely with the scale
1162 applied through style.
1164 Work around most of these issues by adjusting the bounds size
1165 of widgets to allow iframe contents to paint with the correct scale,
1166 and fix various places in the code where we relied on coordinate
1167 transforms via NSViews (which ignore CSS transforms).
1169 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1170 (-[WebHostedNetscapePluginView updateAndSetWindow]):
1171 * WebView/WebFrameView.mm:
1172 (-[WebFrameView setBoundsSize:]):
1174 2011-01-16 Beth Dakin <bdakin@apple.com>
1176 Reviewed by Kevin Decker.
1178 Fix for <rdar://problem/8871204>
1180 Don't try to save elasticity state. Just rely on
1181 NSScrollElasticityAutomatic to restore the correct state.
1182 * WebCoreSupport/WebFrameLoaderClient.h:
1183 * WebCoreSupport/WebFrameLoaderClient.mm:
1184 (WebFrameLoaderClient::WebFrameLoaderClient):
1185 (WebFrameLoaderClient::dispatchDidFirstLayout):
1186 (WebFrameLoaderClient::provisionalLoadStarted):
1188 2011-01-14 Simon Fraser <simon.fraser@apple.com>
1190 Reviewed by Dan Bernstein.
1192 Plugins render incorrectly with transformed ancestors
1193 https://bugs.webkit.org/show_bug.cgi?id=52507
1195 -[NSView visibleRect] gives the wrong answer if there are CSS transforms
1196 in the ancestor chain of a plugin.
1198 So use of this method with calls to -actualVisibleRectInWindow, which
1199 maps rects through the render tree to compute the correct rect,
1200 clipping via windowClipRect() if necessary.
1202 Not testable, because doing so relies on the behavior of some
1203 plugins, which stop rendering if setWindow passes an empty rect.
1205 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1206 (-[WebHostedNetscapePluginView updateAndSetWindow]):
1207 * Plugins/WebBaseNetscapePluginView.h:
1208 * Plugins/WebBaseNetscapePluginView.mm:
1209 (-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
1210 * Plugins/WebNetscapePluginView.mm:
1211 (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1213 2011-01-14 Yuzo Fujishima <yuzo@google.com>
1215 Reviewed by Antti Koivisto.
1217 Rename cache() to memoryCache()
1218 https://bugs.webkit.org/show_bug.cgi?id=52433
1221 (+[WebCache statistics]):
1222 (+[WebCache setDisabled:]):
1223 (+[WebCache isDisabled]):
1224 * WebView/WebView.mm:
1225 (+[WebView _setCacheModel:]):
1227 2011-01-13 Geoffrey Garen <ggaren@apple.com>
1229 Reviewed by Oliver Hunt.
1231 Split out a MarkedSpace strategy object from Heap.
1232 https://bugs.webkit.org/show_bug.cgi?id=52421
1234 * Misc/WebCoreStatistics.mm:
1235 (+[WebCoreStatistics memoryStatistics]): Updated for class move.
1237 2011-01-14 Dan Bernstein <mitz@apple.com>
1239 Reviewed by Simon Fraser.
1241 WebKit/mac part of <rdar://problem/8441312> Crash in -[NSView _invalidateGStatesForTree]
1243 * WebView/WebHTMLView.mm:
1244 (-[WebHTMLView _invalidateGStatesForTree]): Override this NSView method, and bracket the call
1245 to the superclass implementation with suspending WebCore Widget hierarchy updates. This ensures
1246 that the NSView tree doesn’t change from under AppKit as it traverses it.
1248 2011-01-14 Beth Dakin <bdakin@apple.com>
1250 Reviewed by Mark Rowe.
1252 Fix for <rdar://problem/7793902> Artifacts when scrolling
1253 page in Safari while page is loading
1255 Call setDrawsBackground:YES on the scrollView in
1256 dispatchDidFirstLayout() rather than waiting until
1257 frameLoadCompleted(). Also suspend scrolling elasticity
1258 between provisionalLoadStarted() and dispatchDidFirstLayout()
1259 * WebCoreSupport/WebFrameLoaderClient.h:
1260 * WebCoreSupport/WebFrameLoaderClient.mm:
1261 (WebFrameLoaderClient::WebFrameLoaderClient):
1262 (WebFrameLoaderClient::dispatchDidFirstLayout):
1263 (WebFrameLoaderClient::provisionalLoadStarted):
1265 2011-01-12 Enrica Casucci <enrica@apple.com>
1267 Reviewed by Darin Adler.
1269 WebKit2: Add support for drag and drop
1270 https://bugs.webkit.org/show_bug.cgi?id=52343
1271 <rdar://problem/7660558>
1273 The DragData class has been extended to provide
1274 additional context from the application (keyboard state, modal windows, etc.)
1275 as well as information of the drag pasteboard being used.
1276 These are the changes to align the behavior for WebKit.
1278 * WebView/WebView.mm:
1279 (-[WebView applicationFlags:]): Added.
1280 (-[WebView draggingEntered:]): Added parameter to the DragData constructor.
1281 (-[WebView draggingUpdated:]): Added parameter to the DragData constructor.
1282 (-[WebView draggingExited:]): Added parameter to the DragData constructor.
1283 (-[WebView performDragOperation:]): Added parameter to the DragData constructor.
1285 2011-01-12 Beth Dakin <bdakin@apple.com>
1287 Reviewed by Anders Carlsson.
1289 Add-on for https://bugs.webkit.org/show_bug.cgi?id=52309
1290 Expose fixed layout through WebKit SPI
1292 <rdar://problem/8844464>
1294 And now with getters!
1295 * WebView/WebView.mm:
1296 (-[WebView _useFixedLayout]):
1297 (-[WebView _fixedLayoutSize]):
1298 * WebView/WebViewPrivate.h:
1300 2011-01-12 Beth Dakin <bdakin@apple.com>
1302 Reviewed by Anders Carlsson.
1304 Fix for https://bugs.webkit.org/show_bug.cgi?id=52309 Expose
1305 fixed layout through WebKit SPI
1307 <rdar://problem/8844464>
1309 * WebView/WebView.mm:
1310 (-[WebView _setUseFixedLayout:]):
1311 (-[WebView _setFixedLayoutSize:]):
1312 * WebView/WebViewPrivate.h:
1314 2011-01-07 Enrica Casucci <enrica@apple.com>
1316 Reviewed by Alexey Proskuryakov.
1318 Paste and drag and drop use different code paths to interact with the pasteboard.
1319 https://bugs.webkit.org/show_bug.cgi?id=52093
1320 The change consists in a refactoring of the code to have only one class that
1321 deals with the pasteboard on Mac.
1323 * WebCoreSupport/WebEditorClient.h:
1324 * WebCoreSupport/WebEditorClient.mm: Added two methods to provide to WebCore functionality
1325 exposed by NSURLExtras.
1326 (WebEditorClient::canonicalizeURL):
1327 (WebEditorClient::canonicalizeURLString):
1328 * WebCoreSupport/WebPasteboardHelper.h: Removed.
1329 * WebCoreSupport/WebPasteboardHelper.mm: Removed.
1330 * WebView/WebHTMLView.mm: Removed comment.
1331 * WebView/WebView.mm: The following methods have been changed to use the new DragData
1332 constructor that doesn't use the WebPasteboardHelper reference.
1333 (-[WebView draggingEntered:]):
1334 (-[WebView draggingUpdated:]):
1335 (-[WebView draggingExited:]):
1336 (-[WebView performDragOperation:]):
1338 2011-01-09 Tony Gentilcore <tonyg@chromium.org>
1340 Reviewed by Alexey Proskuryakov.
1342 Forward declare some headers where possible
1343 https://bugs.webkit.org/show_bug.cgi?id=52133
1345 * WebView/WebFrame.mm:
1347 2011-01-09 Xianzhu Wang <phnixwxz@gmail.com>
1349 Reviewed by Darin Fisher.
1351 https://bugs.webkit.org/show_bug.cgi?id=41441
1352 createWindow method should only do window-creating without URL navigation
1354 * WebCoreSupport/WebChromeClient.mm:
1355 (WebChromeClient::createWindow):
1357 2011-01-08 Dan Bernstein <mitz@apple.com>
1359 Try to fix the Leopard build.
1361 * WebView/WebFullScreenController.mm:
1363 2011-01-07 Jer Noble <jer.noble@apple.com>
1365 Yet another Leopard build fix: NSRect and CGRect are not inter-
1366 changable in 32-bit.
1368 * WebView/WebFullScreenController.mm:
1369 (-[WebFullScreenController exitFullscreen]):
1371 2011-01-07 Jer Noble <jer.noble@apple.com>
1373 Fix the Leopard build: Replace CoreAnimation SL-only functions
1374 with Leopard equivalents.
1376 * WebView/WebFullScreenController.mm:
1377 (+[CATransaction setDisableActions:]):
1378 (+[CATransaction setAnimationDuration:]):
1379 (-[WebFullScreenController _animationDuration]):
1380 (-[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:]):
1382 2010-12-21 Jer Noble <jer.noble@apple.com>
1384 Reviewed by Simon Fraser.
1386 Implement WebKit Full Screen support.
1387 https://bugs.webkit.org/show_bug.cgi?id=49481
1388 rdar://problem/8247444
1390 Support the new fullscreen Chrome client requests. WebView will pass
1391 through these requests to a WebFullscreenController.
1393 * WebCoreSupport/WebChromeClient.h: Add fullScreenRendererChanged().
1394 * WebView/WebView.mm:
1395 (-[WebView _supportsFullScreenForElement:WebCore::]): Check to see if the fullscreen pref has been enabled.
1396 (-[WebView _enterFullScreenForElement:WebCore::]): Create a WebFullScreenController.
1397 (-[WebView _exitFullScreenForElement:WebCore::]): Request that the WebFullScreenController exit fullscreen.
1398 (-[WebView _fullScreenRendererChanged:WebCore::]): Notify the WebFullScreenController that its renderer has changed.
1399 * WebView/WebViewData.h: Add ivar newFullscreenController.
1401 2010-12-17 Jer Noble <jer@kokode.apple.com>
1403 Reviewed by Simon Fraser.
1405 Implement WebKit Full Screen support.
1406 https://bugs.webkit.org/show_bug.cgi?id=49481
1407 rdar://problem/8247444
1409 This patch implements the FullScreen APIs using the new RenderFullScreen renderer and the new
1410 Document client APIs. The RenderFullScreen renderer's CALayer is hosted in a new, fullscreen
1411 window, and a custom CAAnimation animates that layer between the initial screen rect of the
1412 full screen element, to its final value. WebFullscreenController will swap the WebView out of
1413 its original window, and into the fullscreen window. The controller will replace the WebView
1414 with a placeholder view, so that if the placeholder moves or resized while the WebView is
1415 absent, the WebView will move back to the correct location when exiting fullscreen.
1417 * WebView/WebFullscreenController.h: Added.
1418 * WebView/WebFullscreenController.mm: Added.
1419 (-[WebFullscreenController windowDidExitFullscreen:]): Close the fullscreen window.
1420 (-[WebFullscreenController windowDidEnterFullscreen:]): Swap the webView back into the fullscreen window.
1421 (-[WebFullscreenController animationDidStop:finished:]): Call windowDid{Exit|Enter}FullScreen as appropriate.
1422 (-[WebFullscreenController applicationDidResignActive:]):
1423 (-[WebFullscreenController applicationDidChangeScreenParameters:]): Resize the fullscreen window to match
1424 the new screen parameters.
1425 (-[WebFullscreenController enterFullscreen:]): Set up the animation that will take the fullscreen element
1426 from its original screen rect into fullscreen.
1427 (-[WebFullscreenController exitFullscreen]): Swap the webView back into its original window.
1428 Set up the animation that will take the fullscreen element back into its original screen
1430 (-[WebFullscreenController _updatePowerAssertions]): Now checks _isAnyMoviePlaying to determine
1431 whether to disable screensaver and sleep.
1432 (-[WebFullscreenController _isAnyMoviePlaying]): Walks through the sub-tree starting at the fullscreen element
1433 looking for HTMLVideoElements; returns whether any are found to be playing.
1434 (-[WebFullscreenController _animationDuration]): Returns the current animation duration, affected by control
1436 (-[WebFullscreenWindow canBecomeKeyWindow]): Allow the window to become key.
1437 (-[WebFullscreenWindow keyDown:]): Handle the 'Esc' key.
1438 (-[WebFullscreenWindow cancelOperation:]): Request to exit fullscreen.
1439 (-[WebFullscreenWindow rendererLayer]): Convenience accessor.
1440 (-[WebFullscreenWindow setRendererLayer:]): Ditto.
1441 (-[WebFullscreenWindow backgroundLayer]): Ditto.
1442 (-[WebFullscreenWindow animationView]): Ditto.
1443 (MediaEventListener::MediaEventListener): Implements the EventListener protocol.
1444 (MediaEventListener::handleEvent): Tells its delegate to _updatePowerAssertions.
1446 2011-01-07 James Robinson <jamesr@chromium.org>
1448 Revert "Implement mozilla's animationTime property"
1449 https://bugs.webkit.org/show_bug.cgi?id=51952
1451 This approach isn't quite right.
1453 * WebView/WebHTMLView.mm:
1454 (-[WebHTMLView drawRect:]):
1455 * WebView/WebView.mm:
1456 (layerSyncRunLoopObserverCallBack):
1458 2011-01-06 Gavin Barraclough <barraclough@apple.com>
1460 Reviewed by Geoff Garen.
1462 Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
1464 The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
1465 destructor early, in order to release wrappers once we know we no longer intend to use them.
1466 Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
1467 lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
1468 A sequence of events that triggers the bug would look like this:
1470 (1) Create a DOMWrapperWorld.
1471 (2) Register a timer in the world.
1472 (3) Call unregisterWorld() on the world.
1473 (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
1474 (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
1475 called forgetWorld() none exists.
1476 (6) Attempt to add a wrapper to a NULL map.
1478 Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
1480 * WebView/WebScriptWorld.mm:
1481 (-[WebScriptWorld unregisterWorld]):
1483 2011-01-04 Chris Fleizach <cfleizach@apple.com>
1485 Reviewed by Sam Weinig.
1487 WK2: Support Accessibility
1488 https://bugs.webkit.org/show_bug.cgi?id=51859
1490 Use rootObject() method to get top of AX tree.
1492 * WebCoreSupport/WebFrameLoaderClient.h:
1493 (WebFrameLoaderClient::accessibilityRemoteObject):
1494 * WebView/WebFrame.mm:
1495 (-[WebFrame setAccessibleName:]):
1496 (-[WebFrame accessibilityRoot]):
1497 * WebView/WebFrameInternal.h:
1498 * WebView/WebFramePrivate.h:
1499 * WebView/WebHTMLView.mm:
1500 (-[WebHTMLView accessibilityAttributeValue:]):
1501 (-[WebHTMLView accessibilityFocusedUIElement]):
1502 (-[WebHTMLView accessibilityHitTest:]):
1503 (-[WebHTMLView _accessibilityParentForSubview:]):
1505 2011-01-04 David Kilzer <ddkilzer@apple.com>
1507 <http://webkit.org/b/51889> WebFrameLoaderClient::createMediaPlayerProxyPlugin() should use WebCore::PluginInfo.name
1509 Reviewed by Eric Carlson.
1511 This originally broke in r61581. It is inside an
1512 ENABLE(PLUGIN_PROXY_FOR_VIDEO) macro, so it didn't break the Mac
1515 * WebCoreSupport/WebFrameLoaderClient.mm: Call
1516 (WebFrameLoaderClient::createMediaPlayerProxyPlugin): Updated to
1517 use WebCore::PluginInfo.name instead of
1518 -[WebBasePluginPackage name].
1520 2011-01-02 Dan Bernstein <mitz@apple.com>
1522 Rubber-stamped by Simon Fraser.
1524 <rdar://problem/8812159> Update copyright strings
1528 2010-12-29 Dan Bernstein <mitz@apple.com>
1530 Reviewed by Ada Chan.
1532 <rdar://problem/8758191> REGRESSION (r72887): Mail crashes when doing searches in a message due to method name conflict
1533 https://bugs.webkit.org/show_bug.cgi?id=51717
1535 Renamed -findString:options: to -_findString:options: in the WebDocumentOptionsSearching
1536 protocol to avoid conflict with -[WebHTMLView(MailExtras) findString:options:] which Mail defines.
1538 * WebView/WebDocumentInternal.h:
1539 * WebView/WebHTMLView.mm:
1540 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
1541 (-[WebHTMLView _findString:options:]):
1542 * WebView/WebView.mm:
1545 2010-12-28 Daniel Bates <dbates@rim.com>
1547 Reviewed by Sam Weinig.
1549 Substitute // MARK: for compiler-specific #pragma mark
1550 https://bugs.webkit.org/show_bug.cgi?id=51657
1552 For consistency, we should substitute "// MARK:" for compiler-
1553 specific "#pragma mark" in the source files for the Mac port.
1555 * History/WebHistory.mm:
1556 * Plugins/WebBaseNetscapePluginView.mm:
1557 * Plugins/WebNetscapePluginView.mm:
1558 * WebCoreSupport/WebInspectorClient.mm:
1559 * WebCoreSupport/WebSecurityOrigin.mm:
1560 * WebView/WebPDFView.mm:
1561 * WebView/WebVideoFullscreenController.mm:
1562 * WebView/WebVideoFullscreenHUDWindowController.mm:
1564 2010-12-23 Yongjun Zhang <yongjun_zhang@apple.com>
1566 Reviewed by Darin Adler.
1568 WebKit crashes at DebuggerCallFrame::functionName() if m_callFrame is the top global callframe.
1569 https://bugs.webkit.org/show_bug.cgi?id=38535
1571 WebScriptDebugger in WebKit has empty implementations for willExecuteProgram and didExecuteProgram. As a result,
1572 if the top call frame is from a program, WebKitScriptDebugger doesn't record that callframe as the top frame, and
1573 WebScriptDebugger's callframe stack is wrong from this point. That could cause crash if we trying to access the top
1574 call frame from this stack when an exception throws because the saved top frame could be invalid.
1576 To fix that, we need to maintain the call frame stack in willExecuteProgram and didExecuteProgram, as we did in
1577 callEvent and returnEvent.
1579 * WebView/WebScriptDebugger.mm:
1580 (WebScriptDebugger::willExecuteProgram):
1581 (WebScriptDebugger::didExecuteProgram):
1583 2010-12-22 Sam Weinig <sam@webkit.org>
1585 Reviewed by Darin Adler.
1587 WebKit2 needs to mirror the frame tree in the UIProcess
1588 https://bugs.webkit.org/show_bug.cgi?id=51546
1590 - Add client functions to notify that a frame has been added or
1591 removed from the page cache.
1593 * WebCoreSupport/WebFrameLoaderClient.h:
1594 * WebCoreSupport/WebFrameLoaderClient.mm:
1595 (WebFrameLoaderClient::didSaveToPageCache):
1596 (WebFrameLoaderClient::didRestoreFromPageCache):
1598 2010-12-22 Ryosuke Niwa <rniwa@webkit.org>
1600 Reviewed by Eric Seidel.
1602 Editor.h doesn't need to include SelectionController.h
1603 https://bugs.webkit.org/show_bug.cgi?id=51441
1605 Renamed SelectionController::EDirection to SelectionDirection.
1607 * WebView/WebFrame.mm:
1608 (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:granularity:]):
1609 Takes SelectionDirection instead of SelectionController::EDirection.
1610 * WebView/WebFrameInternal.h:
1611 * WebView/WebTextCompletionController.mm:
1612 (-[WebTextCompletionController doCompletion]): Calls _rangeByAlteringCurrentSelection:SelectionController.
1614 2010-12-22 Simon Fraser <simon.fraser@apple.com>
1616 Reviewed by Darin Adler.
1618 Cache snapshots of plug-ins before painting, to avoid script running during painting
1619 https://bugs.webkit.org/show_bug.cgi?id=51493
1621 When FrameView is asked to do a flattening paint (e.g. when Safari snapshots,
1622 or when printing), plug-ins which otherwise use the CA rendering model
1623 are sent a paint event. Some plug-ins may run script while handling this event,
1624 or out of process plug-ins may process queued requests at this time. Running
1625 script while inside layout or painting can have bad consequences, because it
1626 can result in arbitrary changes to the render tree.
1628 This patch avoids sending plug-ins paint events inside of painting. Instead,
1629 we ask the plug-ins to cache a snapshot before we paint, and then the software
1630 paint simply draws that snapshot.
1632 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1633 (-[WebHostedNetscapePluginView drawRect:]): If we have a cached snapshot,
1634 draw it. Also only send the snapshot message to the plugin proxy if we
1635 know we're snapshotting, since even if creating the snapshot image failed,
1636 we still don't want to call to the plug-in.
1638 * Plugins/WebBaseNetscapePluginView.h: Add a retained NSImage member for the snapshot.
1639 * Plugins/WebBaseNetscapePluginView.mm:
1640 (-[WebBaseNetscapePluginView cacheSnapshot]): Create an image and draw the snapshot into it.
1641 (-[WebBaseNetscapePluginView clearCachedSnapshot]): Clear the snapshot.
1643 * Plugins/WebNetscapePluginView.mm:
1644 (-[WebNetscapePluginView drawRect:]): If we have a cached snapshot, use it.
1645 * WebCoreSupport/WebFrameLoaderClient.mm:
1646 (NetscapePluginWidget::notifyWidget): Implement notifyWidget() and use it
1647 to cache and clear the snapshots.
1649 2010-12-21 Cameron Zwarich <zwarich@apple.com>
1651 Reviewed by Darin Adler.
1653 -[WebBasePluginPackage isNativeLibraryData:] integer underflows on zero-sized data
1654 https://bugs.webkit.org/show_bug.cgi?id=51431
1655 <rdar://problem/8791757>
1657 * Plugins/WebBasePluginPackage.mm:
1658 (-[WebBasePluginPackage isNativeLibraryData:]): Change an arithmetic expression so
1659 it doesn't underflow.
1661 2010-12-16 Ryosuke Niwa <rniwa@webkit.org>
1663 Reviewed by Cameron Zwarich.
1665 REGRESSION(r74172): 125 java tests fail on Mac
1666 https://bugs.webkit.org/show_bug.cgi?id=51214
1668 The regression was caused by an incorrectly adding sizeof(struct fat_header)
1669 to a pointer for uint32_t as supposed to uint8_t.
1671 Fixed the bug by explicitly casting it to uint8_t* before the addition.
1673 * Plugins/WebBasePluginPackage.mm:
1674 (-[WebBasePluginPackage isNativeLibraryData:]):
1676 2010-12-15 Cameron Zwarich <zwarich@apple.com>
1678 Reviewed by Darin Adler.
1680 Clang -Wcast-align gives an error in WebBasePluginPackage.mm
1681 https://bugs.webkit.org/show_bug.cgi?id=51144
1683 Fix an alignment issue. OSSwapInt32 takes data that is 32-bit aligned on ARM, but
1684 we were calling it on a byte array 32 bits at a time. While this is okay in practice,
1685 since TCMalloc won't give us a non-32-bit aligned block array of bytes and Vector's
1686 inline storage is at the beginning of the Vector, it is still better to fix this
1687 and silence the warning.
1689 * Plugins/WebBasePluginPackage.mm:
1691 (-[WebBasePluginPackage isNativeLibraryData:]):
1693 2010-12-14 Mark Rowe <mrowe@apple.com>
1695 Reviewed by Sam Weinig.
1697 <http://webkit.org/b/51064> Reproducible crash inside WebCore::MediaPlayerPrivateQTKit::createQTMovie when loading <video>
1699 * History/WebHistoryItem.mm:
1700 (-[WebHistoryItem description]): Test whether the string is empty rather than incorrectly
1701 always including the target in the output.
1703 2010-12-13 Alexey Proskuryakov <ap@apple.com>
1705 Reviewed by Adam Barth.
1707 https://bugs.webkit.org/show_bug.cgi?id=50953
1708 DNS Prefetch should be an opt-in feature
1710 * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Changed default to false.
1712 2010-12-13 Mike Thole <mthole@apple.com>
1714 Rubber-stamped by John Sullivan.
1716 https://bugs.webkit.org/show_bug.cgi?id=50956
1717 WebAuthenticationPanel.nib appears to have a cut-off sentence
1719 Replace the sentence fragment in the sheet layout with "<-- do not localize -->" style text.
1720 The contents of this text field are updated dynamically before the sheet is displayed.
1722 * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib:
1723 * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib:
1725 2010-12-13 Antti Koivisto <antti@apple.com>
1727 Reviewed by Alexey Proskuryakov.
1729 https://bugs.webkit.org/show_bug.cgi?id=50758
1730 <rdar://problem/8722094>
1731 Defer loading print stylesheets
1733 Expose SPI for DRT for making resources load serially. This is useful for testing resource load order.
1735 * WebView/WebView.mm:
1736 (+[WebView _setLoadResourcesSerially:forHost:]):
1737 * WebView/WebViewPrivate.h:
1739 2010-12-09 Matthew Delaney <mdelaney@apple.com>
1741 Reviewed by Simon Fraser.
1743 Adopt new CG API for canvas
1744 https://bugs.webkit.org/show_bug.cgi?id=50591
1746 * WebCoreSupport/WebSystemInterface.mm:
1748 2010-10-28 MORITA Hajime <morrita@google.com>
1750 Reviewed by Ojan Vafai.
1752 spellcheck does not check pasted text
1753 https://bugs.webkit.org/show_bug.cgi?id=40092
1755 Added asynchronous spell checking API to WebEditorClient using
1756 -[NSSpellChecker requestCheckingOfString].
1757 Note that WebEditorSpellCheckResponder is a small class to receive
1758 requested spell-checking result. Note that this feature is
1759 disabled at default.
1761 Also added [WebPreferences setAsynchronousSpellCheckingEnabled:] to
1762 enable the feature from LayoutTestController.
1764 * WebCoreSupport/WebEditorClient.h:
1765 * WebCoreSupport/WebEditorClient.mm:
1766 (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:results:]):
1767 (-[WebEditorSpellCheckResponder perform]):
1768 (toCoreSpellingResult):
1769 (-[WebEditorSpellCheckResponder WTF::WebCore::]):
1770 (WebEditorClient::requestCheckingOfString):
1771 * WebView/WebPreferenceKeysPrivate.h:
1772 * WebView/WebPreferences.mm:
1773 (+[WebPreferences initialize]):
1774 (-[WebPreferences setAsynchronousSpellCheckingEnabled:]):
1775 (-[WebPreferences asynchronousSpellCheckingEnabled]):
1776 * WebView/WebPreferencesPrivate.h:
1777 * WebView/WebView.mm:
1778 (-[WebView _preferencesChangedNotification:]):
1780 2010-12-09 Anders Carlsson <andersca@apple.com>
1782 Fix a bug uncovered by clang++.
1784 * WebView/WebHTMLView.mm:
1785 (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1787 2010-12-09 Anders Carlsson <andersca@apple.com>
1789 Clang++ build fixes.
1791 Silence a couple of warnings.
1793 * WebView/WebFrame.mm:
1794 (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1795 (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
1796 * WebView/WebTextCompletionController.mm:
1797 (-[WebTextCompletionController filterKeyDown:]):
1799 2010-12-09 David Hyatt <hyatt@apple.com>
1801 Reviewed by Dan Bernstein.
1803 https://bugs.webkit.org/show_bug.cgi?id=48545, Home/End, PgUp, PgDown should respect
1804 writing-mode. This first part of the patch just patches Mac WebKit 1 views.
1806 * WebView/WebFrameView.mm:
1807 (-[WebFrameView _isVerticalDocument]):
1808 (-[WebFrameView _isFlippedDocument]):
1809 (-[WebFrameView _scrollToEndOfDocument]):
1810 (-[WebFrameView _pageInBlockProgressionDirection:]):
1811 (-[WebFrameView scrollPageUp:]):
1812 (-[WebFrameView scrollPageDown:]):
1814 2010-12-08 Andy Estes <aestes@apple.com>
1816 Reviewed by Darin Adler.
1818 Enable pre-HTML5 parser quirks for Apple Mail.app
1819 https://bugs.webkit.org/show_bug.cgi?id=50727
1821 * WebView/WebView.mm:
1822 (-[WebView _needsPreHTML5ParserQuirks]): Return true if the embedding
1823 application is Mail.app.
1825 2010-12-08 Brian Weinstein <bweinstein@apple.com>
1827 Reviewed by John Sullivan.
1829 REGRESSION: r73429-r73490: Some Contextual menu items non-functional, such as Open Link in New Tab
1830 https://bugs.webkit.org/show_bug.cgi?id=50683
1832 If our context menu item already has an action, don't overwrite the action with the context menu
1835 * WebView/WebHTMLView.mm:
1836 (setMenuItemTarget):
1838 2010-12-08 Anders Carlsson <andersca@apple.com>
1840 Remove an unused variable.
1842 * WebView/WebDynamicScrollBarsView.mm:
1843 (-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):
1845 2010-12-07 Brian Weinstein <bweinstein@apple.com>
1847 Reviewed by John Sullivan.
1849 Layering Violation in ContextMenu - member variable of type HitTestResult
1850 https://bugs.webkit.org/show_bug.cgi?id=50586
1852 Update users of ContextMenu and ContextMenuController to match where the new functions
1855 * WebCoreSupport/WebContextMenuClient.mm:
1856 (WebContextMenuClient::getCustomMenuFromDefaultItems):
1857 (WebContextMenuClient::contextMenuItemSelected):
1858 * WebView/WebHTMLView.mm:
1859 (-[WebMenuTarget validateMenuItem:]):
1861 2010-12-07 Brian Weinstein <bweinstein@apple.com>
1863 Reviewed by John Sullivan.
1865 Part of Layering Violation in ContextMenu
1866 https://bugs.webkit.org/show_bug.cgi?id=50586
1868 Move WebMenuTarget from ContextMenuMac to here, because having it in ContextMenuMac
1869 was a layering violation. Also, make sure we set the menu item targets for all menu
1870 items before showing them, because the ContextMenu constructor doesn't do that anymore.
1872 * WebView/WebHTMLView.mm:
1873 (+[WebMenuTarget sharedMenuTarget]): Moved from ContextMenuMac.mm.
1874 (-[WebMenuTarget WebCore::]): Ditto.
1875 (-[WebMenuTarget setMenuController:WebCore::]): Ditto.
1876 (-[WebMenuTarget forwardContextMenuAction:]): Ditto.
1877 (-[WebMenuTarget validateMenuItem:]): Ditto.
1879 (setMenuItemTarget): Sets the target of the NSMenuItem to the shared WebMenuTarget.
1880 (setMenuTargets): Recursively iterates over all NSMenuItems in an NSMenu (including
1881 submenus), and calls setMenuItemTarget on them.
1882 (-[WebHTMLView menuForEvent:]): Call setMenuTarget on all the menu items before adding
1885 2010-12-06 Darin Adler <darin@apple.com>
1887 Reviewed by Sam Weinig.
1889 Pass security origin to make local file decision correctly
1890 https://bugs.webkit.org/show_bug.cgi?id=48603
1892 * WebView/WebPDFView.mm:
1893 (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Pass security origin.
1895 2010-12-07 Martin Robinson <mrobinson@igalia.com>
1897 Unreviewed, rolling out r73392.
1898 http://trac.webkit.org/changeset/73392
1899 https://bugs.webkit.org/show_bug.cgi?id=50489
1901 This commit caused crashes on the GTK+ bots
1903 * WebView/WebFrame.mm:
1904 (-[WebFrame _canProvideDocumentSource]):
1906 2010-12-07 Kenichi Ishibashi <bashi@google.com>
1908 Reviewed by Kent Tamura.
1910 Let HTMLObjectElement be a form associated element
1911 https://bugs.webkit.org/show_bug.cgi?id=48821
1913 Modified to use FormAssociatedElement instead of HTMLFormControlElement.
1915 * WebView/WebHTMLRepresentation.mm:
1916 (-[WebHTMLRepresentation elementWithName:inForm:]): Modified to use
1917 FormAssociatedElement instead of HTMLFormControlElement.
1918 (-[WebHTMLRepresentation controlsInForm:]): Ditto.
1920 2010-12-06 Nate Chapin <japhet@chromium.org>
1922 Reviewed by Adam Barth.
1924 Update calls to DocumentWriter.
1925 https://bugs.webkit.org/show_bug.cgi?id=50489
1927 * WebView/WebFrame.mm:
1928 (-[WebFrame _canProvideDocumentSource]):
1930 2010-12-06 Chris Marrin <cmarrin@apple.com>
1932 Reviewed by Simon Fraser.
1934 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
1935 https://bugs.webkit.org/show_bug.cgi?id=49388
1937 Got rid of GraphicsLayer::nativeLayer() call, replacing it with
1938 GraphicsLayer::platformLayer().
1940 * WebCoreSupport/WebChromeClient.mm:
1941 (WebChromeClient::attachRootGraphicsLayer):
1943 2010-12-04 Dan Bernstein <mitz@apple.com>
1945 Reviewed by Sam Weinig.
1947 WebKit part of <rdar://problem/8145955> Add text search API for counting/marking/highlighting matches in a range
1948 https://bugs.webkit.org/show_bug.cgi?id=50530
1950 * WebView/WebDocumentInternal.h: Added a DOMRange parameter to -countMatchesForText:options:limit:markMatches:
1951 * WebView/WebHTMLView.mm:
1952 (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]): Added DOMRange parameter,
1953 which is passed through to WebCore.
1954 * WebView/WebPDFView.mm:
1955 (isFrameInRange): Added this helper function.
1956 (-[WebPDFView countMatchesForText:inDOMRange:options:limit:markMatches:]): Added DOMRange parameter and
1957 a check if the frame is in the range.
1958 * WebView/WebView.mm:
1959 (-[WebView countMatchesForText:options:highlight:limit:markMatches:]): Now calls the inDOMRange: version.
1960 (-[WebView countMatchesForText:inDOMRange:options:highlight:limit:markMatches:]): Added DOMRange
1961 parameter, which is passed to document views' -countMatchesForText:inDOMRange:options:limit:markMatches:.
1962 * WebView/WebViewPrivate.h:
1964 2010-12-03 Sam Weinig <sam@webkit.org>
1966 Reviewed by Maciej Stachowiak.
1968 Enable <a ping> for Mac/Windows/WebKit2 builds
1969 <rdar://problem/8504473>
1970 https://bugs.webkit.org/show_bug.cgi?id=50488
1972 * WebView/WebPreferences.mm:
1973 (+[WebPreferences initialize]): Enable "HyperlinkAuditing" by default.
1975 2010-12-03 Jia Pu <jpu@apple.com>
1977 Reviewed by Darin Adler.
1979 Need to move all code that applies correction into correction panel callback.
1980 https://bugs.webkit.org/show_bug.cgi?id=50426
1981 <rdar://problem/8720832>
1983 * WebCoreSupport/WebEditorClient.h: Adopted new signature of dismissCorrectionPanel.
1985 * WebCoreSupport/WebEditorClient.mm:
1986 (WebEditorClient::~WebEditorClient): Adopted new signature of dismissCorrectionPanel.
1987 (WebEditorClient::showCorrectionPanel): Added more user dictionary learning code.
1988 (WebEditorClient::dismissCorrectionPanel): Adopted new signature of dismissCorrectionPanel.
1990 2010-12-02 Simon Fraser <simon.fraser@apple.com>
1992 Revert r73217 and r73227 because of continued bustage.
1994 * WebCoreSupport/WebChromeClient.mm:
1995 (WebChromeClient::attachRootGraphicsLayer):
1997 2010-12-02 Chris Marrin <cmarrin@apple.com>
1999 Reviewed by Simon Fraser.
2001 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
2002 https://bugs.webkit.org/show_bug.cgi?id=49388
2004 Got rid of GraphicsLayer::nativeLayer() call, replacing it with
2005 GraphicsLayer::platformLayer().
2007 * WebCoreSupport/WebChromeClient.mm:
2008 (WebChromeClient::attachRootGraphicsLayer):
2010 2010-12-02 Mark Rowe <mrowe@apple.com>
2012 Reviewed by Beth Dakin.
2014 <rdar://problem/8708730> Objects reported as being leaked due to lack of autorelease pool
2016 * Misc/WebNSFileManagerExtras.m:
2017 (setMetaData): Create an autorelease pool for the duration of the thread body.
2019 2010-12-02 John Knottenbelt <jknotten@chromium.org>
2021 Reviewed by Steve Block.
2023 Move requestGeolocationPermissionForFrame to GeolocationClient
2024 https://bugs.webkit.org/show_bug.cgi?id=50061
2026 This change facilitates client-based geolocation implementation by
2027 bringing together permission control into the geolocation client
2030 Move method ChromeClient::requestGeolocationPermissionForFrame to
2031 GeolocationClient::requestPermission, and supporting class
2032 WebGeolocationPolicyListener. The moved code is unchanged except
2033 that requestPermission now takes only one argument (Geolocation*)
2034 and the Frame parameter is retrieved from the Geolocation object.
2036 * WebCoreSupport/WebChromeClient.h:
2037 * WebCoreSupport/WebChromeClient.mm:
2038 * WebCoreSupport/WebGeolocationClient.h:
2039 (WebGeolocationClient::cancelPermissionRequest):
2040 * WebCoreSupport/WebGeolocationClient.mm:
2041 (WebGeolocationClient::requestPermission):
2042 (-[WebGeolocationPolicyListener initWithGeolocation:]):
2043 (-[WebGeolocationPolicyListener allow]):
2044 (-[WebGeolocationPolicyListener deny]):
2046 2010-12-02 Joseph Pecoraro <joepeck@webkit.org>
2048 Reviewed by Eric Carlson.
2050 Style Fixes in WebPluginController
2051 https://bugs.webkit.org/show_bug.cgi?id=50397
2053 * Plugins/WebPluginController.mm:
2054 (-[WebPluginController startAllPlugins]):
2055 (-[WebPluginController stopAllPlugins]):
2057 2010-12-02 John Sullivan <sullivan@apple.com>
2059 Reviewed by Adam Roben.
2061 Slightly speculative fix for:
2063 <rdar://problem/8712674>
2064 <https://bugs.webkit.org/show_bug.cgi?id=50393>
2065 setStringValue: sometimes called with nil in [WebAuthenticationPanel setUpForChallenge]
2067 * Panels/WebAuthenticationPanel.m:
2068 (-[WebAuthenticationPanel setUpForChallenge:]):
2069 If the realm is nil, use @"" instead.
2071 2010-12-01 Jia Pu <jpu@apple.com>
2073 Reviewed by Darin Adler.
2075 Support multiple correction candidates panel for misspelled word on Mac OS X.
2076 https://bugs.webkit.org/show_bug.cgi?id=50137
2077 <rdar://problem/8568059>
2079 This patch is for supporting multiple correction suggestion panel on Mac OS X.
2080 The behavior and implementation is similar to that of reversion candiate panel.
2082 * WebCoreSupport/WebEditorClient.h: Adopted new signatures defined in base class.
2084 * WebCoreSupport/WebEditorClient.mm: Adopted new signatures defined in base class.
2085 Added code to handle new multiple suggestion canidate panel type.
2086 (WebEditorClient::showCorrectionPanel):
2087 (WebEditorClient::getGuessesForWord):
2089 2010-12-01 David Hyatt <hyatt@apple.com>
2091 Reviewed by Darin Adler.
2093 https://bugs.webkit.org/show_bug.cgi?id=46645
2095 Part 1 of making scrolling work with vertical text. This patch generalizes the scrollOriginX concept
2096 recently added for horizontal RTL documents and applies it to writing modes as well. Now the
2097 scrollOrigin is a point, since you can start off locked to the bottom or locked to the right.
2099 This patch also fixes numerous bugs with the scrollOrigin code using native Mac NSScrollViews and
2100 makes them behave the same as the cross-platform code (allowing for cross-platform results to be
2103 * WebView/WebDynamicScrollBarsView.mm:
2104 (-[WebDynamicScrollBarsView adjustForScrollOriginChange]):
2105 (-[WebDynamicScrollBarsView updateScrollers]):
2106 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
2107 (-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):
2108 (-[WebDynamicScrollBarsView scrollOrigin]):
2109 * WebView/WebFrameView.mm:
2110 (-[WebFrameView _scrollToBeginningOfDocument]):
2111 (-[WebFrameView _scrollToEndOfDocument]):
2113 2010-11-29 Dan Bernstein <mitz@apple.com>
2115 Reviewed by Darin Adler.
2117 WebKit Mac part of <rdar://problem/8650085> adding word-prefix search options to the text search API.
2118 https://bugs.webkit.org/show_bug.cgi?id=50038
2119 Based on a patch from Darin Adler.
2121 * WebView/WebDocumentInternal.h: Removed -markAllMatchesForText:caseSensitive:limit: and
2122 replaced -countMatchesForText:caseSensitive:limit:markMatches: with a WebFindOptions-based
2123 method. Declared a WebDocumentOptionsSearching protocol with a new -findString:options:
2124 method. Made WebHTMLView conform to the new protocol.
2125 * WebView/WebHTMLView.mm:
2126 (coreOptions): Added. Converts WebFindOptions to WebCore FindOptions.
2127 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Changed to use
2128 -findString:options:.
2129 (-[WebHTMLView countMatchesForText:options:limit:markMatches:]): Changed to use WebFindOptions.
2130 (-[WebHTMLView findString:options:]): Added. Calls through to WebCore::Editor::findString().
2131 * WebView/WebPDFView.mm:
2132 (-[WebPDFView countMatchesForText:options:limit:markMatches:]): Changed to use WebFindOptions.
2133 * WebView/WebView.mm:
2134 (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]): Now calls through to
2135 -countMatchesForText:options:highlight:limit:markMatches.
2136 (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]): Ditto.
2137 (-[WebView searchFor:direction:caseSensitive:wrap:startInSelection:]): Now calls through to
2138 -findString:options:.
2139 (incrementFrame): Changed to use WebFindOptions.
2140 (findString): Added this helper method that performs the search using the best supported
2141 method for the document view.
2142 (-[WebView findString:options:]): Changed -searchFor::::: into this.
2143 (-[WebView canMarkAllTextMatches]):
2144 (-[WebView countMatchesForText:options:highlight:limit:markMatches:]): Updated to use
2146 (-[WebView unmarkAllTextMatches]): Updated for change to incrementFrame.
2147 (-[WebView rectsForTextMatches]): Ditto.
2148 * WebView/WebViewPrivate.h: Added WebFindOptions, -findString:options:, and WebFindOptions version
2149 of countMatchesForText:.
2151 2010-11-29 Jeremy Moskovich <jeremy@chromium.org>
2153 Reviewed by David Hyatt.
2155 Right-to-left pages should be scrollable to reveal left overflow.
2156 https://bugs.webkit.org/show_bug.cgi?id=23556
2158 Set and get the original x-axis scroll position and reset scroll position on HOME/END key press.
2159 Modify WebFrameView to support setting the initial horizontal scroller's thumb position to the right for
2160 pages with a left overflow.
2162 * WebView/WebDynamicScrollBarsView.h:
2163 * WebView/WebDynamicScrollBarsView.mm:
2164 (-[WebDynamicScrollBarsView inProgramaticScroll]):
2165 (-[WebDynamicScrollBarsView refreshInitialScrollbarPosition]):
2166 (-[WebDynamicScrollBarsView updateScrollers]):
2167 (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
2168 (-[WebDynamicScrollBarsView setScrollOriginX:]):
2169 (-[WebDynamicScrollBarsView scrollOriginX]):
2170 * WebView/WebFrameView.mm:
2171 (-[WebFrameView _scrollToBeginningOfDocument]):
2172 (-[WebFrameView _scrollToEndOfDocument]):
2173 * WebView/WebHTMLView.mm:
2174 (-[WebHTMLView _frameOrBoundsChanged]):
2176 2010-11-22 Ryosuke Niwa <rniwa@webkit.org>
2178 Reviewed by Tony Chang.
2180 SelectionController::typingStyle() should return EditingStyle*
2181 https://bugs.webkit.org/show_bug.cgi?id=49813
2183 Changed the return value of SelectionController::typingStyle() to EditingStyle*.
2184 Also added SelectionController::copyTypingStyle() to copy the typing style
2185 as an instance of CSSMutableStyleDeclaration.
2187 No tests are added since this is no behavioral change.
2189 * WebView/WebFrame.mm:
2190 (-[WebFrame _typingStyle]): Calls SelectionController::copyTypingStyle()
2192 2010-11-19 Michael Saboff <msaboff@apple.com>
2194 Reviewed by Sam Weinig
2196 Remove DOMSVGAnimatedPathData.h from all: target to fix build.
2198 * MigrateHeaders.make:
2200 2010-11-19 Nikolas Zimmermann <nzimmermann@rim.com>
2202 Reviewed by Dirk Schulze.
2204 Convert SVGPathSeg/SVGPathSegList to the new SVGPropertyTearOff concept
2205 https://bugs.webkit.org/show_bug.cgi?id=49580
2207 * WebView/WebRenderLayer.mm: Add missing StyledElement.h include.
2209 2010-11-18 Mark Rowe <mrowe@apple.com>
2211 Rubber-stamped by Adam Roben.
2213 <rdar://problem/8602509&8602717&8602724> Enable compaction support.
2215 * Configurations/WebKit.xcconfig:
2217 2010-11-18 Sheriff Bot <webkit.review.bot@gmail.com>
2219 Unreviewed, rolling out r72288.
2220 http://trac.webkit.org/changeset/72288
2221 https://bugs.webkit.org/show_bug.cgi?id=49730
2223 'krit attempted to do that, but revert got stuck' (Requested
2224 by antonm on #webkit).
2226 * WebView/WebRenderLayer.mm:
2228 2010-11-17 Nikolas Zimmermann <nzimmermann@rim.com>
2230 Reviewed by Dirk Schulze.
2232 Convert SVGPathSeg/SVGPathSegList to the new SVGPropertyTearOff concept
2233 https://bugs.webkit.org/show_bug.cgi?id=49580
2235 * WebView/WebRenderLayer.mm: Add missing StyledElement.h include.
2237 2010-11-16 Stephanie Lewis <slewis@apple.com>
2239 Reviewed by Geoff Garen.
2241 <rdar://problem/8624267> Leak creating offscreen webview running fast/dom tests
2243 Make a static provider for WebDeviceOrientationProviderMock. The old code allocated a new WebDeviceOrientationProviderMock for
2244 every WebView, and the WebKit API doesn't support that ownership model.
2246 * WebView/WebDeviceOrientationProviderMock.h:
2247 * WebView/WebDeviceOrientationProviderMock.mm:
2248 (+[WebDeviceOrientationProviderMock shared]):
2250 2010-11-16 Dave Hyatt <hyatt@apple.com>
2252 Reviewed by Dan Bernstein.
2254 https://bugs.webkit.org/show_bug.cgi?id=11004
2256 font-size:0 is ignored. Remove the minimum font size of 1 in CSSStyleSelector.
2257 Change the pref value for minimum font size from 1 to 0. Make sure to never use the NSFont's size,
2258 since it doesn't honor a size of 0. Instead pass the size in to the FontPlatformData(NSFont*) version
2259 of the constructor rather than using [NSFont pointSize].
2261 https://bugs.webkit.org/show_bug.cgi?id=49582
2263 Negative leading is not handled correctly. There are two bugs here. The first is that
2264 maxAscent and maxDescent can be negative, so we need a notion of whether or not we have
2265 set them before so that we can allow them to be < 0.
2267 The second issue is that we should understand where fonts will end up relative to
2268 our baseline (excluding line height), and only allow those boxes to impact ascent and
2269 descent if the actual font box (without factoring in line height) is above or below the
2270 root line box baseline.
2272 Added fast/css/negative-leading.html
2274 These two bug fixes have to land together to keep the Acid 3 test rendering correctly.
2276 * Misc/WebKitNSStringExtras.mm:
2277 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2278 (-[NSString _web_widthWithFont:]):
2279 * Misc/WebStringTruncator.mm:
2281 * WebView/WebPreferences.mm:
2282 (+[WebPreferences initialize]):
2284 2010-11-16 Anders Carlsson <andersca@apple.com>
2288 * WebCoreSupport/WebFrameLoaderClient.mm:
2290 2010-11-14 Kent Tamura <tkent@chromium.org>
2292 Reviewed by Andreas Kling.
2294 KeyboardEvent::keyIdentifier() should return "const String&"
2295 https://bugs.webkit.org/show_bug.cgi?id=49426
2297 * WebCoreSupport/WebEditorClient.mm:
2298 (selectorForKeyEvent):
2299 Change the type of a variable to have keyIdentifier(); String -> const String&
2301 2010-11-12 John Knottenbelt <jknotten@chromium.org>
2303 Reviewed by Steve Block.
2305 Rename GeolocationControllerClient to GeolocationClient.
2306 https://bugs.webkit.org/show_bug.cgi?id=49259
2308 * WebCoreSupport/WebGeolocationClient.h: Renamed from WebKit/mac/WebCoreSupport/WebGeolocationControllerClient.h.
2309 (WebGeolocationClient::webView):
2310 (WebGeolocationClient::setEnableHighAccuracy):
2311 * WebCoreSupport/WebGeolocationClient.mm: Renamed from WebKit/mac/WebCoreSupport/WebGeolocationControllerClient.mm.
2312 (WebGeolocationClient::WebGeolocationClient):
2313 (WebGeolocationClient::geolocationDestroyed):
2314 (WebGeolocationClient::startUpdating):
2315 (WebGeolocationClient::stopUpdating):
2316 (WebGeolocationClient::lastPosition):
2318 * WebView/WebView.mm:
2319 (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2321 2010-11-10 Beth Dakin <bdakin@apple.com>
2323 Reviewed by Simon Fraser.
2325 Fix for https://bugs.webkit.org/show_bug.cgi?id=49356
2326 -[WebView _scaleWebView:] should take and origin and scroll the
2329 <rdar://problem/8643921>
2331 * WebView/WebView.mm:
2332 (-[WebView _scaleWebView:atOrigin:]):
2333 * WebView/WebViewPrivate.h:
2335 2010-11-10 Csaba Osztrogonác <ossy@webkit.org>
2337 Reviewed by David Hyatt.
2339 HTML5 Ruby support should be mandatory feature
2340 https://bugs.webkit.org/show_bug.cgi?id=49272
2342 Remove Ruby as optional feature.
2344 * Configurations/FeatureDefines.xcconfig:
2346 2010-11-08 Ned Holbrook <nholbrook@apple.com>
2348 Reviewed by Adam Barth.
2350 Avoid CFAttributedString creation in ComplexTextController by adopting UniChar provider SPI.
2351 https://bugs.webkit.org/show_bug.cgi?id=48886
2353 * WebCoreSupport/WebSystemInterface.mm:
2354 (InitWebCoreSystemInterface):
2356 2010-11-08 Nate Chapin <japhet@chromium.org>
2358 Unreviewed, build fix.
2360 Clumsy typo in r71562.
2362 * Plugins/Hosted/HostedNetscapePluginStream.mm:
2363 (WebKit::HostedNetscapePluginStream::start):
2365 2010-11-08 Nate Chapin <japhet@chromium.org>
2367 Reviewed by Alexey Proskuryakov.
2369 Interface changes in https://bugs.webkit.org/show_bug.cgi?id=27165
2371 * Plugins/Hosted/HostedNetscapePluginStream.mm:
2372 (WebKit::HostedNetscapePluginStream::start): Move duplicate code into NetscapePluginStreamLoader
2373 * Plugins/WebNetscapePluginStream.mm:
2374 (WebNetscapePluginStream::start): Move duplicate code into NetscapePluginStreamLoader
2375 * WebView/WebView.mm:
2376 (-[WebView _dispatchPendingLoadRequests]): Use resourceLoadScheduler() instead of cache()->loader().
2378 2010-11-08 Anders Carlsson <andersca@apple.com>
2380 Reviewed by Dan Bernstein.
2382 Plug-in views should not assume that plugins are RenderEmbeddedObjects
2383 https://bugs.webkit.org/show_bug.cgi?id=49196
2384 <rdar://problem/8638467>
2386 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2387 (-[WebHostedNetscapePluginView pluginHostDied]):
2389 2010-11-08 Alexey Proskuryakov <ap@apple.com>
2391 Reviewed by Darin Adler.
2393 https://bugs.webkit.org/show_bug.cgi?id=48685
2394 Notify UI process about focused frame
2396 Added an empty implementation of the new ChromeClient method.
2398 * WebCoreSupport/WebChromeClient.h:
2399 * WebCoreSupport/WebChromeClient.mm:
2400 (WebChromeClient::focusedFrameChanged):
2402 2010-11-08 Anders Carlsson <andersca@apple.com>
2406 * MigrateHeaders.make:
2408 2010-11-08 Anders Carlsson <andersca@apple.com>
2410 Reviewed by Adam Roben.
2412 Remove use of HIGetScaleFactor
2413 https://bugs.webkit.org/show_bug.cgi?id=49186
2414 <rdar://problem/8618410>
2416 Scale factors can vary on a display-by-display basis and it doesn't make sense
2417 to compute scale factor event coordinates like this.
2419 * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
2422 2010-11-08 Simon Fraser <simon.fraser@apple.com>
2424 Reviewed by Sam Weinig.
2426 Allow applets to participate in accelerated compositing
2427 https://bugs.webkit.org/show_bug.cgi?id=49117
2428 <rdar://problem/8625819>
2430 If Java is being loaded via the Netscape Plugin API, create a
2431 NetscapePluginWidget so that it has an implementation of platformLayer().
2433 Also clean up by using early returns.
2435 * WebCoreSupport/WebFrameLoaderClient.mm:
2437 2010-11-07 Adam Barth <abarth@webkit.org>
2439 Reviewed by Eric Seidel.
2441 Rename Cache to MemoryCache
2442 https://bugs.webkit.org/show_bug.cgi?id=49159
2445 (+[WebCache statistics]):
2446 * WebCoreSupport/WebDeviceOrientationClient.mm:
2447 (WebDeviceOrientationClient::setController):
2448 * WebView/WebView.mm:
2450 2010-11-05 Alexey Proskuryakov <ap@apple.com>
2452 Reviewed by Darin Adler.
2454 https://bugs.webkit.org/show_bug.cgi?id=49100
2455 ASSERT([self window]) fails in -[WebBaseNetscapePluginView restartTimers]
2457 * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView restartTimers]):
2458 Removed the assertion. Multiple callers provide no guarantee that the plug-in is still alive
2459 (see bug comments), and there seems to be no harm in executing this function in that case.
2461 2010-11-05 Chris Marrin <cmarrin@apple.com>
2463 Reviewed by Simon Fraser.
2465 Move resumeAnimations/suspendAnimations from Frame to AnimationController.
2466 https://bugs.webkit.org/show_bug.cgi?id=49073
2468 * WebView/WebFrame.mm:
2469 (-[WebFrame _suspendAnimations]):
2470 (-[WebFrame _resumeAnimations]):
2472 2010-11-04 Alexey Proskuryakov <ap@apple.com>
2474 Reviewed by Darin Adler.
2476 https://bugs.webkit.org/show_bug.cgi?id=49008
2477 <rdar://problem/7906226> Frequent crashes on mail.yahoo.co.jp
2479 Callers of NetscapePluginInstanceProxy::waitForReply() are not prepared to be deleted during
2480 the call, unless it returns 0. There are two reasons for NetscapePluginInstanceProxy to be
2481 deleted during wait:
2483 - plugin was stopped (e.g. due to a DOM modification performed by another reply that came in
2486 We didn't recognize the latter.
2488 * Plugins/Hosted/NetscapePluginHostProxy.mm:
2489 (WebKit::PluginDestroyDeferrer::~PluginDestroyDeferrer):
2490 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2491 (WebKit::NetscapePluginInstanceProxy::waitForReply):
2492 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2493 (WebKit::NetscapePluginInstanceProxy::didCallPluginFunction):
2495 2010-11-05 Chris Marrin <cmarrin@apple.com>
2497 Reviewed by Simon Fraser.
2499 Make suspendAnimations/resumeAnimations and setCSSAnimations traverse through subframes and remember state
2500 https://bugs.webkit.org/show_bug.cgi?id=46945
2502 * WebView/WebFrame.mm:
2503 (-[WebFrame _suspendAnimations]):
2504 (-[WebFrame _resumeAnimations]):
2506 2010-11-04 Jia Pu <jpu@apple.com>
2508 Reviewed by Dan Bernstein.
2510 reversion bubble in WebViews
2511 https://bugs.webkit.org/show_bug.cgi?id=47630
2512 <rdar://problem/8530960>
2514 This patch is to add reversion to correction panel. Please see WebCore/ChangeLog for detail.
2516 * WebCoreSupport/WebEditorClient.h: Adopted new signature of base class method.
2517 * WebCoreSupport/WebEditorClient.mm: Adopted new signature of base class method. And code
2518 change to use new reversion API in AppKit.
2519 (WebEditorClient::WebEditorClient):
2520 (WebEditorClient::~WebEditorClient):
2521 (WebEditorClient::respondToChangedSelection):
2522 (WebEditorClient::showCorrectionPanel):
2523 (WebEditorClient::dismissCorrectionPanel):
2524 (WebEditorClient::isShowingCorrectionPanel):
2526 2010-11-04 Mike Thole <mthole@apple.com>
2528 Reviewed by Dan Bernstein.
2530 Title for images should use localized numerals
2531 https://bugs.webkit.org/show_bug.cgi?id=49017
2533 * WebCoreSupport/WebPlatformStrategies.mm:
2534 (WebPlatformStrategies::imageTitle): Use localized numerals on Snow Leopard or newer.
2536 2010-11-02 Daniel Bates <dbates@rim.com>
2538 Reviewed by Adam Barth.
2540 For unnamed frames, window.name returns a generated name
2541 https://bugs.webkit.org/show_bug.cgi?id=6751
2545 Substitute FrameTree::uniqueName() for FrameTree::name() in the Mac port.
2547 * WebView/WebFrame.mm:
2550 2010-11-01 Brady Eidson <beidson@apple.com>
2552 Reviewed by Anders Carlsson.
2554 <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
2555 Context menu support for WebKit 2.
2557 * WebCoreSupport/WebChromeClient.h:
2558 (WebChromeClient::showContextMenu):
2560 2010-10-29 Daniel Bates <dbates@rim.com>
2562 No review, rolling out 70971.
2563 http://trac.webkit.org/changeset/70971
2564 https://bugs.webkit.org/show_bug.cgi?id=6751
2566 Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
2567 it caused layout test failures on all bots. In particular, the
2568 child count in a generated frame name differs after this patch. We need
2569 to look into this further.
2571 * WebView/WebFrame.mm:
2574 2010-10-28 Antonio Gomes <agomes@rim.com>
2576 Reviewed by Ojan Vafai.
2578 Needs a "LinuxEditingBehavior", perhaps with a better name
2579 https://bugs.webkit.org/show_bug.cgi?id=36627
2581 Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WebKitEditingUnixBehavior.
2583 * WebView/WebFrame.mm:
2585 * WebView/WebPreferencesPrivate.h:
2587 2010-10-29 Daniel Bates <dbates@rim.com>
2589 Reviewed by Adam Barth.
2591 For unnamed frames, window.name returns a generated name
2592 https://bugs.webkit.org/show_bug.cgi?id=6751
2594 Modified Mac-port to use FrameTree::uniqueName().
2596 * WebView/WebFrame.mm:
2599 2010-10-29 Darin Adler <darin@apple.com>
2601 Reviewed by Sam Weinig.
2603 Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
2604 https://bugs.webkit.org/show_bug.cgi?id=48574
2606 * History/WebBackForwardList.mm:
2607 Use BackForwardListImpl.
2609 2010-10-29 Alexey Proskuryakov <ap@apple.com>
2611 Rubber-stamped by Sam Weinig.
2613 Comment for usesDocumentViews explains it backwards. This flag is true in ToT, and we do
2614 create views for subframes.
2616 * WebView/WebViewData.h: Double negation is better than a lie.
2618 2010-10-27 Jer Noble <jer.noble@apple.com>
2620 Reviewed by Darin Adler.
2622 Full screen video in Safari (still) exits full-screen if you switch to another
2623 app on a multi-display system.
2624 https://bugs.webkit.org/show_bug.cgi?id=47364
2625 <rdar://problem/8382299>
2627 The FullScreen window does not technically close when it deactivates, but the
2628 two NSWindows that make up the FullScreen feature should not hide when deactivated.
2630 * WebView/WebVideoFullscreenController.mm:
2631 (createBackgroundFullscreenWindow): Do not set hidesOnDeactivate.
2632 (-[WebVideoFullscreenWindow initWithContentRect:styleMask:backing:defer:]): Ditto.
2633 * WebView/WebVideoFullscreenHUDWindowController.mm:
2634 (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]): Ditto.
2636 2010-10-29 Alexey Proskuryakov <ap@apple.com>
2638 Reviewed by Darin Adler.
2640 https://bugs.webkit.org/show_bug.cgi?id=48576
2641 Let WebKit2 client know when a frame is a frameset
2643 Added a blank implementation of the new FrameLoaderClient method.
2645 * WebCoreSupport/WebFrameLoaderClient.h:
2646 * WebCoreSupport/WebFrameLoaderClient.mm:
2647 (WebFrameLoaderClient::dispatchDidBecomeFrameset):
2649 2010-10-29 Csaba Osztrogonác <ossy@webkit.org>
2651 Reviewed by Adam Roben and David Kilzer.
2653 Fix and cleanup of build systems
2654 https://bugs.webkit.org/show_bug.cgi?id=48342
2656 * Configurations/FeatureDefines.xcconfig: Remove unnecessary ENABLE_SANDBOX.
2658 2010-10-28 Dan Bernstein <mitz@apple.com>
2660 Reviewed by Mark Rowe.
2662 LLVM compiler build fix
2664 * Misc/WebDownload.mm:
2665 (-[WebDownload initWithRequest:delegate:]): Changed the delegate type from id to
2666 id<NSURLDownloadDelegate> to match the method signature in NSURLDownload.
2668 2010-10-28 Ivan Krstić <ike@apple.com>
2670 Reviewed by Mark Rowe.
2672 Remove unused experimental proxied panel interface.
2673 <rdar://problem/7237059>
2675 * Plugins/Hosted/NetscapePluginHostManager.h:
2676 * Plugins/Hosted/NetscapePluginHostManager.mm:
2677 (WebKit::NetscapePluginHostManager::hostForPlugin):
2678 (WebKit::NetscapePluginHostManager::spawnPluginHost):
2679 (WebKit::NetscapePluginHostManager::instantiatePlugin):
2680 * Plugins/Hosted/NetscapePluginHostProxy.mm:
2681 * Plugins/Hosted/WebKitPluginClient.defs:
2682 * Plugins/Hosted/WebKitPluginHost.defs:
2683 * WebCoreSupport/WebSystemInterface.mm:
2684 (InitWebCoreSystemInterface):
2685 * WebView/WebPreferenceKeysPrivate.h:
2686 * WebView/WebPreferences.mm:
2687 (+[WebPreferences initialize]):
2688 * WebView/WebPreferencesPrivate.h:
2690 2010-10-27 Pratik Solanki <psolanki@apple.com>
2692 Reviewed by Darin Adler.
2694 Improve memSize calculation in [WebView _setCacheModel]
2695 https://bugs.webkit.org/show_bug.cgi?id=48484
2697 * WebView/WebView.mm:
2698 (roundUpToPowerOf2): Added. Utility function to calculate the nearest power of 2.
2699 (+[WebView _setCacheModel:]): Update memSize calculation to set it to the next
2700 bigger power of 2. Also update WebCore cache settings.
2702 2010-10-26 Darin Adler <darin@apple.com>
2704 Reviewed by Sam Weinig.
2706 WebKitTestRunner needs to support layoutTestController.dumpBackForwardList
2707 https://bugs.webkit.org/show_bug.cgi?id=42322
2708 rdar://problem/8193631
2710 WebKitTestRunner needs to support layoutTestController.clearBackForwardList
2711 https://bugs.webkit.org/show_bug.cgi?id=42333
2712 rdar://problem/8193643
2714 * History/WebBackForwardList.mm:
2715 (core): Return BackForwardListImpl.
2716 (kit): Take BackForwardListImpl.
2717 (-[WebBackForwardList initWithBackForwardList:]): Use BackForwardListImpl.
2718 (-[WebBackForwardList dealloc]): Ditto.
2719 (-[WebBackForwardList finalize]): Ditto.
2720 (-[WebBackForwardList description]): Ditto.
2721 (-[WebBackForwardList setPageCacheSize:]): Ditto.
2722 (-[WebBackForwardList pageCacheSize]): Ditto.
2723 * History/WebBackForwardListInternal.h: Ditto.
2724 * WebView/WebFrameView.mm:
2725 (-[WebFrameView keyDown:]): Ditto.
2726 * WebView/WebView.mm:
2727 (-[WebView initWithCoder:]): Ditto.
2728 (-[WebView encodeWithCoder:]): Ditto.
2729 (-[WebView backForwardList]): Ditto.
2730 (-[WebView setMaintainsBackForwardList:]): Ditto.
2732 2010-10-27 Chris Rogers <crogers@google.com>
2734 Reviewed by Chris Marrin.
2736 Add ENABLE_WEB_AUDIO feature enable flag (initially disabled) to build-webkit
2737 https://bugs.webkit.org/show_bug.cgi?id=48279
2739 * Configurations/FeatureDefines.xcconfig:
2741 2010-10-27 Beth Dakin <bdakin@apple.com>
2743 Reviewed by Darin Adler.
2745 Fix for https://bugs.webkit.org/show_bug.cgi?id=48385 Add WebKit
2746 SPI to scale a WebView
2748 <rdar://problem/8107667>
2750 This patch adds SPI to Mac WebKit that scales the page by the given
2753 * WebView/WebView.mm:
2754 (-[WebView _scaleWebView:]):
2755 (-[WebView _viewScaleFactor]):
2756 * WebView/WebViewPrivate.h:
2758 2010-10-27 Dan Bernstein <mitz@apple.com>
2760 Reviewed by Darin Adler.
2762 REGRESSION (r70335): Incorrect article layout in Safari Reader
2763 https://bugs.webkit.org/show_bug.cgi?id=48436
2765 * Misc/WebKitVersionChecks.h: Added WEBKIT_FIRST_VERSION_WITH_GET_MATCHED_CSS_RULES_RESTRICTIONS.
2766 * WebView/WebView.mm:
2767 (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Added. Returns YES for Safari linked against
2768 versions of WebKit that did not have the cross-origin restrictions in getMatchedCSSRules().
2769 (-[WebView _preferencesChangedNotification:]): Call Settings::setCrossOriginCheckInGetMatchedCSSRulesDisabled()
2772 2010-10-18 Jer Noble <jer.noble@apple.com>
2774 Reviewed by Eric Carlson.
2776 Safari fullscreen media element tickles when it should not.
2778 https://bugs.webkit.org/show_bug.cgi?id=47861
2780 * WebView/WebVideoFullscreenController.mm:
2781 (-[WebVideoFullscreenController updatePowerAssertions]):
2783 2010-10-26 Jenn Braithwaite <jennb@chromium.org>
2785 Reviewed by Dmitry Titov.
2787 Resource tracking failure when trying to move a frame between documents
2788 https://bugs.webkit.org/show_bug.cgi?id=44713
2790 * WebCoreSupport/WebFrameLoaderClient.h:
2791 * WebCoreSupport/WebFrameLoaderClient.mm:
2792 (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
2794 (WebFrameLoaderClient::transferLoadingResourceFromPage):
2795 Update resource tracking for a resource load that has been transferred
2798 2010-10-25 Oliver Hunt <oliver@apple.com>
2800 Reviewed by Gavin Barraclough.
2802 Remove exec and globalData arguments from jsNumber
2803 https://bugs.webkit.org/show_bug.cgi?id=48270
2805 Mechanical removal of exec parameter to jsNumber
2807 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2808 (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
2809 * Plugins/Hosted/ProxyInstance.mm:
2810 (WebKit::ProxyInstance::numberValue):
2812 2010-10-24 Dan Bernstein <mitz@apple.com>
2814 Reviewed by Anders Carlsson.
2816 Expose HitTestResult::absoluteMediaURL() via WebKit API
2817 https://bugs.webkit.org/show_bug.cgi?id=48219
2819 * Misc/WebElementDictionary.mm:
2820 (+[WebElementDictionary initializeLookupTable]): Map WebElementMediaURLKey to
2822 (-[WebElementDictionary _absoluteMediaURL]): Added. Returns absoluteMediaURL().
2823 * WebKit.exp: Export WebElementMediaURLKey.
2824 * WebView/WebView.mm: Define WebElementMediaURLKey.
2825 * WebView/WebViewPrivate.h: Declare WebElementMediaURLKey.
2827 2010-10-24 Dan Bernstein <mitz@apple.com>
2829 Reviewed by Simon Fraser.
2831 Removed deprecated methods from the WebHTMLHighlighter private protocol.
2833 * WebCoreSupport/WebChromeClient.mm:
2834 (WebChromeClient::customHighlightRect): Call -highlightRectForLine:representedNode:
2836 (WebChromeClient::paintCustomHighlight): Call
2837 -paintHighlightForBox:onLine:behindText:entireLine:representedNode: unconditionally.
2838 * WebView/WebHTMLViewPrivate.h:
2840 2010-10-23 Xan Lopez <xlopez@igalia.com>
2842 Reviewed by Sam Weinig.
2844 Unify globalData APIs
2845 https://bugs.webkit.org/show_bug.cgi?id=47969
2847 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2848 (WebKit::NetscapePluginInstanceProxy::evaluate):
2849 (WebKit::NetscapePluginInstanceProxy::invoke):
2850 (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2851 (WebKit::NetscapePluginInstanceProxy::construct):
2852 * WebView/WebScriptDebugDelegate.mm:
2853 (-[WebScriptCallFrame evaluateWebScript:]):
2855 2010-10-23 David Kilzer <ddkilzer@apple.com>
2857 <http://webkit.org/b/48186> Remove unneeded WebHTMLRepresentationInternal.h header
2859 Reviewed by Sam Weinig.
2861 The only method defined in WebHTMLRepresentationInternal.h is
2862 also defined in WebHTMLRepresentation.h, so use that instead.
2864 * WebView/WebHTMLRepresentationInternal.h: Removed.
2866 2010-10-23 Alexey Proskuryakov <ap@apple.com>
2868 Reviewed by Anders Carlsson.
2870 https://bugs.webkit.org/show_bug.cgi?id=48083
2871 <rdar://problem/8489082> Need WebKit2 API for private browsing (48083)
2873 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize the new method.
2875 2010-10-22 Sam Weinig <sam@webkit.org>
2877 Reviewed by Anders Carlsson.
2879 WebKit2 needs to pass the current event modifier flags when requesting a new window
2880 https://bugs.webkit.org/show_bug.cgi?id=48140
2882 * WebCoreSupport/WebChromeClient.h:
2883 * WebCoreSupport/WebChromeClient.mm:
2884 (WebChromeClient::createWindow):
2885 * WebCoreSupport/WebFrameLoaderClient.h:
2886 * WebCoreSupport/WebFrameLoaderClient.mm:
2887 (WebFrameLoaderClient::dispatchCreatePage):
2888 Add NavigationAction parameter.
2890 2010-10-21 Andy Estes <aestes@apple.com>
2892 Reviewed by Eric Carlson.
2894 WebKit shouldn't load a plug-in based on file extension if a MIME type
2896 https://bugs.webkit.org/show_bug.cgi?id=48046
2898 If a MIME type is specified in an object or embed element, and that MIME
2899 type isn't supported by an installed plug-in, WebKit shouldn't attempt
2900 to find a plug-in based on the file extension of the url attribute.
2901 Doing so can lead to cases where a plug-in is loaded that can't handle
2902 resources of the MIME type specified by the author.
2904 * WebCoreSupport/WebFrameLoaderClient.mm:
2905 (WebFrameLoaderClient::createPlugin): Only check for a pluginPackage by
2906 extension if MIME type is the empty string.
2908 2010-10-20 Simon Fraser <simon.fraser@apple.com>
2910 Reviewed by Dan Bernstein.
2912 Composited elements drawn twice when WebView is layer-backed
2913 https://bugs.webkit.org/show_bug.cgi?id=48024
2914 <rdar://problem/7916580>
2916 When drawing content in a layer-backed WebView, WebFrame's test
2917 for drawing to a bitmap succeeded, causing us to paint flattened
2918 compositing layers into the view. They would also be rendered
2919 by the normal compositing path, resulting in double rendering.
2921 Fix this by detecting when the WebHTMLView is being drawn into
2922 a layer, and avoiding flattening in that case.
2924 * WebView/WebFrame.mm:
2925 (-[WebFrame _showFlattenedCompositingLayers:]):
2926 (-[WebFrame _drawRect:contentsOnly:]):
2927 * WebView/WebHTMLView.mm:
2928 (-[WebHTMLView drawLayer:inContext:]):
2929 (-[WebHTMLView _web_isDrawingIntoLayer]):
2930 * WebView/WebHTMLViewInternal.h:
2932 2010-10-20 Dumitru Daniliuc <dumi@chromium.org>
2934 Reviewed by David Levin.
2936 Repost the DatabaseTracker notifications to the main thread, if needed.
2937 https://bugs.webkit.org/show_bug.cgi?id=40655
2939 * Storage/WebDatabaseTrackerClient.mm:
2940 (DidModifyOriginData::dispatchToMainThread):
2941 (DidModifyOriginData::DidModifyOriginData):
2942 (DidModifyOriginData::dispatchDidModifyOriginOnMainThread):
2943 (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
2944 (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
2946 2010-10-20 Simon Fraser <simon.fraser@apple.com>
2948 Reviewed by Darin Adler.
2950 REGRESSION(r67568-r67643): Some HTML/CSS renders upside down and backwards on Leopard
2951 https://bugs.webkit.org/show_bug.cgi?id=47369
2953 r46947 added code that limits the size of the layer-backed view on Leopard when
2954 the page height exceeds 4096px (later adjusted to 2048px in r48401).
2956 Later, r67576 altered the geometry flipping behavior to push the geometry flipping
2957 down into WebKit. However, the code that adjusts the hosting layer's sublayer transform
2958 to account for layer-backed view size-limiting was not fixed at the same time.
2959 This change corrects that.
2961 * WebView/WebHTMLView.mm:
2962 (-[WebHTMLView _updateLayerHostingViewPosition]):
2964 2010-10-19 Simon Fraser <simon.fraser@apple.com>
2966 Reviewed by Dan Bernstein.
2968 <rdar://problem/8508422> Compositing layers aren't always displayed correctly in layer-backed WebViews
2970 AppKit has some special code to prevent it meddling with view's layers
2971 under layer-backed WebViews. When a layer-backed WebView became composited,
2972 this caused our layer to remain zero-sized. Fix this by manually
2973 setting the geometry for our layer, if the WebHTMLView has a layer.
2975 This does not seem to be a problem if the WebView becomes layer-backed, or
2976 stops being layer-backed after the WebView starts using compositing.
2978 * WebView/WebHTMLView.mm:
2979 (-[WebHTMLView attachRootLayer:]):
2981 2010-10-20 Dirk Schulze <krit@webkit.org>
2983 Reviewed by Nikolas Zimmermann.
2985 Merge ColorSpace and ImageColorSpace enums
2986 https://bugs.webkit.org/show_bug.cgi?id=47922
2988 Renamed ColorSpace enum entries DeviceColorSpace and sRGBColorSpace to ColorSpaceDeviceRGB and ColorSpaceSRGB
2989 to follow webkit style rules.
2991 * Misc/WebKitNSStringExtras.mm:
2992 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2994 2010-10-19 Alexey Proskuryakov <ap@apple.com>
2996 Reviewed by Anders Carlsson.
2998 https://bugs.webkit.org/show_bug.cgi?id=47933
2999 <rdar://problem/8494337> navigator.language doesn't work in WebKit2
3001 * Misc/WebNSUserDefaultsExtras.mm: Moved code for computing default language to WebCore.
3002 We need to keep _webkit_preferredLanguageCode for Safari.
3004 * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface):
3005 Initialize wkCopyCFLocalizationPreferredName.
3007 * WebCoreSupport/WebViewFactory.mm: Removed defaultLanguage. WebCore was the only caller.
3009 2010-10-18 Alexey Proskuryakov <ap@apple.com>
3011 Reviewed by David Kilzer.
3013 https://bugs.webkit.org/show_bug.cgi?id=47864
3014 Convert WebNSUserDefaultsExtras.m to .mm
3016 Also, fixed some issues in the process:
3017 - removed locking, which was only necessary when this code was in Foundation;
3018 - fixed notification center observer to actually work (previously, it picked up changes
3019 when application preferences changed, not when system language did);
3020 - removed unused NSString category;
3023 * Misc/WebNSUserDefaultsExtras.m: Removed.
3024 * Misc/WebNSUserDefaultsExtras.mm: Copied from WebKit/mac/Misc/WebNSUserDefaultsExtras.m.
3025 (createHTTPStyleLanguageCode):
3026 (+[NSUserDefaults _webkit_defaultsDidChange]):
3027 (addLanguageChangeObserver):
3028 (+[NSUserDefaults _webkit_preferredLanguageCode]):
3030 2010-10-18 Stuart Morgan <stuartmorgan@chromium.org>
3032 Reviewed by Eric Seidel.
3034 Switch to using the new Carbon NPAPI event declarations, and remove
3037 https://bugs.webkit.org/show_bug.cgi?id=40784
3039 * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
3040 (WebNetscapePluginEventHandlerCarbon::mouseEntered):
3041 (WebNetscapePluginEventHandlerCarbon::mouseExited):
3042 (WebNetscapePluginEventHandlerCarbon::mouseMoved):
3043 (WebNetscapePluginEventHandlerCarbon::focusChanged):
3045 2010-10-18 Pavel Podivilov <podivilov@chromium.org>
3047 Reviewed by Timothy Hatcher.
3049 Web Inspector: disable private browsing for inspector
3050 https://bugs.webkit.org/show_bug.cgi?id=47827
3052 * WebCoreSupport/WebInspectorClient.mm:
3053 (-[WebInspectorWindowController init]):
3055 2010-10-14 Ilya Tikhonovsky <loislo@chromium.org>
3057 Reviewed by Pavel Feldman.
3059 Web Inspector: inspector settings/properties/states management
3060 should be extracted into separate class.
3062 We have a lot of flags/values in InspectorController.
3063 Some flags are persisting into profile.
3064 Others are part of inspector state for frontend.
3065 All these flags should keep their values after navigation.
3066 It'd be better to extract these flags/values into separate
3067 class which will care about theirs lifetime.
3069 https://bugs.webkit.org/show_bug.cgi?id=47275
3071 * WebCoreSupport/WebInspectorClient.mm:
3072 (-[WebInspectorWindowController showWindow:]):
3073 (-[WebInspectorWindowController attach]):
3074 (-[WebInspectorWindowController detach]):
3076 2010-10-13 Gavin Barraclough <barraclough@apple.com>
3078 Reviewed by Oliver Hunt.
3080 https://bugs.webkit.org/show_bug.cgi?id=43987
3081 Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
3082 to construct their internal result string. Remove ScriptString (this is now
3085 * WebCoreSupport/WebFrameLoaderClient.mm:
3087 2010-10-12 Andy Estes <aestes@apple.com>
3089 Rubber-stamped by Darin Adler.
3091 Check in some cleanup from the previous commit.
3093 * WebView/WebView.mm:
3094 (leakMailQuirksUserScriptPath): Renamed to indicate that this function
3096 (-[WebView _injectMailQuirksScript]): Moved a static initialization from
3097 a separate class method into the only method that used it and removed
3098 the now-unnecessary class method.
3100 2010-10-12 Eric Seidel <eric@webkit.org>
3102 Reviewed by Darin Adler.
3104 REGRESSION (new parser): Leopard/Tiger Mail <head>/<body> quirk is gone
3105 https://bugs.webkit.org/show_bug.cgi?id=45693
3107 Re-implement this former WebCore parser quirk as a
3108 Mac-only userscript-based quirk. As far as I can tell
3109 from Darin's description this should satisfy Mail's needs.
3111 * Misc/MailQuirksUserScript.js: Added.
3112 * WebView/WebView.mm:
3113 (+[WebView _mailQuirksUserScript]):
3114 (-[WebView _injectMailQuirksScript]):
3115 (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3117 2010-10-12 Simon Fraser <simon.fraser@apple.com>
3119 Reviewed by Sam Weinig.
3121 Add 'didDraw' callback for framerate tracking
3122 https://bugs.webkit.org/show_bug.cgi?id=47478
3124 Add a callback at the end of -[WebHTMLView drawRect:] so
3125 a delegate can get notified when a draw happens.
3127 * WebView/WebHTMLView.mm:
3128 (-[WebHTMLView drawRect:]):
3129 * WebView/WebUIDelegatePrivate.h:
3131 2010-10-11 Anders Carlsson <andersca@apple.com>
3133 Reviewed by Darin Adler.
3135 Remove WebIconFetcher from WebKit and IconFetcher from WebCore
3136 https://bugs.webkit.org/show_bug.cgi?id=47523
3138 Remove all traces of the WebKit WebIconFetcher class. It's SPI that nobody uses.
3140 * Misc/WebIconFetcher.h: Removed.
3141 * Misc/WebIconFetcher.mm: Removed.
3142 * Misc/WebIconFetcherInternal.h: Removed.
3143 * WebView/WebFrame.mm:
3144 * WebView/WebFramePrivate.h:
3146 2010-10-11 Jessie Berlin <jberlin@apple.com>
3148 Reviewed by Darin Adler.
3150 Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal
3151 representation of a WebKit1 WebSerializedJSValue.
3152 https://bugs.webkit.org/show_bug.cgi?id=47439
3154 * WebView/WebSerializedJSValue.mm:
3155 (-[WebSerializedJSValue internalRepresentation]):
3156 * WebView/WebSerializedJSValuePrivate.h:
3158 2010-10-07 Jessie Berlin <jberlin@apple.com>
3160 Reviewed by Sam Weinig.
3162 Add Private API for creating a WebKit1 WebSerializedJSValue from the internal
3163 representation of a WebKit2 WebSerializedScriptValue.
3164 https://bugs.webkit.org/show_bug.cgi?id=47390
3166 * WebView/WebSerializedJSValue.mm:
3167 (-[WebSerializedJSValue initWithInternalRepresentation:]):
3168 Set the WebSerializedJSValuePrivate's WebCore::SerializedScriptValue to be the passed in
3169 internal representation.
3170 * WebView/WebSerializedJSValuePrivate.h: Added.
3172 2010-10-07 Antonio Gomes <agomes@rim.com>
3174 Reviewed by Simon Fraser.
3176 [Mac] [DRT] implement setSpatialNavigationEnabled
3177 https://bugs.webkit.org/show_bug.cgi?id=47291
3179 Added the needed bits to make it possible to enabled spatial navigation
3180 for the Mac port. For now it is being only used by DRT.
3182 * WebView/WebPreferenceKeysPrivate.h:
3183 * WebView/WebPreferences.mm:
3184 (+[WebPreferences initialize]):
3185 (-[WebPreferences isSpatialNavigationEnabled]):
3186 (-[WebPreferences setSpatialNavigationEnabled:]):
3187 * WebView/WebPreferencesPrivate.h:
3188 * WebView/WebView.mm:
3189 (-[WebView _preferencesChangedNotification:]):
3191 2010-10-07 Jer Noble <jer.noble@apple.com>
3193 Fix the Leopard 64-bit build.
3195 * Configurations/WebKit.xcconfig: Add CoreServices.framework/Frameworks to the
3196 framework search path.
3197 * WebView/WebVideoFullscreenController.mm: Explicitly import <OSStatus/Power.h>.
3199 2010-10-06 Jer Noble <jer.noble@apple.com>
3201 Reviewed by Darin Adler.
3203 Screensaver starts while watching fullscreen playback.
3204 https://bugs.webkit.org/show_bug.cgi?id=47299
3205 <rdar://problem/8478956>
3207 To disable the Screen Saver, we need to periodically call UpdateSystemActivity().
3209 * WebView/WebVideoFullscreenController.h: Added _tickleTimer.
3210 * WebView/WebVideoFullscreenController.mm:
3211 (-[WebVideoFullscreenController dealloc]): Invalidate _tickleTimer.
3212 (-[WebVideoFullscreenController _enableTickleTimer]): Create _tickleTimer.
3213 (-[WebVideoFullscreenController _disableTickleTimer]): Invalidate _tickleTimer.
3214 (-[WebVideoFullscreenController _tickleTimerFired]): Call UpdateSystemActivity().
3215 (-[WebVideoFullscreenController updatePowerAssertions]): Call _enableTickleTimer
3216 or _disableTickleTimer.
3218 2010-10-05 Philippe Normand <pnormand@igalia.com>
3220 Reviewed by Martin Robinson.
3222 check for ENABLE(GLIB_SUPPORT) in WebView
3223 https://bugs.webkit.org/show_bug.cgi?id=46788
3225 Use ENABLE(GLIB_SUPPORT) in WebView to guard the glib runloop observer.
3227 * WebView/WebView.mm:
3228 (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3229 (-[WebView _close]):
3230 * WebView/WebViewData.h:
3231 * WebView/WebViewInternal.h:
3233 2010-10-01 Anders Carlsson <andersca@apple.com>
3235 Fix Snow Leopard build.
3237 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3238 (WebKit::NetscapePluginInstanceProxy::getProxy):
3240 2010-10-01 Anders Carlsson <andersca@apple.com>
3242 Reviewed by Dan Bernstein.
3244 Add proxy server query function proxyServersForURL and change the Mac plug-in code to use it
3245 https://bugs.webkit.org/show_bug.cgi?id=47022
3246 <rdar://problem/8504712>
3248 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3249 (WebKit::NetscapePluginInstanceProxy::getProxy):
3250 * Plugins/WebBaseNetscapePluginView.h:
3251 * Plugins/WebBaseNetscapePluginView.mm:
3252 * Plugins/WebNetscapePluginView.mm:
3253 (-[WebNetscapePluginView getVariable:forURL:value:length:]):
3255 2010-09-30 Darin Adler <darin@apple.com>
3257 Reviewed by Sam Weinig.
3259 Remove remaining calls to deprecatedParseURL
3260 https://bugs.webkit.org/show_bug.cgi?id=26599
3262 * DOM/WebDOMOperations.mm:
3263 (-[DOMDocument URLWithAttributeString:]):
3264 * WebCoreSupport/WebFrameLoaderClient.mm:
3265 (WebFrameLoaderClient::createPlugin):
3266 Call stripLeadingAndTrailingHTMLSpaces instead of deprecatedParseURL.
3268 2010-09-30 Anders Carlsson <andersca@apple.com>
3270 Reviewed by Darin Adler.
3272 -[DOMDocument _documentRange] throws an exception if there is no document element
3273 https://bugs.webkit.org/show_bug.cgi?id=46934
3274 <rdar://problem/8169260>
3276 If there is no document element, just return an empty range. Otherwise we'll try to call
3277 Range::selectNode with a null Node which will throw a NOT_FOUND exception.
3279 * DOM/WebDOMOperations.mm:
3280 (-[DOMDocument _documentRange]):
3282 2010-09-30 Chris Marrin <cmarrin@apple.com>
3284 Reviewed by Simon Fraser.
3286 Make 2D accelerated canvas rendering build on Mac
3287 https://bugs.webkit.org/show_bug.cgi?id=46007
3289 Added ACCELERATED_2D_CANVAS to FeatureDefines
3291 * Configurations/FeatureDefines.xcconfig:
3293 2010-09-30 Dan Bernstein <mitz@apple.com>
3295 Reviewed by John Sullivan.
3297 Add printing SPI allowing full control over shrink-to-fit
3298 https://bugs.webkit.org/show_bug.cgi?id=46877
3300 * WebView/WebHTMLView.mm:
3301 (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Added.
3302 * WebView/WebHTMLViewPrivate.h:
3304 2010-09-28 Johnny Ding <jnd@chromium.org>
3306 Reviewed by Adam Barth.
3308 https://bugs.webkit.org/show_bug.cgi?id=41292
3309 Some windowed plugins did not handle events through EventHandler, so we
3310 never set right gesture state for those events.
3311 This change is to set right allowPopupsFromPlugin flag to current
3312 execution frame, so WeKit can always get right gesture state on Mac.
3313 From Mac Snow Leopard, the plugin is run under "WebKitPluginHost,app"
3314 process, that process passes the allowPopupsFromPlugin flag to
3315 WKPCEvaluate(in NetscapePluginHostProxy.mm), then flag is set in
3316 NetscapePluginInstanceProxy::evaluate.
3318 * Plugins/WebNetscapePluginView.mm:
3319 (-[WebNetscapePluginView sendEvent:isDrawRect:]):
3321 2010-09-28 Jenn Braithwaite <jennb@chromium.org>
3323 Reviewed by Dmitry Titov.
3325 Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
3326 https://bugs.webkit.org/show_bug.cgi?id=46663
3328 * WebCoreSupport/WebFrameLoaderClient.h:
3329 * WebCoreSupport/WebFrameLoaderClient.mm:
3330 (WebFrameLoaderClient::didTransferChildFrameToNewDocument):
3332 2010-09-26 Antonio Gomes <agomes@rim.com>
3334 Reviewed by Kenneth Rohde Christiansen.
3336 DRT/Mac nodesFromRect support
3338 [Mac][DRT] Implement LayoutTestController::nodesFromRect
3339 https://bugs.webkit.org/show_bug.cgi?id=46580
3341 Implement nodesFromRect as a private method to access non-exposed Document
3342 methods, similarly to computedStyleIncludingVisitedInfo.
3344 * WebView/WebView.mm: Added JSDocument.h and JSNodeList.h to the include list.
3345 These headers makes it possible to:
3346 1) Get a Document off of a JSDocument;
3347 2) Call toJS function, defined in JSNodeList.cpp|h so we can convert RefPtr<NodeList>
3348 gotten from Document::nodesFromRect to JS bindings.
3349 (-[WebView _nodesFromRect:forDocument:x:y:hPadding:vPadding:ignoreClipping:]):
3350 * WebView/WebViewPrivate.h: Added nodesFromRect method to access methods of the
3351 Document class not exposed to JavaScript. It works similarly to computedStyleIncludingVisitedInfo.
3353 2010-09-24 Jia Pu <jpu@apple.com>
3355 Reviewed by Dan Bernstein.
3357 automaticSpellingCorrectionEnabled isn't updated.
3358 https://bugs.webkit.org/show_bug.cgi?id=46486
3359 <rdar://problem/8475212>
3361 * WebView/WebView.mm:
3362 (+[WebView initialize]): Should update "automaticSpellingCorrectionEnabled"
3363 instead of "automaticTextReplacementEnabled".
3365 2010-09-23 Alexey Proskuryakov <ap@apple.com>
3367 Reviewed by Darin Adler.
3369 https://bugs.webkit.org/show_bug.cgi?id=46380
3370 REGRESSION: Crash when downloading a file
3372 Downloading cannot be tested in DRT.
3374 * Misc/WebNSFileManagerExtras.m: (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
3375 Don't copy null strings.
3377 2010-09-24 Ilya Tikhonovsky <loislo@chromium.org>
3379 Reviewed by Yury Semikhatsky.
3381 Web Inspector: CRASH at node highlight on MAC Safari.
3382 1) run-safari --debug
3384 3) open elements panel
3385 4) hover mouse over elements panel items multiple times
3387 Looks like it is a race condition. WebNodeHighlightView doesn't check
3388 the pointer to WebNodeHighligh object and it can be nil.
3390 https://bugs.webkit.org/show_bug.cgi?id=46261
3392 * WebInspector/WebNodeHighlightView.mm:
3393 (-[WebNodeHighlightView drawRect:]):
3395 2010-09-23 Andy Estes <aestes@apple.com>
3397 Reviewed by Darin Adler.
3399 REGRESSION (r61285): some Dashboard widgets are always invisible due to
3400 HTML parser changes.
3401 https://bugs.webkit.org/show_bug.cgi?id=46435
3403 Enable pre-HTML5 parser quirks if Dashboard is in backward compatibility
3406 * WebView/WebView.mm:
3407 (-[WebView _needsPreHTML5ParserQuirks]): Renamed from
3408 shouldUsePreHTML5ParserQuirks(). Return true if
3409 WebCore::Settings::usesDashboardCompatibilityMode() is true.
3410 (-[WebView _preferencesChangedNotification:]):
3411 (-[WebView _setDashboardBehavior:to:]): Enable pre-HTML5 parser quirks
3412 if Dashboard behavior is set to backward compatibility mode.
3414 2010-09-23 Matthew Delaney <mdelaney@apple.com>
3416 Reviewed by Simon Fraser.
3418 Reduce minimum DOMTimer interval
3419 https://bugs.webkit.org/show_bug.cgi?id=45362
3421 * WebView/WebView.mm:
3422 Updating set interval call to use Settings' static version inside
3423 one time init block.
3425 2010-09-22 Andy Estes <aestes@apple.com>
3427 Reviewed by Darin Adler.
3429 REGRESSION (r61285): Microsoft Entourage 2008 does not invoke My Day window
3430 https://bugs.webkit.org/show_bug.cgi?id=46334
3432 Microsoft My Day loads scripts using self-closing script tags, markup
3433 which is incompatible with the HTML5 parser. Enable parser quirks for
3436 * WebView/WebView.mm:
3437 (shouldUsePreHTML5ParserQuirks): Return true if the application is
3438 Microsoft My Day and was linked against a version of WebKit prior to the
3439 introduction of the HTML5 parser.
3441 2010-09-23 Nate Chapin <japhet@chromium.org>
3443 Reviewed by Darin Fisher.
3445 Add hyperlink auditing settings (i.e., <a ping>).
3446 https://bugs.webkit.org/show_bug.cgi?id=30458
3448 * WebView/WebPreferenceKeysPrivate.h:
3449 * WebView/WebPreferences.mm:
3450 (+[WebPreferences initialize]):
3451 (-[WebPreferences setMemoryInfoEnabled:]):
3452 (-[WebPreferences hyperlinkAuditingEnabled]):
3453 (-[WebPreferences setHyperlinkAuditingEnabled:]):
3454 * WebView/WebPreferencesPrivate.h:
3455 * WebView/WebView.mm:
3456 (-[WebView _preferencesChangedNotification:]):
3458 2010-09-22 Alexey Proskuryakov <ap@apple.com>
3460 Reviewed by Anders Carlsson.
3462 https://bugs.webkit.org/show_bug.cgi?id=43667
3463 ASSERT failure in NetscapePluginInstanceProxy::disconnectStream
3465 Test: plugins/get-javascript-url.html
3467 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3468 (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript): Add the stream to m_streams, just
3471 2010-09-21 Darin Adler <darin@apple.com>
3473 Reviewed by Anders Carlsson.
3475 Fix some Objective-C GC problems and use RetainPtr instead of HardRetain/Release
3476 https://bugs.webkit.org/show_bug.cgi?id=46220
3478 * Misc/WebNSFileManagerExtras.m:
3479 (setMetaData): Use CFRelease instead of HardRelease.
3480 (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Use CFStringCreateCopy
3481 instead of -[NSObject copy] combined with HardRetainWithNSRelease.
3483 2010-09-22 Balazs Kelemen <kb@inf.u-szeged.hu>
3485 Reviewed by Kenneth Rohde Christiansen.
3487 PluginStrategy should satisfy the needs of Qt
3488 https://bugs.webkit.org/show_bug.cgi?id=45857
3489 No new functionality so no new tests.
3491 * WebCoreSupport/WebPlatformStrategies.h:
3492 * WebCoreSupport/WebPlatformStrategies.mm:
3493 (WebPlatformStrategies::getPluginInfo):
3495 2010-09-22 Paul Knight <pknight@apple.com>
3497 Reviewed by Simon Fraser.
3499 -[WebView _scheduleCompositingLayerSync] should wake the run loop
3500 https://bugs.webkit.org/show_bug.cgi?id=46226
3502 Call CFRunLoopWakeUp to make sure the run loop is not sleeping, which could delay layer painting.
3504 * WebView/WebView.mm:
3505 (-[WebView _scheduleCompositingLayerSync]):
3507 2010-09-21 Andy Estes <aestes@apple.com>
3509 Reviewed by Darin Adler.
3511 REGRESSION (r61285): AIM 2.1.296: Code rendered as text in Welcome screen
3512 https://bugs.webkit.org/show_bug.cgi?id=46134
3514 AIM clients linked against versions of WebKit prior to the introduction
3515 of the HTML5 parser contain markup incompatible with the new parser.
3516 Enable parser quirks in this case to remain compatible with these
3519 * WebView/WebView.mm:
3520 (shouldUsePreHTML5ParserQuirks): Returns true if the embedding
3521 application is AIM and was linked against a version of WebKit prior to
3522 the introduction of the HTML5 parser, or if the
3523 WebKitPreHTML5ParserQuirks WebPreference is enabled.
3524 (-[WebView _preferencesChangedNotification:]): Call
3525 WebCore::Settings::setUsePreHTML5ParserQuirks().
3527 2010-09-21 Steve Block <steveblock@google.com>
3529 Reviewed by Jeremy Orlow.
3531 DeviceOrientationClient and DeviceMotionClient should have controllerDestroyed() methods
3532 https://bugs.webkit.org/show_bug.cgi?id=45891
3534 Implements WebDeviceOrientationClient::deviceOrientationControllerDestroyed to delete the client.
3536 * WebCoreSupport/WebDeviceOrientationClient.h:
3537 * WebCoreSupport/WebDeviceOrientationClient.mm:
3538 (WebDeviceOrientationClient::deviceOrientationControllerDestroyed):
3540 2010-09-20 Philippe Normand <pnormand@igalia.com>
3542 Reviewed by Eric Carlson.
3544 [GTK] enhanced context menu for media elements
3545 https://bugs.webkit.org/show_bug.cgi?id=45021
3547 New localized strings for the media element context-menu.
3549 * WebCoreSupport/WebPlatformStrategies.h:
3550 * WebCoreSupport/WebPlatformStrategies.mm:
3551 (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
3552 (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
3553 (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
3554 (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
3555 (WebPlatformStrategies::contextMenuItemTagToggleMediaControls):
3556 (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop):
3557 (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen):
3558 (WebPlatformStrategies::contextMenuItemTagMediaPlay):
3559 (WebPlatformStrategies::contextMenuItemTagMediaPause):
3560 (WebPlatformStrategies::contextMenuItemTagMediaMute):
3562 2010-09-20 Andy Estes <aestes@apple.com>
3564 Reviewed by Adam Barth.
3566 REGRESSION (HTML5 Parser): Pages broken due to <tag<tag> parsing changes
3567 https://bugs.webkit.org/show_bug.cgi?id=40961
3569 Implement WebKitUsePreHTML5ParserQuirks preference.
3571 * WebView/WebPreferenceKeysPrivate.h:
3572 * WebView/WebPreferences.mm:
3573 (+[WebPreferences initialize]): Default WebKitUsePreHTML5ParserQuirks to
3575 (-[WebPreferences usePreHTML5ParserQuirks]):
3576 (-[WebPreferences setUsePreHTML5ParserQuirks:]):
3577 * WebView/WebPreferencesPrivate.h:
3578 * WebView/WebView.mm:
3579 (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings
3580 with the value of WebKitUsePreHTML5ParserQuirks when a preference
3583 2010-09-20 Enrica Casucci <enrica@apple.com>
3585 Reviewed by Sam Weinig.
3587 Pasteboard doesn't work in WebKit2.
3588 https://bugs.webkit.org/show_bug.cgi?id=42317
3589 <rdar://problem/7660537>
3591 Some changes to fix style inconsistencies.
3592 Added OBJC 2.0 style enumeration.
3594 * WebCoreSupport/WebEditorClient.h:
3595 * WebCoreSupport/WebEditorClient.mm:
3596 (WebEditorClient::userVisibleString):
3597 (createExcludedElementsForAttributedStringConversion):
3598 (WebEditorClient::documentFragmentFromAttributedString): Changed parameter to be
3600 (WebEditorClient::setInsertionPasteboard):
3601 (WebEditorClient::pasteboardTypesForSelection):
3603 2010-09-17 David Hyatt <hyatt@apple.com>
3605 Reviewed by Simon Fraser.
3607 https://bugs.webkit.org/show_bug.cgi?id=45993, convert printing to the new pagination model.
3609 Make printing store the page height in the RenderView and push that into the layout state to
3610 use the new pagination model. The old pagination model is retained because it is still used
3611 for embedded WebViews.
3613 * WebView/WebHTMLView.mm:
3614 (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
3616 2010-09-17 Darin Adler <darin@apple.com>
3618 Reviewed by Sam Weinig.
3620 REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
3621 https://bugs.webkit.org/show_bug.cgi?id=42863
3623 * WebView/WebView.mm:
3624 (-[WebView _setZoomMultiplier:isTextOnly:]):
3625 Call functions on Frame instead of FrameView.
3627 2010-09-17 Matthew Delaney <mdelaney@apple.com>
3629 Reviewed by Simon Fraser.
3631 Reduce minimum DOMTimer interval
3632 https://bugs.webkit.org/show_bug.cgi?id=45362
3634 * WebView/WebView.mm: Added in a call to set the mimimum allowed DOMTimer to 4ms.
3636 2010-09-17 Chris Marrin <cmarrin@apple.com>
3638 Reviewed by Simon Fraser.
3640 Add WebKitAccelerated2dCanvasEnabled flag to WebKit for Mac
3641 https://bugs.webkit.org/show_bug.cgi?id=45911
3643 * WebView/WebPreferenceKeysPrivate.h:
3644 * WebView/WebPreferences.mm:
3645 (+[WebPreferences initialize]):
3646 (-[WebPreferences accelerated2dCanvasEnabled]):
3647 (-[WebPreferences setAccelerated2dCanvasEnabled:]):
3648 * WebView/WebPreferencesPrivate.h:
3649 * WebView/WebView.mm:
3650 (-[WebView _preferencesChangedNotification:]):
3652 2010-09-17 Jia Pu <jpu@apple.com>
3654 Reviewed by Dan Bernstein.
3656 WebKit should use system wide spell checking preference when application specific one isn't set.
3657 https://bugs.webkit.org/show_bug.cgi?id=45789
3658 <rdar://problem/8416041>
3660 * WebView/WebView.mm:
3661 (+[WebView initialize]): Use system wide autocorrection and text substitution preferences
3662 when the application level preferences are not set.
3664 2010-09-16 John Sullivan <sullivan@apple.com>
3666 Reviewed by Darin Adler.
3668 <rdar://problem/8395558>
3669 https://bugs.webkit.org/show_bug.cgi?id=45938
3670 _web_makePluginViewsPerformSelector:: mutates subviews array while iterating it
3672 * WebView/WebHTMLView.mm:
3673 (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]):
3674 Converted from -[NSArray _web_makePluginViewsPerformSelector:withObject:]. The old method
3675 was only ever called on the result of -[WebHTMLView subviews]. By moving that knowledge into
3676 this helper method, it can't be used incorrectly. Now it makes a copy of [WebHTMLView subviews]
3677 before enumerating it, to ensure that the selector can't mutate the array being enumerated.
3678 (-[WebHTMLView viewWillMoveToHostWindow:]):
3679 Updated for _web_makePluginSubviewsPerformSelector:: signature change.
3680 (-[WebHTMLView viewDidMoveToHostWindow]):
3683 2010-09-16 Darin Adler <darin@apple.com>
3685 Reviewed by Andreas Kling.
3687 Reduce use of HTMLInputElement::inputType so we can remove it later
3688 https://bugs.webkit.org/show_bug.cgi?id=45903
3690 * WebView/WebHTMLRepresentation.mm:
3691 (-[WebHTMLRepresentation elementDoesAutoComplete:]): Use isPasswordField.
3692 (-[WebHTMLRepresentation elementIsPassword:]): Use isPasswordField.
3694 2010-09-16 Patrick Gansterer <paroga@paroga.com>
3696 Reviewed by Darin Adler.
3698 Always use a valid string when setting WebKitUserStyleSheetLocationPreferenceKey.
3699 https://bugs.webkit.org/show_bug.cgi?id=41510
3701 This prevents usage of nil value, which would cause an uncaught exception.
3703 * WebView/WebPreferences.mm:
3704 (-[WebPreferences setUserStyleSheetLocation:]):
3706 2010-09-16 Dan Bernstein <mitz@apple.com>
3708 Reverted the previous change because r67628 has been reverted.
3710 * WebCoreSupport/WebPlatformStrategies.h:
3711 * WebCoreSupport/WebPlatformStrategies.mm:
3713 2010-09-16 Dan Bernstein <mitz@apple.com>
3715 Build fix after r67628. Added context menu item localizable strings for the items
3716 added in r67628, following equivalent menu items in Mac OS X when possible. However,
3717 this set of menu items does not make much sense for Mac OS X, and this should be
3718 addressed separately.
3720 * WebCoreSupport/WebPlatformStrategies.h:
3721 * WebCoreSupport/WebPlatformStrategies.mm:
3722 (WebPlatformStrategies::contextMenuItemTagOpenMediaInNewWindow):
3723 (WebPlatformStrategies::contextMenuItemTagCopyMediaLinkToClipboard):
3724 (WebPlatformStrategies::contextMenuItemTagToggleMediaControls):
3725 (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop):
3726 (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen):
3727 (WebPlatformStrategies::contextMenuItemTagMediaPlay):
3728 (WebPlatformStrategies::contextMenuItemTagMediaPause):
3729 (WebPlatformStrategies::contextMenuItemTagMediaMute):
3730 (WebPlatformStrategies::contextMenuItemTagMediaUnMute):
3732 2010-09-16 Eric Uhrhane <ericu@chromium.org>
3734 Reviewed by Jian Li.
3736 Unify FILE_SYSTEM and FILE_WRITER enables under the name FILE_SYSTEM.
3737 https://bugs.webkit.org/show_bug.cgi?id=45798
3739 * Configurations/FeatureDefines.xcconfig:
3741 2010-09-15 Simon Fraser <simon.fraser@apple.com>
3743 Reviewed by Adam Roben.
3745 https://bugs.webkit.org/show_bug.cgi?id=44715
3746 maps.google.com flips upside down when zooming map using trackpad in WebKit2 on Mac
3748 Move geometry flipping to platform-specific code.
3750 * WebView/WebHTMLView.mm:
3751 (-[WebHTMLView attachRootLayer:]):
3753 2010-09-14 Jia Pu <jpu@apple.com>
3755 Reviewed by Dan Bernstein.
3757 Only intercept ESC key press when autocorrection UI is visible.
3758 https://bugs.webkit.org/show_bug.cgi?id=45071
3760 * WebCoreSupport/WebEditorClient.h: Added declaration of isShowingCorrectionPanel(),
3761 which provides an inteface to query whether autocorrection panel is shown.
3763 * WebCoreSupport/WebEditorClient.mm:
3764 (WebEditorClient::WebEditorClient): Defined a constant, InvalidCorrectionPanelTag,
3765 for invalid correction panel tag. Replaced -1 with this constant.
3766 (WebEditorClient::dismissCorrectionPanel): Ditto
3767 (WebEditorClient::isShowingCorrectionPanel): Query whether autocorrection panel is shown.
3769 2010-09-14 Mark Rowe <mrowe@apple.com>
3771 Reviewed by John Sullivan.
3773 Part of <rdar://problem/8420003>. Make it possible to override the version number used in linked-in-or-after checks.
3775 * Misc/WebKitVersionChecks.h: Remove two unused functions from the header and add a method to set the overriden version.
3776 * Misc/WebKitVersionChecks.m:
3777 (WebKitLinkedOnOrAfter):
3778 (setWebKitLinkTimeVersion): Set the overridden version.
3779 (WebKitLinkTimeVersion): Return the overridden version if set, otherwise do the old thing.
3780 * WebView/WebPreferences.mm:
3781 (+[WebPreferences setWebKitLinkTimeVersion:]): Call through to set the overridden version.
3782 * WebView/WebPreferencesPrivate.h:
3784 2010-09-14 Eric Seidel <eric@webkit.org>
3786 Unreviewed, reverting changes r67451 and r67451.
3787 Broke lots of builders.
3789 Only intercept ESC key press when autocorrection UI is visible.
3790 https://bugs.webkit.org/show_bug.cgi?id=45071
3792 * WebCoreSupport/WebEditorClient.h:
3793 * WebCoreSupport/WebEditorClient.mm:
3794 (WebEditorClient::WebEditorClient):
3795 (WebEditorClient::dismissCorrectionPanel):
3797 2010-09-14 Jia Pu <jpu@apple.com>
3799 Reviewed by Dan Bernstein.
3801 Only intercept ESC key press when autocorrection UI is visible.
3802 https://bugs.webkit.org/show_bug.cgi?id=45071
3804 * WebCoreSupport/WebEditorClient.h: Added declaration of isShowingCorrectionPanel(),
3805 which provides an inteface to query whether autocorrection panel is shown.
3807 * WebCoreSupport/WebEditorClient.mm:
3808 (WebEditorClient::WebEditorClient): Defined a constant, InvalidCorrectionPanelTag,
3809 for invalid correction panel tag. Replaced -1 with this constant.
3810 (WebEditorClient::dismissCorrectionPanel): Ditto
3811 (WebEditorClient::isShowingCorrectionPanel): Query whether autocorrection panel is shown.
3813 2010-09-13 Darin Adler <darin@apple.com>
3815 Reviewed by Adam Barth.
3817 Preparation for eliminating deprecatedParseURL
3818 https://bugs.webkit.org/show_bug.cgi?id=45695
3820 * DOM/WebDOMOperations.mm:
3821 (-[DOMDocument webFrame]): Get rid of unneeded local variable.
3822 (-[DOMDocument URLWithAttributeString:]): Remove unhelpful comment.
3824 2010-09-13 Enrica Casucci <enrica@apple.com>
3826 Reviewed by Sam Weinig.
3828 Paste should be implemented in WebCore like Copy and Cut for Mac also.
3829 https://bugs.webkit.org/show_bug.cgi?id=45494
3830 <rdar://problem/7660537>
3832 On the Mac platform, the implementation of the paste operation is all done
3833 at the WebKit level. In order to support it on WebKit2 it is necessary to
3834 refactor the code and move this functionality at the level of WebCore like
3835 we already have on Windows.
3836 The original code relies on some in AppKit functions that call back into
3837 WebKit causing problems in WebKit2. All this functionality has been moved
3838 at the level of the editor client where it can be dealt with appropriately.
3840 * WebCoreSupport/WebEditorClient.h:
3841 * WebCoreSupport/WebEditorClient.mm:
3842 (excludedElementsForAttributedStringConversion):
3843 (WebEditorClient::documentFragmentFromAttributedString): Added.
3844 (WebEditorClient::setInsertionPasteboard):
3845 * WebCoreSupport/WebFrameLoaderClient.h:
3846 * WebCoreSupport/WebFrameLoaderClient.mm:
3847 (WebFrameLoaderClient::canShowMIMETypeAsHTML): Re-implemented at the level
3848 of the editor client.
3849 * WebView/WebHTMLView.mm: Removed paste method.
3851 2010-09-13 John Sullivan <sullivan@apple.com>
3853 Reviewed by Adam Roben.
3855 https://bugs.webkit.org/show_bug.cgi?id=45677
3856 [WebView canMarkAllTextMatches] can crash if called after [WebView close]
3858 <rdar://problem/8404890>
3860 * WebView/WebView.mm:
3861 (-[WebView canMarkAllTextMatches]):
3862 Return NO immediately if the webview has already been closed. This was an overlooked
3863 case from the fix for 45175.
3865 2010-09-10 MORITA Hajime <morrita@google.com>
3867 Reviewed by Tony Chang.
3869 [Chromium] Implement textInputController.hasSpellingMarker() for Chromium
3870 https://bugs.webkit.org/show_bug.cgi?id=45441
3872 Moved the actual logic of hasSpellingMarker into WebCore to share
3873 it with other ports.
3875 * WebView/WebFrame.mm:
3876 (-[WebFrame hasSpellingMarker:length:]):
3878 2010-09-11 Adam Barth <abarth@webkit.org>
3880 Reviewed by Sam Weinig.
3882 Make SecurityOrigin::canDisplay an instance function
3883 https://bugs.webkit.org/show_bug.cgi?id=45219
3885 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3886 (WebKit::NetscapePluginInstanceProxy::loadRequest):
3887 * Plugins/WebNetscapePluginStream.mm:
3888 (WebNetscapePluginStream::WebNetscapePluginStream):
3889 * Plugins/WebNetscapePluginView.mm:
3890 (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
3891 * Plugins/WebPluginContainerCheck.mm:
3892 (-[WebPluginContainerCheck _isForbiddenFileLoad]):
3893 * WebView/WebFrame.mm:
3894 (-[WebFrame _allowsFollowingLink:]):
3896 2010-09-10 Sam Weinig <sam@webkit.org>
3898 Reviewed by Darin Adler.
3900 Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom.
3901 Precursor to <rdar://problem/7660657>
3902 https://bugs.webkit.org/show_bug.cgi?id=45522
3904 * WebView/WebView.mm:
3905 (-[WebView _preferencesChangedNotification:]):
3906 (-[WebView _setZoomMultiplier:isTextOnly:]):
3907 (-[WebView _realZoomMultiplierIsTextOnly]):
3908 * WebView/WebViewData.h:
3909 * WebView/WebViewData.mm:
3910 (-[WebViewPrivate init]):
3911 Move tracking of text only zoom here from WebCore.
3913 2010-09-10 Stephanie Lewis <slewis@apple.com>
3915 Reviewed by Alexey Proskuryakov.
3917 Refactor JavaScriptCore memory statistics so that WebKit doesn't need to know about the JIT and
3918 other implementation details of JavaScriptCore. Necessary to fix PPC build.
3920 https://bugs.webkit.org/show_bug.cgi?id=45528
3922 * Misc/WebCoreStatistics.mm:
3923 (+[WebCoreStatistics memoryStatistics]):
3925 2010-09-10 Darin Adler <darin@apple.com>
3927 Reviewed by Sam Weinig.
3929 Move some Dashboard stuff from WebCore to WebKit along with a bit more FrameMac cleanup
3930 https://bugs.webkit.org/show_bug.cgi?id=45582
3932 * MigrateHeaders.make: Removed WebDashboardRegion.h from the set of header to copy.
3934 * WebCoreSupport/WebChromeClient.mm:
3935 (WebChromeClient::dashboardRegionsChanged): Changed this to call
3936 -[WebView _dashboardRegions] so we don't have two copies of that code.
3938 * WebView/WebDashboardRegion.h: Copied from WebCore/page/mac/WebDashboardRegion.h.
3939 * WebView/WebDashboardRegion.mm: Copied from WebCore/page/mac/WebDashboardRegion.m.
3941 * WebView/WebView.mm:
3942 (-[WebView _dashboardRegions]): Moved the code from Frame::dashboardRegions here.
3944 2010-09-10 Adam Barth <abarth@webkit.org>
3946 Reviewed by Darin Fisher.
3948 Move code from WebKit-layer to DocumentLoader
3949 https://bugs.webkit.org/show_bug.cgi?id=45569
3951 This code is the most confused, but now should be a bit cleaner.
3952 There's still a magical fake-setting for creating renderers that needs
3953 to be cleaned up, but we can do that in a separate patch.
3955 * WebView/WebFrame.mm:
3956 (-[WebFrame _commitData:]):
3957 * WebView/WebFrameInternal.h:
3958 * WebView/WebHTMLRepresentation.mm:
3959 (-[WebHTMLRepresentation receivedData:withDataSource:]):
3960 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
3962 2010-09-09 Darin Adler <darin@apple.com>
3964 Reviewed by Adam Barth.
3966 Move functions from Frame to SelectionController as planned
3967 https://bugs.webkit.org/show_bug.cgi?id=45508
3969 * WebView/WebFrame.mm:
3970 (-[WebFrame _selectionGranularity]):
3971 (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
3972 (-[WebFrame _typingStyle]):
3973 (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
3974 * WebView/WebHTMLRepresentation.mm:
3975 (-[WebHTMLRepresentation currentForm]):
3976 * WebView/WebHTMLView.mm:
3977 (-[WebHTMLView jumpToSelection:]):
3978 (-[WebHTMLView centerSelectionInVisibleArea:]):
3979 (-[WebHTMLView _canSmartCopyOrDelete]):
3980 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
3981 (-[WebHTMLView selectionRect]):
3982 (-[WebHTMLView selectionTextRects]):
3983 (-[WebHTMLView selectionImageRect]):
3984 * WebView/WebView.mm:
3985 (-[WebView setEditable:]):
3986 Call functions on selection().
3988 2010-09-10 Adam Barth <abarth@webkit.org>
3990 Reviewed by Eric Seidel.
3992 Main resource bytes shouldn't bounce through FrameLoader
3993 https://bugs.webkit.org/show_bug.cgi?id=45496
3995 Now return the bytes to the DocumentLoader.
3997 Previously, we were checking the document for null. However, Frame can
3998 never have a null document, so this check is no longer needed.
4000 * WebView/WebFrame.mm:
4001 (-[WebFrame _addData:]):
4003 2010-09-09 John Therrell <jtherrell@apple.com>
4005 Reviewed by Alexey Proskuryakov.
4007 Added statistics sampling and reporting for JavaScriptCore's RegisterFile and ExecutableAllocator classes
4008 https://bugs.webkit.org/show_bug.cgi?id=45134
4010 Added ability to enable new JavaScriptCore statistics sampling and reporting for RegisterFile
4011 and ExecutableAllocator classes. Added reporting of JavaScriptCore's stack committed memory
4012 and JIT code committed memory statistics to WebCoreStatistics memoryStatistics.
4014 * Misc/WebCoreStatistics.mm:
4015 (+[WebCoreStatistics memoryStatistics]):
4016 Added statistics reporting for JSC RegisterFile and ExecutableAllocator.
4018 2010-09-09 Jer Noble <jer.noble@apple.com>
4020 Reviewed by Mark Rowe.
4022 Use of ENABLE macro in WebUIDelegatePrivate.h breaks use from outside WebKit
4023 <rdar://problem/8412657>
4025 * WebView/WebUIDelegatePrivate.h: Use ENABLE_FULLSCREEN_API instead of ENABLE(FULLSCREEN_API)
4027 2010-09-08 Darin Adler <darin@apple.com>
4029 Reviewed by Adam Barth.
4031 Move functions from Frame to Editor as planned
4032 https://bugs.webkit.org/show_bug.cgi?id=45218
4034 * WebView/WebFrame.mm:
4035 (-[WebFrame _selectedString]):
4036 (-[WebFrame _firstRectForDOMRange:]):
4037 (-[WebFrame _markDOMRange]):
4038 (-[WebFrame _setTypingStyle:withUndoAction:]):
4039 * WebView/WebHTMLRepresentation.mm:
4040 (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
4041 * WebView/WebHTMLView.mm:
4042 (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
4043 (-[WebHTMLView toggleBaseWritingDirection:]):
4044 (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]):
4045 (-[WebHTMLView countMatchesForText:caseSensitive:limit:markMatches:]):
4046 (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
4047 (-[WebHTMLView markedTextMatchesAreHighlighted]):
4048 * WebView/WebView.mm:
4049 (-[WebView setEditable:]):
4050 Changed call sites to use editor().
4052 2010-09-08 MORITA Hajime <morrita@google.com>
4054 Reviewed by Ojan Vafai.
4056 spellcheck does not check pasted text
4057 https://bugs.webkit.org/show_bug.cgi?id=40092
4059 Implemented async spell-check APIs on WebEditorClient.
4060 The implementations are using [NSSpellChecker requestCheckingOfString]
4061 which is available only on Mac OS 10.6 or later.
4063 Note that [NSSpellChecker requestCheckingOfString] could invoke
4064 the callback block on on of their worker thread, so we need to
4065 return the result to the main thread where WebCore is running.
4066 For that purpose, we made WebEditorSpellCheckResponder class.
4068 Test: editing/spelling/spellcheck-pasted-text-001.html
4070 * WebCoreSupport/WebEditorClient.h:
4071 * WebCoreSupport/WebEditorClient.mm:
4072 (WebEditorClient::isAsynchronousSpellCheckingEnabled): Added.
4073 (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:results:]): Added.
4074 (-[WebEditorSpellCheckResponder perform]): Added.
4075 (WebEditorClient::requestCheckingOfString): Added.
4076 * WebView/WebFramePrivate.h:
4078 2010-09-08 MORITA Hajime <morrita@google.com>
4080 Reviewed by Tony Chang.
4082 spelling underline gets lost on backspace
4083 https://bugs.webkit.org/show_bug.cgi?id=41423
4085 Switched to use a anchorNode of the selection instead of a focused
4086 node for finer control of node selection in spellingNode():
4087 With the focused node, we cannot select other nodes but the first
4088 child of that node. In some case, we need to inspect these.
4090 The API is only for LayoutTests, and the change is compatible for
4091 existing test cases.
4093 * WebView/WebFrame.mm:
4096 2010-09-08 Adam Barth <abarth@webkit.org>
4098 Rubber-stamped by Eric Seidel.
4100 Rename DocLoader to CachedResourceLoader because that's what it does.
4102 * WebView/WebFrame.mm:
4104 2010-09-07 Anders Carlsson <andersca@apple.com>
4106 Reviewed by Oliver Hunt.
4110 * Misc/WebLocalizableStrings.h:
4111 Fix a struct/tag mismatch.
4113 * WebView/WebDeviceOrientationProviderMock.mm:
4114 (-[WebDeviceOrientationProviderMock init]):
4115 Remove stray semicolon.
4117 * WebView/WebViewData.h:
4118 Remove unused class forward declaration.
4120 2010-09-07 Anders Carlsson <andersca@apple.com>
4122 Reviewed by Darin Adler.
4124 <rdar://problem/8381749> -Wcast-align warning emitted when building with clang
4126 Remove the -Wcast-align-warning since it isn't really useful, and clang is more aggressive about warning than gcc.
4128 * Configurations/Base.xcconfig:
4130 2010-09-06 Adam Barth <abarth@webkit.org>
4132 Reviewed by Darin Adler.
4134 Rename SecurityOrigin::canLoad to canDisplay
4135 https://bugs.webkit.org/show_bug.cgi?id=45214
4137 Propagate name change.
4139 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
4140 (WebKit::NetscapePluginInstanceProxy::loadRequest):
4141 * Plugins/WebNetscapePluginStream.mm:
4142 (WebNetscapePluginStream::WebNetscapePluginStream):
4143 * Plugins/WebNetscapePluginView.mm:
4144 (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
4145 * Plugins/WebPluginContainerCheck.mm:
4146 (-[WebPluginContainerCheck _isForbiddenFileLoad]):
4147 * WebView/WebFrame.mm:
4148 (-[WebFrame _allowsFollowingLink:]):
4150 2010-09-03 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
4152 Reviewed by Darin Adler.
4154 Add NetworkingContext to avoid layer violations
4155 https://bugs.webkit.org/show_bug.cgi?id=42292
4157 Add Mac's specific implementation of FrameNetworkingContext.
4159 * WebCoreSupport/WebFrameLoaderClient.h:
4160 * WebCoreSupport/WebFrameLoaderClient.mm:
4161 * WebCoreSupport/WebFrameNetworkingContext.mm:
4162 (WebFrameNetworkingContext::needsSiteSpecificQuirks):
4163 (WebFrameNetworkingContext::localFileContentSniffingEnabled):
4164 (WebFrameNetworkingContext::scheduledRunLoopPairs):
4165 (WebFrameNetworkingContext::blockedError):