Reviewed by eseidel.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
2
3         Reviewed by eseidel.
4
5         Qt/Linux build system changes: enable xpath/xslt by default.
6         Offer possibility to change all of these using 'ccmake'.
7
8         * CMakeLists.txt:
9
10 2006-09-24  Dave Hyatt  <hyatt@apple.com>
11
12         Cleanup of Scrollbar APIs.  Rename setKnobProportion to setProportion.  Rename setScrollbarValue to updateThumbPosition.
13         Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
14         the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
15
16         * platform/ScrollBar.cpp:
17         (WebCore::ScrollBar::setValue):
18         (WebCore::ScrollBar::setProportion):
19         * platform/ScrollBar.h:
20         (WebCore::ScrollBar::value):
21         * platform/mac/PlatformScrollBar.h:
22         * platform/mac/PlatformScrollBarMac.mm:
23         (WebCore::PlatformScrollBar::updateThumbPosition):
24         (WebCore::PlatformScrollBar::updateThumbProportion):
25         * platform/win/PlatformScrollBar.h:
26         * platform/win/TemporaryLinkStubs.cpp:
27         (PlatformScrollBar::updateThumbPosition):
28         (PlatformScrollBar::updateThumbProportion):
29         * rendering/RenderLayer.cpp:
30         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
31
32 2006-09-23  Alexey Proskuryakov  <ap@nypop.com>
33
34         Reviewed by Eric.
35
36         http://bugzilla.opendarwin.org/show_bug.cgi?id=4872
37         XMLHttpRequest fails to throw an exception when there is a security violation
38         (mismatching domains)
39
40         Raise an exception if there is a security violation, and also in cases required by
41         the current draft of XHR specification.
42
43         * bindings/js/JSXMLHttpRequest.cpp:
44         (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
45         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
46         reports one, and also if there were too few arguments passed. 
47
48         * bindings/js/kjs_binding.cpp:
49         (KJS::setDOMException): Added support for custom XHR exceptions.
50
51         * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
52         exception code range for XHR exceptions.
53
54         * xml/xmlhttprequest.cpp:
55         (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
56         (WebCore::XMLHttpRequest::send):
57         (WebCore::XMLHttpRequest::setRequestHeader):
58         (WebCore::XMLHttpRequest::getStatus):
59         (WebCore::XMLHttpRequest::getStatusText):
60         (WebCore::XMLHttpRequest::processSyncLoadResults):
61         (WebCore::XMLHttpRequest::receivedAllData):
62         (WebCore::XMLHttpRequest::receivedData):
63
64 2006-09-22  Steve Falkenburg  <sfalken@apple.com>
65
66         Reviewed by Jeff Jenkins.
67
68         Tweak CF types.
69
70         * platform/cf/ResourceLoaderCFNet.cpp:
71         (WebCore::willCacheResponse):
72
73 2006-09-22  Justin Garcia  <justin.garcia@apple.com>
74
75         Reviewed by darin
76
77         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8029>
78         Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
79
80         * dom/Document.cpp:
81         (WebCore::Document::clearSelectionIfNeeded):
82         * dom/Element.cpp:
83         (WebCore::Element::contains):
84         * dom/Node.cpp:
85         (WebCore::Node::traverseNextNode):
86         (WebCore::Node::traverseNextSibling):
87         (WebCore::Node::traversePreviousNodePostOrder):
88         (WebCore::Node::checkAddChild):
89         (WebCore::Node::isDescendantOf):
90         * dom/Node.h:
91         * dom/NodeIterator.cpp:
92         (WebCore::NodeIterator::notifyBeforeNodeRemoval):
93         * editing/ApplyStyleCommand.cpp:
94         (WebCore::ApplyStyleCommand::applyBlockStyle):
95         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
96         (WebCore::ApplyStyleCommand::applyInlineStyle):
97         (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
98         * editing/CompositeEditCommand.cpp:
99         (WebCore::CompositeEditCommand::mergeIdenticalElements):
100         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
101         * editing/DeleteSelectionCommand.cpp:
102         (WebCore::updatePositionForNodeRemoval):
103         (WebCore::DeleteSelectionCommand::handleGeneralDelete):
104         (WebCore::DeleteSelectionCommand::mergeParagraphs):
105         * editing/FormatBlockCommand.cpp:
106         (WebCore::FormatBlockCommand::doApply):
107         * editing/IndentOutdentCommand.cpp:
108         (WebCore::enclosingListOrBlockquote):
109         * editing/Selection.cpp:
110         (WebCore::Selection::validate):
111         * editing/SelectionController.cpp:
112         (WebCore::SelectionController::nodeWillBeRemoved):
113         * editing/TextIterator.cpp:
114         (WebCore::SimplifiedBackwardsTextIterator::advance):
115         * editing/VisiblePosition.cpp:
116         (WebCore::VisiblePosition::next):
117         (WebCore::VisiblePosition::previous):
118         (WebCore::VisiblePosition::canonicalPosition):
119         (WebCore::isFirstVisiblePositionInNode):
120         (WebCore::isLastVisiblePositionInNode):
121         * editing/htmlediting.cpp:
122         (WebCore::firstEditablePositionAfterPositionInRoot):
123         (WebCore::lastEditablePositionBeforePositionInRoot):
124         (WebCore::enclosingNodeWithTag):
125         (WebCore::enclosingList):
126         (WebCore::enclosingListChild):
127         * editing/markup.cpp:
128         (WebCore::createMarkup):
129
130 2006-09-22  Timothy Hatcher  <timothy@apple.com>
131
132         Reviewed by Darin.
133
134         - Added @property syntax to non-generated headers
135           inside #ifndef BUILDING_ON_TIGER.
136         - Changed the DOMEventTarget protocol to have have new versions
137           of addEventListener and removeEventListener with named parameters.
138           These old style methods can be removed once Mail changes to use
139           the new methods <rdar://problem/4746649>.
140
141         * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
142         * bindings/objc/DOM.mm:
143         (-[DOMNode addEventListener:listener:useCapture:]):
144         (-[DOMNode addEventListener:::]): call the new method
145         (-[DOMNode removeEventListener:listener:useCapture:]):
146         (-[DOMNode removeEventListener:::]): call the new method
147         * bindings/objc/DOMAbstractView.h:
148         * bindings/objc/DOMEventTarget.h:
149         * bindings/objc/DOMHTMLAppletElement.h:
150         * bindings/objc/DOMHTMLEmbedElement.h:
151         * bindings/objc/DOMHTMLOptionElement.h:
152         * bindings/objc/DOMObject.h:
153         * bindings/objc/DOMRGBColor.h:
154
155 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
156
157         Reviewed by Eric.
158
159         Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
160
161         * platform/qt/FrameQt.cpp:
162         * platform/qt/GraphicsContextQt.cpp:
163         (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
164         (WebCore::GraphicsContext::origin):
165         * platform/qt/PlatformScrollBar.h: Added.
166         (WebCore::PlatformScrollBar::isWidget):
167         * platform/qt/WidgetQt.cpp:
168         (WebCore::Widget::invalidate):
169         (WebCore::Widget::invalidateRect):
170
171 2006-09-22  Dave Hyatt <hyatt@apple.com>
172
173         Super-minor tweaks to the systemFont function on Mac.
174         Set the generic family to None rather than to Serif, and
175         don't waste time setting the computed size, since that is
176         set from the specified size over in CSSStyleSelector anyway.
177
178         * rendering/RenderThemeMac.mm:
179         (WebCore::RenderThemeMac::systemFont):
180
181 2006-09-22  Timothy Hatcher  <timothy@apple.com>
182
183         Reviewed by Brady.
184
185         Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
186         take floats. There was already an implicit conversion to float/double
187         when calling CGContextTranslateCTM or cairo_translate.
188
189         * platform/GraphicsContext.h:
190         * platform/cairo/GraphicsContextCairo.cpp:
191         (WebCore::GraphicsContext::translate):
192         * platform/cg/GraphicsContextCG.cpp:
193         (WebCore::GraphicsContext::translate):
194
195 2006-09-22  Brady Eidson  <beidson@apple.com>
196
197         Reviewed by Sfalken
198
199         Add redirect and other cleanup to ResourceLoaderWin.cpp
200         Fixes bug http://bugzilla.opendarwin.org/show_bug.cgi?id=10927
201         Fixes bug http://bugzilla.opendarwin.org/show_bug.cgi?id=10744
202
203         * WebCore.xcodeproj/project.pbxproj:
204         * platform/ResourceLoader.h:
205         * platform/win/ResourceLoaderWin.cpp:
206         (WebCore::ResourceLoaderWndProc):
207         (WebCore::initializeOffScreenResourceLoaderWindow):
208         (WebCore::ResourceLoader::onHandleCreated):
209         (WebCore::ResourceLoader::onRequestRedirected):
210         (WebCore::ResourceLoader::onRequestComplete):
211         (WebCore::transferJobStatusCallback):
212
213 2006-09-22  Alexey Proskuryakov  <ap@nypop.com>
214
215         Reviewed by Geoff.
216
217         http://bugzilla.opendarwin.org/show_bug.cgi?id=10803
218         REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
219
220         * page/FrameView.cpp:
221         (WebCore::FrameView::hoverTimerFired): Use the current event.
222
223 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
224
225         Reviewed by Anders.
226
227         Fix (last) svg memory leak.
228
229         * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
230         (SVGTransformable::parseTransformAttribute):
231
232 2006-09-22  Eric Seidel  <eric@eseidel.com>
233
234         No review necessary, just removing a dead file.
235
236         Remove unused file (added previously by mistake) to make room for real implementation.
237
238         * platform/mac/BitmapImageMac.mm: Removed.
239
240 2006-09-22  Dave Hyatt <hyatt@apple.com>
241
242         Move PlatformScrollBar.h down into the platforms.
243         
244         Reviewed by andersca
245
246         * platform/PlatformScrollBar.h: Removed.
247         * platform/win/PlatformScrollBar.h: Added.
248         * platform/mac/PlatformScrollBar.h: Added.
249
250 2006-09-22   Dave Hyatt  <hyatt@apple.com>
251
252         Add support for invalidation of widgets.  This will be needed for the Win32 widget subsystem (and for
253         any widget subsystems that don't have any underlying native objects backing the widgets.
254
255         Reviewed by anders
256
257         * platform/Widget.h:
258         * platform/mac/WidgetMac.mm:
259         (WebCore::Widget::invalidate):
260         (WebCore::Widget::invalidateRect):
261         * platform/win/TemporaryLinkStubs.cpp:
262         (Widget::invalidate):
263         (Widget::invalidateRect):
264
265 2006-09-22  Rob Buis  <buis@kd.org>
266
267         Reviewed by eseidel.
268
269         http://bugzilla.opendarwin.org/show_bug.cgi?id=10901
270         Merge build fixes from unity
271
272         * CMakeLists.txt:
273
274 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
275
276         Reviewed by eseidel.
277
278         http://bugzilla.opendarwin.org/show_bug.cgi?id=10977
279         SVGDocument does not expose 'rootElement' property
280
281         Enable 'rootElement' property.
282
283         * ksvg2/svg/SVGDocument.idl:
284
285 2006-09-21  Steve Falkenburg  <sfalken@apple.com>
286
287         Tweak includes.
288
289         * platform/ResourceLoaderInternal.h:
290
291 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
292
293         build fixed. band happy.
294         
295         * platform/cg/GraphicsContextCG.cpp:
296         (WebCore::GraphicsContext::translate):
297         * platform/mac/WidgetMac.mm:
298
299 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
300
301         Reviewed by Maciej.
302         
303         Some Widget refactoring.
304
305         * WebCore.vcproj/WebCore/WebCore.vcproj:
306         * bridge/mac/FrameMac.mm:
307         * bridge/win/FrameWin.cpp:
308         (WebCore::FrameWin::runJavaScriptAlert):
309         (WebCore::FrameWin::runJavaScriptConfirm):
310         * bridge/win/PageWin.cpp:
311         (WebCore::Page::Page):
312         (WebCore::rootWindowForFrame):
313         * html/CanvasRenderingContext2D.cpp:
314         (WebCore::CanvasRenderingContext2D::translate):
315         * page/FrameView.cpp:
316         (WebCore::FrameView::isFrameView):
317         * page/Page.h:
318         (WebCore::Page::setInstanceHandle):
319         (WebCore::Page::instanceHandle):
320         * platform/GraphicsContext.h:
321         * platform/ScrollView.h:
322         * platform/Widget.h:
323         * platform/cairo/GraphicsContextCairo.cpp:
324         (WebCore::GraphicsContext::translate):
325         (WebCore::GraphicsContext::origin):
326         * platform/mac/WidgetMac.mm:
327         (WebCore::Widget::clearFocus):
328         * platform/win/ResourceLoaderWin.cpp:
329         (WebCore::initializeOffScreenResourceLoaderWindow):
330         * platform/win/ScreenWin.cpp:
331         (WebCore::monitorInfo):
332         * platform/win/ScrollViewWin.cpp:
333         (WebCore::ScrollView::updateContents):
334         (WebCore::ScrollView::visibleWidth):
335         (WebCore::ScrollView::visibleHeight):
336         (WebCore::ScrollView::visibleContentRect):
337         (WebCore::ScrollView::viewportToContents):
338         (WebCore::ScrollView::contentsToViewport):
339         (WebCore::ScrollView::scrollBy):
340         (WebCore::ScrollView::updateScrollInfo):
341         (WebCore::ScrollView::updateScrollBars):
342         * platform/win/SharedTimerWin.cpp:
343         (WebCore::initializeOffScreenTimerWindow):
344         * platform/win/TemporaryLinkStubs.cpp:
345         (FrameView::updateBorder):
346         (ScrollView::paint):
347         (GraphicsContext::clip):
348         * platform/win/WidgetWin.cpp:
349         (WebCore::Widget::Widget):
350         (WebCore::Widget::parentWindow):
351         (WebCore::Widget::setParentWindow):
352         (WebCore::Widget::frameGeometry):
353         (WebCore::Widget::hasFocus):
354         (WebCore::Widget::setFocus):
355         (WebCore::Widget::show):
356         (WebCore::Widget::hide):
357         (WebCore::Widget::setFrameGeometry):
358
359 2006-09-22  Anders Carlsson  <acarlsson@apple.com>
360
361         Reviewed by Tim H.
362
363         * platform/TextEncoding.cpp:
364         (WebCore::TextEncoding::backslashAsCurrencySymbol):
365         Add comment clarifying why backslashAsCurrencySymbol is needed.
366
367 2006-09-21  Sean Gies  <seangies@apple.com>
368
369         Reviewed by Adam Roben.
370
371         Add utility functions to get and release HDC from GraphicsContext.
372
373         * platform/GraphicsContext.h: Add utilities to get and release HDC.
374         * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
375         * rendering/RenderThemeWin.cpp: Switch to new utilities.
376
377 2006-09-21  Justin Garcia  <justin.garcia@apple.com>
378
379         Reviewed by anders
380         
381         <rdar://problem/4426622>
382         Plain text paste slow.  Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
383
384         * editing/htmlediting.cpp:
385         (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
386         aren't producing complicated sequences here.  Use multiple UChar -> UChar replaces instead for speed.
387         Got rid of uses of DepricatedString.
388
389 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
390
391         Reviewed by eseidel.
392
393         Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
394
395         * page/Frame.cpp:
396         (WebCore::Frame::endIfNotLoading):
397
398 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
399
400         Reviewed by eseidel.
401
402         Fix Qt/Linux build.
403
404         * CMakeLists.txt:
405         * kcanvas/device/qt/KCanvasClipperQt.h:
406         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
407         * platform/qt/FrameQt.cpp:
408         (WebCore::FrameQt::isLoadTypeReload):
409         (WebCore::FrameQt::originalRequestURL):
410         * platform/qt/FrameQt.h:
411         * platform/qt/GraphicsContextQt.cpp:
412         (WebCore::GraphicsContext::concatCTM):
413         * platform/qt/ScrollViewQt.cpp:
414         (WebCore::ScrollView::wheelEvent):
415         * platform/qt/TemporaryLinkStubs.cpp:
416         (WebCore::IconDatabase::setIconURLForPageURL):
417
418 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
419
420         Reviewed by john
421         
422         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7165>
423         TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
424
425         * editing/MoveSelectionCommand.cpp:
426         (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
427         to the position-to-move-to's document, not the fragment's document.  The 
428         fragment's document is the document used to create the fragment and is irrelavant.
429
430 === Safari-521.27 ===
431
432 2006-09-21  Brady Eidson  <beidson@apple.com>
433
434         Reviewed by Anders
435
436         When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
437         This fixes Spinneret so it won't crash on its first load!
438
439         * page/Frame.cpp:
440         (WebCore::Frame::endIfNotLoading):
441
442 2006-09-21  Brady Eidson  <beidson@apple.com>
443
444         Build fix
445
446         * platform/win/TemporaryLinkStubs.cpp:
447         (ScrollView::wheelEvent):
448
449 2006-09-20  Rob Buis  <buis@kde.org>
450
451         Reviewed by eseidel.
452
453         http://bugzilla.opendarwin.org/show_bug.cgi?id=10946
454         new marker code draws end-marker in wrong place
455
456         Keep track of the start of the subpath so we can handle
457         closeTo/moveTo correctly.
458
459         * kcanvas/RenderPath.cpp:
460         (WebCore::DrawMarkersData::DrawMarkersData):
461         (WebCore::updateMarkerDataForElement):
462
463 2006-09-21  David Hyatt <hyatt@apple.com>
464
465         Wheel scrolling prep for Win32.
466
467         WARNING: NO TEST CASES ADDED OR CHANGED
468
469         * platform/PlatformWheelEvent.h:
470         * platform/ScrollBar.h:
471         * platform/ScrollView.h:
472         * platform/mac/ScrollViewMac.mm:
473         (WebCore::ScrollView::wheelEvent):
474         * rendering/RenderLayer.cpp:
475
476 2006-09-20  Timothy Hatcher  <timothy@apple.com>
477
478         Reviewed by Hyatt.
479
480         Bug 10917: REGRESSION (r16027): iFrame transparency broken
481         http://bugzilla.opendarwin.org/show_bug.cgi?id=10917
482
483         Don't paint the base background color if we transparent.
484
485         * rendering/RenderBox.cpp:
486         (WebCore::RenderBox::paintBackgroundExtended):
487
488 2006-09-20  Adam Roben  <aroben@apple.com>
489
490         Reviewed by andersca.
491
492         * platform/FileChooser.h: Remove no-longer-necessary namespace std
493
494 2006-09-20  Eric Seidel  <eric@eseidel.com>
495
496         Reviewed by beth.
497
498         Cleanup style in KCanvas.
499         Remove extra white-space, unneeded arguments, etc.
500
501         * WebCore.xcodeproj/project.pbxproj:
502         * kcanvas/KCanvasClipper.cpp:
503         (WebCore::operator<<):
504         (WebCore::KCanvasClipper::externalRepresentation):
505         * kcanvas/KCanvasClipper.h:
506         * kcanvas/KCanvasFilters.cpp:
507         (WebCore::KCanvasFilter::externalRepresentation):
508         (WebCore::operator<<):
509         (WebCore::KCanvasFilterEffect::externalRepresentation):
510         (WebCore::KCPointLightSource::externalRepresentation):
511         (WebCore::KCSpotLightSource::externalRepresentation):
512         (WebCore::KCDistantLightSource::externalRepresentation):
513         (WebCore::KCanvasFEBlend::externalRepresentation):
514         (WebCore::KCanvasFEColorMatrix::externalRepresentation):
515         (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
516         (WebCore::KCanvasFEComposite::externalRepresentation):
517         (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
518         (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
519         (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
520         (WebCore::KCanvasFEFlood::externalRepresentation):
521         (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
522         (WebCore::KCanvasFEImage::externalRepresentation):
523         (WebCore::KCanvasFEMerge::externalRepresentation):
524         (WebCore::KCanvasFEMorphology::externalRepresentation):
525         (WebCore::KCanvasFEOffset::externalRepresentation):
526         (WebCore::KCanvasFESpecularLighting::externalRepresentation):
527         (WebCore::KCanvasFETile::externalRepresentation):
528         (WebCore::KCanvasFETurbulence::externalRepresentation):
529         * kcanvas/KCanvasFilters.h:
530         (WebCore::KCanvasFEDiffuseLighting::lightSource):
531         (WebCore::KCanvasFESpecularLighting::lightSource):
532         * kcanvas/KCanvasImage.h:
533         * kcanvas/KCanvasMarker.cpp:
534         (WebCore::KCanvasMarker::externalRepresentation):
535         * kcanvas/KCanvasMarker.h:
536         * kcanvas/KCanvasResource.cpp:
537         (WebCore::operator<<):
538         * kcanvas/KCanvasResource.h:
539         * kcanvas/KCanvasTreeDebug.cpp:
540         (WebCore::operator<<):
541         (WebCore::writeIndent):
542         (WebCore::writeStyle):
543         (WebCore::write):
544         (WebCore::writeRenderResources):
545         * kcanvas/KCanvasTreeDebug.h:
546         (WebCore::operator<<):
547         * kcanvas/RenderForeignObject.cpp:
548         (WebCore::RenderForeignObject::paint):
549         * kcanvas/RenderPath.cpp:
550         (WebCore::RenderPath::paint):
551         (WebCore::drawStartAndMidMarkers):
552         * kcanvas/RenderSVGContainer.cpp:
553         (WebCore::RenderSVGContainer::paint):
554         * kcanvas/RenderSVGImage.cpp:
555         (WebCore::RenderSVGImage::translateForAttributes):
556         * kcanvas/RenderSVGImage.h:
557         * kcanvas/device/KRenderingDevice.cpp:
558         (WebCore::KRenderingDevice::currentContext):
559         (WebCore::KRenderingDevice::popContext):
560         (WebCore::KRenderingDevice::pushContext):
561         * kcanvas/device/KRenderingDevice.h:
562         * kcanvas/device/KRenderingFillPainter.h:
563         * kcanvas/device/KRenderingPaintServer.h:
564         (WebCore::KRenderingPaintServer::KRenderingPaintServer):
565         (WebCore::KRenderingPaintServer::activeClient):
566         (WebCore::KRenderingPaintServer::setActiveClient):
567         * kcanvas/device/KRenderingPaintServerGradient.cpp:
568         (WebCore::operator<<):
569         (WebCore::KRenderingPaintServerGradient::externalRepresentation):
570         (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
571         (WebCore::KRenderingPaintServerGradient::listener):
572         (WebCore::KRenderingPaintServerGradient::setListener):
573         (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
574         * kcanvas/device/KRenderingPaintServerGradient.h:
575         * kcanvas/device/KRenderingPaintServerPattern.cpp:
576         (WebCore::KRenderingPaintServerPattern::tile):
577         (WebCore::KRenderingPaintServerPattern::setTile):
578         (WebCore::KRenderingPaintServerPattern::listener):
579         (WebCore::KRenderingPaintServerPattern::setListener):
580         (WebCore::KRenderingPaintServerPattern::externalRepresentation):
581         * kcanvas/device/KRenderingPaintServerPattern.h:
582         * kcanvas/device/KRenderingPaintServerSolid.cpp:
583         (WebCore::KRenderingPaintServerSolid::externalRepresentation):
584         * kcanvas/device/KRenderingPaintServerSolid.h:
585         * kcanvas/device/KRenderingStrokePainter.cpp:
586         (WebCore::KRenderingStrokePainter::strokeMiterLimit):
587         (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
588         * kcanvas/device/KRenderingStrokePainter.h:
589         * kcanvas/device/quartz/KCanvasFilterQuartz.h:
590         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
591         (WebCore::KCanvasFilterQuartz::prepareFilter):
592         * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
593         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
594         (WebCore::KCanvasMaskerQuartz::applyMask):
595         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
596         (WebCore::KCanvasImageQuartz::init):
597         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
598         (WebCore::KCanvasClipperQuartz::applyClip):
599         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
600         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
601         (WebCore::KRenderingDeviceQuartz::quartzContext):
602         (WebCore::KRenderingDeviceQuartz::contextForImage):
603         (WebCore::KRenderingDeviceQuartz::createPaintServer):
604         (WebCore::KRenderingDeviceQuartz::createResource):
605         (WebCore::KRenderingDeviceQuartz::createFilterEffect):
606         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
607         (WebCore::CGShadingRefForLinearGradient):
608         (WebCore::CGShadingRefForRadialGradient):
609         (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
610         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
611         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
612         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
613         (WebCore::KRenderingPaintServerQuartzHelper::strokePath):
614         (WebCore::KRenderingPaintServerQuartzHelper::clipToStrokePath):
615         (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
616         (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
617         (WebCore::KRenderingPaintServerSolidQuartz::draw):
618         (WebCore::KRenderingPaintServerSolidQuartz::setup):
619         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
620         (WebCore::KRenderingPaintServerPatternQuartz::setup):
621         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
622         (WebCore::KRenderingPaintServerPatternQuartz::teardown):
623         * kcanvas/device/quartz/QuartzSupport.h:
624         * kcanvas/device/quartz/QuartzSupport.mm:
625         (WebCore::applyStrokeStyleToContext):
626
627 2006-09-20  Anders Carlsson  <acarlsson@apple.com>
628
629         Reviewed by Dave Hyatt.
630
631         * dom/WheelEvent.cpp:
632         (WebCore::WheelEvent::WheelEvent):
633         Use lroundf instead of lround since deltas are floats.
634
635 2006-09-20  Julien Palmas  <julien.palmas@gmail.com>
636
637         Reviewed by eseidel.  Landed by eseidel.
638
639         Test: svg/custom/pattern-y-offset.svg
640
641         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
642         (WebCore::KRenderingPaintServerPatternQuartz::setup):
643
644 2006-09-20  David Hyatt  <hyatt@apple.com>
645
646         Add a new wheelEvent method to ScrollView.  Platforms that wish
647         to handle the wheel event for the scroll view themselves can then
648         do so there.  (Mac lets the underlying NSScrollView do it for now.)
649
650         * page/FrameView.cpp:
651         (WebCore::FrameView::handleWheelEvent):
652         * platform/ScrollView.h:
653         (WebCore::ScrollView::wheelEvent):
654
655 2006-09-20  Brady Eidson  <beidson@apple.com>
656
657         Reviewed by Tim Omernick
658
659         Part of fixing a crash Tim O showed me that I missed in a release build.
660         WebKit should be able to call through the bridge to WebCore no matter what -
661         Replace the _iconDB member with calls to IconDatabase::sharedIconDatabase()
662
663         * bridge/mac/WebCoreIconDatabaseBridge.h:
664         * bridge/mac/WebCoreIconDatabaseBridge.mm:
665         (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
666         (-[WebCoreIconDatabaseBridge isOpen]):
667         (-[WebCoreIconDatabaseBridge removeAllIcons]):
668         (-[WebCoreIconDatabaseBridge _isEmpty]):
669         (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
670         (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
671         (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
672         (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
673         (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
674         (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
675         (-[WebCoreIconDatabaseBridge retainIconForURL:]):
676         (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
677         (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
678         (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
679         (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
680         (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
681         (-[WebCoreIconDatabaseBridge _setEnabled:]):
682         (-[WebCoreIconDatabaseBridge _isEnabled]):
683
684 2006-09-20  Anders Carlsson  <acarlsson@apple.com>
685
686         Reviewed by Darin.
687
688         Add String::split which returns a Vector of Strings and use it instead of 
689         DeprecatedStringList.
690         
691         * bindings/js/kjs_events.cpp:
692         (KJS::Clipboard::getValueProperty):
693         * bindings/js/kjs_window.cpp:
694         (KJS::parseModalDialogFeatures):
695         * css/MediaList.cpp:
696         (WebCore::MediaList::setMediaText):
697         * dom/Clipboard.h:
698         * html/HTMLFormElement.cpp:
699         (WebCore::HTMLFormElement::formData):
700         * html/HTMLLinkElement.cpp:
701         (WebCore::HTMLLinkElement::tokenizeRelAttribute):
702         * platform/PlatformString.h:
703         * platform/String.cpp:
704         (WebCore::String::split):
705         * platform/StringImpl.cpp:
706         * platform/StringImpl.h:
707         * platform/mac/ClipboardMac.h:
708         * platform/mac/ClipboardMac.mm:
709         (WebCore::ClipboardMac::types):
710
711 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
712
713         Reviewed by harrison
714
715         * css/cssstyleselector.cpp:
716         (WebCore::CSSStyleSelector::adjustRenderStyle): Don't call 
717         HTMLElement::isContentEditable just to check the Frame's editability, since
718         it calls updateRenderering, which can get us into infinite recursion.
719
720 2006-09-20  Brady Eidson  <beidson@apple.com>
721
722         Reviewed by Darin
723
724         Cleaned up my last patch alot, and made the WebCore icon database disabled by default
725
726         * loader/icon/IconDatabase.cpp:
727         (WebCore::IconDatabase::IconDatabase): Disabled by default
728         (WebCore::IconDatabase::removeAllIcons): Respect just isOpen() (disabled database will always be closed)
729         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ditto
730         (WebCore::IconDatabase::iconForPageURL): Ditto
731         (WebCore::IconDatabase::isIconExpiredForIconURL): Ditto
732         (WebCore::IconDatabase::iconURLForPageURL): Ditto
733         (WebCore::IconDatabase::retainIconForPageURL): Ditto
734         (WebCore::IconDatabase::releaseIconForPageURL): Ditto
735         (WebCore::IconDatabase::setIconDataForIconURL): Ditto
736         (WebCore::IconDatabase::setIconURLForPageURL): Ditto
737         (WebCore::IconDatabase::hasEntryForIconURL): Ditto
738         (WebCore::IconDatabase::setEnabled): Fixed a big bug here!
739
740 2006-09-20  Adam Roben  <aroben@apple.com>
741
742         Reviewed by Adele.
743
744         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10935
745         REGRESSION: file upload control with direction:rtl or text-align:right
746         draws button on top of filename/icon
747
748         * rendering/RenderFileUploadControl.cpp:
749         (WebCore::RenderFileUploadControl::setStyle): Force text-align to
750         match direction
751         (WebCore::RenderFileUploadControl::paintObject): Fix positioning of
752         the filename and icon in RTL
753
754 2006-09-20  Alice Liu  <alice.liu@apple.com>
755
756         Reviewed by Adam Roben.
757
758         fixed windows build
759
760         * dom/WheelEvent.cpp:
761         (WebCore::WheelEvent::WheelEvent):
762         changed lrint to lround
763
764 2006-09-20  Sam Weinig  <sam.weinig@gmail.com>
765
766         Build Fix.  Adds isHorizontal attribute back to WheelEvent
767         for the Objective-C bindings.  If it is found that isHorizontal
768         is not used, we should remove it again but also remove it's
769         declaration from PublicDOMInterfaces.h
770
771         * dom/WheelEvent.h:
772         (WebCore::WheelEvent::isHorizontal):
773         * dom/WheelEvent.idl:
774
775 2006-09-20  David Hyatt  <hyatt@apple.com>
776
777         Fix for 10945, WheelEvent should support two dimensions at once, since
778         MacBooks allow for diagonal scrolling.  Also enhance the PlatformWheelEvent
779         to allow for diagonal scrolling.
780
781         Reviewed by Eric
782
783         * dom/EventTargetNode.cpp:
784         (WebCore::EventTargetNode::dispatchWheelEvent):
785         * dom/WheelEvent.cpp:
786         (WebCore::WheelEvent::WheelEvent):
787         (WebCore::WheelEvent::initWheelEvent):
788         * dom/WheelEvent.h:
789         (WebCore::WheelEvent::wheelDelta):
790         (WebCore::WheelEvent::wheelDeltaX):
791         (WebCore::WheelEvent::wheelDeltaY):
792         * dom/WheelEvent.idl:
793         * page/FrameView.cpp:
794         (WebCore::FrameView::handleWheelEvent):
795         * platform/PlatformWheelEvent.h:
796         (WebCore::PlatformWheelEvent::deltaX):
797         (WebCore::PlatformWheelEvent::deltaY):
798         (WebCore::PlatformWheelEvent::normalize):
799         * platform/mac/WheelEventMac.mm:
800         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
801
802 2006-09-19  Eric Seidel  <eric@eseidel.com>
803
804         Reviewed by hyatt.
805
806         Split KCanvasResources.* into multiple files (and some other minor spacing changes).
807         
808         No tests were harmed in the making of this patch.
809
810         * WebCore.xcodeproj/project.pbxproj:
811         * kcanvas/KCanvasClipper.cpp: Added.
812         (WebCore::operator<<):
813         * kcanvas/KCanvasClipper.h: Added.
814         * kcanvas/KCanvasFilters.h:
815         * kcanvas/KCanvasImage.h:
816         * kcanvas/KCanvasMarker.cpp: Added.
817         * kcanvas/KCanvasMarker.h: Added.
818         * kcanvas/KCanvasMasker.cpp: Added.
819         (WebCore::KCanvasMasker::KCanvasMasker):
820         (WebCore::KCanvasMasker::setMask):
821         (WebCore::KCanvasMasker::externalRepresentation):
822         (WebCore::getMaskerById):
823         * kcanvas/KCanvasMasker.h: Added.
824         * kcanvas/KCanvasResource.cpp: Added.
825         (WebCore::KCanvasResource::invalidate):
826         (WebCore::KCanvasResource::externalRepresentation):
827         (WebCore::getResourceById):
828         (WebCore::getPaintServerById):
829         * kcanvas/KCanvasResource.h: Added.
830         * kcanvas/KCanvasResources.cpp: Removed.
831         * kcanvas/KCanvasResources.h: Removed.
832         * kcanvas/RenderPath.cpp:
833         * kcanvas/RenderSVGContainer.cpp:
834         * kcanvas/RenderSVGImage.cpp:
835         * kcanvas/RenderSVGText.cpp:
836         * kcanvas/device/KRenderingPaintServer.h:
837         * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
838         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
839         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
840         * ksvg2/svg/SVGClipPathElement.h:
841         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
842         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
843         * ksvg2/svg/SVGFECompositeElement.cpp:
844         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
845         * ksvg2/svg/SVGFELightElement.cpp:
846         * ksvg2/svg/SVGFEOffsetElement.cpp:
847         * ksvg2/svg/SVGFETurbulenceElement.cpp:
848         * ksvg2/svg/SVGFilterElement.cpp:
849         * ksvg2/svg/SVGLinearGradientElement.cpp:
850         * ksvg2/svg/SVGMarkerElement.h:
851         * ksvg2/svg/SVGMaskElement.h:
852
853 2006-09-19  Brady Eidson <beidson@apple.com>
854
855         Reviewed by Sarge Decker
856
857         <rdar://problem/4739892> and <rdar://problem/4729797>
858         - WebCore::IconDatabase needs to have and respect an enabled() flag
859         - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
860
861         * bridge/mac/WebCoreIconDatabaseBridge.h:
862         * bridge/mac/WebCoreIconDatabaseBridge.mm:
863         (-[WebCoreIconDatabaseBridge _setEnabled:]): Added
864         (-[WebCoreIconDatabaseBridge _isEnabled]): Added
865         * loader/icon/IconDatabase.cpp:
866         (WebCore::IconDatabase::IconDatabase):
867         (WebCore::IconDatabase::open): Don't open if disabled
868         (WebCore::IconDatabase::removeAllIcons): Ignore if disabled/closed
869         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ignore if disabled/closed
870         (WebCore::IconDatabase::iconForPageURL): Default Icon if disabled/closed
871         (WebCore::IconDatabase::isIconExpiredForIconURL): Default return if disabled/closed
872         (WebCore::IconDatabase::iconURLForPageURL): Default return if disabled/closed
873         (WebCore::IconDatabase::retainIconForPageURL): Ignore if disabled/closed
874         (WebCore::IconDatabase::releaseIconForPageURL): Ignore if disabled/closed
875         (WebCore::IconDatabase::releaseIconURL):
876         (WebCore::IconDatabase::setIconDataForIconURL): Ignore if disabled/closed
877         (WebCore::IconDatabase::setIconURLForPageURL): Ignore if disabled/closed
878         (WebCore::IconDatabase::hasEntryForIconURL): Default return if disabled/closed
879         (WebCore::IconDatabase::setEnabled): Added
880         * loader/icon/IconDatabase.h:
881         (WebCore::IconDatabase::enabled): Added
882         * page/Frame.cpp:
883         (WebCore::Frame::endIfNotLoading): do an IconDatabase::enabled() check before bothering to load the icon
884         * platform/mac/ResourceLoaderMac.mm: Removed extraneous #include
885
886 2006-09-20  David Hyatt  <hyatt@apple.com>
887
888         Massage mouse wheel handling so that it is more cross-platform.  Make
889         all the work happen in handleWheelEvent on the FrameView.
890
891         Reviewed by bradee-oh
892
893         * bridge/mac/FrameMac.mm:
894         (WebCore::FrameMac::wheelEvent):
895         * page/FrameView.cpp:
896         (WebCore::FrameView::handleWheelEvent):
897         * platform/PlatformWheelEvent.h:
898         (WebCore::PlatformWheelEvent::platformDelta):
899         (WebCore::PlatformWheelEvent::delta):
900         * platform/mac/WheelEventMac.mm:
901         (WebCore::platformDeltaForEvent):
902         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
903         * rendering/RenderLayer.cpp:
904         (WebCore::RenderLayer::scroll):
905         * rendering/RenderObject.cpp:
906         (WebCore::RenderObject::scroll):
907
908 2006-09-19  Eric Seidel  <eric@eseidel.com>
909
910         Reviewed by adele.
911
912         Improve test output for filters with bounding-box relative sizes.
913         http://bugzilla.opendarwin.org/show_bug.cgi?id=8585
914
915         Many test results updated.
916
917         * kcanvas/KCanvasFilters.cpp:
918         (WebCore::KCanvasFilter::externalRepresentation):
919
920 2006-09-19  Eric Seidel  <eric@eseidel.com>
921
922         Reviewed by adele.
923         
924         Markers should clip to their viewport.
925         http://bugzilla.opendarwin.org/show_bug.cgi?id=5967
926
927         Test: svg/custom/marker-overflow-clip.svg
928
929         * kcanvas/KCanvasResources.cpp:
930         (WebCore::KCanvasMarker::KCanvasMarker):
931         (WebCore::KCanvasMarker::setMarker):
932         (WebCore::KCanvasMarker::draw):
933         * kcanvas/KCanvasResources.h:
934         (WebCore::KCanvasMasker::mask):
935         * ksvg2/svg/SVGMarkerElement.cpp:
936         (WebCore::SVGMarkerElement::SVGMarkerElement):
937         (WebCore::SVGMarkerElement::parseMappedAttribute):
938         (WebCore::SVGMarkerElement::canvasResource):
939         (WebCore::SVGMarkerElement::createRenderer):
940
941 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
942
943         Reviewed by eseidel
944
945         Backing out my recent change.
946
947         * css/cssstyleselector.cpp:
948         (WebCore::CSSStyleSelector::adjustRenderStyle): 
949
950 2006-09-19  Brady Eidson  <beidson@apple.com>
951
952         Reviewed by Kevin McCullough
953
954         http://bugzilla.opendarwin.org/show_bug.cgi?id=10940
955         Opening a PDF in a new tab/window creates a documentless-frame
956         and we deref the document without checking its validity
957
958         * page/Frame.cpp:
959         (WebCore::Frame::iconURL):
960
961 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
962
963         Reviewed by harrison
964         
965         <rdar://problem/4735272>
966         Can not click into link in programmatically editable content
967
968         * css/cssstyleselector.cpp:
969         (WebCore::CSSStyleSelector::adjustRenderStyle): We stopped using
970         userModify to implement document wide editability.
971
972 2006-09-19  MorganL  <morlmor@yahoo.com>
973
974         Reviewed by Darin and landed by Brady
975
976         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10939
977         Build broken when SVG is not enabled.
978
979         * dom/XMLTokenizer.cpp:
980         (WebCore::XMLTokenizer::startElementNs):
981
982 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
983
984         Reviewed by harrison
985         
986         <rdar://problem/4727383> REGRESSION: Pasting plain text with tabs into Blot converts the tabs to single spaces
987
988         Pasting plain text results in a match style paste, and the insertion
989         position is whitespace normal, which clobbers the whitespace:pre on 
990         tab spans.  Skip changes to the whitespace mode when computing a style
991         change for tab spans or the text nodes inside tab spans.
992
993         * editing/ApplyStyleCommand.cpp:
994         (WebCore::StyleChange::init): Don't change the whitespace mode inside
995         tab spans.
996
997 2006-09-19  David Hyatt  <hyatt@apple.com>
998
999         Fix for bug 5298, shape=default not supported for image maps.  Implement
1000         support for it.
1001
1002         Reviewed by timo
1003
1004         * html/HTMLAreaElement.cpp:
1005         (WebCore::HTMLAreaElement::getRegion):
1006         * html/HTMLMapElement.cpp:
1007         (WebCore::HTMLMapElement::mapMouseEvent):
1008
1009 2006-09-19  Adam Roben  <aroben@apple.com>
1010
1011         Reviewed by Adele.
1012
1013         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10824
1014         "no file selected" placeholder text missing from file upload control
1015
1016         * WebCore.xcodeproj/project.pbxproj:
1017         * rendering/RenderFileUploadControl.cpp: Remove class
1018         RenderFileUploadInnerFileBox, rename defaultFilenameNumChars to
1019         defaultWidthNumChars
1020         (WebCore::RenderFileUploadControl::RenderFileUploadControl): Call
1021         RenderBlock constructor instead of RenderFlexibleBox, 
1022         (WebCore::RenderFileUploadControl::setStyle): Remove references to
1023         m_fileBox.
1024         (WebCore::RenderFileUploadControl::valueChanged): Call repaint()
1025         instead of updateIconAndFileName() (which has been removed)
1026         (WebCore::RenderFileUploadControl::updateFromElement): Remove
1027         references to m_fileBox, don't call updateIconAndFilename()
1028         (WebCore::RenderFileUploadControl::maxFilenameWidth): Calculate width
1029         without using m_fileBox
1030         (WebCore::RenderFileUploadControl::createButtonStyle): Remove
1031         now-unnecessary display:box rule.
1032         (WebCore::RenderFileUploadControl::paintObject): Remove redundant call
1033         to paintingDisabled() now that Icon::paint() does it, and add code to
1034         paint the filename directly.
1035         (WebCore::RenderFileUploadControl::calcMinMaxWidth): Move this method
1036         out of RenderFileUploadInnerFileBox and into RenderFileUploadControl
1037         * rendering/RenderFileUploadControl.h: Make RenderFileUploadControl a
1038         subclass of RenderBlock instead of RenderFlexibleBox, remove
1039         updateIconAndFilename() method, remove m_fileBox instance variable.
1040
1041 2006-09-19  Eric Seidel  <eric@eseidel.com>
1042
1043         Reviewed by hyatt.
1044
1045         Exceptions thrown from <script> tags in XHTML/SVG docs show the wrong line numbers
1046         http://bugzilla.opendarwin.org/show_bug.cgi?id=10846
1047         
1048         No automated test case possible until http://bugzilla.opendarwin.org/show_bug.cgi?id=10905 is resolved.
1049
1050         * dom/XMLTokenizer.cpp:
1051         (WebCore::XMLTokenizer::XMLTokenizer):
1052         (WebCore::XMLTokenizer::startElementNs):
1053         (WebCore::XMLTokenizer::endElementNs):
1054
1055 2006-09-19  Krzysztof Kowalczyk <kkowalczyk@gmail.com>
1056
1057         Reviewed by eseidel.  Landed by eseidel.
1058         
1059         Build fix only, no tests affected.
1060
1061         * platform/gdk/FontPlatformDataGdk.cpp:
1062         (WebCore::FontPlatformData::FontPlatformData):
1063         (WebCore::FontPlatformData::~FontPlatformData):
1064         * platform/gdk/FrameGdk.h:
1065         * platform/gdk/TemporaryLinkStubs.cpp:
1066         (FrameGdk::isLoadTypeReload):
1067         (FrameGdk::originalRequestURL):
1068         (IconDatabase::setIconURLForPageURL):
1069
1070 2006-09-19  David Hyatt  <hyatt@apple.com>
1071
1072         Refine the fix for 9805 to really get all the complex cases right.
1073
1074         Reviewed by Eric
1075
1076         * rendering/RenderBlock.cpp:
1077         (WebCore::RenderBlock::clearFloatsIfNeeded):
1078         (WebCore::RenderBlock::handleBottomOfBlock):
1079
1080 2006-09-18  David Hyatt  <hyatt@apple.com>
1081
1082         Fix for 9805, <hr> not positioned properly following a previous empty sibling
1083         that had clear:both set on it.  Update self-collapsing block clearance
1084         behavior to match what is specified in the latest draft of CSS2.1.
1085
1086         Reviewed by Eric
1087
1088         Added fast/block/margin-collapse/empty-clear-blocks.html
1089
1090         * rendering/RenderBlock.cpp:
1091         (WebCore::RenderBlock::clearFloatsIfNeeded):
1092         (WebCore::RenderBlock::handleBottomOfBlock):
1093
1094 2006-09-18  MorganL  <morlmor@yahoo.com>
1095
1096         Reviewed by Brady, landed by Brady
1097
1098         Send receivedResponse callback to ResourceLoaderClient when loading
1099         file URLs.
1100
1101         See http://bugzilla.opendarwin.org/show_bug.cgi?id=10845
1102
1103         * platform/win/ResourceLoaderWin.cpp:
1104         (WebCore::ResourceLoader::fileLoadTimer):
1105
1106 2006-09-18  Brady Eidson  <beidson@apple.com>
1107
1108         Reviewed by Anders
1109
1110         <rdar://problem/3028061> - WebKit never updates favicon
1111         The WebKit enforced expiration date for icons has worked for some time, but the
1112         move to the new Icon Loader broke the "always get the icon if the user refreshes the page" 
1113         functionality.  This patch fixes that up, along with some other architectural improvements,
1114         the main one being that WebCore::Document now contains an iconURL for the Frame to query if needed.
1115
1116         * bridge/mac/FrameMac.h: Added isLoadTypeReload()
1117         * bridge/mac/FrameMac.mm:
1118         (WebCore::FrameMac::isLoadTypeReload): Implementation, calls into the bridge
1119         * bridge/mac/WebCoreFrameBridge.h: Added isLoadTypeReload:
1120         * bridge/win/FrameWin.h: Added isLoadTypeReload() for temporary link stub
1121         * dom/Document.h: Added m_iconURL
1122         (WebCore::Document::iconURL): Added
1123         (WebCore::Document::setIconURL): Ditto
1124         * html/HTMLLinkElement.cpp:
1125         (WebCore::HTMLLinkElement::process): Sets the iconURL in the Document instead of the Frame
1126         * page/Frame.cpp:
1127         (WebCore::Frame::iconURL): Calculates the iconURL based on the document, then the default favicon.ico url
1128         (WebCore::Frame::endIfNotLoading): Checks for the load type - always loads icon on Reload
1129         * page/Frame.h: Nuked setIconURL(), added isLoadTypeReload()
1130         * page/FramePrivate.h: Nuked IconURL
1131         * platform/win/TemporaryLinkStubs.cpp:
1132         (FrameWin::isLoadTypeReload):
1133
1134 2006-09-18  Sam Weinig  <sam.weinig@gmail.com>
1135
1136         Reviewed by Tim H.
1137
1138         - Re-add private method [DOMRGBColor _color] to DOMPrivate.h as
1139           it is it turns out that AppKit uses it.
1140
1141         * bindings/objc/DOMPrivate.h:
1142         * bindings/objc/DOMRGBColor.mm:
1143         (-[DOMRGBColor _color]):
1144
1145 2006-09-18  Sam Weinig  <sam.weinig@gmail.com>
1146
1147         Reviewed by Tim H.
1148
1149         Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10903
1150         Yet Another Objective-C Bindings Patch
1151
1152         - Whitespace cleanup for IDLParser.pm
1153
1154         - Split DOMException, DOMRangeException, DOMXPathException, DOMEventsException
1155           and DOMAbstractView into their own files.
1156
1157         - Remove private method [DOMRGBColor _color] from DOMPrivate.h as
1158           it is not used and a public method is available now.
1159
1160         - Remove internal method [DOMDocument _ownerElement] from DOMInternal.h
1161           as it not used.
1162
1163         - Auto-generate method isContentEditable for DOMNode.
1164
1165         - General cleanup of bindings code including removing unneeded #imports
1166           and whitespace cleanup
1167
1168         * WebCore.xcodeproj/project.pbxproj:
1169         * bindings/objc/DOM.mm:
1170         (addElementClass):
1171         (elementClass):
1172         (-[DOMNode _initWithNode:WebCore::]):
1173         (+[DOMNode _nodeWith:WebCore::]):
1174         (-[DOMNode WebCore::]):
1175         (-[DOMNode KJS::Bindings::]):
1176         (-[DOMNode addEventListener:::]):
1177         (-[DOMNode removeEventListener:::]):
1178         (-[DOMNode dispatchEvent:]):
1179         (-[DOMElement image]):
1180         (-[DOMElement _font]):
1181         (-[DOMElement _imageTIFFRepresentation]):
1182         (-[DOMElement _getURLAttribute:]):
1183         (-[DOMElement _NPObject]):
1184         (-[DOMElement isFocused]):
1185         (-[DOMRange dealloc]):
1186         (-[DOMRange finalize]):
1187         (-[DOMRange description]):
1188         (-[DOMRange startContainer]):
1189         (-[DOMRange startOffset]):
1190         (-[DOMRange endContainer]):
1191         (-[DOMRange endOffset]):
1192         (-[DOMRange collapsed]):
1193         (-[DOMRange commonAncestorContainer]):
1194         (-[DOMRange setStart::]):
1195         (-[DOMRange setEnd::]):
1196         (-[DOMRange setStartBefore:]):
1197         (-[DOMRange setStartAfter:]):
1198         (-[DOMRange setEndBefore:]):
1199         (-[DOMRange setEndAfter:]):
1200         (-[DOMRange collapse:]):
1201         (-[DOMRange selectNode:]):
1202         (-[DOMRange selectNodeContents:]):
1203         (-[DOMRange compareBoundaryPoints::]):
1204         (-[DOMRange deleteContents]):
1205         (-[DOMRange extractContents]):
1206         (-[DOMRange cloneContents]):
1207         (-[DOMRange insertNode:]):
1208         (-[DOMRange surroundContents:]):
1209         (-[DOMRange cloneRange]):
1210         (-[DOMRange toString]):
1211         (-[DOMRange detach]):
1212         (-[DOMRange _initWithRange:WebCore::]):
1213         (+[DOMRange _rangeWith:WebCore::]):
1214         (-[DOMRange WebCore::]):
1215         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
1216         (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
1217         (-[DOMNodeFilter WebCore::]):
1218         (-[DOMNodeFilter dealloc]):
1219         (-[DOMNodeFilter finalize]):
1220         (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
1221         (-[DOMNodeIterator WebCore::]):
1222         (+[DOMNodeIterator _nodeIteratorWith:WebCore::filter:]):
1223         (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
1224         (-[DOMTreeWalker WebCore::]):
1225         (+[DOMTreeWalker _treeWalkerWith:WebCore::filter:]):
1226         (ObjCNodeFilterCondition::acceptNode):
1227         (-[DOMDocument createNodeIterator::::]):
1228         (-[DOMDocument createTreeWalker::::]):
1229         (ObjCEventListener::find):
1230         (ObjCEventListener::create):
1231         (ObjCEventListener::handleEvent):
1232         * bindings/objc/DOMAbstractView.h: Added.
1233         * bindings/objc/DOMAbstractView.mm: Added.
1234         (-[DOMAbstractView document]):
1235         (-[DOMAbstractView WebCore::]):
1236         (-[DOMAbstractView _initWithAbstractView:WebCore::]):
1237         (+[DOMAbstractView _abstractViewWith:WebCore::]):
1238         * bindings/objc/DOMCSS.mm:
1239         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
1240         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
1241         (+[DOMCSSStyleSheet _CSSStyleSheetWith:WebCore::]):
1242         (-[DOMCSSRule _initWithRule:WebCore::]):
1243         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
1244         (-[DOMCSSValue _initWithValue:WebCore::]):
1245         (+[DOMCSSValue _CSSValueWith:WebCore::]):
1246         (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:WebCore::]):
1247         (-[DOMDocument getComputedStyle::]):
1248         (-[DOMDocument getMatchedCSSRules::]):
1249         * bindings/objc/DOMCore.h:
1250         * bindings/objc/DOMEventException.h: Added.
1251         * bindings/objc/DOMEvents.h:
1252         * bindings/objc/DOMEvents.mm:
1253         * bindings/objc/DOMException.h: Added.
1254         * bindings/objc/DOMHTML.mm:
1255         (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
1256         (viewForElement):
1257         (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
1258         (-[DOMHTMLInputElement _selectedRange]):
1259         (-[DOMHTMLInputElement _setAutofilled:]):
1260         * bindings/objc/DOMInternal.h:
1261         * bindings/objc/DOMObject.h:
1262         * bindings/objc/DOMPrivate.h:
1263         * bindings/objc/DOMRange.h:
1264         * bindings/objc/DOMRangeException.h: Added.
1265         * bindings/objc/DOMViews.h:
1266         * bindings/objc/DOMViews.mm: Removed.
1267         * bindings/objc/DOMXPath.h:
1268         * bindings/objc/DOMXPathException.h: Added.
1269         * bindings/scripts/IDLParser.pm:
1270         * dom/Node.idl:
1271
1272 2006-09-18  Brady Eidson  <beidson@apple.com>
1273
1274         Windows build fix
1275
1276         * platform/win/TemporaryLinkStubs.cpp:
1277         (IconDatabase::setIconURLForPageURL):
1278
1279 2006-09-18  David Hyatt  <hyatt@apple.com>
1280
1281         Fix for bug 3969, hr width doesn't update when it clears a float.  This
1282         was also a problem with tables and overflow sections.
1283
1284         Reviewed by Eric
1285
1286         Added fast/block/float/width-update-after-clear.html
1287
1288         * rendering/RenderBlock.cpp:
1289         (WebCore::RenderBlock::collapseMargins):
1290         (WebCore::RenderBlock::clearFloatsIfNeeded):
1291
1292 2006-09-18  Brady Eidson  <beidson@apple.com>
1293
1294         Reviewed by John
1295
1296         http://bugzilla.opendarwin.org/show_bug.cgi?id=10907
1297         REGRESSION: New Icon Loaders don't handle certain non-server-root URLs correctly
1298
1299         * bridge/mac/FrameMac.h: Changed originalRequestURL() to virtual
1300         * bridge/win/FrameWin.h: Added originalRequestURL()
1301         * loader/icon/IconLoader.cpp:
1302         (IconLoader::receivedAllData): Moved the "pageURL to iconURL mapping logic" to Frame::commitIconURLToIconDatabase()
1303         * page/Frame.cpp:
1304         (WebCore::Frame::iconURL): Construct the icon URL from *only* the protocol and host of the frame's url.
1305         (WebCore::Frame::endIfNotLoading): Call commitIconURLToIconDatabase() if we're not kicking off an icon load
1306         (WebCore::Frame::commitIconURLToIconDatabase): Map the completed doc's pageURL to the iconURL
1307         * page/Frame.h: Added pure virtual originalRequestURL()
1308         * platform/win/TemporaryLinkStubs.cpp:
1309         (FrameWin::originalRequestURL): Added
1310
1311 2006-09-18  Rob Buis  <buis@kde.org>
1312
1313         Reviewed by Maciej.
1314
1315         http://bugzilla.opendarwin.org/show_bug.cgi?id=10807
1316         REGRESSION (r16259): Repro crash on manual-tests/svg-repaint-image.svg
1317
1318         Make sure the paint method is not exited without popping
1319         context and transparency layer.
1320
1321         WARNING: NO TEST CASES ADDED OR CHANGED
1322
1323         * kcanvas/RenderSVGImage.cpp:
1324         (WebCore::RenderSVGImage::paint):
1325
1326 2006-09-18  Graham Dennis  <graham.dennis@gmail.com>
1327
1328         Reviewed by Eric.
1329         
1330         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10896
1331         REGRESSION: WebKit can't be built with SVG disabled
1332         
1333         * bindings/scripts/CodeGeneratorObjC.pm:
1334         For each file generated add a #ifdef <something>_SUPPORT / #endif
1335         pair if the idl file has a Conditional extended attribute
1336
1337 2006-09-17  Eric Seidel  <eric@eseidel.com>
1338
1339         Reviewed by ap.
1340         
1341         REGRESSION (r16245): double-clicking on javascript exceptions fails to show source
1342         http://bugzilla.opendarwin.org/show_bug.cgi?id=10813
1343
1344         * bridge/mac/WebCoreFrameBridge.mm:
1345         (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
1346
1347 2006-09-17  Alexey Proskuryakov  <ap@nypop.com>
1348
1349         Reviewed by Hyatt.
1350
1351         http://bugzilla.opendarwin.org/show_bug.cgi?id=10779
1352         REGRESSION: Animated GIF ignores frame intervals and loops infinitely
1353
1354         No test possible.
1355
1356         * platform/Image.cpp:
1357         (WebCore::Image::shouldAnimate): Don't check that there is more than one frame,
1358         maybe the rest just hasn't been loaded yet.
1359         (WebCore::Image::startAnimation): Move the frame count check here - there is no need
1360         to start animating before we get at least two frames.
1361
1362 2006-09-17  Brady Eidson <beidson@apple.com>
1363
1364         Reviewed by Sarge
1365
1366         IconLoader now gracefully handles the condition where there's no document in the frame
1367         (ie. PDFs)
1368
1369         * loader/icon/IconLoader.cpp:
1370         (IconLoader::startLoading):
1371
1372 2006-09-17  David Hyatt  <hyatt@apple.com>
1373
1374         Fix for bug 10899, rework how CSS keywords work to be smarter about
1375         using the correct size when generic families change (e.g., monospace to
1376         serif and vice versa).
1377
1378         Reviewed by aroben
1379
1380         Added fast/text/basic/generic-family-changes.html
1381
1382         * css/cssstyleselector.cpp:
1383         (WebCore::CSSStyleSelector::applyProperty):
1384         (WebCore::CSSStyleSelector::checkForGenericFamilyChange):
1385         (WebCore::CSSStyleSelector::fontSizeForKeyword):
1386         * css/cssstyleselector.h:
1387         * dom/Document.cpp:
1388         (WebCore::Document::recalcStyle):
1389         * platform/FontDescription.h:
1390         (WebCore::FontDescription::FontDescription):
1391         (WebCore::FontDescription::keywordSize):
1392         (WebCore::FontDescription::setKeywordSize):
1393         (WebCore::FontDescription::operator==):
1394
1395 2006-09-17  Alexey Proskuryakov  <ap@nypop.com>
1396
1397         Reviewed by Brady.
1398
1399         http://bugzilla.opendarwin.org/show_bug.cgi?id=10852
1400         REGRESSION: Reproducible crash in XMLHttpRequest::abort()
1401
1402         Test: http/tests/xmlhttprequest/xhr-onunload.html
1403
1404         * xml/xmlhttprequest.cpp:
1405         (WebCore::XMLHttpRequest::send): Check the return value of ResourceLoader::start().
1406
1407         * loader/icon/IconLoader.cpp:
1408         (IconLoader::startLoading): Fix a similar latent bug here.
1409
1410 2006-09-17  Adam Roben  <aroben@apple.com>
1411
1412         Build fix.
1413
1414         * loader/icon/IconDatabase.cpp:
1415
1416 2006-09-17  Anders Carlsson  <acarlsson@apple.com>
1417
1418         Reviewed by Brady.
1419
1420         Add simplifyWhiteSpace and stripWhiteSpace to the String class. 
1421         Change the XSLT Parameter Map to use Strings instead of StringImpls.
1422         General cleanup.
1423
1424         * bindings/js/JSXSLTProcessor.cpp:
1425         (KJS::XSLTProcessorProtoFunc::callAsFunction):
1426         * bindings/js/kjs_events.cpp:
1427         (KJS::JSAbstractEventListener::handleEvent):
1428         * bindings/js/kjs_window.cpp:
1429         (KJS::ScheduledAction::execute):
1430         * css/MediaList.cpp:
1431         (WebCore::MediaList::setMediaText):
1432         * dom/Document.cpp:
1433         (WebCore::Document::processHttpEquiv):
1434         * editing/ApplyStyleCommand.cpp:
1435         (WebCore::StyleChange::init):
1436         * html/HTMLDocument.cpp:
1437         (WebCore::parseDocTypeDeclaration):
1438         * html/HTMLLinkElement.cpp:
1439         (WebCore::HTMLLinkElement::parseMappedAttribute):
1440         * html/HTMLObjectElement.cpp:
1441         (WebCore::HTMLObjectElement::HTMLObjectElement):
1442         (WebCore::HTMLObjectElement::parseMappedAttribute):
1443         (WebCore::HTMLObjectElement::attach):
1444         (WebCore::HTMLObjectElement::setComplete):
1445         (WebCore::HTMLObjectElement::detach):
1446         (WebCore::HTMLObjectElement::recalcStyle):
1447         (WebCore::HTMLObjectElement::childrenChanged):
1448         (WebCore::HTMLObjectElement::isImageType):
1449         * html/HTMLObjectElement.h:
1450         * html/HTMLOptionElement.cpp:
1451         (WebCore::HTMLOptionElement::value):
1452         * html/HTMLSelectElement.cpp:
1453         (WebCore::HTMLSelectElement::appendFormData):
1454         * html/HTMLTokenizer.cpp:
1455         (WebCore::HTMLTokenizer::parseTag):
1456         * ksvg2/svg/SVGColor.cpp:
1457         (WebCore::SVGColor::setRGBColor):
1458         * ksvg2/svg/SVGDescElement.cpp:
1459         (WebCore::SVGDescElement::description):
1460         * platform/PlatformString.h:
1461         * platform/String.cpp:
1462         (WebCore::String::stripWhiteSpace):
1463         (WebCore::String::simplifyWhiteSpace):
1464         * platform/StringImpl.cpp:
1465         (WebCore::isSpace):
1466         (WebCore::parseLength):
1467         (WebCore::StringImpl::stripWhiteSpace):
1468         (WebCore::StringImpl::simplifyWhiteSpace):
1469         (WebCore::StringImpl::toInt):
1470         * platform/StringImpl.h:
1471         * platform/mac/ClipboardMac.mm:
1472         (WebCore::cocoaTypeFromMIMEType):
1473         * rendering/RenderPartObject.cpp:
1474         (WebCore::RenderPartObject::updateWidget):
1475         * xml/XPathFunctions.cpp:
1476         (WebCore::XPath::FunNormalizeSpace::doEvaluate):
1477         * xml/XPathGrammar.y:
1478         * xml/XPathStep.cpp:
1479         (WebCore::XPath::Step::nodeTestMatches):
1480         * xml/XSLStyleSheet.cpp:
1481         (WebCore::XSLStyleSheet::loadChildSheets):
1482         (WebCore::XSLStyleSheet::locateStylesheetSubResource):
1483         * xml/XSLTProcessor.cpp:
1484         (WebCore::xsltParamArrayFromParameterMap):
1485         (WebCore::XSLTProcessor::setParameter):
1486         (WebCore::XSLTProcessor::getParameter):
1487         (WebCore::XSLTProcessor::removeParameter):
1488         * xml/XSLTProcessor.h:
1489         * xml/xmlhttprequest.cpp:
1490         (WebCore::XMLHttpRequest::getStatusText):
1491
1492 2006-09-17  David Hyatt  <hyatt@apple.com>
1493
1494         Fix for bugzilla bugs 10895 and 6336, fieldsets misbehaving when floats
1495         are declared right before the fieldsets.  It turns out fieldsets in other
1496         browsers avoid floats (like overflow:auto/hidden/scroll sections do), so
1497         adding that behavior to fieldset fixes the bug.
1498
1499         Made avoidsFloats virtual and did some refactoring to make tables, flexboxes
1500         and fieldsets all subclass.
1501
1502         Reviewed by anders
1503
1504         Added fast/forms/float-before-fieldset.html
1505
1506         * rendering/RenderFieldset.h:
1507         (WebCore::RenderFieldset::avoidsFloats):
1508         * rendering/RenderFlexibleBox.h:
1509         (WebCore::RenderFlexibleBox::avoidsFloats):
1510         * rendering/RenderObject.cpp:
1511         (WebCore::RenderObject::avoidsFloats):
1512         * rendering/RenderObject.h:
1513         * rendering/RenderTable.h:
1514         (WebCore::RenderTable::avoidsFloats):
1515
1516 2006-09-17  David Hyatt  <hyatt@apple.com>
1517
1518         Fix for bugzilla bug 3240, implement support for the HTML4 "frame" and
1519         "rules" attributes on tables.
1520
1521         Reviewed by bradee-oh
1522
1523         Well-covered by existing layout tests.
1524
1525         * html/HTMLTableCellElement.cpp:
1526         (WebCore::HTMLTableCellElement::additionalAttributeStyleDecl):
1527         * html/HTMLTableColElement.cpp:
1528         (WebCore::HTMLTableColElement::additionalAttributeStyleDecl):
1529         * html/HTMLTableColElement.h:
1530         * html/HTMLTableElement.cpp:
1531         (WebCore::HTMLTableElement::HTMLTableElement):
1532         (WebCore::HTMLTableElement::~HTMLTableElement):
1533         (WebCore::HTMLTableElement::setCaption):
1534         (WebCore::HTMLTableElement::setTHead):
1535         (WebCore::HTMLTableElement::setTFoot):
1536         (WebCore::HTMLTableElement::setTBody):
1537         (WebCore::HTMLTableElement::createTHead):
1538         (WebCore::HTMLTableElement::deleteTHead):
1539         (WebCore::HTMLTableElement::createTFoot):
1540         (WebCore::HTMLTableElement::deleteTFoot):
1541         (WebCore::HTMLTableElement::createCaption):
1542         (WebCore::HTMLTableElement::deleteCaption):
1543         (WebCore::HTMLTableElement::insertRow):
1544         (WebCore::HTMLTableElement::deleteRow):
1545         (WebCore::HTMLTableElement::addChild):
1546         (WebCore::HTMLTableElement::childrenChanged):
1547         (WebCore::HTMLTableElement::mapToEntry):
1548         (WebCore::HTMLTableElement::parseMappedAttribute):
1549         (WebCore::HTMLTableElement::additionalAttributeStyleDecl):
1550         (WebCore::HTMLTableElement::getSharedCellDecl):
1551         (WebCore::HTMLTableElement::getSharedGroupDecl):
1552         (WebCore::HTMLTableElement::attach):
1553         * html/HTMLTableElement.h:
1554         (WebCore::HTMLTableElement::caption):
1555         (WebCore::HTMLTableElement::tHead):
1556         (WebCore::HTMLTableElement::tFoot):
1557         (WebCore::HTMLTableElement::):
1558         * html/HTMLTableRowElement.h:
1559         * html/HTMLTableSectionElement.cpp:
1560         (WebCore::HTMLTableSectionElement::additionalAttributeStyleDecl):
1561         * html/HTMLTableSectionElement.h:
1562
1563 2006-09-17  David Hyatt  <hyatt@apple.com>
1564
1565         Fix for bugzilla bug 4192, font size wrong for <tt> elements that
1566         specify their own new font-family list.  Make sure to always
1567         reset the generic family along with the family list when mapping in
1568         new font-family values.
1569
1570         Reviewed by bradee-oh
1571
1572         fast/text/basic/generic-family-reset.html
1573
1574         * css/cssstyleselector.cpp:
1575         (WebCore::CSSStyleSelector::applyProperty):
1576
1577 2006-09-16  Brady Eidson <beidson@apple.com>
1578
1579         Reviewed by Hyatt
1580
1581         Pruning code relating to WebKit's icon loader
1582
1583         * bridge/mac/WebCoreIconDatabaseBridge.h:
1584         * bridge/mac/WebCoreIconDatabaseBridge.mm:
1585         * loader/icon/IconDatabase.h:
1586         * page/Frame.cpp:
1587         (WebCore::Frame::endIfNotLoading): Moved a FIXME in from WebKit's IconLoader to 
1588         its new home
1589
1590 2006-09-16  Sam Weinig  <sam.weinig@gmail.com>
1591
1592         Reviewed by Tim H.
1593
1594         Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10885
1595         Auto-generate DOMHTMLDocument for the Objective-C bindings
1596
1597         * DerivedSources.make:
1598         * WebCore.xcodeproj/project.pbxproj:
1599         * bindings/objc/DOMExtensions.h:
1600         * bindings/objc/DOMHTML.mm:
1601         (-[DOMHTMLDocument createDocumentFragmentWithText:]):
1602         * bindings/objc/DOMHTMLDocument.h: Removed.
1603         * bindings/objc/DOMHTMLDocument.mm: Removed.
1604         * bindings/objc/PublicDOMInterfaces.h:
1605         * bindings/scripts/CodeGeneratorObjC.pm:
1606         * html/HTMLDocument.idl:
1607         * platform/DeprecatedString.h:
1608         (WebCore::DeprecatedString::operator NSString*):
1609
1610 2006-09-16  Rob Buis  <buis@kde.org>
1611
1612         Reviewed by Eric.
1613
1614         http://bugzilla.opendarwin.org/show_bug.cgi?id=10866
1615         Code in kcanvas/ should not use Private
1616
1617         Remove Private classes and tweak coding style.
1618
1619         WARNING: NO TEST CASES ADDED OR CHANGED
1620
1621         * kcanvas/RenderPath.cpp:
1622         (WebCore::RenderPath::RenderPath):
1623         (WebCore::RenderPath::~RenderPath):
1624         (WebCore::RenderPath::localTransform):
1625         (WebCore::RenderPath::setLocalTransform):
1626         (WebCore::RenderPath::fillContains):
1627         (WebCore::RenderPath::relativeBBox):
1628         (WebCore::RenderPath::setPath):
1629         (WebCore::RenderPath::path):
1630         (WebCore::RenderPath::layout):
1631         * kcanvas/RenderPath.h:
1632         * kcanvas/RenderSVGContainer.cpp:
1633         (WebCore::RenderSVGContainer::RenderSVGContainer):
1634         (WebCore::RenderSVGContainer::~RenderSVGContainer):
1635         (WebCore::RenderSVGContainer::drawsContents):
1636         (WebCore::RenderSVGContainer::setDrawsContents):
1637         (WebCore::RenderSVGContainer::localTransform):
1638         (WebCore::RenderSVGContainer::setLocalTransform):
1639         (WebCore::RenderSVGContainer::layout):
1640         (WebCore::RenderSVGContainer::paint):
1641         (WebCore::RenderSVGContainer::setViewport):
1642         (WebCore::RenderSVGContainer::viewport):
1643         (WebCore::RenderSVGContainer::setViewBox):
1644         (WebCore::RenderSVGContainer::viewBox):
1645         (WebCore::RenderSVGContainer::setAlign):
1646         (WebCore::RenderSVGContainer::align):
1647         (WebCore::RenderSVGContainer::fillContains):
1648         (WebCore::RenderSVGContainer::strokeContains):
1649         (WebCore::RenderSVGContainer::setSlice):
1650         (WebCore::RenderSVGContainer::slice):
1651         * kcanvas/RenderSVGContainer.h:
1652         * kcanvas/device/KRenderingFillPainter.cpp:
1653         (WebCore::KRenderingFillPainter::KRenderingFillPainter):
1654         (WebCore::KRenderingFillPainter::~KRenderingFillPainter):
1655         (WebCore::KRenderingFillPainter::fillRule):
1656         (WebCore::KRenderingFillPainter::setFillRule):
1657         (WebCore::KRenderingFillPainter::opacity):
1658         (WebCore::KRenderingFillPainter::setOpacity):
1659         * kcanvas/device/KRenderingFillPainter.h:
1660         * kcanvas/device/KRenderingPaintServerGradient.cpp:
1661         (WebCore::KRenderingPaintServerGradient::KRenderingPaintServerGradient):
1662         (WebCore::KRenderingPaintServerGradient::~KRenderingPaintServerGradient):
1663         (WebCore::KRenderingPaintServerGradient::gradientStops):
1664         (WebCore::KRenderingPaintServerGradient::setGradientStops):
1665         (WebCore::KRenderingPaintServerGradient::spreadMethod):
1666         (WebCore::KRenderingPaintServerGradient::setGradientSpreadMethod):
1667         (WebCore::KRenderingPaintServerGradient::boundingBoxMode):
1668         (WebCore::KRenderingPaintServerGradient::setBoundingBoxMode):
1669         (WebCore::KRenderingPaintServerGradient::gradientTransform):
1670         (WebCore::KRenderingPaintServerGradient::setGradientTransform):
1671         (WebCore::KRenderingPaintServerLinearGradient::KRenderingPaintServerLinearGradient):
1672         (WebCore::KRenderingPaintServerLinearGradient::~KRenderingPaintServerLinearGradient):
1673         (WebCore::KRenderingPaintServerLinearGradient::gradientStart):
1674         (WebCore::KRenderingPaintServerLinearGradient::setGradientStart):
1675         (WebCore::KRenderingPaintServerLinearGradient::gradientEnd):
1676         (WebCore::KRenderingPaintServerLinearGradient::setGradientEnd):
1677         (WebCore::KRenderingPaintServerRadialGradient::KRenderingPaintServerRadialGradient):
1678         (WebCore::KRenderingPaintServerRadialGradient::~KRenderingPaintServerRadialGradient):
1679         (WebCore::KRenderingPaintServerRadialGradient::gradientCenter):
1680         (WebCore::KRenderingPaintServerRadialGradient::setGradientCenter):
1681         (WebCore::KRenderingPaintServerRadialGradient::gradientFocal):
1682         (WebCore::KRenderingPaintServerRadialGradient::setGradientFocal):
1683         (WebCore::KRenderingPaintServerRadialGradient::gradientRadius):
1684         (WebCore::KRenderingPaintServerRadialGradient::setGradientRadius):
1685         (WebCore::KRenderingPaintServerGradient::listener):
1686         (WebCore::KRenderingPaintServerGradient::setListener):
1687         * kcanvas/device/KRenderingPaintServerGradient.h:
1688         * kcanvas/device/KRenderingPaintServerPattern.cpp:
1689         (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
1690         (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
1691         (WebCore::KRenderingPaintServerPattern::setBbox):
1692         (WebCore::KRenderingPaintServerPattern::bbox):
1693         (WebCore::KRenderingPaintServerPattern::boundingBoxMode):
1694         (WebCore::KRenderingPaintServerPattern::setBoundingBoxMode):
1695         (WebCore::KRenderingPaintServerPattern::tile):
1696         (WebCore::KRenderingPaintServerPattern::setTile):
1697         (WebCore::KRenderingPaintServerPattern::patternTransform):
1698         (WebCore::KRenderingPaintServerPattern::setPatternTransform):
1699         (WebCore::KRenderingPaintServerPattern::listener):
1700         (WebCore::KRenderingPaintServerPattern::setListener):
1701         * kcanvas/device/KRenderingPaintServerPattern.h:
1702         * kcanvas/device/KRenderingPaintServerSolid.cpp:
1703         (WebCore::KRenderingPaintServerSolid::KRenderingPaintServerSolid):
1704         (WebCore::KRenderingPaintServerSolid::~KRenderingPaintServerSolid):
1705         (WebCore::KRenderingPaintServerSolid::color):
1706         (WebCore::KRenderingPaintServerSolid::setColor):
1707         * kcanvas/device/KRenderingPaintServerSolid.h:
1708         * kcanvas/device/KRenderingStrokePainter.cpp:
1709         (WebCore::KRenderingStrokePainter::KRenderingStrokePainter):
1710         (WebCore::KRenderingStrokePainter::~KRenderingStrokePainter):
1711         (WebCore::KRenderingStrokePainter::strokeWidth):
1712         (WebCore::KRenderingStrokePainter::setStrokeWidth):
1713         (WebCore::KRenderingStrokePainter::strokeMiterLimit):
1714         (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
1715         (WebCore::KRenderingStrokePainter::strokeCapStyle):
1716         (WebCore::KRenderingStrokePainter::setStrokeCapStyle):
1717         (WebCore::KRenderingStrokePainter::strokeJoinStyle):
1718         (WebCore::KRenderingStrokePainter::setStrokeJoinStyle):
1719         (WebCore::KRenderingStrokePainter::dashOffset):
1720         (WebCore::KRenderingStrokePainter::setDashOffset):
1721         (WebCore::KRenderingStrokePainter::dashArray):
1722         (WebCore::KRenderingStrokePainter::setDashArray):
1723         (WebCore::KRenderingStrokePainter::opacity):
1724         (WebCore::KRenderingStrokePainter::setOpacity):
1725         (WebCore::KRenderingStrokePainter::dirty):
1726         (WebCore::KRenderingStrokePainter::setDirty):
1727         * kcanvas/device/KRenderingStrokePainter.h:
1728
1729 2006-09-16  Mark Rowe  <opendarwin.org@bdash.net.nz>
1730
1731         Reviewed by Anders.
1732
1733         http://bugzilla.opendarwin.org/show_bug.cgi?id=10887
1734         Fix build error
1735
1736         * bindings/objc/DOMPrivate.h: Remove reference to DOMEventPrivate.h.
1737
1738 2006-09-16  Sam Weinig  <sam.weinig@gmail.com>
1739
1740         Reviewed by Anders.
1741
1742         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10886
1743         REGRESSION (r16387): Reproducible crash when mousing over HTML document
1744
1745         - Special case method [DOMNode ownerDocument] to call document() instead
1746           or ownerDocument() to return to the old behavior. 
1747
1748         * WebCore.xcodeproj/project.pbxproj:
1749         * bindings/scripts/CodeGeneratorObjC.pm:
1750
1751 2006-09-15  Brady Eidson  <beidson@apple.com>
1752
1753         Reviewed by Tim Hatcher
1754
1755         <rdar://problem/4730811> - New IconDatabase needs to attempt to create its path.
1756         Otherwise new installs and new user accounts won't have any icons because the icon.db cannot be created
1757
1758         * loader/icon/IconDatabase.cpp: Removed a now obsolete FIXME
1759         (WebCore::makeAllDirectories): Added - candidate to be in a header for "platform neutral file utilities"
1760         (WebCore::IconDatabase::open): Make sure the directory exists
1761
1762 2006-09-15  Timothy Hatcher  <timothy@apple.com>
1763
1764         Reviewed by Brady.
1765
1766         Make new style ObjC methods public API.
1767
1768         * WebCore.xcodeproj/project.pbxproj:
1769         * bindings/objc/DOMPrivate.h:
1770         * bindings/objc/PublicDOMInterfaces.h:
1771
1772 2006-09-15  Sam Weinig  <sam.weinig@gmail.com>
1773
1774         Reviewed by Tim H.
1775
1776         Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10870
1777         Auto-generate DOMNode for the Objective-C bindings
1778
1779         * DerivedSources.make:
1780         * WebCore.xcodeproj/project.pbxproj:
1781         * bindings/objc/DOM.mm:
1782         (-[DOMNode boundingBox]):
1783         (-[DOMNode lineBoxRects]):
1784         * bindings/objc/DOMEvents.h:
1785         * bindings/objc/DOMExtensions.h:
1786         * bindings/objc/DOMNode.h: Removed.
1787         * bindings/objc/DOMNode.mm: Removed.
1788         * bindings/objc/PublicDOMInterfaces.h:
1789         * bindings/scripts/CodeGeneratorObjC.pm:
1790         * dom/Node.idl:
1791
1792 2006-09-15  Timothy Hatcher  <timothy@apple.com>
1793
1794         Reviewed by Justin.
1795
1796         Removed alter selection logic from WebCoreFrameBridge and moved to SelectionController.
1797
1798         * bridge/mac/WebCoreFrameBridge.h:
1799         * bridge/mac/WebCoreFrameBridge.mm:
1800         (-[WebCoreFrameBridge centerSelectionInVisibleArea]):
1801         (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
1802         (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
1803         (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
1804         (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
1805         (-[WebCoreFrameBridge replaceMarkedTextWithText:]):
1806         (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
1807         (-[WebCoreFrameBridge increaseSelectionListLevel]):
1808         (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
1809         (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
1810         (-[WebCoreFrameBridge decreaseSelectionListLevel]):
1811         (-[WebCoreFrameBridge insertLineBreak]):
1812         (-[WebCoreFrameBridge insertParagraphSeparator]):
1813         (-[WebCoreFrameBridge insertParagraphSeparatorInQuotedContent]):
1814         (-[WebCoreFrameBridge insertText:selectInsertedText:]):
1815         (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
1816         (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
1817         (createMouseEventFromDraggingInfo):
1818         * editing/SelectionController.cpp:
1819         (WebCore::SelectionController::moveTo):
1820         (WebCore::SelectionController::setSelection):
1821         (WebCore::SelectionController::modify):
1822         (WebCore::SelectionController::setBase):
1823         (WebCore::SelectionController::setExtent):
1824         * editing/SelectionController.h:
1825         * page/Frame.cpp:
1826         (WebCore::Frame::revealSelection):
1827         (WebCore::Frame::revealCaret):
1828         * page/Frame.h:
1829
1830 2006-09-15  Brady Eidson  <beidson@apple.com>
1831
1832         Reviewed by Anders
1833
1834         Added the ability to get a mutable char* from a CString, which will copy the internal
1835         buffer if the ref count is greater than 1 so your mutable char* won't affect any other
1836         referrer of that buffer.
1837
1838         * platform/CString.cpp:
1839         (WebCore::CString::mutableData):
1840         (WebCore::CString::copyBufferIfNeeded):
1841         * platform/CString.h:
1842
1843 2006-09-15  Justin Garcia  <justin.garcia@apple.com>
1844
1845         Reviewed by harrison
1846         
1847         <rdar://problem/4674869>
1848         REGRESSION: selecting text to write over results in cursor jumping to middle of next line
1849
1850         * editing/SelectionController.cpp:
1851         (WebCore::SelectionController::modify): Added lineBoundary to test fix.
1852         * editing/visible_units.cpp:
1853         (WebCore::endOfLine): If the last box on the line is a lineBreak, return the
1854         position before it, not after it.
1855
1856 2006-09-15  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1857
1858         Reviewed by Adam.
1859
1860         http://bugzilla.opendarwin.org/show_bug.cgi?id=10864
1861         Bug 10864: Linux\GDK build fixes
1862
1863         * Projects/gdk/webcore-gdk.bkl:
1864         * WebCoreSources.bkl:
1865         * platform/gdk/FontCacheGdk.cpp:
1866         * platform/gdk/FontDataGdk.cpp:
1867         (WebCore::FontData::platformInit):
1868         * platform/gdk/FontGdk.cpp:
1869         (WebCore::Font::drawGlyphs):
1870         * platform/gdk/FrameGdk.cpp:
1871         (WebCore::FrameGdk::handleGdkEvent):
1872         * platform/gdk/FrameGdk.h:
1873         * platform/gdk/ImageGdk.cpp: Added.
1874         (WebCore::Image::initPlatformData):
1875         (WebCore::Image::invalidatePlatformData):
1876         (WebCore::Image::loadPlatformResource):
1877         (WebCore::Image::supportsType):
1878         * platform/gdk/RenderPopupMenuGdk.cpp:
1879         (WebCore::RenderPopupMenuGdk::hidePopup):
1880         * platform/gdk/RenderPopupMenuGdk.h:
1881         * platform/gdk/ScreenGdk.cpp:
1882         (WebCore::drawableForPage):
1883         (WebCore::screenRect):
1884         (WebCore::screenDepth):
1885         (WebCore::usableScreenRect):
1886         (WebCore::scaleFactor):
1887         * platform/gdk/SystemTimeLinux.cpp:
1888         (WebCore::currentTime):
1889         * platform/gdk/TemporaryLinkStubs.cpp:
1890         (FrameGdk::bindingRootObject):
1891         (FrameGdk::markMisspellings):
1892         (WebCore::screenDepthPerComponent):
1893         (WebCore::screenIsMonochrome):
1894         (WebCore::fileButtonChooseFileLabel):
1895         (WebCore::fileButtonNoFileSelectedLabel):
1896         (FrameGdk::shouldChangeSelection):
1897         (FrameGdk::respondToChangedSelection):
1898         (FrameGdk::respondToChangedContents):
1899         (Path::contains):
1900         (PlatformScrollBar::PlatformScrollBar):
1901         (PlatformScrollBar::~PlatformScrollBar):
1902         (PlatformScrollBar::width):
1903         (PlatformScrollBar::height):
1904         (PlatformScrollBar::setEnabled):
1905         (PlatformScrollBar::paint):
1906         (PlatformScrollBar::setScrollBarValue):
1907         (PlatformScrollBar::setKnobProportion):
1908         (PlatformScrollBar::setRect):
1909         (ScrollBar::ScrollBar):
1910         (FileChooser::FileChooser):
1911         (FileChooser::~FileChooser):
1912         (FileChooser::openFileChooser):
1913         (FileChooser::basenameForWidth):
1914         (FileChooser::uploadControlDetaching):
1915         (FileChooser::chooseFile):
1916         (Icon::Icon):
1917         (Icon::~Icon):
1918         (Icon::newIconForFile):
1919         (Icon::paint):
1920         (IconLoader::stopLoading):
1921         (IconLoader::startLoading):
1922         (IconLoader::createForFrame):
1923         (IconDatabase::isIconExpiredForIconURL):
1924         (IconDatabase::hasEntryForIconURL):
1925         (IconDatabase::sharedIconDatabase):
1926         * platform/gdk/WidgetGdk.cpp:
1927         * webcore-base.bkl:
1928
1929 2006-09-15  Nikolas Zimmermann  <zimmermann@kde.org>
1930
1931         Reviewed by Eric.
1932
1933         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10835
1934         Fix svg memory leaks.
1935
1936         Reworked SVGList to deal with RefPtr's for ptr types
1937         which makes manual refcounting unnecessary, and is much safer.
1938
1939         Removing all virtual functions (nullItem) from SVGList, and
1940         also remove SVGListBase. Switch to a similar concept like
1941         Vector/VectorTraits (see new file SVGListTraits.h).
1942
1943         Credits go to Eric/Maciej for the inspiration.
1944
1945         * CMakeLists.txt: Add SVGListTraits.cpp to build
1946         * WebCore.xcodeproj/project.pbxproj: Ditto.
1947         * bindings/scripts/CodeGeneratorJS.pm: Generator changes for SVGTransform/PathSeg/LengthList (now RefPtr based)
1948         * kcanvas/RenderSVGText.cpp: Add some get() methods, as SVGLengthList is RefPtr based now.
1949         (WebCore::RenderSVGText::translationForAttributes):
1950         * ksvg2/svg/SVGAnimateTransformElement.cpp: Add some get() methods, as SVGTransformList is RefPtr based now.
1951         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
1952         * ksvg2/svg/SVGElementInstanceList.cpp: Be RefPtr based.
1953         (WebCore::SVGElementInstanceList::SVGElementInstanceList):
1954         * ksvg2/svg/SVGElementInstanceList.h:
1955         * ksvg2/svg/SVGLengthList.cpp: Ditto.
1956         (WebCore::SVGLengthList::SVGLengthList):
1957         * ksvg2/svg/SVGLengthList.h: Ditto.
1958         * ksvg2/svg/SVGList.h: Rewrote, as described above.
1959         (WebCore::SVGListTypeOperations::nullItem):
1960         (WebCore::SVGList::SVGList):
1961         (WebCore::SVGList::~SVGList):
1962         (WebCore::SVGList::clear):
1963         (WebCore::SVGList::getFirst):
1964         (WebCore::SVGList::getLast):
1965         (WebCore::SVGList::getItem):
1966         (WebCore::SVGList::replaceItem):
1967         (WebCore::SVGList::removeItem):
1968         * ksvg2/svg/SVGListTraits.cpp: Added.
1969         * ksvg2/svg/SVGListTraits.h: Added.
1970         (WebCore::):
1971         * ksvg2/svg/SVGPathElement.cpp: Add some get() methods, as SVGPathSegList is RefPtr based now.
1972         (WebCore::SVGPathElement::toPathData):
1973         * ksvg2/svg/SVGPathSegList.cpp: Be RefPtr based.
1974         (WebCore::SVGPathSegList::SVGPathSegList):
1975         * ksvg2/svg/SVGPathSegList.h: Ditto.
1976         * ksvg2/svg/SVGTransform.cpp: Style cleanup.
1977         (SVGTransform::SVGTransform):
1978         * ksvg2/svg/SVGTransformList.cpp: Be RefPtr based.
1979         (SVGTransformList::SVGTransformList):
1980         (SVGTransformList::createSVGTransformFromMatrix):
1981         (SVGTransformList::consolidate):
1982         * ksvg2/svg/SVGTransformList.h: Ditto.
1983         * ksvg2/svg/SVGTransformable.cpp: Fix RefPtr usage of SVGTransform.
1984         (SVGTransformable::parseTransformAttribute):
1985
1986 2006-09-15  Nikolas Zimmermann  <zimmermann@kde.org>
1987
1988         Reviewed by eseidel.  Landed by eseidel.
1989
1990         Fix build on Qt/Linux and implement Frame::addMessageToConsole to
1991         be able to see javascript errors for instance.
1992
1993         * CMakeLists.txt:
1994         * platform/qt/FrameQt.h:
1995         * platform/qt/FrameQt.cpp: Implement addMessageToConsole.
1996         (WebCore::FrameQt::bindingRootObject):
1997         * platform/qt/TemporaryLinkStubs.cp
1998         (WebCore::IconDatabase::hasEntryForIconURL):
1999         (WebCore::IconDatabase::sharedIconDatabase):
2000
2001 2006-09-15  Sam Weinig  <sam.weinig@gmail.com>
2002
2003         Reviewed by Tim H.
2004
2005         Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10869
2006         Auto-generate the internal methods for the Objective-C bindings
2007
2008         - Auto-generates the internal method (ie. the _fooBar and _fooBarWith methods)
2009           implementations where standard.  For cases where a custom implementation was
2010           needed, added a [ObjCNoInternal] extended attribute to the corresponding IDL.
2011
2012         - Some general cleanup of some of the non-generated bindings, to bring them in-
2013           line with what the generated bindings look like.
2014
2015         * bindings/objc/DOM.mm:
2016         (-[DOMNode description]):
2017         * bindings/objc/DOMCSS.mm:
2018         (-[DOMCSSPrimitiveValue WebCore::]):
2019         (-[DOMDocument getComputedStyle::]):
2020         (-[DOMDocument getMatchedCSSRules::]):
2021         * bindings/objc/DOMEvents.mm:
2022         (-[DOMEvent WebCore::]):
2023         * bindings/objc/DOMHTML.mm:
2024         * bindings/objc/DOMHTMLDocument.mm:
2025         (-[DOMHTMLDocument title]):
2026         (-[DOMHTMLDocument setTitle:]):
2027         (-[DOMHTMLDocument referrer]):
2028         (-[DOMHTMLDocument domain]):
2029         (-[DOMHTMLDocument URL]):
2030         (-[DOMHTMLDocument body]):
2031         (-[DOMHTMLDocument setBody:]):
2032         (-[DOMHTMLDocument images]):
2033         (-[DOMHTMLDocument applets]):
2034         (-[DOMHTMLDocument links]):
2035         (-[DOMHTMLDocument forms]):
2036         (-[DOMHTMLDocument anchors]):
2037         (-[DOMHTMLDocument cookie]):
2038         (-[DOMHTMLDocument setCookie:]):
2039         (-[DOMHTMLDocument open]):
2040         (-[DOMHTMLDocument close]):
2041         (-[DOMHTMLDocument write:]):
2042         (-[DOMHTMLDocument writeln:]):
2043         (-[DOMHTMLDocument getElementById:]):
2044         (-[DOMHTMLDocument getElementsByName:]):
2045         (-[DOMHTMLDocument WebCore::]):
2046         (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
2047         * bindings/objc/DOMHTMLOptionElement.mm:
2048         (-[DOMHTMLOptionElement form]):
2049         (-[DOMHTMLOptionElement defaultSelected]):
2050         (-[DOMHTMLOptionElement setDefaultSelected:]):
2051         (-[DOMHTMLOptionElement text]):
2052         (-[DOMHTMLOptionElement index]):
2053         (-[DOMHTMLOptionElement disabled]):
2054         (-[DOMHTMLOptionElement setDisabled:]):
2055         (-[DOMHTMLOptionElement label]):
2056         (-[DOMHTMLOptionElement setLabel:]):
2057         (-[DOMHTMLOptionElement selected]):
2058         (-[DOMHTMLOptionElement setSelected:]):
2059         (-[DOMHTMLOptionElement value]):
2060         (-[DOMHTMLOptionElement setValue:]):
2061         (-[DOMHTMLOptionElement WebCore::]):
2062         (+[DOMHTMLOptionElement _HTMLOptionElementWith:WebCore::]):
2063         * bindings/objc/DOMInternal.h:
2064         * bindings/objc/DOMNode.mm:
2065         (-[DOMNode dealloc]):
2066         (-[DOMNode finalize]):
2067         (-[DOMNode nodeName]):
2068         (-[DOMNode nodeValue]):
2069         (-[DOMNode setNodeValue:]):
2070         (-[DOMNode nodeType]):
2071         (-[DOMNode parentNode]):
2072         (-[DOMNode childNodes]):
2073         (-[DOMNode firstChild]):
2074         (-[DOMNode lastChild]):
2075         (-[DOMNode previousSibling]):
2076         (-[DOMNode nextSibling]):
2077         (-[DOMNode attributes]):
2078         (-[DOMNode ownerDocument]):
2079         (-[DOMNode insertBefore::]):
2080         (-[DOMNode replaceChild::]):
2081         (-[DOMNode removeChild:]):
2082         (-[DOMNode appendChild:]):
2083         (-[DOMNode hasChildNodes]):
2084         (-[DOMNode cloneNode:]):
2085         (-[DOMNode normalize]):
2086         (-[DOMNode isSupported::]):
2087         (-[DOMNode namespaceURI]):
2088         (-[DOMNode prefix]):
2089         (-[DOMNode setPrefix:]):
2090         (-[DOMNode localName]):
2091         (-[DOMNode hasAttributes]):
2092         (-[DOMNode isSameNode:]):
2093         (-[DOMNode isEqualNode:]):
2094         (-[DOMNode isDefaultNamespace:]):
2095         (-[DOMNode lookupPrefix:]):
2096         (-[DOMNode lookupNamespaceURI:]):
2097         (-[DOMNode textContent]):
2098         (-[DOMNode setTextContent:]):
2099         (-[DOMNode boundingBox]):
2100         (-[DOMNode lineBoxRects]):
2101         * bindings/objc/DOMObject.mm:
2102         (-[DOMObject _init]):
2103         * bindings/objc/DOMXPath.mm:
2104         (-[DOMNativeXPathNSResolver dealloc]):
2105         (-[DOMNativeXPathNSResolver finalize]):
2106         (-[DOMNativeXPathNSResolver WebCore::]):
2107         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
2108         (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
2109         (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
2110         * bindings/scripts/CodeGeneratorObjC.pm:
2111         * bridge/mac/WebCoreFrameBridge.mm:
2112         (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
2113         (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
2114         * css/CSSCharsetRule.idl:
2115         * css/CSSFontFaceRule.idl:
2116         * css/CSSImportRule.idl:
2117         * css/CSSMediaRule.idl:
2118         * css/CSSPageRule.idl:
2119         * css/CSSPrimitiveValue.idl:
2120         * css/CSSRule.idl:
2121         * css/CSSStyleRule.idl:
2122         * css/CSSStyleSheet.idl:
2123         * css/CSSUnknownRule.idl:
2124         * css/CSSValue.idl:
2125         * css/CSSValueList.idl:
2126         * css/StyleSheet.idl:
2127         * dom/Event.idl:
2128         * dom/KeyboardEvent.idl:
2129         * dom/MouseEvent.idl:
2130         * dom/MutationEvent.idl:
2131         * dom/NodeIterator.idl:
2132         * dom/OverflowEvent.idl:
2133         * dom/TreeWalker.idl:
2134         * dom/UIEvent.idl:
2135         * dom/WheelEvent.idl:
2136
2137 2006-09-15  Adam Roben  <aroben@apple.com>
2138
2139         Reviewed by timothy.
2140
2141         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10865
2142         New file upload control should match the width of the old one
2143
2144         Make width of new file upload control match the old one as closely as
2145         possible.
2146
2147         * rendering/RenderFileUploadControl.cpp:
2148
2149 2006-09-15  Timothy Hatcher  <timothy@apple.com>
2150
2151         Reviewed by Eric.
2152
2153         Remove the SVG IDL files from the Copy Resources phase.
2154
2155         * WebCore.xcodeproj/project.pbxproj:
2156
2157 2006-09-15  Brady Eidson  <beidson@apple.com>
2158
2159         Reviewed by Eric Siedel
2160
2161         Dumped the use of CGColorRef and directly use the floating point data from
2162         WebCore::Color
2163
2164         This fixes the performance regression found between 16285 and 16286
2165
2166         * platform/mac/FontMac.mm:
2167         (WebCore::Font::drawComplexText):
2168         (WebCore::Font::drawGlyphs):
2169
2170 2006-09-14  Mark Rowe  <opendarwin.org@bdash.net.nz>
2171
2172         Reviewed by Adam.
2173
2174         http://bugzilla.opendarwin.org/show_bug.cgi?id=10838
2175         Bug 10838: REGRESSION: Leaking of WebScriptObjectPrivate
2176
2177         FrameMac relies on its cleanupPluginObjects being called to perform cleanup.  The virtual
2178         Frame::cleanupPluginObjects method is called from Frame's destructor, which results
2179         in Frame::cleanupPluginObjects being called rather than FrameMac::cleanupPluginObjects.
2180
2181         * bridge/mac/FrameMac.mm:
2182         (WebCore::FrameMac::~FrameMac): Call cancelAndClear to ensure that FrameMac::cleanupPluginObjects
2183         will be called from Frame::clear
2184         * page/Frame.cpp:
2185         (WebCore::Frame::~Frame): Use cancelAndClear.
2186         (WebCore::Frame::cancelAndClear): Move cancellation and clearing into a separate method that
2187         FrameMac can use.
2188         * page/Frame.h:
2189
2190 2006-09-14  Brady Eidson  <beidson@apple.com>
2191
2192         Reviewed by Maciej's rubber stamp
2193
2194         Exact same fix I just made, but in the other method I horked up
2195         Also added a reference to the bugzilla in comments
2196
2197         * page/Frame.cpp:
2198         (WebCore::Frame::endIfNotLoading):
2199         (WebCore::Frame::stop):
2200
2201 2006-09-14  Brady Eidson  <beidson@apple.com>
2202
2203         Reviewed by Maciej
2204
2205         Fixed a bad iFrame crash, resolving some of the layout test badness
2206
2207         * page/Frame.cpp:
2208         (WebCore::Frame::endIfNotLoading):
2209         - Added a RefPtr to protect the frame itself to prevent its destruction during this method
2210
2211 2006-09-14  Justin Garcia  <justin.garcia@apple.com>
2212
2213         Reviewed by harrison
2214         
2215         <rdar://problem/4655880> Up/Down arrows skip over To Do
2216
2217         * bridge/mac/WebCoreFrameBridge.mm:
2218         (-[WebCoreFrameBridge canDeleteRange:]): Added a FIXME.
2219         * dom/Node.cpp: Removed the unused inSameRootEditableElement.
2220         * dom/Node.h:
2221         * editing/SelectionController.cpp:
2222         (WebCore::SelectionController::modify): Added documentboundary to granularities in order test a fix.
2223         * editing/visible_units.cpp:
2224         (WebCore::previousLinePosition): Use highestEditableRoot so that this function can move from
2225         editable content into editable content that's embedded in non-editable content.
2226         (WebCore::nextLinePosition): Ditto.
2227         (WebCore::startOfEditableContent): Renamed from startOfEditableRoot and use highestEditableRoot.
2228         This is the behavior that callers desire.  This fixes Command + Up/Down.
2229         (WebCore::endOfEditableContent): Ditto.
2230         * editing/visible_units.h:
2231
2232 2006-09-14  Karthik Kumar  <karthikkumar@gmail.com>
2233
2234         Reviewed by timothy. Landed by aroben.
2235
2236         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10856
2237         Windows build fixes after r16360
2238
2239         * WebCore.vcproj/WebCore/WebCore.vcproj: Add loader\icon to
2240         AdditionalIncludeDirectories
2241         * platform/win/TemporaryLinkStubs.cpp: Add link stubs for IconLoader,
2242         IconDatabase
2243         (IconLoader::stopLoading):
2244         (IconLoader::startLoading):
2245         (IconLoader::createForFrame):
2246         (IconDatabase::isIconExpiredForIconURL):
2247         (IconDatabase::hasEntryForIconURL):
2248         (IconDatabase::sharedIconDatabase):
2249
2250 2006-09-14  Brady Eidson  <beidson@apple.com>
2251
2252         Part of a build fix for Windows - rest will be working out a mess of temporary link stubs
2253
2254         * loader/icon/IconLoader.cpp:
2255         (IconLoader::receivedAllData):
2256         * page/Frame.cpp:
2257         * page/FramePrivate.h:
2258
2259 2006-09-14  Graham Dennis  <graham.dennis@gmail.com>
2260
2261         Reviewed by Justin Garcia.
2262
2263         - http://bugzilla.opendarwin.org/show_bug.cgi?id=10726
2264           Crash in ApplyStyleCommand::applyRelativeFontStyleChange
2265
2266         * editing/ApplyStyleCommand.cpp:
2267         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Prevent a crash by
2268         makeing sure that the 'beyondEnd' node is after the start node.
2269
2270 2006-09-14  MorganL  <morlmor@yahoo.com>
2271
2272         Reviewed by Brady.
2273
2274         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10845
2275         Various bugs/crashes in ResourceLoaderWin with local files.
2276
2277         * platform/ResourceLoaderInternal.h:
2278         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2279         * platform/win/ResourceLoaderWin.cpp:
2280         (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
2281         (WebCore::ResourceLoader::fileLoadTimer):
2282
2283 2006-09-13  Brady Eidson <beidson@apple.com>
2284
2285         Reviewed by Maciej
2286
2287         Icon loads now take place in WebCore
2288
2289         * WebCore.xcodeproj/project.pbxproj:
2290         * bridge/BrowserExtension.h:
2291         * bridge/mac/BrowserExtensionMac.h:
2292         * bridge/mac/BrowserExtensionMac.mm:
2293         - Moved enforcement of a Mozilla Favicon extension elsewhere
2294         
2295         * bridge/mac/FrameMac.h: 
2296         * bridge/mac/FrameMac.mm: 
2297         (WebCore::FrameMac::originalRequestURL):
2298         - Added accessor to "original request URL"
2299         
2300         * bridge/mac/WebCoreFrameBridge.h: 
2301         - Removed methods to set the iconURL as all loading is now done in WebCore
2302         - Added call throughs to notify WebKit an Icon is done loading, and a to get the original request URL
2303         
2304         * html/HTMLLinkElement.cpp: 
2305         (WebCore::HTMLLinkElement::process):
2306         - Moved enforcement of a Mozilla Favicon extension elsewhere
2307         
2308         * loader/icon/IconDatabase.cpp:
2309         (WebCore::IconDatabase::setIconURLForPageURL):
2310         - Changed an ASSERT to correctly handle a sketchy (invalid) situation
2311
2312         * loader/icon/IconLoader.h: Added.
2313         * loader/icon/IconLoader.cpp: Added.
2314         (IconLoader::IconLoader):
2315         (IconLoader::createForFrame):
2316         - Static factory method with a private constructor to enforce 
2317           "you MUST have a Frame to create an IconLoader" semantics
2318         (IconLoader::~IconLoader):
2319         (IconLoader::startLoading):
2320         (IconLoader::stopLoading):
2321         (IconLoader::receivedData):
2322         - ResourceLoaderClient delegate
2323         (IconLoader::receivedAllData):
2324         - Ditto
2325
2326         * loader/mac/IconLoaderMac.mm: Added.
2327         (IconLoader::receivedResponse):
2328         (IconLoader::notifyIconChanged):
2329         - For now, these are platform specific methods
2330         - One to get the HTTP response code of an icon load
2331         - The other to call through to the app when the icon has changed (loaded)
2332
2333         * page/Frame.h:
2334         * page/Frame.cpp:
2335         (WebCore::Frame::iconURL):
2336         (WebCore::Frame::setIconURL):
2337         - Frame objects now have an inherent icon URL and a way to calculate/access it
2338         (WebCore::Frame::endIfNotLoading):
2339         - This is where we actually kick off the IconLoader
2340         (WebCore::Frame::stop):
2341         - Added call to stop loading the icon
2342
2343         * page/FramePrivate.h:
2344         (WebCore::FramePrivate::FramePrivate):
2345         (WebCore::FramePrivate::~FramePrivate):
2346         - Added the icon URL as a private member
2347         - Added the IconLoader as a private member, and clean it up on deletion
2348
2349         * platform/mac/ResourceLoaderMac.mm:
2350         (WebCore::ResourceLoader::start):  Added a valuable ASSERT
2351
2352 2006-09-13  David Hyatt  <hyatt@apple.com>
2353
2354         Fix for 10841, unable to check checkboxes inside labels.
2355
2356         Reviewed by xenon, bradee-oh
2357
2358         * css/html4.css:
2359         * dom/Element.cpp:
2360         (WebCore::Element::contains):
2361         * dom/Element.h:
2362         * html/HTMLLabelElement.cpp:
2363         (WebCore::HTMLLabelElement::defaultEventHandler):
2364
2365 2006-09-13  Mark Rowe  <opendarwin.org@bdash.net.nz>
2366
2367         Reviewed by Adam.
2368
2369         http://bugzilla.opendarwin.org/show_bug.cgi?id=10834
2370         Bug 10834: FileChooser constructor in FileChooserMac appears to overretain m_controller
2371
2372         * platform/mac/FileChooserMac.mm:
2373         (WebCore::FileChooser::FileChooser): Don't over-retain the OpenPanelController.
2374
2375 2006-09-13  Mark Rowe  <opendarwin.org@bdash.net.nz>
2376
2377         Reviewed by Eric.
2378
2379         http://bugzilla.opendarwin.org/show_bug.cgi?id=10836
2380         Bug 10836: REGRESSION: Mac implementation of Font::drawGlyphs leaks a CGColorRef
2381
2382         * platform/mac/FontMac.mm:
2383         (WebCore::Font::drawComplexText): Release CGColorRef after use.
2384         (WebCore::Font::drawGlyphs): Ditto.
2385
2386 2006-09-14  Anders Carlsson  <acarlsson@apple.com>
2387
2388         Try fixing the Win32 build.
2389         
2390         * bridge/win/FrameWin.h:
2391         * platform/win/TemporaryLinkStubs.cpp:
2392         (FrameWin::bindingRootObject):
2393
2394 2006-09-14  Anders Carlsson  <acarlsson@apple.com>
2395
2396         Reviewed by Tim O.
2397
2398         Add USE defines for the generic JavaScriptCore bindings as well as NPAPI bindings.
2399         
2400         * bindings/js/kjs_binding.cpp:
2401         (KJS::ScriptInterpreter::createLanguageInstanceForValue):
2402         * bindings/js/kjs_dom.cpp:
2403         (KJS::getRuntimeObject):
2404         * bridge/mac/FrameMac.h:
2405         * config.h:
2406         * html/HTMLAppletElement.cpp:
2407         (WebCore::HTMLAppletElement::~HTMLAppletElement):
2408         (WebCore::HTMLAppletElement::detach):
2409         * html/HTMLAppletElement.h:
2410         * html/HTMLEmbedElement.cpp:
2411         (WebCore::HTMLEmbedElement::~HTMLEmbedElement):
2412         (WebCore::HTMLEmbedElement::detach):
2413         * html/HTMLEmbedElement.h:
2414         * html/HTMLObjectElement.cpp:
2415         (WebCore::HTMLObjectElement::~HTMLObjectElement):
2416         (WebCore::HTMLObjectElement::detach):
2417         * html/HTMLObjectElement.h:
2418         * html/HTMLPlugInElement.cpp:
2419         (WebCore::HTMLPlugInElement::HTMLPlugInElement):
2420         (WebCore::HTMLPlugInElement::~HTMLPlugInElement):
2421         (WebCore::HTMLPlugInElement::createNPObject):
2422         * html/HTMLPlugInElement.h:
2423         * page/Frame.h:
2424
2425 2006-09-13  David Hyatt  <hyatt@apple.com>
2426
2427         Clean up the XBL and XSLT ifdefs to be consistent with the SVG
2428         and XPath ifdefs.  KHTML_NO_XBL is flipped and is now XBL_SUPPORT.
2429         KHTML_XSLT is now XSLT_SUPPORT.
2430
2431         * WebCore.xcodeproj/project.pbxproj:
2432         * bindings/js/JSXSLTProcessor.cpp:
2433         * bindings/js/JSXSLTProcessor.h:
2434         * bindings/js/kjs_window.cpp:
2435         (KJS::Window::getValueProperty):
2436         * config.h:
2437         * css/CSSComputedStyleDeclaration.cpp:
2438         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2439         * css/cssparser.cpp:
2440         (WebCore::CSSParser::parseValue):
2441         * css/cssstyleselector.cpp:
2442         (WebCore::CSSStyleSelector::applyProperty):
2443         * dom/Document.cpp:
2444         (WebCore::Document::Document):
2445         (WebCore::Document::~Document):
2446         (WebCore::Document::recalcStyleSelector):
2447         * dom/Document.h:
2448         (WebCore::Document::bindingManager):
2449         * dom/Node.cpp:
2450         (WebCore::Node::createRendererIfNeeded):
2451         * dom/ProcessingInstruction.cpp:
2452         (WebCore::ProcessingInstruction::ProcessingInstruction):
2453         (WebCore::ProcessingInstruction::checkStyleSheet):
2454         (WebCore::ProcessingInstruction::setStyleSheet):
2455         * dom/ProcessingInstruction.h:
2456         * dom/XMLTokenizer.cpp:
2457         (WebCore::XMLTokenizer::processingInstruction):
2458         (WebCore::XMLTokenizer::insertErrorMessageBlock):
2459         * dom/XMLTokenizer.h:
2460         * loader/Cache.cpp:
2461         (WebCore::Cache::getStatistics):
2462         * loader/Cache.h:
2463         * loader/CachedResource.h:
2464         (WebCore::CachedResource::):
2465         * loader/CachedResourceClient.h:
2466         * loader/CachedXBLDocument.cpp:
2467         * loader/CachedXBLDocument.h:
2468         * loader/CachedXSLStyleSheet.cpp:
2469         * loader/CachedXSLStyleSheet.h:
2470         * loader/DocLoader.cpp:
2471         * loader/DocLoader.h:
2472         * rendering/RenderStyle.cpp:
2473         (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
2474         (WebCore::StyleCSS3NonInheritedData::~StyleCSS3NonInheritedData):
2475         (WebCore::StyleCSS3NonInheritedData::operator==):
2476         * rendering/RenderStyle.h:
2477         * xml/XSLImportRule.cpp:
2478         * xml/XSLImportRule.h:
2479         * xml/XSLStyleSheet.cpp:
2480         * xml/XSLStyleSheet.h:
2481         * xml/XSLTProcessor.cpp:
2482         * xml/XSLTProcessor.h:
2483
2484 2006-09-13  Nikolas Zimmermann  <zimmermann@kde.org>
2485
2486         Reviewed by eseidel.  Landed by eseidel.
2487
2488         Fix newly introduced memory leaks in SVG.
2489         http://bugzilla.opendarwin.org/show_bug.cgi?id=10835
2490
2491         * ksvg2/svg/SVGList.h:
2492         (WebCore::SVGListBase::~SVGListBase):
2493         (WebCore::SVGListBase::clearVector):
2494         (WebCore::SVGListBase::clear):
2495         (WebCore::SVGList::clearVector):
2496         (WebCore::):
2497         * ksvg2/svg/SVGNumberList.cpp: s/float/double/ - forgot that!
2498         (SVGNumberList::SVGNumberList):
2499         * ksvg2/svg/SVGNumberList.h: Ditto.
2500
2501 2006-09-13  MorganL  <morlmor@yahoo.com>
2502
2503         Reviewed/landed by aroben.
2504
2505         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10833
2506         Windows build needs fixed after move to engine-rendered file upload widget
2507
2508         * WebCore.vcproj/WebCore/WebCore.vcproj: Add RenderFileUpload files,
2509         remove RenderFileButton files
2510         * platform/win/TemporaryLinkStubs.cpp: Add stubs for FileChooser, Icon
2511         (FileChooser::FileChooser):
2512         (FileChooser::~FileChooser):
2513         (FileChooser::openFileChooser):
2514         (FileChooser::basenameForWidth):
2515         (FileChooser::uploadControlDetaching):
2516         (FileChooser::chooseFile):
2517         (WebCore::fileButtonChooseFileLabel):
2518         (WebCore::fileButtonNoFileSelectedLabel):
2519         (Icon::Icon):
2520         (Icon::~Icon):
2521         (Icon::newIconForFile):
2522         (Icon::paint):
2523
2524 2006-09-13  MorganL  <morlmor@yahoo.com>
2525
2526         Reviewed/landed by aroben.
2527
2528         Fixes http://bugzilla.opendarwin.org/attachment.cgi?id=10537
2529         Webkit WebCore build fails on Windows
2530
2531         * WebCore.vcproj/WebCore/build-generated-files.sh: export SOURCE_ROOT
2532         variable
2533
2534 2006-09-13  Nikolas Zimmermann  <zimmermann@kde.org>
2535
2536         Reviewed by Tim H.
2537
2538         Fix Qt/Linux build.
2539
2540         * CMakeLists.txt: Change SVGZoomEvent.idl location & add RenderFileUploadControl
2541         * platform/Icon.h: Add wtf/Platform.h include
2542         * platform/qt/FileChooserQt.cpp: Added as stub. Easy to implement though.
2543         (WebCore::FileChooser::FileChooser):
2544         (WebCore::FileChooser::~FileChooser):
2545         (WebCore::FileChooser::openFileChooser):
2546         (WebCore::FileChooser::basenameForWidth):
2547         (WebCore::FileChooser::uploadControlDetaching):
2548         (WebCore::FileChooser::chooseFile):
2549         * platform/qt/IconQt.cpp: Added as stub.
2550         (WebCore::Icon::Icon):
2551         (WebCore::Icon::~Icon):
2552         (WebCore::Icon::newIconForFile):
2553         (WebCore::Icon::paint):
2554         * platform/qt/TemporaryLinkStubs.cpp: Remove old RenderFileButton code & some new *Labels needed
2555         (searchableIndexIntroduction):
2556         (fileButtonChooseFileLabel):
2557         (fileButtonNoFileSelectedLabel):
2558
2559 2006-09-12  Adam Roben  <aroben@apple.com>
2560
2561         Reviewed by eseidel.
2562
2563         Switch back to passing relative paths to generate-bindings.pl when
2564         generating JS bindings.
2565
2566         * DerivedSources.make: Pass in relative paths to generate-bindings.pl
2567         * bindings/scripts/CodeGenerator.pm: Make ScanDirectory never call
2568         chdir and always construct absolute paths instead.
2569
2570 2006-09-12  David Hyatt  <hyatt@apple.com>
2571
2572         Fix for bug 3244, implement html4 label support.
2573
2574         Reviewed by mjs, aroben
2575
2576         Added fast/events/label-focus.html
2577
2578         * css/html4.css:
2579         * html/HTMLLabelElement.cpp:
2580         (WebCore::HTMLLabelElement::formElement):
2581         (WebCore::HTMLLabelElement::setActive):
2582         (WebCore::HTMLLabelElement::setHovered):
2583         (WebCore::HTMLLabelElement::defaultEventHandler):
2584         * html/HTMLLabelElement.h:
2585
2586 2006-09-12  Julien Palmas  <julien.palmas@gmail.com>
2587
2588         Reviewed by darin.  Landed by eseidel.
2589
2590         * ksvg2/svg/svgpathparser.cpp:
2591         (WebCore::SVGPolyParser::parsePoints):
2592
2593 2006-09-11  Kevin McCullough  <KMcCullough@apple.com>
2594
2595         Reviewed by Andersca, Maciej, Brady.
2596
2597         - Implemented intersectsNode in the Range Class
2598           to be compliant with Mozilla standard
2599
2600         * dom/Range.cpp:
2601         (WebCore::Range::intersectsNode):
2602         * dom/Range.h:
2603         * dom/Range.idl:
2604
2605 2006-09-12  Nikolas Zimmermann  <zimmermann@kde.org>
2606
2607         Reviewed by eseidel.  Landed by eseidel.
2608
2609         Test: svg/W3C-SVG-1.1/struct-dom-01-b.svg (fixed)
2610         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10826
2611         
2612         Also finally fixes some long outstanding bugs:
2613         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=9190
2614         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=9229
2615         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10413
2616
2617         Enable all JavaScript SVG bindings. Builds on Qt/Linux & OSX.
2618
2619         * CMakeLists.txt:
2620         * DerivedSources.make:
2621         * WebCore.xcodeproj/project.pbxproj:
2622         * bindings/scripts/CodeGenerator.pm:
2623         * bindings/scripts/CodeGeneratorJS.pm:
2624         * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
2625         * ksvg2/svg/SVGAElement.idl: Added.
2626         * ksvg2/svg/SVGAngle.idl:
2627         * ksvg2/svg/SVGAnimateColorElement.idl: Added.
2628         * ksvg2/svg/SVGAnimateElement.idl: Added.
2629         * ksvg2/svg/SVGAnimateTransformElement.idl: Added.
2630         * ksvg2/svg/SVGAnimatedLengthList.idl: Added.
2631         * ksvg2/svg/SVGAnimatedNumberList.idl: Added.
2632         * ksvg2/svg/SVGAnimatedTransformList.idl: Added.
2633         * ksvg2/svg/SVGAnimationElement.idl: Added.
2634         * ksvg2/svg/SVGCircleElement.idl: Added.
2635         * ksvg2/svg/SVGClipPathElement.idl: Added.
2636         * ksvg2/svg/SVGColor.idl:
2637         * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Added.
2638         * ksvg2/svg/SVGCursorElement.idl: Added.
2639         * ksvg2/svg/SVGDefsElement.idl: Added.
2640         * ksvg2/svg/SVGDescElement.idl: Added.
2641         * ksvg2/svg/SVGEllipseElement.idl: Added.
2642         * ksvg2/svg/SVGEvent.idl:
2643         * ksvg2/svg/SVGExternalResourcesRequired.idl: Added.
2644         * ksvg2/svg/SVGFEBlendElement.idl: Added.
2645         * ksvg2/svg/SVGFEColorMatrixElement.idl: Added.
2646         * ksvg2/svg/SVGFEComponentTransferElement.idl: Added.
2647         * ksvg2/svg/SVGFECompositeElement.idl: Added.
2648         * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Added.
2649         * ksvg2/svg/SVGFEDisplacementMapElement.idl: Added.
2650         * ksvg2/svg/SVGFEDistantLightElement.idl: Added.
2651         * ksvg2/svg/SVGFEFloodElement.idl: Added.
2652         * ksvg2/svg/SVGFEFuncAElement.idl: Added.
2653         * ksvg2/svg/SVGFEFuncBElement.idl: Added.
2654         * ksvg2/svg/SVGFEFuncGElement.idl: Added.
2655         * ksvg2/svg/SVGFEFuncRElement.idl: Added.
2656         * ksvg2/svg/SVGFEGaussianBlurElement.idl: Added.
2657         * ksvg2/svg/SVGFEImageElement.idl: Added.
2658         * ksvg2/svg/SVGFEMergeElement.idl: Added.
2659         * ksvg2/svg/SVGFEMergeNodeElement.idl: Added.
2660         * ksvg2/svg/SVGFEOffsetElement.idl: Added.
2661         * ksvg2/svg/SVGFEPointLightElement.idl: Added.
2662         * ksvg2/svg/SVGFESpecularLightingElement.idl: Added.
2663         * ksvg2/svg/SVGFESpotLightElement.idl: Added.
2664         * ksvg2/svg/SVGFETileElement.idl: Added.
2665         * ksvg2/svg/SVGFETurbulenceElement.idl: Added.
2666         * ksvg2/svg/SVGFilterElement.idl: Added.
2667         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Added.
2668         * ksvg2/svg/SVGFitToViewBox.idl: Added.
2669         * ksvg2/svg/SVGForeignObjectElement.idl: Added.
2670         * ksvg2/svg/SVGGElement.idl: Added.
2671         * ksvg2/svg/SVGGradientElement.idl: Added.
2672         * ksvg2/svg/SVGImageElement.idl: Added.
2673         * ksvg2/svg/SVGLangSpace.idl: Added.
2674         * ksvg2/svg/SVGLength.idl:
2675         * ksvg2/svg/SVGLengthList.idl: Added.
2676         * ksvg2/svg/SVGLineElement.idl: Added.
2677         * ksvg2/svg/SVGLinearGradientElement.idl: Added.
2678         * ksvg2/svg/SVGLocatable.idl: Added.
2679         * ksvg2/svg/SVGMarkerElement.idl: Added.
2680         * ksvg2/svg/SVGMaskElement.idl: Added.
2681         * ksvg2/svg/SVGNumberList.idl: Added.
2682         * ksvg2/svg/SVGPaint.idl: Added.
2683         * ksvg2/svg/SVGPathElement.idl:
2684         * ksvg2/svg/SVGPathSeg.idl:
2685         * ksvg2/svg/SVGPatternElement.idl: Added.
2686         * ksvg2/svg/SVGPointList.idl: Added.
2687         * ksvg2/svg/SVGPolygonElement.idl: Added.
2688         * ksvg2/svg/SVGPolylineElement.idl: Added.
2689         * ksvg2/svg/SVGPreserveAspectRatio.idl:
2690         * ksvg2/svg/SVGRadialGradientElement.idl: Added.
2691         * ksvg2/svg/SVGRectElement.idl: Added.
2692         * ksvg2/svg/SVGRenderingIntent.idl: Added.
2693         * ksvg2/svg/SVGSVGElement.idl:
2694         * ksvg2/svg/SVGScriptElement.idl: Added.
2695         * ksvg2/svg/SVGSetElement.idl: Added.
2696         * ksvg2/svg/SVGStopElement.idl: Added.
2697         * ksvg2/svg/SVGStringList.idl: Added.
2698         * ksvg2/svg/SVGStylable.idl: Added.
2699         * ksvg2/svg/SVGStyleElement.idl: Added.
2700         * ksvg2/svg/SVGSwitchElement.idl: Added.
2701         * ksvg2/svg/SVGSymbolElement.idl: Added.
2702         * ksvg2/svg/SVGTRefElement.idl: Added.
2703         * ksvg2/svg/SVGTSpanElement.idl: Added.
2704         * ksvg2/svg/SVGTests.idl: Added.
2705         * ksvg2/svg/SVGTextContentElement.idl: Added.
2706         * ksvg2/svg/SVGTextElement.idl: Added.
2707         * ksvg2/svg/SVGTextPositioningElement.idl: Added.
2708         * ksvg2/svg/SVGTitleElement.idl: Added.
2709         * ksvg2/svg/SVGTransform.idl:
2710         * ksvg2/svg/SVGTransformList.idl: Added.
2711         * ksvg2/svg/SVGTransformable.idl: Added.
2712         * ksvg2/svg/SVGURIReference.idl: Added.
2713         * ksvg2/svg/SVGUnitTypes.idl: Added.
2714         * ksvg2/svg/SVGUseElement.idl: Added.
2715         * ksvg2/svg/SVGViewElement.idl: Added.
2716         * ksvg2/svg/SVGZoomAndPan.idl: Added.
2717         * ksvg2/svg/SVGZoomEvent.idl: Added.
2718
2719 2006-09-12  Adam Roben  <aroben@apple.com>
2720
2721         Reviewed by timo, ggaren.
2722
2723         Make Icon ref-counted.
2724
2725         * platform/FileChooser.h: Store m_icon as a RefPtr instead of
2726         auto_ptr.
2727         * platform/Icon.h: Inherit from Shared<Icon>
2728         * platform/mac/FileChooserMac.mm:
2729         (WebCore::FileChooser::chooseFile): Update m_icon usage
2730         * platform/mac/IconMac.mm:
2731         (WebCore::Icon::newIconForFile): Return a RefPtr instead of an
2732         auto_ptr
2733
2734 === Safari-521.26 ===
2735
2736 2006-09-12  Nikolas Zimmermann  <zimmermann@kde.org>
2737
2738         Reviewed by Anders.
2739
2740         Add exception codes to SVGList functions, adjust all code using it.
2741
2742         Move SVGPaintType enums from ksvg.h into SVGPaint (needed for js generation)
2743         Move SVGUnitTypes enums from ksvg.h into it's own file SVGUnitType.h (ditto)
2744         Move SVGRenderingIntent enums from ksvg.h into it's own file SVGRenderingIntent.h (ditto)
2745         Move SVGZoomAndPan enums from ksvg.h into SVGSVGElement (ditto)
2746         Move SVGFE* related enums into their respecitive classes.
2747
2748         Fix JSSVGNumber to operator on doubles, instead of floats.
2749
2750         * ksvg2/bindings/js/JSSVGNumber.cpp:
2751         (WebCore::getJSSVGNumber):
2752         * ksvg2/bindings/js/JSSVGNumber.h:
2753         (WebCore::JSSVGNumber::JSSVGNumber):
2754         * ksvg2/css/SVGCSSParser.cpp:
2755         (WebCore::CSSParser::parseSVGValue):
2756         (WebCore::CSSParser::parseSVGPaint):
2757         * ksvg2/css/SVGRenderStyleDefs.cpp:
2758         (StyleFillData::operator==):
2759         * ksvg2/ksvg.h:
2760         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2761         (WebCore::KSVGPainterFactory::isFilled):
2762         (WebCore::KSVGPainterFactory::fillPaintServer):
2763         (WebCore::KSVGPainterFactory::isStroked):
2764         (WebCore::KSVGPainterFactory::strokePaintServer):
2765         * ksvg2/misc/KSVGTimeScheduler.cpp:
2766         (WebCore::SVGTimer::notifyAll):
2767         * ksvg2/svg/SVGAnimateColorElement.cpp:
2768         (WebCore::SVGAnimateColorElement::handleTimerEvent):
2769         * ksvg2/svg/SVGAnimateTransformElement.cpp:
2770         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
2771         (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
2772         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
2773         (WebCore::SVGAnimateTransformElement::parseTransformValue):
2774         * ksvg2/svg/SVGAnimateTransformElement.h:
2775         * ksvg2/svg/SVGAnimatedTemplate.h:
2776         * ksvg2/svg/SVGAnimationElement.cpp:
2777         (SVGAnimationElement::getSimpleDuration):
2778         (SVGAnimationElement::parseMappedAttribute):
2779         (SVGAnimationElement::setTargetAttribute):
2780         * ksvg2/svg/SVGAnimationElement.h:
2781         * ksvg2/svg/SVGClipPathElement.cpp:
2782         (SVGClipPathElement::SVGClipPathElement):
2783         (SVGClipPathElement::parseMappedAttribute):
2784         (SVGClipPathElement::canvasResource):
2785         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2786         (SVGComponentTransferFunctionElement::transferFunction):
2787         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
2788         (WebCore::SVGComponentTransferFunctionElement::):
2789         * ksvg2/svg/SVGDocument.cpp:
2790         (WebCore::SVGDocument::dispatchZoomEvent):
2791         (WebCore::SVGDocument::dispatchScrollEvent):
2792         * ksvg2/svg/SVGFEBlendElement.cpp:
2793         (WebCore::SVGFEBlendElement::parseMappedAttribute):
2794         (WebCore::SVGFEBlendElement::filterEffect):
2795         * ksvg2/svg/SVGFEBlendElement.h:
2796         (WebCore::SVGFEBlendElement::):
2797         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2798         (SVGFEColorMatrixElement::parseMappedAttribute):
2799         (SVGFEColorMatrixElement::filterEffect):
2800         * ksvg2/svg/SVGFEColorMatrixElement.h:
2801         (WebCore::SVGFEColorMatrixElement::):
2802         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
2803         (WebCore::SVGFEComponentTransferElement::parseMappedAttribute):
2804         (WebCore::SVGFEComponentTransferElement::filterEffect):
2805         * ksvg2/svg/SVGFEComponentTransferElement.h:
2806         * ksvg2/svg/SVGFECompositeElement.cpp:
2807         (SVGFECompositeElement::parseMappedAttribute):
2808         (SVGFECompositeElement::filterEffect):
2809         * ksvg2/svg/SVGFECompositeElement.h:
2810         (WebCore::SVGFECompositeElement::):
2811         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2812         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
2813         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
2814         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
2815         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2816         (SVGFEDisplacementMapElement::parseMappedAttribute):
2817         (SVGFEDisplacementMapElement::filterEffect):
2818         * ksvg2/svg/SVGFEDisplacementMapElement.h:
2819         (WebCore::SVGFEDisplacementMapElement::):
2820         * ksvg2/svg/SVGFEFloodElement.cpp:
2821         (WebCore::SVGFEFloodElement::parseMappedAttribute):
2822         (WebCore::SVGFEFloodElement::filterEffect):
2823         * ksvg2/svg/SVGFEFloodElement.h:
2824         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2825         (SVGFEGaussianBlurElement::parseMappedAttribute):
2826         (SVGFEGaussianBlurElement::filterEffect):
2827         * ksvg2/svg/SVGFEGaussianBlurElement.h:
2828         * ksvg2/svg/SVGFEMergeElement.cpp:
2829         (SVGFEMergeElement::filterEffect):
2830         * ksvg2/svg/SVGFEMergeNodeElement.cpp:
2831         (SVGFEMergeNodeElement::parseMappedAttribute):
2832         * ksvg2/svg/SVGFEMergeNodeElement.h:
2833         * ksvg2/svg/SVGFEOffsetElement.cpp:
2834         (SVGFEOffsetElement::parseMappedAttribute):
2835         (SVGFEOffsetElement::filterEffect):
2836         * ksvg2/svg/SVGFEOffsetElement.h:
2837         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2838         (SVGFESpecularLightingElement::parseMappedAttribute):
2839         (SVGFESpecularLightingElement::filterEffect):
2840         * ksvg2/svg/SVGFESpecularLightingElement.h:
2841         * ksvg2/svg/SVGFETileElement.cpp:
2842         (WebCore::SVGFETileElement::parseMappedAttribute):
2843         (WebCore::SVGFETileElement::filterEffect):
2844         * ksvg2/svg/SVGFETileElement.h:
2845         * ksvg2/svg/SVGFETurbulenceElement.h:
2846         (WebCore::SVGFETurbulenceElement::):
2847         * ksvg2/svg/SVGFilterElement.cpp:
2848         (SVGFilterElement::SVGFilterElement):
2849         (SVGFilterElement::parseMappedAttribute):
2850         (SVGFilterElement::canvasResource):
2851         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
2852         (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
2853         * ksvg2/svg/SVGGradientElement.cpp:
2854         (SVGGradientElement::SVGGradientElement):
2855         (SVGGradientElement::parseMappedAttribute):
2856         * ksvg2/svg/SVGGradientElement.h:
2857         (WebCore::SVGGradientElement::):
2858         * ksvg2/svg/SVGHelper.cpp:
2859         (WebCore::SVGHelper::ParseSeperatedList):
2860         * ksvg2/svg/SVGLengthList.cpp:
2861         (WebCore::SVGLengthList::parse):
2862         * ksvg2/svg/SVGLinearGradientElement.cpp:
2863         (SVGLinearGradientElement::buildGradient):
2864         * ksvg2/svg/SVGList.h:
2865         (WebCore::SVGListBase::clear):
2866         (WebCore::SVGListBase::initialize):
2867         (WebCore::SVGListBase::getItem):
2868         (WebCore::SVGListBase::insertItemBefore):
2869         (WebCore::SVGListBase::replaceItem):
2870         (WebCore::SVGListBase::removeItem):
2871         (WebCore::SVGListBase::appendItem):
2872         * ksvg2/svg/SVGLocatable.cpp:
2873         * ksvg2/svg/SVGLocatable.h:
2874         * ksvg2/svg/SVGMarkerElement.h:
2875         (WebCore::SVGMarkerElement::):
2876         * ksvg2/svg/SVGNumberList.cpp:
2877         (SVGNumberList::parse):
2878         * ksvg2/svg/SVGPaint.cpp:
2879         (WebCore::SVGPaint::SVGPaint):
2880         (WebCore::SVGPaint::uri):
2881         (WebCore::SVGPaint::setUri):
2882         (WebCore::SVGPaint::setPaint):
2883         * ksvg2/svg/SVGPaint.h:
2884         (WebCore::SVGPaint::):
2885         * ksvg2/svg/SVGPathElement.cpp:
2886         (WebCore::SVGPathElement::svgMoveTo):
2887         (WebCore::SVGPathElement::svgLineTo):
2888         (WebCore::SVGPathElement::svgLineToHorizontal):
2889         (WebCore::SVGPathElement::svgLineToVertical):
2890         (WebCore::SVGPathElement::svgCurveToCubic):
2891         (WebCore::SVGPathElement::svgCurveToCubicSmooth):
2892         (WebCore::SVGPathElement::svgCurveToQuadratic):
2893         (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
2894         (WebCore::SVGPathElement::svgArcTo):
2895         (WebCore::SVGPathElement::svgClosePath):
2896         (WebCore::SVGPathElement::parseMappedAttribute):
2897         (WebCore::SVGPathElement::toPathData):
2898         * ksvg2/svg/SVGPatternElement.cpp:
2899         (WebCore::SVGPatternElement::SVGPatternElement):
2900         (WebCore::SVGPatternElement::parseMappedAttribute):
2901         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
2902         (WebCore::SVGPatternElement::drawPatternContentIntoTile):
2903         * ksvg2/svg/SVGPolyElement.cpp:
2904         (SVGPolyElement::parseMappedAttribute):
2905         (SVGPolyElement::svgPolyTo):
2906         (SVGPolyElement::notifyAttributeChange):
2907         * ksvg2/svg/SVGPolygonElement.cpp:
2908         (SVGPolygonElement::toPathData):
2909         * ksvg2/svg/SVGPolylineElement.cpp:
2910         (SVGPolylineElement::toPathData):
2911         * ksvg2/svg/SVGRadialGradientElement.cpp:
2912         (WebCore::SVGRadialGradientElement::buildGradient):
2913         * ksvg2/svg/SVGRenderingIntent.h: Added.
2914         (WebCore::SVGRenderingIntent::):
2915         (WebCore::SVGRenderingIntent::SVGRenderingIntent):
2916         (WebCore::SVGRenderingIntent::~SVGRenderingIntent):
2917         * ksvg2/svg/SVGSVGElement.h:
2918         (WebCore::SVGSVGElement::):
2919         * ksvg2/svg/SVGScriptElement.cpp:
2920         (WebCore::SVGScriptElement::type):
2921         (WebCore::SVGScriptElement::setType):
2922         (WebCore::SVGScriptElement::parseMappedAttribute):
2923         * ksvg2/svg/SVGScriptElement.h:
2924         * ksvg2/svg/SVGStringList.cpp:
2925         (WebCore::SVGStringList::reset):
2926         * ksvg2/svg/SVGStyledLocatableElement.cpp:
2927         (SVGStyledLocatableElement::getTransformToElement):
2928         * ksvg2/svg/SVGStyledLocatableElement.h:
2929         * ksvg2/svg/SVGStyledTransformableElement.cpp:
2930         (SVGStyledTransformableElement::parseMappedAttribute):
2931         (SVGStyledTransformableElement::getTransformToElement):
2932         * ksvg2/svg/SVGStyledTransformableElement.h:
2933         * ksvg2/svg/SVGTests.cpp:
2934         (WebCore::SVGTests::hasExtension):
2935         (WebCore::SVGTests::isValid):
2936         * ksvg2/svg/SVGTests.h:
2937         * ksvg2/svg/SVGTextContentElement.cpp:
2938         (SVGTextContentElement::getSubStringLength):
2939         (SVGTextContentElement::getStartPositionOfChar):
2940         (SVGTextContentElement::getEndPositionOfChar):
2941         (SVGTextContentElement::getExtentOfChar):
2942         (SVGTextContentElement::getRotationOfChar):
2943         (SVGTextContentElement::selectSubString):
2944         * ksvg2/svg/SVGTextContentElement.h:
2945         (WebCore::SVGTextContentElement::):
2946         * ksvg2/svg/SVGTextElement.cpp:
2947         (WebCore::SVGTextElement::parseMappedAttribute):
2948         * ksvg2/svg/SVGTextElement.h:
2949         (WebCore::SVGTextElement::getTransformToElement):
2950         * ksvg2/svg/SVGTransform.h:
2951         * ksvg2/svg/SVGTransformList.cpp:
2952         (SVGTransformList::consolidate):
2953         (SVGTransformList::concatenate):
2954         * ksvg2/svg/SVGTransformable.cpp:
2955         (SVGTransformable::parseTransformAttribute):
2956         * ksvg2/svg/SVGUnitTypes.h: Added.
2957         (WebCore::SVGUnitTypes::):
2958         (WebCore::SVGUnitTypes::SVGUnitTypes):
2959         (WebCore::SVGUnitTypes::~SVGUnitTypes):
2960         * ksvg2/svg/SVGUseElement.cpp:
2961         (SVGUseElement::closeRenderer):
2962         * ksvg2/svg/SVGViewElement.h:
2963         (WebCore::SVGViewElement::):
2964         * ksvg2/svg/SVGZoomAndPan.cpp:
2965         (WebCore::SVGZoomAndPan::SVGZoomAndPan):
2966         (WebCore::SVGZoomAndPan::parseMappedAttribute):
2967
2968 2006-09-12  John Sullivan  <sullivan@apple.com>
2969
2970         Reviewed by Adele Peterson.
2971
2972         * bridge/mac/FrameMac.mm:
2973         (WebCore::FrameMac::doTextFieldCommandFromEvent):
2974         Don't call textField:doCommandBySelector: with a nil selector. This was indirectly causing a
2975         (valid) assertion failure in some Safari code.
2976
2977 2006-09-12  David Harrison  <harrison@apple.com>
2978
2979         Reviewed by John Sullivan.
2980
2981         <rdar://problem/4717841> Setting AXFocused to true does not activate the insertion point in text field
2982
2983         * bridge/mac/WebCoreAXObject.mm:
2984         (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
2985         For AXFocus, use focus() if the node is an element, so that selection is set.
2986         Matches tabbing behavior in text fields and text areas.
2987
2988 2006-09-12  Adam Roben  <aroben@apple.com>
2989
2990         Reviewed by adele.
2991
2992         Make uploading work with the new file upload control.
2993
2994         * css/html4.css: Remove unnecessary style (this is already done in
2995         RenderFileUpload.cpp)
2996         * html/HTMLInputElement.cpp: Don't get the button text from the value
2997         attribute for file controls.
2998         (WebCore::HTMLInputElement::valueWithDefault):
2999         * platform/mac/FileChooserMac.mm: Call
3000         RenderFileUploadControl::valueChanged when the user selects a file.
3001         (WebCore::FileChooser::chooseFile):
3002         * rendering/RenderFileUploadControl.cpp: Add valueChanged() method to
3003         update the form and fire the onChange event.
3004         (WebCore::RenderFileUploadControl::valueChanged):
3005         (WebCore::RenderFileUploadControl::updateFromElement):
3006         * rendering/RenderFileUploadControl.h: Add valueChanged() declaration.
3007
3008 2006-09-12  Adam Roben  <aroben@apple.com>
3009
3010         Adding rules to html4.css to style the button in file upload controls.
3011
3012         * css/html4.css:
3013
3014 2006-09-12  Adam Roben  <aroben@apple.com>
3015
3016         Reviewed many times by darin, hyatt.
3017
3018         Switch to new engine-based implementation of <input type="file">
3019
3020         * WebCore.exp: Remove obsolete symbol WebCoreFileButton
3021         * WebCore.xcodeproj/project.pbxproj: Remove files for old widget-based
3022         control, add files for new engine-based control
3023         * css/CSSSelector.cpp: Add support for new
3024         '-webkit-file-upload-button' pseudo element
3025         (WebCore::CSSSelector::extractPseudoType):
3026         * css/CSSSelector.h: Ditto.
3027         (WebCore::CSSSelector::):
3028         * css/cssstyleselector.cpp: Ditto.
3029         (WebCore::CSSStyleSelector::checkOneSelector):
3030         * html/HTMLInputElement.cpp: Send click events to new control
3031         (WebCore::HTMLInputElement::select):
3032         (WebCore::HTMLInputElement::click):
3033         (WebCore::HTMLInputElement::createRenderer):
3034         (WebCore::HTMLInputElement::valueWithDefault):
3035         (WebCore::HTMLInputElement::defaultEventHandler):
3036         * html/HTMLTextFieldInnerElement.h: Add 'virtual' keyword
3037         (WebCore::HTMLTextFieldInnerElement::shadowParentNode):
3038         * platform/FileButton.h: Removed.
3039         * platform/FileChooser.h: Added. This is the replacement for
3040         FileButton.h
3041         (WebCore::FileChooser::filename):
3042         (WebCore::FileChooser::icon):
3043         (WebCore::FileChooser::uploadControl):
3044         (WebCore::FileChooser::document):
3045         * platform/Icon.h: Added new platform-specific class representing a
3046         file icon.
3047         * platform/LocalizedStrings.h:
3048         * platform/mac/FileButtonMac.mm: Removed.
3049         * platform/mac/FileChooserMac.mm: Added. This is the replacement for
3050         FileButtonMac.mm
3051         (-[OpenPanelController initWithFileChooser:]):
3052         (-[OpenPanelController fileChooserDetachingSoon]):
3053         (-[OpenPanelController beginSheet]):
3054         (-[OpenPanelController chooseFilename:]):
3055         (-[OpenPanelController cancel]):
3056         (WebCore::FileChooser::FileChooser):
3057         (WebCore::FileChooser::~FileChooser):
3058         (WebCore::FileChooser::openFileChooser):
3059         (WebCore::FileChooser::basenameForWidth):
3060         (WebCore::FileChooser::uploadControlDetaching):
3061         (WebCore::FileChooser::chooseFile):
3062         * platform/mac/IconMac.mm: Added.
3063         (WebCore::Icon::Icon):
3064         (WebCore::Icon::~Icon):
3065         (WebCore::Icon::newIconForFile):
3066         (WebCore::Icon::paint):
3067         * platform/mac/LocalizedStringsMac.mm: Call across bridge to get
3068         localized strings.
3069         (WebCore::fileButtonChooseFileLabel):
3070         (WebCore::fileButtonNoFileSelectedLabel):
3071         * rendering/RenderButton.cpp: Extract method setText() from
3072         updateFromElement.
3073         (WebCore::RenderButton::updateFromElement):
3074         (WebCore::RenderButton::setText):
3075         * rendering/RenderButton.h: Add declaration for new setText method.
3076         * rendering/RenderFileButton.cpp: Removed.
3077         * rendering/RenderFileButton.h: Removed.
3078         * rendering/RenderFileUploadControl.cpp: Added. This is the
3079         replacement for RenderFileButton.cpp.
3080         (WebCore::RenderFileUploadInnerFileBox::renderName):
3081         (WebCore::HTMLFileUploadInnerButtonElement::isShadowNode):
3082         (WebCore::HTMLFileUploadInnerButtonElement::shadowParentNode):
3083         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
3084         (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
3085         (WebCore::RenderFileUploadControl::setStyle):
3086         (WebCore::RenderFileUploadControl::updateIconAndFilename):
3087         (WebCore::RenderFileUploadControl::click):
3088         (WebCore::RenderFileUploadControl::updateFromElement):
3089         (WebCore::RenderFileUploadControl::maxFilenameWidth):
3090         (WebCore::RenderFileUploadControl::createButtonStyle):
3091         (WebCore::RenderFileUploadControl::paintObject):
3092         (WebCore::RenderFileUploadInnerFileBox::RenderFileUploadInnerFileBox):
3093         (WebCore::RenderFileUploadInnerFileBox::setStyle):
3094         (WebCore::RenderFileUploadInnerFileBox::layout):
3095         (WebCore::RenderFileUploadInnerFileBox::setHasIcon):
3096         (WebCore::RenderFileUploadInnerFileBox::setFilename):
3097         (WebCore::RenderFileUploadInnerFileBox::calcMinMaxWidth):
3098         (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
3099         (WebCore::HTMLFileUploadInnerButtonElement::createRenderer):
3100         * rendering/RenderFileUploadControl.h: Added. This is the replacement
3101         for RenderFileButton.h.
3102         (WebCore::RenderFileUploadControl::renderName):
3103         * rendering/RenderStyle.cpp: Add support for
3104         -webkit-file-upload-button pseudo element.
3105         (WebCore::):
3106         (WebCore::pseudoBit):
3107         * rendering/RenderStyle.h: Ditto.
3108         (WebCore::RenderStyle::):
3109
3110 2006-09-12  Anders Carlsson  <acarlsson@apple.com>
3111
3112         Reviewed by John Sullivan.
3113
3114         Do the plugin object cleanup in Frame::clear instead of setView.
3115         
3116         * bridge/mac/FrameMac.h:
3117         * bridge/mac/FrameMac.mm:
3118         (WebCore::FrameMac::setView):
3119         (WebCore::FrameMac::cleanupPluginObjects):
3120         * page/Frame.cpp:
3121         (WebCore::Frame::clear):
3122         * page/Frame.h:
3123
3124 2006-09-12  MorganL  <morlmor@yahoo.com>
3125
3126         Reviewed/landed by aroben.
3127
3128         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10822
3129         windows build is busted
3130
3131         * WebCore.vcproj/WebCore/WebCore.vcproj: Add missing
3132         JSRangeException.{cpp,h} to project
3133
3134 2006-09-12  David Hyatt  <hyatt@apple.com>
3135
3136         Fix fieldsets so that they properly expand to enclose overhanging floats
3137         when the fieldset has auto height.  This is a nifty undocumented behavior
3138         of the fieldset element.  The bug is 3898.
3139
3140         Reviewed by mjs
3141
3142         Added fast/forms/fieldset-with-float.html
3143
3144         * rendering/RenderBlock.cpp:
3145         (WebCore::RenderBlock::layoutBlock):
3146         * rendering/RenderFieldset.h:
3147         (WebCore::RenderFieldset::renderName):
3148         (WebCore::RenderFieldset::expandsToEncloseOverhangingFloats):
3149         * rendering/RenderObject.h:
3150         (WebCore::RenderObject::expandsToEncloseOverhangingFloats):
3151         * rendering/RenderTableCell.h:
3152         (WebCore::RenderTableCell::expandsToEncloseOverhangingFloats):
3153
3154 2006-09-11  Eric Seidel  <eric@eseidel.com>
3155
3156         Reviewed by hyatt.
3157         
3158         REGRESSION: When dragging a link on a page, the selected link doesn't display it's name or URL
3159         http://bugzilla.opendarwin.org/show_bug.cgi?id=10819
3160         http://bugzilla.opendarwin.org/show_bug.cgi?id=10814
3161
3162         No test cases were harmed in the coding of the patch.
3163
3164         * platform/mac/WebCoreTextRenderer.mm:
3165         (WebCoreDrawTextAtPoint):
3166
3167 2006-09-11  David Hyatt  <hyatt@apple.com>
3168
3169         Fix for bug 8126, column widths apply to the border boxes of cells.
3170
3171         Reviewed by aroben
3172
3173         * rendering/RenderTableCell.cpp:
3174         (WebCore::RenderTableCell::styleOrColWidth):
3175
3176 2006-09-11  Nikolas Zimmermann  <zimmermann@kde.org>
3177
3178         Reviewed by Adele.
3179
3180         Fix Qt/Linux build.
3181
3182         * CMakeLists.txt: Add dom/RangeException.idl to build & fix feature defines.
3183
3184 2006-09-11  Nikolas Zimmermann  <zimmermann@kde.org>
3185
3186         Reviewed by eseidel.  Landed by eseidel.
3187
3188         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10750
3189
3190         This finally fixes the SVGAnimated* classes JS bindings!
3191
3192         - Move all SVGAnimated*.idl files from ksvg2/bindings/idl/svg to ksvg2/svg
3193         - Adjust XCode/Qt build files to generate the new idl files
3194
3195         - Remove all SVGAnimated* primitives cpp implementations (Angle/Boolean/Color/Enumeration/Integer/Length/
3196                                                                   LengthList/Number/NumberList/PreserveAspectRatio/
3197                                                                   Rect/String/TransformList)
3198
3199         - Remove unneeded methods from CodeGenerator.pm and add new helper function: IsSVGAnimatedType
3200         - Adjust CodeGeneratorJS.pm to the new SVGAnimated* tear-off concept
3201
3202         - Add two new macros: ANIMATED_PROPERTY_EMPTY_DECLARATIONS / ANIMATED_PROPERTY_FORWARD_DECLARATIONS.
3203           This is used to fix multiple-inheritance issues in SVG with properties,
3204           similar like SVGTests::isValid() was fixed.
3205
3206         - Rewrote SVGList using WTF::Vector, instead of DeprecatedPtrList and killed DOMList.
3207           (SVGAnimated*Lists work again now)
3208
3209         - Adjust macros in SVGElement to create the "*Animated" tear-off classes.
3210
3211         - Adjust all SVG classes which use the ANIMATED macros to include the ClassName as first param in the header.
3212
3213         * CMakeLists.txt:
3214         * DerivedSources.make:
3215         * WebCore.xcodeproj/project.pbxproj:
3216         * bindings/scripts/CodeGenerator.pm:
3217         * bindings/scripts/CodeGeneratorJS.pm:
3218         * kcanvas/RenderSVGImage.cpp:
3219         (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
3220         (WebCore::RenderSVGImage::paint):
3221         * kcanvas/RenderSVGText.cpp:
3222         (WebCore::RenderSVGText::translationForAttributes):
3223         * ksvg2/ksvg.h:
3224         * ksvg2/misc/SVGDocumentExtensions.h:
3225         (WebCore::FloatRect):
3226         * ksvg2/svg/SVGAElement.h:
3227         * ksvg2/svg/SVGAnimateColorElement.cpp:
3228         * ksvg2/svg/SVGAnimateColorElement.h:
3229         * ksvg2/svg/SVGAnimateTransformElement.h:
3230         * ksvg2/svg/SVGAnimatedTemplate.h:
3231         (WebCore::SVGAnimatedTemplate::~SVGAnimatedTemplate):
3232         * ksvg2/svg/SVGAnimationElement.h:
3233         * ksvg2/svg/SVGCircleElement.h:
3234         * ksvg2/svg/SVGClipPathElement.h:
3235         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3236         (SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
3237         (SVGComponentTransferFunctionElement::transferFunction):
3238         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
3239         * ksvg2/svg/SVGCursorElement.h:
3240         * ksvg2/svg/SVGDefsElement.h:
3241         * ksvg2/svg/SVGElement.h:
3242         * ksvg2/svg/SVGElementInstanceList.cpp:
3243         (WebCore::SVGElementInstanceList::SVGElementInstanceList):
3244         * ksvg2/svg/SVGElementInstanceList.h:
3245         * ksvg2/svg/SVGEllipseElement.h:
3246         * ksvg2/svg/SVGExternalResourcesRequired.h:
3247         * ksvg2/svg/SVGFEBlendElement.h:
3248         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3249         (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
3250         (SVGFEColorMatrixElement::parseMappedAttribute):
3251         (SVGFEColorMatrixElement::filterEffect):
3252         * ksvg2/svg/SVGFEColorMatrixElement.h:
3253         * ksvg2/svg/SVGFEComponentTransferElement.h:
3254         * ksvg2/svg/SVGFECompositeElement.h:
3255         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
3256         * ksvg2/svg/SVGFEDisplacementMapElement.h:
3257         * ksvg2/svg/SVGFEFloodElement.h:
3258         * ksvg2/svg/SVGFEGaussianBlurElement.h:
3259         * ksvg2/svg/SVGFEImageElement.h:
3260         * ksvg2/svg/SVGFELightElement.h:
3261         * ksvg2/svg/SVGFEMergeNodeElement.h:
3262         * ksvg2/svg/SVGFEOffsetElement.h:
3263         * ksvg2/svg/SVGFESpecularLightingElement.h:
3264         * ksvg2/svg/SVGFETileElement.h:
3265         * ksvg2/svg/SVGFETurbulenceElement.h:
3266         * ksvg2/svg/SVGFilterElement.h:
3267         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
3268         * ksvg2/svg/SVGFitToViewBox.cpp:
3269         (WebCore::SVGFitToViewBox::SVGFitToViewBox):
3270         (WebCore::SVGFitToViewBox::parseViewBox):
3271         (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
3272         * ksvg2/svg/SVGFitToViewBox.h:
3273         * ksvg2/svg/SVGForeignObjectElement.h:
3274         * ksvg2/svg/SVGGElement.h:
3275         * ksvg2/svg/SVGGradientElement.cpp:
3276         (SVGGradientElement::SVGGradientElement):
3277         * ksvg2/svg/SVGGradientElement.h:
3278         * ksvg2/svg/SVGHelper.cpp:
3279         (WebCore::SVGHelper::PercentageOfViewport):
3280         * ksvg2/svg/SVGImageElement.h:
3281         * ksvg2/svg/SVGLength.cpp:
3282         * ksvg2/svg/SVGLengthList.cpp:
3283         (WebCore::SVGLengthList::SVGLengthList):
3284         (WebCore::SVGLengthList::parse):
3285         * ksvg2/svg/SVGLengthList.h:
3286         * ksvg2/svg/SVGLineElement.h:
3287         * ksvg2/svg/SVGLinearGradientElement.h:
3288         * ksvg2/svg/SVGList.h:
3289         (WebCore::SVGListBase::SVGListBase):
3290         (WebCore::SVGListBase::~SVGListBase):
3291         (WebCore::SVGListBase::numberOfItems):
3292         (WebCore::SVGListBase::clear):
3293         (WebCore::SVGListBase::initialize):
3294         (WebCore::SVGListBase::getFirst):
3295         (WebCore::SVGListBase::getLast):
3296         (WebCore::SVGListBase::getItem):
3297         (WebCore::SVGListBase::insertItemBefore):
3298         (WebCore::SVGListBase::replaceItem):
3299         (WebCore::SVGListBase::removeItem):
3300         (WebCore::SVGListBase::appendItem):
3301         (WebCore::SVGList::nullItem):
3302         (WebCore::):
3303         * ksvg2/svg/SVGLocatable.cpp:
3304         * ksvg2/svg/SVGMarkerElement.h:
3305         * ksvg2/svg/SVGMaskElement.h:
3306         * ksvg2/svg/SVGNumberList.cpp:
3307         (SVGNumberList::SVGNumberList):
3308         (SVGNumberList::parse):
3309         * ksvg2/svg/SVGNumberList.h:
3310         * ksvg2/svg/SVGPathElement.cpp:
3311         (WebCore::SVGPathElement::pathSegList):
3312         * ksvg2/svg/SVGPathElement.h:
3313         * ksvg2/svg/SVGPathSegList.cpp:
3314         (WebCore::SVGPathSegList::SVGPathSegList):
3315         * ksvg2/svg/SVGPathSegList.h:
3316         * ksvg2/svg/SVGPatternElement.cpp:
3317         (WebCore::SVGPatternElement::SVGPatternElement):
3318         * ksvg2/svg/SVGPatternElement.h:
3319         * ksvg2/svg/SVGPointList.cpp:
3320         (SVGPointList::SVGPointList):
3321         * ksvg2/svg/SVGPointList.h:
3322         * ksvg2/svg/SVGPolyElement.cpp:
3323         (SVGPolyElement::points):
3324         (SVGPolyElement::svgPolyTo):
3325         (SVGPolyElement::notifyAttributeChange):
3326         * ksvg2/svg/SVGPolyElement.h:
3327         * ksvg2/svg/SVGPolygonElement.cpp:
3328         (SVGPolygonElement::toPathData):
3329         * ksvg2/svg/SVGPolylineElement.cpp:
3330         (SVGPolylineElement::toPathData):
3331         * ksvg2/svg/SVGPreserveAspectRatio.h:
3332         (WebCore::SVGPreserveAspectRatio::):
3333         * ksvg2/svg/SVGRadialGradientElement.h:
3334         * ksvg2/svg/SVGRectElement.h:
3335         * ksvg2/svg/SVGSVGElement.cpp:
3336         (WebCore::SVGSVGElement::SVGSVGElement):
3337         (WebCore::SVGSVGElement::parseMappedAttribute):
3338         (WebCore::SVGSVGElement::createRenderer):
3339         * ksvg2/svg/SVGSVGElement.h:
3340         * ksvg2/svg/SVGScriptElement.h:
3341         * ksvg2/svg/SVGStopElement.h:
3342         * ksvg2/svg/SVGStringList.cpp:
3343         (WebCore::SVGStringList::SVGStringList):
3344         (WebCore::SVGStringList::reset):
3345         * ksvg2/svg/SVGStringList.h:
3346         * ksvg2/svg/SVGStyledElement.h:
3347         * ksvg2/svg/SVGStyledLocatableElement.cpp:
3348         * ksvg2/svg/SVGStyledTransformableElement.cpp:
3349         (SVGStyledTransformableElement::SVGStyledTransformableElement):
3350         * ksvg2/svg/SVGStyledTransformableElement.h:
3351         * ksvg2/svg/SVGSwitchElement.h:
3352         * ksvg2/svg/SVGSymbolElement.h:
3353         * ksvg2/svg/SVGTRefElement.h:
3354         * ksvg2/svg/SVGTests.cpp:
3355         (WebCore::SVGTests::isValid):
3356         * ksvg2/svg/SVGTextContentElement.h:
3357         * ksvg2/svg/SVGTextElement.cpp:
3358         (WebCore::SVGTextElement::SVGTextElement):
3359         * ksvg2/svg/SVGTextElement.h:
3360         * ksvg2/svg/SVGTextPositioningElement.cpp:
3361         (SVGTextPositioningElement::SVGTextPositioningElement):
3362         (SVGTextPositioningElement::parseMappedAttribute):
3363         * ksvg2/svg/SVGTextPositioningElement.h:
3364         * ksvg2/svg/SVGTransformList.cpp:
3365         (SVGTransformList::SVGTransformList):
3366         (SVGTransformList::createSVGTransformFromMatrix):
3367         (SVGTransformList::consolidate):
3368         (SVGTransformList::concatenate):
3369         * ksvg2/svg/SVGTransformList.h:
3370         * ksvg2/svg/SVGURIReference.h:
3371         * ksvg2/svg/SVGUseElement.h:
3372         * ksvg2/svg/SVGViewElement.h:
3373
3374 2006-09-11  Adam Roben  <aroben@apple.com>
3375
3376         Rubberstamped by Adele.
3377
3378         Rename LocalGraphicsContext.{h,mm} to
3379         LocalCurrentGraphicsContext.{h,mm} to match the class name.
3380
3381         * WebCore.xcodeproj/project.pbxproj:
3382         * platform/mac/LocalCurrentGraphicsContext.mm: Added.
3383         * platform/mac/LocalCurrentGraphicsContext.h: Added.
3384         * platform/mac/LocalGraphicsContext.h: Removed.
3385         * platform/mac/LocalGraphicsContext.mm: Removed.
3386         * rendering/RenderThemeMac.mm: Fix #include to match renamed file
3387
3388 2006-09-11  Brady Eidson  <beidson@apple.com>
3389
3390         Build fix
3391
3392         * WebCore.xcodeproj/project.pbxproj:
3393
3394 2006-09-11  Kevin McCullough  <KMcCullough@apple.com>
3395
3396         Reviewed by Darin. 
3397
3398         - Implements comparePoint on the Range class
3399
3400         - Exposes RangeExceptions in JavaScript
3401
3402         * DerivedSources.make:
3403         * WebCore.xcodeproj/project.pbxproj:
3404         * bindings/js/kjs_binding.cpp:
3405         * bindings/objc/DOMInternal.mm:
3406         * dom/Range.cpp:
3407         (WebCore::Range::comparePoint):
3408         (WebCore::Range::compareNode):
3409         * dom/Range.h:
3410         (WebCore::Range::):
3411         * dom/Range.idl:
3412         * dom/RangeException.h: Added.
3413         (WebCore::):
3414         * dom/RangeException.idl: Added.
3415         * page/DOMWindow.idl:
3416
3417 2006-09-11  Adam Roben  <aroben@apple.com>
3418
3419         Reviewed by timo.
3420
3421         Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10812
3422         Move LocalGraphicsContext out of RenderThemeMac
3423
3424         * WebCore.xcodeproj/project.pbxproj:
3425         * platform/mac/LocalGraphicsContext.h: Added.
3426         * platform/mac/LocalGraphicsContext.mm: Added.
3427         (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
3428         (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext):
3429         * rendering/RenderThemeMac.mm:
3430
3431 2006-09-11  Vladimir Olexa  <vladimir.olexa@gmail.com>
3432
3433         Reviewed by Darin.
3434
3435         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10323
3436           REGRESSION: javascript: URL containing '\\' gets passed as '//'
3437
3438         Test: fast/dom/javascript-backslash.html
3439
3440         * platform/KURL.cpp: (WebCore::KURL::init): Don't do backslash
3441         substitution in JavaScript URLs.
3442
3443 2006-09-11  Sam Weinig  <sam.weinig@gmail.com>
3444
3445         Reviewed by Darin and Tim H.
3446
3447         Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10792
3448         Remove the [Exclude=LANGUAGE] idiom from IDL's and code generators 
3449         for something better
3450
3451         - Replaces [Exclude=LANGUAGE] idiom with preprocessor #if defined(LANGUAGE)
3452           idiom.
3453
3454         - Assorted whitespace changes to IDL files.
3455
3456         * DerivedSources.make:
3457         * WebCore.xcodeproj/project.pbxproj:
3458         * bindings/objc/DOMEvents.h:
3459         * bindings/scripts/CodeGenerator.pm:
3460         * bindings/scripts/CodeGeneratorJS.pm:
3461         * bindings/scripts/CodeGeneratorObjC.pm:
3462         * css/CSSRule.idl:
3463         * css/CSSStyleDeclaration.idl:
3464         * css/CSSValue.idl:
3465         * dom/DOMImplementation.idl:
3466         * dom/Document.idl:
3467         * dom/Element.idl:
3468         * dom/Event.idl:
3469         * dom/KeyboardEvent.idl:
3470         * dom/MouseEvent.idl:
3471         * dom/NamedNodeMap.idl:
3472         * dom/NodeFilter.idl:
3473         * dom/UIEvent.idl:
3474         * dom/WheelEvent.idl:
3475         * html/HTMLAnchorElement.idl:
3476         * html/HTMLAreaElement.idl:
3477         * html/HTMLDocument.idl:
3478         * html/HTMLElement.idl:
3479         * html/HTMLImageElement.idl:
3480         * html/HTMLInputElement.idl:
3481         * html/HTMLLinkElement.idl:
3482         * html/HTMLOptionsCollection.idl:
3483
3484 2006-09-11  David Hyatt  <hyatt@apple.com>
3485
3486         Fix an unwitting victim of the kMin->min change.  calcBlockMinMaxWidth
3487         was accidentally renamed to calcBlominMaxWidth.
3488
3489         * rendering/RenderBlock.cpp:
3490         (WebCore::RenderBlock::calcMinMaxWidth):
3491         (WebCore::RenderBlock::calcBlockMinMaxWidth):
3492         * rendering/RenderBlock.h:
3493
3494 2006-09-10  David Hyatt  <hyatt@apple.com>
3495
3496         Rework the printer font stuff a little bit so that the Font API doesn't
3497         have to be changed.
3498
3499         Reviewed by eseidel
3500
3501         * WebCore.xcodeproj/project.pbxproj:
3502         * bridge/mac/WebCoreStringTruncator.mm:
3503         (truncateString):
3504         (+[WebCoreStringTruncator widthOfString:font:]):
3505         * platform/Font.cpp:
3506         (WebCore::Font::drawSimpleText):
3507         * platform/Font.h:
3508         * platform/TextStyle.h:
3509         (WebCore::TextStyle::TextStyle):
3510         (WebCore::TextStyle::attemptFontSubstitution):
3511         (WebCore::TextStyle::setRTL):
3512         * platform/mac/FontMac.mm:
3513         (WebCore::m_wordSpacing):
3514         (WebCore::Font::drawGlyphs):
3515         * platform/mac/ListBoxMac.mm:
3516         (itemTextRenderer):
3517         (groupLabelTextRenderer):
3518         (-[WebCoreTableView drawRow:clipRect:]):
3519         * platform/mac/PopUpButtonMac.mm:
3520         (PopUpButton::sizeHint):
3521         * platform/mac/TextFieldMac.mm:
3522         (-[NSSearchFieldCell _addStringToRecentSearches:]):
3523         * platform/mac/WebCoreTextRenderer.mm:
3524         (WebCoreDrawTextAtPoint):
3525         (WebCoreTextFloatWidth):
3526         * rendering/EllipsisBox.cpp:
3527         (WebCore::EllipsisBox::paint):
3528         * rendering/InlineTextBox.cpp:
3529         (WebCore::InlineTextBox::paint):
3530         * rendering/RenderImage.cpp:
3531         (WebCore::RenderImage::paint):
3532         * rendering/RenderListMarker.cpp:
3533         (WebCore::RenderListMarker::paint):
3534
3535 2006-09-10  Brady Eidson  <beidson@apple.com>
3536
3537         Reviewed by Maciej
3538
3539         Small cleanups + future plans
3540
3541         * loader/icon/IconDatabase.cpp:
3542         (WebCore::IconDatabase::open): path separator cleanup
3543         * platform/Image.h: 
3544      
3545 2006-09-10  Brady Eidson  <beidson@apple.com>
3546
3547         Reviewed by Maciej
3548
3549         Added specialized HashTraits
3550
3551         * platform/IntSizeHash.h:
3552
3553 2006-09-10  Brady Eidson  <beidson@apple.com>
3554
3555         Forgetting header #define protection is BAAAAAD
3556         (and re-alphabetized the project file)
3557
3558         * WebCore.xcodeproj/project.pbxproj:
3559         * platform/IntSizeHash.h:
3560
3561 2006-09-10  Brady Eidson  <beidson@apple.com>
3562
3563         Reviewed by Maciej
3564
3565         Moved the custom IntSize hash out of IconDatabase into a more generally useful file
3566
3567         * WebCore.xcodeproj/project.pbxproj:
3568         * loader/icon/IconDatabase.h:
3569         * platform/IntSizeHash.h: Added.
3570
3571 2006-09-10  David Hyatt  <hyatt@apple.com>
3572
3573         Fix for bug 10801, form controls that get styled suddenly lose their
3574         intrinsic margins.  Move the intrinsic margin addition code into
3575         adjustRenderStyle and get it out of the theme code and the old form control
3576         code.
3577
3578         Reviewed by aroben
3579
3580         * css/cssstyleselector.cpp:
3581         (WebCore::addIntrinsicMargins):
3582         (WebCore::CSSStyleSelector::adjustRenderStyle):
3583         * css/html4.css:
3584         * rendering/DeprecatedRenderSelect.h:
3585         (WebCore::DeprecatedRenderSelect::calcReplacedHeight):
3586         * rendering/DeprecatedSlider.h:
3587         * rendering/RenderFormElement.cpp:
3588         (WebCore::RenderFormElement::setStyle):
3589         * rendering/RenderFormElement.h:
3590         * rendering/RenderLayer.cpp:
3591         (WebCore::RenderLayer::resize):
3592         * rendering/RenderThemeMac.h:
3593         * rendering/RenderThemeMac.mm:
3594         (WebCore::RenderThemeMac::adjustButtonStyle):
3595         (WebCore::RenderThemeMac::adjustTextFieldStyle):
3596         (WebCore::RenderThemeMac::adjustTextAreaStyle):
3597         (WebCore::RenderThemeMac::adjustMenuListStyle):
3598         (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
3599         * rendering/RenderThemeWin.cpp:
3600         (WebCore::RenderThemeWin::adjustButtonStyle):
3601         (WebCore::RenderThemeWin::adjustTextFieldStyle):
3602         (WebCore::RenderThemeWin::adjustTextAreaStyle):
3603
3604 2006-09-10  Darin Adler  <darin@apple.com>
3605
3606         - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10547
3607
3608         * manual-tests/target-test.html: Added.
3609         * manual-tests/targeted.html: Added.