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