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