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