1537ab0172811c7456c4b6a6e3b8dd6df8863bf0
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-11  Antti Koivisto  <koivisto@iki.fi>
2
3         Reviewed by Hyatt.
4         
5         http://bugs.webkit.org/show_bug.cgi?id=4377
6         
7         Respect css visibility semantics for layers too
8
9         * rendering/RenderContainer.cpp:
10         (WebCore::RenderContainer::removeChildNode):
11         (WebCore::RenderContainer::appendChildNode):
12         (WebCore::RenderContainer::insertChildNode):
13         * rendering/RenderLayer.cpp:
14         (WebCore::RenderLayer::RenderLayer):
15         (WebCore::RenderLayer::updateLayerPositions):
16         (WebCore::RenderLayer::setHasVisibleContent):
17         (WebCore::RenderLayer::dirtyVisibleContentStatus):
18         (WebCore::RenderLayer::childVisibilityChanged):
19         (WebCore::RenderLayer::dirtyVisibleDescendantStatus):
20         (WebCore::RenderLayer::updateVisibilityStatus):
21         (WebCore::RenderLayer::addChild):
22         (WebCore::RenderLayer::removeChild):
23         (WebCore::RenderLayer::updateZOrderLists):
24         (WebCore::RenderLayer::collectLayers):
25         * rendering/RenderLayer.h:
26         (WebCore::RenderLayer::hasVisibleContent):
27         * rendering/RenderObject.cpp:
28         (WebCore::RenderObject::setStyle):
29
30 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
31
32         Reviewed by Oliver.
33
34         - added RetainPtr, smart pointer for refcounted ObjC objects and CFTypes
35
36         * WebCore.xcodeproj/project.pbxproj:
37         * platform/cf/RetainPtr.h: Added.
38         (WTF::):
39         (WTF::RetainPtr::RetainPtr):
40         (WTF::RetainPtr::~RetainPtr):
41         (WTF::RetainPtr::get):
42         (WTF::RetainPtr::operator*):
43         (WTF::RetainPtr::operator->):
44         (WTF::RetainPtr::operator!):
45         (WTF::RetainPtr::operator UnspecifiedBoolType):
46         (WTF::::operator):
47         (WTF::::swap):
48         (WTF::swap):
49         (WTF::operator==):
50         (WTF::operator!=):
51         (WTF::static_pointer_cast):
52         (WTF::const_pointer_cast):
53         (WTF::getPtr):
54         
55         - use it in WidgetMac so it gets tested in at least one place
56         
57         * platform/mac/WidgetMac.mm:
58         (WebCore::Widget::Widget):
59         (WebCore::Widget::~Widget):
60         (WebCore::Widget::setEnabled):
61         (WebCore::Widget::isEnabled):
62         (WebCore::Widget::setCursor):
63         (WebCore::Widget::getView):
64         (WebCore::Widget::setView):
65         (WebCore::Widget::getOuterView):
66
67 2006-10-10  Brady Eidson  <beidson@apple.com>
68
69         Reviewed by Maciej.
70
71         Moved WebFrameLoader from WebFrameBridge into WebCoreFrameBridge
72
73         * bridge/mac/WebCoreFrameBridge.h:
74         * bridge/mac/WebCoreFrameBridge.mm:
75         (-[WebCoreFrameBridge initMainFrameWithPage:]):
76         (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
77         (-[WebCoreFrameBridge dealloc]):
78         (-[WebCoreFrameBridge close]):
79         (-[WebCoreFrameBridge setFrameLoaderClient:]):
80         (-[WebCoreFrameBridge frameLoader]):
81         * loader/mac/WebFrameLoader.h:
82         * loader/mac/WebFrameLoader.mm:
83         (-[WebFrameLoader initWithFrameBridge:]):
84         (-[WebFrameLoader setFrameLoaderClient:]):
85
86 2006-10-10  Adam Roben  <aroben@apple.com>
87
88         Reviewed by Oliver.
89
90         Make FileChooser ref-counted.
91
92         * platform/FileChooser.h:
93         * platform/mac/FileChooserMac.mm:
94         (WebCore::FileChooser::create):
95         * rendering/RenderFileUploadControl.cpp:
96         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
97         (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
98         * rendering/RenderFileUploadControl.h:
99
100 2006-10-10  Sam Weinig  <sam.weinig@gmail.com>
101
102         Reviewed by Tim H.
103
104         Patch for http://bugs.webkit.org/show_bug.cgi?id=11248
105         Even More auto-generated Objective-C DOM bindings changes
106
107         - Auto-generate DOMSVGPathElement.
108
109         - Auto-generate the internal interfaces even for classes that have
110           custom internal implementations.  Change IDL property from ObjCNoInternal
111           to ObjCCustomInternalImpl to indicate the change.
112
113         - Add SVG classes to DOMNode and DOMEvent internal interfaces.
114
115         - Add isSVGZoomEvent() method to Event class to match other Event subclasses
116           and make DOM binding possible.
117
118         - Assorted cleanups.
119
120         * DerivedSources.make:
121         * WebCore.xcodeproj/project.pbxproj:
122         * bindings/objc/DOM.mm:
123         (WebCore::addElementClass):
124         (WebCore::createElementClassMap):
125         (WebCore::elementClass):
126         (-[DOMNode description]):
127         (+[DOMNode _nodeWith:WebCore::]):
128         (-[DOMNode addEventListener:listener:useCapture:]):
129         (-[DOMNode removeEventListener:listener:useCapture:]):
130         (-[DOMElement _NPObject]):
131         (WebCore::ObjCEventListener::handleEvent):
132         * bindings/objc/DOMEvents.mm:
133         (+[DOMEvent _eventWith:WebCore::]):
134         * bindings/objc/DOMInternal.h:
135         * bindings/objc/DOMRGBColor.mm:
136         (-[DOMRGBColor WebCore::]):
137         * bindings/objc/DOMSVGPathSegInternal.h: Removed.
138         * bindings/scripts/CodeGeneratorObjC.pm:
139         * css/CSSRule.idl:
140         * css/CSSValue.idl:
141         * css/StyleSheet.idl:
142         * dom/Event.cpp:
143         (WebCore::Event::isSVGZoomEvent):
144         * dom/Event.h:
145         * dom/Event.idl:
146         * dom/Node.idl:
147         * ksvg2/events/SVGZoomEvent.cpp:
148         (WebCore::SVGZoomEvent::isSVGZoomEvent):
149         * ksvg2/events/SVGZoomEvent.h:
150         * ksvg2/svg/SVGAnimatedAngle.idl:
151         * ksvg2/svg/SVGCircleElement.idl:
152         * ksvg2/svg/SVGClipPathElement.idl:
153         * ksvg2/svg/SVGPathElement.idl:
154         * ksvg2/svg/SVGPathSeg.idl:
155
156 2006-10-10  Oliver Hunt  <oliver@apple.com>
157
158         rubber stamped by Anders.
159
160         More buildbot bustage
161
162         * kcanvas/SVGInlineFlowBox.cpp:
163         (WebCore::placeBoxesVerticallyWithAbsBaseline):
164
165 2006-10-10  Oliver Hunt  <oliver@apple.com>
166
167         Reviewed by Anders 
168
169         Unbreak build bots
170
171         * dom/Text.cpp:
172         * kcanvas/RenderSVGText.cpp:
173         (WebCore::RenderSVGText::layout):
174         * kcanvas/SVGInlineFlowBox.cpp:
175         (WebCore::placePositionedBoxesHorizontally):
176         (WebCore::placeBoxesVerticallyWithAbsBaseline):
177
178 2006-10-10  Oliver Hunt  <oliver@apple.com>
179
180         Reviewed by hyatt.
181
182         Fixes bugs #6423, #6559, #10380 and #10839 
183
184         * WebCore.xcodeproj/project.pbxproj:
185         * css/svg.css:
186         * dom/Text.cpp:
187         (WebCore::Text::createRenderer):
188         * kcanvas/RenderSVGInline.cpp: Added.
189         (WebCore::RenderSVGInline::RenderSVGInline):
190         (WebCore::RenderSVGInline::createInlineBox):
191         * kcanvas/RenderSVGInline.h: Added.
192         (WebCore::RenderSVGInline::renderName):
193         (WebCore::RenderSVGInline::requiresLayer):
194         * kcanvas/RenderSVGInlineText.cpp: Added.
195         (WebCore::RenderSVGInlineText::RenderSVGInlineText):
196         (WebCore::RenderSVGInlineText::absoluteRects):
197         (WebCore::RenderSVGInlineText::selectionRect):
198         * kcanvas/RenderSVGInlineText.h: Added.
199         (WebCore::RenderSVGInlineText::renderName):
200         (WebCore::RenderSVGInlineText::requiresLayer):
201         * kcanvas/RenderSVGTSpan.cpp: Added.
202         (WebCore::RenderSVGTSpan::RenderSVGTSpan):
203         (WebCore::RenderSVGTSpan::absoluteRects):
204         * kcanvas/RenderSVGTSpan.h: Added.
205         (WebCore::RenderSVGTSpan::renderName):
206         * kcanvas/RenderSVGText.cpp:
207         (WebCore::RenderSVGText::RenderSVGText):
208         (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
209         (WebCore::RenderSVGText::layout):
210         (WebCore::RenderSVGText::createInlineBox):
211         (WebCore::RenderSVGText::nodeAtPoint):
212         (WebCore::RenderSVGText::absoluteRects):
213         (WebCore::RenderSVGText::paint):
214         (WebCore::RenderSVGText::relativeBBox):
215         * kcanvas/RenderSVGText.h:
216         (WebCore::RenderSVGText::renderName):
217         * kcanvas/SVGInlineFlowBox.cpp: Added.
218         (WebCore::SVGInlineFlowBox::paint):
219         (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
220         (WebCore::SVGInlineFlowBox::verticallyAlignBoxes):
221         (WebCore::paintSVGInlineFlow):
222         (WebCore::translateBox):
223         (WebCore::placePositionedBoxesHorizontally):
224         (WebCore::placeSVGFlowHorizontally):
225         (WebCore::placeBoxesVerticallyWithAbsBaseline):
226         (WebCore::placeSVGFlowVertically):
227         * kcanvas/SVGInlineFlowBox.h: Added.
228         (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
229         * kcanvas/SVGRootInlineBox.cpp: Added.
230         (WebCore::SVGRootInlineBox::paint):
231         (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
232         (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
233         * kcanvas/SVGRootInlineBox.h: Added.
234         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
235         * ksvg2/svg/SVGTRefElement.cpp:
236         (SVGTRefElement::createRenderer):
237         * ksvg2/svg/SVGTSpanElement.cpp:
238         (SVGTSpanElement::createRenderer):
239         * rendering/InlineFlowBox.h:
240
241 2006-10-10  Adam Roben  <aroben@apple.com>
242
243         Reviewed by Adele.
244
245         Improve popup menu behavior.
246
247         * html/HTMLSelectElement.cpp:
248         (WebCore::HTMLSelectElement::HTMLSelectElement): Cache
249         m_lastOnChangeIndex so we know when to fire onChange.
250         (WebCore::HTMLSelectElement::setSelectedIndex): Added parameter to
251         specify whether we should fire onChange.
252         (WebCore::HTMLSelectElement::dispatchBlurEvent): Fire onChange on blur.
253         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Fire
254         onChange when using the Enter key to change the selection.
255         * html/HTMLSelectElement.h:
256         * rendering/RenderMenuList.cpp:
257         (WebCore::RenderMenuList::updateFromElement): Extract setText logic
258         into its own method.
259         (WebCore::RenderMenuList::setTextFromOption): New method.
260         (WebCore::RenderMenuList::valueChanged): Let setSelectedIndex call
261         onChange instead of calling it directly here.
262         * rendering/RenderMenuList.h:
263
264 2006-10-10  Adele Peterson  <adele@apple.com>
265
266         Reviewed by Beth. 
267
268
269         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type=text>
270           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
271
272         Moved autoscroll code to the Frame class
273
274         * bridge/mac/FrameMac.h: Moved _mouseDownMayStartDrag and _mouseDownMayStartAutoscroll flags to the frame.
275         * bridge/mac/FrameMac.mm: Use new getters and setters for drag and autoscroll flags.  Moved autoscroll code to Frame::handleMouseMoveEvent.
276         (WebCore::FrameMac::FrameMac):
277         (WebCore::FrameMac::handleMousePressEvent):
278         (WebCore::FrameMac::eventMayStartDrag):
279         (WebCore::FrameMac::handleMouseMoveEvent):
280         (WebCore::FrameMac::mouseDown):
281
282         * bridge/mac/WebCoreFrameBridge.h: Removed handleAutoscrollForMouseDragged, which called over the bridge for AppKit to do autoscroll for us.
283         Now we scroll our views in WebCore.
284
285         * page/Frame.cpp:
286         (WebCore::Frame::handleMousePressEvent): Initialize the mouseDownMayStartAutoscroll flag.
287         (WebCore::Frame::handleMouseMoveEvent): Now kicks off autoscroll if appropriate.  Moved from FrameMac.
288         (WebCore::Frame::updateSelectionForMouseDragOverPosition): Factored code out from handleMouseMoveEvent so we can update the selection from autoscroll too.
289         (WebCore::Frame::mouseDownMayStartAutoscroll): Added.
290         (WebCore::Frame::setMouseDownMayStartAutoscroll): Added.
291         (WebCore::Frame::mouseDownMayStartDrag): Added.
292         (WebCore::Frame::setMouseDownMayStartDrag): Added.
293         (WebCore::Frame::autoscrollRenderer): Added
294         (WebCore::Frame::setAutoscrollRenderer): Added.
295         (WebCore::Frame::handleAutoscroll): Updated to use autoscrollRenderer getter and setter.
296         (WebCore::Frame::autoscrollTimerFired): ditto.
297         (WebCore::Frame::stopAutoscrollTimer): ditto. 
298         * page/Frame.h: Made autoscrollRenderer and stopAutoscrollTimer public, so the renderer being autoscrolled can kill the timer when it dies.
299
300         * page/FramePrivate.h:
301         (WebCore::FramePrivate::FramePrivate): Added mouseDownMayStartDrag and mouseDownMayStartAutoscroll flags.  Moved from FrameMac.
302
303         * page/FrameView.cpp: Store the current mouse position in window coordinates.  The callers can convert to their own coordinate space.
304         (WebCore::FrameView::handleMousePressEvent):
305         (WebCore::FrameView::handleMouseDoubleClickEvent):
306         (WebCore::FrameView::handleMouseMoveEvent):
307         (WebCore::FrameView::handleMouseReleaseEvent):
308
309         * rendering/RenderLayer.cpp:
310         (WebCore::RenderLayer::autoscroll): Rewrote this to scroll recursively, and to scroll based on the mouse position (not the selection).  
311          We also need to update the selection here, since autoscroll can occur without a mouseMove event, and the selection needs to get reset as we scroll.
312
313         * rendering/RenderListBox.cpp:
314         (WebCore::RenderListBox::autoscroll): Convert the mouse coordinates to the right space.
315
316         * rendering/RenderObject.cpp:
317         (WebCore::RenderObject::shouldAutoscroll): Also return true if the renderer is a root (so we know to autoscroll views too)
318         (WebCore::RenderObject::destroy): If this renderer is being autoscrolled, stop the frame's autoscroll timer.
319
320 2006-10-10  Darin Adler  <darin@apple.com>
321
322         Rubber stamped by Maciej.
323
324         - convert many of the loader source files to Objective-C++ to prepare
325           to convert some of them to C++
326
327         * WebCore.xcodeproj/project.pbxproj:
328         * loader/mac/WebDataProtocol.m: Removed.
329         * loader/mac/WebDocumentLoader.m: Removed.
330         * loader/mac/WebFormState.m: Removed.
331         * loader/mac/WebFrameLoader.m: Removed.
332         * loader/mac/WebLoader.m: Removed.
333         * loader/mac/WebMainResourceLoader.m: Removed.
334         * loader/mac/WebNetscapePlugInStreamLoader.m: Removed.
335         * loader/mac/WebPolicyDecider.m: Removed.
336         * loader/mac/WebSubresourceLoader.m: Removed.
337         * loader/mac/WebDataProtocol.mm: Added.
338         * loader/mac/WebDocumentLoader.mm: Added.
339         * loader/mac/WebFormState.mm: Added.
340         * loader/mac/WebFrameLoader.mm: Added.
341         * loader/mac/WebLoader.mm: Added.
342         * loader/mac/WebMainResourceLoader.mm: Added.
343         * loader/mac/WebNetscapePlugInStreamLoader.mm: Added.
344         * loader/mac/WebPolicyDecider.mm: Added.
345         * loader/mac/WebSubresourceLoader.mm: Added.
346
347 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
348
349         Reviewed by Mitz.
350
351         - fixed REGRESSION (r16960): crash on navigating to site
352         http://www.zoominfo.com/Search/CompanyDetail.aspx?CompanyID=62948057&cs=QGDwILZIE
353         
354         * loader/mac/WebFrameLoader.m:
355         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
356         Add back a mistakenly removed retain.
357
358 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
359
360         Not reviewed, build fix.
361
362         - fixed release build
363
364         * WebCore.xcodeproj/project.pbxproj:
365
366 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
367
368         Rubber stamped by Eric.
369
370         - moved a big honkin' pile of code over from WebKit; made minimal needed changes to compile
371
372         * WebCore.exp:
373         * WebCore.xcodeproj/project.pbxproj:
374         * loader/mac/LoaderNSURLExtras.m: Added.
375         * loader/mac/WebDataProtocol.m: Added.
376         * loader/mac/WebDocumentLoader.m: Added.
377         * loader/mac/WebFormDataStream.m: Added.
378         * loader/mac/WebFrameLoader.m: Added.
379         * loader/mac/WebLoader.m: Added.
380         (-[NSURLProtocol didReceiveResponse:]):
381         (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
382         * loader/mac/WebMainResourceLoader.m: Added.
383         (-[WebMainResourceLoader didReceiveResponse:]):
384         * loader/mac/WebPolicyDecider.m: Added.
385         * loader/mac/WebSubresourceLoader.h: Added.
386         * loader/mac/WebSubresourceLoader.m: Added.
387
388 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
389
390         Reviewed by Oliver (sort of?)
391
392         - WebCore part of moving down NSURL extras
393
394         * WebCore.exp:
395         * platform/mac/WebCoreSystemInterface.h:
396         * platform/mac/WebCoreSystemInterface.mm:
397
398 2006-10-09  Rob Buis  <buis@kde.org>
399
400         Reviewed by Mitz.
401
402         http://bugs.webkit.org/show_bug.cgi?id=11217
403         Cleanup svg coding style
404
405         Cleanup coding style in svg animation classes.
406
407         * ksvg2/svg/SVGAnimateColorElement.cpp:
408         (WebCore::SVGAnimateColorElement::handleTimerEvent):
409         * ksvg2/svg/SVGAnimateElement.cpp:
410         (WebCore::SVGAnimateElement::SVGAnimateElement):
411         (WebCore::SVGAnimateElement::handleTimerEvent):
412         * ksvg2/svg/SVGAnimateTransformElement.cpp:
413         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
414         (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
415         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
416         (WebCore::SVGAnimateTransformElement::parseTransformValue):
417         (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
418         (WebCore::SVGAnimateTransformElement::initialMatrix):
419         (WebCore::SVGAnimateTransformElement::transformMatrix):
420         * ksvg2/svg/SVGAnimateTransformElement.h:
421         * ksvg2/svg/SVGAnimatedPathData.cpp:
422         * ksvg2/svg/SVGAnimatedPathData.h:
423         * ksvg2/svg/SVGAnimatedPoints.cpp:
424         * ksvg2/svg/SVGAnimatedPoints.h:
425         * ksvg2/svg/SVGAnimationElement.cpp:
426         (WebCore::SVGAnimationElement::targetElement):
427
428 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
429
430         Reviewed by Oliver.
431
432         - added isMainFrame and frameLoader to WebCoreFrameBridge for ease of future code motion
433
434         * bridge/mac/WebCoreFrameBridge.h:
435         * bridge/mac/WebCoreFrameBridge.mm:
436         (-[WebCoreFrameBridge isMainFrame]):
437
438 2006-10-09  Adam Roben  <aroben@apple.com>
439
440         Backing out accidental commit.
441
442         * page/Frame.cpp:
443         (WebCore::Frame::finishedParsing):
444
445 2006-10-09  Adam Roben  <aroben@apple.com>
446
447         Reviewed by Darin.
448
449         Add ASSERTs to RefPtr to make sure we don't ref within a destructor, as
450         this could cause recursive calls to the destructor. RefPtr now also
451         inherits from Noncopyable.
452
453         * dom/NodeFilter.h:
454         * dom/Traversal.h:
455         * page/DOMWindow.h:
456         * page/Frame.cpp:
457         (WebCore::Frame::finishedParsing):
458         * page/Frame.h:
459         * page/Plugin.h:
460         * platform/FontFallbackList.h:
461         * platform/Icon.h:
462         * platform/Shared.h:
463         (WebCore::Shared::Shared):
464         (WebCore::Shared::ref):
465         (WebCore::Shared::deref):
466         (WebCore::Shared::hasOneRef):
467         (WebCore::Shared::refCount):
468         * platform/StringImpl.h:
469
470 2006-10-09  Oliver Hunt <ohunt@apple.com>
471
472         Reviewed by Anders.
473
474         Correcting ifdef's
475
476         * html/CanvasGradient.cpp:
477         (WebCore::CanvasGradient::CanvasGradient):
478         (WebCore::CanvasGradient::~CanvasGradient):
479         (WebCore::CanvasGradient::addColorStop):
480         * html/CanvasGradient.h:
481         * html/CanvasPattern.cpp:
482         (WebCore::CanvasPattern::CanvasPattern):
483         (WebCore::CanvasPattern::~CanvasPattern):
484         * html/CanvasPattern.h:
485         * html/CanvasRenderingContext2D.cpp:
486         (WebCore::CanvasRenderingContext2D::fill):
487         (WebCore::CanvasRenderingContext2D::stroke):
488         (WebCore::CanvasRenderingContext2D::fillRect):
489         (WebCore::CanvasRenderingContext2D::setShadow):
490         (WebCore::CanvasRenderingContext2D::applyShadow):
491         (WebCore::CanvasRenderingContext2D::drawImage):
492         (WebCore::CanvasRenderingContext2D::createPattern):
493         (WebCore::CanvasRenderingContext2D::applyStrokePattern):
494         (WebCore::CanvasRenderingContext2D::applyFillPattern):
495         * html/CanvasRenderingContext2D.h:
496         * html/CanvasStyle.cpp:
497         (WebCore::CanvasStyle::applyStrokeColor):
498         (WebCore::CanvasStyle::applyFillColor):
499         * html/HTMLCanvasElement.cpp:
500         (WebCore::HTMLCanvasElement::paint):
501         (WebCore::HTMLCanvasElement::createDrawingContext):
502         * html/HTMLCanvasElement.h:
503
504 2006-10-09  Adam Roben  <aroben@apple.com>
505
506         Reviewed by Maciej.
507
508         Fix a possible recursive destructor call.
509
510         * page/Frame.cpp:
511         (WebCore::Frame::~Frame): Add a FIXME about cleaning up the destructor.
512         (WebCore::Frame::finishedParsing): Don't create a protector RefPtr if
513         we're already being destroyed.
514
515 2006-10-09  Sam Weinig  <sam.weinig@gmail.com>
516
517         Reviewed by Tim H.
518
519         Patch for http://bugs.webkit.org/show_bug.cgi?id=11234
520         Assorted Objective-C bindings changes
521
522         - Auto-generate DOMSVGPathSegArcAbs, DOMSVGPathSegArcRel, DOMSVGPathSegClosePath, 
523           DOMSVGPathSegCurvetoCubicAbs, DOMSVGPathSegCurvetoCubicRel, 
524           DOMSVGPathSegCurvetoCubicSmoothAbs, DOMSVGPathSegCurvetoCubicSmoothRel, 
525           DOMSVGPathSegCurvetoQuadraticAbs, DOMSVGPathSegCurvetoQuadraticRel, 
526           DOMSVGPathSegCurvetoQuadraticSmoothAbs, DOMSVGPathSegCurvetoQuadraticSmoothRel, 
527           DOMSVGPathSegLinetoAbs, DOMSVGPathSegLinetoHorizontalAbs, 
528           DOMSVGPathSegLinetoHorizontalRel, DOMSVGPathSegLinetoRel, 
529           DOMSVGPathSegLinetoVerticalAbs, DOMSVGPathSegLinetoVerticalRel, 
530           DOMSVGPathSegMovetoAbs, DOMSVGPathSegMovetoRel and DOMSVGSVGElement.
531
532         - Auto-generate absoluteImageURL method for DOMHTMLInputElement and
533           DOMHTMLObjectElement.
534
535         - Auto-generate the internal methods for classes with ivars (notably 
536           DOMNodeIterator and DOMTreeWalker)
537
538         - Put more methods in the WebCore namespace and factor out the  
539           displayString method into DOMInternal.h as done by Darin in his 
540           patch for http://bugs.webkit.org/show_bug.cgi?id=11219.
541
542         * DerivedSources.make:
543         * WebCore.xcodeproj/project.pbxproj:
544         * bindings/objc/DOM.mm:
545         (-[DOMNode _initWithNode:WebCore::]):
546         (+[DOMNode _nodeWith:WebCore::]):
547         (-[DOMNode addEventListener:listener:useCapture:]):
548         (-[DOMNode removeEventListener:listener:useCapture:]):
549         (-[DOMNode dispatchEvent:]):
550         (-[DOMElement _imageTIFFRepresentation]):
551         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
552         (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
553         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
554         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
555         * bindings/objc/DOMCSS.mm:
556         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
557         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
558         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
559         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
560         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
561         (+[DOMCSSValue _CSSValueWith:WebCore::]):
562         * bindings/objc/DOMEvents.mm:
563         (-[DOMEvent _initWithEvent:WebCore::]):
564         (+[DOMEvent _eventWith:WebCore::]):
565         * bindings/objc/DOMExtensions.h:
566         * bindings/objc/DOMHTML.mm:
567         (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
568         * bindings/objc/DOMInternal.h:
569         (-[DOMNodeFilter WebCore::]):
570         * bindings/objc/DOMInternal.mm:
571         (-[WebScriptObject _init]):
572         (-[WebScriptObject _initializeScriptDOMNodeImp]):
573         (WebCore::displayString):
574         * bindings/objc/DOMObject.mm:
575         (-[DOMObject dealloc]):
576         (-[DOMObject finalize]):
577         * bindings/objc/DOMRGBColor.mm:
578         (-[DOMRGBColor dealloc]):
579         (-[DOMRGBColor finalize]):
580         (-[DOMRGBColor color]):
581         (-[DOMRGBColor _initWithRGB:WebCore::]):
582         (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
583         * bindings/objc/DOMSVG.h:
584         * bindings/objc/DOMSVGPathSegInternal.h: Added.
585         * bindings/objc/DOMSVGPathSegInternal.mm: Added.
586         (-[DOMSVGPathSeg WebCore::]):
587         (-[DOMSVGPathSeg _initWithSVGPathSeg:WebCore::]):
588         (+[DOMSVGPathSeg _SVGPathSegWith:WebCore::]):
589         * bindings/objc/DOMXPath.mm:
590         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
591         (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
592         * bindings/objc/PublicDOMInterfaces.h:
593         * bindings/scripts/CodeGeneratorObjC.pm:
594         * dom/NodeIterator.idl:
595         * dom/TreeWalker.idl:
596         * html/HTMLInputElement.idl:
597         * html/HTMLObjectElement.idl:
598         * ksvg2/svg/SVGDocument.idl:
599         * ksvg2/svg/SVGElement.idl:
600         * ksvg2/svg/SVGPathSeg.idl:
601         * ksvg2/svg/SVGPathSegArcAbs.idl:
602         * ksvg2/svg/SVGPathSegArcRel.idl:
603         * ksvg2/svg/SVGPathSegClosePath.idl:
604         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl:
605         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl:
606         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
607         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl:
608         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl:
609         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl:
610         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
611         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
612         * ksvg2/svg/SVGPathSegLinetoAbs.idl:
613         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl:
614         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl:
615         * ksvg2/svg/SVGPathSegLinetoRel.idl:
616         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl:
617         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl:
618         * ksvg2/svg/SVGPathSegMovetoAbs.idl:
619         * ksvg2/svg/SVGPathSegMovetoRel.idl:
620
621 2006-10-09  Don Gibson  <dgibson77@gmail.com>
622
623         Unreviewed build fix.
624
625         Fix windows build bustage.
626
627         * platform/win/TemporaryLinkStubs.cpp:
628
629 2006-10-09  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
630
631         Reviewed by Geoff.
632
633         Fix memory leaks discovered via valgrind. Gdk build fixes.
634
635         * Projects/gdk/webcore-gdk.bkl:
636         * make-generated-sources.sh:
637         * platform/cairo/ImageCairo.cpp:
638         (WebCore::Image::draw):
639         * platform/gdk/FrameGdk.cpp:
640         (WebCore::FrameGdk::handleGdkEvent):
641         * platform/gdk/FrameGdk.h:
642         * platform/gdk/PlatformScrollBar.h:
643         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
644         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
645
646 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
647
648         Reviewed by Beth.
649
650         Fix LayoutTests/fast/css/case-transform.html with Qt - the last crashing layout test.
651
652         * platform/qt/GlyphMapQt.cpp: Handle UTF-16 characters properly
653         (WebCore::GlyphMap::fillPage):
654
655 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
656
657         Unreviewed build fix.
658
659         Fix for Qt/Linux build, based on fixes to the Win32 build in r16928 and r16929.
660
661         * platform/qt/FrameQt.cpp:
662         (WebCore::FrameQt::createJavaAppletWidget):
663         * platform/qt/FrameQt.h:
664         * platform/qt/TemporaryLinkStubs.cpp:
665
666 2006-10-09  Brady Eidson  <beidson@apple.com>
667
668         Reviewed by Maciej
669
670         Tiny changes to help reorganize WebFrameLoader code in WebKit
671
672         * bridge/mac/WebCoreIconDatabaseBridge.h: Added "createInstance"
673         * bridge/mac/WebCoreIconDatabaseBridge.mm:
674         (+[WebCoreIconDatabaseBridge sharedInstance]): Added, uses createInstance from WebKit side
675
676 2006-10-09  Adam Roben  <aroben@apple.com>
677
678         Reviewed by Adele.
679
680         Remove redundant call to Frame::cancelAndClear from ~Frame, since it's
681         already called frome ~FrameMac.
682
683         * page/Frame.cpp:
684         (WebCore::Frame::~Frame):
685
686 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
687
688         * bridge/win/FrameWin.h:
689         Add function declaration.
690         
691 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
692
693         * platform/win/TemporaryLinkStubs.cpp:
694         (FrameWin::createJavaAppletWidget):
695         Try fixing the Win32 build.
696
697 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
698
699         Reviewed by Adam.
700
701         Move applet widget creation to Frame and get rid of JavaAppletWidget.
702         * WebCore.xcodeproj/project.pbxproj:
703         * bridge/JavaAppletWidget.h: Removed.
704         * bridge/mac/FrameMac.h:
705         * bridge/mac/FrameMac.mm:
706         (WebCore::FrameMac::createJavaAppletWidget):
707         * bridge/mac/JavaAppletWidget.mm: Removed.
708         * page/Frame.h:
709         * rendering/RenderApplet.cpp:
710         (WebCore::RenderApplet::createWidgetIfNecessary):
711
712 2006-10-09  Mitz Pettel  <mitz@webkit.org>
713
714         Reviewed by Darin.
715
716         - http://bugs.webkit.org/show_bug.cgi?id=11220
717           Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
718
719         Subversion does not support resource forks and HFS metadata, so
720         the resources for this test need to be on a disk image.
721
722         * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
723         * manual-tests/resources/plain-text-paste.dmg: Added.
724         * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
725         * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
726         * manual-tests/resources/plain-text-paste/._4.txt: Removed.
727         * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
728         * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
729         * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
730         * manual-tests/resources/plain-text-paste/3.gif: Removed.
731         * manual-tests/resources/plain-text-paste/4.txt: Removed.
732         * manual-tests/resources/plain-text-paste/5.webloc: Removed.
733
734 2006-10-09  Rob Buis  <buis@kde.org>
735
736         Reviewed by Darin.
737
738         http://bugs.webkit.org/show_bug.cgi?id=11217
739         Cleanup svg coding style
740
741         Cleanup coding style in filter classes.
742
743         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
744         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
745         (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
746         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
747         * ksvg2/svg/SVGFEBlendElement.cpp:
748         (WebCore::SVGFEBlendElement::SVGFEBlendElement):
749         (WebCore::SVGFEBlendElement::parseMappedAttribute):
750         (WebCore::SVGFEBlendElement::filterEffect):
751         * ksvg2/svg/SVGFEBlendElement.h:
752         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
753         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
754         (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
755         (WebCore::SVGFEColorMatrixElement::filterEffect):
756         * ksvg2/svg/SVGFEColorMatrixElement.h:
757         * ksvg2/svg/SVGFECompositeElement.cpp:
758         (WebCore::SVGFECompositeElement::parseMappedAttribute):
759         * ksvg2/svg/SVGFECompositeElement.h:
760         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
761         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
762         * ksvg2/svg/SVGFEDisplacementMapElement.h:
763         * ksvg2/svg/SVGFEFloodElement.cpp:
764         (WebCore::SVGFEFloodElement::filterEffect):
765         * ksvg2/svg/SVGFEFuncAElement.cpp:
766         (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
767         * ksvg2/svg/SVGFEFuncBElement.cpp:
768         (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
769         * ksvg2/svg/SVGFEFuncGElement.cpp:
770         (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
771         * ksvg2/svg/SVGFEFuncRElement.cpp:
772         (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
773         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
774         (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
775         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
776         (WebCore::SVGFEGaussianBlurElement::filterEffect):
777         * ksvg2/svg/SVGFEGaussianBlurElement.h:
778         * ksvg2/svg/SVGFELightElement.cpp:
779         (WebCore::SVGFELightElement::SVGFELightElement):
780         (WebCore::SVGFELightElement::parseMappedAttribute):
781         * ksvg2/svg/SVGFELightElement.h:
782         * ksvg2/svg/SVGFEMergeElement.cpp:
783         (WebCore::SVGFEMergeElement::SVGFEMergeElement):
784
785 2006-10-09  Rob Buis  <buis@kde.org>
786
787         Reviewed by olliej.
788
789         http://bugs.webkit.org/show_bug.cgi?id=11217
790         Cleanup svg coding style
791
792         Cleanup coding style in SVGPath* classes.
793
794         * ksvg2/svg/SVGPathElement.cpp:
795         (WebCore::SVGPathElement::SVGPathElement):
796         (WebCore::SVGPathElement::getPointAtLength):
797         (WebCore::SVGPathElement::createSVGPathSegClosePath):
798         (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
799         (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
800         (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
801         (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
802         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
803         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
804         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
805         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
806         (WebCore::SVGPathElement::createSVGPathSegArcAbs):
807         (WebCore::SVGPathElement::createSVGPathSegArcRel):
808         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
809         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
810         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
811         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
812         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
813         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
814         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
815         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
816         (WebCore::SVGPathElement::svgMoveTo):
817         (WebCore::SVGPathElement::svgLineTo):
818         (WebCore::SVGPathElement::svgLineToHorizontal):
819         (WebCore::SVGPathElement::svgLineToVertical):
820         (WebCore::SVGPathElement::svgCurveToCubic):
821         (WebCore::SVGPathElement::svgCurveToCubicSmooth):
822         (WebCore::SVGPathElement::svgCurveToQuadratic):
823         (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
824         (WebCore::SVGPathElement::svgArcTo):
825         (WebCore::SVGPathElement::parseMappedAttribute):
826         (WebCore::SVGPathElement::pathSegList):
827         (WebCore::SVGPathElement::normalizedPathSegList):
828         (WebCore::SVGPathElement::animatedPathSegList):
829         (WebCore::SVGPathElement::animatedNormalizedPathSegList):
830         (WebCore::SVGPathElement::toPathData):
831         * ksvg2/svg/SVGPathElement.h:
832         (WebCore::SVGPathElement::rendererIsNeeded):
833         * ksvg2/svg/SVGPathSeg.h:
834         * ksvg2/svg/SVGPathSegArc.cpp:
835
836 2006-10-09  Rob Buis  <buis@kde.org>
837
838         Reviewed by aroben.
839
840         http://bugs.webkit.org/show_bug.cgi?id=11217
841         Cleanup svg coding style
842
843         Cleanup coding style in svg shape classes.
844
845         * ksvg2/svg/SVGCircleElement.cpp:
846         (WebCore::SVGCircleElement::SVGCircleElement):
847         (WebCore::SVGCircleElement::parseMappedAttribute):
848         (WebCore::SVGCircleElement::pushAttributeContext):
849         * ksvg2/svg/SVGCircleElement.h:
850         (WebCore::SVGCircleElement::rendererIsNeeded):
851         * ksvg2/svg/SVGEllipseElement.cpp:
852         * ksvg2/svg/SVGEllipseElement.h:
853         (WebCore::SVGEllipseElement::rendererIsNeeded):
854         * ksvg2/svg/SVGLineElement.cpp:
855         (WebCore::SVGLineElement::parseMappedAttribute):
856         (WebCore::SVGLineElement::pushAttributeContext):
857         * ksvg2/svg/SVGLineElement.h:
858         (WebCore::SVGLineElement::rendererIsNeeded):
859         * ksvg2/svg/SVGPolyElement.cpp:
860         (WebCore::SVGPolyElement::SVGPolyElement):
861         (WebCore::SVGPolyElement::points):
862         (WebCore::SVGPolyElement::animatedPoints):
863         (WebCore::SVGPolyElement::parseMappedAttribute):
864         (WebCore::SVGPolyElement::notifyAttributeChange):
865         * ksvg2/svg/SVGPolyElement.h:
866         (WebCore::SVGPolyElement::rendererIsNeeded):
867         * ksvg2/svg/SVGPolygonElement.cpp:
868         (WebCore::SVGPolygonElement::SVGPolygonElement):
869         (WebCore::SVGPolygonElement::toPathData):
870         * ksvg2/svg/SVGPolygonElement.h:
871         * ksvg2/svg/SVGPolylineElement.cpp:
872         (WebCore::SVGPolylineElement::SVGPolylineElement):
873         (WebCore::SVGPolylineElement::toPathData):
874         * ksvg2/svg/SVGPolylineElement.h:
875         * ksvg2/svg/SVGRectElement.cpp:
876         (WebCore::SVGRectElement::parseMappedAttribute):
877         (WebCore::SVGRectElement::pushAttributeContext):
878         * ksvg2/svg/SVGRectElement.h:
879         (WebCore::SVGRectElement::rendererIsNeeded):
880
881 2006-10-08  Darin Adler  <darin@apple.com>
882
883         Reviewed by Maciej.
884
885         - added a bit more WebCoreSystemInterface
886
887             wkGetNSURLResponseCalculatedExpiration
888             wkGetNSURLResponseLastModifiedDate
889             wkGetNSURLResponseMustRevalidate
890
891         * WebCore.exp: Added the new symbols.
892         * platform/mac/WebCoreSystemInterface.h: Ditto.
893         * platform/mac/WebCoreSystemInterface.mm: Ditto.
894
895         - quiet down the code generation script
896
897         * bindings/scripts/CodeGenerator.pm:
898
899 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
900
901         Reviewed by Darin.
902
903         - more code laundering - add wkSupportsMultipartXMixedReplace
904
905         * WebCore.exp:
906         * platform/mac/WebCoreSystemInterface.h:
907         * platform/mac/WebCoreSystemInterface.mm:
908
909 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
910
911         Reviewed by Darin and Oliver.
912
913         Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
914
915         * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
916         (WebCore::GraphicsContext::drawConvexPolygon):
917
918 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
919
920         Reviewed by Darin.
921
922         * page/Frame.cpp:
923         (WebCore::Frame::submitForm):
924         No need to use latin1() here.
925
926 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
927
928         Reviewed by Darin.
929
930         Kill warnings when generating IDL files on Qt/Linux, as the
931         SOURCE_ROOT environment variable is not defined (and not needed) for us.
932
933         * bindings/scripts/CodeGenerator.pm:
934
935 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
936
937         Reviewed by Darin.
938
939         - split didNotOpenURL: into general and page-cache-specific parts
940
941         * bridge/mac/WebCoreFrameBridge.h:
942         * bridge/mac/WebCoreFrameBridge.mm:
943         (-[WebCoreFrameBridge didNotOpenURL:]):
944         (-[WebCoreFrameBridge invalidatePageCache:]):
945
946 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
947
948         Reviewed by Darin.
949
950         * loader/loader.cpp:
951         Remove DeprecatedStringList.h include.
952         
953         * page/Frame.cpp:
954         (WebCore::Frame::submitForm):
955         Don't remove "attach" from mailto URLs, we don't do it anywhere else.
956
957 2006-10-08  Sam Weinig  <sam.weinig@gmail.com>
958
959         Reviewed by Darin.
960
961         Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
962         Yet another round of Objective-C SVG DOM bindings auto-generation
963
964         - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement, 
965           DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
966           DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement, 
967           DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement, 
968           DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement, 
969           DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement, 
970           DOMSVGZoomAndPan and DOMSVGZoomEvent.
971
972         - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
973           using the new [ConvertFromString] property.
974
975         - Add forward declarations for NS* types to auto-generated classes.
976
977         * DerivedSources.make:
978         * WebCore.xcodeproj/project.pbxproj:
979         * bindings/objc/DOMHTMLAppletElement.mm: Removed.
980         * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
981         * bindings/objc/DOMInternal.h:
982         * bindings/objc/DOMSVG.h:
983         * bindings/scripts/CodeGeneratorObjC.pm:
984         * html/HTMLAppletElement.idl:
985         * html/HTMLEmbedElement.idl:
986         * ksvg2/svg/SVGPatternElement.idl:
987         * ksvg2/svg/SVGPolygonElement.idl:
988         * ksvg2/svg/SVGPolylineElement.idl:
989         * ksvg2/svg/SVGRadialGradientElement.idl:
990         * ksvg2/svg/SVGRenderingIntent.idl:
991         * ksvg2/svg/SVGScriptElement.idl:
992         * ksvg2/svg/SVGSetElement.idl:
993         * ksvg2/svg/SVGStopElement.idl:
994         * ksvg2/svg/SVGSwitchElement.idl:
995         * ksvg2/svg/SVGSymbolElement.idl:
996         * ksvg2/svg/SVGTRefElement.idl:
997         * ksvg2/svg/SVGTSpanElement.idl:
998         * ksvg2/svg/SVGTextContentElement.idl:
999         * ksvg2/svg/SVGTextElement.idl:
1000         * ksvg2/svg/SVGTextPositioningElement.idl:
1001         * ksvg2/svg/SVGTitleElement.idl:
1002         * ksvg2/svg/SVGUseElement.idl:
1003         * ksvg2/svg/SVGViewElement.idl:
1004         * ksvg2/svg/SVGZoomEvent.idl:
1005
1006 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
1007
1008         Reviewed by Maciej.
1009
1010         Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.        
1011         * loader/loader.cpp:
1012         (WebCore::Loader::servePendingRequests):
1013         
1014 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
1015
1016         Reviewed by Darin.
1017
1018         Convert a bunch of RefPtr<StringImpl> to String.
1019         
1020         * bridge/mac/FrameMac.h:
1021         * bridge/mac/FrameMac.mm:
1022         (WebCore::FrameMac::didTellBridgeAboutLoad):
1023         (WebCore::FrameMac::haveToldBridgeAboutLoad):
1024         * dom/BeforeUnloadEvent.cpp:
1025         (WebCore::BeforeUnloadEvent::storeResult):
1026         * dom/BeforeUnloadEvent.h:
1027         (WebCore::BeforeUnloadEvent::result):
1028         * dom/Document.cpp:
1029         (WebCore::Document::createEntityReference):
1030         * dom/Entity.cpp:
1031         (WebCore::Entity::Entity):
1032         (WebCore::Entity::nodeName):
1033         (WebCore::Entity::toString):
1034         * dom/Entity.h:
1035         (WebCore::Entity::publicId):
1036         (WebCore::Entity::systemId):
1037         (WebCore::Entity::notationName):
1038         * dom/EntityReference.cpp:
1039         (WebCore::EntityReference::EntityReference):
1040         (WebCore::EntityReference::nodeName):
1041         (WebCore::EntityReference::cloneNode):
1042         (WebCore::EntityReference::toString):
1043         * dom/EntityReference.h:
1044         * dom/KeyboardEvent.cpp:
1045         (WebCore::KeyboardEvent::KeyboardEvent):
1046         (WebCore::KeyboardEvent::initKeyboardEvent):
1047         * dom/KeyboardEvent.h:
1048         (WebCore::KeyboardEvent::keyIdentifier):
1049         * dom/MutationEvent.cpp:
1050         (WebCore::MutationEvent::MutationEvent):
1051         (WebCore::MutationEvent::initMutationEvent):
1052         * dom/MutationEvent.h:
1053         (WebCore::MutationEvent::prevValue):
1054         (WebCore::MutationEvent::newValue):
1055         (WebCore::MutationEvent::attrName):
1056         * dom/Notation.cpp:
1057         (WebCore::Notation::Notation):
1058         (WebCore::Notation::nodeName):
1059         * dom/Notation.h:
1060         (WebCore::Notation::publicId):
1061         (WebCore::Notation::systemId):
1062         * dom/ProcessingInstruction.cpp:
1063         (WebCore::ProcessingInstruction::ProcessingInstruction):
1064         (WebCore::ProcessingInstruction::setData):
1065         (WebCore::ProcessingInstruction::nodeName):
1066         (WebCore::ProcessingInstruction::nodeValue):
1067         (WebCore::ProcessingInstruction::cloneNode):
1068         (WebCore::ProcessingInstruction::checkStyleSheet):
1069         (WebCore::ProcessingInstruction::toString):
1070         * dom/ProcessingInstruction.h:
1071         (WebCore::ProcessingInstruction::target):
1072         (WebCore::ProcessingInstruction::data):
1073         (WebCore::ProcessingInstruction::localHref):
1074
1075 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
1076
1077         Reviewed by Tim H.
1078
1079         Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
1080         10 more SVG Objective-C auto-generated bindings
1081
1082         - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox, 
1083           DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
1084           DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement, 
1085           DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
1086
1087         - Auto-generate the text method for DOMRange.
1088
1089         * DerivedSources.make:
1090         * WebCore.xcodeproj/project.pbxproj:
1091         * bindings/objc/DOM.mm:
1092         * bindings/objc/DOMExtensions.h:
1093         * bindings/objc/DOMInternal.h:
1094         * bindings/objc/DOMPrivate.h:
1095         * bindings/objc/DOMRGBColor.mm:
1096         * bindings/objc/DOMSVG.h:
1097         * bindings/objc/PublicDOMInterfaces.h:
1098         * bindings/scripts/CodeGeneratorObjC.pm:
1099         * dom/Range.idl:
1100         * ksvg2/svg/SVGFilterElement.cpp:
1101         * ksvg2/svg/SVGFilterElement.h:
1102         * ksvg2/svg/SVGFilterElement.idl:
1103         * ksvg2/svg/SVGForeignObjectElement.idl:
1104         * ksvg2/svg/SVGGElement.idl:
1105         * ksvg2/svg/SVGGradientElement.idl:
1106         * ksvg2/svg/SVGImageElement.idl:
1107         * ksvg2/svg/SVGLineElement.idl:
1108         * ksvg2/svg/SVGLinearGradientElement.idl:
1109         * ksvg2/svg/SVGMarkerElement.idl:
1110         * ksvg2/svg/SVGMaskElement.idl:
1111         * ksvg2/svg/SVGPaint.idl:
1112
1113 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
1114
1115         Reviewed by Tim H.
1116
1117         Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
1118         Auto-generate a few more Objective-C DOM interfaces
1119
1120         - Fully auto-generate DOMAbstractView and DOMRange.
1121
1122         - Auto-generate just the interface for DOMRGBColor.
1123
1124         - Add DOMRanges.h as the new top level file for Ranges
1125           module.
1126
1127         - Add DOMRanges.h and DOMXPath.h to DOM.mm
1128
1129         * DerivedSources.make:
1130         * WebCore.xcodeproj/project.pbxproj:
1131         * bindings/objc/DOM.h:
1132         * bindings/objc/DOM.mm:
1133         * bindings/objc/DOMAbstractView.h: Removed.
1134         * bindings/objc/DOMAbstractView.mm: Removed.
1135         * bindings/objc/DOMInternal.h:
1136         * bindings/objc/DOMPrivate.h:
1137         * bindings/objc/DOMRGBColor.h: Removed.
1138         * bindings/objc/DOMRGBColor.mm:
1139         * bindings/objc/DOMRange.h: Removed.
1140         * bindings/objc/DOMRanges.h: Added.
1141         * bindings/objc/PublicDOMInterfaces.h:
1142         * bindings/scripts/CodeGeneratorObjC.pm:
1143         * css/RGBColor.idl:
1144         * dom/Range.idl:
1145         * page/AbstractView.idl: Added.
1146
1147 2006-10-07  Andrew Wellington  <proton@wiretapped.net>
1148
1149         Reviewed by Eric.
1150
1151         Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
1152         http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
1153
1154         Return null when there is no frame. This matches Firefox.
1155
1156         * bindings/js/kjs_html.cpp:
1157         (KJS::JSHTMLDocument::getValueProperty):
1158
1159 2006-10-07  David Hyatt  <hyatt@apple.com>
1160
1161         Implement scroll corner painting (a white rect fill) for overflow areas to cover up
1162         scrollbar joins properly.
1163
1164         Refactor painting of scrollbars and resizers into common functions.  Eliminate the
1165         extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
1166
1167         Reviewed by mitz
1168
1169         * page/FrameView.cpp:
1170         (WebCore::selectCursor):
1171         (WebCore::FrameView::handleMouseMoveEvent):
1172         * platform/mac/PlatformScrollBar.h:
1173         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
1174         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
1175         * rendering/RenderLayer.cpp:
1176         (WebCore::RenderLayer::RenderLayer):
1177         (WebCore::RenderLayer::~RenderLayer):
1178         (WebCore::RenderLayer::updateLayerPositions):
1179         (WebCore::scrollCornerRect):
1180         (WebCore::RenderLayer::positionOverflowControls):
1181         (WebCore::RenderLayer::paintOverflowControls):
1182         (WebCore::RenderLayer::isPointInResizeControl):
1183         (WebCore::RenderLayer::paintLayer):
1184         * rendering/RenderLayer.h:
1185
1186 2006-10-07  Mark Rowe  <bdash@webkit.org>
1187
1188         Reviewed by Mitz.
1189
1190         Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
1191         matching recent ResourceLoader changes.
1192
1193         * platform/gdk/FrameGdk.cpp:
1194         (WebCore::FrameGdk::openURL):
1195         (WebCore::FrameGdk::urlSelected):
1196         * platform/gdk/PlatformScrollBar.h:
1197         * platform/gdk/ResourceLoaderCurl.cpp:
1198         (WebCore::ResourceLoader::start):
1199         * platform/gdk/ScrollViewGdk.cpp:
1200         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
1201         (WebCore::ScrollView::resizeContents):
1202         (WebCore::ScrollView::scrollBy):
1203         (WebCore::ScrollView::hScrollbarMode):
1204         (WebCore::ScrollView::vScrollbarMode):
1205         (WebCore::ScrollView::suppressScrollbars):
1206         (WebCore::ScrollView::setHScrollbarMode):
1207         (WebCore::ScrollView::setVScrollbarMode):
1208         (WebCore::ScrollView::setScrollbarsMode):
1209         * platform/gdk/TemporaryLinkStubs.cpp:
1210         (FrameView::passMousePressEventToScrollbar):
1211         (Widget::removeFromParent):
1212         (ScrollView::addChild):
1213         (ScrollView::updateScrollbars):
1214         (ScrollView::scrollbarUnderMouse):
1215         (PlatformScrollbar::PlatformScrollbar):
1216         (PlatformScrollbar::~PlatformScrollbar):
1217         (PlatformScrollbar::width):
1218         (PlatformScrollbar::height):
1219         (PlatformScrollbar::setEnabled):
1220         (PlatformScrollbar::paint):
1221         (PlatformScrollbar::updateThumbPosition):
1222         (PlatformScrollbar::updateThumbProportion):
1223         (PlatformScrollbar::setRect):
1224         (Scrollbar::Scrollbar):
1225         (Scrollbar::setSteps):
1226         (Scrollbar::scroll):
1227         (Scrollbar::setValue):
1228         (Scrollbar::setProportion):
1229
1230 2006-10-06  Dave Hyatt  <hyatt@apple.com>
1231
1232         Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
1233
1234         * page/FrameView.cpp:
1235         (WebCore::FrameView::windowClipRect):
1236         * page/FrameView.h:
1237         * platform/ScrollView.h:
1238         * platform/Widget.cpp:
1239         (WebCore::Widget::windowClipRect):
1240         * platform/Widget.h:
1241         (WebCore::Widget::geometryChanged):
1242         (WebCore::Widget::handleMouseMoveEvent):
1243         (WebCore::Widget::handleMouseReleaseEvent):
1244         * platform/mac/ScrollViewMac.mm:
1245         (WebCore::ScrollView::addChild):
1246         * rendering/RenderLayer.cpp:
1247         (WebCore::RenderLayer::documentClipRect):
1248         * rendering/RenderLayer.h:
1249
1250 2006-10-06  Steve Falkenburg  <sfalken@apple.com>
1251
1252         Reviewed by Adam.
1253
1254         Add another method we'll need for scrollbar dodging
1255
1256         * platform/ScrollView.h:
1257         * platform/win/TemporaryLinkStubs.cpp:
1258         (ScrollView::resizerOverlapsContent):
1259
1260 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
1261
1262         Reviewed by Tim H.
1263
1264         Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
1265         Auto-generate the interfaces even for Objective-C DOM 
1266         bindings that need custom implementations
1267
1268         - Fully auto-generate DOMEventTarget, DOMNodeFilter and 
1269           DOMHTMLOptionElement.
1270
1271         - Auto-generate just the interface for DOMHTMLAppletElement,
1272           DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
1273           using the new IDL property ObjCCustomImplementation.
1274
1275         * DerivedSources.make:
1276         * WebCore.xcodeproj/project.pbxproj:
1277         * bindings/objc/DOMEventTarget.h: Removed.
1278         * bindings/objc/DOMHTMLAppletElement.h: Removed.
1279         * bindings/objc/DOMHTMLEmbedElement.h: Removed.
1280         * bindings/objc/DOMHTMLOptionElement.h: Removed.
1281         * bindings/objc/DOMHTMLOptionElement.mm: Removed.
1282         * bindings/objc/DOMInternal.h:
1283         * bindings/objc/DOMNodeFilter.h: Removed.
1284         * bindings/objc/DOMSVGNumber.h: Removed.
1285         * bindings/objc/DOMSVGPoint.h: Removed.
1286         * bindings/objc/DOMSVGPoint.mm:
1287         (-[DOMSVGPoint matrixTransform:]):
1288         * bindings/objc/DOMSVGRect.h: Removed.
1289         * bindings/objc/PublicDOMInterfaces.h:
1290         * bindings/scripts/CodeGeneratorObjC.pm:
1291         * dom/EventTarget.idl:
1292         * html/HTMLAppletElement.idl:
1293         * html/HTMLEmbedElement.idl:
1294         * html/HTMLOptionElement.idl:
1295         * ksvg2/svg/SVGNumber.idl:
1296         * ksvg2/svg/SVGPoint.idl:
1297         * ksvg2/svg/SVGRect.idl:
1298
1299 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
1300
1301         Reviewed by Tim H.
1302
1303         Make Qt/Linux compile again completly.
1304
1305         * platform/qt/WidgetQt.cpp:
1306         (WebCore::Widget::removeFromParent):
1307
1308 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
1309
1310         Reviewed by Tim H.
1311
1312         Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
1313
1314         * platform/qt/PlatformScrollBar.h:
1315         * platform/qt/ScrollViewQt.cpp:
1316         (WebCore::ScrollView::hScrollbarMode):
1317         (WebCore::ScrollView::vScrollbarMode):
1318         (WebCore::ScrollView::suppressScrollbars):
1319         (WebCore::ScrollView::setHScrollbarMode):
1320         (WebCore::ScrollView::setVScrollbarMode):
1321         (WebCore::ScrollView::setScrollbarsMode):
1322         (WebCore::ScrollView::scrollbarUnderMouse):
1323         * platform/qt/TemporaryLinkStubs.cpp:
1324         (WebCore::Scrollbar::Scrollbar):
1325         (WebCore::Scrollbar::setSteps):
1326         (WebCore::Scrollbar::scroll):
1327         (WebCore::Scrollbar::setValue):
1328         (WebCore::Scrollbar::setProportion):
1329         (WebCore::PlatformScrollbar::PlatformScrollbar):
1330         (WebCore::PlatformScrollbar::~PlatformScrollbar):
1331         (WebCore::PlatformScrollbar::width):
1332         (WebCore::PlatformScrollbar::height):
1333         (WebCore::PlatformScrollbar::setEnabled):
1334         (WebCore::PlatformScrollbar::paint):
1335         (WebCore::PlatformScrollbar::updateThumbPosition):
1336         (WebCore::PlatformScrollbar::updateThumbProportion):
1337         (WebCore::PlatformScrollbar::setRect):
1338         (FrameView::passMousePressEventToScrollbar):
1339
1340 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
1341
1342         Reviewed by Tim H.
1343
1344         Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
1345         Another round of Objective-C SVG DOM bindings auto-generation
1346
1347         - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect, 
1348           DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement, 
1349           DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement, 
1350           DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
1351           DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement, 
1352           DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement, 
1353           DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement, 
1354           DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement, 
1355           DOMSVGFEOffsetElement, DOMSVGFEPointLightElement, 
1356           DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement, 
1357           DOMSVGFETileElement, DOMSVGFETurbulenceElement, 
1358           DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList. 
1359
1360         - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
1361           and DOMSVGRect.
1362
1363         - IDL clean up.
1364
1365         - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
1366           in it's macro declaration and definition.
1367
1368         * DerivedSources.make:
1369         * WebCore.xcodeproj/project.pbxproj:
1370         * bindings/objc/DOMCSS.mm:
1371         (+[DOMCSSValue _CSSValueWith:WebCore::]):
1372         * bindings/objc/DOMInternal.h:
1373         * bindings/objc/DOMSVG.h:
1374         * bindings/objc/DOMSVGNumber.h: Added.
1375         * bindings/objc/DOMSVGNumber.mm: Added.
1376         (-[DOMSVGNumber dealloc]):
1377         (-[DOMSVGNumber finalize]):
1378         (-[DOMSVGNumber value]):
1379         (-[DOMSVGNumber setValue:]):
1380         (-[DOMSVGNumber _SVGNumber]):
1381         (-[DOMSVGNumber _initWithFloat:]):
1382         (+[DOMSVGNumber _SVGNumberWith:]):
1383         * bindings/objc/DOMSVGPoint.h: Added.
1384         * bindings/objc/DOMSVGPoint.mm: Added.
1385         (-[DOMSVGPoint dealloc]):
1386         (-[DOMSVGPoint finalize]):
1387         (-[DOMSVGPoint x]):
1388         (-[DOMSVGPoint setX:]):
1389         (-[DOMSVGPoint y]):
1390         (-[DOMSVGPoint setY:]):
1391         (-[DOMSVGPoint WebCore::]):
1392         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
1393         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
1394         * bindings/objc/DOMSVGRect.h: Added.
1395         * bindings/objc/DOMSVGRect.mm: Added.
1396         (-[DOMSVGRect dealloc]):
1397         (-[DOMSVGRect finalize]):
1398         (-[DOMSVGRect x]):
1399         (-[DOMSVGRect setX:]):
1400         (-[DOMSVGRect y]):
1401         (-[DOMSVGRect setY:]):
1402         (-[DOMSVGRect width]):
1403         (-[DOMSVGRect setWidth:]):
1404         (-[DOMSVGRect height]):
1405         (-[DOMSVGRect setHeight:]):
1406         (-[DOMSVGRect WebCore::]):
1407         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
1408         (+[DOMSVGRect _SVGRectWith:WebCore::]):
1409         * bindings/scripts/CodeGeneratorObjC.pm:
1410         * ksvg2/svg/SVGAnimatedNumberList.idl:
1411         * ksvg2/svg/SVGAnimatedRect.idl:
1412         * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
1413         * ksvg2/svg/SVGCursorElement.idl:
1414         * ksvg2/svg/SVGFEBlendElement.idl:
1415         * ksvg2/svg/SVGFEColorMatrixElement.idl:
1416         * ksvg2/svg/SVGFEComponentTransferElement.idl:
1417         * ksvg2/svg/SVGFECompositeElement.idl:
1418         * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
1419         * ksvg2/svg/SVGFEDisplacementMapElement.idl:
1420         * ksvg2/svg/SVGFEDistantLightElement.idl:
1421         * ksvg2/svg/SVGFEFloodElement.idl:
1422         * ksvg2/svg/SVGFEFuncAElement.idl:
1423         * ksvg2/svg/SVGFEFuncBElement.idl:
1424         * ksvg2/svg/SVGFEFuncGElement.idl:
1425         * ksvg2/svg/SVGFEFuncRElement.idl:
1426         * ksvg2/svg/SVGFEGaussianBlurElement.idl:
1427         * ksvg2/svg/SVGFEImageElement.idl:
1428         * ksvg2/svg/SVGFEMergeElement.idl:
1429         * ksvg2/svg/SVGFEMergeNodeElement.idl:
1430         * ksvg2/svg/SVGFEOffsetElement.idl:
1431         * ksvg2/svg/SVGFEPointLightElement.idl:
1432         * ksvg2/svg/SVGFESpecularLightingElement.idl:
1433         * ksvg2/svg/SVGFESpotLightElement.idl:
1434         * ksvg2/svg/SVGFETileElement.idl:
1435         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1436         * ksvg2/svg/SVGFETurbulenceElement.h:
1437         * ksvg2/svg/SVGFETurbulenceElement.idl:
1438         * ksvg2/svg/SVGNumberList.idl:
1439
1440 2006-10-06  Adam Roben  <aroben@apple.com>
1441
1442         Backing out my previous change.
1443
1444         * WebCore.xcodeproj/project.pbxproj:
1445         * page/FrameView.cpp:
1446         (WebCore::FrameView::adjustViewSize):
1447
1448 2006-10-06  Adam Roben  <aroben@apple.com>
1449
1450         Build fix.
1451
1452         * WebCore.xcodeproj/project.pbxproj:
1453         * page/FrameView.cpp:
1454         (WebCore::FrameView::windowResizerRect):
1455
1456 2006-10-06  Adam Roben  <aroben@apple.com>
1457
1458         Reviewed by Maciej.
1459
1460         More loader tweaks.
1461
1462         * platform/ResourceLoader.h:
1463         * platform/ResourceLoaderInternal.h:
1464         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1465         * platform/win/TemporaryLinkStubs.cpp:
1466         (WebCore::ResourceLoader::newHTTPRequest):
1467
1468 2006-10-05  Steve Falkenburg  <sfalken@apple.com>
1469
1470         Reviewed by aroben.
1471
1472         Stub out some methods that we'll be able to use to dodge a window resizer.
1473
1474         * bridge/win/FrameWin.h:
1475         * page/Frame.h:
1476         (WebCore::Frame::windowResizerRect):
1477         * page/FrameView.h:
1478         * platform/ScrollView.h:
1479         (WebCore::ScrollView::windowResizerRect):
1480         * platform/Widget.h:
1481         * platform/win/TemporaryLinkStubs.cpp:
1482         (FrameView::windowResizerRect):
1483         (Widget::setParent):
1484         (Widget::parent):
1485         (FrameWin::windowResizerRect):
1486
1487 2006-10-05  Dave Hyatt  <hyatt@apple.com>
1488
1489         Stub out setFrameGeometry.
1490         
1491         * platform/ScrollView.h:
1492
1493 2006-10-05  Adele Peterson  <adele@apple.com>
1494
1495         Reverting autoscroll fix.  I need to rework this a little.
1496
1497         * page/Frame.cpp:
1498         (WebCore::Frame::handleAutoscroll):
1499         (WebCore::Frame::autoscrollTimerFired):
1500         (WebCore::Frame::stopAutoscrollTimer):
1501         * page/Frame.h:
1502         * rendering/RenderLayer.cpp:
1503         (WebCore::RenderLayer::~RenderLayer):
1504         * rendering/RenderListBox.cpp:
1505         (WebCore::RenderListBox::~RenderListBox):
1506
1507 2006-10-05  Alice  <alice.liu@apple.com>
1508
1509         Reviewed by Adam.
1510
1511         Fixed <rdar://problem/4731778>
1512
1513         * editing/CommandByName.cpp:
1514         (WebCore::Frame::Command::):
1515         was calling the wrong enabledFn for arrow selection and navigation
1516
1517 2006-10-05  Adele Peterson  <adele@apple.com>
1518
1519         Reviewed by Maciej.
1520
1521         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
1522           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
1523
1524         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
1525         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
1526
1527         * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
1528         (WebCore::Frame::handleAutoscroll):
1529         (WebCore::Frame::autoscrollTimerFired):
1530         (WebCore::Frame::autoscrollRenderer):
1531         (WebCore::Frame::setAutoscrollRenderer):
1532         (WebCore::Frame::stopAutoscrollTimer):
1533         * page/Frame.h:
1534
1535 2006-10-05  Don Gibson  <dgibson77@gmail.com>
1536
1537         Reviewed by Eric.
1538
1539         Fix win32 build bustage after ggaren's Scrollbar renaming changes.
1540         Properly include PlatformScrollBar.h in WbCore.vcproj.
1541         Clean up WidgetWin.cpp a bit.
1542
1543         * WebCore.vcproj/WebCore/WebCore.vcproj:
1544         * platform/Widget.h:
1545         * platform/win/PlatformScrollBar.h:
1546         * platform/win/ScrollViewWin.cpp:
1547         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
1548         (WebCore::ScrollView::resizeContents):
1549         (WebCore::ScrollView::scrollBy):
1550         (WebCore::ScrollView::hScrollbarMode):
1551         (WebCore::ScrollView::vScrollbarMode):
1552         (WebCore::ScrollView::suppressScrollbars):
1553         (WebCore::ScrollView::setHScrollbarMode):
1554         (WebCore::ScrollView::setVScrollbarMode):
1555         (WebCore::ScrollView::setScrollbarsMode):
1556         (WebCore::ScrollView::updateScrollbars):
1557         * platform/win/TemporaryLinkStubs.cpp:
1558         (FrameView::passMousePressEventToScrollbar):
1559         (Widget::removeFromParent):
1560         (ScrollView::scrollbarUnderMouse):
1561         (PlatformScrollbar::PlatformScrollbar):
1562         (PlatformScrollbar::~PlatformScrollbar):
1563         (PlatformScrollbar::width):
1564         (PlatformScrollbar::height):
1565         (PlatformScrollbar::setEnabled):
1566         (PlatformScrollbar::paint):
1567         (PlatformScrollbar::updateThumbPosition):
1568         (PlatformScrollbar::updateThumbProportion):
1569         (PlatformScrollbar::setRect):
1570         (Scrollbar::Scrollbar):
1571         (Scrollbar::setSteps):
1572         (Scrollbar::scroll):
1573         (Scrollbar::setValue):
1574         (Scrollbar::setProportion):
1575         * platform/win/WidgetWin.cpp:
1576         (WebCore::WidgetPrivate::WidgetPrivate):
1577         (WebCore::Widget::Widget):
1578         (WebCore::Widget::setContainingWindow):
1579         (WebCore::Widget::containingWindow):
1580
1581 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
1582
1583         build fix.
1584         
1585         * WebCore.xcodeproj/project.pbxproj:
1586         * bridge/mac/BrowserExtensionMac.mm:
1587         (WebCore::BrowserExtensionMac::createNewWindow):
1588         * bridge/mac/FrameMac.mm:
1589         (WebCore::FrameMac::createFrame):
1590         * bridge/mac/FrameViewMac.mm:
1591         (WebCore::FrameView::passMousePressEventToScrollbar):
1592         * bridge/mac/WebCoreFrameBridge.mm:
1593         (-[WebCoreFrameBridge installInFrame:]):
1594         * bridge/mac/WebCoreFrameView.h:
1595         * platform/ScrollBar.cpp:
1596         * platform/Widget.h:
1597         * platform/mac/PlatformScrollBar.h:
1598         * platform/mac/PlatformScrollBarMac.mm:
1599         (NSControlSizeForScrollBarControlSize):
1600         (-[WebCoreScrollBar initWithPlatformScrollbar:]):
1601         (-[WebCoreScrollBar detachPlatformScrollbar]):
1602         (-[WebCoreScrollBar scroll:]):
1603         (-[WebCoreScrollBar widget]):
1604         (WebCore::PlatformScrollbar::PlatformScrollbar):
1605         (WebCore::PlatformScrollbar::~PlatformScrollbar):
1606         (WebCore::PlatformScrollbar::updateThumbPosition):
1607         (WebCore::PlatformScrollbar::updateThumbProportion):
1608         (WebCore::PlatformScrollbar::scrollbarHit):
1609         (WebCore::PlatformScrollbar::width):
1610         (WebCore::PlatformScrollbar::height):
1611         (WebCore::PlatformScrollbar::setRect):
1612         (WebCore::PlatformScrollbar::setEnabled):
1613         (WebCore::PlatformScrollbar::paint):
1614         * platform/mac/ScrollViewMac.mm:
1615         (WebCore::ScrollView::setVScrollbarMode):
1616         (WebCore::ScrollView::setHScrollbarMode):
1617         (WebCore::ScrollView::setScrollbarsMode):
1618         (WebCore::ScrollView::vScrollbarMode):
1619         (WebCore::ScrollView::hScrollbarMode):
1620         (WebCore::ScrollView::suppressScrollbars):
1621         (WebCore::ScrollView::scrollbarUnderMouse):
1622         * platform/mac/WidgetMac.mm:
1623         (WebCore::Widget::removeFromParent):
1624         * rendering/RenderLayer.cpp:
1625         (WebCore::RenderLayer::destroyScrollbar):
1626
1627 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
1628
1629         build fix.
1630         
1631         * platform/Widget.h:
1632         * rendering/RenderLayer.cpp:
1633         (WebCore::RenderLayer::destroyScrollbar):
1634
1635 2006-10-06  Mitz Pettel  <mitz@webkit.org>
1636
1637         http://bugs.webkit.org/show_bug.cgi?id=8276
1638         Fix broken manual test added back in r13990.
1639
1640         Add resource forks for test resources.
1641
1642         * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
1643         * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
1644         * manual-tests/resources/plain-text-paste/._4.txt: Added.
1645         * manual-tests/resources/plain-text-paste/._5.webloc: Added.
1646
1647 2006-10-05  David Hyatt  <hyatt@apple.com>
1648
1649         Rename addClip to clip.
1650
1651         Reviewed by darin
1652
1653         * kcanvas/RenderForeignObject.cpp:
1654         (WebCore::RenderForeignObject::paint):
1655         * kcanvas/RenderSVGContainer.cpp:
1656         (WebCore::RenderSVGContainer::paint):
1657         * kcanvas/RenderSVGImage.cpp:
1658         (WebCore::RenderSVGImage::paint):
1659         * platform/GraphicsContext.h:
1660         * platform/cairo/GraphicsContextCairo.cpp:
1661         (WebCore::GraphicsContext::clip):
1662         * platform/cg/GraphicsContextCG.cpp:
1663         (WebCore::GraphicsContext::savePlatformState):
1664         (WebCore::GraphicsContext::restorePlatformState):
1665         (WebCore::GraphicsContext::clip):
1666         (WebCore::GraphicsContext::addRoundedRectClip):
1667         (WebCore::GraphicsContext::addInnerRoundedRectClip):
1668         (WebCore::GraphicsContext::scale):
1669         (WebCore::GraphicsContext::rotate):
1670         (WebCore::GraphicsContext::translate):
1671         (WebCore::GraphicsContext::concatCTM):
1672         * platform/cg/GraphicsContextPlatformPrivate.h:
1673         (WebCore::GraphicsContextPlatformPrivate::save):
1674         (WebCore::GraphicsContextPlatformPrivate::restore):
1675         (WebCore::GraphicsContextPlatformPrivate::clip):
1676         (WebCore::GraphicsContextPlatformPrivate::scale):
1677         (WebCore::GraphicsContextPlatformPrivate::rotate):
1678         (WebCore::GraphicsContextPlatformPrivate::translate):
1679         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
1680         * platform/qt/GraphicsContextQt.cpp:
1681         (WebCore::GraphicsContext::clip):
1682         (WebCore::GraphicsContext::addInnerRoundedRectClip):
1683         (WebCore::GraphicsContext::addRoundedRectClip):
1684         * rendering/InlineFlowBox.cpp:
1685         (WebCore::InlineFlowBox::paintBackground):
1686         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
1687         * rendering/InlineTextBox.cpp:
1688         (WebCore::InlineTextBox::paintSelection):
1689         (WebCore::InlineTextBox::paintTextMatchMarker):
1690         * rendering/RenderBox.cpp:
1691         (WebCore::RenderBox::paintBackgroundExtended):
1692         * rendering/RenderButton.cpp:
1693         (WebCore::RenderButton::paintObject):
1694         * rendering/RenderFileUploadControl.cpp:
1695         (WebCore::RenderFileUploadControl::paintObject):
1696         * rendering/RenderLayer.cpp:
1697         (WebCore::RenderLayer::beginTransparencyLayers):
1698         (WebCore::setClip):
1699         * rendering/RenderListBox.cpp:
1700         (WebCore::RenderListBox::paintObject):
1701         * rendering/RenderMenuList.cpp:
1702         (WebCore::RenderMenuList::paintObject):
1703         * rendering/RenderTableCell.cpp:
1704         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
1705
1706 2006-10-05  Mitz Pettel  <mitz@webkit.org>
1707
1708         Reviewed by Darin.
1709
1710         - http://bugs.webkit.org/show_bug.cgi?id=10386
1711           Delete RenderImageButton.* and remove references from .vcproj and .bkl files
1712
1713         * CMakeLists.txt:
1714         * WebCore.vcproj/WebCore/WebCore.vcproj:
1715         * WebCoreSources.bkl:
1716         * rendering/RenderImageButton.cpp: Removed.
1717         * rendering/RenderImageButton.h: Removed.
1718
1719 2006-10-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1720
1721         Reviewed by Darin.
1722
1723         - http://bugs.webkit.org/show_bug.cgi?id=11067
1724           manual-tests/scrollbar-hittest2.html is invalid
1725
1726         * manual-tests/scrollbar-hittest2.html:
1727
1728 2006-10-05  David Carson  <dacarson@gmail.com>
1729
1730         Reviewed by Darin.
1731
1732         http://bugs.webkit.org/show_bug.cgi?id=11152
1733         Adjust the tokenizer chunk size to be smaller for
1734         mobile devices, and also decrease the yield timer
1735         for the tokenizer so that it can resume earlier.
1736
1737         * html/HTMLTokenizer.cpp:
1738         * config.h:
1739
1740 2006-10-05  Adam Roben  <aroben@apple.com>
1741
1742         Removing accidentally-checked-in do-nothing code.
1743
1744         * html/HTMLInputElement.cpp:
1745         (WebCore::HTMLInputElement::defaultEventHandler):
1746
1747 2006-10-05  David Carson  <dacarson@gmail.com>
1748
1749         Reviewed by Mitz.
1750
1751         http://bugs.webkit.org/show_bug.cgi?id=11158
1752         Initialize class variables
1753
1754         * rendering/RenderLayer.cpp:
1755         (WebCore::RenderLayer::RenderLayer):
1756
1757 2006-10-05  Don Gibson  <dgibson77@gmail.com>
1758
1759         Reviewed by Darin, landed by Adam.
1760
1761         http://bugs.webkit.org/show_bug.cgi?id=11176
1762         Fix win32 build, adapt to Maciej's ResourceLoader changes.
1763
1764         * platform/win/ResourceLoaderWin.cpp:
1765         (WebCore::ResourceLoader::start):
1766
1767 2006-10-05  Marvin Decker  <marv.decker@gmail.com>
1768
1769         Reviewed by Darin.
1770
1771         http://bugs.webkit.org/show_bug.cgi?id=10989
1772         Provide a way for embedders to implement BrowserExtensionWin
1773
1774         * WebCore.vcproj/WebCore/WebCore.vcproj:
1775         * bridge/win/BrowserExtensionWin.cpp: Added.
1776         (BrowserExtensionWin::BrowserExtensionWin):
1777         (BrowserExtensionWin::setTypedIconURL):
1778         (BrowserExtensionWin::setIconURL):
1779         (BrowserExtensionWin::getHistoryLength):
1780         (BrowserExtensionWin::canRunModal):
1781         (BrowserExtensionWin::createNewWindow):
1782         (BrowserExtensionWin::canRunModalNow):
1783         (BrowserExtensionWin::runModal):
1784         (BrowserExtensionWin::goBackOrForward):
1785         (BrowserExtensionWin::historyURL):
1786         * bridge/win/BrowserExtensionWin.h:
1787         * bridge/win/FrameWin.cpp:
1788         (WebCore::FrameWin::createNewWindow):
1789         * bridge/win/FrameWin.h:
1790         * platform/win/TemporaryLinkStubs.cpp:
1791
1792 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
1793
1794         Reviewed by Darin.
1795         
1796         Fixed <rdar://problem/4766987>
1797         
1798         - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
1799         except for file names.
1800         
1801         - fixed RenderLayer to properly tear down scrollbars, removing them from
1802         their parents.
1803
1804         * bindings/js/kjs_window.cpp:
1805         (KJS::showModalDialog):
1806         (KJS::setWindowFeature):
1807         (KJS::parseWindowFeatures):
1808         * bridge/BrowserExtension.h:
1809         * dom/Document.cpp:
1810         (WebCore::Document::setInPageCache):
1811         * html/HTMLFrameElement.cpp:
1812         (WebCore::HTMLFrameElement::init):
1813         (WebCore::HTMLFrameElement::parseMappedAttribute):
1814         * html/HTMLFrameElement.h:
1815         (WebCore::HTMLFrameElement::scrollingMode):
1816         * page/Frame.cpp:
1817         (WebCore::Frame::finishedParsing):
1818         (WebCore::Frame::scrollbarsVisible):
1819         * page/FrameView.cpp:
1820         (WebCore::FrameViewPrivate::FrameViewPrivate):
1821         (WebCore::FrameViewPrivate::reset):
1822         (WebCore::FrameView::~FrameView):
1823         (WebCore::FrameView::resetScrollbars):
1824         (WebCore::FrameView::clear):
1825         (WebCore::FrameView::initScrollbars):
1826         (WebCore::FrameView::applyOverflowToViewport):
1827         (WebCore::FrameView::layout):
1828         (WebCore::FrameView::handleMousePressEvent):
1829         (WebCore::selectCursor):
1830         (WebCore::FrameView::handleMouseMoveEvent):
1831         (WebCore::FrameView::setScrollbarsMode):
1832         (WebCore::FrameView::setVScrollbarMode):
1833         (WebCore::FrameView::setHScrollbarMode):
1834         (WebCore::FrameView::restoreScrollbar):
1835         (WebCore::FrameView::dispatchMouseEvent):
1836         (WebCore::FrameView::scrollbarMoved):
1837         * page/FrameView.h:
1838         * page/MouseEventWithHitTestResults.cpp:
1839         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
1840         * page/MouseEventWithHitTestResults.h:
1841         (WebCore::MouseEventWithHitTestResults::scrollbar):
1842         * platform/ScrollBar.cpp:
1843         (WebCore::Scrollbar::Scrollbar):
1844         (WebCore::Scrollbar::setValue):
1845         (WebCore::Scrollbar::setProportion):
1846         (WebCore::Scrollbar::setSteps):
1847         (WebCore::Scrollbar::scroll):
1848         * platform/ScrollBar.h:
1849         (WebCore::):
1850         (WebCore::ScrollbarClient::~ScrollbarClient):
1851         (WebCore::Scrollbar::~Scrollbar):
1852         (WebCore::Scrollbar::orientation):
1853         (WebCore::Scrollbar::controlSize):
1854         (WebCore::Scrollbar::hasPlatformScrollbars):
1855         (WebCore::Scrollbar::client):
1856         * platform/ScrollBarMode.h:
1857         (WebCore::):
1858         * platform/ScrollView.h:
1859         * rendering/RenderBlock.cpp:
1860         (WebCore::RenderBlock::isPointInScrollbar):
1861         * rendering/RenderLayer.cpp:
1862         (WebCore::RenderLayer::RenderLayer):
1863         (WebCore::RenderLayer::~RenderLayer):
1864         (WebCore::RenderLayer::scrollToOffset):
1865         (WebCore::RenderLayer::horizontaScrollbarWidget):
1866         (WebCore::RenderLayer::verticalScrollbarWidget):
1867         (WebCore::RenderLayer::valueChanged):
1868         (WebCore::RenderLayer::createScrollbar):
1869         (WebCore::RenderLayer::destroyScrollbar):
1870         (WebCore::RenderLayer::setHasHorizontalScrollbar):
1871         (WebCore::RenderLayer::setHasVerticalScrollbar):
1872         (WebCore::RenderLayer::verticalScrollbarWidth):
1873         (WebCore::RenderLayer::horizontalScrollbarHeight):
1874         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
1875         * rendering/RenderLayer.h:
1876         (WebCore::RenderLayer::horizontalScrollbar):
1877         (WebCore::RenderLayer::verticalScrollbar):
1878         * rendering/RenderListBox.cpp:
1879         (WebCore::RenderListBox::~RenderListBox):
1880         (WebCore::RenderListBox::calcMinMaxWidth):
1881         (WebCore::RenderListBox::isPointInScrollbar):
1882         (WebCore::RenderListBox::optionAtPoint):
1883         (WebCore::RenderListBox::valueChanged):
1884         * rendering/RenderListBox.h:
1885         * rendering/RenderObject.h:
1886         (WebCore::RenderObject::NodeInfo::scrollbar):
1887         (WebCore::RenderObject::NodeInfo::setScrollbar):
1888
1889 2006-10-05  Don Gibson  <dgibson77@gmail.com>
1890
1891         Reviewed by Adam.
1892
1893         http://bugs.webkit.org/show_bug.cgi?id=11138
1894         Incorrect mouse event generation on Windows
1895
1896         * platform/win/MouseEventWin.cpp:
1897         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1898         (1) Set mouse button even for non-click-related messages.
1899         (2) Track clicks correctly for all buttons, not just the left button.
1900
1901 2006-10-05  Nikolas Zimmermann  <zimmermann@kde.org>
1902
1903         Reviewed and landed by ap.
1904
1905         Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
1906
1907         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
1908         (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
1909         (WebCore::KRenderingPaintServerLinearGradientQt::setup):
1910         (WebCore::KRenderingPaintServerRadialGradientQt::setup):
1911         (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
1912         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
1913         (WebCore::KRenderingPaintServerPatternQt::renderPath):
1914         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
1915         (WebCore::KRenderingPaintServerQt::setPenProperties):
1916         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
1917         (WebCore::KRenderingPaintServerSolidQt::setup):
1918         (WebCore::KRenderingPaintServerSolidQt::renderPath):
1919         * kcanvas/device/qt/RenderPathQt.cpp:
1920         (WebCore::getPathStroke):
1921
1922 2006-10-05  Alexey Proskuryakov  <ap@nypop.com>
1923
1924         Reviewed by Darin.
1925
1926         http://bugs.webkit.org/show_bug.cgi?id=11054
1927         REGRESSION: Traditional Chinese encoding in login authentication
1928
1929         1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
1930         2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
1931         for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
1932
1933         * platform/StreamingTextDecoderICU.cpp:
1934         (WebCore::TextCodecICU::registerEncodingNames):
1935
1936 2006-10-05  Eric Seidel  <eric@eseidel.com>
1937
1938         Reviewed by mjs.
1939
1940         Removed dead code.
1941         Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
1942
1943         * WebCore.xcodeproj/project.pbxproj:
1944         * ksvg2/ecma/GlobalObject.cpp: Removed.
1945         * ksvg2/ecma/GlobalObject.h: Removed.
1946
1947 2006-10-05  Adam Roben  <aroben@apple.com>
1948
1949         Reviewed by Maciej.
1950
1951         Small ResourceLoaderInternal tweak.
1952
1953         * platform/ResourceLoaderInternal.h:
1954         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1955
1956 2006-10-05  Eric Seidel  <eric@eseidel.com>
1957
1958         Reviewed by mjs.
1959
1960         More incremental KCanvas cleanup and optimization.
1961         Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
1962         Optimized dash array usage to not malloc.
1963         Also removed un-needed KSVGRenderingStyle includes.
1964
1965         * kcanvas/KCanvasTreeDebug.cpp:
1966         (WebCore::operator<<):
1967         * kcanvas/RenderPath.cpp:
1968         (WebCore::RenderPath::nodeAtPoint):
1969         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1970         (WebCore::RenderPath::strokeBBox):
1971         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1972         (WebCore::KRenderingPaintServerGradientQuartz::setup):
1973         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
1974         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
1975         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1976         (WebCore::KRenderingPaintServerSolidQuartz::setup):
1977         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
1978         (WebCore::KRenderingPaintServerPatternQuartz::setup):
1979         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
1980         * kcanvas/device/quartz/QuartzSupport.mm:
1981         (WebCore::applyStrokeStyleToContext):
1982         * ksvg2/css/SVGRenderStyle.h:
1983         (WebCore::SVGRenderStyle::hasStroke):
1984         (WebCore::SVGRenderStyle::hasFill):
1985         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1986         (WebCore::KSVGPainterFactory::fillPaintServer):
1987         (WebCore::KSVGPainterFactory::strokePaintServer):
1988         * ksvg2/misc/KCanvasRenderingStyle.h:
1989
1990 2006-10-05  Maciej Stachowiak  <mjs@apple.com>
1991
1992         Reviewed by Adam.
1993
1994         - changed ResourceLoader to be refcounted
1995
1996         It keeps a ref on itself while loading as well. This makes
1997         for a much saner memory management model than the previous.
1998
1999         * bridge/mac/WebCoreResourceLoaderImp.mm:
2000         (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
2001         * dom/XMLTokenizer.cpp:
2002         (WebCore::openFunc):
2003         * loader/icon/IconLoader.cpp:
2004         (IconLoader::IconLoader):
2005         (IconLoader::~IconLoader):
2006         (IconLoader::startLoading):
2007         (IconLoader::stopLoading):
2008         (IconLoader::receivedData):
2009         * loader/icon/IconLoader.h:
2010         * loader/loader.cpp:
2011         (WebCore::Loader::servePendingRequests):
2012         * platform/ResourceLoader.cpp:
2013         (WebCore::ResourceLoader::create):
2014         (WebCore::ResourceLoader::kill):
2015         * platform/ResourceLoader.h:
2016         * platform/ResourceLoaderInternal.h:
2017         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2018         * platform/mac/ResourceLoaderMac.mm:
2019         (WebCore::ResourceLoader::start):
2020         * xml/XSLTProcessor.cpp:
2021         (WebCore::docLoaderFunc):
2022         * xml/xmlhttprequest.cpp:
2023         (WebCore::XMLHttpRequest::send):
2024         * xml/xmlhttprequest.h:
2025
2026 2006-10-05  Eric Seidel  <eric@eseidel.com>
2027
2028         Reviewed by mjs.
2029
2030         Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
2031         http://bugs.webkit.org/show_bug.cgi?id=11163
2032         
2033         No SVG performance tests yet.
2034
2035         * kcanvas/RenderForeignObject.cpp:
2036         (WebCore::RenderForeignObject::paint):
2037         * kcanvas/RenderSVGContainer.cpp:
2038         (WebCore::RenderSVGContainer::paint):
2039         * kcanvas/RenderSVGImage.cpp:
2040         (WebCore::RenderSVGImage::paint):
2041         * kcanvas/RenderSVGText.cpp:
2042         (WebCore::RenderSVGText::paint):
2043
2044 2006-10-05  Dave Hyatt  <hyatt@apple.com>
2045
2046         Stub out some stuff for widget focusability.
2047
2048         Reviewed by maciej
2049  
2050         * page/FrameView.cpp:
2051         (WebCore::FrameView::dispatchMouseEvent):
2052         * platform/ScrollView.h:
2053         * platform/Widget.h:
2054
2055 2006-10-05  Adam Roben  <aroben@apple.com>
2056
2057         Reviewed by Maciej and Tim H.
2058
2059         Copy some WebKit frame lifetime logic into WebCore -- just a step
2060         along the path to frame lifetime being handled completely in WebCore.
2061
2062         * bridge/mac/FrameMac.mm:
2063         (WebCore::FrameMac::setView): Move platform-independent parts of this
2064         method into Frame.
2065         * page/Frame.cpp:
2066         (WebCore::Frame::setView): Adding platform-independent parts of
2067         FrameMac::setView
2068         (WebCore::Frame::detachChildren): New method to accomplish what
2069         -[WebFrameBridge _detachChildren] currently does.
2070         (WebCore::Frame::clear): Call detachChildren
2071         * page/Frame.h: Add declaration for detachChildren
2072
2073 2006-10-04  Alice Liu  <alice.liu@apple.com>
2074
2075         Reviewed by Darin.
2076
2077         Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
2078
2079         * xml/xmlhttprequest.cpp:
2080         (WebCore::XMLHttpRequest::setRequestHeader):
2081         removed exception set when the request is not open yet
2082
2083 2006-10-04  Anders Carlsson  <acarlsson@apple.com>
2084
2085         Reviewed by John Sullivan.
2086
2087         <rdar://problem/4654328>
2088         Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
2089         
2090         * loader/PluginDocument.cpp:
2091         (WebCore::PluginTokenizer::writeRawData):
2092         Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
2093
2094 2006-10-03  Alexey Proskuryakov  <ap@nypop.com>
2095
2096         Reviewed by Tim H.
2097
2098         http://bugs.webkit.org/show_bug.cgi?id=11130
2099         Convert "undefined" to AE missing value
2100
2101         * bridge/mac/WebCoreFrameBridge.mm:
2102         (aeDescFromJSValue): return missing value for UndefinedType.
2103
2104 2006-10-03  Dave Hyatt  <hyatt@apple.com>
2105
2106         Scrolling work.  Eliminate convertTo/FromContainingWindow as cross-platform functions.  Add back in
2107         the windowToContents/contentsToWindow functions.
2108         
2109         Reviewed by anders
2110
2111         * bridge/mac/FrameMac.mm:
2112         (WebCore::FrameMac::eventMayStartDrag):
2113         (WebCore::FrameMac::dragHysteresisExceeded):
2114         (WebCore::FrameMac::mouseDown):
2115         (WebCore::FrameMac::shouldDragAutoNode):
2116         (WebCore::FrameMac::sendContextMenuEvent):
2117         * bridge/mac/FrameViewMac.mm:
2118         (WebCore::FrameView::passMousePressEventToScrollbar):
2119         * bridge/mac/WebCoreFrameBridge.mm:
2120         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2121         * dom/EventTargetNode.cpp:
2122         (WebCore::EventTargetNode::dispatchMouseEvent):
2123         (WebCore::EventTargetNode::dispatchWheelEvent):
2124         * page/Frame.cpp:
2125         (WebCore::Frame::selectClosestWordFromMouseEvent):
2126         (WebCore::Frame::handleMousePressEventTripleClick):
2127         (WebCore::Frame::handleMousePressEventSingleClick):
2128         (WebCore::Frame::handleMouseMoveEvent):
2129         (WebCore::Frame::handleMouseReleaseEvent):
2130         * page/FrameView.cpp:
2131         (WebCore::FrameView::handleMousePressEvent):
2132         (WebCore::FrameView::handleMouseDoubleClickEvent):
2133         (WebCore::selectCursor):
2134         (WebCore::FrameView::handleMouseMoveEvent):
2135         (WebCore::FrameView::handleMouseReleaseEvent):
2136         (WebCore::FrameView::dispatchDragEvent):
2137         (WebCore::FrameView::prepareMouseEvent):
2138         (WebCore::FrameView::handleWheelEvent):
2139         * page/FrameView.h:
2140         * platform/ScrollBar.cpp:
2141         (WebCore::ScrollBar::setValue):
2142         * platform/ScrollView.h:
2143         * platform/Widget.h:
2144         (WebCore::Widget::scrolled):
2145         * platform/mac/ScrollViewMac.mm:
2146         (WebCore::ScrollView::contentsToWindow):
2147         (WebCore::ScrollView::windowToContents):
2148         (WebCore::ScrollView::scrollbarUnderMouse):
2149         * platform/mac/WidgetMac.mm:
2150         * rendering/RenderLayer.cpp:
2151         (WebCore::RenderLayer::resize):
2152         (WebCore::RenderLayer::positionScrollbars):
2153         * rendering/RenderReplaced.cpp:
2154         (WebCore::RenderReplaced::shouldPaint):
2155         * rendering/RenderView.cpp:
2156         * rendering/RenderView.h:
2157         * rendering/RenderWidget.cpp:
2158         (WebCore::RenderWidget::setWidget):
2159
2160 2006-09-26  David Smith  <catfish.man@gmail.com>
2161
2162         Reviewed by Timothy.
2163
2164         http://bugs.webkit.org/show_bug.cgi?id=3723
2165         Add -scrollDOMRangeToVisible:
2166
2167         No automated tests are possible as this code path isn't reachable from JavaScript.
2168
2169         * bridge/mac/WebCoreFrameBridge.h:
2170         * bridge/mac/WebCoreFrameBridge.mm:
2171         (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
2172
2173 2006-10-03  Graham Dennis  <graham.dennis@gmail.com>
2174
2175         Reviewed by Timothy.
2176
2177         <http://bugs.webkit.org/show_bug.cgi?id=10338>
2178         When contentEditable, cursor doesn't change to hand
2179         
2180         Allow the behaviour of editable links to be specified by a WebPreference
2181         The preference WebKitEditableLinkBehavior has four options:
2182          - AlwaysLive: Safari 2.0 behaviour
2183          - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
2184          - LiveWhenNotFocused: Editable links are live only when their editable block is not
2185              focused, or when the shift key is pressed
2186          - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
2187          
2188         No layout tests, just a modification of a manual-test as it isn't possible to test
2189         this automatically.
2190
2191         * bridge/mac/WebCoreSettings.h:
2192         * bridge/mac/WebCoreSettings.mm:
2193         (-[WebCoreSettings setEditableLinkBehavior:]):
2194         (-[WebCoreSettings editableLinkBehavior]):
2195         * html/HTMLAnchorElement.cpp:
2196         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
2197         (WebCore::HTMLAnchorElement::defaultEventHandler):
2198         (WebCore::HTMLAnchorElement::setActive):
2199         * html/HTMLAnchorElement.h:
2200         * manual-tests/contenteditable-link.html:
2201         * page/FrameView.cpp:
2202         (WebCore::nodeIsNotBeingEdited):
2203         (WebCore::selectCursor):
2204         * page/Settings.h:
2205         (WebCore::Settings::):
2206         (WebCore::Settings::Settings):
2207         (WebCore::Settings::editableLinkBehavior):
2208         (WebCore::Settings::setEditableLinkBehavior):
2209
2210 2006-10-03  Beth Dakin  <bdakin@apple.com>
2211
2212         Reviewed Darin.
2213
2214         No test cases needed.
2215
2216         Implemented a version of StringImpl::append that takes a UChar* and 
2217         a length.
2218
2219         * platform/StringImpl.cpp:
2220         (WebCore::StringImpl::append):
2221         (WebCore::StringImpl::insert): Call new append instead of making a 
2222         new StringImpl.
2223         * platform/StringImpl.h:
2224
2225 2006-10-03  MorganL  <morganl.webkit@yahoo.com>
2226
2227         Reviewed by Darin.
2228
2229         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
2230         HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
2231
2232         * platform/win/ResourceLoaderWin.cpp:
2233         (WebCore::ResourceLoader::onHandleCreated):
2234
2235 2006-10-02  Geoffrey Garen  <ggaren@apple.com>
2236
2237         Feared, loathed, reviewed by Darin.
2238
2239         More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach 
2240         into FRAME, plus other cleanup.
2241         
2242         No new behavior, so no new test. Layout tests pass. Basic browsing and
2243         Mail editing seem to work.
2244         
2245         * dom/Node.cpp:
2246         (WebCore::Node::detach): Removed random commented-out code.
2247         * html/HTMLFrameElement.cpp:
2248         (WebCore::HTMLFrameElement::isURLAllowed): 
2249         (1) Removed reference to FrameView, to dissociate frame loading from rendering.
2250         (2) Renamed newURL to completeURL because the difference between newURL
2251         and URLString is that newURL is a KURL that is the complete version of URLString,
2252         not that it is new.
2253         (WebCore::HTMLFrameElement::willRemove): 
2254         (1) Removed close() call and moved close() code into willRemove(), also removing 
2255         close() call from detach(), since willRemove is the well-defined place 
2256         from DOM tear-down, not detach().
2257         (2) Removed manual renderer detach code because the DOM is not responsible
2258         for managing the render tree. I confirmed that this change not
2259         regress <rdar://problem/4132581>.
2260         (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
2261         lost their content frames after being removed from the DOM. That's our 
2262         current behavior, but it's going to change in future rounds of refactoring.
2263         This also fixes <rdar://problem/4750835>.
2264         (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
2265         attach/detach, because the render tree should not be in charge of deciding
2266         when to load.
2267         * html/HTMLFrameElement.h:
2268         * html/HTMLIFrameElement.cpp:
2269         (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
2270         because the renderer is a renderPartObject, not a renderPart.
2271         * html/HTMLIFrameElement.h:
2272
2273 2006-10-03  Mark Rowe  <bdash@webkit.org>
2274
2275         Reviewed by Mitz.
2276
2277         http://bugs.webkit.org/show_bug.cgi?id=11137
2278         Bug 11137: GdkLauncher dies with "pure virtual method called" if
2279         window is closed while page still loading
2280
2281         * platform/gdk/FrameGdk.cpp:
2282         (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
2283         methods to be called before the FrameGdk portion of "this" is torn down.
2284
2285 2006-10-03  Adam Roben  <aroben@apple.com>
2286
2287         Reviewed by Darin.
2288
2289         Handle tab key presses in the DOM.
2290
2291         * dom/EventTargetNode.cpp:
2292         (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
2293         * page/FrameView.cpp:
2294         (WebCore::FrameView::advanceFocus): Rename and reimplement
2295         focusNextPrevNode. Now we just call Element::focus().
2296         * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
2297         it public.
2298
2299 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
2300
2301         Reviewed by mjs
2302         
2303         <rdar://problem/4760612>
2304         TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
2305         
2306         No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
2307         
2308         * dom/Range.cpp:
2309         (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming 
2310         positions are non-null since most of it's callers would be in a bad state if the positions 
2311         were null.  boundaryPointsValid, which calls compareBoundaryPoints, is an exception.  
2312         Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it 
2313         from entering compareBoundaryPoints and hitting the assert.
2314
2315 2006-10-03  Adele Peterson  <adele@apple.com>
2316
2317         Reviewed by Geoff.
2318
2319         Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
2320
2321         * html/HTMLSelectElement.cpp:
2322         (WebCore::HTMLSelectElement::recalcStyle):
2323         (WebCore::HTMLSelectElement::isKeyboardFocusable):
2324         (WebCore::HTMLSelectElement::isMouseFocusable):
2325         (WebCore::HTMLSelectElement::createRenderer):
2326         (WebCore::HTMLSelectElement::setRecalcListItems):
2327         (WebCore::HTMLSelectElement::notifyOptionSelected):
2328         (WebCore::HTMLSelectElement::defaultEventHandler):
2329
2330 2006-10-04  Darin Adler  <darin@apple.com>
2331
2332         Reviewed by Geoff.
2333
2334         - fix http://bugs.webkit.org/show_bug.cgi?id=11132
2335           Caret disappears when you're typing
2336
2337         * editing/SelectionController.cpp:
2338         (WebCore::SelectionController::setSelection): Remove unnecessary call to
2339         clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
2340         (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
2341         to false so we can get the old caret repaint rect. Later we need to change the
2342         design so getting the rect doesn't have a side effect of causing a layout without
2343         invalidation.
2344
2345 2006-10-03  David Harrison  <harrison@apple.com>
2346
2347         Reviewed by Maciej.
2348
2349         <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
2350
2351         Updated test:
2352         * fast/text/justified-text-rect.html
2353
2354         * bridge/mac/WebCoreFrameBridge.mm:
2355         (-[WebCoreFrameBridge convertToNSRange:]):
2356         (-[WebCoreFrameBridge convertToDOMRange:]):
2357         Make the selection's root editable element (or the document itself) be
2358         the basis for NSRange conversions. This supports "shadow DOM" like
2359         that for text fields and text areas.
2360         
2361         * editing/CompositeEditCommand.cpp:
2362         (WebCore::CompositeEditCommand::moveParagraphs):
2363         Pass the document element as the scope.
2364         
2365         * editing/TextIterator.cpp:
2366         (WebCore::TextIterator::rangeFromLocationAndLength):
2367         Make the first parameter the scope.
2368         
2369         * editing/TextIterator.h:
2370         Make the first parameter of rangeFromLocationAndLength() the scope.
2371
2372 2006-10-03  Nikolas Zimmermann  <zimmermann@kde.org>
2373
2374         Reviewed by Eric.
2375
2376         Fix Qt/Linux build.
2377
2378         * CMakeLists.txt: Add counter related files.
2379
2380 2006-10-03  Mark Rowe  <bdash@webkit.org>
2381
2382         Reviewed by Eric.
2383
2384         http://bugs.webkit.org/show_bug.cgi?id=10981
2385         Linux/GDK build fixes
2386
2387         Based on a patch by Krzysztof Kowalczyk.
2388
2389         * WebCoreSources.bkl:
2390         * platform/gdk/FrameGdk.cpp:
2391         (WebCore::doScroll):
2392         (WebCore::FrameGdk::handleGdkEvent):
2393         * platform/gdk/PlatformScrollBar.h: Added.
2394         (WebCore::PlatformScrollBar::isWidget):
2395         * platform/gdk/ScrollViewGdk.cpp:
2396         * platform/gdk/TemporaryLinkStubs.cpp:
2397         (FrameView::passMousePressEventToScrollbar):
2398         (FrameView::passMousePressEventToSubframe):
2399         (FrameView::passMouseReleaseEventToSubframe):
2400         (FrameView::passMouseMoveEventToSubframe):
2401         (FrameView::passWheelEventToSubframe):
2402         (Cursor::Cursor):
2403         (Widget::invalidate):
2404         (Widget::invalidateRect):
2405         (ScrollView::wheelEvent):
2406         (ScrollView::convertToContainingWindow):
2407         (ScrollView::convertFromContainingWindow):
2408         (GraphicsContext::clip):
2409         (PlatformScrollBar::PlatformScrollBar):
2410         (PlatformScrollBar::updateThumbPosition):
2411         (PlatformScrollBar::updateThumbProportion):
2412         (ScrollBar::ScrollBar):
2413         (ScrollBar::setProportion):
2414         (WebCore::supportedKeySizes):
2415         (WebCore::signedPublicKeyAndChallengeString):
2416         * platform/gdk/WheelEventGdk.cpp:
2417         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2418         * platform/gdk/WidgetGdk.cpp:
2419         (WebCore::Widget::convertToContainingWindow):
2420         (WebCore::Widget::convertFromContainingWindow):
2421
2422 2006-10-02  Adam Roben  <aroben@apple.com>
2423
2424         Reviewed by Maciej.
2425
2426         Let Windows determine which mouse button is pressed.
2427
2428         * platform/PlatformMouseEvent.h: Add message parameter to constructor.
2429         * platform/win/MouseEventWin.cpp:
2430         (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
2431         parameter to determine which mouse button is pressed.
2432
2433 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
2434
2435         Reviewed by anders
2436         
2437         Build fix
2438         
2439         * editing/SelectionController.cpp:
2440         (WebCore::SelectionController::empty):
2441         * editing/SelectionController.h:
2442
2443 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
2444
2445         Reviewed by john
2446         
2447         <rdar://problem/4755287>
2448         Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
2449
2450         * editing/markup.cpp:
2451         (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced 
2452         elements).  Don't skip blocks that aren't containers (like horizontal rules).
2453
2454 2006-10-03  Darin Adler  <darin@apple.com>
2455
2456         Reviewed by Justin Garcia.
2457
2458         - correct mistaken code that would restart blinking every
2459           time "invalidateSelection" is called even if the caret
2460           has not moved
2461
2462         * editing/SelectionController.h:
2463         * editing/SelectionController.cpp:
2464         (WebCore::SelectionController::setSelection): Update for name change.
2465         (WebCore::SelectionController::recomputeCaretRect): New function.
2466         Computes caret rect and does any necessary invalidation if the rect
2467         changes.
2468         (WebCore::SelectionController::invalidateCaretRect): Renamed from
2469         needsCaretRepaint. Invalidates the caret rect unconditionally. Also
2470         calls recomputeCaretRect as a side effect.
2471
2472         * page/Frame.cpp:
2473         (WebCore::Frame::invalidateSelection): Remove unneeded call to
2474         clearCaretRectIfNeeded.
2475         (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
2476         (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
2477         recomputeCaretRect function and not restart blinking if caret has
2478         not changed position.
2479         (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
2480         are not needed since selectionLayoutChanged already checks these.
2481
2482         * page/FramePrivate.h: Removed unused m_blinkCaret.
2483
2484 2006-10-02  Beth Dakin  <bdakin@apple.com>
2485
2486         Reviewed by Adam.
2487
2488         Build fix. Add counters to vcproj.
2489
2490         * WebCore.vcproj/WebCore/WebCore.vcproj:
2491
2492 2006-10-02  Brady Eidson  <beidson@apple.com>
2493
2494         Reviewed by Adele
2495
2496         If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
2497         icon data out because we don't correctly check SQL error conditions.
2498
2499         * loader/icon/IconDataCache.cpp:
2500         (WebCore::IconDataCache::writeToDatabase):
2501
2502 2006-10-02  Steve Falkenburg  <sfalken@apple.com>
2503
2504         Reviewed by Hyatt.
2505
2506         Added method to find out whether a layout has occurred.
2507
2508         * page/FrameView.cpp:
2509         (WebCore::FrameView::didFirstLayout):
2510         * page/FrameView.h:
2511
2512 2006-10-02  Beth Dakin  <bdakin@apple.com>
2513
2514         Reviewed by Darin.
2515
2516         Initial implementation of CSS2 counters. See http://
2517         bugs.webkit.org/show_bug.cgi?id=4980 for more details.
2518
2519         * WebCore.xcodeproj/project.pbxproj:
2520         * css/CSSComputedStyleDeclaration.cpp: 
2521         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 
2522         the increment/reset list now that this is implemented.
2523         * css/CSSPrimitiveValue.cpp:
2524         (WebCore::CSSPrimitiveValue::cssText): 
2525         * css/Counter.h:
2526         (WebCore::Counter::Counter):
2527         (WebCore::Counter::~Counter):
2528         (WebCore::Counter::identifier):
2529         (WebCore::Counter::listStyle):
2530         (WebCore::Counter::separator):
2531         (WebCore::Counter::listStyleNumber):
2532         (WebCore::Counter::setIdentifier):
2533         (WebCore::Counter::setListStyle):
2534         (WebCore::Counter::setSeparator):
2535         * css/cssparser.cpp:
2536         (WebCore::CSSParser::addProperty): Take care of reset/increment
2537         (WebCore::CSSParser::parseValue):
2538         (WebCore::CSSParser::parseContent): content can now take counters
2539         (WebCore::CSSParser::parseCounterContent): Parse counter() and 
2540         counters()
2541         (WebCore::CSSParser::parseCounter): Parse counter-reset and 
2542         counter-increment
2543         * css/cssparser.h:
2544         * css/cssstyleselector.cpp:
2545         (WebCore::CSSStyleSelector::matchUARules):
2546         (WebCore::CSSStyleSelector::applyProperty):
2547         * platform/PlatformString.h:
2548         * platform/String.cpp:
2549         (WebCore::String::insert): Implemented a version of insert that 
2550         accepts a UChar* and a length.
2551         * platform/StringImpl.cpp:
2552         (WebCore::StringImpl::insert): Same as above.
2553         * platform/StringImpl.h:
2554         * rendering/CounterListItem.h: Added.
2555         * rendering/CounterNode.cpp: Added.
2556         (WebCore::CounterNode::CounterNode):
2557         (WebCore::CounterNode::insertAfter):
2558         (WebCore::CounterNode::removeChild):
2559         (WebCore::CounterNode::remove):
2560         (WebCore::CounterNode::setUsesSeparator):
2561         (WebCore::CounterNode::recountAndGetNext):
2562         (WebCore::CounterNode::recountTree):
2563         (WebCore::CounterNode::setSelfDirty):
2564         (WebCore::CounterNode::setParentDirty):
2565         * rendering/CounterNode.h: Added.
2566         (WebCore::CounterNode::~CounterNode):
2567         (WebCore::CounterNode::parent):
2568         (WebCore::CounterNode::previousSibling):
2569         (WebCore::CounterNode::nextSibling):
2570         (WebCore::CounterNode::firstChild):
2571         (WebCore::CounterNode::lastChild):
2572         (WebCore::CounterNode::value):
2573         (WebCore::CounterNode::setValue):
2574         (WebCore::CounterNode::count):
2575         (WebCore::CounterNode::setCount):
2576         (WebCore::CounterNode::setHasSeparator):
2577         (WebCore::CounterNode::isReset):
2578         (WebCore::CounterNode::hasSeparator):
2579         (WebCore::CounterNode::willNeedLayout):
2580         (WebCore::CounterNode::setWillNeedLayout):
2581         (WebCore::CounterNode::isRoot):
2582         (WebCore::CounterNode::setRenderer):
2583         (WebCore::CounterNode::renderer):
2584         * rendering/CounterResetNode.cpp: Added.
2585         (WebCore::CounterResetNode::CounterResetNode):
2586         (WebCore::CounterResetNode::insertAfter):
2587         (WebCore::CounterResetNode::removeChild):
2588         (WebCore::CounterResetNode::recountAndGetNext):
2589         (WebCore::CounterResetNode::setParentDirty):
2590         (WebCore::CounterResetNode::updateTotal):
2591         * rendering/CounterResetNode.h: Added.
2592         (WebCore::CounterResetNode::firstChild):
2593         (WebCore::CounterResetNode::lastChild):
2594         (WebCore::CounterResetNode::isReset):
2595         (WebCore::CounterResetNode::total):
2596         * rendering/RenderContainer.cpp:
2597         (WebCore::RenderContainer::updatePseudoChildForObject): Account for 
2598         counter content.
2599         * rendering/RenderCounter.cpp: Added.
2600         (WebCore::RenderCounter::RenderCounter):
2601         (WebCore::RenderCounter::layout):
2602         (WebCore::toRoman):
2603         (WebCore::toLetterString):
2604         (WebCore::toHebrew):
2605         (WebCore::RenderCounter::convertValueToType):
2606         (WebCore::RenderCounter::calcMinMaxWidth):
2607         * rendering/RenderCounter.h: Added.
2608         (WebCore::RenderCounter::renderName):
2609         (WebCore::RenderCounter::isCounter):
2610         * rendering/RenderObject.cpp:
2611         (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to 
2612         maps of CounterNodes
2613         (WebCore::RenderObject::RenderObject):
2614         (WebCore::RenderObject::destroy): Destroy the maps.
2615         (WebCore::RenderObject::findCounter): Finds/creates counters.
2616         * rendering/RenderObject.h:
2617         (WebCore::RenderObject::isCounter):
2618         * rendering/RenderStyle.cpp:
2619         (WebCore::StyleVisualData::StyleVisualData):
2620         (WebCore::RenderStyle::arenaDelete):
2621         (WebCore::RenderStyle::RenderStyle):
2622         (WebCore::RenderStyle::diff):
2623         (WebCore::RenderStyle::setContent):
2624         (WebCore::ContentData::clearContent):
2625         (WebCore::RenderStyle::counterDataEquivalent):
2626         (WebCore::hasCounter):
2627         (WebCore::RenderStyle::hasCounterReset):
2628         (WebCore::RenderStyle::hasCounterIncrement):
2629         (WebCore::readCounter):
2630         (WebCore::RenderStyle::counterReset):
2631         (WebCore::RenderStyle::counterIncrement):
2632         * rendering/RenderStyle.h:
2633         (WebCore::StyleVisualData::operator==):
2634         (WebCore::CounterData::CounterData):
2635         (WebCore::CounterData::identifier):
2636         (WebCore::CounterData::listStyle):
2637         (WebCore::CounterData::separator):
2638         (WebCore::ContentData::contentCounter):
2639         (WebCore::ContentData::):
2640         (WebCore::RenderStyle::counterIncrement):
2641         (WebCore::RenderStyle::counterReset):
2642         (WebCore::RenderStyle::setCounterIncrement):
2643         (WebCore::RenderStyle::setCounterReset):
2644         (WebCore::RenderStyle::setCounterResetList):
2645         (WebCore::RenderStyle::setCounterIncrementList):
2646         (WebCore::RenderStyle::counterResetValueList):
2647         (WebCore::RenderStyle::counterIncrementValueList):
2648
2649 2006-10-02  Adele Peterson  <adele@apple.com>
2650
2651         Reviewed by Adam.
2652
2653         - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
2654
2655         There are a few outstanding issues, so I've left the old code in for now.  So you can use the old-style listboxes
2656         by using "-webkit-appearance:none".
2657
2658         * css/html4.css:
2659
2660 2006-10-02  David Harrison  <harrison@apple.com>
2661
2662         Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
2663         addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
2664         Left the layout test.
2665         
2666         * rendering/bidi.cpp:
2667         (WebCore::checkMidpoints):
2668
2669 2006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
2670
2671         Reviewed by eseidel.  Landed by eseidel.
2672
2673         Fix Qt/Linux build.
2674
2675         * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
2676         (WebCore::supportedKeySizes):
2677
2678 2006-10-02  Nikolas Zimmermann <zimmermann@kde.org>
2679
2680         Reviewed by eseidel & mjs.  Landed by eseidel.
2681
2682         Fix Qt/Linux build with older gcc 3.3.4.
2683         http://bugs.webkit.org/show_bug.cgi?id=11116
2684
2685         As discussed with Maciej, the GCC_ROOT_NS_HACK
2686         can be completely removed, as well as the friendship
2687         between cacheGlobalObject & the JS* objects.
2688
2689         * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
2690         * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
2691         (png_read_filter_row_mmx_avg):
2692         * platform/image-decoders/png/pngvcrd.c: Ditto.
2693         (png_mmx_support):
2694         (png_read_filter_row_mmx_avg):
2695
2696 2006-10-01  Maciej Stachowiak  <mjs@apple.com>
2697
2698         Rubber stamped by Alexey.
2699
2700         - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
2701
2702         * css/CSSGrammar.y:
2703
2704 2006-10-01  Eric Seidel  <eric@webkit.org>
2705
2706         Reviewed by mjs.
2707
2708         Eliminate a few more hotspots in SVG drawing code.
2709         
2710         No test cases were harmed in the making of this patch.  (And SVG has no perf tests.)
2711
2712         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2713         (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
2714         * platform/mac/ColorMac.mm:
2715         (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
2716
2717 2006-10-01  Geoffrey Garen  <ggaren@apple.com>
2718
2719         Reviewed by Maciej.
2720         
2721         More frame/iframe merging.
2722         
2723         - Removed needWidgetUpdate and related code. needWidgetUpdate is always
2724         false, so this was dead code.
2725         - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
2726         than attach(), is the correct place for setInViewSourceMode, because
2727         openURL() is the function that creates our frame.
2728         - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
2729         code that did the same thing in other places.
2730         - Made FRAME's attach() method suffuciently generic so that IFRAME could
2731         call up to it, rather than skipping its superclass and calling up directly 
2732         to ELEMENT.
2733         - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
2734         - Replaced ad hoc frame loading code in FRAME::attach() with call to
2735         openURL(), the designated frame loading function.
2736
2737         Layout tests pass. I added a layout test for viewsource mode, since I
2738         broke it in the course of writing this patch.
2739
2740 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
2741
2742         Reviewed by Geoff.
2743
2744         * dom/Document.cpp:
2745         (WebCore::Document::recalcStyleSelector):
2746         * dom/Document.h:
2747         Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
2748         
2749         * dom/Node.h:
2750         Remove DeprecatedStringList class forward declaration.
2751         
2752         * editing/markup.cpp:
2753         Include DeprecatedStringList.h here since it's not included by Document.h anymore.
2754         
2755         * kcanvas/KCanvasTreeDebug.cpp:
2756         * kcanvas/KCanvasTreeDebug.h:
2757         Remove unused functions.
2758         
2759         * loader/loader.cpp:
2760         * page/Frame.cpp:
2761         * page/Frame.h:
2762         * page/FrameView.h:
2763         Fixup DeprecatedStringList.h includes.
2764
2765 2006-09-30  David Harrison  <harrison@apple.com>
2766
2767         Reviewed by John Sullivan.
2768
2769         <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
2770
2771         Problem was that the decision to trim was based only on whether the character
2772         is a soft hyphen, which caused pretty much any Japanese character to go.
2773         Changed to decide based on whether the character is ignorable whitespace.
2774         
2775         Test:
2776         * fast/text/international/wrap-CJK-001.html
2777
2778         * rendering/bidi.cpp:
2779         (WebCore::isTrimmableChar):
2780         New. Checks whether character is whitespace that can be ignored
2781         according to the text node's style.
2782         trimmed from the end of wrapped line.
2783         (WebCore::checkMidpoints):
2784         Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
2785
2786 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
2787
2788         Reviewed by Mitz Pettel.
2789
2790         Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
2791
2792         * ksvg2/svg/SVGColor.cpp:
2793         (WebCore::SVGColor::setRGBColor):
2794         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2795         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2796         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
2797         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2798         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
2799         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2800         (SVGFESpecularLightingElement::parseMappedAttribute):
2801         * ksvg2/svg/SVGFETurbulenceElement.cpp:
2802         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
2803         * ksvg2/svg/SVGLengthList.cpp:
2804         * ksvg2/svg/SVGNumberList.cpp:
2805         (SVGNumberList::parse):
2806         * ksvg2/svg/SVGNumberList.h:
2807         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
2808         (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
2809         * ksvg2/svg/SVGStringList.cpp:
2810         (WebCore::SVGStringList::reset):
2811         * ksvg2/svg/SVGStringList.h:
2812         * ksvg2/svg/SVGTransformable.cpp:
2813         (SVGTransformable::parseTransformAttribute):
2814
2815 2006-10-01  Nikolas Zimmermann  <zimmermann@kde.org>
2816
2817         Reviewed by Eric, tweaked and landed by ap.
2818
2819         Fix Qt/Linux build.
2820
2821         * CMakeLists.txt:
2822         * platform/qt/PlatformScrollBar.h:
2823         * platform/qt/TemporaryLinkStubs.cpp:
2824         (WebCore::ScrollBar::ScrollBar):
2825         (WebCore::PlatformScrollBar::PlatformScrollBar):
2826         (FrameView::passMousePressEventToSubframe):
2827         (FrameView::passMouseMoveEventToSubframe):
2828         (FrameView::passMouseReleaseEventToSubframe):
2829         (FrameView::passWheelEventToSubframe):
2830         (FrameView::passMousePressEventToScrollbar):
2831         * ksvg2/svg/SVGDocument.h:
2832
2833 2006-10-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2834
2835         Reviewed by Darin.
2836
2837         Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
2838         REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
2839
2840         No test case added (probably requires new DumpRenderTree functionality)
2841
2842         * rendering/RenderImage.cpp:
2843         (WebCore::RenderImage::imageChanged): Added early return if the document is
2844         being destroyed.
2845
2846 2006-10-01  Graham Dennis  <graham.dennis@gmail.com>
2847
2848         Reviewed by Hyatt.
2849
2850         Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
2851         REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
2852         
2853         Make sure we only break after a space (and not any other valid line-break) if
2854         the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
2855         I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
2856         twice in quick succession.
2857
2858         * rendering/bidi.cpp:
2859         (WebCore::RenderBlock::findNextLineBreak): 
2860
2861 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
2862
2863         Reviewed by Maciej and Darin.
2864
2865         http://bugs.webkit.org/show_bug.cgi?id=4372
2866         JavaScript document.write page form does not submit in Safari
2867
2868         Test: fast/forms/document-write.html
2869
2870         * page/Frame.cpp:
2871         (WebCore::Frame::submitForm): Don't check for parsing().
2872
2873 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
2874
2875         Build fix.
2876
2877         * bridge/mac/FrameViewMac.mm: Add missing #imports.
2878
2879 2006-10-01  Dave Hyatt  <hyatt@apple.com>
2880
2881         Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
2882        
2883         Reviewed by mitz
2884
2885         * bridge/mac/FrameMac.mm:
2886         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
2887         * bridge/mac/FrameViewMac.mm:
2888         (WebCore::FrameView::passMousePressEventToScrollbar):
2889         * page/FrameView.cpp:
2890         (WebCore::FrameView::handleMousePressEvent):
2891         (WebCore::FrameView::setMousePressed):
2892         * page/FrameView.h:
2893         * platform/win/TemporaryLinkStubs.cpp:
2894         (FrameView::passMousePressEventToScrollbar):
2895
2896 2006-09-30  Sam Weinig  <sam.weinig@gmail.com>
2897
2898         Reviewed by Darin.
2899
2900         Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
2901         Add more SVG Objective-C DOM bindings
2902
2903         - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
2904           DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
2905           DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
2906           DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
2907           DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument, 
2908           DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
2909
2910         * DerivedSources.make:
2911         * WebCore.xcodeproj/project.pbxproj:
2912         * bindings/objc/DOMInternal.h:
2913         * bindings/objc/DOMSVG.h:
2914         * bindings/scripts/CodeGeneratorObjC.pm:
2915         * ksvg2/svg/SVGAElement.idl:
2916         * ksvg2/svg/SVGAnimateColorElement.idl:
2917         * ksvg2/svg/SVGAnimateElement.idl:
2918         * ksvg2/svg/SVGAnimateTransformElement.idl:
2919         * ksvg2/svg/SVGAnimatedPathData.idl:
2920         * ksvg2/svg/SVGAnimatedPoints.idl:
2921         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
2922         * ksvg2/svg/SVGAnimationElement.idl:
2923         * ksvg2/svg/SVGCircleElement.idl:
2924         * ksvg2/svg/SVGClipPathElement.idl:
2925         * ksvg2/svg/SVGColor.idl:
2926         * ksvg2/svg/SVGCursorElement.idl:
2927         * ksvg2/svg/SVGDefsElement.idl:
2928         * ksvg2/svg/SVGDescElement.idl:
2929         * ksvg2/svg/SVGDocument.idl:
2930         * ksvg2/svg/SVGEllipseElement.idl:
2931         * ksvg2/svg/SVGPointList.idl:
2932         * ksvg2/svg/SVGPreserveAspectRatio.idl:
2933         * ksvg2/svg/SVGRect.idl:
2934         * ksvg2/svg/SVGSVGElement.idl:
2935
2936 2006-09-30  Maciej Stachowiak  <mjs@apple.com>
2937
2938         Reviewed by Adele.
2939
2940         - fix build
2941
2942         * platform/FloatRect.h:
2943         (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
2944         but more appropriate for path-type stuff.
2945         * platform/cg/PathCG.cpp:
2946         (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
2947
2948 2006-09-30  Alexey Proskuryakov  <ap@nypop.com>
2949
2950         Reviewed by Darin.
2951
2952         http://bugs.webkit.org/show_bug.cgi?id=11011
2953         External CSS is parsed as iso-8859-1 even though the main document is utf-8
2954
2955         Test: fast/encoding/css-charset-default.xhtml
2956
2957         * loader/CachedResourceClient.h:
2958         (WebCore::CachedResourceClient::setCSSStyleSheet):
2959         (WebCore::CachedResourceClient::setXSLStyleSheet):
2960         Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
2961         takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
2962
2963         * css/CSSImportRule.cpp:
2964         (WebCore::CSSImportRule::setCSSStyleSheet):
2965         (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
2966         * css/CSSImportRule.h:
2967
2968         * css/CSSStyleSheet.cpp:
2969         (WebCore::CSSStyleSheet::CSSStyleSheet):
2970         * css/CSSStyleSheet.h:
2971         Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
2972         member. Changed some String parameters to const String&.
2973
2974         * css/StyleSheet.cpp:
2975         (WebCore::StyleSheet::StyleSheet):
2976         * css/StyleSheet.h:
2977         Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
2978
2979         * css/StyleSheetList.cpp:
2980         (WebCore::StyleSheetList::length):
2981         (WebCore::StyleSheetList::item):
2982         * css/StyleSheetList.h:
2983         Special-casing implicit stylesheets seemed to be dead code, removed.
2984
2985         * dom/Document.cpp:
2986         (WebCore::Document::setCSSStyleSheet):
2987         (WebCore::Document::recalcStyleSelector):
2988         * dom/Document.h:
2989         Renamed setStyleSheet() to setCSSStyleSheet().
2990
2991         * dom/ProcessingInstruction.cpp:
2992         (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
2993         (WebCore::ProcessingInstruction::setCSSStyleSheet):
2994         (WebCore::ProcessingInstruction::setXSLStyleSheet):
2995         (WebCore::ProcessingInstruction::parseStyleSheet):
2996         * dom/ProcessingInstruction.h:
2997
2998         * html/HTMLLinkElement.cpp:
2999         (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute 
3000         is not specified.
3001         (WebCore::HTMLLinkElement::setCSSStyleSheet):
3002         * html/HTMLLinkElement.h:
3003
3004         * html/HTMLStyleElement.cpp:
3005         (WebCore::HTMLStyleElement::childrenChanged):
3006         * ksvg2/svg/SVGStyleElement.cpp:
3007         (WebCore::SVGStyleElement::childrenChanged):
3008         Inherit URL and charset from the document.
3009
3010         * loader/Cache.cpp:
3011         (WebCore::Cache::requestCSSStyleSheet):
3012         * loader/Cache.h:
3013         Adjust for setStyleSheet() renaming.
3014
3015         * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
3016         * loader/CachedCSSStyleSheet.cpp:
3017         (WebCore::CachedCSSStyleSheet::ref):
3018         (WebCore::CachedCSSStyleSheet::deref):
3019         (WebCore::CachedCSSStyleSheet::checkNotify):
3020         Pass the encoding to setCSSStyleSheet().
3021
3022         * loader/CachedXSLStyleSheet.cpp:
3023         (WebCore::CachedXSLStyleSheet::ref):
3024         (WebCore::CachedXSLStyleSheet::checkNotify):
3025         * loader/DocLoader.cpp:
3026         (WebCore::DocLoader::requestCSSStyleSheet):
3027         * loader/DocLoader.h:
3028         * page/Frame.cpp:
3029         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
3030         (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
3031         * xml/XSLImportRule.cpp:
3032         (WebCore::XSLImportRule::setXSLStyleSheet):
3033         (WebCore::XSLImportRule::loadSheet):
3034         * xml/XSLImportRule.h:
3035         Adjust for setStyleSheet() renaming.
3036
3037 2006-09-30  Rob Buis  <buis@kde.org>
3038
3039         Reviewed by eseidel.
3040
3041         http://bugs.webkit.org/show_bug.cgi?id=11096
3042         Hit testing for polylines fails
3043
3044         Fix Path::contains so it handles filled, non-closed paths too.
3045
3046         * platform/cg/PathCG.cpp:
3047         (WebCore::Path::contains):
3048
3049 2006-09-30  Dave Hyatt  <hyatt@apple.com>
3050
3051         Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
3052         Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
3053         subframes while the mouse is down.
3054       
3055         Reviewed by mitzpettel
3056
3057         * bridge/mac/FrameMac.h:
3058         * bridge/mac/FrameMac.mm:
3059         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
3060         (WebCore::FrameMac::passWheelEventToWidget):
3061         * bridge/mac/FrameViewMac.mm:
3062         (WebCore::FrameView::passMousePressEventToSubframe):
3063         (WebCore::FrameView::passMouseMoveEventToSubframe):
3064         (WebCore::FrameView::passMouseReleaseEventToSubframe):
3065         (WebCore::FrameView::passWheelEventToSubframe):
3066         * page/Frame.cpp:
3067         * page/Frame.h:
3068         * page/FrameView.cpp:
3069         (WebCore::subframeForTargetNode):
3070         (WebCore::FrameView::handleMousePressEvent):
3071         (WebCore::FrameView::handleMouseDoubleClickEvent):
3072         (WebCore::FrameView::handleMouseMoveEvent):
3073         (WebCore::FrameView::handleMouseReleaseEvent):
3074         (WebCore::FrameView::handleWheelEvent):
3075         * page/FrameView.h:
3076         * platform/ScrollBar.h:
3077         (WebCore::ScrollBar::handleMouseMoveEvent):
3078         (WebCore::ScrollBar::handleMouseOutEvent):
3079         * platform/Widget.h:
3080         (WebCore::Widget::handleMouseMoveEvent):
3081         (WebCore::Widget::handleMouseReleaseEvent):
3082         * platform/win/TemporaryLinkStubs.cpp:
3083         (FrameView::passMousePressEventToSubframe):
3084         (FrameView::passMouseMoveEventToSubframe):
3085         (FrameView::passMouseReleaseEventToSubframe):
3086         (FrameView::passWheelEventToSubframe):
3087         (Widget::capturingMouse):
3088         (Widget::setCapturingMouse):
3089         (Widget::capturingTarget):
3090         (Widget::capturingChild):
3091         (Widget::setCapturingChild):
3092         * rendering/RenderView.cpp:
3093         (WebCore::RenderView::paintBoxDecorations):
3094
3095 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
3096
3097         Reviewed by Adele.
3098
3099         Fixes windows bustage:
3100         http://bugs.webkit.org/show_bug.cgi?id=11093
3101
3102         * platform/win/PlatformScrollBar.h:
3103         * platform/win/TemporaryLinkStubs.cpp:
3104         (PlatformScrollBar::PlatformScrollBar):
3105         (ScrollBar::ScrollBar):
3106
3107 2006-09-29  David Hyatt  <hyatt@apple.com>
3108
3109         Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
3110         in RenderObject::NodeInfo (and then propagating that Widget to
3111         MouseEventWithHitTestResults).
3112
3113         This allows RenderListBox and RenderBlock to do the same thing when the
3114         mouse is over the scrollbar.
3115
3116         Also land fix to support font-size: 0.
3117
3118         Reviewed by mjs (scrollbar), eric (font-size)
3119
3120         * dom/Document.cpp:
3121         (WebCore::Document::prepareMouseEvent):
3122         * page/Frame.cpp:
3123         (WebCore::Frame::passWidgetMouseDownEventToWidget):
3124         * page/FrameView.cpp:
3125         (WebCore::selectCursor):
3126         (WebCore::FrameView::handleMouseMoveEvent):
3127         (WebCore::FrameView::dispatchMouseEvent):
3128         * page/MouseEventWithHitTestResults.cpp:
3129         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
3130         * page/MouseEventWithHitTestResults.h:
3131         (WebCore::MouseEventWithHitTestResults::scrollbar):
3132         * rendering/RenderBlock.cpp:
3133         (WebCore::RenderBlock::isPointInScrollbar):
3134         (WebCore::RenderBlock::nodeAtPoint):
3135         * rendering/RenderBlock.h:
3136         * rendering/RenderLayer.cpp:
3137         (WebCore::RenderLayer::hitTest):
3138         * rendering/RenderLayer.h:
3139         (WebCore::RenderLayer::getHiddenBehavior):
3140         * rendering/RenderListBox.cpp:
3141         (WebCore::RenderListBox::RenderListBox):
3142         (WebCore::RenderListBox::~RenderListBox):
3143         (WebCore::RenderListBox::isPointInScrollbar):
3144         * rendering/RenderListBox.h:
3145         * rendering/RenderObject.h:
3146         (WebCore::RenderObject::NodeInfo::NodeInfo):
3147         (WebCore::RenderObject::NodeInfo::scrollbar):
3148         (WebCore::RenderObject::NodeInfo::setScrollbar):
3149
3150 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
3151
3152         Reviewed by Adele.
3153
3154         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
3155
3156         * platform/win/ScrollViewWin.cpp:
3157         (WebCore::ScrollView::convertToContainingWindow):
3158         (WebCore::ScrollView::convertFromContainingWindow):
3159         * platform/win/WidgetWin.cpp:
3160         (WebCore::Widget::convertToContainingWindow):
3161         (WebCore::Widget::convertFromContainingWindow):
3162
3163 2006-09-29  Adele Peterson  <adele@apple.com>
3164
3165         Updated with new argument for PlatformScrollBar.
3166
3167         * platform/win/TemporaryLinkStubs.cpp:
3168         (PlatformScrollBar::PlatformScrollBar):
3169
3170 2006-09-29  Adele Peterson  <adele@apple.com>
3171
3172         Reviewed by Hyatt.
3173
3174         Fixing build bustage with cast to int.
3175
3176         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
3177
3178 2006-09-29  Adele Peterson  <adele@apple.com>
3179
3180         Fixing accidental include.
3181
3182         * rendering/RenderListBox.cpp:
3183
3184 2006-09-29  Adele Peterson  <adele@apple.com>
3185
3186         Adding RenderListBox files.
3187
3188         * WebCore.vcproj/WebCore/WebCore.vcproj:
3189
3190 2006-09-29  Adele Peterson  <adele@apple.com>
3191
3192         Reviewed by Adam.
3193
3194         Initial implementation of engine-based list box control.
3195
3196         * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
3197
3198         * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
3199         * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
3200         (WebCore::FrameMac::FrameMac):
3201         (WebCore::FrameMac::handleMousePressEvent):
3202         (WebCore::FrameMac::handleMouseMoveEvent):
3203         (WebCore::FrameMac::mouseDown):
3204
3205         * page/Frame.cpp:
3206         (WebCore::Frame::handleMouseMoveEvent):
3207         (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
3208         (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
3209         (WebCore::Frame::autoscrollTimerFired): ditto.
3210         (WebCore::Frame::stopAutoscrollTimer): ditto.
3211         (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
3212         * page/Frame.h:
3213         * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
3214
3215         * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
3216         (WebCore::FrameViewPrivate::reset):
3217         (WebCore::FrameView::currentMousePosition):
3218         (WebCore::FrameView::handleMousePressEvent):
3219         (WebCore::FrameView::handleMouseDoubleClickEvent):
3220         (WebCore::selectCursor):
3221         (WebCore::FrameView::handleMouseMoveEvent):
3222         (WebCore::FrameView::handleMouseReleaseEvent):
3223         * page/FrameView.h:
3224
3225         * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument.  The list box will use a smaller scroll bar size.
3226         * platform/ScrollBar.h:
3227         (WebCore::):
3228         (WebCore::ScrollBar::controlSize):
3229         * platform/mac/PlatformScrollBar.h:
3230         * platform/mac/PlatformScrollBarMac.mm:
3231         (NSControlSizeForScrollBarControlSize):
3232         (-[WebCoreScrollBar initWithPlatformScrollBar:]):
3233         (WebCore::PlatformScrollBar::PlatformScrollBar):
3234
3235         * rendering/RenderBlock.h:
3236         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
3237         * rendering/RenderLayer.h:
3238         * rendering/RenderObject.cpp:
3239         (WebCore::RenderObject::shouldAutoscroll):
3240         (WebCore::RenderObject::autoscroll):
3241         * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
3242
3243         * css/html4.css: Added properties for new list boxes.
3244
3245         * html/HTMLOptionElement.cpp:
3246         (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
3247         (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
3248         * html/HTMLOptionElement.h: Added disabled method.
3249
3250         * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
3251         (WebCore::HTMLSelectElement::recalcStyle):
3252         (WebCore::HTMLSelectElement::lastSelectedListIndex):
3253         (WebCore::HTMLSelectElement::deselectItems):
3254         (WebCore::HTMLSelectElement::setSelectedIndex):
3255         (WebCore::HTMLSelectElement::isKeyboardFocusable):
3256         (WebCore::HTMLSelectElement::isMouseFocusable):
3257         (WebCore::HTMLSelectElement::createRenderer):
3258         (WebCore::HTMLSelectElement::recalcListItems):
3259         (WebCore::HTMLSelectElement::setRecalcListItems):
3260         (WebCore::HTMLSelectElement::reset):
3261         (WebCore::HTMLSelectElement::notifyOptionSelected):
3262         (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
3263         (WebCore::HTMLSelectElement::nextSelectableListIndex):
3264         (WebCore::HTMLSelectElement::previousSelectableListIndex):
3265         * html/HTMLSelectElement.h:
3266
3267         * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
3268         (WebCore::RenderTheme::paint):
3269         (WebCore::RenderTheme::paintBorderOnly):
3270         (WebCore::RenderTheme::paintDecorations):
3271         (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
3272         (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
3273         (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
3274         (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
3275         (WebCore::RenderTheme::isControlStyled):
3276         (WebCore::RenderTheme::supportsFocusRing):
3277         * rendering/RenderTheme.h:
3278         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
3279
3280         * rendering/RenderListBox.cpp: Added.
3281         (WebCore::RenderListBox::RenderListBox):
3282         (WebCore::RenderListBox::~RenderListBox):
3283         (WebCore::RenderListBox::setStyle):
3284         (WebCore::RenderListBox::updateFromElement):
3285         (WebCore::RenderListBox::calcMinMaxWidth):
3286         (WebCore::RenderListBox::size):
3287         (WebCore::RenderListBox::numItems):
3288         (WebCore::RenderListBox::calcHeight):
3289         (WebCore::RenderListBox::baselinePosition):
3290         (WebCore::RenderListBox::itemBoundingBoxRect):
3291         (WebCore::RenderListBox::paintObject):
3292         (WebCore::RenderListBox::paintScrollbar):
3293         (WebCore::RenderListBox::paintItemForeground):
3294         (WebCore::RenderListBox::paintItemBackground):
3295         (WebCore::RenderListBox::scrollBarTarget):
3296         (WebCore::RenderListBox::isPointInScrollbar):
3297         (WebCore::RenderListBox::optionAtPoint):
3298         (WebCore::RenderListBox::autoscroll):
3299         (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
3300         (WebCore::RenderListBox::scroll):
3301         (WebCore::RenderListBox::valueChanged):
3302         * rendering/RenderListBox.h: Added.
3303         (WebCore::RenderListBox::isListBox):
3304         (WebCore::RenderListBox::selectionChanged):
3305         (WebCore::RenderListBox::setSelectionChanged):
3306         (WebCore::RenderListBox::canHaveChildren):
3307         (WebCore::RenderListBox::renderName):
3308         (WebCore::RenderListBox::setOptionsChanged):
3309         (WebCore::RenderListBox::shouldAutoscroll):
3310         (WebCore::RenderListBox::listIndexIsVisible):
3311
3312 2006-09-29  Beth Dakin  <bdakin@apple.com>
3313
3314         Reviewed by Darin.
3315
3316         We had a bug where html4.css was ignoring Media Queries. In the end 
3317         the problem was that we were trying to send a char* to the 
3318         MediaQueryEvaluator constructor that expects a String, but the 
3319         char* got interpreted as a bool, the wrong constructor was called, 
3320         and the media type was never set.
3321
3322         No test case possible since this only affects html4.css
3323
3324         * css/MediaQueryEvaluator.cpp: New constructor that expects takes a 
3325         char*
3326         (WebCore::MediaQueryEvaluator):
3327         * css/MediaQueryEvaluator.h: Same.
3328
3329 2006-09-29  Geoffrey Garen  <ggaren@apple.com>
3330
3331         Reviewed by John, Maciej.
3332         
3333         Integrated some frame and iframe code. I'm trying to fix up frame ownership
3334         and loading. Reducing the number of different code paths involved
3335         seemed like a good first step.
3336         
3337         As a side effect, I fixed a bug where FRAME elements would report their
3338         src attributes as relative, rather than compelete, URLs. (IFRAME elements
3339         had the correct complete URL behavior.)
3340
3341         * html/HTMLFrameElement.cpp:
3342         (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
3343         (WebCore::HTMLFrameElement::openURL):
3344             (1) Removed checks that requestFrame does for us
3345             (2) Added isURLAllowed check, to have one clear bottleneck for it
3346             (3) Added viewsource check, to have one clear bottleneck for it
3347         (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
3348         method, instead of finding our content frame in our own unique way.
3349         (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
3350         since openURL does this for us now.
3351         (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
3352         This is what FF does, and it made no sense to have different behaviors
3353         for FRAME and IFRAME elements.
3354         * html/HTMLIFrameElement.cpp:
3355         (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
3356         code.
3357         * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
3358         HTMLFrameElement now does everything we need.
3359
3360 2006-09-30  Nikolas Zimmermann  <zimmermann@kde.org>
3361
3362         Reviewed by Hyatt.
3363
3364         Fix Qt/Linux build.
3365
3366         * CMakeLists.txt:
3367         * platform/qt/ScrollViewQt.cpp:
3368         (WebCore::ScrollView::convertToContainingWindow):
3369         (WebCore::ScrollView::convertFromContainingWindow):
3370         * platform/qt/TemporaryLinkStubs.cpp:
3371         (WebCore::signedPublicKeyAndChallengeString):
3372         * platform/qt/WidgetQt.cpp:
3373         (WebCore::Widget::convertToContainingWindow):
3374         (WebCore::Widget::convertFromContainingWindow):
3375
3376 2006-09-29  Sam Weinig  <sam.weinig@gmail.com>
3377
3378         Reviewed by Tim H.
3379
3380         Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
3381         Simplify Internal methods for the auto-generated Objective-C DOM code
3382
3383         - Auto-generate the internal methods for more Objective-C classes.
3384
3385         * WebCore.xcodeproj/project.pbxproj:
3386         * bindings/objc/DOM.mm:
3387         * bindings/objc/DOMCSS.mm:
3388         (-[DOMStyleSheet WebCore::]):
3389         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
3390         (-[DOMCSSRule WebCore::]):
3391         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
3392         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
3393         (-[DOMCSSValue WebCore::]):
3394         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
3395         (+[DOMCSSValue _CSSValueWith:WebCore::]):
3396         * bindings/objc/DOMHTMLAppletElement.mm:
3397         (-[DOMHTMLAppletElement WebCore::]):
3398         (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
3399         * bindings/objc/DOMHTMLEmbedElement.mm:
3400         (-[DOMHTMLEmbedElement WebCore::]):
3401         (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
3402         * bindings/objc/DOMInternal.h:
3403         * bindings/objc/DOMInternal.mm:
3404         * bindings/scripts/CodeGeneratorObjC.pm:
3405         * css/CSSCharsetRule.idl:
3406         * css/CSSFontFaceRule.idl:
3407         * css/CSSImportRule.idl:
3408         * css/CSSMediaRule.idl:
3409         * css/CSSPageRule.idl:
3410         * css/CSSPrimitiveValue.idl:
3411         * css/CSSStyleRule.idl:
3412         * css/CSSStyleSheet.idl:
3413         * css/CSSUnknownRule.idl:
3414         * css/CSSValueList.idl:
3415         * dom/KeyboardEvent.idl:
3416         * dom/MouseEvent.idl:
3417         * dom/MutationEvent.idl:
3418         * dom/NodeIterator.idl:
3419         * dom/OverflowEvent.idl:
3420         * dom/UIEvent.idl:
3421         * dom/WheelEvent.idl:
3422
3423 2006-09-29  David Harrison  <harrison@apple.com>
3424
3425         Reviewed by John Sullivan.
3426
3427         <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
3428         <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
3429
3430         Test added
3431         * fast/text/attributed-substring-from-range-001.html
3432
3433         * bridge/mac/FrameMac.mm:
3434         (WebCore::FrameMac::attributedString):
3435         Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
3436         Also, add validation of the range.
3437
3438 2006-09-29  Rob Buis  <buis@kde.org>
3439
3440         Reviewed by Maciej.
3441
3442         http://bugs.webkit.org/show_bug.cgi?id=10893
3443         InsertRule can not handle @import statements
3444
3445         Allow @import as part of a css rule.
3446
3447         * css/CSSGrammar.y:
3448
3449 2006-09-28  David Hyatt  <hyatt@apple.com>
3450
3451         Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
3452
3453         * bridge/mac/FrameMac.mm:
3454         (WebCore::FrameMac::eventMayStartDrag):
3455         (WebCore::FrameMac::dragHysteresisExceeded):
3456         (WebCore::FrameMac::mouseDown):
3457         (WebCore::FrameMac::shouldDragAutoNode):
3458         (WebCore::FrameMac::sendContextMenuEvent):
3459         * bridge/mac/WebCoreFrameBridge.mm:
3460         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
3461
3462 2006-09-28  Dave Hyatt  <hyatt@apple.com>
3463
3464         This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
3465         ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
3466         view.
3467        
3468         Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
3469         the patch after review, once I realized that these new functions essentially do the same thing.)
3470
3471         * dom/EventTargetNode.cpp:
3472         (WebCore::EventTargetNode::dispatchMouseEvent):
3473         (WebCore::EventTargetNode::dispatchWheelEvent):
3474         * page/Frame.cpp:
3475         (WebCore::Frame::selectClosestWordFromMouseEvent):
3476         (WebCore::Frame::handleMousePressEventTripleClick):
3477         (WebCore::Frame::handleMousePressEventSingleClick):
3478         (WebCore::Frame::handleMouseMoveEvent):
3479         (WebCore::Frame::handleMouseReleaseEvent):
3480         * page/FrameView.cpp:
3481         (WebCore::FrameView::handleMousePressEvent):
3482         (WebCore::selectCursor):
3483         (WebCore::FrameView::dispatchDragEvent):
3484         (WebCore::FrameView::prepareMouseEvent):
3485         (WebCore::FrameView::handleWheelEvent):
3486         * platform/ScrollView.h:
3487         * platform/Widget.cpp:
3488         (WebCore::Widget::convertToContainingWindow):
3489         * platform/Widget.h:
3490         * platform/mac/ScrollViewMac.mm:
3491         (WebCore::ScrollView::convertToContainingWindow):
3492         (WebCore::ScrollView::convertFromContainingWindow):
3493         * platform/mac/WidgetMac.mm:
3494         (WebCore::Widget::convertToContainingWindow):
3495         (WebCore::Widget::convertFromContainingWindow):
3496         * platform/win/ScrollViewWin.cpp:
3497         (WebCore::ScrollView::convertToContainingWindow):
3498         (WebCore::ScrollView::convertFromContainingWindow):
3499         * rendering/RenderLayer.cpp:
3500         (WebCore::RenderLayer::resize):
3501
3502 2006-09-28  Alice Liu  <alice.liu@apple.com>
3503
3504         Build fix by adding missing files for CommandByName
3505
3506         * WebCore.xcodeproj/project.pbxproj:
3507
3508 2006-09-28  Alice Liu  <alice.liu@apple.com>
3509
3510         Adding CommandByName files to the vcproj
3511
3512         * WebCore.vcproj/WebCore/WebCore.vcproj:
3513
3514 2006-09-28  Alice Liu  <alice.liu@apple.com>
3515
3516         Reviewed by Adam Roben.
3517
3518         This patch adds a command class that is attached to the frame so the frame can more easily execute commands such as copy, paste, select, etc. 
3519         This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
3520         This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
3521
3522         * editing/CommandByName.cpp: Added.
3523         Added a command class that hangs off the frame so the frame can call commands more easily.  
3524         (WebCore::Frame::commandImp):
3525         (WebCore::Frame::execCopy):
3526         (WebCore::Frame::execCut):
3527         (WebCore::Frame::execDelete):
3528         (WebCore::Frame::execForwardDelete):
3529         (WebCore::Frame::execPaste):
3530         (WebCore::Frame::execMoveLeft):
3531         (WebCore::Frame::execMoveRight):
3532         (WebCore::Frame::execMoveUp):
3533         (WebCore::Frame::execMoveDown):
3534         (WebCore::Frame::execSelectAll):
3535         (WebCore::Frame::execSelectLeft):
3536         (WebCore::Frame::execSelectRight):
3537         (WebCore::Frame::execSelectUp):
3538         (WebCore::Frame::execSelectDown):
3539         (WebCore::Frame::enabled):
3540         (WebCore::Frame::enabledAnySelection):
3541         (WebCore::Frame::enabledAnyEditableSelection):
3542         (WebCore::Frame::enabledPaste):
3543         (WebCore::Frame::enabledAnyRangeSelection):
3544         (WebCore::Frame::enabledAnyEditableRangeSelection):
3545         (WebCore::Frame::createCommandDictionary):
3546         (WebCore::Frame::Command::):
3547         (WebCore:::m_frame):
3548         (WebCore::CommandByName::execCommand):
3549         * editing/CommandByName.h: Added.
3550         * page/Frame.cpp:
3551         Added implementation of accessor for CommandByName member
3552         (WebCore::Frame::command):
3553         * page/Frame.h:
3554         Added accessor for CommandByName member
3555         * page/FramePrivate.h:
3556         Added a CommandByName member
3557         (WebCore::FramePrivate::FramePrivate):
3558         * platform/PlatformMouseEvent.h:
3559         Changed constructor prototype
3560         * platform/StringImpl.cpp:
3561         Exposing getWordBreakIterator to be used elsewhere
3562         (WebCore::getWordBreakIterator):
3563         * platform/StringImpl.h:
3564         Exposing getWordBreakIterator to be used elsewhere
3565         * platform/win/MouseEventWin.cpp:
3566         Changed the PlatformMouseEvent on windows so that we "roll our own" multi-click mouse events instead of relying on the system to tell us, enabling us to detect triple-clicks
3567         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3568
3569 2006-09-28  Adam Roben  <aroben@apple.com>
3570
3571         Reviewed by Adele.
3572
3573         Remove no-longer-used PopUpButton.
3574
3575         * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
3576         * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
3577         PopUpButtonMac.mm
3578         * platform/PopUpButton.h: Removed.
3579         * platform/mac/PopUpButtonMac.mm: Removed.
3580         * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
3581         * rendering/DeprecatedRenderSelect.cpp: Change #include of
3582         PopUpButton.h to ListBox.h
3583
3584 2006-09-28  Darin Adler  <darin@apple.com>
3585
3586         Reviewed by Alice.
3587
3588         - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
3589           10% perf. regression (copying strings while decoding)
3590
3591         Use Vector<UChar> instead of String when building up the decoded string in
3592         the ICU and Mac decoders. Using String leads to O(n^2) behavior because
3593         String grows the buffer every single time that append is called. Using
3594         Vector::append instead of String::append also avoids constructing a string
3595         each time just to append and a questionable copy that is done inside the
3596         String::append function which also contributed to the slowness.
3597
3598         * platform/PlatformString.h:
3599         * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
3600         Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
3601         allocation.
3602         * platform/StringImpl.h:
3603         * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
3604
3605         * platform/StreamingTextDecoder.h:
3606         * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
3607         Change to use a Vector<UChar> instead of a String, since vectors have better
3608         resizing performance (they store a separate capacity).
3609
3610         * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
3611         * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
3612         Change to use Vector<UChar> instead of String and then create a string at
3613         the end of the process using the new adopt function.
3614
3615 2006-09-28  Sam Weinig  <sam.weinig@gmail.com>
3616
3617         Reviewed by Tim H.
3618
3619         Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
3620         Auto-generate more SVG Objective-C bindings
3621
3622         - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean, 
3623           DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
3624           DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
3625           DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
3626           DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
3627           DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests, 
3628           and DOMSVGTransformable.
3629
3630         - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
3631           parent interfaces and the SVG animated classes.
3632
3633         - Corrects CodeGenerator.pm to only skip the first parent for the main 
3634           interface.
3635
3636         * DerivedSources.make:
3637         * WebCore.xcodeproj/project.pbxproj:
3638         * bindings/objc/DOMInternal.h:
3639         * bindings/objc/DOMSVG.h:
3640         * bindings/scripts/CodeGenerator.pm:
3641         * bindings/scripts/CodeGeneratorObjC.pm:
3642         * ksvg2/svg/SVGAnimatedAngle.idl:
3643         * ksvg2/svg/SVGAnimatedBoolean.idl:
3644         * ksvg2/svg/SVGAnimatedEnumeration.idl:
3645         * ksvg2/svg/SVGAnimatedInteger.idl:
3646         * ksvg2/svg/SVGAnimatedLength.idl:
3647         * ksvg2/svg/SVGAnimatedLengthList.idl:
3648         * ksvg2/svg/SVGAnimatedNumber.idl:
3649         * ksvg2/svg/SVGAnimatedPathData.idl:
3650         * ksvg2/svg/SVGAnimatedString.idl:
3651         * ksvg2/svg/SVGAnimatedTransformList.idl:
3652         * ksvg2/svg/SVGExternalResourcesRequired.idl:
3653         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
3654         * ksvg2/svg/SVGFitToViewBox.idl:
3655         * ksvg2/svg/SVGLangSpace.idl:
3656         * ksvg2/svg/SVGLocatable.idl:
3657         * ksvg2/svg/SVGMetadataElement.idl:
3658         * ksvg2/svg/SVGStringList.idl:
3659         * ksvg2/svg/SVGStylable.idl:
3660         * ksvg2/svg/SVGStyleElement.idl:
3661         * ksvg2/svg/SVGTests.idl:
3662         * ksvg2/svg/SVGTransformable.idl:
3663         * ksvg2/svg/SVGURIReference.idl:
3664         * ksvg2/svg/SVGUnitTypes.idl:
3665         * ksvg2/svg/SVGZoomAndPan.idl:
3666
3667 2006-09-28  Brady Eidson  <beidson@apple.com>
3668
3669         Reviewed by Mitz Pettel!!!
3670
3671         Change the error code check for common functions from SQLResultOk to SQLResultDone 
3672
3673         * loader/icon/IconDatabase.cpp:
3674         (WebCore::IconDatabase::forgetPageURLQuery):
3675         (WebCore::IconDatabase::setIconIDForPageURLQuery):
3676         (WebCore::IconDatabase::addIconForIconURLQuery):
3677
3678 2006-09-28  Dave Hyatt  <hyatt@apple.com>
3679
3680         Just eliminate MapWindowPoints usage and use the HWND as
3681         the viewport.
3682
3683         * platform/win/MouseEventWin.cpp:
3684         (WebCore::positionForEvent):
3685         * platform/win/ScrollViewWin.cpp:
3686         (WebCore::ScrollView::viewportToContents):
3687         (WebCore::ScrollView::contentsToViewport):
3688
3689 2006-09-27  David Hyatt  <hyatt@apple.com>
3690
3691         Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas.  Make sure
3692         selectCursor checks for whether or not a scrollbar was hit.  Also stub out a mouseMoved method for
3693         scrollbars to provide hover feedback if needed.
3694
3695         Reviewed by Eric
3696
3697         * page/FrameView.cpp:
3698         (WebCore::selectCursor):
3699         (WebCore::FrameView::handleMouseMoveEvent):
3700         * platform/ScrollBar.h:
3701         (WebCore::ScrollBar::mouseMoved):
3702
3703 2006-09-27  MorganL  <morganl.webkit@yahoo.com>
3704
3705         Reviewed by Maciej and Adam, landed by Adam
3706
3707         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
3708         Windows build is busted
3709
3710         * platform/win/TemporaryLinkStubs.cpp:
3711         (ScrollView::paint):
3712         (ScrollView::themeChanged):
3713
3714 2006-09-27  Eric Seidel  <eric@eseidel.com>
3715
3716         Reviewed by mitz.
3717
3718         paths with no fill specified default to black but do not recieve paint-related mouse events
3719         http://bugs.webkit.org/show_bug.cgi?id=11069
3720         The default fill was being applied at the wrong place in the rendering chain, causing this problem.
3721
3722         Test: svg/custom/hover-default-fill.svg
3723
3724         * kcanvas/RenderPath.cpp:
3725         (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
3726         * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
3727         * ksvg2/misc/KCanvasRenderingStyle.cpp:
3728         (WebCore::KSVGPainterFactory::isFilled): remove null check
3729         (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
3730         (WebCore::KSVGPainterFactory::isStroked): remove null check
3731         (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
3732         * ksvg2/svg/SVGPaint.cpp:
3733         (WebCore::SVGPaint::defaultFill): added.
3734         (WebCore::SVGPaint::defaultStroke): added.
3735         * ksvg2/svg/SVGPaint.h:
3736
3737 2006-09-27  Rob Buis  <buis@kde.org>
3738
3739         Reviewed by eseidel.
3740
3741         http://bugs.webkit.org/show_bug.cgi?id=11015
3742         SVG handles em units incorrectly
3743
3744         Calculate viewport coordinates at layout time, since
3745         at this point the font size is known and lengths depending
3746         on font sizes can be calculated correctly.
3747
3748         * kcanvas/RenderSVGContainer.cpp:
3749         (WebCore::RenderSVGContainer::layout):
3750         (WebCore::RenderSVGContainer::viewport):
3751         (WebCore::RenderSVGContainer::calcViewport):
3752         * kcanvas/RenderSVGContainer.h:
3753         * ksvg2/svg/SVGLength.cpp:
3754         (WebCore::SVGLength::updateValue):
3755         * ksvg2/svg/SVGMarkerElement.cpp:
3756         (WebCore::SVGMarkerElement::createRenderer):
3757         * ksvg2/svg/SVGSVGElement.cpp:
3758         (WebCore::SVGSVGElement::createRenderer):
3759         (WebCore::SVGSVGElement::attributeChanged):
3760         * ksvg2/svg/SVGSVGElement.h:
3761
3762 2006-09-27  Eric Seidel  <eric@eseidel.com>
3763
3764         Reviewed by darin.
3765
3766         Change our invalid-fill error behavior to match Opera (and soon Firefox)
3767         http://bugs.webkit.org/show_bug.cgi?id=11017
3768
3769         * ksvg2/misc/KCanvasRenderingStyle.cpp:
3770         (WebCore::KSVGPainterFactory::isFilled):
3771         (WebCore::KSVGPainterFactory::fillPaintServer):
3772         (WebCore::KSVGPainterFactory::isStroked):
3773         (WebCore::KSVGPainterFactory::strokePaintServer):
3774
3775 2006-09-27  Brady Eidson  <beidson@apple.com>
3776
3777         Build fix
3778
3779         * loader/icon/IconDatabase.cpp:
3780         (WebCore::readySQLStatement):
3781
3782 2006-09-27  Brady Eidson  <beidson@apple.com>
3783
3784         Reviewed by Adam
3785
3786         In very specific circumstances, prepared SQLStatements can become invalid without
3787         any warning.  This checks for that state and re-prepares the statement and also
3788         adds more aggressive error-checking everywhere these statements are used.
3789
3790         * loader/icon/IconDatabase.cpp:
3791         (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
3792         (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
3793         (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
3794         (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
3795         (WebCore::IconDatabase::forgetPageURLQuery): Ditto
3796         (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
3797         (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
3798         (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
3799         (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
3800         * loader/icon/SQLStatement.cpp:
3801         (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
3802         * loader/icon/SQLStatement.h:
3803
3804 2006-09-26  Darin Adler  <darin@apple.com>
3805
3806         Reviewed by Steve.
3807
3808         - clean up options for font code path
3809
3810         * platform/Font.h:
3811         * platform/Font.cpp:
3812         (WebCore::Font::setCodePath): Added. Replaces boolean version.
3813         (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
3814
3815         * platform/mac/WebCoreTextRenderer.mm:
3816         (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
3817
3818 2006-09-26  John Sullivan  <sullivan@apple.com>
3819
3820         Reviewed by Darin
3821
3822         * bridge/mac/WebCoreFrameBridge.h:
3823         * bridge/mac/WebCoreFrameBridge.mm:
3824         (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
3825         Added limit parameter, passed down to Frame
3826         
3827         * page/Frame.h:
3828         * page/Frame.cpp:
3829         (WebCore::Frame::markAllMatchesForText):
3830         Added limit parameter. Stop the search if it hits limit.
3831
3832 2006-09-26  Sean Gies  <seangies@apple.com>
3833
3834         Reviewed by Brady Eidson.
3835
3836         * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
3837
3838 2006-09-26  Justin Garcia  <justin.garcia@apple.com>
3839
3840         Reviewed by john
3841         
3842         <rdar://problem/4747695> 
3843         Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
3844         
3845         * editing/DeleteSelectionCommand.cpp:
3846         (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
3847         to select special elements that are fully selected after expansion
3848         moves to positions that are visually distinct from the originals.
3849         * editing/InsertListCommand.cpp:
3850         (WebCore::InsertListCommand::doApply): If the content of the list 
3851         item will be moved into another list, put it in a list item.
3852
3853 2006-09-26  Geoffrey Garen <ggaren@apple.com>
3854
3855         Reviewed by Darin.
3856         
3857         Temporary work-around for frame lifetime issue.
3858
3859         * page/Frame.cpp:
3860         (WebCore::Frame::clear):
3861         (WebCore::Frame::disconnectOwnerElement):
3862
3863 2006-09-26  Sam Weinig  <sam.weinig@gmail.com>
3864
3865         Reviewed by Tim H.
3866
3867         Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
3868         Auto-generate DOMSVGElement for the Objective-C bindings
3869
3870         - Auto-generates DOMSVGElement.
3871
3872         - Make SVGExceptions work like all the other ExceptionCode
3873           extensions (Range, XPath, etc.) by adding SVGExceptionOffset
3874           and SVGExceptionMax.
3875
3876         * DerivedSources.make:
3877         * WebCore.xcodeproj/project.pbxproj:
3878         * bindings/js/kjs_binding.cpp:
3879         (KJS::):
3880         (KJS::setDOMException):
3881         * bindings/objc/DOMInternal.h:
3882         * bindings/objc/DOMInternal.mm:
3883         (raiseDOMException):
3884         * bindings/objc/DOMSVG.h:
3885         * bindings/objc/DOMSVGExecption.h: Added.
3886         * ksvg2/ksvg.h:
3887         * ksvg2/svg/SVGElement.cpp:
3888         (WebCore::SVGElement::setId):
3889         (WebCore::SVGElement::setXmlbase):
3890         * ksvg2/svg/SVGElement.h:
3891         * ksvg2/svg/SVGElement.idl:
3892         * ksvg2/svg/SVGException.h: Added.
3893         (WebCore::):
3894
3895 2006-09-26  Eric Seidel  <eric@eseidel.com>
3896
3897         Reviewed by Tim H.
3898         
3899         viewbox parser does not allow <tab> as a delimiter
3900         http://bugs.webkit.org/show_bug.cgi?id=11014
3901
3902         Test: svg/hixie/viewbox/003.xml
3903
3904         * ksvg2/svg/svgpathparser.cpp:
3905         (WebCore::isWhitespace): new function
3906         (WebCore::skipOptionalSpaces):
3907         (WebCore::skipOptionalSpacesOrComma):
3908
3909 2006-09-26  Eric Seidel  <eric@eseidel.com>
3910
3911         Reviewed by Tim H.
3912
3913         SVGDocument::createElement does not create elements in the SVG namespace
3914         http://bugs.webkit.org/show_bug.cgi?id=10932
3915         
3916         Test: svg/custom/createelement.svg
3917
3918         * ksvg2/svg/SVGDocument.cpp:
3919         (WebCore::SVGDocument::createElement):
3920         * ksvg2/svg/SVGDocument.h:
3921
3922 2006-09-26  Eric Seidel  <eric@eseidel.com>
3923
3924         Reviewed by Tim H.
3925         
3926         RenderPath::nodeAtPoint does not respect stroke width
3927         http://bugs.webkit.org/show_bug.cgi?id=10829
3928
3929         Test: svg/custom/stroke-width-click.svg
3930
3931         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
3932         (WebCore::RenderPath::strokeContains):
3933         * kcanvas/device/quartz/QuartzSupport.h:
3934         * kcanvas/device/quartz/QuartzSupport.mm:
3935
3936 2006-09-26  Eric Seidel  <eric@eseidel.com>
3937
3938         Reviewed by mitz.
3939
3940         Bring animation back to life
3941         http://bugs.webkit.org/show_bug.cgi?id=11021
3942         
3943         Register/unregister SVGSVGElements as time containers on insertion/removal.
3944         Replace uses of DeprecatedString with String in SVGAnimationElement
3945         Various whitespace clean-up.
3946
3947         * ksvg2/misc/KSVGTimeScheduler.cpp:
3948         (WebCore::SVGTimer::notifyAll):
3949         * ksvg2/misc/SVGDocumentExtensions.cpp:
3950         (WebCore::SVGDocumentExtensions::startAnimations):
3951         (WebCore::SVGDocumentExtensions::pauseAnimations):
3952         (WebCore::SVGDocumentExtensions::unpauseAnimations):
3953         * ksvg2/svg/SVGAnimateTransformElement.cpp:
3954         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
3955         (WebCore::SVGAnimateTransformElement::parseTransformValue):
3956         * ksvg2/svg/SVGAnimateTransformElement.h:
3957         * ksvg2/svg/SVGAnimationElement.cpp:
3958         (WebCore::SVGAnimationElement::SVGAnimationElement):
3959         (WebCore::SVGAnimationElement::parseMappedAttribute):
3960         (WebCore::SVGAnimationElement::parseClockValue):
3961         (WebCore::SVGAnimationElement::targetAttribute):
3962         (WebCore::SVGAnimationElement::setTargetAttribute):
3963         (WebCore::SVGAnimationElement::attributeName):
3964         * ksvg2/svg/SVGAnimationElement.h:
3965         (WebCore::SVGAnimationElement::rendererIsNeeded):
3966         * ksvg2/svg/SVGSVGElement.cpp:
3967         (WebCore::SVGSVGElement::getScreenCTM):
3968         (WebCore::SVGSVGElement::createRenderer):
3969         (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
3970         (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
3971         * ksvg2/svg/SVGSVGElement.h:
3972         * ksvg2/svg/SVGSetElement.cpp:
3973         (WebCore::SVGSetElement::handleTimerEvent):
3974         * ksvg2/svg/SVGURIReference.cpp:
3975         (WebCore::SVGURIReference::getTarget):
3976         * ksvg2/svg/SVGURIReference.h:
3977
3978 2006-09-26  Graham Dennis  <graham.dennis@gmail.com>
3979
3980         Reviewed by mitzpettel.
3981
3982         - fix http://bugs.webkit.org/show_bug.cgi?id=11020
3983         No-SVG build broken since r16549
3984         
3985         Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
3986
3987         * css/cssparser.cpp:
3988         (WebCore::CSSParser::parseValue):
3989         * css/cssstyleselector.cpp:
3990         (WebCore::CSSStyleSelector::applyProperty):
3991         * page/FrameView.cpp:
3992         (WebCore::selectCursor):
3993         * platform/qt/GraphicsContextQt.cpp:
3994
3995 2006-09-26  Anders Carlsson  <acarlsson@apple.com>
3996
3997         Reviewed by Maciej.
3998
3999         http://bugs.webkit.org/show_bug.cgi?id=10820
4000         Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
4001         
4002         (Originally written by Eric Seidel).
4003         
4004         * bindings/js/kjs_window.cpp:
4005         (KJS::floatFeature):
4006         * ksvg2/svg/SVGAngle.cpp:
4007         (SVGAngle::setValueAsString):
4008         * ksvg2/svg/SVGAnimationElement.cpp:
4009         (SVGAnimationElement::parseMappedAttribute):
4010         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
4011         (SVGComponentTransferFunctionElement::parseMappedAttribute):
4012         * ksvg2/svg/SVGFECompositeElement.cpp:
4013         (WebCore::SVGFECompositeElement::parseMappedAttribute):
4014         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
4015         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
4016         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
4017         (SVGFEDisplacementMapElement::parseMappedAttribute):
4018         * ksvg2/svg/SVGFELightElement.cpp:
4019         (SVGFELightElement::parseMappedAttribute):
4020         * ksvg2/svg/SVGFEOffsetElement.cpp:
4021         (WebCore::SVGFEOffsetElement::parseMappedAttribute):
4022         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
4023         (SVGFESpecularLightingElement::parseMappedAttribute):
4024         * ksvg2/svg/SVGFETurbulenceElement.cpp:
4025         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
4026         * ksvg2/svg/SVGStopElement.cpp:
4027         (SVGStopElement::parseMappedAttribute):
4028         * platform/AtomicString.h:
4029         (WebCore::AtomicString::toDouble):
4030         * platform/PlatformString.h:
4031         * platform/String.cpp:
4032         (WebCore::String::toDouble):
4033         * platform/StringImpl.cpp:
4034         (WebCore::StringImpl::toDouble):
4035         * platform/StringImpl.h:
4036         * rendering/DeprecatedSlider.cpp:
4037         (WebCore::DeprecatedSlider::updateFromElement):
4038         * xml/XPathGrammar.y:
4039
4040 2006-09-25  David Harrison  <harrison@apple.com>
4041
4042         Reviewed by Tim Omernick and Tim Hatcher.
4043
4044         <rdar://problem/4717965> Text Field text parameterized attributes should work
4045         <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
4046
4047         * bridge/mac/WebCoreAXObject.mm:
4048         (-[WebCoreAXObject accessibilityAttributeValue:]):
4049         Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
4050         
4051         (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
4052         Cleaned up. Added text field and text area parameterzed attributes.
4053         
4054         (-[WebCoreAXObject doAXLineForTextMarker:]):
4055         Fixed to be zero-based and to deal with the first position properly.
4056         
4057         (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
4058         Minor formatting.
4059         
4060         (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
4061         (-[WebCoreAXObject indexForTextMarker:]):
4062         (-[WebCoreAXObject textMarkerRangeForRange:]):
4063         (-[WebCoreAXObject rangeForTextMarkerRange:]):
4064         New utility methods.
4065         
4066         (-[WebCoreAXObject doAXLineForIndex:]):
4067         (-[WebCoreAXObject doAXRangeForLine:]):
4068         (-[WebCoreAXObject doAXStringForRange:]):
4069         (-[WebCoreAXObject doAXRangeForPosition:]):
4070         (-[WebCoreAXObject doAXRangeForIndex:]):
4071         (-[WebCoreAXObject doAXBoundsForRange:]):
4072         (-[WebCoreAXObject doAXAttributedStringForRange:]):
4073         (-[WebCoreAXObject doAXRTFForRange:]):
4074         (-[WebCoreAXObject doAXStyleRangeForIndex:]):
4075         Implement text field and text area parameterized attributes.
4076          
4077         (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
4078         Added text field and text area parameterzed attributes.
4079
4080         * rendering/RenderTextControl.h:
4081         Made indexForVisiblePosition() and visiblePositionForIndex() public.
4082
4083 2006-09-25  Adam Roben  <aroben@apple.com>
4084
4085         Reviewed by Brady.
4086
4087         Build fixes.
4088
4089         * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
4090         * platform/ResourceLoader.h: Store whether a particular job
4091         has received a response within the ResourceLoader object itself, since
4092         it's possible that we will enter the InternetReadFileExA while loop
4093         twice for the same job.
4094         * platform/ResourceLoaderInternal.h: Add private instance variable to
4095         store whether we've received a response.
4096         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
4097         * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
4098         directives.
4099         * platform/win/ResourceLoaderWin.cpp: 
4100         (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
4101         whether it has received a response instead of assuming it hasn't.
4102         (WebCore::ResourceLoader::setHasReceivedResponse): Added.
4103         (WebCore::ResourceLoader::hasReceivedResponse): Added.
4104         * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
4105         setProportion
4106         (ScrollBar::setProportion):
4107
4108 2006-09-25  Brady Eidson  <beidson@apple.com>
4109
4110         Requested by ggaren
4111
4112         Disabled IconDatabase logging by default
4113
4114         * platform/Logging.cpp:
4115         (WebCore::):
4116
4117 2006-09-25  Steve Falkenburg  <sfalken@apple.com>
4118
4119         Build fix
4120
4121         * platform/cf/ResourceLoaderCFNet.cpp:
4122         (WebCore::willCacheResponse):
4123
4124 2006-09-25  Justin Garcia  <justin.garcia@apple.com>
4125
4126         Reviewed by john
4127         
4128         <http://bugs.webkit.org/show_bug.cgi?id=11002>
4129         Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
4130         
4131         * editing/IndentOutdentCommand.cpp:
4132         (WebCore::IndentOutdentCommand::indentRegion): Special case
4133         an empty root editable element.
4134
4135 2006-09-25  Brady Eidson  <beidson@apple.com>
4136
4137         Reviewed by Steve
4138
4139         Math error in SystemTimeWin
4140
4141         * platform/win/SystemTimeWin.cpp:
4142         (WebCore::currentTime):
4143
4144 2006-09-25  Alexey Proskuryakov  <ap@nypop.com>
4145
4146         Reviewed by Eric.
4147
4148         Whitespace cleanup; rename *job variables to *loader.
4149
4150         * bindings/js/JSXMLHttpRequest.cpp:
4151         (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
4152         (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
4153         (KJS::JSXMLHttpRequestConstructorImp::construct):
4154         (KJS::JSXMLHttpRequest::getOwnPropertySlot):
4155         (KJS::JSXMLHttpRequest::getValueProperty):
4156         (KJS::JSXMLHttpRequest::put):
4157         (KJS::JSXMLHttpRequest::putValueProperty):
4158         (KJS::JSXMLHttpRequest::mark):
4159         (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
4160         (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
4161         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
4162         * bindings/js/JSXMLHttpRequest.h:
4163         (KJS::JSXMLHttpRequest::toBoolean):
4164         * xml/xmlhttprequest.cpp:
4165         (WebCore::XMLHttpRequest::XMLHttpRequest):
4166         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
4167         (WebCore::XMLHttpRequest::send):
4168         (WebCore::XMLHttpRequest::abort):
4169         (WebCore::XMLHttpRequest::receivedAllData):
4170         (WebCore::XMLHttpRequest::receivedData):
4171         * xml/xmlhttprequest.h:
4172         (WebCore::):
4173
4174 2006-09-25  Timothy Hatcher  <timothy@apple.com>
4175
4176         Reviewed by Brady.
4177
4178         - Deprecate the rest of the old-style methods that are not generated.
4179         - Add @property syntax to DOMRange.
4180
4181         * WebCore.xcodeproj/project.pbxproj:
4182         * bindings/objc/DOM.mm:
4183         (-[DOMRange setStart:offset:]):
4184         (-[DOMRange setEnd:offset:]):
4185         (-[DOMRange compareBoundaryPoints:sourceRange:]):
4186         (-[DOMRange setStart::]):
4187         (-[DOMRange setEnd::]):
4188         (-[DOMRange compareBoundaryPoints::]):
4189         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
4190         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
4191         (-[DOMDocument createNodeIterator::::]):
4192         (-[DOMDocument createTreeWalker::::]):
4193         * bindings/objc/DOMCSS.h:
4194         * bindings/objc/DOMCSS.mm:
4195         (-[DOMDocument getComputedStyle:pseudoElement:]):
4196         (-[DOMDocument getComputedStyle::]):
4197         (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
4198         * bindings/objc/DOMExtensions.h:
4199         * bindings/objc/DOMHTML.h:
4200         * bindings/objc/DOMRange.h:
4201         * bindings/objc/DOMTraversal.h:
4202
4203 2006-09-25  Eric Seidel  <eric@eseidel.com>
4204
4205         Reviewed by mjs.
4206         
4207         Outermost <svg> element should clip to viewport
4208         http://bugs.webkit.org/show_bug.cgi?id=11007
4209
4210         Test: svg/custom/viewport-clip.svg
4211
4212         * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
4213
4214 2006-09-25  Anders Carlsson  <acarlsson@apple.com>
4215
4216         Reviewed by Maciej.
4217
4218         * css/MediaList.cpp:
4219         Remove unused header.
4220         
4221         * dom/Document.cpp:
4222         (WebCore::Document::clear):
4223         Use clear instead of iterating through the list of event listeners, removing each one.
4224         (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
4225         
4226         * html/HTMLKeygenElement.cpp:
4227         (WebCore::HTMLKeygenElement::HTMLKeygenElement):
4228         (WebCore::HTMLKeygenElement::appendFormData):
4229         Update due to changes in the SSL key generator.
4230         
4231         * ksvg2/svg/SVGAngle.cpp:
4232         Remove unused header.
4233         
4234         * ksvg2/svg/SVGAnimationElement.cpp:
4235         (SVGAnimationElement::parseMappedAttribute):
4236         Rename methods and pass Strings instead of DeprecatedStrings to
4237         parseSeparatedList.
4238         
4239         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
4240         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
4241         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
4242         * ksvg2/svg/SVGFEMergeElement.cpp:
4243         * ksvg2/svg/SVGFEOffsetElement.cpp:
4244         Remove unused headers.
4245         
4246         * ksvg2/svg/SVGHelper.cpp:
4247         (WebCore::SVGHelper::parseSeparatedList):
4248         * ksvg2/svg/SVGHelper.h:
4249         Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a 
4250         DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
4251         
4252         * ksvg2/svg/SVGLengthList.cpp:
4253         (WebCore::SVGLengthList::parse):
4254         * ksvg2/svg/SVGLengthList.h:
4255         Use Vector<String> instead of DeprecatedStringList.
4256         
4257         * loader/Cache.cpp:
4258         (WebCore::Cache::requestImage):
4259         (WebCore::Cache::requestStyleSheet):
4260         (WebCore::Cache::requestScript):
4261         (WebCore::Cache::requestXSLStyleSheet):
4262         (WebCore::Cache::requestXBLDocument):
4263         (WebCore::Cache::remove):
4264         (WebCore::Cache::get):
4265         Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
4266         
4267         * loader/DocLoader.cpp:
4268         (WebCore::DocLoader::needReload):
4269         * loader/DocLoader.h:
4270         Use a HashSet instead of DeprecatedStringList.
4271         
4272         * page/FrameView.h:
4273         Remove declarations that h