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