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