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