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