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