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