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