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