Reviewed by Adam.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-26  Timothy Hatcher  <timothy@apple.com>
2
3         Reviewed by Adam.
4
5         <rdar://problem/4796941> Table deletion outline is misplaced at nytimes.com
6
7         The main table at nytimes.com has a fixed width of 874px, but the table ends
8         up overflowing to 963px. We now use overflowWidth() and overflowHeight() to correct
9         this. The other bug was a missing top and left of 0px on the container element,
10         causing the deletion UI to sometimes be offset below the table.
11
12         Now check for the element's renderer at the beginning of show() and
13         return early if it is null.
14
15         * editing/DeleteButtonController.cpp:
16         (WebCore::DeleteButtonController::updateOutlineStyle):
17         (WebCore::DeleteButtonController::show):
18
19 2006-10-26  Anders Carlsson  <acarlsson@apple.com>
20
21         Build fix.
22
23         * html/CanvasRenderingContext2D.cpp:
24         Include MathExtras.h
25         
26 2006-10-26  John Sullivan  <sullivan@apple.com>
27
28         Reviewed by Anders.
29
30         Some changes to support new grammar checking code in WebKit.
31
32         * WebCore.exp:
33         added mangled symbol for Document->removeMarkers() so I can call it from WebKit
34         
35         * WebCore.xcodeproj/project.pbxproj:
36         Made Document.h and DocumentMarker.h private so I can include them from WebKit.
37         Made HTMLCollection.h private because Document.h uses it.
38         
39         * bridge/mac/WebCoreFrameBridge.h:
40         * bridge/mac/WebCoreFrameBridge.mm:
41         removed unmarkAllMisspellings(); WebKit now calls through to the Document directly
42
43 2006-10-26  Anders Carlsson  <acarlsson@apple.com>
44
45         Reviewed by Brady.
46
47         Add reverseFind to String and use it instead of findRev.
48         Use CString instead of DeprecatedCString in one place.
49         
50         * html/HTMLFormElement.cpp:
51         (WebCore::HTMLFormElement::formData):
52         * ksvg2/svg/SVGURIReference.cpp:
53         (WebCore::SVGURIReference::getTarget):
54         * loader/Decoder.cpp:
55         (WebCore::Decoder::checkForCSSCharset):
56         * platform/PlatformString.h:
57         (WebCore::String::reverseFind):
58         * platform/StringImpl.cpp:
59         (WebCore::StringImpl::reverseFind):
60         * platform/StringImpl.h:
61
62 2006-10-26  John Sullivan  <sullivan@apple.com>
63
64         Reviewed by Darin
65         
66         More plumbing for grammar checking. Still no grammars is checked.
67
68         * dom/DocumentMarker.h:
69         (WebCore::DocumentMarker::):
70         added Grammar to enum of marker types; removed explicit enum values; removed unnecessary "enum"
71         
72         * platform/GraphicsContext.h:
73         renamed method drawLineForMisspelling to drawLineForMisspellingOrBadGrammar;
74         now takes a bool parameter for whether it represents bad grammar or a misspelling 
75         
76         * platform/mac/GraphicsContextMac.mm:
77         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
78         Renamed from drawLineForMisspelling; uses green dot instead of red dot for grammar case. Changed
79         an existing "assert" to "ASSERT".
80         
81         * rendering/InlineTextBox.h:
82         renamed function paintSpellingMarker to paintSpellingOrGrammarMarker;
83
84         * rendering/InlineTextBox.cpp:
85         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
86         Renamed from paintSpellingMarker; now takes a bool parameter for whether it represents
87         bad grammar or a misspelling
88         (WebCore::InlineTextBox::paintAllMarkersOfType):
89         now handles markers of type Grammar
90
91 === Safari-521.29 ===
92         
93 2006-10-26  Sam Weinig  <sam.weinig@gmail.com>
94
95         Reviewed by Mitz.
96
97         Fix for http://bugs.webkit.org/show_bug.cgi?id=11424
98         Cleanup rendering code
99
100         - Assorted code cleanup.
101
102         * rendering/AutoTableLayout.cpp:
103         * rendering/AutoTableLayout.h:
104         (WebCore::AutoTableLayout::totalPercent):
105         * rendering/CounterListItem.h:
106         * rendering/CounterNode.cpp:
107         * rendering/CounterNode.h:
108         (WebCore::CounterNode::~CounterNode):
109         (WebCore::CounterNode::isReset):
110         * rendering/CounterResetNode.cpp:
111         * rendering/CounterResetNode.h:
112         * rendering/DataRef.h:
113         (WebCore::DataRef::DataRef):
114         * rendering/DeprecatedRenderSelect.h:
115         * rendering/DeprecatedSlider.cpp:
116         * rendering/DeprecatedSlider.h:
117         * rendering/EllipsisBox.cpp:
118         * rendering/EllipsisBox.h:
119         (WebCore::EllipsisBox::EllipsisBox):
120         * rendering/FixedTableLayout.cpp:
121         * rendering/FixedTableLayout.h:
122         * rendering/GapRects.h:
123         * rendering/InlineBox.cpp:
124         * rendering/InlineBox.h:
125         (WebCore::InlineBox::InlineBox):
126         (WebCore::InlineBox::setConstructed):
127         (WebCore::InlineBox::clearTruncation):
128         (WebCore::InlineBox::markDirty):
129         * rendering/InlineFlowBox.cpp:
130         * rendering/InlineFlowBox.h:
131         (WebCore::InlineFlowBox::InlineFlowBox):
132         (WebCore::InlineFlowBox::setConstructed):
133         (WebCore::InlineFlowBox::setEdges):
134         (WebCore::InlineFlowBox::setVerticalOverflowPositions):
135         (WebCore::InlineFlowBox::setVerticalSelectionPositions):
136         * rendering/InlineRunBox.h:
137         (WebCore::InlineRunBox::paintBackgroundAndBorder):
138         (WebCore::InlineRunBox::paintDecorations):
139         * rendering/InlineTextBox.cpp:
140         * rendering/InlineTextBox.h:
141         (WebCore::InlineTextBox::InlineTextBox):
142         (WebCore::InlineTextBox::end):
143         (WebCore::InlineTextBox::textObject):
144         * rendering/Length.h:
145         (WebCore::Length::Length):
146         * rendering/ListMarkerBox.cpp:
147         * rendering/ListMarkerBox.h:
148         * rendering/RenderPartObject.h:
149         * rendering/RootInlineBox.cpp:
150         * rendering/RootInlineBox.h:
151         * rendering/SVGInlineFlowBox.cpp:
152         * rendering/SVGInlineFlowBox.h:
153         (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
154         * rendering/SVGRootInlineBox.cpp:
155         * rendering/SVGRootInlineBox.h:
156         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
157         * rendering/TableLayout.h:
158         (WebCore::TableLayout::TableLayout):
159         (WebCore::TableLayout::~TableLayout):
160         * rendering/bidi.h:
161         (WebCore::BidiStatus::BidiStatus):
162         (WebCore::BidiRun::BidiRun):
163         * rendering/break_lines.h:
164
165 2006-10-26  Justin Garcia  <justin.garcia@apple.com>
166
167         Reviewed by john
168
169         <http://bugs.webkit.org/show_bug.cgi?id=11329>
170         Gmail Editor: Can't remove styling applied to selection after clicking "Remove Formatting" toolbar icon.
171         
172         * editing/Editor.cpp:
173         (WebCore::Editor::removeFormattingAndStyle): Moved from JSEditor.
174         Wrapped the plain text fragment in a style span with the document 
175         default style so that it will appear unstyled regardless of where
176         it is inserted.  Could have also inserted the plain text fragment 
177         and then applied the document default style to it, but there is not 
178         yet any redundant style prevention in ApplyStyleCommand, so this
179         is cleaner.
180         * editing/Editor.h:
181         * editing/JSEditor.cpp:
182
183 2006-10-26  Oliver Hunt  <oliver@apple.com>
184
185         Reviewed by Anders.
186         Fixes <rdar://problem/4800518> -- needed to update existing
187         canvas path elements when transforms are performed on the
188         context.
189
190         * html/CanvasRenderingContext2D.cpp:
191         (WebCore::CanvasRenderingContext2D::scale):
192         (WebCore::CanvasRenderingContext2D::rotate):
193         (WebCore::CanvasRenderingContext2D::translate):
194
195 2006-10-26  Nikolas Zimmermann  <zimmermann@kde.org>
196
197         Reviewed by Darin.
198
199         Fix Qt/Linux build.
200
201         * platform/network/qt/ResourceLoaderManager.cpp:
202         (WebCore::ResourceLoaderManager::slotData):
203         (WebCore::ResourceLoaderManager::slotMimetype):
204         (WebCore::ResourceLoaderManager::remove):
205         (WebCore::ResourceLoaderManager::add):
206         * platform/network/qt/ResourceLoaderQt.cpp:
207         (WebCore::ResourceLoader::receivedResponse):
208         * platform/qt/FrameQtClient.cpp:
209         (WebCore::FrameQtClientDefault::openURL):
210         * platform/qt/LoaderFunctionsQt.cpp:
211         (WebCore::ServeSynchronousRequest):
212
213 2006-10-26  Adam Roben  <aroben@apple.com>
214
215         Reviewed by Adele.
216
217         Fix: <rdar://problem/3951815> add "type-to-select" feature for list
218         boxes (<select> elements)
219
220         This also adds type-ahead find for closed menulists (popups).
221
222         * WebCore.xcodeproj/project.pbxproj: Version wars.
223         * html/HTMLSelectElement.h: Add new instance variables for type-ahead
224         find.
225         * html/HTMLSelectElement.cpp:
226         (WebCore::HTMLSelectElement::HTMLSelectElement): Initialize new
227         instance variables.
228         (WebCore::HTMLSelectElement::defaultEventHandler): Perform type-ahead
229         find on printable character presses.
230         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Remove
231         redundant check that the listIndex has changed (setSelectedIndex does
232         this for us), and fix indentation.
233         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Change an if
234         to an else-if.
235         (WebCore::stripLeadingWhiteSpace): Helper function for typeAheadFind()
236         to strip leading whitespace (including non-breaking spaces) from a
237         string.
238         (WebCore::HTMLSelectElement::typeAheadFind): New method to perform
239         type-ahead find.
240         * platform/PopupMenu.h: Added new updateFromElement() method to be
241         called from RenderMenuList::updateFromElement().
242         * platform/mac/PopupMenuMac.mm:
243         (WebCore::PopupMenu::updateFromElement): While we are using
244         NSPopUpButtonCell for our popups, this method can stay empty.
245         * rendering/RenderListBox.cpp:
246         (WebCore::RenderListBox::updateFromElement): Scroll to reveal the first
247         selected element.
248         * rendering/RenderMenuList.cpp:
249         (WebCore::RenderMenuList::updateFromElement): Tell the popup to update
250         if it's visible.
251
252 2006-10-26  Darin Adler  <darin@apple.com>
253
254         Reviewed by Anders.
255
256         - fix http://bugs.webkit.org/show_bug.cgi?id=11360
257           editing/pasteboard/copy-paste-bidi intermittently fails due to disappearance of anonymous RenderBlock
258
259         * editing/ReplaceSelectionCommand.cpp:
260         (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
261         Use two vectors instead of a hash map: more efficient, deterministic. There was no
262         reason to use a hash table.
263
264 2006-10-26  Maciej Stachowiak  <mjs@apple.com>
265
266         Reviewed by Anders.
267
268         - .5% speed improvement by avoiding excess CFURLRef allocation
269
270         * loader/CachedResource.cpp:
271         (WebCore::CachedResource::getCFURL): New method. For Mac only (for now), cache the CFURL
272         here for later reuse.
273         * loader/CachedResource.h:
274         * loader/mac/LoaderFunctionsMac.mm:
275         (WebCore::CheckCacheObjectStatus): Use the cached CFURL, don't make a whole new one.
276
277 2006-10-25  Darin Adler  <darin@apple.com>
278
279         Reviewed by Anders.
280
281         - removed 55 methods from WebCoreFrameBridge
282         - changed callers to use Frame directly instead
283         - put FrameLoaderTypes.h types into the WebCore namespace
284         - first steps to get FrameLoader.h ready for cross-platform duty
285
286         * WebCore.exp:
287         * WebCore.xcodeproj/project.pbxproj:
288         * bridge/mac/BrowserExtensionMac.mm:
289         (WebCore::BrowserExtensionMac::createNewWindow):
290         * bridge/mac/FrameMac.h:
291         * bridge/mac/FrameMac.mm:
292         (WebCore::FrameMac::loadRequest):
293         (WebCore::FrameMac::startRedirectionTimer):
294         (WebCore::FrameMac::stopRedirectionTimer):
295         (WebCore::FrameMac::passSubframeEventToSubframe):
296         (WebCore::FrameMac::handledOnloadEvents):
297         (WebCore::FrameMac::isLoadTypeReload):
298         * bridge/mac/WebCoreFrameBridge.h:
299         * bridge/mac/WebCoreFrameBridge.mm:
300         (-[WebCoreFrameBridge executionContextForView:]):
301         (updateRenderingForBindings):
302         (-[WebCoreFrameBridge canTargetLoadInFrame:]):
303         (-[WebCoreFrameBridge forceLayoutAdjustingViewSize:]):
304         (-[WebCoreFrameBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
305         (-[WebCoreFrameBridge installInFrame:]):
306         (-[WebCoreFrameBridge numPendingOrLoadingRequests]):
307         (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
308         (-[WebCoreFrameBridge baseWritingDirectionForSelectionStart]):
309         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
310         (stringByCollapsingNonPrintingCharacters):
311         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
312         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
313         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
314         * loader/FrameLoaderTypes.h:
315         * loader/mac/FrameLoader.h:
316         * loader/mac/FrameLoader.mm:
317         (WebCore::FrameLoader::FrameLoader):
318         (WebCore::FrameLoader::setupForReplace):
319         (WebCore::FrameLoader::load):
320         (WebCore::FrameLoader::activeDocumentLoader):
321         (WebCore::FrameLoader::state):
322         (WebCore::FrameLoader::setState):
323         (WebCore::FrameLoader::clearProvisionalLoad):
324         (WebCore::FrameLoader::markLoadComplete):
325         (WebCore::FrameLoader::commitProvisionalLoad):
326         (WebCore::FrameLoader::receivedMainResourceError):
327         (WebCore::FrameLoader::handleFallbackContent):
328         (WebCore::FrameLoader::isLoadingMainFrame):
329         (WebCore::FrameLoader::continueAfterNewWindowPolicy):
330         (WebCore::FrameLoader::continueAfterNavigationPolicy):
331         (WebCore::FrameLoader::continueAfterWillSubmitForm):
332         (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
333         (WebCore::FrameLoader::transitionToCommitted):
334         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
335         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
336         (-[WebCoreFrameLoaderAsDelegate continueAfterNewWindowPolicy:]):
337         (-[WebCoreFrameLoaderAsDelegate continueAfterNavigationPolicy:]):
338         (-[WebCoreFrameLoaderAsDelegate continueAfterWillSubmitForm:]):
339         * loader/mac/ImageDocumentMac.mm:
340         (WebCore::finishImageLoad):
341         * loader/mac/WebDocumentLoader.mm:
342         (WebCore::DocumentLoader::isLoadingInAPISense):
343         * loader/mac/WebMainResourceLoader.h:
344         * loader/mac/WebMainResourceLoader.mm:
345         (WebCore::MainResourceLoader::continueAfterContentPolicy):
346         (-[WebCoreMainResourceLoaderAsPolicyDelegate continueAfterContentPolicy:]):
347         * loader/mac/WebSubresourceLoader.mm:
348         (-[WebCoreSubresourceHandle initWithLoader:]):
349         * platform/mac/ListBoxMac.mm:
350         (-[WebCoreTableView keyDown:]):
351         (-[WebCoreTableView keyUp:]):
352         * platform/mac/WebCoreTextField.mm:
353         (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
354
355 2006-10-25  Steve Falkenburg  <sfalken@apple.com>
356
357         Reviewed by Darin.
358
359         Printing fixes
360
361         * page/Frame.cpp:
362         (WebCore::Frame::adjustPageHeight):
363         * page/Frame.h:
364         (WebCore::Frame::setupRootForPrinting):
365         (WebCore::Frame::computePageRects):
366
367 2006-10-25  Anders Carlsson  <acarlsson@apple.com>
368
369         Reviewed by Geoff.
370
371         <rdar://problem/4799088>
372         REGRESSION: Translation widget fails to convert data and reports a "Data unavailable" error.
373
374         * loader/mac/WebSubresourceLoader.h:
375         * loader/mac/WebSubresourceLoader.mm:
376         (-[WebCoreSubresourceHandle initWithLoader:]):
377         Set the HTTP method before the HTTP body.
378
379 2006-10-25  Geoffrey Garen  <ggaren@apple.com>
380
381         Reviewed by Adam.
382
383         Renamed WebFrameLoader to FrameLoader, to match class name.
384
385         * WebCore.xcodeproj/project.pbxproj:
386         * bridge/mac/FrameMac.mm:
387         * bridge/mac/WebCoreFrameBridge.mm:
388         * loader/mac/FrameLoader.mm: Added.
389         * loader/mac/IconLoaderMac.mm:
390         * loader/mac/WebDocumentLoader.mm:
391         * loader/mac/WebFrameLoader.h: Removed.
392         * loader/mac/WebFrameLoader.mm: Removed.
393         * loader/mac/WebLoader.mm:
394         * loader/mac/WebMainResourceLoader.mm:
395         * loader/mac/WebNetscapePlugInStreamLoader.mm:
396         * loader/mac/WebSubresourceLoader.mm:
397
398 2006-10-25  Darin Adler  <darin@apple.com>
399
400         - fix full builds
401
402         * WebCore.xcodeproj/project.pbxproj: Mark bridge/mac/WebCoreResourceLoader.h as private.
403
404 2006-10-25  David Smith  <catfish.man@gmail.com>
405
406         Reviewed by Mitz.
407
408         Fixed REGRESSION (r17280): Repro crash when clicking a link with target="_blank"
409         http://bugs.webkit.org/show_bug.cgi?id=11411
410
411         * bridge/mac/WebCoreFrameBridge.mm:
412         (-[WebCoreFrameBridge canTargetLoadInFrame:]): Check that the target has a frame before using it.
413
414 2006-10-25  Maciej Stachowiak  <mjs@apple.com>
415
416         Rubber stamped by Mitz.
417
418         - moved some files that are essentially part of the ResourceLoader implementation to platform/network/mac
419
420         * WebCore.xcodeproj/project.pbxproj:
421         * bridge/mac/WebCoreResourceLoader.h: Moved to platform/network/mac.
422         * bridge/mac/WebCoreResourceLoaderImp.h: Moved to platform/network/mac.
423         * bridge/mac/WebCoreResourceLoaderImp.mm: Moved to platform/network/mac.
424
425 2006-10-25  Maciej Stachowiak  <mjs@apple.com>
426
427         Rubber stamped by Mark.
428
429         - remove no longer existing symbol that was breaking linking
430
431         * WebCore.exp:
432
433 2006-10-25  Maciej Stachowiak  <mjs@apple.com>
434
435         Reviewed by Mitz.
436         
437         - fixed "REGRESSION: Activity window doesn't always list all files until refresh"
438         http://bugs.webkit.org/show_bug.cgi?id=11212
439
440         I couldn't figure out how to write a test case.
441
442         * bindings/js/kjs_window.cpp:
443         (KJS::Window::clear): Avoid crashing if already detached.
444         * bridge/mac/FrameMac.h:
445         * bridge/mac/FrameMac.mm:
446         (WebCore::FrameMac::clear): Change prototype to make this a proper
447         overload for Frame::clear once again(!).
448
449 2006-10-24  Darin Adler  <darin@apple.com>
450
451         Reviewed by Anders.
452
453         - converted WebFrameLoaderClient to C++
454         - renamed frame->frameLoader() function to frame->loader()
455         - renamed [bridge impl] to [bridge _frame]
456         - removed some bridge methods
457
458         * WebCore.exp: Added more exports.
459         * WebCore.xcodeproj/project.pbxproj: Made FrameTree.h private instead of project-internal
460         so it can be used in WebKit.
461
462         * bridge/mac/BrowserExtensionMac.mm:
463         (WebCore::BrowserExtensionMac::createNewWindow):
464         * bridge/mac/FrameMac.mm:
465         (WebCore::FrameMac::createFrame):
466         (WebCore::FrameMac::didFirstLayout):
467         * bridge/mac/WebCoreAXObject.mm:
468         (-[WebCoreAXObject rendererForView:]):
469         * bridge/mac/WebCoreFrameBridge.h:
470         * bridge/mac/WebCoreFrameBridge.mm:
471         (-[WebCoreFrameBridge _shouldAllowAccessFrom:]):
472         (-[WebCoreFrameBridge canTargetLoadInFrame:]):
473         (-[WebCoreFrameBridge setOpener:]):
474         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
475         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
476         (-[WebCoreFrameBridge setTitle:]):
477         (-[WebCoreFrameBridge originalRequestURL]):
478         (-[WebCoreFrameBridge isLoadTypeReload]):
479         (-[WebCoreFrameBridge frameDetached]):
480         (-[WebCoreFrameBridge tokenizerProcessedData]):
481         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
482         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
483         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
484         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
485         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
486         (-[WebCoreFrameBridge incomingReferrer]):
487         (-[WebCoreFrameBridge isReloading]):
488         (-[WebCoreFrameBridge handledOnloadEvents]):
489         (-[WebCoreFrameBridge mainResourceURLResponse]):
490         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
491         (-[WebCoreFrameBridge _frame]):
492         (-[WebCoreFrameBridge executionContextForView:]):
493         * bridge/mac/WebCorePageBridge.mm:
494         (-[WebCorePageBridge setMainFrame:]):
495         * dom/Position.cpp:
496         (WebCore::Position::upstream):
497         * loader/mac/IconLoaderMac.mm:
498         (IconLoader::notifyIconChanged):
499         * loader/mac/WebDocumentLoader.mm:
500         (WebCore::DocumentLoader::frameLoader):
501         (WebCore::DocumentLoader::stopLoading):
502         (WebCore::DocumentLoader::finishedLoading):
503         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
504         * loader/mac/WebFormState.mm:
505         (WebCore::FormState::FormState):
506         * loader/mac/WebFrameLoader.h:
507         * loader/mac/WebFrameLoader.mm:
508         (WebCore::FrameLoader::~FrameLoader):
509         (WebCore::FrameLoader::prepareForLoadStart):
510         (WebCore::FrameLoader::finalSetupForReplace):
511         (WebCore::FrameLoader::safeLoad):
512         (WebCore::FrameLoader::load):
513         (WebCore::FrameLoader::startLoading):
514         (WebCore::FrameLoader::stopLoadingSubframes):
515         (WebCore::FrameLoader::stopLoading):
516         (WebCore::FrameLoader::cancelPendingArchiveLoad):
517         (WebCore::FrameLoader::defersCallbacksChanged):
518         (WebCore::FrameLoader::setDefersCallbacks):
519         (WebCore::FrameLoader::setDocumentLoader):
520         (WebCore::FrameLoader::provisionalLoadStarted):
521         (WebCore::FrameLoader::clearProvisionalLoad):
522         (WebCore::FrameLoader::identifierForInitialRequest):
523         (WebCore::FrameLoader::willSendRequest):
524         (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
525         (WebCore::FrameLoader::didCancelAuthenticationChallenge):
526         (WebCore::FrameLoader::didReceiveResponse):
527         (WebCore::FrameLoader::didReceiveData):
528         (WebCore::FrameLoader::didFinishLoad):
529         (WebCore::FrameLoader::didFailToLoad):
530         (WebCore::FrameLoader::privateBrowsingEnabled):
531         (WebCore::FrameLoader::receivedMainResourceError):
532         (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
533         (WebCore::FrameLoader::clientRedirected):
534         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
535         (WebCore::FrameLoader::closeOldDataSources):
536         (WebCore::FrameLoader::opened):
537         (WebCore::FrameLoader::commitProvisionalLoad):
538         (WebCore::FrameLoader::download):
539         (WebCore::FrameLoader::finishedLoading):
540         (WebCore::FrameLoader::notifyIconChanged):
541         (WebCore::FrameLoader::cancelledError):
542         (WebCore::FrameLoader::fileDoesNotExistError):
543         (WebCore::FrameLoader::willUseArchive):
544         (WebCore::FrameLoader::isArchiveLoadPending):
545         (WebCore::FrameLoader::handleUnimplementablePolicy):
546         (WebCore::FrameLoader::cannotShowMIMEType):
547         (WebCore::FrameLoader::interruptionForPolicyChangeError):
548         (WebCore::FrameLoader::canShowMIMEType):
549         (WebCore::FrameLoader::representationExistsForURLScheme):
550         (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
551         (WebCore::FrameLoader::checkContentPolicy):
552         (WebCore::FrameLoader::reloadAllowingStaleData):
553         (WebCore::FrameLoader::reload):
554         (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
555         (WebCore::FrameLoader::finishedLoadingDocument):
556         (WebCore::FrameLoader::committedLoad):
557         (WebCore::FrameLoader::revertToProvisional):
558         (WebCore::FrameLoader::setMainDocumentError):
559         (WebCore::FrameLoader::mainReceivedCompleteError):
560         (WebCore::FrameLoader::subframeIsLoading):
561         (WebCore::FrameLoader::willChangeTitle):
562         (WebCore::FrameLoader::didChangeTitle):
563         (WebCore::FrameLoader::checkNewWindowPolicy):
564         (WebCore::FrameLoader::continueAfterNewWindowPolicy):
565         (WebCore::FrameLoader::checkNavigationPolicy):
566         (WebCore::FrameLoader::continueAfterNavigationPolicy):
567         (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
568         (WebCore::FrameLoader::didFirstLayout):
569         (WebCore::FrameLoader::frameLoadCompleted):
570         (WebCore::FrameLoader::transitionToCommitted):
571         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
572         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
573         (WebCore::FrameLoader::sendRemainingDelegateMessages):
574         (WebCore::FrameLoader::requestFromDelegate):
575         (WebCore::FrameLoader::post):
576         (WebCore::FrameLoader::detachChildren):
577         (WebCore::FrameLoader::detachFromParent):
578         (WebCore::FrameLoader::addExtraFieldsToRequest):
579         (WebCore::FrameLoader::actionInformation):
580         (WebCore::FrameLoader::checkLoadComplete):
581         (WebCore::FrameLoader::setClient):
582         (WebCore::FrameLoader::client):
583         (WebCore::FrameLoaderClient::~FrameLoaderClient):
584         * loader/mac/WebFrameLoaderClient.h:
585         * loader/mac/WebLoader.mm:
586         (WebCore::WebResourceLoader::frameLoader):
587         * loader/mac/WebSubresourceLoader.mm:
588         (-[WebCoreSubresourceHandle initWithLoader:]):
589         * page/Frame.cpp:
590         (WebCore::Frame::loader):
591         * page/Frame.h:
592         * platform/mac/SliderMac.mm:
593         (Slider::focusPolicy):
594
595 2006-10-24  Darin Adler  <darin@apple.com>
596
597         Rubber stamped by Anders.
598
599         - get rid of the assertion firing while running the layout tests
600
601         This does not fix the real problem, which is that we need to map offsets within
602         possibly-text-transformed text in the render tree to DOM tree offsets and vice
603         versa -- but it gets the tests running again.
604
605         * dom/Position.cpp: (WebCore::Position::upstream): Commented out the assertion.
606
607 2006-10-24  Maciej Stachowiak  <mjs@apple.com>
608
609         Reviewed by Oliver.
610
611         - more ResourceLoader cleanup
612             - moved HTTPHeaderMap out of ResourceRequest class, so ResourceResponse will be able to use it too
613             - took out attempts to suppress setting of "HEAD" and "GET" methods, since underlying bugs are now fixed
614         
615         * loader/LoaderFunctions.h:
616         * loader/mac/LoaderFunctionsMac.mm:
617         (WebCore::ServeSynchronousRequest):
618         * loader/mac/WebSubresourceLoader.mm:
619         (-[WebCoreSubresourceHandle initWithLoader:]):
620         * platform/network/HTTPHeaderMap.h: Added.
621         * platform/network/ResourceLoader.cpp:
622         (WebCore::ResourceLoader::requestHeaders):
623         * platform/network/ResourceLoader.h:
624         * platform/network/ResourceRequest.h:
625         * platform/network/cf/ResourceLoaderCFNet.cpp:
626         (WebCore::addHeadersFromHashMap):
627         * xml/xmlhttprequest.cpp:
628         (WebCore::XMLHttpRequest::send):
629         * xml/xmlhttprequest.h:
630
631 2006-10-24  Justin Garcia  <justin.garcia@apple.com>
632
633         Reviewed by darin
634
635         <http://bugs.webkit.org/show_bug.cgi?id=10993>
636         GMail Editor: Caret doesn't always position itself after list marker
637         
638         List creation uses moveParagraphs to push content into list items.  
639         moveParagraphs uses a TextIterator to restore selections after moves.
640         Some characters emitted by the TextIterator had bad ranges associated
641         with them.  rangeFromLocationAndLength would skip past the range it
642         should have used when asked for ranges of length 0.
643
644         * editing/TextIterator.cpp:
645         (WebCore::TextIterator::TextIterator): No longer need to initialize a
646         removed member variable.
647         (WebCore::TextIterator::advance): An extra newline is emitted when leaving
648         some blocks.  Use the same range for this newline as for the first newline.
649         We should remove this code and just emit two '\n's.
650         (WebCore::TextIterator::handleTextNode): Setup m_range.
651         (WebCore::TextIterator::handleTextBox): Ditto.
652         (WebCore::TextIterator::handleReplacedElement): Ditto.
653         (WebCore::TextIterator::handleNonTextNode): Ditto.
654         (WebCore::TextIterator::exitNode): Use an m_range from the last VisiblePosition
655         in the block we're leaving to that VP after that one.
656         (WebCore::TextIterator::emitCharacter): This function now takes in the start
657         and the end of the range associated with the emited character, and sets up m_range.
658         (WebCore::TextIterator::range): Return m_range.  If it is null (we are atEnd), 
659         return the end of the range used to create the iterator, as a convenience to
660         callers that use call range() on an iterator that is atEnd.
661         (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
662         Same as the changes made to TextIterator's constructor.
663         (WebCore::SimplifiedBackwardsTextIterator::advance): Use a null m_range instead of
664         a null m_positionNode to signal that we're finished.
665         (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Ditto.
666         (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement): Similar to changes
667         made to TextIterator.
668         (WebCore::SimplifiedBackwardsTextIterator::emitCharacter): Ditto.
669         (WebCore::SimplifiedBackwardsTextIterator::emitNewline): Simplified.
670         (WebCore::SimplifiedBackwardsTextIterator::range): Similar to the changes made to
671         TextIterator::range.
672         (WebCore::CharacterIterator::range): This function assumed that an iterator's
673         range() was safe to modify.
674         (WebCore::TextIterator::rangeFromLocationAndLength):
675         If the range we're looking for starts in the current chunk, this function assumed
676         that if the chunk started in a text node, it would end in the same text node.  This
677         is no longer the case.
678         If the range we're looking for starts in the middle of the current chunk, I assume
679         that the chunk is inside a text node, because those are the only chunks with length
680         greater than one at the moment.
681         If the range we're looking for is a zero length range that starts/ends at the end of the
682         current chunk, we used to return the start of the next chunk, but that's wrong and
683         is what caused this bug.
684         * editing/TextIterator.h:
685         (WebCore::TextIterator::atEnd): The iterator is atEnd when m_range is null.
686         (WebCore::SimplifiedBackwardsTextIterator::atEnd):
687         * editing/visible_units.cpp:
688         (WebCore::previousBoundary): Cleaned up by using a convenience function.
689         (WebCore::nextBoundary): Ditto.
690
691 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
692
693         Reviewed by Maciej.
694
695         * platform/network/mac/ResourceLoaderMac.mm:
696         (WebCore::ResourceLoader::start):
697         Don't retain the header dictionary.
698
699 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
700
701         Reviewed by Anders.
702
703         Fixed http://bugs.webkit.org/show_bug.cgi?id=11404
704         REGRESSION: Reproducible assertion failure in Shared<WebCore::StringImpl>::ref() 
705         running svg/custom/svg/custom/gradient-attr-update.svg
706         
707         SVGRenderStyle wasn't ref-ing the shared objects it held onto. Oops.
708
709         * ksvg2/css/SVGRenderStyle.h:
710         * ksvg2/css/SVGRenderStyleDefs.h:
711
712 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
713
714         Reviewed by Mitz.
715
716         * platform/network/ResourceRequest.h:
717         (WebCore::ResourceRequest::ResourceRequest):
718         Set the http method to "GET" in the constructor that takes a String.
719
720 2006-10-24  Sam Weinig  <sam.weinig@gmail.com>
721
722         Reviewed by Tim H.
723
724         Move kcanvas/Render* and kcanvas/SVG* to rendering/Render*
725         and rendering/SVG* respectively.  Fix Xcode project and
726         CMakeLists.txt to account for the moves.
727
728         * CMakeLists.txt:
729         * WebCore.xcodeproj/project.pbxproj:
730         * kcanvas/RenderForeignObject.cpp: Removed.
731         * kcanvas/RenderForeignObject.h: Removed.
732         * kcanvas/RenderPath.cpp: Removed.
733         * kcanvas/RenderPath.h: Removed.
734         * kcanvas/RenderSVGContainer.cpp: Removed.
735         * kcanvas/RenderSVGContainer.h: Removed.
736         * kcanvas/RenderSVGImage.cpp: Removed.
737         * kcanvas/RenderSVGImage.h: Removed.
738         * kcanvas/RenderSVGInline.cpp: Removed.
739         * kcanvas/RenderSVGInline.h: Removed.
740         * kcanvas/RenderSVGInlineText.cpp: Removed.
741         * kcanvas/RenderSVGInlineText.h: Removed.
742         * kcanvas/RenderSVGTSpan.cpp: Removed.
743         * kcanvas/RenderSVGTSpan.h: Removed.
744         * kcanvas/RenderSVGText.cpp: Removed.
745         * kcanvas/RenderSVGText.h: Removed.
746         * kcanvas/SVGInlineFlowBox.cpp: Removed.
747         * kcanvas/SVGInlineFlowBox.h: Removed.
748         * kcanvas/SVGRootInlineBox.cpp: Removed.
749         * kcanvas/SVGRootInlineBox.h: Removed.
750
751 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
752
753         Rolling back in, now fixed:
754         
755         Nixed a few more redundant loading functions in Frame. Did my best to update
756         the non-Mac builds.
757
758         * bridge/mac/FrameMac.h:
759         * bridge/mac/FrameMac.mm:
760         (WebCore::FrameMac::urlSelected): Kept always 'true' argument for userGesture
761         always 'true', because changing it broke the world, and testing seems to
762         indicate that the one caller that might have passed 'false' didn't need to.
763         * page/Frame.cpp:
764         (WebCore::Frame::requestFrame):
765         (WebCore::Frame::frameLoader):
766         (WebCore::Frame::redirectionTimerFired):
767         * page/Frame.h:
768         * platform/gdk/FrameGdk.cpp:
769         * platform/gdk/FrameGdk.h:
770         * platform/gdk/TemporaryLinkStubs.cpp:
771         (FrameGdk::issueCopyCommand):
772         * platform/qt/FrameQt.cpp:
773         * platform/qt/FrameQt.h:
774         * platform/win/TemporaryLinkStubs.cpp:
775         (WebCore::FrameWin::shouldInterruptJavaScript):
776         (WebCore::FrameWin::issueCopyCommand):
777
778 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
779
780         Fix the build (Update for changes to ResourceLoader)
781         
782         * platform/network/cf/ResourceLoaderCFNet.cpp:
783         (WebCore::addHeadersFromHashMap):
784         (WebCore::ResourceLoader::start):
785         (WebCore::ResourceLoader::cancel):
786
787 2006-10-24  Sam Weinig  <sam.weinig@gmail.com>
788
789         Reviewed by Mitz.
790
791         Change #includes using <kcanvas/*.h> to use "*.h" instead
792         to prepare for moving the kcanvas files.
793
794         * kcanvas/RenderSVGContainer.h:
795         * ksvg2/svg/SVGAElement.cpp:
796         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
797         * ksvg2/svg/SVGFETileElement.cpp:
798         * ksvg2/svg/SVGStyledLocatableElement.cpp:
799         * ksvg2/svg/SVGStyledTransformableElement.cpp:
800
801 2006-10-24  Maciej Stachowiak  <mjs@apple.com>
802
803         Reviewed by Darin.
804
805         - More movement towards the final network API.
806         
807         Changed ResourceLoader::create to take a ResurceRequest and start
808         the load. Removed methods relating to setting request
809         headers. Removed methods relating to metaData. Added some more
810         convenience methods to ResourceRequest.
811
812         * dom/XMLTokenizer.cpp:
813         (WebCore::openFunc):
814         * loader/LoaderFunctions.h:
815         * loader/icon/IconLoader.cpp:
816         (IconLoader::startLoading):
817         (IconLoader::didFinishLoading):
818         * loader/icon/IconLoader.h:
819         * loader/loader.cpp:
820         (WebCore::Loader::servePendingRequests):
821         * loader/mac/LoaderFunctionsMac.mm:
822         (WebCore::ServeSynchronousRequest):
823         * platform/gdk/FrameGdk.cpp:
824         (WebCore::FrameGdkClientDefault::openURL):
825         (WebCore::FrameGdkClientDefault::submitForm):
826         * platform/network/ResourceLoader.cpp:
827         (WebCore::ResourceLoader::ResourceLoader):
828         (WebCore::ResourceLoader::create):
829         (WebCore::ResourceLoader::responseHTTPHeadersAsString):
830         (WebCore::ResourceLoader::url):
831         (WebCore::ResourceLoader::postData):
832         (WebCore::ResourceLoader::method):
833         (WebCore::ResourceLoader::client):
834         * platform/network/ResourceLoader.h:
835         * platform/network/ResourceLoaderInternal.h:
836         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
837         * platform/network/ResourceRequest.h:
838         (WebCore::ResourceRequest::ResourceRequest):
839         (WebCore::ResourceRequest::httpAccept):
840         (WebCore::ResourceRequest::setHTTPAccept):
841         (WebCore::ResourceRequest::addHTTPHeaderFields):
842         * platform/network/mac/ResourceLoaderMac.mm:
843         (WebCore::ResourceLoader::start):
844         (WebCore::ResourceLoader::receivedResponse):
845         * platform/qt/FrameQtClient.cpp:
846         (WebCore::FrameQtClientDefault::openURL):
847         (WebCore::FrameQtClientDefault::submitForm):
848         * platform/win/TemporaryLinkStubs.cpp:
849         (WebCore::ResourceLoader::retrieveResponseEncoding):
850         * xml/XSLTProcessor.cpp:
851         (WebCore::docLoaderFunc):
852         * xml/xmlhttprequest.cpp:
853         (WebCore::XMLHttpRequest::send):
854         (WebCore::XMLHttpRequest::didFinishLoading):
855         (WebCore::XMLHttpRequest::didReceiveData):
856         * xml/xmlhttprequest.h:
857
858 2006-10-24  Anders Carlsson  <acarlsson@apple.com>
859
860         Reviewed by Geoff.
861
862         * loader/FormData.cpp:
863         (WebCore::FormData::FormData):
864         * loader/FormData.h:
865         (WebCore::FormData::FormData):
866         Add new constructor that takes a void* and a size.
867
868 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
869
870         Rolling out my last change because it broke the world.
871
872         * bridge/mac/FrameMac.h:
873         * bridge/mac/FrameMac.mm:
874         (WebCore::FrameMac::openURL):
875         (WebCore::FrameMac::openURLRequest):
876         (WebCore::FrameMac::urlSelected):
877         * page/Frame.cpp:
878         (WebCore::Frame::openURL):
879         (WebCore::Frame::frameLoader):
880         (WebCore::Frame::requestFrame):
881         (WebCore::Frame::redirectionTimerFired):
882         * page/Frame.h:
883         * platform/gdk/FrameGdk.cpp:
884         (WebCore::FrameGdk::openURL):
885         * platform/gdk/FrameGdk.h:
886         * platform/gdk/TemporaryLinkStubs.cpp:
887         * platform/qt/FrameQt.cpp:
888         (WebCore::FrameQt::openURL):
889         (WebCore::FrameQt::openURLRequest):
890         * platform/qt/FrameQt.h:
891         * platform/win/TemporaryLinkStubs.cpp:
892         (WebCore::FrameWin::openURL):
893         (WebCore::FrameWin::openURLRequest):
894
895 2006-10-24  Nikolas Zimmermann  <zimmermann@kde.org>
896
897         Reviewed by Adam.
898
899         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11396
900
901         Kill KRenderingFillPainter/KRenderingStrokePainter. Those are not needed
902         anymore, since kcanvas/ksvg2 are tightly integrated. No LayoutTests fixed
903         or broken.
904
905         * CMakeLists.txt:
906         * WebCore.xcodeproj/project.pbxproj:
907         * kcanvas/KCanvasTreeDebug.cpp:
908         (WebCore::operator<<):
909         (WebCore::writeStyle):
910         * kcanvas/RenderPath.cpp:
911         (WebCore::RenderPath::fillContains):
912         * kcanvas/device/KRenderingFillPainter.cpp:
913         * kcanvas/device/KRenderingFillPainter.h:
914         * kcanvas/device/KRenderingStrokePainter.cpp:
915         * kcanvas/device/KRenderingStrokePainter.h:
916         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
917         (WebCore::KRenderingPaintServerLinearGradientQt::setup):
918         (WebCore::KRenderingPaintServerRadialGradientQt::setup):
919         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
920         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
921         (WebCore::KRenderingPaintServerQt::setPenProperties):
922         * kcanvas/device/qt/KRenderingPaintServerQt.h:
923         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
924         (WebCore::KRenderingPaintServerSolidQt::setup):
925         * kcanvas/device/qt/RenderPathQt.cpp:
926         (WebCore::getPathStroke):
927         (WebCore::RenderPath::strokeBBox):
928         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
929         (WebCore::RenderPath::strokeBBox):
930         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
931         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
932         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
933         (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
934         (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
935         * kcanvas/device/quartz/QuartzSupport.h:
936         (WebCore::CGLineCapFromKC):
937         (WebCore::CGLineJoinFromKC):
938         * kcanvas/device/quartz/QuartzSupport.mm:
939         (WebCore::applyStrokeStyleToContext):
940         (WebCore::strokeBoundingBox):
941         * ksvg2/css/SVGCSSStyleSelector.cpp:
942         (WebCore::CSSStyleSelector::applySVGProperty):
943         * ksvg2/css/SVGRenderStyle.h:
944         (WebCore::SVGRenderStyle::InheritedFlags::):
945         * ksvg2/css/SVGRenderStyleDefs.h:
946         * ksvg2/misc/KCanvasRenderingStyle.cpp:
947         (WebCore::KSVGPainterFactory::dashArrayFromRenderingStyle):
948         * ksvg2/misc/KCanvasRenderingStyle.h:
949         * ksvg2/svg/SVGFEImageElement.cpp:
950
951 2006-10-24  Geoffrey Garen  <ggaren@apple.com>
952
953         Reviewed by Anders.
954
955         Nixed a few more redundant loading functions in Frame. Did my best to update
956         the non-Mac builds.
957
958         * bridge/mac/FrameMac.h:
959         * bridge/mac/FrameMac.mm:
960         (WebCore::FrameMac::urlSelected): Changed always 'true' argument for userGesture
961         to actually check for a user gesture. New callers rely on this behavior,
962         and it seems like the previous behavior must have been a bug.
963         * page/Frame.cpp:
964         (WebCore::Frame::requestFrame):
965         (WebCore::Frame::frameLoader):
966         (WebCore::Frame::redirectionTimerFired):
967         * page/Frame.h:
968         * platform/gdk/FrameGdk.cpp:
969         * platform/gdk/FrameGdk.h:
970         * platform/gdk/TemporaryLinkStubs.cpp:
971         (FrameGdk::issueCopyCommand):
972         * platform/qt/FrameQt.cpp:
973         * platform/qt/FrameQt.h:
974         * platform/win/TemporaryLinkStubs.cpp:
975         (WebCore::FrameWin::shouldInterruptJavaScript):
976         (WebCore::FrameWin::issueCopyCommand):
977
978 2006-10-24  Nikolas Zimmermann  <zimmermann@kde.org>
979
980         Reviewed by Maciej.
981
982         Fix Qt/Linux build.
983
984         - Remove BrowserExtensionQt, move it's methods to Page/FrameQt.
985         - Fix CMakeLists.txt to include platform/network.
986
987         * CMakeLists.txt:
988         * platform/qt/BrowserExtensionQt.cpp: Removed.
989         * platform/qt/BrowserExtensionQt.h: Removed.
990         * platform/qt/FrameQt.cpp:
991         (WebCore::FrameQt::FrameQt):
992         (WebCore::FrameQt::createNewWindow):
993         (WebCore::FrameQt::goBackOrForward):
994         (WebCore::FrameQt::historyURL):
995         (WebCore::FrameQt::getHistoryLength):
996         * platform/qt/FrameQt.h:
997         * platform/qt/PageQt.cpp:
998         (WebCore::Page::canRunModal):
999         (WebCore::Page::canRunModalNow):
1000         (WebCore::Page::runModal):
1001
1002 2006-10-24  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1003
1004         Reviewed by Tim H.
1005
1006         Fix for http://bugs.webkit.org/show_bug.cgi?id=11314
1007         Fix build when XSLT_SUPPORT is not defined
1008
1009         Fix unconditional use of XSLT support.
1010
1011         * dom/XMLTokenizer.cpp:
1012         (WebCore::XMLTokenizer::end):
1013
1014 2006-10-24  Simon Hausmann  <hausmann@kde.org>
1015
1016         Reviewed by Darin.
1017
1018         * CMakeLists.txt: Added project name to kde4_automoc macro, as
1019           required by the latest KDE4 cmake module.
1020
1021 2006-10-24  Mitz Pettel  <mitz@webkit.org>
1022
1023         Reviewed by Tim H.
1024
1025         - fix http://bugs.webkit.org/show_bug.cgi?id=11394
1026           HTMLViewSourceDocuments are leaking
1027
1028         * html/HTMLViewSourceDocument.h: Changed RefPtr to plain pointer to avoid
1029         ref cycle.
1030
1031 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
1032
1033         Reviewed by Darin.
1034
1035         Removed one of Frame's redundant urlSelected methods.
1036
1037         * bridge/mac/FrameMac.h:
1038         * bridge/mac/FrameMac.mm:
1039         (WebCore::FrameMac::urlSelected):
1040         since it's unused.
1041         * html/HTMLAnchorElement.cpp:
1042         (WebCore::HTMLAnchorElement::defaultEventHandler): Changed DeprecatedString
1043         to String because the former is deprecated and its performance is irrelevant
1044         here. Added call to completeURL because Frame no longer does it for us.
1045         Having the call here also improves clarity about the element's behavior.
1046         * ksvg2/svg/SVGAElement.cpp:
1047         (WebCore::SVGAElement::defaultEventHandler): ditto. Also removed bizarre
1048         irrelevent NULL checks on ownerDocument() because I couldn't help myself.
1049         * page/Frame.cpp:
1050         (WebCore::Frame::changeLocation):
1051         (WebCore::Frame::urlSelected):
1052         * page/Frame.h:
1053         * platform/network/ResourceRequest.h: Removed explicit keyword on constructor
1054         because we want to be able to use these constructors instead of helper functions
1055         mimicking their behavior sprinkled across different classes.
1056         (WebCore::ResourceRequest::ResourceRequest):
1057
1058 2006-10-24  Brady Eidson  <beidson@apple.com>
1059
1060         Reviewed by Maciej
1061
1062         Moved FrameLoader from WebCoreFrameBridge to Frame.  Frame.h/cpp have generic accessors to the FrameLoader itself
1063         and creation/deletion is currently managed in FrameMac.mm
1064
1065         Besides explicitly commented-upon methods, most of the touched code simply changes to get the FrameLoader from the 
1066         frame instead of the bridge.
1067
1068         The method [WebCoreFrameBridge frameLoader] remains but only for WebKit's use - No new WebCore code should make 
1069         use of it as its days are numbered!
1070
1071         * bridge/mac/FrameMac.mm:
1072         (WebCore::FrameMac::FrameMac): Create the FrameLoader
1073         (WebCore::FrameMac::~FrameMac): Nuke it
1074         (WebCore::FrameMac::loadRequest):
1075
1076         * bridge/mac/WebCoreFrameBridge.h: No longer holds an m_frameLoader
1077         * bridge/mac/WebCoreFrameBridge.mm:
1078         (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]): No longer creates the FrameLoader
1079         (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]): Ditto
1080         (-[WebCoreFrameBridge clearFrame]): No longer tears down the FrameLoader
1081         (-[WebCoreFrameBridge setFrameLoaderClient:]):
1082         (-[WebCoreFrameBridge frameLoader]):
1083         (-[WebCoreFrameBridge setTitle:]):
1084         (-[WebCoreFrameBridge didFirstLayout]):
1085         (-[WebCoreFrameBridge notifyIconChanged:]):
1086         (-[WebCoreFrameBridge originalRequestURL]):
1087         (-[WebCoreFrameBridge isLoadTypeReload]):
1088         (-[WebCoreFrameBridge frameDetached]):
1089         (-[WebCoreFrameBridge tokenizerProcessedData]):
1090         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
1091         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
1092         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
1093         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
1094         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1095         (-[WebCoreFrameBridge incomingReferrer]):
1096         (-[WebCoreFrameBridge isReloading]):
1097         (-[WebCoreFrameBridge handledOnloadEvents]):
1098         (-[WebCoreFrameBridge mainResourceURLResponse]):
1099         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
1100
1101         * loader/mac/WebDocumentLoader.mm:
1102         (WebCore::DocumentLoader::frameLoader):
1103
1104         * loader/mac/WebFrameLoader.mm:
1105         (WebCore::FrameLoader::load):
1106         (WebCore::FrameLoader::stopLoadingSubframes):
1107         (WebCore::FrameLoader::defersCallbacksChanged):
1108         (WebCore::FrameLoader::setState):
1109         (WebCore::FrameLoader::closeOldDataSources):
1110         (WebCore::FrameLoader::subframeIsLoading):
1111         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
1112         (WebCore::FrameLoader::post):
1113         (WebCore::FrameLoader::detachChildren):
1114         (WebCore::FrameLoader::checkLoadComplete):
1115
1116         * loader/mac/WebLoader.mm:
1117         (WebCore::WebResourceLoader::frameLoader):
1118
1119         * loader/mac/WebSubresourceLoader.mm:
1120         (-[WebCoreSubresourceHandle initWithLoader:]):
1121
1122         * page/Frame.cpp:
1123         (WebCore::Frame::frameLoader):
1124         * page/Frame.h:
1125         * page/FramePrivate.h:
1126         (WebCore::FramePrivate::FramePrivate):
1127
1128 2006-10-24  Darin Adler  <darin@apple.com>
1129
1130         Reviewed by Maciej.
1131
1132         - fixed two crashes in layout tests I just introduced
1133
1134         * loader/mac/WebFrameLoader.mm:
1135         (WebCore::FrameLoader::load): Add null check.
1136         (WebCore::FrameLoader::setState): Ditto.
1137
1138 2006-10-23  Darin Adler  <darin@apple.com>
1139
1140         Reviewed by Geoff.
1141
1142         - converted WebDocumentLoader to C++
1143
1144         * WebCore.exp:
1145         * bridge/mac/WebCoreFrameBridge.mm:
1146         (-[WebCoreFrameBridge setTitle:]):
1147         (-[WebCoreFrameBridge originalRequestURL]):
1148         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
1149         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1150         (-[WebCoreFrameBridge incomingReferrer]):
1151         (-[WebCoreFrameBridge isReloading]):
1152         (-[WebCoreFrameBridge mainResourceURLResponse]):
1153         * loader/mac/WebDocumentLoader.h:
1154         * loader/mac/WebDocumentLoader.mm:
1155         (WebCore::DocumentLoader::DocumentLoader):
1156         (WebCore::DocumentLoader::frameLoader):
1157         (WebCore::DocumentLoader::~DocumentLoader):
1158         (WebCore::DocumentLoader::setMainResourceData):
1159         (WebCore::DocumentLoader::mainResourceData):
1160         (WebCore::DocumentLoader::originalRequest):
1161         (WebCore::DocumentLoader::originalRequestCopy):
1162         (WebCore::DocumentLoader::request):
1163         (WebCore::DocumentLoader::initialRequest):
1164         (WebCore::DocumentLoader::actualRequest):
1165         (WebCore::DocumentLoader::URL):
1166         (WebCore::DocumentLoader::unreachableURL):
1167         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
1168         (WebCore::DocumentLoader::setRequest):
1169         (WebCore::DocumentLoader::setResponse):
1170         (WebCore::DocumentLoader::isStopping):
1171         (WebCore::DocumentLoader::bridge):
1172         (WebCore::DocumentLoader::setMainDocumentError):
1173         (WebCore::DocumentLoader::mainDocumentError):
1174         (WebCore::DocumentLoader::clearErrors):
1175         (WebCore::DocumentLoader::mainReceivedError):
1176         (WebCore::DocumentLoader::stopLoading):
1177         (WebCore::DocumentLoader::setupForReplace):
1178         (WebCore::DocumentLoader::commitIfReady):
1179         (WebCore::DocumentLoader::finishedLoading):
1180         (WebCore::DocumentLoader::setCommitted):
1181         (WebCore::DocumentLoader::isCommitted):
1182         (WebCore::DocumentLoader::setLoading):
1183         (WebCore::DocumentLoader::isLoading):
1184         (WebCore::DocumentLoader::commitLoad):
1185         (WebCore::DocumentLoader::doesProgressiveLoad):
1186         (WebCore::DocumentLoader::receivedData):
1187         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
1188         (WebCore::DocumentLoader::updateLoading):
1189         (WebCore::DocumentLoader::response):
1190         (WebCore::DocumentLoader::setFrame):
1191         (WebCore::DocumentLoader::attachToFrame):
1192         (WebCore::DocumentLoader::detachFromFrame):
1193         (WebCore::DocumentLoader::prepareForLoadStart):
1194         (WebCore::DocumentLoader::loadingStartedTime):
1195         (WebCore::DocumentLoader::setIsClientRedirect):
1196         (WebCore::DocumentLoader::isClientRedirect):
1197         (WebCore::DocumentLoader::setPrimaryLoadComplete):
1198         (WebCore::DocumentLoader::isLoadingInAPISense):
1199         (WebCore::DocumentLoader::addResponse):
1200         (WebCore::DocumentLoader::stopRecordingResponses):
1201         (WebCore::DocumentLoader::title):
1202         (WebCore::DocumentLoader::setLastCheckedRequest):
1203         (WebCore::DocumentLoader::lastCheckedRequest):
1204         (WebCore::DocumentLoader::triggeringAction):
1205         (WebCore::DocumentLoader::setTriggeringAction):
1206         (WebCore::DocumentLoader::responses):
1207         (WebCore::DocumentLoader::setOverrideEncoding):
1208         (WebCore::DocumentLoader::overrideEncoding):
1209         (WebCore::DocumentLoader::setTitle):
1210         (WebCore::DocumentLoader::URLForHistory):
1211         * loader/mac/WebFrameLoader.h:
1212         * loader/mac/WebFrameLoader.mm:
1213         (WebCore::FrameLoader::setupForReplaceByMIMEType):
1214         (WebCore::FrameLoader::finalSetupForReplace):
1215         (WebCore::FrameLoader::safeLoad):
1216         (WebCore::FrameLoader::load):
1217         (WebCore::FrameLoader::startLoading):
1218         (WebCore::FrameLoader::stopLoading):
1219         (WebCore::FrameLoader::activeDocumentLoader):
1220         (WebCore::FrameLoader::addPlugInStreamLoader):
1221         (WebCore::FrameLoader::removePlugInStreamLoader):
1222         (WebCore::FrameLoader::addSubresourceLoader):
1223         (WebCore::FrameLoader::removeSubresourceLoader):
1224         (WebCore::FrameLoader::setDocumentLoader):
1225         (WebCore::FrameLoader::documentLoader):
1226         (WebCore::FrameLoader::setPolicyDocumentLoader):
1227         (WebCore::FrameLoader::provisionalDocumentLoader):
1228         (WebCore::FrameLoader::setProvisionalDocumentLoader):
1229         (WebCore::FrameLoader::setState):
1230         (WebCore::FrameLoader::clearProvisionalLoad):
1231         (WebCore::FrameLoader::commitProvisionalLoad):
1232         (WebCore::FrameLoader::didReceiveResponse):
1233         (WebCore::FrameLoader::originalRequest):
1234         (WebCore::FrameLoader::receivedMainResourceError):
1235         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
1236         (WebCore::FrameLoader::opened):
1237         (WebCore::FrameLoader::initialRequest):
1238         (WebCore::FrameLoader::receivedData):
1239         (WebCore::FrameLoader::setRequest):
1240         (WebCore::FrameLoader::isStopping):
1241         (WebCore::FrameLoader::setResponse):
1242         (WebCore::FrameLoader::mainReceivedError):
1243         (WebCore::FrameLoader::finishedLoading):
1244         (WebCore::FrameLoader::notifyIconChanged):
1245         (WebCore::FrameLoader::URL):
1246         (WebCore::FrameLoader::checkContentPolicy):
1247         (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
1248         (WebCore::FrameLoader::reloadAllowingStaleData):
1249         (WebCore::FrameLoader::reload):
1250         (WebCore::FrameLoader::finishedLoadingDocument):
1251         (WebCore::FrameLoader::committedLoad):
1252         (WebCore::FrameLoader::revertToProvisional):
1253         (WebCore::FrameLoader::setMainDocumentError):
1254         (WebCore::FrameLoader::mainReceivedCompleteError):
1255         (WebCore::FrameLoader::subframeIsLoading):
1256         (WebCore::FrameLoader::willChangeTitle):
1257         (WebCore::FrameLoader::didChangeTitle):
1258         (WebCore::FrameLoader::checkNavigationPolicy):
1259         (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
1260         (WebCore::FrameLoader::transitionToCommitted):
1261         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
1262         (WebCore::FrameLoader::detachFromParent):
1263         * loader/mac/WebFrameLoaderClient.h:
1264
1265 2006-10-23  Brady Eidson  <beidson@apple.com>
1266
1267         Lovingly reviewed by Maciej
1268
1269         Moved loadURL and postURL logic out of WebCoreFrameBridge to FrameMac::loadRequest
1270         This is a big step towards moving FrameLoader out of the Bridge into Frame/Mac itself
1271
1272         * bridge/mac/BrowserExtensionMac.mm:
1273         (WebCore::BrowserExtensionMac::createNewWindow): Use FrameMac::loadRequest
1274
1275         * bridge/mac/FrameMac.mm:
1276         (WebCore::FrameMac::loadRequest): loadURL and postURL logic moved from WebCoreFrameBridge to here
1277
1278         * bridge/mac/WebCoreFrameBridge.h: Nuked loadURL and postURL
1279         * bridge/mac/WebCoreFrameBridge.mm: Ditto
1280         * loader/mac/WebFrameLoader.mm:
1281         (-[WebFrameLoader safeLoadURL:]): Use FrameMac::loadRequest
1282
1283 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
1284
1285         RS by Maciej.
1286
1287         Inside Frame, moved the plethora of load() and stopLoading() functions next 
1288         to each other to facilitate merging and crying.
1289
1290         * bridge/mac/FrameMac.h:
1291         * bridge/mac/FrameMac.mm:
1292         (WebCore::FrameMac::loadRequest):
1293         (WebCore::FrameMac::submitForm):
1294         (WebCore::FrameMac::openURL):
1295         (WebCore::FrameMac::openURLRequest):
1296         (WebCore::FrameMac::urlSelected):
1297         (WebCore::FrameMac::openURLFromPageCache):
1298         (WebCore::FrameMac::createFrame):
1299         * page/Frame.cpp:
1300         (WebCore::Frame::openURL):
1301         (WebCore::Frame::changeLocation):
1302         (WebCore::Frame::urlSelected):
1303         (WebCore::Frame::requestFrame):
1304         (WebCore::Frame::loadSubframe):
1305         (WebCore::Frame::submitFormAgain):
1306         (WebCore::Frame::submitForm):
1307         (WebCore::Frame::stop):
1308         (WebCore::Frame::closeURL):
1309         (WebCore::Frame::cancelRedirection):
1310         (WebCore::Frame::iconURL):
1311         (WebCore::Frame::didOpenURL):
1312         (WebCore::Frame::didExplicitOpen):
1313         * page/Frame.h:
1314
1315 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
1316
1317         RS by Maciej.
1318
1319         Moved our plethora of load() and stopLoading() functions next to each other
1320         to facilitate merging and laughter.
1321
1322         * loader/mac/WebFrameLoader.h:
1323         * loader/mac/WebFrameLoader.mm:
1324         (WebCore::cancelAll):
1325         (WebCore::FrameLoader::prepareForLoadStart):
1326         (WebCore::FrameLoader::setupForReplace):
1327         (WebCore::FrameLoader::setupForReplaceByMIMEType):
1328         (WebCore::FrameLoader::finalSetupForReplace):
1329         (WebCore::FrameLoader::safeLoad):
1330         (WebCore::FrameLoader::load):
1331         (WebCore::FrameLoader::startLoadingMainResource):
1332         (WebCore::FrameLoader::startLoading):
1333         (WebCore::FrameLoader::stopLoadingPlugIns):
1334         (WebCore::FrameLoader::stopLoadingSubresources):
1335         (WebCore::FrameLoader::stopLoading):
1336         (WebCore::FrameLoader::stopLoadingSubframes):
1337         (WebCore::FrameLoader::cancelMainResourceLoad):
1338         (WebCore::FrameLoader::cancelPendingArchiveLoad):
1339         (WebCore::FrameLoader::removeSubresourceLoader):
1340         (WebCore::FrameLoader::mainResourceData):
1341         (WebCore::FrameLoader::releaseMainResourceLoader):
1342
1343 2006-10-23  Darin Adler  <darin@apple.com>
1344
1345         Reviewed by Maciej.
1346
1347         - converted WebFrameLoader to C++
1348
1349         * WebCore.exp: Added many new entry points for WebKit.
1350         * WebCore.xcodeproj/project.pbxproj: Made more files private (SPI).
1351
1352         * bridge/mac/WebCoreFrameBridge.h:
1353         * bridge/mac/WebCoreFrameBridge.mm:
1354         (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
1355         (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
1356         (-[WebCoreFrameBridge dealloc]):
1357         (-[WebCoreFrameBridge close]):
1358         (-[WebCoreFrameBridge clearFrame]):
1359         (-[WebCoreFrameBridge setFrameLoaderClient:]):
1360         (-[WebCoreFrameBridge frameLoader]):
1361         (-[WebCoreFrameBridge setTitle:]):
1362         (-[WebCoreFrameBridge didFirstLayout]):
1363         (-[WebCoreFrameBridge notifyIconChanged:]):
1364         (-[WebCoreFrameBridge originalRequestURL]):
1365         (-[WebCoreFrameBridge isLoadTypeReload]):
1366         (-[WebCoreFrameBridge frameDetached]):
1367         (-[WebCoreFrameBridge tokenizerProcessedData]):
1368         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
1369         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
1370         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
1371         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
1372         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
1373         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
1374         (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1375         (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1376         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1377         (-[WebCoreFrameBridge incomingReferrer]):
1378         (-[WebCoreFrameBridge isReloading]):
1379         (-[WebCoreFrameBridge handledOnloadEvents]):
1380         (-[WebCoreFrameBridge mainResourceURLResponse]):
1381         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
1382         * loader/mac/WebDocumentLoader.h:
1383         * loader/mac/WebDocumentLoader.mm:
1384         (-[WebDocumentLoader frameLoader]):
1385         (-[WebDocumentLoader dealloc]):
1386         (-[WebDocumentLoader mainResourceData]):
1387         (-[WebDocumentLoader setRequest:]):
1388         (-[WebDocumentLoader bridge]):
1389         (-[WebDocumentLoader setMainDocumentError:]):
1390         (-[WebDocumentLoader mainReceivedError:complete:]):
1391         (-[WebDocumentLoader stopLoading]):
1392         (-[WebDocumentLoader setupForReplace]):
1393         (-[WebDocumentLoader commitIfReady]):
1394         (-[WebDocumentLoader finishedLoading]):
1395         (-[WebDocumentLoader commitLoadWithData:]):
1396         (-[WebDocumentLoader doesProgressiveLoadWithMIMEType:]):
1397         (-[WebDocumentLoader setupForReplaceByMIMEType:]):
1398         (-[WebDocumentLoader updateLoading]):
1399         (-[WebDocumentLoader setFrame:]):
1400         (-[WebDocumentLoader attachToFrame]):
1401         (-[WebDocumentLoader detachFromFrame]):
1402         (-[WebDocumentLoader prepareForLoadStart]):
1403         (-[WebDocumentLoader setPrimaryLoadComplete:]):
1404         (-[WebDocumentLoader isLoadingInAPISense]):
1405         (-[WebDocumentLoader setTitle:]):
1406         * loader/mac/WebFrameLoader.h:
1407         (WebCore::FrameLoader::frame):
1408         * loader/mac/WebFrameLoader.mm:
1409         (WebCore::FrameLoader::FrameLoader):
1410         (WebCore::FrameLoader::~FrameLoader):
1411         (WebCore::FrameLoader::activeDocumentLoader):
1412         (WebCore::FrameLoader::addPlugInStreamLoader):
1413         (WebCore::FrameLoader::removePlugInStreamLoader):
1414         (WebCore::FrameLoader::defersCallbacksChanged):
1415         (WebCore::FrameLoader::defersCallbacks):
1416         (WebCore::setAllDefersCallbacks):
1417         (WebCore::FrameLoader::setDefersCallbacks):
1418         (WebCore::cancelAll):
1419         (WebCore::FrameLoader::stopLoadingPlugIns):
1420         (WebCore::FrameLoader::isLoadingMainResource):
1421         (WebCore::FrameLoader::isLoadingSubresources):
1422         (WebCore::FrameLoader::isLoadingPlugIns):
1423         (WebCore::FrameLoader::isLoading):
1424         (WebCore::FrameLoader::stopLoadingSubresources):
1425         (WebCore::FrameLoader::addSubresourceLoader):
1426         (WebCore::FrameLoader::removeSubresourceLoader):
1427         (WebCore::FrameLoader::mainResourceData):
1428         (WebCore::FrameLoader::releaseMainResourceLoader):
1429         (WebCore::FrameLoader::cancelMainResourceLoad):
1430         (WebCore::FrameLoader::startLoadingMainResource):
1431         (WebCore::FrameLoader::stopLoading):
1432         (WebCore::FrameLoader::setDocumentLoader):
1433         (WebCore::FrameLoader::documentLoader):
1434         (WebCore::FrameLoader::setPolicyDocumentLoader):
1435         (WebCore::FrameLoader::provisionalDocumentLoader):
1436         (WebCore::FrameLoader::setProvisionalDocumentLoader):
1437         (WebCore::FrameLoader::state):
1438         (WebCore::FrameLoader::timeOfLastCompletedLoad):
1439         (WebCore::FrameLoader::provisionalLoadStarted):
1440         (WebCore::FrameLoader::setState):
1441         (WebCore::FrameLoader::clearProvisionalLoad):
1442         (WebCore::FrameLoader::markLoadComplete):
1443         (WebCore::FrameLoader::commitProvisionalLoad):
1444         (WebCore::FrameLoader::stopLoadingSubframes):
1445         (WebCore::FrameLoader::startLoading):
1446         (WebCore::FrameLoader::setupForReplace):
1447         (WebCore::FrameLoader::identifierForInitialRequest):
1448         (WebCore::FrameLoader::willSendRequest):
1449         (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
1450         (WebCore::FrameLoader::didCancelAuthenticationChallenge):
1451         (WebCore::FrameLoader::didReceiveResponse):
1452         (WebCore::FrameLoader::didReceiveData):
1453         (WebCore::FrameLoader::didFinishLoad):
1454         (WebCore::FrameLoader::didFailToLoad):
1455         (WebCore::FrameLoader::privateBrowsingEnabled):
1456         (WebCore::FrameLoader::originalRequest):
1457         (WebCore::FrameLoader::receivedMainResourceError):
1458         (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
1459         (WebCore::FrameLoader::clientRedirected):
1460         (WebCore::FrameLoader::shouldReload):
1461         (WebCore::FrameLoader::load):
1462         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
1463         (WebCore::FrameLoader::closeOldDataSources):
1464         (WebCore::FrameLoader::opened):
1465         (WebCore::FrameLoader::initialRequest):
1466         (WebCore::FrameLoader::receivedData):
1467         (WebCore::FrameLoader::setRequest):
1468         (WebCore::FrameLoader::download):
1469         (WebCore::FrameLoader::bridge):
1470         (WebCore::FrameLoader::handleFallbackContent):
1471         (WebCore::FrameLoader::isStopping):
1472         (WebCore::FrameLoader::setupForReplaceByMIMEType):
1473         (WebCore::FrameLoader::setResponse):
1474         (WebCore::FrameLoader::mainReceivedError):
1475         (WebCore::FrameLoader::finishedLoading):
1476         (WebCore::FrameLoader::notifyIconChanged):
1477         (WebCore::FrameLoader::URL):
1478         (WebCore::FrameLoader::cancelledError):
1479         (WebCore::FrameLoader::fileDoesNotExistError):
1480         (WebCore::FrameLoader::willUseArchive):
1481         (WebCore::FrameLoader::isArchiveLoadPending):
1482         (WebCore::FrameLoader::cancelPendingArchiveLoad):
1483         (WebCore::FrameLoader::handleUnimplementablePolicy):
1484         (WebCore::FrameLoader::cannotShowMIMEType):
1485         (WebCore::FrameLoader::interruptionForPolicyChangeError):
1486         (WebCore::FrameLoader::isHostedByObjectElement):
1487         (WebCore::FrameLoader::isLoadingMainFrame):
1488         (WebCore::FrameLoader::canShowMIMEType):
1489         (WebCore::FrameLoader::representationExistsForURLScheme):
1490         (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
1491         (WebCore::FrameLoader::checkNavigationPolicy):
1492         (WebCore::FrameLoader::checkContentPolicy):
1493         (WebCore::FrameLoader::cancelContentPolicyCheck):
1494         (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
1495         (WebCore::FrameLoader::reloadAllowingStaleData):
1496         (WebCore::FrameLoader::reload):
1497         (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
1498         (WebCore::FrameLoader::finishedLoadingDocument):
1499         (WebCore::FrameLoader::committedLoad):
1500         (WebCore::FrameLoader::isReplacing):
1501         (WebCore::FrameLoader::setReplacing):
1502         (WebCore::FrameLoader::revertToProvisional):
1503         (WebCore::FrameLoader::setMainDocumentError):
1504         (WebCore::FrameLoader::mainReceivedCompleteError):
1505         (WebCore::FrameLoader::finalSetupForReplace):
1506         (WebCore::FrameLoader::prepareForLoadStart):
1507         (WebCore::FrameLoader::subframeIsLoading):
1508         (WebCore::FrameLoader::willChangeTitle):
1509         (WebCore::FrameLoader::didChangeTitle):
1510         (WebCore::FrameLoader::loadType):
1511         (WebCore::FrameLoader::invalidatePendingPolicyDecision):
1512         (WebCore::FrameLoader::checkNewWindowPolicy):
1513         (WebCore::FrameLoader::continueAfterNewWindowPolicy):
1514         (WebCore::FrameLoader::continueAfterNavigationPolicy):
1515         (WebCore::FrameLoader::continueAfterWillSubmitForm):
1516         (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
1517         (WebCore::FrameLoader::didFirstLayout):
1518         (WebCore::FrameLoader::frameLoadCompleted):
1519         (WebCore::FrameLoader::firstLayoutDone):
1520         (WebCore::FrameLoader::isQuickRedirectComing):
1521         (WebCore::FrameLoader::transitionToCommitted):
1522         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
1523         (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
1524         (WebCore::FrameLoader::sendRemainingDelegateMessages):
1525         (WebCore::FrameLoader::requestFromDelegate):
1526         (WebCore::FrameLoader::post):
1527         (WebCore::FrameLoader::detachChildren):
1528         (WebCore::FrameLoader::detachFromParent):
1529         (WebCore::FrameLoader::addExtraFieldsToRequest):
1530         (WebCore::FrameLoader::safeLoad):
1531         (WebCore::FrameLoader::actionInformation):
1532         (WebCore::FrameLoader::checkLoadComplete):
1533         (WebCore::FrameLoader::setFrameLoaderClient):
1534         (WebCore::FrameLoader::client):
1535         (WebCore::FrameLoader::asDelegate):
1536         (-[WebCoreFrameLoaderAsDelegate initWithLoader:]):
1537         (-[WebCoreFrameLoaderAsDelegate detachFromLoader]):
1538         (-[WebCoreFrameLoaderAsDelegate continueFragmentScrollAfterNavigationPolicy:formState:]):
1539         (-[WebCoreFrameLoaderAsDelegate continueAfterNewWindowPolicy:]):
1540         (-[WebCoreFrameLoaderAsDelegate continueAfterNavigationPolicy:]):
1541         (-[WebCoreFrameLoaderAsDelegate continueAfterWillSubmitForm:]):
1542         (-[WebCoreFrameLoaderAsDelegate continueLoadRequestAfterNavigationPolicy:formState:]):
1543         (-[WebCoreFrameLoaderAsDelegate continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1544         * loader/mac/WebLoader.h:
1545         (WebCore::WebResourceLoader::identifier):
1546         (WebCore::WebResourceLoader::reachedTerminalState):
1547         (WebCore::WebResourceLoader::cancelled):
1548         * loader/mac/WebLoader.mm:
1549         (WebCore::WebResourceLoader::WebResourceLoader):
1550         (WebCore::WebResourceLoader::releaseResources):
1551         (WebCore::WebResourceLoader::load):
1552         (WebCore::WebResourceLoader::frameLoader):
1553         (WebCore::WebResourceLoader::willSendRequest):
1554         (WebCore::WebResourceLoader::didReceiveAuthenticationChallenge):
1555         (WebCore::WebResourceLoader::didCancelAuthenticationChallenge):
1556         (WebCore::WebResourceLoader::didReceiveResponse):
1557         (WebCore::WebResourceLoader::didReceiveData):
1558         (WebCore::WebResourceLoader::didFinishLoading):
1559         (WebCore::WebResourceLoader::didFinishLoadingOnePart):
1560         (WebCore::WebResourceLoader::didFail):
1561         (WebCore::WebResourceLoader::willCacheResponse):
1562         (WebCore::WebResourceLoader::didCancel):
1563         (WebCore::WebResourceLoader::cancel):
1564         (WebCore::WebResourceLoader::cancelledError):
1565         (WebCore::WebResourceLoader::delegate):
1566         * loader/mac/WebMainResourceLoader.h:
1567         * loader/mac/WebMainResourceLoader.mm:
1568         (WebCore::MainResourceLoader::MainResourceLoader):
1569         (WebCore::MainResourceLoader::create):
1570         (WebCore::MainResourceLoader::receivedError):
1571         (WebCore::MainResourceLoader::didCancel):
1572         (WebCore::MainResourceLoader::interruptionForPolicyChangeError):
1573         (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
1574         (WebCore::MainResourceLoader::addData):
1575         (WebCore::MainResourceLoader::willSendRequest):
1576         (WebCore::MainResourceLoader::continueAfterContentPolicy):
1577         (WebCore::MainResourceLoader::didReceiveResponse):
1578         (WebCore::MainResourceLoader::didReceiveData):
1579         (WebCore::MainResourceLoader::didFinishLoading):
1580         (WebCore::MainResourceLoader::didFail):
1581         (WebCore::MainResourceLoader::loadNow):
1582         (WebCore::MainResourceLoader::policyDelegate):
1583         * loader/mac/WebNetscapePlugInStreamLoader.h:
1584         * loader/mac/WebNetscapePlugInStreamLoader.mm:
1585         (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
1586         (WebCore::NetscapePlugInStreamLoader::create):
1587         (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
1588         (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
1589         (WebCore::NetscapePlugInStreamLoader::didFail):
1590         (WebCore::NetscapePlugInStreamLoader::didCancel):
1591         * loader/mac/WebSubresourceLoader.h:
1592         * loader/mac/WebSubresourceLoader.mm:
1593         (-[WebCoreSubresourceHandle initWithLoader:]):
1594
1595 2006-10-23  Geoffrey Garen  <ggaren@apple.com>
1596
1597         Reviewed by Bradee.
1598
1599         Shrunk BrowserExtension in preparation for its imminent death, moving page-
1600         level operations to Page and frame-level operations to Frame.
1601         
1602         Removed bizarre Mac(this) syntax inside virtual FrameMac member functions, 
1603         because 'this' is guaranteed by the compiler to be a FrameMac*.
1604         
1605         * bindings/js/kjs_window.cpp: Added NULL checks for m_frame in places
1606         where it can be NULL.
1607         * bindings/js/kjs_window.cpp:
1608         (KJS::canShowModalDialog):
1609         (KJS::canShowModalDialogNow):
1610         (KJS::showModalDialog):
1611         (KJS::History::getValueProperty):
1612         (KJS::HistoryFunc::callAsFunction):
1613         * bridge/BrowserExtension.h:
1614         (WebCore::BrowserExtension::~BrowserExtension):
1615         * bridge/mac/BrowserExtensionMac.h:
1616         * bridge/mac/BrowserExtensionMac.mm:
1617         (WebCore::BrowserExtensionMac::createNewWindow):
1618         * bridge/mac/FrameMac.h:
1619         * bridge/mac/FrameMac.mm:
1620         (WebCore::FrameMac::frameDetached):
1621         (WebCore::FrameMac::unfocusWindow):
1622         (WebCore::FrameMac::bridgeForWidget):
1623         (WebCore::FrameMac::documentViewForNode):
1624         (WebCore::FrameMac::passSubframeEventToSubframe):
1625         (WebCore::Frame::setNeedsReapplyStyles):
1626         (WebCore::FrameMac::customHighlightLineRect):
1627         (WebCore::FrameMac::paintCustomHighlight):
1628         (WebCore::FrameMac::getHistoryLength):
1629         (WebCore::FrameMac::goBackOrForward):
1630         (WebCore::FrameMac::historyURL):
1631         * bridge/mac/PageMac.mm:
1632         (WebCore::Page::canRunModal):
1633         (WebCore::Page::canRunModalNow):
1634         (WebCore::Page::runModal):
1635         * bridge/mac/WebCoreFrameBridge.h:
1636         * bridge/mac/WebCorePageBridge.h:
1637         * bridge/win/BrowserExtensionWin.h:
1638         * page/Frame.cpp:
1639         (WebCore::Frame::scheduleHistoryNavigation):
1640         (WebCore::Frame::redirectionTimerFired):
1641         * page/Frame.h:
1642         * page/Page.h:
1643
1644 2006-10-23  Justin Garcia  <justin.garcia@apple.com>
1645
1646         Reviewed by mjs
1647
1648         <http://bugs.webkit.org/show_bug.cgi?id=11334>
1649         Writely Editor: Placing caret in a list "highlights" both Numbered List and Bulleted List toolbar icons
1650
1651         * WebCore.xcodeproj/project.pbxproj:
1652         * editing/Editor.cpp:
1653         (WebCore::Editor::selectionUnorderedListState): Added.
1654         (WebCore::Editor::selectionOrderedListState): Added.
1655         * editing/Editor.h:
1656         * editing/JSEditor.cpp:
1657         * page/Frame.cpp:
1658         * page/Frame.h:
1659
1660 2006-10-23  John Sullivan  <sullivan@apple.com>
1661
1662         Reviewed by Tim H
1663
1664         * WebCore.xcodeproj/project.pbxproj:
1665         Include WebCorePrefix.h in Xcode project for convenience and for consistency with WebKit
1666
1667 2006-10-23  Sam Weinig  <sam.weinig@gmail.com>
1668
1669         Reviewed by Tim H.
1670
1671         Patch for http://bugs.webkit.org/show_bug.cgi?id=11291
1672         PNG as cursor image format instead of TIFF
1673
1674         Original patch by Lars Naesbye Christensen (larsnaesbye@stud.ku.dk)
1675
1676         - Convert cursor images from TIFF to PNG.
1677
1678         * Resources/eastResizeCursor.png: Added.
1679         * Resources/eastResizeCursor.tiff: Removed.
1680         * Resources/eastWestResizeCursor.png: Added.
1681         * Resources/eastWestResizeCursor.tiff: Removed.
1682         * Resources/helpCursor.png: Added.
1683         * Resources/helpCursor.tiff: Removed.
1684         * Resources/linkCursor.png: Added.
1685         * Resources/linkCursor.tiff: Removed.
1686         * Resources/moveCursor.png: Added.
1687         * Resources/moveCursor.tiff: Removed.
1688         * Resources/northEastResizeCursor.png: Added.
1689         * Resources/northEastResizeCursor.tiff: Removed.
1690         * Resources/northEastSouthWestResizeCursor.png: Added.
1691         * Resources/northEastSouthWestResizeCursor.tiff: Removed.
1692         * Resources/northResizeCursor.png: Added.
1693         * Resources/northResizeCursor.tiff: Removed.
1694         * Resources/northSouthResizeCursor.png: Added.
1695         * Resources/northSouthResizeCursor.tiff: Removed.
1696         * Resources/northWestResizeCursor.png: Added.
1697         * Resources/northWestResizeCursor.tiff: Removed.
1698         * Resources/northWestSouthEastResizeCursor.png: Added.
1699         * Resources/northWestSouthEastResizeCursor.tiff: Removed.
1700         * Resources/southEastResizeCursor.png: Added.
1701         * Resources/southEastResizeCursor.tiff: Removed.
1702         * Resources/southResizeCursor.png: Added.
1703         * Resources/southResizeCursor.tiff: Removed.
1704         * Resources/southWestResizeCursor.png: Added.
1705         * Resources/southWestResizeCursor.tiff: Removed.
1706         * Resources/waitCursor.png: Added.
1707         * Resources/waitCursor.tiff: Removed.
1708         * Resources/westResizeCursor.png: Added.
1709         * Resources/westResizeCursor.tiff: Removed.
1710         * WebCore.xcodeproj/project.pbxproj:
1711         * platform/mac/CursorMac.mm:
1712         (WebCore::leakNamedCursor):
1713
1714 2006-10-23  Maciej Stachowiak  <mjs@apple.com>
1715
1716         Not reviewed.
1717
1718         - fixed build from last change.
1719
1720         * bridge/mac/FrameMac.h:
1721         * bridge/mac/FrameMac.mm:
1722         (WebCore::FrameMac::loadRequest):
1723         (WebCore::FrameMac::openURL):
1724
1725 2006-10-23  Adam Roben  <aroben@apple.com>
1726
1727         Reviewed by Adele.
1728
1729         Move border-radius rule for <select>s into RenderThemeMac, as this is
1730         really a platform-specific look.
1731
1732         * css/html4.css:
1733         * rendering/RenderThemeMac.mm:
1734         (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
1735
1736 2006-10-23  Maciej Stachowiak  <mjs@apple.com>
1737
1738         Reviewed by Brady.
1739
1740         - moved things around so loadURL:... is only called from one place
1741
1742         * bridge/mac/FrameMac.h:
1743         * bridge/mac/FrameMac.mm:
1744         (WebCore::FrameMac::frameDetached):
1745         (WebCore::FrameMac::loadRequest):
1746         (WebCore::FrameMac::submitForm):
1747         (WebCore::FrameMac::openURL):
1748         (WebCore::FrameMac::openURLRequest):
1749         (WebCore::FrameMac::urlSelected):
1750
1751 2006-10-23  Justin Garcia  <justin.garcia@apple.com>
1752
1753         Reviewed by john
1754         
1755         <http://bugs.webkit.org/show_bug.cgi?id=11333>
1756         Writely Editor: After inserting a HR element, pressing return key creates a copy of this HR element in the document
1757         
1758         Added special cases in InsertLineBreakCommand for inserting before
1759         and after tables and horizontal rules.  Also, perform InsertLineBreak
1760         instead of InsertParagraphSeparator at these positions.
1761
1762         * editing/InsertLineBreakCommand.cpp:
1763         (WebCore::InsertLineBreakCommand::doApply):  Use the canonical form
1764         of the caret position when we check for the new special cases because 
1765         we know that we canonicalize VisiblePositions to those positions.
1766         Added code to handle inserting before/after tables and horizontal rules.  
1767         Fixed a bug when inserting at the end of a block (it checked for a collapse
1768         of the inserted br by looking for the absence of a br, but the line break 
1769         might have been a '\n' in white-space:pre text).  Removed unused LOGs.
1770         * editing/InsertParagraphSeparatorCommand.cpp:
1771         (WebCore::InsertParagraphSeparatorCommand::doApply): Perform an 
1772         InsertLineBreakCommand when before/after a table or a horizontal rule
1773         so that we don't have to maintain two pieces of special case code.
1774         Migrated to enclosingBlock.
1775         * editing/htmlediting.cpp: Added a FIXME.
1776         * editing/visible_units.cpp:
1777         (WebCore::startOfParagraph): Added a workaround for 8622.
1778         
1779 2006-10-23  Adam Roben  <aroben@apple.com>
1780
1781         Reviewed by Adele.
1782
1783         Make popups a little more flexible.
1784
1785         * platform/PopupMenu.h:
1786
1787 2006-10-23  Sam Weinig  <sam.weinig@gmail.com>
1788
1789         Reviewed by Tim H.
1790
1791         Cleanup CodeGeneratorJS.pm
1792
1793         * bindings/scripts/CodeGeneratorJS.pm:
1794
1795 2006-10-23  Adam Roben  <aroben@apple.com>
1796
1797         Rubberstamped by Brady.
1798
1799         * loader/icon/IconLoader.h: Changed angle-brackets to quotes for
1800         #include of ResourceLoader.h, since it's a WebCore header.
1801
1802 2006-10-23  Darin Adler  <darin@apple.com>
1803
1804         - fixed mistake that was preventing any loading from happening
1805
1806         * platform/network/ResourceLoaderClient.h: (WebCore::ResourceLoaderClient::didReceiveData):
1807         Changed parameter back to int. Perhaps we want to move to "long long" consistently, but
1808         I'll leave that up to Maciej.
1809
1810 2006-10-23  Maciej Stachowiak  <mjs@apple.com>
1811
1812         Reviewed by Anders.
1813
1814         - start converting ResourceLoaderClient to new API
1815
1816         Did the bits I could do without introducing new types:
1817         
1818         - renamed receivedData to didReceiveData
1819         - renamed version of receivedAllData that doesn't pass any data to didFinishLoading
1820
1821         * bridge/mac/WebCoreResourceLoaderImp.mm:
1822         (-[WebCoreResourceLoaderImp addData:]):
1823         (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
1824         * loader/icon/IconLoader.cpp:
1825         (IconLoader::didReceiveData):
1826         (IconLoader::didFinishLoading):
1827         * loader/icon/IconLoader.h:
1828         * loader/loader.cpp:
1829         (WebCore::Loader::didReceiveData):
1830         * loader/loader.h:
1831         * platform/gdk/FrameGdk.cpp:
1832         (WebCore::FrameGdkClientDefault::didReceiveData):
1833         * platform/gdk/FrameGdk.h:
1834         * platform/network/ResourceLoaderClient.h:
1835         (WebCore::ResourceLoaderClient::didReceiveData):
1836         (WebCore::ResourceLoaderClient::didFinishLoading):
1837         (WebCore::ResourceLoaderClient::receivedResponse):
1838         * platform/network/cf/ResourceLoaderCFNet.cpp:
1839         (WebCore::didReceiveData):
1840         (WebCore::didFinishLoading):
1841         (WebCore::didFail):
1842         (WebCore::ResourceLoader::cancel):
1843         * platform/network/gdk/ResourceLoaderManager.cpp:
1844         (WebCore::writeCallback):
1845         (WebCore::ResourceLoaderManager::downloadTimerCallback):
1846         (WebCore::ResourceLoaderManager::remove):
1847         * platform/network/qt/ResourceLoaderManager.cpp:
1848         (WebCore::ResourceLoaderManager::slotData):
1849         (WebCore::ResourceLoaderManager::remove):
1850         * platform/network/win/ResourceLoaderWin.cpp:
1851         (WebCore::ResourceLoader::onRequestComplete):
1852         (WebCore::ResourceLoader::fileLoadTimer):
1853         (WebCore::ResourceLoader::cancel):
1854         * platform/qt/FrameQtClient.cpp:
1855         (WebCore::FrameQtClientDefault::didReceiveData):
1856         * platform/qt/FrameQtClient.h:
1857         * xml/xmlhttprequest.cpp:
1858         (WebCore::XMLHttpRequest::processSyncLoadResults):
1859         (WebCore::XMLHttpRequest::didFinishLoading):
1860         (WebCore::XMLHttpRequest::didReceiveData):
1861         * xml/xmlhttprequest.h:
1862
1863 2006-10-23  Maciej Stachowiak  <mjs@apple.com>
1864
1865         Rubber stamped by Anders.
1866
1867         - marked files executable
1868         
1869         * ksvg2/scripts/csscssmakeprops:
1870         * ksvg2/scripts/csscssmakevalues:
1871
1872 2006-10-22  Maciej Stachowiak  <mjs@apple.com>
1873
1874         Reviewed by Anders.
1875
1876         - moved ResourceLoader and related files to platform/network
1877         in preparation for building out this API.
1878
1879         I tried to update all the build systems but I'm not sure they are
1880         all fixed properly
1881
1882         * page/ResourceRequest.h: Moved to platform/network.
1883         * platform/ResourceLoader.cpp: Moved to platform/network.
1884         * platform/ResourceLoader.h: Moved to platform/network.
1885         * platform/ResourceLoaderClient.h: Moved to platform/network.
1886         * platform/ResourceLoaderInternal.h: Moved to platform/network.
1887         * platform/cf/ResourceLoaderCFNet.cpp: Moved to platform/network/cf.
1888         * platform/gdk/ResourceLoaderCurl.cpp: Moved to platform/network/gdk.
1889         * platform/gdk/ResourceLoaderManager.cpp: Moved to platform/network/gdk.
1890         * platform/gdk/ResourceLoaderManager.h: Moved to platform/network/gdk.
1891         * platform/mac/ResourceLoaderMac.mm: Moved to platform/network/mac.
1892         * platform/qt/ResourceLoaderManager.cpp: Moved to platform/network/qt.
1893         * platform/qt/ResourceLoaderManager.h: Moved to platform/network/qt.
1894         * platform/qt/ResourceLoaderQt.cpp: Moved to platform/network/qt.
1895         * platform/win/ResourceLoaderWin.cpp: Moved to platform/network/win.
1896         * platform/win/ResourceLoaderWin.h: Moved to platform/network/win.
1897         * webcore-base.bkl: Updated for new paths.
1898         * CMakeLists.txt: ditto
1899         * Projects/gdk/webcore-gdk.bkl: ditto
1900         * WebCore.xcodeproj/project.pbxproj: ditto
1901         * WebCoreSources.bkl: ditto
1902
1903 2006-10-22  Sam Weinig  <sam.weinig@gmail.com>
1904
1905         Reviewed by Tim H.
1906
1907         - Add DOMHTMLFormElementPrivate.h to the project.
1908
1909         * WebCore.xcodeproj/project.pbxproj:
1910         * bindings/objc/DOMPrivate.h:
1911
1912 2006-10-22  Darin Adler  <darin@apple.com>
1913
1914         - another try at fixing Qt
1915
1916         * CMakeLists.txt: Added DeleteButton.cpp and DeleteButtonController.cpp.
1917
1918         - and fix a couple warnings while I'm at it
1919
1920         * platform/image-decoders/ImageDecoder.h: (WebCore::RGBA32Buffer::setRGBA):
1921         Don't do unsigned *= float.
1922
1923         * rendering/break_lines.cpp: (WebCore::nextBreakablePosition): Move unused variable
1924         inside #if so it's consistent.
1925
1926 2006-10-21  Darin Adler  <darin@apple.com>
1927
1928         - fix the Qt build
1929
1930         * platform/qt/EditorClientQt.cpp:
1931         (WebCore::EditorClientQt::shouldShowDeleteInterface):
1932         * platform/qt/EditorClientQt.h:
1933         * platform/qt/FrameQt.cpp:
1934
1935 2006-10-21  Darin Adler  <darin@apple.com>
1936
1937         Reviewed by Adele.
1938
1939         - convert WebLoader and its 3 subclasses to C++ (this time with a leak fixed)
1940
1941         Renamed WebLoader to WebCore::WebResourceLoader (should be ResourceLoader, but
1942         there's currently another class with that name).
1943         Renamed WebMainResourceLoader to WebCore::MainResourceLoader.
1944         Renamed WebSubresourceLoader to WebCore::SubresourceLoader.
1945         Renamed WebNetscapePlugInStreamLoader to WebCore::NetscapePlugInStreamLoader.
1946
1947         Converted the classes to C++ and added Objective-C delegates to forward from
1948         API that still requires Objective-C.
1949
1950         Did not yet rename the source files.
1951
1952         * WebCore.exp: Removed WebLoader, WebNetscapePlugInStreamLoader, and WebSubresourceLoader
1953         classes. Added 5 functions from the WebResourceLoader and NetscapePlugInStreamLoader
1954         classes.
1955
1956         * WebCore.xcodeproj/project.pbxproj: Made RetainPtr.h a private header instead of project.
1957
1958         * platform/cf/RetainPtr.h: Put into the WebCore namespace rather than the WTF namespace.
1959
1960         * loader/mac/WebLoader.h:
1961         * loader/mac/WebLoader.mm:
1962         * loader/mac/WebMainResourceLoader.h:
1963         * loader/mac/WebMainResourceLoader.mm:
1964         * loader/mac/WebNetscapePlugInStreamLoader.h:
1965         * loader/mac/WebNetscapePlugInStreamLoader.mm:
1966         * loader/mac/WebSubresourceLoader.h:
1967         * loader/mac/WebSubresourceLoader.mm:
1968         Translate to C++.
1969
1970         * bridge/mac/WebCoreFrameBridge.mm:
1971         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
1972         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
1973         * loader/mac/WebFrameLoader.h:
1974         * loader/mac/WebFrameLoader.mm:
1975         (isCaseInsensitiveEqual):
1976         (isBackForwardLoadType):
1977         (-[WebFrameLoader dealloc]):
1978         (-[WebFrameLoader addPlugInStreamLoader:]):
1979         (-[WebFrameLoader removePlugInStreamLoader:]):
1980         (-[WebFrameLoader setDefersCallbacks:]):
1981         (-[WebFrameLoader stopLoadingPlugIns]):
1982         (-[WebFrameLoader isLoadingMainResource]):
1983         (-[WebFrameLoader isLoadingSubresources]):
1984         (-[WebFrameLoader isLoadingPlugIns]):
1985         (-[WebFrameLoader stopLoadingSubresources]):
1986         (-[WebFrameLoader addSubresourceLoader:]):
1987         (-[WebFrameLoader removeSubresourceLoader:]):
1988         (-[WebFrameLoader mainResourceData]):
1989         (-[WebFrameLoader releaseMainResourceLoader]):
1990         (-[WebFrameLoader cancelMainResourceLoad]):
1991         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
1992         (-[WebFrameLoader stopLoadingWithError:]):
1993         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
1994         (-[WebFrameLoader archiveLoadPendingForLoader:]):
1995         (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
1996         * loader/mac/WebFrameLoaderClient.h:
1997         Call the new C++ API.
1998
1999 2006-10-21  Adam Roben  <aroben@apple.com>
2000
2001         Reviewed by Anders.
2002
2003         Popup tweaks.
2004
2005         * platform/PopupMenu.h:
2006
2007 2006-10-21  Darin Adler  <darin@apple.com>
2008
2009         * editing/DeleteButtonController.cpp: (WebCore::enclosingDeletableTable):
2010         Oops, edited this before landing it and introduced a null-deref! This fixes it.
2011
2012 2006-10-21  Darin Adler  <darin@apple.com>
2013
2014         Reviewed by Anders.
2015
2016         - fix http://bugs.webkit.org/show_bug.cgi?id=11379
2017           assertion failure seen in editing tests (in new DeleteButtonController)
2018
2019         I cleaned up the relationship between the Frame, Editor, EditorClient, and
2020         DeleteButtonController a bit while also making the simple change to fix the
2021         assertion failure.
2022
2023         * bridge/mac/FrameMac.h: Change EditorClient parameter to a PassRefPtr since we take ownership.
2024         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac):
2025
2026         * page/Frame.h: Change EditorClient parameter to a PassRefPtr since we take ownership.
2027         * page/Frame.cpp:
2028         (WebCore::Frame::Frame): Ditto.
2029         (WebCore::Frame::appliedEditing): Removed unneeded parameter to the respondToChangedContents
2030         function, and moved it to Editor rather than right on the DeleteButtonController.
2031         (WebCore::Frame::unappliedEditing): Ditto.
2032         (WebCore::Frame::reappliedEditing): Ditto.
2033         * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): More of the same.
2034
2035         * editing/DeleteButtonController.h:
2036         * editing/DeleteButtonController.cpp:
2037         (WebCore::DeleteButtonController::DeleteButtonController): Replaced Editor* with a Frame*.
2038         The general pattern is that we always use the Frame* as the frame identifier. See FrameTree,
2039         for example.
2040         (WebCore::enclosingDeletableTable): Added. Helper function used by the respondToChangedSelection
2041         function. Includes an additional check for whether the container is contentEditable, which
2042         was missing from the old version. This prevents the assertion failure. Also added a check that
2043         the table itself is editable.
2044         (WebCore::DeleteButtonController::respondToChangedSelection): Rewrote to use the helper.
2045         (WebCore::DeleteButtonController::respondToChangedContents): Removed the unnecessary
2046         selection parameter. No need to pass in the state of the frame since we can get it if we need it.
2047         (WebCore::DeleteButtonController::show): Updated to use frame pointer rather than editor pointer.
2048
2049         * editing/Editor.cpp: Fixed formatting. Even the temporary placeholder functions should be
2050         formatted on multiple lines as usual.
2051         (WebCore::Editor::respondToChangedSelection): Added. Forwards to the delete button controller.
2052         (WebCore::Editor::respondToChangedContents): Ditto.
2053         (WebCore::Editor::Editor): Changed EditorClient parameter to a PassRefPtr since we take ownership.
2054
2055         * editing/Editor.h: Changed the DeleteButtonController to use an OwnPtr instead of being
2056         defined inline to decouple so that we don't have to include DeleteButtonController.h. That way
2057         changes to DeleteButtonController.h cause very little to recompile.
2058
2059         * editing/SelectionController.cpp: (WebCore::SelectionController::setSelection):
2060         Updated to call the editor instead of the delete button controller for the selection change.
2061
2062 2006-10-21  Anders Carlsson  <acarlsson@apple.com>
2063
2064         Reviewed by Darin.
2065
2066         * loader/mac/LoaderFunctionsMac.mm:
2067         (WebCore::ServeSynchronousRequest):
2068         * platform/mac/ResourceLoaderMac.mm:
2069         (WebCore::ResourceLoader::start):
2070         Don't leak the header dictionary.
2071
2072 2006-10-21  Darin Adler  <darin@apple.com>
2073
2074         Reviewed by Adam.
2075
2076         - http://bugs.webkit.org/show_bug.cgi?id=11376
2077           build scripts should invoke make with "-j" option for multiple processors
2078
2079         * WebCore.xcodeproj/project.pbxproj: Pass -j `sysctl -n hw.ncpu` to make.
2080
2081 2006-10-21  Timothy Hatcher  <timothy@apple.com>
2082
2083         Reviewed by Geoff.
2084
2085         <rdar://problem/4478625> HTML Editing: Basic table editing and culling
2086
2087         Initial implementaltion of table deletion user interface:
2088         * Interface shows up on the nearest table containing the entire selection.
2089         * Shows a Dashboard style close button in the top left corner.
2090         * Shows a 60% opaque black outline around the table.
2091         * Adds a new EditorClient function shouldShowDeleteInterface.
2092
2093         Also adds a new constructor CachedImage and setter functions on
2094         HTMLImageElement and HTMLImageLoader allowing an Image object to be set
2095         and image element in the page. This change also paves the way to allow an
2096         NSImage setter on DOMHTMLImageElement. 
2097
2098         * Resources/deleteButton.tiff: Added.
2099         * Resources/deleteButtonPressed.tiff: Added.
2100         * WebCore.xcodeproj/project.pbxproj:
2101         * bridge/EditorClient.h:
2102         * editing/DeleteButton.cpp: Added.
2103         (WebCore::DeleteButton::DeleteButton):
2104         (WebCore::DeleteButton::defaultEventHandler): notify the controller to delete on click
2105         * editing/DeleteButton.h: Added.
2106         * editing/DeleteButtonController.cpp: Added.
2107         (WebCore::DeleteButtonController::DeleteButtonController):
2108         (WebCore::DeleteButtonController::respondToChangedSelection): move the interface to the new element, or hide
2109         (WebCore::DeleteButtonController::respondToChangedContents): call updateOutlineStyle
2110         (WebCore::DeleteButtonController::updateOutlineStyle): resize the outline if the table changed size
2111         (WebCore::DeleteButtonController::show): shows the interface on a new element
2112         (WebCore::DeleteButtonController::hide): hides the existing interface
2113         (WebCore::DeleteButtonController::deleteTarget): deletes the targeted element
2114         * editing/DeleteButtonController.h: Added.
2115         (WebCore::DeleteButtonController::target): getter for the current target
2116         * editing/Editor.cpp:
2117         (WebCore::Editor::shouldShowDeleteInterface): call the new shouldShowDeleteInterface client function
2118         (WebCore::Editor::Editor): remove the manual ref now that we use RefPtr for m_client
2119         (WebCore::Editor::~Editor): remove the manual deref now that we use RefPtr for m_client
2120         * editing/Editor.h:
2121         (WebCore::Editor::frame): new getter
2122         (WebCore::Editor::deleteButtonController): ditto
2123         * editing/SelectionController.cpp:
2124         (WebCore::SelectionController::setSelection): notify the DeleteButtonController about the new selection
2125         * html/HTMLImageElement.h:
2126         (WebCore::HTMLImageElement::setCachedImage): new setter that replaces the CachedImage
2127         * html/HTMLImageLoader.cpp:
2128         (WebCore::HTMLImageLoader::setImage): ditto
2129         * html/HTMLImageLoader.h:
2130         * loader/CachedImage.cpp:
2131         (WebCore::CachedImage::CachedImage): new constructor that takes an Image
2132         * loader/CachedImage.h: ditto
2133         * page/Frame.cpp:
2134         (WebCore::Frame::selectionController): cleanup coding style
2135         (WebCore::Frame::editor): ditto
2136         (WebCore::Frame::command): ditto
2137         (WebCore::Frame::appliedEditing): tell the delete button outline to update
2138         (WebCore::Frame::unappliedEditing): ditto
2139         (WebCore::Frame::reappliedEditing): ditto
2140         * rendering/RenderTable.cpp:
2141         (WebCore::RenderTable::addChild): workaround until bug 11363 is fixed
2142
2143 2006-10-21  Sam Weinig  <sam.weinig@gmail.com>
2144
2145         Reviewed by Tim H.
2146
2147         Cleanup bindings generation a little through re-factoring 
2148         and general style cleanup.
2149
2150         * bindings/scripts/CodeGenerator.pm:
2151         * bindings/scripts/CodeGeneratorJS.pm:
2152         * bindings/scripts/CodeGeneratorObjC.pm:
2153
2154 2006-10-21  Nikolas Zimmermann  <zimmermann@kde.org>
2155
2156         Reviewed by Mitz.
2157
2158         Fix crashes on Qt/Linux. Offer a default EditorClient and pass it down to Frame ctor.
2159
2160         * CMakeLists.txt:
2161         * platform/qt/EditorClientQt.cpp: Added.
2162         (WebCore::EditorClientQt::shouldDeleteRange):
2163         * platform/qt/EditorClientQt.h: Added.
2164         (WebCore::EditorClientQt::~EditorClientQt):
2165         * platform/qt/FrameQt.cpp:
2166         (WebCore::FrameQt::FrameQt):
2167         * platform/qt/FrameQt.h:
2168
2169 2006-10-21  Sam Weinig  <sam.weinig@gmail.com>
2170
2171         Reviewed by Tim H.
2172
2173         Fix for http://bugs.webkit.org/show_bug.cgi?id=11372
2174         Auto-generate a few more Objective-C DOM methods.
2175
2176         - Auto-generate getMatchedCSSRules and getComputedStyle methods.
2177
2178         * bindings/objc/DOMCSS.h:
2179         * bindings/objc/DOMCSS.mm:
2180         * bindings/objc/DOMExtensions.h:
2181         * bindings/objc/PublicDOMInterfaces.h:
2182         * bindings/scripts/CodeGeneratorObjC.pm:
2183         * dom/Document.idl:
2184         * page/DOMWindow.idl:
2185
2186 2006-10-21  Nikolas Zimmermann  <zimmermann@kde.org>
2187
2188         Reviewed by aliu, landed by aliu.
2189
2190         Fix Qt/Linux build.
2191
2192         * CMakeLists.txt:
2193         * platform/qt/FrameQt.cpp:
2194         (WebCore::FrameQt::FrameQt):
2195         * platform/qt/SoundQt.cpp: Added.
2196         (WebCore::systemBeep):
2197
2198 2006-10-21  Nikolas Zimmermann  <zimmermann@kde.org>
2199
2200         Reviewed by Mitz, landed by ap.
2201
2202         Fix obscure crashes in RenderTableSection on Rob's musicdb file.
2203         The problem was a missing layout() call on the frame view.
2204         Thanks go to Mitz Pettel for the initial hint!
2205
2206         * platform/qt/ScrollViewCanvasQt.cpp:
2207         (WebCore::ScrollViewCanvasQt::paintEvent):
2208
2209 2006-10-20  Steve Falkenburg  <sfalken@apple.com>
2210
2211         Reviewed by Anders.
2212
2213         Send User-Agent on requests.
2214         Send custom request headers properly.
2215
2216         * platform/cf/ResourceLoaderCFNet.cpp:
2217         (WebCore::addHeadersFromHashMap): Switch over to HashMap iteration from string parsing
2218         (WebCore::ResourceLoader::start): Send proper User-Agent, change call to add headers
2219
2220 2006-10-20  Timothy Hatcher  <timothy@apple.com>
2221
2222         Reviewed by Hyatt.
2223
2224         Fix some bad formatting.
2225
2226         * css/cssstyleselector.cpp:
2227         (WebCore::CSSStyleSelector::checkOneSelector):
2228
2229 2006-10-20  Darin Adler  <darin@apple.com>
2230
2231         Reviewed by John.
2232
2233         - fixed <rdar://problem/4795716> REGRESSION: User names and passwords aren't being saved (.Mac, etc.) -- WebKit formState passing empty strings
2234
2235         * loader/mac/WebFormState.mm: (WebCore::FormState::FormState): Fix typo -- need to pass "key"
2236         as the key, not the dictionary itself.
2237
2238 2006-10-20  Alice Liu  <alice.liu@apple.com>
2239
2240         Reviewed by Maciej.
2241
2242         This is the initial foundation for the EditingController class and
2243         everything else it needs to work.  The idea is that the Frame has an
2244         EditingController object that it calls to handle editing commands, the
2245         most simple examples being copy/paste.  This controller will handle
2246         these editing commands in WebCore, and only hand off to WebKit to call
2247         editing delegates (to the let the app intercept editing actions if it
2248         wants to).  Thus we need a platform-specific client to which the
2249         EditingController hands off the delegate calls, 
2250         WebCoreEditingControllerClient.  On the WebCore side this is an 
2251         abstract base class, and on the WebKit(Mac) side this is an ObjC++
2252         subclass, WebEditingControllerClient.  How does the EditingController
2253         get a handle to its platform-specific client?  In WebKit, the creator
2254         of a platform-specific Frame creates the client (which is ref-counted)
2255         and passes it down the chain of constructors until it gets back to the
2256         EditingController, which then refs it in its constructor and derefs in
2257         its destructor.
2258         
2259         No Layout tests needed.
2260         
2261         * WebCore.xcodeproj/project.pbxproj:
2262         Added files and made DomRangeInternal.h and EditingClient.h private headers, necessary for WebKit to compile
2263
2264         * bridge/EditorClient.h: Added.
2265         (WebCore::EditorClient::~EditorClient):
2266
2267         * bridge/mac/FrameMac.h:
2268         Added an EditingClient to the constructor, to pass down to Frame constructor
2269
2270         * bridge/mac/FrameMac.mm:
2271         (WebCore::FrameMac::FrameMac):
2272         Passed client down to Frame constructor
2273         
2274         * bridge/mac/WebCoreFrameBridge.h:
2275         Added an EditingClient to the constructor, to pass down to FrameMac constructor
2276         
2277         * bridge/mac/WebCoreFrameBridge.mm:
2278         (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
2279         (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
2280         Passed client down to FrameMac constructor
2281         
2282         * editing/Editor.cpp: Added.
2283         Mostly stuf implementations of the following functions, except for a couple.  These are all needed by cut, copy, paste, delete.
2284         (WebCore::generalPasteboard):
2285         (WebCore::Editor::canCopy):
2286         (WebCore::Editor::canCut):
2287         (WebCore::Editor::canDelete):
2288         (WebCore::Editor::canDeleteRange):
2289         (WebCore::Editor::canPaste):
2290         (WebCore::Editor::canSmartCopyOrDelete):
2291         (WebCore::Editor::deleteSelection):
2292         (WebCore::Editor::deleteSelectionWithSmartDelete):
2293         (WebCore::Editor::isSelectionRichlyEditable):
2294         (WebCore::Editor::pasteAsPlainTextWithPasteboard):
2295         (WebCore::Editor::pasteWithPasteboard):
2296         (WebCore::Editor::selectedRange):
2297         (WebCore::Editor::shouldDeleteRange):
2298         (WebCore::Editor::tryDHTMLCopy):
2299         (WebCore::Editor::tryDHTMLCut):
2300         (WebCore::Editor::tryDHTMLPaste):
2301         (WebCore::Editor::writeSelectionToPasteboard):
2302         (WebCore::Editor::Editor):
2303         (WebCore::Editor::~Editor):
2304         (WebCore::Editor::cut):
2305         (WebCore::Editor::copy):
2306         (WebCore::Editor::paste):
2307         (WebCore::Editor::performDelete):
2308         
2309         * editing/Editor.h: Added.
2310         
2311         * page/Frame.h:
2312         Added an EditingClient to the constructor, to pass down to Editor constructor
2313
2314         * page/Frame.cpp:
2315         (WebCore::Frame::Frame):
2316         Passed down to Editor constructor
2317         (WebCore::Frame::editor):
2318         Accessor for Editor stored in FramePrivate
2319         
2320         * page/FramePrivate.h:
2321         (WebCore::FramePrivate::FramePrivate):
2322         Added an Editor object to the FramePrivate data
2323         
2324         * platform/Sound.h: Added.
2325         Made a platform-independent accessor to a beep function
2326         
2327         * platform/mac/SoundMac.mm: Added.
2328         (WebCore::systemBeep):
2329         calls mac system beep
2330         
2331 2006-10-20  David Hyatt  <hyatt@apple.com>
2332
2333         Make sure to support the "encoding" property on form elements for
2334         legacy compatibility.
2335
2336         Reviewed by darin/john
2337
2338         No test cases added.  Not sure how to do a form submission of
2339         various encodings as a layout test.
2340
2341         * html/HTMLFormElement.h:
2342         (WebCore::HTMLFormElement::encoding):
2343         (WebCore::HTMLFormElement::setEncoding):
2344         * html/HTMLFormElement.idl:
2345
2346 2006-10-20  Nikolas Zimmermann  <zimmermann@kde.org>
2347
2348         Reviewed and by Anders.
2349
2350         Fix warnings in JS generation by killing the whole isRefPtr logic,
2351         and just using WTF::getPtr as Sam Weinig suggested. Also kill some
2352         places using get() where getPtr() is cleaner - not for m_impl.get().
2353
2354         * CMakeLists.txt: Tiny cleanup + add deps for CodeGenerator(JS).pm on all IDLs.
2355         * bindings/scripts/CodeGeneratorJS.pm:
2356
2357 2006-10-20  Darin Adler  <darin@apple.com>
2358
2359         - rolled out my loader change; caused world leak and possibly a plug-in crash
2360
2361 2006-10-20  Anders Carlsson  <acarlsson@apple.com>
2362
2363         Reviewed by Tim H
2364
2365         * loader/mac/LoaderFunctionsMac.mm:
2366         Autorelease the header NSDictionary.
2367         
2368 2006-10-20  Anders Carlsson  <acarlsson@apple.com>
2369
2370         Reviewed by Geoff.
2371
2372         * bindings/js/kjs_window.cpp:
2373         (KJS::Window::timerFired):
2374         Check if the timeout id is still in the table before trying to access it. If it isn't in the table
2375         it has been deleted inside of the execute method.
2376
2377 2006-10-20  Anders Carlsson  <acarlsson@apple.com>
2378
2379         Reviewed by Darin and Geoff.
2380
2381         Remove debugging output.
2382         * xml/xmlhttprequest.cpp:
2383         (WebCore::XMLHttpRequest::send):
2384
2385 2006-10-20  David Harrison  <harrison@apple.com>
2386
2387         Reviewed by John.
2388
2389         <rdar://problem/4792755> REGRESSON: Drag selecting is erratic
2390
2391         No test because it would require autoscrolling, which is not available to layout tests.
2392
2393         * rendering/RenderLayer.cpp:
2394         (WebCore::RenderLayer::autoscroll):
2395         Use hitTest() to find the correct node.
2396         
2397         (WebCore::RenderLayer::hitTest):
2398         Trivial source formatting.
2399
2400 2006-10-20  Nikolas Zimmermann  <zimmermann@kde.org>
2401
2402         Reviewed and landed by Anders.
2403
2404         Fix regression introduced during the ResourceLoader transition (Maciej's rewrite).
2405
2406         * platform/qt/ResourceLoaderManager.cpp:
2407         (WebCore::ResourceLoaderManager::add):
2408
2409 2006-10-20  Darin Adler  <darin@apple.com>
2410
2411         Reviewed by Adele.
2412
2413         - convert WebLoader and its 3 subclasses to C++
2414
2415         Renamed WebLoader to WebCore::WebResourceLoader (should be ResourceLoader, but
2416         there's currently another class with that name).
2417         Renamed WebMainResourceLoader to WebCore::MainResourceLoader.
2418         Renamed WebSubresourceLoader to WebCore::SubresourceLoader.
2419         Renamed WebNetscapePlugInStreamLoader to WebCore::NetscapePlugInStreamLoader.
2420
2421         Converted the classes to C++ and added Objective-C delegates to forward from
2422         API that still requires Objective-C.
2423
2424         Did not yet rename the source files.
2425
2426         * WebCore.exp: Removed WebLoader, WebNetscapePlugInStreamLoader, and WebSubresourceLoader
2427         classes. Added 5 functions from the WebResourceLoader and NetscapePlugInStreamLoader
2428         classes.
2429
2430         * WebCore.xcodeproj/project.pbxproj: Made RetainPtr.h a private header instead of project.
2431
2432         * platform/cf/RetainPtr.h: Put into the WebCore namespace rather than the WTF namespace.
2433
2434         * loader/mac/WebLoader.h:
2435         * loader/mac/WebLoader.mm:
2436         * loader/mac/WebMainResourceLoader.h:
2437         * loader/mac/WebMainResourceLoader.mm:
2438         * loader/mac/WebNetscapePlugInStreamLoader.h:
2439         * loader/mac/WebNetscapePlugInStreamLoader.mm:
2440         * loader/mac/WebSubresourceLoader.h:
2441         * loader/mac/WebSubresourceLoader.mm:
2442         Translate to C++.
2443
2444         * bridge/mac/WebCoreFrameBridge.mm:
2445         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
2446         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
2447         * loader/mac/WebFrameLoader.h:
2448         * loader/mac/WebFrameLoader.mm:
2449         (isCaseInsensitiveEqual):
2450         (isBackForwardLoadType):
2451         (-[WebFrameLoader dealloc]):
2452         (-[WebFrameLoader addPlugInStreamLoader:]):
2453         (-[WebFrameLoader removePlugInStreamLoader:]):
2454         (-[WebFrameLoader setDefersCallbacks:]):
2455         (-[WebFrameLoader stopLoadingPlugIns]):
2456         (-[WebFrameLoader isLoadingMainResource]):
2457         (-[WebFrameLoader isLoadingSubresources]):
2458         (-[WebFrameLoader isLoadingPlugIns]):
2459         (-[WebFrameLoader stopLoadingSubresources]):
2460         (-[WebFrameLoader addSubresourceLoader:]):
2461         (-[WebFrameLoader removeSubresourceLoader:]):
2462         (-[WebFrameLoader mainResourceData]):
2463         (-[WebFrameLoader releaseMainResourceLoader]):
2464         (-[WebFrameLoader cancelMainResourceLoad]):
2465         (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
2466         (-[WebFrameLoader stopLoadingWithError:]):
2467         (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
2468         (-[WebFrameLoader archiveLoadPendingForLoader:]):
2469         (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
2470         * loader/mac/WebFrameLoaderClient.h:
2471         Call the new C++ API.
2472
2473 2006-10-20  Nikolas Zimmermann  <zimmermann@kde.org>
2474
2475         Reviewed and landed by Anders.
2476
2477         Offer a way for WebKitPart to be able to detect when
2478         the webpage has been completly loaded (including subresources).
2479
2480         Also fix Qt/Linux build by removing PopupMenu.cpp from CMakeLists.txt
2481         and removing some functions from PopupMenuQt.cpp, and alter FrameQt.cpp.
2482
2483         * CMakeLists.txt:
2484         * platform/qt/FrameQt.cpp:
2485         (WebCore::FrameQt::submitForm):
2486         (WebCore::FrameQt::client):
2487         * platform/qt/FrameQt.h:
2488         * platform/qt/FrameQtClient.cpp:
2489         (WebCore::FrameQtClientDefault::setFrame):
2490         (WebCore::FrameQtClientDefault::openURL):
2491         (WebCore::FrameQtClientDefault::submitForm):
2492         (WebCore::FrameQtClientDefault::checkLoaded):
2493         (WebCore::FrameQtClientDefault::traverseNextFrameStayWithin):
2494         (WebCore::FrameQtClientDefault::numPendingOrLoadingRequests):
2495         (WebCore::FrameQtClientDefault::receivedAllData):
2496         * platform/qt/FrameQtClient.h:
2497         * platform/qt/LoaderFunctionsQt.cpp:
2498         (WebCore::CheckCacheObjectStatus):
2499         * platform/qt/PopupMenuQt.cpp:
2500         * platform/qt/ResourceLoaderManager.cpp:
2501         (WebCore::ResourceLoaderManager::ResourceLoaderManager):
2502         (WebCore::ResourceLoaderManager::slotResult):
2503         (WebCore::ResourceLoaderManager::add):
2504         * platform/qt/ResourceLoaderManager.h:
2505         * platform/qt/ResourceLoaderQt.cpp:
2506         (WebCore::ResourceLoader::start):
2507
2508 2006-10-20  Steve Falkenburg  <sfalken@apple.com>
2509
2510         Reviewed by Geoff.
2511
2512         Fix compiler warnings
2513
2514         * platform/ResourceLoaderClient.h:
2515
2516 2006-10-20  Sam Weinig  <sam.weinig@gmail.com>
2517
2518         Reviewed by Mitz.
2519
2520         Win32 build fix and cleanup.
2521
2522         * WebCore.vcproj/WebCore/WebCore.vcproj:
2523         * bridge/win/FrameWin.cpp:
2524         (WebCore::FrameWin::FrameWin):
2525         (WebCore::FrameWin::submitForm):
2526         * page/ResourceRequest.h:
2527         (WebCore::ResourceRequest::addHTTPHeaderField):
2528         * platform/win/TemporaryLinkStubs.cpp:
2529         (WebCore::Slider::~Slider):
2530         (WebCore::Slider::setMinValue):
2531         (WebCore::searchableIndexIntroduction):
2532         (WebCore::findNextSentenceFromIndex):
2533         (WebCore::findSentenceBoundary):
2534         (WebCore::findNextWordFromIndex):
2535         (WebCore::FrameWin::getObjectInstanceForWidget):
2536         (WebCore::FrameWin::getEmbedInstanceForWidget):
2537         (WebCore::FrameWin::runJavaScriptPrompt):
2538         (WebCore::FrameWin::restoreDocumentState):
2539         (WebCore::FrameWin::partClearedInBegin):
2540         (WebCore::FrameWin::createEmptyDocument):
2541         (WebCore::FrameWin::overrideMediaType):
2542         (WebCore::FrameWin::markedTextRange):
2543         (WebCore::FrameWin::passSubframeEventToSubframe):
2544         (WebCore::FrameWin::lastEventIsMouseUp):
2545         (WebCore::FrameWin::addMessageToConsole):
2546         (WebCore::FrameWin::shouldChangeSelection):
2547         (WebCore::FrameWin::respondToChangedSelection):
2548         (WebCore::FrameWin::createFrame):
2549         (WebCore::FrameWin::saveDocumentState):
2550         (WebCore::FrameWin::clearUndoRedoOperations):
2551         (WebCore::FrameWin::incomingReferrer):
2552         (WebCore::FrameWin::markMisspellingsInAdjacentWords):
2553         (WebCore::FrameWin::respondToChangedContents):
2554         (WebCore::FrameWin::handledOnloadEvents):
2555         (WebCore::FrameWin::createPlugin):
2556         (WebCore::FrameWin::objectContentType):
2557         (WebCore::screenDepthPerComponent):
2558         (WebCore::screenIsMonochrome):
2559         (WebCore::historyContains):
2560         (WebCore::submitButtonDefaultLabel):
2561         (WebCore::inputElementAltText):
2562         (WebCore::resetButtonDefaultLabel):
2563         (WebCore::fileButtonChooseFileLabel):
2564         (WebCore::fileButtonNoFileSelectedLabel):
2565         (WebCore::defaultLanguage):
2566         (WebCore::findWordBoundary):
2567         (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
2568         (WebCore::PlugInInfoStore::supportsMIMEType):
2569         (WebCore::refreshPlugins):
2570         (WebCore::ResourceLoader::assembleResponseHeaders):
2571         (WebCore::ResourceLoader::retrieveResponseEncoding):
2572         (WebCore::ResourceLoader::startHTTPRequest):
2573         (WebCore::TextField::TextField):
2574         (WebCore::focusRingColor):
2575         (WebCore::setFocusRingColorChangeFunction):
2576         (WebCore::PopupMenu::~PopupMenu):
2577         (WebCore::PopupMenu::hide):
2578
2579 2006-10-20  Rob Buis  <buis@kde.org>
2580
2581         Reviewed by Darin.
2582
2583         http://bugs.webkit.org/show_bug.cgi?id=11303
2584         Path::transform() should be implemented on Qt build
2585
2586         Use QPainterPath API to implement Path::transform.
2587         This fixes svg/custom/clip-path-with-transform.svg on
2588         the qt build.
2589
2590         * platform/qt/PathQt.cpp:
2591         (WebCore::Path::transform):
2592
2593 2006-10-20  Rob Buis  <buis@kde.org>
2594
2595         Reviewed by Mitz.
2596
2597         http://bugs.webkit.org/show_bug.cgi?id=11217
2598         Cleanup svg coding style
2599
2600         Cleanup coding style in svg clipping and painting classes.
2601
2602         * ksvg2/svg/SVGClipPathElement.cpp:
2603         (WebCore::SVGClipPathElement::parseMappedAttribute):
2604         (WebCore::SVGClipPathElement::canvasResource):
2605         * ksvg2/svg/SVGClipPathElement.h:
2606         * ksvg2/svg/SVGMarkerElement.cpp:
2607         (WebCore::SVGMarkerElement::SVGMarkerElement):
2608         (WebCore::SVGMarkerElement::parseMappedAttribute):
2609         (WebCore::SVGMarkerElement::setOrientToAngle):
2610         (WebCore::SVGMarkerElement::canvasResource):
2611         * ksvg2/svg/SVGMarkerElement.h:
2612         (WebCore::SVGMarkerElement::rendererIsNeeded):
2613         * ksvg2/svg/SVGMaskElement.cpp:
2614         (WebCore::SVGMaskElement::SVGMaskElement):
2615         (WebCore::SVGMaskElement::parseMappedAttribute):
2616         (WebCore::SVGMaskElement::drawMaskerContent):
2617         (WebCore::SVGMaskElement::canvasResource):
2618         * ksvg2/svg/SVGMaskElement.h:
2619         (WebCore::SVGMaskElement::rendererIsNeeded):
2620         * ksvg2/svg/SVGPaint.cpp:
2621         (WebCore::SVGPaint::setPaint):
2622         (WebCore::SVGPaint::cssText):
2623         * ksvg2/svg/SVGPaint.h:
2624
2625 2006-10-20  David Hyatt  <hyatt@apple.com>
2626
2627         Make sure to do the code that checks the repeatInterval before the timer has been
2628         deleted. (Duh.)
2629
2630         Reviewed by andersca
2631
2632         * bindings/js/kjs_window.cpp:
2633         (KJS::DOMWindowTimer::setNestingLevel):
2634         (KJS::Window::timerFired):
2635         (KJS::DOMWindowTimer::fired):
2636         * platform/Timer.h:
2637
2638 2006-10-20  David Hyatt  <hyatt@apple.com>
2639
2640         Honor tiny timer intervals for JS timeouts as they are nested until a cutoff point is reached.
2641         At that point clamp to 10ms to prevent excessive CPU usage.
2642
2643         Reviewed by anders
2644
2645         * bindings/js/kjs_window.cpp:
2646         (KJS::DOMWindowTimer::DOMWindowTimer):
2647         (KJS::DOMWindowTimer::nestingLevel):
2648         (KJS::Window::installTimeout):
2649         (KJS::Window::pauseTimeouts):
2650         (KJS::Window::resumeTimeouts):
2651         (KJS::DOMWindowTimer::fired):
2652         * platform/Timer.h:
2653         (WebCore::TimerBase::startRepeating):
2654         (WebCore::TimerBase::startOneShot):
2655         (WebCore::TimerBase::repeatInterval):
2656         (WebCore::TimerBase::augmentRepeatInterval):
2657         (WebCore::TimerBase::inHeap):
2658         (WebCore::Timer::Timer):
2659         (WebCore::Timer::fired):
2660
2661 2006-10-20  Steve Falkenburg  <sfalken@apple.com>
2662
2663         Build fix
2664
2665         * ksvg2/svg/SVGAElement.cpp:
2666         (WebCore::SVGAElement::defaultEventHandler):
2667
2668 2006-10-19  Steve Falkenburg  <sfalken@apple.com>
2669
2670         Reviewed by Adam.
2671
2672         Use GetKeyState rather than GetAsyncKeyState since we're
2673         calling in these cases in direct response to an event, and want the
2674         key state associated with that event.
2675         
2676         Pass triggering event to url selection method.
2677         
2678         * bridge/mac/FrameMac.h: Add triggeringEvent parameter
2679         * bridge/mac/FrameMac.mm:
2680         (WebCore::FrameMac::urlSelected): Add triggeringEvent parameter
2681         * bridge/win/FrameWin.cpp:
2682         (WebCore::FrameWin::urlSelected): Add triggeringEvent parameter
2683         * bridge/win/FrameWin.h: Add triggeringEvent parameter
2684         * html/HTMLAnchorElement.cpp:
2685         (WebCore::HTMLAnchorElement::defaultEventHandler): Pass triggering event to URL selection method
2686         * page/Frame.cpp:
2687         (WebCore::Frame::changeLocation): Add 0 as triggeringEvent
2688         (WebCore::Frame::urlSelected): Pass through triggeringEvent
2689         * page/Frame.h: Add triggeringEvent parameter to urlSelected methods
2690         * platform/win/KeyEventWin.cpp:
2691         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Use GetKeyState instead of GetAsyncKeyState
2692         * platform/win/MouseEventWin.cpp: Use GetKeyState instead of GetAsyncKeyState
2693         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2694
2695 2006-10-19  David Hyatt  <hyatt@apple.com>
2696
2697         Correct typos from changing "flush" to "prune" using automated search/replace.
2698
2699         Change the cache heuristic for flushing to allow a higher watermark before initiating an
2700         aggressive prune.  This ensures that small cache sizes are no worse in terms of performance
2701         than the old buggy cache.
2702
2703         Make sizes unsigned instead of ints in the cache's APIs and member variables.
2704
2705         * loader/Cache.cpp:
2706         (WebCore::Cache::prune):
2707         (WebCore::Cache::setMaximumSize):
2708         * loader/Cache.h:
2709         (WebCore::Cache::maximumSize):
2710
2711 2006-10-19  Anders Carlsson  <acarlsson@apple.com>
2712
2713         Reviewed by Daddy Hyatt.
2714
2715         Use a real hash map for the headers.
2716
2717         * loader/LoaderFunctions.h:
2718         * loader/mac/LoaderFunctionsMac.mm:
2719         (WebCore::ServeSynchronousRequest):
2720         * platform/ResourceLoader.cpp:
2721         (WebCore::ResourceLoader::setRequestHeaders):
2722         (WebCore::ResourceLoader::requestHeaders):
2723         * platform/ResourceLoader.h:
2724         * platform/ResourceLoaderInternal.h:
2725         * platform/mac/ResourceLoaderMac.mm:
2726         (WebCore::ResourceLoader::start):
2727         * xml/xmlhttprequest.cpp:
2728         (WebCore::XMLHttpRequest::open):
2729         (WebCore::XMLHttpRequest::send):
2730         (WebCore::XMLHttpRequest::setRequestHeader):
2731         (WebCore::XMLHttpRequest::getRequestHeader):
2732         * xml/xmlhttprequest.h:
2733
2734 2006-10-19  Adam Roben  <aroben@apple.com>
2735
2736         Reviewed by Ada.
2737
2738         Pippity-poppity popup tweaks.
2739
2740         * WebCore.xcodeproj/project.pbxproj: Removed PopupMenu.cpp from project.
2741         * html/HTMLSelectElement.cpp:
2742         (WebCore::HTMLSelectElement::setSelectedIndex): Only fire onChange if
2743         requested and the new index is actually different than the old one.
2744         * platform/IntPoint.h: Added another casting operator.
2745         * platform/PopupMenu.cpp: Removed. The code in here, while
2746         platform-independent, was only useful for the NSPopUpButtonCell
2747         implementation of popup menus, so I've moved it to PopupMenuMac.mm.
2748         * platform/PopupMenu.h: Moved the definition of PopupMenu::create into
2749         the header since it's fairly simple. Made some more methods private now
2750         that we don't have subclasses and virtual methods anymore.
2751         (WebCore::PopupMenu::create):
2752         (WebCore::PopupMenu::menuList):
2753         (WebCore::PopupMenu::itemHeight):
2754         (WebCore::PopupMenu::windowRect):
2755         (WebCore::PopupMenu::listIndexAtPoint):
2756         (WebCore::PopupMenu::focusedIndex):
2757         (WebCore::PopupMenu::setWasClicked):
2758         (WebCore::PopupMenu::wasClicked):
2759         (WebCore::PopupMenu::setScrollOffset):
2760         (WebCore::PopupMenu::scrollOffset):
2761         (WebCore::PopupMenu::wheelDelta):
2762         * platform/mac/PopupMenuMac.mm: Added the code from PopupMenu.cpp.
2763         (WebCore::PopupMenu::populate): Call our own clear() method to clear
2764         the menu.
2765         * platform/win/IntPointWin.cpp: New casting operator.
2766         (WebCore::IntPoint::IntPoint):
2767         (WebCore::IntPoint::operator POINTS):
2768
2769 2006-10-19  Adam Roben  <aroben@apple.com>
2770
2771         Reviewed by Darin.
2772
2773         Cleaning up Document::nextFocusNode and Document::previousFocusNode.
2774
2775         * dom/Document.cpp:
2776         (WebCore::Document::nextFocusNode):
2777         (WebCore::Document::previousFocusNode):
2778
2779 2006-10-19  Maciej Stachowiak  <mjs@apple.com>
2780
2781         Reviewed by Geoff.
2782
2783         - implement new ResourceRequest API and fix up code as appropriate
2784         
2785         * bindings/js/kjs_window.cpp:
2786         (KJS::createNewWindow):
2787         (KJS::WindowFunc::callAsFunction):
2788         * bridge/mac/BrowserExtensionMac.mm:
2789         (WebCore::BrowserExtensionMac::createNewWindow):
2790         * bridge/mac/FrameMac.mm:
2791         (WebCore::FrameMac::submitForm):
2792         (WebCore::FrameMac::openURLRequest):
2793         (WebCore::FrameMac::urlSelected):
2794         * bridge/mac/WebCoreFrameBridge.mm:
2795         (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
2796         * dom/DOMImplementation.cpp:
2797         (WebCore::addString):
2798         (WebCore::isSVG10Feature):
2799         (WebCore::isSVG11Feature):
2800         * dom/Document.h:
2801         * editing/CommandByName.cpp:
2802         * editing/JSEditor.cpp:
2803         * page/Frame.cpp:
2804         (WebCore::Frame::changeLocation):
2805         (WebCore::Frame::urlSelected):
2806         (WebCore::Frame::requestFrame):
2807         (WebCore::Frame::submitForm):
2808         * page/Frame.h:
2809         * page/FramePrivate.h:
2810         * page/ResourceRequest.h:
2811         (WebCore::):
2812         (WebCore::ResourceRequest::ResourceRequest):
2813         (WebCore::ResourceRequest::cachePolicy):
2814         (WebCore::ResourceRequest::setCachePolicy):
2815         (WebCore::ResourceRequest::timeoutInterval):
2816         (WebCore::ResourceRequest::setTimeoutInterval):
2817         (WebCore::ResourceRequest::mainDocumentURL):
2818         (WebCore::ResourceRequest::setMainDocumentURL):
2819         (WebCore::ResourceRequest::httpMethod):
2820         (WebCore::ResourceRequest::setHTTPMethod):
2821         (WebCore::ResourceRequest::httpHeaderField):
2822         (WebCore::ResourceRequest::setHTTPHeaderField):
2823         (WebCore::ResourceRequest::httpContentType):
2824         (WebCore::ResourceRequest::setHTTPContentType):
2825         (WebCore::ResourceRequest::httpReferrer):
2826         (WebCore::ResourceRequest::setHTTPReferrer):
2827         (WebCore::ResourceRequest::httpUserAgent):
2828         (WebCore::ResourceRequest::setHTTPUserAgent):
2829         (WebCore::ResourceRequest::httpBody):
2830         (WebCore::ResourceRequest::setHTTPBody):
2831         (WebCore::ResourceRequest::addHTTPHeaderField):
2832         * platform/FontCache.cpp:
2833         (WebCore::computeHash):
2834         * platform/StringHash.h:
2835         (WTF::):
2836         * platform/StringImpl.cpp:
2837         (WebCore::equalIgnoringCase):
2838         * rendering/RenderPartObject.cpp:
2839         (WebCore::RenderPartObject::updateWidget):
2840
2841 2006-10-19  Justin Garcia  <justin.garcia@apple.com>
2842
2843         Reviewed by levi
2844         
2845         <rdar://problem/4447885>
2846         API: WebView should have a method something like incrementLeftMarginBy: or indentBy:
2847         
2848         Fixed indent/outdent to only increment the left margin, to match other browsers.
2849         Used blockquote class="webkit-indent-blockquote" to do this.  Mail can now
2850         implement indent/outdent by customizing the appearance of these blockquotes,
2851         instead of using a new API.
2852         
2853         * css/html4.css: Added margin: 0 0 0 40px for webkit-indent-blockquotes.
2854         * editing/IndentOutdentCommand.cpp:
2855         (WebCore::indentBlockquoteString): Added.
2856         (WebCore::createIndentBlockquoteElement): Added.
2857         (WebCore::isIndentBlockquote): Added.
2858         (WebCore::isListOrBlockquote): Added.
2859         (WebCore::IndentOutdentCommand::IndentOutdentCommand):
2860         (WebCore::IndentOutdentCommand::prepareBlockquoteLevelForInsertion): Fixed
2861         a bug in the code that added an extra br if the placeholder collapsed upon insertion.
2862         Used the new indentBlockquote checks and enclosing element getters.  
2863         (WebCore::IndentOutdentCommand::indentRegion): Ditto.
2864         (WebCore::IndentOutdentCommand::outdentParagraph): Ditto.  Cleaned up the
2865         logic to pull the selection out of a list a bit.
2866         * editing/htmlediting.cpp:
2867         (WebCore::enclosingNodeOfType): Added this generic enclosing element getter.
2868         * editing/htmlediting.h:
2869
2870 2006-10-19  Timothy Hatcher  <timothy@apple.com>
2871
2872         Rolling out the this change since it caused a bad regression:
2873         <rdar://problem/4788524> REGRESSION: Incomplete repaint of text area when deleting (11277)
2874
2875 2006-10-12  Adele Peterson  <adele@apple.com>
2876           
2877         Reviewed by Dave Harrison.
2878           
2879         - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
2880           
2881         * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
2882         Make subtree layouts work for textareas as well as text fields.
2883
2884 2006-10-19  Nikolas Zimmermann  <zimmermann@kde.org>
2885
2886         Reviewed and landed by Anders.
2887
2888         Fix Qt/Linux build.
2889
2890         * CMakeLists.txt:
2891         * loader/Cache.h:
2892         * platform/qt/BrowserExtensionQt.cpp:
2893         * platform/qt/BrowserExtensionQt.h:
2894         * platform/qt/CursorQt.cpp:
2895         (WebCore::pointerCursor):
2896         * platform/qt/LoaderFunctionsQt.cpp:
2897         (WebCore::NumberOfPendingOrLoadingRequests):
2898         (WebCore::CheckCacheObjectStatus):
2899         * platform/qt/ResourceLoaderQt.cpp:
2900         (WebCore::ResourceLoader::retrieveResponseEncoding):
2901         (WebCore::ResourceLoader::receivedResponse):
2902
2903 2006-10-19  Sam Weinig  <sam.weinig@gmail.com>
2904
2905         Reviewed by ap.
2906
2907         Win32 build fix.
2908
2909         * bridge/win/FrameWin.cpp:
2910         * bridge/win/FrameWin.h:
2911         * platform/win/TemporaryLinkStubs.cpp:
2912         (WebCore::ResourceLoader::retrieveResponseEncoding):
2913
2914 2006-10-19  Alexey Proskuryakov  <ap@nypop.com>
2915
2916         Reviewed by Mitz.
2917
2918         http://bugs.webkit.org/show_bug.cgi?id=11141
2919         REGRESSION(r16681-r16691): CSS '@import' doesn't respect HTML Base element
2920
2921         Undo one misguided change made in bug 11011 - stop setting inline stylesheet's href
2922         to document URL. This matches WinIE and partially matches Firefox - although the latter
2923         reports the href as if it were inherited, it still doesn't use it when resolving URIs in
2924         @import rules.
2925
2926         Test: http/tests/uri/css-href.php
2927
2928         * html/HTMLStyleElement.cpp:
2929         (WebCore::HTMLStyleElement::childrenChanged):
2930         * ksvg2/svg/SVGStyleElement.cpp:
2931         (WebCore::SVGStyleElement::childrenChanged):
2932
2933 2006-10-19  Anders Carlsson  <acarlsson@apple.com>
2934
2935         * loader/Cache.cpp:
2936         Get rid of #include "loader.h", Cache.h already includes this and it breaks on operating systems
2937         with case-sensitive file systems.
2938
2939 2006-10-19  Anders Carlsson  <acarlsson@apple.com>
2940
2941         Reviewed by Maciej, Brady.
2942
2943         Remove "charset" from the ResourceLoader metadata map and use 
2944         a getter function instead. Also, rename charset to encoding in a couple of places.
2945         
2946         * loader/CachedCSSStyleSheet.cpp:
2947         (WebCore::CachedCSSStyleSheet::setEncoding):
2948         * loader/CachedCSSStyleSheet.h:
2949         * loader/CachedResource.h:
2950         (WebCore::CachedResource::setEncoding):
2951         * loader/CachedScript.cpp:
2952         (WebCore::CachedScript::setEncoding):
2953         * loader/CachedScript.h:
2954         * loader/CachedXBLDocument.cpp:
2955         (WebCore::CachedXBLDocument::setEncoding):
2956         * loader/CachedXBLDocument.h:
2957         * loader/CachedXSLStyleSheet.cpp:
2958         (WebCore::CachedXSLStyleSheet::setEncoding):
2959         * loader/CachedXSLStyleSheet.h:
2960         * loader/loader.cpp:
2961         (WebCore::Loader::receivedResponse):
2962         * platform/ResourceLoader.cpp:
2963         (WebCore::ResourceLoader::responseEncoding):
2964         (WebCore::ResourceLoader::queryMetaData):
2965         * platform/ResourceLoader.h:
2966         * platform/ResourceLoaderInternal.h:
2967         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2968         * platform/mac/ResourceLoaderMac.mm:
2969         (WebCore::ResourceLoader::retrieveResponseEncoding):
2970         (WebCore::ResourceLoader::receivedResponse):
2971         * xml/xmlhttprequest.cpp:
2972         (WebCore::XMLHttpRequest::receivedData):
2973
2974 2006-10-19  David Hyatt  <hyatt@apple.com>
2975
2976         Rewrite of the WebCore memory cache.  The following changes have been made (along with many more):
2977
2978         (1) Referenced objects are now also cached.
2979
2980         (2) Pruning of the cache will occur once the cache is both full and in addition
2981         more than half full with unreferenced objects.
2982
2983         (3) The prune is much more aggressive now, since referenced objects are counted when
2984         pruning.  The cache will therefore often prune out every unreferenced object if lots of
2985         windows/tabs are open.
2986
2987         (4) Consolidated the request methods for various types of resources to go through a single
2988         requestResource bottleneck function.
2989
2990         (5) deref on CachedResource is no longer virtual, since the implementation in every subclass was
2991         identical.
2992
2993         (6) Changed "object" to "resource" everywhere.
2994
2995         (7) The Cache is now an actual object, obtained via cache().
2996
2997         (8) Fixed bugs with the autoload images preference so that it would really work properly when disabled
2998         and enabled.
2999
3000         (9) Tweaked ImageDocuments to set up the status properly for the CachedResource that they use.
3001
3002         (10) Fixed the LRU-SP algorithm so that the LRU aspect really kicks in (by leaving the live objects
3003         in the LRU lists).  Also fixed a bug with the "-SP" part of the algorithm where the access count was
3004         being incorrectly weighted too much due to a math error.
3005
3006         (11) Fixed a bug where the old cache could grow without bound because it didn't know anything about
3007         the size of referenced resources.
3008
3009         Reviewed by Maciej, bradee-oh
3010
3011         * bridge/mac/WebCoreCache.mm:
3012         (+[WebCoreCache statistics]):
3013         (+[WebCoreCache empty]):
3014         (+[WebCoreCache setDisabled:]):
3015         * bridge/mac/WebCoreFrameBridge.mm:
3016         (-[WebCoreFrameBridge initMainFrameWithPage:]):
3017         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
3018         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
3019         * css/CSSImageValue.cpp:
3020         (WebCore::CSSImageValue::image):
3021         * dom/XMLTokenizer.cpp:
3022         (WebCore::openFunc):
3023         * html/HTMLImageLoader.cpp:
3024         (WebCore::HTMLImageLoader::updateFromElement):
3025         * loader/Cache.cpp:
3026         (WebCore::cache):
3027         (WebCore::Cache::Cache):
3028         (WebCore::createResource):
3029         (WebCore::Cache::requestResource):
3030         (WebCore::Cache::resourceForURL):
3031         (WebCore::Cache::prune):
3032         (WebCore::Cache::setMaximumSize):
3033         (WebCore::Cache::remove):
3034         (WebCore::Cache::addDocLoader):
3035         (WebCore::Cache::removeDocLoader):
3036         (WebCore::fastLog2):
3037         (WebCore::Cache::lruListFor):
3038         (WebCore::Cache::removeFromLRUList):
3039         (WebCore::Cache::insertInLRUList):
3040         (WebCore::Cache::resourceAccessed):
3041         (WebCore::Cache::adjustSize):
3042         (WebCore::Cache::getStatistics):
3043         (WebCore::Cache::setDisabled):
3044         * loader/Cache.h:
3045         (WebCore::LRUList::LRUList):
3046         (WebCore::Cache::loader):
3047         (WebCore::Cache::maximumSize):
3048         (WebCore::Cache::disabled):
3049         (WebCore::Cache::addToLiveObjectSize):
3050         (WebCore::Cache::removeFromLiveObjectSize):
3051         (WebCore::Cache::TypeStatistic::TypeStatistic):
3052         * loader/CachedCSSStyleSheet.cpp:
3053         (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
3054         * loader/CachedCSSStyleSheet.h:
3055         * loader/CachedImage.cpp:
3056         (WebCore::CachedImage::CachedImage):
3057         (WebCore::CachedImage::~CachedImage):
3058         (WebCore::brokenImage):
3059         (WebCore::nullImage):
3060         (WebCore::CachedImage::image):
3061         (WebCore::CachedImage::data):
3062         * loader/CachedImage.h:
3063         (WebCore::CachedImage::stillNeedsLoad):
3064         * loader/CachedResource.cpp:
3065         (WebCore::CachedResource::CachedResource):
3066         (WebCore::CachedResource::~CachedResource):
3067         (WebCore::CachedResource::finish):
3068         (WebCore::CachedResource::setExpireDate):
3069         (WebCore::CachedResource::isExpired):
3070         (WebCore::CachedResource::setRequest):
3071         (WebCore::CachedResource::ref):
3072         (WebCore::CachedResource::deref):
3073         (WebCore::CachedResource::setSize):
3074         * loader/CachedResource.h:
3075         (WebCore::CachedResource::):
3076         (WebCore::CachedResource::setCharset):
3077         (WebCore::CachedResource::url):
3078         (WebCore::CachedResource::type):
3079         (WebCore::CachedResource::referenced):
3080         (WebCore::CachedResource::count):
3081         (WebCore::CachedResource::status):
3082         (WebCore::CachedResource::size):
3083         (WebCore::CachedResource::isLoaded):
3084         (WebCore::CachedResource::setLoading):
3085         (WebCore::CachedResource::isImage):
3086         (WebCore::CachedResource::accessCount):
3087         (WebCore::CachedResource::increaseAccessCount):
3088         (WebCore::CachedResource::setInCache):
3089         (WebCore::CachedResource::inCache):
3090         (WebCore::CachedResource::cachePolicy):
3091         (WebCore::CachedResource::response):
3092         (WebCore::CachedResource::allData):
3093         (WebCore::CachedResource::canDelete):
3094         (WebCore::CachedResource::schedule):
3095         (WebCore::CachedResource::accept):
3096         (WebCore::CachedResource::setAccept):
3097         * loader/CachedScript.cpp:
3098         (WebCore::CachedScript::CachedScript):
3099         * loader/CachedScript.h:
3100         * loader/CachedXBLDocument.cpp:
3101         * loader/CachedXBLDocument.h:
3102         * loader/CachedXSLStyleSheet.cpp:
3103         (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
3104         * loader/CachedXSLStyleSheet.h:
3105         * loader/DocLoader.cpp:
3106         (WebCore::DocLoader::DocLoader):
3107         (WebCore::DocLoader::~DocLoader):
3108         (WebCore::DocLoader::checkForReload):
3109         (WebCore::DocLoader::requestImage):
3110         (WebCore::DocLoader::requestCSSStyleSheet):
3111         (WebCore::DocLoader::requestScript):
3112         (WebCore::DocLoader::requestXSLStyleSheet):
3113         (WebCore::DocLoader::requestXBLDocument):
3114         (WebCore::DocLoader::requestResource):
3115         (WebCore::DocLoader::setAutoLoadImages):
3116         (WebCore::DocLoader::removeCachedResource):
3117         * loader/DocLoader.h:
3118         (WebCore::DocLoader::cachedResource):
3119         (WebCore::DocLoader::allCachedResources):
3120         (WebCore::DocLoader::autoLoadImages):
3121         (WebCore::DocLoader::cachePolicy):
3122         (WebCore::DocLoader::expireDate):
3123         (WebCore::DocLoader::frame):
3124         (WebCore::DocLoader::doc):
3125         (WebCore::DocLoader::loadInProgress):
3126         * loader/ImageDocument.cpp:
3127         (WebCore::ImageTokenizer::finish):
3128         * loader/loader.cpp:
3129         (WebCore::Loader::receivedAllData):
3130         (WebCore::Loader::cancelRequests):
3131         * loader/mac/LoaderFunctionsMac.mm:
3132         (WebCore::NumberOfPendingOrLoadingRequests):
3133         (WebCore::CheckCacheObjectStatus):
3134         * page/Frame.cpp:
3135         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
3136         (WebCore::Frame::Frame):
3137         (WebCore::Frame::stopLoading):
3138         (WebCore::Frame::setAutoLoadImages):
3139         (WebCore::Frame::autoLoadImages):
3140         (WebCore::Frame::begin):
3141         (WebCore::Frame::checkCompleted):
3142         (WebCore::Frame::reparseConfiguration):
3143         * page/Frame.h:
3144         * xml/XSLTProcessor.cpp:
3145         (WebCore::docLoaderFunc):
3146         * xml/xmlhttprequest.cpp:
3147         (WebCore::XMLHttpRequest::send):
3148
3149 2006-10-18  Maciej Stachowiak  <mjs@apple.com>
3150
3151         Reviewed by Geoff.
3152
3153         - remove vestiges of KXMLCore name (former name of WTF).
3154
3155         * config.h:
3156
3157 2006-10-18  Geoffrey Garen  <ggaren@apple.com>
3158
3159         Reviewed by Beth.
3160         
3161         Fixed http://bugs.webkit.org/show_bug.cgi?id=11222
3162
3163         Some global JS objects lacked references to their property hashtables,
3164         so for-in enumeration didn't work. I added the references, and then removed
3165         a few bogus properties from the tables. The bogus ones got in there through
3166         bit rot.
3167         
3168         We should come up with some solution to these hand-written bindings bugs.
3169         Maybe we could use a script to autogenerate them or something.
3170
3171         * bindings/js/kjs_window.cpp:
3172         (KJS::):
3173         (KJS::History::getValueProperty):
3174
3175 2006-10-18  Adam Roben  <aroben@apple.com>
3176
3177         Reviewed by Brady.
3178
3179         Change Shift-Tab to generate keyIdentifier U+000009 (Tab) instead of
3180         U+000019 (Backtab). This matches our windowsKeyCode for this key
3181         combination.
3182
3183         * platform/mac/KeyEventMac.mm:
3184         (WebCore::keyIdentifierForKeyEvent):
3185
3186 2006-10-18  Steve Falkenburg  <sfalken@apple.com>
3187
3188         Reviewed by Adam, Brady.
3189
3190         Loader tweaks.
3191
3192         * platform/cf/ResourceLoaderCFNet.cpp:
3193         (WebCore::didFinishLoading):
3194         (WebCore::didFail):
3195         (WebCore::didReceiveChallenge):
3196         (WebCore::runLoaderThread):
3197         (WebCore::ResourceLoader::start):
3198         (WebCore::ResourceLoader::cancel):
3199
3200 2006-10-18  Timothy Hatcher  <timothy@apple.com>
3201
3202         Reviewed by Darin.
3203
3204         <rdar://problem/4752138> Manipulating popup in HTML page crashed Xcode
3205
3206         - Store the Mac popup button cell as a RetainPtr to prevent GC collection.
3207         - Convert more ObjC local statics and member variables to use RetainPtr.
3208         - Convert more CFRetain/CFRelease to HardRetain/HardRelease.
3209
3210         * bindings/objc/DOM.mm:
3211         (ObjCNodeFilterCondition::ObjCNodeFilterCondition): use HardRetain and not CFRetain
3212         (ObjCNodeFilterCondition::~ObjCNodeFilterCondition): use HardRelease and not CFRelease
3213         * bridge/mac/AXObjectCacheMac.mm:
3214         (WebCore::AXObjectCache::~AXObjectCache): use HardRelease and not CFRelease
3215         (WebCore::AXObjectCache::get): use HardRetain and not CFRetain
3216         (WebCore::AXObjectCache::remove): use HardRelease and not CFRelease
3217         * bridge/mac/WebCoreFrameBridge.mm:
3218         (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): use RetainPtr
3219         (+[WebCoreFrameBridge supportedImageMIMETypes]): ditto
3220         * bridge/mac/WebCoreIconDatabaseBridge.mm:
3221         (+[WebCoreIconDatabaseBridge sharedInstance]): use RetainPtr
3222         * platform/PopupMenu.h: renamed popup to m_popup and switched to RetainPtr<NSPopUpButtonCell>
3223         * platform/cf/RetainPtr.h:
3224         (WTF::::operator): implement a missing operator= template function
3225         * platform/mac/PopupMenuMac.mm:
3226         (WebCore::PopupMenu::PopupMenu): remove nil initialization
3227         (WebCore::PopupMenu::~PopupMenu): use .get(), remove release message and rename to m_popup
3228         (WebCore::PopupMenu::clear): use .get() when sending a message and rename to m_popup
3229         (WebCore::PopupMenu::populate): ditto 
3230         (WebCore::PopupMenu::show): ditto
3231         (WebCore::PopupMenu::hide): ditto
3232         (WebCore::PopupMenu::addSeparator): ditto
3233         (WebCore::PopupMenu::addGroupLabel): ditto
3234         (WebCore::PopupMenu::addOption): ditto
3235
3236 2006-10-18  Geoffrey Garen  <ggaren@apple.com>
3237
3238         Reviewed by Adele.
3239
3240         Fixed <rdar://problem/3673233> JavaScript timers do not fire if controls
3241         are tracking or menus are down (run loop modes)
3242
3243         I spent a few hours trying to write an automated test, but DRT doesn't
3244         seem to support it. Manual tests attached to related bugs.
3245         
3246         * bridge/mac/FrameMac.mm:
3247         (WebCore::FrameMac::passMouseDownEventToWidget):
3248         * platform/mac/SharedTimerMac.cpp:
3249         (WebCore::setSharedTimerFireTime):
3250
3251 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
3252
3253         Reviewed by Maciej.
3254
3255         More Win32 buildfix.
3256
3257         * bridge/win/FrameWin.h:
3258
3259 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
3260
3261         Reviewed by Mitz
3262
3263         Win32 build fix.
3264
3265         * bridge/win/BrowserExtensionWin.cpp:
3266         (WebCore::BrowserExtensionWin::BrowserExtensionWin):
3267         (WebCore::BrowserExtensionWin::createNewWindow):
3268         * bridge/win/BrowserExtensionWin.h:
3269         * bridge/win/FrameWin.cpp:
3270         (WebCore::FrameWin::createNewWindow):
3271         * bridge/win/FrameWin.h:
3272         * platform/win/CursorWin.cpp:
3273         * platform/win/TemporaryLinkStubs.cpp:
3274         (Image::getHBITMAP):
3275
3276 2006-10-18  Justin Garcia  <justin.garcia@apple.com>
3277
3278         Reviewed by harrison
3279         
3280         <rdar://problem/4784823>
3281         GMail Editor: Hang occurs when removing list styling on text in a rich text message
3282
3283         List removal moves the contents of every list item out of the list it's 
3284         in. When the code tried to move the contents of an empty list item (an li 
3285         with no child nodes, not even a placeholder br), moveParagraph didn't prune 
3286         the li, like it would if the li had a placeholder inside it.  So the list 
3287         removal code went into an infinite loop, continually attempting to de-list 
3288         an empty list item.
3289
3290         * editing/CompositeEditCommand.cpp:
3291         (WebCore::CompositeEditCommand::moveParagraphs): If the selection
3292         to move was empty and in an empty block that doesn't require a 
3293         placeholder to prop itself open (like a bordered div or an li), 
3294         remove it during the move.
3295
3296 2006-10-18  Adele Peterson  <adele@apple.com>
3297
3298         Reviewed by Beth.
3299
3300         - Fixed http://bugs.webkit.org/show_bug.cgi?id=11343
3301           REGRESSION (r16975): fast/events/objc-event-api is failing
3302
3303           When I moved the autoscroll code from FrameMac to Frame, I mistakingly changed the order of
3304           a call to invalidateClick.  This change moves it back to the sequence that existed before.  This allows
3305           the click count to get properly reset during a selection.
3306
3307         * page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent):
3308
3309 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
3310         
3311         Reviewed by Anders.
3312         
3313         Factored common scaling code into a helper function.
3314
3315         * platform/mac/ScreenMac.mm:
3316         (WebCore::scale):
3317         (WebCore::scaleScreenRectToPageCoordinates):
3318         (WebCore::scalePageRectToScreenCoordinates):
3319
3320 2006-10-17  Steve Falkenburg  <sfalken@apple.com>
3321
3322         Build fixes
3323
3324         * bridge/win/BrowserExtensionWin.cpp:
3325         (WebCore::BrowserExtensionWin::createNewWindow):
3326         * bridge/win/BrowserExtensionWin.h:
3327         * bridge/win/FrameWin.cpp:
3328         (WebCore::FrameWin::createNewWindow):
3329         * bridge/win/FrameWin.h:
3330         * platform/gdk/BrowserExtensionGdk.h:
3331         * platform/gdk/TemporaryLinkStubs.cpp:
3332         (BrowserExtensionGdk::createNewWindow):
3333         * platform/qt/BrowserExtensionQt.cpp:
3334         (WebCore::BrowserExtensionQt::createNewWindow):
3335         * platform/qt/BrowserExtensionQt.h:
3336
3337 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
3338
3339         Reviewed by Anders.
3340         
3341         Renamed WindowArgs to WindowFeatures, and moved it into its own header.
3342         ("Features" is the term of art in IE documentation. "Args" is pirate
3343         talk.)
3344
3345         * WebCore.xcodeproj/project.pbxproj:
3346         * bindings/js/kjs_window.cpp:
3347         (KJS::createNewWindow):
3348         (KJS::showModalDialog):
3349         (KJS::setWindowFeature):
3350         (KJS::parseWindowFeatures):
3351         (KJS::constrainToVisible):
3352         (KJS::WindowFunc::callAsFunction):
3353         * bridge/BrowserExtension.h:
3354         * bridge/WindowFeatures.h: Added.
3355         * bridge/mac/BrowserExtensionMac.h:
3356         * bridge/mac/BrowserExtensionMac.mm:
3357         (WebCore::BrowserExtensionMac::createNewWindow):
3358
3359 2006-10-17  Sam Weinig  <sam.weinig@gmail.com>
3360
3361         Reviewed by Tim H.
3362
3363         Patch for http://bugs.webkit.org/show_bug.cgi?id=11268
3364         Implement the Objective-C DOM bindings for SVGNumber, SVGRect, and SVGPoint
3365
3366         - Adds implementation for DOMSVGNumber, DOMSVGRect, and DOMSVGPoint.
3367
3368         - Moves the contents of ksvg/bindings/js/ to bindings/js/.
3369
3370         - Moves SVGZoomEvent.idl from ksvg/svg/ to ksvg/events/.
3371
3372         - Adds isSVGColor() and isSVGPaint() methods to StyleBase, matching 
3373           the other CSSValue classing, and allowing the bindings to allocate
3374           appropriately.
3375
3376         - Removes #ifdefs around the getBBox() method in SVGLocatable.idl allowing
3377           generation for Objective-C.
3378
3379         - Assorted style cleanups.
3380
3381         * DerivedSources.make:
3382         * WebCore.xcodeproj/project.pbxproj:
3383         * bindings/objc/DOMCSS.mm:
3384         (+[DOMCSSValue _CSSValueWith:WebCore::]):
3385         * bindings/objc/DOMEvents.mm:
3386         (+[DOMEvent _eventWith:WebCore::]):
3387         * bindings/objc/DOMSVG.h:
3388         * bindings/objc/DOMSVGNumber.mm:
3389         (-[DOMSVGNumber dealloc]):
3390         (-[DOMSVGNumber finalize]):
3391         (-[DOMSVGNumber value]):
3392         (-[DOMSVGNumber setValue:]):
3393         (-[DOMSVGNumber _SVGNumber]):
3394         (-[DOMSVGNumber _initWithFloat:]):
3395         (+[DOMSVGNumber _SVGNumberWith:]):
3396         * bindings/objc/DOMSVGPoint.mm:
3397         (-[DOMSVGPoint dealloc]):
3398         (-[DOMSVGPoint finalize]):
3399         (-[DOMSVGPoint x]):
3400         (-[DOMSVGPoint setX:]):
3401         (-[DOMSVGPoint y]):
3402         (-[DOMSVGPoint setY:]):
3403         (-[DOMSVGPoint WebCore::]):
3404         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
3405         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
3406         * bindings/objc/DOMSVGRect.mm:
3407         (-[DOMSVGRect dealloc]):
3408         (-[DOMSVGRect finalize]):
3409         (-[DOMSVGRect x]):
3410         (-[DOMSVGRect setX:]):
3411         (-[DOMSVGRect y]):
3412         (-[DOMSVGRect setY:]):
3413         (-[DOMSVGRect width]):
3414         (-[DOMSVGRect setWidth:]):
3415         (-[DOMSVGRect height]):
3416         (-[DOMSVGRect setHeight:]):
3417         (-[DOMSVGRect WebCore::]):
3418         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
3419         (+[DOMSVGRect _SVGRectWith:WebCore::]):
3420         * bindings/scripts/CodeGeneratorObjC.pm:
3421         * css/StyleBase.h:
3422         (WebCore::StyleBase::isSVGColor):
3423         (WebCore::StyleBase::isSVGPaint):
3424         * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Removed.
3425         * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Removed.
3426         * ksvg2/bindings/js/JSSVGNumber.cpp: Removed.
3427         * ksvg2/bindings/js/JSSVGNumber.h: Removed.
3428         * ksvg2/bindings/js/JSSVGPoint.cpp: Removed.
3429         * ksvg2/bindings/js/JSSVGPoint.h: Removed.
3430         * ksvg2/bindings/js/JSSVGRect.cpp: Removed.
3431         * ksvg2/bindings/js/JSSVGRect.h: Removed.
3432         * ksvg2/svg/SVGColor.h:
3433         (WebCore::SVGColor::isSVGColor):
3434         * ksvg2/svg/SVGFECompositeElement.idl:
3435         * ksvg2/svg/SVGFEFloodElement.idl:
3436         * ksvg2/svg/SVGLocatable.idl:
3437         * ksvg2/svg/SVGMarkerElement.idl:
3438         * ksvg2/svg/SVGPaint.h:
3439         (WebCore::SVGPaint::isSVGPaint):
3440         * ksvg2/svg/SVGRectElement.idl:
3441         * ksvg2/svg/SVGZoomEvent.idl: Removed.
3442
3443 2006-10-17  David Hyatt  <hyatt@apple.com>
3444
3445         Prepare for the elimination of the RenderLayer for <html> elements.  The layer is still present,
3446         but this patch makes everything work without a root layer being around.
3447
3448         Reviewed by beth
3449
3450         * rendering/RenderBlock.cpp:
3451         (WebCore::RenderBlock::paint):
3452         (WebCore::RenderBlock::paintChildren):
3453         (WebCore::RenderBlock::nodeAtPoint):
3454         * rendering/RenderLayer.cpp:
3455         (WebCore::frameVisibleRect):
3456         (WebCore::RenderLayer::hitTest):
3457         (WebCore::RenderLayer::hitTestLayer):
3458         (WebCore::RenderLayer::intersectsDamageRect):
3459         * rendering/RenderObject.cpp:
3460         (WebCore::RenderObject::setInnerNode):
3461         * rendering/RenderView.cpp:
3462         (WebCore::RenderView::paint):
3463
3464 2006-10-17  David Hyatt  <hyatt@apple.com>
3465
3466         Back out my previous patch to the WebCore memory cache.
3467
3468         * loader/Cache.cpp:
3469         (WebCore::Cache::flush):
3470         (WebCore::Cache::setSize):
3471         (WebCore::Cache::getLRUListFor):
3472         (WebCore::Cache::removeFromLRUList):
3473         (WebCore::Cache::insertInLRUList):
3474         * loader/Cache.h:
3475         * loader/CachedCSSStyleSheet.cpp:
3476         (WebCore::CachedCSSStyleSheet::deref):
3477         * loader/CachedCSSStyleSheet.h:
3478         * loader/CachedImage.cpp:
3479         (WebCore::CachedImage::deref):
3480         * loader/CachedImage.h:
3481         * loader/CachedResource.cpp:
3482         (WebCore::CachedResource::setRequest):
3483         (WebCore::CachedResource::deref):
3484         * loader/CachedResource.h:
3485         (WebCore::CachedResource::allowInLRUList):
3486         * loader/CachedScript.cpp:
3487         (WebCore::CachedScript::deref):
3488         * loader/CachedScript.h:
3489         * loader/CachedXBLDocument.cpp:
3490         (WebCore::CachedXBLDocument::deref):
3491         * loader/CachedXBLDocument.h:
3492         * loader/CachedXSLStyleSheet.cpp:
3493         (WebCore::CachedXSLStyleSheet::deref):
3494         * loader/CachedXSLStyleSheet.h:
3495
3496 2006-10-17  Oliver Hunt  <oliver@apple.com>
3497
3498         Reviewed by Anders.
3499
3500         Make north and east resize cursors use correct image
3501
3502         * platform/win/CursorWin.cpp:
3503         (WebCore::eastResizeCursor):
3504         (WebCore::northResizeCursor):
3505
3506 2006-10-17  Oliver Hunt  <oliver@apple.com>
3507
3508         Reviewed by Brady
3509
3510         Various cursor fixes
3511
3512         * page/FrameView.cpp:
3513         (WebCore::FrameView::handleMouseMoveEvent):
3514         * platform/Cursor.h:
3515         * platform/mac/CursorMac.mm:
3516         (WebCore::pointerCursor):
3517         * platform/win/CursorWin.cpp:
3518         (WebCore::supportsAlphaCursors):
3519         (WebCore::Cursor::Cursor):
3520         (WebCore::Cursor::~Cursor):
3521         (WebCore::pointerCursor):
3522
3523 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
3524
3525         Reviewed by harrison
3526         
3527         <rdar://problem/4776665>
3528         REGRESSION: In Mail, caret is visible when the message body isn't focused
3529
3530         * page/Frame.cpp:
3531         (WebCore::Frame::paintCaret): If a caret blink timer is ever on in error
3532         (like when the frame that contains the caret isn't focused) then we don't 
3533         want to paint the caret.  We should eventually move to using a single bool
3534         for caret painting.
3535
3536 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
3537
3538         Reviewed by harrison
3539         
3540         <rdar://problem/4774354>
3541         REGRESSION: In Gmail, caret reappears when dragging a selection over some text in the message body
3542
3543         Functions call recomputCaretRect to see if the caret rect has changed, 
3544         and, if it has, they invalidate (repaint) it.  recomputeCaretRect was 
3545         returning false if the caret turned into a range selection or was blown 
3546         away.
3547
3548         * editing/SelectionController.cpp:
3549         (WebCore::SelectionController::recomputeCaretRect): Don't early return if
3550         !isCaret().  Obtain the FrameView* using the m_frame pointer, because m_sel 
3551         may now be null.
3552
3553 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
3554
3555         Reviewed by Brady.
3556
3557         BrowserExtension cleanup.
3558         
3559         - Removed unnecessary #include of BrowserExtension in Frame.h, added
3560         #includes to compensate in other files.
3561         
3562         - Removed unused versions of createNewWindow.
3563         
3564         * bindings/js/kjs_window.cpp:
3565         * bridge/BrowserExtension.h:
3566         * bridge/mac/BrowserExtensionMac.h: