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