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