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