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