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