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