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