2006-11-06 Oliver Hunt <oliver@apple.com>
[WebKit-https.git] / WebCore / ChangeLog
1 2006-11-06  Oliver Hunt  <oliver@apple.com>
2
3         Reviewed by Maciej.
4
5         Fix RTL text in SVG to have correct positioning
6
7         * rendering/SVGRootInlineBox.cpp:
8         (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
9
10 2006-11-06  Alexey Proskuryakov  <ap@webkit.org>
11
12         Reviewed by Maciej.
13
14         http://bugs.webkit.org/show_bug.cgi?id=11517
15         REGRESSION: Flash clicks/interactivity not working properly
16
17         * bridge/mac/FrameMac.mm:
18         (WebCore::FrameMac::handleMouseMoveEvent):
19         (WebCore::FrameMac::handleMouseReleaseEvent):
20         Restore parts of event dispatching that were removed when fixing
21         bug 7323 - just bypass those for subframes.
22
23 2006-11-05  Darin Adler  <darin@apple.com>
24
25         - quick attempt to fix the no-SVG build
26
27         * platform/graphics/svg/SVGResource.cpp:
28         * platform/graphics/svg/SVGResource.h:
29         * platform/graphics/svg/SVGResourceClipper.cpp:
30         * platform/graphics/svg/SVGResourceClipper.h:
31         * platform/graphics/svg/SVGResourceImage.h:
32         * platform/graphics/svg/SVGResourceMarker.cpp:
33         * platform/graphics/svg/SVGResourceMarker.h:
34         * platform/graphics/svg/SVGResourceMasker.cpp:
35         * platform/graphics/svg/SVGResourceMasker.h:
36         * platform/graphics/svg/cg/SVGResourceMaskerCg.h:
37         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
38         * platform/graphics/svg/qt/SVGResourceImageQt.cpp:
39         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
40         Added #ifdef SVG_SUPPORT to these files.
41
42 2006-11-05  MorganL  <morganl.webkit@yahoo.com>
43
44         Reviewed & landed by Maciej.
45
46         Fixes http://bugs.webkit.org/show_bug.cgi?id=11265
47
48         * platform/win/ResourceLoaderWin.cpp:
49         (WebCore::transferJobStatusCallback):
50         (WebCore::ResourceLoader::start):
51
52 2006-11-04  Maciej Stachowiak  <mjs@apple.com>
53
54         Reviewed by Oliver.
55
56         - moved FormData and FormDataStream to platform/network directory
57
58         * WebCore.xcodeproj/project.pbxproj:
59         * bridge/mac/WebCoreFrameBridge.mm:
60         * loader/FormData.cpp: Removed.
61         * loader/FormData.h: Removed.
62         * loader/mac/FormDataStream.h: Removed.
63         * loader/mac/FormDataStream.m: Removed.
64         * loader/mac/FrameLoaderMac.mm:
65         * loader/mac/SubresourceLoaderMac.mm:
66         * platform/network/mac/FormDataStreamMac.h: Added.
67         * platform/network/mac/FormDataStreamMac.mm: Added.
68         * platform/network/mac/ResourceRequestMac.mm:
69
70 2006-11-05  Steve Falkenburg  <sfalken@apple.com>
71
72         Fix build breaks
73
74         * loader/DocumentLoader.h:
75         * platform/win/ScreenWin.cpp:
76
77 2006-11-05  Darin Adler  <darin@apple.com>
78
79         Reviewed by Geoff.
80
81         - more preparation for splitting up Frame into sub-pieces
82         - removed unnecessary includes from Frame.h
83
84         * page/Frame.h: Removed unneeded includes and forward declarations.
85         Added additional forward declarations. Removed the constant
86         NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
87         Created sections of functions to be moved into Chrome, Editor,
88         EventHandler, FrameLoader, SelectionController, and the Platform
89         directory, as well as marking one function for deletion.
90
91         * page/FramePrivate.h: Removed the definition of the constructor and
92         destructor and removed unnecessary includes.
93
94         * page/FrameView.h: Removed unneeded forward declarations and friend
95         declarations. Created a section of functions and data to be moved into
96         EventHandler.
97
98         * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
99         Created sections of functions and data to be moved into Chrome,
100         Editor, EventHandler, FrameLoader, and the Platform directory.
101
102         * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
103         Removed unused methods areScrollbarsVisible,
104         nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
105
106         * page/Frame.cpp:
107         (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
108         to include KURL.h just for the KURL default constructor.
109         (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
110         (WebCore::FramePrivate::~FramePrivate): Ditto.
111
112         * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
113         booleans, scrollbarMoved and cleared funcitons.
114         (WebCore::FrameView::clear): Moved the code from the cleared
115         function in here.
116         (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
117
118         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
119         for changes to header.
120
121         * editing/SelectionController.cpp:
122         (WebCore::SelectionController::setSelection):
123         (WebCore::SelectionController::xPosForVerticalArrowNavigation):
124         Moved NoXPosForVerticalArrowNavigation into this file.
125
126         * bindings/js/kjs_events.cpp:
127         * bindings/js/kjs_html.cpp:
128         * bindings/js/kjs_window.cpp:
129         * bridge/mac/WebCoreAXObject.mm:
130         * bridge/mac/WebCoreFrameBridge.mm:
131         * css/cssstyleselector.cpp:
132         * dom/Document.cpp:
133         * dom/Element.cpp:
134         * dom/EventTargetNode.cpp:
135         * dom/MouseRelatedEvent.cpp:
136         * dom/XMLTokenizer.cpp:
137         * html/HTMLBaseElement.cpp:
138         * html/HTMLDocument.cpp:
139         * html/HTMLEmbedElement.cpp:
140         * html/HTMLFrameElementBase.cpp:
141         * html/HTMLGenericFormElement.cpp:
142         * html/HTMLObjectElement.cpp:
143         * html/HTMLTokenizer.cpp:
144         * loader/mac/FrameLoaderMac.mm:
145         * page/PageState.cpp:
146         * rendering/RenderApplet.cpp:
147         * rendering/RenderBlock.cpp:
148         * rendering/RenderLayer.cpp:
149         * rendering/RenderObject.cpp:
150         * rendering/RenderPartObject.cpp:
151         * rendering/RenderTreeAsText.cpp:
152         * xml/XSLTProcessor.cpp:
153         Added includes as needed to keep compiling, since there are fewer
154         includes in Frame.h.
155
156 2006-11-05  Alexey Proskuryakov  <ap@nypop.com>
157
158         Reviewed by Dave Harrison.
159
160         http://bugs.webkit.org/show_bug.cgi?id=11402
161         REGRESSION: onChange does not work anymore for 1st item in popup
162
163         * html/HTMLSelectElement.cpp:
164         (WebCore::HTMLSelectElement::HTMLSelectElement):
165         (WebCore::HTMLSelectElement::reset):
166         Set m_lastOnChangeIndex to -1.
167
168 2006-11-04  Darin Adler  <darin@apple.com>
169
170         Reviewed by Anders.
171
172         - fix http://bugs.webkit.org/show_bug.cgi?id=11453
173           REGRESSION: Status bar always shows cancelled opening the page
174
175         * platform/network/mac/ResourceHandleMac.mm:
176         (WebCore::ResourceHandle::~ResourceHandle): Removed call to cancel.
177         Since the subresource owns the resource handle, there's no need to cancel.
178         This arrangement is only temporary, anyway, since Maciej will soon change
179         things so that the subresource loader uses the resource handle and the
180         resource handle doesn't know anything about the subresource loader.
181
182 2006-11-04  Darin Adler  <darin@apple.com>
183
184         Reviewed by Maciej.
185
186         - converted more of the loader machinery to work with cross-platform
187           data structures instead of Macintosh-specific ones
188
189           converted most uses of NSURL to KURL and NSEvent to DOM Event in
190           loader classes
191
192           moved download function out of FrameLoader.h to avoid reference to
193           NSURLConnection
194
195           added DOM Event parameters to various functions so that the handlers
196           can use the DOM Event instead of the global "current NSEvent";
197           includes Frame::submitForm, HTMLFormElement::prepareSubmit,
198           HTMLFormElement::submit, FrameLoader::load
199
200           moved the setMainFrame call that hands ownership to the Page
201           into one of the Frame constructors, and removed it from all
202           the clients
203
204           removed const from Event parameter to the urlSelected function
205           (we rarely use const with DOM elements)
206
207           removed some redundant includes and declarations from various
208           header files
209
210           removed NSURL parameter from userAgent function -- if we need it we
211           can add it back, but converting from NSURL to KURL and back is
212           inefficient enough that it's best to have it out for now (since it's
213           been unused for years) -- if we add it back, we can choose an
214           appropriate parameter type that's always inexpensive to pass
215
216           did some basic cleanup in the IconLoader class, including removing
217           an unnecessary loop that added icon data a byte at a time
218
219           renamed safeLoad to load, since it's no different from the other
220           FrameLoader load functions, safety-wise
221
222           fixed some code that was trying to distinguish null frame name from
223           empty string frame name -- both should be handled the same, but callers
224           were doing it by checking for empty and turning it into null (in a way
225           that was causing extra round trips between NSString and WebCore::String)
226
227           corrected all uses of "get" and "post" to be uppercase "GET" and "POST"
228           and got rid of case-insensitive compares of methods
229
230         * WebCore.exp:
231         * WebCore.xcodeproj/project.pbxproj:
232         * bindings/js/kjs_navigator.cpp:
233         (KJS::Navigator::getValueProperty):
234         * bridge/mac/FrameMac.h:
235         * bridge/mac/FrameMac.mm:
236         (WebCore::FrameMac::submitForm):
237         (WebCore::FrameMac::urlSelected):
238         (WebCore::FrameMac::userAgent):
239         * bridge/mac/FrameViewMac.mm:
240         * bridge/mac/WebCoreAXObject.mm:
241         (-[WebCoreAXObject rendererForView:]):
242         * bridge/mac/WebCorePageBridge.h:
243         * bridge/mac/WebCorePageBridge.mm:
244         * bridge/mac/WebCoreSettings.mm:
245         * bridge/win/FrameWin.cpp:
246         (WebCore::FrameWin::urlSelected):
247         (WebCore::FrameWin::submitForm):
248         * bridge/win/FrameWin.h:
249         * dom/MouseRelatedEvent.cpp:
250         * dom/MouseRelatedEvent.h:
251         * dom/UIEvent.cpp:
252         (WebCore::UIEvent::~UIEvent):
253         * dom/UIEvent.h:
254         * dom/UIEventWithKeyState.h:
255         * dom/XMLTokenizer.cpp:
256         (WebCore::openFunc):
257         * html/HTMLAnchorElement.cpp:
258         (WebCore::HTMLAnchorElement::defaultEventHandler):
259         * html/HTMLButtonElement.cpp:
260         (WebCore::HTMLButtonElement::defaultEventHandler):
261         * html/HTMLFormElement.cpp:
262         (WebCore::HTMLFormElement::submitClick):
263         (WebCore::HTMLFormElement::prepareSubmit):
264         (WebCore::HTMLFormElement::submit):
265         * html/HTMLFormElement.h:
266         * html/HTMLInputElement.cpp:
267         (WebCore::HTMLInputElement::defaultEventHandler):
268         * html/HTMLSelectElement.cpp:
269         (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
270         * loader/DocumentLoader.h:
271         * loader/FrameLoader.h:
272         * loader/FrameLoaderClient.h:
273         * loader/NavigationAction.h:
274         (WebCore::NavigationAction::event):
275         * loader/icon/IconLoader.cpp:
276         (WebCore::IconLoader::create):
277         (WebCore::IconLoader::startLoading):
278         (WebCore::IconLoader::didReceiveData):
279         (WebCore::IconLoader::didFinishLoading):
280         * loader/icon/IconLoader.h:
281         * loader/loader.cpp:
282         * loader/mac/DocumentLoaderMac.mm:
283         (WebCore::DocumentLoader::URL):
284         (WebCore::DocumentLoader::unreachableURL):
285         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
286         (WebCore::DocumentLoader::URLForHistory):
287         * loader/mac/FrameLoaderMac.mm:
288         (WebCore::FrameLoader::load):
289         (WebCore::FrameLoader::willSendRequest):
290         (WebCore::FrameLoader::clientRedirected):
291         (WebCore::FrameLoader::shouldReload):
292         (WebCore::FrameLoader::notifyIconChanged):
293         (WebCore::FrameLoader::URL):
294         (WebCore::FrameLoader::reloadAllowingStaleData):
295         (WebCore::FrameLoader::reload):
296         (WebCore::FrameLoader::didChangeTitle):
297         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
298         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
299         (WebCore::FrameLoader::post):
300         (WebCore::FrameLoader::addExtraFieldsToRequest):
301         (WebCore::FrameLoader::loadResourceSynchronously):
302         * loader/mac/IconLoaderMac.mm:
303         (WebCore::IconLoader::notifyIconChanged):
304         * loader/mac/LoaderFunctionsMac.mm:
305         * loader/mac/MainResourceLoaderMac.mm:
306         (WebCore::shouldLoadAsEmptyDocument):
307         (WebCore::MainResourceLoader::continueAfterContentPolicy):
308         * loader/mac/NavigationActionMac.mm:
309         (WebCore::navigationType):
310         (WebCore::NavigationAction::NavigationAction):
311         * loader/mac/ResourceLoaderMac.mm:
312         * loader/mac/SubresourceLoaderMac.mm:
313         * page/Frame.cpp:
314         (WebCore::Frame::Frame):
315         (WebCore::Frame::urlSelected):
316         (WebCore::Frame::submitFormAgain):
317         (WebCore::Frame::submitForm):
318         (WebCore::Frame::endIfNotLoading):
319         (WebCore::Frame::hitTestResultAtPoint):
320         * page/Frame.h:
321         * page/FramePrivate.h:
322         * platform/gdk/FrameGdk.cpp:
323         (WebCore::FrameGdk::FrameGdk):
324         (WebCore::FrameGdk::submitForm):
325         (WebCore::FrameGdk::urlSelected):
326         * platform/gdk/FrameGdk.h:
327         * platform/mac/TextFieldMac.mm:
328         * platform/network/HTTPHeaderMap.h:
329         * platform/network/ResourceHandle.h:
330         * platform/network/ResourceHandleClient.h:
331         * platform/network/ResourceHandleInternal.h:
332         * platform/network/mac/ResourceHandleMac.mm:
333         * platform/network/mac/ResourceResponseMac.h:
334         * platform/network/mac/ResourceResponseMac.mm:
335         (-[NSURLResponse WebCore]):
336         * platform/network/win/ResourceHandleWin.cpp:
337         * platform/qt/FrameQt.cpp:
338         (WebCore::FrameQt::submitForm):
339         (WebCore::FrameQt::urlSelected):
340         * platform/qt/FrameQt.h:
341         * rendering/RenderLineEdit.cpp:
342         (WebCore::RenderLineEdit::returnPressed):
343         * xml/XSLTProcessor.cpp:
344         (WebCore::docLoaderFunc):
345         * xml/xmlhttprequest.cpp:
346
347 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
348
349         Reviewed by Adele.
350
351         - replaced receivedRedirect with new willSendRequest delegate
352         - removed most mac-specific loader functions
353         - use ResourceResponse more in loader code
354
355         * WebCore.xcodeproj/project.pbxproj: Add new files.
356         * bridge/mac/WebCoreFrameBridge.mm:
357         (-[WebCoreFrameBridge getData:andResponse:forURL:]): Adapted
358         for CachedResource method renames.
359         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
360         Ditto.
361         * loader/CachedCSSStyleSheet.cpp:
362         (WebCore::CachedCSSStyleSheet::checkNotify): simplified
363         based on ResourceResponse
364         * loader/CachedImage.cpp:
365         (WebCore::CachedImage::createImage): adapt for ResourceResponse
366         * loader/CachedResource.cpp:
367         (WebCore::CachedResource::CachedResource): store a ResourceResponse;
368         platform response is now called platformResponse and expiration date
369         is removed.
370         (WebCore::CachedResource::~CachedResource): ditto
371         (WebCore::CachedResource::isExpired): ditto
372         * loader/CachedResource.h:
373         (WebCore::CachedResource::platformResponse): ditto
374         (WebCore::CachedResource::setResponse): ditto
375         (WebCore::CachedResource::canDelete): ditto
376         * loader/LoaderFunctions.h:
377         * loader/loader.cpp:
378         (WebCore::Loader::receivedResponse): Adjusted for renames.
379         (WebCore::Loader::didReceiveResponse): Store whole ResourceResponse
380         in the CachedResource.
381         * loader/loader.h:
382         * loader/mac/FormDataStream.h:
383         * loader/mac/FormDataStream.m:
384         (WebCore::getStreamFormDatas): Rearranged things so it's
385         possible to get a FormData back out of a form data stream.
386         (WebCore::formCreate): ditto
387         (WebCore::formFinalize): ditto
388         (WebCore::httpBodyFromStream): ditto
389         * loader/mac/ImageDocumentMac.mm:
390         (WebCore::finishImageLoad): s/response/platformResponse/
391         * loader/mac/LoaderFunctionsMac.mm:
392         (WebCore::CheckCacheObjectStatus): ditto
393         (WebCore::CachedResource::setPlatformResponse): ditto
394         * loader/mac/SubresourceLoaderMac.mm:
395         (WebCore::SubresourceLoader::willSendRequest): send redirect
396         to client appropriately
397         * platform/network/ResourceHandle.h:
398         * platform/network/ResourceHandleClient.h:
399         (WebCore::ResourceHandleClient::willSendRequest): new entry
400         point for SubresourceLoader, dispatch to client.
401         * platform/network/ResourceRequest.h:
402         (WebCore::ResourceRequest::allowHTTPCookies): implemented
403         (WebCore::ResourceRequest::setAllowHTTPCookies): ditto
404         * platform/network/ResourceResponse.h:
405         (WebCore::ResourceResponse::ResourceResponse): initialize expiration
406         date(!)
407         * platform/network/cf/FormDataStreamCFNet.cpp: Added.
408         (WebCore::getStreamFormDatas): Added this, ported from NSURL version.
409         (WebCore::openNextStream): ditto
410         (WebCore::formCreate): ditto
411         (WebCore::formFinalize): ditto
412         (WebCore::formCanRead): ditto
413         (WebCore::formEventCallback): ditto
414         (WebCore::setHTTPBody): ditto
415         (WebCore::httpBodyFromStream): ditto
416         * platform/network/cf/FormDataStreamCFNet.h: Added.
417         * platform/network/cf/ResourceHandleCFNet.cpp:
418         (WebCore::willSendRequest): implemented
419         (WebCore::ResourceHandle::start): use new ResourceRequest stuff
420         * platform/network/cf/ResourceResponseCFNet.cpp:
421         (WebCore::getResourceResponse): do nothing for a null response
422         * platform/network/mac/ResourceHandleMac.mm:
423         (WebCore::ResourceHandle::willSendRequest): Implemented; dispatch to client.
424         * platform/network/mac/ResourceRequestMac.h: Added.
425         * platform/network/mac/ResourceRequestMac.mm: Added.
426         (WebCore::getResourceRequest): Added way to convert an NSURLRequest
427         to a ResourceRequest.
428         (WebCore::nsURLRequest): Opposite of the above.
429         * platform/network/cf/ResourceRequestCFNet.h: Added.
430         * platform/network/cf/ResourceRequestCFNet.cpp: Added.
431         (WebCore::getResourceRequest): Added way to convert an CFURLRequest
432         to a ResourceRequest.
433         (WebCore::cfURLRequest): Opposite of the above.
434         * xml/xmlhttprequest.cpp:
435         (WebCore::XMLHttpRequest::willSendRequest): Renamed from receivedRedirect,
436         adjusted.
437         * xml/xmlhttprequest.h:
438
439 2006-11-04  Darin Adler  <darin@apple.com>
440
441         Change suggested by Mitz.
442
443         - fix http://bugs.webkit.org/show_bug.cgi?id=11514
444           REGRESSION (r17438): Repro crash when opening a web archive
445
446         * bridge/mac/WebCorePageState.mm:
447         (-[WebCorePageState dealloc]): Add null check.
448         (-[WebCorePageState finalize]): Ditto.
449
450 2006-11-04  Bertrand Guiheneuf <guiheneuf@gmail.com>
451
452         Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
453
454         http://bugs.webkit.org/show_bug.cgi?id=11433
455         Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
456
457         * WebCore.vcproj/WebCore/WebCore.vcproj:
458         Added platform/graphics platform/network and platform/network/win to headers search paths
459         Created platform/graphics and platform/network filters in hierarchy
460         Moved GraphicsContext and GraphicsTypes to their respective filters
461         Added EditorClient.h
462         Added FrameLoader* files in loader/
463         Added HitTest* files in rendering/
464         Added Editor.* files in editing/
465         Added DeleteButton.* and DeleteButtonController.* in editing/
466
467         * bridge/win/ChromeClientWin.h: Added.
468         (WebCore::ChromeClientWin::~ChromeClientWin):
469         * bridge/win/EditorClientWin.h: Added.
470         (WebCore::EditorClientWin::~EditorClientWin):
471
472         * bridge/win/FrameWin.cpp:
473         (WebCore::FrameWin::FrameWin):
474         (WebCore::FrameWin::urlSelected):
475         (WebCore::FrameWin::submitForm):
476         (WebCore::FrameWin::createNewWindow):
477         * bridge/win/FrameWin.h:
478         Added EditorClient parameter to constructor
479         Replace usage of FrameLoadRequest::m_request with FrameLoadRequest::resourceRequest()
480         Removed openURL() and openURLRequest from class definition
481
482         * bridge/win/PageWin.cpp:
483         * platform/AffineTransform.h:
484         * platform/cairo/AffineTransformCairo.cpp: Added.
485         (WebCore::AffineTransform::AffineTransform):
486         (WebCore::AffineTransform::setMatrix):
487         (WebCore::AffineTransform::map):
488         (WebCore::AffineTransform::mapRect):
489         (WebCore::AffineTransform::isIdentity):
490         (WebCore::AffineTransform::m11):
491         (WebCore::AffineTransform::m12):
492         (WebCore::AffineTransform::m21):
493         (WebCore::AffineTransform::m22):
494         (WebCore::AffineTransform::dx):
495         (WebCore::AffineTransform::dy):
496         (WebCore::AffineTransform::reset):
497         (WebCore::AffineTransform::scale):
498         (WebCore::AffineTransform::rotate):
499         (WebCore::AffineTransform::translate):
500         (WebCore::AffineTransform::shear):
501         (WebCore::AffineTransform::det):
502         (WebCore::AffineTransform::invert):
503         (WebCore::AffineTransform::operator cairo_matrix_t):
504         (WebCore::AffineTransform::operator== ):
505         (WebCore::AffineTransform::operator*= ):
506         (WebCore::AffineTransform::operator* ):
507         * platform/cairo/GraphicsContextCairo.cpp:
508         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
509         * platform/network/win/ResourceHandleWin.cpp:
510         (WebCore::ResourceHandle::onHandleCreated):
511         (WebCore::ResourceHandle::start):
512         (WebCore::ResourceHandle::fileLoadTimer):
513         (WebCore::ResourceHandle::cancel):
514         * platform/win/TemporaryLinkStubs.cpp:
515         (WebCore::FrameWin::goBackOrForward):
516         (WebCore::FrameWin::getHistoryLength):
517         (WebCore::FrameWin::historyURL):
518         (WebCore::ServeSynchronousRequest):
519         (WebCore::ChromeClientWin::canRunModal):
520         (WebCore::ChromeClientWin::runModal):
521         (WebCore::EditorClientWin::shouldDeleteRange):
522         (WebCore::EditorClientWin::shouldShowDeleteInterface):
523         (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
524         (WebCore::EditorClientWin::isGrammarCheckingEnabled):
525         (WebCore::EditorClientWin::spellCheckerDocumentTag):
526         (WebCore::Path::transform):
527         (WebCore::PopupMenu::updateFromElement):
528         (WebCore::ResourceLoader::loadsBlocked):
529         (WebCore::systemBeep):
530         * rendering/RenderThemeWin.cpp:
531         (WebCore::RenderThemeWin::paintButton):
532         (WebCore::RenderThemeWin::paintTextField):
533
534 2006-11-04  Alexey Proskuryakov  <ap@nypop.com>
535
536         Reviewed by Maciej.
537
538         http://bugs.webkit.org/show_bug.cgi?id=11448
539         &lang; and &rang; entities are mapped to the incorrect Unicode codepoint
540
541         * html/HTMLEntityNames.gperf: Use canonical Unicode equivalents for these characters.
542
543 2006-11-03  Mark Rowe  <bdash@webkit.org>
544
545         Reviewed by Oliver.
546
547         Update Windows and Qt project files for file removals in r17585.
548
549         * CMakeLists.txt:
550         * WebCore.vcproj/WebCore/WebCore.vcproj:
551
552 2006-11-03  Zack Rusin  <zack@kde.org>
553
554         Reviewed by Maciej.
555
556         The patch fixes text field drawing on the Qt platform.
557
558         * platform/qt/RenderThemeQt.cpp:
559         (WebCore::RenderThemeQt::paintTextField): Use the style to correctly
560         render the text field
561
562 2006-11-03  Oliver Hunt  <oliver@apple.com>
563
564         Reviewed by Tim.
565
566         Correct incorrect call to SetCursor
567
568         * rendering/RenderFrameSet.cpp:
569         (WebCore::RenderFrameSet::userResize):
570
571 2006-11-03  Adele Peterson  <adele@apple.com>
572
573         Reviewed by Oliver.
574
575         Removed DeprecatedRenderSelect and ListBox classes.
576
577         * WebCore.xcodeproj/project.pbxproj:
578         * css/html4.css:
579         * html/HTMLOptionElement.h:
580         * html/HTMLSelectElement.cpp:
581         (WebCore::HTMLSelectElement::recalcStyle):
582         (WebCore::HTMLSelectElement::isKeyboardFocusable):
583         (WebCore::HTMLSelectElement::isMouseFocusable):
584         (WebCore::HTMLSelectElement::createRenderer):
585         (WebCore::HTMLSelectElement::setRecalcListItems):
586         (WebCore::HTMLSelectElement::notifyOptionSelected):
587         (WebCore::HTMLSelectElement::defaultEventHandler):
588         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
589         (WebCore::HTMLSelectElement::updateListBoxSelection):
590         * html/HTMLSelectElement.h:
591         * platform/ListBox.h: Removed.
592         * platform/mac/FontCacheMac.mm:
593         * platform/mac/ListBoxMac.mm: Removed.
594         * platform/win/TemporaryLinkStubs.cpp:
595         * rendering/DeprecatedRenderSelect.cpp: Removed.
596         * rendering/DeprecatedRenderSelect.h: Removed.
597
598 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
599
600         Not reviewed, fix for accidental commit.
601
602         - rolled back more of the accidentall commit that I forgot.
603
604         * platform/network/mac/ResourceRequestMac.h: Removed.
605         * platform/network/mac/ResourceRequestMac.mm: Removed.
606
607 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
608
609         Not reviewed, fix for accidental commit.
610
611         - roll back some network changes accidentally committed with a previous patch.
612
613         * WebCore.xcodeproj/project.pbxproj:
614         * bridge/mac/WebCoreFrameBridge.mm:
615         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
616         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
617         * loader/CachedCSSStyleSheet.cpp:
618         (WebCore::CachedCSSStyleSheet::checkNotify):
619         * loader/CachedImage.cpp:
620         (WebCore::CachedImage::createImage):
621         * loader/CachedResource.cpp:
622         (WebCore::CachedResource::CachedResource):
623         (WebCore::CachedResource::~CachedResource):
624         (WebCore::CachedResource::setExpireDate):
625         (WebCore::CachedResource::isExpired):
626         * loader/CachedResource.h:
627         (WebCore::CachedResource::response):
628         * loader/LoaderFunctions.h:
629         * loader/loader.cpp:
630         (WebCore::Loader::receivedResponse):
631         (WebCore::Loader::didReceivedResponse):
632         * loader/loader.h:
633         * loader/mac/FormDataStream.h:
634         * loader/mac/FormDataStream.m:
635         (WebCore::formCreate):
636         (WebCore::formFinalize):
637         * loader/mac/ImageDocumentMac.mm:
638         (WebCore::finishImageLoad):
639         * loader/mac/LoaderFunctionsMac.mm:
640         (WebCore::CheckCacheObjectStatus):
641         (WebCore::CachedResource::setResponse):
642         * loader/mac/SubresourceLoaderMac.mm:
643         (WebCore::SubresourceLoader::willSendRequest):
644         * platform/network/ResourceHandle.h:
645         * platform/network/ResourceHandleClient.h:
646         (WebCore::ResourceHandleClient::receivedRedirect):
647         * platform/network/ResourceRequest.h:
648         * platform/network/ResourceResponse.h:
649         (WebCore::ResourceResponse::ResourceResponse):
650         * platform/network/mac/ResourceHandleMac.mm:
651         (WebCore::ResourceHandle::redirectedToURL):
652         * xml/xmlhttprequest.cpp:
653         (WebCore::XMLHttpRequest::receivedRedirect):
654         * xml/xmlhttprequest.h:
655
656 2006-11-03  Anders Carlsson  <acarlsson@apple.com>
657
658         Rubber-stamped by Oliver.
659
660         Remove these, they have been merged with SVGRenderTreeAsText.
661         
662         * rendering/SVGRenderAsText.cpp: Removed.
663         * rendering/SVGRenderAsText.h: Removed.
664
665 2006-11-03  Anders Carlsson  <acarlsson@apple.com>
666
667         Build fix.
668         
669         * platform/network/cf/ResourceHandleCFNet.cpp:
670         (WebCore::willSendRequest):
671
672 2006-11-02  Geoffrey Garen  <ggaren@apple.com>
673
674         Reviewed by Darin, Beth.
675         
676         First cut at factoring Page's UIDelegate-related functions into Chrome
677         and ChromeClient.
678
679         Layout tests pass.
680         
681         * bridge/mac/PageMac.mm: Removed platform-specific constructor, added
682         setBridge method to replace it.
683         (WebCore::Page::setBridge):
684
685         * bridge/mac/WebCorePageBridge.h: Simplified some things based on the fact
686         that WebCorePageBridge.h doesn't need to be included by ObjC-only files,
687         and, now that it uses PassRefPtr, can't be.
688         
689         * page/Chrome.cpp: Added. Code copied and converted to c++ from WebCorePageBridge.mm.
690
691         * page/Page.h:
692         (WebCore::Page::dragCaretController): Made this function non-const so that
693         m_dragCaretController doesn't have to be mutable.
694
695 2006-11-03  Alexey Proskuryakov  <ap@nypop.com>
696
697         Reviewed by Adele.
698
699         http://bugs.webkit.org/show_bug.cgi?id=7323
700         REGRESSION (10.4.4): ondrag* events don't fire on page in a frame
701
702         * bridge/mac/FrameMac.h: Moved drag source information to a static variable
703         in FrameMac.mm. There can be only one drag active at any moment, and having 
704         this information here was making sharing this information between 
705         subframes hard.
706
707         * bridge/mac/FrameMac.mm:
708         (WebCore::FrameMac::FrameMac): Initialize sharedDragInfo.
709         (WebCore::FrameMac::freeClipboard):
710         (WebCore::FrameMac::dragHysteresisExceeded):
711         (WebCore::FrameMac::handleMouseMoveEvent):
712         (WebCore::FrameMac::handleMouseReleaseEvent):
713         (WebCore::FrameMac::mouseDown):
714         (WebCore::FrameMac::dragSourceMovedTo):
715         (WebCore::FrameMac::dragSourceEndedAt):
716         (WebCore::FrameMac::dispatchDragSrcEvent):
717         Access drag source info via sharedDragInfo - this fixes drag source even dispatching.
718         Also removed some old code that was forwarding mouse events to subviews to make 
719         HTML editing work in subframes.
720
721         * page/FrameView.cpp:
722         (WebCore::FrameView::updateDragAndDrop):
723         (WebCore::FrameView::cancelDragAndDrop):
724         (WebCore::FrameView::performDragAndDrop):
725         Forward events to subframes for dispatching - this fixes drag target events.
726
727 2006-11-03  Zack Rusin  <zack@kde.org>
728
729         Reviewed by Tim.
730
731         Fixing compile.
732
733         * platform/qt/LoaderFunctionsQt.cpp:
734         (WebCore::CachedResource::setPlatformResponse): Renamed from setResponse
735
736 2006-11-01  Zack Rusin  <zack@kde.org>
737
738         Reviewed by Maciej.
739
740         Moving the word/sentence seperators into a file of their own
741         and implementing findWordBoundary.
742
743         * CMakeLists.txt:
744         * platform/qt/TemporaryLinkStubs.cpp:
745         * platform/qt/TextBoundaries.cpp: Added.
746         (WebCore::findNextSentenceFromIndex):
747         (WebCore::findSentenceBoundary):
748         (WebCore::findNextWordFromIndex):
749         (WebCore::findWordBoundary):
750
751 2006-11-03  Zack Rusin  <zack@kde.org>
752
753         Reviewed by Maciej.
754
755         Compile on both KDE and Qt platforms
756
757         * CMakeLists.txt: add zlib explicitly
758         * platform/network/qt/ResourceHandleManager.cpp:
759         (WebCore::ResourceHandleManager::self):
760         (WebCore::QtJob::QtJob):
761         (WebCore::QtJob::timerEvent): Integrate both implementations
762         so that moc can parse it
763         (WebCore::ResourceHandleManager::deliverJobData):
764         (WebCore::ResourceHandleManager::remove):
765         * platform/network/qt/ResourceHandleManager.h:
766
767 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
768
769         No review, suggested by Mitz.
770
771         - fix a #if to be #ifdef
772
773         * platform/graphics/svg/cg/SVGResourceImageCg.cpp:
774
775 2006-11-03  Zack Rusin  <zack@kde.org>
776
777         Reviewed and landed by Maciej.
778         
779         Compile on the Qt platform.
780
781         * ksvg2/misc/KCanvasRenderingStyle.h:
782         * platform/qt/RenderThemeQt.cpp:
783         (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
784
785 2006-11-03  Zack Rusin  <zack@kde.org>
786
787         Reviewed by Hyatt. Landed by Maciej.
788
789         Adding setPlatformPen/setPlatformFont/setPlatformFillColor
790         to graphics context to be able to set consistant state
791         on the platform specific painter without having to change
792         fill/stroke/font on every operation. This fixes color/stroke/fill
793         and font handling in the Qt port.
794
795         * platform/graphics/GraphicsContext.cpp:
796         (WebCore::GraphicsContext::setFont):
797         (WebCore::GraphicsContext::setPen):
798         (WebCore::GraphicsContext::setFillColor):
799         (WebCore::GraphicsContext::setPlatformPen):
800         (WebCore::GraphicsContext::setPlatformFillColor):
801         (WebCore::GraphicsContext::setPlatformFont):
802         * platform/graphics/GraphicsContext.h:
803         * platform/qt/GraphicsContextQt.cpp:
804         (WebCore::toQtCompositionMode):
805         (WebCore::toQtLineCap):
806         (WebCore::toQtLineJoin):
807         (WebCore::toQPenStyle):
808         (WebCore::penToQPen):
809         (WebCore::TransparencyLayer::TransparencyLayer):
810         (WebCore::GraphicsContext::addRoundedRectClip):
811         (WebCore::GraphicsContext::setPlatformFont):
812         (WebCore::GraphicsContext::setPlatformPen):
813         (WebCore::GraphicsContext::setPlatformFillColor):
814         * platform/qt/ScrollViewCanvasQt.cpp:
815         (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
816         (WebCore::ScrollViewCanvasQt::paintEvent):
817         (WebCore::ScrollViewCanvasQt::handleKeyEvent):
818         * platform/qt/ScrollViewCanvasQt.h:
819
820 2006-11-02  Adele Peterson  <adele@apple.com>
821
822         Reviewed by Anders.
823
824         - Fix for http://bugs.webkit.org/show_bug.cgi?id=9581
825         REGRESSION: The new NativeTextArea scrolls to the top when the control is unfocused.
826
827         Test: fast/forms/textarea-no-scroll-on-blur.html
828
829         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::forwardEvent):
830           On blur, only scroll back to the start for text fields.
831
832 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
833
834         Another build fix.
835         
836         * rendering/RenderFileUploadControl.cpp:
837         (WebCore::RenderFileUploadControl::paintObject):
838
839 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
840
841         Build fix.
842         
843         * page/FramePrivate.h:
844         (WebCore::FramePrivate::FramePrivate):
845
846 2006-11-02  Kevin Ollivier <kevino@theolliviers.com>
847
848         Reviewed by Geoff, landed by Anders.
849         
850         Fix dependency problems caused when running move-js-headers.sh
851         
852         * move-js-headers.sh:
853         Use cp -p instead of just cp so that the modification time
854         of the original files are used.
855
856 2006-11-02  Adam Roben  <aroben@apple.com>
857
858         Reviewed by Tim H, landed by Anders.
859
860         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10840
861         REGRESSION: Shadow of file upload button is clipped
862
863         * rendering/RenderFileUploadControl.cpp:
864         (WebCore::RenderFileUploadControl::paintObject): Add 2px to the clip
865         height to keep from clipping in the shadow
866
867 2006-11-02  Eike Preuss  <mail@eikepreuss.de>
868
869         Reviewed by Maciej, landed by Anders.
870
871         * platform/qt/ScrollViewQt.cpp: Fix translation of coordinates between
872         content and window. ScrollViewQt already receives correct content
873         coordinates from QScrollArea.
874         (WebCore::ScrollView::contentsToWindow):
875         (WebCore::ScrollView::windowToContents):
876
877 2006-11-02  Simon Hausmann  <hausmann@kde.org>
878
879         Reviewed by Maciej, landed by Anders
880
881         * CMakeLists.txt: Make linkage against KDE libraries conditional
882         * platform/network/qt/ResourceHandleManager.cpp: Added a simple
883           Qt base resource handler that supports only requests to the
884           local filesystem. Used when compiling without KDE support.
885           ResourceHandleManager.cpp/h are to be split up into ResourceHandleManagerKDE
886           and ResourceHandleManagerQt in the future, as well as QtJob.cpp/h.
887         (WebCore::QtJob::QtJob):
888         (WebCore::QtJob::timerEvent):
889         (WebCore::ResourceHandleManager::ResourceHandleManager):
890         (WebCore::ResourceHandleManager::~ResourceHandleManager):
891         (WebCore::ResourceHandleManager::self):
892         (WebCore::ResourceHandleManager::remove):
893         (WebCore::ResourceHandleManager::add):
894         (WebCore::ResourceHandleManager::cancel):
895         (WebCore::ResourceHandleManager::deliverJobData):
896         * platform/network/qt/ResourceHandleManager.h:
897         * platform/qt/FrameQtClient.cpp:
898         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
899         (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
900         (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
901         * platform/qt/LoaderFunctionsQt.cpp: Use the Qt messagebox and
902           input dialog functions when compiling without KDE support
903         (WebCore::ServeSynchronousRequest):
904
905 2006-11-02  David Carson  <dacarson@gmail.com>
906
907         Reviewed by Geoff, landed by Anders.
908
909         Fix for: http://bugs.webkit.org/show_bug.cgi?id=11471
910         Initializing variable in constructor.
911
912         * page/FramePrivate.h:
913         (WebCore::FramePrivate::FramePrivate):
914
915 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
916
917         Reviewed by Geoff.
918
919         Use CFMutableURLRequestRef instead of CFHTTPMessageRef since not all URL requests are http requests.
920         
921         * platform/network/cf/ResourceHandleCFNet.cpp:
922         (WebCore::addHeadersFromHashMap):
923         Don't set all headers at once since that clears any previous headers set.
924         
925         (WebCore::ResourceHandle::start):
926
927 2006-11-02  Adele Peterson  <adele@apple.com>
928
929         Reviewed by Mitz and Geoff.
930
931         - Fix for:
932         <rdar://problem/4650271> REGRESSION(NativeTextArea): Textareas don't get scrollbars when text gets too big for content area (10105)
933         <rdar://problem/4650813> REGRESSION(tiger-leopard): typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
934         <rdar://problem/4658779> REGRESSION: Text selection is weird in textareas in Trac wiki editing pages
935
936         Test: fast/forms/textarea-scrollbar.html
937
938         To avoid some of our flexbox bugs for textareas, we're moving the text controls back to RenderBlock.  This should make them
939         a lot more stable.  In the future, when we've worked out more of the flexbox kinks, we may want to consider moving them back.
940
941         * rendering/RenderTextControl.h: Convert text controls back to RenderBlock instead of RenderFlexibleBox.
942         * rendering/RenderTextControl.cpp: 
943         (WebCore::RenderTextControl::RenderTextControl):
944         (WebCore::RenderTextControl::setStyle):
945         (WebCore::RenderTextControl::createDivStyle):
946         (WebCore::RenderTextControl::updateFromElement):
947         (WebCore::RenderTextControl::calcHeight):
948         (WebCore::RenderTextControl::baselinePosition):
949         (WebCore::RenderTextControl::nodeAtPoint):
950         (WebCore::RenderTextControl::layout): Set the inner div's height explicitly before doing a normal layout.
951         (WebCore::RenderTextControl::scrollWidth):
952         (WebCore::RenderTextControl::scrollHeight):
953         (WebCore::RenderTextControl::scrollLeft):
954         (WebCore::RenderTextControl::scrollTop):
955
956         * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout): Make subtree layout optimization work for textareas.
957
958 2006-11-02  John Sullivan  <sullivan@apple.com>
959
960         Reviewed by Geoff Garen
961
962         * editing/Selection.cpp:
963         (WebCore::Selection::showTreeForThis):
964         this debugging method now displays start offset and end offset, at Darin's suggestion
965
966 2006-11-01  Justin Garcia  <justin.garcia@apple.com>
967
968         Reviewed by darin
969
970         <rdar://problem/4062865>
971         Copy/paste of a select element fails to include the options
972         
973         * editing/SelectionController.cpp:
974         (WebCore::SelectionController::modify): Added paragraphBoundary.
975         * editing/htmlediting.cpp:
976         (WebCore::canHaveChildrenForEditing): Added checks for input elements
977         and textareas.  Insertion operations would fail when performed just 
978         before/after one of these elements b/c the content would be put inside 
979         the element.
980         (WebCore::enclosingNodeWithTag): Fixed a problem when calling these in non
981         editable content, and made the code to stop at an root faster (don't check
982         isDescendantOf on every iteration).
983         (WebCore::enclosingNodeOfType): Ditto.
984         (WebCore::enclosingList): Ditto.
985         (WebCore::enclosingListChild): Ditto.  Added a FIXME, this function seems
986         inappropriately named.
987         * editing/markup.cpp:
988         (WebCore::startMarkup): Use the text node's value instead of its rendered
989         content for text nodes inside select elements.  One might also turn off
990         annotation when createMarkup enters a select element, but createMarkup
991         is iterative, not recursive, so doing so would be complicated.
992         (WebCore::createMarkup): Add markup for unrendered nodes if they are 
993         descendants of a select element.
994         * editing/visible_units.cpp:
995         (WebCore::startOfParagraph): Migrate to isBlock/enclosingBlock.  Fixes bug
996         where various replaced elements can't be copied when they are the only
997         thing selected.
998         (WebCore::endOfParagraph): Ditto.
999
1000 2006-11-01  Oliver Hunt  <oliver@apple.com>
1001
1002         Reviewed by Adam.
1003
1004         Converting more or kcanvas/quartz from Obj-C to C++
1005         Minor SVG updates
1006         compatibility fixes
1007
1008         * WebCore.xcodeproj/project.pbxproj:
1009         * kcanvas/device/KRenderingPaintServer.h:
1010         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.cpp: Added.
1011         (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
1012         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm: Removed.
1013         * kcanvas/device/quartz/KRenderingPaintServerQuartz.cpp: Added.
1014         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm: Removed.
1015         * kcanvas/device/quartz/QuartzSupport.h:
1016         * ksvg2/css/SVGCSSStyleSelector.cpp:
1017         * ksvg2/misc/KCanvasRenderingStyle.h:
1018         * ksvg2/scripts/cssmakeprops:
1019         * ksvg2/scripts/cssmakevalues:
1020         * ksvg2/scripts/make_names.pl:
1021         * ksvg2/svg/SVGAnimateColorElement.cpp:
1022         * ksvg2/svg/SVGAnimateTransformElement.cpp:
1023         * ksvg2/svg/SVGAnimationElement.cpp:
1024         * ksvg2/svg/SVGMaskElement.cpp:
1025         * ksvg2/svg/SVGPatternElement.cpp:
1026         * ksvg2/svg/svgpathparser.cpp:
1027         * platform/Path.cpp:
1028         * platform/graphics/svg/SVGResourceImage.h:
1029         * rendering/RenderPath.cpp:
1030         * rendering/SVGRenderAsText.cpp:
1031
1032 2006-11-02  Mitz Pettel  <mitz@webkit.org>
1033
1034         Reviewed by Adele.
1035
1036         - Fix a regression from r17521: painting of and crash caused by tables
1037           with collapsed borders
1038
1039         * rendering/RenderTable.cpp:
1040         (WebCore::RenderTable::paint): Changed 'paintInfo' to 'info'. Prior to
1041         r17521, 'paintInfo' was the local variable. Now 'info' is the local variable
1042         and 'paintInfo' is the parameter, which we were accidently modifying.
1043
1044 2006-11-01  Adele Peterson  <adele@apple.com>
1045
1046         Reviewed by Mitz.
1047
1048         - Fix for http://bugs.webkit.org/show_bug.cgi?id=11277
1049         REGRESSION: Incomplete repaint of overflow areas when deleting
1050
1051         Restrict the repaint rect for overflow blocks after the height has been fully computed.
1052         Also, adjust the repaint rect coordinates for the scroll offset.
1053
1054         * rendering/RenderBlock.cpp: (WebCore::RenderBlock::layoutBlock):
1055         * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren):
1056
1057 2006-11-01  Sam Weinig  <sam.weinig@gmail.com>
1058
1059         Reviewed by Mitz.
1060
1061         Fix for http://bugs.webkit.org/show_bug.cgi?id=11474
1062         Rename the "p" member variable of the PaintInfo struct to "context"
1063
1064         - Renames the 'p' and 'r' member variables of the PaintInfo struct to
1065           'context' and 'rect' respectively.
1066
1067         - Assorted surrounding cleanups.
1068
1069         * rendering/EllipsisBox.cpp:
1070         (WebCore::EllipsisBox::paint):
1071         * rendering/EllipsisBox.h:
1072         * rendering/InlineBox.cpp:
1073         (WebCore::InlineBox::paint):
1074         * rendering/InlineFlowBox.cpp:
1075         (WebCore::InlineFlowBox::paint):
1076         (WebCore::InlineFlowBox::paintBackground):
1077         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
1078         (WebCore::InlineFlowBox::paintDecorations):
1079         * rendering/InlineFlowBox.h:
1080         * rendering/InlineRunBox.h:
1081         * rendering/InlineTextBox.cpp:
1082         (WebCore::InlineTextBox::paint):
1083         * rendering/InlineTextBox.h:
1084         * rendering/RenderBlock.cpp:
1085         (WebCore::RenderBlock::paint):
1086         (WebCore::RenderBlock::paintChildren):
1087         (WebCore::RenderBlock::paintCaret):
1088         (WebCore::RenderBlock::paintObject):
1089         (WebCore::RenderBlock::paintFloats):
1090         (WebCore::RenderBlock::paintEllipsisBoxes):
1091         (WebCore::RenderBlock::paintSelection):
1092         (WebCore::RenderBlock::fillSelectionGaps):
1093         (WebCore::RenderBlock::fillInlineSelectionGaps):
1094         (WebCore::RenderBlock::fillBlockSelectionGaps):
1095         (WebCore::RenderBlock::fillHorizontalSelectionGap):
1096         (WebCore::RenderBlock::fillVerticalSelectionGap):
1097         (WebCore::RenderBlock::fillLeftSelectionGap):
1098         (WebCore::RenderBlock::fillRightSelectionGap):
1099         * rendering/RenderBox.cpp:
1100         (WebCore::RenderBox::paint):
1101         (WebCore::RenderBox::paintRootBoxDecorations):
1102         (WebCore::RenderBox::paintBoxDecorations):
1103         * rendering/RenderBox.h:
1104         * rendering/RenderButton.cpp:
1105         (WebCore::RenderButton::paintObject):
1106         * rendering/RenderFieldset.cpp:
1107         (WebCore::RenderFieldset::paintBoxDecorations):
1108         * rendering/RenderFileUploadControl.cpp:
1109         (WebCore::RenderFileUploadControl::paintObject):
1110         * rendering/RenderFlow.cpp:
1111         (WebCore::RenderFlow::continuationBefore):
1112         (WebCore::RenderFlow::addChildWithContinuation):
1113         (WebCore::RenderFlow::addChild):
1114         (WebCore::RenderFlow::attachLineBox):
1115         (WebCore::RenderFlow::destroy):
1116         (WebCore::RenderFlow::dirtyLinesFromChangedChild):
1117         (WebCore::RenderFlow::dirtyLineBoxes):
1118         (WebCore::RenderFlow::createInlineBox):
1119         (WebCore::RenderFlow::paintLines):
1120         (WebCore::RenderFlow::getAbsoluteRepaintRect):
1121         (WebCore::RenderFlow::lowestPosition):
1122         (WebCore::RenderFlow::rightmostPosition):
1123         (WebCore::RenderFlow::leftmostPosition):
1124         (WebCore::RenderFlow::caretRect):
1125         (WebCore::RenderFlow::addFocusRingRects):
1126         (WebCore::RenderFlow::paintOutline):
1127         (WebCore::RenderFlow::paintOutlineForLine):
1128         * rendering/RenderForeignObject.cpp:
1129         (WebCore::RenderForeignObject::paint):
1130         * rendering/RenderHTMLCanvas.cpp:
1131         (WebCore::RenderHTMLCanvas::paint):
1132         * rendering/RenderImage.cpp:
1133         (WebCore::RenderImage::paint):
1134         * rendering/RenderLayer.cpp:
1135         (WebCore::RenderLayer::paintLayer):
1136         * rendering/RenderListBox.cpp:
1137         (WebCore::RenderListBox::paintObject):
1138         (WebCore::RenderListBox::paintScrollbar):
1139         (WebCore::RenderListBox::paintItemForeground):
1140         (WebCore::RenderListBox::paintItemBackground):
1141         * rendering/RenderListMarker.cpp:
1142         (WebCore::RenderListMarker::paint):
1143         * rendering/RenderMenuList.cpp:
1144         (WebCore::RenderMenuList::paintObject):
1145         * rendering/RenderObject.cpp:
1146         (WebCore::RenderObject::paint):
1147         * rendering/RenderObject.h:
1148         (WebCore::RenderObject::PaintInfo::PaintInfo):
1149         (WebCore::RenderObject::paintBoxDecorations):
1150         (WebCore::RenderObject::paintingRootForChildren):
1151         (WebCore::RenderObject::shouldPaintWithinRoot):
1152         (WebCore::RenderObject::printBoxDecorations):
1153         * rendering/RenderPath.cpp:
1154         (WebCore::RenderPath::paint):
1155         * rendering/RenderReplaced.cpp:
1156         (WebCore::RenderReplaced::shouldPaint):
1157         * rendering/RenderSVGContainer.cpp:
1158         (WebCore::RenderSVGContainer::paint):
1159         * rendering/RenderSVGContainer.h:
1160         * rendering/RenderSVGImage.cpp:
1161         (WebCore::RenderSVGImage::paint):
1162         * rendering/RenderSVGText.cpp:
1163         (WebCore::RenderSVGText::paint):
1164         * rendering/RenderSVGText.h:
1165         (WebCore::RenderSVGText::renderName):
1166         * rendering/RenderTable.cpp:
1167         (WebCore::RenderTable::paint):
1168         (WebCore::RenderTable::paintBoxDecorations):
1169         * rendering/RenderTable.h:
1170         * rendering/RenderTableCell.cpp:
1171         (WebCore::RenderTableCell::paint):
1172         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
1173         (WebCore::RenderTableCell::paintBoxDecorations):
1174         * rendering/RenderTableCell.h:
1175         * rendering/RenderTableRow.cpp:
1176         (WebCore::RenderTableRow::paint):
1177         * rendering/RenderTableRow.h:
1178         * rendering/RenderTableSection.cpp:
1179         (WebCore::RenderTableSection::paint):
1180         * rendering/RenderTableSection.h:
1181         (WebCore::RenderTableSection::getBaseline):
1182         (WebCore::RenderTableSection::setNeedCellRecalc):
1183         * rendering/RenderText.h:
1184         (WebCore::RenderText::renderName):
1185         (WebCore::RenderText::paint):
1186         (WebCore::RenderText::element):
1187         * rendering/RenderTheme.cpp:
1188         (WebCore::RenderTheme::paint):
1189         (WebCore::RenderTheme::paintBorderOnly):
1190         (WebCore::RenderTheme::paintDecorations):
1191         * rendering/RenderTheme.h:
1192         (WebCore::RenderTheme::RenderTheme):
1193         (WebCore::RenderTheme::~RenderTheme):
1194         (WebCore::RenderTheme::controlSupportsTints):
1195         (WebCore::RenderTheme::adjustRepaintRect):
1196         (WebCore::RenderTheme::themeChanged):
1197         (WebCore::RenderTheme::supportsHover):
1198         (WebCore::RenderTheme::paintCheckbox):
1199         (WebCore::RenderTheme::setCheckboxSize):
1200         (WebCore::RenderTheme::paintRadio):
1201         (WebCore::RenderTheme::setRadioSize):
1202         (WebCore::RenderTheme::paintButton):
1203         (WebCore::RenderTheme::setButtonSize):
1204         (WebCore::RenderTheme::paintTextField):
1205         (WebCore::RenderTheme::paintTextArea):
1206         (WebCore::RenderTheme::paintMenuList):
1207         (WebCore::RenderTheme::paintMenuListButton):
1208         * rendering/RenderThemeMac.mm:
1209         (WebCore::RenderThemeMac::paintCheckbox):
1210         (WebCore::RenderThemeMac::paintRadio):
1211         (WebCore::RenderThemeMac::paintButton):
1212         (WebCore::RenderThemeMac::paintTextField):
1213         (WebCore::RenderThemeMac::paintTextArea):
1214         (WebCore::RenderThemeMac::paintMenuList):
1215         (WebCore::RenderThemeMac::paintMenuListButtonGradients):
1216         (WebCore::RenderThemeMac::paintMenuListButton):
1217         * rendering/RenderView.cpp:
1218         (WebCore::RenderView::paint):
1219         (WebCore::RenderView::paintBoxDecorations):
1220         * rendering/RenderView.h:
1221         * rendering/RenderWidget.cpp:
1222         (WebCore::RenderWidget::paint):
1223         * rendering/RenderWidget.h:
1224         (WebCore::RenderWidget::isWidget):
1225         * rendering/RootInlineBox.cpp:
1226         (WebCore::RootInlineBox::paintEllipsisBox):
1227         (WebCore::RootInlineBox::paintCustomHighlight):
1228         (WebCore::RootInlineBox::paint):
1229         (WebCore::RootInlineBox::fillLineSelectionGap):
1230         * rendering/RootInlineBox.h:
1231         * rendering/SVGInlineFlowBox.cpp:
1232         (WebCore::paintSVGInlineFlow):
1233
1234 2006-11-01  Anders Carlsson  <acarlsson@apple.com>
1235
1236         Reviewed by Oliver, Brady.
1237
1238         * platform/network/ResourceResponse.h:
1239         (WebCore::ResourceResponse::setLastModifiedDate):
1240         (WebCore::ResourceResponse::lastModifiedDate):
1241         Add getters and setters for last modified dadte.
1242         
1243         * platform/network/cf/ResourceResponseCFNet.cpp:
1244         (WebCore::getResourceResponse):
1245         Fetch the last modified date. Add correct offset to expired date.
1246
1247 2006-11-01  David Kilzer  <ddkilzer@kilzer.net>
1248
1249         Reviewed by Mitz.
1250
1251         Added missing "break;" statement in switch statement from r17493.
1252
1253         Bug 11442: [CSS 3] support for cursor: all-scroll
1254         http://bugs.webkit.org/show_bug.cgi?id=11442
1255
1256         * css/CSSComputedStyleDeclaration.cpp:
1257         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1258
1259 2006-10-31  Mitz Pettel  <mitz@webkit.org>
1260
1261         Reviewed by Maciej.
1262
1263         - fix image dragging
1264
1265         This is covered by editing/selection/drag-to-contenteditable-iframe.html
1266
1267         * rendering/HitTestResult.cpp:
1268         (WebCore::HitTestResult::altDisplayString): Changed imageTag to imgTag, for
1269         HTML IMG elements.
1270         (WebCore::HitTestResult::absoluteImageURL): Ditto.
1271
1272 2006-10-31  Beth Dakin  <bdakin@apple.com>
1273
1274         Reviewed by Maciej.
1275
1276         This adds the back-end of the remaining WebElementDictionary 
1277         functions into HitTestResult.
1278
1279         * WebCore.exp:
1280         * rendering/HitTestResult.cpp:
1281         (WebCore::HitTestResult::title):
1282         (WebCore::displayString): This is nearly identical to the 
1283         displayString() defined in DOMInternal.mm except that it returns a 
1284         String instead of an NSString. The old code path used the 
1285         DOMInternal method, so I made a new one here for the new code path.
1286         (WebCore::HitTestResult::altDisplayString):
1287         (WebCore::HitTestResult::image):
1288         (WebCore::HitTestResult::absoluteImageURL):
1289         (WebCore::HitTestResult::absoluteLinkURL):
1290         (WebCore::HitTestResult::titleDisplayString):
1291         (WebCore::HitTestResult::textContent):
1292         * rendering/HitTestResult.h:
1293
1294 2006-10-31  John Sullivan  <sullivan@apple.com>
1295
1296         * bridge/mac/FrameMac.mm:
1297         (WebCore::FrameMac::markMisspellings):
1298         Tiger build fix: added an #ifndef BUILDING_ON_TIGER where one was needed.
1299
1300 2006-10-31  John Sullivan  <sullivan@apple.com>
1301
1302         Reviewed by Maciej
1303         
1304         - fixed <rdar://problem/4804627> ToolTips do not appear for grammar suggestions
1305         
1306         The foundation of this was in my last checkin. This checkin is all about displaying
1307         the correct string in the toolTip.
1308
1309         * dom/DocumentMarker.h:
1310         New description field in this struct.
1311
1312         * bridge/mac/FrameMac.mm:
1313         (WebCore::FrameMac::advanceToNextMisspelling):
1314         When adding a grammar marker, supply the appropriate description. Also, added a comment
1315         about the remaining work to make grammar checking return sensible answers.
1316         (WebCore::FrameMac::markMisspellings):
1317         ditto (yes, still needs some refactoring to minimize duplicated code)
1318         
1319         * dom/Document.h:
1320         * dom/Document.cpp:
1321         (WebCore::Document::addMarker):
1322         Now takes an optional description string
1323         (WebCore::Document::markerContainingPoint):
1324         New function, returns a pointer to the (first) marker of the specified type whose rect 
1325         contains the specified point, or 0 if none.
1326         
1327         * rendering/HitTestResult.cpp:
1328         (WebCore::HitTestResult::spellingToolTip):
1329         Replaced hardwired string placeholder implementation with code that uses markerContainingPoint
1330         and gets the description from the marker.
1331
1332 2006-10-31  Geoffrey Garen  <ggaren@apple.com>
1333
1334         Reviewed by Maciej.
1335         
1336         Fixed crash resulting from Darin's last patch to remove BrowserExtension.
1337
1338         * loader/mac/FrameLoaderMac.mm:
1339         (WebCore::FrameLoader::createWindow):
1340         * manual-tests/window-open-features-parsing.html: Updated for clarity.
1341
1342 2006-10-31  Geoffrey Garen  <ggaren@apple.com>
1343
1344         Reviewed by Alice.
1345
1346         Moved some Editing code from WebKit, the bridge, and WebCore::Frame down 
1347         to WebCore::Editor.
1348         
1349         Layout tests pass.
1350         
1351         Renamed "may*" to "can*" because "can" is more accurate (these functions
1352         aren't just about permission) and it matches WebKit.
1353
1354         (WebCore::FrameMac::handleMouseMoveEvent): Directly test for dragging in a 
1355         password field. Now that WebCore fully implements canCopy(), it doesn't just
1356         mean "the selection is not in a password field" anymore.
1357         (-[WebCoreFrameBridge _shouldAllowAccessFrom:]): Removed this #ifed-out code. 
1358         The fact that it's not called anymore may represent a security issue, but I
1359         don't see how commented-out code will help reveal the issue, and the
1360         bridge is going away, anyway.
1361         * editing/SelectionController.h: Changed selection() calls to references
1362         to m_sel, to match the rest of the file.
1363
1364 2006-10-31  Justin Garcia  <justin.garcia@apple.com>
1365
1366         Reviewed by harrison
1367         
1368         <rdar://problem/4711063>
1369         Pasting 10K lines into Mail/Blot takes ~7sec, in TextEdit it takes ~1.5sec
1370
1371         * editing/ReplaceSelectionCommand.cpp:
1372         (WebCore::ReplacementFragment::ReplacementFragment): Don't do the test
1373         insertion and plain text string creation unless we need the string
1374         for a BeforeTextInserted event handler or for a plain text only region.
1375         (WebCore::ReplacementFragment::removeInterchangeNodes): Added, moved
1376         code here from ReplacementFragment's constructor.
1377         (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): Added a
1378         FIXME.
1379         * editing/ReplaceSelectionCommand.h:
1380
1381 2006-10-31  Ada Chan  <adachan@apple.com>
1382
1383         Reviewed by Adam
1384
1385         Correct forward declarations of the HitTestRequest struct.
1386
1387         * rendering/EllipsisBox.h:
1388         * rendering/InlineBox.h:
1389         * rendering/InlineFlowBox.h:
1390         * rendering/RenderLayer.h:
1391         * rendering/RenderObject.h:
1392
1393 2006-10-31  John Sullivan  <sullivan@apple.com>
1394
1395         Reviewed by Beth and Adam
1396
1397         Support for displaying tooltips for bad grammar. Currently this always displays the same tooltip; 
1398         next I'll make it use a string that's relevant for a specific grammar error.
1399
1400         * WebCore.exp:
1401         export symbol for spellingToolTip function
1402         
1403         * rendering/HitTestResult.h:
1404         * rendering/HitTestResult.cpp:
1405         (WebCore::HitTestResult::spellingToolTip):
1406         new function, returns the string to be used in a tool tip that describes the questionable grammar
1407         
1408         * rendering/InlineTextBox.h:
1409         * rendering/InlineTextBox.cpp:
1410         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
1411         now takes a style and font, needed to compute the rect representing the range containing
1412         questionable grammar. Computes the rect and associates it with the marker.
1413         (WebCore::InlineTextBox::paintDocumentMarkers):
1414         Pass in the style and font now needed by paintSpellingOrGrammarMarker
1415
1416 2006-10-31  Adele Peterson  <adele@apple.com>
1417
1418         Removed commented out variable from last checkin.
1419
1420         * html/HTMLSelectElement.cpp:
1421         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
1422
1423 2006-10-31  Brady Eidson  <beidson@apple.com>
1424
1425         Build fix (unused variable in release builds)
1426
1427         * html/HTMLSelectElement.cpp:
1428         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
1429
1430 2006-10-31  Adele Peterson  <adele@apple.com>
1431
1432         Reviewed by Adam.
1433
1434         - Fix for http://bugs.webkit.org/show_bug.cgi?id=11127 NativeListBox: arrow and drag selection should pivot around one list item
1435         and http://bugs.webkit.org/show_bug.cgi?id=11173 REGRESSION (NativeListBox): Shift-clicking items in list box doesn't expand the current selection
1436         and http://bugs.webkit.org/show_bug.cgi?id=11417 REGRESSION: onchange does not fire for list-style select elements
1437
1438         Tests: 
1439         * LayoutTests/fast/forms/listbox-selection.html
1440         * LayoutTests/fast/forms/listbox-onchange.html
1441
1442         * html/HTMLSelectElement.h: Added m_selectedListIndexBase and m_selectedListIndexExtent to track indices for the active selection in progress.
1443           Added 2 vectors to cache selection state.  One is kept so that the previous selection state can be restored as the active selection grows and shrinks.
1444           And one for onChange, that is updated after onChange is fired.
1445           Added m_activeSelectionState to keep track of whether the current drag selection is selecting or deselecting.
1446  
1447         * html/HTMLSelectElement.cpp:
1448         (WebCore::HTMLSelectElement::HTMLSelectElement): Initialized new variables.
1449         (WebCore::HTMLSelectElement::setSelectedIndex): If needed, initialize m_selectedListIndexBase and m_selectedListIndexExtent.
1450         (WebCore::HTMLSelectElement::dispatchBlurEvent): Only fire the onChange event here for menu lists.
1451         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Updates base and extent variables for mouse and key events.
1452         (WebCore::HTMLSelectElement::setBase): Added. Also caches the selection state.
1453         (WebCore::HTMLSelectElement::setExtent): Added.
1454         (WebCore::HTMLSelectElement::updateListBoxSelection): Added.
1455         (WebCore::HTMLSelectElement::listBoxOnChange): Added.
1456
1457         * rendering/RenderListBox.cpp:
1458         (WebCore::RenderListBox::updateFromElement): Only scroll to reveal the first index if both the first and last indices aren't visible.
1459         (WebCore::RenderListBox::listIndexAtOffset): Added.  Replaces optionAtPoint, which is no longer used.
1460         (WebCore::RenderListBox::autoscroll): Now sets the selection using the select's base and extent.
1461         (WebCore::RenderListBox::stopAutoscroll): Added.  Tells the select element to fire onChange.  This is needed because the autoscroll can end from a mouseUp
1462          outside of the list box, and the select element won't get a mouseUp event directly.  But the frame will stop the autoscroll at that point, and now we can
1463          notify the select element from here.
1464         (WebCore::RenderListBox::scrollToRevealElementAtListIndex): Checks new listIndexIsVisible method.
1465         (WebCore::RenderListBox::listIndexIsVisible): Added.
1466         (WebCore::RenderListBox::valueChanged): Removed unnecessary printf.
1467
1468         * page/Frame.cpp: (WebCore::Frame::stopAutoscrollTimer): Added rendererIsBeingDestroyed argument, so when the renderer calls this during destruction, 
1469         we don't try to use the pointer to that renderer to call stopAutoscroll.  This is done so a renderer that's still alive has a chance to do some cleanup after autoscroll.
1470         * rendering/RenderListBox.h: (WebCore::RenderListBox::shouldAutoscroll): Always returns true now, since we're also updating selection from the autoscroll timer.
1471         * rendering/RenderObject.h: (WebCore::RenderObject::stopAutoscroll): Added.
1472         * rendering/RenderObject.cpp: (WebCore::RenderObject::destroy): Calls stopAutoscrollTimer with rendererIsBeingDestroyed argument.
1473
1474 2006-10-31  Beth Dakin  <bdakin@apple.com>
1475
1476         Forgot to check this in a minute ago. Oops!! Thanks Mitz!
1477
1478         * rendering/HitTestRequest.h: Added.
1479         (WebCore::HitTestRequest::HitTestRequest):
1480
1481 2006-10-31  Beth Dakin  <bdakin@apple.com>
1482
1483         Reviewed by Maciej.
1484
1485         Fix for http://bugs.webkit.org/show_bug.cgi?id=11461 HitTestResult 
1486         should be split into HitTestRequest and HitTestResult
1487
1488         This patch creates a new struct called HitTestRequest that holds 
1489         the three boolean values (readonly, active, and mouseMove) that 
1490         were formerly a part of HitTestResult. All hitTest() and 
1491         nodeAtPoint() functions now take a HitTestRequest in addition to 
1492         the HitTestResult.
1493
1494         * WebCore.exp:
1495         * WebCore.xcodeproj/project.pbxproj:
1496         * bridge/mac/FrameMac.mm:
1497         (WebCore::FrameMac::eventMayStartDrag):
1498         (WebCore::FrameMac::handleMouseMoveEvent):
1499         * bridge/mac/WebCoreAXObject.mm:
1500         (-[WebCoreAXObject doAXTextMarkerForPosition:]):
1501         (-[WebCoreAXObject accessibilityHitTest:]):
1502         * dom/Document.cpp:
1503         (WebCore::Document::elementFromPoint):
1504         (WebCore::Document::prepareMouseEvent):
1505         * editing/SelectionController.cpp:
1506         (WebCore::SelectionController::contains):
1507         * page/Frame.cpp:
1508         (WebCore::Frame::hitTestResultAtPoint):
1509         * page/FrameView.cpp:
1510         (WebCore::FrameView::handleWheelEvent):
1511         * rendering/EllipsisBox.cpp:
1512         (WebCore::EllipsisBox::nodeAtPoint):
1513         * rendering/EllipsisBox.h:
1514         * rendering/HitTestResult.cpp:
1515         (WebCore::HitTestResult::HitTestResult):
1516         (WebCore::HitTestResult::operator=):
1517         * rendering/HitTestResult.h:
1518         * rendering/InlineBox.cpp:
1519         (WebCore::InlineBox::nodeAtPoint):
1520         * rendering/InlineBox.h:
1521         * rendering/InlineFlowBox.cpp:
1522         (WebCore::InlineFlowBox::nodeAtPoint):
1523         * rendering/InlineFlowBox.h:
1524         * rendering/InlineTextBox.cpp:
1525         (WebCore::InlineTextBox::nodeAtPoint):
1526         * rendering/InlineTextBox.h:
1527         * rendering/RenderBlock.cpp:
1528         (WebCore::RenderBlock::nodeAtPoint):
1529         * rendering/RenderBlock.h:
1530         * rendering/RenderBox.cpp:
1531         (WebCore::RenderBox::nodeAtPoint):
1532         * rendering/RenderBox.h:
1533         * rendering/RenderFlow.cpp:
1534         (WebCore::RenderFlow::hitTestLines):
1535         * rendering/RenderFlow.h:
1536         * rendering/RenderForeignObject.cpp:
1537         (WebCore::RenderForeignObject::nodeAtPoint):
1538         * rendering/RenderForeignObject.h:
1539         * rendering/RenderFrameSet.cpp:
1540         (WebCore::RenderFrameSet::nodeAtPoint):
1541         * rendering/RenderFrameSet.h:
1542         * rendering/RenderImage.cpp:
1543         (WebCore::RenderImage::nodeAtPoint):
1544         * rendering/RenderImage.h:
1545         * rendering/RenderInline.cpp:
1546         (WebCore::RenderInline::nodeAtPoint):
1547         * rendering/RenderInline.h:
1548         * rendering/RenderLayer.cpp:
1549         (WebCore::RenderLayer::autoscroll):
1550         (WebCore::RenderLayer::hitTest):
1551         (WebCore::RenderLayer::hitTestLayer):
1552         (WebCore::RenderLayer::updateHoverActiveState):
1553         * rendering/RenderLayer.h:
1554         * rendering/RenderObject.cpp:
1555         (WebCore::RenderObject::hitTest):
1556         (WebCore::RenderObject::nodeAtPoint):
1557         * rendering/RenderObject.h:
1558         * rendering/RenderPath.cpp:
1559         (WebCore::RenderPath::nodeAtPoint):
1560         * rendering/RenderPath.h:
1561         * rendering/RenderSVGImage.cpp:
1562         (WebCore::RenderSVGImage::nodeAtPoint):
1563         * rendering/RenderSVGImage.h:
1564         * rendering/RenderSVGText.cpp:
1565         (WebCore::RenderSVGText::nodeAtPoint):
1566         * rendering/RenderSVGText.h:
1567         * rendering/RenderTableRow.cpp:
1568         (WebCore::RenderTableRow::nodeAtPoint):
1569         * rendering/RenderTableRow.h:
1570         * rendering/RenderTableSection.cpp:
1571         (WebCore::RenderTableSection::nodeAtPoint):
1572         * rendering/RenderTableSection.h:
1573         * rendering/RenderText.h:
1574         (WebCore::RenderText::nodeAtPoint):
1575         * rendering/RenderTextControl.cpp:
1576         (WebCore::RenderTextControl::nodeAtPoint):
1577         * rendering/RenderTextControl.h:
1578         * rendering/RootInlineBox.cpp:
1579         (WebCore::RootInlineBox::nodeAtPoint):
1580         * rendering/RootInlineBox.h:
1581
1582 2006-10-31  Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
1583
1584         Reviewed by Maciej.
1585
1586         Bug 11442: [CSS 3] support for cursor: all-scroll
1587         http://bugs.webkit.org/show_bug.cgi?id=11442
1588
1589         * css/CSSComputedStyleDeclaration.cpp:
1590         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1591         * css/CSSValueKeywords.in:
1592         * css/cssparser.cpp:
1593         (WebCore::CSSParser::parseValue):
1594         * page/FrameView.cpp:
1595         (WebCore::selectCursor):
1596         * rendering/RenderStyle.h:
1597
1598 2006-10-31  Oliver Hunt  <oliver@apple.com>
1599
1600         Reviewed by Geoff.
1601
1602         Converting Obj-C++ to C++ in kcanvas
1603
1604         * WebCore.xcodeproj/project.pbxproj:
1605         * kcanvas/device/quartz/KCanvasFilterQuartz.h:
1606         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1607         * kcanvas/device/quartz/KCanvasItemQuartz.cpp: Added.
1608         * kcanvas/device/quartz/KCanvasItemQuartz.mm: Removed.
1609         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp: Added.
1610         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
1611         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: Removed.
1612         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1613         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
1614         * kcanvas/device/quartz/QuartzSupport.cpp: Added.
1615         * kcanvas/device/quartz/QuartzSupport.h:
1616         * kcanvas/device/quartz/QuartzSupport.mm: Removed.
1617         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: Added.
1618         (WebCore::SVGResourceClipper::applyClip):
1619         * platform/graphics/svg/cg/SVGResourceClipperCg.mm: Removed.
1620         * platform/graphics/svg/cg/SVGResourceImageCg.cpp: Added.
1621         * platform/graphics/svg/cg/SVGResourceImageCg.mm: Removed.
1622
1623 2006-10-31  Justin Garcia  <justin.garcia@apple.com>
1624
1625         Reviewed by harrison
1626         
1627         <rdar://problem/4808375>
1628         REGRESSION: TextIterator slowed down, affecting Find on Page & Copy (etc.) [11460}
1629         
1630         Completely back out r17276 because of performance issues.
1631
1632         * editing/TextIterator.cpp:
1633         (WebCore::TextIterator::TextIterator):
1634         (WebCore::TextIterator::advance):
1635         (WebCore::TextIterator::handleTextNode):
1636         (WebCore::TextIterator::handleTextBox):
1637         (WebCore::TextIterator::handleReplacedElement):
1638         (WebCore::TextIterator::handleNonTextNode):
1639         (WebCore::TextIterator::exitNode):
1640         (WebCore::TextIterator::emitCharacter):
1641         (WebCore::TextIterator::range):
1642         (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
1643         (WebCore::SimplifiedBackwardsTextIterator::advance):
1644         (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
1645         (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement):
1646         (WebCore::SimplifiedBackwardsTextIterator::emitCharacter):
1647         (WebCore::SimplifiedBackwardsTextIterator::emitNewline):
1648         (WebCore::SimplifiedBackwardsTextIterator::range):
1649         (WebCore::CharacterIterator::range):
1650         (WebCore::TextIterator::rangeFromLocationAndLength):
1651         * editing/TextIterator.h:
1652         (WebCore::TextIterator::atEnd):
1653         (WebCore::SimplifiedBackwardsTextIterator::atEnd):
1654
1655 2006-10-31  Darin Adler  <darin@apple.com>
1656
1657         Reviewed by Brady.
1658
1659         - got "action dictionary" code out of FrameLoader,
1660           replacing with a class called NavigationAction
1661
1662         * loader/DocumentLoader.h: Changed m_triggeringAction to a NavigationAction.
1663         * loader/mac/DocumentLoaderMac.mm:
1664         (WebCore::DocumentLoader::triggeringAction): Ditto.
1665         (WebCore::DocumentLoader::setTriggeringAction): Ditto.
1666
1667         * loader/FrameLoader.h: Changed action parameters to NavigationAction.
1668
1669         * loader/FrameLoaderClient.h: Changed action parameters to NavigationAction.
1670         Removed elementForEvent.
1671         * loader/mac/FrameLoaderMac.mm:
1672         (WebCore::FrameLoader::load): Ditto.
1673         (WebCore::FrameLoader::reload): Ditto.
1674         (WebCore::FrameLoader::checkNewWindowPolicy): Ditto.
1675         (WebCore::FrameLoader::checkNavigationPolicy): Ditto.
1676         (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy): Ditto.
1677         (WebCore::FrameLoader::post): Ditto.
1678
1679         * loader/NavigationAction.h: Added.
1680         * loader/NavigationAction.cpp: Added.
1681         * loader/mac/NavigationActionMac.mm: Added.
1682
1683         * loader/mac/MainResourceLoaderMac.mm: Fixed copyright.
1684
1685         * WebCore.xcodeproj/project.pbxproj: Updated for new files.
1686         * WebCore.exp: Updated.
1687
1688 2006-10-31  Steve Falkenburg  <sfalken@apple.com>
1689
1690         Reviewed by Adam.
1691
1692         Build fix
1693
1694         * platform/win/CookieJarWin.cpp:
1695         (WebCore::cookies):
1696
1697 2006-10-31  Nikolas Zimmermann  <zimmermann@kde.org>
1698
1699         Reviewed by Maciej. Landed by Adam.
1700
1701         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11463
1702
1703         Move KCanvasTreeDebug into rendering, named as SVGRenderTreeAsText.*,
1704         as dicussed with Dave. Also kill the outdated DESIGN document.
1705
1706         * CMakeLists.txt:
1707         * WebCore.xcodeproj/project.pbxproj:
1708         * kcanvas/DESIGN: Removed.
1709         * kcanvas/KCanvasFilters.cpp:
1710         * kcanvas/KCanvasTreeDebug.cpp: Moved to rendering/SVGRenderTreeAsText
1711         * kcanvas/KCanvasTreeDebug.h: Ditto.
1712         * kcanvas/device/KRenderingPaintServerGradient.cpp:
1713         * kcanvas/device/KRenderingPaintServerPattern.cpp:
1714         * kcanvas/device/KRenderingPaintServerSolid.cpp:
1715         * platform/graphics/svg/SVGResourceClipper.cpp:
1716         * rendering/RenderTreeAsText.cpp:
1717         * rendering/SVGRenderTreeAsText.cpp: Added.
1718         * rendering/SVGRenderTreeAsText.h: Added.
1719         (WebCore::operator<<):
1720
1721 2006-10-31  MorganL  <morganl.webkit@yahoo.com>
1722
1723         Reviewed by Maciej.
1724
1725         Fixes http://bugs.webkit.org/show_bug.cgi?id=11286
1726         Includes some CRLF -> LF fixups.
1727
1728         * platform/win/CookieJarWin.cpp:
1729         (WebCore::cookies):
1730
1731 2006-10-31  Adam Roben  <aroben@apple.com>
1732
1733         Reviewed by Steve.
1734
1735         Fix some incorrect forward declarations.
1736
1737         * loader/FrameLoader.h:
1738         * page/Frame.h:
1739
1740 2006-10-31  Darin Adler  <darin@apple.com>
1741
1742         * WebCore.xcodeproj/project.pbxproj: Change GraphicsTypes.h to a private header to
1743         try to fix the build on the buildbot.
1744
1745 2006-10-31  Darin Adler  <darin@apple.com>
1746
1747         * bridge/mac/FrameMac.mm:
1748         (WebCore::FrameMac::advanceToNextMisspelling): Build fix for release Tiger builds.
1749         (WebCore::FrameMac::markMisspellings): Ditto.
1750
1751 2006-10-31  John Sullivan  <sullivan@apple.com>
1752
1753         * bridge/mac/FrameMac.mm:
1754         (WebCore::FrameMac::advanceToNextMisspelling):
1755         build fix: needed #ifndef BUILDING_ON_TIGER in one more place
1756
1757 2006-10-30  John Sullivan  <sullivan@apple.com>
1758
1759         Reviewed by Adam Roben
1760         
1761         - fixes <rdar://problem/4804614> Bad grammar ranges are not visibly marked
1762         
1763         This patch introduces much of the guts of grammar checking, though still not enough to actually
1764         check grammar sensibly, due to:
1765           
1766         <rdar://problem/4811175> Many false reports of bad grammar appear, caused by insufficient 
1767         context passed to grammar checker
1768
1769         * platform/Logging.h:
1770         * platform/Logging.cpp:
1771         new log channel SpellingAndGrammar
1772
1773         * bridge/mac/WebCorePageBridge.mm:
1774         (initializeLoggingChannelsIfNecessary):
1775         initialize new log channel
1776
1777         * bridge/mac/FrameMac.mm:
1778         (WebCore::FrameMac::advanceToNextMisspelling):
1779         Compute bad grammar range when computing misspelling range. Find first detailed grammar range from the
1780         set NSSpellChecker determines. Compare it with misspelling range to see which is earliest (or shortest
1781         in the event of a tie), and do further processing with that one (select range; create marker that
1782         causes range to be visibly marked with a funky underline; update spelling panel appropriately).
1783         (WebCore::FrameMac::markMisspellings):
1784         More or less the same types of changes as in advanceToNextMisspelling The loops are structured just 
1785         differently enough to make sharing code between these two functions a little tricky, so I decided to 
1786         save that for a later patch.
1787         
1788         (WebCore::FrameMac::respondToChangedSelection):
1789         remove grammar markers when we remove spelling markers        
1790
1791 2006-10-31  Nikolas Zimmermann <zimmermann@kde.org>
1792
1793         Reviewed by Mitz.
1794
1795         Fix Qt/Linux build with older gcc3.3.4.
1796
1797         * bindings/js/kjs_window.cpp:
1798         (KJS::WindowFunc::callAsFunction):
1799
1800 2006-10-31  Zack Rusin  <zack@kde.org>
1801
1802         Reviewed by Mitz.
1803
1804         Fix the Qt build after last nights changes.
1805
1806         * WebCore/platform/qt/FrameQt.cpp:
1807         * WebCore/platform/qt/EditorClientQt.h:
1808         * WebCore/platform/qt/EditorClientQt.cpp:
1809         * WebCore/platform/graphics/svg/qt/SVGResourceImageQt.cpp:
1810         * WebCore/platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
1811         * WebCore/CMakeLists.txt:
1812         * WebCore/kcanvas/device/qt/KRenderingDeviceQt.cpp:
1813         * WebKitQt/QtLauncher/CMakeLists.txt:
1814         * WebKitQt/WebKitPart/CMakeLists.txt:
1815
1816 2006-10-30  Darin Adler  <darin@apple.com>
1817
1818         Reviewed by Anders.
1819
1820         - remove BrowserExtension
1821
1822         * WebCore.vcproj/WebCore/WebCore.vcproj:
1823         * WebCore.xcodeproj/project.pbxproj:
1824         * bindings/js/kjs_window.cpp:
1825         (KJS::createNewWindow):
1826         (KJS::WindowFunc::callAsFunction):
1827         * bridge/BrowserExtension.h: Removed.
1828         * bridge/mac/BrowserExtensionMac.h: Removed.
1829         * bridge/mac/BrowserExtensionMac.mm: Removed.
1830         * bridge/mac/FrameMac.mm:
1831         (WebCore::FrameMac::FrameMac):
1832         (WebCore::FrameMac::submitForm):
1833         (WebCore::FrameMac::urlSelected):
1834         * bridge/win/BrowserExtensionWin.cpp: Removed.
1835         * bridge/win/BrowserExtensionWin.h: Removed.
1836         * bridge/win/FrameWin.cpp:
1837         (WebCore::FrameWin::FrameWin):
1838         * loader/FrameLoader.cpp:
1839         (WebCore::FrameLoader::createWindow):
1840         * loader/FrameLoader.h:
1841         * loader/icon/IconLoader.cpp:
1842         * loader/mac/FrameLoaderMac.mm:
1843         (WebCore::FrameLoader::safeLoad):
1844         (WebCore::FrameLoader::load):
1845         (WebCore::FrameLoader::createWindow):
1846         * page/Frame.cpp:
1847         (WebCore::Frame::urlSelected):
1848         (WebCore::Frame::requestFrame):
1849         (WebCore::Frame::submitForm):
1850         (WebCore::Frame::scheduleHistoryNavigation):
1851         (WebCore::Frame::redirectionTimerFired):
1852         * page/Frame.h:
1853         * page/FrameLoadRequest.h:
1854         (WebCore::FrameLoadRequest::FrameLoadRequest):
1855         (WebCore::FrameLoadRequest::isEmpty):
1856         (WebCore::FrameLoadRequest::resourceRequest):
1857         (WebCore::FrameLoadRequest::frameName):
1858         (WebCore::FrameLoadRequest::setFrameName):
1859         * page/FramePrivate.h:
1860         (WebCore::FramePrivate::FramePrivate):
1861         (WebCore::FramePrivate::~FramePrivate):
1862         * platform/gdk/BrowserExtensionGdk.h: Removed.
1863         * platform/gdk/FrameGdk.cpp:
1864         (WebCore::FrameGdk::FrameGdk):
1865         * platform/gdk/TemporaryLinkStubs.cpp:
1866         * platform/network/ResourceRequest.h:
1867         (WebCore::ResourceRequest::isEmpty):
1868
1869 2006-10-31  Nikolas Zimmermann  <zimmermann@kde.org>
1870
1871         Reviewed by Oliver.
1872
1873         Modified from original due to earlier reversion
1874
1875         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11436
1876
1877         Better SVG integration in WebKit, Part I.
1878
1879         The patch is mostly about creating a new platform/graphics directory, and
1880         moving the kcanvas resources (clipper/masker/marker) there (in svg budir),
1881         with a new name (KCanvasClipper -> SVGResourceClipper). Also fix several ownership
1882         issues, by using ref counting (the SVG classes now store RefPtrs to the resources).
1883
1884         KCanvasFilters is still left in kcanvas/ subdirectory, to be converted in a next patch.
1885         All details of the patch, and upcoming patches can be found in the bug report.
1886
1887         * CMakeLists.txt:
1888         * WebCore.xcodeproj/project.pbxproj:
1889         * graphics/svg/SVGResource.cpp: Removed.
1890         * graphics/svg/SVGResourceClipper.cpp: Removed.
1891         * graphics/svg/SVGResourceClipper.h: Removed.
1892         * graphics/svg/SVGResourceImage.h: Removed.
1893         * graphics/svg/SVGResourceListener.h: Removed.
1894         * graphics/svg/SVGResourceMarker.cpp: Removed.
1895         * graphics/svg/SVGResourceMarker.h: Removed.
1896         * graphics/svg/SVGResourceMasker.cpp: Removed.
1897         * graphics/svg/SVGResourceMasker.h: Removed.
1898         * kcanvas/KCanvasClipper.cpp: Removed.
1899         * kcanvas/KCanvasClipper.h: Removed.
1900         * kcanvas/KCanvasCreator.cpp: Removed.
1901         * kcanvas/KCanvasCreator.h: Removed.
1902         * kcanvas/KCanvasFilters.cpp:
1903         (WebCore::getFilterById):
1904         * kcanvas/KCanvasFilters.h:
1905         * kcanvas/KCanvasImage.h: Removed.
1906         * kcanvas/KCanvasMarker.cpp: Removed.
1907         * kcanvas/KCanvasMarker.h: Removed.
1908         * kcanvas/KCanvasMasker.cpp: Removed.
1909         * kcanvas/KCanvasMasker.h: Removed.
1910         * kcanvas/KCanvasResource.cpp: Removed.
1911         * kcanvas/KCanvasResource.h: Removed.
1912         * kcanvas/KCanvasResourceListener.h: Removed.
1913         * kcanvas/KCanvasTreeDebug.cpp:
1914         (WebCore::writeRenderResources):
1915         * kcanvas/device/KRenderingDevice.h:
1916         * kcanvas/device/KRenderingPaintServer.h:
1917         (WebCore::KRenderingPaintServer::KRenderingPaintServer):
1918         * kcanvas/device/KRenderingPaintServerGradient.cpp:
1919         (WebCore::KRenderingPaintServerGradient::listener):
1920         (WebCore::KRenderingPaintServerGradient::setListener):
1921         * kcanvas/device/KRenderingPaintServerGradient.h:
1922         * kcanvas/device/KRenderingPaintServerPattern.cpp:
1923         (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
1924         (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
1925         (WebCore::KRenderingPaintServerPattern::tile):
1926         (WebCore::KRenderingPaintServerPattern::setTile):
1927         (WebCore::KRenderingPaintServerPattern::listener):
1928         (WebCore::KRenderingPaintServerPattern::setListener):
1929         * kcanvas/device/KRenderingPaintServerPattern.h:
1930         * kcanvas/device/KRenderingPaintServerSolid.h:
1931         * kcanvas/device/qt/KCanvasClipperQt.cpp: Removed.
1932         * kcanvas/device/qt/KCanvasClipperQt.h:
1933         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
1934         (WebCore::KRenderingDeviceQt::contextForImage):
1935         (WebCore::KRenderingDeviceQt::createResource):
1936         (WebCore::KRenderingDeviceQt::createPaintServer):
1937         * kcanvas/device/qt/KRenderingDeviceQt.h:
1938         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
1939         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
1940         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
1941         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
1942         * kcanvas/device/qt/RenderPathQt.h: Removed.
1943         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1944         (WebCore::KCanvasFilterQuartz::getCIFilterStack):
1945         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1946         * kcanvas/device/quartz/KCanvasMaskerQuartz.h: Removed.
1947         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm: Removed.
1948         * kcanvas/device/quartz/KCanvasResourcesQuartz.h: Removed.
1949         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm: Removed.
1950         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
1951         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
1952         (WebCore::KRenderingDeviceQuartz::contextForImage):
1953         (WebCore::KRenderingDeviceQuartz::createPaintServer):
1954         (WebCore::KRenderingDeviceQuartz::createResource):
1955         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1956         (WebCore::KRenderingPaintServerGradientQuartz::KRenderingPaintServerGradientQuartz):
1957         (WebCore::KRenderingPaintServerGradientQuartz::~KRenderingPaintServerGradientQuartz):
1958         (WebCore::KRenderingPaintServerGradientQuartz::setup):
1959         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
1960         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
1961         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1962         (WebCore::patternCallback):
1963         (WebCore::KRenderingPaintServerPatternQuartz::setup):
1964         * kcanvas/device/quartz/QuartzSupport.mm:
1965         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1966         (WebCore::sharedSolidPaintServer):
1967         * ksvg2/svg/SVGClipPathElement.cpp:
1968         (WebCore::SVGClipPathElement::SVGClipPathElement):
1969         (WebCore::SVGClipPathElement::~SVGClipPathElement):
1970         (WebCore::SVGClipPathElement::canvasResource):
1971         * ksvg2/svg/SVGClipPathElement.h:
1972         * ksvg2/svg/SVGFEImageElement.cpp:
1973         * ksvg2/svg/SVGFilterElement.cpp:
1974         (WebCore::SVGFilterElement::SVGFilterElement):
1975         (WebCore::SVGFilterElement::~SVGFilterElement):
1976         (WebCore::SVGFilterElement::canvasResource):
1977         * ksvg2/svg/SVGFilterElement.h:
1978         * ksvg2/svg/SVGGradientElement.cpp:
1979         (WebCore::SVGGradientElement::SVGGradientElement):
1980         (WebCore::SVGGradientElement::~SVGGradientElement):
1981         (WebCore::SVGGradientElement::canvasResource):
1982         (WebCore::SVGGradientElement::resourceNotification):
1983         * ksvg2/svg/SVGGradientElement.h:
1984         * ksvg2/svg/SVGImageElement.cpp:
1985         * ksvg2/svg/SVGLinearGradientElement.cpp:
1986         (WebCore::SVGLinearGradientElement::buildGradient):
1987         * ksvg2/svg/SVGLinearGradientElement.h:
1988         * ksvg2/svg/SVGMarkerElement.cpp:
1989         (WebCore::SVGMarkerElement::SVGMarkerElement):
1990         (WebCore::SVGMarkerElement::~SVGMarkerElement):
1991         (WebCore::SVGMarkerElement::canvasResource):
1992         * ksvg2/svg/SVGMarkerElement.h:
1993         * ksvg2/svg/SVGMaskElement.cpp:
1994         (WebCore::SVGMaskElement::SVGMaskElement):
1995         (WebCore::SVGMaskElement::~SVGMaskElement):
1996         (WebCore::SVGMaskElement::drawMaskerContent):
1997         (WebCore::SVGMaskElement::canvasResource):
1998         * ksvg2/svg/SVGMaskElement.h:
1999         * ksvg2/svg/SVGPatternElement.cpp:
2000         (WebCore::SVGPatternElement::SVGPatternElement):
2001         (WebCore::SVGPatternElement::~SVGPatternElement):
2002         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
2003         (WebCore::SVGPatternElement::drawPatternContentIntoTile):
2004         (WebCore::SVGPatternElement::canvasResource):
2005         * ksvg2/svg/SVGPatternElement.h:
2006         * ksvg2/svg/SVGRadialGradientElement.cpp:
2007         (WebCore::SVGRadialGradientElement::buildGradient):
2008         * ksvg2/svg/SVGRadialGradientElement.h:
2009         * ksvg2/svg/SVGStyledElement.h:
2010         (WebCore::SVGStyledElement::canvasResource):
2011         * platform/GraphicsContext.cpp: Removed.
2012         * platform/GraphicsContext.h: Removed.
2013         * platform/GraphicsTypes.cpp: Removed.
2014         * platform/GraphicsTypes.h: Removed.
2015         * platform/graphics/GraphicsContext.cpp:
2016         (WebCore::GraphicsContextState::GraphicsContextState):
2017         (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
2018         (WebCore::GraphicsContext::createGraphicsContextPrivate):
2019         (WebCore::GraphicsContext::destroyGraphicsContextPrivate):
2020         (WebCore::GraphicsContext::save):
2021         (WebCore::GraphicsContext::restore):
2022         (WebCore::GraphicsContext::font):
2023         (WebCore::GraphicsContext::setFont):
2024         (WebCore::GraphicsContext::pen):
2025         (WebCore::GraphicsContext::setPen):
2026         (WebCore::GraphicsContext::setFillColor):
2027         (WebCore::GraphicsContext::fillColor):
2028         (WebCore::GraphicsContext::updatingControlTints):
2029         (WebCore::GraphicsContext::setUpdatingControlTints):
2030         (WebCore::GraphicsContext::setPaintingDisabled):
2031         (WebCore::GraphicsContext::paintingDisabled):
2032         (WebCore::GraphicsContext::drawImage):
2033         (WebCore::GraphicsContext::drawText):
2034         (WebCore::GraphicsContext::drawHighlightForText):
2035         (WebCore::GraphicsContext::initFocusRing):
2036         (WebCore::GraphicsContext::clearFocusRing):
2037         (WebCore::GraphicsContext::focusRingBoundingRect):
2038         (WebCore::GraphicsContext::addFocusRingRect):
2039         (WebCore::GraphicsContext::focusRingWidth):
2040         (WebCore::GraphicsContext::focusRingOffset):
2041         (WebCore::GraphicsContext::focusRingRects):
2042         (WebCore::GraphicsContext::drawTiledImage):
2043         * platform/graphics/GraphicsContext.h:
2044         * platform/graphics/GraphicsTypes.cpp:
2045         (WebCore::):
2046         (WebCore::parseCompositeOperator):
2047         (WebCore::compositeOperatorName):
2048         (WebCore::parseLineCap):
2049         (WebCore::lineCapName):
2050         (WebCore::parseLineJoin):
2051         (WebCore::lineJoinName):
2052         * platform/graphics/GraphicsTypes.h:
2053         (WebCore::):
2054         * platform/graphics/svg/SVGResource.cpp: Added.
2055         (WebCore::SVGResource::SVGResource):
2056         (WebCore::SVGResource::~SVGResource):
2057         (WebCore::SVGResource::invalidate):
2058         (WebCore::SVGResource::addClient):
2059         (WebCore::SVGResource::clients):
2060         (WebCore::SVGResource::idInRegistry):
2061         (WebCore::SVGResource::setIdInRegistry):
2062         (WebCore::SVGResource::externalRepresentation):
2063         (WebCore::getResourceById):
2064         (WebCore::getPaintServerById):
2065         (WebCore::operator<<):
2066         * platform/graphics/svg/SVGResource.h: Added.
2067         (WebCore::):
2068         (WebCore::SVGResource::isPaintServer):
2069         (WebCore::SVGResource::isFilter):
2070         (WebCore::SVGResource::isClipper):
2071         (WebCore::SVGResource::isMarker):
2072         (WebCore::SVGResource::isMasker):
2073         (WebCore::SVGResourceListener::~SVGResourceListener):
2074         * platform/graphics/svg/SVGResourceClipper.cpp: Added.
2075         (WebCore::SVGResourceClipper::SVGResourceClipper):
2076         (WebCore::SVGResourceClipper::~SVGResourceClipper):
2077         (WebCore::SVGResourceClipper::resetClipData):
2078         (WebCore::SVGResourceClipper::addClipData):
2079         (WebCore::SVGResourceClipper::clipData):
2080         (WebCore::SVGResourceClipper::externalRepresentation):
2081         (WebCore::operator<<):
2082         (WebCore::getClipperById):
2083         * platform/graphics/svg/SVGResourceClipper.h: Added.
2084         (WebCore::ClipDataList::addPath):
2085         (WebCore::SVGResourceClipper::isClipper):
2086         * platform/graphics/svg/SVGResourceImage.h: Added.
2087         * platform/graphics/svg/SVGResourceMarker.cpp: Added.
2088         (WebCore::SVGResourceMarker::SVGResourceMarker):
2089         (WebCore::SVGResourceMarker::~SVGResourceMarker):
2090         (WebCore::SVGResourceMarker::setMarker):
2091         (WebCore::SVGResourceMarker::setRef):
2092         (WebCore::SVGResourceMarker::draw):
2093         (WebCore::SVGResourceMarker::externalRepresentation):
2094         (WebCore::getMarkerById):
2095         * platform/graphics/svg/SVGResourceMarker.h: Added.
2096         (WebCore::SVGResourceMarker::refX):
2097         (WebCore::SVGResourceMarker::refY):
2098         (WebCore::SVGResourceMarker::setAngle):
2099         (WebCore::SVGResourceMarker::setAutoAngle):
2100         (WebCore::SVGResourceMarker::angle):
2101         (WebCore::SVGResourceMarker::setUseStrokeWidth):
2102         (WebCore::SVGResourceMarker::useStrokeWidth):
2103         (WebCore::SVGResourceMarker::isMarker):
2104         * platform/graphics/svg/SVGResourceMasker.cpp: Added.
2105         (WebCore::SVGResourceMasker::SVGResourceMasker):
2106         (WebCore::SVGResourceMasker::~SVGResourceMasker):
2107         (WebCore::SVGResourceMasker::setMask):
2108         (WebCore::SVGResourceMasker::mask):
2109         (WebCore::SVGResourceMasker::externalRepresentation):
2110         (WebCore::getMaskerById):
2111         * platform/graphics/svg/SVGResourceMasker.h: Added.
2112         (WebCore::SVGResourceMasker::isMasker):
2113         * platform/graphics/svg/cg/SVGResourceClipperCg.mm: Added.
2114         (WebCore::SVGResourceClipper::applyClip):
2115         * platform/graphics/svg/cg/SVGResourceImageCg.mm: Added.
2116         (WebCore::SVGResourceImage::SVGResourceImage):
2117         (WebCore::SVGResourceImage::~SVGResourceImage):
2118         (WebCore::SVGResourceImage::init):
2119         (WebCore::SVGResourceImage::size):
2120         (WebCore::SVGResourceImage::cgLayer):
2121         (WebCore::SVGResourceImage::setCGLayer):
2122         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: Added.
2123         (WebCore::applyLuminanceToAlphaFilter):
2124         (WebCore::applyExpandAlphatoGrayscaleFilter):
2125         (WebCore::transformImageIntoGrayscaleMask):
2126         (WebCore::SVGResourceMasker::applyMask):
2127         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp: Added.
2128         (WebCore::SVGResourceClipper::applyClip):
2129         * platform/graphics/svg/qt/SVGResourceImageQt.cpp: Added.
2130         (WebCore::SVGResourceImage::init):
2131         (WebCore::SVGResourceImage::size):
2132         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp: Added.
2133         (WebCore::SVGResourceMasker::applyMask):
2134         * platform/qt/GraphicsContextQt.cpp:
2135         * rendering/RenderPath.cpp:
2136         (WebCore::RenderPath::paint):
2137         (WebCore::DrawMarkersData::DrawMarkersData):
2138         (WebCore::RenderPath::drawMarkersIfNeeded):
2139         * rendering/RenderSVGContainer.cpp:
2140         (WebCore::RenderSVGContainer::paint):
2141         * rendering/RenderSVGImage.cpp:
2142         (WebCore::RenderSVGImage::paint):
2143         * rendering/SVGInlineFlowBox.cpp:
2144         (WebCore::paintSVGInlineFlow):
2145
2146 2006-10-30  John Sullivan  <sullivan@apple.com>
2147
2148         Reviewed by Brady
2149         
2150         - minor cleanup to make future patches clearer
2151
2152         * bridge/mac/FrameMac.mm:
2153         (WebCore::FrameMac::advanceToNextMisspelling):
2154         renamed misspelling to misspellingNSRange for clarity; changed > 0 test to == 0 test
2155         with "continue" to better match structure of similar code in markMisspellings; a few
2156         other style tweaks.
2157         
2158         (WebCore::FrameMac::markMisspellings):
2159         renamed misspelling to misspellingNSRange for clarity; removed unnecessary braces around
2160         a block just after a break and outdented accordingly.
2161
2162 2006-10-30  John Sullivan  <sullivan@apple.com>
2163
2164         Reviewed by Geoff Garen
2165         
2166         WebCore part of change to push the code that updates the spelling panel
2167         into WebCore, in preparation for some grammar-checking stuff.
2168
2169         * bridge/mac/FrameMac.h:
2170         * bridge/mac/FrameMac.mm:
2171         (WebCore::FrameMac::advanceToNextMisspelling):
2172         no more return value for this method, and update the spelling panel with
2173         the misspelled word here rather than in the WebKit callers.
2174
2175 2006-10-30  Oliver Hunt  <oliver@apple.com>
2176
2177         Reviewed by Anders.
2178
2179         Roll out last patch
2180
2181         * CMakeLists.txt:
2182         * ChangeLog:
2183         * WebCore.xcodeproj/project.pbxproj:
2184         * graphics/svg/SVGResource.cpp:
2185         * graphics/svg/SVGResourceClipper.cpp:
2186         * graphics/svg/SVGResourceClipper.h:
2187         * graphics/svg/SVGResourceImage.h:
2188         * graphics/svg/SVGResourceListener.h:
2189         * graphics/svg/SVGResourceMarker.cpp:
2190         * graphics/svg/SVGResourceMarker.h:
2191         * graphics/svg/SVGResourceMasker.cpp:
2192         * graphics/svg/SVGResourceMasker.h:
2193         * kcanvas/KCanvasClipper.cpp: Added.
2194         (WebCore::operator<<):
2195         (WebCore::KCanvasClipper::KCanvasClipper):
2196         (WebCore::KCanvasClipper::~KCanvasClipper):
2197         (WebCore::KCanvasClipper::resetClipData):
2198         (WebCore::KCanvasClipper::addClipData):
2199         (WebCore::KCanvasClipper::clipData):
2200         (WebCore::KCanvasClipper::externalRepresentation):
2201         (WebCore::getClipperById):
2202         * kcanvas/KCanvasClipper.h: Added.
2203         (WebCore::KCClipData::windRule):
2204         (WebCore::KCClipDataList::KCClipDataList):
2205         (WebCore::KCClipDataList::addPath):
2206         (WebCore::KCanvasClipper::isClipper):
2207         * kcanvas/KCanvasFilters.cpp:
2208         (WebCore::getFilterById):
2209         * kcanvas/KCanvasFilters.h:
2210         * kcanvas/KCanvasImage.h: Added.
2211         (WebCore::KCanvasImage::KCanvasImage):
2212         (WebCore::KCanvasImage::~KCanvasImage):
2213         * kcanvas/KCanvasMarker.cpp: Added.
2214         (WebCore::KCanvasMarker::KCanvasMarker):
2215         (WebCore::KCanvasMarker::~KCanvasMarker):
2216         (WebCore::KCanvasMarker::setMarker):
2217         (WebCore::KCanvasMarker::setRef):
2218         (WebCore::KCanvasMarker::refX):
2219         (WebCore::KCanvasMarker::refY):
2220         (WebCore::KCanvasMarker::setAngle):
2221         (WebCore::KCanvasMarker::angle):
2222         (WebCore::KCanvasMarker::setAutoAngle):
2223         (WebCore::KCanvasMarker::setUseStrokeWidth):
2224         (WebCore::KCanvasMarker::useStrokeWidth):
2225         (WebCore::KCanvasMarker::draw):
2226         (WebCore::KCanvasMarker::externalRepresentation):
2227         (WebCore::getMarkerById):
2228         * kcanvas/KCanvasMarker.h: Added.
2229         (WebCore::KCanvasMarker::isMarker):
2230         * kcanvas/KCanvasMasker.cpp: Added.
2231         (WebCore::KCanvasMasker::KCanvasMasker):
2232         (WebCore::KCanvasMasker::~KCanvasMasker):
2233         (WebCore::KCanvasMasker::setMask):
2234         (WebCore::KCanvasMasker::externalRepresentation):
2235         (WebCore::getMaskerById):
2236         * kcanvas/KCanvasMasker.h: Added.
2237         (WebCore::KCanvasMasker::isMasker):
2238         (WebCore::KCanvasMasker::mask):
2239         * kcanvas/KCanvasResource.cpp: Added.
2240         (WebCore::operator<<):
2241         (WebCore::KCanvasResource::KCanvasResource):
2242         (WebCore::KCanvasResource::~KCanvasResource):
2243         (WebCore::KCanvasResource::addClient):
2244         (WebCore::KCanvasResource::clients):
2245         (WebCore::KCanvasResource::invalidate):
2246         (WebCore::KCanvasResource::idInRegistry):
2247         (WebCore::KCanvasResource::setIdInRegistry):
2248         (WebCore::KCanvasResource::externalRepresentation):
2249         (WebCore::getResourceById):
2250         (WebCore::getPaintServerById):
2251         * kcanvas/KCanvasResource.h:
2252         (WebCore::):
2253         (WebCore::KCanvasResource::isPaintServer):
2254         (WebCore::KCanvasResource::isFilter):
2255         (WebCore::KCanvasResource::isClipper):
2256         (WebCore::KCanvasResource::isMarker):
2257         (WebCore::KCanvasResource::isMasker):
2258         * kcanvas/KCanvasResourceListener.h: Added.
2259         (KCanvasResourceListener::KCanvasResourceListener):
2260         (KCanvasResourceListener::~KCanvasResourceListener):
2261         * kcanvas/KCanvasTreeDebug.cpp:
2262         (WebCore::writeRenderResources):
2263         * kcanvas/device/KRenderingDevice.h:
2264         * kcanvas/device/KRenderingPaintServer.h:
2265         (WebCore::KRenderingPaintServer::KRenderingPaintServer):
2266         (WebCore::KRenderingPaintServer::idInRegistry):
2267         (WebCore::KRenderingPaintServer::setIdInRegistry):
2268         * kcanvas/device/KRenderingPaintServerGradient.cpp:
2269         (WebCore::KRenderingPaintServerGradient::listener):
2270         (WebCore::KRenderingPaintServerGradient::setListener):
2271         * kcanvas/device/KRenderingPaintServerGradient.h:
2272         * kcanvas/device/KRenderingPaintServerPattern.cpp:
2273         (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
2274         (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
2275         (WebCore::KRenderingPaintServerPattern::tile):
2276         (WebCore::KRenderingPaintServerPattern::setTile):
2277         (WebCore::KRenderingPaintServerPattern::listener):
2278         (WebCore::KRenderingPaintServerPattern::setListener):
2279         * kcanvas/device/KRenderingPaintServerPattern.h:
2280         * kcanvas/device/KRenderingPaintServerSolid.h:
2281         * kcanvas/device/qt/KCanvasClipperQt.cpp:
2282         (WebCore::KCanvasClipperQt::applyClip):
2283         * kcanvas/device/qt/KCanvasClipperQt.h:
2284         (WebCore::KCanvasClipperQt::KCanvasClipperQt):
2285         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
2286         (WebCore::KRenderingDeviceQt::contextForImage):
2287         (WebCore::KRenderingDeviceQt::createResource):
2288         (WebCore::KRenderingDeviceQt::createPaintServer):
2289         * kcanvas/device/qt/KRenderingDeviceQt.h:
2290         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
2291         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
2292         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
2293         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
2294         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
2295         (WebCore::KCanvasFilterQuartz::getCIFilterStack):
2296         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
2297         * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
2298         (WebCore::KCanvasMaskerQuartz::KCanvasMaskerQuartz):
2299         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
2300         (WebCore::applyLuminanceToAlphaFilter):
2301         (WebCore::applyExpandAlphatoGrayscaleFilter):
2302         (WebCore::transformImageIntoGrayscaleMask):
2303         (WebCore::KCanvasMaskerQuartz::applyMask):
2304         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
2305         (WebCore::KCanvasClipperQuartz::KCanvasClipperQuartz):
2306         (WebCore::KCanvasImageQuartz::KCanvasImageQuartz):
2307         (WebCore::KCanvasImageQuartz::init):
2308         (WebCore::KCanvasImageQuartz::size):
2309         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
2310         (WebCore::KCanvasClipperQuartz::applyClip):
2311         (WebCore::KCanvasImageQuartz::~KCanvasImageQuartz):
2312         (WebCore::KCanvasImageQuartz::cgLayer):
2313         (WebCore::KCanvasImageQuartz::setCGLayer):
2314         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
2315         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
2316         (WebCore::KRenderingDeviceQuartz::contextForImage):
2317         (WebCore::KRenderingDeviceQuartz::createPaintServer):
2318         (WebCore::KRenderingDeviceQuartz::createResource):
2319         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
2320         (WebCore::KRenderingPaintServerGradientQuartz::KRenderingPaintServerGradientQuartz):
2321         (WebCore::KRenderingPaintServerGradientQuartz::~KRenderingPaintServerGradientQuartz):
2322         (WebCore::KRenderingPaintServerGradientQuartz::setup):
2323         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
2324         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
2325         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2326         (WebCore::patternCallback):
2327         (WebCore::KRenderingPaintServerPatternQuartz::setup):
2328         * kcanvas/device/quartz/QuartzSupport.mm:
2329         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2330         (WebCore::sharedSolidPaintServer):
2331         * ksvg2/svg/SVGClipPathElement.cpp:
2332         (WebCore::SVGClipPathElement::SVGClipPathElement):
2333         (WebCore::SVGClipPathElement::~SVGClipPathElement):
2334         (WebCore::SVGClipPathElement::canvasResource):
2335         * ksvg2/svg/SVGClipPathElement.h:
2336         * ksvg2/svg/SVGFEImageElement.cpp:
2337         * ksvg2/svg/SVGFilterElement.cpp:
2338         (WebCore::SVGFilterElement::SVGFilterElement):
2339         (WebCore::SVGFilterElement::~SVGFilterElement):
2340         (WebCore::SVGFilterElement::canvasResource):
2341         * ksvg2/svg/SVGFilterElement.h:
2342         * ksvg2/svg/SVGGradientElement.cpp:
2343         (WebCore::SVGGradientElement::SVGGradientElement):
2344         (WebCore::SVGGradientElement::~SVGGradientElement):
2345         (WebCore::SVGGradientElement::canvasResource):
2346         (WebCore::SVGGradientElement::resourceNotification):
2347         * ksvg2/svg/SVGGradientElement.h:
2348         * ksvg2/svg/SVGImageElement.cpp:
2349         * ksvg2/svg/SVGLinearGradientElement.cpp:
2350         (WebCore::SVGLinearGradientElement::buildGradient):
2351         * ksvg2/svg/SVGLinearGradientElement.h:
2352         * ksvg2/svg/SVGMarkerElement.cpp:
2353         (WebCore::SVGMarkerElement::SVGMarkerElement):
2354         (WebCore::SVGMarkerElement::~SVGMarkerElement):
2355         (WebCore::SVGMarkerElement::canvasResource):
2356         * ksvg2/svg/SVGMarkerElement.h:
2357         * ksvg2/svg/SVGMaskElement.cpp:
2358         (WebCore::SVGMaskElement::SVGMaskElement):
2359         (WebCore::SVGMaskElement::~SVGMaskElement):
2360         (WebCore::SVGMaskElement::drawMaskerContent):
2361         (WebCore::SVGMaskElement::canvasResource):
2362         * ksvg2/svg/SVGMaskElement.h:
2363         * ksvg2/svg/SVGPatternElement.cpp:
2364         (WebCore::SVGPatternElement::SVGPatternElement):
2365         (WebCore::SVGPatternElement::~SVGPatternElement):
2366         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
2367         (WebCore::SVGPatternElement::drawPatternContentIntoTile):
2368         (WebCore::SVGPatternElement::canvasResource):
2369         * ksvg2/svg/SVGPatternElement.h:
2370         * ksvg2/svg/SVGRadialGradientElement.cpp:
2371         (WebCore::SVGRadialGradientElement::buildGradient):
2372         * ksvg2/svg/SVGRadialGradientElement.h:
2373         * ksvg2/svg/SVGStyledElement.h:
2374         (WebCore::SVGStyledElement::canvasResource):
2375         * platform/GraphicsContext.cpp: Added.
2376         (WebCore::GraphicsContextState::GraphicsContextState):
2377         (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
2378         (WebCore::GraphicsContext::createGraphicsContextPrivate):
2379         (WebCore::GraphicsContext::destroyGraphicsContextPrivate):
2380         (WebCore::GraphicsContext::save):
2381         (WebCore::GraphicsContext::restore):
2382         (WebCore::GraphicsContext::font):
2383         (WebCore::GraphicsContext::setFont):
2384         (WebCore::GraphicsContext::pen):
2385         (WebCore::GraphicsContext::setPen):
2386         (WebCore::GraphicsContext::setFillColor):
2387         (WebCore::GraphicsContext::fillColor):
2388         (WebCore::GraphicsContext::updatingControlTints):
2389         (WebCore::GraphicsContext::setUpdatingControlTints):
2390         (WebCore::GraphicsContext::setPaintingDisabled):
2391         (WebCore::GraphicsContext::paintingDisabled):
2392         (WebCore::GraphicsContext::drawImage):
2393         (WebCore::GraphicsContext::drawText):
2394         (WebCore::GraphicsContext::drawHighlightForText):
2395         (WebCore::GraphicsContext::initFocusRing):
2396         (WebCore::GraphicsContext::clearFocusRing):
2397         (WebCore::GraphicsContext::focusRingBoundingRect):
2398         (WebCore::GraphicsContext::addFocusRingRect):
2399         (WebCore::GraphicsContext::focusRingWidth):
2400         (WebCore::GraphicsContext::focusRingOffset):
2401         (WebCore::GraphicsContext::focusRingRects):
2402         (WebCore::GraphicsContext::drawTiledImage):
2403         * platform/GraphicsContext.h: Added.
2404         * platform/GraphicsTypes.cpp: Added.
2405         (WebCore::):
2406         (WebCore::parseCompositeOperator):
2407         (WebCore::compositeOperatorName):
2408         (WebCore::parseLineCap):
2409         (WebCore::lineCapName):
2410         (WebCore::parseLineJoin):
2411         (WebCore::lineJoinName):
2412         * platform/GraphicsTypes.h: Added.
2413         (WebCore::):
2414         * platform/graphics/GraphicsContext.cpp:
2415         * platform/graphics/GraphicsContext.h:
2416         * platform/graphics/GraphicsTypes.cpp:
2417         * platform/graphics/GraphicsTypes.h:
2418         * platform/qt/GraphicsContextQt.cpp:
2419         * rendering/RenderPath.cpp:
2420         (WebCore::RenderPath::paint):
2421         (WebCore::DrawMarkersData::DrawMarkersData):
2422         (WebCore::RenderPath::drawMarkersIfNeeded):
2423         * rendering/RenderSVGContainer.cpp:
2424         (WebCore::RenderSVGContainer::paint):
2425         * rendering/RenderSVGImage.cpp:
2426         (WebCore::RenderSVGImage::paint):
2427         * rendering/SVGInlineFlowBox.cpp:
2428         (WebCore::paintSVGInlineFlow):
2429
2430 2006-10-30  John Sullivan  <sullivan@apple.com>
2431
2432         Reviewed by Geoff Garen.
2433         
2434         Moved spelling-related methods from bridge to EditorClient. Added one not-yet-used
2435         grammar-related method.
2436
2437         * bridge/EditorClient.h:
2438         declare isContinuousSpellCheckingEnabled(), spellCheckerDocumentTag(), and new
2439         isGrammarCheckingEnabled()
2440         
2441         * bridge/mac/WebCoreFrameBridge.h:
2442         removed bridge equivalents
2443
2444         * bridge/mac/FrameMac.mm:
2445         (WebCore::FrameMac::advanceToNextMisspelling):
2446         convert bridge-using code to editor()->client()-using code
2447         (WebCore::FrameMac::markMisspellingsInAdjacentWords):
2448         ditto
2449         (WebCore::FrameMac::markMisspellings):
2450         ditto
2451         (WebCore::FrameMac::respondToChangedSelection):
2452         ditto
2453         
2454         * editing/Editor.h:
2455         * editing/Editor.cpp:
2456         (WebCore::Editor::client):
2457         new method, returns EditorClient pointer. In an ideal world all the code that needed to
2458         access the EditorClient would be in Editor.cpp, and we wouldn't need this accessor.
2459         But for now it's too tricky to extricate the spelling-related code from FrameMac.mm.
2460
2461 2006-10-30  Geoffrey Garen  <ggaren@apple.com>
2462
2463         Reviewed by Darin.
2464
2465         Removed a number of editing and selection methods from the bridge.
2466         
2467         I moved cross-platform editing and selection code into Editor and 
2468         SelectionController, respecitvely.
2469
2470         I moved ObjC and AppKit stuff up into WebKit, so I ended up exporting
2471         everything + the kitchen sink.
2472         
2473         Specific comments below for interesting things.
2474         
2475         * bindings/objc/DOMInternal.h: Moved exception handling helper methods into
2476         a new file so that WebKit can use them, too. Added a helper method for
2477         handling exceptions when selecting a Range.
2478         * bridge/mac/FrameMac.h: Moved attributedString creation and helper functions into 
2479         WebKit, since they have to do with creating an NSAttributedString for API
2480         consumption, and not much to do with general Frame functionality.
2481         * editing/Editor.h: Moved lastEditCommand tracking (at least the data,
2482         for now) into the Editor. Eventually, the Frame will not have to notify 
2483         the Editor of what the lastEditCommand was, since the Editor will perform
2484         all EditCommands.
2485         * editing/SelectionController.h: The code here is just stuff moved from the bridge.
2486         * editing/SelectionController.cpp:
2487         (WebCore::SelectionController::setSelectedRange): We now explicitly check from DOM exceptions
2488         and return them. The bridge method to select a DOM range did this implicitly,
2489         since all ObjC DOM operations handle DOM exceptions by throwing them as
2490         ObjC exceptions.
2491         * editing/TextAffinity.h: Added helper functions for conversion to NSSelectionAffinity.
2492         The two enumerations are numerically identical, but that's an implementation
2493         detail of TextAffinity that clients shouldn't be required to know about.
2494
2495 2006-10-30  Timothy Hatcher  <timothy@apple.com>
2496
2497         Rolling out the following change because this crash:
2498         <rdar://problem/4806705> REGRESSION: Crash occurs at WebCore::Font::lineSpacing() when loading site (http://www.photoplusexpo.com/ppe/index.jsp) 
2499
2500         And this regression:
2501         <rdar://problem/4728514> REGRESSION: Safari applies the wrong font to BODY element at http://www.apple.com/downloads/dashboard/
2502
2503     2006-09-06  David Harrison  <harrison@apple.com>
2504
2505         Reviewed and tweaked by Tim H. 
2506
2507         <rdar://problem/4564955> WebKit doesn't trigger Auto Font Activation 
2508
2509         If we don't find the font in the available fonts list, call [NSFont fontWithName:size:] 
2510         to trigger a search that will include auto activation. No PLT or iBench perf impact. 
2511         No layout tests affected. Not testable in an automated way that will work on all systems. 
2512
2513         * platform/mac/WebFontCache.mm: 
2514         (+[WebFontCache fontWithFamily:traits:size:]): 
2515
2516 2006-10-30  Justin Garcia  <justin.garcia@apple.com>
2517
2518         Reviewed by harrison
2519
2520         <rdar://problem/4808375>
2521         REGRESSION: TextIterator slowed down, affecting Find on Page & Copy (etc.) (11460)
2522
2523         * editing/TextIterator.cpp:
2524         (WebCore::TextIterator::exitNode): Only create VisiblePositions
2525         when we're going to use them to create a range for an emitted character.
2526         We should further speed TextIterators up by avoiding creating VisiblePositions
2527         for TIs that are only used for the characters they emit (like the one that 
2528         plainText uses).
2529
2530 2006-10-30  Sam Weinig  <sam.weinig@gmail.com>
2531
2532         Reviewed by Mitz.
2533
2534         Fix for http://bugs.webkit.org/show_bug.cgi?id=11441
2535         More rendering code cleaning
2536
2537         * WebCore.xcodeproj/project.pbxproj:
2538         * rendering/RenderApplet.cpp:
2539         (WebCore::RenderApplet::RenderApplet):
2540         (WebCore::RenderApplet::createWidgetIfNecessary):
2541         * rendering/RenderApplet.h:
2542         * rendering/RenderArena.cpp:
2543         (WebCore::):
2544         (WebCore::RenderArena::RenderArena):
2545         (WebCore::RenderArena::allocate):
2546         (WebCore::RenderArena::free):
2547         * rendering/RenderArena.h:
2548         * rendering/RenderBR.cpp:
2549         (WebCore::RenderBR::RenderBR):
2550         (WebCore::RenderBR::baselinePosition):
2551         (WebCore::RenderBR::lineHeight):
2552         (WebCore::RenderBR::setStyle):
2553         (WebCore::RenderBR::caretMinOffset):
2554         (WebCore::RenderBR::positionForCoordinates):
2555         (WebCore::RenderBR::inlineBox):
2556         * rendering/RenderBR.h:
2557         * rendering/RenderBlock.cpp:
2558         * rendering/RenderBlock.h:
2559         (WebCore::RenderBlock::maxTopMargin):
2560         (WebCore::RenderBlock::maxBottomMargin):
2561         (WebCore::RenderBlock::initMaxMarginValues):
2562         (WebCore::RenderBlock::containsFloats):
2563         (WebCore::RenderBlock::setHasMarkupTruncation):
2564         (WebCore::RenderBlock::BlockSelectionInfo::BlockSelectionInfo):
2565         (WebCore::RenderBlock::BlockSelectionInfo::block):
2566         (WebCore::RenderBlock::BlockSelectionInfo::state):
2567         (WebCore::RenderBlock::FloatingObject::FloatingObject):
2568         (WebCore::RenderBlock::CompactInfo::clear):
2569         * rendering/RenderButton.cpp:
2570         (WebCore::RenderButton::removeChild):
2571         (WebCore::RenderButton::paintObject):
2572         * rendering/RenderButton.h:
2573         (WebCore::RenderButton::renderName):
2574         (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
2575         * rendering/RenderContainer.cpp:
2576         (WebCore::RenderContainer::RenderContainer):
2577         * rendering/RenderContainer.h:
2578         (WebCore::RenderContainer::firstChild):
2579         (WebCore::RenderContainer::lastChild):
2580         (WebCore::RenderContainer::calcMinMaxWidth):
2581         * rendering/RenderCounter.cpp:
2582         (WebCore::RenderCounter::RenderCounter):
2583         (WebCore::toRoman):
2584         (WebCore::toHebrew):
2585         (WebCore::RenderCounter::calcMinMaxWidth):
2586         * rendering/RenderCounter.h:
2587         * rendering/RenderFieldset.cpp:
2588         (WebCore::RenderFieldset::paintBoxDecorations):
2589         (WebCore::RenderFieldset::paintBorderMinusLegend):
2590         (WebCore::RenderFieldset::setStyle):
2591         * rendering/RenderFileUploadControl.cpp:
2592         (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
2593         (WebCore::RenderFileUploadControl::setStyle):
2594         (WebCore::RenderFileUploadControl::paintObject):
2595         (WebCore::RenderFileUploadControl::calcMinMaxWidth):
2596         * rendering/RenderFileUploadControl.h:
2597         (WebCore::RenderFileUploadControl::renderName):
2598         * rendering/RenderFlexibleBox.h:
2599         * rendering/RenderFlow.cpp:
2600         * rendering/RenderFlow.h:
2601         * rendering/RenderForeignObject.cpp:
2602         (WebCore::RenderForeignObject::RenderForeignObject):
2603         (WebCore::RenderForeignObject::paint):
2604         (WebCore::RenderForeignObject::computeAbsoluteRepaintRect):
2605         (WebCore::RenderForeignObject::layout):
2606         (WebCore::RenderForeignObject::nodeAtPoint):
2607         * rendering/RenderForeignObject.h:
2608         (WebCore::RenderForeignObject::renderName):
2609         * rendering/RenderFormElement.cpp:
2610         (WebCore::RenderFormElement::setStyle):
2611         (WebCore::RenderFormElement::layout):
2612         (WebCore::RenderFormElement::textAlignment):
2613         * rendering/RenderFormElement.h:
2614         * rendering/RenderFrame.cpp:
2615         * rendering/RenderFrame.h:
2616         (WebCore::RenderFrame::element):
2617         * rendering/RenderFrameSet.cpp:
2618         * rendering/RenderFrameSet.h:
2619         (WebCore::RenderFrameSet::element):
2620         * rendering/RenderHTMLCanvas.cpp:
2621         (WebCore::RenderHTMLCanvas::RenderHTMLCanvas):
2622         (WebCore::RenderHTMLCanvas::paint):
2623         * rendering/RenderHTMLCanvas.h:
2624         (WebCore::RenderHTMLCanvas::renderName):
2625         * rendering/RenderImage.cpp:
2626         (WebCore::RenderImage::RenderImage):
2627         (WebCore::RenderImage::setStyle):
2628         (WebCore::RenderImage::setContentObject):
2629         (WebCore::RenderImage::setCachedImage):
2630         (WebCore::RenderImage::imageChanged):
2631         (WebCore::RenderImage::paint):
2632         (WebCore::RenderImage::layout):
2633         (WebCore::RenderImage::updateAltText):
2634         * rendering/RenderImage.h:
2635         (WebCore::RenderImage::element):
2636         * rendering/RenderInline.cpp:
2637         (WebCore::RenderInline::RenderInline):
2638         (WebCore::RenderInline::~RenderInline):
2639         (WebCore::RenderInline::setStyle):
2640         (WebCore::RenderInline::addChildToFlow):
2641         (WebCore::RenderInline::cloneInline):
2642         (WebCore::RenderInline::splitInlines):
2643         (WebCore::RenderInline::splitFlow):
2644         (WebCore::RenderInline::paint):
2645         (WebCore::RenderInline::absoluteRects):
2646         (WebCore::RenderInline::calcMinMaxWidth):
2647         (WebCore::RenderInline::requiresLayer):
2648         (WebCore::RenderInline::width):
2649         (WebCore::RenderInline::height):
2650         (WebCore::RenderInline::renderName):
2651         (WebCore::RenderInline::nodeAtPoint):
2652         (WebCore::RenderInline::positionForCoordinates):
2653         * rendering/RenderInline.h:
2654         (WebCore::RenderInline::layout):
2655         * rendering/RenderLayer.cpp:
2656         * rendering/RenderLayer.h:
2657         (WebCore::ClipRects::ClipRects):
2658         (WebCore::RenderLayer::nextSibling):
2659         (WebCore::RenderLayer::root):
2660         (WebCore::RenderLayer::setPos):
2661         (WebCore::RenderLayer::height):
2662         (WebCore::RenderLayer::relativePositionOffset):
2663         * rendering/RenderLineEdit.cpp:
2664         (WebCore::RenderLineEdit::setStyle):
2665         (WebCore::RenderLineEdit::updateFromElement):
2666         (WebCore::RenderLineEdit::selectionStart):
2667         (WebCore::RenderLineEdit::selectionEnd):
2668         (WebCore::RenderLineEdit::setSelectionStart):
2669         (WebCore::RenderLineEdit::setSelectionEnd):
2670         (WebCore::RenderLineEdit::setSelectionRange):
2671         * rendering/RenderLineEdit.h:
2672         * rendering/RenderListBox.cpp:
2673         * rendering/RenderListBox.h:
2674         (WebCore::RenderListBox::renderName):
2675         * rendering/RenderListItem.cpp:
2676         (WebCore::RenderListItem::setStyle):
2677         (WebCore::getParentOfFirstLineBox):
2678         (WebCore::RenderListItem::updateMarkerLocation):
2679         (WebCore::RenderListItem::positionListMarker):
2680         (WebCore::RenderListItem::paint):
2681         * rendering/RenderListItem.h:
2682         * rendering/RenderListMarker.cpp:
2683         * rendering/RenderListMarker.h:
2684         (WebCore::RenderListMarker::renderName):
2685         (WebCore::RenderListMarker::isListMarker):
2686
2687 2006-10-30  Timothy Hatcher  <timothy@apple.com>
2688
2689         Reviewed by Hyatt.
2690
2691         <rdar://problem/4478625> Basic table editing and culling
2692
2693         Refined the criteria for deletable elements, rely on the renderer more.
2694         Corrected the interface positioning for elements that have borders.
2695
2696         * editing/DeleteButtonController.cpp:
2697         (WebCore::isDeletableElement):
2698         (WebCore::DeleteButtonController::show):
2699
2700 2006-10-30  Darin Adler  <darin@apple.com>
2701
2702         - fix build
2703
2704         * loader/ResourceLoader.h: Added header guard.
2705
2706 2006-10-31  Darin Adler  <darin@apple.com>
2707
2708         Reviewed by Adam.
2709
2710         - fix FrameLoader files so they can be built on non-Mac platforms
2711
2712         * page/FramePrivate.h:
2713         (WebCore::FramePrivate::FramePrivate): Added code to create the frame loader.
2714         (WebCore::FramePrivate::~FramePrivate): Added code to delete the frame loader.
2715
2716         * page/Page.h:
2717         * page/Page.cpp: (WebCore::Page::setDefersLoading): Removed the
2718         #if PLATFORM(MAC) that Adam added as a stop-gap when I did this wrong
2719         the other day.
2720
2721         * bridge/mac/FrameMac.mm:
2722         (WebCore::FrameMac::FrameMac): Removed code to create the frame loader.
2723         (WebCore::FrameMac::~FrameMac): Removed code to delete the frame loader.
2724
2725         * loader/FrameLoader.h: Changed import to include, added #if PLATFORM(MAC)
2726         around the PolicyCheck definition.
2727
2728         * loader/FormState.cpp: Changed import to include.
2729         * loader/FrameLoader.cpp: Ditto.
2730         * loader/MainResourceLoader.h: Ditto.
2731
2732         * loader/FrameLoaderTypes.h: Added a header guard.
2733
2734         * loader/NetscapePlugInStreamLoader.h: Changed import to include.
2735         Added #if PLATFORM(MAC) around Mac-specific details.
2736         * loader/SubresourceLoader.h: Ditto.
2737
2738         * page/Frame.cpp: (WebCore::Frame::loader): Updated name of loader to
2739         m_loader from m_frameLoader.
2740
2741         * CMakeLists.txt: Updated.
2742         * WebCoreSources.bkl: Updated.
2743
2744 2006-10-30  Nikolas Zimmermann  <zimmermann@kde.org>
2745
2746         Reviewed and landed by Anders.
2747
2748         Patch by Zack rusin to fix: 
2749         http://bugs.webkit.org/show_bug.cgi?id=11429
2750
2751         Fix startup crash.
2752
2753         * platform/qt/FrameQtClient.cpp:
2754         (WebCore::FrameQtClientDefault::openURL):
2755
2756 2006-10-30  Zach Rusin  <zack@kde.org>
2757
2758         Reviewed and landed by Anders.
2759
2760         * platform/network/qt/ResourceHandleQt.cpp:
2761         (WebCore::ResourceHandle::receivedResponse):
2762         * platform/qt/FrameQtClient.cpp:
2763         (WebCore::FrameQtClientDefault::FrameQtClientDefault):
2764         * platform/qt/LoaderFunctionsQt.cpp:
2765         (WebCore::ServeSynchronousRequest):
2766         More build fixes.
2767
2768 2006-10-30  Simon Hausmann  <hausmann@kde.org>
2769
2770         Reviewed and landed by Anders.
2771         
2772         - fix Qt build
2773         * platform/qt/FrameQtClient.cpp: ResourceLoaderClient ->
2774         ResourceHandleClient
2775
2776 2006-10-30  Darin Adler  <darin@apple.com>
2777
2778         Reviewed by John Sullivan.
2779
2780         - work toward removing Objective-C data types from FrameLoader.h:
2781           removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
2782           and WebCoreResourceHandle
2783         - moved bodyBackgroundColor function from Frame to WebFrame in WebKit
2784
2785         * page/PageState.h:
2786         * page/PageState.cpp: Added, C++ class with much of what WebCorePageState had.
2787
2788         * bridge/mac/FrameMac.h: Removed uneeeded declarations and bodyBackgroundColor().
2789         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::startRedirectionTimer): Use a
2790         double for the date instead of an NSDate.
2791
2792         * bridge/mac/WebCoreFrameBridge.h:
2793         * bridge/mac/WebCoreFrameBridge.mm: Removed invalidatePageCache and
2794         saveDocumentToPageCache methods.
2795
2796         * bridge/mac/WebCorePageState.h:
2797         * bridge/mac/WebCorePageState.mm: Removed most of the class and turned it into
2798         an Objective-C wrapper for PageState.
2799
2800         * loader/FrameLoader.h: Removed unused Objective-C types, eliminated use of
2801         NSDate and WebCorePageState.
2802         * loader/FrameLoaderClient.h: Changed NSDate to double.
2803         * loader/mac/FrameLoaderMac.mm:
2804         (WebCore::FrameLoader::receivedMainResourceError): Moved call to setInPageCache
2805         here that used to be in invalidateCurrentItemPageCache on the WebKit side.
2806         (WebCore::FrameLoader::clientRedirected): Changed NSDate to double for date.
2807         (WebCore::FrameLoader::open): Moved one of the open functions that was part of
2808         commitProvisionalLoad inside the commitProvisionalLoad function, so that it can
2809         extract the parameters from the response. Changed the open function that takes
2810         a PageState to use the new C++ PageState.
2811         (WebCore::FrameLoader::commitProvisionalLoad): Added the code from the open
2812         function; tightened up logic, removing a few cases that could never happen, as
2813         well as the unused reload boolean.
2814
2815         * ForwardingHeaders/kjs/property_map.h: Added.
2816
2817         * WebCore.exp: Updated.
2818         * WebCore.xcodeproj/project.pbxproj: Updated.
2819
2820 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
2821
2822         Reviewed by Anders.
2823
2824         - added ResourceResponse class and didReceiveResponse delegate call
2825         
2826         * WebCore.xcodeproj/project.pbxproj: Added new files.
2827         * bridge/mac/WebCoreFrameBridge.h: Removed no longer needed
2828         expiresTimeForResponse: method.
2829         * dom/XMLTokenizer.cpp:
2830         (WebCore::openFunc): Updated to use ResourceResponse.
2831         * loader/FrameLoader.h: Update loadResourceSynchronously to
2832         use ResourceResponse.
2833         * loader/LoaderFunctions.h:
2834         * loader/icon/IconLoader.cpp:
2835         (IconLoader::didReceiveResponse): Updated from receivedResponse
2836         and made cross-platform.
2837         * loader/icon/IconLoader.h: updated for above change
2838         * loader/loader.cpp:
2839         (WebCore::Loader::receivedResponse): reduced to just saving
2840         the PlatformResponse (ideally we'd phase out use of this).
2841         (WebCore::Loader::didReceivedResponse): most of the ReceivedResponse 
2842         logic.
2843         * loader/loader.h:
2844         * loader/mac/FrameLoaderMac.mm:
2845         (WebCore::FrameLoader::loadResourceSynchronously): Return results
2846         as ResourceResponse.
2847         * loader/mac/IconLoaderMac.mm: remove receivedResponse.
2848         * loader/mac/LoaderFunctionsMac.mm:
2849         (WebCore::ServeSynchronousRequest): take ResourceResponse as
2850         argument.
2851         * platform/network/ResourceHandle.cpp:
2852         * platform/network/ResourceHandle.h: Remove calls for
2853         broken out response pieces.
2854         * platform/network/ResourceHandleClient.h:
2855         (WebCore::ResourceHandleClient::didReceiveResponse): New
2856         delegate method.
2857         * platform/network/ResourceHandleInternal.h:
2858         (WebCore::ResourceHandleInternal::ResourceHandleInternal): Remove
2859         storage of response bits, we're not gonna return them
2860         seprately any more.
2861         * platform/network/ResourceResponse.h: Added.
2862         (WebCore::ResourceResponse::ResourceResponse): Freshly
2863         implemented. Same for below.
2864         (WebCore::ResourceResponse::url):
2865         (WebCore::ResourceResponse::mimeType):
2866         (WebCore::ResourceResponse::expectedContentLength):
2867         (WebCore::ResourceResponse::textEncodingName):
2868         (WebCore::ResourceResponse::suggestedFilename):
2869         (WebCore::ResourceResponse::httpStatusCode):
2870         (WebCore::ResourceResponse::setHTTPStatusCode):
2871         (WebCore::ResourceResponse::httpHeaderField):
2872         (WebCore::ResourceResponse::httpHeaderFields):
2873         (WebCore::ResourceResponse::isMultipart):
2874         (WebCore::ResourceResponse::setExpirationDate):
2875         (WebCore::ResourceResponse::expirationDate):
2876         * platform/network/cf/ResourceHandleCFNet.cpp:
2877         (WebCore::didReceiveResponse): Send didReceiveResponse
2878         client method.
2879         * platform/network/cf/ResourceResponseCFNet.h: Added.
2880         * platform/network/cf/ResourceResponseCFNet.mm: Added.
2881         (getResourceResponse): Helper function to get a ResourceResponse 
2882         from CFURLResponseRef.
2883         * platform/network/mac/ResourceHandleMac.mm:
2884         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
2885         Don't bother cleaning up fields we no longer have.
2886         (WebCore::ResourceHandle::receivedResponse): Send
2887         didReceiveResponse client method.
2888         * platform/network/mac/ResourceResponseMac.h: Added.
2889         * platform/network/mac/ResourceResponseMac.mm: Added.
2890         (getResourceResponse): Helper function to get a ResourceResponse 
2891         from an NSURLResponse*.
2892         * rendering/HitTestResult.cpp:
2893         * xml/XSLTProcessor.cpp:
2894         (WebCore::docLoaderFunc): Prepare for use of ResourceResponse.
2895         * xml/xmlhttprequest.cpp:
2896         (WebCore::XMLHttpRequest::getResponseText): Store http response
2897         info in the form of a ResourceResponse, change all methods to
2898         account for this.
2899         (WebCore::XMLHttpRequest::getResponseXML):
2900         (WebCore::XMLHttpRequest::XMLHttpRequest):
2901         (WebCore::XMLHttpRequest::open):
2902         (WebCore::XMLHttpRequest::send):
2903         (WebCore::XMLHttpRequest::getAllResponseHeaders):
2904         (WebCore::XMLHttpRequest::getResponseHeader):
2905         (WebCore::XMLHttpRequest::getStatus):
2906         (WebCore::XMLHttpRequest::getStatusText):
2907         (WebCore::XMLHttpRequest::processSyncLoadResults):
2908         (WebCore::XMLHttpRequest::didFinishLoading):
2909         (WebCore::XMLHttpRequest::didReceiveResponse):
2910         (WebCore::XMLHttpRequest::didReceiveData):
2911         * xml/xmlhttprequest.h:
2912
2913 2006-10-29  Darin Adler  <darin@apple.com>
2914
2915         - fix build
2916
2917         * loader/DocumentLoader.h: Add declarations so this compiles without ObjC.
2918         * loader/NetscapePlugInStreamLoader.h: Ditto.
2919         * loader/ResourceLoader.h: Ditto.
2920
2921 2006-10-29  Darin Adler  <darin@apple.com>
2922
2923         - one last name change -- WebFormState.h to FormState.h
2924         - added more empty placeholder platform-independent files
2925           for currently-Mac-specific loader classes
2926
2927         * loader/FormState.cpp: Updated include.
2928         * loader/FrameLoader.cpp: Updated include.
2929         * loader/mac/FrameLoaderMac.mm: Updated include.
2930
2931         * loader/WebFormState.h: Removed.
2932         * loader/FormState.h: Added.
2933
2934         * loader/DocumentLoader.cpp: Added.
2935         * loader/MainResourceLoader.cpp: Added.
2936         * loader/NetscapePlugInStreamLoader.cpp: Added.
2937         * loader/ResourceLoader.cpp: Added.
2938         * loader/SubresourceLoader.cpp: Added.
2939
2940         * WebCore.xcodeproj/project.pbxproj: Updated for changes above.
2941
2942 2006-10-29  Darin Adler  <darin@apple.com>
2943
2944         - did the do-webcore-rename renames, including a number of changes
2945           to the names of loader files (and WebResourceLoader -> ResourceLoader),
2946           jScript() to scriptProxy(), jScriptEnabled() to javaScriptEnabled(),
2947           and improvements to the names of decoder classes and their source
2948           files (Decoder -> TextResourceDecoder, StreamingTextDecoder -> TextCodec)
2949
2950         * CMakeLists.txt:
2951         * WebCore.exp:
2952         * WebCore.vcproj/WebCore/WebCore.vcproj:
2953         * WebCore.xcodeproj/project.pbxproj:
2954         * WebCoreSources.bkl:
2955         * bindings/js/kjs_binding.cpp:
2956         (KJS::ScriptInterpreter::updateDOMNodeDocument):
2957         * bindings/js/kjs_events.cpp:
2958         (KJS::JSAbstractEventListener::handleEvent):
2959         (KJS::JSLazyEventListener::parseCode):
2960         * bindings/js/kjs_html.cpp:
2961         (KJS::JSHTMLElement::implementsCall):
2962         * bindings/js/kjs_traversal.cpp:
2963         (KJS::JSNodeFilterCondition::acceptNode):
2964         * bindings/js/kjs_window.cpp:
2965         (KJS::Window::interpreter):
2966         (KJS::Window::retrieveWindow):
2967         (KJS::Window::retrieve):
2968         (KJS::ScheduledAction::execute):
2969         * bindings/objc/DOMInternal.mm:
2970         (-[WebScriptObject _initializeScriptDOMNodeImp]):
2971         * bridge/mac/FrameMac.mm:
2972         (WebCore::FrameMac::executionContextForDOM):
2973         (WebCore::FrameMac::bindingRootObject):
2974         (WebCore::FrameMac::windowScriptObject):
2975         (WebCore::FrameMac::windowScriptNPObject):
2976         (WebCore::FrameMac::partClearedInBegin):
2977         * bridge/mac/WebCoreEncodings.mm:
2978         * bridge/mac/WebCoreFrameBridge.mm:
2979         (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
2980         (-[WebCoreFrameBridge stringWithData:]):
2981         (-[WebCoreFrameBridge executionContextForView:]):
2982         * bridge/win/FrameWin.cpp:
2983         * dom/Document.cpp:
2984         (WebCore::Document::inputEncoding):
2985         (WebCore::Document::setCharset):
2986         (WebCore::Document::createHTMLEventListener):
2987         (WebCore::Document::setDecoder):
2988         * dom/Document.h:
2989         (WebCore::Document::decoder):
2990         * dom/EventTargetNode.cpp:
2991         (WebCore::EventTargetNode::dispatchGenericEvent):
2992         * html/HTMLParser.cpp:
2993         (WebCore::HTMLParser::noscriptCreateErrorCheck):
2994         (WebCore::HTMLParser::canvasCreateErrorCheck):
2995         (WebCore::HTMLParser::isInline):
2996         * html/HTMLPlugInElement.cpp:
2997         (WebCore::HTMLPlugInElement::createNPObject):
2998         * html/HTMLScriptElement.cpp:
2999         (WebCore::HTMLScriptElement::evaluateScript):
3000         * html/HTMLTokenizer.cpp:
3001         (WebCore::HTMLTokenizer::parseTag):
3002         (WebCore::HTMLTokenizer::processToken):
3003         * ksvg2/misc/SVGDocumentExtensions.cpp:
3004         (WebCore::SVGDocumentExtensions::createSVGEventListener):
3005         * loader/CachedCSSStyleSheet.cpp:
3006         (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
3007         (WebCore::CachedCSSStyleSheet::setEncoding):
3008         * loader/CachedCSSStyleSheet.h:
3009         * loader/CachedXBLDocument.cpp:
3010         (WebCore::CachedXBLDocument::CachedXBLDocument):
3011         (WebCore::CachedXBLDocument::setEncoding):
3012         * loader/CachedXBLDocument.h:
3013         * loader/CachedXSLStyleSheet.cpp:
3014         (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
3015         (WebCore::CachedXSLStyleSheet::setEncoding):
3016         * loader/CachedXSLStyleSheet.h:
3017         * loader/Decoder.cpp: Removed.
3018         * loader/Decoder.h: Removed.
3019         * loader/FrameLoader.cpp:
3020         * loader/FrameLoader.h:
3021         * loader/FrameLoaderClient.h:
3022         * loader/MainResourceLoader.h: Added.
3023         * loader/NetscapePlugInStreamLoader.h: Added.
3024         * loader/Request.h:
3025         (WebCore::Request::cachedResource):
3026         * loader/ResourceLoader.h: Added.
3027         * loader/SubresourceLoader.h: Added.
3028         * loader/TextResourceDecoder.cpp: Added.
3029         (WebCore::TextResourceDecoder::determineContentType):
3030         (WebCore::TextResourceDecoder::defaultEncoding):
3031         (WebCore::TextResourceDecoder::TextResourceDecoder):
3032         (WebCore::TextResourceDecoder::~TextResourceDecoder):
3033         (WebCore::TextResourceDecoder::setEncoding):
3034         (WebCore::TextResourceDecoder::checkForBOM):
3035         (WebCore::TextResourceDecoder::checkForCSSCharset):
3036         (WebCore::TextResourceDecoder::checkForHeadCharset):
3037         (WebCore::TextResourceDecoder::detectJapaneseEncoding):
3038         (WebCore::TextResourceDecoder::decode):
3039         (WebCore::TextResourceDecoder::flush):
3040         * loader/TextResourceDecoder.h: Added.
3041         * loader/WebDocumentLoader.h: Removed.
3042         * loader/WebLoader.h: Removed.
3043         * loader/WebMainResourceLoader.h: Removed.
3044         * loader/WebNetscapePlugInStreamLoader.h: Removed.
3045         * loader/WebSubresourceLoader.h: Removed.
3046         * loader/loader.cpp:
3047         (WebCore::Loader::servePendingRequests):
3048         (WebCore::Loader::receivedAllData):
3049         (WebCore::Loader::receivedResponse):
3050         (WebCore::Loader::didReceiveData):
3051         (WebCore::Loader::cancelRequests):
3052         (WebCore::Loader::jobForRequest):
3053         * loader/mac/DocumentLoaderMac.mm:
3054         * loader/mac/FormDataStream.m: Added.
3055         * loader/mac/FrameLoaderMac.mm:
3056         (WebCore::FrameLoader::cancelPendingArchiveLoad):
3057         (WebCore::FrameLoader::addPlugInStreamLoader):
3058         (WebCore::FrameLoader::removePlugInStreamLoader):
3059         (WebCore::FrameLoader::addSubresourceLoader):
3060         (WebCore::FrameLoader::removeSubresourceLoader):
3061         (WebCore::FrameLoader::willSendRequest):
3062         (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
3063         (WebCore::FrameLoader::didCancelAuthenticationChallenge):
3064         (WebCore::FrameLoader::didReceiveResponse):
3065         (WebCore::FrameLoader::didReceiveData):
3066         (WebCore::FrameLoader::didFinishLoad):
3067         (WebCore::FrameLoader::didFailToLoad):
3068         (WebCore::FrameLoader::open):
3069         (WebCore::FrameLoader::willUseArchive):
3070         (WebCore::FrameLoader::isArchiveLoadPending):
3071         * loader/mac/ImageDocumentMac.mm:
3072         * loader/mac/LoaderFunctionsMac.mm:
3073         (WebCore::CheckCacheObjectStatus):
3074         * loader/mac/MainResourceLoaderMac.mm:
3075         (WebCore::MainResourceLoader::MainResourceLoader):
3076         (WebCore::MainResourceLoader::releaseDelegate):
3077         (WebCore::MainResourceLoader::didCancel):
3078         (WebCore::MainResourceLoader::addData):
3079         (WebCore::MainResourceLoader::willSendRequest):
3080         (WebCore::MainResourceLoader::continueAfterContentPolicy):
3081         (WebCore::MainResourceLoader::didReceiveData):
3082         (WebCore::MainResourceLoader::didFinishLoading):
3083         (WebCore::MainResourceLoader::setDefersLoading):
3084         * loader/mac/NetscapePlugInStreamLoaderMac.mm:
3085         (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
3086         (WebCore::NetscapePlugInStreamLoader::releaseResources):
3087         (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
3088         (WebCore::NetscapePlugInStreamLoader::didReceiveData):
3089         (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
3090         (WebCore::NetscapePlugInStreamLoader::didFail):
3091         (WebCore::NetscapePlugInStreamLoader::didCancel):
3092         * loader/mac/ResourceLoaderMac.mm:
3093         (WebCore::ResourceLoader::ResourceLoader):
3094         (WebCore::ResourceLoader::~ResourceLoader):
3095         (WebCore::ResourceLoader::releaseResources):
3096         (WebCore::ResourceLoader::load):
3097         (WebCore::ResourceLoader::setDefersLoading):
3098         (WebCore::ResourceLoader::frameLoader):
3099         (WebCore::ResourceLoader::addData):
3100         (WebCore::ResourceLoader::resourceData):
3101         (WebCore::ResourceLoader::clearResourceData):
3102         (WebCore::ResourceLoader::willSendRequest):
3103         (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
3104         (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
3105         (WebCore::ResourceLoader::didReceiveResponse):
3106         (WebCore::ResourceLoader::didReceiveData):
3107         (WebCore::ResourceLoader::willStopBufferingData):
3108         (WebCore::ResourceLoader::didFinishLoading):
3109         (WebCore::ResourceLoader::didFinishLoadingOnePart):
3110         (WebCore::ResourceLoader::didFail):
3111         (WebCore::ResourceLoader::willCacheResponse):
3112         (WebCore::ResourceLoader::didCancel):
3113         (WebCore::ResourceLoader::cancel):
3114         (WebCore::ResourceLoader::setIdentifier):
3115         (WebCore::ResourceLoader::response):
3116         (WebCore::ResourceLoader::inConnectionCallback):
3117         (WebCore::ResourceLoader::cancelledError):
3118         (WebCore::ResourceLoader::receivedCredential):
3119         (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
3120         (WebCore::ResourceLoader::receivedCancellation):
3121         (WebCore::ResourceLoader::delegate):
3122         (WebCore::ResourceLoader::releaseDelegate):
3123         (-[WebCoreResourceLoaderAsDelegate initWithLoader:]):
3124         * loader/mac/SubresourceLoaderMac.mm:
3125         (WebCore::SubresourceLoader::SubresourceLoader):
3126         (WebCore::SubresourceLoader::willSendRequest):
3127         (WebCore::SubresourceLoader::didReceiveResponse):
3128         (WebCore::SubresourceLoader::didReceiveData):
3129         (WebCore::SubresourceLoader::didFinishLoading):
3130         (WebCore::SubresourceLoader::didFail):
3131         (WebCore::SubresourceLoader::didCancel):
3132         * loader/mac/WebFormDataStream.h: Removed.
3133         * loader/mac/WebFormDataStream.m: Removed.
3134         * page/Frame.cpp:
3135         (WebCore::Frame::javaScriptEnabled):
3136         (WebCore::Frame::scriptProxy):
3137         (WebCore::Frame::executeScript):
3138         (WebCore::Frame::write):
3139         (WebCore::Frame::userGestureHint):
3140         (WebCore::Frame::saveInterpreterBuiltins):
3141         (WebCore::Frame::restoreInterpreterBuiltins):
3142         (WebCore::Frame::backslashAsCurrencySymbol):
3143         * page/Frame.h:
3144         * page/FramePrivate.h:
3145         * platform/StreamingTextDecoder.cpp: Removed.
3146         * platform/StreamingTextDecoder.h: Removed.
3147         * platform/StreamingTextDecoderICU.cpp: Removed.
3148         * platform/StreamingTextDecoderICU.h: Removed.
3149         * platform/TextCodec.cpp: Added.
3150         * platform/TextCodec.h: Added.
3151         * platform/TextCodecICU.cpp: Added.
3152         * platform/TextCodecICU.h: Added.
3153         * platform/TextCodecLatin1.h:
3154         * platform/TextCodecUTF16.h:
3155         * platform/TextDecoder.h:
3156         * platform/TextEncoding.cpp:
3157         * platform/TextEncodingRegistry.cpp:
3158         * platform/image-decoders/jpeg/jmorecfg.h:
3159         * platform/mac/StreamingTextDecoderMac.cpp: Removed.
3160         * platform/mac/StreamingTextDecoderMac.h: Removed.
3161         * platform/mac/TextCodecMac.cpp: Added.
3162         * platform/mac/TextCodecMac.h: Added.
3163         * platform/network/ResourceHandleInternal.h:
3164         * platform/network/mac/ResourceHandleMac.mm:
3165         * platform/qt/FrameQt.cpp:
3166         (WebCore::FrameQt::bindingRootObject):
3167         * platform/qt/LoaderFunctionsQt.cpp:
3168         (WebCore::CheckCacheObjectStatus):
3169         * rendering/RenderObject.cpp:
3170         (WebCore::RenderObject::backslashAsCurrencySymbol):
3171         * xml/XSLTProcessor.cpp:
3172         (WebCore::XSLTProcessor::createDocumentFromSource):
3173         * xml/xmlhttprequest.cpp:
3174         (WebCore::XMLHttpRequest::didReceiveData):
3175         * xml/xmlhttprequest.h:
3176
3177 2006-10-29  Darin Adler  <darin@apple.com>
3178
3179         Rubber stamped by Adam (kinda).
3180
3181         - add Mac suffixes and correct filenames inside loader/mac
3182
3183         * WebCore.xcodeproj/project.pbxproj: Updated for changes below.
3184
3185         * loader/mac/FrameLoader.mm: Removed.
3186         * loader/mac/WebDocumentLoader.mm: Removed.
3187         * loader/mac/WebLoader.mm: Removed.
3188         * loader/mac/WebMainResourceLoader.mm: Removed.
3189         * loader/mac/WebNetscapePlugInStreamLoader.mm: Removed.
3190         * loader/mac/WebSubresourceLoader.mm: Removed.
3191
3192         * loader/mac/FrameLoaderMac.mm: Added.
3193         * loader/mac/DocumentLoaderMac.mm: Added.
3194         * loader/mac/ResourceLoaderMac.mm: Added.
3195         * loader/mac/MainResourceLoaderMac.mm: Added.
3196         * loader/mac/WebNetscapePlugInStreamLoaderMac.mm: Added.
3197         * loader/mac/SubresourceLoaderMac.mm: Removed.
3198
3199 2006-10-29  Darin Adler  <darin@apple.com>
3200
3201         Reviewed by Adam.
3202
3203         - moving towards use of FrameLoader cross-platform; get FrameLoader.h
3204           and FrameLoader.cpp mostly ready
3205
3206         * WebCore.xcodeproj/project.pbxproj: Added FrameLoader.cpp and
3207         FormState.cpp. Removed WebFormState.mm.
3208
3209         * loader/FrameLoader.h: Put in lots of #if statements to see if we can
3210         get this header compiling on non-Mac.
3211         * loader/FrameLoader.cpp: Added. Has non-Mac-specific bits of FrameLoader.
3212         * loader/mac/FrameLoader.mm: Moved some non-Mac-specific bits out.
3213
3214         * loader/FrameLoaderClient.h: Added some ifdefs.
3215         * loader/WebDocumentLoader.h: Ditto.
3216         * loader/WebLoader.h: Ditto.
3217         * loader/WebMainResourceLoader.h: Ditto.
3218
3219         * loader/mac/WebDocumentLoader.mm:
3220         (WebCore::DocumentLoader::isLoadingInAPISense):
3221         Rewrote to work without bridge, partly to remove the need for ObjC
3222         bridge type in the header, and also because we're tearing down the bridge.
3223
3224         * loader/mac/WebMainResourceLoader.mm:
3225         (WebCore::MainResourceLoader::MainResourceLoader): Removed unused
3226         m_contentLength and m_bytesReceived.
3227         (WebCore::MainResourceLoader::didReceiveResponse): Ditto.
3228         (WebCore::MainResourceLoader::didReceiveData): Ditto.
3229
3230         * bridge/mac/WebCoreFrameBridge.h: Removed doneProcessingData.
3231         * bridge/mac/WebCoreFrameBridge.mm: Ditto.
3232
3233         * loader/mac/FormState.mm: Removed.
3234         * loader/FormState.cpp: Added.
3235
3236 2006-10-29  Darin Adler  <darin@apple.com>
3237
3238         Rubber stamped by Adam.
3239
3240         - moving towards use of FrameLoader cross-platform; move the headers
3241           for the Mac loader from loader/mac into loader, in preparation for
3242           making them useful on non-Mac
3243
3244         * WebCore.xcodeproj/project.pbxproj:
3245
3246         * loader/mac/FrameLoader.h: Removed.
3247         * loader/mac/WebDocumentLoader.h: Removed.
3248         * loader/mac/WebFormState.h: Removed.
3249         * loader/mac/WebLoader.h: Removed.
3250         * loader/mac/WebMainResourceLoader.h: Removed.
3251         * loader/mac/WebNetscapePlugInStreamLoader.h: Removed.
3252         * loader/mac/WebSubresourceLoader.h: Removed.
3253
3254         * loader/FrameLoader.h: Added.
3255         * loader/WebDocumentLoader.h: Added.
3256         * loader/WebFormState.h: Added.
3257         * loader/WebLoader.h: Added.
3258         * loader/WebMainResourceLoader.h: Added.
3259         * loader/WebNetscapePlugInStreamLoader.h: Added.
3260         * loader/WebSubresourceLoader.h: Added.
3261
3262 2006-10-29  Adam Roben  <aroben@apple.com>
3263
3264         Reviewed by Geoff.
3265
3266         Finish Darin's clean up of the use of __APPLE__ in WebCore, begun in
3267         r17405.
3268
3269         * platform/DeprecatedString.h:
3270
3271 2006-10-29  Beth Dakin  <bdakin@apple.com>
3272
3273         Rubber stamped by Geoff.
3274
3275         This is a followup to my HitTestResult checkin. Most of the 
3276         HitTestResult local variables in the code were named i or info for 
3277         when the class was named NodeInfo. This patch renames all of these 
3278         local variables to result.
3279
3280         * dom/Document.cpp:
3281         (WebCore::Document::prepareMouseEvent):
3282         * html/HTMLAreaElement.cpp:
3283         (WebCore::HTMLAreaElement::mapMouseEvent):
3284         * html/HTMLMapElement.cpp:
3285         (WebCore::HTMLMapElement::mapMouseEvent):
3286         * rendering/EllipsisBox.cpp:
3287         (WebCore::EllipsisBox::nodeAtPoint):
3288         * rendering/EllipsisBox.h:
3289         * rendering/InlineBox.cpp:
3290         (WebCore::InlineBox::nodeAtPoint):
3291         * rendering/InlineFlowBox.cpp:
3292         (WebCore::InlineFlowBox::nodeAtPoint):
3293         * rendering/InlineTextBox.cpp:
3294         (WebCore::InlineTextBox::nodeAtPoint):
3295         * rendering/RenderBlock.cpp:
3296         (WebCore::RenderBlock::isPointInScrollbar):
3297         (WebCore::RenderBlock::nodeAtPoint):
3298         * rendering/RenderBlock.h:
3299         * rendering/RenderBox.cpp:
3300         (WebCore::RenderBox::nodeAtPoint):
3301         * rendering/RenderBox.h:
3302         * rendering/RenderFlow.cpp:
3303         (WebCore::RenderFlow::hitTestLines):
3304         * rendering/RenderFlow.h:
3305         * rendering/RenderForeignObject.cpp:
3306         (WebCore::RenderForeignObject::nodeAtPoint):
3307         * rendering/RenderFrameSet.cpp:
3308         (WebCore::RenderFrameSet::nodeAtPoint):
3309         * rendering/RenderImage.cpp:
3310         (WebCore::RenderImage::nodeAtPoint):
3311         * rendering/RenderInline.cpp:
3312         (WebCore::RenderInline::nodeAtPoint):
3313         * rendering/RenderInline.h:
3314         * rendering/RenderLayer.cpp:
3315         (WebCore::RenderLayer::autoscroll):
3316         (WebCore::RenderLayer::hitTest):
3317         (WebCore::RenderLayer::hitTestLayer):
3318         (WebCore::RenderLayer::updateHoverActiveState):
3319         * rendering/RenderListBox.cpp:
3320         (WebCore::RenderListBox::isPointInScrollbar):
3321         * rendering/RenderObject.cpp:
3322         (WebCore::RenderObject::hitTest):
3323         (WebCore::RenderObject::setInnerNode):
3324         (WebCore::RenderObject::nodeAtPoint):
3325         * rendering/RenderObject.h:
3326         * rendering/RenderPath.cpp:
3327         (WebCore::RenderPath::nodeAtPoint):
3328         * rendering/RenderSVGImage.cpp:
3329         (WebCore::RenderSVGImage::nodeAtPoint):
3330         * rendering/RenderSVGText.cpp:
3331         (WebCore::RenderSVGText::nodeAtPoint):
3332         * rendering/RenderTableRow.cpp:
3333         (WebCore::RenderTableRow::nodeAtPoint):
3334         * rendering/RenderTableRow.h:
3335         * rendering/RenderTableSection.cpp:
3336         (WebCore::RenderTableSection::nodeAtPoint):
3337         * rendering/RenderTableSection.h:
3338         * rendering/RenderTextControl.cpp:
3339         (WebCore::RenderTextControl::nodeAtPoint):
3340         * rendering/RootInlineBox.cpp:
3341         (WebCore::RootInlineBox::nodeAtPoint):
3342         * rendering/RootInlineBox.h:
3343
3344 2006-10-29  Adam Roben  <aroben@apple.com>
3345
3346         More semi-fixes.
3347
3348         * page/Page.cpp: Forgot to wrap the actual definition of
3349         setDefersLoading() in PLATFORM(MAC).
3350         * platform/PlatformWheelEvent.h: Fix up preprocessor directives.
3351
3352 2006-10-29  Adam Roben  <aroben@apple.com>
3353
3354         Build semi-fix.
3355
3356         Move all FrameLoader-related code in Page.{cpp,h} within #if
3357         PLATFORM(MAC), since this class currently only exists on Mac.
3358
3359         * page/Page.cpp:
3360         * page/Page.h:
3361
3362 2006-10-29  Geoffrey Garen  <ggaren@apple.com>
3363
3364         build fix.
3365         
3366         * platform/PlatformString.h:
3367         (WebCore::String::operator NSString*):
3368
3369 2006-10-29  Geoffrey Garen  <ggaren@apple.com>
3370
3371         Rolled out accidental commit.
3372         
3373         * platform/AtomicString.h:
3374         (WebCore::AtomicString::AtomicString):
3375         (WebCore::AtomicString::operator NSString*):
3376
3377 2006-10-29  Geoffrey Garen  <ggaren@apple.com>
3378
3379         RS by Darin.
3380
3381         Rolled out change to map NULL Strings to nil NSStrings because it caused
3382         even more AppKit crashes. Maybe we should remove the NSString * operator
3383         entirely, since its use is not straight-forward, and require callers to
3384         specify explicitly whether they tolerate NULL.
3385         
3386         * platform/AtomicString.h:
3387         * platform/PlatformString.h:
3388         (WebCore::String::operator NSString*):
3389         * platform/mac/TextFieldMac.mm:
3390         (-[NSSearchFieldCell _addStringToRecentSearches:]):
3391
3392 2006-10-29  Darin Adler  <darin@apple.com>
3393
3394         Reviewed by Geoff.
3395
3396         - fixed storage leak showing up on the buildbot
3397
3398         * loader/mac/WebSubresourceLoader.mm: (WebCore::SubresourceLoader::create):
3399         Release the NSURLRequest after passing it to load. Also clean up logic a bit.
3400
3401 2006-10-29  Darin Adler  <darin@apple.com>
3402
3403         Rubber stamped by Adam.
3404
3405         - renamed WebFrameLoaderClient to match the class name inside it
3406
3407         * loader/mac/WebFrameLoaderClient.h: Removed.
3408         * loader/FrameLoaderClient.h: Moved it here.
3409
3410         * WebCore.xcodeproj/project.pbxproj: Updated project.
3411
3412         * bridge/mac/FrameMac.mm: Updated includes.
3413         * bridge/mac/WebCoreFrameBridge.mm: Ditto.
3414         * loader/mac/FrameLoader.mm: Ditto.
3415         * loader/mac/WebLoader.h: Ditto.
3416
3417 2006-10-29  Darin Adler  <darin@apple.com>
3418
3419         Reviewed by Mitz.
3420
3421         - fix crash visible on buildbot and also when running the test
3422           anchor-image-scrolled-x-y.html under libgmalloc
3423
3424         * loader/mac/WebSubresourceLoader.h: Renamed m_loader to m_handle
3425         now that the class is named ResourceHandle.
3426         * loader/mac/WebSubresourceLoader.mm: Renaming, plus:
3427         (WebCore::SubresourceLoader::didFinishLoading): Get the handle into
3428         a local RefPtr before calling finishJobAndHandle, since we might get
3429         cancelled inside that function, so we should not rely on m_handle to
3430         keep the ResourceHandle alive.
3431         (WebCore::SubresourceLoader::didFail): Ditto.
3432         (WebCore::SubresourceLoader::didCancel): Ditto.
3433
3434 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
3435
3436         - build fix
3437
3438         * platform/network/mac/ResourceHandleMac.mm:
3439
3440 2006-10-29  Maciej Stachowiak  <mjs@apple.com>
3441
3442         Rubber stamped by Darin.
3443
3444         - renamed ResourceLoader to ResourceHandle (and same for related classes)
3445
3446         * CMakeLists.txt:
3447         * Projects/gdk/webcore-gdk.bkl:
3448         * WebCore.vcproj/WebCore/WebCore.vcproj:
3449         * WebCore.xcodeproj/project.pbxproj:
3450         * WebCoreSources.bkl:
3451         * bridge/mac/FrameMac.mm:
3452         * bridge/win/FrameWin.cpp:
3453         * dom/XMLTokenizer.cpp:
3454         * loader/Cache.cpp:
3455         * loader/CachedResource.h:
3456         * loader/LoaderFunctions.h:
3457         * loader/icon/IconLoader.cpp:
3458         (IconLoader::startLoading):
3459         (IconLoader::didReceiveData):
3460         (IconLoader::didFinishLoading):
3461         * loader/icon/IconLoader.h:
3462         * loader/loader.cpp:
3463         (WebCore::Loader::servePendingRequests):
3464         (WebCore::Loader::receivedAllData):
3465         (WebCore::Loader::receivedResponse):
3466         (WebCore::Loader::didReceiveData):
3467         (WebCore::Loader::cancelRequests):
3468         (WebCore::Loader::jobForRequest):
3469         * loader/loader.h:
3470         * loader/mac/IconLoaderMac.mm:
3471         (IconLoader::receivedResponse):
3472         * loader/mac/LoaderFunctionsMac.mm:
3473         * loader/mac/WebLoader.h:
3474         * loader/mac/WebSubresourceLoader.h:
3475         * loader/mac/WebSubresourceLoader.mm:
3476         (WebCore::SubresourceLoader::SubresourceLoader):
3477         (WebCore::SubresourceLoader::create):
3478         * platform/gdk/FrameGdk.cpp:
3479         (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
3480         (WebCore::FrameGdkClientDefault::openURL):
3481         (WebCore::FrameGdkClientDefault::submitForm):
3482         (WebCore::FrameGdkClientDefault::receivedResponse):
3483         (WebCore::FrameGdkClientDefault::didReceiveData):
3484         (WebCore::FrameGdkClientDefault::receivedAllData):
3485         * platform/gdk/FrameGdk.h:
3486         * platform/gdk/TemporaryLinkStubs.cpp:
3487         (WebCore::ServeSynchronousRequest):
3488         (WebCore::ResourceHandle::assembleResponseHeaders):
3489         (WebCore::ResourceHandle::retrieveCharset):
3490         * platform/network/ResourceHandle.cpp: Added.
3491         (WebCore::ResourceHandle::ResourceHandle):
3492         (WebCore::ResourceHandle::create):
3493         (WebCore::ResourceHandle::isErrorPage):
3494         (WebCore::ResourceHandle::error):
3495         (WebCore::ResourceHandle::setError):
3496         (WebCore::ResourceHandle::responseEncoding):
3497         (WebCore::ResourceHandle::responseHTTPHeadersAsString):
3498         (WebCore::ResourceHandle::kill):
3499         (WebCore::ResourceHandle::requestHeaders):
3500         (WebCore::ResourceHandle::url):
3501         (WebCore::ResourceHandle::postData):
3502         (WebCore::ResourceHandle::method):
3503         (WebCore::ResourceHandle::client):
3504         * platform/network/ResourceHandle.h: Added.
3505         (WebCore::ResourceHandle::getInternal):
3506         * platform/network/ResourceHandleClient.h: Added.
3507         (WebCore::ResourceHandleClient::~ResourceHandleClient):
3508         (WebCore::ResourceHandleClient::didReceiveData):
3509         (WebCore::ResourceHandleClient::didFinishLoading):
3510         (WebCore::ResourceHandleClient::receivedRedirect):
3511         (WebCore::ResourceHandleClient::receivedResponse):
3512         (WebCore::ResourceHandleClient::receivedAllData):
3513         * platform/network/ResourceHandleInternal.h: Added.
3514         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
3515         * platform/network/ResourceLoader.cpp: Removed.
3516         * platform/network/ResourceLoader.h: Removed.
3517         * platform/network/ResourceLoaderClient.h: Removed.
3518         * platform/network/ResourceLoaderInternal.h: Removed.
3519         * platform/network/cf/ResourceHandleCFNet.cpp: Added.
3520         (WebCore::willSendRequest):
3521         (WebCore::didReceiveResponse):
3522         (WebCore::didReceiveData):
3523         (WebCore::didFinishLoading):
3524         (WebCore::didFail):
3525         (WebCore::willCacheResponse):
3526         (WebCore::didReceiveChallenge):
3527         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
3528         (WebCore::ResourceHandle::~ResourceHandle):
3529         (WebCore::ResourceHandle::start):
3530         (WebCore::ResourceHandle::cancel):
3531         * platform/network/cf/ResourceLoaderCFNet.cpp: Removed.
3532         * platform/network/gdk/ResourceHandleCurl.cpp: Added.
3533         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
3534         (WebCore::ResourceHandle::~ResourceHandle):
3535         (WebCore::ResourceHandle::start):
3536         (WebCore::ResourceHandle::cancel):
3537         * platform/network/gdk/ResourceHandleManager.cpp: Added.
3538         (WebCore::ResourceHandleManager::ResourceHandleManager):
3539         (WebCore::ResourceHandleManager::get):
3540         (WebCore::ResourceHandleManager::useSimpleTransfer):
3541         (WebCore::writeCallback):
3542         (WebCore::ResourceHandleManager::downloadTimerCallback):
3543         (WebCore::ResourceHandleManager::remove):
3544         (WebCore::ResourceHandleManager::add):
3545         (WebCore::ResourceHandleManager::cancel):
3546         * platform/network/gdk/ResourceHandleManager.h: Added.
354