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