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