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