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