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