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