75bdcb0d4581153066e6c5dcedd6cd01b9b237f2
[WebKit-https.git] / WebCore / ChangeLog
1 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
2
3         Not reviewed. Try to fix qt/gtk build.
4
5         * WebCore.pro:
6
7 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
8
9         Rubber stamped by Eric.
10
11         Final integration of ksvg2 in WebKit. Moving ksvg2/ to svg/ and killing all it's subdirectories,
12         by moving the files into approriate locations (css, rendering, ...) - as dicsussed on the
13         mailing list and on IRC with David/Darin & Eric.
14
15         Updated all build files - though I can't guarantee it builds on non-mac. Need buildbot to verify.
16
17         * DerivedSources.make:
18         * WebCore.pro:
19         * WebCore.vcproj/WebCore.vcproj:
20         * WebCore.xcodeproj/project.pbxproj:
21         * bindings/js/JSSVGLazyEventListener.cpp: Copied from ksvg2/events/JSSVGLazyEventListener.cpp.
22         * bindings/js/JSSVGLazyEventListener.h: Copied from ksvg2/events/JSSVGLazyEventListener.h.
23         * css/SVGCSSComputedStyleDeclaration.cpp: Copied from ksvg2/css/SVGCSSComputedStyleDeclaration.cpp.
24         * css/SVGCSSParser.cpp: Copied from ksvg2/css/SVGCSSParser.cpp.
25         * css/SVGCSSPropertyNames.in: Copied from ksvg2/css/SVGCSSPropertyNames.in.
26         * css/SVGCSSStyleSelector.cpp: Copied from ksvg2/css/SVGCSSStyleSelector.cpp.
27         * css/SVGCSSValueKeywords.in: Copied from ksvg2/css/SVGCSSValueKeywords.in.
28         * dom/make_names.pl: Copied from ksvg2/scripts/make_names.pl.
29         * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp: Removed.
30         * ksvg2/css/SVGCSSParser.cpp: Removed.
31         * ksvg2/css/SVGCSSPropertyNames.in: Removed.
32         * ksvg2/css/SVGCSSStyleSelector.cpp: Removed.
33         * ksvg2/css/SVGCSSValueKeywords.in: Removed.
34         * ksvg2/css/SVGRenderStyle.cpp: Removed.
35         * ksvg2/css/SVGRenderStyle.h: Removed.
36         * ksvg2/css/SVGRenderStyleDefs.cpp: Removed.
37         * ksvg2/css/SVGRenderStyleDefs.h: Removed.
38         * ksvg2/events/JSSVGLazyEventListener.cpp: Removed.
39         * ksvg2/events/JSSVGLazyEventListener.h: Removed.
40         * ksvg2/events/SVGZoomEvent.cpp: Removed.
41         * ksvg2/events/SVGZoomEvent.h: Removed.
42         * ksvg2/events/SVGZoomEvent.idl: Removed.
43         * ksvg2/misc/PointerEventsHitRules.cpp: Removed.
44         * ksvg2/misc/PointerEventsHitRules.h: Removed.
45         * ksvg2/misc/SVGDocumentExtensions.cpp: Removed.
46         * ksvg2/misc/SVGDocumentExtensions.h: Removed.
47         * ksvg2/misc/SVGImageLoader.cpp: Removed.
48         * ksvg2/misc/SVGImageLoader.h: Removed.
49         * ksvg2/misc/SVGTimer.cpp: Removed.
50         * ksvg2/misc/SVGTimer.h: Removed.
51         * ksvg2/misc/TimeScheduler.cpp: Removed.
52         * ksvg2/misc/TimeScheduler.h: Removed.
53         * ksvg2/misc/xlinkattrs.in: Removed.
54         * ksvg2/scripts/make_names.pl: Removed.
55         * ksvg2/svg: Removed.
56         * ksvg2/svg/ColorDistance.cpp: Removed.
57         * ksvg2/svg/ColorDistance.h: Removed.
58         * ksvg2/svg/GradientAttributes.h: Removed.
59         * ksvg2/svg/LinearGradientAttributes.h: Removed.
60         * ksvg2/svg/PatternAttributes.h: Removed.
61         * ksvg2/svg/RadialGradientAttributes.h: Removed.
62         * ksvg2/svg/SVGAElement.cpp: Removed.
63         * ksvg2/svg/SVGAElement.h: Removed.
64         * ksvg2/svg/SVGAElement.idl: Removed.
65         * ksvg2/svg/SVGAngle.cpp: Removed.
66         * ksvg2/svg/SVGAngle.h: Removed.
67         * ksvg2/svg/SVGAngle.idl: Removed.
68         * ksvg2/svg/SVGAnimateColorElement.cpp: Removed.
69         * ksvg2/svg/SVGAnimateColorElement.h: Removed.
70         * ksvg2/svg/SVGAnimateColorElement.idl: Removed.
71         * ksvg2/svg/SVGAnimateElement.cpp: Removed.
72         * ksvg2/svg/SVGAnimateElement.h: Removed.
73         * ksvg2/svg/SVGAnimateElement.idl: Removed.
74         * ksvg2/svg/SVGAnimateMotionElement.cpp: Removed.
75         * ksvg2/svg/SVGAnimateMotionElement.h: Removed.
76         * ksvg2/svg/SVGAnimateTransformElement.cpp: Removed.
77         * ksvg2/svg/SVGAnimateTransformElement.h: Removed.
78         * ksvg2/svg/SVGAnimateTransformElement.idl: Removed.
79         * ksvg2/svg/SVGAnimatedAngle.idl: Removed.
80         * ksvg2/svg/SVGAnimatedBoolean.idl: Removed.
81         * ksvg2/svg/SVGAnimatedEnumeration.idl: Removed.
82         * ksvg2/svg/SVGAnimatedInteger.idl: Removed.
83         * ksvg2/svg/SVGAnimatedLength.idl: Removed.
84         * ksvg2/svg/SVGAnimatedLengthList.idl: Removed.
85         * ksvg2/svg/SVGAnimatedNumber.idl: Removed.
86         * ksvg2/svg/SVGAnimatedNumberList.idl: Removed.
87         * ksvg2/svg/SVGAnimatedPathData.cpp: Removed.
88         * ksvg2/svg/SVGAnimatedPathData.h: Removed.
89         * ksvg2/svg/SVGAnimatedPathData.idl: Removed.
90         * ksvg2/svg/SVGAnimatedPoints.cpp: Removed.
91         * ksvg2/svg/SVGAnimatedPoints.h: Removed.
92         * ksvg2/svg/SVGAnimatedPoints.idl: Removed.
93         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl: Removed.
94         * ksvg2/svg/SVGAnimatedRect.idl: Removed.
95         * ksvg2/svg/SVGAnimatedString.idl: Removed.
96         * ksvg2/svg/SVGAnimatedTemplate.h: Removed.
97         * ksvg2/svg/SVGAnimatedTransformList.idl: Removed.
98         * ksvg2/svg/SVGAnimationElement.cpp: Removed.
99         * ksvg2/svg/SVGAnimationElement.h: Removed.
100         * ksvg2/svg/SVGAnimationElement.idl: Removed.
101         * ksvg2/svg/SVGCircleElement.cpp: Removed.
102         * ksvg2/svg/SVGCircleElement.h: Removed.
103         * ksvg2/svg/SVGCircleElement.idl: Removed.
104         * ksvg2/svg/SVGClipPathElement.cpp: Removed.
105         * ksvg2/svg/SVGClipPathElement.h: Removed.
106         * ksvg2/svg/SVGClipPathElement.idl: Removed.
107         * ksvg2/svg/SVGColor.cpp: Removed.
108         * ksvg2/svg/SVGColor.h: Removed.
109         * ksvg2/svg/SVGColor.idl: Removed.
110         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp: Removed.
111         * ksvg2/svg/SVGComponentTransferFunctionElement.h: Removed.
112         * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Removed.
113         * ksvg2/svg/SVGCursorElement.cpp: Removed.
114         * ksvg2/svg/SVGCursorElement.h: Removed.
115         * ksvg2/svg/SVGCursorElement.idl: Removed.
116         * ksvg2/svg/SVGDefinitionSrcElement.cpp: Removed.
117         * ksvg2/svg/SVGDefinitionSrcElement.h: Removed.
118         * ksvg2/svg/SVGDefinitionSrcElement.idl: Removed.
119         * ksvg2/svg/SVGDefsElement.cpp: Removed.
120         * ksvg2/svg/SVGDefsElement.h: Removed.
121         * ksvg2/svg/SVGDefsElement.idl: Removed.
122         * ksvg2/svg/SVGDescElement.cpp: Removed.
123         * ksvg2/svg/SVGDescElement.h: Removed.
124         * ksvg2/svg/SVGDescElement.idl: Removed.
125         * ksvg2/svg/SVGDocument.cpp: Removed.
126         * ksvg2/svg/SVGDocument.h: Removed.
127         * ksvg2/svg/SVGDocument.idl: Removed.
128         * ksvg2/svg/SVGElement.cpp: Removed.
129         * ksvg2/svg/SVGElement.h: Removed.
130         * ksvg2/svg/SVGElement.idl: Removed.
131         * ksvg2/svg/SVGElementInstance.cpp: Removed.
132         * ksvg2/svg/SVGElementInstance.h: Removed.
133         * ksvg2/svg/SVGElementInstance.idl: Removed.
134         * ksvg2/svg/SVGElementInstanceList.cpp: Removed.
135         * ksvg2/svg/SVGElementInstanceList.h: Removed.
136         * ksvg2/svg/SVGElementInstanceList.idl: Removed.
137         * ksvg2/svg/SVGEllipseElement.cpp: Removed.
138         * ksvg2/svg/SVGEllipseElement.h: Removed.
139         * ksvg2/svg/SVGEllipseElement.idl: Removed.
140         * ksvg2/svg/SVGException.h: Removed.
141         * ksvg2/svg/SVGException.idl: Removed.
142         * ksvg2/svg/SVGExternalResourcesRequired.cpp: Removed.
143         * ksvg2/svg/SVGExternalResourcesRequired.h: Removed.
144         * ksvg2/svg/SVGExternalResourcesRequired.idl: Removed.
145         * ksvg2/svg/SVGFEBlendElement.cpp: Removed.
146         * ksvg2/svg/SVGFEBlendElement.h: Removed.
147         * ksvg2/svg/SVGFEBlendElement.idl: Removed.
148         * ksvg2/svg/SVGFEColorMatrixElement.cpp: Removed.
149         * ksvg2/svg/SVGFEColorMatrixElement.h: Removed.
150         * ksvg2/svg/SVGFEColorMatrixElement.idl: Removed.
151         * ksvg2/svg/SVGFEComponentTransferElement.cpp: Removed.
152         * ksvg2/svg/SVGFEComponentTransferElement.h: Removed.
153         * ksvg2/svg/SVGFEComponentTransferElement.idl: Removed.
154         * ksvg2/svg/SVGFECompositeElement.cpp: Removed.
155         * ksvg2/svg/SVGFECompositeElement.h: Removed.
156         * ksvg2/svg/SVGFECompositeElement.idl: Removed.
157         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp: Removed.
158         * ksvg2/svg/SVGFEDiffuseLightingElement.h: Removed.
159         * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Removed.
160         * ksvg2/svg/SVGFEDisplacementMapElement.cpp: Removed.
161         * ksvg2/svg/SVGFEDisplacementMapElement.h: Removed.
162         * ksvg2/svg/SVGFEDisplacementMapElement.idl: Removed.
163         * ksvg2/svg/SVGFEDistantLightElement.cpp: Removed.
164         * ksvg2/svg/SVGFEDistantLightElement.h: Removed.
165         * ksvg2/svg/SVGFEDistantLightElement.idl: Removed.
166         * ksvg2/svg/SVGFEFloodElement.cpp: Removed.
167         * ksvg2/svg/SVGFEFloodElement.h: Removed.
168         * ksvg2/svg/SVGFEFloodElement.idl: Removed.
169         * ksvg2/svg/SVGFEFuncAElement.cpp: Removed.
170         * ksvg2/svg/SVGFEFuncAElement.h: Removed.
171         * ksvg2/svg/SVGFEFuncAElement.idl: Removed.
172         * ksvg2/svg/SVGFEFuncBElement.cpp: Removed.
173         * ksvg2/svg/SVGFEFuncBElement.h: Removed.
174         * ksvg2/svg/SVGFEFuncBElement.idl: Removed.
175         * ksvg2/svg/SVGFEFuncGElement.cpp: Removed.
176         * ksvg2/svg/SVGFEFuncGElement.h: Removed.
177         * ksvg2/svg/SVGFEFuncGElement.idl: Removed.
178         * ksvg2/svg/SVGFEFuncRElement.cpp: Removed.
179         * ksvg2/svg/SVGFEFuncRElement.h: Removed.
180         * ksvg2/svg/SVGFEFuncRElement.idl: Removed.
181         * ksvg2/svg/SVGFEGaussianBlurElement.cpp: Removed.
182         * ksvg2/svg/SVGFEGaussianBlurElement.h: Removed.
183         * ksvg2/svg/SVGFEGaussianBlurElement.idl: Removed.
184         * ksvg2/svg/SVGFEImageElement.cpp: Removed.
185         * ksvg2/svg/SVGFEImageElement.h: Removed.
186         * ksvg2/svg/SVGFEImageElement.idl: Removed.
187         * ksvg2/svg/SVGFELightElement.cpp: Removed.
188         * ksvg2/svg/SVGFELightElement.h: Removed.
189         * ksvg2/svg/SVGFEMergeElement.cpp: Removed.
190         * ksvg2/svg/SVGFEMergeElement.h: Removed.
191         * ksvg2/svg/SVGFEMergeElement.idl: Removed.
192         * ksvg2/svg/SVGFEMergeNodeElement.cpp: Removed.
193         * ksvg2/svg/SVGFEMergeNodeElement.h: Removed.
194         * ksvg2/svg/SVGFEMergeNodeElement.idl: Removed.
195         * ksvg2/svg/SVGFEOffsetElement.cpp: Removed.
196         * ksvg2/svg/SVGFEOffsetElement.h: Removed.
197         * ksvg2/svg/SVGFEOffsetElement.idl: Removed.
198         * ksvg2/svg/SVGFEPointLightElement.cpp: Removed.
199         * ksvg2/svg/SVGFEPointLightElement.h: Removed.
200         * ksvg2/svg/SVGFEPointLightElement.idl: Removed.
201         * ksvg2/svg/SVGFESpecularLightingElement.cpp: Removed.
202         * ksvg2/svg/SVGFESpecularLightingElement.h: Removed.
203         * ksvg2/svg/SVGFESpecularLightingElement.idl: Removed.
204         * ksvg2/svg/SVGFESpotLightElement.cpp: Removed.
205         * ksvg2/svg/SVGFESpotLightElement.h: Removed.
206         * ksvg2/svg/SVGFESpotLightElement.idl: Removed.
207         * ksvg2/svg/SVGFETileElement.cpp: Removed.
208         * ksvg2/svg/SVGFETileElement.h: Removed.
209         * ksvg2/svg/SVGFETileElement.idl: Removed.
210         * ksvg2/svg/SVGFETurbulenceElement.cpp: Removed.
211         * ksvg2/svg/SVGFETurbulenceElement.h: Removed.
212         * ksvg2/svg/SVGFETurbulenceElement.idl: Removed.
213         * ksvg2/svg/SVGFilterElement.cpp: Removed.
214         * ksvg2/svg/SVGFilterElement.h: Removed.
215         * ksvg2/svg/SVGFilterElement.idl: Removed.
216         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp: Removed.
217         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: Removed.
218         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Removed.
219         * ksvg2/svg/SVGFitToViewBox.cpp: Removed.
220         * ksvg2/svg/SVGFitToViewBox.h: Removed.
221         * ksvg2/svg/SVGFitToViewBox.idl: Removed.
222         * ksvg2/svg/SVGFontFaceElement.cpp: Removed.
223         * ksvg2/svg/SVGFontFaceElement.h: Removed.
224         * ksvg2/svg/SVGFontFaceElement.idl: Removed.
225         * ksvg2/svg/SVGFontFaceFormatElement.cpp: Removed.
226         * ksvg2/svg/SVGFontFaceFormatElement.h: Removed.
227         * ksvg2/svg/SVGFontFaceFormatElement.idl: Removed.
228         * ksvg2/svg/SVGFontFaceNameElement.cpp: Removed.
229         * ksvg2/svg/SVGFontFaceNameElement.h: Removed.
230         * ksvg2/svg/SVGFontFaceNameElement.idl: Removed.
231         * ksvg2/svg/SVGFontFaceSrcElement.cpp: Removed.
232         * ksvg2/svg/SVGFontFaceSrcElement.h: Removed.
233         * ksvg2/svg/SVGFontFaceSrcElement.idl: Removed.
234         * ksvg2/svg/SVGFontFaceUriElement.cpp: Removed.
235         * ksvg2/svg/SVGFontFaceUriElement.h: Removed.
236         * ksvg2/svg/SVGFontFaceUriElement.idl: Removed.
237         * ksvg2/svg/SVGForeignObjectElement.cpp: Removed.
238         * ksvg2/svg/SVGForeignObjectElement.h: Removed.
239         * ksvg2/svg/SVGForeignObjectElement.idl: Removed.
240         * ksvg2/svg/SVGGElement.cpp: Removed.
241         * ksvg2/svg/SVGGElement.h: Removed.
242         * ksvg2/svg/SVGGElement.idl: Removed.
243         * ksvg2/svg/SVGGradientElement.cpp: Removed.
244         * ksvg2/svg/SVGGradientElement.h: Removed.
245         * ksvg2/svg/SVGGradientElement.idl: Removed.
246         * ksvg2/svg/SVGImageElement.cpp: Removed.
247         * ksvg2/svg/SVGImageElement.h: Removed.
248         * ksvg2/svg/SVGImageElement.idl: Removed.
249         * ksvg2/svg/SVGLangSpace.cpp: Removed.
250         * ksvg2/svg/SVGLangSpace.h: Removed.
251         * ksvg2/svg/SVGLangSpace.idl: Removed.
252         * ksvg2/svg/SVGLength.cpp: Removed.
253         * ksvg2/svg/SVGLength.h: Removed.
254         * ksvg2/svg/SVGLength.idl: Removed.
255         * ksvg2/svg/SVGLengthList.cpp: Removed.
256         * ksvg2/svg/SVGLengthList.h: Removed.
257         * ksvg2/svg/SVGLengthList.idl: Removed.
258         * ksvg2/svg/SVGLineElement.cpp: Removed.
259         * ksvg2/svg/SVGLineElement.h: Removed.
260         * ksvg2/svg/SVGLineElement.idl: Removed.
261         * ksvg2/svg/SVGLinearGradientElement.cpp: Removed.
262         * ksvg2/svg/SVGLinearGradientElement.h: Removed.
263         * ksvg2/svg/SVGLinearGradientElement.idl: Removed.
264         * ksvg2/svg/SVGList.h: Removed.
265         * ksvg2/svg/SVGListTraits.h: Removed.
266         * ksvg2/svg/SVGLocatable.cpp: Removed.
267         * ksvg2/svg/SVGLocatable.h: Removed.
268         * ksvg2/svg/SVGLocatable.idl: Removed.
269         * ksvg2/svg/SVGMPathElement.cpp: Removed.
270         * ksvg2/svg/SVGMPathElement.h: Removed.
271         * ksvg2/svg/SVGMarkerElement.cpp: Removed.
272         * ksvg2/svg/SVGMarkerElement.h: Removed.
273         * ksvg2/svg/SVGMarkerElement.idl: Removed.
274         * ksvg2/svg/SVGMaskElement.cpp: Removed.
275         * ksvg2/svg/SVGMaskElement.h: Removed.
276         * ksvg2/svg/SVGMaskElement.idl: Removed.
277         * ksvg2/svg/SVGMatrix.idl: Removed.
278         * ksvg2/svg/SVGMetadataElement.cpp: Removed.
279         * ksvg2/svg/SVGMetadataElement.h: Removed.
280         * ksvg2/svg/SVGMetadataElement.idl: Removed.
281         * ksvg2/svg/SVGNumber.idl: Removed.
282         * ksvg2/svg/SVGNumberList.cpp: Removed.
283         * ksvg2/svg/SVGNumberList.h: Removed.
284         * ksvg2/svg/SVGNumberList.idl: Removed.
285         * ksvg2/svg/SVGPaint.cpp: Removed.
286         * ksvg2/svg/SVGPaint.h: Removed.
287         * ksvg2/svg/SVGPaint.idl: Removed.
288         * ksvg2/svg/SVGParserUtilities.cpp: Removed.
289         * ksvg2/svg/SVGParserUtilities.h: Removed.
290         * ksvg2/svg/SVGPathElement.cpp: Removed.
291         * ksvg2/svg/SVGPathElement.h: Removed.
292         * ksvg2/svg/SVGPathElement.idl: Removed.
293         * ksvg2/svg/SVGPathSeg.h: Removed.
294         * ksvg2/svg/SVGPathSeg.idl: Removed.
295         * ksvg2/svg/SVGPathSegArc.cpp: Removed.
296         * ksvg2/svg/SVGPathSegArc.h: Removed.
297         * ksvg2/svg/SVGPathSegArcAbs.idl: Removed.
298         * ksvg2/svg/SVGPathSegArcRel.idl: Removed.
299         * ksvg2/svg/SVGPathSegClosePath.cpp: Removed.
300         * ksvg2/svg/SVGPathSegClosePath.h: Removed.
301         * ksvg2/svg/SVGPathSegClosePath.idl: Removed.
302         * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: Removed.
303         * ksvg2/svg/SVGPathSegCurvetoCubic.h: Removed.
304         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl: Removed.
305         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl: Removed.
306         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: Removed.
307         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: Removed.
308         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl: Removed.
309         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl: Removed.
310         * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: Removed.
311         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: Removed.
312         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl: Removed.
313         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl: Removed.
314         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: Removed.
315         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: Removed.
316         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl: Removed.
317         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl: Removed.
318         * ksvg2/svg/SVGPathSegLineto.cpp: Removed.
319         * ksvg2/svg/SVGPathSegLineto.h: Removed.
320         * ksvg2/svg/SVGPathSegLinetoAbs.idl: Removed.
321         * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: Removed.
322         * ksvg2/svg/SVGPathSegLinetoHorizontal.h: Removed.
323         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl: Removed.
324         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl: Removed.
325         * ksvg2/svg/SVGPathSegLinetoRel.idl: Removed.
326         * ksvg2/svg/SVGPathSegLinetoVertical.cpp: Removed.
327         * ksvg2/svg/SVGPathSegLinetoVertical.h: Removed.
328         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl: Removed.
329         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl: Removed.
330         * ksvg2/svg/SVGPathSegList.cpp: Removed.
331         * ksvg2/svg/SVGPathSegList.h: Removed.
332         * ksvg2/svg/SVGPathSegList.idl: Removed.
333         * ksvg2/svg/SVGPathSegMoveto.cpp: Removed.
334         * ksvg2/svg/SVGPathSegMoveto.h: Removed.
335         * ksvg2/svg/SVGPathSegMovetoAbs.idl: Removed.
336         * ksvg2/svg/SVGPathSegMovetoRel.idl: Removed.
337         * ksvg2/svg/SVGPatternElement.cpp: Removed.
338         * ksvg2/svg/SVGPatternElement.h: Removed.
339         * ksvg2/svg/SVGPatternElement.idl: Removed.
340         * ksvg2/svg/SVGPoint.idl: Removed.
341         * ksvg2/svg/SVGPointList.cpp: Removed.
342         * ksvg2/svg/SVGPointList.h: Removed.
343         * ksvg2/svg/SVGPointList.idl: Removed.
344         * ksvg2/svg/SVGPolyElement.cpp: Removed.
345         * ksvg2/svg/SVGPolyElement.h: Removed.
346         * ksvg2/svg/SVGPolygonElement.cpp: Removed.
347         * ksvg2/svg/SVGPolygonElement.h: Removed.
348         * ksvg2/svg/SVGPolygonElement.idl: Removed.
349         * ksvg2/svg/SVGPolylineElement.cpp: Removed.
350         * ksvg2/svg/SVGPolylineElement.h: Removed.
351         * ksvg2/svg/SVGPolylineElement.idl: Removed.
352         * ksvg2/svg/SVGPreserveAspectRatio.cpp: Removed.
353         * ksvg2/svg/SVGPreserveAspectRatio.h: Removed.
354         * ksvg2/svg/SVGPreserveAspectRatio.idl: Removed.
355         * ksvg2/svg/SVGRadialGradientElement.cpp: Removed.
356         * ksvg2/svg/SVGRadialGradientElement.h: Removed.
357         * ksvg2/svg/SVGRadialGradientElement.idl: Removed.
358         * ksvg2/svg/SVGRect.idl: Removed.
359         * ksvg2/svg/SVGRectElement.cpp: Removed.
360         * ksvg2/svg/SVGRectElement.h: Removed.
361         * ksvg2/svg/SVGRectElement.idl: Removed.
362         * ksvg2/svg/SVGRenderingIntent.h: Removed.
363         * ksvg2/svg/SVGRenderingIntent.idl: Removed.
364         * ksvg2/svg/SVGSVGElement.cpp: Removed.
365         * ksvg2/svg/SVGSVGElement.h: Removed.
366         * ksvg2/svg/SVGSVGElement.idl: Removed.
367         * ksvg2/svg/SVGScriptElement.cpp: Removed.
368         * ksvg2/svg/SVGScriptElement.h: Removed.
369         * ksvg2/svg/SVGScriptElement.idl: Removed.
370         * ksvg2/svg/SVGSetElement.cpp: Removed.
371         * ksvg2/svg/SVGSetElement.h: Removed.
372         * ksvg2/svg/SVGSetElement.idl: Removed.
373         * ksvg2/svg/SVGStopElement.cpp: Removed.
374         * ksvg2/svg/SVGStopElement.h: Removed.
375         * ksvg2/svg/SVGStopElement.idl: Removed.
376         * ksvg2/svg/SVGStringList.cpp: Removed.
377         * ksvg2/svg/SVGStringList.h: Removed.
378         * ksvg2/svg/SVGStringList.idl: Removed.
379         * ksvg2/svg/SVGStylable.cpp: Removed.
380         * ksvg2/svg/SVGStylable.h: Removed.
381         * ksvg2/svg/SVGStylable.idl: Removed.
382         * ksvg2/svg/SVGStyleElement.cpp: Removed.
383         * ksvg2/svg/SVGStyleElement.h: Removed.
384         * ksvg2/svg/SVGStyleElement.idl: Removed.
385         * ksvg2/svg/SVGStyledElement.cpp: Removed.
386         * ksvg2/svg/SVGStyledElement.h: Removed.
387         * ksvg2/svg/SVGStyledLocatableElement.cpp: Removed.
388         * ksvg2/svg/SVGStyledLocatableElement.h: Removed.
389         * ksvg2/svg/SVGStyledTransformableElement.cpp: Removed.
390         * ksvg2/svg/SVGStyledTransformableElement.h: Removed.
391         * ksvg2/svg/SVGSwitchElement.cpp: Removed.
392         * ksvg2/svg/SVGSwitchElement.h: Removed.
393         * ksvg2/svg/SVGSwitchElement.idl: Removed.
394         * ksvg2/svg/SVGSymbolElement.cpp: Removed.
395         * ksvg2/svg/SVGSymbolElement.h: Removed.
396         * ksvg2/svg/SVGSymbolElement.idl: Removed.
397         * ksvg2/svg/SVGTRefElement.cpp: Removed.
398         * ksvg2/svg/SVGTRefElement.h: Removed.
399         * ksvg2/svg/SVGTRefElement.idl: Removed.
400         * ksvg2/svg/SVGTSpanElement.cpp: Removed.
401         * ksvg2/svg/SVGTSpanElement.h: Removed.
402         * ksvg2/svg/SVGTSpanElement.idl: Removed.
403         * ksvg2/svg/SVGTests.cpp: Removed.
404         * ksvg2/svg/SVGTests.h: Removed.
405         * ksvg2/svg/SVGTests.idl: Removed.
406         * ksvg2/svg/SVGTextContentElement.cpp: Removed.
407         * ksvg2/svg/SVGTextContentElement.h: Removed.
408         * ksvg2/svg/SVGTextContentElement.idl: Removed.
409         * ksvg2/svg/SVGTextElement.cpp: Removed.
410         * ksvg2/svg/SVGTextElement.h: Removed.
411         * ksvg2/svg/SVGTextElement.idl: Removed.
412         * ksvg2/svg/SVGTextPathElement.cpp: Removed.
413         * ksvg2/svg/SVGTextPathElement.h: Removed.
414         * ksvg2/svg/SVGTextPathElement.idl: Removed.
415         * ksvg2/svg/SVGTextPositioningElement.cpp: Removed.
416         * ksvg2/svg/SVGTextPositioningElement.h: Removed.
417         * ksvg2/svg/SVGTextPositioningElement.idl: Removed.
418         * ksvg2/svg/SVGTitleElement.cpp: Removed.
419         * ksvg2/svg/SVGTitleElement.h: Removed.
420         * ksvg2/svg/SVGTitleElement.idl: Removed.
421         * ksvg2/svg/SVGTransform.cpp: Removed.
422         * ksvg2/svg/SVGTransform.h: Removed.
423         * ksvg2/svg/SVGTransform.idl: Removed.
424         * ksvg2/svg/SVGTransformDistance.cpp: Removed.
425         * ksvg2/svg/SVGTransformDistance.h: Removed.
426         * ksvg2/svg/SVGTransformList.cpp: Removed.
427         * ksvg2/svg/SVGTransformList.h: Removed.
428         * ksvg2/svg/SVGTransformList.idl: Removed.
429         * ksvg2/svg/SVGTransformable.cpp: Removed.
430         * ksvg2/svg/SVGTransformable.h: Removed.
431         * ksvg2/svg/SVGTransformable.idl: Removed.
432         * ksvg2/svg/SVGURIReference.cpp: Removed.
433         * ksvg2/svg/SVGURIReference.h: Removed.
434         * ksvg2/svg/SVGURIReference.idl: Removed.
435         * ksvg2/svg/SVGUnitTypes.h: Removed.
436         * ksvg2/svg/SVGUnitTypes.idl: Removed.
437         * ksvg2/svg/SVGUseElement.cpp: Removed.
438         * ksvg2/svg/SVGUseElement.h: Removed.
439         * ksvg2/svg/SVGUseElement.idl: Removed.
440         * ksvg2/svg/SVGViewElement.cpp: Removed.
441         * ksvg2/svg/SVGViewElement.h: Removed.
442         * ksvg2/svg/SVGViewElement.idl: Removed.
443         * ksvg2/svg/SVGViewSpec.cpp: Removed.
444         * ksvg2/svg/SVGViewSpec.h: Removed.
445         * ksvg2/svg/SVGViewSpec.idl: Removed.
446         * ksvg2/svg/SVGZoomAndPan.cpp: Removed.
447         * ksvg2/svg/SVGZoomAndPan.h: Removed.
448         * ksvg2/svg/SVGZoomAndPan.idl: Removed.
449         * ksvg2/svg/svgattrs.in: Removed.
450         * ksvg2/svg/svgtags.in: Removed.
451         * rendering/PointerEventsHitRules.cpp: Copied from ksvg2/misc/PointerEventsHitRules.cpp.
452         * rendering/PointerEventsHitRules.h: Copied from ksvg2/misc/PointerEventsHitRules.h.
453         * rendering/SVGRenderStyle.cpp: Copied from ksvg2/css/SVGRenderStyle.cpp.
454         * rendering/SVGRenderStyle.h: Copied from ksvg2/css/SVGRenderStyle.h.
455         * rendering/SVGRenderStyleDefs.cpp: Copied from ksvg2/css/SVGRenderStyleDefs.cpp.
456         * rendering/SVGRenderStyleDefs.h: Copied from ksvg2/css/SVGRenderStyleDefs.h.
457         * svg: Copied from ksvg2/svg.
458         * svg/SVGDocumentExtensions.cpp: Copied from ksvg2/misc/SVGDocumentExtensions.cpp.
459         * svg/SVGDocumentExtensions.h: Copied from ksvg2/misc/SVGDocumentExtensions.h.
460         * svg/SVGImageLoader.cpp: Copied from ksvg2/misc/SVGImageLoader.cpp.
461         * svg/SVGImageLoader.h: Copied from ksvg2/misc/SVGImageLoader.h.
462         * svg/SVGTimer.cpp: Copied from ksvg2/misc/SVGTimer.cpp.
463         * svg/SVGTimer.h: Copied from ksvg2/misc/SVGTimer.h.
464         * svg/SVGZoomEvent.cpp: Copied from ksvg2/events/SVGZoomEvent.cpp.
465         * svg/SVGZoomEvent.h: Copied from ksvg2/events/SVGZoomEvent.h.
466         * svg/SVGZoomEvent.idl: Copied from ksvg2/events/SVGZoomEvent.idl.
467         * svg/TimeScheduler.cpp: Copied from ksvg2/misc/TimeScheduler.cpp.
468         * svg/TimeScheduler.h: Copied from ksvg2/misc/TimeScheduler.h.
469         * svg/xlinkattrs.in: Copied from ksvg2/misc/xlinkattrs.in.
470
471 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
472
473         wx build fix. Add WebCore/platform/graphics/wx to includes.
474
475         * webcore-wx.bkl:
476
477 2007-11-30  Brady Eidson  <beidson@apple.com>
478
479         Reviewed by Geoff
480
481         Further hookup of Database API
482         With this change, any database operation that writes to the database (UPDATE, INSERT, CREATE, etc) will
483         result in a didModifyDatabase notification when the transaction is successfully committed
484
485         * storage/DatabaseAuthorizer.cpp: Global rename of "m_lastActionIncreasedSize" to "m_lastActionChangedDatabase"
486         (WebCore::DatabaseAuthorizer::reset):
487         (WebCore::DatabaseAuthorizer::createTable):
488         (WebCore::DatabaseAuthorizer::allowAlterTable):
489         (WebCore::DatabaseAuthorizer::createIndex):
490         (WebCore::DatabaseAuthorizer::createTrigger):
491         (WebCore::DatabaseAuthorizer::createVTable):
492         (WebCore::DatabaseAuthorizer::allowInsert):
493         (WebCore::DatabaseAuthorizer::allowUpdate):
494         * storage/DatabaseAuthorizer.h:
495         (WebCore::DatabaseAuthorizer::lastActionChangedDatabase):
496
497         * storage/DatabaseTracker.cpp:
498         (WebCore::DatabaseTracker::notifyDatabaseChanged): Added.  Allow external entities (SQLTransaction) to be able
499           to request a didModifyDatabase notification to the delegate
500         * storage/DatabaseTracker.h:
501
502         * storage/SQLTransaction.cpp: Added m_modifiedDatabase flag which tracks if any statement over the course of 
503           a transaction resulted in a change to the database.
504         (WebCore::SQLTransaction::SQLTransaction):
505         (WebCore::SQLTransaction::runCurrentStatement): Set m_modifiedDatabase to true if the authorizer reports a mutation
506           statement occurred
507         (WebCore::SQLTransaction::postflightAndCommit): If the transaction successfully commits, call DatabaseTracker::notifyDatabaseChanged
508         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
509         * storage/SQLTransaction.h:
510
511 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
512
513         Rubber stamped by David.
514
515         Next round of moves - platform reorganization.
516         Move text/font/glyph related files from the individual port directories
517         into platform/text/<port> or platform/graphics/<port>.
518
519         * DerivedSources.make:
520         * WebCore.pro:
521         * WebCore.vcproj/WebCore.vcproj:
522         * WebCore.xcodeproj/project.pbxproj:
523         * platform/cf/StringCF.cpp: Removed.
524         * platform/cf/StringImplCF.cpp: Removed.
525         * platform/graphics/gtk/FontCacheGtk.cpp: Copied from platform/gtk/FontCacheGtk.cpp.
526         * platform/graphics/gtk/FontDataGtk.cpp: Copied from platform/gtk/FontDataGtk.cpp.
527         * platform/graphics/gtk/FontGtk.cpp: Copied from platform/gtk/FontGtk.cpp.
528         * platform/graphics/gtk/FontPlatformData.h: Copied from platform/gtk/FontPlatformData.h.
529         * platform/graphics/gtk/FontPlatformDataGtk.cpp: Copied from platform/gtk/FontPlatformDataGtk.cpp.
530         * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp: Copied from platform/gtk/GlyphPageTreeNodeGtk.cpp.
531         * platform/graphics/mac/FontCacheMac.mm: Copied from platform/mac/FontCacheMac.mm.
532         * platform/graphics/mac/FontCustomPlatformData.cpp: Copied from platform/mac/FontCustomPlatformData.cpp.
533         * platform/graphics/mac/FontCustomPlatformData.h: Copied from platform/mac/FontCustomPlatformData.h.
534         * platform/graphics/mac/FontDataMac.mm: Copied from platform/mac/FontDataMac.mm.
535         * platform/graphics/mac/FontMac.mm: Copied from platform/mac/FontMac.mm.
536         * platform/graphics/mac/FontPlatformData.h: Copied from platform/mac/FontPlatformData.h.
537         * platform/graphics/mac/FontPlatformDataMac.mm: Copied from platform/mac/FontPlatformDataMac.mm.
538         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp: Copied from platform/mac/GlyphPageTreeNodeMac.cpp.
539         * platform/graphics/qt/FontCacheQt.cpp: Copied from platform/qt/FontCacheQt.cpp.
540         * platform/graphics/qt/FontCustomPlatformData.cpp: Copied from platform/qt/FontCustomPlatformData.cpp.
541         * platform/graphics/qt/FontCustomPlatformData.h: Copied from platform/qt/FontCustomPlatformData.h.
542         * platform/graphics/qt/FontDataQt.cpp: Copied from platform/qt/FontDataQt.cpp.
543         * platform/graphics/qt/FontPlatformData.h: Copied from platform/qt/FontPlatformData.h.
544         * platform/graphics/qt/FontQt.cpp: Copied from platform/qt/FontQt.cpp.
545         * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: Copied from platform/qt/GlyphPageTreeNodeQt.cpp.
546         * platform/graphics/win/FontCacheWin.cpp: Copied from platform/win/FontCacheWin.cpp.
547         * platform/graphics/win/FontCustomPlatformData.cpp: Copied from platform/win/FontCustomPlatformData.cpp.
548         * platform/graphics/win/FontCustomPlatformData.h: Copied from platform/win/FontCustomPlatformData.h.
549         * platform/graphics/win/FontDataWin.cpp: Copied from platform/win/FontDataWin.cpp.
550         * platform/graphics/win/FontDatabase.cpp: Copied from platform/win/FontDatabase.cpp.
551         * platform/graphics/win/FontDatabase.h: Copied from platform/win/FontDatabase.h.
552         * platform/graphics/win/FontPlatformData.h: Copied from platform/win/FontPlatformData.h.
553         * platform/graphics/win/FontPlatformDataWin.cpp: Copied from platform/win/FontPlatformDataWin.cpp.
554         * platform/graphics/win/FontWin.cpp: Copied from platform/win/FontWin.cpp.
555         * platform/graphics/win/GlyphPageTreeNodeWin.cpp: Copied from platform/win/GlyphPageTreeNodeWin.cpp.
556         * platform/graphics/wx/FontCacheWx.cpp: Copied from platform/wx/FontCacheWx.cpp.
557         * platform/graphics/wx/FontDataWx.cpp: Copied from platform/wx/FontDataWx.cpp.
558         * platform/graphics/wx/FontPlatformData.h: Copied from platform/wx/FontPlatformData.h.
559         * platform/graphics/wx/FontPlatformDataWx.cpp: Copied from platform/wx/FontPlatformDataWx.cpp.
560         * platform/graphics/wx/FontWx.cpp: Copied from platform/wx/FontWx.cpp.
561         * platform/graphics/wx/GlyphMapWx.cpp: Copied from platform/wx/GlyphMapWx.cpp.
562         * platform/gtk/FontCacheGtk.cpp: Removed.
563         * platform/gtk/FontDataGtk.cpp: Removed.
564         * platform/gtk/FontGtk.cpp: Removed.
565         * platform/gtk/FontPlatformData.h: Removed.
566         * platform/gtk/FontPlatformDataGtk.cpp: Removed.
567         * platform/gtk/GlyphPageTreeNodeGtk.cpp: Removed.
568         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Removed.
569         * platform/mac/FontCacheMac.mm: Removed.
570         * platform/mac/FontCustomPlatformData.cpp: Removed.
571         * platform/mac/FontCustomPlatformData.h: Removed.
572         * platform/mac/FontDataMac.mm: Removed.
573         * platform/mac/FontMac.mm: Removed.
574         * platform/mac/FontPlatformData.h: Removed.
575         * platform/mac/FontPlatformDataMac.mm: Removed.
576         * platform/mac/GlyphPageTreeNodeMac.cpp: Removed.
577         * platform/mac/ShapeArabic.c: Removed.
578         * platform/mac/ShapeArabic.h: Removed.
579         * platform/mac/StringImplMac.mm: Removed.
580         * platform/mac/StringMac.mm: Removed.
581         * platform/mac/TextBoundaries.mm: Removed.
582         * platform/mac/TextBreakIteratorInternalICUMac.mm: Removed.
583         * platform/mac/TextCodecMac.cpp: Removed.
584         * platform/mac/TextCodecMac.h: Removed.
585         * platform/mac/character-sets.txt: Removed.
586         * platform/mac/mac-encodings.txt: Removed.
587         * platform/mac/make-charset-table.pl: Removed.
588         * platform/qt/FontCacheQt.cpp: Removed.
589         * platform/qt/FontCustomPlatformData.cpp: Removed.
590         * platform/qt/FontCustomPlatformData.h: Removed.
591         * platform/qt/FontDataQt.cpp: Removed.
592         * platform/qt/FontPlatformData.h: Removed.
593         * platform/qt/FontQt.cpp: Removed.
594         * platform/qt/GlyphPageTreeNodeQt.cpp: Removed.
595         * platform/qt/StringQt.cpp: Removed.
596         * platform/qt/TextBoundaries.cpp: Removed.
597         * platform/qt/TextBreakIteratorQt.cpp: Removed.
598         * platform/qt/TextCodecQt.cpp: Removed.
599         * platform/qt/TextCodecQt.h: Removed.
600         * platform/symbian/StringImplSymbian.cpp: Removed.
601         * platform/symbian/StringSymbian.cpp: Removed.
602         * platform/text/cf: Added.
603         * platform/text/cf/StringCF.cpp: Copied from platform/cf/StringCF.cpp.
604         * platform/text/cf/StringImplCF.cpp: Copied from platform/cf/StringImplCF.cpp.
605         * platform/text/gtk: Added.
606         * platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp: Copied from platform/gtk/TextBreakIteratorInternalICUGtk.cpp.
607         * platform/text/mac/ShapeArabic.c: Copied from platform/mac/ShapeArabic.c.
608         * platform/text/mac/ShapeArabic.h: Copied from platform/mac/ShapeArabic.h.
609         * platform/text/mac/StringImplMac.mm: Copied from platform/mac/StringImplMac.mm.
610         * platform/text/mac/StringMac.mm: Copied from platform/mac/StringMac.mm.
611         * platform/text/mac/TextBoundaries.mm: Copied from platform/mac/TextBoundaries.mm.
612         * platform/text/mac/TextBreakIteratorInternalICUMac.mm: Copied from platform/mac/TextBreakIteratorInternalICUMac.mm.
613         * platform/text/mac/TextCodecMac.cpp: Copied from platform/mac/TextCodecMac.cpp.
614         * platform/text/mac/TextCodecMac.h: Copied from platform/mac/TextCodecMac.h.
615         * platform/text/mac/character-sets.txt: Copied from platform/mac/character-sets.txt.
616         * platform/text/mac/mac-encodings.txt: Copied from platform/mac/mac-encodings.txt.
617         * platform/text/mac/make-charset-table.pl: Copied from platform/mac/make-charset-table.pl.
618         * platform/text/qt: Added.
619         * platform/text/qt/StringQt.cpp: Copied from platform/qt/StringQt.cpp.
620         * platform/text/qt/TextBoundaries.cpp: Copied from platform/qt/TextBoundaries.cpp.
621         * platform/text/qt/TextBreakIteratorQt.cpp: Copied from platform/qt/TextBreakIteratorQt.cpp.
622         * platform/text/qt/TextCodecQt.cpp: Copied from platform/qt/TextCodecQt.cpp.
623         * platform/text/qt/TextCodecQt.h: Copied from platform/qt/TextCodecQt.h.
624         * platform/text/symbian: Added.
625         * platform/text/symbian/StringImplSymbian.cpp: Copied from platform/symbian/StringImplSymbian.cpp.
626         * platform/text/symbian/StringSymbian.cpp: Copied from platform/symbian/StringSymbian.cpp.
627         * platform/text/win: Added.
628         * platform/text/win/TextBreakIteratorInternalICUWin.cpp: Copied from platform/win/TextBreakIteratorInternalICUWin.cpp.
629         * platform/text/wx: Added.
630         * platform/text/wx/StringWx.cpp: Copied from platform/wx/StringWx.cpp.
631         * platform/win/FontCacheWin.cpp: Removed.
632         * platform/win/FontCustomPlatformData.cpp: Removed.
633         * platform/win/FontCustomPlatformData.h: Removed.
634         * platform/win/FontDataWin.cpp: Removed.
635         * platform/win/FontDatabase.cpp: Removed.
636         * platform/win/FontDatabase.h: Removed.
637         * platform/win/FontPlatformData.h: Removed.
638         * platform/win/FontPlatformDataWin.cpp: Removed.
639         * platform/win/FontWin.cpp: Removed.
640         * platform/win/GlyphPageTreeNodeWin.cpp: Removed.
641         * platform/win/TextBreakIteratorInternalICUWin.cpp: Removed.
642         * platform/wx/FontCacheWx.cpp: Removed.
643         * platform/wx/FontDataWx.cpp: Removed.
644         * platform/wx/FontPlatformData.h: Removed.
645         * platform/wx/FontPlatformDataWx.cpp: Removed.
646         * platform/wx/FontWx.cpp: Removed.
647         * platform/wx/GlyphMapWx.cpp: Removed.
648         * platform/wx/StringWx.cpp: Removed.
649         * webcore-wx.bkl:
650
651 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
652
653         Build fix for wx port. Adding editing/RemoveFormatCommand.cpp
654
655         * WebCoreSources.bkl:
656
657 2007-11-30  Simon Hausmann  <hausmann@webkit.org>
658
659         Reviewed by Adam Roben.
660
661         Fix the build with DATABASE=0.
662
663         * page/Settings.cpp:
664         (WebCore::Settings::setDefaultDatabaseOriginQuota):
665         (WebCore::Settings::defaultDatabaseOriginQuota):
666
667 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
668
669         Rubber stamped by Darin.
670
671         Fix misplaced file. The name "FontStyle" is not correct though - it probably
672         needs yet another move - but this time inside platform/graphics - as soon
673         as we agree on a better name.
674
675         * WebCore.xcodeproj/project.pbxproj:
676         * platform/graphics/FontStyle.h: Copied from platform/text/FontStyle.h.
677         * platform/text/FontStyle.h: Removed.
678
679 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
680
681         Reviewed by Sam.
682
683         Rename "FontStyle FontStyle(...)" to "FontStyle fontStyle(...)".
684         I scripted a bit too much while doing the TextStyle -> FontStyle change.
685
686         * platform/win/PopupMenuWin.cpp:
687         (WebCore::PopupMenu::paint):
688         * rendering/EllipsisBox.cpp:
689         (WebCore::EllipsisBox::paint):
690         * rendering/RenderFileUploadControl.cpp:
691         (WebCore::RenderFileUploadControl::paintObject):
692         * rendering/RenderListBox.cpp:
693         (WebCore::RenderListBox::updateFromElement):
694         (WebCore::RenderListBox::paintItemForeground):
695         * rendering/RenderTextControl.cpp:
696         (WebCore::RenderTextControl::setStyle):
697         (WebCore::RenderTextControl::createInnerTextStyle):
698         (WebCore::RenderTextControl::createSubtreeIfNeeded):
699         * rendering/RenderTextControl.h:
700         * rendering/SVGRootInlineBox.cpp:
701         (WebCore::svgFontStyleForInlineTextBox):
702
703 2007-11-30  Alp Toker  <alp@atoker.com>
704
705         GTK+ build fix following the recent text reorganization.
706
707         * WebCore.pro:
708
709 2007-11-29  Jon Honeycutt  <jhoneycutt@apple.com>
710
711         Reviewed by Adam.
712
713         Part of <rdar://problem/5506522> Seed: cannot type into text box in
714         Facebook, don't see plugin content (Adobe Flash)
715
716         * plugins/win/PluginViewWin.cpp:
717         (WebCore::PluginViewWin::handleMouseEvent): Focus the plugin's parent
718         frame  
719
720 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
721
722         Not reviewed. Trying to fix gtk/qt/wx build. (I expected problems because of the moves)
723
724         * WebCore.pro:
725         * webcore-base.bkl:
726
727 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
728
729         Rubber stamped by Brady.
730
731         Started platform reorganization (platform/text addition).
732         Moving string/text/font related classes into new places - as discussed on webkit-dev.
733
734         In a follow-up commit I'll move classes out of platform/{mac,win,...} into
735         platform/text/{mac,win,...}, and also do the ksvg2/ -> svg/ move.
736
737         * WebCore.order:
738         * WebCore.pro:
739         * WebCore.vcproj/WebCore.vcproj:
740         * WebCore.xcodeproj/project.pbxproj:
741         * WebCoreSources.bkl:
742         * editing/ReplaceSelectionCommand.cpp:
743         (WebCore::ReplacementFragment::insertFragmentForTestRendering):
744         * platform/AtomicString.cpp: Removed.
745         * platform/AtomicString.h: Removed.
746         * platform/AtomicStringImpl.h: Removed.
747         * platform/Base64.cpp: Removed.
748         * platform/Base64.h: Removed.
749         * platform/BidiContext.cpp: Removed.
750         * platform/BidiContext.h: Removed.
751         * platform/BidiResolver.h: Removed.
752         * platform/CString.cpp: Removed.
753         * platform/CString.h: Removed.
754         * platform/CharacterNames.h: Removed.
755         * platform/CharsetData.h: Removed.
756         * platform/Font.cpp: Removed.
757         * platform/Font.h: Removed.
758         * platform/FontCache.cpp: Removed.
759         * platform/FontCache.h: Removed.
760         * platform/FontData.cpp: Removed.
761         * platform/FontData.h: Removed.
762         * platform/FontDescription.h: Removed.
763         * platform/FontFallbackList.cpp: Removed.
764         * platform/FontFallbackList.h: Removed.
765         * platform/FontFamily.cpp: Removed.
766         * platform/FontFamily.h: Removed.
767         * platform/FontSelector.h: Removed.
768         * platform/GlyphBuffer.h: Removed.
769         * platform/GlyphPageTreeNode.cpp: Removed.
770         * platform/GlyphPageTreeNode.h: Removed.
771         * platform/GlyphWidthMap.cpp: Removed.
772         * platform/GlyphWidthMap.h: Removed.
773         * platform/PlatformString.h: Removed.
774         * platform/RegularExpression.cpp: Removed.
775         * platform/RegularExpression.h: Removed.
776         * platform/SegmentedString.cpp: Removed.
777         * platform/SegmentedString.h: Removed.
778         * platform/String.cpp: Removed.
779         * platform/StringHash.h: Removed.
780         * platform/StringImpl.cpp: Removed.
781         * platform/StringImpl.h: Removed.
782         * platform/StringTruncator.cpp: Removed.
783         * platform/StringTruncator.h: Removed.
784         * platform/TextBoundaries.h: Removed.
785         * platform/TextBoundariesICU.cpp: Removed.
786         * platform/TextBreakIterator.h: Removed.
787         * platform/TextBreakIteratorICU.cpp: Removed.
788         * platform/TextBreakIteratorInternalICU.h: Removed.
789         * platform/TextCodec.cpp: Removed.
790         * platform/TextCodec.h: Removed.
791         * platform/TextCodecICU.cpp: Removed.
792         * platform/TextCodecICU.h: Removed.
793         * platform/TextCodecLatin1.cpp: Removed.
794         * platform/TextCodecLatin1.h: Removed.
795         * platform/TextCodecUTF16.cpp: Removed.
796         * platform/TextCodecUTF16.h: Removed.
797         * platform/TextCodecUserDefined.cpp: Removed.
798         * platform/TextCodecUserDefined.h: Removed.
799         * platform/TextDecoder.cpp: Removed.
800         * platform/TextDecoder.h: Removed.
801         * platform/TextDirection.h: Removed.
802         * platform/TextEncoding.cpp: Removed.
803         * platform/TextEncoding.h: Removed.
804         * platform/TextEncodingRegistry.cpp: Removed.
805         * platform/TextEncodingRegistry.h: Removed.
806         * platform/TextStream.cpp: Removed.
807         * platform/TextStream.h: Removed.
808         * platform/TextStyle.h: Removed.
809         * platform/UnicodeRange.cpp: Removed.
810         * platform/UnicodeRange.h: Removed.
811         * platform/graphics/Font.cpp: Copied from platform/Font.cpp.
812         (WebCore::WidthIterator::WidthIterator):
813         (WebCore::Font::width):
814         (WebCore::Font::drawSimpleText):
815         (WebCore::Font::drawGlyphBuffer):
816         (WebCore::Font::drawText):
817         (WebCore::Font::floatWidth):
818         (WebCore::Font::floatWidthForSimpleText):
819         (WebCore::Font::selectionRectForText):
820         (WebCore::Font::selectionRectForSimpleText):
821         (WebCore::Font::offsetForPosition):
822         (WebCore::Font::offsetForPositionForSimpleText):
823         * platform/graphics/Font.h: Copied from platform/Font.h.
824         * platform/graphics/FontCache.cpp: Copied from platform/FontCache.cpp.
825         * platform/graphics/FontCache.h: Copied from platform/FontCache.h.
826         * platform/graphics/FontData.cpp: Copied from platform/FontData.cpp.
827         * platform/graphics/FontData.h: Copied from platform/FontData.h.
828         * platform/graphics/FontDescription.h: Copied from platform/FontDescription.h.
829         * platform/graphics/FontFallbackList.cpp: Copied from platform/FontFallbackList.cpp.
830         * platform/graphics/FontFallbackList.h: Copied from platform/FontFallbackList.h.
831         * platform/graphics/FontFamily.cpp: Copied from platform/FontFamily.cpp.
832         * platform/graphics/FontFamily.h: Copied from platform/FontFamily.h.
833         * platform/graphics/FontSelector.h: Copied from platform/FontSelector.h.
834         * platform/graphics/GlyphBuffer.h: Copied from platform/GlyphBuffer.h.
835         * platform/graphics/GlyphPageTreeNode.cpp: Copied from platform/GlyphPageTreeNode.cpp.
836         * platform/graphics/GlyphPageTreeNode.h: Copied from platform/GlyphPageTreeNode.h.
837         * platform/graphics/GlyphWidthMap.cpp: Copied from platform/GlyphWidthMap.cpp.
838         * platform/graphics/GlyphWidthMap.h: Copied from platform/GlyphWidthMap.h.
839         * platform/graphics/GraphicsContext.cpp:
840         (WebCore::GraphicsContext::drawText):
841         (WebCore::GraphicsContext::drawBidiText):
842         (WebCore::GraphicsContext::drawHighlightForText):
843         * platform/graphics/GraphicsContext.h:
844         * platform/graphics/StringTruncator.cpp: Copied from platform/StringTruncator.cpp.
845         (WebCore::stringWidth):
846         * platform/graphics/StringTruncator.h: Copied from platform/StringTruncator.h.
847         * platform/graphics/qt/GraphicsContextQt.cpp:
848         * platform/gtk/FontGtk.cpp:
849         (WebCore::Font::drawComplexText):
850         (WebCore::Font::floatWidthForComplexText):
851         (WebCore::Font::offsetForPositionForComplexText):
852         (WebCore::Font::selectionRectForComplexText):
853         * platform/mac/FontMac.mm:
854         (WebCore::ATSULayoutParameters::ATSULayoutParameters):
855         (WebCore::Font::selectionRectForComplexText):
856         (WebCore::Font::drawComplexText):
857         (WebCore::Font::floatWidthForComplexText):
858         (WebCore::Font::offsetForPositionForComplexText):
859         * platform/mac/WebCoreTextRenderer.mm:
860         (WebCoreDrawTextAtPoint):
861         (WebCoreTextFloatWidth):
862         * platform/qt/FontQt.cpp:
863         (WebCore::generateComponents):
864         (WebCore::Font::drawText):
865         (WebCore::Font::width):
866         (WebCore::Font::floatWidth):
867         (WebCore::Font::offsetForPosition):
868         (WebCore::cursorToX):
869         (WebCore::Font::selectionRectForText):
870         * platform/text: Added.
871         * platform/text/AtomicString.cpp: Copied from platform/AtomicString.cpp.
872         * platform/text/AtomicString.h: Copied from platform/AtomicString.h.
873         * platform/text/AtomicStringImpl.h: Copied from platform/AtomicStringImpl.h.
874         * platform/text/Base64.cpp: Copied from platform/Base64.cpp.
875         * platform/text/Base64.h: Copied from platform/Base64.h.
876         * platform/text/BidiContext.cpp: Copied from platform/BidiContext.cpp.
877         * platform/text/BidiContext.h: Copied from platform/BidiContext.h.
878         * platform/text/BidiResolver.h: Copied from platform/BidiResolver.h.
879         * platform/text/CString.cpp: Copied from platform/CString.cpp.
880         * platform/text/CString.h: Copied from platform/CString.h.
881         * platform/text/CharacterNames.h: Copied from platform/CharacterNames.h.
882         * platform/text/FontStyle.h: Copied from platform/TextStyle.h.
883         (WebCore::FontStyle::FontStyle):
884         * platform/text/PlatformString.h: Copied from platform/PlatformString.h.
885         * platform/text/RegularExpression.cpp: Copied from platform/RegularExpression.cpp.
886         * platform/text/RegularExpression.h: Copied from platform/RegularExpression.h.
887         * platform/text/SegmentedString.cpp: Copied from platform/SegmentedString.cpp.
888         * platform/text/SegmentedString.h: Copied from platform/SegmentedString.h.
889         * platform/text/String.cpp: Copied from platform/String.cpp.
890         * platform/text/StringHash.h: Copied from platform/StringHash.h.
891         * platform/text/StringImpl.cpp: Copied from platform/StringImpl.cpp.
892         * platform/text/StringImpl.h: Copied from platform/StringImpl.h.
893         * platform/text/TextBoundaries.h: Copied from platform/TextBoundaries.h.
894         * platform/text/TextBoundariesICU.cpp: Copied from platform/TextBoundariesICU.cpp.
895         (WebCore::findNextWordFromIndex):
896         * platform/text/TextBreakIterator.h: Copied from platform/TextBreakIterator.h.
897         * platform/text/TextBreakIteratorICU.cpp: Copied from platform/TextBreakIteratorICU.cpp.
898         * platform/text/TextBreakIteratorInternalICU.h: Copied from platform/TextBreakIteratorInternalICU.h.
899         * platform/text/TextCodec.cpp: Copied from platform/TextCodec.cpp.
900         * platform/text/TextCodec.h: Copied from platform/TextCodec.h.
901         * platform/text/TextCodecICU.cpp: Copied from platform/TextCodecICU.cpp.
902         * platform/text/TextCodecICU.h: Copied from platform/TextCodecICU.h.
903         * platform/text/TextCodecLatin1.cpp: Copied from platform/TextCodecLatin1.cpp.
904         * platform/text/TextCodecLatin1.h: Copied from platform/TextCodecLatin1.h.
905         * platform/text/TextCodecUTF16.cpp: Copied from platform/TextCodecUTF16.cpp.
906         * platform/text/TextCodecUTF16.h: Copied from platform/TextCodecUTF16.h.
907         * platform/text/TextCodecUserDefined.cpp: Copied from platform/TextCodecUserDefined.cpp.
908         * platform/text/TextCodecUserDefined.h: Copied from platform/TextCodecUserDefined.h.
909         * platform/text/TextDecoder.cpp: Copied from platform/TextDecoder.cpp.
910         * platform/text/TextDecoder.h: Copied from platform/TextDecoder.h.
911         * platform/text/TextDirection.h: Copied from platform/TextDirection.h.
912         * platform/text/TextEncoding.cpp: Copied from platform/TextEncoding.cpp.
913         * platform/text/TextEncoding.h: Copied from platform/TextEncoding.h.
914         * platform/text/TextEncodingRegistry.cpp: Copied from platform/TextEncodingRegistry.cpp.
915         * platform/text/TextEncodingRegistry.h: Copied from platform/TextEncodingRegistry.h.
916         * platform/text/TextStream.cpp: Copied from platform/TextStream.cpp.
917         * platform/text/TextStream.h: Copied from platform/TextStream.h.
918         * platform/text/UnicodeRange.cpp: Copied from platform/UnicodeRange.cpp.
919         * platform/text/UnicodeRange.h: Copied from platform/UnicodeRange.h.
920         * platform/text/mac: Added.
921         * platform/text/mac/CharsetData.h: Copied from platform/CharsetData.h.
922         * platform/win/FontWin.cpp:
923         (WebCore::Font::selectionRectForComplexText):
924         (WebCore::Font::drawComplexText):
925         (WebCore::Font::floatWidthForComplexText):
926         (WebCore::Font::offsetForPositionForComplexText):
927         * platform/win/PopupMenuWin.cpp:
928         (WebCore::PopupMenu::paint):
929         * platform/win/UniscribeController.cpp:
930         (WebCore::UniscribeController::UniscribeController):
931         * platform/win/UniscribeController.h:
932         * platform/win/WebCoreTextRenderer.cpp:
933         (WebCore::doDrawTextAtPoint):
934         * platform/wx/FontWx.cpp:
935         (WebCore::Font::selectionRectForComplexText):
936         (WebCore::Font::drawComplexText):
937         (WebCore::Font::floatWidthForComplexText):
938         (WebCore::Font::offsetForPositionForComplexText):
939         * rendering/EllipsisBox.cpp:
940         (WebCore::EllipsisBox::paint):
941         * rendering/InlineTextBox.cpp:
942         (WebCore::InlineTextBox::selectionRect):
943         (WebCore::InlineTextBox::paint):
944         (WebCore::InlineTextBox::paintSelection):
945         (WebCore::InlineTextBox::paintCompositionBackground):
946         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
947         (WebCore::InlineTextBox::paintTextMatchMarker):
948         (WebCore::InlineTextBox::offsetForPosition):
949         (WebCore::InlineTextBox::positionForOffset):
950         * rendering/RenderFileUploadControl.cpp:
951         (WebCore::RenderFileUploadControl::paintObject):
952         (WebCore::RenderFileUploadControl::calcPrefWidths):
953         * rendering/RenderImage.cpp:
954         * rendering/RenderListBox.cpp:
955         (WebCore::RenderListBox::updateFromElement):
956         (WebCore::RenderListBox::paintItemForeground):
957         * rendering/RenderMenuList.cpp:
958         (WebCore::RenderMenuList::updateOptionsWidth):
959         * rendering/RenderText.cpp:
960         (WebCore::RenderText::widthFromCache):
961         (WebCore::RenderText::calcPrefWidths):
962         (WebCore::RenderText::width):
963         * rendering/RenderTextControl.cpp:
964         (WebCore::RenderTextControl::setStyle):
965         (WebCore::RenderTextControl::createInnerFontStyle):
966         (WebCore::RenderTextControl::createSubtreeIfNeeded):
967         (WebCore::RenderTextControl::calcPrefWidths):
968         * rendering/RenderTextControl.h:
969         * rendering/SVGInlineTextBox.cpp:
970         (WebCore::SVGInlineTextBox::calculateGlyphWidth):
971         (WebCore::SVGInlineTextBox::paintCharacters):
972         (WebCore::SVGInlineTextBox::paintSelection):
973         * rendering/SVGRootInlineBox.cpp:
974         (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
975         (WebCore::svgFontStyleForInlineTextBox):
976         * rendering/SVGRootInlineBox.h:
977
978 2007-11-30  Adele Peterson  <adele@apple.com>
979
980         Reviewed by Darin.
981
982         Fix for http://bugs.webkit.org/show_bug.cgi?id=16072
983         <rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button (16072)
984
985         Test: fast/events/mousemove-after-drag-over-scrollbar.html
986
987         * page/EventHandler.cpp:
988         (WebCore::EventHandler::handleMouseMoveEvent): If the mouse is pressed, and we've moved over a new scrollbar, then we can clear m_lastScrollbarUnderMouse.
989          We should only need to show the hover effect when the mouse isn't pressed.
990
991 2007-11-29  Brady Eidson <beidson@apple.com>
992
993         Reviewed by Tim
994
995         Part of <rdar://problem/5556377> - Need to accurately track and enforce database quota
996
997         SQLite has the ability to enforce the page usage for databases.  This gives us bulletproof
998         enforcement of the database size limit with reasonable granularity (within 1023 bytes by 
999         default on OS X with SQLite 3.4.0)
1000
1001         This also involved enhancing the ability to install/remove the authorizer to run the PRAGMA
1002         statements involved
1003
1004         Note this patch does not actually use the new maximumSize() functionality of the 
1005         SQLiteDatabase class - that can be reviewed/landed seperately
1006         
1007         * platform/sql/SQLiteDatabase.cpp:
1008         (WebCore::SQLiteDatabase::SQLiteDatabase): 
1009         (WebCore::SQLiteDatabase::maximumSize): Return the current maximum size in bytes
1010         (WebCore::SQLiteDatabase::setMaximumSize): Based on m_pageSize, set the maximum page count
1011           to enforce the maximum size in bytes
1012         (WebCore::SQLiteDatabase::pageSize): Fetch m_pageSize if it hasn't been fetched, or return
1013           the cached value
1014         (WebCore::SQLiteDatabase::setAuthorizer): Use enableAuthorizer for the sqlite_* level 
1015           authorizer setup
1016         (WebCore::SQLiteDatabase::enableAuthorizer): Install or remove the sqlite authorizer handler
1017         * platform/sql/SQLiteDatabase.h: Add the m_pageSize member so we only have to fetch it once
1018
1019 2007-11-29  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1020
1021         Reviewed by Maciej.
1022
1023         * Fix fast/events/mousedown_in_scrollbar.html
1024         * This test used to crash in PlatformScrollbarQt::mouse*Event due parent() returning 0.
1025         * Extend the current check that the scrollbar in the mev can be go away.
1026         This happens if we destroy a RenderLayer as the result of a click. In the
1027         case of Qt we can have this scrollbar in m_lastScrollbarUnderMouse. The RenderLayer
1028         is the ScrollbarClient, m_lastScrollbarUnderMouse is a RefPtr and keeps the
1029         last reference. When calling into this scrollbar the m_client pointer is a dangling pointer.
1030         We extend the check to set m_lastScrollbarUnderMouse back to zero when it was the
1031         scrollbar in the old mev and is gone in the new one.
1032         * This happens only on the Qt port because we send more/different move events.
1033
1034         * page/EventHandler.cpp:
1035         (WebCore::EventHandler::handleMousePressEvent):
1036
1037 2007-11-29  Antti Koivisto  <antti@apple.com>
1038
1039         Reviewed by Mitz.
1040
1041         Fix aspect ratio calculation of video.
1042         
1043         Video should always be treated as a replaced element in size calculation.
1044         
1045         Test: media/video-aspect-ratio.html
1046
1047         * rendering/RenderBox.cpp:
1048         (WebCore::RenderBox::calcWidth):
1049         (WebCore::RenderBox::calcHeight):
1050         * rendering/RenderBox.h:
1051         (WebCore::RenderBox::shouldCalculateSizeAsReplaced):
1052         * rendering/RenderMedia.h:
1053         (WebCore::RenderMedia::shouldCalculateSizeAsReplaced):
1054
1055 2007-11-29  Sam Weinig  <sam@webkit.org>
1056
1057         Reviewed by Oliver.
1058
1059         Additional fix for <rdar://problem/5592988> / http://bugs.webkit.org/show_bug.cgi?id=15936
1060         - More closely match IE's policy for frame navigation.
1061
1062         * bindings/js/kjs_window.cpp:
1063         (KJS::WindowProtoFuncOpen::callAsFunction):
1064         * loader/FrameLoader.cpp:
1065         (WebCore::FrameLoader::shouldAllowNavigation):
1066         * page/FrameTree.cpp:
1067         (WebCore::FrameTree::top):
1068         * page/FrameTree.h:
1069
1070 2007-11-29  Dan Bernstein  <mitz@apple.com>
1071
1072         Reviewed by Adam Roben and John Sullivan.
1073
1074         - make the recent searches popup extend only along the straight part of
1075           the search field (unless it needs to be wider).
1076
1077         * platform/PopupMenuClient.h:
1078           Added clientInsetLeft() and clientInsetRight() for clients to
1079           specify desired horizontal insets for the menu.
1080         * platform/win/PopupMenuWin.cpp:
1081         (WebCore::PopupMenu::calculatePositionAndSize):
1082         (WebCore::PopupMenu::paint):
1083         * rendering/RenderMenuList.cpp:
1084         (WebCore::RenderMenuList::clientInsetLeft): Added. Returns 0.
1085         (WebCore::RenderMenuList::clientInsetRight): Ditto.
1086         * rendering/RenderMenuList.h:
1087         * rendering/RenderTextControl.cpp:
1088         (WebCore::RenderTextControl::clientInsetLeft): Added. Returns half the
1089         control's height, which is the radius of the cap on the left.
1090         (WebCore::RenderTextControl::clientInsetRight): Added.
1091         * rendering/RenderTextControl.h:
1092
1093 2007-11-30  Alp Toker  <alp@atoker.com>
1094
1095         Reviewed by Maciej.
1096
1097         http://bugs.webkit.org/show_bug.cgi?id=16173
1098         Licensing change
1099
1100         Change license from BSD to LGPL.
1101
1102         This is being done to encourage vendors to contribute their fixes back
1103         upstream.
1104
1105         * platform/graphics/gtk/ColorGtk.cpp:
1106         * platform/graphics/gtk/IntPointGtk.cpp:
1107         * platform/graphics/gtk/IntRectGtk.cpp:
1108         * platform/graphics/svg/cairo/RenderPathCairo.cpp:
1109         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp:
1110         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp:
1111         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp:
1112         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
1113         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp:
1114         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp:
1115         * platform/gtk/Language.cpp:
1116         * platform/gtk/LoggingGtk.cpp:
1117         * platform/gtk/SoundGtk.cpp:
1118         * platform/gtk/SystemTimeGtk.cpp:
1119         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp:
1120
1121 2007-11-29  Darin Adler  <darin@apple.com>
1122
1123         Reviewed by Adele.
1124
1125         - fix http://bugs.webkit.org/show_bug.cgi?id=16191
1126           REGRESSION: cannot tab to radio input after setting checked to false
1127
1128         Test: fast/forms/input-radio-checked-tab.html
1129
1130         * html/HTMLFormElement.cpp:
1131         (WebCore::HTMLFormElement::CheckedRadioButtons::addButton): Fix this code
1132         so that it doesn't call setChecked(false) until after the map has been updated.
1133         Otherwise, we can end up deallocating the map before manipulating it. As long
1134         as I was changing the function, I decided to make it do only a single hash
1135         table lookup.
1136
1137         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::setChecked):
1138         Remove the button from the radio buttons set before changing the checked
1139         state. This matches the idiom used elsewhere and fixes the problem where
1140         setting checked to false would not remove it from the set.
1141
1142 2007-11-29  Justin Garcia  <justin.garcia@apple.com>
1143
1144         Reviewed by Darin Adler.
1145
1146         <rdar://problem/5620093> Brief hang when Safari caches page text of XML document
1147
1148         * editing/TextIterator.cpp:
1149         (WebCore::TextIterator::representNodeOffsetZero): When we haven't been emitting any 
1150         characters, shouldRepresentNodeOffsetZero() can create VisiblePositions, which is
1151         expensive.  So, we perform the inexpensive checks on m_node to see if it necessitates 
1152         emitting a character first and will early return before encountering 
1153         shouldRepresentNodeOffsetZero()s worse case behavior.
1154
1155 2007-11-29  Anders Carlsson  <andersca@apple.com>
1156
1157         Reviewed by Sam.
1158
1159         Don't install event handlers or set the zoom cursor if auto-shrink has been disabled.
1160
1161         * loader/ImageDocument.cpp:
1162         (WebCore::ImageDocument::createDocumentStructure):
1163         (WebCore::ImageDocument::imageChanged):
1164
1165 2007-11-29  Beth Dakin  <bdakin@apple.com>
1166
1167         Reviewed by Geoff.
1168
1169         Fix for <rdar://problem/5620151> Disable JavaScript for SVG as 
1170         image for <img> and CSS images
1171
1172         * platform/graphics/svg/SVGImage.cpp:
1173         (WebCore::SVGImage::dataChanged): When we create the empty clients, 
1174         explicitly disable JavaScript in the settings.
1175
1176 2007-11-29  Brady Eidson  <beidson@apple.com>
1177
1178         Reviewed by Anders
1179
1180         Support for <rdar://problem/5556381> and <rdar://problem/5556379>
1181
1182         The Database feature in the engine needs to support delegate calls for policy decisions and
1183         also provide notifications when origins and databases change their state.
1184
1185         This patch also polishes off the missing features of the management API
1186
1187         * page/Chrome.cpp: Implement the two UIDelegate methods
1188         (WebCore::Chrome::requestQuotaIncreaseForNewDatabase): Ask for more space to create a new database if it won't fit
1189         (WebCore::Chrome::requestQuotaIncreaseForDatabaseOperation): Ask for more space to complete an in-progress operation
1190         * page/Chrome.h:
1191         * page/ChromeClient.h:
1192         * platform/graphics/svg/SVGImageEmptyClients.h:
1193         (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForNewDatabase):
1194         (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForDatabaseOperation):
1195
1196         * storage/Database.cpp:
1197         (WebCore::Database::openDatabase): Check to see if this database can be opened - the quota must be high 
1198           enough and if it isn't, the UIDelegate should have a change to bump the quota.
1199           Also update the UI-relevant details (display name and estimated size) upon successful opening of the database
1200
1201         * storage/DatabaseDetails.h: Remove the version parameter as it is a programatic detail of a
1202           site database and is not important to API clients
1203         (WebCore::DatabaseDetails::DatabaseDetails):
1204         (WebCore::DatabaseDetails::isValid):
1205         (WebCore::DatabaseDetails::name):
1206
1207         * storage/DatabaseTracker.cpp:
1208         (WebCore::DatabaseTracker::openTrackerDatabase): Tweaked the schema here - there was a horrible bug with the old schema that would
1209           prevent you from having two databases of the same name from two different origins.  Also simplify the origin-management schema
1210         (WebCore::DatabaseTracker::canEstablishDatabase): Added.  Does some estimated size vs quota checks, and asks the UI delegate for 
1211           more space if necessary
1212         (WebCore::DatabaseTracker::hasEntryForOrigin):
1213         (WebCore::DatabaseTracker::establishEntryForOrigin): Establishes a tracker entry for the given origin with the current default quota
1214           Also notifies the client of the new origin
1215         (WebCore::DatabaseTracker::setDatabaseDetails): Update the display name and estimated size for the given database
1216         (WebCore::DatabaseTracker::fullPathForDatabase): Tweak to add the ability to get the path without creating it - for management purposes
1217         (WebCore::DatabaseTracker::populateOrigins): Populate origins from the Origins table instead of the Databases table
1218         (WebCore::DatabaseTracker::origins):
1219         (WebCore::DatabaseTracker::detailsForNameAndOrigin): For API management
1220         (WebCore::DatabaseTracker::usageForDatabase):
1221         (WebCore::DatabaseTracker::usageForOrigin):
1222         (WebCore::DatabaseTracker::quotaForOrigin):
1223         (WebCore::DatabaseTracker::setQuota): Notify the client
1224         (WebCore::DatabaseTracker::addDatabase): Notify the client 
1225         (WebCore::DatabaseTracker::deleteAllDatabases):
1226         (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
1227         (WebCore::DatabaseTracker::deleteDatabase):
1228         (WebCore::DatabaseTracker::deleteDatabaseFile):
1229         * storage/DatabaseTracker.h:
1230
1231 2007-11-29  Dan Bernstein  <mitz@apple.com>
1232
1233         Reviewed by Beth Dakin and Darin Adler.
1234
1235         - manual test for <rdar://problem/5346394> Contextmenu event doesn't fire on body element inside frame
1236
1237         * manual-tests/context-click-unfocused-frame.html: Added.
1238
1239 2007-11-28  Antti Koivisto  <antti@apple.com>
1240
1241         Reviewed by Geoff.
1242         
1243         Fallback content inside media elements should not be rendered.
1244
1245         Test: media/fallback.html
1246
1247         * rendering/RenderMedia.h:
1248         (WebCore::RenderMedia::canHaveChildren):
1249
1250 2007-11-28  Mark Rowe  <mrowe@apple.com>
1251
1252         Windows build fix.
1253
1254         * WebCore.vcproj/WebCore.vcproj:
1255
1256 2007-11-28  Mark Rowe  <mrowe@apple.com>
1257
1258         Gtk build fix.
1259
1260         * WebCore.pro:
1261
1262 2007-11-28  Antti Koivisto  <antti@apple.com>
1263
1264         Reviewed by Oliver.
1265
1266         Make QTMovieView fill color transparent. This behavior matches the specification
1267         (and allows nice alpha blended video).
1268
1269         * platform/graphics/mac/MoviePrivateQTKit.mm:
1270         (WebCore::MoviePrivate::createQTMovieView):
1271
1272 2007-11-28  Antti Koivisto  <antti@apple.com>
1273
1274         Reviewed by Darin.
1275
1276         Test: media/video-controls.html
1277         
1278         <rdar://problem/5605668>
1279         Implement controls attribute for video element
1280         
1281         - Add RenderMedia and make RenderVideo its subclass. Controls code goes to RenderMedia while
1282           video specific (painting etc) code stays in RenderVideo. For example audio controls can be implemented
1283           later by just instantiating RenderMedia as renderer.
1284         - Make media renderer hierarchy inherit from RenderBlock instead of RenderReplaced so it can 
1285           have child nodes (for controls).
1286         - Controls are implemented as a shadow DOM.
1287         - Current look is a placeholder. It is defined purely in CSS.
1288         - Some things like volume controls are not yet implemented.
1289         - Fade-in/out is done manually, CSS animations don't work well in shadow trees.
1290           
1291         * WebCore.xcodeproj/project.pbxproj:
1292         * css/html4.css:
1293         * html/HTMLMediaElement.cpp:
1294         (WebCore::HTMLMediaElement::attributeChanged):
1295         (WebCore::HTMLMediaElement::updateMovie):
1296         (WebCore::HTMLMediaElement::defaultEventHandler):
1297         * html/HTMLMediaElement.h:
1298         * rendering/RenderMedia.cpp: Added.
1299         (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
1300         (WebCore::MediaControlShadowRootElement::isShadowNode):
1301         (WebCore::MediaControlShadowRootElement::shadowParentNode):
1302         (WebCore::MediaControlInputElement::MediaControlInputElement):
1303         (WebCore::MediaControlInputElement::attachToParent):
1304         (WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement):
1305         (WebCore::MediaControlPlayButtonElement::inPausedState):
1306         (WebCore::MediaControlPlayButtonElement::defaultEventHandler):
1307         (WebCore::MediaControlPlayButtonElement::update):
1308         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
1309         (WebCore::MediaControlTimelineElement::defaultEventHandler):
1310         (WebCore::MediaControlTimelineElement::update):
1311         (WebCore::RenderMedia::RenderMedia):
1312         (WebCore::RenderMedia::~RenderMedia):
1313         (WebCore::RenderMedia::mediaElement):
1314         (WebCore::RenderMedia::movie):
1315         (WebCore::RenderMedia::setStyle):
1316         (WebCore::RenderMedia::createControlsShadowRoot):
1317         (WebCore::RenderMedia::createPanel):
1318         (WebCore::RenderMedia::createPlayButton):
1319         (WebCore::RenderMedia::createTimeline):
1320         (WebCore::RenderMedia::createTimeDisplay):
1321         (WebCore::RenderMedia::updateFromElement):
1322         (WebCore::RenderMedia::updateControls):
1323         (WebCore::RenderMedia::timeUpdateTimerFired):
1324         (WebCore::RenderMedia::updateTimeDisplay):
1325         (WebCore::RenderMedia::updateControlVisibility):
1326         (WebCore::RenderMedia::changeOpacity):
1327         (WebCore::RenderMedia::opacityAnimationTimerFired):
1328         (WebCore::RenderMedia::forwardEvent):
1329         * rendering/RenderMedia.h: Added.
1330         (WebCore::RenderMedia::renderName):
1331         (WebCore::RenderMedia::isMedia):
1332         (WebCore::RenderMedia::intrinsicSize):
1333         * rendering/RenderObject.h:
1334         (WebCore::RenderObject::isMedia):
1335         * rendering/RenderVideo.cpp:
1336         (WebCore::RenderVideo::RenderVideo):
1337         (WebCore::RenderVideo::videoSizeChanged):
1338         (WebCore::RenderVideo::paintObject):
1339         (WebCore::RenderVideo::layout):
1340         (WebCore::RenderVideo::updateFromElement):
1341         (WebCore::RenderVideo::calcAspectRatioWidth):
1342         (WebCore::RenderVideo::calcAspectRatioHeight):
1343         * rendering/RenderVideo.h:
1344
1345 2007-11-28  Justin Garcia  <justin.garcia@apple.com>
1346
1347         Reviewed by Darin Adler.
1348
1349         <rdar://problem/5573879> GMail Beta: Crash in when undoing Remove Formating
1350         
1351         In the new beta, Google has added some custom code on top of our RemoveFormat
1352         to work around a bug where fully selected lists aren't removed.  This code corrupts
1353         the undo stack and causes crashes.  This change fixes two problems with RemoveFormat
1354         so that Google doesn't have to have any custom code. After checking this in I'll 
1355         work on bulletproofing the undo stack
1356
1357         * WebCore.xcodeproj/project.pbxproj: 
1358         * editing/CompositeEditCommand.cpp:
1359         (WebCore::CompositeEditCommand::insertLineBreak): Added this convenience method.
1360         (WebCore::CompositeEditCommand::inputText): Added code to select all inserted text, not
1361         just the last paragraph.  Added code to support an input string with '\n's.
1362         * editing/CompositeEditCommand.h:
1363         * editing/Editor.cpp:
1364         (WebCore::Editor::removeFormattingAndStyle): Moved code to its own EditCommand.
1365         * editing/RemoveFormatCommand.cpp: Added. Moved code from removeFormattingAndStyle here.
1366         (WebCore::RemoveFormatCommand::RemoveFormatCommand):
1367         (WebCore::RemoveFormatCommand::doApply): Added code to remove fully selected lists.
1368         * editing/RemoveFormatCommand.h: Added.
1369         (WebCore::RemoveFormatCommand::editingAction):
1370
1371 2007-11-28  Dan Bernstein  <mitz@apple.com>
1372
1373         Reviewed by Dave Hyatt.
1374
1375         - fix <rdar://problem/5612459> CrashTracer: [REGRESSION] 61 crashes in Safari at com.apple.WebCore: WebCore::AutoTableLayout::layout + 2046
1376
1377         Test: fast/table/empty-auto-column-zero-divide.html
1378
1379         * rendering/AutoTableLayout.cpp:
1380         (WebCore::AutoTableLayout::recalcColumn):
1381         (WebCore::AutoTableLayout::fullRecalc):
1382         (WebCore::AutoTableLayout::calcEffectiveWidth):
1383         (WebCore::AutoTableLayout::layout): When distributing the remaining
1384         width among columns, skip those whose effective (rather than
1385         specified) width is auto and contain only empty cells.
1386
1387 2007-11-28  Peter Kasting  <zerodpx@gmail.com>
1388
1389         Reviewed by Alp Toker.
1390
1391         http://bugs.webkit.org/show_bug.cgi?id=16169
1392         GIF decoder needs to set hasAlpha() correctly on subsequent frames.
1393         
1394         This also removes the workaround for this problem in
1395         ImageSourceCairo.cpp.
1396
1397         * platform/graphics/cairo/ImageSourceCairo.cpp:
1398         (WebCore::ImageSource::frameHasAlphaAtIndex):
1399         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1400         (WebCore::GIFImageDecoder::initFrameBuffer):
1401
1402 2007-11-28  Dan Bernstein  <mitz@apple.com>
1403
1404         Reviewed by Darin Adler and Adam Roben.
1405
1406         - <rdar://problem/5057218> Reenable "recent searches" search field menu when menu is fully implemented
1407
1408         * platform/win/SearchPopupMenuWin.cpp:
1409         (WebCore::SearchPopupMenu::enabled): Changed to return true.
1410         (WebCore::autosaveKey): Added. Returns a preferences key for the
1411         autosave name by prefixing it with "com.apple.WebKit.searchField:".
1412         (WebCore::SearchPopupMenu::saveRecentSearches): Implemented.
1413         (WebCore::SearchPopupMenu::loadRecentSearches): Implemented.
1414
1415 2007-11-28  Alp Toker  <alp@atoker.com>
1416
1417         Reviewed by Mark Rowe.
1418
1419         http://bugs.webkit.org/show_bug.cgi?id=15689
1420         [GTK] Background of loading images is always black
1421
1422         frameHasAlphaAtIndex() exists only to allow optimization for cases we
1423         are certain the image can be blitted rather than composited.
1424
1425         Thus we need to be conservative, returning false only when we are
1426         absolutely certain there is no need for composited copying, and true
1427         otherwise.
1428
1429         CG doesn't even bother with this optimization at all and always
1430         returns true.
1431
1432         Patch includes a workaround for
1433           http://bugs.webkit.org/show_bug.cgi?id=16169
1434           GIF ImageDecoder hasAlpha() return value incorrect
1435
1436         * platform/graphics/cairo/ImageSourceCairo.cpp:
1437         (WebCore::ImageSource::frameHasAlphaAtIndex):
1438
1439 2007-11-27  Alp Toker  <alp@atoker.com>
1440
1441         Reviewed by Mark Rowe.
1442
1443         Install the JavaScriptCore headers as part of the GTK+ port.
1444
1445         * WebCore.pro:
1446
1447 2007-11-27  Beth Dakin  <bdakin@apple.com>
1448
1449         Reviewed by Oliver.
1450
1451         Fix for <rdar://problem/5616052> SVGs with width or height of 100% 
1452         hang when used as a background-image (16164)
1453
1454         * platform/graphics/svg/SVGImage.cpp:
1455         (WebCore::SVGImage::size): Use valueAsPercentage() for percents 
1456         instead of valueInSpecifiedUnits(). valueInSpecifiedUnits() 
1457         returns, for example, 50 for 50%, so multiplying percentages by the 
1458         default size of 300 x 150 led to ridiculously huge dimensions for 
1459         SVG images, and the subsequent hang. 
1460
1461 2007-11-27  Jon Honeycutt  <jhoneycutt@apple.com>
1462
1463         Reviewed by Adam.
1464
1465         Set haveRegisteredWindowClass when we register the window class.
1466
1467         * plugins/win/PluginViewWin.cpp:
1468         (WebCore::registerPluginView):
1469
1470 2007-11-27  Timothy Hatcher  <timothy@apple.com>
1471
1472         Reviewed by Sam Weinig.
1473
1474         Bug 16165: Dragging the inspector toolbar should move the window
1475         http://bugs.webkit.org/show_bug.cgi?id=16165
1476
1477         * page/inspector/DocumentPanel.js: Call the new drag functions, and cleanup code.
1478         * page/inspector/inspector.css: Only make the toolbar transparent in detached mode.
1479         * page/inspector/inspector.js: Call the new drag functions, and cleanup code. Add
1480           toolbar drag functions that move the window.
1481
1482 2007-11-27  Antti Koivisto  <antti@apple.com>
1483
1484         Reviewed by Mitz.
1485
1486         Small changes to make RenderSlider a bit more generic so it can be used in video controls.
1487
1488         * html/HTMLInputElement.cpp:
1489         (WebCore::HTMLInputElement::defaultEventHandler): Fix coordinates with forwarded events.
1490         * rendering/RenderSlider.cpp:
1491         (WebCore::HTMLSliderThumbElement::defaultEventHandler): Fix coordinates with forwarded events.
1492         (WebCore::RenderSlider::setStyle):
1493         (WebCore::RenderSlider::createThumbStyle): Copy thumb left and top from the orginal style so position does not reset.
1494         (WebCore::RenderSlider::mouseEventIsInThumb): Make this work with forwarded events.
1495         * rendering/RenderSlider.h:
1496
1497 2007-11-27  Antti Koivisto  <antti@apple.com>
1498
1499         Reviewed by Darin.
1500
1501         - Don't use hasPseudoId() optimization for pseudo styles used in shadow trees. These styles
1502           generally exist when asked for so the optimization does not do much. This reverses the continuing
1503           growth of the _pseudoBits bitfield in RenderStyle.
1504         - Add some pseudo elements for media controls
1505
1506         * css/CSSSelector.cpp:
1507         (WebCore::CSSSelector::extractPseudoType):
1508         * css/CSSSelector.h:
1509         (WebCore::CSSSelector::):
1510         * css/CSSStyleSelector.cpp:
1511         (WebCore::CSSStyleSelector::matchRulesForList):
1512         (WebCore::CSSStyleSelector::checkOneSelector):
1513         * rendering/RenderObject.cpp:
1514         (WebCore::RenderObject::getPseudoStyle):
1515         * rendering/RenderStyle.cpp:
1516         (WebCore::pseudoBit):
1517         (WebCore::RenderStyle::hasPseudoStyle):
1518         (WebCore::RenderStyle::setHasPseudoStyle):
1519         * rendering/RenderStyle.h:
1520         (WebCore::RenderStyle::):
1521
1522 2007-11-27  Timothy Hatcher  <timothy@apple.com>
1523
1524         Reviewed by Kevin McCullough.
1525
1526         Bug 16161: window.moveBy(0, 0) moves the window by -22px vertically
1527         http://bugs.webkit.org/show_bug.cgi?id=16161
1528
1529         Removed the "Adjust the window rect to be in the coordinate space of
1530         the screen rect" step which was always adding (0,22) to the window
1531         position (on the main screen). Instead, account for screen X and Y
1532         in the bottom and right constrain step.
1533
1534         Added more test cases to: fast/dom/Window/window-resize.html
1535
1536         * bindings/js/kjs_window.cpp:
1537         (KJS::adjustWindowRect):
1538
1539 2007-11-27  Timothy Hatcher  <timothy@apple.com>
1540
1541         Reviewed by Adam Roben.
1542
1543         * page/inspector/inspector.css: Make the text in the Network
1544         panel legend more readable.
1545
1546 2007-11-27  Timothy Hatcher  <timothy@apple.com>
1547
1548         Reviewed by Adam Roben.
1549
1550         Don't call setNeedsReapplyStylesInAllFrames if the
1551         authorAndUserStylesEnabled setting didn't change.
1552
1553         * page/Settings.cpp:
1554         (WebCore::Settings::setAuthorAndUserStylesEnabled):
1555
1556 2007-11-27  Alp Toker  <alp@atoker.com>
1557
1558         Fix potential broken build due to a missing DEPENDPATH.
1559
1560         * WebCore.pro:
1561
1562 2007-11-26  Timothy Hatcher  <timothy@apple.com>
1563
1564         Reviewed by Dave Hyatt.
1565
1566         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
1567
1568         * WebCore.base.exp: Add the Settings::setAuthorAndUserStylesEnabled symbol.
1569         * css/CSSStyleSelector.cpp:
1570         (WebCore::CSSStyleSelector::CSSStyleSelector): Add a new matchAuthorAndUserStyles parameter.
1571         (WebCore::CSSStyleSelector::styleForElement): Check m_matchAuthorAndUserStyles before
1572         matching user and author rules.
1573         (WebCore::CSSStyleSelector::pseudoStyleForElement): Ditto.
1574         (WebCore::CSSStyleSelector::styleRulesForElement): Ditto.
1575         * css/CSSStyleSelector.h: Add m_matchAuthorAndUserStyles and new constructor parameter.
1576         * dom/Document.cpp:
1577         (WebCore::Document::Document): Pass Settings::authorAndUserStylesEnabled to the CSSStyleSelector.
1578         (WebCore::Document::recalcStyleSelector): Skip collecting the author stylesheets if
1579         Settings::authorAndUserStylesEnabled is false, and pass that to the CSSStyleSelector.
1580         * page/Settings.cpp:
1581         (WebCore::Settings::Settings): Initialize m_authorAndUserStylesEnabled to true.
1582         (WebCore::Settings::setAuthorAndUserStylesEnabled): Recalc style in all the frames
1583         when the setting changes.
1584         * page/Settings.h: Add m_authorAndUserStylesEnabled.
1585         (WebCore::Settings::authorAndUserStylesEnabled): Return m_authorAndUserStylesEnabled.
1586
1587 2007-11-27  Alp Toker  <alp@atoker.com>
1588
1589         Reviewed by Mark Rowe.
1590
1591         Based on changes by Mike Emmel.
1592
1593         CURL HTTP backend local file fixes:
1594
1595         Set a MIME type for local files based on the file extension.
1596
1597         Remove any HTTP query part sent to a local file.
1598
1599         * platform/network/curl/ResourceHandleManager.cpp:
1600         (WebCore::ResourceHandleManager::startJob):
1601
1602 2007-11-26  Brady Eidson  <beidson@apple.com>
1603
1604         Reviewed by Mark Rowe
1605
1606         Allow setting the default storage quota per database origin
1607
1608         * WebCore.base.exp:
1609
1610         * page/Settings.cpp:
1611         (WebCore::Settings::setDefaultDatabaseOriginQuota):
1612         (WebCore::Settings::defaultDatabaseOriginQuota):
1613         * page/Settings.h:
1614
1615         * storage/DatabaseTracker.cpp:
1616         (WebCore::DatabaseTracker::DatabaseTracker):
1617         (WebCore::DatabaseTracker::setDefaultOriginQuota):
1618         (WebCore::DatabaseTracker::defaultOriginQuota):
1619         * storage/DatabaseTracker.h:
1620
1621 2007-11-26  Peter Kasting  <zerodpx@gmail.com>
1622
1623         Reviewed by Alp Toker.
1624
1625         http://bugs.webkit.org/show_bug.cgi?id=15974
1626         GIF decoding should respect frames' specified disposal methods.
1627
1628         * platform/image-decoders/ImageDecoder.h:
1629         (WebCore::RGBA32Buffer::):
1630         (WebCore::RGBA32Buffer::RGBA32Buffer):
1631         (WebCore::RGBA32Buffer::disposalMethod):
1632         (WebCore::RGBA32Buffer::setDisposalMethod):
1633         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1634         (WebCore::GIFImageDecoder::frameBufferAtIndex):
1635         (WebCore::GIFImageDecoder::initFrameBuffer):
1636         (WebCore::GIFImageDecoder::prepEmptyFrameBuffer):
1637         (WebCore::GIFImageDecoder::haveDecodedRow):
1638         (WebCore::GIFImageDecoder::frameComplete):
1639         * platform/image-decoders/gif/GIFImageDecoder.h:
1640         * platform/image-decoders/gif/GIFImageReader.cpp:
1641         (GIFImageReader::read):
1642         * platform/image-decoders/gif/GIFImageReader.h:
1643         (GIFFrameReader::GIFFrameReader):
1644
1645 2007-11-26  Adam Roben  <aroben@apple.com>
1646
1647         Add a Color(CGColorRef) constructor
1648
1649         Reviewed by Darin.
1650
1651         * platform/graphics/Color.h:
1652         * platform/graphics/cg/ColorCG.cpp:
1653         (WebCore::Color::Color): Added.
1654
1655 2007-11-26  Adele Peterson  <adele@apple.com>
1656
1657         Reviewed by Darin.
1658
1659         Update to last change.  Moved addPendingSheet call to within nil check for m_cachedSheet.
1660
1661         * page/Frame.cpp:
1662         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
1663
1664 2007-11-26  Adele Peterson  <adele@apple.com>
1665
1666         Reviewed by Darin.
1667
1668         Fix for <rdar://problem/5591583> CrashTracer: [USER] 157 in Mail crashes at -[WebCoreFrameBridge reapplyStylesForDeviceType:]
1669
1670         * page/Frame.cpp: Add nil checks since every other caller of requestCSSStyleSheet checks for nil.
1671         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
1672         (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader):
1673
1674 2007-11-26  Mark Rowe  <mrowe@apple.com>
1675
1676         GCC 4.2 build fix.
1677
1678         * xml/XSLTUnicodeSort.cpp: Add another WTF_ATTRIBUTE_PRINTF.
1679
1680 2007-11-26  Feng Qian <ian.eng.webkit@gmail.com>
1681
1682         Reviewed and touched up by Sam Weinig.
1683
1684         Fix for http://bugs.webkit.org/show_bug.cgi?id=16073
1685
1686         Test: http/tests/security/xss-DENIED-invalid-domain-change.html
1687
1688         * dom/Document.cpp:
1689         (WebCore::Document::setDomain): Don't set the securityOrigin policy unless
1690         the set succeeds.  Adds some early returns as well.
1691
1692 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
1693
1694         Build fix.
1695
1696         * WebCore.vcproj/WebCore.make:
1697         * WebCore.vcproj/migrate-idls.sh:
1698
1699 2007-11-26  Sam Weinig  <sam@webkit.org>
1700
1701         Fix potential null-dereference.
1702
1703         Reviewed by Adam Roben.
1704
1705         * page/FrameTree.cpp:
1706         (WebCore::FrameTree::isDescendantOf):
1707
1708 2007-11-26  Sam Weinig  <sam@webkit.org>
1709
1710         Reviewed by Darin.
1711
1712         Fix for <rdar://problem/5592988>
1713         - Enforce tighter restrictions on what frames in other domains
1714           can be navigated.
1715
1716         Tests: http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change.html
1717                http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change.html
1718
1719         * bindings/js/kjs_window.cpp:
1720         (KJS::Window::put):
1721         (KJS::Location::put):
1722         (KJS::LocationProtoFuncReplace::callAsFunction):
1723         (KJS::LocationProtoFuncAssign::callAsFunction):
1724         * loader/FrameLoader.cpp:
1725         (WebCore::FrameLoader::createWindow):
1726         (WebCore::FrameLoader::load):
1727         (WebCore::FrameLoader::shouldAllowNavigation): Move and update logic from canTarget().
1728         * loader/FrameLoader.h:
1729         * page/FrameTree.cpp:
1730         (WebCore::FrameTree::isDescendantOf): Make this O(1) in the case when both frames are not
1731         in the same page.
1732
1733 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
1734
1735         Build fix.
1736
1737         * WebCore.vcproj/migrate-idls.sh:
1738
1739 2007-11-26  Dan Bernstein  <mitz@apple.com>
1740
1741         Reviewed by Dave Hyatt.
1742
1743         - fix <rdar://problem/5609337> Making a float shorter does not remove it from the floating object list of a nested block it intruded into
1744
1745         Test: fast/dynamic/float-withdrawal-2.html
1746
1747         * rendering/RenderBlock.cpp:
1748         (WebCore::RenderBlock::layoutBlockChildren): When a float may have
1749         been withdrawn from a child, mark all descendants if necessary and not
1750         just the child.
1751
1752 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
1753
1754         Build fix.
1755
1756         * WebCore.vcproj/MigrateIDLAndScripts: Copied from WebCore.vcproj/MigrateIDLAndScripts.make.
1757         * WebCore.vcproj/MigrateIDLAndScripts.make: Removed.
1758         * WebCore.vcproj/migrate-idls.sh:
1759
1760 2007-11-26  Brady Eidson  <beidson@apple.com>
1761
1762         Reviewed by Anders (and typo lovingly found by Adam)
1763
1764         Change Databases to be stored in a per-origin directory hierarchy - this will make
1765         storage quotas much easier to enforce
1766
1767         * platform/SecurityOriginData.cpp:
1768         (WebCore::SecurityOriginData::SecurityOriginData): Parse string based on '_' instead of ':'
1769         (WebCore::SecurityOriginData::stringIdentifier): Change to use '_' as a separator instead of ':'.  
1770           '_' still works due to not being allowed in domain names, but also is a valid filename character '
1771           on all filesystems we care about
1772
1773         * storage/DatabaseTracker.cpp:
1774         (WebCore::DatabaseTracker::fullPathForDatabase): Create a per-origin directory hierarchy to categorize
1775           databases by origin
1776
1777 2007-11-26  Timothy Hatcher  <timothy@apple.com>
1778
1779         Reviewed by Adam Roben.
1780
1781         Bug 16137: Web Inspector window on Leopard should have a unified toolbar and window title
1782         http://bugs.webkit.org/show_bug.cgi?id=16137
1783
1784         On Leopard the toolbar background will be transparent, to allow the
1785         window background to show through the transparent WebView. The 
1786         search results divs needed to move inside the "main" div, so they
1787         would be clipped and not show where the toolbar is.
1788
1789         * page/InspectorController.cpp:
1790         (WebCore::platform): Return a string for which platform we are.
1791         (WebCore::InspectorController::windowScriptObjectAvailable):
1792         Define the platform function on the JavaScript class.
1793         * page/inspector/Panel.js: Add panels to the panels div.
1794         * page/inspector/inspector.css: On the Leopard platform make
1795         the toolbar background transparent so the window background shows.
1796         * page/inspector/inspector.html: Add a panels div and move search
1797         result divs inside the main div.
1798         * page/inspector/inspector.js: Tweak the resize code to acount for
1799         the search results divs moving inside the main div.
1800
1801 2007-11-25  Rodney Dawes  <dobey@wayofthemonkey.com>
1802
1803         Reviewed by Maciej Stachowiak.
1804
1805         Remove the unneeded CFNETWORK #ifdefs.
1806
1807         * loader/NetscapePlugInStreamLoader.h:
1808
1809 2007-11-24  Laszlo Gombos  <laszlo.gombos@gmail.com>
1810
1811         Reviewed by Sam Weinig.
1812
1813         Add printf format attribute to several functions. Use the the new WTF_ATTRIBUTE_PRINTF define.
1814
1815         * dom/XMLTokenizer.cpp:
1816         * dom/XMLTokenizer.h:
1817         * platform/DeprecatedString.h:
1818         * platform/PlatformString.h:
1819
1820 2007-11-25  Dan Bernstein  <mitz@apple.com>
1821
1822         Reviewed by Adam Roben.
1823
1824         - fix off-center error images
1825
1826         Covered by many pixel tests with missing images
1827
1828         * rendering/RenderImage.cpp:
1829         (WebCore::RenderImage::paint): Account for the 1 pixel outline when
1830         positioning the error image.
1831
1832 2007-11-25  Kevin Ollivier  <kevino@theolliviers.com>
1833
1834         wx build fix. Fix filename case for case-sensitive filesystems.
1835
1836         * WebCoreSources.bkl:
1837
1838 2007-11-22  Nikolas Zimmermann  <zimmermann@kde.org>
1839
1840         Reviewed by Adam Roben.
1841
1842         Fixes: http://bugs.webkit.org/show_bug.cgi?id=15564
1843
1844         Fix problems with hidden glyphs. They were taken into account for quite
1845         some operations (hit testing, length calulcations etc..) except painting.
1846         Especially fixes boundaries of <textPath> (see using Web Inspector) if
1847         text-anchor isn't equal to 'start'.
1848
1849         Added testcase:
1850         svg/text/textPathBoundsBug.svg
1851
1852         Fixed testcase: (all showed text selection problems on text paths)
1853         svg/batik/text/textGlyphOrientationHorizontal.svg
1854         svg/batik/text/textOnPath.svg
1855         svg/batik/text/textOnPath3.svg
1856         svg/batik/text/verticalTextOnPath.svg
1857         svg/text/text-align-04-b.svg
1858         svg/W3C-SVG-1.1/text-align-04-b.svg
1859
1860         * rendering/SVGCharacterLayoutInfo.cpp:
1861         (WebCore::SVGChar::isHidden):
1862         * rendering/SVGCharacterLayoutInfo.h:
1863         (WebCore::SVGCharOnPath::SVGCharOnPath):
1864         * rendering/SVGInlineTextBox.cpp:
1865         (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
1866         (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
1867         * rendering/SVGRootInlineBox.cpp:
1868         (WebCore::topLeftPositionOfCharacterRange):
1869         (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
1870         (WebCore::cummulatedWidthOrHeightOfTextChunk):
1871         (WebCore::applyTextAnchorToTextChunk):
1872         (WebCore::applyTextLengthCorrectionToTextChunk):
1873         (WebCore::SVGRootInlineBox::layoutInlineBoxes):
1874         (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
1875         (WebCore::SVGRootInlineBox::buildTextChunks):
1876
1877 2007-11-25  Alexey Proskuryakov  <ap@webkit.org>
1878
1879         Reviewed by Maciej.
1880
1881         http://bugs.webkit.org/show_bug.cgi?id=15919
1882         XSLTProcessor.transformToFragment creates an extra not defined TEXT_NODE at the end
1883
1884         Test: fast/xsl/extra-lf-at-end.html
1885
1886         * xml/XSLTProcessor.cpp:
1887         (WebCore::writeToVector): Changed to use Vector to avoid slow String::apend().
1888         (WebCore::saveResultToString): Remove trailing line feed if present.
1889
1890 2007-11-24  Mark Rowe  <mrowe@apple.com>
1891
1892         Reviewed by Tim Hatcher.
1893
1894         Fix <rdar://problem/5432686> 333MB RPRVT seems to leak @ www.43folders.com (1hr plug-in stream).
1895         http://bugs.webkit.org/show_bug.cgi?id=13705
1896
1897         Don't buffer the entire stream contents in memory in the ResourceLoader.
1898
1899         * loader/mac/NetscapePlugInStreamLoaderMac.mm:
1900         (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
1901         (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
1902         * loader/mac/WebPlugInStreamLoaderDelegate.h:
1903
1904 2007-11-23  Adam Roben  <aroben@apple.com>
1905
1906         Get rid of WebCoreSystemInterface on Windows
1907
1908         The one function defined in that file is now in WebKitSystemInterface.
1909
1910         Reviewed by Tim.
1911
1912         * WebCore.vcproj/WebCore.vcproj: Removed
1913         WebCoreSystemInterface.{cpp,h}.
1914         * platform/graphics/cg/ImageCG.cpp: Made #include of
1915         WebCoreSystemInterface.h Mac-only.
1916         * platform/win/GraphicsContextWin.cpp: Ditto.
1917         * platform/win/WebCoreSystemInterface.cpp: Removed.
1918         * platform/win/WebCoreSystemInterface.h: Removed.
1919
1920 2007-11-24  Adam Roben  <aroben@apple.com>
1921
1922         Replace uses of %@ with %s in the inspector
1923
1924         Rubberstamped by Tim.
1925
1926         * English.lproj/InspectorLocalizedStrings.js: Changed %@ to %s.
1927         * page/inspector/DatabasePanel.js: Ditto.
1928         * page/inspector/StylesSidebarPane.js: Ditto.
1929         * page/inspector/inspector.js: Ditto.
1930         * page/inspector/utilities.js:
1931         (String.vsprintf): Removed @ as a format specifier.
1932
1933 2007-11-24  Adam Roben  <aroben@apple.com>
1934
1935         Windows build fix
1936
1937         Turn off the change made in r27984 on Windows for now.
1938
1939         * xml/XSLTProcessor.cpp:
1940         (WebCore::XSLTProcessor::transformToString):
1941         * xml/XSLTUnicodeSort.cpp:
1942
1943 2007-11-24  Timothy Hatcher  <timothy@apple.com>
1944
1945         Reviewed by Adam Roben.
1946
1947         Bug 16121: Web Inspector needs helper functions that pass a 'this' object to
1948         addEventListener and setTimeout
1949         http://bugs.webkit.org/show_bug.cgi?id=16121
1950
1951         Add Function.prototype.bind. This helper will return a wrapper function
1952         that will call the original function with the supplied arguments
1953         and using the supplied 'this' object.
1954
1955         * page/inspector/Database.js: Remove a use of setTimeout by
1956           inheriting some common functions from Resource.
1957         * page/inspector/DatabasePanel.js: Use the new bind function.
1958         * page/inspector/ConsolePanel.js: Ditto.
1959         * page/inspector/DocumentPanel.js: Ditto.
1960         * page/inspector/NetworkPanel.js: Ditto.
1961         * page/inspector/PropertiesSection.js: Ditto.
1962         * page/inspector/Resource.js: Ditto.
1963         * page/inspector/SidebarPane.js: Ditto.
1964         * page/inspector/inspector.html: Moved Database.js after Resource.js,
1965           now that Database.js uses it.
1966         * page/inspector/inspector.js: Use the new bind function. Also
1967           removed a setTimeout used for the localized strings code. There is
1968           now a load event listener added to the localized strings script
1969           element that will call WebInspector.loaded.
1970         * page/inspector/utilities.js: Add Function.prototype.bind.
1971
1972 2007-11-24  Timothy Hatcher  <timothy@apple.com>
1973
1974         Reviewed by Adam Roben.
1975
1976         Bug 16112: Some Web Inspector UI elements use offsetWidth and offsetHeight before the stylesheet loads
1977         http://bugs.webkit.org/show_bug.cgi?id=16112
1978
1979         In the places where we use offsetWidth and offsetHeight before
1980         the stylesheet loads there is now a check. If the body's
1981         offsetWidth is not greater than zero, then set a timeout
1982         to do the updates requiring the stylesheet later.
1983
1984         The three places this happened:
1985         - DOM tree selection highlight would show up at the wrong height
1986           when using Inspect Element to open the inspector.
1987         - DOM tree breadcrumbs would not collapse when using Inspect Element
1988           to open the inspector.
1989         - Network Timeline divider lines would not show when opening directly
1990           into the timeline.
1991
1992         * page/inspector/DocumentPanel.js: Check if the stylesheet loaded.
1993         * page/inspector/NetworkPanel.js: Ditto.
1994         * page/inspector/inspector.html: Include the stylesheet before
1995           any scripts, this will help get it loaded sooner.
1996
1997 2007-11-24  Kevin Ollivier  <kevino@theolliviers.com>
1998
1999         Add wx implementation for pathGetFilename
2000
2001         Reviewed by David D. Kilzer.
2002
2003         * html/HTMLFormElement.cpp:
2004         (WebCore::pathGetFilename):
2005
2006 2007-11-23  Timothy Hatcher  <timothy@apple.com>
2007
2008         Reviewed by Adam Roben.
2009
2010         Bug 16110: Clicking inside the resource headers in the network timeline collapses them
2011         http://bugs.webkit.org/show_bug.cgi?id=16110
2012
2013         Toggle the resource headers only if the click happens on the
2014         resource row, not within the headers area.
2015
2016         * WebCore.xcodeproj/project.pbxproj:
2017         * page/inspector/NetworkPanel.js:
2018
2019 2007-11-23  Kevin Ollivier  <kevino@theolliviers.com>
2020
2021         Win build fixes. CURL needs winsock, so don't disable it, and
2022         include pthreads.h to get the threadsafe *_r functions.
2023
2024         Reviewed by Adam Roben.
2025
2026         * config.h:
2027         * loader/FTPDirectoryDocument.cpp:
2028         * loader/FTPDirectoryParser.cpp:
2029
2030 2007-11-23  Kevin Ollivier  <kevino@theolliviers.com>
2031
2032         wx build fix. Move wx settings to project build settings,
2033         remove some old settings that were masking a build problem,
2034         and fix include ordering to ensure proper config.h and
2035         unicode/utf8.h headers are used. 
2036
2037         * webcore-base.bkl:
2038         * webcore-wx.bkl:
2039
2040 2007-11-23  Simon Hausmann  <hausmann@webkit.org>
2041
2042         Reviewed by George Staikos <staikos@kde.org>.
2043
2044         Another build fix specific to trunk (instead of the stable branch) to fix make clean (which the buildbots call).
2045
2046         * WebCore.pro:
2047
2048 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2049
2050         Not reviewed, trivial leak fix.
2051
2052         Fix xsltUnicodeSortFunction() memory leaks.
2053
2054         * xml/XSLTUnicodeSort.cpp:
2055         (WebCore::xsltUnicodeSortFunction):
2056
2057 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2058
2059         Reviewed by Maciej.
2060
2061         <rdar://problem/5539306> REGRESSION: redirect fails when subframe's document is opened but
2062         not closed (affects digg.com)
2063
2064         Tests: fast/loader/meta-refresh-vs-open.html
2065                fast/loader/redirect-with-open-subframe-2.html
2066                fast/loader/redirect-with-open-subframe.html
2067                http/tests/loading/onload-vs-immediate-refresh.pl
2068
2069         * loader/FrameLoader.cpp:
2070         (WebCore::FrameLoader::scheduleRedirection): Only check whether the load is complete for
2071         HTTP redirects - JavaScript-initiated ones are effective immediately.
2072
2073 2007-11-23  Dan Bernstein  <mitz@apple.com>
2074
2075         Reviewed by Alexey Proskuryakov.
2076
2077         - apply matrix transforms on the correct side of the transformation
2078           matrix (not on the side where the vector is multiplied).
2079
2080         Test: fast/transforms/matrix-02.html
2081
2082         * rendering/RenderStyle.h:
2083         (WebCore::MatrixTransformOperation::apply):
2084
2085 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2086
2087         Reviewed by Maciej.
2088
2089         http://bugs.webkit.org/show_bug.cgi?id=16077
2090         <rdar://problem/5609785> XSLT processor <xsl:sort> algorithm is incompatible with other
2091         browser implementations
2092
2093         Test: fast/xsl/sort-unicode.xml
2094
2095         * xml/XSLTProcessor.cpp:
2096         (WebCore::XSLTProcessor::transformToString): Set a custom sort function.
2097
2098         * xml/XSLTUnicodeSort.cpp: Added.
2099         (init_xsltTransformError):
2100         (xsltTransformError):
2101         (WebCore::xsltUnicodeSortFunction):
2102         * xml/XSLTUnicodeSort.h: Added.
2103         ICU-based implementation of xsl:sort, using an example from libxslt distribution.
2104         Only minimal coding style fixes to ease synchronization with upstream in the future.
2105
2106         * icu/unicode/ucol.h: Added.
2107         * icu/unicode/uset.h: Added.
2108         Taken from ICU 3.2
2109
2110         * WebCore.pro:
2111         * WebCore.vcproj/WebCore.vcproj:
2112         * WebCore.xcodeproj/project.pbxproj:
2113         * WebCoreSources.bkl:
2114         Added XSLTUnicodeSort.cpp.
2115
2116 2007-11-22  Alexey Proskuryakov  <ap@webkit.org>
2117
2118         Reviewed by Maciej.
2119
2120         http://bugs.webkit.org/show_bug.cgi?id=14977
2121         Hixie's DOM Core performance test shows insert >10x slower than append
2122
2123         Each invocation of Element.childNodes[n] was creating and registering a new ChildNodeList,
2124         which persisted and listened to notifications until GC.
2125
2126         A fix is to avoid registering child node lists for notifications - they don't need them, as
2127         they share a common cache in Node.
2128
2129         * dom/Node.cpp:
2130         (WebCore::Node::registerNodeList):
2131         (WebCore::Node::unregisterNodeList):
2132         (WebCore::Node::notifyLocalNodeListsAttributeChanged):
2133         (WebCore::Node::notifyLocalNodeListsChildrenChanged):
2134         * dom/NodeList.h:
2135         (WebCore::NodeList::needsNotifications):
2136
2137 2007-11-22  Dan Bernstein  <mitz@apple.com>
2138
2139         Reviewed by Antti Koivisto.
2140
2141         - fix http://bugs.webkit.org/show_bug.cgi?id=15811
2142           WebKit plug-ins can re-enter WebKit under attach()
2143           <rdar://problem/5577978>
2144
2145         Defer plug-in loading until after attach and recalcStyle using the
2146         post-attach callback mechanism. Netscape plug-ins are still loaded only
2147         after layout.
2148
2149         * dom/ContainerNode.cpp:
2150         Made NodeCallbackQueue elements retain the Node because callbacks might
2151         delete nodes that are in the callback queue.
2152         (WebCore::ContainerNode::suspendPostAttachCallbacks): Added. Needed to
2153         prevent post-attach callbacks from being dispatched under recalcStyle().
2154         (WebCore::ContainerNode::resumePostAttachCallbacks): Ditto.
2155         (WebCore::ContainerNode::dispatchPostAttachCallbacks): Factored out from
2156         attach().
2157         (WebCore::ContainerNode::attach):
2158         * dom/ContainerNode.h:
2159         * dom/Document.cpp:
2160         (WebCore::Document::recalcStyle): Added calls to
2161         suspendPostAttachCallbacks() and resumePostAttachCallbacks().
2162         * html/HTMLEmbedElement.cpp:
2163         (WebCore::HTMLEmbedElement::HTMLEmbedElement):
2164         (WebCore::HTMLEmbedElement::attach): Changed to queue the widget update
2165         for post-attach.
2166         (WebCore::HTMLEmbedElement::updateWidget): Added. Called by the
2167         post-attach callback.
2168         * html/HTMLEmbedElement.h: Added an m_needWidgetUpdate member needed to
2169         prevent a double update if another plug-in's post-attach updateWidget()
2170         triggers a layout which updates the widget before this plug-in's
2171         post-attach callback is invoked.
2172         (WebCore::HTMLEmbedElement::setNeedWidgetUpdate): Added a setter for
2173         m_needWidgetUpdate.
2174         * html/HTMLObjectElement.cpp:
2175         (WebCore::HTMLObjectElement::attach): Changed to queue the widget update
2176         for post-attach.
2177         (WebCore::HTMLObjectElement::updateWidget): Added. Called by the
2178         post-attach callback.
2179         * html/HTMLObjectElement.h:
2180         (WebCore::HTMLObjectElement::setNeedWidgetUpdate): Added a setter for
2181         m_needWidgetUpdate.
2182         * html/HTMLPlugInElement.cpp:
2183         (WebCore::HTMLPlugInElement::updateWidgetCallback): Added.
2184         * html/HTMLPlugInElement.h:
2185         (WebCore::HTMLPlugInElement::updateWidget):
2186         * rendering/RenderPartObject.cpp:
2187         (WebCore::RenderPartObject::updateWidget): Added calls to
2188         setNeedWidgetUpdate(false) so that if this method is called from
2189         FrameView::layout() during post-attach dispatch of another plug-in,
2190         it will not be called again when this plug-in's post-attach callback
2191         is dispatched.
2192         * rendering/RenderPartObject.h:
2193         (WebCore::RenderPartObject::updateWidget) Renamed argument to match
2194         the method definition.
2195
2196 2007-11-22  Timothy Hatcher  <timothy@apple.com>
2197
2198         Reviewed by Dan Bernstein.
2199
2200         Fix the Element.hasStyleClass and Element.removeStyleClass helpers
2201         to not find and replace substrings, but whole class names at the
2202         beginning or end of the string or surrounded by whitespace.
2203
2204         * page/inspector/utilities.js:
2205
2206 2007-11-22  Timothy Hatcher  <timothy@apple.com>
2207
2208         Revert part of my r27935 change that made the Tip balloons
2209         animate with CSS transitions. The balloon was only opacity 0,
2210         so it would cause its row to highlight when hovering over
2211         another row.
2212
2213         * page/inspector/NetworkPanel.js:
2214         * page/inspector/inspector.css:
2215
2216 2007-11-22  Dan Bernstein  <mitz@apple.com>
2217
2218         Reviewed by Maciej Stachowiak.
2219
2220         - fix http://bugs.webkit.org/show_bug.cgi?id=15943
2221           -webkit-transform matrix does not work
2222
2223         Test: fast/transforms/matrix-01.html
2224
2225         Parse all six matrix entries as numbers.
2226
2227         * css/CSSParser.cpp:
2228         (WebCore::TransformOperationInfo::TransformOperationInfo):
2229         (WebCore::CSSParser::parseTransform):
2230         * css/CSSStyleSelector.cpp:
2231         (WebCore::CSSStyleSelector::applyProperty):
2232         * rendering/RenderStyle.cpp:
2233         (WebCore::MatrixTransformOperation::blend):
2234         * rendering/RenderStyle.h:
2235         (WebCore::MatrixTransformOperation::MatrixTransformOperation):
2236         (WebCore::MatrixTransformOperation::apply):
2237
2238 2007-11-22  Laszlo Gombos  <laszlo.gombos@gmail.com>
2239
2240         Reviewed by Alp Toker.
2241
2242         Fix some compilation warnings.  Do not reference undefined (platform) specific type (WebCore::CachedFont::m_fontData)
2243
2244         * loader/CachedFont.cpp:
2245         (WebCore::CachedFont::~CachedFont):
2246         (WebCore::CachedFont::allReferencesRemoved):
2247
2248 2007-11-22  Alp Toker  <alp@atoker.com>
2249
2250         Reviewed by Mark Rowe.
2251
2252         GTK+ drawing fix.
2253
2254         Add a check to avoid crashing when the GraphicsContext is not
2255         associated with a GdkEventExpose. This was noticed when adding
2256         printing support but might be triggered in other situations too.
2257
2258         * platform/gtk/WidgetGtk.cpp:
2259         (WebCore::Widget::paint):
2260
2261 2007-11-22  Julien Chaffraix  <julien.chaffraix@gmail.com>
2262
2263         Reviewed by Alexey.
2264
2265         Bug 15530: XMLHttpRequest should not support certain methods
2266
2267         Test: http/tests/xmlhttprequest/xmlhttprequest-forbidden-methods-exception.html
2268
2269         * xml/XMLHttpRequest.cpp:
2270         (WebCore::XMLHttpRequest::open):
2271
2272 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2273
2274         Reviewed by George.
2275
2276         For the build inside Qt include qbase.pri and don't duplicate what qbase.pri otherwise does (install targets, etc.)
2277
2278         * WebCore.pro:
2279
2280 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2281
2282         Reviewed by George.
2283
2284         Don't set OBJECTS_DIR when building inside Qt
2285
2286         * WebCore.pro:
2287
2288 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2289
2290         Reviewed by George.
2291
2292         Use ../generated as path for the generated sources for builds inside Qt
2293
2294         * WebCore.pro:
2295
2296 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2297
2298         Reviewed by George.
2299
2300         Make the directory of where to put the generated sources configurable through the GENERATED_SOURCE_DIR variable
2301
2302         * WebCore.pro:
2303
2304 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2305
2306         Reviewed by George.
2307
2308         Centralize the setup for all the extra compilers in a addExtraCompiler function.
2309         
2310         This allows adding a "generated_files" target that builds all generated files using "make generated_files".
2311         For the build inside Qt we do not generate actual rules for the extra compilers but instead
2312         do the variable substitution of compiler.output manually and add the generated sources to SOURCES.
2313
2314         * WebCore.pro:
2315
2316 2007-11-21  Timothy Hatcher  <timothy@apple.com>
2317
2318         Reviewed by Eric Seidel.
2319
2320         Show Fonts as Yellow in the network timeline.
2321
2322         * page/inspector/NetworkPanel.js:
2323         * page/inspector/inspector.css:
2324
2325 2007-11-21  Dan Bernstein  <mitz@apple.com>
2326
2327         Reviewed by Eric Seidel.
2328
2329         - fix <rdar://problem/5607037> REGRESSION (r27351): Departure date does not repaint when changed on Google Maps public transit planner (16034)
2330
2331         Test: fast/repaint/subtree-root-skipped.html
2332
2333         * page/FrameView.cpp:
2334         (WebCore::FrameViewPrivate::FrameViewPrivate): Initialize the layout
2335         root to 0.
2336         (WebCore::FrameView::layoutRoot): Changed to return a RenderObject
2337         instead of a Node.
2338         (WebCore::FrameView::layout): Changed for layout root being a renderer
2339         rather than a DOM node. Also replaced clearing the repaint rects
2340         set with asserting that it is empty if this is the top-level call to
2341         layout(). If it is not, the set may contain rects from enclosing
2342         layout() and those should not be removed.
2343         (WebCore::FrameView::scheduleRelayout): Changed for layout root being
2344         a renderer rather than a DOM node.
2345         (WebCore::isObjectAncestorContainerOf): Added this helper function that
2346         tests whether one object will be marked by calling
2347         markContainingBlocksForLayout() on the other.
2348         (WebCore::FrameView::scheduleRelayoutOfSubtree): Changed for layout
2349         root being a renderer rather than a DOM node. Changed the check if new
2350         and current layout roots are on the same path from the root to use
2351         the subgraph of the render tree defined by container()hood instead of
2352         the DOM tree and parenthood.
2353         * page/FrameView.h:
2354         * rendering/RenderBox.cpp: 
2355         (WebCore::RenderBox::calcWidth): Changed for layout root being a
2356         renderer rather than a DOM node.
2357         * rendering/RenderObject.cpp:
2358         (WebCore::RenderObject::~RenderObject): Added an assertion that the
2359         object being deleted is not currently the layout root.
2360         (WebCore::RenderObject::scheduleRelayout): Changed for layout root being
2361         a renderer rather than a DOM node.
2362
2363 2007-11-21  Mark Rowe  <mrowe@apple.com>
2364
2365         Reviewed by Eric.
2366
2367         Fix WebCore to build without warnings under GCC 4.2.
2368
2369         * Configurations/Base.xcconfig:
2370         * css/CSSRuleList.cpp:
2371         (WebCore::CSSRuleList::deleteRule):
2372         * css/CSSStyleSelector.cpp:
2373         (WebCore::CSSStyleSelector::locateSharedStyle):
2374         * html/HTMLParser.cpp:
2375         (WebCore::HTMLParser::allowNestedRedundantTag):
2376         * rendering/RenderBlock.cpp:
2377         (WebCore::RenderBlock::fillInlineSelectionGaps):
2378         (WebCore::RenderBlock::fillBlockSelectionGaps):
2379         * rendering/RenderLayer.cpp:
2380         (WebCore::RenderLayer::stackingContext):
2381         (WebCore::RenderLayer::enclosingPositionedAncestor):
2382         (WebCore::RenderLayer::transparentAncestor):
2383         * rendering/RenderStyle.cpp:
2384         (WebCore::BackgroundLayer::fillUnsetProperties):
2385         (WebCore::Transition::fillUnsetProperties):
2386         * rendering/RenderText.cpp:
2387         (WebCore::RenderText::containsOnlyWhitespace):
2388         * rendering/bidi.cpp:
2389         (WebCore::RenderBlock::determineStartPosition):
2390
2391 2007-11-21  Alp Toker  <alp@atoker.com>
2392
2393         Reviewed by Mark Rowe.
2394
2395         http://bugs.webkit.org/show_bug.cgi?id=16071
2396         Curl backend handles EINTR incorrectly
2397
2398         Defer timers during select() to avoid interruption by timer signals.
2399
2400         * platform/network/curl/ResourceHandleManager.cpp:
2401         (WebCore::ResourceHandleManager::downloadTimerCallback):
2402
2403 2007-11-21  Mark Rowe  <mrowe@apple.com>
2404
2405         Reviewed by Tim Hatcher.
2406
2407         Changes due to <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings
2408
2409         Update format strings to use format specifiers that match the argument types.
2410
2411         * loader/icon/IconDatabase.cpp:
2412         (WebCore::IconDatabase::performURLImport):
2413         (WebCore::IconDatabase::writeToDatabase):
2414         * platform/mac/TextCodecMac.cpp:
2415         (WebCore::TextCodecMac::decode):
2416         * storage/Database.cpp:
2417         (WebCore::Database::deliverAllPendingCallbacks):
2418
2419 2007-11-21  Xan Lopez  <xan@gnome.org>
2420
2421         Reviewed by Alp Toker.
2422
2423         Clarify scroll event processing with a comment.
2424
2425         * platform/gtk/PlatformScrollBarGtk.cpp:
2426         (gtkScrollEventCallback):
2427
2428 2007-11-21  Timothy Hatcher  <timothy@apple.com>
2429
2430         Reviewed by Adam Roben.
2431
2432         Bug 16085: Web Inspector's Network Timeline graph code clean up and misc. fixes
2433         http://bugs.webkit.org/show_bug.cgi?id=16085
2434         
2435         Changes include:
2436         - Refactor the drawing code as nested functions instead of global functions.
2437         - Compute the segment percentages only once per call to drawSummaryGraph.
2438         - Account for percentages that rounded down to total less-than 100%.
2439         - Draw the pill shadow better using the canvas shadow drawing properties.
2440         - Removes a couple canvas context saves and restores.
2441
2442         * page/inspector/NetworkPanel.js:
2443
2444 2007-11-21  Alexey Proskuryakov  <ap@webkit.org>
2445
2446         Reviewed by Adam Roben.
2447
2448         http://bugs.webkit.org/show_bug.cgi?id=16056
2449         Unicode not being interpreted correctly in Web Inspector source view
2450
2451         Cannot be tested automatically.
2452
2453         * loader/CachedCSSStyleSheet.cpp:
2454         (WebCore::CachedCSSStyleSheet::encoding):
2455         * loader/CachedCSSStyleSheet.h:
2456         * loader/CachedResource.h:
2457         (WebCore::CachedResource::encoding):
2458         * loader/CachedScript.cpp:
2459         (WebCore::CachedScript::encoding):
2460         * loader/CachedScript.h:
2461         * loader/CachedXBLDocument.cpp:
2462         (WebCore::CachedXBLDocument::encoding):
2463         * loader/CachedXBLDocument.h:
2464         * loader/CachedXSLStyleSheet.cpp:
2465         (WebCore::CachedXSLStyleSheet::encoding):
2466         * loader/CachedXSLStyleSheet.h:
2467         Teach textual CachedResources to report their encodings.
2468
2469         * page/InspectorController.cpp:
2470         (WebCore::addSourceToFrame):
2471         (WebCore::updateResourceResponse):
2472         Use the actual encoding - the network layer has little idea about it.
2473
2474 2007-11-20  Mark Rowe  <mrowe@apple.com>
2475
2476         Reviewed by Maciej Stachowiak.
2477
2478         Fix <rdar://problem/5609579> (DOMParser().parseFromString() freezes Safari when parsing large nodes with XML entities)
2479         http://bugs.webkit.org/show_bug.cgi?id=16076
2480
2481         XMLTokenizer was calling CharacterData::appendData twice per entity in the fragment of XML being
2482         parsed (once for text before the entity, once for the entity itself).  This triggered O(n^2) copying
2483         of the CharacterData's string due to resizing.  We now prevent this happening by buffering all the
2484         content for a given Text node in the XMLTokenizer before sending it out to the node in a single go.
2485
2486         * dom/XMLTokenizer.cpp:
2487         (WebCore::XMLTokenizer::characters): Append the characters to the buffer.
2488         (WebCore::XMLTokenizer::endDocument): Ensure the buffer is flushed when the document has ended.
2489         (WebCore::endDocumentHandler):
2490         (WebCore::XMLTokenizer::enterText):
2491         (WebCore::XMLTokenizer::exitText): Append the contents of the buffer to the node.
2492         (WebCore::XMLTokenizer::initializeParserContext): Add the endDocument handler.
2493         (WebCore::parseXMLDocumentFragment): Force endDocument to be called when parsing a fragment to ensure
2494         that the buffer gets flushed to the node.
2495         * dom/XMLTokenizer.h:
2496
2497 2007-11-20  Timothy Hatcher  <timothy@apple.com>
2498
2499         Reviewed by Mark Rowe.
2500
2501         Animate the status area and tip balloons in the Web Inspector
2502         with CSS animations.
2503
2504         * page/inspector/NetworkPanel.js:
2505         * page/inspector/inspector.css:
2506         * page/inspector/inspector.js:
2507
2508 2007-11-20  Kevin Ollivier  <kevino@theolliviers.com>
2509
2510         wx build fix for Windows. Don't use WebCore/move-js-headers.sh as
2511         it indiscriminately copies any headers inside JavaScriptCore,
2512         which includes Tiger ICU headers. 
2513
2514         * webcore-base.bkl:
2515         Remove references to the WebCore/include dir generated by
2516         move-js-headers.sh, and also get headers from JavaScriptCore
2517         directly rather than from WebCore/ForwardingHeaders. 
2518
2519 2007-11-20  Alp Toker  <alp@atoker.com>
2520
2521         Reviewed by Mark Rowe.
2522
2523         Avoid pointlessly mallocing and freeing this transform matrix.
2524
2525         * platform/gtk/FontPlatformDataGtk.cpp:
2526         (WebCore::FontPlatformData::FontPlatformData):
2527
2528 2007-11-20  Naiem Shaik  <naiem.shaik@gmail.com>
2529
2530         Reviewed by Alp Toker.
2531
2532         http://bugs.webkit.org/show_bug.cgi?id=15763
2533         [GTK] Enter key does not take to the link highlighted.
2534
2535         Add missing keycode cases.
2536
2537         * platform/gtk/KeyEventGtk.cpp:
2538         (WebCore::keyIdentifierForGdkKeyCode):
2539         (WebCore::windowsKeyCodeForKeyEvent):
2540         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2541
2542 2007-11-20  Mark Rowe  <mrowe@apple.com>
2543
2544         Reviewed by Sam Weinig.
2545
2546         Fix http://bugs.webkit.org/show_bug.cgi?id=16074
2547         Bug 16074: execCommand("InsertHorizontalRule", false, "") results in id="" being inserted
2548
2549         For consistency with InsertOrderedList and InsertUnorderedList a value parameter of "" should
2550         not result in an id being set.
2551
2552         * editing/JSEditor.cpp: Don't set the id attribute if value is empty.
2553
2554 2007-11-20  Dan Bernstein  <mitz@apple.com>
2555
2556         Reviewed by Adam Roben.
2557
2558         - fix <rdar://problem/5090708> Textareas render broken-looking scrollbars when too short to show full scrollbar
2559
2560         * platform/win/PlatformScrollBar.h:
2561         * platform/win/PlatformScrollBarSafari.cpp:
2562         Added the "hit inset" constants (representing how far the track eats
2563         into the button).
2564         (WebCore::PlatformScrollbar::paint): Changed to paint the buttons and
2565         the thumb only if they should be showing.
2566         (WebCore::PlatformScrollbar::hasButtons): Added. Returns whether the
2567         arrows should be drawn.
2568         (WebCore::PlatformScrollbar::hasThumb): Added. Returns whether the thumb
2569         should be drawn.
2570         (WebCore::PlatformScrollbar::forwardButtonRect):
2571         (WebCore::PlatformScrollbar::trackRect): Changed to return the entire
2572         bounds of the scrollbar if the scrollbar has no buttons.
2573         (WebCore::PlatformScrollbar::paintTrack): Changed to paint a disabled
2574         track along the entire scrollbar if it has not buttons.
2575         (WebCore::PlatformScrollbar::hitTest): Changed to hit test only the
2576         parts that the scrollbar has in its current dimensions.
2577
2578 2007-11-20  Mark Rowe  <mrowe@apple.com>
2579
2580         Reviewed by Alp Toker.
2581
2582         * config.h: Change #if to #ifdef to silence warnings on non-Apple platforms.
2583
2584 2007-11-20  Simon Hausmann  <hausmann@kde.org>
2585
2586         Reviewed by Adam Treat <treat@kde.org>.
2587
2588         Remove static linkage of QtWebKit against the ICO image format plugin.
2589         Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
2590
2591         * WebCore.pro:
2592         * platform/graphics/qt/ImageDecoderQt.cpp:
2593
2594 2007-11-20  David D. Kilzer  <ddkilzer@webkit.org>
2595
2596         no-svg build broken after r27278
2597         <http://bugs.webkit.org/show_bug.cgi?id=16061>
2598
2599         Reviewed by Eric.
2600
2601         * bindings/scripts/CodeGeneratorObjC.pm: Always generate DOMHTMLEmbedElementPrivate.h
2602         and DOMHTMLObjectElementPrivate.h for no-svg build.
2603
2604 2007-11-20  Adam Treat  <treat@kde.org>
2605
2606         Reviewed by Simon.
2607
2608         * Don't use so much heap memory.
2609
2610         * platform/graphics/qt/ImageDecoderQt.cpp:
2611         * platform/graphics/qt/ImageDecoderQt.h:
2612         * platform/graphics/qt/ImageSourceQt.cpp:
2613         (WebCore::ImageSource::createFrameAtIndex):
2614
2615 2007-11-20  Lars Knoll  <lars@trolltech.com>
2616
2617         Reviewed by Simon.
2618
2619         Fix text break interators.
2620         
2621         The break iterators where trying to be smart about the input
2622         string and caching their results. Unfortunately a pointer/string length
2623         comparison is not good enough in all cases (since some input is stack based
2624         temp strings). Removed the caching but at the same time started to use a more
2625         efficient constructor of QTextBoundaryFinder that doesn't need to malloc for
2626         most strings.
2627         
2628         Fixes two test cases that test "text-transform: capitalize".
2629
2630         * platform/qt/TextBreakIteratorQt.cpp:
2631         (WebCore::wordBreakIterator):
2632         (WebCore::characterBreakIterator):
2633         (WebCore::lineBreakIterator):
2634         (WebCore::sentenceBreakIterator):
2635
2636 2007-11-20  Adam Treat  <treat@kde.org>
2637
2638         Reviewed by George.
2639
2640         * Make gif animations work for instance.
2641
2642         * platform/graphics/qt/ImageDecoderQt.cpp:
2643         (WebCore::ImageDecoderQt::reset):
2644         (WebCore::ImageDecoderQt::setData):
2645         (WebCore::ImageDecoderQt::frameCount):
2646         (WebCore::ImageDecoderQt::repetitionCount):
2647         * platform/graphics/qt/ImageDecoderQt.h:
2648
2649 2007-11-20  Adam Treat  <treat@kde.org>
2650
2651         * Build in release mode
2652
2653         * platform/NotImplemented.h:
2654
2655 2007-11-20  Adam Treat  <treat@kde.org>
2656
2657         Reviewed by Simon and George.
2658
2659         * Be quiet and allow suppression of NotImplemented calls at runtime.
2660
2661         * platform/NotImplemented.h:
2662
2663 2007-11-19  Doug Turner  <dougt@meer.net>
2664
2665         Reviewed by Alp Toker.
2666
2667         http://bugs.webkit.org/show_bug.cgi?id=16054
2668         Crash when GlyphPage::fill is called with more than 256 bytes of data
2669
2670         http://bugs.webkit.org/show_bug.cgi?id=14446
2671         [GDK] Crash on http://www.wikipedia.org/
2672
2673         setGlyphDataForIndex() uses a fixed array of size 256 which we can't
2674         exceed. We need to return failure if the buffer has Unicode
2675         supplementary characters for now.
2676
2677         This strategy matches the Win port, which also doesn't support this
2678         case yet.
2679
2680         Add an assertion so nobody makes this mistake again.
2681
2682         * platform/GlyphPageTreeNode.h:
2683         (WebCore::GlyphPage::setGlyphDataForIndex):
2684         * platform/gtk/GlyphPageTreeNodeGtk.cpp:
2685         (WebCore::GlyphPage::fill):
2686
2687 2007-11-19  Doug Turner  <dougt@meer.net>
2688
2689         Reviewed by Timothy Hatcher.
2690
2691         http://bugs.webkit.org/show_bug.cgi?id=16050
2692         sqlite3_prepare16_v2 build bustage.
2693
2694         Using the correct SQLITE_VERSION_NUMBER around sqlite_prepare16_v2
2695         to fix build bustage.
2696
2697         * platform/sql/SQLiteStatement.cpp:
2698         (WebCore::SQLiteStatement::prepare):
2699
2700 2007-11-19  Mark Rowe  <mrowe@apple.com>
2701
2702         Build fix.  Don't over-qualify the constructor name.
2703
2704         * storage/DatabaseDetails.h:
2705
2706 2007-11-19  Brady Eidson <beidson@apple.com>
2707
2708         Reviewed by Maciej
2709
2710         Stub out the WebCore parts of the WebKit API
2711
2712         * WebCore.base.exp:
2713         * WebCore.xcodeproj/project.pbxproj:
2714
2715         * storage/DatabaseDetails.h: Added.  Simple container for vitals on a specific database
2716         (WebCore::DatabaseDetails::DatabaseDetails::DatabaseDetails):
2717         (WebCore::DatabaseDetails::DatabaseDetails):
2718         (WebCore::DatabaseDetails::isValid):
2719         (WebCore::DatabaseDetails::name):
2720         (WebCore::DatabaseDetails::version):
2721         (WebCore::DatabaseDetails::displayName):
2722         (WebCore::DatabaseDetails::expectedUsage):
2723         (WebCore::DatabaseDetails::currentUsage):
2724
2725         * storage/DatabaseTracker.cpp:  Added various methods for API usage
2726         (WebCore::DatabaseTracker::detailsForNameAndOrigin):
2727         (WebCore::DatabaseTracker::usageForOrigin):
2728         (WebCore::DatabaseTracker::quotaForOrigin):
2729         (WebCore::DatabaseTracker::setQuota):
2730         * storage/DatabaseTracker.h:
2731
2732 2007-11-19  Kevin Ollivier  <kevino@theolliviers.com>
2733
2734         wx port build fix.
2735
2736         * platform/graphics/wx/AffineTransformWx.cpp:
2737         (WebCore::AffineTransform::operator== ):
2738         m_transform is only available when using wxGraphicsContext.
2739
2740 2007-11-19  Alp Toker  <alp@atoker.com>
2741
2742         Reviewed by Mark Rowe.
2743
2744         GTK+ drawing fixes.
2745
2746         Add a check to avoid crashing when the GraphicsContext is not
2747         associated with a GdkDrawable. This was noticed when adding printing
2748         support but might be triggered in other situations too.
2749
2750         Do not render themes when painting is disabled. This is an
2751         optimisation for cases where GraphicsContext is used to calculate page
2752         dimensions etc. without actually rendering.
2753
2754         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2755         (WebCore::GraphicsContext::gdkDrawable):
2756         * platform/gtk/RenderThemeGtk.cpp:
2757         (WebCore::paintMozWidget):
2758
2759 2007-11-13  Rahul Abrol  <ra5ul@comcast.net>
2760
2761         Reviewed by Tim Hatcher.
2762
2763         http://bugs.webkit.org/show_bug.cgi?id=15977
2764         Resizing images preference now toggles default image state.
2765
2766         * loader/ImageDocument.cpp:
2767         (WebCore::ImageDocument::ImageDocument):
2768         (WebCore::ImageDocument::createDocumentStructure):
2769         (WebCore::ImageDocument::imageChanged):
2770
2771 2007-11-19  Kevin Ollivier  <kevino@theolliviers.com>
2772
2773         Update wx port build sources with recent changes, update
2774         wx FontPlatformData to be a class (MSVC7 gets confused
2775         otherwise...) and implement its hash() method.
2776
2777         Reviewed by Adam.
2778
2779         * WebCoreSources.bkl:
2780         * platform/wx/FontPlatformData.h:
2781         (WebCore::FontPlatformData::hash):
2782
2783 2007-11-19  Julien Chaffraix  <julien.chaffraix@gmail.com>
2784
2785         Reviewed by Darin.
2786
2787         http://bugs.webkit.org/show_bug.cgi?id=12194
2788         Bug 12194: Trying to access XMLHttpRequest.responseText or responseXML when they 
2789         are not available should raise an exception
2790
2791         Tests: http/tests/xmlhttprequest/xmlhttprequest-responseText-exception.html
2792                http/tests/xmlhttprequest/xmlhttprequest-responseXML-exception.html
2793
2794         * bindings/js/JSXMLHttpRequest.cpp:
2795         (KJS::JSXMLHttpRequest::getValueProperty):
2796         * xml/XMLHttpRequest.cpp:
2797         (WebCore::XMLHttpRequest::getResponseText):
2798         (WebCore::XMLHttpRequest::getResponseXML):
2799         * xml/XMLHttpRequest.h:
2800
2801 2007-11-19  Peter Kasting  <zerodpx@gmail.com>
2802
2803         Reviewed by Darin Adler.
2804
2805         http://bugs.webkit.org/show_bug.cgi?id=15971
2806         The GIF decoder should not fail decoding if the caller asks it to
2807         decode again when no new data has arrived since the last call.
2808
2809         * platform/image-decoders/gif/GIFImageReader.cpp:
2810         (GIFImageReader::read):
2811
2812 2007-11-18  Brady Eidson <beidson@apple.com>
2813
2814         Reviewed by Eric
2815
2816         Fix a crash hashing a default SecurityOriginData object 
2817
2818         * storage/DatabaseTracker.cpp:
2819         (WebCore::SecurityOriginDataHash::hash): The default object has some default strings with NULL
2820           StringImpls - don't try to hash those!
2821
2822 2007-11-18  Timothy Hatcher  <timothy@apple.com>
2823
2824         Reviewed by Sam Weinig.
2825
2826         Bug 16043: Remove InspectorController.log now that console.log works
2827         http://bugs.webkit.org/show_bug.cgi?id=16043
2828
2829         Remove the last uses of InspectorController.log. Once use was no longer needed,
2830         checking an erro case that can't happen anymore. The other case now uses console.error.
2831
2832         * page/InspectorController.cpp: Remove the log function.
2833         (WebCore::InspectorController::windowScriptObjectAvailable): Remove the log function from
2834         InspectorController script class.
2835         * page/inspector/DocumentPanel.js: Remove a use of InspectorController.log that isn't needed.
2836         * page/inspector/Panel.js: Change InspectorController.log to console.log and early return.
2837
2838 2007-11-18  Timothy Hatcher  <timothy@apple.com>
2839
2840         Reviewed by Brady.
2841
2842         Bug 16041: REGRESSION: the Database panel in the Inspector stopped showing errors
2843         http://bugs.webkit.org/show_bug.cgi?id=16041
2844
2845         * page/inspector/DatabasePanel.js: Implement error callbacks to pass to executeSql()
2846           and transaction(). Refactored some code for the success and error callbacks to use.
2847
2848 2007-11-18  Alexey Proskuryakov  <ap@webkit.org>
2849
2850         Reviewed by Maciej.
2851
2852         <rdar://problem/5546393> Whitespace handling doesn't match HTML5.
2853
2854         HTML5 definition is the same as MSIE's, with the exception that the latter strips null
2855         characters. Firefox also treats U+0008 as whitespace, but not U+000B or U+000C.
2856
2857         Test: fast/parser/html-whitespace.html
2858
2859         * html/HTMLTokenizer.cpp:
2860         (WebCore::HTMLTokenizer::parseSpecial):
2861         (WebCore::HTMLTokenizer::parseTag):
2862         Use isASCIISpace, which matches HTML5 definition of whitespace, and also what we use to
2863         check for whitespace almost everywhere.
2864
2865 2007-11-17  Mark Rowe  <mrowe@apple.com>
2866
2867         Reviewed by Darin Adler.
2868
2869         Fix: <rdar://problem/5607032> REGRESSION: testapi exits with assertion failure in debug build
2870              <rdar://problem/5440659> JSGlobalContextCreate throws away globalObjectClass's prototype
2871              http://bugs.webkit.org/show_bug.cgi?id=16033
2872
2873         Update for changes in Interpreter method signatures.
2874
2875         * bindings/js/kjs_binding.cpp:
2876         (KJS::ScriptInterpreter::ScriptInterpreter):
2877         * bindings/js/kjs_window.cpp:
2878         (KJS::Window::clear):
2879
2880 2007-11-17  Timothy Hatcher  <timothy@apple.com>
2881
2882         Reviewed by Mark Rowe.
2883
2884         Bug 13470: i18n: The Web Inspector is not localizable
2885         http://bugs.webkit.org/show_bug.cgi?id=13470
2886
2887         Add support for localization to the Web Inspector. Clients need to
2888         implement localizedStringsURL() to return the URL of the
2889         InspectorLocalizedStrings.js that best matches the user's language.
2890
2891         * English.lproj: Added.
2892         * English.lproj/InspectorLocalizedStrings.js: Added.
2893         * WebCore.xcodeproj/project.pbxproj: Add InspectorLocalizedStrings.js.
2894         * page/InspectorClient.h: Add localizedStringsURL.
2895         * page/InspectorController.cpp: Add localizedStringsURL that calls
2896           the client. Also added a version exposed to JavaScript.
2897         * page/InspectorController.h: Add localizedStringsURL.
2898         * page/inspector/ConsolePanel.js: Call WebInspector.UIString
2899           for user visible strings.
2900         * page/inspector/DatabasePanel.js: Ditto.
2901         * page/inspector/DocumentPanel.js: Ditto.
2902         * page/inspector/ImagePanel.js: Ditto.
2903         * page/inspector/MetricsSidebarPane.js: Ditto.
2904         * page/inspector/NetworkPanel.js: Ditto.
2905         * page/inspector/Panel.js: Ditto.
2906         * page/inspector/PropertiesSidebarPane.js: Ditto.
2907         * page/inspector/Resource.js: Ditto.
2908         * page/inspector/ResourceCategory.js: Ditto.
2909         * page/inspector/SourcePanel.js: Ditto.
2910         * page/inspector/StylesSidebarPane.js: Ditto.
2911         * page/inspector/inspector.css: Use pre-wrap so database errors can use \n.
2912         * page/inspector/inspector.html: Remove some user visible strings.
2913         * page/inspector/inspector.js: Added WebInspector.UIString and call
2914           WebInspector.UIString for user visible strings. Some code needed to be 
2915           moved to WebInspector.loaded to use UIString after the localized strings
2916           get loaded.
2917         * platform/graphics/svg/SVGImageEmptyClients.h:
2918         (WebCore::SVGEmptyFrameLoaderClient::redirectDataToPlugin): Remove WebCore:: prefix.
2919         (WebCore::SVGEmptyInspectorClient::createPage): Ditto.
2920         (WebCore::SVGEmptyInspectorClient::localizedStringsURL): Add empty stub.
2921         (WebCore::SVGEmptyInspectorClient::highlight): Remove WebCore:: prefix.
2922         (WebCore::SVGEmptyInspectorClient::inspectedURLChanged): Ditto.
2923
2924 2007-11-17  Timothy Hatcher  <timothy@apple.com>
2925
2926         Reviewed by Adam.
2927
2928         Reworte String.sprintf to fix many bad bugs and to not use RegExp. Also added
2929         String.vsprintf so it can be used later for the localization function.
2930
2931         This version only supports argument reordering, precision for floats, and these
2932         format characters: d, f, s and @. Any unsupported format characters are logged
2933         and substituted like strings.
2934
2935         * page/inspector/utilities.js:
2936
2937 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
2938
2939         Windows build fix.
2940
2941         * editing/Editor.h: Made canSmartCopyOrDelete public, as Windows WebView still needs it.
2942
2943 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
2944
2945         Reviewed by Darin.
2946
2947         http://bugs.webkit.org/show_bug.cgi?id=15969
2948         Eliminate Editor::deleteRange()
2949
2950         No change in functionality.
2951
2952         * editing/CompositeEditCommand.h: Removed unimplemented deleteKeyPressed().
2953
2954         * editing/Editor.cpp:
2955         (WebCore::Editor::deleteWithDirection):
2956         (WebCore::Editor::cut):
2957         (WebCore::Editor::performDelete):
2958         * editing/Editor.h:
2959         Moved relevant Editor::deleteRange() functionality to its callers.
2960         Removed deleteSelectionWithSmartDelete(void), which was more confusing than helpful
2961         in my opinion.
2962
2963         * editing/mac/EditorMac.mm:
2964         (WebCore::initializeKillRingIfNeeded):
2965         (WebCore::Editor::addToKillRing):
2966         (WebCore::Editor::yank):
2967         (WebCore::Editor::yankAndSelect):
2968         (WebCore::Editor::setMark):
2969         (WebCore::unionDOMRanges):
2970         (WebCore::Editor::deleteToMark):
2971         (WebCore::Editor::selectToMark):
2972         (WebCore::Editor::swapWithMark):
2973         Pushed kill ring handling down from WebCore.
2974
2975         * page/mac/WebCoreFrameBridge.h:
2976         * page/mac/WebCoreFrameBridge.mm:
2977         Removed setMarkDOMRange (the corresponding getter is still needed).
2978
2979         * WebCore.base.exp: No longer need to export Editor::deleteRange() and Editor::insertTextWithoutSendingTextEvent().
2980         Export the new kill ring functions.
2981
2982 2007-11-16  Ryan Leavengood  <leavengood@gmail.com>
2983
2984         Reviewed by David Kilzer.
2985
2986         Build fix: the needed headers for POSIX file functions were not
2987         included.
2988
2989         * platform/posix/FileSystemPOSIX.cpp:
2990
2991 2007-11-16  Dan Bernstein  <mitz@apple.com>
2992
2993         Reviewed by Darin Adler.
2994
2995         - fix the common case of <http://bugs.webkit.org/show_bug.cgi?id=15994>
2996           REGRESSION: Incomplete repaint of CSS image substitution
2997
2998         Test: fast/repaint/clip-with-layout-delta.html
2999
3000         * rendering/LayoutState.cpp:
3001         (WebCore::LayoutState::LayoutState): Account for layout delta when
3002         pushing additional clip.
3003
3004 2007-11-16  Antti Koivisto  <antti@apple.com>
3005
3006         Reviewed by Adele.
3007         
3008         Seeking related fixes, updates to match the latest specification
3009         - rename loopCount of HTMLMediaElement to playCount
3010         - add explicit seeking attribute to HTMLMediaElement to get semantics right
3011         - implement the specification behavior that currentTime must immediately return seeked position in HTMLMediaElement 
3012           instead of MoviePrivateQTKit 
3013         - fix broken behavior when seeking past end of the media, add tests
3014         - replace Movie didEnd callback with broader timeChanged callback (which gets called in didEnd case too)
3015         - use setDelayCallbacks: in various MoviePrivateQTKit methods to avoid bug prone synchronous callbacks from QT, make
3016           HTMLMediaElement not depend on synchronous callbacks
3017         - do some cleanups and simplifications in MoviePrivateQTKit, get rid of m_rateBeforeSeek and m_blockStateUpdate variables
3018
3019         Tests: http/tests/media/video-seekable-stall.html
3020                media/video-seeking.html
3021                media/video-seek-past-end-paused.html
3022                media/video-seek-past-end-playing.html
3023
3024         * html/HTMLAttributeNames.in: 
3025         * html/HTMLMediaElement.cpp:
3026         (WebCore::HTMLMediaElement::HTMLMediaElement):
3027         (WebCore::HTMLMediaElement::load):
3028         (WebCore::HTMLMediaElement::movieNetworkStateChanged):
3029         (WebCore::HTMLMediaElement::setReadyState):
3030         (WebCore::HTMLMediaElement::seek):
3031         (WebCore::HTMLMediaElement::seeking):
3032         (WebCore::HTMLMediaElement::currentTime):
3033         (WebCore::HTMLMediaElement::ended):
3034         (WebCore::HTMLMediaElement::play):
3035         (WebCore::HTMLMediaElement::pause):
3036         (WebCore::HTMLMediaElement::playCount):
3037         (WebCore::HTMLMediaElement::setPlayCount):
3038         (WebCore::HTMLMediaElement::checkIfSeekNeeded):
3039         (WebCore::HTMLMediaElement::movieTimeChanged):
3040         (WebCore::HTMLMediaElement::endedPlayback):
3041         (WebCore::HTMLMediaElement::updateMovie):
3042         * html/HTMLMediaElement.h:
3043         * html/HTMLMediaElement.idl:
3044         * platform/graphics/Movie.cpp:
3045         (WebCore::Movie::timeChanged):
3046         * platform/graphics/Movie.h:
3047         (WebCore::MovieClient::movieTimeChanged):
3048         * platform/graphics/mac/MoviePrivateQTKit.h:
3049         * platform/graphics/mac/MoviePrivateQTKit.mm:
3050         (WebCore::MoviePrivate::MoviePrivate):
3051         (WebCore::MoviePrivate::load):
3052         (WebCore::MoviePrivate::play):
3053         (WebCore::MoviePrivate::pause):
3054         (WebCore::MoviePrivate::currentTime):
3055         (WebCore::MoviePrivate::seek):
3056         (WebCore::MoviePrivate::doSeek):
3057         (WebCore::MoviePrivate::cancelSeek):
3058         (WebCore::MoviePrivate::seekTimerFired):
3059         (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
3060         (WebCore::MoviePrivate::paused):
3061         (WebCore::MoviePrivate::updateStates):
3062         (WebCore::MoviePrivate::timeChanged):
3063         (WebCore::MoviePrivate::didEnd):
3064
3065 2007-11-16  Anders Carlsson  <andersca@apple.com>
3066
3067         Reviewed by Adam.
3068
3069         <rdar://problem/5603832>
3070         XMLHttpRequest readyState 3 & responseText buffer issues.
3071
3072         * platform/network/cf/ResourceHandleCFNet.cpp:
3073         (WebCore::makeFinalRequest):
3074         Add new parameter which controls whether content sniffing should be turned off.
3075         
3076         (WebCore::ResourceHandle::loadResourceSynchronously):
3077         Always content sniff sync loads.
3078         
3079         * platform/network/cf/ResourceRequestCFNet.cpp:
3080         (WebCore::ResourceRequest::doUpdatePlatformRequest):
3081         If the ResourceRequest already has a backing CFURLRequest, make a copy of it. This preserves
3082         any properties set on the CFURLRequest.
3083
3084 2007-11-16  Jon Honeycutt  <jhoneycutt@apple.com>
3085
3086         Reviewed by Ollie.
3087
3088         <rdar://problem/5605175> Crash closing or leaving window with ViewPoint 
3089         Media player plugin
3090
3091         ViewPoint plugin requires that we pass a valid NPSavedData* to
3092         NPP_Destroy.
3093
3094         * plugins/win/PluginViewWin.cpp: Pass a valid NPSavedData* to
3095         NPP_Destroy. If the plugin allocates data, discard it
3096
3097 2007-11-16  Mark Rowe  <mrowe@apple.com>
3098
3099         Reviewed by Tim Hatcher.
3100
3101         Build WebCore as a sub-framework of WebKit in all configurations.
3102
3103         * Configurations/WebCore.xcconfig:
3104         * WebCore.xcodeproj/project.pbxproj:
3105
3106 2007-11-16  Doug Turner  <dougt@meer.net>
3107
3108         Reviewed by Alp.
3109
3110         http://bugs.webkit.org/show_bug.cgi?id=16018
3111         build bustage when building on debian 4.0
3112
3113         Fix build bustage on GTK+ with older versions of Pango.
3114
3115         Don't cache the return value since the docs say it can change.
3116
3117         * platform/gtk/Language.cpp:
3118         (WebCore::defaultLanguage):
3119
3120 2007-11-16  Brady Eidson  <beidson@apple.com>
3121
3122         Build fix
3123
3124         * platform/SecurityOriginData.h:
3125         (WebCore::operator!=): Whoops!
3126
3127 2007-11-16  Brady Eidson  <beidson@apple.com>
3128
3129         Reviewed by Sam
3130
3131         Further purify DatabaseTracker to use SecurityOriginData instead of "a String"
3132
3133         * WebCore.base.exp:
3134         * WebCore.xcodeproj/project.pbxproj:
3135         * WebCore.vcproj/WebCore.vcproj
3136         * WebCore.pro
3137
3138         * platform/SecurityOriginData.cpp: Added.
3139         (WebCore::SecurityOriginData::SecurityOriginData): Add a constructor that takes a "stringIdentifier"-style string,
3140           since that form is what will be stored in the Databases.db on disk
3141         (WebCore::SecurityOriginData::stringIdentifier):
3142         * platform/SecurityOriginData.h:
3143         (WebCore::SecurityOriginData::protocol):
3144         (WebCore::SecurityOriginData::host):
3145         (WebCore::SecurityOriginData::port):
3146
3147         * storage/DatabaseTracker.cpp:
3148         (WebCore::SecurityOriginDataHash::hash): Follow the pattern Darin set in FontCache.cpp to make a decent hash for 
3149           a SecurityOriginData object
3150         (WebCore::SecurityOriginDataHash::equal):
3151         (WebCore::SecurityOriginDataTraits::deletedValue): "file::1" will never exist in normal operation
3152         (WebCore::SecurityOriginDataTraits::emptyValue): "file::2" will never exist in normal operation
3153         (WebCore::DatabaseTracker::fullPathForDatabase):
3154         (WebCore::DatabaseTracker::populateOrigins):
3155         (WebCore::DatabaseTracker::origins):
3156         (WebCore::DatabaseTracker::addDatabase):
3157         * storage/DatabaseTracker.h:
3158
3159 2007-11-16  Alexey Proskuryakov  <ap@webkit.org>
3160
3161         Windows build fix.
3162
3163         * WebCore.vcproj/WebCore.vcproj: Removed VoidCallback.cpp, added JSCustomVoidCallback.{h,cpp}.
3164
3165 2007-11-16  Nikolas Zimmermann  <zimmermann@kde.org>
3166
3167         Reviewed by Eric.
3168
3169         Fixes: http://bugs.webkit.org/show_bug.cgi?id=12290
3170
3171         Implement all SVGTextContentElement DOM methods.
3172         This is the last missing SVG text feature. SVG fonts is next.
3173
3174         Added testcase: svg/custom/text-dom-01-f.svg (tests all new methods)
3175
3176         * ksvg2/svg/SVGTextContentElement.cpp:
3177         (WebCore::cummulatedCharacterRangeLength):
3178         (WebCore::SVGInlineTextBoxQueryWalker::):
3179         (WebCore::SVGInlineTextBoxQueryWalker::SVGInlineTextBoxQueryWalker):
3180         (WebCore::SVGInlineTextBoxQueryWalker::chunkPortionCallback):
3181         (WebCore::SVGInlineTextBoxQueryWalker::setQueryInputParameters):
3182         (WebCore::SVGInlineTextBoxQueryWalker::longResult):
3183         (WebCore::SVGInlineTextBoxQueryWalker::floatResult):
3184         (WebCore::SVGInlineTextBoxQueryWalker::pointResult):
3185         (WebCore::SVGInlineTextBoxQueryWalker::rectResult):
3186         (WebCore::SVGInlineTextBoxQueryWalker::stopProcessing):
3187         (WebCore::findInlineTextBoxInTextChunks):
3188         (WebCore::rootInlineBoxForTextContentElement):
3189         (WebCore::executeTextQuery):
3190         (WebCore::SVGTextContentElement::getNumberOfChars):
3191         (WebCore::SVGTextContentElement::getComputedTextLength):
3192         (WebCore::SVGTextContentElement::getSubStringLength):
3193         (WebCore::SVGTextContentElement::getStartPositionOfChar):
3194         (WebCore::SVGTextContentElement::getEndPositionOfChar):
3195         (WebCore::SVGTextContentElement::getExtentOfChar):
3196         (WebCore::SVGTextContentElement::getRotationOfChar):
3197         (WebCore::SVGTextContentElement::getCharNumAtPosition):
3198         (WebCore::SVGTextContentElement::selectSubString):
3199         * ksvg2/svg/SVGTextContentElement.h:
3200         * rendering/SVGInlineTextBox.h:
3201
3202 2007-11-15  Adele Peterson  <adele@apple.com>
3203
3204         Reviewed by Oliver.
3205
3206         Fix for <rdar://problem/5566652> CrashTracer: [USER] 3 crashes in Safari at HTMLSelectElement::menuListDefaultEventHandler (reproducible on mactc30.com)
3207
3208         Test: fast/forms/menulist-no-renderer-onmousedown.html
3209
3210         * html/HTMLSelectElement.cpp:
3211         (WebCore::HTMLSelectElement::defaultEventHandler): Nil check the renderer here.  None of the default behavior makes sense if there's no renderer.
3212         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Moved the nil check to the main defaultEventHandler.
3213
3214 2007-11-15  Antti Koivisto  <antti@apple.com>
3215
3216         Reviewed by Adele.
3217
3218         Fix <rdar://problem/5601598>
3219         The movie tag should do initialization on need and not during startup.
3220         
3221         Initialize Movie MIME type hash on demand
3222
3223         * platform/MIMETypeRegistry.cpp:
3224         (WebCore::initialiseSupportedMovieMIMETypes):
3225         (WebCore::initialiseMIMETypeRegistry):
3226         (WebCore::MIMETypeRegistry::isSupportedMovieMIMEType):
3227         (WebCore::MIMETypeRegistry::getSupportedMovieMIMETypes):
3228
3229 2007-11-15  Mark Rowe  <mrowe@apple.com>
3230
3231         Build fix for Qt on Windows.
3232
3233         * xml/XPathStep.cpp:
3234         (WebCore::XPath::Step::nodesInAxis):
3235
3236 2007-11-15  Timothy Hatcher  <timothy@apple.com>
3237
3238         Reviewed by Mark Rowe.
3239
3240         Bug 14761: Web Inspector leaks JS objects and DOM nodes
3241         http://bugs.webkit.org/show_bug.cgi?id=14761
3242
3243         * page/InspectorController.cpp:
3244         (WebCore::InspectorController::~InspectorController):
3245         Change the tear down order so that inspectorDestroyed() is called before
3246         InspectorController private data is set to Zero. The inspectorDestroyed()
3247         call ends up closing the WebView and triggering InspectorController::close()
3248         which unprotects m_scriptObject. This didn't happen when the private data
3249         was cleared before calling inspectorDestroyed().
3250
3251 2007-11-15  Mark Rowe  <mrowe@apple.com>
3252
3253         Gtk build fix.
3254
3255         * WebCore.pro:
3256
3257 2007-11-15  Alexey Proskuryakov  <ap@webkit.org>
3258
3259         Reviewed by Darin.
3260
3261         http://bugs.webkit.org/show_bug.cgi?id=15989
3262         XPath queries with predicates incorrectly retains the current node across unions
3263
3264         Test: fast/xpath/union-context-node.xhtml
3265
3266         * xml/XPathPath.cpp:
3267         (WebCore::XPath::LocationPath::evaluate): Restore context after evaluation.
3268         * xml/XPathStep.cpp:
3269         (WebCore::XPath::Step::evaluate): Do not backup context, as we can easily re-create it.
3270
3271 2007-11-15  Alexey Proskuryakov  <ap@webkit.org>
3272
3273         Reviewed by Darin.
3274
3275         http://bugs.webkit.org/show_bug.cgi?id=15988
3276         REGRESSION: XPath preceding-axis query misses nested elements
3277
3278         Test: fast/xpath/preceding-axis.xhtml
3279
3280         * xml/XPathStep.cpp:
3281         (WebCore::XPath::Step::nodesInAxis): Hopefully correct this time.
3282
3283 2007-11-15  Timothy Hatcher  <timothy@apple.com>
3284
3285         Reviewed by Mark Rowe and Sam.
3286
3287         This corrects a couple of issues in the Web Inspector where selected search results
3288         would not have the right text color when the window is inactive or the results are focused.
3289
3290         * page/inspector/inspector.css:
3291
3292 2007-11-15  Timothy Hatcher  <timothy@apple.com>
3293
3294         Reviewed by Sam.
3295
3296         Bug 16007: REGRESSION: Disclosure triangle click zone for resource categories is off by 10 pixels
3297         http://bugs.webkit.org/show_bug.cgi?id=16007
3298
3299         Makes the click width an option on TreeElement and make ResourceCategoryTreeElement
3300         a true subclass of TreeElement. The click width for ResourceCategoryTreeElement is 
3301         20 pixels, and the default is 10 pixels.
3302
3303         * page/inspector/ResourceCategory.js:
3304         * page/inspector/treeoutline.js:
3305
3306 2007-11-15  Anders Carlsson  <andersca@apple.com>
3307
3308         Reviewed by Brady.
3309
3310         Pass a VoidCallback to Database::transaction and Database::changeVersion.
3311         This is not yet hooked up to the database machinery.
3312         
3313         * WebCore.vcproj/WebCore.vcproj:
3314         * bindings/js/JSDatabaseCustom.cpp:
3315         (WebCore::JSDatabase::changeVersion):
3316         (WebCore::JSDatabase::transaction):
3317         * storage/Database.cpp:
3318         (WebCore::Database::changeVersion):
3319         (WebCore::Database::transaction):
3320         * storage/Database.h:
3321
3322 2007-11-15  Timothy Hatcher  <timothy@apple.com>
3323
3324         Reviewed by Adam.
3325
3326         Bug 16005: Hovering in the breadcrumbs causes jumpy behavior
3327         http://bugs.webkit.org/show_bug.cgi?id=16005
3328
3329         Hovering over cumbs no longer exposes new crumbs. Clicking on a collapsed
3330         crumb will expose as many hidden crumbs as possible to the user. Also crumbs
3331         that have ID attributes will compact to the ID over the tag name.
3332
3333         * page/inspector/DocumentPanel.js:
3334
3335 2007-11-15  Anders Carlsson  <andersca@apple.com>
3336
3337         Reviewed by Sam.
3338
3339         Make the VoidCallback DOM interface behave more like our other DOM interfaces.
3340         
3341         * bindings/js/JSCustomVoidCallback.h: Added.
3342         * bindings/js/JSCustomVoidCallback.cpp: Added.
3343         (WebCore::JSCustomVoidCallback::JSCustomVoidCallback):
3344         (WebCore::JSCustomVoidCallback::handleEvent):
3345         VoidCallback implementation that wraps a JS object.
3346         
3347         (WebCore::toVoidCallback):
3348         New method that creates a VoidCallback implementation given a JS object.
3349         
3350         * bindings/scripts/CodeGeneratorJS.pm:
3351         Specify that VoidCallback can fail conversion and add a custom conversion function.
3352         
3353         * html/HTMLMediaElement.cpp:
3354         (WebCore::HTMLMediaElement::movieCuePointReached):
3355         Call handleEvent on the callback.
3356         
3357         (WebCore::HTMLMediaElement::removeCuePoint):
3358         Comment out parts of this method, it has already been removed in the HTML5 spec and it relies
3359         on overriding VoidCallback equality.
3360         
3361         * html/VoidCallback.cpp: Removed.
3362         
3363         * html/VoidCallback.h:
3364         (WebCore::VoidCallback::VoidCallback):
3365         (WebCore::VoidCallback::~VoidCallback):
3366         Make this an abstract class with a pure virtual handleEvent method.
3367         
3368 2007-11-15  Adam Roben  <aroben@apple.com>
3369
3370         Fix <rdar://5485108> Type-select while a <select> menu is open doesn't work
3371
3372         There were two things broken here:
3373            - WebView now requires a WM_CHAR message to be sent before it will
3374              create a keyboard event with a charCode, but we were only sending
3375              a WM_KEYDOWN event.
3376            - The popup menu was not updating its focused index when the
3377              <select> element's selectedIndex changed.
3378
3379         Reviewed by Adele.
3380
3381         * platform/win/PopupMenuWin.cpp:
3382         (WebCore::PopupMenu::updateFromElement): Update the focused index from
3383         the client's selected index.
3384         (WebCore::PopupWndProc): When we receive a WM_CHAR message for a
3385         printable character, manufacture a WM_KEYDOWN message for it and post
3386         both that and the current WM_CHAR message to the WebView.
3387
3388 2007-11-15  Brady Eidson  <beidson@apple.com>
3389
3390         Build fix
3391
3392         * storage/DatabaseTracker.cpp:
3393         (WebCore::DatabaseTracker::fullPathForDatabase):
3394         (WebCore::DatabaseTracker::databaseNamesForOrigin):
3395
3396 2007-11-15  Brady Eidson  <beidson@apple.com>
3397
3398         Reviewed by John and Sam
3399
3400         Stubbing out everything required for a WebKit API for databases
3401
3402         Biggest change in WebCore is that we passed around SecurityOriginData as the representation
3403         of a SecurityOrigin, instead of a String or a SecurityOrigin itself (which is an opaque object
3404         that has a different purpose besides just hanging on to the data)
3405
3406         * WebCore.base.exp:
3407         * WebCore.xcodeproj/project.pbxproj:
3408
3409         * platform/SecurityOrigin.cpp:
3410         * platform/SecurityOrigin.h:
3411         * platform/SecurityOriginData.h: Added.  Simple object to encapsulate the 3
3412           pieces of data in the SecurityOrigin tuple
3413         (WebCore::SecurityOriginData::SecurityOriginData):
3414         (WebCore::SecurityOriginData::protocol):
3415         (WebCore::SecurityOriginData::host):
3416         (WebCore::SecurityOriginData::port):
3417         (WebCore::SecurityOriginData::toString): Simple concatenation of the 3 components,
3418           colon separated
3419
3420         * storage/Database.cpp:
3421         (WebCore::Database::Database): Use SecurityOriginData instead
3422
3423         * storage/DatabaseTracker.cpp:
3424         (WebCore::DatabaseTracker::fullPathForDatabase):
3425         (WebCore::DatabaseTracker::databaseNamesForOrigin):
3426         (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
3427         (WebCore::DatabaseTracker::deleteDatabase):
3428         * storage/DatabaseTracker.h:
3429
3430         * storage/DatabaseTrackerClient.h: Added.  For dispatching notifications up to WebKit
3431         (WebCore::DatabaseTrackerClient::~DatabaseTrackerClient):2007-11-15  Jon Honeycutt  <jhoneycutt@apple.com>
3432
3433 2007-11-15  Jon Honeycutt  <jhoneycutt@apple.com>
3434
3435         Reviewed by Anders.
3436
3437         NP_ASFILEONLY streams should not buffer data in m_deliveryData.
3438
3439         * plugins/win/PluginStreamWin.cpp:
3440         (WebCore::PluginStreamWin::didReceiveData):
3441
3442 2007-11-15  Justin Garcia  <justin.garcia@apple.com>
3443
3444         Reviewed by Adele Peterson.
3445
3446         <rdar://problem/5497643> Crash at Node::isDescendantOf when switching out of Edit HTML Source mode
3447         
3448         A textarea that contained the selection was removed but the selection wasn't cleared,
3449         and we'd crash in code that assumed a valid, in-document selection.
3450
3451         * editing/SelectionController.cpp:
3452         (WebCore::removingNodeRemovesPosition): Clear the selection if the node being removed is the
3453         shadowAncestorNode of the node that contains the position, not just if the node being removed
3454         contains that shadowAncestorNode.
3455
3456 2007-11-15  Nikolas Zimmermann  <zimmermann@kde.org>
3457
3458         Reviewed by Maciej.
3459
3460         Fix logic error: calculateGlyphBoundaries takes RTL text into account itself, no need to adjust offsets before.
3461
3462         * rendering/SVGInlineTextBox.cpp:
3463         (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
3464         (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
3465
3466 2007-11-15  Anders Carlsson  <andersca@apple.com>
3467
3468         Reviewed by Brady.
3469
3470         <rdar://problem/5562470>
3471         openDatabase does not work when the version string is empty
3472
3473         If the string is empty, pass a real empty string to sqlite3_bind_text16.
3474         
3475         * platform/sql/SQLiteStatement.cpp:
3476         (WebCore::SQLiteStatement::bindText):
3477
3478 2007-11-15  Anders Carlsson  <andersca@apple.com>
3479
3480         Reviewed by Brady.
3481
3482         Get rid of SQLiteStatement::bindText and rename bindText16 to bindText.
3483         Remove the copy parameter from bindText and bindBlob and always copy passed in data instead.
3484
3485         * loader/icon/IconDatabase.cpp:
3486         (WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
3487         (WebCore::IconDatabase::removePageURLFromSQLDatabase):
3488         (WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
3489         (WebCore::IconDatabase::addIconURLToSQLDatabase):
3490         (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
3491         (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
3492         * platform/sql/SQLiteStatement.cpp:
3493         (WebCore::SQLiteStatement::prepare):
3494         * platform/sql/SQLiteStatement.h:
3495         * storage/Database.cpp:
3496         (WebCore::setTextValueInDatabase):
3497         * storage/DatabaseTracker.cpp:
3498         (WebCore::DatabaseTracker::fullPathForDatabase):
3499         (WebCore::DatabaseTracker::databaseNamesForOrigin):
3500         (WebCore::DatabaseTracker::addDatabase):
3501
3502 2007-11-14  Brady Eidson <beidson@apple.com>
3503
3504         Rubberstamped by Sam
3505
3506         * platform/SecurityOrigin.h: Lets make this an unsigned short and *not* rule out half the possible ports?
3507
3508 2007-11-14  Alexey Proskuryakov  <ap@webkit.org>
3509
3510         Reviewed by Justin Garcia.
3511
3512         http://bugs.webkit.org/show_bug.cgi?id=15781
3513         REGRESSION: Ligatures fail to form when typing in Devanagari (because WebKit can't handle
3514         a marked range that covers half of a composed character sequence)
3515
3516         Test: platform/mac/editing/input/devanagari-ligature.html
3517
3518         This fix is somewhat of a hack, as it asks editing commands to work with invalid selections.
3519         However, this is not entirely new for them, as Roman accents are typed in a similar manner.
3520
3521         In the future, we probably want to make commands work with ranges (or Positions explicitly).
3522
3523         * editing/Editor.cpp:
3524         (WebCore::Editor::selectComposition): Force selection to composition range.
3525         * editing/InsertTextCommand.cpp:
3526         (WebCore::InsertTextCommand::input): Force ending selection to inserted text range.
3527
3528 2007-11-14  Beth Dakin  <bdakin@apple.com>
3529
3530         Reviewed by Hyatt.
3531
3532         Fix for <rdar://problem/5540855> REGRESSION: Combination of client-
3533         side image map and <a> tag is not working properly (15522)
3534
3535         * html/HTMLMapElement.cpp:
3536         (WebCore::HTMLMapElement::checkDTD): Allow <map> to have both block 
3537         and inline children rather than just block children. This matches 
3538         Firefox. 
3539