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