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