Fix for 7837, make opacity work with table rows. Make transparent backgrounds
[WebKit-https.git] / WebCore / ChangeLog
1 2006-03-17  David Hyatt  <hyatt@apple.com>
2
3         Fix for 7837, make opacity work with table rows.  Make transparent backgrounds
4         stack properly in cells (so that the layers behind can show through like they
5         should).
6
7         Reviewed by beth
8
9         * rendering/RenderTableCell.cpp:
10         (WebCore::RenderTableCell::requiresLayer):
11         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
12         (WebCore::RenderTableCell::paintBoxDecorations):
13         * rendering/RenderTableCell.h:
14         * rendering/RenderTableRow.cpp:
15         (WebCore::RenderTableRow::paint):
16         * rendering/RenderTableRow.h:
17         (WebCore::RenderTableRow::requiresLayer):
18         * rendering/RenderTableSection.cpp:
19         (WebCore::RenderTableSection::paint):
20         * rendering/render_layer.cpp:
21         (WebCore::RenderLayer::updateLayerPosition):
22         (WebCore::RenderLayer::isTransparent):
23         (WebCore::RenderLayer::transparentAncestor):
24         (WebCore::RenderLayer::beginTransparencyLayers):
25         (WebCore::RenderLayer::paintLayer):
26         (WebCore::RenderLayer::absoluteBoundingBox):
27         * rendering/render_object.cpp:
28         (WebCore::RenderObject::requiresLayer):
29         * rendering/render_object.h:
30         (WebCore::RenderObject::isTransparent):
31         (WebCore::RenderObject::opacity):
32
33 2006-03-17  Maciej Stachowiak  <mjs@apple.com>
34
35         Reviewed by Adele.
36
37         - clean up ResourceRequest to be closer to a proper request interface
38
39         * page/ResourceRequest.h: folded URL into ResourceRequest, other cleanup
40         (WebCore::ResourceRequest::ResourceRequest): Add new explicit constructor
41         that takes a KURL.
42         (WebCore::ResourceRequest::url): getter for KURL
43         (WebCore::ResourceRequest::setURL): corresponding setter
44         (WebCore::ResourceRequest::referrer): new getter for referrer, instead
45         of storing it in m_metaData (it was the only remaining real use of it)
46         (WebCore::ResourceRequest::setReferrer): corresponding setter
47         * bridge/BrowserExtension.h: 
48         - removed unused openURLRequest and openURLNotify methods
49         - folded KURL parameter into ResourceRequest
50         * bridge/mac/BrowserExtensionMac.h: remove KURL args from methods that
51         also take a ResourceRequest
52         * bridge/mac/BrowserExtensionMac.mm:
53         (WebCore::BrowserExtensionMac::createNewWindow): adjust for ResourceRequest
54         changes.
55         * bridge/mac/MacFrame.h: remove KURL args from methods that also take a
56         ResourceRequest
57         * bridge/mac/MacFrame.mm:
58         (WebCore::MacFrame::openURLRequest): adjust for ResourceRequest changes
59         (WebCore::MacFrame::submitForm): ditto
60         (WebCore::MacFrame::urlSelected): ditto
61         * bridge/mac/WebCoreFrameBridge.mm:
62         (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): 
63         adjust for ResourceRequest changes
64         * bridge/win/BrowserExtensionWin.h:
65         * khtml/ecma/kjs_window.cpp:
66         (KJS::createNewWindow): adjust for ResourceRequest changes
67         (KJS::WindowFunc::callAsFunction): ditto
68         * page/Frame.cpp:
69         (WebCore::Frame::didOpenURL): adjust for ResourceRequest changes
70         (WebCore::Frame::receivedFirstData): ditto
71         (WebCore::Frame::begin): ditto
72         (WebCore::Frame::completeURL): ditto
73         (WebCore::Frame::changeLocation): ditto
74         (WebCore::Frame::urlSelected): ditto
75         (WebCore::Frame::requestFrame): ditto
76         (WebCore::Frame::submitForm): ditto
77         * page/Frame.h:
78         * platform/win/TemporaryLinkStubs.cpp:
79         (BrowserExtensionWin::createNewWindow): ditto
80
81 2006-03-17  Adele Peterson  <adele@apple.com>
82
83         Reviewed by Tim H.
84
85         Make default backgrounds for new text fields white
86         instead of transparent.  This will move to html4.css
87         when we flip the switch.
88
89         Test added:
90         * fast/forms/input-appearance-default-bkcolor.html
91
92         * rendering/render_theme_mac.mm:
93         (WebCore::RenderThemeMac::adjustTextFieldStyle):
94
95 2006-03-17  David Hyatt  <hyatt@apple.com>
96
97         Make table sections and table captions support opacity.
98
99         Reviewed by darin
100
101         Covered by some of the new Mozilla table tests.
102
103         * rendering/RenderTable.cpp:
104         (WebCore::RenderTable::paint):
105
106 2006-03-17  Mitz Pettel  <opendarwin.org@mitzpettel.com>
107
108         Reviewed by Maciej, landed by Beth.
109
110         fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3560
111         page with use of first-letter crashes reproducibly in 
112         RenderObject::renderArena()
113
114         * rendering/RenderBlock.cpp:
115         (WebCore::RenderBlock::updateFirstLetter): Pass the first-leter 
116         renderer to the remaining text fragment.
117         * rendering/RenderContainer.cpp:
118         (WebCore::RenderContainer::destroyLeftoverChildren): Do not destroy 
119         first-letter renderers since they are destroyed by their remaining 
120         text now.
121         * rendering/RenderTextFragment.cpp:
122         (khtml::RenderTextFragment::RenderTextFragment):
123         (khtml::RenderTextFragment::destroy): Destroy the first-letter 
124         renderer.
125         * rendering/RenderTextFragment.h:
126         (khtml::RenderTextFragment::firstLetter):
127
128 2006-03-17  Adele Peterson  <adele@apple.com>
129
130         Reviewed by Eric.
131
132         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7798 
133         New text fields are much wider than they should be for a specified size
134
135         I changed the character we use to calculate the width from "w" back to "0", 
136         which matches our old behavior.  The original change was intentional, to try
137         to better match other browsers, but "w" is a little too wide.  For now, lets
138         go back to the old behavior.
139
140         I also set the minWidth = maxWidth.  We were trying to match a WinIE quirk,
141         but that caused some odd behavior with growth of the text field in table cells.
142
143         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::calcMinMaxWidth):
144
145 2006-03-17  Eric Seidel  <eseidel@apple.com>
146
147         Reviewed by adele.
148
149         Fix win32 build.
150         Add PageWin class.
151         Add previously forgotten KeyEventWin class.
152         Pass MouseEvent() instead of 0 in a couple places to make compiler happy.
153
154         * WebCore.vcproj/WebCore/WebCore.vcproj:
155         * bridge/win/BrowserExtensionWin.h:
156         * bridge/win/FrameWin.cpp:
157         (WebCore::FrameWin::urlSelected):
158         (WebCore::FrameWin::keyPress):
159         * bridge/win/FrameWin.h:
160         * bridge/win/PageWin.cpp: Added.
161         (WebCore::rootWindowForFrame):
162         (WebCore::Page::windowRect):
163         (WebCore::Page::setWindowRect):
164         * page/FrameView.cpp:
165         (WebCore::FrameView::updateDragAndDrop):
166         (WebCore::FrameView::hoverTimerFired):
167         * page/Page.h:
168         (WebCore::Page::mainFrame):
169         * platform/win/KeyEventWin.cpp: Added.
170         (WebCore::KeyEvent::KeyEvent):
171         * platform/win/TemporaryLinkStubs.cpp:
172         (WebCore::findNextWordFromIndex):
173         (FrameWin::passMouseDownEventToWidget):
174         (FrameWin::scheduleClose):
175         (BrowserExtensionWin::createNewWindow):
176         (WebCore::findWordBoundary):
177         (FrameWin::registerCommandForUndo):
178         (FrameWin::markMisspellingsInAdjacentWords):
179         (FrameWin::respondToChangedContents):
180
181 2006-03-17  David Hyatt  <hyatt@apple.com>
182
183         Fix pixel test regression in fast/table/overflowHidden.html.  There was
184         a borderTopExtra error made in the new boundingBox code for layers that
185         caused the bottom half of cells with opacity set to be clipped out.
186
187         Reviewed by andersca
188
189         * rendering/render_layer.cpp:
190         (WebCore::RenderLayer::absoluteBoundingBox):
191
192 2006-03-17  David Hyatt  <hyatt@apple.com>
193
194         Give table rows and sections accurate dimensions.  Fix absolutePosition
195         to work for table cells properly.  Add an absolutePositionForContent method
196         to make sure callers that want to deal with the content of a cell handle
197         the cell's extra space correctly.
198
199         Reviewed by darin
200
201         Existing layout tests cover this change.
202
203         * bridge/mac/WebCoreFrameBridge.mm:
204         (-[WebCoreFrameBridge copyRenderNode:copier:]):
205         * dom/ContainerNodeImpl.cpp:
206         (WebCore::ContainerNodeImpl::getUpperLeftCorner):
207         (WebCore::ContainerNodeImpl::getLowerRightCorner):
208         * dom/NodeImpl.cpp:
209         (WebCore::NodeImpl::getRect):
210         * editing/SelectionController.cpp:
211         (WebCore::SelectionController::layout):
212         (WebCore::SelectionController::caretRect):
213         * editing/visible_units.cpp:
214         (WebCore::previousLinePosition):
215         (WebCore::nextLinePosition):
216         * khtml/html/HTMLInputElementImpl.cpp:
217         (WebCore::HTMLInputElementImpl::defaultEventHandler):
218         * kwq/KWQRenderTreeDebug.cpp:
219         (operator<<):
220         * rendering/RenderBlock.cpp:
221         (WebCore::RenderBlock::selectionGapRects):
222         (WebCore::RenderBlock::positionForCoordinates):
223         * rendering/RenderContainer.cpp:
224         (WebCore::RenderContainer::positionForCoordinates):
225         (WebCore::RenderContainer::lineBoxRects):
226         * rendering/RenderTableCell.cpp:
227         (WebCore::RenderTableCell::computeAbsoluteRepaintRect):
228         (WebCore::RenderTableCell::absolutePosition):
229         * rendering/RenderTableRow.cpp:
230         (WebCore::RenderTableRow::addChild):
231         (WebCore::RenderTableRow::getAbsoluteRepaintRect):
232         (WebCore::RenderTableRow::nodeAtPoint):
233         * rendering/RenderTableRow.h:
234         * rendering/RenderTableSection.cpp:
235         (WebCore::RenderTableSection::ensureRows):
236         (WebCore::RenderTableSection::addCell):
237         (WebCore::RenderTableSection::layoutRows):
238         (WebCore::RenderTableSection::recalcCells):
239         (WebCore::RenderTableSection::nodeAtPoint):
240         * rendering/RenderTableSection.h:
241         * rendering/RenderText.cpp:
242         (WebCore::RenderText::lineBoxRects):
243         (WebCore::RenderText::positionForCoordinates):
244         (WebCore::RenderText::caretRect):
245         (WebCore::RenderText::posOfChar):
246         (WebCore::RenderText::selectionRect):
247         * rendering/render_box.cpp:
248         (WebCore::RenderBox::absolutePosition):
249         (WebCore::RenderBox::caretRect):
250         * rendering/render_br.cpp:
251         (WebCore::RenderBR::caretRect):
252         * rendering/render_canvas.h:
253         * rendering/render_flow.cpp:
254         (WebCore::RenderFlow::caretRect):
255         * rendering/render_frames.cpp:
256         (WebCore::RenderPart::updateWidgetPosition):
257         * rendering/render_layer.cpp:
258         (WebCore::RenderLayer::updateLayerPosition):
259         * rendering/render_object.cpp:
260         (WebCore::RenderObject::absoluteRects):
261         (WebCore::RenderObject::absoluteBoundingBoxRect):
262         (WebCore::RenderObject::absolutePosition):
263         * rendering/render_object.h:
264         (WebCore::RenderObject::absolutePositionForContent):
265         (WebCore::RenderObject::offsetHeight):
266         * rendering/render_replaced.cpp:
267         (WebCore::RenderWidget::updateWidgetPosition):
268
269 2006-03-17  Adele Peterson  <adele@apple.com>
270
271         Reviewed by Hyatt.
272
273         WebCore part of fix for:
274         http://bugzilla.opendarwin.org/show_bug.cgi?id=7797 
275         Can't set background color on new text fields
276
277         Bezeled NSTextFieldCells always draw a background, so instead we'll use a new 
278         WebKitSystemInterface function to just draw the border of the cell.
279
280         Since the theme is drawing the border and the engine is drawing the background 
281         (which is different from the other form controls), we have to make sure we let the 
282         theme paint the border after the engine paints the background.
283
284         * platform/mac/WebCoreGraphicsBridge.h:
285         * platform/mac/WebCoreGraphicsBridge.m:
286         (-[WebCoreGraphicsBridge drawBezeledTextFieldCell:enabled:]):
287         * rendering/render_box.cpp: (WebCore::RenderBox::paintBoxDecorations):
288         * rendering/render_theme.cpp:
289         (WebCore::RenderTheme::paint):
290         (WebCore::RenderTheme::paintBorder):
291         (WebCore::RenderTheme::shouldPaintBorder):
292         * rendering/render_theme.h:
293         * rendering/render_theme_mac.mm:
294         (WebCore::RenderThemeMac::paintTextField):
295         (WebCore::RenderThemeMac::setTextFieldCellState):
296
297 2006-03-16  Darin Adler  <darin@apple.com>
298
299         Reviewed by Eric.
300
301         - removed KWQWindowWidget
302         - changed most event handling to use references instead of pointers
303         - chagned PageMac to no longer be a subclass of Page
304
305         Yes, I know there's no detail in this ChangeLog entry.
306         No, I don't plan to make a habit of doing things this way.
307         Yes, this will probably break the Windows build again.
308
309         * WebCore.xcodeproj/project.pbxproj:
310         * bridge/mac/BrowserExtensionMac.mm:
311         (WebCore::BrowserExtensionMac::createNewWindow):
312         * bridge/mac/FrameViewMac.mm:
313         * bridge/mac/MacFrame.h:
314         * bridge/mac/MacFrame.mm:
315         (WebCore::MacFrame::MacFrame):
316         (WebCore::MacFrame::~MacFrame):
317         (WebCore::MacFrame::wheelEvent):
318         (WebCore::MacFrame::keyEvent):
319         (WebCore::MacFrame::khtmlMousePressEvent):
320         (WebCore::MacFrame::khtmlMouseMoveEvent):
321         (WebCore::MacFrame::khtmlMouseReleaseEvent):
322         (WebCore::MacFrame::mouseDown):
323         (WebCore::MacFrame::mouseDragged):
324         (WebCore::MacFrame::mouseUp):
325         (WebCore::MacFrame::mouseMoved):
326         (WebCore::MacFrame::sendContextMenuEvent):
327         (WebCore::MacFrame::setBridge):
328         (WebCore::MacFrame::dragSourceMovedTo):
329         (WebCore::MacFrame::dragSourceEndedAt):
330         (WebCore::MacFrame::dispatchDragSrcEvent):
331         * bridge/mac/PageMac.h: Removed.
332         * bridge/mac/PageMac.mm: Added.
333         (WebCore::Page::Page):
334         (WebCore::Page::windowRect):
335         (WebCore::Page::setWindowRect):
336         * bridge/mac/WebCoreFrameBridge.h:
337         * bridge/mac/WebCoreFrameBridge.mm:
338         (-[WebCoreFrameBridge page]):
339         (-[WebCoreFrameBridge initializeSettings:]):
340         (globalPoint):
341         (createMouseEventFromDraggingInfo):
342         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
343         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
344         (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
345         (-[WebCoreFrameBridge dragSourceMovedTo:]):
346         (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
347         * bridge/mac/WebCoreFrameNamespaces.mm:
348         (WebCore::):
349         * bridge/mac/WebCorePageBridge.h:
350         * bridge/mac/WebCorePageBridge.mm:
351         (-[WebCorePageBridge init]):
352         * dom/DocumentImpl.cpp:
353         (WebCore::DocumentImpl::prepareMouseEvent):
354         (WebCore::DocumentImpl::defaultEventHandler):
355         * dom/DocumentImpl.h:
356         * dom/NodeImpl.cpp:
357         (WebCore::NodeImpl::dispatchMouseEvent):
358         (WebCore::NodeImpl::dispatchKeyEvent):
359         (WebCore::NodeImpl::dispatchWheelEvent):
360         * dom/NodeImpl.h:
361         * dom/dom2_eventsimpl.cpp:
362         (WebCore::KeyboardEventImpl::KeyboardEventImpl):
363         * dom/dom2_eventsimpl.h:
364         (WebCore::KeyboardEventImpl::keyEvent):
365         * khtml/ecma/kjs_window.cpp:
366         (KJS::Window::getValueProperty):
367         (KJS::WindowFunc::callAsFunction):
368         * khtml/html/html_inlineimpl.cpp:
369         (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
370         * ksvg2/svg/SVGDocumentImpl.cpp:
371         * ksvg2/svg/SVGDocumentImpl.h:
372         * kwq/KWQWindowWidget.h:
373         * kwq/KWQWindowWidget.mm: Removed.
374         * page/Frame.cpp:
375         (WebCore::Frame::selectClosestWordFromMouseEvent):
376         (WebCore::Frame::handleMousePressEventDoubleClick):
377         (WebCore::Frame::handleMousePressEventTripleClick):
378         (WebCore::Frame::handleMousePressEventSingleClick):
379         (WebCore::Frame::khtmlMousePressEvent):
380         (WebCore::Frame::handleMouseMoveEventSelection):
381         (WebCore::Frame::khtmlMouseMoveEvent):
382         (WebCore::Frame::khtmlMouseReleaseEvent):
383         (WebCore::Frame::khtmlMouseDoubleClickEvent):
384         (WebCore::Frame::passWidgetMouseDownEventToWidget):
385         * page/Frame.h:
386         * page/FrameView.cpp:
387         (WebCore::FrameView::viewportMousePressEvent):
388         (WebCore::FrameView::viewportMouseDoubleClickEvent):
389         (WebCore::FrameView::viewportMouseMoveEvent):
390         (WebCore::FrameView::viewportMouseReleaseEvent):
391         (WebCore::FrameView::dispatchDragEvent):
392         (WebCore::FrameView::updateDragAndDrop):
393         (WebCore::FrameView::cancelDragAndDrop):
394         (WebCore::FrameView::performDragAndDrop):
395         (WebCore::FrameView::dispatchMouseEvent):
396         (WebCore::FrameView::viewportWheelEvent):
397         * page/FrameView.h:
398         * page/MouseEventWithHitTestResults.h:
399         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
400         (WebCore::MouseEventWithHitTestResults::event):
401         * page/Page.cpp:
402         (WebCore::Page::init):
403         * page/Page.h:
404         (WebCore::Page::bridge):
405         * platform/KeyEvent.h:
406         (WebCore::KeyEvent::isAutoRepeat):
407         * platform/MouseEvent.h:
408         (WebCore::MouseEvent::MouseEvent):
409         * platform/mac/KeyEventMac.mm:
410         (WebCore::KeyEvent::KeyEvent):
411         * platform/win/TemporaryLinkStubs.cpp:
412         (FrameView::isFrameView):
413         * rendering/render_form.cpp:
414         (WebCore::RenderFormElement::clicked):
415
416 2006-03-16  Eric Seidel  <eseidel@apple.com>
417
418         Reviewed by darin.
419
420         Add additional hackish Font, focusring and caret code.
421         http://bugzilla.opendarwin.org/show_bug.cgi?id=7803
422
423         * WebCore.vcproj/WebCore/WebCore.vcproj:
424         * WebCore.vcproj/WebCore/build-generated-files.sh:
425         * bindings/js/JSCanvasRenderingContext2DBase.cpp:
426         * bridge/win/FrameWin.cpp:
427         (WebCore::FrameWin::keyPress):
428         * bridge/win/FrameWin.h:
429         * html/CanvasRenderingContext2D.h:
430         * platform/IntSize.h:
431         * platform/KeyEvent.h:
432         * platform/cairo/GraphicsContextCairo.cpp:
433         (WebCore::GraphicsContext::drawArc):
434         (WebCore::GraphicsContext::drawFocusRing):
435         * platform/win/FontWin.cpp:
436         (WebCore::hackishExtentForString):
437         (WebCore::Font::floatWidth):
438         (WebCore::convertRange):
439         (WebCore::Font::drawText):
440         (WebCore::Font::drawHighlightForText):
441         (WebCore::Font::selectionRectForText):
442         (WebCore::Font::checkSelectionPoint):
443         (WebCore::Font::drawLineForText):
444         (WebCore::Font::misspellingLineThickness):
445         * platform/win/IntSizeWin.cpp: Added.
446         (WebCore::IntSize::IntSize):
447         (WebCore::IntSize::operator SIZE):
448         * platform/win/ScrollViewWin.cpp:
449         (WebCore::ScrollView::visibleContentRect):
450         * platform/win/TemporaryLinkStubs.cpp:
451         (Widget::disableFlushDrawing):
452         (GraphicsContext::GraphicsContext):
453         (QListBox::setSelected):
454         (QListBox::sizeForNumberOfLines):
455         (QListBox::isSelected):
456         (QListBox::appendItem):
457         (QListBox::doneAppendingItems):
458         (FrameWin::locationbarVisible):
459         (FrameWin::canUndo):
460         (FrameWin::mimeTypeForFileName):
461         (FrameWin::issueTransposeCommand):
462         (RenderCanvasImage::setNeedsImageUpdate):
463         (FrameWin::shouldChangeSelection):
464         (FrameWin::respondToChangedSelection):
465         (FrameWin::clearRecordedFormValues):
466         (FrameWin::recordFormValue):
467         (BrowserExtensionWin::getHistoryLength):
468         (Widget::setIsSelected):
469         (GraphicsContext::selectedTextBackgroundColor):
470         (GraphicsContext::addRoundedRectClip):
471         (QScrollBar::QScrollBar):
472         (QScrollBar::~QScrollBar):
473         (QScrollBar::setSteps):
474         (QScrollBar::scroll):
475         (QScrollBar::setValue):
476         (QScrollBar::setKnobProportion):
477         (QListBox::QListBox):
478         (QListBox::~QListBox):
479         (QListBox::setSelectionMode):
480         (QListBox::setFont):
481         * rendering/render_canvasimage.h:
482
483 2006-03-16  Maciej Stachowiak  <mjs@apple.com>
484
485         Reviewed by Eric.
486
487         - renamed URLArgs to ResourceRequest, split it into its own header
488         - moved methods to get and set ResourceRequest to Frame
489
490         * WebCore.xcodeproj/project.pbxproj:
491         * bridge/BrowserExtension.h:
492         * bridge/mac/BrowserExtensionMac.h:
493         * bridge/mac/BrowserExtensionMac.mm:
494         (WebCore::BrowserExtensionMac::openURLRequest):
495         (WebCore::BrowserExtensionMac::createNewWindow):
496         * bridge/mac/MacFrame.h:
497         * bridge/mac/MacFrame.mm:
498         (WebCore::MacFrame::openURLRequest):
499         (WebCore::MacFrame::submitForm):
500         (WebCore::MacFrame::urlSelected):
501         * bridge/mac/WebCoreFrameBridge.mm:
502         (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
503         * khtml/ecma/kjs_window.cpp:
504         (KJS::createNewWindow):
505         (KJS::WindowFunc::callAsFunction):
506         * page/Frame.cpp:
507         (WebCore::Frame::didOpenURL):
508         (WebCore::Frame::receivedFirstData):
509         (WebCore::Frame::setResourceRequest):
510         (WebCore::Frame::resourceRequest):
511         (WebCore::Frame::begin):
512         (WebCore::Frame::changeLocation):
513         (WebCore::Frame::urlSelected):
514         (WebCore::Frame::requestFrame):
515         (WebCore::Frame::submitForm):
516         * page/Frame.h:
517         * page/FramePrivate.h:
518         * page/ResourceRequest.h: Added.
519         (WebCore::ResourceRequest::ResourceRequest):
520         (WebCore::ResourceRequest::contentType):
521         (WebCore::ResourceRequest::setContentType):
522         (WebCore::ResourceRequest::doPost):
523         (WebCore::ResourceRequest::setDoPost):
524         (WebCore::ResourceRequest::lockHistory):
525         (WebCore::ResourceRequest::setLockHistory):
526         (WebCore::ResourceRequest::metaData):
527
528 2006-03-16  Darin Adler  <darin@apple.com>
529
530         - need to touch one more file to fix the build
531           (Darn the lack of dependencies for autogenerated bindings!)
532
533         * dom/Element.idl: Touch. (Really this time.)
534
535 2006-03-16  Eric Seidel  <eseidel@apple.com>
536
537         Reviewed by darin.
538
539         Pushed focus ring handling down into GraphicsContext.cpp
540
541         * bridge/mac/MacFrame.mm:
542         (WebCore::MacFrame::mouseDown):
543         * platform/GraphicsContext.cpp:
544         (WebCore::GraphicsContext::initFocusRing):
545         (WebCore::GraphicsContext::clearFocusRing):
546         (WebCore::GraphicsContext::addFocusRingRect):
547         * platform/GraphicsContext.h:
548         * platform/mac/GraphicsContextMac.mm:
549         (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
550         (WebCore::GraphicsContextPrivate::~GraphicsContextPrivate):
551         (WebCore::GraphicsContext::GraphicsContext):
552         (WebCore::GraphicsContext::drawFocusRing):
553         * rendering/render_flow.cpp:
554         (WebCore::RenderFlow::addFocusRingRects):
555         * rendering/render_object.cpp:
556         (WebCore::RenderObject::addFocusRingRects):
557
558 2006-03-15  Darin Adler  <darin@apple.com>
559
560         Reviewed by Hyatt.
561
562         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7749
563           canvas should be in DOM, not implemented in the JS bindings
564
565         * WebCore.xcodeproj/project.pbxproj: Added new files.
566         Changed bindings-generation code to work on the new html directory
567         as well as the dom one.
568
569         * bindings/js/JSCanvasRenderingContext2DBase.cpp: Added.
570         * bindings/js/JSCanvasRenderingContext2DBase.h: Added.
571         * bindings/js/JSDOMHTML.cpp: Added.
572         * html: Added.
573         * html/CanvasGradient.cpp: Added.
574         * html/CanvasGradient.h: Added.
575         * html/CanvasGradient.idl: Added.
576         * html/CanvasPattern.cpp: Added.
577         * html/CanvasPattern.h: Added.
578         * html/CanvasPattern.idl: Added.
579         * html/CanvasRenderingContext2D.cpp: Added.
580         * html/CanvasRenderingContext2D.h: Added.
581         * html/CanvasRenderingContext2D.idl: Added.
582         * html/CanvasStyle.cpp: Added.
583         * html/CanvasStyle.h: Added.
584
585         * bindings/js/JSDOMCore.cpp: Touched so that it will recompile.
586         * bindings/js/JSDOMEvents.cpp: Ditto.
587         * dom/Attr.idl: Ditto.
588         * dom/DOMImplementation.idl: Ditto.
589         * dom/DocumentType.idl: Ditto.
590         * dom/MutationEvent.idl: Ditto.
591         * dom/ProcessingInstruction.idl: Ditto.
592         * dom/Text.idl: Ditto.
593
594         * khtml/ecma/kjs_binding.h: (KJS::toJS): Added. Template so that you can call
595         toJS on a PassRefPtr as well as on a raw pointer.
596
597         * bindings/scripts/CodeGeneratorJS.pm: Fixed handling of a class that has only
598         a legacy parent, no conventional parents. Added JSCanvasRenderingContext2DBase
599         as a legacy parent, and html as a legacy module. Added CanvasRenderingContext2D,
600         CanvasGradient, and CanvasPattern to the "waht to include". Added a special
601         case for strings beginning with Canvas to not add an "Impl" suffix. Made the
602         generated impl() function be a const member function. Made m_mimpl be private
603         instead of protected. Generate a toJS function for each class. Added flaot as
604         a type. Generate String, not DOMString. Made the HashTable const.
605
606         * bindings/scripts/IDLParser.pm: Fix a couple small things. I had started to
607         try to make a missing semicolon trigger an error, but ended up giving up on
608         that for now.
609
610         * khtml/html/html_canvasimpl.h:
611         * khtml/html/html_canvasimpl.cpp:
612         (WebCore::HTMLCanvasElementImpl::HTMLCanvasElementImpl): Set m_2DContext to 0.
613         (WebCore::HTMLCanvasElementImpl::~HTMLCanvasElementImpl): Call detachCanvas
614         on m_2DContext, if any.
615         (WebCore::HTMLCanvasElementImpl::detach): Call reset on m_2DContext, if any.
616         (WebCore::HTMLCanvasElementImpl::getContext): Added.
617         (WebCore::HTMLCanvasElementImpl::size): Added.
618         (WebCore::HTMLCanvasElementImpl::createPlatformImage): Added.
619
620         * platform/Image.h:
621         * platform/Image.cpp: (WebCore::Image::compositeOperatorFromString):
622         Changed to take a String instead of a const char*.
623
624         * khtml/html/html_imageimpl.h:
625         * khtml/html/html_imageimpl.cpp: (WebCore::HTMLMapElementImpl::areas):
626         Tweaked formatting. Changed to use PassRefPtr.
627
628         * bindings/objc/DOMInternal.mm: (-[WebScriptObject _initializeScriptDOMNodeImp]):
629         * khtml/ecma/JSXMLHttpRequest.cpp: (KJS::JSXMLHttpRequest::getValueProperty):
630         * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
631         * khtml/ecma/domparser.cpp: (KJS::DOMParserProtoFunc::callAsFunction):
632         * khtml/ecma/kjs_css.cpp:
633         (KJS::DOMCSSStyleDeclaration::getValueProperty):
634         (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction):
635         (KJS::toJS):
636         (KJS::DOMStyleSheet::getValueProperty):
637         (KJS::DOMStyleSheetList::indexGetter):
638         (KJS::DOMStyleSheetList::nameGetter):
639         (KJS::DOMStyleSheetListFunc::callAsFunction):
640         (KJS::DOMCSSStyleSheet::getValueProperty):
641         (KJS::DOMCSSRuleList::indexGetter):
642         (KJS::DOMCSSRuleListFunc::callAsFunction):
643         (KJS::DOMCSSRule::getValueProperty):
644         (KJS::DOMCSSPrimitiveValueProtoFunc::callAsFunction):
645         (KJS::DOMCSSValueList::indexGetter):
646         (KJS::DOMCSSValueListFunc::callAsFunction):
647         (KJS::DOMRect::getValueProperty):
648         * khtml/ecma/kjs_css.h:
649         * khtml/ecma/kjs_dom.cpp:
650         (KJS::DOMNode::getValueProperty):
651         (KJS::DOMNodeProtoFunc::callAsFunction):
652         (KJS::DOMNodeList::indexGetter):
653         (KJS::DOMNodeList::nameGetter):
654         (KJS::DOMNodeList::callAsFunction):
655         (KJS::DOMNodeListFunc::callAsFunction):
656         (KJS::DOMDocument::getValueProperty):
657         (KJS::DOMDocumentProtoFunc::callAsFunction):
658         (KJS::DOMNamedNodeMap::indexGetter):
659         (KJS::DOMNamedNodeMap::nameGetter):
660         (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
661         (KJS::toJS):
662         (KJS::DOMNamedNodesCollection::indexGetter):
663         * khtml/ecma/kjs_dom.h:
664         * khtml/ecma/kjs_events.cpp:
665         (KJS::JSAbstractEventListener::handleEvent):
666         (KJS::JSLazyEventListener::parseCode):
667         (KJS::DOMEvent::getValueProperty):
668         (KJS::toJS):
669         (KJS::DOMUIEvent::getValueProperty):
670         (KJS::DOMMouseEvent::getValueProperty):
671         * khtml/ecma/kjs_events.h:
672         * khtml/ecma/kjs_html.cpp:
673         (KJS::HTMLDocFunction::callAsFunction):
674         (KJS::HTMLDocument::namedItemGetter):
675         (KJS::HTMLDocument::getValueProperty):
676         (KJS::HTMLDocument::put):
677         (KJS::HTMLDocument::putValueProperty):
678         (KJS::HTMLElement::classInfo):
679         (KJS::HTMLElement::formIndexGetter):
680         (KJS::HTMLElement::selectIndexGetter):
681         (KJS::HTMLElement::implementsCall):
682         (KJS::HTMLElement::callAsFunction):
683         (KJS::HTMLElement::linkGetter):
684         (KJS::HTMLElement::isIndexGetter):
685         (KJS::HTMLElement::styleGetter):
686         (KJS::HTMLElement::selectGetter):
687         (KJS::HTMLElement::optionGetter):
688         (KJS::HTMLElement::inputGetter):
689         (KJS::HTMLElement::textAreaGetter):
690         (KJS::HTMLElement::buttonGetter):
691         (KJS::HTMLElement::labelGetter):
692         (KJS::HTMLElement::fieldSetGetter):
693         (KJS::HTMLElement::legendGetter):
694         (KJS::HTMLElement::objectGetter):
695         (KJS::HTMLElement::tableGetter):
696         (KJS::HTMLElement::frameGetter):
697         (KJS::HTMLElement::iFrameGetter):
698         (KJS::HTMLElement::getValueProperty):
699         (KJS::HTMLElement::toString):
700         (KJS::HTMLElement::pushEventHandlerScope):
701         (KJS::toJS):
702         (KJS::HTMLElementFunction::callAsFunction):
703         (KJS::HTMLElement::put):
704         (KJS::HTMLCollection::indexGetter):
705         (KJS::HTMLCollection::callAsFunction):
706         (KJS::HTMLCollection::getNamedItems):
707         (KJS::HTMLCollectionProtoFunc::callAsFunction):
708         (KJS::HTMLSelectCollection::put):
709         (KJS::OptionConstructorImp::construct):
710         (KJS::ImageConstructorImp::construct):
711         * khtml/ecma/kjs_html.h:
712         * khtml/ecma/kjs_proxy.cpp: (WebCore::KJSProxyImpl::evaluate):
713         * khtml/ecma/kjs_range.cpp:
714         (KJS::DOMRange::getValueProperty):
715         (KJS::DOMRangeProtoFunc::callAsFunction):
716         (KJS::toJS):
717         * khtml/ecma/kjs_range.h:
718         * khtml/ecma/kjs_traversal.cpp:
719         (KJS::DOMNodeIterator::getValueProperty):
720         (KJS::DOMNodeIteratorProtoFunc::callAsFunction):
721         (KJS::toJS):
722         (KJS::DOMTreeWalker::getValueProperty):
723         (KJS::DOMTreeWalkerProtoFunc::callAsFunction):
724         (KJS::JSNodeFilterCondition::acceptNode):
725         * khtml/ecma/kjs_traversal.h:
726         * khtml/ecma/kjs_views.cpp:
727         (KJS::DOMAbstractView::getValueProperty):
728         (KJS::DOMAbstractViewProtoFunc::callAsFunction):
729         (KJS::toJS):
730         * khtml/ecma/kjs_views.h:
731         * khtml/ecma/kjs_window.cpp:
732         (KJS::Window::getValueProperty):
733         (KJS::Window::namedItemGetter):
734         (KJS::Selection::getValueProperty):
735         (KJS::SelectionFunc::callAsFunction):
736         Rename uses and definitions of all the various converstions to JavaScript
737         wrappers to the new common overloaded name: "toJS".
738
739 2006-03-15  Eric Seidel  <eseidel@apple.com>
740
741         Reviewed by darin.
742
743         Push more of MacFrame down into Frame.
744         Add visibleContentRect method to ScrollView.
745
746         * bridge/mac/MacFrame.h:
747         * bridge/mac/MacFrame.mm:
748         (WebCore::MacFrame::imageFromRect):
749         (WebCore::MacFrame::setDisplaysWithFocusAttributes):
750         (WebCore::MacFrame::bodyBackgroundColor):
751         * bridge/mac/WebCoreFrameBridge.mm:
752         * page/Frame.cpp:
753         (WebCore::Frame::visibleSelectionRect):
754         (WebCore::Frame::setDisplaysWithFocusAttributes):
755         * page/Frame.h:
756         * platform/ScrollView.h:
757         * platform/mac/ScrollViewMac.mm:
758         (WebCore::ScrollView::visibleWidth):
759         (WebCore::ScrollView::visibleHeight):
760         (WebCore::ScrollView::visibleContentRect):
761         (WebCore::ScrollView::contentsWidth):
762         (WebCore::ScrollView::contentsHeight):
763         (WebCore::ScrollView::contentsX):
764         (WebCore::ScrollView::contentsY):
765         (WebCore::ScrollView::scrollXOffset):
766         (WebCore::ScrollView::scrollYOffset):
767         (WebCore::ScrollView::inWindow):
768
769 2006-03-15  Eric Seidel  <eseidel@apple.com>
770
771         Reviewed by darin.
772
773         Remove unused code and clean-up style.
774
775         * bridge/mac/MacFrame.mm:
776         (WebCore::MacFrame::advanceToNextMisspelling):
777         (WebCore::MacFrame::wheelEvent):
778         (WebCore::MacFrame::nextKeyViewInFrame):
779         (WebCore::MacFrame::nextKeyViewInFrameHierarchy):
780         (WebCore::MacFrame::nextKeyView):
781         * page/Frame.cpp:
782         * page/Frame.h:
783         * page/FrameView.cpp:
784         (WebCore::FrameView::dispatchMouseEvent):
785
786 2006-03-15  Eric Seidel  <eseidel@apple.com>
787
788         Reviewed by mjs.
789
790         http://bugzilla.opendarwin.org/show_bug.cgi?id=7790
791         addEventListener does not work with "dblclick" event.
792         Renamed khtmlDblclickEvent to dblclickEvent to fix.
793
794         Test: fast/events/dblclick-addEventListener.html
795
796         * WebCore.xcodeproj/project.pbxproj:
797         * bridge/mac/MacFrame.mm:
798         (WebCore::MacFrame::mouseUp):
799         (WebCore::MacFrame::mouseMoved):
800         (WebCore::MacFrame::shouldDragAutoNode):
801         (WebCore::MacFrame::sendContextMenuEvent):
802         * dom/EventNames.h:
803         * dom/NodeImpl.cpp:
804         (WebCore::NodeImpl::dispatchMouseEvent):
805         * dom/NodeImpl.h:
806         * khtml/ecma/kjs_binding.cpp:
807         (KJS::ScriptInterpreter::wasRunByUserGesture):
808         * khtml/ecma/kjs_dom.cpp:
809         (KJS::DOMNode::getValueProperty):
810         (KJS::DOMNode::putValueProperty):
811         * khtml/ecma/kjs_window.cpp:
812         (KJS::Window::getValueProperty):
813         (KJS::Window::put):
814         * khtml/html/HTMLElementImpl.cpp:
815         (WebCore::HTMLElementImpl::parseMappedAttribute):
816         * page/FrameView.cpp:
817         (WebCore::FrameView::dispatchMouseEvent):
818         * page/FrameView.h:
819
820 2006-03-16  Alexey Proskuryakov  <ap@nypop.com>
821
822         Reviewed by Maciej.
823
824         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4395
825          REGRESSION: document.open doesn't clear the document
826
827         Test: fast/dom/Document/document-reopen.html
828         Test: fast/dom/Document/doc-open-while-parsing.html
829
830         * dom/DocumentImpl.cpp:
831         (WebCore::DocumentImpl::open): Only ignore open() while the frame is still loading the main resource.
832         * page/Frame.cpp:
833         (WebCore::Frame::isComplete): Added const specifier.
834         (WebCore::Frame::isLoadingMainResource): New function.
835         * page/Frame.h:
836
837 2006-03-15  Adele Peterson  <adele@apple.com>
838
839         Reviewed by Eric.
840
841         - Fixes win32 build.
842
843         * page/Frame.cpp: (WebCore::Frame::autoscrollTimerFired): Calls isMouseButtonDown instead of CG function.
844         * platform/MouseEvent.h: Added isMouseButtonDown
845         * platform/mac/MouseEventMac.mm: (WebCore::MouseEvent::isMouseButtonDown): Calls CG function to get state of mouse button.
846         * platform/win/TemporaryLinkStubs.cpp: (MouseEvent::isMouseButtonDown): Added stub.
847
848 2006-03-15  Eric Seidel  <eseidel@apple.com>
849
850         Reviewed by geoff.
851
852         * platform/KeyEvent.h: Fix #define from QEvent_H to KeyEvent_H
853
854 2006-03-15  David Hyatt  <hyatt@apple.com>
855
856         Fix the box-sizing layout test by stopping integer overflowing from
857         occurring in the flexbox code.
858
859         Reviewed by beth
860
861         * rendering/render_flexbox.cpp:
862         (khtml::RenderFlexibleBox::allowedChildFlex):
863
864 2006-03-15  Beth Dakin  <bdakin@apple.com>
865
866         Reviewed by Eric
867
868         Fix for some leaks and intermittent broken pipes in the layout 
869         tests after check-in for http://bugzilla.opendarwin.org/
870         show_bug.cgi?id=4171.  
871
872         * platform/StringImpl.cpp:
873         (WebCore::StringImpl::capitalize): Call deleteQCharVector() for 
874         stringWithPrevious and make sure we don't walk off the end of 
875         stringWithPrevious when copying to capitalizedString.
876
877 2006-03-15  Adele Peterson  <adele@apple.com>
878
879        Reviewed by Maciej.
880
881        Followup fix for previous checkin.
882        http://bugzilla.opendarwin.org/show_bug.cgi?id=7114
883        <rdar://problem/3695120> dragging to scroll doesn't work with overflow:auto/scroll/overlay areas 
884
885        Many of the bugs related to the Radar bug have to do with autoscrolling in the RSS View.  
886        This fix walks the layer tree to find the first scrollable layer, so that autoscrolling will 
887        also work with nested layers, like those in the RSS View.
888
889        * bridge/mac/MacFrame.mm: (WebCore::MacFrame::khtmlMouseMoveEvent):
890
891 2006-03-15  Adele Peterson  <adele@apple.com>
892
893         Reviewed by Maciej.
894
895         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7114
896         Dragging to scroll doesn't work for overflow areas
897
898         No test case.  There doesn't appear to be a way to trigger the autoscroll with the EventSender.
899
900         * bridge/mac/MacFrame.mm:
901         (WebCore::MacFrame::khtmlMouseMoveEvent):  If we have a layer that can scroll, let the layer handle its autoscroll.  
902          Otherwise, call over the bridge to let AppKit scroll the view.
903         (WebCore::MacFrame::khtmlMouseReleaseEvent): Stops the autoscroll timer.
904         * page/Frame.cpp:
905         (WebCore::Frame::khtmlMouseReleaseEvent): Stops the autoscroll timer.
906         (WebCore::Frame::handleAutoscroll): Added. Saves the layer, and starts the timer.
907         (WebCore::Frame::autoscrollTimerFired): Added. Calls autoscroll() on the layer.
908         (WebCore::Frame::startAutoscrollTimer): Added.
909         (WebCore::Frame::stopAutoscrollTimer): Added.
910         * page/Frame.h: Added new autoscroll methods.
911         * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Initialize m_autoscrollTimer and m_autoscrollLayer.
912         * rendering/render_layer.cpp:
913         (WebCore::RenderLayer::autoscroll): Calculates how much the layer should scroll, and actually scrolls.
914         (WebCore::RenderLayer::shouldAutoscroll): If the layer has overflow then it should be able to scroll.  
915          Except for overflow:hidden areas that aren't editable.  
916          In the future, we may want to have a css property that indicates an overflow:hidden style that should also scroll.
917         * rendering/render_layer.h: Added new autoscroll methods.
918
919 2006-03-14  Justin Garcia  <justin.garcia@apple.com>
920
921         Reviewed by mjs
922         
923         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7578>
924         TinyMCE: Implement execCommand CreateLink
925         
926         Used ApplyStyleCommand so that creating a link from
927         a selection doesn't change document structure.
928
929         * WebCore.xcodeproj/project.pbxproj:
930         * editing/ApplyStyleCommand.cpp:
931         (WebCore::ApplyStyleCommand::ApplyStyleCommand):
932         (WebCore::ApplyStyleCommand::doApply):
933         (WebCore::ApplyStyleCommand::removeInlineStyle):
934         (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
935         * editing/ApplyStyleCommand.h:
936         * editing/CompositeEditCommand.cpp:
937         (WebCore::CompositeEditCommand::applyStyle):
938         * editing/CreateLinkCommand.cpp: Added.
939         (WebCore::CreateLinkCommand::CreateLinkCommand):
940         (WebCore::CreateLinkCommand::doApply):
941         * editing/CreateLinkCommand.h: Added.
942         * editing/jsediting.cpp:
943         * page/Frame.cpp:
944         (WebCore::Frame::computeAndSetTypingStyle):
945         (WebCore::Frame::applyStyle):
946         (WebCore::Frame::applyParagraphStyle):
947
948 2006-03-14  Beth Dakin  <bdakin@apple.com>
949
950         Reviewed by Maciej
951
952         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=4171
953         This patch changes the word-break algorithm used to apply text-
954         transform:capitalize to use a UBreakIterator. This fixes some 
955         existing edge cases we have in our text-transform:capitalize 
956         support and generally makes our results more consistent.
957
958         * platform/StringImpl.cpp:
959         (WebCore::getWordBreakIterator): Returns a UBreakIterator for a 
960         given string of a given length.
961         (WebCore::StringImpl::capitalize): Now uses the UBreakIterator to 
962         step between words and requires the previous character as input.
963         * platform/StringImpl.h: Change the declaration of capitalize() to 
964         take the previous character as a parameter. 
965         * rendering/RenderText.cpp:
966         (WebCore::RenderText::setText): Find the previous character and 
967         send it to StringImpl::capitalize()
968
969 2006-03-14  Justin Garcia  <justin.garcia@apple.com>
970
971         Reviewed by adele
972         
973         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7770>
974         Should only dispatch the khtmlTextInsertedEvent for high level editing operations
975
976         Dispatching this event for low level editing operations 
977         isn't necessary and causes a big performance regression. 
978         Also renamed the event because it's dispatched for changes
979         other than just text insertion.
980
981         * dom/EventNames.h: 
982         * editing/EditCommand.cpp:
983         (WebCore::EditCommand::apply):
984         (WebCore::EditCommand::unapply):
985         (WebCore::EditCommand::reapply):
986         * khtml/html/HTMLTextFieldInnerElementImpl.cpp:
987         (WebCore::HTMLTextFieldInnerElementImpl::defaultEventHandler):
988         * page/Frame.cpp:
989         (WebCore::dispatchKHTMLEditableContentChanged):
990         (WebCore::Frame::appliedEditing):
991         (WebCore::Frame::unappliedEditing):
992         (WebCore::Frame::reappliedEditing):
993
994 2006-03-14  Darin Adler  <darin@apple.com>
995
996         Reviewed by Eric.
997
998         - fix <rdar://problem/4478121> -[WebCoreFrameBridge finalize] crashes under GC
999
1000         * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge finalize]):
1001         Don't call setBridge(nil).
1002
1003 2006-03-14  Darin Adler  <darin@apple.com>
1004
1005         - oops, didn't mean to check this in
1006
1007         * dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::parseMappedAttribute):
1008         Reverted nil-document check that I didn't mean to remove.
1009
1010 2006-03-14  Beth Dakin  <bdakin@apple.com>
1011
1012         Reviewed by Hyatt
1013
1014         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6796
1015         This fix prevents infinite recursion when a block with overflow: 
1016         auto can't decide if it needs scrollbars or not. This fix puts a 
1017         guard in place in updateScrollInforAfterLayout that only allows you 
1018         to re-layout if you are not currently laying out.  
1019
1020         * rendering/render_layer.cpp:
1021         (WebCore::RenderLayer::RenderLayer): Initialize 
1022         m_inOverflowRelayout to false. Fixed spacing too.
1023         (WebCore::RenderLayer::updateScrollInfoAfterLayout): Place guard 
1024         around layout calls in overflow:auto case.
1025         * rendering/render_layer.h: Add m_inOverflowRelayout.
1026
1027 2006-03-14  Darin Adler  <darin@apple.com>
1028
1029         Reviewed by Geoff and Eric.
1030
1031         - fix <http://bugzilla.opendarwin.org/show_bug.cgi?id=7765>, <rdar://problem/4474884>
1032           hasAttribute always returns false for uppercase attribute names like "STYLE"
1033         - re-add missing JavaScript binding for getAttributeNS
1034         - fixed handling of null namespace parameters in getAttributeNS and friends
1035
1036         Test: fast/dom/Element/attribute-uppercase.html
1037
1038         To match Gecko's behavior, the magic "lowercasing" of all attribute names
1039         is only done when calling DOM Level 1 functions that lack an NS suffix.
1040         The functions with an NS suffix are case sensitive, even in HTML documents.
1041
1042         * dom/NamedNodeMapImpl.h: Changed getNamedItem and removeNamedItem to be pure virtual
1043         functions instead of calling through to getNamedItemNS and removeNamedItemNS.
1044
1045         * dom/dom_elementimpl.h: Eliminated inline versions of non-NS functions that called
1046         the NS functions. They can't work that way any more since the lowercasing behavior
1047         is different.
1048         * dom/dom_elementimpl.cpp:
1049         (WebCore::ElementImpl::getAttribute): Added. Lowercases the name if the document
1050         is an HTML document, and then calls through to the qualified name version. Removed
1051         the null check since getDocument is guaranteed to never return 0 now that nodes
1052         hold a reference to their document.
1053         (WebCore::ElementImpl::getAttributeNS): Removed the lowercasing code.
1054         (WebCore::ElementImpl::setAttribute): More of the same.
1055         (WebCore::ElementImpl::setAttributeNS): Ditto.
1056         (WebCore::ElementImpl::removeAttribute): Ditto.
1057         (WebCore::ElementImpl::removeAttributeNS): Ditto.
1058         (WebCore::ElementImpl::getAttributeNode): Ditto.
1059         (WebCore::ElementImpl::getAttributeNodeNS): Ditto.
1060         (WebCore::ElementImpl::hasAttribute): Ditto.
1061         (WebCore::ElementImpl::hasAttributeNS): Ditto.
1062         (WebCore::NamedAttrMapImpl::getNamedItem): Ditto.
1063         (WebCore::NamedAttrMapImpl::getNamedItemNS): Ditto.
1064         (WebCore::NamedAttrMapImpl::removeNamedItem): Ditto.
1065         (WebCore::NamedAttrMapImpl::removeNamedItemNS): Ditto.
1066         (WebCore::StyledElementImpl::parseMappedAttribute): Removed another unneeded null
1067         check like the one mentioned above.
1068
1069         * dom/Element.idl: Set ConvertNullToNullString for all the namespaceURI
1070         parameters, since we don't want null to turn into "null". Added a semicolon
1071         to the end of the hasAttributeNS line -- was causing the next declaration to
1072         be eaten up (so getAttributeNS was completely broken).
1073
1074         * khtml/ecma/kjs_dom.cpp: (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
1075         Call valueToStringWithNullCheck to do the equivalent of ConvertNullToNullString
1076         for both getNamedItemNS and removeNamedItemNS.
1077
1078         * bindings/js/JSDOMCore.cpp: Touched so that the changes above will take effect.
1079
1080 2006-03-14  David Hyatt  <hyatt@apple.com>
1081
1082         Fix for bug 7259, opacity performs badly.
1083
1084         Reviewed by mjs
1085
1086         Adding some tests in fast/opacity.
1087
1088         * rendering/RenderTableRow.h:
1089         (WebCore::RenderTableRow::requiresLayer):
1090         * rendering/render_layer.cpp:
1091         (WebCore::transparencyClipBox):
1092         (WebCore::RenderLayer::beginTransparencyLayers):
1093         (WebCore::RenderLayer::paintLayer):
1094         (WebCore::RenderLayer::intersectsDamageRect):
1095         (WebCore::RenderLayer::absoluteBoundingBox):
1096         * rendering/render_layer.h:
1097         (WebCore::RenderLayer::root):
1098
1099 2006-03-14  Eric Seidel  <eseidel@apple.com>
1100
1101         Reviewed by mjs.
1102
1103         Fix Gif crasher.
1104
1105         * platform/image-decoders/gif/GIFImageReader.cpp:
1106         (GIFImageReader::do_lzw): Initialize array after new.
1107
1108 2006-03-14  Eric Seidel  <eseidel@apple.com>
1109
1110         Reviewed by mjs.
1111
1112         Make MouseEvents aware of current scroll position.
1113
1114         * platform/win/ScrollViewWin.cpp:
1115         (WebCore::ScrollView::viewportToContents):
1116         (WebCore::ScrollView::contentsToViewport):
1117
1118 2006-03-13  Eric Seidel  <eseidel@apple.com>
1119
1120         Reviewed by mjs.
1121
1122         Fix mouse events to be window-relative.
1123
1124         * platform/win/MouseEventWin.cpp:
1125         (WebCore::positionForEvent):
1126         (WebCore::globalPositionForEvent):
1127         (WebCore::MouseEvent::MouseEvent):
1128
1129 2006-03-13  Eric Seidel  <eseidel@apple.com>
1130
1131         Reviewed by mjs.
1132
1133         Close DeviceContext leaks in Font code.
1134         Also add moveCursor stub to make maps.google.com not crash.
1135
1136         * platform/win/FontWin.cpp:
1137         (WebCore::getFontData):
1138         (WebCore::Font::floatWidth):
1139         (WebCore::Font::drawText):
1140         * platform/win/TemporaryLinkStubs.cpp:
1141         (Cursor::Cursor):
1142         (WebCore::moveCursor):
1143
1144 2006-03-13  Eric Seidel  <eseidel@apple.com>
1145
1146         Reviewed by ggaren & TimH.
1147
1148         <rdar://problem/4473288> XSL file containing <xsl:include href="../Styles/EscapeString.xsl" /> fails to load file
1149         XML_DTD_NODE objects in the tree were causing loadChildSheets to 
1150         fail to preload child stylesheets, this patch causes us to 
1151         correctly ignore all nodes besides the first XML_ELEMENT_NODE at 
1152         the root level when searching the tree for xsl:include statements 
1153         to pre-load.
1154
1155         Test: fast/xsl/xslt-second-level-import.xml
1156
1157         * khtml/xsl/xsl_stylesheetimpl.cpp:
1158         (WebCore::XSLStyleSheetImpl::loadChildSheets):
1159
1160 2006-03-10  Rob Buis  <buis@kde.org>
1161
1162         Reviewed by darin.  Landed by eseidel.
1163
1164         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7666:
1165         dasharray on rounded rectangles is broken
1166
1167         Make sure the rounded rectangle is drawn clockwise, as outlined
1168         in the specification.
1169
1170         Test: svg/custom/dashArrayOrigin.svg
1171
1172         * kcanvas/KCanvasCreator.cpp:
1173         (WebCore::KCanvasCreator::createRoundedRectangle):
1174
1175 2006-03-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1176
1177         Reviewed by Maciej, landed by ap.
1178
1179         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5923
1180           REGRESSION: scrolling on Google maps continues after the mouse is 
1181           released outside the window
1182
1183         Test: fast/events/drag-outside-window.html
1184
1185         * rendering/render_layer.cpp:
1186         (WebCore::RenderLayer::containsPoint): Always return true for the root
1187         object to ensure that mouse events occurring outside the window target
1188         the document.
1189
1190 2006-03-12  Alexey Proskuryakov  <ap@nypop.com>
1191
1192         Reviewed by Maciej.
1193
1194         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7735
1195         REGRESSION: crash on importing bookmarks
1196
1197         No test - only reproducible when Safari imports the bookmarks.
1198
1199         * dom/EventNames.cpp:
1200         (WebCore::EventNames::init): Initialize AtomicString before using it.
1201         * dom/QualifiedName.cpp:
1202         (WebCore::QualifiedName::init): Ditto.
1203         * khtml/html/htmlnames.cpp:
1204         (WebCore::HTMLNames::init): Ditto.
1205         * ksvg2/scripts/make_names.pl: Ditto.
1206
1207 2006-03-12  David Kilzer  <ddkilzer@kilzer.net>
1208
1209         Reviewed by Darin, landed by ap.
1210
1211         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7724
1212         Minor refactoring to HTMLParser::handleError() to remove duplicate code
1213
1214         Test: fast/invalid/missing-address-end-tag.html
1215         Test: fast/invalid/missing-dl-end-tag.html
1216         Test: fast/invalid/missing-dt-end-tag.html
1217         Test: fast/invalid/missing-font-end-tag.html
1218
1219         * khtml/html/htmlparser.cpp:
1220         (WebCore::HTMLParser::handleError): Refactored code.
1221
1222 2006-03-10  Darin Adler  <darin@apple.com>
1223
1224         - fix Windows build
1225
1226         * bridge/win/FrameWin.h: Removed declaration of generateFrameName.
1227
1228 2006-03-10  Darin Adler  <darin@apple.com>
1229
1230         Reviewed by Adele.
1231
1232         - removed some unused stuff from Frame and MacFrame
1233
1234         * page/Frame.h: Removed autoloadImages (the setter), enableMetaRefresh,
1235         setCharset, backgroundURL, findTextBegin, findTextNext, preloadStyleSheet,
1236         preloadScript, restored, onURL, selectionChanged, htmlError, openFile,
1237         updateActions, openURLInFrame, overURL, checkLinkSecurity, and cacheId.
1238         * page/FramePrivate.h: Removed m_restored, m_frameNameId, m_strSelectedURL,
1239         m_strSelectedURLTarget, m_bDnd, m_bClearing, m_bSecurityInQuestion,
1240         m_focusNodeRestored, m_focusNodeNumber, and m_newJSInterpreterExists.
1241         * page/Frame.cpp:
1242         (WebCore::Frame::didOpenURL): Removed use of m_restored, code to set
1243         m_bClearing.
1244         (WebCore::Frame::clear): Removed code to set m_bClearing and m_frameNameId.
1245         (WebCore::Frame::khtmlMousePressEvent): Removed code to set m_strSelectedURL
1246         and m_strSelectedURLTarget.
1247
1248         * bridge/mac/MacFrame.h: Removed scheduleHistoryNavigation and
1249         requestedURLString.
1250         * bridge/mac/MacFrame.mm:
1251         (WebCore::MacFrame::openURLFromPageCache): Removed use of m_restored.
1252         Removed unused requestedURLString.
1253
1254         * bridge/mac/WebCoreFrameBridge.h: Removed requestedURLString.
1255
1256 2006-03-10  Darin Adler  <darin@apple.com>
1257
1258         - fix Windows build
1259
1260         * page/FrameTree.cpp: Add include of <stdarg.h>.
1261
1262 2006-03-10  Darin Adler  <darin@apple.com>
1263
1264         Reviewed by Geoff.
1265
1266         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3308
1267           Pop-up blocking blocks window.open for already open windows
1268
1269         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7422
1270           Setting a frame name to the same value resets it to a generated one
1271
1272         - refactor frame-name-related functions into the FrameTree object
1273
1274         * WebCore.xcodeproj/project.pbxproj: Update for rename.
1275         * bridge/mac/MacFrame.h: Remove generateFrameName.
1276         * bridge/mac/MacFrame.mm: Ditto.
1277         * bridge/mac/PageMac.h: Added a declaration for WebCorePageBridge.
1278
1279         * bridge/mac/WebCoreFrameBridge.h: Remove _frameNamespace, generateFrameName,
1280         setFrameNamespace, frameNamespace.
1281         * bridge/mac/WebCoreFrameBridge.mm:
1282         (-[WebCoreFrameBridge childFrameNamed:]): Change to call the new child
1283         function on the FrameTree.
1284         (-[WebCoreFrameBridge findFrameNamed:]): Change to call the new find
1285         function on the FrameTree.
1286         (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]): Change since the
1287         contentPart function has been renamed to contentFrame.
1288
1289         * bridge/mac/WebCoreFrameNamespaces.h: Removed everything except for the
1290         one method still used on the WebKit side, framesInNamespace:.
1291         * bridge/mac/WebCoreFrameNamespaces.m: Renamed.
1292         * bridge/mac/WebCoreFrameNamespaces.mm: Added. Reimplemented the
1293         framesInNamespace method to use the namespace in WebCore::Page.
1294
1295         * bridge/mac/WebCorePageBridge.h: Added setGroupName and groupName.
1296         * bridge/mac/WebCorePageBridge.mm:
1297         (-[WebCorePageBridge setGroupName:]): Added. Calls through to Page.
1298         (-[WebCorePageBridge groupName]): Ditto.
1299
1300         * khtml/ecma/kjs_html.cpp:
1301         (KJS::HTMLDocument::namedItemGetter): Changed to call contentFrame by its new name.
1302         (KJS::HTMLElement::frameGetter): Ditto.
1303         (KJS::HTMLElement::iFrameGetter): Ditto.
1304
1305         * khtml/ecma/kjs_window.cpp:
1306         (KJS::Window::getValueProperty): Changed to call FrameTree::childCount
1307         instead of Frame::frames.
1308         (KJS::Window::childFrameGetter): Changed to call FrameTree::child
1309         instead of Frame::childFrameNamed.
1310         (KJS::Window::namedFrameGetter): Changed to call FrameTree::find
1311         instead of Frame::findFrame.
1312         (KJS::Window::indexGetter): Changed to call FrameTree::child
1313         instead of Frame::frames.
1314         (KJS::Window::getOwnPropertySlot): Changed to call FrameTree::child,
1315         FrameTree::find, and FrameTree::childCount instead of Frame::childFrameNamed,
1316         and Frame::findFrame, and Frame::frames.
1317         (KJS::WindowFunc::callAsFunction): Call FrameTree::find to check if the window
1318         is already open when considering whether to block a pop-up.
1319         (KJS::FrameArray::getValueProperty): Changed to call FrameTree::childCount
1320         instead of Frame::frames.
1321         (KJS::FrameArray::indexGetter): Changed to call FrameTree::child
1322         instead of Frame::frames.
1323         (KJS::FrameArray::nameGetter): Changed to call FrameTree::child
1324         instead of Frame::findFrame.
1325         (KJS::FrameArray::getOwnPropertySlot): Changed to call FrameTree::child,
1326         and FrameTree::childCount instead of Frame::findFrame and Frame::frames.
1327
1328         * khtml/html/html_baseimpl.h:
1329         * khtml/html/html_baseimpl.cpp:
1330         (WebCore::HTMLFrameElementImpl::isURLAllowed): Changed to call Page::frameCount
1331         instead of Frame::topLevelFrameCount.
1332         (WebCore::HTMLFrameElementImpl::openURL): Changed to call FrameTree::child
1333         instead of Frame::findFrame.
1334         (WebCore::HTMLFrameElementImpl::attach): Changed to call Page::incrementFrameCount
1335         instead of Frame::incrementFrameCount. Changed to call FrameTree::uniqueChildName
1336         instead of Frame::requestFrameName.
1337         (WebCore::HTMLFrameElementImpl::close): Changed to call Page::decrementFrameCount
1338         instead of Frame::decrementFrameCount. Changed to call FrameTree::child
1339         instead of Frame::findFrame.
1340         (WebCore::HTMLFrameElementImpl::contentFrame): Renamed from contentPart. Also
1341         changed to call FrameTree::child instead of Frame::findFrame.
1342         (WebCore::HTMLFrameElementImpl::contentDocument): Updated for name change of
1343         contentFrame from contentPart.
1344         (WebCore::HTMLIFrameElementImpl::attach): Changed to call Page::incrementFrameCount
1345         instead of Frame::incrementFrameCount. Changed to call FrameTree::uniqueChildName
1346         instead of Frame::requestFrameName.
1347
1348         * rendering/render_frames.cpp: (WebCore::isURLAllowed): Changed to call Page::frameCount
1349         instead of Frame::topLevelFrameCount.
1350
1351         * page/Frame.h: Removed frameNames, frames, childFrameNamed, findFrame, currentFrame,
1352         frameExists, incrementFrameCount, decrementFrameCount, topLevelFrameCount,
1353         generateFrameName, and requestFrameName functions.
1354         * page/Frame.cpp: (WebCore::Frame::requestFrame): Changed to use FrameTree::child
1355         instead of Frame::childFrameNamed.
1356
1357         * page/FrameTree.h: Changed name to an atomic string. Changed childCount to unsigned.
1358         Added isDescendantOf, traverseNext, child, find, uniqueChildName.
1359         * page/FrameTree.cpp:
1360         (WebCore::FrameTree::setName): Changed to call uniqueChildName to handle name
1361         duplication logic.
1362         (WebCore::FrameTree::uniqueChildName): Added. Checks for duplication and generates
1363         an appropriate frame name if there is a duplicate.
1364         (WebCore::FrameTree::child): Added.
1365         (WebCore::FrameTree::find): Added.
1366         (WebCore::FrameTree::isDescendantOf): Added.
1367         (WebCore::FrameTree::traverseNext): Added.
1368
1369         * page/Page.h: Added setGroupName, groupName, frameNamespace, incrementFrameCount,
1370         decrementFrameCount, and frameCount.
1371         * page/Page.cpp:
1372         (WebCore::Page::Page): Initialize m_frameCount to 0.
1373         (WebCore::Page::~Page): Call setGroupName to remove the page from any group it's in.
1374         (WebCore::Page::setGroupName): Added.
1375         (WebCore::Page::frameNamespace): Added.
1376
1377         * platform/win/TemporaryLinkStubs.cpp: Removed FrameWin::generateFrameName.
1378
1379 2006-03-10  Justin Garcia  <justin.garcia@apple.com>
1380         
1381         Reviewed by darin, harrison
1382         
1383         ~3x speedup pasting plain text from the console
1384
1385         * dom/dom_position.cpp:
1386         (WebCore::Position::next): 
1387         (WebCore::Position::atEnd): 
1388
1389 2006-03-10  David Hyatt <hyatt@apple.com>
1390
1391         More refactoring.  Split the FontData into cross-platform and
1392         platform-specific components.
1393
1394         Reviewed by eric
1395
1396         * WebCore.vcproj/WebCore/WebCore.vcproj:
1397         * platform/FontData.h: Added.
1398         (WebCore::FontData:::m_platformData):
1399         (WebCore::FontData::platformData):
1400         (WebCore::FontData::setMetrics):
1401         (WebCore::FontData::ascent):
1402         (WebCore::FontData::descent):
1403         (WebCore::FontData::xHeight):
1404         (WebCore::FontData::lineSpacing):
1405         * platform/FontPlatformData.h: Added.
1406         (WebCore::FontPlatformData::hfont):
1407         (WebCore::FontPlatformData::scaledFont):
1408         * platform/win/FontPlatformDataWin.cpp: Added.
1409         (WebCore::FontPlatformData::FontPlatformData):
1410         (WebCore::FontPlatformData::~FontPlatformData):
1411         * platform/win/FontWin.cpp:
1412         (WebCore::Font::floatWidth):
1413         (WebCore::Font::drawText):
1414
1415 2006-03-10  Maciej Stachowiak  <mjs@apple.com>
1416
1417         Reviewed by Eric.
1418
1419         - fix win32 networking to properly use async load API
1420
1421         * platform/win/TransferJobWin.cpp:
1422         (WebCore::TransferJobWndProc):
1423         (WebCore::TransferJob::start):
1424
1425 2006-03-10  Eric Seidel  <eseidel@apple.com>
1426
1427         Fix build.
1428
1429         * platform/win/FontWin.cpp:
1430         (WebCore::getFontData):
1431         * platform/win/TemporaryLinkStubs.cpp:
1432
1433 2006-03-10  Adele Peterson  <adele@apple.com>
1434
1435         Reviewed by Tim Hatcher.
1436
1437         - fix for <rdar://problem/4469419> 
1438         REGRESSION: RadioButtons are not checked in Safari when name attribute comes after checked attribute
1439
1440         Test: fast/forms/radio-attr-order.html
1441
1442         * khtml/html/HTMLInputElementImpl.cpp: (WebCore::HTMLInputElementImpl::parseMappedAttribute):
1443         When the name attribute gets parsed for radio buttons, if its supposed to be checked by default, call setChecked.
1444         Also, when the name changes on a checked button, we don't need to check that 
1445         there's a form before removing it as the checked button for that group.  
1446         That was an old check from when we required a form to keep track of checked buttons.
1447
1448 2006-03-10  Eric Seidel  <eseidel@apple.com>
1449
1450         Reviewed by darin.
1451
1452         Add real ScrollViewWin implementation (fixes redraw bugs, adds ScrollBar support.)
1453
1454         * platform/ScrollView.h:
1455         * platform/Widget.h:
1456         * platform/win/FontWin.cpp:
1457         (WebCore::getCairoFont): Fix crasher.
1458         * platform/win/ScrollViewWin.cpp:
1459         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
1460         (WebCore::ScrollView::ScrollView):
1461         (WebCore::ScrollView::~ScrollView):
1462         (WebCore::ScrollView::updateContents):
1463         (WebCore::ScrollView::visibleWidth):
1464         (WebCore::ScrollView::visibleHeight):
1465         (WebCore::ScrollView::setContentsPos):
1466         (WebCore::ScrollView::resizeContents):
1467         (WebCore::ScrollView::contentsX):
1468         (WebCore::ScrollView::contentsY):
1469         (WebCore::ScrollView::contentsWidth):
1470         (WebCore::ScrollView::contentsHeight):
1471         (WebCore::ScrollView::viewportToContents):
1472         (WebCore::ScrollView::contentsToViewport):
1473         (WebCore::ScrollView::scrollXOffset):
1474         (WebCore::ScrollView::scrollYOffset):
1475         (WebCore::ScrollView::scrollBy):
1476         (WebCore::ScrollView::hScrollBarMode):
1477         (WebCore::ScrollView::vScrollBarMode):
1478         (WebCore::ScrollView::suppressScrollBars):
1479         (WebCore::ScrollView::setHScrollBarMode):
1480         (WebCore::ScrollView::setVScrollBarMode):
1481         (WebCore::ScrollView::setScrollBarsMode):
1482         (WebCore::ScrollView::setStaticBackground):
1483         (WebCore::ScrollView::updateScrollInfo):
1484         (WebCore::ScrollView::updateScrollBars):
1485         * platform/win/TemporaryLinkStubs.cpp:
1486         (BrowserExtensionWin::goBackOrForward):
1487         (BrowserExtensionWin::setIconURL):
1488         (ScrollView::scrollPointRecursively):
1489         * platform/win/WidgetWin.cpp:
1490         (WebCore::Widget::windowHandle): mark as const
1491
1492 2006-03-10  David Hyatt  <hyatt@apple.com>
1493
1494         Rename the m_renderer variable to m_dataSet now that the class name
1495         has changed.
1496
1497         Reviewed by adele
1498
1499         * platform/Font.cpp:
1500         (WebCore::m_wordSpacing):
1501         (WebCore::Font::Font):
1502         (WebCore::Font::operator=):
1503         (WebCore::Font::update):
1504         * platform/Font.h:
1505         * platform/FontDataSet.h:
1506         * platform/mac/FontMac.mm:
1507         (WebCore::Font::getWebCoreFont):
1508         (WebCore::Font::ascent):
1509         (WebCore::Font::descent):
1510         (WebCore::Font::lineSpacing):
1511         (WebCore::Font::xHeight):
1512         (WebCore::Font::isFixedPitch):
1513         (WebCore::Font::selectionRectForText):
1514         (WebCore::Font::drawText):
1515         (WebCore::Font::drawHighlightForText):
1516         (WebCore::Font::drawLineForText):
1517         (WebCore::Font::drawLineForMisspelling):
1518         (WebCore::Font::misspellingLineThickness):
1519         (WebCore::Font::floatWidth):
1520         (WebCore::Font::checkSelectionPoint):
1521         * platform/win/FontWin.cpp:
1522         (WebCore::FontData::FontData):
1523         (WebCore::FontData::~FontData):
1524         (WebCore::getFontData):
1525         (WebCore::FontDataSet::primaryFont):
1526         (WebCore::Font::floatWidth):
1527         (WebCore::Font::ascent):
1528         (WebCore::Font::descent):
1529         (WebCore::Font::xHeight):
1530         (WebCore::Font::lineSpacing):
1531         (WebCore::Font::isFixedPitch):
1532         (WebCore::Font::drawText):
1533
1534 2006-03-10  David Hyatt  <hyatt@apple.com>
1535
1536         Rename FontRenderer to FontDataSet.
1537
1538         Reviewed by adele
1539
1540         * WebCore.xcodeproj/project.pbxproj:
1541         * platform/Font.cpp:
1542         (WebCore::Font::update):
1543         * platform/Font.h:
1544         * platform/FontDataSet.h: Added.
1545         * platform/FontRenderer.h: Removed.
1546         * platform/mac/FontMac.mm:
1547         (WebCore::FontDataSet::~FontDataSet):
1548         (WebCore::FontDataSet::getWebCoreFont):
1549         (WebCore::FontDataSet::getRenderer):
1550         (WebCore::FontDataSet::determinePitch):
1551         (WebCore::FontDataSet::invalidate):
1552         * platform/win/FontWin.cpp:
1553         (WebCore::getCairoFont):
1554         (WebCore::FontDataSet::~FontDataSet):
1555         (WebCore::FontDataSet::determinePitch):
1556         (WebCore::FontDataSet::invalidate):
1557         (WebCore::FontDataSet::primaryCairoFont):
1558
1559 2006-03-09  Justin Garcia  <justin.garcia@apple.com>
1560
1561         Reviewed by adele
1562         
1563         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7692>
1564         Should use an iterator in CompositeEditCommand::doUnapply()
1565         
1566         ~30% speedup of a big undo
1567
1568         * editing/CompositeEditCommand.cpp:
1569         (WebCore::CompositeEditCommand::doUnapply):
1570         (WebCore::CompositeEditCommand::doReapply):
1571
1572 2006-03-09  Adele Peterson  <adele@apple.com>
1573
1574         Reviewed by Tim O.
1575
1576         Removed unnecessary alerts in TextIterator advance methods.  
1577         We want to be able to use advance() even if the iterator is already at the end.
1578
1579         * editing/visible_text.cpp:
1580         (khtml::TextIterator::advance): remove assert since TextIterator will just do nothing if its already at the end.
1581         (khtml::CharacterIterator::advance): ditto.
1582         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::visiblePositionForIndex):
1583         Since the asserts in the iterator are removed, we don't have to check for it.atEnd() before calling advance.
1584
1585 2006-03-09  David Hyatt <hyatt@apple.com>
1586
1587         Make text paint with the correct foreground color on Windows.
1588         Make the face validation check case insensitive.
1589         Force ClearType to be on for font rendering.
1590
1591         Reviewed by Tim Hatcher
1592
1593         * platform/win/FontWin.cpp:
1594         (WebCore::getCairoFont):
1595         (WebCore::Font::drawText):
1596
1597 2006-03-09  Adele Peterson  <adele@apple.com>
1598
1599         Reviewed by Hyatt.
1600
1601         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7675
1602         When new text fields change from visibility:hidden to visibility:visible, value doesn't display
1603
1604         Test: fast/forms/input-appearance-visibility.html
1605
1606         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::setStyle):
1607         Sets the style directly on the children of the inner div.
1608
1609 2006-03-09  David Hyatt <hyatt@apple.com>
1610
1611         Make basic text rendering work on Win32.
1612
1613         Reviewed by eric
1614
1615         * WebCore.vcproj/WebCore/WebCore.vcproj:
1616         Add FontDescription.h to the Visual Studio project.
1617
1618         * bridge/win/FrameWin.cpp:
1619         (WebCore::FrameWin::FrameWin):
1620         Add some good default font settings to KHTMLSettings.
1621
1622         * platform/Font.cpp:
1623         (WebCore::Font::update):
1624         Renamed the FontRenderer method to invalidate, so that's what
1625         update calls now.
1626
1627         * platform/FontRenderer.h:
1628         * platform/mac/FontMac.mm:
1629         (WebCore::FontRenderer::~FontRenderer):
1630         (WebCore::FontRenderer::invalidate):
1631         Rename the update method to invalidate.  Make sure the Mac
1632         font renderer releases its resources when it gets destroyed.
1633
1634         * platform/win/FontWin.cpp:
1635         (WebCore::CairoFont::CairoFont):
1636         (WebCore::CairoFont::~CairoFont):
1637         (WebCore::CairoFont::hfont):
1638         (WebCore::CairoFont::scaledFont):
1639         (WebCore::CairoFont::setMetrics):
1640         (WebCore::CairoFont::ascent):
1641         (WebCore::CairoFont::descent):
1642         (WebCore::CairoFont::xHeight):
1643         (WebCore::CairoFont::lineSpacing):
1644         Implement a new class called CairoFont that encapsulates
1645         the windows HFONT, the cairo font face, and the cairo scaled
1646         font.
1647
1648         (WebCore::getCairoFont):
1649         The method to look up a Cairo font.  This will eventually use
1650         a hash, but for now it just always makes the fonts over and
1651         over again.
1652
1653         (WebCore:::m_pitch):
1654         (WebCore::FontRenderer::~FontRenderer):
1655         (WebCore::FontRenderer::determinePitch):
1656         (WebCore::FontRenderer::invalidate):
1657         More of the FontRenderer plumbing.
1658
1659         (WebCore::FontRenderer::primaryCairoFont):
1660         Returns the primary Cairo font for a family list.  This is basically
1661         the first family that is present on the system.
1662
1663         (WebCore::Font::floatWidth):
1664         The width method uses GetTextExtentPoint32W for now.  This
1665         is totally wrong and will eventually be replaced by Cairo
1666         code.
1667
1668         (WebCore::Font::ascent):
1669         (WebCore::Font::descent):
1670         (WebCore::Font::xHeight):
1671         (WebCore::Font::lineSpacing):
1672         (WebCore::Font::isFixedPitch):
1673         Accessors for the metrics and pitch info.
1674
1675         (WebCore::Font::drawText):
1676         Drawing of text.  Uses TextOut and is also basically throwaway
1677         code.
1678
1679         * platform/win/TemporaryLinkStubs.cpp:
1680         (Font::checkSelectionPoint):
1681         Move the checkSelectionPoint method back to the link stubs.
1682
1683 2006-03-09  Justin Garcia  <justin.garcia@apple.com>
1684
1685         Reviewed by harrison
1686     
1687         Fixed formatting and changed functions to take in 
1688         a const Selection& instead of a Selection.
1689
1690         * editing/ModifySelectionListLevelCommand.cpp:
1691         (WebCore::ModifySelectionListLevelCommand::canIncreaseSelectionListLevel):
1692         (WebCore::ModifySelectionListLevelCommand::canDecreaseSelectionListLevel):
1693         (WebCore::ModifySelectionListLevelCommand::increaseSelectionListLevel):
1694         (WebCore::ModifySelectionListLevelCommand::decreaseSelectionListLevel):
1695         (WebCore::modifySelectionListLevel):
1696         (WebCore::getStartEndListChildren):
1697         (WebCore::canIncreaseListLevel):
1698         (WebCore::canDecreaseListLevel):
1699         (WebCore::ModifySelectionListLevelCommand::increaseListLevel):
1700         (WebCore::ModifySelectionListLevelCommand::decreaseListLevel):
1701         * editing/ModifySelectionListLevelCommand.h:
1702
1703 2006-03-09  Adele Peterson  <adele@apple.com>
1704
1705         Reviewed by Darin.
1706
1707         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6814
1708         Implement selection methods for RenderTextField
1709
1710         Test: fast/forms/input-appearance-selection.html
1711
1712         * rendering/RenderTextField.cpp:
1713         (WebCore::RenderTextField::createDivStyle): removed extra space.
1714         (WebCore::RenderTextField::select): Removed checks for document and m_div since there should always be a document and 
1715          m_div will be initialized as the renderer gets attached.
1716         (WebCore::RenderTextField::selectionStart): Calls indexForVisiblePosition.
1717         (WebCore::RenderTextField::selectionEnd): ditto.
1718         (WebCore::RenderTextField::setSelectionStart): calls setSelectionRange.
1719         (WebCore::RenderTextField::setSelectionEnd): ditto.
1720         (WebCore::RenderTextField::setSelectionRange): gets VisiblePositions for both indices, and sets the selection.
1721         (WebCore::RenderTextField::visiblePositionForIndex): Added helper method.
1722         (WebCore::RenderTextField::indexForVisiblePosition): Added helper method.
1723         * rendering/RenderTextField.h: Added new helper methods for selection.
1724
1725 2006-03-09  David Carson  <dacarson@gmail.com>
1726
1727         Test: fast/canvas/fillrect_gradient.html
1728
1729         Reviewed by Darin.
1730
1731         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6103
1732           Rectangles are not filled according to the Web Applications Working Draft
1733
1734         * khtml/ecma/kjs_html.cpp: (KJS::Context2DFunction::callAsFunction):
1735         Modified fillrect function to check and use a gradient if set.
1736         Builds a path to fill rects with a gradient.
1737
1738 2006-03-09  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1739
1740         No test because this fixes an existing pixel test (and does not affect
1741         the render tree).
1742
1743         Reviewed by Maciej.
1744
1745         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7664
1746           REGRESSION: tests that include numeric list markers fail in pixel mode
1747
1748         * platform/GraphicsContext.cpp:
1749         (WebCore::GraphicsContext::drawText): Restored AlignRight behavior.
1750
1751 2006-03-09  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1752
1753         No test because we couldn't figure out how to write one.
1754
1755         Reviewed by Darin.
1756
1757         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7680
1758           REGRESSION: Ellipsis painted over the chrome and in invalid contexts
1759
1760         * rendering/render_line.cpp:
1761         (WebCore::EllipsisBox::paint): Replaced call to Font::drawText with
1762         GraphicsContext::drawText, which checks the paintingDisabled flag.
1763
1764 2006-03-09  Maciej Stachowiak  <mjs@apple.com>
1765
1766         Reviewed by Eric.
1767
1768         - make link clicks work by propagating them up to a client
1769
1770         * Viewer/ImageView.cpp:
1771         * bridge/win/FrameWin.cpp:
1772         * bridge/win/FrameWin.h:
1773         * platform/win/TemporaryLinkStubs.cpp:
1774         (FrameWin::incomingReferrer):
1775
1776 2006-03-09  Eric Seidel  <eseidel@apple.com>
1777
1778         Reviewed by mjs.
1779
1780         Add support for Timers under 10ms.
1781         Fix random crashers due to multi-threaded loading.
1782
1783         * platform/TransferJob.h:
1784         * platform/TransferJobInternal.h:
1785         (WebCore::TransferJobInternal::TransferJobInternal):
1786         * platform/Widget.h:
1787         * platform/win/SharedTimerWin.cpp:
1788         (WebCore::TimerWindowWndProc):
1789         (WebCore::initializeOffScreenTimerWindow):
1790         (WebCore::setSharedTimerFireTime):
1791         * platform/win/TemporaryLinkStubs.cpp:
1792         (WebCore::TransferJob::assembleResponseHeaders):
1793         (WebCore::TransferJob::retrieveCharset):
1794         * platform/win/TransferJobWin.cpp:
1795         (WebCore::addToOutstandingJobs):
1796         (WebCore::removeFromOutstandingJobs):
1797         (WebCore::lookupTransferJob):
1798         (WebCore::TransferJobWndProc):
1799         (WebCore::initializeOffScreenTransferJobWindow):
1800         (WebCore::TransferJob::~TransferJob):
1801         (WebCore::transferJobStatusCallback):
1802         (WebCore::TransferJob::start):
1803         (WebCore::TransferJob::cancel):
1804         * platform/win/WidgetWin.cpp:
1805
1806 2006-03-08  Justin Garcia  <justin.garcia@apple.com>
1807
1808         Reviewed by darin
1809         
1810         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7579>
1811         TinyMCE: Implement execCommand(insertImage, ...)
1812         
1813         Implemented InsertImage and also changed paste to use a single 
1814         rule for when to remove junk that remains after node removal. 
1815
1816         * editing/ReplaceSelectionCommand.cpp:
1817         (WebCore::ReplaceSelectionCommand::removeNodeAndPruneAncestors):
1818         (WebCore::ReplaceSelectionCommand::doApply):
1819         (WebCore::ReplaceSelectionCommand::removeLinePlaceholderIfNeeded):
1820         * editing/ReplaceSelectionCommand.h:
1821         * editing/htmlediting.cpp:
1822         * editing/jsediting.cpp:
1823
1824 2006-03-08  Eric Seidel  <eseidel@apple.com>
1825
1826         Reviewed by hyatt.
1827
1828         Fix build script to properly copy dll files.
1829
1830         * WebCore.vcproj/WebCore/build-generated-files.sh:
1831
1832 2006-03-08  Rob Buis  <buis@kde.org>
1833
1834         Reviewed by eseidel.
1835
1836         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6899 SVG <rect> does not respect display: none
1837
1838         For svg elements that can render, call StyledElementImpl::rendererIsNeeded
1839         to decide whether the element should render. In particular this way
1840         any setting of display="none" is handled.
1841
1842         * ksvg2/svg/SVGAElementImpl.h:
1843         (WebCore::SVGAElementImpl::rendererIsNeeded):
1844         * ksvg2/svg/SVGCircleElementImpl.h:
1845         (WebCore::SVGCircleElementImpl::rendererIsNeeded):
1846         * ksvg2/svg/SVGEllipseElementImpl.h:
1847         (WebCore::SVGEllipseElementImpl::rendererIsNeeded):
1848         * ksvg2/svg/SVGForeignObjectElementImpl.h:
1849         (WebCore::SVGForeignObjectElementImpl::rendererIsNeeded):
1850         * ksvg2/svg/SVGGElementImpl.h:
1851         (WebCore::SVGGElementImpl::rendererIsNeeded):
1852         * ksvg2/svg/SVGImageElementImpl.h:
1853         (WebCore::SVGImageElementImpl::rendererIsNeeded):
1854         * ksvg2/svg/SVGLineElementImpl.h:
1855         (WebCore::SVGLineElementImpl::rendererIsNeeded):
1856         * ksvg2/svg/SVGMarkerElementImpl.h:
1857         (WebCore::SVGMarkerElementImpl::rendererIsNeeded):
1858         * ksvg2/svg/SVGMaskElementImpl.h:
1859         (WebCore::SVGMaskElementImpl::rendererIsNeeded):
1860         * ksvg2/svg/SVGPathElementImpl.h:
1861         (WebCore::SVGPathElementImpl::rendererIsNeeded):
1862         * ksvg2/svg/SVGPatternElementImpl.h:
1863         (WebCore::SVGPatternElementImpl::rendererIsNeeded):
1864         * ksvg2/svg/SVGPolyElementImpl.h:
1865         (WebCore::SVGPolyElementImpl::rendererIsNeeded):
1866         * ksvg2/svg/SVGRectElementImpl.h:
1867         (WebCore::SVGRectElementImpl::rendererIsNeeded):
1868         * ksvg2/svg/SVGSVGElementImpl.h:
1869         (WebCore::SVGSVGElementImpl::rendererIsNeeded):
1870         * ksvg2/svg/SVGSwitchElementImpl.h:
1871         (WebCore::SVGSwitchElementImpl::rendererIsNeeded):
1872         * ksvg2/svg/SVGTSpanElementImpl.h:
1873         (WebCore::SVGTSpanElementImpl::rendererIsNeeded):
1874         * ksvg2/svg/SVGTextElementImpl.h:
1875         (WebCore::SVGTextElementImpl::rendererIsNeeded):
1876         * ksvg2/svg/SVGUseElementImpl.h:
1877         (WebCore::SVGUseElementImpl::rendererIsNeeded):
1878
1879 2006-03-08  Eric Seidel  <eseidel@apple.com>
1880
1881         Reviewed by mjs.
1882
1883         Add stubs to allow JavaScript-enabled WebCore to not crash.
1884         Add ScreenWin implementation.
1885         Add alert() support.
1886
1887         * WebCore.vcproj/WebCore/WebCore.vcproj:
1888         * bridge/win/FrameWin.cpp:
1889         (WebCore::FrameWin::runJavaScriptAlert):
1890         (WebCore::FrameWin::runJavaScriptConfirm):
1891         * platform/win/ScreenWin.cpp: Added.
1892         (WebCore::monitorInfoForWidget):
1893         (WebCore::WebCore::screenRect):
1894         (WebCore::WebCore::screenDepth):
1895         (WebCore::WebCore::usableScreenRect):
1896         * platform/win/TemporaryLinkStubs.cpp:
1897         (FrameWin::canUndo):
1898         (FrameWin::runJavaScriptPrompt):
1899         (FrameWin::canPaste):
1900         (WebCore::setCookies):
1901         (WebCore::cookies):
1902         (WebCore::cookiesEnabled):
1903         (PlugInInfoStore::createPluginInfoForPluginAtIndex):
1904         (PlugInInfoStore::pluginCount):
1905         (WebCore::refreshPlugins):
1906         (FrameWin::clearUndoRedoOperations):
1907         (FrameWin::incomingReferrer):
1908
1909 2006-03-08  Darin Adler  <darin@apple.com>
1910
1911         Reviewed by Maciej.
1912
1913         - fix another instance of the bug I just fixed in the Macintosh-specific code path
1914
1915         * platform/image-decoders/gif/GIFImageReader.h: Remove not-so-useful 100ms constant.
1916         * platform/image-decoders/gif/GIFImageReader.cpp: (GIFImageReader::read):
1917         Use the correct rule for minimum frame durations.
1918
1919 2006-03-08  Maciej Stachowiak  <mjs@apple.com>
1920
1921         Reviewed by Eric.
1922
1923         - very rough implementation of networking in TransferJob for windows
1924
1925         * platform/TransferJob.h:
1926         * platform/TransferJobInternal.h:
1927         (WebCore::TransferJobInternal::TransferJobInternal):
1928         * platform/win/TransferJobWin.cpp:
1929         (WebCore::transferJobStatusCallback):
1930         (WebCore::TransferJob::start):
1931
1932 2006-03-08  Maciej Stachowiak  <mjs@apple.com>
1933
1934         Reviewed by Darin.
1935
1936         - fix win32 build
1937
1938         * platform/win/FontWin.cpp:
1939         (WebCore::Font::drawText):
1940         (WebCore::Font::drawHighlightForText):
1941         * platform/win/TemporaryLinkStubs.cpp:
1942         (GraphicsContext::clearFocusRing):
1943         (GraphicsContext::selectedTextBackgroundColor):
1944         (Font::selectionRectForText):
1945
1946 2006-03-08  Darin Adler  <darin@apple.com>
1947
1948         Reviewed by Maciej.
1949
1950         - fix one more thing from http://bugzilla.opendarwin.org/show_bug.cgi?id=7528
1951           REGRESSION: GIF animation speeds are wrong on a page with many animated GIFs
1952
1953         No layout test because I don't know how to test animated GIF speed.
1954
1955         * platform/mac/ImageSourceMac.cpp: (WebCore::ImageSource::frameDurationAtIndex):
1956         Use the correct rule for minimum frame durations. It's a bit non-intuitive, so
1957         I made the comment more explicit. The old code in WebKit had this rule.
1958
1959 2006-03-08  David Hyatt  <hyatt@apple.com>
1960
1961         Make GraphicsContext call into Font to draw all text and eliminate
1962         all knowledge of WebTextRenderers from it.
1963
1964         Reviewed by darin
1965
1966         * platform/Font.h:
1967         * platform/GraphicsContext.cpp:
1968         (WebCore::GraphicsContext::drawText):
1969         (WebCore::GraphicsContext::drawHighlightForText):
1970         (WebCore::GraphicsContext::drawLineForText):
1971         (WebCore::GraphicsContext::drawLineForMisspelling):
1972         (WebCore::GraphicsContext::misspellingLineThickness):
1973         * platform/GraphicsContext.h:
1974         (WebCore::GraphicsContext::platformContext):
1975         * platform/cairo/GraphicsContextCairo.cpp:
1976         (WebCore::GraphicsContext::platformContext):
1977         * platform/mac/FontMac.mm:
1978         (WebCore::Font::drawText):
1979         (WebCore::Font::drawHighlightForText):
1980         (WebCore::Font::drawLineForText):
1981         (WebCore::Font::drawLineForMisspelling):
1982         (WebCore::Font::misspellingLineThickness):
1983         * platform/mac/GraphicsContextMac.mm:
1984         * platform/win/FontWin.cpp:
1985         (WebCore::Font::drawText):
1986         * rendering/InlineTextBox.cpp:
1987         (WebCore::InlineTextBox::paint):
1988         (WebCore::InlineTextBox::paintSelection):
1989         (WebCore::InlineTextBox::paintMarkedTextBackground):
1990         (WebCore::InlineTextBox::paintTextMatchMarker):
1991
1992 2006-03-08  Darin Adler  <darin@apple.com>
1993
1994         Reviewed by Hyatt.
1995
1996         - fixed super-fast animation of many animated GIFs
1997
1998         No layout test because I don't know how to test animated GIF speed.
1999
2000         * platform/mac/ImageSourceMac.cpp: (WebCore::ImageSource::frameDurationAtIndex):
2001         Always take the minimum duration into account, even if there's some kind of failure
2002         getting the duration from the GIF.
2003
2004 2006-03-07  Darin Adler  <darin@apple.com>
2005
2006         Reviewed by Anders.
2007
2008         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7655
2009           unwanted output while running layout tests
2010
2011         * khtml/xsl/xsl_stylesheetimpl.cpp: (WebCore::XSLStyleSheetImpl::parseString):
2012         Pass XML_PARSE_NOERROR and XML_PARSE_NOWARNING. We don't want errors and warnings
2013         to be logged to stdout or stderr. If we later decide we want the error messages,
2014         then we should do the additional work to put them into the web page or the
2015         console (along with the JavaScript errors).
2016
2017         * platform/ArrayImpl.cpp: (WebCore::ArrayImpl::resize): Add a preflight to protect
2018         against integer overflow due to large array size. Noticed this while looking into
2019         the malloc error message.
2020
2021 2006-03-07  Darin Adler  <darin@apple.com>
2022
2023         Reviewed by Adele.
2024
2025         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7647
2026           Crash when typing into text contols
2027
2028         I missed a couple places that were still saying KWQWidgetHolder
2029         in the change I landed late last night.
2030
2031         * kwq/KWQTextArea.h:
2032         * kwq/KWQTextArea.mm:
2033         * kwq/KWQTextField.h:
2034         Changed them all to say WebCoreWidgetHolder.
2035
2036 2006-03-07  Eric Seidel  <eseidel@apple.com>
2037
2038         Reviewed by hyatt.
2039
2040         Fix cursor support on win32.
2041
2042         * platform/win/WidgetWin.cpp:
2043         (WebCore::Widget::setCursor):
2044
2045 2006-03-07  Eric Seidel  <eseidel@apple.com>
2046
2047         Reviewed by hyatt.
2048
2049         Fix basic text support.
2050
2051         * WebCore.vcproj/WebCore/WebCore.vcproj:
2052         * platform/cairo/GraphicsContextCairo.cpp:
2053         (WebCore::GraphicsContext::drawText):
2054
2055 2006-03-07  Dave Hyatt <hyatt@apple.com>
2056
2057         Eliminate the unused parameters of the QString version of drawText.
2058
2059         Reviewed by eric
2060
2061         * platform/GraphicsContext.h:
2062         * platform/cairo/GraphicsContextCairo.cpp:
2063         (WebCore::GraphicsContext::drawText):
2064         * platform/mac/GraphicsContextMac.mm:
2065         (WebCore::GraphicsContext::drawText):
2066         * rendering/render_image.cpp:
2067         (WebCore::RenderImage::paint):
2068         * rendering/render_list.cpp:
2069         (WebCore::RenderListMarker::paint):
2070
2071 2006-03-07  Eric Seidel  <eseidel@apple.com>
2072
2073         Reviewed by hyatt.
2074
2075         Add very basic text support.
2076         Sort a few more stubs.
2077
2078         * WebCore.vcproj/WebCore/WebCore.vcproj:
2079         * platform/cairo/GraphicsContextCairo.cpp:
2080         (WebCore::GraphicsContext::font):
2081         (WebCore::GraphicsContext::setFont):
2082         (WebCore::GraphicsContext::drawText):
2083         * platform/win/FontWin.cpp: Added.
2084         (WebCore::Font::drawText):
2085         * platform/win/TemporaryLinkStubs.cpp:
2086         (QComboBox::focusPolicy):
2087         (ScrollView::scrollXOffset):
2088         (Font::isFixedPitch):
2089         (Path::boundingRect):
2090
2091 2006-03-07  Adele Peterson  <adele@apple.com>
2092
2093         Reviewed by Hyatt.
2094
2095         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7319
2096         Can't see caret at the end of a contenteditable div with overflow:hidden
2097
2098         No tests added since I don't think the blinking caret will show up in our tests.
2099
2100         * rendering/RenderBlock.cpp:
2101         (WebCore::RenderBlock::rightmostPosition): When calculating the rightmostPosition for editable blocks, 
2102         we need to account for the caret that can be drawn 1 px past the last child inline box.
2103
2104 2006-03-07  David Kilzer  <ddkilzer@kilzer.net>
2105
2106         Reviewed by Darin.
2107
2108         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=3905
2109         Missing </title> makes page blank
2110
2111         Test: fast/js/exception-linenums-in-html-1.html
2112         Test: fast/js/exception-linenums-in-html-2.html
2113         Test: fast/js/missing-title-end-tag-js.html
2114         Test: fast/tokenizer/missing-title-end-tag-1.html
2115         Test: fast/tokenizer/missing-title-end-tag-2.html
2116
2117         * khtml/html/htmlparser.cpp:
2118         (WebCore::HTMLParser::handleError): Add check for missing </title> tag and handle
2119         this condition if identified.
2120         * khtml/html/htmltokenizer.cpp:
2121         (WebCore::HTMLTokenizer::parseTag): If parseSpecial() consumes the rest of the
2122         document looking for a </title> tag, reset the state of the tokenizer and
2123         retokenize with no special handling for <title>.  The parser will handle the
2124         missing </title> tag in HTMLParser::handleError().
2125         * platform/SegmentedString.cpp:
2126         (WebCore::SegmentedString::SegmentedString): Added copy constructor.
2127         (WebCore::SegmentedString::operator=): Added assignment operator.  Previously the
2128         compiler was generating a default method for the assignment operator, but it did
2129         not handle m_currentChar properly.
2130         * platform/SegmentedString.h: Added prototypes for copy constructor and
2131         assignment operator.
2132
2133 2006-03-07  Eric Seidel  <eseidel@apple.com>
2134
2135         Fix win32 link stubs.
2136
2137         * platform/win/TemporaryLinkStubs.cpp:
2138         (WebCore::searchableIndexIntroduction):
2139         (WebCore::setCookies):
2140         (WebCore::cookies):
2141         (WebCore::cookiesEnabled):
2142         (WebCore::findNextSentenceFromIndex):
2143         (WebCore::findSentenceBoundary):
2144         (WebCore::findNextWordFromIndex):
2145         (WebCore::findWordBoundary):
2146         (WebCore::submitButtonDefaultLabel):
2147         (WebCore::inputElementAltText):
2148         (WebCore::resetButtonDefaultLabel):
2149         (WebCore::defaultLanguage):
2150
2151 2006-03-07  Darin Adler  <darin@apple.com>
2152
2153         Reviewed by Adele, except for the first change listed.
2154
2155         - fix recently-introduced bug that GuardMalloc found while I was debugging my other change
2156
2157         * rendering/render_frames.cpp: (WebCore::RenderPart::~RenderPart):
2158         Set m_widget to 0 before calling deref so we don't end up trying to do unwanted work.
2159
2160         - removed 10 more files from KWQ
2161
2162         * ForwardingHeaders/klocale.h: Removed.
2163
2164         * khtml/misc/helper.cpp: Removed.
2165         * khtml/misc/helper.h: Removed.
2166
2167         * kwq/KWQCollection.h: Removed.
2168         * kwq/KWQKCookieJar.h: Removed.
2169         * kwq/KWQKCookieJar.mm: Removed.
2170         * kwq/KWQKLocale.h: Removed.
2171         * kwq/KWQKLocale.mm: Removed.
2172         * kwq/KWQKURL.h: Removed.
2173         * kwq/KWQKURL.mm: Removed.
2174         * kwq/KWQTextUtilities.h: Removed.
2175         * kwq/KWQTextUtilities.mm: Removed.
2176         * kwq/KWQView.h: Removed.
2177
2178         * platform/CookieJar.h: Added.
2179         * platform/Language.h: Added.
2180         * platform/LocalizedStrings.h: Added.
2181         * platform/TextBoundaries.h: Added.
2182         * platform/mac/CookieJar.mm: Added.
2183         * platform/mac/Language.mm: Added.
2184         * platform/mac/LocalizedStringsMac.mm: Added.
2185         * platform/mac/TextBoundaries.mm: Added.
2186         * platform/mac/WebCoreWidgetHolder.h: Added.
2187
2188         * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
2189         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removed and added files.
2190
2191         * bridge/mac/WebCoreFrameBridge.mm: Updated includes.
2192         (-[WebCoreFrameBridge elementForView:]): Changed KWQWidgetHolder to WebCoreWidgetHolder.
2193
2194         * editing/visible_units.cpp:
2195         (WebCore::previousWordPositionBoundary):
2196         (WebCore::nextWordPositionBoundary):
2197         (WebCore::previousSentencePositionBoundary):
2198         (WebCore::nextSentencePositionBoundary):
2199         Call TextBoundaries.h functions instead of helper.h ones.
2200
2201         * khtml/ecma/kjs_navigator.cpp: (KJS::Navigator::getValueProperty):
2202         * ksvg2/svg/SVGTestsImpl.cpp: (WebCore::SVGTestsImpl::isValid):
2203         Changed to call defaultLanguage; cleaned up formatting.
2204
2205         * khtml/html/HTMLFormElementImpl.cpp: Removed stray comment.
2206
2207         * khtml/html/html_documentimpl.cpp:
2208         (WebCore::HTMLDocumentImpl::cookie):
2209         (WebCore::HTMLDocumentImpl::setCookie):
2210         Call CookieJar.h functions.
2211
2212         * css/css_valueimpl.cpp:
2213         * css/cssparser.cpp:
2214         * css/cssstyleselector.cpp:
2215         * dom/DocumentImpl.cpp:
2216         * dom/dom_position.cpp:
2217         * khtml/ecma/kjs_window.cpp:
2218         * khtml/html/HTMLInputElementImpl.cpp:
2219         * khtml/html/html_headimpl.cpp:
2220         * khtml/html/htmlparser.cpp:
2221         * khtml/misc/decoder.cpp:
2222         * ksvg2/svg/SVGDocumentImpl.cpp:
2223         * kwq/KWQComboBox.mm:
2224         * kwq/KWQKSSLKeyGen.mm:
2225         * kwq/KWQListBox.mm:
2226         * kwq/KWQListImpl.cpp:
2227         * kwq/KWQListImpl.h:
2228         * kwq/KWQScrollBar.mm:
2229         * kwq/KWQSlider.mm:
2230         * kwq/KWQTextField.mm:
2231         * kwq/KWQValueList.h:
2232         * loader/DocLoader.cpp:
2233         * page/Frame.cpp:
2234         * page/FrameView.cpp:
2235         * platform/mac/WidgetMac.mm:
2236         (WebCore::Widget::beforeMouseDown):
2237         (WebCore::Widget::afterMouseDown):
2238         * rendering/render_applet.cpp:
2239         * rendering/render_form.cpp:
2240         * rendering/render_image.cpp:
2241         * rendering/render_list.cpp:
2242         Updated includes and protocol names.
2243
2244         * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::write): Remove
2245         QT_VERSION code.
2246         * platform/QString.h: Remove QT_VERSION.
2247
2248         * kwq/KWQPtrList.h: Change to no longer use QPtrCollection.
2249
2250         * kwq/KWQRenderTreeDebug.h:
2251         * kwq/KWQRenderTreeDebug.cpp: (externalRepresentation):
2252         Remove unused debuggingRenderTree boolean.
2253
2254 2006-03-07  Eric Seidel  <eseidel@apple.com>
2255
2256         Reviewed by darin.
2257
2258         * platform/mac/GraphicsContextMac.mm: Add Widget.h to fix no-svg build.
2259
2260 2006-03-06  Eric Seidel  <eseidel@apple.com>
2261
2262         Reviewed by hyatt.
2263
2264         Make spinneret run again, fix webview to support dynamic resize.
2265
2266         * platform/win/TemporaryLinkStubs.cpp:
2267         (Widget::setDrawingAlpha):
2268         * platform/win/WidgetWin.cpp:
2269         (WebCore::Widget::Widget):
2270         (WebCore::Widget::setClient):
2271         (WebCore::Widget::client):
2272         (WebCore::Widget::frameGeometry):
2273
2274 2006-03-06  Eric Seidel  <eseidel@apple.com>
2275
2276         Reviewed by darin.
2277
2278         Fix win32 build.
2279
2280         * platform/win/TemporaryLinkStubs.cpp:
2281         (QScrollBar::QScrollBar):
2282         (QTextEdit::setAlignment):
2283         (Widget::client):
2284         (Widget::setClient):
2285         (QLineEdit::setAlignment):
2286
2287 2006-03-06  Beth Dakin  <bdakin@apple.com>
2288
2289         Reviewed by Darin.
2290
2291         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7566 (also 
2292         <rdar://problem/4467128> ). Must call update() on a Font before 
2293         attempting to use it because the FontRenderer is not created until 
2294         update() is called.
2295
2296         * kwq/KWQListBox.mm:
2297         (QListBox::sizeForNumberOfLines): Call update()
2298         (-[KWQTableView drawRow:clipRect:]): Call update()
2299
2300 2006-03-06  Darin Adler  <darin@apple.com>
2301
2302         Reviewed by Adele.
2303
2304         - http://bugzilla.opendarwin.org/show_bug.cgi?id=7564
2305           remove QObject, QGuardedPtr, slots, and signals
2306
2307         I had written a detailed change log entry, but I lost it!
2308         I'm too annoyed to write one all over again.
2309
2310         * ForwardingHeaders/qguardedptr.h: Removed.
2311         * ForwardingHeaders/qobject.h: Removed.
2312
2313         * kwq/KWQGuardedPtr.cpp: Removed.
2314         * kwq/KWQGuardedPtr.h: Removed.
2315         * kwq/KWQNamespace.h: Removed.
2316         * kwq/KWQObject.cpp: Removed.
2317         * kwq/KWQObject.h: Removed.
2318         * kwq/KWQSignal.cpp: Removed.
2319         * kwq/KWQSignal.h: Removed.
2320         * kwq/KWQSlot.cpp: Removed.
2321         * kwq/KWQSlot.h: Removed.
2322
2323         * platform/WidgetClient.h: Added.
2324
2325         * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
2326         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
2327
2328         * bindings/js/JSDOMCore.cpp: Touched.
2329         * bindings/js/JSDOMEvents.cpp: Ditto.
2330
2331         * bridge/BrowserExtension.h:
2332         (WebCore::BrowserExtension::~BrowserExtension):
2333         * bridge/mac/WebCoreFrameBridge.mm:
2334         (-[WebCoreFrameBridge elementForView:]):
2335         * dom/CDATASectionImpl.cpp:
2336         (WebCore::CDATASectionImpl::cloneNode):
2337         * dom/DocumentImpl.cpp:
2338         (WebCore::DocumentImpl::~DocumentImpl):
2339         * dom/DocumentImpl.h:
2340         * kcanvas/device/KRenderingDevice.h:
2341         * khtml/ecma/kjs_css.cpp:
2342         (KJS::DOMCSSStyleDeclaration::put):
2343         * khtml/ecma/kjs_window.cpp:
2344         (KJS::FrameArray::indexGetter):
2345         (KJS::FrameArray::nameGetter):
2346         * khtml/html/html_documentimpl.cpp:
2347         (WebCore::HTMLDocumentImpl::createTokenizer):
2348         * khtml/html/htmlparser.cpp:
2349         (WebCore::HTMLParser::HTMLParser):
2350         (WebCore::HTMLParser::insertNode):
2351         (WebCore::HTMLParser::handleError):
2352         (WebCore::HTMLParser::commentCreateErrorCheck):
2353         (WebCore::HTMLParser::noscriptCreateErrorCheck):
2354         (WebCore::HTMLParser::isInline):
2355         (WebCore::HTMLParser::finished):
2356         * khtml/html/htmlparser.h:
2357         * khtml/html/htmltokenizer.cpp:
2358         (WebCore::HTMLTokenizer::HTMLTokenizer):
2359         (WebCore::HTMLTokenizer::scriptHandler):
2360         (WebCore::HTMLTokenizer::scriptExecution):
2361         (WebCore::HTMLTokenizer::parseComment):
2362         (WebCore::HTMLTokenizer::parseTag):
2363         (WebCore::HTMLTokenizer::stopParsing):
2364         (WebCore::HTMLTokenizer::timerFired):
2365         (WebCore::HTMLTokenizer::processToken):
2366         (WebCore::parseHTMLDocumentFragment):
2367         * khtml/html/htmltokenizer.h:
2368         * kwq/KWQComboBox.h:
2369         * kwq/KWQComboBox.mm:
2370         (-[KWQPopUpButton setPopulatingMenu:QComboBox:::]):
2371         (QComboBox::itemSelected):
2372         (-[KWQPopUpButton becomeFirstResponder]):
2373         (-[KWQPopUpButton resignFirstResponder]):
2374         * kwq/KWQFileButton.h:
2375         (KWQFileButton::filename):
2376         * kwq/KWQFileButton.mm:
2377         (KWQFileButton::KWQFileButton):
2378         (KWQFileButton::filenameChanged):
2379         (-[KWQFileButtonAdapter filenameChanged:]):
2380         (-[KWQFileButtonAdapter focusChanged:]):
2381         (-[KWQFileButtonAdapter clicked]):
2382         * kwq/KWQLineEdit.h:
2383         * kwq/KWQLineEdit.mm:
2384         (QLineEdit::QLineEdit):
2385         (QLineEdit::setAlignment):
2386         (KWQNSTextAlignment):
2387         * kwq/KWQListBox.h:
2388         (QListBox::changingSelection):
2389         * kwq/KWQListBox.mm:
2390         (QListBox::QListBox):
2391         (-[KWQTableView becomeFirstResponder]):
2392         (-[KWQTableView resignFirstResponder]):
2393         (-[KWQTableView tableViewSelectionDidChange:]):
2394         * kwq/KWQScrollBar.h:
2395         (WebCore::):
2396         (QScrollBar::orientation):
2397         * kwq/KWQScrollBar.mm:
2398         (-[KWQScrollBar initWithQScrollBar:]):
2399         (QScrollBar::QScrollBar):
2400         (QScrollBar::valueChanged):
2401         (QScrollBar::scroll):
2402         * kwq/KWQSlider.h:
2403         * kwq/KWQSlider.mm:
2404         (-[KWQSlider mouseDown:]):
2405         (-[KWQSlider slide:]):
2406         (-[KWQSlider becomeFirstResponder]):
2407         (-[KWQSlider resignFirstResponder]):
2408         (QSlider::QSlider):
2409         (QSlider::sliderValueChanged):
2410         (QSlider::dimensions):
2411         * kwq/KWQTextArea.mm:
2412         (-[KWQTextAreaTextView textViewDidChangeSelection:]):
2413         (-[KWQTextAreaTextView textDidChange:]):
2414         (-[KWQTextAreaTextView becomeFirstResponder]):
2415         (-[KWQTextAreaTextView resignFirstResponder]):
2416         (-[KWQTextAreaTextView mouseDown:]):
2417         (-[KWQTextAreaTextView dispatchHTMLEvent:]):
2418         * kwq/KWQTextEdit.h:
2419         * kwq/KWQTextEdit.mm:
2420         (QTextEdit::QTextEdit):
2421         (QTextEdit::setAlignment):
2422         * kwq/KWQTextField.mm:
2423         (-[KWQTextFieldController action:]):
2424         (-[KWQTextFieldController controlTextDidEndEditing:]):
2425         (-[KWQTextFieldController controlTextDidChange:]):
2426         (-[KWQTextFieldController textChanged]):
2427         (-[KWQTextFieldController textView:didHandleEvent:]):
2428         (-[KWQTextFieldController setHasFocus:]):
2429         (-[KWQTextFieldController textViewDidChangeSelection:]):
2430         * loader/CachedObject.h:
2431         * page/Frame.cpp:
2432         (WebCore::Frame::Frame):
2433         (WebCore::Frame::~Frame):
2434         (WebCore::Frame::setOpener):
2435         (WebCore::Frame::nodeForWidget):
2436         (WebCore::Frame::disconnectOwnerRenderer):
2437         * page/Frame.h:
2438         * page/FramePrivate.h:
2439         (WebCore::FramePrivate::FramePrivate):
2440         * page/FrameView.cpp:
2441         (WebCore::FrameView::~FrameView):
2442         * platform/Brush.h:
2443         * platform/Pen.h:
2444         * platform/Widget.cpp:
2445         (WebCore::Widget::isFrameView):
2446         * platform/Widget.h:
2447         (WebCore::):
2448         * platform/mac/GraphicsContextMac.mm:
2449         (WebCore::GraphicsContext::drawText):
2450         * platform/mac/WidgetMac.mm:
2451         (WebCore::Widget::Widget):
2452         (WebCore::Widget::focusPolicy):
2453         (WebCore::Widget::sendConsumedMouseUp):
2454         (WebCore::Widget::setClient):
2455         (WebCore::Widget::client):
2456         * rendering/InlineTextBox.cpp:
2457         (WebCore::InlineTextBox::operator delete):
2458         * rendering/render_applet.cpp:
2459         (WebCore::RenderApplet::createWidgetIfNecessary):
2460         * rendering/render_form.cpp:
2461         (WebCore::RenderFormElement::clicked):
2462         (WebCore::RenderFormElement::textAlignment):
2463         (WebCore::RenderLineEdit::RenderLineEdit):
2464         (WebCore::RenderLineEdit::selectionChanged):
2465         (WebCore::RenderLineEdit::returnPressed):
2466         (WebCore::RenderLineEdit::performSearch):
2467         (WebCore::RenderLineEdit::valueChanged):
2468         (WebCore::RenderFileButton::RenderFileButton):
2469         (WebCore::RenderFileButton::returnPressed):
2470         (WebCore::RenderFileButton::valueChanged):
2471         (WebCore::RenderLegend::RenderLegend):
2472         (WebCore::RenderSelect::RenderSelect):
2473         (WebCore::RenderSelect::updateFromElement):
2474         (WebCore::RenderSelect::valueChanged):
2475         (WebCore::RenderSelect::selectionChanged):
2476         (WebCore::RenderSelect::createListBox):
2477         (WebCore::RenderTextArea::RenderTextArea):
2478         (WebCore::RenderTextArea::valueChanged):
2479         (WebCore::RenderTextArea::selectionChanged):
2480         (WebCore::RenderSlider::RenderSlider):
2481         (WebCore::RenderSlider::valueChanged):
2482         * rendering/render_form.h:
2483         (WebCore::RenderFormElement::element):
2484         (WebCore::RenderLineEdit::element):
2485         (WebCore::RenderFileButton::element):
2486         (WebCore::RenderFileButton::isEditable):
2487         (WebCore::RenderSelect::element):
2488         (WebCore::RenderTextArea::element):
2489         (WebCore::RenderSlider::element):
2490         * rendering/render_frames.cpp:
2491         (WebCore::RenderPart::RenderPart):
2492         (WebCore::RenderPart::~RenderPart):
2493         (WebCore::RenderPart::setFrame):
2494         (WebCore::RenderPart::setWidget):
2495         (WebCore::RenderPart::deleteWidget):
2496         (WebCore::RenderFrame::RenderFrame):
2497         (WebCore::RenderPartObject::RenderPartObject):
2498         (WebCore::RenderPartObject::layout):
2499         * rendering/render_frames.h:
2500         * rendering/render_layer.cpp:
2501         (WebCore::RenderLayer::RenderLayer):
2502         (WebCore::RenderLayer::~RenderLayer):
2503         (WebCore::RenderLayer::valueChanged):
2504         (WebCore::RenderLayer::setHasHorizontalScrollbar):
2505         (WebCore::RenderLayer::setHasVerticalScrollbar):
2506         (WebCore::RenderLayer::hitTest):
2507         * rendering/render_layer.h:
2508         (WebCore::RenderLayer::parent):
2509         (WebCore::RenderLayer::previousSibling):
2510         (WebCore::RenderLayer::nextSibling):
2511         (WebCore::RenderLayer::firstChild):
2512         (WebCore::RenderLayer::lastChild):
2513         * rendering/render_list.cpp:
2514         (WebCore::RenderListMarker::paint):
2515         * rendering/render_replaced.cpp:
2516         (WebCore::RenderWidget::RenderWidget):
2517         (WebCore::RenderWidget::destroy):
2518         (WebCore::RenderWidget::~RenderWidget):
2519         (WebCore::RenderWidget::setWidget):
2520         (WebCore::RenderWidget::layout):
2521         (WebCore::RenderWidget::sendConsumedMouseUp):
2522         (WebCore::RenderWidget::focusIn):
2523         (WebCore::RenderWidget::focusOut):
2524         (WebCore::RenderWidget::scrollToVisible):
2525         (WebCore::RenderWidget::isVisible):
2526         (WebCore::RenderWidget::element):
2527         (WebCore::RenderWidget::deleteWidget):
2528         * rendering/render_replaced.h:
2529         * xml/xmlhttprequest.cpp:
2530         (WebCore::requestsByDocument):
2531         (WebCore::addToRequestsByDocument):
2532         (WebCore::removeFromRequestsByDocument):
2533         (WebCore::XMLHttpRequest::getResponseText):
2534         (WebCore::XMLHttpRequest::getResponseXML):
2535         (WebCore::XMLHttpRequest::XMLHttpRequest):
2536         (WebCore::XMLHttpRequest::~XMLHttpRequest):
2537         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
2538         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
2539         (WebCore::XMLHttpRequest::open):
2540         (WebCore::XMLHttpRequest::send):
2541         (WebCore::XMLHttpRequest::abort):
2542         (WebCore::XMLHttpRequest::overrideMIMEType):
2543         (WebCore::XMLHttpRequest::setRequestHeader):
2544         (WebCore::XMLHttpRequest::getRequestHeader):
2545         (WebCore::XMLHttpRequest::getAllResponseHeaders):
2546         (WebCore::XMLHttpRequest::getResponseHeader):
2547         (WebCore::XMLHttpRequest::getSpecificHeader):
2548         (WebCore::XMLHttpRequest::responseIsXML):
2549         (WebCore::XMLHttpRequest::getStatus):
2550         (WebCore::XMLHttpRequest::getStatusText):
2551         (WebCore::XMLHttpRequest::receivedAllData):
2552         (WebCore::XMLHttpRequest::receivedRedirect):
2553         (WebCore::XMLHttpRequest::receivedData):
2554         (WebCore::XMLHttpRequest::cancelRequests):
2555         (WebCore::XMLHttpRequest::detachRequests):
2556         * xml/xmlhttprequest.h:
2557
2558 2006-03-06  Eric Seidel  <eseidel@apple.com>
2559
2560         Reviewed by beth.
2561
2562         Reorganize link stubs (alphabetically).
2563         Stub out Path methods to make cnn.com work.
2564
2565         * platform/win/TemporaryLinkStubs.cpp:
2566         (FrameView::viewportToGlobal):
2567         (FrameView::updateBorder):
2568         (FrameView::isFrameView):
2569         (FrameView::topLevelWidget):
2570         (QScrollBar::~QScrollBar):
2571         (QScrollBar::setSteps):
2572         (QScrollBar::scroll):
2573         (QScrollBar::QScrollBar):
2574         (QScrollBar::setValue):
2575         (QScrollBar::setKnobProportion):
2576         (QListBox::QListBox):
2577         (QListBox::setSelected):
2578         (QListBox::sizeForNumberOfLines):
2579         (QListBox::isSelected):
2580         (QListBox::appendItem):
2581         (QListBox::doneAppendingItems):
2582         (ScrollView::scrollXOffset):
2583         (QComboBox::focusPolicy):
2584         (QTextEdit::QTextEdit):
2585         (QTextEdit::~QTextEdit):
2586         (QTextEdit::textWithHardLineBreaks):
2587         (QTextEdit::sizeWithColumnsAndRows):
2588         (QTextEdit::setColors):
2589         (QTextEdit::setFont):
2590         (QTextEdit::setWritingDirection):
2591         (QTextEdit::checksDescendantsForFocus):
2592         (QTextEdit::selectionStart):
2593         (QTextEdit::hasSelectedText):
2594         (QTextEdit::setReadOnly):
2595         (QTextEdit::setDisabled):
2596         (QTextEdit::setLineHeight):
2597         (QTextEdit::setSelectionStart):
2598         (QTextEdit::text):
2599         (QTextEdit::setWordWrap):
2600         (QTextEdit::setAlignment):
2601         (QTextEdit::getCursorPosition):
2602         (QTextEdit::setSelectionRange):
2603         (Widget::enableFlushDrawing):
2604         (Widget::isEnabled):
2605         (Widget::focusPolicy):
2606         (Widget::disableFlushDrawing):
2607         (Widget::setIsSelected):
2608         (Widget::unlockDrawingFocus):
2609         (KJavaAppletWidget::KJavaAppletWidget):
2610         (ScrollView::scrollPointRecursively):
2611         (ScrollView::scrollBy):
2612         (QLineEdit::selectAll):
2613         (QLineEdit::addSearchResult):
2614         (QLineEdit::selectionStart):
2615         (QLineEdit::hasSelectedText):
2616         (QLineEdit::selectedText):
2617         (QLineEdit::setAutoSaveName):
2618         (QLineEdit::checksDescendantsForFocus):
2619         (QLineEdit::setMaxResults):
2620         (GraphicsContext::GraphicsContext):
2621         (GraphicsContext::addFocusRingRect):
2622         (GraphicsContext::drawLineForMisspelling):
2623         (GraphicsContext::drawFocusRing):
2624         (GraphicsContext::selectedTextBackgroundColor):
2625         (GraphicsContext::drawHighlightForText):
2626         (GraphicsContext::misspellingLineThickness):
2627         (GraphicsContext::addRoundedRectClip):
2628         (QSlider::QSlider):
2629         (QSlider::sizeHint):
2630         (QSlider::setValue):
2631         (QSlider::setMaxValue):
2632         (QSlider::~QSlider):
2633         (QSlider::setFont):
2634         (QListBox::setFont):
2635         (QListBox::~QListBox):
2636         (QListBox::setSelectionMode):
2637         (QListBox::setEnabled):
2638         (QListBox::clear):
2639         (QListBox::checksDescendantsForFocus):
2640         (KWQFileButton::KWQFileButton):
2641         (KWQFileButton::click):
2642         (KWQFileButton::sizeForCharacterWidth):
2643         (KWQFileButton::frameGeometry):
2644         (KWQFileButton::setFilename):
2645         (KWQFileButton::baselinePosition):
2646         (KWQFileButton::setFrameGeometry):
2647         (QSlider::focusPolicy):
2648         (QListBox::focusPolicy):
2649         (Cursor::Cursor):
2650         (MouseEvent::MouseEvent):
2651         (KWQKCookieJar::cookieEnabled):
2652         (WebCore::screenDepth):
2653         (WebCore::usableScreenRect):
2654         (FrameWin::createPlugin):
2655         (ScrollView::resizeContents):
2656         (ScrollView::visibleHeight):
2657         (ScrollView::visibleWidth):
2658         (ScrollView::setContentsPos):
2659         (ScrollView::contentsHeight):
2660         (ScrollView::contentsWidth):
2661         (ScrollView::inWindow):
2662         (Path::~Path):
2663         (Path::Path):
2664         (Path::contains):
2665         (Path::translate):
2666         (Path::boundingRect):
2667         (Path::operator=):
2668
2669 2006-03-03  Justin Garcia  <justin.garcia@apple.com>
2670
2671         Reviewed by darin
2672         
2673         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6844>
2674         elementAtPoint returns the list when the point is over a list marker
2675
2676         Call RenderObject::setInnerNode(), which sets both the 
2677         innerNode and the innerNonSharedNode.
2678
2679         * rendering/render_list.cpp:
2680         (WebCore::RenderListItem::nodeAtPoint):
2681         * rendering/render_list.h:
2682
2683 2006-03-05  Darin Adler  <darin@apple.com>
2684
2685         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed a lot of long-ago-deleted files
2686         from the kwq directory.
2687
2688 2006-03-05  Darin Adler  <darin@apple.com>
2689
2690         Reviewed by Maciej.
2691
2692         - moved all the remnants of the public C++ DOM API out of khtml/dom
2693         - changed from "int" to "ExceptionCode" for DOM exceptions
2694         - removed unused CSS_HTML_RELATIVE
2695         - changed offsetInCharacters to be a member function of NodeImpl
2696         - changed DOM functions that take a NodeType to use NodeType instead of
2697           unsigned short for clarity (will still be unsigned short in bindings)
2698         - changed exception constants so they can be used directly in the
2699           implementation code (added in the offsets for different types of exceptions)
2700         - replaced the eventListenerType function with an isHTMLEventListener function
2701         - got rid of EventListenerEvent, which is a synonym for EventImpl*
2702         - eliminated handleEventImpl, whish is now the same as handleEvent
2703
2704         - did other preparation for the "remove Impl suffix" renaming
2705           (tested by using a script that does the renaming)
2706
2707         * khtml/dom/css_rule.h: Removed.
2708         * khtml/dom/css_stylesheet.h: Removed.
2709         * khtml/dom/css_value.h: Removed.
2710         * khtml/dom/dom2_events.cpp: Removed.
2711         * khtml/dom/dom2_events.h: Removed.
2712         * khtml/dom/dom2_range.h: Removed.
2713         * khtml/dom/dom2_traversal.cpp: Removed.
2714         * khtml/dom/dom2_traversal.h: Removed.
2715         * khtml/dom/dom_exception.h: Removed.
2716         * khtml/dom/dom_node.h: Removed.
2717
2718         * dom/EventListener.h: Added.
2719         * dom/ExceptionCode.h: Added.
2720
2721         * WebCore+SVG/kdom.h: Removed NodeType and ExceptionCodes
2722         * WebCore+SVG/kdomevents.h: Removed.
2723
2724         * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
2725         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
2726
2727         * bindings/scripts/CodeGeneratorJS.pm: Removed unneeded DOM:: prefix. Updated file
2728         names and exception prefix for changes in DOM exceptions.
2729
2730         * bindings/js/JSDOMCore.cpp: Touched to cause auto-generated code to be
2731         recompiled. We need to get this fixed!
2732         * bindings/js/JSDOMEvents.cpp: Ditto.
2733
2734         * dom/Attr.idl:
2735         * dom/CharacterData.idl:
2736         * dom/DOMImplementation.idl:
2737         * dom/DocumentType.idl:
2738         * dom/Element.idl:
2739         * dom/Entity.idl:
2740         * dom/MutationEvent.idl:
2741         * dom/Notation.idl:
2742         * dom/ProcessingInstruction.idl:
2743         * dom/Text.idl:
2744         * dom/WheelEvent.idl:
2745         Touched all IDL files so that changes in CodeGeneratorJS.pm would take effect.
2746         Added license headers.
2747
2748         * bindings/objc/DOM.mm: Fixed garbled license agreement. Updated includes.
2749         Changed from a single "using namespace WebCore" to individual using statements
2750         because of the imminent conflict between DOMImplementation in Objective C
2751         and WebCore::DOMImplementation (currently has an Impl suffix). Added a typedef
2752         for WebCore::DOMImplementationImpl. Changed to use ExceptionCode instead of int.
2753
2754         * bindings/objc/DOMCSS.h: Removed DOMCSSException and the special CSS exception
2755         codes. This is a feature of DOM Level 1 only. In DOM Level 2 these were eliminated
2756         and use basic DOM exception codes instead. We might have to do something for binary
2757         compatibility eventually, but perhaps not.
2758
2759         * bindings/objc/DOMCSS.mm:
2760         * bindings/objc/DOMEvents.mm:
2761         * bindings/objc/DOMEventsInternal.h:
2762         * bindings/objc/DOMHTML.mm:
2763         * bindings/objc/DOMHTMLInternal.h:
2764         * bindings/objc/DOMViews.mm:
2765         * bindings/objc/DOMViewsInternal.h:
2766         Fixed garbled license agreements.
2767         Changed to use ExceptionCode instead of int and name the variable "ec".
2768
2769         * bindings/objc/DOMInternal.h: Changed addDOMWrapperImpl to take NSObject* instead
2770         of id. This helps with overload resolution when addDOMWrapperImpl is renamed to be
2771         addDOMWrapper. Changed ALLOW_DOM_CAST to always use "class" in from of the type name
2772         of the WebCore class. This helps work around what seems like a bug in namespace support
2773         in Objective-C mode, although the bug only happens after the "remove Impl" renaming.
2774         * bindings/objc/DOMInternal.mm:
2775         (getDOMWrapperImpl): Changed to use HashMap.
2776         (addDOMWrapperImpl): Ditto.
2777         (removeDOMWrapper): Ditto.
2778         (raiseDOMException): Update to use new names for exception number ranges.
2779
2780         * bridge/mac/WebCoreFrameBridge.mm:
2781         * khtml/ecma/xmlserializer.cpp:
2782         * kwq/KWQAccObject.mm:
2783         Removed unneeded includes.
2784
2785         * css/css_ruleimpl.h: Moved "rule type" into this header.
2786
2787         * dom/CommentImpl.h:
2788         * dom/CommentImpl.cpp: (WebCore::CommentImpl::offsetInCharacters): Added. Returns true.
2789
2790         * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
2791         Changed this around so we don't have a local variable named docImpl.
2792
2793         * khtml/ecma/kjs_binding.cpp: (KJS::setDOMException): Updated for new form of exception
2794         constants.
2795
2796         * khtml/ecma/kjs_events.h:
2797         * khtml/ecma/kjs_events.cpp:
2798         (KJS::JSAbstractEventListener::handleEvent): Changed to no longer use EventListenerEvent.
2799         (KJS::JSAbstractEventListener::isHTMLEventListener): Added.
2800
2801         * rendering/RenderTextField.h: Updated includes. Tweaked the code formatting of
2802         InputMutationListener. (Might be unnecessary since this class might be deleted soon.)
2803
2804         * bridge/mac/MacFrame.mm:
2805         * css/css_computedstyle.cpp:
2806         * css/css_computedstyle.h:
2807         * css/css_ruleimpl.cpp:
2808         * css/css_stylesheetimpl.cpp:
2809         * css/css_stylesheetimpl.h:
2810         * css/css_valueimpl.cpp:
2811         * css/css_valueimpl.cpp:
2812         * css/css_valueimpl.h:
2813         * css/css_valueimpl.h:
2814         * css/cssparser.cpp:
2815         * css/cssstyleselector.cpp:
2816         * dom/CDATASectionImpl.cpp:
2817         * dom/CDATASectionImpl.h:
2818         * dom/CharacterDataImpl.cpp:
2819         * dom/CharacterDataImpl.h:
2820         * dom/ContainerNodeImpl.cpp:
2821         * dom/DOMImplementationImpl.cpp:
2822         * dom/DocumentFragmentImpl.cpp:
2823         * dom/DocumentFragmentImpl.h:
2824         * dom/DocumentImpl.cpp:
2825         * dom/DocumentImpl.h:
2826         * dom/DocumentTypeImpl.cpp:
2827         * dom/DocumentTypeImpl.h:
2828         * dom/NamedNodeMapImpl.h:
2829         * dom/NodeImpl.cpp:
2830         * dom/NodeImpl.h:
2831         * dom/NodeListImpl.cpp:
2832         * dom/TextImpl.cpp:
2833         * dom/TextImpl.h:
2834         * dom/dom2_eventsimpl.cpp:
2835         * dom/dom2_eventsimpl.h:
2836         * dom/dom2_rangeimpl.cpp:
2837         * dom/dom2_rangeimpl.h:
2838         * dom/dom2_traversalimpl.cpp:
2839         * dom/dom2_traversalimpl.h:
2840         * dom/dom_elementimpl.cpp:
2841         * dom/dom_elementimpl.h:
2842         * dom/dom_position.cpp:
2843         * dom/dom_xmlimpl.cpp:
2844         * dom/dom_xmlimpl.h:
2845         * dom/xml_tokenizer.cpp:
2846         * editing/AppendNodeCommand.cpp:
2847         * editing/ApplyStyleCommand.cpp:
2848         * editing/CompositeEditCommand.cpp:
2849         * editing/DeleteFromTextNodeCommand.cpp:
2850         * editing/InsertIntoTextNodeCommand.cpp:
2851         * editing/InsertLineBreakCommand.cpp:
2852         * editing/InsertNodeBeforeCommand.cpp:
2853         * editing/InsertParagraphSeparatorCommand.cpp:
2854         * editing/JoinTextNodesCommand.cpp:
2855         * editing/MergeIdenticalElementsCommand.cpp:
2856         * editing/RemoveNodeAttributeCommand.cpp:
2857         * editing/RemoveNodeCommand.cpp:
2858         * editing/ReplaceSelectionCommand.cpp:
2859         * editing/Selection.cpp:
2860         * editing/SelectionController.cpp:
2861         * editing/SelectionController.h:
2862         * editing/SetNodeAttributeCommand.cpp:
2863         * editing/SplitElementCommand.cpp:
2864         * editing/SplitTextNodeCommand.cpp:
2865         * editing/VisiblePosition.cpp:
2866         * editing/WrapContentsInDummySpanCommand.cpp:
2867         * editing/htmlediting.cpp:
2868         * editing/markup.cpp:
2869         * editing/visible_text.cpp:
2870         * khtml/ecma/kjs_binding.h:
2871         * khtml/ecma/kjs_css.cpp:
2872         * khtml/ecma/kjs_dom.cpp:
2873         * khtml/ecma/kjs_html.cpp:
2874         * khtml/ecma/kjs_range.cpp:
2875         * khtml/ecma/kjs_traversal.cpp:
2876         * khtml/ecma/kjs_traversal.h:
2877         * khtml/ecma/kjs_window.cpp:
2878         * khtml/html/HTMLElementImpl.cpp:
2879         * khtml/html/HTMLOptionElementImpl.cpp:
2880         * khtml/html/HTMLOptionElementImpl.h:
2881         * khtml/html/HTMLOptionsCollectionImpl.cpp:
2882         * khtml/html/HTMLSelectElementImpl.cpp:
2883         * khtml/html/HTMLTextAreaElementImpl.cpp:
2884         * khtml/html/html_documentimpl.cpp:
2885         * khtml/html/html_documentimpl.h:
2886         * khtml/html/html_headimpl.cpp:
2887         * khtml/html/html_tableimpl.cpp:
2888         * khtml/html/html_tableimpl.h:
2889         * khtml/html/htmlparser.cpp:
2890         * khtml/xbl/xbl_tokenizer.cpp:
2891         * khtml/xsl/xsl_stylesheetimpl.cpp:
2892         * ksvg2/misc/SVGDocumentExtensions.cpp:
2893         * ksvg2/svg/SVGAnimationElementImpl.cpp:
2894         * ksvg2/svg/SVGDOMImplementationImpl.cpp:
2895         * ksvg2/svg/SVGDOMImplementationImpl.h:
2896         * ksvg2/svg/SVGDocumentImpl.cpp:
2897         * ksvg2/svg/SVGDocumentImpl.h:
2898         * ksvg2/svg/SVGElementImpl.cpp:
2899         * ksvg2/svg/SVGLengthImpl.cpp:
2900         * ksvg2/svg/SVGLocatableImpl.cpp:
2901         * ksvg2/svg/SVGPolyElementImpl.cpp:
2902         * ksvg2/svg/SVGSVGElementImpl.cpp:
2903         * ksvg2/svg/SVGStyleElementImpl.cpp:
2904         * ksvg2/svg/SVGStyleElementImpl.h:
2905         * ksvg2/svg/SVGUseElementImpl.cpp:
2906         * page/Frame.cpp:
2907         * page/FrameView.cpp:
2908         * rendering/render_object.cpp:
2909         * xml/xmlhttprequest.cpp:
2910         Changed to use ExceptionCode instead of int and name the variable "ec".
2911         Also updated use of exception codes and other constants to get them from
2912         their new locations.
2913
2914 2006-03-06  Eric Seidel  <eseidel@apple.com>
2915
2916         Reviewed by mjs.
2917
2918         Fix more pages (apple.com, yahoo.com) by returning empty error image.
2919         Empty a couple more stubs and clean up stub style a little.
2920
2921         * platform/cairo/ImageCairo.cpp:
2922         (WebCore::Image::loadResource):
2923         * platform/win/TemporaryLinkStubs.cpp:
2924         (QListBox::isSelected):
2925         (QSlider::sizeHint):
2926         (QScrollBar::~QScrollBar):
2927         (FrameWin::getObjectInstanceForWidget):
2928         (FrameWin::getEmbedInstanceForWidget):
2929         (FrameWin::recordFormValue):
2930         (FrameWin::getAppletInstanceForWidget):
2931         (FrameWin::passMouseDownEventToWidget):
2932         (FrameWin::passWheelEventToChildWidget):
2933         (FrameWin::createPlugin):
2934         (BrowserExtensionWin::createNewWindow):
2935         (Path::Path):
2936         (QLineEdit::~QLineEdit):
2937         (QLineEdit::setLiveSearch):
2938         (QComboBox::~QComboBox):
2939
2940 2006-03-06  Eric Seidel  <eseidel@apple.com>
2941
2942         Reviewed by andersca.
2943
2944         Empty enough stubs to make apple.com load.
2945
2946         * platform/win/TemporaryLinkStubs.cpp:
2947         (QTextEdit::sizeWithColumnsAndRows):
2948         (GraphicsContext::misspellingLineThickness):
2949         (QTextEdit::selectAll):
2950         (QTextEdit::setSelectionStart):
2951         (Widget::unlockDrawingFocus):
2952         (QLineEdit::setAutoSaveName):
2953         (ScrollView::scrollYOffset):
2954         (KWQFileButton::setFilename):
2955         (QListBox::setFont):
2956         (GraphicsContext::beginTransparencyLayer):
2957         (GraphicsContext::endTransparencyLayer):
2958         (QComboBox::QComboBox):
2959         (QComboBox::setFont):
2960         (QComboBox::baselinePosition):
2961         (QComboBox::setWritingDirection):
2962         (QComboBox::clear):
2963         (QComboBox::appendItem):
2964         (QComboBox::setCurrentItem):
2965         (QComboBox::sizeHint):
2966         (QComboBox::frameGeometry):
2967         (QComboBox::setFrameGeometry):
2968         (QLineEdit::setLiveSearch):
2969
2970 2006-03-06  Eric Seidel  <eseidel@apple.com>
2971
2972         Reviewed by darin.
2973
2974         Fix external resource loading.
2975         Make a bunch of stubs not abort (to fix slashdot).
2976
2977         * platform/win/TemporaryLinkStubs.cpp:
2978         (QTextEdit::textWithHardLineBreaks):
2979         (KWQFileButton::click):
2980         (QComboBox::setFrameGeometry):
2981         (QTextEdit::setText):
2982         (QListBox::appendItem):
2983         (GraphicsContext::endTransparencyLayer):
2984         (QLineEdit::selectionStart):
2985         (QTextEdit::QTextEdit):
2986         (QListBox::isSelected):
2987         (QComboBox::focusPolicy):
2988         (QTextEdit::setCursorPosition):
2989         (QTextEdit::setAlignment):
2990         (QLineEdit::selectedText):
2991         (ScrollView::scrollPointRecursively):
2992         (QScrollBar::setSteps):
2993         (QComboBox::appendItem):
2994         (GraphicsContext::drawLineForMisspelling):
2995         (KWQFileButton::setFilename):
2996         (QListBox::setWritingDirection):
2997         (QListBox::focusPolicy):
2998         (MouseEvent::MouseEvent):
2999         (QSlider::setFont):
3000         (Widget::setEnabled):
3001         (Widget::paint):
3002         (ScrollView::addChild):
3003         (ScrollView::inWindow):
3004         (GraphicsContext::setShadow):
3005         (GraphicsContext::clearShadow):
3006         (RenderThemeWin::paintCheckbox):
3007         (RenderThemeWin::paintRadio):
3008         (RenderThemeWin::paintButton):
3009         (RenderThemeWin::paintTextField):
3010         (QLineEdit::QLineEdit):
3011         (QLineEdit::setFont):
3012         (QLineEdit::setAlignment):
3013         (QLineEdit::setWritingDirection):
3014         (QLineEdit::maxLength):
3015         (QLineEdit::setMaxLength):
3016         (QLineEdit::text):
3017         (QLineEdit::setText):
3018         (QLineEdit::cursorPosition):
3019         (QLineEdit::setCursorPosition):
3020         (QLineEdit::setEdited):
3021         (QLineEdit::setReadOnly):
3022         (QLineEdit::setPlaceholderString):
3023         (QLineEdit::setColors):
3024         (QLineEdit::sizeForCharacterWidth):
3025         (QLineEdit::baselinePosition):
3026         * platform/win/TransferJobWin.cpp:
3027         (WebCore::TransferJob::fileLoadTimer):
3028         (WebCore::TransferJob::cancel):
3029
3030 2006-03-05  Darin Adler  <darin@apple.com>
3031
3032         Reviewed by Maciej.
3033
3034         - fix failure seen running editing layout tests
3035
3036         * editing/ReplaceSelectionCommand.cpp:
3037         (WebCore::ReplacementFragment::ReplacementFragment):
3038         Use selectNodeContents instead of rolling our own.
3039         It handles the "nothing at all" edge case properly.
3040
3041 2006-03-05  Eric Seidel  <eseidel@apple.com>
3042
3043         Reviewed by darin.
3044
3045         Make updateContents invalidate entire window for now.
3046         Fix indentation in fileLoadTimer.
3047
3048         * platform/win/ScrollViewWin.cpp:
3049         (WebCore::ScrollView::updateContents):
3050         * platform/win/TransferJobWin.cpp:
3051         (WebCore::TransferJob::fileLoadTimer):
3052
3053 2006-03-05  Eric Seidel  <eseidel@apple.com>
3054
3055         Reviewed by adele.
3056
3057         Add missing files to vcproj (fix win32 build).
3058         Also add svn:eol-style=native to new files.
3059
3060         * WebCore.vcproj/WebCore/WebCore.vcproj:
3061
3062 2006-03-05  Darin Adler  <mjs@apple.com>
3063
3064         - fix build
3065
3066         * rendering/render_style.h: (compareEqual): Made it inline, fixed variable name.
3067
3068 2006-03-05  Adele Peterson  <adele@apple.com>
3069
3070         Reviewed by Darin.
3071
3072         - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=6987
3073         Implement maxlength for new text fields
3074
3075         Test added:
3076         * fast/forms/input-appearance-maxlength.html
3077
3078         * WebCore.xcodeproj/project.pbxproj: 
3079          Added BeforeTextInsertedEventImpl.h, BeforeTextInsertedEventImpl.cpp, HTMLTextFieldInnerElementImpl.h, and HTMLTextFieldInnerElementImpl.cpp
3080
3081         * khtml/html/HTMLInputElementImpl.cpp:
3082         (WebCore::HTMLInputElementImpl::init): initialize max length to 1024.
3083         (WebCore::HTMLInputElementImpl::defaultEventHandler): Added case to use the khtmlBeforeTextInsertedEvent to check for maxlength.
3084         (WebCore::HTMLInputElementImpl::parseMappedAttribute): Makes sure that maxlength is between 0 and 1024.
3085
3086         * editing/ReplaceSelectionCommand.cpp:
3087         (WebCore::ReplacementFragment::ReplacementFragment): After doing a test insert of the fragment,
3088          Send khtmlBeforeTextInsertedEvent to the root editable element so the event handler can update the text, and we can update the fragment.
3089         * editing/TypingCommand.cpp:
3090         (WebCore::TypingCommand::insertText): Send khtmlBeforeTextInsertedEvent to the root editable element so the event handler can update the text if necessary.
3091         * editing/EditCommand.cpp:
3092         (WebCore::EditCommand::apply): If we've just applied a command, send the khtmlTextInsertedEvent to the root editable element. 
3093         (WebCore::EditCommand::unapply): ditto.
3094         (WebCore::EditCommand::reapply): ditto.
3095
3096         * khtml/html/HTMLTextFieldInnerElementImpl.h: Added this class to store a pointer to the input element for the text field and to handle default events.
3097         (DOM::HTMLTextFieldInnerElementImpl::shadowParentNode): Added.
3098         (DOM::HTMLTextFieldInnerElementImpl::setShadowParentNode): Added.
3099         * khtml/html/HTMLTextFieldInnerElementImpl.cpp: Added.
3100         (WebCore::HTMLTextFieldInnerElementImpl::HTMLTextFieldInnerElementImpl):
3101         (WebCore::HTMLTextFieldInnerElementImpl::~HTMLTextFieldInnerElementImpl):
3102         (WebCore::HTMLTextFieldInnerElementImpl::defaultEventHandler):
3103          Sends khtmlBeforeTextInsertedEvents to the shadowParentNode, 
3104          and handles khtmlTextInsertedEvents by telling the renderer that the subtree has changed.
3105
3106         * rendering/RenderTextField.cpp: Removed InputMutationListener since subtreeHasChanged is now called from the editing code.
3107         (WebCore::RenderTextField::~RenderTextField): removed event listener code.
3108         (WebCore::RenderTextField::updateFromElement): ditto.  And creates HTMLTextFieldInnerElementImpl.
3109         (WebCore::RenderTextField::subtreeHasChanged): calls new text() method.
3110         (WebCore::RenderTextField::text): created to get a String of all text in the RenderTextField.
3111         * rendering/RenderTextField.h: Removed InputMutationListener class.
3112
3113         * dom/EventNames.h: Added khtmlTextInserted and khtmlBeforeTextInserted.
3114         * dom/BeforeTextInsertedEventImpl.cpp: Added.
3115         (WebCore::BeforeTextInsertedEventImpl::BeforeTextInsertedEventImpl):
3116         * dom/BeforeTextInsertedEventImpl.h: Added.
3117         (WebCore::BeforeTextInsertedEventImpl::isBeforeTextInsertedEvent):
3118         (WebCore::BeforeTextInsertedEventImpl::text):
3119         * dom/dom2_eventsimpl.cpp: (WebCore::EventImpl::isBeforeTextInsertedEvent): Added.
3120         * dom/dom2_eventsimpl.h: Added isBeforeTextInsertedEvent.
3121
3122 2006-03-05  Maciej Stachowiak  <mjs@apple.com>
3123
3124         - fix build, give this a return type.
3125
3126         * rendering/render_style.h:
3127         (compareEqual):
3128
3129 2006-03-05  Eric Seidel  <eseidel@apple.com>
3130
3131         Add "Font.h" to (try to) fix the no-svg build.
3132
3133         * platform/mac/GraphicsContextMac.mm:
3134
3135 2006-03-05  Maciej Stachowiak  <mjs@apple.com>
3136
3137         Rubber stamped by Darin.
3138
3139         - fix win32 build by avoiding use of typeof
3140
3141         * rendering/render_style.h:
3142         (compareEqual):
3143
3144 2006-03-05  Geoffrey Garen  <ggaren@apple.com>
3145
3146         Reviewed by Maciej.
3147
3148         - Second cut at fixing <rdar://problem/4467143> JavaScript enumeration 
3149         of HTML element properties skips DOM node properties
3150  
3151         The approach here is for prototypes, in their constructor methods, 
3152         to set their own prototypes, preserving the prototype 
3153         chain in cases of multiple levels of inheritance. (Previously, our
3154         code assumed that a prototype never had a prototype of its own,
3155         and always used an empty object as a prototype's prototype).
3156
3157         * bindings/scripts/CodeGeneratorJS.pm: Use the new
3158         DEFINE_PROTOTYPE_WITH_PROTOTYPE macro in place of the  
3159         KJS_IMPLEMENT_PROTOTYPE_WITH_PARENT macro.
3160         * khtml/ecma/kjs_dom.cpp: Ditto.
3161         * khtml/ecma/kjs_dom.h: Ditto.
3162         * khtml/ecma/kjs_events.cpp: Ditto.
3163
3164         Touched these files to force a rebuild:
3165
3166         * bindings/js/JSDOMCore.cpp:
3167         * bindings/js/JSDOMEvents.cpp:
3168         * dom/Attr.idl:
3169         * dom/CharacterData.idl:
3170         * dom/DOMImplementation.idl:
3171         * dom/DocumentType.idl:
3172         * dom/Element.idl:
3173         * dom/Entity.idl:
3174         * dom/MutationEvent.idl:
3175         * dom/Notation.idl:
3176         * dom/ProcessingInstruction.idl:
3177         * dom/Text.idl:
3178         * dom/WheelEvent.idl:
3179
3180 2006-03-05  Maciej Stachowiak  <mjs@apple.com>
3181
3182         Reviewed by Darin.
3183
3184         - use unsigned bitfields when storing enums in them, to avoid mangling on win32 (was causing all layout to be RTL)
3185         http://bugzilla.opendarwin.org/show_bug.cgi?id=7618
3186
3187         * css/css_base.cpp:
3188         (WebCore::CSSSelector::operator == ):
3189         (WebCore::CSSSelector::selectorText):
3190         * css/css_base.h:
3191         (WebCore::CSSSelector::CSSSelector):
3192         (WebCore::CSSSelector::pseudoType):
3193         (WebCore::CSSSelector::relation):
3194         * css/css_grammar.y:
3195         * css/cssstyleselector.cpp:
3196         (WebCore::CSSStyleSelector::checkSelector):
3197         (WebCore::CSSStyleSelector::checkOneSelector):
3198         * kcanvas/KCanvasPath.cpp:
3199         (WebCore::operator<<):
3200         * kcanvas/KCanvasPath.h:
3201         (WebCore::KCClipData::windRule):
3202         (WebCore::KCClipDataList::addPath):
3203         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
3204         (WebCore::KCanvasClipperQuartz::applyClip):
3205         * khtml/ecma/kjs_html.h:
3206         * khtml/html/HTMLButtonElementImpl.h:
3207         * khtml/html/HTMLInputElementImpl.cpp:
3208         (WebCore::HTMLInputElementImpl::setInputType):
3209         * khtml/html/HTMLInputElementImpl.h:
3210         (DOM::HTMLInputElementImpl::inputType):
3211         * khtml/html/html_tableimpl.h:
3212         * khtml/xbl/xbl_protohandler.cpp:
3213         (XBL::m_button):
3214         * khtml/xbl/xbl_protohandler.h:
3215         * ksvg2/css/SVGRenderStyle.h:
3216         (WebCore::SVGRenderStyle::InheritedFlags::):
3217         (WebCore::SVGRenderStyle::NonInheritedFlags::):
3218         (WebCore::SVGRenderStyle::setBitDefaults):
3219         * ksvg2/svg/SVGAnimateTransformElementImpl.h:
3220         * ksvg2/svg/SVGAnimationElementImpl.cpp:
3221         (SVGAnimationElementImpl::targetAttribute):
3222         (SVGAnimationElementImpl::setTargetAttribute):
3223         * ksvg2/svg/SVGAnimationElementImpl.h:
3224         * ksvg2/svg/SVGLengthImpl.cpp:
3225         (SVGLengthImpl::value):
3226         * ksvg2/svg/SVGLengthImpl.h:
3227         * kwq/KWQKHTMLSettings.h:
3228         * loader/CachedImage.h:
3229         * loader/DocLoader.cpp:
3230         (WebCore::DocLoader::setCachePolicy):
3231         (WebCore::DocLoader::setShowAnimations):
3232         * loader/DocLoader.h:
3233         (WebCore::DocLoader::showAnimations):
3234         * platform/FontDescription.h:
3235         (WebCore::FontDescription::genericFamily):
3236         * platform/QString.cpp:
3237         (HandleNode::):
3238         * platform/QString.h:
3239         * rendering/RenderBlock.cpp:
3240         (WebCore::RenderBlock::setSelectionState):
3241         (WebCore::RenderBlock::leftRelOffset):
3242         (WebCore::RenderBlock::rightRelOffset):
3243         (WebCore::RenderBlock::leftBottom):
3244         (WebCore::RenderBlock::rightBottom):
3245         (WebCore::RenderBlock::addOverhangingFloats):
3246         (WebCore::RenderBlock::addIntrudingFloats):
3247         * rendering/RenderBlock.h:
3248         (WebCore::RenderBlock::selectionState):
3249         (WebCore::RenderBlock::FloatingObject::FloatingObject):
3250         (WebCore::RenderBlock::FloatingObject::type):
3251         * rendering/RenderTable.h:
3252         (WebCore::RenderTable::getRules):
3253         * rendering/bidi.cpp:
3254         (khtml::BidiContext::BidiContext):
3255         (khtml::operator==):
3256         (khtml::embed):
3257         (khtml::RenderBlock::computeHorizontalPositionsForLine):
3258         (khtml::RenderBlock::bidiReorderLine):
3259         (khtml::RenderBlock::layoutInlineChildren):
3260         * rendering/bidi.h:
3261         (khtml::BidiContext::dir):
3262         (khtml::BidiContext::basicDir):
3263         (khtml::BidiRun::BidiRun):
3264         * rendering/render_canvasimage.h:
3265         * rendering/render_layer.h:
3266         (WebCore::Marquee::whiteSpace):
3267         * rendering/render_object.cpp:
3268         (WebCore::RenderObject::paintBorderImage):
3269         * rendering/render_replaced.cpp:
3270         (WebCore::RenderWidget::setSelectionState):
3271         * rendering/render_replaced.h:
3272         (WebCore::RenderReplaced::selectionState):
3273         * rendering/render_style.cpp:
3274         (WebCore::RenderStyle::getPseudoStyle):
3275         * rendering/render_style.h:
3276         (khtml::BorderValue::BorderValue):
3277         (khtml::BorderValue::style):
3278         (khtml::BorderValue::nonZero):
3279         (khtml::BorderValue::operator==):
3280         (khtml::OutlineValue::operator==):
3281         (khtml::CollapsedBorderValue::style):
3282         (khtml::BorderImage::horizontalRule):
3283         (khtml::BorderImage::verticalRule):
3284         (khtml::BorderData::borderLeftWidth):
3285         (khtml::BorderData::borderRightWidth):
3286         (khtml::BorderData::borderTopWidth):
3287         (khtml::BorderData::borderBottomWidth):
3288         (khtml::BackgroundLayer::backgroundClip):
3289         (khtml::BackgroundLayer::backgroundOrigin):
3290         (khtml::BackgroundLayer::backgroundRepeat):
3291         (khtml::RenderStyle::styleType):
3292         (khtml::RenderStyle::display):
3293         (khtml::RenderStyle::originalDisplay):
3294         (khtml::RenderStyle::position):
3295         (khtml::RenderStyle::floating):
3296         (khtml::RenderStyle::borderLeftStyle):
3297         (khtml::RenderStyle::borderLeftColor):
3298         (khtml::RenderStyle::borderRightStyle):
3299         (khtml::RenderStyle::borderRightColor):
3300         (khtml::RenderStyle::borderTopStyle):
3301         (khtml::RenderStyle::borderTopColor):
3302         (khtml::RenderStyle::borderBottomStyle):
3303         (khtml::RenderStyle::borderBottomColor):
3304         (khtml::RenderStyle::outlineWidth):
3305         (khtml::RenderStyle::outlineStyle):
3306         (khtml::RenderStyle::overflow):
3307         (khtml::RenderStyle::visibility):
3308         (khtml::RenderStyle::verticalAlign):
3309         (khtml::RenderStyle::unicodeBidi):
3310         (khtml::RenderStyle::clear):
3311         (khtml::RenderStyle::tableLayout):
3312         (khtml::RenderStyle::textAlign):
3313         (khtml::RenderStyle::textTransform):
3314         (khtml::RenderStyle::direction):
3315         (khtml::RenderStyle::whiteSpace):
3316         (khtml::RenderStyle::backgroundRepeat):
3317         (khtml::RenderStyle::backgroundClip):
3318         (khtml::RenderStyle::backgroundOrigin):
3319         (khtml::RenderStyle::emptyCells):
3320         (khtml::RenderStyle::captionSide):
3321         (khtml::RenderStyle::listStyleType):
3322         (khtml::RenderStyle::listStylePosition):
3323         (khtml::RenderStyle::cursor):
3324         (khtml::RenderStyle::pageBreakInside):
3325         (khtml::RenderStyle::pageBreakBefore):
3326         (khtml::RenderStyle::pageBreakAfter):
3327         (khtml::RenderStyle::outlineOffset):
3328         (khtml::RenderStyle::appearance):
3329         (khtml::RenderStyle::boxAlign):
3330         (khtml::RenderStyle::boxDirection):
3331         (khtml::RenderStyle::boxLines):
3332         (khtml::RenderStyle::boxOrient):
3333         (khtml::RenderStyle::boxPack):
3334         (khtml::RenderStyle::boxSizing):
3335         (khtml::RenderStyle::marqueeBehavior):
3336         (khtml::RenderStyle::marqueeDirection):
3337         (khtml::RenderStyle::userModify):
3338         (khtml::RenderStyle::userDrag):
3339         (khtml::RenderStyle::userSelect):
3340         (khtml::RenderStyle::marginTopCollapse):
3341         (khtml::RenderStyle::marginBottomCollapse):
3342         (khtml::RenderStyle::wordWrap):
3343         (khtml::RenderStyle::nbspMode):
3344         (khtml::RenderStyle::khtmlLineBreak):
3345         (khtml::RenderStyle::matchNearestMailBlockquoteColor):
3346         (khtml::RenderStyle::setBorderLeftWidth):
3347         (khtml::RenderStyle::setBorderLeftStyle):
3348         (khtml::RenderStyle::setBorderLeftColor):
3349         (khtml::RenderStyle::setBorderRightWidth):
3350         (khtml::RenderStyle::setBorderRightStyle):
3351         (khtml::RenderStyle::setBorderRightColor):
3352         (khtml::RenderStyle::setBorderTopWidth):
3353         (khtml::RenderStyle::setBorderTopStyle):
3354         (khtml::RenderStyle::setBorderTopColor):
3355         (khtml::RenderStyle::setBorderBottomWidth):
3356         (khtml::RenderStyle::setBorderBottomStyle):
3357         (khtml::RenderStyle::setBorderBottomColor):
3358         (khtml::RenderStyle::setOutlineWidth):
3359         (khtml::RenderStyle::setOutlineStyle):
3360         (khtml::RenderStyle::pseudoState):
3361
3362 2006-03-05  Geoffrey Garen  <ggaren@apple.com>
3363
3364         - Rolled out the fix for <rdar://problem/4467143> because it's the
3365         wrong approach. Maciej and I discussed this on IRC.
3366
3367         * khtml/ecma/kjs_dom.cpp:
3368         (KJS::): Don't use classInfo to express prototype inheritance.
3369         classInfo is only for representing a c++ superclass relationship.
3370
3371 2006-03-05  Eric Seidel  <eseidel@apple.com>
3372
3373         Move improperly placed #endif causing no-svg build to fail.
3374
3375         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
3376
3377 2006-03-05  Alexander Kellett  <lypanov@kde.org>
3378
3379         Reviewed by Eric.
3380
3381         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6890
3382           and http://bugzilla.opendarwin.org/show_bug.cgi?id=6951
3383           by being more tolerant towards invalid points data
3384
3385         - new tests:
3386           svg/custom/polyline-setattribute-points-null.svg
3387           svg/custom/polyline-invalid-points.svg
3388
3389         * ksvg2/svg/svgpathparser.cpp:
3390         (SVGPolyParser::parsePoints):
3391
3392 2006-03-05  Maciej Stachowiak  <mjs@apple.com>
3393
3394         Rubber stamped by Eric.
3395
3396         - remove no longer used KDOMSettings and KSVGSettings
3397
3398         * WebCore+SVG/KDOMSettings.cpp: Removed.
3399         * WebCore+SVG/KDOMSettings.h: Removed.
3400         * WebCore.xcodeproj/project.pbxproj:
3401         * ksvg2/KSVGSettings.h: Removed.
3402         * ksvg2/svg/SVGStyledElementImpl.cpp:
3403
3404 2006-03-05  Eric Seidel  <eseidel@apple.com>
3405
3406         Reviewed by mjs.
3407
3408         * platform/Font.cpp:
3409         (WebCore::Font::update): remove extra ref causing large leak.
3410
3411 2006-03-04  Eric Seidel  <eseidel@apple.com>
3412
3413         Reviewed by hyatt.
3414
3415         Re-work ImageViewer to use GraphicsContext.
3416         Add GraphicsContext(cairo_t*) constructor to make double-buffering easier.
3417         Add one more stub to prevent slashdot from crashing.
3418         Also fixed win32 build after Font change.
3419
3420         * Viewer.vcproj:
3421         * Viewer/ImageView.cpp:
3422         * platform/Color.h:
3423         * platform/GraphicsContext.h:
3424         * platform/cairo/GraphicsContextCairo.cpp:
3425         (WebCore::GraphicsContext::GraphicsContext):
3426         * platform/win/TemporaryLinkStubs.cpp:
3427         (FrameWin::createPlugin):
3428         (BrowserExtensionWin::setTypedIconURL):
3429
3430 2006-03-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3431
3432         Reviewed by Darin, landed by ap.
3433
3434         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4840
3435           Frames only resize wider, can't make them narrower
3436
3437         * khtml/html/html_baseimpl.cpp:
3438         (WebCore::HTMLFrameSetElementImpl::HTMLFrameSetElementImpl): Removed unused m_resizing flag.
3439         * khtml/html/html_baseimpl.h:
3440         * manual-tests/bugzilla-4840.html: Added.
3441         * page/FrameView.cpp:
3442         (WebCore::FrameViewPrivate::reset):
3443         (WebCore::FrameView::viewportMouseMoveEvent):
3444         (WebCore::FrameView::viewportMouseReleaseEvent):
3445         (WebCore::FrameView::setResizingFrameSet): New method. When a resizing frameset is set,
3446         mouse move and mouse release events target it instead of hit-testing.
3447         * page/FrameView.h:
3448         * rendering/render_frames.cpp:
3449         (WebCore::RenderFrameSet::setResizing): Inform the FrameView that we are resizing (or not).
3450
3451 2006-03-04  David Hyatt  <hyatt@apple.com>
3452
3453         Fix for bug 7586, eliminate QFontMetrics.
3454
3455         Reviewed by eric
3456
3457         * WebCore.xcodeproj/project.pbxproj:
3458         * css/css_valueimpl.cpp:
3459         (WebCore::CSSPrimitiveValueImpl::computeLengthFloat):
3460         * ksvg2/svg/SVGLengthImpl.cpp:
3461         (SVGLengthImpl::updateValue):
3462         * kwq/KWQFontMetrics.h: Removed.
3463         * kwq/KWQFontMetrics.mm: Removed.
3464         * platform/Font.cpp:
3465         (WebCore::m_wordSpacing):
3466         (WebCore::Font::Font):
3467         (WebCore::Font::operator=):
3468         (WebCore::Font::~Font):
3469         (WebCore::Font::update):
3470         (WebCore::Font::width):
3471         * platform/Font.h:
3472         (WebCore::Font::operator==):
3473         (WebCore::Font::width):
3474         (WebCore::Font::height):
3475         * platform/FontRenderer.h: Added.
3476         (WebCore::FontRenderer::isFixedPitch):
3477         * platform/GraphicsContext.h:
3478         * platform/mac/FontMac.mm: Added.
3479         (WebCore::m_renderer):
3480         (WebCore::FontRenderer::getWebCoreFont):
3481         (WebCore::FontRenderer::getRenderer):
3482         (WebCore::FontRenderer::determinePitch):
3483         (WebCore::FontRenderer::update):
3484         (WebCore::Font::getWebCoreFont):
3485         (WebCore::Font::ascent):
3486         (WebCore::Font::descent):
3487         (WebCore::Font::lineSpacing):
3488         (WebCore::Font::xHeight):
3489         (WebCore::Font::isFixedPitch):
3490         (WebCore::Font::selectionRectForText):
3491         (WebCore::Font::drawHighlightForText):
3492         (WebCore::Font::drawText):
3493         (WebCore::Font::floatWidth):
3494         (WebCore::Font::checkSelectionPoint):
3495         * platform/mac/GraphicsContextMac.mm:
3496         * rendering/InlineTextBox.h:
3497         * rendering/RenderBlock.cpp:
3498         (WebCore::stripTrailingSpace):
3499         * rendering/RenderText.cpp:
3500         (WebCore::RenderText::trimmedMinMaxWidth):
3501         * rendering/RenderText.h:
3502         * rendering/RenderTextField.cpp:
3503         (WebCore::RenderTextField::calcMinMaxWidth):
3504         * rendering/bidi.cpp:
3505         (khtml::RenderBlock::tabWidth):
3506         (khtml::RenderBlock::checkLinesForTextOverflow):
3507         * rendering/render_box.cpp:
3508         (WebCore::RenderBox::caretRect):
3509         * rendering/render_br.cpp:
3510         (WebCore::RenderBR::lineHeight):
3511         * rendering/render_flow.cpp:
3512         (WebCore::RenderFlow::lineHeight):
3513         (WebCore::RenderFlow::caretRect):
3514         * rendering/render_image.cpp:
3515         (WebCore::RenderImage::imageChanged):
3516         (WebCore::RenderImage::paint):
3517         * rendering/render_line.cpp:
3518         (WebCore::InlineFlowBox::placeBoxesVertically):
3519         * rendering/render_list.cpp:
3520         (WebCore::toHebrew):
3521         (WebCore::RenderListMarker::paint):
3522         (WebCore::RenderListMarker::calcMinMaxWidth):
3523         (WebCore::RenderListMarker::baselinePosition):
3524         (WebCore::RenderListMarker::getRelativeMarkerRect):
3525         * rendering/render_object.cpp:
3526         (WebCore::RenderObject::getVerticalPosition):
3527         (WebCore::RenderObject::lineHeight):
3528         (WebCore::RenderObject::baselinePosition):
3529         * rendering/render_object.h:
3530         * rendering/render_style.h:
3531
3532 2006-03-04  Eric Seidel  <eseidel@apple.com>
3533
3534         Reviewed by ggaren.
3535
3536         Add urlSelected stub, adjust font metrics, and fix view size/move bug.
3537
3538         * platform/win/TemporaryLinkStubs.cpp:
3539         (MouseEvent::MouseEvent):
3540         (FrameWin::urlSelected):
3541         (QFontMetrics::height):
3542         (QFontMetrics::xHeight):
3543         (QFontMetrics::ascent):
3544         (QFontMetrics::descent):
3545         (ScrollView::resizeContents):
3546         (ScrollView::setContentsPos):
3547
3548 2006-03-04  Maciej Stachowiak  <mjs@apple.com>
3549
3550         Reviewed by Eric.
3551
3552         - stop background image loads from crashing
3553
3554         * platform/cairo/GraphicsContextCairo.cpp:
3555         (WebCore::GraphicsContext::drawTiledImage):
3556         (WebCore::GraphicsContext::drawScaledAndTiledImage):
3557
3558         - fix termination condition on file load loop
3559
3560         * platform/win/TransferJobWin.cpp:
3561         (WebCore::TransferJob::fileLoadTimer):
3562
3563 2006-03-04  Geoffrey Garen  <ggaren@apple.com>
3564
3565         Reviewed by Darin.
3566
3567         - Fixed <rdar://problem/4467143> JavaScript enumeration of HTML 
3568         element properties skips DOM node properties
3569
3570         No test case yet because this is a preliminary step toward enabling my
3571         uber test case for DOM support, which will cover this.
3572
3573         * khtml/ecma/kjs_dom.cpp:
3574         (KJS::): Make DOMNode's classinfo reflect inheritance from 
3575         DOMNodeProto, so a for in enumeration can properly walk the 
3576         inheritance chain.
3577         * khtml/ecma/kjs_html.cpp:
3578         (KJS::): Used a script to sort classInfo data alphbetically.
3579         (KJS::KJS::HTMLElement::classInfo): Ditto.
3580
3581 2006-03-04  Maciej Stachowiak  <mjs@apple.com
3582
3583         Reviewed by Eric.
3584
3585          - fix mistake in TransferJob::start that made it cause a crash
3586         on non-file URLs
3587
3588         * platform/win/TransferJobWin.cpp:
3589         (WebCore::TransferJob::start):
3590
3591 2006-03-04  Maciej Stachowiak  <mjs@apple.com
3592
3593         Reviewed by Eric.
3594
3595         - make TransferJobWin handle file: URLs, and fix other bugs
3596         as needed to make local file image loads work
3597         http://bugzilla.opendarwin.org/show_bug.cgi?id=7587
3598
3599         * WebCore.vcproj/WebCore/WebCore.vcproj: add TransferJobWin