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