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