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