Reviewed by Hyatt.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-30  Timothy Hatcher  <timothy@apple.com>
2
3         Reviewed by Hyatt.
4
5         <rdar://problem/4478625> Basic table editing and culling
6
7         Refined the criteria for deletable elements, rely on the renderer more.
8         Corrected the interface positioning for elements that have borders.
9
10         * editing/DeleteButtonController.cpp:
11         (WebCore::isDeletableElement):
12         (WebCore::DeleteButtonController::show):
13
14 2006-10-30  Darin Adler  <darin@apple.com>
15
16         - fix build
17
18         * loader/ResourceLoader.h: Added header guard.
19
20 2006-10-31  Darin Adler  <darin@apple.com>
21
22         Reviewed by Adam.
23
24         - fix FrameLoader files so they can be built on non-Mac platforms
25
26         * page/FramePrivate.h:
27         (WebCore::FramePrivate::FramePrivate): Added code to create the frame loader.
28         (WebCore::FramePrivate::~FramePrivate): Added code to delete the frame loader.
29
30         * page/Page.h:
31         * page/Page.cpp: (WebCore::Page::setDefersLoading): Removed the
32         #if PLATFORM(MAC) that Adam added as a stop-gap when I did this wrong
33         the other day.
34
35         * bridge/mac/FrameMac.mm:
36         (WebCore::FrameMac::FrameMac): Removed code to create the frame loader.
37         (WebCore::FrameMac::~FrameMac): Removed code to delete the frame loader.
38
39         * loader/FrameLoader.h: Changed import to include, added #if PLATFORM(MAC)
40         around the PolicyCheck definition.
41
42         * loader/FormState.cpp: Changed import to include.
43         * loader/FrameLoader.cpp: Ditto.
44         * loader/MainResourceLoader.h: Ditto.
45
46         * loader/FrameLoaderTypes.h: Added a header guard.
47
48         * loader/NetscapePlugInStreamLoader.h: Changed import to include.
49         Added #if PLATFORM(MAC) around Mac-specific details.
50         * loader/SubresourceLoader.h: Ditto.
51
52         * page/Frame.cpp: (WebCore::Frame::loader): Updated name of loader to
53         m_loader from m_frameLoader.
54
55         * CMakeLists.txt: Updated.
56         * WebCoreSources.bkl: Updated.
57
58 2006-10-30  Nikolas Zimmermann  <zimmermann@kde.org>
59
60         Reviewed and landed by Anders.
61
62         Patch by Zack rusin to fix: 
63         http://bugs.webkit.org/show_bug.cgi?id=11429
64
65         Fix startup crash.
66
67         * platform/qt/FrameQtClient.cpp:
68         (WebCore::FrameQtClientDefault::openURL):
69
70 2006-10-30  Zach Rusin  <zack@kde.org>
71
72         Reviewed and landed by Anders.
73
74         * platform/network/qt/ResourceHandleQt.cpp:
75         (WebCore::ResourceHandle::receivedResponse):
76         * platform/qt/FrameQtClient.cpp:
77         (WebCore::FrameQtClientDefault::FrameQtClientDefault):
78         * platform/qt/LoaderFunctionsQt.cpp:
79         (WebCore::ServeSynchronousRequest):
80         More build fixes.
81
82 2006-10-30  Simon Hausmann  <hausmann@kde.org>
83
84         Reviewed and landed by Anders.
85         
86         - fix Qt build
87         * platform/qt/FrameQtClient.cpp: ResourceLoaderClient ->
88         ResourceHandleClient
89
90 2006-10-30  Darin Adler  <darin@apple.com>
91
92         Reviewed by John Sullivan.
93
94         - work toward removing Objective-C data types from FrameLoader.h:
95           removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
96           and WebCoreResourceHandle
97         - moved bodyBackgroundColor function from Frame to WebFrame in WebKit
98
99         * page/PageState.h:
100         * page/PageState.cpp: Added, C++ class with much of what WebCorePageState had.
101
102         * bridge/mac/FrameMac.h: Removed uneeeded declarations and bodyBackgroundColor().
103         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::startRedirectionTimer): Use a
104         double for the date instead of an NSDate.
105
106         * bridge/mac/WebCoreFrameBridge.h:
107         * bridge/mac/WebCoreFrameBridge.mm: Removed invalidatePageCache and
108         saveDocumentToPageCache methods.
109
110         * bridge/mac/WebCorePageState.h:
111         * bridge/mac/WebCorePageState.mm: Removed most of the class and turned it into
112         an Objective-C wrapper for PageState.
113
114         * loader/FrameLoader.h: Removed unused Objective-C types, eliminated use of
115         NSDate and WebCorePageState.
116         * loader/FrameLoaderClient.h: Changed NSDate to double.
117         * loader/mac/FrameLoaderMac.mm:
118         (WebCore::FrameLoader::receivedMainResourceError): Moved call to setInPageCache
119         here that used to be in invalidateCurrentItemPageCache on the WebKit side.
120         (WebCore::FrameLoader::clientRedirected): Changed NSDate to double for date.
121         (WebCore::FrameLoader::open): Moved one of the open functions that was part of
122         commitProvisionalLoad inside the commitProvisionalLoad function, so that it can
123         extract the parameters from the response. Changed the open function that takes
124         a PageState to use the new C++ PageState.
125         (WebCore::FrameLoader::commitProvisionalLoad): Added the code from the open
126         function; tightened up logic, removing a few cases that could never happen, as
127         well as the unused reload boolean.
128
129         * ForwardingHeaders/kjs/property_map.h: Added.
130
131         * WebCore.exp: Updated.
132         * WebCore.xcodeproj/project.pbxproj: Updated.
133
134 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
135
136         Reviewed by Anders.
137
138         - added ResourceResponse class and didReceiveResponse delegate call
139         
140         * WebCore.xcodeproj/project.pbxproj: Added new files.
141         * bridge/mac/WebCoreFrameBridge.h: Removed no longer needed
142         expiresTimeForResponse: method.
143         * dom/XMLTokenizer.cpp:
144         (WebCore::openFunc): Updated to use ResourceResponse.
145         * loader/FrameLoader.h: Update loadResourceSynchronously to
146         use ResourceResponse.
147         * loader/LoaderFunctions.h:
148         * loader/icon/IconLoader.cpp:
149         (IconLoader::didReceiveResponse): Updated from receivedResponse
150         and made cross-platform.
151         * loader/icon/IconLoader.h: updated for above change
152         * loader/loader.cpp:
153         (WebCore::Loader::receivedResponse): reduced to just saving
154         the PlatformResponse (ideally we'd phase out use of this).
155         (WebCore::Loader::didReceivedResponse): most of the ReceivedResponse 
156         logic.
157         * loader/loader.h:
158         * loader/mac/FrameLoaderMac.mm:
159         (WebCore::FrameLoader::loadResourceSynchronously): Return results
160         as ResourceResponse.
161         * loader/mac/IconLoaderMac.mm: remove receivedResponse.
162         * loader/mac/LoaderFunctionsMac.mm:
163         (WebCore::ServeSynchronousRequest): take ResourceResponse as
164         argument.
165         * platform/network/ResourceHandle.cpp:
166         * platform/network/ResourceHandle.h: Remove calls for
167         broken out response pieces.
168         * platform/network/ResourceHandleClient.h:
169         (WebCore::ResourceHandleClient::didReceiveResponse): New
170         delegate method.
171         * platform/network/ResourceHandleInternal.h:
172         (WebCore::ResourceHandleInternal::ResourceHandleInternal): Remove
173         storage of response bits, we're not gonna return them
174         seprately any more.
175         * platform/network/ResourceResponse.h: Added.
176         (WebCore::ResourceResponse::ResourceResponse): Freshly
177         implemented. Same for below.
178         (WebCore::ResourceResponse::url):
179         (WebCore::ResourceResponse::mimeType):
180         (WebCore::ResourceResponse::expectedContentLength):
181         (WebCore::ResourceResponse::textEncodingName):
182         (WebCore::ResourceResponse::suggestedFilename):
183         (WebCore::ResourceResponse::httpStatusCode):
184         (WebCore::ResourceResponse::setHTTPStatusCode):
185         (WebCore::ResourceResponse::httpHeaderField):
186         (WebCore::ResourceResponse::httpHeaderFields):
187         (WebCore::ResourceResponse::isMultipart):
188         (WebCore::ResourceResponse::setExpirationDate):
189         (WebCore::ResourceResponse::expirationDate):
190         * platform/network/cf/ResourceHandleCFNet.cpp:
191         (WebCore::didReceiveResponse): Send didReceiveResponse
192         client method.
193         * platform/network/cf/ResourceResponseCFNet.h: Added.
194         * platform/network/cf/ResourceResponseCFNet.mm: Added.
195         (getResourceResponse): Helper function to get a ResourceResponse 
196         from CFURLResponseRef.
197         * platform/network/mac/ResourceHandleMac.mm:
198         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
199         Don't bother cleaning up fields we no longer have.
200         (WebCore::ResourceHandle::receivedResponse): Send
201         didReceiveResponse client method.
202         * platform/network/mac/ResourceResponseMac.h: Added.
203         * platform/network/mac/ResourceResponseMac.mm: Added.
204         (getResourceResponse): Helper function to get a ResourceResponse 
205         from an NSURLResponse*.
206         * rendering/HitTestResult.cpp:
207         * xml/XSLTProcessor.cpp:
208         (WebCore::docLoaderFunc): Prepare for use of ResourceResponse.
209         * xml/xmlhttprequest.cpp:
210         (WebCore::XMLHttpRequest::getResponseText): Store http response
211         info in the form of a ResourceResponse, change all methods to
212         account for this.
213         (WebCore::XMLHttpRequest::getResponseXML):
214         (WebCore::XMLHttpRequest::XMLHttpRequest):
215         (WebCore::XMLHttpRequest::open):
216         (WebCore::XMLHttpRequest::send):
217         (WebCore::XMLHttpRequest::getAllResponseHeaders):
218         (WebCore::XMLHttpRequest::getResponseHeader):
219         (WebCore::XMLHttpRequest::getStatus):
220         (WebCore::XMLHttpRequest::getStatusText):
221         (WebCore::XMLHttpRequest::processSyncLoadResults):
222         (WebCore::XMLHttpRequest::didFinishLoading):
223         (WebCore::XMLHttpRequest::didReceiveResponse):
224         (WebCore::XMLHttpRequest::didReceiveData):
225         * xml/xmlhttprequest.h:
226
227 2006-10-29  Darin Adler  <darin@apple.com>
228
229         - fix build
230
231         * loader/DocumentLoader.h: Add declarations so this compiles without ObjC.
232         * loader/NetscapePlugInStreamLoader.h: Ditto.
233         * loader/ResourceLoader.h: Ditto.
234
235 2006-10-29  Darin Adler  <darin@apple.com>
236
237         - one last name change -- WebFormState.h to FormState.h
238         - added more empty placeholder platform-independent files
239           for currently-Mac-specific loader classes
240
241         * loader/FormState.cpp: Updated include.
242         * loader/FrameLoader.cpp: Updated include.
243         * loader/mac/FrameLoaderMac.mm: Updated include.
244
245         * loader/WebFormState.h: Removed.
246         * loader/FormState.h: Added.
247
248         * loader/DocumentLoader.cpp: Added.
249         * loader/MainResourceLoader.cpp: Added.
250         * loader/NetscapePlugInStreamLoader.cpp: Added.
251         * loader/ResourceLoader.cpp: Added.
252         * loader/SubresourceLoader.cpp: Added.
253
254         * WebCore.xcodeproj/project.pbxproj: Updated for changes above.
255
256 2006-10-29  Darin Adler  <darin@apple.com>
257
258         - did the do-webcore-rename renames, including a number of changes
259           to the names of loader files (and WebResourceLoader -> ResourceLoader),
260           jScript() to scriptProxy(), jScriptEnabled() to javaScriptEnabled(),
261           and improvements to the names of decoder classes and their source
262           files (Decoder -> TextResourceDecoder, StreamingTextDecoder -> TextCodec)
263
264         * CMakeLists.txt:
265         * WebCore.exp:
266         * WebCore.vcproj/WebCore/WebCore.vcproj:
267         * WebCore.xcodeproj/project.pbxproj:
268         * WebCoreSources.bkl:
269         * bindings/js/kjs_binding.cpp:
270         (KJS::ScriptInterpreter::updateDOMNodeDocument):
271         * bindings/js/kjs_events.cpp:
272         (KJS::JSAbstractEventListener::handleEvent):
273         (KJS::JSLazyEventListener::parseCode):
274         * bindings/js/kjs_html.cpp:
275         (KJS::JSHTMLElement::implementsCall):
276         * bindings/js/kjs_traversal.cpp:
277         (KJS::JSNodeFilterCondition::acceptNode):
278         * bindings/js/kjs_window.cpp:
279         (KJS::Window::interpreter):
280         (KJS::Window::retrieveWindow):
281         (KJS::Window::retrieve):
282         (KJS::ScheduledAction::execute):
283         * bindings/objc/DOMInternal.mm:
284         (-[WebScriptObject _initializeScriptDOMNodeImp]):
285         * bridge/mac/FrameMac.mm:
286         (WebCore::FrameMac::executionContextForDOM):
287         (WebCore::FrameMac::bindingRootObject):
288         (WebCore::FrameMac::windowScriptObject):
289         (WebCore::FrameMac::windowScriptNPObject):
290         (WebCore::FrameMac::partClearedInBegin):
291         * bridge/mac/WebCoreEncodings.mm:
292         * bridge/mac/WebCoreFrameBridge.mm:
293         (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
294         (-[WebCoreFrameBridge stringWithData:]):
295         (-[WebCoreFrameBridge executionContextForView:]):
296         * bridge/win/FrameWin.cpp:
297         * dom/Document.cpp:
298         (WebCore::Document::inputEncoding):
299         (WebCore::Document::setCharset):
300         (WebCore::Document::createHTMLEventListener):
301         (WebCore::Document::setDecoder):
302         * dom/Document.h:
303         (WebCore::Document::decoder):
304         * dom/EventTargetNode.cpp:
305         (WebCore::EventTargetNode::dispatchGenericEvent):
306         * html/HTMLParser.cpp:
307         (WebCore::HTMLParser::noscriptCreateErrorCheck):
308         (WebCore::HTMLParser::canvasCreateErrorCheck):
309         (WebCore::HTMLParser::isInline):
310         * html/HTMLPlugInElement.cpp:
311         (WebCore::HTMLPlugInElement::createNPObject):
312         * html/HTMLScriptElement.cpp:
313         (WebCore::HTMLScriptElement::evaluateScript):
314         * html/HTMLTokenizer.cpp:
315         (WebCore::HTMLTokenizer::parseTag):
316         (WebCore::HTMLTokenizer::processToken):
317         * ksvg2/misc/SVGDocumentExtensions.cpp:
318         (WebCore::SVGDocumentExtensions::createSVGEventListener):
319         * loader/CachedCSSStyleSheet.cpp:
320         (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
321         (WebCore::CachedCSSStyleSheet::setEncoding):
322         * loader/CachedCSSStyleSheet.h:
323         * loader/CachedXBLDocument.cpp:
324         (WebCore::CachedXBLDocument::CachedXBLDocument):
325         (WebCore::CachedXBLDocument::setEncoding):
326         * loader/CachedXBLDocument.h:
327         * loader/CachedXSLStyleSheet.cpp:
328         (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
329         (WebCore::CachedXSLStyleSheet::setEncoding):
330         * loader/CachedXSLStyleSheet.h:
331         * loader/Decoder.cpp: Removed.
332         * loader/Decoder.h: Removed.
333         * loader/FrameLoader.cpp:
334         * loader/FrameLoader.h:
335         * loader/FrameLoaderClient.h:
336         * loader/MainResourceLoader.h: Added.
337         * loader/NetscapePlugInStreamLoader.h: Added.
338         * loader/Request.h:
339         (WebCore::Request::cachedResource):
340         * loader/ResourceLoader.h: Added.
341         * loader/SubresourceLoader.h: Added.
342         * loader/TextResourceDecoder.cpp: Added.
343         (WebCore::TextResourceDecoder::determineContentType):
344         (WebCore::TextResourceDecoder::defaultEncoding):
345         (WebCore::TextResourceDecoder::TextResourceDecoder):
346         (WebCore::TextResourceDecoder::~TextResourceDecoder):
347         (WebCore::TextResourceDecoder::setEncoding):
348         (WebCore::TextResourceDecoder::checkForBOM):
349         (WebCore::TextResourceDecoder::checkForCSSCharset):
350         (WebCore::TextResourceDecoder::checkForHeadCharset):
351         (WebCore::TextResourceDecoder::detectJapaneseEncoding):
352         (WebCore::TextResourceDecoder::decode):
353         (WebCore::TextResourceDecoder::flush):
354         * loader/TextResourceDecoder.h: Added.
355         * loader/WebDocumentLoader.h: Removed.
356         * loader/WebLoader.h: Removed.
357         * loader/WebMainResourceLoader.h: Removed.
358         * loader/WebNetscapePlugInStreamLoader.h: Removed.
359         * loader/WebSubresourceLoader.h: Removed.
360         * loader/loader.cpp:
361         (WebCore::Loader::servePendingRequests):
362         (WebCore::Loader::receivedAllData):
363         (WebCore::Loader::receivedResponse):
364         (WebCore::Loader::didReceiveData):
365         (WebCore::Loader::cancelRequests):
366         (WebCore::Loader::jobForRequest):
367         * loader/mac/DocumentLoaderMac.mm:
368         * loader/mac/FormDataStream.m: Added.
369         * loader/mac/FrameLoaderMac.mm:
370         (WebCore::FrameLoader::cancelPendingArchiveLoad):
371         (WebCore::FrameLoader::addPlugInStreamLoader):
372         (WebCore::FrameLoader::removePlugInStreamLoader):
373         (WebCore::FrameLoader::addSubresourceLoader):
374         (WebCore::FrameLoader::removeSubresourceLoader):
375         (WebCore::FrameLoader::willSendRequest):
376         (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
377         (WebCore::FrameLoader::didCancelAuthenticationChallenge):
378         (WebCore::FrameLoader::didReceiveResponse):
379         (WebCore::FrameLoader::didReceiveData):
380         (WebCore::FrameLoader::didFinishLoad):
381         (WebCore::FrameLoader::didFailToLoad):
382         (WebCore::FrameLoader::open):
383         (WebCore::FrameLoader::willUseArchive):
384         (WebCore::FrameLoader::isArchiveLoadPending):
385         * loader/mac/ImageDocumentMac.mm:
386         * loader/mac/LoaderFunctionsMac.mm:
387         (WebCore::CheckCacheObjectStatus):
388         * loader/mac/MainResourceLoaderMac.mm:
389         (WebCore::MainResourceLoader::MainResourceLoader):
390         (WebCore::MainResourceLoader::releaseDelegate):
391         (WebCore::MainResourceLoader::didCancel):
392         (WebCore::MainResourceLoader::addData):
393         (WebCore::MainResourceLoader::willSendRequest):
394         (WebCore::MainResourceLoader::continueAfterContentPolicy):
395         (WebCore::MainResourceLoader::didReceiveData):
396         (WebCore::MainResourceLoader::didFinishLoading):
397         (WebCore::MainResourceLoader::setDefersLoading):
398         * loader/mac/NetscapePlugInStreamLoaderMac.mm:
399         (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
400         (WebCore::NetscapePlugInStreamLoader::releaseResources):
401         (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
402         (WebCore::NetscapePlugInStreamLoader::didReceiveData):
403         (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
404         (WebCore::NetscapePlugInStreamLoader::didFail):
405         (WebCore::NetscapePlugInStreamLoader::didCancel):
406         * loader/mac/ResourceLoaderMac.mm:
407         (WebCore::ResourceLoader::ResourceLoader):
408         (WebCore::ResourceLoader::~ResourceLoader):
409         (WebCore::ResourceLoader::releaseResources):
410         (WebCore::ResourceLoader::load):
411         (WebCore::ResourceLoader::setDefersLoading):
412         (WebCore::ResourceLoader::frameLoader):
413         (WebCore::ResourceLoader::addData):
414         (WebCore::ResourceLoader::resourceData):
415         (WebCore::ResourceLoader::clearResourceData):
416         (WebCore::ResourceLoader::willSendRequest):
417         (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
418         (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
419         (WebCore::ResourceLoader::didReceiveResponse):
420         (WebCore::ResourceLoader::didReceiveData):
421         (WebCore::ResourceLoader::willStopBufferingData):
422         (WebCore::ResourceLoader::didFinishLoading):
423         (WebCore::ResourceLoader::didFinishLoadingOnePart):
424         (WebCore::ResourceLoader::didFail):
425         (WebCore::ResourceLoader::willCacheResponse):
426         (WebCore::ResourceLoader::didCancel):
427         (WebCore::ResourceLoader::cancel):
428         (WebCore::ResourceLoader::setIdentifier):
429         (WebCore::ResourceLoader::response):
430         (WebCore::ResourceLoader::inConnectionCallback):
431         (WebCore::ResourceLoader::cancelledError):
432         (WebCore::ResourceLoader::receivedCredential):
433         (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
434         (WebCore::ResourceLoader::receivedCancellation):
435         (WebCore::ResourceLoader::delegate):
436         (WebCore::ResourceLoader::releaseDelegate):
437         (-[WebCoreResourceLoaderAsDelegate initWithLoader:]):
438         * loader/mac/SubresourceLoaderMac.mm:
439         (WebCore::SubresourceLoader::SubresourceLoader):
440         (WebCore::SubresourceLoader::willSendRequest):
441         (WebCore::SubresourceLoader::didReceiveResponse):
442         (WebCore::SubresourceLoader::didReceiveData):
443         (WebCore::SubresourceLoader::didFinishLoading):
444         (WebCore::SubresourceLoader::didFail):
445         (WebCore::SubresourceLoader::didCancel):
446         * loader/mac/WebFormDataStream.h: Removed.
447         * loader/mac/WebFormDataStream.m: Removed.
448         * page/Frame.cpp:
449         (WebCore::Frame::javaScriptEnabled):
450         (WebCore::Frame::scriptProxy):
451         (WebCore::Frame::executeScript):
452         (WebCore::Frame::write):
453         (WebCore::Frame::userGestureHint):
454         (WebCore::Frame::saveInterpreterBuiltins):
455         (WebCore::Frame::restoreInterpreterBuiltins):
456         (WebCore::Frame::backslashAsCurrencySymbol):
457         * page/Frame.h:
458         * page/FramePrivate.h:
459         * platform/StreamingTextDecoder.cpp: Removed.
460         * platform/StreamingTextDecoder.h: Removed.
461         * platform/StreamingTextDecoderICU.cpp: Removed.
462         * platform/StreamingTextDecoderICU.h: Removed.
463         * platform/TextCodec.cpp: Added.
464         * platform/TextCodec.h: Added.
465         * platform/TextCodecICU.cpp: Added.
466         * platform/TextCodecICU.h: Added.
467         * platform/TextCodecLatin1.h:
468         * platform/TextCodecUTF16.h:
469         * platform/TextDecoder.h:
470         * platform/TextEncoding.cpp:
471         * platform/TextEncodingRegistry.cpp:
472         * platform/image-decoders/jpeg/jmorecfg.h:
473         * platform/mac/StreamingTextDecoderMac.cpp: Removed.
474         * platform/mac/StreamingTextDecoderMac.h: Removed.
475         * platform/mac/TextCodecMac.cpp: Added.
476         * platform/mac/TextCodecMac.h: Added.
477         * platform/network/ResourceHandleInternal.h:
478         * platform/network/mac/ResourceHandleMac.mm:
479         * platform/qt/FrameQt.cpp:
480         (WebCore::FrameQt::bindingRootObject):
481         * platform/qt/LoaderFunctionsQt.cpp:
482         (WebCore::CheckCacheObjectStatus):
483         * rendering/RenderObject.cpp:
484         (WebCore::RenderObject::backslashAsCurrencySymbol):
485         * xml/XSLTProcessor.cpp:
486         (WebCore::XSLTProcessor::createDocumentFromSource):
487         * xml/xmlhttprequest.cpp:
488         (WebCore::XMLHttpRequest::didReceiveData):
489         * xml/xmlhttprequest.h:
490
491 2006-10-29  Darin Adler  <darin@apple.com>
492
493         Rubber stamped by Adam (kinda).
494
495         - add Mac suffixes and correct filenames inside loader/mac
496
497         * WebCore.xcodeproj/project.pbxproj: Updated for changes below.
498
499         * loader/mac/FrameLoader.mm: Removed.
500         * loader/mac/WebDocumentLoader.mm: Removed.
501         * loader/mac/WebLoader.mm: Removed.
502         * loader/mac/WebMainResourceLoader.mm: Removed.
503         * loader/mac/WebNetscapePlugInStreamLoader.mm: Removed.
504         * loader/mac/WebSubresourceLoader.mm: Removed.
505
506         * loader/mac/FrameLoaderMac.mm: Added.
507         * loader/mac/DocumentLoaderMac.mm: Added.
508         * loader/mac/ResourceLoaderMac.mm: Added.
509         * loader/mac/MainResourceLoaderMac.mm: Added.
510         * loader/mac/WebNetscapePlugInStreamLoaderMac.mm: Added.
511         * loader/mac/SubresourceLoaderMac.mm: Removed.
512
513 2006-10-29  Darin Adler  <darin@apple.com>
514
515         Reviewed by Adam.
516
517         - moving towards use of FrameLoader cross-platform; get FrameLoader.h
518           and FrameLoader.cpp mostly ready
519
520         * WebCore.xcodeproj/project.pbxproj: Added FrameLoader.cpp and
521         FormState.cpp. Removed WebFormState.mm.
522
523         * loader/FrameLoader.h: Put in lots of #if statements to see if we can
524         get this header compiling on non-Mac.
525         * loader/FrameLoader.cpp: Added. Has non-Mac-specific bits of FrameLoader.
526         * loader/mac/FrameLoader.mm: Moved some non-Mac-specific bits out.
527
528         * loader/FrameLoaderClient.h: Added some ifdefs.
529         * loader/WebDocumentLoader.h: Ditto.
530         * loader/WebLoader.h: Ditto.
531         * loader/WebMainResourceLoader.h: Ditto.
532
533         * loader/mac/WebDocumentLoader.mm:
534         (WebCore::DocumentLoader::isLoadingInAPISense):
535         Rewrote to work without bridge, partly to remove the need for ObjC
536         bridge type in the header, and also because we're tearing down the bridge.
537
538         * loader/mac/WebMainResourceLoader.mm:
539         (WebCore::MainResourceLoader::MainResourceLoader): Removed unused
540         m_contentLength and m_bytesReceived.
541         (WebCore::MainResourceLoader::didReceiveResponse): Ditto.
542         (WebCore::MainResourceLoader::didReceiveData): Ditto.
543
544         * bridge/mac/WebCoreFrameBridge.h: Removed doneProcessingData.
545         * bridge/mac/WebCoreFrameBridge.mm: Ditto.
546
547         * loader/mac/FormState.mm: Removed.
548         * loader/FormState.cpp: Added.
549
550 2006-10-29  Darin Adler  <darin@apple.com>
551
552         Rubber stamped by Adam.
553
554         - moving towards use of FrameLoader cross-platform; move the headers
555           for the Mac loader from loader/mac into loader, in preparation for
556           making them useful on non-Mac
557
558         * WebCore.xcodeproj/project.pbxproj:
559
560         * loader/mac/FrameLoader.h: Removed.
561         * loader/mac/WebDocumentLoader.h: Removed.
562         * loader/mac/WebFormState.h: Removed.
563         * loader/mac/WebLoader.h: Removed.
564         * loader/mac/WebMainResourceLoader.h: Removed.
565         * loader/mac/WebNetscapePlugInStreamLoader.h: Removed.
566         * loader/mac/WebSubresourceLoader.h: Removed.
567
568         * loader/FrameLoader.h: Added.
569         * loader/WebDocumentLoader.h: Added.
570         * loader/WebFormState.h: Added.
571         * loader/WebLoader.h: Added.
572         * loader/WebMainResourceLoader.h: Added.
573         * loader/WebNetscapePlugInStreamLoader.h: Added.
574         * loader/WebSubresourceLoader.h: Added.
575
576 2006-10-29  Adam Roben  <aroben@apple.com>
577
578         Reviewed by Geoff.
579
580         Finish Darin's clean up of the use of __APPLE__ in WebCore, begun in
581         r17405.
582
583         * platform/DeprecatedString.h:
584
585 2006-10-29  Beth Dakin  <bdakin@apple.com>
586
587         Rubber stamped by Geoff.
588
589         This is a followup to my HitTestResult checkin. Most of the 
590         HitTestResult local variables in the code were named i or info for 
591         when the class was named NodeInfo. This patch renames all of these 
592         local variables to result.
593
594         * dom/Document.cpp:
595         (WebCore::Document::prepareMouseEvent):
596         * html/HTMLAreaElement.cpp:
597         (WebCore::HTMLAreaElement::mapMouseEvent):
598         * html/HTMLMapElement.cpp:
599         (WebCore::HTMLMapElement::mapMouseEvent):
600         * rendering/EllipsisBox.cpp:
601         (WebCore::EllipsisBox::nodeAtPoint):
602         * rendering/EllipsisBox.h:
603         * rendering/InlineBox.cpp:
604         (WebCore::InlineBox::nodeAtPoint):
605         * rendering/InlineFlowBox.cpp:
606         (WebCore::InlineFlowBox::nodeAtPoint):
607         * rendering/InlineTextBox.cpp:
608         (WebCore::InlineTextBox::nodeAtPoint):
609         * rendering/RenderBlock.cpp:
610         (WebCore::RenderBlock::isPointInScrollbar):
611         (WebCore::RenderBlock::nodeAtPoint):
612         * rendering/RenderBlock.h:
613         * rendering/RenderBox.cpp:
614         (WebCore::RenderBox::nodeAtPoint):
615         * rendering/RenderBox.h:
616         * rendering/RenderFlow.cpp:
617         (WebCore::RenderFlow::hitTestLines):
618         * rendering/RenderFlow.h:
619         * rendering/RenderForeignObject.cpp:
620         (WebCore::RenderForeignObject::nodeAtPoint):
621         * rendering/RenderFrameSet.cpp:
622         (WebCore::RenderFrameSet::nodeAtPoint):
623         * rendering/RenderImage.cpp:
624         (WebCore::RenderImage::nodeAtPoint):
625         * rendering/RenderInline.cpp:
626         (WebCore::RenderInline::nodeAtPoint):
627         * rendering/RenderInline.h:
628         * rendering/RenderLayer.cpp:
629         (WebCore::RenderLayer::autoscroll):
630         (WebCore::RenderLayer::hitTest):
631         (WebCore::RenderLayer::hitTestLayer):
632         (WebCore::RenderLayer::updateHoverActiveState):
633         * rendering/RenderListBox.cpp:
634         (WebCore::RenderListBox::isPointInScrollbar):
635         * rendering/RenderObject.cpp:
636         (WebCore::RenderObject::hitTest):
637         (WebCore::RenderObject::setInnerNode):
638         (WebCore::RenderObject::nodeAtPoint):
639         * rendering/RenderObject.h:
640         * rendering/RenderPath.cpp:
641         (WebCore::RenderPath::nodeAtPoint):
642         * rendering/RenderSVGImage.cpp:
643         (WebCore::RenderSVGImage::nodeAtPoint):
644         * rendering/RenderSVGText.cpp:
645         (WebCore::RenderSVGText::nodeAtPoint):
646         * rendering/RenderTableRow.cpp:
647         (WebCore::RenderTableRow::nodeAtPoint):
648         * rendering/RenderTableRow.h:
649         * rendering/RenderTableSection.cpp:
650         (WebCore::RenderTableSection::nodeAtPoint):
651         * rendering/RenderTableSection.h:
652         * rendering/RenderTextControl.cpp:
653         (WebCore::RenderTextControl::nodeAtPoint):
654         * rendering/RootInlineBox.cpp:
655         (WebCore::RootInlineBox::nodeAtPoint):
656         * rendering/RootInlineBox.h:
657
658 2006-10-29  Adam Roben  <aroben@apple.com>
659
660         More semi-fixes.
661
662         * page/Page.cpp: Forgot to wrap the actual definition of
663         setDefersLoading() in PLATFORM(MAC).
664         * platform/PlatformWheelEvent.h: Fix up preprocessor directives.
665
666 2006-10-29  Adam Roben  <aroben@apple.com>
667
668         Build semi-fix.
669
670         Move all FrameLoader-related code in Page.{cpp,h} within #if
671         PLATFORM(MAC), since this class currently only exists on Mac.
672
673         * page/Page.cpp:
674         * page/Page.h:
675
676 2006-10-29  Geoffrey Garen  <ggaren@apple.com>
677
678         build fix.
679         
680         * platform/PlatformString.h:
681         (WebCore::String::operator NSString*):
682
683 2006-10-29  Geoffrey Garen  <ggaren@apple.com>
684
685         Rolled out accidental commit.
686         
687         * platform/AtomicString.h:
688         (WebCore::AtomicString::AtomicString):
689         (WebCore::AtomicString::operator NSString*):
690
691 2006-10-29  Geoffrey Garen  <ggaren@apple.com>
692
693         RS by Darin.
694
695         Rolled out change to map NULL Strings to nil NSStrings because it caused
696         even more AppKit crashes. Maybe we should remove the NSString * operator
697         entirely, since its use is not straight-forward, and require callers to
698         specify explicitly whether they tolerate NULL.
699         
700         * platform/AtomicString.h:
701         * platform/PlatformString.h:
702         (WebCore::String::operator NSString*):
703         * platform/mac/TextFieldMac.mm:
704         (-[NSSearchFieldCell _addStringToRecentSearches:]):
705
706 2006-10-29  Darin Adler  <darin@apple.com>
707
708         Reviewed by Geoff.
709
710         - fixed storage leak showing up on the buildbot
711
712         * loader/mac/WebSubresourceLoader.mm: (WebCore::SubresourceLoader::create):
713         Release the NSURLRequest after passing it to load. Also clean up logic a bit.
714
715 2006-10-29  Darin Adler  <darin@apple.com>
716
717         Rubber stamped by Adam.
718
719         - renamed WebFrameLoaderClient to match the class name inside it
720
721         * loader/mac/WebFrameLoaderClient.h: Removed.
722         * loader/FrameLoaderClient.h: Moved it here.
723
724         * WebCore.xcodeproj/project.pbxproj: Updated project.
725
726         * bridge/mac/FrameMac.mm: Updated includes.
727         * bridge/mac/WebCoreFrameBridge.mm: Ditto.
728         * loader/mac/FrameLoader.mm: Ditto.
729         * loader/mac/WebLoader.h: Ditto.
730
731 2006-10-29  Darin Adler  <darin@apple.com>
732
733         Reviewed by Mitz.
734
735         - fix crash visible on buildbot and also when running the test
736           anchor-image-scrolled-x-y.html under libgmalloc
737
738         * loader/mac/WebSubresourceLoader.h: Renamed m_loader to m_handle
739         now that the class is named ResourceHandle.
740         * loader/mac/WebSubresourceLoader.mm: Renaming, plus:
741         (WebCore::SubresourceLoader::didFinishLoading): Get the handle into
742         a local RefPtr before calling finishJobAndHandle, since we might get
743         cancelled inside that function, so we should not rely on m_handle to
744         keep the ResourceHandle alive.
745         (WebCore::SubresourceLoader::didFail): Ditto.
746         (WebCore::SubresourceLoader::didCancel): Ditto.
747
748 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
749
750         - build fix
751
752         * platform/network/mac/ResourceHandleMac.mm:
753
754 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
755
756         Rubber stamped by Darin.
757
758         - renamed ResourceLoader to ResourceHandle (and same for related classes)
759
760         * CMakeLists.txt:
761         * Projects/gdk/webcore-gdk.bkl:
762         * WebCore.vcproj/WebCore/WebCore.vcproj:
763         * WebCore.xcodeproj/project.pbxproj:
764         * WebCoreSources.bkl:
765         * bridge/mac/FrameMac.mm:
766         * bridge/win/FrameWin.cpp:
767         * dom/XMLTokenizer.cpp:
768         * loader/Cache.cpp:
769         * loader/CachedResource.h:
770         * loader/LoaderFunctions.h:
771         * loader/icon/IconLoader.cpp:
772         (IconLoader::startLoading):
773         (IconLoader::didReceiveData):
774         (IconLoader::didFinishLoading):
775         * loader/icon/IconLoader.h:
776         * loader/loader.cpp:
777         (WebCore::Loader::servePendingRequests):
778         (WebCore::Loader::receivedAllData):
779         (WebCore::Loader::receivedResponse):
780         (WebCore::Loader::didReceiveData):
781         (WebCore::Loader::cancelRequests):
782         (WebCore::Loader::jobForRequest):
783         * loader/loader.h:
784         * loader/mac/IconLoaderMac.mm:
785         (IconLoader::receivedResponse):
786         * loader/mac/LoaderFunctionsMac.mm:
787         * loader/mac/WebLoader.h:
788         * loader/mac/WebSubresourceLoader.h:
789         * loader/mac/WebSubresourceLoader.mm:
790         (WebCore::SubresourceLoader::SubresourceLoader):
791         (WebCore::SubresourceLoader::create):
792         * platform/gdk/FrameGdk.cpp:
793         (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
794         (WebCore::FrameGdkClientDefault::openURL):
795         (WebCore::FrameGdkClientDefault::submitForm):
796         (WebCore::FrameGdkClientDefault::receivedResponse):
797         (WebCore::FrameGdkClientDefault::didReceiveData):
798         (WebCore::FrameGdkClientDefault::receivedAllData):
799         * platform/gdk/FrameGdk.h:
800         * platform/gdk/TemporaryLinkStubs.cpp:
801         (WebCore::ServeSynchronousRequest):
802         (WebCore::ResourceHandle::assembleResponseHeaders):
803         (WebCore::ResourceHandle::retrieveCharset):
804         * platform/network/ResourceHandle.cpp: Added.
805         (WebCore::ResourceHandle::ResourceHandle):
806         (WebCore::ResourceHandle::create):
807         (WebCore::ResourceHandle::isErrorPage):
808         (WebCore::ResourceHandle::error):
809         (WebCore::ResourceHandle::setError):
810         (WebCore::ResourceHandle::responseEncoding):
811         (WebCore::ResourceHandle::responseHTTPHeadersAsString):
812         (WebCore::ResourceHandle::kill):
813         (WebCore::ResourceHandle::requestHeaders):
814         (WebCore::ResourceHandle::url):
815         (WebCore::ResourceHandle::postData):
816         (WebCore::ResourceHandle::method):
817         (WebCore::ResourceHandle::client):
818         * platform/network/ResourceHandle.h: Added.
819         (WebCore::ResourceHandle::getInternal):
820         * platform/network/ResourceHandleClient.h: Added.
821         (WebCore::ResourceHandleClient::~ResourceHandleClient):
822         (WebCore::ResourceHandleClient::didReceiveData):
823         (WebCore::ResourceHandleClient::didFinishLoading):
824         (WebCore::ResourceHandleClient::receivedRedirect):
825         (WebCore::ResourceHandleClient::receivedResponse):
826         (WebCore::ResourceHandleClient::receivedAllData):
827         * platform/network/ResourceHandleInternal.h: Added.
828         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
829         * platform/network/ResourceLoader.cpp: Removed.
830         * platform/network/ResourceLoader.h: Removed.
831         * platform/network/ResourceLoaderClient.h: Removed.
832         * platform/network/ResourceLoaderInternal.h: Removed.
833         * platform/network/cf/ResourceHandleCFNet.cpp: Added.
834         (WebCore::willSendRequest):
835         (WebCore::didReceiveResponse):
836         (WebCore::didReceiveData):
837         (WebCore::didFinishLoading):
838         (WebCore::didFail):
839         (WebCore::willCacheResponse):
840         (WebCore::didReceiveChallenge):
841         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
842         (WebCore::ResourceHandle::~ResourceHandle):
843         (WebCore::ResourceHandle::start):
844         (WebCore::ResourceHandle::cancel):
845         * platform/network/cf/ResourceLoaderCFNet.cpp: Removed.
846         * platform/network/gdk/ResourceHandleCurl.cpp: Added.
847         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
848         (WebCore::ResourceHandle::~ResourceHandle):
849         (WebCore::ResourceHandle::start):
850         (WebCore::ResourceHandle::cancel):
851         * platform/network/gdk/ResourceHandleManager.cpp: Added.
852         (WebCore::ResourceHandleManager::ResourceHandleManager):
853         (WebCore::ResourceHandleManager::get):
854         (WebCore::ResourceHandleManager::useSimpleTransfer):
855         (WebCore::writeCallback):
856         (WebCore::ResourceHandleManager::downloadTimerCallback):
857         (WebCore::ResourceHandleManager::remove):
858         (WebCore::ResourceHandleManager::add):
859         (WebCore::ResourceHandleManager::cancel):
860         * platform/network/gdk/ResourceHandleManager.h: Added.
861         * platform/network/gdk/ResourceLoaderCurl.cpp: Removed.
862         * platform/network/gdk/ResourceLoaderManager.cpp: Removed.
863         * platform/network/gdk/ResourceLoaderManager.h: Removed.
864         * platform/network/mac/ResourceHandleMac.mm: Added.
865         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
866         (WebCore::ResourceHandle::~ResourceHandle):
867         (WebCore::ResourceHandle::start):
868         (WebCore::ResourceHandle::assembleResponseHeaders):
869         (WebCore::ResourceHandle::retrieveResponseEncoding):
870         (WebCore::ResourceHandle::receivedResponse):
871         (WebCore::ResourceHandle::cancel):
872         (WebCore::ResourceHandle::redirectedToURL):
873         (WebCore::ResourceHandle::addData):
874         (WebCore::ResourceHandle::finishJobAndHandle):
875         (WebCore::ResourceHandle::reportError):
876         * platform/network/mac/ResourceLoaderMac.mm: Removed.
877         * platform/network/qt/ResourceHandleManager.cpp: Added.
878         (WebCore::ResourceHandleManager::ResourceHandleManager):
879         (WebCore::ResourceHandleManager::~ResourceHandleManager):
880         (WebCore::ResourceHandleManager::self):
881         (WebCore::ResourceHandleManager::slotData):
882         (WebCore::ResourceHandleManager::slotMimetype):
883         (WebCore::ResourceHandleManager::slotResult):
884         (WebCore::ResourceHandleManager::remove):
885         (WebCore::ResourceHandleManager::add):
886         (WebCore::ResourceHandleManager::cancel):
887         * platform/network/qt/ResourceHandleManager.h: Added.
888         * platform/network/qt/ResourceHandleQt.cpp: Added.
889         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
890         (WebCore::ResourceHandle::~ResourceHandle):
891         (WebCore::ResourceHandle::start):
892         (WebCore::ResourceHandle::cancel):
893         (WebCore::ResourceHandle::assembleResponseHeaders):
894         (WebCore::ResourceHandle::retrieveResponseEncoding):
895         (WebCore::ResourceHandle::receivedResponse):
896         (WebCore::ResourceHandle::extractCharsetFromHeaders):
897         * platform/network/qt/ResourceLoaderManager.cpp: Removed.
898         * platform/network/qt/ResourceLoaderManager.h: Removed.
899         * platform/network/qt/ResourceLoaderQt.cpp: Removed.
900         * platform/network/win/ResourceHandleWin.cpp: Added.
901         (WebCore::):
902         (WebCore::addToOutstandingJobs):
903         (WebCore::lookupResourceHandle):
904         (WebCore::ResourceHandleWndProc):
905         (WebCore::initializeOffScreenResourceHandleWindow):
906         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
907         (WebCore::ResourceHandle::~ResourceHandle):
908         (WebCore::ResourceHandle::onHandleCreated):
909         (WebCore::ResourceHandle::onRequestRedirected):
910         (WebCore::ResourceHandle::onRequestComplete):
911         (WebCore::ResourceHandle::start):
912         (WebCore::ResourceHandle::fileLoadTimer):
913         (WebCore::ResourceHandle::cancel):
914         (WebCore::ResourceHandle::setHasReceivedResponse):
915         (WebCore::ResourceHandle::hasReceivedResponse):
916         * platform/network/win/ResourceHandleWin.h: Added.
917         * platform/network/win/ResourceLoaderWin.cpp: Removed.
918         * platform/network/win/ResourceLoaderWin.h: Removed.
919         * platform/qt/FrameQt.cpp:
920         * platform/qt/FrameQtClient.cpp:
921         (WebCore::FrameQtClientDefault::openURL):
922         (WebCore::FrameQtClientDefault::submitForm):
923         (WebCore::FrameQtClientDefault::receivedResponse):
924         (WebCore::FrameQtClientDefault::didReceiveData):
925         (WebCore::FrameQtClientDefault::receivedAllData):
926         * platform/qt/FrameQtClient.h:
927         * platform/win/TemporaryLinkStubs.cpp:
928         (WebCore::ResourceHandle::assembleResponseHeaders):
929         (WebCore::ResourceHandle::retrieveResponseEncoding):
930         (WebCore::ServeSynchronousRequest):
931         * xml/XSLTProcessor.cpp:
932         * xml/xmlhttprequest.cpp:
933         (WebCore::XMLHttpRequest::send):
934         (WebCore::XMLHttpRequest::didFinishLoading):
935         (WebCore::XMLHttpRequest::receivedRedirect):
936         (WebCore::XMLHttpRequest::didReceiveData):
937         * xml/xmlhttprequest.h:
938
939 t2006-10-29  Darin Adler  <darin@apple.com>
940
941         Reviewed by Maciej.
942
943         - eliminate use of NSArray to carry form data around
944
945         * WebCore.exp:
946         * WebCore.xcodeproj/project.pbxproj:
947         * bridge/mac/FormDataMac.h: Removed.
948         * bridge/mac/FormDataMac.mm: Removed.
949         * bridge/mac/FrameMac.h:
950         * bridge/mac/WebCoreFrameBridge.h:
951         * bridge/mac/WebCoreFrameBridge.mm:
952         * html/HTMLFormElement.cpp:
953         (WebCore::HTMLFormElement::submit):
954         * loader/FormData.h:
955         (WebCore::FormData::isEmpty):
956         * loader/mac/FrameLoader.h:
957         * loader/mac/FrameLoader.mm:
958         (WebCore::FrameLoader::load):
959         (WebCore::FrameLoader::post):
960         (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
961         (WebCore::FrameLoader::loadResourceSynchronously):
962         * loader/mac/LoaderFunctionsMac.mm:
963         (WebCore::ServeSynchronousRequest):
964         * loader/mac/WebFormDataStream.h:
965         * loader/mac/WebFormDataStream.m:
966         (WebCore::pairRetain):
967         (WebCore::pairRelease):
968         (WebCore::pairEqual):
969         (WebCore::pairHash):
970         (WebCore::closeCurrentStream):
971         (WebCore::scheduleWithPair):
972         (WebCore::advanceCurrentStream):
973         (WebCore::openNextStream):
974         (WebCore::formCreate):
975         (WebCore::formFinalize):
976         (WebCore::formOpen):
977         (WebCore::formRead):
978         (WebCore::formCanRead):
979         (WebCore::formClose):
980         (WebCore::formSchedule):
981         (WebCore::formUnschedule):
982         (WebCore::formEventCallback):
983         (WebCore::setHTTPBody):
984         * loader/mac/WebSubresourceLoader.h:
985         * loader/mac/WebSubresourceLoader.mm:
986         (WebCore::SubresourceLoader::create):
987         * platform/network/mac/ResourceLoaderMac.mm:
988
989 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
990
991         Reviewed by Darin.
992
993         - create SubresourceLoader with a ResourceRequest, not broken out request bits
994
995         * loader/mac/WebSubresourceLoader.h:
996         * loader/mac/WebSubresourceLoader.mm:
997         (WebCore::SubresourceLoader::create):
998         * platform/network/mac/ResourceLoaderMac.mm:
999         (WebCore::ResourceLoader::start):
1000
1001 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
1002
1003         Reviewed by Darin.
1004
1005         - removed ObjC glue between ResourceLoader and SubresourceLoader, then now talk to each other directly
1006
1007         Removed WebCoreResourceLoader, WebCoreResourceHandle and WebCoreResourceLoaderImp
1008         
1009         * WebCore.xcodeproj/project.pbxproj:
1010         * bridge/mac/WebCoreFrameBridge.h:
1011         * loader/mac/FrameLoader.h:
1012         * loader/mac/FrameLoader.mm:
1013         * loader/mac/LoaderFunctionsMac.mm:
1014         * loader/mac/WebLoader.h:
1015         * loader/mac/WebSubresourceLoader.h:
1016         * loader/mac/WebSubresourceLoader.mm:
1017         (WebCore::SubresourceLoader::SubresourceLoader):
1018         (WebCore::SubresourceLoader::create):
1019         (WebCore::SubresourceLoader::willSendRequest):
1020         (WebCore::SubresourceLoader::didReceiveResponse):
1021         (WebCore::SubresourceLoader::didReceiveData):
1022         (WebCore::SubresourceLoader::didFinishLoading):
1023         (WebCore::SubresourceLoader::didFail):
1024         (WebCore::SubresourceLoader::didCancel):
1025         * platform/network/ResourceLoader.h:
1026         * platform/network/ResourceLoaderInternal.h:
1027         * platform/network/mac/ResourceLoaderMac.mm:
1028         (WebCore::ResourceLoader::~ResourceLoader):
1029         (WebCore::ResourceLoader::start):
1030         (WebCore::ResourceLoader::receivedResponse):
1031         (WebCore::ResourceLoader::cancel):
1032         (WebCore::ResourceLoader::redirectedToURL):
1033         (WebCore::ResourceLoader::addData):
1034         (WebCore::ResourceLoader::finishJobAndHandle):
1035         (WebCore::ResourceLoader::reportError):
1036         * platform/network/mac/WebCoreResourceLoader.h: Removed.
1037         * platform/network/mac/WebCoreResourceLoaderImp.h: Removed.
1038         * platform/network/mac/WebCoreResourceLoaderImp.mm: Removed.
1039
1040 2006-10-28  Darin Adler  <darin@apple.com>
1041
1042         Reviewed by Maciej.
1043
1044         - eliminated the use of Objective-C for the policy decider
1045           machinery, obviating the need for WebPolicyDecider,
1046           WebCoreFrameLoaderAsDelegate, and
1047           WebCoreMainResourceLoaderAsPolicyDelegate
1048
1049         - grouped the state related to policy decisions into a PolicyCheck
1050           class to simplify the FrameLoader logic
1051
1052         - removed six methods from the bridge, reducing FrameLoader's use of
1053           the bridge to a single method
1054
1055         - changed form state to always use HashMap instead of NSDictionary
1056
1057         - moved the defersLoading flag from WebView to WebCore::Page
1058           and changed code to consistently call it defersLoading rather
1059           than defersCallbacks
1060
1061         - updated for rename of PassRefPtr::release to releaseRef
1062         - replaced all uses of __APPLE__ with appropriate PLATFORM defines
1063         - cleaned up kjs_binding.h a bit
1064         - cleaned up FrameMac.h a bit
1065
1066         * loader/mac/WebPolicyDecider.h: Removed.
1067         * loader/mac/WebPolicyDecider.mm: Removed.
1068         * WebCore.xcodeproj/project.pbxproj: Updated for removal.
1069
1070         * WebCore.exp:
1071         * bindings/js/kjs_binding.cpp:
1072         (KJS::ScriptInterpreter::ScriptInterpreter):
1073         (KJS::ScriptInterpreter::wasRunByUserGesture):
1074         * bindings/js/kjs_binding.h:
1075         (KJS::ScriptInterpreter::setCurrentEvent):
1076         (KJS::ScriptInterpreter::setInlineCode):
1077         (KJS::ScriptInterpreter::setProcessingTimerCallback):
1078         (KJS::ScriptInterpreter::getCurrentEvent):
1079         (KJS::cacheDOMObject):
1080         (KJS::DOMExceptionTranslator::DOMExceptionTranslator):
1081         * bridge/AXObjectCache.h:
1082         * bridge/mac/BrowserExtensionMac.mm:
1083         (WebCore::BrowserExtensionMac::createNewWindow):
1084         * bridge/mac/FrameMac.h:
1085         * bridge/mac/FrameMac.mm:
1086         (WebCore::FrameMac::loadRequest):
1087         (WebCore::FrameMac::submitForm):
1088         (WebCore::FrameMac::urlSelected):
1089         (WebCore::FrameMac::userAgent):
1090         (WebCore::FrameMac::passMouseDownEventToWidget):
1091         (WebCore::FrameMac::handleMouseMoveEvent):
1092         * bridge/mac/PageMac.mm:
1093         (WebCore::Page::Page):
1094         * bridge/mac/WebCoreEditCommand.mm:
1095         * bridge/mac/WebCoreFrameBridge.h:
1096         * bridge/mac/WebCoreFrameBridge.mm:
1097         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
1098         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1099         * css/CSSComputedStyleDeclaration.cpp:
1100         (WebCore::):
1101         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1102         * css/CSSPrimitiveValue.cpp:
1103         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1104         (WebCore::CSSPrimitiveValue::cleanup):
1105         (WebCore::CSSPrimitiveValue::cssText):
1106         * css/CSSPrimitiveValue.h:
1107         (WebCore::CSSPrimitiveValue::):
1108         * css/CSSValueList.cpp:
1109         (WebCore::CSSValueList::append):
1110         * css/cssparser.cpp:
1111         (WebCore::CSSParser::parseValue):
1112         * css/cssparser.h:
1113         * css/cssstyleselector.cpp:
1114         (WebCore::CSSStyleSelector::applyProperty):
1115         * dom/Document.cpp:
1116         (WebCore::Document::Document):
1117         (WebCore::Document::updateSelection):
1118         (WebCore::Document::implicitClose):
1119         (WebCore::Document::setFocusNode):
1120         * dom/Document.h:
1121         * editing/ReplaceSelectionCommand.h:
1122         * html/HTMLParser.cpp:
1123         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
1124         * loader/mac/FrameLoader.h:
1125         (WebCore::PolicyCheck::request):
1126         * loader/mac/FrameLoader.mm:
1127         (WebCore::FrameLoader::~FrameLoader):
1128         (WebCore::FrameLoader::safeLoad):
1129         (WebCore::FrameLoader::load):
1130         (WebCore::FrameLoader::open):
1131         (WebCore::FrameLoader::stopLoading):
1132         (WebCore::setAllDefersLoading):
1133         (WebCore::FrameLoader::setDefersLoading):
1134         (WebCore::FrameLoader::willSendRequest):
1135         (WebCore::FrameLoader::receivedMainResourceError):
1136         (WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy):
1137         (WebCore::FrameLoader::commitProvisionalLoad):
1138         (WebCore::FrameLoader::checkNavigationPolicy):
1139         (WebCore::FrameLoader::checkContentPolicy):
1140         (WebCore::FrameLoader::cancelContentPolicyCheck):
1141         (WebCore::FrameLoader::stopPolicyCheck):
1142         (WebCore::FrameLoader::checkNewWindowPolicy):
1143         (WebCore::FrameLoader::continueAfterNewWindowPolicy):
1144         (WebCore::FrameLoader::continueAfterNavigationPolicy):
1145         (WebCore::FrameLoader::continueAfterContentPolicy):
1146         (WebCore::FrameLoader::continueAfterWillSubmitForm):
1147         (WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy):
1148         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
1149         (WebCore::FrameLoader::closeDocument):
1150         (WebCore::FrameLoader::transitionToCommitted):
1151         (WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy):
1152         (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
1153         (WebCore::FrameLoader::post):
1154         (WebCore::FrameLoader::detachFromParent):
1155         (WebCore::FrameLoader::addExtraFieldsToRequest):
1156         (WebCore::PolicyCheck::PolicyCheck):
1157         (WebCore::PolicyCheck::clear):
1158         (WebCore::PolicyCheck::set):
1159         (WebCore::PolicyCheck::call):
1160         (WebCore::PolicyCheck::dropRequest):
1161         (WebCore::FrameLoaderClient::~FrameLoaderClient):
1162         * loader/mac/WebFormState.h:
1163         * loader/mac/WebFormState.mm:
1164         * loader/mac/WebFrameLoaderClient.h:
1165         * loader/mac/WebLoader.h:
1166         (WebCore::WebResourceLoader::defersLoading):
1167         * loader/mac/WebLoader.mm:
1168         (WebCore::WebResourceLoader::WebResourceLoader):
1169         (WebCore::WebResourceLoader::load):
1170         (WebCore::WebResourceLoader::setDefersLoading):
1171         * loader/mac/WebMainResourceLoader.h:
1172         * loader/mac/WebMainResourceLoader.mm:
1173         (WebCore::MainResourceLoader::MainResourceLoader):
1174         (WebCore::MainResourceLoader::releaseDelegate):
1175         (WebCore::MainResourceLoader::didCancel):
1176         (WebCore::MainResourceLoader::callContinueAfterNavigationPolicy):
1177         (WebCore::MainResourceLoader::continueAfterNavigationPolicy):
1178         (WebCore::MainResourceLoader::willSendRequest):
1179         (WebCore::MainResourceLoader::callContinueAfterContentPolicy):
1180         (WebCore::MainResourceLoader::continueAfterContentPolicy):
1181         (WebCore::MainResourceLoader::didReceiveResponse):
1182         (WebCore::MainResourceLoader::didReceiveData):
1183         (WebCore::MainResourceLoader::didFinishLoading):
1184         (WebCore::MainResourceLoader::didFail):
1185         (WebCore::MainResourceLoader::loadNow):
1186         (WebCore::MainResourceLoader::load):
1187         (WebCore::MainResourceLoader::setDefersLoading):
1188         * page/Frame.cpp:
1189         (WebCore::Frame::paint):
1190         * page/FrameView.cpp:
1191         (WebCore::FrameView::layout):
1192         * page/FrameView.h:
1193         * page/Page.cpp:
1194         (WebCore::Page::setDefersLoading):
1195         * page/Page.h:
1196         (WebCore::Page::defersLoading):
1197         * platform/DeprecatedString.h:
1198         * platform/DeprecatedStringList.h:
1199         * platform/FontFallbackList.h:
1200         * platform/PlatformKeyboardEvent.h:
1201         * platform/PlatformMouseEvent.h:
1202         * platform/PlatformWheelEvent.h:
1203         * platform/mac/ClipboardMac.h:
1204         * platform/mac/ClipboardMac.mm:
1205         (WebCore::ClipboardMac::setDragImage):
1206         (WebCore::ClipboardMac::dragNSImage):
1207         (WebCore::ClipboardMac::sourceOperation):
1208         (WebCore::ClipboardMac::destinationOperation):
1209         * rendering/RenderObject.cpp:
1210         (WebCore::RenderObject::setStyle):
1211         * rendering/break_lines.cpp:
1212         (WebCore::nextBreakablePosition):
1213
1214 2006-10-28  Adam Roben  <aroben@apple.com>
1215
1216         Reviewed by Maciej.
1217
1218         Fix layout tests that broke after r17399. Mitz discovered that the
1219         failures were caused by HitTestResult::m_point being uninitialized
1220         much of the time. HitTestResults are now always constructed with a
1221         point, and RenderLayer::hitTest and RenderLayer::hitTestLayer use that
1222         point instead of being passed one explicitly.
1223
1224         * WebCore.exp: Change constructor symbol.
1225         * bridge/mac/FrameMac.mm:
1226         (WebCore::FrameMac::eventMayStartDrag): Update to new constructor and
1227         hitTest().
1228         (WebCore::FrameMac::handleMouseMoveEvent): Ditto.
1229         * bridge/mac/WebCoreAXObject.mm:
1230         (-[WebCoreAXObject doAXTextMarkerForPosition:]): Ditto.
1231         (-[WebCoreAXObject accessibilityHitTest:]): Ditto.
1232         * dom/Document.cpp:
1233         (WebCore::Document::elementFromPoint): Ditto.
1234         (WebCore::Document::prepareMouseEvent): Ditto.
1235         * page/Frame.cpp:
1236         (WebCore::Frame::isPointInsideSelection): Ditto.
1237         (WebCore::Frame::hitTestResultAtPoint): Ditto.
1238         * page/FrameView.cpp:
1239         (WebCore::FrameView::handleWheelEvent): Ditto.
1240         * rendering/HitTestResult.cpp:
1241         (WebCore::HitTestResult::HitTestResult): Initalize m_point with the
1242         passed point.
1243         * rendering/HitTestResult.h: Update constructor declaration.
1244         * rendering/RenderLayer.cpp:
1245         (WebCore::RenderLayer::autoscroll): Update to new constructor and
1246         hitTest().
1247         (WebCore::RenderLayer::hitTest): Use the IntPoint stored in the
1248         HitTestResult instead of being passed one.
1249         (WebCore::RenderLayer::hitTestLayer): Ditto.
1250         * rendering/RenderLayer.h: Update declarations.
1251
1252 2006-10-28  Nikolas Zimmermann  <zimmermann@kde.org>
1253
1254         Reviewed by Anders.
1255
1256         Fix Qt/Linux build.
1257
1258         * CMakeLists.txt:
1259         * platform/qt/FrameQtClient.cpp:
1260         (WebCore::numRequests):
1261         (WebCore::FrameQtClientDefault::numPendingOrLoadingRequests):
1262         * platform/qt/PopupMenuQt.cpp:
1263         (WebCore::PopupMenu::updateFromElement):
1264
1265 2006-10-28  David Carson  <dacarson@gmail.com>
1266
1267         Tweaked by Sam. Reviewed by Brady.
1268
1269         Fix for: http://bugs.webkit.org/show_bug.cgi?id=11437
1270         Initialize m_modifyBiasSet to false, as it sometimes gets 
1271         used before it has been initalized.
1272
1273         * editing/SelectionController.cpp:
1274         (WebCore::SelectionController::SelectionController):
1275
1276 2006-10-28  Beth Dakin  <bdakin@apple.com>
1277
1278         Reviewed by Darin.
1279
1280         This is the WebCore half of pushing elementAtPoint and the backend 
1281         of WebElementDictionary into WebCore. Most of the changes below are 
1282         to accommodate one of the following:
1283                 
1284         -NodeInfo is now a stand-alone class called HitTestResult. 
1285                 Previously it was defined in RenderObject.h, but not for 
1286                 any particular reason. The WebElementDictionary 
1287                 functionality that was pushed into WebCore has been pushed 
1288                 specifically into the this class. In fact, 
1289                 WebElementDictionary now keeps a HitTestResult as a member 
1290                 varibale.
1291                 
1292         -The enumeration AccessPolicy is now called 
1293                 ClipboardAccessPolicy and is defined in its own header. It 
1294                 was previously defined in ClipboardMac.h, but is now 
1295                 defined independently to avoid including ClipboardMac.h 
1296                 from within FrameMac.h since FrameMac.h is now included in 
1297                 WebElementDictionary.m in WebKit.
1298                 
1299         -Element now has a virtual target() for the sake of 
1300                 NodeInfo::targetFrame() 
1301
1302         * WebCore.exp: Several WebCore functions are newly called from 
1303         WebKit, so they have been added here. 
1304         * WebCore.xcodeproj/project.pbxproj:
1305         * bindings/objc/DOM.mm: Must include Image.h because of adjustments 
1306         to ClipboardMac.
1307         * bridge/mac/FrameMac.h: Adjust to HitTestResult changes.
1308         * bridge/mac/FrameMac.mm:
1309         (WebCore::FrameMac::freeClipboard): Adjust to ClipboardAccessPolicy 
1310         and HitTestResult changes.
1311         (WebCore::FrameMac::eventMayStartDrag): Same.
1312         (WebCore::FrameMac::handleMouseMoveEvent): Same.
1313         (WebCore::FrameMac::dispatchCPPEvent): Same.
1314         (WebCore::FrameMac::mayDHTMLCut): Same.
1315         (WebCore::FrameMac::mayDHTMLCopy): Same.
1316         (WebCore::FrameMac::mayDHTMLPaste): Same.
1317         (WebCore::FrameMac::tryDHTMLCut): Same
1318         (WebCore::FrameMac::tryDHTMLCopy): Same.
1319         (WebCore::FrameMac::tryDHTMLPaste): Same.
1320         * bridge/mac/WebCoreAXObject.mm:
1321         (-[WebCoreAXObject doAXTextMarkerForPosition:]): Adjust to 
1322         HitTestResult changes.
1323         (-[WebCoreAXObject accessibilityHitTest:]): Same.
1324         * bridge/mac/WebCoreFrameBridge.h: Same.
1325         * bridge/mac/WebCoreFrameBridge.mm:
1326         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]): Adjust for 
1327         ClipboardAccessPolicy changes.
1328         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]): Same.
1329         (-[WebCoreFrameBridge concludeDragForDraggingInfo:]): Same.
1330         * dom/Document.cpp:
1331         (WebCore::Document::elementFromPoint): Adjust for HitTestResult 
1332         changes.
1333         (WebCore::Document::prepareMouseEvent): Same.
1334         * dom/Element.h:
1335         (WebCore::Element::target): Now has a virtual target()
1336         * html/HTMLAnchorElement.h: Same.
1337         * html/HTMLAreaElement.cpp:
1338         (WebCore::HTMLAreaElement::mapMouseEvent): Adjust for HitTestResult 
1339         changes.
1340         * html/HTMLAreaElement.h: Virtual target()
1341         * html/HTMLBaseElement.h:
1342         (WebCore::HTMLBaseElement::target): Same.
1343         * html/HTMLFormElement.h: Same.
1344         * html/HTMLLinkElement.h: Same.
1345         * html/HTMLMapElement.cpp:
1346         (WebCore::HTMLMapElement::mapMouseEvent): Adjust for HitTestResult 
1347         changes.
1348         * html/HTMLMapElement.h: Same.
1349         * page/Frame.cpp:
1350         (WebCore::Frame::isPointInsideSelection): Same.
1351         (WebCore::Frame::hitTestResultAtPoint): Same. 
1352         * page/Frame.h: Same.
1353         * page/FrameView.cpp:
1354         (WebCore::FrameView::handleWheelEvent): Same.
1355         * platform/mac/ClipboardAccessPolicy.h: Added.
1356         (WebCore::):
1357         * platform/mac/ClipboardMac.h: Remove definition of AccessPolicy, 
1358         include ClipboardAccessPolicy.h, and rename AccessPolicy to 
1359         ClipboardAccessPolicy.
1360         * platform/mac/ClipboardMac.mm: Rename ClipboardAccessPolicy.
1361         (WebCore::ClipboardMac::ClipboardMac):
1362         (WebCore::ClipboardMac::setAccessPolicy):
1363         (WebCore::ClipboardMac::clearData):
1364         (WebCore::ClipboardMac::clearAllData):
1365         (WebCore::ClipboardMac::getData):
1366         (WebCore::ClipboardMac::setData):
1367         (WebCore::ClipboardMac::types):
1368         (WebCore::ClipboardMac::setDragImage):
1369         (WebCore::ClipboardMac::setDropEffect):
1370         (WebCore::ClipboardMac::setEffectAllowed):
1371         * rendering/EllipsisBox.cpp:
1372         (WebCore::EllipsisBox::nodeAtPoint): Adjust for HitTestResult 
1373         changes.
1374         * rendering/EllipsisBox.h:
1375         * rendering/HitTestResult.cpp: Added.
1376         (WebCore::HitTestResult::HitTestResult):
1377         (WebCore::HitTestResult::~HitTestResult):
1378         (WebCore::HitTestResult::operator=):
1379         (WebCore::HitTestResult::setInnerNode):
1380         (WebCore::HitTestResult::setInnerNonSharedNode):
1381         (WebCore::HitTestResult::setURLElement):
1382         (WebCore::HitTestResult::setScrollbar):
1383         (WebCore::HitTestResult::targetFrame):
1384         (WebCore::HitTestResult::boundingBox):
1385         (WebCore::HitTestResult::isSelected):
1386         (WebCore::HitTestResult::title):
1387         * rendering/HitTestResult.h: Added.
1388         (WebCore::HitTestResult::readonly):
1389         (WebCore::HitTestResult::active):
1390         (WebCore::HitTestResult::mouseMove):
1391         (WebCore::HitTestResult::innerNode):
1392         (WebCore::HitTestResult::innerNonSharedNode):
1393         (WebCore::HitTestResult::point):
1394         (WebCore::HitTestResult::URLElement):
1395         (WebCore::HitTestResult::scrollbar):
1396         (WebCore::HitTestResult::setPoint):
1397         (WebCore::HitTestResult::setReadonly):
1398         (WebCore::HitTestResult::setActive):
1399         (WebCore::HitTestResult::setMouseMove):
1400         * rendering/InlineBox.cpp:
1401         (WebCore::InlineBox::nodeAtPoint): Adjust to HitTestResult changes.
1402         * rendering/InlineBox.h: Same.
1403         * rendering/InlineFlowBox.cpp:
1404         (WebCore::InlineFlowBox::nodeAtPoint): Same.
1405         * rendering/InlineFlowBox.h: Same.
1406         * rendering/InlineTextBox.cpp: 
1407         (WebCore::InlineTextBox::nodeAtPoint): Same.
1408         * rendering/InlineTextBox.h: Same.
1409         * rendering/RenderBlock.cpp:
1410         (WebCore::RenderBlock::isPointInScrollbar): Same.
1411         (WebCore::RenderBlock::nodeAtPoint): Same.
1412         * rendering/RenderBlock.h: Same.
1413         * rendering/RenderBox.cpp:
1414         (WebCore::RenderBox::nodeAtPoint): Same.
1415         * rendering/RenderBox.h: Same.
1416         * rendering/RenderFlow.cpp:
1417         (WebCore::RenderFlow::hitTestLines): Same.
1418         * rendering/RenderFlow.h: Same.
1419         * rendering/RenderForeignObject.cpp:
1420         (WebCore::RenderForeignObject::nodeAtPoint): Same.
1421         * rendering/RenderForeignObject.h: Same.
1422         * rendering/RenderFrameSet.cpp:
1423         (WebCore::RenderFrameSet::nodeAtPoint): Same.
1424         * rendering/RenderFrameSet.h: Same.
1425         * rendering/RenderImage.cpp:
1426         (WebCore::RenderImage::nodeAtPoint): Same.
1427         * rendering/RenderImage.h: Same.
1428         * rendering/RenderInline.cpp:
1429         (WebCore::RenderInline::nodeAtPoint): Same.
1430         * rendering/RenderInline.h: Same.
1431         * rendering/RenderLayer.cpp:
1432         (WebCore::RenderLayer::autoscroll): Same.
1433         (WebCore::RenderLayer::hitTest): Same.
1434         (WebCore::RenderLayer::hitTestLayer): Same.
1435         (WebCore::RenderLayer::updateHoverActiveState): Same.
1436         * rendering/RenderLayer.h: Same.
1437         * rendering/RenderListBox.cpp:
1438         (WebCore::RenderListBox::isPointInScrollbar): Same.
1439         * rendering/RenderListBox.h: Same.
1440         * rendering/RenderObject.cpp:
1441         (WebCore::RenderObject::hitTest): Same.
1442         (WebCore::RenderObject::setInnerNode): Same.
1443         (WebCore::RenderObject::nodeAtPoint): Same.
1444         * rendering/RenderObject.h: Remove NodeInfo class and forward 
1445         declare HitTestResult.
1446         * rendering/RenderPath.cpp:
1447         (WebCore::RenderPath::nodeAtPoint): Adjust to HitTestResult 
1448         changes.
1449         * rendering/RenderPath.h: Same.
1450         * rendering/RenderSVGImage.cpp:
1451         (WebCore::RenderSVGImage::nodeAtPoint): Same.
1452         * rendering/RenderSVGImage.h: Same
1453         * rendering/RenderSVGText.cpp:
1454         (WebCore::RenderSVGText::nodeAtPoint): Same.
1455         * rendering/RenderSVGText.h: Same.
1456         * rendering/RenderTableRow.cpp:
1457         (WebCore::RenderTableRow::nodeAtPoint): Same.
1458         * rendering/RenderTableRow.h: Same.
1459         * rendering/RenderTableSection.cpp:
1460         (WebCore::RenderTableSection::nodeAtPoint): Same.
1461         * rendering/RenderTableSection.h: Same.
1462         * rendering/RenderText.h: Same.
1463         (WebCore::RenderText::nodeAtPoint): Same.
1464         * rendering/RenderTextControl.cpp:
1465         (WebCore::RenderTextControl::nodeAtPoint): Same.
1466         * rendering/RenderTextControl.h: Same.
1467         * rendering/RootInlineBox.cpp:
1468         (WebCore::RootInlineBox::nodeAtPoint): Same.
1469         * rendering/RootInlineBox.h: Same.
1470
1471 2006-10-27  Maciej Stachowiak  <mjs@apple.com>
1472
1473         Reviewed by Anders.
1474
1475         - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=11212, later we will address the performance
1476         impact of fixing it again.
1477
1478         * bridge/mac/FrameMac.mm:
1479         (WebCore::FrameMac::clear):
1480
1481 2006-10-27  Maciej Stachowiak  <mjs@apple.com>
1482
1483         Reviewed by John & Adam.
1484
1485         - assorted speedups to fix perf regression from fixing correctness regression
1486
1487         * WebCore.exp: exported new methods.
1488         * WebCore.xcodeproj/project.pbxproj: Added CachedResourceMac.mm
1489         * bridge/mac/WebCoreFrameBridge.h:
1490         * bridge/mac/WebCoreFrameBridge.mm:
1491         * loader/CachedResource.cpp: Removed now obsolete getCFURL.
1492         * loader/CachedResource.h:
1493         * loader/mac/CachedResourceMac.mm: Added.
1494         (WebCore::CachedResource::getNSURLRequest): New method; the NSURLRequest is
1495         now cached in the CachedObject.
1496         * loader/mac/FrameLoader.h:
1497         * loader/mac/FrameLoader.mm:
1498         (WebCore::FrameLoader::loadedResourceFromMemoryCache): New method - lets
1499         the WebKit side do faster dispatch for clients that implement the fast path delegate. 
1500         * loader/mac/LoaderFunctionsMac.mm:
1501         (WebCore::CheckCacheObjectStatus): Instead of calling several FrameLoader methods,
1502         just call loadedResourceFromMemoryCache.
1503         * loader/mac/WebFrameLoaderClient.h:
1504
1505 2006-10-27  Oliver Hunt  <oliver@apple.com>
1506
1507         Reviewed by Maciej.
1508
1509         build fix
1510
1511         * dom/Document.cpp:
1512         (WebCore::Document::referrer):
1513
1514 2006-10-27  Geoffrey Garen  <ggaren@apple.com>
1515
1516         Reviewed by Maciej.
1517
1518         Moved some WebCoreFrameBridge functions into FrameLoader.
1519         
1520         I had to make FrameLoader.h capable of compiling in C++-only source files
1521         by adding some forward declarations and __OBJC__ #ifdefs.
1522
1523         * WebCore.exp:
1524         * bridge/mac/FrameMac.h:
1525         * bridge/mac/FrameMac.mm:
1526         (WebCore::FrameMac::createEmptyDocument):
1527         (WebCore::FrameMac::tokenizerProcessedData):
1528         * bridge/mac/WebCoreFrameBridge.h:
1529         * bridge/mac/WebCoreFrameBridge.mm:
1530         * dom/Document.cpp:
1531         (WebCore::Document::processHttpEquiv):
1532         (WebCore::Document::referrer):
1533         * loader/LoaderFunctions.h:
1534         * loader/mac/FrameLoader.h:
1535         * loader/mac/FrameLoader.mm:
1536         (WebCore::numRequests):
1537         (WebCore::FrameLoader::numPendingOrLoadingRequests):
1538         (WebCore::FrameLoader::isReloading):
1539         (WebCore::FrameLoader::referrer):
1540         (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
1541         (WebCore::FrameLoader::startLoadingResource):
1542         * loader/mac/LoaderFunctionsMac.mm:
1543         (WebCore::CheckIfReloading):
1544         * page/Frame.h:
1545         * page/FrameTree.cpp:
1546         (WebCore::FrameTree::isDescendantOf):
1547         (WebCore::FrameTree::traverseNext):
1548         * page/FrameTree.h:
1549         * platform/network/mac/ResourceLoaderMac.mm:
1550         (WebCore::ResourceLoader::start):
1551
1552 2006-10-27  Timothy Hatcher  <timothy@apple.com>
1553
1554         Reviewed by Darin.
1555
1556         <rdar://problem/4478625> HTML Editing: Basic table editing and culling
1557
1558         Expanded the Deletion UI to lists, positioned block element and block elementss with borders.
1559
1560         * editing/DeleteButtonController.cpp:
1561         (WebCore::isDeletableElement):
1562         (WebCore::enclosingDeletableElement):
1563         (WebCore::DeleteButtonController::respondToChangedSelection):
1564
1565 2006-10-27  John Sullivan  <sullivan@apple.com>
1566
1567         Reviewed by Kevin Decker
1568         
1569         Some more grammar-checking plumbing. No additional grammar jokes will have been made by the time
1570         you haven't not finished reading this.
1571
1572         * rendering/InlineTextBox.h:
1573         * rendering/InlineTextBox.cpp:
1574         (WebCore::InlineTextBox::paint):
1575         Updated for changed signature of paintDocumentMarkers, which causes grammar markers to be
1576         considered also.
1577         (WebCore::InlineTextBox::paintDocumentMarkers):
1578         Renamed from paintAllMarkersOfType; now takes a bool for whether background or foreground
1579         markers should be painted, instead of a marker type. This avoids walking the collection of
1580         markers multiple times back to back. Now handles grammar markers.
1581
1582 2006-10-27  Timothy Hatcher  <timothy@apple.com>
1583
1584         Reviewed by Beth.
1585
1586         Renamed Copy Files to Copy Generated Headers.
1587         Copy 4 DOM*Internal.h headers.
1588
1589         * WebCore.xcodeproj/project.pbxproj:
1590         * bindings/scripts/CodeGeneratorObjC.pm:
1591
1592 2006-10-27  John Sullivan  <sullivan@apple.com>
1593
1594         Reviewed by Anders
1595
1596         * WebCore.exp:
1597         exported symbol for FrameMac->advanceToNextSpelling()
1598         
1599         * bridge/mac/WebCoreFrameBridge.h:
1600         * bridge/mac/WebCoreFrameBridge.mm:
1601         removed advanceToNextMisspelling callers. Clients in WebKit must now call FrameMac directly.
1602
1603 2006-10-27  Justin Garcia  <justin.garcia@apple.com>
1604
1605         Reviewed by harrison
1606         
1607         <http://bugs.webkit.org/show_bug.cgi?id=11423>
1608         REGRESSION: First newline missing from textarea's value
1609         
1610         The regression is that foo, return, bar in a textarea serializes as 'foobar'.
1611         
1612         Before my change in r17223, return (an InsertLineBreak) would insert a '\n' 
1613         (the line break) then a br to prevent the '\n' from collapsing, since the 
1614         insertion is being done at the end of a block (the textarea's shadow div).  Then, 
1615         inserting "bar" would displace the br, and "foo\nbar" would serialize as "foo\nbar".  
1616         After my change in r17223, InsertLineBreak would insert a br then a '\n' (reversed 
1617         the order).  Then inserting "bar" would displace the '\n' and "foo"<br>"bar" would 
1618         serialize as "foobar" because when serializing RenderTextControl intentionally asks 
1619         textContent to not convert brs to newlines.  It seems to think that the only brs in 
1620         the shadow div will be placeholders or collapsed.
1621         
1622         We could remove this assumption, but, for consistancy's sake, I changed InsertLineBreak 
1623         to insert two '\n's when at the end of a block in white-space:pre text.  This alone 
1624         would have fixed the bug, but introduced a new one, because foo, return, bar would 
1625         produce "foo\nbar\n" which would serialize as "foo\nbar\n" (even though the second 
1626         '\n' is collapsed, because of 9661).  So, then I changed placeholder displacement to 
1627         displace a '\n' if it's acting as a placeholder.  A "placeholder" is now defined as 
1628         a br or '\n' that will collapse (become superfluous) when content is inserted just 
1629         before it.
1630         
1631         * editing/CompositeEditCommand.cpp:
1632         (WebCore::CompositeEditCommand::removePlaceholderAt): Renamed.  Remove
1633         a br or '\n' if content inserted just before it will cause it to collapse.
1634         * editing/CompositeEditCommand.h:
1635         * editing/InsertLineBreakCommand.cpp:
1636         (WebCore::InsertLineBreakCommand::doApply): Insert the same type of node
1637         to prevent a collapse as was used for the line break.  Fixed comments.
1638         * editing/InsertTextCommand.cpp:
1639         (WebCore::InsertTextCommand::input): Call the renamed function.
1640         
1641 2006-10-27  Geoffrey Garen  <ggaren@apple.com>
1642
1643         Reviewed by Brady.
1644
1645         Fixed semantic inaccuracy in String::operator NSString *(), where a NULL
1646         String became an empty NSString *, instead of nil. This will become important
1647         as we start using this conversion more.
1648         
1649         Added work-around for AppKit crash that semantic accuracy revealed.
1650         
1651         No testcase because I don't think there's a way to reflect this change
1652         in a webpage yet.
1653
1654         * platform/PlatformString.h:
1655         (WebCore::String::operator NSString*):
1656         * platform/mac/TextFieldMac.mm:
1657         (-[NSSearchFieldCell _addStringToRecentSearches:]):
1658
1659 2006-10-27  David Harrison  <harrison@apple.com>
1660
1661         Reviewed by Maciej,
1662
1663         <rdar://problem/4003820> Expose blockquotes in AXAttributedStringForTextMarkerRange
1664
1665         * bridge/mac/WebCoreAXObject.mm:
1666         (blockquoteLevel):
1667         Calculate and return the blockquote level of the element.
1668         
1669         (AXAttributeStringSetBlockquoteLevel):
1670         Add, if non-zero, or clear the block quote level attribute.
1671         
1672         (AXAttributedStringAppendText):
1673         Send AXAttributeStringSetBlockquoteLevel.
1674
1675 2006-10-27  Darin Adler  <darin@apple.com>
1676
1677         - fix one error in the Qt build
1678
1679         * platform/qt/GraphicsContextQt.cpp:
1680         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
1681         Updated.
1682
1683 2006-10-27  Darin Adler  <darin@apple.com>
1684
1685         Reviewed by Maciej.
1686
1687         * WebCore.exp: Export more symbols needed by WebKit.
1688
1689 2006-10-26  Geoffrey Garen  <ggaren@apple.com>
1690
1691         Reviewed by the Baroness Esmeralda Von Scratch N' Purr XIV.
1692
1693         Fixed layout test crash. Oops.
1694         
1695         * loader/mac/WebDocumentLoader.mm:
1696         (WebCore::canonicalizedTitle):
1697
1698 2006-10-26  John Sullivan  <sullivan@apple.com>
1699
1700         Reviewed by Brady
1701         
1702         - fixed <rdar://problem/4806064> Repro crash in FrameMac::loadRequest following iTunes music store link from salon.com
1703         
1704         This restores some of the nil-handling that was implicit before some of the code was converted from
1705         Objective-C to C++.
1706
1707         * bridge/mac/FrameMac.mm:
1708         (WebCore::FrameMac::loadRequest):
1709         handle nil FrameMac
1710         
1711         * bridge/mac/WebCoreFrameBridge.mm:
1712         (-[WebCoreFrameBridge canTargetLoadInFrame:]):
1713         handle nil Frame
1714
1715 2006-10-26  Geoffrey Garen  <ggaren@apple.com>
1716
1717         Reviewed by Darin, Maciej.
1718
1719         Removed many uses of NSString *.
1720         Moved a few methods from WebCoreFrameBridge to FrameLoader, replacing 
1721         stringByCollapsingNonPrintingCharacters with a c++ equivalent.
1722         
1723         PLT says no performance regression.
1724         
1725         * WebCore.exp:
1726         * bridge/mac/WebCoreFrameBridge.mm:
1727         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
1728         * loader/mac/FrameLoader.h:
1729         * loader/mac/FrameLoader.mm:
1730         (WebCore::FrameLoader::setupForReplaceByMIMEType):
1731         (WebCore::FrameLoader::load):
1732         (WebCore::FrameLoader::canShowMIMEType):
1733         (WebCore::FrameLoader::representationExistsForURLScheme):
1734         (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
1735         (WebCore::FrameLoader::checkContentPolicy):
1736         (WebCore::FrameLoader::reloadAllowingStaleData):
1737         (WebCore::FrameLoader::invalidatePendingPolicyDecision):
1738         (WebCore::FrameLoader::checkNewWindowPolicy):
1739         (WebCore::FrameLoader::continueAfterNewWindowPolicy):
1740         (WebCore::FrameLoader::transitionToCommitted):
1741         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
1742         (WebCore::FrameLoader::post):
1743         * loader/mac/WebDocumentLoader.h:
1744         * loader/mac/WebDocumentLoader.mm:
1745         (WebCore::DocumentLoader::doesProgressiveLoad):
1746         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
1747         (WebCore::DocumentLoader::title):
1748         (WebCore::DocumentLoader::setOverrideEncoding):
1749         (WebCore::DocumentLoader::overrideEncoding):
1750         (WebCore::DocumentLoader::setTitle):
1751         * loader/mac/WebFrameLoaderClient.h:
1752         * loader/mac/WebMainResourceLoader.mm:
1753         (WebCore::MainResourceLoader::continueAfterContentPolicy):
1754
1755 2006-10-26  Timothy Hatcher  <timothy@apple.com>
1756
1757         Reviewed by Adam.
1758
1759         <rdar://problem/4796941> Table deletion outline is misplaced at nytimes.com
1760
1761         The main table at nytimes.com has a fixed width of 874px, but the table ends
1762         up overflowing to 963px. We now use overflowWidth() and overflowHeight() to correct
1763         this. The other bug was a missing top and left of 0px on the container element,
1764         causing the deletion UI to sometimes be offset below the table.
1765
1766         Now check for the element's renderer at the beginning of show() and
1767         return early if it is null.
1768
1769         * editing/DeleteButtonController.cpp:
1770         (WebCore::DeleteButtonController::updateOutlineStyle):
1771         (WebCore::DeleteButtonController::show):
1772
1773 2006-10-26  Anders Carlsson  <acarlsson@apple.com>
1774
1775         Build fix.
1776
1777         * html/CanvasRenderingContext2D.cpp:
1778         Include MathExtras.h
1779         
1780 2006-10-26  John Sullivan  <sullivan@apple.com>
1781
1782         Reviewed by Anders.
1783
1784         Some changes to support new grammar checking code in WebKit.
1785
1786         * WebCore.exp:
1787         added mangled symbol for Document->removeMarkers() so I can call it from WebKit
1788         
1789         * WebCore.xcodeproj/project.pbxproj:
1790         Made Document.h and DocumentMarker.h private so I can include them from WebKit.
1791         Made HTMLCollection.h private because Document.h uses it.
1792         
1793         * bridge/mac/WebCoreFrameBridge.h:
1794         * bridge/mac/WebCoreFrameBridge.mm:
1795         removed unmarkAllMisspellings(); WebKit now calls through to the Document directly
1796
1797 2006-10-26  Anders Carlsson  <acarlsson@apple.com>
1798
1799         Reviewed by Brady.
1800
1801         Add reverseFind to String and use it instead of findRev.
1802         Use CString instead of DeprecatedCString in one place.
1803         
1804         * html/HTMLFormElement.cpp:
1805         (WebCore::HTMLFormElement::formData):
1806         * ksvg2/svg/SVGURIReference.cpp:
1807         (WebCore::SVGURIReference::getTarget):
1808         * loader/Decoder.cpp:
1809         (WebCore::Decoder::checkForCSSCharset):
1810         * platform/PlatformString.h:
1811         (WebCore::String::reverseFind):
1812         * platform/StringImpl.cpp:
1813         (WebCore::StringImpl::reverseFind):
1814         * platform/StringImpl.h:
1815
1816 2006-10-26  John Sullivan  <sullivan@apple.com>
1817
1818         Reviewed by Darin
1819         
1820         More plumbing for grammar checking. Still no grammars is checked.
1821
1822         * dom/DocumentMarker.h:
1823         (WebCore::DocumentMarker::):
1824         added Grammar to enum of marker types; removed explicit enum values; removed unnecessary "enum"
1825         
1826         * platform/GraphicsContext.h:
1827         renamed method drawLineForMisspelling to drawLineForMisspellingOrBadGrammar;
1828         now takes a bool parameter for whether it represents bad grammar or a misspelling 
1829         
1830         * platform/mac/GraphicsContextMac.mm:
1831         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
1832         Renamed from drawLineForMisspelling; uses green dot instead of red dot for grammar case. Changed
1833         an existing "assert" to "ASSERT".
1834         
1835         * rendering/InlineTextBox.h:
1836         renamed function paintSpellingMarker to paintSpellingOrGrammarMarker;
1837
1838         * rendering/InlineTextBox.cpp:
1839         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
1840         Renamed from paintSpellingMarker; now takes a bool parameter for whether it represents
1841         bad grammar or a misspelling
1842         (WebCore::InlineTextBox::paintAllMarkersOfType):
1843         now handles markers of type Grammar
1844
1845 === Safari-521.29 ===
1846         
1847 2006-10-26  Sam Weinig  <sam.weinig@gmail.com>
1848
1849         Reviewed by Mitz.
1850
1851         Fix for http://bugs.webkit.org/show_bug.cgi?id=11424
1852         Cleanup rendering code
1853
1854         - Assorted code cleanup.
1855
1856         * rendering/AutoTableLayout.cpp:
1857         * rendering/AutoTableLayout.h:
1858         (WebCore::AutoTableLayout::totalPercent):
1859         * rendering/CounterListItem.h:
1860         * rendering/CounterNode.cpp:
1861         * rendering/CounterNode.h:
1862         (WebCore::CounterNode::~CounterNode):
1863         (WebCore::CounterNode::isReset):
1864         * rendering/CounterResetNode.cpp:
1865         * rendering/CounterResetNode.h:
1866         * rendering/DataRef.h:
1867         (WebCore::DataRef::DataRef):
1868         * rendering/DeprecatedRenderSelect.h:
1869         * rendering/DeprecatedSlider.cpp:
1870         * rendering/DeprecatedSlider.h:
1871         * rendering/EllipsisBox.cpp:
1872         * rendering/EllipsisBox.h:
1873         (WebCore::EllipsisBox::EllipsisBox):
1874         * rendering/FixedTableLayout.cpp:
1875         * rendering/FixedTableLayout.h:
1876         * rendering/GapRects.h:
1877         * rendering/InlineBox.cpp:
1878         * rendering/InlineBox.h:
1879         (WebCore::InlineBox::InlineBox):
1880         (WebCore::InlineBox::setConstructed):
1881         (WebCore::InlineBox::clearTruncation):
1882         (WebCore::InlineBox::markDirty):
1883         * rendering/InlineFlowBox.cpp:
1884         * rendering/InlineFlowBox.h:
1885         (WebCore::InlineFlowBox::InlineFlowBox):
1886         (WebCore::InlineFlowBox::setConstructed):
1887         (WebCore::InlineFlowBox::setEdges):
1888         (WebCore::InlineFlowBox::setVerticalOverflowPositions):
1889         (WebCore::InlineFlowBox::setVerticalSelectionPositions):
1890         * rendering/InlineRunBox.h:
1891         (WebCore::InlineRunBox::paintBackgroundAndBorder):
1892         (WebCore::InlineRunBox::paintDecorations):
1893         * rendering/InlineTextBox.cpp:
1894         * rendering/InlineTextBox.h:
1895         (WebCore::InlineTextBox::InlineTextBox):
1896         (WebCore::InlineTextBox::end):
1897         (WebCore::InlineTextBox::textObject):
1898         * rendering/Length.h:
1899         (WebCore::Length::Length):
1900         * rendering/ListMarkerBox.cpp:
1901         * rendering/ListMarkerBox.h:
1902         * rendering/RenderPartObject.h:
1903         * rendering/RootInlineBox.cpp:
1904         * rendering/RootInlineBox.h:
1905         * rendering/SVGInlineFlowBox.cpp:
1906         * rendering/SVGInlineFlowBox.h:
1907         (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
1908         * rendering/SVGRootInlineBox.cpp:
1909         * rendering/SVGRootInlineBox.h:
1910         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
1911         * rendering/TableLayout.h:
1912         (WebCore::TableLayout::TableLayout):
1913         (WebCore::TableLayout::~TableLayout):
1914         * rendering/bidi.h:
1915         (WebCore::BidiStatus::BidiStatus):
1916         (WebCore::BidiRun::BidiRun):
1917         * rendering/break_lines.h:
1918
1919 2006-10-26  Justin Garcia  <justin.garcia@apple.com>
1920
1921         Reviewed by john
1922
1923         <http://bugs.webkit.org/show_bug.cgi?id=11329>
1924         Gmail Editor: Can't remove styling applied to selection after clicking "Remove Formatting" toolbar icon.
1925         
1926         * editing/Editor.cpp:
1927         (WebCore::Editor::removeFormattingAndStyle): Moved from JSEditor.
1928         Wrapped the plain text fragment in a style span with the document 
1929         default style so that it will appear unstyled regardless of where
1930         it is inserted.  Could have also inserted the plain text fragment 
1931         and then applied the document default style to it, but there is not 
1932         yet any redundant style prevention in ApplyStyleCommand, so this
1933         is cleaner.
1934         * editing/Editor.h:
1935         * editing/JSEditor.cpp:
1936
1937 2006-10-26  Oliver Hunt  <oliver@apple.com>
1938
1939         Reviewed by Anders.
1940         Fixes <rdar://problem/4800518> -- needed to update existing
1941         canvas path elements when transforms are performed on the
1942         context.
1943
1944         * html/CanvasRenderingContext2D.cpp:
1945         (WebCore::CanvasRenderingContext2D::scale):
1946         (WebCore::CanvasRenderingContext2D::rotate):
1947         (WebCore::CanvasRenderingContext2D::translate):
1948
1949 2006-10-26  Nikolas Zimmermann  <zimmermann@kde.org>
1950
1951         Reviewed by Darin.
1952
1953         Fix Qt/Linux build.
1954
1955         * platform/network/qt/ResourceLoaderManager.cpp:
1956         (WebCore::ResourceLoaderManager::slotData):
1957         (WebCore::ResourceLoaderManager::slotMimetype):
1958         (WebCore::ResourceLoaderManager::remove):
1959         (WebCore::ResourceLoaderManager::add):
1960         * platform/network/qt/ResourceLoaderQt.cpp:
1961         (WebCore::ResourceLoader::receivedResponse):
1962         * platform/qt/FrameQtClient.cpp:
1963         (WebCore::FrameQtClientDefault::openURL):
1964         * platform/qt/LoaderFunctionsQt.cpp:
1965         (WebCore::ServeSynchronousRequest):
1966
1967 2006-10-26  Adam Roben  <aroben@apple.com>
1968
1969         Reviewed by Adele.
1970
1971         Fix: <rdar://problem/3951815> add "type-to-select" feature for list
1972         boxes (<select> elements)
1973         Fix: http://bugs.webkit.org/show_bug.cgi?id=9764 New popup menus
1974         should have type-ahead selection without popping up menu
1975
1976         * WebCore.xcodeproj/project.pbxproj: Version wars.
1977         * html/HTMLSelectElement.h: Add new instance variables for type-ahead
1978         find.
1979         * html/HTMLSelectElement.cpp:
1980         (WebCore::HTMLSelectElement::HTMLSelectElement): Initialize new
1981         instance variables.
1982         (WebCore::HTMLSelectElement::defaultEventHandler): Perform type-ahead
1983         find on printable character presses.
1984         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Remove
1985         redundant check that the listIndex has changed (setSelectedIndex does
1986         this for us), and fix indentation.
1987         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Change an if
1988         to an else-if.
1989         (WebCore::stripLeadingWhiteSpace): Helper function for typeAheadFind()
1990         to strip leading whitespace (including non-breaking spaces) from a
1991         string.
1992         (WebCore::HTMLSelectElement::typeAheadFind): New method to perform
1993         type-ahead find.
1994         * platform/PopupMenu.h: Added new updateFromElement() method to be
1995         called from RenderMenuList::updateFromElement().
1996         * platform/mac/PopupMenuMac.mm:
1997         (WebCore::PopupMenu::updateFromElement): While we are using
1998         NSPopUpButtonCell for our popups, this method can stay empty.
1999         * rendering/RenderListBox.cpp:
2000         (WebCore::RenderListBox::updateFromElement): Scroll to reveal the first
2001         selected element.
2002         * rendering/RenderMenuList.cpp:
2003         (WebCore::RenderMenuList::updateFromElement): Tell the popup to update
2004         if it's visible.
2005
2006 2006-10-26  Darin Adler  <darin@apple.com>
2007
2008         Reviewed by Anders.
2009
2010         - fix http://bugs.webkit.org/show_bug.cgi?id=11360
2011           editing/pasteboard/copy-paste-bidi intermittently fails due to disappearance of anonymous RenderBlock
2012
2013         * editing/ReplaceSelectionCommand.cpp:
2014         (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
2015         Use two vectors instead of a hash map: more efficient, deterministic. There was no
2016         reason to use a hash table.
2017
2018 2006-10-26  Maciej Stachowiak  <mjs@apple.com>
2019
2020         Reviewed by Anders.
2021
2022         - .5% speed improvement by avoiding excess CFURLRef allocation
2023
2024         * loader/CachedResource.cpp:
2025         (WebCore::CachedResource::getCFURL): New method. For Mac only (for now), cache the CFURL
2026         here for later reuse.
2027         * loader/CachedResource.h:
2028         * loader/mac/LoaderFunctionsMac.mm:
2029         (WebCore::CheckCacheObjectStatus): Use the cached CFURL, don't make a whole new one.
2030
2031 2006-10-25  Darin Adler  <darin@apple.com>
2032
2033         Reviewed by Anders.
2034
2035         - removed 55 methods from WebCoreFrameBridge
2036         - changed callers to use Frame directly instead
2037         - put FrameLoaderTypes.h types into the WebCore namespace
2038         - first steps to get FrameLoader.h ready for cross-platform duty
2039
2040         * WebCore.exp:
2041         * WebCore.xcodeproj/project.pbxproj:
2042         * bridge/mac/BrowserExtensionMac.mm:
2043         (WebCore::BrowserExtensionMac::createNewWindow):
2044         * bridge/mac/FrameMac.h:
2045         * bridge/mac/FrameMac.mm:
2046         (WebCore::FrameMac::loadRequest):
2047         (WebCore::FrameMac::startRedirectionTimer):
2048         (WebCore::FrameMac::stopRedirectionTimer):
2049         (WebCore::FrameMac::passSubframeEventToSubframe):
2050         (WebCore::FrameMac::handledOnloadEvents):
2051         (WebCore::FrameMac::isLoadTypeReload):
2052         * bridge/mac/WebCoreFrameBridge.h:
2053         * bridge/mac/WebCoreFrameBridge.mm:
2054         (-[WebCoreFrameBridge executionContextForView:]):
2055         (updateRenderingForBindings):
2056         (-[WebCoreFrameBridge canTargetLoadInFrame:]):
2057         (-[WebCoreFrameBridge forceLayoutAdjustingViewSize:]):
2058         (-[WebCoreFrameBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
2059         (-[WebCoreFrameBridge installInFrame:]):
2060         (-[WebCoreFrameBridge numPendingOrLoadingRequests]):
2061         (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
2062         (-[WebCoreFrameBridge baseWritingDirectionForSelectionStart]):
2063         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
2064         (stringByCollapsingNonPrintingCharacters):
2065         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2066         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2067         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2068         * loader/FrameLoaderTypes.h:
2069         * loader/mac/FrameLoader.h:
2070         * loader/mac/FrameLoader.mm:
2071         (WebCore::FrameLoader::FrameLoader):
2072         (WebCore::FrameLoader::setupForReplace):
2073         (WebCore::FrameLoader::load):
2074         (WebCore::FrameLoader::activeDocumentLoader):
2075         (WebCore::FrameLoader::state):
2076         (WebCore::FrameLoader::setState):
2077         (WebCore::FrameLoader::clearProvisionalLoad):
2078         (WebCore::FrameLoader::markLoadComplete):
2079         (WebCore::FrameLoader::commitProvisionalLoad):
2080         (WebCore::FrameLoader::receivedMainResourceError):
2081         (WebCore::FrameLoader::handleFallbackContent):
2082         (WebCore::FrameLoader::isLoadingMainFrame):
2083         (WebCore::FrameLoader::continueAfterNewWindowPolicy):
2084         (WebCore::FrameLoader::continueAfterNavigationPolicy):
2085         (WebCore::FrameLoader::continueAfterWillSubmitForm):
2086         (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
2087         (WebCore::FrameLoader::transitionToCommitted):
2088         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2089         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
2090         (-[WebCoreFrameLoaderAsDelegate continueAfterNewWindowPolicy:]):
2091         (-[WebCoreFrameLoaderAsDelegate continueAfterNavigationPolicy:]):
2092         (-[WebCoreFrameLoaderAsDelegate continueAfterWillSubmitForm:]):
2093         * loader/mac/ImageDocumentMac.mm:
2094         (WebCore::finishImageLoad):
2095         * loader/mac/WebDocumentLoader.mm:
2096         (WebCore::DocumentLoader::isLoadingInAPISense):
2097         * loader/mac/WebMainResourceLoader.h:
2098         * loader/mac/WebMainResourceLoader.mm:
2099         (WebCore::MainResourceLoader::continueAfterContentPolicy):
2100         (-[WebCoreMainResourceLoaderAsPolicyDelegate continueAfterContentPolicy:]):
2101         * loader/mac/WebSubresourceLoader.mm:
2102         (-[WebCoreSubresourceHandle initWithLoader:]):
2103         * platform/mac/ListBoxMac.mm:
2104         (-[WebCoreTableView keyDown:]):
2105         (-[WebCoreTableView keyUp:]):
2106         * platform/mac/WebCoreTextField.mm:
2107         (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
2108
2109 2006-10-25  Steve Falkenburg  <sfalken@apple.com>
2110
2111         Reviewed by Darin.
2112
2113         Printing fixes
2114
2115         * page/Frame.cpp:
2116         (WebCore::Frame::adjustPageHeight):
2117         * page/Frame.h:
2118         (WebCore::Frame::setupRootForPrinting):
2119         (WebCore::Frame::computePageRects):
2120
2121 2006-10-25  Anders Carlsson  <acarlsson@apple.com>
2122
2123         Reviewed by Geoff.
2124
2125         <rdar://problem/4799088>
2126         REGRESSION: Translation widget fails to convert data and reports a "Data unavailable" error.
2127
2128         * loader/mac/WebSubresourceLoader.h:
2129         * loader/mac/WebSubresourceLoader.mm:
2130         (-[WebCoreSubresourceHandle initWithLoader:]):
2131         Set the HTTP method before the HTTP body.
2132
2133 2006-10-25  Geoffrey Garen  <ggaren@apple.com>
2134
2135         Reviewed by Adam.
2136
2137         Renamed WebFrameLoader to FrameLoader, to match class name.
2138
2139         * WebCore.xcodeproj/project.pbxproj:
2140         * bridge/mac/FrameMac.mm:
2141         * bridge/mac/WebCoreFrameBridge.mm:
2142         * loader/mac/FrameLoader.mm: Added.
2143         * loader/mac/IconLoaderMac.mm:
2144         * loader/mac/WebDocumentLoader.mm:
2145         * loader/mac/WebFrameLoader.h: Removed.
2146         * loader/mac/WebFrameLoader.mm: Removed.
2147         * loader/mac/WebLoader.mm:
2148         * loader/mac/WebMainResourceLoader.mm:
2149         * loader/mac/WebNetscapePlugInStreamLoader.mm:
2150         * loader/mac/WebSubresourceLoader.mm:
2151
2152 2006-10-25  Darin Adler  <darin@apple.com>
2153
2154         - fix full builds
2155
2156         * WebCore.xcodeproj/project.pbxproj: Mark bridge/mac/WebCoreResourceLoader.h as private.
2157
2158 2006-10-25  David Smith  <catfish.man@gmail.com>
2159
2160         Reviewed by Mitz.
2161
2162         Fixed REGRESSION (r17280): Repro crash when clicking a link with target="_blank"
2163         http://bugs.webkit.org/show_bug.cgi?id=11411
2164
2165         * bridge/mac/WebCoreFrameBridge.mm:
2166         (-[WebCoreFrameBridge canTargetLoadInFrame:]): Check that the target has a frame before using it.
2167
2168 2006-10-25  Maciej Stachowiak  <mjs@apple.com>
2169
2170         Rubber stamped by Mitz.
2171
2172         - moved some files that are essentially part of the ResourceLoader implementation to platform/network/mac
2173
2174         * WebCore.xcodeproj/project.pbxproj:
2175         * bridge/mac/WebCoreResourceLoader.h: Moved to platform/network/mac.
2176         * bridge/mac/WebCoreResourceLoaderImp.h: Moved to platform/network/mac.
2177         * bridge/mac/WebCoreResourceLoaderImp.mm: Moved to platform/network/mac.
2178
2179 2006-10-25  Maciej Stachowiak  <mjs@apple.com>
2180
2181         Rubber stamped by Mark.
2182
2183         - remove no longer existing symbol that was breaking linking
2184
2185         * WebCore.exp:
2186
2187 2006-10-25  Maciej Stachowiak  <mjs@apple.com>
2188
2189         Reviewed by Mitz.
2190         
2191         - fixed "REGRESSION: Activity window doesn't always list all files until refresh"
2192         http://bugs.webkit.org/show_bug.cgi?id=11212
2193
2194         I couldn't figure out how to write a test case.
2195
2196         * bindings/js/kjs_window.cpp:
2197         (KJS::Window::clear): Avoid crashing if already detached.
2198         * bridge/mac/FrameMac.h:
2199         * bridge/mac/FrameMac.mm:
2200         (WebCore::FrameMac::clear): Change prototype to make this a proper
2201         overload for Frame::clear once again(!).
2202
2203 2006-10-24  Darin Adler  <darin@apple.com>
2204
2205         Reviewed by Anders.
2206
2207         - converted WebFrameLoaderClient to C++
2208         - renamed frame->frameLoader() function to frame->loader()
2209         - renamed [bridge impl] to [bridge _frame]
2210         - removed some bridge methods
2211
2212         * WebCore.exp: Added more exports.
2213         * WebCore.xcodeproj/project.pbxproj: Made FrameTree.h private instead of project-internal
2214         so it can be used in WebKit.
2215
2216         * bridge/mac/BrowserExtensionMac.mm:
2217         (WebCore::BrowserExtensionMac::createNewWindow):
2218         * bridge/mac/FrameMac.mm:
2219         (WebCore::FrameMac::createFrame):
2220         (WebCore::FrameMac::didFirstLayout):
2221         * bridge/mac/WebCoreAXObject.mm:
2222         (-[WebCoreAXObject rendererForView:]):
2223         * bridge/mac/WebCoreFrameBridge.h:
2224         * bridge/mac/WebCoreFrameBridge.mm:
2225         (-[WebCoreFrameBridge _shouldAllowAccessFrom:]):
2226         (-[WebCoreFrameBridge canTargetLoadInFrame:]):
2227         (-[WebCoreFrameBridge setOpener:]):
2228         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
2229         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
2230         (-[WebCoreFrameBridge setTitle:]):
2231         (-[WebCoreFrameBridge originalRequestURL]):
2232         (-[WebCoreFrameBridge isLoadTypeReload]):
2233         (-[WebCoreFrameBridge frameDetached]):
2234         (-[WebCoreFrameBridge tokenizerProcessedData]):
2235         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
2236         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
2237         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
2238         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
2239         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2240         (-[WebCoreFrameBridge incomingReferrer]):
2241         (-[WebCoreFrameBridge isReloading]):
2242         (-[WebCoreFrameBridge handledOnloadEvents]):
2243         (-[WebCoreFrameBridge mainResourceURLResponse]):
2244         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
2245         (-[WebCoreFrameBridge _frame]):
2246         (-[WebCoreFrameBridge executionContextForView:]):
2247         * bridge/mac/WebCorePageBridge.mm:
2248         (-[WebCorePageBridge setMainFrame:]):
2249         * dom/Position.cpp:
2250         (WebCore::Position::upstream):
2251         * loader/mac/IconLoaderMac.mm:
2252         (IconLoader::notifyIconChanged):
2253         * loader/mac/WebDocumentLoader.mm:
2254         (WebCore::DocumentLoader::frameLoader):
2255         (WebCore::DocumentLoader::stopLoading):
2256         (WebCore::DocumentLoader::finishedLoading):
2257         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2258         * loader/mac/WebFormState.mm:
2259         (WebCore::FormState::FormState):
2260         * loader/mac/WebFrameLoader.h:
2261         * loader/mac/WebFrameLoader.mm:
2262         (WebCore::FrameLoader::~FrameLoader):
2263         (WebCore::FrameLoader::prepareForLoadStart):
2264         (WebCore::FrameLoader::finalSetupForReplace):
2265         (WebCore::FrameLoader::safeLoad):
2266         (WebCore::FrameLoader::load):
2267         (WebCore::FrameLoader::startLoading):
2268         (WebCore::FrameLoader::stopLoadingSubframes):
2269         (WebCore::FrameLoader::stopLoading):
2270         (WebCore::FrameLoader::cancelPendingArchiveLoad):
2271         (WebCore::FrameLoader::defersCallbacksChanged):
2272         (WebCore::FrameLoader::setDefersCallbacks):
2273         (WebCore::FrameLoader::setDocumentLoader):
2274         (WebCore::FrameLoader::provisionalLoadStarted):
2275         (WebCore::FrameLoader::clearProvisionalLoad):
2276         (WebCore::FrameLoader::identifierForInitialRequest):
2277         (WebCore::FrameLoader::willSendRequest):
2278         (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
2279         (WebCore::FrameLoader::didCancelAuthenticationChallenge):
2280         (WebCore::FrameLoader::didReceiveResponse):
2281         (WebCore::FrameLoader::didReceiveData):
2282         (WebCore::FrameLoader::didFinishLoad):
2283         (WebCore::FrameLoader::didFailToLoad):
2284         (WebCore::FrameLoader::privateBrowsingEnabled):
2285         (WebCore::FrameLoader::receivedMainResourceError):
2286         (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
2287         (WebCore::FrameLoader::clientRedirected):
2288         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
2289         (WebCore::FrameLoader::closeOldDataSources):
2290         (WebCore::FrameLoader::opened):
2291         (WebCore::FrameLoader::commitProvisionalLoad):
2292         (WebCore::FrameLoader::download):
2293         (WebCore::FrameLoader::finishedLoading):
2294         (WebCore::FrameLoader::notifyIconChanged):
2295         (WebCore::FrameLoader::cancelledError):
2296         (WebCore::FrameLoader::fileDoesNotExistError):
2297         (WebCore::FrameLoader::willUseArchive):
2298         (WebCore::FrameLoader::isArchiveLoadPending):
2299         (WebCore::FrameLoader::handleUnimplementablePolicy):
2300         (WebCore::FrameLoader::cannotShowMIMEType):
2301         (WebCore::FrameLoader::interruptionForPolicyChangeError):
2302         (WebCore::FrameLoader::canShowMIMEType):
2303         (WebCore::FrameLoader::representationExistsForURLScheme):
2304         (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
2305         (WebCore::FrameLoader::checkContentPolicy):
2306         (WebCore::FrameLoader::reloadAllowingStaleData):
2307         (WebCore::FrameLoader::reload):
2308         (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
2309         (WebCore::FrameLoader::finishedLoadingDocument):
2310         (WebCore::FrameLoader::committedLoad):
2311         (WebCore::FrameLoader::revertToProvisional):
2312         (WebCore::FrameLoader::setMainDocumentError):
2313         (WebCore::FrameLoader::mainReceivedCompleteError):
2314         (WebCore::FrameLoader::subframeIsLoading):
2315         (WebCore::FrameLoader::willChangeTitle):
2316         (WebCore::FrameLoader::didChangeTitle):
2317         (WebCore::FrameLoader::checkNewWindowPolicy):
2318         (WebCore::FrameLoader::continueAfterNewWindowPolicy):
2319         (WebCore::FrameLoader::checkNavigationPolicy):
2320         (WebCore::FrameLoader::continueAfterNavigationPolicy):
2321         (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
2322         (WebCore::FrameLoader::didFirstLayout):
2323         (WebCore::FrameLoader::frameLoadCompleted):
2324         (WebCore::FrameLoader::transitionToCommitted):
2325         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2326         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
2327         (WebCore::FrameLoader::sendRemainingDelegateMessages):
2328         (WebCore::FrameLoader::requestFromDelegate):
2329         (WebCore::FrameLoader::post):
2330         (WebCore::FrameLoader::detachChildren):
2331         (WebCore::FrameLoader::detachFromParent):
2332         (WebCore::FrameLoader::addExtraFieldsToRequest):
2333         (WebCore::FrameLoader::actionInformation):
2334         (WebCore::FrameLoader::checkLoadComplete):
2335         (WebCore::FrameLoader::setClient):
2336         (WebCore::FrameLoader::client):
2337         (WebCore::FrameLoaderClient::~FrameLoaderClient):
2338         * loader/mac/WebFrameLoaderClient.h:
2339         * loader/mac/WebLoader.mm:
2340         (WebCore::WebResourceLoader::frameLoader):
2341         * loader/mac/WebSubresourceLoader.mm:
2342         (-[WebCoreSubresourceHandle initWithLoader:]):
2343         * page/Frame.cpp:
2344         (WebCore::Frame::loader):
2345         * page/Frame.h:
2346         * platform/mac/SliderMac.mm:
2347         (Slider::focusPolicy):
2348
2349 2006-10-24  Darin Adler  <darin@apple.com>
2350
2351         Rubber stamped by Anders.
2352
2353         - get rid of the assertion firing while running the layout tests
2354
2355         This does not fix the real problem, which is that we need to map offsets within
2356         possibly-text-transformed text in the render tree to DOM tree offsets and vice
2357         versa -- but it gets the tests running again.
2358
2359         * dom/Position.cpp: (WebCore::Position::upstream): Commented out the assertion.
2360
2361 2006-10-24  Maciej Stachowiak  <mjs@apple.com>
2362
2363         Reviewed by Oliver.
2364
2365         - more ResourceLoader cleanup
2366             - moved HTTPHeaderMap out of ResourceRequest class, so ResourceResponse will be able to use it too
2367             - took out attempts to suppress setting of "HEAD" and "GET" methods, since underlying bugs are now fixed
2368         
2369         * loader/LoaderFunctions.h:
2370         * loader/mac/LoaderFunctionsMac.mm:
2371         (WebCore::ServeSynchronousRequest):
2372         * loader/mac/WebSubresourceLoader.mm:
2373         (-[WebCoreSubresourceHandle initWithLoader:]):
2374         * platform/network/HTTPHeaderMap.h: Added.
2375         * platform/network/ResourceLoader.cpp:
2376         (WebCore::ResourceLoader::requestHeaders):
2377         * platform/network/ResourceLoader.h:
2378         * platform/network/ResourceRequest.h:
2379         * platform/network/cf/ResourceLoaderCFNet.cpp:
2380         (WebCore::addHeadersFromHashMap):
2381         * xml/xmlhttprequest.cpp:
2382         (WebCore::XMLHttpRequest::send):
2383         * xml/xmlhttprequest.h:
2384
2385 2006-10-24  Justin Garcia  <justin.garcia@apple.com>
2386
2387         Reviewed by darin
2388
2389         <http://bugs.webkit.org/show_bug.cgi?id=10993>
2390         GMail Editor: Caret doesn't always position itself after list marker
2391         
2392         List creation uses moveParagraphs to push content into list items.  
2393         moveParagraphs uses a TextIterator to restore selections after moves.
2394         Some characters emitted by the TextIterator had bad ranges associated
2395         with them.  rangeFromLocationAndLength would skip past the range it
2396         should have used when asked for ranges of length 0.
2397
2398         * editing/TextIterator.cpp:
2399         (WebCore::TextIterator::TextIterator): No longer need to initialize a
2400         removed member variable.
2401         (WebCore::TextIterator::advance): An extra newline is emitted when leaving
2402         some blocks.  Use the same range for this newline as for the first newline.
2403         We should remove this code and just emit two '\n's.
2404         (WebCore::TextIterator::handleTextNode): Setup m_range.
2405         (WebCore::TextIterator::handleTextBox): Ditto.
2406         (WebCore::TextIterator::handleReplacedElement): Ditto.
2407         (WebCore::TextIterator::handleNonTextNode): Ditto.
2408         (WebCore::TextIterator::exitNode): Use an m_range from the last VisiblePosition
2409         in the block we're leaving to that VP after that one.
2410         (WebCore::TextIterator::emitCharacter): This function now takes in the start
2411         and the end of the range associated with the emited character, and sets up m_range.
2412         (WebCore::TextIterator::range): Return m_range.  If it is null (we are atEnd), 
2413         return the end of the range used to create the iterator, as a convenience to
2414         callers that use call range() on an iterator that is atEnd.
2415         (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
2416         Same as the changes made to TextIterator's constructor.
2417         (WebCore::SimplifiedBackwardsTextIterator::advance): Use a null m_range instead of
2418         a null m_positionNode to signal that we're finished.
2419         (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Ditto.
2420         (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement): Similar to changes
2421         made to TextIterator.
2422         (WebCore::SimplifiedBackwardsTextIterator::emitCharacter): Ditto.
2423         (WebCore::SimplifiedBackwardsTextIterator::emitNewline): Simplified.
2424         (WebCore::SimplifiedBackwardsTextIterator::range): Similar to the changes made to
2425         TextIterator::range.
2426         (WebCore::CharacterIterator::range): This function assumed that an iterator's
2427         range() was safe to modify.
2428         (WebCore::TextIterator::rangeFromLocationAndLength):
2429         If the range we're looking for starts in the current chunk, this function assumed
2430         that if the chunk started in a text node, it would end in the same text node.  This
2431         is no longer the case.
2432         If the range we're looking for starts in the middle of the current chunk, I assume
2433         that the chunk is inside a text node, because those are the only chunks with length
2434         greater than one at the moment.
2435         If the range we're looking for is a zero length range that starts/ends at the end of the
2436         current chunk, we used to return the start of the next chunk, but that's wrong and
2437         is what caused this bug.
2438         * editing/TextIterator.h:
2439         (WebCore::TextIterator::atEnd): The iterator is atEnd when m_range is null.
2440         (WebCore::SimplifiedBackwardsTextIterator::atEnd):
2441         * editing/visible_units.cpp:
2442         (WebCore::previousBoundary): Cleaned up by using a convenience function.
2443         (WebCore::nextBoundary): Ditto.
2444
2445 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
2446
2447         Reviewed by Maciej.
2448
2449         * platform/network/mac/ResourceLoaderMac.mm:
2450         (WebCore::ResourceLoader::start):
2451         Don't retain the header dictionary.
2452
2453 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
2454
2455         Reviewed by Anders.
2456
2457         Fixed http://bugs.webkit.org/show_bug.cgi?id=11404
2458         REGRESSION: Reproducible assertion failure in Shared<WebCore::StringImpl>::ref() 
2459         running svg/custom/svg/custom/gradient-attr-update.svg
2460         
2461         SVGRenderStyle wasn't ref-ing the shared objects it held onto. Oops.
2462
2463         * ksvg2/css/SVGRenderStyle.h:
2464         * ksvg2/css/SVGRenderStyleDefs.h:
2465
2466 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
2467
2468         Reviewed by Mitz.
2469
2470         * platform/network/ResourceRequest.h:
2471         (WebCore::ResourceRequest::ResourceRequest):
2472         Set the http method to "GET" in the constructor that takes a String.
2473
2474 2006-10-24  Sam Weinig  <sam.weinig@gmail.com>
2475
2476         Reviewed by Tim H.
2477
2478         Move kcanvas/Render* and kcanvas/SVG* to rendering/Render*
2479         and rendering/SVG* respectively.  Fix Xcode project and
2480         CMakeLists.txt to account for the moves.
2481
2482         * CMakeLists.txt:
2483         * WebCore.xcodeproj/project.pbxproj:
2484         * kcanvas/RenderForeignObject.cpp: Removed.
2485         * kcanvas/RenderForeignObject.h: Removed.
2486         * kcanvas/RenderPath.cpp: Removed.
2487         * kcanvas/RenderPath.h: Removed.
2488         * kcanvas/RenderSVGContainer.cpp: Removed.
2489         * kcanvas/RenderSVGContainer.h: Removed.
2490         * kcanvas/RenderSVGImage.cpp: Removed.
2491         * kcanvas/RenderSVGImage.h: Removed.
2492         * kcanvas/RenderSVGInline.cpp: Removed.
2493         * kcanvas/RenderSVGInline.h: Removed.
2494         * kcanvas/RenderSVGInlineText.cpp: Removed.
2495         * kcanvas/RenderSVGInlineText.h: Removed.
2496         * kcanvas/RenderSVGTSpan.cpp: Removed.
2497         * kcanvas/RenderSVGTSpan.h: Removed.
2498         * kcanvas/RenderSVGText.cpp: Removed.
2499         * kcanvas/RenderSVGText.h: Removed.
2500         * kcanvas/SVGInlineFlowBox.cpp: Removed.
2501         * kcanvas/SVGInlineFlowBox.h: Removed.
2502         * kcanvas/SVGRootInlineBox.cpp: Removed.
2503         * kcanvas/SVGRootInlineBox.h: Removed.
2504
2505 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
2506
2507         Rolling back in, now fixed:
2508         
2509         Nixed a few more redundant loading functions in Frame. Did my best to update
2510         the non-Mac builds.
2511
2512         * bridge/mac/FrameMac.h:
2513         * bridge/mac/FrameMac.mm:
2514         (WebCore::FrameMac::urlSelected): Kept always 'true' argument for userGesture
2515         always 'true', because changing it broke the world, and testing seems to
2516         indicate that the one caller that might have passed 'false' didn't need to.
2517         * page/Frame.cpp:
2518         (WebCore::Frame::requestFrame):
2519         (WebCore::Frame::frameLoader):
2520         (WebCore::Frame::redirectionTimerFired):
2521         * page/Frame.h:
2522         * platform/gdk/FrameGdk.cpp:
2523         * platform/gdk/FrameGdk.h:
2524         * platform/gdk/TemporaryLinkStubs.cpp:
2525         (FrameGdk::issueCopyCommand):
2526         * platform/qt/FrameQt.cpp:
2527         * platform/qt/FrameQt.h:
2528         * platform/win/TemporaryLinkStubs.cpp:
2529         (WebCore::FrameWin::shouldInterruptJavaScript):
2530         (WebCore::FrameWin::issueCopyCommand):
2531
2532 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
2533
2534         Fix the build (Update for changes to ResourceLoader)
2535         
2536         * platform/network/cf/ResourceLoaderCFNet.cpp:
2537         (WebCore::addHeadersFromHashMap):
2538         (WebCore::ResourceLoader::start):
2539         (WebCore::ResourceLoader::cancel):
2540
2541 2006-10-24  Sam Weinig  <sam.weinig@gmail.com>
2542
2543         Reviewed by Mitz.
2544
2545         Change #includes using <kcanvas/*.h> to use "*.h" instead
2546         to prepare for moving the kcanvas files.
2547
2548         * kcanvas/RenderSVGContainer.h:
2549         * ksvg2/svg/SVGAElement.cpp:
2550         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2551         * ksvg2/svg/SVGFETileElement.cpp:
2552         * ksvg2/svg/SVGStyledLocatableElement.cpp:
2553         * ksvg2/svg/SVGStyledTransformableElement.cpp:
2554
2555 2006-10-24  Maciej Stachowiak  <mjs@apple.com>
2556
2557         Reviewed by Darin.
2558
2559         - More movement towards the final network API.
2560         
2561         Changed ResourceLoader::create to take a ResurceRequest and start
2562         the load. Removed methods relating to setting request
2563         headers. Removed methods relating to metaData. Added some more
2564         convenience methods to ResourceRequest.
2565
2566         * dom/XMLTokenizer.cpp:
2567         (WebCore::openFunc):
2568         * loader/LoaderFunctions.h:
2569         * loader/icon/IconLoader.cpp:
2570         (IconLoader::startLoading):
2571         (IconLoader::didFinishLoading):
2572         * loader/icon/IconLoader.h:
2573         * loader/loader.cpp:
2574         (WebCore::Loader::servePendingRequests):
2575         * loader/mac/LoaderFunctionsMac.mm:
2576         (WebCore::ServeSynchronousRequest):
2577         * platform/gdk/FrameGdk.cpp:
2578         (WebCore::FrameGdkClientDefault::openURL):
2579         (WebCore::FrameGdkClientDefault::submitForm):
2580         * platform/network/ResourceLoader.cpp:
2581         (WebCore::ResourceLoader::ResourceLoader):
2582         (WebCore::ResourceLoader::create):
2583         (WebCore::ResourceLoader::responseHTTPHeadersAsString):
2584         (WebCore::ResourceLoader::url):
2585         (WebCore::ResourceLoader::postData):
2586         (WebCore::ResourceLoader::method):
2587         (WebCore::ResourceLoader::client):
2588         * platform/network/ResourceLoader.h:
2589         * platform/network/ResourceLoaderInternal.h:
2590         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2591         * platform/network/ResourceRequest.h:
2592         (WebCore::ResourceRequest::ResourceRequest):
2593         (WebCore::ResourceRequest::httpAccept):
2594         (WebCore::ResourceRequest::setHTTPAccept):
2595         (WebCore::ResourceRequest::addHTTPHeaderFields):
2596         * platform/network/mac/ResourceLoaderMac.mm:
2597         (WebCore::ResourceLoader::start):
2598         (WebCore::ResourceLoader::receivedResponse):
2599         * platform/qt/FrameQtClient.cpp:
2600         (WebCore::FrameQtClientDefault::openURL):
2601         (WebCore::FrameQtClientDefault::submitForm):
2602         * platform/win/TemporaryLinkStubs.cpp:
2603         (WebCore::ResourceLoader::retrieveResponseEncoding):
2604         * xml/XSLTProcessor.cpp:
2605         (WebCore::docLoaderFunc):
2606         * xml/xmlhttprequest.cpp:
2607         (WebCore::XMLHttpRequest::send):
2608         (WebCore::XMLHttpRequest::didFinishLoading):
2609         (WebCore::XMLHttpRequest::didReceiveData):
2610         * xml/xmlhttprequest.h:
2611
2612 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
2613
2614         Reviewed by Geoff.
2615
2616         * loader/FormData.cpp:
2617         (WebCore::FormData::FormData):
2618         * loader/FormData.h:
2619         (WebCore::FormData::FormData):
2620         Add new constructor that takes a void* and a size.
2621
2622 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
2623
2624         Rolling out my last change because it broke the world.
2625
2626         * bridge/mac/FrameMac.h:
2627         * bridge/mac/FrameMac.mm:
2628         (WebCore::FrameMac::openURL):
2629         (WebCore::FrameMac::openURLRequest):
2630         (WebCore::FrameMac::urlSelected):
2631         * page/Frame.cpp:
2632         (WebCore::Frame::openURL):
2633         (WebCore::Frame::frameLoader):
2634         (WebCore::Frame::requestFrame):
2635         (WebCore::Frame::redirectionTimerFired):
2636         * page/Frame.h:
2637         * platform/gdk/FrameGdk.cpp:
2638         (WebCore::FrameGdk::openURL):
2639         * platform/gdk/FrameGdk.h:
2640         * platform/gdk/TemporaryLinkStubs.cpp:
2641         * platform/qt/FrameQt.cpp:
2642         (WebCore::FrameQt::openURL):
2643         (WebCore::FrameQt::openURLRequest):
2644         * platform/qt/FrameQt.h:
2645         * platform/win/TemporaryLinkStubs.cpp:
2646         (WebCore::FrameWin::openURL):
2647         (WebCore::FrameWin::openURLRequest):
2648
2649 2006-10-24  Nikolas Zimmermann  <zimmermann@kde.org>
2650
2651         Reviewed by Adam.
2652
2653         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11396
2654
2655         Kill KRenderingFillPainter/KRenderingStrokePainter. Those are not needed
2656         anymore, since kcanvas/ksvg2 are tightly integrated. No LayoutTests fixed
2657         or broken.
2658
2659         * CMakeLists.txt:
2660         * WebCore.xcodeproj/project.pbxproj:
2661         * kcanvas/KCanvasTreeDebug.cpp:
2662         (WebCore::operator<<):
2663         (WebCore::writeStyle):
2664         * kcanvas/RenderPath.cpp:
2665         (WebCore::RenderPath::fillContains):
2666         * kcanvas/device/KRenderingFillPainter.cpp:
2667         * kcanvas/device/KRenderingFillPainter.h:
2668         * kcanvas/device/KRenderingStrokePainter.cpp:
2669         * kcanvas/device/KRenderingStrokePainter.h:
2670         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
2671         (WebCore::KRenderingPaintServerLinearGradientQt::setup):
2672         (WebCore::KRenderingPaintServerRadialGradientQt::setup):
2673         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
2674         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
2675         (WebCore::KRenderingPaintServerQt::setPenProperties):
2676         * kcanvas/device/qt/KRenderingPaintServerQt.h:
2677         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
2678         (WebCore::KRenderingPaintServerSolidQt::setup):
2679         * kcanvas/device/qt/RenderPathQt.cpp:
2680         (WebCore::getPathStroke):
2681         (WebCore::RenderPath::strokeBBox):
2682         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
2683         (WebCore::RenderPath::strokeBBox):
2684         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
2685         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
2686         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2687         (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
2688         (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
2689         * kcanvas/device/quartz/QuartzSupport.h:
2690         (WebCore::CGLineCapFromKC):
2691         (WebCore::CGLineJoinFromKC):
2692         * kcanvas/device/quartz/QuartzSupport.mm:
2693         (WebCore::applyStrokeStyleToContext):
2694         (WebCore::strokeBoundingBox):
2695         * ksvg2/css/SVGCSSStyleSelector.cpp:
2696         (WebCore::CSSStyleSelector::applySVGProperty):
2697         * ksvg2/css/SVGRenderStyle.h:
2698         (WebCore::SVGRenderStyle::InheritedFlags::):
2699         * ksvg2/css/SVGRenderStyleDefs.h:
2700         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2701         (WebCore::KSVGPainterFactory::dashArrayFromRenderingStyle):
2702         * ksvg2/misc/KCanvasRenderingStyle.h:
2703         * ksvg2/svg/SVGFEImageElement.cpp:
2704
2705 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
2706
2707         Reviewed by Anders.
2708
2709         Nixed a few more redundant loading functions in Frame. Did my best to update
2710         the non-Mac builds.
2711
2712         * bridge/mac/FrameMac.h:
2713         * bridge/mac/FrameMac.mm:
2714         (WebCore::FrameMac::urlSelected): Changed always 'true' argument for userGesture
2715         to actually check for a user gesture. New callers rely on this behavior,
2716         and it seems like the previous behavior must have been a bug.
2717         * page/Frame.cpp:
2718         (WebCore::Frame::requestFrame):
2719         (WebCore::Frame::frameLoader):
2720         (WebCore::Frame::redirectionTimerFired):
2721         * page/Frame.h:
2722         * platform/gdk/FrameGdk.cpp:
2723         * platform/gdk/FrameGdk.h:
2724         * platform/gdk/TemporaryLinkStubs.cpp:
2725         (FrameGdk::issueCopyCommand):
2726         * platform/qt/FrameQt.cpp:
2727         * platform/qt/FrameQt.h:
2728         * platform/win/TemporaryLinkStubs.cpp:
2729         (WebCore::FrameWin::shouldInterruptJavaScript):
2730         (WebCore::FrameWin::issueCopyCommand):
2731
2732 2006-10-24  Nikolas Zimmermann  <zimmermann@kde.org>
2733
2734         Reviewed by Maciej.
2735
2736         Fix Qt/Linux build.
2737
2738         - Remove BrowserExtensionQt, move it's methods to Page/FrameQt.
2739         - Fix CMakeLists.txt to include platform/network.
2740
2741         * CMakeLists.txt:
2742         * platform/qt/BrowserExtensionQt.cpp: Removed.
2743         * platform/qt/BrowserExtensionQt.h: Removed.
2744         * platform/qt/FrameQt.cpp:
2745         (WebCore::FrameQt::FrameQt):
2746         (WebCore::FrameQt::createNewWindow):
2747         (WebCore::FrameQt::goBackOrForward):
2748         (WebCore::FrameQt::historyURL):
2749         (WebCore::FrameQt::getHistoryLength):
2750         * platform/qt/FrameQt.h:
2751         * platform/qt/PageQt.cpp:
2752         (WebCore::Page::canRunModal):
2753         (WebCore::Page::canRunModalNow):
2754         (WebCore::Page::runModal):
2755
2756 2006-10-24  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
2757
2758         Reviewed by Tim H.
2759
2760         Fix for http://bugs.webkit.org/show_bug.cgi?id=11314
2761         Fix build when XSLT_SUPPORT is not defined
2762
2763         Fix unconditional use of XSLT support.
2764
2765         * dom/XMLTokenizer.cpp:
2766         (WebCore::XMLTokenizer::end):
2767
2768 2006-10-24  Simon Hausmann  <hausmann@kde.org>
2769
2770         Reviewed by Darin.
2771
2772         * CMakeLists.txt: Added project name to kde4_automoc macro, as
2773           required by the latest KDE4 cmake module.
2774
2775 2006-10-24  Mitz Pettel  <mitz@webkit.org>
2776
2777         Reviewed by Tim H.
2778
2779         - fix http://bugs.webkit.org/show_bug.cgi?id=11394
2780           HTMLViewSourceDocuments are leaking
2781
2782         * html/HTMLViewSourceDocument.h: Changed RefPtr to plain pointer to avoid
2783         ref cycle.
2784
2785 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
2786
2787         Reviewed by Darin.
2788
2789         Removed one of Frame's redundant urlSelected methods.
2790
2791         * bridge/mac/FrameMac.h:
2792         * bridge/mac/FrameMac.mm:
2793         (WebCore::FrameMac::urlSelected):
2794         since it's unused.
2795         * html/HTMLAnchorElement.cpp:
2796         (WebCore::HTMLAnchorElement::defaultEventHandler): Changed DeprecatedString
2797         to String because the former is deprecated and its performance is irrelevant
2798         here. Added call to completeURL because Frame no longer does it for us.
2799         Having the call here also improves clarity about the element's behavior.
2800         * ksvg2/svg/SVGAElement.cpp:
2801         (WebCore::SVGAElement::defaultEventHandler): ditto. Also removed bizarre
2802         irrelevent NULL checks on ownerDocument() because I couldn't help myself.
2803         * page/Frame.cpp:
2804         (WebCore::Frame::changeLocation):
2805         (WebCore::Frame::urlSelected):
2806         * page/Frame.h:
2807         * platform/network/ResourceRequest.h: Removed explicit keyword on constructor
2808         because we want to be able to use these constructors instead of helper functions
2809         mimicking their behavior sprinkled across different classes.
2810         (WebCore::ResourceRequest::ResourceRequest):
2811
2812 2006-10-24  Brady Eidson  <beidson@apple.com>
2813
2814         Reviewed by Maciej
2815
2816         Moved FrameLoader from WebCoreFrameBridge to Frame.  Frame.h/cpp have generic accessors to the FrameLoader itself
2817         and creation/deletion is currently managed in FrameMac.mm
2818
2819         Besides explicitly commented-upon methods, most of the touched code simply changes to get the FrameLoader from the 
2820         frame instead of the bridge.
2821
2822         The method [WebCoreFrameBridge frameLoader] remains but only for WebKit's use - No new WebCore code should make 
2823         use of it as its days are numbered!
2824
2825         * bridge/mac/FrameMac.mm:
2826         (WebCore::FrameMac::FrameMac): Create the FrameLoader
2827         (WebCore::FrameMac::~FrameMac): Nuke it
2828         (WebCore::FrameMac::loadRequest):
2829
2830         * bridge/mac/WebCoreFrameBridge.h: No longer holds an m_frameLoader
2831         * bridge/mac/WebCoreFrameBridge.mm:
2832         (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]): No longer creates the FrameLoader
2833         (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]): Ditto
2834         (-[WebCoreFrameBridge clearFrame]): No longer tears down the FrameLoader
2835         (-[WebCoreFrameBridge setFrameLoaderClient:]):
2836         (-[WebCoreFrameBridge frameLoader]):
2837         (-[WebCoreFrameBridge setTitle:]):
2838         (-[WebCoreFrameBridge didFirstLayout]):
2839         (-[WebCoreFrameBridge notifyIconChanged:]):
2840         (-[WebCoreFrameBridge originalRequestURL]):
2841         (-[WebCoreFrameBridge isLoadTypeReload]):
2842         (-[WebCoreFrameBridge frameDetached]):
2843         (-[WebCoreFrameBridge tokenizerProcessedData]):
2844         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
2845         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
2846         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
2847         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
2848         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2849         (-[WebCoreFrameBridge incomingReferrer]):
2850         (-[WebCoreFrameBridge isReloading]):
2851         (-[WebCoreFrameBridge handledOnloadEvents]):
2852         (-[WebCoreFrameBridge mainResourceURLResponse]):
2853         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
2854
2855         * loader/mac/WebDocumentLoader.mm:
2856         (WebCore::DocumentLoader::frameLoader):
2857
2858         * loader/mac/WebFrameLoader.mm:
2859         (WebCore::FrameLoader::load):
2860         (WebCore::FrameLoader::stopLoadingSubframes):
2861         (WebCore::FrameLoader::defersCallbacksChanged):
2862         (WebCore::FrameLoader::setState):
2863         (WebCore::FrameLoader::closeOldDataSources):
2864         (WebCore::FrameLoader::subframeIsLoading):
2865         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
2866         (WebCore::FrameLoader::post):
2867         (WebCore::FrameLoader::detachChildren):
2868         (WebCore::FrameLoader::checkLoadComplete):
2869
2870         * loader/mac/WebLoader.mm:
2871         (WebCore::WebResourceLoader::frameLoader):
2872
2873         * loader/mac/WebSubresourceLoader.mm:
2874         (-[WebCoreSubresourceHandle initWithLoader:]):
2875
2876         * page/Frame.cpp:
2877         (WebCore::Frame::frameLoader):
2878         * page/Frame.h:
2879         * page/FramePrivate.h:
2880         (WebCore::FramePrivate::FramePrivate):
2881
2882 2006-10-24  Darin Adler  <darin@apple.com>
2883
2884         Reviewed by Maciej.
2885
2886         - fixed two crashes in layout tests I just introduced
2887
2888         * loader/mac/WebFrameLoader.mm:
2889         (WebCore::FrameLoader::load): Add null check.
2890         (WebCore::FrameLoader::setState): Ditto.
2891
2892 2006-10-23  Darin Adler  <darin@apple.com>
2893
2894         Reviewed by Geoff.
2895
2896         - converted WebDocumentLoader to C++
2897
2898         * WebCore.exp:
2899         * bridge/mac/WebCoreFrameBridge.mm:
2900         (-[WebCoreFrameBridge setTitle:]):
2901         (-[WebCoreFrameBridge originalRequestURL]):
2902         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
2903         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
2904         (-[WebCoreFrameBridge incomingReferrer]):
2905         (-[WebCoreFrameBridge isReloading]):
2906         (-[WebCoreFrameBridge mainResourceURLResponse]):
2907         * loader/mac/WebDocumentLoader.h:
2908         * loader/mac/WebDocumentLoader.mm:
2909         (WebCore::DocumentLoader::DocumentLoader):
2910         (WebCore::DocumentLoader::frameLoader):
2911         (WebCore::DocumentLoader::~DocumentLoader):
2912         (WebCore::DocumentLoader::setMainResourceData):
2913         (WebCore::DocumentLoader::mainResourceData):
2914         (WebCore::DocumentLoader::originalRequest):
2915         (WebCore::DocumentLoader::originalRequestCopy):
2916         (WebCore::DocumentLoader::request):
2917         (WebCore::DocumentLoader::initialRequest):
2918         (WebCore::DocumentLoader::actualRequest):
2919         (WebCore::DocumentLoader::URL):
2920         (WebCore::DocumentLoader::unreachableURL):
2921         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
2922         (WebCore::DocumentLoader::setRequest):
2923         (WebCore::DocumentLoader::setResponse):
2924         (WebCore::DocumentLoader::isStopping):
2925         (WebCore::DocumentLoader::bridge):
2926         (WebCore::DocumentLoader::setMainDocumentError):
2927         (WebCore::DocumentLoader::mainDocumentError):
2928         (WebCore::DocumentLoader::clearErrors):
2929         (WebCore::DocumentLoader::mainReceivedError):
2930         (WebCore::DocumentLoader::stopLoading):
2931         (WebCore::DocumentLoader::setupForReplace):
2932         (WebCore::DocumentLoader::commitIfReady):
2933         (WebCore::DocumentLoader::finishedLoading):
2934         (WebCore::DocumentLoader::setCommitted):
2935         (WebCore::DocumentLoader::isCommitted):
2936         (WebCore::DocumentLoader::setLoading):
2937         (WebCore::DocumentLoader::isLoading):
2938         (WebCore::DocumentLoader::commitLoad):
2939         (WebCore::DocumentLoader::doesProgressiveLoad):
2940         (WebCore::DocumentLoader::receivedData):
2941         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2942         (WebCore::DocumentLoader::updateLoading):
2943         (WebCore::DocumentLoader::response):
2944         (WebCore::DocumentLoader::setFrame):
2945         (WebCore::DocumentLoader::attachToFrame):
2946         (WebCore::DocumentLoader::detachFromFrame):
2947         (WebCore::DocumentLoader::prepareForLoadStart):
2948         (WebCore::DocumentLoader::loadingStartedTime):
2949         (WebCore::DocumentLoader::setIsClientRedirect):
2950         (WebCore::DocumentLoader::isClientRedirect):
2951         (WebCore::DocumentLoader::setPrimaryLoadComplete):
2952         (WebCore::DocumentLoader::isLoadingInAPISense):
2953         (WebCore::DocumentLoader::addResponse):
2954         (WebCore::DocumentLoader::stopRecordingResponses):
2955         (WebCore::DocumentLoader::title):
2956         (WebCore::DocumentLoader::setLastCheckedRequest):
2957         (WebCore::DocumentLoader::lastCheckedRequest):
2958         (WebCore::DocumentLoader::triggeringAction):
2959         (WebCore::DocumentLoader::setTriggeringAction):
2960         (WebCore::DocumentLoader::responses):
2961         (WebCore::DocumentLoader::setOverrideEncoding):
2962         (WebCore::DocumentLoader::overrideEncoding):
2963         (WebCore::DocumentLoader::setTitle):
2964         (WebCore::DocumentLoader::URLForHistory):
2965         * loader/mac/WebFrameLoader.h:
2966         * loader/mac/WebFrameLoader.mm:
2967         (WebCore::FrameLoader::setupForReplaceByMIMEType):
2968         (WebCore::FrameLoader::finalSetupForReplace):
2969         (WebCore::FrameLoader::safeLoad):
2970         (WebCore::FrameLoader::load):
2971         (WebCore::FrameLoader::startLoading):
2972         (WebCore::FrameLoader::stopLoading):
2973         (WebCore::FrameLoader::activeDocumentLoader):
2974         (WebCore::FrameLoader::addPlugInStreamLoader):
2975         (WebCore::FrameLoader::removePlugInStreamLoader):
2976         (WebCore::FrameLoader::addSubresourceLoader):
2977         (WebCore::FrameLoader::removeSubresourceLoader):
2978         (WebCore::FrameLoader::setDocumentLoader):
2979         (WebCore::FrameLoader::documentLoader):
2980         (WebCore::FrameLoader::setPolicyDocumentLoader):
2981         (WebCore::FrameLoader::provisionalDocumentLoader):
2982         (WebCore::FrameLoader::setProvisionalDocumentLoader):
2983         (WebCore::FrameLoader::setState):
2984         (WebCore::FrameLoader::clearProvisionalLoad):
2985         (WebCore::FrameLoader::commitProvisionalLoad):
2986         (WebCore::FrameLoader::didReceiveResponse):
2987         (WebCore::FrameLoader::originalRequest):
2988         (WebCore::FrameLoader::receivedMainResourceError):
2989         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
2990         (WebCore::FrameLoader::opened):
2991         (WebCore::FrameLoader::initialRequest):
2992         (WebCore::FrameLoader::receivedData):
2993         (WebCore::FrameLoader::setRequest):
2994         (WebCore::FrameLoader::isStopping):
2995         (WebCore::FrameLoader::setResponse):
2996         (WebCore::FrameLoader::mainReceivedError):
2997         (WebCore::FrameLoader::finishedLoading):
2998         (WebCore::FrameLoader::notifyIconChanged):
2999         (WebCore::FrameLoader::URL):
3000         (WebCore::FrameLoader::checkContentPolicy):
3001         (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
3002         (WebCore::FrameLoader::reloadAllowingStaleData):
3003         (WebCore::FrameLoader::reload):
3004         (WebCore::FrameLoader::finishedLoadingDocument):
3005         (WebCore::FrameLoader::committedLoad):
3006         (WebCore::FrameLoader::revertToProvisional):
3007         (WebCore::FrameLoader::setMainDocumentError):
3008         (WebCore::FrameLoader::mainReceivedCompleteError):
3009         (WebCore::FrameLoader::subframeIsLoading):
3010         (WebCore::FrameLoader::willChangeTitle):
3011         (WebCore::FrameLoader::didChangeTitle):
3012         (WebCore::FrameLoader::checkNavigationPolicy):
3013         (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
3014         (WebCore::FrameLoader::transitionToCommitted):
3015         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3016         (WebCore::FrameLoader::detachFromParent):
3017         * loader/mac/WebFrameLoaderClient.h:
3018
3019 2006-10-23  Brady Eidson  <beidson@apple.com>
3020
3021         Lovingly reviewed by Maciej
3022
3023         Moved loadURL and postURL logic out of WebCoreFrameBridge to FrameMac::loadRequest
3024         This is a big step towards moving FrameLoader out of the Bridge into Frame/Mac itself
3025
3026         * bridge/mac/BrowserExtensionMac.mm:
3027         (WebCore::BrowserExtensionMac::createNewWindow): Use FrameMac::loadRequest
3028
3029         * bridge/mac/FrameMac.mm:
3030         (WebCore::FrameMac::loadRequest): loadURL and postURL logic moved from WebCoreFrameBridge to here
3031
3032         * bridge/mac/WebCoreFrameBridge.h: Nuked loadURL and postURL
3033         * bridge/mac/WebCoreFrameBridge.mm: Ditto
3034         * loader/mac/WebFrameLoader.mm:
3035         (-[WebFrameLoader safeLoadURL:]): Use FrameMac::loadRequest
3036
3037 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
3038
3039         RS by Maciej.
3040
3041         Inside Frame, moved the plethora of load() and stopLoading() functions next 
3042         to each other to facilitate merging and crying.
3043
3044         * bridge/mac/FrameMac.h:
3045         * bridge/mac/FrameMac.mm:
3046         (WebCore::FrameMac::loadRequest):
3047         (WebCore::FrameMac::submitForm):
3048         (WebCore::FrameMac::openURL):
3049         (WebCore::FrameMac::openURLRequest):
3050         (WebCore::FrameMac::urlSelected):
3051         (WebCore::FrameMac::openURLFromPageCache):
3052         (WebCore::FrameMac::createFrame):
3053         * page/Frame.cpp:
3054         (WebCore::Frame::openURL):
3055         (WebCore::Frame::changeLocation):
3056         (WebCore::Frame::urlSelected):
3057         (WebCore::Frame::requestFrame):
3058         (WebCore::Frame::loadSubframe):
3059         (WebCore::Frame::submitFormAgain):
3060         (WebCore::Frame::submitForm):
3061         (WebCore::Frame::stop):
3062         (WebCore::Frame::closeURL):
3063         (WebCore::Frame::cancelRedirection):
3064         (WebCore::Frame::iconURL):
3065         (WebCore::Frame::didOpenURL):
3066         (WebCore::Frame::didExplicitOpen):
3067         * page/Frame.h:
3068
3069 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
3070
3071         RS by Maciej.
3072
3073         Moved our plethora of load() and stopLoading() functions next to each other
3074         to facilitate merging and laughter.
3075
3076         * loader/mac/WebFrameLoader.h:
3077         * loader/mac/WebFrameLoader.mm:
3078         (WebCore::cancelAll):
3079         (WebCore::FrameLoader::prepareForLoadStart):
3080         (WebCore::FrameLoader::setupForReplace):
3081         (WebCore::FrameLoader::setupForReplaceByMIMEType):
3082         (WebCore::FrameLoader::finalSetupForReplace):
3083         (WebCore::FrameLoader::safeLoad):
3084         (WebCore::FrameLoader::load):
3085         (WebCore::FrameLoader::startLoadingMainResource):
3086         (WebCore::FrameLoader::startLoading):
3087         (WebCore::FrameLoader::stopLoadingPlugIns):
3088         (WebCore::FrameLoader::stopLoadingSubresources):
3089         (WebCore::FrameLoader::stopLoading):
3090         (WebCore::FrameLoader::stopLoadingSubframes):
3091         (WebCore::FrameLoader::cancelMainResourceLoad):
3092         (WebCore::FrameLoader::cancelPendingArchiveLoad):
3093         (WebCore::FrameLoader::removeSubresourceLoader):
3094         (WebCore::FrameLoader::mainResourceData):
3095         (WebCore::FrameLoader::releaseMainResourceLoader):
3096
3097 2006-10-23  Darin Adler  <darin@apple.com>
3098
3099         Reviewed by Maciej.
3100
3101         - converted WebFrameLoader to C++
3102
3103         * WebCore.exp: Added many new entry points for WebKit.
3104         * WebCore.xcodeproj/project.pbxproj: Made more files private (SPI).
3105
3106         * bridge/mac/WebCoreFrameBridge.h:
3107         * bridge/mac/WebCoreFrameBridge.mm:
3108         (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
3109         (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
3110         (-[WebCoreFrameBridge dealloc]):
3111         (-[WebCoreFrameBridge close]):
3112         (-[WebCoreFrameBridge clearFrame]):
3113         (-[WebCoreFrameBridge setFrameLoaderClient:]):
3114         (-[WebCoreFrameBridge frameLoader]):
3115         (-[WebCoreFrameBridge setTitle:]):
3116         (-[WebCoreFrameBridge didFirstLayout]):
3117         (-[WebCoreFrameBridge notifyIconChanged:]):
3118         (-[WebCoreFrameBridge originalRequestURL]):
3119         (-[WebCoreFrameBridge isLoadTypeReload]):
3120         (-[WebCoreFrameBridge frameDetached]):
3121         (-[WebCoreFrameBridge tokenizerProcessedData]):
3122         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
3123         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
3124         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
3125         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
3126         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
3127         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
3128         (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
3129         (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
3130         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
3131         (-[WebCoreFrameBridge incomingReferrer]):
3132         (-[WebCoreFrameBridge isReloading]):
3133         (-[WebCoreFrameBridge handledOnloadEvents]):
3134         (-[WebCoreFrameBridge mainResourceURLResponse]):
3135         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
3136         * loader/mac/WebDocumentLoader.h:
3137         * loader/mac/WebDocumentLoader.mm:
3138         (-[WebDocumentLoader frameLoader]):
3139         (-[WebDocumentLoader dealloc]):
3140         (-[WebDocumentLoader mainResourceData]):
3141         (-[WebDocumentLoader setRequest:]):
3142         (-[WebDocumentLoader bridge]):
3143         (-[WebDocumentLoader setMainDocumentError:]):
3144         (-[WebDocumentLoader mainReceivedError:complete:]):
3145         (-[WebDocumentLoader stopLoading]):
3146         (-[WebDocumentLoader setupForReplace]):
3147         (-[WebDocumentLoader commitIfReady]):
3148         (-[WebDocumentLoader finishedLoading]):
3149         (-[WebDocumentLoader commitLoadWithData:]):
3150         (-[WebDocumentLoader doesProgressiveLoadWithMIMEType:]):
3151         (-[WebDocumentLoader setupForReplaceByMIMEType:]):
3152         (-[WebDocumentLoader updateLoading]):
3153         (-[WebDocumentLoader setFrame:]):
3154         (-[WebDocumentLoader attachToFrame]):
3155         (-[WebDocumentLoader detachFromFrame]):
3156         (-[WebDocumentLoader prepareForLoadStart]):
3157         (-[WebDocumentLoader setPrimaryLoadComplete:]):
3158         (-[WebDocumentLoader isLoadingInAPISense]):
3159         (-[WebDocumentLoader setTitle:]):
3160         * loader/mac/WebFrameLoader.h:
3161         (WebCore::FrameLoader::frame):
3162         * loader/mac/WebFrameLoader.mm:
3163         (WebCore::FrameLoader::FrameLoader):
3164         (WebCore::FrameLoader::~FrameLoader):
3165         (WebCore::FrameLoader::activeDocumentLoader):
3166         (WebCore::FrameLoader::addPlugInStreamLoader):
3167         (WebCore::FrameLoader::removePlugInStreamLoader):
3168         (WebCore::FrameLoader::defersCallbacksChanged):
3169         (WebCore::FrameLoader::defersCallbacks):
3170         (WebCore::setAllDefersCallbacks):
3171         (WebCore::FrameLoader::setDefersCallbacks):
3172         (WebCore::cancelAll):
3173         (WebCore::FrameLoader::stopLoadingPlugIns):
3174         (WebCore::FrameLoader::isLoadingMainResource):
3175         (WebCore::FrameLoader::isLoadingSubresources):
3176         (WebCore::FrameLoader::isLoadingPlugIns):
3177         (WebCore::FrameLoader::isLoading):
3178         (WebCore::FrameLoader::stopLoadingSubresources):
3179         (WebCore::FrameLoader::addSubresourceLoader):
3180         (WebCore::FrameLoader::removeSubresourceLoader):
3181         (WebCore::FrameLoader::mainResourceData):
3182         (WebCore::FrameLoader::releaseMainResourceLoader):
3183         (WebCore::FrameLoader::cancelMainResourceLoad):
3184         (WebCore::FrameLoader::startLoadingMainResource):
3185         (WebCore::FrameLoader::stopLoading):
3186         (WebCore::FrameLoader::setDocumentLoader):
3187         (WebCore::FrameLoader::documentLoader):
3188         (WebCore::FrameLoader::setPolicyDocumentLoader):
3189         (WebCore::FrameLoader::provisionalDocumentLoader):
3190         (WebCore::FrameLoader::setProvisionalDocumentLoader):
3191         (WebCore::FrameLoader::state):
3192         (WebCore::FrameLoader::timeOfLastCompletedLoad):
3193         (WebCore::FrameLoader::provisionalLoadStarted):
3194         (WebCore::FrameLoader::setState):
3195         (WebCore::FrameLoader::clearProvisionalLoad):
3196         (WebCore::FrameLoader::markLoadComplete):
3197         (WebCore::FrameLoader::commitProvisionalLoad):
3198         (WebCore::FrameLoader::stopLoadingSubframes):
3199         (WebCore::FrameLoader::startLoading):
3200         (WebCore::FrameLoader::setupForReplace):
3201         (WebCore::FrameLoader::identifierForInitialRequest):
3202         (WebCore::FrameLoader::willSendRequest):
3203         (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
3204         (WebCore::FrameLoader::didCancelAuthenticationChallenge):
3205         (WebCore::FrameLoader::didReceiveResponse):
3206         (WebCore::FrameLoader::didReceiveData):
3207         (WebCore::FrameLoader::didFinishLoad):
3208         (WebCore::FrameLoader::didFailToLoad):
3209         (WebCore::FrameLoader::privateBrowsingEnabled):
3210         (WebCore::FrameLoader::originalRequest):
3211         (WebCore::FrameLoader::receivedMainResourceError):
3212         (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
3213         (WebCore::FrameLoader::clientRedirected):
3214         (WebCore::FrameLoader::shouldReload):
3215         (WebCore::FrameLoader::load):
3216         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
3217         (WebCore::FrameLoader::closeOldDataSources):
3218         (WebCore::FrameLoader::opened):
3219         (WebCore::FrameLoader::initialRequest):
3220         (WebCore::FrameLoader::receivedData):
3221         (WebCore::FrameLoader::setRequest):
3222         (WebCore::FrameLoader::download):
3223         (WebCore::FrameLoader::bridge):
3224         (WebCore::FrameLoader::handleFallbackContent):
3225         (WebCore::FrameLoader::isStopping):
3226         (WebCore::FrameLoader::setupForReplaceByMIMEType):
3227         (WebCore::FrameLoader::setResponse):
3228         (WebCore::FrameLoader::mainReceivedError):
3229         (WebCore::FrameLoader::finishedLoading):
3230         (WebCore::FrameLoader::notifyIconChanged):
3231         (WebCore::FrameLoader::URL):
3232         (WebCore::FrameLoader::cancelledError):
3233         (WebCore::FrameLoader::fileDoesNotExistError):
3234         (WebCore::FrameLoader::willUseArchive):
3235         (WebCore::FrameLoader::isArchiveLoadPending):
3236         (WebCore::FrameLoader::cancelPendingArchiveLoad):
3237         (WebCore::FrameLoader::handleUnimplementablePolicy):
3238         (WebCore::FrameLoader::cannotShowMIMEType):
3239         (WebCore::FrameLoader::interruptionForPolicyChangeError):
3240         (WebCore::FrameLoader::isHostedByObjectElement):
3241         (WebCore::FrameLoader::isLoadingMainFrame):
3242         (WebCore::FrameLoader::canShowMIMEType):
3243         (WebCore::FrameLoader::representationExistsForURLScheme):
3244         (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
3245         (WebCore::FrameLoader::checkNavigationPolicy):
3246         (WebCore::FrameLoader::checkContentPolicy):
3247         (WebCore::FrameLoader::cancelContentPolicyCheck):
3248         (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
3249         (WebCore::FrameLoader::reloadAllowingStaleData):
3250         (WebCore::FrameLoader::reload):
3251         (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
3252         (WebCore::FrameLoader::finishedLoadingDocument):
3253         (WebCore::FrameLoader::committedLoad):
3254         (WebCore::FrameLoader::isReplacing):
3255         (WebCore::FrameLoader::setReplacing):
3256         (WebCore::FrameLoader::revertToProvisional):
3257         (WebCore::FrameLoader::setMainDocumentError):
3258         (WebCore::FrameLoader::mainReceivedCompleteError):
3259         (WebCore::FrameLoader::finalSetupForReplace):
3260         (WebCore::FrameLoader::prepareForLoadStart):
3261         (WebCore::FrameLoader::subframeIsLoading):
3262         (WebCore::FrameLoader::willChangeTitle):
3263         (WebCore::FrameLoader::didChangeTitle):
3264         (WebCore::FrameLoader::loadType):
3265         (WebCore::FrameLoader::invalidatePendingPolicyDecision):
3266         (WebCore::FrameLoader::checkNewWindowPolicy):
3267         (WebCore::FrameLoader::continueAfterNewWindowPolicy):
3268         (WebCore::FrameLoader::continueAfterNavigationPolicy):
3269         (WebCore::FrameLoader::continueAfterWillSubmitForm):
3270         (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
3271         (WebCore::FrameLoader::didFirstLayout):
3272         (WebCore::FrameLoader::frameLoadCompleted):
3273         (WebCore::FrameLoader::firstLayoutDone):
3274         (WebCore::FrameLoader::isQuickRedirectComing):
3275         (WebCore::FrameLoader::transitionToCommitted):
3276         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3277         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
3278         (WebCore::FrameLoader::sendRemainingDelegateMessages):
3279         (WebCore::FrameLoader::requestFromDelegate):
3280         (WebCore::FrameLoader::post):
3281         (WebCore::FrameLoader::detachChildren):
3282         (WebCore::FrameLoader::detachFromParent):
3283         (WebCore::FrameLoader::addExtraFieldsToRequest):
3284         (WebCore::FrameLoader::safeLoad):
3285         (WebCore::FrameLoader::actionInformation):
3286         (WebCore::FrameLoader::checkLoadComplete):
3287         (WebCore::FrameLoader::setFrameLoaderClient):
3288         (WebCore::FrameLoader::client):
3289         (WebCore::FrameLoader::asDelegate):
3290         (-[WebCoreFrameLoaderAsDelegate initWithLoader:]):
3291         (-[WebCoreFrameLoaderAsDelegate detachFromLoader]):
3292         (-[WebCoreFrameLoaderAsDelegate continueFragmentScrollAfterNavigationPolicy:formState:]):
3293         (-[WebCoreFrameLoaderAsDelegate continueAfterNewWindowPolicy:]):
3294         (-[WebCoreFrameLoaderAsDelegate continueAfterNavigationPolicy:]):
3295         (-[WebCoreFrameLoaderAsDelegate continueAfterWillSubmitForm:]):
3296         (-[WebCoreFrameLoaderAsDelegate continueLoadRequestAfterNavigationPolicy:formState:]):
3297         (-[WebCoreFrameLoaderAsDelegate continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
3298         * loader/mac/WebLoader.h:
3299         (WebCore::WebResourceLoader::identifier):
3300         (WebCore::WebResourceLoader::reachedTerminalState):
3301         (WebCore::WebResourceLoader::cancelled):
3302         * loader/mac/WebLoader.mm:
3303         (WebCore::WebResourceLoader::WebResourceLoader):
3304         (WebCore::WebResourceLoader::releaseResources):
3305         (WebCore::WebResourceLoader::load):
3306         (WebCore::WebResourceLoader::frameLoader):
3307         (WebCore::WebResourceLoader::willSendRequest):
3308         (WebCore::WebResourceLoader::didReceiveAuthenticationChallenge):
3309         (WebCore::WebResourceLoader::didCancelAuthenticationChallenge):
3310         (WebCore::WebResourceLoader::didReceiveResponse):
3311         (WebCore::WebResourceLoader::didReceiveData):
3312         (WebCore::WebResourceLoader::didFinishLoading):
3313         (WebCore::WebResourceLoader::didFinishLoadingOnePart):
3314         (WebCore::WebResourceLoader::didFail):
3315         (WebCore::WebResourceLoader::willCacheResponse):
3316         (WebCore::WebResourceLoader::didCancel):
3317         (WebCore::WebResourceLoader::cancel):
3318         (WebCore::WebResourceLoader::cancelledError):
3319         (WebCore::WebResourceLoader::delegate):
3320         * loader/mac/WebMainResourceLoader.h:
3321         * loader/mac/WebMainResourceLoader.mm:
3322         (WebCore::MainResourceLoader::MainResourceLoader):
3323         (WebCore::MainResourceLoader::create):
3324         (WebCore::MainResourceLoader::receivedError):
3325         (WebCore::MainResourceLoader::didCancel):
3326         (WebCore::MainResourceLoader::interruptionForPolicyChangeError):
3327         (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
3328         (WebCore::MainResourceLoader::addData):
3329         (WebCore::MainResourceLoader::willSendRequest):
3330         (WebCore::MainResourceLoader::continueAfterContentPolicy):
3331         (WebCore::MainResourceLoader::didReceiveResponse):
3332         (WebCore::MainResourceLoader::didReceiveData):
3333         (WebCore::MainResourceLoader::didFinishLoading):
3334         (WebCore::MainResourceLoader::didFail):
3335         (WebCore::MainResourceLoader::loadNow):
3336         (WebCore::MainResourceLoader::policyDelegate):
3337         * loader/mac/WebNetscapePlugInStreamLoader.h:
3338         * loader/mac/WebNetscapePlugInStreamLoader.mm:
3339         (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
3340         (WebCore::NetscapePlugInStreamLoader::create):
3341         (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
3342         (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
3343         (WebCore::NetscapePlugInStreamLoader::didFail):
3344         (WebCore::NetscapePlugInStreamLoader::didCancel):
3345         * loader/mac/WebSubresourceLoader.h:
3346         * loader/mac/WebSubresourceLoader.mm:
3347         (-[WebCoreSubresourceHandle initWithLoader:]):
3348
3349 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
3350
3351         Reviewed by Bradee.
3352
3353         Shrunk BrowserExtension in preparation for its imminent death, moving page-
3354         level operations to Page and frame-level operations to Frame.
3355         
3356         Removed bizarre Mac(this) syntax inside virtual FrameMac member functions, 
3357         because 'this' is guaranteed by the compiler to be a FrameMac*.
3358         
3359         * bindings/js/kjs_window.cpp: Added NULL checks for m_frame in places
3360         where it can be NULL.
3361         * bindings/js/kjs_window.cpp:
3362         (KJS::canShowModalDialog):
3363         (KJS::canShowModalDialogNow):
3364         (KJS::showModalDialog):
3365         (KJS::History::getValueProperty):
3366         (KJS::HistoryFunc::callAsFunction):
3367         * bridge/BrowserExtension.h:
3368         (WebCore::BrowserExtension::~BrowserExtension):
3369         * bridge/mac/BrowserExtensionMac.h:
3370         * bridge/mac/BrowserExtensionMac.mm:
3371         (WebCore::BrowserExtensionMac::createNewWindow):
3372         * bridge/mac/FrameMac.h:
3373         * bridge/mac/FrameMac.mm:
3374         (WebCore::FrameMac::frameDetached):
3375         (WebCore::FrameMac::unfocusWindow):
3376         (WebCore::FrameMac::bridgeForWidget):
3377         (WebCore::FrameMac::documentViewForNode):
3378         (WebCore::FrameMac::passSubframeEventToSubframe):
3379         (WebCore::Frame::setNeedsReapplyStyles):
3380         (WebCore::FrameMac::customHighlightLineRect):
3381         (WebCore::FrameMac::paintCustomHighlight):
3382         (WebCore::FrameMac::getHistoryLength):
3383         (WebCore::FrameMac::goBackOrForward):
3384         (WebCore::FrameMac::historyURL):
3385         * bridge/mac/PageMac.mm:
3386         (WebCore::Page::canRunModal):
3387         (WebCore::Page::canRunModalNow):
3388         (WebCore::Page::runModal):
3389         * bridge/mac/WebCoreFrameBridge.h:
3390         * bridge/mac/WebCorePageBridge.h:
3391         * bridge/win/BrowserExtensionWin.h:
3392         * page/Frame.cpp:
3393         (WebCore::Frame::scheduleHistoryNavigation):
3394         (WebCore::Frame::redirectionTimerFired):
3395         * page/Frame.h:
3396         * page/Page.h:
3397
3398 2006-10-23  Justin Garcia  <justin.garcia@apple.com>
3399
3400         Reviewed by mjs
3401
3402         <http://bugs.webkit.org/show_bug.cgi?id=11334>
3403         Writely Editor: Placing caret in a list "highlights" both Numbered List and Bulleted List toolbar icons
3404
3405         * WebCore.xcodeproj/project.pbxproj:
3406         * editing/Editor.cpp:
3407         (WebCore::Editor::selectionUnorderedListState): Added.
3408         (WebCore::Editor::selectionOrderedListState): Added.
3409         * editing/Editor.h:
3410         * editing/JSEditor.cpp:
3411         * page/Frame.cpp:
3412         * page/Frame.h:
3413
3414 2006-10-23  John Sullivan  <sullivan@apple.com>
3415
3416         Reviewed by Tim H
3417
3418         * WebCore.xcodeproj/project.pbxproj:
3419         Include WebCorePrefix.h in Xcode project for convenience and for consistency with WebKit
3420
3421 2006-10-23  Sam Weinig  <sam.weinig@gmail.com>
3422
3423         Reviewed by Tim H.
3424
3425         Patch for http://bugs.webkit.org/show_bug.cgi?id=11291
3426         PNG as cursor image format instead of TIFF
3427
3428         Original patch by Lars Naesbye Christensen (larsnaesbye@stud.ku.dk)
3429
3430         - Convert cursor images from TIFF to PNG.
3431
3432         * Resources/eastResizeCursor.png: Added.
3433         * Resources/eastResizeCursor.tiff: Removed.
3434         * Resources/eastWestResizeCursor.png: Added.
3435         * Resources/eastWestResizeCursor.tiff: Removed.
3436         * Resources/helpCursor.png: Added.
3437         * Resources/helpCursor.tiff: Removed.
3438         * Resources/linkCursor.png: Added.
3439         * Resources/linkCursor.tiff: Removed.
3440         * Resources/moveCursor.png: Added.
3441         * Resources/moveCursor.tiff: Removed.
3442         * Resources/northEastResizeCursor.png: Added.
3443         * Resources/northEastResizeCursor.tiff: Removed.
3444         * Resources/northEastSouthWestResizeCursor.png: Added.
3445         * Resources/northEastSouthWestResizeCursor.tiff: Removed.
3446         * Resources/northResizeCursor.png: Added.
3447         * Resources/northResizeCursor.tiff: Removed.
3448         * Resources/northSouthResizeCursor.png: Added.
3449         * Resources/northSouthResizeCursor.tiff: Removed.
3450         * Resources/northWestResizeCursor.png: Added.
3451         * Resources/northWestResizeCursor.tiff: Removed.
3452         * Resources/northWestSouthEastResizeCursor.png: Added.
3453         * Resources/northWestSouthEastResizeCursor.tiff: Removed.
3454         * Resources/southEastResizeCursor.png: Added.
3455         * Resources/southEastResizeCursor.tiff: Removed.
3456         * Resources/southResizeCursor.png: Added.
3457         * Resources/southResizeCursor.tiff: Removed.
3458         * Resources/southWestResizeCursor.png: Added.
3459         * Resources/southWestResizeCursor.tiff: Removed.
3460         * Resources/waitCursor.png: Added.
3461         * Resources/waitCursor.tiff: Removed.
3462         * Resources/westResizeCursor.png: Added.
3463         * Resources/westResizeCursor.tiff: Removed.
3464         * WebCore.xcodeproj/project.pbxproj:
3465         * platform/mac/CursorMac.mm:
3466         (WebCore::leakNamedCursor):
3467
3468 2006-10-23  Maciej Stachowiak  <mjs@apple.com>
3469
3470         - fixed build from last change.
3471
3472         * bridge/mac/FrameMac.h:
3473         * bridge/mac/FrameMac.mm:
3474         (WebCore::FrameMac::loadRequest):
3475         (WebCore::FrameMac::openURL):
3476
3477 2006-10-23  Adam Roben  <aroben@apple.com>
3478
3479         Reviewed by Adele.
3480
3481         Move border-radius rule for <select>s into RenderThemeMac, as this is
3482         really a platform-specific look.
3483
3484         * css/html4.css:
3485         * rendering/RenderThemeMac.mm:
3486         (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
3487
3488 2006-10-23  Maciej Stachowiak  <mjs@apple.com>
3489
3490         Reviewed by Brady.
3491
3492         - moved things around so loadURL:... is only called from one place
3493
3494         * bridge/mac/FrameMac.h:
3495         * bridge/mac/FrameMac.mm:
3496         (WebCore::FrameMac::frameDetached):
3497         (WebCore::FrameMac::loadRequest):
3498         (WebCore::FrameMac::submitForm):
3499         (WebCore::FrameMac::openURL):
3500         (WebCore::FrameMac::openURLRequest):
3501         (WebCore::FrameMac::urlSelected):
3502
3503 2006-10-23  Justin Garcia  <justin.garcia@apple.com>
3504
3505         Reviewed by john
3506         
3507         <http://bugs.webkit.org/show_bug.cgi?id=11333>
3508         Writely Editor: After inserting a HR element, pressing return key creates a copy of this HR element in the document
3509         
3510         Added special cases in InsertLineBreakCommand for inserting before
3511         and after tables and horizontal rules.  Also, perform InsertLineBreak
3512         instead of InsertParagraphSeparator at these positions.
3513
3514         * editing/InsertLineBreakCommand.cpp:
3515         (WebCore::InsertLineBreakCommand::doApply):  Use the canonical form
3516         of the caret position when we check for the new special cases because 
3517         we know that we canonicalize VisiblePositions to those positions.
3518         Added code to handle inserting before/after tables and horizontal rules.  
3519         Fixed a bug when inserting at the end of a block (it checked for a collapse
3520         of the inserted br by looking for the absence of a br, but the line break 
3521         might have been a '\n' in white-space:pre text).  Removed unused LOGs.
3522         * editing/InsertParagraphSeparatorCommand.cpp:
3523         (WebCore::InsertParagraphSeparatorCommand::doApply): Perform an 
3524         InsertLineBreakCommand when before/after a table or a horizontal rule
3525         so that we don't have to maintain two pieces of special case code.
3526         Migrated to enclosingBlock.
3527         * editing/htmlediting.cpp: Added a FIXME.
3528         * editing/visible_units.cpp:
3529         (WebCore::startOfParagraph): Added a workaround for 8622.
3530         
3531 2006-10-23  Adam Roben  <aroben@apple.com>
3532
3533         Reviewed by Adele.
3534
3535         Make popups a little more flexible.
3536
3537         * platform/PopupMenu.h:
3538
3539 2006-10-23  Sam Weinig  <sam.weinig@gmail.com>
3540
3541         Reviewed by Tim H.
3542
3543