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