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